@passelin/mock-bff 0.4.2
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/LICENSE +21 -0
- package/README.md +185 -0
- package/admin/dist/assets/bff_candy_heart-tUzGTaBH.svg +1 -0
- package/admin/dist/assets/index-DqEQC4bI.js +268 -0
- package/admin/dist/assets/index-QJ-IaVhl.js +256 -0
- package/admin/dist/assets/index-tkgDpq0U.css +1 -0
- package/admin/dist/index.html +18 -0
- package/dist/ai.js +289 -0
- package/dist/app.js +869 -0
- package/dist/cli.js +94 -0
- package/dist/har.js +106 -0
- package/dist/matcher.js +41 -0
- package/dist/openapi.js +116 -0
- package/dist/server.js +16 -0
- package/dist/storage.js +257 -0
- package/dist/types.js +1 -0
- package/dist/utils.js +62 -0
- package/package.json +81 -0
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
var f3=Object.defineProperty;var Gw=t=>{throw TypeError(t)};var h3=(t,e,r)=>e in t?f3(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var H=(t,e,r)=>h3(t,typeof e!="symbol"?e+"":e,r),Yw=(t,e,r)=>e.has(t)||Gw("Cannot "+r);var Ut=(t,e,r)=>(Yw(t,e,"read from private field"),r?r.call(t):e.get(t)),Rs=(t,e,r)=>e.has(t)?Gw("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),Fo=(t,e,r,n)=>(Yw(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);import{g as Ze,c as Xt,r as be,R as u,j as xn,J as ha,y as MO}from"./index-DqEQC4bI.js";function z0(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in t)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}var DO={exports:{}},d3="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",m3=d3,g3=m3;function FO(){}function BO(){}BO.resetWarningCache=FO;var y3=function(){function t(n,s,i,o,a,c){if(c!==g3){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}t.isRequired=t;function e(){return t}var r={array:t,bigint:t,bool:t,func:t,number:t,object:t,string:t,symbol:t,any:t,arrayOf:e,element:t,elementType:t,instanceOf:e,node:t,objectOf:e,oneOf:e,oneOfType:e,shape:e,exact:e,checkPropTypes:BO,resetWarningCache:FO};return r.PropTypes=r,r};DO.exports=y3();var v3=DO.exports;const Ur=Ze(v3);var da={},b3=da.byteLength=x3,E3=da.toByteArray=O3,S3=da.fromByteArray=T3,ps=[],vn=[],w3=typeof Uint8Array<"u"?Uint8Array:Array,om="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(var Bo=0,_3=om.length;Bo<_3;++Bo)ps[Bo]=om[Bo],vn[om.charCodeAt(Bo)]=Bo;vn[45]=62;vn[95]=63;function LO(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");r===-1&&(r=e);var n=r===e?0:4-r%4;return[r,n]}function x3(t){var e=LO(t),r=e[0],n=e[1];return(r+n)*3/4-n}function A3(t,e,r){return(e+r)*3/4-r}function O3(t){var e,r=LO(t),n=r[0],s=r[1],i=new w3(A3(t,n,s)),o=0,a=s>0?n-4:n,c;for(c=0;c<a;c+=4)e=vn[t.charCodeAt(c)]<<18|vn[t.charCodeAt(c+1)]<<12|vn[t.charCodeAt(c+2)]<<6|vn[t.charCodeAt(c+3)],i[o++]=e>>16&255,i[o++]=e>>8&255,i[o++]=e&255;return s===2&&(e=vn[t.charCodeAt(c)]<<2|vn[t.charCodeAt(c+1)]>>4,i[o++]=e&255),s===1&&(e=vn[t.charCodeAt(c)]<<10|vn[t.charCodeAt(c+1)]<<4|vn[t.charCodeAt(c+2)]>>2,i[o++]=e>>8&255,i[o++]=e&255),i}function C3(t){return ps[t>>18&63]+ps[t>>12&63]+ps[t>>6&63]+ps[t&63]}function $3(t,e,r){for(var n,s=[],i=e;i<r;i+=3)n=(t[i]<<16&16711680)+(t[i+1]<<8&65280)+(t[i+2]&255),s.push(C3(n));return s.join("")}function T3(t){for(var e,r=t.length,n=r%3,s=[],i=16383,o=0,a=r-n;o<a;o+=i)s.push($3(t,o,o+i>a?a:o+i));return n===1?(e=t[r-1],s.push(ps[e>>2]+ps[e<<4&63]+"==")):n===2&&(e=(t[r-2]<<8)+t[r-1],s.push(ps[e>>10]+ps[e>>4&63]+ps[e<<2&63]+"=")),s.join("")}const I3=z0({__proto__:null,byteLength:b3,default:da,fromByteArray:S3,toByteArray:E3},[da]);var Cc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var R3=Cc.read=function(t,e,r,n,s){var i,o,a=s*8-n-1,c=(1<<a)-1,l=c>>1,p=-7,f=r?s-1:0,m=r?-1:1,d=t[e+f];for(f+=m,i=d&(1<<-p)-1,d>>=-p,p+=a;p>0;i=i*256+t[e+f],f+=m,p-=8);for(o=i&(1<<-p)-1,i>>=-p,p+=n;p>0;o=o*256+t[e+f],f+=m,p-=8);if(i===0)i=1-l;else{if(i===c)return o?NaN:(d?-1:1)*(1/0);o=o+Math.pow(2,n),i=i-l}return(d?-1:1)*o*Math.pow(2,i-n)},P3=Cc.write=function(t,e,r,n,s,i){var o,a,c,l=i*8-s-1,p=(1<<l)-1,f=p>>1,m=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:i-1,g=n?1:-1,v=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,o=p):(o=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-o))<1&&(o--,c*=2),o+f>=1?e+=m/c:e+=m*Math.pow(2,1-f),e*c>=2&&(o++,c/=2),o+f>=p?(a=0,o=p):o+f>=1?(a=(e*c-1)*Math.pow(2,s),o=o+f):(a=e*Math.pow(2,f-1)*Math.pow(2,s),o=0));s>=8;t[r+d]=a&255,d+=g,a/=256,s-=8);for(o=o<<s|a,l+=s;l>0;t[r+d]=o&255,d+=g,o/=256,l-=8);t[r+d-g]|=v*128};const k3=z0({__proto__:null,default:Cc,read:R3,write:P3},[Cc]);var ly={exports:{}},UO={};/*!
|
|
2
|
+
* The buffer module from node.js, for the browser.
|
|
3
|
+
*
|
|
4
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
5
|
+
* @license MIT
|
|
6
|
+
*/(function(t){const e=da,r=Cc,n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=a,t.SlowBuffer=S,t.INSPECT_MAX_BYTES=50;const s=2147483647;t.kMaxLength=s,a.TYPED_ARRAY_SUPPORT=i(),!a.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const k=new Uint8Array(1),_={foo:function(){return 42}};return Object.setPrototypeOf(_,Uint8Array.prototype),Object.setPrototypeOf(k,_),k.foo()===42}catch{return!1}}Object.defineProperty(a.prototype,"parent",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.buffer}}),Object.defineProperty(a.prototype,"offset",{enumerable:!0,get:function(){if(a.isBuffer(this))return this.byteOffset}});function o(k){if(k>s)throw new RangeError('The value "'+k+'" is invalid for option "size"');const _=new Uint8Array(k);return Object.setPrototypeOf(_,a.prototype),_}function a(k,_,A){if(typeof k=="number"){if(typeof _=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(k)}return c(k,_,A)}a.poolSize=8192;function c(k,_,A){if(typeof k=="string")return m(k,_);if(ArrayBuffer.isView(k))return g(k);if(k==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k);if(Y(k,ArrayBuffer)||k&&Y(k.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Y(k,SharedArrayBuffer)||k&&Y(k.buffer,SharedArrayBuffer)))return v(k,_,A);if(typeof k=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const L=k.valueOf&&k.valueOf();if(L!=null&&L!==k)return a.from(L,_,A);const ee=y(k);if(ee)return ee;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof k[Symbol.toPrimitive]=="function")return a.from(k[Symbol.toPrimitive]("string"),_,A);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof k)}a.from=function(k,_,A){return c(k,_,A)},Object.setPrototypeOf(a.prototype,Uint8Array.prototype),Object.setPrototypeOf(a,Uint8Array);function l(k){if(typeof k!="number")throw new TypeError('"size" argument must be of type number');if(k<0)throw new RangeError('The value "'+k+'" is invalid for option "size"')}function p(k,_,A){return l(k),k<=0?o(k):_!==void 0?typeof A=="string"?o(k).fill(_,A):o(k).fill(_):o(k)}a.alloc=function(k,_,A){return p(k,_,A)};function f(k){return l(k),o(k<0?0:E(k)|0)}a.allocUnsafe=function(k){return f(k)},a.allocUnsafeSlow=function(k){return f(k)};function m(k,_){if((typeof _!="string"||_==="")&&(_="utf8"),!a.isEncoding(_))throw new TypeError("Unknown encoding: "+_);const A=w(k,_)|0;let L=o(A);const ee=L.write(k,_);return ee!==A&&(L=L.slice(0,ee)),L}function d(k){const _=k.length<0?0:E(k.length)|0,A=o(_);for(let L=0;L<_;L+=1)A[L]=k[L]&255;return A}function g(k){if(Y(k,Uint8Array)){const _=new Uint8Array(k);return v(_.buffer,_.byteOffset,_.byteLength)}return d(k)}function v(k,_,A){if(_<0||k.byteLength<_)throw new RangeError('"offset" is outside of buffer bounds');if(k.byteLength<_+(A||0))throw new RangeError('"length" is outside of buffer bounds');let L;return _===void 0&&A===void 0?L=new Uint8Array(k):A===void 0?L=new Uint8Array(k,_):L=new Uint8Array(k,_,A),Object.setPrototypeOf(L,a.prototype),L}function y(k){if(a.isBuffer(k)){const _=E(k.length)|0,A=o(_);return A.length===0||k.copy(A,0,0,_),A}if(k.length!==void 0)return typeof k.length!="number"||fe(k.length)?o(0):d(k);if(k.type==="Buffer"&&Array.isArray(k.data))return d(k.data)}function E(k){if(k>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return k|0}function S(k){return+k!=k&&(k=0),a.alloc(+k)}a.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==a.prototype},a.compare=function(_,A){if(Y(_,Uint8Array)&&(_=a.from(_,_.offset,_.byteLength)),Y(A,Uint8Array)&&(A=a.from(A,A.offset,A.byteLength)),!a.isBuffer(_)||!a.isBuffer(A))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===A)return 0;let L=_.length,ee=A.length;for(let he=0,ye=Math.min(L,ee);he<ye;++he)if(_[he]!==A[he]){L=_[he],ee=A[he];break}return L<ee?-1:ee<L?1:0},a.isEncoding=function(_){switch(String(_).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},a.concat=function(_,A){if(!Array.isArray(_))throw new TypeError('"list" argument must be an Array of Buffers');if(_.length===0)return a.alloc(0);let L;if(A===void 0)for(A=0,L=0;L<_.length;++L)A+=_[L].length;const ee=a.allocUnsafe(A);let he=0;for(L=0;L<_.length;++L){let ye=_[L];if(Y(ye,Uint8Array))he+ye.length>ee.length?(a.isBuffer(ye)||(ye=a.from(ye)),ye.copy(ee,he)):Uint8Array.prototype.set.call(ee,ye,he);else if(a.isBuffer(ye))ye.copy(ee,he);else throw new TypeError('"list" argument must be an Array of Buffers');he+=ye.length}return ee};function w(k,_){if(a.isBuffer(k))return k.length;if(ArrayBuffer.isView(k)||Y(k,ArrayBuffer))return k.byteLength;if(typeof k!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof k);const A=k.length,L=arguments.length>2&&arguments[2]===!0;if(!L&&A===0)return 0;let ee=!1;for(;;)switch(_){case"ascii":case"latin1":case"binary":return A;case"utf8":case"utf-8":return rt(k).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A*2;case"hex":return A>>>1;case"base64":return $(k).length;default:if(ee)return L?-1:rt(k).length;_=(""+_).toLowerCase(),ee=!0}}a.byteLength=w;function x(k,_,A){let L=!1;if((_===void 0||_<0)&&(_=0),_>this.length||((A===void 0||A>this.length)&&(A=this.length),A<=0)||(A>>>=0,_>>>=0,A<=_))return"";for(k||(k="utf8");;)switch(k){case"hex":return oe(this,_,A);case"utf8":case"utf-8":return Q(this,_,A);case"ascii":return ce(this,_,A);case"latin1":case"binary":return ue(this,_,A);case"base64":return F(this,_,A);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return G(this,_,A);default:if(L)throw new TypeError("Unknown encoding: "+k);k=(k+"").toLowerCase(),L=!0}}a.prototype._isBuffer=!0;function I(k,_,A){const L=k[_];k[_]=k[A],k[A]=L}a.prototype.swap16=function(){const _=this.length;if(_%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let A=0;A<_;A+=2)I(this,A,A+1);return this},a.prototype.swap32=function(){const _=this.length;if(_%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let A=0;A<_;A+=4)I(this,A,A+3),I(this,A+1,A+2);return this},a.prototype.swap64=function(){const _=this.length;if(_%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let A=0;A<_;A+=8)I(this,A,A+7),I(this,A+1,A+6),I(this,A+2,A+5),I(this,A+3,A+4);return this},a.prototype.toString=function(){const _=this.length;return _===0?"":arguments.length===0?Q(this,0,_):x.apply(this,arguments)},a.prototype.toLocaleString=a.prototype.toString,a.prototype.equals=function(_){if(!a.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:a.compare(this,_)===0},a.prototype.inspect=function(){let _="";const A=t.INSPECT_MAX_BYTES;return _=this.toString("hex",0,A).replace(/(.{2})/g,"$1 ").trim(),this.length>A&&(_+=" ... "),"<Buffer "+_+">"},n&&(a.prototype[n]=a.prototype.inspect),a.prototype.compare=function(_,A,L,ee,he){if(Y(_,Uint8Array)&&(_=a.from(_,_.offset,_.byteLength)),!a.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(A===void 0&&(A=0),L===void 0&&(L=_?_.length:0),ee===void 0&&(ee=0),he===void 0&&(he=this.length),A<0||L>_.length||ee<0||he>this.length)throw new RangeError("out of range index");if(ee>=he&&A>=L)return 0;if(ee>=he)return-1;if(A>=L)return 1;if(A>>>=0,L>>>=0,ee>>>=0,he>>>=0,this===_)return 0;let ye=he-ee,Je=L-A;const We=Math.min(ye,Je),ut=this.slice(ee,he),tt=_.slice(A,L);for(let dt=0;dt<We;++dt)if(ut[dt]!==tt[dt]){ye=ut[dt],Je=tt[dt];break}return ye<Je?-1:Je<ye?1:0};function T(k,_,A,L,ee){if(k.length===0)return-1;if(typeof A=="string"?(L=A,A=0):A>2147483647?A=2147483647:A<-2147483648&&(A=-2147483648),A=+A,fe(A)&&(A=ee?0:k.length-1),A<0&&(A=k.length+A),A>=k.length){if(ee)return-1;A=k.length-1}else if(A<0)if(ee)A=0;else return-1;if(typeof _=="string"&&(_=a.from(_,L)),a.isBuffer(_))return _.length===0?-1:D(k,_,A,L,ee);if(typeof _=="number")return _=_&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(k,_,A):Uint8Array.prototype.lastIndexOf.call(k,_,A):D(k,[_],A,L,ee);throw new TypeError("val must be string, number or Buffer")}function D(k,_,A,L,ee){let he=1,ye=k.length,Je=_.length;if(L!==void 0&&(L=String(L).toLowerCase(),L==="ucs2"||L==="ucs-2"||L==="utf16le"||L==="utf-16le")){if(k.length<2||_.length<2)return-1;he=2,ye/=2,Je/=2,A/=2}function We(tt,dt){return he===1?tt[dt]:tt.readUInt16BE(dt*he)}let ut;if(ee){let tt=-1;for(ut=A;ut<ye;ut++)if(We(k,ut)===We(_,tt===-1?0:ut-tt)){if(tt===-1&&(tt=ut),ut-tt+1===Je)return tt*he}else tt!==-1&&(ut-=ut-tt),tt=-1}else for(A+Je>ye&&(A=ye-Je),ut=A;ut>=0;ut--){let tt=!0;for(let dt=0;dt<Je;dt++)if(We(k,ut+dt)!==We(_,dt)){tt=!1;break}if(tt)return ut}return-1}a.prototype.includes=function(_,A,L){return this.indexOf(_,A,L)!==-1},a.prototype.indexOf=function(_,A,L){return T(this,_,A,L,!0)},a.prototype.lastIndexOf=function(_,A,L){return T(this,_,A,L,!1)};function B(k,_,A,L){A=Number(A)||0;const ee=k.length-A;L?(L=Number(L),L>ee&&(L=ee)):L=ee;const he=_.length;L>he/2&&(L=he/2);let ye;for(ye=0;ye<L;++ye){const Je=parseInt(_.substr(ye*2,2),16);if(fe(Je))return ye;k[A+ye]=Je}return ye}function P(k,_,A,L){return z(rt(_,k.length-A),k,A,L)}function Z(k,_,A,L){return z(U(_),k,A,L)}function V(k,_,A,L){return z($(_),k,A,L)}function J(k,_,A,L){return z(O(_,k.length-A),k,A,L)}a.prototype.write=function(_,A,L,ee){if(A===void 0)ee="utf8",L=this.length,A=0;else if(L===void 0&&typeof A=="string")ee=A,L=this.length,A=0;else if(isFinite(A))A=A>>>0,isFinite(L)?(L=L>>>0,ee===void 0&&(ee="utf8")):(ee=L,L=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const he=this.length-A;if((L===void 0||L>he)&&(L=he),_.length>0&&(L<0||A<0)||A>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");let ye=!1;for(;;)switch(ee){case"hex":return B(this,_,A,L);case"utf8":case"utf-8":return P(this,_,A,L);case"ascii":case"latin1":case"binary":return Z(this,_,A,L);case"base64":return V(this,_,A,L);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,_,A,L);default:if(ye)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),ye=!0}},a.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function F(k,_,A){return _===0&&A===k.length?e.fromByteArray(k):e.fromByteArray(k.slice(_,A))}function Q(k,_,A){A=Math.min(k.length,A);const L=[];let ee=_;for(;ee<A;){const he=k[ee];let ye=null,Je=he>239?4:he>223?3:he>191?2:1;if(ee+Je<=A){let We,ut,tt,dt;switch(Je){case 1:he<128&&(ye=he);break;case 2:We=k[ee+1],(We&192)===128&&(dt=(he&31)<<6|We&63,dt>127&&(ye=dt));break;case 3:We=k[ee+1],ut=k[ee+2],(We&192)===128&&(ut&192)===128&&(dt=(he&15)<<12|(We&63)<<6|ut&63,dt>2047&&(dt<55296||dt>57343)&&(ye=dt));break;case 4:We=k[ee+1],ut=k[ee+2],tt=k[ee+3],(We&192)===128&&(ut&192)===128&&(tt&192)===128&&(dt=(he&15)<<18|(We&63)<<12|(ut&63)<<6|tt&63,dt>65535&&dt<1114112&&(ye=dt))}}ye===null?(ye=65533,Je=1):ye>65535&&(ye-=65536,L.push(ye>>>10&1023|55296),ye=56320|ye&1023),L.push(ye),ee+=Je}return re(L)}const se=4096;function re(k){const _=k.length;if(_<=se)return String.fromCharCode.apply(String,k);let A="",L=0;for(;L<_;)A+=String.fromCharCode.apply(String,k.slice(L,L+=se));return A}function ce(k,_,A){let L="";A=Math.min(k.length,A);for(let ee=_;ee<A;++ee)L+=String.fromCharCode(k[ee]&127);return L}function ue(k,_,A){let L="";A=Math.min(k.length,A);for(let ee=_;ee<A;++ee)L+=String.fromCharCode(k[ee]);return L}function oe(k,_,A){const L=k.length;(!_||_<0)&&(_=0),(!A||A<0||A>L)&&(A=L);let ee="";for(let he=_;he<A;++he)ee+=me[k[he]];return ee}function G(k,_,A){const L=k.slice(_,A);let ee="";for(let he=0;he<L.length-1;he+=2)ee+=String.fromCharCode(L[he]+L[he+1]*256);return ee}a.prototype.slice=function(_,A){const L=this.length;_=~~_,A=A===void 0?L:~~A,_<0?(_+=L,_<0&&(_=0)):_>L&&(_=L),A<0?(A+=L,A<0&&(A=0)):A>L&&(A=L),A<_&&(A=_);const ee=this.subarray(_,A);return Object.setPrototypeOf(ee,a.prototype),ee};function ie(k,_,A){if(k%1!==0||k<0)throw new RangeError("offset is not uint");if(k+_>A)throw new RangeError("Trying to access beyond buffer length")}a.prototype.readUintLE=a.prototype.readUIntLE=function(_,A,L){_=_>>>0,A=A>>>0,L||ie(_,A,this.length);let ee=this[_],he=1,ye=0;for(;++ye<A&&(he*=256);)ee+=this[_+ye]*he;return ee},a.prototype.readUintBE=a.prototype.readUIntBE=function(_,A,L){_=_>>>0,A=A>>>0,L||ie(_,A,this.length);let ee=this[_+--A],he=1;for(;A>0&&(he*=256);)ee+=this[_+--A]*he;return ee},a.prototype.readUint8=a.prototype.readUInt8=function(_,A){return _=_>>>0,A||ie(_,1,this.length),this[_]},a.prototype.readUint16LE=a.prototype.readUInt16LE=function(_,A){return _=_>>>0,A||ie(_,2,this.length),this[_]|this[_+1]<<8},a.prototype.readUint16BE=a.prototype.readUInt16BE=function(_,A){return _=_>>>0,A||ie(_,2,this.length),this[_]<<8|this[_+1]},a.prototype.readUint32LE=a.prototype.readUInt32LE=function(_,A){return _=_>>>0,A||ie(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},a.prototype.readUint32BE=a.prototype.readUInt32BE=function(_,A){return _=_>>>0,A||ie(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},a.prototype.readBigUInt64LE=Ae(function(_){_=_>>>0,$e(_,"offset");const A=this[_],L=this[_+7];(A===void 0||L===void 0)&&ze(_,this.length-8);const ee=A+this[++_]*2**8+this[++_]*2**16+this[++_]*2**24,he=this[++_]+this[++_]*2**8+this[++_]*2**16+L*2**24;return BigInt(ee)+(BigInt(he)<<BigInt(32))}),a.prototype.readBigUInt64BE=Ae(function(_){_=_>>>0,$e(_,"offset");const A=this[_],L=this[_+7];(A===void 0||L===void 0)&&ze(_,this.length-8);const ee=A*2**24+this[++_]*2**16+this[++_]*2**8+this[++_],he=this[++_]*2**24+this[++_]*2**16+this[++_]*2**8+L;return(BigInt(ee)<<BigInt(32))+BigInt(he)}),a.prototype.readIntLE=function(_,A,L){_=_>>>0,A=A>>>0,L||ie(_,A,this.length);let ee=this[_],he=1,ye=0;for(;++ye<A&&(he*=256);)ee+=this[_+ye]*he;return he*=128,ee>=he&&(ee-=Math.pow(2,8*A)),ee},a.prototype.readIntBE=function(_,A,L){_=_>>>0,A=A>>>0,L||ie(_,A,this.length);let ee=A,he=1,ye=this[_+--ee];for(;ee>0&&(he*=256);)ye+=this[_+--ee]*he;return he*=128,ye>=he&&(ye-=Math.pow(2,8*A)),ye},a.prototype.readInt8=function(_,A){return _=_>>>0,A||ie(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},a.prototype.readInt16LE=function(_,A){_=_>>>0,A||ie(_,2,this.length);const L=this[_]|this[_+1]<<8;return L&32768?L|4294901760:L},a.prototype.readInt16BE=function(_,A){_=_>>>0,A||ie(_,2,this.length);const L=this[_+1]|this[_]<<8;return L&32768?L|4294901760:L},a.prototype.readInt32LE=function(_,A){return _=_>>>0,A||ie(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},a.prototype.readInt32BE=function(_,A){return _=_>>>0,A||ie(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},a.prototype.readBigInt64LE=Ae(function(_){_=_>>>0,$e(_,"offset");const A=this[_],L=this[_+7];(A===void 0||L===void 0)&&ze(_,this.length-8);const ee=this[_+4]+this[_+5]*2**8+this[_+6]*2**16+(L<<24);return(BigInt(ee)<<BigInt(32))+BigInt(A+this[++_]*2**8+this[++_]*2**16+this[++_]*2**24)}),a.prototype.readBigInt64BE=Ae(function(_){_=_>>>0,$e(_,"offset");const A=this[_],L=this[_+7];(A===void 0||L===void 0)&&ze(_,this.length-8);const ee=(A<<24)+this[++_]*2**16+this[++_]*2**8+this[++_];return(BigInt(ee)<<BigInt(32))+BigInt(this[++_]*2**24+this[++_]*2**16+this[++_]*2**8+L)}),a.prototype.readFloatLE=function(_,A){return _=_>>>0,A||ie(_,4,this.length),r.read(this,_,!0,23,4)},a.prototype.readFloatBE=function(_,A){return _=_>>>0,A||ie(_,4,this.length),r.read(this,_,!1,23,4)},a.prototype.readDoubleLE=function(_,A){return _=_>>>0,A||ie(_,8,this.length),r.read(this,_,!0,52,8)},a.prototype.readDoubleBE=function(_,A){return _=_>>>0,A||ie(_,8,this.length),r.read(this,_,!1,52,8)};function pe(k,_,A,L,ee,he){if(!a.isBuffer(k))throw new TypeError('"buffer" argument must be a Buffer instance');if(_>ee||_<he)throw new RangeError('"value" argument is out of bounds');if(A+L>k.length)throw new RangeError("Index out of range")}a.prototype.writeUintLE=a.prototype.writeUIntLE=function(_,A,L,ee){if(_=+_,A=A>>>0,L=L>>>0,!ee){const Je=Math.pow(2,8*L)-1;pe(this,_,A,L,Je,0)}let he=1,ye=0;for(this[A]=_&255;++ye<L&&(he*=256);)this[A+ye]=_/he&255;return A+L},a.prototype.writeUintBE=a.prototype.writeUIntBE=function(_,A,L,ee){if(_=+_,A=A>>>0,L=L>>>0,!ee){const Je=Math.pow(2,8*L)-1;pe(this,_,A,L,Je,0)}let he=L-1,ye=1;for(this[A+he]=_&255;--he>=0&&(ye*=256);)this[A+he]=_/ye&255;return A+L},a.prototype.writeUint8=a.prototype.writeUInt8=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,1,255,0),this[A]=_&255,A+1},a.prototype.writeUint16LE=a.prototype.writeUInt16LE=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,2,65535,0),this[A]=_&255,this[A+1]=_>>>8,A+2},a.prototype.writeUint16BE=a.prototype.writeUInt16BE=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,2,65535,0),this[A]=_>>>8,this[A+1]=_&255,A+2},a.prototype.writeUint32LE=a.prototype.writeUInt32LE=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,4,4294967295,0),this[A+3]=_>>>24,this[A+2]=_>>>16,this[A+1]=_>>>8,this[A]=_&255,A+4},a.prototype.writeUint32BE=a.prototype.writeUInt32BE=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,4,4294967295,0),this[A]=_>>>24,this[A+1]=_>>>16,this[A+2]=_>>>8,this[A+3]=_&255,A+4};function X(k,_,A,L,ee){_e(_,L,ee,k,A,7);let he=Number(_&BigInt(4294967295));k[A++]=he,he=he>>8,k[A++]=he,he=he>>8,k[A++]=he,he=he>>8,k[A++]=he;let ye=Number(_>>BigInt(32)&BigInt(4294967295));return k[A++]=ye,ye=ye>>8,k[A++]=ye,ye=ye>>8,k[A++]=ye,ye=ye>>8,k[A++]=ye,A}function le(k,_,A,L,ee){_e(_,L,ee,k,A,7);let he=Number(_&BigInt(4294967295));k[A+7]=he,he=he>>8,k[A+6]=he,he=he>>8,k[A+5]=he,he=he>>8,k[A+4]=he;let ye=Number(_>>BigInt(32)&BigInt(4294967295));return k[A+3]=ye,ye=ye>>8,k[A+2]=ye,ye=ye>>8,k[A+1]=ye,ye=ye>>8,k[A]=ye,A+8}a.prototype.writeBigUInt64LE=Ae(function(_,A=0){return X(this,_,A,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeBigUInt64BE=Ae(function(_,A=0){return le(this,_,A,BigInt(0),BigInt("0xffffffffffffffff"))}),a.prototype.writeIntLE=function(_,A,L,ee){if(_=+_,A=A>>>0,!ee){const We=Math.pow(2,8*L-1);pe(this,_,A,L,We-1,-We)}let he=0,ye=1,Je=0;for(this[A]=_&255;++he<L&&(ye*=256);)_<0&&Je===0&&this[A+he-1]!==0&&(Je=1),this[A+he]=(_/ye>>0)-Je&255;return A+L},a.prototype.writeIntBE=function(_,A,L,ee){if(_=+_,A=A>>>0,!ee){const We=Math.pow(2,8*L-1);pe(this,_,A,L,We-1,-We)}let he=L-1,ye=1,Je=0;for(this[A+he]=_&255;--he>=0&&(ye*=256);)_<0&&Je===0&&this[A+he+1]!==0&&(Je=1),this[A+he]=(_/ye>>0)-Je&255;return A+L},a.prototype.writeInt8=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,1,127,-128),_<0&&(_=255+_+1),this[A]=_&255,A+1},a.prototype.writeInt16LE=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,2,32767,-32768),this[A]=_&255,this[A+1]=_>>>8,A+2},a.prototype.writeInt16BE=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,2,32767,-32768),this[A]=_>>>8,this[A+1]=_&255,A+2},a.prototype.writeInt32LE=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,4,2147483647,-2147483648),this[A]=_&255,this[A+1]=_>>>8,this[A+2]=_>>>16,this[A+3]=_>>>24,A+4},a.prototype.writeInt32BE=function(_,A,L){return _=+_,A=A>>>0,L||pe(this,_,A,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[A]=_>>>24,this[A+1]=_>>>16,this[A+2]=_>>>8,this[A+3]=_&255,A+4},a.prototype.writeBigInt64LE=Ae(function(_,A=0){return X(this,_,A,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),a.prototype.writeBigInt64BE=Ae(function(_,A=0){return le(this,_,A,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function q(k,_,A,L,ee,he){if(A+L>k.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("Index out of range")}function N(k,_,A,L,ee){return _=+_,A=A>>>0,ee||q(k,_,A,4),r.write(k,_,A,L,23,4),A+4}a.prototype.writeFloatLE=function(_,A,L){return N(this,_,A,!0,L)},a.prototype.writeFloatBE=function(_,A,L){return N(this,_,A,!1,L)};function M(k,_,A,L,ee){return _=+_,A=A>>>0,ee||q(k,_,A,8),r.write(k,_,A,L,52,8),A+8}a.prototype.writeDoubleLE=function(_,A,L){return M(this,_,A,!0,L)},a.prototype.writeDoubleBE=function(_,A,L){return M(this,_,A,!1,L)},a.prototype.copy=function(_,A,L,ee){if(!a.isBuffer(_))throw new TypeError("argument should be a Buffer");if(L||(L=0),!ee&&ee!==0&&(ee=this.length),A>=_.length&&(A=_.length),A||(A=0),ee>0&&ee<L&&(ee=L),ee===L||_.length===0||this.length===0)return 0;if(A<0)throw new RangeError("targetStart out of bounds");if(L<0||L>=this.length)throw new RangeError("Index out of range");if(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),_.length-A<ee-L&&(ee=_.length-A+L);const he=ee-L;return this===_&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(A,L,ee):Uint8Array.prototype.set.call(_,this.subarray(L,ee),A),he},a.prototype.fill=function(_,A,L,ee){if(typeof _=="string"){if(typeof A=="string"?(ee=A,A=0,L=this.length):typeof L=="string"&&(ee=L,L=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!a.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(_.length===1){const ye=_.charCodeAt(0);(ee==="utf8"&&ye<128||ee==="latin1")&&(_=ye)}}else typeof _=="number"?_=_&255:typeof _=="boolean"&&(_=Number(_));if(A<0||this.length<A||this.length<L)throw new RangeError("Out of range index");if(L<=A)return this;A=A>>>0,L=L===void 0?this.length:L>>>0,_||(_=0);let he;if(typeof _=="number")for(he=A;he<L;++he)this[he]=_;else{const ye=a.isBuffer(_)?_:a.from(_,ee),Je=ye.length;if(Je===0)throw new TypeError('The value "'+_+'" is invalid for argument "value"');for(he=0;he<L-A;++he)this[he+A]=ye[he%Je]}return this};const ae={};function ge(k,_,A){ae[k]=class extends A{constructor(){super(),Object.defineProperty(this,"message",{value:_.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${k}]`,this.stack,delete this.name}get code(){return k}set code(ee){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ee,writable:!0})}toString(){return`${this.name} [${k}]: ${this.message}`}}}ge("ERR_BUFFER_OUT_OF_BOUNDS",function(k){return k?`${k} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ge("ERR_INVALID_ARG_TYPE",function(k,_){return`The "${k}" argument must be of type number. Received type ${typeof _}`},TypeError),ge("ERR_OUT_OF_RANGE",function(k,_,A){let L=`The value of "${k}" is out of range.`,ee=A;return Number.isInteger(A)&&Math.abs(A)>2**32?ee=Ce(String(A)):typeof A=="bigint"&&(ee=String(A),(A>BigInt(2)**BigInt(32)||A<-(BigInt(2)**BigInt(32)))&&(ee=Ce(ee)),ee+="n"),L+=` It must be ${_}. Received ${ee}`,L},RangeError);function Ce(k){let _="",A=k.length;const L=k[0]==="-"?1:0;for(;A>=L+4;A-=3)_=`_${k.slice(A-3,A)}${_}`;return`${k.slice(0,A)}${_}`}function Re(k,_,A){$e(_,"offset"),(k[_]===void 0||k[_+A]===void 0)&&ze(_,k.length-(A+1))}function _e(k,_,A,L,ee,he){if(k>A||k<_){const ye=typeof _=="bigint"?"n":"";let Je;throw _===0||_===BigInt(0)?Je=`>= 0${ye} and < 2${ye} ** ${(he+1)*8}${ye}`:Je=`>= -(2${ye} ** ${(he+1)*8-1}${ye}) and < 2 ** ${(he+1)*8-1}${ye}`,new ae.ERR_OUT_OF_RANGE("value",Je,k)}Re(L,ee,he)}function $e(k,_){if(typeof k!="number")throw new ae.ERR_INVALID_ARG_TYPE(_,"number",k)}function ze(k,_,A){throw Math.floor(k)!==k?($e(k,A),new ae.ERR_OUT_OF_RANGE("offset","an integer",k)):_<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${_}`,k)}const De=/[^+/0-9A-Za-z-_]/g;function Ge(k){if(k=k.split("=")[0],k=k.trim().replace(De,""),k.length<2)return"";for(;k.length%4!==0;)k=k+"=";return k}function rt(k,_){_=_||1/0;let A;const L=k.length;let ee=null;const he=[];for(let ye=0;ye<L;++ye){if(A=k.charCodeAt(ye),A>55295&&A<57344){if(!ee){if(A>56319){(_-=3)>-1&&he.push(239,191,189);continue}else if(ye+1===L){(_-=3)>-1&&he.push(239,191,189);continue}ee=A;continue}if(A<56320){(_-=3)>-1&&he.push(239,191,189),ee=A;continue}A=(ee-55296<<10|A-56320)+65536}else ee&&(_-=3)>-1&&he.push(239,191,189);if(ee=null,A<128){if((_-=1)<0)break;he.push(A)}else if(A<2048){if((_-=2)<0)break;he.push(A>>6|192,A&63|128)}else if(A<65536){if((_-=3)<0)break;he.push(A>>12|224,A>>6&63|128,A&63|128)}else if(A<1114112){if((_-=4)<0)break;he.push(A>>18|240,A>>12&63|128,A>>6&63|128,A&63|128)}else throw new Error("Invalid code point")}return he}function U(k){const _=[];for(let A=0;A<k.length;++A)_.push(k.charCodeAt(A)&255);return _}function O(k,_){let A,L,ee;const he=[];for(let ye=0;ye<k.length&&!((_-=2)<0);++ye)A=k.charCodeAt(ye),L=A>>8,ee=A%256,he.push(ee),he.push(L);return he}function $(k){return e.toByteArray(Ge(k))}function z(k,_,A,L){let ee;for(ee=0;ee<L&&!(ee+A>=_.length||ee>=k.length);++ee)_[ee+A]=k[ee];return ee}function Y(k,_){return k instanceof _||k!=null&&k.constructor!=null&&k.constructor.name!=null&&k.constructor.name===_.name}function fe(k){return k!==k}const me=function(){const k="0123456789abcdef",_=new Array(256);for(let A=0;A<16;++A){const L=A*16;for(let ee=0;ee<16;++ee)_[L+ee]=k[A]+k[ee]}return _}();function Ae(k){return typeof BigInt>"u"?Ve:k}function Ve(){throw new Error("BigInt not supported")}})(UO);/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */(function(t,e){var r=UO,n=r.Buffer;function s(o,a){for(var c in o)a[c]=o[c]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(s(r,e),e.Buffer=i);function i(o,a,c){return n(o,a,c)}i.prototype=Object.create(n.prototype),s(n,i),i.from=function(o,a,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return n(o,a,c)},i.alloc=function(o,a,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var l=n(o);return a!==void 0?typeof c=="string"?l.fill(a,c):l.fill(a):l.fill(0),l},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(o)}})(ly,ly.exports);var j3=ly.exports,N3={}.toString,M3=Array.isArray||function(t){return N3.call(t)=="[object Array]"},Zc=TypeError,VO=Object,D3=Error,F3=EvalError,B3=RangeError,L3=ReferenceError,qO=SyntaxError,U3=URIError,V3=Math.abs,q3=Math.floor,z3=Math.max,J3=Math.min,W3=Math.pow,H3=Math.round,K3=Number.isNaN||function(e){return e!==e},G3=K3,Y3=function(e){return G3(e)||e===0?e:e<0?-1:1},X3=Object.getOwnPropertyDescriptor,hp=X3;if(hp)try{hp([],"length")}catch{hp=null}var Qc=hp,dp=Object.defineProperty||!1;if(dp)try{dp({},"a",{value:1})}catch{dp=!1}var uh=dp,am,Xw;function zO(){return Xw||(Xw=1,am=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var e={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var s=42;e[r]=s;for(var i in e)return!1;if(typeof Object.keys=="function"&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(e).length!==0)return!1;var o=Object.getOwnPropertySymbols(e);if(o.length!==1||o[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var a=Object.getOwnPropertyDescriptor(e,r);if(a.value!==s||a.enumerable!==!0)return!1}return!0}),am}var cm,Zw;function Z3(){if(Zw)return cm;Zw=1;var t=typeof Symbol<"u"&&Symbol,e=zO();return cm=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},cm}var lm,Qw;function JO(){return Qw||(Qw=1,lm=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),lm}var um,e1;function WO(){if(e1)return um;e1=1;var t=VO;return um=t.getPrototypeOf||null,um}var Q3="Function.prototype.bind called on incompatible ",eD=Object.prototype.toString,tD=Math.max,rD="[object Function]",t1=function(e,r){for(var n=[],s=0;s<e.length;s+=1)n[s]=e[s];for(var i=0;i<r.length;i+=1)n[i+e.length]=r[i];return n},nD=function(e,r){for(var n=[],s=r,i=0;s<e.length;s+=1,i+=1)n[i]=e[s];return n},sD=function(t,e){for(var r="",n=0;n<t.length;n+=1)r+=t[n],n+1<t.length&&(r+=e);return r},iD=function(e){var r=this;if(typeof r!="function"||eD.apply(r)!==rD)throw new TypeError(Q3+r);for(var n=nD(arguments,1),s,i=function(){if(this instanceof s){var p=r.apply(this,t1(n,arguments));return Object(p)===p?p:this}return r.apply(e,t1(n,arguments))},o=tD(0,r.length-n.length),a=[],c=0;c<o;c++)a[c]="$"+c;if(s=Function("binder","return function ("+sD(a,",")+"){ return binder.apply(this,arguments); }")(i),r.prototype){var l=function(){};l.prototype=r.prototype,s.prototype=new l,l.prototype=null}return s},oD=iD,el=Function.prototype.bind||oD,J0=Function.prototype.call,pm,r1;function W0(){return r1||(r1=1,pm=Function.prototype.apply),pm}var aD=typeof Reflect<"u"&&Reflect&&Reflect.apply,cD=el,lD=W0(),uD=J0,pD=aD,HO=pD||cD.call(uD,lD),fD=el,hD=Zc,dD=J0,mD=HO,H0=function(e){if(e.length<1||typeof e[0]!="function")throw new hD("a function is required");return mD(fD,dD,e)},fm,n1;function gD(){if(n1)return fm;n1=1;var t=H0,e=Qc,r;try{r=[].__proto__===Array.prototype}catch(o){if(!o||typeof o!="object"||!("code"in o)||o.code!=="ERR_PROTO_ACCESS")throw o}var n=!!r&&e&&e(Object.prototype,"__proto__"),s=Object,i=s.getPrototypeOf;return fm=n&&typeof n.get=="function"?t([n.get]):typeof i=="function"?function(a){return i(a==null?a:s(a))}:!1,fm}var hm,s1;function KO(){if(s1)return hm;s1=1;var t=JO(),e=WO(),r=gD();return hm=t?function(s){return t(s)}:e?function(s){if(!s||typeof s!="object"&&typeof s!="function")throw new TypeError("getProto: not an object");return e(s)}:r?function(s){return r(s)}:null,hm}var dm,i1;function yD(){if(i1)return dm;i1=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=el;return dm=r.call(t,e),dm}var ft,vD=VO,bD=D3,ED=F3,SD=B3,wD=L3,ma=qO,ia=Zc,_D=U3,xD=V3,AD=q3,OD=z3,CD=J3,$D=W3,TD=H3,ID=Y3,GO=Function,mm=function(t){try{return GO('"use strict"; return ('+t+").constructor;")()}catch{}},$c=Qc,RD=uh,gm=function(){throw new ia},PD=$c?function(){try{return arguments.callee,gm}catch{try{return $c(arguments,"callee").get}catch{return gm}}}():gm,Lo=Z3()(),lr=KO(),kD=WO(),jD=JO(),YO=W0(),tl=J0,Xo={},ND=typeof Uint8Array>"u"||!lr?ft:lr(Uint8Array),Ki={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?ft:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?ft:ArrayBuffer,"%ArrayIteratorPrototype%":Lo&&lr?lr([][Symbol.iterator]()):ft,"%AsyncFromSyncIteratorPrototype%":ft,"%AsyncFunction%":Xo,"%AsyncGenerator%":Xo,"%AsyncGeneratorFunction%":Xo,"%AsyncIteratorPrototype%":Xo,"%Atomics%":typeof Atomics>"u"?ft:Atomics,"%BigInt%":typeof BigInt>"u"?ft:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?ft:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?ft:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?ft:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":bD,"%eval%":eval,"%EvalError%":ED,"%Float16Array%":typeof Float16Array>"u"?ft:Float16Array,"%Float32Array%":typeof Float32Array>"u"?ft:Float32Array,"%Float64Array%":typeof Float64Array>"u"?ft:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?ft:FinalizationRegistry,"%Function%":GO,"%GeneratorFunction%":Xo,"%Int8Array%":typeof Int8Array>"u"?ft:Int8Array,"%Int16Array%":typeof Int16Array>"u"?ft:Int16Array,"%Int32Array%":typeof Int32Array>"u"?ft:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Lo&&lr?lr(lr([][Symbol.iterator]())):ft,"%JSON%":typeof JSON=="object"?JSON:ft,"%Map%":typeof Map>"u"?ft:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Lo||!lr?ft:lr(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":vD,"%Object.getOwnPropertyDescriptor%":$c,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?ft:Promise,"%Proxy%":typeof Proxy>"u"?ft:Proxy,"%RangeError%":SD,"%ReferenceError%":wD,"%Reflect%":typeof Reflect>"u"?ft:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?ft:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Lo||!lr?ft:lr(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?ft:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Lo&&lr?lr(""[Symbol.iterator]()):ft,"%Symbol%":Lo?Symbol:ft,"%SyntaxError%":ma,"%ThrowTypeError%":PD,"%TypedArray%":ND,"%TypeError%":ia,"%Uint8Array%":typeof Uint8Array>"u"?ft:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?ft:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?ft:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?ft:Uint32Array,"%URIError%":_D,"%WeakMap%":typeof WeakMap>"u"?ft:WeakMap,"%WeakRef%":typeof WeakRef>"u"?ft:WeakRef,"%WeakSet%":typeof WeakSet>"u"?ft:WeakSet,"%Function.prototype.call%":tl,"%Function.prototype.apply%":YO,"%Object.defineProperty%":RD,"%Object.getPrototypeOf%":kD,"%Math.abs%":xD,"%Math.floor%":AD,"%Math.max%":OD,"%Math.min%":CD,"%Math.pow%":$D,"%Math.round%":TD,"%Math.sign%":ID,"%Reflect.getPrototypeOf%":jD};if(lr)try{null.error}catch(t){var MD=lr(lr(t));Ki["%Error.prototype%"]=MD}var DD=function t(e){var r;if(e==="%AsyncFunction%")r=mm("async function () {}");else if(e==="%GeneratorFunction%")r=mm("function* () {}");else if(e==="%AsyncGeneratorFunction%")r=mm("async function* () {}");else if(e==="%AsyncGenerator%"){var n=t("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if(e==="%AsyncIteratorPrototype%"){var s=t("%AsyncGenerator%");s&&lr&&(r=lr(s.prototype))}return Ki[e]=r,r},o1={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},rl=el,Dp=yD(),FD=rl.call(tl,Array.prototype.concat),BD=rl.call(YO,Array.prototype.splice),a1=rl.call(tl,String.prototype.replace),Fp=rl.call(tl,String.prototype.slice),LD=rl.call(tl,RegExp.prototype.exec),UD=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,VD=/\\(\\)?/g,qD=function(e){var r=Fp(e,0,1),n=Fp(e,-1);if(r==="%"&&n!=="%")throw new ma("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&r!=="%")throw new ma("invalid intrinsic syntax, expected opening `%`");var s=[];return a1(e,UD,function(i,o,a,c){s[s.length]=a?a1(c,VD,"$1"):o||i}),s},zD=function(e,r){var n=e,s;if(Dp(o1,n)&&(s=o1[n],n="%"+s[0]+"%"),Dp(Ki,n)){var i=Ki[n];if(i===Xo&&(i=DD(n)),typeof i>"u"&&!r)throw new ia("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:s,name:n,value:i}}throw new ma("intrinsic "+e+" does not exist!")},XO=function(e,r){if(typeof e!="string"||e.length===0)throw new ia("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ia('"allowMissing" argument must be a boolean');if(LD(/^%?[^%]*%?$/,e)===null)throw new ma("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=qD(e),s=n.length>0?n[0]:"",i=zD("%"+s+"%",r),o=i.name,a=i.value,c=!1,l=i.alias;l&&(s=l[0],BD(n,FD([0,1],l)));for(var p=1,f=!0;p<n.length;p+=1){var m=n[p],d=Fp(m,0,1),g=Fp(m,-1);if((d==='"'||d==="'"||d==="`"||g==='"'||g==="'"||g==="`")&&d!==g)throw new ma("property names with quotes must have matching quotes");if((m==="constructor"||!f)&&(c=!0),s+="."+m,o="%"+s+"%",Dp(Ki,o))a=Ki[o];else if(a!=null){if(!(m in a)){if(!r)throw new ia("base intrinsic for "+e+" exists, but the property is not available.");return}if($c&&p+1>=n.length){var v=$c(a,m);f=!!v,f&&"get"in v&&!("originalValue"in v.get)?a=v.get:a=a[m]}else f=Dp(a,m),a=a[m];f&&!c&&(Ki[o]=a)}}return a},ZO=XO,QO=H0,JD=QO([ZO("%String.prototype.indexOf%")]),eC=function(e,r){var n=ZO(e,!!r);return typeof n=="function"&&JD(e,".prototype.")>-1?QO([n]):n},ym,c1;function WD(){if(c1)return ym;c1=1;var t=Function.prototype.toString,e=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof e=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},e(function(){throw 42},null,r)}catch(S){S!==n&&(e=null)}else e=null;var s=/^\s*class\b/,i=function(w){try{var x=t.call(w);return s.test(x)}catch{return!1}},o=function(w){try{return i(w)?!1:(t.call(w),!0)}catch{return!1}},a=Object.prototype.toString,c="[object Object]",l="[object Function]",p="[object GeneratorFunction]",f="[object HTMLAllCollection]",m="[object HTML document.all class]",d="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,v=!(0 in[,]),y=function(){return!1};if(typeof document=="object"){var E=document.all;a.call(E)===a.call(document.all)&&(y=function(w){if((v||!w)&&(typeof w>"u"||typeof w=="object"))try{var x=a.call(w);return(x===f||x===m||x===d||x===c)&&w("")==null}catch{}return!1})}return ym=e?function(w){if(y(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;try{e(w,null,r)}catch(x){if(x!==n)return!1}return!i(w)&&o(w)}:function(w){if(y(w))return!0;if(!w||typeof w!="function"&&typeof w!="object")return!1;if(g)return o(w);if(i(w))return!1;var x=a.call(w);return x!==l&&x!==p&&!/^\[object HTML/.test(x)?!1:o(w)},ym}var vm,l1;function HD(){if(l1)return vm;l1=1;var t=WD(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(c,l,p){for(var f=0,m=c.length;f<m;f++)r.call(c,f)&&(p==null?l(c[f],f,c):l.call(p,c[f],f,c))},s=function(c,l,p){for(var f=0,m=c.length;f<m;f++)p==null?l(c.charAt(f),f,c):l.call(p,c.charAt(f),f,c)},i=function(c,l,p){for(var f in c)r.call(c,f)&&(p==null?l(c[f],f,c):l.call(p,c[f],f,c))};function o(a){return e.call(a)==="[object Array]"}return vm=function(c,l,p){if(!t(l))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=p),o(c)?n(c,l,f):typeof c=="string"?s(c,l,f):i(c,l,f)},vm}var bm,u1;function KD(){return u1||(u1=1,bm=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),bm}var Em,p1;function GD(){if(p1)return Em;p1=1;var t=KD(),e=typeof globalThis>"u"?Xt:globalThis;return Em=function(){for(var n=[],s=0;s<t.length;s++)typeof e[t[s]]=="function"&&(n[n.length]=t[s]);return n},Em}var Sm={exports:{}},wm,f1;function YD(){if(f1)return wm;f1=1;var t=uh,e=qO,r=Zc,n=Qc;return wm=function(i,o,a){if(!i||typeof i!="object"&&typeof i!="function")throw new r("`obj` must be an object or a function`");if(typeof o!="string"&&typeof o!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var c=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,m=!!n&&n(i,o);if(t)t(i,o,{configurable:p===null&&m?m.configurable:!p,enumerable:c===null&&m?m.enumerable:!c,value:a,writable:l===null&&m?m.writable:!l});else if(f||!c&&!l&&!p)i[o]=a;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},wm}var _m,h1;function XD(){if(h1)return _m;h1=1;var t=uh,e=function(){return!!t};return e.hasArrayLengthDefineBug=function(){if(!t)return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},_m=e,_m}var xm,d1;function ZD(){if(d1)return xm;d1=1;var t=XO,e=YD(),r=XD()(),n=Qc,s=Zc,i=t("%Math.floor%");return xm=function(a,c){if(typeof a!="function")throw new s("`fn` is not a function");if(typeof c!="number"||c<0||c>4294967295||i(c)!==c)throw new s("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],p=!0,f=!0;if("length"in a&&n){var m=n(a,"length");m&&!m.configurable&&(p=!1),m&&!m.writable&&(f=!1)}return(p||f||!l)&&(r?e(a,"length",c,!0,!0):e(a,"length",c)),a},xm}var Am,m1;function QD(){if(m1)return Am;m1=1;var t=el,e=W0(),r=HO;return Am=function(){return r(t,e,arguments)},Am}var g1;function eF(){return g1||(g1=1,function(t){var e=ZD(),r=uh,n=H0,s=QD();t.exports=function(o){var a=n(arguments),c=o.length-(arguments.length-1);return e(a,1+(c>0?c:0),!0)},r?r(t.exports,"apply",{value:s}):t.exports.apply=s}(Sm)),Sm.exports}var Om,y1;function tF(){if(y1)return Om;y1=1;var t=zO();return Om=function(){return t()&&!!Symbol.toStringTag},Om}var Cm,v1;function rF(){if(v1)return Cm;v1=1;var t=HD(),e=GD(),r=eF(),n=eC,s=Qc,i=KO(),o=n("Object.prototype.toString"),a=tF()(),c=typeof globalThis>"u"?Xt:globalThis,l=e(),p=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(y,E){for(var S=0;S<y.length;S+=1)if(y[S]===E)return S;return-1},m={__proto__:null};a&&s&&i?t(l,function(v){var y=new c[v];if(Symbol.toStringTag in y&&i){var E=i(y),S=s(E,Symbol.toStringTag);if(!S&&E){var w=i(E);S=s(w,Symbol.toStringTag)}if(S&&S.get){var x=r(S.get);m["$"+v]=x}}}):t(l,function(v){var y=new c[v],E=y.slice||y.set;if(E){var S=r(E);m["$"+v]=S}});var d=function(y){var E=!1;return t(m,function(S,w){if(!E)try{"$"+S(y)===w&&(E=p(w,1))}catch{}}),E},g=function(y){var E=!1;return t(m,function(S,w){if(!E)try{S(y),E=p(w,1)}catch{}}),E};return Cm=function(y){if(!y||typeof y!="object")return!1;if(!a){var E=p(o(y),8,-1);return f(l,E)>-1?E:E!=="Object"?!1:g(y)}return s?d(y):null},Cm}var $m,b1;function nF(){if(b1)return $m;b1=1;var t=rF();return $m=function(r){return!!t(r)},$m}var sF=Zc,iF=eC,oF=iF("TypedArray.prototype.buffer",!0),aF=nF(),cF=oF||function(e){if(!aF(e))throw new sF("Not a Typed Array");return e.buffer},Fn=j3.Buffer,lF=M3,uF=cF,pF=ArrayBuffer.isView||function(e){try{return uF(e),!0}catch{return!1}},fF=typeof Uint8Array<"u",tC=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",hF=tC&&(Fn.prototype instanceof Uint8Array||Fn.TYPED_ARRAY_SUPPORT),rC=function(e,r){if(Fn.isBuffer(e))return e.constructor&&!("isBuffer"in e)?Fn.from(e):e;if(typeof e=="string")return Fn.from(e,r);if(tC&&pF(e)){if(e.byteLength===0)return Fn.alloc(0);if(hF){var n=Fn.from(e.buffer,e.byteOffset,e.byteLength);if(n.byteLength===e.byteLength)return n}var s=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),i=Fn.from(s);if(i.length===e.byteLength)return i}if(fF&&e instanceof Uint8Array)return Fn.from(e);var o=lF(e);if(o)for(var a=0;a<e.length;a+=1){var c=e[a];if(typeof c!="number"||c<0||c>255||~~c!==c)throw new RangeError("Array items must be numbers in the range 0-255.")}if(o||Fn.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e))return Fn.from(e);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')};const dF=Ze(rC),mF=z0({__proto__:null,default:dF},[rC]);function Pr(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var gF=typeof Symbol=="function"&&Symbol.observable||"@@observable",E1=gF,S1=()=>Math.random().toString(36).substring(7).split("").join("."),yF={INIT:`@@redux/INIT${S1()}`,REPLACE:`@@redux/REPLACE${S1()}`},w1=yF;function vF(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function nC(t,e,r){if(typeof t!="function")throw new Error(Pr(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(Pr(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(Pr(1));return r(nC)(t,e)}let n=t,s=e,i=new Map,o=i,a=0,c=!1;function l(){o===i&&(o=new Map,i.forEach((y,E)=>{o.set(E,y)}))}function p(){if(c)throw new Error(Pr(3));return s}function f(y){if(typeof y!="function")throw new Error(Pr(4));if(c)throw new Error(Pr(5));let E=!0;l();const S=a++;return o.set(S,y),function(){if(E){if(c)throw new Error(Pr(6));E=!1,l(),o.delete(S),i=null}}}function m(y){if(!vF(y))throw new Error(Pr(7));if(typeof y.type>"u")throw new Error(Pr(8));if(typeof y.type!="string")throw new Error(Pr(17));if(c)throw new Error(Pr(9));try{c=!0,s=n(s,y)}finally{c=!1}return(i=o).forEach(S=>{S()}),y}function d(y){if(typeof y!="function")throw new Error(Pr(10));n=y,m({type:w1.REPLACE})}function g(){const y=f;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Pr(11));function S(){const x=E;x.next&&x.next(p())}return S(),{unsubscribe:y(S)}},[E1](){return this}}}return m({type:w1.INIT}),{dispatch:m,subscribe:f,getState:p,replaceReducer:d,[E1]:g}}function _1(t,e){return function(...r){return e(t.apply(this,r))}}function bF(t,e){if(typeof t=="function")return _1(t,e);if(typeof t!="object"||t===null)throw new Error(Pr(16));const r={};for(const n in t){const s=t[n];typeof s=="function"&&(r[n]=_1(s,e))}return r}function K0(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...n)=>e(r(...n)))}function EF(...t){return e=>(r,n)=>{const s=e(r,n);let i=()=>{throw new Error(Pr(15))};const o={getState:s.getState,dispatch:(c,...l)=>i(c,...l)},a=t.map(c=>c(o));return i=K0(...a)(s.dispatch),{...s,dispatch:i}}}var sC={exports:{}};(function(t,e){(function(r,n){t.exports=n()})(Xt,function(){var r=Array.prototype.slice;function n(h,b){b&&(h.prototype=Object.create(b.prototype)),h.prototype.constructor=h}function s(h){return c(h)?h:$e(h)}n(i,s);function i(h){return l(h)?h:ze(h)}n(o,s);function o(h){return p(h)?h:De(h)}n(a,s);function a(h){return c(h)&&!f(h)?h:Ge(h)}function c(h){return!!(h&&h[d])}function l(h){return!!(h&&h[g])}function p(h){return!!(h&&h[v])}function f(h){return l(h)||p(h)}function m(h){return!!(h&&h[y])}s.isIterable=c,s.isKeyed=l,s.isIndexed=p,s.isAssociative=f,s.isOrdered=m,s.Keyed=i,s.Indexed=o,s.Set=a;var d="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",v="@@__IMMUTABLE_INDEXED__@@",y="@@__IMMUTABLE_ORDERED__@@",E="delete",S=5,w=1<<S,x=w-1,I={},T={value:!1},D={value:!1};function B(h){return h.value=!1,h}function P(h){h&&(h.value=!0)}function Z(){}function V(h,b){b=b||0;for(var C=Math.max(0,h.length-b),R=new Array(C),j=0;j<C;j++)R[j]=h[j+b];return R}function J(h){return h.size===void 0&&(h.size=h.__iterate(Q)),h.size}function F(h,b){if(typeof b!="number"){var C=b>>>0;if(""+C!==b||C===4294967295)return NaN;b=C}return b<0?J(h)+b:b}function Q(){return!0}function se(h,b,C){return(h===0||C!==void 0&&h<=-C)&&(b===void 0||C!==void 0&&b>=C)}function re(h,b){return ue(h,b,0)}function ce(h,b){return ue(h,b,b)}function ue(h,b,C){return h===void 0?C:h<0?Math.max(0,b+h):b===void 0?h:Math.min(b,h)}var oe=0,G=1,ie=2,pe=typeof Symbol=="function"&&Symbol.iterator,X="@@iterator",le=pe||X;function q(h){this.next=h}q.prototype.toString=function(){return"[Iterator]"},q.KEYS=oe,q.VALUES=G,q.ENTRIES=ie,q.prototype.inspect=q.prototype.toSource=function(){return this.toString()},q.prototype[le]=function(){return this};function N(h,b,C,R){var j=h===0?b:h===1?C:[b,C];return R?R.value=j:R={value:j,done:!1},R}function M(){return{value:void 0,done:!0}}function ae(h){return!!Re(h)}function ge(h){return h&&typeof h.next=="function"}function Ce(h){var b=Re(h);return b&&b.call(h)}function Re(h){var b=h&&(pe&&h[pe]||h[X]);if(typeof b=="function")return b}function _e(h){return h&&typeof h.length=="number"}n($e,s);function $e(h){return h==null?me():c(h)?h.toSeq():k(h)}$e.of=function(){return $e(arguments)},$e.prototype.toSeq=function(){return this},$e.prototype.toString=function(){return this.__toString("Seq {","}")},$e.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},$e.prototype.__iterate=function(h,b){return A(this,h,b,!0)},$e.prototype.__iterator=function(h,b){return L(this,h,b,!0)},n(ze,$e);function ze(h){return h==null?me().toKeyedSeq():c(h)?l(h)?h.toSeq():h.fromEntrySeq():Ae(h)}ze.prototype.toKeyedSeq=function(){return this},n(De,$e);function De(h){return h==null?me():c(h)?l(h)?h.entrySeq():h.toIndexedSeq():Ve(h)}De.of=function(){return De(arguments)},De.prototype.toIndexedSeq=function(){return this},De.prototype.toString=function(){return this.__toString("Seq [","]")},De.prototype.__iterate=function(h,b){return A(this,h,b,!1)},De.prototype.__iterator=function(h,b){return L(this,h,b,!1)},n(Ge,$e);function Ge(h){return(h==null?me():c(h)?l(h)?h.entrySeq():h:Ve(h)).toSetSeq()}Ge.of=function(){return Ge(arguments)},Ge.prototype.toSetSeq=function(){return this},$e.isSeq=Y,$e.Keyed=ze,$e.Set=Ge,$e.Indexed=De;var rt="@@__IMMUTABLE_SEQ__@@";$e.prototype[rt]=!0,n(U,De);function U(h){this._array=h,this.size=h.length}U.prototype.get=function(h,b){return this.has(h)?this._array[F(this,h)]:b},U.prototype.__iterate=function(h,b){for(var C=this._array,R=C.length-1,j=0;j<=R;j++)if(h(C[b?R-j:j],j,this)===!1)return j+1;return j},U.prototype.__iterator=function(h,b){var C=this._array,R=C.length-1,j=0;return new q(function(){return j>R?M():N(h,j,C[b?R-j++:j++])})},n(O,ze);function O(h){var b=Object.keys(h);this._object=h,this._keys=b,this.size=b.length}O.prototype.get=function(h,b){return b!==void 0&&!this.has(h)?b:this._object[h]},O.prototype.has=function(h){return this._object.hasOwnProperty(h)},O.prototype.__iterate=function(h,b){for(var C=this._object,R=this._keys,j=R.length-1,W=0;W<=j;W++){var ne=R[b?j-W:W];if(h(C[ne],ne,this)===!1)return W+1}return W},O.prototype.__iterator=function(h,b){var C=this._object,R=this._keys,j=R.length-1,W=0;return new q(function(){var ne=R[b?j-W:W];return W++>j?M():N(h,ne,C[ne])})},O.prototype[y]=!0,n($,De);function $(h){this._iterable=h,this.size=h.length||h.size}$.prototype.__iterateUncached=function(h,b){if(b)return this.cacheResult().__iterate(h,b);var C=this._iterable,R=Ce(C),j=0;if(ge(R))for(var W;!(W=R.next()).done&&h(W.value,j++,this)!==!1;);return j},$.prototype.__iteratorUncached=function(h,b){if(b)return this.cacheResult().__iterator(h,b);var C=this._iterable,R=Ce(C);if(!ge(R))return new q(M);var j=0;return new q(function(){var W=R.next();return W.done?W:N(h,j++,W.value)})},n(z,De);function z(h){this._iterator=h,this._iteratorCache=[]}z.prototype.__iterateUncached=function(h,b){if(b)return this.cacheResult().__iterate(h,b);for(var C=this._iterator,R=this._iteratorCache,j=0;j<R.length;)if(h(R[j],j++,this)===!1)return j;for(var W;!(W=C.next()).done;){var ne=W.value;if(R[j]=ne,h(ne,j++,this)===!1)break}return j},z.prototype.__iteratorUncached=function(h,b){if(b)return this.cacheResult().__iterator(h,b);var C=this._iterator,R=this._iteratorCache,j=0;return new q(function(){if(j>=R.length){var W=C.next();if(W.done)return W;R[j]=W.value}return N(h,j,R[j++])})};function Y(h){return!!(h&&h[rt])}var fe;function me(){return fe||(fe=new U([]))}function Ae(h){var b=Array.isArray(h)?new U(h).fromEntrySeq():ge(h)?new z(h).fromEntrySeq():ae(h)?new $(h).fromEntrySeq():typeof h=="object"?new O(h):void 0;if(!b)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+h);return b}function Ve(h){var b=_(h);if(!b)throw new TypeError("Expected Array or iterable object of values: "+h);return b}function k(h){var b=_(h)||typeof h=="object"&&new O(h);if(!b)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+h);return b}function _(h){return _e(h)?new U(h):ge(h)?new z(h):ae(h)?new $(h):void 0}function A(h,b,C,R){var j=h._cache;if(j){for(var W=j.length-1,ne=0;ne<=W;ne++){var de=j[C?W-ne:ne];if(b(de[1],R?de[0]:ne,h)===!1)return ne+1}return ne}return h.__iterateUncached(b,C)}function L(h,b,C,R){var j=h._cache;if(j){var W=j.length-1,ne=0;return new q(function(){var de=j[C?W-ne:ne];return ne++>W?M():N(b,R?de[0]:ne-1,de[1])})}return h.__iteratorUncached(b,C)}function ee(h,b){return b?he(b,h,"",{"":h}):ye(h)}function he(h,b,C,R){return Array.isArray(b)?h.call(R,C,De(b).map(function(j,W){return he(h,j,W,b)})):Je(b)?h.call(R,C,ze(b).map(function(j,W){return he(h,j,W,b)})):b}function ye(h){return Array.isArray(h)?De(h).map(ye).toList():Je(h)?ze(h).map(ye).toMap():h}function Je(h){return h&&(h.constructor===Object||h.constructor===void 0)}function We(h,b){if(h===b||h!==h&&b!==b)return!0;if(!h||!b)return!1;if(typeof h.valueOf=="function"&&typeof b.valueOf=="function"){if(h=h.valueOf(),b=b.valueOf(),h===b||h!==h&&b!==b)return!0;if(!h||!b)return!1}return!!(typeof h.equals=="function"&&typeof b.equals=="function"&&h.equals(b))}function ut(h,b){if(h===b)return!0;if(!c(b)||h.size!==void 0&&b.size!==void 0&&h.size!==b.size||h.__hash!==void 0&&b.__hash!==void 0&&h.__hash!==b.__hash||l(h)!==l(b)||p(h)!==p(b)||m(h)!==m(b))return!1;if(h.size===0&&b.size===0)return!0;var C=!f(h);if(m(h)){var R=h.entries();return b.every(function(Ee,Se){var xe=R.next().value;return xe&&We(xe[1],Ee)&&(C||We(xe[0],Se))})&&R.next().done}var j=!1;if(h.size===void 0)if(b.size===void 0)typeof h.cacheResult=="function"&&h.cacheResult();else{j=!0;var W=h;h=b,b=W}var ne=!0,de=b.__iterate(function(Ee,Se){if(C?!h.has(Ee):j?!We(Ee,h.get(Se,I)):!We(h.get(Se,I),Ee))return ne=!1,!1});return ne&&h.size===de}n(tt,De);function tt(h,b){if(!(this instanceof tt))return new tt(h,b);if(this._value=h,this.size=b===void 0?1/0:Math.max(0,b),this.size===0){if(dt)return dt;dt=this}}tt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},tt.prototype.get=function(h,b){return this.has(h)?this._value:b},tt.prototype.includes=function(h){return We(this._value,h)},tt.prototype.slice=function(h,b){var C=this.size;return se(h,b,C)?this:new tt(this._value,ce(b,C)-re(h,C))},tt.prototype.reverse=function(){return this},tt.prototype.indexOf=function(h){return We(this._value,h)?0:-1},tt.prototype.lastIndexOf=function(h){return We(this._value,h)?this.size:-1},tt.prototype.__iterate=function(h,b){for(var C=0;C<this.size;C++)if(h(this._value,C,this)===!1)return C+1;return C},tt.prototype.__iterator=function(h,b){var C=this,R=0;return new q(function(){return R<C.size?N(h,R++,C._value):M()})},tt.prototype.equals=function(h){return h instanceof tt?We(this._value,h._value):ut(h)};var dt;function Oo(h,b){if(!h)throw new Error(b)}n(Jt,De);function Jt(h,b,C){if(!(this instanceof Jt))return new Jt(h,b,C);if(Oo(C!==0,"Cannot step a Range by 0"),h=h||0,b===void 0&&(b=1/0),C=C===void 0?1:Math.abs(C),b<h&&(C=-C),this._start=h,this._end=b,this._step=C,this.size=Math.max(0,Math.ceil((b-h)/C-1)+1),this.size===0){if(ei)return ei;ei=this}}Jt.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},Jt.prototype.get=function(h,b){return this.has(h)?this._start+F(this,h)*this._step:b},Jt.prototype.includes=function(h){var b=(h-this._start)/this._step;return b>=0&&b<this.size&&b===Math.floor(b)},Jt.prototype.slice=function(h,b){return se(h,b,this.size)?this:(h=re(h,this.size),b=ce(b,this.size),b<=h?new Jt(0,0):new Jt(this.get(h,this._end),this.get(b,this._end),this._step))},Jt.prototype.indexOf=function(h){var b=h-this._start;if(b%this._step===0){var C=b/this._step;if(C>=0&&C<this.size)return C}return-1},Jt.prototype.lastIndexOf=function(h){return this.indexOf(h)},Jt.prototype.__iterate=function(h,b){for(var C=this.size-1,R=this._step,j=b?this._start+C*R:this._start,W=0;W<=C;W++){if(h(j,W,this)===!1)return W+1;j+=b?-R:R}return W},Jt.prototype.__iterator=function(h,b){var C=this.size-1,R=this._step,j=b?this._start+C*R:this._start,W=0;return new q(function(){var ne=j;return j+=b?-R:R,W>C?M():N(h,W++,ne)})},Jt.prototype.equals=function(h){return h instanceof Jt?this._start===h._start&&this._end===h._end&&this._step===h._step:ut(this,h)};var ei;n(Zn,s);function Zn(){throw TypeError("Abstract")}n(Pn,Zn);function Pn(){}n(ti,Zn);function ti(){}n(Co,Zn);function Co(){}Zn.Keyed=Pn,Zn.Indexed=ti,Zn.Set=Co;var jt=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(b,C){b=b|0,C=C|0;var R=b&65535,j=C&65535;return R*j+((b>>>16)*j+R*(C>>>16)<<16>>>0)|0};function Qn(h){return h>>>1&1073741824|h&3221225471}function Cr(h){if(h===!1||h===null||h===void 0||typeof h.valueOf=="function"&&(h=h.valueOf(),h===!1||h===null||h===void 0))return 0;if(h===!0)return 1;var b=typeof h;if(b==="number"){if(h!==h||h===1/0)return 0;var C=h|0;for(C!==h&&(C^=h*4294967295);h>4294967295;)h/=4294967295,C^=h;return Qn(C)}if(b==="string")return h.length>Iu?Cu(h):Pi(h);if(typeof h.hashCode=="function")return h.hashCode();if(b==="object")return $u(h);if(typeof h.toString=="function")return Pi(h.toString());throw new Error("Value type "+b+" cannot be hashed.")}function Cu(h){var b=Ro[h];return b===void 0&&(b=Pi(h),Io===Nn&&(Io=0,Ro={}),Io++,Ro[h]=b),b}function Pi(h){for(var b=0,C=0;C<h.length;C++)b=31*b+h.charCodeAt(C)|0;return Qn(b)}function $u(h){var b;if(kn&&(b=$o.get(h),b!==void 0)||(b=h[jn],b!==void 0)||!Tu&&(b=h.propertyIsEnumerable&&h.propertyIsEnumerable[jn],b!==void 0||(b=cn(h),b!==void 0)))return b;if(b=++To,To&1073741824&&(To=0),kn)$o.set(h,b);else{if(Ya!==void 0&&Ya(h)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Tu)Object.defineProperty(h,jn,{enumerable:!1,configurable:!1,writable:!1,value:b});else if(h.propertyIsEnumerable!==void 0&&h.propertyIsEnumerable===h.constructor.prototype.propertyIsEnumerable)h.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},h.propertyIsEnumerable[jn]=b;else if(h.nodeType!==void 0)h[jn]=b;else throw new Error("Unable to set a non-enumerable property on object.")}return b}var Ya=Object.isExtensible,Tu=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function cn(h){if(h&&h.nodeType>0)switch(h.nodeType){case 1:return h.uniqueID;case 9:return h.documentElement&&h.documentElement.uniqueID}}var kn=typeof WeakMap=="function",$o;kn&&($o=new WeakMap);var To=0,jn="__immutablehash__";typeof Symbol=="function"&&(jn=Symbol(jn));var Iu=16,Nn=255,Io=0,Ro={};function xr(h){Oo(h!==1/0,"Cannot perform this action with an infinite size.")}n(pt,Pn);function pt(h){return h==null?Br():Xa(h)&&!m(h)?h:Br().withMutations(function(b){var C=i(h);xr(C.size),C.forEach(function(R,j){return b.set(j,R)})})}pt.of=function(){var h=r.call(arguments,0);return Br().withMutations(function(b){for(var C=0;C<h.length;C+=2){if(C+1>=h.length)throw new Error("Missing value for key: "+h[C]);b.set(h[C],h[C+1])}})},pt.prototype.toString=function(){return this.__toString("Map {","}")},pt.prototype.get=function(h,b){return this._root?this._root.get(0,void 0,h,b):b},pt.prototype.set=function(h,b){return Za(this,h,b)},pt.prototype.setIn=function(h,b){return this.updateIn(h,I,function(){return b})},pt.prototype.remove=function(h){return Za(this,h,I)},pt.prototype.deleteIn=function(h){return this.updateIn(h,function(){return I})},pt.prototype.update=function(h,b,C){return arguments.length===1?h(this):this.updateIn([h],b,C)},pt.prototype.updateIn=function(h,b,C){C||(C=b,b=void 0);var R=hw(this,jw(h),b,C);return R===I?void 0:R},pt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Br()},pt.prototype.merge=function(){return Ru(this,void 0,arguments)},pt.prototype.mergeWith=function(h){var b=r.call(arguments,1);return Ru(this,h,b)},pt.prototype.mergeIn=function(h){var b=r.call(arguments,1);return this.updateIn(h,Br(),function(C){return typeof C.merge=="function"?C.merge.apply(C,b):b[b.length-1]})},pt.prototype.mergeDeep=function(){return Ru(this,uw,arguments)},pt.prototype.mergeDeepWith=function(h){var b=r.call(arguments,1);return Ru(this,pw(h),b)},pt.prototype.mergeDeepIn=function(h){var b=r.call(arguments,1);return this.updateIn(h,Br(),function(C){return typeof C.mergeDeep=="function"?C.mergeDeep.apply(C,b):b[b.length-1]})},pt.prototype.sort=function(h){return Yt(Mo(this,h))},pt.prototype.sortBy=function(h,b){return Yt(Mo(this,b,h))},pt.prototype.withMutations=function(h){var b=this.asMutable();return h(b),b.wasAltered()?b.__ensureOwner(this.__ownerID):this},pt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new Z)},pt.prototype.asImmutable=function(){return this.__ensureOwner()},pt.prototype.wasAltered=function(){return this.__altered},pt.prototype.__iterator=function(h,b){return new ar(this,h,b)},pt.prototype.__iterate=function(h,b){var C=this,R=0;return this._root&&this._root.iterate(function(j){return R++,h(j[1],j[0],C)},b),R},pt.prototype.__ensureOwner=function(h){return h===this.__ownerID?this:h?ki(this.size,this._root,h,this.__hash):(this.__ownerID=h,this.__altered=!1,this)};function Xa(h){return!!(h&&h[He])}pt.isMap=Xa;var He="@@__IMMUTABLE_MAP__@@",te=pt.prototype;te[He]=!0,te[E]=te.remove,te.removeIn=te.deleteIn;function Oe(h,b){this.ownerID=h,this.entries=b}Oe.prototype.get=function(h,b,C,R){for(var j=this.entries,W=0,ne=j.length;W<ne;W++)if(We(C,j[W][0]))return j[W][1];return R},Oe.prototype.update=function(h,b,C,R,j,W,ne){for(var de=j===I,Ee=this.entries,Se=0,xe=Ee.length;Se<xe&&!We(R,Ee[Se][0]);Se++);var Me=Se<xe;if(Me?Ee[Se][1]===j:de)return this;if(P(ne),(de||!Me)&&P(W),!(de&&Ee.length===1)){if(!Me&&!de&&Ee.length>=HM)return VM(h,Ee,R,j);var qe=h&&h===this.ownerID,Qe=qe?Ee:V(Ee);return Me?de?Se===xe-1?Qe.pop():Qe[Se]=Qe.pop():Qe[Se]=[R,j]:Qe.push([R,j]),qe?(this.entries=Qe,this):new Oe(h,Qe)}};function Be(h,b,C){this.ownerID=h,this.bitmap=b,this.nodes=C}Be.prototype.get=function(h,b,C,R){b===void 0&&(b=Cr(C));var j=1<<((h===0?b:b>>>h)&x),W=this.bitmap;return W&j?this.nodes[dw(W&j-1)].get(h+S,b,C,R):R},Be.prototype.update=function(h,b,C,R,j,W,ne){C===void 0&&(C=Cr(R));var de=(b===0?C:C>>>b)&x,Ee=1<<de,Se=this.bitmap,xe=(Se&Ee)!==0;if(!xe&&j===I)return this;var Me=dw(Se&Ee-1),qe=this.nodes,Qe=xe?qe[Me]:void 0,at=Wd(Qe,h,b+S,C,R,j,W,ne);if(at===Qe)return this;if(!xe&&at&&qe.length>=KM)return zM(h,qe,Se,de,at);if(xe&&!at&&qe.length===2&&lw(qe[Me^1]))return qe[Me^1];if(xe&&at&&qe.length===1&&lw(at))return at;var Lt=h&&h===this.ownerID,Mn=xe?at?Se:Se^Ee:Se|Ee,ns=xe?at?mw(qe,Me,at,Lt):WM(qe,Me,Lt):JM(qe,Me,at,Lt);return Lt?(this.bitmap=Mn,this.nodes=ns,this):new Be(h,Mn,ns)};function St(h,b,C){this.ownerID=h,this.count=b,this.nodes=C}St.prototype.get=function(h,b,C,R){b===void 0&&(b=Cr(C));var j=(h===0?b:b>>>h)&x,W=this.nodes[j];return W?W.get(h+S,b,C,R):R},St.prototype.update=function(h,b,C,R,j,W,ne){C===void 0&&(C=Cr(R));var de=(b===0?C:C>>>b)&x,Ee=j===I,Se=this.nodes,xe=Se[de];if(Ee&&!xe)return this;var Me=Wd(xe,h,b+S,C,R,j,W,ne);if(Me===xe)return this;var qe=this.count;if(!xe)qe++;else if(!Me&&(qe--,qe<GM))return qM(h,Se,qe,de);var Qe=h&&h===this.ownerID,at=mw(Se,de,Me,Qe);return Qe?(this.count=qe,this.nodes=at,this):new St(h,qe,at)};function qt(h,b,C){this.ownerID=h,this.keyHash=b,this.entries=C}qt.prototype.get=function(h,b,C,R){for(var j=this.entries,W=0,ne=j.length;W<ne;W++)if(We(C,j[W][0]))return j[W][1];return R},qt.prototype.update=function(h,b,C,R,j,W,ne){C===void 0&&(C=Cr(R));var de=j===I;if(C!==this.keyHash)return de?this:(P(ne),P(W),Hd(this,h,b,C,[R,j]));for(var Ee=this.entries,Se=0,xe=Ee.length;Se<xe&&!We(R,Ee[Se][0]);Se++);var Me=Se<xe;if(Me?Ee[Se][1]===j:de)return this;if(P(ne),(de||!Me)&&P(W),de&&xe===2)return new wt(h,this.keyHash,Ee[Se^1]);var qe=h&&h===this.ownerID,Qe=qe?Ee:V(Ee);return Me?de?Se===xe-1?Qe.pop():Qe[Se]=Qe.pop():Qe[Se]=[R,j]:Qe.push([R,j]),qe?(this.entries=Qe,this):new qt(h,this.keyHash,Qe)};function wt(h,b,C){this.ownerID=h,this.keyHash=b,this.entry=C}wt.prototype.get=function(h,b,C,R){return We(C,this.entry[0])?this.entry[1]:R},wt.prototype.update=function(h,b,C,R,j,W,ne){var de=j===I,Ee=We(R,this.entry[0]);if(Ee?j===this.entry[1]:de)return this;if(P(ne),de){P(W);return}return Ee?h&&h===this.ownerID?(this.entry[1]=j,this):new wt(h,this.keyHash,[R,j]):(P(W),Hd(this,h,b,Cr(R),[R,j]))},Oe.prototype.iterate=qt.prototype.iterate=function(h,b){for(var C=this.entries,R=0,j=C.length-1;R<=j;R++)if(h(C[b?j-R:R])===!1)return!1},Be.prototype.iterate=St.prototype.iterate=function(h,b){for(var C=this.nodes,R=0,j=C.length-1;R<=j;R++){var W=C[b?j-R:R];if(W&&W.iterate(h,b)===!1)return!1}},wt.prototype.iterate=function(h,b){return h(this.entry)},n(ar,q);function ar(h,b,C){this._type=b,this._reverse=C,this._stack=h._root&&Is(h._root)}ar.prototype.next=function(){for(var h=this._type,b=this._stack;b;){var C=b.node,R=b.index++,j;if(C.entry){if(R===0)return Kr(h,C.entry)}else if(C.entries){if(j=C.entries.length-1,R<=j)return Kr(h,C.entries[this._reverse?j-R:R])}else if(j=C.nodes.length-1,R<=j){var W=C.nodes[this._reverse?j-R:R];if(W){if(W.entry)return Kr(h,W.entry);b=this._stack=Is(W,b)}continue}b=this._stack=this._stack.__prev}return M()};function Kr(h,b){return N(h,b[0],b[1])}function Is(h,b){return{node:h,index:0,__prev:b}}function ki(h,b,C,R){var j=Object.create(te);return j.size=h,j._root=b,j.__ownerID=C,j.__hash=R,j.__altered=!1,j}var Qt;function Br(){return Qt||(Qt=ki(0))}function Za(h,b,C){var R,j;if(h._root){var W=B(T),ne=B(D);if(R=Wd(h._root,h.__ownerID,0,void 0,b,C,W,ne),!ne.value)return h;j=h.size+(W.value?C===I?-1:1:0)}else{if(C===I)return h;j=1,R=new Oe(h.__ownerID,[[b,C]])}return h.__ownerID?(h.size=j,h._root=R,h.__hash=void 0,h.__altered=!0,h):R?ki(j,R):Br()}function Wd(h,b,C,R,j,W,ne,de){return h?h.update(b,C,R,j,W,ne,de):W===I?h:(P(de),P(ne),new wt(b,R,[j,W]))}function lw(h){return h.constructor===wt||h.constructor===qt}function Hd(h,b,C,R,j){if(h.keyHash===R)return new qt(b,R,[h.entry,j]);var W=(C===0?h.keyHash:h.keyHash>>>C)&x,ne=(C===0?R:R>>>C)&x,de,Ee=W===ne?[Hd(h,b,C+S,R,j)]:(de=new wt(b,R,j),W<ne?[h,de]:[de,h]);return new Be(b,1<<W|1<<ne,Ee)}function VM(h,b,C,R){h||(h=new Z);for(var j=new wt(h,Cr(C),[C,R]),W=0;W<b.length;W++){var ne=b[W];j=j.update(h,0,void 0,ne[0],ne[1])}return j}function qM(h,b,C,R){for(var j=0,W=0,ne=new Array(C),de=0,Ee=1,Se=b.length;de<Se;de++,Ee<<=1){var xe=b[de];xe!==void 0&&de!==R&&(j|=Ee,ne[W++]=xe)}return new Be(h,j,ne)}function zM(h,b,C,R,j){for(var W=0,ne=new Array(w),de=0;C!==0;de++,C>>>=1)ne[de]=C&1?b[W++]:void 0;return ne[R]=j,new St(h,W+1,ne)}function Ru(h,b,C){for(var R=[],j=0;j<C.length;j++){var W=C[j],ne=i(W);c(W)||(ne=ne.map(function(de){return ee(de)})),R.push(ne)}return fw(h,b,R)}function uw(h,b,C){return h&&h.mergeDeep&&c(b)?h.mergeDeep(b):We(h,b)?h:b}function pw(h){return function(b,C,R){if(b&&b.mergeDeepWith&&c(C))return b.mergeDeepWith(h,C);var j=h(b,C,R);return We(b,j)?b:j}}function fw(h,b,C){return C=C.filter(function(R){return R.size!==0}),C.length===0?h:h.size===0&&!h.__ownerID&&C.length===1?h.constructor(C[0]):h.withMutations(function(R){for(var j=b?function(ne,de){R.update(de,I,function(Ee){return Ee===I?ne:b(Ee,ne,de)})}:function(ne,de){R.set(de,ne)},W=0;W<C.length;W++)C[W].forEach(j)})}function hw(h,b,C,R){var j=h===I,W=b.next();if(W.done){var ne=j?C:h,de=R(ne);return de===ne?h:de}Oo(j||h&&h.set,"invalid keyPath");var Ee=W.value,Se=j?I:h.get(Ee,I),xe=hw(Se,b,C,R);return xe===Se?h:xe===I?h.remove(Ee):(j?Br():h).set(Ee,xe)}function dw(h){return h=h-(h>>1&1431655765),h=(h&858993459)+(h>>2&858993459),h=h+(h>>4)&252645135,h=h+(h>>8),h=h+(h>>16),h&127}function mw(h,b,C,R){var j=R?h:V(h);return j[b]=C,j}function JM(h,b,C,R){var j=h.length+1;if(R&&b+1===j)return h[b]=C,h;for(var W=new Array(j),ne=0,de=0;de<j;de++)de===b?(W[de]=C,ne=-1):W[de]=h[de+ne];return W}function WM(h,b,C){var R=h.length-1;if(C&&b===R)return h.pop(),h;for(var j=new Array(R),W=0,ne=0;ne<R;ne++)ne===b&&(W=1),j[ne]=h[ne+W];return j}var HM=w/4,KM=w/2,GM=w/4;n(Nt,ti);function Nt(h){var b=Kd();if(h==null)return b;if(gw(h))return h;var C=o(h),R=C.size;return R===0?b:(xr(R),R>0&&R<w?ec(0,R,S,null,new ri(C.toArray())):b.withMutations(function(j){j.setSize(R),C.forEach(function(W,ne){return j.set(ne,W)})}))}Nt.of=function(){return this(arguments)},Nt.prototype.toString=function(){return this.__toString("List [","]")},Nt.prototype.get=function(h,b){if(h=F(this,h),h>=0&&h<this.size){h+=this._origin;var C=Ew(this,h);return C&&C.array[h&x]}return b},Nt.prototype.set=function(h,b){return YM(this,h,b)},Nt.prototype.remove=function(h){return this.has(h)?h===0?this.shift():h===this.size-1?this.pop():this.splice(h,1):this},Nt.prototype.insert=function(h,b){return this.splice(h,0,b)},Nt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=S,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Kd()},Nt.prototype.push=function(){var h=arguments,b=this.size;return this.withMutations(function(C){ni(C,0,b+h.length);for(var R=0;R<h.length;R++)C.set(b+R,h[R])})},Nt.prototype.pop=function(){return ni(this,0,-1)},Nt.prototype.unshift=function(){var h=arguments;return this.withMutations(function(b){ni(b,-h.length);for(var C=0;C<h.length;C++)b.set(C,h[C])})},Nt.prototype.shift=function(){return ni(this,1)},Nt.prototype.merge=function(){return Pu(this,void 0,arguments)},Nt.prototype.mergeWith=function(h){var b=r.call(arguments,1);return Pu(this,h,b)},Nt.prototype.mergeDeep=function(){return Pu(this,uw,arguments)},Nt.prototype.mergeDeepWith=function(h){var b=r.call(arguments,1);return Pu(this,pw(h),b)},Nt.prototype.setSize=function(h){return ni(this,0,h)},Nt.prototype.slice=function(h,b){var C=this.size;return se(h,b,C)?this:ni(this,re(h,C),ce(b,C))},Nt.prototype.__iterator=function(h,b){var C=0,R=vw(this,b);return new q(function(){var j=R();return j===Qa?M():N(h,C++,j)})},Nt.prototype.__iterate=function(h,b){for(var C=0,R=vw(this,b),j;(j=R())!==Qa&&h(j,C++,this)!==!1;);return C},Nt.prototype.__ensureOwner=function(h){return h===this.__ownerID?this:h?ec(this._origin,this._capacity,this._level,this._root,this._tail,h,this.__hash):(this.__ownerID=h,this)};function gw(h){return!!(h&&h[yw])}Nt.isList=gw;var yw="@@__IMMUTABLE_LIST__@@",$r=Nt.prototype;$r[yw]=!0,$r[E]=$r.remove,$r.setIn=te.setIn,$r.deleteIn=$r.removeIn=te.removeIn,$r.update=te.update,$r.updateIn=te.updateIn,$r.mergeIn=te.mergeIn,$r.mergeDeepIn=te.mergeDeepIn,$r.withMutations=te.withMutations,$r.asMutable=te.asMutable,$r.asImmutable=te.asImmutable,$r.wasAltered=te.wasAltered;function ri(h,b){this.array=h,this.ownerID=b}ri.prototype.removeBefore=function(h,b,C){if(C===b?1<<b:this.array.length===0)return this;var R=C>>>b&x;if(R>=this.array.length)return new ri([],h);var j=R===0,W;if(b>0){var ne=this.array[R];if(W=ne&&ne.removeBefore(h,b-S,C),W===ne&&j)return this}if(j&&!W)return this;var de=Po(this,h);if(!j)for(var Ee=0;Ee<R;Ee++)de.array[Ee]=void 0;return W&&(de.array[R]=W),de},ri.prototype.removeAfter=function(h,b,C){if(C===(b?1<<b:0)||this.array.length===0)return this;var R=C-1>>>b&x;if(R>=this.array.length)return this;var j;if(b>0){var W=this.array[R];if(j=W&&W.removeAfter(h,b-S,C),j===W&&R===this.array.length-1)return this}var ne=Po(this,h);return ne.array.splice(R+1),j&&(ne.array[R]=j),ne};var Qa={};function vw(h,b){var C=h._origin,R=h._capacity,j=tc(R),W=h._tail;return ne(h._root,h._level,0);function ne(Se,xe,Me){return xe===0?de(Se,Me):Ee(Se,xe,Me)}function de(Se,xe){var Me=xe===j?W&&W.array:Se&&Se.array,qe=xe>C?0:C-xe,Qe=R-xe;return Qe>w&&(Qe=w),function(){if(qe===Qe)return Qa;var at=b?--Qe:qe++;return Me&&Me[at]}}function Ee(Se,xe,Me){var qe,Qe=Se&&Se.array,at=Me>C?0:C-Me>>xe,Lt=(R-Me>>xe)+1;return Lt>w&&(Lt=w),function(){do{if(qe){var Mn=qe();if(Mn!==Qa)return Mn;qe=null}if(at===Lt)return Qa;var ns=b?--Lt:at++;qe=ne(Qe&&Qe[ns],xe-S,Me+(ns<<xe))}while(!0)}}}function ec(h,b,C,R,j,W,ne){var de=Object.create($r);return de.size=b-h,de._origin=h,de._capacity=b,de._level=C,de._root=R,de._tail=j,de.__ownerID=W,de.__hash=ne,de.__altered=!1,de}var bw;function Kd(){return bw||(bw=ec(0,0,S))}function YM(h,b,C){if(b=F(h,b),b!==b)return h;if(b>=h.size||b<0)return h.withMutations(function(ne){b<0?ni(ne,b).set(0,C):ni(ne,0,b+1).set(b,C)});b+=h._origin;var R=h._tail,j=h._root,W=B(D);return b>=tc(h._capacity)?R=Gd(R,h.__ownerID,0,b,C,W):j=Gd(j,h.__ownerID,h._level,b,C,W),W.value?h.__ownerID?(h._root=j,h._tail=R,h.__hash=void 0,h.__altered=!0,h):ec(h._origin,h._capacity,h._level,j,R):h}function Gd(h,b,C,R,j,W){var ne=R>>>C&x,de=h&&ne<h.array.length;if(!de&&j===void 0)return h;var Ee;if(C>0){var Se=h&&h.array[ne],xe=Gd(Se,b,C-S,R,j,W);return xe===Se?h:(Ee=Po(h,b),Ee.array[ne]=xe,Ee)}return de&&h.array[ne]===j?h:(P(W),Ee=Po(h,b),j===void 0&&ne===Ee.array.length-1?Ee.array.pop():Ee.array[ne]=j,Ee)}function Po(h,b){return b&&h&&b===h.ownerID?h:new ri(h?h.array.slice():[],b)}function Ew(h,b){if(b>=tc(h._capacity))return h._tail;if(b<1<<h._level+S){for(var C=h._root,R=h._level;C&&R>0;)C=C.array[b>>>R&x],R-=S;return C}}function ni(h,b,C){b!==void 0&&(b=b|0),C!==void 0&&(C=C|0);var R=h.__ownerID||new Z,j=h._origin,W=h._capacity,ne=j+b,de=C===void 0?W:C<0?W+C:j+C;if(ne===j&&de===W)return h;if(ne>=de)return h.clear();for(var Ee=h._level,Se=h._root,xe=0;ne+xe<0;)Se=new ri(Se&&Se.array.length?[void 0,Se]:[],R),Ee+=S,xe+=1<<Ee;xe&&(ne+=xe,j+=xe,de+=xe,W+=xe);for(var Me=tc(W),qe=tc(de);qe>=1<<Ee+S;)Se=new ri(Se&&Se.array.length?[Se]:[],R),Ee+=S;var Qe=h._tail,at=qe<Me?Ew(h,de-1):qe>Me?new ri([],R):Qe;if(Qe&&qe>Me&&ne<W&&Qe.array.length){Se=Po(Se,R);for(var Lt=Se,Mn=Ee;Mn>S;Mn-=S){var ns=Me>>>Mn&x;Lt=Lt.array[ns]=Po(Lt.array[ns],R)}Lt.array[Me>>>S&x]=Qe}if(de<W&&(at=at&&at.removeAfter(R,0,de)),ne>=qe)ne-=qe,de-=qe,Ee=S,Se=null,at=at&&at.removeBefore(R,0,ne);else if(ne>j||qe<Me){for(xe=0;Se;){var Bu=ne>>>Ee&x;if(Bu!==qe>>>Ee&x)break;Bu&&(xe+=(1<<Ee)*Bu),Ee-=S,Se=Se.array[Bu]}Se&&ne>j&&(Se=Se.removeBefore(R,Ee,ne-xe)),Se&&qe<Me&&(Se=Se.removeAfter(R,Ee,qe-xe)),xe&&(ne-=xe,de-=xe)}return h.__ownerID?(h.size=de-ne,h._origin=ne,h._capacity=de,h._level=Ee,h._root=Se,h._tail=at,h.__hash=void 0,h.__altered=!0,h):ec(ne,de,Ee,Se,at)}function Pu(h,b,C){for(var R=[],j=0,W=0;W<C.length;W++){var ne=C[W],de=o(ne);de.size>j&&(j=de.size),c(ne)||(de=de.map(function(Ee){return ee(Ee)})),R.push(de)}return j>h.size&&(h=h.setSize(j)),fw(h,b,R)}function tc(h){return h<w?0:h-1>>>S<<S}n(Yt,pt);function Yt(h){return h==null?ku():Sw(h)?h:ku().withMutations(function(b){var C=i(h);xr(C.size),C.forEach(function(R,j){return b.set(j,R)})})}Yt.of=function(){return this(arguments)},Yt.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Yt.prototype.get=function(h,b){var C=this._map.get(h);return C!==void 0?this._list.get(C)[1]:b},Yt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):ku()},Yt.prototype.set=function(h,b){return _w(this,h,b)},Yt.prototype.remove=function(h){return _w(this,h,I)},Yt.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Yt.prototype.__iterate=function(h,b){var C=this;return this._list.__iterate(function(R){return R&&h(R[1],R[0],C)},b)},Yt.prototype.__iterator=function(h,b){return this._list.fromEntrySeq().__iterator(h,b)},Yt.prototype.__ensureOwner=function(h){if(h===this.__ownerID)return this;var b=this._map.__ensureOwner(h),C=this._list.__ensureOwner(h);return h?Yd(b,C,h,this.__hash):(this.__ownerID=h,this._map=b,this._list=C,this)};function Sw(h){return Xa(h)&&m(h)}Yt.isOrderedMap=Sw,Yt.prototype[y]=!0,Yt.prototype[E]=Yt.prototype.remove;function Yd(h,b,C,R){var j=Object.create(Yt.prototype);return j.size=h?h.size:0,j._map=h,j._list=b,j.__ownerID=C,j.__hash=R,j}var ww;function ku(){return ww||(ww=Yd(Br(),Kd()))}function _w(h,b,C){var R=h._map,j=h._list,W=R.get(b),ne=W!==void 0,de,Ee;if(C===I){if(!ne)return h;j.size>=w&&j.size>=R.size*2?(Ee=j.filter(function(Se,xe){return Se!==void 0&&W!==xe}),de=Ee.toKeyedSeq().map(function(Se){return Se[0]}).flip().toMap(),h.__ownerID&&(de.__ownerID=Ee.__ownerID=h.__ownerID)):(de=R.remove(b),Ee=W===j.size-1?j.pop():j.set(W,void 0))}else if(ne){if(C===j.get(W)[1])return h;de=R,Ee=j.set(W,[b,C])}else de=R.set(b,j.size),Ee=j.set(j.size,[b,C]);return h.__ownerID?(h.size=de.size,h._map=de,h._list=Ee,h.__hash=void 0,h):Yd(de,Ee)}n(ln,ze);function ln(h,b){this._iter=h,this._useKeys=b,this.size=h.size}ln.prototype.get=function(h,b){return this._iter.get(h,b)},ln.prototype.has=function(h){return this._iter.has(h)},ln.prototype.valueSeq=function(){return this._iter.valueSeq()},ln.prototype.reverse=function(){var h=this,b=Xd(this,!0);return this._useKeys||(b.valueSeq=function(){return h._iter.toSeq().reverse()}),b},ln.prototype.map=function(h,b){var C=this,R=Aw(this,h,b);return this._useKeys||(R.valueSeq=function(){return C._iter.toSeq().map(h,b)}),R},ln.prototype.__iterate=function(h,b){var C=this,R;return this._iter.__iterate(this._useKeys?function(j,W){return h(j,W,C)}:(R=b?Rw(this):0,function(j){return h(j,b?--R:R++,C)}),b)},ln.prototype.__iterator=function(h,b){if(this._useKeys)return this._iter.__iterator(h,b);var C=this._iter.__iterator(G,b),R=b?Rw(this):0;return new q(function(){var j=C.next();return j.done?j:N(h,b?--R:R++,j.value,j)})},ln.prototype[y]=!0,n(ko,De);function ko(h){this._iter=h,this.size=h.size}ko.prototype.includes=function(h){return this._iter.includes(h)},ko.prototype.__iterate=function(h,b){var C=this,R=0;return this._iter.__iterate(function(j){return h(j,R++,C)},b)},ko.prototype.__iterator=function(h,b){var C=this._iter.__iterator(G,b),R=0;return new q(function(){var j=C.next();return j.done?j:N(h,R++,j.value,j)})},n(jo,Ge);function jo(h){this._iter=h,this.size=h.size}jo.prototype.has=function(h){return this._iter.includes(h)},jo.prototype.__iterate=function(h,b){var C=this;return this._iter.__iterate(function(R){return h(R,R,C)},b)},jo.prototype.__iterator=function(h,b){var C=this._iter.__iterator(G,b);return new q(function(){var R=C.next();return R.done?R:N(h,R.value,R.value,R)})},n(No,ze);function No(h){this._iter=h,this.size=h.size}No.prototype.entrySeq=function(){return this._iter.toSeq()},No.prototype.__iterate=function(h,b){var C=this;return this._iter.__iterate(function(R){if(R){Iw(R);var j=c(R);return h(j?R.get(1):R[1],j?R.get(0):R[0],C)}},b)},No.prototype.__iterator=function(h,b){var C=this._iter.__iterator(G,b);return new q(function(){for(;;){var R=C.next();if(R.done)return R;var j=R.value;if(j){Iw(j);var W=c(j);return N(h,W?j.get(0):j[0],W?j.get(1):j[1],R)}}})},ko.prototype.cacheResult=ln.prototype.cacheResult=jo.prototype.cacheResult=No.prototype.cacheResult=em;function xw(h){var b=es(h);return b._iter=h,b.size=h.size,b.flip=function(){return h},b.reverse=function(){var C=h.reverse.apply(this);return C.flip=function(){return h.reverse()},C},b.has=function(C){return h.includes(C)},b.includes=function(C){return h.has(C)},b.cacheResult=em,b.__iterateUncached=function(C,R){var j=this;return h.__iterate(function(W,ne){return C(ne,W,j)!==!1},R)},b.__iteratorUncached=function(C,R){if(C===ie){var j=h.__iterator(C,R);return new q(function(){var W=j.next();if(!W.done){var ne=W.value[0];W.value[0]=W.value[1],W.value[1]=ne}return W})}return h.__iterator(C===G?oe:G,R)},b}function Aw(h,b,C){var R=es(h);return R.size=h.size,R.has=function(j){return h.has(j)},R.get=function(j,W){var ne=h.get(j,I);return ne===I?W:b.call(C,ne,j,h)},R.__iterateUncached=function(j,W){var ne=this;return h.__iterate(function(de,Ee,Se){return j(b.call(C,de,Ee,Se),Ee,ne)!==!1},W)},R.__iteratorUncached=function(j,W){var ne=h.__iterator(ie,W);return new q(function(){var de=ne.next();if(de.done)return de;var Ee=de.value,Se=Ee[0];return N(j,Se,b.call(C,Ee[1],Se,h),de)})},R}function Xd(h,b){var C=es(h);return C._iter=h,C.size=h.size,C.reverse=function(){return h},h.flip&&(C.flip=function(){var R=xw(h);return R.reverse=function(){return h.flip()},R}),C.get=function(R,j){return h.get(b?R:-1-R,j)},C.has=function(R){return h.has(b?R:-1-R)},C.includes=function(R){return h.includes(R)},C.cacheResult=em,C.__iterate=function(R,j){var W=this;return h.__iterate(function(ne,de){return R(ne,de,W)},!j)},C.__iterator=function(R,j){return h.__iterator(R,!j)},C}function Ow(h,b,C,R){var j=es(h);return R&&(j.has=function(W){var ne=h.get(W,I);return ne!==I&&!!b.call(C,ne,W,h)},j.get=function(W,ne){var de=h.get(W,I);return de!==I&&b.call(C,de,W,h)?de:ne}),j.__iterateUncached=function(W,ne){var de=this,Ee=0;return h.__iterate(function(Se,xe,Me){if(b.call(C,Se,xe,Me))return Ee++,W(Se,R?xe:Ee-1,de)},ne),Ee},j.__iteratorUncached=function(W,ne){var de=h.__iterator(ie,ne),Ee=0;return new q(function(){for(;;){var Se=de.next();if(Se.done)return Se;var xe=Se.value,Me=xe[0],qe=xe[1];if(b.call(C,qe,Me,h))return N(W,R?Me:Ee++,qe,Se)}})},j}function XM(h,b,C){var R=pt().asMutable();return h.__iterate(function(j,W){R.update(b.call(C,j,W,h),0,function(ne){return ne+1})}),R.asImmutable()}function ZM(h,b,C){var R=l(h),j=(m(h)?Yt():pt()).asMutable();h.__iterate(function(ne,de){j.update(b.call(C,ne,de,h),function(Ee){return Ee=Ee||[],Ee.push(R?[de,ne]:ne),Ee})});var W=Pw(h);return j.map(function(ne){return It(h,W(ne))})}function Zd(h,b,C,R){var j=h.size;if(b!==void 0&&(b=b|0),C!==void 0&&(C===1/0?C=j:C=C|0),se(b,C,j))return h;var W=re(b,j),ne=ce(C,j);if(W!==W||ne!==ne)return Zd(h.toSeq().cacheResult(),b,C,R);var de=ne-W,Ee;de===de&&(Ee=de<0?0:de);var Se=es(h);return Se.size=Ee===0?Ee:h.size&&Ee||void 0,!R&&Y(h)&&Ee>=0&&(Se.get=function(xe,Me){return xe=F(this,xe),xe>=0&&xe<Ee?h.get(xe+W,Me):Me}),Se.__iterateUncached=function(xe,Me){var qe=this;if(Ee===0)return 0;if(Me)return this.cacheResult().__iterate(xe,Me);var Qe=0,at=!0,Lt=0;return h.__iterate(function(Mn,ns){if(!(at&&(at=Qe++<W)))return Lt++,xe(Mn,R?ns:Lt-1,qe)!==!1&&Lt!==Ee}),Lt},Se.__iteratorUncached=function(xe,Me){if(Ee!==0&&Me)return this.cacheResult().__iterator(xe,Me);var qe=Ee!==0&&h.__iterator(xe,Me),Qe=0,at=0;return new q(function(){for(;Qe++<W;)qe.next();if(++at>Ee)return M();var Lt=qe.next();return R||xe===G?Lt:xe===oe?N(xe,at-1,void 0,Lt):N(xe,at-1,Lt.value[1],Lt)})},Se}function QM(h,b,C){var R=es(h);return R.__iterateUncached=function(j,W){var ne=this;if(W)return this.cacheResult().__iterate(j,W);var de=0;return h.__iterate(function(Ee,Se,xe){return b.call(C,Ee,Se,xe)&&++de&&j(Ee,Se,ne)}),de},R.__iteratorUncached=function(j,W){var ne=this;if(W)return this.cacheResult().__iterator(j,W);var de=h.__iterator(ie,W),Ee=!0;return new q(function(){if(!Ee)return M();var Se=de.next();if(Se.done)return Se;var xe=Se.value,Me=xe[0],qe=xe[1];return b.call(C,qe,Me,ne)?j===ie?Se:N(j,Me,qe,Se):(Ee=!1,M())})},R}function Cw(h,b,C,R){var j=es(h);return j.__iterateUncached=function(W,ne){var de=this;if(ne)return this.cacheResult().__iterate(W,ne);var Ee=!0,Se=0;return h.__iterate(function(xe,Me,qe){if(!(Ee&&(Ee=b.call(C,xe,Me,qe))))return Se++,W(xe,R?Me:Se-1,de)}),Se},j.__iteratorUncached=function(W,ne){var de=this;if(ne)return this.cacheResult().__iterator(W,ne);var Ee=h.__iterator(ie,ne),Se=!0,xe=0;return new q(function(){var Me,qe,Qe;do{if(Me=Ee.next(),Me.done)return R||W===G?Me:W===oe?N(W,xe++,void 0,Me):N(W,xe++,Me.value[1],Me);var at=Me.value;qe=at[0],Qe=at[1],Se&&(Se=b.call(C,Qe,qe,de))}while(Se);return W===ie?Me:N(W,qe,Qe,Me)})},j}function e3(h,b){var C=l(h),R=[h].concat(b).map(function(ne){return c(ne)?C&&(ne=i(ne)):ne=C?Ae(ne):Ve(Array.isArray(ne)?ne:[ne]),ne}).filter(function(ne){return ne.size!==0});if(R.length===0)return h;if(R.length===1){var j=R[0];if(j===h||C&&l(j)||p(h)&&p(j))return j}var W=new U(R);return C?W=W.toKeyedSeq():p(h)||(W=W.toSetSeq()),W=W.flatten(!0),W.size=R.reduce(function(ne,de){if(ne!==void 0){var Ee=de.size;if(Ee!==void 0)return ne+Ee}},0),W}function $w(h,b,C){var R=es(h);return R.__iterateUncached=function(j,W){var ne=0,de=!1;function Ee(Se,xe){var Me=this;Se.__iterate(function(qe,Qe){return(!b||xe<b)&&c(qe)?Ee(qe,xe+1):j(qe,C?Qe:ne++,Me)===!1&&(de=!0),!de},W)}return Ee(h,0),ne},R.__iteratorUncached=function(j,W){var ne=h.__iterator(j,W),de=[],Ee=0;return new q(function(){for(;ne;){var Se=ne.next();if(Se.done!==!1){ne=de.pop();continue}var xe=Se.value;if(j===ie&&(xe=xe[1]),(!b||de.length<b)&&c(xe))de.push(ne),ne=xe.__iterator(j,W);else return C?Se:N(j,Ee++,xe,Se)}return M()})},R}function t3(h,b,C){var R=Pw(h);return h.toSeq().map(function(j,W){return R(b.call(C,j,W,h))}).flatten(!0)}function r3(h,b){var C=es(h);return C.size=h.size&&h.size*2-1,C.__iterateUncached=function(R,j){var W=this,ne=0;return h.__iterate(function(de,Ee){return(!ne||R(b,ne++,W)!==!1)&&R(de,ne++,W)!==!1},j),ne},C.__iteratorUncached=function(R,j){var W=h.__iterator(G,j),ne=0,de;return new q(function(){return(!de||ne%2)&&(de=W.next(),de.done)?de:ne%2?N(R,ne++,b):N(R,ne++,de.value,de)})},C}function Mo(h,b,C){b||(b=kw);var R=l(h),j=0,W=h.toSeq().map(function(ne,de){return[de,ne,j++,C?C(ne,de,h):ne]}).toArray();return W.sort(function(ne,de){return b(ne[3],de[3])||ne[2]-de[2]}).forEach(R?function(ne,de){W[de].length=2}:function(ne,de){W[de]=ne[1]}),R?ze(W):p(h)?De(W):Ge(W)}function ju(h,b,C){if(b||(b=kw),C){var R=h.toSeq().map(function(j,W){return[j,C(j,W,h)]}).reduce(function(j,W){return Tw(b,j[1],W[1])?W:j});return R&&R[0]}else return h.reduce(function(j,W){return Tw(b,j,W)?W:j})}function Tw(h,b,C){var R=h(C,b);return R===0&&C!==b&&(C==null||C!==C)||R>0}function Qd(h,b,C){var R=es(h);return R.size=new U(C).map(function(j){return j.size}).min(),R.__iterate=function(j,W){for(var ne=this.__iterator(G,W),de,Ee=0;!(de=ne.next()).done&&j(de.value,Ee++,this)!==!1;);return Ee},R.__iteratorUncached=function(j,W){var ne=C.map(function(Se){return Se=s(Se),Ce(W?Se.reverse():Se)}),de=0,Ee=!1;return new q(function(){var Se;return Ee||(Se=ne.map(function(xe){return xe.next()}),Ee=Se.some(function(xe){return xe.done})),Ee?M():N(j,de++,b.apply(null,Se.map(function(xe){return xe.value})))})},R}function It(h,b){return Y(h)?b:h.constructor(b)}function Iw(h){if(h!==Object(h))throw new TypeError("Expected [K, V] tuple: "+h)}function Rw(h){return xr(h.size),J(h)}function Pw(h){return l(h)?i:p(h)?o:a}function es(h){return Object.create((l(h)?ze:p(h)?De:Ge).prototype)}function em(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):$e.prototype.cacheResult.call(this)}function kw(h,b){return h>b?1:h<b?-1:0}function jw(h){var b=Ce(h);if(!b){if(!_e(h))throw new TypeError("Expected iterable or array-like: "+h);b=Ce(s(h))}return b}n(Gr,Pn);function Gr(h,b){var C,R=function(ne){if(ne instanceof R)return ne;if(!(this instanceof R))return new R(ne);if(!C){C=!0;var de=Object.keys(h);n3(j,de),j.size=de.length,j._name=b,j._keys=de,j._defaultValues=h}this._map=pt(ne)},j=R.prototype=Object.create(dr);return j.constructor=R,R}Gr.prototype.toString=function(){return this.__toString(Nw(this)+" {","}")},Gr.prototype.has=function(h){return this._defaultValues.hasOwnProperty(h)},Gr.prototype.get=function(h,b){if(!this.has(h))return b;var C=this._defaultValues[h];return this._map?this._map.get(h,C):C},Gr.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var h=this.constructor;return h._empty||(h._empty=Nu(this,Br()))},Gr.prototype.set=function(h,b){if(!this.has(h))throw new Error('Cannot set unknown key "'+h+'" on '+Nw(this));if(this._map&&!this._map.has(h)){var C=this._defaultValues[h];if(b===C)return this}var R=this._map&&this._map.set(h,b);return this.__ownerID||R===this._map?this:Nu(this,R)},Gr.prototype.remove=function(h){if(!this.has(h))return this;var b=this._map&&this._map.remove(h);return this.__ownerID||b===this._map?this:Nu(this,b)},Gr.prototype.wasAltered=function(){return this._map.wasAltered()},Gr.prototype.__iterator=function(h,b){var C=this;return i(this._defaultValues).map(function(R,j){return C.get(j)}).__iterator(h,b)},Gr.prototype.__iterate=function(h,b){var C=this;return i(this._defaultValues).map(function(R,j){return C.get(j)}).__iterate(h,b)},Gr.prototype.__ensureOwner=function(h){if(h===this.__ownerID)return this;var b=this._map&&this._map.__ensureOwner(h);return h?Nu(this,b,h):(this.__ownerID=h,this._map=b,this)};var dr=Gr.prototype;dr[E]=dr.remove,dr.deleteIn=dr.removeIn=te.removeIn,dr.merge=te.merge,dr.mergeWith=te.mergeWith,dr.mergeIn=te.mergeIn,dr.mergeDeep=te.mergeDeep,dr.mergeDeepWith=te.mergeDeepWith,dr.mergeDeepIn=te.mergeDeepIn,dr.setIn=te.setIn,dr.update=te.update,dr.updateIn=te.updateIn,dr.withMutations=te.withMutations,dr.asMutable=te.asMutable,dr.asImmutable=te.asImmutable;function Nu(h,b,C){var R=Object.create(Object.getPrototypeOf(h));return R._map=b,R.__ownerID=C,R}function Nw(h){return h._name||h.constructor.name||"Record"}function n3(h,b){try{b.forEach(s3.bind(void 0,h))}catch{}}function s3(h,b){Object.defineProperty(h,b,{get:function(){return this.get(b)},set:function(C){Oo(this.__ownerID,"Cannot set on an immutable record."),this.set(b,C)}})}n(Bt,Co);function Bt(h){return h==null?nm():tm(h)&&!m(h)?h:nm().withMutations(function(b){var C=a(h);xr(C.size),C.forEach(function(R){return b.add(R)})})}Bt.of=function(){return this(arguments)},Bt.fromKeys=function(h){return this(i(h).keySeq())},Bt.prototype.toString=function(){return this.__toString("Set {","}")},Bt.prototype.has=function(h){return this._map.has(h)},Bt.prototype.add=function(h){return rm(this,this._map.set(h,!0))},Bt.prototype.remove=function(h){return rm(this,this._map.remove(h))},Bt.prototype.clear=function(){return rm(this,this._map.clear())},Bt.prototype.union=function(){var h=r.call(arguments,0);return h=h.filter(function(b){return b.size!==0}),h.length===0?this:this.size===0&&!this.__ownerID&&h.length===1?this.constructor(h[0]):this.withMutations(function(b){for(var C=0;C<h.length;C++)a(h[C]).forEach(function(R){return b.add(R)})})},Bt.prototype.intersect=function(){var h=r.call(arguments,0);if(h.length===0)return this;h=h.map(function(C){return a(C)});var b=this;return this.withMutations(function(C){b.forEach(function(R){h.every(function(j){return j.includes(R)})||C.remove(R)})})},Bt.prototype.subtract=function(){var h=r.call(arguments,0);if(h.length===0)return this;h=h.map(function(C){return a(C)});var b=this;return this.withMutations(function(C){b.forEach(function(R){h.some(function(j){return j.includes(R)})&&C.remove(R)})})},Bt.prototype.merge=function(){return this.union.apply(this,arguments)},Bt.prototype.mergeWith=function(h){var b=r.call(arguments,1);return this.union.apply(this,b)},Bt.prototype.sort=function(h){return ts(Mo(this,h))},Bt.prototype.sortBy=function(h,b){return ts(Mo(this,b,h))},Bt.prototype.wasAltered=function(){return this._map.wasAltered()},Bt.prototype.__iterate=function(h,b){var C=this;return this._map.__iterate(function(R,j){return h(j,j,C)},b)},Bt.prototype.__iterator=function(h,b){return this._map.map(function(C,R){return R}).__iterator(h,b)},Bt.prototype.__ensureOwner=function(h){if(h===this.__ownerID)return this;var b=this._map.__ensureOwner(h);return h?this.__make(b,h):(this.__ownerID=h,this._map=b,this)};function tm(h){return!!(h&&h[Mw])}Bt.isSet=tm;var Mw="@@__IMMUTABLE_SET__@@",Yr=Bt.prototype;Yr[Mw]=!0,Yr[E]=Yr.remove,Yr.mergeDeep=Yr.merge,Yr.mergeDeepWith=Yr.mergeWith,Yr.withMutations=te.withMutations,Yr.asMutable=te.asMutable,Yr.asImmutable=te.asImmutable,Yr.__empty=nm,Yr.__make=Dw;function rm(h,b){return h.__ownerID?(h.size=b.size,h._map=b,h):b===h._map?h:b.size===0?h.__empty():h.__make(b)}function Dw(h,b){var C=Object.create(Yr);return C.size=h?h.size:0,C._map=h,C.__ownerID=b,C}var Fw;function nm(){return Fw||(Fw=Dw(Br()))}n(ts,Bt);function ts(h){return h==null?sm():Bw(h)?h:sm().withMutations(function(b){var C=a(h);xr(C.size),C.forEach(function(R){return b.add(R)})})}ts.of=function(){return this(arguments)},ts.fromKeys=function(h){return this(i(h).keySeq())},ts.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function Bw(h){return tm(h)&&m(h)}ts.isOrderedSet=Bw;var Mu=ts.prototype;Mu[y]=!0,Mu.__empty=sm,Mu.__make=Lw;function Lw(h,b){var C=Object.create(Mu);return C.size=h?h.size:0,C._map=h,C.__ownerID=b,C}var Uw;function sm(){return Uw||(Uw=Lw(ku()))}n(er,ti);function er(h){return h==null?im():Vw(h)?h:im().unshiftAll(h)}er.of=function(){return this(arguments)},er.prototype.toString=function(){return this.__toString("Stack [","]")},er.prototype.get=function(h,b){var C=this._head;for(h=F(this,h);C&&h--;)C=C.next;return C?C.value:b},er.prototype.peek=function(){return this._head&&this._head.value},er.prototype.push=function(){if(arguments.length===0)return this;for(var h=this.size+arguments.length,b=this._head,C=arguments.length-1;C>=0;C--)b={value:arguments[C],next:b};return this.__ownerID?(this.size=h,this._head=b,this.__hash=void 0,this.__altered=!0,this):rc(h,b)},er.prototype.pushAll=function(h){if(h=o(h),h.size===0)return this;xr(h.size);var b=this.size,C=this._head;return h.reverse().forEach(function(R){b++,C={value:R,next:C}}),this.__ownerID?(this.size=b,this._head=C,this.__hash=void 0,this.__altered=!0,this):rc(b,C)},er.prototype.pop=function(){return this.slice(1)},er.prototype.unshift=function(){return this.push.apply(this,arguments)},er.prototype.unshiftAll=function(h){return this.pushAll(h)},er.prototype.shift=function(){return this.pop.apply(this,arguments)},er.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):im()},er.prototype.slice=function(h,b){if(se(h,b,this.size))return this;var C=re(h,this.size),R=ce(b,this.size);if(R!==this.size)return ti.prototype.slice.call(this,h,b);for(var j=this.size-C,W=this._head;C--;)W=W.next;return this.__ownerID?(this.size=j,this._head=W,this.__hash=void 0,this.__altered=!0,this):rc(j,W)},er.prototype.__ensureOwner=function(h){return h===this.__ownerID?this:h?rc(this.size,this._head,h,this.__hash):(this.__ownerID=h,this.__altered=!1,this)},er.prototype.__iterate=function(h,b){if(b)return this.reverse().__iterate(h);for(var C=0,R=this._head;R&&h(R.value,C++,this)!==!1;)R=R.next;return C},er.prototype.__iterator=function(h,b){if(b)return this.reverse().__iterator(h);var C=0,R=this._head;return new q(function(){if(R){var j=R.value;return R=R.next,N(h,C++,j)}return M()})};function Vw(h){return!!(h&&h[qw])}er.isStack=Vw;var qw="@@__IMMUTABLE_STACK__@@",Do=er.prototype;Do[qw]=!0,Do.withMutations=te.withMutations,Do.asMutable=te.asMutable,Do.asImmutable=te.asImmutable,Do.wasAltered=te.wasAltered;function rc(h,b,C,R){var j=Object.create(Do);return j.size=h,j._head=b,j.__ownerID=C,j.__hash=R,j.__altered=!1,j}var zw;function im(){return zw||(zw=rc(0))}function rs(h,b){var C=function(R){h.prototype[R]=b[R]};return Object.keys(b).forEach(C),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(b).forEach(C),h}function i3(h){return typeof h=="string"&&(h==="__proto__"||h==="constructor")}s.Iterator=q,rs(s,{toArray:function(){xr(this.size);var h=new Array(this.size||0);return this.valueSeq().__iterate(function(b,C){h[C]=b}),h},toIndexedSeq:function(){return new ko(this)},toJS:function(){return this.toSeq().map(function(h){return h&&typeof h.toJS=="function"?h.toJS():h}).__toJS()},toJSON:function(){return this.toSeq().map(function(h){return h&&typeof h.toJSON=="function"?h.toJSON():h}).__toJS()},toKeyedSeq:function(){return new ln(this,!0)},toMap:function(){return pt(this.toKeyedSeq())},toObject:function(){xr(this.size);var h={};return this.__iterate(function(b,C){i3(C)||(h[C]=b)}),h},toOrderedMap:function(){return Yt(this.toKeyedSeq())},toOrderedSet:function(){return ts(l(this)?this.valueSeq():this)},toSet:function(){return Bt(l(this)?this.valueSeq():this)},toSetSeq:function(){return new jo(this)},toSeq:function(){return p(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return er(l(this)?this.valueSeq():this)},toList:function(){return Nt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(h,b){return this.size===0?h+b:h+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+b},concat:function(){var h=r.call(arguments,0);return It(this,e3(this,h))},includes:function(h){return this.some(function(b){return We(b,h)})},entries:function(){return this.__iterator(ie)},every:function(h,b){xr(this.size);var C=!0;return this.__iterate(function(R,j,W){if(!h.call(b,R,j,W))return C=!1,!1}),C},filter:function(h,b){return It(this,Ow(this,h,b,!0))},find:function(h,b,C){var R=this.findEntry(h,b);return R?R[1]:C},forEach:function(h,b){return xr(this.size),this.__iterate(b?h.bind(b):h)},join:function(h){xr(this.size),h=h!==void 0?""+h:",";var b="",C=!0;return this.__iterate(function(R){C?C=!1:b+=h,b+=R!=null?R.toString():""}),b},keys:function(){return this.__iterator(oe)},map:function(h,b){return It(this,Aw(this,h,b))},reduce:function(h,b,C){xr(this.size);var R,j;return arguments.length<2?j=!0:R=b,this.__iterate(function(W,ne,de){j?(j=!1,R=W):R=h.call(C,R,W,ne,de)}),R},reduceRight:function(h,b,C){var R=this.toKeyedSeq().reverse();return R.reduce.apply(R,arguments)},reverse:function(){return It(this,Xd(this,!0))},slice:function(h,b){return It(this,Zd(this,h,b,!0))},some:function(h,b){return!this.every(Fu(h),b)},sort:function(h){return It(this,Mo(this,h))},values:function(){return this.__iterator(G)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(h,b){return J(h?this.toSeq().filter(h,b):this)},countBy:function(h,b){return XM(this,h,b)},equals:function(h){return ut(this,h)},entrySeq:function(){var h=this;if(h._cache)return new U(h._cache);var b=h.toSeq().map(a3).toIndexedSeq();return b.fromEntrySeq=function(){return h.toSeq()},b},filterNot:function(h,b){return this.filter(Fu(h),b)},findEntry:function(h,b,C){var R=C;return this.__iterate(function(j,W,ne){if(h.call(b,j,W,ne))return R=[W,j],!1}),R},findKey:function(h,b){var C=this.findEntry(h,b);return C&&C[0]},findLast:function(h,b,C){return this.toKeyedSeq().reverse().find(h,b,C)},findLastEntry:function(h,b,C){return this.toKeyedSeq().reverse().findEntry(h,b,C)},findLastKey:function(h,b){return this.toKeyedSeq().reverse().findKey(h,b)},first:function(){return this.find(Q)},flatMap:function(h,b){return It(this,t3(this,h,b))},flatten:function(h){return It(this,$w(this,h,!0))},fromEntrySeq:function(){return new No(this)},get:function(h,b){return this.find(function(C,R){return We(R,h)},void 0,b)},getIn:function(h,b){for(var C=this,R=jw(h),j;!(j=R.next()).done;){var W=j.value;if(C=C&&C.get?C.get(W,I):I,C===I)return b}return C},groupBy:function(h,b){return ZM(this,h,b)},has:function(h){return this.get(h,I)!==I},hasIn:function(h){return this.getIn(h,I)!==I},isSubset:function(h){return h=typeof h.includes=="function"?h:s(h),this.every(function(b){return h.includes(b)})},isSuperset:function(h){return h=typeof h.isSubset=="function"?h:s(h),h.isSubset(this)},keyOf:function(h){return this.findKey(function(b){return We(b,h)})},keySeq:function(){return this.toSeq().map(o3).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(h){return this.toKeyedSeq().reverse().keyOf(h)},max:function(h){return ju(this,h)},maxBy:function(h,b){return ju(this,b,h)},min:function(h){return ju(this,h?Jw(h):Hw)},minBy:function(h,b){return ju(this,b?Jw(b):Hw,h)},rest:function(){return this.slice(1)},skip:function(h){return this.slice(Math.max(0,h))},skipLast:function(h){return It(this,this.toSeq().reverse().skip(h).reverse())},skipWhile:function(h,b){return It(this,Cw(this,h,b,!0))},skipUntil:function(h,b){return this.skipWhile(Fu(h),b)},sortBy:function(h,b){return It(this,Mo(this,b,h))},take:function(h){return this.slice(0,Math.max(0,h))},takeLast:function(h){return It(this,this.toSeq().reverse().take(h).reverse())},takeWhile:function(h,b){return It(this,QM(this,h,b))},takeUntil:function(h,b){return this.takeWhile(Fu(h),b)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=l3(this))}});var Tr=s.prototype;Tr[d]=!0,Tr[le]=Tr.values,Tr.__toJS=Tr.toArray,Tr.__toStringMapper=Ww,Tr.inspect=Tr.toSource=function(){return this.toString()},Tr.chain=Tr.flatMap,Tr.contains=Tr.includes,rs(i,{flip:function(){return It(this,xw(this))},mapEntries:function(h,b){var C=this,R=0;return It(this,this.toSeq().map(function(j,W){return h.call(b,[W,j],R++,C)}).fromEntrySeq())},mapKeys:function(h,b){var C=this;return It(this,this.toSeq().flip().map(function(R,j){return h.call(b,R,j,C)}).flip())}});var Du=i.prototype;Du[g]=!0,Du[le]=Tr.entries,Du.__toJS=Tr.toObject,Du.__toStringMapper=function(h,b){return JSON.stringify(b)+": "+Ww(h)},rs(o,{toKeyedSeq:function(){return new ln(this,!1)},filter:function(h,b){return It(this,Ow(this,h,b,!1))},findIndex:function(h,b){var C=this.findEntry(h,b);return C?C[0]:-1},indexOf:function(h){var b=this.keyOf(h);return b===void 0?-1:b},lastIndexOf:function(h){var b=this.lastKeyOf(h);return b===void 0?-1:b},reverse:function(){return It(this,Xd(this,!1))},slice:function(h,b){return It(this,Zd(this,h,b,!1))},splice:function(h,b){var C=arguments.length;if(b=Math.max(b|0,0),C===0||C===2&&!b)return this;h=re(h,h<0?this.count():this.size);var R=this.slice(0,h);return It(this,C===1?R:R.concat(V(arguments,2),this.slice(h+b)))},findLastIndex:function(h,b){var C=this.findLastEntry(h,b);return C?C[0]:-1},first:function(){return this.get(0)},flatten:function(h){return It(this,$w(this,h,!1))},get:function(h,b){return h=F(this,h),h<0||this.size===1/0||this.size!==void 0&&h>this.size?b:this.find(function(C,R){return R===h},void 0,b)},has:function(h){return h=F(this,h),h>=0&&(this.size!==void 0?this.size===1/0||h<this.size:this.indexOf(h)!==-1)},interpose:function(h){return It(this,r3(this,h))},interleave:function(){var h=[this].concat(V(arguments)),b=Qd(this.toSeq(),De.of,h),C=b.flatten(!0);return b.size&&(C.size=b.size*h.length),It(this,C)},keySeq:function(){return Jt(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(h,b){return It(this,Cw(this,h,b,!1))},zip:function(){var h=[this].concat(V(arguments));return It(this,Qd(this,c3,h))},zipWith:function(h){var b=V(arguments);return b[0]=this,It(this,Qd(this,h,b))}}),o.prototype[v]=!0,o.prototype[y]=!0,rs(a,{get:function(h,b){return this.has(h)?h:b},includes:function(h){return this.has(h)},keySeq:function(){return this.valueSeq()}}),a.prototype.has=Tr.includes,a.prototype.contains=a.prototype.includes,rs(ze,i.prototype),rs(De,o.prototype),rs(Ge,a.prototype),rs(Pn,i.prototype),rs(ti,o.prototype),rs(Co,a.prototype);function o3(h,b){return b}function a3(h,b){return[b,h]}function Fu(h){return function(){return!h.apply(this,arguments)}}function Jw(h){return function(){return-h.apply(this,arguments)}}function Ww(h){return typeof h=="string"?JSON.stringify(h):String(h)}function c3(){return V(arguments)}function Hw(h,b){return h<b?1:h>b?-1:0}function l3(h){if(h.size===1/0)return 0;var b=m(h),C=l(h),R=b?1:0,j=h.__iterate(C?b?function(W,ne){R=31*R+Kw(Cr(W),Cr(ne))|0}:function(W,ne){R=R+Kw(Cr(W),Cr(ne))|0}:b?function(W){R=31*R+Cr(W)|0}:function(W){R=R+Cr(W)|0});return u3(j,R)}function u3(h,b){return b=jt(b,3432918353),b=jt(b<<15|b>>>-15,461845907),b=jt(b<<13|b>>>-13,5),b=(b+3864292196|0)^h,b=jt(b^b>>>16,2246822507),b=jt(b^b>>>13,3266489909),b=Qn(b^b>>>16),b}function Kw(h,b){return h^b+2654435769+(h<<6)+(h>>2)|0}var p3={Iterable:s,Seq:$e,Collection:Zn,Map:pt,OrderedMap:Yt,List:Nt,Stack:er,Set:Bt,OrderedSet:ts,Record:Gr,Range:Jt,Repeat:tt,is:We,fromJS:ee};return p3})})(sC);var K=sC.exports;const gt=Ze(K);var G0={},uy={exports:{}},di={},py={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r){return r&&r.type==="@@redux/INIT"?"initialState argument passed to createStore":"previous state received by the reducer"},t.exports=e.default})(py,py.exports);var iC=py.exports,fy={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=K,n=o(r),s=iC,i=o(s);function o(a){return a&&a.__esModule?a:{default:a}}e.default=function(a,c,l){var p=Object.keys(c);if(!p.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var f=(0,i.default)(l);if(n.default.isImmutable?!n.default.isImmutable(a):!n.default.Iterable.isIterable(a))return"The "+f+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+p.join('", "')+'".';var m=a.toSeq().keySeq().toArray().filter(function(d){return!c.hasOwnProperty(d)});return m.length>0?"Unexpected "+(m.length===1?"property":"properties")+' "'+m.join('", "')+'" found in '+f+'. Expected to find one of the known reducer property names instead: "'+p.join('", "')+'". Unexpected properties will be ignored.':null},t.exports=e.default})(fy,fy.exports);var SF=fy.exports,hy={exports:{}};(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,n,s){if(r===void 0)throw new Error('Reducer "'+n+'" returned undefined when handling "'+s.type+'" action. To ignore an action, you must explicitly return the previous state.')},t.exports=e.default})(hy,hy.exports);var wF=hy.exports;Object.defineProperty(di,"__esModule",{value:!0});di.validateNextState=di.getUnexpectedInvocationParameterMessage=di.getStateName=void 0;var _F=iC,xF=Y0(_F),AF=SF,OF=Y0(AF),CF=wF,$F=Y0(CF);function Y0(t){return t&&t.__esModule?t:{default:t}}di.getStateName=xF.default;di.getUnexpectedInvocationParameterMessage=OF.default;di.validateNextState=$F.default;(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=K,n=i(r),s=di;function i(o){return o&&o.__esModule?o:{default:o}}e.default=function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.Map,c=Object.keys(o);return function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a(),p=arguments[1];return l.withMutations(function(f){c.forEach(function(m){var d=o[m],g=f.get(m),v=d(g,p);(0,s.validateNextState)(v,m,p),f.set(m,v)})})}},t.exports=e.default})(uy,uy.exports);var TF=uy.exports;Object.defineProperty(G0,"__esModule",{value:!0});var oC=G0.combineReducers=void 0,IF=TF,RF=PF(IF);function PF(t){return t&&t.__esModule?t:{default:t}}oC=G0.combineReducers=RF.default;const kF=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],dy=Symbol(".toJSON called"),jF=t=>{t[dy]=!0;const e=t.toJSON();return delete t[dy],e},aC=({from:t,seen:e,to_:r,forceEnumerable:n,maxDepth:s,depth:i})=>{const o=r||(Array.isArray(t)?[]:{});if(e.push(t),i>=s)return o;if(typeof t.toJSON=="function"&&t[dy]!==!0)return jF(t);for(const[a,c]of Object.entries(t)){if(typeof Buffer=="function"&&Buffer.isBuffer(c)){o[a]="[object Buffer]";continue}if(typeof c!="function"){if(!c||typeof c!="object"){o[a]=c;continue}if(!e.includes(t[a])){i++,o[a]=aC({from:t[a],seen:e.slice(),forceEnumerable:n,maxDepth:s,depth:i});continue}o[a]="[Circular]"}}for(const{property:a,enumerable:c}of kF)typeof t[a]=="string"&&Object.defineProperty(o,a,{value:t[a],enumerable:!0,configurable:!0,writable:!0});return o},NF=(t,e={})=>{const{maxDepth:r=Number.POSITIVE_INFINITY}=e;return typeof t=="object"&&t!==null?aC({from:t,seen:[],forceEnumerable:!0,maxDepth:r,depth:0}):typeof t=="function"?`[Function: ${t.name||"anonymous"}]`:t};var cC={serializeError:NF};function MF(){this.__data__=[],this.size=0}var DF=MF;function FF(t,e){return t===e||t!==t&&e!==e}var Oa=FF;const BF=Ze(Oa);var LF=Oa;function UF(t,e){for(var r=t.length;r--;)if(LF(t[r][0],e))return r;return-1}var ph=UF,VF=ph,qF=Array.prototype,zF=qF.splice;function JF(t){var e=this.__data__,r=VF(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():zF.call(e,r,1),--this.size,!0}var WF=JF,HF=ph;function KF(t){var e=this.__data__,r=HF(e,t);return r<0?void 0:e[r][1]}var GF=KF,YF=ph;function XF(t){return YF(this.__data__,t)>-1}var ZF=XF,QF=ph;function eB(t,e){var r=this.__data__,n=QF(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var tB=eB,rB=DF,nB=WF,sB=GF,iB=ZF,oB=tB;function Ca(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ca.prototype.clear=rB;Ca.prototype.delete=nB;Ca.prototype.get=sB;Ca.prototype.has=iB;Ca.prototype.set=oB;var fh=Ca,aB=fh;function cB(){this.__data__=new aB,this.size=0}var lB=cB;function uB(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var pB=uB;function fB(t){return this.__data__.get(t)}var hB=fB;function dB(t){return this.__data__.has(t)}var mB=dB,gB=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,lC=gB,yB=lC,vB=typeof self=="object"&&self&&self.Object===Object&&self,bB=yB||vB||Function("return this")(),Mr=bB,EB=Mr,SB=EB.Symbol,$a=SB,x1=$a,uC=Object.prototype,wB=uC.hasOwnProperty,_B=uC.toString,nc=x1?x1.toStringTag:void 0;function xB(t){var e=wB.call(t,nc),r=t[nc];try{t[nc]=void 0;var n=!0}catch{}var s=_B.call(t);return n&&(e?t[nc]=r:delete t[nc]),s}var AB=xB,OB=Object.prototype,CB=OB.toString;function $B(t){return CB.call(t)}var TB=$B,A1=$a,IB=AB,RB=TB,PB="[object Null]",kB="[object Undefined]",O1=A1?A1.toStringTag:void 0;function jB(t){return t==null?t===void 0?kB:PB:O1&&O1 in Object(t)?IB(t):RB(t)}var Ss=jB;function NB(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Dr=NB,MB=Ss,DB=Dr,FB="[object AsyncFunction]",BB="[object Function]",LB="[object GeneratorFunction]",UB="[object Proxy]";function VB(t){if(!DB(t))return!1;var e=MB(t);return e==BB||e==LB||e==FB||e==UB}var nl=VB;const C1=Ze(nl);var qB=Mr,zB=qB["__core-js_shared__"],JB=zB,Tm=JB,$1=function(){var t=/[^.]+$/.exec(Tm&&Tm.keys&&Tm.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function WB(t){return!!$1&&$1 in t}var HB=WB,KB=Function.prototype,GB=KB.toString;function YB(t){if(t!=null){try{return GB.call(t)}catch{}try{return t+""}catch{}}return""}var pC=YB,XB=nl,ZB=HB,QB=Dr,eL=pC,tL=/[\\^$.*+?()[\]{}|]/g,rL=/^\[object .+?Constructor\]$/,nL=Function.prototype,sL=Object.prototype,iL=nL.toString,oL=sL.hasOwnProperty,aL=RegExp("^"+iL.call(oL).replace(tL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function cL(t){if(!QB(t)||ZB(t))return!1;var e=XB(t)?aL:rL;return e.test(eL(t))}var lL=cL;function uL(t,e){return t==null?void 0:t[e]}var pL=uL,fL=lL,hL=pL;function dL(t,e){var r=hL(t,e);return fL(r)?r:void 0}var ao=dL,mL=ao,gL=Mr,yL=mL(gL,"Map"),X0=yL,vL=ao,bL=vL(Object,"create"),hh=bL,T1=hh;function EL(){this.__data__=T1?T1(null):{},this.size=0}var SL=EL;function wL(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var _L=wL,xL=hh,AL="__lodash_hash_undefined__",OL=Object.prototype,CL=OL.hasOwnProperty;function $L(t){var e=this.__data__;if(xL){var r=e[t];return r===AL?void 0:r}return CL.call(e,t)?e[t]:void 0}var TL=$L,IL=hh,RL=Object.prototype,PL=RL.hasOwnProperty;function kL(t){var e=this.__data__;return IL?e[t]!==void 0:PL.call(e,t)}var jL=kL,NL=hh,ML="__lodash_hash_undefined__";function DL(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=NL&&e===void 0?ML:e,this}var FL=DL,BL=SL,LL=_L,UL=TL,VL=jL,qL=FL;function Ta(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ta.prototype.clear=BL;Ta.prototype.delete=LL;Ta.prototype.get=UL;Ta.prototype.has=VL;Ta.prototype.set=qL;var zL=Ta,I1=zL,JL=fh,WL=X0;function HL(){this.size=0,this.__data__={hash:new I1,map:new(WL||JL),string:new I1}}var KL=HL;function GL(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var YL=GL,XL=YL;function ZL(t,e){var r=t.__data__;return XL(e)?r[typeof e=="string"?"string":"hash"]:r.map}var dh=ZL,QL=dh;function e6(t){var e=QL(this,t).delete(t);return this.size-=e?1:0,e}var t6=e6,r6=dh;function n6(t){return r6(this,t).get(t)}var s6=n6,i6=dh;function o6(t){return i6(this,t).has(t)}var a6=o6,c6=dh;function l6(t,e){var r=c6(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var u6=l6,p6=KL,f6=t6,h6=s6,d6=a6,m6=u6;function Ia(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ia.prototype.clear=p6;Ia.prototype.delete=f6;Ia.prototype.get=h6;Ia.prototype.has=d6;Ia.prototype.set=m6;var Z0=Ia,g6=fh,y6=X0,v6=Z0,b6=200;function E6(t,e){var r=this.__data__;if(r instanceof g6){var n=r.__data__;if(!y6||n.length<b6-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new v6(n)}return r.set(t,e),this.size=r.size,this}var S6=E6,w6=fh,_6=lB,x6=pB,A6=hB,O6=mB,C6=S6;function Ra(t){var e=this.__data__=new w6(t);this.size=e.size}Ra.prototype.clear=_6;Ra.prototype.delete=x6;Ra.prototype.get=A6;Ra.prototype.has=O6;Ra.prototype.set=C6;var mh=Ra,$6=ao,T6=function(){try{var t=$6(Object,"defineProperty");return t({},"",{}),t}catch{}}(),fC=T6,R1=fC;function I6(t,e,r){e=="__proto__"&&R1?R1(t,e,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[e]=r}var Q0=I6,R6=Q0,P6=Oa;function k6(t,e,r){(r!==void 0&&!P6(t[e],r)||r===void 0&&!(e in t))&&R6(t,e,r)}var hC=k6;function j6(t){return function(e,r,n){for(var s=-1,i=Object(e),o=n(e),a=o.length;a--;){var c=o[t?a:++s];if(r(i[c],c,i)===!1)break}return e}}var N6=j6,M6=N6,D6=M6(),dC=D6,Bp={exports:{}};Bp.exports;(function(t,e){var r=Mr,n=e&&!e.nodeType&&e,s=n&&!0&&t&&!t.nodeType&&t,i=s&&s.exports===n,o=i?r.Buffer:void 0,a=o?o.allocUnsafe:void 0;function c(l,p){if(p)return l.slice();var f=l.length,m=a?a(f):new l.constructor(f);return l.copy(m),m}t.exports=c})(Bp,Bp.exports);var mC=Bp.exports,F6=Mr,B6=F6.Uint8Array,gC=B6,P1=gC;function L6(t){var e=new t.constructor(t.byteLength);return new P1(e).set(new P1(t)),e}var eb=L6,U6=eb;function V6(t,e){var r=e?U6(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}var yC=V6;function q6(t,e){var r=-1,n=t.length;for(e||(e=Array(n));++r<n;)e[r]=t[r];return e}var sl=q6,z6=Dr,k1=Object.create,J6=function(){function t(){}return function(e){if(!z6(e))return{};if(k1)return k1(e);t.prototype=e;var r=new t;return t.prototype=void 0,r}}(),gh=J6;function W6(t,e){return function(r){return t(e(r))}}var vC=W6,H6=vC,K6=H6(Object.getPrototypeOf,Object),tb=K6,G6=Object.prototype;function Y6(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||G6;return t===r}var yh=Y6,X6=gh,Z6=tb,Q6=yh;function e4(t){return typeof t.constructor=="function"&&!Q6(t)?X6(Z6(t)):{}}var bC=e4;function t4(t){return t!=null&&typeof t=="object"}var Fr=t4,r4=Ss,n4=Fr,s4="[object Arguments]";function i4(t){return n4(t)&&r4(t)==s4}var o4=i4,j1=o4,a4=Fr,EC=Object.prototype,c4=EC.hasOwnProperty,l4=EC.propertyIsEnumerable,u4=j1(function(){return arguments}())?j1:function(t){return a4(t)&&c4.call(t,"callee")&&!l4.call(t,"callee")},il=u4,p4=Array.isArray,hr=p4,f4=9007199254740991;function h4(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=f4}var rb=h4,d4=nl,m4=rb;function g4(t){return t!=null&&m4(t.length)&&!d4(t)}var co=g4,y4=co,v4=Fr;function b4(t){return v4(t)&&y4(t)}var E4=b4,Lp={exports:{}};function S4(){return!1}var w4=S4;Lp.exports;(function(t,e){var r=Mr,n=w4,s=e&&!e.nodeType&&e,i=s&&!0&&t&&!t.nodeType&&t,o=i&&i.exports===s,a=o?r.Buffer:void 0,c=a?a.isBuffer:void 0,l=c||n;t.exports=l})(Lp,Lp.exports);var ol=Lp.exports,_4=Ss,x4=tb,A4=Fr,O4="[object Object]",C4=Function.prototype,$4=Object.prototype,SC=C4.toString,T4=$4.hasOwnProperty,I4=SC.call(Object);function R4(t){if(!A4(t)||_4(t)!=O4)return!1;var e=x4(t);if(e===null)return!0;var r=T4.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&SC.call(r)==I4}var vh=R4;const gs=Ze(vh);var P4=Ss,k4=rb,j4=Fr,N4="[object Arguments]",M4="[object Array]",D4="[object Boolean]",F4="[object Date]",B4="[object Error]",L4="[object Function]",U4="[object Map]",V4="[object Number]",q4="[object Object]",z4="[object RegExp]",J4="[object Set]",W4="[object String]",H4="[object WeakMap]",K4="[object ArrayBuffer]",G4="[object DataView]",Y4="[object Float32Array]",X4="[object Float64Array]",Z4="[object Int8Array]",Q4="[object Int16Array]",e8="[object Int32Array]",t8="[object Uint8Array]",r8="[object Uint8ClampedArray]",n8="[object Uint16Array]",s8="[object Uint32Array]",Dt={};Dt[Y4]=Dt[X4]=Dt[Z4]=Dt[Q4]=Dt[e8]=Dt[t8]=Dt[r8]=Dt[n8]=Dt[s8]=!0;Dt[N4]=Dt[M4]=Dt[K4]=Dt[D4]=Dt[G4]=Dt[F4]=Dt[B4]=Dt[L4]=Dt[U4]=Dt[V4]=Dt[q4]=Dt[z4]=Dt[J4]=Dt[W4]=Dt[H4]=!1;function i8(t){return j4(t)&&k4(t.length)&&!!Dt[P4(t)]}var o8=i8;function a8(t){return function(e){return t(e)}}var nb=a8,Up={exports:{}};Up.exports;(function(t,e){var r=lC,n=e&&!e.nodeType&&e,s=n&&!0&&t&&!t.nodeType&&t,i=s&&s.exports===n,o=i&&r.process,a=function(){try{var c=s&&s.require&&s.require("util").types;return c||o&&o.binding&&o.binding("util")}catch{}}();t.exports=a})(Up,Up.exports);var sb=Up.exports,c8=o8,l8=nb,N1=sb,M1=N1&&N1.isTypedArray,u8=M1?l8(M1):c8,bh=u8;function p8(t,e){if(!(e==="constructor"&&typeof t[e]=="function")&&e!="__proto__")return t[e]}var wC=p8,f8=Q0,h8=Oa,d8=Object.prototype,m8=d8.hasOwnProperty;function g8(t,e,r){var n=t[e];(!(m8.call(t,e)&&h8(n,r))||r===void 0&&!(e in t))&&f8(t,e,r)}var Eh=g8,y8=Eh,v8=Q0;function b8(t,e,r,n){var s=!r;r||(r={});for(var i=-1,o=e.length;++i<o;){var a=e[i],c=n?n(r[a],t[a],a,r,t):void 0;c===void 0&&(c=t[a]),s?v8(r,a,c):y8(r,a,c)}return r}var Pa=b8;function E8(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var S8=E8,w8=9007199254740991,_8=/^(?:0|[1-9]\d*)$/;function x8(t,e){var r=typeof t;return e=e??w8,!!e&&(r=="number"||r!="symbol"&&_8.test(t))&&t>-1&&t%1==0&&t<e}var al=x8,A8=S8,O8=il,C8=hr,$8=ol,T8=al,I8=bh,R8=Object.prototype,P8=R8.hasOwnProperty;function k8(t,e){var r=C8(t),n=!r&&O8(t),s=!r&&!n&&$8(t),i=!r&&!n&&!s&&I8(t),o=r||n||s||i,a=o?A8(t.length,String):[],c=a.length;for(var l in t)(e||P8.call(t,l))&&!(o&&(l=="length"||s&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||T8(l,c)))&&a.push(l);return a}var _C=k8;function j8(t){var e=[];if(t!=null)for(var r in Object(t))e.push(r);return e}var N8=j8,M8=Dr,D8=yh,F8=N8,B8=Object.prototype,L8=B8.hasOwnProperty;function U8(t){if(!M8(t))return F8(t);var e=D8(t),r=[];for(var n in t)n=="constructor"&&(e||!L8.call(t,n))||r.push(n);return r}var V8=U8,q8=_C,z8=V8,J8=co;function W8(t){return J8(t)?q8(t,!0):z8(t)}var cl=W8,H8=Pa,K8=cl;function G8(t){return H8(t,K8(t))}var Y8=G8,D1=hC,X8=mC,Z8=yC,Q8=sl,eU=bC,F1=il,B1=hr,tU=E4,rU=ol,nU=nl,sU=Dr,iU=vh,oU=bh,L1=wC,aU=Y8;function cU(t,e,r,n,s,i,o){var a=L1(t,r),c=L1(e,r),l=o.get(c);if(l){D1(t,r,l);return}var p=i?i(a,c,r+"",t,e,o):void 0,f=p===void 0;if(f){var m=B1(c),d=!m&&rU(c),g=!m&&!d&&oU(c);p=c,m||d||g?B1(a)?p=a:tU(a)?p=Q8(a):d?(f=!1,p=X8(c,!0)):g?(f=!1,p=Z8(c,!0)):p=[]:iU(c)||F1(c)?(p=a,F1(a)?p=aU(a):(!sU(a)||nU(a))&&(p=eU(c))):f=!1}f&&(o.set(c,p),s(p,c,n,i,o),o.delete(c)),D1(t,r,p)}var lU=cU,uU=mh,pU=hC,fU=dC,hU=lU,dU=Dr,mU=cl,gU=wC;function xC(t,e,r,n,s){t!==e&&fU(e,function(i,o){if(s||(s=new uU),dU(i))hU(t,e,o,r,xC,n,s);else{var a=n?n(gU(t,o),i,o+"",t,e,s):void 0;a===void 0&&(a=i),pU(t,o,a)}},mU)}var yU=xC;function vU(t){return t}var ll=vU;const AC=Ze(ll);function bU(t,e,r){switch(r.length){case 0:return t.call(e);case 1:return t.call(e,r[0]);case 2:return t.call(e,r[0],r[1]);case 3:return t.call(e,r[0],r[1],r[2])}return t.apply(e,r)}var ib=bU,EU=ib,U1=Math.max;function SU(t,e,r){return e=U1(e===void 0?t.length-1:e,0),function(){for(var n=arguments,s=-1,i=U1(n.length-e,0),o=Array(i);++s<i;)o[s]=n[e+s];s=-1;for(var a=Array(e+1);++s<e;)a[s]=n[s];return a[e]=r(o),EU(t,this,a)}}var OC=SU;function wU(t){return function(){return t}}var CC=wU;const ul=Ze(CC);var _U=CC,V1=fC,xU=ll,AU=V1?function(t,e){return V1(t,"toString",{configurable:!0,enumerable:!1,value:_U(e),writable:!0})}:xU,OU=AU,CU=800,$U=16,TU=Date.now;function IU(t){var e=0,r=0;return function(){var n=TU(),s=$U-(n-r);if(r=n,s>0){if(++e>=CU)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}var $C=IU,RU=OU,PU=$C,kU=PU(RU),ob=kU,jU=ll,NU=OC,MU=ob;function DU(t,e){return MU(NU(t,e,jU),t+"")}var FU=DU,BU=Oa,LU=co,UU=al,VU=Dr;function qU(t,e,r){if(!VU(r))return!1;var n=typeof e;return(n=="number"?LU(r)&&UU(e,r.length):n=="string"&&e in r)?BU(r[e],t):!1}var TC=qU,zU=FU,JU=TC;function WU(t){return zU(function(e,r){var n=-1,s=r.length,i=s>1?r[s-1]:void 0,o=s>2?r[2]:void 0;for(i=t.length>3&&typeof i=="function"?(s--,i):void 0,o&&JU(r[0],r[1],o)&&(i=s<3?void 0:i,s=1),e=Object(e);++n<s;){var a=r[n];a&&t(e,a,n,i)}return e})}var HU=WU,KU=yU,GU=HU,YU=GU(function(t,e,r){KU(t,e,r)}),XU=YU;const ZU=Ze(XU);function QU(t,e){for(var r=-1,n=t==null?0:t.length,s=Array(n);++r<n;)s[r]=e(t[r],r,t);return s}var ab=QU,e5=Ss,t5=Fr,r5="[object Symbol]";function n5(t){return typeof t=="symbol"||t5(t)&&e5(t)==r5}var pl=n5,q1=$a,s5=ab,i5=hr,o5=pl,z1=q1?q1.prototype:void 0,J1=z1?z1.toString:void 0;function IC(t){if(typeof t=="string")return t;if(i5(t))return s5(t,IC)+"";if(o5(t))return J1?J1.call(t):"";var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var a5=IC,c5=a5;function l5(t){return t==null?"":c5(t)}var fl=l5;const u5=Ze(fl);function p5(t,e,r){var n=-1,s=t.length;e<0&&(e=-e>s?0:s+e),r=r>s?s:r,r<0&&(r+=s),s=e>r?0:r-e>>>0,e>>>=0;for(var i=Array(s);++n<s;)i[n]=t[n+e];return i}var f5=p5;function h5(t,e,r,n){var s=-1,i=t==null?0:t.length;for(n&&i&&(r=t[++s]);++s<i;)r=e(r,t[s],s,t);return r}var d5=h5,RC=Z0,m5="Expected a function";function cb(t,e){if(typeof t!="function"||e!=null&&typeof e!="function")throw new TypeError(m5);var r=function(){var n=arguments,s=e?e.apply(this,n):n[0],i=r.cache;if(i.has(s))return i.get(s);var o=t.apply(this,n);return r.cache=i.set(s,o)||i,o};return r.cache=new(cb.Cache||RC),r}cb.Cache=RC;var PC=cb;const mc=Ze(PC);var g5="__lodash_hash_undefined__";function y5(t){return this.__data__.set(t,g5),this}var v5=y5;function b5(t){return this.__data__.has(t)}var E5=b5,S5=Z0,w5=v5,_5=E5;function Vp(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new S5;++e<r;)this.add(t[e])}Vp.prototype.add=Vp.prototype.push=w5;Vp.prototype.has=_5;var x5=Vp;function A5(t,e){for(var r=-1,n=t==null?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}var kC=A5;function O5(t,e){return t.has(e)}var C5=O5,$5=x5,T5=kC,I5=C5,R5=1,P5=2;function k5(t,e,r,n,s,i){var o=r&R5,a=t.length,c=e.length;if(a!=c&&!(o&&c>a))return!1;var l=i.get(t),p=i.get(e);if(l&&p)return l==e&&p==t;var f=-1,m=!0,d=r&P5?new $5:void 0;for(i.set(t,e),i.set(e,t);++f<a;){var g=t[f],v=e[f];if(n)var y=o?n(v,g,f,e,t,i):n(g,v,f,t,e,i);if(y!==void 0){if(y)continue;m=!1;break}if(d){if(!T5(e,function(E,S){if(!I5(d,S)&&(g===E||s(g,E,r,n,i)))return d.push(S)})){m=!1;break}}else if(!(g===v||s(g,v,r,n,i))){m=!1;break}}return i.delete(t),i.delete(e),m}var jC=k5;function j5(t){var e=-1,r=Array(t.size);return t.forEach(function(n,s){r[++e]=[s,n]}),r}var N5=j5;function M5(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var D5=M5,W1=$a,H1=gC,F5=Oa,B5=jC,L5=N5,U5=D5,V5=1,q5=2,z5="[object Boolean]",J5="[object Date]",W5="[object Error]",H5="[object Map]",K5="[object Number]",G5="[object RegExp]",Y5="[object Set]",X5="[object String]",Z5="[object Symbol]",Q5="[object ArrayBuffer]",e9="[object DataView]",K1=W1?W1.prototype:void 0,Im=K1?K1.valueOf:void 0;function t9(t,e,r,n,s,i,o){switch(r){case e9:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case Q5:return!(t.byteLength!=e.byteLength||!i(new H1(t),new H1(e)));case z5:case J5:case K5:return F5(+t,+e);case W5:return t.name==e.name&&t.message==e.message;case G5:case X5:return t==e+"";case H5:var a=L5;case Y5:var c=n&V5;if(a||(a=U5),t.size!=e.size&&!c)return!1;var l=o.get(t);if(l)return l==e;n|=q5,o.set(t,e);var p=B5(a(t),a(e),n,s,i,o);return o.delete(t),p;case Z5:if(Im)return Im.call(t)==Im.call(e)}return!1}var r9=t9;function n9(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}var lb=n9,s9=lb,i9=hr;function o9(t,e,r){var n=e(t);return i9(t)?n:s9(n,r(t))}var NC=o9;function a9(t,e){for(var r=-1,n=t==null?0:t.length,s=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[s++]=o)}return i}var c9=a9;function l9(){return[]}var MC=l9,u9=c9,p9=MC,f9=Object.prototype,h9=f9.propertyIsEnumerable,G1=Object.getOwnPropertySymbols,d9=G1?function(t){return t==null?[]:(t=Object(t),u9(G1(t),function(e){return h9.call(t,e)}))}:p9,ub=d9,m9=vC,g9=m9(Object.keys,Object),y9=g9,v9=yh,b9=y9,E9=Object.prototype,S9=E9.hasOwnProperty;function w9(t){if(!v9(t))return b9(t);var e=[];for(var r in Object(t))S9.call(t,r)&&r!="constructor"&&e.push(r);return e}var pb=w9,_9=_C,x9=pb,A9=co;function O9(t){return A9(t)?_9(t):x9(t)}var ka=O9,C9=NC,$9=ub,T9=ka;function I9(t){return C9(t,T9,$9)}var DC=I9,Y1=DC,R9=1,P9=Object.prototype,k9=P9.hasOwnProperty;function j9(t,e,r,n,s,i){var o=r&R9,a=Y1(t),c=a.length,l=Y1(e),p=l.length;if(c!=p&&!o)return!1;for(var f=c;f--;){var m=a[f];if(!(o?m in e:k9.call(e,m)))return!1}var d=i.get(t),g=i.get(e);if(d&&g)return d==e&&g==t;var v=!0;i.set(t,e),i.set(e,t);for(var y=o;++f<c;){m=a[f];var E=t[m],S=e[m];if(n)var w=o?n(S,E,m,e,t,i):n(E,S,m,t,e,i);if(!(w===void 0?E===S||s(E,S,r,n,i):w)){v=!1;break}y||(y=m=="constructor")}if(v&&!y){var x=t.constructor,I=e.constructor;x!=I&&"constructor"in t&&"constructor"in e&&!(typeof x=="function"&&x instanceof x&&typeof I=="function"&&I instanceof I)&&(v=!1)}return i.delete(t),i.delete(e),v}var N9=j9,M9=ao,D9=Mr,F9=M9(D9,"DataView"),B9=F9,L9=ao,U9=Mr,V9=L9(U9,"Promise"),q9=V9,z9=ao,J9=Mr,W9=z9(J9,"Set"),H9=W9,K9=ao,G9=Mr,Y9=K9(G9,"WeakMap"),FC=Y9,my=B9,gy=X0,yy=q9,vy=H9,by=FC,BC=Ss,ja=pC,X1="[object Map]",X9="[object Object]",Z1="[object Promise]",Q1="[object Set]",e_="[object WeakMap]",t_="[object DataView]",Z9=ja(my),Q9=ja(gy),e7=ja(yy),t7=ja(vy),r7=ja(by),Bi=BC;(my&&Bi(new my(new ArrayBuffer(1)))!=t_||gy&&Bi(new gy)!=X1||yy&&Bi(yy.resolve())!=Z1||vy&&Bi(new vy)!=Q1||by&&Bi(new by)!=e_)&&(Bi=function(t){var e=BC(t),r=e==X9?t.constructor:void 0,n=r?ja(r):"";if(n)switch(n){case Z9:return t_;case Q9:return X1;case e7:return Z1;case t7:return Q1;case r7:return e_}return e});var Na=Bi,Rm=mh,n7=jC,s7=r9,i7=N9,r_=Na,n_=hr,s_=ol,o7=bh,a7=1,i_="[object Arguments]",o_="[object Array]",Lu="[object Object]",c7=Object.prototype,a_=c7.hasOwnProperty;function l7(t,e,r,n,s,i){var o=n_(t),a=n_(e),c=o?o_:r_(t),l=a?o_:r_(e);c=c==i_?Lu:c,l=l==i_?Lu:l;var p=c==Lu,f=l==Lu,m=c==l;if(m&&s_(t)){if(!s_(e))return!1;o=!0,p=!1}if(m&&!p)return i||(i=new Rm),o||o7(t)?n7(t,e,r,n,s,i):s7(t,e,c,r,n,s,i);if(!(r&a7)){var d=p&&a_.call(t,"__wrapped__"),g=f&&a_.call(e,"__wrapped__");if(d||g){var v=d?t.value():t,y=g?e.value():e;return i||(i=new Rm),s(v,y,r,n,i)}}return m?(i||(i=new Rm),i7(t,e,r,n,s,i)):!1}var u7=l7,p7=u7,c_=Fr;function LC(t,e,r,n,s){return t===e?!0:t==null||e==null||!c_(t)&&!c_(e)?t!==t&&e!==e:p7(t,e,r,n,LC,s)}var fb=LC,f7=mh,h7=fb,d7=1,m7=2;function g7(t,e,r,n){var s=r.length,i=s,o=!n;if(t==null)return!i;for(t=Object(t);s--;){var a=r[s];if(o&&a[2]?a[1]!==t[a[0]]:!(a[0]in t))return!1}for(;++s<i;){a=r[s];var c=a[0],l=t[c],p=a[1];if(o&&a[2]){if(l===void 0&&!(c in t))return!1}else{var f=new f7;if(n)var m=n(l,p,c,t,e,f);if(!(m===void 0?h7(p,l,d7|m7,n,f):m))return!1}}return!0}var y7=g7,v7=Dr;function b7(t){return t===t&&!v7(t)}var UC=b7,E7=UC,S7=ka;function w7(t){for(var e=S7(t),r=e.length;r--;){var n=e[r],s=t[n];e[r]=[n,s,E7(s)]}return e}var _7=w7;function x7(t,e){return function(r){return r==null?!1:r[t]===e&&(e!==void 0||t in Object(r))}}var VC=x7,A7=y7,O7=_7,C7=VC;function $7(t){var e=O7(t);return e.length==1&&e[0][2]?C7(e[0][0],e[0][1]):function(r){return r===t||A7(r,t,e)}}var T7=$7,I7=hr,R7=pl,P7=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,k7=/^\w*$/;function j7(t,e){if(I7(t))return!1;var r=typeof t;return r=="number"||r=="symbol"||r=="boolean"||t==null||R7(t)?!0:k7.test(t)||!P7.test(t)||e!=null&&t in Object(e)}var hb=j7,N7=PC,M7=500;function D7(t){var e=N7(t,function(n){return r.size===M7&&r.clear(),n}),r=e.cache;return e}var F7=D7,B7=F7,L7=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,U7=/\\(\\)?/g,V7=B7(function(t){var e=[];return t.charCodeAt(0)===46&&e.push(""),t.replace(L7,function(r,n,s,i){e.push(s?i.replace(U7,"$1"):n||r)}),e}),qC=V7,q7=hr,z7=hb,J7=qC,W7=fl;function H7(t,e){return q7(t)?t:z7(t,e)?[t]:J7(W7(t))}var hl=H7,K7=pl;function G7(t){if(typeof t=="string"||K7(t))return t;var e=t+"";return e=="0"&&1/t==-1/0?"-0":e}var lo=G7,Y7=hl,X7=lo;function Z7(t,e){e=Y7(e,t);for(var r=0,n=e.length;t!=null&&r<n;)t=t[X7(e[r++])];return r&&r==n?t:void 0}var db=Z7,Q7=db;function eV(t,e,r){var n=t==null?void 0:Q7(t,e);return n===void 0?r:n}var zC=eV;const Ey=Ze(zC);function tV(t,e){return t!=null&&e in Object(t)}var rV=tV,nV=hl,sV=il,iV=hr,oV=al,aV=rb,cV=lo;function lV(t,e,r){e=nV(e,t);for(var n=-1,s=e.length,i=!1;++n<s;){var o=cV(e[n]);if(!(i=t!=null&&r(t,o)))break;t=t[o]}return i||++n!=s?i:(s=t==null?0:t.length,!!s&&aV(s)&&oV(o,s)&&(iV(t)||sV(t)))}var JC=lV,uV=rV,pV=JC;function fV(t,e){return t!=null&&pV(t,e,uV)}var hV=fV,dV=fb,mV=zC,gV=hV,yV=hb,vV=UC,bV=VC,EV=lo,SV=1,wV=2;function _V(t,e){return yV(t)&&vV(e)?bV(EV(t),e):function(r){var n=mV(r,t);return n===void 0&&n===e?gV(r,t):dV(e,n,SV|wV)}}var xV=_V;function AV(t){return function(e){return e==null?void 0:e[t]}}var OV=AV,CV=db;function $V(t){return function(e){return CV(e,t)}}var TV=$V,IV=OV,RV=TV,PV=hb,kV=lo;function jV(t){return PV(t)?IV(kV(t)):RV(t)}var NV=jV,MV=T7,DV=xV,FV=ll,BV=hr,LV=NV;function UV(t){return typeof t=="function"?t:t==null?FV:typeof t=="object"?BV(t)?DV(t[0],t[1]):MV(t):LV(t)}var dl=UV,VV=dl,qV=co,zV=ka;function JV(t){return function(e,r,n){var s=Object(e);if(!qV(e)){var i=VV(r);e=zV(e),r=function(a){return i(s[a],a,s)}}var o=t(e,r,n);return o>-1?s[i?e[o]:o]:void 0}}var WV=JV;function HV(t,e,r,n){for(var s=t.length,i=r+(n?1:-1);n?i--:++i<s;)if(e(t[i],i,t))return i;return-1}var WC=HV,KV=/\s/;function GV(t){for(var e=t.length;e--&&KV.test(t.charAt(e)););return e}var YV=GV,XV=YV,ZV=/^\s+/;function QV(t){return t&&t.slice(0,XV(t)+1).replace(ZV,"")}var eq=QV,tq=eq,l_=Dr,rq=pl,u_=NaN,nq=/^[-+]0x[0-9a-f]+$/i,sq=/^0b[01]+$/i,iq=/^0o[0-7]+$/i,oq=parseInt;function aq(t){if(typeof t=="number")return t;if(rq(t))return u_;if(l_(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=l_(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=tq(t);var r=sq.test(t);return r||iq.test(t)?oq(t.slice(2),r?2:8):nq.test(t)?u_:+t}var HC=aq,cq=HC,p_=1/0,lq=17976931348623157e292;function uq(t){if(!t)return t===0?t:0;if(t=cq(t),t===p_||t===-p_){var e=t<0?-1:1;return e*lq}return t===t?t:0}var pq=uq,fq=pq;function hq(t){var e=fq(t),r=e%1;return e===e?r?e-r:e:0}var mb=hq,dq=WC,mq=dl,gq=mb,yq=Math.max;function vq(t,e,r){var n=t==null?0:t.length;if(!n)return-1;var s=r==null?0:gq(r);return s<0&&(s=yq(n+s,0)),dq(t,mq(e),s)}var bq=vq,Eq=WV,Sq=bq,wq=Eq(Sq),_q=wq;const xq=Ze(_q);var Aq=dC,Oq=ka;function Cq(t,e){return t&&Aq(t,e,Oq)}var $q=Cq,Tq=co;function Iq(t,e){return function(r,n){if(r==null)return r;if(!Tq(r))return t(r,n);for(var s=r.length,i=e?s:-1,o=Object(r);(e?i--:++i<s)&&n(o[i],i,o)!==!1;);return r}}var Rq=Iq,Pq=$q,kq=Rq,jq=kq(Pq),KC=jq,Nq=KC;function Mq(t,e){var r;return Nq(t,function(n,s,i){return r=e(n,s,i),!r}),!!r}var Dq=Mq,Fq=kC,Bq=dl,Lq=Dq,Uq=hr,Vq=TC;function qq(t,e,r){var n=Uq(t)?Fq:Lq;return r&&Vq(t,e,r)&&(e=void 0),n(t,Bq(e))}var zq=qq;const GC=Ze(zq);var YC={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */(function(t,e){(function(r,n){t.exports=n(r)})(typeof Xt<"u"?Xt:Xt,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(s){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var i=String(s),o=i.length,a=-1,c,l="",p=i.charCodeAt(0);++a<o;){if(c=i.charCodeAt(a),c==0){l+="�";continue}if(c>=1&&c<=31||c==127||a==0&&c>=48&&c<=57||a==1&&c>=48&&c<=57&&p==45){l+="\\"+c.toString(16)+" ";continue}if(a==0&&o==1&&c==45){l+="\\"+i.charAt(a);continue}if(c>=128||c==45||c==95||c>=48&&c<=57||c>=65&&c<=90||c>=97&&c<=122){l+=i.charAt(a);continue}l+="\\"+i.charAt(a)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})})(YC);var Jq=YC.exports;const Wq=Ze(Jq);var Hq=function(e,r){if(r=r.split(":")[0],e=+e,!e)return!1;switch(r){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return!1}return e!==0},gb={},Kq=Object.prototype.hasOwnProperty,Gq;function f_(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch{return null}}function h_(t){try{return encodeURIComponent(t)}catch{return null}}function Yq(t){for(var e=/([^=?#&]+)=?([^&]*)/g,r={},n;n=e.exec(t);){var s=f_(n[1]),i=f_(n[2]);s===null||i===null||s in r||(r[s]=i)}return r}function Xq(t,e){e=e||"";var r=[],n,s;typeof e!="string"&&(e="?");for(s in t)if(Kq.call(t,s)){if(n=t[s],!n&&(n===null||n===Gq||isNaN(n))&&(n=""),s=h_(s),n=h_(n),s===null||n===null)continue;r.push(s+"="+n)}return r.length?e+r.join("&"):""}gb.stringify=Xq;gb.parse=Yq;var XC=Hq,Sh=gb,Zq=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,ZC=/[\n\r\t]/g,Qq=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,QC=/:\d+$/,ez=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,tz=/^[a-zA-Z]:/;function yb(t){return(t||"").toString().replace(Zq,"")}var Sy=[["#","hash"],["?","query"],function(e,r){return ms(r.protocol)?e.replace(/\\/g,"/"):e},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],d_={hash:1,query:1};function e$(t){var e;typeof window<"u"?e=window:typeof Xt<"u"?e=Xt:typeof self<"u"?e=self:e={};var r=e.location||{};t=t||r;var n={},s=typeof t,i;if(t.protocol==="blob:")n=new ys(unescape(t.pathname),{});else if(s==="string"){n=new ys(t,{});for(i in d_)delete n[i]}else if(s==="object"){for(i in t)i in d_||(n[i]=t[i]);n.slashes===void 0&&(n.slashes=Qq.test(t.href))}return n}function ms(t){return t==="file:"||t==="ftp:"||t==="http:"||t==="https:"||t==="ws:"||t==="wss:"}function t$(t,e){t=yb(t),t=t.replace(ZC,""),e=e||{};var r=ez.exec(t),n=r[1]?r[1].toLowerCase():"",s=!!r[2],i=!!r[3],o=0,a;return s?i?(a=r[2]+r[3]+r[4],o=r[2].length+r[3].length):(a=r[2]+r[4],o=r[2].length):i?(a=r[3]+r[4],o=r[3].length):a=r[4],n==="file:"?o>=2&&(a=a.slice(2)):ms(n)?a=r[4]:n?s&&(a=a.slice(2)):o>=2&&ms(e.protocol)&&(a=r[4]),{protocol:n,slashes:s||ms(n),slashesCount:o,rest:a}}function rz(t,e){if(t==="")return e;for(var r=(e||"/").split("/").slice(0,-1).concat(t.split("/")),n=r.length,s=r[n-1],i=!1,o=0;n--;)r[n]==="."?r.splice(n,1):r[n]===".."?(r.splice(n,1),o++):o&&(n===0&&(i=!0),r.splice(n,1),o--);return i&&r.unshift(""),(s==="."||s==="..")&&r.push(""),r.join("/")}function ys(t,e,r){if(t=yb(t),t=t.replace(ZC,""),!(this instanceof ys))return new ys(t,e,r);var n,s,i,o,a,c,l=Sy.slice(),p=typeof e,f=this,m=0;for(p!=="object"&&p!=="string"&&(r=e,e=null),r&&typeof r!="function"&&(r=Sh.parse),e=e$(e),s=t$(t||"",e),n=!s.protocol&&!s.slashes,f.slashes=s.slashes||n&&e.slashes,f.protocol=s.protocol||e.protocol||"",t=s.rest,(s.protocol==="file:"&&(s.slashesCount!==2||tz.test(t))||!s.slashes&&(s.protocol||s.slashesCount<2||!ms(f.protocol)))&&(l[3]=[/(.*)/,"pathname"]);m<l.length;m++){if(o=l[m],typeof o=="function"){t=o(t,f);continue}i=o[0],c=o[1],i!==i?f[c]=t:typeof i=="string"?(a=i==="@"?t.lastIndexOf(i):t.indexOf(i),~a&&(typeof o[2]=="number"?(f[c]=t.slice(0,a),t=t.slice(a+o[2])):(f[c]=t.slice(a),t=t.slice(0,a)))):(a=i.exec(t))&&(f[c]=a[1],t=t.slice(0,a.index)),f[c]=f[c]||n&&o[3]&&e[c]||"",o[4]&&(f[c]=f[c].toLowerCase())}r&&(f.query=r(f.query)),n&&e.slashes&&f.pathname.charAt(0)!=="/"&&(f.pathname!==""||e.pathname!=="")&&(f.pathname=rz(f.pathname,e.pathname)),f.pathname.charAt(0)!=="/"&&ms(f.protocol)&&(f.pathname="/"+f.pathname),XC(f.port,f.protocol)||(f.host=f.hostname,f.port=""),f.username=f.password="",f.auth&&(a=f.auth.indexOf(":"),~a?(f.username=f.auth.slice(0,a),f.username=encodeURIComponent(decodeURIComponent(f.username)),f.password=f.auth.slice(a+1),f.password=encodeURIComponent(decodeURIComponent(f.password))):f.username=encodeURIComponent(decodeURIComponent(f.auth)),f.auth=f.password?f.username+":"+f.password:f.username),f.origin=f.protocol!=="file:"&&ms(f.protocol)&&f.host?f.protocol+"//"+f.host:"null",f.href=f.toString()}function nz(t,e,r){var n=this;switch(t){case"query":typeof e=="string"&&e.length&&(e=(r||Sh.parse)(e)),n[t]=e;break;case"port":n[t]=e,XC(e,n.protocol)?e&&(n.host=n.hostname+":"+e):(n.host=n.hostname,n[t]="");break;case"hostname":n[t]=e,n.port&&(e+=":"+n.port),n.host=e;break;case"host":n[t]=e,QC.test(e)?(e=e.split(":"),n.port=e.pop(),n.hostname=e.join(":")):(n.hostname=e,n.port="");break;case"protocol":n.protocol=e.toLowerCase(),n.slashes=!r;break;case"pathname":case"hash":if(e){var s=t==="pathname"?"/":"#";n[t]=e.charAt(0)!==s?s+e:e}else n[t]=e;break;case"username":case"password":n[t]=encodeURIComponent(e);break;case"auth":var i=e.indexOf(":");~i?(n.username=e.slice(0,i),n.username=encodeURIComponent(decodeURIComponent(n.username)),n.password=e.slice(i+1),n.password=encodeURIComponent(decodeURIComponent(n.password))):n.username=encodeURIComponent(decodeURIComponent(e))}for(var o=0;o<Sy.length;o++){var a=Sy[o];a[4]&&(n[a[1]]=n[a[1]].toLowerCase())}return n.auth=n.password?n.username+":"+n.password:n.username,n.origin=n.protocol!=="file:"&&ms(n.protocol)&&n.host?n.protocol+"//"+n.host:"null",n.href=n.toString(),n}function sz(t){(!t||typeof t!="function")&&(t=Sh.stringify);var e,r=this,n=r.host,s=r.protocol;s&&s.charAt(s.length-1)!==":"&&(s+=":");var i=s+(r.protocol&&r.slashes||ms(r.protocol)?"//":"");return r.username?(i+=r.username,r.password&&(i+=":"+r.password),i+="@"):r.password?(i+=":"+r.password,i+="@"):r.protocol!=="file:"&&ms(r.protocol)&&!n&&r.pathname!=="/"&&(i+="@"),(n[n.length-1]===":"||QC.test(r.hostname)&&!r.port)&&(n+=":"),i+=n+r.pathname,e=typeof r.query=="object"?t(r.query):r.query,e&&(i+=e.charAt(0)!=="?"?"?"+e:e),r.hash&&(i+=r.hash),i}ys.prototype={set:nz,toString:sz};ys.extractProtocol=t$;ys.location=e$;ys.trimLeft=yb;ys.qs=Sh;var iz=ys;const Tc=Ze(iz);function oz(t,e=`expected a function, instead received ${typeof t}`){if(typeof t!="function")throw new TypeError(e)}function az(t,e=`expected an object, instead received ${typeof t}`){if(typeof t!="object")throw new TypeError(e)}function cz(t,e="expected all items to be functions, instead received the following types: "){if(!t.every(r=>typeof r=="function")){const r=t.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${e}[${r}]`)}}var m_=t=>Array.isArray(t)?t:[t];function lz(t){const e=Array.isArray(t[0])?t[0]:t;return cz(e,"createSelector expects all input-selectors to be functions, but received the following types: "),e}function uz(t,e){const r=[],{length:n}=t;for(let s=0;s<n;s++)r.push(t[s].apply(null,e));return r}var pz=class{constructor(t){this.value=t}deref(){return this.value}},fz=typeof WeakRef<"u"?WeakRef:pz,hz=0,g_=1;function Uu(){return{s:hz,v:void 0,o:null,p:null}}function r$(t,e={}){let r=Uu();const{resultEqualityCheck:n}=e;let s,i=0;function o(){var f;let a=r;const{length:c}=arguments;for(let m=0,d=c;m<d;m++){const g=arguments[m];if(typeof g=="function"||typeof g=="object"&&g!==null){let v=a.o;v===null&&(a.o=v=new WeakMap);const y=v.get(g);y===void 0?(a=Uu(),v.set(g,a)):a=y}else{let v=a.p;v===null&&(a.p=v=new Map);const y=v.get(g);y===void 0?(a=Uu(),v.set(g,a)):a=y}}const l=a;let p;if(a.s===g_)p=a.v;else if(p=t.apply(null,arguments),i++,n){const m=((f=s==null?void 0:s.deref)==null?void 0:f.call(s))??s;m!=null&&n(m,p)&&(p=m,i!==0&&i--),s=typeof p=="object"&&p!==null||typeof p=="function"?new fz(p):p}return l.s=g_,l.v=p,p}return o.clearCache=()=>{r=Uu(),o.resetResultsCount()},o.resultsCount=()=>i,o.resetResultsCount=()=>{i=0},o}function dz(t,...e){const r=typeof t=="function"?{memoize:t,memoizeOptions:e}:t,n=(...s)=>{let i=0,o=0,a,c={},l=s.pop();typeof l=="object"&&(c=l,l=s.pop()),oz(l,`createSelector expects an output function after the inputs, but received: [${typeof l}]`);const p={...r,...c},{memoize:f,memoizeOptions:m=[],argsMemoize:d=r$,argsMemoizeOptions:g=[]}=p,v=m_(m),y=m_(g),E=lz(s),S=f(function(){return i++,l.apply(null,arguments)},...v),w=d(function(){o++;const I=uz(E,arguments);return a=S.apply(null,I),a},...y);return Object.assign(w,{resultFunc:l,memoizedResultFunc:S,dependencies:E,dependencyRecomputations:()=>o,resetDependencyRecomputations:()=>{o=0},lastResult:()=>a,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var Ke=dz(r$),mz=Object.assign((t,e=Ke)=>{az(t,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof t}`);const r=Object.keys(t),n=r.map(i=>t[i]);return e(n,(...i)=>i.reduce((o,a,c)=>(o[r[c]]=a,o),{}))},{withTypes:()=>mz});function gz(t,e){for(var r=-1,n=t==null?0:t.length;++r<n&&e(t[r],r,t)!==!1;);return t}var vb=gz,yz=Pa,vz=ka;function bz(t,e){return t&&yz(e,vz(e),t)}var n$=bz,Ez=Pa,Sz=cl;function wz(t,e){return t&&Ez(e,Sz(e),t)}var _z=wz,xz=Pa,Az=ub;function Oz(t,e){return xz(t,Az(t),e)}var Cz=Oz,$z=lb,Tz=tb,Iz=ub,Rz=MC,Pz=Object.getOwnPropertySymbols,kz=Pz?function(t){for(var e=[];t;)$z(e,Iz(t)),t=Tz(t);return e}:Rz,s$=kz,jz=Pa,Nz=s$;function Mz(t,e){return jz(t,Nz(t),e)}var Dz=Mz,Fz=NC,Bz=s$,Lz=cl;function Uz(t){return Fz(t,Lz,Bz)}var i$=Uz,Vz=Object.prototype,qz=Vz.hasOwnProperty;function zz(t){var e=t.length,r=new t.constructor(e);return e&&typeof t[0]=="string"&&qz.call(t,"index")&&(r.index=t.index,r.input=t.input),r}var Jz=zz,Wz=eb;function Hz(t,e){var r=e?Wz(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}var Kz=Hz,Gz=/\w*$/;function Yz(t){var e=new t.constructor(t.source,Gz.exec(t));return e.lastIndex=t.lastIndex,e}var Xz=Yz,y_=$a,v_=y_?y_.prototype:void 0,b_=v_?v_.valueOf:void 0;function Zz(t){return b_?Object(b_.call(t)):{}}var Qz=Zz,eJ=eb,tJ=Kz,rJ=Xz,nJ=Qz,sJ=yC,iJ="[object Boolean]",oJ="[object Date]",aJ="[object Map]",cJ="[object Number]",lJ="[object RegExp]",uJ="[object Set]",pJ="[object String]",fJ="[object Symbol]",hJ="[object ArrayBuffer]",dJ="[object DataView]",mJ="[object Float32Array]",gJ="[object Float64Array]",yJ="[object Int8Array]",vJ="[object Int16Array]",bJ="[object Int32Array]",EJ="[object Uint8Array]",SJ="[object Uint8ClampedArray]",wJ="[object Uint16Array]",_J="[object Uint32Array]";function xJ(t,e,r){var n=t.constructor;switch(e){case hJ:return eJ(t);case iJ:case oJ:return new n(+t);case dJ:return tJ(t,r);case mJ:case gJ:case yJ:case vJ:case bJ:case EJ:case SJ:case wJ:case _J:return sJ(t,r);case aJ:return new n;case cJ:case pJ:return new n(t);case lJ:return rJ(t);case uJ:return new n;case fJ:return nJ(t)}}var AJ=xJ,OJ=Na,CJ=Fr,$J="[object Map]";function TJ(t){return CJ(t)&&OJ(t)==$J}var IJ=TJ,RJ=IJ,PJ=nb,E_=sb,S_=E_&&E_.isMap,kJ=S_?PJ(S_):RJ,jJ=kJ,NJ=Na,MJ=Fr,DJ="[object Set]";function FJ(t){return MJ(t)&&NJ(t)==DJ}var BJ=FJ,LJ=BJ,UJ=nb,w_=sb,__=w_&&w_.isSet,VJ=__?UJ(__):LJ,qJ=VJ,zJ=mh,JJ=vb,WJ=Eh,HJ=n$,KJ=_z,GJ=mC,YJ=sl,XJ=Cz,ZJ=Dz,QJ=DC,eW=i$,tW=Na,rW=Jz,nW=AJ,sW=bC,iW=hr,oW=ol,aW=jJ,cW=Dr,lW=qJ,uW=ka,pW=cl,fW=1,hW=2,dW=4,o$="[object Arguments]",mW="[object Array]",gW="[object Boolean]",yW="[object Date]",vW="[object Error]",a$="[object Function]",bW="[object GeneratorFunction]",EW="[object Map]",SW="[object Number]",c$="[object Object]",wW="[object RegExp]",_W="[object Set]",xW="[object String]",AW="[object Symbol]",OW="[object WeakMap]",CW="[object ArrayBuffer]",$W="[object DataView]",TW="[object Float32Array]",IW="[object Float64Array]",RW="[object Int8Array]",PW="[object Int16Array]",kW="[object Int32Array]",jW="[object Uint8Array]",NW="[object Uint8ClampedArray]",MW="[object Uint16Array]",DW="[object Uint32Array]",Rt={};Rt[o$]=Rt[mW]=Rt[CW]=Rt[$W]=Rt[gW]=Rt[yW]=Rt[TW]=Rt[IW]=Rt[RW]=Rt[PW]=Rt[kW]=Rt[EW]=Rt[SW]=Rt[c$]=Rt[wW]=Rt[_W]=Rt[xW]=Rt[AW]=Rt[jW]=Rt[NW]=Rt[MW]=Rt[DW]=!0;Rt[vW]=Rt[a$]=Rt[OW]=!1;function mp(t,e,r,n,s,i){var o,a=e&fW,c=e&hW,l=e&dW;if(r&&(o=s?r(t,n,s,i):r(t)),o!==void 0)return o;if(!cW(t))return t;var p=iW(t);if(p){if(o=rW(t),!a)return YJ(t,o)}else{var f=tW(t),m=f==a$||f==bW;if(oW(t))return GJ(t,a);if(f==c$||f==o$||m&&!s){if(o=c||m?{}:sW(t),!a)return c?ZJ(t,KJ(o,t)):XJ(t,HJ(o,t))}else{if(!Rt[f])return s?t:{};o=nW(t,f,a)}}i||(i=new zJ);var d=i.get(t);if(d)return d;i.set(t,o),lW(t)?t.forEach(function(y){o.add(mp(y,e,r,y,t,i))}):aW(t)&&t.forEach(function(y,E){o.set(E,mp(y,e,r,E,t,i))});var g=l?c?eW:QJ:c?pW:uW,v=p?void 0:g(t);return JJ(v||t,function(y,E){v&&(E=y,y=t[E]),WJ(o,E,mp(y,e,r,E,t,i))}),o}var bb=mp;function FW(t){var e=t==null?0:t.length;return e?t[e-1]:void 0}var BW=FW,LW=db,UW=f5;function VW(t,e){return e.length<2?t:LW(t,UW(e,0,-1))}var qW=VW,zW=hl,JW=BW,WW=qW,HW=lo,KW=Object.prototype,GW=KW.hasOwnProperty;function YW(t,e){e=zW(e,t);var r=-1,n=e.length;if(!n)return!0;for(var s=t==null||typeof t!="object"&&typeof t!="function";++r<n;){var i=e[r];if(typeof i=="string"){if(i==="__proto__"&&!GW.call(t,"__proto__"))return!1;if(i==="constructor"&&r+1<n&&typeof e[r+1]=="string"&&e[r+1]==="prototype"){if(s&&r===0)continue;return!1}}}var o=WW(t,e);return o==null||delete o[HW(JW(e))]}var XW=YW,ZW=vh;function QW(t){return ZW(t)?void 0:t}var eH=QW,x_=$a,tH=il,rH=hr,A_=x_?x_.isConcatSpreadable:void 0;function nH(t){return rH(t)||tH(t)||!!(A_&&t&&t[A_])}var sH=nH,iH=lb,oH=sH;function l$(t,e,r,n,s){var i=-1,o=t.length;for(r||(r=oH),s||(s=[]);++i<o;){var a=t[i];e>0&&r(a)?e>1?l$(a,e-1,r,n,s):iH(s,a):n||(s[s.length]=a)}return s}var aH=l$,cH=aH;function lH(t){var e=t==null?0:t.length;return e?cH(t,1):[]}var uH=lH,pH=uH,fH=OC,hH=ob;function dH(t){return hH(fH(t,void 0,pH),t+"")}var u$=dH,mH=ab,gH=bb,yH=XW,vH=hl,bH=Pa,EH=eH,SH=u$,wH=i$,_H=1,xH=2,AH=4,OH=SH(function(t,e){var r={};if(t==null)return r;var n=!1;e=mH(e,function(i){return i=vH(i,t),n||(n=i.length>1),i}),bH(t,wH(t),r),n&&(r=gH(r,_H|xH|AH,EH));for(var s=e.length;s--;)yH(r,e[s]);return r}),CH=OH;const Eb=Ze(CH);var p$={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():function n(){document&&document.body?e.zenscroll=r():setTimeout(n,9)}()})(Xt,function(){var e=function(l){return l&&"getComputedStyle"in window&&window.getComputedStyle(l)["scroll-behavior"]==="smooth"};if(typeof window>"u"||!("document"in window))return{};var r=function(l,p,f){p=p||999,!f&&f!==0&&(f=9);var m,d=function(I){m=I},g=function(){clearTimeout(m),d(0)},v=function(I){return Math.max(0,l.getTopOf(I)-f)},y=function(I,T,D){if(g(),T===0||T&&T<0||e(l.body))l.toY(I),D&&D();else{var B=l.getY(),P=Math.max(0,I)-B,Z=new Date().getTime();T=T||Math.min(Math.abs(P),p),function V(){d(setTimeout(function(){var J=Math.min(1,(new Date().getTime()-Z)/T),F=Math.max(0,Math.floor(B+P*(J<.5?2*J*J:J*(4-J*2)-1)));l.toY(F),J<1&&l.getHeight()+F<l.body.scrollHeight?V():(setTimeout(g,99),D&&D())},9))}()}},E=function(I,T,D){y(v(I),T,D)},S=function(I,T,D){var B=I.getBoundingClientRect().height,P=l.getTopOf(I)+B,Z=l.getHeight(),V=l.getY(),J=V+Z;v(I)<V||B+f>Z?E(I,T,D):P+f>J?y(P-Z+f,T,D):D&&D()},w=function(I,T,D,B){y(Math.max(0,l.getTopOf(I)-l.getHeight()/2+(D||I.getBoundingClientRect().height/2)),T,B)},x=function(I,T){return(I===0||I)&&(p=I),(T===0||T)&&(f=T),{defaultDuration:p,edgeOffset:f}};return{setup:x,to:E,toY:y,intoView:S,center:w,stop:g,moving:function(){return!!m},getY:l.getY,getTopOf:l.getTopOf}},n=document.documentElement,s=function(){return window.scrollY||n.scrollTop},i=r({body:document.scrollingElement||document.body,toY:function(l){window.scrollTo(0,l)},getY:s,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(l){return l.getBoundingClientRect().top+s()-n.offsetTop}});if(i.createScroller=function(l,p,f){return r({body:l,toY:function(m){l.scrollTop=m},getY:function(){return l.scrollTop},getHeight:function(){return Math.min(l.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(m){return m.offsetTop}},p,f)},"addEventListener"in window&&!window.noZensmooth&&!e(document.body)){var o="history"in window&&"pushState"in history,a=o&&"scrollRestoration"in history;a&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){a&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(l){l.state&&"zenscrollY"in l.state&&i.toY(l.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var l=i.setup().edgeOffset;if(l){var p=document.getElementById(window.location.href.split("#")[1]);if(p){var f=Math.max(0,i.getTopOf(p)-l),m=i.getY()-f;0<=m&&m<9&&window.scrollTo(0,f)}}},9)},!1);var c=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(l){for(var p=l.target;p&&p.tagName!=="A";)p=p.parentNode;if(!(!p||l.which!==1||l.shiftKey||l.metaKey||l.ctrlKey||l.altKey)){if(a){var f=history.state&&typeof history.state=="object"?history.state:{};f.zenscrollY=i.getY();try{history.replaceState(f,"")}catch{}}var m=p.getAttribute("href")||"";if(m.indexOf("#")===0&&!c.test(p.className)){var d=0,g=document.getElementById(m.substring(1));if(m!=="#"){if(!g)return;d=i.getTopOf(g)}l.preventDefault();var v=function(){window.location=m},y=i.setup().edgeOffset;y&&(d=Math.max(0,d-y),o&&(v=function(){history.pushState({},"",m)})),i.toY(d,null,v)}}},!1)}return i})})(p$);var $H=p$.exports;const TH=Ze($H);var wh=K,IH="<<anonymous>>",_h;{var un=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};un.isRequired=un;var pn=function(){return un};_h={listOf:pn,mapOf:pn,orderedMapOf:pn,setOf:pn,orderedSetOf:pn,stackOf:pn,iterableOf:pn,recordOf:pn,shape:pn,contains:pn,mapContains:pn,orderedMapContains:pn,list:un,map:un,orderedMap:un,set:un,orderedSet:un,stack:un,seq:un,record:un,iterable:un}}_h.iterable.indexed=f$("Indexed",wh.Iterable.isIndexed);_h.iterable.keyed=f$("Keyed",wh.Iterable.isKeyed);function RH(t){var e=typeof t;return Array.isArray(t)?"array":t instanceof RegExp?"object":t instanceof wh.Iterable?"Immutable."+t.toSource().split(" ")[0]:e}function PH(t){function e(n,s,i,o,a,c){for(var l=arguments.length,p=Array(l>6?l-6:0),f=6;f<l;f++)p[f-6]=arguments[f];if(c=c||i,o=o||IH,s[i]==null){var m=a;if(n)return new Error("Required "+m+" `"+c+"` was not specified in "+("`"+o+"`."))}else return t.apply(void 0,[s,i,o,a,c].concat(p))}var r=e.bind(null,!1);return r.isRequired=e.bind(null,!0),r}function kH(t,e){function r(n,s,i,o,a){var c=n[s];if(!e(c)){var l=RH(c);return new Error("Invalid "+o+" `"+a+"` of type `"+l+"` "+("supplied to `"+i+"`, expected `"+t+"`."))}return null}return PH(r)}function f$(t,e){return kH("Iterable."+t,function(r){return wh.Iterable.isIterable(r)&&e(r)})}var jH=_h;const O_=Ze(jH);function NH(t,e,r,n,s){return s(t,function(i,o,a){r=n?(n=!1,i):e(r,i,o,a)}),r}var MH=NH,DH=d5,FH=KC,BH=dl,LH=MH,UH=hr;function VH(t,e,r){var n=UH(t)?DH:LH,s=arguments.length<3;return n(t,BH(e),r,s,FH)}var qH=VH;const zH=Ze(qH);var sc=function(t){return t&&t.Math===Math&&t},zr=sc(typeof globalThis=="object"&&globalThis)||sc(typeof window=="object"&&window)||sc(typeof self=="object"&&self)||sc(typeof Xt=="object"&&Xt)||sc(typeof Xt=="object"&&Xt)||function(){return this}()||Function("return this")(),Cn=function(t){try{return!!t()}catch{return!0}},JH=Cn,ml=!JH(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),WH=ml,h$=Function.prototype,C_=h$.apply,$_=h$.call,Sb=typeof Reflect=="object"&&Reflect.apply||(WH?$_.bind(C_):function(){return $_.apply(C_,arguments)}),d$=ml,m$=Function.prototype,wy=m$.call,HH=d$&&m$.bind.bind(wy,wy),Jr=d$?HH:function(t){return function(){return wy.apply(t,arguments)}},g$=Jr,KH=g$({}.toString),GH=g$("".slice),wb=function(t){return GH(KH(t),8,-1)},YH=wb,XH=Jr,y$=function(t){if(YH(t)==="Function")return XH(t)},Pm=typeof document=="object"&&document.all,$n=typeof Pm>"u"&&Pm!==void 0?function(t){return typeof t=="function"||t===Pm}:function(t){return typeof t=="function"},_b={},ZH=Cn,qs=!ZH(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),QH=ml,Vu=Function.prototype.call,bi=QH?Vu.bind(Vu):function(){return Vu.apply(Vu,arguments)},xb={},v$={}.propertyIsEnumerable,b$=Object.getOwnPropertyDescriptor,eK=b$&&!v$.call({1:2},1);xb.f=eK?function(e){var r=b$(this,e);return!!r&&r.enumerable}:v$;var gl=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},tK=Jr,rK=Cn,nK=wb,km=Object,sK=tK("".split),E$=rK(function(){return!km("z").propertyIsEnumerable(0)})?function(t){return nK(t)==="String"?sK(t,""):km(t)}:km,Ab=function(t){return t==null},iK=Ab,oK=TypeError,xh=function(t){if(iK(t))throw new oK("Can't call method on "+t);return t},aK=E$,cK=xh,yl=function(t){return aK(cK(t))},lK=$n,Hn=function(t){return typeof t=="object"?t!==null:lK(t)},vl={},jm=vl,Nm=zr,uK=$n,T_=function(t){return uK(t)?t:void 0},bl=function(t,e){return arguments.length<2?T_(jm[t])||T_(Nm[t]):jm[t]&&jm[t][e]||Nm[t]&&Nm[t][e]},pK=Jr,El=pK({}.isPrototypeOf),fK=zr,I_=fK.navigator,R_=I_&&I_.userAgent,hK=R_?String(R_):"",S$=zr,Mm=hK,P_=S$.process,k_=S$.Deno,j_=P_&&P_.versions||k_&&k_.version,N_=j_&&j_.v8,Ln,qp;N_&&(Ln=N_.split("."),qp=Ln[0]>0&&Ln[0]<4?1:+(Ln[0]+Ln[1]));!qp&&Mm&&(Ln=Mm.match(/Edge\/(\d+)/),(!Ln||Ln[1]>=74)&&(Ln=Mm.match(/Chrome\/(\d+)/),Ln&&(qp=+Ln[1])));var dK=qp,M_=dK,mK=Cn,gK=zr,yK=gK.String,w$=!!Object.getOwnPropertySymbols&&!mK(function(){var t=Symbol("symbol detection");return!yK(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&M_&&M_<41}),vK=w$,_$=vK&&!Symbol.sham&&typeof Symbol.iterator=="symbol",bK=bl,EK=$n,SK=El,wK=_$,_K=Object,x$=wK?function(t){return typeof t=="symbol"}:function(t){var e=bK("Symbol");return EK(e)&&SK(e.prototype,_K(t))},xK=String,Ob=function(t){try{return xK(t)}catch{return"Object"}},AK=$n,OK=Ob,CK=TypeError,Sl=function(t){if(AK(t))return t;throw new CK(OK(t)+" is not a function")},$K=Sl,TK=Ab,Cb=function(t,e){var r=t[e];return TK(r)?void 0:$K(r)},Dm=bi,Fm=$n,Bm=Hn,IK=TypeError,RK=function(t,e){var r,n;if(e==="string"&&Fm(r=t.toString)&&!Bm(n=Dm(r,t))||Fm(r=t.valueOf)&&!Bm(n=Dm(r,t))||e!=="string"&&Fm(r=t.toString)&&!Bm(n=Dm(r,t)))return n;throw new IK("Can't convert object to primitive value")},A$={exports:{}},D_=zr,PK=Object.defineProperty,kK=function(t,e){try{PK(D_,t,{value:e,configurable:!0,writable:!0})}catch{D_[t]=e}return e},jK=zr,NK=kK,F_="__core-js_shared__",B_=A$.exports=jK[F_]||NK(F_,{});(B_.versions||(B_.versions=[])).push({version:"3.49.0",mode:"pure",copyright:"© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.49.0/LICENSE",source:"https://github.com/zloirock/core-js"});var O$=A$.exports,L_=O$,C$=function(t,e){return L_[t]||(L_[t]=e||{})},MK=xh,DK=Object,$b=function(t){return DK(MK(t))},FK=Jr,BK=$b,LK=FK({}.hasOwnProperty),ws=Object.hasOwn||function(e,r){return LK(BK(e),r)},UK=Jr,VK=0,qK=Math.random(),zK=UK(1.1.toString),$$=function(t){return"Symbol("+(t===void 0?"":t)+")_"+zK(++VK+qK,36)},JK=zr,WK=C$,U_=ws,HK=$$,KK=w$,GK=_$,ea=JK.Symbol,Lm=WK("wks"),YK=GK?ea.for||ea:ea&&ea.withoutSetter||HK,zs=function(t){return U_(Lm,t)||(Lm[t]=KK&&U_(ea,t)?ea[t]:YK("Symbol."+t)),Lm[t]},XK=bi,V_=Hn,q_=x$,ZK=Cb,QK=RK,eG=zs,tG=TypeError,rG=eG("toPrimitive"),nG=function(t,e){if(!V_(t)||q_(t))return t;var r=ZK(t,rG),n;if(r){if(e===void 0&&(e="default"),n=XK(r,t,e),!V_(n)||q_(n))return n;throw new tG("Can't convert object to primitive value")}return e===void 0&&(e="number"),QK(t,e)},sG=nG,iG=x$,T$=function(t){var e=sG(t,"string");return iG(e)?e:e+""},oG=zr,z_=Hn,_y=oG.document,aG=z_(_y)&&z_(_y.createElement),I$=function(t){return aG?_y.createElement(t):{}},cG=qs,lG=Cn,uG=I$,R$=!cG&&!lG(function(){return Object.defineProperty(uG("div"),"a",{get:function(){return 7}}).a!==7}),pG=qs,fG=bi,hG=xb,dG=gl,mG=yl,gG=T$,yG=ws,vG=R$,J_=Object.getOwnPropertyDescriptor;_b.f=pG?J_:function(e,r){if(e=mG(e),r=gG(r),vG)try{return J_(e,r)}catch{}if(yG(e,r))return dG(!fG(hG.f,e,r),e[r])};var bG=Cn,EG=$n,SG=/#|\.prototype\./,wl=function(t,e){var r=_G[wG(t)];return r===AG?!0:r===xG?!1:EG(e)?bG(e):!!e},wG=wl.normalize=function(t){return String(t).replace(SG,".").toLowerCase()},_G=wl.data={},xG=wl.NATIVE="N",AG=wl.POLYFILL="P",OG=wl,W_=y$,CG=Sl,$G=ml,TG=W_(W_.bind),P$=function(t,e){return CG(t),e===void 0?t:$G?TG(t,e):function(){return t.apply(e,arguments)}},uo={},IG=qs,RG=Cn,k$=IG&&RG(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),PG=Hn,kG=String,jG=TypeError,po=function(t){if(PG(t))return t;throw new jG(kG(t)+" is not an object")},NG=qs,MG=R$,DG=k$,qu=po,H_=T$,FG=TypeError,Um=Object.defineProperty,BG=Object.getOwnPropertyDescriptor,Vm="enumerable",qm="configurable",zm="writable";uo.f=NG?DG?function(e,r,n){if(qu(e),r=H_(r),qu(n),typeof e=="function"&&r==="prototype"&&"value"in n&&zm in n&&!n[zm]){var s=BG(e,r);s&&s[zm]&&(e[r]=n.value,n={configurable:qm in n?n[qm]:s[qm],enumerable:Vm in n?n[Vm]:s[Vm],writable:!1})}return Um(e,r,n)}:Um:function(e,r,n){if(qu(e),r=H_(r),qu(n),MG)try{return Um(e,r,n)}catch{}if("get"in n||"set"in n)throw new FG("Accessors not supported");return"value"in n&&(e[r]=n.value),e};var LG=qs,UG=uo,VG=gl,Ei=LG?function(t,e,r){return UG.f(t,e,VG(1,r))}:function(t,e,r){return t[e]=r,t},ic=zr,qG=Sb,zG=y$,JG=$n,WG=_b.f,HG=OG,Uo=vl,KG=P$,Vo=Ei,K_=ws,GG=function(t){var e=function(r,n,s){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,s)}return qG(t,this,arguments)};return e.prototype=t.prototype,e},Ma=function(t,e){var r=t.target,n=t.global,s=t.stat,i=t.proto,o=n?ic:s?ic[r]:ic[r]&&ic[r].prototype,a=n?Uo:Uo[r]||Vo(Uo,r,{})[r],c=a.prototype,l,p,f,m,d,g,v,y,E;for(m in e)l=HG(n?m:r+(s?".":"#")+m,t.forced),p=!l&&o&&K_(o,m),g=a[m],p&&(t.dontCallGetSet?(E=WG(o,m),v=E&&E.value):v=o[m]),d=p&&v?v:e[m],!(!l&&!i&&typeof g==typeof d)&&(t.bind&&p?y=KG(d,ic):t.wrap&&p?y=GG(d):i&&JG(d)?y=zG(d):y=d,(t.sham||d&&d.sham||g&&g.sham)&&Vo(y,"sham",!0),Vo(a,m,y),i&&(f=r+"Prototype",K_(Uo,f)||Vo(Uo,f,{}),Vo(Uo[f],m,d),t.real&&c&&(l||!c[m])&&Vo(c,m,d)))},YG=Math.ceil,XG=Math.floor,ZG=Math.trunc||function(e){var r=+e;return(r>0?XG:YG)(r)},QG=ZG,Tb=function(t){var e=+t;return e!==e||e===0?0:QG(e)},eY=Tb,tY=Math.max,rY=Math.min,nY=function(t,e){var r=eY(t);return r<0?tY(r+e,0):rY(r,e)},sY=Tb,iY=Math.min,oY=function(t){var e=sY(t);return e>0?iY(e,9007199254740991):0},aY=oY,j$=function(t){return aY(t.length)},cY=yl,lY=nY,uY=j$,pY=function(t){return function(e,r,n){var s=cY(e),i=uY(s);if(i===0)return!t&&-1;var o=lY(n,i),a;if(t&&r!==r){for(;i>o;)if(a=s[o++],a!==a)return!0}else for(;i>o;o++)if((t||o in s)&&s[o]===r)return t||o||0;return!t&&-1}},fY={indexOf:pY(!1)},Ib={},hY=Jr,Jm=ws,dY=yl,mY=fY.indexOf,gY=Ib,G_=hY([].push),N$=function(t,e){var r=dY(t),n=0,s=[],i;for(i in r)!Jm(gY,i)&&Jm(r,i)&&G_(s,i);for(;e.length>n;)Jm(r,i=e[n++])&&(~mY(s,i)||G_(s,i));return s},Rb=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],yY=N$,vY=Rb,M$=Object.keys||function(e){return yY(e,vY)},Pb={};Pb.f=Object.getOwnPropertySymbols;var Y_=qs,bY=Jr,EY=bi,SY=Cn,Wm=M$,wY=Pb,_Y=xb,xY=$b,AY=E$,qo=Object.assign,X_=Object.defineProperty,OY=bY([].concat),CY=!qo||SY(function(){if(Y_&&qo({b:1},qo(X_({},"a",{enumerable:!0,get:function(){X_(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach(function(s){e[s]=s}),qo({},t)[r]!==7||Wm(qo({},e)).join("")!==n})?function(e,r){for(var n=xY(e),s=arguments.length,i=1,o=wY.f,a=_Y.f;s>i;)for(var c=AY(arguments[i++]),l=o?OY(Wm(c),o(c)):Wm(c),p=l.length,f=0,m;p>f;)m=l[f++],(!Y_||EY(a,c,m))&&(n[m]=c[m]);return n}:qo,$Y=Ma,Z_=CY;$Y({target:"Object",stat:!0,forced:Object.assign!==Z_},{assign:Z_});var TY=vl,IY=TY.Object.assign,RY=IY,PY=RY,kY=PY,jY=kY,NY=jY,MY=NY,DY=MY;const Q_=Ze(DY);var FY=Jr,BY=FY([].slice),D$=Jr,LY=Sl,UY=Hn,VY=ws,ex=BY,qY=ml,F$=Function,zY=D$([].concat),JY=D$([].join),Hm={},WY=function(t,e,r){if(!VY(Hm,e)){for(var n=[],s=0;s<e;s++)n[s]="a["+s+"]";Hm[e]=F$("C,a","return new C("+JY(n,",")+")")}return Hm[e](t,r)},HY=qY?F$.bind:function(e){var r=LY(this),n=r.prototype,s=ex(arguments,1),i=function(){var a=zY(s,ex(arguments));return this instanceof i?WY(r,a.length,a):r.apply(e,a)};return UY(n)&&(i.prototype=n),i},KY=Ma,tx=HY;KY({target:"Function",proto:!0,forced:Function.bind!==tx},{bind:tx});var GY=zr,YY=vl,XY=function(t,e){var r=YY[t+"Prototype"],n=r&&r[e];if(n)return n;var s=GY[t],i=s&&s.prototype;return i&&i[e]},ZY=XY,QY=ZY("Function","bind"),eX=El,tX=QY,Km=Function.prototype,rX=function(t){var e=t.bind;return t===Km||eX(Km,t)&&e===Km.bind?tX:e},nX=rX,sX=nX,iX=sX,oX=iX,aX=oX,cX=aX,lX=cX;const uX=Ze(lX);function lt(){var t;return lt=Q_?uX(t=Q_).call(t):function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var s in n)({}).hasOwnProperty.call(n,s)&&(e[s]=n[s])}return e},lt.apply(null,arguments)}var B$={exports:{}};/*!
|
|
7
|
+
Copyright (c) 2018 Jed Watson.
|
|
8
|
+
Licensed under the MIT License (MIT), see
|
|
9
|
+
http://jedwatson.github.io/classnames
|
|
10
|
+
*/(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var i="",o=0;o<arguments.length;o++){var a=arguments[o];a&&(i=s(i,n(a)))}return i}function n(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return r.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var o="";for(var a in i)e.call(i,a)&&i[a]&&(o=s(o,a));return o}function s(i,o){return o?i?i+" "+o:i+o:i}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(B$);var pX=B$.exports;const mt=Ze(pX);var Ah={},fX=function(){var t=document.getSelection();if(!t.rangeCount)return function(){};for(var e=document.activeElement,r=[],n=0;n<t.rangeCount;n++)r.push(t.getRangeAt(n));switch(e.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":e.blur();break;default:e=null;break}return t.removeAllRanges(),function(){t.type==="Caret"&&t.removeAllRanges(),t.rangeCount||r.forEach(function(s){t.addRange(s)}),e&&e.focus()}},hX=fX,rx={"text/plain":"Text","text/html":"Url",default:"Text"},dX="Copy to clipboard: #{key}, Enter";function mX(t){var e=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return t.replace(/#{\s*key\s*}/g,e)}function gX(t,e){var r,n,s,i,o,a,c=!1;e||(e={}),r=e.debug||!1;try{s=hX(),i=document.createRange(),o=document.getSelection(),a=document.createElement("span"),a.textContent=t,a.ariaHidden="true",a.style.all="unset",a.style.position="fixed",a.style.top=0,a.style.clip="rect(0, 0, 0, 0)",a.style.whiteSpace="pre",a.style.webkitUserSelect="text",a.style.MozUserSelect="text",a.style.msUserSelect="text",a.style.userSelect="text",a.addEventListener("copy",function(p){if(p.stopPropagation(),e.format)if(p.preventDefault(),typeof p.clipboardData>"u"){r&&console.warn("unable to use e.clipboardData"),r&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var f=rx[e.format]||rx.default;window.clipboardData.setData(f,t)}else p.clipboardData.clearData(),p.clipboardData.setData(e.format,t);e.onCopy&&(p.preventDefault(),e.onCopy(p.clipboardData))}),document.body.appendChild(a),i.selectNodeContents(a),o.addRange(i);var l=document.execCommand("copy");if(!l)throw new Error("copy command was unsuccessful");c=!0}catch(p){r&&console.error("unable to copy using execCommand: ",p),r&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(e.format||"text",t),e.onCopy&&e.onCopy(window.clipboardData),c=!0}catch(f){r&&console.error("unable to copy using clipboardData: ",f),r&&console.error("falling back to prompt"),n=mX("message"in e?e.message:dX),window.prompt(n,t)}}finally{o&&(typeof o.removeRange=="function"?o.removeRange(i):o.removeAllRanges()),a&&document.body.removeChild(a),s()}return c}var yX=gX;function xy(t){"@babel/helpers - typeof";return xy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xy(t)}Object.defineProperty(Ah,"__esModule",{value:!0});Ah.CopyToClipboard=void 0;var zu=L$(be),vX=L$(yX),bX=["text","onCopy","options","children"];function L$(t){return t&&t.__esModule?t:{default:t}}function nx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function sx(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?nx(Object(r),!0).forEach(function(n){kb(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):nx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function EX(t,e){if(t==null)return{};var r=SX(t,e),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function SX(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}function wX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _X(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function xX(t,e,r){return e&&_X(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function AX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ay(t,e)}function Ay(t,e){return Ay=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},Ay(t,e)}function OX(t){var e=$X();return function(){var n=zp(t),s;if(e){var i=zp(this).constructor;s=Reflect.construct(n,arguments,i)}else s=n.apply(this,arguments);return CX(this,s)}}function CX(t,e){if(e&&(xy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return U$(t)}function U$(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function $X(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function zp(t){return zp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},zp(t)}function kb(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var V$=function(t){AX(r,t);var e=OX(r);function r(){var n;wX(this,r);for(var s=arguments.length,i=new Array(s),o=0;o<s;o++)i[o]=arguments[o];return n=e.call.apply(e,[this].concat(i)),kb(U$(n),"onClick",function(a){var c=n.props,l=c.text,p=c.onCopy,f=c.children,m=c.options,d=zu.default.Children.only(f),g=(0,vX.default)(l,m);p&&p(l,g),d&&d.props&&typeof d.props.onClick=="function"&&d.props.onClick(a)}),n}return xX(r,[{key:"render",value:function(){var s=this.props;s.text,s.onCopy,s.options;var i=s.children,o=EX(s,bX),a=zu.default.Children.only(i);return zu.default.cloneElement(a,sx(sx({},o),{},{onClick:this.onClick}))}}]),r}(zu.default.PureComponent);Ah.CopyToClipboard=V$;kb(V$,"defaultProps",{onCopy:void 0,options:void 0});var TX=Ah,Oy=TX.CopyToClipboard;Oy.CopyToClipboard=Oy;var Oh=Oy;function gp(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?gp=function(e){return typeof e}:gp=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},gp(t)}function IX(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function RX(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function PX(t,e,r){return e&&RX(t.prototype,e),t}function kX(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function ix(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function jX(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ix(r,!0).forEach(function(n){kX(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ix(r).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function NX(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&$y(t,e)}function Cy(t){return Cy=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Cy(t)}function $y(t,e){return $y=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},$y(t,e)}function MX(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function DX(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:MX(t)}var ox={};function FX(t){return t!==null&&gp(t)==="object"&&typeof t.get=="function"&&typeof t.has=="function"}function BX(t){return t==null}function LX(t,e,r){return BX(t)?r:FX(t)?t.has(e)?t.get(e):r:hasOwnProperty.call(t,e)?t[e]:r}function ax(t,e,r){for(var n=0;n!==e.length;)if(t=LX(t,e[n++],ox),t===ox)return r;return t}function cx(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=UX(e,r),s=t||Object.keys(jX({},r,{},e));return s.every(n)}function UX(t,e){return function(r){if(typeof r=="string")return K.is(e[r],t[r]);if(Array.isArray(r))return K.is(ax(e,r),ax(t,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}var VX=function(t){NX(e,t);function e(){return IX(this,e),DX(this,Cy(e).apply(this,arguments))}return PX(e,[{key:"shouldComponentUpdate",value:function(n){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!cx(this.updateOnProps,this.props,n,"updateOnProps")||!cx(this.updateOnStates,this.state,s,"updateOnStates")}}]),e}(u.Component),Ch={},qX="Expected a function",lx=NaN,zX="[object Symbol]",JX=/^\s+|\s+$/g,WX=/^[-+]0x[0-9a-f]+$/i,HX=/^0b[01]+$/i,KX=/^0o[0-7]+$/i,GX=parseInt,YX=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,XX=typeof self=="object"&&self&&self.Object===Object&&self,ZX=YX||XX||Function("return this")(),QX=Object.prototype,eZ=QX.toString,tZ=Math.max,rZ=Math.min,Gm=function(){return ZX.Date.now()};function nZ(t,e,r){var n,s,i,o,a,c,l=0,p=!1,f=!1,m=!0;if(typeof t!="function")throw new TypeError(qX);e=ux(e)||0,Ty(r)&&(p=!!r.leading,f="maxWait"in r,i=f?tZ(ux(r.maxWait)||0,e):i,m="trailing"in r?!!r.trailing:m);function d(T){var D=n,B=s;return n=s=void 0,l=T,o=t.apply(B,D),o}function g(T){return l=T,a=setTimeout(E,e),p?d(T):o}function v(T){var D=T-c,B=T-l,P=e-D;return f?rZ(P,i-B):P}function y(T){var D=T-c,B=T-l;return c===void 0||D>=e||D<0||f&&B>=i}function E(){var T=Gm();if(y(T))return S(T);a=setTimeout(E,v(T))}function S(T){return a=void 0,m&&n?d(T):(n=s=void 0,o)}function w(){a!==void 0&&clearTimeout(a),l=0,n=c=s=a=void 0}function x(){return a===void 0?o:S(Gm())}function I(){var T=Gm(),D=y(T);if(n=arguments,s=this,c=T,D){if(a===void 0)return g(c);if(f)return a=setTimeout(E,e),d(c)}return a===void 0&&(a=setTimeout(E,e)),o}return I.cancel=w,I.flush=x,I}function Ty(t){var e=typeof t;return!!t&&(e=="object"||e=="function")}function sZ(t){return!!t&&typeof t=="object"}function iZ(t){return typeof t=="symbol"||sZ(t)&&eZ.call(t)==zX}function ux(t){if(typeof t=="number")return t;if(iZ(t))return lx;if(Ty(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=Ty(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=t.replace(JX,"");var r=HX.test(t);return r||KX.test(t)?GX(t.slice(2),r?2:8):WX.test(t)?lx:+t}var oZ=nZ;function Iy(t){"@babel/helpers - typeof";return Iy=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Iy(t)}Object.defineProperty(Ch,"__esModule",{value:!0});Ch.DebounceInput=void 0;var px=q$(be),aZ=q$(oZ),cZ=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function q$(t){return t&&t.__esModule?t:{default:t}}function lZ(t,e){if(t==null)return{};var r=uZ(t,e),n,s;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(s=0;s<i.length;s++)n=i[s],!(e.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function uZ(t,e){if(t==null)return{};var r={},n=Object.keys(t),s,i;for(i=0;i<n.length;i++)s=n[i],!(e.indexOf(s)>=0)&&(r[s]=t[s]);return r}function fx(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function fn(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?fx(Object(r),!0).forEach(function(n){ci(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):fx(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function pZ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function fZ(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function hZ(t,e,r){return e&&fZ(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function dZ(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Ry(t,e)}function Ry(t,e){return Ry=Object.setPrototypeOf||function(n,s){return n.__proto__=s,n},Ry(t,e)}function mZ(t){var e=yZ();return function(){var n=Jp(t),s;if(e){var i=Jp(this).constructor;s=Reflect.construct(n,arguments,i)}else s=n.apply(this,arguments);return gZ(this,s)}}function gZ(t,e){if(e&&(Iy(e)==="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Li(t)}function Li(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function yZ(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function Jp(t){return Jp=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Jp(t)}function ci(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}var z$=function(t){dZ(r,t);var e=mZ(r);function r(n){var s;pZ(this,r),s=e.call(this,n),ci(Li(s),"onChange",function(o){o.persist();var a=s.state.value,c=s.props.minLength;s.setState({value:o.target.value},function(){var l=s.state.value;if(l.length>=c){s.notify(o);return}a.length>l.length&&s.notify(fn(fn({},o),{},{target:fn(fn({},o.target),{},{value:""})}))})}),ci(Li(s),"onKeyDown",function(o){o.key==="Enter"&&s.forceNotify(o);var a=s.props.onKeyDown;a&&(o.persist(),a(o))}),ci(Li(s),"onBlur",function(o){s.forceNotify(o);var a=s.props.onBlur;a&&(o.persist(),a(o))}),ci(Li(s),"createNotifier",function(o){if(o<0)s.notify=function(){return null};else if(o===0)s.notify=s.doNotify;else{var a=(0,aZ.default)(function(c){s.isDebouncing=!1,s.doNotify(c)},o);s.notify=function(c){s.isDebouncing=!0,a(c)},s.flush=function(){return a.flush()},s.cancel=function(){s.isDebouncing=!1,a.cancel()}}}),ci(Li(s),"doNotify",function(){var o=s.props.onChange;o.apply(void 0,arguments)}),ci(Li(s),"forceNotify",function(o){var a=s.props.debounceTimeout;if(!(!s.isDebouncing&&a>0)){s.cancel&&s.cancel();var c=s.state.value,l=s.props.minLength;c.length>=l?s.doNotify(o):s.doNotify(fn(fn({},o),{},{target:fn(fn({},o.target),{},{value:c})}))}}),s.isDebouncing=!1,s.state={value:typeof n.value>"u"||n.value===null?"":n.value};var i=s.props.debounceTimeout;return s.createNotifier(i),s}return hZ(r,[{key:"componentDidUpdate",value:function(s){if(!this.isDebouncing){var i=this.props,o=i.value,a=i.debounceTimeout,c=s.debounceTimeout,l=s.value,p=this.state.value;typeof o<"u"&&l!==o&&p!==o&&this.setState({value:o}),a!==c&&this.createNotifier(a)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var s=this.props,i=s.element;s.onChange,s.value,s.minLength,s.debounceTimeout;var o=s.forceNotifyByEnter,a=s.forceNotifyOnBlur,c=s.onKeyDown,l=s.onBlur,p=s.inputRef,f=lZ(s,cZ),m=this.state.value,d;o?d={onKeyDown:this.onKeyDown}:c?d={onKeyDown:c}:d={};var g;a?g={onBlur:this.onBlur}:l?g={onBlur:l}:g={};var v=p?{ref:p}:{};return px.default.createElement(i,fn(fn(fn(fn({},f),{},{onChange:this.onChange,value:m},d),g),v))}}]),r}(px.default.PureComponent);Ch.DebounceInput=z$;ci(z$,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0});var vZ=Ch,Py=vZ.DebounceInput;Py.DebounceInput=Py;var bZ=Py;const J$=Ze(bZ);var jb={exports:{}},W$={},$h={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7},Js={};const xt=$h,Nb=()=>[{type:xt.RANGE,from:48,to:57}],H$=()=>[{type:xt.CHAR,value:95},{type:xt.RANGE,from:97,to:122},{type:xt.RANGE,from:65,to:90}].concat(Nb()),K$=()=>[{type:xt.CHAR,value:9},{type:xt.CHAR,value:10},{type:xt.CHAR,value:11},{type:xt.CHAR,value:12},{type:xt.CHAR,value:13},{type:xt.CHAR,value:32},{type:xt.CHAR,value:160},{type:xt.CHAR,value:5760},{type:xt.RANGE,from:8192,to:8202},{type:xt.CHAR,value:8232},{type:xt.CHAR,value:8233},{type:xt.CHAR,value:8239},{type:xt.CHAR,value:8287},{type:xt.CHAR,value:12288},{type:xt.CHAR,value:65279}],EZ=()=>[{type:xt.CHAR,value:10},{type:xt.CHAR,value:13},{type:xt.CHAR,value:8232},{type:xt.CHAR,value:8233}];Js.words=()=>({type:xt.SET,set:H$(),not:!1});Js.notWords=()=>({type:xt.SET,set:H$(),not:!0});Js.ints=()=>({type:xt.SET,set:Nb(),not:!1});Js.notInts=()=>({type:xt.SET,set:Nb(),not:!0});Js.whitespace=()=>({type:xt.SET,set:K$(),not:!1});Js.notWhitespace=()=>({type:xt.SET,set:K$(),not:!0});Js.anyChar=()=>({type:xt.SET,set:EZ(),not:!0});(function(t){const e=$h,r=Js,n="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",s={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(i){var o=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return i=i.replace(o,function(a,c,l,p,f,m,d,g){if(l)return a;var v=c?8:p?parseInt(p,16):f?parseInt(f,16):m?parseInt(m,8):d?n.indexOf(d):s[g],y=String.fromCharCode(v);return/[[\]{}^$.|?*+()]/.test(y)&&(y="\\"+y),y}),i},t.tokenizeClass=(i,o)=>{for(var a=[],c=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,l,p;(l=c.exec(i))!=null;)if(l[1])a.push(r.words());else if(l[2])a.push(r.ints());else if(l[3])a.push(r.whitespace());else if(l[4])a.push(r.notWords());else if(l[5])a.push(r.notInts());else if(l[6])a.push(r.notWhitespace());else if(l[7])a.push({type:e.RANGE,from:(l[8]||l[9]).charCodeAt(0),to:l[10].charCodeAt(0)});else if(p=l[12])a.push({type:e.CHAR,value:p.charCodeAt(0)});else return[a,c.lastIndex];t.error(o,"Unterminated character class")},t.error=(i,o)=>{throw new SyntaxError("Invalid regular expression: /"+i+"/: "+o)}})(W$);var _l={};const Th=$h;_l.wordBoundary=()=>({type:Th.POSITION,value:"b"});_l.nonWordBoundary=()=>({type:Th.POSITION,value:"B"});_l.begin=()=>({type:Th.POSITION,value:"^"});_l.end=()=>({type:Th.POSITION,value:"$"});const zo=W$,gn=$h,ji=Js,Ju=_l;jb.exports=t=>{var e=0,r,n,s={type:gn.ROOT,stack:[]},i=s,o=s.stack,a=[],c=E=>{zo.error(t,`Nothing to repeat at column ${E-1}`)},l=zo.strToChars(t);for(r=l.length;e<r;)switch(n=l[e++],n){case"\\":switch(n=l[e++],n){case"b":o.push(Ju.wordBoundary());break;case"B":o.push(Ju.nonWordBoundary());break;case"w":o.push(ji.words());break;case"W":o.push(ji.notWords());break;case"d":o.push(ji.ints());break;case"D":o.push(ji.notInts());break;case"s":o.push(ji.whitespace());break;case"S":o.push(ji.notWhitespace());break;default:/\d/.test(n)?o.push({type:gn.REFERENCE,value:parseInt(n,10)}):o.push({type:gn.CHAR,value:n.charCodeAt(0)})}break;case"^":o.push(Ju.begin());break;case"$":o.push(Ju.end());break;case"[":var p;l[e]==="^"?(p=!0,e++):p=!1;var f=zo.tokenizeClass(l.slice(e),t);e+=f[1],o.push({type:gn.SET,set:f[0],not:p});break;case".":o.push(ji.anyChar());break;case"(":var m={type:gn.GROUP,stack:[],remember:!0};n=l[e],n==="?"&&(n=l[e+1],e+=2,n==="="?m.followedBy=!0:n==="!"?m.notFollowedBy=!0:n!==":"&&zo.error(t,`Invalid group, character '${n}' after '?' at column ${e-1}`),m.remember=!1),o.push(m),a.push(i),i=m,o=m.stack;break;case")":a.length===0&&zo.error(t,`Unmatched ) at column ${e-1}`),i=a.pop(),o=i.options?i.options[i.options.length-1]:i.stack;break;case"|":i.options||(i.options=[i.stack],delete i.stack);var d=[];i.options.push(d),o=d;break;case"{":var g=/^(\d+)(,(\d+)?)?\}/.exec(l.slice(e)),v,y;g!==null?(o.length===0&&c(e),v=parseInt(g[1],10),y=g[2]?g[3]?parseInt(g[3],10):1/0:v,e+=g[0].length,o.push({type:gn.REPETITION,min:v,max:y,value:o.pop()})):o.push({type:gn.CHAR,value:123});break;case"?":o.length===0&&c(e),o.push({type:gn.REPETITION,min:0,max:1,value:o.pop()});break;case"+":o.length===0&&c(e),o.push({type:gn.REPETITION,min:1,max:1/0,value:o.pop()});break;case"*":o.length===0&&c(e),o.push({type:gn.REPETITION,min:0,max:1/0,value:o.pop()});break;default:o.push({type:gn.CHAR,value:n.charCodeAt(0)})}return a.length!==0&&zo.error(t,"Unterminated group"),s};jb.exports.types=gn;var SZ=jb.exports;class fs{constructor(e,r){this.low=e,this.high=r,this.length=1+r-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(e){return new fs(Math.min(this.low,e.low),Math.max(this.high,e.high))}subtract(e){return e.low<=this.low&&e.high>=this.high?[]:e.low>this.low&&e.high<this.high?[new fs(this.low,e.low-1),new fs(e.high+1,this.high)]:e.low<=this.low?[new fs(e.high+1,this.high)]:[new fs(this.low,e.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}let wZ=class gc{constructor(e,r){this.ranges=[],this.length=0,e!=null&&this.add(e,r)}_update_length(){this.length=this.ranges.reduce((e,r)=>e+r.length,0)}add(e,r){var n=s=>{for(var i=0;i<this.ranges.length&&!s.touches(this.ranges[i]);)i++;for(var o=this.ranges.slice(0,i);i<this.ranges.length&&s.touches(this.ranges[i]);)s=s.add(this.ranges[i]),i++;o.push(s),this.ranges=o.concat(this.ranges.slice(i)),this._update_length()};return e instanceof gc?e.ranges.forEach(n):(r==null&&(r=e),n(new fs(e,r))),this}subtract(e,r){var n=s=>{for(var i=0;i<this.ranges.length&&!s.overlaps(this.ranges[i]);)i++;for(var o=this.ranges.slice(0,i);i<this.ranges.length&&s.overlaps(this.ranges[i]);)o=o.concat(this.ranges[i].subtract(s)),i++;this.ranges=o.concat(this.ranges.slice(i)),this._update_length()};return e instanceof gc?e.ranges.forEach(n):(r==null&&(r=e),n(new fs(e,r))),this}intersect(e,r){var n=[],s=i=>{for(var o=0;o<this.ranges.length&&!i.overlaps(this.ranges[o]);)o++;for(;o<this.ranges.length&&i.overlaps(this.ranges[o]);){var a=Math.max(this.ranges[o].low,i.low),c=Math.min(this.ranges[o].high,i.high);n.push(new fs(a,c)),o++}};return e instanceof gc?e.ranges.forEach(s):(r==null&&(r=e),s(new fs(e,r))),this.ranges=n,this._update_length(),this}index(e){for(var r=0;r<this.ranges.length&&this.ranges[r].length<=e;)e-=this.ranges[r].length,r++;return this.ranges[r].low+e}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new gc(this)}numbers(){return this.ranges.reduce((e,r)=>{for(var n=r.low;n<=r.high;)e.push(n),n++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}};var _Z=wZ;const yp=SZ,oc=_Z,Ni=yp.types;var xZ=class yc{constructor(e,r){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if(typeof e=="string")this.ignoreCase=r&&r.indexOf("i")!==-1,this.multiline=r&&r.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=yp(e)}_setDefaults(e){this.max=e.max!=null?e.max:yc.prototype.max!=null?yc.prototype.max:100,this.defaultRange=e.defaultRange?e.defaultRange:this.defaultRange.clone(),e.randInt&&(this.randInt=e.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,r){var n,s,i,o,a;switch(e.type){case Ni.ROOT:case Ni.GROUP:if(e.followedBy||e.notFollowedBy)return"";for(e.remember&&e.groupNumber===void 0&&(e.groupNumber=r.push(null)-1),n=e.options?this._randSelect(e.options):e.stack,s="",o=0,a=n.length;o<a;o++)s+=this._gen(n[o],r);return e.remember&&(r[e.groupNumber]=s),s;case Ni.POSITION:return"";case Ni.SET:var c=this._expand(e);return c.length?String.fromCharCode(this._randSelect(c)):"";case Ni.REPETITION:for(i=this.randInt(e.min,e.max===1/0?e.min+this.max:e.max),s="",o=0;o<i;o++)s+=this._gen(e.value,r);return s;case Ni.REFERENCE:return r[e.value-1]||"";case Ni.CHAR:var l=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(l)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){return e instanceof oc?e.index(this.randInt(0,e.length-1)):e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===yp.types.CHAR)return new oc(e.value);if(e.type===yp.types.RANGE)return new oc(e.from,e.to);{let r=new oc;for(let n=0;n<e.set.length;n++){let s=this._expand(e.set[n]);if(r.add(s),this.ignoreCase)for(let i=0;i<s.length;i++){let o=s.index(i),a=this._toOtherCase(o);o!==a&&r.add(a)}}return e.not?this.defaultRange.clone().subtract(r):this.defaultRange.clone().intersect(r)}}randInt(e,r){return e+Math.floor(Math.random()*(1+r-e))}get defaultRange(){return this._range=this._range||new oc(32,126)}set defaultRange(e){this._range=e}static randexp(e,r){var n;return typeof e=="string"&&(e=new RegExp(e,r)),e._randexp===void 0?(n=new yc(e,r),e._randexp=n):(n=e._randexp,n._setDefaults(e)),n.gen()}static sugar(){RegExp.prototype.gen=function(){return yc.randexp(this)}}};const G$=Ze(xZ);var AZ=pb,OZ=Na,CZ=il,$Z=hr,TZ=co,IZ=ol,RZ=yh,PZ=bh,kZ="[object Map]",jZ="[object Set]",NZ=Object.prototype,MZ=NZ.hasOwnProperty;function DZ(t){if(t==null)return!0;if(TZ(t)&&($Z(t)||typeof t=="string"||typeof t.splice=="function"||IZ(t)||PZ(t)||CZ(t)))return!t.length;var e=OZ(t);if(e==kZ||e==jZ)return!t.size;if(RZ(t))return!AZ(t).length;for(var r in t)if(MZ.call(t,r))return!1;return!0}var FZ=DZ;const hs=Ze(FZ);var BZ=Ss,LZ=hr,UZ=Fr,VZ="[object String]";function qZ(t){return typeof t=="string"||!LZ(t)&&UZ(t)&&BZ(t)==VZ}var Y$=qZ;const zZ=Ze(Y$);var JZ=Mr,WZ=function(){return JZ.Date.now()},HZ=WZ,KZ=Dr,Ym=HZ,hx=HC,GZ="Expected a function",YZ=Math.max,XZ=Math.min;function ZZ(t,e,r){var n,s,i,o,a,c,l=0,p=!1,f=!1,m=!0;if(typeof t!="function")throw new TypeError(GZ);e=hx(e)||0,KZ(r)&&(p=!!r.leading,f="maxWait"in r,i=f?YZ(hx(r.maxWait)||0,e):i,m="trailing"in r?!!r.trailing:m);function d(T){var D=n,B=s;return n=s=void 0,l=T,o=t.apply(B,D),o}function g(T){return l=T,a=setTimeout(E,e),p?d(T):o}function v(T){var D=T-c,B=T-l,P=e-D;return f?XZ(P,i-B):P}function y(T){var D=T-c,B=T-l;return c===void 0||D>=e||D<0||f&&B>=i}function E(){var T=Ym();if(y(T))return S(T);a=setTimeout(E,v(T))}function S(T){return a=void 0,m&&n?d(T):(n=s=void 0,o)}function w(){a!==void 0&&clearTimeout(a),l=0,n=c=s=a=void 0}function x(){return a===void 0?o:S(Ym())}function I(){var T=Ym(),D=y(T);if(n=arguments,s=this,c=T,D){if(a===void 0)return g(c);if(f)return clearTimeout(a),a=setTimeout(E,e),d(c)}return a===void 0&&(a=setTimeout(E,e)),o}return I.cancel=w,I.flush=x,I}var QZ=ZZ;const eQ=Ze(QZ);var tQ=Eh,rQ=hl,nQ=al,dx=Dr,sQ=lo;function iQ(t,e,r,n){if(!dx(t))return t;e=rQ(e,t);for(var s=-1,i=e.length,o=i-1,a=t;a!=null&&++s<i;){var c=sQ(e[s]),l=r;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(s!=o){var p=a[c];l=n?n(p,c,a):void 0,l===void 0&&(l=dx(p)?p:nQ(e[s+1])?[]:{})}tQ(a,c,l),a=a[c]}return t}var oQ=iQ,aQ=oQ;function cQ(t,e,r){return t==null?t:aQ(t,e,r)}var X$=cQ;const Z$=Ze(X$);var Q$={};(function(t){t.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},t.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},t.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},t.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},t.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},t.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},t.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},t.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},t.realToAlias=function(){var e=Object.prototype.hasOwnProperty,r=t.aliasToReal,n={};for(var s in r){var i=r[s];e.call(n,i)?n[i].push(s):n[i]=[s]}return n}(),t.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},t.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},t.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}})(Q$);var Xm,mx;function eT(){return mx||(mx=1,Xm={}),Xm}var sr=Q$,lQ=eT(),gx=Array.prototype.push;function uQ(t,e){return e==2?function(r,n){return t.apply(void 0,arguments)}:function(r){return t.apply(void 0,arguments)}}function Zm(t,e){return e==2?function(r,n){return t(r,n)}:function(r){return t(r)}}function yx(t){for(var e=t?t.length:0,r=Array(e);e--;)r[e]=t[e];return r}function pQ(t){return function(e){return t({},e)}}function fQ(t,e){return function(){for(var r=arguments.length,n=r-1,s=Array(r);r--;)s[r]=arguments[r];var i=s[e],o=s.slice(0,e);return i&&gx.apply(o,i),e!=n&&gx.apply(o,s.slice(e+1)),t.apply(this,o)}}function Qm(t,e){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var s=n[0]=e.apply(void 0,n);return t.apply(void 0,n),s}}}function ky(t,e,r,n){var s=typeof e=="function",i=e===Object(e);if(i&&(n=r,r=e,e=void 0),r==null)throw new TypeError;n||(n={});var o={cap:"cap"in n?n.cap:!0,curry:"curry"in n?n.curry:!0,fixed:"fixed"in n?n.fixed:!0,immutable:"immutable"in n?n.immutable:!0,rearg:"rearg"in n?n.rearg:!0},a=s?r:lQ,c="curry"in n&&n.curry,l="fixed"in n&&n.fixed,p="rearg"in n&&n.rearg,f=s?r.runInContext():void 0,m=s?r:{ary:t.ary,assign:t.assign,clone:t.clone,curry:t.curry,forEach:t.forEach,isArray:t.isArray,isError:t.isError,isFunction:t.isFunction,isWeakMap:t.isWeakMap,iteratee:t.iteratee,keys:t.keys,rearg:t.rearg,toInteger:t.toInteger,toPath:t.toPath},d=m.ary,g=m.assign,v=m.clone,y=m.curry,E=m.forEach,S=m.isArray,w=m.isError,x=m.isFunction,I=m.isWeakMap,T=m.keys,D=m.rearg,B=m.toInteger,P=m.toPath,Z=T(sr.aryMethod),V={castArray:function(q){return function(){var N=arguments[0];return S(N)?q(yx(N)):q.apply(void 0,arguments)}},iteratee:function(q){return function(){var N=arguments[0],M=arguments[1],ae=q(N,M),ge=ae.length;return o.cap&&typeof M=="number"?(M=M>2?M-2:1,ge&&ge<=M?ae:Zm(ae,M)):ae}},mixin:function(q){return function(N){var M=this;if(!x(M))return q(M,Object(N));var ae=[];return E(T(N),function(ge){x(N[ge])&&ae.push([ge,M.prototype[ge]])}),q(M,Object(N)),E(ae,function(ge){var Ce=ge[1];x(Ce)?M.prototype[ge[0]]=Ce:delete M.prototype[ge[0]]}),M}},nthArg:function(q){return function(N){var M=N<0?1:B(N)+1;return y(q(N),M)}},rearg:function(q){return function(N,M){var ae=M?M.length:0;return y(q(N,M),ae)}},runInContext:function(q){return function(N){return ky(t,q(N),n)}}};function J(q,N){if(o.cap){var M=sr.iterateeRearg[q];if(M)return G(N,M);var ae=!s&&sr.iterateeAry[q];if(ae)return oe(N,ae)}return N}function F(q,N,M){return c||o.curry&&M>1?y(N,M):N}function Q(q,N,M){if(o.fixed&&(l||!sr.skipFixed[q])){var ae=sr.methodSpread[q],ge=ae&&ae.start;return ge===void 0?d(N,M):fQ(N,ge)}return N}function se(q,N,M){return o.rearg&&M>1&&(p||!sr.skipRearg[q])?D(N,sr.methodRearg[q]||sr.aryRearg[M]):N}function re(q,N){N=P(N);for(var M=-1,ae=N.length,ge=ae-1,Ce=v(Object(q)),Re=Ce;Re!=null&&++M<ae;){var _e=N[M],$e=Re[_e];$e!=null&&!(x($e)||w($e)||I($e))&&(Re[_e]=v(M==ge?$e:Object($e))),Re=Re[_e]}return Ce}function ce(q){return X.runInContext.convert(q)(void 0)}function ue(q,N){var M=sr.aliasToReal[q]||q,ae=sr.remap[M]||M,ge=n;return function(Ce){var Re=s?f:m,_e=s?f[ae]:N,$e=g(g({},ge),Ce);return ky(Re,M,_e,$e)}}function oe(q,N){return ie(q,function(M){return typeof M=="function"?Zm(M,N):M})}function G(q,N){return ie(q,function(M){var ae=N.length;return uQ(D(Zm(M,ae),N),ae)})}function ie(q,N){return function(){var M=arguments.length;if(!M)return q();for(var ae=Array(M);M--;)ae[M]=arguments[M];var ge=o.rearg?0:M-1;return ae[ge]=N(ae[ge]),q.apply(void 0,ae)}}function pe(q,N,M){var ae,ge=sr.aliasToReal[q]||q,Ce=N,Re=V[ge];return Re?Ce=Re(N):o.immutable&&(sr.mutate.array[ge]?Ce=Qm(N,yx):sr.mutate.object[ge]?Ce=Qm(N,pQ(N)):sr.mutate.set[ge]&&(Ce=Qm(N,re))),E(Z,function(_e){return E(sr.aryMethod[_e],function($e){if(ge==$e){var ze=sr.methodSpread[ge],De=ze&&ze.afterRearg;return ae=De?Q(ge,se(ge,Ce,_e),_e):se(ge,Q(ge,Ce,_e),_e),ae=J(ge,ae),ae=F(ge,ae,_e),!1}}),!ae}),ae||(ae=Ce),ae==N&&(ae=c?y(ae,1):function(){return N.apply(this,arguments)}),ae.convert=ue(ge,N),ae.placeholder=N.placeholder=M,ae}if(!i)return pe(e,r,a);var X=r,le=[];return E(Z,function(q){E(sr.aryMethod[q],function(N){var M=X[sr.remap[N]||N];M&&le.push([N,pe(N,M,X)])})}),E(T(X),function(q){var N=X[q];if(typeof N=="function"){for(var M=le.length;M--;)if(le[M][0]==q)return;N.convert=ue(q,N),le.push([q,N])}}),E(le,function(q){X[q[0]]=q[1]}),X.convert=ce,X.placeholder=X,E(T(X),function(q){E(sr.realToAlias[q]||[],function(N){X[N]=X[q]})}),X}var hQ=ky,vx=FC,dQ=vx&&new vx,tT=dQ,mQ=ll,bx=tT,gQ=bx?function(t,e){return bx.set(t,e),t}:mQ,rT=gQ,yQ=gh,vQ=Dr;function bQ(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var r=yQ(t.prototype),n=t.apply(r,e);return vQ(n)?n:r}}var Ih=bQ,EQ=Ih,SQ=Mr,wQ=1;function _Q(t,e,r){var n=e&wQ,s=EQ(t);function i(){var o=this&&this!==SQ&&this instanceof i?s:t;return o.apply(n?r:this,arguments)}return i}var xQ=_Q,AQ=Math.max;function OQ(t,e,r,n){for(var s=-1,i=t.length,o=r.length,a=-1,c=e.length,l=AQ(i-o,0),p=Array(c+l),f=!n;++a<c;)p[a]=e[a];for(;++s<o;)(f||s<i)&&(p[r[s]]=t[s]);for(;l--;)p[a++]=t[s++];return p}var nT=OQ,CQ=Math.max;function $Q(t,e,r,n){for(var s=-1,i=t.length,o=-1,a=r.length,c=-1,l=e.length,p=CQ(i-a,0),f=Array(p+l),m=!n;++s<p;)f[s]=t[s];for(var d=s;++c<l;)f[d+c]=e[c];for(;++o<a;)(m||s<i)&&(f[d+r[o]]=t[s++]);return f}var sT=$Q;function TQ(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}var IQ=TQ;function RQ(){}var Mb=RQ,PQ=gh,kQ=Mb,jQ=4294967295;function Wp(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=jQ,this.__views__=[]}Wp.prototype=PQ(kQ.prototype);Wp.prototype.constructor=Wp;var Db=Wp;function NQ(){}var MQ=NQ,Ex=tT,DQ=MQ,FQ=Ex?function(t){return Ex.get(t)}:DQ,iT=FQ,BQ={},LQ=BQ,Sx=LQ,UQ=Object.prototype,VQ=UQ.hasOwnProperty;function qQ(t){for(var e=t.name+"",r=Sx[e],n=VQ.call(Sx,e)?r.length:0;n--;){var s=r[n],i=s.func;if(i==null||i==t)return s.name}return e}var zQ=qQ,JQ=gh,WQ=Mb;function Hp(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}Hp.prototype=JQ(WQ.prototype);Hp.prototype.constructor=Hp;var oT=Hp,HQ=Db,KQ=oT,GQ=sl;function YQ(t){if(t instanceof HQ)return t.clone();var e=new KQ(t.__wrapped__,t.__chain__);return e.__actions__=GQ(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}var XQ=YQ,ZQ=Db,wx=oT,QQ=Mb,eee=hr,tee=Fr,ree=XQ,nee=Object.prototype,see=nee.hasOwnProperty;function Kp(t){if(tee(t)&&!eee(t)&&!(t instanceof ZQ)){if(t instanceof wx)return t;if(see.call(t,"__wrapped__"))return ree(t)}return new wx(t)}Kp.prototype=QQ.prototype;Kp.prototype.constructor=Kp;var iee=Kp,oee=Db,aee=iT,cee=zQ,lee=iee;function uee(t){var e=cee(t),r=lee[e];if(typeof r!="function"||!(e in oee.prototype))return!1;if(t===r)return!0;var n=aee(r);return!!n&&t===n[0]}var pee=uee,fee=rT,hee=$C,dee=hee(fee),aT=dee,mee=/\{\n\/\* \[wrapped with (.+)\] \*/,gee=/,? & /;function yee(t){var e=t.match(mee);return e?e[1].split(gee):[]}var vee=yee,bee=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function Eee(t,e){var r=e.length;if(!r)return t;var n=r-1;return e[n]=(r>1?"& ":"")+e[n],e=e.join(r>2?", ":" "),t.replace(bee,`{
|
|
11
|
+
/* [wrapped with `+e+`] */
|
|
12
|
+
`)}var See=Eee;function wee(t){return t!==t}var _ee=wee;function xee(t,e,r){for(var n=r-1,s=t.length;++n<s;)if(t[n]===e)return n;return-1}var Aee=xee,Oee=WC,Cee=_ee,$ee=Aee;function Tee(t,e,r){return e===e?$ee(t,e,r):Oee(t,Cee,r)}var Iee=Tee,Ree=Iee;function Pee(t,e){var r=t==null?0:t.length;return!!r&&Ree(t,e,0)>-1}var kee=Pee,jee=vb,Nee=kee,Mee=1,Dee=2,Fee=8,Bee=16,Lee=32,Uee=64,Vee=128,qee=256,zee=512,Jee=[["ary",Vee],["bind",Mee],["bindKey",Dee],["curry",Fee],["curryRight",Bee],["flip",zee],["partial",Lee],["partialRight",Uee],["rearg",qee]];function Wee(t,e){return jee(Jee,function(r){var n="_."+r[0];e&r[1]&&!Nee(t,n)&&t.push(n)}),t.sort()}var Hee=Wee,Kee=vee,Gee=See,Yee=ob,Xee=Hee;function Zee(t,e,r){var n=e+"";return Yee(t,Gee(n,Xee(Kee(n),r)))}var cT=Zee,Qee=pee,ete=aT,tte=cT,rte=4,nte=8,_x=32,xx=64;function ste(t,e,r,n,s,i,o,a,c,l){var p=e&nte,f=p?o:void 0,m=p?void 0:o,d=p?i:void 0,g=p?void 0:i;e|=p?_x:xx,e&=~(p?xx:_x),e&rte||(e&=-4);var v=[t,e,s,d,f,g,m,a,c,l],y=r.apply(void 0,v);return Qee(t)&&ete(y,v),y.placeholder=n,tte(y,t,e)}var lT=ste;function ite(t){var e=t;return e.placeholder}var uT=ite,ote=sl,ate=al,cte=Math.min;function lte(t,e){for(var r=t.length,n=cte(e.length,r),s=ote(t);n--;){var i=e[n];t[n]=ate(i,r)?s[i]:void 0}return t}var ute=lte,Ax="__lodash_placeholder__";function pte(t,e){for(var r=-1,n=t.length,s=0,i=[];++r<n;){var o=t[r];(o===e||o===Ax)&&(t[r]=Ax,i[s++]=r)}return i}var Fb=pte,fte=nT,hte=sT,dte=IQ,Ox=Ih,mte=lT,gte=uT,yte=ute,vte=Fb,bte=Mr,Ete=1,Ste=2,wte=8,_te=16,xte=128,Ate=512;function pT(t,e,r,n,s,i,o,a,c,l){var p=e&xte,f=e&Ete,m=e&Ste,d=e&(wte|_te),g=e&Ate,v=m?void 0:Ox(t);function y(){for(var E=arguments.length,S=Array(E),w=E;w--;)S[w]=arguments[w];if(d)var x=gte(y),I=dte(S,x);if(n&&(S=fte(S,n,s,d)),i&&(S=hte(S,i,o,d)),E-=I,d&&E<l){var T=vte(S,x);return mte(t,e,pT,y.placeholder,r,S,T,a,c,l-E)}var D=f?r:this,B=m?D[t]:t;return E=S.length,a?S=yte(S,a):g&&E>1&&S.reverse(),p&&c<E&&(S.length=c),this&&this!==bte&&this instanceof y&&(B=v||Ox(B)),B.apply(D,S)}return y}var fT=pT,Ote=ib,Cte=Ih,$te=fT,Tte=lT,Ite=uT,Rte=Fb,Pte=Mr;function kte(t,e,r){var n=Cte(t);function s(){for(var i=arguments.length,o=Array(i),a=i,c=Ite(s);a--;)o[a]=arguments[a];var l=i<3&&o[0]!==c&&o[i-1]!==c?[]:Rte(o,c);if(i-=l.length,i<r)return Tte(t,e,$te,s.placeholder,void 0,o,l,void 0,void 0,r-i);var p=this&&this!==Pte&&this instanceof s?n:t;return Ote(p,this,o)}return s}var jte=kte,Nte=ib,Mte=Ih,Dte=Mr,Fte=1;function Bte(t,e,r,n){var s=e&Fte,i=Mte(t);function o(){for(var a=-1,c=arguments.length,l=-1,p=n.length,f=Array(p+c),m=this&&this!==Dte&&this instanceof o?i:t;++l<p;)f[l]=n[l];for(;c--;)f[l++]=arguments[++a];return Nte(m,s?r:this,f)}return o}var Lte=Bte,Ute=nT,Vte=sT,Cx=Fb,$x="__lodash_placeholder__",eg=1,qte=2,zte=4,Tx=8,ac=128,Ix=256,Jte=Math.min;function Wte(t,e){var r=t[1],n=e[1],s=r|n,i=s<(eg|qte|ac),o=n==ac&&r==Tx||n==ac&&r==Ix&&t[7].length<=e[8]||n==(ac|Ix)&&e[7].length<=e[8]&&r==Tx;if(!(i||o))return t;n&eg&&(t[2]=e[2],s|=r&eg?0:zte);var a=e[3];if(a){var c=t[3];t[3]=c?Ute(c,a,e[4]):a,t[4]=c?Cx(t[3],$x):e[4]}return a=e[5],a&&(c=t[5],t[5]=c?Vte(c,a,e[6]):a,t[6]=c?Cx(t[5],$x):e[6]),a=e[7],a&&(t[7]=a),n&ac&&(t[8]=t[8]==null?e[8]:Jte(t[8],e[8])),t[9]==null&&(t[9]=e[9]),t[0]=e[0],t[1]=s,t}var Hte=Wte,Kte=rT,Gte=xQ,Yte=jte,Xte=fT,Zte=Lte,Qte=iT,ere=Hte,tre=aT,rre=cT,Rx=mb,nre="Expected a function",Px=1,sre=2,kx=8,jx=16,Nx=32,ire=64,Mx=Math.max;function ore(t,e,r,n,s,i,o,a){var c=e&sre;if(!c&&typeof t!="function")throw new TypeError(nre);var l=n?n.length:0;if(l||(e&=-97,n=s=void 0),o=o===void 0?o:Mx(Rx(o),0),a=a===void 0?a:Rx(a),l-=s?s.length:0,e&ire){var p=n,f=s;n=s=void 0}var m=c?void 0:Qte(t),d=[t,e,r,n,s,p,f,i,o,a];if(m&&ere(d,m),t=d[0],e=d[1],r=d[2],n=d[3],s=d[4],a=d[9]=d[9]===void 0?c?0:t.length:Mx(d[9]-l,0),!a&&e&(kx|jx)&&(e&=-25),!e||e==Px)var g=Gte(t,e,r);else e==kx||e==jx?g=Yte(t,e,a):(e==Nx||e==(Px|Nx))&&!s.length?g=Zte(t,e,r,n):g=Xte.apply(void 0,d);var v=m?Kte:tre;return rre(v(g,d),t,e)}var Bb=ore,are=Bb,cre=128;function lre(t,e,r){return e=r?void 0:e,e=t&&e==null?t.length:e,are(t,cre,void 0,void 0,void 0,void 0,e)}var ure=lre,pre=bb,fre=4;function hre(t){return pre(t,fre)}var dre=hre,mre=Bb,gre=8;function Lb(t,e,r){e=r?void 0:e;var n=mre(t,gre,void 0,void 0,void 0,void 0,void 0,e);return n.placeholder=Lb.placeholder,n}Lb.placeholder={};var yre=Lb,vre=Ss,bre=Fr,Ere=vh,Sre="[object DOMException]",wre="[object Error]";function _re(t){if(!bre(t))return!1;var e=vre(t);return e==wre||e==Sre||typeof t.message=="string"&&typeof t.name=="string"&&!Ere(t)}var xre=_re,Are=Na,Ore=Fr,Cre="[object WeakMap]";function $re(t){return Ore(t)&&Are(t)==Cre}var Tre=$re,Ire=bb,Rre=dl,Pre=1;function kre(t){return Rre(typeof t=="function"?t:Ire(t,Pre))}var jre=kre,Nre=Bb,Mre=u$,Dre=256,Fre=Mre(function(t,e){return Nre(t,Dre,void 0,void 0,void 0,e)}),Bre=Fre,Lre=ab,Ure=sl,Vre=hr,qre=pl,zre=qC,Jre=lo,Wre=fl;function Hre(t){return Vre(t)?Lre(t,Jre):qre(t)?[t]:Ure(zre(Wre(t)))}var Kre=Hre,Gre={ary:ure,assign:n$,clone:dre,curry:yre,forEach:vb,isArray:hr,isError:xre,isFunction:nl,isWeakMap:Tre,iteratee:jre,keys:pb,rearg:Bre,toInteger:mb,toPath:Kre},Yre=hQ,Xre=Gre;function Zre(t,e,r){return Yre(Xre,t,e,r)}var Qre=Zre,ene=Qre,hT=ene("set",X$);hT.placeholder=eT();var dT=hT;const tne=Ze(dT);var rne=dT;const nne=Ze(rne);/*!
|
|
13
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
14
|
+
* (c) 2017-2022 Joachim Wester
|
|
15
|
+
* MIT licensed
|
|
16
|
+
*/var sne=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,s){n.__proto__=s}||function(n,s){for(var i in s)s.hasOwnProperty(i)&&(n[i]=s[i])},t(e,r)};return function(e,r){t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),ine=Object.prototype.hasOwnProperty;function jy(t,e){return ine.call(t,e)}function Ny(t){if(Array.isArray(t)){for(var e=new Array(t.length),r=0;r<e.length;r++)e[r]=""+r;return e}if(Object.keys)return Object.keys(t);var n=[];for(var s in t)jy(t,s)&&n.push(s);return n}function Qr(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function My(t){for(var e=0,r=t.length,n;e<r;){if(n=t.charCodeAt(e),n>=48&&n<=57){e++;continue}return!1}return!0}function Ui(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function mT(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function Dy(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var e=0,r=t.length;e<r;e++)if(Dy(t[e]))return!0}else if(typeof t=="object"){for(var n=Ny(t),s=n.length,i=0;i<s;i++)if(Dy(t[n[i]]))return!0}}return!1}function Dx(t,e){var r=[t];for(var n in e){var s=typeof e[n]=="object"?JSON.stringify(e[n],null,2):e[n];typeof s<"u"&&r.push(n+": "+s)}return r.join(`
|
|
17
|
+
`)}var gT=function(t){sne(e,t);function e(r,n,s,i,o){var a=this.constructor,c=t.call(this,Dx(r,{name:n,index:s,operation:i,tree:o}))||this;return c.name=n,c.index=s,c.operation=i,c.tree=o,Object.setPrototypeOf(c,a.prototype),c.message=Dx(r,{name:n,index:s,operation:i,tree:o}),c}return e}(Error),Ht=gT,one=Qr,ta={add:function(t,e,r){return t[e]=this.value,{newDocument:r}},remove:function(t,e,r){var n=t[e];return delete t[e],{newDocument:r,removed:n}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:function(t,e,r){var n=Ic(r,this.path);n&&(n=Qr(n));var s=Gi(r,{op:"remove",path:this.from}).removed;return Gi(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(t,e,r){var n=Ic(r,this.from);return Gi(r,{op:"add",path:this.path,value:Qr(n)}),{newDocument:r}},test:function(t,e,r){return{newDocument:r,test:Rc(t[e],this.value)}},_get:function(t,e,r){return this.value=t[e],{newDocument:r}}},ane={add:function(t,e,r){return My(e)?t.splice(e,0,this.value):t[e]=this.value,{newDocument:r,index:e}},remove:function(t,e,r){var n=t.splice(e,1);return{newDocument:r,removed:n[0]}},replace:function(t,e,r){var n=t[e];return t[e]=this.value,{newDocument:r,removed:n}},move:ta.move,copy:ta.copy,test:ta.test,_get:ta._get};function Ic(t,e){if(e=="")return t;var r={op:"_get",path:e};return Gi(t,r),r.value}function Gi(t,e,r,n,s,i){if(r===void 0&&(r=!1),n===void 0&&(n=!0),s===void 0&&(s=!0),i===void 0&&(i=0),r&&(typeof r=="function"?r(e,0,t,e.path):Gp(e,0)),e.path===""){var o={newDocument:t};if(e.op==="add")return o.newDocument=e.value,o;if(e.op==="replace")return o.newDocument=e.value,o.removed=t,o;if(e.op==="move"||e.op==="copy")return o.newDocument=Ic(t,e.from),e.op==="move"&&(o.removed=t),o;if(e.op==="test"){if(o.test=Rc(t,e.value),o.test===!1)throw new Ht("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return o.newDocument=t,o}else{if(e.op==="remove")return o.removed=t,o.newDocument=null,o;if(e.op==="_get")return e.value=t,o;if(r)throw new Ht("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,e,t);return o}}else{n||(t=Qr(t));var a=e.path||"",c=a.split("/"),l=t,p=1,f=c.length,m=void 0,d=void 0,g=void 0;for(typeof r=="function"?g=r:g=Gp;;){if(d=c[p],d&&d.indexOf("~")!=-1&&(d=mT(d)),s&&(d=="__proto__"||d=="prototype"&&p>0&&c[p-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&m===void 0&&(l[d]===void 0?m=c.slice(0,p).join("/"):p==f-1&&(m=e.path),m!==void 0&&g(e,0,t,m)),p++,Array.isArray(l)){if(d==="-")d=l.length;else{if(r&&!My(d))throw new Ht("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",i,e,t);My(d)&&(d=~~d)}if(p>=f){if(r&&e.op==="add"&&d>l.length)throw new Ht("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,e,t);var o=ane[e.op].call(e,l,d,t);if(o.test===!1)throw new Ht("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return o}}else if(p>=f){var o=ta[e.op].call(e,l,d,t);if(o.test===!1)throw new Ht("Test operation failed","TEST_OPERATION_FAILED",i,e,t);return o}if(l=l[d],r&&p<f&&(!l||typeof l!="object"))throw new Ht("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,e,t)}}}function li(t,e,r,n,s){if(n===void 0&&(n=!0),s===void 0&&(s=!0),r&&!Array.isArray(e))throw new Ht("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(t=Qr(t));for(var i=new Array(e.length),o=0,a=e.length;o<a;o++)i[o]=Gi(t,e[o],r,!0,s,o),t=i[o].newDocument;return i.newDocument=t,i}function cne(t,e,r){var n=Gi(t,e);if(n.test===!1)throw new Ht("Test operation failed","TEST_OPERATION_FAILED",r,e,t);return n.newDocument}function Gp(t,e,r,n){if(typeof t!="object"||t===null||Array.isArray(t))throw new Ht("Operation is not an object","OPERATION_NOT_AN_OBJECT",e,t,r);if(ta[t.op]){if(typeof t.path!="string")throw new Ht("Operation `path` property is not a string","OPERATION_PATH_INVALID",e,t,r);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new Ht('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",e,t,r);if((t.op==="move"||t.op==="copy")&&typeof t.from!="string")throw new Ht("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&t.value===void 0)throw new Ht("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",e,t,r);if((t.op==="add"||t.op==="replace"||t.op==="test")&&Dy(t.value))throw new Ht("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",e,t,r);if(r){if(t.op=="add"){var s=t.path.split("/").length,i=n.split("/").length;if(s!==i+1&&s!==i)throw new Ht("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",e,t,r)}else if(t.op==="replace"||t.op==="remove"||t.op==="_get"){if(t.path!==n)throw new Ht("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",e,t,r)}else if(t.op==="move"||t.op==="copy"){var o={op:"_get",path:t.from,value:void 0},a=yT([o],r);if(a&&a.name==="OPERATION_PATH_UNRESOLVABLE")throw new Ht("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}}else throw new Ht("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",e,t,r)}function yT(t,e,r){try{if(!Array.isArray(t))throw new Ht("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)li(Qr(e),Qr(t),r||!0);else{r=r||Gp;for(var n=0;n<t.length;n++)r(t[n],n,e,void 0)}}catch(s){if(s instanceof Ht)return s;throw s}}function Rc(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){var r=Array.isArray(t),n=Array.isArray(e),s,i,o;if(r&&n){if(i=t.length,i!=e.length)return!1;for(s=i;s--!==0;)if(!Rc(t[s],e[s]))return!1;return!0}if(r!=n)return!1;var a=Object.keys(t);if(i=a.length,i!==Object.keys(e).length)return!1;for(s=i;s--!==0;)if(!e.hasOwnProperty(a[s]))return!1;for(s=i;s--!==0;)if(o=a[s],!Rc(t[o],e[o]))return!1;return!0}return t!==t&&e!==e}const lne=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:Ht,_areEquals:Rc,applyOperation:Gi,applyPatch:li,applyReducer:cne,deepClone:one,getValueByPointer:Ic,validate:yT,validator:Gp},Symbol.toStringTag,{value:"Module"}));/*!
|
|
18
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
19
|
+
* (c) 2017-2021 Joachim Wester
|
|
20
|
+
* MIT license
|
|
21
|
+
*/var Ub=new WeakMap,une=function(){function t(e){this.observers=new Map,this.obj=e}return t}(),pne=function(){function t(e,r){this.callback=e,this.observer=r}return t}();function fne(t){return Ub.get(t)}function hne(t,e){return t.observers.get(e)}function dne(t,e){t.observers.delete(e.callback)}function mne(t,e){e.unobserve()}function gne(t,e){var r=[],n,s=fne(t);if(!s)s=new une(t),Ub.set(t,s);else{var i=hne(s,e);n=i&&i.observer}if(n)return n;if(n={},s.value=Qr(t),e){n.callback=e,n.next=null;var o=function(){Fy(n)},a=function(){clearTimeout(n.next),n.next=setTimeout(o)};typeof window<"u"&&(window.addEventListener("mouseup",a),window.addEventListener("keyup",a),window.addEventListener("mousedown",a),window.addEventListener("keydown",a),window.addEventListener("change",a))}return n.patches=r,n.object=t,n.unobserve=function(){Fy(n),clearTimeout(n.next),dne(s,n),typeof window<"u"&&(window.removeEventListener("mouseup",a),window.removeEventListener("keyup",a),window.removeEventListener("mousedown",a),window.removeEventListener("keydown",a),window.removeEventListener("change",a))},s.observers.set(e,new pne(e,n)),n}function Fy(t,e){e===void 0&&(e=!1);var r=Ub.get(t.object);Vb(r.value,t.object,t.patches,"",e),t.patches.length&&li(r.value,t.patches);var n=t.patches;return n.length>0&&(t.patches=[],t.callback&&t.callback(n)),n}function Vb(t,e,r,n,s){if(e!==t){typeof e.toJSON=="function"&&(e=e.toJSON());for(var i=Ny(e),o=Ny(t),a=!1,c=o.length-1;c>=0;c--){var l=o[c],p=t[l];if(jy(e,l)&&!(e[l]===void 0&&p!==void 0&&Array.isArray(e)===!1)){var f=e[l];typeof p=="object"&&p!=null&&typeof f=="object"&&f!=null&&Array.isArray(p)===Array.isArray(f)?Vb(p,f,r,n+"/"+Ui(l),s):p!==f&&(s&&r.push({op:"test",path:n+"/"+Ui(l),value:Qr(p)}),r.push({op:"replace",path:n+"/"+Ui(l),value:Qr(f)}))}else Array.isArray(t)===Array.isArray(e)?(s&&r.push({op:"test",path:n+"/"+Ui(l),value:Qr(p)}),r.push({op:"remove",path:n+"/"+Ui(l)}),a=!0):(s&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}))}if(!(!a&&i.length==o.length))for(var c=0;c<i.length;c++){var l=i[c];!jy(t,l)&&e[l]!==void 0&&r.push({op:"add",path:n+"/"+Ui(l),value:Qr(e[l])})}}}function yne(t,e,r){r===void 0&&(r=!1);var n=[];return Vb(t,e,n,"",r),n}const vne=Object.freeze(Object.defineProperty({__proto__:null,compare:yne,generate:Fy,observe:gne,unobserve:mne},Symbol.toStringTag,{value:"Module"}));Object.assign({},lne,vne,{JsonPatchError:gT,deepClone:Qr,escapePathComponent:Ui,unescapePathComponent:mT});var bne=function(e){return Ene(e)&&!Sne(e)};function Ene(t){return!!t&&typeof t=="object"}function Sne(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||xne(t)}var wne=typeof Symbol=="function"&&Symbol.for,_ne=wne?Symbol.for("react.element"):60103;function xne(t){return t.$$typeof===_ne}function Ane(t){return Array.isArray(t)?[]:{}}function Pc(t,e){return e.clone!==!1&&e.isMergeableObject(t)?ga(Ane(t),t,e):t}function One(t,e,r){return t.concat(e).map(function(n){return Pc(n,r)})}function Cne(t,e){if(!e.customMerge)return ga;var r=e.customMerge(t);return typeof r=="function"?r:ga}function $ne(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Fx(t){return Object.keys(t).concat($ne(t))}function vT(t,e){try{return e in t}catch{return!1}}function Tne(t,e){return vT(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function Ine(t,e,r){var n={};return r.isMergeableObject(t)&&Fx(t).forEach(function(s){n[s]=Pc(t[s],r)}),Fx(e).forEach(function(s){Tne(t,s)||(vT(t,s)&&r.isMergeableObject(e[s])?n[s]=Cne(s,r)(t[s],e[s],r):n[s]=Pc(e[s],r))}),n}function ga(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||One,r.isMergeableObject=r.isMergeableObject||bne,r.cloneUnlessOtherwiseSpecified=Pc;var n=Array.isArray(e),s=Array.isArray(t),i=n===s;return i?n?r.arrayMerge(t,e,r):Ine(t,e,r):Pc(e,r)}ga.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,s){return ga(n,s,r)},{})};var Rne=ga,Pne=Rne;const Bx=Ze(Pne),_t={add:jne,replace:vp,remove:Nne,merge:Mne,mergeDeep:Dne,context:Fne,getIn:Vne,applyPatch:kne,parentPathMatch:Une,flatten:xl,fullyNormalizeArray:qne,normalizeArray:ET,isPromise:zne,forEachNew:Bne,forEachNewPrimitive:Lne,isJsonPatch:_T,isContextPatch:Hne,isPatch:Rh,isMutation:xT,isAdditiveMutation:Yp,isGenerator:Wne,isFunction:wT,isObject:Yi,isError:Jne};function kne(t,e,r){if(r=r||{},e={...e,path:e.path&&Lx(e.path)},e.op==="merge"){const n=tg(t,e.path);Object.assign(n,e.value),li(t,[vp(e.path,n)])}else if(e.op==="mergeDeep"){const n=tg(t,e.path),s=Bx(n,e.value,{customMerge:i=>{if(i==="enum")return(o,a)=>Array.isArray(o)&&Array.isArray(a)?[...new Set([...o,...a])]:Bx(o,a)}});t=li(t,[vp(e.path,s)]).newDocument}else if(e.op==="add"&&e.path===""&&Yi(e.value)){const n=Object.keys(e.value).reduce((s,i)=>(s.push({op:"add",path:`/${Lx(i)}`,value:e.value[i]}),s),[]);li(t,n)}else if(e.op==="replace"&&e.path===""){let{value:n}=e;r.allowMetaPatches&&e.meta&&Yp(e)&&(Array.isArray(e.value)||Yi(e.value))&&(n={...n,...e.meta}),t=n}else if(li(t,[e]),r.allowMetaPatches&&e.meta&&Yp(e)&&(Array.isArray(e.value)||Yi(e.value))){const s={...tg(t,e.path),...e.meta};li(t,[vp(e.path,s)])}return t}function Lx(t){return Array.isArray(t)?t.length<1?"":`/${t.map(e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:t}function jne(t,e){return{op:"add",path:t,value:e}}function vp(t,e,r){return{op:"replace",path:t,value:e,meta:r}}function Nne(t){return{op:"remove",path:t}}function Mne(t,e){return{type:"mutation",op:"merge",path:t,value:e}}function Dne(t,e){return{type:"mutation",op:"mergeDeep",path:t,value:e}}function Fne(t,e){return{type:"context",path:t,value:e}}function Bne(t,e){try{return bT(t,Ly,e)}catch(r){return r}}function Lne(t,e){try{return bT(t,By,e)}catch(r){return r}}function bT(t,e,r){const n=t.filter(Yp).map(o=>e(o.value,r,o.path))||[],s=xl(n);return ST(s)}function By(t,e,r){return r=r||[],Array.isArray(t)?t.map((n,s)=>By(n,e,r.concat(s))):Yi(t)?Object.keys(t).map(n=>By(t[n],e,r.concat(n))):e(t,r[r.length-1],r)}function Ly(t,e,r){r=r||[];let n=[];if(r.length>0){const s=e(t,r[r.length-1],r);s&&(n=n.concat(s))}if(Array.isArray(t)){const s=t.map((i,o)=>Ly(i,e,r.concat(o)));s&&(n=n.concat(s))}else if(Yi(t)){const s=Object.keys(t).map(i=>Ly(t[i],e,r.concat(i)));s&&(n=n.concat(s))}return n=xl(n),n}function Une(t,e){if(!Array.isArray(e))return!1;for(let r=0,n=e.length;r<n;r+=1)if(e[r]!==t[r])return!1;return!0}function Vne(t,e){return e.reduce((r,n)=>typeof n<"u"&&r?r[n]:r,t)}function qne(t){return ST(xl(ET(t)))}function ET(t){return Array.isArray(t)?t:[t]}function xl(t){return[].concat(...t.map(e=>Array.isArray(e)?xl(e):e))}function ST(t){return t.filter(e=>typeof e<"u")}function Yi(t){return t&&typeof t=="object"}function zne(t){return Yi(t)&&wT(t.then)}function wT(t){return t&&typeof t=="function"}function Jne(t){return t instanceof Error}function _T(t){if(Rh(t)){const{op:e}=t;return e==="add"||e==="remove"||e==="replace"}return!1}function Wne(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function xT(t){return _T(t)||Rh(t)&&t.type==="mutation"}function Yp(t){return xT(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function Hne(t){return Rh(t)&&t.type==="context"}function Rh(t){return t&&typeof t=="object"}function tg(t,e){try{return Ic(t,e)}catch(r){return console.error(r),{}}}var Kne=C$,Gne=$$,Ux=Kne("keys"),qb=function(t){return Ux[t]||(Ux[t]=Gne(t))},Yne=Cn,Xne=!Yne(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),Zne=ws,Qne=$n,ese=$b,tse=qb,rse=Xne,Vx=tse("IE_PROTO"),Uy=Object,nse=Uy.prototype,zb=rse?Uy.getPrototypeOf:function(t){var e=ese(t);if(Zne(e,Vx))return e[Vx];var r=e.constructor;return Qne(r)&&e instanceof r?r.prototype:e instanceof Uy?nse:null},sse=Jr,ise=Sl,ose=function(t,e,r){try{return sse(ise(Object.getOwnPropertyDescriptor(t,e)[r]))}catch{}},ase=Hn,cse=function(t){return ase(t)||t===null},lse=cse,use=String,pse=TypeError,fse=function(t){if(lse(t))return t;throw new pse("Can't set "+use(t)+" as a prototype")},hse=ose,dse=Hn,mse=xh,gse=fse,Jb=Object.setPrototypeOf||("__proto__"in{}?function(){var t=!1,e={},r;try{r=hse(Object.prototype,"__proto__","set"),r(e,[]),t=e instanceof Array}catch{}return function(s,i){return mse(s),gse(i),dse(s)&&(t?r(s,i):s.__proto__=i),s}}():void 0),AT={},yse=N$,vse=Rb,bse=vse.concat("length","prototype");AT.f=Object.getOwnPropertyNames||function(e){return yse(e,bse)};var Ese=bl,Sse=Jr,wse=AT,_se=Pb,xse=po,Ase=Sse([].concat),Ose=Ese("Reflect","ownKeys")||function(e){var r=wse.f(xse(e)),n=_se.f;return n?Ase(r,n(e)):r},qx=ws,Cse=Ose,$se=_b,Tse=uo,OT=function(t,e,r){for(var n=Cse(e),s=Tse.f,i=$se.f,o=0;o<n.length;o++){var a=n[o];!qx(t,a)&&!(r&&qx(r,a))&&s(t,a,i(e,a))}},CT={},Ise=qs,Rse=k$,Pse=uo,kse=po,jse=yl,Nse=M$;CT.f=Ise&&!Rse?Object.defineProperties:function(e,r){kse(e);for(var n=jse(r),s=Nse(r),i=s.length,o=0,a;i>o;)Pse.f(e,a=s[o++],n[a]);return e};var Mse=bl,Dse=Mse("document","documentElement"),Fse=po,Bse=CT,zx=Rb,Lse=Ib,Use=Dse,Vse=I$,qse=qb,Jx=">",Wx="<",Vy="prototype",qy="script",$T=qse("IE_PROTO"),rg=function(){},TT=function(t){return Wx+qy+Jx+t+Wx+"/"+qy+Jx},Hx=function(t){t.write(TT("")),t.close();var e=t.parentWindow.Object;return t=null,e},zse=function(){var t=Vse("iframe"),e="java"+qy+":",r;return t.style.display="none",Use.appendChild(t),t.src=String(e),r=t.contentWindow.document,r.open(),r.write(TT("document.F=Object")),r.close(),r.F},Wu,bp=function(){try{Wu=new ActiveXObject("htmlfile")}catch{}bp=typeof document<"u"?document.domain&&Wu?Hx(Wu):zse():Hx(Wu);for(var t=zx.length;t--;)delete bp[Vy][zx[t]];return bp()};Lse[$T]=!0;var Wb=Object.create||function(e,r){var n;return e!==null?(rg[Vy]=Fse(e),n=new rg,rg[Vy]=null,n[$T]=e):n=bp(),r===void 0?n:Bse.f(n,r)},Jse=Hn,Wse=Ei,IT=function(t,e){Jse(e)&&"cause"in e&&Wse(t,"cause",e.cause)},Hse=Jr,RT=Error,Kse=Hse("".replace),Gse=function(t){return String(new RT(t).stack)}("zxcasd"),PT=/\n\s*at [^:]*:[^\n]*/,Yse=PT.test(Gse),Xse=function(t,e){if(Yse&&typeof t=="string"&&!RT.prepareStackTrace)for(;e--;)t=Kse(t,PT,"");return t},Zse=Cn,Qse=gl,eie=!Zse(function(){var t=new Error("a");return"stack"in t?(Object.defineProperty(t,"stack",Qse(1,7)),t.stack!==7):!0}),tie=Ei,rie=Xse,nie=eie,Kx=Error.captureStackTrace,kT=function(t,e,r,n){nie&&(Kx?Kx(t,e):tie(t,"stack",rie(r,n)))},Da={},sie=zs,iie=Da,oie=sie("iterator"),aie=Array.prototype,cie=function(t){return t!==void 0&&(iie.Array===t||aie[oie]===t)},lie=zs,uie=lie("toStringTag"),jT={};jT[uie]="z";var Hb=String(jT)==="[object z]",pie=Hb,fie=$n,Ep=wb,hie=zs,die=hie("toStringTag"),mie=Object,gie=Ep(function(){return arguments}())==="Arguments",yie=function(t,e){try{return t[e]}catch{}},Kb=pie?Ep:function(t){var e,r,n;return t===void 0?"Undefined":t===null?"Null":typeof(r=yie(e=mie(t),die))=="string"?r:gie?Ep(e):(n=Ep(e))==="Object"&&fie(e.callee)?"Arguments":n},vie=Kb,Gx=Cb,bie=Ab,Eie=Da,Sie=zs,wie=Sie("iterator"),NT=function(t){if(!bie(t))return Gx(t,wie)||Gx(t,"@@iterator")||Eie[vie(t)]},_ie=bi,xie=Sl,Aie=po,Oie=Ob,Cie=NT,$ie=TypeError,Tie=function(t,e){var r=arguments.length<2?Cie(t):e;if(xie(r))return Aie(_ie(r,t));throw new $ie(Oie(t)+" is not iterable")},Iie=bi,Yx=po,Rie=Cb,Pie=function(t,e,r){var n,s;Yx(t);try{if(n=Rie(t,"return"),!n){if(e==="throw")throw r;return r}n=Iie(n,t)}catch(i){s=!0,n=i}if(e==="throw")throw r;if(s)throw n;return Yx(n),r},kie=P$,jie=bi,Nie=po,Mie=Ob,Die=cie,Fie=j$,Xx=El,Bie=Tie,Lie=NT,Zx=Pie,Uie=TypeError,Sp=function(t,e){this.stopped=t,this.result=e},Qx=Sp.prototype,Vie=function(t,e,r){var n=r&&r.that,s=!!(r&&r.AS_ENTRIES),i=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),a=!!(r&&r.INTERRUPTED),c=kie(e,n),l,p,f,m,d,g,v,y=function(w){var x=l;return l=void 0,x&&Zx(x,"normal"),new Sp(!0,w)},E=function(w){return s?(Nie(w),a?c(w[0],w[1],y):c(w[0],w[1])):a?c(w,y):c(w)};if(i)l=t.iterator;else if(o)l=t;else{if(p=Lie(t),!p)throw new Uie(Mie(t)+" is not iterable");if(Die(p)){for(f=0,m=Fie(t);m>f;f++)if(d=E(t[f]),d&&Xx(Qx,d))return d;return new Sp(!1)}l=Bie(t,p)}for(g=i?t.next:l.next;!(v=jie(g,l)).done;){var S=v.value;try{d=E(S)}catch(w){if(l)Zx(l,"throw",w);else throw w}if(typeof d=="object"&&d&&Xx(Qx,d))return d}return new Sp(!1)},qie=Kb,zie=String,Gb=function(t){if(qie(t)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return zie(t)},Jie=Gb,MT=function(t,e){return t===void 0?arguments.length<2?"":e:Jie(t)},Wie=Ma,Hie=El,Kie=zb,Xp=Jb,Gie=OT,DT=Wb,ng=Ei,sg=gl,Yie=IT,Xie=kT,Zie=Vie,Qie=MT,eoe=zs,toe=eoe("toStringTag"),Zp=Error,roe=[].push,ya=function(e,r){var n=Hie(ig,this),s;Xp?s=Xp(new Zp,n?Kie(this):ig):(s=n?this:DT(ig),ng(s,toe,"Error")),r!==void 0&&ng(s,"message",Qie(r)),Xie(s,ya,s.stack,1),arguments.length>2&&Yie(s,arguments[2]);var i=[];return Zie(e,roe,{that:i}),ng(s,"errors",i),s};Xp?Xp(ya,Zp):Gie(ya,Zp,{name:!0});var ig=ya.prototype=DT(Zp.prototype,{constructor:sg(1,ya),message:sg(1,""),name:sg(1,"AggregateError")});Wie({global:!0},{AggregateError:ya});var noe=uo.f,soe=function(t,e,r){r in t||noe(t,r,{configurable:!0,get:function(){return e[r]},set:function(n){e[r]=n}})},ioe=$n,ooe=Hn,e2=Jb,aoe=function(t,e,r){var n,s;return e2&&ioe(n=e.constructor)&&n!==r&&ooe(s=n.prototype)&&s!==r.prototype&&e2(t,s),t},t2=bl,coe=Ei,loe=El,r2=Jb,n2=OT,s2=soe,uoe=aoe,poe=MT,foe=IT,hoe=kT,doe=qs,FT=function(t,e,r,n){var s="stackTraceLimit",i=n?2:1,o=t.split("."),a=o[o.length-1],c=t2.apply(null,o);if(c){var l=c.prototype;if(!r)return c;var p=t2("Error"),f=e(function(m,d){var g=poe(n?d:m,void 0),v=n?new c(m):new c;return g!==void 0&&coe(v,"message",g),hoe(v,f,v.stack,2),this&&loe(l,this)&&uoe(v,this,f),arguments.length>i&&foe(v,arguments[i]),v});return f.prototype=l,a!=="Error"?r2?r2(f,p):n2(f,p,{name:!0}):doe&&s in c&&(s2(f,c,s),s2(f,c,"prepareStackTrace")),n2(f,c),f}},BT=Ma,moe=zr,_s=Sb,LT=FT,zy="WebAssembly",i2=moe[zy],Qp=new Error("e",{cause:7}).cause!==7,fo=function(t,e){var r={};r[t]=LT(t,e,Qp),BT({global:!0,forced:Qp},r)},Yb=function(t,e){if(i2&&i2[t]){var r={};r[t]=LT(zy+"."+t,e,Qp),BT({target:zy,stat:!0,forced:Qp},r)}};fo("Error",function(t){return function(r){return _s(t,this,arguments)}});fo("EvalError",function(t){return function(r){return _s(t,this,arguments)}});fo("RangeError",function(t){return function(r){return _s(t,this,arguments)}});fo("ReferenceError",function(t){return function(r){return _s(t,this,arguments)}});fo("SyntaxError",function(t){return function(r){return _s(t,this,arguments)}});fo("TypeError",function(t){return function(r){return _s(t,this,arguments)}});fo("URIError",function(t){return function(r){return _s(t,this,arguments)}});Yb("CompileError",function(t){return function(r){return _s(t,this,arguments)}});Yb("LinkError",function(t){return function(r){return _s(t,this,arguments)}});Yb("RuntimeError",function(t){return function(r){return _s(t,this,arguments)}});var goe=Ma,yoe=bl,voe=Sb,o2=Cn,boe=FT,Xb="AggregateError",a2=yoe(Xb),c2=!o2(function(){return a2([1]).errors[0]!==1})&&o2(function(){return a2([1],Xb,{cause:7}).cause!==7});goe({global:!0,forced:c2},{AggregateError:boe(Xb,function(t){return function(r,n){return voe(t,this,arguments)}},c2,!0)});var Eoe=zr,Soe=$n,l2=Eoe.WeakMap,woe=Soe(l2)&&/native code/.test(String(l2)),_oe=woe,UT=zr,xoe=Hn,Aoe=Ei,og=ws,ag=O$,Ooe=qb,Coe=Ib,u2="Object already initialized",Jy=UT.TypeError,$oe=UT.WeakMap,ef,kc,tf,Toe=function(t){return tf(t)?kc(t):ef(t,{})},Ioe=function(t){return function(e){var r;if(!xoe(e)||(r=kc(e)).type!==t)throw new Jy("Incompatible receiver, "+t+" required");return r}};if(_oe||ag.state){var ss=ag.state||(ag.state=new $oe);ss.get=ss.get,ss.has=ss.has,ss.set=ss.set,ef=function(t,e){if(ss.has(t))throw new Jy(u2);return e.facade=t,ss.set(t,e),e},kc=function(t){return ss.get(t)||{}},tf=function(t){return ss.has(t)}}else{var Jo=Ooe("state");Coe[Jo]=!0,ef=function(t,e){if(og(t,Jo))throw new Jy(u2);return e.facade=t,Aoe(t,Jo,e),e},kc=function(t){return og(t,Jo)?t[Jo]:{}},tf=function(t){return og(t,Jo)}}var VT={set:ef,get:kc,has:tf,enforce:Toe,getterFor:Ioe},Wy=qs,Roe=ws,qT=Function.prototype,Poe=Wy&&Object.getOwnPropertyDescriptor,zT=Roe(qT,"name"),koe=zT&&(function(){}).name==="something",joe=zT&&(!Wy||Wy&&Poe(qT,"name").configurable),Noe={PROPER:koe,CONFIGURABLE:joe},Moe=Ei,JT=function(t,e,r,n){return n&&n.enumerable?t[e]=r:Moe(t,e,r),t},Doe=Cn,Foe=$n,Boe=Hn,Loe=Wb,p2=zb,Uoe=JT,Voe=zs,Hy=Voe("iterator"),WT=!1,Bs,cg,lg;[].keys&&(lg=[].keys(),"next"in lg?(cg=p2(p2(lg)),cg!==Object.prototype&&(Bs=cg)):WT=!0);var qoe=!Boe(Bs)||Doe(function(){var t={};return Bs[Hy].call(t)!==t});qoe?Bs={}:Bs=Loe(Bs);Foe(Bs[Hy])||Uoe(Bs,Hy,function(){return this});var HT={IteratorPrototype:Bs,BUGGY_SAFARI_ITERATORS:WT},zoe=Hb,Joe=Kb,Woe=zoe?{}.toString:function(){return"[object "+Joe(this)+"]"},Hoe=Hb,Koe=uo.f,Goe=Ei,Yoe=ws,Xoe=Woe,Zoe=zs,f2=Zoe("toStringTag"),Zb=function(t,e,r,n){var s=r?t:t&&t.prototype;s&&(Yoe(s,f2)||Koe(s,f2,{configurable:!0,value:e}),n&&!Hoe&&Goe(s,"toString",Xoe))},Qoe=HT.IteratorPrototype,eae=Wb,tae=gl,rae=Zb,nae=Da,sae=function(){return this},iae=function(t,e,r,n){var s=e+" Iterator";return t.prototype=eae(Qoe,{next:tae(+!n,r)}),rae(t,s,!1,!0),nae[s]=sae,t},oae=Ma,aae=bi,KT=Noe,cae=iae,lae=zb,uae=Zb,h2=JT,pae=zs,d2=Da,GT=HT,fae=KT.PROPER;KT.CONFIGURABLE;GT.IteratorPrototype;var Hu=GT.BUGGY_SAFARI_ITERATORS,ug=pae("iterator"),m2="keys",Ku="values",g2="entries",hae=function(){return this},YT=function(t,e,r,n,s,i,o){cae(r,e,n);var a=function(E){if(E===s&&m)return m;if(!Hu&&E&&E in p)return p[E];switch(E){case m2:return function(){return new r(this,E)};case Ku:return function(){return new r(this,E)};case g2:return function(){return new r(this,E)}}return function(){return new r(this)}},c=e+" Iterator",l=!1,p=t.prototype,f=p[ug]||p["@@iterator"]||s&&p[s],m=!Hu&&f||a(s),d=e==="Array"&&p.entries||f,g,v,y;if(d&&(g=lae(d.call(new t)),g!==Object.prototype&&g.next&&(uae(g,c,!0,!0),d2[c]=hae)),fae&&s===Ku&&f&&f.name!==Ku&&(l=!0,m=function(){return aae(f,this)}),s)if(v={values:a(Ku),keys:i?m:a(m2),entries:a(g2)},o)for(y in v)(Hu||l||!(y in p))&&h2(p,y,v[y]);else oae({target:e,proto:!0,forced:Hu||l},v);return o&&p[ug]!==m&&h2(p,ug,m,{}),d2[e]=m,v},XT=function(t,e){return{value:t,done:e}},dae=yl,y2=Da,ZT=VT;uo.f;var mae=YT,Gu=XT,QT="Array Iterator",gae=ZT.set,yae=ZT.getterFor(QT);mae(Array,"Array",function(t,e){gae(this,{type:QT,target:dae(t),index:0,kind:e})},function(){var t=yae(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=null,Gu(void 0,!0);switch(t.kind){case"keys":return Gu(r,!1);case"values":return Gu(e[r],!1)}return Gu([r,e[r]],!1)},"values");y2.Arguments=y2.Array;var Qb=Jr,vae=Tb,bae=Gb,Eae=xh,Sae=Qb("".charAt),v2=Qb("".charCodeAt),wae=Qb("".slice),_ae=function(t){return function(e,r){var n=bae(Eae(e)),s=vae(r),i=n.length,o,a;return s<0||s>=i?t?"":void 0:(o=v2(n,s),o<55296||o>56319||s+1===i||(a=v2(n,s+1))<56320||a>57343?t?Sae(n,s):o:t?wae(n,s,s+2):(o-55296<<10)+(a-56320)+65536)}},xae={charAt:_ae(!0)},Aae=xae.charAt,Oae=Gb,eI=VT,Cae=YT,b2=XT,tI="String Iterator",$ae=eI.set,Tae=eI.getterFor(tI);Cae(String,"String",function(t){$ae(this,{type:tI,string:Oae(t),index:0})},function(){var e=Tae(this),r=e.string,n=e.index,s;return n>=r.length?b2(void 0,!0):(s=Aae(r,n),e.index+=s.length,b2(s,!1))});var Iae=vl,Rae=Iae.AggregateError,Pae={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},kae=Pae,jae=zr,Nae=Zb,E2=Da;for(var pg in kae)Nae(jae[pg],pg),E2[pg]=E2.Array;var Mae=Rae,Dae=Mae,Fae=Dae,Bae=Fae,Lae=Bae,Uae=Lae,Vae=Uae,qae=Vae;const zae=Ze(qae);class Jae extends zae{constructor(e,r,n){if(super(e,r,n),this.name=this.constructor.name,typeof r=="string"&&(this.message=r),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack,n!=null&&typeof n=="object"&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:s}=n;this.cause=s,s instanceof Error&&"stack"in s&&(this.stack=`${this.stack}
|
|
22
|
+
CAUSE: ${s.stack}`)}}}class zt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Jae,e)}constructor(e,r){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
|
|
23
|
+
CAUSE: ${n.stack}`)}}}class vs extends zt{constructor(e,r){if(super(e,r),r!=null&&typeof r=="object"){const{cause:n,...s}=r;Object.assign(this,s)}}}class ot extends zt{}class fg extends ot{}var eE=function(){return!1},Ws=function(){return!0};function Mt(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function At(t){return function e(r){return arguments.length===0||Mt(r)?e:t.apply(this,arguments)}}function et(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return Mt(r)?e:At(function(s){return t(r,s)});default:return Mt(r)&&Mt(n)?e:Mt(r)?At(function(s){return t(s,n)}):Mt(n)?At(function(s){return t(r,s)}):t(r,n)}}}function Wae(t,e){t=t||[],e=e||[];var r,n=t.length,s=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<s;)i[i.length]=e[r],r+=1;return i}function Ph(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(r){return e.apply(this,arguments)};case 2:return function(r,n){return e.apply(this,arguments)};case 3:return function(r,n,s){return e.apply(this,arguments)};case 4:return function(r,n,s,i){return e.apply(this,arguments)};case 5:return function(r,n,s,i,o){return e.apply(this,arguments)};case 6:return function(r,n,s,i,o,a){return e.apply(this,arguments)};case 7:return function(r,n,s,i,o,a,c){return e.apply(this,arguments)};case 8:return function(r,n,s,i,o,a,c,l){return e.apply(this,arguments)};case 9:return function(r,n,s,i,o,a,c,l,p){return e.apply(this,arguments)};case 10:return function(r,n,s,i,o,a,c,l,p,f){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function tE(t,e,r){return function(){for(var n=[],s=0,i=t,o=0,a=!1;o<e.length||s<arguments.length;){var c;o<e.length&&(!Mt(e[o])||s>=arguments.length)?c=e[o]:(c=arguments[s],s+=1),n[o]=c,Mt(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,n):Ph(Math.max(0,i),tE(t,n,r))}}var tr=et(function(e,r){return e===1?At(r):Ph(e,tE(e,[],r))});function Or(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return Mt(r)?e:et(function(i,o){return t(r,i,o)});case 2:return Mt(r)&&Mt(n)?e:Mt(r)?et(function(i,o){return t(i,n,o)}):Mt(n)?et(function(i,o){return t(r,i,o)}):At(function(i){return t(r,n,i)});default:return Mt(r)&&Mt(n)&&Mt(s)?e:Mt(r)&&Mt(n)?et(function(i,o){return t(i,o,s)}):Mt(r)&&Mt(s)?et(function(i,o){return t(i,n,o)}):Mt(n)&&Mt(s)?et(function(i,o){return t(r,i,o)}):Mt(r)?At(function(i){return t(i,n,s)}):Mt(n)?At(function(i){return t(r,i,s)}):Mt(s)?At(function(i){return t(r,n,i)}):t(r,n,s)}}}const ho=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function Hae(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Si(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!ho(n)){for(var s=0;s<t.length;){if(typeof n[t[s]]=="function")return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(Hae(n)){var i=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return i(n)}}return r.apply(this,arguments)}}function kh(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const tn={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};var Kae=function(){function t(e,r){this.xf=r,this.f=e,this.all=!0}return t.prototype["@@transducer/init"]=tn.init,t.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)||(this.all=!1,e=kh(this.xf["@@transducer/step"](e,!1))),e},t}();function Gae(t){return function(e){return new Kae(t,e)}}var rE=et(Si(["all"],Gae,function(e,r){for(var n=0;n<r.length;){if(!e(r[n]))return!1;n+=1}return!0}));function S2(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function rf(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function Yae(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function Sn(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function Xae(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const wc=typeof Object.is=="function"?Object.is:Xae;var w2=Object.prototype.toString,rI=function(){return w2.call(arguments)==="[object Arguments]"?function(e){return w2.call(e)==="[object Arguments]"}:function(e){return Sn("callee",e)}}(),Zae=!{toString:null}.propertyIsEnumerable("toString"),_2=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x2=function(){return arguments.propertyIsEnumerable("length")}(),Qae=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},eo=At(typeof Object.keys=="function"&&!x2?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,s=[],i=x2&&rI(e);for(r in e)Sn(r,e)&&(!i||r!=="length")&&(s[s.length]=r);if(Zae)for(n=_2.length-1;n>=0;)r=_2[n],Sn(r,e)&&!Qae(s,r)&&(s[s.length]=r),n-=1;return s}),Jn=At(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function A2(t,e,r,n){var s=S2(t),i=S2(e);function o(a,c){return nE(a,c,r.slice(),n.slice())}return!rf(function(a,c){return!rf(o,c,a)},i,s)}function nE(t,e,r,n){if(wc(t,e))return!0;var s=Jn(t);if(s!==Jn(e))return!1;if(typeof t["fantasy-land/equals"]=="function"||typeof e["fantasy-land/equals"]=="function")return typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e)&&typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t);if(typeof t.equals=="function"||typeof e.equals=="function")return typeof t.equals=="function"&&t.equals(e)&&typeof e.equals=="function"&&e.equals(t);switch(s){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&Yae(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&wc(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!wc(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(!(t.source===e.source&&t.global===e.global&&t.ignoreCase===e.ignoreCase&&t.multiline===e.multiline&&t.sticky===e.sticky&&t.unicode===e.unicode))return!1;break}for(var i=r.length-1;i>=0;){if(r[i]===t)return n[i]===e;i-=1}switch(s){case"Map":return t.size!==e.size?!1:A2(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:A2(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var o=eo(t);if(o.length!==eo(e).length)return!1;var a=r.concat([t]),c=n.concat([e]);for(i=o.length-1;i>=0;){var l=o[i];if(!(Sn(l,e)&&nE(e[l],t[l],a,c)))return!1;i-=1}return!0}var wi=et(function(e,r){return nE(e,r,[],[])});function ece(t,e,r){var n,s;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(n=1/e;r<t.length;){if(s=t[r],s===0&&1/s===n)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(s=t[r],typeof s=="number"&&s!==s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(e===null)return t.indexOf(e,r)}for(;r<t.length;){if(wi(t[r],e))return r;r+=1}return-1}function nf(t,e){return ece(e,t,0)>=0}function wp(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function hg(t){var e=t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0");return'"'+e.replace(/"/g,'\\"')+'"'}var cc=function(e){return(e<10?"0":"")+e},tce=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+cc(e.getUTCMonth()+1)+"-"+cc(e.getUTCDate())+"T"+cc(e.getUTCHours())+":"+cc(e.getUTCMinutes())+":"+cc(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function nI(t){return function(){return!t.apply(this,arguments)}}function Al(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function rce(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}function sf(t){return Object.prototype.toString.call(t)==="[object Object]"}var nce=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=tn.init,t.prototype["@@transducer/result"]=tn.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t}();function sce(t){return function(e){return new nce(t,e)}}var ice=et(Si(["fantasy-land/filter","filter"],sce,function(t,e){return sf(e)?Al(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{},eo(e)):rce(t,e)})),oce=et(function(e,r){return ice(nI(e),r)});function sI(t,e){var r=function(o){var a=e.concat([t]);return nf(o,a)?"<Circular>":sI(o,a)},n=function(i,o){return wp(function(a){return hg(a)+": "+r(i[a])},o.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+wp(r,t).join(", ")+"))";case"[object Array]":return"["+wp(r,t).concat(n(t,oce(function(i){return/^\d+$/.test(i)},eo(t)))).join(", ")+"]";case"[object Boolean]":return typeof t=="object"?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):hg(tce(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return typeof t=="object"?"new Number("+r(t.valueOf())+")":1/t===-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return typeof t=="object"?"new String("+r(t.valueOf())+")":hg(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var s=t.toString();if(s!=="[object Object]")return s}return"{"+n(t,eo(t)).join(", ")+"}"}}var jc=At(function(e){return sI(e,[])}),iI=et(function(e,r){if(e===r)return r;function n(c,l){if(c>l!=l>c)return l>c?l:c}var s=n(e,r);if(s!==void 0)return s;var i=n(typeof e,typeof r);if(i!==void 0)return i===typeof e?e:r;var o=jc(e),a=n(o,jc(r));return a!==void 0&&a===o?e:r}),ace=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=tn.init,t.prototype["@@transducer/result"]=tn.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t}(),cce=function(e){return function(r){return new ace(e,r)}},jh=et(Si(["fantasy-land/map","map"],cce,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return tr(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return Al(function(n,s){return n[s]=e(r[s]),n},{},eo(r));default:return wp(e,r)}}));const Fa=Number.isInteger||function(e){return e<<0===e};function sE(t){return Object.prototype.toString.call(t)==="[object String]"}function Nh(t,e){var r=t<0?e.length+t:t;return sE(e)?e.charAt(r):e[r]}var Ol=et(function(e,r){if(r!=null)return Fa(e)?Nh(e,r):r[e]}),oI=et(function(e,r){return jh(Ol(e),r)}),lce=At(function(e){return ho(e)?!0:!e||typeof e!="object"||sE(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),O2=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function aI(t,e,r){return function(s,i,o){if(lce(o))return t(s,i,o);if(o==null)return i;if(typeof o["fantasy-land/reduce"]=="function")return e(s,i,o,"fantasy-land/reduce");if(o[O2]!=null)return r(s,i,o[O2]());if(typeof o.next=="function")return r(s,i,o);if(typeof o.reduce=="function")return e(s,i,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function uce(t,e,r){for(var n=0,s=r.length;n<s;){if(e=t["@@transducer/step"](e,r[n]),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}var cI=et(function(e,r){return Ph(e.length,function(){return e.apply(r,arguments)})});function pce(t,e,r){for(var n=r.next();!n.done;){if(e=t["@@transducer/step"](e,n.value),e&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function fce(t,e,r,n){return t["@@transducer/result"](r[n](cI(t["@@transducer/step"],t),e))}var iE=aI(uce,fce,pce),hce=function(){function t(e){this.f=e}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(e){return e},t.prototype["@@transducer/step"]=function(e,r){return this.f(e,r)},t}();function lI(t){return new hce(t)}var Ba=Or(function(t,e,r){return iE(typeof t=="function"?lI(t):t,e,r)}),dce=At(function(e){return tr(Ba(iI,0,oI("length",e)),function(){for(var r=0,n=e.length;r<n;){if(!e[r].apply(this,arguments))return!1;r+=1}return!0})}),Ye=At(function(e){return function(){return e}}),mce=et(function(e,r){return e&&r}),gce=At(function(e){return tr(Ba(iI,0,oI("length",e)),function(){for(var r=0,n=e.length;r<n;){if(e[r].apply(this,arguments))return!0;r+=1}return!1})});function yce(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function vce(t,e,r,n){return r[n](t,e)}var bce=aI(Al,vce,yce),Ece=et(function(e,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](e):typeof e.ap=="function"?e.ap(r):typeof e=="function"?function(n){return e(n)(r(n))}:bce(function(n,s){return Wae(n,jh(s,r))},[],e)}),Sce=et(function(e,r){return e.apply(this,r)}),oE=At(function(e){return tr(e.length,e)});function wce(t,e,r){if(Fa(t)&&ho(r)){var n=[].concat(r);return n[t]=e,n}var s={};for(var i in r)s[i]=r[i];return s[t]=e,s}var of=At(function(e){return e==null}),Pe=Or(function t(e,r,n){if(e.length===0)return r;var s=e[0];if(e.length>1){var i=!of(n)&&Sn(s,n)&&typeof n[s]=="object"?n[s]:Fa(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,i)}return wce(s,r,n)}),_ce=Or(function(e,r,n){return Pe([e],r,n)});function aE(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}var xce=et(function(e,r){var n=tr(e,r);return tr(e,function(){return Al(Ece,jh(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),cE=At(function(e){return xce(e.length,e)}),Cl=et(function(e,r){return aE(e)?function(){return e.apply(this,arguments)&&r.apply(this,arguments)}:cE(mce)(e,r)});function Ace(t){return new RegExp(t.source,t.flags?t.flags:(t.global?"g":"")+(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.sticky?"y":"")+(t.unicode?"u":"")+(t.dotAll?"s":""))}function uI(t,e,r){if(r||(r=new Cce),Oce(t))return t;var n=function(i){var o=r.get(t);if(o)return o;r.set(t,i);for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(i[a]=t[a]);return i};switch(Jn(t)){case"Object":return n(Object.create(Object.getPrototypeOf(t)));case"Array":return n(Array(t.length));case"Date":return new Date(t.valueOf());case"RegExp":return Ace(t);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}function Oce(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var Cce=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){var n=this.hash(e),s=this.map[n];s||(this.map[n]=s=[]),s.push([e,r]),this.length+=1},t.prototype.hash=function(e){var r=[];for(var n in e)r.push(Object.prototype.toString.call(e[n]));return r.join()},t.prototype.get=function(e){if(this.length<=180){for(var r in this.map)for(var o=this.map[r],n=0;n<o.length;n+=1){var s=o[n];if(s[0]===e)return s[1]}return}var i=this.hash(e),o=this.map[i];if(o)for(var n=0;n<o.length;n+=1){var s=o[n];if(s[0]===e)return s[1]}},t}(),$ce=At(function(e){return function(r,n){return e(r,n)?-1:e(n,r)?1:0}}),Tce=At(function(e){return!e}),$l=cE(Tce);function Ice(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function lE(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return ho(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var Tl=Or(lE("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),Rce=At(lE("tail",Tl(1,1/0)));function _r(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Ph(arguments[0].length,Ba(Ice,arguments[0],Rce(arguments)))}var Pce=At(function(t){return Nh(0,t)});function kce(t){return t}var pI=At(kce),jce=function(){function t(e,r,n,s){this.valueFn=e,this.valueAcc=r,this.keyFn=n,this.xf=s,this.inputs={}}return t.prototype["@@transducer/init"]=tn.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(Sn(r,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[r]),e["@@transducer/reduced"])){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,uI(this.valueAcc)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),e},t}();function Nce(t,e,r){return function(n){return new jce(t,e,r,n)}}var Mce=tE(4,[],Si([],Nce,function(e,r,n,s){var i=lI(function(o,a){var c=n(a),l=e(Sn(c,o)?o[c]:uI(r),a);return l&&l["@@transducer/reduced"]?kh(o):(o[c]=l,o)});return iE(i,{},s)})),va=et(function(e,r){return r==null||r!==r?e:r}),Dce=function(){function t(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return t.prototype.add=function(e){return!C2(e,!0,this)},t.prototype.has=function(e){return C2(e,!1,this)},t}();function C2(t,e,r){var n=typeof t,s,i;switch(n){case"string":case"number":return t===0&&1/t===-1/0?r._items["-0"]?!0:(e&&(r._items["-0"]=!0),!1):r._nativeSet!==null?e?(s=r._nativeSet.size,r._nativeSet.add(t),i=r._nativeSet.size,i===s):r._nativeSet.has(t):n in r._items?t in r._items[n]?!0:(e&&(r._items[n][t]=!0),!1):(e&&(r._items[n]={},r._items[n][t]=!0),!1);case"boolean":if(n in r._items){var o=t?1:0;return r._items[n][o]?!0:(e&&(r._items[n][o]=!0),!1)}else return e&&(r._items[n]=t?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?e?(s=r._nativeSet.size,r._nativeSet.add(t),i=r._nativeSet.size,i===s):r._nativeSet.has(t):n in r._items?nf(t,r._items[n])?!0:(e&&r._items[n].push(t),!1):(e&&(r._items[n]=[t]),!1);case"undefined":return r._items[n]?!0:(e&&(r._items[n]=!0),!1);case"object":if(t===null)return r._items.null?!0:(e&&(r._items.null=!0),!1);default:return n=Object.prototype.toString.call(t),n in r._items?nf(t,r._items[n])?!0:(e&&r._items[n].push(t),!1):(e&&(r._items[n]=[t]),!1)}}var Fce=et(function(e,r){for(var n=[],s=0,i=e.length,o=r.length,a=new Dce,c=0;c<o;c+=1)a.add(r[c]);for(;s<i;)a.add(e[s])&&(n[n.length]=e[s]),s+=1;return n}),Bce=Or(function(e,r,n){var s=Array.prototype.slice.call(n,0);return s.splice(e,r),s});function Lce(t,e){if(e==null)return e;if(Fa(t)&&ho(e))return Bce(t,1,e);var r={};for(var n in e)r[n]=e[n];return delete r[t],r}function Uce(t,e){if(Fa(t)&&ho(e))return[].concat(e);var r={};for(var n in e)r[n]=e[n];return r}var en=et(function t(e,r){if(r==null)return r;switch(e.length){case 0:return r;case 1:return Lce(e[0],r);default:var n=e[0],s=Array.prototype.slice.call(e,1);return r[n]==null?Uce(n,r):_ce(n,t(s,r[n]),r)}}),Vce=function(){function t(e,r){this.xf=r,this.n=e,this.i=0}return t.prototype["@@transducer/init"]=tn.init,t.prototype["@@transducer/result"]=tn.result,t.prototype["@@transducer/step"]=function(e,r){this.i+=1;var n=this.n===0?e:this.xf["@@transducer/step"](e,r);return this.n>=0&&this.i>=this.n?kh(n):n},t}();function qce(t){return function(e){return new Vce(t,e)}}var zce=et(Si(["take"],qce,function(e,r){return Tl(0,e<0?1/0:e,r)}));function Jce(t,e){for(var r=e.length-1;r>=0&&t(e[r]);)r-=1;return Tl(0,r+1,e)}var Wce=function(){function t(e,r){this.f=e,this.retained=[],this.xf=r}return t.prototype["@@transducer/init"]=tn.init,t.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.retain(e,r):this.flush(e,r)},t.prototype.flush=function(e,r){return e=iE(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,r)},t.prototype.retain=function(e,r){return this.retained.push(r),e},t}();function Hce(t){return function(e){return new Wce(t,e)}}var Kce=et(Si([],Hce,Jce)),Mh=At(function(t){return Nh(-1,t)}),Gce=function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=tn.init,t.prototype["@@transducer/result"]=tn.result,t.prototype["@@transducer/step"]=function(e,r){if(this.f){if(this.f(r))return e;this.f=null}return this.xf["@@transducer/step"](e,r)},t}();function Yce(t){return function(e){return new Gce(t,e)}}var Xce=et(Si(["dropWhile"],Yce,function(e,r){for(var n=0,s=r.length;n<s&&e(r[n]);)n+=1;return Tl(n,1/0,r)})),Zce=et(function(e,r){return e||r}),Qce=et(function(e,r){return aE(e)?function(){return e.apply(this,arguments)||r.apply(this,arguments)}:cE(Zce)(e,r)});function ele(t){var e=Object.prototype.toString.call(t);return e==="[object Uint8ClampedArray]"||e==="[object Int8Array]"||e==="[object Uint8Array]"||e==="[object Int16Array]"||e==="[object Uint16Array]"||e==="[object Int32Array]"||e==="[object Uint32Array]"||e==="[object Float32Array]"||e==="[object Float64Array]"||e==="[object BigInt64Array]"||e==="[object BigUint64Array]"}var tle=At(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():ho(e)?[]:sE(e)?"":sf(e)?{}:rI(e)?function(){return arguments}():ele(e)?e.constructor.from(""):void 0}),rle=At(function(e){return tr(e.length,function(r,n){var s=Array.prototype.slice.call(arguments,0);return s[0]=n,s[1]=r,e.apply(this,s)})}),nle=et(lE("groupBy",Mce(function(t,e){return t.push(e),t},[]))),sle=et(function(e,r){if(e.length===0||of(r))return!1;for(var n=r,s=0;s<e.length;)if(!of(n)&&Sn(e[s],n))n=n[e[s]],s+=1;else return!1;return!0}),_c=et(function(e,r){return sle([e],r)}),_i=function(t,e){switch(arguments.length){case 0:return _i;case 1:return function(){return function r(n){switch(arguments.length){case 0:return r;default:return wc(t,n)}}}();default:return wc(t,e)}},uE=Or(function(e,r,n){return tr(Math.max(e.length,r.length,n.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})}),ile=et(nf),ole=Tl(0,-1),pE=et(function(e,r){return tr(e+1,function(){var n=arguments[e];if(n!=null&&aE(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(jc(n)+' does not have a method named "'+r+'"')})}),Il=At(function(e){return e!=null&&wi(e,tle(e))}),fI=At(function(e){return!Il(e)}),hI=pE(1,"join");function $2(t){return Object.prototype.toString.call(t)==="[object Number]"}var ale=et(function(e,r){return function(n){return function(s){return jh(function(i){return r(i,s)},n(e(s)))}}});function fE(t,e){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;var s=t[n];Fa(s)?r=Nh(s,r):r=r[s]}return r}var cle=et(function(e,r){return Al(function(n,s){return n[s]=e(r[s],s,r),n},{},eo(r))}),lle=Or(function(e,r,n){var s={},i;r=r||{},n=n||{};for(i in r)Sn(i,r)&&(s[i]=Sn(i,n)?e(i,r[i],n[i]):r[i]);for(i in n)Sn(i,n)&&!Sn(i,s)&&(s[i]=n[i]);return s}),ule=Or(function t(e,r,n){return lle(function(s,i,o){return sf(i)&&sf(o)?t(e,i,o):e(s,i,o)},r,n)}),Dh=et(function(e,r){return ule(function(n,s,i){return i},e,r)}),ple=et(function(e,r){return rE(nI(e),r)}),dI=function(t){return{value:t,map:function(e){return dI(e(t))}}},fle=Or(function(e,r,n){return e(function(s){return dI(r(s))})(n).value}),pr=et(fE),mI=Or(function(e,r,n){return va(e,fE(r,n))}),hE=Or(function(e,r,n){return e(fE(r,n))}),gI=et(function(e,r){for(var n={},s=0;s<e.length;)e[s]in r&&(n[e[s]]=r[e[s]]),s+=1;return n}),yI=Or(function(e,r,n){return wi(e,Ol(r,n))}),af=Or(function(e,r,n){return va(e,Ol(r,n))}),hle=Or(function(e,r,n){return e(Ol(r,n))}),dle=et(function(e,r){if(!($2(e)&&$2(r)))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(e<r?r-e:0),s=e<0?r+Math.abs(e):r-e,i=0;i<s;)n[i]=i+e,i+=1;return n}),mle=At(kh),vI=Or(function(e,r,n){return n.replace(e,r)}),gle=et(function(e,r){return Array.prototype.slice.call(r,0).sort(e)}),bI=pE(1,"split"),yle=et(function(t,e){return wi(zce(t.length,e),t)}),vle=function(){function t(e,r){this.xf=r,this.pred=e,this.items=[]}return t.prototype["@@transducer/init"]=tn.init,t.prototype["@@transducer/result"]=tn.result,t.prototype["@@transducer/step"]=function(e,r){return rf(this.pred,r,this.items)?e:(this.items.push(r),this.xf["@@transducer/step"](e,r))},t}();function ble(t){return function(e){return new vle(t,e)}}var EI=et(Si([],ble,function(t,e){for(var r=0,n=e.length,s=[],i;r<n;)i=e[r],rf(t,i,s)||(s[s.length]=i),r+=1;return s})),Ele=Or(function(e,r,n){return e(n)?r(n):n}),Fh=Ye(void 0),xi=wi(Fh()),SI=$l(xi),wI=wi(null),_I=$l(wI),Sle=$l(of),wle=tr(1,_r(Jn,_i("GeneratorFunction"))),_le=tr(1,_r(Jn,_i("AsyncFunction"))),mo=gce([_r(Jn,_i("Function")),wle,_le]),xI=tr(1,mo(Array.isArray)?Array.isArray:_r(Jn,_i("Array"))),xle=Cl(xI,Il),Ale=Cl(xI,fI),go=tr(1,_r(Jn,_i("String"))),Ole=wi("");function Ky(t){"@babel/helpers - typeof";return Ky=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ky(t)}var AI=function(e){return Ky(e)==="object"},Cle=tr(1,Cl(_I,Qce(AI,mo))),$le=$l(Cle),Bh=dce([go,$le,fI]),Tle=$l(mo),Ile=tr(1,Cl(_I,AI)),Rle=_r(Jn,_i("Object")),Ple=_r(jc,wi(jc(Object))),kle=hE(Cl(mo,Ple),["constructor"]),Wn=tr(1,function(t){if(!Ile(t)||!Rle(t))return!1;var e=Object.getPrototypeOf(t);return wI(e)?!0:kle(e)}),jle=tr(1,_r(Jn,_i("RegExp")));function Nle(t){return Ble(t)||Fle(t)||Dle(t)||Mle()}function Mle(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
24
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Dle(t,e){if(t){if(typeof t=="string")return Gy(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Gy(t,e):void 0}}function Fle(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ble(t){if(Array.isArray(t))return Gy(t)}function Gy(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}var Lle=$ce(function(t,e){return t.length>e.length}),Ule=_r(gle(Lle),Pce,Ol("length")),Vle=oE(function(t,e,r){var n=r.apply(void 0,Nle(t));return Sle(n)?mle(n):e}),qle=function(e){var r=Ule(e);return tr(r,function(){for(var n=arguments.length,s=new Array(n),i=0;i<n;i++)s[i]=arguments[i];return Ba(Vle(s),void 0,e)})},OI=uE(Ale,qle,Fh),Lh=rle(ile),Nc=tr(3,function(t,e,r){var n=pr(t,r),s=pr(ole(t),r);if(!Tle(n)&&!xle(t)){var i=cI(n,s);return Sce(i,e)}}),zle=Ele(go,vI(/[.*+?^${}()|[\]\\-]/g,"\\$&")),Jle=function(e,r,n){if(n==null||e==null||r==null)throw TypeError("Input values must not be `null` or `undefined`")},T2=function(e,r){if(typeof e!="string"&&!(e instanceof String))throw TypeError("`".concat(r,"` must be a string"))},Wle=function(e){if(typeof e!="string"&&!(e instanceof String)&&!(e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},Hle=function(e,r,n){Jle(e,r,n),T2(n,"str"),T2(r,"replaceValue"),Wle(e);var s=new RegExp(jle(e)?e:zle(e),"g");return vI(s,r,n)},Kle=tr(3,Hle),Gle=pE(2,"replaceAll"),Yle=mo(String.prototype.replaceAll)?Gle:Kle,Xle=oE(function(t,e){return _r(bI(""),Kce(Lh(t)),hI(""))(e)}),CI=oE(function(t,e){return _r(bI(""),Xce(Lh(t)),hI(""))(e)});const dE=()=>{var t,e;return/^win/.test((t=(e=globalThis.process)===null||e===void 0?void 0:e.platform)!==null&&t!==void 0?t:"")},mE=t=>{try{const e=new URL(t);return Xle(":",e.protocol)}catch{return}};_r(mE,SI);const Zle=t=>{const e=t.lastIndexOf(".");return e>=0?t.substring(e).toLowerCase():""},$I=t=>{if(globalThis.window!==void 0)return!1;const e=mE(t);return xi(e)||e==="file"||/^[a-zA-Z]$/.test(e)},gE=t=>{const e=mE(t);return e==="http"||e==="https"},TI=(t,e)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=af(!1,"keepFileProtocol",e),s=af(dE,"isWindows",e);let i=decodeURI(t);for(let a=0;a<r.length;a+=2)i=i.replace(r[a],r[a+1]);let o=i.substring(0,7).toLowerCase()==="file://";return o&&(i=i[7]==="/"?i.substring(8):i.substring(7),s()&&i[1]==="/"&&(i=`${i[0]}:${i.substring(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=Yle("/","\\",i),i.substring(1,3)===":\\"&&(i=i[0].toUpperCase()+i.substring(1))),i},Qle=t=>{const e=[/\?/g,"%3F",/#/g,"%23"];let r=t;dE()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let n=0;n<e.length;n+=2)r=r.replace(e[n],e[n+1]);return r},II=t=>{const e=t.indexOf("#");return e!==-1?t.substring(e):"#"},Ct=t=>{const e=t.indexOf("#");let r=t;return e>=0&&(r=t.substring(0,e)),r},Yy=()=>{var t,e;if(globalThis.window!==void 0)return Ct(globalThis.location.href);const r=(t=(e=globalThis.process)===null||e===void 0?void 0:e.cwd())!==null&&t!==void 0?t:"/",n=Mh(r);return["/","\\"].includes(n)?r:r+(dE()?"\\":"/")},Er=(t,e)=>{const r=new URL(e,new URL(t,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:s,hash:i}=r;return n+s+i}return r.toString()},Uh=t=>{if($I(t))return Qle(TI(t));try{return new URL(t).toString()}catch{return encodeURI(decodeURI(t)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},cs=t=>$I(t)?TI(t):decodeURI(t);let ba=class{constructor({uri:e,mediaType:r="text/plain",data:n,parseResult:s}){H(this,"uri");H(this,"mediaType");H(this,"data");H(this,"parseResult");this.uri=e,this.mediaType=r,this.data=n,this.parseResult=s}get extension(){return go(this.uri)?Zle(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Jn(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}};class Ea{constructor({refs:e=[],circular:r=!1}={}){H(this,"rootRef");H(this,"refs");H(this,"circular");this.refs=[],this.circular=r,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===void 0?e:this.rootRef,e.refSet=this),this}merge(e){for(const r of e.values())this.add(r);return this}has(e){const r=go(e)?e:e.uri;return SI(this.find(n=>n.uri===r))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach(e=>{e.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}}const RI={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:pI,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}},eue=ale(pr(["resolve","baseURI"]),Pe(["resolve","baseURI"])),tue=t=>Ole(t)?Yy():t,PI=(t,e)=>{const r=Dh(t,e);return fle(eue,tue,r)};class rue extends zt{constructor(r,n){super(r,{cause:n.cause});H(this,"plugin");this.plugin=n.plugin}}const yE=async(t,e,r)=>{const n=await Promise.all(r.map(Nc([t],e)));return r.filter((s,i)=>n[i])},vE=async(t,e,r)=>{let n;for(const s of r)try{const i=await s[t].call(s,...e);return{plugin:s,result:i}}catch(i){n=new rue("Error while running plugin",{cause:i,plugin:s})}return Promise.reject(n)};class Xy extends zt{}class cf extends zt{}class kI extends cf{}class jI extends kI{}const NI="apidom-file-cache",nue=async({cacheKey:t,cacheTTL:e})=>{if(e===0)return{cachedResult:null,cachedError:null};try{const r=await caches.open(NI),n=await r.match(t);if(n){const{cachedResult:s,cachedError:i,timestamp:o}=await n.json();if(Date.now()-o<e)return{cachedResult:s,cachedError:i};await r.delete(t)}}catch{return console.log("There was an error parsing the response"),{cachedResult:null,cachedError:null}}return{cachedResult:null,cachedError:null}},I2=async({cacheKey:t,result:e,error:r,cacheTTL:n})=>{if(n!==0)try{const s={cachedResult:e,cachedError:r,timestamp:Date.now()},i=await caches.open(NI),o=new Response(JSON.stringify(s),{headers:{"Content-Type":"application/json"}});await i.put(t,o)}catch{console.error("CacheStorage is not available")}},sue=async(t,e)=>{const{cacheTTL:r=0}=e.resolve.resolverOpts,n=`read_${t.uri}`,{cachedResult:s,cachedError:i}=await nue({cacheKey:n,cacheTTL:r});if(s!==null)return s;if(i!==null)throw new cf(`Error while reading file "${t.uri}"`,{cause:i});const o=e.resolve.resolvers.map(f=>{const m=Object.create(f);return Object.assign(m,e.resolve.resolverOpts)}),a=await yE("canRead",[t,e],o);if(Il(a))throw new jI(t.uri);try{const{result:f}=await vE("read",[t],a),m=new ba({...t,data:f}).toString();return await I2({cacheKey:n,result:m,error:null,cacheTTL:r}),f}catch(f){var c,l,p;throw await I2({cacheKey:n,result:null,error:(c=(l=f==null||(p=f.cause)===null||p===void 0?void 0:p.cause)!==null&&l!==void 0?l:f==null?void 0:f.cause)!==null&&c!==void 0?c:f,cacheTTL:r}),new cf(`Error while reading file "${t.uri}"`,{cause:f})}},iue=async(t,e)=>{const r=e.parse.parsers.map(s=>{const i=Object.create(s);return Object.assign(i,e.parse.parserOpts)}),n=await yE("canParse",[t,e],r);if(Il(n))throw new jI(t.uri);try{const{plugin:s,result:i}=await vE("parse",[t,e],n);return!s.allowEmpty&&i.isEmpty?Promise.reject(new Xy(`Error while parsing file "${t.uri}". File is empty.`)):i}catch(s){throw new Xy(`Error while parsing file "${t.uri}"`,{cause:s})}},oue=async(t,e)=>{const r=new ba({uri:Uh(Ct(t)),mediaType:e.parse.mediaType}),n=await sue(r,e);return iue(new ba({...r,data:n}),e)};function aue(t){return t===null}var cue=aue,lue=Ss,uue=Fr,pue="[object Number]";function fue(t){return typeof t=="number"||uue(t)&&lue(t)==pue}var hue=fue,due=Ss,mue=Fr,gue="[object Boolean]";function yue(t){return t===!0||t===!1||mue(t)&&due(t)==gue}var vue=yue;let bue=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(r.attributes=this.serialiseObject(e.attributes));const n=this.serialiseContent(e.content);return n!==void 0&&(r.content=n),r}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const r=this.namespace.getElementClass(e.element),n=new r;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const s=this.deserialiseContent(e.content);return(s!==void 0||n.content===null)&&(n.content=s),n}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const r={key:this.serialise(e.key)};return e.value&&(r.value=this.serialise(e.value)),r}return e&&e.map?e.length===0?void 0:e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const r=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(r.value=this.deserialise(e.value)),r}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const r={};if(e.forEach((n,s)=>{n&&(r[s.toValue()]=this.serialise(n))}),Object.keys(r).length!==0)return r}deserialiseObject(e,r){Object.keys(e).forEach(n=>{r.set(n,this.deserialise(e[n]))})}};var Eue=bue,Sue=fb;function wue(t,e){return Sue(t,e)}var _ue=wue;let xue=class MI{constructor(e,r){this.key=e,this.value=r}clone(){const e=new MI;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}};var Vh=xue,Aue="Expected a function";function Oue(t){if(typeof t!="function")throw new TypeError(Aue);return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}var qh=Oue;const Cue=qh;function dg(t){return typeof t=="string"?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}let DI=class Zy{constructor(e){this.elements=e||[]}toValue(){return this.elements.map(e=>e.toValue())}map(e,r){return this.elements.map(e,r)}flatMap(e,r){return this.map(e,r).reduce((n,s)=>n.concat(s),[])}compactMap(e,r){const n=[];return this.forEach(s=>{const i=e.bind(r)(s);i&&n.push(i)}),n}filter(e,r){return e=dg(e),new Zy(this.elements.filter(e,r))}reject(e,r){return e=dg(e),new Zy(this.elements.filter(Cue(e),r))}find(e,r){return e=dg(e),this.elements.find(e,r)}forEach(e,r){this.elements.forEach(e,r)}reduce(e,r){return this.elements.reduce(e,r)}includes(e){return this.elements.some(r=>r.equals(e))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const r=this.elements[e];if(r)return r.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}};typeof Symbol<"u"&&(DI.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()});var zh=DI;const $ue=_ue,Yu=Vh,si=zh;let Tue=class _p{constructor(e,r,n){r&&(this.meta=r),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(e=>{e.parent=this,e.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map(r=>r.clone()):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof _p?this.content.toValue():this.content instanceof Yu?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map(e=>e.toValue(),this):this.content}toRef(e){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const r=new this.RefElement(this.id.toValue());return e&&(r.path=e),r}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const r=e.pop();let n=new si;const s=(o,a)=>(o.push(a),o),i=(o,a)=>{a.element===r&&o.push(a);const c=a.findRecursive(r);return c&&c.reduce(s,o),a.content instanceof Yu&&(a.content.key&&i(o,a.content.key),a.content.value&&i(o,a.content.value)),o};return this.content&&(this.content.element&&i(n,this.content),Array.isArray(this.content)&&this.content.reduce(i,n)),e.isEmpty||(n=n.filter(o=>{let a=o.parents.map(c=>c.element);for(const c in e){const l=e[c],p=a.indexOf(l);if(p!==-1)a=a.splice(0,p);else return!1}return!0})),n}set(e){return this.content=e,this}equals(e){return $ue(this.toValue(),e)}getMetaProperty(e,r){if(!this.meta.hasKey(e)){if(this.isFrozen){const n=this.refract(r);return n.freeze(),n}this.meta.set(e,r)}return this.meta.get(e)}setMetaProperty(e,r){this.meta.set(e,r)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof _p)this._content=e;else if(e instanceof si)this.content=e.elements;else if(typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e==="null"||e==null)this._content=e;else if(e instanceof Yu)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else if(typeof e=="object")this._content=Object.keys(e).map(r=>new this.MemberElement(r,e[r]));else throw new Error("Cannot set content to given value")}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const r=new si;for(;e;)r.push(e),e=e.parent;return r}get children(){if(Array.isArray(this.content))return new si(this.content);if(this.content instanceof Yu){const e=new si([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof _p?new si([this.content]):new si}get recursiveChildren(){const e=new si;return this.children.forEach(r=>{e.push(r),r.recursiveChildren.forEach(n=>{e.push(n)})}),e}};var Hs=Tue;const Iue=Hs;let Rue=class extends Iue{constructor(e,r,n){super(e||null,r,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}};var Pue=Rue;const kue=Hs;var jue=class extends kue{constructor(e,r,n){super(e,r,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}};const Nue=Hs;var Mue=class extends Nue{constructor(e,r,n){super(e,r,n),this.element="number"}primitive(){return"number"}};const Due=Hs;var Fue=class extends Due{constructor(e,r,n){super(e,r,n),this.element="boolean"}primitive(){return"boolean"}};const Bue=qh,Lue=Hs,R2=zh;let Mc=class extends Lue{constructor(e,r,n){super(e||[],r,n),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const r=this.get(e);if(r)return r.toValue()}getIndex(e){return this.content[e]}set(e,r){return this.content[e]=this.refract(r),this}remove(e){const r=this.content.splice(e,1);return r.length?r[0]:null}map(e,r){return this.content.map(e,r)}flatMap(e,r){return this.map(e,r).reduce((n,s)=>n.concat(s),[])}compactMap(e,r){const n=[];return this.forEach(s=>{const i=e.bind(r)(s);i&&n.push(i)}),n}filter(e,r){return new R2(this.content.filter(e,r))}reject(e,r){return this.filter(Bue(e),r)}reduce(e,r){let n,s;r!==void 0?(n=0,s=this.refract(r)):(n=1,s=this.primitive()==="object"?this.first.value:this.first);for(let i=n;i<this.length;i+=1){const o=this.content[i];this.primitive()==="object"?s=this.refract(e(s,o.value,o.key,o,this)):s=this.refract(e(s,o,i,this))}return s}forEach(e,r){this.content.forEach((n,s)=>{e.bind(r)(n,this.refract(s))})}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,r){const n=r||{},s=!!n.recursive,i=n.results===void 0?[]:n.results;return this.forEach((o,a,c)=>{s&&o.findElements!==void 0&&o.findElements(e,{results:i,recursive:s}),e(o,a,c)&&i.push(o)}),i}find(e){return new R2(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find(r=>r.element===e)}findByClass(e){return this.find(r=>r.classes.includes(e))}getById(e){return this.find(r=>r.id.toValue()===e).first}includes(e){return this.content.some(r=>r.equals(e))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map(r=>e(r),this).reduce((r,n)=>r.concat(n),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,r){return this.content.reduce(e,r)}get length(){return this.content.length}get isEmpty(){return this.content.length===0}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}};Mc.empty=function(){return new this};Mc["fantasy-land/empty"]=Mc.empty;typeof Symbol<"u"&&(Mc.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()});var FI=Mc;const Uue=Vh,Vue=Hs;var BI=class extends Vue{constructor(e,r,n,s){super(new Uue,n,s),this.element="member",this.key=e,this.value=r}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}};const que=qh,zue=zh;let Jue=class LI extends zue{map(e,r){return this.elements.map(n=>e.bind(r)(n.value,n.key,n))}filter(e,r){return new LI(this.elements.filter(n=>e.bind(r)(n.value,n.key,n)))}reject(e,r){return this.filter(que(e.bind(r)))}forEach(e,r){return this.elements.forEach((n,s)=>{e.bind(r)(n.value,n.key,n,s)})}keys(){return this.map((e,r)=>r.toValue())}values(){return this.map(e=>e.toValue())}};var UI=Jue;const Wue=qh,Hue=Dr,Kue=FI,Gue=BI,Yue=UI;let Xue=class extends Kue{constructor(e,r,n){super(e||[],r,n),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce((e,r)=>(e[r.key.toValue()]=r.value?r.value.toValue():void 0,e),{})}get(e){const r=this.getMember(e);if(r)return r.value}getMember(e){if(e!==void 0)return this.content.find(r=>r.key.toValue()===e)}remove(e){let r=null;return this.content=this.content.filter(n=>n.key.toValue()===e?(r=n,!1):!0),r}getKey(e){const r=this.getMember(e);if(r)return r.key}set(e,r){if(Hue(e))return Object.keys(e).forEach(i=>{this.set(i,e[i])}),this;const n=e,s=this.getMember(n);return s?s.value=r:this.content.push(new Gue(n,r)),this}keys(){return this.content.map(e=>e.key.toValue())}values(){return this.content.map(e=>e.value.toValue())}hasKey(e){return this.content.some(r=>r.key.equals(e))}items(){return this.content.map(e=>[e.key.toValue(),e.value.toValue()])}map(e,r){return this.content.map(n=>e.bind(r)(n.value,n.key,n))}compactMap(e,r){const n=[];return this.forEach((s,i,o)=>{const a=e.bind(r)(s,i,o);a&&n.push(a)}),n}filter(e,r){return new Yue(this.content).filter(e,r)}reject(e,r){return this.filter(Wue(e),r)}forEach(e,r){return this.content.forEach(n=>e.bind(r)(n.value,n.key,n))}};var Zue=Xue;const Que=Hs;var epe=class extends Que{constructor(e,r,n){super(e||[],r,n),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}};const tpe=Hs;var rpe=class extends tpe{constructor(e,r,n){super(e||[],r,n),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}};const La=Hs,VI=Pue,qI=jue,zI=Mue,JI=Fue,WI=FI,HI=BI,bE=Zue,npe=epe,KI=rpe,GI=zh,spe=UI,ipe=Vh;function Jh(t){return t instanceof La?t:typeof t=="string"?new qI(t):typeof t=="number"?new zI(t):typeof t=="boolean"?new JI(t):t===null?new VI:Array.isArray(t)?new WI(t.map(Jh)):typeof t=="object"?new bE(t):t}La.prototype.ObjectElement=bE;La.prototype.RefElement=KI;La.prototype.MemberElement=HI;La.prototype.refract=Jh;GI.prototype.refract=Jh;var YI={Element:La,NullElement:VI,StringElement:qI,NumberElement:zI,BooleanElement:JI,ArrayElement:WI,MemberElement:HI,ObjectElement:bE,LinkElement:npe,RefElement:KI,refract:Jh,ArraySlice:GI,ObjectSlice:spe,KeyValuePair:ipe};const ope=cue,ape=Y$,cpe=hue,lpe=vue,upe=Dr,XI=Eue,mr=YI;let ZI=class{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=mr.Element,this.KeyValuePair=mr.KeyValuePair,(!e||!e.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",mr.NullElement).register("string",mr.StringElement).register("number",mr.NumberElement).register("boolean",mr.BooleanElement).register("array",mr.ArrayElement).register("object",mr.ObjectElement).register("member",mr.MemberElement).register("ref",mr.RefElement).register("link",mr.LinkElement),this.detect(ope,mr.NullElement,!1).detect(ape,mr.StringElement,!1).detect(cpe,mr.NumberElement,!1).detect(lpe,mr.BooleanElement,!1).detect(Array.isArray,mr.ArrayElement,!1).detect(upe,mr.ObjectElement,!1),this}register(e,r){return this._elements=void 0,this.elementMap[e]=r,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,r,n){return(n===void 0?!0:n)?this.elementDetection.unshift([e,r]):this.elementDetection.push([e,r]),this}toElement(e){if(e instanceof this.Element)return e;let r;for(let n=0;n<this.elementDetection.length;n+=1){const s=this.elementDetection[n][0],i=this.elementDetection[n][1];if(s(e)){r=new i(e);break}}return r}getElementClass(e){const r=this.elementMap[e];return r===void 0?this.Element:r}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(e=>{const r=e[0].toUpperCase()+e.substr(1);this._elements[r]=this.elementMap[e]})),this._elements}get serialiser(){return new XI(this)}};XI.prototype.Namespace=ZI;var ppe=ZI;const fpe=ppe,nn=YI;var hpe=fpe,oa=Vh,Dc=nn.ArraySlice,lf=nn.ObjectSlice,dpe=nn.Element,yo=nn.StringElement,mpe=nn.NumberElement,to=nn.BooleanElement,gpe=nn.NullElement,Ft=nn.ArrayElement,Ne=nn.ObjectElement,Rl=nn.MemberElement,Xi=nn.RefElement,ype=nn.LinkElement,vo=nn.refract;class QI extends yo{constructor(e,r,n){super(e,r,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class eR extends yo{constructor(e,r,n){super(e,r,n),this.element="comment"}}class Ks extends Ft{constructor(e,r,n){super(e,r,n),this.element="parseResult"}get api(){return this.children.filter(e=>e.classes.contains("api")).first}get results(){return this.children.filter(e=>e.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>e.element==="annotation")}get warnings(){return this.children.filter(e=>e.element==="annotation"&&e.classes.contains("warning"))}get errors(){return this.children.filter(e=>e.element==="annotation"&&e.classes.contains("error"))}get isEmpty(){return this.children.reject(e=>e.element==="annotation").isEmpty}replaceResult(e){const{result:r}=this;if(xi(r))return!1;const n=this.content.findIndex(s=>s===r);return n===-1?!1:(this.content[n]=e,!0)}}const vpe=(t,e)=>typeof e=="object"&&e!==null&&t in e&&typeof e[t]=="function",bpe=t=>typeof t=="object"&&t!=null&&"_storedElement"in t&&typeof t._storedElement=="string"&&"_content"in t,Epe=(t,e)=>typeof e=="object"&&e!==null&&"primitive"in e?typeof e.primitive=="function"&&e.primitive()===t:!1,Spe=(t,e)=>typeof e=="object"&&e!==null&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof Ft)&&e.classes.includes(t),ii=(t,e)=>typeof e=="object"&&e!==null&&"element"in e&&e.element===t,ke=t=>t({hasMethod:vpe,hasBasicElementProps:bpe,primitiveEq:Epe,isElementType:ii,hasClass:Spe}),Zt=ke(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof dpe||t(r)&&e(void 0,r)),Xe=ke(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof yo||t(r)&&e("string",r)),EE=ke(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof mpe||t(r)&&e("number",r)),SE=ke(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof gpe||t(r)&&e("null",r)),Pl=ke(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof to||t(r)&&e("boolean",r)),yt=ke(({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Ne||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n)),wr=ke(({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Ft&&!(n instanceof Ne)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n)),Kn=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Rl||t(n)&&e("member",n)&&r(void 0,n)),tR=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ype||t(n)&&e("link",n)&&r(void 0,n)),rR=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xi||t(n)&&e("ref",n)&&r(void 0,n)),wpe=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof QI||t(n)&&e("annotation",n)&&r("array",n)),_pe=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof eR||t(n)&&e("comment",n)&&r("string",n)),nR=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ks||t(n)&&e("parseResult",n)&&r("array",n)),Zi=t=>ii("object",t)||ii("array",t)||ii("boolean",t)||ii("number",t)||ii("string",t)||ii("null",t)||ii("member",t),Ua=t=>Zt(t)?Number.isInteger(t.startPositionRow)&&Number.isInteger(t.startPositionColumn)&&Number.isInteger(t.startIndex)&&Number.isInteger(t.endPositionRow)&&Number.isInteger(t.endPositionColumn)&&Number.isInteger(t.endIndex):!1,xpe=(t,e)=>{if(t.length===0)return!0;const r=e.attributes.get("symbols");return wr(r)?rE(Lh(r.toValue()),t):!1},Sa=(t,e)=>t.length===0?!0:rE(Lh(e.classes.toValue()),t),Ape=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:Ua,includesClasses:Sa,includesSymbols:xpe,isAnnotationElement:wpe,isArrayElement:wr,isBooleanElement:Pl,isCommentElement:_pe,isElement:Zt,isLinkElement:tR,isMemberElement:Kn,isNullElement:SE,isNumberElement:EE,isObjectElement:yt,isParseResultElement:nR,isPrimitiveElement:Zi,isRefElement:rR,isStringElement:Xe},Symbol.toStringTag,{value:"Module"}));class sR extends hpe{constructor(){super(),this.register("annotation",QI),this.register("comment",eR),this.register("parseResult",Ks)}}const iR=new sR,Gs=t=>{const e=new sR;return Wn(t)&&e.use(t),e},Ope=()=>({predicates:{...Ape},namespace:iR}),Wh=(t,e,r)=>{const n=t[e];if(n!=null){if(!r&&typeof n=="function")return n;const s=r?n.leave:n.enter;if(typeof s=="function")return s}else{const s=r?t.leave:t.enter;if(s!=null){if(typeof s=="function")return s;const i=s[e];if(typeof i=="function")return i}}return null},ht={},kl=t=>t==null?void 0:t.type,oR=t=>typeof kl(t)=="string",wE=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Hh=(t,{visitFnGetter:e=Wh,nodeTypeGetter:r=kl,breakSymbol:n=ht,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{enter(l,p,f,m,d,g){let v=l,y=!1;const E={...g,replaceWith(S,w){g.replaceWith(S,w),v=S}};for(let S=0;S<t.length;S+=1)if(c[S]===a){const w=e(t[S],r(v),!1);if(typeof w=="function"){const x=w.call(t[S],v,p,f,m,d,E);if(typeof(x==null?void 0:x.then)=="function")throw new vs("Async visitor not supported in sync mode",{visitor:t[S],visitFn:w});if(x===i)c[S]=v;else if(x===n)c[S]=n;else{if(x===s)return x;if(x!==void 0)if(o)v=x,y=!0;else return x}}}return y?v:void 0},leave(l,p,f,m,d,g){let v=l;const y={...g,replaceWith(E,S){g.replaceWith(E,S),v=E}};for(let E=0;E<t.length;E+=1)if(c[E]===a){const S=e(t[E],r(v),!0);if(typeof S=="function"){const w=S.call(t[E],v,p,f,m,d,y);if(typeof(w==null?void 0:w.then)=="function")throw new vs("Async visitor not supported in sync mode",{visitor:t[E],visitFn:S});if(w===n)c[E]=n;else if(w!==void 0&&w!==i)return w}}else c[E]===v&&(c[E]=a)}}},Cpe=(t,{visitFnGetter:e=Wh,nodeTypeGetter:r=kl,breakSymbol:n=ht,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{async enter(l,p,f,m,d,g){let v=l,y=!1;const E={...g,replaceWith(S,w){g.replaceWith(S,w),v=S}};for(let S=0;S<t.length;S+=1)if(c[S]===a){const w=e(t[S],r(v),!1);if(typeof w=="function"){const x=await w.call(t[S],v,p,f,m,d,E);if(x===i)c[S]=v;else if(x===n)c[S]=n;else{if(x===s)return x;if(x!==void 0)if(o)v=x,y=!0;else return x}}}return y?v:void 0},async leave(l,p,f,m,d,g){let v=l;const y={...g,replaceWith(E,S){g.replaceWith(E,S),v=E}};for(let E=0;E<t.length;E+=1)if(c[E]===a){const S=e(t[E],r(v),!0);if(typeof S=="function"){const w=await S.call(t[E],v,p,f,m,d,y);if(w===n)c[E]=n;else if(w!==void 0&&w!==i)return w}}else c[E]===v&&(c[E]=a)}}};Hh[Symbol.for("nodejs.util.promisify.custom")]=Cpe;const _E=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=ht,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Wh,nodeTypeGetter:c=kl,nodePredicate:l=oR,nodeCloneFn:p=wE,detectCycles:f=!0,detectCyclesCallback:m=null}={})=>{const d=r||{};let g,v=Array.isArray(t),y=[t],E=-1,S,w=[],x=t;const I=[],T=[];do{E+=1;const P=E===y.length;let Z;const V=P&&w.length!==0;if(P){if(Z=T.length===0?void 0:I.pop(),x=S,S=T.pop(),V)if(v){x=x.slice();let F=0;for(const[Q,se]of w){const re=Q-F;se===i?(x.splice(re,1),F+=1):x[re]=se}}else{x=p(x);for(const[F,Q]of w)x[F]=Q}E=g.index,y=g.keys,w=g.edits,v=g.inArray,g=g.prev}else if(S!==i&&S!==void 0){if(Z=v?E:y[E],x=S[Z],x===i||x===void 0)continue;I.push(Z)}let J;if(!Array.isArray(x)){var D;if(!l(x))throw new vs(`Invalid AST Node: ${String(x)}`,{node:x});if(f&&T.includes(x)){typeof m=="function"&&m(x,Z,S,I,T),I.pop();continue}const F=a(e,c(x),P);if(F){for(const[se,re]of Object.entries(n))e[se]=re;const Q={replaceWith(se,re){typeof re=="function"?re(se,x,Z,S,I,T):S&&(S[Z]=se),P||(x=se)}};J=F.call(e,x,Z,S,I,T,Q)}if(typeof((D=J)===null||D===void 0?void 0:D.then)=="function")throw new vs("Async visitor not supported in sync mode",{visitor:e,visitFn:F});if(J===s)break;if(J===o){if(!P){I.pop();continue}}else if(J!==void 0&&(w.push([Z,J]),!P))if(l(J))x=J;else{I.pop();continue}}if(J===void 0&&V&&w.push([Z,x]),!P){var B;g={inArray:v,index:E,keys:y,edits:w,prev:g},v=Array.isArray(x),y=v?x:(B=d[c(x)])!==null&&B!==void 0?B:[],E=-1,w=[],S!==i&&S!==void 0&&T.push(S),S=x}}while(g!==void 0);return w.length!==0?w[w.length-1][1]:t};_E[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=ht,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Wh,nodeTypeGetter:c=kl,nodePredicate:l=oR,nodeCloneFn:p=wE,detectCycles:f=!0,detectCyclesCallback:m=null}={})=>{const d=r||{};let g,v=Array.isArray(t),y=[t],E=-1,S,w=[],x=t;const I=[],T=[];do{E+=1;const B=E===y.length;let P;const Z=B&&w.length!==0;if(B){if(P=T.length===0?void 0:I.pop(),x=S,S=T.pop(),Z)if(v){x=x.slice();let J=0;for(const[F,Q]of w){const se=F-J;Q===i?(x.splice(se,1),J+=1):x[se]=Q}}else{x=p(x);for(const[J,F]of w)x[J]=F}E=g.index,y=g.keys,w=g.edits,v=g.inArray,g=g.prev}else if(S!==i&&S!==void 0){if(P=v?E:y[E],x=S[P],x===i||x===void 0)continue;I.push(P)}let V;if(!Array.isArray(x)){if(!l(x))throw new vs(`Invalid AST Node: ${String(x)}`,{node:x});if(f&&T.includes(x)){typeof m=="function"&&m(x,P,S,I,T),I.pop();continue}const J=a(e,c(x),B);if(J){for(const[Q,se]of Object.entries(n))e[Q]=se;const F={replaceWith(Q,se){typeof se=="function"?se(Q,x,P,S,I,T):S&&(S[P]=Q),B||(x=Q)}};V=await J.call(e,x,P,S,I,T,F)}if(V===s)break;if(V===o){if(!B){I.pop();continue}}else if(V!==void 0&&(w.push([P,V]),!B))if(l(V))x=V;else{I.pop();continue}}if(V===void 0&&Z&&w.push([P,x]),!B){var D;g={inArray:v,index:E,keys:y,edits:w,prev:g},v=Array.isArray(x),y=v?x:(D=d[c(x)])!==null&&D!==void 0?D:[],E=-1,w=[],S!==i&&S!==void 0&&T.push(S),S=x}}while(g!==void 0);return w.length!==0?w[w.length-1][1]:t};class aR extends vs{constructor(r,n){super(r,n);H(this,"value");typeof n<"u"&&(this.value=n.value)}}class $pe extends aR{}class Tpe extends aR{}const Ai=(t,e)=>{const r=va(t,e);return cle(n=>{if(Wn(n)&&_c("$ref",n)&&hle(go,"$ref",n)){const s=pr(["$ref"],n),i=CI("#/",s);return pr(i.split("/"),r)}return Wn(n)?Ai(n,r):n},t)},xE=(t,e)=>(t.startPositionRow=e==null?void 0:e.startPositionRow,t.startPositionColumn=e==null?void 0:e.startPositionColumn,t.startIndex=e==null?void 0:e.startIndex,t.endPositionRow=e==null?void 0:e.endPositionRow,t.endPositionColumn=e==null?void 0:e.endPositionColumn,t.endIndex=e==null?void 0:e.endIndex,t),Le=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof oa){const{key:s,value:i}=t,o=Zt(s)?Le(s,n):s,a=Zt(i)?Le(i,n):i,c=new oa(o,a);return r.set(t,c),c}if(t instanceof lf){const s=a=>Le(a,n),i=[...t].map(s),o=new lf(i);return r.set(t,o),o}if(t instanceof Dc){const s=a=>Le(a,n),i=[...t].map(s),o=new Dc(i);return r.set(t,o),o}if(Zt(t)){const s=ur(t);if(r.set(t,s),t.content)if(Zt(t.content))s.content=Le(t.content,n);else if(t.content instanceof oa)s.content=Le(t.content,n);else if(Array.isArray(t.content)){const i=o=>Le(o,n);s.content=t.content.map(i)}else s.content=t.content;else s.content=t.content;return s}throw new $pe("Value provided to cloneDeep function couldn't be cloned",{value:t})};Le.safe=t=>{try{return Le(t)}catch{return t}};const cR=t=>{const{key:e,value:r}=t;return new oa(e,r)},Ipe=t=>{const e=[...t];return new Dc(e)},Rpe=t=>{const e=[...t];return new lf(e)},lR=t=>{const e=new t.constructor;if(e.element=t.element,Ua(t)&&xE(e,t),t.meta.length>0&&(e._meta=Le(t.meta)),t.attributes.length>0&&(e._attributes=Le(t.attributes)),Zt(t.content)){const r=t.content;e.content=lR(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof oa?e.content=cR(t.content):e.content=t.content;return e},ur=t=>{if(t instanceof oa)return cR(t);if(t instanceof lf)return Rpe(t);if(t instanceof Dc)return Ipe(t);if(Zt(t))return lR(t);throw new Tpe("Value provided to cloneShallow function couldn't be cloned",{value:t})};ur.safe=t=>{try{return ur(t)}catch{return t}};const jl=t=>yt(t)?"ObjectElement":wr(t)?"ArrayElement":Kn(t)?"MemberElement":Xe(t)?"StringElement":Pl(t)?"BooleanElement":EE(t)?"NumberElement":SE(t)?"NullElement":tR(t)?"LinkElement":rR(t)?"RefElement":void 0,uR=t=>Zt(t)?ur(t):wE(t),pR=_r(jl,go),xs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class fR{constructor({predicate:e=eE,returnOnTrue:r,returnOnFalse:n}={}){H(this,"result");H(this,"predicate");H(this,"returnOnTrue");H(this,"returnOnFalse");this.result=[],this.predicate=e,this.returnOnTrue=r,this.returnOnFalse=n}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const rr=(t,e,{keyMap:r=xs,...n}={})=>_E(t,e,{keyMap:r,nodeTypeGetter:jl,nodePredicate:pR,nodeCloneFn:uR,...n});rr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=xs,...n}={})=>_E[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:jl,nodePredicate:pR,nodeCloneFn:uR,...n});const hR={toolboxCreator:Ope,visitorOptions:{nodeTypeGetter:jl,exposeEdits:!0}},Ys=(t,e,r={})=>{if(e.length===0)return t;const n=Dh(hR,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=e.map(p=>p(o)),c=Hh(a.map(af({},"visitor")),{...i});a.forEach(Nc(["pre"],[]));const l=rr(t,c,i);return a.forEach(Nc(["post"],[])),l},Ppe=async(t,e,r={})=>{if(e.length===0)return t;const n=Dh(hR,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=e.map(m=>m(o)),c=Hh[Symbol.for("nodejs.util.promisify.custom")],l=rr[Symbol.for("nodejs.util.promisify.custom")],p=c(a.map(af({},"visitor")),{...i});await Promise.allSettled(a.map(Nc(["pre"],[])));const f=await l(t,p,i);return await Promise.allSettled(a.map(Nc(["post"],[]))),f};Ys[Symbol.for("nodejs.util.promisify.custom")]=Ppe;var dR={exports:{}};(function(t){var e=(()=>{var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,s=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,c=(x,I,T)=>I in x?r(x,I,{enumerable:!0,configurable:!0,writable:!0,value:T}):x[I]=T,l=(x,I)=>{for(var T in I||(I={}))o.call(I,T)&&c(x,T,I[T]);if(i)for(var T of i(I))a.call(I,T)&&c(x,T,I[T]);return x},p=(x,I)=>{for(var T in I)r(x,T,{get:I[T],enumerable:!0})},f=(x,I,T,D)=>{if(I&&typeof I=="object"||typeof I=="function")for(let B of s(I))!o.call(x,B)&&B!==T&&r(x,B,{get:()=>I[B],enumerable:!(D=n(I,B))||D.enumerable});return x},m=x=>f(r({},"__esModule",{value:!0}),x),d=(x,I,T)=>c(x,typeof I!="symbol"?I+"":I,T),g={};p(g,{DEFAULT_OPTIONS:()=>E,DEFAULT_UUID_LENGTH:()=>y,default:()=>w});var v="5.3.2",y=6,E={dictionary:"alphanum",shuffle:!0,debug:!1,length:y,counter:0},S=class{constructor(I={}){d(this,"counter"),d(this,"debug"),d(this,"dict"),d(this,"version"),d(this,"dictIndex",0),d(this,"dictRange",[]),d(this,"lowerBound",0),d(this,"upperBound",0),d(this,"dictLength",0),d(this,"uuidLength"),d(this,"_digit_first_ascii",48),d(this,"_digit_last_ascii",58),d(this,"_alpha_lower_first_ascii",97),d(this,"_alpha_lower_last_ascii",123),d(this,"_hex_last_ascii",103),d(this,"_alpha_upper_first_ascii",65),d(this,"_alpha_upper_last_ascii",91),d(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),d(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),d(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),d(this,"log",(...V)=>{const J=[...V];if(J[0]="[short-unique-id] ".concat(V[0]),this.debug===!0&&typeof console<"u"&&console!==null){console.log(...J);return}}),d(this,"_normalizeDictionary",(V,J)=>{let F;if(V&&Array.isArray(V)&&V.length>1)F=V;else{F=[],this.dictIndex=0;const Q="_".concat(V,"_dict_ranges"),se=this._dict_ranges[Q];let re=0;for(const[,ue]of Object.entries(se)){const[oe,G]=ue;re+=Math.abs(G-oe)}F=new Array(re);let ce=0;for(const[,ue]of Object.entries(se)){this.dictRange=ue,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const oe=this.lowerBound<=this.upperBound,G=this.lowerBound,ie=this.upperBound;if(oe)for(let pe=G;pe<ie;pe++)F[ce++]=String.fromCharCode(pe),this.dictIndex=pe;else for(let pe=G;pe>ie;pe--)F[ce++]=String.fromCharCode(pe),this.dictIndex=pe}F.length=ce}if(J){const Q=F.length;for(let se=Q-1;se>0;se--){const re=Math.floor(Math.random()*(se+1));[F[se],F[re]]=[F[re],F[se]]}}return F}),d(this,"setDictionary",(V,J)=>{this.dict=this._normalizeDictionary(V,J),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,"seq",()=>this.sequentialUUID()),d(this,"sequentialUUID",()=>{const V=this.dictLength,J=this.dict;let F=this.counter;const Q=[];do{const re=F%V;F=Math.trunc(F/V),Q.push(J[re])}while(F!==0);const se=Q.join("");return this.counter+=1,se}),d(this,"rnd",(V=this.uuidLength||y)=>this.randomUUID(V)),d(this,"randomUUID",(V=this.uuidLength||y)=>{if(V===null||typeof V>"u"||V<1)throw new Error("Invalid UUID Length Provided");const J=new Array(V),F=this.dictLength,Q=this.dict;for(let se=0;se<V;se++){const re=Math.floor(Math.random()*F);J[se]=Q[re]}return J.join("")}),d(this,"fmt",(V,J)=>this.formattedUUID(V,J)),d(this,"formattedUUID",(V,J)=>{const F={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return V.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,se=>{const re=se.slice(0,2),ce=Number.parseInt(se.slice(2),10);return re==="$s"?F[re]().padStart(ce,"0"):re==="$t"&&J?F[re](ce,J):F[re](ce)})}),d(this,"availableUUIDs",(V=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**V).toFixed(0))),d(this,"_collisionCache",new Map),d(this,"approxMaxBeforeCollision",(V=this.availableUUIDs(this.uuidLength))=>{const J=V,F=this._collisionCache.get(J);if(F!==void 0)return F;const Q=Number.parseFloat(Math.sqrt(Math.PI/2*V).toFixed(20));return this._collisionCache.set(J,Q),Q}),d(this,"collisionProbability",(V=this.availableUUIDs(this.uuidLength),J=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(V)/this.availableUUIDs(J)).toFixed(20))),d(this,"uniqueness",(V=this.availableUUIDs(this.uuidLength))=>{const J=Number.parseFloat((1-this.approxMaxBeforeCollision(V)/V).toFixed(20));return J>1?1:J<0?0:J}),d(this,"getVersion",()=>this.version),d(this,"stamp",(V,J)=>{const F=Math.floor(+(J||new Date)/1e3).toString(16);if(typeof V=="number"&&V===0)return F;if(typeof V!="number"||V<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join(`
|
|
25
|
+
`));const Q=V-9,se=Math.round(Math.random()*(Q>15?15:Q)),re=this.randomUUID(Q);return"".concat(re.substring(0,se)).concat(F).concat(re.substring(se)).concat(se.toString(16))}),d(this,"parseStamp",(V,J)=>{if(J&&!/t0|t[1-9]\d{1,}/.test(J))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const F=J?J.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,se=>{const re={$r:oe=>[...Array(oe)].map(()=>"r").join(""),$s:oe=>[...Array(oe)].map(()=>"s").join(""),$t:oe=>[...Array(oe)].map(()=>"t").join("")},ce=se.slice(0,2),ue=Number.parseInt(se.slice(2),10);return re[ce](ue)}).replace(/^(.*?)(t{8,})(.*)$/g,(se,re,ce)=>V.substring(re.length,re.length+ce.length)):V;if(F.length===8)return new Date(Number.parseInt(F,16)*1e3);if(F.length<10)throw new Error("Stamp length invalid");const Q=Number.parseInt(F.substring(F.length-1),16);return new Date(Number.parseInt(F.substring(Q,Q+8),16)*1e3)}),d(this,"setCounter",V=>{this.counter=V}),d(this,"validate",(V,J)=>{const F=J?this._normalizeDictionary(J):this.dict;return V.split("").every(Q=>F.includes(Q))});const T=l(l({},E),I);this.counter=0,this.debug=!1,this.dict=[],this.version=v;const{dictionary:D,shuffle:B,length:P,counter:Z}=T;this.uuidLength=P,this.setDictionary(D,B),this.setCounter(Z),this.debug=T.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};d(S,"default",S);var w=S;return m(g)})();t.exports=e.default,typeof window<"u"&&(e=e.default)})(dR);var kpe=dR.exports;const jpe=Ze(kpe);class Npe extends vs{constructor(r,n){super(r,n);H(this,"value");typeof n<"u"&&(this.value=n.value)}}class AE{constructor({length:e=6}={}){H(this,"uuid");H(this,"identityMap");this.uuid=new jpe({length:e}),this.identityMap=new WeakMap}identify(e){if(!Zt(e))throw new Npe("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Xe(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const r=new yo(this.generateId());return this.identityMap.set(e,r),r}forget(e){return this.identityMap.has(e)?(this.identityMap.delete(e),!0):!1}generateId(){return this.uuid.randomUUID()}}new AE;class Mpe extends Array{constructor(){super(...arguments);H(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new fg("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new fg("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new fg("latest method in MediaTypes class is not yet implemented.")}}const Dpe=(t,e)=>{const r=new fR({predicate:t});return rr(e,r),new Dc(r.result)},mR=(t,e)=>{const r=new fR({predicate:t,returnOnTrue:ht});return rr(e,r),mI(void 0,[0],r.result)},xp=(t,e=new WeakMap)=>(Kn(t)?(e.set(t.key,t),xp(t.key,e),e.set(t.value,t),xp(t.value,e)):t.children.forEach(r=>{e.set(r,t),xp(r,e)}),e),Fpe=(t,e,r)=>{const n=r.get(t);Kn(n)&&(n.key===t&&(n.key=e,r.delete(t),r.set(e,n)),n.value===t&&(n.value=e,r.delete(t),r.set(e,n)))},Bpe=(t,e,r)=>{const n=r.get(t);yt(n)&&(n.content=n.map((s,i,o)=>o===t?(r.delete(t),r.set(e,n),e):o))},Lpe=(t,e,r)=>{const n=r.get(t);wr(n)&&(n.content=n.map(s=>s===t?(r.delete(t),r.set(e,n),e):s))};class Upe{constructor({element:e}){H(this,"element");H(this,"edges");this.element=e}transclude(e,r){var n;if(e===this.element)return r;if(e===r)return this.element;this.edges=(n=this.edges)!==null&&n!==void 0?n:xp(this.element);const s=this.edges.get(e);if(!xi(s))return yt(s)?Bpe(e,r,this.edges):wr(s)?Lpe(e,r,this.edges):Kn(s)&&Fpe(e,r,this.edges),this.element}}const Vpe=(t,e,r)=>new Upe({element:r}).transclude(t,e),gR=(t,e=iR)=>{if(go(t))try{return e.fromRefract(JSON.parse(t))}catch{}return Wn(t)&&_c("element",t)?e.fromRefract(t):e.toElement(t)},yR=t=>typeof(t==null?void 0:t.type)=="string"?t.type:jl(t),vR={EphemeralObject:["content"],EphemeralArray:["content"],...xs},bR=(t,e,{keyMap:r=vR,...n}={})=>rr(t,e,{keyMap:r,nodeTypeGetter:yR,nodePredicate:Ws,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});bR[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=vR,...r}={})=>rr[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:yR,nodePredicate:Ws,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class qpe{constructor(e){H(this,"type","EphemeralArray");H(this,"content",[]);H(this,"reference");this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class zpe{constructor(e){H(this,"type","EphemeralObject");H(this,"content",[]);H(this,"reference");this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let Jpe=class{constructor(){H(this,"ObjectElement",{enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new zpe(e.content);return this.references.set(e,r),r}});H(this,"EphemeralObject",{leave:e=>e.toObject()});H(this,"MemberElement",{enter:e=>[e.key,e.value]});H(this,"ArrayElement",{enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new qpe(e.content);return this.references.set(e,r),r}});H(this,"EphemeralArray",{leave:e=>e.toArray()});H(this,"references",new WeakMap)}BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...r){var n;const s=r[3];return((n=s[s.length-1])===null||n===void 0?void 0:n.type)==="EphemeralObject"?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Xe(e.href)?e.href.toValue():""}};const we=t=>Zt(t)?Xe(t)||EE(t)||Pl(t)||SE(t)?t.toValue():bR(t,new Jpe):t,uf=t=>{const e=t.meta.length>0?Le(t.meta):void 0,r=t.attributes.length>0?Le(t.attributes):void 0;return new t.constructor(void 0,e,r)},pf=(t,e)=>e.clone&&e.isMergeableElement(t)?_n(uf(t),t,e):t,Wpe=(t,e)=>{if(typeof e.customMerge!="function")return _n;const r=e.customMerge(t,e);return typeof r=="function"?r:_n},Hpe=t=>typeof t.customMetaMerge!="function"?e=>Le(e):t.customMetaMerge,Kpe=t=>typeof t.customAttributesMerge!="function"?e=>Le(e):t.customAttributesMerge,Gpe=(t,e,r)=>t.concat(e)["fantasy-land/map"](n=>pf(n,r)),Ype=(t,e,r)=>{const n=yt(t)?uf(t):uf(e);return yt(t)&&t.forEach((s,i,o)=>{const a=ur(o);a.value=pf(s,r),n.content.push(a)}),e.forEach((s,i,o)=>{const a=we(i);let c;if(yt(t)&&t.hasKey(a)&&r.isMergeableElement(s)){const l=t.get(a);c=ur(o),c.value=Wpe(i,r)(l,s,r)}else c=ur(o),c.value=pf(s,r);n.remove(a),n.content.push(c)}),n},Xu={clone:!0,isMergeableElement:t=>yt(t)||wr(t),arrayElementMerge:Gpe,objectElementMerge:Ype,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},_n=(t,e,r)=>{var n,s,i;const o={...Xu,...r};o.isMergeableElement=(n=o.isMergeableElement)!==null&&n!==void 0?n:Xu.isMergeableElement,o.arrayElementMerge=(s=o.arrayElementMerge)!==null&&s!==void 0?s:Xu.arrayElementMerge,o.objectElementMerge=(i=o.objectElementMerge)!==null&&i!==void 0?i:Xu.objectElementMerge;const a=wr(e),c=wr(t);if(!(a===c))return pf(e,o);const p=a&&typeof o.arrayElementMerge=="function"?o.arrayElementMerge(t,e,o):o.objectElementMerge(t,e,o);return p.meta=Hpe(o)(t.meta,e.meta),p.attributes=Kpe(o)(t.attributes,e.attributes),p};_n.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return t.length===0?new Ne:t.reduce((r,n)=>_n(r,n,e),uf(t[0]))};class OE extends zt{}class ER extends OE{}const Xpe=async(t,e)=>{let r=t,n=!1;if(!nR(t)){const o=ur(t);o.classes.push("result"),r=new Ks([o]),n=!0}const s=new ba({uri:e.resolve.baseURI,parseResult:r,mediaType:e.parse.mediaType}),i=await yE("canDereference",[s,e],e.dereference.strategies);if(Il(i))throw new ER(s.uri);try{const{result:o}=await vE("dereference",[s,e],i);return n?o.get(0):o}catch(o){throw new OE(`Error while dereferencing file "${s.uri}"`,{cause:o})}};let Nl=class{constructor({name:e,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:s=[],mediaTypes:i=[]}){H(this,"name");H(this,"allowEmpty");H(this,"sourceMap");H(this,"fileExtensions");H(this,"mediaTypes");this.name=e,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=s,this.mediaTypes=i}};class Zpe{constructor({name:e}){H(this,"name");this.name=e}}class Qpe extends Zpe{constructor(r){const{name:n="http-resolver",timeout:s=5e3,redirects:i=5,withCredentials:o=!1}=r??{};super({name:n});H(this,"timeout");H(this,"redirects");H(this,"withCredentials");this.timeout=s,this.redirects=i,this.withCredentials=o}canRead(r){return gE(r.uri)}}class efe{constructor({name:e}){H(this,"name");this.name=e}}class tfe{constructor({name:e}){H(this,"name");this.name=e}}class mg extends Array{includesCycle(e){return this.filter(r=>r.has(e)).length>1}includes(e,r){return e instanceof Set?super.includes(e,r):this.some(n=>n.has(e))}findItem(e){for(const r of this)for(const n of r)if(Zt(n)&&e(n))return n}}let Ls=class{constructor({uri:e,depth:r=0,refSet:n,value:s}){H(this,"uri");H(this,"depth");H(this,"value");H(this,"refSet");H(this,"errors");this.uri=e,this.value=s,this.depth=r,this.refSet=n,this.errors=[]}};class SR extends zt{}class rfe extends SR{}class nfe extends zt{}class CE extends nfe{}class sfe extends SR{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}class aa extends OE{}class ife extends cf{}class Us extends Xy{}const ofe=async(t,e={})=>{const r=PI(RI,e);return Xpe(t,r)},{fetch:afe,Response:cfe,Headers:lfe,Request:ufe,FormData:pfe,File:ffe,Blob:hfe}=globalThis;typeof globalThis.fetch>"u"&&(globalThis.fetch=afe);typeof globalThis.Headers>"u"&&(globalThis.Headers=lfe);typeof globalThis.Request>"u"&&(globalThis.Request=ufe);typeof globalThis.Response>"u"&&(globalThis.Response=cfe);typeof globalThis.FormData>"u"&&(globalThis.FormData=pfe);typeof globalThis.File>"u"&&(globalThis.File=ffe);typeof globalThis.Blob>"u"&&(globalThis.Blob=hfe);function P2(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function dfe(t){if(Array.isArray(t))return t}function mfe(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gfe(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function yfe(t,e,r){return e&&gfe(t.prototype,e),t}function wR(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function vfe(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],s=!0,i=!1,o,a;try{for(r=r.call(t);!(s=(o=r.next()).done)&&(n.push(o.value),!(e&&n.length===e));s=!0);}catch(c){i=!0,a=c}finally{try{!s&&r.return!=null&&r.return()}finally{if(i)throw a}}return n}}function bfe(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Efe(t,e){return dfe(t)||vfe(t,e)||Sfe(t,e)||bfe()}function ca(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function Sfe(t,e){if(t){if(typeof t=="string")return P2(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return P2(t,e)}}var _R=function(t){throw TypeError(t)},xR=function(t,e,r){return e.has(t)||_R("Cannot "+r)},Ir=function(t,e,r){return xR(t,e,"read from private field"),r?r.call(t):e.get(t)},k2=function(t,e,r){return e.has(t)?_R("Cannot add the same private member more than once"):wR(e,WeakSet)?e.add(t):e.set(t,r)},gg=function(t,e,r,n){return xR(t,e,"write to private field"),e.set(t,r),r},Va=function(t){return Object.prototype.toString.call(t)},AR=function(t){return ArrayBuffer.isView(t)&&!wR(t,DataView)},wfe=function(t){return Va(t)==="[object Date]"},_fe=function(t){return Va(t)==="[object RegExp]"},xfe=function(t){return Va(t)==="[object Error]"},Afe=function(t){return Va(t)==="[object Boolean]"},Ofe=function(t){return Va(t)==="[object Number]"},Cfe=function(t){return Va(t)==="[object String]"},OR=Array.isArray,$fe=Object.getOwnPropertyDescriptor,Tfe=Object.prototype.propertyIsEnumerable,Ife=Object.getOwnPropertySymbols,Ap=Object.prototype.hasOwnProperty;function $E(t){for(var e=Object.keys(t),r=Ife(t),n=0;n<r.length;n++)Tfe.call(t,r[n])&&e.push(r[n]);return e}function Rfe(t,e){var r;return!(!((r=$fe(t,e))===null||r===void 0)&&r.writable)}function CR(t,e){if((typeof t>"u"?"undefined":ca(t))==="object"&&t!==null){var r;if(OR(t))r=[];else if(wfe(t))r=new Date(t.getTime?t.getTime():t);else if(_fe(t))r=new RegExp(t);else if(xfe(t))r={message:t.message};else if(Afe(t)||Ofe(t)||Cfe(t))r=Object(t);else{if(AR(t))return t.slice();r=Object.create(Object.getPrototypeOf(t))}var n=e.includeSymbols?$E:Object.keys,s=!0,i=!1,o=void 0;try{for(var a=n(t)[Symbol.iterator](),c;!(s=(c=a.next()).done);s=!0){var l=c.value;r[l]=t[l]}}catch(p){i=!0,o=p}finally{try{!s&&a.return!=null&&a.return()}finally{if(i)throw o}}return r}return t}var $R={includeSymbols:!1,immutable:!1};function j2(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:$R,n=[],s=[],i=!0,o=r.includeSymbols?$E:Object.keys,a=!!r.immutable;return function c(l){var p=a?CR(l,r):l,f={},m=!0,d={node:p,node_:l,path:[].concat(n),parent:s[s.length-1],parents:s,key:n[n.length-1],isRoot:n.length===0,level:n.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(J){var F=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.isRoot||(d.parent.node[d.key]=J),d.node=J,F&&(m=!1)},delete:function(J){delete d.parent.node[d.key],J&&(m=!1)},remove:function(J){OR(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],J&&(m=!1)},keys:null,before:function(J){f.before=J},after:function(J){f.after=J},pre:function(J){f.pre=J},post:function(J){f.post=J},stop:function(){i=!1},block:function(){m=!1}};if(!i)return d;function g(){if(ca(d.node)==="object"&&d.node!==null){(!d.keys||d.node_!==d.node)&&(d.keys=o(d.node)),d.isLeaf=d.keys.length===0;for(var V=0;V<s.length;V++)if(s[V].node_===l){d.circular=s[V];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}g();var v=e.call(d,d.node);if(v!==void 0&&d.update&&d.update(v),f.before&&f.before.call(d,d.node),!m)return d;if(ca(d.node)==="object"&&d.node!==null&&!d.circular){s.push(d),g();var y,E=!0,S=!1,w=void 0;try{for(var x=Object.entries((y=d.keys)!==null&&y!==void 0?y:[])[Symbol.iterator](),I;!(E=(I=x.next()).done);E=!0){var T=Efe(I.value,2),D=T[0],B=T[1],P;n.push(B),f.pre&&f.pre.call(d,d.node[B],B);var Z=c(d.node[B]);a&&Ap.call(d.node,B)&&!Rfe(d.node,B)&&(d.node[B]=Z.node),Z.isLast=!((P=d.keys)===null||P===void 0)&&P.length?+D===d.keys.length-1:!1,Z.isFirst=+D==0,f.post&&f.post.call(d,Z),n.pop()}}catch(V){S=!0,w=V}finally{try{!E&&x.return!=null&&x.return()}finally{if(S)throw w}}s.pop()}return f.after&&f.after.call(d,d.node),d}(t).node}var Lr,oi,As=function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:$R;mfe(this,t),k2(this,Lr),k2(this,oi),gg(this,Lr,e),gg(this,oi,r)}return yfe(t,[{key:"get",value:function(r){for(var n=Ir(this,Lr),s=0;n&&s<r.length;s++){var i=r[s];if(!Ap.call(n,i)||!Ir(this,oi).includeSymbols&&(typeof i>"u"?"undefined":ca(i))==="symbol")return;n=n[i]}return n}},{key:"has",value:function(r){for(var n=Ir(this,Lr),s=0;n&&s<r.length;s++){var i=r[s];if(!Ap.call(n,i)||!Ir(this,oi).includeSymbols&&(typeof i>"u"?"undefined":ca(i))==="symbol")return!1;n=n[i]}return!0}},{key:"set",value:function(r,n){var s=Ir(this,Lr),i=0;for(i=0;i<r.length-1;i++){var o=r[i];Ap.call(s,o)||(s[o]={}),s=s[o]}return s[r[i]]=n,n}},{key:"map",value:function(r){return j2(Ir(this,Lr),r,{immutable:!0,includeSymbols:!!Ir(this,oi).includeSymbols})}},{key:"forEach",value:function(r){return gg(this,Lr,j2(Ir(this,Lr),r,Ir(this,oi))),Ir(this,Lr)}},{key:"reduce",value:function(r,n){var s=arguments.length===1,i=s?Ir(this,Lr):n;return this.forEach(function(o){(!this.isRoot||!s)&&(i=r.call(this,i,o))}),i}},{key:"paths",value:function(){var r=[];return this.forEach(function(){r.push(this.path)}),r}},{key:"nodes",value:function(){var r=[];return this.forEach(function(){r.push(this.node)}),r}},{key:"clone",value:function(){var r=[],n=[],s=Ir(this,oi);return AR(Ir(this,Lr))?Ir(this,Lr).slice():function i(o){for(var a=0;a<r.length;a++)if(r[a]===o)return n[a];if((typeof o>"u"?"undefined":ca(o))==="object"&&o!==null){var c=CR(o,s);r.push(o),n.push(c);var l=s.includeSymbols?$E:Object.keys,p=!0,f=!1,m=void 0;try{for(var d=l(o)[Symbol.iterator](),g;!(p=(g=d.next()).done);p=!0){var v=g.value;c[v]=i(o[v])}}catch(y){f=!0,m=y}finally{try{!p&&d.return!=null&&d.return()}finally{if(f)throw m}}return r.pop(),n.pop(),c}return o}(Ir(this,Lr))}}]),t}();Lr=new WeakMap;oi=new WeakMap;var Os=function(t,e){return new As(t,e)};Os.get=function(t,e,r){return new As(t,r).get(e)};Os.set=function(t,e,r,n){return new As(t,n).set(e,r)};Os.has=function(t,e,r){return new As(t,r).has(e)};Os.map=function(t,e,r){return new As(t,r).map(e)};Os.forEach=function(t,e,r){return new As(t,r).forEach(e)};Os.reduce=function(t,e,r,n){return new As(t,n).reduce(e,r)};Os.paths=function(t,e){return new As(t,e).paths()};Os.nodes=function(t,e){return new As(t,e).nodes()};Os.clone=function(t,e){return new As(t,e).clone()};var Pfe=Os;const TR="application/json, application/yaml",ff="https://swagger.io",kfe=Object.freeze({url:"/"}),IR=3e3,jfe=["properties"],Nfe=["properties"],Mfe=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Dfe=["schema/example","items/example"];function RR(t){const e=t[t.length-1],r=t[t.length-2],n=t.join("/");return jfe.indexOf(e)>-1&&Nfe.indexOf(r)===-1||Mfe.indexOf(n)>-1||Dfe.some(s=>n.indexOf(s)>-1)}function Ffe(t,e,{specmap:r,getBaseUrlForNodePath:n=i=>r.getContext([...e,...i]).baseDoc,targetKeys:s=["$ref","$$ref"]}={}){const i=[];return Pfe(t).forEach(function(){if(s.includes(this.key)&&typeof this.node=="string"){const a=this.path,c=e.concat(this.path),l=Qy(this.node,n(a));i.push(r.replace(c,l))}}),i}function Qy(t,e){const[r,n]=t.split("#"),s=e??"",i=r??"";let o;if(gE(s))o=Er(s,i);else{const a=Er(ff,s),l=Er(a,i).replace(ff,"");o=i.startsWith("/")?l:l.substring(1)}return n?`${o}#${n}`:o}const Bfe=/^([a-z]+:\/\/|\/\/)/i;class wa extends vs{}const Fs={},N2=new WeakMap,Lfe=[t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="examples",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="responses"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[3]==="requestBody"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="examples"&&t[6]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="examples"&&t[7]==="value",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="example",t=>t[0]==="paths"&&t[2]==="parameters"&&t[4]==="content"&&t[6]==="examples"&&t[8]==="value",t=>t[0]==="paths"&&t[3]==="parameters"&&t[4]==="content"&&t[7]==="example",t=>t[0]==="paths"&&t[3]==="parameters"&&t[5]==="content"&&t[7]==="examples"&&t[9]==="value"],Ufe=t=>Lfe.some(e=>e(t)),Vfe={key:"$ref",plugin:(t,e,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(RR(i)||Ufe(i))return;const{baseDoc:o}=n.getContext(r);if(typeof t!="string")return new wa("$ref: must be a string (JSON-Ref)",{$ref:t,baseDoc:o,fullPath:r});const a=kR(t),c=a[0],l=a[1]||"";let p;try{p=o||c?PR(c,o):null}catch(v){return ev(v,{pointer:l,$ref:t,basePath:p,fullPath:r})}let f,m;if(Hfe(l,p,i,n)&&!s.useCircularStructures){const v=Qy(t,p);return t===v?null:_t.replace(r,v)}if(p==null?(m=IE(l),f=n.get(m),typeof f>"u"&&(f=new wa(`Could not resolve reference: ${t}`,{pointer:l,$ref:t,baseDoc:o,fullPath:r}))):(f=jR(p,l),f.__value!=null?f=f.__value:f=f.catch(v=>{throw ev(v,{pointer:l,$ref:t,baseDoc:o,fullPath:r})})),f instanceof Error)return[_t.remove(r),f];const d=Qy(t,p),g=_t.replace(i,f,{$$ref:d});if(p&&p!==o)return[g,_t.context(i,{baseDoc:p})];try{if(!Kfe(n.state,g)||s.useCircularStructures)return g}catch{return null}}},TE=Object.assign(Vfe,{docCache:Fs,absoluteify:PR,clearCache:qfe,JSONRefError:wa,wrapError:ev,getDoc:NR,split:kR,extractFromDoc:jR,fetchJSON:zfe,extract:tv,jsonPointerToArray:IE,unescapeJsonPointerToken:MR});function PR(t,e){if(!Bfe.test(t)){if(!e)throw new wa(`Tried to resolve a relative URL, without having a basePath. path: '${t}' basePath: '${e}'`);return Er(e,t)}return t}function ev(t,e){let r;return t&&t.response&&t.response.body?r=`${t.response.body.code} ${t.response.body.message}`:r=t.message,new wa(`Could not resolve reference: ${r}`,{...e,cause:t})}function kR(t){return(t+"").split("#")}function jR(t,e){const r=Fs[t];if(r&&!_t.isPromise(r))try{const n=tv(e,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return NR(t).then(n=>tv(e,n))}function qfe(t){typeof t<"u"?delete Fs[t]:Object.keys(Fs).forEach(e=>{delete Fs[e]})}function NR(t){const e=Fs[t];return e?_t.isPromise(e)?e:Promise.resolve(e):(Fs[t]=TE.fetchJSON(t).then(r=>(Fs[t]=r,r)),Fs[t])}function zfe(t){return fetch(t,{headers:{Accept:TR},loadSpec:!0}).then(e=>e.text()).then(e=>xn.load(e))}function tv(t,e){const r=IE(t);if(r.length<1)return e;const n=_t.getIn(e,r);if(typeof n>"u")throw new wa(`Could not resolve pointer: ${t} does not exist in document`,{pointer:t});return n}function IE(t){if(typeof t!="string")throw new TypeError(`Expected a string, got a ${typeof t}`);return t[0]==="/"&&(t=t.substr(1)),t===""?[]:t.split("/").map(MR)}function MR(t){return typeof t!="string"?t:new URLSearchParams(`=${t.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function DR(t){return new URLSearchParams([["",t.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function Jfe(t){return t.length===0?"":`/${t.map(DR).join("/")}`}const Wfe=t=>!t||t==="/"||t==="#";function yg(t,e){if(Wfe(e))return!0;const r=t.charAt(e.length),n=e.slice(-1);return t.indexOf(e)===0&&(!r||r==="/"||r==="#")&&n!=="#"}function Hfe(t,e,r,n){let s=N2.get(n);s||(s={},N2.set(n,s));const i=Jfe(r),o=`${e||"<specmap-base>"}#${t}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(e===c&&yg(a,t))return!0;let l="";if(r.some(f=>(l=`${l}/${DR(f)}`,s[l]&&s[l].some(m=>yg(m,o)||yg(o,m)))))return!0;s[a]=(s[a]||[]).concat(o)}function Kfe(t,e){const r=[t];return e.path.reduce((s,i)=>(r.push(s[i]),s[i]),t),n(e.value);function n(s){return _t.isObject(s)&&(r.indexOf(s)>=0||Object.keys(s).some(i=>n(s[i])))}}const Gfe={key:"allOf",plugin:(t,e,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(RR(i))return;if(!Array.isArray(t)){const l=new TypeError("allOf must be an array");return l.fullPath=r,l}let o=!1,a=s.value;if(i.forEach(l=>{a&&(a=a[l])}),a={...a},Object.keys(a).length===0)return;delete a.allOf;const c=[];return c.push(n.replace(i,{})),t.forEach((l,p)=>{if(!n.isObject(l)){if(o)return null;o=!0;const d=new TypeError("Elements in allOf must be objects");return d.fullPath=r,c.push(d)}c.push(n.mergeDeep(i,l));const f=r.slice(0,-1),m=Ffe(l,f,{getBaseUrlForNodePath:d=>n.getContext([...r,p,...d]).baseDoc,specmap:n});c.push(...m)}),a.example&&c.push(n.remove([].concat(i,"example"))),c.push(n.mergeDeep(i,a)),a.$$ref||c.push(n.remove([].concat(i,"$$ref"))),c}},Yfe={key:"parameters",plugin:(t,e,r,n)=>{if(Array.isArray(t)&&t.length){const s=Object.assign([],t),i=r.slice(0,-1),o={..._t.getIn(n.spec,i)};for(let a=0;a<t.length;a+=1){const c=t[a];try{s[a].default=n.parameterMacro(o,c)}catch(l){const p=new Error(l);return p.fullPath=r,p}}return _t.replace(r,s)}return _t.replace(r,t)}},Xfe={key:"properties",plugin:(t,e,r,n)=>{const s={...t};for(const o in t)try{s[o].default=n.modelPropertyMacro(s[o])}catch(a){const c=new Error(a);return c.fullPath=r,c}return _t.replace(r,s)}};class Zfe{constructor(e){this.root=vg(e||{})}set(e,r){const n=this.getParent(e,!0);if(!n){hf(this.root,r,null);return}const s=e[e.length-1],{children:i}=n;if(i[s]){hf(i[s],r,n);return}i[s]=vg(r,n)}get(e){if(e=e||[],e.length<1)return this.root.value;let r=this.root,n,s;for(let i=0;i<e.length&&(s=e[i],n=r.children,!!n[s]);i+=1)r=n[s];return r&&r.protoValue}getParent(e,r){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce((n,s)=>{if(!n)return n;const{children:i}=n;return!i[s]&&r&&(i[s]=vg(null,n)),i[s]},this.root)}}function vg(t,e){return hf({children:{}},t,e)}function hf(t,e,r){return t.value=e||{},t.protoValue=r?{...r.protoValue,...t.value}:t.value,Object.keys(t.children).forEach(n=>{const s=t.children[n];t.children[n]=hf(s,s.value,t)}),t}const M2=100,D2=()=>{};class Qfe{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,r){return e.filter(r)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Zfe,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),_t,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(_t.isFunction),this.patches.push(_t.add([],this.spec)),this.patches.push(_t.context([],this.context)),this.updatePatches(this.patches)}debug(e,...r){this.debugLevel===e&&console.log(...r)}verbose(e,...r){this.debugLevel==="verbose"&&console.log(`[${e}] `,...r)}wrapPlugin(e,r){const{pathDiscriminator:n}=this;let s=null,i;return e[this.pluginProp]?(s=e,i=e[this.pluginProp]):_t.isFunction(e)?i=e:_t.isObject(e)&&(i=o(e)),Object.assign(i.bind(s),{pluginName:e.name||r,isGenerator:_t.isGenerator(i)});function o(a){const c=(l,p)=>Array.isArray(l)?l.every((f,m)=>f===p[m]):!0;return function*(p,f){const m={};for(const[g,v]of p.filter(_t.isAdditiveMutation).entries())if(g<IR)yield*d(v.value,v.path,v);else return;function*d(g,v,y){if(!_t.isObject(g))a.key===v[v.length-1]&&(yield a.plugin(g,a.key,v,f));else{const E=v.length-1,S=v[E],w=v.indexOf("properties"),x=S==="properties"&&E===w,I=f.allowMetaPatches&&m[g.$$ref];for(const T of Object.keys(g)){const D=g[T],B=v.concat(T),P=_t.isObject(D),Z=g.$$ref;if(I||P&&(f.allowMetaPatches&&Z&&c(n,B)&&(m[Z]=!0),yield*d(D,B,y)),!x&&T===a.key){const V=c(n,v);(!n||V)&&(yield a.plugin(D,T,B,f,y))}}}}}}}nextPlugin(){return this.wrappedPlugins.find(e=>this.getMutationsForPlugin(e).length>0)}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map(e=>e.value))}getPluginHistory(e){const r=this.constructor.getPluginName(e);return this.pluginHistory[r]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const r=this.getPluginHistory(e);return r&&r[r.length-1]||{}}getPluginMutationIndex(e){const r=this.getPluginHistoryTip(e).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(e,r){const n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(r)}updatePatches(e){_t.normalizeArray(e).forEach(r=>{if(r instanceof Error){this.errors.push(r);return}try{if(!_t.isObject(r)){this.debug("updatePatches","Got a non-object patch",r);return}if(this.showDebug&&this.allPatches.push(r),_t.isPromise(r.value)){this.promisedPatches.push(r),this.promisedPatchThen(r);return}if(_t.isContextPatch(r)){this.setContext(r.path,r.value);return}_t.isMutation(r)&&this.updateMutations(r)}catch(n){console.error(n),this.errors.push(n)}})}updateMutations(e){typeof e.value=="object"&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const r=_t.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(e),this.state=r)}removePromisedPatch(e){const r=this.promisedPatches.indexOf(e);if(r<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}this.promisedPatches.splice(r,1)}promisedPatchThen(e){return e.value=e.value.then(r=>{const n={...e,value:r};this.removePromisedPatch(e),this.updatePatches(n)}).catch(r=>{this.removePromisedPatch(e),this.updatePatches(r)}),e.value}getMutations(e,r){return e=e||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(e,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const r=this.getPluginMutationIndex(e);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return _t.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,r){return this.contextTree.set(e,r)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,r=this.nextPlugin();if(!r){const i=this.nextPromisedPatch();if(i)return i.then(()=>this.dispatch()).catch(()=>this.dispatch());const o={spec:this.state,errors:this.errors};return this.showDebug&&(o.patches=this.allPatches),Promise.resolve(o)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(r,(e.pluginCount.get(r)||0)+1),e.pluginCount[r]>M2)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error(`We've reached a hard limit of ${M2} plugin runs`))});if(r!==this.currentPlugin&&this.promisedPatches.length){const i=this.promisedPatches.map(o=>o.value);return Promise.all(i.map(o=>o.then(D2,D2))).then(()=>this.dispatch())}return n();function n(){e.currentPlugin=r;const i=e.getCurrentMutations(),o=e.mutations.length-1;try{if(r.isGenerator)for(const a of r(i,e.getLib()))s(a);else{const a=r(i,e.getLib());s(a)}}catch(a){console.error(a),s([Object.assign(Object.create(a),{plugin:r})])}finally{e.updatePluginHistory(r,{mutationIndex:o})}return e.dispatch()}function s(i){i&&(i=_t.fullyNormalizeArray(i),e.updatePatches(i,r))}}}function ehe(t){return new Qfe(t).dispatch()}const Wo={refs:TE,allOf:Gfe,parameters:Yfe,properties:Xfe};function FR(t,e={}){const{requestInterceptor:r,responseInterceptor:n}=e,s=t.withCredentials?"include":"same-origin";return i=>t({url:i,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:TR},credentials:s}).then(o=>o.body)}function RE(t,e){return!e&&typeof navigator<"u"&&(e=navigator),e&&e.product==="ReactNative"?!!(t&&typeof t=="object"&&typeof t.uri=="string"):typeof File<"u"&&t instanceof File||typeof Blob<"u"&&t instanceof Blob||ArrayBuffer.isView(t)?!0:t!==null&&typeof t=="object"&&typeof t.pipe=="function"}function BR(t,e){return Array.isArray(t)&&t.some(r=>RE(r,e))}class rv extends File{constructor(e,r="",n={}){super([e],r,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const the=t=>":/?#[]@!$&'()*+,;=".indexOf(t)>-1,rhe=t=>/^[a-z0-9\-._~]+$/i.test(t);function LR(t,e="reserved"){return[...t].map(r=>{if(rhe(r)||the(r)&&e==="unsafe")return r;const n=new TextEncoder;return Array.from(n.encode(r)).map(i=>`0${i.toString(16).toUpperCase()}`.slice(-2)).map(i=>`%${i}`).join("")}).join("")}function PE(t){const{value:e}=t;return Array.isArray(e)?nhe(t):typeof e=="object"?she(t):ihe(t)}function Sr(t,e=!1){return Array.isArray(t)||t!==null&&typeof t=="object"?t=JSON.stringify(t):(typeof t=="number"||typeof t=="boolean")&&(t=String(t)),e&&typeof t=="string"&&t.length>0?LR(t,e):t??""}function nhe({key:t,value:e,style:r,explode:n,escape:s}){if(r==="simple")return e.map(i=>Sr(i,s)).join(",");if(r==="label")return`.${e.map(i=>Sr(i,s)).join(".")}`;if(r==="matrix")return e.map(i=>Sr(i,s)).reduce((i,o)=>!i||n?`${i||""};${t}=${o}`:`${i},${o}`,"");if(r==="form"){const i=n?`&${t}=`:",";return e.map(o=>Sr(o,s)).join(i)}if(r==="spaceDelimited"){const i=n?`${t}=`:"";return e.map(o=>Sr(o,s)).join(` ${i}`)}if(r==="pipeDelimited"){const i=n?`${t}=`:"";return e.map(o=>Sr(o,s)).join(`|${i}`)}}function she({key:t,value:e,style:r,explode:n,escape:s}){const i=Object.keys(e);if(r==="simple")return i.reduce((o,a)=>{const c=Sr(e[a],s),l=n?"=":",";return`${o?`${o},`:""}${a}${l}${c}`},"");if(r==="label")return i.reduce((o,a)=>{const c=Sr(e[a],s),l=n?"=":".";return`${o?`${o}.`:"."}${a}${l}${c}`},"");if(r==="matrix"&&n)return i.reduce((o,a)=>{const c=Sr(e[a],s);return`${o?`${o};`:";"}${a}=${c}`},"");if(r==="matrix")return i.reduce((o,a)=>{const c=Sr(e[a],s);return`${o?`${o},`:`;${t}=`}${a},${c}`},"");if(r==="form")return i.reduce((o,a)=>{const c=Sr(e[a],s);return`${o?`${o}${n?"&":","}`:""}${a}${n?"=":","}${c}`},"")}function ihe({key:t,value:e,style:r,escape:n}){if(r==="simple")return Sr(e,n);if(r==="label")return`.${Sr(e,n)}`;if(r==="matrix")return`;${t}=${Sr(e,n)}`;if(r==="form"||r==="deepObject")return Sr(e,n)}const ohe={form:",",spaceDelimited:"%20",pipeDelimited:"|"},ahe={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function UR(t,e,r=!1){const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:o}=e,a=typeof e=="object"&&!Array.isArray(e)?e.value:e,c=r?p=>p.toString():p=>encodeURIComponent(p),l=c(t);if(typeof a>"u"&&s)return[[l,""]];if(RE(a)||BR(a))return[[l,a]];if(i)return F2(t,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some(p=>p!=="undefined")){const{style:p,explode:f,allowReserved:m}=o;return F2(t,a,r,{style:p,explode:f,allowReserved:m})}if(typeof o.contentType=="string"){if(o.contentType.startsWith("application/json")){const m=typeof a=="string"?a:JSON.stringify(a),d=c(m),g=new rv(d,"blob",{type:o.contentType});return[[l,g]]}const p=c(String(a)),f=new rv(p,"blob",{type:o.contentType});return[[l,f]]}return typeof a!="object"?[[l,c(a)]]:Array.isArray(a)&&a.every(p=>typeof p!="object")?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return typeof a!="object"?[[l,c(a)]]:Array.isArray(a)?n==="multi"?[[l,a.map(c)]]:[[l,a.map(c).join(ahe[n||"csv"])]]:[[l,""]]}function F2(t,e,r,n){const s=n.style||"form",i=typeof n.explode>"u"?s==="form":n.explode,o=r?!1:n&&n.allowReserved?"unsafe":"reserved",a=l=>Sr(l,o),c=r?l=>l:l=>a(l);return typeof e!="object"?[[c(t),a(e)]]:Array.isArray(e)?i?[[c(t),e.map(a)]]:[[c(t),e.map(a).join(ohe[s])]]:s==="deepObject"?Object.keys(e).map(l=>[c(`${t}[${l}]`),a(e[l])]):i?Object.keys(e).map(l=>[c(l),a(e[l])]):[[c(t),Object.keys(e).map(l=>[`${c(l)},${a(e[l])}`]).join(",")]]}function che(t){return Object.entries(t).reduce((e,[r,n])=>{for(const[s,i]of UR(r,n,!0))if(Array.isArray(i))for(const o of i)if(ArrayBuffer.isView(o)){const a=new Blob([o]);e.append(s,a)}else e.append(s,o);else if(ArrayBuffer.isView(i)){const o=new Blob([i]);e.append(s,o)}else e.append(s,i);return e},new FormData)}const lhe=(t,{encode:e=!0}={})=>{const r=(i,o,a)=>(Array.isArray(a)?a.reduce((c,l)=>r(i,o,l),i):a instanceof Date?i.append(o,a.toISOString()):typeof a=="object"?Object.entries(a).reduce((c,[l,p])=>r(i,`${o}[${l}]`,p),i):i.append(o,a),i),n=Object.entries(t).reduce((i,[o,a])=>r(i,o,a),new URLSearchParams),s=String(n);return e?s:decodeURIComponent(s)};function B2(t){const e=Object.keys(t).reduce((r,n)=>{for(const[s,i]of UR(n,t[n]))i instanceof rv?r[s]=i.valueOf():r[s]=i;return r},{});return lhe(e,{encode:!1})}function kE(t={}){const{url:e="",query:r,form:n}=t,s=(...i)=>{const o=i.filter(a=>a).join("&");return o?`?${o}`:""};if(n){const i=Object.keys(n).some(a=>{const{value:c}=n[a];return RE(c)||BR(c)}),o=t.headers["content-type"]||t.headers["Content-Type"];if(i||/multipart\/form-data/i.test(o)){const a=che(t.form);t.formdata=a,t.body=a}else t.body=B2(n);delete t.form}if(r){const[i,o]=e.split("?");let a="";if(o){const l=new URLSearchParams(o);Object.keys(r).forEach(f=>l.delete(f)),a=String(l)}const c=s(a,B2(r));t.url=i+c,delete t.query}return t}const uhe=(t="")=>/(json|xml|yaml|text)\b/.test(t);function phe(t,e){if(e){if(e.indexOf("application/json")===0||e.indexOf("+json")>0)return JSON.parse(t);if(e.indexOf("application/xml")===0||e.indexOf("+xml")>0)return t}return xn.load(t)}function fhe(t){return t.includes(", ")?t.split(", "):t}function hhe(t={}){return typeof t.entries!="function"?{}:Array.from(t.entries()).reduce((e,[r,n])=>(e[r]=fhe(n),e),{})}function VR(t,e,{loadSpec:r=!1}={}){const n={ok:t.ok,url:t.url||e,status:t.status,statusText:t.statusText,headers:hhe(t.headers)},s=n.headers["content-type"],i=r||uhe(s);return(i?t.text:t.blob||t.buffer).call(t).then(a=>{if(n.text=a,n.data=a,i)try{const c=phe(a,s);n.body=c,n.obj=c}catch(c){n.parseError=c}return n})}async function Fc(t,e={}){typeof t=="object"&&(e=t,t=e.url),e.headers=e.headers||{},e=kE(e),e.headers&&Object.keys(e.headers).forEach(s=>{const i=e.headers[s];typeof i=="string"&&(e.headers[s]=i.replace(/\n+/g," "))}),e.requestInterceptor&&(e=await e.requestInterceptor(e)||e);const r=e.headers["content-type"]||e.headers["Content-Type"];/multipart\/form-data/i.test(r)&&(delete e.headers["content-type"],delete e.headers["Content-Type"]);let n;try{n=await(e.userFetch||fetch)(e.url,e),n=await VR(n,t,e),e.responseInterceptor&&(n=await e.responseInterceptor(n)||n)}catch(s){if(!n)throw s;const i=new Error(n.statusText||`response status is ${n.status}`);throw i.status=n.status,i.statusCode=n.status,i.responseError=s,i}if(!n.ok){const s=new Error(n.statusText||`response status is ${n.status}`);throw s.status=n.status,s.statusCode=n.status,s.response=n,s}return n}function dhe(t,e,r){return r=r||(n=>n),e=e||(n=>n),n=>(typeof n=="string"&&(n={url:n}),n=kE(n),n=e(n),r(t(n)))}const jE=t=>{var e,r;const{baseDoc:n,url:s}=t,i=(e=n??s)!==null&&e!==void 0?e:"";return typeof((r=globalThis.document)===null||r===void 0?void 0:r.baseURI)=="string"?String(new URL(i,globalThis.document.baseURI)):i},qR=t=>{const{fetch:e,http:r}=t;return e||r||Fc};async function NE(t){const{spec:e,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:p,strategies:f}=t,m=jE(t),d=qR(t),g=f.find(y=>y.match(e));return v(e);async function v(y){m&&(Wo.refs.docCache[m]=y),Wo.refs.fetchJSON=FR(d,{requestInterceptor:a,responseInterceptor:c});const E=[Wo.refs];typeof o=="function"&&E.push(Wo.parameters),typeof i=="function"&&E.push(Wo.properties),r!=="strict"&&E.push(Wo.allOf);const S=await ehe({spec:y,context:{baseDoc:m},plugins:E,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:p});return l||(S.spec=g.normalize(S.spec)),S}}const zR=t=>t.replace(/\W/gi,"_");function mhe(t,e,{v2OperationIdCompatibilityMode:r}={}){if(r){let n=`${e.toLowerCase()}_${t}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return n=n||`${t.substring(1)}_${e}`,n.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${e.toLowerCase()}${zR(t)}`}function Ml(t,e,r="",{v2OperationIdCompatibilityMode:n}={}){return!t||typeof t!="object"?null:(t.operationId||"").replace(/\s/g,"").length?zR(t.operationId):mhe(e,r,{v2OperationIdCompatibilityMode:n})}function ME(t){const{spec:e}=t,{paths:r}=e,n={};if(!r||e.$$normalized)return t;for(const s in r){const i=r[s];if(i==null||!["object","function"].includes(typeof i))continue;const o=i.parameters;for(const a in i){const c=i[a];if(c==null||!["object","function"].includes(typeof c))continue;const l=Ml(c,s,a);if(l){n[l]?n[l].push(c):n[l]=[c];const p=n[l];if(p.length>1)p.forEach((f,m)=>{f.__originalOperationId=f.__originalOperationId||f.operationId,f.operationId=`${l}${m+1}`});else if(typeof c.operationId<"u"){const f=p[0];f.__originalOperationId=f.__originalOperationId||c.operationId,f.operationId=l}}if(a!=="parameters"){const p=[],f={};for(const m in e)(m==="produces"||m==="consumes"||m==="security")&&(f[m]=e[m],p.push(f));if(o&&(f.parameters=o,p.push(f)),p.length){for(const m of p)for(const d in m)if(!Array.isArray(c[d]))c[d]=m[d];else if(d==="parameters")for(const g of m[d])c[d].some(y=>!Wn(y)&&!Wn(g)?!1:y===g?!0:["name","$ref","$$ref"].some(E=>typeof y[E]=="string"&&typeof g[E]=="string"&&y[E]===g[E]))||c[d].push(g)}}}}return e.$$normalized=!0,t}const nv={name:"generic",match(){return!0},normalize(t){const{spec:e}=ME({spec:t});return e},async resolve(t){return NE(t)}};async function ghe(t){return NE(t)}const yhe=t=>{try{const{swagger:e}=t;return e==="2.0"}catch{return!1}},JR=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},DE=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},vhe=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.2\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},WR=t=>JR(t)||DE(t)||vhe(t),sv={name:"openapi-2",match(t){return yhe(t)},normalize(t){const{spec:e}=ME({spec:t});return e},async resolve(t){return ghe(t)}};async function bhe(t){return NE(t)}const iv={name:"openapi-3-0",match(t){return JR(t)},normalize(t){const{spec:e}=ME({spec:t});return e},async resolve(t){return bhe(t)}},Ehe=t=>{try{const e=t.startsWith("#")?t.slice(1):t;return decodeURIComponent(e)}catch{return t}},En=t=>{const e=t.indexOf("#"),r=e===-1?"#":t.substring(e);return Ehe(r)};function Dl(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+=`; JavaScript Object Notation (JSON) Pointer ABNF syntax
|
|
26
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6901
|
|
27
|
+
`,e+=`json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used
|
|
28
|
+
`,e+=`reference-token = *( unescaped / escaped )
|
|
29
|
+
`,e+=`unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
|
|
30
|
+
`,e+=` ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
|
|
31
|
+
`,e+=`escaped = "~" ( "0" / "1" )
|
|
32
|
+
`,e+=` ; representing '~' and '/', respectively
|
|
33
|
+
`,e+=`
|
|
34
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6901#section-4
|
|
35
|
+
`,e+=`array-location = array-index / array-dash
|
|
36
|
+
`,e+=`array-index = %x30 / ( %x31-39 *(%x30-39) )
|
|
37
|
+
`,e+=` ; "0", or digits without a leading "0"
|
|
38
|
+
`,e+=`array-dash = "-"
|
|
39
|
+
`,e+=`
|
|
40
|
+
`,e+=`; Surrogate named rules
|
|
41
|
+
`,e+=`slash = "/"
|
|
42
|
+
`,e}}const Tn=function(){const e=st,r=sn,n=this,s="parser.js: Parser(): ",i=function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let o=0,a=0,c=0,l=0,p=0,f,m,d,g,v=new i,y,E,S;const w=()=>{o=0,a=0,c=0,l=0,p=0,f=void 0,m=void 0,d=void 0,g=void 0,v.refresh(),y=void 0,E=void 0,S=void 0},x=()=>{const ue=`${s}initializeCallbacks(): `;let oe;for(y=[],E=[],oe=0;oe<f.length;oe+=1)y[oe]=void 0;for(oe=0;oe<m.length;oe+=1)E[oe]=void 0;let G;const ie=[];for(oe=0;oe<f.length;oe+=1)ie.push(f[oe].lower);for(oe=0;oe<m.length;oe+=1)ie.push(m[oe].lower);for(const pe in n.callbacks)if(n.callbacks.hasOwnProperty(pe)){if(oe=ie.indexOf(pe.toLowerCase()),oe<0)throw new Error(`${ue}syntax callback '${pe}' not a rule or udt name`);if(G=n.callbacks[pe]?n.callbacks[pe]:void 0,typeof G=="function"||G===void 0)oe<f.length?y[oe]=G:E[oe-f.length]=G;else throw new Error(`${ue}syntax callback[${pe}] must be function reference or falsy)`)}};n.parse=(ue,oe,G,ie)=>{const pe=`${s}parse(): `;w(),g=r.stringToChars(G),f=ue.rules,m=ue.udts;const X=oe.toLowerCase();let le;for(const N in f)if(f.hasOwnProperty(N)&&X===f[N].lower){le=f[N].index;break}if(le===void 0)throw new Error(`${pe}start rule name '${startRule}' not recognized`);x(),n.trace&&n.trace.init(f,m,g),n.stats&&n.stats.init(f,m),n.ast&&n.ast.init(f,m,g),S=ie,d=[{type:e.RNM,index:le}],ce(0,0),d=void 0;let q=!1;switch(v.state){case e.ACTIVE:throw new Error(`${pe}final state should never be 'ACTIVE'`);case e.NOMATCH:q=!1;break;case e.EMPTY:case e.MATCH:v.phraseLength===g.length?q=!0:q=!1;break;default:throw new Error("unrecognized state")}return{success:q,state:v.state,stateName:e.idName(v.state),length:g.length,matched:v.phraseLength,maxMatched:p,maxTreeDepth:c,nodeHits:l}};const I=(ue,oe)=>{const G=d[ue];for(let ie=0;ie<G.children.length&&(ce(G.children[ie],oe),v.state===e.NOMATCH);ie+=1);},T=(ue,oe)=>{let G,ie,pe,X;const le=d[ue];n.ast&&(ie=n.ast.getLength()),G=!0,pe=oe,X=0;for(let q=0;q<le.children.length;q+=1)if(ce(le.children[q],pe),v.state===e.NOMATCH){G=!1;break}else pe+=v.phraseLength,X+=v.phraseLength;G?(v.state=X===0?e.EMPTY:e.MATCH,v.phraseLength=X):(v.state=e.NOMATCH,v.phraseLength=0,n.ast&&n.ast.setLength(ie))},D=(ue,oe)=>{let G,ie,pe,X;const le=d[ue];if(le.max===0){v.state=e.EMPTY,v.phraseLength=0;return}for(ie=oe,pe=0,X=0,n.ast&&(G=n.ast.getLength());!(ie>=g.length||(ce(ue+1,ie),v.state===e.NOMATCH)||v.state===e.EMPTY||(X+=1,pe+=v.phraseLength,ie+=v.phraseLength,X===le.max)););v.state===e.EMPTY||X>=le.min?(v.state=pe===0?e.EMPTY:e.MATCH,v.phraseLength=pe):(v.state=e.NOMATCH,v.phraseLength=0,n.ast&&n.ast.setLength(G))},B=(ue,oe,G,ie)=>{if(oe.phraseLength>G){let pe=`${s}opRNM(${ue.name}): callback function error: `;throw pe+=`sysData.phraseLength: ${oe.phraseLength}`,pe+=` must be <= remaining chars: ${G}`,new Error(pe)}switch(oe.state){case e.ACTIVE:if(!ie)throw new Error(`${s}opRNM(${ue.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:oe.phraseLength=0;break;case e.MATCH:oe.phraseLength===0&&(oe.state=e.EMPTY);break;case e.NOMATCH:oe.phraseLength=0;break;default:throw new Error(`${s}opRNM(${ue.name}): callback function return error. Unrecognized return state: ${oe.state}`)}},P=(ue,oe)=>{let G,ie,pe;const X=d[ue],le=f[X.index],q=y[le.index];if(o||(ie=n.ast&&n.ast.ruleDefined(X.index),ie&&(G=n.ast.getLength(),n.ast.down(X.index,f[X.index].name))),q){const N=g.length-oe;q(v,g,oe,S),B(le,v,N,!0),v.state===e.ACTIVE&&(pe=d,d=le.opcodes,ce(0,oe),d=pe,q(v,g,oe,S),B(le,v,N,!1))}else pe=d,d=le.opcodes,ce(0,oe),d=pe;o||ie&&(v.state===e.NOMATCH?n.ast.setLength(G):n.ast.up(X.index,le.name,oe,v.phraseLength))},Z=(ue,oe)=>{const G=d[ue];v.state=e.NOMATCH,oe<g.length&&G.min<=g[oe]&&g[oe]<=G.max&&(v.state=e.MATCH,v.phraseLength=1)},V=(ue,oe)=>{const G=d[ue],ie=G.string.length;if(v.state=e.NOMATCH,oe+ie<=g.length){for(let pe=0;pe<ie;pe+=1)if(g[oe+pe]!==G.string[pe])return;v.state=e.MATCH,v.phraseLength=ie}},J=(ue,oe)=>{let G;const ie=d[ue];v.state=e.NOMATCH;const pe=ie.string.length;if(pe===0){v.state=e.EMPTY;return}if(oe+pe<=g.length){for(let X=0;X<pe;X+=1)if(G=g[oe+X],G>=65&&G<=90&&(G+=32),G!==ie.string[X])return;v.state=e.MATCH,v.phraseLength=pe}},F=(ue,oe,G)=>{if(oe.phraseLength>G){let ie=`${s}opUDT(${ue.name}): callback function error: `;throw ie+=`sysData.phraseLength: ${oe.phraseLength}`,ie+=` must be <= remaining chars: ${G}`,new Error(ie)}switch(oe.state){case e.ACTIVE:throw new Error(`${s}opUDT(${ue.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(ue.empty)oe.phraseLength=0;else throw new Error(`${s}opUDT(${ue.name}) may not return EMPTY.`);break;case e.MATCH:if(oe.phraseLength===0)if(ue.empty)oe.state=e.EMPTY;else throw new Error(`${s}opUDT(${ue.name}) may not return EMPTY.`);break;case e.NOMATCH:oe.phraseLength=0;break;default:throw new Error(`${s}opUDT(${ue.name}): callback function return error. Unrecognized return state: ${oe.state}`)}},Q=(ue,oe)=>{let G,ie,pe;const X=d[ue],le=m[X.index];v.UdtIndex=le.index,o||(pe=n.ast&&n.ast.udtDefined(X.index),pe&&(ie=f.length+X.index,G=n.ast.getLength(),n.ast.down(ie,le.name)));const q=g.length-oe;E[X.index](v,g,oe,S),F(le,v,q),o||pe&&(v.state===e.NOMATCH?n.ast.setLength(G):n.ast.up(ie,le.name,oe,v.phraseLength))},se=(ue,oe)=>{switch(o+=1,ce(ue+1,oe),o-=1,v.phraseLength=0,v.state){case e.EMPTY:v.state=e.EMPTY;break;case e.MATCH:v.state=e.EMPTY;break;case e.NOMATCH:v.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${v.state}`)}},re=(ue,oe)=>{switch(o+=1,ce(ue+1,oe),o-=1,v.phraseLength=0,v.state){case e.EMPTY:case e.MATCH:v.state=e.NOMATCH;break;case e.NOMATCH:v.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${v.state}`)}},ce=(ue,oe)=>{const G=`${s}opExecute(): `,ie=d[ue];switch(l+=1,a>c&&(c=a),a+=1,v.refresh(),n.trace&&n.trace.down(ie,oe),ie.type){case e.ALT:I(ue,oe);break;case e.CAT:T(ue,oe);break;case e.REP:D(ue,oe);break;case e.RNM:P(ue,oe);break;case e.TRG:Z(ue,oe);break;case e.TBS:V(ue,oe);break;case e.TLS:J(ue,oe);break;case e.UDT:Q(ue,oe);break;case e.AND:se(ue,oe);break;case e.NOT:re(ue,oe);break;default:throw new Error(`${G}unrecognized operator`)}o||oe+v.phraseLength>p&&(p=oe+v.phraseLength),n.stats&&n.stats.collect(ie,v),n.trace&&n.trace.up(ie,v.state,oe,v.phraseLength),a-=1}},FE=function(){const e="parser.js: Ast()): ",r=st,n=sn,s=this;let i,o,a,c=0;const l=[],p=[],f=[];s.callbacks=[],s.init=(d,g,v)=>{p.length=0,f.length=0,c=0,i=d,o=g,a=v;let y;const E=[];for(y=0;y<i.length;y+=1)E.push(i[y].lower);for(y=0;y<o.length;y+=1)E.push(o[y].lower);for(c=i.length+o.length,y=0;y<c;y+=1)l[y]=void 0;for(const S in s.callbacks)if(s.callbacks.hasOwnProperty(S)){const w=S.toLowerCase();if(y=E.indexOf(w),y<0)throw new Error(`${e}init: node '${S}' not a rule or udt name`);l[y]=s.callbacks[S]}},s.ruleDefined=d=>!!l[d],s.udtDefined=d=>!!l[i.length+d],s.down=(d,g)=>{const v=f.length;return p.push(v),f.push({name:g,thisIndex:v,thatIndex:void 0,state:r.SEM_PRE,callbackIndex:d,phraseIndex:void 0,phraseLength:void 0,stack:p.length}),v},s.up=(d,g,v,y)=>{const E=f.length,S=p.pop();return f.push({name:g,thisIndex:E,thatIndex:S,state:r.SEM_POST,callbackIndex:d,phraseIndex:v,phraseLength:y,stack:p.length}),f[S].thatIndex=E,f[S].phraseIndex=v,f[S].phraseLength=y,E},s.translate=d=>{let g,v;for(let y=0;y<f.length;y+=1)v=f[y],g=l[v.callbackIndex],g&&(v.state===r.SEM_PRE?g(r.SEM_PRE,a,v.phraseIndex,v.phraseLength,d):g&&g(r.SEM_POST,a,v.phraseIndex,v.phraseLength,d))},s.setLength=d=>{f.length=d,d>0?p.length=f[d-1].stack:p.length=0},s.getLength=()=>f.length;function m(d){let g="";for(;d-- >0;)g+=" ";return g}s.toXml=()=>{let d="",g=0;return d+=`<?xml version="1.0" encoding="utf-8"?>
|
|
43
|
+
`,d+=`<root nodes="${f.length/2}" characters="${a.length}">
|
|
44
|
+
`,d+=`<!-- input string -->
|
|
45
|
+
`,d+=m(g+2),d+=n.charsToString(a),d+=`
|
|
46
|
+
`,f.forEach(v=>{v.state===r.SEM_PRE?(g+=1,d+=m(g),d+=`<node name="${v.name}" index="${v.phraseIndex}" length="${v.phraseLength}">
|
|
47
|
+
`,d+=m(g+2),d+=n.charsToString(a,v.phraseIndex,v.phraseLength),d+=`
|
|
48
|
+
`):(d+=m(g),d+=`</node><!-- name="${v.name}" -->
|
|
49
|
+
`,g-=1)}),d+=`</root>
|
|
50
|
+
`,d}},She=function(){const e=st,r=sn,n="parser.js: Trace(): ";let s,i,o,a="",c=0;const l=100,p=this,f=d=>{let g="",v=0;if(d>=0)for(;d--;)v+=1,v===5?(g+="|",v=0):g+=".";return g};p.init=(d,g,v)=>{i=d,o=g,s=v};const m=d=>{let g;switch(d.type){case e.ALT:g="ALT";break;case e.CAT:g="CAT";break;case e.REP:d.max===1/0?g=`REP(${d.min},inf)`:g=`REP(${d.min},${d.max})`;break;case e.RNM:g=`RNM(${i[d.index].name})`;break;case e.TRG:g=`TRG(${d.min},${d.max})`;break;case e.TBS:d.string.length>6?g=`TBS(${r.charsToString(d.string,0,3)}...)`:g=`TBS(${r.charsToString(d.string,0,6)})`;break;case e.TLS:d.string.length>6?g=`TLS(${r.charsToString(d.string,0,3)}...)`:g=`TLS(${r.charsToString(d.string,0,6)})`;break;case e.UDT:g=`UDT(${o[d.index].name})`;break;case e.AND:g="AND";break;case e.NOT:g="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return g};p.down=(d,g)=>{const v=f(c),y=Math.min(l,s.length-g);let E=r.charsToString(s,g,y);y<s.length-g&&(E+="..."),E=`${v}|-|[${m(d)}]${E}
|
|
51
|
+
`,a+=E,c+=1},p.up=(d,g,v,y)=>{const E=`${n}trace.up: `;c-=1;const S=f(c);let w,x,I;switch(g){case e.EMPTY:I="|E|",x="''";break;case e.MATCH:I="|M|",w=Math.min(l,y),w<y?x=`'${r.charsToString(s,v,w)}...'`:x=`'${r.charsToString(s,v,w)}'`;break;case e.NOMATCH:I="|N|",x="";break;default:throw new Error(`${E} unrecognized state`)}x=`${S}${I}[${m(d)}]${x}
|
|
52
|
+
`,a+=x},p.displayTrace=()=>a},whe=function(){const e=st,r="parser.js: Stats(): ";let n,s,i;const o=[],a=[],c=[];this.init=(y,E)=>{n=y,s=E,g()},this.collect=(y,E)=>{v(i,E.state,E.phraseLength),v(o[y.type],E.state,E.phraseLength),y.type===e.RNM&&v(a[y.index],E.state,E.phraseLength),y.type===e.UDT&&v(c[y.index],E.state,E.phraseLength)},this.displayStats=()=>{let y="";const E={match:0,empty:0,nomatch:0,total:0},S=(w,x,I,T,D)=>{E.match+=x,E.empty+=I,E.nomatch+=T,E.total+=D;const B=l(x),P=l(I),Z=l(T),V=l(D);return`${w} | ${B} | ${P} | ${Z} | ${V} |
|
|
53
|
+
`};return y+=` OPERATOR STATS
|
|
54
|
+
`,y+=` | MATCH | EMPTY | NOMATCH | TOTAL |
|
|
55
|
+
`,y+=S(" ALT",o[e.ALT].match,o[e.ALT].empty,o[e.ALT].nomatch,o[e.ALT].total),y+=S(" CAT",o[e.CAT].match,o[e.CAT].empty,o[e.CAT].nomatch,o[e.CAT].total),y+=S(" REP",o[e.REP].match,o[e.REP].empty,o[e.REP].nomatch,o[e.REP].total),y+=S(" RNM",o[e.RNM].match,o[e.RNM].empty,o[e.RNM].nomatch,o[e.RNM].total),y+=S(" TRG",o[e.TRG].match,o[e.TRG].empty,o[e.TRG].nomatch,o[e.TRG].total),y+=S(" TBS",o[e.TBS].match,o[e.TBS].empty,o[e.TBS].nomatch,o[e.TBS].total),y+=S(" TLS",o[e.TLS].match,o[e.TLS].empty,o[e.TLS].nomatch,o[e.TLS].total),y+=S(" UDT",o[e.UDT].match,o[e.UDT].empty,o[e.UDT].nomatch,o[e.UDT].total),y+=S(" AND",o[e.AND].match,o[e.AND].empty,o[e.AND].nomatch,o[e.AND].total),y+=S(" NOT",o[e.NOT].match,o[e.NOT].empty,o[e.NOT].nomatch,o[e.NOT].total),y+=S("TOTAL",E.match,E.empty,E.nomatch,E.total),y},this.displayHits=y=>{let E="";const S=(w,x,I,T,D)=>{i.match+=w,i.empty+=x,i.nomatch+=I,i.total+=T;const B=l(w),P=l(x),Z=l(I),V=l(T);return`| ${B} | ${P} | ${Z} | ${V} | ${D}
|
|
56
|
+
`};typeof y=="string"&&y.toLowerCase()[0]==="a"?(a.sort(p),c.sort(p),E+=` RULES/UDTS ALPHABETICALLY
|
|
57
|
+
`):typeof y=="string"&&y.toLowerCase()[0]==="i"?(a.sort(m),c.sort(m),E+=` RULES/UDTS BY INDEX
|
|
58
|
+
`):(a.sort(f),c.sort(f),E+=` RULES/UDTS BY HIT COUNT
|
|
59
|
+
`),E+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME
|
|
60
|
+
`;for(let w=0;w<a.length;w+=1){let x=a[w];x.total&&(E+=S(x.match,x.empty,x.nomatch,x.total,x.name))}for(let w=0;w<c.length;w+=1){let x=c[w];x.total&&(E+=S(x.match,x.empty,x.nomatch,x.total,x.name))}return E};const l=y=>y<10?` ${y}`:y<100?` ${y}`:y<1e3?` ${y}`:y<1e4?` ${y}`:y<1e5?` ${y}`:y<1e6?` ${y}`:`${y}`,p=(y,E)=>y.lower<E.lower?-1:y.lower>E.lower?1:0,f=(y,E)=>y.total<E.total?1:y.total>E.total?-1:p(y,E),m=(y,E)=>y.index<E.index?-1:y.index>E.index?1:0,d=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},g=()=>{o.length=0,i=new d,o[e.ALT]=new d,o[e.CAT]=new d,o[e.REP]=new d,o[e.RNM]=new d,o[e.TRG]=new d,o[e.TBS]=new d,o[e.TLS]=new d,o[e.UDT]=new d,o[e.AND]=new d,o[e.NOT]=new d,a.length=0;for(let y=0;y<n.length;y+=1)a.push({empty:0,match:0,nomatch:0,total:0,name:n[y].name,lower:n[y].lower,index:n[y].index});if(s.length>0){c.length=0;for(let y=0;y<s.length;y+=1)c.push({empty:0,match:0,nomatch:0,total:0,name:s[y].name,lower:s[y].lower,index:s[y].index})}},v=(y,E)=>{switch(y.total+=1,E){case e.EMPTY:y.empty+=1;break;case e.MATCH:y.match+=1;break;case e.NOMATCH:y.nomatch+=1;break;default:throw new Error(`${r}collect(): incStat(): unrecognized state: ${E}`)}}},sn={stringToChars:t=>[...t].map(e=>e.codePointAt(0)),charsToString:(t,e,r)=>{let n=t;for(;!(e===void 0||e<0);){if(r===void 0){n=t.slice(e);break}if(r<=0)return"";n=t.slice(e,e+r);break}return String.fromCodePoint(...n)}},st={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:t=>{switch(t){case st.ALT:return"ALT";case st.CAT:return"CAT";case st.REP:return"REP";case st.RNM:return"RNM";case st.TRG:return"TRG";case st.TBS:return"TBS";case st.TLS:return"TLS";case st.UDT:return"UDT";case st.AND:return"AND";case st.NOT:return"NOT";case st.ACTIVE:return"ACTIVE";case st.EMPTY:return"EMPTY";case st.MATCH:return"MATCH";case st.NOMATCH:return"NOMATCH";case st.SEM_PRE:return"SEM_PRE";case st.SEM_POST:return"SEM_POST";case st.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};class ui extends Error{constructor(e,r=void 0){if(super(e,r),this.name=this.constructor.name,typeof e=="string"&&(this.message=e),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,r!=null&&typeof r=="object"&&Object.prototype.hasOwnProperty.call(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
|
|
61
|
+
CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...s}=r;Object.assign(this,s)}}}class HR extends ui{}const bg=t=>(e,r,n,s,i)=>{if(!(typeof i=="object"&&i!==null&&!Array.isArray(i)))throw new HR("parser's user data must be an object");if(e===st.SEM_PRE){const o={type:t,text:sn.charsToString(r,n,s),start:n,length:s,children:[]};i.stack.length>0?i.stack[i.stack.length-1].children.push(o):i.root=o,i.stack.push(o)}e===st.SEM_POST&&i.stack.pop()};class _he extends FE{constructor(){super(),this.callbacks["json-pointer"]=bg("json-pointer"),this.callbacks["reference-token"]=bg("reference-token"),this.callbacks.slash=bg("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}}const xhe=t=>{if(typeof t!="string")throw new TypeError("Reference token must be a string");return t.replace(/~1/g,"/").replace(/~0/g,"~")};class Ahe extends _he{getTree(){const{root:e}=super.getTree();return e.children.filter(({type:r})=>r==="reference-token").map(({text:r})=>xhe(r))}}class Ohe extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}}class Che extends She{inferExpectations(){const e=this.displayTrace().split(`
|
|
62
|
+
`),r=new Set;let n=-1;for(let s=0;s<e.length;s++){const i=e[s];if(i.includes("M|")){const o=i.match(/]'(.*)'$/);o&&o[1]&&(n=s)}if(s>n){const o=i.match(/N\|\[TLS\(([^)]+)\)]/);o&&r.add(o[1])}}return new Ohe(...r)}}const $he=new Dl,The=(t,{translator:e=new Ahe,stats:r=!1,trace:n=!1}={})=>{if(typeof t!="string")throw new TypeError("JSON Pointer must be a string");try{const s=new Tn;e&&(s.ast=e),r&&(s.stats=new whe),n&&(s.trace=new Che);const i=s.parse($he,"json-pointer",t);return{result:i,tree:i.success&&e?s.ast.getTree():void 0,stats:s.stats,trace:s.trace}}catch(s){throw new HR("Unexpected error during JSON Pointer parsing",{cause:s,jsonPointer:t})}};new Dl;new Tn;new Dl;new Tn;const Ihe=new Dl,Rhe=new Tn,Phe=t=>{if(typeof t!="string")return!1;try{return Rhe.parse(Ihe,"array-index",t).success}catch{return!1}},khe=new Dl,jhe=new Tn,Nhe=t=>{if(typeof t!="string")return!1;try{return jhe.parse(khe,"array-dash",t).success}catch{return!1}},Mhe=t=>{if(typeof t!="string"&&typeof t!="number")throw new TypeError("Reference token must be a string or number");return String(t).replace(/~/g,"~0").replace(/\//g,"~1")};class Dhe extends ui{}const KR=t=>{if(!Array.isArray(t))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return t.length===0?"":`/${t.map(e=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("Reference token must be a string or number");return Mhe(String(e))}).join("/")}`}catch(e){throw new Dhe("Unexpected error during JSON Pointer compilation",{cause:e,referenceTokens:t})}};var Zr,pa,fa;class Fhe{constructor(e,r={}){Rs(this,Zr);Rs(this,pa);Rs(this,fa);Fo(this,Zr,e),Ut(this,Zr).steps=[],Ut(this,Zr).failed=!1,Ut(this,Zr).failedAt=-1,Ut(this,Zr).message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,Ut(this,Zr).context={...r,realm:r.realm.name},Fo(this,pa,[]),Fo(this,fa,r.realm)}step({referenceToken:e,input:r,output:n,success:s=!0,reason:i}){const o=Ut(this,pa).length;Ut(this,pa).push(e);const a={referenceToken:e,referenceTokenPosition:o,input:r,inputType:Ut(this,fa).isObject(r)?"object":Ut(this,fa).isArray(r)?"array":"unrecognized",output:n,success:s};i&&(a.reason=i),Ut(this,Zr).steps.push(a),s||(Ut(this,Zr).failed=!0,Ut(this,Zr).failedAt=o,Ut(this,Zr).message=i)}}Zr=new WeakMap,pa=new WeakMap,fa=new WeakMap;class GR{constructor(){H(this,"name","")}isArray(e){throw new ui("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new ui("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new ui("Realm.sizeOf(node) must be implemented in a subclass")}has(e,r){throw new ui("Realm.has(node) must be implemented in a subclass")}evaluate(e,r){throw new ui("Realm.evaluate(node) must be implemented in a subclass")}}class Qi extends ui{}class ra extends Qi{}class Bhe extends GR{constructor(){super(...arguments);H(this,"name","json")}isArray(r){return Array.isArray(r)}isObject(r){return typeof r=="object"&&r!==null&&!this.isArray(r)}sizeOf(r){return this.isArray(r)?r.length:this.isObject(r)?Object.keys(r).length:0}has(r,n){if(this.isArray(r)){const s=Number(n),i=s>>>0;if(s!==i)throw new ra(`Invalid array index "${n}": index must be an unsinged 32-bit integer`,{referenceToken:n,currentValue:r,realm:this.name});return i<this.sizeOf(r)&&Object.prototype.hasOwnProperty.call(r,s)}return this.isObject(r)?Object.prototype.hasOwnProperty.call(r,n):!1}evaluate(r,n){return this.isArray(r)?r[Number(n)]:r[n]}}class Lhe extends Qi{}class YR extends Qi{}const Uhe=(t,e,{strictArrays:r=!0,strictObjects:n=!0,realm:s=new Bhe,trace:i=!0}={})=>{const{result:o,tree:a,trace:c}=The(e,{trace:!!i}),l=typeof i=="object"&&i!==null?new Fhe(i,{jsonPointer:e,referenceTokens:a,strictArrays:r,strictObjects:n,realm:s,value:t}):null;try{let p;if(!o.success){let f=`Invalid JSON Pointer: "${e}". Syntax error at position ${o.maxMatched}`;throw f+=c?`, expected ${c.inferExpectations()}`:"",new Qi(f,{jsonPointer:e,currentValue:t,realm:s.name})}return a.reduce((f,m,d)=>{if(s.isArray(f)){if(Nhe(m)){if(r)throw new ra(`Invalid array index "-" at position ${d} in "${e}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:e,referenceTokens:a,referenceToken:m,referenceTokenPosition:d,currentValue:f,realm:s.name});return p=s.evaluate(f,String(s.sizeOf(f))),l==null||l.step({referenceToken:m,input:f,output:p}),p}if(!Phe(m))throw new ra(`Invalid array index "${m}" at position ${d} in "${e}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:e,referenceTokens:a,referenceToken:m,referenceTokenPosition:d,currentValue:f,realm:s.name});const g=Number(m);if(!Number.isSafeInteger(g))throw new ra(`Invalid array index "${m}" at position ${d} in "${e}": index must be a safe integer`,{jsonPointer:e,referenceTokens:a,referenceToken:m,referenceTokenPosition:d,currentValue:f,realm:s.name});if(!s.has(f,m)&&r)throw new ra(`Invalid array index "${m}" at position ${d} in "${e}": index not found in array`,{jsonPointer:e,referenceTokens:a,referenceToken:m,referenceTokenPosition:d,currentValue:f,realm:s.name});return p=s.evaluate(f,m),l==null||l.step({referenceToken:m,input:f,output:p}),p}if(s.isObject(f)){if(!s.has(f,m)&&n)throw new YR(`Invalid object key "${m}" at position ${d} in "${e}": key not found in object`,{jsonPointer:e,referenceTokens:a,referenceToken:m,referenceTokenPosition:d,currentValue:f,realm:s.name});return p=s.evaluate(f,m),l==null||l.step({referenceToken:m,input:f,output:p}),p}throw new Lhe(`Invalid reference token "${m}" at position ${d} in "${e}": cannot be applied to a non-object/non-array value`,{jsonPointer:e,referenceTokens:a,referenceToken:m,referenceTokenPosition:d,currentValue:f,realm:s.name})},t)}catch(p){throw l==null||l.step({referenceToken:p.referenceToken,input:p.currentValue,success:!1,reason:p.message}),p instanceof Qi?p:new Qi("Unexpected error during JSON Pointer evaluation",{cause:p,jsonPointer:e,referenceTokens:a})}};class Vhe extends GR{constructor(){super(...arguments);H(this,"name","apidom")}isArray(r){return wr(r)}isObject(r){return yt(r)}sizeOf(r){return this.isArray(r)||this.isObject(r)?r.length:0}has(r,n){if(this.isArray(r)){const s=Number(n),i=s>>>0;if(s!==i)throw new ra(`Invalid array index "${n}": index must be an unsinged 32-bit integer`,{referenceToken:n,currentValue:r,realm:this.name});return i<this.sizeOf(r)}if(this.isObject(r)){const s=r.keys(),i=new Set(s);if(s.length!==i.size)throw new YR(`Object key "${n}" is not unique — JSON Pointer requires unique member names`,{referenceToken:n,currentValue:r,realm:this.name});return r.hasKey(n)}return!1}evaluate(r,n){return this.isArray(r)?r.get(Number(n)):r.get(n)}}const Vn=(t,e,r={})=>Uhe(t,e,{...r,realm:new Vhe});class BE extends Mpe{filterByFormat(e="generic"){const r=e==="generic"?"openapi;version":e;return this.filter(n=>n.includes(r))}findBy(e="3.1.0",r="generic"){const n=r==="generic"?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${r};version=${e}`;return this.find(i=>i.includes(n))||this.unknownMediaType}latest(e="generic"){return Mh(this.filterByFormat(e))}}const _a=new BE("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0");let Fl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="callback"}},Bl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}},Ll=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}},Ul=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}},Kh=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}},Vl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}},ql=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}},qa=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new to(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new to(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}};Object.defineProperty(qa.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});let zl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}},Jl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}},Wl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){if(Xe(this.operationRef)){var e;return(e=this.operationRef)===null||e===void 0?void 0:e.meta.get("operation")}if(Xe(this.operationId)){var r;return(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation")}}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}},Hl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}},Gh=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}},Yh=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}},Kl=class extends yo{constructor(e,r,n){super(e,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class Xh extends Ne{constructor(e,r,n){super(e,r,n),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}let Gl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new to(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}},za=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new to(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new to(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}};Object.defineProperty(za.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});let Yl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}},Xl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="paths"}},Zl=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}},Ql=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new to(!1)}set required(e){this.set("required",e)}},eu=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}},tu=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}},Ja=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}};class Wa extends Ne{constructor(e,r,n){super(e,r,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class ru extends Ne{constructor(e,r,n){super(e,r,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}let nu=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const qhe={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft4",Ja),e.register("jSONReference",Wa),e.register("media",ru),e.register("linkDescription",nu),e}},su=t=>{if(Zt(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},zhe={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...xs};let XR=class{constructor(e){H(this,"element");Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=_n(r.meta,e.meta)),Ua(e)&&xE(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=_n(r.attributes,e.attributes))}},vt=class extends XR{enter(e){return this.element=Le(e),ht}};const ZR=(t,e,r=[])=>{const n=Object.getOwnPropertyDescriptors(e);for(let s of r)delete n[s];Object.defineProperties(t,n)},Bc=(t,e=[t])=>{const r=Object.getPrototypeOf(t);return r===null?e:Bc(r,[...e,r])},Jhe=(...t)=>{if(t.length===0)return;let e;const r=t.map(n=>Bc(n));for(;r.every(n=>n.length>0);){const n=r.map(i=>i.pop()),s=n[0];if(n.every(i=>i===s))e=s;else break}return e},L2=(t,e,r=[])=>{var n;const s=(n=Jhe(...t))!==null&&n!==void 0?n:Object.prototype,i=Object.create(s),o=Bc(s);for(let a of t){let c=Bc(a);for(let l=c.length-1;l>=0;l--){let p=c[l];o.indexOf(p)===-1&&(ZR(i,p,["constructor",...r]),o.push(p))}}return i.constructor=e,i},ov=t=>t.filter((e,r)=>t.indexOf(e)==r),QR=new WeakMap,Whe=t=>QR.get(t),Hhe=(t,e)=>QR.set(t,e),U2=(t,e)=>{var r,n;const s=ov([...Object.getOwnPropertyNames(t),...Object.getOwnPropertyNames(e)]),i={};for(let o of s)i[o]=ov([...(r=t==null?void 0:t[o])!==null&&r!==void 0?r:[],...(n=e==null?void 0:e[o])!==null&&n!==void 0?n:[]]);return i},V2=(t,e)=>{var r,n,s,i;return{property:U2((r=t==null?void 0:t.property)!==null&&r!==void 0?r:{},(n=e==null?void 0:e.property)!==null&&n!==void 0?n:{}),method:U2((s=t==null?void 0:t.method)!==null&&s!==void 0?s:{},(i=e==null?void 0:e.method)!==null&&i!==void 0?i:{})}},Khe=(t,e)=>{var r,n,s,i,o,a;return{class:ov([...(r=t==null?void 0:t.class)!==null&&r!==void 0?r:[],...(n=e==null?void 0:e.class)!==null&&n!==void 0?n:[]]),static:V2((s=t==null?void 0:t.static)!==null&&s!==void 0?s:{},(i=e==null?void 0:e.static)!==null&&i!==void 0?i:{}),instance:V2((o=t==null?void 0:t.instance)!==null&&o!==void 0?o:{},(a=e==null?void 0:e.instance)!==null&&a!==void 0?a:{})}},Ghe=new Map,Yhe=(...t)=>{var e;const r=new Set,n=new Set([...t]);for(;n.size>0;)for(let s of n){const i=Bc(s.prototype).map(l=>l.constructor),o=(e=Whe(s))!==null&&e!==void 0?e:[],c=[...i,...o].filter(l=>!r.has(l));for(let l of c)n.add(l);r.add(s),n.delete(s)}return[...r]},Xhe=(...t)=>{const e=Yhe(...t).map(r=>Ghe.get(r)).filter(r=>!!r);return e.length==0?{}:e.length==1?e[0]:e.reduce((r,n)=>Khe(r,n))};function Ie(...t){var e,r,n;const s=t.map(a=>a.prototype);function i(...a){for(const c of t)ZR(this,new c(...a))}i.prototype=L2(s,i),Object.setPrototypeOf(i,L2(t,null,["prototype"]));let o=i;{const a=Xhe(...t);for(let c of(e=a==null?void 0:a.class)!==null&&e!==void 0?e:[]){const l=c(o);l&&(o=l)}q2((r=a==null?void 0:a.static)!==null&&r!==void 0?r:{},o),q2((n=a==null?void 0:a.instance)!==null&&n!==void 0?n:{},o.prototype)}return Hhe(o,t),o}const q2=(t,e)=>{const r=t.property,n=t.method;if(r)for(let s in r)for(let i of r[s])i(e,s);if(n)for(let s in n)for(let i of n[s])i(e,s,Object.getOwnPropertyDescriptor(e,s))};let on=class extends XR{constructor({specObj:r,...n}){super({...n});H(this,"specObj");H(this,"passingOptionsNames",["specObj","parent"]);this.specObj=r}retrievePassingOptions(){return gI(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=pr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return hE(mo,["visitors",...r],this.specObj)?pr(["visitors",...r],this.specObj):pr(["visitors",...r,"$visitor"],this.specObj)}retrieveVisitorInstance(r,n={}){const s=this.retrievePassingOptions(),i=this.retrieveVisitor(r),o={...s,...n};return new i(o)}toRefractedElement(r,n,s={}){const i=this.retrieveVisitorInstance(r,s);return i instanceof vt&&(i==null?void 0:i.constructor)===vt?Le(n):(rr(n,i,s),i.element)}},ro=class extends on{constructor({specPath:r,ignoredFields:n,...s}){super({...s});H(this,"specPath");H(this,"ignoredFields");this.specPath=r,this.ignoredFields=n||[]}ObjectElement(r){const n=this.specPath(r),s=this.retrieveFixedFields(n);return r.forEach((i,o,a)=>{if(Xe(o)&&s.includes(we(o))&&!this.ignoredFields.includes(we(o))){const c=this.toRefractedElement([...n,"fixedFields",we(o)],i),l=new Rl(Le(o),c);this.copyMetaAndAttributes(a,l),l.classes.push("fixed-field"),this.element.content.push(l)}else this.ignoredFields.includes(we(o))||this.element.content.push(Le(a))}),this.copyMetaAndAttributes(r,this.element),ht}};class nr{constructor({parent:e}){H(this,"parent");this.parent=e}}const eP=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ja||t(n)&&e("JSONSchemaDraft4",n)&&r("object",n)),LE=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Wa||t(n)&&e("JSONReference",n)&&r("object",n)),tP=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ru||t(n)&&e("media",n)&&r("object",n)),Zhe=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nu||t(n)&&e("linkDescription",n)&&r("object",n)),Qhe=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:LE,isJSONSchemaElement:eP,isLinkDescriptionElement:Zhe,isMediaElement:tP},Symbol.toStringTag,{value:"Module"}));let rP=class extends Ie(ro,nr,vt){constructor(e){super(e),this.element=new Ja,this.specPath=Ye(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,ro.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(xi(this.parent)&&!Xe(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(eP(this.parent)&&!Xe(e.get("$schema"))){const r=va(we(this.parent.meta.get("inheritedDialectIdentifier")),we(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(e,r="id"){const n=this.parent!==void 0?Le(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Ft,s=we(e.get(r));Bh(s)&&n.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const bs=t=>yt(t)&&t.hasKey("$ref");let nP=class extends Ie(on,nr,vt){ObjectElement(e){const r=bs(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,e),ht}ArrayElement(e){return this.element=new Ft,this.element.classes.push("json-schema-items"),e.forEach(r=>{const n=bs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ht}};class ede extends vt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-required"),r}}let tde=class extends on{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:s,...i}){super({...i});H(this,"specPath");H(this,"ignoredFields");H(this,"fieldPatternPredicate",eE);this.specPath=r,this.ignoredFields=n||[],typeof s=="function"&&(this.fieldPatternPredicate=s)}ObjectElement(r){return r.forEach((n,s,i)=>{if(!this.ignoredFields.includes(we(s))&&this.fieldPatternPredicate(we(s))){const o=this.specPath(n),a=this.toRefractedElement(o,n),c=new Rl(Le(s),a);this.copyMetaAndAttributes(i,c),c.classes.push("patterned-field"),this.element.content.push(c)}else this.ignoredFields.includes(we(s))||this.element.content.push(Le(i))}),this.copyMetaAndAttributes(r,this.element),ht}},Oi=class extends tde{constructor(e){super(e),this.fieldPatternPredicate=Bh}},rde=class extends Ie(Oi,nr,vt){constructor(e){super(e),this.element=new Ne,this.element.classes.push("json-schema-properties"),this.specPath=r=>bs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},nde=class extends Ie(Oi,nr,vt){constructor(e){super(e),this.element=new Ne,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>bs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class sde extends Ie(Oi,nr,vt){constructor(e){super(e),this.element=new Ne,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>bs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class ide extends vt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-enum"),r}}let ode=class extends vt{StringElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-type"),r}},ade=class extends Ie(on,nr,vt){constructor(e){super(e),this.element=new Ft,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(r=>{const n=bs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ht}},cde=class extends Ie(on,nr,vt){constructor(e){super(e),this.element=new Ft,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(r=>{const n=bs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ht}},lde=class extends Ie(on,nr,vt){constructor(e){super(e),this.element=new Ft,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(r=>{const n=bs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ht}};class ude extends Ie(Oi,nr,vt){constructor(e){super(e),this.element=new Ne,this.element.classes.push("json-schema-definitions"),this.specPath=r=>bs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let pde=class extends Ie(on,nr,vt){constructor(e){super(e),this.element=new Ft,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","LinkDescription"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),ht}};class fde extends Ie(ro,vt){constructor(e){super(e),this.element=new Wa,this.specPath=Ye(["document","objects","JSONReference"])}ObjectElement(e){const r=ro.prototype.ObjectElement.call(this,e);return Xe(this.element.$ref)&&this.element.classes.push("reference-element"),r}}let hde=class extends vt{StringElement(e){const r=this.enter(e);return this.element.classes.push("reference-value"),r}},dde=class extends on{constructor({alternator:r,...n}){super({...n});H(this,"alternator");this.alternator=r}enter(r){const n=this.alternator.map(({predicate:i,specPath:o})=>uE(i,Ye(o),Fh)),s=OI(n)(r);return this.element=this.toRefractedElement(s,r),ht}},Ho=class extends dde{constructor(e){super(e),this.alternator=[{predicate:bs,specPath:["document","objects","JSONReference"]},{predicate:Ws,specPath:["document","objects","JSONSchema"]}]}};class mde extends Ie(ro,vt){constructor(e){super(e),this.element=new ru,this.specPath=Ye(["document","objects","Media"])}}let sP=class extends Ie(ro,vt){constructor(e){super(e),this.element=new nu,this.specPath=Ye(["document","objects","LinkDescription"])}};const br={visitors:{value:vt,JSONSchemaOrJSONReferenceVisitor:Ho,document:{objects:{JSONSchema:{$visitor:rP,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Ho,items:nP,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:ede,properties:rde,additionalProperties:Ho,patternProperties:nde,dependencies:sde,enum:ide,type:ode,allOf:ade,anyOf:cde,oneOf:lde,not:Ho,definitions:ude,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:pde,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:fde,fixedFields:{$ref:hde}},Media:{$visitor:mde,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:sP,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ho,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ho}}}}}},gde=()=>{const t=Gs(qhe);return{predicates:{...Qhe,isStringElement:Xe},namespace:t}},yde=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=br}={})=>{const s=vo(t),i=Ai(n),o=pr(e,i),a=new o({specObj:i});return rr(s,a),Ys(a.element,r,{toolboxCreator:gde,visitorOptions:{keyMap:zhe,nodeTypeGetter:su}})},Zh=t=>(e,r={})=>yde(e,{specPath:t,...r});Ja.refract=Zh(["visitors","document","objects","JSONSchema","$visitor"]);Wa.refract=Zh(["visitors","document","objects","JSONReference","$visitor"]);ru.refract=Zh(["visitors","document","objects","Media","$visitor"]);nu.refract=Zh(["visitors","document","objects","LinkDescription","$visitor"]);let Qh=class extends Ja{constructor(e,r,n){super(e,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new ot("idProp getter in Schema class is not not supported.")}set idProp(e){throw new ot("idProp setter in Schema class is not not supported.")}get $schema(){throw new ot("$schema getter in Schema class is not not supported.")}set $schema(e){throw new ot("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new ot("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new ot("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new ot("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new ot("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new ot("definitions getter in Schema class is not not supported.")}set definitions(e){throw new ot("definitions setter in Schema class is not not supported.")}get base(){throw new ot("base getter in Schema class is not not supported.")}set base(e){throw new ot("base setter in Schema class is not not supported.")}get links(){throw new ot("links getter in Schema class is not not supported.")}set links(e){throw new ot("links setter in Schema class is not not supported.")}get media(){throw new ot("media getter in Schema class is not not supported.")}set media(e){throw new ot("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}},iu=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="securityRequirement"}},ou=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}},au=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}},cu=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}},ed=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}},td=class extends Ne{constructor(e,r,n){super(e,r,n),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}};const vde={namespace:t=>{const{base:e}=t;return e.register("callback",Fl),e.register("components",Bl),e.register("contact",Ll),e.register("discriminator",Ul),e.register("encoding",Kh),e.register("example",Vl),e.register("externalDocumentation",ql),e.register("header",qa),e.register("info",zl),e.register("license",Jl),e.register("link",Wl),e.register("mediaType",Hl),e.register("oAuthFlow",Gh),e.register("oAuthFlows",Yh),e.register("openapi",Kl),e.register("openApi3_0",Xh),e.register("operation",Gl),e.register("parameter",za),e.register("pathItem",Yl),e.register("paths",Xl),e.register("reference",Zl),e.register("requestBody",Ql),e.register("response",eu),e.register("responses",tu),e.register("schema",Qh),e.register("securityRequirement",iu),e.register("securityScheme",ou),e.register("server",au),e.register("serverVariable",cu),e.register("tag",ed),e.register("xml",td),e}},Af=class Af extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(Af.primaryClass)}};H(Af,"primaryClass","servers");let df=Af;const Of=class Of extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(Of.primaryClass)}};H(Of,"primaryClass","security");let av=Of;const Cf=class Cf extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(Cf.primaryClass)}};H(Cf,"primaryClass","tags");let cv=Cf;const $f=class $f extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push($f.primaryClass)}};H($f,"primaryClass","server-variables");let lv=$f;const Tf=class Tf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Tf.primaryClass)}};H(Tf,"primaryClass","components-schemas");let mf=Tf;const If=class If extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(If.primaryClass)}};H(If,"primaryClass","components-responses");let uv=If;const Rf=class Rf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Rf.primaryClass),this.classes.push("parameters")}};H(Rf,"primaryClass","components-parameters");let pv=Rf;const Pf=class Pf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Pf.primaryClass),this.classes.push("examples")}};H(Pf,"primaryClass","components-examples");let fv=Pf;const kf=class kf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(kf.primaryClass)}};H(kf,"primaryClass","components-request-bodies");let hv=kf;const jf=class jf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(jf.primaryClass)}};H(jf,"primaryClass","components-headers");let dv=jf;const Nf=class Nf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Nf.primaryClass)}};H(Nf,"primaryClass","components-security-schemes");let mv=Nf;const Mf=class Mf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Mf.primaryClass)}};H(Mf,"primaryClass","components-links");let gv=Mf;const Df=class Df extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Df.primaryClass)}};H(Df,"primaryClass","components-callbacks");let yv=Df;const Ff=class Ff extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(Ff.primaryClass),this.classes.push("servers")}};H(Ff,"primaryClass","path-item-servers");let vv=Ff;const Bf=class Bf extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(Bf.primaryClass),this.classes.push("parameters")}};H(Bf,"primaryClass","path-item-parameters");let bv=Bf;const Lf=class Lf extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(Lf.primaryClass),this.classes.push("parameters")}};H(Lf,"primaryClass","operation-parameters");let gf=Lf;const Uf=class Uf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Uf.primaryClass),this.classes.push("examples")}};H(Uf,"primaryClass","parameter-examples");let Ev=Uf;const Vf=class Vf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Vf.primaryClass),this.classes.push("content")}};H(Vf,"primaryClass","parameter-content");let Sv=Vf;const qf=class qf extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(qf.primaryClass)}};H(qf,"primaryClass","operation-tags");let wv=qf;const zf=class zf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(zf.primaryClass)}};H(zf,"primaryClass","operation-callbacks");let _v=zf;const Jf=class Jf extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(Jf.primaryClass),this.classes.push("security")}};H(Jf,"primaryClass","operation-security");let yf=Jf;var Wi;let bde=(Wi=class extends Ft{constructor(e,r,n){super(e,r,n),this.classes.push(Wi.primaryClass),this.classes.push("servers")}},H(Wi,"primaryClass","operation-servers"),Wi);const Wf=class Wf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Wf.primaryClass),this.classes.push("content")}};H(Wf,"primaryClass","request-body-content");let xv=Wf;const Hf=class Hf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Hf.primaryClass),this.classes.push("examples")}};H(Hf,"primaryClass","media-type-examples");let Av=Hf;const Kf=class Kf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Kf.primaryClass)}};H(Kf,"primaryClass","media-type-encoding");let Ov=Kf;const Gf=class Gf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Gf.primaryClass)}};H(Gf,"primaryClass","encoding-headers");let Cv=Gf;const Yf=class Yf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Yf.primaryClass)}};H(Yf,"primaryClass","response-headers");let $v=Yf;const Xf=class Xf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Xf.primaryClass),this.classes.push("content")}};H(Xf,"primaryClass","response-content");let Tv=Xf;const Zf=class Zf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Zf.primaryClass)}};H(Zf,"primaryClass","response-links");let Iv=Zf;const Qf=class Qf extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(Qf.primaryClass)}};H(Qf,"primaryClass","discriminator-mapping");let Rv=Qf;const eh=class eh extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(eh.primaryClass)}};H(eh,"primaryClass","oauth-flow-scopes");let Pv=eh;const th=class th extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(th.primaryClass)}};H(th,"primaryClass","link-parameters");let kv=th;const rh=class rh extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(rh.primaryClass),this.classes.push("examples")}};H(rh,"primaryClass","header-examples");let jv=rh;const nh=class nh extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(nh.primaryClass),this.classes.push("content")}};H(nh,"primaryClass","header-content");let Nv=nh;const Ede=t=>{if(Zt(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Sde={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...xs};class iP{constructor(e={}){H(this,"element");Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=_n(r.meta,e.meta)),Ua(e)&&xE(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=_n(r.attributes,e.attributes))}}class je extends iP{enter(e){return this.element=Le(e),ht}}class Gn extends iP{constructor({specObj:r,passingOptionsNames:n,openApiGenericElement:s,openApiSemanticElement:i,...o}){super({...o});H(this,"specObj");H(this,"passingOptionsNames",["specObj","openApiGenericElement","openApiSemanticElement"]);H(this,"openApiGenericElement");H(this,"openApiSemanticElement");this.specObj=r,this.openApiGenericElement=s,this.openApiSemanticElement=i,Array.isArray(n)&&(this.passingOptionsNames=n)}retrievePassingOptions(){return gI(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=pr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return hE(mo,["visitors",...r],this.specObj)?pr(["visitors",...r],this.specObj):pr(["visitors",...r,"$visitor"],this.specObj)}retrieveVisitorInstance(r,n={}){const s=this.retrievePassingOptions(),i=this.retrieveVisitor(r),o={...s,...n};return new i(o)}toRefractedElement(r,n,s={}){const i=this.retrieveVisitorInstance(r,s);return i instanceof je&&(i==null?void 0:i.constructor)===je?Le(n):(rr(n,i,s),i.element)}}const kt=t=>yt(t)&&t.hasKey("$ref"),wde=yt,_de=yt,oP=t=>Xe(t.key)&&yle("x-",we(t.key));class it extends Gn{constructor({specPath:r,ignoredFields:n,canSupportSpecificationExtensions:s,specificationExtensionPredicate:i,...o}){super({...o});H(this,"specPath");H(this,"ignoredFields");H(this,"canSupportSpecificationExtensions",!0);H(this,"specificationExtensionPredicate",oP);this.specPath=r,this.ignoredFields=n||[],typeof s=="boolean"&&(this.canSupportSpecificationExtensions=s),typeof i=="function"&&(this.specificationExtensionPredicate=i)}ObjectElement(r){const n=this.specPath(r),s=this.retrieveFixedFields(n);return r.forEach((i,o,a)=>{if(Xe(o)&&s.includes(we(o))&&!this.ignoredFields.includes(we(o))){const c=this.toRefractedElement([...n,"fixedFields",we(o)],i),l=new Rl(Le(o),c);this.copyMetaAndAttributes(a,l),l.classes.push("fixed-field"),this.element.content.push(l)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(a)){const c=this.toRefractedElement(["document","extension"],a);this.element.content.push(c)}else this.ignoredFields.includes(we(o))||this.element.content.push(Le(a))}),this.copyMetaAndAttributes(r,this.element),ht}}class xde extends Ie(it,je){constructor(e){super(e),this.element=new Xh,this.specPath=Ye(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return it.prototype.ObjectElement.call(this,e)}}class Ade extends Ie(Gn,je){StringElement(e){const r=new Kl(we(e));return this.copyMetaAndAttributes(e,r),this.element=r,ht}}class Ode extends Gn{MemberElement(e){return this.element=Le(e),this.element.classes.push("specification-extension"),ht}}let Cde=class extends Ie(it,je){constructor(e){super(e),this.element=new zl,this.specPath=Ye(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};class $de extends je{StringElement(e){const r=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}}let Tde=class extends Ie(it,je){constructor(e){super(e),this.element=new Ll,this.specPath=Ye(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},Ide=class extends Ie(it,je){constructor(e){super(e),this.element=new Jl,this.specPath=Ye(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},Rde=class extends Ie(it,je){constructor(e){super(e),this.element=new Wl,this.specPath=Ye(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=it.prototype.ObjectElement.call(this,e);return(Xe(this.element.operationId)||Xe(this.element.operationRef))&&this.element.classes.push("reference-element"),r}};class Pde extends je{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class kde extends je{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class xa extends Gn{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:s,canSupportSpecificationExtensions:i,specificationExtensionPredicate:o,...a}){super({...a});H(this,"specPath");H(this,"ignoredFields");H(this,"fieldPatternPredicate",eE);H(this,"canSupportSpecificationExtensions",!1);H(this,"specificationExtensionPredicate",oP);this.specPath=r,this.ignoredFields=n||[],typeof s=="function"&&(this.fieldPatternPredicate=s),typeof i=="boolean"&&(this.canSupportSpecificationExtensions=i),typeof o=="function"&&(this.specificationExtensionPredicate=o)}ObjectElement(r){return r.forEach((n,s,i)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(i)){const o=this.toRefractedElement(["document","extension"],i);this.element.content.push(o)}else if(!this.ignoredFields.includes(we(s))&&this.fieldPatternPredicate(we(s))){const o=this.specPath(n),a=this.toRefractedElement(o,n),c=new Rl(Le(s),a);this.copyMetaAndAttributes(i,c),c.classes.push("patterned-field"),this.element.content.push(c)}else this.ignoredFields.includes(we(s))||this.element.content.push(Le(i))}),this.copyMetaAndAttributes(r,this.element),ht}}class nt extends xa{constructor(e){super(e),this.fieldPatternPredicate=Bh}}let jde=class extends Ie(nt,je){constructor(e){super(e),this.element=new kv,this.specPath=Ye(["value"])}},Nde=class extends Ie(it,je){constructor(e){super(e),this.element=new au,this.specPath=Ye(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};class Mde extends je{StringElement(e){const r=super.enter(e);return this.element.classes.push("server-url"),r}}let UE=class extends Ie(Gn,je){constructor(e){super(e),this.element=new df}ArrayElement(e){return e.forEach(r=>{const n=wde(r)?["document","objects","Server"]:["value"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ht}},Dde=class extends Ie(it,je){constructor(e){super(e),this.element=new cu,this.specPath=Ye(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class Fde extends Ie(nt,je){constructor(e){super(e),this.element=new lv,this.specPath=Ye(["document","objects","ServerVariable"])}}let Bde=class extends Ie(it,je){constructor(e){super(e),this.element=new Hl,this.specPath=Ye(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class Es extends Gn{constructor({alternator:r,...n}){super({...n});H(this,"alternator");this.alternator=r||[]}enter(r){const n=this.alternator.map(({predicate:i,specPath:o})=>uE(i,Ye(o),Fh)),s=OI(n)(r);return this.element=this.toRefractedElement(s,r),ht}}const Lde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Fl||t(n)&&e("callback",n)&&r("object",n)),Ude=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Bl||t(n)&&e("components",n)&&r("object",n)),Vde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ll||t(n)&&e("contact",n)&&r("object",n)),qde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Vl||t(n)&&e("example",n)&&r("object",n)),zde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ql||t(n)&&e("externalDocumentation",n)&&r("object",n)),Ha=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof qa||t(n)&&e("header",n)&&r("object",n)),Jde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof zl||t(n)&&e("info",n)&&r("object",n)),Wde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Jl||t(n)&&e("license",n)&&r("object",n)),Hde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Wl||t(n)&&e("link",n)&&r("object",n)),Kde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kl||t(n)&&e("openapi",n)&&r("string",n)),Gde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>s=>s instanceof Xh||t(s)&&e("openApi3_0",s)&&r("object",s)&&n("api",s)),aP=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Gl||t(n)&&e("operation",n)&&r("object",n)),Yde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof za||t(n)&&e("parameter",n)&&r("object",n)),VE=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yl||t(n)&&e("pathItem",n)&&r("object",n)),Xde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xl||t(n)&&e("paths",n)&&r("object",n)),Tt=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zl||t(n)&&e("reference",n)&&r("object",n)),Zde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ql||t(n)&&e("requestBody",n)&&r("object",n)),rd=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof eu||t(n)&&e("response",n)&&r("object",n)),Qde=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tu||t(n)&&e("responses",n)&&r("object",n)),eme=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qh||t(n)&&e("schema",n)&&r("object",n)),tme=t=>Pl(t)&&t.classes.includes("boolean-json-schema"),rme=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof iu||t(n)&&e("securityRequirement",n)&&r("object",n)),nme=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ou||t(n)&&e("securityScheme",n)&&r("object",n)),sme=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof au||t(n)&&e("server",n)&&r("object",n)),ime=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cu||t(n)&&e("serverVariable",n)&&r("object",n)),nd=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Hl||t(n)&&e("mediaType",n)&&r("object",n)),cP=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>s=>s instanceof df||t(s)&&e("array",s)&&r("array",s)&&n("servers",s)),ome=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ul||t(n)&&e("discriminator",n)&&r("object",n)),ame=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:tme,isCallbackElement:Lde,isComponentsElement:Ude,isContactElement:Vde,isDiscriminatorElement:ome,isExampleElement:qde,isExternalDocumentationElement:zde,isHeaderElement:Ha,isInfoElement:Jde,isLicenseElement:Wde,isLinkElement:Hde,isMediaTypeElement:nd,isOpenApi3_0Element:Gde,isOpenapiElement:Kde,isOperationElement:aP,isParameterElement:Yde,isPathItemElement:VE,isPathsElement:Xde,isReferenceElement:Tt,isRequestBodyElement:Zde,isResponseElement:rd,isResponsesElement:Qde,isSchemaElement:eme,isSecurityRequirementElement:rme,isSecuritySchemeElement:nme,isServerElement:sme,isServerVariableElement:ime,isServersElement:cP},Symbol.toStringTag,{value:"Module"}));let cme=class extends Ie(Es,je){constructor(e){super(e),this.alternator=[{predicate:kt,specPath:["document","objects","Reference"]},{predicate:Ws,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Es.prototype.enter.call(this,e);return Tt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},qE=class extends Ie(nt,je){constructor(e){super(e),this.element=new Ne,this.element.classes.push("examples"),this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}},lme=class extends qE{constructor(e){super(e),this.element=new Av}},ume=class extends Ie(nt,je){constructor(e){super(e),this.element=new Ov,this.specPath=Ye(["document","objects","Encoding"])}},pme=class extends Ie(nt,je){constructor(e){super(e),this.element=new iu,this.specPath=Ye(["value"])}},fme=class extends Ie(Gn,je){constructor(e){super(e),this.element=new av}ArrayElement(e){return e.forEach(r=>{if(yt(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(Le(r))}),this.copyMetaAndAttributes(e,this.element),ht}},hme=class extends Ie(it,je){constructor(e){super(e),this.element=new Bl,this.specPath=Ye(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},dme=class extends Ie(it,je){constructor(e){super(e),this.element=new ed,this.specPath=Ye(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},mme=class extends Ie(it,je){constructor(e){super(e),this.element=new Zl,this.specPath=Ye(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const r=it.prototype.ObjectElement.call(this,e);return Xe(this.element.$ref)&&this.element.classes.push("reference-element"),r}},gme=class extends je{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},yme=class extends Ie(it,je){constructor(e){super(e),this.element=new za,this.specPath=Ye(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=it.prototype.ObjectElement.call(this,e);return yt(this.element.contentProp)&&this.element.contentProp.filter(nd).forEach((n,s)=>{n.setMetaProperty("media-type",we(s))}),r}},vme=class extends Ie(Es,je){constructor(e){super(e),this.alternator=[{predicate:kt,specPath:["document","objects","Reference"]},{predicate:Ws,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Es.prototype.enter.call(this,e);return Tt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},bme=class extends Ie(it,je){constructor(e){super(e),this.element=new qa,this.specPath=Ye(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},Eme=class extends Ie(Es,je){constructor(e){super(e),this.alternator=[{predicate:kt,specPath:["document","objects","Reference"]},{predicate:Ws,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Es.prototype.enter.call(this,e);return Tt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Sme=class extends qE{constructor(e){super(e),this.element=new jv}},sd=class extends Ie(nt,je){constructor(e){super(e),this.element=new Ne,this.element.classes.push("content"),this.specPath=Ye(["document","objects","MediaType"])}},wme=class extends sd{constructor(e){super(e),this.element=new Nv}},_me=class extends Ie(it,je){constructor(e){super(e),this.element=new Qh,this.specPath=Ye(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const z2=br.visitors.document.objects.JSONSchema.fixedFields.allOf;let xme=class extends z2{ArrayElement(e){const r=z2.prototype.ArrayElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const J2=br.visitors.document.objects.JSONSchema.fixedFields.anyOf;let Ame=class extends J2{ArrayElement(e){const r=J2.prototype.ArrayElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const W2=br.visitors.document.objects.JSONSchema.fixedFields.oneOf;let Ome=class extends W2{ArrayElement(e){const r=W2.prototype.ArrayElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const H2=br.visitors.document.objects.JSONSchema.fixedFields.items;let Cme=class extends H2{ObjectElement(e){const r=H2.prototype.ObjectElement.call(this,e);return Tt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(e){return this.enter(e)}};const K2=br.visitors.document.objects.JSONSchema.fixedFields.properties;let $me=class extends K2{ObjectElement(e){const r=K2.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const Tme=br.visitors.document.objects.JSONSchema.fixedFields.type;class Ime extends Tme{ArrayElement(e){return this.enter(e)}}const G2=br.visitors.JSONSchemaOrJSONReferenceVisitor;class Y2 extends G2{ObjectElement(e){const r=G2.prototype.enter.call(this,e);return Tt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}let Rme=class extends Ie(it,je){constructor(e){super(e),this.element=new Ul,this.specPath=Ye(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class Pme extends Ie(nt,je){constructor(e){super(e),this.element=new Rv,this.specPath=Ye(["value"])}}let kme=class extends Ie(it,je){constructor(e){super(e),this.element=new td,this.specPath=Ye(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},jme=class extends qE{constructor(e){super(e),this.element=new Ev}},Nme=class extends sd{constructor(e){super(e),this.element=new Sv}},Mme=class extends Ie(nt,je){constructor(e){super(e),this.element=new mf,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}},Dme=class extends Ie(nt,je){constructor(e){super(e),this.element=new uv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(rd).forEach((n,s)=>{n.setMetaProperty("http-status-code",we(s))}),r}},Fme=class extends Ie(nt,je){constructor(e){super(e),this.element=new pv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","parameter")}),r}},Bme=class extends Ie(nt,je){constructor(e){super(e),this.element=new fv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}};class Lme extends Ie(nt,je){constructor(e){super(e),this.element=new hv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","requestBody")}),r}}let Ume=class extends Ie(nt,je){constructor(e){super(e),this.element=new dv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.filter(Ha).forEach((n,s)=>{n.setMetaProperty("header-name",we(s))}),r}};class Vme extends Ie(nt,je){constructor(e){super(e),this.element=new mv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","securityScheme")}),r}}let qme=class extends Ie(nt,je){constructor(e){super(e),this.element=new gv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}},zme=class extends Ie(nt,je){constructor(e){super(e),this.element=new yv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}},Jme=class extends Ie(it,je){constructor(e){super(e),this.element=new Vl,this.specPath=Ye(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=it.prototype.ObjectElement.call(this,e);return Xe(this.element.externalValue)&&this.element.classes.push("reference-element"),r}};class Wme extends je{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}let Hme=class extends Ie(it,je){constructor(e){super(e),this.element=new ql,this.specPath=Ye(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},Kme=class extends Ie(it,je){constructor(e){super(e),this.element=new Kh,this.specPath=Ye(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=it.prototype.ObjectElement.call(this,e);return yt(this.element.headers)&&this.element.headers.filter(Ha).forEach((n,s)=>{n.setMetaProperty("header-name",we(s))}),r}},Gme=class extends Ie(nt,je){constructor(e){super(e),this.element=new Cv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,s)=>{if(!Ha(n))return;const i=we(s);n.setMetaProperty("headerName",i)}),r}},Yme=class extends Ie(xa,je){constructor(e){super(e),this.element=new Xl,this.specPath=Ye(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ws}ObjectElement(e){const r=xa.prototype.ObjectElement.call(this,e);return this.element.filter(VE).forEach((n,s)=>{s.classes.push("openapi-path-template"),s.classes.push("path-template"),n.setMetaProperty("path",Le(s))}),r}},Xme=class extends Ie(it,je){constructor(e){super(e),this.element=new Ql,this.specPath=Ye(["document","objects","RequestBody"])}ObjectElement(e){const r=it.prototype.ObjectElement.call(this,e);return yt(this.element.contentProp)&&this.element.contentProp.filter(nd).forEach((n,s)=>{n.setMetaProperty("media-type",we(s))}),r}},Zme=class extends sd{constructor(e){super(e),this.element=new xv}},Qme=class extends Ie(xa,je){constructor(e){super(e),this.element=new Fl,this.specPath=Ye(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(VE).forEach((n,s)=>{n.setMetaProperty("runtime-expression",we(s))}),r}},ege=class extends Ie(it,je){constructor(e){super(e),this.element=new eu,this.specPath=Ye(["document","objects","Response"])}ObjectElement(e){const r=it.prototype.ObjectElement.call(this,e);return yt(this.element.contentProp)&&this.element.contentProp.filter(nd).forEach((n,s)=>{n.setMetaProperty("media-type",we(s))}),yt(this.element.headers)&&this.element.headers.filter(Ha).forEach((n,s)=>{n.setMetaProperty("header-name",we(s))}),r}};class tge extends Ie(nt,je){constructor(e){super(e),this.element=new $v,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,s)=>{if(!Ha(n))return;const i=we(s);n.setMetaProperty("header-name",i)}),r}}class rge extends sd{constructor(e){super(e),this.element=new Tv}}class nge extends Ie(nt,je){constructor(e){super(e),this.element=new Iv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}}class X2 extends Ie(it,xa){constructor({specPathFixedFields:r,specPathPatternedFields:n,...s}){super({...s});H(this,"specPathFixedFields");H(this,"specPathPatternedFields");this.specPathFixedFields=r,this.specPathPatternedFields=n}ObjectElement(r){const{specPath:n,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const i=this.retrieveFixedFields(this.specPath(r));this.ignoredFields=[...s,...Fce(r.keys(),i)],it.prototype.ObjectElement.call(this,r),this.specPath=this.specPathPatternedFields,this.ignoredFields=i,xa.prototype.ObjectElement.call(this,r)}catch(i){throw this.specPath=n,i}return ht}}let sge=class extends Ie(X2,je){constructor(e){super(e),this.element=new tu,this.specPathFixedFields=Ye(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>kt(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${dle(100,600).join("|")})$`).test(String(r))}ObjectElement(e){const r=X2.prototype.ObjectElement.call(this,e);return this.element.filter(Tt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(rd).forEach((n,s)=>{const i=Le(s);this.fieldPatternPredicate(we(i))&&n.setMetaProperty("http-status-code",i)}),r}};class ige extends Ie(Es,je){constructor(e){super(e),this.alternator=[{predicate:kt,specPath:["document","objects","Reference"]},{predicate:Ws,specPath:["document","objects","Response"]}]}ObjectElement(e){const r=Es.prototype.enter.call(this,e);return Tt(this.element)?this.element.setMetaProperty("referenced-element","response"):rd(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}let oge=class extends Ie(it,je){constructor(e){super(e),this.element=new Gl,this.specPath=Ye(["document","objects","Operation"])}},age=class extends je{constructor(e){super(e),this.element=new wv}ArrayElement(e){return this.element=this.element.concat(Le(e)),ht}},lP=class extends Ie(Gn,je){constructor(e){super(e),this.element=new Ft,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach(r=>{const n=kt(r)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(n,r);Tt(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ht}},cge=class extends lP{constructor(e){super(e),this.element=new gf}},lge=class extends Es{constructor(e){super(e),this.alternator=[{predicate:kt,specPath:["document","objects","Reference"]},{predicate:Ws,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const r=Es.prototype.enter.call(this,e);return Tt(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class uge extends Ie(nt,je){constructor(r){super(r);H(this,"specPath");this.element=new _v,this.specPath=n=>kt(n)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(r){const n=nt.prototype.ObjectElement.call(this,r);return this.element.filter(Tt).forEach(s=>{s.setMetaProperty("referenced-element","callback")}),n}}class pge extends Ie(Gn,je){constructor(e){super(e),this.element=new yf}ArrayElement(e){return e.forEach(r=>{const n=yt(r)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ht}}let fge=class extends UE{constructor(e){super(e),this.element=new bde}},hge=class extends Ie(it,je){constructor(e){super(e),this.element=new Yl,this.specPath=Ye(["document","objects","PathItem"])}ObjectElement(e){const r=it.prototype.ObjectElement.call(this,e);return this.element.filter(aP).forEach((n,s)=>{const i=Le(s);i.content=we(i).toUpperCase(),n.setMetaProperty("http-method",i)}),Xe(this.element.$ref)&&this.element.classes.push("reference-element"),r}};class dge extends je{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class mge extends UE{constructor(e){super(e),this.element=new vv}}class gge extends lP{constructor(e){super(e),this.element=new bv}}let yge=class extends Ie(it,je){constructor(e){super(e),this.element=new ou,this.specPath=Ye(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},vge=class extends Ie(it,je){constructor(e){super(e),this.element=new Yh,this.specPath=Ye(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},bge=class extends Ie(it,je){constructor(e){super(e),this.element=new Gh,this.specPath=Ye(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class Ege extends Ie(nt,je){constructor(e){super(e),this.element=new Pv,this.specPath=Ye(["value"])}}class Sge extends Ie(Gn,je){constructor(e){super(e),this.element=new cv}ArrayElement(e){return e.forEach(r=>{const n=_de(r)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(n,r);this.element.push(s)}),this.copyMetaAndAttributes(e,this.element),ht}}const{fixedFields:ir}=br.visitors.document.objects.JSONSchema,ve={visitors:{value:je,document:{objects:{OpenApi:{$visitor:xde,fixedFields:{openapi:Ade,info:{$ref:"#/visitors/document/objects/Info"},servers:UE,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:fme,tags:Sge,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Cde,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:$de}},Contact:{$visitor:Tde,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Ide,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Nde,fixedFields:{url:Mde,description:{$ref:"#/visitors/value"},variables:Fde}},ServerVariable:{$visitor:Dde,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:hme,fixedFields:{schemas:Mme,responses:Dme,parameters:Fme,examples:Bme,requestBodies:Lme,headers:Ume,securitySchemes:Vme,links:qme,callbacks:zme}},Paths:{$visitor:Yme},PathItem:{$visitor:hge,fixedFields:{$ref:dge,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:mge,parameters:gge}},Operation:{$visitor:oge,fixedFields:{tags:age,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:cge,requestBody:lge,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:uge,deprecated:{$ref:"#/visitors/value"},security:pge,servers:fge}},ExternalDocumentation:{$visitor:Hme,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:yme,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:vme,example:{$ref:"#/visitors/value"},examples:jme,content:Nme}},RequestBody:{$visitor:Xme,fixedFields:{description:{$ref:"#/visitors/value"},content:Zme,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Bde,fixedFields:{schema:cme,example:{$ref:"#/visitors/value"},examples:lme,encoding:ume}},Encoding:{$visitor:Kme,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Gme,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:sge,fixedFields:{default:ige}},Response:{$visitor:ege,fixedFields:{description:{$ref:"#/visitors/value"},headers:tge,content:rge,links:nge}},Callback:{$visitor:Qme},Example:{$visitor:Jme,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Wme}},Link:{$visitor:Rde,fixedFields:{operationRef:Pde,operationId:kde,parameters:jde,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:bme,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Eme,example:{$ref:"#/visitors/value"},examples:Sme,content:wme}},Tag:{$visitor:dme,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:mme,fixedFields:{$ref:gme}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:_me,fixedFields:{title:ir.title,multipleOf:ir.multipleOf,maximum:ir.maximum,exclusiveMaximum:ir.exclusiveMaximum,minimum:ir.minimum,exclusiveMinimum:ir.exclusiveMinimum,maxLength:ir.maxLength,minLength:ir.minLength,pattern:ir.pattern,maxItems:ir.maxItems,minItems:ir.minItems,uniqueItems:ir.uniqueItems,maxProperties:ir.maxProperties,minProperties:ir.minProperties,required:ir.required,enum:ir.enum,type:Ime,allOf:xme,anyOf:Ame,oneOf:Ome,not:Y2,items:Cme,properties:$me,additionalProperties:Y2,description:ir.description,format:ir.format,default:ir.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Rme,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Pme}},XML:{$visitor:kme,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:yge,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:vge,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:bge,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Ege}},SecurityRequirement:{$visitor:pme}},extension:{$visitor:Ode}}}},wge=()=>{const t=Gs(vde);return{predicates:{...ame,isElement:Zt,isStringElement:Xe,isArrayElement:wr,isObjectElement:yt,isMemberElement:Kn,includesClasses:Sa,hasElementSourceMap:Ua},namespace:t}},_ge=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=vo(t),s=Ai(ve),i=pr(e,s),o=new i({specObj:s});return rr(n,o),Ys(o.element,r,{toolboxCreator:wge,visitorOptions:{keyMap:Sde,nodeTypeGetter:Ede}})},Et=t=>(e,r={})=>_ge(e,{specPath:t,...r});Fl.refract=Et(["visitors","document","objects","Callback","$visitor"]);Bl.refract=Et(["visitors","document","objects","Components","$visitor"]);Ll.refract=Et(["visitors","document","objects","Contact","$visitor"]);Vl.refract=Et(["visitors","document","objects","Example","$visitor"]);Ul.refract=Et(["visitors","document","objects","Discriminator","$visitor"]);Kh.refract=Et(["visitors","document","objects","Encoding","$visitor"]);ql.refract=Et(["visitors","document","objects","ExternalDocumentation","$visitor"]);qa.refract=Et(["visitors","document","objects","Header","$visitor"]);zl.refract=Et(["visitors","document","objects","Info","$visitor"]);Jl.refract=Et(["visitors","document","objects","License","$visitor"]);Wl.refract=Et(["visitors","document","objects","Link","$visitor"]);Hl.refract=Et(["visitors","document","objects","MediaType","$visitor"]);Gh.refract=Et(["visitors","document","objects","OAuthFlow","$visitor"]);Yh.refract=Et(["visitors","document","objects","OAuthFlows","$visitor"]);Kl.refract=Et(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Xh.refract=Et(["visitors","document","objects","OpenApi","$visitor"]);Gl.refract=Et(["visitors","document","objects","Operation","$visitor"]);za.refract=Et(["visitors","document","objects","Parameter","$visitor"]);Yl.refract=Et(["visitors","document","objects","PathItem","$visitor"]);Xl.refract=Et(["visitors","document","objects","Paths","$visitor"]);Zl.refract=Et(["visitors","document","objects","Reference","$visitor"]);Ql.refract=Et(["visitors","document","objects","RequestBody","$visitor"]);eu.refract=Et(["visitors","document","objects","Response","$visitor"]);tu.refract=Et(["visitors","document","objects","Responses","$visitor"]);Qh.refract=Et(["visitors","document","objects","Schema","$visitor"]);iu.refract=Et(["visitors","document","objects","SecurityRequirement","$visitor"]);ou.refract=Et(["visitors","document","objects","SecurityScheme","$visitor"]);au.refract=Et(["visitors","document","objects","Server","$visitor"]);cu.refract=Et(["visitors","document","objects","ServerVariable","$visitor"]);ed.refract=Et(["visitors","document","objects","Tag","$visitor"]);td.refract=Et(["visitors","document","objects","XML","$visitor"]);class id extends Fl{}class od extends Bl{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}}let ad=class extends Ll{};class zE extends Ul{}class JE extends Kh{}let cd=class extends Vl{};class ld extends ql{}class ud extends qa{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}let pd=class extends zl{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};const sh=class sh extends yo{constructor(e,r,n){super(e,r,n),this.element="jsonSchemaDialect"}};H(sh,"default",new sh("https://spec.openapis.org/oas/3.1/dialect/base"));let no=sh,fd=class extends Jl{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},hd=class extends Wl{};class dd extends Hl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class WE extends Gh{}class HE extends Yh{}class KE extends Kl{}class Ci extends Ne{constructor(e,r,n){super(e,r,n),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}let lu=class extends Gl{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};class md extends za{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class gi extends Yl{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}}class gd extends Xl{}class $i extends Zl{}Object.defineProperty($i.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});Object.defineProperty($i.prototype,"summary",{get(){return this.get("summary")},set(t){this.set("summary",t)},enumerable:!0});class yd extends Ql{}let vd=class extends eu{},bd=class extends tu{},uu=class extends Ja{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new ot("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new ot("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}},pu=class extends nu{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new ot("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new ot("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new ot("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new ot("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new ot("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new ot("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};const xge={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft6",uu),e.register("jSONReference",Wa),e.register("media",ru),e.register("linkDescription",pu),e}},Age={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...xs};let uP=class extends rP{constructor(e){super(e),this.element=new uu}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const r=this.enter(e);return this.element.classes.push("boolean-json-schema"),r}handleSchemaIdentifier(e,r="$id"){return super.handleSchemaIdentifier(e,r)}},Oge=class extends nP{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ht}};class Cge extends vt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-examples"),r}}let pP=class extends sP{constructor(e){super(e),this.element=new pu}};const yr=_r(Pe(["visitors","document","objects","JSONSchema","$visitor"],uP),en(["visitors","document","objects","JSONSchema","fixedFields","id"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$id"],br.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],br.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],Oge),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],br.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","const"],br.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","examples"],Cge),Pe(["visitors","document","objects","LinkDescription","$visitor"],pP),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],br.visitors.JSONSchemaOrJSONReferenceVisitor),en(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],br.visitors.JSONSchemaOrJSONReferenceVisitor),en(["visitors","document","objects","LinkDescription","fixedFields","method"]),en(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],br.visitors.value))(br),$ge=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof uu||t(n)&&e("JSONSchemaDraft6",n)&&r("object",n)),Tge=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pu||t(n)&&e("linkDescription",n)&&r("object",n)),Ige=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:LE,isJSONSchemaElement:$ge,isLinkDescriptionElement:Tge,isMediaElement:tP},Symbol.toStringTag,{value:"Module"})),Rge=()=>{const t=Gs(xge);return{predicates:{...Ige,isStringElement:Xe},namespace:t}},Pge=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=yr}={})=>{const s=vo(t),i=Ai(n),o=pr(e,i),a=new o({specObj:i});return rr(s,a),Ys(a.element,r,{toolboxCreator:Rge,visitorOptions:{keyMap:Age,nodeTypeGetter:su}})},fP=t=>(e,r={})=>Pge(e,{specPath:t,...r});uu.refract=fP(["visitors","document","objects","JSONSchema","$visitor"]);pu.refract=fP(["visitors","document","objects","LinkDescription","$visitor"]);let fu=class extends uu{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new ot('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new ot('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}},hu=class extends pu{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new ot("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new ot("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new ot("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new ot("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const kge={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft7",fu),e.register("jSONReference",Wa),e.register("linkDescription",hu),e}},jge={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...xs};let hP=class extends uP{constructor(e){super(e),this.element=new fu}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},dP=class extends pP{constructor(e){super(e),this.element=new hu}};const ai=_r(Pe(["visitors","document","objects","JSONSchema","$visitor"],hP),Pe(["visitors","document","objects","JSONSchema","fixedFields","$comment"],yr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],yr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],yr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],yr.visitors.JSONSchemaOrJSONReferenceVisitor),en(["visitors","document","objects","JSONSchema","fixedFields","media"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],yr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],yr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],yr.visitors.value),Pe(["visitors","document","objects","LinkDescription","$visitor"],dP),Pe(["visitors","document","objects","LinkDescription","fixedFields","anchor"],yr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],yr.visitors.value),en(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],yr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],yr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","description"],yr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","$comment"],yr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],yr.visitors.JSONSchemaOrJSONReferenceVisitor),en(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],yr.visitors.value))(yr),Nge=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fu||t(n)&&e("JSONSchemaDraft7",n)&&r("object",n)),Mge=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hu||t(n)&&e("linkDescription",n)&&r("object",n)),Dge=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:LE,isJSONSchemaElement:Nge,isLinkDescriptionElement:Mge},Symbol.toStringTag,{value:"Module"})),Fge=()=>{const t=Gs(kge);return{predicates:{...Dge,isStringElement:Xe},namespace:t}},Bge=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=ai}={})=>{const s=vo(t),i=Ai(n),o=pr(e,i),a=new o({specObj:i});return rr(s,a),Ys(a.element,r,{toolboxCreator:Fge,visitorOptions:{keyMap:jge,nodeTypeGetter:su}})},mP=t=>(e,r={})=>Bge(e,{specPath:t,...r});fu.refract=mP(["visitors","document","objects","JSONSchema","$visitor"]);hu.refract=mP(["visitors","document","objects","LinkDescription","$visitor"]);let du=class extends fu{constructor(e,r,n){super(e,r,n),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new ot("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new ot("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new ot("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new ot("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}},mu=class extends hu{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Lge={namespace:t=>{const{base:e}=t;return e.register("jSONSchema201909",du),e.register("linkDescription",mu),e}},Uge={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...xs};let vr=class extends hP{constructor(e){super(e),this.element=new du}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=ro.prototype.ObjectElement.call(this,e);return Xe(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}};class Vge extends vt{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),r}}class qge extends vt{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}let gP=class extends Ie(Oi,nr,vt){constructor(e){super(e),this.element=new Ne,this.element.classes.push("json-schema-$defs"),this.specPath=Ye(["document","objects","JSONSchema"])}},yP=class extends Ie(on,nr,vt){constructor(e){super(e),this.element=new Ft,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),ht}},vP=class extends Ie(on,nr,vt){constructor(e){super(e),this.element=new Ft,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),ht}},bP=class extends Ie(on,nr,vt){constructor(e){super(e),this.element=new Ft,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),ht}},EP=class extends Ie(Oi,nr,vt){constructor(e){super(e),this.element=new Ne,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Ye(["document","objects","JSONSchema"])}};class zge extends Ie(on,nr,vt){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ht}ArrayElement(e){return this.element=new Ft,this.element.classes.push("json-schema-items"),e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),ht}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),ht}}let SP=class extends Ie(Oi,nr,vt){constructor(e){super(e),this.element=new Ne,this.element.classes.push("json-schema-properties"),this.specPath=Ye(["document","objects","JSONSchema"])}},wP=class extends Ie(Oi,nr,vt){constructor(e){super(e),this.element=new Ne,this.element.classes.push("json-schema-patternProperties"),this.specPath=Ye(["document","objects","JSONSchema"])}};class Jge extends vt{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),r}}let _P=class extends dP{constructor(e){super(e),this.element=new mu}};const Op=_r(Pe(["visitors","document","objects","JSONSchema","$visitor"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Vge),Pe(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],ai.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],ai.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],ai.visitors.value),en(["visitors","document","objects","JSONReference","$visitor"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$ref"],qge),en(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$defs"],gP),Pe(["visitors","document","objects","JSONSchema","fixedFields","allOf"],yP),Pe(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],vP),Pe(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],bP),Pe(["visitors","document","objects","JSONSchema","fixedFields","not"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],vr),en(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],EP),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],zge),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","properties"],SP),Pe(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],wP),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],vr),Pe(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],ai.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","minContains"],ai.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Jge),Pe(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],ai.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],vr),Pe(["visitors","document","objects","LinkDescription","$visitor"],_P),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],vr),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],vr),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],vr),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],vr))(ai),Wge=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof du||t(n)&&e("JSONSchema201909",n)&&r("object",n)),Hge=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mu||t(n)&&e("linkDescription",n)&&r("object",n)),Kge=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Wge,isLinkDescriptionElement:Hge},Symbol.toStringTag,{value:"Module"})),Gge=()=>{const t=Gs(Lge);return{predicates:{...Kge,isStringElement:Xe},namespace:t}},Yge=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Op}={})=>{const s=vo(t),i=Ai(n),o=pr(e,i),a=new o({specObj:i});return rr(s,a),Ys(a.element,r,{toolboxCreator:Gge,visitorOptions:{keyMap:Uge,nodeTypeGetter:su}})},xP=t=>(e,r={})=>Yge(e,{specPath:t,...r});du.refract=xP(["visitors","document","objects","JSONSchema","$visitor"]);mu.refract=xP(["visitors","document","objects","LinkDescription","$visitor"]);class gu extends du{constructor(e,r,n){super(e,r,n),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new ot("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new ot("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new ot("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new ot("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}}class Ed extends mu{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}}const Xge={namespace:t=>{const{base:e}=t;return e.register("jSONSchema202012",gu),e.register("linkDescription",Ed),e}},Zge={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...xs};let or=class extends vr{constructor(e){super(e),this.element=new gu}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},AP=class extends Ie(on,nr,vt){constructor(e){super(e),this.element=new Ft,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),ht}},Qge=class extends _P{constructor(e){super(e),this.element=new Ed}};const OP=_r(Pe(["visitors","document","objects","JSONSchema","$visitor"],or),en(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Op.visitors.value),en(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Op.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","not"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],AP),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],or),en(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],or),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],or),Pe(["visitors","document","objects","LinkDescription","$visitor"],Qge),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],or),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],or),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],or),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],or))(Op),eye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gu||t(n)&&e("JSONSchema202012",n)&&r("object",n)),tye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ed||t(n)&&e("linkDescription",n)&&r("object",n)),rye=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:eye,isLinkDescriptionElement:tye},Symbol.toStringTag,{value:"Module"})),nye=()=>{const t=Gs(Xge);return{predicates:{...rye,isStringElement:Xe},namespace:t}},sye=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=OP}={})=>{const s=vo(t),i=Ai(n),o=pr(e,i),a=new o({specObj:i});return rr(s,a),Ys(a.element,r,{toolboxCreator:nye,visitorOptions:{keyMap:Zge,nodeTypeGetter:su}})},CP=t=>(e,r={})=>sye(e,{specPath:t,...r});gu.refract=CP(["visitors","document","objects","JSONSchema","$visitor"]);Ed.refract=CP(["visitors","document","objects","LinkDescription","$visitor"]);class yi extends gu{constructor(e,r,n){super(e,r,n),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}class Sd extends iu{}class wd extends ou{}class _d extends au{}class xd extends cu{}class GE extends ed{}class YE extends td{}const XE={namespace:t=>{const{base:e}=t;return e.register("callback",id),e.register("components",od),e.register("contact",ad),e.register("discriminator",zE),e.register("encoding",JE),e.register("example",cd),e.register("externalDocumentation",ld),e.register("header",ud),e.register("info",pd),e.register("jsonSchemaDialect",no),e.register("license",fd),e.register("link",hd),e.register("mediaType",dd),e.register("oAuthFlow",WE),e.register("oAuthFlows",HE),e.register("openapi",KE),e.register("openApi3_1",Ci),e.register("operation",lu),e.register("parameter",md),e.register("pathItem",gi),e.register("paths",gd),e.register("reference",$i),e.register("requestBody",yd),e.register("response",vd),e.register("responses",bd),e.register("schema",yi),e.register("securityRequirement",Sd),e.register("securityScheme",wd),e.register("server",_d),e.register("serverVariable",xd),e.register("tag",GE),e.register("xml",YE),e}},ih=class ih extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(ih.primaryClass)}};H(ih,"primaryClass","components-path-items");let Mv=ih;const oh=class oh extends Ne{constructor(e,r,n){super(e,r,n),this.classes.push(oh.primaryClass)}};H(oh,"primaryClass","webhooks");let Dv=oh;const wn=t=>{if(Zt(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},qn={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...xs};class yu{constructor(e,r,n){H(this,"internalStore");this.storageElement=e,this.storageField=r,this.storageSubField=n}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);yt(e)||(e=new Ne,this.storageElement.set(this.storageField,e));let r=e.get(this.storageSubField);wr(r)||(r=new Ft,e.set(this.storageSubField,r)),this.internalStore=r}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}}const iye=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e,s=(a,c)=>!r.isParameterElement(a)||!r.isParameterElement(c)||!r.isStringElement(a.name)||!r.isStringElement(a.in)||!r.isStringElement(c.name)||!r.isStringElement(c.in)?!1:we(a.name)===we(c.name)&&we(a.in)===we(c.in),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(a){o=new yu(a,t,"parameters")},leave(){o=void 0}},PathItemElement:{enter(a,c,l,p,f){if(f.some(r.isComponentsElement))return;const{parameters:m}=a;r.isArrayElement(m)?i.push([...m.content]):i.push([])},leave(){i.pop()}},OperationElement:{leave(a,c,l,p,f){const m=Mh(i);if(!Array.isArray(m)||m.length===0)return;const d=n([...f,l,a]);if(o.includes(d))return;const g=mI([],["parameters","content"],a),v=EI(s,[...g,...m]);a.parameters=new gf(v),o.append(d)}}}}},oye=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let s,i;return{visitor:{OpenApi3_1Element:{enter(o){i=new yu(o,t,"security-requirements"),r.isArrayElement(o.security)&&(s=o.security)},leave(){i=void 0,s=void 0}},OperationElement:{leave(o,a,c,l,p){if(p.some(r.isComponentsElement))return;const f=n([...p,c,o]);if(i.includes(f))return;if(typeof o.security>"u"&&typeof s<"u"){var g;o.security=new yf((g=s)===null||g===void 0?void 0:g.content),i.append(f)}}}}}},Fv=t=>t.replace(/\s/g,""),Bv=t=>t.replace(/\W/gi,"_"),aye=(t,e)=>{const r=Bv(Fv(e.toLowerCase())),n=Bv(Fv(t));return`${r}${n}`},cye=(t,e,r)=>{const n=Fv(t);return n.length>0?Bv(n):aye(e,r)},lye=({storageField:t="x-normalized",operationIdNormalizer:e=cye}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:s,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(p){l=new yu(p,t,"operation-ids")},leave(){const p=nle(f=>we(f.operationId),a);Object.entries(p).forEach(([f,m])=>{Array.isArray(m)&&(m.length<=1||m.forEach((d,g)=>{const v=`${f}${g+1}`;d.operationId=new i.elements.String(v)}))}),c.forEach(f=>{if(typeof f.operationId>"u")return;const m=String(we(f.operationId)),d=a.find(g=>we(g.meta.get("originalOperationId"))===m);typeof d>"u"||(f.operationId=Le.safe(d.operationId),f.meta.set("originalOperationId",m),f.set("__originalOperationId",m))}),a.length=0,c.length=0,l=void 0}},PathItemElement:{enter(p){const f=va("path",we(p.meta.get("path")));o.push(f)},leave(){o.pop()}},OperationElement:{enter(p,f,m,d,g){if(typeof p.operationId>"u")return;const v=s([...g,m,p]);if(l.includes(v))return;const y=String(we(p.operationId)),E=Mh(o),S=va("method",we(p.meta.get("http-method"))),w=e(y,E,S);y!==w&&(p.operationId=new i.elements.String(w),p.set("__originalOperationId",y),p.meta.set("originalOperationId",y),a.push(p),l.append(v))}},LinkElement:{leave(p){n.isLinkElement(p)&&(typeof p.operationId>"u"||c.push(p))}}}}},uye=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let s;return{visitor:{OpenApi3_1Element:{enter(i){s=new yu(i,t,"parameter-examples")},leave(){s=void 0}},ParameterElement:{leave(i,o,a,c,l){var p,f;if(l.some(r.isComponentsElement)||typeof i.schema>"u"||!r.isSchemaElement(i.schema)||typeof((p=i.schema)===null||p===void 0?void 0:p.example)>"u"&&typeof((f=i.schema)===null||f===void 0?void 0:f.examples)>"u")return;const m=n([...l,a,i]);if(!s.includes(m)){if(typeof i.examples<"u"&&r.isObjectElement(i.examples)){const d=i.examples.map(g=>Le.safe(g.value));typeof i.schema.examples<"u"&&(i.schema.set("examples",d),s.append(m)),typeof i.schema.example<"u"&&(i.schema.set("example",d[0]),s.append(m));return}typeof i.example<"u"&&(typeof i.schema.examples<"u"&&(i.schema.set("examples",[Le(i.example)]),s.append(m)),typeof i.schema.example<"u"&&(i.schema.set("example",Le(i.example)),s.append(m)))}}}}}},pye=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let s;return{visitor:{OpenApi3_1Element:{enter(i){s=new yu(i,t,"header-examples")},leave(){s=void 0}},HeaderElement:{leave(i,o,a,c,l){var p,f;if(l.some(r.isComponentsElement)||typeof i.schema>"u"||!r.isSchemaElement(i.schema)||typeof((p=i.schema)===null||p===void 0?void 0:p.example)>"u"&&typeof((f=i.schema)===null||f===void 0?void 0:f.examples)>"u")return;const m=n([...l,a,i]);if(!s.includes(m)){if(typeof i.examples<"u"&&r.isObjectElement(i.examples)){const d=i.examples.map(g=>Le.safe(g.value));typeof i.schema.examples<"u"&&(i.schema.set("examples",d),s.append(m)),typeof i.schema.example<"u"&&(i.schema.set("example",d[0]),s.append(m));return}typeof i.example<"u"&&(typeof i.schema.examples<"u"&&(i.schema.set("examples",[Le(i.example)]),s.append(m)),typeof i.schema.example<"u"&&(i.schema.set("example",Le(i.example)),s.append(m)))}}}}}},fye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof id||t(n)&&e("callback",n)&&r("object",n)),hye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof od||t(n)&&e("components",n)&&r("object",n)),dye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ad||t(n)&&e("contact",n)&&r("object",n)),mye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cd||t(n)&&e("example",n)&&r("object",n)),gye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ld||t(n)&&e("externalDocumentation",n)&&r("object",n)),yye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ud||t(n)&&e("header",n)&&r("object",n)),vye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pd||t(n)&&e("info",n)&&r("object",n)),$P=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof no||t(n)&&e("jsonSchemaDialect",n)&&r("string",n)),bye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fd||t(n)&&e("license",n)&&r("object",n)),Eye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hd||t(n)&&e("link",n)&&r("object",n)),Sye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof KE||t(n)&&e("openapi",n)&&r("string",n)),TP=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>s=>s instanceof Ci||t(s)&&e("openApi3_1",s)&&r("object",s)&&n("api",s)),IP=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof lu||t(n)&&e("operation",n)&&r("object",n)),wye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof md||t(n)&&e("parameter",n)&&r("object",n)),so=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gi||t(n)&&e("pathItem",n)&&r("object",n)),_ye=t=>{if(!so(t)||!Xe(t.$ref))return!1;const e=we(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},xye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gd||t(n)&&e("paths",n)&&r("object",n)),bo=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $i||t(n)&&e("reference",n)&&r("object",n)),Aye=t=>{if(!bo(t)||!Xe(t.$ref))return!1;const e=we(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},Oye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof yd||t(n)&&e("requestBody",n)&&r("object",n)),Cye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vd||t(n)&&e("response",n)&&r("object",n)),$ye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bd||t(n)&&e("responses",n)&&r("object",n)),zn=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof yi||t(n)&&e("schema",n)&&r("object",n)),ZE=t=>Pl(t)&&t.classes.includes("boolean-json-schema"),Tye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sd||t(n)&&e("securityRequirement",n)&&r("object",n)),Iye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wd||t(n)&&e("securityScheme",n)&&r("object",n)),Rye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _d||t(n)&&e("server",n)&&r("object",n)),Pye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xd||t(n)&&e("serverVariable",n)&&r("object",n)),kye=ke(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dd||t(n)&&e("mediaType",n)&&r("object",n)),jye=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:ZE,isCallbackElement:fye,isComponentsElement:hye,isContactElement:dye,isExampleElement:mye,isExternalDocumentationElement:gye,isHeaderElement:yye,isInfoElement:vye,isJsonSchemaDialectElement:$P,isLicenseElement:bye,isLinkElement:Eye,isMediaTypeElement:kye,isOpenApi3_1Element:TP,isOpenapiElement:Sye,isOperationElement:IP,isParameterElement:wye,isPathItemElement:so,isPathItemElementExternal:_ye,isPathsElement:xye,isReferenceElement:bo,isReferenceElementExternal:Aye,isRequestBodyElement:Oye,isResponseElement:Cye,isResponsesElement:$ye,isSchemaElement:zn,isSecurityRequirementElement:Tye,isSecuritySchemeElement:Iye,isServerElement:Rye,isServerVariableElement:Pye},Symbol.toStringTag,{value:"Module"})),Nye=t=>{const e=t.reduce((r,n,s)=>{if(Kn(n)){const i=String(we(n.key));r.push(i)}else if(wr(t[s-2])){const i=String(t[s-2].content.indexOf(n));r.push(i)}return r},[]);return KR(e)},RP=()=>{const t=Gs(XE);return{predicates:{...jye,isElement:Zt,isStringElement:Xe,isArrayElement:wr,isObjectElement:yt,isMemberElement:Kn,isServersElement:cP,includesClasses:Sa,hasElementSourceMap:Ua},ancestorLineageToJSONPointer:Nye,namespace:t}};class Mye extends Ie(it,je){constructor(e){super(e),this.element=new Ci,this.specPath=Ye(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,it.prototype.ObjectElement.call(this,e)}}const Dye=ve.visitors.document.objects.Info.$visitor;class Fye extends Dye{constructor(e){super(e),this.element=new pd}}const Bye=ve.visitors.document.objects.Contact.$visitor;class Lye extends Bye{constructor(e){super(e),this.element=new ad}}const Uye=ve.visitors.document.objects.License.$visitor;class Vye extends Uye{constructor(e){super(e),this.element=new fd}}const qye=ve.visitors.document.objects.Link.$visitor;class zye extends qye{constructor(e){super(e),this.element=new hd}}class Jye extends Ie(Gn,je){StringElement(e){const r=new no(we(e));return this.copyMetaAndAttributes(e,r),this.element=r,ht}}const Wye=ve.visitors.document.objects.Server.$visitor;class Hye extends Wye{constructor(e){super(e),this.element=new _d}}const Kye=ve.visitors.document.objects.ServerVariable.$visitor;class Gye extends Kye{constructor(e){super(e),this.element=new xd}}const Yye=ve.visitors.document.objects.MediaType.$visitor;class Xye extends Yye{constructor(e){super(e),this.element=new dd}}const Zye=ve.visitors.document.objects.SecurityRequirement.$visitor;class Qye extends Zye{constructor(e){super(e),this.element=new Sd}}const eve=ve.visitors.document.objects.Components.$visitor;class tve extends eve{constructor(e){super(e),this.element=new od}}const rve=ve.visitors.document.objects.Tag.$visitor;class nve extends rve{constructor(e){super(e),this.element=new GE}}const sve=ve.visitors.document.objects.Reference.$visitor;class ive extends sve{constructor(e){super(e),this.element=new $i}}const ove=ve.visitors.document.objects.Parameter.$visitor;class ave extends ove{constructor(e){super(e),this.element=new md}}const cve=ve.visitors.document.objects.Header.$visitor;class lve extends cve{constructor(e){super(e),this.element=new ud}}class uve extends Ie(it,nr,je){constructor(e){super(e),this.element=new yi,this.specPath=Ye(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=no.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=it.prototype.ObjectElement.call(this,e);return Xe(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(e){return or.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return this.openApiSemanticElement!==void 0&&$P(this.openApiSemanticElement.jsonSchemaDialect)?e=we(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&Xe(this.openApiGenericElement.get("jsonSchemaDialect"))?e=we(this.openApiGenericElement.get("jsonSchemaDialect")):e=we(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return or.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return or.prototype.handleSchemaIdentifier.call(this,e)}}class pve extends gP{constructor(e){super(e),this.passingOptionsNames.push("parent")}}let fve=class extends yP{constructor(e){super(e),this.passingOptionsNames.push("parent")}};class hve extends vP{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class dve extends bP{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class mve extends EP{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class gve extends AP{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class yve extends SP{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class vve extends wP{constructor(e){super(e),this.passingOptionsNames.push("parent")}}const bve=ve.visitors.document.objects.Discriminator.$visitor;class Eve extends bve{constructor(e){super(e),this.element=new zE,this.canSupportSpecificationExtensions=!0}}const Sve=ve.visitors.document.objects.XML.$visitor;class wve extends Sve{constructor(e){super(e),this.element=new YE}}class _ve extends Ie(nt,je){constructor(e){super(e),this.element=new mf,this.specPath=Ye(["document","objects","Schema"])}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(zn).forEach((n,s)=>{n.setMetaProperty("schemaName",we(s))}),r}}class xve extends Ie(nt,je){constructor(e){super(e),this.element=new Mv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(bo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const Ave=ve.visitors.document.objects.Example.$visitor;class Ove extends Ave{constructor(e){super(e),this.element=new cd}}const Cve=ve.visitors.document.objects.ExternalDocumentation.$visitor;class $ve extends Cve{constructor(e){super(e),this.element=new ld}}const Tve=ve.visitors.document.objects.Encoding.$visitor;class Ive extends Tve{constructor(e){super(e),this.element=new JE}}const Rve=ve.visitors.document.objects.Paths.$visitor;class Pve extends Rve{constructor(e){super(e),this.element=new gd}}const kve=ve.visitors.document.objects.RequestBody.$visitor;class jve extends kve{constructor(e){super(e),this.element=new yd}}const Z2=ve.visitors.document.objects.Callback.$visitor;class Nve extends Z2{constructor(e){super(e),this.element=new id,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=Z2.prototype.ObjectElement.call(this,e);return this.element.filter(bo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const Mve=ve.visitors.document.objects.Response.$visitor;class Dve extends Mve{constructor(e){super(e),this.element=new vd}}const Fve=ve.visitors.document.objects.Responses.$visitor;class Bve extends Fve{constructor(e){super(e),this.element=new bd}}const Lve=ve.visitors.document.objects.Operation.$visitor;class Uve extends Lve{constructor(e){super(e),this.element=new lu}}const Vve=ve.visitors.document.objects.PathItem.$visitor;class qve extends Vve{constructor(e){super(e),this.element=new gi}}const zve=ve.visitors.document.objects.SecurityScheme.$visitor;class Jve extends zve{constructor(e){super(e),this.element=new wd}}const Wve=ve.visitors.document.objects.OAuthFlows.$visitor;class Hve extends Wve{constructor(e){super(e),this.element=new HE}}const Kve=ve.visitors.document.objects.OAuthFlow.$visitor;class Gve extends Kve{constructor(e){super(e),this.element=new WE}}class Yve extends Ie(nt,je){constructor(e){super(e),this.element=new Dv,this.specPath=r=>kt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=nt.prototype.ObjectElement.call(this,e);return this.element.filter(bo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),this.element.filter(so).forEach((n,s)=>{n.setMetaProperty("webhook-name",we(s))}),r}}const{JSONSchema:Xve,LinkDescription:Zve}=OP.visitors.document.objects,Qve={visitors:{value:ve.visitors.value,document:{objects:{OpenApi:{$visitor:Mye,fixedFields:{openapi:ve.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Jye,servers:ve.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Yve,components:{$ref:"#/visitors/document/objects/Components"},security:ve.visitors.document.objects.OpenApi.fixedFields.security,tags:ve.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Fye,fixedFields:{title:ve.visitors.document.objects.Info.fixedFields.title,description:ve.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:ve.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:ve.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Lye,fixedFields:{name:ve.visitors.document.objects.Contact.fixedFields.name,url:ve.visitors.document.objects.Contact.fixedFields.url,email:ve.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Vye,fixedFields:{name:ve.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:ve.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Hye,fixedFields:{url:ve.visitors.document.objects.Server.fixedFields.url,description:ve.visitors.document.objects.Server.fixedFields.description,variables:ve.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Gye,fixedFields:{enum:ve.visitors.document.objects.ServerVariable.fixedFields.enum,default:ve.visitors.document.objects.ServerVariable.fixedFields.default,description:ve.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:tve,fixedFields:{schemas:_ve,responses:ve.visitors.document.objects.Components.fixedFields.responses,parameters:ve.visitors.document.objects.Components.fixedFields.parameters,examples:ve.visitors.document.objects.Components.fixedFields.examples,requestBodies:ve.visitors.document.objects.Components.fixedFields.requestBodies,headers:ve.visitors.document.objects.Components.fixedFields.headers,securitySchemes:ve.visitors.document.objects.Components.fixedFields.securitySchemes,links:ve.visitors.document.objects.Components.fixedFields.links,callbacks:ve.visitors.document.objects.Components.fixedFields.callbacks,pathItems:xve}},Paths:{$visitor:Pve},PathItem:{$visitor:qve,fixedFields:{$ref:ve.visitors.document.objects.PathItem.fixedFields.$ref,summary:ve.visitors.document.objects.PathItem.fixedFields.summary,description:ve.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:ve.visitors.document.objects.PathItem.fixedFields.servers,parameters:ve.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Uve,fixedFields:{tags:ve.visitors.document.objects.Operation.fixedFields.tags,summary:ve.visitors.document.objects.Operation.fixedFields.summary,description:ve.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:ve.visitors.document.objects.Operation.fixedFields.operationId,parameters:ve.visitors.document.objects.Operation.fixedFields.parameters,requestBody:ve.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:ve.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:ve.visitors.document.objects.Operation.fixedFields.deprecated,security:ve.visitors.document.objects.Operation.fixedFields.security,servers:ve.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:$ve,fixedFields:{description:ve.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:ve.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:ave,fixedFields:{name:ve.visitors.document.objects.Parameter.fixedFields.name,in:ve.visitors.document.objects.Parameter.fixedFields.in,description:ve.visitors.document.objects.Parameter.fixedFields.description,required:ve.visitors.document.objects.Parameter.fixedFields.required,deprecated:ve.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:ve.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:ve.visitors.document.objects.Parameter.fixedFields.style,explode:ve.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:ve.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ve.visitors.document.objects.Parameter.fixedFields.example,examples:ve.visitors.document.objects.Parameter.fixedFields.examples,content:ve.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:jve,fixedFields:{description:ve.visitors.document.objects.RequestBody.fixedFields.description,content:ve.visitors.document.objects.RequestBody.fixedFields.content,required:ve.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Xye,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:ve.visitors.document.objects.MediaType.fixedFields.example,examples:ve.visitors.document.objects.MediaType.fixedFields.examples,encoding:ve.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Ive,fixedFields:{contentType:ve.visitors.document.objects.Encoding.fixedFields.contentType,headers:ve.visitors.document.objects.Encoding.fixedFields.headers,style:ve.visitors.document.objects.Encoding.fixedFields.style,explode:ve.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:ve.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Bve,fixedFields:{default:ve.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Dve,fixedFields:{description:ve.visitors.document.objects.Response.fixedFields.description,headers:ve.visitors.document.objects.Response.fixedFields.headers,content:ve.visitors.document.objects.Response.fixedFields.content,links:ve.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Nve},Example:{$visitor:Ove,fixedFields:{summary:ve.visitors.document.objects.Example.fixedFields.summary,description:ve.visitors.document.objects.Example.fixedFields.description,value:ve.visitors.document.objects.Example.fixedFields.value,externalValue:ve.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:zye,fixedFields:{operationRef:ve.visitors.document.objects.Link.fixedFields.operationRef,operationId:ve.visitors.document.objects.Link.fixedFields.operationId,parameters:ve.visitors.document.objects.Link.fixedFields.parameters,requestBody:ve.visitors.document.objects.Link.fixedFields.requestBody,description:ve.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:lve,fixedFields:{description:ve.visitors.document.objects.Header.fixedFields.description,required:ve.visitors.document.objects.Header.fixedFields.required,deprecated:ve.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:ve.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:ve.visitors.document.objects.Header.fixedFields.style,explode:ve.visitors.document.objects.Header.fixedFields.explode,allowReserved:ve.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ve.visitors.document.objects.Header.fixedFields.example,examples:ve.visitors.document.objects.Header.fixedFields.examples,content:ve.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:nve,fixedFields:{name:ve.visitors.document.objects.Tag.fixedFields.name,description:ve.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ive,fixedFields:{$ref:ve.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Zve},Schema:{$visitor:uve,fixedFields:{...Xve.fixedFields,$defs:pve,allOf:fve,anyOf:hve,oneOf:dve,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:mve,prefixItems:gve,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:yve,patternProperties:vve,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Eve,fixedFields:{propertyName:ve.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:ve.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:wve,fixedFields:{name:ve.visitors.document.objects.XML.fixedFields.name,namespace:ve.visitors.document.objects.XML.fixedFields.namespace,prefix:ve.visitors.document.objects.XML.fixedFields.prefix,attribute:ve.visitors.document.objects.XML.fixedFields.attribute,wrapped:ve.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Jve,fixedFields:{type:ve.visitors.document.objects.SecurityScheme.fixedFields.type,description:ve.visitors.document.objects.SecurityScheme.fixedFields.description,name:ve.visitors.document.objects.SecurityScheme.fixedFields.name,in:ve.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:ve.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:ve.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:ve.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Hve,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Gve,fixedFields:{authorizationUrl:ve.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:ve.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:ve.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:ve.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Qye}},extension:{$visitor:ve.visitors.document.extension.$visitor}}}},e0e=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=vo(t),s=Ai(Qve),i=pr(e,s),o=new i({specObj:s});return rr(n,o),Ys(o.element,r,{toolboxCreator:RP,visitorOptions:{keyMap:qn,nodeTypeGetter:wn}})},bt=t=>(e,r={})=>e0e(e,{specPath:t,...r});id.refract=bt(["visitors","document","objects","Callback","$visitor"]);od.refract=bt(["visitors","document","objects","Components","$visitor"]);ad.refract=bt(["visitors","document","objects","Contact","$visitor"]);cd.refract=bt(["visitors","document","objects","Example","$visitor"]);zE.refract=bt(["visitors","document","objects","Discriminator","$visitor"]);JE.refract=bt(["visitors","document","objects","Encoding","$visitor"]);ld.refract=bt(["visitors","document","objects","ExternalDocumentation","$visitor"]);ud.refract=bt(["visitors","document","objects","Header","$visitor"]);pd.refract=bt(["visitors","document","objects","Info","$visitor"]);no.refract=bt(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]);fd.refract=bt(["visitors","document","objects","License","$visitor"]);hd.refract=bt(["visitors","document","objects","Link","$visitor"]);dd.refract=bt(["visitors","document","objects","MediaType","$visitor"]);WE.refract=bt(["visitors","document","objects","OAuthFlow","$visitor"]);HE.refract=bt(["visitors","document","objects","OAuthFlows","$visitor"]);KE.refract=bt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Ci.refract=bt(["visitors","document","objects","OpenApi","$visitor"]);lu.refract=bt(["visitors","document","objects","Operation","$visitor"]);md.refract=bt(["visitors","document","objects","Parameter","$visitor"]);gi.refract=bt(["visitors","document","objects","PathItem","$visitor"]);gd.refract=bt(["visitors","document","objects","Paths","$visitor"]);$i.refract=bt(["visitors","document","objects","Reference","$visitor"]);yd.refract=bt(["visitors","document","objects","RequestBody","$visitor"]);vd.refract=bt(["visitors","document","objects","Response","$visitor"]);bd.refract=bt(["visitors","document","objects","Responses","$visitor"]);yi.refract=bt(["visitors","document","objects","Schema","$visitor"]);Sd.refract=bt(["visitors","document","objects","SecurityRequirement","$visitor"]);wd.refract=bt(["visitors","document","objects","SecurityScheme","$visitor"]);_d.refract=bt(["visitors","document","objects","Server","$visitor"]);xd.refract=bt(["visitors","document","objects","ServerVariable","$visitor"]);GE.refract=bt(["visitors","document","objects","Tag","$visitor"]);YE.refract=bt(["visitors","document","objects","XML","$visitor"]);class t0e extends Nl{constructor(e){super({...e??{},name:"binary"})}canParse(e){return this.fileExtensions.length===0?!0:this.fileExtensions.includes(e.extension)}parse(e){try{const r=unescape(encodeURIComponent(e.toString())),n=btoa(r),s=new Ks;if(n.length!==0){const i=new yo(n);i.classes.push("result"),s.push(i)}return s}catch(r){throw new Us(`Error parsing "${e.uri}"`,{cause:r})}}}class r0e extends efe{constructor(e){super({...e??{},name:"openapi-3-1"})}canResolve(e,r){const n=r.dereference.strategies.find(s=>s.name==="openapi-3-1");return n===void 0?!1:n.canDereference(e,r)}async resolve(e,r){const n=r.dereference.strategies.find(o=>o.name==="openapi-3-1");if(n===void 0)throw new ER('"openapi-3-1" dereference strategy is not available.');const s=new Ea,i=PI(r,{resolve:{internal:!1},dereference:{refSet:s}});return await n.dereference(e,i),s}}const{AbortController:n0e,AbortSignal:s0e}=globalThis;typeof globalThis.AbortController>"u"&&(globalThis.AbortController=n0e);typeof globalThis.AbortSignal>"u"&&(globalThis.AbortSignal=s0e);class i0e extends Qpe{constructor({swaggerHTTPClient:r=Fc,swaggerHTTPClientConfig:n={},...s}={}){super({...s,name:"http-swagger-client"});H(this,"swaggerHTTPClient",Fc);H(this,"swaggerHTTPClientConfig");this.swaggerHTTPClient=r,this.swaggerHTTPClientConfig=n}getHttpClient(){return this.swaggerHTTPClient}async read(r){const n=this.getHttpClient(),s=new AbortController,{signal:i}=s,o=setTimeout(()=>{s.abort()},this.timeout),a=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",c=this.redirects===0?"error":"follow",l=this.redirects>0?this.redirects:void 0;try{return(await n({url:r.uri,signal:i,userFetch:async(f,m)=>{let d=await fetch(f,m);try{d.headers.delete("Content-Type")}catch{d=new Response(d.body,{...d,headers:new Headers(d.headers)}),d.headers.delete("Content-Type")}return d},credentials:a,redirect:c,follow:l,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(p){throw new kI(`Error downloading "${r.uri}"`,{cause:p})}finally{clearTimeout(o)}}}class o0e extends Nl{constructor(e={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...e})}async canParse(e){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(e.extension),n=this.mediaTypes.includes(e.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Us("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ks,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const s=gR(JSON.parse(n));return s.classes.push("result"),r.push(s),r}catch(s){throw new Us(`Error parsing "${e.uri}"`,{cause:s})}}}class a0e extends Nl{constructor(e={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...e})}async canParse(e){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(e.extension),n=this.mediaTypes.includes(e.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return xn.load(e.toString(),{schema:ha}),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Us("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ks,n=e.toString();try{const s=xn.load(n,{schema:ha});if(this.allowEmpty&&typeof s>"u")return r;const i=gR(s);return i.classes.push("result"),r.push(i),r}catch(s){throw new Us(`Error parsing "${e.uri}"`,{cause:s})}}}class c0e extends Nl{constructor(r={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new BE(..._a.filterByFormat("generic"),..._a.filterByFormat("json")),...r});H(this,"detectionRegExp",/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/)}async canParse(r){const n=this.fileExtensions.length===0?!0:this.fileExtensions.includes(r.extension),s=this.mediaTypes.includes(r.mediaType);if(!n)return!1;if(s)return!0;if(!s)try{const i=r.toString();return JSON.parse(i),this.detectionRegExp.test(i)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new Us("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ks,s=r.toString();if(this.allowEmpty&&s.trim()==="")return n;try{const i=JSON.parse(s),o=Ci.refract(i,this.refractorOpts);return o.classes.push("result"),n.push(o),n}catch(i){throw new Us(`Error parsing "${r.uri}"`,{cause:i})}}}class l0e extends Nl{constructor(r={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new BE(..._a.filterByFormat("generic"),..._a.filterByFormat("yaml")),...r});H(this,"detectionRegExp",/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m)}async canParse(r){const n=this.fileExtensions.length===0?!0:this.fileExtensions.includes(r.extension),s=this.mediaTypes.includes(r.mediaType);if(!n)return!1;if(s)return!0;if(!s)try{const i=r.toString();return xn.load(i),this.detectionRegExp.test(i)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new Us("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ks,s=r.toString();try{const i=xn.load(s,{schema:ha});if(this.allowEmpty&&typeof i>"u")return n;const o=Ci.refract(i,this.refractorOpts);return o.classes.push("result"),n.push(o),n}catch(i){throw new Us(`Error parsing "${r.uri}"`,{cause:i})}}}const Ad=t=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(t),Aa=t=>{const e=II(t);return CI("#",e)},u0e=t=>{if(!Ad(t))throw new sfe(t);return t},QE=(t,e)=>{const r=u0e(t),n=mR(s=>zn(s)&&we(s.$anchor)===r,e);if(xi(n))throw new rfe(`Evaluation failed on token: "${r}"`);return n},PP=(t,e)=>{if(typeof e.$ref>"u")return;const r=II(we(e.$ref)),n=we(e.meta.get("ancestorsSchemaIdentifiers"));return`${Ba((i,o)=>Er(i,Uh(Ct(o))),t,[...n,we(e.$ref)])}${r==="#"?"":r}`},p0e=(t,e)=>{if(typeof e.$id>"u")return;const r=we(e.meta.get("ancestorsSchemaIdentifiers"));return Ba((n,s)=>Er(n,Uh(Ct(s))),t,r)},xc=t=>{if(xc.cache.has(t))return xc.cache.get(t);const e=yi.refract(t);return xc.cache.set(t,e),e};xc.cache=new WeakMap;const Ar=t=>Zi(t)?xc(t):t,Od=(t,e)=>{const{cache:r}=Od,n=Ct(t),s=o=>zn(o)&&typeof o.$id<"u";if(!r.has(e)){const o=Dpe(s,e);r.set(e,Array.from(o))}const i=r.get(e).find(o=>p0e(n,o)===n);if(xi(i))throw new CE(`Evaluation failed on URI: "${t}"`);return Ad(Aa(t))?QE(Aa(t),i):Vn(i,En(t))};Od.cache=new WeakMap;const Zu=rr[Symbol.for("nodejs.util.promisify.custom")],gr=new AE,hn=(t,e,r,n)=>{Kn(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class qi{constructor({reference:e,namespace:r,options:n,indirections:s=[],ancestors:i=new mg,refractCache:o=new Map,allOfDiscriminatorMapping:a=new Map}){H(this,"indirections");H(this,"namespace");H(this,"reference");H(this,"options");H(this,"ancestors");H(this,"refractCache");H(this,"allOfDiscriminatorMapping");H(this,"OpenApi3_1Element",{leave:(e,r,n,s,i,o)=>{var a;if(!((a=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&a!==void 0&&a.dereferenceDiscriminatorMapping))return;const c=ur(e);return c.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),o.replaceWith(c,hn),n?void 0:c}});this.indirections=s,this.namespace=r,this.reference=e,this.options=n,this.ancestors=new mg(...i),this.refractCache=o,this.allOfDiscriminatorMapping=a}handleDereferenceError(e,r,n){var s;if((s=this.options.dereference.dereferenceOpts)!==null&&s!==void 0&&s.continueOnError){var i;if(n){const a=[...n].find(c=>yt(c)&&c.getMetaProperty("ref-referencing-element"));if(a){var o;(o=this.options.dereference.dereferenceOpts)===null||o===void 0||o.errors.push({error:e,refEl:a.getMetaProperty("ref-referencing-element")})}}(i=this.options.dereference.dereferenceOpts)===null||i===void 0||i.errors.push({error:e,refEl:r});return}throw e}getNestedVisitorOptions(e){var r,n;return{...this.options,resolve:{...this.options.resolve,external:(r=this.options.dereference)!==null&&r!==void 0&&(r=r.dereferenceOpts)!==null&&r!==void 0&&r.skipNestedExternal&&we(e.get("$ref")).startsWith("#")?!1:this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...(n=this.options.dereference)===null||n===void 0?void 0:n.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return Er(this.reference.uri,Uh(Ct(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new ife(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const r=this.toBaseURI(e),{refSet:n}=this.reference;if(n.has(r))return n.find(yI(r,"uri"));const s=await oue(cs(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),i=new Ls({uri:r,value:Le(s),depth:this.reference.depth+1});if(n.add(i),this.options.dereference.immutable){const o=new Ls({uri:`immutable://${r}`,value:s,depth:this.reference.depth+1});n.add(o)}return i}toAncestorLineage(e){const r=new Set(e.filter(Zt));return[new mg(...this.ancestors,r),r]}async ReferenceElement(e,r,n,s,i,o){var a,c;if(this.indirections.includes(e))return!1;const[l,p]=this.toAncestorLineage([...i,n]),f=this.toBaseURI(we(e.$ref)),m=Ct(this.reference.uri)===f,d=!m;if(!this.options.resolve.internal&&m||!this.options.resolve.external&&d)return!1;let g;try{g=await this.toReference(we(e.$ref))}catch(D){return this.handleDereferenceError(D,e,p)}const v=Er(f,we(e.$ref));this.indirections.push(e);const y=En(v);let E;try{E=Vn(g.value.result,y)}catch(D){return this.indirections.pop(),this.handleDereferenceError(D,e,p)}if(E.id=gr.identify(E),Zi(E)){const D=we(e.meta.get("referenced-element")),B=`${D}-${we(gr.identify(E))}`;this.refractCache.has(B)?E=this.refractCache.get(B):kt(E)?(E=$i.refract(E),E.setMetaProperty("referenced-element",D),this.refractCache.set(B,E)):(E=this.namespace.getElementClass(D).refract(E),this.refractCache.set(B,E))}if(e===E){const D=new zt("Recursive Reference Object detected");return this.indirections.pop(),this.handleDereferenceError(D,e,p)}if(this.indirections.length>this.options.dereference.maxDepth){const D=new aa(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(D,e,p)}if(l.includes(E)){if(g.refSet.circular=!0,this.options.dereference.circular==="error"){const D=new zt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(D,e,p)}if(this.options.dereference.circular==="replace"){var S,w;const D=new Xi(E.id,{type:"reference",uri:g.uri,$ref:we(e.$ref)}),P=((S=(w=this.options.dereference.strategyOpts["openapi-3-1"])===null||w===void 0?void 0:w.circularReplacer)!==null&&S!==void 0?S:this.options.dereference.circularReplacer)(D);return o.replaceWith(P,hn),n?!1:P}}const x=Ct(g.refSet.rootRef.uri)!==g.uri,I=["error","replace"].includes(this.options.dereference.circular);if((d||x||bo(E)||I||(a=this.options.dereference.dereferenceOpts)!==null&&a!==void 0&&a.continueOnError)&&!l.includesCycle(E)){p.add(e);const D=new qi({reference:g,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:l,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{E=await Zu(E,D,{keyMap:qn,nodeTypeGetter:wn})}catch(B){return this.indirections.pop(),this.handleDereferenceError(B,e,p)}p.delete(e)}this.indirections.pop();const T=ur(E);return T.setMetaProperty("id",gr.generateId()),T.setMetaProperty("ref-fields",{$ref:we(e.$ref),description:we(e.description),summary:we(e.summary)}),T.setMetaProperty("ref-origin",g.uri),T.setMetaProperty("ref-referencing-element-id",Le(gr.identify(e))),(c=this.options.dereference.dereferenceOpts)!==null&&c!==void 0&&c.continueOnError&&T.setMetaProperty("ref-referencing-element",e),yt(E)&&yt(T)&&(e.hasKey("description")&&"description"in E&&(T.remove("description"),T.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in E&&(T.remove("summary"),T.set("summary",e.get("summary")))),o.replaceWith(T,hn),n?!1:T}async PathItemElement(e,r,n,s,i,o){var a;if(!Xe(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,l]=this.toAncestorLineage([...i,n]),p=this.toBaseURI(we(e.$ref)),f=Ct(this.reference.uri)===p,m=!f;if(!this.options.resolve.internal&&f||!this.options.resolve.external&&m)return;let d;try{d=await this.toReference(we(e.$ref))}catch(T){return this.handleDereferenceError(T,e,l)}const g=Er(p,we(e.$ref));this.indirections.push(e);const v=En(g);let y;try{y=Vn(d.value.result,v)}catch(T){return this.indirections.pop(),this.handleDereferenceError(T,e,l)}if(y.id=gr.identify(y),Zi(y)){const T=`path-item-${we(gr.identify(y))}`;this.refractCache.has(T)?y=this.refractCache.get(T):(y=gi.refract(y),this.refractCache.set(T,y))}if(e===y){const T=new zt("Recursive Path Item Object reference detected");return this.indirections.pop(),this.handleDereferenceError(T,e,l)}if(this.indirections.length>this.options.dereference.maxDepth){const T=new aa(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(T,e,l)}if(c.includes(y)){if(d.refSet.circular=!0,this.options.dereference.circular==="error"){const T=new zt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(T,e,l)}if(this.options.dereference.circular==="replace"){var E,S;const T=new Xi(y.id,{type:"path-item",uri:d.uri,$ref:we(e.$ref)}),B=((E=(S=this.options.dereference.strategyOpts["openapi-3-1"])===null||S===void 0?void 0:S.circularReplacer)!==null&&E!==void 0?E:this.options.dereference.circularReplacer)(T);return o.replaceWith(B,hn),n?!1:B}}const w=Ct(d.refSet.rootRef.uri)!==d.uri,x=["error","replace"].includes(this.options.dereference.circular);if((m||w||so(y)&&Xe(y.$ref)||x||(a=this.options.dereference.dereferenceOpts)!==null&&a!==void 0&&a.continueOnError)&&!c.includesCycle(y)){l.add(e);const T=new qi({reference:d,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{y=await Zu(y,T,{keyMap:qn,nodeTypeGetter:wn})}catch(D){return this.indirections.pop(),this.handleDereferenceError(D,e,l)}l.delete(e)}if(this.indirections.pop(),so(y)){var I;const T=new gi([...y.content],Le(y.meta),Le(y.attributes));T.setMetaProperty("id",gr.generateId()),e.forEach((D,B,P)=>{T.remove(we(B)),T.content.push(P)}),T.remove("$ref"),T.setMetaProperty("ref-fields",{$ref:we(e.$ref)}),T.setMetaProperty("ref-origin",d.uri),T.setMetaProperty("ref-referencing-element-id",Le(gr.identify(e))),(I=this.options.dereference.dereferenceOpts)!==null&&I!==void 0&&I.continueOnError&&T.setMetaProperty("ref-referencing-element",e),y=T}return o.replaceWith(y,hn),n?void 0:y}async LinkElement(e,r,n,s,i,o){if(!Xe(e.operationRef)&&!Xe(e.operationId))return;if(Xe(e.operationRef)&&Xe(e.operationId)){const p=new zt("LinkElement operationRef and operationId fields are mutually exclusive.");return this.handleDereferenceError(p,e)}let a;if(Xe(e.operationRef)){var c;const p=En(we(e.operationRef)),f=this.toBaseURI(we(e.operationRef)),m=Ct(this.reference.uri)===f,d=!m;if(!this.options.resolve.internal&&m||!this.options.resolve.external&&d)return;let g;try{g=await this.toReference(we(e.operationRef)),a=Vn(g.value.result,p)}catch(y){return this.handleDereferenceError(y,e)}if(Zi(a)){const y=`operation-${we(gr.identify(a))}`;this.refractCache.has(y)?a=this.refractCache.get(y):(a=lu.refract(a),this.refractCache.set(y,a))}a=ur(a),a.setMetaProperty("ref-origin",g.uri);const v=ur(e);return(c=v.operationRef)===null||c===void 0||c.meta.set("operation",a),o.replaceWith(v,hn),n?void 0:v}if(Xe(e.operationId)){var l;const p=we(e.operationId);let f;try{f=await this.toReference(cs(this.reference.uri))}catch(d){return this.handleDereferenceError(d,e)}if(a=mR(d=>IP(d)&&Zt(d.operationId)&&d.operationId.equals(p),f.value.result),xi(a)){const d=new zt(`OperationElement(operationId=${p}) not found.`);return this.handleDereferenceError(d,e)}const m=ur(e);return(l=m.operationId)===null||l===void 0||l.meta.set("operation",a),o.replaceWith(m,hn),n?void 0:m}}async ExampleElement(e,r,n,s,i,o){if(!Xe(e.externalValue))return;if(e.hasKey("value")&&Xe(e.externalValue)){const d=new zt("ExampleElement value and externalValue fields are mutually exclusive.");return this.handleDereferenceError(d,e)}const a=this.toBaseURI(we(e.externalValue)),c=Ct(this.reference.uri)===a,l=!c;if(!this.options.resolve.internal&&c||!this.options.resolve.external&&l)return;let p;try{p=await this.toReference(we(e.externalValue))}catch(d){return this.handleDereferenceError(d,e)}const f=ur(p.value.result);f.setMetaProperty("ref-origin",p.uri);const m=ur(e);return m.value=f,o.replaceWith(m,hn),n?void 0:m}async MemberElement(e,r,n,s,i,o){var a;const c=i[i.length-1];if(!yt(c)||!c.classes.contains("discriminator-mapping"))return;if(!((a=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&a!==void 0&&a.dereferenceDiscriminatorMapping)||!Xe(e.key)||!Xe(e.value)||this.indirections.includes(e))return!1;this.indirections.push(e);const[l,p]=this.toAncestorLineage([...i,n]),f=[...p].findLast(zn),m=Le(f.getMetaProperty("ancestorsSchemaIdentifiers")),d=we(e.value),v=/^[a-zA-Z0-9\\.\\-_]+$/.test(d)?`#/components/schemas/${d}`:d,y=new yi({$ref:v});y.setMetaProperty("ancestorsSchemaIdentifiers",m),p.add(y);const E=new qi({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(y),refractCache:this.refractCache,ancestors:l,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});let S;try{S=await Zu(y,E,{keyMap:qn,nodeTypeGetter:wn})}catch(x){return this.handleDereferenceError(x,y,p)}p.delete(y),this.indirections.pop();const w=ur(e);return w.value.setMetaProperty("ref-schema",S),o.replaceWith(w,hn),n?void 0:w}async SchemaElement(e,r,n,s,i,o){var a;if(!Xe(e.$ref))return;if(this.indirections.includes(e))return!1;const[c,l]=this.toAncestorLineage([...i,n]);let p;try{p=await this.toReference(cs(this.reference.uri))}catch(J){return this.handleDereferenceError(J,e,l)}let{uri:f}=p;const m=PP(f,e),d=Ct(m),g=new ba({uri:d}),v=ple(J=>J.canRead(g),this.options.resolve.resolvers),y=!v;let E=Ct(this.reference.uri)===m,S=!E;this.indirections.push(e);let w;try{if(v||y){f=this.toBaseURI(m);const J=m,F=Ar(p.value.result);if(w=Od(J,F),w=Ar(w),w.id=gr.identify(w),!this.options.resolve.internal&&E||!this.options.resolve.external&&S)return}else{if(f=this.toBaseURI(m),E=Ct(this.reference.uri)===f,S=!E,!this.options.resolve.internal&&E||!this.options.resolve.external&&S)return;p=await this.toReference(cs(m));const J=En(m),F=Ar(p.value.result);w=Vn(F,J),w=Ar(w),w.id=gr.identify(w)}}catch(J){if(y&&J instanceof CE)if(Ad(Aa(m))){if(E=Ct(this.reference.uri)===f,S=!E,!this.options.resolve.internal&&E||!this.options.resolve.external&&S)return;try{p=await this.toReference(cs(m))}catch(se){return this.indirections.pop(),this.handleDereferenceError(se,e,l)}const F=Aa(m),Q=Ar(p.value.result);try{w=QE(F,Q)}catch(se){return this.indirections.pop(),this.handleDereferenceError(se,e,l)}w=Ar(w),w.id=gr.identify(w)}else{if(f=this.toBaseURI(m),E=Ct(this.reference.uri)===f,S=!E,!this.options.resolve.internal&&E||!this.options.resolve.external&&S)return;try{p=await this.toReference(cs(m))}catch(se){return this.indirections.pop(),this.handleDereferenceError(se,e,l)}const F=En(m),Q=Ar(p.value.result);try{w=Vn(Q,F)}catch(se){return this.indirections.pop(),this.handleDereferenceError(se,e,l)}w=Ar(w),w.id=gr.identify(w)}else return this.indirections.pop(),this.handleDereferenceError(J,e,l)}if(e===w){const J=new zt("Recursive Schema Object reference detected");return this.indirections.pop(),this.handleDereferenceError(J,e,l)}if(this.indirections.length>this.options.dereference.maxDepth){const J=new aa(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(J,e,l)}if(c.includes(w)){if(p.refSet.circular=!0,this.options.dereference.circular==="error"){const J=new zt("Circular reference detected");return this.indirections.pop(),this.handleDereferenceError(J,e,l)}if(this.options.dereference.circular==="replace"){var x,I;const J=new Xi(w.id,{type:"json-schema",uri:p.uri,$ref:we(e.$ref)}),Q=((x=(I=this.options.dereference.strategyOpts["openapi-3-1"])===null||I===void 0?void 0:I.circularReplacer)!==null&&x!==void 0?x:this.options.dereference.circularReplacer)(J);return o.replaceWith(Q,hn),n?!1:Q}}const T=Ct(p.refSet.rootRef.uri)!==p.uri,D=["error","replace"].includes(this.options.dereference.circular);if((S||T||zn(w)&&Xe(w.$ref)||D||(a=this.options.dereference.dereferenceOpts)!==null&&a!==void 0&&a.continueOnError)&&!c.includesCycle(w)){l.add(e);const J=new qi({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(e),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});try{w=await Zu(w,J,{keyMap:qn,nodeTypeGetter:wn})}catch(F){return this.indirections.pop(),this.handleDereferenceError(F,e,l)}l.delete(e)}if(this.indirections.pop(),ZE(w)){const J=Le(w);return J.setMetaProperty("id",gr.generateId()),J.setMetaProperty("ref-fields",{$ref:we(e.$ref),$refBaseURI:m}),J.setMetaProperty("ref-origin",p.uri),J.setMetaProperty("ref-referencing-element-id",Le(gr.identify(e))),o.replaceWith(J,hn),n?!1:J}if(zn(w)){var B,P;const J=new yi([...w.content],Le(w.meta),Le(w.attributes));if(J.setMetaProperty("id",gr.generateId()),e.forEach((F,Q,se)=>{J.remove(we(Q)),J.content.push(se)}),J.remove("$ref"),J.setMetaProperty("ref-fields",{$ref:we(e.$ref),$refBaseURI:m}),J.setMetaProperty("ref-origin",p.uri),J.setMetaProperty("ref-referencing-element-id",Le(gr.identify(e))),(B=this.options.dereference.dereferenceOpts)!==null&&B!==void 0&&B.continueOnError&&J.setMetaProperty("ref-referencing-element",e),(P=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&P!==void 0&&P.dereferenceDiscriminatorMapping){var Z;const F=i[i.length-1],Q=[...l].findLast(zn),se=Q==null?void 0:Q.getMetaProperty("schemaName"),re=we(J.getMetaProperty("schemaName"));if(re&&se&&F!==null&&F!==void 0&&(Z=F.classes)!==null&&Z!==void 0&&Z.contains("json-schema-allOf")){var V;const ce=(V=this.allOfDiscriminatorMapping.get(re))!==null&&V!==void 0?V:[];ce.push(Q),this.allOfDiscriminatorMapping.set(re,ce)}}w=J}return o.replaceWith(w,hn),n?void 0:w}}const f0e=rr[Symbol.for("nodejs.util.promisify.custom")];class h0e extends tfe{constructor(e){super({...e??{},name:"openapi-3-1"})}canDereference(e){var r;return e.mediaType!=="text/plain"?_a.includes(e.mediaType):TP((r=e.parseResult)===null||r===void 0?void 0:r.result)}async dereference(e,r){var n;const s=Gs(XE),i=(n=r.dereference.refSet)!==null&&n!==void 0?n:new Ea,o=new Ea;let a=i,c;i.has(e.uri)?c=i.find(yI(e.uri,"uri")):(c=new Ls({uri:e.uri,value:e.parseResult}),i.add(c)),r.dereference.immutable&&(i.refs.map(f=>new Ls({...f,value:Le(f.value)})).forEach(f=>o.add(f)),c=o.find(f=>f.uri===e.uri),a=o);const l=new qi({reference:c,namespace:s,options:r}),p=await f0e(a.rootRef.value,l,{keyMap:qn,nodeTypeGetter:wn});return r.dereference.immutable&&o.refs.filter(f=>f.uri.startsWith("immutable://")).map(f=>new Ls({...f,uri:f.uri.replace(/^immutable:\/\//,"")})).forEach(f=>i.add(f)),r.dereference.refSet===null&&i.clean(),o.clean(),p}}const d0e=t=>t.slice(2),Bn=t=>{const e=d0e(t);return e.reduce((r,n,s)=>{if(Kn(n)){const i=String(we(n.key));r.push(i)}else if(wr(e[s-2])){const i=e[s-2].content.indexOf(n);r.push(i)}return r},[])};class m0e{constructor({modelPropertyMacro:e,options:r}){H(this,"modelPropertyMacro");H(this,"options");H(this,"SchemaElement",{leave:(e,r,n,s,i)=>{typeof e.properties>"u"||yt(e.properties)&&e.properties.forEach(o=>{if(yt(o))try{const l=this.modelPropertyMacro(we(o));o.set("default",l)}catch(l){var a,c;const p=new Error(l,{cause:l});p.fullPath=[...Bn([...i,n,e]),"properties"],(a=this.options.dereference.dereferenceOpts)===null||a===void 0||(a=a.errors)===null||a===void 0||(c=a.push)===null||c===void 0||c.call(a,p)}})}});this.modelPropertyMacro=e,this.options=r}}class g0e{constructor({options:e}){H(this,"options");H(this,"SchemaElement",{leave(e,r,n,s,i){if(typeof e.allOf>"u")return;if(!wr(e.allOf)){var o,a;const f=new TypeError("allOf must be an array");f.fullPath=[...Bn([...i,n,e]),"allOf"],(o=this.options.dereference.dereferenceOpts)===null||o===void 0||(o=o.errors)===null||o===void 0||(a=o.push)===null||a===void 0||a.call(o,f);return}if(e.allOf.isEmpty){e.remove("allOf");return}if(!e.allOf.content.every(zn)){var l,p;const f=new TypeError("Elements in allOf must be objects");f.fullPath=[...Bn([...i,n,e]),"allOf"],(l=this.options.dereference.dereferenceOpts)===null||l===void 0||(l=l.errors)===null||l===void 0||(p=l.push)===null||p===void 0||p.call(l,f);return}for(;e.hasKey("allOf");){const{allOf:f}=e;e.remove("allOf");const m=_n.all([...f.content,e],{customMerge:d=>we(d)==="enum"?(g,v)=>{if(Sa(["json-schema-enum"],g)&&Sa(["json-schema-enum"],v)){const y=(S,w)=>wr(S)||wr(w)||yt(S)||yt(w)?!1:S.equals(we(w)),E=ur(g);return E.content=EI(y)([...g.content,...v.content]),E}return _n(g,v)}:_n});if(e.hasKey("$$ref")||m.remove("$$ref"),e.hasKey("example")){const d=m.getMember("example");d&&(d.value=e.get("example"))}if(e.hasKey("examples")){const d=m.getMember("examples");d&&(d.value=e.get("examples"))}e.content=m.content}}});this.options=e}}var Hi;class y0e{constructor({parameterMacro:e,options:r}){H(this,"parameterMacro");H(this,"options");Rs(this,Hi);H(this,"OperationElement",{enter:e=>{Fo(this,Hi,e)},leave:()=>{Fo(this,Hi,void 0)}});H(this,"ParameterElement",{leave:(e,r,n,s,i)=>{const o=Ut(this,Hi)?we(Ut(this,Hi)):null,a=we(e);try{const p=this.parameterMacro(o,a);e.set("default",p)}catch(p){var c,l;const f=new Error(p,{cause:p});f.fullPath=Bn([...i,n]),(c=this.options.dereference.dereferenceOpts)===null||c===void 0||(c=c.errors)===null||c===void 0||(l=c.push)===null||l===void 0||l.call(c,f)}}});this.parameterMacro=e,this.options=r}}Hi=new WeakMap;const Qu=t=>{if(t.cause==null)return t;let{cause:e}=t;for(;e.cause!=null;)e=e.cause;return e};class v0e extends vs{}const{wrapError:Eg}=TE,Sg=rr[Symbol.for("nodejs.util.promisify.custom")],dn=new AE,Mi=(t,e,r,n)=>{Kn(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class Ac extends qi{constructor({allowMetaPatches:r=!0,useCircularStructures:n=!1,basePath:s=null,...i}){super(i);H(this,"useCircularStructures");H(this,"allowMetaPatches");H(this,"basePath");this.allowMetaPatches=r,this.useCircularStructures=n,this.basePath=s}async ReferenceElement(r,n,s,i,o,a){try{if(this.indirections.includes(r))return!1;const[g,v]=this.toAncestorLineage([...o,s]),y=this.toBaseURI(we(r.$ref)),E=Ct(this.reference.uri)===y,S=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&S)return!1;const w=await this.toReference(we(r.$ref)),x=Er(y,we(r.$ref));this.indirections.push(r);const I=En(x);let T=Vn(w.value.result,I);if(T.id=dn.identify(T),Zi(T)){const Z=we(r.meta.get("referenced-element")),V=`${Z}-${we(dn.identify(T))}`;this.refractCache.has(V)?T=this.refractCache.get(V):kt(T)?(T=$i.refract(T),T.setMetaProperty("referenced-element",Z),this.refractCache.set(V,T)):(T=this.namespace.getElementClass(Z).refract(T),this.refractCache.set(V,T))}if(r===T)throw new zt("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aa(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(T)){if(w.refSet.circular=!0,this.options.dereference.circular==="error")throw new zt("Circular reference detected");if(this.options.dereference.circular==="replace"){var c,l;const Z=new Xi(T.id,{type:"reference",uri:w.uri,$ref:we(r.$ref),baseURI:x,referencingElement:r}),J=((c=(l=this.options.dereference.strategyOpts["openapi-3-1"])===null||l===void 0?void 0:l.circularReplacer)!==null&&c!==void 0?c:this.options.dereference.circularReplacer)(Z);return a.replaceWith(Z,Mi),s?!1:J}}const D=Ct(w.refSet.rootRef.uri)!==w.uri,B=["error","replace"].includes(this.options.dereference.circular);if((S||D||bo(T)||B)&&!g.includesCycle(T)){var p;v.add(r);const Z=new Ac({reference:w,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:g,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(p=this.basePath)!==null&&p!==void 0?p:[...Bn([...o,s,r]),"$ref"]});T=await Sg(T,Z,{keyMap:qn,nodeTypeGetter:wn}),v.delete(r)}this.indirections.pop();const P=ur(T);if(P.setMetaProperty("ref-fields",{$ref:we(r.$ref),description:we(r.description),summary:we(r.summary)}),P.setMetaProperty("ref-origin",w.uri),P.setMetaProperty("ref-referencing-element-id",Le(dn.identify(r))),yt(T)&&(r.hasKey("description")&&"description"in T&&(P.remove("description"),P.set("description",r.get("description"))),r.hasKey("summary")&&"summary"in T&&(P.remove("summary"),P.set("summary",r.get("summary")))),this.allowMetaPatches&&yt(P)&&!P.hasKey("$$ref")){const Z=Er(y,x);P.set("$$ref",Z)}return a.replaceWith(P,Mi),s?!1:P}catch(g){var f,m,d;const v=Qu(g),y=Eg(v,{baseDoc:this.reference.uri,$ref:we(r.$ref),pointer:En(we(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Bn([...o,s,r]),"$ref"]});(m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(d=m.push)===null||d===void 0||d.call(m,y);return}}async PathItemElement(r,n,s,i,o,a){try{if(!Xe(r.$ref))return;if(this.indirections.includes(r)||Sa(["cycle"],r.$ref))return!1;const[g,v]=this.toAncestorLineage([...o,s]),y=this.toBaseURI(we(r.$ref)),E=Ct(this.reference.uri)===y,S=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&S)return;const w=await this.toReference(we(r.$ref)),x=Er(y,we(r.$ref));this.indirections.push(r);const I=En(x);let T=Vn(w.value.result,I);if(T.id=dn.identify(T),Zi(T)){const P=`path-item-${we(dn.identify(T))}`;this.refractCache.has(P)?T=this.refractCache.get(P):(T=gi.refract(T),this.refractCache.set(P,T))}if(r===T)throw new zt("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aa(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(T)){if(w.refSet.circular=!0,this.options.dereference.circular==="error")throw new zt("Circular reference detected");if(this.options.dereference.circular==="replace"){var c,l;const P=new Xi(T.id,{type:"path-item",uri:w.uri,$ref:we(r.$ref),baseURI:x,referencingElement:r}),V=((c=(l=this.options.dereference.strategyOpts["openapi-3-1"])===null||l===void 0?void 0:l.circularReplacer)!==null&&c!==void 0?c:this.options.dereference.circularReplacer)(P);return a.replaceWith(P,Mi),s?!1:V}}const D=Ct(w.refSet.rootRef.uri)!==w.uri,B=["error","replace"].includes(this.options.dereference.circular);if((S||D||so(T)&&Xe(T.$ref)||B)&&!g.includesCycle(T)){var p;v.add(r);const P=new Ac({reference:w,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:g,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(p=this.basePath)!==null&&p!==void 0?p:[...Bn([...o,s,r]),"$ref"]});T=await Sg(T,P,{keyMap:qn,nodeTypeGetter:wn}),v.delete(r)}if(this.indirections.pop(),so(T)){const P=new gi([...T.content],Le(T.meta),Le(T.attributes));if(r.forEach((Z,V,J)=>{P.remove(we(V)),P.content.push(J)}),P.remove("$ref"),P.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),P.setMetaProperty("ref-origin",w.uri),P.setMetaProperty("ref-referencing-element-id",Le(dn.identify(r))),this.allowMetaPatches&&typeof P.get("$$ref")>"u"){const Z=Er(y,x);P.set("$$ref",Z)}T=P}return a.replaceWith(T,Mi),s?void 0:T}catch(g){var f,m,d;const v=Qu(g),y=Eg(v,{baseDoc:this.reference.uri,$ref:we(r.$ref),pointer:En(we(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Bn([...o,s,r]),"$ref"]});(m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(d=m.push)===null||d===void 0||d.call(m,y);return}}async SchemaElement(r,n,s,i,o,a){try{if(!Xe(r.$ref))return;if(this.indirections.includes(r))return!1;const[g,v]=this.toAncestorLineage([...o,s]);let y=await this.toReference(cs(this.reference.uri)),{uri:E}=y;const S=PP(E,r),w=Ct(S),x=new ba({uri:w}),I=!this.options.resolve.resolvers.some(J=>J.canRead(x)),T=!I;let D=Ct(this.reference.uri)===S,B=!D;this.indirections.push(r);let P;try{if(I||T){E=this.toBaseURI(S);const J=S,F=Ar(y.value.result);if(P=Od(J,F),P=Ar(P),P.id=dn.identify(P),!this.options.resolve.internal&&D||!this.options.resolve.external&&B)return}else{if(E=this.toBaseURI(S),D=Ct(this.reference.uri)===E,B=!D,!this.options.resolve.internal&&D||!this.options.resolve.external&&B)return;y=await this.toReference(cs(S));const J=En(S),F=Ar(y.value.result);P=Vn(F,J),P=Ar(P),P.id=dn.identify(P)}}catch(J){if(T&&J instanceof CE)if(Ad(Aa(S))){if(D=Ct(this.reference.uri)===E,B=!D,!this.options.resolve.internal&&D||!this.options.resolve.external&&B)return;y=await this.toReference(cs(S));const F=Aa(S),Q=Ar(y.value.result);P=QE(F,Q),P=Ar(P),P.id=dn.identify(P)}else{if(E=this.toBaseURI(we(S)),D=Ct(this.reference.uri)===E,B=!D,!this.options.resolve.internal&&D||!this.options.resolve.external&&B)return;y=await this.toReference(cs(S));const F=En(S),Q=Ar(y.value.result);P=Vn(Q,F),P=Ar(P),P.id=dn.identify(P)}else throw J}if(r===P)throw new zt("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new aa(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(P)){if(y.refSet.circular=!0,this.options.dereference.circular==="error")throw new zt("Circular reference detected");if(this.options.dereference.circular==="replace"){var c,l;const J=new Xi(P.id,{type:"json-schema",uri:y.uri,$ref:we(r.$ref),baseURI:Er(E,S),referencingElement:r}),Q=((c=(l=this.options.dereference.strategyOpts["openapi-3-1"])===null||l===void 0?void 0:l.circularReplacer)!==null&&c!==void 0?c:this.options.dereference.circularReplacer)(J);return a.replaceWith(Q,Mi),s?!1:Q}}const Z=Ct(y.refSet.rootRef.uri)!==y.uri,V=["error","replace"].includes(this.options.dereference.circular);if((B||Z||zn(P)&&Xe(P.$ref)||V)&&!g.includesCycle(P)){var p;v.add(r);const J=new Ac({reference:y,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:g,basePath:(p=this.basePath)!==null&&p!==void 0?p:[...Bn([...o,s,r]),"$ref"]});P=await Sg(P,J,{keyMap:qn,nodeTypeGetter:wn}),v.delete(r)}if(this.indirections.pop(),ZE(P)){const J=Le(P);return J.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),J.setMetaProperty("ref-origin",y.uri),J.setMetaProperty("ref-referencing-element-id",Le(dn.identify(r))),a.replaceWith(J,Mi),s?!1:J}if(zn(P)){const J=new yi([...P.content],Le(P.meta),Le(P.attributes));if(r.forEach((F,Q,se)=>{J.remove(we(Q)),J.content.push(se)}),J.remove("$ref"),J.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),J.setMetaProperty("ref-origin",y.uri),J.setMetaProperty("ref-referencing-element-id",Le(dn.identify(r))),this.allowMetaPatches&&typeof J.get("$$ref")>"u"){const F=Er(E,S);J.set("$$ref",F)}P=J}return a.replaceWith(P,Mi),s?void 0:P}catch(g){var f,m,d;const v=Qu(g),y=new v0e(`Could not resolve reference: ${v.message}`,{baseDoc:this.reference.uri,$ref:we(r.$ref),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Bn([...o,s,r]),"$ref"],cause:v});(m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(d=m.push)===null||d===void 0||d.call(m,y);return}}async LinkElement(){}async ExampleElement(r,n,s,i,o,a){try{return await super.ExampleElement(r,n,s,i,o,a)}catch(f){var c,l,p;const m=Qu(f),d=Eg(m,{baseDoc:this.reference.uri,externalValue:we(r.externalValue),fullPath:(c=this.basePath)!==null&&c!==void 0?c:[...Bn([...o,s,r]),"externalValue"]});(l=this.options.dereference.dereferenceOpts)===null||l===void 0||(l=l.errors)===null||l===void 0||(p=l.push)===null||p===void 0||p.call(l,d);return}}}const b0e=Hh[Symbol.for("nodejs.util.promisify.custom")];class E0e{constructor({parameterMacro:e,modelPropertyMacro:r,mode:n,options:s,...i}){const o=[];o.push(new Ac({...i,options:s})),typeof r=="function"&&o.push(new m0e({modelPropertyMacro:r,options:s})),n!=="strict"&&o.push(new g0e({options:s})),typeof e=="function"&&o.push(new y0e({parameterMacro:e,options:s}));const a=b0e(o,{nodeTypeGetter:wn});Object.assign(this,a)}}const S0e=rr[Symbol.for("nodejs.util.promisify.custom")];class w0e extends h0e{constructor({allowMetaPatches:r=!1,parameterMacro:n=null,modelPropertyMacro:s=null,mode:i="non-strict",ancestors:o=[],...a}={}){super({...a});H(this,"allowMetaPatches");H(this,"parameterMacro");H(this,"modelPropertyMacro");H(this,"mode");H(this,"ancestors");this.name="openapi-3-1-swagger-client",this.allowMetaPatches=r,this.parameterMacro=n,this.modelPropertyMacro=s,this.mode=i,this.ancestors=[...o]}async dereference(r,n){var s;const i=Gs(XE),o=(s=n.dereference.refSet)!==null&&s!==void 0?s:new Ea,a=new Ea;let c=o,l;o.has(r.uri)?l=o.find(m=>m.uri===r.uri):(l=new Ls({uri:r.uri,value:r.parseResult}),o.add(l)),n.dereference.immutable&&(o.refs.map(m=>new Ls({...m,value:Le(m.value)})).forEach(m=>a.add(m)),l=a.find(m=>m.uri===r.uri),c=a);const p=new E0e({reference:l,namespace:i,options:n,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),f=await S0e(c.rootRef.value,p,{keyMap:qn,nodeTypeGetter:wn});return n.dereference.immutable&&a.refs.filter(m=>m.uri.startsWith("immutable://")).map(m=>new Ls({...m,uri:m.uri.replace(/^immutable:\/\//,"")})).forEach(m=>o.add(m)),n.dereference.refSet===null&&o.clean(),a.clean(),f}}const _0e=t=>{const e=we(t.meta.get("baseURI")),r=t.meta.get("referencingElement");return new Ne({$ref:e},Le(r.meta),Le(r.attributes))},Cd=async t=>{const{spec:e,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:p=null,modelPropertyMacro:f=null,mode:m="non-strict",strategies:d}=t;try{const{cache:g}=Cd,v=d.find(se=>se.match(e)),y=gE(Yy())?Yy():ff,E=jE(t),S=Er(y,E);let w;g.has(e)?w=g.get(e):(w=Ci.refract(e),w.classes.push("result"),g.set(e,w));const x=new Ks([w]),I=KR(o),T=I===""?"":`#${I}`,D=Vn(w,I),B=new Ls({uri:S,value:x}),P=new Ea({refs:[B]});I!==""&&(P.rootRef=void 0);const Z=[new Set([D])],V=[],J=await ofe(D,{resolve:{baseURI:`${S}${T}`,resolvers:[new i0e({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[new r0e]},parse:{mediaType:_a.latest(),parsers:[new c0e({allowEmpty:!1,sourceMap:!1}),new l0e({allowEmpty:!1,sourceMap:!1}),new o0e({allowEmpty:!1,sourceMap:!1}),new a0e({allowEmpty:!1,sourceMap:!1}),new t0e({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new w0e({allowMetaPatches:a,useCircularStructures:c,parameterMacro:p,modelPropertyMacro:f,mode:m,ancestors:Z})],refSet:P,dereferenceOpts:{errors:V},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?RI.dereference.circularReplacer:_0e}}),F=Vpe(D,J,w),Q=l?F:v.normalize(F);return{spec:we(Q),errors:V}}catch(g){if(g instanceof Qi)return{spec:e,errors:[]};throw g}};Cd.cache=new WeakMap;const Q2=t=>{if(!yt(t))return t;const e=[lye({operationIdNormalizer:(n,s,i)=>Ml({operationId:n},s,i,{v2OperationIdCompatibilityMode:!1})}),iye(),oye(),uye(),pye()];return Ys(t,e,{toolboxCreator:RP,visitorOptions:{keyMap:qn,nodeTypeGetter:wn}})},x0e=t=>e=>{const r=Ci.refract(e);r.classes.push("result");const n=t(r),s=we(n);return Cd.cache.set(s,n),we(n)},eA={name:"openapi-3-1-apidom",match(t){return DE(t)},normalize(t){if(!Zt(t)&&Wn(t)&&!t.$$normalized){const e=x0e(Q2)(t);return e.$$normalized=!0,e}return Zt(t)?Q2(t):t},async resolve(t){return Cd(t)}},A0e=async t=>{const{spec:e,requestInterceptor:r,responseInterceptor:n}=t,s=jE(t),i=qR(t),o=e||await FR(i,{requestInterceptor:r,responseInterceptor:n})(s),a={...t,spec:o};return t.strategies.find(l=>l.match(o)).resolve(a)},kP=t=>async e=>{const r={...t,...e};return A0e(r)},O0e=kP({strategies:[iv,sv,nv]});function C0e(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"server-url-template",lower:"server-url-template",index:0,isBkr:!1},this.rules[1]={name:"server-variable",lower:"server-variable",index:1,isBkr:!1},this.rules[2]={name:"server-variable-name",lower:"server-variable-name",index:2,isBkr:!1},this.rules[3]={name:"literals",lower:"literals",index:3,isBkr:!1},this.rules[4]={name:"DIGIT",lower:"digit",index:4,isBkr:!1},this.rules[5]={name:"HEXDIG",lower:"hexdig",index:5,isBkr:!1},this.rules[6]={name:"pct-encoded",lower:"pct-encoded",index:6,isBkr:!1},this.rules[7]={name:"ucschar",lower:"ucschar",index:7,isBkr:!1},this.rules[8]={name:"iprivate",lower:"iprivate",index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e="";return e+=`; OpenAPI Server URL templating ABNF syntax
|
|
63
|
+
`,e+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
|
|
64
|
+
`,e+=`server-variable = "{" server-variable-name "}"
|
|
65
|
+
`,e+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
|
|
66
|
+
`,e+=`
|
|
67
|
+
`,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
|
|
68
|
+
`,e+=`; https://www.rfc-editor.org/errata/eid6937
|
|
69
|
+
`,e+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
|
|
70
|
+
`,e+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
|
|
71
|
+
`,e+=` / pct-encoded)
|
|
72
|
+
`,e+=` ; any Unicode character except: CTL, SP,
|
|
73
|
+
`,e+=` ; DQUOTE, "%" (aside from pct-encoded),
|
|
74
|
+
`,e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+=`
|
|
75
|
+
`,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
|
|
76
|
+
`,e+=`DIGIT = %x30-39 ; 0-9
|
|
77
|
+
`,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
|
|
78
|
+
`,e+=`
|
|
79
|
+
`,e+=`pct-encoded = "%" HEXDIG HEXDIG
|
|
80
|
+
`,e+=`
|
|
81
|
+
`,e+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
|
|
82
|
+
`,e+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
|
|
83
|
+
`,e+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
|
|
84
|
+
`,e+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
|
|
85
|
+
`,e+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
|
|
86
|
+
`,e+=` / %xD0000-DFFFD / %xE1000-EFFFD
|
|
87
|
+
`,e+=`
|
|
88
|
+
`,e+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
|
|
89
|
+
`,e}}const $0e=(t,e,r,n,s)=>{if(t===st.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["server-url-template",sn.charsToString(e,r,n)])}return st.SEM_OK},T0e=(t,e,r,n,s)=>{if(t===st.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["server-variable",sn.charsToString(e,r,n)])}return st.SEM_OK},I0e=(t,e,r,n,s)=>{if(t===st.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["server-variable-name",sn.charsToString(e,r,n)])}return st.SEM_OK},R0e=(t,e,r,n,s)=>{if(t===st.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["literals",sn.charsToString(e,r,n)])}return st.SEM_OK},P0e=new C0e,jP=t=>{const e=new Tn;return e.ast=new FE,e.ast.callbacks["server-url-template"]=$0e,e.ast.callbacks["server-variable"]=T0e,e.ast.callbacks["server-variable-name"]=I0e,e.ast.callbacks.literals=R0e,{result:e.parse(P0e,"server-url-template",t),ast:e.ast}},k0e=(t,{strict:e=!1}={})=>{try{const r=jP(t);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const s=n.some(([i])=>i==="server-variable");if(!e&&!s)try{return new URL(t,"https://vladimirgorej.com"),!0}catch{return!1}return e?s:!0}catch{return!1}},j0e=t=>{try{return typeof t=="string"&&decodeURIComponent(t)!==t}catch{return!1}},N0e=t=>j0e(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),M0e=["literals","server-variable-name"],D0e=(t,e,r={})=>{const s={...{encoder:N0e},...r},i=jP(t);if(!i.result.success)return t;const o=[];return i.ast.translate(o),o.filter(([c])=>M0e.includes(c)).map(([c,l])=>c==="server-variable-name"?Object.hasOwn(e,l)?s.encoder(e[l],l):`{${l}}`:l).join("")};function NP(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"path-template",lower:"path-template",index:0,isBkr:!1},this.rules[1]={name:"path-segment",lower:"path-segment",index:1,isBkr:!1},this.rules[2]={name:"slash",lower:"slash",index:2,isBkr:!1},this.rules[3]={name:"path-literal",lower:"path-literal",index:3,isBkr:!1},this.rules[4]={name:"template-expression",lower:"template-expression",index:4,isBkr:!1},this.rules[5]={name:"template-expression-param-name",lower:"template-expression-param-name",index:5,isBkr:!1},this.rules[6]={name:"pchar",lower:"pchar",index:6,isBkr:!1},this.rules[7]={name:"unreserved",lower:"unreserved",index:7,isBkr:!1},this.rules[8]={name:"pct-encoded",lower:"pct-encoded",index:8,isBkr:!1},this.rules[9]={name:"sub-delims",lower:"sub-delims",index:9,isBkr:!1},this.rules[10]={name:"ALPHA",lower:"alpha",index:10,isBkr:!1},this.rules[11]={name:"DIGIT",lower:"digit",index:11,isBkr:!1},this.rules[12]={name:"HEXDIG",lower:"hexdig",index:12,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2,6]},this.rules[0].opcodes[1]={type:4,index:2},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5]},this.rules[0].opcodes[4]={type:4,index:1},this.rules[0].opcodes[5]={type:4,index:2},this.rules[0].opcodes[6]={type:3,min:0,max:1},this.rules[0].opcodes[7]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:1,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:4},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:7,string:[47]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:2,children:[1,2,3]},this.rules[4].opcodes[1]={type:7,string:[123]},this.rules[4].opcodes[2]={type:4,index:5},this.rules[4].opcodes[3]={type:7,string:[125]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:3,min:1,max:1/0},this.rules[5].opcodes[1]={type:1,children:[2,3,4]},this.rules[5].opcodes[2]={type:5,min:0,max:122},this.rules[5].opcodes[3]={type:6,string:[124]},this.rules[5].opcodes[4]={type:5,min:126,max:1114111},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[6].opcodes[1]={type:4,index:7},this.rules[6].opcodes[2]={type:4,index:8},this.rules[6].opcodes[3]={type:4,index:9},this.rules[6].opcodes[4]={type:7,string:[58]},this.rules[6].opcodes[5]={type:7,string:[64]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[7].opcodes[1]={type:4,index:10},this.rules[7].opcodes[2]={type:4,index:11},this.rules[7].opcodes[3]={type:7,string:[45]},this.rules[7].opcodes[4]={type:7,string:[46]},this.rules[7].opcodes[5]={type:7,string:[95]},this.rules[7].opcodes[6]={type:7,string:[126]},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:2,children:[1,2,3]},this.rules[8].opcodes[1]={type:7,string:[37]},this.rules[8].opcodes[2]={type:4,index:12},this.rules[8].opcodes[3]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11]},this.rules[9].opcodes[1]={type:7,string:[33]},this.rules[9].opcodes[2]={type:7,string:[36]},this.rules[9].opcodes[3]={type:7,string:[38]},this.rules[9].opcodes[4]={type:7,string:[39]},this.rules[9].opcodes[5]={type:7,string:[40]},this.rules[9].opcodes[6]={type:7,string:[41]},this.rules[9].opcodes[7]={type:7,string:[42]},this.rules[9].opcodes[8]={type:7,string:[43]},this.rules[9].opcodes[9]={type:7,string:[44]},this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e="";return e+=`; OpenAPI Path Templating ABNF syntax
|
|
90
|
+
`,e+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
|
|
91
|
+
`,e+=`path-template = slash *( path-segment slash ) [ path-segment ]
|
|
92
|
+
`,e+=`path-segment = 1*( path-literal / template-expression )
|
|
93
|
+
`,e+=`slash = "/"
|
|
94
|
+
`,e+=`path-literal = 1*pchar
|
|
95
|
+
`,e+=`template-expression = "{" template-expression-param-name "}"
|
|
96
|
+
`,e+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
|
|
97
|
+
`,e+=`
|
|
98
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
|
|
99
|
+
`,e+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
|
100
|
+
`,e+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
|
|
101
|
+
`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
|
|
102
|
+
`,e+=`pct-encoded = "%" HEXDIG HEXDIG
|
|
103
|
+
`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
|
|
104
|
+
`,e+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
|
|
105
|
+
`,e+=` / "*" / "+" / "," / ";" / "="
|
|
106
|
+
`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
|
|
107
|
+
`,e+=`
|
|
108
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
|
|
109
|
+
`,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
110
|
+
`,e+=`DIGIT = %x30-39 ; 0-9
|
|
111
|
+
`,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
|
|
112
|
+
`,e}}const F0e=(t,e,r,n,s)=>(t===st.SEM_PRE&&s.push(["slash",sn.charsToString(e,r,n)]),st.SEM_OK),B0e=(t,e,r,n,s)=>{if(t===st.SEM_PRE){if(Array.isArray(s)===!1)throw new Error("parser's user data must be an array");s.push(["path-template",sn.charsToString(e,r,n)])}return st.SEM_OK},L0e=(t,e,r,n,s)=>(t===st.SEM_PRE&&s.push(["path-literal",sn.charsToString(e,r,n)]),st.SEM_OK),U0e=(t,e,r,n,s)=>(t===st.SEM_PRE&&s.push(["template-expression",sn.charsToString(e,r,n)]),st.SEM_OK),V0e=(t,e,r,n,s)=>(t===st.SEM_PRE&&s.push(["template-expression-param-name",sn.charsToString(e,r,n)]),st.SEM_OK),q0e=new NP,z0e=t=>{const e=new Tn;return e.ast=new FE,e.ast.callbacks["path-template"]=B0e,e.ast.callbacks.slash=F0e,e.ast.callbacks["path-literal"]=L0e,e.ast.callbacks["template-expression"]=U0e,e.ast.callbacks["template-expression-param-name"]=V0e,{result:e.parse(q0e,"path-template",t),ast:e.ast}},J0e=t=>{try{return typeof t=="string"&&decodeURIComponent(t)!==t}catch{return!1}},W0e=t=>J0e(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),H0e=["slash","path-literal","template-expression-param-name"],Lv=(t,e,r={})=>{const s={...{encoder:W0e},...r},i=z0e(t);if(!i.result.success)return t;const o=[];return i.ast.translate(o),o.filter(([c])=>H0e.includes(c)).map(([c,l])=>c==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(e,l)?s.encoder(e[l],l):`{${l}}`:l).join("")};new NP;new Tn;const K0e={body:G0e,header:X0e,query:Q0e,path:Z0e,formData:Y0e};function G0e({req:t,value:e}){e!==void 0&&(t.body=e)}function Y0e({req:t,value:e,parameter:r}){if(e===!1&&r.type==="boolean"&&(e="false"),e===0&&["number","integer"].indexOf(r.type)>-1&&(e="0"),e)t.form=t.form||{},t.form[r.name]={collectionFormat:r.collectionFormat,value:e};else if(r.allowEmptyValue&&e!==void 0){t.form=t.form||{};const n=r.name;t.form[n]=t.form[n]||{},t.form[n].allowEmptyValue=!0}}function X0e({req:t,parameter:e,value:r}){t.headers=t.headers||{},typeof r<"u"&&(t.headers[e.name]=r)}function Z0e({req:t,value:e,parameter:r,baseURL:n}){if(e!==void 0){const s=t.url.replace(n,""),i=Lv(s,{[r.name]:e});t.url=n+i}}function Q0e({req:t,value:e,parameter:r}){if(t.query=t.query||{},e===!1&&r.type==="boolean"&&(e="false"),e===0&&["number","integer"].indexOf(r.type)>-1&&(e="0"),e)t.query[r.name]={collectionFormat:r.collectionFormat,value:e};else if(r.allowEmptyValue&&e!==void 0){const n=r.name;t.query[n]=t.query[n]||{},t.query[n].allowEmptyValue=!0}}function $d(t,e){return e.includes("application/json")?typeof t=="string"?t:(Array.isArray(t)&&(t=t.map(r=>{try{return JSON.parse(r)}catch{return r}})),JSON.stringify(t)):String(t)}function vu(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"lenient-cookie-string",lower:"lenient-cookie-string",index:0,isBkr:!1},this.rules[1]={name:"lenient-cookie-entry",lower:"lenient-cookie-entry",index:1,isBkr:!1},this.rules[2]={name:"lenient-cookie-pair",lower:"lenient-cookie-pair",index:2,isBkr:!1},this.rules[3]={name:"lenient-cookie-pair-invalid",lower:"lenient-cookie-pair-invalid",index:3,isBkr:!1},this.rules[4]={name:"lenient-cookie-name",lower:"lenient-cookie-name",index:4,isBkr:!1},this.rules[5]={name:"lenient-cookie-value",lower:"lenient-cookie-value",index:5,isBkr:!1},this.rules[6]={name:"lenient-quoted-value",lower:"lenient-quoted-value",index:6,isBkr:!1},this.rules[7]={name:"lenient-quoted-char",lower:"lenient-quoted-char",index:7,isBkr:!1},this.rules[8]={name:"lenient-cookie-octet",lower:"lenient-cookie-octet",index:8,isBkr:!1},this.rules[9]={name:"cookie-string",lower:"cookie-string",index:9,isBkr:!1},this.rules[10]={name:"cookie-pair",lower:"cookie-pair",index:10,isBkr:!1},this.rules[11]={name:"cookie-name",lower:"cookie-name",index:11,isBkr:!1},this.rules[12]={name:"cookie-value",lower:"cookie-value",index:12,isBkr:!1},this.rules[13]={name:"cookie-octet",lower:"cookie-octet",index:13,isBkr:!1},this.rules[14]={name:"OWS",lower:"ows",index:14,isBkr:!1},this.rules[15]={name:"token",lower:"token",index:15,isBkr:!1},this.rules[16]={name:"tchar",lower:"tchar",index:16,isBkr:!1},this.rules[17]={name:"CHAR",lower:"char",index:17,isBkr:!1},this.rules[18]={name:"CTL",lower:"ctl",index:18,isBkr:!1},this.rules[19]={name:"separators",lower:"separators",index:19,isBkr:!1},this.rules[20]={name:"SP",lower:"sp",index:20,isBkr:!1},this.rules[21]={name:"HT",lower:"ht",index:21,isBkr:!1},this.rules[22]={name:"ALPHA",lower:"alpha",index:22,isBkr:!1},this.rules[23]={name:"DIGIT",lower:"digit",index:23,isBkr:!1},this.rules[24]={name:"DQUOTE",lower:"dquote",index:24,isBkr:!1},this.rules[25]={name:"WSP",lower:"wsp",index:25,isBkr:!1},this.rules[26]={name:"HTAB",lower:"htab",index:26,isBkr:!1},this.rules[27]={name:"CRLF",lower:"crlf",index:27,isBkr:!1},this.rules[28]={name:"CR",lower:"cr",index:28,isBkr:!1},this.rules[29]={name:"LF",lower:"lf",index:29,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:1},this.rules[0].opcodes[2]={type:3,min:0,max:1/0},this.rules[0].opcodes[3]={type:2,children:[4,5,6]},this.rules[0].opcodes[4]={type:7,string:[59]},this.rules[0].opcodes[5]={type:4,index:14},this.rules[0].opcodes[6]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:1,children:[1,2]},this.rules[1].opcodes[1]={type:4,index:2},this.rules[1].opcodes[2]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:2,children:[1,2,3,4,5,6,7]},this.rules[2].opcodes[1]={type:4,index:14},this.rules[2].opcodes[2]={type:4,index:4},this.rules[2].opcodes[3]={type:4,index:14},this.rules[2].opcodes[4]={type:7,string:[61]},this.rules[2].opcodes[5]={type:4,index:14},this.rules[2].opcodes[6]={type:4,index:5},this.rules[2].opcodes[7]={type:4,index:14},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2,4]},this.rules[3].opcodes[1]={type:4,index:14},this.rules[3].opcodes[2]={type:3,min:1,max:1/0},this.rules[3].opcodes[3]={type:4,index:16},this.rules[3].opcodes[4]={type:4,index:14},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:3,min:1,max:1/0},this.rules[4].opcodes[1]={type:1,children:[2,3,4]},this.rules[4].opcodes[2]={type:5,min:33,max:58},this.rules[4].opcodes[3]={type:6,string:[60]},this.rules[4].opcodes[4]={type:5,min:62,max:126},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,6]},this.rules[5].opcodes[1]={type:2,children:[2,3]},this.rules[5].opcodes[2]={type:4,index:6},this.rules[5].opcodes[3]={type:3,min:0,max:1},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:4,index:8},this.rules[5].opcodes[6]={type:3,min:0,max:1/0},this.rules[5].opcodes[7]={type:4,index:8},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,4]},this.rules[6].opcodes[1]={type:4,index:24},this.rules[6].opcodes[2]={type:3,min:0,max:1/0},this.rules[6].opcodes[3]={type:4,index:7},this.rules[6].opcodes[4]={type:4,index:24},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2]},this.rules[7].opcodes[1]={type:5,min:32,max:33},this.rules[7].opcodes[2]={type:5,min:35,max:126},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:33,max:43},this.rules[8].opcodes[2]={type:5,min:45,max:58},this.rules[8].opcodes[3]={type:5,min:60,max:126},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:2,children:[1,2]},this.rules[9].opcodes[1]={type:4,index:10},this.rules[9].opcodes[2]={type:3,min:0,max:1/0},this.rules[9].opcodes[3]={type:2,children:[4,5,6]},this.rules[9].opcodes[4]={type:7,string:[59]},this.rules[9].opcodes[5]={type:4,index:20},this.rules[9].opcodes[6]={type:4,index:10},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:2,children:[1,2,3]},this.rules[10].opcodes[1]={type:4,index:11},this.rules[10].opcodes[2]={type:7,string:[61]},this.rules[10].opcodes[3]={type:4,index:12},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:4,index:15},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,6]},this.rules[12].opcodes[1]={type:2,children:[2,3,5]},this.rules[12].opcodes[2]={type:4,index:24},this.rules[12].opcodes[3]={type:3,min:0,max:1/0},this.rules[12].opcodes[4]={type:4,index:13},this.rules[12].opcodes[5]={type:4,index:24},this.rules[12].opcodes[6]={type:3,min:0,max:1/0},this.rules[12].opcodes[7]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let e="";return e+=`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
|
|
113
|
+
`,e+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
|
|
114
|
+
`,e+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
|
|
115
|
+
`,e+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
|
|
116
|
+
`,e+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
|
|
117
|
+
`,e+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
|
|
118
|
+
`,e+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
|
|
119
|
+
`,e+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
|
|
120
|
+
`,e+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
|
|
121
|
+
`,e+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
|
|
122
|
+
`,e+=` ; Allow all printable characters except CTLs, semicolon and SP
|
|
123
|
+
`,e+=`
|
|
124
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
|
|
125
|
+
`,e+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
|
|
126
|
+
`,e+=`
|
|
127
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
|
|
128
|
+
`,e+=`; https://www.rfc-editor.org/errata/eid5518
|
|
129
|
+
`,e+=`cookie-pair = cookie-name "=" cookie-value
|
|
130
|
+
`,e+=`cookie-name = token
|
|
131
|
+
`,e+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
|
|
132
|
+
`,e+=` ; https://www.rfc-editor.org/errata/eid8242
|
|
133
|
+
`,e+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
|
|
134
|
+
`,e+=` ; US-ASCII characters excluding CTLs,
|
|
135
|
+
`,e+=` ; whitespace, DQUOTE, comma, semicolon,
|
|
136
|
+
`,e+=` ; and backslash
|
|
137
|
+
`,e+=`
|
|
138
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
|
|
139
|
+
`,e+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
|
|
140
|
+
`,e+=`
|
|
141
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
|
|
142
|
+
`,e+=`token = 1*(tchar)
|
|
143
|
+
`,e+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
|
144
|
+
`,e+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',e+=` / DIGIT / ALPHA
|
|
145
|
+
`,e+=` ; any VCHAR, except delimiters
|
|
146
|
+
`,e+=`
|
|
147
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
|
|
148
|
+
`,e+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
|
|
149
|
+
`,e+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
|
|
150
|
+
`,e+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
|
|
151
|
+
`,e+=`SP = %x20 ; US-ASCII SP, space (32)
|
|
152
|
+
`,e+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
|
|
153
|
+
`,e+=`
|
|
154
|
+
`,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
|
|
155
|
+
`,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
156
|
+
`,e+=`DIGIT = %x30-39 ; 0-9
|
|
157
|
+
`,e+=`DQUOTE = %x22 ; " (Double Quote)
|
|
158
|
+
`,e+=`WSP = SP / HTAB ; white space
|
|
159
|
+
`,e+=`HTAB = %x09 ; horizontal tab
|
|
160
|
+
`,e+=`CRLF = CR LF ; Internet standard newline
|
|
161
|
+
`,e+=`CR = %x0D ; carriage return
|
|
162
|
+
`,e+=`LF = %x0A ; linefeed
|
|
163
|
+
`,e}}new vu;const ebe=t=>{if(typeof t!="string"||[...t].length!==1)throw new TypeError("Input must be a single character string.");const e=t.codePointAt(0);return e<=127?`%${e.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(t)},tbe=t=>t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),Td=t=>t.length>=2&&t.startsWith('"')&&t.endsWith('"'),MP=t=>Td(t)?t.slice(1,-1):t,DP=t=>`"${t}"`,FP=t=>t,rbe=new Tn,nbe=new vu,eS=(t,{strict:e=!0,quoted:r=null}={})=>{try{const n=e?"cookie-value":"lenient-cookie-value",s=rbe.parse(nbe,n,t);return typeof r=="boolean"?s.success&&r===Td(t):s.success}catch{return!1}},BP=t=>{const r=new TextEncoder().encode(t).reduce((n,s)=>n+String.fromCharCode(s),"");return btoa(r)},sbe=(t,e=BP)=>{const r=String(t);if(eS(r))return r;const n=Td(r),s=n?MP(r):r,i=e(s);return n?DP(i):i},ibe=t=>tbe(BP(t)),obe=t=>sbe(t,ibe),abe=new Tn,cbe=new vu,LP=(t,{strict:e=!0}={})=>{try{const r=e?"cookie-name":"lenient-cookie-name";return abe.parse(cbe,r,t).success}catch{return!1}},lbe=t=>{if(!LP(t))throw new TypeError(`Invalid cookie name: ${t}`)},UP=t=>{if(!eS(t))throw new TypeError(`Invalid cookie value: ${t}`)},tA={encoders:{name:FP,value:obe},validators:{name:lbe,value:UP}},ube=(t,e,r={})=>{const n={...r,encoders:{...tA.encoders,...r.encoders},validators:{...tA.validators,...r.validators}},s=n.encoders.name(t),i=n.encoders.value(e);return n.validators.name(s),n.validators.value(i),`${s}=${i}`},pbe=(t,e={})=>(Array.isArray(t)?t:typeof t=="object"&&t!==null?Object.entries(t):[]).map(([n,s])=>ube(n,s,e)).join("; "),fbe=new Tn,hbe=new vu,dbe=t=>{const e=String(t);if(eS(e))return e;const r=Td(e),n=r?MP(e):e;let s="";for(const i of n)s+=fbe.parse(hbe,"cookie-octet",i).success?i:ebe(i);return r?DP(s):s};new Tn;new vu;const mbe=t=>{if(!LP(t,{strict:!1}))throw new TypeError(`Invalid cookie name: ${t}`)},gbe="%3D",ybe="%26",vbe=t=>dbe(t).replace(/[=&]/gu,e=>e==="="?gbe:ybe),Uv=(t,e={})=>pbe(t,Dh({encoders:{name:FP,value:vbe},validators:{name:mbe,value:UP}},e));function bbe({req:t,value:e,parameter:r,baseURL:n}){const{name:s,style:i,explode:o,content:a}=r;if(e===void 0)return;const c=t.url.replace(n,"");let l;if(a){const p=Object.keys(a)[0];l=Lv(c,{[s]:e},{encoder:f=>LR($d(f,p))})}else l=Lv(c,{[s]:e},{encoder:p=>PE({key:r.name,value:p,style:i||"simple",explode:o??!1,escape:"reserved"})});t.url=n+l}function Ebe({req:t,value:e,parameter:r}){if(t.query=t.query||{},e!==void 0&&r.content){const n=Object.keys(r.content)[0],s=$d(e,n);if(s)t.query[r.name]=s;else if(r.allowEmptyValue){const i=r.name;t.query[i]=t.query[i]||{},t.query[i].allowEmptyValue=!0}return}if(e===!1&&(e="false"),e===0&&(e="0"),e){const{style:n,explode:s,allowReserved:i}=r;t.query[r.name]={value:e,serializationOption:{style:n,explode:s,allowReserved:i}}}else if(r.allowEmptyValue&&e!==void 0){const n=r.name;t.query[n]=t.query[n]||{},t.query[n].allowEmptyValue=!0}}const Sbe=["accept","authorization","content-type"];function wbe({req:t,parameter:e,value:r}){if(t.headers=t.headers||{},!(Sbe.indexOf(e.name.toLowerCase())>-1)){if(r!==void 0&&e.content){const n=Object.keys(e.content)[0];t.headers[e.name]=$d(r,n);return}r!==void 0&&!(Array.isArray(r)&&r.length===0)&&(t.headers[e.name]=PE({key:e.name,value:r,style:e.style||"simple",explode:typeof e.explode>"u"?!1:e.explode,escape:!1}))}}function _be({req:t,parameter:e,value:r}){const{name:n}=e;if(t.headers=t.headers||{},r!==void 0&&e.content){const i=Object.keys(e.content)[0],o=$d(r,i);t.headers.Cookie=Uv({[n]:o});return}if(r!==void 0&&!(Array.isArray(r)&&r.length===0)){var s;const i=PE({key:e.name,value:r,escape:!1,style:e.style||"form",explode:(s=e.explode)!==null&&s!==void 0?s:!1}),o=Array.isArray(r)&&e.explode?`${n}=${i}`:i;t.headers.Cookie=Uv({[n]:o})}}const xbe=Object.freeze(Object.defineProperty({__proto__:null,cookie:_be,header:wbe,path:bbe,query:Ebe},Symbol.toStringTag,{value:"Module"})),Abe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:VP}=Abe;function Obe(t,e){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=t;let{requestContentType:a}=t;e=Cbe({request:e,securities:s,operation:r,spec:i});const c=r.requestBody||{},l=Object.keys(c.content||{}),p=a&&l.indexOf(a)>-1;if(n||o){if(a&&p)e.headers["Content-Type"]=a;else if(!a){const v=l[0];v&&(e.headers["Content-Type"]=v,a=v)}}else a&&p&&(e.headers["Content-Type"]=a);if(!t.responseContentType&&r.responses){const v=Object.entries(r.responses).filter(([y,E])=>{const S=parseInt(y,10);return S>=200&&S<300&&Wn(E.content)}).reduce((y,[,E])=>y.concat(Object.keys(E.content)),[]);v.length>0&&(e.headers.accept=v.join(", "))}if(n)if(a){if(l.indexOf(a)>-1)if(a==="application/x-www-form-urlencoded"||a==="multipart/form-data")if(typeof n=="object"){var f,m;const v=(f=(m=c.content[a])===null||m===void 0?void 0:m.encoding)!==null&&f!==void 0?f:{};e.form={},Object.keys(n).forEach(y=>{let E;try{E=JSON.parse(n[y])}catch{E=n[y]}e.form[y]={value:E,encoding:v[y]||{}}})}else if(typeof n=="string"){var d,g;const v=(d=(g=c.content[a])===null||g===void 0?void 0:g.encoding)!==null&&d!==void 0?d:{};try{e.form={};const y=JSON.parse(n);Object.entries(y).forEach(([E,S])=>{e.form[E]={value:S,encoding:v[E]||{}}})}catch{e.form=n}}else e.form=n;else e.body=n}else e.body=n;return e}function Cbe({request:t,securities:e={},operation:r={},spec:n}){var s;const i={...t},{authorized:o={}}=e,a=r.security||n.security||[],c=o&&!!Object.keys(o).length,l=(n==null||(s=n.components)===null||s===void 0?void 0:s.securitySchemes)||{};return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(e).length||!c||!a||Array.isArray(r.security)&&!r.security.length?t:(a.forEach(p=>{Object.keys(p).forEach(f=>{const m=o[f],d=l[f];if(!m)return;const g=m.value||m,{type:v}=d;if(m){if(v==="apiKey")d.in==="query"&&(i.query[d.name]=g),d.in==="header"&&(i.headers[d.name]=g),d.in==="cookie"&&(i.cookies[d.name]=g);else if(v==="http"){if(/^basic$/i.test(d.scheme)){const y=g.username||"",E=g.password||"",S=VP(`${y}:${E}`);i.headers.Authorization=`Basic ${S}`}/^bearer$/i.test(d.scheme)&&(i.headers.Authorization=`Bearer ${g}`)}else if(v==="oauth2"||v==="openIdConnect"){const y=m.token||{},E=d["x-tokenName"]||"access_token",S=y[E];let w=y.token_type;(!w||w.toLowerCase()==="bearer")&&(w="Bearer"),i.headers.Authorization=`${w} ${S}`}}})}),i)}function $be(t,e){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=t;if(e=Tbe({request:e,securities:s,operation:n,spec:r}),e.body||e.form||a)i?e.headers["Content-Type"]=i:Array.isArray(n.consumes)?[e.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[e.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter(c=>c.type==="file").length?e.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter(c=>c.in==="formData").length&&(e.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const c=n.parameters&&n.parameters.filter(p=>p.in==="body").length>0,l=n.parameters&&n.parameters.filter(p=>p.in==="formData").length>0;(c||l)&&(e.headers["Content-Type"]=i)}return!o&&Array.isArray(n.produces)&&n.produces.length>0&&(e.headers.accept=n.produces.join(", ")),e}function Tbe({request:t,securities:e={},operation:r={},spec:n}){const s={...t},{authorized:i={},specSecurity:o=[]}=e,a=r.security||o,c=i&&!!Object.keys(i).length,l=n.securityDefinitions;return s.headers=s.headers||{},s.query=s.query||{},!Object.keys(e).length||!c||!a||Array.isArray(r.security)&&!r.security.length?t:(a.forEach(p=>{Object.keys(p).forEach(f=>{const m=i[f];if(!m)return;const{token:d}=m,g=m.value||m,v=l[f],{type:y}=v,E=v["x-tokenName"]||"access_token",S=d&&d[E];let w=d&&d.token_type;if(m)if(y==="apiKey"){const x=v.in==="query"?"query":"headers";s[x]=s[x]||{},s[x][v.name]=g}else if(y==="basic")if(g.header)s.headers.authorization=g.header;else{const x=g.username||"",I=g.password||"";g.base64=VP(`${x}:${I}`),s.headers.authorization=`Basic ${g.base64}`}else y==="oauth2"&&S&&(w=!w||w.toLowerCase()==="bearer"?"Bearer":w,s.headers.authorization=`${w} ${S}`)})}),s)}function Ibe(t,e,r){if(!t||typeof t!="object"||!t.paths||typeof t.paths!="object")return null;const{paths:n}=t;for(const s in n)for(const i in n[s]){if(i.toUpperCase()==="PARAMETERS")continue;const o=n[s][i];if(!o||typeof o!="object")continue;const a={spec:t,pathName:s,method:i.toUpperCase(),operation:o};if(e(a))return a}}function Rbe(t,e){return Ibe(t,e)||null}function qP(t,e){return`${e.toLowerCase()}-${t}`}function Pbe(t,e){return!t||!t.paths?null:Rbe(t,({pathName:r,method:n,operation:s})=>{if(!s||typeof s!="object")return!1;const i=s.operationId,o=Ml(s,r,n),a=qP(r,n);return[o,a,i].some(c=>c&&c===e)})}const rA=t=>Array.isArray(t)?t:[],Oc=(t,{recurse:e=!0,depth:r=1}={})=>{if(Wn(t)){if(t.type==="object"||t.type==="array"||Array.isArray(t.type)&&(t.type.includes("object")||t.type.includes("array")))return t;if(!(r>IR)&&e){const n=Array.isArray(t.oneOf)?t.oneOf.find(i=>Oc(i,{recurse:e,depth:r+1})):void 0;if(n)return n;const s=Array.isArray(t.anyOf)?t.anyOf.find(i=>Oc(i,{recurse:e,depth:r+1})):void 0;if(s)return s}}},wg=({value:t,silentFail:e=!1})=>{try{const r=JSON.parse(t);if(Wn(r)||Array.isArray(r))return r;if(!e)throw new Error("Expected JSON serialized object or array")}catch{if(!e)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return t},Cp=t=>{try{return new URL(t)}catch{const e=new URL(t,ff),r=String(t).startsWith("/")?e.pathname:e.pathname.substring(1);return{hash:e.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:e.search,searchParams:e.searchParams}}};class kbe extends vs{}const jbe=(t,e)=>e.filter(r=>r.name===t),Nbe=t=>{const e={};t.forEach(n=>{e[n.in]||(e[n.in]={}),e[n.in][n.name]=n});const r=[];return Object.keys(e).forEach(n=>{Object.keys(e[n]).forEach(s=>{r.push(e[n][s])})}),r},Mbe={buildRequest:zP};function Dbe({http:t,fetch:e,spec:r,operationId:n,pathName:s,method:i,parameters:o,securities:a,...c}){const l=t||e||Fc;s&&i&&!n&&(n=qP(s,i));const p=Mbe.buildRequest({spec:r,operationId:n,parameters:o,securities:a,http:l,...c});return p.body&&(Wn(p.body)||Array.isArray(p.body))&&(p.body=JSON.stringify(p.body)),l(p)}function zP(t){const{spec:e,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:l,serverVariables:p,http:f,signal:m,serverVariableEncoder:d}=t;let{parameters:g,parameterBuilders:v,baseURL:y}=t;const E=WR(e);v||(E?v=xbe:v=K0e);let w={url:"",credentials:f&&f.withCredentials?"include":"same-origin",headers:{},cookies:{}};m&&(w.signal=m),i&&(w.requestInterceptor=i),o&&(w.responseInterceptor=o),c&&(w.userFetch=c);const x=Pbe(e,r);if(!x)throw new kbe(`Operation ${r} not found`);const{operation:I={},method:T,pathName:D}=x;if(y=y??Fbe({spec:e,scheme:s,contextUrl:a,server:l,serverVariables:p,pathName:D,method:T,serverVariableEncoder:d}),w.url+=y,!r)return delete w.cookies,w;w.url+=D,w.method=`${T}`.toUpperCase(),g=g||{};const B=e.paths[D]||{};n&&(w.headers.accept=n);const P=Nbe([].concat(rA(I.parameters)).concat(rA(B.parameters)));P.forEach(V=>{const J=v[V.in];let F;if(V.in==="body"&&V.schema&&V.schema.properties&&(F=g),F=V&&V.name&&g[V.name],typeof F>"u"?F=V&&V.name&&g[`${V.in}.${V.name}`]:jbe(V.name,P).length>1&&console.warn(`Parameter '${V.name}' is ambiguous because the defined spec has more than one parameter with the name: '${V.name}' and the passed-in parameter values did not define an 'in' value.`),F!==null){if(typeof V.default<"u"&&typeof F>"u"&&(F=V.default),typeof F>"u"&&V.required&&!V.allowEmptyValue)throw new Error(`Required parameter ${V.name} is not provided`);E&&typeof F=="string"&&(_c("type",V.schema)&&typeof V.schema.type=="string"&&Oc(V.schema,{recurse:!1})?F=wg({value:F,silentFail:!1}):_c("type",V.schema)&&Array.isArray(V.schema.type)&&Oc(V.schema,{recurse:!1})?F=wg({value:F,silentFail:!0}):!_c("type",V.schema)&&Oc(V.schema,{recurse:!0})&&(F=wg({value:F,silentFail:!0}))),J&&J({req:w,parameter:V,value:F,operation:I,spec:e,baseURL:y})}});const Z={...t,operation:I};if(E?w=Obe(Z,w):w=$be(Z,w),w.cookies&&Object.keys(w.cookies).length>0){const V=Uv(w.cookies);Bh(w.headers.Cookie)?w.headers.Cookie+=`; ${V}`:w.headers.Cookie=V}return w.cookies&&delete w.cookies,kE(w)}const Vv=t=>t?t.replace(/\W/g,""):null;function Fbe(t){return WR(t.spec)?Bbe(t):Ube(t)}const _g=t=>Array.isArray(t)&&t.length>0;function Bbe({spec:t,pathName:e,method:r,server:n,contextUrl:s,serverVariables:i={},serverVariableEncoder:o}){var a,c;let l=[],p="",f;const m=t==null||(a=t.paths)===null||a===void 0||(a=a[e])===null||a===void 0||(a=a[(r||"").toLowerCase()])===null||a===void 0?void 0:a.servers,d=t==null||(c=t.paths)===null||c===void 0||(c=c[e])===null||c===void 0?void 0:c.servers,g=t==null?void 0:t.servers;if(l=_g(m)?m:_g(d)?d:_g(g)?g:[kfe],n&&(f=l.find(v=>v.url===n),f&&(p=n)),p||([f]=l,p=f.url),k0e(p,{strict:!0})){const v=Object.entries({...f.variables}).reduce((y,[E,S])=>(y[E]=S.default,y),{});p=D0e(p,{...v,...i},{encoder:typeof o=="function"?o:pI})}return Lbe(p,s)}function Lbe(t="",e=""){const r=Cp(t&&e?Er(e,t):t),n=Cp(e),s=Vv(r.protocol)||Vv(n.protocol),i=r.host||n.host,o=r.pathname;let a;return s&&i?a=`${s}://${i+o}`:a=o,a[a.length-1]==="/"?a.slice(0,-1):a}function Ube({spec:t,scheme:e,contextUrl:r=""}){const n=Cp(r),s=Array.isArray(t.schemes)?t.schemes[0]:null,i=e||s||Vv(n.protocol)||"http",o=t.host||n.host||"",a=t.basePath||"";let c;return o?c=`${i}://${o+a}`:c=a,c[c.length-1]==="/"?c.slice(0,-1):c}const Vbe=async(t,e,r={})=>{const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:p}=r,f={spec:t,pathDiscriminator:e,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:p},d=p.find(v=>v.match(t)).normalize(t),g=await O0e({spec:d,...f,allowMetaPatches:!0,skipNormalization:!DE(t)});return!n&&Array.isArray(e)&&e.length&&(g.spec=e.reduce((v,y)=>v==null?void 0:v[y],g.spec)||null),g},qbe=t=>async(e,r,n={})=>{const s={...t,...n};return Vbe(e,r,s)};var zbe={};/**
|
|
164
|
+
* @license React
|
|
165
|
+
* use-sync-external-store-with-selector.production.js
|
|
166
|
+
*
|
|
167
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the MIT license found in the
|
|
170
|
+
* LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/var bu=be;function Jbe(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Wbe=typeof Object.is=="function"?Object.is:Jbe,Hbe=bu.useSyncExternalStore,Kbe=bu.useRef,Gbe=bu.useEffect,Ybe=bu.useMemo,Xbe=bu.useDebugValue;zbe.useSyncExternalStoreWithSelector=function(t,e,r,n,s){var i=Kbe(null);if(i.current===null){var o={hasValue:!1,value:null};i.current=o}else o=i.current;i=Ybe(function(){function c(d){if(!l){if(l=!0,p=d,d=n(d),s!==void 0&&o.hasValue){var g=o.value;if(s(g,d))return f=g}return f=d}if(g=f,Wbe(p,d))return g;var v=n(d);return s!==void 0&&s(g,v)?(p=d,g):(p=d,f=v)}var l=!1,p,f,m=r===void 0?null:r;return[function(){return c(e())},m===null?void 0:function(){return c(m())}]},[e,r,n,s]);var a=Hbe(t,i[0],i[1]);return Gbe(function(){o.hasValue=!0,o.value=a},[a]),Xbe(a),a};var Zbe=be.version.startsWith("19"),Qbe=Symbol.for(Zbe?"react.transitional.element":"react.element"),eEe=Symbol.for("react.portal"),tEe=Symbol.for("react.fragment"),rEe=Symbol.for("react.strict_mode"),nEe=Symbol.for("react.profiler"),sEe=Symbol.for("react.consumer"),iEe=Symbol.for("react.context"),JP=Symbol.for("react.forward_ref"),oEe=Symbol.for("react.suspense"),aEe=Symbol.for("react.suspense_list"),tS=Symbol.for("react.memo"),cEe=Symbol.for("react.lazy"),lEe=JP,uEe=tS;function pEe(t){if(typeof t=="object"&&t!==null){const{$$typeof:e}=t;switch(e){case Qbe:switch(t=t.type,t){case tEe:case nEe:case rEe:case oEe:case aEe:return t;default:switch(t=t&&t.$$typeof,t){case iEe:case JP:case cEe:case tS:return t;case sEe:return t;default:return e}}case eEe:return e}}}function fEe(t){return pEe(t)===tS}function hEe(t,e,r,n,{areStatesEqual:s,areOwnPropsEqual:i,areStatePropsEqual:o}){let a=!1,c,l,p,f,m;function d(S,w){return c=S,l=w,p=t(c,l),f=e(n,l),m=r(p,f,l),a=!0,m}function g(){return p=t(c,l),e.dependsOnOwnProps&&(f=e(n,l)),m=r(p,f,l),m}function v(){return t.dependsOnOwnProps&&(p=t(c,l)),e.dependsOnOwnProps&&(f=e(n,l)),m=r(p,f,l),m}function y(){const S=t(c,l),w=!o(S,p);return p=S,w&&(m=r(p,f,l)),m}function E(S,w){const x=!i(w,l),I=!s(S,c,w,l);return c=S,l=w,x&&I?g():x?v():I?y():m}return function(w,x){return a?E(w,x):d(w,x)}}function dEe(t,{initMapStateToProps:e,initMapDispatchToProps:r,initMergeProps:n,...s}){const i=e(t,s),o=r(t,s),a=n(t,s);return hEe(i,o,a,t,s)}function mEe(t,e){const r={};for(const n in t){const s=t[n];typeof s=="function"&&(r[n]=(...i)=>e(s(...i)))}return r}function qv(t){return function(r){const n=t(r);function s(){return n}return s.dependsOnOwnProps=!1,s}}function nA(t){return t.dependsOnOwnProps?!!t.dependsOnOwnProps:t.length!==1}function WP(t,e){return function(n,{displayName:s}){const i=function(a,c){return i.dependsOnOwnProps?i.mapToProps(a,c):i.mapToProps(a,void 0)};return i.dependsOnOwnProps=!0,i.mapToProps=function(a,c){i.mapToProps=t,i.dependsOnOwnProps=nA(t);let l=i(a,c);return typeof l=="function"&&(i.mapToProps=l,i.dependsOnOwnProps=nA(l),l=i(a,c)),l},i}}function rS(t,e){return(r,n)=>{throw new Error(`Invalid value of type ${typeof t} for ${e} argument when connecting component ${n.wrappedComponentName}.`)}}function gEe(t){return t&&typeof t=="object"?qv(e=>mEe(t,e)):t?typeof t=="function"?WP(t):rS(t,"mapDispatchToProps"):qv(e=>({dispatch:e}))}function yEe(t){return t?typeof t=="function"?WP(t):rS(t,"mapStateToProps"):qv(()=>({}))}function vEe(t,e,r){return{...r,...t,...e}}function bEe(t){return function(r,{displayName:n,areMergedPropsEqual:s}){let i=!1,o;return function(c,l,p){const f=t(c,l,p);return i?s(f,o)||(o=f):(i=!0,o=f),o}}}function EEe(t){return t?typeof t=="function"?bEe(t):rS(t,"mergeProps"):()=>vEe}function SEe(t){t()}function wEe(){let t=null,e=null;return{clear(){t=null,e=null},notify(){SEe(()=>{let r=t;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=t;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const s=e={callback:r,next:null,prev:e};return s.prev?s.prev.next=s:t=s,function(){!n||t===null||(n=!1,s.next?s.next.prev=s.prev:e=s.prev,s.prev?s.prev.next=s.next:t=s.next)}}}}var sA={notify(){},get:()=>[]};function HP(t,e){let r,n=sA,s=0,i=!1;function o(v){p();const y=n.subscribe(v);let E=!1;return()=>{E||(E=!0,y(),f())}}function a(){n.notify()}function c(){g.onStateChange&&g.onStateChange()}function l(){return i}function p(){s++,r||(r=e?e.addNestedSub(c):t.subscribe(c),n=wEe())}function f(){s--,r&&s===0&&(r(),r=void 0,n.clear(),n=sA)}function m(){i||(i=!0,p())}function d(){i&&(i=!1,f())}const g={addNestedSub:o,notifyNestedSubs:a,handleChangeWrapper:c,isSubscribed:l,trySubscribe:m,tryUnsubscribe:d,getListeners:()=>n};return g}var _Ee=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",xEe=_Ee(),AEe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",OEe=AEe(),CEe=()=>xEe||OEe?be.useLayoutEffect:be.useEffect,vf=CEe();function iA(t,e){return t===e?t!==0||e!==0||1/t===1/e:t!==t&&e!==e}function xg(t,e){if(iA(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;const r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(let s=0;s<r.length;s++)if(!Object.prototype.hasOwnProperty.call(e,r[s])||!iA(t[r[s]],e[r[s]]))return!1;return!0}var $Ee={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},TEe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},IEe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},KP={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},REe={[lEe]:IEe,[uEe]:KP};function oA(t){return fEe(t)?KP:REe[t.$$typeof]||$Ee}var PEe=Object.defineProperty,kEe=Object.getOwnPropertyNames,aA=Object.getOwnPropertySymbols,jEe=Object.getOwnPropertyDescriptor,NEe=Object.getPrototypeOf,cA=Object.prototype;function zv(t,e){if(typeof e!="string"){if(cA){const i=NEe(e);i&&i!==cA&&zv(t,i)}let r=kEe(e);aA&&(r=r.concat(aA(e)));const n=oA(t),s=oA(e);for(let i=0;i<r.length;++i){const o=r[i];if(!TEe[o]&&!(s&&s[o])&&!(n&&n[o])){const a=jEe(e,o);try{PEe(t,o,a)}catch{}}}}return t}var Ag=Symbol.for("react-redux-context"),Og=typeof globalThis<"u"?globalThis:{};function MEe(){if(!be.createContext)return{};const t=Og[Ag]??(Og[Ag]=new Map);let e=t.get(be.createContext);return e||(e=be.createContext(null),t.set(be.createContext,e)),e}var GP=MEe(),DEe=[null,null];function FEe(t,e,r){vf(()=>t(...e),r)}function BEe(t,e,r,n,s,i){t.current=n,r.current=!1,s.current&&(s.current=null,i())}function LEe(t,e,r,n,s,i,o,a,c,l,p){if(!t)return()=>{};let f=!1,m=null;const d=()=>{if(f||!a.current)return;const v=e.getState();let y,E;try{y=n(v,s.current)}catch(S){E=S,m=S}E||(m=null),y===i.current?o.current||l():(i.current=y,c.current=y,o.current=!0,p())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,m)throw m}}function UEe(t,e){return t===e}function VEe(t,e,r,{pure:n,areStatesEqual:s=UEe,areOwnPropsEqual:i=xg,areStatePropsEqual:o=xg,areMergedPropsEqual:a=xg,forwardRef:c=!1,context:l=GP}={}){const p=l,f=yEe(t),m=gEe(e),d=EEe(r),g=!!t;return y=>{const E=y.displayName||y.name||"Component",S=`Connect(${E})`,w={shouldHandleStateChanges:g,displayName:S,wrappedComponentName:E,WrappedComponent:y,initMapStateToProps:f,initMapDispatchToProps:m,initMergeProps:d,areStatesEqual:s,areStatePropsEqual:o,areOwnPropsEqual:i,areMergedPropsEqual:a};function x(D){const[B,P,Z]=be.useMemo(()=>{const{reactReduxForwardedRef:_e,...$e}=D;return[D.context,_e,$e]},[D]),V=be.useMemo(()=>{let _e=p;return B!=null&&B.Consumer,_e},[B,p]),J=be.useContext(V),F=!!D.store&&!!D.store.getState&&!!D.store.dispatch,Q=!!J&&!!J.store,se=F?D.store:J.store,re=Q?J.getServerState:se.getState,ce=be.useMemo(()=>dEe(se.dispatch,w),[se]),[ue,oe]=be.useMemo(()=>{if(!g)return DEe;const _e=HP(se,F?void 0:J.subscription),$e=_e.notifyNestedSubs.bind(_e);return[_e,$e]},[se,F,J]),G=be.useMemo(()=>F?J:{...J,subscription:ue},[F,J,ue]),ie=be.useRef(void 0),pe=be.useRef(Z),X=be.useRef(void 0),le=be.useRef(!1),q=be.useRef(!1),N=be.useRef(void 0);vf(()=>(q.current=!0,()=>{q.current=!1}),[]);const M=be.useMemo(()=>()=>X.current&&Z===pe.current?X.current:ce(se.getState(),Z),[se,Z]),ae=be.useMemo(()=>$e=>ue?LEe(g,se,ue,ce,pe,ie,le,q,X,oe,$e):()=>{},[ue]);FEe(BEe,[pe,ie,le,Z,X,oe]);let ge;try{ge=be.useSyncExternalStore(ae,M,re?()=>ce(re(),Z):M)}catch(_e){throw N.current&&(_e.message+=`
|
|
172
|
+
The error may be correlated with this previous error:
|
|
173
|
+
${N.current.stack}
|
|
174
|
+
|
|
175
|
+
`),_e}vf(()=>{N.current=void 0,X.current=void 0,ie.current=ge});const Ce=be.useMemo(()=>be.createElement(y,{...ge,ref:P}),[P,y,ge]);return be.useMemo(()=>g?be.createElement(V.Provider,{value:G},Ce):Ce,[V,Ce,G])}const T=be.memo(x);if(T.WrappedComponent=y,T.displayName=x.displayName=S,c){const B=be.forwardRef(function(Z,V){return be.createElement(T,{...Z,reactReduxForwardedRef:V})});return B.displayName=S,B.WrappedComponent=y,zv(B,y)}return zv(T,y)}}var qEe=VEe;function zEe(t){const{children:e,context:r,serverState:n,store:s}=t,i=be.useMemo(()=>{const c=HP(s);return{store:s,subscription:c,getServerState:n?()=>n:void 0}},[s,n]),o=be.useMemo(()=>s.getState(),[s]);vf(()=>{const{subscription:c}=i;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),o!==s.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[i,o]);const a=r||GP;return be.createElement(a.Provider,{value:i},e)}var JEe=zEe;function WEe(t,e){if(t==null)return{};var r={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.indexOf(n)!==-1)continue;r[n]=t[n]}return r}function HEe(t,e){if(t==null)return{};var r,n,s=WEe(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)r=i[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(s[r]=t[r])}return s}function Jv(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function KEe(t){if(Array.isArray(t))return Jv(t)}function GEe(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function YEe(t,e){if(t){if(typeof t=="string")return Jv(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Jv(t,e):void 0}}function XEe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
176
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Wv(t){return KEe(t)||GEe(t)||YEe(t)||XEe()}function Lc(t){"@babel/helpers - typeof";return Lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Lc(t)}function ZEe(t,e){if(Lc(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(Lc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function QEe(t){var e=ZEe(t,"string");return Lc(e)=="symbol"?e:e+""}function YP(t,e,r){return(e=QEe(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Hv(){return Hv=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Hv.apply(null,arguments)}function lA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function na(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?lA(Object(r),!0).forEach(function(n){YP(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):lA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function eSe(t){var e=t.length;if(e===0||e===1)return t;if(e===2)return[t[0],t[1],"".concat(t[0],".").concat(t[1]),"".concat(t[1],".").concat(t[0])];if(e===3)return[t[0],t[1],t[2],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0])];if(e>=4)return[t[0],t[1],t[2],t[3],"".concat(t[0],".").concat(t[1]),"".concat(t[0],".").concat(t[2]),"".concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[0]),"".concat(t[1],".").concat(t[2]),"".concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[1]),"".concat(t[2],".").concat(t[3]),"".concat(t[3],".").concat(t[0]),"".concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[0]),"".concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[0],".").concat(t[1],".").concat(t[2],".").concat(t[3]),"".concat(t[0],".").concat(t[1],".").concat(t[3],".").concat(t[2]),"".concat(t[0],".").concat(t[2],".").concat(t[1],".").concat(t[3]),"".concat(t[0],".").concat(t[2],".").concat(t[3],".").concat(t[1]),"".concat(t[0],".").concat(t[3],".").concat(t[1],".").concat(t[2]),"".concat(t[0],".").concat(t[3],".").concat(t[2],".").concat(t[1]),"".concat(t[1],".").concat(t[0],".").concat(t[2],".").concat(t[3]),"".concat(t[1],".").concat(t[0],".").concat(t[3],".").concat(t[2]),"".concat(t[1],".").concat(t[2],".").concat(t[0],".").concat(t[3]),"".concat(t[1],".").concat(t[2],".").concat(t[3],".").concat(t[0]),"".concat(t[1],".").concat(t[3],".").concat(t[0],".").concat(t[2]),"".concat(t[1],".").concat(t[3],".").concat(t[2],".").concat(t[0]),"".concat(t[2],".").concat(t[0],".").concat(t[1],".").concat(t[3]),"".concat(t[2],".").concat(t[0],".").concat(t[3],".").concat(t[1]),"".concat(t[2],".").concat(t[1],".").concat(t[0],".").concat(t[3]),"".concat(t[2],".").concat(t[1],".").concat(t[3],".").concat(t[0]),"".concat(t[2],".").concat(t[3],".").concat(t[0],".").concat(t[1]),"".concat(t[2],".").concat(t[3],".").concat(t[1],".").concat(t[0]),"".concat(t[3],".").concat(t[0],".").concat(t[1],".").concat(t[2]),"".concat(t[3],".").concat(t[0],".").concat(t[2],".").concat(t[1]),"".concat(t[3],".").concat(t[1],".").concat(t[0],".").concat(t[2]),"".concat(t[3],".").concat(t[1],".").concat(t[2],".").concat(t[0]),"".concat(t[3],".").concat(t[2],".").concat(t[0],".").concat(t[1]),"".concat(t[3],".").concat(t[2],".").concat(t[1],".").concat(t[0])]}var Cg={};function tSe(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return Cg[e]||(Cg[e]=eSe(t)),Cg[e]}function rSe(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t.filter(function(i){return i!=="token"}),s=tSe(n);return s.reduce(function(i,o){return na(na({},i),r[o])},e)}function uA(t){return t.join(" ")}function nSe(t,e){var r=0;return function(n){return r+=1,n.map(function(s,i){return XP({node:s,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(r,"-").concat(i)})})}}function XP(t){var e=t.node,r=t.stylesheet,n=t.style,s=n===void 0?{}:n,i=t.useInlineStyles,o=t.key,a=e.properties,c=e.type,l=e.tagName,p=e.value;if(c==="text")return p;if(l){var f=nSe(r,i),m;if(!i)m=na(na({},a),{},{className:uA(a.className)});else{var d=Object.keys(r).reduce(function(E,S){return S.split(".").forEach(function(w){E.includes(w)||E.push(w)}),E},[]),g=a.className&&a.className.includes("token")?["token"]:[],v=a.className&&g.concat(a.className.filter(function(E){return!d.includes(E)}));m=na(na({},a),{},{className:uA(v)||void 0,style:rSe(a.className,Object.assign({},a.style,s),r)})}var y=f(e.children);return u.createElement(l,Hv({key:o},m),y)}}const sSe=function(t,e){var r=t.listLanguages();return r.indexOf(e)!==-1};var iSe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function pA(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),r.push.apply(r,n)}return r}function pi(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?pA(Object(r),!0).forEach(function(n){YP(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):pA(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var oSe=/\n/g;function aSe(t){return t.match(oSe)}function cSe(t){var e=t.lines,r=t.startingLineNumber,n=t.style;return e.map(function(s,i){var o=i+r;return u.createElement("span",{key:"line-".concat(i),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(o):n},"".concat(o,`
|
|
177
|
+
`))})}function lSe(t){var e=t.codeString,r=t.codeStyle,n=t.containerStyle,s=n===void 0?{float:"left",paddingRight:"10px"}:n,i=t.numberStyle,o=i===void 0?{}:i,a=t.startingLineNumber;return u.createElement("code",{style:Object.assign({},r,s)},cSe({lines:e.replace(/\n$/,"").split(`
|
|
178
|
+
`),style:o,startingLineNumber:a}))}function uSe(t){return"".concat(t.toString().length,".25em")}function ZP(t,e){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(t),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:e},children:[{type:"text",value:t}]}}function QP(t,e,r){var n={display:"inline-block",minWidth:uSe(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},s=typeof t=="function"?t(e):t,i=pi(pi({},n),s);return i}function $p(t){var e=t.children,r=t.lineNumber,n=t.lineNumberStyle,s=t.largestLineNumber,i=t.showInlineLineNumbers,o=t.lineProps,a=o===void 0?{}:o,c=t.className,l=c===void 0?[]:c,p=t.showLineNumbers,f=t.wrapLongLines,m=t.wrapLines,d=m===void 0?!1:m,g=d?pi({},typeof a=="function"?a(r):a):{};if(g.className=g.className?[].concat(Wv(g.className.trim().split(/\s+/)),Wv(l)):l,r&&i){var v=QP(n,r,s);e.unshift(ZP(r,v))}return f&p&&(g.style=pi({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:e}}function ek(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];t.length===void 0&&(t=[t]);for(var n=0;n<t.length;n++){var s=t[n];if(s.type==="text")r.push($p({children:[s],className:Wv(new Set(e))}));else if(s.children){var i,o=e.concat(((i=s.properties)===null||i===void 0?void 0:i.className)||[]);ek(s.children,o).forEach(function(a){return r.push(a)})}}return r}function pSe(t,e,r,n,s,i,o,a,c){var l,p=ek(t.value),f=[],m=-1,d=0;function g(I,T){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return $p({children:I,lineNumber:T,lineNumberStyle:a,largestLineNumber:o,showInlineLineNumbers:s,lineProps:r,className:D,showLineNumbers:n,wrapLongLines:c,wrapLines:e})}function v(I,T){if(n&&T&&s){var D=QP(a,T,o);I.unshift(ZP(T,D))}return I}function y(I,T){var D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||D.length>0?g(I,T,D):v(I,T)}for(var E=function(){var T=p[d],D=T.children[0].value,B=aSe(D);if(B){var P=D.split(`
|
|
179
|
+
`);P.forEach(function(Z,V){var J=n&&f.length+i,F={type:"text",value:"".concat(Z,`
|
|
180
|
+
`)};if(V===0){var Q=p.slice(m+1,d).concat($p({children:[F],className:T.properties.className})),se=y(Q,J);f.push(se)}else if(V===P.length-1){var re=p[d+1]&&p[d+1].children&&p[d+1].children[0],ce={type:"text",value:"".concat(Z)};if(re){var ue=$p({children:[ce],className:T.properties.className});p.splice(d+1,0,ue)}else{var oe=[ce],G=y(oe,J,T.properties.className);f.push(G)}}else{var ie=[F],pe=y(ie,J,T.properties.className);f.push(pe)}}),m=d}d++};d<p.length;)E();if(m!==p.length-1){var S=p.slice(m+1,p.length);if(S&&S.length){var w=n&&f.length+i,x=y(S,w);f.push(x)}}return e?f:(l=[]).concat.apply(l,f)}function fSe(t){var e=t.rows,r=t.stylesheet,n=t.useInlineStyles;return e.map(function(s,i){return XP({node:s,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(i)})})}function tk(t){return t&&typeof t.highlightAuto<"u"}function hSe(t){var e=t.astGenerator,r=t.language,n=t.code,s=t.defaultCodeValue;if(tk(e)){var i=sSe(e,r);return r==="text"?{value:s,language:"text"}:i?e.highlight(r,n):e.highlightAuto(n)}try{return r&&r!=="text"?{value:e.highlight(n,r)}:{value:s}}catch{return{value:s}}}function dSe(t,e){return function(n){var s,i,o=n.language,a=n.children,c=n.style,l=c===void 0?e:c,p=n.customStyle,f=p===void 0?{}:p,m=n.codeTagProps,d=m===void 0?{className:o?"language-".concat(o):void 0,style:pi(pi({},l['code[class*="language-"]']),l['code[class*="language-'.concat(o,'"]')])}:m,g=n.useInlineStyles,v=g===void 0?!0:g,y=n.showLineNumbers,E=y===void 0?!1:y,S=n.showInlineLineNumbers,w=S===void 0?!0:S,x=n.startingLineNumber,I=x===void 0?1:x,T=n.lineNumberContainerStyle,D=n.lineNumberStyle,B=D===void 0?{}:D,P=n.wrapLines,Z=n.wrapLongLines,V=Z===void 0?!1:Z,J=n.lineProps,F=J===void 0?{}:J,Q=n.renderer,se=n.PreTag,re=se===void 0?"pre":se,ce=n.CodeTag,ue=ce===void 0?"code":ce,oe=n.code,G=oe===void 0?(Array.isArray(a)?a[0]:a)||"":oe,ie=n.astGenerator,pe=HEe(n,iSe);ie=ie||t;var X=E?u.createElement(lSe,{containerStyle:T,codeStyle:d.style||{},numberStyle:B,startingLineNumber:I,codeString:G}):null,le=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},q=tk(ie)?"hljs":"prismjs",N=v?Object.assign({},pe,{style:Object.assign({},le,f)}):Object.assign({},pe,{className:pe.className?"".concat(q," ").concat(pe.className):q,style:Object.assign({},f)});if(V?d.style=pi({whiteSpace:"pre-wrap"},d.style):d.style=pi({whiteSpace:"pre"},d.style),!ie)return u.createElement(re,N,X,u.createElement(ue,d,G));(P===void 0&&Q||V)&&(P=!0),Q=Q||fSe;var M=[{type:"text",value:G}],ae=hSe({astGenerator:ie,language:o,code:G,defaultCodeValue:M});ae.language===null&&(ae.value=M);var ge=(s=(i=G.match(/\n/g))===null||i===void 0?void 0:i.length)!==null&&s!==void 0?s:0,Ce=I+ge,Re=pSe(ae,P,F,E,w,I,Ce,B,V);return u.createElement(re,N,u.createElement(ue,d,!w&&X,Q({rows:Re,stylesheet:l,useInlineStyles:v})))}}var Eo={};function nS(t){return t instanceof Map?t.clear=t.delete=t.set=function(){throw new Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=function(){throw new Error("set is read-only")}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(function(e){var r=t[e];typeof r=="object"&&!Object.isFrozen(r)&&nS(r)}),t}var rk=nS,mSe=nS;rk.default=mSe;let fA=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function la(t){return t.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function fi(t,...e){const r=Object.create(null);for(const n in t)r[n]=t[n];return e.forEach(function(n){for(const s in n)r[s]=n[s]}),r}const gSe="</span>",hA=t=>!!t.kind;class ySe{constructor(e,r){this.buffer="",this.classPrefix=r.classPrefix,e.walk(this)}addText(e){this.buffer+=la(e)}openNode(e){if(!hA(e))return;let r=e.kind;e.sublanguage||(r=`${this.classPrefix}${r}`),this.span(r)}closeNode(e){hA(e)&&(this.buffer+=gSe)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}}class sS{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const r={kind:e,children:[]};this.add(r),this.stack.push(r)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,r){return typeof r=="string"?e.addText(r):r.children&&(e.openNode(r),r.children.forEach(n=>this._walk(e,n)),e.closeNode(r)),e}static _collapse(e){typeof e!="string"&&e.children&&(e.children.every(r=>typeof r=="string")?e.children=[e.children.join("")]:e.children.forEach(r=>{sS._collapse(r)}))}}class vSe extends sS{constructor(e){super(),this.options=e}addKeyword(e,r){e!==""&&(this.openNode(r),this.addText(e),this.closeNode())}addText(e){e!==""&&this.add(e)}addSublanguage(e,r){const n=e.root;n.kind=r,n.sublanguage=!0,this.add(n)}toHTML(){return new ySe(this,this.options).value()}finalize(){return!0}}function bSe(t){return new RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function Uc(t){return t?typeof t=="string"?t:t.source:null}function ESe(...t){return t.map(r=>Uc(r)).join("")}function SSe(...t){return"("+t.map(r=>Uc(r)).join("|")+")"}function wSe(t){return new RegExp(t.toString()+"|").exec("").length-1}function _Se(t,e){const r=t&&t.exec(e);return r&&r.index===0}const xSe=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function ASe(t,e="|"){let r=0;return t.map(n=>{r+=1;const s=r;let i=Uc(n),o="";for(;i.length>0;){const a=xSe.exec(i);if(!a){o+=i;break}o+=i.substring(0,a.index),i=i.substring(a.index+a[0].length),a[0][0]==="\\"&&a[1]?o+="\\"+String(Number(a[1])+s):(o+=a[0],a[0]==="("&&r++)}return o}).map(n=>`(${n})`).join(e)}const OSe=/\b\B/,nk="[a-zA-Z]\\w*",iS="[a-zA-Z_]\\w*",oS="\\b\\d+(\\.\\d+)?",sk="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",ik="\\b(0b[01]+)",CSe="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",$Se=(t={})=>{const e=/^#![ ]*\//;return t.binary&&(t.begin=ESe(e,/.*\b/,t.binary,/\b.*/)),fi({className:"meta",begin:e,end:/$/,relevance:0,"on:begin":(r,n)=>{r.index!==0&&n.ignoreMatch()}},t)},Vc={begin:"\\\\[\\s\\S]",relevance:0},TSe={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[Vc]},ISe={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[Vc]},ok={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},Id=function(t,e,r={}){const n=fi({className:"comment",begin:t,end:e,contains:[]},r);return n.contains.push(ok),n.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),n},RSe=Id("//","$"),PSe=Id("/\\*","\\*/"),kSe=Id("#","$"),jSe={className:"number",begin:oS,relevance:0},NSe={className:"number",begin:sk,relevance:0},MSe={className:"number",begin:ik,relevance:0},DSe={className:"number",begin:oS+"(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},FSe={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[Vc,{begin:/\[/,end:/\]/,relevance:0,contains:[Vc]}]}]},BSe={className:"title",begin:nk,relevance:0},LSe={className:"title",begin:iS,relevance:0},USe={begin:"\\.\\s*"+iS,relevance:0},VSe=function(t){return Object.assign(t,{"on:begin":(e,r)=>{r.data._beginMatch=e[1]},"on:end":(e,r)=>{r.data._beginMatch!==e[1]&&r.ignoreMatch()}})};var ep=Object.freeze({__proto__:null,MATCH_NOTHING_RE:OSe,IDENT_RE:nk,UNDERSCORE_IDENT_RE:iS,NUMBER_RE:oS,C_NUMBER_RE:sk,BINARY_NUMBER_RE:ik,RE_STARTERS_RE:CSe,SHEBANG:$Se,BACKSLASH_ESCAPE:Vc,APOS_STRING_MODE:TSe,QUOTE_STRING_MODE:ISe,PHRASAL_WORDS_MODE:ok,COMMENT:Id,C_LINE_COMMENT_MODE:RSe,C_BLOCK_COMMENT_MODE:PSe,HASH_COMMENT_MODE:kSe,NUMBER_MODE:jSe,C_NUMBER_MODE:NSe,BINARY_NUMBER_MODE:MSe,CSS_NUMBER_MODE:DSe,REGEXP_MODE:FSe,TITLE_MODE:BSe,UNDERSCORE_TITLE_MODE:LSe,METHOD_GUARD:USe,END_SAME_AS_BEGIN:VSe});function qSe(t,e){t.input[t.index-1]==="."&&e.ignoreMatch()}function zSe(t,e){e&&t.beginKeywords&&(t.begin="\\b("+t.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",t.__beforeBegin=qSe,t.keywords=t.keywords||t.beginKeywords,delete t.beginKeywords,t.relevance===void 0&&(t.relevance=0))}function JSe(t,e){Array.isArray(t.illegal)&&(t.illegal=SSe(...t.illegal))}function WSe(t,e){if(t.match){if(t.begin||t.end)throw new Error("begin & end are not supported with match");t.begin=t.match,delete t.match}}function HSe(t,e){t.relevance===void 0&&(t.relevance=1)}const KSe=["of","and","for","in","not","or","if","then","parent","list","value"],GSe="keyword";function ak(t,e,r=GSe){const n={};return typeof t=="string"?s(r,t.split(" ")):Array.isArray(t)?s(r,t):Object.keys(t).forEach(function(i){Object.assign(n,ak(t[i],e,i))}),n;function s(i,o){e&&(o=o.map(a=>a.toLowerCase())),o.forEach(function(a){const c=a.split("|");n[c[0]]=[i,YSe(c[0],c[1])]})}}function YSe(t,e){return e?Number(e):XSe(t)?0:1}function XSe(t){return KSe.includes(t.toLowerCase())}function ZSe(t,{plugins:e}){function r(a,c){return new RegExp(Uc(a),"m"+(t.case_insensitive?"i":"")+(c?"g":""))}class n{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(c,l){l.position=this.position++,this.matchIndexes[this.matchAt]=l,this.regexes.push([l,c]),this.matchAt+=wSe(c)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const c=this.regexes.map(l=>l[1]);this.matcherRe=r(ASe(c),!0),this.lastIndex=0}exec(c){this.matcherRe.lastIndex=this.lastIndex;const l=this.matcherRe.exec(c);if(!l)return null;const p=l.findIndex((m,d)=>d>0&&m!==void 0),f=this.matchIndexes[p];return l.splice(0,p),Object.assign(l,f)}}class s{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(c){if(this.multiRegexes[c])return this.multiRegexes[c];const l=new n;return this.rules.slice(c).forEach(([p,f])=>l.addRule(p,f)),l.compile(),this.multiRegexes[c]=l,l}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(c,l){this.rules.push([c,l]),l.type==="begin"&&this.count++}exec(c){const l=this.getMatcher(this.regexIndex);l.lastIndex=this.lastIndex;let p=l.exec(c);if(this.resumingScanAtSamePosition()&&!(p&&p.index===this.lastIndex)){const f=this.getMatcher(0);f.lastIndex=this.lastIndex+1,p=f.exec(c)}return p&&(this.regexIndex+=p.position+1,this.regexIndex===this.count&&this.considerAll()),p}}function i(a){const c=new s;return a.contains.forEach(l=>c.addRule(l.begin,{rule:l,type:"begin"})),a.terminatorEnd&&c.addRule(a.terminatorEnd,{type:"end"}),a.illegal&&c.addRule(a.illegal,{type:"illegal"}),c}function o(a,c){const l=a;if(a.isCompiled)return l;[WSe].forEach(f=>f(a,c)),t.compilerExtensions.forEach(f=>f(a,c)),a.__beforeBegin=null,[zSe,JSe,HSe].forEach(f=>f(a,c)),a.isCompiled=!0;let p=null;if(typeof a.keywords=="object"&&(p=a.keywords.$pattern,delete a.keywords.$pattern),a.keywords&&(a.keywords=ak(a.keywords,t.case_insensitive)),a.lexemes&&p)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return p=p||a.lexemes||/\w+/,l.keywordPatternRe=r(p,!0),c&&(a.begin||(a.begin=/\B|\b/),l.beginRe=r(a.begin),a.endSameAsBegin&&(a.end=a.begin),!a.end&&!a.endsWithParent&&(a.end=/\B|\b/),a.end&&(l.endRe=r(a.end)),l.terminatorEnd=Uc(a.end)||"",a.endsWithParent&&c.terminatorEnd&&(l.terminatorEnd+=(a.end?"|":"")+c.terminatorEnd)),a.illegal&&(l.illegalRe=r(a.illegal)),a.contains||(a.contains=[]),a.contains=[].concat(...a.contains.map(function(f){return QSe(f==="self"?a:f)})),a.contains.forEach(function(f){o(f,l)}),a.starts&&o(a.starts,c),l.matcher=i(l),l}if(t.compilerExtensions||(t.compilerExtensions=[]),t.contains&&t.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return t.classNameAliases=fi(t.classNameAliases||{}),o(t)}function ck(t){return t?t.endsWithParent||ck(t.starts):!1}function QSe(t){return t.variants&&!t.cachedVariants&&(t.cachedVariants=t.variants.map(function(e){return fi(t,{variants:null},e)})),t.cachedVariants?t.cachedVariants:ck(t)?fi(t,{starts:t.starts?fi(t.starts):null}):Object.isFrozen(t)?fi(t):t}var ewe="10.7.3";function twe(t){return!!(t||t==="")}function rwe(t){const e={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!t.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,la(this.code);let n={};return this.autoDetect?(n=t.highlightAuto(this.code),this.detectedLanguage=n.language):(n=t.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),n.value},autoDetect(){return!this.language||twe(this.autodetect)},ignoreIllegals(){return!0}},render(n){return n("pre",{},[n("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:e,VuePlugin:{install(n){n.component("highlightjs",e)}}}}const nwe={"after:highlightElement":({el:t,result:e,text:r})=>{const n=dA(t);if(!n.length)return;const s=document.createElement("div");s.innerHTML=e.value,e.value=swe(n,dA(s),r)}};function Kv(t){return t.nodeName.toLowerCase()}function dA(t){const e=[];return function r(n,s){for(let i=n.firstChild;i;i=i.nextSibling)i.nodeType===3?s+=i.nodeValue.length:i.nodeType===1&&(e.push({event:"start",offset:s,node:i}),s=r(i,s),Kv(i).match(/br|hr|img|input/)||e.push({event:"stop",offset:s,node:i}));return s}(t,0),e}function swe(t,e,r){let n=0,s="";const i=[];function o(){return!t.length||!e.length?t.length?t:e:t[0].offset!==e[0].offset?t[0].offset<e[0].offset?t:e:e[0].event==="start"?t:e}function a(p){function f(m){return" "+m.nodeName+'="'+la(m.value)+'"'}s+="<"+Kv(p)+[].map.call(p.attributes,f).join("")+">"}function c(p){s+="</"+Kv(p)+">"}function l(p){(p.event==="start"?a:c)(p.node)}for(;t.length||e.length;){let p=o();if(s+=la(r.substring(n,p[0].offset)),n=p[0].offset,p===t){i.reverse().forEach(c);do l(p.splice(0,1)[0]),p=o();while(p===t&&p.length&&p[0].offset===n);i.reverse().forEach(a)}else p[0].event==="start"?i.push(p[0].node):i.pop(),l(p.splice(0,1)[0])}return s+la(r.substr(n))}const mA={},$g=t=>{console.error(t)},gA=(t,...e)=>{console.log(`WARN: ${t}`,...e)},mn=(t,e)=>{mA[`${t}/${e}`]||(console.log(`Deprecated as of ${t}. ${e}`),mA[`${t}/${e}`]=!0)},Tg=la,yA=fi,vA=Symbol("nomatch"),iwe=function(t){const e=Object.create(null),r=Object.create(null),n=[];let s=!0;const i=/(^(<[^>]+>|\t|)+|\n)/gm,o="Could not find the language '{}', did you forget to load/include a language module?",a={disableAutodetect:!0,name:"Plain text",contains:[]};let c={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:vSe};function l(X){return c.noHighlightRe.test(X)}function p(X){let le=X.className+" ";le+=X.parentNode?X.parentNode.className:"";const q=c.languageDetectRe.exec(le);if(q){const N=se(q[1]);return N||(gA(o.replace("{}",q[1])),gA("Falling back to no-highlight mode for this block.",X)),N?q[1]:"no-highlight"}return le.split(/\s+/).find(N=>l(N)||se(N))}function f(X,le,q,N){let M="",ae="";typeof le=="object"?(M=X,q=le.ignoreIllegals,ae=le.language,N=void 0):(mn("10.7.0","highlight(lang, code, ...args) has been deprecated."),mn("10.7.0",`Please use highlight(code, options) instead.
|
|
181
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),ae=X,M=le);const ge={code:M,language:ae};G("before:highlight",ge);const Ce=ge.result?ge.result:m(ge.language,ge.code,q,N);return Ce.code=ge.code,G("after:highlight",Ce),Ce}function m(X,le,q,N){function M(L,ee){const he=O.case_insensitive?ee[0].toLowerCase():ee[0];return Object.prototype.hasOwnProperty.call(L.keywords,he)&&L.keywords[he]}function ae(){if(!Y.keywords){me.addText(Ae);return}let L=0;Y.keywordPatternRe.lastIndex=0;let ee=Y.keywordPatternRe.exec(Ae),he="";for(;ee;){he+=Ae.substring(L,ee.index);const ye=M(Y,ee);if(ye){const[Je,We]=ye;if(me.addText(he),he="",Ve+=We,Je.startsWith("_"))he+=ee[0];else{const ut=O.classNameAliases[Je]||Je;me.addKeyword(ee[0],ut)}}else he+=ee[0];L=Y.keywordPatternRe.lastIndex,ee=Y.keywordPatternRe.exec(Ae)}he+=Ae.substr(L),me.addText(he)}function ge(){if(Ae==="")return;let L=null;if(typeof Y.subLanguage=="string"){if(!e[Y.subLanguage]){me.addText(Ae);return}L=m(Y.subLanguage,Ae,!0,fe[Y.subLanguage]),fe[Y.subLanguage]=L.top}else L=g(Ae,Y.subLanguage.length?Y.subLanguage:null);Y.relevance>0&&(Ve+=L.relevance),me.addSublanguage(L.emitter,L.language)}function Ce(){Y.subLanguage!=null?ge():ae(),Ae=""}function Re(L){return L.className&&me.openNode(O.classNameAliases[L.className]||L.className),Y=Object.create(L,{parent:{value:Y}}),Y}function _e(L,ee,he){let ye=_Se(L.endRe,he);if(ye){if(L["on:end"]){const Je=new fA(L);L["on:end"](ee,Je),Je.isMatchIgnored&&(ye=!1)}if(ye){for(;L.endsParent&&L.parent;)L=L.parent;return L}}if(L.endsWithParent)return _e(L.parent,ee,he)}function $e(L){return Y.matcher.regexIndex===0?(Ae+=L[0],1):(A=!0,0)}function ze(L){const ee=L[0],he=L.rule,ye=new fA(he),Je=[he.__beforeBegin,he["on:begin"]];for(const We of Je)if(We&&(We(L,ye),ye.isMatchIgnored))return $e(ee);return he&&he.endSameAsBegin&&(he.endRe=bSe(ee)),he.skip?Ae+=ee:(he.excludeBegin&&(Ae+=ee),Ce(),!he.returnBegin&&!he.excludeBegin&&(Ae=ee)),Re(he),he.returnBegin?0:ee.length}function De(L){const ee=L[0],he=le.substr(L.index),ye=_e(Y,L,he);if(!ye)return vA;const Je=Y;Je.skip?Ae+=ee:(Je.returnEnd||Je.excludeEnd||(Ae+=ee),Ce(),Je.excludeEnd&&(Ae=ee));do Y.className&&me.closeNode(),!Y.skip&&!Y.subLanguage&&(Ve+=Y.relevance),Y=Y.parent;while(Y!==ye.parent);return ye.starts&&(ye.endSameAsBegin&&(ye.starts.endRe=ye.endRe),Re(ye.starts)),Je.returnEnd?0:ee.length}function Ge(){const L=[];for(let ee=Y;ee!==O;ee=ee.parent)ee.className&&L.unshift(ee.className);L.forEach(ee=>me.openNode(ee))}let rt={};function U(L,ee){const he=ee&&ee[0];if(Ae+=L,he==null)return Ce(),0;if(rt.type==="begin"&&ee.type==="end"&&rt.index===ee.index&&he===""){if(Ae+=le.slice(ee.index,ee.index+1),!s){const ye=new Error("0 width match regex");throw ye.languageName=X,ye.badRule=rt.rule,ye}return 1}if(rt=ee,ee.type==="begin")return ze(ee);if(ee.type==="illegal"&&!q){const ye=new Error('Illegal lexeme "'+he+'" for mode "'+(Y.className||"<unnamed>")+'"');throw ye.mode=Y,ye}else if(ee.type==="end"){const ye=De(ee);if(ye!==vA)return ye}if(ee.type==="illegal"&&he==="")return 1;if(_>1e5&&_>ee.index*3)throw new Error("potential infinite loop, way more iterations than matches");return Ae+=he,he.length}const O=se(X);if(!O)throw $g(o.replace("{}",X)),new Error('Unknown language: "'+X+'"');const $=ZSe(O,{plugins:n});let z="",Y=N||$;const fe={},me=new c.__emitter(c);Ge();let Ae="",Ve=0,k=0,_=0,A=!1;try{for(Y.matcher.considerAll();;){_++,A?A=!1:Y.matcher.considerAll(),Y.matcher.lastIndex=k;const L=Y.matcher.exec(le);if(!L)break;const ee=le.substring(k,L.index),he=U(ee,L);k=L.index+he}return U(le.substr(k)),me.closeAllNodes(),me.finalize(),z=me.toHTML(),{relevance:Math.floor(Ve),value:z,language:X,illegal:!1,emitter:me,top:Y}}catch(L){if(L.message&&L.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:L.message,context:le.slice(k-100,k+100),mode:L.mode},sofar:z,relevance:0,value:Tg(le),emitter:me};if(s)return{illegal:!1,relevance:0,value:Tg(le),emitter:me,language:X,top:Y,errorRaised:L};throw L}}function d(X){const le={relevance:0,emitter:new c.__emitter(c),value:Tg(X),illegal:!1,top:a};return le.emitter.addText(X),le}function g(X,le){le=le||c.languages||Object.keys(e);const q=d(X),N=le.filter(se).filter(ce).map(Re=>m(Re,X,!1));N.unshift(q);const M=N.sort((Re,_e)=>{if(Re.relevance!==_e.relevance)return _e.relevance-Re.relevance;if(Re.language&&_e.language){if(se(Re.language).supersetOf===_e.language)return 1;if(se(_e.language).supersetOf===Re.language)return-1}return 0}),[ae,ge]=M,Ce=ae;return Ce.second_best=ge,Ce}function v(X){return c.tabReplace||c.useBR?X.replace(i,le=>le===`
|
|
182
|
+
`?c.useBR?"<br>":le:c.tabReplace?le.replace(/\t/g,c.tabReplace):le):X}function y(X,le,q){const N=le?r[le]:q;X.classList.add("hljs"),N&&X.classList.add(N)}const E={"before:highlightElement":({el:X})=>{c.useBR&&(X.innerHTML=X.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
|
|
183
|
+
`))},"after:highlightElement":({result:X})=>{c.useBR&&(X.value=X.value.replace(/\n/g,"<br>"))}},S=/^(<[^>]+>|\t)+/gm,w={"after:highlightElement":({result:X})=>{c.tabReplace&&(X.value=X.value.replace(S,le=>le.replace(/\t/g,c.tabReplace)))}};function x(X){let le=null;const q=p(X);if(l(q))return;G("before:highlightElement",{el:X,language:q}),le=X;const N=le.textContent,M=q?f(N,{language:q,ignoreIllegals:!0}):g(N);G("after:highlightElement",{el:X,result:M,text:N}),X.innerHTML=M.value,y(X,q,M.language),X.result={language:M.language,re:M.relevance,relavance:M.relevance},M.second_best&&(X.second_best={language:M.second_best.language,re:M.second_best.relevance,relavance:M.second_best.relevance})}function I(X){X.useBR&&(mn("10.3.0","'useBR' will be removed entirely in v11.0"),mn("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),c=yA(c,X)}const T=()=>{if(T.called)return;T.called=!0,mn("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(x)};function D(){mn("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),B=!0}let B=!1;function P(){if(document.readyState==="loading"){B=!0;return}document.querySelectorAll("pre code").forEach(x)}function Z(){B&&P()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Z,!1);function V(X,le){let q=null;try{q=le(t)}catch(N){if($g("Language definition for '{}' could not be registered.".replace("{}",X)),s)$g(N);else throw N;q=a}q.name||(q.name=X),e[X]=q,q.rawDefinition=le.bind(null,t),q.aliases&&re(q.aliases,{languageName:X})}function J(X){delete e[X];for(const le of Object.keys(r))r[le]===X&&delete r[le]}function F(){return Object.keys(e)}function Q(X){mn("10.4.0","requireLanguage will be removed entirely in v11."),mn("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const le=se(X);if(le)return le;throw new Error("The '{}' language is required, but not loaded.".replace("{}",X))}function se(X){return X=(X||"").toLowerCase(),e[X]||e[r[X]]}function re(X,{languageName:le}){typeof X=="string"&&(X=[X]),X.forEach(q=>{r[q.toLowerCase()]=le})}function ce(X){const le=se(X);return le&&!le.disableAutodetect}function ue(X){X["before:highlightBlock"]&&!X["before:highlightElement"]&&(X["before:highlightElement"]=le=>{X["before:highlightBlock"](Object.assign({block:le.el},le))}),X["after:highlightBlock"]&&!X["after:highlightElement"]&&(X["after:highlightElement"]=le=>{X["after:highlightBlock"](Object.assign({block:le.el},le))})}function oe(X){ue(X),n.push(X)}function G(X,le){const q=X;n.forEach(function(N){N[q]&&N[q](le)})}function ie(X){return mn("10.2.0","fixMarkup will be removed entirely in v11.0"),mn("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),v(X)}function pe(X){return mn("10.7.0","highlightBlock will be removed entirely in v12.0"),mn("10.7.0","Please use highlightElement now."),x(X)}Object.assign(t,{highlight:f,highlightAuto:g,highlightAll:P,fixMarkup:ie,highlightElement:x,highlightBlock:pe,configure:I,initHighlighting:T,initHighlightingOnLoad:D,registerLanguage:V,unregisterLanguage:J,listLanguages:F,getLanguage:se,registerAliases:re,requireLanguage:Q,autoDetection:ce,inherit:yA,addPlugin:oe,vuePlugin:rwe(t).VuePlugin}),t.debugMode=function(){s=!1},t.safeMode=function(){s=!0},t.versionString=ewe;for(const X in ep)typeof ep[X]=="object"&&rk(ep[X]);return Object.assign(t,ep),t.addPlugin(E),t.addPlugin(nwe),t.addPlugin(w),t};var owe=iwe({}),awe=owe,lk={exports:{}};(function(t){(function(){var e;e=t.exports=s,e.format=s,e.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(e.printf=r);function r(){console.log(s.apply(null,arguments))}function n(i,o){return s.apply(null,[i].concat(o))}function s(i){for(var o=1,a=[].slice.call(arguments),c=0,l=i.length,p="",f,m=!1,d,g,v=!1,y,E=function(){return a[o++]},S=function(){for(var w="";/\d/.test(i[c]);)w+=i[c++],f=i[c];return w.length>0?parseInt(w):null};c<l;++c)if(f=i[c],m)switch(m=!1,f=="."?(v=!1,f=i[++c]):f=="0"&&i[c+1]=="."?(v=!0,c+=2,f=i[c]):v=!0,y=S(),f){case"b":p+=parseInt(E(),10).toString(2);break;case"c":d=E(),typeof d=="string"||d instanceof String?p+=d:p+=String.fromCharCode(parseInt(d,10));break;case"d":p+=parseInt(E(),10);break;case"f":g=String(parseFloat(E()).toFixed(y||6)),p+=v?g:g.replace(/^0/,"");break;case"j":p+=JSON.stringify(E());break;case"o":p+="0"+parseInt(E(),10).toString(8);break;case"s":p+=E();break;case"x":p+="0x"+parseInt(E(),10).toString(16);break;case"X":p+="0x"+parseInt(E(),10).toString(16).toUpperCase();break;default:p+=f;break}else f==="%"?m=!0:p+=f;return p}})()})(lk);var cwe=lk.exports,lwe=cwe,Ti=Ii(Error),uwe=Ti;Ti.eval=Ii(EvalError);Ti.range=Ii(RangeError);Ti.reference=Ii(ReferenceError);Ti.syntax=Ii(SyntaxError);Ti.type=Ii(TypeError);Ti.uri=Ii(URIError);Ti.create=Ii;function Ii(t){return e.displayName=t.displayName||t.name,e;function e(r){return r&&(r=lwe.apply(null,arguments)),new t(r)}}var ds=awe,Tp=uwe;Eo.highlight=uk;Eo.highlightAuto=fwe;Eo.registerLanguage=hwe;Eo.listLanguages=dwe;Eo.registerAlias=mwe;Xs.prototype.addText=vwe;Xs.prototype.addKeyword=gwe;Xs.prototype.addSublanguage=ywe;Xs.prototype.openNode=bwe;Xs.prototype.closeNode=Ewe;Xs.prototype.closeAllNodes=pk;Xs.prototype.finalize=pk;Xs.prototype.toHTML=Swe;var pwe="hljs-";function uk(t,e,r){var n=ds.configure({}),s=r||{},i=s.prefix,o;if(typeof t!="string")throw Tp("Expected `string` for name, got `%s`",t);if(!ds.getLanguage(t))throw Tp("Unknown language: `%s` is not registered",t);if(typeof e!="string")throw Tp("Expected `string` for value, got `%s`",e);if(i==null&&(i=pwe),ds.configure({__emitter:Xs,classPrefix:i}),o=ds.highlight(e,{language:t,ignoreIllegals:!0}),ds.configure(n||{}),o.errorRaised)throw o.errorRaised;return{relevance:o.relevance,language:o.language,value:o.emitter.rootNode.children}}function fwe(t,e){var r=e||{},n=r.subset||ds.listLanguages();r.prefix;var s=n.length,i=-1,o,a,c,l;if(typeof t!="string")throw Tp("Expected `string` for value, got `%s`",t);for(a={relevance:0,language:null,value:[]},o={relevance:0,language:null,value:[]};++i<s;)l=n[i],ds.getLanguage(l)&&(c=uk(l,t,e),c.language=l,c.relevance>a.relevance&&(a=c),c.relevance>o.relevance&&(a=o,o=c));return a.language&&(o.secondBest=a),o}function hwe(t,e){ds.registerLanguage(t,e)}function dwe(){return ds.listLanguages()}function mwe(t,e){var r=t,n;e&&(r={},r[t]=e);for(n in r)ds.registerAliases(r[n],{languageName:n})}function Xs(t){this.options=t,this.rootNode={children:[]},this.stack=[this.rootNode]}function gwe(t,e){this.openNode(e),this.addText(t),this.closeNode()}function ywe(t,e){var r=this.stack,n=r[r.length-1],s=t.rootNode.children,i=e?{type:"element",tagName:"span",properties:{className:[e]},children:s}:s;n.children=n.children.concat(i)}function vwe(t){var e=this.stack,r,n;t!==""&&(r=e[e.length-1],n=r.children[r.children.length-1],n&&n.type==="text"?n.value+=t:r.children.push({type:"text",value:t}))}function bwe(t){var e=this.stack,r=this.options.classPrefix+t,n=e[e.length-1],s={type:"element",tagName:"span",properties:{className:[r]},children:[]};n.children.push(s),e.push(s)}function Ewe(){this.stack.pop()}function Swe(){return""}function pk(){}var as=dSe(Eo,{});as.registerLanguage=Eo.registerLanguage;const bA="[A-Za-z$_][0-9A-Za-z$_]*",wwe=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],_we=["true","false","null","undefined","NaN","Infinity"],xwe=["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer","BigInt64Array","BigUint64Array","BigInt"],Awe=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],Owe=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],Cwe=["arguments","this","super","console","window","document","localStorage","module","global"],$we=[].concat(Owe,Cwe,xwe,Awe);function Twe(t){return t?typeof t=="string"?t:t.source:null}function EA(t){return Gv("(?=",t,")")}function Gv(...t){return t.map(r=>Twe(r)).join("")}function Iwe(t){const e=(x,{after:I})=>{const T="</"+x[0].slice(1);return x.input.indexOf(T,I)!==-1},r=bA,n={begin:"<>",end:"</>"},s={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(x,I)=>{const T=x[0].length+x.index,D=x.input[T];if(D==="<"){I.ignoreMatch();return}D===">"&&(e(x,{after:T})||I.ignoreMatch())}},i={$pattern:bA,keyword:wwe,literal:_we,built_in:$we},o="[0-9](_?[0-9])*",a=`\\.(${o})`,c="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",l={className:"number",variants:[{begin:`(\\b(${c})((${a})|\\.)?|(${a}))[eE][+-]?(${o})\\b`},{begin:`\\b(${c})\\b((${a})\\b|\\.)?|(${a})\\b`},{begin:"\\b(0|[1-9](_?[0-9])*)n\\b"},{begin:"\\b0[xX][0-9a-fA-F](_?[0-9a-fA-F])*n?\\b"},{begin:"\\b0[bB][0-1](_?[0-1])*n?\\b"},{begin:"\\b0[oO][0-7](_?[0-7])*n?\\b"},{begin:"\\b0[0-7]+n?\\b"}],relevance:0},p={className:"subst",begin:"\\$\\{",end:"\\}",keywords:i,contains:[]},f={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"xml"}},m={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,p],subLanguage:"css"}},d={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,p]},v={className:"comment",variants:[t.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:r+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]},y=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,m,d,l,t.REGEXP_MODE];p.contains=y.concat({begin:/\{/,end:/\}/,keywords:i,contains:["self"].concat(y)});const E=[].concat(v,p.contains),S=E.concat([{begin:/\(/,end:/\)/,keywords:i,contains:["self"].concat(E)}]),w={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:S};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:i,exports:{PARAMS_CONTAINS:S},illegal:/#(?![$_A-z])/,contains:[t.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,f,m,d,v,l,{begin:Gv(/[{,\n]\s*/,EA(Gv(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,r+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:r+EA("\\s*:"),relevance:0}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[v,t.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:i,contains:S}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:n.begin,end:n.end},{begin:s.begin,"on:begin":s.isTrulyOpeningTag,end:s.end}],subLanguage:"xml",contains:[{begin:s.begin,end:s.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:i,contains:["self",t.inherit(t.TITLE_MODE,{begin:r}),w],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:t.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[w,t.inherit(t.TITLE_MODE,{begin:r})]},{variants:[{begin:"\\."+r},{begin:"\\$"+r}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},t.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:r}),"self",w]},{begin:"(get|set)\\s+(?="+r+"\\()",end:/\{/,keywords:"get set",contains:[t.inherit(t.TITLE_MODE,{begin:r}),{begin:/\(\)/},w]},{begin:/\$[(.]/}]}}var Rwe=Iwe;const SA=Ze(Rwe);function Pwe(t){const e={literal:"true false null"},r=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],n=[t.QUOTE_STRING_MODE,t.C_NUMBER_MODE],s={end:",",endsWithParent:!0,excludeEnd:!0,contains:n,keywords:e},i={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE],illegal:"\\n"},t.inherit(s,{begin:/:/})].concat(r),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[t.inherit(s)],illegal:"\\S"};return n.push(i,o),r.forEach(function(a){n.push(a)}),{name:"JSON",contains:n,keywords:e,illegal:"\\S"}}var kwe=Pwe;const jwe=Ze(kwe);function fk(t){return t?typeof t=="string"?t:t.source:null}function wA(t){return Vi("(?=",t,")")}function Nwe(t){return Vi("(",t,")?")}function Vi(...t){return t.map(r=>fk(r)).join("")}function Mwe(...t){return"("+t.map(r=>fk(r)).join("|")+")"}function Dwe(t){const e=Vi(/[A-Z_]/,Nwe(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),r=/[A-Za-z0-9._:-]+/,n={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},s={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},i=t.inherit(s,{begin:/\(/,end:/\)/}),o=t.inherit(t.APOS_STRING_MODE,{className:"meta-string"}),a=t.inherit(t.QUOTE_STRING_MODE,{className:"meta-string"}),c={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:r,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[n]},{begin:/'/,end:/'/,contains:[n]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,relevance:10,contains:[s,a,o,i,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[s,i,a,o]}]}]},t.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},n,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[c],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[c],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:Vi(/</,wA(Vi(e,Mwe(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:e,relevance:0,starts:c}]},{className:"tag",begin:Vi(/<\//,wA(Vi(e,/>/))),contains:[{className:"name",begin:e,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}var Fwe=Dwe;const Bwe=Ze(Fwe);function Lwe(t){return t?typeof t=="string"?t:t.source:null}function Uwe(...t){return t.map(r=>Lwe(r)).join("")}function Vwe(t){const e={},r={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[e]}]};Object.assign(e,{className:"variable",variants:[{begin:Uwe(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},r]});const n={className:"subst",begin:/\$\(/,end:/\)/,contains:[t.BACKSLASH_ESCAPE]},s={begin:/<<-?\s*(?=\w+)/,starts:{contains:[t.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},i={className:"string",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE,e,n]};n.contains.push(i);const o={className:"",begin:/\\"/},a={className:"string",begin:/'/,end:/'/},c={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},t.NUMBER_MODE,e]},l=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=t.SHEBANG({binary:`(${l.join("|")})`,relevance:10}),f={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[t.inherit(t.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[p,t.SHEBANG(),f,c,t.HASH_COMMENT_MODE,s,i,o,a,e]}}var qwe=Vwe;const zwe=Ze(qwe);function Jwe(t){var e="true false yes no null",r="[\\w#;/?:@&=+$,.~*'()[\\]]+",n={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},i={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[t.BACKSLASH_ESCAPE,s]},o=t.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),a="[0-9]{4}(-[0-9][0-9]){0,2}",c="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",l="(\\.[0-9]*)?",p="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",f={className:"number",begin:"\\b"+a+c+l+p+"\\b"},m={end:",",endsWithParent:!0,excludeEnd:!0,keywords:e,relevance:0},d={begin:/\{/,end:/\}/,contains:[m],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[m],illegal:"\\n",relevance:0},v=[n,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+r},{className:"type",begin:"!<"+r+">"},{className:"type",begin:"!"+r},{className:"type",begin:"!!"+r},{className:"meta",begin:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:e,keywords:{literal:e}},f,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},d,g,i],y=[...v];return y.pop(),y.push(o),m.contains=y,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}var Wwe=Jwe;const Hwe=Ze(Wwe);function Kwe(t){return t?typeof t=="string"?t:t.source:null}function Gwe(...t){return t.map(r=>Kwe(r)).join("")}function Ywe(t){const e="HTTP/(2|1\\.[01])",n={className:"attribute",begin:Gwe("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},s=[n,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+e+" \\d{3})",end:/$/,contains:[{className:"meta",begin:e},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},{begin:"(?=^[A-Z]+ (.*?) "+e+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:e},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:s}},t.inherit(n,{relevance:0})]}}var Xwe=Ywe;const Zwe=Ze(Xwe);function Qwe(t){const e=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],r="Add|Clear|Close|Copy|Enter|Exit|Find|Format|Get|Hide|Join|Lock|Move|New|Open|Optimize|Pop|Push|Redo|Remove|Rename|Reset|Resize|Search|Select|Set|Show|Skip|Split|Step|Switch|Undo|Unlock|Watch|Backup|Checkpoint|Compare|Compress|Convert|ConvertFrom|ConvertTo|Dismount|Edit|Expand|Export|Group|Import|Initialize|Limit|Merge|Mount|Out|Publish|Restore|Save|Sync|Unpublish|Update|Approve|Assert|Build|Complete|Confirm|Deny|Deploy|Disable|Enable|Install|Invoke|Register|Request|Restart|Resume|Start|Stop|Submit|Suspend|Uninstall|Unregister|Wait|Debug|Measure|Ping|Repair|Resolve|Test|Trace|Connect|Disconnect|Read|Receive|Send|Write|Block|Grant|Protect|Revoke|Unblock|Unprotect|Use|ForEach|Sort|Tee|Where",n="-and|-as|-band|-bnot|-bor|-bxor|-casesensitive|-ccontains|-ceq|-cge|-cgt|-cle|-clike|-clt|-cmatch|-cne|-cnotcontains|-cnotlike|-cnotmatch|-contains|-creplace|-csplit|-eq|-exact|-f|-file|-ge|-gt|-icontains|-ieq|-ige|-igt|-ile|-ilike|-ilt|-imatch|-in|-ine|-inotcontains|-inotlike|-inotmatch|-ireplace|-is|-isnot|-isplit|-join|-le|-like|-lt|-match|-ne|-not|-notcontains|-notin|-notlike|-notmatch|-or|-regex|-replace|-shl|-shr|-split|-wildcard|-xor",s={$pattern:/-?[A-z\.\-]+\b/,keyword:"if else foreach return do while until elseif begin for trap data dynamicparam end break throw param continue finally in switch exit filter try process catch hidden static parameter",built_in:"ac asnp cat cd CFS chdir clc clear clhy cli clp cls clv cnsn compare copy cp cpi cpp curl cvpa dbp del diff dir dnsn ebp echo|0 epal epcsv epsn erase etsn exsn fc fhx fl ft fw gal gbp gc gcb gci gcm gcs gdr gerr ghy gi gin gjb gl gm gmo gp gps gpv group gsn gsnp gsv gtz gu gv gwmi h history icm iex ihy ii ipal ipcsv ipmo ipsn irm ise iwmi iwr kill lp ls man md measure mi mount move mp mv nal ndr ni nmo npssc nsn nv ogv oh popd ps pushd pwd r rbp rcjb rcsn rd rdr ren ri rjb rm rmdir rmo rni rnp rp rsn rsnp rujb rv rvpa rwmi sajb sal saps sasv sbp sc scb select set shcm si sl sleep sls sort sp spjb spps spsv start stz sujb sv swmi tee trcm type wget where wjb write"},i=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},a={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},c={className:"literal",begin:/\$(null|true|false)\b/},l={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,a,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},p={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},f={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},m=t.inherit(t.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[f]}),d={className:"built_in",variants:[{begin:"(".concat(r,")+(-)[\\w\\d]+")}]},g={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[t.TITLE_MODE]},v={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:i,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[a]}]},y={begin:/using\s/,end:/$/,returnBegin:!0,contains:[l,p,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},E={variants:[{className:"operator",begin:"(".concat(n,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},S={className:"selector-tag",begin:/@\B/,relevance:0},w={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(s.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},x=[w,m,o,t.NUMBER_MODE,l,p,d,a,c,S],I={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",x,{begin:"("+e.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return w.contains.unshift(I),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:s,contains:x.concat(g,v,y,E,I)}}var e1e=Qwe;const t1e=Ze(e1e),hk={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#333",color:"white"},"hljs-name":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-code":{fontStyle:"italic",color:"#888"},"hljs-emphasis":{fontStyle:"italic"},"hljs-tag":{color:"#62c8f3"},"hljs-variable":{color:"#ade5fc"},"hljs-template-variable":{color:"#ade5fc"},"hljs-selector-id":{color:"#ade5fc"},"hljs-selector-class":{color:"#ade5fc"},"hljs-string":{color:"#a2fca2"},"hljs-bullet":{color:"#d36363"},"hljs-type":{color:"#ffa"},"hljs-title":{color:"#ffa"},"hljs-section":{color:"#ffa"},"hljs-attribute":{color:"#ffa"},"hljs-quote":{color:"#ffa"},"hljs-built_in":{color:"#ffa"},"hljs-builtin-name":{color:"#ffa"},"hljs-number":{color:"#d36363"},"hljs-symbol":{color:"#d36363"},"hljs-keyword":{color:"#fcc28c"},"hljs-selector-tag":{color:"#fcc28c"},"hljs-literal":{color:"#fcc28c"},"hljs-comment":{color:"#888"},"hljs-deletion":{color:"#333",backgroundColor:"#fc9b9b"},"hljs-regexp":{color:"#c6b4f0"},"hljs-link":{color:"#c6b4f0"},"hljs-meta":{color:"#fc9b9b"},"hljs-addition":{backgroundColor:"#a2fca2",color:"#333"}},r1e={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#222",color:"#aaa"},"hljs-subst":{color:"#aaa"},"hljs-section":{color:"#fff",fontWeight:"bold"},"hljs-comment":{color:"#444"},"hljs-quote":{color:"#444"},"hljs-meta":{color:"#444"},"hljs-string":{color:"#ffcc33"},"hljs-symbol":{color:"#ffcc33"},"hljs-bullet":{color:"#ffcc33"},"hljs-regexp":{color:"#ffcc33"},"hljs-number":{color:"#00cc66"},"hljs-addition":{color:"#00cc66"},"hljs-built_in":{color:"#32aaee"},"hljs-builtin-name":{color:"#32aaee"},"hljs-literal":{color:"#32aaee"},"hljs-type":{color:"#32aaee"},"hljs-template-variable":{color:"#32aaee"},"hljs-attribute":{color:"#32aaee"},"hljs-link":{color:"#32aaee"},"hljs-keyword":{color:"#6644aa"},"hljs-selector-tag":{color:"#6644aa"},"hljs-name":{color:"#6644aa"},"hljs-selector-id":{color:"#6644aa"},"hljs-selector-class":{color:"#6644aa"},"hljs-title":{color:"#bb1166"},"hljs-variable":{color:"#bb1166"},"hljs-deletion":{color:"#bb1166"},"hljs-template-tag":{color:"#bb1166"},"hljs-doctag":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"},"hljs-emphasis":{fontStyle:"italic"}},n1e={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#272822",color:"#ddd"},"hljs-tag":{color:"#f92672"},"hljs-keyword":{color:"#f92672",fontWeight:"bold"},"hljs-selector-tag":{color:"#f92672",fontWeight:"bold"},"hljs-literal":{color:"#f92672",fontWeight:"bold"},"hljs-strong":{color:"#f92672"},"hljs-name":{color:"#f92672"},"hljs-code":{color:"#66d9ef"},"hljs-class .hljs-title":{color:"white"},"hljs-attribute":{color:"#bf79db"},"hljs-symbol":{color:"#bf79db"},"hljs-regexp":{color:"#bf79db"},"hljs-link":{color:"#bf79db"},"hljs-string":{color:"#a6e22e"},"hljs-bullet":{color:"#a6e22e"},"hljs-subst":{color:"#a6e22e"},"hljs-title":{color:"#a6e22e",fontWeight:"bold"},"hljs-section":{color:"#a6e22e",fontWeight:"bold"},"hljs-emphasis":{color:"#a6e22e"},"hljs-type":{color:"#a6e22e",fontWeight:"bold"},"hljs-built_in":{color:"#a6e22e"},"hljs-builtin-name":{color:"#a6e22e"},"hljs-selector-attr":{color:"#a6e22e"},"hljs-selector-pseudo":{color:"#a6e22e"},"hljs-addition":{color:"#a6e22e"},"hljs-variable":{color:"#a6e22e"},"hljs-template-tag":{color:"#a6e22e"},"hljs-template-variable":{color:"#a6e22e"},"hljs-comment":{color:"#75715e"},"hljs-quote":{color:"#75715e"},"hljs-deletion":{color:"#75715e"},"hljs-meta":{color:"#75715e"},"hljs-doctag":{fontWeight:"bold"},"hljs-selector-id":{fontWeight:"bold"}},s1e={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#2E3440",color:"#D8DEE9"},"hljs-subst":{color:"#D8DEE9"},"hljs-selector-tag":{color:"#81A1C1"},"hljs-selector-id":{color:"#8FBCBB",fontWeight:"bold"},"hljs-selector-class":{color:"#8FBCBB"},"hljs-selector-attr":{color:"#8FBCBB"},"hljs-selector-pseudo":{color:"#88C0D0"},"hljs-addition":{backgroundColor:"rgba(163, 190, 140, 0.5)"},"hljs-deletion":{backgroundColor:"rgba(191, 97, 106, 0.5)"},"hljs-built_in":{color:"#8FBCBB"},"hljs-type":{color:"#8FBCBB"},"hljs-class":{color:"#8FBCBB"},"hljs-function":{color:"#88C0D0"},"hljs-function > .hljs-title":{color:"#88C0D0"},"hljs-keyword":{color:"#81A1C1"},"hljs-literal":{color:"#81A1C1"},"hljs-symbol":{color:"#81A1C1"},"hljs-number":{color:"#B48EAD"},"hljs-regexp":{color:"#EBCB8B"},"hljs-string":{color:"#A3BE8C"},"hljs-title":{color:"#8FBCBB"},"hljs-params":{color:"#D8DEE9"},"hljs-bullet":{color:"#81A1C1"},"hljs-code":{color:"#8FBCBB"},"hljs-emphasis":{fontStyle:"italic"},"hljs-formula":{color:"#8FBCBB"},"hljs-strong":{fontWeight:"bold"},"hljs-link:hover":{textDecoration:"underline"},"hljs-quote":{color:"#4C566A"},"hljs-comment":{color:"#4C566A"},"hljs-doctag":{color:"#8FBCBB"},"hljs-meta":{color:"#5E81AC"},"hljs-meta-keyword":{color:"#5E81AC"},"hljs-meta-string":{color:"#A3BE8C"},"hljs-attr":{color:"#8FBCBB"},"hljs-attribute":{color:"#D8DEE9"},"hljs-builtin-name":{color:"#81A1C1"},"hljs-name":{color:"#81A1C1"},"hljs-section":{color:"#88C0D0"},"hljs-tag":{color:"#81A1C1"},"hljs-variable":{color:"#D8DEE9"},"hljs-template-variable":{color:"#D8DEE9"},"hljs-template-tag":{color:"#5E81AC"},"abnf .hljs-attribute":{color:"#88C0D0"},"abnf .hljs-symbol":{color:"#EBCB8B"},"apache .hljs-attribute":{color:"#88C0D0"},"apache .hljs-section":{color:"#81A1C1"},"arduino .hljs-built_in":{color:"#88C0D0"},"aspectj .hljs-meta":{color:"#D08770"},"aspectj > .hljs-title":{color:"#88C0D0"},"bnf .hljs-attribute":{color:"#8FBCBB"},"clojure .hljs-name":{color:"#88C0D0"},"clojure .hljs-symbol":{color:"#EBCB8B"},"coq .hljs-built_in":{color:"#88C0D0"},"cpp .hljs-meta-string":{color:"#8FBCBB"},"css .hljs-built_in":{color:"#88C0D0"},"css .hljs-keyword":{color:"#D08770"},"diff .hljs-meta":{color:"#8FBCBB"},"ebnf .hljs-attribute":{color:"#8FBCBB"},"glsl .hljs-built_in":{color:"#88C0D0"},"groovy .hljs-meta:not(:first-child)":{color:"#D08770"},"haxe .hljs-meta":{color:"#D08770"},"java .hljs-meta":{color:"#D08770"},"ldif .hljs-attribute":{color:"#8FBCBB"},"lisp .hljs-name":{color:"#88C0D0"},"lua .hljs-built_in":{color:"#88C0D0"},"moonscript .hljs-built_in":{color:"#88C0D0"},"nginx .hljs-attribute":{color:"#88C0D0"},"nginx .hljs-section":{color:"#5E81AC"},"pf .hljs-built_in":{color:"#88C0D0"},"processing .hljs-built_in":{color:"#88C0D0"},"scss .hljs-keyword":{color:"#81A1C1"},"stylus .hljs-keyword":{color:"#81A1C1"},"swift .hljs-meta":{color:"#D08770"},"vim .hljs-built_in":{color:"#88C0D0",fontStyle:"italic"},"yaml .hljs-meta":{color:"#D08770"}},i1e={hljs:{display:"block",overflowX:"auto",padding:"0.5em",background:"#282b2e",color:"#e0e2e4"},"hljs-keyword":{color:"#93c763",fontWeight:"bold"},"hljs-selector-tag":{color:"#93c763",fontWeight:"bold"},"hljs-literal":{color:"#93c763",fontWeight:"bold"},"hljs-selector-id":{color:"#93c763"},"hljs-number":{color:"#ffcd22"},"hljs-attribute":{color:"#668bb0"},"hljs-code":{color:"white"},"hljs-class .hljs-title":{color:"white"},"hljs-section":{color:"white",fontWeight:"bold"},"hljs-regexp":{color:"#d39745"},"hljs-link":{color:"#d39745"},"hljs-meta":{color:"#557182"},"hljs-tag":{color:"#8cbbad"},"hljs-name":{color:"#8cbbad",fontWeight:"bold"},"hljs-bullet":{color:"#8cbbad"},"hljs-subst":{color:"#8cbbad"},"hljs-emphasis":{color:"#8cbbad"},"hljs-type":{color:"#8cbbad",fontWeight:"bold"},"hljs-built_in":{color:"#8cbbad"},"hljs-selector-attr":{color:"#8cbbad"},"hljs-selector-pseudo":{color:"#8cbbad"},"hljs-addition":{color:"#8cbbad"},"hljs-variable":{color:"#8cbbad"},"hljs-template-tag":{color:"#8cbbad"},"hljs-template-variable":{color:"#8cbbad"},"hljs-string":{color:"#ec7600"},"hljs-symbol":{color:"#ec7600"},"hljs-comment":{color:"#818e96"},"hljs-quote":{color:"#818e96"},"hljs-deletion":{color:"#818e96"},"hljs-selector-class":{color:"#A082BD"},"hljs-doctag":{fontWeight:"bold"},"hljs-title":{fontWeight:"bold"},"hljs-strong":{fontWeight:"bold"}},o1e={"hljs-comment":{color:"#969896"},"hljs-quote":{color:"#969896"},"hljs-variable":{color:"#cc6666"},"hljs-template-variable":{color:"#cc6666"},"hljs-tag":{color:"#cc6666"},"hljs-name":{color:"#cc6666"},"hljs-selector-id":{color:"#cc6666"},"hljs-selector-class":{color:"#cc6666"},"hljs-regexp":{color:"#cc6666"},"hljs-deletion":{color:"#cc6666"},"hljs-number":{color:"#de935f"},"hljs-built_in":{color:"#de935f"},"hljs-builtin-name":{color:"#de935f"},"hljs-literal":{color:"#de935f"},"hljs-type":{color:"#de935f"},"hljs-params":{color:"#de935f"},"hljs-meta":{color:"#de935f"},"hljs-link":{color:"#de935f"},"hljs-attribute":{color:"#f0c674"},"hljs-string":{color:"#b5bd68"},"hljs-symbol":{color:"#b5bd68"},"hljs-bullet":{color:"#b5bd68"},"hljs-addition":{color:"#b5bd68"},"hljs-title":{color:"#81a2be"},"hljs-section":{color:"#81a2be"},"hljs-keyword":{color:"#b294bb"},"hljs-selector-tag":{color:"#b294bb"},hljs:{display:"block",overflowX:"auto",background:"#1d1f21",color:"#c5c8c6",padding:"0.5em"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}},a1e={hljs:{display:"block",overflowX:"auto",padding:"0.5em",color:"#000",background:"#fff"},"hljs-subst":{fontWeight:"normal",color:"#000"},"hljs-title":{fontWeight:"normal",color:"#000"},"hljs-comment":{color:"#808080",fontStyle:"italic"},"hljs-quote":{color:"#808080",fontStyle:"italic"},"hljs-meta":{color:"#808000"},"hljs-tag":{background:"#efefef"},"hljs-section":{fontWeight:"bold",color:"#000080"},"hljs-name":{fontWeight:"bold",color:"#000080"},"hljs-literal":{fontWeight:"bold",color:"#000080"},"hljs-keyword":{fontWeight:"bold",color:"#000080"},"hljs-selector-tag":{fontWeight:"bold",color:"#000080"},"hljs-type":{fontWeight:"bold",color:"#000080"},"hljs-selector-id":{fontWeight:"bold",color:"#000080"},"hljs-selector-class":{fontWeight:"bold",color:"#000080"},"hljs-attribute":{fontWeight:"bold",color:"#0000ff"},"hljs-number":{fontWeight:"normal",color:"#0000ff"},"hljs-regexp":{fontWeight:"normal",color:"#0000ff"},"hljs-link":{fontWeight:"normal",color:"#0000ff"},"hljs-string":{color:"#008000",fontWeight:"bold"},"hljs-symbol":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-bullet":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-formula":{color:"#000",background:"#d0eded",fontStyle:"italic"},"hljs-doctag":{textDecoration:"underline"},"hljs-variable":{color:"#660e7a"},"hljs-template-variable":{color:"#660e7a"},"hljs-addition":{background:"#baeeba"},"hljs-deletion":{background:"#ffc8bd"},"hljs-emphasis":{fontStyle:"italic"},"hljs-strong":{fontWeight:"bold"}};var c1e=function(t,e,r,n){var s=typeof n<"u"?[n,t]:[t],i=new Blob(s,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(i,e);else{var o=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),a=document.createElement("a");a.style.display="none",a.href=o,a.setAttribute("download",e),typeof a.download>"u"&&a.setAttribute("target","_blank"),document.body.appendChild(a),a.click(),setTimeout(function(){document.body.removeChild(a),window.URL.revokeObjectURL(o)},200)}};const l1e=Ze(c1e);function u1e(t,e,r){for(var n=-1,s=t.length,i=e.length,o={};++n<s;){var a=n<i?e[n]:void 0;r(o,t[n],a)}return o}var p1e=u1e,f1e=Eh,h1e=p1e;function d1e(t,e){return h1e(t||[],e||[],f1e)}var m1e=d1e;const g1e=Ze(m1e);/*!
|
|
184
|
+
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
|
185
|
+
*
|
|
186
|
+
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|
187
|
+
* Licensed under the MIT License.
|
|
188
|
+
*/var Ps="",Ig,y1e=v1e;function v1e(t,e){if(typeof t!="string")throw new TypeError("expected a string");if(e===1)return t;if(e===2)return t+t;var r=t.length*e;if(Ig!==t||typeof Ig>"u")Ig=t,Ps="";else if(Ps.length>=r)return Ps.substr(0,r);for(;r>Ps.length&&e>1;)e&1&&(Ps+=t),e>>=1,t+=t;return Ps+=t,Ps=Ps.substr(0,r),Ps}var b1e=y1e,E1e=function(e){return e.split(/(<\/?[^>]+>)/g).filter(function(r){return r.trim()!==""})},S1e=function(e){return/<[^>!]+>/.test(e)},dk=function(e){return/<\/+[^>]+>/.test(e)},mk=function(e){return/<[^>]+\/>/.test(e)},w1e=function(e){return S1e(e)&&!dk(e)&&!mk(e)},_1e=function(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.indentor,n=e.textNodesOnSameLine,s=0,i=[];r=r||" ";var o=x1e(t).map(function(a,c,l){var p=a.value,f=a.type;f==="ClosingTag"&&s--;var m=b1e(r,s),d=m+p;if(f==="OpeningTag"&&s++,n){var g=l[c-1],v=l[c-2];f==="ClosingTag"&&g.type==="Text"&&v.type==="OpeningTag"&&(d=""+m+v.value+g.value+p,i.push(c-2,c-1))}return d});return i.forEach(function(a){return o[a]=null}),o.filter(function(a){return!!a}).join(`
|
|
189
|
+
`)};function x1e(t){var e=E1e(t);return e.map(function(r){return{value:r,type:A1e(r)}})}function A1e(t){return dk(t)?"ClosingTag":w1e(t)?"OpeningTag":mk(t)?"SelfClosingTag":"Text"}const O1e=Ze(_1e);var C1e=fl;function $1e(t){return C1e(t).toLowerCase()}var T1e=$1e;const _A=Ze(T1e);var tp;function gk(t){return tp=tp||document.createElement("textarea"),tp.innerHTML="&"+t+";",tp.value}var I1e=Object.prototype.hasOwnProperty;function R1e(t,e){return t?I1e.call(t,e):!1}function yk(t){var e=[].slice.call(arguments,1);return e.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){t[n]=r[n]})}}),t}var P1e=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function qc(t){return t.indexOf("\\")<0?t:t.replace(P1e,"$1")}function vk(t){return!(t>=55296&&t<=57343||t>=64976&&t<=65007||(t&65535)===65535||(t&65535)===65534||t>=0&&t<=8||t===11||t>=14&&t<=31||t>=127&&t<=159||t>1114111)}function Yv(t){if(t>65535){t-=65536;var e=55296+(t>>10),r=56320+(t&1023);return String.fromCharCode(e,r)}return String.fromCharCode(t)}var k1e=/&([a-z#][a-z0-9]{1,31});/gi,j1e=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function N1e(t,e){var r=0,n=gk(e);return e!==n?n:e.charCodeAt(0)===35&&j1e.test(e)&&(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),vk(r))?Yv(r):t}function io(t){return t.indexOf("&")<0?t:t.replace(k1e,N1e)}var M1e=/[&<>"]/,D1e=/[&<>"]/g,F1e={"&":"&","<":"<",">":">",'"':"""};function B1e(t){return F1e[t]}function qr(t){return M1e.test(t)?t.replace(D1e,B1e):t}var Ue={};Ue.blockquote_open=function(){return`<blockquote>
|
|
190
|
+
`};Ue.blockquote_close=function(t,e){return"</blockquote>"+So(t,e)};Ue.code=function(t,e){return t[e].block?"<pre><code>"+qr(t[e].content)+"</code></pre>"+So(t,e):"<code>"+qr(t[e].content)+"</code>"};Ue.fence=function(t,e,r,n,s){var i=t[e],o="",a=r.langPrefix,c="",l,p,f;if(i.params){if(l=i.params.split(/\s+/g),p=l.join(" "),R1e(s.rules.fence_custom,l[0]))return s.rules.fence_custom[l[0]](t,e,r,n,s);c=qr(io(qc(p))),o=' class="'+a+c+'"'}return r.highlight?f=r.highlight.apply(r.highlight,[i.content].concat(l))||qr(i.content):f=qr(i.content),"<pre><code"+o+">"+f+"</code></pre>"+So(t,e)};Ue.fence_custom={};Ue.heading_open=function(t,e){return"<h"+t[e].hLevel+">"};Ue.heading_close=function(t,e){return"</h"+t[e].hLevel+`>
|
|
191
|
+
`};Ue.hr=function(t,e,r){return(r.xhtmlOut?"<hr />":"<hr>")+So(t,e)};Ue.bullet_list_open=function(){return`<ul>
|
|
192
|
+
`};Ue.bullet_list_close=function(t,e){return"</ul>"+So(t,e)};Ue.list_item_open=function(){return"<li>"};Ue.list_item_close=function(){return`</li>
|
|
193
|
+
`};Ue.ordered_list_open=function(t,e){var r=t[e],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
|
|
194
|
+
`};Ue.ordered_list_close=function(t,e){return"</ol>"+So(t,e)};Ue.paragraph_open=function(t,e){return t[e].tight?"":"<p>"};Ue.paragraph_close=function(t,e){var r=!(t[e].tight&&e&&t[e-1].type==="inline"&&!t[e-1].content);return(t[e].tight?"":"</p>")+(r?So(t,e):"")};Ue.link_open=function(t,e,r){var n=t[e].title?' title="'+qr(io(t[e].title))+'"':"",s=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+qr(t[e].href)+'"'+n+s+">"};Ue.link_close=function(){return"</a>"};Ue.image=function(t,e,r){var n=' src="'+qr(t[e].src)+'"',s=t[e].title?' title="'+qr(io(t[e].title))+'"':"",i=' alt="'+(t[e].alt?qr(io(qc(t[e].alt))):"")+'"',o=r.xhtmlOut?" /":"";return"<img"+n+i+s+o+">"};Ue.table_open=function(){return`<table>
|
|
195
|
+
`};Ue.table_close=function(){return`</table>
|
|
196
|
+
`};Ue.thead_open=function(){return`<thead>
|
|
197
|
+
`};Ue.thead_close=function(){return`</thead>
|
|
198
|
+
`};Ue.tbody_open=function(){return`<tbody>
|
|
199
|
+
`};Ue.tbody_close=function(){return`</tbody>
|
|
200
|
+
`};Ue.tr_open=function(){return"<tr>"};Ue.tr_close=function(){return`</tr>
|
|
201
|
+
`};Ue.th_open=function(t,e){var r=t[e];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ue.th_close=function(){return"</th>"};Ue.td_open=function(t,e){var r=t[e];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ue.td_close=function(){return"</td>"};Ue.strong_open=function(){return"<strong>"};Ue.strong_close=function(){return"</strong>"};Ue.em_open=function(){return"<em>"};Ue.em_close=function(){return"</em>"};Ue.del_open=function(){return"<del>"};Ue.del_close=function(){return"</del>"};Ue.ins_open=function(){return"<ins>"};Ue.ins_close=function(){return"</ins>"};Ue.mark_open=function(){return"<mark>"};Ue.mark_close=function(){return"</mark>"};Ue.sub=function(t,e){return"<sub>"+qr(t[e].content)+"</sub>"};Ue.sup=function(t,e){return"<sup>"+qr(t[e].content)+"</sup>"};Ue.hardbreak=function(t,e,r){return r.xhtmlOut?`<br />
|
|
202
|
+
`:`<br>
|
|
203
|
+
`};Ue.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`<br />
|
|
204
|
+
`:`<br>
|
|
205
|
+
`:`
|
|
206
|
+
`};Ue.text=function(t,e){return qr(t[e].content)};Ue.htmlblock=function(t,e){return t[e].content};Ue.htmltag=function(t,e){return t[e].content};Ue.abbr_open=function(t,e){return'<abbr title="'+qr(io(t[e].title))+'">'};Ue.abbr_close=function(){return"</abbr>"};Ue.footnote_ref=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"};Ue.footnote_block_open=function(t,e,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
|
|
207
|
+
`:`<hr class="footnotes-sep">
|
|
208
|
+
`;return n+`<section class="footnotes">
|
|
209
|
+
<ol class="footnotes-list">
|
|
210
|
+
`};Ue.footnote_block_close=function(){return`</ol>
|
|
211
|
+
</section>
|
|
212
|
+
`};Ue.footnote_open=function(t,e){var r=Number(t[e].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};Ue.footnote_close=function(){return`</li>
|
|
213
|
+
`};Ue.footnote_anchor=function(t,e){var r=Number(t[e].id+1).toString(),n="fnref"+r;return t[e].subId>0&&(n+=":"+t[e].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'};Ue.dl_open=function(){return`<dl>
|
|
214
|
+
`};Ue.dt_open=function(){return"<dt>"};Ue.dd_open=function(){return"<dd>"};Ue.dl_close=function(){return`</dl>
|
|
215
|
+
`};Ue.dt_close=function(){return`</dt>
|
|
216
|
+
`};Ue.dd_close=function(){return`</dd>
|
|
217
|
+
`};function bk(t,e){return++e>=t.length-2?e:t[e].type==="paragraph_open"&&t[e].tight&&t[e+1].type==="inline"&&t[e+1].content.length===0&&t[e+2].type==="paragraph_close"&&t[e+2].tight?bk(t,e+2):e}var So=Ue.getBreak=function(e,r){return r=bk(e,r),r<e.length&&e[r].type==="list_item_close"?"":`
|
|
218
|
+
`};function aS(){this.rules=yk({},Ue),this.getBreak=Ue.getBreak}aS.prototype.renderInline=function(t,e,r){for(var n=this.rules,s=t.length,i=0,o="";s--;)o+=n[t[i].type](t,i++,e,r,this);return o};aS.prototype.render=function(t,e,r){for(var n=this.rules,s=t.length,i=-1,o="";++i<s;)t[i].type==="inline"?o+=this.renderInline(t[i].children,e,r):o+=n[t[i].type](t,i,e,r,this);return o};function an(){this.__rules__=[],this.__cache__=null}an.prototype.__find__=function(t){for(var e=this.__rules__.length,r=-1;e--;)if(this.__rules__[++r].name===t)return r;return-1};an.prototype.__compile__=function(){var t=this,e=[""];t.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){e.indexOf(n)<0&&e.push(n)})}),t.__cache__={},e.forEach(function(r){t.__cache__[r]=[],t.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||t.__cache__[r].push(n.fn))})})};an.prototype.at=function(t,e,r){var n=this.__find__(t),s=r||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=s.alt||[],this.__cache__=null};an.prototype.before=function(t,e,r,n){var s=this.__find__(t),i=n||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};an.prototype.after=function(t,e,r,n){var s=this.__find__(t),i=n||{};if(s===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(s+1,0,{name:e,enabled:!0,fn:r,alt:i.alt||[]}),this.__cache__=null};an.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};an.prototype.enable=function(t,e){t=Array.isArray(t)?t:[t],e&&this.__rules__.forEach(function(r){r.enabled=!1}),t.forEach(function(r){var n=this.__find__(r);if(n<0)throw new Error("Rules manager: invalid rule name "+r);this.__rules__[n].enabled=!0},this),this.__cache__=null};an.prototype.disable=function(t){t=Array.isArray(t)?t:[t],t.forEach(function(e){var r=this.__find__(e);if(r<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[r].enabled=!1},this),this.__cache__=null};an.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function L1e(t){t.inlineMode?t.tokens.push({type:"inline",content:t.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):t.block.parse(t.src,t.options,t.env,t.tokens)}function wo(t,e,r,n,s){this.src=t,this.env=n,this.options=r,this.parser=e,this.tokens=s,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}wo.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};wo.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level};wo.prototype.cacheSet=function(t,e){for(var r=this.cache.length;r<=t;r++)this.cache.push(0);this.cache[t]=e};wo.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};function zc(t,e){var r,n,s,i=-1,o=t.posMax,a=t.pos,c=t.isInLabel;if(t.isInLabel)return-1;if(t.labelUnmatchedScopes)return t.labelUnmatchedScopes--,-1;for(t.pos=e+1,t.isInLabel=!0,r=1;t.pos<o;){if(s=t.src.charCodeAt(t.pos),s===91)r++;else if(s===93&&(r--,r===0)){n=!0;break}t.parser.skipToken(t)}return n?(i=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=r-1,t.pos=a,t.isInLabel=c,i}function U1e(t,e,r,n){var s,i,o,a,c,l;if(t.charCodeAt(0)!==42||t.charCodeAt(1)!==91||t.indexOf("]:")===-1||(s=new wo(t,e,r,n,[]),i=zc(s,1),i<0||t.charCodeAt(i+1)!==58))return-1;for(a=s.posMax,o=i+2;o<a&&s.src.charCodeAt(o)!==10;o++);return c=t.slice(2,i),l=t.slice(i+2,o).trim(),l.length===0?-1:(n.abbreviations||(n.abbreviations={}),typeof n.abbreviations[":"+c]>"u"&&(n.abbreviations[":"+c]=l),o)}function V1e(t){var e=t.tokens,r,n,s,i;if(!t.inlineMode){for(r=1,n=e.length-1;r<n;r++)if(e[r-1].type==="paragraph_open"&&e[r].type==="inline"&&e[r+1].type==="paragraph_close"){for(s=e[r].content;s.length&&(i=U1e(s,t.inline,t.options,t.env),!(i<0));)s=s.slice(i).trim();e[r].content=s,s.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function Xv(t){var e=io(t);try{e=decodeURI(e)}catch{}return encodeURI(e)}function Ek(t,e){var r,n,s,i=e,o=t.posMax;if(t.src.charCodeAt(e)===60){for(e++;e<o;){if(r=t.src.charCodeAt(e),r===10)return!1;if(r===62)return s=Xv(qc(t.src.slice(i+1,e))),t.parser.validateLink(s)?(t.pos=e+1,t.linkContent=s,!0):!1;if(r===92&&e+1<o){e+=2;continue}e++}return!1}for(n=0;e<o&&(r=t.src.charCodeAt(e),!(r===32||r<32||r===127));){if(r===92&&e+1<o){e+=2;continue}if(r===40&&(n++,n>1)||r===41&&(n--,n<0))break;e++}return i===e||(s=qc(t.src.slice(i,e)),!t.parser.validateLink(s))?!1:(t.linkContent=s,t.pos=e,!0)}function Sk(t,e){var r,n=e,s=t.posMax,i=t.src.charCodeAt(e);if(i!==34&&i!==39&&i!==40)return!1;for(e++,i===40&&(i=41);e<s;){if(r=t.src.charCodeAt(e),r===i)return t.pos=e+1,t.linkContent=qc(t.src.slice(n+1,e)),!0;if(r===92&&e+1<s){e+=2;continue}e++}return!1}function wk(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function q1e(t,e,r,n){var s,i,o,a,c,l,p,f,m;if(t.charCodeAt(0)!==91||t.indexOf("]:")===-1||(s=new wo(t,e,r,n,[]),i=zc(s,0),i<0||t.charCodeAt(i+1)!==58))return-1;for(a=s.posMax,o=i+2;o<a&&(c=s.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(!Ek(s,o))return-1;for(p=s.linkContent,o=s.pos,l=o,o=o+1;o<a&&(c=s.src.charCodeAt(o),!(c!==32&&c!==10));o++);for(o<a&&l!==o&&Sk(s,o)?(f=s.linkContent,o=s.pos):(f="",o=l);o<a&&s.src.charCodeAt(o)===32;)o++;return o<a&&s.src.charCodeAt(o)!==10?-1:(m=wk(t.slice(1,i)),typeof n.references[m]>"u"&&(n.references[m]={title:f,href:p}),o)}function z1e(t){var e=t.tokens,r,n,s,i;if(t.env.references=t.env.references||{},!t.inlineMode){for(r=1,n=e.length-1;r<n;r++)if(e[r].type==="inline"&&e[r-1].type==="paragraph_open"&&e[r+1].type==="paragraph_close"){for(s=e[r].content;s.length&&(i=q1e(s,t.inline,t.options,t.env),!(i<0));)s=s.slice(i).trim();e[r].content=s,s.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function J1e(t){var e=t.tokens,r,n,s;for(n=0,s=e.length;n<s;n++)r=e[n],r.type==="inline"&&t.inline.parse(r.content,t.options,t.env,r.children)}function W1e(t){var e,r,n,s,i,o,a,c,l,p=0,f=!1,m={};if(t.env.footnotes&&(t.tokens=t.tokens.filter(function(d){return d.type==="footnote_reference_open"?(f=!0,c=[],l=d.label,!1):d.type==="footnote_reference_close"?(f=!1,m[":"+l]=c,!1):(f&&c.push(d),!f)}),!!t.env.footnotes.list)){for(o=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:p++}),e=0,r=o.length;e<r;e++){for(t.tokens.push({type:"footnote_open",id:e,level:p++}),o[e].tokens?(a=[],a.push({type:"paragraph_open",tight:!1,level:p++}),a.push({type:"inline",content:"",level:p,children:o[e].tokens}),a.push({type:"paragraph_close",tight:!1,level:--p})):o[e].label&&(a=m[":"+o[e].label]),t.tokens=t.tokens.concat(a),t.tokens[t.tokens.length-1].type==="paragraph_close"?i=t.tokens.pop():i=null,s=o[e].count>0?o[e].count:1,n=0;n<s;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:p});i&&t.tokens.push(i),t.tokens.push({type:"footnote_close",level:--p})}t.tokens.push({type:"footnote_block_close",level:--p})}}var xA=`
|
|
219
|
+
()[]'".,!?-`;function Rg(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function H1e(t){var e,r,n,s,i,o,a,c,l,p,f,m,d=t.tokens;if(t.env.abbreviations){for(t.env.abbrRegExp||(m="(^|["+xA.split("").map(Rg).join("")+"])("+Object.keys(t.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,v){return v.length-g.length}).map(Rg).join("|")+")($|["+xA.split("").map(Rg).join("")+"])",t.env.abbrRegExp=new RegExp(m,"g")),p=t.env.abbrRegExp,r=0,n=d.length;r<n;r++)if(d[r].type==="inline"){for(s=d[r].children,e=s.length-1;e>=0;e--)if(i=s[e],i.type==="text"){for(c=0,o=i.content,p.lastIndex=0,l=i.level,a=[];f=p.exec(o);)p.lastIndex>c&&a.push({type:"text",content:o.slice(c,f.index+f[1].length),level:l}),a.push({type:"abbr_open",title:t.env.abbreviations[":"+f[2]],level:l++}),a.push({type:"text",content:f[2],level:l}),a.push({type:"abbr_close",level:--l}),c=p.lastIndex-f[3].length;a.length&&(c<o.length&&a.push({type:"text",content:o.slice(c),level:l}),d[r].children=s=[].concat(s.slice(0,e),a,s.slice(e+1)))}}}}var K1e=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,G1e=/\((c|tm|r|p)\)/ig,Y1e={c:"©",r:"®",p:"§",tm:"™"};function X1e(t){return t.indexOf("(")<0?t:t.replace(G1e,function(e,r){return Y1e[r.toLowerCase()]})}function Z1e(t){var e,r,n,s,i;if(t.options.typographer){for(i=t.tokens.length-1;i>=0;i--)if(t.tokens[i].type==="inline")for(s=t.tokens[i].children,e=s.length-1;e>=0;e--)r=s[e],r.type==="text"&&(n=r.content,n=X1e(n),K1e.test(n)&&(n=n.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/mg,"$1—$2").replace(/(^|\s)--(\s|$)/mg,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/mg,"$1–$2")),r.content=n)}}var Q1e=/['"]/,AA=/['"]/g,e_e=/[-\s()\[\]]/,OA="’";function CA(t,e){return e<0||e>=t.length?!1:!e_e.test(t[e])}function Ko(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function t_e(t){var e,r,n,s,i,o,a,c,l,p,f,m,d,g,v,y,E;if(t.options.typographer){for(E=[],v=t.tokens.length-1;v>=0;v--)if(t.tokens[v].type==="inline"){for(y=t.tokens[v].children,E.length=0,e=0;e<y.length;e++)if(r=y[e],!(r.type!=="text"||Q1e.test(r.text))){for(a=y[e].level,d=E.length-1;d>=0&&!(E[d].level<=a);d--);E.length=d+1,n=r.content,i=0,o=n.length;e:for(;i<o&&(AA.lastIndex=i,s=AA.exec(n),!!s);){if(c=!CA(n,s.index-1),i=s.index+1,g=s[0]==="'",l=!CA(n,i),!l&&!c){g&&(r.content=Ko(r.content,s.index,OA));continue}if(f=!l,m=!c,m){for(d=E.length-1;d>=0&&(p=E[d],!(E[d].level<a));d--)if(p.single===g&&E[d].level===a){p=E[d],g?(y[p.token].content=Ko(y[p.token].content,p.pos,t.options.quotes[2]),r.content=Ko(r.content,s.index,t.options.quotes[3])):(y[p.token].content=Ko(y[p.token].content,p.pos,t.options.quotes[0]),r.content=Ko(r.content,s.index,t.options.quotes[1])),E.length=d;continue e}}f?E.push({token:e,pos:s.index,single:g,level:a}):m&&g&&(r.content=Ko(r.content,s.index,OA))}}}}}var Pg=[["block",L1e],["abbr",V1e],["references",z1e],["inline",J1e],["footnote_tail",W1e],["abbr2",H1e],["replacements",Z1e],["smartquotes",t_e]];function _k(){this.options={},this.ruler=new an;for(var t=0;t<Pg.length;t++)this.ruler.push(Pg[t][0],Pg[t][1])}_k.prototype.process=function(t){var e,r,n;for(n=this.ruler.getRules(""),e=0,r=n.length;e<r;e++)n[e](t)};function _o(t,e,r,n,s){var i,o,a,c,l,p,f;for(this.src=t,this.parser=e,this.options=r,this.env=n,this.tokens=s,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",o=this.src,p=0,f=!1,a=c=p=0,l=o.length;c<l;c++){if(i=o.charCodeAt(c),!f)if(i===32){p++;continue}else f=!0;(i===10||c===l-1)&&(i!==10&&c++,this.bMarks.push(a),this.eMarks.push(c),this.tShift.push(p),f=!1,p=0,a=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}_o.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};_o.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};_o.prototype.skipSpaces=function(e){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===32;e++);return e};_o.prototype.skipChars=function(e,r){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e};_o.prototype.skipCharsBack=function(e,r,n){if(e<=n)return e;for(;e>n;)if(r!==this.src.charCodeAt(--e))return e+1;return e};_o.prototype.getLines=function(e,r,n,s){var i,o,a,c,l,p=e;if(e>=r)return"";if(p+1===r)return o=this.bMarks[p]+Math.min(this.tShift[p],n),a=s?this.eMarks[p]+1:this.eMarks[p],this.src.slice(o,a);for(c=new Array(r-e),i=0;p<r;p++,i++)l=this.tShift[p],l>n&&(l=n),l<0&&(l=0),o=this.bMarks[p]+l,p+1<r||s?a=this.eMarks[p]+1:a=this.eMarks[p],c[i]=this.src.slice(o,a);return c.join("")};function r_e(t,e,r){var n,s;if(t.tShift[e]-t.blkIndent<4)return!1;for(s=n=e+1;n<r;){if(t.isEmpty(n)){n++;continue}if(t.tShift[n]-t.blkIndent>=4){n++,s=n;continue}break}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,s,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}function n_e(t,e,r,n){var s,i,o,a,c,l=!1,p=t.bMarks[e]+t.tShift[e],f=t.eMarks[e];if(p+3>f||(s=t.src.charCodeAt(p),s!==126&&s!==96)||(c=p,p=t.skipChars(p,s),i=p-c,i<3)||(o=t.src.slice(p,f).trim(),o.indexOf("`")>=0))return!1;if(n)return!0;for(a=e;a++,!(a>=r||(p=c=t.bMarks[a]+t.tShift[a],f=t.eMarks[a],p<f&&t.tShift[a]<t.blkIndent));)if(t.src.charCodeAt(p)===s&&!(t.tShift[a]-t.blkIndent>=4)&&(p=t.skipChars(p,s),!(p-c<i)&&(p=t.skipSpaces(p),!(p<f)))){l=!0;break}return i=t.tShift[e],t.line=a+(l?1:0),t.tokens.push({type:"fence",params:o,content:t.getLines(e+1,a,i,!0),lines:[e,t.line],level:t.level}),!0}function s_e(t,e,r,n){var s,i,o,a,c,l,p,f,m,d,g,v=t.bMarks[e]+t.tShift[e],y=t.eMarks[e];if(v>y||t.src.charCodeAt(v++)!==62||t.level>=t.options.maxNesting)return!1;if(n)return!0;for(t.src.charCodeAt(v)===32&&v++,c=t.blkIndent,t.blkIndent=0,a=[t.bMarks[e]],t.bMarks[e]=v,v=v<y?t.skipSpaces(v):v,i=v>=y,o=[t.tShift[e]],t.tShift[e]=v-t.bMarks[e],f=t.parser.ruler.getRules("blockquote"),s=e+1;s<r&&(v=t.bMarks[s]+t.tShift[s],y=t.eMarks[s],!(v>=y));s++){if(t.src.charCodeAt(v++)===62){t.src.charCodeAt(v)===32&&v++,a.push(t.bMarks[s]),t.bMarks[s]=v,v=v<y?t.skipSpaces(v):v,i=v>=y,o.push(t.tShift[s]),t.tShift[s]=v-t.bMarks[s];continue}if(i)break;for(g=!1,m=0,d=f.length;m<d;m++)if(f[m](t,s,r,!0)){g=!0;break}if(g)break;a.push(t.bMarks[s]),o.push(t.tShift[s]),t.tShift[s]=-1337}for(l=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:p=[e,0],level:t.level++}),t.parser.tokenize(t,e,s),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=l,p[1]=t.line,m=0;m<o.length;m++)t.bMarks[m+e]=a[m],t.tShift[m+e]=o[m];return t.blkIndent=c,!0}function i_e(t,e,r,n){var s,i,o,a=t.bMarks[e],c=t.eMarks[e];if(a+=t.tShift[e],a>c||(s=t.src.charCodeAt(a++),s!==42&&s!==45&&s!==95))return!1;for(i=1;a<c;){if(o=t.src.charCodeAt(a++),o!==s&&o!==32)return!1;o===s&&i++}return i<3?!1:(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),!0)}function $A(t,e){var r,n,s;return n=t.bMarks[e]+t.tShift[e],s=t.eMarks[e],n>=s||(r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43)||n<s&&t.src.charCodeAt(n)!==32?-1:n}function TA(t,e){var r,n=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];if(n+1>=s||(r=t.src.charCodeAt(n++),r<48||r>57))return-1;for(;;){if(n>=s)return-1;if(r=t.src.charCodeAt(n++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n<s&&t.src.charCodeAt(n)!==32?-1:n}function o_e(t,e){var r,n,s=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===s&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function a_e(t,e,r,n){var s,i,o,a,c,l,p,f,m,d,g,v,y,E,S,w,x,I,T=!0,D,B,P,Z;if((f=TA(t,e))>=0)y=!0;else if((f=$A(t,e))>=0)y=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(v=t.src.charCodeAt(f-1),n)return!0;for(S=t.tokens.length,y?(p=t.bMarks[e]+t.tShift[e],g=Number(t.src.substr(p,f-p-1)),t.tokens.push({type:"ordered_list_open",order:g,lines:x=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:x=[e,0],level:t.level++}),s=e,w=!1,D=t.parser.ruler.getRules("list");s<r&&(E=t.skipSpaces(f),m=t.eMarks[s],E>=m?d=1:d=E-f,d>4&&(d=1),d<1&&(d=1),i=f-t.bMarks[s]+d,t.tokens.push({type:"list_item_open",lines:I=[e,0],level:t.level++}),a=t.blkIndent,c=t.tight,o=t.tShift[e],l=t.parentType,t.tShift[e]=E-t.bMarks[e],t.blkIndent=i,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,r,!0),(!t.tight||w)&&(T=!1),w=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=a,t.tShift[e]=o,t.tight=c,t.parentType=l,t.tokens.push({type:"list_item_close",level:--t.level}),s=e=t.line,I[1]=s,E=t.bMarks[e],!(s>=r||t.isEmpty(s)||t.tShift[s]<t.blkIndent));){for(Z=!1,B=0,P=D.length;B<P;B++)if(D[B](t,s,r,!0)){Z=!0;break}if(Z)break;if(y){if(f=TA(t,s),f<0)break}else if(f=$A(t,s),f<0)break;if(v!==t.src.charCodeAt(f-1))break}return t.tokens.push({type:y?"ordered_list_close":"bullet_list_close",level:--t.level}),x[1]=s,t.line=s,T&&o_e(t,S),!0}function c_e(t,e,r,n){var s,i,o,a,c,l=t.bMarks[e]+t.tShift[e],p=t.eMarks[e];if(l+4>p||t.src.charCodeAt(l)!==91||t.src.charCodeAt(l+1)!==94||t.level>=t.options.maxNesting)return!1;for(a=l+2;a<p;a++){if(t.src.charCodeAt(a)===32)return!1;if(t.src.charCodeAt(a)===93)break}return a===l+2||a+1>=p||t.src.charCodeAt(++a)!==58?!1:(n||(a++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),c=t.src.slice(l+2,a-2),t.env.footnotes.refs[":"+c]=-1,t.tokens.push({type:"footnote_reference_open",label:c,level:t.level++}),s=t.bMarks[e],i=t.tShift[e],o=t.parentType,t.tShift[e]=t.skipSpaces(a)-a,t.bMarks[e]=a,t.blkIndent+=4,t.parentType="footnote",t.tShift[e]<t.blkIndent&&(t.tShift[e]+=t.blkIndent,t.bMarks[e]-=t.blkIndent),t.parser.tokenize(t,e,r,!0),t.parentType=o,t.blkIndent-=4,t.tShift[e]=i,t.bMarks[e]=s,t.tokens.push({type:"footnote_reference_close",level:--t.level})),!0)}function l_e(t,e,r,n){var s,i,o,a=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(a>=c||(s=t.src.charCodeAt(a),s!==35||a>=c))return!1;for(i=1,s=t.src.charCodeAt(++a);s===35&&a<c&&i<=6;)i++,s=t.src.charCodeAt(++a);return i>6||a<c&&s!==32?!1:(n||(c=t.skipCharsBack(c,32,a),o=t.skipCharsBack(c,35,a),o>a&&t.src.charCodeAt(o-1)===32&&(c=o),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:i,lines:[e,t.line],level:t.level}),a<c&&t.tokens.push({type:"inline",content:t.src.slice(a,c).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:i,level:t.level})),!0)}function u_e(t,e,r){var n,s,i,o=e+1;return o>=r||t.tShift[o]<t.blkIndent||t.tShift[o]-t.blkIndent>3||(s=t.bMarks[o]+t.tShift[o],i=t.eMarks[o],s>=i)||(n=t.src.charCodeAt(s),n!==45&&n!==61)||(s=t.skipChars(s,n),s=t.skipSpaces(s),s<i)?!1:(s=t.bMarks[e]+t.tShift[e],t.line=o+1,t.tokens.push({type:"heading_open",hLevel:n===61?1:2,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:t.src.slice(s,t.eMarks[e]).trim(),level:t.level+1,lines:[e,t.line-1],children:[]}),t.tokens.push({type:"heading_close",hLevel:n===61?1:2,level:t.level}),!0)}var xk={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach(function(t){xk[t]=!0});var p_e=/^<([a-zA-Z]{1,15})[\s\/>]/,f_e=/^<\/([a-zA-Z]{1,15})[\s>]/;function h_e(t){var e=t|32;return e>=97&&e<=122}function d_e(t,e,r,n){var s,i,o,a=t.bMarks[e],c=t.eMarks[e],l=t.tShift[e];if(a+=l,!t.options.html||l>3||a+2>=c||t.src.charCodeAt(a)!==60)return!1;if(s=t.src.charCodeAt(a+1),s===33||s===63){if(n)return!0}else if(s===47||h_e(s)){if(s===47){if(i=t.src.slice(a,c).match(f_e),!i)return!1}else if(i=t.src.slice(a,c).match(p_e),!i)return!1;if(xk[i[1].toLowerCase()]!==!0)return!1;if(n)return!0}else return!1;for(o=e+1;o<t.lineMax&&!t.isEmpty(o);)o++;return t.line=o,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,o,0,!0)}),!0}function kg(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function m_e(t,e,r,n){var s,i,o,a,c,l,p,f,m,d,g;if(e+2>r||(c=e+1,t.tShift[c]<t.blkIndent)||(o=t.bMarks[c]+t.tShift[c],o>=t.eMarks[c])||(s=t.src.charCodeAt(o),s!==124&&s!==45&&s!==58)||(i=kg(t,e+1),!/^[-:| ]+$/.test(i))||(l=i.split("|"),l<=2))return!1;for(f=[],a=0;a<l.length;a++){if(m=l[a].trim(),!m){if(a===0||a===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(m))return!1;m.charCodeAt(m.length-1)===58?f.push(m.charCodeAt(0)===58?"center":"right"):m.charCodeAt(0)===58?f.push("left"):f.push("")}if(i=kg(t,e).trim(),i.indexOf("|")===-1||(l=i.replace(/^\||\|$/g,"").split("|"),f.length!==l.length))return!1;if(n)return!0;for(t.tokens.push({type:"table_open",lines:d=[e,0],level:t.level++}),t.tokens.push({type:"thead_open",lines:[e,e+1],level:t.level++}),t.tokens.push({type:"tr_open",lines:[e,e+1],level:t.level++}),a=0;a<l.length;a++)t.tokens.push({type:"th_open",align:f[a],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:l[a].trim(),lines:[e,e+1],level:t.level,children:[]}),t.tokens.push({type:"th_close",level:--t.level});for(t.tokens.push({type:"tr_close",level:--t.level}),t.tokens.push({type:"thead_close",level:--t.level}),t.tokens.push({type:"tbody_open",lines:g=[e+2,0],level:t.level++}),c=e+2;c<r&&!(t.tShift[c]<t.blkIndent||(i=kg(t,c).trim(),i.indexOf("|")===-1));c++){for(l=i.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),a=0;a<l.length;a++)t.tokens.push({type:"td_open",align:f[a],level:t.level++}),p=l[a].substring(l[a].charCodeAt(0)===124?1:0,l[a].charCodeAt(l[a].length-1)===124?l[a].length-1:l[a].length).trim(),t.tokens.push({type:"inline",content:p,level:t.level,children:[]}),t.tokens.push({type:"td_close",level:--t.level});t.tokens.push({type:"tr_close",level:--t.level})}return t.tokens.push({type:"tbody_close",level:--t.level}),t.tokens.push({type:"table_close",level:--t.level}),d[1]=g[1]=c,t.line=c,!0}function rp(t,e){var r,n,s=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];return s>=i||(n=t.src.charCodeAt(s++),n!==126&&n!==58)||(r=t.skipSpaces(s),s===r)||r>=i?-1:r}function g_e(t,e){var r,n,s=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===s&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function y_e(t,e,r,n){var s,i,o,a,c,l,p,f,m,d,g,v,y,E;if(n)return t.ddIndent<0?!1:rp(t,e)>=0;if(p=e+1,t.isEmpty(p)&&++p>r||t.tShift[p]<t.blkIndent||(s=rp(t,p),s<0)||t.level>=t.options.maxNesting)return!1;l=t.tokens.length,t.tokens.push({type:"dl_open",lines:c=[e,0],level:t.level++}),o=e,i=p;e:for(;;){for(E=!0,y=!1,t.tokens.push({type:"dt_open",lines:[o,o],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(o,o+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[o,o],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:a=[p,0],level:t.level++}),v=t.tight,m=t.ddIndent,f=t.blkIndent,g=t.tShift[i],d=t.parentType,t.blkIndent=t.ddIndent=t.tShift[i]+2,t.tShift[i]=s-t.bMarks[i],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,i,r,!0),(!t.tight||y)&&(E=!1),y=t.line-i>1&&t.isEmpty(t.line-1),t.tShift[i]=g,t.tight=v,t.parentType=d,t.blkIndent=f,t.ddIndent=m,t.tokens.push({type:"dd_close",level:--t.level}),a[1]=p=t.line,p>=r||t.tShift[p]<t.blkIndent)break e;if(s=rp(t,p),s<0)break;i=p}if(p>=r||(o=p,t.isEmpty(o))||t.tShift[o]<t.blkIndent||(i=o+1,i>=r)||(t.isEmpty(i)&&i++,i>=r)||t.tShift[i]<t.blkIndent||(s=rp(t,i),s<0))break}return t.tokens.push({type:"dl_close",level:--t.level}),c[1]=p,t.line=p,E&&g_e(t,l),!0}function v_e(t,e){var r,n,s,i,o,a=e+1,c;if(r=t.lineMax,a<r&&!t.isEmpty(a)){for(c=t.parser.ruler.getRules("paragraph");a<r&&!t.isEmpty(a);a++)if(!(t.tShift[a]-t.blkIndent>3)){for(s=!1,i=0,o=c.length;i<o;i++)if(c[i](t,a,r,!0)){s=!0;break}if(s)break}}return n=t.getLines(e,a,t.blkIndent,!1).trim(),t.line=a,n.length&&(t.tokens.push({type:"paragraph_open",tight:!1,lines:[e,t.line],level:t.level}),t.tokens.push({type:"inline",content:n,level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"paragraph_close",tight:!1,level:t.level})),!0}var np=[["code",r_e],["fences",n_e,["paragraph","blockquote","list"]],["blockquote",s_e,["paragraph","blockquote","list"]],["hr",i_e,["paragraph","blockquote","list"]],["list",a_e,["paragraph","blockquote"]],["footnote",c_e,["paragraph"]],["heading",l_e,["paragraph","blockquote"]],["lheading",u_e],["htmlblock",d_e,["paragraph","blockquote"]],["table",m_e,["paragraph"]],["deflist",y_e,["paragraph"]],["paragraph",v_e]];function cS(){this.ruler=new an;for(var t=0;t<np.length;t++)this.ruler.push(np[t][0],np[t][1],{alt:(np[t][2]||[]).slice()})}cS.prototype.tokenize=function(t,e,r){for(var n=this.ruler.getRules(""),s=n.length,i=e,o=!1,a,c;i<r&&(t.line=i=t.skipEmptyLines(i),!(i>=r||t.tShift[i]<t.blkIndent));){for(c=0;c<s&&(a=n[c](t,i,r,!1),!a);c++);if(t.tight=!o,t.isEmpty(t.line-1)&&(o=!0),i=t.line,i<r&&t.isEmpty(i)){if(o=!0,i++,i<r&&t.parentType==="list"&&t.isEmpty(i))break;t.line=i}}};var b_e=/[\n\t]/g,E_e=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,S_e=/\u00a0/g;cS.prototype.parse=function(t,e,r,n){var s,i=0,o=0;if(!t)return[];t=t.replace(S_e," "),t=t.replace(E_e,`
|
|
220
|
+
`),t.indexOf(" ")>=0&&(t=t.replace(b_e,function(a,c){var l;return t.charCodeAt(c)===10?(i=c+1,o=0,a):(l=" ".slice((c-i-o)%4),o=c-i+1,l)})),s=new _o(t,this,e,r,n),this.tokenize(s,s.line,s.lineMax)};function w_e(t){switch(t){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}function __e(t,e){for(var r=t.pos;r<t.posMax&&!w_e(t.src.charCodeAt(r));)r++;return r===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}function x_e(t,e){var r,n,s=t.pos;if(t.src.charCodeAt(s)!==10)return!1;if(r=t.pending.length-1,n=t.posMax,!e)if(r>=0&&t.pending.charCodeAt(r)===32)if(r>=1&&t.pending.charCodeAt(r-1)===32){for(var i=r-2;i>=0;i--)if(t.pending.charCodeAt(i)!==32){t.pending=t.pending.substring(0,i+1);break}t.push({type:"hardbreak",level:t.level})}else t.pending=t.pending.slice(0,-1),t.push({type:"softbreak",level:t.level});else t.push({type:"softbreak",level:t.level});for(s++;s<n&&t.src.charCodeAt(s)===32;)s++;return t.pos=s,!0}var lS=[];for(var IA=0;IA<256;IA++)lS.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){lS[t.charCodeAt(0)]=1});function A_e(t,e){var r,n=t.pos,s=t.posMax;if(t.src.charCodeAt(n)!==92)return!1;if(n++,n<s){if(r=t.src.charCodeAt(n),r<256&&lS[r]!==0)return e||(t.pending+=t.src[n]),t.pos+=2,!0;if(r===10){for(e||t.push({type:"hardbreak",level:t.level}),n++;n<s&&t.src.charCodeAt(n)===32;)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}function O_e(t,e){var r,n,s,i,o,a=t.pos,c=t.src.charCodeAt(a);if(c!==96)return!1;for(r=a,a++,n=t.posMax;a<n&&t.src.charCodeAt(a)===96;)a++;for(s=t.src.slice(r,a),i=o=a;(i=t.src.indexOf("`",o))!==-1;){for(o=i+1;o<n&&t.src.charCodeAt(o)===96;)o++;if(o-i===s.length)return e||t.push({type:"code",content:t.src.slice(a,i).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=o,!0}return e||(t.pending+=s),t.pos+=s.length,!0}function C_e(t,e){var r,n,s,i=t.posMax,o=t.pos,a,c;if(t.src.charCodeAt(o)!==126||e||o+4>=i||t.src.charCodeAt(o+1)!==126||t.level>=t.options.maxNesting||(a=o>0?t.src.charCodeAt(o-1):-1,c=t.src.charCodeAt(o+2),a===126)||c===126||c===32||c===10)return!1;for(n=o+2;n<i&&t.src.charCodeAt(n)===126;)n++;if(n>o+3)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,s=1;t.pos+1<i;){if(t.src.charCodeAt(t.pos)===126&&t.src.charCodeAt(t.pos+1)===126&&(a=t.src.charCodeAt(t.pos-1),c=t.pos+2<i?t.src.charCodeAt(t.pos+2):-1,c!==126&&a!==126&&(a!==32&&a!==10?s--:c!==32&&c!==10&&s++,s<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"del_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"del_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=i,!0):(t.pos=o,!1)}function $_e(t,e){var r,n,s,i=t.posMax,o=t.pos,a,c;if(t.src.charCodeAt(o)!==43||e||o+4>=i||t.src.charCodeAt(o+1)!==43||t.level>=t.options.maxNesting||(a=o>0?t.src.charCodeAt(o-1):-1,c=t.src.charCodeAt(o+2),a===43)||c===43||c===32||c===10)return!1;for(n=o+2;n<i&&t.src.charCodeAt(n)===43;)n++;if(n!==o+2)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,s=1;t.pos+1<i;){if(t.src.charCodeAt(t.pos)===43&&t.src.charCodeAt(t.pos+1)===43&&(a=t.src.charCodeAt(t.pos-1),c=t.pos+2<i?t.src.charCodeAt(t.pos+2):-1,c!==43&&a!==43&&(a!==32&&a!==10?s--:c!==32&&c!==10&&s++,s<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"ins_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"ins_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=i,!0):(t.pos=o,!1)}function T_e(t,e){var r,n,s,i=t.posMax,o=t.pos,a,c;if(t.src.charCodeAt(o)!==61||e||o+4>=i||t.src.charCodeAt(o+1)!==61||t.level>=t.options.maxNesting||(a=o>0?t.src.charCodeAt(o-1):-1,c=t.src.charCodeAt(o+2),a===61)||c===61||c===32||c===10)return!1;for(n=o+2;n<i&&t.src.charCodeAt(n)===61;)n++;if(n!==o+2)return t.pos+=n-o,e||(t.pending+=t.src.slice(o,n)),!0;for(t.pos=o+2,s=1;t.pos+1<i;){if(t.src.charCodeAt(t.pos)===61&&t.src.charCodeAt(t.pos+1)===61&&(a=t.src.charCodeAt(t.pos-1),c=t.pos+2<i?t.src.charCodeAt(t.pos+2):-1,c!==61&&a!==61&&(a!==32&&a!==10?s--:c!==32&&c!==10&&s++,s<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=o+2,e||(t.push({type:"mark_open",level:t.level++}),t.parser.tokenize(t),t.push({type:"mark_close",level:--t.level})),t.pos=t.posMax+2,t.posMax=i,!0):(t.pos=o,!1)}function RA(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function PA(t,e){var r=e,n,s,i,o=!0,a=!0,c=t.posMax,l=t.src.charCodeAt(e);for(n=e>0?t.src.charCodeAt(e-1):-1;r<c&&t.src.charCodeAt(r)===l;)r++;return r>=c&&(o=!1),i=r-e,i>=4?o=a=!1:(s=r<c?t.src.charCodeAt(r):-1,(s===32||s===10)&&(o=!1),(n===32||n===10)&&(a=!1),l===95&&(RA(n)&&(o=!1),RA(s)&&(a=!1))),{can_open:o,can_close:a,delims:i}}function I_e(t,e){var r,n,s,i,o,a,c,l=t.posMax,p=t.pos,f=t.src.charCodeAt(p);if(f!==95&&f!==42||e)return!1;if(c=PA(t,p),r=c.delims,!c.can_open)return t.pos+=r,e||(t.pending+=t.src.slice(p,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=p+r,a=[r];t.pos<l;){if(t.src.charCodeAt(t.pos)===f){if(c=PA(t,t.pos),n=c.delims,c.can_close){for(i=a.pop(),o=n;i!==o;){if(o<i){a.push(i-o);break}if(o-=i,a.length===0)break;t.pos+=i,i=a.pop()}if(a.length===0){r=i,s=!0;break}t.pos+=n;continue}c.can_open&&a.push(n),t.pos+=n;continue}t.parser.skipToken(t)}return s?(t.posMax=t.pos,t.pos=p+r,e||((r===2||r===3)&&t.push({type:"strong_open",level:t.level++}),(r===1||r===3)&&t.push({type:"em_open",level:t.level++}),t.parser.tokenize(t),(r===1||r===3)&&t.push({type:"em_close",level:--t.level}),(r===2||r===3)&&t.push({type:"strong_close",level:--t.level})),t.pos=t.posMax+r,t.posMax=l,!0):(t.pos=p,!1)}var R_e=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function P_e(t,e){var r,n,s=t.posMax,i=t.pos;if(t.src.charCodeAt(i)!==126||e||i+2>=s||t.level>=t.options.maxNesting)return!1;for(t.pos=i+1;t.pos<s;){if(t.src.charCodeAt(t.pos)===126){r=!0;break}t.parser.skipToken(t)}return!r||i+1===t.pos||(n=t.src.slice(i+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,e||t.push({type:"sub",level:t.level,content:n.replace(R_e,"$1")}),t.pos=t.posMax+1,t.posMax=s,!0)}var k_e=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function j_e(t,e){var r,n,s=t.posMax,i=t.pos;if(t.src.charCodeAt(i)!==94||e||i+2>=s||t.level>=t.options.maxNesting)return!1;for(t.pos=i+1;t.pos<s;){if(t.src.charCodeAt(t.pos)===94){r=!0;break}t.parser.skipToken(t)}return!r||i+1===t.pos||(n=t.src.slice(i+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=i,!1):(t.posMax=t.pos,t.pos=i+1,e||t.push({type:"sup",level:t.level,content:n.replace(k_e,"$1")}),t.pos=t.posMax+1,t.posMax=s,!0)}function N_e(t,e){var r,n,s,i,o,a,c,l,p=!1,f=t.pos,m=t.posMax,d=t.pos,g=t.src.charCodeAt(d);if(g===33&&(p=!0,g=t.src.charCodeAt(++d)),g!==91||t.level>=t.options.maxNesting||(r=d+1,n=zc(t,d),n<0))return!1;if(a=n+1,a<m&&t.src.charCodeAt(a)===40){for(a++;a<m&&(l=t.src.charCodeAt(a),!(l!==32&&l!==10));a++);if(a>=m)return!1;for(d=a,Ek(t,a)?(i=t.linkContent,a=t.pos):i="",d=a;a<m&&(l=t.src.charCodeAt(a),!(l!==32&&l!==10));a++);if(a<m&&d!==a&&Sk(t,a))for(o=t.linkContent,a=t.pos;a<m&&(l=t.src.charCodeAt(a),!(l!==32&&l!==10));a++);else o="";if(a>=m||t.src.charCodeAt(a)!==41)return t.pos=f,!1;a++}else{if(t.linkLevel>0)return!1;for(;a<m&&(l=t.src.charCodeAt(a),!(l!==32&&l!==10));a++);if(a<m&&t.src.charCodeAt(a)===91&&(d=a+1,a=zc(t,a),a>=0?s=t.src.slice(d,a++):a=d-1),s||(typeof s>"u"&&(a=n+1),s=t.src.slice(r,n)),c=t.env.references[wk(s)],!c)return t.pos=f,!1;i=c.href,o=c.title}return e||(t.pos=r,t.posMax=n,p?t.push({type:"image",src:i,title:o,alt:t.src.substr(r,n-r),level:t.level}):(t.push({type:"link_open",href:i,title:o,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=a,t.posMax=m,!0}function M_e(t,e){var r,n,s,i,o=t.posMax,a=t.pos;return a+2>=o||t.src.charCodeAt(a)!==94||t.src.charCodeAt(a+1)!==91||t.level>=t.options.maxNesting||(r=a+2,n=zc(t,a+1),n<0)?!1:(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),s=t.env.footnotes.list.length,t.pos=r,t.posMax=n,t.push({type:"footnote_ref",id:s,level:t.level}),t.linkLevel++,i=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[s]={tokens:t.tokens.splice(i)},t.linkLevel--),t.pos=n+1,t.posMax=o,!0)}function D_e(t,e){var r,n,s,i,o=t.posMax,a=t.pos;if(a+3>o||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(a)!==91||t.src.charCodeAt(a+1)!==94||t.level>=t.options.maxNesting)return!1;for(n=a+2;n<o;n++){if(t.src.charCodeAt(n)===32||t.src.charCodeAt(n)===10)return!1;if(t.src.charCodeAt(n)===93)break}return n===a+2||n>=o||(n++,r=t.src.slice(a+2,n-1),typeof t.env.footnotes.refs[":"+r]>"u")?!1:(e||(t.env.footnotes.list||(t.env.footnotes.list=[]),t.env.footnotes.refs[":"+r]<0?(s=t.env.footnotes.list.length,t.env.footnotes.list[s]={label:r,count:0},t.env.footnotes.refs[":"+r]=s):s=t.env.footnotes.refs[":"+r],i=t.env.footnotes.list[s].count,t.env.footnotes.list[s].count++,t.push({type:"footnote_ref",id:s,subId:i,level:t.level})),t.pos=n,t.posMax=o,!0)}var F_e=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],B_e=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,L_e=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function U_e(t,e){var r,n,s,i,o,a=t.pos;return t.src.charCodeAt(a)!==60||(r=t.src.slice(a),r.indexOf(">")<0)?!1:(n=r.match(L_e),n?F_e.indexOf(n[1].toLowerCase())<0||(i=n[0].slice(1,-1),o=Xv(i),!t.parser.validateLink(i))?!1:(e||(t.push({type:"link_open",href:o,level:t.level}),t.push({type:"text",content:i,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,!0):(s=r.match(B_e),s?(i=s[0].slice(1,-1),o=Xv("mailto:"+i),t.parser.validateLink(o)?(e||(t.push({type:"link_open",href:o,level:t.level}),t.push({type:"text",content:i,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=s[0].length,!0):!1):!1))}function Rd(t,e){return t=t.source,e=e||"",function r(n,s){return n?(s=s.source||s,t=t.replace(n,s),r):new RegExp(t,e)}}var V_e=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,q_e=/[^"'=<>`\x00-\x20]+/,z_e=/'[^']*'/,J_e=/"[^"]*"/,W_e=Rd(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",q_e)("single_quoted",z_e)("double_quoted",J_e)(),H_e=Rd(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",V_e)("attr_value",W_e)(),K_e=Rd(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",H_e)(),G_e=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Y_e=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,X_e=/<[?].*?[?]>/,Z_e=/<![A-Z]+\s+[^>]*>/,Q_e=/<!\[CDATA\[[\s\S]*?\]\]>/,exe=Rd(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",K_e)("close_tag",G_e)("comment",Y_e)("processing",X_e)("declaration",Z_e)("cdata",Q_e)();function txe(t){var e=t|32;return e>=97&&e<=122}function rxe(t,e){var r,n,s,i=t.pos;return!t.options.html||(s=t.posMax,t.src.charCodeAt(i)!==60||i+2>=s)||(r=t.src.charCodeAt(i+1),r!==33&&r!==63&&r!==47&&!txe(r))||(n=t.src.slice(i).match(exe),!n)?!1:(e||t.push({type:"htmltag",content:t.src.slice(i,i+n[0].length),level:t.level}),t.pos+=n[0].length,!0)}var nxe=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,sxe=/^&([a-z][a-z0-9]{1,31});/i;function ixe(t,e){var r,n,s,i=t.pos,o=t.posMax;if(t.src.charCodeAt(i)!==38)return!1;if(i+1<o){if(r=t.src.charCodeAt(i+1),r===35){if(s=t.src.slice(i).match(nxe),s)return e||(n=s[1][0].toLowerCase()==="x"?parseInt(s[1].slice(1),16):parseInt(s[1],10),t.pending+=vk(n)?Yv(n):Yv(65533)),t.pos+=s[0].length,!0}else if(s=t.src.slice(i).match(sxe),s){var a=gk(s[1]);if(s[1]!==a)return e||(t.pending+=a),t.pos+=s[0].length,!0}}return e||(t.pending+="&"),t.pos++,!0}var jg=[["text",__e],["newline",x_e],["escape",A_e],["backticks",O_e],["del",C_e],["ins",$_e],["mark",T_e],["emphasis",I_e],["sub",P_e],["sup",j_e],["links",N_e],["footnote_inline",M_e],["footnote_ref",D_e],["autolink",U_e],["htmltag",rxe],["entity",ixe]];function Pd(){this.ruler=new an;for(var t=0;t<jg.length;t++)this.ruler.push(jg[t][0],jg[t][1]);this.validateLink=oxe}Pd.prototype.skipToken=function(t){var e=this.ruler.getRules(""),r=e.length,n=t.pos,s,i;if((i=t.cacheGet(n))>0){t.pos=i;return}for(s=0;s<r;s++)if(e[s](t,!0)){t.cacheSet(n,t.pos);return}t.pos++,t.cacheSet(n,t.pos)};Pd.prototype.tokenize=function(t){for(var e=this.ruler.getRules(""),r=e.length,n=t.posMax,s,i;t.pos<n;){for(i=0;i<r&&(s=e[i](t,!1),!s);i++);if(s){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};Pd.prototype.parse=function(t,e,r,n){var s=new wo(t,this,e,r,n);this.tokenize(s)};function oxe(t){var e=["vbscript","javascript","file","data"],r=t.trim().toLowerCase();return r=io(r),!(r.indexOf(":")!==-1&&e.indexOf(r.split(":")[0])!==-1)}var axe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},cxe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},lxe={options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}},uxe={default:axe,full:cxe,commonmark:lxe};function Ak(t,e,r){this.src=e,this.env=r,this.options=t.options,this.tokens=[],this.inlineMode=!1,this.inline=t.inline,this.block=t.block,this.renderer=t.renderer,this.typographer=t.typographer}function Zs(t,e){typeof t!="string"&&(e=t,t="default"),e&&e.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
|
|
221
|
+
|
|
222
|
+
import Remarkable from 'remarkable';
|
|
223
|
+
import linkify from 'remarkable/linkify';
|
|
224
|
+
new Remarkable().use(linkify)
|
|
225
|
+
`),this.inline=new Pd,this.block=new cS,this.core=new _k,this.renderer=new aS,this.ruler=new an,this.options={},this.configure(uxe[t]),this.set(e||{})}Zs.prototype.set=function(t){yk(this.options,t)};Zs.prototype.configure=function(t){var e=this;if(!t)throw new Error("Wrong `remarkable` preset, check name/content");t.options&&e.set(t.options),t.components&&Object.keys(t.components).forEach(function(r){t.components[r].rules&&e[r].ruler.enable(t.components[r].rules,!0)})};Zs.prototype.use=function(t,e){return t(this,e),this};Zs.prototype.parse=function(t,e){var r=new Ak(this,t,e);return this.core.process(r),r.tokens};Zs.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Zs.prototype.parseInline=function(t,e){var r=new Ak(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens};Zs.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var pxe="3.16.2";function fxe(t,e){for(var r in e)e.hasOwnProperty(r)&&t[r]===void 0&&(t[r]=e[r]);return t}function hxe(t,e,r){var n;return t.length>e&&(r==null?(r="…",n=3):n=r.length,t=t.substring(0,e-n)+r),t}function kA(t,e){if(Array.prototype.indexOf)return t.indexOf(e);for(var r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1}function Di(t,e){for(var r=t.length-1;r>=0;r--)e(t[r])===!0&&t.splice(r,1)}function dxe(t,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r=[],n=0,s;s=e.exec(t);)r.push(t.substring(n,s.index)),r.push(s[0]),n=s.index+s[0].length;return r.push(t.substring(n)),r}function uS(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var Zv=function(){function t(e){e===void 0&&(e={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=e.tagName||"",this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||""}return t.prototype.setTagName=function(e){return this.tagName=e,this},t.prototype.getTagName=function(){return this.tagName||""},t.prototype.setAttr=function(e,r){var n=this.getAttrs();return n[e]=r,this},t.prototype.getAttr=function(e){return this.getAttrs()[e]},t.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},t.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},t.prototype.setClass=function(e){return this.setAttr("class",e)},t.prototype.addClass=function(e){for(var r=this.getClass(),n=this.whitespaceRegex,s=r?r.split(n):[],i=e.split(n),o;o=i.shift();)kA(s,o)===-1&&s.push(o);return this.getAttrs().class=s.join(" "),this},t.prototype.removeClass=function(e){for(var r=this.getClass(),n=this.whitespaceRegex,s=r?r.split(n):[],i=e.split(n),o;s.length&&(o=i.shift());){var a=kA(s,o);a!==-1&&s.splice(a,1)}return this.getAttrs().class=s.join(" "),this},t.prototype.getClass=function(){return this.getAttrs().class||""},t.prototype.hasClass=function(e){return(" "+this.getClass()+" ").indexOf(" "+e+" ")!==-1},t.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},t.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},t.prototype.getInnerHTML=function(){return this.innerHTML||""},t.prototype.getInnerHtml=function(){return this.getInnerHTML()},t.prototype.toAnchorString=function(){var e=this.getTagName(),r=this.buildAttrsStr();return r=r?" "+r:"",["<",e,r,">",this.getInnerHtml(),"</",e,">"].join("")},t.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var e=this.getAttrs(),r=[];for(var n in e)e.hasOwnProperty(n)&&r.push(n+'="'+e[n]+'"');return r.join(" ")},t}();function mxe(t,e,r){var n,s;r==null?(r="…",s=3,n=8):(s=r.length,n=r.length);var i=function(S){var w={},x=S,I=x.match(/^([a-z]+):\/\//i);return I&&(w.scheme=I[1],x=x.substr(I[0].length)),I=x.match(/^(.*?)(?=(\?|#|\/|$))/i),I&&(w.host=I[1],x=x.substr(I[0].length)),I=x.match(/^\/(.*?)(?=(\?|#|$))/i),I&&(w.path=I[1],x=x.substr(I[0].length)),I=x.match(/^\?(.*?)(?=(#|$))/i),I&&(w.query=I[1],x=x.substr(I[0].length)),I=x.match(/^#(.*?)$/i),I&&(w.fragment=I[1]),w},o=function(S){var w="";return S.scheme&&S.host&&(w+=S.scheme+"://"),S.host&&(w+=S.host),S.path&&(w+="/"+S.path),S.query&&(w+="?"+S.query),S.fragment&&(w+="#"+S.fragment),w},a=function(S,w){var x=w/2,I=Math.ceil(x),T=-1*Math.floor(x),D="";return T<0&&(D=S.substr(T)),S.substr(0,I)+r+D};if(t.length<=e)return t;var c=e-s,l=i(t);if(l.query){var p=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);p&&(l.query=l.query.substr(0,p[1].length),t=o(l))}if(t.length<=e||(l.host&&(l.host=l.host.replace(/^www\./,""),t=o(l)),t.length<=e))return t;var f="";if(l.host&&(f+=l.host),f.length>=c)return l.host.length==e?(l.host.substr(0,e-s)+r).substr(0,c+n):a(f,c).substr(0,c+n);var m="";if(l.path&&(m+="/"+l.path),l.query&&(m+="?"+l.query),m)if((f+m).length>=c){if((f+m).length==e)return(f+m).substr(0,e);var d=c-f.length;return(f+a(m,d)).substr(0,c+n)}else f+=m;if(l.fragment){var g="#"+l.fragment;if((f+g).length>=c){if((f+g).length==e)return(f+g).substr(0,e);var v=c-f.length;return(f+a(g,v)).substr(0,c+n)}else f+=g}if(l.scheme&&l.host){var y=l.scheme+"://";if((f+y).length<c)return(y+f).substr(0,e)}if(f.length<=e)return f;var E="";return c>0&&(E=f.substr(-1*Math.floor(c/2))),(f.substr(0,Math.ceil(c/2))+r+E).substr(0,c+n)}function gxe(t,e,r){if(t.length<=e)return t;var n,s;r==null?(r="…",n=8,s=3):(n=r.length,s=r.length);var i=e-s,o="";return i>0&&(o=t.substr(-1*Math.floor(i/2))),(t.substr(0,Math.ceil(i/2))+r+o).substr(0,i+n)}function yxe(t,e,r){return hxe(t,e,r)}var jA=function(){function t(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||""}return t.prototype.build=function(e){return new Zv({tagName:"a",attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},t.prototype.createAttrs=function(e){var r={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(r.class=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(r.title=e.getAnchorHref()),r},t.prototype.createCssClass=function(e){var r=this.className;if(r){for(var n=[r],s=e.getCssClassSuffixes(),i=0,o=s.length;i<o;i++)n.push(r+"-"+s[i]);return n.join(" ")}else return""},t.prototype.processAnchorText=function(e){return e=this.doTruncate(e),e},t.prototype.doTruncate=function(e){var r=this.truncate;if(!r||!r.length)return e;var n=r.length,s=r.location;return s==="smart"?mxe(e,n):s==="middle"?gxe(e,n):yxe(e,n)},t}(),Ka=function(){function t(e){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return t.prototype.getMatchedText=function(){return this.matchedText},t.prototype.setOffset=function(e){this.offset=e},t.prototype.getOffset=function(){return this.offset},t.prototype.getCssClassSuffixes=function(){return[this.getType()]},t.prototype.buildTag=function(){return this.tagBuilder.build(this)},t}(),Qv=function(t,e){return Qv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var s in n)Object.prototype.hasOwnProperty.call(n,s)&&(r[s]=n[s])},Qv(t,e)};function Cs(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");Qv(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var Wt=function(){return Wt=Object.assign||function(e){for(var r,n=1,s=arguments.length;n<s;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Wt.apply(this,arguments)};var Ok=function(t){Cs(e,t);function e(r){var n=t.call(this,r)||this;return n.email="",n.email=r.email,n}return e.prototype.getType=function(){return"email"},e.prototype.getEmail=function(){return this.email},e.prototype.getAnchorHref=function(){return"mailto:"+this.email},e.prototype.getAnchorText=function(){return this.email},e}(Ka),Ck=function(t){Cs(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="",n.hashtag="",n.serviceName=r.serviceName,n.hashtag=r.hashtag,n}return e.prototype.getType=function(){return"hashtag"},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getHashtag=function(){return this.hashtag},e.prototype.getAnchorHref=function(){var r=this.serviceName,n=this.hashtag;switch(r){case"twitter":return"https://twitter.com/hashtag/"+n;case"facebook":return"https://www.facebook.com/hashtag/"+n;case"instagram":return"https://instagram.com/explore/tags/"+n;case"tiktok":return"https://www.tiktok.com/tag/"+n;default:throw new Error("Unknown service name to point hashtag to: "+r)}},e.prototype.getAnchorText=function(){return"#"+this.hashtag},e}(Ka),$k=function(t){Cs(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.mention="",n.mention=r.mention,n.serviceName=r.serviceName,n}return e.prototype.getType=function(){return"mention"},e.prototype.getMention=function(){return this.mention},e.prototype.getServiceName=function(){return this.serviceName},e.prototype.getAnchorHref=function(){switch(this.serviceName){case"twitter":return"https://twitter.com/"+this.mention;case"instagram":return"https://instagram.com/"+this.mention;case"soundcloud":return"https://soundcloud.com/"+this.mention;case"tiktok":return"https://www.tiktok.com/@"+this.mention;default:throw new Error("Unknown service name to point mention to: "+this.serviceName)}},e.prototype.getAnchorText=function(){return"@"+this.mention},e.prototype.getCssClassSuffixes=function(){var r=t.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&r.push(n),r},e}(Ka),Tk=function(t){Cs(e,t);function e(r){var n=t.call(this,r)||this;return n.number="",n.plusSign=!1,n.number=r.number,n.plusSign=r.plusSign,n}return e.prototype.getType=function(){return"phone"},e.prototype.getPhoneNumber=function(){return this.number},e.prototype.getNumber=function(){return this.getPhoneNumber()},e.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},e.prototype.getAnchorText=function(){return this.matchedText},e}(Ka),Ik=function(t){Cs(e,t);function e(r){var n=t.call(this,r)||this;return n.url="",n.urlMatchType="scheme",n.protocolUrlMatch=!1,n.protocolRelativeMatch=!1,n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.schemePrefixRegex=/^(https?:\/\/)?/i,n.wwwPrefixRegex=/^(https?:\/\/)?(www\.)?/i,n.protocolRelativeRegex=/^\/\//,n.protocolPrepended=!1,n.urlMatchType=r.urlMatchType,n.url=r.url,n.protocolUrlMatch=r.protocolUrlMatch,n.protocolRelativeMatch=r.protocolRelativeMatch,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return e.prototype.getType=function(){return"url"},e.prototype.getUrlMatchType=function(){return this.urlMatchType},e.prototype.getUrl=function(){var r=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(r=this.url="http://"+r,this.protocolPrepended=!0),r},e.prototype.getAnchorHref=function(){var r=this.getUrl();return r.replace(/&/g,"&")},e.prototype.getAnchorText=function(){var r=this.getMatchedText();return this.protocolRelativeMatch&&(r=this.stripProtocolRelativePrefix(r)),this.stripPrefix.scheme&&(r=this.stripSchemePrefix(r)),this.stripPrefix.www&&(r=this.stripWwwPrefix(r)),this.stripTrailingSlash&&(r=this.removeTrailingSlash(r)),this.decodePercentEncoding&&(r=this.removePercentEncoding(r)),r},e.prototype.stripSchemePrefix=function(r){return r.replace(this.schemePrefixRegex,"")},e.prototype.stripWwwPrefix=function(r){return r.replace(this.wwwPrefixRegex,"$1")},e.prototype.stripProtocolRelativePrefix=function(r){return r.replace(this.protocolRelativeRegex,"")},e.prototype.removeTrailingSlash=function(r){return r.charAt(r.length-1)==="/"&&(r=r.slice(0,-1)),r},e.prototype.removePercentEncoding=function(r){var n=r.replace(/%22/gi,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(n)}catch{return n}},e}(Ka),Ga=function(){function t(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder}return t}(),Ng=/[A-Za-z]/,vxe=/[\d]/,bxe=/[\D]/,Fi=/\s/,Mg=/['"]/,Exe=/[\x00-\x1F\x7F]/,Rk=/A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC/.source,Sxe=/\u2700-\u27bf\udde6-\uddff\ud800-\udbff\udc00-\udfff\ufe0e\ufe0f\u0300-\u036f\ufe20-\ufe23\u20d0-\u20f0\ud83c\udffb-\udfff\u200d\u3299\u3297\u303d\u3030\u24c2\ud83c\udd70-\udd71\udd7e-\udd7f\udd8e\udd91-\udd9a\udde6-\uddff\ude01-\ude02\ude1a\ude2f\ude32-\ude3a\ude50-\ude51\u203c\u2049\u25aa-\u25ab\u25b6\u25c0\u25fb-\u25fe\u00a9\u00ae\u2122\u2139\udc04\u2600-\u26FF\u2b05\u2b06\u2b07\u2b1b\u2b1c\u2b50\u2b55\u231a\u231b\u2328\u23cf\u23e9-\u23f3\u23f8-\u23fa\udccf\u2935\u2934\u2190-\u21ff/.source,wxe=/\u0300-\u036F\u0483-\u0489\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u065F\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u0711\u0730-\u074A\u07A6-\u07B0\u07EB-\u07F3\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D4-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A70\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0C00-\u0C03\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0D01-\u0D03\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0F18\u0F19\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F\u109A-\u109D\u135D-\u135F\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u180B-\u180D\u1885\u1886\u18A9\u1920-\u192B\u1930-\u193B\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F\u1AB0-\u1ABE\u1B00-\u1B04\u1B34-\u1B44\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BE6-\u1BF3\u1C24-\u1C37\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF8\u1CF9\u1DC0-\u1DF5\u1DFB-\u1DFF\u20D0-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA66F-\uA672\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8E0-\uA8F1\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9E5\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F/.source,Pk=Rk+Sxe+wxe,bf=/0-9\u0660-\u0669\u06F0-\u06F9\u07C0-\u07C9\u0966-\u096F\u09E6-\u09EF\u0A66-\u0A6F\u0AE6-\u0AEF\u0B66-\u0B6F\u0BE6-\u0BEF\u0C66-\u0C6F\u0CE6-\u0CEF\u0D66-\u0D6F\u0DE6-\u0DEF\u0E50-\u0E59\u0ED0-\u0ED9\u0F20-\u0F29\u1040-\u1049\u1090-\u1099\u17E0-\u17E9\u1810-\u1819\u1946-\u194F\u19D0-\u19D9\u1A80-\u1A89\u1A90-\u1A99\u1B50-\u1B59\u1BB0-\u1BB9\u1C40-\u1C49\u1C50-\u1C59\uA620-\uA629\uA8D0-\uA8D9\uA900-\uA909\uA9D0-\uA9D9\uA9F0-\uA9F9\uAA50-\uAA59\uABF0-\uABF9\uFF10-\uFF19/.source,_xe=Pk+bf,Kt=Pk+bf,vc=new RegExp("[".concat(Kt,"]")),xxe="(?:["+bf+"]{1,3}\\.){3}["+bf+"]{1,3}",Axe="["+Kt+"](?:["+Kt+"\\-_]{0,61}["+Kt+"])?",NA=function(t){return"(?=("+Axe+"))\\"+t},Dg=function(t){return"(?:"+NA(t)+"(?:\\."+NA(t+1)+"){0,126}|"+xxe+")"},sp=vc,kk=/(?:xn--vermgensberatung-pwb|xn--vermgensberater-ctb|xn--clchc0ea0b2g2a9gcd|xn--w4r85el8fhu5dnra|northwesternmutual|travelersinsurance|vermögensberatung|xn--5su34j936bgsg|xn--bck1b9a5dre4c|xn--mgbah1a3hjkrd|xn--mgbai9azgqp6j|xn--mgberp4a5d4ar|xn--xkc2dl3a5ee0h|vermögensberater|xn--fzys8d69uvgm|xn--mgba7c0bbn0a|xn--mgbcpq6gpa1a|xn--xkc2al3hye2a|americanexpress|kerryproperties|sandvikcoromant|xn--i1b6b1a6a2e|xn--kcrx77d1x4a|xn--lgbbat1ad8j|xn--mgba3a4f16a|xn--mgbaakc7dvf|xn--mgbc0a9azcg|xn--nqv7fs00ema|americanfamily|bananarepublic|cancerresearch|cookingchannel|kerrylogistics|weatherchannel|xn--54b7fta0cc|xn--6qq986b3xl|xn--80aqecdr1a|xn--b4w605ferd|xn--fiq228c5hs|xn--h2breg3eve|xn--jlq480n2rg|xn--jlq61u9w7b|xn--mgba3a3ejt|xn--mgbaam7a8h|xn--mgbayh7gpa|xn--mgbbh1a71e|xn--mgbca7dzdo|xn--mgbi4ecexp|xn--mgbx4cd0ab|xn--rvc1e0am3e|international|lifeinsurance|travelchannel|wolterskluwer|xn--cckwcxetd|xn--eckvdtc9d|xn--fpcrj9c3d|xn--fzc2c9e2c|xn--h2brj9c8c|xn--tiq49xqyj|xn--yfro4i67o|xn--ygbi2ammx|construction|lplfinancial|scholarships|versicherung|xn--3e0b707e|xn--45br5cyl|xn--4dbrk0ce|xn--80adxhks|xn--80asehdb|xn--8y0a063a|xn--gckr3f0f|xn--mgb9awbf|xn--mgbab2bd|xn--mgbgu82a|xn--mgbpl2fh|xn--mgbt3dhd|xn--mk1bu44c|xn--ngbc5azd|xn--ngbe9e0a|xn--ogbpf8fl|xn--qcka1pmc|accountants|barclaycard|blackfriday|blockbuster|bridgestone|calvinklein|contractors|creditunion|engineering|enterprises|foodnetwork|investments|kerryhotels|lamborghini|motorcycles|olayangroup|photography|playstation|productions|progressive|redumbrella|williamhill|xn--11b4c3d|xn--1ck2e1b|xn--1qqw23a|xn--2scrj9c|xn--3bst00m|xn--3ds443g|xn--3hcrj9c|xn--42c2d9a|xn--45brj9c|xn--55qw42g|xn--6frz82g|xn--80ao21a|xn--9krt00a|xn--cck2b3b|xn--czr694b|xn--d1acj3b|xn--efvy88h|xn--fct429k|xn--fjq720a|xn--flw351e|xn--g2xx48c|xn--gecrj9c|xn--gk3at1e|xn--h2brj9c|xn--hxt814e|xn--imr513n|xn--j6w193g|xn--jvr189m|xn--kprw13d|xn--kpry57d|xn--mgbbh1a|xn--mgbtx2b|xn--mix891f|xn--nyqy26a|xn--otu796d|xn--pgbs0dh|xn--q9jyb4c|xn--rhqv96g|xn--rovu88b|xn--s9brj9c|xn--ses554g|xn--t60b56a|xn--vuq861b|xn--w4rs40l|xn--xhq521b|xn--zfr164b|சிங்கப்பூர்|accountant|apartments|associates|basketball|bnpparibas|boehringer|capitalone|consulting|creditcard|cuisinella|eurovision|extraspace|foundation|healthcare|immobilien|industries|management|mitsubishi|nextdirect|properties|protection|prudential|realestate|republican|restaurant|schaeffler|tatamotors|technology|university|vlaanderen|volkswagen|xn--30rr7y|xn--3pxu8k|xn--45q11c|xn--4gbrim|xn--55qx5d|xn--5tzm5g|xn--80aswg|xn--90a3ac|xn--9dbq2a|xn--9et52u|xn--c2br7g|xn--cg4bki|xn--czrs0t|xn--czru2d|xn--fiq64b|xn--fiqs8s|xn--fiqz9s|xn--io0a7i|xn--kput3i|xn--mxtq1m|xn--o3cw4h|xn--pssy2u|xn--q7ce6a|xn--unup4y|xn--wgbh1c|xn--wgbl6a|xn--y9a3aq|accenture|alfaromeo|allfinanz|amsterdam|analytics|aquarelle|barcelona|bloomberg|christmas|community|directory|education|equipment|fairwinds|financial|firestone|fresenius|frontdoor|furniture|goldpoint|hisamitsu|homedepot|homegoods|homesense|institute|insurance|kuokgroup|lancaster|landrover|lifestyle|marketing|marshalls|melbourne|microsoft|panasonic|passagens|pramerica|richardli|shangrila|solutions|statebank|statefarm|stockholm|travelers|vacations|xn--90ais|xn--c1avg|xn--d1alf|xn--e1a4c|xn--fhbei|xn--j1aef|xn--j1amh|xn--l1acc|xn--ngbrx|xn--nqv7f|xn--p1acf|xn--qxa6a|xn--tckwe|xn--vhquv|yodobashi|موريتانيا|abudhabi|airforce|allstate|attorney|barclays|barefoot|bargains|baseball|boutique|bradesco|broadway|brussels|builders|business|capetown|catering|catholic|cipriani|cityeats|cleaning|clinique|clothing|commbank|computer|delivery|deloitte|democrat|diamonds|discount|discover|download|engineer|ericsson|etisalat|exchange|feedback|fidelity|firmdale|football|frontier|goodyear|grainger|graphics|guardian|hdfcbank|helsinki|holdings|hospital|infiniti|ipiranga|istanbul|jpmorgan|lighting|lundbeck|marriott|maserati|mckinsey|memorial|merckmsd|mortgage|observer|partners|pharmacy|pictures|plumbing|property|redstone|reliance|saarland|samsclub|security|services|shopping|showtime|softbank|software|stcgroup|supplies|training|vanguard|ventures|verisign|woodside|xn--90ae|xn--node|xn--p1ai|xn--qxam|yokohama|السعودية|abogado|academy|agakhan|alibaba|android|athleta|auction|audible|auspost|avianca|banamex|bauhaus|bentley|bestbuy|booking|brother|bugatti|capital|caravan|careers|channel|charity|chintai|citadel|clubmed|college|cologne|comcast|company|compare|contact|cooking|corsica|country|coupons|courses|cricket|cruises|dentist|digital|domains|exposed|express|farmers|fashion|ferrari|ferrero|finance|fishing|fitness|flights|florist|flowers|forsale|frogans|fujitsu|gallery|genting|godaddy|grocery|guitars|hamburg|hangout|hitachi|holiday|hosting|hoteles|hotmail|hyundai|ismaili|jewelry|juniper|kitchen|komatsu|lacaixa|lanxess|lasalle|latrobe|leclerc|limited|lincoln|markets|monster|netbank|netflix|network|neustar|okinawa|oldnavy|organic|origins|philips|pioneer|politie|realtor|recipes|rentals|reviews|rexroth|samsung|sandvik|schmidt|schwarz|science|shiksha|singles|staples|storage|support|surgery|systems|temasek|theater|theatre|tickets|tiffany|toshiba|trading|walmart|wanggou|watches|weather|website|wedding|whoswho|windows|winners|xfinity|yamaxun|youtube|zuerich|католик|اتصالات|البحرين|الجزائر|العليان|پاکستان|كاثوليك|இந்தியா|abarth|abbott|abbvie|africa|agency|airbus|airtel|alipay|alsace|alstom|amazon|anquan|aramco|author|bayern|beauty|berlin|bharti|bostik|boston|broker|camera|career|casino|center|chanel|chrome|church|circle|claims|clinic|coffee|comsec|condos|coupon|credit|cruise|dating|datsun|dealer|degree|dental|design|direct|doctor|dunlop|dupont|durban|emerck|energy|estate|events|expert|family|flickr|futbol|gallup|garden|george|giving|global|google|gratis|health|hermes|hiphop|hockey|hotels|hughes|imamat|insure|intuit|jaguar|joburg|juegos|kaufen|kinder|kindle|kosher|lancia|latino|lawyer|lefrak|living|locker|london|luxury|madrid|maison|makeup|market|mattel|mobile|monash|mormon|moscow|museum|mutual|nagoya|natura|nissan|nissay|norton|nowruz|office|olayan|online|oracle|orange|otsuka|pfizer|photos|physio|pictet|quebec|racing|realty|reisen|repair|report|review|rocher|rogers|ryukyu|safety|sakura|sanofi|school|schule|search|secure|select|shouji|soccer|social|stream|studio|supply|suzuki|swatch|sydney|taipei|taobao|target|tattoo|tennis|tienda|tjmaxx|tkmaxx|toyota|travel|unicom|viajes|viking|villas|virgin|vision|voting|voyage|vuelos|walter|webcam|xihuan|yachts|yandex|zappos|москва|онлайн|ابوظبي|ارامكو|الاردن|المغرب|امارات|فلسطين|مليسيا|भारतम्|இலங்கை|ファッション|actor|adult|aetna|amfam|amica|apple|archi|audio|autos|azure|baidu|beats|bible|bingo|black|boats|bosch|build|canon|cards|chase|cheap|cisco|citic|click|cloud|coach|codes|crown|cymru|dabur|dance|deals|delta|drive|dubai|earth|edeka|email|epson|faith|fedex|final|forex|forum|gallo|games|gifts|gives|glass|globo|gmail|green|gripe|group|gucci|guide|homes|honda|horse|house|hyatt|ikano|irish|jetzt|koeln|kyoto|lamer|lease|legal|lexus|lilly|linde|lipsy|loans|locus|lotte|lotto|macys|mango|media|miami|money|movie|music|nexus|nikon|ninja|nokia|nowtv|omega|osaka|paris|parts|party|phone|photo|pizza|place|poker|praxi|press|prime|promo|quest|radio|rehab|reise|ricoh|rocks|rodeo|rugby|salon|sener|seven|sharp|shell|shoes|skype|sling|smart|smile|solar|space|sport|stada|store|study|style|sucks|swiss|tatar|tires|tirol|tmall|today|tokyo|tools|toray|total|tours|trade|trust|tunes|tushu|ubank|vegas|video|vodka|volvo|wales|watch|weber|weibo|works|world|xerox|yahoo|ישראל|ایران|بازار|بھارت|سودان|سورية|همراه|भारोत|संगठन|বাংলা|భారత్|ഭാരതം|嘉里大酒店|aarp|able|adac|aero|akdn|ally|amex|arab|army|arpa|arte|asda|asia|audi|auto|baby|band|bank|bbva|beer|best|bike|bing|blog|blue|bofa|bond|book|buzz|cafe|call|camp|care|cars|casa|case|cash|cbre|cern|chat|citi|city|club|cool|coop|cyou|data|date|dclk|deal|dell|desi|diet|dish|docs|dvag|erni|fage|fail|fans|farm|fast|fiat|fido|film|fire|fish|flir|food|ford|free|fund|game|gbiz|gent|ggee|gift|gmbh|gold|golf|goog|guge|guru|hair|haus|hdfc|help|here|hgtv|host|hsbc|icbc|ieee|imdb|immo|info|itau|java|jeep|jobs|jprs|kddi|kids|kiwi|kpmg|kred|land|lego|lgbt|lidl|life|like|limo|link|live|loan|loft|love|ltda|luxe|maif|meet|meme|menu|mini|mint|mobi|moda|moto|name|navy|news|next|nico|nike|ollo|open|page|pars|pccw|pics|ping|pink|play|plus|pohl|porn|post|prod|prof|qpon|read|reit|rent|rest|rich|room|rsvp|ruhr|safe|sale|sarl|save|saxo|scot|seat|seek|sexy|shaw|shia|shop|show|silk|sina|site|skin|sncf|sohu|song|sony|spot|star|surf|talk|taxi|team|tech|teva|tiaa|tips|town|toys|tube|vana|visa|viva|vivo|vote|voto|wang|weir|wien|wiki|wine|work|xbox|yoga|zara|zero|zone|дети|сайт|بارت|بيتك|ڀارت|تونس|شبكة|عراق|عمان|موقع|भारत|ভারত|ভাৰত|ਭਾਰਤ|ભારત|ଭାରତ|ಭಾರತ|ලංකා|アマゾン|グーグル|クラウド|ポイント|组织机构|電訊盈科|香格里拉|aaa|abb|abc|aco|ads|aeg|afl|aig|anz|aol|app|art|aws|axa|bar|bbc|bbt|bcg|bcn|bet|bid|bio|biz|bms|bmw|bom|boo|bot|box|buy|bzh|cab|cal|cam|car|cat|cba|cbn|cbs|ceo|cfa|cfd|com|cpa|crs|dad|day|dds|dev|dhl|diy|dnp|dog|dot|dtv|dvr|eat|eco|edu|esq|eus|fan|fit|fly|foo|fox|frl|ftr|fun|fyi|gal|gap|gay|gdn|gea|gle|gmo|gmx|goo|gop|got|gov|hbo|hiv|hkt|hot|how|ibm|ice|icu|ifm|inc|ing|ink|int|ist|itv|jcb|jio|jll|jmp|jnj|jot|joy|kfh|kia|kim|kpn|krd|lat|law|lds|llc|llp|lol|lpl|ltd|man|map|mba|med|men|mil|mit|mlb|mls|mma|moe|moi|mom|mov|msd|mtn|mtr|nab|nba|nec|net|new|nfl|ngo|nhk|now|nra|nrw|ntt|nyc|obi|one|ong|onl|ooo|org|ott|ovh|pay|pet|phd|pid|pin|pnc|pro|pru|pub|pwc|red|ren|ril|rio|rip|run|rwe|sap|sas|sbi|sbs|sca|scb|ses|sew|sex|sfr|ski|sky|soy|spa|srl|stc|tab|tax|tci|tdk|tel|thd|tjx|top|trv|tui|tvs|ubs|uno|uol|ups|vet|vig|vin|vip|wed|win|wme|wow|wtc|wtf|xin|xxx|xyz|you|yun|zip|бел|ком|қаз|мкд|мон|орг|рус|срб|укр|հայ|קום|عرب|قطر|كوم|مصر|कॉम|नेट|คอม|ไทย|ລາວ|ストア|セール|みんな|中文网|亚马逊|天主教|我爱你|新加坡|淡马锡|诺基亚|飞利浦|ac|ad|ae|af|ag|ai|al|am|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cu|cv|cw|cx|cy|cz|de|dj|dk|dm|do|dz|ec|ee|eg|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|za|zm|zw|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,Oxe=new RegExp("[".concat(Kt,"!#$%&'*+/=?^_`{|}~-]")),Cxe=new RegExp("^".concat(kk.source,"$")),MA=function(t){Cs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.localPartCharRegex=Oxe,r.strictTldRegex=Cxe,r}return e.prototype.parseMatches=function(r){for(var n=this.tagBuilder,s=this.localPartCharRegex,i=this.strictTldRegex,o=[],a=r.length,c=new ip,l={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},p=0,f=0,m=c;p<a;){var d=r.charAt(p);switch(f){case 0:g(d);break;case 1:v(r.charAt(p-1),d);break;case 2:y(d);break;case 3:E(d);break;case 4:S(d);break;case 5:w(d);break;case 6:x(d);break;case 7:I(d);break;default:uS(f)}p++}return B(),o;function g(P){P==="m"?T(1):s.test(P)&&T()}function v(P,Z){P===":"?s.test(Z)?(f=2,m=new ip(Wt(Wt({},m),{hasMailtoPrefix:!0}))):D():l[P]===Z||(s.test(Z)?f=2:Z==="."?f=3:Z==="@"?f=4:D())}function y(P){P==="."?f=3:P==="@"?f=4:s.test(P)||D()}function E(P){P==="."||P==="@"?D():s.test(P)?f=2:D()}function S(P){sp.test(P)?f=5:D()}function w(P){P==="."?f=7:P==="-"?f=6:sp.test(P)||B()}function x(P){P==="-"||P==="."?B():sp.test(P)?f=5:B()}function I(P){P==="."||P==="-"?B():sp.test(P)?(f=5,m=new ip(Wt(Wt({},m),{hasDomainDot:!0}))):B()}function T(P){P===void 0&&(P=2),f=P,m=new ip({idx:p})}function D(){f=0,m=c}function B(){if(m.hasDomainDot){var P=r.slice(m.idx,p);/[-.]$/.test(P)&&(P=P.slice(0,-1));var Z=m.hasMailtoPrefix?P.slice(7):P;V(Z)&&o.push(new Ok({tagBuilder:n,matchedText:P,offset:m.idx,email:Z}))}D();function V(J){var F=J.split(".").pop()||"",Q=F.toLowerCase(),se=i.test(Q);return se}}},e}(Ga),ip=function(){function t(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot}return t}(),$xe=function(){function t(){}return t.isValid=function(e,r){return!(r&&!this.isValidUriScheme(r)||this.urlMatchDoesNotHaveProtocolOrDot(e,r)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,r)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},t.isValidIpAddress=function(e){var r=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source),n=e.match(r);return n!==null},t.containsMultipleDots=function(e){var r=e;return this.hasFullProtocolRegex.test(e)&&(r=e.split("://")[1]),r.split("/")[0].indexOf("..")>-1},t.isValidUriScheme=function(e){var r=e.match(this.uriSchemeRegex),n=r&&r[0].toLowerCase();return n!=="javascript:"&&n!=="vbscript:"},t.urlMatchDoesNotHaveProtocolOrDot=function(e,r){return!!e&&(!r||!this.hasFullProtocolRegex.test(r))&&e.indexOf(".")===-1},t.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,r){return e&&r?!this.hasFullProtocolRegex.test(r)&&!this.hasWordCharAfterProtocolRegex.test(e):!1},t.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,t.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,t.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+Rk+"]"),t.ipRegex=/[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?\.[0-9][0-9]?[0-9]?(:[0-9]*)?\/?$/,t}(),Txe=function(){var t=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,e=/(?:www\.)/,r=new RegExp("[/?#](?:["+Kt+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+Kt+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",t.source,Dg(2),")","|","(","(//)?",e.source,Dg(6),")","|","(","(//)?",Dg(10)+"\\.",kk.source,"(?![-"+_xe+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")}(),Ixe=new RegExp("["+Kt+"]"),DA=function(t){Cs(e,t);function e(r){var n=t.call(this,r)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=Txe,n.wordCharRegExp=Ixe,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return e.prototype.parseMatches=function(r){for(var n=this.matcherRegex,s=this.stripPrefix,i=this.stripTrailingSlash,o=this.decodePercentEncoding,a=this.tagBuilder,c=[],l,p=function(){var m=l[0],d=l[1],g=l[4],v=l[5],y=l[9],E=l.index,S=v||y,w=r.charAt(E-1);if(!$xe.isValid(m,d)||E>0&&w==="@"||E>0&&S&&f.wordCharRegExp.test(w))return"continue";if(/\?$/.test(m)&&(m=m.substr(0,m.length-1)),f.matchHasUnbalancedClosingParen(m))m=m.substr(0,m.length-1);else{var x=f.matchHasInvalidCharAfterTld(m,d);x>-1&&(m=m.substr(0,x))}var I=["http://","https://"].find(function(P){return!!d&&d.indexOf(P)!==-1});if(I){var T=m.indexOf(I);m=m.substr(T),d=d.substr(T),E=E+T}var D=d?"scheme":g?"www":"tld",B=!!d;c.push(new Ik({tagBuilder:a,matchedText:m,offset:E,urlMatchType:D,url:m,protocolUrlMatch:B,protocolRelativeMatch:!!S,stripPrefix:s,stripTrailingSlash:i,decodePercentEncoding:o}))},f=this;(l=n.exec(r))!==null;)p();return c},e.prototype.matchHasUnbalancedClosingParen=function(r){var n=r.charAt(r.length-1),s;if(n===")")s="(";else if(n==="]")s="[";else if(n==="}")s="{";else return!1;for(var i=0,o=0,a=r.length-1;o<a;o++){var c=r.charAt(o);c===s?i++:c===n&&(i=Math.max(i-1,0))}return i===0},e.prototype.matchHasInvalidCharAfterTld=function(r,n){if(!r)return-1;var s=0;n&&(s=r.indexOf(":"),r=r.slice(s));var i=new RegExp("^((.?//)?[-."+Kt+"]*[-"+Kt+"]\\.[-"+Kt+"]+)"),o=i.exec(r);return o===null?-1:(s+=o[1].length,r=r.slice(o[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(r)?s:-1)},e}(Ga),FA=new RegExp("[_".concat(Kt,"]")),BA=function(t){Cs(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.serviceName=r.serviceName,n}return e.prototype.parseMatches=function(r){for(var n=this.tagBuilder,s=this.serviceName,i=[],o=r.length,a=0,c=-1,l=0;a<o;){var p=r.charAt(a);switch(l){case 0:f(p);break;case 1:m(p);break;case 2:d(p);break;case 3:g(p);break;default:uS(l)}a++}return v(),i;function f(y){y==="#"?(l=2,c=a):vc.test(y)&&(l=1)}function m(y){vc.test(y)||(l=0)}function d(y){FA.test(y)?l=3:vc.test(y)?l=1:l=0}function g(y){FA.test(y)||(v(),c=-1,vc.test(y)?l=1:l=0)}function v(){if(c>-1&&a-c<=140){var y=r.slice(c,a),E=new Ck({tagBuilder:n,matchedText:y,offset:c,serviceName:s,hashtag:y.slice(1)});i.push(E)}}},e}(Ga),Rxe=["twitter","facebook","instagram","tiktok"],Pxe=/(?:(?:(?:(\+)?\d{1,3}[-\040.]?)?\(?\d{3}\)?[-\040.]?\d{3}[-\040.]?\d{4})|(?:(\+)(?:9[976]\d|8[987530]\d|6[987]\d|5[90]\d|42\d|3[875]\d|2[98654321]\d|9[8543210]|8[6421]|6[6543210]|5[87654321]|4[987654310]|3[9643210]|2[70]|7|1)[-\040.]?(?:\d[-\040.]?){6,12}\d+))([,;]+[0-9]+#?)*/,kxe=/(0([1-9]{1}-?[1-9]\d{3}|[1-9]{2}-?\d{3}|[1-9]{2}\d{1}-?\d{2}|[1-9]{2}\d{2}-?\d{1})-?\d{4}|0[789]0-?\d{4}-?\d{4}|050-?\d{4}-?\d{4})/,jxe=new RegExp("".concat(Pxe.source,"|").concat(kxe.source),"g"),LA=function(t){Cs(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.matcherRegex=jxe,r}return e.prototype.parseMatches=function(r){for(var n=this.matcherRegex,s=this.tagBuilder,i=[],o;(o=n.exec(r))!==null;){var a=o[0],c=a.replace(/[^0-9,;#]/g,""),l=!!(o[1]||o[2]),p=o.index==0?"":r.substr(o.index-1,1),f=r.substr(o.index+a.length,1),m=!p.match(/\d/)&&!f.match(/\d/);this.testMatch(o[3])&&this.testMatch(a)&&m&&i.push(new Tk({tagBuilder:s,matchedText:a,offset:o.index,number:c,plusSign:l}))}return i},e.prototype.testMatch=function(r){return bxe.test(r)},e}(Ga),Nxe=new RegExp("@[_".concat(Kt,"]{1,50}(?![_").concat(Kt,"])"),"g"),Mxe=new RegExp("@[_.".concat(Kt,"]{1,30}(?![_").concat(Kt,"])"),"g"),Dxe=new RegExp("@[-_.".concat(Kt,"]{1,50}(?![-_").concat(Kt,"])"),"g"),Fxe=new RegExp("@[_.".concat(Kt,"]{1,23}[_").concat(Kt,"](?![_").concat(Kt,"])"),"g"),Bxe=new RegExp("[^"+Kt+"]"),UA=function(t){Cs(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:Nxe,instagram:Mxe,soundcloud:Dxe,tiktok:Fxe},n.nonWordCharRegex=Bxe,n.serviceName=r.serviceName,n}return e.prototype.parseMatches=function(r){var n=this.serviceName,s=this.matcherRegexes[this.serviceName],i=this.nonWordCharRegex,o=this.tagBuilder,a=[],c;if(!s)return a;for(;(c=s.exec(r))!==null;){var l=c.index,p=r.charAt(l-1);if(l===0||i.test(p)){var f=c[0].replace(/\.+$/g,""),m=f.slice(1);a.push(new $k({tagBuilder:o,matchedText:f,offset:l,serviceName:n,mention:m}))}}return a},e}(Ga);function Lxe(t,e){for(var r=e.onOpenTag,n=e.onCloseTag,s=e.onText,i=e.onComment,o=e.onDoctype,a=new is,c=0,l=t.length,p=0,f=0,m=a;c<l;){var d=t.charAt(c);switch(p){case 0:g(d);break;case 1:v(d);break;case 2:E(d);break;case 3:y(d);break;case 4:S(d);break;case 5:w(d);break;case 6:x(d);break;case 7:I(d);break;case 8:T(d);break;case 9:D(d);break;case 10:B(d);break;case 11:P(d);break;case 12:Z(d);break;case 13:V();break;case 14:J(d);break;case 15:F(d);break;case 16:Q(d);break;case 17:se(d);break;case 18:re(d);break;case 19:ce(d);break;case 20:ue(d);break;default:uS(p)}c++}f<c&&pe();function g(q){q==="<"&&G()}function v(q){q==="!"?p=13:q==="/"?(p=2,m=new is(Wt(Wt({},m),{isClosing:!0}))):q==="<"?G():Ng.test(q)?(p=3,m=new is(Wt(Wt({},m),{isOpening:!0}))):(p=0,m=a)}function y(q){Fi.test(q)?(m=new is(Wt(Wt({},m),{name:X()})),p=4):q==="<"?G():q==="/"?(m=new is(Wt(Wt({},m),{name:X()})),p=12):q===">"?(m=new is(Wt(Wt({},m),{name:X()})),ie()):!Ng.test(q)&&!vxe.test(q)&&q!==":"&&oe()}function E(q){q===">"?oe():Ng.test(q)?p=3:oe()}function S(q){Fi.test(q)||(q==="/"?p=12:q===">"?ie():q==="<"?G():q==="="||Mg.test(q)||Exe.test(q)?oe():p=5)}function w(q){Fi.test(q)?p=6:q==="/"?p=12:q==="="?p=7:q===">"?ie():q==="<"?G():Mg.test(q)&&oe()}function x(q){Fi.test(q)||(q==="/"?p=12:q==="="?p=7:q===">"?ie():q==="<"?G():Mg.test(q)?oe():p=5)}function I(q){Fi.test(q)||(q==='"'?p=8:q==="'"?p=9:/[>=`]/.test(q)?oe():q==="<"?G():p=10)}function T(q){q==='"'&&(p=11)}function D(q){q==="'"&&(p=11)}function B(q){Fi.test(q)?p=4:q===">"?ie():q==="<"&&G()}function P(q){Fi.test(q)?p=4:q==="/"?p=12:q===">"?ie():q==="<"?G():(p=4,le())}function Z(q){q===">"?(m=new is(Wt(Wt({},m),{isClosing:!0})),ie()):p=4}function V(q){t.substr(c,2)==="--"?(c+=2,m=new is(Wt(Wt({},m),{type:"comment"})),p=14):t.substr(c,7).toUpperCase()==="DOCTYPE"?(c+=7,m=new is(Wt(Wt({},m),{type:"doctype"})),p=20):oe()}function J(q){q==="-"?p=15:q===">"?oe():p=16}function F(q){q==="-"?p=18:q===">"?oe():p=16}function Q(q){q==="-"&&(p=17)}function se(q){q==="-"?p=18:p=16}function re(q){q===">"?ie():q==="!"?p=19:q==="-"||(p=16)}function ce(q){q==="-"?p=17:q===">"?ie():p=16}function ue(q){q===">"?ie():q==="<"&&G()}function oe(){p=0,m=a}function G(){p=1,m=new is({idx:c})}function ie(){var q=t.slice(f,m.idx);q&&s(q,f),m.type==="comment"?i(m.idx):m.type==="doctype"?o(m.idx):(m.isOpening&&r(m.name,m.idx),m.isClosing&&n(m.name,m.idx)),oe(),f=c+1}function pe(){var q=t.slice(f,c);s(q,f),f=c+1}function X(){var q=m.idx+(m.isClosing?2:1);return t.slice(q,c).toLowerCase()}function le(){c--}}var is=function(){function t(e){e===void 0&&(e={}),this.idx=e.idx!==void 0?e.idx:-1,this.type=e.type||"tag",this.name=e.name||"",this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return t}(),Uxe=function(){function t(e){e===void 0&&(e={}),this.version=t.version,this.urls={},this.email=!0,this.phone=!0,this.hashtag=!1,this.mention=!1,this.newWindow=!0,this.stripPrefix={scheme:!0,www:!0},this.stripTrailingSlash=!0,this.decodePercentEncoding=!0,this.truncate={length:0,location:"end"},this.className="",this.replaceFn=null,this.context=void 0,this.sanitizeHtml=!1,this.matchers=null,this.tagBuilder=null,this.urls=this.normalizeUrlsCfg(e.urls),this.email=typeof e.email=="boolean"?e.email:this.email,this.phone=typeof e.phone=="boolean"?e.phone:this.phone,this.hashtag=e.hashtag||this.hashtag,this.mention=e.mention||this.mention,this.newWindow=typeof e.newWindow=="boolean"?e.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(e.stripPrefix),this.stripTrailingSlash=typeof e.stripTrailingSlash=="boolean"?e.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=typeof e.decodePercentEncoding=="boolean"?e.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=e.sanitizeHtml||!1;var r=this.mention;if(r!==!1&&["twitter","instagram","soundcloud","tiktok"].indexOf(r)===-1)throw new Error("invalid `mention` cfg '".concat(r,"' - see docs"));var n=this.hashtag;if(n!==!1&&Rxe.indexOf(n)===-1)throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate=this.normalizeTruncateCfg(e.truncate),this.className=e.className||this.className,this.replaceFn=e.replaceFn||this.replaceFn,this.context=e.context||this}return t.link=function(e,r){var n=new t(r);return n.link(e)},t.parse=function(e,r){var n=new t(r);return n.parse(e)},t.prototype.normalizeUrlsCfg=function(e){return e==null&&(e=!0),typeof e=="boolean"?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:typeof e.schemeMatches=="boolean"?e.schemeMatches:!0,wwwMatches:typeof e.wwwMatches=="boolean"?e.wwwMatches:!0,tldMatches:typeof e.tldMatches=="boolean"?e.tldMatches:!0}},t.prototype.normalizeStripPrefixCfg=function(e){return e==null&&(e=!0),typeof e=="boolean"?{scheme:e,www:e}:{scheme:typeof e.scheme=="boolean"?e.scheme:!0,www:typeof e.www=="boolean"?e.www:!0}},t.prototype.normalizeTruncateCfg=function(e){return typeof e=="number"?{length:e,location:"end"}:fxe(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},t.prototype.parse=function(e){var r=this,n=["a","style","script"],s=0,i=[];return Lxe(e,{onOpenTag:function(o){n.indexOf(o)>=0&&s++},onText:function(o,a){if(s===0){var c=/( | |<|<|>|>|"|"|')/gi,l=dxe(o,c),p=a;l.forEach(function(f,m){if(m%2===0){var d=r.parseText(f,p);i.push.apply(i,d)}p+=f.length})}},onCloseTag:function(o){n.indexOf(o)>=0&&(s=Math.max(s-1,0))},onComment:function(o){},onDoctype:function(o){}}),i=this.compactMatches(i),i=this.removeUnwantedMatches(i),i},t.prototype.compactMatches=function(e){e.sort(function(c,l){return c.getOffset()-l.getOffset()});for(var r=0;r<e.length-1;){var n=e[r],s=n.getOffset(),i=n.getMatchedText().length,o=s+i;if(r+1<e.length){if(e[r+1].getOffset()===s){var a=e[r+1].getMatchedText().length>i?r:r+1;e.splice(a,1);continue}if(e[r+1].getOffset()<o){e.splice(r+1,1);continue}}r++}return e},t.prototype.removeUnwantedMatches=function(e){return this.hashtag||Di(e,function(r){return r.getType()==="hashtag"}),this.email||Di(e,function(r){return r.getType()==="email"}),this.phone||Di(e,function(r){return r.getType()==="phone"}),this.mention||Di(e,function(r){return r.getType()==="mention"}),this.urls.schemeMatches||Di(e,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="scheme"}),this.urls.wwwMatches||Di(e,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="www"}),this.urls.tldMatches||Di(e,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="tld"}),e},t.prototype.parseText=function(e,r){r===void 0&&(r=0),r=r||0;for(var n=this.getMatchers(),s=[],i=0,o=n.length;i<o;i++){for(var a=n[i].parseMatches(e),c=0,l=a.length;c<l;c++)a[c].setOffset(r+a[c].getOffset());s.push.apply(s,a)}return s},t.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"<").replace(/>/g,">"));for(var r=this.parse(e),n=[],s=0,i=0,o=r.length;i<o;i++){var a=r[i];n.push(e.substring(s,a.getOffset())),n.push(this.createMatchReturnVal(a)),s=a.getOffset()+a.getMatchedText().length}return n.push(e.substring(s)),n.join("")},t.prototype.createMatchReturnVal=function(e){var r;if(this.replaceFn&&(r=this.replaceFn.call(this.context,e)),typeof r=="string")return r;if(r===!1)return e.getMatchedText();if(r instanceof Zv)return r.toAnchorString();var n=e.buildTag();return n.toAnchorString()},t.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),r=[new BA({tagBuilder:e,serviceName:this.hashtag}),new MA({tagBuilder:e}),new LA({tagBuilder:e}),new UA({tagBuilder:e,serviceName:this.mention}),new DA({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=r},t.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||(e=this.tagBuilder=new jA({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},t.version=pxe,t.AnchorTagBuilder=jA,t.HtmlTag=Zv,t.matcher={Email:MA,Hashtag:BA,Matcher:Ga,Mention:UA,Phone:LA,Url:DA},t.match={Email:Ok,Hashtag:Ck,Match:Ka,Mention:$k,Phone:Tk,Url:Ik},t}(),Vxe=/www|@|\:\/\//;function qxe(t){return/^<a[>\s]/i.test(t)}function zxe(t){return/^<\/a\s*>/i.test(t)}function Jxe(){var t=[],e=new Uxe({stripPrefix:!1,url:!0,email:!0,replaceFn:function(r){switch(r.getType()){case"url":t.push({text:r.matchedText,url:r.getUrl()});break;case"email":t.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:t,autolinker:e}}function Wxe(t){var e,r,n,s,i,o,a,c,l,p,f,m=t.tokens,d=null,g,v;for(r=0,n=m.length;r<n;r++)if(m[r].type==="inline")for(s=m[r].children,f=0,e=s.length-1;e>=0;e--){if(i=s[e],i.type==="link_close"){for(e--;s[e].level!==i.level&&s[e].type!=="link_open";)e--;continue}if(i.type==="htmltag"&&(qxe(i.content)&&f>0&&f--,zxe(i.content)&&f++),!(f>0)&&i.type==="text"&&Vxe.test(i.content)){if(d||(d=Jxe(),g=d.links,v=d.autolinker),o=i.content,g.length=0,v.link(o),!g.length)continue;for(a=[],p=i.level,c=0;c<g.length;c++)t.inline.validateLink(g[c].url)&&(l=o.indexOf(g[c].text),l&&a.push({type:"text",content:o.slice(0,l),level:p}),a.push({type:"link_open",href:g[c].url,title:"",level:p++}),a.push({type:"text",content:g[c].text,level:p}),a.push({type:"link_close",level:--p}),o=o.slice(l+g[c].text.length));o.length&&a.push({type:"text",content:o,level:p}),m[r].children=s=[].concat(s.slice(0,e),a,s.slice(e+1))}}}function Hxe(t){t.core.ruler.push("linkify",Wxe)}/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */const{entries:jk,setPrototypeOf:VA,isFrozen:Kxe,getPrototypeOf:Gxe,getOwnPropertyDescriptor:Yxe}=Object;let{freeze:kr,seal:An,create:Ip}=Object,{apply:e0,construct:t0}=typeof Reflect<"u"&&Reflect;kr||(kr=function(e){return e});An||(An=function(e){return e});e0||(e0=function(e,r){for(var n=arguments.length,s=new Array(n>2?n-2:0),i=2;i<n;i++)s[i-2]=arguments[i];return e.apply(r,s)});t0||(t0=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return new e(...n)});const op=jr(Array.prototype.forEach),Xxe=jr(Array.prototype.lastIndexOf),qA=jr(Array.prototype.pop),lc=jr(Array.prototype.push),Zxe=jr(Array.prototype.splice),Rp=jr(String.prototype.toLowerCase),Fg=jr(String.prototype.toString),Bg=jr(String.prototype.match),uc=jr(String.prototype.replace),Qxe=jr(String.prototype.indexOf),e2e=jr(String.prototype.trim),Xr=jr(Object.prototype.hasOwnProperty),Rr=jr(RegExp.prototype.test),pc=t2e(TypeError);function jr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),s=1;s<r;s++)n[s-1]=arguments[s];return e0(t,e,n)}}function t2e(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return t0(t,r)}}function ct(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Rp;VA&&VA(t,null);let n=e.length;for(;n--;){let s=e[n];if(typeof s=="string"){const i=r(s);i!==s&&(Kxe(e)||(e[n]=i),s=i)}t[s]=!0}return t}function r2e(t){for(let e=0;e<t.length;e++)Xr(t,e)||(t[e]=null);return t}function os(t){const e=Ip(null);for(const[r,n]of jk(t))Xr(t,r)&&(Array.isArray(n)?e[r]=r2e(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=os(n):e[r]=n);return e}function fc(t,e){for(;t!==null;){const n=Yxe(t,e);if(n){if(n.get)return jr(n.get);if(typeof n.value=="function")return jr(n.value)}t=Gxe(t)}function r(){return null}return r}const zA=kr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Lg=kr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Ug=kr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),n2e=kr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Vg=kr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),s2e=kr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),JA=kr(["#text"]),WA=kr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),qg=kr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),HA=kr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),ap=kr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),i2e=An(/\{\{[\w\W]*|[\w\W]*\}\}/gm),o2e=An(/<%[\w\W]*|[\w\W]*%>/gm),a2e=An(/\$\{[\w\W]*/gm),c2e=An(/^data-[\-\w.\u00B7-\uFFFF]+$/),l2e=An(/^aria-[\-\w]+$/),Nk=An(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),u2e=An(/^(?:\w+script|data):/i),p2e=An(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Mk=An(/^html$/i),f2e=An(/^[a-z][.\w]*(-[.\w]+)+$/i);var KA=Object.freeze({__proto__:null,ARIA_ATTR:l2e,ATTR_WHITESPACE:p2e,CUSTOM_ELEMENT:f2e,DATA_ATTR:c2e,DOCTYPE_NAME:Mk,ERB_EXPR:o2e,IS_ALLOWED_URI:Nk,IS_SCRIPT_OR_DATA:u2e,MUSTACHE_EXPR:i2e,TMPLIT_EXPR:a2e});const hc={element:1,text:3,progressingInstruction:7,comment:8,document:9},h2e=function(){return typeof window>"u"?null:window},d2e=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const s="data-tt-policy-suffix";r&&r.hasAttribute(s)&&(n=r.getAttribute(s));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+i+" could not be created."),null}},GA=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Dk(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:h2e();const e=He=>Dk(He);if(e.version="3.3.3",e.removed=[],!t||!t.document||t.document.nodeType!==hc.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,s=n.currentScript,{DocumentFragment:i,HTMLTemplateElement:o,Node:a,Element:c,NodeFilter:l,NamedNodeMap:p=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:m,trustedTypes:d}=t,g=c.prototype,v=fc(g,"cloneNode"),y=fc(g,"remove"),E=fc(g,"nextSibling"),S=fc(g,"childNodes"),w=fc(g,"parentNode");if(typeof o=="function"){const He=r.createElement("template");He.content&&He.content.ownerDocument&&(r=He.content.ownerDocument)}let x,I="";const{implementation:T,createNodeIterator:D,createDocumentFragment:B,getElementsByTagName:P}=r,{importNode:Z}=n;let V=GA();e.isSupported=typeof jk=="function"&&typeof w=="function"&&T&&T.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:J,ERB_EXPR:F,TMPLIT_EXPR:Q,DATA_ATTR:se,ARIA_ATTR:re,IS_SCRIPT_OR_DATA:ce,ATTR_WHITESPACE:ue,CUSTOM_ELEMENT:oe}=KA;let{IS_ALLOWED_URI:G}=KA,ie=null;const pe=ct({},[...zA,...Lg,...Ug,...Vg,...JA]);let X=null;const le=ct({},[...WA,...qg,...HA,...ap]);let q=Object.seal(Ip(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),N=null,M=null;const ae=Object.seal(Ip(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ge=!0,Ce=!0,Re=!1,_e=!0,$e=!1,ze=!0,De=!1,Ge=!1,rt=!1,U=!1,O=!1,$=!1,z=!0,Y=!1;const fe="user-content-";let me=!0,Ae=!1,Ve={},k=null;const _=ct({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let A=null;const L=ct({},["audio","video","img","source","image","track"]);let ee=null;const he=ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ye="http://www.w3.org/1998/Math/MathML",Je="http://www.w3.org/2000/svg",We="http://www.w3.org/1999/xhtml";let ut=We,tt=!1,dt=null;const Oo=ct({},[ye,Je,We],Fg);let Jt=ct({},["mi","mo","mn","ms","mtext"]),ei=ct({},["annotation-xml"]);const Zn=ct({},["title","style","font","a","script"]);let Pn=null;const ti=["application/xhtml+xml","text/html"],Co="text/html";let jt=null,Qn=null;const Cr=r.createElement("form"),Cu=function(te){return te instanceof RegExp||te instanceof Function},Pi=function(){let te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Qn&&Qn===te)){if((!te||typeof te!="object")&&(te={}),te=os(te),Pn=ti.indexOf(te.PARSER_MEDIA_TYPE)===-1?Co:te.PARSER_MEDIA_TYPE,jt=Pn==="application/xhtml+xml"?Fg:Rp,ie=Xr(te,"ALLOWED_TAGS")?ct({},te.ALLOWED_TAGS,jt):pe,X=Xr(te,"ALLOWED_ATTR")?ct({},te.ALLOWED_ATTR,jt):le,dt=Xr(te,"ALLOWED_NAMESPACES")?ct({},te.ALLOWED_NAMESPACES,Fg):Oo,ee=Xr(te,"ADD_URI_SAFE_ATTR")?ct(os(he),te.ADD_URI_SAFE_ATTR,jt):he,A=Xr(te,"ADD_DATA_URI_TAGS")?ct(os(L),te.ADD_DATA_URI_TAGS,jt):L,k=Xr(te,"FORBID_CONTENTS")?ct({},te.FORBID_CONTENTS,jt):_,N=Xr(te,"FORBID_TAGS")?ct({},te.FORBID_TAGS,jt):os({}),M=Xr(te,"FORBID_ATTR")?ct({},te.FORBID_ATTR,jt):os({}),Ve=Xr(te,"USE_PROFILES")?te.USE_PROFILES:!1,ge=te.ALLOW_ARIA_ATTR!==!1,Ce=te.ALLOW_DATA_ATTR!==!1,Re=te.ALLOW_UNKNOWN_PROTOCOLS||!1,_e=te.ALLOW_SELF_CLOSE_IN_ATTR!==!1,$e=te.SAFE_FOR_TEMPLATES||!1,ze=te.SAFE_FOR_XML!==!1,De=te.WHOLE_DOCUMENT||!1,U=te.RETURN_DOM||!1,O=te.RETURN_DOM_FRAGMENT||!1,$=te.RETURN_TRUSTED_TYPE||!1,rt=te.FORCE_BODY||!1,z=te.SANITIZE_DOM!==!1,Y=te.SANITIZE_NAMED_PROPS||!1,me=te.KEEP_CONTENT!==!1,Ae=te.IN_PLACE||!1,G=te.ALLOWED_URI_REGEXP||Nk,ut=te.NAMESPACE||We,Jt=te.MATHML_TEXT_INTEGRATION_POINTS||Jt,ei=te.HTML_INTEGRATION_POINTS||ei,q=te.CUSTOM_ELEMENT_HANDLING||{},te.CUSTOM_ELEMENT_HANDLING&&Cu(te.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=te.CUSTOM_ELEMENT_HANDLING.tagNameCheck),te.CUSTOM_ELEMENT_HANDLING&&Cu(te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=te.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),te.CUSTOM_ELEMENT_HANDLING&&typeof te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(q.allowCustomizedBuiltInElements=te.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),$e&&(Ce=!1),O&&(U=!0),Ve&&(ie=ct({},JA),X=Ip(null),Ve.html===!0&&(ct(ie,zA),ct(X,WA)),Ve.svg===!0&&(ct(ie,Lg),ct(X,qg),ct(X,ap)),Ve.svgFilters===!0&&(ct(ie,Ug),ct(X,qg),ct(X,ap)),Ve.mathMl===!0&&(ct(ie,Vg),ct(X,HA),ct(X,ap))),Xr(te,"ADD_TAGS")||(ae.tagCheck=null),Xr(te,"ADD_ATTR")||(ae.attributeCheck=null),te.ADD_TAGS&&(typeof te.ADD_TAGS=="function"?ae.tagCheck=te.ADD_TAGS:(ie===pe&&(ie=os(ie)),ct(ie,te.ADD_TAGS,jt))),te.ADD_ATTR&&(typeof te.ADD_ATTR=="function"?ae.attributeCheck=te.ADD_ATTR:(X===le&&(X=os(X)),ct(X,te.ADD_ATTR,jt))),te.ADD_URI_SAFE_ATTR&&ct(ee,te.ADD_URI_SAFE_ATTR,jt),te.FORBID_CONTENTS&&(k===_&&(k=os(k)),ct(k,te.FORBID_CONTENTS,jt)),te.ADD_FORBID_CONTENTS&&(k===_&&(k=os(k)),ct(k,te.ADD_FORBID_CONTENTS,jt)),me&&(ie["#text"]=!0),De&&ct(ie,["html","head","body"]),ie.table&&(ct(ie,["tbody"]),delete N.tbody),te.TRUSTED_TYPES_POLICY){if(typeof te.TRUSTED_TYPES_POLICY.createHTML!="function")throw pc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof te.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw pc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=te.TRUSTED_TYPES_POLICY,I=x.createHTML("")}else x===void 0&&(x=d2e(d,s)),x!==null&&typeof I=="string"&&(I=x.createHTML(""));kr&&kr(te),Qn=te}},$u=ct({},[...Lg,...Ug,...n2e]),Ya=ct({},[...Vg,...s2e]),Tu=function(te){let Oe=w(te);(!Oe||!Oe.tagName)&&(Oe={namespaceURI:ut,tagName:"template"});const Be=Rp(te.tagName),St=Rp(Oe.tagName);return dt[te.namespaceURI]?te.namespaceURI===Je?Oe.namespaceURI===We?Be==="svg":Oe.namespaceURI===ye?Be==="svg"&&(St==="annotation-xml"||Jt[St]):!!$u[Be]:te.namespaceURI===ye?Oe.namespaceURI===We?Be==="math":Oe.namespaceURI===Je?Be==="math"&&ei[St]:!!Ya[Be]:te.namespaceURI===We?Oe.namespaceURI===Je&&!ei[St]||Oe.namespaceURI===ye&&!Jt[St]?!1:!Ya[Be]&&(Zn[Be]||!$u[Be]):!!(Pn==="application/xhtml+xml"&&dt[te.namespaceURI]):!1},cn=function(te){lc(e.removed,{element:te});try{w(te).removeChild(te)}catch{y(te)}},kn=function(te,Oe){try{lc(e.removed,{attribute:Oe.getAttributeNode(te),from:Oe})}catch{lc(e.removed,{attribute:null,from:Oe})}if(Oe.removeAttribute(te),te==="is")if(U||O)try{cn(Oe)}catch{}else try{Oe.setAttribute(te,"")}catch{}},$o=function(te){let Oe=null,Be=null;if(rt)te="<remove></remove>"+te;else{const wt=Bg(te,/^[\r\n\t ]+/);Be=wt&&wt[0]}Pn==="application/xhtml+xml"&&ut===We&&(te='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+te+"</body></html>");const St=x?x.createHTML(te):te;if(ut===We)try{Oe=new m().parseFromString(St,Pn)}catch{}if(!Oe||!Oe.documentElement){Oe=T.createDocument(ut,"template",null);try{Oe.documentElement.innerHTML=tt?I:St}catch{}}const qt=Oe.body||Oe.documentElement;return te&&Be&&qt.insertBefore(r.createTextNode(Be),qt.childNodes[0]||null),ut===We?P.call(Oe,De?"html":"body")[0]:De?Oe.documentElement:qt},To=function(te){return D.call(te.ownerDocument||te,te,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},jn=function(te){return te instanceof f&&(typeof te.nodeName!="string"||typeof te.textContent!="string"||typeof te.removeChild!="function"||!(te.attributes instanceof p)||typeof te.removeAttribute!="function"||typeof te.setAttribute!="function"||typeof te.namespaceURI!="string"||typeof te.insertBefore!="function"||typeof te.hasChildNodes!="function")},Iu=function(te){return typeof a=="function"&&te instanceof a};function Nn(He,te,Oe){op(He,Be=>{Be.call(e,te,Oe,Qn)})}const Io=function(te){let Oe=null;if(Nn(V.beforeSanitizeElements,te,null),jn(te))return cn(te),!0;const Be=jt(te.nodeName);if(Nn(V.uponSanitizeElement,te,{tagName:Be,allowedTags:ie}),ze&&te.hasChildNodes()&&!Iu(te.firstElementChild)&&Rr(/<[/\w!]/g,te.innerHTML)&&Rr(/<[/\w!]/g,te.textContent)||te.nodeType===hc.progressingInstruction||ze&&te.nodeType===hc.comment&&Rr(/<[/\w]/g,te.data))return cn(te),!0;if(!(ae.tagCheck instanceof Function&&ae.tagCheck(Be))&&(!ie[Be]||N[Be])){if(!N[Be]&&xr(Be)&&(q.tagNameCheck instanceof RegExp&&Rr(q.tagNameCheck,Be)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Be)))return!1;if(me&&!k[Be]){const St=w(te)||te.parentNode,qt=S(te)||te.childNodes;if(qt&&St){const wt=qt.length;for(let ar=wt-1;ar>=0;--ar){const Kr=v(qt[ar],!0);Kr.__removalCount=(te.__removalCount||0)+1,St.insertBefore(Kr,E(te))}}}return cn(te),!0}return te instanceof c&&!Tu(te)||(Be==="noscript"||Be==="noembed"||Be==="noframes")&&Rr(/<\/no(script|embed|frames)/i,te.innerHTML)?(cn(te),!0):($e&&te.nodeType===hc.text&&(Oe=te.textContent,op([J,F,Q],St=>{Oe=uc(Oe,St," ")}),te.textContent!==Oe&&(lc(e.removed,{element:te.cloneNode()}),te.textContent=Oe)),Nn(V.afterSanitizeElements,te,null),!1)},Ro=function(te,Oe,Be){if(M[Oe]||z&&(Oe==="id"||Oe==="name")&&(Be in r||Be in Cr))return!1;if(!(Ce&&!M[Oe]&&Rr(se,Oe))){if(!(ge&&Rr(re,Oe))){if(!(ae.attributeCheck instanceof Function&&ae.attributeCheck(Oe,te))){if(!X[Oe]||M[Oe]){if(!(xr(te)&&(q.tagNameCheck instanceof RegExp&&Rr(q.tagNameCheck,te)||q.tagNameCheck instanceof Function&&q.tagNameCheck(te))&&(q.attributeNameCheck instanceof RegExp&&Rr(q.attributeNameCheck,Oe)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(Oe,te))||Oe==="is"&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Rr(q.tagNameCheck,Be)||q.tagNameCheck instanceof Function&&q.tagNameCheck(Be))))return!1}else if(!ee[Oe]){if(!Rr(G,uc(Be,ue,""))){if(!((Oe==="src"||Oe==="xlink:href"||Oe==="href")&&te!=="script"&&Qxe(Be,"data:")===0&&A[te])){if(!(Re&&!Rr(ce,uc(Be,ue,"")))){if(Be)return!1}}}}}}}return!0},xr=function(te){return te!=="annotation-xml"&&Bg(te,oe)},pt=function(te){Nn(V.beforeSanitizeAttributes,te,null);const{attributes:Oe}=te;if(!Oe||jn(te))return;const Be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:X,forceKeepAttr:void 0};let St=Oe.length;for(;St--;){const qt=Oe[St],{name:wt,namespaceURI:ar,value:Kr}=qt,Is=jt(wt),ki=Kr;let Qt=wt==="value"?ki:e2e(ki);if(Be.attrName=Is,Be.attrValue=Qt,Be.keepAttr=!0,Be.forceKeepAttr=void 0,Nn(V.uponSanitizeAttribute,te,Be),Qt=Be.attrValue,Y&&(Is==="id"||Is==="name")&&(kn(wt,te),Qt=fe+Qt),ze&&Rr(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Qt)){kn(wt,te);continue}if(Is==="attributename"&&Bg(Qt,"href")){kn(wt,te);continue}if(Be.forceKeepAttr)continue;if(!Be.keepAttr){kn(wt,te);continue}if(!_e&&Rr(/\/>/i,Qt)){kn(wt,te);continue}$e&&op([J,F,Q],Za=>{Qt=uc(Qt,Za," ")});const Br=jt(te.nodeName);if(!Ro(Br,Is,Qt)){kn(wt,te);continue}if(x&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!ar)switch(d.getAttributeType(Br,Is)){case"TrustedHTML":{Qt=x.createHTML(Qt);break}case"TrustedScriptURL":{Qt=x.createScriptURL(Qt);break}}if(Qt!==ki)try{ar?te.setAttributeNS(ar,wt,Qt):te.setAttribute(wt,Qt),jn(te)?cn(te):qA(e.removed)}catch{kn(wt,te)}}Nn(V.afterSanitizeAttributes,te,null)},Xa=function He(te){let Oe=null;const Be=To(te);for(Nn(V.beforeSanitizeShadowDOM,te,null);Oe=Be.nextNode();)Nn(V.uponSanitizeShadowNode,Oe,null),Io(Oe),pt(Oe),Oe.content instanceof i&&He(Oe.content);Nn(V.afterSanitizeShadowDOM,te,null)};return e.sanitize=function(He){let te=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=null,Be=null,St=null,qt=null;if(tt=!He,tt&&(He="<!-->"),typeof He!="string"&&!Iu(He))if(typeof He.toString=="function"){if(He=He.toString(),typeof He!="string")throw pc("dirty is not a string, aborting")}else throw pc("toString is not a function");if(!e.isSupported)return He;if(Ge||Pi(te),e.removed=[],typeof He=="string"&&(Ae=!1),Ae){if(He.nodeName){const Kr=jt(He.nodeName);if(!ie[Kr]||N[Kr])throw pc("root node is forbidden and cannot be sanitized in-place")}}else if(He instanceof a)Oe=$o("<!---->"),Be=Oe.ownerDocument.importNode(He,!0),Be.nodeType===hc.element&&Be.nodeName==="BODY"||Be.nodeName==="HTML"?Oe=Be:Oe.appendChild(Be);else{if(!U&&!$e&&!De&&He.indexOf("<")===-1)return x&&$?x.createHTML(He):He;if(Oe=$o(He),!Oe)return U?null:$?I:""}Oe&&rt&&cn(Oe.firstChild);const wt=To(Ae?He:Oe);for(;St=wt.nextNode();)Io(St),pt(St),St.content instanceof i&&Xa(St.content);if(Ae)return He;if(U){if(O)for(qt=B.call(Oe.ownerDocument);Oe.firstChild;)qt.appendChild(Oe.firstChild);else qt=Oe;return(X.shadowroot||X.shadowrootmode)&&(qt=Z.call(n,qt,!0)),qt}let ar=De?Oe.outerHTML:Oe.innerHTML;return De&&ie["!doctype"]&&Oe.ownerDocument&&Oe.ownerDocument.doctype&&Oe.ownerDocument.doctype.name&&Rr(Mk,Oe.ownerDocument.doctype.name)&&(ar="<!DOCTYPE "+Oe.ownerDocument.doctype.name+`>
|
|
226
|
+
`+ar),$e&&op([J,F,Q],Kr=>{ar=uc(ar,Kr," ")}),x&&$?x.createHTML(ar):ar},e.setConfig=function(){let He=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Pi(He),Ge=!0},e.clearConfig=function(){Qn=null,Ge=!1},e.isValidAttribute=function(He,te,Oe){Qn||Pi({});const Be=jt(He),St=jt(te);return Ro(Be,St,Oe)},e.addHook=function(He,te){typeof te=="function"&&lc(V[He],te)},e.removeHook=function(He,te){if(te!==void 0){const Oe=Xxe(V[He],te);return Oe===-1?void 0:Zxe(V[He],Oe,1)[0]}return qA(V[He])},e.removeHooks=function(He){V[He]=[]},e.removeAllHooks=function(){V=GA()},e}var r0=Dk(),m2e=fl,Fk=/[\\^$.*+?()[\]{}|]/g,g2e=RegExp(Fk.source);function y2e(t){return t=m2e(t),t&&g2e.test(t)?t.replace(Fk,"\\$&"):t}var v2e=y2e;const b2e=Ze(v2e);var E2e=Object.prototype,S2e=E2e.hasOwnProperty;function w2e(t,e){return t!=null&&S2e.call(t,e)}var _2e=w2e,x2e=_2e,A2e=JC;function O2e(t,e){return t!=null&&A2e(t,e,x2e)}var C2e=O2e;const $2e=Ze(C2e);/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */var T2e={287:function(t,e,r){const n=r(987),s=r(362),i=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=function(O){return+O!=O&&(O=0),c.alloc(+O)},e.INSPECT_MAX_BYTES=50;const o=2147483647;function a(U){if(U>o)throw new RangeError('The value "'+U+'" is invalid for option "size"');const O=new Uint8Array(U);return Object.setPrototypeOf(O,c.prototype),O}function c(U,O,$){if(typeof U=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(U)}return l(U,O,$)}function l(U,O,$){if(typeof U=="string")return function(me,Ae){if(typeof Ae=="string"&&Ae!==""||(Ae="utf8"),!c.isEncoding(Ae))throw new TypeError("Unknown encoding: "+Ae);const Ve=0|v(me,Ae);let k=a(Ve);const _=k.write(me,Ae);return _!==Ve&&(k=k.slice(0,_)),k}(U,O);if(ArrayBuffer.isView(U))return function(me){if($e(me,Uint8Array)){const Ae=new Uint8Array(me);return d(Ae.buffer,Ae.byteOffset,Ae.byteLength)}return m(me)}(U);if(U==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U);if($e(U,ArrayBuffer)||U&&$e(U.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&($e(U,SharedArrayBuffer)||U&&$e(U.buffer,SharedArrayBuffer)))return d(U,O,$);if(typeof U=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const z=U.valueOf&&U.valueOf();if(z!=null&&z!==U)return c.from(z,O,$);const Y=function(me){if(c.isBuffer(me)){const Ae=0|g(me.length),Ve=a(Ae);return Ve.length===0||me.copy(Ve,0,0,Ae),Ve}if(me.length!==void 0)return typeof me.length!="number"||ze(me.length)?a(0):m(me);if(me.type==="Buffer"&&Array.isArray(me.data))return m(me.data)}(U);if(Y)return Y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof U[Symbol.toPrimitive]=="function")return c.from(U[Symbol.toPrimitive]("string"),O,$);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof U)}function p(U){if(typeof U!="number")throw new TypeError('"size" argument must be of type number');if(U<0)throw new RangeError('The value "'+U+'" is invalid for option "size"')}function f(U){return p(U),a(U<0?0:0|g(U))}function m(U){const O=U.length<0?0:0|g(U.length),$=a(O);for(let z=0;z<O;z+=1)$[z]=255&U[z];return $}function d(U,O,$){if(O<0||U.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if(U.byteLength<O+($||0))throw new RangeError('"length" is outside of buffer bounds');let z;return z=O===void 0&&$===void 0?new Uint8Array(U):$===void 0?new Uint8Array(U,O):new Uint8Array(U,O,$),Object.setPrototypeOf(z,c.prototype),z}function g(U){if(U>=o)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o.toString(16)+" bytes");return 0|U}function v(U,O){if(c.isBuffer(U))return U.length;if(ArrayBuffer.isView(U)||$e(U,ArrayBuffer))return U.byteLength;if(typeof U!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof U);const $=U.length,z=arguments.length>2&&arguments[2]===!0;if(!z&&$===0)return 0;let Y=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return $;case"utf8":case"utf-8":return Ce(U).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*$;case"hex":return $>>>1;case"base64":return Re(U).length;default:if(Y)return z?-1:Ce(U).length;O=(""+O).toLowerCase(),Y=!0}}function y(U,O,$){let z=!1;if((O===void 0||O<0)&&(O=0),O>this.length||(($===void 0||$>this.length)&&($=this.length),$<=0)||($>>>=0)<=(O>>>=0))return"";for(U||(U="utf8");;)switch(U){case"hex":return Q(this,O,$);case"utf8":case"utf-8":return Z(this,O,$);case"ascii":return J(this,O,$);case"latin1":case"binary":return F(this,O,$);case"base64":return P(this,O,$);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return se(this,O,$);default:if(z)throw new TypeError("Unknown encoding: "+U);U=(U+"").toLowerCase(),z=!0}}function E(U,O,$){const z=U[O];U[O]=U[$],U[$]=z}function S(U,O,$,z,Y){if(U.length===0)return-1;if(typeof $=="string"?(z=$,$=0):$>2147483647?$=2147483647:$<-2147483648&&($=-2147483648),ze($=+$)&&($=Y?0:U.length-1),$<0&&($=U.length+$),$>=U.length){if(Y)return-1;$=U.length-1}else if($<0){if(!Y)return-1;$=0}if(typeof O=="string"&&(O=c.from(O,z)),c.isBuffer(O))return O.length===0?-1:w(U,O,$,z,Y);if(typeof O=="number")return O&=255,typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(U,O,$):Uint8Array.prototype.lastIndexOf.call(U,O,$):w(U,[O],$,z,Y);throw new TypeError("val must be string, number or Buffer")}function w(U,O,$,z,Y){let fe,me=1,Ae=U.length,Ve=O.length;if(z!==void 0&&((z=String(z).toLowerCase())==="ucs2"||z==="ucs-2"||z==="utf16le"||z==="utf-16le")){if(U.length<2||O.length<2)return-1;me=2,Ae/=2,Ve/=2,$/=2}function k(_,A){return me===1?_[A]:_.readUInt16BE(A*me)}if(Y){let _=-1;for(fe=$;fe<Ae;fe++)if(k(U,fe)===k(O,_===-1?0:fe-_)){if(_===-1&&(_=fe),fe-_+1===Ve)return _*me}else _!==-1&&(fe-=fe-_),_=-1}else for($+Ve>Ae&&($=Ae-Ve),fe=$;fe>=0;fe--){let _=!0;for(let A=0;A<Ve;A++)if(k(U,fe+A)!==k(O,A)){_=!1;break}if(_)return fe}return-1}function x(U,O,$,z){$=Number($)||0;const Y=U.length-$;z?(z=Number(z))>Y&&(z=Y):z=Y;const fe=O.length;let me;for(z>fe/2&&(z=fe/2),me=0;me<z;++me){const Ae=parseInt(O.substr(2*me,2),16);if(ze(Ae))return me;U[$+me]=Ae}return me}function I(U,O,$,z){return _e(Ce(O,U.length-$),U,$,z)}function T(U,O,$,z){return _e(function(fe){const me=[];for(let Ae=0;Ae<fe.length;++Ae)me.push(255&fe.charCodeAt(Ae));return me}(O),U,$,z)}function D(U,O,$,z){return _e(Re(O),U,$,z)}function B(U,O,$,z){return _e(function(fe,me){let Ae,Ve,k;const _=[];for(let A=0;A<fe.length&&!((me-=2)<0);++A)Ae=fe.charCodeAt(A),Ve=Ae>>8,k=Ae%256,_.push(k),_.push(Ve);return _}(O,U.length-$),U,$,z)}function P(U,O,$){return O===0&&$===U.length?n.fromByteArray(U):n.fromByteArray(U.slice(O,$))}function Z(U,O,$){$=Math.min(U.length,$);const z=[];let Y=O;for(;Y<$;){const fe=U[Y];let me=null,Ae=fe>239?4:fe>223?3:fe>191?2:1;if(Y+Ae<=$){let Ve,k,_,A;switch(Ae){case 1:fe<128&&(me=fe);break;case 2:Ve=U[Y+1],(192&Ve)==128&&(A=(31&fe)<<6|63&Ve,A>127&&(me=A));break;case 3:Ve=U[Y+1],k=U[Y+2],(192&Ve)==128&&(192&k)==128&&(A=(15&fe)<<12|(63&Ve)<<6|63&k,A>2047&&(A<55296||A>57343)&&(me=A));break;case 4:Ve=U[Y+1],k=U[Y+2],_=U[Y+3],(192&Ve)==128&&(192&k)==128&&(192&_)==128&&(A=(15&fe)<<18|(63&Ve)<<12|(63&k)<<6|63&_,A>65535&&A<1114112&&(me=A))}}me===null?(me=65533,Ae=1):me>65535&&(me-=65536,z.push(me>>>10&1023|55296),me=56320|1023&me),z.push(me),Y+=Ae}return function(me){const Ae=me.length;if(Ae<=V)return String.fromCharCode.apply(String,me);let Ve="",k=0;for(;k<Ae;)Ve+=String.fromCharCode.apply(String,me.slice(k,k+=V));return Ve}(z)}e.kMaxLength=o,c.TYPED_ARRAY_SUPPORT=function(){try{const O=new Uint8Array(1),$={foo:function(){return 42}};return Object.setPrototypeOf($,Uint8Array.prototype),Object.setPrototypeOf(O,$),O.foo()===42}catch{return!1}}(),c.TYPED_ARRAY_SUPPORT||typeof console>"u"||typeof console.error!="function"||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(U,O,$){return l(U,O,$)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(U,O,$){return function(Y,fe,me){return p(Y),Y<=0?a(Y):fe!==void 0?typeof me=="string"?a(Y).fill(fe,me):a(Y).fill(fe):a(Y)}(U,O,$)},c.allocUnsafe=function(U){return f(U)},c.allocUnsafeSlow=function(U){return f(U)},c.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==c.prototype},c.compare=function(O,$){if($e(O,Uint8Array)&&(O=c.from(O,O.offset,O.byteLength)),$e($,Uint8Array)&&($=c.from($,$.offset,$.byteLength)),!c.isBuffer(O)||!c.isBuffer($))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===$)return 0;let z=O.length,Y=$.length;for(let fe=0,me=Math.min(z,Y);fe<me;++fe)if(O[fe]!==$[fe]){z=O[fe],Y=$[fe];break}return z<Y?-1:Y<z?1:0},c.isEncoding=function(O){switch(String(O).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(O,$){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return c.alloc(0);let z;if($===void 0)for($=0,z=0;z<O.length;++z)$+=O[z].length;const Y=c.allocUnsafe($);let fe=0;for(z=0;z<O.length;++z){let me=O[z];if($e(me,Uint8Array))fe+me.length>Y.length?(c.isBuffer(me)||(me=c.from(me)),me.copy(Y,fe)):Uint8Array.prototype.set.call(Y,me,fe);else{if(!c.isBuffer(me))throw new TypeError('"list" argument must be an Array of Buffers');me.copy(Y,fe)}fe+=me.length}return Y},c.byteLength=v,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const O=this.length;if(O%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let $=0;$<O;$+=2)E(this,$,$+1);return this},c.prototype.swap32=function(){const O=this.length;if(O%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let $=0;$<O;$+=4)E(this,$,$+3),E(this,$+1,$+2);return this},c.prototype.swap64=function(){const O=this.length;if(O%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let $=0;$<O;$+=8)E(this,$,$+7),E(this,$+1,$+6),E(this,$+2,$+5),E(this,$+3,$+4);return this},c.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?Z(this,0,O):y.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(O){if(!c.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O||c.compare(this,O)===0},c.prototype.inspect=function(){let O="";const $=e.INSPECT_MAX_BYTES;return O=this.toString("hex",0,$).replace(/(.{2})/g,"$1 ").trim(),this.length>$&&(O+=" ... "),"<Buffer "+O+">"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(O,$,z,Y,fe){if($e(O,Uint8Array)&&(O=c.from(O,O.offset,O.byteLength)),!c.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if($===void 0&&($=0),z===void 0&&(z=O?O.length:0),Y===void 0&&(Y=0),fe===void 0&&(fe=this.length),$<0||z>O.length||Y<0||fe>this.length)throw new RangeError("out of range index");if(Y>=fe&&$>=z)return 0;if(Y>=fe)return-1;if($>=z)return 1;if(this===O)return 0;let me=(fe>>>=0)-(Y>>>=0),Ae=(z>>>=0)-($>>>=0);const Ve=Math.min(me,Ae),k=this.slice(Y,fe),_=O.slice($,z);for(let A=0;A<Ve;++A)if(k[A]!==_[A]){me=k[A],Ae=_[A];break}return me<Ae?-1:Ae<me?1:0},c.prototype.includes=function(O,$,z){return this.indexOf(O,$,z)!==-1},c.prototype.indexOf=function(O,$,z){return S(this,O,$,z,!0)},c.prototype.lastIndexOf=function(O,$,z){return S(this,O,$,z,!1)},c.prototype.write=function(O,$,z,Y){if($===void 0)Y="utf8",z=this.length,$=0;else if(z===void 0&&typeof $=="string")Y=$,z=this.length,$=0;else{if(!isFinite($))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");$>>>=0,isFinite(z)?(z>>>=0,Y===void 0&&(Y="utf8")):(Y=z,z=void 0)}const fe=this.length-$;if((z===void 0||z>fe)&&(z=fe),O.length>0&&(z<0||$<0)||$>this.length)throw new RangeError("Attempt to write outside buffer bounds");Y||(Y="utf8");let me=!1;for(;;)switch(Y){case"hex":return x(this,O,$,z);case"utf8":case"utf-8":return I(this,O,$,z);case"ascii":case"latin1":case"binary":return T(this,O,$,z);case"base64":return D(this,O,$,z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return B(this,O,$,z);default:if(me)throw new TypeError("Unknown encoding: "+Y);Y=(""+Y).toLowerCase(),me=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const V=4096;function J(U,O,$){let z="";$=Math.min(U.length,$);for(let Y=O;Y<$;++Y)z+=String.fromCharCode(127&U[Y]);return z}function F(U,O,$){let z="";$=Math.min(U.length,$);for(let Y=O;Y<$;++Y)z+=String.fromCharCode(U[Y]);return z}function Q(U,O,$){const z=U.length;(!O||O<0)&&(O=0),(!$||$<0||$>z)&&($=z);let Y="";for(let fe=O;fe<$;++fe)Y+=De[U[fe]];return Y}function se(U,O,$){const z=U.slice(O,$);let Y="";for(let fe=0;fe<z.length-1;fe+=2)Y+=String.fromCharCode(z[fe]+256*z[fe+1]);return Y}function re(U,O,$){if(U%1!=0||U<0)throw new RangeError("offset is not uint");if(U+O>$)throw new RangeError("Trying to access beyond buffer length")}function ce(U,O,$,z,Y,fe){if(!c.isBuffer(U))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>Y||O<fe)throw new RangeError('"value" argument is out of bounds');if($+z>U.length)throw new RangeError("Index out of range")}function ue(U,O,$,z,Y){N(O,z,Y,U,$,7);let fe=Number(O&BigInt(4294967295));U[$++]=fe,fe>>=8,U[$++]=fe,fe>>=8,U[$++]=fe,fe>>=8,U[$++]=fe;let me=Number(O>>BigInt(32)&BigInt(4294967295));return U[$++]=me,me>>=8,U[$++]=me,me>>=8,U[$++]=me,me>>=8,U[$++]=me,$}function oe(U,O,$,z,Y){N(O,z,Y,U,$,7);let fe=Number(O&BigInt(4294967295));U[$+7]=fe,fe>>=8,U[$+6]=fe,fe>>=8,U[$+5]=fe,fe>>=8,U[$+4]=fe;let me=Number(O>>BigInt(32)&BigInt(4294967295));return U[$+3]=me,me>>=8,U[$+2]=me,me>>=8,U[$+1]=me,me>>=8,U[$]=me,$+8}function G(U,O,$,z,Y,fe){if($+z>U.length)throw new RangeError("Index out of range");if($<0)throw new RangeError("Index out of range")}function ie(U,O,$,z,Y){return O=+O,$>>>=0,Y||G(U,0,$,4),s.write(U,O,$,z,23,4),$+4}function pe(U,O,$,z,Y){return O=+O,$>>>=0,Y||G(U,0,$,8),s.write(U,O,$,z,52,8),$+8}c.prototype.slice=function(O,$){const z=this.length;(O=~~O)<0?(O+=z)<0&&(O=0):O>z&&(O=z),($=$===void 0?z:~~$)<0?($+=z)<0&&($=0):$>z&&($=z),$<O&&($=O);const Y=this.subarray(O,$);return Object.setPrototypeOf(Y,c.prototype),Y},c.prototype.readUintLE=c.prototype.readUIntLE=function(O,$,z){O>>>=0,$>>>=0,z||re(O,$,this.length);let Y=this[O],fe=1,me=0;for(;++me<$&&(fe*=256);)Y+=this[O+me]*fe;return Y},c.prototype.readUintBE=c.prototype.readUIntBE=function(O,$,z){O>>>=0,$>>>=0,z||re(O,$,this.length);let Y=this[O+--$],fe=1;for(;$>0&&(fe*=256);)Y+=this[O+--$]*fe;return Y},c.prototype.readUint8=c.prototype.readUInt8=function(O,$){return O>>>=0,$||re(O,1,this.length),this[O]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(O,$){return O>>>=0,$||re(O,2,this.length),this[O]|this[O+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(O,$){return O>>>=0,$||re(O,2,this.length),this[O]<<8|this[O+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(O,$){return O>>>=0,$||re(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+16777216*this[O+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(O,$){return O>>>=0,$||re(O,4,this.length),16777216*this[O]+(this[O+1]<<16|this[O+2]<<8|this[O+3])},c.prototype.readBigUInt64LE=Ge(function(O){M(O>>>=0,"offset");const $=this[O],z=this[O+7];$!==void 0&&z!==void 0||ae(O,this.length-8);const Y=$+256*this[++O]+65536*this[++O]+this[++O]*2**24,fe=this[++O]+256*this[++O]+65536*this[++O]+z*2**24;return BigInt(Y)+(BigInt(fe)<<BigInt(32))}),c.prototype.readBigUInt64BE=Ge(function(O){M(O>>>=0,"offset");const $=this[O],z=this[O+7];$!==void 0&&z!==void 0||ae(O,this.length-8);const Y=$*2**24+65536*this[++O]+256*this[++O]+this[++O],fe=this[++O]*2**24+65536*this[++O]+256*this[++O]+z;return(BigInt(Y)<<BigInt(32))+BigInt(fe)}),c.prototype.readIntLE=function(O,$,z){O>>>=0,$>>>=0,z||re(O,$,this.length);let Y=this[O],fe=1,me=0;for(;++me<$&&(fe*=256);)Y+=this[O+me]*fe;return fe*=128,Y>=fe&&(Y-=Math.pow(2,8*$)),Y},c.prototype.readIntBE=function(O,$,z){O>>>=0,$>>>=0,z||re(O,$,this.length);let Y=$,fe=1,me=this[O+--Y];for(;Y>0&&(fe*=256);)me+=this[O+--Y]*fe;return fe*=128,me>=fe&&(me-=Math.pow(2,8*$)),me},c.prototype.readInt8=function(O,$){return O>>>=0,$||re(O,1,this.length),128&this[O]?-1*(255-this[O]+1):this[O]},c.prototype.readInt16LE=function(O,$){O>>>=0,$||re(O,2,this.length);const z=this[O]|this[O+1]<<8;return 32768&z?4294901760|z:z},c.prototype.readInt16BE=function(O,$){O>>>=0,$||re(O,2,this.length);const z=this[O+1]|this[O]<<8;return 32768&z?4294901760|z:z},c.prototype.readInt32LE=function(O,$){return O>>>=0,$||re(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},c.prototype.readInt32BE=function(O,$){return O>>>=0,$||re(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},c.prototype.readBigInt64LE=Ge(function(O){M(O>>>=0,"offset");const $=this[O],z=this[O+7];$!==void 0&&z!==void 0||ae(O,this.length-8);const Y=this[O+4]+256*this[O+5]+65536*this[O+6]+(z<<24);return(BigInt(Y)<<BigInt(32))+BigInt($+256*this[++O]+65536*this[++O]+this[++O]*2**24)}),c.prototype.readBigInt64BE=Ge(function(O){M(O>>>=0,"offset");const $=this[O],z=this[O+7];$!==void 0&&z!==void 0||ae(O,this.length-8);const Y=($<<24)+65536*this[++O]+256*this[++O]+this[++O];return(BigInt(Y)<<BigInt(32))+BigInt(this[++O]*2**24+65536*this[++O]+256*this[++O]+z)}),c.prototype.readFloatLE=function(O,$){return O>>>=0,$||re(O,4,this.length),s.read(this,O,!0,23,4)},c.prototype.readFloatBE=function(O,$){return O>>>=0,$||re(O,4,this.length),s.read(this,O,!1,23,4)},c.prototype.readDoubleLE=function(O,$){return O>>>=0,$||re(O,8,this.length),s.read(this,O,!0,52,8)},c.prototype.readDoubleBE=function(O,$){return O>>>=0,$||re(O,8,this.length),s.read(this,O,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(O,$,z,Y){O=+O,$>>>=0,z>>>=0,!Y&&ce(this,O,$,z,Math.pow(2,8*z)-1,0);let fe=1,me=0;for(this[$]=255&O;++me<z&&(fe*=256);)this[$+me]=O/fe&255;return $+z},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(O,$,z,Y){O=+O,$>>>=0,z>>>=0,!Y&&ce(this,O,$,z,Math.pow(2,8*z)-1,0);let fe=z-1,me=1;for(this[$+fe]=255&O;--fe>=0&&(me*=256);)this[$+fe]=O/me&255;return $+z},c.prototype.writeUint8=c.prototype.writeUInt8=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,1,255,0),this[$]=255&O,$+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,2,65535,0),this[$]=255&O,this[$+1]=O>>>8,$+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,2,65535,0),this[$]=O>>>8,this[$+1]=255&O,$+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,4,4294967295,0),this[$+3]=O>>>24,this[$+2]=O>>>16,this[$+1]=O>>>8,this[$]=255&O,$+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,4,4294967295,0),this[$]=O>>>24,this[$+1]=O>>>16,this[$+2]=O>>>8,this[$+3]=255&O,$+4},c.prototype.writeBigUInt64LE=Ge(function(O,$=0){return ue(this,O,$,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Ge(function(O,$=0){return oe(this,O,$,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(O,$,z,Y){if(O=+O,$>>>=0,!Y){const Ve=Math.pow(2,8*z-1);ce(this,O,$,z,Ve-1,-Ve)}let fe=0,me=1,Ae=0;for(this[$]=255&O;++fe<z&&(me*=256);)O<0&&Ae===0&&this[$+fe-1]!==0&&(Ae=1),this[$+fe]=(O/me|0)-Ae&255;return $+z},c.prototype.writeIntBE=function(O,$,z,Y){if(O=+O,$>>>=0,!Y){const Ve=Math.pow(2,8*z-1);ce(this,O,$,z,Ve-1,-Ve)}let fe=z-1,me=1,Ae=0;for(this[$+fe]=255&O;--fe>=0&&(me*=256);)O<0&&Ae===0&&this[$+fe+1]!==0&&(Ae=1),this[$+fe]=(O/me|0)-Ae&255;return $+z},c.prototype.writeInt8=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,1,127,-128),O<0&&(O=255+O+1),this[$]=255&O,$+1},c.prototype.writeInt16LE=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,2,32767,-32768),this[$]=255&O,this[$+1]=O>>>8,$+2},c.prototype.writeInt16BE=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,2,32767,-32768),this[$]=O>>>8,this[$+1]=255&O,$+2},c.prototype.writeInt32LE=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,4,2147483647,-2147483648),this[$]=255&O,this[$+1]=O>>>8,this[$+2]=O>>>16,this[$+3]=O>>>24,$+4},c.prototype.writeInt32BE=function(O,$,z){return O=+O,$>>>=0,z||ce(this,O,$,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[$]=O>>>24,this[$+1]=O>>>16,this[$+2]=O>>>8,this[$+3]=255&O,$+4},c.prototype.writeBigInt64LE=Ge(function(O,$=0){return ue(this,O,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Ge(function(O,$=0){return oe(this,O,$,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeFloatLE=function(O,$,z){return ie(this,O,$,!0,z)},c.prototype.writeFloatBE=function(O,$,z){return ie(this,O,$,!1,z)},c.prototype.writeDoubleLE=function(O,$,z){return pe(this,O,$,!0,z)},c.prototype.writeDoubleBE=function(O,$,z){return pe(this,O,$,!1,z)},c.prototype.copy=function(O,$,z,Y){if(!c.isBuffer(O))throw new TypeError("argument should be a Buffer");if(z||(z=0),Y||Y===0||(Y=this.length),$>=O.length&&($=O.length),$||($=0),Y>0&&Y<z&&(Y=z),Y===z||O.length===0||this.length===0)return 0;if($<0)throw new RangeError("targetStart out of bounds");if(z<0||z>=this.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("sourceEnd out of bounds");Y>this.length&&(Y=this.length),O.length-$<Y-z&&(Y=O.length-$+z);const fe=Y-z;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin($,z,Y):Uint8Array.prototype.set.call(O,this.subarray(z,Y),$),fe},c.prototype.fill=function(O,$,z,Y){if(typeof O=="string"){if(typeof $=="string"?(Y=$,$=0,z=this.length):typeof z=="string"&&(Y=z,z=this.length),Y!==void 0&&typeof Y!="string")throw new TypeError("encoding must be a string");if(typeof Y=="string"&&!c.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);if(O.length===1){const me=O.charCodeAt(0);(Y==="utf8"&&me<128||Y==="latin1")&&(O=me)}}else typeof O=="number"?O&=255:typeof O=="boolean"&&(O=Number(O));if($<0||this.length<$||this.length<z)throw new RangeError("Out of range index");if(z<=$)return this;let fe;if($>>>=0,z=z===void 0?this.length:z>>>0,O||(O=0),typeof O=="number")for(fe=$;fe<z;++fe)this[fe]=O;else{const me=c.isBuffer(O)?O:c.from(O,Y),Ae=me.length;if(Ae===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(fe=0;fe<z-$;++fe)this[fe+$]=me[fe%Ae]}return this};const X={};function le(U,O,$){X[U]=class extends ${constructor(){super(),Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${U}]`,this.stack,delete this.name}get code(){return U}set code(Y){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Y,writable:!0})}toString(){return`${this.name} [${U}]: ${this.message}`}}}function q(U){let O="",$=U.length;const z=U[0]==="-"?1:0;for(;$>=z+4;$-=3)O=`_${U.slice($-3,$)}${O}`;return`${U.slice(0,$)}${O}`}function N(U,O,$,z,Y,fe){if(U>$||U<O){const me=typeof O=="bigint"?"n":"";let Ae;throw Ae=O===0||O===BigInt(0)?`>= 0${me} and < 2${me} ** ${8*(fe+1)}${me}`:`>= -(2${me} ** ${8*(fe+1)-1}${me}) and < 2 ** ${8*(fe+1)-1}${me}`,new X.ERR_OUT_OF_RANGE("value",Ae,U)}(function(Ae,Ve,k){M(Ve,"offset"),Ae[Ve]!==void 0&&Ae[Ve+k]!==void 0||ae(Ve,Ae.length-(k+1))})(z,Y,fe)}function M(U,O){if(typeof U!="number")throw new X.ERR_INVALID_ARG_TYPE(O,"number",U)}function ae(U,O,$){throw Math.floor(U)!==U?(M(U,$),new X.ERR_OUT_OF_RANGE("offset","an integer",U)):O<0?new X.ERR_BUFFER_OUT_OF_BOUNDS:new X.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${O}`,U)}le("ERR_BUFFER_OUT_OF_BOUNDS",function(U){return U?`${U} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),le("ERR_INVALID_ARG_TYPE",function(U,O){return`The "${U}" argument must be of type number. Received type ${typeof O}`},TypeError),le("ERR_OUT_OF_RANGE",function(U,O,$){let z=`The value of "${U}" is out of range.`,Y=$;return Number.isInteger($)&&Math.abs($)>2**32?Y=q(String($)):typeof $=="bigint"&&(Y=String($),($>BigInt(2)**BigInt(32)||$<-(BigInt(2)**BigInt(32)))&&(Y=q(Y)),Y+="n"),z+=` It must be ${O}. Received ${Y}`,z},RangeError);const ge=/[^+/0-9A-Za-z-_]/g;function Ce(U,O){let $;O=O||1/0;const z=U.length;let Y=null;const fe=[];for(let me=0;me<z;++me){if($=U.charCodeAt(me),$>55295&&$<57344){if(!Y){if($>56319){(O-=3)>-1&&fe.push(239,191,189);continue}if(me+1===z){(O-=3)>-1&&fe.push(239,191,189);continue}Y=$;continue}if($<56320){(O-=3)>-1&&fe.push(239,191,189),Y=$;continue}$=65536+(Y-55296<<10|$-56320)}else Y&&(O-=3)>-1&&fe.push(239,191,189);if(Y=null,$<128){if((O-=1)<0)break;fe.push($)}else if($<2048){if((O-=2)<0)break;fe.push($>>6|192,63&$|128)}else if($<65536){if((O-=3)<0)break;fe.push($>>12|224,$>>6&63|128,63&$|128)}else{if(!($<1114112))throw new Error("Invalid code point");if((O-=4)<0)break;fe.push($>>18|240,$>>12&63|128,$>>6&63|128,63&$|128)}}return fe}function Re(U){return n.toByteArray(function($){if(($=($=$.split("=")[0]).trim().replace(ge,"")).length<2)return"";for(;$.length%4!=0;)$+="=";return $}(U))}function _e(U,O,$,z){let Y;for(Y=0;Y<z&&!(Y+$>=O.length||Y>=U.length);++Y)O[Y+$]=U[Y];return Y}function $e(U,O){return U instanceof O||U!=null&&U.constructor!=null&&U.constructor.name!=null&&U.constructor.name===O.name}function ze(U){return U!=U}const De=function(){const U="0123456789abcdef",O=new Array(256);for(let $=0;$<16;++$){const z=16*$;for(let Y=0;Y<16;++Y)O[z+Y]=U[$]+U[Y]}return O}();function Ge(U){return typeof BigInt>"u"?rt:U}function rt(){throw new Error("BigInt not supported")}},919:function(t,e,r){var n=r(287).Buffer;function s(l){return l instanceof n||l instanceof Date||l instanceof RegExp}function i(l){if(l instanceof n){var p=n.alloc?n.alloc(l.length):new n(l.length);return l.copy(p),p}if(l instanceof Date)return new Date(l.getTime());if(l instanceof RegExp)return new RegExp(l);throw new Error("Unexpected situation")}function o(l){var p=[];return l.forEach(function(f,m){typeof f=="object"&&f!==null?Array.isArray(f)?p[m]=o(f):s(f)?p[m]=i(f):p[m]=c({},f):p[m]=f}),p}function a(l,p){return p==="__proto__"?void 0:l[p]}var c=t.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var l,p,f=arguments[0];return Array.prototype.slice.call(arguments,1).forEach(function(m){typeof m!="object"||m===null||Array.isArray(m)||Object.keys(m).forEach(function(d){return p=a(f,d),(l=a(m,d))===f?void 0:typeof l!="object"||l===null?void(f[d]=l):Array.isArray(l)?void(f[d]=o(l)):s(l)?void(f[d]=i(l)):typeof p!="object"||p===null||Array.isArray(p)?void(f[d]=c({},l)):void(f[d]=c(p,l))})}),f}},7:function(t){var e,r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(E,S,w){return Function.prototype.apply.call(E,S,w)};e=r&&typeof r.ownKeys=="function"?r.ownKeys:Object.getOwnPropertySymbols?function(E){return Object.getOwnPropertyNames(E).concat(Object.getOwnPropertySymbols(E))}:function(E){return Object.getOwnPropertyNames(E)};var s=Number.isNaN||function(E){return E!=E};function i(){i.init.call(this)}t.exports=i,t.exports.once=function(E,S){return new Promise(function(w,x){function I(D){E.removeListener(S,T),x(D)}function T(){typeof E.removeListener=="function"&&E.removeListener("error",I),w([].slice.call(arguments))}v(E,S,T,{once:!0}),S!=="error"&&function(B,P,Z){typeof B.on=="function"&&v(B,"error",P,Z)}(E,I,{once:!0})})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function a(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}function c(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}function l(y,E,S,w){var x,I,T;if(a(S),(I=y._events)===void 0?(I=y._events=Object.create(null),y._eventsCount=0):(I.newListener!==void 0&&(y.emit("newListener",E,S.listener?S.listener:S),I=y._events),T=I[E]),T===void 0)T=I[E]=S,++y._eventsCount;else if(typeof T=="function"?T=I[E]=w?[S,T]:[T,S]:w?T.unshift(S):T.push(S),(x=c(y))>0&&T.length>x&&!T.warned){T.warned=!0;var D=new Error("Possible EventEmitter memory leak detected. "+T.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");D.name="MaxListenersExceededWarning",D.emitter=y,D.type=E,D.count=T.length,function(P){console&&console.warn&&console.warn(P)}(D)}return y}function p(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(y,E,S){var w={fired:!1,wrapFn:void 0,target:y,type:E,listener:S},x=p.bind(w);return x.listener=S,w.wrapFn=x,x}function m(y,E,S){var w=y._events;if(w===void 0)return[];var x=w[E];return x===void 0?[]:typeof x=="function"?S?[x.listener||x]:[x]:S?function(T){for(var D=new Array(T.length),B=0;B<D.length;++B)D[B]=T[B].listener||T[B];return D}(x):g(x,x.length)}function d(y){var E=this._events;if(E!==void 0){var S=E[y];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}function g(y,E){for(var S=new Array(E),w=0;w<E;++w)S[w]=y[w];return S}function v(y,E,S,w){if(typeof y.on=="function")w.once?y.once(E,S):y.on(E,S);else{if(typeof y.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y);y.addEventListener(E,function x(I){w.once&&y.removeEventListener(E,x),S(I)})}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(y){if(typeof y!="number"||y<0||s(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");o=y}}),i.init=function(){this._events!==void 0&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||s(E))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+E+".");return this._maxListeners=E,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(E){for(var S=[],w=1;w<arguments.length;w++)S.push(arguments[w]);var x=E==="error",I=this._events;if(I!==void 0)x=x&&I.error===void 0;else if(!x)return!1;if(x){var T;if(S.length>0&&(T=S[0]),T instanceof Error)throw T;var D=new Error("Unhandled error."+(T?" ("+T.message+")":""));throw D.context=T,D}var B=I[E];if(B===void 0)return!1;if(typeof B=="function")n(B,this,S);else{var P=B.length,Z=g(B,P);for(w=0;w<P;++w)n(Z[w],this,S)}return!0},i.prototype.addListener=function(E,S){return l(this,E,S,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(E,S){return l(this,E,S,!0)},i.prototype.once=function(E,S){return a(S),this.on(E,f(this,E,S)),this},i.prototype.prependOnceListener=function(E,S){return a(S),this.prependListener(E,f(this,E,S)),this},i.prototype.removeListener=function(E,S){var w,x,I,T,D;if(a(S),(x=this._events)===void 0)return this;if((w=x[E])===void 0)return this;if(w===S||w.listener===S)--this._eventsCount==0?this._events=Object.create(null):(delete x[E],x.removeListener&&this.emit("removeListener",E,w.listener||S));else if(typeof w!="function"){for(I=-1,T=w.length-1;T>=0;T--)if(w[T]===S||w[T].listener===S){D=w[T].listener,I=T;break}if(I<0)return this;I===0?w.shift():function(P,Z){for(;Z+1<P.length;Z++)P[Z]=P[Z+1];P.pop()}(w,I),w.length===1&&(x[E]=w[0]),x.removeListener!==void 0&&this.emit("removeListener",E,D||S)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(E){var S,w,x;if((w=this._events)===void 0)return this;if(w.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):w[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete w[E]),this;if(arguments.length===0){var I,T=Object.keys(w);for(x=0;x<T.length;++x)(I=T[x])!=="removeListener"&&this.removeAllListeners(I);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(S=w[E])=="function")this.removeListener(E,S);else if(S!==void 0)for(x=S.length-1;x>=0;x--)this.removeListener(E,S[x]);return this},i.prototype.listeners=function(E){return m(this,E,!0)},i.prototype.rawListeners=function(E){return m(this,E,!1)},i.listenerCount=function(y,E){return typeof y.listenerCount=="function"?y.listenerCount(E):d.call(y,E)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},698:function(t){typeof Object.create=="function"?t.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(r,n){if(n){r.super_=n;var s=function(){};s.prototype=n.prototype,r.prototype=new s,r.prototype.constructor=r}}},606:function(t){var e,r,n=t.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(v){if(e===setTimeout)return setTimeout(v,0);if((e===s||!e)&&setTimeout)return e=setTimeout,setTimeout(v,0);try{return e(v,0)}catch{try{return e.call(null,v,0)}catch{return e.call(this,v,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:s}catch{e=s}try{r=typeof clearTimeout=="function"?clearTimeout:i}catch{r=i}})();var a,c=[],l=!1,p=-1;function f(){l&&a&&(l=!1,a.length?c=a.concat(c):p=-1,c.length&&m())}function m(){if(!l){var v=o(f);l=!0;for(var y=c.length;y;){for(a=c,c=[];++p<y;)a&&a[p].run();p=-1,y=c.length}a=null,l=!1,function(S){if(r===clearTimeout)return clearTimeout(S);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(S);try{return r(S)}catch{try{return r.call(null,S)}catch{return r.call(this,S)}}}(v)}}function d(v,y){this.fun=v,this.array=y}function g(){}n.nextTick=function(v){var y=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)y[E-1]=arguments[E];c.push(new d(v,y)),c.length!==1||l||o(m)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(v){return[]},n.binding=function(v){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(v){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},209:function(t,e,r){var n=r(606),s=65536,i=4294967295,o=r(861).Buffer,a=r.g.crypto||r.g.msCrypto;a&&a.getRandomValues?t.exports=function(l,p){if(l>i)throw new RangeError("requested too many random bytes");var f=o.allocUnsafe(l);if(l>0)if(l>s)for(var m=0;m<l;m+=s)a.getRandomValues(f.slice(m,m+s));else a.getRandomValues(f);return typeof p=="function"?n.nextTick(function(){p(null,f)}):f}:t.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
|
|
227
|
+
Use Chrome, Firefox or Internet Explorer 11`)}},48:function(t){var e={};function r(s,i,o){o||(o=Error);var a=function(c){function l(p,f,m){return c.call(this,function(g,v,y){return typeof i=="string"?i:i(g,v,y)}(p,f,m))||this}return function(f,m){f.prototype=Object.create(m.prototype),f.prototype.constructor=f,f.__proto__=m}(l,c),l}(o);a.prototype.name=o.name,a.prototype.code=s,e[s]=a}function n(s,i){if(Array.isArray(s)){var o=s.length;return s=s.map(function(a){return String(a)}),o>2?"one of ".concat(i," ").concat(s.slice(0,o-1).join(", "),", or ")+s[o-1]:o===2?"one of ".concat(i," ").concat(s[0]," or ").concat(s[1]):"of ".concat(i," ").concat(s[0])}return"of ".concat(i," ").concat(String(s))}r("ERR_INVALID_OPT_VALUE",function(s,i){return'The value "'+i+'" is invalid for option "'+s+'"'},TypeError),r("ERR_INVALID_ARG_TYPE",function(s,i,o){var a,c;if(typeof i=="string"&&function(f,m,d){return f.substr(0,m.length)===m}(i,"not ")?(a="must not be",i=i.replace(/^not /,"")):a="must be",function(f,m,d){return(d===void 0||d>f.length)&&(d=f.length),f.substring(d-m.length,d)===m}(s," argument"))c="The ".concat(s," ").concat(a," ").concat(n(i,"type"));else{var l=function(f,m,d){return typeof d!="number"&&(d=0),!(d+m.length>f.length)&&f.indexOf(m,d)!==-1}(s,".")?"property":"argument";c='The "'.concat(s,'" ').concat(l," ").concat(a," ").concat(n(i,"type"))}return c+=". Received type ".concat(typeof o)},TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),r("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),r("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),r("ERR_STREAM_WRITE_AFTER_END","write after end"),r("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),r("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},382:function(t,e,r){var n=r(606),s=Object.keys||function(d){var g=[];for(var v in d)g.push(v);return g};t.exports=p;var i=r(412),o=r(708);r(698)(p,i);for(var a=s(o.prototype),c=0;c<a.length;c++){var l=a[c];p.prototype[l]||(p.prototype[l]=o.prototype[l])}function p(d){if(!(this instanceof p))return new p(d);i.call(this,d),o.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(m,this)}function m(d){d.end()}Object.defineProperty(p.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(p.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(p.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(p.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(g){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=g,this._writableState.destroyed=g)}})},600:function(t,e,r){t.exports=s;var n=r(610);function s(i){if(!(this instanceof s))return new s(i);n.call(this,i)}r(698)(s,n),s.prototype._transform=function(i,o,a){a(null,i)}},412:function(t,e,r){var n,s=r(606);t.exports=P,P.ReadableState=B,r(7).EventEmitter;var i=function(M,ae){return M.listeners(ae).length},o=r(345),a=r(287).Buffer,c=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},l,p=r(838);l=p&&p.debuglog?p.debuglog("stream"):function(){};var f,m,d,g=r(726),v=r(896),y=r(291).getHighWaterMark,E=r(48).F,S=E.ERR_INVALID_ARG_TYPE,w=E.ERR_STREAM_PUSH_AFTER_EOF,x=E.ERR_METHOD_NOT_IMPLEMENTED,I=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(P,o);var T=v.errorOrDestroy,D=["error","close","destroy","pause","resume"];function B(N,M,ae){n=n||r(382),N=N||{},typeof ae!="boolean"&&(ae=M instanceof n),this.objectMode=!!N.objectMode,ae&&(this.objectMode=this.objectMode||!!N.readableObjectMode),this.highWaterMark=y(this,N,"readableHighWaterMark",ae),this.buffer=new g,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=N.emitClose!==!1,this.autoDestroy=!!N.autoDestroy,this.destroyed=!1,this.defaultEncoding=N.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,N.encoding&&(f||(f=r(141).I),this.decoder=new f(N.encoding),this.encoding=N.encoding)}function P(N){if(n=n||r(382),!(this instanceof P))return new P(N);var M=this instanceof n;this._readableState=new B(N,this,M),this.readable=!0,N&&(typeof N.read=="function"&&(this._read=N.read),typeof N.destroy=="function"&&(this._destroy=N.destroy)),o.call(this)}function Z(N,M,ae,ge,Ce){l("readableAddChunk",M);var Re,_e=N._readableState;if(M===null)_e.reading=!1,function(ze,De){if(l("onEofChunk"),!De.ended){if(De.decoder){var Ge=De.decoder.end();Ge&&Ge.length&&(De.buffer.push(Ge),De.length+=De.objectMode?1:Ge.length)}De.ended=!0,De.sync?Q(ze):(De.needReadable=!1,De.emittedReadable||(De.emittedReadable=!0,se(ze)))}}(N,_e);else if(Ce||(Re=function(ze,De){var Ge;return function(U){return a.isBuffer(U)||U instanceof c}(De)||typeof De=="string"||De===void 0||ze.objectMode||(Ge=new S("chunk",["string","Buffer","Uint8Array"],De)),Ge}(_e,M)),Re)T(N,Re);else if(_e.objectMode||M&&M.length>0)if(typeof M=="string"||_e.objectMode||Object.getPrototypeOf(M)===a.prototype||(M=function(ze){return a.from(ze)}(M)),ge)_e.endEmitted?T(N,new I):V(N,_e,M,!0);else if(_e.ended)T(N,new w);else{if(_e.destroyed)return!1;_e.reading=!1,_e.decoder&&!ae?(M=_e.decoder.write(M),_e.objectMode||M.length!==0?V(N,_e,M,!1):re(N,_e)):V(N,_e,M,!1)}else ge||(_e.reading=!1,re(N,_e));return!_e.ended&&(_e.length<_e.highWaterMark||_e.length===0)}function V(N,M,ae,ge){M.flowing&&M.length===0&&!M.sync?(M.awaitDrain=0,N.emit("data",ae)):(M.length+=M.objectMode?1:ae.length,ge?M.buffer.unshift(ae):M.buffer.push(ae),M.needReadable&&Q(N)),re(N,M)}Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),P.prototype.destroy=v.destroy,P.prototype._undestroy=v.undestroy,P.prototype._destroy=function(N,M){M(N)},P.prototype.push=function(N,M){var ae,ge=this._readableState;return ge.objectMode?ae=!0:typeof N=="string"&&((M=M||ge.defaultEncoding)!==ge.encoding&&(N=a.from(N,M),M=""),ae=!0),Z(this,N,M,!1,ae)},P.prototype.unshift=function(N){return Z(this,N,null,!0,!1)},P.prototype.isPaused=function(){return this._readableState.flowing===!1},P.prototype.setEncoding=function(N){f||(f=r(141).I);var M=new f(N);this._readableState.decoder=M,this._readableState.encoding=this._readableState.decoder.encoding;for(var ae=this._readableState.buffer.head,ge="";ae!==null;)ge+=M.write(ae.data),ae=ae.next;return this._readableState.buffer.clear(),ge!==""&&this._readableState.buffer.push(ge),this._readableState.length=ge.length,this};var J=1073741824;function F(N,M){return N<=0||M.length===0&&M.ended?0:M.objectMode?1:N!=N?M.flowing&&M.length?M.buffer.head.data.length:M.length:(N>M.highWaterMark&&(M.highWaterMark=function(ge){return ge>=J?ge=J:(ge--,ge|=ge>>>1,ge|=ge>>>2,ge|=ge>>>4,ge|=ge>>>8,ge|=ge>>>16,ge++),ge}(N)),N<=M.length?N:M.ended?M.length:(M.needReadable=!0,0))}function Q(N){var M=N._readableState;l("emitReadable",M.needReadable,M.emittedReadable),M.needReadable=!1,M.emittedReadable||(l("emitReadable",M.flowing),M.emittedReadable=!0,s.nextTick(se,N))}function se(N){var M=N._readableState;l("emitReadable_",M.destroyed,M.length,M.ended),M.destroyed||!M.length&&!M.ended||(N.emit("readable"),M.emittedReadable=!1),M.needReadable=!M.flowing&&!M.ended&&M.length<=M.highWaterMark,ie(N)}function re(N,M){M.readingMore||(M.readingMore=!0,s.nextTick(ce,N,M))}function ce(N,M){for(;!M.reading&&!M.ended&&(M.length<M.highWaterMark||M.flowing&&M.length===0);){var ae=M.length;if(l("maybeReadMore read 0"),N.read(0),ae===M.length)break}M.readingMore=!1}function ue(N){var M=N._readableState;M.readableListening=N.listenerCount("readable")>0,M.resumeScheduled&&!M.paused?M.flowing=!0:N.listenerCount("data")>0&&N.resume()}function oe(N){l("readable nexttick read 0"),N.read(0)}function G(N,M){l("resume",M.reading),M.reading||N.read(0),M.resumeScheduled=!1,N.emit("resume"),ie(N),M.flowing&&!M.reading&&N.read(0)}function ie(N){var M=N._readableState;for(l("flow",M.flowing);M.flowing&&N.read()!==null;);}function pe(N,M){return M.length===0?null:(M.objectMode?ae=M.buffer.shift():!N||N>=M.length?(ae=M.decoder?M.buffer.join(""):M.buffer.length===1?M.buffer.first():M.buffer.concat(M.length),M.buffer.clear()):ae=M.buffer.consume(N,M.decoder),ae);var ae}function X(N){var M=N._readableState;l("endReadable",M.endEmitted),M.endEmitted||(M.ended=!0,s.nextTick(le,M,N))}function le(N,M){if(l("endReadableNT",N.endEmitted,N.length),!N.endEmitted&&N.length===0&&(N.endEmitted=!0,M.readable=!1,M.emit("end"),N.autoDestroy)){var ae=M._writableState;(!ae||ae.autoDestroy&&ae.finished)&&M.destroy()}}function q(N,M){for(var ae=0,ge=N.length;ae<ge;ae++)if(N[ae]===M)return ae;return-1}P.prototype.read=function(N){l("read",N),N=parseInt(N,10);var M=this._readableState,ae=N;if(N!==0&&(M.emittedReadable=!1),N===0&&M.needReadable&&((M.highWaterMark!==0?M.length>=M.highWaterMark:M.length>0)||M.ended))return l("read: emitReadable",M.length,M.ended),M.length===0&&M.ended?X(this):Q(this),null;if((N=F(N,M))===0&&M.ended)return M.length===0&&X(this),null;var ge,Ce=M.needReadable;return l("need readable",Ce),(M.length===0||M.length-N<M.highWaterMark)&&l("length less than watermark",Ce=!0),M.ended||M.reading?l("reading or ended",Ce=!1):Ce&&(l("do read"),M.reading=!0,M.sync=!0,M.length===0&&(M.needReadable=!0),this._read(M.highWaterMark),M.sync=!1,M.reading||(N=F(ae,M))),(ge=N>0?pe(N,M):null)===null?(M.needReadable=M.length<=M.highWaterMark,N=0):(M.length-=N,M.awaitDrain=0),M.length===0&&(M.ended||(M.needReadable=!0),ae!==N&&M.ended&&X(this)),ge!==null&&this.emit("data",ge),ge},P.prototype._read=function(N){T(this,new x("_read()"))},P.prototype.pipe=function(N,M){var ae=this,ge=this._readableState;switch(ge.pipesCount){case 0:ge.pipes=N;break;case 1:ge.pipes=[ge.pipes,N];break;default:ge.pipes.push(N)}ge.pipesCount+=1,l("pipe count=%d opts=%j",ge.pipesCount,M);var Ce=(!M||M.end!==!1)&&N!==s.stdout&&N!==s.stderr?_e:O;function Re($,z){l("onunpipe"),$===ae&&z&&z.hasUnpiped===!1&&(z.hasUnpiped=!0,function(){l("cleanup"),N.removeListener("close",rt),N.removeListener("finish",U),N.removeListener("drain",$e),N.removeListener("error",Ge),N.removeListener("unpipe",Re),ae.removeListener("end",_e),ae.removeListener("end",O),ae.removeListener("data",De),ze=!0,!ge.awaitDrain||N._writableState&&!N._writableState.needDrain||$e()}())}function _e(){l("onend"),N.end()}ge.endEmitted?s.nextTick(Ce):ae.once("end",Ce),N.on("unpipe",Re);var $e=function(z){return function(){var fe=z._readableState;l("pipeOnDrain",fe.awaitDrain),fe.awaitDrain&&fe.awaitDrain--,fe.awaitDrain===0&&i(z,"data")&&(fe.flowing=!0,ie(z))}}(ae);N.on("drain",$e);var ze=!1;function De($){l("ondata");var z=N.write($);l("dest.write",z),z===!1&&((ge.pipesCount===1&&ge.pipes===N||ge.pipesCount>1&&q(ge.pipes,N)!==-1)&&!ze&&(l("false write response, pause",ge.awaitDrain),ge.awaitDrain++),ae.pause())}function Ge($){l("onerror",$),O(),N.removeListener("error",Ge),i(N,"error")===0&&T(N,$)}function rt(){N.removeListener("finish",U),O()}function U(){l("onfinish"),N.removeListener("close",rt),O()}function O(){l("unpipe"),ae.unpipe(N)}return ae.on("data",De),function(z,Y,fe){if(typeof z.prependListener=="function")return z.prependListener(Y,fe);z._events&&z._events[Y]?Array.isArray(z._events[Y])?z._events[Y].unshift(fe):z._events[Y]=[fe,z._events[Y]]:z.on(Y,fe)}(N,"error",Ge),N.once("close",rt),N.once("finish",U),N.emit("pipe",ae),ge.flowing||(l("pipe resume"),ae.resume()),N},P.prototype.unpipe=function(N){var M=this._readableState,ae={hasUnpiped:!1};if(M.pipesCount===0)return this;if(M.pipesCount===1)return N&&N!==M.pipes||(N||(N=M.pipes),M.pipes=null,M.pipesCount=0,M.flowing=!1,N&&N.emit("unpipe",this,ae)),this;if(!N){var ge=M.pipes,Ce=M.pipesCount;M.pipes=null,M.pipesCount=0,M.flowing=!1;for(var Re=0;Re<Ce;Re++)ge[Re].emit("unpipe",this,{hasUnpiped:!1});return this}var _e=q(M.pipes,N);return _e===-1||(M.pipes.splice(_e,1),M.pipesCount-=1,M.pipesCount===1&&(M.pipes=M.pipes[0]),N.emit("unpipe",this,ae)),this},P.prototype.on=function(N,M){var ae=o.prototype.on.call(this,N,M),ge=this._readableState;return N==="data"?(ge.readableListening=this.listenerCount("readable")>0,ge.flowing!==!1&&this.resume()):N==="readable"&&(ge.endEmitted||ge.readableListening||(ge.readableListening=ge.needReadable=!0,ge.flowing=!1,ge.emittedReadable=!1,l("on readable",ge.length,ge.reading),ge.length?Q(this):ge.reading||s.nextTick(oe,this))),ae},P.prototype.addListener=P.prototype.on,P.prototype.removeListener=function(N,M){var ae=o.prototype.removeListener.call(this,N,M);return N==="readable"&&s.nextTick(ue,this),ae},P.prototype.removeAllListeners=function(N){var M=o.prototype.removeAllListeners.apply(this,arguments);return N!=="readable"&&N!==void 0||s.nextTick(ue,this),M},P.prototype.resume=function(){var N=this._readableState;return N.flowing||(l("resume"),N.flowing=!N.readableListening,function(ae,ge){ge.resumeScheduled||(ge.resumeScheduled=!0,s.nextTick(G,ae,ge))}(this,N)),N.paused=!1,this},P.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},P.prototype.wrap=function(N){var M=this,ae=this._readableState,ge=!1;for(var Ce in N.on("end",function(){if(l("wrapped end"),ae.decoder&&!ae.ended){var _e=ae.decoder.end();_e&&_e.length&&M.push(_e)}M.push(null)}),N.on("data",function(_e){l("wrapped data"),ae.decoder&&(_e=ae.decoder.write(_e)),ae.objectMode&&_e==null||(ae.objectMode||_e&&_e.length)&&(M.push(_e)||(ge=!0,N.pause()))}),N)this[Ce]===void 0&&typeof N[Ce]=="function"&&(this[Ce]=function($e){return function(){return N[$e].apply(N,arguments)}}(Ce));for(var Re=0;Re<D.length;Re++)N.on(D[Re],this.emit.bind(this,D[Re]));return this._read=function(_e){l("wrapped _read",_e),ge&&(ge=!1,N.resume())},this},typeof Symbol=="function"&&(P.prototype[Symbol.asyncIterator]=function(){return m===void 0&&(m=r(955)),m(this)}),Object.defineProperty(P.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(P.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(P.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(M){this._readableState&&(this._readableState.flowing=M)}}),P._fromList=pe,Object.defineProperty(P.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(P.from=function(N,M){return d===void 0&&(d=r(157)),d(P,N,M)})},610:function(t,e,r){t.exports=p;var n=r(48).F,s=n.ERR_METHOD_NOT_IMPLEMENTED,i=n.ERR_MULTIPLE_CALLBACK,o=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=n.ERR_TRANSFORM_WITH_LENGTH_0,c=r(382);function l(d,g){var v=this._transformState;v.transforming=!1;var y=v.writecb;if(y===null)return this.emit("error",new i);v.writechunk=null,v.writecb=null,g!=null&&this.push(g),y(d);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function p(d){if(!(this instanceof p))return new p(d);c.call(this,d),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",f)}function f(){var d=this;typeof this._flush!="function"||this._readableState.destroyed?m(this,null,null):this._flush(function(g,v){m(d,g,v)})}function m(d,g,v){if(g)return d.emit("error",g);if(v!=null&&d.push(v),d._writableState.length)throw new a;if(d._transformState.transforming)throw new o;return d.push(null)}r(698)(p,c),p.prototype.push=function(d,g){return this._transformState.needTransform=!1,c.prototype.push.call(this,d,g)},p.prototype._transform=function(d,g,v){v(new s("_transform()"))},p.prototype._write=function(d,g,v){var y=this._transformState;if(y.writecb=v,y.writechunk=d,y.writeencoding=g,!y.transforming){var E=this._readableState;(y.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},p.prototype._read=function(d){var g=this._transformState;g.writechunk===null||g.transforming?g.needTransform=!0:(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform))},p.prototype._destroy=function(d,g){c.prototype._destroy.call(this,d,function(v){g(v)})}},708:function(t,e,r){var n,s=r(606);function i(re){var ce=this;this.next=null,this.entry=null,this.finish=function(){(function(oe,G,ie){var pe=oe.entry;for(oe.entry=null;pe;){var X=pe.callback;G.pendingcb--,X(ie),pe=pe.next}G.corkedRequestsFree.next=oe})(ce,re)}}t.exports=P,P.WritableState=B;var o={deprecate:r(643)},a=r(345),c=r(287).Buffer,l=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},p,f=r(896),m=r(291).getHighWaterMark,d=r(48).F,g=d.ERR_INVALID_ARG_TYPE,v=d.ERR_METHOD_NOT_IMPLEMENTED,y=d.ERR_MULTIPLE_CALLBACK,E=d.ERR_STREAM_CANNOT_PIPE,S=d.ERR_STREAM_DESTROYED,w=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,I=d.ERR_UNKNOWN_ENCODING,T=f.errorOrDestroy;function D(){}function B(re,ce,ue){n=n||r(382),re=re||{},typeof ue!="boolean"&&(ue=ce instanceof n),this.objectMode=!!re.objectMode,ue&&(this.objectMode=this.objectMode||!!re.writableObjectMode),this.highWaterMark=m(this,re,"writableHighWaterMark",ue),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var oe=re.decodeStrings===!1;this.decodeStrings=!oe,this.defaultEncoding=re.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(G){(function(pe,X){var le=pe._writableState,q=le.sync,N=le.writecb;if(typeof N!="function")throw new y;if(function(ge){ge.writing=!1,ge.writecb=null,ge.length-=ge.writelen,ge.writelen=0}(le),X)(function(ge,Ce,Re,_e,$e){--Ce.pendingcb,Re?(s.nextTick($e,_e),s.nextTick(se,ge,Ce),ge._writableState.errorEmitted=!0,T(ge,_e)):($e(_e),ge._writableState.errorEmitted=!0,T(ge,_e),se(ge,Ce))})(pe,le,q,X,N);else{var M=F(le)||pe.destroyed;M||le.corked||le.bufferProcessing||!le.bufferedRequest||J(pe,le),q?s.nextTick(V,pe,le,M,N):V(pe,le,M,N)}})(ce,G)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=re.emitClose!==!1,this.autoDestroy=!!re.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function P(re){var ce=this instanceof(n=n||r(382));if(!ce&&!p.call(P,this))return new P(re);this._writableState=new B(re,this,ce),this.writable=!0,re&&(typeof re.write=="function"&&(this._write=re.write),typeof re.writev=="function"&&(this._writev=re.writev),typeof re.destroy=="function"&&(this._destroy=re.destroy),typeof re.final=="function"&&(this._final=re.final)),a.call(this)}function Z(re,ce,ue,oe,G,ie,pe){ce.writelen=oe,ce.writecb=pe,ce.writing=!0,ce.sync=!0,ce.destroyed?ce.onwrite(new S("write")):ue?re._writev(G,ce.onwrite):re._write(G,ie,ce.onwrite),ce.sync=!1}function V(re,ce,ue,oe){ue||function(ie,pe){pe.length===0&&pe.needDrain&&(pe.needDrain=!1,ie.emit("drain"))}(re,ce),ce.pendingcb--,oe(),se(re,ce)}function J(re,ce){ce.bufferProcessing=!0;var ue=ce.bufferedRequest;if(re._writev&&ue&&ue.next){var oe=ce.bufferedRequestCount,G=new Array(oe),ie=ce.corkedRequestsFree;ie.entry=ue;for(var pe=0,X=!0;ue;)G[pe]=ue,ue.isBuf||(X=!1),ue=ue.next,pe+=1;G.allBuffers=X,Z(re,ce,!0,ce.length,G,"",ie.finish),ce.pendingcb++,ce.lastBufferedRequest=null,ie.next?(ce.corkedRequestsFree=ie.next,ie.next=null):ce.corkedRequestsFree=new i(ce),ce.bufferedRequestCount=0}else{for(;ue;){var le=ue.chunk,q=ue.encoding,N=ue.callback;if(Z(re,ce,!1,ce.objectMode?1:le.length,le,q,N),ue=ue.next,ce.bufferedRequestCount--,ce.writing)break}ue===null&&(ce.lastBufferedRequest=null)}ce.bufferedRequest=ue,ce.bufferProcessing=!1}function F(re){return re.ending&&re.length===0&&re.bufferedRequest===null&&!re.finished&&!re.writing}function Q(re,ce){re._final(function(ue){ce.pendingcb--,ue&&T(re,ue),ce.prefinished=!0,re.emit("prefinish"),se(re,ce)})}function se(re,ce){var ue=F(ce);if(ue&&(function(ie,pe){pe.prefinished||pe.finalCalled||(typeof ie._final!="function"||pe.destroyed?(pe.prefinished=!0,ie.emit("prefinish")):(pe.pendingcb++,pe.finalCalled=!0,s.nextTick(Q,ie,pe)))}(re,ce),ce.pendingcb===0&&(ce.finished=!0,re.emit("finish"),ce.autoDestroy))){var oe=re._readableState;(!oe||oe.autoDestroy&&oe.endEmitted)&&re.destroy()}return ue}r(698)(P,a),B.prototype.getBuffer=function(){for(var ce=this.bufferedRequest,ue=[];ce;)ue.push(ce),ce=ce.next;return ue},function(){try{Object.defineProperty(B.prototype,"buffer",{get:o.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}}(),typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(p=Function.prototype[Symbol.hasInstance],Object.defineProperty(P,Symbol.hasInstance,{value:function(ce){return!!p.call(this,ce)||this===P&&ce&&ce._writableState instanceof B}})):p=function(ce){return ce instanceof this},P.prototype.pipe=function(){T(this,new E)},P.prototype.write=function(re,ce,ue){var oe=this._writableState,G=!1,ie=!oe.objectMode&&function(X){return c.isBuffer(X)||X instanceof l}(re);return ie&&!c.isBuffer(re)&&(re=function(X){return c.from(X)}(re)),typeof ce=="function"&&(ue=ce,ce=null),ie?ce="buffer":ce||(ce=oe.defaultEncoding),typeof ue!="function"&&(ue=D),oe.ending?function(X,le){var q=new x;T(X,q),s.nextTick(le,q)}(this,ue):(ie||function(X,le,q,N){var M;return q===null?M=new w:typeof q=="string"||le.objectMode||(M=new g("chunk",["string","Buffer"],q)),!M||(T(X,M),s.nextTick(N,M),!1)}(this,oe,re,ue))&&(oe.pendingcb++,G=function(X,le,q,N,M,ae){if(!q){var ge=function(ze,De,Ge){return ze.objectMode||ze.decodeStrings===!1||typeof De!="string"||(De=c.from(De,Ge)),De}(le,N,M);N!==ge&&(q=!0,M="buffer",N=ge)}var Ce=le.objectMode?1:N.length;le.length+=Ce;var Re=le.length<le.highWaterMark;if(Re||(le.needDrain=!0),le.writing||le.corked){var _e=le.lastBufferedRequest;le.lastBufferedRequest={chunk:N,encoding:M,isBuf:q,callback:ae,next:null},_e?_e.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else Z(X,le,!1,Ce,N,M,ae);return Re}(this,oe,ie,re,ce,ue)),G},P.prototype.cork=function(){this._writableState.corked++},P.prototype.uncork=function(){var re=this._writableState;re.corked&&(re.corked--,re.writing||re.corked||re.bufferProcessing||!re.bufferedRequest||J(this,re))},P.prototype.setDefaultEncoding=function(ce){if(typeof ce=="string"&&(ce=ce.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((ce+"").toLowerCase())>-1))throw new I(ce);return this._writableState.defaultEncoding=ce,this},Object.defineProperty(P.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(P.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),P.prototype._write=function(re,ce,ue){ue(new v("_write()"))},P.prototype._writev=null,P.prototype.end=function(re,ce,ue){var oe=this._writableState;return typeof re=="function"?(ue=re,re=null,ce=null):typeof ce=="function"&&(ue=ce,ce=null),re!=null&&this.write(re,ce),oe.corked&&(oe.corked=1,this.uncork()),oe.ending||function(ie,pe,X){pe.ending=!0,se(ie,pe),X&&(pe.finished?s.nextTick(X):ie.once("finish",X)),pe.ended=!0,ie.writable=!1}(this,oe,ue),this},Object.defineProperty(P.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(P.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(ce){this._writableState&&(this._writableState.destroyed=ce)}}),P.prototype.destroy=f.destroy,P.prototype._undestroy=f.undestroy,P.prototype._destroy=function(re,ce){ce(re)}},955:function(t,e,r){var n,s=r(606);function i(w,x,I){return(x=function(D){var B=function(Z,V){if(typeof Z!="object"||Z===null)return Z;var J=Z[Symbol.toPrimitive];if(J!==void 0){var F=J.call(Z,V);if(typeof F!="object")return F;throw new TypeError("@@toPrimitive must return a primitive value.")}return(V==="string"?String:Number)(Z)}(D,"string");return typeof B=="symbol"?B:String(B)}(x))in w?Object.defineProperty(w,x,{value:I,enumerable:!0,configurable:!0,writable:!0}):w[x]=I,w}var o=r(238),a=Symbol("lastResolve"),c=Symbol("lastReject"),l=Symbol("error"),p=Symbol("ended"),f=Symbol("lastPromise"),m=Symbol("handlePromise"),d=Symbol("stream");function g(w,x){return{value:w,done:x}}function v(w){var x=w[a];if(x!==null){var I=w[d].read();I!==null&&(w[f]=null,w[a]=null,w[c]=null,x(g(I,!1)))}}function y(w){s.nextTick(v,w)}var E=Object.getPrototypeOf(function(){}),S=Object.setPrototypeOf((i(n={get stream(){return this[d]},next:function(){var x=this,I=this[l];if(I!==null)return Promise.reject(I);if(this[p])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise(function(P,Z){s.nextTick(function(){x[l]?Z(x[l]):P(g(void 0,!0))})});var T,D=this[f];if(D)T=new Promise(function(Z,V){return function(J,F){Z.then(function(){V[p]?J(g(void 0,!0)):V[m](J,F)},F)}}(D,this));else{var B=this[d].read();if(B!==null)return Promise.resolve(g(B,!1));T=new Promise(this[m])}return this[f]=T,T}},Symbol.asyncIterator,function(){return this}),i(n,"return",function(){var x=this;return new Promise(function(I,T){x[d].destroy(null,function(D){D?T(D):I(g(void 0,!0))})})}),n),E);t.exports=function(x){var I,T=Object.create(S,(i(I={},d,{value:x,writable:!0}),i(I,a,{value:null,writable:!0}),i(I,c,{value:null,writable:!0}),i(I,l,{value:null,writable:!0}),i(I,p,{value:x._readableState.endEmitted,writable:!0}),i(I,m,{value:function(B,P){var Z=T[d].read();Z?(T[f]=null,T[a]=null,T[c]=null,B(g(Z,!1))):(T[a]=B,T[c]=P)},writable:!0}),I));return T[f]=null,o(x,function(D){if(D&&D.code!=="ERR_STREAM_PREMATURE_CLOSE"){var B=T[c];return B!==null&&(T[f]=null,T[a]=null,T[c]=null,B(D)),void(T[l]=D)}var P=T[a];P!==null&&(T[f]=null,T[a]=null,T[c]=null,P(g(void 0,!0))),T[p]=!0}),x.on("readable",y.bind(null,T)),T}},726:function(t,e,r){function n(m,d){var g=Object.keys(m);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(m);d&&(v=v.filter(function(y){return Object.getOwnPropertyDescriptor(m,y).enumerable})),g.push.apply(g,v)}return g}function s(m){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?n(Object(g),!0).forEach(function(v){i(m,v,g[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(m,Object.getOwnPropertyDescriptors(g)):n(Object(g)).forEach(function(v){Object.defineProperty(m,v,Object.getOwnPropertyDescriptor(g,v))})}return m}function i(m,d,g){return(d=a(d))in m?Object.defineProperty(m,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):m[d]=g,m}function o(m,d){for(var g=0;g<d.length;g++){var v=d[g];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(m,a(v.key),v)}}function a(m){var d=function(v,y){if(typeof v!="object"||v===null)return v;var E=v[Symbol.toPrimitive];if(E!==void 0){var S=E.call(v,y);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(v)}(m,"string");return typeof d=="symbol"?d:String(d)}var c=r(287).Buffer,l=r(340).inspect,p=l&&l.custom||"inspect";function f(m,d,g){c.prototype.copy.call(m,d,g)}t.exports=function(){function m(){(function(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")})(this,m),this.head=null,this.tail=null,this.length=0}return function(g,v,y){return v&&o(g.prototype,v),Object.defineProperty(g,"prototype",{writable:!1}),g}(m,[{key:"push",value:function(g){var v={data:g,next:null};this.length>0?this.tail.next=v:this.head=v,this.tail=v,++this.length}},{key:"unshift",value:function(g){var v={data:g,next:this.head};this.length===0&&(this.tail=v),this.head=v,++this.length}},{key:"shift",value:function(){if(this.length!==0){var g=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,g}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(g){if(this.length===0)return"";for(var v=this.head,y=""+v.data;v=v.next;)y+=g+v.data;return y}},{key:"concat",value:function(g){if(this.length===0)return c.alloc(0);for(var v=c.allocUnsafe(g>>>0),y=this.head,E=0;y;)f(y.data,v,E),E+=y.data.length,y=y.next;return v}},{key:"consume",value:function(g,v){var y;return g<this.head.data.length?(y=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):y=g===this.head.data.length?this.shift():v?this._getString(g):this._getBuffer(g),y}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var v=this.head,y=1,E=v.data;for(g-=E.length;v=v.next;){var S=v.data,w=g>S.length?S.length:g;if(w===S.length?E+=S:E+=S.slice(0,g),(g-=w)===0){w===S.length?(++y,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=S.slice(w));break}++y}return this.length-=y,E}},{key:"_getBuffer",value:function(g){var v=c.allocUnsafe(g),y=this.head,E=1;for(y.data.copy(v),g-=y.data.length;y=y.next;){var S=y.data,w=g>S.length?S.length:g;if(S.copy(v,v.length-g,0,w),(g-=w)===0){w===S.length?(++E,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=S.slice(w));break}++E}return this.length-=E,v}},{key:p,value:function(g,v){return l(this,s(s({},v),{},{depth:0,customInspect:!1}))}}]),m}()},896:function(t,e,r){var n=r(606);function s(a,c){o(a,c),i(a)}function i(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function o(a,c){a.emit("error",c)}t.exports={destroy:function(c,l){var p=this,f=this._readableState&&this._readableState.destroyed,m=this._writableState&&this._writableState.destroyed;return f||m?(l?l(c):c&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(o,this,c)):n.nextTick(o,this,c)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(c||null,function(d){!l&&d?p._writableState?p._writableState.errorEmitted?n.nextTick(i,p):(p._writableState.errorEmitted=!0,n.nextTick(s,p,d)):n.nextTick(s,p,d):l?(n.nextTick(i,p),l(d)):n.nextTick(i,p)}),this)},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(c,l){var p=c._readableState,f=c._writableState;p&&p.autoDestroy||f&&f.autoDestroy?c.destroy(l):c.emit("error",l)}}},238:function(t,e,r){var n=r(48).F.ERR_STREAM_PREMATURE_CLOSE;function s(){}t.exports=function i(o,a,c){if(typeof a=="function")return i(o,null,a);a||(a={}),c=function(x){var I=!1;return function(){if(!I){I=!0;for(var T=arguments.length,D=new Array(T),B=0;B<T;B++)D[B]=arguments[B];x.apply(this,D)}}}(c||s);var l=a.readable||a.readable!==!1&&o.readable,p=a.writable||a.writable!==!1&&o.writable,f=function(){o.writable||d()},m=o._writableState&&o._writableState.finished,d=function(){p=!1,m=!0,l||c.call(o)},g=o._readableState&&o._readableState.endEmitted,v=function(){l=!1,g=!0,p||c.call(o)},y=function(x){c.call(o,x)},E=function(){var x;return l&&!g?(o._readableState&&o._readableState.ended||(x=new n),c.call(o,x)):p&&!m?(o._writableState&&o._writableState.ended||(x=new n),c.call(o,x)):void 0},S=function(){o.req.on("finish",d)};return function(x){return x.setHeader&&typeof x.abort=="function"}(o)?(o.on("complete",d),o.on("abort",E),o.req?S():o.on("request",S)):p&&!o._writableState&&(o.on("end",f),o.on("close",f)),o.on("end",v),o.on("finish",d),a.error!==!1&&o.on("error",y),o.on("close",E),function(){o.removeListener("complete",d),o.removeListener("abort",E),o.removeListener("request",S),o.req&&o.req.removeListener("finish",d),o.removeListener("end",f),o.removeListener("close",f),o.removeListener("finish",d),o.removeListener("end",v),o.removeListener("error",y),o.removeListener("close",E)}}},157:function(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},758:function(t,e,r){var n,s=r(48).F,i=s.ERR_MISSING_ARGS,o=s.ERR_STREAM_DESTROYED;function a(p){if(p)throw p}function c(p){p()}function l(p,f){return p.pipe(f)}t.exports=function(){for(var f=arguments.length,m=new Array(f),d=0;d<f;d++)m[d]=arguments[d];var g,v=function(S){return S.length?typeof S[S.length-1]!="function"?a:S.pop():a}(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new i("streams");var y=m.map(function(E,S){var w=S<m.length-1;return function(I,T,D,B){B=function(J){var F=!1;return function(){F||(F=!0,J.apply(void 0,arguments))}}(B);var P=!1;I.on("close",function(){P=!0}),n===void 0&&(n=r(238)),n(I,{readable:T,writable:D},function(V){if(V)return B(V);P=!0,B()});var Z=!1;return function(V){if(!P&&!Z)return Z=!0,function(F){return F.setHeader&&typeof F.abort=="function"}(I)?I.abort():typeof I.destroy=="function"?I.destroy():void B(V||new o("pipe"))}}(E,w,S>0,function(x){g||(g=x),x&&y.forEach(c),w||(y.forEach(c),v(g))})});return m.reduce(l)}},291:function(t,e,r){var n=r(48).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(i,o,a,c){var l=function(f,m,d){return f.highWaterMark!=null?f.highWaterMark:m?f[d]:null}(o,c,a);if(l!=null){if(!isFinite(l)||Math.floor(l)!==l||l<0)throw new n(c?a:"highWaterMark",l);return Math.floor(l)}return i.objectMode?16:16384}}},345:function(t,e,r){t.exports=r(7).EventEmitter},861:function(t,e,r){var n=r(287),s=n.Buffer;function i(a,c){for(var l in a)c[l]=a[l]}function o(a,c,l){return s(a,c,l)}s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=o),o.prototype=Object.create(s.prototype),i(s,o),o.from=function(a,c,l){if(typeof a=="number")throw new TypeError("Argument must not be a number");return s(a,c,l)},o.alloc=function(a,c,l){if(typeof a!="number")throw new TypeError("Argument must be a number");var p=s(a);return c!==void 0?typeof l=="string"?p.fill(c,l):p.fill(c):p.fill(0),p},o.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return s(a)},o.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(a)}},392:function(t,e,r){var n=r(861).Buffer,s=r(496);function i(o,a){this._block=n.alloc(o),this._finalSize=a,this._blockSize=o,this._len=0}i.prototype.update=function(o,a){o=s(o,a||"utf8");for(var c=this._block,l=this._blockSize,p=o.length,f=this._len,m=0;m<p;){for(var d=f%l,g=Math.min(p-m,l-d),v=0;v<g;v++)c[d+v]=o[m+v];m+=g,(f+=g)%l==0&&this._update(c)}return this._len+=p,this},i.prototype.digest=function(o){var a=this._len%this._blockSize;this._block[a]=128,this._block.fill(0,a+1),a>=this._finalSize&&(this._update(this._block),this._block.fill(0));var c=8*this._len;if(c<=4294967295)this._block.writeUInt32BE(c,this._blockSize-4);else{var l=(4294967295&c)>>>0,p=(c-l)/4294967296;this._block.writeUInt32BE(p,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var f=this._hash();return o?f.toString(o):f},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},802:function(t,e,r){t.exports=function(s){var i=s.toLowerCase(),o=t.exports[i];if(!o)throw new Error(i+" is not supported (we accept pull requests)");return new o},t.exports.sha=r(816),t.exports.sha1=r(737),t.exports.sha224=r(710),t.exports.sha256=r(107),t.exports.sha384=r(827),t.exports.sha512=r(890)},816:function(t,e,r){var n=r(698),s=r(392),i=r(861).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,s.call(this,64,56)}function l(f){return f<<30|f>>>2}function p(f,m,d,g){return f===0?m&d|~m&g:f===2?m&d|m&g|d&g:m^d^g}n(c,s),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(f){for(var m,d=this._w,g=0|this._a,v=0|this._b,y=0|this._c,E=0|this._d,S=0|this._e,w=0;w<16;++w)d[w]=f.readInt32BE(4*w);for(;w<80;++w)d[w]=d[w-3]^d[w-8]^d[w-14]^d[w-16];for(var x=0;x<80;++x){var I=~~(x/20),T=0|((m=g)<<5|m>>>27)+p(I,v,y,E)+S+d[x]+o[I];S=E,E=y,y=l(v),v=g,g=T}this._a=g+this._a|0,this._b=v+this._b|0,this._c=y+this._c|0,this._d=E+this._d|0,this._e=S+this._e|0},c.prototype._hash=function(){var f=i.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},t.exports=c},737:function(t,e,r){var n=r(698),s=r(392),i=r(861).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,s.call(this,64,56)}function l(m){return m<<5|m>>>27}function p(m){return m<<30|m>>>2}function f(m,d,g,v){return m===0?d&g|~d&v:m===2?d&g|d&v|g&v:d^g^v}n(c,s),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(m){for(var d,g=this._w,v=0|this._a,y=0|this._b,E=0|this._c,S=0|this._d,w=0|this._e,x=0;x<16;++x)g[x]=m.readInt32BE(4*x);for(;x<80;++x)g[x]=(d=g[x-3]^g[x-8]^g[x-14]^g[x-16])<<1|d>>>31;for(var I=0;I<80;++I){var T=~~(I/20),D=l(v)+f(T,y,E,S)+w+g[I]+o[T]|0;w=S,S=E,E=p(y),y=v,v=D}this._a=v+this._a|0,this._b=y+this._b|0,this._c=E+this._c|0,this._d=S+this._d|0,this._e=w+this._e|0},c.prototype._hash=function(){var m=i.allocUnsafe(20);return m.writeInt32BE(0|this._a,0),m.writeInt32BE(0|this._b,4),m.writeInt32BE(0|this._c,8),m.writeInt32BE(0|this._d,12),m.writeInt32BE(0|this._e,16),m},t.exports=c},710:function(t,e,r){var n=r(698),s=r(107),i=r(392),o=r(861).Buffer,a=new Array(64);function c(){this.init(),this._w=a,i.call(this,64,56)}n(c,s),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var l=o.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},t.exports=c},107:function(t,e,r){var n=r(698),s=r(392),i=r(861).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],a=new Array(64);function c(){this.init(),this._w=a,s.call(this,64,56)}function l(g,v,y){return y^g&(v^y)}function p(g,v,y){return g&v|y&(g|v)}function f(g){return(g>>>2|g<<30)^(g>>>13|g<<19)^(g>>>22|g<<10)}function m(g){return(g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7)}function d(g){return(g>>>7|g<<25)^(g>>>18|g<<14)^g>>>3}n(c,s),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(g){for(var v,y=this._w,E=0|this._a,S=0|this._b,w=0|this._c,x=0|this._d,I=0|this._e,T=0|this._f,D=0|this._g,B=0|this._h,P=0;P<16;++P)y[P]=g.readInt32BE(4*P);for(;P<64;++P)y[P]=0|(((v=y[P-2])>>>17|v<<15)^(v>>>19|v<<13)^v>>>10)+y[P-7]+d(y[P-15])+y[P-16];for(var Z=0;Z<64;++Z){var V=B+m(I)+l(I,T,D)+o[Z]+y[Z]|0,J=f(E)+p(E,S,w)|0;B=D,D=T,T=I,I=x+V|0,x=w,w=S,S=E,E=V+J|0}this._a=E+this._a|0,this._b=S+this._b|0,this._c=w+this._c|0,this._d=x+this._d|0,this._e=I+this._e|0,this._f=T+this._f|0,this._g=D+this._g|0,this._h=B+this._h|0},c.prototype._hash=function(){var g=i.allocUnsafe(32);return g.writeInt32BE(this._a,0),g.writeInt32BE(this._b,4),g.writeInt32BE(this._c,8),g.writeInt32BE(this._d,12),g.writeInt32BE(this._e,16),g.writeInt32BE(this._f,20),g.writeInt32BE(this._g,24),g.writeInt32BE(this._h,28),g},t.exports=c},827:function(t,e,r){var n=r(698),s=r(890),i=r(392),o=r(861).Buffer,a=new Array(160);function c(){this.init(),this._w=a,i.call(this,128,112)}n(c,s),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var l=o.allocUnsafe(48);function p(f,m,d){l.writeInt32BE(f,d),l.writeInt32BE(m,d+4)}return p(this._ah,this._al,0),p(this._bh,this._bl,8),p(this._ch,this._cl,16),p(this._dh,this._dl,24),p(this._eh,this._el,32),p(this._fh,this._fl,40),l},t.exports=c},890:function(t,e,r){var n=r(698),s=r(392),i=r(861).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,s.call(this,128,112)}function l(S,w,x){return x^S&(w^x)}function p(S,w,x){return S&w|x&(S|w)}function f(S,w){return(S>>>28|w<<4)^(w>>>2|S<<30)^(w>>>7|S<<25)}function m(S,w){return(S>>>14|w<<18)^(S>>>18|w<<14)^(w>>>9|S<<23)}function d(S,w){return(S>>>1|w<<31)^(S>>>8|w<<24)^S>>>7}function g(S,w){return(S>>>1|w<<31)^(S>>>8|w<<24)^(S>>>7|w<<25)}function v(S,w){return(S>>>19|w<<13)^(w>>>29|S<<3)^S>>>6}function y(S,w){return(S>>>19|w<<13)^(w>>>29|S<<3)^(S>>>6|w<<26)}function E(S,w){return S>>>0<w>>>0?1:0}n(c,s),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(S){for(var w=this._w,x=0|this._ah,I=0|this._bh,T=0|this._ch,D=0|this._dh,B=0|this._eh,P=0|this._fh,Z=0|this._gh,V=0|this._hh,J=0|this._al,F=0|this._bl,Q=0|this._cl,se=0|this._dl,re=0|this._el,ce=0|this._fl,ue=0|this._gl,oe=0|this._hl,G=0;G<32;G+=2)w[G]=S.readInt32BE(4*G),w[G+1]=S.readInt32BE(4*G+4);for(;G<160;G+=2){var ie=w[G-30],pe=w[G-30+1],X=d(ie,pe),le=g(pe,ie),q=v(ie=w[G-4],pe=w[G-4+1]),N=y(pe,ie),M=w[G-14],ae=w[G-14+1],ge=w[G-32],Ce=w[G-32+1],Re=le+ae|0,_e=X+M+E(Re,le)|0;_e=(_e=_e+q+E(Re=Re+N|0,N)|0)+ge+E(Re=Re+Ce|0,Ce)|0,w[G]=_e,w[G+1]=Re}for(var $e=0;$e<160;$e+=2){_e=w[$e],Re=w[$e+1];var ze=p(x,I,T),De=p(J,F,Q),Ge=f(x,J),rt=f(J,x),U=m(B,re),O=m(re,B),$=o[$e],z=o[$e+1],Y=l(B,P,Z),fe=l(re,ce,ue),me=oe+O|0,Ae=V+U+E(me,oe)|0;Ae=(Ae=(Ae=Ae+Y+E(me=me+fe|0,fe)|0)+$+E(me=me+z|0,z)|0)+_e+E(me=me+Re|0,Re)|0;var Ve=rt+De|0,k=Ge+ze+E(Ve,rt)|0;V=Z,oe=ue,Z=P,ue=ce,P=B,ce=re,B=D+Ae+E(re=se+me|0,se)|0,D=T,se=Q,T=I,Q=F,I=x,F=J,x=Ae+k+E(J=me+Ve|0,me)|0}this._al=this._al+J|0,this._bl=this._bl+F|0,this._cl=this._cl+Q|0,this._dl=this._dl+se|0,this._el=this._el+re|0,this._fl=this._fl+ce|0,this._gl=this._gl+ue|0,this._hl=this._hl+oe|0,this._ah=this._ah+x+E(this._al,J)|0,this._bh=this._bh+I+E(this._bl,F)|0,this._ch=this._ch+T+E(this._cl,Q)|0,this._dh=this._dh+D+E(this._dl,se)|0,this._eh=this._eh+B+E(this._el,re)|0,this._fh=this._fh+P+E(this._fl,ce)|0,this._gh=this._gh+Z+E(this._gl,ue)|0,this._hh=this._hh+V+E(this._hl,oe)|0},c.prototype._hash=function(){var S=i.allocUnsafe(64);function w(x,I,T){S.writeInt32BE(x,T),S.writeInt32BE(I,T+4)}return w(this._ah,this._al,0),w(this._bh,this._bl,8),w(this._ch,this._cl,16),w(this._dh,this._dl,24),w(this._eh,this._el,32),w(this._fh,this._fl,40),w(this._gh,this._gl,48),w(this._hh,this._hl,56),S},t.exports=c},310:function(t,e,r){t.exports=s;var n=r(7).EventEmitter;function s(){n.call(this)}r(698)(s,n),s.Readable=r(412),s.Writable=r(708),s.Duplex=r(382),s.Transform=r(610),s.PassThrough=r(600),s.finished=r(238),s.pipeline=r(758),s.Stream=s,s.prototype.pipe=function(i,o){var a=this;function c(v){i.writable&&i.write(v)===!1&&a.pause&&a.pause()}function l(){a.readable&&a.resume&&a.resume()}a.on("data",c),i.on("drain",l),i._isStdio||o&&o.end===!1||(a.on("end",f),a.on("close",m));var p=!1;function f(){p||(p=!0,i.end())}function m(){p||(p=!0,typeof i.destroy=="function"&&i.destroy())}function d(v){if(g(),n.listenerCount(this,"error")===0)throw v}function g(){a.removeListener("data",c),i.removeListener("drain",l),a.removeListener("end",f),a.removeListener("close",m),a.removeListener("error",d),i.removeListener("error",d),a.removeListener("end",g),a.removeListener("close",g),i.removeListener("close",g)}return a.on("error",d),i.on("error",d),a.on("end",g),a.on("close",g),i.on("close",g),i.emit("pipe",a),i}},141:function(t,e,r){var n=r(861).Buffer,s=n.isEncoding||function(g){switch((g=""+g)&&g.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function i(g){var v;switch(this.encoding=function(E){var S=function(x){if(!x)return"utf8";for(var I;;)switch(x){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return x;default:if(I)return;x=(""+x).toLowerCase(),I=!0}}(E);if(typeof S!="string"&&(n.isEncoding===s||!s(E)))throw new Error("Unknown encoding: "+E);return S||E}(g),this.encoding){case"utf16le":this.text=c,this.end=l,v=4;break;case"utf8":this.fillLast=a,v=4;break;case"base64":this.text=p,this.end=f,v=3;break;default:return this.write=m,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(v)}function o(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function a(g){var v=this.lastTotal-this.lastNeed,y=function(S,w,x){if((192&w[0])!=128)return S.lastNeed=0,"�";if(S.lastNeed>1&&w.length>1){if((192&w[1])!=128)return S.lastNeed=1,"�";if(S.lastNeed>2&&w.length>2&&(192&w[2])!=128)return S.lastNeed=2,"�"}}(this,g);return y!==void 0?y:this.lastNeed<=g.length?(g.copy(this.lastChar,v,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,v,0,g.length),void(this.lastNeed-=g.length))}function c(g,v){if((g.length-v)%2==0){var y=g.toString("utf16le",v);if(y){var E=y.charCodeAt(y.length-1);if(E>=55296&&E<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1],y.slice(0,-1)}return y}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",v,g.length-1)}function l(g){var v=g&&g.length?this.write(g):"";if(this.lastNeed){var y=this.lastTotal-this.lastNeed;return v+this.lastChar.toString("utf16le",0,y)}return v}function p(g,v){var y=(g.length-v)%3;return y===0?g.toString("base64",v):(this.lastNeed=3-y,this.lastTotal=3,y===1?this.lastChar[0]=g[g.length-1]:(this.lastChar[0]=g[g.length-2],this.lastChar[1]=g[g.length-1]),g.toString("base64",v,g.length-y))}function f(g){var v=g&&g.length?this.write(g):"";return this.lastNeed?v+this.lastChar.toString("base64",0,3-this.lastNeed):v}function m(g){return g.toString(this.encoding)}function d(g){return g&&g.length?this.write(g):""}e.I=i,i.prototype.write=function(g){if(g.length===0)return"";var v,y;if(this.lastNeed){if((v=this.fillLast(g))===void 0)return"";y=this.lastNeed,this.lastNeed=0}else y=0;return y<g.length?v?v+this.text(g,y):this.text(g,y):v||""},i.prototype.end=function(v){var y=v&&v.length?this.write(v):"";return this.lastNeed?y+"�":y},i.prototype.text=function(v,y){var E=function(x,I,T){var D=I.length-1;if(D<T)return 0;var B=o(I[D]);return B>=0?(B>0&&(x.lastNeed=B-1),B):--D<T||B===-2?0:(B=o(I[D]),B>=0?(B>0&&(x.lastNeed=B-2),B):--D<T||B===-2?0:(B=o(I[D]),B>=0?(B>0&&(B===2?B=0:x.lastNeed=B-3),B):0))}(this,v,y);if(!this.lastNeed)return v.toString("utf8",y);this.lastTotal=E;var S=v.length-(E-this.lastNeed);return v.copy(this.lastChar,0,S),v.toString("utf8",y,S)},i.prototype.fillLast=function(g){if(this.lastNeed<=g.length)return g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);g.copy(this.lastChar,this.lastTotal-this.lastNeed,0,g.length),this.lastNeed-=g.length}},643:function(t,e,r){function n(s){try{if(!r.g.localStorage)return!1}catch{return!1}var i=r.g.localStorage[s];return i!=null&&String(i).toLowerCase()==="true"}t.exports=function(i,o){if(n("noDeprecation"))return i;var a=!1;return function(){if(!a){if(n("throwDeprecation"))throw new Error(o);n("traceDeprecation")?console.trace(o):console.warn(o),a=!0}return i.apply(this,arguments)}}},499:function(t){var e={"&":"&",'"':""","'":"'","<":"<",">":">"};t.exports=function(n){return n&&n.replace?n.replace(/([&"<>'])/g,function(s,i){return e[i]}):n}},123:function(t,e,r){var n=r(606),s=r(499),i=r(310).Stream;function o(c,l,p){var f,m=function(w,x){return new Array(x||0).join(w||"")}(l,p=p||0),d=c;if(typeof c=="object"&&(d=c[f=Object.keys(c)[0]])&&d._elem)return d._elem.name=f,d._elem.icount=p,d._elem.indent=l,d._elem.indents=m,d._elem.interrupt=d,d._elem;var g,v=[],y=[];function E(S){Object.keys(S).forEach(function(w){v.push(function(I,T){return I+'="'+s(T)+'"'}(w,S[w]))})}switch(typeof d){case"object":if(d===null)break;d._attr&&E(d._attr),d._cdata&&y.push(("<![CDATA["+d._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),d.forEach&&(g=!1,y.push(""),d.forEach(function(S){typeof S=="object"?Object.keys(S)[0]=="_attr"?E(S._attr):y.push(o(S,l,p+1)):(y.pop(),g=!0,y.push(s(S)))}),g||y.push(""));break;default:y.push(s(d))}return{name:f,interrupt:!1,attributes:v,content:y,icount:p,indents:m,indent:l}}function a(c,l,p){if(typeof l!="object")return c(!1,l);var f=l.interrupt?1:l.content.length;function m(){for(;l.content.length;){var g=l.content.shift();if(g!==void 0){if(d(g))return;a(c,g)}}c(!1,(f>1?l.indents:"")+(l.name?"</"+l.name+">":"")+(l.indent&&!p?`
|
|
228
|
+
`:"")),p&&p()}function d(g){return!!g.interrupt&&(g.interrupt.append=c,g.interrupt.end=m,g.interrupt=!1,c(!0),!0)}if(c(!1,l.indents+(l.name?"<"+l.name:"")+(l.attributes.length?" "+l.attributes.join(" "):"")+(f?l.name?">":"":l.name?"/>":"")+(l.indent&&f>1?`
|
|
229
|
+
`:"")),!f)return c(!1,l.indent?`
|
|
230
|
+
`:"");d(l)||m()}t.exports=function(l,p){typeof p!="object"&&(p={indent:p});var f=p.stream?new i:null,m="",d=!1,g=p.indent?p.indent===!0?" ":p.indent:"",v=!0;function y(x){v?n.nextTick(x):x()}function E(x,I){if(I!==void 0&&(m+=I),x&&!d&&(f=f||new i,d=!0),x&&d){var T=m;y(function(){f.emit("data",T)}),m=""}}function S(x,I){a(E,o(x,g,g?1:0),I)}function w(){if(f){var x=m;y(function(){f.emit("data",x),f.emit("end"),f.readable=!1,f.emit("close")})}}return y(function(){v=!1}),p.declaration&&function(I){var T={version:"1.0",encoding:I.encoding||"UTF-8"};I.standalone&&(T.standalone=I.standalone),S({"?xml":{_attr:T}}),m=m.replace("/>","?>")}(p.declaration),l&&l.forEach?l.forEach(function(x,I){var T;I+1===l.length&&(T=w),S(x,T)}):S(l,w),f?(f.readable=!0,f):m},t.exports.element=t.exports.Element=function(){var l={_elem:o(Array.prototype.slice.call(arguments)),push:function(p){if(!this.append)throw new Error("not assigned to a parent!");var f=this,m=this._elem.indent;a(this.append,o(p,m,this._elem.icount+(m?1:0)),function(){f.append(!0)})},close:function(p){p!==void 0&&this.push(p),this.end&&this.end()}};return l}},987:function(t){t.exports=I3},362:function(t){t.exports=k3},496:function(t){t.exports=mF},340:function(){},838:function(){}},YA={};function Fe(t){var e=YA[t];if(e!==void 0)return e.exports;var r=YA[t]={exports:{}};return T2e[t](r,r.exports,Fe),r.exports}Fe.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return Fe.d(e,{a:e}),e},Fe.d=function(t,e){for(var r in e)Fe.o(e,r)&&!Fe.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},Fe.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),Fe.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},Fe.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var n0={};Fe.r(n0),Fe.d(n0,{CLEAR:function(){return mS},CLEAR_BY:function(){return gS},NEW_AUTH_ERR:function(){return dS},NEW_SPEC_ERR:function(){return fS},NEW_SPEC_ERR_BATCH:function(){return hS},NEW_THROWN_ERR:function(){return kd},NEW_THROWN_ERR_BATCH:function(){return pS},clear:function(){return M2e},clearBy:function(){return D2e},newAuthErr:function(){return N2e},newSpecErr:function(){return k2e},newSpecErrBatch:function(){return j2e},newThrownErr:function(){return R2e},newThrownErrBatch:function(){return P2e}});var s0={};Fe.r(s0),Fe.d(s0,{AUTHORIZE:function(){return bS},AUTHORIZE_OAUTH2:function(){return SS},CONFIGURE_AUTH:function(){return wS},LOGOUT:function(){return ES},RESTORE_AUTHORIZATION:function(){return _S},SHOW_AUTH_POPUP:function(){return vS},authPopup:function(){return aAe},authorize:function(){return W2e},authorizeAccessCodeWithBasicAuthentication:function(){return rAe},authorizeAccessCodeWithFormParams:function(){return tAe},authorizeApplication:function(){return eAe},authorizeOauth2:function(){return X2e},authorizeOauth2WithPersistOption:function(){return Z2e},authorizePassword:function(){return Q2e},authorizeRequest:function(){return nAe},authorizeWithPersistOption:function(){return H2e},configureAuth:function(){return sAe},logout:function(){return K2e},logoutWithPersistOption:function(){return G2e},persistAuthorizationIfNeeded:function(){return oAe},preAuthorizeImplicit:function(){return Y2e},restoreAuthorization:function(){return iAe},showDefinitions:function(){return J2e}});var i0={};Fe.r(i0),Fe.d(i0,{authorized:function(){return dAe},definitionsForRequirements:function(){return hAe},definitionsToAuthorize:function(){return uAe},getConfigs:function(){return gAe},getDefinitionsByNames:function(){return fAe},isAuthorized:function(){return mAe},selectAuthPath:function(){return pAe},shownDefinitions:function(){return lAe}});var o0={};Fe.r(o0),Fe.d(o0,{TOGGLE_CONFIGS:function(){return AS},UPDATE_CONFIGS:function(){return xS},downloadConfig:function(){return $Ae},getConfigByUrl:function(){return TAe},loaded:function(){return CAe},toggle:function(){return OAe},update:function(){return AAe}});var a0={};Fe.r(a0),Fe.d(a0,{get:function(){return IAe}});var c0={};Fe.r(c0),Fe.d(c0,{transform:function(){return NAe}});var l0={};Fe.r(l0),Fe.d(l0,{transform:function(){return MAe}});var u0={};Fe.r(u0),Fe.d(u0,{allErrors:function(){return Kk},lastError:function(){return FAe}});var p0={};Fe.r(p0),Fe.d(p0,{SHOW:function(){return TS},UPDATE_FILTER:function(){return CS},UPDATE_LAYOUT:function(){return OS},UPDATE_MODE:function(){return $S},changeMode:function(){return YAe},show:function(){return GAe},updateFilter:function(){return KAe},updateLayout:function(){return HAe}});var f0={};Fe.r(f0),Fe.d(f0,{current:function(){return ZAe},currentFilter:function(){return QAe},isShown:function(){return Zk},showSummary:function(){return tOe},whatMode:function(){return eOe}});var h0={};Fe.r(h0),Fe.d(h0,{taggedOperations:function(){return rOe}});var d0={};Fe.r(d0),Fe.d(d0,{getActiveLanguage:function(){return lOe},getDefaultExpanded:function(){return uOe},getGenerators:function(){return nj},getSnippetGenerators:function(){return cOe}});var m0={};Fe.r(m0),Fe.d(m0,{JsonSchemaArrayItemFile:function(){return kS},JsonSchemaArrayItemText:function(){return PS},JsonSchemaForm:function(){return aj},JsonSchema_array:function(){return lj},JsonSchema_boolean:function(){return uj},JsonSchema_object:function(){return pj},JsonSchema_string:function(){return cj}});var g0={};Fe.r(g0),Fe.d(g0,{allowTryItOutFor:function(){return uCe},basePath:function(){return nCe},canExecuteScheme:function(){return vCe},consumes:function(){return Aj},consumesOptionsFor:function(){return yCe},contentTypeValues:function(){return mCe},currentProducesFor:function(){return Mj},definitions:function(){return rCe},externalDocs:function(){return YOe},findDefinition:function(){return tCe},getOAS3RequiredRequestBodyContentType:function(){return ECe},getParameter:function(){return fCe},hasHost:function(){return hCe},host:function(){return sCe},info:function(){return Sj},isMediaTypeSchemaPropertiesEqual:function(){return SCe},isOAS3:function(){return GOe},lastError:function(){return VOe},mutatedRequestFor:function(){return lCe},mutatedRequests:function(){return Pj},operationScheme:function(){return Dj},operationWithMeta:function(){return jj},operations:function(){return xj},operationsWithRootInherited:function(){return Cj},operationsWithTags:function(){return Tj},parameterInclusionSettingFor:function(){return kj},parameterValues:function(){return Nj},parameterWithMeta:function(){return pCe},parameterWithMetaByIdentity:function(){return MS},parametersIncludeIn:function(){return dCe},parametersIncludeType:function(){return j0},paths:function(){return _j},produces:function(){return Oj},producesOptionsFor:function(){return gCe},requestFor:function(){return cCe},requests:function(){return Rj},responseFor:function(){return aCe},responses:function(){return Ij},schemes:function(){return iCe},security:function(){return QOe},securityDefinitions:function(){return eCe},semver:function(){return XOe},spec:function(){return Wr},specJS:function(){return WOe},specJson:function(){return jS},specJsonWithResolvedSubtrees:function(){return Yn},specResolved:function(){return HOe},specResolvedSubtree:function(){return KOe},specSource:function(){return JOe},specStr:function(){return zOe},tagDetails:function(){return $j},taggedOperations:function(){return oCe},tags:function(){return NS},url:function(){return qOe},validOperationMethods:function(){return ZOe},validateBeforeExecute:function(){return bCe},validationErrors:function(){return Fj},version:function(){return wj}});var y0={};Fe.r(y0),Fe.d(y0,{CLEAR_REQUEST:function(){return WS},CLEAR_RESPONSE:function(){return JS},CLEAR_VALIDATE_PARAMS:function(){return HS},LOG_REQUEST:function(){return Lj},SET_MUTATED_REQUEST:function(){return zS},SET_REQUEST:function(){return qS},SET_RESPONSE:function(){return VS},SET_SCHEME:function(){return GS},UPDATE_EMPTY_PARAM_INCLUSION:function(){return LS},UPDATE_JSON:function(){return BS},UPDATE_OPERATION_META_VALUE:function(){return Dd},UPDATE_PARAM:function(){return Md},UPDATE_RESOLVED:function(){return KS},UPDATE_RESOLVED_SUBTREE:function(){return Fd},UPDATE_SPEC:function(){return DS},UPDATE_URL:function(){return FS},VALIDATE_PARAMS:function(){return US},changeConsumesValue:function(){return FCe},changeParam:function(){return RCe},changeParamByIdentity:function(){return PCe},changeProducesValue:function(){return BCe},clearRequest:function(){return HCe},clearResponse:function(){return WCe},clearValidateParams:function(){return DCe},execute:function(){return JCe},executeRequest:function(){return zCe},invalidateResolvedSubtreeCache:function(){return jCe},logRequest:function(){return qCe},parseToJson:function(){return CCe},requestResolvedSubtree:function(){return ICe},resolveSpec:function(){return $Ce},setMutatedRequest:function(){return VCe},setRequest:function(){return UCe},setResponse:function(){return LCe},setScheme:function(){return KCe},updateEmptyParamInclusion:function(){return MCe},updateJsonSpec:function(){return OCe},updateResolved:function(){return xCe},updateResolvedSubtree:function(){return kCe},updateSpec:function(){return _Ce},updateUrl:function(){return ACe},validateParams:function(){return NCe}});var v0={};Fe.r(v0),Fe.d(v0,{executeRequest:function(){return ZCe},updateJsonSpec:function(){return XCe},updateSpec:function(){return YCe},validateParams:function(){return QCe}});var b0={};Fe.r(b0),Fe.d(b0,{Button:function(){return uN},Col:function(){return eTe},Collapse:function(){return hN},Container:function(){return Q$e},Input:function(){return nTe},Link:function(){return fN},Row:function(){return tTe},Select:function(){return pN},TextArea:function(){return rTe}});var E0={};Fe.r(E0),Fe.d(E0,{basePath:function(){return DTe},consumes:function(){return FTe},definitions:function(){return PTe},findDefinition:function(){return RTe},hasHost:function(){return kTe},host:function(){return MTe},produces:function(){return BTe},schemes:function(){return LTe},securityDefinitions:function(){return jTe},validOperationMethods:function(){return NTe}});var S0={};Fe.r(S0),Fe.d(S0,{definitionsToAuthorize:function(){return UTe}});var w0={};Fe.r(w0),Fe.d(w0,{callbacksOperations:function(){return KTe},findSchema:function(){return HTe},isOAS3:function(){return JTe},isOAS30:function(){return zTe},isSwagger2:function(){return qTe},servers:function(){return WTe}});var _0={};Fe.r(_0),Fe.d(_0,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return Ld},CLEAR_REQUEST_BODY_VALUE:function(){return ow},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return iw},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return tw},UPDATE_REQUEST_BODY_INCLUSION:function(){return ew},UPDATE_REQUEST_BODY_VALUE:function(){return ZS},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return QS},UPDATE_REQUEST_CONTENT_TYPE:function(){return rw},UPDATE_RESPONSE_CONTENT_TYPE:function(){return nw},UPDATE_SELECTED_SERVER:function(){return XS},UPDATE_SERVER_VARIABLE_VALUE:function(){return sw},clearRequestBodyValidateError:function(){return bIe},clearRequestBodyValue:function(){return SIe},initRequestBodyValidateError:function(){return EIe},setActiveExamplesMember:function(){return dIe},setRequestBodyInclusion:function(){return hIe},setRequestBodyValidateError:function(){return vIe},setRequestBodyValue:function(){return pIe},setRequestContentType:function(){return mIe},setResponseContentType:function(){return gIe},setRetainRequestBodyValueFlag:function(){return fIe},setSelectedServer:function(){return uIe},setServerVariableValue:function(){return yIe}});var x0={};Fe.r(x0),Fe.d(x0,{activeExamplesMember:function(){return TIe},hasUserEditedBody:function(){return OIe},requestBodyErrors:function(){return $Ie},requestBodyInclusionSetting:function(){return CIe},requestBodyValue:function(){return _Ie},requestContentType:function(){return IIe},responseContentType:function(){return RIe},selectDefaultRequestBodyValue:function(){return AIe},selectedServer:function(){return wIe},serverEffectiveValue:function(){return jIe},serverVariableValue:function(){return PIe},serverVariables:function(){return kIe},shouldRetainRequestBodyValue:function(){return xIe},validOperationMethods:function(){return DIe},validateBeforeExecute:function(){return NIe},validateShallowRequired:function(){return MIe}});var I2e=Fe(919),Jc=Fe.n(I2e);const kd="err_new_thrown_err",pS="err_new_thrown_err_batch",fS="err_new_spec_err",hS="err_new_spec_err_batch",dS="err_new_auth_err",mS="err_clear",gS="err_clear_by";function R2e(t){return{type:kd,payload:cC.serializeError(t)}}function P2e(t){return{type:pS,payload:t}}function k2e(t){return{type:fS,payload:t}}function j2e(t){return{type:hS,payload:t}}function N2e(t){return{type:dS,payload:t}}function M2e(t={}){return{type:mS,payload:t}}function D2e(t=()=>!0){return{type:gS,payload:t}}var Pt=function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>"u")return e;try{e=window;for(var r of["File","Blob","FormData"])r in window&&(e[r]=window[r])}catch(n){console.error(n)}return e}(),F2e=Fe(209),sa=Fe.n(F2e),B2e=Fe(802),L2e=Fe.n(B2e);const U2e=gt.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function Pp(t,{isOAS3:e}={}){if(!gt.Map.isMap(t))return{schema:gt.Map(),parameterContentMediaType:null};if(!e)return t.get("in")==="body"?{schema:t.get("schema",gt.Map()),parameterContentMediaType:null}:{schema:t.filter((r,n)=>U2e.includes(n)),parameterContentMediaType:null};if(t.get("content")){const r=t.get("content",gt.Map({})).keySeq().first();return{schema:t.getIn(["content",r,"schema"],gt.Map()),parameterContentMediaType:r}}return{schema:t.get("schema")?t.get("schema",gt.Map()):gt.Map(),parameterContentMediaType:null}}var XA=Fe(287).Buffer;const ZA="default",Eu=t=>gt.Iterable.isIterable(t),vi=t=>Eu(t)?t.toJS():t;function zi(t){return us(t)?vi(t):{}}function ls(t){if(Eu(t)||t instanceof Pt.File||!us(t))return t;if(Array.isArray(t))return gt.Seq(t).map(ls).toList();if(C1(t.entries)){const e=function(n){if(!C1(n.entries))return n;const s={},i="_**[]",o={};for(let a of n.entries())s[a[0]]||o[a[0]]&&o[a[0]].containsMultiple?(o[a[0]]||(o[a[0]]={containsMultiple:!0,length:1},s[`${a[0]}${i}${o[a[0]].length}`]=s[a[0]],delete s[a[0]]),o[a[0]].length+=1,s[`${a[0]}${i}${o[a[0]].length}`]=a[1]):s[a[0]]=a[1];return s}(t);return gt.OrderedMap(e).map(ls)}return gt.OrderedMap(t).map(ls)}function xo(t){return Array.isArray(t)?t:[t]}function zg(t){return typeof t=="function"}function us(t){return!!t&&typeof t=="object"}function Vs(t){return typeof t=="function"}function Ef(t){return Array.isArray(t)}const V2e=mc;function Dn(t,e){return Object.keys(t).reduce((r,n)=>(r[n]=e(t[n],n),r),{})}function QA(t,e){return Object.keys(t).reduce((r,n)=>{let s=e(t[n],n);return s&&typeof s=="object"&&Object.assign(r,s),r},{})}function q2e(t){return({dispatch:e,getState:r})=>n=>s=>typeof s=="function"?s(t()):n(s)}function A0(t,e,r,n,s,i){if(!e)return[];let o=[],a=e.get("nullable"),c=e.get("required"),l=e.get("maximum"),p=e.get("minimum"),f=e.get("type"),m=e.get("format"),d=e.get("maxLength"),g=e.get("minLength"),v=e.get("uniqueItems"),y=e.get("maxItems"),E=e.get("minItems"),S=e.get("pattern");const w=r||c===!0,x=t!=null,I=w||x&&f==="array"||!(!w&&!x),T=a&&t===null;if(w&&!x&&!T&&!n&&!f)return o.push("Required field is not provided"),o;if(T||!f||!I)return[];let D=f==="string"&&t,B=f==="array"&&Array.isArray(t)&&t.length,P=f==="array"&>.List.isList(t)&&t.count(),Z=f==="array"&&typeof t=="string"&&t;const V=[D,B,P,f==="file"&&t instanceof Pt.File,f==="boolean"&&(t||t===!1),f==="number"&&(t||t===0),f==="integer"&&(t||t===0),f==="object"&&typeof t=="object"&&t!==null,f==="object"&&typeof t=="string"&&t],J=(i?V:V.concat(Z)).some(F=>!!F);if(w&&!J&&!n)return o.push("Required field is not provided"),o;if(f==="object"&&(s===null||s==="application/json")){let F=t;if(typeof t=="string")try{F=JSON.parse(t)}catch{return o.push("Parameter string value must be valid JSON"),o}e&&e.has("required")&&Vs(c.isList)&&c.isList()&&c.forEach(Q=>{F[Q]===void 0&&o.push({propKey:Q,error:"Required property not found"})}),e&&e.has("properties")&&e.get("properties").forEach((Q,se)=>{const re=A0(F[se],Q,!1,n,s,i);o.push(...re.map(ce=>({propKey:se,error:ce})))})}if(S){let F=((Q,se)=>{if(!new RegExp(se).test(Q))return"Value must follow pattern "+se})(t,S);F&&o.push(F)}if(E&&f==="array"){let F=((Q,se)=>{if(!Q&&se>=1||Q&&Q.length<se)return`Array must contain at least ${se} item${se===1?"":"s"}`})(t,E);F&&o.push(F)}if(y&&f==="array"){let F=((Q,se)=>{if(Q&&Q.length>se)return`Array must not contain more then ${se} item${se===1?"":"s"}`})(t,y);F&&o.push({needRemove:!0,error:F})}if(v&&f==="array"){let F=((Q,se)=>{if(Q&&(se==="true"||se===!0)){const re=K.fromJS(Q),ce=re.toSet();if(Q.length>ce.size){let ue=K.Set();if(re.forEach((oe,G)=>{re.filter(ie=>Vs(ie.equals)?ie.equals(oe):ie===oe).size>1&&(ue=ue.add(G))}),ue.size!==0)return ue.map(oe=>({index:oe,error:"No duplicates allowed."})).toArray()}}})(t,v);F&&o.push(...F)}if(d||d===0){let F=((Q,se)=>{if(Q.length>se)return`Value must be no longer than ${se} character${se!==1?"s":""}`})(t,d);F&&o.push(F)}if(g){let F=((Q,se)=>{if(Q.length<se)return`Value must be at least ${se} character${se!==1?"s":""}`})(t,g);F&&o.push(F)}if(l||l===0){let F=((Q,se)=>{if(Q>se)return`Value must be less than or equal to ${se}`})(t,l);F&&o.push(F)}if(p||p===0){let F=((Q,se)=>{if(Q<se)return`Value must be greater than or equal to ${se}`})(t,p);F&&o.push(F)}if(f==="string"){let F;if(F=m==="date-time"?(Q=>{if(isNaN(Date.parse(Q)))return"Value must be a DateTime"})(t):m==="uuid"?(Q=>{if(Q=Q.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(Q))return"Value must be a Guid"})(t):(Q=>{if(Q&&typeof Q!="string")return"Value must be a string"})(t),!F)return o;o.push(F)}else if(f==="boolean"){let F=(Q=>{if(Q!=="true"&&Q!=="false"&&Q!==!0&&Q!==!1)return"Value must be a boolean"})(t);if(!F)return o;o.push(F)}else if(f==="number"){let F=(Q=>{if(!/^-?\d+(\.?\d+)?$/.test(Q))return"Value must be a number"})(t);if(!F)return o;o.push(F)}else if(f==="integer"){let F=(Q=>{if(!/^-?\d+$/.test(Q))return"Value must be an integer"})(t);if(!F)return o;o.push(F)}else if(f==="array"){if(!B&&!P)return o;t&&t.forEach((F,Q)=>{const se=A0(F,e.get("items"),!1,n,s,i);o.push(...se.map(re=>({index:Q,error:re})))})}else if(f==="file"){let F=(Q=>{if(Q&&!(Q instanceof Pt.File))return"Value must be a file"})(t);if(!F)return o;o.push(F)}return o}const Su=t=>{let e;return e=t instanceof XA?t:XA.from(t.toString(),"utf-8"),e.toString("base64")},eO={operationsSorter:{alpha:(t,e)=>t.get("path").localeCompare(e.get("path")),method:(t,e)=>t.get("method").localeCompare(e.get("method"))},tagsSorter:{alpha:(t,e)=>t.localeCompare(e)}},jd=t=>{let e=[];for(let r in t){let n=t[r];n!==void 0&&n!==""&&e.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return e.join("&")},z2e=(t,e,r)=>!!xq(r,n=>BF(t[n],e[n]));function tO(t){return!(!t||t.indexOf("localhost")>=0||t.indexOf("127.0.0.1")>=0||t==="none")}const Wc=t=>typeof t=="string"||t instanceof String?t.trim().replace(/\s/g,"%20"):"",Bk=t=>Wq(Wc(t).replace(/%20/g,"_")),O0=t=>/^x-/.test(t),Ri=t=>K.Map.isMap(t)?t.filter((e,r)=>O0(r)):Object.keys(t).filter(e=>O0(e)),Lk=t=>t.filter((e,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r));function Uk(t,e,r=()=>!0){if(typeof t!="object"||Array.isArray(t)||t===null||!e)return t;const n=Object.assign({},t);return Object.keys(n).forEach(s=>{s===e&&r(n[s],s)?delete n[s]:n[s]=Uk(n[s],e,r)}),n}function fr(t){if(typeof t=="string")return t;if(t&&t.toJS&&(t=t.toJS()),typeof t=="object"&&t!==null)try{return JSON.stringify(t,null,2)}catch{return String(t)}return t==null?"":t.toString()}function Sf(t,{returnAll:e=!1,allowHashes:r=!0}={}){if(!gt.Map.isMap(t))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=t.get("name"),s=t.get("in");let i=[];return t&&t.hashCode&&s&&n&&r&&i.push(`${s}.${n}.hash-${t.hashCode()}`),s&&n&&i.push(`${s}.${n}`),i.push(n),e?i:i[0]||""}function Vk(t,e){return Sf(t,{returnAll:!0}).map(r=>e[r]).filter(r=>r!==void 0)[0]}function rO(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const yS=t=>!t||!(!Eu(t)||!t.isEmpty()),nO=t=>t;class qk{constructor(e={}){Jc()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},e),this.getSystem=this._getSystem.bind(this),this.store=function(n,s,i){return function(a,c,l){let p=[q2e(l)];const f=Pt.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||K0;return nC(a,c,f(EF(...p)))}(n,s,i)}(nO,K.fromJS(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,r=!0){var n=C0(e,this.getSystem());zk(this.system,n),r&&this.buildSystem(),$0.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(e=!0){let r=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(r),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:gt,React:u},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){this.store.replaceReducer(function(r,n){return function(i,o){let a=Object.keys(i).reduce((c,l)=>(c[l]=function(f,m){return(d=new K.Map,g)=>{if(!f)return d;let v=f[g.type];if(v){const y=bc(v,m)(d,g);return y===null?d:y}return d}}(i[l],o),c),{});return Object.keys(a).length?oC(a):nO}(Dn(r,s=>s.reducers),n)}(this.system.statePlugins,this.getSystem))}getType(e){let r=e[0].toUpperCase()+e.slice(1);return QA(this.system.statePlugins,(n,s)=>{let i=n[e];if(i)return{[s+r]:i}})}getSelectors(){return this.getType("selectors")}getActions(){return Dn(this.getType("actions"),e=>QA(e,(r,n)=>{if(zg(r))return{[n]:r}}))}getWrappedAndBoundActions(e){return Dn(this.getBoundActions(e),(r,n)=>{let s=this.system.statePlugins[n.slice(0,-7)].wrapActions;return s?Dn(r,(i,o)=>{let a=s[o];return a?(Array.isArray(a)||(a=[a]),a.reduce((c,l)=>{let p=(...f)=>l(c,this.getSystem())(...f);if(!zg(p))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return bc(p,this.getSystem)},i||Function.prototype)):i}):r})}getWrappedAndBoundSelectors(e,r){return Dn(this.getBoundSelectors(e,r),(n,s)=>{let i=[s.slice(0,-9)],o=this.system.statePlugins[i].wrapSelectors;return o?Dn(n,(a,c)=>{let l=o[c];return l?(Array.isArray(l)||(l=[l]),l.reduce((p,f)=>{let m=(...d)=>f(p,this.getSystem())(e().getIn(i),...d);if(!zg(m))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return m},a||Function.prototype)):a}):n})}getStates(e){return Object.keys(this.system.statePlugins).reduce((r,n)=>(r[n]=e.get(n),r),{})}getStateThunks(e){return Object.keys(this.system.statePlugins).reduce((r,n)=>(r[n]=()=>e().get(n),r),{})}getFn(){return{fn:this.system.fn}}getComponents(e){const r=this.system.components[e];return Array.isArray(r)?r.reduce((n,s)=>s(n,this.getSystem())):e!==void 0?this.system.components[e]:this.system.components}getBoundSelectors(e,r){return Dn(this.getSelectors(),(n,s)=>{let i=[s.slice(0,-9)];return Dn(n,o=>(...a)=>{let c=bc(o,this.getSystem).apply(null,[e().getIn(i),...a]);return typeof c=="function"&&(c=bc(c,this.getSystem)(r())),c})})}getBoundActions(e){e=e||this.getStore().dispatch;const r=this.getActions(),n=s=>typeof s!="function"?Dn(s,i=>n(i)):(...i)=>{var o=null;try{o=s(...i)}catch(a){o={type:kd,error:!0,payload:cC.serializeError(a)}}finally{return o}};return Dn(r,s=>bF(n(s),e))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return r=>Jc()({},this.getWrappedAndBoundActions(r),this.getFn(),e)}}function C0(t,e){return us(t)&&!Ef(t)?ZU({},t):Vs(t)?C0(t(e),e):Ef(t)?t.map(r=>C0(r,e)).reduce(zk,{components:e.getComponents()}):{}}function $0(t,e,{hasLoaded:r}={}){let n=r;return us(t)&&!Ef(t)&&typeof t.afterLoad=="function"&&(n=!0,bc(t.afterLoad,e.getSystem).call(this,e)),Vs(t)?$0.call(this,t(e),e,{hasLoaded:n}):Ef(t)?t.map(s=>$0.call(this,s,e,{hasLoaded:n})):n}function zk(t={},e={}){if(!us(t))return{};if(!us(e))return t;e.wrapComponents&&(Dn(e.wrapComponents,(n,s)=>{const i=t.components&&t.components[s];i&&Array.isArray(i)?(t.components[s]=i.concat([n]),delete e.wrapComponents[s]):i&&(t.components[s]=[i,n],delete e.wrapComponents[s])}),Object.keys(e.wrapComponents).length||delete e.wrapComponents);const{statePlugins:r}=t;if(us(r))for(let n in r){const s=r[n];if(!us(s))continue;const{wrapActions:i,wrapSelectors:o}=s;if(us(i))for(let a in i){let c=i[a];Array.isArray(c)||(c=[c],i[a]=c),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapActions&&e.statePlugins[n].wrapActions[a]&&(e.statePlugins[n].wrapActions[a]=i[a].concat(e.statePlugins[n].wrapActions[a]))}if(us(o))for(let a in o){let c=o[a];Array.isArray(c)||(c=[c],o[a]=c),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapSelectors&&e.statePlugins[n].wrapSelectors[a]&&(e.statePlugins[n].wrapSelectors[a]=o[a].concat(e.statePlugins[n].wrapSelectors[a]))}}return Jc()(t,e)}function bc(t,e,{logErrors:r=!0}={}){return typeof t!="function"?t:function(...n){try{return t.call(this,...n)}catch(s){if(r){const{uncaughtExceptionHandler:i}=e().getConfigs();typeof i=="function"?i(s):console.error(s)}return null}}}const vS="show_popup",bS="authorize",ES="logout",SS="authorize_oauth2",wS="configure_auth",_S="restore_authorization";function J2e(t){return{type:vS,payload:t}}function W2e(t){return{type:bS,payload:t}}const H2e=t=>({authActions:e})=>{e.authorize(t),e.persistAuthorizationIfNeeded()};function K2e(t){return{type:ES,payload:t}}const G2e=t=>({authActions:e})=>{e.logout(t),e.persistAuthorizationIfNeeded()},Y2e=t=>({authActions:e,errActions:r})=>{let{auth:n,token:s,isValid:i}=t,{schema:o,name:a}=n,c=o.get("flow");delete Pt.swaggerUIRedirectOauth2,c==="accessCode"||i||r.newAuthErr({authId:a,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),s.error?r.newAuthErr({authId:a,source:"auth",level:"error",message:JSON.stringify(s)}):e.authorizeOauth2WithPersistOption({auth:n,token:s})};function X2e(t){return{type:SS,payload:t}}const Z2e=t=>({authActions:e})=>{e.authorizeOauth2(t),e.persistAuthorizationIfNeeded()},Q2e=t=>({authActions:e})=>{let{schema:r,name:n,username:s,password:i,passwordType:o,clientId:a,clientSecret:c}=t,l={grant_type:"password",scope:t.scopes.join(" "),username:s,password:i},p={};switch(o){case"request-body":(function(m,d,g){d&&Object.assign(m,{client_id:d}),g&&Object.assign(m,{client_secret:g})})(l,a,c);break;case"basic":p.Authorization="Basic "+Su(a+":"+c);break;default:console.warn(`Warning: invalid passwordType ${o} was passed, not including client id and secret`)}return e.authorizeRequest({body:jd(l),url:r.get("tokenUrl"),name:n,headers:p,query:{},auth:t})},eAe=t=>({authActions:e})=>{let{schema:r,scopes:n,name:s,clientId:i,clientSecret:o}=t,a={Authorization:"Basic "+Su(i+":"+o)},c={grant_type:"client_credentials",scope:n.join(" ")};return e.authorizeRequest({body:jd(c),name:s,url:r.get("tokenUrl"),auth:t,headers:a})},tAe=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:s,clientId:i,clientSecret:o,codeVerifier:a}=t,c={grant_type:"authorization_code",code:t.code,client_id:i,client_secret:o,redirect_uri:e,code_verifier:a};return r.authorizeRequest({body:jd(c),name:s,url:n.get("tokenUrl"),auth:t})},rAe=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:s,clientId:i,clientSecret:o,codeVerifier:a}=t,c={Authorization:"Basic "+Su(i+":"+o)},l={grant_type:"authorization_code",code:t.code,client_id:i,redirect_uri:e,code_verifier:a};return r.authorizeRequest({body:jd(l),name:s,url:n.get("tokenUrl"),auth:t,headers:c})},nAe=t=>({fn:e,getConfigs:r,authActions:n,errActions:s,oas3Selectors:i,specSelectors:o,authSelectors:a})=>{let c,{body:l,query:p={},headers:f={},name:m,url:d,auth:g}=t,{additionalQueryStringParams:v}=a.getConfigs()||{};if(o.isOAS3()){let S=i.serverEffectiveValue(i.selectedServer());c=Tc(d,S,!0)}else c=Tc(d,o.url(),!0);typeof v=="object"&&(c.query=Object.assign({},c.query,v));const y=c.toString();let E=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},f);e.fetch({url:y,method:"post",headers:E,query:p,body:l,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then(function(S){let w=JSON.parse(S.data),x=w&&(w.error||""),I=w&&(w.parseError||"");S.ok?x||I?s.newAuthErr({authId:m,level:"error",source:"auth",message:JSON.stringify(w)}):n.authorizeOauth2WithPersistOption({auth:g,token:w}):s.newAuthErr({authId:m,level:"error",source:"auth",message:S.statusText})}).catch(S=>{let w=new Error(S).message;if(S.response&&S.response.data){const x=S.response.data;try{const I=typeof x=="string"?JSON.parse(x):x;I.error&&(w+=`, error: ${I.error}`),I.error_description&&(w+=`, description: ${I.error_description}`)}catch{}}s.newAuthErr({authId:m,level:"error",source:"auth",message:w})})};function sAe(t){return{type:wS,payload:t}}function iAe(t){return{type:_S,payload:t}}const oAe=()=>({authSelectors:t,getConfigs:e})=>{if(!e().persistAuthorization)return;const r=t.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},aAe=(t,e)=>()=>{Pt.swaggerUIRedirectOauth2=e,Pt.open(t)};var cAe={[vS]:(t,{payload:e})=>t.set("showDefinitions",e),[bS]:(t,{payload:e})=>{let r=K.fromJS(e),n=t.get("authorized")||K.Map();return r.entrySeq().forEach(([s,i])=>{if(!Vs(i.getIn))return t.set("authorized",n);let o=i.getIn(["schema","type"]);if(o==="apiKey"||o==="http")n=n.set(s,i);else if(o==="basic"){let a=i.getIn(["value","username"]),c=i.getIn(["value","password"]);n=n.setIn([s,"value"],{username:a,header:"Basic "+Su(a+":"+c)}),n=n.setIn([s,"schema"],i.get("schema"))}}),t.set("authorized",n)},[SS]:(t,{payload:e})=>{let r,{auth:n,token:s}=e;n.token=Object.assign({},s),r=K.fromJS(n);let i=t.get("authorized")||K.Map();return i=i.set(r.get("name"),r),t.set("authorized",i)},[ES]:(t,{payload:e})=>{let r=t.get("authorized").withMutations(n=>{e.forEach(s=>{n.delete(s)})});return t.set("authorized",r)},[wS]:(t,{payload:e})=>t.set("configs",e),[_S]:(t,{payload:e})=>t.set("authorized",K.fromJS(e.authorized))};const Nd=t=>t,lAe=Ke(Nd,t=>t.get("showDefinitions")),uAe=Ke(Nd,()=>({specSelectors:t})=>{let e=t.securityDefinitions()||K.Map({}),r=K.List();return e.entrySeq().forEach(([n,s])=>{let i=K.Map();i=i.set(n,s),r=r.push(i)}),r}),pAe=(t,e)=>({specSelectors:r})=>K.List(r.isOAS3()?["components","securitySchemes",e]:["securityDefinitions",e]),fAe=(t,e)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),s=K.List();return e.valueSeq().forEach(i=>{let o=K.Map();i.entrySeq().forEach(([a,c])=>{let l,p=n.get(a);p.get("type")==="oauth2"&&c.size&&(l=p.get("scopes"),l.keySeq().forEach(f=>{c.contains(f)||(l=l.delete(f))}),p=p.set("allowedScopes",l)),o=o.set(a,p)}),s=s.push(o)}),s},hAe=(t,e=K.List())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||K.List();let s=K.List();return n.forEach(i=>{let o=e.find(a=>a.get(i.keySeq().first()));o&&(i.forEach((a,c)=>{if(a.get("type")==="oauth2"){const l=o.get(c);let p=a.get("scopes");K.List.isList(l)&&K.Map.isMap(p)&&(p.keySeq().forEach(f=>{l.contains(f)||(p=p.delete(f))}),i=i.set(c,a.set("scopes",p)))}}),s=s.push(i))}),s},dAe=Ke(Nd,t=>t.get("authorized")||K.Map()),mAe=(t,e)=>({authSelectors:r})=>{let n=r.authorized();return K.List.isList(e)?!!e.toJS().filter(s=>Object.keys(s).map(i=>!!n.get(i)).indexOf(!1)===-1).length:null},gAe=Ke(Nd,t=>t.get("configs")),yAe=(t,{authSelectors:e,specSelectors:r})=>({path:n,method:s,operation:i,extras:o})=>{let a={authorized:e.authorized()&&e.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return t({path:n,method:s,operation:i,securities:a,...o})},vAe=(t,e)=>r=>{const{getConfigs:n,authActions:s}=e,i=n();if(t(r),i.persistAuthorization){const o=localStorage.getItem("authorized");o&&s.restoreAuthorization({authorized:JSON.parse(o)})}},bAe=(t,e)=>r=>{if(t(r),e.getConfigs().persistAuthorization)try{const[{schema:n,value:s}]=Object.values(r),i=K.fromJS(n),o=i.get("type")==="apiKey",a=i.get("in")==="cookie";o&&a&&(document.cookie=`${i.get("name")}=${s}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},EAe=(t,e)=>r=>{const n=e.getConfigs(),s=e.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach(i=>{const o=s.get(i,{}),a=o.getIn(["schema","type"])==="apiKey",c=o.getIn(["schema","in"])==="cookie";if(a&&c){const l=o.getIn(["schema","name"]);document.cookie=`${l}=; Max-Age=-99999999`}})}catch(i){console.error("Error deleting cookie based apiKey from document.cookie.",i)}t(r)};class SAe extends u.Component{mapStateToProps(e,r){return{state:e,ownProps:Eb(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("LockIcon");return u.createElement(n,r)}}var sO=SAe;class wAe extends u.Component{mapStateToProps(e,r){return{state:e,ownProps:Eb(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("UnlockIcon");return u.createElement(n,r)}}var iO=wAe;function Jk(){return{afterLoad(t){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=t.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=xAe.bind(null,t),this.rootInjects.preauthorizeBasic=_Ae.bind(null,t)},components:{LockAuthIcon:sO,UnlockAuthIcon:iO,LockAuthOperationIcon:sO,UnlockAuthOperationIcon:iO},statePlugins:{auth:{reducers:cAe,actions:s0,selectors:i0,wrapActions:{authorize:bAe,logout:EAe}},configs:{wrapActions:{loaded:vAe}},spec:{wrapActions:{execute:yAe}}}}}function _Ae(t,e,r,n){const{authActions:{authorize:s},specSelectors:{specJson:i,isOAS3:o}}=t,a=o()?["components","securitySchemes"]:["securityDefinitions"],c=i().getIn([...a,e]);return c?s({[e]:{value:{username:r,password:n},schema:c.toJS()}}):null}function xAe(t,e,r){const{authActions:{authorize:n},specSelectors:{specJson:s,isOAS3:i}}=t,o=i()?["components","securitySchemes"]:["securityDefinitions"],a=s().getIn([...o,e]);return a?n({[e]:{value:r,schema:a.toJS()}}):null}const xS="configs_update",AS="configs_toggle";function AAe(t,e){return{type:xS,payload:{[t]:e}}}function OAe(t){return{type:AS,payload:t}}const CAe=()=>()=>{},$Ae=t=>e=>{const{fn:{fetch:r}}=e;return r(t)},TAe=(t,e)=>r=>{const{specActions:n,configsActions:s}=r;if(t)return s.downloadConfig(t).then(i,i);function i(o){o instanceof Error||o.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(o.statusText+" "+t.url),e(null)):e(((a,c)=>{try{return xn.load(a)}catch(l){return c&&c.errActions.newThrownErr(new Error(l)),{}}})(o.text,r))}},IAe=(t,e)=>t.getIn(Array.isArray(e)?e:[e]);var RAe={[xS]:(t,e)=>t.merge(K.fromJS(e.payload)),[AS]:(t,e)=>{const r=e.payload,n=t.get(r);return t.set(r,!n)}};function Wk(){return{statePlugins:{configs:{reducers:RAe,actions:o0,selectors:a0}}}}const Jg=t=>t?history.pushState(null,null,`#${t}`):window.location.hash="",oO="layout_scroll_to",aO="layout_clear_scroll";var PAe={fn:{getScrollParent:function(e,r){const n=document.documentElement;let s=getComputedStyle(e);const i=s.position==="absolute",o=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(s.position==="fixed")return n;for(let a=e;a=a.parentElement;)if(s=getComputedStyle(a),(!i||s.position!=="static")&&o.test(s.overflow+s.overflowY+s.overflowX))return a;return n}},statePlugins:{layout:{actions:{scrollToElement:(t,e)=>r=>{try{e=e||r.fn.getScrollParent(t),TH.createScroller(e).to(t)}catch(n){console.error(n)}},scrollTo:t=>({type:oO,payload:Array.isArray(t)?t:[t]}),clearScrollTo:()=>({type:aO}),readyToScroll:(t,e)=>r=>{const n=r.layoutSelectors.getScrollToKey();gt.is(n,K.fromJS(t))&&(r.layoutActions.scrollToElement(e),r.layoutActions.clearScrollTo())},parseDeepLinkHash:t=>({layoutActions:e,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&t){let s=t.slice(1);s[0]==="!"&&(s=s.slice(1)),s[0]==="/"&&(s=s.slice(1));const i=s.split("/").map(p=>p||""),o=r.isShownKeyFromUrlHashArray(i),[a,c="",l=""]=o;if(a==="operations"){const p=r.isShownKeyFromUrlHashArray([c]);c.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(p.map(f=>f.replace(/_/g," ")),!0)),e.show(p,!0)}(c.indexOf("_")>-1||l.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(o.map(p=>p.replace(/_/g," ")),!0)),e.show(o,!0),e.scrollTo(o)}}},selectors:{getScrollToKey:t=>t.get("scrollToKey"),isShownKeyFromUrlHashArray(t,e){const[r,n]=e;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(t,e){let[r,n,s]=e;return r=="operations"?[n,s]:r=="operations-tag"?[n]:[]}},reducers:{[oO]:(t,e)=>t.set("scrollToKey",gt.fromJS(e.payload)),[aO]:t=>t.delete("scrollToKey")},wrapActions:{show:(t,{getConfigs:e,layoutSelectors:r})=>(...n)=>{if(t(...n),e().deepLinking)try{let[s,i]=n;s=Array.isArray(s)?s:[s];const o=r.urlHashArrayFromIsShownKey(s);if(!o.length)return;const[a,c]=o;if(!i)return Jg("/");o.length===2?Jg(Wc(`/${encodeURIComponent(a)}/${encodeURIComponent(c)}`)):o.length===1&&Jg(Wc(`/${encodeURIComponent(a)}`))}catch(s){console.error(s)}}}}}},kAe=(t,e)=>class extends u.Component{constructor(){super(...arguments);H(this,"onLoad",s=>{const{operation:i}=this.props,{tag:o,operationId:a}=i.toObject();let{isShownKey:c}=i.toObject();c=c||["operations",o,a],e.layoutActions.readyToScroll(c,s)})}render(){return u.createElement("span",{ref:this.onLoad},u.createElement(t,this.props))}},jAe=(t,e)=>class extends u.Component{constructor(){super(...arguments);H(this,"onLoad",s=>{const{tag:i}=this.props,o=["operations-tag",i];e.layoutActions.readyToScroll(o,s)})}render(){return u.createElement("span",{ref:this.onLoad},u.createElement(t,this.props))}};function Hk(){return[PAe,{statePlugins:{configs:{wrapActions:{loaded:(t,e)=>(...r)=>{t(...r);const n=decodeURIComponent(window.location.hash);e.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:kAe,OperationTag:jAe}}]}function NAe(t){return t.map(e=>{let r="is not of a type(s)",n=e.get("message").indexOf(r);if(n>-1){let s=e.get("message").slice(n+19).split(",");return e.set("message",e.get("message").slice(0,n)+function(o){return o.reduce((a,c,l,p)=>l===p.length-1&&p.length>1?a+"or "+c:p[l+1]&&p.length>2?a+c+", ":p[l+1]?a+c+" ":a+c,"should be a")}(s))}return e})}function MAe(t,{jsSpec:e}){return t}const DAe=[c0,l0];function dc(t){let e={jsSpec:{}};return zH(DAe,(n,s)=>{try{return s.transform(n,e).filter(i=>!!i)}catch(i){return console.error("Transformer error:",i),n}},t).filter(n=>!!n).map(n=>(!n.get("line")&&n.get("path"),n))}let Wg={line:0,level:"error",message:"Unknown error"};const Kk=Ke(t=>t,t=>t.get("errors",K.List())),FAe=Ke(Kk,t=>t.last());function Gk(t){return{statePlugins:{err:{reducers:{[kd]:(e,{payload:r})=>{let n=Object.assign(Wg,r,{type:"thrown"});return e.update("errors",s=>(s||K.List()).push(K.fromJS(n))).update("errors",s=>dc(s))},[pS]:(e,{payload:r})=>(r=r.map(n=>K.fromJS(Object.assign(Wg,n,{type:"thrown"}))),e.update("errors",n=>(n||K.List()).concat(K.fromJS(r))).update("errors",n=>dc(n))),[fS]:(e,{payload:r})=>{let n=K.fromJS(r);return n=n.set("type","spec"),e.update("errors",s=>(s||K.List()).push(K.fromJS(n)).sortBy(i=>i.get("line"))).update("errors",s=>dc(s))},[hS]:(e,{payload:r})=>(r=r.map(n=>K.fromJS(Object.assign(Wg,n,{type:"spec"}))),e.update("errors",n=>(n||K.List()).concat(K.fromJS(r))).update("errors",n=>dc(n))),[dS]:(e,{payload:r})=>{let n=K.fromJS(Object.assign({},r));return n=n.set("type","auth"),e.update("errors",s=>(s||K.List()).push(K.fromJS(n))).update("errors",s=>dc(s))},[mS]:(e,{payload:r})=>{if(!r||!e.get("errors"))return e;let n=e.get("errors").filter(s=>s.keySeq().every(i=>{const o=s.get(i),a=r[i];return!a||o!==a}));return e.merge({errors:n})},[gS]:(e,{payload:r})=>{if(!r||typeof r!="function")return e;let n=e.get("errors").filter(s=>r(s));return e.merge({errors:n})}},actions:n0,selectors:u0}}}}function BAe(t,e){return t.filter((r,n)=>n.indexOf(e)!==-1)}function Yk(){return{fn:{opsFilter:BAe}}}var LAe=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),UAe=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),VAe=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),qAe=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),zAe=({className:t=null,width:e=15,height:r=16,...n})=>u.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("g",{transform:"translate(2, -1)"},u.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))),JAe=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),WAe=({className:t=null,width:e=20,height:r=20,...n})=>u.createElement("svg",lt({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),Xk=()=>({components:{ArrowUpIcon:LAe,ArrowDownIcon:UAe,ArrowIcon:VAe,CloseIcon:qAe,CopyIcon:zAe,LockIcon:JAe,UnlockIcon:WAe}});const OS="layout_update_layout",CS="layout_update_filter",$S="layout_update_mode",TS="layout_show";function HAe(t){return{type:OS,payload:t}}function KAe(t){return{type:CS,payload:t}}function GAe(t,e=!0){return t=xo(t),{type:TS,payload:{thing:t,shown:e}}}function YAe(t,e=""){return t=xo(t),{type:$S,payload:{thing:t,mode:e}}}var XAe={[OS]:(t,e)=>t.set("layout",e.payload),[CS]:(t,e)=>t.set("filter",e.payload),[TS]:(t,e)=>{const r=e.payload.shown,n=K.fromJS(e.payload.thing);return t.update("shown",K.fromJS({}),s=>s.set(n,r))},[$S]:(t,e)=>{let r=e.payload.thing,n=e.payload.mode;return t.setIn(["modes"].concat(r),(n||"")+"")}};const ZAe=t=>t.get("layout"),QAe=t=>t.get("filter"),Zk=(t,e,r)=>(e=xo(e),t.get("shown",K.fromJS({})).get(K.fromJS(e),r)),eOe=(t,e,r="")=>(e=xo(e),t.getIn(["modes",...e],r)),tOe=Ke(t=>t,t=>!Zk(t,"editor")),rOe=(t,e)=>(r,...n)=>{let s=t(r,...n);const{fn:i,layoutSelectors:o,getConfigs:a}=e.getSystem(),c=a(),{maxDisplayedTags:l}=c;let p=o.currentFilter();return p&&p!==!0&&(s=i.opsFilter(s,p)),l>=0&&(s=s.slice(0,l)),s};function Qk(){return{statePlugins:{layout:{reducers:XAe,actions:p0,selectors:f0},spec:{wrapSelectors:h0}}}}function ej({configs:t}){const e={debug:0,info:1,log:2,warn:3,error:4},r=o=>e[o]||-1;let{logLevel:n}=t,s=r(n);function i(o,...a){r(o)>=s&&console[o](...a)}return i.warn=i.bind(null,"warn"),i.error=i.bind(null,"error"),i.info=i.bind(null,"info"),i.debug=i.bind(null,"debug"),{rootInjects:{log:i}}}let Hg=!1;function tj(){return{statePlugins:{spec:{wrapActions:{updateSpec:t=>(...e)=>(Hg=!0,t(...e)),updateJsonSpec:(t,e)=>(...r)=>{const n=e.getConfigs().onComplete;return Hg&&typeof n=="function"&&(setTimeout(n,0),Hg=!1),t(...r)}}}}}}const cO=t=>{const e="_**[]";return t.indexOf(e)<0?t:t.split(e)[0].trim()},nOe=t=>t==="-d "||/^[_\/-]/g.test(t)?t:"'"+t.replace(/'/g,"'\\''")+"'",sOe=t=>(t=t.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^
|
|
231
|
+
`))==="-d "?t.replace(/-d /g,`-d ^
|
|
232
|
+
`):/^[_\/-]/g.test(t)?t:'"'+t+'"',iOe=t=>t==="-d "?t:/\n/.test(t)?`@"
|
|
233
|
+
${t.replace(/`/g,"``").replace(/\$/g,"`$")}
|
|
234
|
+
"@`:/^[_\/-]/.test(t)?t:`'${t.replace(/'/g,"''")}'`,IS=(t,e,r,n="")=>{let s=!1,i="";const o=(...d)=>i+=" "+d.map(e).join(" "),a=(...d)=>i+=d.map(e).join(" "),c=()=>i+=` ${r}`,l=(d=1)=>i+=" ".repeat(d);let p=t.get("headers");i+="curl"+n;const f=t.get("curlOptions");if(K.List.isList(f)&&!f.isEmpty()&&o(...t.get("curlOptions")),o("-X",t.get("method")),c(),l(),a(`${t.get("url")}`),p&&p.size)for(let d of t.get("headers").entries()){c(),l();let[g,v]=d;a("-H",`${g}: ${v}`),s=s||/^content-type$/i.test(g)&&/^multipart\/form-data$/i.test(v)}const m=t.get("body");if(m)if(s&&["POST","PUT","PATCH"].includes(t.get("method")))for(let[d,g]of m.entrySeq()){let v=cO(d);c(),l(),a("-F"),g instanceof Pt.File&&typeof g.valueOf()=="string"?o(`${v}=${g.data}${g.type?`;type=${g.type}`:""}`):g instanceof Pt.File?o(`${v}=@${g.name}${g.type?`;type=${g.type}`:""}`):o(`${v}=${g}`)}else if(m instanceof Pt.File)c(),l(),a(`--data-binary '@${m.name}'`);else{c(),l(),a("-d ");let d=m;K.Map.isMap(d)?a(function(v){let y=[];for(let[E,S]of v.get("body").entrySeq()){let w=cO(E);S instanceof Pt.File?y.push(` "${w}": {
|
|
235
|
+
"name": "${S.name}"${S.type?`,
|
|
236
|
+
"type": "${S.type}"`:""}
|
|
237
|
+
}`):y.push(` "${w}": ${JSON.stringify(S,null,2).replace(/(\r\n|\r|\n)/g,`
|
|
238
|
+
`)}`)}return`{
|
|
239
|
+
${y.join(`,
|
|
240
|
+
`)}
|
|
241
|
+
}`}(t)):(typeof d!="string"&&(d=JSON.stringify(d)),a(d))}else m||t.get("method")!=="POST"||(c(),l(),a("-d ''"));return i},oOe=t=>IS(t,iOe,"`\n",".exe"),rj=t=>IS(t,nOe,`\\
|
|
242
|
+
`),aOe=t=>IS(t,sOe,`^
|
|
243
|
+
`),RS=t=>t||K.Map(),nj=Ke(RS,t=>{const e=t.get("languages"),r=t.get("generators",K.Map());return!e||e.isEmpty()?r:r.filter((n,s)=>e.includes(s))}),cOe=t=>({fn:e})=>nj(t).map((r,n)=>{const s=(i=>e[`requestSnippetGenerator_${i}`])(n);return typeof s!="function"?null:r.set("fn",s)}).filter(r=>r),lOe=Ke(RS,t=>t.get("activeLanguage")),uOe=Ke(RS,t=>t.get("defaultExpanded")),pOe={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(250, 250, 250)",paddingBottom:"0",paddingTop:"0",border:"1px solid rgb(51, 51, 51)",borderRadius:"4px 4px 0 0",boxShadow:"none",borderBottom:"none"},fOe={cursor:"pointer",lineHeight:1,display:"inline-flex",backgroundColor:"rgb(51, 51, 51)",boxShadow:"none",border:"1px solid rgb(51, 51, 51)",paddingBottom:"0",paddingTop:"0",borderRadius:"4px 4px 0 0",marginTop:"-5px",marginRight:"-5px",marginLeft:"-5px",zIndex:"9999",borderBottom:"none"};var hOe=({request:t,requestSnippetsSelectors:e,getComponent:r})=>{var E;const n=be.useRef(null),s=r("ArrowUpIcon"),i=r("ArrowDownIcon"),o=r("SyntaxHighlighter",!0),[a,c]=be.useState((E=e.getSnippetGenerators())==null?void 0:E.keySeq().first()),[l,p]=be.useState(e==null?void 0:e.getDefaultExpanded()),f=e.getSnippetGenerators(),m=f.get(a),d=m.get("fn")(t),g=()=>{p(!l)},v=S=>S===a?fOe:pOe,y=S=>{const{target:w,deltaY:x}=S,{scrollHeight:I,offsetHeight:T,scrollTop:D}=w;I>T&&(D===0&&x<0||T+D>=I&&x>0)&&S.preventDefault()};return be.useEffect(()=>{},[]),be.useEffect(()=>{const S=Array.from(n.current.childNodes).filter(w=>{var x;return!!w.nodeType&&((x=w.classList)==null?void 0:x.contains("curl-command"))});return S.forEach(w=>w.addEventListener("mousewheel",y,{passive:!1})),()=>{S.forEach(w=>w.removeEventListener("mousewheel",y))}},[t]),u.createElement("div",{className:"request-snippets",ref:n},u.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},u.createElement("h4",{onClick:()=>g(),style:{cursor:"pointer"}},"Snippets"),u.createElement("button",{onClick:()=>g(),style:{border:"none",background:"none"},title:l?"Collapse operation":"Expand operation"},l?u.createElement(i,{className:"arrow",width:"10",height:"10"}):u.createElement(s,{className:"arrow",width:"10",height:"10"}))),l&&u.createElement("div",{className:"curl-command"},u.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},f.entrySeq().map(([S,w])=>u.createElement("div",{className:mt("btn",{active:S===a}),style:v(S),key:S,onClick:()=>(x=>{a!==x&&c(x)})(S)},u.createElement("h4",{style:S===a?{color:"white"}:{}},w.get("title"))))),u.createElement("div",{className:"copy-to-clipboard"},u.createElement(Oh.CopyToClipboard,{text:d},u.createElement("button",null))),u.createElement("div",null,u.createElement(o,{language:m.get("syntax"),className:"curl microlight",renderPlainText:({children:S,PlainTextViewer:w})=>u.createElement(w,{className:"curl"},S)},d))))},sj=()=>({components:{RequestSnippets:hOe},fn:{requestSnippetGenerator_curl_bash:rj,requestSnippetGenerator_curl_cmd:aOe,requestSnippetGenerator_curl_powershell:oOe},statePlugins:{requestSnippets:{selectors:d0}}});const ah=class ah extends be.Component{constructor(r,n){super(r,n);H(this,"toggleCollapsed",()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})});H(this,"onLoad",r=>{if(r&&this.props.layoutSelectors){const n=this.props.layoutSelectors.getScrollToKey();gt.is(n,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,r.parentElement)}});let{expanded:s,collapsedContent:i}=this.props;this.state={expanded:s,collapsedContent:i||ah.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:r,expanded:n,modelName:s}=this.props;r&&n&&this.props.onToggle(s,n)}UNSAFE_componentWillReceiveProps(r){this.props.expanded!==r.expanded&&this.setState({expanded:r.expanded})}render(){const{title:r,classes:n}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?u.createElement("span",{className:n||""},this.props.children):u.createElement("span",{className:n||"",ref:this.onLoad},u.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},r&&u.createElement("span",{className:"pointer"},r),u.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&u.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}};H(ah,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:gt.List([])});let T0=ah;const dOe=({initialTab:t,isExecute:e,schema:r,example:n})=>{const s=be.useMemo(()=>({example:"example",model:"model"}),[]),i=be.useMemo(()=>Object.keys(s),[s]).includes(t)&&r&&!e?t:s.example,o=(p=>{const f=be.useRef();return be.useEffect(()=>{f.current=p}),f.current})(e),[a,c]=be.useState(i),l=be.useCallback(p=>{c(p.target.dataset.name)},[]);return be.useEffect(()=>{o&&!e&&n&&c(s.example)},[o,e,n]),{activeTab:a,onTabChange:l,tabs:s}};var lO,mOe=({schema:t,example:e,isExecute:r=!1,specPath:n,includeWriteOnly:s=!1,includeReadOnly:i=!1,getComponent:o,getConfigs:a,specSelectors:c})=>{const{defaultModelRendering:l,defaultModelExpandDepth:p}=a(),f=o("ModelWrapper"),m=o("HighlightCode",!0),d=sa()(5).toString("base64"),g=sa()(5).toString("base64"),v=sa()(5).toString("base64"),y=sa()(5).toString("base64"),E=c.isOAS3(),{activeTab:S,tabs:w,onTabChange:x}=dOe({initialTab:l,isExecute:r,schema:t,example:e});return u.createElement("div",{className:"model-example"},u.createElement("ul",{className:"tab",role:"tablist"},u.createElement("li",{className:mt("tabitem",{active:S===w.example}),role:"presentation"},u.createElement("button",{"aria-controls":g,"aria-selected":S===w.example,className:"tablinks","data-name":"example",id:d,onClick:x,role:"tab"},r?"Edit Value":"Example Value")),t&&u.createElement("li",{className:mt("tabitem",{active:S===w.model}),role:"presentation"},u.createElement("button",{"aria-controls":y,"aria-selected":S===w.model,className:mt("tablinks",{inactive:r}),"data-name":"model",id:v,onClick:x,role:"tab"},E?"Schema":"Model"))),S===w.example&&u.createElement("div",{"aria-hidden":S!==w.example,"aria-labelledby":d,"data-name":"examplePanel",id:g,role:"tabpanel",tabIndex:"0"},e||u.createElement(m,null,"(no example available")),S===w.model&&u.createElement("div",{className:"model-container","aria-hidden":S===w.example,"aria-labelledby":v,"data-name":"modelPanel",id:y,role:"tabpanel",tabIndex:"0"},u.createElement(f,{schema:t,getComponent:o,getConfigs:a,specSelectors:c,expandDepth:p,specPath:n,includeReadOnly:i,includeWriteOnly:s})))};class gOe extends be.Component{constructor(){super(...arguments);H(this,"onToggle",(r,n)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,n)})}render(){let{getComponent:r,getConfigs:n}=this.props;const s=r("Model");let i;return this.props.layoutSelectors&&(i=this.props.layoutSelectors.isShown(this.props.fullPath)),u.createElement("div",{className:"model-box"},u.createElement(s,lt({},this.props,{getConfigs:n,expanded:i,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}function I0(){return I0=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)({}).hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},I0.apply(null,arguments)}var ij=t=>be.createElement("svg",I0({xmlns:"http://www.w3.org/2000/svg",width:200,height:200,className:"rolling-load_svg__lds-rolling",preserveAspectRatio:"xMidYMid",style:{backgroundImage:"none",backgroundPosition:"initial initial",backgroundRepeat:"initial initial"},viewBox:"0 0 100 100"},t),lO||(lO=be.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},be.createElement("animateTransform",{attributeName:"transform",begin:"0s",calcMode:"linear",dur:"1s",keyTimes:"0;1",repeatCount:"indefinite",type:"rotate",values:"0 50 50;360 50 50"}))));const uO=t=>{const e=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(e)}catch{return e}};class oj extends VX{constructor(){super(...arguments);H(this,"getModelName",r=>r.indexOf("#/definitions/")!==-1?uO(r.replace(/^.*#\/definitions\//,"")):r.indexOf("#/components/schemas/")!==-1?uO(r.replace(/^.*#\/components\/schemas\//,"")):void 0);H(this,"getRefSchema",r=>{let{specSelectors:n}=this.props;return n.findDefinition(r)})}render(){let{getComponent:r,getConfigs:n,specSelectors:s,schema:i,required:o,name:a,isRef:c,specPath:l,displayName:p,includeReadOnly:f,includeWriteOnly:m}=this.props;const d=r("ObjectModel"),g=r("ArrayModel"),v=r("PrimitiveModel");let y="object",E=i&&i.get("$$ref"),S=i&&i.get("$ref");if(!a&&E&&(a=this.getModelName(E)),S){const x=this.getModelName(S),I=this.getRefSchema(x);K.Map.isMap(I)?(i=I.mergeDeep(i),E||(i=i.set("$$ref",S),E=S)):K.Map.isMap(i)&&i.size===1&&(i=null,a=S)}if(!i)return u.createElement("span",{className:"model model-title"},u.createElement("span",{className:"model-title__text"},p||a),!S&&u.createElement(ij,{height:"20px",width:"20px"}));const w=s.isOAS3()&&i.get("deprecated");switch(c=c!==void 0?c:!!E,y=i&&i.get("type")||y,y){case"object":return u.createElement(d,lt({className:"object"},this.props,{specPath:l,getConfigs:n,schema:i,name:a,deprecated:w,isRef:c,includeReadOnly:f,includeWriteOnly:m}));case"array":return u.createElement(g,lt({className:"array"},this.props,{getConfigs:n,schema:i,name:a,deprecated:w,required:o,includeReadOnly:f,includeWriteOnly:m}));default:return u.createElement(v,lt({},this.props,{getComponent:r,getConfigs:n,schema:i,name:a,deprecated:w,required:o}))}}}H(oj,"propTypes",{schema:O_.map.isRequired,getComponent:Ur.func.isRequired,getConfigs:Ur.func.isRequired,specSelectors:Ur.object.isRequired,name:Ur.string,displayName:Ur.string,isRef:Ur.bool,required:Ur.bool,expandDepth:Ur.number,depth:Ur.number,specPath:O_.list.isRequired,includeReadOnly:Ur.bool,includeWriteOnly:Ur.bool});class yOe extends be.Component{constructor(){super(...arguments);H(this,"getSchemaBasePath",()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"]);H(this,"getCollapsedContent",()=>" ");H(this,"handleToggle",(r,n)=>{const{layoutActions:s}=this.props;s.show([...this.getSchemaBasePath(),r],n),n&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),r])});H(this,"onLoadModels",r=>{r&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),r)});H(this,"onLoadModel",r=>{if(r){const n=r.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),n],r)}})}render(){let{specSelectors:r,getComponent:n,layoutSelectors:s,layoutActions:i,getConfigs:o}=this.props,a=r.definitions(),{docExpansion:c,defaultModelsExpandDepth:l}=o();if(!a.size||l<0)return null;const p=this.getSchemaBasePath();let f=s.isShown(p,l>0&&c!=="none");const m=r.isOAS3(),d=n("ModelWrapper"),g=n("Collapse"),v=n("ModelCollapse"),y=n("JumpToPath",!0),E=n("ArrowUpIcon"),S=n("ArrowDownIcon");return u.createElement("section",{className:f?"models is-open":"models",ref:this.onLoadModels},u.createElement("h4",null,u.createElement("button",{"aria-expanded":f,className:"models-control",onClick:()=>i.show(p,!f)},u.createElement("span",null,m?"Schemas":"Models"),f?u.createElement(E,null):u.createElement(S,null))),u.createElement(g,{isOpened:f},a.entrySeq().map(([w])=>{const x=[...p,w],I=gt.List(x),T=r.specResolvedSubtree(x),D=r.specJson().getIn(x),B=K.Map.isMap(T)?T:gt.Map(),P=K.Map.isMap(D)?D:gt.Map(),Z=B.get("title")||P.get("title")||w,V=s.isShown(x,!1);V&&B.size===0&&P.size>0&&this.props.specActions.requestResolvedSubtree(x);const J=u.createElement(d,{name:w,expandDepth:l,schema:B||gt.Map(),displayName:Z,fullPath:x,specPath:I,getComponent:n,specSelectors:r,getConfigs:o,layoutSelectors:s,layoutActions:i,includeReadOnly:!0,includeWriteOnly:!0}),F=u.createElement("span",{className:"model-box"},u.createElement("span",{className:"model model-title"},Z));return u.createElement("div",{id:`model-${w}`,className:"model-container",key:`models-section-${w}`,"data-name":w,ref:this.onLoadModel},u.createElement("span",{className:"models-jump-to-path"},u.createElement(y,{path:I})),u.createElement(v,{classes:"model-box",collapsedContent:this.getCollapsedContent(w),onToggle:this.handleToggle,title:F,displayName:Z,modelName:w,specPath:I,layoutSelectors:s,layoutActions:i,hideSelfOnExpand:!0,expanded:l>0&&V},J))}).toArray()))}}var vOe=({value:t,getComponent:e})=>{let r=e("ModelCollapse"),n=u.createElement("span",null,"Array [ ",t.count()," ]");return u.createElement("span",{className:"prop-enum"},"Enum:",u.createElement("br",null),u.createElement(r,{collapsedContent:n},"[ ",t.map(String).join(", ")," ]"))};function R0(t){return t.match(/^(?:[a-z]+:)?\/\//i)}function bOe(t,e){return t?R0(t)?function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n}(t):new URL(t,e).href:e}function rn(t,e,{selectedServer:r=""}={}){try{return function(s,i,{selectedServer:o=""}={}){if(!s)return;if(R0(s))return s;const a=bOe(o,i);return R0(a)?new URL(s,a).href:new URL(s,window.location.href).href}(t,e,{selectedServer:r})}catch{return}}function Gt(t){if(typeof t!="string"||t.trim()==="")return"";const e=t.trim(),r="about:blank";try{const n=`https://base${String(Math.random()).slice(2)}`,s=new URL(e,n),i=s.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(i.toLowerCase())?r:s.origin===n?e.startsWith("/")?`${s.pathname}${s.search}${s.hash}`:e.startsWith("./")||e.startsWith("../")?`${e.match(/^(\.\.?\/)+/)[0]}${s.pathname.substring(1)}${s.search}${s.hash}`:`${s.pathname.substring(1)}${s.search}${s.hash}`:String(s)}catch{return r}}class EOe extends be.Component{render(){let{schema:e,name:r,displayName:n,isRef:s,getComponent:i,getConfigs:o,depth:a,onToggle:c,expanded:l,specPath:p,...f}=this.props,{specSelectors:m,expandDepth:d,includeReadOnly:g,includeWriteOnly:v}=f;const{isOAS3:y}=m,E=a>2||a===2&&p.last()!=="items";if(!e)return null;const{showExtensions:S}=o(),w=S?Ri(e):K.List();let x=e.get("description"),I=e.get("properties"),T=e.get("additionalProperties"),D=e.get("title")||n||r,B=e.get("required"),P=e.filter((M,ae)=>["maxProperties","minProperties","nullable","example"].indexOf(ae)!==-1),Z=e.get("deprecated"),V=e.getIn(["externalDocs","url"]),J=e.getIn(["externalDocs","description"]);const F=i("JumpToPath",!0),Q=i("Markdown",!0),se=i("Model"),re=i("ModelCollapse"),ce=i("Property"),ue=i("Link"),oe=i("ModelExtensions"),G=()=>u.createElement("span",{className:"model-jump-to-path"},u.createElement(F,{path:p})),ie=u.createElement("span",null,u.createElement("span",null,"{"),"...",u.createElement("span",null,"}"),s?u.createElement(G,null):""),pe=m.isOAS3()?e.get("allOf"):null,X=m.isOAS3()?e.get("anyOf"):null,le=m.isOAS3()?e.get("oneOf"):null,q=m.isOAS3()?e.get("not"):null,N=D&&u.createElement("span",{className:"model-title"},s&&e.get("$$ref")&&u.createElement("span",{className:mt("model-hint",{"model-hint--embedded":E})},e.get("$$ref")),u.createElement("span",{className:"model-title__text"},D));return u.createElement("span",{className:"model"},u.createElement(re,{modelName:r,title:N,onToggle:c,expanded:!!l||a<=d,collapsedContent:ie},u.createElement("span",{className:"brace-open object"},"{"),s?u.createElement(G,null):null,u.createElement("span",{className:"inner-object"},u.createElement("table",{className:"model"},u.createElement("tbody",null,x?u.createElement("tr",{className:"description"},u.createElement("td",null,"description:"),u.createElement("td",null,u.createElement(Q,{source:x}))):null,V&&u.createElement("tr",{className:"external-docs"},u.createElement("td",null,"externalDocs:"),u.createElement("td",null,u.createElement(ue,{target:"_blank",href:Gt(V)},J||V))),Z?u.createElement("tr",{className:"property"},u.createElement("td",null,"deprecated:"),u.createElement("td",null,"true")):null,I&&I.size?I.entrySeq().filter(([,M])=>(!M.get("readOnly")||g)&&(!M.get("writeOnly")||v)).map(([M,ae])=>{let ge=y()&&ae.get("deprecated"),Ce=K.List.isList(B)&&B.contains(M),Re=["property-row"];return ge&&Re.push("deprecated"),Ce&&Re.push("required"),u.createElement("tr",{key:M,className:Re.join(" ")},u.createElement("td",null,M,Ce&&u.createElement("span",{className:"star"},"*")),u.createElement("td",null,u.createElement(se,lt({key:`object-${r}-${M}_${ae}`},f,{required:Ce,getComponent:i,specPath:p.push("properties",M),getConfigs:o,schema:ae,depth:a+1}))))}).toArray():null,w.size===0?null:u.createElement(u.Fragment,null,u.createElement("tr",null,u.createElement("td",null," ")),u.createElement(oe,{extensions:w,propClass:"extension"})),T&&T.size?u.createElement("tr",null,u.createElement("td",null,"< * >:"),u.createElement("td",null,u.createElement(se,lt({},f,{required:!1,getComponent:i,specPath:p.push("additionalProperties"),getConfigs:o,schema:T,depth:a+1})))):null,pe?u.createElement("tr",null,u.createElement("td",null,"allOf ->"),u.createElement("td",null,pe.map((M,ae)=>u.createElement("div",{key:ae},u.createElement(se,lt({},f,{required:!1,getComponent:i,specPath:p.push("allOf",ae),getConfigs:o,schema:M,depth:a+1})))))):null,X?u.createElement("tr",null,u.createElement("td",null,"anyOf ->"),u.createElement("td",null,X.map((M,ae)=>u.createElement("div",{key:ae},u.createElement(se,lt({},f,{required:!1,getComponent:i,specPath:p.push("anyOf",ae),getConfigs:o,schema:M,depth:a+1})))))):null,le?u.createElement("tr",null,u.createElement("td",null,"oneOf ->"),u.createElement("td",null,le.map((M,ae)=>u.createElement("div",{key:ae},u.createElement(se,lt({},f,{required:!1,getComponent:i,specPath:p.push("oneOf",ae),getConfigs:o,schema:M,depth:a+1})))))):null,q?u.createElement("tr",null,u.createElement("td",null,"not ->"),u.createElement("td",null,u.createElement("div",null,u.createElement(se,lt({},f,{required:!1,getComponent:i,specPath:p.push("not"),getConfigs:o,schema:q,depth:a+1}))))):null))),u.createElement("span",{className:"brace-close"},"}")),P.size?P.entrySeq().map(([M,ae])=>u.createElement(ce,{key:`${M}-${ae}`,propKey:M,propVal:ae,propClass:"property"})):null)}}class SOe extends be.Component{render(){let{getComponent:e,getConfigs:r,schema:n,depth:s,expandDepth:i,name:o,displayName:a,specPath:c}=this.props,l=n.get("description"),p=n.get("items"),f=n.get("title")||a||o,m=n.filter((I,T)=>["type","items","description","$$ref","externalDocs"].indexOf(T)===-1),d=n.getIn(["externalDocs","url"]),g=n.getIn(["externalDocs","description"]);const v=e("Markdown",!0),y=e("ModelCollapse"),E=e("Model"),S=e("Property"),w=e("Link"),x=f&&u.createElement("span",{className:"model-title"},u.createElement("span",{className:"model-title__text"},f));return u.createElement("span",{className:"model"},u.createElement(y,{title:x,expanded:s<=i,collapsedContent:"[...]"},"[",m.size?m.entrySeq().map(([I,T])=>u.createElement(S,{key:`${I}-${T}`,propKey:I,propVal:T,propClass:"property"})):null,l?u.createElement(v,{source:l}):m.size?u.createElement("div",{className:"markdown"}):null,d&&u.createElement("div",{className:"external-docs"},u.createElement(w,{target:"_blank",href:Gt(d)},g||d)),u.createElement("span",null,u.createElement(E,lt({},this.props,{getConfigs:r,specPath:c.push("items"),name:null,schema:p,required:!1,depth:s+1}))),"]"))}}const cp="property primitive";class wOe extends be.Component{render(){let{schema:e,getComponent:r,getConfigs:n,name:s,displayName:i,depth:o,expandDepth:a}=this.props;const{showExtensions:c}=n();if(!e||!e.get)return u.createElement("div",null);let l=e.get("type"),p=e.get("format"),f=e.get("xml"),m=e.get("enum"),d=e.get("title")||i||s,g=e.get("description");const v=Ri(e);let y=e.filter((Z,V)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(V)===-1).filterNot((Z,V)=>v.has(V)),E=e.getIn(["externalDocs","url"]),S=e.getIn(["externalDocs","description"]);const w=r("Markdown",!0),x=r("EnumModel"),I=r("Property"),T=r("ModelCollapse"),D=r("Link"),B=r("ModelExtensions"),P=d&&u.createElement("span",{className:"model-title"},u.createElement("span",{className:"model-title__text"},d));return u.createElement("span",{className:"model"},u.createElement(T,{title:P,expanded:o<=a,collapsedContent:"[...]"},u.createElement("span",{className:"prop"},s&&o>1&&u.createElement("span",{className:"prop-name"},d),u.createElement("span",{className:"prop-type"},l),p&&u.createElement("span",{className:"prop-format"},"($",p,")"),y.size?y.entrySeq().map(([Z,V])=>u.createElement(I,{key:`${Z}-${V}`,propKey:Z,propVal:V,propClass:cp})):null,c&&v.size>0?u.createElement(B,{extensions:v,propClass:`${cp} extension`}):null,g?u.createElement(w,{source:g}):null,E&&u.createElement("div",{className:"external-docs"},u.createElement(D,{target:"_blank",href:Gt(E)},S||E)),f&&f.size?u.createElement("span",null,u.createElement("br",null),u.createElement("span",{className:cp},"xml:"),f.entrySeq().map(([Z,V])=>u.createElement("span",{key:`${Z}-${V}`,className:cp},u.createElement("br",null)," ",Z,": ",String(V))).toArray()):null,m&&u.createElement(x,{value:m,getComponent:r}))))}}class _Oe extends u.Component{constructor(){super(...arguments);H(this,"onChange",r=>{this.setScheme(r.target.value)});H(this,"setScheme",r=>{let{path:n,method:s,specActions:i}=this.props;i.setScheme(r,n,s)})}UNSAFE_componentWillMount(){let{schemes:r}=this.props;this.setScheme(r.first())}UNSAFE_componentWillReceiveProps(r){this.props.currentScheme&&r.schemes.includes(this.props.currentScheme)||this.setScheme(r.schemes.first())}render(){let{schemes:r,currentScheme:n}=this.props;return u.createElement("label",{htmlFor:"schemes"},u.createElement("span",{className:"schemes-title"},"Schemes"),u.createElement("select",{onChange:this.onChange,value:n,id:"schemes"},r.valueSeq().map(s=>u.createElement("option",{value:s,key:s},s)).toArray()))}}class xOe extends u.Component{render(){const{specActions:e,specSelectors:r,getComponent:n}=this.props,s=r.operationScheme(),i=r.schemes(),o=n("schemes");return i&&i.size?u.createElement(o,{currentScheme:s,schemes:i,specActions:e}):null}}const Ao={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:K.List()};class aj extends be.Component{componentDidMount(){const{dispatchInitialValue:e,value:r,onChange:n}=this.props;e?n(r):e===!1&&n("")}render(){let{schema:e,errors:r,value:n,onChange:s,getComponent:i,fn:o,disabled:a}=this.props;const c=e&&e.get?e.get("format"):null,l=e&&e.get?e.get("type"):null,p=o.getSchemaObjectType(e),f=o.isFileUploadIntended(e);let m=g=>i(g,!1,{failSilently:!0}),d=l?m(c?`JsonSchema_${l}_${c}`:`JsonSchema_${l}`):i("JsonSchema_string");return f||!K.List.isList(l)||p!=="array"&&p!=="object"||(d=i("JsonSchema_object")),d||(d=i("JsonSchema_string")),u.createElement(d,lt({},this.props,{errors:r,fn:o,getComponent:i,value:n,onChange:s,schema:e,disabled:a}))}}H(aj,"defaultProps",Ao);class cj extends be.Component{constructor(){super(...arguments);H(this,"onChange",r=>{const n=this.props.schema&&this.props.schema.get("type")==="file"?r.target.files[0]:r.target.value;this.props.onChange(n,this.props.keyName)});H(this,"onEnumChange",r=>this.props.onChange(r))}render(){let{getComponent:r,value:n,schema:s,errors:i,required:o,description:a,disabled:c}=this.props;const l=s&&s.get?s.get("enum"):null,p=s&&s.get?s.get("format"):null,f=s&&s.get?s.get("type"):null,m=s&&s.get?s.get("in"):null;if(n?(Eu(n)||typeof n=="object")&&(n=fr(n)):n="",i=i.toJS?i.toJS():[],l){const v=r("Select");return u.createElement(v,{className:i.length?"invalid":"",title:i.length?i:"",allowedValues:[...l],value:n,allowEmptyValue:!o,disabled:c,onChange:this.onEnumChange})}const d=c||m&&m==="formData"&&!("FormData"in window),g=r("Input");return f&&f==="file"?u.createElement(g,{type:"file",className:i.length?"invalid":"",title:i.length?i:"",onChange:this.onChange,disabled:d}):u.createElement(J$,{type:p&&p==="password"?"password":"text",className:i.length?"invalid":"",title:i.length?i:"",value:n,minLength:0,debounceTimeout:350,placeholder:a,onChange:this.onChange,disabled:d})}}H(cj,"defaultProps",Ao);class lj extends be.PureComponent{constructor(r,n){super(r,n);H(this,"onChange",()=>{this.props.onChange(this.state.value)});H(this,"onItemChange",(r,n)=>{this.setState(({value:s})=>({value:s.set(n,r)}),this.onChange)});H(this,"removeItem",r=>{this.setState(({value:n})=>({value:n.delete(r)}),this.onChange)});H(this,"addItem",()=>{const{fn:r}=this.props;let n=Kg(this.state.value);this.setState(()=>({value:n.push(r.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))}),this.onChange)});H(this,"onEnumChange",r=>{this.setState(()=>({value:r}),this.onChange)});this.state={value:Kg(r.value),schema:r.schema}}UNSAFE_componentWillReceiveProps(r){const n=Kg(r.value);n!==this.state.value&&this.setState({value:n}),r.schema!==this.state.schema&&this.setState({schema:r.schema})}render(){let{getComponent:r,required:n,schema:s,errors:i,fn:o,disabled:a}=this.props;i=i.toJS?i.toJS():Array.isArray(i)?i:[];const c=i.filter(T=>typeof T=="string"),l=i.filter(T=>T.needRemove!==void 0).map(T=>T.error),p=this.state.value,f=!!(p&&p.count&&p.count()>0),m=s.getIn(["items","enum"]),d=s.get("items"),g=o.getSchemaObjectType(d),v=o.getSchemaObjectTypeLabel(d),y=s.getIn(["items","format"]),E=s.get("items");let S,w=!1,x=g==="file"||g==="string"&&y==="binary";if(g&&y?S=r(`JsonSchema_${g}_${y}`):g!=="boolean"&&g!=="array"&&g!=="object"||(S=r(`JsonSchema_${g}`)),!K.List.isList(d==null?void 0:d.get("type"))||g!=="array"&&g!=="object"||(S=r("JsonSchema_object")),S||x||(w=!0),m){const T=r("Select");return u.createElement(T,{className:i.length?"invalid":"",title:i.length?i:"",multiple:!0,value:p,disabled:a,allowedValues:m,allowEmptyValue:!n,onChange:this.onEnumChange})}const I=r("Button");return u.createElement("div",{className:"json-schema-array"},f?p.map((T,D)=>{const B=K.fromJS([...i.filter(P=>P.index===D).map(P=>P.error)]);return u.createElement("div",{key:D,className:"json-schema-form-item"},x?u.createElement(kS,{value:T,onChange:P=>this.onItemChange(P,D),disabled:a,errors:B,getComponent:r}):w?u.createElement(PS,{value:T,onChange:P=>this.onItemChange(P,D),disabled:a,errors:B}):u.createElement(S,lt({},this.props,{value:T,onChange:P=>this.onItemChange(P,D),disabled:a,errors:B,schema:E,getComponent:r,fn:o})),a?null:u.createElement(I,{className:`btn btn-sm json-schema-form-item-remove ${l.length?"invalid":null}`,title:l.length?l:"",onClick:()=>this.removeItem(D)}," - "))}):null,a?null:u.createElement(I,{className:`btn btn-sm json-schema-form-item-add ${c.length?"invalid":null}`,title:c.length?c:"",onClick:this.addItem},"Add ",v," item"))}}H(lj,"defaultProps",Ao);class PS extends be.Component{constructor(){super(...arguments);H(this,"onChange",r=>{const n=r.target.value;this.props.onChange(n,this.props.keyName)})}render(){let{value:r,errors:n,description:s,disabled:i}=this.props;return r?(Eu(r)||typeof r=="object")&&(r=fr(r)):r="",n=n.toJS?n.toJS():[],u.createElement(J$,{type:"text",className:n.length?"invalid":"",title:n.length?n:"",value:r,minLength:0,debounceTimeout:350,placeholder:s,onChange:this.onChange,disabled:i})}}H(PS,"defaultProps",Ao);class kS extends be.Component{constructor(){super(...arguments);H(this,"onFileChange",r=>{const n=r.target.files[0];this.props.onChange(n,this.props.keyName)})}render(){let{getComponent:r,errors:n,disabled:s}=this.props;const i=r("Input"),o=s||!("FormData"in window);return u.createElement(i,{type:"file",className:n.length?"invalid":"",title:n.length?n:"",onChange:this.onFileChange,disabled:o})}}H(kS,"defaultProps",Ao);class uj extends be.Component{constructor(){super(...arguments);H(this,"onEnumChange",r=>this.props.onChange(r))}render(){let{getComponent:r,value:n,errors:s,schema:i,required:o,disabled:a}=this.props;s=s.toJS?s.toJS():[];let c=i&&i.get?i.get("enum"):null,l=!c||!o,p=!c&&["true","false"];const f=r("Select");return u.createElement(f,{className:s.length?"invalid":"",title:s.length?s:"",value:String(n),disabled:a,allowedValues:c?[...c]:p,allowEmptyValue:l,onChange:this.onEnumChange})}}H(uj,"defaultProps",Ao);const AOe=t=>t.map(e=>{const r=e.propKey!==void 0?e.propKey:e.index;let n=typeof e=="string"?e:typeof e.error=="string"?e.error:null;if(!r&&n)return n;let s=e.error,i=`/${e.propKey}`;for(;typeof s=="object";){const o=s.propKey!==void 0?s.propKey:s.index;if(o===void 0||(i+=`/${o}`,!s.error))break;s=s.error}return`${i}: ${s}`});class pj extends be.PureComponent{constructor(){super();H(this,"onChange",r=>{this.props.onChange(r)});H(this,"handleOnChange",r=>{const n=r.target.value;this.onChange(n)})}render(){let{getComponent:r,value:n,errors:s,disabled:i}=this.props;const o=r("TextArea");return s=s.toJS?s.toJS():Array.isArray(s)?s:[],u.createElement("div",null,u.createElement(o,{className:mt({invalid:s.length}),title:s.length?AOe(s).join(", "):"",value:fr(n),disabled:i,onChange:this.handleOnChange}))}}H(pj,"defaultProps",Ao);function Kg(t){return K.List.isList(t)?t:Array.isArray(t)?K.fromJS(t):K.List()}const OOe=({extensions:t,propClass:e=""})=>t.entrySeq().map(([r,n])=>{const s=vi(n)??null;return u.createElement("tr",{key:r,className:e},u.createElement("td",null,r),u.createElement("td",null,JSON.stringify(s)))}).toArray(),COe=(t,e)=>{const r=K.Map.isMap(t);if(!r&&!gs(t))return!1;const n=r?t.get("type"):t.type;return e===n||Array.isArray(e)&&e.includes(n)},fj=(t,e=new WeakSet)=>{if(t==null||e.has(t))return"any";e.add(t);const{type:r,items:n}=t;return Object.hasOwn(t,"items")?n?`array<${fj(n,e)}>`:"array<any>":r},$Oe=t=>fj(vi(t));var hj=()=>({components:{modelExample:mOe,ModelWrapper:gOe,ModelCollapse:T0,Model:oj,Models:yOe,EnumModel:vOe,ObjectModel:EOe,ArrayModel:SOe,PrimitiveModel:wOe,ModelExtensions:OOe,schemes:_Oe,SchemesContainer:xOe,...m0},fn:{hasSchemaType:COe,getSchemaObjectTypeLabel:$Oe}}),TOe=Fe(123),dj=Fe.n(TOe);const Gg=t=>e=>Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every((r,n)=>r===e[n]),IOe=(...t)=>t;class ROe extends Map{delete(e){const r=Array.from(this.keys()).find(Gg(e));return super.delete(r)}get(e){const r=Array.from(this.keys()).find(Gg(e));return super.get(r)}has(e){return Array.from(this.keys()).findIndex(Gg(e))!==-1}}var wu=(t,e=IOe)=>{const{Cache:r}=mc;mc.Cache=ROe;const n=mc(t,e);return mc.Cache=r,n};const pO={string:t=>t.pattern?(e=>{try{const r=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),n=e.replace(r,"100"),s=new G$(n);return s.max=100,s.gen()}catch{return"string"}})(t.pattern):"string",string_email:()=>"user@example.com","string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),string_time:()=>new Date().toISOString().substring(11),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:t=>typeof t.default!="boolean"||t.default},fO=t=>{t=zi(t);let{type:e,format:r}=t,n=pO[`${e}_${r}`]||pO[e];return Vs(n)?n(t):"Unknown Type: "+t.type},POe=t=>Uk(t,"$$ref",e=>typeof e=="string"&&e.indexOf("#")>-1),mj=["maxProperties","minProperties"],gj=["minItems","maxItems"],yj=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],kOe=["minLength","maxLength"],ua=(t,e,r={})=>{const n={...t};if(["example","default","enum","xml","type",...mj,...gj,...yj,...kOe].forEach(s=>(i=>{n[i]===void 0&&e[i]!==void 0&&(n[i]=e[i])})(s)),e.required!==void 0&&Array.isArray(e.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),e.required.forEach(s=>{n.required.includes(s)||n.required.push(s)})),e.properties){n.properties||(n.properties={});let s=zi(e.properties);for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(s[i]&&s[i].deprecated||s[i]&&s[i].readOnly&&!r.includeReadOnly||s[i]&&s[i].writeOnly&&!r.includeWriteOnly||n.properties[i]||(n.properties[i]=s[i],!e.required&&Array.isArray(e.required)&&e.required.indexOf(i)!==-1&&(n.required?n.required.push(i):n.required=[i])))}return e.items&&(n.items||(n.items={}),n.items=ua(n.items,e.items,r)),n},bn=(t,e={},r=void 0,n=!1)=>{t&&Vs(t.toJS)&&(t=t.toJS());let s=r!==void 0||t&&t.example!==void 0||t&&t.default!==void 0;const i=!s&&t&&t.oneOf&&t.oneOf.length>0,o=!s&&t&&t.anyOf&&t.anyOf.length>0;if(!s&&(i||o)){const F=zi(i?t.oneOf[0]:t.anyOf[0]);if(!(t=ua(t,F,e)).xml&&F.xml&&(t.xml=F.xml),t.example!==void 0&&F.example!==void 0)s=!0;else if(F.properties){t.properties||(t.properties={});let Q=zi(F.properties);for(let se in Q)Object.prototype.hasOwnProperty.call(Q,se)&&(Q[se]&&Q[se].deprecated||Q[se]&&Q[se].readOnly&&!e.includeReadOnly||Q[se]&&Q[se].writeOnly&&!e.includeWriteOnly||t.properties[se]||(t.properties[se]=Q[se],!F.required&&Array.isArray(F.required)&&F.required.indexOf(se)!==-1&&(t.required?t.required.push(se):t.required=[se])))}}const a={};let{xml:c,type:l,example:p,properties:f,additionalProperties:m,items:d}=t||{},{includeReadOnly:g,includeWriteOnly:v}=e;c=c||{};let y,{name:E,prefix:S,namespace:w}=c,x={};n&&(E=E||"notagname",y=(S?S+":":"")+E,w)&&(a[S?"xmlns:"+S:"xmlns"]=w),n&&(x[y]=[]);const I=F=>F.some(Q=>Object.prototype.hasOwnProperty.call(t,Q));t&&!l&&(f||m||I(mj)?l="object":d||I(gj)?l="array":I(yj)?(l="number",t.type="number"):s||t.enum||(l="string",t.type="string"));const T=F=>{if((t==null?void 0:t.maxItems)!=null&&(F=F.slice(0,t==null?void 0:t.maxItems)),(t==null?void 0:t.minItems)!=null){let Q=0;for(;F.length<(t==null?void 0:t.minItems);)F.push(F[Q++%F.length])}return F},D=zi(f);let B,P=0;const Z=()=>t&&t.maxProperties!==null&&t.maxProperties!==void 0&&P>=t.maxProperties,V=F=>!t||t.maxProperties===null||t.maxProperties===void 0||!Z()&&(!(Q=>!(t&&t.required&&t.required.length&&t.required.includes(Q)))(F)||t.maxProperties-P-(()=>{if(!t||!t.required)return 0;let Q=0;return n?t.required.forEach(se=>Q+=x[se]===void 0?0:1):t.required.forEach(se=>{var re;return Q+=((re=x[y])==null?void 0:re.find(ce=>ce[se]!==void 0))===void 0?0:1}),t.required.length-Q})()>0);if(B=n?(F,Q=void 0)=>{if(t&&D[F]){if(D[F].xml=D[F].xml||{},D[F].xml.attribute){const re=Array.isArray(D[F].enum)?D[F].enum[0]:void 0,ce=D[F].example,ue=D[F].default;return void(a[D[F].xml.name||F]=ce!==void 0?ce:ue!==void 0?ue:re!==void 0?re:fO(D[F]))}D[F].xml.name=D[F].xml.name||F}else D[F]||m===!1||(D[F]={xml:{name:F}});let se=bn(t&&D[F]||void 0,e,Q,n);V(F)&&(P++,Array.isArray(se)?x[y]=x[y].concat(se):x[y].push(se))}:(F,Q)=>{if(V(F)){if(Object.prototype.hasOwnProperty.call(t,"discriminator")&&t.discriminator&&Object.prototype.hasOwnProperty.call(t.discriminator,"mapping")&&t.discriminator.mapping&&Object.prototype.hasOwnProperty.call(t,"$$ref")&&t.$$ref&&t.discriminator.propertyName===F){for(let se in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[se])!==-1){x[F]=se;break}}else x[F]=bn(D[F],e,Q,n);P++}},s){let F;if(F=POe(r!==void 0?r:p!==void 0?p:t.default),!n){if(typeof F=="number"&&l==="string")return`${F}`;if(typeof F!="string"||l==="string")return F;try{return JSON.parse(F)}catch{return F}}if(t||(l=Array.isArray(F)?"array":typeof F),l==="array"){if(!Array.isArray(F)){if(typeof F=="string")return F;F=[F]}const Q=t?t.items:void 0;Q&&(Q.xml=Q.xml||c||{},Q.xml.name=Q.xml.name||c.name);let se=F.map(re=>bn(Q,e,re,n));return se=T(se),c.wrapped?(x[y]=se,hs(a)||x[y].push({_attr:a})):x=se,x}if(l==="object"){if(typeof F=="string")return F;for(let Q in F)Object.prototype.hasOwnProperty.call(F,Q)&&(t&&D[Q]&&D[Q].readOnly&&!g||t&&D[Q]&&D[Q].writeOnly&&!v||(t&&D[Q]&&D[Q].xml&&D[Q].xml.attribute?a[D[Q].xml.name||Q]=F[Q]:B(Q,F[Q])));return hs(a)||x[y].push({_attr:a}),x}return x[y]=hs(a)?F:[{_attr:a},F],x}if(l==="object"){for(let F in D)Object.prototype.hasOwnProperty.call(D,F)&&(D[F]&&D[F].deprecated||D[F]&&D[F].readOnly&&!g||D[F]&&D[F].writeOnly&&!v||B(F));if(n&&a&&x[y].push({_attr:a}),Z())return x;if(m===!0)n?x[y].push({additionalProp:"Anything can be here"}):x.additionalProp1={},P++;else if(m){const F=zi(m),Q=bn(F,e,void 0,n);if(n&&F.xml&&F.xml.name&&F.xml.name!=="notagname")x[y].push(Q);else{const se=F["x-additionalPropertiesName"]||"additionalProp",re=t.minProperties!==null&&t.minProperties!==void 0&&P<t.minProperties?t.minProperties-P:3;for(let ce=1;ce<=re;ce++){if(Z())return x;if(n){const ue={};ue[se+ce]=Q.notagname,x[y].push(ue)}else x[se+ce]=Q;P++}}}return x}if(l==="array"){if(!d)return;let F;if(n&&(d.xml=d.xml||(t==null?void 0:t.xml)||{},d.xml.name=d.xml.name||c.name),Array.isArray(d.anyOf))F=d.anyOf.map(Q=>bn(ua(Q,d,e),e,void 0,n));else if(Array.isArray(d.oneOf))F=d.oneOf.map(Q=>bn(ua(Q,d,e),e,void 0,n));else{if(!(!n||n&&c.wrapped))return bn(d,e,void 0,n);F=[bn(d,e,void 0,n)]}return F=T(F),n&&c.wrapped?(x[y]=F,hs(a)||x[y].push({_attr:a}),x):F}let J;if(t&&Array.isArray(t.enum))J=xo(t.enum)[0];else{if(!t)return;if(J=fO(t),typeof J=="number"){let F=t.minimum;F!=null&&(t.exclusiveMinimum&&F++,J=F);let Q=t.maximum;Q!=null&&(t.exclusiveMaximum&&Q--,J=Q)}if(typeof J=="string"&&(t.maxLength!==null&&t.maxLength!==void 0&&(J=J.slice(0,t.maxLength)),t.minLength!==null&&t.minLength!==void 0)){let F=0;for(;J.length<t.minLength;)J+=J[F++%J.length]}}if(l!=="file")return n?(x[y]=hs(a)?J:[{_attr:a},J],x):J},hO=t=>(t.schema&&(t=t.schema),t.properties&&(t.type="object"),t),P0=(t,e,r)=>{const n=bn(t,e,r,!0);if(n)return typeof n=="string"?n:dj()(n,{declaration:!0,indent:" "})},k0=(t,e,r)=>bn(t,e,r,!1),vj=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],dO=wu(P0,vj),mO=wu(k0,vj),jOe=t=>{var e;return((e=vi(t))==null?void 0:e.type)??"string"},NOe=[{when:/json/,shouldStringifyTypes:["string"]}],MOe=["object"];var DOe=t=>(e,r,n,s)=>{const{fn:i}=t(),o=i.memoizedSampleFromSchema(e,r,s),a=typeof o,c=NOe.reduce((l,p)=>p.when.test(n)?[...l,...p.shouldStringifyTypes]:l,MOe);return GC(c,l=>l===a)?JSON.stringify(o,null,2):o},FOe=t=>(e,r,n,s)=>{const{fn:i}=t(),o=i.getJsonSampleSchema(e,r,n,s);let a;try{a=xn.dump(xn.load(o),{lineWidth:-1},{schema:ha}),a[a.length-1]===`
|
|
244
|
+
`&&(a=a.slice(0,a.length-1))}catch(c){return console.error(c),"error: could not generate yaml example"}return a.replace(/\t/g," ")},BOe=t=>(e,r,n)=>{const{fn:s}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
|
|
245
|
+
<!-- XML example cannot be generated; root element name is undefined -->`;if(e.$$ref){let i=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=i[1]}}return s.memoizedCreateXMLExample(e,r,n)},LOe=t=>(e,r="",n={},s=void 0)=>{const{fn:i}=t();return typeof(s==null?void 0:s.toJS)=="function"&&(s=s.toJS()),/xml/.test(r)?(typeof(e==null?void 0:e.toJS)=="function"&&(e=e.toJS()),i.getXmlSampleSchema(e,n,s)):/(yaml|yml)/.test(r)?i.getYamlSampleSchema(e,n,r,s):i.getJsonSampleSchema(e,n,r,s)},bj=({getSystem:t})=>{const e=DOe(t),r=FOe(t),n=BOe(t),s=LOe(t);return{fn:{jsonSchema5:{inferSchema:hO,sampleFromSchema:k0,sampleFromSchemaGeneric:bn,createXMLExample:P0,memoizedSampleFromSchema:mO,memoizedCreateXMLExample:dO,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:ua},inferSchema:hO,sampleFromSchema:k0,sampleFromSchemaGeneric:bn,createXMLExample:P0,memoizedSampleFromSchema:mO,memoizedCreateXMLExample:dO,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:ua,getSchemaObjectType:jOe}}};const UOe=["get","put","post","delete","options","head","patch","trace","query"],$s=t=>t||K.Map(),VOe=Ke($s,t=>t.get("lastError")),qOe=Ke($s,t=>t.get("url")),zOe=Ke($s,t=>t.get("spec")||""),JOe=Ke($s,t=>t.get("specSource")||"not-editor"),jS=Ke($s,t=>t.get("json",K.Map())),WOe=Ke(jS,t=>t.toJS()),HOe=Ke($s,t=>t.get("resolved",K.Map())),KOe=(t,e)=>t.getIn(["resolvedSubtrees",...e],void 0),Ej=(t,e)=>K.Map.isMap(t)&&K.Map.isMap(e)?e.get("$$ref")?e:K.OrderedMap().mergeWith(Ej,t,e):e,Yn=Ke($s,t=>K.OrderedMap().mergeWith(Ej,t.get("json"),t.get("resolvedSubtrees"))),Wr=t=>jS(t),GOe=Ke(Wr,()=>!1),Sj=Ke(Wr,t=>Bj(t&&t.get("info"))),YOe=Ke(Wr,t=>Bj(t&&t.get("externalDocs"))),wj=Ke(Sj,t=>t&&t.get("version")),XOe=Ke(wj,t=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(t).slice(1)),_j=Ke(Yn,t=>t.get("paths")),ZOe=ul(["get","put","post","delete","options","head","patch"]),xj=Ke(_j,t=>{let e=K.List();return!K.Map.isMap(t)||t.isEmpty()||t.forEach((r,n)=>{if(!r||!r.forEach)return{};r.forEach((s,i)=>{UOe.indexOf(i)<0||(e=e.push(K.fromJS({path:n,method:i,operation:s,id:`${i}-${n}`})))})}),e}),Aj=Ke(Wr,t=>K.Set(t.get("consumes"))),Oj=Ke(Wr,t=>K.Set(t.get("produces"))),QOe=Ke(Wr,t=>t.get("security",K.List())),eCe=Ke(Wr,t=>t.get("securityDefinitions")),tCe=(t,e)=>{const r=t.getIn(["resolvedSubtrees","definitions",e],null),n=t.getIn(["json","definitions",e],null);return r||n||null},rCe=Ke(Wr,t=>{const e=t.get("definitions");return K.Map.isMap(e)?e:K.Map()}),nCe=Ke(Wr,t=>t.get("basePath")),sCe=Ke(Wr,t=>t.get("host")),iCe=Ke(Wr,t=>t.get("schemes",K.Map())),Cj=Ke([xj,Aj,Oj],(t,e,r)=>t.map(n=>n.update("operation",s=>K.Map.isMap(s)?s.withMutations(i=>(i.get("consumes")||i.update("consumes",o=>K.Set(o).merge(e)),i.get("produces")||i.update("produces",o=>K.Set(o).merge(r)),i)):K.Map()))),NS=Ke(Wr,t=>{const e=t.get("tags",K.List());return K.List.isList(e)?e.filter(r=>K.Map.isMap(r)):K.List()}),$j=(t,e)=>(NS(t)||K.List()).filter(K.Map.isMap).find(r=>r.get("name")===e,K.Map()),Tj=Ke(Cj,NS,(t,e)=>t.reduce((r,n)=>{let s=K.Set(n.getIn(["operation","tags"]));return s.count()<1?r.update("default",K.List(),i=>i.push(n)):s.reduce((i,o)=>i.update(o,K.List(),a=>a.push(n)),r)},e.reduce((r,n)=>r.set(n.get("name"),K.List()),K.OrderedMap()))),oCe=t=>({getConfigs:e})=>{let{tagsSorter:r,operationsSorter:n}=e();return Tj(t).sortBy((s,i)=>i,(s,i)=>{let o=typeof r=="function"?r:eO.tagsSorter[r];return o?o(s,i):null}).map((s,i)=>{let o=typeof n=="function"?n:eO.operationsSorter[n],a=o?s.sort(o):s;return K.Map({tagDetails:$j(t,i),operations:a})})},Ij=Ke($s,t=>t.get("responses",K.Map())),Rj=Ke($s,t=>t.get("requests",K.Map())),Pj=Ke($s,t=>t.get("mutatedRequests",K.Map())),aCe=(t,e,r)=>Ij(t).getIn([e,r],null),cCe=(t,e,r)=>Rj(t).getIn([e,r],null),lCe=(t,e,r)=>Pj(t).getIn([e,r],null),uCe=()=>!0,MS=(t,e,r)=>{const n=Yn(t).getIn(["paths",...e,"parameters"],K.OrderedMap()),s=t.getIn(["meta","paths",...e,"parameters"],K.OrderedMap());return n.map(i=>{const o=s.get(`${r.get("in")}.${r.get("name")}`),a=s.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return K.OrderedMap().merge(i,o,a)}).find(i=>i.get("in")===r.get("in")&&i.get("name")===r.get("name"),K.OrderedMap())},kj=(t,e,r,n)=>{const s=`${n}.${r}`;return t.getIn(["meta","paths",...e,"parameter_inclusions",s],!1)},pCe=(t,e,r,n)=>{const s=Yn(t).getIn(["paths",...e,"parameters"],K.OrderedMap()).find(i=>i.get("in")===n&&i.get("name")===r,K.OrderedMap());return MS(t,e,s)},jj=(t,e,r)=>{const n=Yn(t).getIn(["paths",e,r],K.OrderedMap()),s=t.getIn(["meta","paths",e,r],K.OrderedMap()),i=n.get("parameters",K.List()).map(o=>MS(t,[e,r],o));return K.OrderedMap().merge(n,s).set("parameters",i)};function fCe(t,e,r,n){return e=e||[],t.getIn(["meta","paths",...e,"parameters"],K.fromJS([])).find(s=>K.Map.isMap(s)&&s.get("name")===r&&s.get("in")===n)||K.Map()}const hCe=Ke(Wr,t=>{const e=t.get("host");return typeof e=="string"&&e.length>0&&e[0]!=="/"});function Nj(t,e,r){return e=e||[],jj(t,...e).get("parameters",K.List()).reduce((n,s)=>{let i=r&&s.get("in")==="body"?s.get("value_xml"):s.get("value");return K.List.isList(i)&&(i=i.filter(o=>o!=="")),n.set(Sf(s,{allowHashes:!1}),i)},K.fromJS({}))}function dCe(t,e=""){if(K.List.isList(t))return t.some(r=>K.Map.isMap(r)&&r.get("in")===e)}function j0(t,e=""){if(K.List.isList(t))return t.some(r=>K.Map.isMap(r)&&r.get("type")===e)}function mCe(t,e){e=e||[];let r=Yn(t).getIn(["paths",...e],K.fromJS({})),n=t.getIn(["meta","paths",...e],K.fromJS({})),s=Mj(t,e);const i=r.get("parameters")||new K.List,o=n.get("consumes_value")?n.get("consumes_value"):j0(i,"file")?"multipart/form-data":j0(i,"formData")?"application/x-www-form-urlencoded":void 0;return K.fromJS({requestContentType:o,responseContentType:s})}function Mj(t,e){e=e||[];const r=Yn(t).getIn(["paths",...e],null);if(r===null)return;const n=t.getIn(["meta","paths",...e,"produces_value"],null),s=r.getIn(["produces",0],null);return n||s||"application/json"}function gCe(t,e){e=e||[];const r=Yn(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[s]=e,i=n.get("produces",null),o=r.getIn(["paths",s,"produces"],null),a=r.getIn(["produces"],null);return i||o||a}function yCe(t,e){e=e||[];const r=Yn(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[s]=e,i=n.get("consumes",null),o=r.getIn(["paths",s,"consumes"],null),a=r.getIn(["consumes"],null);return i||o||a}const Dj=(t,e,r)=>{let n=t.get("url").match(/^([a-z][a-z0-9+\-.]*):/),s=Array.isArray(n)?n[1]:null;return t.getIn(["scheme",e,r])||t.getIn(["scheme","_defaultScheme"])||s||""},vCe=(t,e,r)=>["http","https"].indexOf(Dj(t,e,r))>-1,Fj=(t,e)=>{e=e||[];const r=t.getIn(["meta","paths",...e,"parameters"],K.fromJS([])),n=[];if(r.length===0)return n;const s=(i,o=[])=>{const a=(c,l)=>{const p=[...l,c.get("propKey")||c.get("index")];return K.Map.isMap(c.get("error"))?s(c.get("error"),p):{error:c.get("error"),path:p}};return K.List.isList(i)?i.map(c=>K.Map.isMap(c)?a(c,o):{error:c,path:o}):a(i,o)};return r.forEach((i,o)=>{const a=o.split(".").slice(1,-1).join("."),c=i.get("errors");c&&c.count()&&s(c).forEach(({error:l,path:p})=>{n.push(((f,m,d)=>`For '${d}'${(m=m.reduce((g,v)=>typeof v=="number"?`${g}[${v}]`:g?`${g}.${v}`:v,""))?` at path '${m}'`:""}: ${f}.`)(l,p,a))})}),n},bCe=(t,e)=>Fj(t,e).length===0,ECe=(t,e)=>{let r={requestBody:!1,requestContentType:{}},n=t.getIn(["resolvedSubtrees","paths",...e,"requestBody"],K.fromJS([]));return n.size<1||(n.getIn(["required"])&&(r.requestBody=n.getIn(["required"])),n.getIn(["content"]).entrySeq().forEach(s=>{const i=s[0];if(s[1].getIn(["schema","required"])){const o=s[1].getIn(["schema","required"]).toJS();r.requestContentType[i]=o}})),r},SCe=(t,e,r,n)=>{if((r||n)&&r===n)return!0;let s=t.getIn(["resolvedSubtrees","paths",...e,"requestBody","content"],K.fromJS([]));if(s.size<2||!r||!n)return!1;let i=s.getIn([r,"schema","properties"],K.fromJS([])),o=s.getIn([n,"schema","properties"],K.fromJS([]));return!!i.equals(o)};function Bj(t){return K.Map.isMap(t)?t:new K.Map}const DS="spec_update_spec",FS="spec_update_url",BS="spec_update_json",Md="spec_update_param",LS="spec_update_empty_param_inclusion",US="spec_validate_param",VS="spec_set_response",qS="spec_set_request",zS="spec_set_mutated_request",Lj="spec_log_request",JS="spec_clear_response",WS="spec_clear_request",HS="spec_clear_validate_param",Dd="spec_update_operation_meta_value",KS="spec_update_resolved",Fd="spec_update_resolved_subtree",GS="set_scheme",wCe=t=>zZ(t)?t:"";function _Ce(t){const e=wCe(t).replace(/\t/g," ");if(typeof t=="string")return{type:DS,payload:e}}function xCe(t){return{type:KS,payload:t}}function ACe(t){return{type:FS,payload:t}}function OCe(t){return{type:BS,payload:t}}const CCe=t=>({specActions:e,specSelectors:r,errActions:n})=>{let{specStr:s}=r,i=null;try{t=t||s(),n.clear({source:"parser"}),i=xn.load(t,{schema:ha})}catch(o){return console.error(o),n.newSpecErr({source:"parser",level:"error",message:o.reason,line:o.mark&&o.mark.line?o.mark.line+1:void 0})}return i&&typeof i=="object"?e.updateJsonSpec(i):e.updateJsonSpec({})};let gO=!1;const $Ce=(t,e)=>({specActions:r,specSelectors:n,errActions:s,fn:{fetch:i,resolve:o,AST:a={}},getConfigs:c})=>{gO||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),gO=!0);const{modelPropertyMacro:l,parameterMacro:p,requestInterceptor:f,responseInterceptor:m}=c();t===void 0&&(t=n.specJson()),e===void 0&&(e=n.url());let d=a.getLineNumberForPath?a.getLineNumberForPath:()=>{},g=n.specStr();return o({fetch:i,spec:t,baseDoc:String(new URL(e,document.baseURI)),modelPropertyMacro:l,parameterMacro:p,requestInterceptor:f,responseInterceptor:m}).then(({spec:v,errors:y})=>{if(s.clear({type:"thrown"}),Array.isArray(y)&&y.length>0){let E=y.map(S=>(console.error(S),S.line=S.fullPath?d(g,S.fullPath):null,S.path=S.fullPath?S.fullPath.join("."):null,S.level="error",S.type="thrown",S.source="resolver",Object.defineProperty(S,"message",{enumerable:!0,value:S.message}),S));s.newThrownErrBatch(E)}return r.updateResolved(v)})};let wf=[];const TCe=eQ(()=>{const t=wf.reduce((e,{path:r,system:n})=>(e.has(n)||e.set(n,[]),e.get(n).push(r),e),new Map);wf=[],t.forEach(async(e,r)=>{if(!r)return void console.error("debResolveSubtrees: don't have a system to operate on, aborting.");if(!r.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");const{errActions:n,errSelectors:s,fn:{resolveSubtree:i,fetch:o,AST:a={}},specSelectors:c,specActions:l}=r,p=a.getLineNumberForPath??ul(void 0),f=c.specStr(),{modelPropertyMacro:m,parameterMacro:d,requestInterceptor:g,responseInterceptor:v}=r.getConfigs();try{const y=await e.reduce(async(E,S)=>{let{resultMap:w,specWithCurrentSubtrees:x}=await E;const{errors:I,spec:T}=await i(x,S,{baseDoc:String(new URL(c.url(),document.baseURI)),modelPropertyMacro:m,parameterMacro:d,requestInterceptor:g,responseInterceptor:v});if(s.allErrors().size&&n.clearBy(D=>{var B;return D.get("type")!=="thrown"||D.get("source")!=="resolver"||!((B=D.get("fullPath"))!=null&&B.every((P,Z)=>P===S[Z]||S[Z]===void 0))}),Array.isArray(I)&&I.length>0){let D=I.map(B=>(B.line=B.fullPath?p(f,B.fullPath):null,B.path=B.fullPath?B.fullPath.join("."):null,B.level="error",B.type="thrown",B.source="resolver",Object.defineProperty(B,"message",{enumerable:!0,value:B.message}),B));n.newThrownErrBatch(D)}return T&&c.isOAS3()&&S[0]==="components"&&S[1]==="securitySchemes"&&await Promise.all(Object.values(T).filter(D=>(D==null?void 0:D.type)==="openIdConnect").map(async D=>{const B={url:D.openIdConnectUrl,requestInterceptor:g,responseInterceptor:v};try{const P=await o(B);P instanceof Error||P.status>=400?console.error(P.statusText+" "+B.url):D.openIdConnectData=JSON.parse(P.text)}catch(P){console.error(P)}})),Z$(w,S,T),x=nne(S,T,x),{resultMap:w,specWithCurrentSubtrees:x}},Promise.resolve({resultMap:(c.specResolvedSubtree([])||K.Map()).toJS(),specWithCurrentSubtrees:c.specJS()}));l.updateResolvedSubtree([],y.resultMap)}catch(y){console.error(y)}})},35),ICe=t=>e=>{wf.find(({path:r,system:n})=>n===e&&r.toString()===t.toString())||(wf.push({path:t,system:e}),TCe())};function RCe(t,e,r,n,s){return{type:Md,payload:{path:t,value:n,paramName:e,paramIn:r,isXml:s}}}function PCe(t,e,r,n){return{type:Md,payload:{path:t,param:e,value:r,isXml:n}}}const kCe=(t,e)=>({type:Fd,payload:{path:t,value:e}}),jCe=()=>({type:Fd,payload:{path:[],value:K.Map()}}),NCe=(t,e)=>({type:US,payload:{pathMethod:t,isOAS3:e}}),MCe=(t,e,r,n)=>({type:LS,payload:{pathMethod:t,paramName:e,paramIn:r,includeEmptyValue:n}});function DCe(t){return{type:HS,payload:{pathMethod:t}}}function FCe(t,e){return{type:Dd,payload:{path:t,value:e,key:"consumes_value"}}}function BCe(t,e){return{type:Dd,payload:{path:t,value:e,key:"produces_value"}}}const LCe=(t,e,r)=>({payload:{path:t,method:e,res:r},type:VS}),UCe=(t,e,r)=>({payload:{path:t,method:e,req:r},type:qS}),VCe=(t,e,r)=>({payload:{path:t,method:e,req:r},type:zS}),qCe=t=>({payload:t,type:Lj}),zCe=t=>({fn:e,specActions:r,specSelectors:n,getConfigs:s,oas3Selectors:i})=>{let{pathName:o,method:a,operation:c}=t,{requestInterceptor:l,responseInterceptor:p}=s(),f=c.toJS();if(c&&c.get("parameters")&&c.get("parameters").filter(g=>g&&g.get("allowEmptyValue")===!0).forEach(g=>{if(n.parameterInclusionSettingFor([o,a],g.get("name"),g.get("in"))){t.parameters=t.parameters||{};const v=Vk(g,t.parameters);(!v||v&&v.size===0)&&(t.parameters[g.get("name")]="")}}),t.contextUrl=Tc(n.url()).toString(),f&&f.operationId?t.operationId=f.operationId:f&&o&&a&&(t.operationId=e.opId(f,o,a)),n.isOAS3()){const g=`${o}:${a}`;t.server=i.selectedServer(g)||i.selectedServer();const v=i.serverVariables({server:t.server,namespace:g}).toJS(),y=i.serverVariables({server:t.server}).toJS();t.serverVariables=Object.keys(v).length?v:y,t.requestContentType=i.requestContentType(o,a),t.responseContentType=i.responseContentType(o,a)||"*/*";const E=i.requestBodyValue(o,a),S=i.requestBodyInclusionSetting(o,a);E&&E.toJS?t.requestBody=E.map(w=>K.Map.isMap(w)?w.get("value"):w).filter((w,x)=>(Array.isArray(w)?w.length!==0:!yS(w))||S.get(x)).toJS():t.requestBody=E}let m=Object.assign({},t);m=e.buildRequest(m),r.setRequest(t.pathName,t.method,m),t.requestInterceptor=async g=>{let v=await l.apply(void 0,[g]),y=Object.assign({},v);return r.setMutatedRequest(t.pathName,t.method,y),v},t.responseInterceptor=p;const d=Date.now();return e.execute(t).then(g=>{g.duration=Date.now()-d,r.setResponse(t.pathName,t.method,g)}).catch(g=>{g.message==="Failed to fetch"&&(g.name="",g.message=`**Failed to fetch.**
|
|
246
|
+
**Possible Reasons:**
|
|
247
|
+
- CORS
|
|
248
|
+
- Network Failure
|
|
249
|
+
- URL scheme must be "http" or "https" for CORS request.`),r.setResponse(t.pathName,t.method,{error:!0,err:g})})},JCe=({path:t,method:e,...r}={})=>n=>{let{fn:{fetch:s},specSelectors:i,specActions:o}=n,a=i.specJsonWithResolvedSubtrees().toJS(),c=i.operationScheme(t,e),{requestContentType:l,responseContentType:p}=i.contentTypeValues([t,e]).toJS(),f=/xml/i.test(l),m=i.parameterValues([t,e],f).toJS();return o.executeRequest({...r,fetch:s,spec:a,pathName:t,method:e,parameters:m,requestContentType:l,scheme:c,responseContentType:p})};function WCe(t,e){return{type:JS,payload:{path:t,method:e}}}function HCe(t,e){return{type:WS,payload:{path:t,method:e}}}function KCe(t,e,r){return{type:GS,payload:{scheme:t,path:e,method:r}}}var GCe={[DS]:(t,e)=>typeof e.payload=="string"?t.set("spec",e.payload):t,[FS]:(t,e)=>t.set("url",e.payload+""),[BS]:(t,e)=>t.set("json",ls(e.payload)),[KS]:(t,e)=>t.setIn(["resolved"],ls(e.payload)),[Fd]:(t,e)=>{const{value:r,path:n}=e.payload;return t.setIn(["resolvedSubtrees",...n],ls(r))},[Md]:(t,{payload:e})=>{let{path:r,paramName:n,paramIn:s,param:i,value:o,isXml:a}=e,c=i?Sf(i):`${s}.${n}`;const l=a?"value_xml":"value";return t.setIn(["meta","paths",...r,"parameters",c,l],K.fromJS(o))},[LS]:(t,{payload:e})=>{let{pathMethod:r,paramName:n,paramIn:s,includeEmptyValue:i}=e;if(!n||!s)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),t;const o=`${s}.${n}`;return t.setIn(["meta","paths",...r,"parameter_inclusions",o],i)},[US]:(t,{payload:{pathMethod:e,isOAS3:r}})=>{const n=Yn(t).getIn(["paths",...e]),s=Nj(t,e).toJS();return t.updateIn(["meta","paths",...e,"parameters"],K.fromJS({}),i=>n.get("parameters",K.List()).reduce((o,a)=>{const c=Vk(a,s),l=kj(t,e,a.get("name"),a.get("in")),p=((f,m,{isOAS3:d=!1,bypassRequiredCheck:g=!1}={})=>{let v=f.get("required"),{schema:y,parameterContentMediaType:E}=Pp(f,{isOAS3:d});return A0(m,y,v,g,E,d)})(a,c,{bypassRequiredCheck:l,isOAS3:r});return o.setIn([Sf(a),"errors"],K.fromJS(p))},i))},[HS]:(t,{payload:{pathMethod:e}})=>t.updateIn(["meta","paths",...e,"parameters"],K.fromJS([]),r=>r.map(n=>n.set("errors",K.fromJS([])))),[VS]:(t,{payload:{res:e,path:r,method:n}})=>{let s;s=e.error?Object.assign({error:!0,name:e.err.name,message:e.err.message,statusCode:e.err.statusCode},e.err.response):e,s.headers=s.headers||{};let i=t.setIn(["responses",r,n],ls(s));return Pt.Blob&&s.data instanceof Pt.Blob&&(i=i.setIn(["responses",r,n,"text"],s.data)),i},[qS]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["requests",r,n],ls(e)),[zS]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["mutatedRequests",r,n],ls(e)),[Dd]:(t,{payload:{path:e,value:r,key:n}})=>{let s=["paths",...e],i=["meta","paths",...e];return t.getIn(["json",...s])||t.getIn(["resolved",...s])||t.getIn(["resolvedSubtrees",...s])?t.setIn([...i,n],K.fromJS(r)):t},[JS]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["responses",e,r]),[WS]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["requests",e,r]),[GS]:(t,{payload:{scheme:e,path:r,method:n}})=>r&&n?t.setIn(["scheme",r,n],e):r||n?void 0:t.setIn(["scheme","_defaultScheme"],e)};const YCe=(t,{specActions:e})=>(...r)=>{t(...r),e.parseToJson(...r)},XCe=(t,{specActions:e})=>(...r)=>{t(...r),e.invalidateResolvedSubtreeCache();const[n]=r,s=Ey(n,["paths"])||{};Object.keys(s).forEach(i=>{const o=Ey(s,[i]);gs(o)&&o.$ref&&e.requestResolvedSubtree(["paths",i])}),e.requestResolvedSubtree(["components","securitySchemes"])},ZCe=(t,{specActions:e})=>r=>(e.logRequest(r),t(r)),QCe=(t,{specSelectors:e})=>r=>t(r,e.isOAS3());var Uj=()=>({statePlugins:{spec:{wrapActions:{...v0},reducers:{...GCe},actions:{...y0},selectors:{...g0}}}});const e$e=(t,e)=>(...r)=>{t(...r);const n=e.getConfigs().withCredentials;e.fn.fetch.withCredentials=n};function Vj({configs:t,getConfigs:e}){return{fn:{fetch:dhe(Fc,t.preFetch,t.postFetch),buildRequest:zP,execute:Dbe,resolve:kP({strategies:[eA,iv,sv,nv]}),resolveSubtree:async(r,n,s={})=>{const i=e(),o={modelPropertyMacro:i.modelPropertyMacro,parameterMacro:i.parameterMacro,requestInterceptor:i.requestInterceptor,responseInterceptor:i.responseInterceptor,strategies:[eA,iv,sv,nv]};return qbe(o)(r,n,s)},serializeRes:VR,opId:Ml},statePlugins:{configs:{wrapActions:{loaded:e$e}}}}}function qj(){return{fn:{shallowEqualKeys:z2e,sanitizeUrl:Gt}}}const t$e=t=>e=>{const{fn:r}=t();class n extends be.Component{render(){return u.createElement(e,lt({},t(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(e)})`,n},r$e=(t,e)=>r=>{const{fn:n}=t();class s extends be.Component{render(){return u.createElement(JEe,{store:e},u.createElement(r,lt({},this.props,this.context)))}}return s.displayName=`WithRoot(${n.getDisplayName(r)})`,s},yO=(t,e,r)=>K0(r?r$e(t,r):AC,qEe((n,s)=>{var a;const i={...s,...t()};return(((a=e.prototype)==null?void 0:a.mapStateToProps)||(c=>({state:c})))(n,i)}),t$e(t))(e),vO=(t,e,r,n)=>{for(const s in e){const i=e[s];typeof i=="function"&&i(r[s],n[s],t())}},n$e=(t,e,r)=>(n,s)=>{const{fn:i}=t(),o=r(n,"root");class a extends be.Component{constructor(l,p){super(l,p),vO(t,s,l,{})}UNSAFE_componentWillReceiveProps(l){vO(t,s,l,this.props)}render(){const l=Eb(this.props,s?Object.keys(s):[]);return u.createElement(o,l)}}return a.displayName=`WithMappedContainer(${i.getDisplayName(o)})`,a},s$e=(t,e,r,n)=>s=>{const i=r(t,e,n)("App","root"),{createRoot:o}=MO;o(s).render(u.createElement(i,null))},N0=(t,e,r)=>(n,s,i={})=>{if(typeof n!="string")throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const o=r(n);return o?s?s==="root"?yO(t,o,e()):yO(t,o):o:(i.failSilently||t().log.warn("Could not find component:",n),null)},i$e=t=>t.displayName||t.name||"Component";var zj=({getComponents:t,getStore:e,getSystem:r})=>{const n=(s=N0(r,e,t),V2e(s,(...o)=>JSON.stringify(o)));var s;const i=(o=>wu(o,(...a)=>a))(n$e(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:i,render:s$e(r,e,N0,t)},fn:{getDisplayName:i$e}}},Jj=({React:t,getSystem:e,getStore:r,getComponents:n})=>{const s={},i=parseInt(t==null?void 0:t.version,10);return i>=16&&i<18&&(s.render=((o,a,c,l)=>p=>{const f=c(o,a,l)("App","root");MO.render(u.createElement(f,null),p)})(e,r,N0,n)),{rootInjects:s}};function Wj(t){let{fn:e}=t;const r={download:s=>({errActions:i,specSelectors:o,specActions:a,getConfigs:c})=>{let{fetch:l}=e;const p=c();function f(m){if(m instanceof Error||m.status>=400)return a.updateLoadingStatus("failed"),i.newThrownErr(Object.assign(new Error((m.message||m.statusText)+" "+s),{source:"fetch"})),void(!m.status&&m instanceof Error&&function(){try{let g;if("URL"in Pt?g=new URL(s):(g=document.createElement("a"),g.href=s),g.protocol!=="https:"&&Pt.location.protocol==="https:"){const v=Object.assign(new Error(`Possible mixed-content issue? The page was loaded over https:// but a ${g.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:"fetch"});return void i.newThrownErr(v)}if(g.origin!==Pt.location.origin){const v=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${g.origin}) does not match the page (${Pt.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});i.newThrownErr(v)}}catch{return}}());a.updateLoadingStatus("success"),a.updateSpec(m.text),o.url()!==s&&a.updateUrl(s)}s=s||o.url(),a.updateLoadingStatus("loading"),i.clear({source:"fetch"}),l({url:s,loadSpec:!0,requestInterceptor:p.requestInterceptor||(m=>m),responseInterceptor:p.responseInterceptor||(m=>m),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(f,f)},updateLoadingStatus:s=>{let i=[null,"loading","failed","success","failedConfig"];return i.indexOf(s)===-1&&console.error(`Error: ${s} is not one of ${JSON.stringify(i)}`),{type:"spec_update_loading_status",payload:s}}};let n={loadingStatus:Ke(s=>s||K.Map(),s=>s.get("loadingStatus")||null)};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(s,i)=>typeof i.payload=="string"?s.set("loadingStatus",i.payload):s},selectors:n}}}}var o$e=()=>{as.registerLanguage("json",jwe),as.registerLanguage("js",SA),as.registerLanguage("xml",Bwe),as.registerLanguage("yaml",Hwe),as.registerLanguage("http",Zwe),as.registerLanguage("bash",zwe),as.registerLanguage("powershell",t1e),as.registerLanguage("javascript",SA)};const a$e={agate:hk,arta:r1e,monokai:n1e,nord:s1e,obsidian:i1e,"tomorrow-night":o1e,idea:a1e},c$e=hk;var l$e=({language:t,className:e="",getConfigs:r,syntaxHighlighting:n={},children:s=""})=>{const i=r().syntaxHighlight.theme,{styles:o,defaultStyle:a}=n,c=(o==null?void 0:o[i])??a;return u.createElement(as,{language:t,className:e,style:c},s)},u$e=({fileName:t="response.txt",className:e,downloadable:r,getComponent:n,canCopy:s,language:i,children:o})=>{const a=be.useRef(null),c=n("SyntaxHighlighter",!0),l=p=>{const{target:f,deltaY:m}=p,{scrollHeight:d,offsetHeight:g,scrollTop:v}=f;d>g&&(v===0&&m<0||g+v>=d&&m>0)&&p.preventDefault()};return be.useEffect(()=>{const p=Array.from(a.current.childNodes).filter(f=>!!f.nodeType&&f.classList.contains("microlight"));return p.forEach(f=>f.addEventListener("mousewheel",l,{passive:!1})),()=>{p.forEach(f=>f.removeEventListener("mousewheel",l))}},[o,e,i]),u.createElement("div",{className:"highlight-code",ref:a},s&&u.createElement("div",{className:"copy-to-clipboard"},u.createElement(Oh.CopyToClipboard,{text:o},u.createElement("button",null))),r?u.createElement("button",{className:"download-contents",onClick:()=>{l1e(o,t)}},"Download"):null,u.createElement(c,{language:i,className:mt(e,"microlight"),renderPlainText:({children:p,PlainTextViewer:f})=>u.createElement(f,{className:e},p)},o))},p$e=({className:t="",children:e})=>u.createElement("pre",{className:mt("microlight",t)},e),f$e=(t,e)=>({renderPlainText:r,children:n,...s})=>{const i=e.getConfigs().syntaxHighlight.activated,o=e.getComponent("PlainTextViewer");return i||typeof r!="function"?i?u.createElement(t,s,n):u.createElement(o,null,n):r({children:n,PlainTextViewer:o})};const h$e=()=>({afterLoad:o$e,rootInjects:{syntaxHighlighting:{styles:a$e,defaultStyle:c$e}},components:{SyntaxHighlighter:l$e,HighlightCode:u$e,PlainTextViewer:p$e}}),d$e=()=>({wrapComponents:{SyntaxHighlighter:f$e}});var Hj=()=>[h$e,d$e],m$e=()=>{const{GIT_DIRTY:t,GIT_COMMIT:e,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.32.1",GIT_COMMIT:"gd202577a",GIT_DIRTY:!0,BUILD_TIME:"Tue, 17 Mar 2026 13:59:58 GMT"};Pt.versions=Pt.versions||{},Pt.versions.swaggerUI={version:r,gitRevision:e,gitDirty:t,buildTimestamp:n}},Kj=()=>({afterLoad:m$e});const Gj=console.error,g$e=t=>e=>{const{getComponent:r,fn:n}=t(),s=r("ErrorBoundary"),i=n.getDisplayName(e);class o extends be.Component{render(){return u.createElement(s,{targetName:i,getComponent:r,fn:n},u.createElement(e,lt({},this.props,this.context)))}}var a;return o.displayName=`WithErrorBoundary(${i})`,(a=e).prototype&&a.prototype.isReactComponent&&(o.prototype.mapStateToProps=e.prototype.mapStateToProps),o};var Yj=({name:t})=>u.createElement("div",{className:"fallback"},"😱 ",u.createElement("i",null,"Could not render ",t==="t"?"this component":t,", see the console.")),oy,y$e=(oy=class extends be.Component{static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(...e){super(...e),this.state={hasError:!1,error:null}}componentDidCatch(e,r){this.props.fn.componentDidCatch(e,r)}render(){const{getComponent:e,targetName:r,children:n}=this.props;if(this.state.hasError){const s=e("Fallback");return u.createElement(s,{name:r})}return n}},H(oy,"defaultProps",{targetName:"this component",getComponent:()=>Yj,fn:{componentDidCatch:Gj},children:null}),oy),Xj=({componentList:t=[],fullOverride:e=!1}={})=>({getSystem:r})=>{const n=e?t:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...t],s=g1e(n,Array(n.length).fill((i,{fn:o})=>o.withErrorBoundary(i)));return{fn:{componentDidCatch:Gj,withErrorBoundary:g$e(r)},components:{ErrorBoundary:y$e,Fallback:Yj},wrapComponents:s}};class v$e extends u.Component{getLayout(){const{getComponent:e,layoutSelectors:r}=this.props,n=r.current();return e(n,!0)||(()=>u.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const e=this.getLayout();return u.createElement(e,null)}}var b$e=v$e;class E$e extends u.Component{constructor(){super(...arguments);H(this,"close",()=>{let{authActions:r}=this.props;r.showDefinitions(!1)})}render(){let{authSelectors:r,authActions:n,getComponent:s,errSelectors:i,specSelectors:o,fn:{AST:a={}}}=this.props,c=r.shownDefinitions();const l=s("auths"),p=s("CloseIcon");return u.createElement("div",{className:"dialog-ux"},u.createElement("div",{className:"backdrop-ux"}),u.createElement("div",{className:"modal-ux"},u.createElement("div",{className:"modal-dialog-ux"},u.createElement("div",{className:"modal-ux-inner"},u.createElement("div",{className:"modal-ux-header"},u.createElement("h3",null,"Available authorizations"),u.createElement("button",{type:"button",className:"close-modal",onClick:this.close},u.createElement(p,null))),u.createElement("div",{className:"modal-ux-content"},c.valueSeq().map((f,m)=>u.createElement(l,{key:m,AST:a,definitions:f,getComponent:s,errSelectors:i,authSelectors:r,authActions:n,specSelectors:o})))))))}}class S$e extends u.Component{render(){let{isAuthorized:e,showPopup:r,onClick:n,getComponent:s}=this.props;const i=s("authorizationPopup",!0),o=s("LockAuthIcon",!0),a=s("UnlockAuthIcon",!0);return u.createElement("div",{className:"auth-wrapper"},u.createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:n},u.createElement("span",null,"Authorize"),e?u.createElement(o,null):u.createElement(a,null)),r&&u.createElement(i,null))}}class w$e extends u.Component{render(){const{authActions:e,authSelectors:r,specSelectors:n,getComponent:s}=this.props,i=n.securityDefinitions(),o=r.definitionsToAuthorize(),a=s("authorizeBtn");return i?u.createElement(a,{onClick:()=>e.showDefinitions(o),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:s}):null}}class _$e extends u.Component{constructor(){super(...arguments);H(this,"onClick",r=>{r.stopPropagation();let{onClick:n}=this.props;n&&n()})}render(){let{isAuthorized:r,getComponent:n}=this.props;const s=n("LockAuthOperationIcon",!0),i=n("UnlockAuthOperationIcon",!0);return u.createElement("button",{className:"authorization__btn","aria-label":r?"authorization button locked":"authorization button unlocked",onClick:this.onClick},r?u.createElement(s,{className:"locked"}):u.createElement(i,{className:"unlocked"}))}}class x$e extends u.Component{constructor(r,n){super(r,n);H(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});H(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});H(this,"logoutClick",r=>{r.preventDefault();let{authActions:n,definitions:s}=this.props,i=s.map((o,a)=>a).toArray();this.setState(i.reduce((o,a)=>(o[a]="",o),{})),n.logoutWithPersistOption(i)});H(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});this.state={}}render(){let{definitions:r,getComponent:n,authSelectors:s,errSelectors:i}=this.props;const o=n("AuthItem"),a=n("oauth2",!0),c=n("Button");let l=s.authorized(),p=r.filter((d,g)=>!!l.get(g)),f=r.filter(d=>d.get("type")!=="oauth2"),m=r.filter(d=>d.get("type")==="oauth2");return u.createElement("div",{className:"auth-container"},!!f.size&&u.createElement("form",{onSubmit:this.submitAuth},f.map((d,g)=>u.createElement(o,{key:g,schema:d,name:g,getComponent:n,onAuthChange:this.onAuthChange,authorized:l,errSelectors:i,authSelectors:s})).toArray(),u.createElement("div",{className:"auth-btn-wrapper"},f.size===p.size?u.createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):u.createElement(c,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),u.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),m&&m.size?u.createElement("div",null,u.createElement("div",{className:"scope-def"},u.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),u.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter(d=>d.get("type")==="oauth2").map((d,g)=>u.createElement("div",{key:g},u.createElement(a,{authorized:l,schema:d,name:g}))).toArray()):null)}}class A$e extends u.Component{render(){let{schema:e,name:r,getComponent:n,onAuthChange:s,authorized:i,errSelectors:o,authSelectors:a}=this.props;const c=n("apiKeyAuth"),l=n("basicAuth");let p;const f=e.get("type");switch(f){case"apiKey":p=u.createElement(c,{key:r,schema:e,name:r,errSelectors:o,authorized:i,getComponent:n,onChange:s,authSelectors:a});break;case"basic":p=u.createElement(l,{key:r,schema:e,name:r,errSelectors:o,authorized:i,getComponent:n,onChange:s,authSelectors:a});break;default:p=u.createElement("div",{key:r},"Unknown security definition type ",f)}return u.createElement("div",{key:`${r}-jump`},p)}}class O$e extends u.Component{render(){let{error:e}=this.props,r=e.get("level"),n=e.get("message"),s=e.get("source");return u.createElement("div",{className:"errors"},u.createElement("b",null,s," ",r),u.createElement("span",null,n))}}class C$e extends u.Component{constructor(r,n){super(r,n);H(this,"onChange",r=>{let{onChange:n}=this.props,s=r.target.value,i=Object.assign({},this.state,{value:s});this.setState(i),n(i)});let{name:s,schema:i}=this.props,o=this.getValue();this.state={name:s,schema:i,value:o}}getValue(){let{name:r,authorized:n}=this.props;return n&&n.getIn([r,"value"])}render(){let{schema:r,getComponent:n,errSelectors:s,name:i,authSelectors:o}=this.props;const a=n("Input"),c=n("Row"),l=n("Col"),p=n("authError"),f=n("Markdown",!0),m=n("JumpToPath",!0),d=o.selectAuthPath(i);let g=this.getValue(),v=s.allErrors().filter(y=>y.get("authId")===i);return u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,i||r.get("name"))," (apiKey)",u.createElement(m,{path:d})),g&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(f,{source:r.get("description")})),u.createElement(c,null,u.createElement("p",null,"Name: ",u.createElement("code",null,r.get("name")))),u.createElement(c,null,u.createElement("p",null,"In: ",u.createElement("code",null,r.get("in")))),u.createElement(c,null,u.createElement("label",{htmlFor:"api_key_value"},"Value:"),g?u.createElement("code",null," ****** "):u.createElement(l,null,u.createElement(a,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),v.valueSeq().map((y,E)=>u.createElement(p,{error:y,key:E})))}}class $$e extends u.Component{constructor(r,n){super(r,n);H(this,"onChange",r=>{let{onChange:n}=this.props,{value:s,name:i}=r.target,o=this.state.value;o[i]=s,this.setState({value:o}),n(this.state)});let{schema:s,name:i}=this.props,o=this.getValue().username;this.state={name:i,schema:s,value:o?{username:o}:{}}}getValue(){let{authorized:r,name:n}=this.props;return r&&r.getIn([n,"value"])||{}}render(){let{schema:r,getComponent:n,name:s,errSelectors:i,authSelectors:o}=this.props;const a=n("Input"),c=n("Row"),l=n("Col"),p=n("authError"),f=n("JumpToPath",!0),m=n("Markdown",!0),d=o.selectAuthPath(s);let g=this.getValue().username,v=i.allErrors().filter(y=>y.get("authId")===s);return u.createElement("div",null,u.createElement("h4",null,"Basic authorization",u.createElement(f,{path:d})),g&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(m,{source:r.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth_username"},"Username:"),g?u.createElement("code",null," ",g," "):u.createElement(l,null,u.createElement(a,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),u.createElement(c,null,u.createElement("label",{htmlFor:"auth_password"},"Password:"),g?u.createElement("code",null," ****** "):u.createElement(l,null,u.createElement(a,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),v.valueSeq().map((y,E)=>u.createElement(p,{error:y,key:E})))}}function T$e(t){const{example:e,showValue:r,getComponent:n}=t,s=n("Markdown",!0),i=n("HighlightCode",!0);return e&&K.Map.isMap(e)?u.createElement("div",{className:"example"},e.get("description")?u.createElement("section",{className:"example__section"},u.createElement("div",{className:"example__section-header"},"Example Description"),u.createElement("p",null,u.createElement(s,{source:e.get("description")}))):null,r&&e.has("value")?u.createElement("section",{className:"example__section"},u.createElement("div",{className:"example__section-header"},"Example Value"),u.createElement(i,null,fr(e.get("value")))):null):null}class Zj extends u.PureComponent{constructor(){super(...arguments);H(this,"_onSelect",(r,{isSyntheticChange:n=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(r,{isSyntheticChange:n})});H(this,"_onDomSelect",r=>{if(typeof this.props.onSelect=="function"){const n=r.target.selectedOptions[0].getAttribute("value");this._onSelect(n,{isSyntheticChange:!1})}});H(this,"getCurrentExample",()=>{const{examples:r,currentExampleKey:n}=this.props,s=r.get(n),i=r.keySeq().first(),o=r.get(i);return s||o||K.Map({})})}componentDidMount(){const{onSelect:r,examples:n}=this.props;if(typeof r=="function"){const s=n.first(),i=n.keyOf(s);this._onSelect(i,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(r){const{currentExampleKey:n,examples:s}=r;if(s!==this.props.examples&&!s.has(n)){const i=s.first(),o=s.keyOf(i);this._onSelect(o,{isSyntheticChange:!0})}}render(){const{examples:r,currentExampleKey:n,isValueModified:s,isModifiedValueAvailable:i,showLabels:o}=this.props;return u.createElement("div",{className:"examples-select"},o?u.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,u.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:i&&s?"__MODIFIED__VALUE__":n||""},i?u.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,r.map((a,c)=>u.createElement("option",{key:c,value:c},K.Map.isMap(a)&&a.get("summary")||c)).valueSeq()))}}H(Zj,"defaultProps",{examples:K.Map({}),onSelect:(...r)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...r),currentExampleKey:null,showLabels:!0});const Yg=t=>K.List.isList(t)?t:fr(t);class Qj extends u.PureComponent{constructor(r){super(r);H(this,"_getStateForCurrentNamespace",()=>{const{currentNamespace:r}=this.props;return(this.state[r]||K.Map()).toObject()});H(this,"_setStateForCurrentNamespace",r=>{const{currentNamespace:n}=this.props;return this._setStateForNamespace(n,r)});H(this,"_setStateForNamespace",(r,n)=>{const s=(this.state[r]||K.Map()).mergeDeep(n);return this.setState({[r]:s})});H(this,"_isCurrentUserInputSameAsExampleValue",()=>{const{currentUserInputValue:r}=this.props;return this._getCurrentExampleValue()===r});H(this,"_getValueForExample",(r,n)=>{const{examples:s}=n||this.props;return Yg((s||K.Map({})).getIn([r,"value"]))});H(this,"_getCurrentExampleValue",r=>{const{currentKey:n}=r||this.props;return this._getValueForExample(n,r||this.props)});H(this,"_onExamplesSelect",(r,{isSyntheticChange:n}={},...s)=>{const{onSelect:i,updateValue:o,currentUserInputValue:a,userHasEditedBody:c}=this.props,{lastUserEditedValue:l}=this._getStateForCurrentNamespace(),p=this._getValueForExample(r);if(r==="__MODIFIED__VALUE__")return o(Yg(l)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof i=="function"&&i(r,{isSyntheticChange:n},...s),this._setStateForCurrentNamespace({lastDownstreamValue:p,isModifiedValueSelected:n&&c||!!a&&a!==p}),n||typeof o=="function"&&o(Yg(p))});const n=this._getCurrentExampleValue();this.state={[r.currentNamespace]:K.Map({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:n,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==n})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}UNSAFE_componentWillReceiveProps(r){const{currentUserInputValue:n,examples:s,onSelect:i,userHasEditedBody:o}=r,{lastUserEditedValue:a,lastDownstreamValue:c}=this._getStateForCurrentNamespace(),l=this._getValueForExample(r.currentKey,r),p=s.filter(f=>K.Map.isMap(f)&&(f.get("value")===n||fr(f.get("value"))===n));if(p.size){let f;f=p.has(r.currentKey)?r.currentKey:p.keySeq().first(),i(f,{isSyntheticChange:!0})}else n!==this.props.currentUserInputValue&&n!==a&&n!==c&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(r.currentNamespace,{lastUserEditedValue:r.currentUserInputValue,isModifiedValueSelected:o||n!==l}))}render(){const{currentUserInputValue:r,examples:n,currentKey:s,getComponent:i,userHasEditedBody:o}=this.props,{lastDownstreamValue:a,lastUserEditedValue:c,isModifiedValueSelected:l}=this._getStateForCurrentNamespace(),p=i("ExamplesSelect");return u.createElement(p,{examples:n,currentExampleKey:s,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!c&&c!==a,isValueModified:r!==void 0&&l&&r!==this._getCurrentExampleValue()||o})}}H(Qj,"defaultProps",{userHasEditedBody:!1,examples:K.Map({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...r)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...r),updateValue:(...r)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...r)});function I$e({auth:t,authActions:e,errActions:r,configs:n,authConfigs:s={},currentServer:i}){let{schema:o,scopes:a,name:c,clientId:l}=t,p=o.get("flow"),f=[];switch(p){case"password":return void e.authorizePassword(t);case"application":case"clientCredentials":case"client_credentials":return void e.authorizeApplication(t);case"accessCode":case"authorizationCode":case"authorization_code":f.push("response_type=code");break;case"implicit":f.push("response_type=token")}typeof l=="string"&&f.push("client_id="+encodeURIComponent(l));let m=n.oauth2RedirectUrl;if(m===void 0)return void r.newAuthErr({authId:c,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});f.push("redirect_uri="+encodeURIComponent(m));let d=[];if(Array.isArray(a)?d=a:gt.List.isList(a)&&(d=a.toArray()),d.length>0){let x=s.scopeSeparator||" ";f.push("scope="+encodeURIComponent(d.join(x)))}let g=Su(new Date);if(f.push("state="+encodeURIComponent(g)),s.realm!==void 0&&f.push("realm="+encodeURIComponent(s.realm)),(p==="authorizationCode"||p==="authorization_code"||p==="accessCode")&&s.usePkceWithAuthorizationCodeGrant){const x=function(){return rO(sa()(32).toString("base64"))}(),I=function(D){return rO(L2e()("sha256").update(D).digest("base64"))}(x);f.push("code_challenge="+I),f.push("code_challenge_method=S256"),t.codeVerifier=x}let{additionalQueryStringParams:v}=s;for(let x in v)v[x]!==void 0&&f.push([x,v[x]].map(encodeURIComponent).join("="));const y=o.get("authorizationUrl");let E;E=i?Tc(Gt(y),i,!0).toString():Gt(y);let S,w=[E,f.join("&")].join(typeof y!="string"||y.includes("?")?"&":"?");S=p==="implicit"?e.preAuthorizeImplicit:s.useBasicAuthenticationWithAccessCodeGrant?e.authorizeAccessCodeWithBasicAuthentication:e.authorizeAccessCodeWithFormParams,e.authPopup(w,{auth:t,state:g,redirectUrl:m,callback:S,errCb:r.newAuthErr})}class R$e extends u.Component{constructor(r,n){super(r,n);H(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});H(this,"authorize",()=>{let{authActions:r,errActions:n,getConfigs:s,authSelectors:i,oas3Selectors:o}=this.props,a=s(),c=i.getConfigs();n.clear({authId:name,type:"auth",source:"auth"}),I$e({auth:this.state,currentServer:o.serverEffectiveValue(o.selectedServer()),authActions:r,errActions:n,configs:a,authConfigs:c})});H(this,"onScopeChange",r=>{let{target:n}=r,{checked:s}=n,i=n.dataset.value;if(s&&this.state.scopes.indexOf(i)===-1){let o=this.state.scopes.concat([i]);this.setState({scopes:o})}else!s&&this.state.scopes.indexOf(i)>-1&&this.setState({scopes:this.state.scopes.filter(o=>o!==i)})});H(this,"onInputChange",r=>{let{target:{dataset:{name:n},value:s}}=r,i={[n]:s};this.setState(i)});H(this,"selectScopes",r=>{r.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})});H(this,"logout",r=>{r.preventDefault();let{authActions:n,errActions:s,name:i}=this.props;s.clear({authId:i,type:"auth",source:"auth"}),n.logoutWithPersistOption([i])});let{name:s,schema:i,authorized:o,authSelectors:a}=this.props,c=o&&o.get(s),l=a.getConfigs()||{},p=c&&c.get("username")||"",f=c&&c.get("clientId")||l.clientId||"",m=c&&c.get("clientSecret")||l.clientSecret||"",d=c&&c.get("passwordType")||"basic",g=c&&c.get("scopes")||l.scopes||[];typeof g=="string"&&(g=g.split(l.scopeSeparator||" ")),this.state={appName:l.appName,name:s,schema:i,scopes:g,clientId:f,clientSecret:m,username:p,password:"",passwordType:d}}render(){let{schema:r,getComponent:n,authSelectors:s,errSelectors:i,name:o,specSelectors:a}=this.props;const c=n("Input"),l=n("Row"),p=n("Col"),f=n("Button"),m=n("authError"),d=n("JumpToPath",!0),g=n("Markdown",!0),v=n("InitializedInput"),{isOAS3:y}=a;let E=y()?r.get("openIdConnectUrl"):null;const S="implicit",w="password",x=y()?E?"authorization_code":"authorizationCode":"accessCode",I=y()?E?"client_credentials":"clientCredentials":"application",T=s.selectAuthPath(o);let D=!!(s.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,B=r.get("flow"),P=B===x&&D?B+" with PKCE":B,Z=r.get("allowedScopes")||r.get("scopes"),V=!!s.authorized().get(o),J=i.allErrors().filter(se=>se.get("authId")===o),F=!J.filter(se=>se.get("source")==="validation").size,Q=r.get("description");return u.createElement("div",null,u.createElement("h4",null,o," (OAuth2, ",P,") ",u.createElement(d,{path:T})),this.state.appName?u.createElement("h5",null,"Application: ",this.state.appName," "):null,Q&&u.createElement(g,{source:r.get("description")}),V&&u.createElement("h6",null,"Authorized"),E&&u.createElement("p",null,"OpenID Connect URL: ",u.createElement("code",null,E)),(B===S||B===x)&&u.createElement("p",null,"Authorization URL: ",u.createElement("code",null,r.get("authorizationUrl"))),(B===w||B===x||B===I)&&u.createElement("p",null,"Token URL:",u.createElement("code",null," ",r.get("tokenUrl"))),u.createElement("p",{className:"flow"},"Flow: ",u.createElement("code",null,P)),B!==w?null:u.createElement(l,null,u.createElement(l,null,u.createElement("label",{htmlFor:"oauth_username"},"username:"),V?u.createElement("code",null," ",this.state.username," "):u.createElement(p,{tablet:10,desktop:10},u.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),u.createElement(l,null,u.createElement("label",{htmlFor:"oauth_password"},"password:"),V?u.createElement("code",null," ****** "):u.createElement(p,{tablet:10,desktop:10},u.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),u.createElement(l,null,u.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),V?u.createElement("code",null," ",this.state.passwordType," "):u.createElement(p,{tablet:10,desktop:10},u.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},u.createElement("option",{value:"basic"},"Authorization header"),u.createElement("option",{value:"request-body"},"Request body"))))),(B===I||B===S||B===x||B===w)&&(!V||V&&this.state.clientId)&&u.createElement(l,null,u.createElement("label",{htmlFor:`client_id_${B}`},"client_id:"),V?u.createElement("code",null," ****** "):u.createElement(p,{tablet:10,desktop:10},u.createElement(v,{id:`client_id_${B}`,type:"text",required:B===w,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(B===I||B===x||B===w)&&u.createElement(l,null,u.createElement("label",{htmlFor:`client_secret_${B}`},"client_secret:"),V?u.createElement("code",null," ****** "):u.createElement(p,{tablet:10,desktop:10},u.createElement(v,{id:`client_secret_${B}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!V&&Z&&Z.size?u.createElement("div",{className:"scopes"},u.createElement("h2",null,"Scopes:",u.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),u.createElement("a",{onClick:this.selectScopes},"select none")),Z.map((se,re)=>u.createElement(l,{key:re},u.createElement("div",{className:"checkbox"},u.createElement(c,{"data-value":re,id:`${re}-${B}-checkbox-${this.state.name}`,disabled:V,checked:this.state.scopes.includes(re),type:"checkbox",onChange:this.onScopeChange}),u.createElement("label",{htmlFor:`${re}-${B}-checkbox-${this.state.name}`},u.createElement("span",{className:"item"}),u.createElement("div",{className:"text"},u.createElement("p",{className:"name"},re),u.createElement("p",{className:"description"},se)))))).toArray()):null,J.valueSeq().map((se,re)=>u.createElement(m,{error:se,key:re})),u.createElement("div",{className:"auth-btn-wrapper"},F&&(V?u.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):u.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),u.createElement(f,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class P$e extends be.Component{constructor(){super(...arguments);H(this,"onClick",()=>{let{specActions:r,path:n,method:s}=this.props;r.clearResponse(n,s),r.clearRequest(n,s)})}render(){return u.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const k$e=({headers:t})=>u.createElement("div",null,u.createElement("h5",null,"Response headers"),u.createElement("pre",{className:"microlight"},t)),j$e=({duration:t})=>u.createElement("div",null,u.createElement("h5",null,"Request duration"),u.createElement("pre",{className:"microlight"},t," ms"));class N$e extends u.Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){const{response:e,getComponent:r,getConfigs:n,displayRequestDuration:s,specSelectors:i,path:o,method:a}=this.props,{showMutatedRequest:c,requestSnippetsEnabled:l}=n(),p=c?i.mutatedRequestFor(o,a):i.requestFor(o,a),f=e.get("status"),m=p.get("url"),d=e.get("headers").toJS(),g=e.get("notDocumented"),v=e.get("error"),y=e.get("text"),E=e.get("duration"),S=Object.keys(d),w=d["content-type"]||d["Content-Type"],x=r("responseBody"),I=S.map(Z=>{var V=Array.isArray(d[Z])?d[Z].join():d[Z];return u.createElement("span",{className:"headerline",key:Z}," ",Z,": ",V," ")}),T=I.length!==0,D=r("Markdown",!0),B=r("RequestSnippets",!0),P=r("curl",!0);return u.createElement("div",null,p&&l?u.createElement(B,{request:p}):u.createElement(P,{request:p}),m&&u.createElement("div",null,u.createElement("div",{className:"request-url"},u.createElement("h4",null,"Request URL"),u.createElement("pre",{className:"microlight"},m))),u.createElement("h4",null,"Server response"),u.createElement("table",{className:"responses-table live-responses-table"},u.createElement("thead",null,u.createElement("tr",{className:"responses-header"},u.createElement("td",{className:"col_header response-col_status"},"Code"),u.createElement("td",{className:"col_header response-col_description"},"Details"))),u.createElement("tbody",null,u.createElement("tr",{className:"response"},u.createElement("td",{className:"response-col_status"},f,g?u.createElement("div",{className:"response-undocumented"},u.createElement("i",null," Undocumented ")):null),u.createElement("td",{className:"response-col_description"},v?u.createElement(D,{source:`${e.get("name")!==""?`${e.get("name")}: `:""}${e.get("message")}`}):null,y?u.createElement(x,{content:y,contentType:w,url:m,headers:d,getConfigs:n,getComponent:r}):null,T?u.createElement(k$e,{headers:I}):null,s&&E?u.createElement(j$e,{duration:E}):null)))))}}class eN extends u.Component{constructor(r,n){super(r,n);H(this,"getDefinitionUrl",()=>{let{specSelectors:r}=this.props;return new Tc(r.url(),Pt.location).toString()});let{getConfigs:s}=r,{validatorUrl:i}=s();this.state={url:this.getDefinitionUrl(),validatorUrl:i===void 0?"https://validator.swagger.io/validator":i}}UNSAFE_componentWillReceiveProps(r){let{getConfigs:n}=r,{validatorUrl:s}=n();this.setState({url:this.getDefinitionUrl(),validatorUrl:s===void 0?"https://validator.swagger.io/validator":s})}render(){let{getConfigs:r}=this.props,{spec:n}=r(),s=Gt(this.state.validatorUrl);return typeof n=="object"&&Object.keys(n).length?null:this.state.url&&tO(this.state.validatorUrl)&&tO(this.state.url)?u.createElement("span",{className:"float-right"},u.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${s}/debug?url=${encodeURIComponent(this.state.url)}`},u.createElement(M$e,{src:`${s}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class M$e extends u.Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){const e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){const r=new Image;r.onload=()=>{this.setState({loaded:!0})},r.onerror=()=>{this.setState({error:!0})},r.src=e.src}}render(){return this.state.error?u.createElement("img",{alt:"Error"}):this.state.loaded?u.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class D$e extends u.Component{constructor(){super(...arguments);H(this,"renderOperationTag",(r,n)=>{const{specSelectors:s,getComponent:i,oas3Selectors:o,layoutSelectors:a,layoutActions:c,getConfigs:l}=this.props,p=s.validOperationMethods(),f=i("OperationContainer",!0),m=i("OperationTag"),d=r.get("operations");return u.createElement(m,{key:"operation-"+n,tagObj:r,tag:n,oas3Selectors:o,layoutSelectors:a,layoutActions:c,getConfigs:l,getComponent:i,specUrl:s.url()},u.createElement("div",{className:"operation-tag-content"},d.map(g=>{const v=g.get("path"),y=g.get("method"),E=gt.List(["paths",v,y]);return p.indexOf(y)===-1?null:u.createElement(f,{key:`${v}-${y}`,specPath:E,op:g,path:v,method:y,tag:n})}).toArray()))})}render(){let{specSelectors:r}=this.props;const n=r.taggedOperations();return n.size===0?u.createElement("h3",null," No operations defined in spec!"):u.createElement("div",null,n.map(this.renderOperationTag).toArray(),n.size<1?u.createElement("h3",null," No operations defined in spec! "):null)}}class tN extends u.Component{render(){const{tagObj:e,tag:r,children:n,oas3Selectors:s,layoutSelectors:i,layoutActions:o,getConfigs:a,getComponent:c,specUrl:l}=this.props;let{docExpansion:p,deepLinking:f}=a();const m=c("Collapse"),d=c("Markdown",!0),g=c("DeepLink"),v=c("Link"),y=c("ArrowUpIcon"),E=c("ArrowDownIcon");let S,w=e.getIn(["tagDetails","description"],null),x=e.getIn(["tagDetails","externalDocs","description"]),I=e.getIn(["tagDetails","externalDocs","url"]);S=Vs(s)&&Vs(s.selectedServer)?rn(I,l,{selectedServer:s.selectedServer()}):I;let T=["operations-tag",r],D=i.isShown(T,p==="full"||p==="list");return u.createElement("div",{className:D?"opblock-tag-section is-open":"opblock-tag-section"},u.createElement("h3",{onClick:()=>o.show(T,!D),className:w?"opblock-tag":"opblock-tag no-desc",id:T.map(B=>Bk(B)).join("-"),"data-tag":r,"data-is-open":D},u.createElement(g,{enabled:f,isShown:D,path:Wc(r),text:r}),w?u.createElement("small",null,u.createElement(d,{source:w})):u.createElement("small",null),S?u.createElement("div",{className:"info__externaldocs"},u.createElement("small",null,u.createElement(v,{href:Gt(S),onClick:B=>B.stopPropagation(),target:"_blank"},x||S))):null,u.createElement("button",{"aria-expanded":D,className:"expand-operation",title:D?"Collapse operation":"Expand operation",onClick:()=>o.show(T,!D)},D?u.createElement(y,{className:"arrow"}):u.createElement(E,{className:"arrow"}))),u.createElement(m,{isOpened:D},n))}}H(tN,"defaultProps",{tagObj:gt.fromJS({}),tag:""});class rN extends be.PureComponent{render(){var U,O;let{specPath:e,response:r,request:n,toggleShown:s,onTryoutClick:i,onResetClick:o,onCancelClick:a,onExecute:c,fn:l,getComponent:p,getConfigs:f,specActions:m,specSelectors:d,authActions:g,authSelectors:v,oas3Actions:y,oas3Selectors:E}=this.props,S=this.props.operation,{deprecated:w,isShown:x,path:I,method:T,op:D,tag:B,operationId:P,allowTryItOut:Z,displayRequestDuration:V,tryItOutEnabled:J,executeInProgress:F}=S.toObject();const Q=D.get("description"),se=(U=D.get("externalDocs"))==null?void 0:U.toJS(),re=(O=D.get("schemes"))==null?void 0:O.toJS(),ce=se?rn(se.url,d.url(),{selectedServer:E.selectedServer()}):"";let ue=S.getIn(["op"]),oe=ue.get("responses"),G=function(z,Y){if(!gt.Iterable.isIterable(z))return gt.List();let fe=z.getIn(Array.isArray(Y)?Y:[Y]);return gt.List.isList(fe)?fe:gt.List()}(ue,["parameters"]),ie=d.operationScheme(I,T),pe=["operations",B,P],X=Ri(ue);const le=p("responses"),q=p("parameters"),N=p("execute"),M=p("clear"),ae=p("Collapse"),ge=p("Markdown",!0),Ce=p("schemes"),Re=p("OperationServers"),_e=p("OperationExt"),$e=p("OperationSummary"),ze=p("Link"),{showExtensions:De}=f();if(oe&&r&&r.size>0){let $=!oe.get(String(r.get("status")))&&!oe.get("default");r=r.set("notDocumented",$)}let Ge=[I,T];const rt=d.validationErrors([I,T]);return u.createElement("div",{className:w?"opblock opblock-deprecated":x?`opblock opblock-${T} is-open`:`opblock opblock-${T}`,id:Bk(pe.join("-"))},u.createElement($e,{operationProps:S,isShown:x,toggleShown:s,getComponent:p,authActions:g,authSelectors:v,specPath:e}),u.createElement(ae,{isOpened:x},u.createElement("div",{className:"opblock-body"},ue&&ue.size||ue===null?null:u.createElement(ij,{height:"32px",width:"32px",className:"opblock-loading-animation"}),w&&u.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),Q&&u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("div",{className:"opblock-description"},u.createElement(ge,{source:Q}))),ce?u.createElement("div",{className:"opblock-external-docs-wrapper"},u.createElement("h4",{className:"opblock-title_normal"},"Find more details"),u.createElement("div",{className:"opblock-external-docs"},se.description&&u.createElement("span",{className:"opblock-external-docs__description"},u.createElement(ge,{source:se.description})),u.createElement(ze,{target:"_blank",className:"opblock-external-docs__link",href:Gt(ce)},ce))):null,ue&&ue.size?u.createElement(q,{parameters:G,specPath:e.push("parameters"),operation:ue,onChangeKey:Ge,onTryoutClick:i,onResetClick:o,onCancelClick:a,tryItOutEnabled:J,allowTryItOut:Z,fn:l,getComponent:p,specActions:m,specSelectors:d,pathMethod:[I,T],getConfigs:f,oas3Actions:y,oas3Selectors:E}):null,J?u.createElement(Re,{getComponent:p,path:I,method:T,operationServers:ue.get("servers"),pathServers:d.paths().getIn([I,"servers"]),getSelectedServer:E.selectedServer,setSelectedServer:y.setSelectedServer,setServerVariableValue:y.setServerVariableValue,getServerVariable:E.serverVariableValue,getEffectiveServerValue:E.serverEffectiveValue}):null,J&&Z&&re&&re.size?u.createElement("div",{className:"opblock-schemes"},u.createElement(Ce,{schemes:re,path:I,method:T,specActions:m,currentScheme:ie})):null,!J||!Z||rt.length<=0?null:u.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",u.createElement("ul",null,rt.map(($,z)=>u.createElement("li",{key:z}," ",$," ")))),u.createElement("div",{className:J&&r&&Z?"btn-group":"execute-wrapper"},J&&Z?u.createElement(N,{operation:ue,specActions:m,specSelectors:d,oas3Selectors:E,oas3Actions:y,path:I,method:T,onExecute:c,disabled:F}):null,J&&r&&Z?u.createElement(M,{specActions:m,path:I,method:T}):null),F?u.createElement("div",{className:"loading-container"},u.createElement("div",{className:"loading"})):null,oe?u.createElement(le,{responses:oe,request:n,tryItOutResponse:r,getComponent:p,getConfigs:f,specSelectors:d,oas3Actions:y,oas3Selectors:E,specActions:m,produces:d.producesOptionsFor([I,T]),producesValue:d.currentProducesFor([I,T]),specPath:e.push("responses"),path:I,method:T,displayRequestDuration:V,fn:l}):null,De&&X.size?u.createElement(_e,{extensions:X,getComponent:p}):null)))}}H(rN,"defaultProps",{operation:null,response:null,request:null,specPath:K.List(),summary:""});class nN extends be.PureComponent{constructor(r,n){super(r,n);H(this,"toggleShown",()=>{let{layoutActions:r,tag:n,operationId:s,isShown:i}=this.props;const o=this.getResolvedSubtree();i||o!==void 0||this.requestResolvedSubtree(),r.show(["operations",n,s],!i)});H(this,"onCancelClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});H(this,"onTryoutClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});H(this,"onResetClick",r=>{const n=this.props.oas3Selectors.selectDefaultRequestBodyValue(...r),s=this.props.oas3Selectors.requestContentType(...r);if(s==="application/x-www-form-urlencoded"||s==="multipart/form-data"){const i=JSON.parse(n);Object.entries(i).forEach(([o,a])=>{Array.isArray(a)?i[o]=i[o].map(c=>typeof c=="object"?JSON.stringify(c,null,2):c):typeof a=="object"&&(i[o]=JSON.stringify(i[o],null,2))}),this.props.oas3Actions.setRequestBodyValue({value:K.fromJS(i),pathMethod:r})}else this.props.oas3Actions.setRequestBodyValue({value:n,pathMethod:r})});H(this,"onExecute",()=>{this.setState({executeInProgress:!0})});H(this,"getResolvedSubtree",()=>{const{specSelectors:r,path:n,method:s,specPath:i}=this.props;return i?r.specResolvedSubtree(i.toJS()):r.specResolvedSubtree(["paths",n,s])});H(this,"requestResolvedSubtree",()=>{const{specActions:r,path:n,method:s,specPath:i}=this.props;return i?r.requestResolvedSubtree(i.toJS()):r.requestResolvedSubtree(["paths",n,s])});const{tryItOutEnabled:s}=r.getConfigs();this.state={tryItOutEnabled:s,executeInProgress:!1}}mapStateToProps(r,n){const{op:s,layoutSelectors:i,getConfigs:o}=n,{docExpansion:a,deepLinking:c,displayOperationId:l,displayRequestDuration:p,supportedSubmitMethods:f}=o(),m=i.showSummary(),d=s.getIn(["operation","__originalOperationId"])||s.getIn(["operation","operationId"])||Ml(s.get("operation"),n.path,n.method)||s.get("id"),g=["operations",n.tag,d],v=f.indexOf(n.method)>=0&&(n.allowTryItOut===void 0?n.specSelectors.allowTryItOutFor(n.path,n.method):n.allowTryItOut),y=s.getIn(["operation","security"])||n.specSelectors.security();return{operationId:d,isDeepLinkingEnabled:c,showSummary:m,displayOperationId:l,displayRequestDuration:p,allowTryItOut:v,security:y,isAuthorized:n.authSelectors.isAuthorized(y),isShown:i.isShown(g,a==="full"),jumpToKey:`paths.${n.path}.${n.method}`,response:n.specSelectors.responseFor(n.path,n.method),request:n.specSelectors.requestFor(n.path,n.method)}}componentDidMount(){const{isShown:r}=this.props,n=this.getResolvedSubtree();r&&n===void 0&&this.requestResolvedSubtree()}componentDidUpdate(r){const{response:n,isShown:s}=this.props,i=this.getResolvedSubtree();n!==r.response&&this.setState({executeInProgress:!1}),s&&i===void 0&&this.requestResolvedSubtree()}render(){let{op:r,tag:n,path:s,method:i,security:o,isAuthorized:a,operationId:c,showSummary:l,isShown:p,jumpToKey:f,allowTryItOut:m,response:d,request:g,displayOperationId:v,displayRequestDuration:y,isDeepLinkingEnabled:E,specPath:S,specSelectors:w,specActions:x,getComponent:I,getConfigs:T,layoutSelectors:D,layoutActions:B,authActions:P,authSelectors:Z,oas3Actions:V,oas3Selectors:J,fn:F}=this.props;const Q=I("operation"),se=this.getResolvedSubtree()||K.Map(),re=K.fromJS({op:se,tag:n,path:s,summary:r.getIn(["operation","summary"])||"",deprecated:se.get("deprecated")||r.getIn(["operation","deprecated"])||!1,method:i,security:o,isAuthorized:a,operationId:c,originalOperationId:se.getIn(["operation","__originalOperationId"]),showSummary:l,isShown:p,jumpToKey:f,allowTryItOut:m,request:g,displayOperationId:v,displayRequestDuration:y,isDeepLinkingEnabled:E,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return u.createElement(Q,{operation:re,response:d,request:g,isShown:p,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:S,specActions:x,specSelectors:w,oas3Actions:V,oas3Selectors:J,layoutActions:B,layoutSelectors:D,authActions:P,authSelectors:Z,getComponent:I,getConfigs:T,fn:F})}}H(nN,"defaultProps",{showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1});class sN extends be.PureComponent{render(){let{isShown:e,toggleShown:r,getComponent:n,authActions:s,authSelectors:i,operationProps:o,specPath:a}=this.props,{summary:c,isAuthorized:l,method:p,op:f,showSummary:m,path:d,operationId:g,originalOperationId:v,displayOperationId:y}=o.toObject();const E=f.get("summary"),S=o.get("security"),w=n("authorizeOperationBtn",!0),x=n("OperationSummaryMethod"),I=n("OperationSummaryPath"),T=n("JumpToPath",!0),D=n("CopyToClipboardBtn",!0),B=n("ArrowUpIcon"),P=n("ArrowDownIcon"),Z=S&&!!S.count(),V=Z&&S.size===1&&S.first().isEmpty(),J=!Z||V;return u.createElement("div",{className:`opblock-summary opblock-summary-${p}`},u.createElement("button",{"aria-expanded":e,className:"opblock-summary-control",onClick:r},u.createElement(x,{method:p}),u.createElement("div",{className:"opblock-summary-path-description-wrapper"},u.createElement(I,{getComponent:n,operationProps:o,specPath:a}),m?u.createElement("div",{className:"opblock-summary-description"},u5(E||c)):null),y&&(v||g)?u.createElement("span",{className:"opblock-summary-operation-id"},v||g):null),u.createElement(D,{textToCopy:`${a.get(1)}`}),J?null:u.createElement(w,{isAuthorized:l,onClick:()=>{const F=i.definitionsForRequirements(S);s.showDefinitions(F)}}),u.createElement(T,{path:a}),u.createElement("button",{"aria-label":`${p} ${d.replace(/\//g,"/")}`,className:"opblock-control-arrow","aria-expanded":e,tabIndex:"-1",onClick:r},e?u.createElement(B,{className:"arrow"}):u.createElement(P,{className:"arrow"})))}}H(sN,"defaultProps",{operationProps:null,specPath:K.List(),summary:""});class iN extends be.PureComponent{render(){let{method:e}=this.props;return u.createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}H(iN,"defaultProps",{operationProps:null});class F$e extends be.PureComponent{render(){let{getComponent:e,operationProps:r}=this.props,{deprecated:n,isShown:s,path:i,tag:o,operationId:a,isDeepLinkingEnabled:c}=r.toObject();const l=i.split(/(?=\/)/g);for(let f=1;f<l.length;f+=2)l.splice(f,0,u.createElement("wbr",{key:f}));const p=e("DeepLink");return u.createElement("span",{className:n?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":i},u.createElement(p,{enabled:c,isShown:s,path:Wc(`${o}/${a}`),text:l}))}}var B$e=({extensions:t,getComponent:e})=>{let r=e("OperationExtRow");return u.createElement("div",{className:"opblock-section"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",null,"Extensions")),u.createElement("div",{className:"table-container"},u.createElement("table",null,u.createElement("thead",null,u.createElement("tr",null,u.createElement("td",{className:"col_header"},"Field"),u.createElement("td",{className:"col_header"},"Value"))),u.createElement("tbody",null,t.entrySeq().map(([n,s])=>u.createElement(r,{key:`${n}-${s}`,xKey:n,xVal:s}))))))},L$e=({xKey:t,xVal:e})=>{const r=e?e.toJS?e.toJS():e:null;return u.createElement("tr",null,u.createElement("td",null,t),u.createElement("td",null,JSON.stringify(r)))};function YS(t,e="_"){return t.replace(/[^\w-]/g,e)}const ch=class ch extends u.Component{constructor(){super(...arguments);H(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r));H(this,"onResponseContentTypeChange",({controlsAcceptHeader:r,value:n})=>{const{oas3Actions:s,path:i,method:o}=this.props;r&&s.setResponseContentType({value:n,path:i,method:o})})}render(){let{responses:r,tryItOutResponse:n,getComponent:s,getConfigs:i,specSelectors:o,fn:a,producesValue:c,displayRequestDuration:l,specPath:p,path:f,method:m,oas3Selectors:d,oas3Actions:g}=this.props,v=function(P){let Z=P.keySeq();return Z.contains(ZA)?ZA:Z.filter(V=>(V+"")[0]==="2").sort().first()}(r);const y=s("contentType"),E=s("liveResponse"),S=s("response");let w=this.props.produces&&this.props.produces.size?this.props.produces:ch.defaultProps.produces;const x=o.isOAS3()?function(P){if(!gt.OrderedMap.isOrderedMap(P)||!P.size)return null;const Z=P.find((F,Q)=>Q.startsWith("2")&&Object.keys(F.get("content")||{}).length>0),V=P.get("default")||gt.OrderedMap(),J=(V.get("content")||gt.OrderedMap()).keySeq().toJS().length?V:null;return Z||J}(r):null,I=r.filter((B,P)=>!O0(P)),T=YS(`${m}${f}_responses`),D=`${T}_select`;return I&&I.size?u.createElement("div",{className:"responses-wrapper"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",null,"Responses"),o.isOAS3()?null:u.createElement("label",{htmlFor:D},u.createElement("span",null,"Response content type"),u.createElement(y,{value:c,ariaControls:T,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:w,controlId:D,onChange:this.onChangeProducesWrapper}))),u.createElement("div",{className:"responses-inner"},n?u.createElement("div",null,u.createElement(E,{response:n,getComponent:s,getConfigs:i,specSelectors:o,path:this.props.path,method:this.props.method,displayRequestDuration:l}),u.createElement("h4",null,"Responses")):null,u.createElement("table",{"aria-live":"polite",className:"responses-table",id:T,role:"region"},u.createElement("thead",null,u.createElement("tr",{className:"responses-header"},u.createElement("td",{className:"col_header response-col_status"},"Code"),u.createElement("td",{className:"col_header response-col_description"},"Description"),o.isOAS3()?u.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),u.createElement("tbody",null,I.entrySeq().map(([B,P])=>{let Z=n&&n.get("status")==B?"response_current":"";return u.createElement(S,{key:B,path:f,method:m,specPath:p.push(B),isDefault:v===B,fn:a,className:Z,code:B,response:P,specSelectors:o,controlsAcceptHeader:P===x,onContentTypeChange:this.onResponseContentTypeChange,contentType:c,getConfigs:i,activeExamplesKey:d.activeExamplesMember(f,m,"responses",B),oas3Actions:g,getComponent:s})}).toArray())))):null}};H(ch,"defaultProps",{tryItOutResponse:null,produces:K.fromJS(["application/json"]),displayRequestDuration:!1});let M0=ch;function Bd(t){return function(r){try{return!!JSON.parse(r)}catch{return null}}(t)?"json":null}var ay;let U$e=(ay=class extends u.Component{constructor(r,n){super(r,n);H(this,"_onContentTypeChange",r=>{const{onContentTypeChange:n,controlsAcceptHeader:s}=this.props;this.setState({responseContentType:r}),n({value:r,controlsAcceptHeader:s})});H(this,"getTargetExamplesKey",()=>{const{response:r,contentType:n,activeExamplesKey:s}=this.props,i=this.state.responseContentType||n,o=r.getIn(["content",i],K.Map({})).get("examples",null).keySeq().first();return s||o});this.state={responseContentType:""}}render(){var q;let{path:r,method:n,code:s,response:i,className:o,specPath:a,fn:c,getComponent:l,getConfigs:p,specSelectors:f,contentType:m,controlsAcceptHeader:d,oas3Actions:g}=this.props,{inferSchema:v,getSampleSchema:y}=c,E=f.isOAS3();const{showExtensions:S}=p();let w=S?Ri(i):null,x=i.get("headers"),I=i.get("links");const T=l("ResponseExtension"),D=l("headers"),B=l("HighlightCode",!0),P=l("modelExample"),Z=l("Markdown",!0),V=l("operationLink"),J=l("contentType"),F=l("ExamplesSelect"),Q=l("Example");var se,re;const ce=this.state.responseContentType||m,ue=i.getIn(["content",ce],K.Map({})),oe=ue.get("examples",null);if(E){const N=ue.get("schema");se=N?v(N.toJS()):null,re=N?a.push("content",this.state.responseContentType,"schema"):a}else se=i.get("schema"),re=i.has("schema")?a.push("schema"):a;let G,ie,pe=!1,X={includeReadOnly:!0};if(E)if(ie=(q=ue.get("schema"))==null?void 0:q.toJS(),K.Map.isMap(oe)&&!oe.isEmpty()){const N=this.getTargetExamplesKey(),M=ae=>K.Map.isMap(ae)?ae.get("value"):void 0;G=M(oe.get(N,K.Map({}))),G===void 0&&(G=M(oe.values().next().value)),pe=!0}else ue.get("example")!==void 0&&(G=ue.get("example"),pe=!0);else{ie=se,X={...X,includeWriteOnly:!0};const N=i.getIn(["examples",ce]);N&&(G=N,pe=!0)}const le=((N,M)=>{if(N==null)return null;const ae=Bd(N)?"json":null;return u.createElement("div",null,u.createElement(M,{className:"example",language:ae},fr(N)))})(y(ie,ce,X,pe?G:void 0),B);return u.createElement("tr",{className:"response "+(o||""),"data-code":s},u.createElement("td",{className:"response-col_status"},s),u.createElement("td",{className:"response-col_description"},u.createElement("div",{className:"response-col_description__inner"},u.createElement(Z,{source:i.get("description")})),S&&w.size?w.entrySeq().map(([N,M])=>u.createElement(T,{key:`${N}-${M}`,xKey:N,xVal:M})):null,E&&i.get("content")?u.createElement("section",{className:"response-controls"},u.createElement("div",{className:mt("response-control-media-type",{"response-control-media-type--accept-controller":d})},u.createElement("small",{className:"response-control-media-type__title"},"Media type"),u.createElement(J,{value:this.state.responseContentType,contentTypes:i.get("content")?i.get("content").keySeq():K.Seq(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),d?u.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",u.createElement("code",null,"Accept")," header."):null),K.Map.isMap(oe)&&!oe.isEmpty()?u.createElement("div",{className:"response-control-examples"},u.createElement("small",{className:"response-control-examples__title"},"Examples"),u.createElement(F,{examples:oe,currentExampleKey:this.getTargetExamplesKey(),onSelect:N=>g.setActiveExamplesMember({name:N,pathMethod:[r,n],contextType:"responses",contextName:s}),showLabels:!1})):null):null,le||se?u.createElement(P,{specPath:re,getComponent:l,getConfigs:p,specSelectors:f,schema:ls(se),example:le,includeReadOnly:!0}):null,E&&oe?u.createElement(Q,{example:oe.get(this.getTargetExamplesKey(),K.Map({})),getComponent:l,getConfigs:p,omitValue:!0}):null,x?u.createElement(D,{headers:x,getComponent:l}):null),E?u.createElement("td",{className:"response-col_links"},I?I.toSeq().entrySeq().map(([N,M])=>u.createElement(V,{key:N,name:N,link:M,getComponent:l})):u.createElement("i",null,"No links")):null)}},H(ay,"defaultProps",{response:K.fromJS({}),onContentTypeChange:()=>{}}),ay);var V$e=({xKey:t,xVal:e})=>u.createElement("div",{className:"response__extension"},t,": ",String(e));class q$e extends u.PureComponent{constructor(){super(...arguments);H(this,"state",{parsedContent:null});H(this,"updateParsedContent",r=>{const{content:n}=this.props;if(r!==n)if(n&&n instanceof Blob){var s=new FileReader;s.onload=()=>{this.setState({parsedContent:s.result})},s.readAsText(n)}else this.setState({parsedContent:n.toString()})})}componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(r){this.updateParsedContent(r.content)}render(){let{content:r,contentType:n,url:s,headers:i={},getComponent:o}=this.props;const{parsedContent:a}=this.state,c=o("HighlightCode",!0),l="response_"+new Date().getTime();let p,f;if(s=s||"",(/^application\/octet-stream/i.test(n)||i["Content-Disposition"]&&/attachment/i.test(i["Content-Disposition"])||i["content-disposition"]&&/attachment/i.test(i["content-disposition"])||i["Content-Description"]&&/File Transfer/i.test(i["Content-Description"])||i["content-description"]&&/File Transfer/i.test(i["content-description"]))&&(r.size>0||r.length>0))if("Blob"in window){let m=n||"text/html",d=r instanceof Blob?r:new Blob([r],{type:m}),g=window.URL.createObjectURL(d),v=[m,s.substr(s.lastIndexOf("/")+1),g].join(":"),y=i["content-disposition"]||i["Content-Disposition"];if(y!==void 0){let E=function(w){let x;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some(I=>(x=I.exec(w),x!==null)),x!==null&&x.length>1)try{return decodeURIComponent(x[1])}catch(I){console.error(I)}return null}(y);E!==null&&(v=E)}f=Pt.navigator&&Pt.navigator.msSaveOrOpenBlob?u.createElement("div",null,u.createElement("a",{href:g,onClick:()=>Pt.navigator.msSaveOrOpenBlob(d,v)},"Download file")):u.createElement("div",null,u.createElement("a",{href:g,download:v},"Download file"))}else f=u.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(n)){let m=null;Bd(r)&&(m="json");try{p=JSON.stringify(JSON.parse(r),null," ")}catch{p=`can't parse JSON. Raw result:
|
|
250
|
+
|
|
251
|
+
`+r}f=u.createElement(c,{language:m,downloadable:!0,fileName:`${l}.json`,canCopy:!0},p)}else/xml/i.test(n)?(p=O1e(r,{textNodesOnSameLine:!0,indentor:" "}),f=u.createElement(c,{downloadable:!0,fileName:`${l}.xml`,canCopy:!0},p)):f=_A(n)==="text/html"||/text\/plain/.test(n)?u.createElement(c,{downloadable:!0,fileName:`${l}.html`,canCopy:!0},r):_A(n)==="text/csv"||/text\/csv/.test(n)?u.createElement(c,{downloadable:!0,fileName:`${l}.csv`,canCopy:!0},r):/^image\//i.test(n)?n.includes("svg")?u.createElement("div",null," ",r," "):u.createElement("img",{src:window.URL.createObjectURL(r)}):/^audio\//i.test(n)?u.createElement("pre",{className:"microlight"},u.createElement("audio",{controls:!0,key:s},u.createElement("source",{src:s,type:n}))):typeof r=="string"?u.createElement(c,{downloadable:!0,fileName:`${l}.txt`,canCopy:!0},r):r.size>0?a?u.createElement("div",null,u.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),u.createElement(c,{downloadable:!0,fileName:`${l}.txt`,canCopy:!0},a)):u.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return f?u.createElement("div",null,u.createElement("h5",null,"Response body"),f):null}}class oN extends be.Component{constructor(r){super(r);H(this,"onChange",(r,n,s)=>{let{specActions:{changeParamByIdentity:i},onChangeKey:o}=this.props;i(o,r,n,s)});H(this,"onChangeConsumesWrapper",r=>{let{specActions:{changeConsumesValue:n},onChangeKey:s}=this.props;n(s,r)});H(this,"toggleTab",r=>r==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):r==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0);H(this,"onChangeMediaType",({value:r,pathMethod:n})=>{let{specActions:s,oas3Selectors:i,oas3Actions:o}=this.props;const a=i.hasUserEditedBody(...n),c=i.shouldRetainRequestBodyValue(...n);o.setRequestContentType({value:r,pathMethod:n}),o.initRequestBodyValidateError({pathMethod:n}),a||(c||o.setRequestBodyValue({value:void 0,pathMethod:n}),s.clearResponse(...n),s.clearRequest(...n),s.clearValidateParams(n))});this.state={callbackVisible:!1,parametersVisible:!0}}render(){let{onTryoutClick:r,onResetClick:n,parameters:s,allowTryItOut:i,tryItOutEnabled:o,specPath:a,fn:c,getComponent:l,getConfigs:p,specSelectors:f,specActions:m,pathMethod:d,oas3Actions:g,oas3Selectors:v,operation:y}=this.props;const E=l("parameterRow"),S=l("TryItOutButton"),w=l("contentType"),x=l("Callbacks",!0),I=l("RequestBody",!0),T=o&&i,D=f.isOAS3(),B=`${YS(`${d[1]}${d[0]}_requests`)}_select`,P=y.get("requestBody"),Z=Object.values(s.reduce((V,J)=>{if(K.Map.isMap(J)){const F=J.get("in");V[F]??(V[F]=[]),V[F].push(J)}return V},{})).reduce((V,J)=>V.concat(J),[]);return u.createElement("div",{className:"opblock-section"},u.createElement("div",{className:"opblock-section-header"},D?u.createElement("div",{className:"tab-header"},u.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},u.createElement("h4",{className:"opblock-title"},u.createElement("span",null,"Parameters"))),y.get("callbacks")?u.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},u.createElement("h4",{className:"opblock-title"},u.createElement("span",null,"Callbacks"))):null):u.createElement("div",{className:"tab-header"},u.createElement("h4",{className:"opblock-title"},"Parameters")),i?u.createElement(S,{isOAS3:f.isOAS3(),hasUserEditedBody:v.hasUserEditedBody(...d),enabled:o,onCancelClick:this.props.onCancelClick,onTryoutClick:r,onResetClick:()=>n(d)}):null),this.state.parametersVisible?u.createElement("div",{className:"parameters-container"},Z.length?u.createElement("div",{className:"table-container"},u.createElement("table",{className:"parameters"},u.createElement("thead",null,u.createElement("tr",null,u.createElement("th",{className:"col_header parameters-col_name"},"Name"),u.createElement("th",{className:"col_header parameters-col_description"},"Description"))),u.createElement("tbody",null,Z.map((V,J)=>u.createElement(E,{fn:c,specPath:a.push(J.toString()),getComponent:l,getConfigs:p,rawParam:V,param:f.parameterWithMetaByIdentity(d,V),key:`${V.get("in")}.${V.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:f,specActions:m,oas3Actions:g,oas3Selectors:v,pathMethod:d,isExecute:T}))))):u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?u.createElement("div",{className:"callbacks-container opblock-description-wrapper"},u.createElement(x,{callbacks:K.Map(y.get("callbacks")),specPath:a.slice(0,-1).push("callbacks")})):null,D&&P&&this.state.parametersVisible&&u.createElement("div",{className:"opblock-section opblock-section-request-body"},u.createElement("div",{className:"opblock-section-header"},u.createElement("h4",{className:`opblock-title parameter__name ${P.get("required")&&"required"}`},"Request body"),u.createElement("label",{id:B},u.createElement(w,{value:v.requestContentType(...d),contentTypes:P.get("content",K.List()).keySeq(),onChange:V=>{this.onChangeMediaType({value:V,pathMethod:d})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:B}))),u.createElement("div",{className:"opblock-description-wrapper"},u.createElement(I,{setRetainRequestBodyValueFlag:V=>g.setRetainRequestBodyValueFlag({value:V,pathMethod:d}),userHasEditedBody:v.hasUserEditedBody(...d),specPath:a.slice(0,-1).push("requestBody"),requestBody:P,requestBodyValue:v.requestBodyValue(...d),requestBodyInclusionSetting:v.requestBodyInclusionSetting(...d),requestBodyErrors:v.requestBodyErrors(...d),isExecute:T,getConfigs:p,activeExamplesKey:v.activeExamplesMember(...d,"requestBody","requestBody"),updateActiveExamplesKey:V=>{this.props.oas3Actions.setActiveExamplesMember({name:V,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(V,J)=>{if(J){const F=v.requestBodyValue(...d),Q=K.Map.isMap(F)?F:K.Map();return g.setRequestBodyValue({pathMethod:d,value:Q.setIn(J,V)})}g.setRequestBodyValue({value:V,pathMethod:d})},onChangeIncludeEmpty:(V,J)=>{g.setRequestBodyInclusion({pathMethod:d,value:J,name:V})},contentType:v.requestContentType(...d)}))))}}H(oN,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});var z$e=({xKey:t,xVal:e})=>u.createElement("div",{className:"parameter__extension"},t,": ",String(e));const J$e={onChange:()=>{},isIncludedOptions:{}};class aN extends be.Component{constructor(){super(...arguments);H(this,"onCheckboxChange",r=>{const{onChange:n}=this.props;n(r.target.checked)})}componentDidMount(){const{isIncludedOptions:r,onChange:n}=this.props,{shouldDispatchInit:s,defaultValue:i}=r;s&&n(i)}render(){let{isIncluded:r,isDisabled:n}=this.props;return u.createElement("div",null,u.createElement("label",{htmlFor:"include_empty_value",className:mt("parameter__empty_value_toggle",{disabled:n})},u.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:n,checked:!n&&r,onChange:this.onCheckboxChange}),"Send empty value"))}}H(aN,"defaultProps",J$e);class W$e extends be.Component{constructor(r,n){super(r,n);H(this,"onChangeWrapper",(r,n=!1)=>{let s,{onChange:i,rawParam:o}=this.props;return s=r===""||r&&r.size===0?null:r,i(o,s,n)});H(this,"_onExampleSelect",r=>{this.props.oas3Actions.setActiveExamplesMember({name:r,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})});H(this,"onChangeIncludeEmpty",r=>{let{specActions:n,param:s,pathMethod:i}=this.props;const o=s.get("name"),a=s.get("in");return n.updateEmptyParamInclusion(i,o,a,r)});H(this,"setDefaultValue",()=>{let{specSelectors:r,pathMethod:n,rawParam:s,oas3Selectors:i,fn:o}=this.props;const a=r.parameterWithMetaByIdentity(n,s)||K.Map();let{schema:c}=Pp(a,{isOAS3:r.isOAS3()});const l=a.get("content",K.Map()).keySeq().first(),p=c?o.getSampleSchema(c.toJS(),l,{includeWriteOnly:!0}):null;if(a&&a.get("value")===void 0&&a.get("in")!=="body"){let f;if(r.isSwagger2())f=a.get("x-example")!==void 0?a.get("x-example"):a.getIn(["schema","example"])!==void 0?a.getIn(["schema","example"]):c&&c.getIn(["default"]);else if(r.isOAS3()){c=this.composeJsonSchema(c);const g=i.activeExamplesMember(...n,"parameters",this.getParamKey());f=a.getIn(["examples",g,"value"])!==void 0?a.getIn(["examples",g,"value"]):a.getIn(["content",l,"example"])!==void 0?a.getIn(["content",l,"example"]):a.get("example")!==void 0?a.get("example"):(c&&c.get("example"))!==void 0?c&&c.get("example"):(c&&c.get("default"))!==void 0?c&&c.get("default"):a.get("default")}f===void 0||K.List.isList(f)||(f=fr(f));const m=o.getSchemaObjectType(c),d=o.getSchemaObjectType(c==null?void 0:c.get("items"));f!==void 0?this.onChangeWrapper(f):m==="object"&&p&&!a.get("examples")?this.onChangeWrapper(K.List.isList(p)?p:fr(p)):m==="array"&&d==="object"&&p&&!a.get("examples")&&this.onChangeWrapper(K.List.isList(p)?p:K.List(JSON.parse(p)))}});this.setDefaultValue()}UNSAFE_componentWillReceiveProps(r){let n,{specSelectors:s,pathMethod:i,rawParam:o}=r,a=s.isOAS3(),c=s.parameterWithMetaByIdentity(i,o)||new K.Map;if(c=c.isEmpty()?o:c,a){let{schema:f}=Pp(c,{isOAS3:a});n=f?f.get("enum"):void 0}else n=c?c.get("enum"):void 0;let l,p=c?c.get("value"):void 0;p!==void 0?l=p:o.get("required")&&n&&n.size&&(l=n.first()),l!==void 0&&l!==p&&this.onChangeWrapper(function(m){return typeof m=="number"?m.toString():m}(l)),this.setDefaultValue()}getParamKey(){const{param:r}=this.props;return r?`${r.get("name")}-${r.get("in")}`:null}composeJsonSchema(r){var o,a,c,l;const{fn:n}=this.props,s=(a=(o=r.get("oneOf"))==null?void 0:o.get(0))==null?void 0:a.toJS(),i=(l=(c=r.get("anyOf"))==null?void 0:c.get(0))==null?void 0:l.toJS();return K.fromJS(n.mergeJsonSchema(r.toJS(),s??i??{}))}render(){let{param:r,rawParam:n,getComponent:s,getConfigs:i,isExecute:o,fn:a,onChangeConsumes:c,specSelectors:l,pathMethod:p,specPath:f,oas3Selectors:m}=this.props,d=l.isOAS3();const{showExtensions:g,showCommonExtensions:v}=i();if(r||(r=n),!n)return null;const y=s("JsonSchemaForm"),E=s("ParamBody");let S=r.get("in"),w=S!=="body"?null:u.createElement(E,{getComponent:s,getConfigs:i,fn:a,param:r,consumes:l.consumesOptionsFor(p),consumesValue:l.contentTypeValues(p).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:c,isExecute:o,specSelectors:l,pathMethod:p});const x=s("modelExample"),I=s("Markdown",!0),T=s("ParameterExt"),D=s("ParameterIncludeEmpty"),B=s("ExamplesSelectValueRetainer"),P=s("Example");let{schema:Z}=Pp(r,{isOAS3:d}),V=l.parameterWithMetaByIdentity(p,n)||K.Map();const J=V.get("content",K.Map()).keySeq().first();d&&(Z=this.composeJsonSchema(Z));let F=Z?Z.get("format"):null,Q=S==="formData",se="FormData"in Pt,re=r.get("required");const ce=a.getSchemaObjectType(Z),ue=a.getSchemaObjectType(Z==null?void 0:Z.get("items")),oe=a.getSchemaObjectTypeLabel(Z),G=!w&&ce==="object",ie=!w&&ue==="object";let pe,X,le,q,N=V?V.get("value"):"",M=v?Lk(Z):null,ae=g?Ri(r):null,ge=!1;r!==void 0&&Z&&(pe=Z.get("items")),pe!==void 0?(X=pe.get("enum"),le=pe.get("default")):Z&&(X=Z.get("enum")),X&&X.size&&X.size>0&&(ge=!0),r!==void 0&&(Z&&(le=Z.get("default")),le===void 0&&(le=r.get("default")),q=r.get("example"),q===void 0&&(q=r.get("x-example")));const Ce=w?null:u.createElement(y,{fn:a,getComponent:s,value:N,required:re,disabled:!o,description:r.get("name"),onChange:this.onChangeWrapper,errors:V.get("errors"),schema:Z});return u.createElement("tr",{"data-param-name":r.get("name"),"data-param-in":r.get("in")},u.createElement("td",{className:"parameters-col_name"},u.createElement("div",{className:re?"parameter__name required":"parameter__name"},r.get("name"),re?u.createElement("span",null," *"):null),u.createElement("div",{className:"parameter__type"},oe,F&&u.createElement("span",{className:"prop-format"},"($",F,")")),u.createElement("div",{className:"parameter__deprecated"},d&&r.get("deprecated")?"deprecated":null),u.createElement("div",{className:"parameter__in"},"(",r.get("in"),")")),u.createElement("td",{className:"parameters-col_description"},r.get("description")?u.createElement(I,{source:r.get("description")}):null,!w&&o||!ge?null:u.createElement(I,{className:"parameter__enum",source:"<i>Available values</i> : "+X.map(function(Re){return Re}).toArray().map(String).join(", ")}),!w&&o||le===void 0?null:u.createElement(I,{className:"parameter__default",source:"<i>Default value</i> : "+le}),!w&&o||q===void 0?null:u.createElement(I,{source:"<i>Example</i> : "+q}),Q&&!se&&u.createElement("div",null,"Error: your browser does not support FormData"),d&&r.get("examples")?u.createElement("section",{className:"parameter-controls"},u.createElement(B,{examples:r.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:s,defaultToFirstExample:!0,currentKey:m.activeExamplesMember(...p,"parameters",this.getParamKey()),currentUserInputValue:N})):null,G||ie?u.createElement(x,{getComponent:s,specPath:J?f.push("content",J,"schema"):f.push("schema"),getConfigs:i,isExecute:o,specSelectors:l,schema:Z,example:Ce}):Ce,w&&Z?u.createElement(x,{getComponent:s,specPath:f.push("schema"),getConfigs:i,isExecute:o,specSelectors:l,schema:Z,example:w,includeWriteOnly:!0}):null,!w&&o&&r.get("allowEmptyValue")?u.createElement(D,{onChange:this.onChangeIncludeEmpty,isIncluded:l.parameterInclusionSettingFor(p,r.get("name"),r.get("in")),isDisabled:!yS(N)}):null,d&&r.get("examples")?u.createElement(P,{example:r.getIn(["examples",m.activeExamplesMember(...p,"parameters",this.getParamKey())]),getComponent:s,getConfigs:i}):null,v&&M.size?M.entrySeq().map(([Re,_e])=>u.createElement(T,{key:`${Re}-${_e}`,xKey:Re,xVal:_e})):null,g&&ae.size?ae.entrySeq().map(([Re,_e])=>u.createElement(T,{key:`${Re}-${_e}`,xKey:Re,xVal:_e})):null))}}class H$e extends be.Component{constructor(){super(...arguments);H(this,"handleValidateParameters",()=>{let{specSelectors:r,specActions:n,path:s,method:i}=this.props;return n.validateParams([s,i]),r.validateBeforeExecute([s,i])});H(this,"handleValidateRequestBody",()=>{let{path:r,method:n,specSelectors:s,oas3Selectors:i,oas3Actions:o}=this.props,a={missingBodyValue:!1,missingRequiredKeys:[]};o.clearRequestBodyValidateError({path:r,method:n});let c=s.getOAS3RequiredRequestBodyContentType([r,n]),l=i.requestBodyValue(r,n),p=i.validateBeforeExecute([r,n]),f=i.requestContentType(r,n);if(!p)return a.missingBodyValue=!0,o.setRequestBodyValidateError({path:r,method:n,validationErrors:a}),!1;if(!c)return!0;let m=i.validateShallowRequired({oas3RequiredRequestBodyContentType:c,oas3RequestContentType:f,oas3RequestBodyValue:l});return!m||m.length<1||(m.forEach(d=>{a.missingRequiredKeys.push(d)}),o.setRequestBodyValidateError({path:r,method:n,validationErrors:a}),!1)});H(this,"handleValidationResultPass",()=>{let{specActions:r,operation:n,path:s,method:i}=this.props;this.props.onExecute&&this.props.onExecute(),r.execute({operation:n,path:s,method:i})});H(this,"handleValidationResultFail",()=>{let{specActions:r,path:n,method:s}=this.props;r.clearValidateParams([n,s]),setTimeout(()=>{r.validateParams([n,s])},40)});H(this,"handleValidationResult",r=>{r?this.handleValidationResultPass():this.handleValidationResultFail()});H(this,"onClick",()=>{let r=this.handleValidateParameters(),n=this.handleValidateRequestBody(),s=r&&n;this.handleValidationResult(s)});H(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r))}render(){const{disabled:r}=this.props;return u.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:r},"Execute")}}class K$e extends u.Component{render(){let{headers:e,getComponent:r}=this.props;const n=r("Property"),s=r("Markdown",!0);return e&&e.size?u.createElement("div",{className:"headers-wrapper"},u.createElement("h4",{className:"headers__title"},"Headers:"),u.createElement("table",{className:"headers"},u.createElement("thead",null,u.createElement("tr",{className:"header-row"},u.createElement("th",{className:"header-col"},"Name"),u.createElement("th",{className:"header-col"},"Description"),u.createElement("th",{className:"header-col"},"Type"))),u.createElement("tbody",null,e.entrySeq().map(([i,o])=>{if(!gt.Map.isMap(o))return null;const a=o.get("description"),c=o.getIn(["schema"])?o.getIn(["schema","type"]):o.getIn(["type"]),l=o.getIn(["schema","example"]);return u.createElement("tr",{key:i},u.createElement("td",{className:"header-col"},i),u.createElement("td",{className:"header-col"},a?u.createElement(s,{source:a}):null),u.createElement("td",{className:"header-col"},c," ",l?u.createElement(n,{propKey:"Example",propVal:l,propClass:"header-example"}):null))}).toArray()))):null}}class G$e extends u.Component{render(){let{editorActions:e,errSelectors:r,layoutSelectors:n,layoutActions:s,getComponent:i}=this.props;const o=i("Collapse");if(e&&e.jumpToLine)var a=e.jumpToLine;let c=r.allErrors().filter(f=>f.get("type")==="thrown"||f.get("level")==="error");if(!c||c.count()<1)return null;let l=n.isShown(["errorPane"],!0),p=c.sortBy(f=>f.get("line"));return u.createElement("pre",{className:"errors-wrapper"},u.createElement("hgroup",{className:"error"},u.createElement("h4",{className:"errors__title"},"Errors"),u.createElement("button",{className:"btn errors__clear-btn",onClick:()=>s.show(["errorPane"],!l)},l?"Hide":"Show")),u.createElement(o,{isOpened:l,animated:!0},u.createElement("div",{className:"errors"},p.map((f,m)=>{let d=f.get("type");return d==="thrown"||d==="auth"?u.createElement(Y$e,{key:m,error:f.get("error")||f,jumpToLine:a}):d==="spec"?u.createElement(X$e,{key:m,error:f,jumpToLine:a}):void 0}))))}}const Y$e=({error:t,jumpToLine:e})=>{if(!t)return null;let r=t.get("line");return u.createElement("div",{className:"error-wrapper"},t?u.createElement("div",null,u.createElement("h4",null,t.get("source")&&t.get("level")?cN(t.get("source"))+" "+t.get("level"):"",t.get("path")?u.createElement("small",null," at ",t.get("path")):null),u.createElement("span",{className:"message thrown"},t.get("message")),u.createElement("div",{className:"error-line"},r&&e?u.createElement("a",{onClick:e.bind(null,r)},"Jump to line ",r):null)):null)},X$e=({error:t,jumpToLine:e=null})=>{let r=null;return t.get("path")?r=K.List.isList(t.get("path"))?u.createElement("small",null,"at ",t.get("path").join(".")):u.createElement("small",null,"at ",t.get("path")):t.get("line")&&!e&&(r=u.createElement("small",null,"on line ",t.get("line"))),u.createElement("div",{className:"error-wrapper"},t?u.createElement("div",null,u.createElement("h4",null,cN(t.get("source"))+" "+t.get("level")," ",r),u.createElement("span",{className:"message"},t.get("message")),u.createElement("div",{className:"error-line"},e?u.createElement("a",{onClick:e.bind(null,t.get("line"))},"Jump to line ",t.get("line")):null)):null)};function cN(t){return(t||"").split(" ").map(e=>e[0].toUpperCase()+e.slice(1)).join(" ")}const Z$e=()=>{};class lN extends u.Component{constructor(){super(...arguments);H(this,"onChangeWrapper",r=>this.props.onChange(r.target.value))}componentDidMount(){const{contentTypes:r,onChange:n}=this.props;r&&r.size&&n(r.first())}componentDidUpdate(){const{contentTypes:r,value:n,onChange:s}=this.props;r&&r.size&&(r.includes(n)||s(r.first()))}render(){let{ariaControls:r,ariaLabel:n,className:s,contentTypes:i,controlId:o,value:a}=this.props;return i&&i.size?u.createElement("div",{className:"content-type-wrapper "+(s||"")},u.createElement("select",{"aria-controls":r,"aria-label":n,className:"content-type",id:o,onChange:this.onChangeWrapper,value:a||""},i.map(c=>u.createElement("option",{key:c,value:c},c)).toArray())):null}}H(lN,"defaultProps",{onChange:Z$e,value:null,contentTypes:K.fromJS(["application/json"])});function _u(...t){return t.filter(e=>!!e).join(" ").trim()}class Q$e extends u.Component{render(){let{fullscreen:e,full:r,...n}=this.props;if(e)return u.createElement("section",n);let s="swagger-container"+(r?"-full":"");return u.createElement("section",lt({},n,{className:_u(n.className,s)}))}}const Xg={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class eTe extends u.Component{render(){const{hide:e,keepContents:r,mobile:n,tablet:s,desktop:i,large:o,...a}=this.props;if(e&&!r)return u.createElement("span",null);let c=[];for(let p in Xg){if(!Object.prototype.hasOwnProperty.call(Xg,p))continue;let f=Xg[p];if(p in this.props){let m=this.props[p];if(m<1){c.push("none"+f);continue}c.push("block"+f),c.push("col-"+m+f)}}e&&c.push("hidden");let l=_u(a.className,...c);return u.createElement("section",lt({},a,{className:l}))}}class tTe extends u.Component{render(){return u.createElement("div",lt({},this.props,{className:_u(this.props.className,"wrapper")}))}}class uN extends u.Component{render(){return u.createElement("button",lt({},this.props,{className:_u(this.props.className,"button")}))}}H(uN,"defaultProps",{className:""});const rTe=t=>u.createElement("textarea",t),nTe=t=>u.createElement("input",t);class pN extends u.Component{constructor(r,n){let s;super(r,n);H(this,"onChange",r=>{let n,{onChange:s,multiple:i}=this.props,o=[].slice.call(r.target.options);n=i?o.filter(function(a){return a.selected}).map(function(a){return a.value}):r.target.value,this.setState({value:n}),s&&s(n)});s=r.value?r.value:r.multiple?[""]:"",this.state={value:s}}UNSAFE_componentWillReceiveProps(r){r.value!==this.props.value&&this.setState({value:r.value})}render(){var a,c;let{allowedValues:r,multiple:n,allowEmptyValue:s,disabled:i}=this.props,o=((c=(a=this.state.value)==null?void 0:a.toJS)==null?void 0:c.call(a))||this.state.value;return u.createElement("select",{className:this.props.className,multiple:n,value:o,onChange:this.onChange,disabled:i},s?u.createElement("option",{value:""},"--"):null,r.map(function(l,p){return u.createElement("option",{key:p,value:String(l)},String(l))}))}}H(pN,"defaultProps",{multiple:!1,allowEmptyValue:!0});class fN extends u.Component{render(){return u.createElement("a",lt({},this.props,{rel:"noopener noreferrer",className:_u(this.props.className,"link")}))}}const bO=({children:t})=>u.createElement("div",{className:"no-margin"}," ",t," ");class hN extends u.Component{renderNotAnimated(){return this.props.isOpened?u.createElement(bO,null,this.props.children):u.createElement("noscript",null)}render(){let{animated:e,isOpened:r,children:n}=this.props;return e?(n=r?n:null,u.createElement(bO,null,n)):this.renderNotAnimated()}}H(hN,"defaultProps",{isOpened:!1,animated:!1});class sTe extends u.Component{constructor(...e){super(...e),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(e,r){this.props.layoutActions.show(e,r)}showOp(e,r){let{layoutActions:n}=this.props;n.show(e,r)}render(){let{specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:s}=this.props,i=e.taggedOperations();const o=s("Collapse");return u.createElement("div",null,u.createElement("h4",{className:"overview-title"},"Overview"),i.map((a,c)=>{let l=a.get("operations"),p=["overview-tags",c],f=r.isShown(p,!0);return u.createElement("div",{key:"overview-"+c},u.createElement("h4",{onClick:()=>n.show(p,!f),className:"link overview-tag"}," ",f?"-":"+",c),u.createElement(o,{isOpened:f,animated:!0},l.map(m=>{let{path:d,method:g,id:v}=m.toObject(),y="operations",E=v,S=r.isShown([y,E]);return u.createElement(iTe,{key:v,path:d,method:g,id:d+"-"+g,shown:S,showOpId:E,showOpIdPrefix:y,href:`#operation-${E}`,onClick:n.show})}).toArray()))}).toArray(),i.size<1&&u.createElement("h3",null," No operations defined in spec! "))}}class iTe extends u.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:r,onClick:n,shown:s}=this.props;n([r,e],!s)}render(){let{id:e,method:r,shown:n,href:s}=this.props;return u.createElement(fN,{href:s,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},u.createElement("div",null,u.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),u.createElement("span",{className:"bold-label"},e)))}}class oTe extends u.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:r,initialValue:n,...s}=this.props;return u.createElement("input",lt({},s,{ref:i=>this.inputRef=i}))}}class aTe extends u.Component{render(){const{host:e,basePath:r}=this.props;return u.createElement("pre",{className:"base-url"},"[ Base URL: ",e,r," ]")}}class cTe extends u.PureComponent{render(){const{url:e,getComponent:r}=this.props,n=r("Link");return u.createElement(n,{target:"_blank",href:Gt(e)},u.createElement("span",{className:"url"}," ",e))}}class lTe extends u.Component{render(){const{info:e,url:r,host:n,basePath:s,getComponent:i,externalDocs:o,selectedServer:a,url:c}=this.props,l=e.get("version"),p=e.get("description"),f=e.get("title"),m=rn(e.get("termsOfService"),c,{selectedServer:a}),d=e.get("contact"),g=e.get("license"),v=rn(o&&o.get("url"),c,{selectedServer:a}),y=o&&o.get("description"),E=i("Markdown",!0),S=i("Link"),w=i("VersionStamp"),x=i("OpenAPIVersion"),I=i("InfoUrl"),T=i("InfoBasePath"),D=i("License"),B=i("Contact");return u.createElement("div",{className:"info"},u.createElement("hgroup",{className:"main"},u.createElement("h1",{className:"title"},f,u.createElement("span",null,l&&u.createElement(w,{version:l}),u.createElement(x,{oasVersion:"2.0"}))),n||s?u.createElement(T,{host:n,basePath:s}):null,r&&u.createElement(I,{getComponent:i,url:r})),u.createElement("div",{className:"description"},u.createElement(E,{source:p})),m&&u.createElement("div",{className:"info__tos"},u.createElement(S,{target:"_blank",href:Gt(m)},"Terms of service")),(d==null?void 0:d.size)>0&&u.createElement(B,{getComponent:i,data:d,selectedServer:a,url:r}),(g==null?void 0:g.size)>0&&u.createElement(D,{getComponent:i,license:g,selectedServer:a,url:r}),v?u.createElement(S,{className:"info__extdocs",target:"_blank",href:Gt(v)},y||v):null)}}var uTe=lTe;class pTe extends u.Component{render(){const{specSelectors:e,getComponent:r,oas3Selectors:n}=this.props,s=e.info(),i=e.url(),o=e.basePath(),a=e.host(),c=e.externalDocs(),l=n.selectedServer(),p=r("info");return u.createElement("div",null,s&&s.count()?u.createElement(p,{info:s,url:i,host:a,basePath:o,externalDocs:c,getComponent:r,selectedServer:l}):null)}}class fTe extends u.Component{render(){const{data:e,getComponent:r,selectedServer:n,url:s}=this.props,i=e.get("name","the developer"),o=rn(e.get("url"),s,{selectedServer:n}),a=e.get("email"),c=r("Link");return u.createElement("div",{className:"info__contact"},o&&u.createElement("div",null,u.createElement(c,{href:Gt(o),target:"_blank"},i," - Website")),a&&u.createElement(c,{href:Gt(`mailto:${a}`)},o?`Send email to ${i}`:`Contact ${i}`))}}var hTe=fTe;class dTe extends u.Component{render(){const{license:e,getComponent:r,selectedServer:n,url:s}=this.props,i=e.get("name","License"),o=rn(e.get("url"),s,{selectedServer:n}),a=r("Link");return u.createElement("div",{className:"info__license"},o?u.createElement("div",{className:"info__license__url"},u.createElement(a,{target:"_blank",href:Gt(o)},i)):u.createElement("span",null,i))}}var mTe=dTe;class gTe extends u.Component{render(){return null}}class yTe extends u.Component{render(){let{getComponent:e}=this.props;const r=e("CopyIcon");return u.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},u.createElement(Oh.CopyToClipboard,{text:this.props.textToCopy},u.createElement(r,null)))}}class vTe extends u.Component{render(){return u.createElement("div",{className:"footer"})}}class bTe extends u.Component{constructor(){super(...arguments);H(this,"onFilterChange",r=>{const{target:{value:n}}=r;this.props.layoutActions.updateFilter(n)})}render(){const{specSelectors:r,layoutSelectors:n,getComponent:s}=this.props,i=s("Col"),o=r.loadingStatus()==="loading",a=r.loadingStatus()==="failed",c=n.currentFilter(),l=["operation-filter-input"];return a&&l.push("failed"),o&&l.push("loading"),u.createElement("div",null,c===!1?null:u.createElement("div",{className:"filter-container"},u.createElement(i,{className:"filter wrapper",mobile:12},u.createElement("input",{className:l.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof c=="string"?c:"",disabled:o}))))}}const Zg=Function.prototype,lh=class lh extends be.PureComponent{constructor(r,n){super(r,n);H(this,"updateValues",r=>{let{param:n,isExecute:s,consumesValue:i=""}=r,o=/xml/i.test(i),a=/json/i.test(i),c=o?n.get("value_xml"):n.get("value");if(c!==void 0){let l=!c&&a?"{}":c;this.setState({value:l}),this.onChange(l,{isXml:o,isEditBox:s})}else o?this.onChange(this.sample("xml"),{isXml:o,isEditBox:s}):this.onChange(this.sample(),{isEditBox:s})});H(this,"sample",r=>{let{param:n,fn:s}=this.props,i=s.inferSchema(n.toJS());return s.getSampleSchema(i,r,{includeWriteOnly:!0})});H(this,"onChange",(r,{isEditBox:n,isXml:s})=>{this.setState({value:r,isEditBox:n}),this._onChange(r,s)});H(this,"_onChange",(r,n)=>{(this.props.onChange||Zg)(r,n)});H(this,"handleOnChange",r=>{const{consumesValue:n}=this.props,s=/xml/i.test(n),i=r.target.value;this.onChange(i,{isXml:s,isEditBox:this.state.isEditBox})});H(this,"toggleIsEditBox",()=>this.setState(r=>({isEditBox:!r.isEditBox})));this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(r){this.updateValues.call(this,r)}render(){let{onChangeConsumes:r,param:n,isExecute:s,specSelectors:i,pathMethod:o,getComponent:a}=this.props;const c=a("Button"),l=a("TextArea"),p=a("HighlightCode",!0),f=a("contentType");let m=(i?i.parameterWithMetaByIdentity(o,n):n).get("errors",K.List()),d=i.contentTypeValues(o).get("requestContentType"),g=this.props.consumes&&this.props.consumes.size?this.props.consumes:lh.defaultProp.consumes,{value:v,isEditBox:y}=this.state,E=null;Bd(v)&&(E="json");const S=`${YS(`${o[1]}${o[0]}_parameters`)}_select`;return u.createElement("div",{className:"body-param","data-param-name":n.get("name"),"data-param-in":n.get("in")},y&&s?u.createElement(l,{className:"body-param__text"+(m.count()?" invalid":""),value:v,onChange:this.handleOnChange}):v&&u.createElement(p,{className:"body-param__example",language:E},v),u.createElement("div",{className:"body-param-options"},s?u.createElement("div",{className:"body-param-edit"},u.createElement(c,{className:y?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},y?"Cancel":"Edit")):null,u.createElement("label",{htmlFor:S},u.createElement("span",null,"Parameter content type"),u.createElement(f,{value:d,contentTypes:g,onChange:r,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:S}))))}};H(lh,"defaultProp",{consumes:K.fromJS(["application/json"]),param:K.fromJS({}),onChange:Zg,onChangeConsumes:Zg});let D0=lh;class ETe extends u.Component{render(){const{request:e,getComponent:r}=this.props,n=rj(e),s=r("SyntaxHighlighter",!0);return u.createElement("div",{className:"curl-command"},u.createElement("h4",null,"Curl"),u.createElement("div",{className:"copy-to-clipboard"},u.createElement(Oh.CopyToClipboard,{text:n},u.createElement("button",null))),u.createElement("div",null,u.createElement(s,{language:"bash",className:"curl microlight",renderPlainText:({children:i,PlainTextViewer:o})=>u.createElement(o,{className:"curl"},i)},n)))}}var STe=({propKey:t,propVal:e,propClass:r})=>u.createElement("span",{className:r},u.createElement("br",null),t,": ",fr(e));class dN extends u.Component{render(){const{onTryoutClick:e,onCancelClick:r,onResetClick:n,enabled:s,hasUserEditedBody:i,isOAS3:o}=this.props,a=o&&i;return u.createElement("div",{className:a?"try-out btn-group":"try-out"},s?u.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):u.createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),a&&u.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}H(dN,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class mN extends u.PureComponent{render(){const{bypass:e,isSwagger2:r,isOAS3:n,alsoShow:s}=this.props;return e?u.createElement("div",null,this.props.children):r&&n?u.createElement("div",{className:"version-pragma"},s,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",u.createElement("code",null,"openapi: 3.0.n")," (for example, ",u.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?u.createElement("div",null,this.props.children):u.createElement("div",{className:"version-pragma"},s,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",u.createElement("code",null,"openapi: 3.0.n")," (for example, ",u.createElement("code",null,"openapi: 3.0.4"),")."))))}}H(mN,"defaultProps",{alsoShow:null,children:null,bypass:!1});var wTe=({version:t})=>u.createElement("small",null,u.createElement("pre",{className:"version"}," ",t," ")),_Te=({oasVersion:t})=>u.createElement("small",{className:"version-stamp"},u.createElement("pre",{className:"version"},"OAS ",t)),xTe=({enabled:t,path:e,text:r})=>u.createElement("a",{className:"nostyle",onClick:t?n=>n.preventDefault():null,href:t?`#/${e}`:null},u.createElement("span",null,r)),ATe=()=>u.createElement("div",null,u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},u.createElement("defs",null,u.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},u.createElement("path",{d:"M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},u.createElement("path",{d:"M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},u.createElement("path",{d:"M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},u.createElement("path",{d:"M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"})),u.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},u.createElement("path",{d:"M 17.418 14.908 C 17.69 15.176 18.127 15.176 18.397 14.908 C 18.667 14.64 18.668 14.207 18.397 13.939 L 10.489 6.109 C 10.219 5.841 9.782 5.841 9.51 6.109 L 1.602 13.939 C 1.332 14.207 1.332 14.64 1.602 14.908 C 1.873 15.176 2.311 15.176 2.581 14.908 L 10 7.767 L 17.418 14.908 Z"})),u.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},u.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),u.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},u.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),u.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},u.createElement("g",{transform:"translate(2, -1)"},u.createElement("path",{fill:"#ffffff",fillRule:"evenodd",d:"M2 13h4v1H2v-1zm5-6H2v1h5V7zm2 3V8l-3 3 3 3v-2h5v-2H9zM4.5 9H2v1h2.5V9zM2 12h2.5v-1H2v1zm9 1h1v2c-.02.28-.11.52-.3.7-.19.18-.42.28-.7.3H1c-.55 0-1-.45-1-1V4c0-.55.45-1 1-1h3c0-1.11.89-2 2-2 1.11 0 2 .89 2 2h3c.55 0 1 .45 1 1v5h-1V6H1v9h10v-2zM2 5h8c0-.55-.45-1-1-1H8c-.55 0-1-.45-1-1s-.45-1-1-1-1 .45-1 1-.45 1-1 1H3c-.55 0-1 .45-1 1z"}))))));r0.addHook&&r0.addHook("beforeSanitizeElements",function(t){return t.href&&t.setAttribute("rel","noopener noreferrer"),t});var OTe=function({source:e,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof e!="string")return null;const s=new Zs({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(Hxe);s.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:i}=n(),o=s.render(e),a=Hc(o,{useUnsafeMarkdown:i});return e&&o&&a?u.createElement("div",{className:mt(r,"markdown"),dangerouslySetInnerHTML:{__html:a}}):null};function Hc(t,{useUnsafeMarkdown:e=!1}={}){const r=e,n=e?[]:["style","class"];return e&&!Hc.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),Hc.hasWarnedAboutDeprecation=!0),r0.sanitize(t,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}Hc.hasWarnedAboutDeprecation=!1;class CTe extends u.Component{render(){const{errSelectors:e,specSelectors:r,getComponent:n}=this.props,s=n("SvgAssets"),i=n("InfoContainer",!0),o=n("VersionPragmaFilter"),a=n("operations",!0),c=n("Models",!0),l=n("Webhooks",!0),p=n("Row"),f=n("Col"),m=n("errors",!0),d=n("ServersContainer",!0),g=n("SchemesContainer",!0),v=n("AuthorizeBtnContainer",!0),y=n("FilterContainer",!0),E=r.isSwagger2(),S=r.isOAS3(),w=r.isOAS31(),x=r.isOAS32(),I=!r.specStr(),T=r.loadingStatus();let D=null;if(T==="loading"&&(D=u.createElement("div",{className:"info"},u.createElement("div",{className:"loading-container"},u.createElement("div",{className:"loading"})))),T==="failed"&&(D=u.createElement("div",{className:"info"},u.createElement("div",{className:"loading-container"},u.createElement("h4",{className:"title"},"Failed to load API definition."),u.createElement(m,null)))),T==="failedConfig"){const F=e.lastError(),Q=F?F.get("message"):"";D=u.createElement("div",{className:"info failed-config"},u.createElement("div",{className:"loading-container"},u.createElement("h4",{className:"title"},"Failed to load remote configuration."),u.createElement("p",null,Q)))}if(!D&&I&&(D=u.createElement("h4",null,"No API definition provided.")),D)return u.createElement("div",{className:"swagger-ui"},u.createElement("div",{className:"loading-container"},D));const B=r.servers(),P=r.schemes(),Z=B&&B.size,V=P&&P.size,J=!!r.securityDefinitions();return u.createElement("div",{className:"swagger-ui"},u.createElement(s,null),u.createElement(o,{isSwagger2:E,isOAS3:S,isOAS31:w,isOAS32:x,alsoShow:u.createElement(m,null)},u.createElement(m,null),u.createElement(p,{className:"information-container"},u.createElement(f,{mobile:12},u.createElement(i,null))),Z||V||J?u.createElement("div",{className:"scheme-container"},u.createElement(f,{className:"schemes wrapper",mobile:12},Z||V?u.createElement("div",{className:"schemes-server-container"},Z?u.createElement(d,null):null,V?u.createElement(g,null):null):null,J?u.createElement(v,null):null)):null,u.createElement(y,null),u.createElement(p,null,u.createElement(f,{mobile:12,desktop:12},u.createElement(a,null))),w&&u.createElement(p,{className:"webhooks-container"},u.createElement(f,{mobile:12,desktop:12},u.createElement(l,null))),u.createElement(p,null,u.createElement(f,{mobile:12,desktop:12},u.createElement(c,null)))))}}var $Te=()=>({components:{App:b$e,authorizationPopup:E$e,authorizeBtn:S$e,AuthorizeBtnContainer:w$e,authorizeOperationBtn:_$e,auths:x$e,AuthItem:A$e,authError:O$e,oauth2:R$e,apiKeyAuth:C$e,basicAuth:$$e,clear:P$e,liveResponse:N$e,InitializedInput:oTe,info:uTe,InfoContainer:pTe,InfoUrl:cTe,InfoBasePath:aTe,Contact:hTe,License:mTe,JumpToPath:gTe,CopyToClipboardBtn:yTe,onlineValidatorBadge:eN,operations:D$e,operation:rN,OperationSummary:sN,OperationSummaryMethod:iN,OperationSummaryPath:F$e,responses:M0,response:U$e,ResponseExtension:V$e,responseBody:q$e,parameters:oN,parameterRow:W$e,execute:H$e,headers:K$e,errors:G$e,contentType:lN,overview:sTe,footer:vTe,FilterContainer:bTe,ParamBody:D0,curl:ETe,Property:STe,TryItOutButton:dN,Markdown:OTe,BaseLayout:CTe,VersionPragmaFilter:mN,VersionStamp:wTe,OperationExt:B$e,OperationExtRow:L$e,ParameterExt:z$e,ParameterIncludeEmpty:aN,OperationTag:tN,OperationContainer:nN,OpenAPIVersion:_Te,DeepLink:xTe,SvgAssets:ATe,Example:T$e,ExamplesSelect:Zj,ExamplesSelectValueRetainer:Qj}}),TTe=()=>({components:{...b0}}),gN=()=>[Wk,qj,ej,zj,Jj,Uj,Gk,Xk,Qk,hj,bj,$Te,TTe,Vj,Jk,Wj,Hk,Yk,tj,sj,Hj,Kj,Xj()];const ITe=K.Map();function xu(t){return(e,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const s=t(...n);return typeof s=="function"?s(r):s}return e(...n)}}const Au=xu(ul(null)),RTe=xu((t,e)=>r=>r.getSystem().specSelectors.findSchema(e)),PTe=xu(()=>t=>{const e=t.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return K.Map.isMap(e)?e:ITe}),kTe=xu(()=>t=>t.getSystem().specSelectors.specJson().hasIn(["servers",0])),jTe=xu(Ke(Yn,t=>t.getIn(["components","securitySchemes"])||null)),NTe=(t,e)=>(r,...n)=>e.specSelectors.isOAS3()?e.oas3Selectors.validOperationMethods():t(...n),MTe=Au,DTe=Au,FTe=Au,BTe=Au,LTe=Au,UTe=function(e){return(r,n)=>(...s)=>{if(n.getSystem().specSelectors.isOAS3()){let i=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return e(n,i,...s)}return r(...s)}}(Ke(t=>t,({specSelectors:t})=>t.securityDefinitions(),(t,e)=>{let r=K.List();return e&&e.entrySeq().forEach(([n,s])=>{const i=s==null?void 0:s.get("type");if(i==="oauth2"&&s.get("flows").entrySeq().forEach(([o,a])=>{let c=K.fromJS({flow:o,authorizationUrl:a.get("authorizationUrl"),tokenUrl:a.get("tokenUrl"),scopes:a.get("scopes"),type:s.get("type"),description:s.get("description")});r=r.push(new K.Map({[n]:c.filter(l=>l!==void 0)}))}),i!=="http"&&i!=="apiKey"||(r=r.push(new K.Map({[n]:s}))),i==="openIdConnect"&&s.get("openIdConnectData")){let o=s.get("openIdConnectData");(o.get("grant_types_supported")||["authorization_code","implicit"]).forEach(a=>{let c=o.get("scopes_supported")&&o.get("scopes_supported").reduce((p,f)=>p.set(f,""),new K.Map),l=K.fromJS({flow:a,authorizationUrl:o.get("authorization_endpoint"),tokenUrl:o.get("token_endpoint"),scopes:c,type:"oauth2",openIdConnectUrl:s.get("openIdConnectUrl")});r=r.push(new K.Map({[n]:l.filter(p=>p!==void 0)}))})}}),r}));function Ou(t){return(e,r)=>n=>{var s;return typeof((s=r.specSelectors)==null?void 0:s.isOAS3)=="function"?r.specSelectors.isOAS3()?u.createElement(t,lt({},n,r,{Ori:e})):u.createElement(e,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}const VTe=K.Map(),qTe=()=>t=>function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"}(t.getSystem().specSelectors.specJson()),zTe=()=>t=>function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)}(t.getSystem().specSelectors.specJson()),JTe=()=>t=>t.getSystem().specSelectors.isOAS30();function yN(t){return(e,...r)=>n=>{if(n.specSelectors.isOAS3()){const s=t(e,...r);return typeof s=="function"?s(n):s}return null}}const WTe=yN(()=>t=>t.specSelectors.specJson().get("servers",VTe)),HTe=(t,e)=>{const r=t.getIn(["resolvedSubtrees","components","schemas",e],null),n=t.getIn(["json","components","schemas",e],null);return r||n||null},KTe=yN((t,{callbacks:e,specPath:r})=>n=>{const s=n.specSelectors.validOperationMethods();return K.Map.isMap(e)?e.reduce((i,o,a)=>{if(!K.Map.isMap(o))return i;const c=o.reduce((l,p,f)=>{if(!K.Map.isMap(p))return l;const m=p.entrySeq().filter(([d])=>s.includes(d)).map(([d,g])=>({operation:K.Map({operation:g}),method:d,path:f,callbackName:a,specPath:r.concat([a,f,d])}));return l.concat(m)},K.List());return i.concat(c)},K.List()).groupBy(i=>i.callbackName).map(i=>i.toArray()).toObject():{}});var GTe=({callbacks:t,specPath:e,specSelectors:r,getComponent:n})=>{const s=r.callbacksOperations({callbacks:t,specPath:e}),i=Object.keys(s),o=n("OperationContainer",!0);return i.length===0?u.createElement("span",null,"No callbacks"):u.createElement("div",null,i.map(a=>u.createElement("div",{key:`${a}`},u.createElement("h2",null,a),s[a].map(c=>u.createElement(o,{key:`${a}-${c.path}-${c.method}`,op:c.operation,tag:"callbacks",method:c.method,path:c.path,specPath:c.specPath,allowTryItOut:!1})))))};const _f=(t,e,r,n)=>{const s=t.getIn(["content",e])??K.OrderedMap(),i=s.get("schema",K.OrderedMap()),o=s.get("examples")!==void 0,a=s.get("example"),c=o?s.getIn(["examples",r,"value"]):a;return fr(n.getSampleSchema(i,e,{includeWriteOnly:!0},c))};var YTe=({userHasEditedBody:t,requestBody:e,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:s,getComponent:i,getConfigs:o,specSelectors:a,fn:c,contentType:l,isExecute:p,specPath:f,onChange:m,onChangeIncludeEmpty:d,activeExamplesKey:g,updateActiveExamplesKey:v,setRetainRequestBodyValueFlag:y})=>{const E=G=>{m(G.target.files[0])},S=G=>{let ie={key:G,shouldDispatchInit:!1,defaultValue:!0};return n.get(G,"no value")==="no value"&&(ie.shouldDispatchInit=!0),ie},w=i("Markdown",!0),x=i("modelExample"),I=i("RequestBodyEditor"),T=i("HighlightCode",!0),D=i("ExamplesSelectValueRetainer"),B=i("Example"),P=i("ParameterIncludeEmpty"),{showCommonExtensions:Z}=o(),V=(e==null?void 0:e.get("description"))??null,J=(e==null?void 0:e.get("content"))??new K.OrderedMap;l=l||J.keySeq().first()||"";const F=J.get(l)??K.OrderedMap(),Q=F.get("schema",K.OrderedMap()),se=F.get("examples",null),re=se==null?void 0:se.map((G,ie)=>{const pe=G==null?void 0:G.get("value",null);return pe&&(G=G.set("value",_f(e,l,ie,c),pe)),G});if(s=K.List.isList(s)?s:K.List(),c.isFileUploadIntended(F==null?void 0:F.get("schema"),l)){const G=i("Input");return p?u.createElement(G,{type:"file",onChange:E}):u.createElement("i",null,"Example values are not available for ",u.createElement("code",null,l)," media types.")}if(!F.size)return null;if(c.hasSchemaType(F.get("schema"),"object")&&(l==="application/x-www-form-urlencoded"||l.indexOf("multipart/")===0)&&Q.get("properties",K.OrderedMap()).size>0){const G=i("JsonSchemaForm"),ie=i("ParameterExt"),pe=Q.get("properties",K.OrderedMap());return r=K.Map.isMap(r)?r:K.OrderedMap(),u.createElement("div",{className:"table-container"},V&&u.createElement(w,{source:V}),u.createElement("table",null,u.createElement("tbody",null,K.Map.isMap(pe)&&pe.entrySeq().map(([X,le])=>{var $,z,Y,fe;if(le.get("readOnly"))return;const q=(z=($=le.get("oneOf"))==null?void 0:$.get(0))==null?void 0:z.toJS(),N=(fe=(Y=le.get("anyOf"))==null?void 0:Y.get(0))==null?void 0:fe.toJS();le=K.fromJS(c.mergeJsonSchema(le.toJS(),q??N??{}));let M=Z?Lk(le):null;const ae=Q.get("required",K.List()).includes(X),ge=c.getSchemaObjectType(le),Ce=c.getSchemaObjectTypeLabel(le),Re=c.getSchemaObjectType(le==null?void 0:le.get("items")),_e=le.get("format"),$e=le.get("description"),ze=r.getIn([X,"value"]),De=r.getIn([X,"errors"])||s,Ge=n.get(X)||!1;let rt=c.getSampleSchema(le,!1,{includeWriteOnly:!0});rt===!1&&(rt="false"),rt===0&&(rt="0"),typeof rt!="string"&&ge==="object"&&(rt=fr(rt)),typeof rt=="string"&&ge==="array"&&(rt=JSON.parse(rt));const U=c.isFileUploadIntended(le),O=u.createElement(G,{fn:c,dispatchInitialValue:!U,schema:le,description:X,getComponent:i,value:ze===void 0?rt:ze,required:ae,errors:De,onChange:me=>{m(me,[X])}});return u.createElement("tr",{key:X,className:"parameters","data-property-name":X},u.createElement("td",{className:"parameters-col_name"},u.createElement("div",{className:ae?"parameter__name required":"parameter__name"},X,ae?u.createElement("span",null," *"):null),u.createElement("div",{className:"parameter__type"},Ce,_e&&u.createElement("span",{className:"prop-format"},"($",_e,")"),Z&&M.size?M.entrySeq().map(([me,Ae])=>u.createElement(ie,{key:`${me}-${Ae}`,xKey:me,xVal:Ae})):null),u.createElement("div",{className:"parameter__deprecated"},le.get("deprecated")?"deprecated":null)),u.createElement("td",{className:"parameters-col_description"},u.createElement(w,{source:$e}),p?u.createElement("div",null,ge==="object"||Re==="object"?u.createElement(x,{getComponent:i,specPath:f.push("schema"),getConfigs:o,isExecute:p,specSelectors:a,schema:le,example:O}):O,ae?null:u.createElement(P,{onChange:me=>d(X,me),isIncluded:Ge,isIncludedOptions:S(X),isDisabled:Array.isArray(ze)?ze.length!==0:!yS(ze)})):null))}))))}const ce=_f(e,l,g,c);let ue=null;Bd(ce)&&(ue="json");const oe=p?u.createElement(I,{value:r,errors:s,defaultValue:ce,onChange:m,getComponent:i}):u.createElement(T,{className:"body-param__example",language:ue},fr(r)||ce);return u.createElement("div",null,V&&u.createElement(w,{source:V}),re?u.createElement(D,{userHasEditedBody:t,examples:re,currentKey:g,currentUserInputValue:r,onSelect:G=>{v(G)},updateValue:m,defaultToFirstExample:!0,getComponent:i,setRetainRequestBodyValueFlag:y}):null,u.createElement(x,{getComponent:i,getConfigs:o,specSelectors:a,expandDepth:1,isExecute:p,schema:F.get("schema"),specPath:f.push("content",l,"schema"),example:oe,includeWriteOnly:!0}),re?u.createElement(B,{example:re.get(g),getComponent:i,getConfigs:o}):null)},XTe=class extends be.Component{render(){const{link:e,name:r,getComponent:n}=this.props,s=n("Markdown",!0);let i=e.get("operationId")||e.get("operationRef"),o=e.get("parameters")&&e.get("parameters").toJS(),a=e.get("description");return u.createElement("div",{className:"operation-link"},u.createElement("div",{className:"description"},u.createElement("b",null,u.createElement("code",null,r)),a?u.createElement(s,{source:a}):null),u.createElement("pre",null,"Operation `",i,"`",u.createElement("br",null),u.createElement("br",null),"Parameters ",function(l,p){return typeof p!="string"?"":p.split(`
|
|
252
|
+
`).map((f,m)=>m>0?Array(l+1).join(" ")+f:f).join(`
|
|
253
|
+
`)}(0,JSON.stringify(o,null,2))||"{}",u.createElement("br",null)))}},ZTe=({servers:t,currentServer:e,setSelectedServer:r,setServerVariableValue:n,getServerVariable:s,getEffectiveServerValue:i})=>{const o=(t.find(p=>p.get("url")===e)||K.OrderedMap()).get("variables")||K.OrderedMap(),a=o.size!==0;be.useEffect(()=>{var p;e||r((p=t.first())==null?void 0:p.get("url"))},[]),be.useEffect(()=>{const p=t.find(f=>f.get("url")===e);if(!p)return void r(t.first().get("url"));(p.get("variables")||K.OrderedMap()).map((f,m)=>{n({server:e,key:m,val:f.get("default")||""})})},[e,t]);const c=be.useCallback(p=>{r(p.target.value)},[r]),l=be.useCallback(p=>{const f=p.target.getAttribute("data-variable"),m=p.target.value;n({server:e,key:f,val:m})},[n,e]);return u.createElement("div",{className:"servers"},u.createElement("label",{htmlFor:"servers"},u.createElement("select",{onChange:c,value:e,id:"servers"},t.valueSeq().map(p=>u.createElement("option",{value:p.get("url"),key:p.get("url")},p.get("url"),p.get("description")&&` - ${p.get("description")}`)).toArray())),a&&u.createElement("div",null,u.createElement("div",{className:"computed-url"},"Computed URL:",u.createElement("code",null,i(e))),u.createElement("h4",null,"Server variables"),u.createElement("table",null,u.createElement("tbody",null,o.entrySeq().map(([p,f])=>u.createElement("tr",{key:p},u.createElement("td",null,p),u.createElement("td",null,f.get("enum")?u.createElement("select",{"data-variable":p,onChange:l},f.get("enum").map(m=>u.createElement("option",{selected:m===s(e,p),key:m,value:m},m))):u.createElement("input",{type:"text",value:s(e,p)||"",onChange:l,"data-variable":p}))))))))};class QTe extends u.Component{render(){const{specSelectors:e,oas3Selectors:r,oas3Actions:n,getComponent:s}=this.props,i=e.servers(),o=s("Servers");return i&&i.size?u.createElement("div",null,u.createElement("span",{className:"servers-title"},"Servers"),u.createElement(o,{servers:i,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const eIe=Function.prototype;class tIe extends u.Component{constructor(r,n){super(r,n);H(this,"onChange",r=>{let{onChange:n}=this.props,{value:s,name:i}=r.target,o=Object.assign({},this.state.value);i?o[i]=s:o=s,this.setState({value:o},()=>n(this.state))});let{name:s,schema:i}=this.props,o=this.getValue();this.state={name:s,schema:i,value:o}}getValue(){let{name:r,authorized:n}=this.props;return n&&n.getIn([r,"value"])}render(){let{schema:r,getComponent:n,errSelectors:s,name:i,authSelectors:o}=this.props;const a=n("Input"),c=n("Row"),l=n("Col"),p=n("authError"),f=n("Markdown",!0),m=n("JumpToPath",!0),d=(r.get("scheme")||"").toLowerCase(),g=o.selectAuthPath(i);let v=this.getValue(),y=s.allErrors().filter(E=>E.get("authId")===i);if(d==="basic"){let E=v?v.get("username"):null;return u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,i)," (http, Basic)",u.createElement(m,{path:g})),E&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(f,{source:r.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),E?u.createElement("code",null," ",E," "):u.createElement(l,null,u.createElement(a,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),E?u.createElement("code",null," ****** "):u.createElement(l,null,u.createElement(a,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),y.valueSeq().map((S,w)=>u.createElement(p,{error:S,key:w})))}return d==="bearer"?u.createElement("div",null,u.createElement("h4",null,u.createElement("code",null,i)," (http, Bearer)",u.createElement(m,{path:g})),v&&u.createElement("h6",null,"Authorized"),u.createElement(c,null,u.createElement(f,{source:r.get("description")})),u.createElement(c,null,u.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),v?u.createElement("code",null," ****** "):u.createElement(l,null,u.createElement(a,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),y.valueSeq().map((E,S)=>u.createElement(p,{error:E,key:S}))):u.createElement("div",null,u.createElement("em",null,u.createElement("b",null,i)," HTTP authentication: unsupported scheme ",`'${d}'`))}}class rIe extends u.Component{constructor(){super(...arguments);H(this,"setSelectedServer",r=>{const{path:n,method:s}=this.props;return this.forceUpdate(),this.props.setSelectedServer(r,`${n}:${s}`)});H(this,"setServerVariableValue",r=>{const{path:n,method:s}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...r,namespace:`${n}:${s}`})});H(this,"getSelectedServer",()=>{const{path:r,method:n}=this.props;return this.props.getSelectedServer(`${r}:${n}`)});H(this,"getServerVariable",(r,n)=>{const{path:s,method:i}=this.props;return this.props.getServerVariable({namespace:`${s}:${i}`,server:r},n)});H(this,"getEffectiveServerValue",r=>{const{path:n,method:s}=this.props;return this.props.getEffectiveServerValue({server:r,namespace:`${n}:${s}`})})}render(){const{operationServers:r,pathServers:n,getComponent:s}=this.props;if(!r&&!n)return null;const i=s("Servers"),o=r||n,a=r?"operation":"path";return u.createElement("div",{className:"opblock-section operation-servers"},u.createElement("div",{className:"opblock-section-header"},u.createElement("div",{className:"tab-header"},u.createElement("h4",{className:"opblock-title"},"Servers"))),u.createElement("div",{className:"opblock-description-wrapper"},u.createElement("h4",{className:"message"},"These ",a,"-level options override the global server options."),u.createElement(i,{servers:o,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var cy,nIe={Callbacks:GTe,HttpAuth:tIe,RequestBody:YTe,Servers:ZTe,ServersContainer:QTe,RequestBodyEditor:(cy=class extends be.PureComponent{constructor(r,n){super(r,n);H(this,"applyDefaultValue",r=>{const{onChange:n,defaultValue:s}=r||this.props;return this.setState({value:s}),n(s)});H(this,"onChange",r=>{this.props.onChange(fr(r))});H(this,"onDomChange",r=>{const n=r.target.value;this.setState({value:n},()=>this.onChange(n))});this.state={value:fr(r.value)||r.defaultValue},r.onChange(r.value)}UNSAFE_componentWillReceiveProps(r){this.props.value!==r.value&&r.value!==this.state.value&&this.setState({value:fr(r.value)}),!r.value&&r.defaultValue&&this.state.value&&this.applyDefaultValue(r)}render(){let{getComponent:r,errors:n}=this.props,{value:s}=this.state,i=n.size>0;const o=r("TextArea");return u.createElement("div",{className:"body-param"},u.createElement(o,{className:mt("body-param__text",{invalid:i}),title:n.size?n.join(", "):"",value:s,onChange:this.onDomChange}))}},H(cy,"defaultProps",{onChange:eIe,userHasEditedBody:!1}),cy),OperationServers:rIe,operationLink:XTe};const F0=new Zs("commonmark");F0.block.ruler.enable(["table"]),F0.set({linkTarget:"_blank"});var sIe=Ou(({source:t,className:e="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof t!="string")return null;if(t){const{useUnsafeMarkdown:n}=r(),s=Hc(F0.render(t),{useUnsafeMarkdown:n});let i;return typeof s=="string"&&(i=s.trim()),u.createElement("div",{dangerouslySetInnerHTML:{__html:i},className:mt(e,"renderedMarkdown")})}return null}),iIe=Ou(({Ori:t,...e})=>{const{schema:r,getComponent:n,errSelectors:s,authorized:i,onAuthChange:o,name:a,authSelectors:c}=e,l=n("HttpAuth");return r.get("type")==="http"?u.createElement(l,{key:a,schema:r,name:a,errSelectors:s,authorized:i,getComponent:n,onChange:o,authSelectors:c}):u.createElement(t,e)}),oIe=Ou(eN),aIe=Ou(class extends be.Component{render(){let{getConfigs:e,schema:r,Ori:n}=this.props,s=["model-box"],i=null;return r.get("deprecated")===!0&&(s.push("deprecated"),i=u.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),u.createElement("div",{className:s.join(" ")},i,u.createElement(n,lt({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}),cIe=Ou(({Ori:t,...e})=>{const{schema:r,getComponent:n,errors:s,onChange:i,fn:o}=e,a=o.isFileUploadIntended(r),c=n("Input");return a?u.createElement(c,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:l=>{i(l.target.files[0])},disabled:t.isDisabled}):u.createElement(t,e)}),lIe={Markdown:sIe,AuthItem:iIe,OpenAPIVersion:function(e){return(r,n)=>s=>{var i;return typeof((i=n.specSelectors)==null?void 0:i.isOAS30)=="function"?n.specSelectors.isOAS30()?u.createElement(e,lt({},s,n,{Ori:r})):u.createElement(r,s):(console.warn("OAS30 wrapper: couldn't get spec"),null)}}(t=>{const{Ori:e}=t;return u.createElement(e,{oasVersion:"3.0"})}),JsonSchema_string:cIe,model:aIe,onlineValidatorBadge:oIe};const XS="oas3_set_servers",ZS="oas3_set_request_body_value",QS="oas3_set_request_body_retain_flag",ew="oas3_set_request_body_inclusion",tw="oas3_set_active_examples_member",rw="oas3_set_request_content_type",nw="oas3_set_response_content_type",sw="oas3_set_server_variable_value",iw="oas3_set_request_body_validate_error",Ld="oas3_clear_request_body_validate_error",ow="oas3_clear_request_body_value";function uIe(t,e){return{type:XS,payload:{selectedServerUrl:t,namespace:e}}}function pIe({value:t,pathMethod:e}){return{type:ZS,payload:{value:t,pathMethod:e}}}const fIe=({value:t,pathMethod:e})=>({type:QS,payload:{value:t,pathMethod:e}});function hIe({value:t,pathMethod:e,name:r}){return{type:ew,payload:{value:t,pathMethod:e,name:r}}}function dIe({name:t,pathMethod:e,contextType:r,contextName:n}){return{type:tw,payload:{name:t,pathMethod:e,contextType:r,contextName:n}}}function mIe({value:t,pathMethod:e}){return{type:rw,payload:{value:t,pathMethod:e}}}function gIe({value:t,path:e,method:r}){return{type:nw,payload:{value:t,path:e,method:r}}}function yIe({server:t,namespace:e,key:r,val:n}){return{type:sw,payload:{server:t,namespace:e,key:r,val:n}}}const vIe=({path:t,method:e,validationErrors:r})=>({type:iw,payload:{path:t,method:e,validationErrors:r}}),bIe=({path:t,method:e})=>({type:Ld,payload:{path:t,method:e}}),EIe=({pathMethod:t})=>({type:Ld,payload:{path:t[0],method:t[1]}}),SIe=({pathMethod:t})=>({type:ow,payload:{pathMethod:t}}),In=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const s=t(e,...r);return typeof s=="function"?s(n):s}return null},wIe=In((t,e)=>{const r=e?[e,"selectedServer"]:["selectedServer"];return t.getIn(r)||""}),_Ie=In((t,e,r)=>t.getIn(["requestData",e,r,"bodyValue"])||null),xIe=In((t,e,r)=>t.getIn(["requestData",e,r,"retainBodyValue"])||!1),AIe=(t,e,r)=>n=>{const{oas3Selectors:s,specSelectors:i,fn:o}=n.getSystem();if(i.isOAS3()){const a=s.requestContentType(e,r);if(a)return _f(i.specResolvedSubtree(["paths",e,r,"requestBody"]),a,s.activeExamplesMember(e,r,"requestBody","requestBody"),o)}return null},OIe=In((t,e,r)=>n=>{const{oas3Selectors:s,specSelectors:i,fn:o}=n;let a=!1;const c=s.requestContentType(e,r);let l=s.requestBodyValue(e,r);const p=i.specResolvedSubtree(["paths",e,r,"requestBody"]);if(!p)return!1;if(K.Map.isMap(l)&&(l=fr(l.mapEntries(f=>K.Map.isMap(f[1])?[f[0],f[1].get("value")]:f).toJS())),K.List.isList(l)&&(l=fr(l)),c){const f=_f(p,c,s.activeExamplesMember(e,r,"requestBody","requestBody"),o);a=!!l&&l!==f}return a}),CIe=In((t,e,r)=>t.getIn(["requestData",e,r,"bodyInclusion"])||K.Map()),$Ie=In((t,e,r)=>t.getIn(["requestData",e,r,"errors"])||null),TIe=In((t,e,r,n,s)=>t.getIn(["examples",e,r,n,s,"activeExample"])||null),IIe=In((t,e,r)=>t.getIn(["requestData",e,r,"requestContentType"])||null),RIe=In((t,e,r)=>t.getIn(["requestData",e,r,"responseContentType"])||null),PIe=In((t,e,r)=>{let n;if(typeof e!="string"){const{server:s,namespace:i}=e;n=i?[i,"serverVariableValues",s,r]:["serverVariableValues",s,r]}else n=["serverVariableValues",e,r];return t.getIn(n)||null}),kIe=In((t,e)=>{let r;if(typeof e!="string"){const{server:n,namespace:s}=e;r=s?[s,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",e];return t.getIn(r)||K.OrderedMap()}),jIe=In((t,e)=>{var r,n;if(typeof e!="string"){const{server:i,namespace:o}=e;n=i,r=o?t.getIn([o,"serverVariableValues",n]):t.getIn(["serverVariableValues",n])}else n=e,r=t.getIn(["serverVariableValues",n]);r=r||K.OrderedMap();let s=n;return r.map((i,o)=>{s=s.replace(new RegExp(`{${b2e(o)}}`,"g"),i)}),s}),NIe=function(e){return(...r)=>n=>{const s=n.getSystem().specSelectors.specJson();let i=[...r][1]||[];return!s.getIn(["paths",...i,"requestBody","required"])||e(...r)}}((t,e)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(t,e)),MIe=(t,{oas3RequiredRequestBodyContentType:e,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let s=[];if(!K.Map.isMap(n))return s;let i=[];return Object.keys(e.requestContentType).forEach(o=>{o===r&&e.requestContentType[o].forEach(a=>{i.indexOf(a)<0&&i.push(a)})}),i.forEach(o=>{n.getIn([o,"value"])||s.push(o)}),s},DIe=ul(["get","put","post","delete","options","head","patch","trace"]);var FIe={[XS]:(t,{payload:{selectedServerUrl:e,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return t.setIn(n,e)},[ZS]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,s]=r;if(!K.Map.isMap(e))return t.setIn(["requestData",n,s,"bodyValue"],e);let i=t.getIn(["requestData",n,s,"bodyValue"])||K.Map();K.Map.isMap(i)||(i=K.Map());let o=i;const[...a]=e.keys();return a.forEach(c=>{let l=e.getIn([c]);o.has(c)&&K.Map.isMap(l)||(o=o.setIn([c,"value"],l))}),t.setIn(["requestData",n,s,"bodyValue"],o)},[QS]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,s]=r;return t.setIn(["requestData",n,s,"retainBodyValue"],e)},[ew]:(t,{payload:{value:e,pathMethod:r,name:n}})=>{let[s,i]=r;return t.setIn(["requestData",s,i,"bodyInclusion",n],e)},[tw]:(t,{payload:{name:e,pathMethod:r,contextType:n,contextName:s}})=>{let[i,o]=r;return t.setIn(["examples",i,o,n,s,"activeExample"],e)},[rw]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,s]=r;return t.setIn(["requestData",n,s,"requestContentType"],e)},[nw]:(t,{payload:{value:e,path:r,method:n}})=>t.setIn(["requestData",r,n,"responseContentType"],e),[sw]:(t,{payload:{server:e,namespace:r,key:n,val:s}})=>{const i=r?[r,"serverVariableValues",e,n]:["serverVariableValues",e,n];return t.setIn(i,s)},[iw]:(t,{payload:{path:e,method:r,validationErrors:n}})=>{let s=[];if(s.push("Required field is not provided"),n.missingBodyValue)return t.setIn(["requestData",e,r,"errors"],K.fromJS(s));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:i}=n;return t.updateIn(["requestData",e,r,"bodyValue"],K.fromJS({}),o=>i.reduce((a,c)=>a.setIn([c,"errors"],K.fromJS(s)),o))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),t},[Ld]:(t,{payload:{path:e,method:r}})=>{const n=t.getIn(["requestData",e,r,"bodyValue"]);if(!K.Map.isMap(n))return t.setIn(["requestData",e,r,"errors"],K.fromJS([]));const[...s]=n.keys();return s?t.updateIn(["requestData",e,r,"bodyValue"],K.fromJS({}),i=>s.reduce((o,a)=>o.setIn([a,"errors"],K.fromJS([])),i)):t},[ow]:(t,{payload:{pathMethod:e}})=>{let[r,n]=e;const s=t.getIn(["requestData",r,n,"bodyValue"]);return s?K.Map.isMap(s)?t.setIn(["requestData",r,n,"bodyValue"],K.Map()):t.setIn(["requestData",r,n,"bodyValue"],""):t}};function B0({getSystem:t}){const e=(r=>(n,s=null)=>{const{getConfigs:i,fn:o}=r(),{fileUploadMediaTypes:a}=i();if(typeof s=="string"&&a.some(p=>s.startsWith(p)))return!0;const c=K.Map.isMap(n);if(!c&&!gs(n))return!1;const l=c?n.get("format"):n.format;return o.hasSchemaType(n,"string")&&["binary","byte"].includes(l)})(t);return{components:nIe,wrapComponents:lIe,statePlugins:{spec:{wrapSelectors:E0,selectors:w0},auth:{wrapSelectors:S0},oas3:{actions:{..._0},reducers:FIe,selectors:{...x0}}},fn:{isFileUploadIntended:e,isFileUploadIntendedOAS30:e}}}var BIe=({specSelectors:t,getComponent:e})=>{const r=t.selectWebhooksOperations();if(!r)return null;const n=Object.keys(r),s=e("OperationContainer",!0);return n.length===0?null:u.createElement("div",{className:"webhooks"},u.createElement("h2",null,"Webhooks"),n.map(i=>u.createElement("div",{key:`${i}-webhook`},r[i].map(o=>u.createElement(s,{key:`${i}-${o.method}-webhook`,op:o.operation,tag:"webhooks",method:o.method,path:i,specPath:K.List(o.specPath),allowTryItOut:!1})))))},LIe=({getComponent:t,specSelectors:e})=>{const r=e.selectLicenseNameField(),n=e.selectLicenseUrl(),s=t("Link");return u.createElement("div",{className:"info__license"},n?u.createElement("div",{className:"info__license__url"},u.createElement(s,{target:"_blank",href:Gt(n)},r)):u.createElement("span",null,r))},UIe=({getComponent:t,specSelectors:e})=>{const r=e.selectContactNameField(),n=e.selectContactUrl(),s=e.selectContactEmailField(),i=t("Link");return u.createElement("div",{className:"info__contact"},n&&u.createElement("div",null,u.createElement(i,{href:Gt(n),target:"_blank"},r," - Website")),s&&u.createElement(i,{href:Gt(`mailto:${s}`)},n?`Send email to ${r}`:`Contact ${r}`))},VIe=({getComponent:t,specSelectors:e})=>{const r=e.version(),n=e.url(),s=e.basePath(),i=e.host(),o=e.selectInfoSummaryField(),a=e.selectInfoDescriptionField(),c=e.selectInfoTitleField(),l=e.selectInfoTermsOfServiceUrl(),p=e.selectExternalDocsUrl(),f=e.selectExternalDocsDescriptionField(),m=e.contact(),d=e.license(),g=t("Markdown",!0),v=t("Link"),y=t("VersionStamp"),E=t("OpenAPIVersion"),S=t("InfoUrl"),w=t("InfoBasePath"),x=t("License",!0),I=t("Contact",!0),T=t("JsonSchemaDialect",!0);return u.createElement("div",{className:"info"},u.createElement("hgroup",{className:"main"},u.createElement("h1",{className:"title"},c,u.createElement("span",null,r&&u.createElement(y,{version:r}),u.createElement(E,{oasVersion:"3.1"}))),(i||s)&&u.createElement(w,{host:i,basePath:s}),n&&u.createElement(S,{getComponent:t,url:n})),o&&u.createElement("p",{className:"info__summary"},o),u.createElement("div",{className:"info__description description"},u.createElement(g,{source:a})),l&&u.createElement("div",{className:"info__tos"},u.createElement(v,{target:"_blank",href:Gt(l)},"Terms of service")),m.size>0&&u.createElement(I,null),d.size>0&&u.createElement(x,null),p&&u.createElement(v,{className:"info__extdocs",target:"_blank",href:Gt(p)},f||p),u.createElement(T,null))},qIe=({getComponent:t,specSelectors:e})=>{const r=e.selectJsonSchemaDialectField(),n=e.selectJsonSchemaDialectDefault(),s=t("Link");return u.createElement(u.Fragment,null,r&&r===n&&u.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",u.createElement(s,{target:"_blank",href:Gt(r)},r)),r&&r!==n&&u.createElement("div",{className:"error-wrapper"},u.createElement("div",{className:"no-margin"},u.createElement("div",{className:"errors"},u.createElement("div",{className:"errors-wrapper"},u.createElement("h4",{className:"center"},"Warning"),u.createElement("p",{className:"message"},u.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",u.createElement(s,{target:"_blank",href:n},n),". Values different from the default one are currently not supported. Please either omit the field or provide it with the default value."))))))},zIe=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,alsoShow:s,children:i})=>t?u.createElement("div",null,i):e&&(r||n)?u.createElement("div",{className:"version-pragma"},s,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,'swagger: "2.0"'),","," ",u.createElement("code",null,"openapi: 3.0.x"),", or ",u.createElement("code",null,"openapi: 3.1.x")," (for example, ",u.createElement("code",null,"openapi: 3.1.0"),").")))):e||r||n?u.createElement("div",null,i):u.createElement("div",{className:"version-pragma"},s,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,'swagger: "2.0"'),","," ",u.createElement("code",null,"openapi: 3.0.x"),", or ",u.createElement("code",null,"openapi: 3.1.x")," (for example, ",u.createElement("code",null,"openapi: 3.1.0"),")."))));const JIe=t=>typeof t=="string"&&t.includes("#/components/schemas/")?(e=>{const r=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(r)}catch{return r}})(t.replace(/^.*#\/components\/schemas\//,"")):null,WIe=be.forwardRef(({schema:t,getComponent:e,onToggle:r=()=>{},specPath:n},s)=>{const i=e("JSONSchema202012"),o=JIe(t.get("$$ref")),a=be.useCallback((c,l)=>{r(o,l)},[o,r]);return u.createElement(i,{name:o,schema:t.toJS(),ref:s,onExpand:a,identifier:n.toJS().join("_")})});var HIe=WIe,KIe=({specActions:t,specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:s,getConfigs:i,fn:o})=>{const a=e.selectSchemas(),c=Object.keys(a).length>0,l=["components","schemas"],{docExpansion:p,defaultModelsExpandDepth:f}=i(),m=f>0&&p!=="none",d=r.isShown(l,m),g=s("Collapse"),v=s("JSONSchema202012"),y=s("ArrowUpIcon"),E=s("ArrowDownIcon"),{getTitle:S}=o.jsonSchema202012.useFn();be.useEffect(()=>{const D=Object.entries(a).some(([Z])=>r.isShown([...l,Z],!1)),B=d&&(f>1||D),P=e.specResolvedSubtree(l)!=null;B&&!P&&t.requestResolvedSubtree(l)},[d,f]);const w=be.useCallback(()=>{n.show(l,!d)},[d]),x=be.useCallback(D=>{D!==null&&n.readyToScroll(l,D)},[]),I=D=>B=>{B!==null&&n.readyToScroll([...l,D],B)},T=D=>(B,P)=>{const Z=[...l,D];P?(e.specResolvedSubtree(Z)!=null||t.requestResolvedSubtree([...l,D]),n.show(Z,!0)):n.show(Z,!1)};return!c||f<0?null:u.createElement("section",{className:mt("models",{"is-open":d}),ref:x},u.createElement("h4",null,u.createElement("button",{"aria-expanded":d,className:"models-control",onClick:w},u.createElement("span",null,"Schemas"),d?u.createElement(y,null):u.createElement(E,null))),u.createElement(g,{isOpened:d},Object.entries(a).map(([D,B])=>{const P=S(B,{lookup:"basic"})||D;return u.createElement(v,{key:D,ref:I(D),schema:B,name:P,onExpand:T(D)})})))},GIe=({schema:t,getComponent:e,name:r,authSelectors:n})=>{const s=e("JumpToPath",!0),i=n.selectAuthPath(r);return u.createElement("div",null,u.createElement("h4",null,r," (mutualTLS) ",u.createElement(s,{path:i})),u.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),u.createElement("p",null,t.get("description")))};class YIe extends u.Component{constructor(r,n){super(r,n);H(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});H(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});H(this,"logoutClick",r=>{r.preventDefault();let{authActions:n,definitions:s}=this.props,i=s.map((o,a)=>a).toArray();this.setState(i.reduce((o,a)=>(o[a]="",o),{})),n.logoutWithPersistOption(i)});H(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});this.state={}}render(){let{definitions:r,getComponent:n,authSelectors:s,errSelectors:i}=this.props;const o=n("AuthItem"),a=n("oauth2",!0),c=n("Button"),l=s.authorized(),p=r.filter((g,v)=>!!l.get(v)),f=r.filter(g=>g.get("type")!=="oauth2"&&g.get("type")!=="mutualTLS"),m=r.filter(g=>g.get("type")==="oauth2"),d=r.filter(g=>g.get("type")==="mutualTLS");return u.createElement("div",{className:"auth-container"},f.size>0&&u.createElement("form",{onSubmit:this.submitAuth},f.map((g,v)=>u.createElement(o,{key:v,schema:g,name:v,getComponent:n,onAuthChange:this.onAuthChange,authorized:l,errSelectors:i,authSelectors:s})).toArray(),u.createElement("div",{className:"auth-btn-wrapper"},f.size===p.size?u.createElement(c,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):u.createElement(c,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),u.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),m.size>0?u.createElement("div",null,u.createElement("div",{className:"scope-def"},u.createElement("p",null,"Scopes are used to grant an application different levels of access to data on behalf of the end user. Each API may declare one or more scopes."),u.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter(g=>g.get("type")==="oauth2").map((g,v)=>u.createElement("div",{key:v},u.createElement(a,{authorized:l,schema:g,name:v}))).toArray()):null,d.size>0&&u.createElement("div",null,d.map((g,v)=>u.createElement(o,{key:v,schema:g,name:v,getComponent:n,onAuthChange:this.onAuthChange,authorized:l,errSelectors:i,authSelectors:s})).toArray()))}}var XIe=YIe;const vN=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)},EO=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const s=t(e,...r);return typeof s=="function"?s(n):s}return null},bN=t=>(e,r)=>(n,...s)=>{if(r.getSystem().specSelectors.isOAS31()){const i=t(n,...s);return typeof i=="function"?i(e,r):i}return e(...s)},SO=t=>(e,...r)=>n=>{const s=t(e,n,...r);return typeof s=="function"?s(n):s},Ts=t=>(e,r)=>n=>r.specSelectors.isOAS31()?u.createElement(t,lt({},n,{originalComponent:e,getSystem:r.getSystem})):u.createElement(e,n),Qg=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map(([s,i])=>{const o=r[s];return[s,(...a)=>n.isOAS31()?i(...a):typeof o=="function"?o(...a):void 0]}))};var ZIe=Ts(({getSystem:t})=>{const e=t().getComponent("OAS31License",!0);return u.createElement(e,null)}),QIe=Ts(({getSystem:t})=>{const e=t().getComponent("OAS31Contact",!0);return u.createElement(e,null)}),eRe=Ts(({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return u.createElement(e,null)});const tRe=(t,{includeReadOnly:e,includeWriteOnly:r})=>{if(!(t!=null&&t.properties))return{};const n=Object.entries(t.properties).filter(([,s])=>((s==null?void 0:s.readOnly)!==!0||e)&&((s==null?void 0:s.writeOnly)!==!0||r));return Object.fromEntries(n)},EN=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},js=Ts(({getSystem:t,...e})=>{var p;const r=t(),{getComponent:n,fn:s,getConfigs:i}=r,o=i(),a=((p=window==null?void 0:window.location)==null?void 0:p.pathname)??"/";if(js.ModelWithJSONSchemaContext&&js.pathname===a)return u.createElement(js.ModelWithJSONSchemaContext,e);const c=n("OAS31Model"),l=n("withJSONSchema202012SystemContext");return js.ModelWithJSONSchemaContext=l(c,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:o.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:s.jsonSchema202012.getProperties,isExpandable:s.jsonSchema202012.isExpandable,getSchemaKeywords:EN(s.jsonSchema202012.getSchemaKeywords)}}),js.pathname=a,u.createElement(js.ModelWithJSONSchemaContext,e)});js.ModelWithJSONSchemaContext=null,js.pathname=null;var rRe=js;const Ns=Ts(({getSystem:t})=>{var c;const{getComponent:e,fn:r,getConfigs:n}=t(),s=n(),i=((c=window==null?void 0:window.location)==null?void 0:c.pathname)??"/";if(Ns.ModelsWithJSONSchemaContext&&Ns.pathname===i)return u.createElement(Ns.ModelsWithJSONSchemaContext,null);const o=e("OAS31Models",!0),a=e("withJSONSchema202012SystemContext");return Ns.ModelsWithJSONSchemaContext=a(o,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:s.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:EN(r.jsonSchema202012.getSchemaKeywords)}}),Ns.pathname=i,u.createElement(Ns.ModelsWithJSONSchemaContext,null)});Ns.ModelsWithJSONSchemaContext=null,Ns.pathname=null;var nRe=Ns,sRe=(t,e)=>r=>{const n=e.specSelectors.isOAS31(),s=e.getComponent("OAS31VersionPragmaFilter");return u.createElement(s,lt({isOAS31:n},r))};const iRe=Ts(({originalComponent:t,...e})=>{const{getComponent:r,schema:n,name:s}=e,i=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?u.createElement(i,{schema:n,name:s}):u.createElement(t,e)});var oRe=iRe,aRe=Ts(({getSystem:t,...e})=>{const r=t().getComponent("OAS31Auths",!0);return u.createElement(r,e)});const aw=K.Map(),cRe=Ke((t,e)=>e.specSelectors.specJson(),vN),lRe=()=>t=>{const e=t.specSelectors.specJson().get("webhooks");return K.Map.isMap(e)?e:aw},uRe=Ke([(t,e)=>e.specSelectors.webhooks(),(t,e)=>e.specSelectors.validOperationMethods(),(t,e)=>e.specSelectors.specResolvedSubtree(["webhooks"])],(t,e)=>t.reduce((r,n,s)=>{if(!K.Map.isMap(n))return r;const i=n.entrySeq().filter(([o])=>e.includes(o)).map(([o,a])=>({operation:K.Map({operation:a}),method:o,path:s,specPath:["webhooks",s,o]}));return r.concat(i)},K.List()).groupBy(r=>r.path).map(r=>r.toArray()).toObject()),pRe=()=>t=>{const e=t.specSelectors.info().get("license");return K.Map.isMap(e)?e:aw},fRe=()=>t=>t.specSelectors.license().get("name","License"),hRe=()=>t=>t.specSelectors.license().get("url"),dRe=Ke([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],(t,e,r)=>{if(r)return rn(r,t,{selectedServer:e})}),mRe=()=>t=>t.specSelectors.license().get("identifier"),gRe=()=>t=>{const e=t.specSelectors.info().get("contact");return K.Map.isMap(e)?e:aw},yRe=()=>t=>t.specSelectors.contact().get("name","the developer"),vRe=()=>t=>t.specSelectors.contact().get("email"),bRe=()=>t=>t.specSelectors.contact().get("url"),ERe=Ke([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],(t,e,r)=>{if(r)return rn(r,t,{selectedServer:e})}),SRe=()=>t=>t.specSelectors.info().get("title"),wRe=()=>t=>t.specSelectors.info().get("summary"),_Re=()=>t=>t.specSelectors.info().get("description"),xRe=()=>t=>t.specSelectors.info().get("termsOfService"),ARe=Ke([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectInfoTermsOfServiceField()],(t,e,r)=>{if(r)return rn(r,t,{selectedServer:e})}),ORe=()=>t=>t.specSelectors.externalDocs().get("description"),CRe=()=>t=>t.specSelectors.externalDocs().get("url"),$Re=Ke([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectExternalDocsUrlField()],(t,e,r)=>{if(r)return rn(r,t,{selectedServer:e})}),TRe=()=>t=>t.specSelectors.specJson().get("jsonSchemaDialect"),IRe=()=>"https://spec.openapis.org/oas/3.1/dialect/base",RRe=Ke((t,e)=>e.specSelectors.definitions(),(t,e)=>e.specSelectors.specResolvedSubtree(["components","schemas"]),(t,e)=>K.Map.isMap(t)?K.Map.isMap(e)?Object.entries(t.toJS()).reduce((r,[n,s])=>{const i=e.get(n);return r[n]=(i==null?void 0:i.toJS())||s,r},{}):t.toJS():{}),PRe=(t,e)=>(r,...n)=>e.specSelectors.isOAS31()||t(...n),kRe=bN(()=>(t,e)=>e.oas31Selectors.selectLicenseUrl()),jRe=bN(()=>(t,e)=>{const r=e.specSelectors.securityDefinitions();let n=t();return r&&r.entrySeq().forEach(([s,i])=>{(i==null?void 0:i.get("type"))==="mutualTLS"&&(n=n.push(new K.Map({[s]:i})))}),n}),NRe=Ke([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField(),(t,e)=>e.specSelectors.selectLicenseIdentifierField()],(t,e,r,n)=>r?rn(r,t,{selectedServer:e}):n?`https://spdx.org/licenses/${n}.html`:void 0);var MRe=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{hasKeyword:s}=r.jsonSchema202012.useFn(),i=n("JSONSchema202012JSONViewer");return s(t,"example")?u.createElement(i,{name:"Example",value:t.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},DRe=({schema:t,getSystem:e})=>{const r=(t==null?void 0:t.xml)||{},{fn:n,getComponent:s,getConfigs:i}=e(),{showExtensions:o}=i(),{useComponent:a,useIsExpanded:c,usePath:l,useLevel:p}=n.jsonSchema202012,{path:f}=l("xml"),{isExpanded:m,setExpanded:d,setCollapsed:g}=c("xml"),[v,y]=p(),E=o?Ri(r):[],S=!!(r.name||r.namespace||r.prefix||E.length>0),w=a("Accordion"),x=a("ExpandDeepButton"),I=s("OpenAPI31Extensions"),T=s("JSONSchema202012PathContext")(),D=s("JSONSchema202012LevelContext")(),B=be.useCallback(()=>{m?g():d()},[m,d,g]),P=be.useCallback((Z,V)=>{V?d({deep:!0}):g({deep:!0})},[d,g]);return Object.keys(r).length===0?null:u.createElement(T.Provider,{value:f},u.createElement(D.Provider,{value:y},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":v},S?u.createElement(u.Fragment,null,u.createElement(w,{expanded:m,onChange:B},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),u.createElement(x,{expanded:m,onClick:P})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!m})},m&&u.createElement(u.Fragment,null,r.name&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),E.length>0&&u.createElement(I,{openAPISpecObj:r,openAPIExtensions:E,getSystem:e})))))},FRe=({discriminator:t})=>{const e=(t==null?void 0:t.mapping)||{};return Object.keys(e).length===0?null:Object.entries(e).map(([r,n])=>u.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n)))},BRe=({schema:t,getSystem:e})=>{const r=(t==null?void 0:t.discriminator)||{},{fn:n,getComponent:s,getConfigs:i}=e(),{showExtensions:o}=i(),{useComponent:a,useIsExpanded:c,usePath:l,useLevel:p}=n.jsonSchema202012,f="discriminator",{path:m}=l(f),{isExpanded:d,setExpanded:g,setCollapsed:v}=c(f),[y,E]=p(),S=o?Ri(r):[],w=!!(r.mapping||S.length>0),x=a("Accordion"),I=a("ExpandDeepButton"),T=s("OpenAPI31Extensions"),D=s("JSONSchema202012PathContext")(),B=s("JSONSchema202012LevelContext")(),P=be.useCallback(()=>{d?v():g()},[d,g,v]),Z=be.useCallback((V,J)=>{J?g({deep:!0}):v({deep:!0})},[g,v]);return Object.keys(r).length===0?null:u.createElement(D.Provider,{value:m},u.createElement(B.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":y},w?u.createElement(u.Fragment,null,u.createElement(x,{expanded:d,onChange:P},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),u.createElement(I,{expanded:d,onClick:Z})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement(FRe,{discriminator:r})),S.length>0&&u.createElement(T,{openAPISpecObj:r,openAPIExtensions:S,getSystem:e})))))},LRe=({openAPISpecObj:t,getSystem:e,openAPIExtensions:r})=>{const{fn:n}=e(),{useComponent:s}=n.jsonSchema202012,i=s("JSONViewer");return r.map(o=>u.createElement(i,{key:o,name:o,value:t[o],className:"json-schema-2020-12-json-viewer-extension-keyword"}))},URe=({schema:t,getSystem:e})=>{const r=(t==null?void 0:t.externalDocs)||{},{fn:n,getComponent:s,getConfigs:i}=e(),{showExtensions:o}=i(),{useComponent:a,useIsExpanded:c,usePath:l,useLevel:p}=n.jsonSchema202012,f="externalDocs",{path:m}=l(f),{isExpanded:d,setExpanded:g,setCollapsed:v}=c(f),[y,E]=p(),S=o?Ri(r):[],w=!!(r.description||r.url||S.length>0),x=a("Accordion"),I=a("ExpandDeepButton"),T=s("JSONSchema202012KeywordDescription"),D=s("Link"),B=s("OpenAPI31Extensions"),P=s("JSONSchema202012PathContext")(),Z=s("JSONSchema202012LevelContext")(),V=be.useCallback(()=>{d?v():g()},[d,g,v]),J=be.useCallback((F,Q)=>{Q?g({deep:!0}):v({deep:!0})},[g,v]);return Object.keys(r).length===0?null:u.createElement(P.Provider,{value:m},u.createElement(Z.Provider,{value:E},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":y},w?u.createElement(u.Fragment,null,u.createElement(x,{expanded:d,onChange:V},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),u.createElement(I,{expanded:d,onClick:J})):u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&u.createElement(u.Fragment,null,r.description&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement(T,{schema:r,getSystem:e})),r.url&&u.createElement("li",{className:"json-schema-2020-12-property"},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u.createElement(D,{target:"_blank",href:Gt(r.url)},r.url))))),S.length>0&&u.createElement(B,{openAPISpecObj:r,openAPIExtensions:S,getSystem:e})))))},VRe=({schema:t,getSystem:e})=>{if(!(t!=null&&t.description))return null;const{getComponent:r}=e(),n=r("Markdown");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},u.createElement(n,{source:t.description})))},qRe=Ts(VRe);const zRe=Ts(({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),s=n("JSONSchema202012KeywordDiscriminator"),i=n("JSONSchema202012KeywordXml"),o=n("JSONSchema202012KeywordExample"),a=n("JSONSchema202012KeywordExternalDocs");return u.createElement(u.Fragment,null,u.createElement(r,{schema:t}),u.createElement(s,{schema:t,getSystem:e}),u.createElement(i,{schema:t,getSystem:e}),u.createElement(a,{schema:t,getSystem:e}),u.createElement(o,{schema:t,getSystem:e}))});var JRe=zRe,WRe=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:s,usePath:i}=r.jsonSchema202012,{getDependentRequired:o,getProperties:a}=r.jsonSchema202012.useFn(),c=r.jsonSchema202012.useConfig(),l=Array.isArray(t==null?void 0:t.required)?t.required:[],{path:p}=i("properties"),f=s("JSONSchema"),m=n("JSONSchema202012PathContext")(),d=a(t,c);return Object.keys(d).length===0?null:u.createElement(m.Provider,{value:p},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(d).map(([g,v])=>{const y=l.includes(g),E=o(g,t);return u.createElement("li",{key:g,className:mt("json-schema-2020-12-property",{"json-schema-2020-12-property--required":y})},u.createElement(f,{name:g,schema:v,dependentRequired:E}))}))))},HRe=Ts(WRe),KRe=function({fn:e,getSystem:r}){if(e.jsonSchema202012){const i=((o,a)=>{const{fn:c}=a();if(typeof o!="function")return null;const{hasKeyword:l}=c.jsonSchema202012;return p=>o(p)||l(p,"example")||(p==null?void 0:p.xml)||(p==null?void 0:p.discriminator)||(p==null?void 0:p.externalDocs)})(e.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:i,getProperties:tRe})}if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const i=Qg({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:o=>e.jsonSchema202012.getType(vi(o)),getSchemaObjectType:o=>{var a;return e.jsonSchema202012.foldType((a=vi(o))==null?void 0:a.type)}},r());Object.assign(this.fn,i)}const n=(i=>(o,a=null)=>{const{fn:c}=i();if(c.isFileUploadIntendedOAS30(o,a))return!0;const l=K.Map.isMap(o);if(!l&&!gs(o))return!1;const p=l?o.get("contentMediaType"):o.contentMediaType,f=l?o.get("contentEncoding"):o.contentEncoding;return typeof p=="string"&&p!==""||typeof f=="string"&&f!==""})(r),{isFileUploadIntended:s}=Qg({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=s,this.fn.isFileUploadIntendedOAS31=n,e.jsonSchema202012){const{hasSchemaType:i}=Qg({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=i}},GRe=({fn:t})=>{const e=t.createSystemSelector||SO,r=t.createOnlyOAS31Selector||EO;return{afterLoad:KRe,fn:{isOAS31:vN,createSystemSelector:SO,createOnlyOAS31Selector:EO},components:{Webhooks:BIe,JsonSchemaDialect:qIe,MutualTLSAuth:GIe,OAS31Info:VIe,OAS31License:LIe,OAS31Contact:UIe,OAS31VersionPragmaFilter:zIe,OAS31Model:HIe,OAS31Models:KIe,OAS31Auths:XIe,JSONSchema202012KeywordExample:MRe,JSONSchema202012KeywordXml:DRe,JSONSchema202012KeywordDiscriminator:BRe,JSONSchema202012KeywordExternalDocs:URe,OpenAPI31Extensions:LRe},wrapComponents:{InfoContainer:eRe,License:ZIe,Contact:QIe,VersionPragmaFilter:sRe,Model:rRe,Models:nRe,AuthItem:oRe,auths:aRe,JSONSchema202012KeywordDescription:qRe,JSONSchema202012KeywordExamples:JRe,JSONSchema202012KeywordProperties:HRe},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:jRe}},spec:{selectors:{isOAS31:e(cRe),license:pRe,selectLicenseNameField:fRe,selectLicenseUrlField:hRe,selectLicenseIdentifierField:r(mRe),selectLicenseUrl:e(dRe),contact:gRe,selectContactNameField:yRe,selectContactEmailField:vRe,selectContactUrlField:bRe,selectContactUrl:e(ERe),selectInfoTitleField:SRe,selectInfoSummaryField:r(wRe),selectInfoDescriptionField:_Re,selectInfoTermsOfServiceField:xRe,selectInfoTermsOfServiceUrl:e(ARe),selectExternalDocsDescriptionField:ORe,selectExternalDocsUrlField:CRe,selectExternalDocsUrl:e($Re),webhooks:r(lRe),selectWebhooksOperations:r(e(uRe)),selectJsonSchemaDialectField:TRe,selectJsonSchemaDialectDefault:IRe,selectSchemas:e(RRe)},wrapSelectors:{isOAS3:PRe,selectLicenseUrl:kRe}},oas31:{selectors:{selectLicenseUrl:r(e(NRe))}}}}},YRe=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,isOAS32:s,alsoShow:i,children:o})=>t?u.createElement("div",null,o):e&&(r||n||s)?u.createElement("div",{className:"version-pragma"},i,u.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,u.createElement("code",null,"swagger")," and ",u.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),u.createElement("p",null,"Supported version fields are ",u.createElement("code",null,'swagger: "2.0"')," ","and ",u.createElement("code",null,"openapi: 3.0.x"),", ",u.createElement("code",null,"openapi: 3.1.x"),", or"," ",u.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",u.createElement("code",null,"openapi: 3.2.0"),").")))):e||r||n||s?u.createElement("div",null,o):u.createElement("div",{className:"version-pragma"},i,u.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},u.createElement("div",null,u.createElement("h3",null,"Unable to render this definition"),u.createElement("p",null,"The provided definition does not specify a valid version field."),u.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",u.createElement("code",null,'swagger: "2.0"')," ","and ",u.createElement("code",null,"openapi: 3.0.x"),", ",u.createElement("code",null,"openapi: 3.1.x"),", or"," ",u.createElement("code",null,"openapi: 3.2.x")," (for example,"," ",u.createElement("code",null,"openapi: 3.2.0"),")."))));const SN=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.2\.(?:[1-9]\d*|0)$/.test(e)},XRe=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS32()){const s=t(e,...r);return typeof s=="function"?s(n):s}return null},wO=t=>(e,...r)=>n=>{const s=t(e,n,...r);return typeof s=="function"?s(n):s},Qs=t=>(e,r)=>n=>r.specSelectors.isOAS32()?u.createElement(t,lt({},n,{originalComponent:e,getSystem:r.getSystem})):u.createElement(e,n),ey=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map(([s,i])=>{const o=r[s];return[s,(...a)=>n.isOAS32()?i(...a):typeof o=="function"?o(...a):void 0]}))};var ZRe=Qs(t=>{const{getSystem:e}=t,r=e().getComponent("OAS31Contact",!0);return u.createElement(r,t)}),QRe=Qs(({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return u.createElement(e,null)}),ePe=Qs(t=>{const{getSystem:e}=t,r=e().getComponent("OAS31License",!0);return u.createElement(r,t)});const wN=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},Ms=Qs(({getSystem:t,...e})=>{var p;const r=t(),{getComponent:n,fn:s,getConfigs:i}=r,o=i(),a=((p=window==null?void 0:window.location)==null?void 0:p.pathname)??"/";if(Ms.ModelWithJSONSchemaContext&&Ms.pathname===a)return u.createElement(Ms.ModelWithJSONSchemaContext,e);const c=n("OAS31Model"),l=n("withJSONSchema202012SystemContext");return Ms.ModelWithJSONSchemaContext=l(c,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:o.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:s.jsonSchema202012.getProperties,isExpandable:s.jsonSchema202012.isExpandable,getSchemaKeywords:wN(s.jsonSchema202012.getSchemaKeywords)}}),Ms.pathname=a,u.createElement(Ms.ModelWithJSONSchemaContext,e)});Ms.ModelWithJSONSchemaContext=null,Ms.pathname=null;var tPe=Ms;const Ds=Qs(({getSystem:t})=>{var c;const{getComponent:e,fn:r,getConfigs:n}=t(),s=n(),i=((c=window==null?void 0:window.location)==null?void 0:c.pathname)??"/";if(Ds.ModelsWithJSONSchemaContext&&Ds.pathname===i)return u.createElement(Ds.ModelsWithJSONSchemaContext,null);const o=e("OAS31Models",!0),a=e("withJSONSchema202012SystemContext");return Ds.ModelsWithJSONSchemaContext=a(o,{config:{default$schema:"https://spec.openapis.org/oas/3.2/schema/2025-09-17",defaultExpandedLevels:s.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:wN(r.jsonSchema202012.getSchemaKeywords)}}),Ds.pathname=i,u.createElement(Ds.ModelsWithJSONSchemaContext,null)});Ds.ModelsWithJSONSchemaContext=null,Ds.pathname=null;var rPe=Ds,nPe=Qs(t=>{const{originalComponent:e}=t;return u.createElement(e,{oasVersion:"3.2"})}),sPe=(t,e)=>r=>{const n=e.specSelectors.isOAS32(),s=e.getComponent("OAS32VersionPragmaFilter");return u.createElement(s,lt({isOAS32:n},r))},iPe=({schema:t,getSystem:e})=>{if(!(t!=null&&t.description))return null;const{getComponent:r}=e(),n=r("Markdown");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},u.createElement(n,{source:t.description})))},oPe=Qs(iPe);const aPe=Qs(({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),s=n("JSONSchema202012KeywordDiscriminator"),i=n("JSONSchema202012KeywordXml"),o=n("JSONSchema202012KeywordExample"),a=n("JSONSchema202012KeywordExternalDocs");return u.createElement(u.Fragment,null,u.createElement(r,{schema:t}),u.createElement(s,{schema:t,getSystem:e}),u.createElement(i,{schema:t,getSystem:e}),u.createElement(a,{schema:t,getSystem:e}),u.createElement(o,{schema:t,getSystem:e}))});var cPe=aPe,lPe=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:s,usePath:i}=r.jsonSchema202012,{getDependentRequired:o,getProperties:a}=r.jsonSchema202012.useFn(),c=r.jsonSchema202012.useConfig(),l=Array.isArray(t==null?void 0:t.required)?t.required:[],{path:p}=i("properties"),f=s("JSONSchema"),m=n("JSONSchema202012PathContext")(),d=a(t,c);return Object.keys(d).length===0?null:u.createElement(m.Provider,{value:p},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(d).map(([g,v])=>{const y=l.includes(g),E=o(g,t);return u.createElement("li",{key:g,className:mt("json-schema-2020-12-property",{"json-schema-2020-12-property--required":y})},u.createElement(f,{name:g,schema:v,dependentRequired:E}))}))))},uPe=Qs(lPe);const pPe=ul(["get","put","post","delete","options","head","patch","trace","query"]),fPe=(t,e)=>(r,...n)=>e.specSelectors.isOAS32()||t(...n),hPe=(_O=()=>(t,e)=>e.oas32Selectors.validOperationMethods(),(t,e)=>(r,...n)=>{if(e.getSystem().specSelectors.isOAS32()){const s=_O(r,...n);return typeof s=="function"?s(t,e):s}return t(...n)});var _O;const _N=K.Map(),dPe=(t,e)=>()=>{const r=e.specSelectors.specJson();return SN(r)},mPe=()=>t=>{const e=t.specSelectors.info().get("license");return K.Map.isMap(e)?e:_N},gPe=()=>t=>t.specSelectors.license().get("name","License"),yPe=()=>t=>t.specSelectors.license().get("url"),vPe=Ke([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],(t,e,r)=>{if(r)return rn(r,t,{selectedServer:e})}),bPe=()=>t=>t.specSelectors.license().get("identifier"),EPe=()=>t=>{const e=t.specSelectors.info().get("contact");return K.Map.isMap(e)?e:_N},SPe=()=>t=>t.specSelectors.contact().get("name","the developer"),wPe=()=>t=>t.specSelectors.contact().get("email"),_Pe=()=>t=>t.specSelectors.contact().get("url"),xPe=Ke([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],(t,e,r)=>{if(r)return rn(r,t,{selectedServer:e})}),APe=()=>t=>t.specSelectors.info().get("summary");var OPe=function({fn:e,getSystem:r}){if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const i=ey({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:o=>e.jsonSchema202012.getType(vi(o)),getSchemaObjectType:o=>{var a;return e.jsonSchema202012.foldType((a=vi(o))==null?void 0:a.type)}},r());Object.assign(this.fn,i)}const n=(i=>(o,a=null)=>{const{fn:c}=i();if(c.isFileUploadIntendedOAS30(o,a))return!0;const l=K.Map.isMap(o);if(!l&&!gs(o))return!1;const p=l?o.get("contentMediaType"):o.contentMediaType,f=l?o.get("contentEncoding"):o.contentEncoding;return typeof p=="string"&&p!==""||typeof f=="string"&&f!==""})(r),{isFileUploadIntended:s}=ey({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=s,this.fn.isFileUploadIntendedOAS32=n,e.jsonSchema202012){const{hasSchemaType:i}=ey({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=i}},CPe=({fn:t})=>{const e=t.createSystemSelector||wO;return{afterLoad:OPe,fn:{isOAS32:SN,createSystemSelector:wO,createOnlyOAS32Selector:XRe},components:{OAS32VersionPragmaFilter:YRe},wrapComponents:{Contact:ZRe,InfoContainer:QRe,License:ePe,Model:tPe,Models:rPe,OpenAPIVersion:nPe,VersionPragmaFilter:sPe,JSONSchema202012KeywordDescription:oPe,JSONSchema202012KeywordExamples:cPe,JSONSchema202012KeywordProperties:uPe},statePlugins:{spec:{selectors:{isOAS32:e(dPe),selectInfoSummaryField:APe,license:mPe,selectLicenseNameField:gPe,selectLicenseUrlField:yPe,selectLicenseIdentifierField:bPe,selectLicenseUrl:e(vPe),contact:EPe,selectContactNameField:SPe,selectContactEmailField:wPe,selectContactUrlField:_Pe,selectContactUrl:e(xPe)},wrapSelectors:{isOAS3:fPe,validOperationMethods:hPe}},oas32:{selectors:{validOperationMethods:pPe}}}}};const $Pe=Ur.object,TPe=Ur.bool,oo=(Ur.oneOfType([$Pe,TPe]),be.createContext(null));oo.displayName="JSONSchemaContext";const Rn=be.createContext(0);Rn.displayName="JSONSchemaLevelContext";const L0=be.createContext(new Set),Hr=be.createContext([]);class Vr{}H(Vr,"Collapsed","collapsed"),H(Vr,"Expanded","expanded"),H(Vr,"DeeplyExpanded","deeply-expanded");const cw=()=>{const{config:t}=be.useContext(oo);return t},Te=t=>{const{components:e}=be.useContext(oo);return e[t]||null},$t=(t=void 0)=>{const{fn:e}=be.useContext(oo);return t!==void 0?e[t]:e},xN=()=>{const[,t]=be.useState(null),{state:e}=be.useContext(oo);return{state:e,setState:r=>{r(e),t({})}}},On=()=>{const t=be.useContext(Rn);return[t,t+1]},Nr=t=>{const e=be.useContext(Hr),{setState:r}=xN(),n=typeof t=="string"?[...e,t]:e;return{path:n,pathMutator:(s,i={deep:!1})=>{const o=n.toString(),a=l=>{l.paths[o]=s,s===Vr.Collapsed&&Object.keys(l.paths).forEach(p=>{p.startsWith(o)&&l.paths[p]===Vr.DeeplyExpanded&&(l.paths[p]=Vr.Expanded)})},c=l=>{Object.keys(l.paths).forEach(p=>{p.startsWith(o)&&(l.paths[p]=s)})};i.deep?r(c):r(a)}}},Xn=t=>{const[e]=On(),{defaultExpandedLevels:r}=cw(),{path:n,pathMutator:s}=Nr(t),{path:i}=Nr(),{state:o}=xN(),a=o.paths[n.toString()],c=o.paths[i.toString()]??o.paths[i.slice(0,-1).toString()],l=a??(r-e>0?Vr.Expanded:Vr.Collapsed),p=l!==Vr.Collapsed;return be.useEffect(()=>{s(c===Vr.DeeplyExpanded?Vr.DeeplyExpanded:l)},[c]),{isExpanded:p,setExpanded:be.useCallback((f={deep:!1})=>{s(f.deep?Vr.DeeplyExpanded:Vr.Expanded)},[]),setCollapsed:be.useCallback((f={deep:!1})=>{s(Vr.Collapsed,f)},[])}},xO=(t=void 0)=>{if(t===void 0)return be.useContext(L0);const e=be.useContext(L0);return new Set([...e,t])},IPe=be.forwardRef(({schema:t,name:e="",dependentRequired:r=[],onExpand:n=()=>{},identifier:s=""},i)=>{const o=$t(),a=s||(t==null?void 0:t.$id)||e,{path:c}=Nr(a),{isExpanded:l,setExpanded:p,setCollapsed:f}=Xn(a),[m,d]=On(),g=(()=>{const[k]=On();return k>0})(),v=o.isExpandable(t)||r.length>0,y=(k=>xO().has(k))(t),E=xO(t),S=o.stringifyConstraints(t),w=Te("Accordion"),x=Te("Keyword$schema"),I=Te("Keyword$vocabulary"),T=Te("Keyword$id"),D=Te("Keyword$anchor"),B=Te("Keyword$dynamicAnchor"),P=Te("Keyword$ref"),Z=Te("Keyword$dynamicRef"),V=Te("Keyword$defs"),J=Te("Keyword$comment"),F=Te("KeywordAllOf"),Q=Te("KeywordAnyOf"),se=Te("KeywordOneOf"),re=Te("KeywordNot"),ce=Te("KeywordIf"),ue=Te("KeywordThen"),oe=Te("KeywordElse"),G=Te("KeywordDependentSchemas"),ie=Te("KeywordPrefixItems"),pe=Te("KeywordItems"),X=Te("KeywordContains"),le=Te("KeywordProperties"),q=Te("KeywordPatternProperties"),N=Te("KeywordAdditionalProperties"),M=Te("KeywordPropertyNames"),ae=Te("KeywordUnevaluatedItems"),ge=Te("KeywordUnevaluatedProperties"),Ce=Te("KeywordType"),Re=Te("KeywordEnum"),_e=Te("KeywordConst"),$e=Te("KeywordConstraint"),ze=Te("KeywordDependentRequired"),De=Te("KeywordContentSchema"),Ge=Te("KeywordTitle"),rt=Te("KeywordDescription"),U=Te("KeywordDefault"),O=Te("KeywordDeprecated"),$=Te("KeywordReadOnly"),z=Te("KeywordWriteOnly"),Y=Te("KeywordExamples"),fe=Te("ExtensionKeywords"),me=Te("ExpandDeepButton"),Ae=be.useCallback((k,_)=>{_?p():f(),n(k,_,!1)},[n,p,f]),Ve=be.useCallback((k,_)=>{_?p({deep:!0}):f({deep:!0}),n(k,_,!0)},[n,p,f]);return u.createElement(Hr.Provider,{value:c},u.createElement(Rn.Provider,{value:d},u.createElement(L0.Provider,{value:E},u.createElement("article",{ref:i,"data-json-schema-level":m,className:mt("json-schema-2020-12",{"json-schema-2020-12--embedded":g,"json-schema-2020-12--circular":y})},u.createElement("div",{className:"json-schema-2020-12-head"},v&&!y?u.createElement(u.Fragment,null,u.createElement(w,{expanded:l,onChange:Ae},u.createElement(Ge,{title:e,schema:t})),u.createElement(me,{expanded:l,onClick:Ve})):u.createElement(Ge,{title:e,schema:t}),u.createElement(O,{schema:t}),u.createElement($,{schema:t}),u.createElement(z,{schema:t}),u.createElement(Ce,{schema:t,isCircular:y}),S.length>0&&S.map(k=>u.createElement($e,{key:`${k.scope}-${k.value}`,constraint:k}))),u.createElement("div",{className:mt("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!l})},l&&u.createElement(u.Fragment,null,u.createElement(rt,{schema:t}),!y&&v&&u.createElement(u.Fragment,null,u.createElement(le,{schema:t}),u.createElement(q,{schema:t}),u.createElement(N,{schema:t}),u.createElement(ge,{schema:t}),u.createElement(M,{schema:t}),u.createElement(F,{schema:t}),u.createElement(Q,{schema:t}),u.createElement(se,{schema:t}),u.createElement(re,{schema:t}),u.createElement(ce,{schema:t}),u.createElement(ue,{schema:t}),u.createElement(oe,{schema:t}),u.createElement(G,{schema:t}),u.createElement(ie,{schema:t}),u.createElement(pe,{schema:t}),u.createElement(ae,{schema:t}),u.createElement(X,{schema:t}),u.createElement(De,{schema:t})),u.createElement(Re,{schema:t}),u.createElement(_e,{schema:t}),u.createElement(ze,{schema:t,dependentRequired:r}),u.createElement(U,{schema:t}),u.createElement(Y,{schema:t}),u.createElement(x,{schema:t}),u.createElement(I,{schema:t}),u.createElement(T,{schema:t}),u.createElement(D,{schema:t}),u.createElement(B,{schema:t}),u.createElement(P,{schema:t}),!y&&v&&u.createElement(V,{schema:t}),u.createElement(Z,{schema:t}),u.createElement(J,{schema:t}),u.createElement(fe,{schema:t})))))))});var AN=IPe,ON=({schema:t})=>t!=null&&t.$schema?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$schema)):null,CN=({schema:t})=>{const e="$vocabulary",{path:r}=Nr(e),{isExpanded:n,setExpanded:s,setCollapsed:i}=Xn(e),o=Te("Accordion"),a=be.useCallback(()=>{n?i():s()},[n,s,i]);return t!=null&&t.$vocabulary?typeof t.$vocabulary!="object"?null:u.createElement(Hr.Provider,{value:r},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},u.createElement(o,{expanded:n,onChange:a},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",null,n&&Object.entries(t.$vocabulary).map(([c,l])=>u.createElement("li",{key:c,className:mt("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!l})},u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},c)))))):null},$N=({schema:t})=>t!=null&&t.$id?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$id)):null,TN=({schema:t})=>t!=null&&t.$anchor?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$anchor)):null,IN=({schema:t})=>t!=null&&t.$dynamicAnchor?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicAnchor)):null,RN=({schema:t})=>t!=null&&t.$ref?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$ref)):null,PN=({schema:t})=>t!=null&&t.$dynamicRef?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicRef)):null,kN=({schema:t})=>{const e=(t==null?void 0:t.$defs)||{},r="$defs",{path:n}=Nr(r),{isExpanded:s,setExpanded:i,setCollapsed:o}=Xn(r),[a,c]=On(),l=Te("Accordion"),p=Te("ExpandDeepButton"),f=Te("JSONSchema"),m=be.useCallback(()=>{s?o():i()},[s,i,o]),d=be.useCallback((g,v)=>{v?i({deep:!0}):o({deep:!0})},[i,o]);return Object.keys(e).length===0?null:u.createElement(Hr.Provider,{value:n},u.createElement(Rn.Provider,{value:c},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":a},u.createElement(l,{expanded:s,onChange:m},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),u.createElement(p,{expanded:s,onClick:d}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&u.createElement(u.Fragment,null,Object.entries(e).map(([g,v])=>u.createElement("li",{key:g,className:"json-schema-2020-12-property"},u.createElement(f,{name:g,schema:v}))))))))},jN=({schema:t})=>t!=null&&t.$comment?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$comment)):null,NN=({schema:t})=>{const e=(t==null?void 0:t.allOf)||[],r=$t(),n="allOf",{path:s}=Nr(n),{isExpanded:i,setExpanded:o,setCollapsed:a}=Xn(n),[c,l]=On(),p=Te("Accordion"),f=Te("ExpandDeepButton"),m=Te("JSONSchema"),d=Te("KeywordType"),g=be.useCallback(()=>{i?a():o()},[i,o,a]),v=be.useCallback((y,E)=>{E?o({deep:!0}):a({deep:!0})},[o,a]);return Array.isArray(e)&&e.length!==0?u.createElement(Hr.Provider,{value:s},u.createElement(Rn.Provider,{value:l},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":c},u.createElement(p,{expanded:i,onChange:g},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),u.createElement(f,{expanded:i,onClick:v}),u.createElement(d,{schema:{allOf:e}}),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&u.createElement(u.Fragment,null,e.map((y,E)=>u.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},u.createElement(m,{name:`#${E} ${r.getTitle(y)}`,schema:y})))))))):null},MN=({schema:t})=>{const e=(t==null?void 0:t.anyOf)||[],r=$t(),n="anyOf",{path:s}=Nr(n),{isExpanded:i,setExpanded:o,setCollapsed:a}=Xn(n),[c,l]=On(),p=Te("Accordion"),f=Te("ExpandDeepButton"),m=Te("JSONSchema"),d=Te("KeywordType"),g=be.useCallback(()=>{i?a():o()},[i,o,a]),v=be.useCallback((y,E)=>{E?o({deep:!0}):a({deep:!0})},[o,a]);return Array.isArray(e)&&e.length!==0?u.createElement(Hr.Provider,{value:s},u.createElement(Rn.Provider,{value:l},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":c},u.createElement(p,{expanded:i,onChange:g},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),u.createElement(f,{expanded:i,onClick:v}),u.createElement(d,{schema:{anyOf:e}}),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&u.createElement(u.Fragment,null,e.map((y,E)=>u.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},u.createElement(m,{name:`#${E} ${r.getTitle(y)}`,schema:y})))))))):null},DN=({schema:t})=>{const e=(t==null?void 0:t.oneOf)||[],r=$t(),n="oneOf",{path:s}=Nr(n),{isExpanded:i,setExpanded:o,setCollapsed:a}=Xn(n),[c,l]=On(),p=Te("Accordion"),f=Te("ExpandDeepButton"),m=Te("JSONSchema"),d=Te("KeywordType"),g=be.useCallback(()=>{i?a():o()},[i,o,a]),v=be.useCallback((y,E)=>{E?o({deep:!0}):a({deep:!0})},[o,a]);return Array.isArray(e)&&e.length!==0?u.createElement(Hr.Provider,{value:s},u.createElement(Rn.Provider,{value:l},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":c},u.createElement(p,{expanded:i,onChange:g},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),u.createElement(f,{expanded:i,onClick:v}),u.createElement(d,{schema:{oneOf:e}}),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&u.createElement(u.Fragment,null,e.map((y,E)=>u.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},u.createElement(m,{name:`#${E} ${r.getTitle(y)}`,schema:y})))))))):null},FN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"not"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},u.createElement(r,{name:n,schema:t.not,identifier:"not"}))},BN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"if"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},u.createElement(r,{name:n,schema:t.if,identifier:"if"}))},LN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"then"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},u.createElement(r,{name:n,schema:t.then,identifier:"then"}))},UN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"else"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},u.createElement(r,{name:n,schema:t.else,identifier:"else"}))},VN=({schema:t})=>{const e=(t==null?void 0:t.dependentSchemas)||[],r="dependentSchemas",{path:n}=Nr(r),{isExpanded:s,setExpanded:i,setCollapsed:o}=Xn(r),[a,c]=On(),l=Te("Accordion"),p=Te("ExpandDeepButton"),f=Te("JSONSchema"),m=be.useCallback(()=>{s?o():i()},[s,i,o]),d=be.useCallback((g,v)=>{v?i({deep:!0}):o({deep:!0})},[i,o]);return typeof e!="object"||Object.keys(e).length===0?null:u.createElement(Hr.Provider,{value:n},u.createElement(Rn.Provider,{value:c},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":a},u.createElement(l,{expanded:s,onChange:m},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),u.createElement(p,{expanded:s,onClick:d}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&u.createElement(u.Fragment,null,Object.entries(e).map(([g,v])=>u.createElement("li",{key:g,className:"json-schema-2020-12-property"},u.createElement(f,{name:g,schema:v}))))))))},qN=({schema:t})=>{const e=(t==null?void 0:t.prefixItems)||[],r=$t(),n="prefixItems",{path:s}=Nr(n),{isExpanded:i,setExpanded:o,setCollapsed:a}=Xn(n),[c,l]=On(),p=Te("Accordion"),f=Te("ExpandDeepButton"),m=Te("JSONSchema"),d=Te("KeywordType"),g=be.useCallback(()=>{i?a():o()},[i,o,a]),v=be.useCallback((y,E)=>{E?o({deep:!0}):a({deep:!0})},[o,a]);return Array.isArray(e)&&e.length!==0?u.createElement(Hr.Provider,{value:s},u.createElement(Rn.Provider,{value:l},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":c},u.createElement(p,{expanded:i,onChange:g},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),u.createElement(f,{expanded:i,onClick:v}),u.createElement(d,{schema:{prefixItems:e}}),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&u.createElement(u.Fragment,null,e.map((y,E)=>u.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},u.createElement(m,{name:`#${E} ${r.getTitle(y)}`,schema:y})))))))):null},zN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"items"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},u.createElement(r,{name:n,schema:t.items,identifier:"items"}))},JN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"contains"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},u.createElement(r,{name:n,schema:t.contains,identifier:"contains"}))},WN=({schema:t})=>{const e=$t(),r=(t==null?void 0:t.properties)||{},n=Array.isArray(t==null?void 0:t.required)?t.required:[],s=Te("JSONSchema"),{path:i}=Nr("properties");return Object.keys(r).length===0?null:u.createElement(Hr.Provider,{value:i},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},u.createElement("ul",null,Object.entries(r).map(([o,a])=>{const c=n.includes(o),l=e.getDependentRequired(o,t);return u.createElement("li",{key:o,className:mt("json-schema-2020-12-property",{"json-schema-2020-12-property--required":c})},u.createElement(s,{name:o,schema:a,dependentRequired:l}))}))))},HN=({schema:t})=>{const e=(t==null?void 0:t.patternProperties)||{},r=Te("JSONSchema"),{path:n}=Nr("patternProperties");return Object.keys(e).length===0?null:u.createElement(Hr.Provider,{value:n},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},u.createElement("ul",null,Object.entries(e).map(([s,i])=>u.createElement("li",{key:s,className:"json-schema-2020-12-property"},u.createElement(r,{name:s,schema:i}))))))},KN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"additionalProperties"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},t.additionalProperties===!0?u.createElement(u.Fragment,null,n,u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):t.additionalProperties===!1?u.createElement(u.Fragment,null,n,u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):u.createElement(r,{name:n,schema:t.additionalProperties,identifier:"additionalProperties"}))},GN=({schema:t})=>{const e=$t(),r=Te("JSONSchema"),n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return e.hasKeyword(t,"propertyNames")?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},u.createElement(r,{name:n,schema:t.propertyNames,identifier:"propertyNames"})):null},YN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"unevaluatedItems"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},u.createElement(r,{name:n,schema:t.unevaluatedItems,identifier:"unevaluatedItems"}))},XN=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"unevaluatedProperties"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},u.createElement(r,{name:n,schema:t.unevaluatedProperties,identifier:"unevaluatedProperties"}))},ZN=({schema:t,isCircular:e=!1})=>{const r=$t().getType(t),n=e?" [circular]":"";return u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},QN=({schema:t})=>{const e=Te("JSONViewer");return Array.isArray(t==null?void 0:t.enum)?u.createElement(e,{name:"Enum",value:t.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},eM=({schema:t})=>{const e=$t(),r=Te("JSONViewer");return e.hasKeyword(t,"const")?u.createElement(r,{name:"Const",value:t.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null};const tM=t=>typeof t=="string"?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:t,rM=t=>(e,{lookup:r="extended"}={})=>{const n=t();if((e==null?void 0:e.title)!=null)return n.upperFirst(String(e.title));if(r==="extended"){if((e==null?void 0:e.$anchor)!=null)return n.upperFirst(String(e.$anchor));if((e==null?void 0:e.$id)!=null)return String(e.$id)}return""},nM=t=>{const e=(r,n=new WeakSet)=>{const s=t();if(r==null)return"any";if(s.isBooleanJSONSchema(r))return r?"any":"never";if(typeof r!="object"||n.has(r))return"any";n.add(r);const{type:i,prefixItems:o,items:a}=r,c=()=>{if(Array.isArray(o)){const f=o.map(d=>e(d,n)),m=a?e(a,n):"any";return`array<[${f.join(", ")}], ${m}>`}return a?`array<${e(a,n)}>`:"array<any>"};if(r.not&&e(r.not)==="any")return"never";const l=(f,m)=>Array.isArray(r[f])?`(${r[f].map(d=>e(d,n)).join(m)})`:null,p=[Array.isArray(i)?i.map(f=>f==="array"?c():f).join(" | "):i==="array"?c():["null","boolean","object","array","number","integer","string"].includes(i)?i:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return c();if(Object.hasOwn(r,"properties")||Object.hasOwn(r,"additionalProperties")||Object.hasOwn(r,"patternProperties"))return"object";if(["int32","int64"].includes(r.format))return"integer";if(["float","double"].includes(r.format))return"number";if(Object.hasOwn(r,"minimum")||Object.hasOwn(r,"maximum")||Object.hasOwn(r,"exclusiveMinimum")||Object.hasOwn(r,"exclusiveMaximum")||Object.hasOwn(r,"multipleOf"))return"number | integer";if(Object.hasOwn(r,"pattern")||Object.hasOwn(r,"format")||Object.hasOwn(r,"minLength")||Object.hasOwn(r,"maxLength")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(r.const!==void 0){if(r.const===null)return"null";if(typeof r.const=="boolean")return"boolean";if(typeof r.const=="number")return Number.isInteger(r.const)?"integer":"number";if(typeof r.const=="string")return"string";if(Array.isArray(r.const))return"array<any>";if(typeof r.const=="object")return"object"}return null})(),l("oneOf"," | "),l("anyOf"," | "),l("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),p||"any"};return e},sM=t=>typeof t=="boolean",iM=(t,e)=>t!==null&&typeof t=="object"&&Object.hasOwn(t,e),oM=t=>e=>{const r=t();return(e==null?void 0:e.$schema)||(e==null?void 0:e.$vocabulary)||(e==null?void 0:e.$id)||(e==null?void 0:e.$anchor)||(e==null?void 0:e.$dynamicAnchor)||(e==null?void 0:e.$ref)||(e==null?void 0:e.$dynamicRef)||(e==null?void 0:e.$defs)||(e==null?void 0:e.$comment)||(e==null?void 0:e.allOf)||(e==null?void 0:e.anyOf)||(e==null?void 0:e.oneOf)||r.hasKeyword(e,"not")||r.hasKeyword(e,"if")||r.hasKeyword(e,"then")||r.hasKeyword(e,"else")||(e==null?void 0:e.dependentSchemas)||(e==null?void 0:e.prefixItems)||r.hasKeyword(e,"items")||r.hasKeyword(e,"contains")||(e==null?void 0:e.properties)||(e==null?void 0:e.patternProperties)||r.hasKeyword(e,"additionalProperties")||r.hasKeyword(e,"propertyNames")||r.hasKeyword(e,"unevaluatedItems")||r.hasKeyword(e,"unevaluatedProperties")||(e==null?void 0:e.description)||(e==null?void 0:e.enum)||r.hasKeyword(e,"const")||r.hasKeyword(e,"contentSchema")||r.hasKeyword(e,"default")||(e==null?void 0:e.examples)||r.getExtensionKeywords(e).length>0},aM=t=>t===null||["number","bigint","boolean"].includes(typeof t)?String(t):Array.isArray(t)?`[${t.map(aM).join(", ")}]`:JSON.stringify(t),lp=(t,e,r)=>{const n=typeof e=="number",s=typeof r=="number";return n&&s?e===r?`${e} ${t}`:`[${e}, ${r}] ${t}`:n?`≥ ${e} ${t}`:s?`≤ ${r} ${t}`:null},RPe=t=>{const e=[],r=(c=>{if(typeof(c==null?void 0:c.multipleOf)!="number"||c.multipleOf<=0||c.multipleOf===1)return null;const{multipleOf:l}=c;if(Number.isInteger(l))return`multiple of ${l}`;const p=10**l.toString().split(".")[1].length;return`multiple of ${l*p}/${p}`})(t);r!==null&&e.push({scope:"number",value:r});const n=(c=>{const l=c==null?void 0:c.minimum,p=c==null?void 0:c.maximum,f=c==null?void 0:c.exclusiveMinimum,m=c==null?void 0:c.exclusiveMaximum,d=typeof l=="number",g=typeof p=="number",v=typeof f=="number",y=typeof m=="number",E=v&&(!d||l<f),S=y&&(!g||p>m);return(d||v)&&(g||y)?`${E?"(":"["}${E?f:l}, ${S?m:p}${S?")":"]"}`:d||v?`${E?">":"≥"} ${E?f:l}`:g||y?`${S?"<":"≤"} ${S?m:p}`:null})(t);n!==null&&e.push({scope:"number",value:n}),t!=null&&t.format&&e.push({scope:"string",value:t.format});const s=lp("characters",t==null?void 0:t.minLength,t==null?void 0:t.maxLength);s!==null&&e.push({scope:"string",value:s}),t!=null&&t.pattern&&e.push({scope:"string",value:`matches ${t==null?void 0:t.pattern}`}),t!=null&&t.contentMediaType&&e.push({scope:"string",value:`media type: ${t.contentMediaType}`}),t!=null&&t.contentEncoding&&e.push({scope:"string",value:`encoding: ${t.contentEncoding}`});const i=lp(t!=null&&t.uniqueItems?"unique items":"items",t==null?void 0:t.minItems,t==null?void 0:t.maxItems);i!==null&&e.push({scope:"array",value:i}),t!=null&&t.uniqueItems&&!i&&e.push({scope:"array",value:"unique"});const o=lp("contained items",t==null?void 0:t.minContains,t==null?void 0:t.maxContains);o!==null&&e.push({scope:"array",value:o});const a=lp("properties",t==null?void 0:t.minProperties,t==null?void 0:t.maxProperties);return a!==null&&e.push({scope:"object",value:a}),e},PPe=(t,e)=>e!=null&&e.dependentRequired?Array.from(Object.entries(e.dependentRequired).reduce((r,[n,s])=>(Array.isArray(s)&&s.includes(t)&&r.add(n),r),new Set)):[],Ud=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&(Object.getPrototypeOf(t)===null||Object.getPrototypeOf(t)===Object.prototype),cM=()=>["$schema","$vocabulary","$id","$anchor","$dynamicAnchor","$dynamicRef","$ref","$defs","$comment","allOf","anyOf","oneOf","not","if","then","else","dependentSchemas","prefixItems","items","contains","properties","patternProperties","additionalProperties","propertyNames","unevaluatedItems","unevaluatedProperties","type","enum","const","multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","maxContains","minContains","maxProperties","minProperties","required","dependentRequired","title","description","default","deprecated","readOnly","writeOnly","examples","format","contentEncoding","contentMediaType","contentSchema"],lM=t=>e=>{const r=t().getSchemaKeywords();return Ud(e)?((n,s)=>{const i=new Set(s);return n.filter(o=>!i.has(o))})(Object.keys(e),r):[]},kPe=(t,e)=>{const r=K.Map.isMap(t);if(!r&&!Ud(t))return!1;const n=i=>e===i||Array.isArray(e)&&e.includes(i),s=r?t.get("type"):t.type;return K.List.isList(s)||Array.isArray(s)?s.some(i=>n(i)):n(s)},jPe=({constraint:t})=>Ud(t)&&typeof t.scope=="string"&&typeof t.value=="string"?u.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`},t.value):null;var uM=u.memo(jPe),pM=({dependentRequired:t})=>Array.isArray(t)&&t.length!==0?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),u.createElement("ul",null,t.map(e=>u.createElement("li",{key:e},u.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},e))))):null,fM=({schema:t})=>{const e=$t(),r=Te("JSONSchema");if(!e.hasKeyword(t,"contentSchema"))return null;const n=u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},u.createElement(r,{name:n,schema:t.contentSchema,identifier:"contentSchema"}))},hM=({title:t="",schema:e})=>{const r=$t(),n=t||r.getTitle(e);return n?u.createElement("div",{className:"json-schema-2020-12__title"},n):null},dM=({schema:t})=>t!=null&&t.description?u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},u.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},t.description)):null,mM=({schema:t})=>{const e=$t(),r=Te("JSONViewer");return e.hasKeyword(t,"default")?u.createElement(r,{name:"Default",value:t.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},gM=({schema:t})=>(t==null?void 0:t.deprecated)!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),yM=({schema:t})=>(t==null?void 0:t.readOnly)!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),vM=({schema:t})=>(t==null?void 0:t.writeOnly)!==!0?null:u.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),bM=({schema:t})=>{const e=(t==null?void 0:t.examples)||[],r=Te("JSONViewer");return Array.isArray(e)&&e.length!==0?u.createElement(r,{name:"Examples",value:t.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},EM=({schema:t})=>{const e=$t(),r="ExtensionKeywords",{path:n}=Nr(r),{isExpanded:s,setExpanded:i,setCollapsed:o}=Xn(r),[a,c]=On(),l=Te("Accordion"),p=Te("ExpandDeepButton"),f=Te("JSONViewer"),{showExtensionKeywords:m}=cw(),d=e.getExtensionKeywords(t),g=be.useCallback(()=>{s?o():i()},[s,i,o]),v=be.useCallback((y,E)=>{E?i({deep:!0}):o({deep:!0})},[i,o]);return m&&d.length!==0?u.createElement(Hr.Provider,{value:n},u.createElement(Rn.Provider,{value:c},u.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":a},u.createElement(l,{expanded:s,onChange:g},u.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),u.createElement(p,{expanded:s,onClick:v}),u.createElement("ul",{className:mt("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&u.createElement(u.Fragment,null,d.map(y=>u.createElement(f,{key:y,name:y,value:t[y],className:"json-schema-2020-12-json-viewer-extension-keyword"}))))))):null};const U0=({name:t,value:e,className:r})=>{const n=$t(),{path:s}=Nr(t),{isExpanded:i,setExpanded:o,setCollapsed:a}=Xn(t),[c,l]=On(),p=Te("Accordion"),f=Te("ExpandDeepButton"),m=typeof e=="string"||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"||typeof e=="symbol"||e==null,d=(y=>Ud(y)&&Object.keys(y).length===0)(e)||(y=>Array.isArray(y)&&y.length===0)(e),g=be.useCallback(()=>{i?a():o()},[i,o,a]),v=be.useCallback((y,E)=>{E?o({deep:!0}):a({deep:!0})},[o,a]);return m?u.createElement("div",{className:mt("json-schema-2020-12-json-viewer",r)},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),u.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(e))):d?u.createElement("div",{className:mt("json-schema-2020-12-json-viewer",r)},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"empty array":"empty object")):u.createElement(Hr.Provider,{value:s},u.createElement(Rn.Provider,{value:l},u.createElement("div",{className:mt("json-schema-2020-12-json-viewer",r),"data-json-schema-level":c},u.createElement(p,{expanded:i,onChange:g},u.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t)),u.createElement(f,{expanded:i,onClick:v}),u.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"array":"object"),u.createElement("ul",{className:mt("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!i})},i&&u.createElement(u.Fragment,null,Array.isArray(e)?e.map((y,E)=>u.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},u.createElement(U0,{name:`#${E}`,value:y,className:r}))):Object.entries(e).map(([y,E])=>u.createElement("li",{key:y,className:"json-schema-2020-12-property"},u.createElement(U0,{name:y,value:E,className:r}))))))))};var SM=U0,wM=({expanded:t=!1,children:e,onChange:r})=>{const n=Te("ChevronRightIcon"),s=be.useCallback(i=>{r(i,!t)},[t,r]);return u.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:s},u.createElement("div",{className:"json-schema-2020-12-accordion__children"},e),u.createElement("span",{className:mt("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":t,"json-schema-2020-12-accordion__icon--collapsed":!t})},u.createElement(n,null)))},_M=({expanded:t,onClick:e})=>{const r=be.useCallback(n=>{e(n,!t)},[t,e]);return u.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},t?"Collapse all":"Expand all")},xM=()=>u.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},u.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const AM=(t,e={})=>{const r={components:{JSONSchema:AN,Keyword$schema:ON,Keyword$vocabulary:CN,Keyword$id:$N,Keyword$anchor:TN,Keyword$dynamicAnchor:IN,Keyword$ref:RN,Keyword$dynamicRef:PN,Keyword$defs:kN,Keyword$comment:jN,KeywordAllOf:NN,KeywordAnyOf:MN,KeywordOneOf:DN,KeywordNot:FN,KeywordIf:BN,KeywordThen:LN,KeywordElse:UN,KeywordDependentSchemas:VN,KeywordPrefixItems:qN,KeywordItems:zN,KeywordContains:JN,KeywordProperties:WN,KeywordPatternProperties:HN,KeywordAdditionalProperties:KN,KeywordPropertyNames:GN,KeywordUnevaluatedItems:YN,KeywordUnevaluatedProperties:XN,KeywordType:ZN,KeywordEnum:QN,KeywordConst:eM,KeywordConstraint:uM,KeywordDependentRequired:pM,KeywordContentSchema:fM,KeywordTitle:hM,KeywordDescription:dM,KeywordDefault:mM,KeywordDeprecated:gM,KeywordReadOnly:yM,KeywordWriteOnly:vM,KeywordExamples:bM,ExtensionKeywords:EM,JSONViewer:SM,Accordion:wM,ExpandDeepButton:_M,ChevronRightIcon:xM,...e.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...e.config},fn:{upperFirst:tM,getTitle:rM($t),getType:nM($t),isBooleanJSONSchema:sM,hasKeyword:iM,isExpandable:oM($t),stringify:aM,stringifyConstraints:RPe,getDependentRequired:PPe,getSchemaKeywords:cM,getExtensionKeywords:lM($t),...e.fn},state:{paths:{}}},n=s=>u.createElement(oo.Provider,{value:r},u.createElement(t,s));return n.contexts={JSONSchemaContext:oo},n.displayName=t.displayName,n},NPe=({getSystem:t})=>(e,r={})=>{const{getComponent:n,getConfigs:s}=t(),i=s(),o=n("JSONSchema202012"),a=n("JSONSchema202012Keyword$schema"),c=n("JSONSchema202012Keyword$vocabulary"),l=n("JSONSchema202012Keyword$id"),p=n("JSONSchema202012Keyword$anchor"),f=n("JSONSchema202012Keyword$dynamicAnchor"),m=n("JSONSchema202012Keyword$ref"),d=n("JSONSchema202012Keyword$dynamicRef"),g=n("JSONSchema202012Keyword$defs"),v=n("JSONSchema202012Keyword$comment"),y=n("JSONSchema202012KeywordAllOf"),E=n("JSONSchema202012KeywordAnyOf"),S=n("JSONSchema202012KeywordOneOf"),w=n("JSONSchema202012KeywordNot"),x=n("JSONSchema202012KeywordIf"),I=n("JSONSchema202012KeywordThen"),T=n("JSONSchema202012KeywordElse"),D=n("JSONSchema202012KeywordDependentSchemas"),B=n("JSONSchema202012KeywordPrefixItems"),P=n("JSONSchema202012KeywordItems"),Z=n("JSONSchema202012KeywordContains"),V=n("JSONSchema202012KeywordProperties"),J=n("JSONSchema202012KeywordPatternProperties"),F=n("JSONSchema202012KeywordAdditionalProperties"),Q=n("JSONSchema202012KeywordPropertyNames"),se=n("JSONSchema202012KeywordUnevaluatedItems"),re=n("JSONSchema202012KeywordUnevaluatedProperties"),ce=n("JSONSchema202012KeywordType"),ue=n("JSONSchema202012KeywordEnum"),oe=n("JSONSchema202012KeywordConst"),G=n("JSONSchema202012KeywordConstraint"),ie=n("JSONSchema202012KeywordDependentRequired"),pe=n("JSONSchema202012KeywordContentSchema"),X=n("JSONSchema202012KeywordTitle"),le=n("JSONSchema202012KeywordDescription"),q=n("JSONSchema202012KeywordDefault"),N=n("JSONSchema202012KeywordDeprecated"),M=n("JSONSchema202012KeywordReadOnly"),ae=n("JSONSchema202012KeywordWriteOnly"),ge=n("JSONSchema202012KeywordExamples"),Ce=n("JSONSchema202012ExtensionKeywords"),Re=n("JSONSchema202012JSONViewer"),_e=n("JSONSchema202012Accordion"),$e=n("JSONSchema202012ExpandDeepButton"),ze=n("JSONSchema202012ChevronRightIcon");return AM(e,{components:{JSONSchema:o,Keyword$schema:a,Keyword$vocabulary:c,Keyword$id:l,Keyword$anchor:p,Keyword$dynamicAnchor:f,Keyword$ref:m,Keyword$dynamicRef:d,Keyword$defs:g,Keyword$comment:v,KeywordAllOf:y,KeywordAnyOf:E,KeywordOneOf:S,KeywordNot:w,KeywordIf:x,KeywordThen:I,KeywordElse:T,KeywordDependentSchemas:D,KeywordPrefixItems:B,KeywordItems:P,KeywordContains:Z,KeywordProperties:V,KeywordPatternProperties:J,KeywordAdditionalProperties:F,KeywordPropertyNames:Q,KeywordUnevaluatedItems:se,KeywordUnevaluatedProperties:re,KeywordType:ce,KeywordEnum:ue,KeywordConst:oe,KeywordConstraint:G,KeywordDependentRequired:ie,KeywordContentSchema:pe,KeywordTitle:X,KeywordDescription:le,KeywordDefault:q,KeywordDeprecated:N,KeywordReadOnly:M,KeywordWriteOnly:ae,KeywordExamples:ge,ExtensionKeywords:Ce,JSONViewer:Re,Accordion:_e,ExpandDeepButton:$e,ChevronRightIcon:ze,...r.components},config:{showExtensionKeywords:i.showExtensions,...r.config},fn:{...r.fn}})};var OM=({getSystem:t,fn:e})=>{const r=()=>({upperFirst:e.upperFirst,...e.jsonSchema202012});return{components:{JSONSchema202012:AN,JSONSchema202012Keyword$schema:ON,JSONSchema202012Keyword$vocabulary:CN,JSONSchema202012Keyword$id:$N,JSONSchema202012Keyword$anchor:TN,JSONSchema202012Keyword$dynamicAnchor:IN,JSONSchema202012Keyword$ref:RN,JSONSchema202012Keyword$dynamicRef:PN,JSONSchema202012Keyword$defs:kN,JSONSchema202012Keyword$comment:jN,JSONSchema202012KeywordAllOf:NN,JSONSchema202012KeywordAnyOf:MN,JSONSchema202012KeywordOneOf:DN,JSONSchema202012KeywordNot:FN,JSONSchema202012KeywordIf:BN,JSONSchema202012KeywordThen:LN,JSONSchema202012KeywordElse:UN,JSONSchema202012KeywordDependentSchemas:VN,JSONSchema202012KeywordPrefixItems:qN,JSONSchema202012KeywordItems:zN,JSONSchema202012KeywordContains:JN,JSONSchema202012KeywordProperties:WN,JSONSchema202012KeywordPatternProperties:HN,JSONSchema202012KeywordAdditionalProperties:KN,JSONSchema202012KeywordPropertyNames:GN,JSONSchema202012KeywordUnevaluatedItems:YN,JSONSchema202012KeywordUnevaluatedProperties:XN,JSONSchema202012KeywordType:ZN,JSONSchema202012KeywordEnum:QN,JSONSchema202012KeywordConst:eM,JSONSchema202012KeywordConstraint:uM,JSONSchema202012KeywordDependentRequired:pM,JSONSchema202012KeywordContentSchema:fM,JSONSchema202012KeywordTitle:hM,JSONSchema202012KeywordDescription:dM,JSONSchema202012KeywordDefault:mM,JSONSchema202012KeywordDeprecated:gM,JSONSchema202012KeywordReadOnly:yM,JSONSchema202012KeywordWriteOnly:vM,JSONSchema202012KeywordExamples:bM,JSONSchema202012ExtensionKeywords:EM,JSONSchema202012JSONViewer:SM,JSONSchema202012Accordion:wM,JSONSchema202012ExpandDeepButton:_M,JSONSchema202012ChevronRightIcon:xM,withJSONSchema202012Context:AM,withJSONSchema202012SystemContext:NPe(t()),JSONSchema202012PathContext:()=>Hr,JSONSchema202012LevelContext:()=>Rn},fn:{upperFirst:tM,jsonSchema202012:{getTitle:rM(r),getType:nM(r),isExpandable:oM(r),isBooleanJSONSchema:sM,hasKeyword:iM,useFn:$t,useConfig:cw,useComponent:Te,useIsExpanded:Xn,usePath:Nr,useLevel:On,getSchemaKeywords:cM,getExtensionKeywords:lM(r),hasSchemaType:kPe}}}},MPe=(t,{sample:e=[]}={})=>((r,n={})=>{const{minItems:s,maxItems:i,uniqueItems:o}=n,{contains:a,minContains:c,maxContains:l}=n;let p=[...r];if(a!=null&&typeof a=="object"&&Number.isInteger(c)&&c>1){const f=p.at(0);for(let m=1;m<c;m+=1)p.unshift(f)}if(Number.isInteger(i)&&i>0&&(p=r.slice(0,i)),Number.isInteger(s)&&s>0)for(let f=0;p.length<s;f+=1)p.push(p[f%p.length]);return o===!0&&(p=Array.from(new Set(p))),p})(e,t),DPe=()=>{throw new Error("Not implemented")};const Vd=t=>sa()(t),kp=t=>t.at(0),Ji=t=>typeof t=="boolean",Un=t=>gs(t),ks=t=>Ji(t)||Un(t);var qd=class{constructor(){H(this,"data",{})}register(e,r){this.data[e]=r}unregister(e){e===void 0?this.data={}:delete this.data[e]}get(e){return this.data[e]}},CM=()=>0,$M=()=>0,FPe=()=>.1,BPe=()=>.1,LPe=()=>"user@example.com",UPe=()=>"실례@example.com",VPe=()=>"example.com",qPe=()=>"실례.com",zPe=()=>"198.51.100.42",JPe=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",WPe=()=>"https://example.com/",HPe=()=>"path/index.html",KPe=()=>"https://실례.com/",GPe=()=>"path/실례.html",YPe=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",XPe=()=>"https://example.com/dictionary/{term:1}/{term}",ZPe=()=>"/a/b/c",QPe=()=>"1/0",eke=()=>new Date().toISOString(),tke=()=>new Date().toISOString().substring(0,10),rke=()=>new Date().toISOString().substring(11),nke=()=>"P3D",ske=()=>"********",ike=()=>"^[a-z]+$",Kc,PO;const jp=new(PO=class extends qd{constructor(){super(...arguments);Rs(this,Kc,{int32:CM,int64:$M,float:FPe,double:BPe,email:LPe,"idn-email":UPe,hostname:VPe,"idn-hostname":qPe,ipv4:zPe,ipv6:JPe,uri:WPe,"uri-reference":HPe,iri:KPe,"iri-reference":GPe,uuid:YPe,"uri-template":XPe,"json-pointer":ZPe,"relative-json-pointer":QPe,"date-time":eke,date:tke,time:rke,duration:nke,password:ske,regex:ike});H(this,"data",{...Ut(this,Kc)})}get defaults(){return{...Ut(this,Kc)}}},Kc=new WeakMap,PO),TM=(t,e)=>typeof e=="function"?jp.register(t,e):e===null?jp.unregister(t):jp.get(t);TM.getDefaults=()=>jp.defaults;var zd=TM,oke=Fe(287).Buffer,ake=t=>oke.from(t).toString("ascii"),cke=Fe(287).Buffer,lke=t=>cke.from(t).toString("utf8"),uke=Fe(287).Buffer,pke=t=>uke.from(t).toString("binary"),fke=t=>{let e="";for(let r=0;r<t.length;r++){const n=t.charCodeAt(r);if(n===61)e+="=3D";else if(n>=33&&n<=60||n>=62&&n<=126||n===9||n===32)e+=t.charAt(r);else if(n===13||n===10)e+=`\r
|
|
254
|
+
`;else if(n>126){const s=unescape(encodeURIComponent(t.charAt(r)));for(let i=0;i<s.length;i++)e+="="+("0"+s.charCodeAt(i).toString(16)).slice(-2).toUpperCase()}else e+="="+("0"+n.toString(16)).slice(-2).toUpperCase()}return e},hke=Fe(287).Buffer,dke=t=>hke.from(t).toString("hex"),mke=Fe(287).Buffer,gke=t=>{const e=mke.from(t).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,s="",i=0,o=0;for(let a=0;a<e.length;a++)for(i=i<<8|e.charCodeAt(a),o+=8;o>=5;)s+=r.charAt(i>>>o-5&31),o-=5;o>0&&(s+=r.charAt(i<<5-o&31),n=(8-8*e.length%5)%5);for(let a=0;a<n;a++)s+="=";return s},yke=Fe(287).Buffer,vke=t=>yke.from(t).toString("base64"),bke=Fe(287).Buffer,Eke=t=>bke.from(t).toString("base64url"),Gc,kO;const Np=new(kO=class extends qd{constructor(){super(...arguments);Rs(this,Gc,{"7bit":ake,"8bit":lke,binary:pke,"quoted-printable":fke,base16:dke,base32:gke,base64:vke,base64url:Eke});H(this,"data",{...Ut(this,Gc)})}get defaults(){return{...Ut(this,Gc)}}},Gc=new WeakMap,kO),IM=(t,e)=>typeof e=="function"?Np.register(t,e):e===null?Np.unregister(t):Np.get(t);IM.getDefaults=()=>Np.defaults;var RM=IM,Ske={"text/plain":()=>"string","text/css":()=>".selector { border: 1px solid red }","text/csv":()=>"value1,value2,value3","text/html":()=>"<p>content</p>","text/calendar":()=>"BEGIN:VCALENDAR","text/javascript":()=>"console.dir('Hello world!');","text/xml":()=>'<person age="30">John Doe</person>',"text/*":()=>"string"},wke={"image/*":()=>Vd(25).toString("binary")},_ke={"audio/*":()=>Vd(25).toString("binary")},xke={"video/*":()=>Vd(25).toString("binary")},Ake={"application/json":()=>'{"key":"value"}',"application/ld+json":()=>'{"name": "John Doe"}',"application/x-httpd-php":()=>"<?php echo '<p>Hello World!</p>'; ?>","application/rtf":()=>String.raw`{\rtf1\adeflang1025\ansi\ansicpg1252\uc1`,"application/x-sh":()=>'echo "Hello World!"',"application/xhtml+xml":()=>"<p>content</p>","application/*":()=>Vd(25).toString("binary")},Yc,jO;const Zo=new(jO=class extends qd{constructor(){super(...arguments);Rs(this,Yc,{...Ske,...wke,..._ke,...xke,...Ake});H(this,"data",{...Ut(this,Yc)})}get defaults(){return{...Ut(this,Yc)}}},Yc=new WeakMap,jO),PM=(t,e)=>{if(typeof e=="function")return Zo.register(t,e);if(e===null)return Zo.unregister(t);const r=t.split(";").at(0),n=`${r.split("/").at(0)}/*`;return Zo.get(t)||Zo.get(r)||Zo.get(n)};PM.getDefaults=()=>Zo.defaults;var kM=PM;const ty=(t,e={})=>{const{maxLength:r,minLength:n}=e;let s=t;if(Number.isInteger(r)&&r>0&&(s=s.slice(0,r)),Number.isInteger(n)&&n>0){let i=0;for(;s.length<n;)s+=s[i++%s.length]}return s};var Oke=(t,{sample:e}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:s}=t,{pattern:i,format:o}=t,a=RM(r)||AC;let c;return c=typeof i=="string"?ty((l=>{try{const p=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),f=l.replace(p,"100"),m=new G$(f);return m.max=100,m.gen()}catch{return"string"}})(i),t):typeof o=="string"?(l=>{const{format:p}=l,f=zd(p);return typeof f=="function"?f(l):"string"})(t):ks(s)&&typeof n=="string"&&e!==void 0?Array.isArray(e)||typeof e=="object"?JSON.stringify(e):ty(String(e),t):typeof n=="string"?(l=>{const{contentMediaType:p}=l,f=kM(p);return typeof f=="function"?f(l):"string"})(t):ty("string",t),a(c)};const jM=(t,e={})=>{const{minimum:r,maximum:n,exclusiveMinimum:s,exclusiveMaximum:i}=e,{multipleOf:o}=e,a=Number.isInteger(t)?1:Number.EPSILON;let c=typeof r=="number"?r:null,l=typeof n=="number"?n:null,p=t;if(typeof s=="number"&&(c=c!==null?Math.max(c,s+a):s+a),typeof i=="number"&&(l=l!==null?Math.min(l,i-a):i-a),p=c>l&&t||c||l||p,typeof o=="number"&&o>0){const f=p%o;p=f===0?p:p+o-f}return p};var Cke=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:s}=n,i=zd(s);return typeof i=="function"?i(n):0})(t):0,jM(r,t)},$ke=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:s}=n,i=zd(s);if(typeof i=="function")return i(n);switch(s){case"int32":return CM();case"int64":return $M()}return 0})(t):0,jM(r,t)},Tke=t=>typeof t.default!="boolean"||t.default,up=new Proxy({array:MPe,object:DPe,string:Oke,number:Cke,integer:$ke,boolean:Tke,null:()=>null},{get:(t,e)=>typeof e=="string"&&Object.hasOwn(t,e)?t[e]:()=>`Unknown Type: ${e}`});const AO=["array","object","number","integer","string","boolean","null"],Ec=t=>{if(!Un(t))return!1;const{examples:e,example:r,default:n}=t;return!!(Array.isArray(e)&&e.length>=1)||n!==void 0||r!==void 0},V0=t=>{if(!Un(t))return null;const{examples:e,example:r,default:n}=t;return Array.isArray(e)&&e.length>=1?e.at(0):n!==void 0?n:r!==void 0?r:void 0},xf={array:["items","prefixItems","contains","maxContains","minContains","maxItems","minItems","uniqueItems","unevaluatedItems"],object:["properties","additionalProperties","patternProperties","propertyNames","minProperties","maxProperties","required","dependentSchemas","dependentRequired","unevaluatedProperties"],string:["pattern","format","minLength","maxLength","contentEncoding","contentMediaType","contentSchema"],integer:["minimum","maximum","exclusiveMinimum","exclusiveMaximum","multipleOf"]};xf.number=xf.integer;const ry="string",OO=t=>t===void 0?null:t===null?"null":Array.isArray(t)?"array":Number.isInteger(t)?"integer":typeof t,Mp=t=>{if(Array.isArray(t)&&t.length>=1){if(t.includes("array"))return"array";if(t.includes("object"))return"object";{const e=t.filter(n=>n!=="null"),r=kp(e.length>0?e:t);if(AO.includes(r))return r}}return AO.includes(t)?t:null},q0=(t,e=new WeakSet)=>{if(!Un(t)||e.has(t))return ry;e.add(t);let{type:r,const:n}=t;if(r=Mp(r),typeof r!="string"){const s=Object.keys(xf);e:for(let i=0;i<s.length;i+=1){const o=s[i],a=xf[o];for(let c=0;c<a.length;c+=1){const l=a[c];if(Object.hasOwn(t,l)){r=o;break e}}}}if(typeof r!="string"&&n!==void 0){const s=OO(n);r=typeof s=="string"?s:r}if(typeof r!="string"){const s=l=>{if(Array.isArray(t[l])){const p=t[l].map(f=>q0(f,e));return Mp(p)}return null},i=s("allOf"),o=s("anyOf"),a=s("oneOf"),c=t.not?q0(t.not,e):null;(i||o||a||c)&&(r=Mp([i,o,a,c].filter(Boolean)))}if(typeof r!="string"&&Ec(t)){const s=V0(t),i=OO(s);r=typeof i=="string"?i:r}return e.delete(t),r||ry},CO=t=>q0(t),ny=t=>Ji(t)?(e=>e===!1?{not:{}}:{})(t):Un(t)?t:{},Sc=(t,e,r={})=>{if(Ji(t)&&t===!0)return!0;if(Ji(t)&&t===!1)return!1;if(Ji(e)&&e===!0)return!0;if(Ji(e)&&e===!1)return!1;if(!ks(t))return e;if(!ks(e))return t;const n={...e,...t};if(e.type&&t.type&&Array.isArray(e.type)&&typeof e.type=="string"){const s=xo(e.type).concat(t.type);n.type=Array.from(new Set(s))}if(Array.isArray(e.required)&&Array.isArray(t.required)&&(n.required=[...new Set([...t.required,...e.required])]),e.properties&&t.properties){const s=new Set([...Object.keys(e.properties),...Object.keys(t.properties)]);n.properties={};for(const i of s){const o=e.properties[i]||{},a=t.properties[i]||{};o.readOnly&&!r.includeReadOnly||o.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter(c=>c!==i):n.properties[i]=Sc(a,o,r)}}return ks(e.items)&&ks(t.items)&&(n.items=Sc(t.items,e.items,r)),ks(e.contains)&&ks(t.contains)&&(n.contains=Sc(t.contains,e.contains,r)),ks(e.contentSchema)&&ks(t.contentSchema)&&(n.contentSchema=Sc(t.contentSchema,e.contentSchema,r)),n};var Qo=Sc;const cr=(t,e={},r=void 0,n=!1)=>{var V,J,F,Q,se,re,ce,ue,oe;if(t==null&&r===void 0)return;typeof(t==null?void 0:t.toJS)=="function"&&(t=t.toJS()),t=ny(t);let s=r!==void 0||Ec(t);const i=!s&&Array.isArray(t.oneOf)&&t.oneOf.length>0,o=!s&&Array.isArray(t.anyOf)&&t.anyOf.length>0;if(!s&&(i||o)){const G=ny(kp(i?t.oneOf:t.anyOf));!(t=Qo(t,G,e)).xml&&G.xml&&(t.xml=G.xml),Ec(t)&&Ec(G)&&(s=!0)}const a={};let{xml:c,properties:l,additionalProperties:p,items:f,contains:m}=t||{},d=CO(t),{includeReadOnly:g,includeWriteOnly:v}=e;c=c||{};let y,{name:E,prefix:S,namespace:w}=c,x={};Object.hasOwn(t,"type")||(t.type=d),n&&(E=E||"notagname",y=(S?`${S}:`:"")+E,w)&&(a[S?`xmlns:${S}`:"xmlns"]=w),n&&(x[y]=[]);const I=zi(l);let T,D=0;const B=()=>Number.isInteger(t.maxProperties)&&t.maxProperties>0&&D>=t.maxProperties,P=G=>!(Number.isInteger(t.maxProperties)&&t.maxProperties>0)||!B()&&(!(ie=>!Array.isArray(t.required)||t.required.length===0||!t.required.includes(ie))(G)||t.maxProperties-D-(()=>{if(!Array.isArray(t.required)||t.required.length===0)return 0;let ie=0;return n?t.required.forEach(pe=>ie+=x[pe]===void 0?0:1):t.required.forEach(pe=>{var X;ie+=((X=x[y])==null?void 0:X.find(le=>le[pe]!==void 0))===void 0?0:1}),t.required.length-ie})()>0);if(T=n?(G,ie=void 0)=>{if(t&&I[G]){if(I[G].xml=I[G].xml||{},I[G].xml.attribute){const X=Array.isArray(I[G].enum)?kp(I[G].enum):void 0;if(Ec(I[G]))a[I[G].xml.name||G]=V0(I[G]);else if(X!==void 0)a[I[G].xml.name||G]=X;else{const le=ny(I[G]),q=CO(le),N=I[G].xml.name||G;if(q==="array"){const M=cr(I[G],e,ie,!1);a[N]=M.map(ae=>gs(ae)?"UnknownTypeObject":Array.isArray(ae)?"UnknownTypeArray":ae).join(" ")}else a[N]=q==="object"?"UnknownTypeObject":up[q](le)}return}I[G].xml.name=I[G].xml.name||G}else I[G]||p===!1||(I[G]={xml:{name:G}});let pe=cr(I[G],e,ie,n);P(G)&&(D++,Array.isArray(pe)?x[y]=x[y].concat(pe):x[y].push(pe))}:(G,ie)=>{var pe;if(P(G)){if(gs((pe=t.discriminator)==null?void 0:pe.mapping)&&t.discriminator.propertyName===G&&typeof t.$$ref=="string"){for(const X in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[X])!==-1){x[G]=X;break}}else x[G]=cr(I[G],e,ie,n);D++}},s){let G;if(G=r!==void 0?r:V0(t),!n){if(typeof G=="number"&&d==="string")return`${G}`;if(typeof G!="string"||d==="string")return G;try{return JSON.parse(G)}catch{return G}}if(d==="array"){if(!Array.isArray(G)){if(typeof G=="string")return G;G=[G]}let ie=[];return Un(f)&&(f.xml=f.xml||c||{},f.xml.name=f.xml.name||c.name,ie=G.map(pe=>cr(f,e,pe,n))),Un(m)&&(m.xml=m.xml||c||{},m.xml.name=m.xml.name||c.name,ie=[cr(m,e,void 0,n),...ie]),ie=up.array(t,{sample:ie}),c.wrapped?(x[y]=ie,hs(a)||x[y].push({_attr:a})):x=ie,x}if(d==="object"){if(typeof G=="string")return G;for(const ie in G)Object.hasOwn(G,ie)&&((V=I[ie])!=null&&V.readOnly&&!g||(J=I[ie])!=null&&J.writeOnly&&!v||((Q=(F=I[ie])==null?void 0:F.xml)!=null&&Q.attribute?a[I[ie].xml.name||ie]=G[ie]:T(ie,G[ie])));return hs(a)||x[y].push({_attr:a}),x}return x[y]=hs(a)?G:[{_attr:a},G],x}if(d==="array"){let G=[];if(Un(m))if(n&&(m.xml=m.xml||t.xml||{},m.xml.name=m.xml.name||c.name),Array.isArray(m.anyOf)){const{anyOf:ie,...pe}=f;G.push(...m.anyOf.map(X=>cr(Qo(X,pe,e),e,void 0,n)))}else if(Array.isArray(m.oneOf)){const{oneOf:ie,...pe}=f;G.push(...m.oneOf.map(X=>cr(Qo(X,pe,e),e,void 0,n)))}else{if(!(!n||n&&c.wrapped))return cr(m,e,void 0,n);G.push(cr(m,e,void 0,n))}if(Un(f))if(n&&(f.xml=f.xml||t.xml||{},f.xml.name=f.xml.name||c.name),Array.isArray(f.anyOf)){const{anyOf:ie,...pe}=f;G.push(...f.anyOf.map(X=>cr(Qo(X,pe,e),e,void 0,n)))}else if(Array.isArray(f.oneOf)){const{oneOf:ie,...pe}=f;G.push(...f.oneOf.map(X=>cr(Qo(X,pe,e),e,void 0,n)))}else{if(!(!n||n&&c.wrapped))return cr(f,e,void 0,n);G.push(cr(f,e,void 0,n))}return G=up.array(t,{sample:G}),n&&c.wrapped?(x[y]=G,hs(a)||x[y].push({_attr:a}),x):G}if(d==="object"){for(let G in I)Object.hasOwn(I,G)&&((se=I[G])!=null&&se.deprecated||(re=I[G])!=null&&re.readOnly&&!g||(ce=I[G])!=null&&ce.writeOnly&&!v||T(G));if(n&&a&&x[y].push({_attr:a}),B())return x;if(Ji(p)&&p)n?x[y].push({additionalProp:"Anything can be here"}):x.additionalProp1={},D++;else if(Un(p)){const G=p,ie=cr(G,e,void 0,n);if(n&&typeof((ue=G==null?void 0:G.xml)==null?void 0:ue.name)=="string"&&((oe=G==null?void 0:G.xml)==null?void 0:oe.name)!=="notagname")x[y].push(ie);else{const pe=(G==null?void 0:G["x-additionalPropertiesName"])||"additionalProp",X=Number.isInteger(t.minProperties)&&t.minProperties>0&&D<t.minProperties?t.minProperties-D:3;for(let le=1;le<=X;le++){if(B())return x;if(n){const q={};q[pe+le]=ie.notagname,x[y].push(q)}else x[pe+le]=ie;D++}}}return x}let Z;if(t.const!==void 0)Z=t.const;else if(t&&Array.isArray(t.enum))Z=kp(xo(t.enum));else{const G=Un(t.contentSchema)?cr(t.contentSchema,e,void 0,n):void 0;Z=up[d](t,{sample:G})}return n?(x[y]=hs(a)?Z:[{_attr:a},Z],x):Z},NM=(t,e,r)=>{const n=cr(t,e,r,!0);if(n)return typeof n=="string"?n:dj()(n,{declaration:!0,indent:" "})},MM=(t,e,r)=>cr(t,e,r,!1),DM=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],Ike=wu(NM,DM),Rke=wu(MM,DM);var Xc,NO;const $O=new(NO=class extends qd{constructor(){super(...arguments);Rs(this,Xc,{});H(this,"data",{...Ut(this,Xc)})}get defaults(){return{...Ut(this,Xc)}}},Xc=new WeakMap,NO);var Pke=(t,e)=>(e!==void 0&&$O.register(t,e),$O.get(t));const kke=[{when:/json/,shouldStringifyTypes:["string"]}],jke=["object"];var Nke=t=>(e,r,n,s)=>{const{fn:i}=t(),o=i.jsonSchema202012.memoizedSampleFromSchema(e,r,s),a=typeof o,c=kke.reduce((l,p)=>p.when.test(n)?[...l,...p.shouldStringifyTypes]:l,jke);return GC(c,l=>l===a)?JSON.stringify(o,null,2):o},Mke=t=>(e,r,n,s)=>{const{fn:i}=t(),o=i.jsonSchema202012.getJsonSampleSchema(e,r,n,s);let a;try{a=xn.dump(xn.load(o),{lineWidth:-1},{schema:ha}),a[a.length-1]===`
|
|
255
|
+
`&&(a=a.slice(0,a.length-1))}catch(c){return console.error(c),"error: could not generate yaml example"}return a.replace(/\t/g," ")},Dke=t=>(e,r,n)=>{const{fn:s}=t();if(e&&!e.xml&&(e.xml={}),e&&!e.xml.name){if(!e.$$ref&&(e.type||e.items||e.properties||e.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
|
|
256
|
+
<!-- XML example cannot be generated; root element name is undefined -->`;if(e.$$ref){let i=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=i[1]}}return s.jsonSchema202012.memoizedCreateXMLExample(e,r,n)},Fke=t=>(e,r="",n={},s=void 0)=>{const{fn:i}=t();return typeof(e==null?void 0:e.toJS)=="function"&&(e=e.toJS()),typeof(s==null?void 0:s.toJS)=="function"&&(s=s.toJS()),/xml/.test(r)?i.jsonSchema202012.getXmlSampleSchema(e,n,s):/(yaml|yml)/.test(r)?i.jsonSchema202012.getYamlSampleSchema(e,n,r,s):i.jsonSchema202012.getJsonSampleSchema(e,n,r,s)},FM=({getSystem:t})=>{const e=Nke(t),r=Mke(t),n=Dke(t),s=Fke(t);return{fn:{jsonSchema202012:{sampleFromSchema:MM,sampleFromSchemaGeneric:cr,sampleOptionAPI:Pke,sampleEncoderAPI:RM,sampleFormatAPI:zd,sampleMediaTypeAPI:kM,createXMLExample:NM,memoizedSampleFromSchema:Rke,memoizedCreateXMLExample:Ike,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:s,mergeJsonSchema:Qo,foldType:Mp}}}};function BM(){return[gN,B0,OM,FM,GRe,CPe]}var Bke=t=>()=>({fn:t.fn,components:t.components}),Lke=t=>{const e=Jc()({layout:{layout:t.layout,filter:t.filter},spec:{spec:"",url:t.url},requestSnippets:t.requestSnippets},t.initialState);if(t.initialState)for(const[r,n]of Object.entries(t.initialState))n===void 0&&delete e[r];return{system:{configs:t.configs},plugins:t.presets,state:e}},Uke=()=>t=>{const e=t.queryConfigEnabled?(()=>{const r=new URLSearchParams(Pt.location.search);return Object.fromEntries(r)})():{};return Object.entries(e).reduce((r,[n,s])=>(n==="config"?r.configUrl=s:n==="urls.primaryName"?r[n]=s:r=Z$(r,n,s),r),{})},Vke=({url:t,system:e})=>async r=>{var s;if(!t)return{};if(typeof((s=e.configsActions)==null?void 0:s.getConfigByUrl)!="function")return{};const n=(()=>{const i={};return i.promise=new Promise((o,a)=>{i.resolve=o,i.reject=a}),i})();return e.configsActions.getConfigByUrl({url:t,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},i=>{n.resolve(i)}),n.promise},qke=()=>()=>{const t={};return globalThis.location&&(t.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),t},Vt=Object.freeze({dom_id:null,domNode:null,spec:{},url:"",urls:null,configUrl:null,layout:"BaseLayout",docExpansion:"list",maxDisplayedTags:-1,filter:!1,validatorUrl:"https://validator.swagger.io/validator",oauth2RedirectUrl:void 0,persistAuthorization:!1,configs:{},displayOperationId:!1,displayRequestDuration:!1,deepLinking:!1,tryItOutEnabled:!1,requestInterceptor:t=>(t.curlOptions=[],t),responseInterceptor:t=>t,showMutatedRequest:!0,defaultModelRendering:"example",defaultModelExpandDepth:1,defaultModelsExpandDepth:1,showExtensions:!1,showCommonExtensions:!1,withCredentials:!1,requestSnippetsEnabled:!1,requestSnippets:{generators:{curl_bash:{title:"cURL (bash)",syntax:"bash"},curl_powershell:{title:"cURL (PowerShell)",syntax:"powershell"},curl_cmd:{title:"cURL (CMD)",syntax:"bash"}},defaultExpanded:!0,languages:null},supportedSubmitMethods:["get","put","post","delete","options","head","patch","trace"],queryConfigEnabled:!1,presets:[BM],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"],uncaughtExceptionHandler:null}),pp=(t,e=[])=>Array.isArray(t)?t:e,yn=(t,e=!1)=>t===!0||t==="true"||t===1||t==="1"||t!==!1&&t!=="false"&&t!==0&&t!=="0"&&e,zke=t=>t===null||t==="null"?null:t,Jke=t=>{const e=String(t);return yn(t,e)},TO=(t,e)=>typeof t=="function"?t:e,Wke=t=>Array.isArray(t)?t:null,fp=t=>typeof t=="function"?t:null,sy=t=>t===null||t==="null"?null:String(t),iy=(t,e=-1)=>{const r=parseInt(t,10);return Number.isNaN(r)?e:r},Go=(t,e={})=>gs(t)?t:e,IO=t=>typeof t=="function"||typeof t=="string"?t:null,Yo=t=>String(t),Hke=(t,e)=>gs(t)?t:t===!1||t==="false"||t===0||t==="0"?{activated:!1}:e,Kke=t=>t===void 0||t==="undefined"?void 0:String(t),LM={components:{typeCaster:Go},configs:{typeCaster:Go},configUrl:{typeCaster:sy},deepLinking:{typeCaster:yn,defaultValue:Vt.deepLinking},defaultModelExpandDepth:{typeCaster:iy,defaultValue:Vt.defaultModelExpandDepth},defaultModelRendering:{typeCaster:Yo},defaultModelsExpandDepth:{typeCaster:iy,defaultValue:Vt.defaultModelsExpandDepth},displayOperationId:{typeCaster:yn,defaultValue:Vt.displayOperationId},displayRequestDuration:{typeCaster:yn,defaultValue:Vt.displayRequestDuration},docExpansion:{typeCaster:Yo},dom_id:{typeCaster:sy},domNode:{typeCaster:zke},fileUploadMediaTypes:{typeCaster:pp,defaultValue:Vt.fileUploadMediaTypes},filter:{typeCaster:Jke},fn:{typeCaster:Go},initialState:{typeCaster:Go},layout:{typeCaster:Yo},maxDisplayedTags:{typeCaster:iy,defaultValue:Vt.maxDisplayedTags},modelPropertyMacro:{typeCaster:fp},oauth2RedirectUrl:{typeCaster:Kke},onComplete:{typeCaster:fp},operationsSorter:{typeCaster:IO},paramaterMacro:{typeCaster:fp},persistAuthorization:{typeCaster:yn,defaultValue:Vt.persistAuthorization},plugins:{typeCaster:pp,defaultValue:Vt.plugins},presets:{typeCaster:pp,defaultValue:Vt.presets},requestInterceptor:{typeCaster:TO,defaultValue:Vt.requestInterceptor},requestSnippets:{typeCaster:Go,defaultValue:Vt.requestSnippets},requestSnippetsEnabled:{typeCaster:yn,defaultValue:Vt.requestSnippetsEnabled},responseInterceptor:{typeCaster:TO,defaultValue:Vt.responseInterceptor},showCommonExtensions:{typeCaster:yn,defaultValue:Vt.showCommonExtensions},showExtensions:{typeCaster:yn,defaultValue:Vt.showExtensions},showMutatedRequest:{typeCaster:yn,defaultValue:Vt.showMutatedRequest},spec:{typeCaster:Go,defaultValue:Vt.spec},supportedSubmitMethods:{typeCaster:pp,defaultValue:Vt.supportedSubmitMethods},syntaxHighlight:{typeCaster:Hke,defaultValue:Vt.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:yn,defaultValue:Vt.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:Yo},tagsSorter:{typeCaster:IO},tryItOutEnabled:{typeCaster:yn,defaultValue:Vt.tryItOutEnabled},url:{typeCaster:Yo},urls:{typeCaster:Wke},"urls.primaryName":{typeCaster:Yo},validatorUrl:{typeCaster:sy},withCredentials:{typeCaster:yn,defaultValue:Vt.withCredentials},uncaughtExceptionHandler:{typeCaster:fp}},UM=t=>Object.entries(LM).reduce((e,[r,{typeCaster:n,defaultValue:s}])=>{if($2e(e,r)){const i=n(Ey(e,r),s);e=tne(r,i,e)}return e},{...t}),Gke=(t,...e)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const s=[];for(const o of e){const a={...o};Object.hasOwn(a,"domNode")&&(r=a.domNode,delete a.domNode),Object.hasOwn(a,"urls.primaryName")?(n=a["urls.primaryName"],delete a["urls.primaryName"]):Array.isArray(a.urls)&&Object.hasOwn(a.urls,"primaryName")&&(n=a.urls.primaryName,delete a.urls.primaryName),s.push(a)}const i=Jc()(t,...s);return r!==Symbol.for("domNode")&&(i.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(i.urls)&&(i.urls.primaryName=n),UM(i)};function hi(t){const e=Uke()(t),r=qke()(),n=hi.config.merge({},hi.config.defaults,r,t,e),s=Lke(n),i=Bke(n),o=new qk(s);o.register([n.plugins,i]);const a=o.getSystem(),c=f=>{o.setConfigs(f),a.configsActions.loaded()},l=f=>{!e.url&&typeof f.spec=="object"&&Object.keys(f.spec).length>0?(a.specActions.updateUrl(""),a.specActions.updateLoadingStatus("success"),a.specActions.updateSpec(JSON.stringify(f.spec))):typeof a.specActions.download=="function"&&f.url&&!f.urls&&(a.specActions.updateUrl(f.url),a.specActions.download(f.url))},p=f=>{if(f.domNode)a.render(f.domNode,"App");else if(f.dom_id){const m=document.querySelector(f.dom_id);a.render(m,"App")}else f.dom_id===null||f.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:f}=n,m=await Vke({url:f,system:a})(n),d=hi.config.merge({},n,m,e);c(d),m!==null&&l(d),p(d)})(),a):(c(n),l(n),p(n),a)}hi.System=qk,hi.config={defaults:Vt,merge:Gke,typeCast:UM,typeCastMappings:LM},hi.presets={base:gN,apis:BM},hi.plugins={Auth:Jk,Configs:Wk,DeepLining:Hk,Err:Gk,Filter:Yk,Icons:Xk,JSONSchema5:hj,JSONSchema5Samples:bj,JSONSchema202012:OM,JSONSchema202012Samples:FM,Layout:Qk,Logs:ej,OpenAPI30:B0,OpenAPI31:B0,OnComplete:tj,RequestSnippets:sj,Spec:Uj,SwaggerClient:Vj,Util:qj,View:zj,ViewLegacy:Jj,DownloadUrl:Wj,SyntaxHighlighting:Hj,Versions:Kj,SafeRender:Xj};var mi=hi;const{config:Ot}=mi,RO=t=>{const e=be.useRef();return be.useEffect(()=>{e.current=t},[t]),e.current},Jd=({spec:t=Ot.defaults.spec,url:e=Ot.defaults.url,layout:r=Ot.defaults.layout,requestInterceptor:n=Ot.defaults.requestInterceptor,responseInterceptor:s=Ot.defaults.responseInterceptor,supportedSubmitMethods:i=Ot.defaults.supportedSubmitMethods,queryConfigEnabled:o=Ot.defaults.queryConfigEnabled,plugins:a=Ot.defaults.plugins,displayOperationId:c=Ot.defaults.displayOperationId,showMutatedRequest:l=Ot.defaults.showMutatedRequest,docExpansion:p=Ot.defaults.docExpansion,defaultModelExpandDepth:f=Ot.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:m=Ot.defaults.defaultModelsExpandDepth,defaultModelRendering:d=Ot.defaults.defaultModelRendering,presets:g=Ot.defaults.presets,deepLinking:v=Ot.defaults.deepLinking,showExtensions:y=Ot.defaults.showExtensions,showCommonExtensions:E=Ot.defaults.showCommonExtensions,filter:S=Ot.defaults.filter,requestSnippetsEnabled:w=Ot.defaults.requestSnippetsEnabled,requestSnippets:x=Ot.defaults.requestSnippets,tryItOutEnabled:I=Ot.defaults.tryItOutEnabled,displayRequestDuration:T=Ot.defaults.displayRequestDuration,withCredentials:D=Ot.defaults.withCredentials,persistAuthorization:B=Ot.defaults.persistAuthorization,oauth2RedirectUrl:P=Ot.defaults.oauth2RedirectUrl,onComplete:Z=null,initialState:V=Ot.defaults.initialState,uncaughtExceptionHandler:J=Ot.defaults.uncaughtExceptionHandler})=>{const[F,Q]=be.useState(null),se=F==null?void 0:F.getComponent("App","root"),re=RO(t),ce=RO(e);return be.useEffect(()=>{const ue=mi({plugins:a,spec:t,url:e,layout:r,defaultModelsExpandDepth:m,defaultModelRendering:d,presets:[mi.presets.apis,...g],requestInterceptor:n,responseInterceptor:s,onComplete:()=>{typeof Z=="function"&&Z(ue)},docExpansion:p,supportedSubmitMethods:i,queryConfigEnabled:o,defaultModelExpandDepth:f,displayOperationId:c,tryItOutEnabled:I,displayRequestDuration:T,requestSnippetsEnabled:w,requestSnippets:x,showMutatedRequest:l,deepLinking:v,showExtensions:y,showCommonExtensions:E,filter:S,persistAuthorization:B,withCredentials:D,initialState:V,uncaughtExceptionHandler:J,...typeof P=="string"?{oauth2RedirectUrl:P}:{}});Q(ue)},[]),be.useEffect(()=>{if(F){const ue=F.specSelectors.url();(e!==ue||e!==ce)&&(F.specActions.updateSpec(""),e&&(F.specActions.updateUrl(e),F.specActions.download(e)))}},[F,e]),be.useEffect(()=>{if(F){const ue=F.specSelectors.specStr();if(t&&t!==mi.config.defaults.spec&&(t!==ue||t!==re)){const oe=typeof t=="object"?JSON.stringify(t):t;F.specActions.updateSpec(oe)}}},[F,t]),se?u.createElement(se,null):null};Jd.System=mi.System;Jd.presets=mi.presets;Jd.plugins=mi.plugins;Jd.config=mi.config;export{Jd as default};
|