harperdb 4.7.3 → 4.7.5

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.
Files changed (41) hide show
  1. package/README.md +1 -1
  2. package/bin/harperdb.js +80 -80
  3. package/bin/lite.js +75 -75
  4. package/components/EntryHandler.d.ts +2 -1
  5. package/components/Scope.d.ts +7 -0
  6. package/index.d.ts +3 -1
  7. package/launchServiceScripts/launchNatsIngestService.js +75 -75
  8. package/launchServiceScripts/launchNatsReplyService.js +75 -75
  9. package/launchServiceScripts/launchUpdateNodes4-0-0.js +75 -75
  10. package/npm-shrinkwrap.json +268 -268
  11. package/package.json +2 -2
  12. package/resources/DatabaseTransaction.d.ts +8 -0
  13. package/resources/IterableEventQueue.d.ts +9 -22
  14. package/resources/RequestTarget.d.ts +3 -29
  15. package/resources/ResourceInterface.d.ts +67 -39
  16. package/resources/Table.d.ts +27 -60
  17. package/resources/blob.d.ts +3 -4
  18. package/resources/tracked.d.ts +6 -6
  19. package/security/user.d.ts +81 -0
  20. package/server/jobs/jobProcess.js +75 -75
  21. package/server/operationsServer.d.ts +2 -2
  22. package/server/replication/knownNodes.d.ts +3 -2
  23. package/server/threads/threadServer.js +77 -77
  24. package/studio/web/assets/index-CNPtE0XQ.js +601 -0
  25. package/studio/web/assets/index-DAAAZCZd.css +4 -0
  26. package/studio/web/assets/{index-6-gJ5WC3.js → index-Dn_IqWNq.js} +1 -1
  27. package/studio/web/assets/{index-CSgNoGnC.js → index-OhIVM2M0.js} +10 -10
  28. package/studio/web/assets/{index-C03Y4API.css → index-YHth6Ryl.css} +1 -1
  29. package/studio/web/assets/index.lazy-D173BYf8.js +287 -0
  30. package/studio/web/assets/{profiler-CM1hwYor.js → profiler-DjvgK9z4.js} +1 -1
  31. package/studio/web/assets/{react-redux-Btk0svtM.js → react-redux-DQ-bSEyM.js} +1 -1
  32. package/studio/web/assets/{startRecording-DnAWdg8O.js → startRecording-DGFXrb7c.js} +1 -1
  33. package/studio/web/index.html +2 -2
  34. package/studio/web/running.css +148 -0
  35. package/studio/web/running.html +84 -72
  36. package/studio/web/running.js +111 -0
  37. package/utility/hdbTerms.d.ts +2 -0
  38. package/utility/scripts/restartHdb.js +75 -75
  39. package/studio/web/assets/index-BP6iofXy.css +0 -4
  40. package/studio/web/assets/index-CrWTuyjE.js +0 -490
  41. package/studio/web/assets/index.lazy-Cn-3uXi8.js +0 -287
@@ -0,0 +1,287 @@
1
+ import{at as f9,au as rF,av as p9,a6 as mr,a7 as Bi,a9 as bi,aw as D2,ax as d9,ay as h9,az as m9,aA as g9,aB as y9,aC as v9,aD as F2,aE as b9,aF as ot,aG as Lr,aH as nF,aI as Xn,aJ as Ri,aK as hr,aL as E9,aM as S9,aN as _9,aO as id,aP as w9,aQ as x9,aR as A9,aS as O9,aT as q2,ah as C9,aU as R9,aV as I9}from"./index-CNPtE0XQ.js";import{c as T9,a as P9,b as k9,d as j9,e as N9,f as M9,P as D9}from"./react-redux-DQ-bSEyM.js";function C_(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in t)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(t,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}const F9={fn:{requestSnippetGenerator_fetch:t=>{const e=new URL(t.get("url"));let r=!1;const n=t.get("headers");n&&n.size&&n.map((o,u)=>{r=r||/^content-type$/i.test(u)&&/^multipart\/form-data$/i.test(o)});let i=t.get("body");const s=t.get("method");if(i){if(r&&["POST","PUT","PATCH"].includes(s))return'throw new Error("Currently unsupported content-type: /^multipart\\/form-data$/i");';typeof i!="string"&&(i=JSON.stringify(i,null," "))}else!i&&s==="POST"&&(i="");const a="`"+(i||"").replace(/\\n/g,`
2
+ `).replace(/`/g,"\\`")+"`";return`const response = await fetch("${e.toString()}", {
3
+ method: "${t.get("method")}",${n&&n.size?`
4
+ headers: {
5
+ ${n.map((o,u)=>`"${u}": "${o}"`).valueSeq().join(`,
6
+ `)}
7
+ },`:""}${i?`
8
+ body: ${a},`:""}
9
+ });
10
+ const data = await response.json();
11
+ console.log(data);
12
+ `}}},q9=[F9],B9={generators:{fetch:{title:"Fetch",syntax:"javascript"}}};function $9({entityId:t,instanceClient:e}){return f9({queryKey:[t,"OpenAPI"],queryFn:async()=>{const{data:r}=await e.get("/api/openapi/rest");return r}})}async function L9({instanceClient:t,...e}){const{data:r}=await t.post("/",{operation:"set_configuration",...e});return r}function U9({onRestartedSuccessfully:t}={}){const e=rF(),r=p9(),[n,i]=mr.useState(!1);return{onConfigUpdate:mr.useCallback(async a=>{i(!0);let o=!1;const u={duration:6e4,action:{label:"Cancel",onClick:()=>{o=!0}}},l=Bi.loading("Restarting",{...u,description:bi.jsx(D2,{animated:!0,width:"0%"})}),c=e.entityType==="cluster"?await d9(e.entityId):null,p=e.entityType==="cluster"?c?.instances||[]:[{id:e.entityId,status:"RUNNING"}],h=e.entityType==="cluster"?p.filter(g=>g.status==="RUNNING").map(g=>h9({id:g.id,operationsUrl:m9(g)})).reverse():[e.instanceClient];let d=0;if(h.length)for(let g=0;g<h.length;g++){const y=h[g];if(!o){Bi.loading(`Updating Instance ${g+1} of ${h.length}`,{...u,id:l,description:bi.jsx(D2,{animated:!0,width:(g===0?0:g/h.length*100)+"%"})});try{await g9({instanceClient:y}),await L9({...a,instanceClient:y}),await y9({operation:"restart_service",replicated:!1,instanceClient:y}),d+=1}catch{g+1!==h.length&&(Bi.loading(`Failed Restarting Instance ${g+1} of ${h.length}`,{...u,id:l,description:"We will carry on momentarily."}),await v9(3e3))}}}if(i(!1),r.invalidateQueries({queryKey:[e.entityId,"get_configuration"]}),o)Bi.error("Cancelled",{id:l,description:"The config update was partially cancelled.",duration:1e4,action:{label:"Dismiss",onClick:()=>Bi.dismiss()}});else if(p.length===d)t?.(),Bi.success("Success",{id:l,description:"Your configuration has been updated successfully!",duration:1e4,action:{label:"Dismiss",onClick:()=>Bi.dismiss()}});else{const g=F2(p.length,"instance","instances"),y=F2(d,'"RUNNING" instance was','"RUNNING" instances were');Bi.error("Error",{id:l,description:`Failed to fully update cluster.
13
+ `+([p.length===0&&"No instances were found within the cluster to restart.",d===0&&`No instances were in a "RUNNING" state of ${g}.`,p.length!==d&&`Only ${y} restarted of ${g}.`].filter(b9).shift()||""),duration:1e4,action:{label:"Dismiss",onClick:()=>Bi.dismiss()}})}},[e,t,r]),isPending:n}}var Zl={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var B2;function iF(){return B2||(B2=1,Zl.read=function(t,e,r,n,i){var s,a,o=i*8-n-1,u=(1<<o)-1,l=u>>1,c=-7,p=r?i-1:0,h=r?-1:1,d=t[e+p];for(p+=h,s=d&(1<<-c)-1,d>>=-c,c+=o;c>0;s=s*256+t[e+p],p+=h,c-=8);for(a=s&(1<<-c)-1,s>>=-c,c+=n;c>0;a=a*256+t[e+p],p+=h,c-=8);if(s===0)s=1-l;else{if(s===u)return a?NaN:(d?-1:1)*(1/0);a=a+Math.pow(2,n),s=s-l}return(d?-1:1)*a*Math.pow(2,s-n)},Zl.write=function(t,e,r,n,i,s){var a,o,u,l=s*8-i-1,c=(1<<l)-1,p=c>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=n?0:s-1,g=n?1:-1,y=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,a=c):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+p>=1?e+=h/u:e+=h*Math.pow(2,1-p),e*u>=2&&(a++,u/=2),a+p>=c?(o=0,a=c):a+p>=1?(o=(e*u-1)*Math.pow(2,i),a=a+p):(o=e*Math.pow(2,p-1)*Math.pow(2,i),a=0));i>=8;t[r+d]=o&255,d+=g,o/=256,i-=8);for(a=a<<i|o,l+=i;l>0;t[r+d]=a&255,d+=g,a/=256,l-=8);t[r+d-g]|=y*128}),Zl}var sF=iF();const V9=ot(sF),z9=C_({__proto__:null,default:V9},[sF]);var Ql={exports:{}},sd={},Oo={},$2;function aF(){if($2)return Oo;$2=1,Oo.byteLength=o,Oo.toByteArray=l,Oo.fromByteArray=h;for(var t=[],e=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=n.length;i<s;++i)t[i]=n[i],e[n.charCodeAt(i)]=i;e[45]=62,e[95]=63;function a(d){var g=d.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");y===-1&&(y=g);var v=y===g?0:4-y%4;return[y,v]}function o(d){var g=a(d),y=g[0],v=g[1];return(y+v)*3/4-v}function u(d,g,y){return(g+y)*3/4-y}function l(d){var g,y=a(d),v=y[0],E=y[1],b=new r(u(d,v,E)),_=0,w=E>0?v-4:v,S;for(S=0;S<w;S+=4)g=e[d.charCodeAt(S)]<<18|e[d.charCodeAt(S+1)]<<12|e[d.charCodeAt(S+2)]<<6|e[d.charCodeAt(S+3)],b[_++]=g>>16&255,b[_++]=g>>8&255,b[_++]=g&255;return E===2&&(g=e[d.charCodeAt(S)]<<2|e[d.charCodeAt(S+1)]>>4,b[_++]=g&255),E===1&&(g=e[d.charCodeAt(S)]<<10|e[d.charCodeAt(S+1)]<<4|e[d.charCodeAt(S+2)]>>2,b[_++]=g>>8&255,b[_++]=g&255),b}function c(d){return t[d>>18&63]+t[d>>12&63]+t[d>>6&63]+t[d&63]}function p(d,g,y){for(var v,E=[],b=g;b<y;b+=3)v=(d[b]<<16&16711680)+(d[b+1]<<8&65280)+(d[b+2]&255),E.push(c(v));return E.join("")}function h(d){for(var g,y=d.length,v=y%3,E=[],b=16383,_=0,w=y-v;_<w;_+=b)E.push(p(d,_,_+b>w?w:_+b));return v===1?(g=d[y-1],E.push(t[g>>2]+t[g<<4&63]+"==")):v===2&&(g=(d[y-2]<<8)+d[y-1],E.push(t[g>>10]+t[g>>4&63]+t[g<<2&63]+"=")),E.join("")}return Oo}/*!
14
+ * The buffer module from node.js, for the browser.
15
+ *
16
+ * @author Feross Aboukhadijeh <https://feross.org>
17
+ * @license MIT
18
+ */var L2;function W9(){return L2||(L2=1,(function(t){const e=aF(),r=iF(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=o,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.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 s(){try{const q=new Uint8Array(1),O={foo:function(){return 42}};return Object.setPrototypeOf(O,Uint8Array.prototype),Object.setPrototypeOf(q,O),q.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a(q){if(q>i)throw new RangeError('The value "'+q+'" is invalid for option "size"');const O=new Uint8Array(q);return Object.setPrototypeOf(O,o.prototype),O}function o(q,O,P){if(typeof q=="number"){if(typeof O=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(q)}return u(q,O,P)}o.poolSize=8192;function u(q,O,P){if(typeof q=="string")return h(q,O);if(ArrayBuffer.isView(q))return g(q);if(q==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof q);if(Y(q,ArrayBuffer)||q&&Y(q.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Y(q,SharedArrayBuffer)||q&&Y(q.buffer,SharedArrayBuffer)))return y(q,O,P);if(typeof q=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const H=q.valueOf&&q.valueOf();if(H!=null&&H!==q)return o.from(H,O,P);const se=v(q);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof q[Symbol.toPrimitive]=="function")return o.from(q[Symbol.toPrimitive]("string"),O,P);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof q)}o.from=function(q,O,P){return u(q,O,P)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function l(q){if(typeof q!="number")throw new TypeError('"size" argument must be of type number');if(q<0)throw new RangeError('The value "'+q+'" is invalid for option "size"')}function c(q,O,P){return l(q),q<=0?a(q):O!==void 0?typeof P=="string"?a(q).fill(O,P):a(q).fill(O):a(q)}o.alloc=function(q,O,P){return c(q,O,P)};function p(q){return l(q),a(q<0?0:E(q)|0)}o.allocUnsafe=function(q){return p(q)},o.allocUnsafeSlow=function(q){return p(q)};function h(q,O){if((typeof O!="string"||O==="")&&(O="utf8"),!o.isEncoding(O))throw new TypeError("Unknown encoding: "+O);const P=_(q,O)|0;let H=a(P);const se=H.write(q,O);return se!==P&&(H=H.slice(0,se)),H}function d(q){const O=q.length<0?0:E(q.length)|0,P=a(O);for(let H=0;H<O;H+=1)P[H]=q[H]&255;return P}function g(q){if(Y(q,Uint8Array)){const O=new Uint8Array(q);return y(O.buffer,O.byteOffset,O.byteLength)}return d(q)}function y(q,O,P){if(O<0||q.byteLength<O)throw new RangeError('"offset" is outside of buffer bounds');if(q.byteLength<O+(P||0))throw new RangeError('"length" is outside of buffer bounds');let H;return O===void 0&&P===void 0?H=new Uint8Array(q):P===void 0?H=new Uint8Array(q,O):H=new Uint8Array(q,O,P),Object.setPrototypeOf(H,o.prototype),H}function v(q){if(o.isBuffer(q)){const O=E(q.length)|0,P=a(O);return P.length===0||q.copy(P,0,0,O),P}if(q.length!==void 0)return typeof q.length!="number"||ne(q.length)?a(0):d(q);if(q.type==="Buffer"&&Array.isArray(q.data))return d(q.data)}function E(q){if(q>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return q|0}function b(q){return+q!=q&&(q=0),o.alloc(+q)}o.isBuffer=function(O){return O!=null&&O._isBuffer===!0&&O!==o.prototype},o.compare=function(O,P){if(Y(O,Uint8Array)&&(O=o.from(O,O.offset,O.byteLength)),Y(P,Uint8Array)&&(P=o.from(P,P.offset,P.byteLength)),!o.isBuffer(O)||!o.isBuffer(P))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(O===P)return 0;let H=O.length,se=P.length;for(let de=0,xe=Math.min(H,se);de<xe;++de)if(O[de]!==P[de]){H=O[de],se=P[de];break}return H<se?-1:se<H?1:0},o.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}},o.concat=function(O,P){if(!Array.isArray(O))throw new TypeError('"list" argument must be an Array of Buffers');if(O.length===0)return o.alloc(0);let H;if(P===void 0)for(P=0,H=0;H<O.length;++H)P+=O[H].length;const se=o.allocUnsafe(P);let de=0;for(H=0;H<O.length;++H){let xe=O[H];if(Y(xe,Uint8Array))de+xe.length>se.length?(o.isBuffer(xe)||(xe=o.from(xe)),xe.copy(se,de)):Uint8Array.prototype.set.call(se,xe,de);else if(o.isBuffer(xe))xe.copy(se,de);else throw new TypeError('"list" argument must be an Array of Buffers');de+=xe.length}return se};function _(q,O){if(o.isBuffer(q))return q.length;if(ArrayBuffer.isView(q)||Y(q,ArrayBuffer))return q.byteLength;if(typeof q!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof q);const P=q.length,H=arguments.length>2&&arguments[2]===!0;if(!H&&P===0)return 0;let se=!1;for(;;)switch(O){case"ascii":case"latin1":case"binary":return P;case"utf8":case"utf-8":return we(q).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P*2;case"hex":return P>>>1;case"base64":return j(q).length;default:if(se)return H?-1:we(q).length;O=(""+O).toLowerCase(),se=!0}}o.byteLength=_;function w(q,O,P){let H=!1;if((O===void 0||O<0)&&(O=0),O>this.length||((P===void 0||P>this.length)&&(P=this.length),P<=0)||(P>>>=0,O>>>=0,P<=O))return"";for(q||(q="utf8");;)switch(q){case"hex":return te(this,O,P);case"utf8":case"utf-8":return K(this,O,P);case"ascii":return Z(this,O,P);case"latin1":case"binary":return X(this,O,P);case"base64":return M(this,O,P);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ce(this,O,P);default:if(H)throw new TypeError("Unknown encoding: "+q);q=(q+"").toLowerCase(),H=!0}}o.prototype._isBuffer=!0;function S(q,O,P){const H=q[O];q[O]=q[P],q[P]=H}o.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 P=0;P<O;P+=2)S(this,P,P+1);return this},o.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 P=0;P<O;P+=4)S(this,P,P+3),S(this,P+1,P+2);return this},o.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 P=0;P<O;P+=8)S(this,P,P+7),S(this,P+1,P+6),S(this,P+2,P+5),S(this,P+3,P+4);return this},o.prototype.toString=function(){const O=this.length;return O===0?"":arguments.length===0?K(this,0,O):w.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(O){if(!o.isBuffer(O))throw new TypeError("Argument must be a Buffer");return this===O?!0:o.compare(this,O)===0},o.prototype.inspect=function(){let O="";const P=t.INSPECT_MAX_BYTES;return O=this.toString("hex",0,P).replace(/(.{2})/g,"$1 ").trim(),this.length>P&&(O+=" ... "),"<Buffer "+O+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(O,P,H,se,de){if(Y(O,Uint8Array)&&(O=o.from(O,O.offset,O.byteLength)),!o.isBuffer(O))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof O);if(P===void 0&&(P=0),H===void 0&&(H=O?O.length:0),se===void 0&&(se=0),de===void 0&&(de=this.length),P<0||H>O.length||se<0||de>this.length)throw new RangeError("out of range index");if(se>=de&&P>=H)return 0;if(se>=de)return-1;if(P>=H)return 1;if(P>>>=0,H>>>=0,se>>>=0,de>>>=0,this===O)return 0;let xe=de-se,Ze=H-P;const st=Math.min(xe,Ze),Pt=this.slice(se,de),ft=O.slice(P,H);for(let ae=0;ae<st;++ae)if(Pt[ae]!==ft[ae]){xe=Pt[ae],Ze=ft[ae];break}return xe<Ze?-1:Ze<xe?1:0};function A(q,O,P,H,se){if(q.length===0)return-1;if(typeof P=="string"?(H=P,P=0):P>2147483647?P=2147483647:P<-2147483648&&(P=-2147483648),P=+P,ne(P)&&(P=se?0:q.length-1),P<0&&(P=q.length+P),P>=q.length){if(se)return-1;P=q.length-1}else if(P<0)if(se)P=0;else return-1;if(typeof O=="string"&&(O=o.from(O,H)),o.isBuffer(O))return O.length===0?-1:I(q,O,P,H,se);if(typeof O=="number")return O=O&255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(q,O,P):Uint8Array.prototype.lastIndexOf.call(q,O,P):I(q,[O],P,H,se);throw new TypeError("val must be string, number or Buffer")}function I(q,O,P,H,se){let de=1,xe=q.length,Ze=O.length;if(H!==void 0&&(H=String(H).toLowerCase(),H==="ucs2"||H==="ucs-2"||H==="utf16le"||H==="utf-16le")){if(q.length<2||O.length<2)return-1;de=2,xe/=2,Ze/=2,P/=2}function st(ft,ae){return de===1?ft[ae]:ft.readUInt16BE(ae*de)}let Pt;if(se){let ft=-1;for(Pt=P;Pt<xe;Pt++)if(st(q,Pt)===st(O,ft===-1?0:Pt-ft)){if(ft===-1&&(ft=Pt),Pt-ft+1===Ze)return ft*de}else ft!==-1&&(Pt-=Pt-ft),ft=-1}else for(P+Ze>xe&&(P=xe-Ze),Pt=P;Pt>=0;Pt--){let ft=!0;for(let ae=0;ae<Ze;ae++)if(st(q,Pt+ae)!==st(O,ae)){ft=!1;break}if(ft)return Pt}return-1}o.prototype.includes=function(O,P,H){return this.indexOf(O,P,H)!==-1},o.prototype.indexOf=function(O,P,H){return A(this,O,P,H,!0)},o.prototype.lastIndexOf=function(O,P,H){return A(this,O,P,H,!1)};function T(q,O,P,H){P=Number(P)||0;const se=q.length-P;H?(H=Number(H),H>se&&(H=se)):H=se;const de=O.length;H>de/2&&(H=de/2);let xe;for(xe=0;xe<H;++xe){const Ze=parseInt(O.substr(xe*2,2),16);if(ne(Ze))return xe;q[P+xe]=Ze}return xe}function k(q,O,P,H){return U(we(O,q.length-P),q,P,H)}function D(q,O,P,H){return U(L(O),q,P,H)}function R(q,O,P,H){return U(j(O),q,P,H)}function $(q,O,P,H){return U(C(O,q.length-P),q,P,H)}o.prototype.write=function(O,P,H,se){if(P===void 0)se="utf8",H=this.length,P=0;else if(H===void 0&&typeof P=="string")se=P,H=this.length,P=0;else if(isFinite(P))P=P>>>0,isFinite(H)?(H=H>>>0,se===void 0&&(se="utf8")):(se=H,H=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const de=this.length-P;if((H===void 0||H>de)&&(H=de),O.length>0&&(H<0||P<0)||P>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");let xe=!1;for(;;)switch(se){case"hex":return T(this,O,P,H);case"utf8":case"utf-8":return k(this,O,P,H);case"ascii":case"latin1":case"binary":return D(this,O,P,H);case"base64":return R(this,O,P,H);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,O,P,H);default:if(xe)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),xe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M(q,O,P){return O===0&&P===q.length?e.fromByteArray(q):e.fromByteArray(q.slice(O,P))}function K(q,O,P){P=Math.min(q.length,P);const H=[];let se=O;for(;se<P;){const de=q[se];let xe=null,Ze=de>239?4:de>223?3:de>191?2:1;if(se+Ze<=P){let st,Pt,ft,ae;switch(Ze){case 1:de<128&&(xe=de);break;case 2:st=q[se+1],(st&192)===128&&(ae=(de&31)<<6|st&63,ae>127&&(xe=ae));break;case 3:st=q[se+1],Pt=q[se+2],(st&192)===128&&(Pt&192)===128&&(ae=(de&15)<<12|(st&63)<<6|Pt&63,ae>2047&&(ae<55296||ae>57343)&&(xe=ae));break;case 4:st=q[se+1],Pt=q[se+2],ft=q[se+3],(st&192)===128&&(Pt&192)===128&&(ft&192)===128&&(ae=(de&15)<<18|(st&63)<<12|(Pt&63)<<6|ft&63,ae>65535&&ae<1114112&&(xe=ae))}}xe===null?(xe=65533,Ze=1):xe>65535&&(xe-=65536,H.push(xe>>>10&1023|55296),xe=56320|xe&1023),H.push(xe),se+=Ze}return G(H)}const ee=4096;function G(q){const O=q.length;if(O<=ee)return String.fromCharCode.apply(String,q);let P="",H=0;for(;H<O;)P+=String.fromCharCode.apply(String,q.slice(H,H+=ee));return P}function Z(q,O,P){let H="";P=Math.min(q.length,P);for(let se=O;se<P;++se)H+=String.fromCharCode(q[se]&127);return H}function X(q,O,P){let H="";P=Math.min(q.length,P);for(let se=O;se<P;++se)H+=String.fromCharCode(q[se]);return H}function te(q,O,P){const H=q.length;(!O||O<0)&&(O=0),(!P||P<0||P>H)&&(P=H);let se="";for(let de=O;de<P;++de)se+=fe[q[de]];return se}function ce(q,O,P){const H=q.slice(O,P);let se="";for(let de=0;de<H.length-1;de+=2)se+=String.fromCharCode(H[de]+H[de+1]*256);return se}o.prototype.slice=function(O,P){const H=this.length;O=~~O,P=P===void 0?H:~~P,O<0?(O+=H,O<0&&(O=0)):O>H&&(O=H),P<0?(P+=H,P<0&&(P=0)):P>H&&(P=H),P<O&&(P=O);const se=this.subarray(O,P);return Object.setPrototypeOf(se,o.prototype),se};function ie(q,O,P){if(q%1!==0||q<0)throw new RangeError("offset is not uint");if(q+O>P)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(O,P,H){O=O>>>0,P=P>>>0,H||ie(O,P,this.length);let se=this[O],de=1,xe=0;for(;++xe<P&&(de*=256);)se+=this[O+xe]*de;return se},o.prototype.readUintBE=o.prototype.readUIntBE=function(O,P,H){O=O>>>0,P=P>>>0,H||ie(O,P,this.length);let se=this[O+--P],de=1;for(;P>0&&(de*=256);)se+=this[O+--P]*de;return se},o.prototype.readUint8=o.prototype.readUInt8=function(O,P){return O=O>>>0,P||ie(O,1,this.length),this[O]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(O,P){return O=O>>>0,P||ie(O,2,this.length),this[O]|this[O+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(O,P){return O=O>>>0,P||ie(O,2,this.length),this[O]<<8|this[O+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(O,P){return O=O>>>0,P||ie(O,4,this.length),(this[O]|this[O+1]<<8|this[O+2]<<16)+this[O+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(O,P){return O=O>>>0,P||ie(O,4,this.length),this[O]*16777216+(this[O+1]<<16|this[O+2]<<8|this[O+3])},o.prototype.readBigUInt64LE=Ne(function(O){O=O>>>0,Pe(O,"offset");const P=this[O],H=this[O+7];(P===void 0||H===void 0)&&Le(O,this.length-8);const se=P+this[++O]*2**8+this[++O]*2**16+this[++O]*2**24,de=this[++O]+this[++O]*2**8+this[++O]*2**16+H*2**24;return BigInt(se)+(BigInt(de)<<BigInt(32))}),o.prototype.readBigUInt64BE=Ne(function(O){O=O>>>0,Pe(O,"offset");const P=this[O],H=this[O+7];(P===void 0||H===void 0)&&Le(O,this.length-8);const se=P*2**24+this[++O]*2**16+this[++O]*2**8+this[++O],de=this[++O]*2**24+this[++O]*2**16+this[++O]*2**8+H;return(BigInt(se)<<BigInt(32))+BigInt(de)}),o.prototype.readIntLE=function(O,P,H){O=O>>>0,P=P>>>0,H||ie(O,P,this.length);let se=this[O],de=1,xe=0;for(;++xe<P&&(de*=256);)se+=this[O+xe]*de;return de*=128,se>=de&&(se-=Math.pow(2,8*P)),se},o.prototype.readIntBE=function(O,P,H){O=O>>>0,P=P>>>0,H||ie(O,P,this.length);let se=P,de=1,xe=this[O+--se];for(;se>0&&(de*=256);)xe+=this[O+--se]*de;return de*=128,xe>=de&&(xe-=Math.pow(2,8*P)),xe},o.prototype.readInt8=function(O,P){return O=O>>>0,P||ie(O,1,this.length),this[O]&128?(255-this[O]+1)*-1:this[O]},o.prototype.readInt16LE=function(O,P){O=O>>>0,P||ie(O,2,this.length);const H=this[O]|this[O+1]<<8;return H&32768?H|4294901760:H},o.prototype.readInt16BE=function(O,P){O=O>>>0,P||ie(O,2,this.length);const H=this[O+1]|this[O]<<8;return H&32768?H|4294901760:H},o.prototype.readInt32LE=function(O,P){return O=O>>>0,P||ie(O,4,this.length),this[O]|this[O+1]<<8|this[O+2]<<16|this[O+3]<<24},o.prototype.readInt32BE=function(O,P){return O=O>>>0,P||ie(O,4,this.length),this[O]<<24|this[O+1]<<16|this[O+2]<<8|this[O+3]},o.prototype.readBigInt64LE=Ne(function(O){O=O>>>0,Pe(O,"offset");const P=this[O],H=this[O+7];(P===void 0||H===void 0)&&Le(O,this.length-8);const se=this[O+4]+this[O+5]*2**8+this[O+6]*2**16+(H<<24);return(BigInt(se)<<BigInt(32))+BigInt(P+this[++O]*2**8+this[++O]*2**16+this[++O]*2**24)}),o.prototype.readBigInt64BE=Ne(function(O){O=O>>>0,Pe(O,"offset");const P=this[O],H=this[O+7];(P===void 0||H===void 0)&&Le(O,this.length-8);const se=(P<<24)+this[++O]*2**16+this[++O]*2**8+this[++O];return(BigInt(se)<<BigInt(32))+BigInt(this[++O]*2**24+this[++O]*2**16+this[++O]*2**8+H)}),o.prototype.readFloatLE=function(O,P){return O=O>>>0,P||ie(O,4,this.length),r.read(this,O,!0,23,4)},o.prototype.readFloatBE=function(O,P){return O=O>>>0,P||ie(O,4,this.length),r.read(this,O,!1,23,4)},o.prototype.readDoubleLE=function(O,P){return O=O>>>0,P||ie(O,8,this.length),r.read(this,O,!0,52,8)},o.prototype.readDoubleBE=function(O,P){return O=O>>>0,P||ie(O,8,this.length),r.read(this,O,!1,52,8)};function ue(q,O,P,H,se,de){if(!o.isBuffer(q))throw new TypeError('"buffer" argument must be a Buffer instance');if(O>se||O<de)throw new RangeError('"value" argument is out of bounds');if(P+H>q.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(O,P,H,se){if(O=+O,P=P>>>0,H=H>>>0,!se){const Ze=Math.pow(2,8*H)-1;ue(this,O,P,H,Ze,0)}let de=1,xe=0;for(this[P]=O&255;++xe<H&&(de*=256);)this[P+xe]=O/de&255;return P+H},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(O,P,H,se){if(O=+O,P=P>>>0,H=H>>>0,!se){const Ze=Math.pow(2,8*H)-1;ue(this,O,P,H,Ze,0)}let de=H-1,xe=1;for(this[P+de]=O&255;--de>=0&&(xe*=256);)this[P+de]=O/xe&255;return P+H},o.prototype.writeUint8=o.prototype.writeUInt8=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,1,255,0),this[P]=O&255,P+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,2,65535,0),this[P]=O&255,this[P+1]=O>>>8,P+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,2,65535,0),this[P]=O>>>8,this[P+1]=O&255,P+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,4,4294967295,0),this[P+3]=O>>>24,this[P+2]=O>>>16,this[P+1]=O>>>8,this[P]=O&255,P+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,4,4294967295,0),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4};function ye(q,O,P,H,se){Te(O,H,se,q,P,7);let de=Number(O&BigInt(4294967295));q[P++]=de,de=de>>8,q[P++]=de,de=de>>8,q[P++]=de,de=de>>8,q[P++]=de;let xe=Number(O>>BigInt(32)&BigInt(4294967295));return q[P++]=xe,xe=xe>>8,q[P++]=xe,xe=xe>>8,q[P++]=xe,xe=xe>>8,q[P++]=xe,P}function he(q,O,P,H,se){Te(O,H,se,q,P,7);let de=Number(O&BigInt(4294967295));q[P+7]=de,de=de>>8,q[P+6]=de,de=de>>8,q[P+5]=de,de=de>>8,q[P+4]=de;let xe=Number(O>>BigInt(32)&BigInt(4294967295));return q[P+3]=xe,xe=xe>>8,q[P+2]=xe,xe=xe>>8,q[P+1]=xe,xe=xe>>8,q[P]=xe,P+8}o.prototype.writeBigUInt64LE=Ne(function(O,P=0){return ye(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Ne(function(O,P=0){return he(this,O,P,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(O,P,H,se){if(O=+O,P=P>>>0,!se){const st=Math.pow(2,8*H-1);ue(this,O,P,H,st-1,-st)}let de=0,xe=1,Ze=0;for(this[P]=O&255;++de<H&&(xe*=256);)O<0&&Ze===0&&this[P+de-1]!==0&&(Ze=1),this[P+de]=(O/xe>>0)-Ze&255;return P+H},o.prototype.writeIntBE=function(O,P,H,se){if(O=+O,P=P>>>0,!se){const st=Math.pow(2,8*H-1);ue(this,O,P,H,st-1,-st)}let de=H-1,xe=1,Ze=0;for(this[P+de]=O&255;--de>=0&&(xe*=256);)O<0&&Ze===0&&this[P+de+1]!==0&&(Ze=1),this[P+de]=(O/xe>>0)-Ze&255;return P+H},o.prototype.writeInt8=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,1,127,-128),O<0&&(O=255+O+1),this[P]=O&255,P+1},o.prototype.writeInt16LE=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,2,32767,-32768),this[P]=O&255,this[P+1]=O>>>8,P+2},o.prototype.writeInt16BE=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,2,32767,-32768),this[P]=O>>>8,this[P+1]=O&255,P+2},o.prototype.writeInt32LE=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,4,2147483647,-2147483648),this[P]=O&255,this[P+1]=O>>>8,this[P+2]=O>>>16,this[P+3]=O>>>24,P+4},o.prototype.writeInt32BE=function(O,P,H){return O=+O,P=P>>>0,H||ue(this,O,P,4,2147483647,-2147483648),O<0&&(O=4294967295+O+1),this[P]=O>>>24,this[P+1]=O>>>16,this[P+2]=O>>>8,this[P+3]=O&255,P+4},o.prototype.writeBigInt64LE=Ne(function(O,P=0){return ye(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Ne(function(O,P=0){return he(this,O,P,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function re(q,O,P,H,se,de){if(P+H>q.length)throw new RangeError("Index out of range");if(P<0)throw new RangeError("Index out of range")}function W(q,O,P,H,se){return O=+O,P=P>>>0,se||re(q,O,P,4),r.write(q,O,P,H,23,4),P+4}o.prototype.writeFloatLE=function(O,P,H){return W(this,O,P,!0,H)},o.prototype.writeFloatBE=function(O,P,H){return W(this,O,P,!1,H)};function V(q,O,P,H,se){return O=+O,P=P>>>0,se||re(q,O,P,8),r.write(q,O,P,H,52,8),P+8}o.prototype.writeDoubleLE=function(O,P,H){return V(this,O,P,!0,H)},o.prototype.writeDoubleBE=function(O,P,H){return V(this,O,P,!1,H)},o.prototype.copy=function(O,P,H,se){if(!o.isBuffer(O))throw new TypeError("argument should be a Buffer");if(H||(H=0),!se&&se!==0&&(se=this.length),P>=O.length&&(P=O.length),P||(P=0),se>0&&se<H&&(se=H),se===H||O.length===0||this.length===0)return 0;if(P<0)throw new RangeError("targetStart out of bounds");if(H<0||H>=this.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("sourceEnd out of bounds");se>this.length&&(se=this.length),O.length-P<se-H&&(se=O.length-P+H);const de=se-H;return this===O&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(P,H,se):Uint8Array.prototype.set.call(O,this.subarray(H,se),P),de},o.prototype.fill=function(O,P,H,se){if(typeof O=="string"){if(typeof P=="string"?(se=P,P=0,H=this.length):typeof H=="string"&&(se=H,H=this.length),se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!o.isEncoding(se))throw new TypeError("Unknown encoding: "+se);if(O.length===1){const xe=O.charCodeAt(0);(se==="utf8"&&xe<128||se==="latin1")&&(O=xe)}}else typeof O=="number"?O=O&255:typeof O=="boolean"&&(O=Number(O));if(P<0||this.length<P||this.length<H)throw new RangeError("Out of range index");if(H<=P)return this;P=P>>>0,H=H===void 0?this.length:H>>>0,O||(O=0);let de;if(typeof O=="number")for(de=P;de<H;++de)this[de]=O;else{const xe=o.isBuffer(O)?O:o.from(O,se),Ze=xe.length;if(Ze===0)throw new TypeError('The value "'+O+'" is invalid for argument "value"');for(de=0;de<H-P;++de)this[de+P]=xe[de%Ze]}return this};const me={};function ve(q,O,P){me[q]=class extends P{constructor(){super(),Object.defineProperty(this,"message",{value:O.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${q}]`,this.stack,delete this.name}get code(){return q}set code(se){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:se,writable:!0})}toString(){return`${this.name} [${q}]: ${this.message}`}}}ve("ERR_BUFFER_OUT_OF_BOUNDS",function(q){return q?`${q} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ve("ERR_INVALID_ARG_TYPE",function(q,O){return`The "${q}" argument must be of type number. Received type ${typeof O}`},TypeError),ve("ERR_OUT_OF_RANGE",function(q,O,P){let H=`The value of "${q}" is out of range.`,se=P;return Number.isInteger(P)&&Math.abs(P)>2**32?se=Me(String(P)):typeof P=="bigint"&&(se=String(P),(P>BigInt(2)**BigInt(32)||P<-(BigInt(2)**BigInt(32)))&&(se=Me(se)),se+="n"),H+=` It must be ${O}. Received ${se}`,H},RangeError);function Me(q){let O="",P=q.length;const H=q[0]==="-"?1:0;for(;P>=H+4;P-=3)O=`_${q.slice(P-3,P)}${O}`;return`${q.slice(0,P)}${O}`}function Be(q,O,P){Pe(O,"offset"),(q[O]===void 0||q[O+P]===void 0)&&Le(O,q.length-(P+1))}function Te(q,O,P,H,se,de){if(q>P||q<O){const xe=typeof O=="bigint"?"n":"";let Ze;throw O===0||O===BigInt(0)?Ze=`>= 0${xe} and < 2${xe} ** ${(de+1)*8}${xe}`:Ze=`>= -(2${xe} ** ${(de+1)*8-1}${xe}) and < 2 ** ${(de+1)*8-1}${xe}`,new me.ERR_OUT_OF_RANGE("value",Ze,q)}Be(H,se,de)}function Pe(q,O){if(typeof q!="number")throw new me.ERR_INVALID_ARG_TYPE(O,"number",q)}function Le(q,O,P){throw Math.floor(q)!==q?(Pe(q,P),new me.ERR_OUT_OF_RANGE("offset","an integer",q)):O<0?new me.ERR_BUFFER_OUT_OF_BOUNDS:new me.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${O}`,q)}const ge=/[^+/0-9A-Za-z-_]/g;function Se(q){if(q=q.split("=")[0],q=q.trim().replace(ge,""),q.length<2)return"";for(;q.length%4!==0;)q=q+"=";return q}function we(q,O){O=O||1/0;let P;const H=q.length;let se=null;const de=[];for(let xe=0;xe<H;++xe){if(P=q.charCodeAt(xe),P>55295&&P<57344){if(!se){if(P>56319){(O-=3)>-1&&de.push(239,191,189);continue}else if(xe+1===H){(O-=3)>-1&&de.push(239,191,189);continue}se=P;continue}if(P<56320){(O-=3)>-1&&de.push(239,191,189),se=P;continue}P=(se-55296<<10|P-56320)+65536}else se&&(O-=3)>-1&&de.push(239,191,189);if(se=null,P<128){if((O-=1)<0)break;de.push(P)}else if(P<2048){if((O-=2)<0)break;de.push(P>>6|192,P&63|128)}else if(P<65536){if((O-=3)<0)break;de.push(P>>12|224,P>>6&63|128,P&63|128)}else if(P<1114112){if((O-=4)<0)break;de.push(P>>18|240,P>>12&63|128,P>>6&63|128,P&63|128)}else throw new Error("Invalid code point")}return de}function L(q){const O=[];for(let P=0;P<q.length;++P)O.push(q.charCodeAt(P)&255);return O}function C(q,O){let P,H,se;const de=[];for(let xe=0;xe<q.length&&!((O-=2)<0);++xe)P=q.charCodeAt(xe),H=P>>8,se=P%256,de.push(se),de.push(H);return de}function j(q){return e.toByteArray(Se(q))}function U(q,O,P,H){let se;for(se=0;se<H&&!(se+P>=O.length||se>=q.length);++se)O[se+P]=q[se];return se}function Y(q,O){return q instanceof O||q!=null&&q.constructor!=null&&q.constructor.name!=null&&q.constructor.name===O.name}function ne(q){return q!==q}const fe=(function(){const q="0123456789abcdef",O=new Array(256);for(let P=0;P<16;++P){const H=P*16;for(let se=0;se<16;++se)O[H+se]=q[P]+q[se]}return O})();function Ne(q){return typeof BigInt>"u"?Ge:q}function Ge(){throw new Error("BigInt not supported")}})(sd)),sd}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var U2;function J9(){return U2||(U2=1,(function(t,e){var r=W9(),n=r.Buffer;function i(a,o){for(var u in a)o[u]=a[u]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?t.exports=r:(i(r,e),e.Buffer=s);function s(a,o,u){return n(a,o,u)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(a,o,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,o,u)},s.alloc=function(a,o,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var l=n(a);return o!==void 0?typeof u=="string"?l.fill(o,u):l.fill(o):l.fill(0),l},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}})(Ql,Ql.exports)),Ql.exports}var ad,V2;function H9(){if(V2)return ad;V2=1;var t={}.toString;return ad=Array.isArray||function(e){return t.call(e)=="[object Array]"},ad}var od,z2;function vu(){return z2||(z2=1,od=TypeError),od}var ud,W2;function oF(){return W2||(W2=1,ud=Object),ud}var ld,J2;function K9(){return J2||(J2=1,ld=Error),ld}var cd,H2;function G9(){return H2||(H2=1,cd=EvalError),cd}var fd,K2;function Y9(){return K2||(K2=1,fd=RangeError),fd}var pd,G2;function X9(){return G2||(G2=1,pd=ReferenceError),pd}var dd,Y2;function uF(){return Y2||(Y2=1,dd=SyntaxError),dd}var hd,X2;function Z9(){return X2||(X2=1,hd=URIError),hd}var md,Z2;function Q9(){return Z2||(Z2=1,md=Math.abs),md}var gd,Q2;function e5(){return Q2||(Q2=1,gd=Math.floor),gd}var yd,eO;function t5(){return eO||(eO=1,yd=Math.max),yd}var vd,tO;function r5(){return tO||(tO=1,vd=Math.min),vd}var bd,rO;function n5(){return rO||(rO=1,bd=Math.pow),bd}var Ed,nO;function i5(){return nO||(nO=1,Ed=Math.round),Ed}var Sd,iO;function s5(){return iO||(iO=1,Sd=Number.isNaN||function(e){return e!==e}),Sd}var _d,sO;function a5(){if(sO)return _d;sO=1;var t=s5();return _d=function(r){return t(r)||r===0?r:r<0?-1:1},_d}var wd,aO;function o5(){return aO||(aO=1,wd=Object.getOwnPropertyDescriptor),wd}var xd,oO;function bu(){if(oO)return xd;oO=1;var t=o5();if(t)try{t([],"length")}catch{t=null}return xd=t,xd}var Ad,uO;function cf(){if(uO)return Ad;uO=1;var t=Object.defineProperty||!1;if(t)try{t({},"a",{value:1})}catch{t=!1}return Ad=t,Ad}var Od,lO;function lF(){return lO||(lO=1,Od=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 i=42;e[r]=i;for(var s 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 a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(e,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),Od}var Cd,cO;function u5(){if(cO)return Cd;cO=1;var t=typeof Symbol<"u"&&Symbol,e=lF();return Cd=function(){return typeof t!="function"||typeof Symbol!="function"||typeof t("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:e()},Cd}var Rd,fO;function cF(){return fO||(fO=1,Rd=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Rd}var Id,pO;function fF(){if(pO)return Id;pO=1;var t=oF();return Id=t.getPrototypeOf||null,Id}var Td,dO;function l5(){if(dO)return Td;dO=1;var t="Function.prototype.bind called on incompatible ",e=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(u,l){for(var c=[],p=0;p<u.length;p+=1)c[p]=u[p];for(var h=0;h<l.length;h+=1)c[h+u.length]=l[h];return c},s=function(u,l){for(var c=[],p=l,h=0;p<u.length;p+=1,h+=1)c[h]=u[p];return c},a=function(o,u){for(var l="",c=0;c<o.length;c+=1)l+=o[c],c+1<o.length&&(l+=u);return l};return Td=function(u){var l=this;if(typeof l!="function"||e.apply(l)!==n)throw new TypeError(t+l);for(var c=s(arguments,1),p,h=function(){if(this instanceof p){var E=l.apply(this,i(c,arguments));return Object(E)===E?E:this}return l.apply(u,i(c,arguments))},d=r(0,l.length-c.length),g=[],y=0;y<d;y++)g[y]="$"+y;if(p=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(h),l.prototype){var v=function(){};v.prototype=l.prototype,p.prototype=new v,v.prototype=null}return p},Td}var Pd,hO;function Eu(){if(hO)return Pd;hO=1;var t=l5();return Pd=Function.prototype.bind||t,Pd}var kd,mO;function R_(){return mO||(mO=1,kd=Function.prototype.call),kd}var jd,gO;function I_(){return gO||(gO=1,jd=Function.prototype.apply),jd}var Nd,yO;function c5(){return yO||(yO=1,Nd=typeof Reflect<"u"&&Reflect&&Reflect.apply),Nd}var Md,vO;function pF(){if(vO)return Md;vO=1;var t=Eu(),e=I_(),r=R_(),n=c5();return Md=n||t.call(r,e),Md}var Dd,bO;function T_(){if(bO)return Dd;bO=1;var t=Eu(),e=vu(),r=R_(),n=pF();return Dd=function(s){if(s.length<1||typeof s[0]!="function")throw new e("a function is required");return n(t,r,s)},Dd}var Fd,EO;function f5(){if(EO)return Fd;EO=1;var t=T_(),e=bu(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&e&&e(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return Fd=n&&typeof n.get=="function"?t([n.get]):typeof s=="function"?function(o){return s(o==null?o:i(o))}:!1,Fd}var qd,SO;function dF(){if(SO)return qd;SO=1;var t=cF(),e=fF(),r=f5();return qd=t?function(i){return t(i)}:e?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return e(i)}:r?function(i){return r(i)}:null,qd}var Bd,_O;function p5(){if(_O)return Bd;_O=1;var t=Function.prototype.call,e=Object.prototype.hasOwnProperty,r=Eu();return Bd=r.call(t,e),Bd}var $d,wO;function hF(){if(wO)return $d;wO=1;var t,e=oF(),r=K9(),n=G9(),i=Y9(),s=X9(),a=uF(),o=vu(),u=Z9(),l=Q9(),c=e5(),p=t5(),h=r5(),d=n5(),g=i5(),y=a5(),v=Function,E=function(ve){try{return v('"use strict"; return ('+ve+").constructor;")()}catch{}},b=bu(),_=cf(),w=function(){throw new o},S=b?(function(){try{return arguments.callee,w}catch{try{return b(arguments,"callee").get}catch{return w}}})():w,A=u5()(),I=dF(),T=fF(),k=cF(),D=I_(),R=R_(),$={},M=typeof Uint8Array>"u"||!I?t:I(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?t:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?t:ArrayBuffer,"%ArrayIteratorPrototype%":A&&I?I([][Symbol.iterator]()):t,"%AsyncFromSyncIteratorPrototype%":t,"%AsyncFunction%":$,"%AsyncGenerator%":$,"%AsyncGeneratorFunction%":$,"%AsyncIteratorPrototype%":$,"%Atomics%":typeof Atomics>"u"?t:Atomics,"%BigInt%":typeof BigInt>"u"?t:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?t:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?t:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?t:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?t:Float16Array,"%Float32Array%":typeof Float32Array>"u"?t:Float32Array,"%Float64Array%":typeof Float64Array>"u"?t:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?t:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":$,"%Int8Array%":typeof Int8Array>"u"?t:Int8Array,"%Int16Array%":typeof Int16Array>"u"?t:Int16Array,"%Int32Array%":typeof Int32Array>"u"?t:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&I?I(I([][Symbol.iterator]())):t,"%JSON%":typeof JSON=="object"?JSON:t,"%Map%":typeof Map>"u"?t:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!I?t:I(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":e,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?t:Promise,"%Proxy%":typeof Proxy>"u"?t:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?t:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?t:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!I?t:I(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?t:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&I?I(""[Symbol.iterator]()):t,"%Symbol%":A?Symbol:t,"%SyntaxError%":a,"%ThrowTypeError%":S,"%TypedArray%":M,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?t:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?t:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?t:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?t:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?t:WeakMap,"%WeakRef%":typeof WeakRef>"u"?t:WeakRef,"%WeakSet%":typeof WeakSet>"u"?t:WeakSet,"%Function.prototype.call%":R,"%Function.prototype.apply%":D,"%Object.defineProperty%":_,"%Object.getPrototypeOf%":T,"%Math.abs%":l,"%Math.floor%":c,"%Math.max%":p,"%Math.min%":h,"%Math.pow%":d,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":k};if(I)try{null.error}catch(ve){var ee=I(I(ve));K["%Error.prototype%"]=ee}var G=function ve(Me){var Be;if(Me==="%AsyncFunction%")Be=E("async function () {}");else if(Me==="%GeneratorFunction%")Be=E("function* () {}");else if(Me==="%AsyncGeneratorFunction%")Be=E("async function* () {}");else if(Me==="%AsyncGenerator%"){var Te=ve("%AsyncGeneratorFunction%");Te&&(Be=Te.prototype)}else if(Me==="%AsyncIteratorPrototype%"){var Pe=ve("%AsyncGenerator%");Pe&&I&&(Be=I(Pe.prototype))}return K[Me]=Be,Be},Z={__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"]},X=Eu(),te=p5(),ce=X.call(R,Array.prototype.concat),ie=X.call(D,Array.prototype.splice),ue=X.call(R,String.prototype.replace),ye=X.call(R,String.prototype.slice),he=X.call(R,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W=/\\(\\)?/g,V=function(Me){var Be=ye(Me,0,1),Te=ye(Me,-1);if(Be==="%"&&Te!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(Te==="%"&&Be!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Pe=[];return ue(Me,re,function(Le,ge,Se,we){Pe[Pe.length]=Se?ue(we,W,"$1"):ge||Le}),Pe},me=function(Me,Be){var Te=Me,Pe;if(te(Z,Te)&&(Pe=Z[Te],Te="%"+Pe[0]+"%"),te(K,Te)){var Le=K[Te];if(Le===$&&(Le=G(Te)),typeof Le>"u"&&!Be)throw new o("intrinsic "+Me+" exists, but is not available. Please file an issue!");return{alias:Pe,name:Te,value:Le}}throw new a("intrinsic "+Me+" does not exist!")};return $d=function(Me,Be){if(typeof Me!="string"||Me.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Be!="boolean")throw new o('"allowMissing" argument must be a boolean');if(he(/^%?[^%]*%?$/,Me)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var Te=V(Me),Pe=Te.length>0?Te[0]:"",Le=me("%"+Pe+"%",Be),ge=Le.name,Se=Le.value,we=!1,L=Le.alias;L&&(Pe=L[0],ie(Te,ce([0,1],L)));for(var C=1,j=!0;C<Te.length;C+=1){var U=Te[C],Y=ye(U,0,1),ne=ye(U,-1);if((Y==='"'||Y==="'"||Y==="`"||ne==='"'||ne==="'"||ne==="`")&&Y!==ne)throw new a("property names with quotes must have matching quotes");if((U==="constructor"||!j)&&(we=!0),Pe+="."+U,ge="%"+Pe+"%",te(K,ge))Se=K[ge];else if(Se!=null){if(!(U in Se)){if(!Be)throw new o("base intrinsic for "+Me+" exists, but the property is not available.");return}if(b&&C+1>=Te.length){var fe=b(Se,U);j=!!fe,j&&"get"in fe&&!("originalValue"in fe.get)?Se=fe.get:Se=Se[U]}else j=te(Se,U),Se=Se[U];j&&!we&&(K[ge]=Se)}}return Se},$d}var Ld,xO;function mF(){if(xO)return Ld;xO=1;var t=hF(),e=T_(),r=e([t("%String.prototype.indexOf%")]);return Ld=function(i,s){var a=t(i,!!s);return typeof a=="function"&&r(i,".prototype.")>-1?e([a]):a},Ld}var Ud,AO;function d5(){if(AO)return Ud;AO=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(b){b!==n&&(e=null)}else e=null;var i=/^\s*class\b/,s=function(_){try{var w=t.call(_);return i.test(w)}catch{return!1}},a=function(_){try{return s(_)?!1:(t.call(_),!0)}catch{return!1}},o=Object.prototype.toString,u="[object Object]",l="[object Function]",c="[object GeneratorFunction]",p="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),v=function(){return!1};if(typeof document=="object"){var E=document.all;o.call(E)===o.call(document.all)&&(v=function(_){if((y||!_)&&(typeof _>"u"||typeof _=="object"))try{var w=o.call(_);return(w===p||w===h||w===d||w===u)&&_("")==null}catch{}return!1})}return Ud=e?function(_){if(v(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;try{e(_,null,r)}catch(w){if(w!==n)return!1}return!s(_)&&a(_)}:function(_){if(v(_))return!0;if(!_||typeof _!="function"&&typeof _!="object")return!1;if(g)return a(_);if(s(_))return!1;var w=o.call(_);return w!==l&&w!==c&&!/^\[object HTML/.test(w)?!1:a(_)},Ud}var Vd,OO;function h5(){if(OO)return Vd;OO=1;var t=d5(),e=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,l,c){for(var p=0,h=u.length;p<h;p++)r.call(u,p)&&(c==null?l(u[p],p,u):l.call(c,u[p],p,u))},i=function(u,l,c){for(var p=0,h=u.length;p<h;p++)c==null?l(u.charAt(p),p,u):l.call(c,u.charAt(p),p,u)},s=function(u,l,c){for(var p in u)r.call(u,p)&&(c==null?l(u[p],p,u):l.call(c,u[p],p,u))};function a(o){return e.call(o)==="[object Array]"}return Vd=function(u,l,c){if(!t(l))throw new TypeError("iterator must be a function");var p;arguments.length>=3&&(p=c),a(u)?n(u,l,p):typeof u=="string"?i(u,l,p):s(u,l,p)},Vd}var zd,CO;function m5(){return CO||(CO=1,zd=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),zd}var Wd,RO;function g5(){if(RO)return Wd;RO=1;var t=m5(),e=typeof globalThis>"u"?Lr:globalThis;return Wd=function(){for(var n=[],i=0;i<t.length;i++)typeof e[t[i]]=="function"&&(n[n.length]=t[i]);return n},Wd}var Jd={exports:{}},Hd,IO;function y5(){if(IO)return Hd;IO=1;var t=cf(),e=uF(),r=vu(),n=bu();return Hd=function(s,a,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="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 u=arguments.length>3?arguments[3]:null,l=arguments.length>4?arguments[4]:null,c=arguments.length>5?arguments[5]:null,p=arguments.length>6?arguments[6]:!1,h=!!n&&n(s,a);if(t)t(s,a,{configurable:c===null&&h?h.configurable:!c,enumerable:u===null&&h?h.enumerable:!u,value:o,writable:l===null&&h?h.writable:!l});else if(p||!u&&!l&&!c)s[a]=o;else throw new e("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Hd}var Kd,TO;function v5(){if(TO)return Kd;TO=1;var t=cf(),e=function(){return!!t};return e.hasArrayLengthDefineBug=function(){if(!t)return null;try{return t([],"length",{value:1}).length!==1}catch{return!0}},Kd=e,Kd}var Gd,PO;function b5(){if(PO)return Gd;PO=1;var t=hF(),e=y5(),r=v5()(),n=bu(),i=vu(),s=t("%Math.floor%");return Gd=function(o,u){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||s(u)!==u)throw new i("`length` must be a positive 32-bit integer");var l=arguments.length>2&&!!arguments[2],c=!0,p=!0;if("length"in o&&n){var h=n(o,"length");h&&!h.configurable&&(c=!1),h&&!h.writable&&(p=!1)}return(c||p||!l)&&(r?e(o,"length",u,!0,!0):e(o,"length",u)),o},Gd}var Yd,kO;function E5(){if(kO)return Yd;kO=1;var t=Eu(),e=I_(),r=pF();return Yd=function(){return r(t,e,arguments)},Yd}var jO;function S5(){return jO||(jO=1,(function(t){var e=b5(),r=cf(),n=T_(),i=E5();t.exports=function(a){var o=n(arguments),u=a.length-(arguments.length-1);return e(o,1+(u>0?u:0),!0)},r?r(t.exports,"apply",{value:i}):t.exports.apply=i})(Jd)),Jd.exports}var Xd,NO;function _5(){if(NO)return Xd;NO=1;var t=lF();return Xd=function(){return t()&&!!Symbol.toStringTag},Xd}var Zd,MO;function w5(){if(MO)return Zd;MO=1;var t=h5(),e=g5(),r=S5(),n=mF(),i=bu(),s=dF(),a=n("Object.prototype.toString"),o=_5()(),u=typeof globalThis>"u"?Lr:globalThis,l=e(),c=n("String.prototype.slice"),p=n("Array.prototype.indexOf",!0)||function(v,E){for(var b=0;b<v.length;b+=1)if(v[b]===E)return b;return-1},h={__proto__:null};o&&i&&s?t(l,function(y){var v=new u[y];if(Symbol.toStringTag in v&&s){var E=s(v),b=i(E,Symbol.toStringTag);if(!b&&E){var _=s(E);b=i(_,Symbol.toStringTag)}h["$"+y]=r(b.get)}}):t(l,function(y){var v=new u[y],E=v.slice||v.set;E&&(h["$"+y]=r(E))});var d=function(v){var E=!1;return t(h,function(b,_){if(!E)try{"$"+b(v)===_&&(E=c(_,1))}catch{}}),E},g=function(v){var E=!1;return t(h,function(b,_){if(!E)try{b(v),E=c(_,1)}catch{}}),E};return Zd=function(v){if(!v||typeof v!="object")return!1;if(!o){var E=c(a(v),8,-1);return p(l,E)>-1?E:E!=="Object"?!1:g(v)}return i?d(v):null},Zd}var Qd,DO;function x5(){if(DO)return Qd;DO=1;var t=w5();return Qd=function(r){return!!t(r)},Qd}var eh,FO;function A5(){if(FO)return eh;FO=1;var t=vu(),e=mF(),r=e("TypedArray.prototype.buffer",!0),n=x5();return eh=r||function(s){if(!n(s))throw new t("Not a Typed Array");return s.buffer},eh}var th,qO;function O5(){if(qO)return th;qO=1;var t=J9().Buffer,e=H9(),r=A5(),n=ArrayBuffer.isView||function(u){try{return r(u),!0}catch{return!1}},i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a=s&&(t.prototype instanceof Uint8Array||t.TYPED_ARRAY_SUPPORT);return th=function(u,l){if(t.isBuffer(u))return u.constructor&&!("isBuffer"in u)?t.from(u):u;if(typeof u=="string")return t.from(u,l);if(s&&n(u)){if(u.byteLength===0)return t.alloc(0);if(a){var c=t.from(u.buffer,u.byteOffset,u.byteLength);if(c.byteLength===u.byteLength)return c}var p=u instanceof Uint8Array?u:new Uint8Array(u.buffer,u.byteOffset,u.byteLength),h=t.from(p);if(h.length===u.byteLength)return h}if(i&&u instanceof Uint8Array)return t.from(u);var d=e(u);if(d)for(var g=0;g<u.length;g+=1){var y=u[g];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||t.isBuffer(u)&&u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u))return t.from(u);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},th}var gF=O5();const C5=ot(gF),R5=C_({__proto__:null,default:C5},[gF]);var yF=aF();const I5=ot(yF),T5=C_({__proto__:null,default:I5},[yF]);var Sc={exports:{}},P5=Sc.exports,BO;function ff(){return BO||(BO=1,(function(t,e){(function(r,n){t.exports=n()})(P5,function(){var r=Array.prototype.slice;function n(m,x){x&&(m.prototype=Object.create(x.prototype)),m.prototype.constructor=m}function i(m){return u(m)?m:Pe(m)}n(s,i);function s(m){return l(m)?m:Le(m)}n(a,i);function a(m){return c(m)?m:ge(m)}n(o,i);function o(m){return u(m)&&!p(m)?m:Se(m)}function u(m){return!!(m&&m[d])}function l(m){return!!(m&&m[g])}function c(m){return!!(m&&m[y])}function p(m){return l(m)||c(m)}function h(m){return!!(m&&m[v])}i.isIterable=u,i.isKeyed=l,i.isIndexed=c,i.isAssociative=p,i.isOrdered=h,i.Keyed=s,i.Indexed=a,i.Set=o;var d="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",v="@@__IMMUTABLE_ORDERED__@@",E="delete",b=5,_=1<<b,w=_-1,S={},A={value:!1},I={value:!1};function T(m){return m.value=!1,m}function k(m){m&&(m.value=!0)}function D(){}function R(m,x){x=x||0;for(var N=Math.max(0,m.length-x),F=new Array(N),B=0;B<N;B++)F[B]=m[B+x];return F}function $(m){return m.size===void 0&&(m.size=m.__iterate(K)),m.size}function M(m,x){if(typeof x!="number"){var N=x>>>0;if(""+N!==x||N===4294967295)return NaN;x=N}return x<0?$(m)+x:x}function K(){return!0}function ee(m,x,N){return(m===0||N!==void 0&&m<=-N)&&(x===void 0||N!==void 0&&x>=N)}function G(m,x){return X(m,x,0)}function Z(m,x){return X(m,x,x)}function X(m,x,N){return m===void 0?N:m<0?Math.max(0,x+m):x===void 0?m:Math.min(x,m)}var te=0,ce=1,ie=2,ue=typeof Symbol=="function"&&Symbol.iterator,ye="@@iterator",he=ue||ye;function re(m){this.next=m}re.prototype.toString=function(){return"[Iterator]"},re.KEYS=te,re.VALUES=ce,re.ENTRIES=ie,re.prototype.inspect=re.prototype.toSource=function(){return this.toString()},re.prototype[he]=function(){return this};function W(m,x,N,F){var B=m===0?x:m===1?N:[x,N];return F?F.value=B:F={value:B,done:!1},F}function V(){return{value:void 0,done:!0}}function me(m){return!!Be(m)}function ve(m){return m&&typeof m.next=="function"}function Me(m){var x=Be(m);return x&&x.call(m)}function Be(m){var x=m&&(ue&&m[ue]||m[ye]);if(typeof x=="function")return x}function Te(m){return m&&typeof m.length=="number"}n(Pe,i);function Pe(m){return m==null?fe():u(m)?m.toSeq():q(m)}Pe.of=function(){return Pe(arguments)},Pe.prototype.toSeq=function(){return this},Pe.prototype.toString=function(){return this.__toString("Seq {","}")},Pe.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Pe.prototype.__iterate=function(m,x){return P(this,m,x,!0)},Pe.prototype.__iterator=function(m,x){return H(this,m,x,!0)},n(Le,Pe);function Le(m){return m==null?fe().toKeyedSeq():u(m)?l(m)?m.toSeq():m.fromEntrySeq():Ne(m)}Le.prototype.toKeyedSeq=function(){return this},n(ge,Pe);function ge(m){return m==null?fe():u(m)?l(m)?m.entrySeq():m.toIndexedSeq():Ge(m)}ge.of=function(){return ge(arguments)},ge.prototype.toIndexedSeq=function(){return this},ge.prototype.toString=function(){return this.__toString("Seq [","]")},ge.prototype.__iterate=function(m,x){return P(this,m,x,!1)},ge.prototype.__iterator=function(m,x){return H(this,m,x,!1)},n(Se,Pe);function Se(m){return(m==null?fe():u(m)?l(m)?m.entrySeq():m:Ge(m)).toSetSeq()}Se.of=function(){return Se(arguments)},Se.prototype.toSetSeq=function(){return this},Pe.isSeq=Y,Pe.Keyed=Le,Pe.Set=Se,Pe.Indexed=ge;var we="@@__IMMUTABLE_SEQ__@@";Pe.prototype[we]=!0,n(L,ge);function L(m){this._array=m,this.size=m.length}L.prototype.get=function(m,x){return this.has(m)?this._array[M(this,m)]:x},L.prototype.__iterate=function(m,x){for(var N=this._array,F=N.length-1,B=0;B<=F;B++)if(m(N[x?F-B:B],B,this)===!1)return B+1;return B},L.prototype.__iterator=function(m,x){var N=this._array,F=N.length-1,B=0;return new re(function(){return B>F?V():W(m,B,N[x?F-B++:B++])})},n(C,Le);function C(m){var x=Object.keys(m);this._object=m,this._keys=x,this.size=x.length}C.prototype.get=function(m,x){return x!==void 0&&!this.has(m)?x:this._object[m]},C.prototype.has=function(m){return this._object.hasOwnProperty(m)},C.prototype.__iterate=function(m,x){for(var N=this._object,F=this._keys,B=F.length-1,J=0;J<=B;J++){var Q=F[x?B-J:J];if(m(N[Q],Q,this)===!1)return J+1}return J},C.prototype.__iterator=function(m,x){var N=this._object,F=this._keys,B=F.length-1,J=0;return new re(function(){var Q=F[x?B-J:J];return J++>B?V():W(m,Q,N[Q])})},C.prototype[v]=!0,n(j,ge);function j(m){this._iterable=m,this.size=m.length||m.size}j.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);var N=this._iterable,F=Me(N),B=0;if(ve(F))for(var J;!(J=F.next()).done&&m(J.value,B++,this)!==!1;);return B},j.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var N=this._iterable,F=Me(N);if(!ve(F))return new re(V);var B=0;return new re(function(){var J=F.next();return J.done?J:W(m,B++,J.value)})},n(U,ge);function U(m){this._iterator=m,this._iteratorCache=[]}U.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);for(var N=this._iterator,F=this._iteratorCache,B=0;B<F.length;)if(m(F[B],B++,this)===!1)return B;for(var J;!(J=N.next()).done;){var Q=J.value;if(F[B]=Q,m(Q,B++,this)===!1)break}return B},U.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var N=this._iterator,F=this._iteratorCache,B=0;return new re(function(){if(B>=F.length){var J=N.next();if(J.done)return J;F[B]=J.value}return W(m,B,F[B++])})};function Y(m){return!!(m&&m[we])}var ne;function fe(){return ne||(ne=new L([]))}function Ne(m){var x=Array.isArray(m)?new L(m).fromEntrySeq():ve(m)?new U(m).fromEntrySeq():me(m)?new j(m).fromEntrySeq():typeof m=="object"?new C(m):void 0;if(!x)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return x}function Ge(m){var x=O(m);if(!x)throw new TypeError("Expected Array or iterable object of values: "+m);return x}function q(m){var x=O(m)||typeof m=="object"&&new C(m);if(!x)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return x}function O(m){return Te(m)?new L(m):ve(m)?new U(m):me(m)?new j(m):void 0}function P(m,x,N,F){var B=m._cache;if(B){for(var J=B.length-1,Q=0;Q<=J;Q++){var le=B[N?J-Q:Q];if(x(le[1],F?le[0]:Q,m)===!1)return Q+1}return Q}return m.__iterateUncached(x,N)}function H(m,x,N,F){var B=m._cache;if(B){var J=B.length-1,Q=0;return new re(function(){var le=B[N?J-Q:Q];return Q++>J?V():W(x,F?le[0]:Q-1,le[1])})}return m.__iteratorUncached(x,N)}function se(m,x){return x?de(x,m,"",{"":m}):xe(m)}function de(m,x,N,F){return Array.isArray(x)?m.call(F,N,ge(x).map(function(B,J){return de(m,B,J,x)})):Ze(x)?m.call(F,N,Le(x).map(function(B,J){return de(m,B,J,x)})):x}function xe(m){return Array.isArray(m)?ge(m).map(xe).toList():Ze(m)?Le(m).map(xe).toMap():m}function Ze(m){return m&&(m.constructor===Object||m.constructor===void 0)}function st(m,x){if(m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1;if(typeof m.valueOf=="function"&&typeof x.valueOf=="function"){if(m=m.valueOf(),x=x.valueOf(),m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1}return!!(typeof m.equals=="function"&&typeof x.equals=="function"&&m.equals(x))}function Pt(m,x){if(m===x)return!0;if(!u(x)||m.size!==void 0&&x.size!==void 0&&m.size!==x.size||m.__hash!==void 0&&x.__hash!==void 0&&m.__hash!==x.__hash||l(m)!==l(x)||c(m)!==c(x)||h(m)!==h(x))return!1;if(m.size===0&&x.size===0)return!0;var N=!p(m);if(h(m)){var F=m.entries();return x.every(function(_e,Ae){var Ie=F.next().value;return Ie&&st(Ie[1],_e)&&(N||st(Ie[0],Ae))})&&F.next().done}var B=!1;if(m.size===void 0)if(x.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{B=!0;var J=m;m=x,x=J}var Q=!0,le=x.__iterate(function(_e,Ae){if(N?!m.has(_e):B?!st(_e,m.get(Ae,S)):!st(m.get(Ae,S),_e))return Q=!1,!1});return Q&&m.size===le}n(ft,ge);function ft(m,x){if(!(this instanceof ft))return new ft(m,x);if(this._value=m,this.size=x===void 0?1/0:Math.max(0,x),this.size===0){if(ae)return ae;ae=this}}ft.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ft.prototype.get=function(m,x){return this.has(m)?this._value:x},ft.prototype.includes=function(m){return st(this._value,m)},ft.prototype.slice=function(m,x){var N=this.size;return ee(m,x,N)?this:new ft(this._value,Z(x,N)-G(m,N))},ft.prototype.reverse=function(){return this},ft.prototype.indexOf=function(m){return st(this._value,m)?0:-1},ft.prototype.lastIndexOf=function(m){return st(this._value,m)?this.size:-1},ft.prototype.__iterate=function(m,x){for(var N=0;N<this.size;N++)if(m(this._value,N,this)===!1)return N+1;return N},ft.prototype.__iterator=function(m,x){var N=this,F=0;return new re(function(){return F<N.size?W(m,F++,N._value):V()})},ft.prototype.equals=function(m){return m instanceof ft?st(this._value,m._value):Pt(m)};var ae;function Ce(m,x){if(!m)throw new Error(x)}n(je,ge);function je(m,x,N){if(!(this instanceof je))return new je(m,x,N);if(Ce(N!==0,"Cannot step a Range by 0"),m=m||0,x===void 0&&(x=1/0),N=N===void 0?1:Math.abs(N),x<m&&(N=-N),this._start=m,this._end=x,this._step=N,this.size=Math.max(0,Math.ceil((x-m)/N-1)+1),this.size===0){if(tt)return tt;tt=this}}je.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},je.prototype.get=function(m,x){return this.has(m)?this._start+M(this,m)*this._step:x},je.prototype.includes=function(m){var x=(m-this._start)/this._step;return x>=0&&x<this.size&&x===Math.floor(x)},je.prototype.slice=function(m,x){return ee(m,x,this.size)?this:(m=G(m,this.size),x=Z(x,this.size),x<=m?new je(0,0):new je(this.get(m,this._end),this.get(x,this._end),this._step))},je.prototype.indexOf=function(m){var x=m-this._start;if(x%this._step===0){var N=x/this._step;if(N>=0&&N<this.size)return N}return-1},je.prototype.lastIndexOf=function(m){return this.indexOf(m)},je.prototype.__iterate=function(m,x){for(var N=this.size-1,F=this._step,B=x?this._start+N*F:this._start,J=0;J<=N;J++){if(m(B,J,this)===!1)return J+1;B+=x?-F:F}return J},je.prototype.__iterator=function(m,x){var N=this.size-1,F=this._step,B=x?this._start+N*F:this._start,J=0;return new re(function(){var Q=B;return B+=x?-F:F,J>N?V():W(m,J++,Q)})},je.prototype.equals=function(m){return m instanceof je?this._start===m._start&&this._end===m._end&&this._step===m._step:Pt(this,m)};var tt;n(pt,i);function pt(){throw TypeError("Abstract")}n(St,pt);function St(){}n(Lt,pt);function Lt(){}n(De,pt);function De(){}pt.Keyed=St,pt.Indexed=Lt,pt.Set=De;var Je=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(x,N){x=x|0,N=N|0;var F=x&65535,B=N&65535;return F*B+((x>>>16)*B+F*(N>>>16)<<16>>>0)|0};function lt(m){return m>>>1&1073741824|m&3221225471}function rt(m){if(m===!1||m===null||m===void 0||typeof m.valueOf=="function"&&(m=m.valueOf(),m===!1||m===null||m===void 0))return 0;if(m===!0)return 1;var x=typeof m;if(x==="number"){if(m!==m||m===1/0)return 0;var N=m|0;for(N!==m&&(N^=m*4294967295);m>4294967295;)m/=4294967295,N^=m;return lt(N)}if(x==="string")return m.length>hn?Ut(m):zr(m);if(typeof m.hashCode=="function")return m.hashCode();if(x==="object")return ss(m);if(typeof m.toString=="function")return zr(m.toString());throw new Error("Value type "+x+" cannot be hashed.")}function Ut(m){var x=di[m];return x===void 0&&(x=zr(m),cs===ls&&(cs=0,di={}),cs++,di[m]=x),x}function zr(m){for(var x=0,N=0;N<m.length;N++)x=31*x+m.charCodeAt(N)|0;return lt(x)}function ss(m){var x;if(os&&(x=us.get(m),x!==void 0)||(x=m[Jr],x!==void 0)||!Wr&&(x=m.propertyIsEnumerable&&m.propertyIsEnumerable[Jr],x!==void 0||(x=pi(m),x!==void 0)))return x;if(x=++Fi,Fi&1073741824&&(Fi=0),os)us.set(m,x);else{if(as!==void 0&&as(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(Wr)Object.defineProperty(m,Jr,{enumerable:!1,configurable:!1,writable:!1,value:x});else if(m.propertyIsEnumerable!==void 0&&m.propertyIsEnumerable===m.constructor.prototype.propertyIsEnumerable)m.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},m.propertyIsEnumerable[Jr]=x;else if(m.nodeType!==void 0)m[Jr]=x;else throw new Error("Unable to set a non-enumerable property on object.")}return x}var as=Object.isExtensible,Wr=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function pi(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var os=typeof WeakMap=="function",us;os&&(us=new WeakMap);var Fi=0,Jr="__immutablehash__";typeof Symbol=="function"&&(Jr=Symbol(Jr));var hn=16,ls=255,cs=0,di={};function Er(m){Ce(m!==1/0,"Cannot perform this action with an infinite size.")}n(xt,St);function xt(m){return m==null?ze():Qe(m)&&!h(m)?m:ze().withMutations(function(x){var N=s(m);Er(N.size),N.forEach(function(F,B){return x.set(B,F)})})}xt.of=function(){var m=r.call(arguments,0);return ze().withMutations(function(x){for(var N=0;N<m.length;N+=2){if(N+1>=m.length)throw new Error("Missing value for key: "+m[N]);x.set(m[N],m[N+1])}})},xt.prototype.toString=function(){return this.__toString("Map {","}")},xt.prototype.get=function(m,x){return this._root?this._root.get(0,void 0,m,x):x},xt.prototype.set=function(m,x){return Ot(this,m,x)},xt.prototype.setIn=function(m,x){return this.updateIn(m,S,function(){return x})},xt.prototype.remove=function(m){return Ot(this,m,S)},xt.prototype.deleteIn=function(m){return this.updateIn(m,function(){return S})},xt.prototype.update=function(m,x,N){return arguments.length===1?m(this):this.updateIn([m],x,N)},xt.prototype.updateIn=function(m,x,N){N||(N=x,x=void 0);var F=Ul(this,S2(m),x,N);return F===S?void 0:F},xt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ze()},xt.prototype.merge=function(){return mn(this,void 0,arguments)},xt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return mn(this,m,x)},xt.prototype.mergeIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,ze(),function(N){return typeof N.merge=="function"?N.merge.apply(N,x):x[x.length-1]})},xt.prototype.mergeDeep=function(){return mn(this,Bl,arguments)},xt.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return mn(this,$l(m),x)},xt.prototype.mergeDeepIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,ze(),function(N){return typeof N.mergeDeep=="function"?N.mergeDeep.apply(N,x):x[x.length-1]})},xt.prototype.sort=function(m){return fr(wa(this,m))},xt.prototype.sortBy=function(m,x){return fr(wa(this,x,m))},xt.prototype.withMutations=function(m){var x=this.asMutable();return m(x),x.wasAltered()?x.__ensureOwner(this.__ownerID):this},xt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new D)},xt.prototype.asImmutable=function(){return this.__ensureOwner()},xt.prototype.wasAltered=function(){return this.__altered},xt.prototype.__iterator=function(m,x){return new Hr(this,m,x)},xt.prototype.__iterate=function(m,x){var N=this,F=0;return this._root&&this._root.iterate(function(B){return F++,m(B[1],B[0],N)},x),F},xt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?ir(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function Qe(m){return!!(m&&m[oe])}xt.isMap=Qe;var oe="@@__IMMUTABLE_MAP__@@",Oe=xt.prototype;Oe[oe]=!0,Oe[E]=Oe.remove,Oe.removeIn=Oe.deleteIn;function He(m,x){this.ownerID=m,this.entries=x}He.prototype.get=function(m,x,N,F){for(var B=this.entries,J=0,Q=B.length;J<Q;J++)if(st(N,B[J][0]))return B[J][1];return F},He.prototype.update=function(m,x,N,F,B,J,Q){for(var le=B===S,_e=this.entries,Ae=0,Ie=_e.length;Ae<Ie&&!st(F,_e[Ae][0]);Ae++);var We=Ae<Ie;if(We?_e[Ae][1]===B:le)return this;if(k(Q),(le||!We)&&k(J),!(le&&_e.length===1)){if(!We&&!le&&_e.length>=wo)return An(m,_e,F,B);var Xe=m&&m===this.ownerID,ht=Xe?_e:R(_e);return We?le?Ae===Ie-1?ht.pop():ht[Ae]=ht.pop():ht[Ae]=[F,B]:ht.push([F,B]),Xe?(this.entries=ht,this):new He(m,ht)}};function gt(m,x,N){this.ownerID=m,this.bitmap=x,this.nodes=N}gt.prototype.get=function(m,x,N,F){x===void 0&&(x=rt(N));var B=1<<((m===0?x:x>>>m)&w),J=this.bitmap;return(J&B)===0?F:this.nodes[Bs(J&B-1)].get(m+b,x,N,F)},gt.prototype.update=function(m,x,N,F,B,J,Q){N===void 0&&(N=rt(F));var le=(x===0?N:N>>>x)&w,_e=1<<le,Ae=this.bitmap,Ie=(Ae&_e)!==0;if(!Ie&&B===S)return this;var We=Bs(Ae&_e-1),Xe=this.nodes,ht=Ie?Xe[We]:void 0,At=Ft(ht,m,x+b,N,F,B,J,Q);if(At===ht)return this;if(!Ie&&At&&Xe.length>=_t)return Cn(m,Xe,Ae,le,At);if(Ie&&!At&&Xe.length===2&&cr(Xe[We^1]))return Xe[We^1];if(Ie&&At&&Xe.length===1&&cr(At))return At;var er=m&&m===this.ownerID,Wn=Ie?At?Ae:Ae^_e:Ae|_e,yi=Ie?At?_o(Xe,We,At,er):Hp(Xe,We,er):ps(Xe,We,At,er);return er?(this.bitmap=Wn,this.nodes=yi,this):new gt(m,Wn,yi)};function Xt(m,x,N){this.ownerID=m,this.count=x,this.nodes=N}Xt.prototype.get=function(m,x,N,F){x===void 0&&(x=rt(N));var B=(m===0?x:x>>>m)&w,J=this.nodes[B];return J?J.get(m+b,x,N,F):F},Xt.prototype.update=function(m,x,N,F,B,J,Q){N===void 0&&(N=rt(F));var le=(x===0?N:N>>>x)&w,_e=B===S,Ae=this.nodes,Ie=Ae[le];if(_e&&!Ie)return this;var We=Ft(Ie,m,x+b,N,F,B,J,Q);if(We===Ie)return this;var Xe=this.count;if(!Ie)Xe++;else if(!We&&(Xe--,Xe<Vl))return On(m,Ae,Xe,le);var ht=m&&m===this.ownerID,At=_o(Ae,le,We,ht);return ht?(this.count=Xe,this.nodes=At,this):new Xt(m,Xe,At)};function $t(m,x,N){this.ownerID=m,this.keyHash=x,this.entries=N}$t.prototype.get=function(m,x,N,F){for(var B=this.entries,J=0,Q=B.length;J<Q;J++)if(st(N,B[J][0]))return B[J][1];return F},$t.prototype.update=function(m,x,N,F,B,J,Q){N===void 0&&(N=rt(F));var le=B===S;if(N!==this.keyHash)return le?this:(k(Q),k(J),zn(this,m,x,N,[F,B]));for(var _e=this.entries,Ae=0,Ie=_e.length;Ae<Ie&&!st(F,_e[Ae][0]);Ae++);var We=Ae<Ie;if(We?_e[Ae][1]===B:le)return this;if(k(Q),(le||!We)&&k(J),le&&Ie===2)return new Kt(m,this.keyHash,_e[Ae^1]);var Xe=m&&m===this.ownerID,ht=Xe?_e:R(_e);return We?le?Ae===Ie-1?ht.pop():ht[Ae]=ht.pop():ht[Ae]=[F,B]:ht.push([F,B]),Xe?(this.entries=ht,this):new $t(m,this.keyHash,ht)};function Kt(m,x,N){this.ownerID=m,this.keyHash=x,this.entry=N}Kt.prototype.get=function(m,x,N,F){return st(N,this.entry[0])?this.entry[1]:F},Kt.prototype.update=function(m,x,N,F,B,J,Q){var le=B===S,_e=st(F,this.entry[0]);if(_e?B===this.entry[1]:le)return this;if(k(Q),le){k(J);return}return _e?m&&m===this.ownerID?(this.entry[1]=B,this):new Kt(m,this.keyHash,[F,B]):(k(J),zn(this,m,x,rt(F),[F,B]))},He.prototype.iterate=$t.prototype.iterate=function(m,x){for(var N=this.entries,F=0,B=N.length-1;F<=B;F++)if(m(N[x?B-F:F])===!1)return!1},gt.prototype.iterate=Xt.prototype.iterate=function(m,x){for(var N=this.nodes,F=0,B=N.length-1;F<=B;F++){var J=N[x?B-F:F];if(J&&J.iterate(m,x)===!1)return!1}},Kt.prototype.iterate=function(m,x){return m(this.entry)},n(Hr,re);function Hr(m,x,N){this._type=x,this._reverse=N,this._stack=m._root&&fs(m._root)}Hr.prototype.next=function(){for(var m=this._type,x=this._stack;x;){var N=x.node,F=x.index++,B;if(N.entry){if(F===0)return sn(m,N.entry)}else if(N.entries){if(B=N.entries.length-1,F<=B)return sn(m,N.entries[this._reverse?B-F:F])}else if(B=N.nodes.length-1,F<=B){var J=N.nodes[this._reverse?B-F:F];if(J){if(J.entry)return sn(m,J.entry);x=this._stack=fs(J,x)}continue}x=this._stack=this._stack.__prev}return V()};function sn(m,x){return W(m,x[0],x[1])}function fs(m,x){return{node:m,index:0,__prev:x}}function ir(m,x,N,F){var B=Object.create(Oe);return B.size=m,B._root=x,B.__ownerID=N,B.__hash=F,B.__altered=!1,B}var ke;function ze(){return ke||(ke=ir(0))}function Ot(m,x,N){var F,B;if(m._root){var J=T(A),Q=T(I);if(F=Ft(m._root,m.__ownerID,0,void 0,x,N,J,Q),!Q.value)return m;B=m.size+(J.value?N===S?-1:1:0)}else{if(N===S)return m;B=1,F=new He(m.__ownerID,[[x,N]])}return m.__ownerID?(m.size=B,m._root=F,m.__hash=void 0,m.__altered=!0,m):F?ir(B,F):ze()}function Ft(m,x,N,F,B,J,Q,le){return m?m.update(x,N,F,B,J,Q,le):J===S?m:(k(le),k(Q),new Kt(x,F,[B,J]))}function cr(m){return m.constructor===Kt||m.constructor===$t}function zn(m,x,N,F,B){if(m.keyHash===F)return new $t(x,F,[m.entry,B]);var J=(N===0?m.keyHash:m.keyHash>>>N)&w,Q=(N===0?F:F>>>N)&w,le,_e=J===Q?[zn(m,x,N+b,F,B)]:(le=new Kt(x,F,B),J<Q?[m,le]:[le,m]);return new gt(x,1<<J|1<<Q,_e)}function An(m,x,N,F){m||(m=new D);for(var B=new Kt(m,rt(N),[N,F]),J=0;J<x.length;J++){var Q=x[J];B=B.update(m,0,void 0,Q[0],Q[1])}return B}function On(m,x,N,F){for(var B=0,J=0,Q=new Array(N),le=0,_e=1,Ae=x.length;le<Ae;le++,_e<<=1){var Ie=x[le];Ie!==void 0&&le!==F&&(B|=_e,Q[J++]=Ie)}return new gt(m,B,Q)}function Cn(m,x,N,F,B){for(var J=0,Q=new Array(_),le=0;N!==0;le++,N>>>=1)Q[le]=N&1?x[J++]:void 0;return Q[F]=B,new Xt(m,J+1,Q)}function mn(m,x,N){for(var F=[],B=0;B<N.length;B++){var J=N[B],Q=s(J);u(J)||(Q=Q.map(function(le){return se(le)})),F.push(Q)}return Ll(m,x,F)}function Bl(m,x,N){return m&&m.mergeDeep&&u(x)?m.mergeDeep(x):st(m,x)?m:x}function $l(m){return function(x,N,F){if(x&&x.mergeDeepWith&&u(N))return x.mergeDeepWith(m,N);var B=m(x,N,F);return st(x,B)?x:B}}function Ll(m,x,N){return N=N.filter(function(F){return F.size!==0}),N.length===0?m:m.size===0&&!m.__ownerID&&N.length===1?m.constructor(N[0]):m.withMutations(function(F){for(var B=x?function(Q,le){F.update(le,S,function(_e){return _e===S?Q:x(_e,Q,le)})}:function(Q,le){F.set(le,Q)},J=0;J<N.length;J++)N[J].forEach(B)})}function Ul(m,x,N,F){var B=m===S,J=x.next();if(J.done){var Q=B?N:m,le=F(Q);return le===Q?m:le}Ce(B||m&&m.set,"invalid keyPath");var _e=J.value,Ae=B?S:m.get(_e,S),Ie=Ul(Ae,x,N,F);return Ie===Ae?m:Ie===S?m.remove(_e):(B?ze():m).set(_e,Ie)}function Bs(m){return m=m-(m>>1&1431655765),m=(m&858993459)+(m>>2&858993459),m=m+(m>>4)&252645135,m=m+(m>>8),m=m+(m>>16),m&127}function _o(m,x,N,F){var B=F?m:R(m);return B[x]=N,B}function ps(m,x,N,F){var B=m.length+1;if(F&&x+1===B)return m[x]=N,m;for(var J=new Array(B),Q=0,le=0;le<B;le++)le===x?(J[le]=N,Q=-1):J[le]=m[le+Q];return J}function Hp(m,x,N){var F=m.length-1;if(N&&x===F)return m.pop(),m;for(var B=new Array(F),J=0,Q=0;Q<F;Q++)Q===x&&(J=1),B[Q]=m[Q+J];return B}var wo=_/4,_t=_/2,Vl=_/4;n(yt,Lt);function yt(m){var x=Nt();if(m==null)return x;if(rr(m))return m;var N=a(m),F=N.size;return F===0?x:(Er(F),F>0&&F<_?nt(0,F,b,null,new Rn(N.toArray())):x.withMutations(function(B){B.setSize(F),N.forEach(function(J,Q){return B.set(Q,J)})}))}yt.of=function(){return this(arguments)},yt.prototype.toString=function(){return this.__toString("List [","]")},yt.prototype.get=function(m,x){if(m=M(this,m),m>=0&&m<this.size){m+=this._origin;var N=o2(this,m);return N&&N.array[m&w]}return x},yt.prototype.set=function(m,x){return Br(this,m,x)},yt.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},yt.prototype.insert=function(m,x){return this.splice(m,0,x)},yt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=b,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Nt()},yt.prototype.push=function(){var m=arguments,x=this.size;return this.withMutations(function(N){ms(N,0,x+m.length);for(var F=0;F<m.length;F++)N.set(x+F,m[F])})},yt.prototype.pop=function(){return ms(this,0,-1)},yt.prototype.unshift=function(){var m=arguments;return this.withMutations(function(x){ms(x,-m.length);for(var N=0;N<m.length;N++)x.set(N,m[N])})},yt.prototype.shift=function(){return ms(this,1)},yt.prototype.merge=function(){return zl(this,void 0,arguments)},yt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return zl(this,m,x)},yt.prototype.mergeDeep=function(){return zl(this,Bl,arguments)},yt.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return zl(this,$l(m),x)},yt.prototype.setSize=function(m){return ms(this,0,m)},yt.prototype.slice=function(m,x){var N=this.size;return ee(m,x,N)?this:ms(this,G(m,N),Z(x,N))},yt.prototype.__iterator=function(m,x){var N=0,F=et(this,x);return new re(function(){var B=F();return B===qi?V():W(m,N++,B)})},yt.prototype.__iterate=function(m,x){for(var N=0,F=et(this,x),B;(B=F())!==qi&&m(B,N++,this)!==!1;);return N},yt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?nt(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function rr(m){return!!(m&&m[$s])}yt.isList=rr;var $s="@@__IMMUTABLE_LIST__@@",sr=yt.prototype;sr[$s]=!0,sr[E]=sr.remove,sr.setIn=Oe.setIn,sr.deleteIn=sr.removeIn=Oe.removeIn,sr.update=Oe.update,sr.updateIn=Oe.updateIn,sr.mergeIn=Oe.mergeIn,sr.mergeDeepIn=Oe.mergeDeepIn,sr.withMutations=Oe.withMutations,sr.asMutable=Oe.asMutable,sr.asImmutable=Oe.asImmutable,sr.wasAltered=Oe.wasAltered;function Rn(m,x){this.array=m,this.ownerID=x}Rn.prototype.removeBefore=function(m,x,N){if(N===x?1<<x:this.array.length===0)return this;var F=N>>>x&w;if(F>=this.array.length)return new Rn([],m);var B=F===0,J;if(x>0){var Q=this.array[F];if(J=Q&&Q.removeBefore(m,x-b,N),J===Q&&B)return this}if(B&&!J)return this;var le=hs(this,m);if(!B)for(var _e=0;_e<F;_e++)le.array[_e]=void 0;return J&&(le.array[F]=J),le},Rn.prototype.removeAfter=function(m,x,N){if(N===(x?1<<x:0)||this.array.length===0)return this;var F=N-1>>>x&w;if(F>=this.array.length)return this;var B;if(x>0){var J=this.array[F];if(B=J&&J.removeAfter(m,x-b,N),B===J&&F===this.array.length-1)return this}var Q=hs(this,m);return Q.array.splice(F+1),B&&(Q.array[F]=B),Q};var qi={};function et(m,x){var N=m._origin,F=m._capacity,B=xo(F),J=m._tail;return Q(m._root,m._level,0);function Q(Ae,Ie,We){return Ie===0?le(Ae,We):_e(Ae,Ie,We)}function le(Ae,Ie){var We=Ie===B?J&&J.array:Ae&&Ae.array,Xe=Ie>N?0:N-Ie,ht=F-Ie;return ht>_&&(ht=_),function(){if(Xe===ht)return qi;var At=x?--ht:Xe++;return We&&We[At]}}function _e(Ae,Ie,We){var Xe,ht=Ae&&Ae.array,At=We>N?0:N-We>>Ie,er=(F-We>>Ie)+1;return er>_&&(er=_),function(){do{if(Xe){var Wn=Xe();if(Wn!==qi)return Wn;Xe=null}if(At===er)return qi;var yi=x?--er:At++;Xe=Q(ht&&ht[yi],Ie-b,We+(yi<<Ie))}while(!0)}}}function nt(m,x,N,F,B,J,Q){var le=Object.create(sr);return le.size=x-m,le._origin=m,le._capacity=x,le._level=N,le._root=F,le._tail=B,le.__ownerID=J,le.__hash=Q,le.__altered=!1,le}var Et;function Nt(){return Et||(Et=nt(0,0,b))}function Br(m,x,N){if(x=M(m,x),x!==x)return m;if(x>=m.size||x<0)return m.withMutations(function(Q){x<0?ms(Q,x).set(0,N):ms(Q,0,x+1).set(x,N)});x+=m._origin;var F=m._tail,B=m._root,J=T(I);return x>=xo(m._capacity)?F=ds(F,m.__ownerID,0,x,N,J):B=ds(B,m.__ownerID,m._level,x,N,J),J.value?m.__ownerID?(m._root=B,m._tail=F,m.__hash=void 0,m.__altered=!0,m):nt(m._origin,m._capacity,m._level,B,F):m}function ds(m,x,N,F,B,J){var Q=F>>>N&w,le=m&&Q<m.array.length;if(!le&&B===void 0)return m;var _e;if(N>0){var Ae=m&&m.array[Q],Ie=ds(Ae,x,N-b,F,B,J);return Ie===Ae?m:(_e=hs(m,x),_e.array[Q]=Ie,_e)}return le&&m.array[Q]===B?m:(k(J),_e=hs(m,x),B===void 0&&Q===_e.array.length-1?_e.array.pop():_e.array[Q]=B,_e)}function hs(m,x){return x&&m&&x===m.ownerID?m:new Rn(m?m.array.slice():[],x)}function o2(m,x){if(x>=xo(m._capacity))return m._tail;if(x<1<<m._level+b){for(var N=m._root,F=m._level;N&&F>0;)N=N.array[x>>>F&w],F-=b;return N}}function ms(m,x,N){x!==void 0&&(x=x|0),N!==void 0&&(N=N|0);var F=m.__ownerID||new D,B=m._origin,J=m._capacity,Q=B+x,le=N===void 0?J:N<0?J+N:B+N;if(Q===B&&le===J)return m;if(Q>=le)return m.clear();for(var _e=m._level,Ae=m._root,Ie=0;Q+Ie<0;)Ae=new Rn(Ae&&Ae.array.length?[void 0,Ae]:[],F),_e+=b,Ie+=1<<_e;Ie&&(Q+=Ie,B+=Ie,le+=Ie,J+=Ie);for(var We=xo(J),Xe=xo(le);Xe>=1<<_e+b;)Ae=new Rn(Ae&&Ae.array.length?[Ae]:[],F),_e+=b;var ht=m._tail,At=Xe<We?o2(m,le-1):Xe>We?new Rn([],F):ht;if(ht&&Xe>We&&Q<J&&ht.array.length){Ae=hs(Ae,F);for(var er=Ae,Wn=_e;Wn>b;Wn-=b){var yi=We>>>Wn&w;er=er.array[yi]=hs(er.array[yi],F)}er.array[We>>>b&w]=ht}if(le<J&&(At=At&&At.removeAfter(F,0,le)),Q>=Xe)Q-=Xe,le-=Xe,_e=b,Ae=null,At=At&&At.removeBefore(F,0,Q);else if(Q>B||Xe<We){for(Ie=0;Ae;){var Xl=Q>>>_e&w;if(Xl!==Xe>>>_e&w)break;Xl&&(Ie+=(1<<_e)*Xl),_e-=b,Ae=Ae.array[Xl]}Ae&&Q>B&&(Ae=Ae.removeBefore(F,_e,Q-Ie)),Ae&&Xe<We&&(Ae=Ae.removeAfter(F,_e,Xe-Ie)),Ie&&(Q-=Ie,le-=Ie)}return m.__ownerID?(m.size=le-Q,m._origin=Q,m._capacity=le,m._level=_e,m._root=Ae,m._tail=At,m.__hash=void 0,m.__altered=!0,m):nt(Q,le,_e,Ae,At)}function zl(m,x,N){for(var F=[],B=0,J=0;J<N.length;J++){var Q=N[J],le=a(Q);le.size>B&&(B=le.size),u(Q)||(le=le.map(function(_e){return se(_e)})),F.push(le)}return B>m.size&&(m=m.setSize(B)),Ll(m,x,F)}function xo(m){return m<_?0:m-1>>>b<<b}n(fr,xt);function fr(m){return m==null?Wl():u2(m)?m:Wl().withMutations(function(x){var N=s(m);Er(N.size),N.forEach(function(F,B){return x.set(B,F)})})}fr.of=function(){return this(arguments)},fr.prototype.toString=function(){return this.__toString("OrderedMap {","}")},fr.prototype.get=function(m,x){var N=this._map.get(m);return N!==void 0?this._list.get(N)[1]:x},fr.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Wl()},fr.prototype.set=function(m,x){return c2(this,m,x)},fr.prototype.remove=function(m){return c2(this,m,S)},fr.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},fr.prototype.__iterate=function(m,x){var N=this;return this._list.__iterate(function(F){return F&&m(F[1],F[0],N)},x)},fr.prototype.__iterator=function(m,x){return this._list.fromEntrySeq().__iterator(m,x)},fr.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m),N=this._list.__ensureOwner(m);return m?Kp(x,N,m,this.__hash):(this.__ownerID=m,this._map=x,this._list=N,this)};function u2(m){return Qe(m)&&h(m)}fr.isOrderedMap=u2,fr.prototype[v]=!0,fr.prototype[E]=fr.prototype.remove;function Kp(m,x,N,F){var B=Object.create(fr.prototype);return B.size=m?m.size:0,B._map=m,B._list=x,B.__ownerID=N,B.__hash=F,B}var l2;function Wl(){return l2||(l2=Kp(ze(),Nt()))}function c2(m,x,N){var F=m._map,B=m._list,J=F.get(x),Q=J!==void 0,le,_e;if(N===S){if(!Q)return m;B.size>=_&&B.size>=F.size*2?(_e=B.filter(function(Ae,Ie){return Ae!==void 0&&J!==Ie}),le=_e.toKeyedSeq().map(function(Ae){return Ae[0]}).flip().toMap(),m.__ownerID&&(le.__ownerID=_e.__ownerID=m.__ownerID)):(le=F.remove(x),_e=J===B.size-1?B.pop():B.set(J,void 0))}else if(Q){if(N===B.get(J)[1])return m;le=F,_e=B.set(J,[x,N])}else le=F.set(x,B.size),_e=B.set(B.size,[x,N]);return m.__ownerID?(m.size=le.size,m._map=le,m._list=_e,m.__hash=void 0,m):Kp(le,_e)}n(In,Le);function In(m,x){this._iter=m,this._useKeys=x,this.size=m.size}In.prototype.get=function(m,x){return this._iter.get(m,x)},In.prototype.has=function(m){return this._iter.has(m)},In.prototype.valueSeq=function(){return this._iter.valueSeq()},In.prototype.reverse=function(){var m=this,x=Gp(this,!0);return this._useKeys||(x.valueSeq=function(){return m._iter.toSeq().reverse()}),x},In.prototype.map=function(m,x){var N=this,F=p2(this,m,x);return this._useKeys||(F.valueSeq=function(){return N._iter.toSeq().map(m,x)}),F},In.prototype.__iterate=function(m,x){var N=this,F;return this._iter.__iterate(this._useKeys?function(B,J){return m(B,J,N)}:(F=x?v2(this):0,function(B){return m(B,x?--F:F++,N)}),x)},In.prototype.__iterator=function(m,x){if(this._useKeys)return this._iter.__iterator(m,x);var N=this._iter.__iterator(ce,x),F=x?v2(this):0;return new re(function(){var B=N.next();return B.done?B:W(m,x?--F:F++,B.value,B)})},In.prototype[v]=!0,n(Ea,ge);function Ea(m){this._iter=m,this.size=m.size}Ea.prototype.includes=function(m){return this._iter.includes(m)},Ea.prototype.__iterate=function(m,x){var N=this,F=0;return this._iter.__iterate(function(B){return m(B,F++,N)},x)},Ea.prototype.__iterator=function(m,x){var N=this._iter.__iterator(ce,x),F=0;return new re(function(){var B=N.next();return B.done?B:W(m,F++,B.value,B)})},n(Sa,Se);function Sa(m){this._iter=m,this.size=m.size}Sa.prototype.has=function(m){return this._iter.includes(m)},Sa.prototype.__iterate=function(m,x){var N=this;return this._iter.__iterate(function(F){return m(F,F,N)},x)},Sa.prototype.__iterator=function(m,x){var N=this._iter.__iterator(ce,x);return new re(function(){var F=N.next();return F.done?F:W(m,F.value,F.value,F)})},n(_a,Le);function _a(m){this._iter=m,this.size=m.size}_a.prototype.entrySeq=function(){return this._iter.toSeq()},_a.prototype.__iterate=function(m,x){var N=this;return this._iter.__iterate(function(F){if(F){y2(F);var B=u(F);return m(B?F.get(1):F[1],B?F.get(0):F[0],N)}},x)},_a.prototype.__iterator=function(m,x){var N=this._iter.__iterator(ce,x);return new re(function(){for(;;){var F=N.next();if(F.done)return F;var B=F.value;if(B){y2(B);var J=u(B);return W(m,J?B.get(0):B[0],J?B.get(1):B[1],F)}}})},Ea.prototype.cacheResult=In.prototype.cacheResult=Sa.prototype.cacheResult=_a.prototype.cacheResult=Zp;function f2(m){var x=hi(m);return x._iter=m,x.size=m.size,x.flip=function(){return m},x.reverse=function(){var N=m.reverse.apply(this);return N.flip=function(){return m.reverse()},N},x.has=function(N){return m.includes(N)},x.includes=function(N){return m.has(N)},x.cacheResult=Zp,x.__iterateUncached=function(N,F){var B=this;return m.__iterate(function(J,Q){return N(Q,J,B)!==!1},F)},x.__iteratorUncached=function(N,F){if(N===ie){var B=m.__iterator(N,F);return new re(function(){var J=B.next();if(!J.done){var Q=J.value[0];J.value[0]=J.value[1],J.value[1]=Q}return J})}return m.__iterator(N===ce?te:ce,F)},x}function p2(m,x,N){var F=hi(m);return F.size=m.size,F.has=function(B){return m.has(B)},F.get=function(B,J){var Q=m.get(B,S);return Q===S?J:x.call(N,Q,B,m)},F.__iterateUncached=function(B,J){var Q=this;return m.__iterate(function(le,_e,Ae){return B(x.call(N,le,_e,Ae),_e,Q)!==!1},J)},F.__iteratorUncached=function(B,J){var Q=m.__iterator(ie,J);return new re(function(){var le=Q.next();if(le.done)return le;var _e=le.value,Ae=_e[0];return W(B,Ae,x.call(N,_e[1],Ae,m),le)})},F}function Gp(m,x){var N=hi(m);return N._iter=m,N.size=m.size,N.reverse=function(){return m},m.flip&&(N.flip=function(){var F=f2(m);return F.reverse=function(){return m.flip()},F}),N.get=function(F,B){return m.get(x?F:-1-F,B)},N.has=function(F){return m.has(x?F:-1-F)},N.includes=function(F){return m.includes(F)},N.cacheResult=Zp,N.__iterate=function(F,B){var J=this;return m.__iterate(function(Q,le){return F(Q,le,J)},!B)},N.__iterator=function(F,B){return m.__iterator(F,!B)},N}function d2(m,x,N,F){var B=hi(m);return F&&(B.has=function(J){var Q=m.get(J,S);return Q!==S&&!!x.call(N,Q,J,m)},B.get=function(J,Q){var le=m.get(J,S);return le!==S&&x.call(N,le,J,m)?le:Q}),B.__iterateUncached=function(J,Q){var le=this,_e=0;return m.__iterate(function(Ae,Ie,We){if(x.call(N,Ae,Ie,We))return _e++,J(Ae,F?Ie:_e-1,le)},Q),_e},B.__iteratorUncached=function(J,Q){var le=m.__iterator(ie,Q),_e=0;return new re(function(){for(;;){var Ae=le.next();if(Ae.done)return Ae;var Ie=Ae.value,We=Ie[0],Xe=Ie[1];if(x.call(N,Xe,We,m))return W(J,F?We:_e++,Xe,Ae)}})},B}function XU(m,x,N){var F=xt().asMutable();return m.__iterate(function(B,J){F.update(x.call(N,B,J,m),0,function(Q){return Q+1})}),F.asImmutable()}function ZU(m,x,N){var F=l(m),B=(h(m)?fr():xt()).asMutable();m.__iterate(function(Q,le){B.update(x.call(N,Q,le,m),function(_e){return _e=_e||[],_e.push(F?[le,Q]:Q),_e})});var J=b2(m);return B.map(function(Q){return Ht(m,J(Q))})}function Yp(m,x,N,F){var B=m.size;if(x!==void 0&&(x=x|0),N!==void 0&&(N===1/0?N=B:N=N|0),ee(x,N,B))return m;var J=G(x,B),Q=Z(N,B);if(J!==J||Q!==Q)return Yp(m.toSeq().cacheResult(),x,N,F);var le=Q-J,_e;le===le&&(_e=le<0?0:le);var Ae=hi(m);return Ae.size=_e===0?_e:m.size&&_e||void 0,!F&&Y(m)&&_e>=0&&(Ae.get=function(Ie,We){return Ie=M(this,Ie),Ie>=0&&Ie<_e?m.get(Ie+J,We):We}),Ae.__iterateUncached=function(Ie,We){var Xe=this;if(_e===0)return 0;if(We)return this.cacheResult().__iterate(Ie,We);var ht=0,At=!0,er=0;return m.__iterate(function(Wn,yi){if(!(At&&(At=ht++<J)))return er++,Ie(Wn,F?yi:er-1,Xe)!==!1&&er!==_e}),er},Ae.__iteratorUncached=function(Ie,We){if(_e!==0&&We)return this.cacheResult().__iterator(Ie,We);var Xe=_e!==0&&m.__iterator(Ie,We),ht=0,At=0;return new re(function(){for(;ht++<J;)Xe.next();if(++At>_e)return V();var er=Xe.next();return F||Ie===ce?er:Ie===te?W(Ie,At-1,void 0,er):W(Ie,At-1,er.value[1],er)})},Ae}function QU(m,x,N){var F=hi(m);return F.__iterateUncached=function(B,J){var Q=this;if(J)return this.cacheResult().__iterate(B,J);var le=0;return m.__iterate(function(_e,Ae,Ie){return x.call(N,_e,Ae,Ie)&&++le&&B(_e,Ae,Q)}),le},F.__iteratorUncached=function(B,J){var Q=this;if(J)return this.cacheResult().__iterator(B,J);var le=m.__iterator(ie,J),_e=!0;return new re(function(){if(!_e)return V();var Ae=le.next();if(Ae.done)return Ae;var Ie=Ae.value,We=Ie[0],Xe=Ie[1];return x.call(N,Xe,We,Q)?B===ie?Ae:W(B,We,Xe,Ae):(_e=!1,V())})},F}function h2(m,x,N,F){var B=hi(m);return B.__iterateUncached=function(J,Q){var le=this;if(Q)return this.cacheResult().__iterate(J,Q);var _e=!0,Ae=0;return m.__iterate(function(Ie,We,Xe){if(!(_e&&(_e=x.call(N,Ie,We,Xe))))return Ae++,J(Ie,F?We:Ae-1,le)}),Ae},B.__iteratorUncached=function(J,Q){var le=this;if(Q)return this.cacheResult().__iterator(J,Q);var _e=m.__iterator(ie,Q),Ae=!0,Ie=0;return new re(function(){var We,Xe,ht;do{if(We=_e.next(),We.done)return F||J===ce?We:J===te?W(J,Ie++,void 0,We):W(J,Ie++,We.value[1],We);var At=We.value;Xe=At[0],ht=At[1],Ae&&(Ae=x.call(N,ht,Xe,le))}while(Ae);return J===ie?We:W(J,Xe,ht,We)})},B}function e9(m,x){var N=l(m),F=[m].concat(x).map(function(Q){return u(Q)?N&&(Q=s(Q)):Q=N?Ne(Q):Ge(Array.isArray(Q)?Q:[Q]),Q}).filter(function(Q){return Q.size!==0});if(F.length===0)return m;if(F.length===1){var B=F[0];if(B===m||N&&l(B)||c(m)&&c(B))return B}var J=new L(F);return N?J=J.toKeyedSeq():c(m)||(J=J.toSetSeq()),J=J.flatten(!0),J.size=F.reduce(function(Q,le){if(Q!==void 0){var _e=le.size;if(_e!==void 0)return Q+_e}},0),J}function m2(m,x,N){var F=hi(m);return F.__iterateUncached=function(B,J){var Q=0,le=!1;function _e(Ae,Ie){var We=this;Ae.__iterate(function(Xe,ht){return(!x||Ie<x)&&u(Xe)?_e(Xe,Ie+1):B(Xe,N?ht:Q++,We)===!1&&(le=!0),!le},J)}return _e(m,0),Q},F.__iteratorUncached=function(B,J){var Q=m.__iterator(B,J),le=[],_e=0;return new re(function(){for(;Q;){var Ae=Q.next();if(Ae.done!==!1){Q=le.pop();continue}var Ie=Ae.value;if(B===ie&&(Ie=Ie[1]),(!x||le.length<x)&&u(Ie))le.push(Q),Q=Ie.__iterator(B,J);else return N?Ae:W(B,_e++,Ie,Ae)}return V()})},F}function t9(m,x,N){var F=b2(m);return m.toSeq().map(function(B,J){return F(x.call(N,B,J,m))}).flatten(!0)}function r9(m,x){var N=hi(m);return N.size=m.size&&m.size*2-1,N.__iterateUncached=function(F,B){var J=this,Q=0;return m.__iterate(function(le,_e){return(!Q||F(x,Q++,J)!==!1)&&F(le,Q++,J)!==!1},B),Q},N.__iteratorUncached=function(F,B){var J=m.__iterator(ce,B),Q=0,le;return new re(function(){return(!le||Q%2)&&(le=J.next(),le.done)?le:Q%2?W(F,Q++,x):W(F,Q++,le.value,le)})},N}function wa(m,x,N){x||(x=E2);var F=l(m),B=0,J=m.toSeq().map(function(Q,le){return[le,Q,B++,N?N(Q,le,m):Q]}).toArray();return J.sort(function(Q,le){return x(Q[3],le[3])||Q[2]-le[2]}).forEach(F?function(Q,le){J[le].length=2}:function(Q,le){J[le]=Q[1]}),F?Le(J):c(m)?ge(J):Se(J)}function Jl(m,x,N){if(x||(x=E2),N){var F=m.toSeq().map(function(B,J){return[B,N(B,J,m)]}).reduce(function(B,J){return g2(x,B[1],J[1])?J:B});return F&&F[0]}else return m.reduce(function(B,J){return g2(x,B,J)?J:B})}function g2(m,x,N){var F=m(N,x);return F===0&&N!==x&&(N==null||N!==N)||F>0}function Xp(m,x,N){var F=hi(m);return F.size=new L(N).map(function(B){return B.size}).min(),F.__iterate=function(B,J){for(var Q=this.__iterator(ce,J),le,_e=0;!(le=Q.next()).done&&B(le.value,_e++,this)!==!1;);return _e},F.__iteratorUncached=function(B,J){var Q=N.map(function(Ae){return Ae=i(Ae),Me(J?Ae.reverse():Ae)}),le=0,_e=!1;return new re(function(){var Ae;return _e||(Ae=Q.map(function(Ie){return Ie.next()}),_e=Ae.some(function(Ie){return Ie.done})),_e?V():W(B,le++,x.apply(null,Ae.map(function(Ie){return Ie.value})))})},F}function Ht(m,x){return Y(m)?x:m.constructor(x)}function y2(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function v2(m){return Er(m.size),$(m)}function b2(m){return l(m)?s:c(m)?a:o}function hi(m){return Object.create((l(m)?Le:c(m)?ge:Se).prototype)}function Zp(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Pe.prototype.cacheResult.call(this)}function E2(m,x){return m>x?1:m<x?-1:0}function S2(m){var x=Me(m);if(!x){if(!Te(m))throw new TypeError("Expected iterable or array-like: "+m);x=Me(i(m))}return x}n(gn,St);function gn(m,x){var N,F=function(Q){if(Q instanceof F)return Q;if(!(this instanceof F))return new F(Q);if(!N){N=!0;var le=Object.keys(m);n9(B,le),B.size=le.length,B._name=x,B._keys=le,B._defaultValues=m}this._map=xt(Q)},B=F.prototype=Object.create(Ir);return B.constructor=F,F}gn.prototype.toString=function(){return this.__toString(_2(this)+" {","}")},gn.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},gn.prototype.get=function(m,x){if(!this.has(m))return x;var N=this._defaultValues[m];return this._map?this._map.get(m,N):N},gn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=Hl(this,ze()))},gn.prototype.set=function(m,x){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+_2(this));if(this._map&&!this._map.has(m)){var N=this._defaultValues[m];if(x===N)return this}var F=this._map&&this._map.set(m,x);return this.__ownerID||F===this._map?this:Hl(this,F)},gn.prototype.remove=function(m){if(!this.has(m))return this;var x=this._map&&this._map.remove(m);return this.__ownerID||x===this._map?this:Hl(this,x)},gn.prototype.wasAltered=function(){return this._map.wasAltered()},gn.prototype.__iterator=function(m,x){var N=this;return s(this._defaultValues).map(function(F,B){return N.get(B)}).__iterator(m,x)},gn.prototype.__iterate=function(m,x){var N=this;return s(this._defaultValues).map(function(F,B){return N.get(B)}).__iterate(m,x)},gn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map&&this._map.__ensureOwner(m);return m?Hl(this,x,m):(this.__ownerID=m,this._map=x,this)};var Ir=gn.prototype;Ir[E]=Ir.remove,Ir.deleteIn=Ir.removeIn=Oe.removeIn,Ir.merge=Oe.merge,Ir.mergeWith=Oe.mergeWith,Ir.mergeIn=Oe.mergeIn,Ir.mergeDeep=Oe.mergeDeep,Ir.mergeDeepWith=Oe.mergeDeepWith,Ir.mergeDeepIn=Oe.mergeDeepIn,Ir.setIn=Oe.setIn,Ir.update=Oe.update,Ir.updateIn=Oe.updateIn,Ir.withMutations=Oe.withMutations,Ir.asMutable=Oe.asMutable,Ir.asImmutable=Oe.asImmutable;function Hl(m,x,N){var F=Object.create(Object.getPrototypeOf(m));return F._map=x,F.__ownerID=N,F}function _2(m){return m._name||m.constructor.name||"Record"}function n9(m,x){try{x.forEach(i9.bind(void 0,m))}catch{}}function i9(m,x){Object.defineProperty(m,x,{get:function(){return this.get(x)},set:function(N){Ce(this.__ownerID,"Cannot set on an immutable record."),this.set(x,N)}})}n(Qt,De);function Qt(m){return m==null?td():Qp(m)&&!h(m)?m:td().withMutations(function(x){var N=o(m);Er(N.size),N.forEach(function(F){return x.add(F)})})}Qt.of=function(){return this(arguments)},Qt.fromKeys=function(m){return this(s(m).keySeq())},Qt.prototype.toString=function(){return this.__toString("Set {","}")},Qt.prototype.has=function(m){return this._map.has(m)},Qt.prototype.add=function(m){return ed(this,this._map.set(m,!0))},Qt.prototype.remove=function(m){return ed(this,this._map.remove(m))},Qt.prototype.clear=function(){return ed(this,this._map.clear())},Qt.prototype.union=function(){var m=r.call(arguments,0);return m=m.filter(function(x){return x.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(x){for(var N=0;N<m.length;N++)o(m[N]).forEach(function(F){return x.add(F)})})},Qt.prototype.intersect=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(N){return o(N)});var x=this;return this.withMutations(function(N){x.forEach(function(F){m.every(function(B){return B.includes(F)})||N.remove(F)})})},Qt.prototype.subtract=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(N){return o(N)});var x=this;return this.withMutations(function(N){x.forEach(function(F){m.some(function(B){return B.includes(F)})&&N.remove(F)})})},Qt.prototype.merge=function(){return this.union.apply(this,arguments)},Qt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return this.union.apply(this,x)},Qt.prototype.sort=function(m){return mi(wa(this,m))},Qt.prototype.sortBy=function(m,x){return mi(wa(this,x,m))},Qt.prototype.wasAltered=function(){return this._map.wasAltered()},Qt.prototype.__iterate=function(m,x){var N=this;return this._map.__iterate(function(F,B){return m(B,B,N)},x)},Qt.prototype.__iterator=function(m,x){return this._map.map(function(N,F){return F}).__iterator(m,x)},Qt.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m);return m?this.__make(x,m):(this.__ownerID=m,this._map=x,this)};function Qp(m){return!!(m&&m[w2])}Qt.isSet=Qp;var w2="@@__IMMUTABLE_SET__@@",yn=Qt.prototype;yn[w2]=!0,yn[E]=yn.remove,yn.mergeDeep=yn.merge,yn.mergeDeepWith=yn.mergeWith,yn.withMutations=Oe.withMutations,yn.asMutable=Oe.asMutable,yn.asImmutable=Oe.asImmutable,yn.__empty=td,yn.__make=x2;function ed(m,x){return m.__ownerID?(m.size=x.size,m._map=x,m):x===m._map?m:x.size===0?m.__empty():m.__make(x)}function x2(m,x){var N=Object.create(yn);return N.size=m?m.size:0,N._map=m,N.__ownerID=x,N}var A2;function td(){return A2||(A2=x2(ze()))}n(mi,Qt);function mi(m){return m==null?rd():O2(m)?m:rd().withMutations(function(x){var N=o(m);Er(N.size),N.forEach(function(F){return x.add(F)})})}mi.of=function(){return this(arguments)},mi.fromKeys=function(m){return this(s(m).keySeq())},mi.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function O2(m){return Qp(m)&&h(m)}mi.isOrderedSet=O2;var Kl=mi.prototype;Kl[v]=!0,Kl.__empty=rd,Kl.__make=C2;function C2(m,x){var N=Object.create(Kl);return N.size=m?m.size:0,N._map=m,N.__ownerID=x,N}var R2;function rd(){return R2||(R2=C2(Wl()))}n(pr,Lt);function pr(m){return m==null?nd():I2(m)?m:nd().unshiftAll(m)}pr.of=function(){return this(arguments)},pr.prototype.toString=function(){return this.__toString("Stack [","]")},pr.prototype.get=function(m,x){var N=this._head;for(m=M(this,m);N&&m--;)N=N.next;return N?N.value:x},pr.prototype.peek=function(){return this._head&&this._head.value},pr.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,x=this._head,N=arguments.length-1;N>=0;N--)x={value:arguments[N],next:x};return this.__ownerID?(this.size=m,this._head=x,this.__hash=void 0,this.__altered=!0,this):Ao(m,x)},pr.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;Er(m.size);var x=this.size,N=this._head;return m.reverse().forEach(function(F){x++,N={value:F,next:N}}),this.__ownerID?(this.size=x,this._head=N,this.__hash=void 0,this.__altered=!0,this):Ao(x,N)},pr.prototype.pop=function(){return this.slice(1)},pr.prototype.unshift=function(){return this.push.apply(this,arguments)},pr.prototype.unshiftAll=function(m){return this.pushAll(m)},pr.prototype.shift=function(){return this.pop.apply(this,arguments)},pr.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):nd()},pr.prototype.slice=function(m,x){if(ee(m,x,this.size))return this;var N=G(m,this.size),F=Z(x,this.size);if(F!==this.size)return Lt.prototype.slice.call(this,m,x);for(var B=this.size-N,J=this._head;N--;)J=J.next;return this.__ownerID?(this.size=B,this._head=J,this.__hash=void 0,this.__altered=!0,this):Ao(B,J)},pr.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Ao(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},pr.prototype.__iterate=function(m,x){if(x)return this.reverse().__iterate(m);for(var N=0,F=this._head;F&&m(F.value,N++,this)!==!1;)F=F.next;return N},pr.prototype.__iterator=function(m,x){if(x)return this.reverse().__iterator(m);var N=0,F=this._head;return new re(function(){if(F){var B=F.value;return F=F.next,W(m,N++,B)}return V()})};function I2(m){return!!(m&&m[T2])}pr.isStack=I2;var T2="@@__IMMUTABLE_STACK__@@",xa=pr.prototype;xa[T2]=!0,xa.withMutations=Oe.withMutations,xa.asMutable=Oe.asMutable,xa.asImmutable=Oe.asImmutable,xa.wasAltered=Oe.wasAltered;function Ao(m,x,N,F){var B=Object.create(xa);return B.size=m,B._head=x,B.__ownerID=N,B.__hash=F,B.__altered=!1,B}var P2;function nd(){return P2||(P2=Ao(0))}function gi(m,x){var N=function(F){m.prototype[F]=x[F]};return Object.keys(x).forEach(N),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(x).forEach(N),m}i.Iterator=re,gi(i,{toArray:function(){Er(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(x,N){m[N]=x}),m},toIndexedSeq:function(){return new Ea(this)},toJS:function(){return this.toSeq().map(function(m){return m&&typeof m.toJS=="function"?m.toJS():m}).__toJS()},toJSON:function(){return this.toSeq().map(function(m){return m&&typeof m.toJSON=="function"?m.toJSON():m}).__toJS()},toKeyedSeq:function(){return new In(this,!0)},toMap:function(){return xt(this.toKeyedSeq())},toObject:function(){Er(this.size);var m={};return this.__iterate(function(x,N){m[N]=x}),m},toOrderedMap:function(){return fr(this.toKeyedSeq())},toOrderedSet:function(){return mi(l(this)?this.valueSeq():this)},toSet:function(){return Qt(l(this)?this.valueSeq():this)},toSetSeq:function(){return new Sa(this)},toSeq:function(){return c(this)?this.toIndexedSeq():l(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return pr(l(this)?this.valueSeq():this)},toList:function(){return yt(l(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,x){return this.size===0?m+x:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+x},concat:function(){var m=r.call(arguments,0);return Ht(this,e9(this,m))},includes:function(m){return this.some(function(x){return st(x,m)})},entries:function(){return this.__iterator(ie)},every:function(m,x){Er(this.size);var N=!0;return this.__iterate(function(F,B,J){if(!m.call(x,F,B,J))return N=!1,!1}),N},filter:function(m,x){return Ht(this,d2(this,m,x,!0))},find:function(m,x,N){var F=this.findEntry(m,x);return F?F[1]:N},forEach:function(m,x){return Er(this.size),this.__iterate(x?m.bind(x):m)},join:function(m){Er(this.size),m=m!==void 0?""+m:",";var x="",N=!0;return this.__iterate(function(F){N?N=!1:x+=m,x+=F!=null?F.toString():""}),x},keys:function(){return this.__iterator(te)},map:function(m,x){return Ht(this,p2(this,m,x))},reduce:function(m,x,N){Er(this.size);var F,B;return arguments.length<2?B=!0:F=x,this.__iterate(function(J,Q,le){B?(B=!1,F=J):F=m.call(N,F,J,Q,le)}),F},reduceRight:function(m,x,N){var F=this.toKeyedSeq().reverse();return F.reduce.apply(F,arguments)},reverse:function(){return Ht(this,Gp(this,!0))},slice:function(m,x){return Ht(this,Yp(this,m,x,!0))},some:function(m,x){return!this.every(Yl(m),x)},sort:function(m){return Ht(this,wa(this,m))},values:function(){return this.__iterator(ce)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(m,x){return $(m?this.toSeq().filter(m,x):this)},countBy:function(m,x){return XU(this,m,x)},equals:function(m){return Pt(this,m)},entrySeq:function(){var m=this;if(m._cache)return new L(m._cache);var x=m.toSeq().map(a9).toIndexedSeq();return x.fromEntrySeq=function(){return m.toSeq()},x},filterNot:function(m,x){return this.filter(Yl(m),x)},findEntry:function(m,x,N){var F=N;return this.__iterate(function(B,J,Q){if(m.call(x,B,J,Q))return F=[J,B],!1}),F},findKey:function(m,x){var N=this.findEntry(m,x);return N&&N[0]},findLast:function(m,x,N){return this.toKeyedSeq().reverse().find(m,x,N)},findLastEntry:function(m,x,N){return this.toKeyedSeq().reverse().findEntry(m,x,N)},findLastKey:function(m,x){return this.toKeyedSeq().reverse().findKey(m,x)},first:function(){return this.find(K)},flatMap:function(m,x){return Ht(this,t9(this,m,x))},flatten:function(m){return Ht(this,m2(this,m,!0))},fromEntrySeq:function(){return new _a(this)},get:function(m,x){return this.find(function(N,F){return st(F,m)},void 0,x)},getIn:function(m,x){for(var N=this,F=S2(m),B;!(B=F.next()).done;){var J=B.value;if(N=N&&N.get?N.get(J,S):S,N===S)return x}return N},groupBy:function(m,x){return ZU(this,m,x)},has:function(m){return this.get(m,S)!==S},hasIn:function(m){return this.getIn(m,S)!==S},isSubset:function(m){return m=typeof m.includes=="function"?m:i(m),this.every(function(x){return m.includes(x)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:i(m),m.isSubset(this)},keyOf:function(m){return this.findKey(function(x){return st(x,m)})},keySeq:function(){return this.toSeq().map(s9).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(m){return this.toKeyedSeq().reverse().keyOf(m)},max:function(m){return Jl(this,m)},maxBy:function(m,x){return Jl(this,x,m)},min:function(m){return Jl(this,m?k2(m):N2)},minBy:function(m,x){return Jl(this,x?k2(x):N2,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return Ht(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,x){return Ht(this,h2(this,m,x,!0))},skipUntil:function(m,x){return this.skipWhile(Yl(m),x)},sortBy:function(m,x){return Ht(this,wa(this,x,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return Ht(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,x){return Ht(this,QU(this,m,x))},takeUntil:function(m,x){return this.takeWhile(Yl(m),x)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=u9(this))}});var Kr=i.prototype;Kr[d]=!0,Kr[he]=Kr.values,Kr.__toJS=Kr.toArray,Kr.__toStringMapper=j2,Kr.inspect=Kr.toSource=function(){return this.toString()},Kr.chain=Kr.flatMap,Kr.contains=Kr.includes,gi(s,{flip:function(){return Ht(this,f2(this))},mapEntries:function(m,x){var N=this,F=0;return Ht(this,this.toSeq().map(function(B,J){return m.call(x,[J,B],F++,N)}).fromEntrySeq())},mapKeys:function(m,x){var N=this;return Ht(this,this.toSeq().flip().map(function(F,B){return m.call(x,F,B,N)}).flip())}});var Gl=s.prototype;Gl[g]=!0,Gl[he]=Kr.entries,Gl.__toJS=Kr.toObject,Gl.__toStringMapper=function(m,x){return JSON.stringify(x)+": "+j2(m)},gi(a,{toKeyedSeq:function(){return new In(this,!1)},filter:function(m,x){return Ht(this,d2(this,m,x,!1))},findIndex:function(m,x){var N=this.findEntry(m,x);return N?N[0]:-1},indexOf:function(m){var x=this.keyOf(m);return x===void 0?-1:x},lastIndexOf:function(m){var x=this.lastKeyOf(m);return x===void 0?-1:x},reverse:function(){return Ht(this,Gp(this,!1))},slice:function(m,x){return Ht(this,Yp(this,m,x,!1))},splice:function(m,x){var N=arguments.length;if(x=Math.max(x|0,0),N===0||N===2&&!x)return this;m=G(m,m<0?this.count():this.size);var F=this.slice(0,m);return Ht(this,N===1?F:F.concat(R(arguments,2),this.slice(m+x)))},findLastIndex:function(m,x){var N=this.findLastEntry(m,x);return N?N[0]:-1},first:function(){return this.get(0)},flatten:function(m){return Ht(this,m2(this,m,!1))},get:function(m,x){return m=M(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?x:this.find(function(N,F){return F===m},void 0,x)},has:function(m){return m=M(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return Ht(this,r9(this,m))},interleave:function(){var m=[this].concat(R(arguments)),x=Xp(this.toSeq(),ge.of,m),N=x.flatten(!0);return x.size&&(N.size=x.size*m.length),Ht(this,N)},keySeq:function(){return je(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(m,x){return Ht(this,h2(this,m,x,!1))},zip:function(){var m=[this].concat(R(arguments));return Ht(this,Xp(this,o9,m))},zipWith:function(m){var x=R(arguments);return x[0]=this,Ht(this,Xp(this,m,x))}}),a.prototype[y]=!0,a.prototype[v]=!0,gi(o,{get:function(m,x){return this.has(m)?m:x},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=Kr.includes,o.prototype.contains=o.prototype.includes,gi(Le,s.prototype),gi(ge,a.prototype),gi(Se,o.prototype),gi(St,s.prototype),gi(Lt,a.prototype),gi(De,o.prototype);function s9(m,x){return x}function a9(m,x){return[x,m]}function Yl(m){return function(){return!m.apply(this,arguments)}}function k2(m){return function(){return-m.apply(this,arguments)}}function j2(m){return typeof m=="string"?JSON.stringify(m):String(m)}function o9(){return R(arguments)}function N2(m,x){return m<x?1:m>x?-1:0}function u9(m){if(m.size===1/0)return 0;var x=h(m),N=l(m),F=x?1:0,B=m.__iterate(N?x?function(J,Q){F=31*F+M2(rt(J),rt(Q))|0}:function(J,Q){F=F+M2(rt(J),rt(Q))|0}:x?function(J){F=31*F+rt(J)|0}:function(J){F=F+rt(J)|0});return l9(B,F)}function l9(m,x){return x=Je(x,3432918353),x=Je(x<<15|x>>>-15,461845907),x=Je(x<<13|x>>>-13,5),x=(x+3864292196|0)^m,x=Je(x^x>>>16,2246822507),x=Je(x^x>>>13,3266489909),x=lt(x^x>>>16),x}function M2(m,x){return m^x+2654435769+(m<<6)+(m>>2)|0}var c9={Iterable:i,Seq:Pe,Collection:pt,Map:xt,OrderedMap:fr,List:yt,Stack:pr,Set:Qt,OrderedSet:mi,Record:gn,Range:je,Repeat:ft,is:st,fromJS:se};return c9})})(Sc)),Sc.exports}var Wi=ff();const k5=ot(Wi);var Co={},ec={exports:{}},$i={},tc={exports:{}},$O;function vF(){return $O||($O=1,(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})(tc,tc.exports)),tc.exports}var rc={exports:{}},LO;function j5(){return LO||(LO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=ff(),n=a(r),i=vF(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}e.default=function(o,u,l){var c=Object.keys(u);if(!c.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var p=(0,s.default)(l);if(n.default.isImmutable?!n.default.isImmutable(o):!n.default.Iterable.isIterable(o))return"The "+p+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+c.join('", "')+'".';var h=o.toSeq().keySeq().toArray().filter(function(d){return!u.hasOwnProperty(d)});return h.length>0?"Unexpected "+(h.length===1?"property":"properties")+' "'+h.join('", "')+'" found in '+p+'. Expected to find one of the known reducer property names instead: "'+c.join('", "')+'". Unexpected properties will be ignored.':null},t.exports=e.default})(rc,rc.exports)),rc.exports}var nc={exports:{}},UO;function N5(){return UO||(UO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(r,n,i){if(r===void 0)throw new Error('Reducer "'+n+'" returned undefined when handling "'+i.type+'" action. To ignore an action, you must explicitly return the previous state.')},t.exports=e.default})(nc,nc.exports)),nc.exports}var VO;function M5(){if(VO)return $i;VO=1,Object.defineProperty($i,"__esModule",{value:!0}),$i.validateNextState=$i.getUnexpectedInvocationParameterMessage=$i.getStateName=void 0;var t=vF(),e=a(t),r=j5(),n=a(r),i=N5(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}return $i.getStateName=e.default,$i.getUnexpectedInvocationParameterMessage=n.default,$i.validateNextState=s.default,$i}var zO;function D5(){return zO||(zO=1,(function(t,e){Object.defineProperty(e,"__esModule",{value:!0});var r=ff(),n=s(r),i=M5();function s(a){return a&&a.__esModule?a:{default:a}}e.default=function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.Map,u=Object.keys(a);return function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),c=arguments[1];return l.withMutations(function(p){u.forEach(function(h){var d=a[h],g=p.get(h),y=d(g,c);(0,i.validateNextState)(y,h,c),p.set(h,y)})})}},t.exports=e.default})(ec,ec.exports)),ec.exports}var WO;function F5(){if(WO)return Co;WO=1,Object.defineProperty(Co,"__esModule",{value:!0}),Co.combineReducers=void 0;var t=D5(),e=r(t);function r(n){return n&&n.__esModule?n:{default:n}}return Co.combineReducers=e.default,Co}var q5=F5(),rh,JO;function B5(){if(JO)return rh;JO=1;class t extends Error{constructor(u){super(t._prepareSuperMessage(u)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,t)}static _prepareSuperMessage(u){try{return JSON.stringify(u)}catch{return String(u)}}}const e=[{property:"name",enumerable:!1},{property:"message",enumerable:!1},{property:"stack",enumerable:!1},{property:"code",enumerable:!0}],r=Symbol(".toJSON called"),n=o=>{o[r]=!0;const u=o.toJSON();return delete o[r],u},i=({from:o,seen:u,to_:l,forceEnumerable:c,maxDepth:p,depth:h})=>{const d=l||(Array.isArray(o)?[]:{});if(u.push(o),h>=p)return d;if(typeof o.toJSON=="function"&&o[r]!==!0)return n(o);for(const[g,y]of Object.entries(o)){if(typeof Buffer=="function"&&Buffer.isBuffer(y)){d[g]="[object Buffer]";continue}if(typeof y!="function"){if(!y||typeof y!="object"){d[g]=y;continue}if(!u.includes(o[g])){h++,d[g]=i({from:o[g],seen:u.slice(),forceEnumerable:c,maxDepth:p,depth:h});continue}d[g]="[Circular]"}}for(const{property:g,enumerable:y}of e)typeof o[g]=="string"&&Object.defineProperty(d,g,{value:o[g],enumerable:c?!0:y,configurable:!0,writable:!0});return d};return rh={serializeError:(o,u={})=>{const{maxDepth:l=Number.POSITIVE_INFINITY}=u;return typeof o=="object"&&o!==null?i({from:o,seen:[],forceEnumerable:!0,maxDepth:l,depth:0}):typeof o=="function"?`[Function: ${o.name||"anonymous"}]`:o},deserializeError:(o,u={})=>{const{maxDepth:l=Number.POSITIVE_INFINITY}=u;if(o instanceof Error)return o;if(typeof o=="object"&&o!==null&&!Array.isArray(o)){const c=new Error;return i({from:o,seen:[],to_:c,maxDepth:l,depth:0}),c}return new t(o)}},rh}var $5=B5(),nh,HO;function L5(){if(HO)return nh;HO=1;function t(){this.__data__=[],this.size=0}return nh=t,nh}var ih,KO;function to(){if(KO)return ih;KO=1;function t(e,r){return e===r||e!==e&&r!==r}return ih=t,ih}var sh,GO;function pf(){if(GO)return sh;GO=1;var t=to();function e(r,n){for(var i=r.length;i--;)if(t(r[i][0],n))return i;return-1}return sh=e,sh}var ah,YO;function U5(){if(YO)return ah;YO=1;var t=pf(),e=Array.prototype,r=e.splice;function n(i){var s=this.__data__,a=t(s,i);if(a<0)return!1;var o=s.length-1;return a==o?s.pop():r.call(s,a,1),--this.size,!0}return ah=n,ah}var oh,XO;function V5(){if(XO)return oh;XO=1;var t=pf();function e(r){var n=this.__data__,i=t(n,r);return i<0?void 0:n[i][1]}return oh=e,oh}var uh,ZO;function z5(){if(ZO)return uh;ZO=1;var t=pf();function e(r){return t(this.__data__,r)>-1}return uh=e,uh}var lh,QO;function W5(){if(QO)return lh;QO=1;var t=pf();function e(r,n){var i=this.__data__,s=t(i,r);return s<0?(++this.size,i.push([r,n])):i[s][1]=n,this}return lh=e,lh}var ch,eC;function df(){if(eC)return ch;eC=1;var t=L5(),e=U5(),r=V5(),n=z5(),i=W5();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var l=a[o];this.set(l[0],l[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,ch=s,ch}var fh,tC;function J5(){if(tC)return fh;tC=1;var t=df();function e(){this.__data__=new t,this.size=0}return fh=e,fh}var ph,rC;function H5(){if(rC)return ph;rC=1;function t(e){var r=this.__data__,n=r.delete(e);return this.size=r.size,n}return ph=t,ph}var dh,nC;function K5(){if(nC)return dh;nC=1;function t(e){return this.__data__.get(e)}return dh=t,dh}var hh,iC;function G5(){if(iC)return hh;iC=1;function t(e){return this.__data__.has(e)}return hh=t,hh}var mh,sC;function bF(){if(sC)return mh;sC=1;var t=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr;return mh=t,mh}var gh,aC;function tn(){if(aC)return gh;aC=1;var t=bF(),e=typeof self=="object"&&self&&self.Object===Object&&self,r=t||e||Function("return this")();return gh=r,gh}var yh,oC;function ro(){if(oC)return yh;oC=1;var t=tn(),e=t.Symbol;return yh=e,yh}var vh,uC;function Y5(){if(uC)return vh;uC=1;var t=ro(),e=Object.prototype,r=e.hasOwnProperty,n=e.toString,i=t?t.toStringTag:void 0;function s(a){var o=r.call(a,i),u=a[i];try{a[i]=void 0;var l=!0}catch{}var c=n.call(a);return l&&(o?a[i]=u:delete a[i]),c}return vh=s,vh}var bh,lC;function X5(){if(lC)return bh;lC=1;var t=Object.prototype,e=t.toString;function r(n){return e.call(n)}return bh=r,bh}var Eh,cC;function Ii(){if(cC)return Eh;cC=1;var t=ro(),e=Y5(),r=X5(),n="[object Null]",i="[object Undefined]",s=t?t.toStringTag:void 0;function a(o){return o==null?o===void 0?i:n:s&&s in Object(o)?e(o):r(o)}return Eh=a,Eh}var Sh,fC;function rn(){if(fC)return Sh;fC=1;function t(e){var r=typeof e;return e!=null&&(r=="object"||r=="function")}return Sh=t,Sh}var _h,pC;function Su(){if(pC)return _h;pC=1;var t=Ii(),e=rn(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!e(o))return!1;var u=t(o);return u==n||u==i||u==r||u==s}return _h=a,_h}var wh,dC;function Z5(){if(dC)return wh;dC=1;var t=tn(),e=t["__core-js_shared__"];return wh=e,wh}var xh,hC;function Q5(){if(hC)return xh;hC=1;var t=Z5(),e=(function(){var n=/[^.]+$/.exec(t&&t.keys&&t.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})();function r(n){return!!e&&e in n}return xh=r,xh}var Ah,mC;function EF(){if(mC)return Ah;mC=1;var t=Function.prototype,e=t.toString;function r(n){if(n!=null){try{return e.call(n)}catch{}try{return n+""}catch{}}return""}return Ah=r,Ah}var Oh,gC;function e7(){if(gC)return Oh;gC=1;var t=Su(),e=Q5(),r=rn(),n=EF(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,u=a.toString,l=o.hasOwnProperty,c=RegExp("^"+u.call(l).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function p(h){if(!r(h)||e(h))return!1;var d=t(h)?c:s;return d.test(n(h))}return Oh=p,Oh}var Ch,yC;function t7(){if(yC)return Ch;yC=1;function t(e,r){return e?.[r]}return Ch=t,Ch}var Rh,vC;function aa(){if(vC)return Rh;vC=1;var t=e7(),e=t7();function r(n,i){var s=e(n,i);return t(s)?s:void 0}return Rh=r,Rh}var Ih,bC;function P_(){if(bC)return Ih;bC=1;var t=aa(),e=tn(),r=t(e,"Map");return Ih=r,Ih}var Th,EC;function hf(){if(EC)return Th;EC=1;var t=aa(),e=t(Object,"create");return Th=e,Th}var Ph,SC;function r7(){if(SC)return Ph;SC=1;var t=hf();function e(){this.__data__=t?t(null):{},this.size=0}return Ph=e,Ph}var kh,_C;function n7(){if(_C)return kh;_C=1;function t(e){var r=this.has(e)&&delete this.__data__[e];return this.size-=r?1:0,r}return kh=t,kh}var jh,wC;function i7(){if(wC)return jh;wC=1;var t=hf(),e="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(s){var a=this.__data__;if(t){var o=a[s];return o===e?void 0:o}return n.call(a,s)?a[s]:void 0}return jh=i,jh}var Nh,xC;function s7(){if(xC)return Nh;xC=1;var t=hf(),e=Object.prototype,r=e.hasOwnProperty;function n(i){var s=this.__data__;return t?s[i]!==void 0:r.call(s,i)}return Nh=n,Nh}var Mh,AC;function a7(){if(AC)return Mh;AC=1;var t=hf(),e="__lodash_hash_undefined__";function r(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=t&&i===void 0?e:i,this}return Mh=r,Mh}var Dh,OC;function o7(){if(OC)return Dh;OC=1;var t=r7(),e=n7(),r=i7(),n=s7(),i=a7();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var l=a[o];this.set(l[0],l[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Dh=s,Dh}var Fh,CC;function u7(){if(CC)return Fh;CC=1;var t=o7(),e=df(),r=P_();function n(){this.size=0,this.__data__={hash:new t,map:new(r||e),string:new t}}return Fh=n,Fh}var qh,RC;function l7(){if(RC)return qh;RC=1;function t(e){var r=typeof e;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?e!=="__proto__":e===null}return qh=t,qh}var Bh,IC;function mf(){if(IC)return Bh;IC=1;var t=l7();function e(r,n){var i=r.__data__;return t(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Bh=e,Bh}var $h,TC;function c7(){if(TC)return $h;TC=1;var t=mf();function e(r){var n=t(this,r).delete(r);return this.size-=n?1:0,n}return $h=e,$h}var Lh,PC;function f7(){if(PC)return Lh;PC=1;var t=mf();function e(r){return t(this,r).get(r)}return Lh=e,Lh}var Uh,kC;function p7(){if(kC)return Uh;kC=1;var t=mf();function e(r){return t(this,r).has(r)}return Uh=e,Uh}var Vh,jC;function d7(){if(jC)return Vh;jC=1;var t=mf();function e(r,n){var i=t(this,r),s=i.size;return i.set(r,n),this.size+=i.size==s?0:1,this}return Vh=e,Vh}var zh,NC;function k_(){if(NC)return zh;NC=1;var t=u7(),e=c7(),r=f7(),n=p7(),i=d7();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var l=a[o];this.set(l[0],l[1])}}return s.prototype.clear=t,s.prototype.delete=e,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,zh=s,zh}var Wh,MC;function h7(){if(MC)return Wh;MC=1;var t=df(),e=P_(),r=k_(),n=200;function i(s,a){var o=this.__data__;if(o instanceof t){var u=o.__data__;if(!e||u.length<n-1)return u.push([s,a]),this.size=++o.size,this;o=this.__data__=new r(u)}return o.set(s,a),this.size=o.size,this}return Wh=i,Wh}var Jh,DC;function gf(){if(DC)return Jh;DC=1;var t=df(),e=J5(),r=H5(),n=K5(),i=G5(),s=h7();function a(o){var u=this.__data__=new t(o);this.size=u.size}return a.prototype.clear=e,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=s,Jh=a,Jh}var Hh,FC;function SF(){if(FC)return Hh;FC=1;var t=aa(),e=(function(){try{var r=t(Object,"defineProperty");return r({},"",{}),r}catch{}})();return Hh=e,Hh}var Kh,qC;function j_(){if(qC)return Kh;qC=1;var t=SF();function e(r,n,i){n=="__proto__"&&t?t(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Kh=e,Kh}var Gh,BC;function _F(){if(BC)return Gh;BC=1;var t=j_(),e=to();function r(n,i,s){(s!==void 0&&!e(n[i],s)||s===void 0&&!(i in n))&&t(n,i,s)}return Gh=r,Gh}var Yh,$C;function m7(){if($C)return Yh;$C=1;function t(e){return function(r,n,i){for(var s=-1,a=Object(r),o=i(r),u=o.length;u--;){var l=o[e?u:++s];if(n(a[l],l,a)===!1)break}return r}}return Yh=t,Yh}var Xh,LC;function wF(){if(LC)return Xh;LC=1;var t=m7(),e=t();return Xh=e,Xh}var qo={exports:{}};qo.exports;var UC;function xF(){return UC||(UC=1,(function(t,e){var r=tn(),n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===n,a=s?r.Buffer:void 0,o=a?a.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var p=l.length,h=o?o(p):new l.constructor(p);return l.copy(h),h}t.exports=u})(qo,qo.exports)),qo.exports}var Zh,VC;function AF(){if(VC)return Zh;VC=1;var t=tn(),e=t.Uint8Array;return Zh=e,Zh}var Qh,zC;function N_(){if(zC)return Qh;zC=1;var t=AF();function e(r){var n=new r.constructor(r.byteLength);return new t(n).set(new t(r)),n}return Qh=e,Qh}var em,WC;function OF(){if(WC)return em;WC=1;var t=N_();function e(r,n){var i=n?t(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return em=e,em}var tm,JC;function _u(){if(JC)return tm;JC=1;function t(e,r){var n=-1,i=e.length;for(r||(r=Array(i));++n<i;)r[n]=e[n];return r}return tm=t,tm}var rm,HC;function yf(){if(HC)return rm;HC=1;var t=rn(),e=Object.create,r=(function(){function n(){}return function(i){if(!t(i))return{};if(e)return e(i);n.prototype=i;var s=new n;return n.prototype=void 0,s}})();return rm=r,rm}var nm,KC;function CF(){if(KC)return nm;KC=1;function t(e,r){return function(n){return e(r(n))}}return nm=t,nm}var im,GC;function M_(){if(GC)return im;GC=1;var t=CF(),e=t(Object.getPrototypeOf,Object);return im=e,im}var sm,YC;function vf(){if(YC)return sm;YC=1;var t=Object.prototype;function e(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||t;return r===i}return sm=e,sm}var am,XC;function RF(){if(XC)return am;XC=1;var t=yf(),e=M_(),r=vf();function n(i){return typeof i.constructor=="function"&&!r(i)?t(e(i)):{}}return am=n,am}var om,ZC;function nn(){if(ZC)return om;ZC=1;function t(e){return e!=null&&typeof e=="object"}return om=t,om}var um,QC;function g7(){if(QC)return um;QC=1;var t=Ii(),e=nn(),r="[object Arguments]";function n(i){return e(i)&&t(i)==r}return um=n,um}var lm,eR;function wu(){if(eR)return lm;eR=1;var t=g7(),e=nn(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,s=t((function(){return arguments})())?t:function(a){return e(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return lm=s,lm}var cm,tR;function Rr(){if(tR)return cm;tR=1;var t=Array.isArray;return cm=t,cm}var fm,rR;function D_(){if(rR)return fm;rR=1;var t=9007199254740991;function e(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=t}return fm=e,fm}var pm,nR;function oa(){if(nR)return pm;nR=1;var t=Su(),e=D_();function r(n){return n!=null&&e(n.length)&&!t(n)}return pm=r,pm}var dm,iR;function y7(){if(iR)return dm;iR=1;var t=oa(),e=nn();function r(n){return e(n)&&t(n)}return dm=r,dm}var Bo={exports:{}},hm,sR;function v7(){if(sR)return hm;sR=1;function t(){return!1}return hm=t,hm}Bo.exports;var aR;function xu(){return aR||(aR=1,(function(t,e){var r=tn(),n=v7(),i=e&&!e.nodeType&&e,s=i&&!0&&t&&!t.nodeType&&t,a=s&&s.exports===i,o=a?r.Buffer:void 0,u=o?o.isBuffer:void 0,l=u||n;t.exports=l})(Bo,Bo.exports)),Bo.exports}var mm,oR;function bf(){if(oR)return mm;oR=1;var t=Ii(),e=M_(),r=nn(),n="[object Object]",i=Function.prototype,s=Object.prototype,a=i.toString,o=s.hasOwnProperty,u=a.call(Object);function l(c){if(!r(c)||t(c)!=n)return!1;var p=e(c);if(p===null)return!0;var h=o.call(p,"constructor")&&p.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==u}return mm=l,mm}var gm,uR;function b7(){if(uR)return gm;uR=1;var t=Ii(),e=D_(),r=nn(),n="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",u="[object Function]",l="[object Map]",c="[object Number]",p="[object Object]",h="[object RegExp]",d="[object Set]",g="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",_="[object Float64Array]",w="[object Int8Array]",S="[object Int16Array]",A="[object Int32Array]",I="[object Uint8Array]",T="[object Uint8ClampedArray]",k="[object Uint16Array]",D="[object Uint32Array]",R={};R[b]=R[_]=R[w]=R[S]=R[A]=R[I]=R[T]=R[k]=R[D]=!0,R[n]=R[i]=R[v]=R[s]=R[E]=R[a]=R[o]=R[u]=R[l]=R[c]=R[p]=R[h]=R[d]=R[g]=R[y]=!1;function $(M){return r(M)&&e(M.length)&&!!R[t(M)]}return gm=$,gm}var ym,lR;function F_(){if(lR)return ym;lR=1;function t(e){return function(r){return e(r)}}return ym=t,ym}var $o={exports:{}};$o.exports;var cR;function q_(){return cR||(cR=1,(function(t,e){var r=bF(),n=e&&!e.nodeType&&e,i=n&&!0&&t&&!t.nodeType&&t,s=i&&i.exports===n,a=s&&r.process,o=(function(){try{var u=i&&i.require&&i.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}})();t.exports=o})($o,$o.exports)),$o.exports}var vm,fR;function Ef(){if(fR)return vm;fR=1;var t=b7(),e=F_(),r=q_(),n=r&&r.isTypedArray,i=n?e(n):t;return vm=i,vm}var bm,pR;function IF(){if(pR)return bm;pR=1;function t(e,r){if(!(r==="constructor"&&typeof e[r]=="function")&&r!="__proto__")return e[r]}return bm=t,bm}var Em,dR;function Sf(){if(dR)return Em;dR=1;var t=j_(),e=to(),r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o){var u=s[a];(!(n.call(s,a)&&e(u,o))||o===void 0&&!(a in s))&&t(s,a,o)}return Em=i,Em}var Sm,hR;function no(){if(hR)return Sm;hR=1;var t=Sf(),e=j_();function r(n,i,s,a){var o=!s;s||(s={});for(var u=-1,l=i.length;++u<l;){var c=i[u],p=a?a(s[c],n[c],c,s,n):void 0;p===void 0&&(p=n[c]),o?e(s,c,p):t(s,c,p)}return s}return Sm=r,Sm}var _m,mR;function E7(){if(mR)return _m;mR=1;function t(e,r){for(var n=-1,i=Array(e);++n<e;)i[n]=r(n);return i}return _m=t,_m}var wm,gR;function Au(){if(gR)return wm;gR=1;var t=9007199254740991,e=/^(?:0|[1-9]\d*)$/;function r(n,i){var s=typeof n;return i=i??t,!!i&&(s=="number"||s!="symbol"&&e.test(n))&&n>-1&&n%1==0&&n<i}return wm=r,wm}var xm,yR;function TF(){if(yR)return xm;yR=1;var t=E7(),e=wu(),r=Rr(),n=xu(),i=Au(),s=Ef(),a=Object.prototype,o=a.hasOwnProperty;function u(l,c){var p=r(l),h=!p&&e(l),d=!p&&!h&&n(l),g=!p&&!h&&!d&&s(l),y=p||h||d||g,v=y?t(l.length,String):[],E=v.length;for(var b in l)(c||o.call(l,b))&&!(y&&(b=="length"||d&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,E)))&&v.push(b);return v}return xm=u,xm}var Am,vR;function S7(){if(vR)return Am;vR=1;function t(e){var r=[];if(e!=null)for(var n in Object(e))r.push(n);return r}return Am=t,Am}var Om,bR;function _7(){if(bR)return Om;bR=1;var t=rn(),e=vf(),r=S7(),n=Object.prototype,i=n.hasOwnProperty;function s(a){if(!t(a))return r(a);var o=e(a),u=[];for(var l in a)l=="constructor"&&(o||!i.call(a,l))||u.push(l);return u}return Om=s,Om}var Cm,ER;function Ou(){if(ER)return Cm;ER=1;var t=TF(),e=_7(),r=oa();function n(i){return r(i)?t(i,!0):e(i)}return Cm=n,Cm}var Rm,SR;function w7(){if(SR)return Rm;SR=1;var t=no(),e=Ou();function r(n){return t(n,e(n))}return Rm=r,Rm}var Im,_R;function x7(){if(_R)return Im;_R=1;var t=_F(),e=xF(),r=OF(),n=_u(),i=RF(),s=wu(),a=Rr(),o=y7(),u=xu(),l=Su(),c=rn(),p=bf(),h=Ef(),d=IF(),g=w7();function y(v,E,b,_,w,S,A){var I=d(v,b),T=d(E,b),k=A.get(T);if(k){t(v,b,k);return}var D=S?S(I,T,b+"",v,E,A):void 0,R=D===void 0;if(R){var $=a(T),M=!$&&u(T),K=!$&&!M&&h(T);D=T,$||M||K?a(I)?D=I:o(I)?D=n(I):M?(R=!1,D=e(T,!0)):K?(R=!1,D=r(T,!0)):D=[]:p(T)||s(T)?(D=I,s(I)?D=g(I):(!c(I)||l(I))&&(D=i(T))):R=!1}R&&(A.set(T,D),w(D,T,_,S,A),A.delete(T)),t(v,b,D)}return Im=y,Im}var Tm,wR;function A7(){if(wR)return Tm;wR=1;var t=gf(),e=_F(),r=wF(),n=x7(),i=rn(),s=Ou(),a=IF();function o(u,l,c,p,h){u!==l&&r(l,function(d,g){if(h||(h=new t),i(d))n(u,l,g,c,o,p,h);else{var y=p?p(a(u,g),d,g+"",u,l,h):void 0;y===void 0&&(y=d),e(u,g,y)}},s)}return Tm=o,Tm}var Pm,xR;function Cu(){if(xR)return Pm;xR=1;function t(e){return e}return Pm=t,Pm}var km,AR;function B_(){if(AR)return km;AR=1;function t(e,r,n){switch(n.length){case 0:return e.call(r);case 1:return e.call(r,n[0]);case 2:return e.call(r,n[0],n[1]);case 3:return e.call(r,n[0],n[1],n[2])}return e.apply(r,n)}return km=t,km}var jm,OR;function PF(){if(OR)return jm;OR=1;var t=B_(),e=Math.max;function r(n,i,s){return i=e(i===void 0?n.length-1:i,0),function(){for(var a=arguments,o=-1,u=e(a.length-i,0),l=Array(u);++o<u;)l[o]=a[i+o];o=-1;for(var c=Array(i+1);++o<i;)c[o]=a[o];return c[i]=s(l),t(n,this,c)}}return jm=r,jm}var Nm,CR;function kF(){if(CR)return Nm;CR=1;function t(e){return function(){return e}}return Nm=t,Nm}var Mm,RR;function O7(){if(RR)return Mm;RR=1;var t=kF(),e=SF(),r=Cu(),n=e?function(i,s){return e(i,"toString",{configurable:!0,enumerable:!1,value:t(s),writable:!0})}:r;return Mm=n,Mm}var Dm,IR;function jF(){if(IR)return Dm;IR=1;var t=800,e=16,r=Date.now;function n(i){var s=0,a=0;return function(){var o=r(),u=e-(o-a);if(a=o,u>0){if(++s>=t)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return Dm=n,Dm}var Fm,TR;function $_(){if(TR)return Fm;TR=1;var t=O7(),e=jF(),r=e(t);return Fm=r,Fm}var qm,PR;function C7(){if(PR)return qm;PR=1;var t=Cu(),e=PF(),r=$_();function n(i,s){return r(e(i,s,t),i+"")}return qm=n,qm}var Bm,kR;function NF(){if(kR)return Bm;kR=1;var t=to(),e=oa(),r=Au(),n=rn();function i(s,a,o){if(!n(o))return!1;var u=typeof a;return(u=="number"?e(o)&&r(a,o.length):u=="string"&&a in o)?t(o[a],s):!1}return Bm=i,Bm}var $m,jR;function R7(){if(jR)return $m;jR=1;var t=C7(),e=NF();function r(n){return t(function(i,s){var a=-1,o=s.length,u=o>1?s[o-1]:void 0,l=o>2?s[2]:void 0;for(u=n.length>3&&typeof u=="function"?(o--,u):void 0,l&&e(s[0],s[1],l)&&(u=o<3?void 0:u,o=1),i=Object(i);++a<o;){var c=s[a];c&&n(i,c,a,u)}return i})}return $m=r,$m}var Lm,NR;function I7(){if(NR)return Lm;NR=1;var t=A7(),e=R7(),r=e(function(n,i,s){t(n,i,s)});return Lm=r,Lm}var T7=I7();const P7=ot(T7);var Um,MR;function L_(){if(MR)return Um;MR=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,s=Array(i);++n<i;)s[n]=r(e[n],n,e);return s}return Um=t,Um}var Vm,DR;function Ru(){if(DR)return Vm;DR=1;var t=Ii(),e=nn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||e(i)&&t(i)==r}return Vm=n,Vm}var zm,FR;function k7(){if(FR)return zm;FR=1;var t=ro(),e=L_(),r=Rr(),n=Ru(),i=t?t.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(r(o))return e(o,a)+"";if(n(o))return s?s.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return zm=a,zm}var Wm,qR;function Qi(){if(qR)return Wm;qR=1;var t=k7();function e(r){return r==null?"":t(r)}return Wm=e,Wm}var Jm,BR;function MF(){if(BR)return Jm;BR=1;function t(e,r,n){var i=-1,s=e.length;r<0&&(r=-r>s?0:s+r),n=n>s?s:n,n<0&&(n+=s),s=r>n?0:n-r>>>0,r>>>=0;for(var a=Array(s);++i<s;)a[i]=e[i+r];return a}return Jm=t,Jm}var Hm,$R;function j7(){if($R)return Hm;$R=1;var t=MF();function e(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:t(r,n,i)}return Hm=e,Hm}var Km,LR;function DF(){if(LR)return Km;LR=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,s="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+t+i+s+"]");function u(l){return o.test(l)}return Km=u,Km}var Gm,UR;function N7(){if(UR)return Gm;UR=1;function t(e){return e.split("")}return Gm=t,Gm}var Ym,VR;function M7(){if(VR)return Ym;VR=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,s="\\ufe0e\\ufe0f",a="["+t+"]",o="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",l="(?:"+o+"|"+u+")",c="[^"+t+"]",p="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",d="\\u200d",g=l+"?",y="["+s+"]?",v="(?:"+d+"(?:"+[c,p,h].join("|")+")"+y+g+")*",E=y+g+v,b="(?:"+[c+o+"?",o,p,h,a].join("|")+")",_=RegExp(u+"(?="+u+")|"+b+E,"g");function w(S){return S.match(_)||[]}return Ym=w,Ym}var Xm,zR;function D7(){if(zR)return Xm;zR=1;var t=N7(),e=DF(),r=M7();function n(i){return e(i)?r(i):t(i)}return Xm=n,Xm}var Zm,WR;function F7(){if(WR)return Zm;WR=1;var t=j7(),e=DF(),r=D7(),n=Qi();function i(s){return function(a){a=n(a);var o=e(a)?r(a):void 0,u=o?o[0]:a.charAt(0),l=o?t(o,1).join(""):a.slice(1);return u[s]()+l}}return Zm=i,Zm}var Qm,JR;function FF(){if(JR)return Qm;JR=1;var t=F7(),e=t("toUpperCase");return Qm=e,Qm}var eg,HR;function q7(){if(HR)return eg;HR=1;var t=Qi(),e=FF();function r(n){return e(t(n).toLowerCase())}return eg=r,eg}var tg,KR;function qF(){if(KR)return tg;KR=1;function t(e,r,n,i){var s=-1,a=e==null?0:e.length;for(i&&a&&(n=e[++s]);++s<a;)n=r(n,e[s],s,e);return n}return tg=t,tg}var rg,GR;function B7(){if(GR)return rg;GR=1;function t(e){return function(r){return e?.[r]}}return rg=t,rg}var ng,YR;function $7(){if(YR)return ng;YR=1;var t=B7(),e={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},r=t(e);return ng=r,ng}var ig,XR;function L7(){if(XR)return ig;XR=1;var t=$7(),e=Qi(),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,n="\\u0300-\\u036f",i="\\ufe20-\\ufe2f",s="\\u20d0-\\u20ff",a=n+i+s,o="["+a+"]",u=RegExp(o,"g");function l(c){return c=e(c),c&&c.replace(r,t).replace(u,"")}return ig=l,ig}var sg,ZR;function U7(){if(ZR)return sg;ZR=1;var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function e(r){return r.match(t)||[]}return sg=e,sg}var ag,QR;function V7(){if(QR)return ag;QR=1;var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function e(r){return t.test(r)}return ag=e,ag}var og,eI;function z7(){if(eI)return og;eI=1;var t="\\ud800-\\udfff",e="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=e+r+n,s="\\u2700-\\u27bf",a="a-z\\xdf-\\xf6\\xf8-\\xff",o="\\xac\\xb1\\xd7\\xf7",u="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",l="\\u2000-\\u206f",c=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",p="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",d=o+u+l+c,g="['’]",y="["+d+"]",v="["+i+"]",E="\\d+",b="["+s+"]",_="["+a+"]",w="[^"+t+d+E+s+a+p+"]",S="\\ud83c[\\udffb-\\udfff]",A="(?:"+v+"|"+S+")",I="[^"+t+"]",T="(?:\\ud83c[\\udde6-\\uddff]){2}",k="[\\ud800-\\udbff][\\udc00-\\udfff]",D="["+p+"]",R="\\u200d",$="(?:"+_+"|"+w+")",M="(?:"+D+"|"+w+")",K="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",ee="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",G=A+"?",Z="["+h+"]?",X="(?:"+R+"(?:"+[I,T,k].join("|")+")"+Z+G+")*",te="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",ce="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ie=Z+G+X,ue="(?:"+[b,T,k].join("|")+")"+ie,ye=RegExp([D+"?"+_+"+"+K+"(?="+[y,D,"$"].join("|")+")",M+"+"+ee+"(?="+[y,D+$,"$"].join("|")+")",D+"?"+$+"+"+K,D+"+"+ee,ce,te,E,ue].join("|"),"g");function he(re){return re.match(ye)||[]}return og=he,og}var ug,tI;function W7(){if(tI)return ug;tI=1;var t=U7(),e=V7(),r=Qi(),n=z7();function i(s,a,o){return s=r(s),a=o?void 0:a,a===void 0?e(s)?n(s):t(s):s.match(a)||[]}return ug=i,ug}var lg,rI;function J7(){if(rI)return lg;rI=1;var t=qF(),e=L7(),r=W7(),n="['’]",i=RegExp(n,"g");function s(a){return function(o){return t(r(e(o).replace(i,"")),a,"")}}return lg=s,lg}var cg,nI;function H7(){if(nI)return cg;nI=1;var t=q7(),e=J7(),r=e(function(n,i,s){return i=i.toLowerCase(),n+(s?t(i):i)});return cg=r,cg}H7();FF();var fg,iI;function BF(){if(iI)return fg;iI=1;var t=k_(),e="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(e);var s=function(){var a=arguments,o=i?i.apply(this,a):a[0],u=s.cache;if(u.has(o))return u.get(o);var l=n.apply(this,a);return s.cache=u.set(o,l)||u,l};return s.cache=new(r.Cache||t),s}return r.Cache=t,fg=r,fg}var K7=BF();const G7=ot(K7);var pg,sI;function Y7(){if(sI)return pg;sI=1;var t="__lodash_hash_undefined__";function e(r){return this.__data__.set(r,t),this}return pg=e,pg}var dg,aI;function X7(){if(aI)return dg;aI=1;function t(e){return this.__data__.has(e)}return dg=t,dg}var hg,oI;function Z7(){if(oI)return hg;oI=1;var t=k_(),e=Y7(),r=X7();function n(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new t;++s<a;)this.add(i[s])}return n.prototype.add=n.prototype.push=e,n.prototype.has=r,hg=n,hg}var mg,uI;function $F(){if(uI)return mg;uI=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i;)if(r(e[n],n,e))return!0;return!1}return mg=t,mg}var gg,lI;function Q7(){if(lI)return gg;lI=1;function t(e,r){return e.has(r)}return gg=t,gg}var yg,cI;function LF(){if(cI)return yg;cI=1;var t=Z7(),e=$F(),r=Q7(),n=1,i=2;function s(a,o,u,l,c,p){var h=u&n,d=a.length,g=o.length;if(d!=g&&!(h&&g>d))return!1;var y=p.get(a),v=p.get(o);if(y&&v)return y==o&&v==a;var E=-1,b=!0,_=u&i?new t:void 0;for(p.set(a,o),p.set(o,a);++E<d;){var w=a[E],S=o[E];if(l)var A=h?l(S,w,E,o,a,p):l(w,S,E,a,o,p);if(A!==void 0){if(A)continue;b=!1;break}if(_){if(!e(o,function(I,T){if(!r(_,T)&&(w===I||c(w,I,u,l,p)))return _.push(T)})){b=!1;break}}else if(!(w===S||c(w,S,u,l,p))){b=!1;break}}return p.delete(a),p.delete(o),b}return yg=s,yg}var vg,fI;function eV(){if(fI)return vg;fI=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i,s){n[++r]=[s,i]}),n}return vg=t,vg}var bg,pI;function tV(){if(pI)return bg;pI=1;function t(e){var r=-1,n=Array(e.size);return e.forEach(function(i){n[++r]=i}),n}return bg=t,bg}var Eg,dI;function rV(){if(dI)return Eg;dI=1;var t=ro(),e=AF(),r=to(),n=LF(),i=eV(),s=tV(),a=1,o=2,u="[object Boolean]",l="[object Date]",c="[object Error]",p="[object Map]",h="[object Number]",d="[object RegExp]",g="[object Set]",y="[object String]",v="[object Symbol]",E="[object ArrayBuffer]",b="[object DataView]",_=t?t.prototype:void 0,w=_?_.valueOf:void 0;function S(A,I,T,k,D,R,$){switch(T){case b:if(A.byteLength!=I.byteLength||A.byteOffset!=I.byteOffset)return!1;A=A.buffer,I=I.buffer;case E:return!(A.byteLength!=I.byteLength||!R(new e(A),new e(I)));case u:case l:case h:return r(+A,+I);case c:return A.name==I.name&&A.message==I.message;case d:case y:return A==I+"";case p:var M=i;case g:var K=k&a;if(M||(M=s),A.size!=I.size&&!K)return!1;var ee=$.get(A);if(ee)return ee==I;k|=o,$.set(A,I);var G=n(M(A),M(I),k,D,R,$);return $.delete(A),G;case v:if(w)return w.call(A)==w.call(I)}return!1}return Eg=S,Eg}var Sg,hI;function U_(){if(hI)return Sg;hI=1;function t(e,r){for(var n=-1,i=r.length,s=e.length;++n<i;)e[s+n]=r[n];return e}return Sg=t,Sg}var _g,mI;function UF(){if(mI)return _g;mI=1;var t=U_(),e=Rr();function r(n,i,s){var a=i(n);return e(n)?a:t(a,s(n))}return _g=r,_g}var wg,gI;function nV(){if(gI)return wg;gI=1;function t(e,r){for(var n=-1,i=e==null?0:e.length,s=0,a=[];++n<i;){var o=e[n];r(o,n,e)&&(a[s++]=o)}return a}return wg=t,wg}var xg,yI;function VF(){if(yI)return xg;yI=1;function t(){return[]}return xg=t,xg}var Ag,vI;function V_(){if(vI)return Ag;vI=1;var t=nV(),e=VF(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),t(i(a),function(o){return n.call(a,o)}))}:e;return Ag=s,Ag}var Og,bI;function iV(){if(bI)return Og;bI=1;var t=CF(),e=t(Object.keys,Object);return Og=e,Og}var Cg,EI;function z_(){if(EI)return Cg;EI=1;var t=vf(),e=iV(),r=Object.prototype,n=r.hasOwnProperty;function i(s){if(!t(s))return e(s);var a=[];for(var o in Object(s))n.call(s,o)&&o!="constructor"&&a.push(o);return a}return Cg=i,Cg}var Rg,SI;function io(){if(SI)return Rg;SI=1;var t=TF(),e=z_(),r=oa();function n(i){return r(i)?t(i):e(i)}return Rg=n,Rg}var Ig,_I;function zF(){if(_I)return Ig;_I=1;var t=UF(),e=V_(),r=io();function n(i){return t(i,r,e)}return Ig=n,Ig}var Tg,wI;function sV(){if(wI)return Tg;wI=1;var t=zF(),e=1,r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o,u,l,c){var p=o&e,h=t(s),d=h.length,g=t(a),y=g.length;if(d!=y&&!p)return!1;for(var v=d;v--;){var E=h[v];if(!(p?E in a:n.call(a,E)))return!1}var b=c.get(s),_=c.get(a);if(b&&_)return b==a&&_==s;var w=!0;c.set(s,a),c.set(a,s);for(var S=p;++v<d;){E=h[v];var A=s[E],I=a[E];if(u)var T=p?u(I,A,E,a,s,c):u(A,I,E,s,a,c);if(!(T===void 0?A===I||l(A,I,o,u,c):T)){w=!1;break}S||(S=E=="constructor")}if(w&&!S){var k=s.constructor,D=a.constructor;k!=D&&"constructor"in s&&"constructor"in a&&!(typeof k=="function"&&k instanceof k&&typeof D=="function"&&D instanceof D)&&(w=!1)}return c.delete(s),c.delete(a),w}return Tg=i,Tg}var Pg,xI;function aV(){if(xI)return Pg;xI=1;var t=aa(),e=tn(),r=t(e,"DataView");return Pg=r,Pg}var kg,AI;function oV(){if(AI)return kg;AI=1;var t=aa(),e=tn(),r=t(e,"Promise");return kg=r,kg}var jg,OI;function uV(){if(OI)return jg;OI=1;var t=aa(),e=tn(),r=t(e,"Set");return jg=r,jg}var Ng,CI;function WF(){if(CI)return Ng;CI=1;var t=aa(),e=tn(),r=t(e,"WeakMap");return Ng=r,Ng}var Mg,RI;function so(){if(RI)return Mg;RI=1;var t=aV(),e=P_(),r=oV(),n=uV(),i=WF(),s=Ii(),a=EF(),o="[object Map]",u="[object Object]",l="[object Promise]",c="[object Set]",p="[object WeakMap]",h="[object DataView]",d=a(t),g=a(e),y=a(r),v=a(n),E=a(i),b=s;return(t&&b(new t(new ArrayBuffer(1)))!=h||e&&b(new e)!=o||r&&b(r.resolve())!=l||n&&b(new n)!=c||i&&b(new i)!=p)&&(b=function(_){var w=s(_),S=w==u?_.constructor:void 0,A=S?a(S):"";if(A)switch(A){case d:return h;case g:return o;case y:return l;case v:return c;case E:return p}return w}),Mg=b,Mg}var Dg,II;function lV(){if(II)return Dg;II=1;var t=gf(),e=LF(),r=rV(),n=sV(),i=so(),s=Rr(),a=xu(),o=Ef(),u=1,l="[object Arguments]",c="[object Array]",p="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function g(y,v,E,b,_,w){var S=s(y),A=s(v),I=S?c:i(y),T=A?c:i(v);I=I==l?p:I,T=T==l?p:T;var k=I==p,D=T==p,R=I==T;if(R&&a(y)){if(!a(v))return!1;S=!0,k=!1}if(R&&!k)return w||(w=new t),S||o(y)?e(y,v,E,b,_,w):r(y,v,I,E,b,_,w);if(!(E&u)){var $=k&&d.call(y,"__wrapped__"),M=D&&d.call(v,"__wrapped__");if($||M){var K=$?y.value():y,ee=M?v.value():v;return w||(w=new t),_(K,ee,E,b,w)}}return R?(w||(w=new t),n(y,v,E,b,_,w)):!1}return Dg=g,Dg}var Fg,TI;function W_(){if(TI)return Fg;TI=1;var t=lV(),e=nn();function r(n,i,s,a,o){return n===i?!0:n==null||i==null||!e(n)&&!e(i)?n!==n&&i!==i:t(n,i,s,a,r,o)}return Fg=r,Fg}var qg,PI;function cV(){if(PI)return qg;PI=1;var t=gf(),e=W_(),r=1,n=2;function i(s,a,o,u){var l=o.length,c=l,p=!u;if(s==null)return!c;for(s=Object(s);l--;){var h=o[l];if(p&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++l<c;){h=o[l];var d=h[0],g=s[d],y=h[1];if(p&&h[2]){if(g===void 0&&!(d in s))return!1}else{var v=new t;if(u)var E=u(g,y,d,s,a,v);if(!(E===void 0?e(y,g,r|n,u,v):E))return!1}}return!0}return qg=i,qg}var Bg,kI;function JF(){if(kI)return Bg;kI=1;var t=rn();function e(r){return r===r&&!t(r)}return Bg=e,Bg}var $g,jI;function fV(){if(jI)return $g;jI=1;var t=JF(),e=io();function r(n){for(var i=e(n),s=i.length;s--;){var a=i[s],o=n[a];i[s]=[a,o,t(o)]}return i}return $g=r,$g}var Lg,NI;function HF(){if(NI)return Lg;NI=1;function t(e,r){return function(n){return n==null?!1:n[e]===r&&(r!==void 0||e in Object(n))}}return Lg=t,Lg}var Ug,MI;function pV(){if(MI)return Ug;MI=1;var t=cV(),e=fV(),r=HF();function n(i){var s=e(i);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===i||t(a,i,s)}}return Ug=n,Ug}var Vg,DI;function J_(){if(DI)return Vg;DI=1;var t=Rr(),e=Ru(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(s,a){if(t(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||e(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return Vg=i,Vg}var zg,FI;function dV(){if(FI)return zg;FI=1;var t=BF(),e=500;function r(n){var i=t(n,function(a){return s.size===e&&s.clear(),a}),s=i.cache;return i}return zg=r,zg}var Wg,qI;function KF(){if(qI)return Wg;qI=1;var t=dV(),e=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=t(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(e,function(a,o,u,l){s.push(u?l.replace(r,"$1"):o||a)}),s});return Wg=n,Wg}var Jg,BI;function Iu(){if(BI)return Jg;BI=1;var t=Rr(),e=J_(),r=KF(),n=Qi();function i(s,a){return t(s)?s:e(s,a)?[s]:r(n(s))}return Jg=i,Jg}var Hg,$I;function ua(){if($I)return Hg;$I=1;var t=Ru();function e(r){if(typeof r=="string"||t(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return Hg=e,Hg}var Kg,LI;function H_(){if(LI)return Kg;LI=1;var t=Iu(),e=ua();function r(n,i){i=t(i,n);for(var s=0,a=i.length;n!=null&&s<a;)n=n[e(i[s++])];return s&&s==a?n:void 0}return Kg=r,Kg}var Gg,UI;function GF(){if(UI)return Gg;UI=1;var t=H_();function e(r,n,i){var s=r==null?void 0:t(r,n);return s===void 0?i:s}return Gg=e,Gg}var Yg,VI;function hV(){if(VI)return Yg;VI=1;function t(e,r){return e!=null&&r in Object(e)}return Yg=t,Yg}var Xg,zI;function YF(){if(zI)return Xg;zI=1;var t=Iu(),e=wu(),r=Rr(),n=Au(),i=D_(),s=ua();function a(o,u,l){u=t(u,o);for(var c=-1,p=u.length,h=!1;++c<p;){var d=s(u[c]);if(!(h=o!=null&&l(o,d)))break;o=o[d]}return h||++c!=p?h:(p=o==null?0:o.length,!!p&&i(p)&&n(d,p)&&(r(o)||e(o)))}return Xg=a,Xg}var Zg,WI;function mV(){if(WI)return Zg;WI=1;var t=hV(),e=YF();function r(n,i){return n!=null&&e(n,i,t)}return Zg=r,Zg}var Qg,JI;function gV(){if(JI)return Qg;JI=1;var t=W_(),e=GF(),r=mV(),n=J_(),i=JF(),s=HF(),a=ua(),o=1,u=2;function l(c,p){return n(c)&&i(p)?s(a(c),p):function(h){var d=e(h,c);return d===void 0&&d===p?r(h,c):t(p,d,o|u)}}return Qg=l,Qg}var ey,HI;function yV(){if(HI)return ey;HI=1;function t(e){return function(r){return r?.[e]}}return ey=t,ey}var ty,KI;function vV(){if(KI)return ty;KI=1;var t=H_();function e(r){return function(n){return t(n,r)}}return ty=e,ty}var ry,GI;function bV(){if(GI)return ry;GI=1;var t=yV(),e=vV(),r=J_(),n=ua();function i(s){return r(s)?t(n(s)):e(s)}return ry=i,ry}var ny,YI;function Tu(){if(YI)return ny;YI=1;var t=pV(),e=gV(),r=Cu(),n=Rr(),i=bV();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?e(a[0],a[1]):t(a):i(a)}return ny=s,ny}var iy,XI;function EV(){if(XI)return iy;XI=1;var t=Tu(),e=oa(),r=io();function n(i){return function(s,a,o){var u=Object(s);if(!e(s)){var l=t(a,3);s=r(s),a=function(p){return l(u[p],p,u)}}var c=i(s,a,o);return c>-1?u[l?s[c]:c]:void 0}}return iy=n,iy}var sy,ZI;function XF(){if(ZI)return sy;ZI=1;function t(e,r,n,i){for(var s=e.length,a=n+(i?1:-1);i?a--:++a<s;)if(r(e[a],a,e))return a;return-1}return sy=t,sy}var ay,QI;function SV(){if(QI)return ay;QI=1;var t=/\s/;function e(r){for(var n=r.length;n--&&t.test(r.charAt(n)););return n}return ay=e,ay}var oy,eT;function _V(){if(eT)return oy;eT=1;var t=SV(),e=/^\s+/;function r(n){return n&&n.slice(0,t(n)+1).replace(e,"")}return oy=r,oy}var uy,tT;function ZF(){if(tT)return uy;tT=1;var t=_V(),e=rn(),r=Ru(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function u(l){if(typeof l=="number")return l;if(r(l))return n;if(e(l)){var c=typeof l.valueOf=="function"?l.valueOf():l;l=e(c)?c+"":c}if(typeof l!="string")return l===0?l:+l;l=t(l);var p=s.test(l);return p||a.test(l)?o(l.slice(2),p?2:8):i.test(l)?n:+l}return uy=u,uy}var ly,rT;function wV(){if(rT)return ly;rT=1;var t=ZF(),e=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=t(i),i===e||i===-e){var s=i<0?-1:1;return s*r}return i===i?i:0}return ly=n,ly}var cy,nT;function K_(){if(nT)return cy;nT=1;var t=wV();function e(r){var n=t(r),i=n%1;return n===n?i?n-i:n:0}return cy=e,cy}var fy,iT;function xV(){if(iT)return fy;iT=1;var t=XF(),e=Tu(),r=K_(),n=Math.max;function i(s,a,o){var u=s==null?0:s.length;if(!u)return-1;var l=o==null?0:r(o);return l<0&&(l=n(u+l,0)),t(s,e(a,3),l)}return fy=i,fy}var py,sT;function AV(){if(sT)return py;sT=1;var t=EV(),e=xV(),r=t(e);return py=r,py}var OV=AV();const CV=ot(OV);var dy,aT;function RV(){if(aT)return dy;aT=1;var t=wF(),e=io();function r(n,i){return n&&t(n,i,e)}return dy=r,dy}var hy,oT;function IV(){if(oT)return hy;oT=1;var t=oa();function e(r,n){return function(i,s){if(i==null)return i;if(!t(i))return r(i,s);for(var a=i.length,o=n?a:-1,u=Object(i);(n?o--:++o<a)&&s(u[o],o,u)!==!1;);return i}}return hy=e,hy}var my,uT;function QF(){if(uT)return my;uT=1;var t=RV(),e=IV(),r=e(t);return my=r,my}var gy,lT;function TV(){if(lT)return gy;lT=1;var t=QF();function e(r,n){var i;return t(r,function(s,a,o){return i=n(s,a,o),!i}),!!i}return gy=e,gy}var yy,cT;function PV(){if(cT)return yy;cT=1;var t=$F(),e=Tu(),r=TV(),n=Rr(),i=NF();function s(a,o,u){var l=n(a)?t:r;return u&&i(a,o,u)&&(o=void 0),l(a,e(o,3))}return yy=s,yy}var kV=PV();const jV=ot(kV);var NV=to();const MV=ot(NV);var DV=Su();const FV=ot(DV);var _c={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */var qV=_c.exports,fT;function BV(){return fT||(fT=1,(function(t,e){(function(r,n){t.exports=n(r)})(typeof Lr<"u"?Lr:qV,function(r){if(r.CSS&&r.CSS.escape)return r.CSS.escape;var n=function(i){if(arguments.length==0)throw new TypeError("`CSS.escape` requires an argument.");for(var s=String(i),a=s.length,o=-1,u,l="",c=s.charCodeAt(0);++o<a;){if(u=s.charCodeAt(o),u==0){l+="�";continue}if(u>=1&&u<=31||u==127||o==0&&u>=48&&u<=57||o==1&&u>=48&&u<=57&&c==45){l+="\\"+u.toString(16)+" ";continue}if(o==0&&a==1&&u==45){l+="\\"+s.charAt(o);continue}if(u>=128||u==45||u==95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122){l+=s.charAt(o);continue}l+="\\"+s.charAt(o)}return l};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})})(_c)),_c.exports}var $V=BV();const LV=ot($V);var vy,pT;function UV(){return pT||(pT=1,vy=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}),vy}var ic={},dT;function VV(){if(dT)return ic;dT=1;var t=Object.prototype.hasOwnProperty,e;function r(a){try{return decodeURIComponent(a.replace(/\+/g," "))}catch{return null}}function n(a){try{return encodeURIComponent(a)}catch{return null}}function i(a){for(var o=/([^=?#&]+)=?([^&]*)/g,u={},l;l=o.exec(a);){var c=r(l[1]),p=r(l[2]);c===null||p===null||c in u||(u[c]=p)}return u}function s(a,o){o=o||"";var u=[],l,c;typeof o!="string"&&(o="?");for(c in a)if(t.call(a,c)){if(l=a[c],!l&&(l===null||l===e||isNaN(l))&&(l=""),c=n(c),l=n(l),c===null||l===null)continue;u.push(c+"="+l)}return u.length?o+u.join("&"):""}return ic.stringify=s,ic.parse=i,ic}var by,hT;function zV(){if(hT)return by;hT=1;var t=UV(),e=VV(),r=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,n=/[\n\r\t]/g,i=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,a=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,o=/^[a-zA-Z]:/;function u(b){return(b||"").toString().replace(r,"")}var l=[["#","hash"],["?","query"],function(_,w){return h(w.protocol)?_.replace(/\\/g,"/"):_},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],c={hash:1,query:1};function p(b){var _;typeof window<"u"?_=window:typeof Lr<"u"?_=Lr:typeof self<"u"?_=self:_={};var w=_.location||{};b=b||w;var S={},A=typeof b,I;if(b.protocol==="blob:")S=new y(unescape(b.pathname),{});else if(A==="string"){S=new y(b,{});for(I in c)delete S[I]}else if(A==="object"){for(I in b)I in c||(S[I]=b[I]);S.slashes===void 0&&(S.slashes=i.test(b.href))}return S}function h(b){return b==="file:"||b==="ftp:"||b==="http:"||b==="https:"||b==="ws:"||b==="wss:"}function d(b,_){b=u(b),b=b.replace(n,""),_=_||{};var w=a.exec(b),S=w[1]?w[1].toLowerCase():"",A=!!w[2],I=!!w[3],T=0,k;return A?I?(k=w[2]+w[3]+w[4],T=w[2].length+w[3].length):(k=w[2]+w[4],T=w[2].length):I?(k=w[3]+w[4],T=w[3].length):k=w[4],S==="file:"?T>=2&&(k=k.slice(2)):h(S)?k=w[4]:S?A&&(k=k.slice(2)):T>=2&&h(_.protocol)&&(k=w[4]),{protocol:S,slashes:A||h(S),slashesCount:T,rest:k}}function g(b,_){if(b==="")return _;for(var w=(_||"/").split("/").slice(0,-1).concat(b.split("/")),S=w.length,A=w[S-1],I=!1,T=0;S--;)w[S]==="."?w.splice(S,1):w[S]===".."?(w.splice(S,1),T++):T&&(S===0&&(I=!0),w.splice(S,1),T--);return I&&w.unshift(""),(A==="."||A==="..")&&w.push(""),w.join("/")}function y(b,_,w){if(b=u(b),b=b.replace(n,""),!(this instanceof y))return new y(b,_,w);var S,A,I,T,k,D,R=l.slice(),$=typeof _,M=this,K=0;for($!=="object"&&$!=="string"&&(w=_,_=null),w&&typeof w!="function"&&(w=e.parse),_=p(_),A=d(b||"",_),S=!A.protocol&&!A.slashes,M.slashes=A.slashes||S&&_.slashes,M.protocol=A.protocol||_.protocol||"",b=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||o.test(b))||!A.slashes&&(A.protocol||A.slashesCount<2||!h(M.protocol)))&&(R[3]=[/(.*)/,"pathname"]);K<R.length;K++){if(T=R[K],typeof T=="function"){b=T(b,M);continue}I=T[0],D=T[1],I!==I?M[D]=b:typeof I=="string"?(k=I==="@"?b.lastIndexOf(I):b.indexOf(I),~k&&(typeof T[2]=="number"?(M[D]=b.slice(0,k),b=b.slice(k+T[2])):(M[D]=b.slice(k),b=b.slice(0,k)))):(k=I.exec(b))&&(M[D]=k[1],b=b.slice(0,k.index)),M[D]=M[D]||S&&T[3]&&_[D]||"",T[4]&&(M[D]=M[D].toLowerCase())}w&&(M.query=w(M.query)),S&&_.slashes&&M.pathname.charAt(0)!=="/"&&(M.pathname!==""||_.pathname!=="")&&(M.pathname=g(M.pathname,_.pathname)),M.pathname.charAt(0)!=="/"&&h(M.protocol)&&(M.pathname="/"+M.pathname),t(M.port,M.protocol)||(M.host=M.hostname,M.port=""),M.username=M.password="",M.auth&&(k=M.auth.indexOf(":"),~k?(M.username=M.auth.slice(0,k),M.username=encodeURIComponent(decodeURIComponent(M.username)),M.password=M.auth.slice(k+1),M.password=encodeURIComponent(decodeURIComponent(M.password))):M.username=encodeURIComponent(decodeURIComponent(M.auth)),M.auth=M.password?M.username+":"+M.password:M.username),M.origin=M.protocol!=="file:"&&h(M.protocol)&&M.host?M.protocol+"//"+M.host:"null",M.href=M.toString()}function v(b,_,w){var S=this;switch(b){case"query":typeof _=="string"&&_.length&&(_=(w||e.parse)(_)),S[b]=_;break;case"port":S[b]=_,t(_,S.protocol)?_&&(S.host=S.hostname+":"+_):(S.host=S.hostname,S[b]="");break;case"hostname":S[b]=_,S.port&&(_+=":"+S.port),S.host=_;break;case"host":S[b]=_,s.test(_)?(_=_.split(":"),S.port=_.pop(),S.hostname=_.join(":")):(S.hostname=_,S.port="");break;case"protocol":S.protocol=_.toLowerCase(),S.slashes=!w;break;case"pathname":case"hash":if(_){var A=b==="pathname"?"/":"#";S[b]=_.charAt(0)!==A?A+_:_}else S[b]=_;break;case"username":case"password":S[b]=encodeURIComponent(_);break;case"auth":var I=_.indexOf(":");~I?(S.username=_.slice(0,I),S.username=encodeURIComponent(decodeURIComponent(S.username)),S.password=_.slice(I+1),S.password=encodeURIComponent(decodeURIComponent(S.password))):S.username=encodeURIComponent(decodeURIComponent(_))}for(var T=0;T<l.length;T++){var k=l[T];k[4]&&(S[k[1]]=S[k[1]].toLowerCase())}return S.auth=S.password?S.username+":"+S.password:S.username,S.origin=S.protocol!=="file:"&&h(S.protocol)&&S.host?S.protocol+"//"+S.host:"null",S.href=S.toString(),S}function E(b){(!b||typeof b!="function")&&(b=e.stringify);var _,w=this,S=w.host,A=w.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var I=A+(w.protocol&&w.slashes||h(w.protocol)?"//":"");return w.username?(I+=w.username,w.password&&(I+=":"+w.password),I+="@"):w.password?(I+=":"+w.password,I+="@"):w.protocol!=="file:"&&h(w.protocol)&&!S&&w.pathname!=="/"&&(I+="@"),(S[S.length-1]===":"||s.test(w.hostname)&&!w.port)&&(S+=":"),I+=S+w.pathname,_=typeof w.query=="object"?b(w.query):w.query,_&&(I+=_.charAt(0)!=="?"?"?"+_:_),w.hash&&(I+=w.hash),I}return y.prototype={set:v,toString:E},y.extractProtocol=d,y.location=p,y.trimLeft=u,y.qs=e,by=y,by}var WV=zV();const JV=ot(WV);var Ey,mT;function G_(){if(mT)return Ey;mT=1;function t(e,r){for(var n=-1,i=e==null?0:e.length;++n<i&&r(e[n],n,e)!==!1;);return e}return Ey=t,Ey}var Sy,gT;function eq(){if(gT)return Sy;gT=1;var t=no(),e=io();function r(n,i){return n&&t(i,e(i),n)}return Sy=r,Sy}var _y,yT;function HV(){if(yT)return _y;yT=1;var t=no(),e=Ou();function r(n,i){return n&&t(i,e(i),n)}return _y=r,_y}var wy,vT;function KV(){if(vT)return wy;vT=1;var t=no(),e=V_();function r(n,i){return t(n,e(n),i)}return wy=r,wy}var xy,bT;function tq(){if(bT)return xy;bT=1;var t=U_(),e=M_(),r=V_(),n=VF(),i=Object.getOwnPropertySymbols,s=i?function(a){for(var o=[];a;)t(o,r(a)),a=e(a);return o}:n;return xy=s,xy}var Ay,ET;function GV(){if(ET)return Ay;ET=1;var t=no(),e=tq();function r(n,i){return t(n,e(n),i)}return Ay=r,Ay}var Oy,ST;function rq(){if(ST)return Oy;ST=1;var t=UF(),e=tq(),r=Ou();function n(i){return t(i,r,e)}return Oy=n,Oy}var Cy,_T;function YV(){if(_T)return Cy;_T=1;var t=Object.prototype,e=t.hasOwnProperty;function r(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&e.call(n,"index")&&(s.index=n.index,s.input=n.input),s}return Cy=r,Cy}var Ry,wT;function XV(){if(wT)return Ry;wT=1;var t=N_();function e(r,n){var i=n?t(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Ry=e,Ry}var Iy,xT;function ZV(){if(xT)return Iy;xT=1;var t=/\w*$/;function e(r){var n=new r.constructor(r.source,t.exec(r));return n.lastIndex=r.lastIndex,n}return Iy=e,Iy}var Ty,AT;function QV(){if(AT)return Ty;AT=1;var t=ro(),e=t?t.prototype:void 0,r=e?e.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Ty=n,Ty}var Py,OT;function ez(){if(OT)return Py;OT=1;var t=N_(),e=XV(),r=ZV(),n=QV(),i=OF(),s="[object Boolean]",a="[object Date]",o="[object Map]",u="[object Number]",l="[object RegExp]",c="[object Set]",p="[object String]",h="[object Symbol]",d="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",E="[object Int8Array]",b="[object Int16Array]",_="[object Int32Array]",w="[object Uint8Array]",S="[object Uint8ClampedArray]",A="[object Uint16Array]",I="[object Uint32Array]";function T(k,D,R){var $=k.constructor;switch(D){case d:return t(k);case s:case a:return new $(+k);case g:return e(k,R);case y:case v:case E:case b:case _:case w:case S:case A:case I:return i(k,R);case o:return new $;case u:case p:return new $(k);case l:return r(k);case c:return new $;case h:return n(k)}}return Py=T,Py}var ky,CT;function tz(){if(CT)return ky;CT=1;var t=so(),e=nn(),r="[object Map]";function n(i){return e(i)&&t(i)==r}return ky=n,ky}var jy,RT;function rz(){if(RT)return jy;RT=1;var t=tz(),e=F_(),r=q_(),n=r&&r.isMap,i=n?e(n):t;return jy=i,jy}var Ny,IT;function nz(){if(IT)return Ny;IT=1;var t=so(),e=nn(),r="[object Set]";function n(i){return e(i)&&t(i)==r}return Ny=n,Ny}var My,TT;function iz(){if(TT)return My;TT=1;var t=nz(),e=F_(),r=q_(),n=r&&r.isSet,i=n?e(n):t;return My=i,My}var Dy,PT;function Y_(){if(PT)return Dy;PT=1;var t=gf(),e=G_(),r=Sf(),n=eq(),i=HV(),s=xF(),a=_u(),o=KV(),u=GV(),l=zF(),c=rq(),p=so(),h=YV(),d=ez(),g=RF(),y=Rr(),v=xu(),E=rz(),b=rn(),_=iz(),w=io(),S=Ou(),A=1,I=2,T=4,k="[object Arguments]",D="[object Array]",R="[object Boolean]",$="[object Date]",M="[object Error]",K="[object Function]",ee="[object GeneratorFunction]",G="[object Map]",Z="[object Number]",X="[object Object]",te="[object RegExp]",ce="[object Set]",ie="[object String]",ue="[object Symbol]",ye="[object WeakMap]",he="[object ArrayBuffer]",re="[object DataView]",W="[object Float32Array]",V="[object Float64Array]",me="[object Int8Array]",ve="[object Int16Array]",Me="[object Int32Array]",Be="[object Uint8Array]",Te="[object Uint8ClampedArray]",Pe="[object Uint16Array]",Le="[object Uint32Array]",ge={};ge[k]=ge[D]=ge[he]=ge[re]=ge[R]=ge[$]=ge[W]=ge[V]=ge[me]=ge[ve]=ge[Me]=ge[G]=ge[Z]=ge[X]=ge[te]=ge[ce]=ge[ie]=ge[ue]=ge[Be]=ge[Te]=ge[Pe]=ge[Le]=!0,ge[M]=ge[K]=ge[ye]=!1;function Se(we,L,C,j,U,Y){var ne,fe=L&A,Ne=L&I,Ge=L&T;if(C&&(ne=U?C(we,j,U,Y):C(we)),ne!==void 0)return ne;if(!b(we))return we;var q=y(we);if(q){if(ne=h(we),!fe)return a(we,ne)}else{var O=p(we),P=O==K||O==ee;if(v(we))return s(we,fe);if(O==X||O==k||P&&!U){if(ne=Ne||P?{}:g(we),!fe)return Ne?u(we,i(ne,we)):o(we,n(ne,we))}else{if(!ge[O])return U?we:{};ne=d(we,O,fe)}}Y||(Y=new t);var H=Y.get(we);if(H)return H;Y.set(we,ne),_(we)?we.forEach(function(xe){ne.add(Se(xe,L,C,xe,we,Y))}):E(we)&&we.forEach(function(xe,Ze){ne.set(Ze,Se(xe,L,C,Ze,we,Y))});var se=Ge?Ne?c:l:Ne?S:w,de=q?void 0:se(we);return e(de||we,function(xe,Ze){de&&(Ze=xe,xe=we[Ze]),r(ne,Ze,Se(xe,L,C,Ze,we,Y))}),ne}return Dy=Se,Dy}var Fy,kT;function sz(){if(kT)return Fy;kT=1;function t(e){var r=e==null?0:e.length;return r?e[r-1]:void 0}return Fy=t,Fy}var qy,jT;function az(){if(jT)return qy;jT=1;var t=H_(),e=MF();function r(n,i){return i.length<2?n:t(n,e(i,0,-1))}return qy=r,qy}var By,NT;function oz(){if(NT)return By;NT=1;var t=Iu(),e=sz(),r=az(),n=ua();function i(s,a){return a=t(a,s),s=r(s,a),s==null||delete s[n(e(a))]}return By=i,By}var $y,MT;function uz(){if(MT)return $y;MT=1;var t=bf();function e(r){return t(r)?void 0:r}return $y=e,$y}var Ly,DT;function lz(){if(DT)return Ly;DT=1;var t=ro(),e=wu(),r=Rr(),n=t?t.isConcatSpreadable:void 0;function i(s){return r(s)||e(s)||!!(n&&s&&s[n])}return Ly=i,Ly}var Uy,FT;function cz(){if(FT)return Uy;FT=1;var t=U_(),e=lz();function r(n,i,s,a,o){var u=-1,l=n.length;for(s||(s=e),o||(o=[]);++u<l;){var c=n[u];i>0&&s(c)?i>1?r(c,i-1,s,a,o):t(o,c):a||(o[o.length]=c)}return o}return Uy=r,Uy}var Vy,qT;function fz(){if(qT)return Vy;qT=1;var t=cz();function e(r){var n=r==null?0:r.length;return n?t(r,1):[]}return Vy=e,Vy}var zy,BT;function nq(){if(BT)return zy;BT=1;var t=fz(),e=PF(),r=$_();function n(i){return r(e(i,void 0,t),i+"")}return zy=n,zy}var Wy,$T;function pz(){if($T)return Wy;$T=1;var t=L_(),e=Y_(),r=oz(),n=Iu(),i=no(),s=uz(),a=nq(),o=rq(),u=1,l=2,c=4,p=a(function(h,d){var g={};if(h==null)return g;var y=!1;d=t(d,function(E){return E=n(E,h),y||(y=E.length>1),E}),i(h,o(h),g),y&&(g=e(g,u|l|c,s));for(var v=d.length;v--;)r(g,d[v]);return g});return Wy=p,Wy}var dz=pz();const hz=ot(dz);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function iq(t){return typeof t>"u"||t===null}function mz(t){return typeof t=="object"&&t!==null}function gz(t){return Array.isArray(t)?t:iq(t)?[]:[t]}function yz(t,e){var r,n,i,s;if(e)for(s=Object.keys(e),r=0,n=s.length;r<n;r+=1)i=s[r],t[i]=e[i];return t}function vz(t,e){var r="",n;for(n=0;n<e;n+=1)r+=t;return r}function bz(t){return t===0&&Number.NEGATIVE_INFINITY===1/t}var Ez=iq,Sz=mz,_z=gz,wz=vz,xz=bz,Az=yz,wr={isNothing:Ez,isObject:Sz,toArray:_z,repeat:wz,isNegativeZero:xz,extend:Az};function sq(t,e){var r="",n=t.reason||"(unknown reason)";return t.mark?(t.mark.name&&(r+='in "'+t.mark.name+'" '),r+="("+(t.mark.line+1)+":"+(t.mark.column+1)+")",!e&&t.mark.snippet&&(r+=`
19
+
20
+ `+t.mark.snippet),n+" "+r):n}function eu(t,e){Error.call(this),this.name="YAMLException",this.reason=t,this.mark=e,this.message=sq(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}eu.prototype=Object.create(Error.prototype);eu.prototype.constructor=eu;eu.prototype.toString=function(e){return this.name+": "+sq(this,e)};var Xr=eu;function Jy(t,e,r,n,i){var s="",a="",o=Math.floor(i/2)-1;return n-e>o&&(s=" ... ",e=n-o+s.length),r-n>o&&(a=" ...",r=n+o-a.length),{str:s+t.slice(e,r).replace(/\t/g,"→")+a,pos:n-e+s.length}}function Hy(t,e){return wr.repeat(" ",e-t.length)+t}function Oz(t,e){if(e=Object.create(e||null),!t.buffer)return null;e.maxLength||(e.maxLength=79),typeof e.indent!="number"&&(e.indent=1),typeof e.linesBefore!="number"&&(e.linesBefore=3),typeof e.linesAfter!="number"&&(e.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,a=-1;s=r.exec(t.buffer);)i.push(s.index),n.push(s.index+s[0].length),t.position<=s.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",u,l,c=Math.min(t.line+e.linesAfter,i.length).toString().length,p=e.maxLength-(e.indent+c+3);for(u=1;u<=e.linesBefore&&!(a-u<0);u++)l=Jy(t.buffer,n[a-u],i[a-u],t.position-(n[a]-n[a-u]),p),o=wr.repeat(" ",e.indent)+Hy((t.line-u+1).toString(),c)+" | "+l.str+`
21
+ `+o;for(l=Jy(t.buffer,n[a],i[a],t.position,p),o+=wr.repeat(" ",e.indent)+Hy((t.line+1).toString(),c)+" | "+l.str+`
22
+ `,o+=wr.repeat("-",e.indent+c+3+l.pos)+`^
23
+ `,u=1;u<=e.linesAfter&&!(a+u>=i.length);u++)l=Jy(t.buffer,n[a+u],i[a+u],t.position-(n[a]-n[a+u]),p),o+=wr.repeat(" ",e.indent)+Hy((t.line+u+1).toString(),c)+" | "+l.str+`
24
+ `;return o.replace(/\n$/,"")}var Cz=Oz,Rz=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],Iz=["scalar","sequence","mapping"];function Tz(t){var e={};return t!==null&&Object.keys(t).forEach(function(r){t[r].forEach(function(n){e[String(n)]=r})}),e}function Pz(t,e){if(e=e||{},Object.keys(e).forEach(function(r){if(Rz.indexOf(r)===-1)throw new Xr('Unknown option "'+r+'" is met in definition of "'+t+'" YAML type.')}),this.options=e,this.tag=t,this.kind=e.kind||null,this.resolve=e.resolve||function(){return!0},this.construct=e.construct||function(r){return r},this.instanceOf=e.instanceOf||null,this.predicate=e.predicate||null,this.represent=e.represent||null,this.representName=e.representName||null,this.defaultStyle=e.defaultStyle||null,this.multi=e.multi||!1,this.styleAliases=Tz(e.styleAliases||null),Iz.indexOf(this.kind)===-1)throw new Xr('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}var Dr=Pz;function LT(t,e){var r=[];return t[e].forEach(function(n){var i=r.length;r.forEach(function(s,a){s.tag===n.tag&&s.kind===n.kind&&s.multi===n.multi&&(i=a)}),r[i]=n}),r}function kz(){var t={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},e,r;function n(i){i.multi?(t.multi[i.kind].push(i),t.multi.fallback.push(i)):t[i.kind][i.tag]=t.fallback[i.tag]=i}for(e=0,r=arguments.length;e<r;e+=1)arguments[e].forEach(n);return t}function n1(t){return this.extend(t)}n1.prototype.extend=function(e){var r=[],n=[];if(e instanceof Dr)n.push(e);else if(Array.isArray(e))n=n.concat(e);else if(e&&(Array.isArray(e.implicit)||Array.isArray(e.explicit)))e.implicit&&(r=r.concat(e.implicit)),e.explicit&&(n=n.concat(e.explicit));else throw new Xr("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Dr))throw new Xr("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new Xr("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(s.multi)throw new Xr("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),n.forEach(function(s){if(!(s instanceof Dr))throw new Xr("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(n1.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=LT(i,"implicit"),i.compiledExplicit=LT(i,"explicit"),i.compiledTypeMap=kz(i.compiledImplicit,i.compiledExplicit),i};var aq=n1,oq=new Dr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(t){return t!==null?t:""}}),uq=new Dr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(t){return t!==null?t:[]}}),lq=new Dr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(t){return t!==null?t:{}}}),cq=new aq({explicit:[oq,uq,lq]});function jz(t){if(t===null)return!0;var e=t.length;return e===1&&t==="~"||e===4&&(t==="null"||t==="Null"||t==="NULL")}function Nz(){return null}function Mz(t){return t===null}var fq=new Dr("tag:yaml.org,2002:null",{kind:"scalar",resolve:jz,construct:Nz,predicate:Mz,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function Dz(t){if(t===null)return!1;var e=t.length;return e===4&&(t==="true"||t==="True"||t==="TRUE")||e===5&&(t==="false"||t==="False"||t==="FALSE")}function Fz(t){return t==="true"||t==="True"||t==="TRUE"}function qz(t){return Object.prototype.toString.call(t)==="[object Boolean]"}var pq=new Dr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:Dz,construct:Fz,predicate:qz,represent:{lowercase:function(t){return t?"true":"false"},uppercase:function(t){return t?"TRUE":"FALSE"},camelcase:function(t){return t?"True":"False"}},defaultStyle:"lowercase"});function Bz(t){return 48<=t&&t<=57||65<=t&&t<=70||97<=t&&t<=102}function $z(t){return 48<=t&&t<=55}function Lz(t){return 48<=t&&t<=57}function Uz(t){if(t===null)return!1;var e=t.length,r=0,n=!1,i;if(!e)return!1;if(i=t[r],(i==="-"||i==="+")&&(i=t[++r]),i==="0"){if(r+1===e)return!0;if(i=t[++r],i==="b"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!Bz(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<e;r++)if(i=t[r],i!=="_"){if(!$z(t.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<e;r++)if(i=t[r],i!=="_"){if(!Lz(t.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function Vz(t){var e=t,r=1,n;if(e.indexOf("_")!==-1&&(e=e.replace(/_/g,"")),n=e[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),e=e.slice(1),n=e[0]),e==="0")return 0;if(n==="0"){if(e[1]==="b")return r*parseInt(e.slice(2),2);if(e[1]==="x")return r*parseInt(e.slice(2),16);if(e[1]==="o")return r*parseInt(e.slice(2),8)}return r*parseInt(e,10)}function zz(t){return Object.prototype.toString.call(t)==="[object Number]"&&t%1===0&&!wr.isNegativeZero(t)}var dq=new Dr("tag:yaml.org,2002:int",{kind:"scalar",resolve:Uz,construct:Vz,predicate:zz,represent:{binary:function(t){return t>=0?"0b"+t.toString(2):"-0b"+t.toString(2).slice(1)},octal:function(t){return t>=0?"0o"+t.toString(8):"-0o"+t.toString(8).slice(1)},decimal:function(t){return t.toString(10)},hexadecimal:function(t){return t>=0?"0x"+t.toString(16).toUpperCase():"-0x"+t.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Wz=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Jz(t){return!(t===null||!Wz.test(t)||t[t.length-1]==="_")}function Hz(t){var e,r;return e=t.replace(/_/g,"").toLowerCase(),r=e[0]==="-"?-1:1,"+-".indexOf(e[0])>=0&&(e=e.slice(1)),e===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:e===".nan"?NaN:r*parseFloat(e,10)}var Kz=/^[-+]?[0-9]+e/;function Gz(t,e){var r;if(isNaN(t))switch(e){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===t)switch(e){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===t)switch(e){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(wr.isNegativeZero(t))return"-0.0";return r=t.toString(10),Kz.test(r)?r.replace("e",".e"):r}function Yz(t){return Object.prototype.toString.call(t)==="[object Number]"&&(t%1!==0||wr.isNegativeZero(t))}var hq=new Dr("tag:yaml.org,2002:float",{kind:"scalar",resolve:Jz,construct:Hz,predicate:Yz,represent:Gz,defaultStyle:"lowercase"}),mq=cq.extend({implicit:[fq,pq,dq,hq]}),gq=mq,yq=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),vq=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Xz(t){return t===null?!1:yq.exec(t)!==null||vq.exec(t)!==null}function Zz(t){var e,r,n,i,s,a,o,u=0,l=null,c,p,h;if(e=yq.exec(t),e===null&&(e=vq.exec(t)),e===null)throw new Error("Date resolve error");if(r=+e[1],n=+e[2]-1,i=+e[3],!e[4])return new Date(Date.UTC(r,n,i));if(s=+e[4],a=+e[5],o=+e[6],e[7]){for(u=e[7].slice(0,3);u.length<3;)u+="0";u=+u}return e[9]&&(c=+e[10],p=+(e[11]||0),l=(c*60+p)*6e4,e[9]==="-"&&(l=-l)),h=new Date(Date.UTC(r,n,i,s,a,o,u)),l&&h.setTime(h.getTime()-l),h}function Qz(t){return t.toISOString()}var bq=new Dr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Xz,construct:Zz,instanceOf:Date,represent:Qz});function eW(t){return t==="<<"||t===null}var Eq=new Dr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:eW}),X_=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
25
+ \r`;function tW(t){if(t===null)return!1;var e,r,n=0,i=t.length,s=X_;for(r=0;r<i;r++)if(e=s.indexOf(t.charAt(r)),!(e>64)){if(e<0)return!1;n+=6}return n%8===0}function rW(t){var e,r,n=t.replace(/[\r\n=]/g,""),i=n.length,s=X_,a=0,o=[];for(e=0;e<i;e++)e%4===0&&e&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|s.indexOf(n.charAt(e));return r=i%4*6,r===0?(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)):r===18?(o.push(a>>10&255),o.push(a>>2&255)):r===12&&o.push(a>>4&255),new Uint8Array(o)}function nW(t){var e="",r=0,n,i,s=t.length,a=X_;for(n=0;n<s;n++)n%3===0&&n&&(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]),r=(r<<8)+t[n];return i=s%3,i===0?(e+=a[r>>18&63],e+=a[r>>12&63],e+=a[r>>6&63],e+=a[r&63]):i===2?(e+=a[r>>10&63],e+=a[r>>4&63],e+=a[r<<2&63],e+=a[64]):i===1&&(e+=a[r>>2&63],e+=a[r<<4&63],e+=a[64],e+=a[64]),e}function iW(t){return Object.prototype.toString.call(t)==="[object Uint8Array]"}var Sq=new Dr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:tW,construct:rW,predicate:iW,represent:nW}),sW=Object.prototype.hasOwnProperty,aW=Object.prototype.toString;function oW(t){if(t===null)return!0;var e=[],r,n,i,s,a,o=t;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],a=!1,aW.call(i)!=="[object Object]")return!1;for(s in i)if(sW.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(e.indexOf(s)===-1)e.push(s);else return!1}return!0}function uW(t){return t!==null?t:[]}var _q=new Dr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:oW,construct:uW}),lW=Object.prototype.toString;function cW(t){if(t===null)return!0;var e,r,n,i,s,a=t;for(s=new Array(a.length),e=0,r=a.length;e<r;e+=1){if(n=a[e],lW.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[e]=[i[0],n[i[0]]]}return!0}function fW(t){if(t===null)return[];var e,r,n,i,s,a=t;for(s=new Array(a.length),e=0,r=a.length;e<r;e+=1)n=a[e],i=Object.keys(n),s[e]=[i[0],n[i[0]]];return s}var wq=new Dr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cW,construct:fW}),pW=Object.prototype.hasOwnProperty;function dW(t){if(t===null)return!0;var e,r=t;for(e in r)if(pW.call(r,e)&&r[e]!==null)return!1;return!0}function hW(t){return t!==null?t:{}}var xq=new Dr("tag:yaml.org,2002:set",{kind:"mapping",resolve:dW,construct:hW}),Z_=gq.extend({implicit:[bq,Eq],explicit:[Sq,_q,wq,xq]}),As=Object.prototype.hasOwnProperty,qc=1,Aq=2,Oq=3,Bc=4,Ky=1,mW=2,UT=3,gW=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,yW=/[\x85\u2028\u2029]/,vW=/[,\[\]\{\}]/,Cq=/^(?:!|!!|![a-z\-]+!)$/i,Rq=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function VT(t){return Object.prototype.toString.call(t)}function xi(t){return t===10||t===13}function Gs(t){return t===9||t===32}function un(t){return t===9||t===32||t===10||t===13}function Ma(t){return t===44||t===91||t===93||t===123||t===125}function bW(t){var e;return 48<=t&&t<=57?t-48:(e=t|32,97<=e&&e<=102?e-97+10:-1)}function EW(t){return t===120?2:t===117?4:t===85?8:0}function SW(t){return 48<=t&&t<=57?t-48:-1}function zT(t){return t===48?"\0":t===97?"\x07":t===98?"\b":t===116||t===9?" ":t===110?`
26
+ `:t===118?"\v":t===102?"\f":t===114?"\r":t===101?"\x1B":t===32?" ":t===34?'"':t===47?"/":t===92?"\\":t===78?"…":t===95?" ":t===76?"\u2028":t===80?"\u2029":""}function _W(t){return t<=65535?String.fromCharCode(t):String.fromCharCode((t-65536>>10)+55296,(t-65536&1023)+56320)}var Iq=new Array(256),Tq=new Array(256);for(var Aa=0;Aa<256;Aa++)Iq[Aa]=zT(Aa)?1:0,Tq[Aa]=zT(Aa);function wW(t,e){this.input=t,this.filename=e.filename||null,this.schema=e.schema||Z_,this.onWarning=e.onWarning||null,this.legacy=e.legacy||!1,this.json=e.json||!1,this.listener=e.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Pq(t,e){var r={name:t.filename,buffer:t.input.slice(0,-1),position:t.position,line:t.line,column:t.position-t.lineStart};return r.snippet=Cz(r),new Xr(e,r)}function it(t,e){throw Pq(t,e)}function $c(t,e){t.onWarning&&t.onWarning.call(null,Pq(t,e))}var WT={YAML:function(e,r,n){var i,s,a;e.version!==null&&it(e,"duplication of %YAML directive"),n.length!==1&&it(e,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&it(e,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&it(e,"unacceptable YAML version of the document"),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&$c(e,"unsupported YAML version of the document")},TAG:function(e,r,n){var i,s;n.length!==2&&it(e,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Cq.test(i)||it(e,"ill-formed tag handle (first argument) of the TAG directive"),As.call(e.tagMap,i)&&it(e,'there is a previously declared suffix for "'+i+'" tag handle'),Rq.test(s)||it(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{it(e,"tag prefix is malformed: "+s)}e.tagMap[i]=s}};function ws(t,e,r,n){var i,s,a,o;if(e<r){if(o=t.input.slice(e,r),n)for(i=0,s=o.length;i<s;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||it(t,"expected valid JSON character");else gW.test(o)&&it(t,"the stream contains non-printable characters");t.result+=o}}function JT(t,e,r,n){var i,s,a,o;for(wr.isObject(r)||it(t,"cannot merge mappings; the provided source object is unacceptable"),i=Object.keys(r),a=0,o=i.length;a<o;a+=1)s=i[a],As.call(e,s)||(e[s]=r[s],n[s]=!0)}function Da(t,e,r,n,i,s,a,o,u){var l,c;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),l=0,c=i.length;l<c;l+=1)Array.isArray(i[l])&&it(t,"nested arrays are not supported inside keys"),typeof i=="object"&&VT(i[l])==="[object Object]"&&(i[l]="[object Object]");if(typeof i=="object"&&VT(i)==="[object Object]"&&(i="[object Object]"),i=String(i),e===null&&(e={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(l=0,c=s.length;l<c;l+=1)JT(t,e,s[l],r);else JT(t,e,s,r);else!t.json&&!As.call(r,i)&&As.call(e,i)&&(t.line=a||t.line,t.lineStart=o||t.lineStart,t.position=u||t.position,it(t,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(e,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):e[i]=s,delete r[i];return e}function Q_(t){var e;e=t.input.charCodeAt(t.position),e===10?t.position++:e===13?(t.position++,t.input.charCodeAt(t.position)===10&&t.position++):it(t,"a line break is expected"),t.line+=1,t.lineStart=t.position,t.firstTabInLine=-1}function gr(t,e,r){for(var n=0,i=t.input.charCodeAt(t.position);i!==0;){for(;Gs(i);)i===9&&t.firstTabInLine===-1&&(t.firstTabInLine=t.position),i=t.input.charCodeAt(++t.position);if(e&&i===35)do i=t.input.charCodeAt(++t.position);while(i!==10&&i!==13&&i!==0);if(xi(i))for(Q_(t),i=t.input.charCodeAt(t.position),n++,t.lineIndent=0;i===32;)t.lineIndent++,i=t.input.charCodeAt(++t.position);else break}return r!==-1&&n!==0&&t.lineIndent<r&&$c(t,"deficient indentation"),n}function _f(t){var e=t.position,r;return r=t.input.charCodeAt(e),!!((r===45||r===46)&&r===t.input.charCodeAt(e+1)&&r===t.input.charCodeAt(e+2)&&(e+=3,r=t.input.charCodeAt(e),r===0||un(r)))}function ew(t,e){e===1?t.result+=" ":e>1&&(t.result+=wr.repeat(`
27
+ `,e-1))}function xW(t,e,r){var n,i,s,a,o,u,l,c,p=t.kind,h=t.result,d;if(d=t.input.charCodeAt(t.position),un(d)||Ma(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=t.input.charCodeAt(t.position+1),un(i)||r&&Ma(i)))return!1;for(t.kind="scalar",t.result="",s=a=t.position,o=!1;d!==0;){if(d===58){if(i=t.input.charCodeAt(t.position+1),un(i)||r&&Ma(i))break}else if(d===35){if(n=t.input.charCodeAt(t.position-1),un(n))break}else{if(t.position===t.lineStart&&_f(t)||r&&Ma(d))break;if(xi(d))if(u=t.line,l=t.lineStart,c=t.lineIndent,gr(t,!1,-1),t.lineIndent>=e){o=!0,d=t.input.charCodeAt(t.position);continue}else{t.position=a,t.line=u,t.lineStart=l,t.lineIndent=c;break}}o&&(ws(t,s,a,!1),ew(t,t.line-u),s=a=t.position,o=!1),Gs(d)||(a=t.position+1),d=t.input.charCodeAt(++t.position)}return ws(t,s,a,!1),t.result?!0:(t.kind=p,t.result=h,!1)}function AW(t,e){var r,n,i;if(r=t.input.charCodeAt(t.position),r!==39)return!1;for(t.kind="scalar",t.result="",t.position++,n=i=t.position;(r=t.input.charCodeAt(t.position))!==0;)if(r===39)if(ws(t,n,t.position,!0),r=t.input.charCodeAt(++t.position),r===39)n=t.position,t.position++,i=t.position;else return!0;else xi(r)?(ws(t,n,i,!0),ew(t,gr(t,!1,e)),n=i=t.position):t.position===t.lineStart&&_f(t)?it(t,"unexpected end of the document within a single quoted scalar"):(t.position++,i=t.position);it(t,"unexpected end of the stream within a single quoted scalar")}function OW(t,e){var r,n,i,s,a,o;if(o=t.input.charCodeAt(t.position),o!==34)return!1;for(t.kind="scalar",t.result="",t.position++,r=n=t.position;(o=t.input.charCodeAt(t.position))!==0;){if(o===34)return ws(t,r,t.position,!0),t.position++,!0;if(o===92){if(ws(t,r,t.position,!0),o=t.input.charCodeAt(++t.position),xi(o))gr(t,!1,e);else if(o<256&&Iq[o])t.result+=Tq[o],t.position++;else if((a=EW(o))>0){for(i=a,s=0;i>0;i--)o=t.input.charCodeAt(++t.position),(a=bW(o))>=0?s=(s<<4)+a:it(t,"expected hexadecimal character");t.result+=_W(s),t.position++}else it(t,"unknown escape sequence");r=n=t.position}else xi(o)?(ws(t,r,n,!0),ew(t,gr(t,!1,e)),r=n=t.position):t.position===t.lineStart&&_f(t)?it(t,"unexpected end of the document within a double quoted scalar"):(t.position++,n=t.position)}it(t,"unexpected end of the stream within a double quoted scalar")}function CW(t,e){var r=!0,n,i,s,a=t.tag,o,u=t.anchor,l,c,p,h,d,g=Object.create(null),y,v,E,b;if(b=t.input.charCodeAt(t.position),b===91)c=93,d=!1,o=[];else if(b===123)c=125,d=!0,o={};else return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=o),b=t.input.charCodeAt(++t.position);b!==0;){if(gr(t,!0,e),b=t.input.charCodeAt(t.position),b===c)return t.position++,t.tag=a,t.anchor=u,t.kind=d?"mapping":"sequence",t.result=o,!0;r?b===44&&it(t,"expected the node content, but found ','"):it(t,"missed comma between flow collection entries"),v=y=E=null,p=h=!1,b===63&&(l=t.input.charCodeAt(t.position+1),un(l)&&(p=h=!0,t.position++,gr(t,!0,e))),n=t.line,i=t.lineStart,s=t.position,Wa(t,e,qc,!1,!0),v=t.tag,y=t.result,gr(t,!0,e),b=t.input.charCodeAt(t.position),(h||t.line===n)&&b===58&&(p=!0,b=t.input.charCodeAt(++t.position),gr(t,!0,e),Wa(t,e,qc,!1,!0),E=t.result),d?Da(t,o,g,v,y,E,n,i,s):p?o.push(Da(t,null,g,v,y,E,n,i,s)):o.push(y),gr(t,!0,e),b=t.input.charCodeAt(t.position),b===44?(r=!0,b=t.input.charCodeAt(++t.position)):r=!1}it(t,"unexpected end of the stream within a flow collection")}function RW(t,e){var r,n,i=Ky,s=!1,a=!1,o=e,u=0,l=!1,c,p;if(p=t.input.charCodeAt(t.position),p===124)n=!1;else if(p===62)n=!0;else return!1;for(t.kind="scalar",t.result="";p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)Ky===i?i=p===43?UT:mW:it(t,"repeat of a chomping mode identifier");else if((c=SW(p))>=0)c===0?it(t,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?it(t,"repeat of an indentation width identifier"):(o=e+c-1,a=!0);else break;if(Gs(p)){do p=t.input.charCodeAt(++t.position);while(Gs(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!xi(p)&&p!==0)}for(;p!==0;){for(Q_(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!a||t.lineIndent<o)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!a&&t.lineIndent>o&&(o=t.lineIndent),xi(p)){u++;continue}if(t.lineIndent<o){i===UT?t.result+=wr.repeat(`
28
+ `,s?1+u:u):i===Ky&&s&&(t.result+=`
29
+ `);break}for(n?Gs(p)?(l=!0,t.result+=wr.repeat(`
30
+ `,s?1+u:u)):l?(l=!1,t.result+=wr.repeat(`
31
+ `,u+1)):u===0?s&&(t.result+=" "):t.result+=wr.repeat(`
32
+ `,u):t.result+=wr.repeat(`
33
+ `,s?1+u:u),s=!0,a=!0,u=0,r=t.position;!xi(p)&&p!==0;)p=t.input.charCodeAt(++t.position);ws(t,r,t.position,!1)}return!0}function HT(t,e){var r,n=t.tag,i=t.anchor,s=[],a,o=!1,u;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=s),u=t.input.charCodeAt(t.position);u!==0&&(t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,it(t,"tab characters must not be used in indentation")),!(u!==45||(a=t.input.charCodeAt(t.position+1),!un(a))));){if(o=!0,t.position++,gr(t,!0,-1)&&t.lineIndent<=e){s.push(null),u=t.input.charCodeAt(t.position);continue}if(r=t.line,Wa(t,e,Oq,!1,!0),s.push(t.result),gr(t,!0,-1),u=t.input.charCodeAt(t.position),(t.line===r||t.lineIndent>e)&&u!==0)it(t,"bad indentation of a sequence entry");else if(t.lineIndent<e)break}return o?(t.tag=n,t.anchor=i,t.kind="sequence",t.result=s,!0):!1}function IW(t,e,r){var n,i,s,a,o,u,l=t.tag,c=t.anchor,p={},h=Object.create(null),d=null,g=null,y=null,v=!1,E=!1,b;if(t.firstTabInLine!==-1)return!1;for(t.anchor!==null&&(t.anchorMap[t.anchor]=p),b=t.input.charCodeAt(t.position);b!==0;){if(!v&&t.firstTabInLine!==-1&&(t.position=t.firstTabInLine,it(t,"tab characters must not be used in indentation")),n=t.input.charCodeAt(t.position+1),s=t.line,(b===63||b===58)&&un(n))b===63?(v&&(Da(t,p,h,d,g,null,a,o,u),d=g=y=null),E=!0,v=!0,i=!0):v?(v=!1,i=!0):it(t,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),t.position+=1,b=n;else{if(a=t.line,o=t.lineStart,u=t.position,!Wa(t,r,Aq,!1,!0))break;if(t.line===s){for(b=t.input.charCodeAt(t.position);Gs(b);)b=t.input.charCodeAt(++t.position);if(b===58)b=t.input.charCodeAt(++t.position),un(b)||it(t,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Da(t,p,h,d,g,null,a,o,u),d=g=y=null),E=!0,v=!1,i=!1,d=t.tag,g=t.result;else if(E)it(t,"can not read an implicit mapping pair; a colon is missed");else return t.tag=l,t.anchor=c,!0}else if(E)it(t,"can not read a block mapping entry; a multiline key may not be an implicit key");else return t.tag=l,t.anchor=c,!0}if((t.line===s||t.lineIndent>e)&&(v&&(a=t.line,o=t.lineStart,u=t.position),Wa(t,e,Bc,!0,i)&&(v?g=t.result:y=t.result),v||(Da(t,p,h,d,g,y,a,o,u),d=g=y=null),gr(t,!0,-1),b=t.input.charCodeAt(t.position)),(t.line===s||t.lineIndent>e)&&b!==0)it(t,"bad indentation of a mapping entry");else if(t.lineIndent<e)break}return v&&Da(t,p,h,d,g,null,a,o,u),E&&(t.tag=l,t.anchor=c,t.kind="mapping",t.result=p),E}function TW(t){var e,r=!1,n=!1,i,s,a;if(a=t.input.charCodeAt(t.position),a!==33)return!1;if(t.tag!==null&&it(t,"duplication of a tag property"),a=t.input.charCodeAt(++t.position),a===60?(r=!0,a=t.input.charCodeAt(++t.position)):a===33?(n=!0,i="!!",a=t.input.charCodeAt(++t.position)):i="!",e=t.position,r){do a=t.input.charCodeAt(++t.position);while(a!==0&&a!==62);t.position<t.length?(s=t.input.slice(e,t.position),a=t.input.charCodeAt(++t.position)):it(t,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!un(a);)a===33&&(n?it(t,"tag suffix cannot contain exclamation marks"):(i=t.input.slice(e-1,t.position+1),Cq.test(i)||it(t,"named tag handle cannot contain such characters"),n=!0,e=t.position+1)),a=t.input.charCodeAt(++t.position);s=t.input.slice(e,t.position),vW.test(s)&&it(t,"tag suffix cannot contain flow indicator characters")}s&&!Rq.test(s)&&it(t,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{it(t,"tag name is malformed: "+s)}return r?t.tag=s:As.call(t.tagMap,i)?t.tag=t.tagMap[i]+s:i==="!"?t.tag="!"+s:i==="!!"?t.tag="tag:yaml.org,2002:"+s:it(t,'undeclared tag handle "'+i+'"'),!0}function PW(t){var e,r;if(r=t.input.charCodeAt(t.position),r!==38)return!1;for(t.anchor!==null&&it(t,"duplication of an anchor property"),r=t.input.charCodeAt(++t.position),e=t.position;r!==0&&!un(r)&&!Ma(r);)r=t.input.charCodeAt(++t.position);return t.position===e&&it(t,"name of an anchor node must contain at least one character"),t.anchor=t.input.slice(e,t.position),!0}function kW(t){var e,r,n;if(n=t.input.charCodeAt(t.position),n!==42)return!1;for(n=t.input.charCodeAt(++t.position),e=t.position;n!==0&&!un(n)&&!Ma(n);)n=t.input.charCodeAt(++t.position);return t.position===e&&it(t,"name of an alias node must contain at least one character"),r=t.input.slice(e,t.position),As.call(t.anchorMap,r)||it(t,'unidentified alias "'+r+'"'),t.result=t.anchorMap[r],gr(t,!0,-1),!0}function Wa(t,e,r,n,i){var s,a,o,u=1,l=!1,c=!1,p,h,d,g,y,v;if(t.listener!==null&&t.listener("open",t),t.tag=null,t.anchor=null,t.kind=null,t.result=null,s=a=o=Bc===r||Oq===r,n&&gr(t,!0,-1)&&(l=!0,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)),u===1)for(;TW(t)||PW(t);)gr(t,!0,-1)?(l=!0,o=s,t.lineIndent>e?u=1:t.lineIndent===e?u=0:t.lineIndent<e&&(u=-1)):o=!1;if(o&&(o=l||i),(u===1||Bc===r)&&(qc===r||Aq===r?y=e:y=e+1,v=t.position-t.lineStart,u===1?o&&(HT(t,v)||IW(t,v,y))||CW(t,y)?c=!0:(a&&RW(t,y)||AW(t,y)||OW(t,y)?c=!0:kW(t)?(c=!0,(t.tag!==null||t.anchor!==null)&&it(t,"alias node should not have any properties")):xW(t,y,qc===r)&&(c=!0,t.tag===null&&(t.tag="?")),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):u===0&&(c=o&&HT(t,v))),t.tag===null)t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);else if(t.tag==="?"){for(t.result!==null&&t.kind!=="scalar"&&it(t,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+t.kind+'"'),p=0,h=t.implicitTypes.length;p<h;p+=1)if(g=t.implicitTypes[p],g.resolve(t.result)){t.result=g.construct(t.result),t.tag=g.tag,t.anchor!==null&&(t.anchorMap[t.anchor]=t.result);break}}else if(t.tag!=="!"){if(As.call(t.typeMap[t.kind||"fallback"],t.tag))g=t.typeMap[t.kind||"fallback"][t.tag];else for(g=null,d=t.typeMap.multi[t.kind||"fallback"],p=0,h=d.length;p<h;p+=1)if(t.tag.slice(0,d[p].tag.length)===d[p].tag){g=d[p];break}g||it(t,"unknown tag !<"+t.tag+">"),t.result!==null&&g.kind!==t.kind&&it(t,"unacceptable node kind for !<"+t.tag+'> tag; it should be "'+g.kind+'", not "'+t.kind+'"'),g.resolve(t.result,t.tag)?(t.result=g.construct(t.result,t.tag),t.anchor!==null&&(t.anchorMap[t.anchor]=t.result)):it(t,"cannot resolve a node with !<"+t.tag+"> explicit tag")}return t.listener!==null&&t.listener("close",t),t.tag!==null||t.anchor!==null||c}function jW(t){var e=t.position,r,n,i,s=!1,a;for(t.version=null,t.checkLineBreaks=t.legacy,t.tagMap=Object.create(null),t.anchorMap=Object.create(null);(a=t.input.charCodeAt(t.position))!==0&&(gr(t,!0,-1),a=t.input.charCodeAt(t.position),!(t.lineIndent>0||a!==37));){for(s=!0,a=t.input.charCodeAt(++t.position),r=t.position;a!==0&&!un(a);)a=t.input.charCodeAt(++t.position);for(n=t.input.slice(r,t.position),i=[],n.length<1&&it(t,"directive name must not be less than one character in length");a!==0;){for(;Gs(a);)a=t.input.charCodeAt(++t.position);if(a===35){do a=t.input.charCodeAt(++t.position);while(a!==0&&!xi(a));break}if(xi(a))break;for(r=t.position;a!==0&&!un(a);)a=t.input.charCodeAt(++t.position);i.push(t.input.slice(r,t.position))}a!==0&&Q_(t),As.call(WT,n)?WT[n](t,n,i):$c(t,'unknown document directive "'+n+'"')}if(gr(t,!0,-1),t.lineIndent===0&&t.input.charCodeAt(t.position)===45&&t.input.charCodeAt(t.position+1)===45&&t.input.charCodeAt(t.position+2)===45?(t.position+=3,gr(t,!0,-1)):s&&it(t,"directives end mark is expected"),Wa(t,t.lineIndent-1,Bc,!1,!0),gr(t,!0,-1),t.checkLineBreaks&&yW.test(t.input.slice(e,t.position))&&$c(t,"non-ASCII line breaks are interpreted as content"),t.documents.push(t.result),t.position===t.lineStart&&_f(t)){t.input.charCodeAt(t.position)===46&&(t.position+=3,gr(t,!0,-1));return}if(t.position<t.length-1)it(t,"end of the stream or a document separator is expected");else return}function kq(t,e){t=String(t),e=e||{},t.length!==0&&(t.charCodeAt(t.length-1)!==10&&t.charCodeAt(t.length-1)!==13&&(t+=`
34
+ `),t.charCodeAt(0)===65279&&(t=t.slice(1)));var r=new wW(t,e),n=t.indexOf("\0");for(n!==-1&&(r.position=n,it(r,"null byte is not allowed in input")),r.input+="\0";r.input.charCodeAt(r.position)===32;)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)jW(r);return r.documents}function NW(t,e,r){e!==null&&typeof e=="object"&&typeof r>"u"&&(r=e,e=null);var n=kq(t,r);if(typeof e!="function")return n;for(var i=0,s=n.length;i<s;i+=1)e(n[i])}function MW(t,e){var r=kq(t,e);if(r.length!==0){if(r.length===1)return r[0];throw new Xr("expected a single document in the stream, but found more")}}var DW=NW,FW=MW,jq={loadAll:DW,load:FW},Nq=Object.prototype.toString,Mq=Object.prototype.hasOwnProperty,tw=65279,qW=9,tu=10,BW=13,$W=32,LW=33,UW=34,i1=35,VW=37,zW=38,WW=39,JW=42,Dq=44,HW=45,Lc=58,KW=61,GW=62,YW=63,XW=64,Fq=91,qq=93,ZW=96,Bq=123,QW=124,$q=125,Ur={};Ur[0]="\\0";Ur[7]="\\a";Ur[8]="\\b";Ur[9]="\\t";Ur[10]="\\n";Ur[11]="\\v";Ur[12]="\\f";Ur[13]="\\r";Ur[27]="\\e";Ur[34]='\\"';Ur[92]="\\\\";Ur[133]="\\N";Ur[160]="\\_";Ur[8232]="\\L";Ur[8233]="\\P";var eJ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],tJ=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function rJ(t,e){var r,n,i,s,a,o,u;if(e===null)return{};for(r={},n=Object.keys(e),i=0,s=n.length;i<s;i+=1)a=n[i],o=String(e[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=t.compiledTypeMap.fallback[a],u&&Mq.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[a]=o;return r}function nJ(t){var e,r,n;if(e=t.toString(16).toUpperCase(),t<=255)r="x",n=2;else if(t<=65535)r="u",n=4;else if(t<=4294967295)r="U",n=8;else throw new Xr("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+wr.repeat("0",n-e.length)+e}var iJ=1,ru=2;function sJ(t){this.schema=t.schema||Z_,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=wr.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=rJ(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType==='"'?ru:iJ,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer=="function"?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function KT(t,e){for(var r=wr.repeat(" ",e),n=0,i=-1,s="",a,o=t.length;n<o;)i=t.indexOf(`
35
+ `,n),i===-1?(a=t.slice(n),n=o):(a=t.slice(n,i+1),n=i+1),a.length&&a!==`
36
+ `&&(s+=r),s+=a;return s}function s1(t,e){return`
37
+ `+wr.repeat(" ",t.indent*e)}function aJ(t,e){var r,n,i;for(r=0,n=t.implicitTypes.length;r<n;r+=1)if(i=t.implicitTypes[r],i.resolve(e))return!0;return!1}function Uc(t){return t===$W||t===qW}function nu(t){return 32<=t&&t<=126||161<=t&&t<=55295&&t!==8232&&t!==8233||57344<=t&&t<=65533&&t!==tw||65536<=t&&t<=1114111}function GT(t){return nu(t)&&t!==tw&&t!==BW&&t!==tu}function YT(t,e,r){var n=GT(t),i=n&&!Uc(t);return(r?n:n&&t!==Dq&&t!==Fq&&t!==qq&&t!==Bq&&t!==$q)&&t!==i1&&!(e===Lc&&!i)||GT(e)&&!Uc(e)&&t===i1||e===Lc&&i}function oJ(t){return nu(t)&&t!==tw&&!Uc(t)&&t!==HW&&t!==YW&&t!==Lc&&t!==Dq&&t!==Fq&&t!==qq&&t!==Bq&&t!==$q&&t!==i1&&t!==zW&&t!==JW&&t!==LW&&t!==QW&&t!==KW&&t!==GW&&t!==WW&&t!==UW&&t!==VW&&t!==XW&&t!==ZW}function uJ(t){return!Uc(t)&&t!==Lc}function Lo(t,e){var r=t.charCodeAt(e),n;return r>=55296&&r<=56319&&e+1<t.length&&(n=t.charCodeAt(e+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function Lq(t){var e=/^\n* /;return e.test(t)}var Uq=1,a1=2,Vq=3,zq=4,ka=5;function lJ(t,e,r,n,i,s,a,o){var u,l=0,c=null,p=!1,h=!1,d=n!==-1,g=-1,y=oJ(Lo(t,0))&&uJ(Lo(t,t.length-1));if(e||a)for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=Lo(t,u),!nu(l))return ka;y=y&&YT(l,c,o),c=l}else{for(u=0;u<t.length;l>=65536?u+=2:u++){if(l=Lo(t,u),l===tu)p=!0,d&&(h=h||u-g-1>n&&t[g+1]!==" ",g=u);else if(!nu(l))return ka;y=y&&YT(l,c,o),c=l}h=h||d&&u-g-1>n&&t[g+1]!==" "}return!p&&!h?y&&!a&&!i(t)?Uq:s===ru?ka:a1:r>9&&Lq(t)?ka:a?s===ru?ka:a1:h?zq:Vq}function cJ(t,e,r,n,i){t.dump=(function(){if(e.length===0)return t.quotingType===ru?'""':"''";if(!t.noCompatMode&&(eJ.indexOf(e)!==-1||tJ.test(e)))return t.quotingType===ru?'"'+e+'"':"'"+e+"'";var s=t.indent*Math.max(1,r),a=t.lineWidth===-1?-1:Math.max(Math.min(t.lineWidth,40),t.lineWidth-s),o=n||t.flowLevel>-1&&r>=t.flowLevel;function u(l){return aJ(t,l)}switch(lJ(e,o,t.indent,a,u,t.quotingType,t.forceQuotes&&!n,i)){case Uq:return e;case a1:return"'"+e.replace(/'/g,"''")+"'";case Vq:return"|"+XT(e,t.indent)+ZT(KT(e,s));case zq:return">"+XT(e,t.indent)+ZT(KT(fJ(e,a),s));case ka:return'"'+pJ(e)+'"';default:throw new Xr("impossible error: invalid scalar style")}})()}function XT(t,e){var r=Lq(t)?String(e):"",n=t[t.length-1]===`
38
+ `,i=n&&(t[t.length-2]===`
39
+ `||t===`
40
+ `),s=i?"+":n?"":"-";return r+s+`
41
+ `}function ZT(t){return t[t.length-1]===`
42
+ `?t.slice(0,-1):t}function fJ(t,e){for(var r=/(\n+)([^\n]*)/g,n=(function(){var l=t.indexOf(`
43
+ `);return l=l!==-1?l:t.length,r.lastIndex=l,QT(t.slice(0,l),e)})(),i=t[0]===`
44
+ `||t[0]===" ",s,a;a=r.exec(t);){var o=a[1],u=a[2];s=u[0]===" ",n+=o+(!i&&!s&&u!==""?`
45
+ `:"")+QT(u,e),i=s}return n}function QT(t,e){if(t===""||t[0]===" ")return t;for(var r=/ [^ ]/g,n,i=0,s,a=0,o=0,u="";n=r.exec(t);)o=n.index,o-i>e&&(s=a>i?a:o,u+=`
46
+ `+t.slice(i,s),i=s+1),a=o;return u+=`
47
+ `,t.length-i>e&&a>i?u+=t.slice(i,a)+`
48
+ `+t.slice(a+1):u+=t.slice(i),u.slice(1)}function pJ(t){for(var e="",r=0,n,i=0;i<t.length;r>=65536?i+=2:i++)r=Lo(t,i),n=Ur[r],!n&&nu(r)?(e+=t[i],r>=65536&&(e+=t[i+1])):e+=n||nJ(r);return e}function dJ(t,e,r){var n="",i=t.tag,s,a,o;for(s=0,a=r.length;s<a;s+=1)o=r[s],t.replacer&&(o=t.replacer.call(r,String(s),o)),(Gi(t,e,o,!1,!1)||typeof o>"u"&&Gi(t,e,null,!1,!1))&&(n!==""&&(n+=","+(t.condenseFlow?"":" ")),n+=t.dump);t.tag=i,t.dump="["+n+"]"}function eP(t,e,r,n){var i="",s=t.tag,a,o,u;for(a=0,o=r.length;a<o;a+=1)u=r[a],t.replacer&&(u=t.replacer.call(r,String(a),u)),(Gi(t,e+1,u,!0,!0,!1,!0)||typeof u>"u"&&Gi(t,e+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=s1(t,e)),t.dump&&tu===t.dump.charCodeAt(0)?i+="-":i+="- ",i+=t.dump);t.tag=s,t.dump=i||"[]"}function hJ(t,e,r){var n="",i=t.tag,s=Object.keys(r),a,o,u,l,c;for(a=0,o=s.length;a<o;a+=1)c="",n!==""&&(c+=", "),t.condenseFlow&&(c+='"'),u=s[a],l=r[u],t.replacer&&(l=t.replacer.call(r,u,l)),Gi(t,e,u,!1,!1)&&(t.dump.length>1024&&(c+="? "),c+=t.dump+(t.condenseFlow?'"':"")+":"+(t.condenseFlow?"":" "),Gi(t,e,l,!1,!1)&&(c+=t.dump,n+=c));t.tag=i,t.dump="{"+n+"}"}function mJ(t,e,r,n){var i="",s=t.tag,a=Object.keys(r),o,u,l,c,p,h;if(t.sortKeys===!0)a.sort();else if(typeof t.sortKeys=="function")a.sort(t.sortKeys);else if(t.sortKeys)throw new Xr("sortKeys must be a boolean or a function");for(o=0,u=a.length;o<u;o+=1)h="",(!n||i!=="")&&(h+=s1(t,e)),l=a[o],c=r[l],t.replacer&&(c=t.replacer.call(r,l,c)),Gi(t,e+1,l,!0,!0,!0)&&(p=t.tag!==null&&t.tag!=="?"||t.dump&&t.dump.length>1024,p&&(t.dump&&tu===t.dump.charCodeAt(0)?h+="?":h+="? "),h+=t.dump,p&&(h+=s1(t,e)),Gi(t,e+1,c,!0,p)&&(t.dump&&tu===t.dump.charCodeAt(0)?h+=":":h+=": ",h+=t.dump,i+=h));t.tag=s,t.dump=i||"{}"}function tP(t,e,r){var n,i,s,a,o,u;for(i=r?t.explicitTypes:t.implicitTypes,s=0,a=i.length;s<a;s+=1)if(o=i[s],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof e=="object"&&e instanceof o.instanceOf)&&(!o.predicate||o.predicate(e))){if(r?o.multi&&o.representName?t.tag=o.representName(e):t.tag=o.tag:t.tag="?",o.represent){if(u=t.styleMap[o.tag]||o.defaultStyle,Nq.call(o.represent)==="[object Function]")n=o.represent(e,u);else if(Mq.call(o.represent,u))n=o.represent[u](e,u);else throw new Xr("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');t.dump=n}return!0}return!1}function Gi(t,e,r,n,i,s,a){t.tag=null,t.dump=r,tP(t,r,!1)||tP(t,r,!0);var o=Nq.call(t.dump),u=n,l;n&&(n=t.flowLevel<0||t.flowLevel>e);var c=o==="[object Object]"||o==="[object Array]",p,h;if(c&&(p=t.duplicates.indexOf(r),h=p!==-1),(t.tag!==null&&t.tag!=="?"||h||t.indent!==2&&e>0)&&(i=!1),h&&t.usedDuplicates[p])t.dump="*ref_"+p;else{if(c&&h&&!t.usedDuplicates[p]&&(t.usedDuplicates[p]=!0),o==="[object Object]")n&&Object.keys(t.dump).length!==0?(mJ(t,e,t.dump,i),h&&(t.dump="&ref_"+p+t.dump)):(hJ(t,e,t.dump),h&&(t.dump="&ref_"+p+" "+t.dump));else if(o==="[object Array]")n&&t.dump.length!==0?(t.noArrayIndent&&!a&&e>0?eP(t,e-1,t.dump,i):eP(t,e,t.dump,i),h&&(t.dump="&ref_"+p+t.dump)):(dJ(t,e,t.dump),h&&(t.dump="&ref_"+p+" "+t.dump));else if(o==="[object String]")t.tag!=="?"&&cJ(t,t.dump,e,s,u);else{if(o==="[object Undefined]")return!1;if(t.skipInvalid)return!1;throw new Xr("unacceptable kind of an object to dump "+o)}t.tag!==null&&t.tag!=="?"&&(l=encodeURI(t.tag[0]==="!"?t.tag.slice(1):t.tag).replace(/!/g,"%21"),t.tag[0]==="!"?l="!"+l:l.slice(0,18)==="tag:yaml.org,2002:"?l="!!"+l.slice(18):l="!<"+l+">",t.dump=l+" "+t.dump)}return!0}function gJ(t,e){var r=[],n=[],i,s;for(o1(t,r,n),i=0,s=n.length;i<s;i+=1)e.duplicates.push(r[n[i]]);e.usedDuplicates=new Array(s)}function o1(t,e,r){var n,i,s;if(t!==null&&typeof t=="object")if(i=e.indexOf(t),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(e.push(t),Array.isArray(t))for(i=0,s=t.length;i<s;i+=1)o1(t[i],e,r);else for(n=Object.keys(t),i=0,s=n.length;i<s;i+=1)o1(t[n[i]],e,r)}function yJ(t,e){e=e||{};var r=new sJ(e);r.noRefs||gJ(t,r);var n=t;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Gi(r,0,n,!0,!0)?r.dump+`
49
+ `:""}var vJ=yJ,bJ={dump:vJ};function rw(t,e){return function(){throw new Error("Function yaml."+t+" is removed in js-yaml 4. Use yaml."+e+" instead, which is now safe by default.")}}var EJ=Dr,SJ=aq,_J=cq,iu=mq,wJ=gq,xJ=Z_,AJ=jq.load,OJ=jq.loadAll,CJ=bJ.dump,RJ=Xr,IJ={binary:Sq,float:hq,map:lq,null:fq,pairs:wq,set:xq,timestamp:bq,bool:pq,int:dq,merge:Eq,omap:_q,seq:uq,str:oq},TJ=rw("safeLoad","load"),PJ=rw("safeLoadAll","loadAll"),kJ=rw("safeDump","dump"),ea={Type:EJ,Schema:SJ,FAILSAFE_SCHEMA:_J,JSON_SCHEMA:iu,CORE_SCHEMA:wJ,DEFAULT_SCHEMA:xJ,load:AJ,loadAll:OJ,dump:CJ,YAMLException:RJ,types:IJ,safeLoad:TJ,safeLoadAll:PJ,safeDump:kJ},wc={exports:{}},jJ=wc.exports,rP;function NJ(){return rP||(rP=1,(function(t){(function(e,r){t.exports?t.exports=r():(function n(){document&&document.body?e.zenscroll=r():setTimeout(n,9)})()})(jJ,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,c,p){c=c||999,!p&&p!==0&&(p=9);var h,d=function(S){h=S},g=function(){clearTimeout(h),d(0)},y=function(S){return Math.max(0,l.getTopOf(S)-p)},v=function(S,A,I){if(g(),A===0||A&&A<0||e(l.body))l.toY(S),I&&I();else{var T=l.getY(),k=Math.max(0,S)-T,D=new Date().getTime();A=A||Math.min(Math.abs(k),c),(function R(){d(setTimeout(function(){var $=Math.min(1,(new Date().getTime()-D)/A),M=Math.max(0,Math.floor(T+k*($<.5?2*$*$:$*(4-$*2)-1)));l.toY(M),$<1&&l.getHeight()+M<l.body.scrollHeight?R():(setTimeout(g,99),I&&I())},9))})()}},E=function(S,A,I){v(y(S),A,I)},b=function(S,A,I){var T=S.getBoundingClientRect().height,k=l.getTopOf(S)+T,D=l.getHeight(),R=l.getY(),$=R+D;y(S)<R||T+p>D?E(S,A,I):k+p>$?v(k-D+p,A,I):I&&I()},_=function(S,A,I,T){v(Math.max(0,l.getTopOf(S)-l.getHeight()/2+(I||S.getBoundingClientRect().height/2)),A,T)},w=function(S,A){return(S===0||S)&&(c=S),(A===0||A)&&(p=A),{defaultDuration:c,edgeOffset:p}};return{setup:w,to:E,toY:v,intoView:b,center:_,stop:g,moving:function(){return!!h},getY:l.getY,getTopOf:l.getTopOf}},n=document.documentElement,i=function(){return window.scrollY||n.scrollTop},s=r({body:document.scrollingElement||document.body,toY:function(l){window.scrollTo(0,l)},getY:i,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(l){return l.getBoundingClientRect().top+i()-n.offsetTop}});if(s.createScroller=function(l,c,p){return r({body:l,toY:function(h){l.scrollTop=h},getY:function(){return l.scrollTop},getHeight:function(){return Math.min(l.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(h){return h.offsetTop}},c,p)},"addEventListener"in window&&!window.noZensmooth&&!e(document.body)){var a="history"in window&&"pushState"in history,o=a&&"scrollRestoration"in history;o&&(history.scrollRestoration="auto"),window.addEventListener("load",function(){o&&(setTimeout(function(){history.scrollRestoration="manual"},9),window.addEventListener("popstate",function(l){l.state&&"zenscrollY"in l.state&&s.toY(l.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var l=s.setup().edgeOffset;if(l){var c=document.getElementById(window.location.href.split("#")[1]);if(c){var p=Math.max(0,s.getTopOf(c)-l),h=s.getY()-p;0<=h&&h<9&&window.scrollTo(0,p)}}},9)},!1);var u=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(l){for(var c=l.target;c&&c.tagName!=="A";)c=c.parentNode;if(!(!c||l.which!==1||l.shiftKey||l.metaKey||l.ctrlKey||l.altKey)){if(o){var p=history.state&&typeof history.state=="object"?history.state:{};p.zenscrollY=s.getY();try{history.replaceState(p,"")}catch{}}var h=c.getAttribute("href")||"";if(h.indexOf("#")===0&&!u.test(c.className)){var d=0,g=document.getElementById(h.substring(1));if(h!=="#"){if(!g)return;d=s.getTopOf(g)}l.preventDefault();var y=function(){window.location=h},v=s.setup().edgeOffset;v&&(d=Math.max(0,d-v),a&&(y=function(){history.pushState({},"",h)})),s.toY(d,null,y)}}},!1)}return s})})(wc)),wc.exports}var MJ=NJ();const DJ=ot(MJ);var Gy,nP;function FJ(){if(nP)return Gy;nP=1;var t=ff(),e="<<anonymous>>",r;{var n=function(){invariant(!1,"ImmutablePropTypes type checking code is stripped in production.")};n.isRequired=n;var i=function(){return n};r={listOf:i,mapOf:i,orderedMapOf:i,setOf:i,orderedSetOf:i,stackOf:i,iterableOf:i,recordOf:i,shape:i,contains:i,mapContains:i,orderedMapContains:i,list:n,map:n,orderedMap:n,set:n,orderedSet:n,stack:n,seq:n,record:n,iterable:n}}r.iterable.indexed=u("Indexed",t.Iterable.isIndexed),r.iterable.keyed=u("Keyed",t.Iterable.isKeyed);function s(l){var c=typeof l;return Array.isArray(l)?"array":l instanceof RegExp?"object":l instanceof t.Iterable?"Immutable."+l.toSource().split(" ")[0]:c}function a(l){function c(h,d,g,y,v,E){for(var b=arguments.length,_=Array(b>6?b-6:0),w=6;w<b;w++)_[w-6]=arguments[w];if(E=E||g,y=y||e,d[g]==null){var S=v;if(h)return new Error("Required "+S+" `"+E+"` was not specified in "+("`"+y+"`."))}else return l.apply(void 0,[d,g,y,v,E].concat(_))}var p=c.bind(null,!1);return p.isRequired=c.bind(null,!0),p}function o(l,c){function p(h,d,g,y,v){var E=h[d];if(!c(E)){var b=s(E);return new Error("Invalid "+y+" `"+v+"` of type `"+b+"` "+("supplied to `"+g+"`, expected `"+l+"`."))}return null}return a(p)}function u(l,c){return o("Iterable."+l,function(p){return t.Iterable.isIterable(p)&&c(p)})}return Gy=r,Gy}var qJ=FJ();const BJ=ot(qJ);var Yy,iP;function $J(){if(iP)return Yy;iP=1;function t(e,r,n,i,s){return s(e,function(a,o,u){n=i?(i=!1,a):r(n,a,o,u)}),n}return Yy=t,Yy}var Xy,sP;function LJ(){if(sP)return Xy;sP=1;var t=qF(),e=QF(),r=Tu(),n=$J(),i=Rr();function s(a,o,u){var l=i(a)?t:n,c=arguments.length<3;return l(a,r(o,4),u,c,e)}return Xy=s,Xy}var UJ=LJ();const VJ=ot(UJ);var zJ=GF();const WJ=ot(zJ);var aP={},Ro,oP;function cn(){if(oP)return Ro;oP=1;var t=function(e){return e&&e.Math===Math&&e};return Ro=t(typeof globalThis=="object"&&globalThis)||t(typeof window=="object"&&window)||t(typeof self=="object"&&self)||t(typeof Lr=="object"&&Lr)||t(typeof Ro=="object"&&Ro)||(function(){return this})()||Function("return this")(),Ro}var Zy,uP;function $n(){return uP||(uP=1,Zy=function(t){try{return!!t()}catch{return!0}}),Zy}var Qy,lP;function Pu(){if(lP)return Qy;lP=1;var t=$n();return Qy=!t(function(){var e=(function(){}).bind();return typeof e!="function"||e.hasOwnProperty("prototype")}),Qy}var ev,cP;function nw(){if(cP)return ev;cP=1;var t=Pu(),e=Function.prototype,r=e.apply,n=e.call;return ev=typeof Reflect=="object"&&Reflect.apply||(t?n.bind(r):function(){return n.apply(r,arguments)}),ev}var tv,fP;function fn(){if(fP)return tv;fP=1;var t=Pu(),e=Function.prototype,r=e.call,n=t&&e.bind.bind(r,r);return tv=t?n:function(i){return function(){return r.apply(i,arguments)}},tv}var rv,pP;function iw(){if(pP)return rv;pP=1;var t=fn(),e=t({}.toString),r=t("".slice);return rv=function(n){return r(e(n),8,-1)},rv}var nv,dP;function Wq(){if(dP)return nv;dP=1;var t=iw(),e=fn();return nv=function(r){if(t(r)==="Function")return e(r)},nv}var iv,hP;function Sn(){if(hP)return iv;hP=1;var t=typeof document=="object"&&document.all;return iv=typeof t>"u"&&t!==void 0?function(e){return typeof e=="function"||e===t}:function(e){return typeof e=="function"},iv}var sv={},av,mP;function Ti(){if(mP)return av;mP=1;var t=$n();return av=!t(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),av}var ov,gP;function Rs(){if(gP)return ov;gP=1;var t=Pu(),e=Function.prototype.call;return ov=t?e.bind(e):function(){return e.apply(e,arguments)},ov}var uv={},yP;function Jq(){if(yP)return uv;yP=1;var t={}.propertyIsEnumerable,e=Object.getOwnPropertyDescriptor,r=e&&!t.call({1:2},1);return uv.f=r?function(i){var s=e(this,i);return!!s&&s.enumerable}:t,uv}var lv,vP;function ku(){return vP||(vP=1,lv=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}}),lv}var cv,bP;function Hq(){if(bP)return cv;bP=1;var t=fn(),e=$n(),r=iw(),n=Object,i=t("".split);return cv=e(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?i(s,""):n(s)}:n,cv}var fv,EP;function sw(){return EP||(EP=1,fv=function(t){return t==null}),fv}var pv,SP;function wf(){if(SP)return pv;SP=1;var t=sw(),e=TypeError;return pv=function(r){if(t(r))throw new e("Can't call method on "+r);return r},pv}var dv,_P;function ju(){if(_P)return dv;_P=1;var t=Hq(),e=wf();return dv=function(r){return t(e(r))},dv}var hv,wP;function si(){if(wP)return hv;wP=1;var t=Sn();return hv=function(e){return typeof e=="object"?e!==null:t(e)},hv}var mv,xP;function Nu(){return xP||(xP=1,mv={}),mv}var gv,AP;function Mu(){if(AP)return gv;AP=1;var t=Nu(),e=cn(),r=Sn(),n=function(i){return r(i)?i:void 0};return gv=function(i,s){return arguments.length<2?n(t[i])||n(e[i]):t[i]&&t[i][s]||e[i]&&e[i][s]},gv}var yv,OP;function Du(){if(OP)return yv;OP=1;var t=fn();return yv=t({}.isPrototypeOf),yv}var vv,CP;function JJ(){if(CP)return vv;CP=1;var t=cn(),e=t.navigator,r=e&&e.userAgent;return vv=r?String(r):"",vv}var bv,RP;function HJ(){if(RP)return bv;RP=1;var t=cn(),e=JJ(),r=t.process,n=t.Deno,i=r&&r.versions||n&&n.version,s=i&&i.v8,a,o;return s&&(a=s.split("."),o=a[0]>0&&a[0]<4?1:+(a[0]+a[1])),!o&&e&&(a=e.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=e.match(/Chrome\/(\d+)/),a&&(o=+a[1]))),bv=o,bv}var Ev,IP;function Kq(){if(IP)return Ev;IP=1;var t=HJ(),e=$n(),r=cn(),n=r.String;return Ev=!!Object.getOwnPropertySymbols&&!e(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&t&&t<41}),Ev}var Sv,TP;function Gq(){if(TP)return Sv;TP=1;var t=Kq();return Sv=t&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Sv}var _v,PP;function Yq(){if(PP)return _v;PP=1;var t=Mu(),e=Sn(),r=Du(),n=Gq(),i=Object;return _v=n?function(s){return typeof s=="symbol"}:function(s){var a=t("Symbol");return e(a)&&r(a.prototype,i(s))},_v}var wv,kP;function aw(){if(kP)return wv;kP=1;var t=String;return wv=function(e){try{return t(e)}catch{return"Object"}},wv}var xv,jP;function Fu(){if(jP)return xv;jP=1;var t=Sn(),e=aw(),r=TypeError;return xv=function(n){if(t(n))return n;throw new r(e(n)+" is not a function")},xv}var Av,NP;function ow(){if(NP)return Av;NP=1;var t=Fu(),e=sw();return Av=function(r,n){var i=r[n];return e(i)?void 0:t(i)},Av}var Ov,MP;function KJ(){if(MP)return Ov;MP=1;var t=Rs(),e=Sn(),r=si(),n=TypeError;return Ov=function(i,s){var a,o;if(s==="string"&&e(a=i.toString)&&!r(o=t(a,i))||e(a=i.valueOf)&&!r(o=t(a,i))||s!=="string"&&e(a=i.toString)&&!r(o=t(a,i)))return o;throw new n("Can't convert object to primitive value")},Ov}var Cv={exports:{}},Rv,DP;function qu(){return DP||(DP=1,Rv=!0),Rv}var Iv,FP;function GJ(){if(FP)return Iv;FP=1;var t=cn(),e=Object.defineProperty;return Iv=function(r,n){try{e(t,r,{value:n,configurable:!0,writable:!0})}catch{t[r]=n}return n},Iv}var qP;function Xq(){if(qP)return Cv.exports;qP=1;var t=qu(),e=cn(),r=GJ(),n="__core-js_shared__",i=Cv.exports=e[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.46.0",mode:t?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.46.0/LICENSE",source:"https://github.com/zloirock/core-js"}),Cv.exports}var Tv,BP;function Zq(){if(BP)return Tv;BP=1;var t=Xq();return Tv=function(e,r){return t[e]||(t[e]=r||{})},Tv}var Pv,$P;function uw(){if($P)return Pv;$P=1;var t=wf(),e=Object;return Pv=function(r){return e(t(r))},Pv}var kv,LP;function ai(){if(LP)return kv;LP=1;var t=fn(),e=uw(),r=t({}.hasOwnProperty);return kv=Object.hasOwn||function(i,s){return r(e(i),s)},kv}var jv,UP;function Qq(){if(UP)return jv;UP=1;var t=fn(),e=0,r=Math.random(),n=t(1.1.toString);return jv=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++e+r,36)},jv}var Nv,VP;function es(){if(VP)return Nv;VP=1;var t=cn(),e=Zq(),r=ai(),n=Qq(),i=Kq(),s=Gq(),a=t.Symbol,o=e("wks"),u=s?a.for||a:a&&a.withoutSetter||n;return Nv=function(l){return r(o,l)||(o[l]=i&&r(a,l)?a[l]:u("Symbol."+l)),o[l]},Nv}var Mv,zP;function YJ(){if(zP)return Mv;zP=1;var t=Rs(),e=si(),r=Yq(),n=ow(),i=KJ(),s=es(),a=TypeError,o=s("toPrimitive");return Mv=function(u,l){if(!e(u)||r(u))return u;var c=n(u,o),p;if(c){if(l===void 0&&(l="default"),p=t(c,u,l),!e(p)||r(p))return p;throw new a("Can't convert object to primitive value")}return l===void 0&&(l="number"),i(u,l)},Mv}var Dv,WP;function eB(){if(WP)return Dv;WP=1;var t=YJ(),e=Yq();return Dv=function(r){var n=t(r,"string");return e(n)?n:n+""},Dv}var Fv,JP;function tB(){if(JP)return Fv;JP=1;var t=cn(),e=si(),r=t.document,n=e(r)&&e(r.createElement);return Fv=function(i){return n?r.createElement(i):{}},Fv}var qv,HP;function rB(){if(HP)return qv;HP=1;var t=Ti(),e=$n(),r=tB();return qv=!t&&!e(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),qv}var KP;function nB(){if(KP)return sv;KP=1;var t=Ti(),e=Rs(),r=Jq(),n=ku(),i=ju(),s=eB(),a=ai(),o=rB(),u=Object.getOwnPropertyDescriptor;return sv.f=t?u:function(c,p){if(c=i(c),p=s(p),o)try{return u(c,p)}catch{}if(a(c,p))return n(!e(r.f,c,p),c[p])},sv}var Bv,GP;function XJ(){if(GP)return Bv;GP=1;var t=$n(),e=Sn(),r=/#|\.prototype\./,n=function(u,l){var c=s[i(u)];return c===o?!0:c===a?!1:e(l)?t(l):!!l},i=n.normalize=function(u){return String(u).replace(r,".").toLowerCase()},s=n.data={},a=n.NATIVE="N",o=n.POLYFILL="P";return Bv=n,Bv}var $v,YP;function iB(){if(YP)return $v;YP=1;var t=Wq(),e=Fu(),r=Pu(),n=t(t.bind);return $v=function(i,s){return e(i),s===void 0?i:r?n(i,s):function(){return i.apply(s,arguments)}},$v}var Lv={},Uv,XP;function sB(){if(XP)return Uv;XP=1;var t=Ti(),e=$n();return Uv=t&&e(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Uv}var Vv,ZP;function la(){if(ZP)return Vv;ZP=1;var t=si(),e=String,r=TypeError;return Vv=function(n){if(t(n))return n;throw new r(e(n)+" is not an object")},Vv}var QP;function ao(){if(QP)return Lv;QP=1;var t=Ti(),e=rB(),r=sB(),n=la(),i=eB(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return Lv.f=t?r?function(h,d,g){if(n(h),d=i(d),n(g),typeof h=="function"&&d==="prototype"&&"value"in g&&c in g&&!g[c]){var y=o(h,d);y&&y[c]&&(h[d]=g.value,g={configurable:l in g?g[l]:y[l],enumerable:u in g?g[u]:y[u],writable:!1})}return a(h,d,g)}:a:function(h,d,g){if(n(h),d=i(d),n(g),e)try{return a(h,d,g)}catch{}if("get"in g||"set"in g)throw new s("Accessors not supported");return"value"in g&&(h[d]=g.value),h},Lv}var zv,ek;function ts(){if(ek)return zv;ek=1;var t=Ti(),e=ao(),r=ku();return zv=t?function(n,i,s){return e.f(n,i,r(1,s))}:function(n,i,s){return n[i]=s,n},zv}var Wv,tk;function oo(){if(tk)return Wv;tk=1;var t=cn(),e=nw(),r=Wq(),n=Sn(),i=nB().f,s=XJ(),a=Nu(),o=iB(),u=ts(),l=ai(),c=function(p){var h=function(d,g,y){if(this instanceof h){switch(arguments.length){case 0:return new p;case 1:return new p(d);case 2:return new p(d,g)}return new p(d,g,y)}return e(p,this,arguments)};return h.prototype=p.prototype,h};return Wv=function(p,h){var d=p.target,g=p.global,y=p.stat,v=p.proto,E=g?t:y?t[d]:t[d]&&t[d].prototype,b=g?a:a[d]||u(a,d,{})[d],_=b.prototype,w,S,A,I,T,k,D,R,$;for(I in h)w=s(g?I:d+(y?".":"#")+I,p.forced),S=!w&&E&&l(E,I),k=b[I],S&&(p.dontCallGetSet?($=i(E,I),D=$&&$.value):D=E[I]),T=S&&D?D:h[I],!(!w&&!v&&typeof k==typeof T)&&(p.bind&&S?R=o(T,t):p.wrap&&S?R=c(T):v&&n(T)?R=r(T):R=T,(p.sham||T&&T.sham||k&&k.sham)&&u(R,"sham",!0),u(b,I,R),v&&(A=d+"Prototype",l(a,A)||u(a,A,{}),u(a[A],I,T),p.real&&_&&(w||!_[I])&&u(_,I,T)))},Wv}var Jv,rk;function ZJ(){if(rk)return Jv;rk=1;var t=Math.ceil,e=Math.floor;return Jv=Math.trunc||function(n){var i=+n;return(i>0?e:t)(i)},Jv}var Hv,nk;function lw(){if(nk)return Hv;nk=1;var t=ZJ();return Hv=function(e){var r=+e;return r!==r||r===0?0:t(r)},Hv}var Kv,ik;function QJ(){if(ik)return Kv;ik=1;var t=lw(),e=Math.max,r=Math.min;return Kv=function(n,i){var s=t(n);return s<0?e(s+i,0):r(s,i)},Kv}var Gv,sk;function eH(){if(sk)return Gv;sk=1;var t=lw(),e=Math.min;return Gv=function(r){var n=t(r);return n>0?e(n,9007199254740991):0},Gv}var Yv,ak;function aB(){if(ak)return Yv;ak=1;var t=eH();return Yv=function(e){return t(e.length)},Yv}var Xv,ok;function tH(){if(ok)return Xv;ok=1;var t=ju(),e=QJ(),r=aB(),n=function(i){return function(s,a,o){var u=t(s),l=r(u);if(l===0)return!i&&-1;var c=e(o,l),p;if(i&&a!==a){for(;l>c;)if(p=u[c++],p!==p)return!0}else for(;l>c;c++)if((i||c in u)&&u[c]===a)return i||c||0;return!i&&-1}};return Xv={includes:n(!0),indexOf:n(!1)},Xv}var Zv,uk;function cw(){return uk||(uk=1,Zv={}),Zv}var Qv,lk;function oB(){if(lk)return Qv;lk=1;var t=fn(),e=ai(),r=ju(),n=tH().indexOf,i=cw(),s=t([].push);return Qv=function(a,o){var u=r(a),l=0,c=[],p;for(p in u)!e(i,p)&&e(u,p)&&s(c,p);for(;o.length>l;)e(u,p=o[l++])&&(~n(c,p)||s(c,p));return c},Qv}var e0,ck;function fw(){return ck||(ck=1,e0=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),e0}var t0,fk;function uB(){if(fk)return t0;fk=1;var t=oB(),e=fw();return t0=Object.keys||function(n){return t(n,e)},t0}var r0={},pk;function lB(){return pk||(pk=1,r0.f=Object.getOwnPropertySymbols),r0}var n0,dk;function rH(){if(dk)return n0;dk=1;var t=Ti(),e=fn(),r=Rs(),n=$n(),i=uB(),s=lB(),a=Jq(),o=uw(),u=Hq(),l=Object.assign,c=Object.defineProperty,p=e([].concat);return n0=!l||n(function(){if(t&&l({b:1},l(c({},"a",{enumerable:!0,get:function(){c(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},d={},g=Symbol("assign detection"),y="abcdefghijklmnopqrst";return h[g]=7,y.split("").forEach(function(v){d[v]=v}),l({},h)[g]!==7||i(l({},d)).join("")!==y})?function(d,g){for(var y=o(d),v=arguments.length,E=1,b=s.f,_=a.f;v>E;)for(var w=u(arguments[E++]),S=b?p(i(w),b(w)):i(w),A=S.length,I=0,T;A>I;)T=S[I++],(!t||r(_,w,T))&&(y[T]=w[T]);return y}:l,n0}var hk;function nH(){if(hk)return aP;hk=1;var t=oo(),e=rH();return t({target:"Object",stat:!0,arity:2,forced:Object.assign!==e},{assign:e}),aP}var i0,mk;function iH(){if(mk)return i0;mk=1,nH();var t=Nu();return i0=t.Object.assign,i0}var s0,gk;function sH(){if(gk)return s0;gk=1;var t=iH();return s0=t,s0}var a0,yk;function aH(){if(yk)return a0;yk=1;var t=sH();return a0=t,a0}var o0,vk;function oH(){if(vk)return o0;vk=1;var t=aH();return o0=t,o0}var u0,bk;function uH(){return bk||(bk=1,u0=oH()),u0}var lH=uH();const Ek=ot(lH);var Sk={},l0,_k;function cH(){if(_k)return l0;_k=1;var t=fn();return l0=t([].slice),l0}var c0,wk;function fH(){if(wk)return c0;wk=1;var t=fn(),e=Fu(),r=si(),n=ai(),i=cH(),s=Pu(),a=Function,o=t([].concat),u=t([].join),l={},c=function(p,h,d){if(!n(l,h)){for(var g=[],y=0;y<h;y++)g[y]="a["+y+"]";l[h]=a("C,a","return new C("+u(g,",")+")")}return l[h](p,d)};return c0=s?a.bind:function(h){var d=e(this),g=d.prototype,y=i(arguments,1),v=function(){var b=o(y,i(arguments));return this instanceof v?c(d,b.length,b):d.apply(h,b)};return r(g)&&(v.prototype=g),v},c0}var xk;function pH(){if(xk)return Sk;xk=1;var t=oo(),e=fH();return t({target:"Function",proto:!0,forced:Function.bind!==e},{bind:e}),Sk}var f0,Ak;function dH(){if(Ak)return f0;Ak=1;var t=cn(),e=Nu();return f0=function(r,n){var i=e[r+"Prototype"],s=i&&i[n];if(s)return s;var a=t[r],o=a&&a.prototype;return o&&o[n]},f0}var p0,Ok;function hH(){if(Ok)return p0;Ok=1,pH();var t=dH();return p0=t("Function","bind"),p0}var d0,Ck;function mH(){if(Ck)return d0;Ck=1;var t=Du(),e=hH(),r=Function.prototype;return d0=function(n){var i=n.bind;return n===r||t(r,n)&&i===r.bind?e:i},d0}var h0,Rk;function gH(){if(Rk)return h0;Rk=1;var t=mH();return h0=t,h0}var m0,Ik;function yH(){if(Ik)return m0;Ik=1;var t=gH();return m0=t,m0}var g0,Tk;function vH(){if(Tk)return g0;Tk=1;var t=yH();return g0=t,g0}var y0,Pk;function bH(){return Pk||(Pk=1,y0=vH()),y0}var EH=bH();const SH=ot(EH);function u1(){var t;return u1=Ek?SH(t=Ek).call(t):function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},u1.apply(null,arguments)}var v0={exports:{}};/*!
50
+ Copyright (c) 2018 Jed Watson.
51
+ Licensed under the MIT License (MIT), see
52
+ http://jedwatson.github.io/classnames
53
+ */var kk;function _H(){return kk||(kk=1,(function(t){(function(){var e={}.hasOwnProperty;function r(){for(var s="",a=0;a<arguments.length;a++){var o=arguments[a];o&&(s=i(s,n(o)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var a="";for(var o in s)e.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}t.exports?(r.default=r,t.exports=r):window.classNames=r})()})(v0)),v0.exports}var wH=_H();const xH=ot(wH);var Io={},b0,jk;function AH(){return jk||(jk=1,b0=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(i){t.addRange(i)}),e&&e.focus()}}),b0}var E0,Nk;function OH(){if(Nk)return E0;Nk=1;var t=AH(),e={"text/plain":"Text","text/html":"Url",default:"Text"},r="Copy to clipboard: #{key}, Enter";function n(s){var a=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return s.replace(/#{\s*key\s*}/g,a)}function i(s,a){var o,u,l,c,p,h,d=!1;a||(a={}),o=a.debug||!1;try{l=t(),c=document.createRange(),p=document.getSelection(),h=document.createElement("span"),h.textContent=s,h.ariaHidden="true",h.style.all="unset",h.style.position="fixed",h.style.top=0,h.style.clip="rect(0, 0, 0, 0)",h.style.whiteSpace="pre",h.style.webkitUserSelect="text",h.style.MozUserSelect="text",h.style.msUserSelect="text",h.style.userSelect="text",h.addEventListener("copy",function(y){if(y.stopPropagation(),a.format)if(y.preventDefault(),typeof y.clipboardData>"u"){o&&console.warn("unable to use e.clipboardData"),o&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var v=e[a.format]||e.default;window.clipboardData.setData(v,s)}else y.clipboardData.clearData(),y.clipboardData.setData(a.format,s);a.onCopy&&(y.preventDefault(),a.onCopy(y.clipboardData))}),document.body.appendChild(h),c.selectNodeContents(h),p.addRange(c);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");d=!0}catch(y){o&&console.error("unable to copy using execCommand: ",y),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",s),a.onCopy&&a.onCopy(window.clipboardData),d=!0}catch(v){o&&console.error("unable to copy using clipboardData: ",v),o&&console.error("falling back to prompt"),u=n("message"in a?a.message:r),window.prompt(u,s)}}finally{p&&(typeof p.removeRange=="function"?p.removeRange(c):p.removeAllRanges()),h&&document.body.removeChild(h),l()}return d}return E0=i,E0}var Mk;function CH(){if(Mk)return Io;Mk=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(S)}Object.defineProperty(Io,"__esModule",{value:!0}),Io.CopyToClipboard=void 0;var e=i(nF()),r=i(OH()),n=["text","onCopy","options","children"];function i(S){return S&&S.__esModule?S:{default:S}}function s(S,A){var I=Object.keys(S);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(S);A&&(T=T.filter(function(k){return Object.getOwnPropertyDescriptor(S,k).enumerable})),I.push.apply(I,T)}return I}function a(S){for(var A=1;A<arguments.length;A++){var I=arguments[A]!=null?arguments[A]:{};A%2?s(Object(I),!0).forEach(function(T){_(S,T,I[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(I)):s(Object(I)).forEach(function(T){Object.defineProperty(S,T,Object.getOwnPropertyDescriptor(I,T))})}return S}function o(S,A){if(S==null)return{};var I=u(S,A),T,k;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(S);for(k=0;k<D.length;k++)T=D[k],!(A.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(S,T)&&(I[T]=S[T])}return I}function u(S,A){if(S==null)return{};var I={},T=Object.keys(S),k,D;for(D=0;D<T.length;D++)k=T[D],!(A.indexOf(k)>=0)&&(I[k]=S[k]);return I}function l(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function c(S,A){for(var I=0;I<A.length;I++){var T=A[I];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(S,T.key,T)}}function p(S,A,I){return A&&c(S.prototype,A),Object.defineProperty(S,"prototype",{writable:!1}),S}function h(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),A&&d(S,A)}function d(S,A){return d=Object.setPrototypeOf||function(T,k){return T.__proto__=k,T},d(S,A)}function g(S){var A=E();return function(){var T=b(S),k;if(A){var D=b(this).constructor;k=Reflect.construct(T,arguments,D)}else k=T.apply(this,arguments);return y(this,k)}}function y(S,A){if(A&&(t(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(S)}function v(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function E(){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 b(S){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},b(S)}function _(S,A,I){return A in S?Object.defineProperty(S,A,{value:I,enumerable:!0,configurable:!0,writable:!0}):S[A]=I,S}var w=(function(S){h(I,S);var A=g(I);function I(){var T;l(this,I);for(var k=arguments.length,D=new Array(k),R=0;R<k;R++)D[R]=arguments[R];return T=A.call.apply(A,[this].concat(D)),_(v(T),"onClick",function($){var M=T.props,K=M.text,ee=M.onCopy,G=M.children,Z=M.options,X=e.default.Children.only(G),te=(0,r.default)(K,Z);ee&&ee(K,te),X&&X.props&&typeof X.props.onClick=="function"&&X.props.onClick($)}),T}return p(I,[{key:"render",value:function(){var k=this.props;k.text,k.onCopy,k.options;var D=k.children,R=o(k,n),$=e.default.Children.only(D);return e.default.cloneElement($,a(a({},R),{},{onClick:this.onClick}))}}]),I})(e.default.PureComponent);return Io.CopyToClipboard=w,_(w,"defaultProps",{onCopy:void 0,options:void 0}),Io}var S0,Dk;function RH(){if(Dk)return S0;Dk=1;var t=CH(),e=t.CopyToClipboard;return e.CopyToClipboard=e,S0=e,S0}var IH=RH();function xc(t){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?xc=function(e){return typeof e}:xc=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xc(t)}function TH(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function PH(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 kH(t,e,r){return e&&PH(t.prototype,e),t}function jH(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Fk(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function NH(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Fk(r,!0).forEach(function(n){jH(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Fk(r).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function MH(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&&c1(t,e)}function l1(t){return l1=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},l1(t)}function c1(t,e){return c1=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},c1(t,e)}function DH(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function FH(t,e){return e&&(typeof e=="object"||typeof e=="function")?e:DH(t)}var qk={};function qH(t){return t!==null&&xc(t)==="object"&&typeof t.get=="function"&&typeof t.has=="function"}function BH(t){return t==null}function $H(t,e,r){return BH(t)?r:qH(t)?t.has(e)?t.get(e):r:hasOwnProperty.call(t,e)?t[e]:r}function Bk(t,e,r){for(var n=0;n!==e.length;)if(t=$H(t,e[n++],qk),t===qk)return r;return t}function $k(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=LH(e,r),i=t||Object.keys(NH({},r,{},e));return i.every(n)}function LH(t,e){return function(r){if(typeof r=="string")return Wi.is(e[r],t[r]);if(Array.isArray(r))return Wi.is(Bk(e,r),Bk(t,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}var UH=(function(t){MH(e,t);function e(){return TH(this,e),FH(this,l1(e).apply(this,arguments))}return kH(e,[{key:"shouldComponentUpdate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!$k(this.updateOnProps,this.props,n,"updateOnProps")||!$k(this.updateOnStates,this.state,i,"updateOnStates")}}]),e})(Xn.Component),To={},_0,Lk;function VH(){if(Lk)return _0;Lk=1;var t="Expected a function",e=NaN,r="[object Symbol]",n=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt,u=typeof Lr=="object"&&Lr&&Lr.Object===Object&&Lr,l=typeof self=="object"&&self&&self.Object===Object&&self,c=u||l||Function("return this")(),p=Object.prototype,h=p.toString,d=Math.max,g=Math.min,y=function(){return c.Date.now()};function v(S,A,I){var T,k,D,R,$,M,K=0,ee=!1,G=!1,Z=!0;if(typeof S!="function")throw new TypeError(t);A=w(A)||0,E(I)&&(ee=!!I.leading,G="maxWait"in I,D=G?d(w(I.maxWait)||0,A):D,Z="trailing"in I?!!I.trailing:Z);function X(V){var me=T,ve=k;return T=k=void 0,K=V,R=S.apply(ve,me),R}function te(V){return K=V,$=setTimeout(ue,A),ee?X(V):R}function ce(V){var me=V-M,ve=V-K,Me=A-me;return G?g(Me,D-ve):Me}function ie(V){var me=V-M,ve=V-K;return M===void 0||me>=A||me<0||G&&ve>=D}function ue(){var V=y();if(ie(V))return ye(V);$=setTimeout(ue,ce(V))}function ye(V){return $=void 0,Z&&T?X(V):(T=k=void 0,R)}function he(){$!==void 0&&clearTimeout($),K=0,T=M=k=$=void 0}function re(){return $===void 0?R:ye(y())}function W(){var V=y(),me=ie(V);if(T=arguments,k=this,M=V,me){if($===void 0)return te(M);if(G)return $=setTimeout(ue,A),X(M)}return $===void 0&&($=setTimeout(ue,A)),R}return W.cancel=he,W.flush=re,W}function E(S){var A=typeof S;return!!S&&(A=="object"||A=="function")}function b(S){return!!S&&typeof S=="object"}function _(S){return typeof S=="symbol"||b(S)&&h.call(S)==r}function w(S){if(typeof S=="number")return S;if(_(S))return e;if(E(S)){var A=typeof S.valueOf=="function"?S.valueOf():S;S=E(A)?A+"":A}if(typeof S!="string")return S===0?S:+S;S=S.replace(n,"");var I=s.test(S);return I||a.test(S)?o(S.slice(2),I?2:8):i.test(S)?e:+S}return _0=v,_0}var Uk;function zH(){if(Uk)return To;Uk=1;function t(S){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(A){return typeof A}:function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},t(S)}Object.defineProperty(To,"__esModule",{value:!0}),To.DebounceInput=void 0;var e=i(nF()),r=i(VH()),n=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function i(S){return S&&S.__esModule?S:{default:S}}function s(S,A){if(S==null)return{};var I=a(S,A),T,k;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(S);for(k=0;k<D.length;k++)T=D[k],!(A.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(S,T)&&(I[T]=S[T])}return I}function a(S,A){if(S==null)return{};var I={},T=Object.keys(S),k,D;for(D=0;D<T.length;D++)k=T[D],!(A.indexOf(k)>=0)&&(I[k]=S[k]);return I}function o(S,A){var I=Object.keys(S);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(S);A&&(T=T.filter(function(k){return Object.getOwnPropertyDescriptor(S,k).enumerable})),I.push.apply(I,T)}return I}function u(S){for(var A=1;A<arguments.length;A++){var I=arguments[A]!=null?arguments[A]:{};A%2?o(Object(I),!0).forEach(function(T){_(S,T,I[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(S,Object.getOwnPropertyDescriptors(I)):o(Object(I)).forEach(function(T){Object.defineProperty(S,T,Object.getOwnPropertyDescriptor(I,T))})}return S}function l(S,A){if(!(S instanceof A))throw new TypeError("Cannot call a class as a function")}function c(S,A){for(var I=0;I<A.length;I++){var T=A[I];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(S,T.key,T)}}function p(S,A,I){return A&&c(S.prototype,A),Object.defineProperty(S,"prototype",{writable:!1}),S}function h(S,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");S.prototype=Object.create(A&&A.prototype,{constructor:{value:S,writable:!0,configurable:!0}}),Object.defineProperty(S,"prototype",{writable:!1}),A&&d(S,A)}function d(S,A){return d=Object.setPrototypeOf||function(T,k){return T.__proto__=k,T},d(S,A)}function g(S){var A=E();return function(){var T=b(S),k;if(A){var D=b(this).constructor;k=Reflect.construct(T,arguments,D)}else k=T.apply(this,arguments);return y(this,k)}}function y(S,A){if(A&&(t(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(S)}function v(S){if(S===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return S}function E(){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 b(S){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(I){return I.__proto__||Object.getPrototypeOf(I)},b(S)}function _(S,A,I){return A in S?Object.defineProperty(S,A,{value:I,enumerable:!0,configurable:!0,writable:!0}):S[A]=I,S}var w=(function(S){h(I,S);var A=g(I);function I(T){var k;l(this,I),k=A.call(this,T),_(v(k),"onChange",function(R){R.persist();var $=k.state.value,M=k.props.minLength;k.setState({value:R.target.value},function(){var K=k.state.value;if(K.length>=M){k.notify(R);return}$.length>K.length&&k.notify(u(u({},R),{},{target:u(u({},R.target),{},{value:""})}))})}),_(v(k),"onKeyDown",function(R){R.key==="Enter"&&k.forceNotify(R);var $=k.props.onKeyDown;$&&(R.persist(),$(R))}),_(v(k),"onBlur",function(R){k.forceNotify(R);var $=k.props.onBlur;$&&(R.persist(),$(R))}),_(v(k),"createNotifier",function(R){if(R<0)k.notify=function(){return null};else if(R===0)k.notify=k.doNotify;else{var $=(0,r.default)(function(M){k.isDebouncing=!1,k.doNotify(M)},R);k.notify=function(M){k.isDebouncing=!0,$(M)},k.flush=function(){return $.flush()},k.cancel=function(){k.isDebouncing=!1,$.cancel()}}}),_(v(k),"doNotify",function(){var R=k.props.onChange;R.apply(void 0,arguments)}),_(v(k),"forceNotify",function(R){var $=k.props.debounceTimeout;if(!(!k.isDebouncing&&$>0)){k.cancel&&k.cancel();var M=k.state.value,K=k.props.minLength;M.length>=K?k.doNotify(R):k.doNotify(u(u({},R),{},{target:u(u({},R.target),{},{value:M})}))}}),k.isDebouncing=!1,k.state={value:typeof T.value>"u"||T.value===null?"":T.value};var D=k.props.debounceTimeout;return k.createNotifier(D),k}return p(I,[{key:"componentDidUpdate",value:function(k){if(!this.isDebouncing){var D=this.props,R=D.value,$=D.debounceTimeout,M=k.debounceTimeout,K=k.value,ee=this.state.value;typeof R<"u"&&K!==R&&ee!==R&&this.setState({value:R}),$!==M&&this.createNotifier($)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var k=this.props,D=k.element;k.onChange,k.value,k.minLength,k.debounceTimeout;var R=k.forceNotifyByEnter,$=k.forceNotifyOnBlur,M=k.onKeyDown,K=k.onBlur,ee=k.inputRef,G=s(k,n),Z=this.state.value,X;R?X={onKeyDown:this.onKeyDown}:M?X={onKeyDown:M}:X={};var te;$?te={onBlur:this.onBlur}:K?te={onBlur:K}:te={};var ce=ee?{ref:ee}:{};return e.default.createElement(D,u(u(u(u({},G),{},{onChange:this.onChange,value:Z},X),te),ce))}}]),I})(e.default.PureComponent);return To.DebounceInput=w,_(w,"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}),To}var w0,Vk;function WH(){if(Vk)return w0;Vk=1;var t=zH(),e=t.DebounceInput;return e.DebounceInput=e,w0=e,w0}var JH=WH();const HH=ot(JH);var KH=bf();const GH=ot(KH);var sc={exports:{}},x0={},A0,zk;function xf(){return zk||(zk=1,A0={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}),A0}var Li={},Wk;function cB(){if(Wk)return Li;Wk=1;const t=xf(),e=()=>[{type:t.RANGE,from:48,to:57}],r=()=>[{type:t.CHAR,value:95},{type:t.RANGE,from:97,to:122},{type:t.RANGE,from:65,to:90}].concat(e()),n=()=>[{type:t.CHAR,value:9},{type:t.CHAR,value:10},{type:t.CHAR,value:11},{type:t.CHAR,value:12},{type:t.CHAR,value:13},{type:t.CHAR,value:32},{type:t.CHAR,value:160},{type:t.CHAR,value:5760},{type:t.RANGE,from:8192,to:8202},{type:t.CHAR,value:8232},{type:t.CHAR,value:8233},{type:t.CHAR,value:8239},{type:t.CHAR,value:8287},{type:t.CHAR,value:12288},{type:t.CHAR,value:65279}],i=()=>[{type:t.CHAR,value:10},{type:t.CHAR,value:13},{type:t.CHAR,value:8232},{type:t.CHAR,value:8233}];return Li.words=()=>({type:t.SET,set:r(),not:!1}),Li.notWords=()=>({type:t.SET,set:r(),not:!0}),Li.ints=()=>({type:t.SET,set:e(),not:!1}),Li.notInts=()=>({type:t.SET,set:e(),not:!0}),Li.whitespace=()=>({type:t.SET,set:n(),not:!1}),Li.notWhitespace=()=>({type:t.SET,set:n(),not:!0}),Li.anyChar=()=>({type:t.SET,set:i(),not:!0}),Li}var Jk;function YH(){return Jk||(Jk=1,(function(t){const e=xf(),r=cB(),n="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",i={0:0,t:9,n:10,v:11,f:12,r:13};t.strToChars=function(s){var a=/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g;return s=s.replace(a,function(o,u,l,c,p,h,d,g){if(l)return o;var y=u?8:c?parseInt(c,16):p?parseInt(p,16):h?parseInt(h,8):d?n.indexOf(d):i[g],v=String.fromCharCode(y);return/[[\]{}^$.|?*+()]/.test(v)&&(v="\\"+v),v}),s},t.tokenizeClass=(s,a)=>{for(var o=[],u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,l,c;(l=u.exec(s))!=null;)if(l[1])o.push(r.words());else if(l[2])o.push(r.ints());else if(l[3])o.push(r.whitespace());else if(l[4])o.push(r.notWords());else if(l[5])o.push(r.notInts());else if(l[6])o.push(r.notWhitespace());else if(l[7])o.push({type:e.RANGE,from:(l[8]||l[9]).charCodeAt(0),to:l[10].charCodeAt(0)});else if(c=l[12])o.push({type:e.CHAR,value:c.charCodeAt(0)});else return[o,u.lastIndex];t.error(a,"Unterminated character class")},t.error=(s,a)=>{throw new SyntaxError("Invalid regular expression: /"+s+"/: "+a)}})(x0)),x0}var Oa={},Hk;function XH(){if(Hk)return Oa;Hk=1;const t=xf();return Oa.wordBoundary=()=>({type:t.POSITION,value:"b"}),Oa.nonWordBoundary=()=>({type:t.POSITION,value:"B"}),Oa.begin=()=>({type:t.POSITION,value:"^"}),Oa.end=()=>({type:t.POSITION,value:"$"}),Oa}var Kk;function ZH(){if(Kk)return sc.exports;Kk=1;const t=YH(),e=xf(),r=cB(),n=XH();return sc.exports=i=>{var s=0,a,o,u={type:e.ROOT,stack:[]},l=u,c=u.stack,p=[],h=S=>{t.error(i,`Nothing to repeat at column ${S-1}`)},d=t.strToChars(i);for(a=d.length;s<a;)switch(o=d[s++],o){case"\\":switch(o=d[s++],o){case"b":c.push(n.wordBoundary());break;case"B":c.push(n.nonWordBoundary());break;case"w":c.push(r.words());break;case"W":c.push(r.notWords());break;case"d":c.push(r.ints());break;case"D":c.push(r.notInts());break;case"s":c.push(r.whitespace());break;case"S":c.push(r.notWhitespace());break;default:/\d/.test(o)?c.push({type:e.REFERENCE,value:parseInt(o,10)}):c.push({type:e.CHAR,value:o.charCodeAt(0)})}break;case"^":c.push(n.begin());break;case"$":c.push(n.end());break;case"[":var g;d[s]==="^"?(g=!0,s++):g=!1;var y=t.tokenizeClass(d.slice(s),i);s+=y[1],c.push({type:e.SET,set:y[0],not:g});break;case".":c.push(r.anyChar());break;case"(":var v={type:e.GROUP,stack:[],remember:!0};o=d[s],o==="?"&&(o=d[s+1],s+=2,o==="="?v.followedBy=!0:o==="!"?v.notFollowedBy=!0:o!==":"&&t.error(i,`Invalid group, character '${o}' after '?' at column ${s-1}`),v.remember=!1),c.push(v),p.push(l),l=v,c=v.stack;break;case")":p.length===0&&t.error(i,`Unmatched ) at column ${s-1}`),l=p.pop(),c=l.options?l.options[l.options.length-1]:l.stack;break;case"|":l.options||(l.options=[l.stack],delete l.stack);var E=[];l.options.push(E),c=E;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(s)),_,w;b!==null?(c.length===0&&h(s),_=parseInt(b[1],10),w=b[2]?b[3]?parseInt(b[3],10):1/0:_,s+=b[0].length,c.push({type:e.REPETITION,min:_,max:w,value:c.pop()})):c.push({type:e.CHAR,value:123});break;case"?":c.length===0&&h(s),c.push({type:e.REPETITION,min:0,max:1,value:c.pop()});break;case"+":c.length===0&&h(s),c.push({type:e.REPETITION,min:1,max:1/0,value:c.pop()});break;case"*":c.length===0&&h(s),c.push({type:e.REPETITION,min:0,max:1/0,value:c.pop()});break;default:c.push({type:e.CHAR,value:o.charCodeAt(0)})}return p.length!==0&&t.error(i,"Unterminated group"),u},sc.exports.types=e,sc.exports}var O0,Gk;function QH(){if(Gk)return O0;Gk=1;class t{constructor(n,i){this.low=n,this.high=i,this.length=1+i-n}overlaps(n){return!(this.high<n.low||this.low>n.high)}touches(n){return!(this.high+1<n.low||this.low-1>n.high)}add(n){return new t(Math.min(this.low,n.low),Math.max(this.high,n.high))}subtract(n){return n.low<=this.low&&n.high>=this.high?[]:n.low>this.low&&n.high<this.high?[new t(this.low,n.low-1),new t(n.high+1,this.high)]:n.low<=this.low?[new t(n.high+1,this.high)]:[new t(this.low,n.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class e{constructor(n,i){this.ranges=[],this.length=0,n!=null&&this.add(n,i)}_update_length(){this.length=this.ranges.reduce((n,i)=>n+i.length,0)}add(n,i){var s=a=>{for(var o=0;o<this.ranges.length&&!a.touches(this.ranges[o]);)o++;for(var u=this.ranges.slice(0,o);o<this.ranges.length&&a.touches(this.ranges[o]);)a=a.add(this.ranges[o]),o++;u.push(a),this.ranges=u.concat(this.ranges.slice(o)),this._update_length()};return n instanceof e?n.ranges.forEach(s):(i==null&&(i=n),s(new t(n,i))),this}subtract(n,i){var s=a=>{for(var o=0;o<this.ranges.length&&!a.overlaps(this.ranges[o]);)o++;for(var u=this.ranges.slice(0,o);o<this.ranges.length&&a.overlaps(this.ranges[o]);)u=u.concat(this.ranges[o].subtract(a)),o++;this.ranges=u.concat(this.ranges.slice(o)),this._update_length()};return n instanceof e?n.ranges.forEach(s):(i==null&&(i=n),s(new t(n,i))),this}intersect(n,i){var s=[],a=o=>{for(var u=0;u<this.ranges.length&&!o.overlaps(this.ranges[u]);)u++;for(;u<this.ranges.length&&o.overlaps(this.ranges[u]);){var l=Math.max(this.ranges[u].low,o.low),c=Math.min(this.ranges[u].high,o.high);s.push(new t(l,c)),u++}};return n instanceof e?n.ranges.forEach(a):(i==null&&(i=n),a(new t(n,i))),this.ranges=s,this._update_length(),this}index(n){for(var i=0;i<this.ranges.length&&this.ranges[i].length<=n;)n-=this.ranges[i].length,i++;return this.ranges[i].low+n}toString(){return"[ "+this.ranges.join(", ")+" ]"}clone(){return new e(this)}numbers(){return this.ranges.reduce((n,i)=>{for(var s=i.low;s<=i.high;)n.push(s),s++;return n},[])}subranges(){return this.ranges.map(n=>({low:n.low,high:n.high,length:1+n.high-n.low}))}}return O0=e,O0}var C0,Yk;function eK(){if(Yk)return C0;Yk=1;const t=ZH(),e=QH(),r=t.types;return C0=class Uo{constructor(i,s){if(this._setDefaults(i),i instanceof RegExp)this.ignoreCase=i.ignoreCase,this.multiline=i.multiline,i=i.source;else if(typeof i=="string")this.ignoreCase=s&&s.indexOf("i")!==-1,this.multiline=s&&s.indexOf("m")!==-1;else throw new Error("Expected a regexp or string");this.tokens=t(i)}_setDefaults(i){this.max=i.max!=null?i.max:Uo.prototype.max!=null?Uo.prototype.max:100,this.defaultRange=i.defaultRange?i.defaultRange:this.defaultRange.clone(),i.randInt&&(this.randInt=i.randInt)}gen(){return this._gen(this.tokens,[])}_gen(i,s){var a,o,u,l,c;switch(i.type){case r.ROOT:case r.GROUP:if(i.followedBy||i.notFollowedBy)return"";for(i.remember&&i.groupNumber===void 0&&(i.groupNumber=s.push(null)-1),a=i.options?this._randSelect(i.options):i.stack,o="",l=0,c=a.length;l<c;l++)o+=this._gen(a[l],s);return i.remember&&(s[i.groupNumber]=o),o;case r.POSITION:return"";case r.SET:var p=this._expand(i);return p.length?String.fromCharCode(this._randSelect(p)):"";case r.REPETITION:for(u=this.randInt(i.min,i.max===1/0?i.min+this.max:i.max),o="",l=0;l<u;l++)o+=this._gen(i.value,s);return o;case r.REFERENCE:return s[i.value-1]||"";case r.CHAR:var h=this.ignoreCase&&this._randBool()?this._toOtherCase(i.value):i.value;return String.fromCharCode(h)}}_toOtherCase(i){return i+(97<=i&&i<=122?-32:65<=i&&i<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(i){return i instanceof e?i.index(this.randInt(0,i.length-1)):i[this.randInt(0,i.length-1)]}_expand(i){if(i.type===t.types.CHAR)return new e(i.value);if(i.type===t.types.RANGE)return new e(i.from,i.to);{let s=new e;for(let a=0;a<i.set.length;a++){let o=this._expand(i.set[a]);if(s.add(o),this.ignoreCase)for(let u=0;u<o.length;u++){let l=o.index(u),c=this._toOtherCase(l);l!==c&&s.add(c)}}return i.not?this.defaultRange.clone().subtract(s):this.defaultRange.clone().intersect(s)}}randInt(i,s){return i+Math.floor(Math.random()*(1+s-i))}get defaultRange(){return this._range=this._range||new e(32,126)}set defaultRange(i){this._range=i}static randexp(i,s){var a;return typeof i=="string"&&(i=new RegExp(i,s)),i._randexp===void 0?(a=new Uo(i,s),i._randexp=a):(a=i._randexp,a._setDefaults(i)),a.gen()}static sugar(){RegExp.prototype.gen=function(){return Uo.randexp(this)}}},C0}var tK=eK();const rK=ot(tK);var R0,Xk;function nK(){if(Xk)return R0;Xk=1;var t=z_(),e=so(),r=wu(),n=Rr(),i=oa(),s=xu(),a=vf(),o=Ef(),u="[object Map]",l="[object Set]",c=Object.prototype,p=c.hasOwnProperty;function h(d){if(d==null)return!0;if(i(d)&&(n(d)||typeof d=="string"||typeof d.splice=="function"||s(d)||o(d)||r(d)))return!d.length;var g=e(d);if(g==u||g==l)return!d.size;if(a(d))return!t(d).length;for(var y in d)if(p.call(d,y))return!1;return!0}return R0=h,R0}var iK=nK();const sK=ot(iK);var aK=kF();const oK=ot(aK);var I0,Zk;function fB(){if(Zk)return I0;Zk=1;var t=Ii(),e=Rr(),r=nn(),n="[object String]";function i(s){return typeof s=="string"||!e(s)&&r(s)&&t(s)==n}return I0=i,I0}var uK=fB();const lK=ot(uK);var T0,Qk;function cK(){if(Qk)return T0;Qk=1;var t=tn(),e=function(){return t.Date.now()};return T0=e,T0}var P0,ej;function fK(){if(ej)return P0;ej=1;var t=rn(),e=cK(),r=ZF(),n="Expected a function",i=Math.max,s=Math.min;function a(o,u,l){var c,p,h,d,g,y,v=0,E=!1,b=!1,_=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,t(l)&&(E=!!l.leading,b="maxWait"in l,h=b?i(r(l.maxWait)||0,u):h,_="trailing"in l?!!l.trailing:_);function w(M){var K=c,ee=p;return c=p=void 0,v=M,d=o.apply(ee,K),d}function S(M){return v=M,g=setTimeout(T,u),E?w(M):d}function A(M){var K=M-y,ee=M-v,G=u-K;return b?s(G,h-ee):G}function I(M){var K=M-y,ee=M-v;return y===void 0||K>=u||K<0||b&&ee>=h}function T(){var M=e();if(I(M))return k(M);g=setTimeout(T,A(M))}function k(M){return g=void 0,_&&c?w(M):(c=p=void 0,d)}function D(){g!==void 0&&clearTimeout(g),v=0,c=y=p=g=void 0}function R(){return g===void 0?d:k(e())}function $(){var M=e(),K=I(M);if(c=arguments,p=this,y=M,K){if(g===void 0)return S(y);if(b)return clearTimeout(g),g=setTimeout(T,u),w(y)}return g===void 0&&(g=setTimeout(T,u)),d}return $.cancel=D,$.flush=R,$}return P0=a,P0}var pK=fK();const dK=ot(pK);var k0,tj;function hK(){if(tj)return k0;tj=1;var t=Sf(),e=Iu(),r=Au(),n=rn(),i=ua();function s(a,o,u,l){if(!n(a))return a;o=e(o,a);for(var c=-1,p=o.length,h=p-1,d=a;d!=null&&++c<p;){var g=i(o[c]),y=u;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;if(c!=h){var v=d[g];y=l?l(v,g,d):void 0,y===void 0&&(y=n(v)?v:r(o[c+1])?[]:{})}t(d,g,y),d=d[g]}return a}return k0=s,k0}var j0,rj;function pB(){if(rj)return j0;rj=1;var t=hK();function e(r,n,i){return r==null?r:t(r,n,i)}return j0=e,j0}var mK=pB();const gK=ot(mK);var N0={},nj;function yK(){return nj||(nj=1,(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 i in r){var s=r[i];e.call(n,s)?n[s].push(i):n[s]=[i]}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}})(N0)),N0}var M0,ij;function dB(){return ij||(ij=1,M0={}),M0}var D0,sj;function vK(){if(sj)return D0;sj=1;var t=yK(),e=dB(),r=Array.prototype.push;function n(c,p){return p==2?function(h,d){return c.apply(void 0,arguments)}:function(h){return c.apply(void 0,arguments)}}function i(c,p){return p==2?function(h,d){return c(h,d)}:function(h){return c(h)}}function s(c){for(var p=c?c.length:0,h=Array(p);p--;)h[p]=c[p];return h}function a(c){return function(p){return c({},p)}}function o(c,p){return function(){for(var h=arguments.length,d=h-1,g=Array(h);h--;)g[h]=arguments[h];var y=g[p],v=g.slice(0,p);return y&&r.apply(v,y),p!=d&&r.apply(v,g.slice(p+1)),c.apply(this,v)}}function u(c,p){return function(){var h=arguments.length;if(h){for(var d=Array(h);h--;)d[h]=arguments[h];var g=d[0]=p.apply(void 0,d);return c.apply(void 0,d),g}}}function l(c,p,h,d){var g=typeof p=="function",y=p===Object(p);if(y&&(d=h,h=p,p=void 0),h==null)throw new TypeError;d||(d={});var v={cap:"cap"in d?d.cap:!0,curry:"curry"in d?d.curry:!0,fixed:"fixed"in d?d.fixed:!0,immutable:"immutable"in d?d.immutable:!0,rearg:"rearg"in d?d.rearg:!0},E=g?h:e,b="curry"in d&&d.curry,_="fixed"in d&&d.fixed,w="rearg"in d&&d.rearg,S=g?h.runInContext():void 0,A=g?h:{ary:c.ary,assign:c.assign,clone:c.clone,curry:c.curry,forEach:c.forEach,isArray:c.isArray,isError:c.isError,isFunction:c.isFunction,isWeakMap:c.isWeakMap,iteratee:c.iteratee,keys:c.keys,rearg:c.rearg,toInteger:c.toInteger,toPath:c.toPath},I=A.ary,T=A.assign,k=A.clone,D=A.curry,R=A.forEach,$=A.isArray,M=A.isError,K=A.isFunction,ee=A.isWeakMap,G=A.keys,Z=A.rearg,X=A.toInteger,te=A.toPath,ce=G(t.aryMethod),ie={castArray:function(ge){return function(){var Se=arguments[0];return $(Se)?ge(s(Se)):ge.apply(void 0,arguments)}},iteratee:function(ge){return function(){var Se=arguments[0],we=arguments[1],L=ge(Se,we),C=L.length;return v.cap&&typeof we=="number"?(we=we>2?we-2:1,C&&C<=we?L:i(L,we)):L}},mixin:function(ge){return function(Se){var we=this;if(!K(we))return ge(we,Object(Se));var L=[];return R(G(Se),function(C){K(Se[C])&&L.push([C,we.prototype[C]])}),ge(we,Object(Se)),R(L,function(C){var j=C[1];K(j)?we.prototype[C[0]]=j:delete we.prototype[C[0]]}),we}},nthArg:function(ge){return function(Se){var we=Se<0?1:X(Se)+1;return D(ge(Se),we)}},rearg:function(ge){return function(Se,we){var L=we?we.length:0;return D(ge(Se,we),L)}},runInContext:function(ge){return function(Se){return l(c,ge(Se),d)}}};function ue(ge,Se){if(v.cap){var we=t.iterateeRearg[ge];if(we)return Me(Se,we);var L=!g&&t.iterateeAry[ge];if(L)return ve(Se,L)}return Se}function ye(ge,Se,we){return b||v.curry&&we>1?D(Se,we):Se}function he(ge,Se,we){if(v.fixed&&(_||!t.skipFixed[ge])){var L=t.methodSpread[ge],C=L&&L.start;return C===void 0?I(Se,we):o(Se,C)}return Se}function re(ge,Se,we){return v.rearg&&we>1&&(w||!t.skipRearg[ge])?Z(Se,t.methodRearg[ge]||t.aryRearg[we]):Se}function W(ge,Se){Se=te(Se);for(var we=-1,L=Se.length,C=L-1,j=k(Object(ge)),U=j;U!=null&&++we<L;){var Y=Se[we],ne=U[Y];ne!=null&&!(K(ne)||M(ne)||ee(ne))&&(U[Y]=k(we==C?ne:Object(ne))),U=U[Y]}return j}function V(ge){return Pe.runInContext.convert(ge)(void 0)}function me(ge,Se){var we=t.aliasToReal[ge]||ge,L=t.remap[we]||we,C=d;return function(j){var U=g?S:A,Y=g?S[L]:Se,ne=T(T({},C),j);return l(U,we,Y,ne)}}function ve(ge,Se){return Be(ge,function(we){return typeof we=="function"?i(we,Se):we})}function Me(ge,Se){return Be(ge,function(we){var L=Se.length;return n(Z(i(we,L),Se),L)})}function Be(ge,Se){return function(){var we=arguments.length;if(!we)return ge();for(var L=Array(we);we--;)L[we]=arguments[we];var C=v.rearg?0:we-1;return L[C]=Se(L[C]),ge.apply(void 0,L)}}function Te(ge,Se,we){var L,C=t.aliasToReal[ge]||ge,j=Se,U=ie[C];return U?j=U(Se):v.immutable&&(t.mutate.array[C]?j=u(Se,s):t.mutate.object[C]?j=u(Se,a(Se)):t.mutate.set[C]&&(j=u(Se,W))),R(ce,function(Y){return R(t.aryMethod[Y],function(ne){if(C==ne){var fe=t.methodSpread[C],Ne=fe&&fe.afterRearg;return L=Ne?he(C,re(C,j,Y),Y):re(C,he(C,j,Y),Y),L=ue(C,L),L=ye(C,L,Y),!1}}),!L}),L||(L=j),L==Se&&(L=b?D(L,1):function(){return Se.apply(this,arguments)}),L.convert=me(C,Se),L.placeholder=Se.placeholder=we,L}if(!y)return Te(p,h,E);var Pe=h,Le=[];return R(ce,function(ge){R(t.aryMethod[ge],function(Se){var we=Pe[t.remap[Se]||Se];we&&Le.push([Se,Te(Se,we,Pe)])})}),R(G(Pe),function(ge){var Se=Pe[ge];if(typeof Se=="function"){for(var we=Le.length;we--;)if(Le[we][0]==ge)return;Se.convert=me(ge,Se),Le.push([ge,Se])}}),R(Le,function(ge){Pe[ge[0]]=ge[1]}),Pe.convert=V,Pe.placeholder=Pe,R(G(Pe),function(ge){R(t.realToAlias[ge]||[],function(Se){Pe[Se]=Pe[ge]})}),Pe}return D0=l,D0}var F0,aj;function hB(){if(aj)return F0;aj=1;var t=WF(),e=t&&new t;return F0=e,F0}var q0,oj;function mB(){if(oj)return q0;oj=1;var t=Cu(),e=hB(),r=e?function(n,i){return e.set(n,i),n}:t;return q0=r,q0}var B0,uj;function Af(){if(uj)return B0;uj=1;var t=yf(),e=rn();function r(n){return function(){var i=arguments;switch(i.length){case 0:return new n;case 1:return new n(i[0]);case 2:return new n(i[0],i[1]);case 3:return new n(i[0],i[1],i[2]);case 4:return new n(i[0],i[1],i[2],i[3]);case 5:return new n(i[0],i[1],i[2],i[3],i[4]);case 6:return new n(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new n(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var s=t(n.prototype),a=n.apply(s,i);return e(a)?a:s}}return B0=r,B0}var $0,lj;function bK(){if(lj)return $0;lj=1;var t=Af(),e=tn(),r=1;function n(i,s,a){var o=s&r,u=t(i);function l(){var c=this&&this!==e&&this instanceof l?u:i;return c.apply(o?a:this,arguments)}return l}return $0=n,$0}var L0,cj;function gB(){if(cj)return L0;cj=1;var t=Math.max;function e(r,n,i,s){for(var a=-1,o=r.length,u=i.length,l=-1,c=n.length,p=t(o-u,0),h=Array(c+p),d=!s;++l<c;)h[l]=n[l];for(;++a<u;)(d||a<o)&&(h[i[a]]=r[a]);for(;p--;)h[l++]=r[a++];return h}return L0=e,L0}var U0,fj;function yB(){if(fj)return U0;fj=1;var t=Math.max;function e(r,n,i,s){for(var a=-1,o=r.length,u=-1,l=i.length,c=-1,p=n.length,h=t(o-l,0),d=Array(h+p),g=!s;++a<h;)d[a]=r[a];for(var y=a;++c<p;)d[y+c]=n[c];for(;++u<l;)(g||a<o)&&(d[y+i[u]]=r[a++]);return d}return U0=e,U0}var V0,pj;function EK(){if(pj)return V0;pj=1;function t(e,r){for(var n=e.length,i=0;n--;)e[n]===r&&++i;return i}return V0=t,V0}var z0,dj;function pw(){if(dj)return z0;dj=1;function t(){}return z0=t,z0}var W0,hj;function dw(){if(hj)return W0;hj=1;var t=yf(),e=pw(),r=4294967295;function n(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=r,this.__views__=[]}return n.prototype=t(e.prototype),n.prototype.constructor=n,W0=n,W0}var J0,mj;function SK(){if(mj)return J0;mj=1;function t(){}return J0=t,J0}var H0,gj;function vB(){if(gj)return H0;gj=1;var t=hB(),e=SK(),r=t?function(n){return t.get(n)}:e;return H0=r,H0}var K0,yj;function _K(){if(yj)return K0;yj=1;var t={};return K0=t,K0}var G0,vj;function wK(){if(vj)return G0;vj=1;var t=_K(),e=Object.prototype,r=e.hasOwnProperty;function n(i){for(var s=i.name+"",a=t[s],o=r.call(t,s)?a.length:0;o--;){var u=a[o],l=u.func;if(l==null||l==i)return u.name}return s}return G0=n,G0}var Y0,bj;function bB(){if(bj)return Y0;bj=1;var t=yf(),e=pw();function r(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=void 0}return r.prototype=t(e.prototype),r.prototype.constructor=r,Y0=r,Y0}var X0,Ej;function xK(){if(Ej)return X0;Ej=1;var t=dw(),e=bB(),r=_u();function n(i){if(i instanceof t)return i.clone();var s=new e(i.__wrapped__,i.__chain__);return s.__actions__=r(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}return X0=n,X0}var Z0,Sj;function AK(){if(Sj)return Z0;Sj=1;var t=dw(),e=bB(),r=pw(),n=Rr(),i=nn(),s=xK(),a=Object.prototype,o=a.hasOwnProperty;function u(l){if(i(l)&&!n(l)&&!(l instanceof t)){if(l instanceof e)return l;if(o.call(l,"__wrapped__"))return s(l)}return new e(l)}return u.prototype=r.prototype,u.prototype.constructor=u,Z0=u,Z0}var Q0,_j;function OK(){if(_j)return Q0;_j=1;var t=dw(),e=vB(),r=wK(),n=AK();function i(s){var a=r(s),o=n[a];if(typeof o!="function"||!(a in t.prototype))return!1;if(s===o)return!0;var u=e(o);return!!u&&s===u[0]}return Q0=i,Q0}var eb,wj;function EB(){if(wj)return eb;wj=1;var t=mB(),e=jF(),r=e(t);return eb=r,eb}var tb,xj;function CK(){if(xj)return tb;xj=1;var t=/\{\n\/\* \[wrapped with (.+)\] \*/,e=/,? & /;function r(n){var i=n.match(t);return i?i[1].split(e):[]}return tb=r,tb}var rb,Aj;function RK(){if(Aj)return rb;Aj=1;var t=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function e(r,n){var i=n.length;if(!i)return r;var s=i-1;return n[s]=(i>1?"& ":"")+n[s],n=n.join(i>2?", ":" "),r.replace(t,`{
54
+ /* [wrapped with `+n+`] */
55
+ `)}return rb=e,rb}var nb,Oj;function IK(){if(Oj)return nb;Oj=1;function t(e){return e!==e}return nb=t,nb}var ib,Cj;function TK(){if(Cj)return ib;Cj=1;function t(e,r,n){for(var i=n-1,s=e.length;++i<s;)if(e[i]===r)return i;return-1}return ib=t,ib}var sb,Rj;function PK(){if(Rj)return sb;Rj=1;var t=XF(),e=IK(),r=TK();function n(i,s,a){return s===s?r(i,s,a):t(i,e,a)}return sb=n,sb}var ab,Ij;function kK(){if(Ij)return ab;Ij=1;var t=PK();function e(r,n){var i=r==null?0:r.length;return!!i&&t(r,n,0)>-1}return ab=e,ab}var ob,Tj;function jK(){if(Tj)return ob;Tj=1;var t=G_(),e=kK(),r=1,n=2,i=8,s=16,a=32,o=64,u=128,l=256,c=512,p=[["ary",u],["bind",r],["bindKey",n],["curry",i],["curryRight",s],["flip",c],["partial",a],["partialRight",o],["rearg",l]];function h(d,g){return t(p,function(y){var v="_."+y[0];g&y[1]&&!e(d,v)&&d.push(v)}),d.sort()}return ob=h,ob}var ub,Pj;function SB(){if(Pj)return ub;Pj=1;var t=CK(),e=RK(),r=$_(),n=jK();function i(s,a,o){var u=a+"";return r(s,e(u,n(t(u),o)))}return ub=i,ub}var lb,kj;function _B(){if(kj)return lb;kj=1;var t=OK(),e=EB(),r=SB(),n=4,i=8,s=32,a=64;function o(u,l,c,p,h,d,g,y,v,E){var b=l&i,_=b?g:void 0,w=b?void 0:g,S=b?d:void 0,A=b?void 0:d;l|=b?s:a,l&=~(b?a:s),l&n||(l&=-4);var I=[u,l,h,S,_,A,w,y,v,E],T=c.apply(void 0,I);return t(u)&&e(T,I),T.placeholder=p,r(T,u,l)}return lb=o,lb}var cb,jj;function wB(){if(jj)return cb;jj=1;function t(e){var r=e;return r.placeholder}return cb=t,cb}var fb,Nj;function NK(){if(Nj)return fb;Nj=1;var t=_u(),e=Au(),r=Math.min;function n(i,s){for(var a=i.length,o=r(s.length,a),u=t(i);o--;){var l=s[o];i[o]=e(l,a)?u[l]:void 0}return i}return fb=n,fb}var pb,Mj;function hw(){if(Mj)return pb;Mj=1;var t="__lodash_placeholder__";function e(r,n){for(var i=-1,s=r.length,a=0,o=[];++i<s;){var u=r[i];(u===n||u===t)&&(r[i]=t,o[a++]=i)}return o}return pb=e,pb}var db,Dj;function xB(){if(Dj)return db;Dj=1;var t=gB(),e=yB(),r=EK(),n=Af(),i=_B(),s=wB(),a=NK(),o=hw(),u=tn(),l=1,c=2,p=8,h=16,d=128,g=512;function y(v,E,b,_,w,S,A,I,T,k){var D=E&d,R=E&l,$=E&c,M=E&(p|h),K=E&g,ee=$?void 0:n(v);function G(){for(var Z=arguments.length,X=Array(Z),te=Z;te--;)X[te]=arguments[te];if(M)var ce=s(G),ie=r(X,ce);if(_&&(X=t(X,_,w,M)),S&&(X=e(X,S,A,M)),Z-=ie,M&&Z<k){var ue=o(X,ce);return i(v,E,y,G.placeholder,b,X,ue,I,T,k-Z)}var ye=R?b:this,he=$?ye[v]:v;return Z=X.length,I?X=a(X,I):K&&Z>1&&X.reverse(),D&&T<Z&&(X.length=T),this&&this!==u&&this instanceof G&&(he=ee||n(he)),he.apply(ye,X)}return G}return db=y,db}var hb,Fj;function MK(){if(Fj)return hb;Fj=1;var t=B_(),e=Af(),r=xB(),n=_B(),i=wB(),s=hw(),a=tn();function o(u,l,c){var p=e(u);function h(){for(var d=arguments.length,g=Array(d),y=d,v=i(h);y--;)g[y]=arguments[y];var E=d<3&&g[0]!==v&&g[d-1]!==v?[]:s(g,v);if(d-=E.length,d<c)return n(u,l,r,h.placeholder,void 0,g,E,void 0,void 0,c-d);var b=this&&this!==a&&this instanceof h?p:u;return t(b,this,g)}return h}return hb=o,hb}var mb,qj;function DK(){if(qj)return mb;qj=1;var t=B_(),e=Af(),r=tn(),n=1;function i(s,a,o,u){var l=a&n,c=e(s);function p(){for(var h=-1,d=arguments.length,g=-1,y=u.length,v=Array(y+d),E=this&&this!==r&&this instanceof p?c:s;++g<y;)v[g]=u[g];for(;d--;)v[g++]=arguments[++h];return t(E,l?o:this,v)}return p}return mb=i,mb}var gb,Bj;function FK(){if(Bj)return gb;Bj=1;var t=gB(),e=yB(),r=hw(),n="__lodash_placeholder__",i=1,s=2,a=4,o=8,u=128,l=256,c=Math.min;function p(h,d){var g=h[1],y=d[1],v=g|y,E=v<(i|s|u),b=y==u&&g==o||y==u&&g==l&&h[7].length<=d[8]||y==(u|l)&&d[7].length<=d[8]&&g==o;if(!(E||b))return h;y&i&&(h[2]=d[2],v|=g&i?0:a);var _=d[3];if(_){var w=h[3];h[3]=w?t(w,_,d[4]):_,h[4]=w?r(h[3],n):d[4]}return _=d[5],_&&(w=h[5],h[5]=w?e(w,_,d[6]):_,h[6]=w?r(h[5],n):d[6]),_=d[7],_&&(h[7]=_),y&u&&(h[8]=h[8]==null?d[8]:c(h[8],d[8])),h[9]==null&&(h[9]=d[9]),h[0]=d[0],h[1]=v,h}return gb=p,gb}var yb,$j;function mw(){if($j)return yb;$j=1;var t=mB(),e=bK(),r=MK(),n=xB(),i=DK(),s=vB(),a=FK(),o=EB(),u=SB(),l=K_(),c="Expected a function",p=1,h=2,d=8,g=16,y=32,v=64,E=Math.max;function b(_,w,S,A,I,T,k,D){var R=w&h;if(!R&&typeof _!="function")throw new TypeError(c);var $=A?A.length:0;if($||(w&=-97,A=I=void 0),k=k===void 0?k:E(l(k),0),D=D===void 0?D:l(D),$-=I?I.length:0,w&v){var M=A,K=I;A=I=void 0}var ee=R?void 0:s(_),G=[_,w,S,A,I,M,K,T,k,D];if(ee&&a(G,ee),_=G[0],w=G[1],S=G[2],A=G[3],I=G[4],D=G[9]=G[9]===void 0?R?0:_.length:E(G[9]-$,0),!D&&w&(d|g)&&(w&=-25),!w||w==p)var Z=e(_,w,S);else w==d||w==g?Z=r(_,w,D):(w==y||w==(p|y))&&!I.length?Z=i(_,w,S,A):Z=n.apply(void 0,G);var X=ee?t:o;return u(X(Z,G),_,w)}return yb=b,yb}var vb,Lj;function qK(){if(Lj)return vb;Lj=1;var t=mw(),e=128;function r(n,i,s){return i=s?void 0:i,i=n&&i==null?n.length:i,t(n,e,void 0,void 0,void 0,void 0,i)}return vb=r,vb}var bb,Uj;function BK(){if(Uj)return bb;Uj=1;var t=Y_(),e=4;function r(n){return t(n,e)}return bb=r,bb}var Eb,Vj;function $K(){if(Vj)return Eb;Vj=1;var t=mw(),e=8;function r(n,i,s){i=s?void 0:i;var a=t(n,e,void 0,void 0,void 0,void 0,void 0,i);return a.placeholder=r.placeholder,a}return r.placeholder={},Eb=r,Eb}var Sb,zj;function LK(){if(zj)return Sb;zj=1;var t=Ii(),e=nn(),r=bf(),n="[object DOMException]",i="[object Error]";function s(a){if(!e(a))return!1;var o=t(a);return o==i||o==n||typeof a.message=="string"&&typeof a.name=="string"&&!r(a)}return Sb=s,Sb}var _b,Wj;function UK(){if(Wj)return _b;Wj=1;var t=so(),e=nn(),r="[object WeakMap]";function n(i){return e(i)&&t(i)==r}return _b=n,_b}var wb,Jj;function VK(){if(Jj)return wb;Jj=1;var t=Y_(),e=Tu(),r=1;function n(i){return e(typeof i=="function"?i:t(i,r))}return wb=n,wb}var xb,Hj;function zK(){if(Hj)return xb;Hj=1;var t=mw(),e=nq(),r=256,n=e(function(i,s){return t(i,r,void 0,void 0,void 0,s)});return xb=n,xb}var Ab,Kj;function WK(){if(Kj)return Ab;Kj=1;var t=L_(),e=_u(),r=Rr(),n=Ru(),i=KF(),s=ua(),a=Qi();function o(u){return r(u)?t(u,s):n(u)?[u]:e(i(a(u)))}return Ab=o,Ab}var Ob,Gj;function JK(){return Gj||(Gj=1,Ob={ary:qK(),assign:eq(),clone:BK(),curry:$K(),forEach:G_(),isArray:Rr(),isError:LK(),isFunction:Su(),isWeakMap:UK(),iteratee:VK(),keys:z_(),rearg:zK(),toInteger:K_(),toPath:WK()}),Ob}var Cb,Yj;function HK(){if(Yj)return Cb;Yj=1;var t=vK(),e=JK();function r(n,i,s){return t(e,n,i,s)}return Cb=r,Cb}var Rb,Xj;function AB(){if(Xj)return Rb;Xj=1;var t=HK(),e=t("set",pB());return e.placeholder=dB(),Rb=e,Rb}var Ib,Zj;function KK(){return Zj||(Zj=1,Ib=AB()),Ib}var GK=KK();const YK=ot(GK);/*!
56
+ * https://github.com/Starcounter-Jack/JSON-Patch
57
+ * (c) 2017-2022 Joachim Wester
58
+ * MIT licensed
59
+ */var XK=(function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},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)}})(),ZK=Object.prototype.hasOwnProperty;function f1(t,e){return ZK.call(t,e)}function p1(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 i in t)f1(t,i)&&n.push(i);return n}function vn(t){switch(typeof t){case"object":return JSON.parse(JSON.stringify(t));case"undefined":return null;default:return t}}function d1(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 Ws(t){return t.indexOf("/")===-1&&t.indexOf("~")===-1?t:t.replace(/~/g,"~0").replace(/\//g,"~1")}function OB(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}function h1(t){if(t===void 0)return!0;if(t){if(Array.isArray(t)){for(var e=0,r=t.length;e<r;e++)if(h1(t[e]))return!0}else if(typeof t=="object"){for(var n=p1(t),i=n.length,s=0;s<i;s++)if(h1(t[n[s]]))return!0}}return!1}function Qj(t,e){var r=[t];for(var n in e){var i=typeof e[n]=="object"?JSON.stringify(e[n],null,2):e[n];typeof i<"u"&&r.push(n+": "+i)}return r.join(`
60
+ `)}var CB=(function(t){XK(e,t);function e(r,n,i,s,a){var o=this.constructor,u=t.call(this,Qj(r,{name:n,index:i,operation:s,tree:a}))||this;return u.name=n,u.index=i,u.operation=s,u.tree=a,Object.setPrototypeOf(u,o.prototype),u.message=Qj(r,{name:n,index:i,operation:s,tree:a}),u}return e})(Error),ar=CB,QK=vn,Fa={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=su(r,this.path);n&&(n=vn(n));var i=Ys(r,{op:"remove",path:this.from}).removed;return Ys(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(t,e,r){var n=su(r,this.from);return Ys(r,{op:"add",path:this.path,value:vn(n)}),{newDocument:r}},test:function(t,e,r){return{newDocument:r,test:au(t[e],this.value)}},_get:function(t,e,r){return this.value=t[e],{newDocument:r}}},eG={add:function(t,e,r){return d1(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:Fa.move,copy:Fa.copy,test:Fa.test,_get:Fa._get};function su(t,e){if(e=="")return t;var r={op:"_get",path:e};return Ys(t,r),r.value}function Ys(t,e,r,n,i,s){if(r===void 0&&(r=!1),n===void 0&&(n=!0),i===void 0&&(i=!0),s===void 0&&(s=0),r&&(typeof r=="function"?r(e,0,t,e.path):Vc(e,0)),e.path===""){var a={newDocument:t};if(e.op==="add")return a.newDocument=e.value,a;if(e.op==="replace")return a.newDocument=e.value,a.removed=t,a;if(e.op==="move"||e.op==="copy")return a.newDocument=su(t,e.from),e.op==="move"&&(a.removed=t),a;if(e.op==="test"){if(a.test=au(t,e.value),a.test===!1)throw new ar("Test operation failed","TEST_OPERATION_FAILED",s,e,t);return a.newDocument=t,a}else{if(e.op==="remove")return a.removed=t,a.newDocument=null,a;if(e.op==="_get")return e.value=t,a;if(r)throw new ar("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,e,t);return a}}else{n||(t=vn(t));var o=e.path||"",u=o.split("/"),l=t,c=1,p=u.length,h=void 0,d=void 0,g=void 0;for(typeof r=="function"?g=r:g=Vc;;){if(d=u[c],d&&d.indexOf("~")!=-1&&(d=OB(d)),i&&(d=="__proto__"||d=="prototype"&&c>0&&u[c-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&&h===void 0&&(l[d]===void 0?h=u.slice(0,c).join("/"):c==p-1&&(h=e.path),h!==void 0&&g(e,0,t,h)),c++,Array.isArray(l)){if(d==="-")d=l.length;else{if(r&&!d1(d))throw new ar("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",s,e,t);d1(d)&&(d=~~d)}if(c>=p){if(r&&e.op==="add"&&d>l.length)throw new ar("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s,e,t);var a=eG[e.op].call(e,l,d,t);if(a.test===!1)throw new ar("Test operation failed","TEST_OPERATION_FAILED",s,e,t);return a}}else if(c>=p){var a=Fa[e.op].call(e,l,d,t);if(a.test===!1)throw new ar("Test operation failed","TEST_OPERATION_FAILED",s,e,t);return a}if(l=l[d],r&&c<p&&(!l||typeof l!="object"))throw new ar("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,e,t)}}}function bs(t,e,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(e))throw new ar("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(t=vn(t));for(var s=new Array(e.length),a=0,o=e.length;a<o;a++)s[a]=Ys(t,e[a],r,!0,i,a),t=s[a].newDocument;return s.newDocument=t,s}function tG(t,e,r){var n=Ys(t,e);if(n.test===!1)throw new ar("Test operation failed","TEST_OPERATION_FAILED",r,e,t);return n.newDocument}function Vc(t,e,r,n){if(typeof t!="object"||t===null||Array.isArray(t))throw new ar("Operation is not an object","OPERATION_NOT_AN_OBJECT",e,t,r);if(Fa[t.op]){if(typeof t.path!="string")throw new ar("Operation `path` property is not a string","OPERATION_PATH_INVALID",e,t,r);if(t.path.indexOf("/")!==0&&t.path.length>0)throw new ar('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 ar("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 ar("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")&&h1(t.value))throw new ar("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 i=t.path.split("/").length,s=n.split("/").length;if(i!==s+1&&i!==s)throw new ar("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 ar("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 a={op:"_get",path:t.from,value:void 0},o=RB([a],r);if(o&&o.name==="OPERATION_PATH_UNRESOLVABLE")throw new ar("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",e,t,r)}}}else throw new ar("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",e,t,r)}function RB(t,e,r){try{if(!Array.isArray(t))throw new ar("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(e)bs(vn(e),vn(t),r||!0);else{r=r||Vc;for(var n=0;n<t.length;n++)r(t[n],n,e,void 0)}}catch(i){if(i instanceof ar)return i;throw i}}function au(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),i,s,a;if(r&&n){if(s=t.length,s!=e.length)return!1;for(i=s;i--!==0;)if(!au(t[i],e[i]))return!1;return!0}if(r!=n)return!1;var o=Object.keys(t);if(s=o.length,s!==Object.keys(e).length)return!1;for(i=s;i--!==0;)if(!e.hasOwnProperty(o[i]))return!1;for(i=s;i--!==0;)if(a=o[i],!au(t[a],e[a]))return!1;return!0}return t!==t&&e!==e}const rG=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:ar,_areEquals:au,applyOperation:Ys,applyPatch:bs,applyReducer:tG,deepClone:QK,getValueByPointer:su,validate:RB,validator:Vc},Symbol.toStringTag,{value:"Module"}));/*!
61
+ * https://github.com/Starcounter-Jack/JSON-Patch
62
+ * (c) 2017-2021 Joachim Wester
63
+ * MIT license
64
+ */var gw=new WeakMap,nG=(function(){function t(e){this.observers=new Map,this.obj=e}return t})(),iG=(function(){function t(e,r){this.callback=e,this.observer=r}return t})();function sG(t){return gw.get(t)}function aG(t,e){return t.observers.get(e)}function oG(t,e){t.observers.delete(e.callback)}function uG(t,e){e.unobserve()}function lG(t,e){var r=[],n,i=sG(t);if(!i)i=new nG(t),gw.set(t,i);else{var s=aG(i,e);n=s&&s.observer}if(n)return n;if(n={},i.value=vn(t),e){n.callback=e,n.next=null;var a=function(){m1(n)},o=function(){clearTimeout(n.next),n.next=setTimeout(a)};typeof window<"u"&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return n.patches=r,n.object=t,n.unobserve=function(){m1(n),clearTimeout(n.next),oG(i,n),typeof window<"u"&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},i.observers.set(e,new iG(e,n)),n}function m1(t,e){e===void 0&&(e=!1);var r=gw.get(t.object);yw(r.value,t.object,t.patches,"",e),t.patches.length&&bs(r.value,t.patches);var n=t.patches;return n.length>0&&(t.patches=[],t.callback&&t.callback(n)),n}function yw(t,e,r,n,i){if(e!==t){typeof e.toJSON=="function"&&(e=e.toJSON());for(var s=p1(e),a=p1(t),o=!1,u=a.length-1;u>=0;u--){var l=a[u],c=t[l];if(f1(e,l)&&!(e[l]===void 0&&c!==void 0&&Array.isArray(e)===!1)){var p=e[l];typeof c=="object"&&c!=null&&typeof p=="object"&&p!=null&&Array.isArray(c)===Array.isArray(p)?yw(c,p,r,n+"/"+Ws(l),i):c!==p&&(i&&r.push({op:"test",path:n+"/"+Ws(l),value:vn(c)}),r.push({op:"replace",path:n+"/"+Ws(l),value:vn(p)}))}else Array.isArray(t)===Array.isArray(e)?(i&&r.push({op:"test",path:n+"/"+Ws(l),value:vn(c)}),r.push({op:"remove",path:n+"/"+Ws(l)}),o=!0):(i&&r.push({op:"test",path:n,value:t}),r.push({op:"replace",path:n,value:e}))}if(!(!o&&s.length==a.length))for(var u=0;u<s.length;u++){var l=s[u];!f1(t,l)&&e[l]!==void 0&&r.push({op:"add",path:n+"/"+Ws(l),value:vn(e[l])})}}}function cG(t,e,r){r===void 0&&(r=!1);var n=[];return yw(t,e,n,"",r),n}const fG=Object.freeze(Object.defineProperty({__proto__:null,compare:cG,generate:m1,observe:lG,unobserve:uG},Symbol.toStringTag,{value:"Module"}));Object.assign({},rG,fG,{JsonPatchError:CB,deepClone:vn,escapePathComponent:Ws,unescapePathComponent:OB});var Tb,eN;function pG(){if(eN)return Tb;eN=1;var t=function(b){return e(b)&&!r(b)};function e(E){return!!E&&typeof E=="object"}function r(E){var b=Object.prototype.toString.call(E);return b==="[object RegExp]"||b==="[object Date]"||s(E)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function s(E){return E.$$typeof===i}function a(E){return Array.isArray(E)?[]:{}}function o(E,b){return b.clone!==!1&&b.isMergeableObject(E)?y(a(E),E,b):E}function u(E,b,_){return E.concat(b).map(function(w){return o(w,_)})}function l(E,b){if(!b.customMerge)return y;var _=b.customMerge(E);return typeof _=="function"?_:y}function c(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(b){return Object.propertyIsEnumerable.call(E,b)}):[]}function p(E){return Object.keys(E).concat(c(E))}function h(E,b){try{return b in E}catch{return!1}}function d(E,b){return h(E,b)&&!(Object.hasOwnProperty.call(E,b)&&Object.propertyIsEnumerable.call(E,b))}function g(E,b,_){var w={};return _.isMergeableObject(E)&&p(E).forEach(function(S){w[S]=o(E[S],_)}),p(b).forEach(function(S){d(E,S)||(h(E,S)&&_.isMergeableObject(b[S])?w[S]=l(S,_)(E[S],b[S],_):w[S]=o(b[S],_))}),w}function y(E,b,_){_=_||{},_.arrayMerge=_.arrayMerge||u,_.isMergeableObject=_.isMergeableObject||t,_.cloneUnlessOtherwiseSpecified=o;var w=Array.isArray(b),S=Array.isArray(E),A=w===S;return A?w?_.arrayMerge(E,b,_):g(E,b,_):o(b,_)}y.all=function(b,_){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(w,S){return y(w,S,_)},{})};var v=y;return Tb=v,Tb}var dG=pG();const tN=ot(dG),qt={add:mG,replace:Ac,remove:gG,merge:yG,mergeDeep:vG,context:bG,getIn:wG,applyPatch:hG,parentPathMatch:_G,flatten:Bu,fullyNormalizeArray:xG,normalizeArray:TB,isPromise:AG,forEachNew:EG,forEachNewPrimitive:SG,isJsonPatch:jB,isContextPatch:RG,isPatch:Of,isMutation:NB,isAdditiveMutation:zc,isGenerator:CG,isFunction:kB,isObject:Xs,isError:OG};function hG(t,e,r){if(r=r||{},e={...e,path:e.path&&rN(e.path)},e.op==="merge"){const n=Pb(t,e.path);Object.assign(n,e.value),bs(t,[Ac(e.path,n)])}else if(e.op==="mergeDeep"){const n=Pb(t,e.path),i=tN(n,e.value,{customMerge:s=>{if(s==="enum")return(a,o)=>Array.isArray(a)&&Array.isArray(o)?[...new Set([...a,...o])]:tN(a,o)}});t=bs(t,[Ac(e.path,i)]).newDocument}else if(e.op==="add"&&e.path===""&&Xs(e.value)){const n=Object.keys(e.value).reduce((i,s)=>(i.push({op:"add",path:`/${rN(s)}`,value:e.value[s]}),i),[]);bs(t,n)}else if(e.op==="replace"&&e.path===""){let{value:n}=e;r.allowMetaPatches&&e.meta&&zc(e)&&(Array.isArray(e.value)||Xs(e.value))&&(n={...n,...e.meta}),t=n}else if(bs(t,[e]),r.allowMetaPatches&&e.meta&&zc(e)&&(Array.isArray(e.value)||Xs(e.value))){const i={...Pb(t,e.path),...e.meta};bs(t,[Ac(e.path,i)])}return t}function rN(t){return Array.isArray(t)?t.length<1?"":`/${t.map(e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:t}function mG(t,e){return{op:"add",path:t,value:e}}function Ac(t,e,r){return{op:"replace",path:t,value:e,meta:r}}function gG(t){return{op:"remove",path:t}}function yG(t,e){return{type:"mutation",op:"merge",path:t,value:e}}function vG(t,e){return{type:"mutation",op:"mergeDeep",path:t,value:e}}function bG(t,e){return{type:"context",path:t,value:e}}function EG(t,e){try{return IB(t,y1,e)}catch(r){return r}}function SG(t,e){try{return IB(t,g1,e)}catch(r){return r}}function IB(t,e,r){const n=t.filter(zc).map(a=>e(a.value,r,a.path))||[],i=Bu(n);return PB(i)}function g1(t,e,r){return r=r||[],Array.isArray(t)?t.map((n,i)=>g1(n,e,r.concat(i))):Xs(t)?Object.keys(t).map(n=>g1(t[n],e,r.concat(n))):e(t,r[r.length-1],r)}function y1(t,e,r){r=r||[];let n=[];if(r.length>0){const i=e(t,r[r.length-1],r);i&&(n=n.concat(i))}if(Array.isArray(t)){const i=t.map((s,a)=>y1(s,e,r.concat(a)));i&&(n=n.concat(i))}else if(Xs(t)){const i=Object.keys(t).map(s=>y1(t[s],e,r.concat(s)));i&&(n=n.concat(i))}return n=Bu(n),n}function _G(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 wG(t,e){return e.reduce((r,n)=>typeof n<"u"&&r?r[n]:r,t)}function xG(t){return PB(Bu(TB(t)))}function TB(t){return Array.isArray(t)?t:[t]}function Bu(t){return[].concat(...t.map(e=>Array.isArray(e)?Bu(e):e))}function PB(t){return t.filter(e=>typeof e<"u")}function Xs(t){return t&&typeof t=="object"}function AG(t){return Xs(t)&&kB(t.then)}function kB(t){return t&&typeof t=="function"}function OG(t){return t instanceof Error}function jB(t){if(Of(t)){const{op:e}=t;return e==="add"||e==="remove"||e==="replace"}return!1}function CG(t){return Object.prototype.toString.call(t)==="[object GeneratorFunction]"}function NB(t){return jB(t)||Of(t)&&t.type==="mutation"}function zc(t){return NB(t)&&(t.op==="add"||t.op==="replace"||t.op==="merge"||t.op==="mergeDeep")}function RG(t){return Of(t)&&t.type==="context"}function Of(t){return t&&typeof t=="object"}function Pb(t,e){try{return su(t,e)}catch(r){return console.error(r),{}}}var nN={},iN={},sN={},kb,aN;function vw(){if(aN)return kb;aN=1;var t=Zq(),e=Qq(),r=t("keys");return kb=function(n){return r[n]||(r[n]=e(n))},kb}var jb,oN;function IG(){if(oN)return jb;oN=1;var t=$n();return jb=!t(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}),jb}var Nb,uN;function bw(){if(uN)return Nb;uN=1;var t=ai(),e=Sn(),r=uw(),n=vw(),i=IG(),s=n("IE_PROTO"),a=Object,o=a.prototype;return Nb=i?a.getPrototypeOf:function(u){var l=r(u);if(t(l,s))return l[s];var c=l.constructor;return e(c)&&l instanceof c?c.prototype:l instanceof a?o:null},Nb}var Mb,lN;function TG(){if(lN)return Mb;lN=1;var t=fn(),e=Fu();return Mb=function(r,n,i){try{return t(e(Object.getOwnPropertyDescriptor(r,n)[i]))}catch{}},Mb}var Db,cN;function PG(){if(cN)return Db;cN=1;var t=si();return Db=function(e){return t(e)||e===null},Db}var Fb,fN;function kG(){if(fN)return Fb;fN=1;var t=PG(),e=String,r=TypeError;return Fb=function(n){if(t(n))return n;throw new r("Can't set "+e(n)+" as a prototype")},Fb}var qb,pN;function Cf(){if(pN)return qb;pN=1;var t=TG(),e=si(),r=wf(),n=kG();return qb=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,s={},a;try{a=t(Object.prototype,"__proto__","set"),a(s,[]),i=s instanceof Array}catch{}return function(u,l){return r(u),n(l),e(u)&&(i?a(u,l):u.__proto__=l),u}})():void 0),qb}var Bb={},dN;function jG(){if(dN)return Bb;dN=1;var t=oB(),e=fw(),r=e.concat("length","prototype");return Bb.f=Object.getOwnPropertyNames||function(i){return t(i,r)},Bb}var $b,hN;function NG(){if(hN)return $b;hN=1;var t=Mu(),e=fn(),r=jG(),n=lB(),i=la(),s=e([].concat);return $b=t("Reflect","ownKeys")||function(o){var u=r.f(i(o)),l=n.f;return l?s(u,l(o)):u},$b}var Lb,mN;function MB(){if(mN)return Lb;mN=1;var t=ai(),e=NG(),r=nB(),n=ao();return Lb=function(i,s,a){for(var o=e(s),u=n.f,l=r.f,c=0;c<o.length;c++){var p=o[c];!t(i,p)&&!(a&&t(a,p))&&u(i,p,l(s,p))}},Lb}var Ub={},gN;function MG(){if(gN)return Ub;gN=1;var t=Ti(),e=sB(),r=ao(),n=la(),i=ju(),s=uB();return Ub.f=t&&!e?Object.defineProperties:function(o,u){n(o);for(var l=i(u),c=s(u),p=c.length,h=0,d;p>h;)r.f(o,d=c[h++],l[d]);return o},Ub}var Vb,yN;function DG(){if(yN)return Vb;yN=1;var t=Mu();return Vb=t("document","documentElement"),Vb}var zb,vN;function Ew(){if(vN)return zb;vN=1;var t=la(),e=MG(),r=fw(),n=cw(),i=DG(),s=tB(),a=vw(),o=">",u="<",l="prototype",c="script",p=a("IE_PROTO"),h=function(){},d=function(b){return u+c+o+b+u+"/"+c+o},g=function(b){b.write(d("")),b.close();var _=b.parentWindow.Object;return b=null,_},y=function(){var b=s("iframe"),_="java"+c+":",w;return b.style.display="none",i.appendChild(b),b.src=String(_),w=b.contentWindow.document,w.open(),w.write(d("document.F=Object")),w.close(),w.F},v,E=function(){try{v=new ActiveXObject("htmlfile")}catch{}E=typeof document<"u"?document.domain&&v?g(v):y():g(v);for(var b=r.length;b--;)delete E[l][r[b]];return E()};return n[p]=!0,zb=Object.create||function(_,w){var S;return _!==null?(h[l]=t(_),S=new h,h[l]=null,S[p]=_):S=E(),w===void 0?S:e.f(S,w)},zb}var Wb,bN;function DB(){if(bN)return Wb;bN=1;var t=si(),e=ts();return Wb=function(r,n){t(n)&&"cause"in n&&e(r,"cause",n.cause)},Wb}var Jb,EN;function FG(){if(EN)return Jb;EN=1;var t=fn(),e=Error,r=t("".replace),n=(function(a){return String(new e(a).stack)})("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,s=i.test(n);return Jb=function(a,o){if(s&&typeof a=="string"&&!e.prepareStackTrace)for(;o--;)a=r(a,i,"");return a},Jb}var Hb,SN;function qG(){if(SN)return Hb;SN=1;var t=$n(),e=ku();return Hb=!t(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",e(1,7)),r.stack!==7):!0}),Hb}var Kb,_N;function FB(){if(_N)return Kb;_N=1;var t=ts(),e=FG(),r=qG(),n=Error.captureStackTrace;return Kb=function(i,s,a,o){r&&(n?n(i,s):t(i,"stack",e(a,o)))},Kb}var Gb,wN;function uo(){return wN||(wN=1,Gb={}),Gb}var Yb,xN;function BG(){if(xN)return Yb;xN=1;var t=es(),e=uo(),r=t("iterator"),n=Array.prototype;return Yb=function(i){return i!==void 0&&(e.Array===i||n[r]===i)},Yb}var Xb,AN;function Sw(){if(AN)return Xb;AN=1;var t=es(),e=t("toStringTag"),r={};return r[e]="z",Xb=String(r)==="[object z]",Xb}var Zb,ON;function _w(){if(ON)return Zb;ON=1;var t=Sw(),e=Sn(),r=iw(),n=es(),i=n("toStringTag"),s=Object,a=r((function(){return arguments})())==="Arguments",o=function(u,l){try{return u[l]}catch{}};return Zb=t?r:function(u){var l,c,p;return u===void 0?"Undefined":u===null?"Null":typeof(c=o(l=s(u),i))=="string"?c:a?r(l):(p=r(l))==="Object"&&e(l.callee)?"Arguments":p},Zb}var Qb,CN;function qB(){if(CN)return Qb;CN=1;var t=_w(),e=ow(),r=sw(),n=uo(),i=es(),s=i("iterator");return Qb=function(a){if(!r(a))return e(a,s)||e(a,"@@iterator")||n[t(a)]},Qb}var eE,RN;function $G(){if(RN)return eE;RN=1;var t=Rs(),e=Fu(),r=la(),n=aw(),i=qB(),s=TypeError;return eE=function(a,o){var u=arguments.length<2?i(a):o;if(e(u))return r(t(u,a));throw new s(n(a)+" is not iterable")},eE}var tE,IN;function LG(){if(IN)return tE;IN=1;var t=Rs(),e=la(),r=ow();return tE=function(n,i,s){var a,o;e(n);try{if(a=r(n,"return"),!a){if(i==="throw")throw s;return s}a=t(a,n)}catch(u){o=!0,a=u}if(i==="throw")throw s;if(o)throw a;return e(a),s},tE}var rE,TN;function UG(){if(TN)return rE;TN=1;var t=iB(),e=Rs(),r=la(),n=aw(),i=BG(),s=aB(),a=Du(),o=$G(),u=qB(),l=LG(),c=TypeError,p=function(d,g){this.stopped=d,this.result=g},h=p.prototype;return rE=function(d,g,y){var v=y&&y.that,E=!!(y&&y.AS_ENTRIES),b=!!(y&&y.IS_RECORD),_=!!(y&&y.IS_ITERATOR),w=!!(y&&y.INTERRUPTED),S=t(g,v),A,I,T,k,D,R,$,M=function(ee){return A&&l(A,"normal"),new p(!0,ee)},K=function(ee){return E?(r(ee),w?S(ee[0],ee[1],M):S(ee[0],ee[1])):w?S(ee,M):S(ee)};if(b)A=d.iterator;else if(_)A=d;else{if(I=u(d),!I)throw new c(n(d)+" is not iterable");if(i(I)){for(T=0,k=s(d);k>T;T++)if(D=K(d[T]),D&&a(h,D))return D;return new p(!1)}A=o(d,I)}for(R=b?d.next:A.next;!($=e(R,A)).done;){try{D=K($.value)}catch(ee){l(A,"throw",ee)}if(typeof D=="object"&&D&&a(h,D))return D}return new p(!1)},rE}var nE,PN;function ww(){if(PN)return nE;PN=1;var t=_w(),e=String;return nE=function(r){if(t(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return e(r)},nE}var iE,kN;function BB(){if(kN)return iE;kN=1;var t=ww();return iE=function(e,r){return e===void 0?arguments.length<2?"":r:t(e)},iE}var jN;function VG(){if(jN)return sN;jN=1;var t=oo(),e=Du(),r=bw(),n=Cf(),i=MB(),s=Ew(),a=ts(),o=ku(),u=DB(),l=FB(),c=UG(),p=BB(),h=es(),d=h("toStringTag"),g=Error,y=[].push,v=function(_,w){var S=e(E,this),A;n?A=n(new g,S?r(this):E):(A=S?this:s(E),a(A,d,"Error")),w!==void 0&&a(A,"message",p(w)),l(A,v,A.stack,1),arguments.length>2&&u(A,arguments[2]);var I=[];return c(_,y,{that:I}),a(A,"errors",I),A};n?n(v,g):i(v,g,{name:!0});var E=v.prototype=s(g.prototype,{constructor:o(1,v),message:o(1,""),name:o(1,"AggregateError")});return t({global:!0,constructor:!0,arity:2},{AggregateError:v}),sN}var NN;function $B(){return NN||(NN=1,VG()),iN}var MN;function LB(){return MN||(MN=1,$B()),nN}var DN={},sE,FN;function zG(){if(FN)return sE;FN=1;var t=ao().f;return sE=function(e,r,n){n in e||t(e,n,{configurable:!0,get:function(){return r[n]},set:function(i){r[n]=i}})},sE}var aE,qN;function WG(){if(qN)return aE;qN=1;var t=Sn(),e=si(),r=Cf();return aE=function(n,i,s){var a,o;return r&&t(a=i.constructor)&&a!==s&&e(o=a.prototype)&&o!==s.prototype&&r(n,o),n},aE}var oE,BN;function UB(){if(BN)return oE;BN=1;var t=Mu(),e=ai(),r=ts(),n=Du(),i=Cf(),s=MB(),a=zG(),o=WG(),u=BB(),l=DB(),c=FB(),p=Ti(),h=qu();return oE=function(d,g,y,v){var E="stackTraceLimit",b=v?2:1,_=d.split("."),w=_[_.length-1],S=t.apply(null,_);if(S){var A=S.prototype;if(!h&&e(A,"cause")&&delete A.cause,!y)return S;var I=t("Error"),T=g(function(k,D){var R=u(v?D:k,void 0),$=v?new S(k):new S;return R!==void 0&&r($,"message",R),c($,T,$.stack,2),this&&n(A,this)&&o($,this,T),arguments.length>b&&l($,arguments[b]),$});if(T.prototype=A,w!=="Error"?i?i(T,I):s(T,I,{name:!0}):p&&E in S&&(a(T,S,E),a(T,S,"prepareStackTrace")),s(T,S),!h)try{A.name!==w&&r(A,"name",w),A.constructor=T}catch{}return T}},oE}var $N;function JG(){if($N)return DN;$N=1;var t=oo(),e=cn(),r=nw(),n=UB(),i="WebAssembly",s=e[i],a=new Error("e",{cause:7}).cause!==7,o=function(l,c){var p={};p[l]=n(l,c,a),t({global:!0,constructor:!0,arity:1,forced:a},p)},u=function(l,c){if(s&&s[l]){var p={};p[l]=n(i+"."+l,c,a),t({target:i,stat:!0,constructor:!0,arity:1,forced:a},p)}};return o("Error",function(l){return function(p){return r(l,this,arguments)}}),o("EvalError",function(l){return function(p){return r(l,this,arguments)}}),o("RangeError",function(l){return function(p){return r(l,this,arguments)}}),o("ReferenceError",function(l){return function(p){return r(l,this,arguments)}}),o("SyntaxError",function(l){return function(p){return r(l,this,arguments)}}),o("TypeError",function(l){return function(p){return r(l,this,arguments)}}),o("URIError",function(l){return function(p){return r(l,this,arguments)}}),u("CompileError",function(l){return function(p){return r(l,this,arguments)}}),u("LinkError",function(l){return function(p){return r(l,this,arguments)}}),u("RuntimeError",function(l){return function(p){return r(l,this,arguments)}}),DN}var LN={},UN;function HG(){if(UN)return LN;UN=1;var t=oo(),e=Mu(),r=nw(),n=$n(),i=UB(),s="AggregateError",a=e(s),o=!n(function(){return a([1]).errors[0]!==1})&&n(function(){return a([1],s,{cause:7}).cause!==7});return t({global:!0,constructor:!0,arity:2,forced:o},{AggregateError:i(s,function(u){return function(c,p){return r(u,this,arguments)}},o,!0)}),LN}var uE,VN;function KG(){return VN||(VN=1,uE=function(){}),uE}var lE,zN;function GG(){if(zN)return lE;zN=1;var t=cn(),e=Sn(),r=t.WeakMap;return lE=e(r)&&/native code/.test(String(r)),lE}var cE,WN;function VB(){if(WN)return cE;WN=1;var t=GG(),e=cn(),r=si(),n=ts(),i=ai(),s=Xq(),a=vw(),o=cw(),u="Object already initialized",l=e.TypeError,c=e.WeakMap,p,h,d,g=function(b){return d(b)?h(b):p(b,{})},y=function(b){return function(_){var w;if(!r(_)||(w=h(_)).type!==b)throw new l("Incompatible receiver, "+b+" required");return w}};if(t||s.state){var v=s.state||(s.state=new c);v.get=v.get,v.has=v.has,v.set=v.set,p=function(b,_){if(v.has(b))throw new l(u);return _.facade=b,v.set(b,_),_},h=function(b){return v.get(b)||{}},d=function(b){return v.has(b)}}else{var E=a("state");o[E]=!0,p=function(b,_){if(i(b,E))throw new l(u);return _.facade=b,n(b,E,_),_},h=function(b){return i(b,E)?b[E]:{}},d=function(b){return i(b,E)}}return cE={set:p,get:h,has:d,enforce:g,getterFor:y},cE}var fE,JN;function YG(){if(JN)return fE;JN=1;var t=Ti(),e=ai(),r=Function.prototype,n=t&&Object.getOwnPropertyDescriptor,i=e(r,"name"),s=i&&(function(){}).name==="something",a=i&&(!t||t&&n(r,"name").configurable);return fE={EXISTS:i,PROPER:s,CONFIGURABLE:a},fE}var pE,HN;function zB(){if(HN)return pE;HN=1;var t=ts();return pE=function(e,r,n,i){return i&&i.enumerable?e[r]=n:t(e,r,n),e},pE}var dE,KN;function WB(){if(KN)return dE;KN=1;var t=$n(),e=Sn(),r=si(),n=Ew(),i=bw(),s=zB(),a=es(),o=qu(),u=a("iterator"),l=!1,c,p,h;[].keys&&(h=[].keys(),"next"in h?(p=i(i(h)),p!==Object.prototype&&(c=p)):l=!0);var d=!r(c)||t(function(){var g={};return c[u].call(g)!==g});return d?c={}:o&&(c=n(c)),e(c[u])||s(c,u,function(){return this}),dE={IteratorPrototype:c,BUGGY_SAFARI_ITERATORS:l},dE}var hE,GN;function XG(){if(GN)return hE;GN=1;var t=Sw(),e=_w();return hE=t?{}.toString:function(){return"[object "+e(this)+"]"},hE}var mE,YN;function xw(){if(YN)return mE;YN=1;var t=Sw(),e=ao().f,r=ts(),n=ai(),i=XG(),s=es(),a=s("toStringTag");return mE=function(o,u,l,c){var p=l?o:o&&o.prototype;p&&(n(p,a)||e(p,a,{configurable:!0,value:u}),c&&!t&&r(p,"toString",i))},mE}var gE,XN;function ZG(){if(XN)return gE;XN=1;var t=WB().IteratorPrototype,e=Ew(),r=ku(),n=xw(),i=uo(),s=function(){return this};return gE=function(a,o,u,l){var c=o+" Iterator";return a.prototype=e(t,{next:r(+!l,u)}),n(a,c,!1,!0),i[c]=s,a},gE}var yE,ZN;function JB(){if(ZN)return yE;ZN=1;var t=oo(),e=Rs(),r=qu(),n=YG(),i=Sn(),s=ZG(),a=bw(),o=Cf(),u=xw(),l=ts(),c=zB(),p=es(),h=uo(),d=WB(),g=n.PROPER,y=n.CONFIGURABLE,v=d.IteratorPrototype,E=d.BUGGY_SAFARI_ITERATORS,b=p("iterator"),_="keys",w="values",S="entries",A=function(){return this};return yE=function(I,T,k,D,R,$,M){s(k,T,D);var K=function(he){if(he===R&&te)return te;if(!E&&he&&he in Z)return Z[he];switch(he){case _:return function(){return new k(this,he)};case w:return function(){return new k(this,he)};case S:return function(){return new k(this,he)}}return function(){return new k(this)}},ee=T+" Iterator",G=!1,Z=I.prototype,X=Z[b]||Z["@@iterator"]||R&&Z[R],te=!E&&X||K(R),ce=T==="Array"&&Z.entries||X,ie,ue,ye;if(ce&&(ie=a(ce.call(new I)),ie!==Object.prototype&&ie.next&&(!r&&a(ie)!==v&&(o?o(ie,v):i(ie[b])||c(ie,b,A)),u(ie,ee,!0,!0),r&&(h[ee]=A))),g&&R===w&&X&&X.name!==w&&(!r&&y?l(Z,"name",w):(G=!0,te=function(){return e(X,this)})),R)if(ue={values:K(w),keys:$?te:K(_),entries:K(S)},M)for(ye in ue)(E||G||!(ye in Z))&&c(Z,ye,ue[ye]);else t({target:T,proto:!0,forced:E||G},ue);return(!r||M)&&Z[b]!==te&&c(Z,b,te,{name:R}),h[T]=te,ue},yE}var vE,QN;function HB(){return QN||(QN=1,vE=function(t,e){return{value:t,done:e}}),vE}var bE,eM;function KB(){if(eM)return bE;eM=1;var t=ju(),e=KG(),r=uo(),n=VB(),i=ao().f,s=JB(),a=HB(),o=qu(),u=Ti(),l="Array Iterator",c=n.set,p=n.getterFor(l);bE=s(Array,"Array",function(d,g){c(this,{type:l,target:t(d),index:0,kind:g})},function(){var d=p(this),g=d.target,y=d.index++;if(!g||y>=g.length)return d.target=null,a(void 0,!0);switch(d.kind){case"keys":return a(y,!1);case"values":return a(g[y],!1)}return a([y,g[y]],!1)},"values");var h=r.Arguments=r.Array;if(e("keys"),e("values"),e("entries"),!o&&u&&h.name!=="values")try{i(h,"name",{value:"values"})}catch{}return bE}var tM={},EE,rM;function QG(){if(rM)return EE;rM=1;var t=fn(),e=lw(),r=ww(),n=wf(),i=t("".charAt),s=t("".charCodeAt),a=t("".slice),o=function(u){return function(l,c){var p=r(n(l)),h=e(c),d=p.length,g,y;return h<0||h>=d?u?"":void 0:(g=s(p,h),g<55296||g>56319||h+1===d||(y=s(p,h+1))<56320||y>57343?u?i(p,h):g:u?a(p,h,h+2):(g-55296<<10)+(y-56320)+65536)}};return EE={codeAt:o(!1),charAt:o(!0)},EE}var nM;function eY(){if(nM)return tM;nM=1;var t=QG().charAt,e=ww(),r=VB(),n=JB(),i=HB(),s="String Iterator",a=r.set,o=r.getterFor(s);return n(String,"String",function(u){a(this,{type:s,string:e(u),index:0})},function(){var l=o(this),c=l.string,p=l.index,h;return p>=c.length?i(void 0,!0):(h=t(c,p),l.index+=h.length,i(h,!1))}),tM}var SE,iM;function tY(){if(iM)return SE;iM=1,JG(),$B(),HG(),KB(),eY();var t=Nu();return SE=t.AggregateError,SE}var sM={},_E,aM;function rY(){return aM||(aM=1,_E={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}),_E}var oM;function nY(){if(oM)return sM;oM=1,KB();var t=rY(),e=cn(),r=xw(),n=uo();for(var i in t)r(e[i],i),n[i]=n.Array;return sM}var wE,uM;function iY(){if(uM)return wE;uM=1,LB();var t=tY();return nY(),wE=t,wE}var xE,lM;function sY(){if(lM)return xE;lM=1;var t=iY();return xE=t,xE}var AE,cM;function aY(){if(cM)return AE;cM=1,LB();var t=sY();return AE=t,AE}var OE,fM;function oY(){return fM||(fM=1,OE=aY()),OE}var CE,pM;function uY(){return pM||(pM=1,CE=oY()),CE}var lY=uY();const cY=ot(lY);class fY extends cY{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:i}=n;this.cause=i,i instanceof Error&&"stack"in i&&(this.stack=`${this.stack}
65
+ CAUSE: ${i.stack}`)}}}class nr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(fY,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}
66
+ CAUSE: ${n.stack}`)}}}class Ai extends nr{constructor(e,r){if(super(e,r),r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class wt extends nr{}class RE extends wt{}var Aw=function(){return!1},rs=function(){return!0};function Zt(t){return t!=null&&typeof t=="object"&&t["@@functional/placeholder"]===!0}function Bt(t){return function e(r){return arguments.length===0||Zt(r)?e:t.apply(this,arguments)}}function dt(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return Zt(r)?e:Bt(function(i){return t(r,i)});default:return Zt(r)&&Zt(n)?e:Zt(r)?Bt(function(i){return t(i,n)}):Zt(n)?Bt(function(i){return t(r,i)}):t(r,n)}}}function pY(t,e){t=t||[],e=e||[];var r,n=t.length,i=e.length,s=[];for(r=0;r<n;)s[s.length]=t[r],r+=1;for(r=0;r<i;)s[s.length]=e[r],r+=1;return s}function Rf(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,i){return e.apply(this,arguments)};case 4:return function(r,n,i,s){return e.apply(this,arguments)};case 5:return function(r,n,i,s,a){return e.apply(this,arguments)};case 6:return function(r,n,i,s,a,o){return e.apply(this,arguments)};case 7:return function(r,n,i,s,a,o,u){return e.apply(this,arguments)};case 8:return function(r,n,i,s,a,o,u,l){return e.apply(this,arguments)};case 9:return function(r,n,i,s,a,o,u,l,c){return e.apply(this,arguments)};case 10:return function(r,n,i,s,a,o,u,l,c,p){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Ow(t,e,r){return function(){for(var n=[],i=0,s=t,a=0,o=!1;a<e.length||i<arguments.length;){var u;a<e.length&&(!Zt(e[a])||i>=arguments.length)?u=e[a]:(u=arguments[i],i+=1),n[a]=u,Zt(u)?o=!0:s-=1,a+=1}return!o&&s<=0?r.apply(this,n):Rf(Math.max(0,s),Ow(t,n,r))}}var yr=dt(function(e,r){return e===1?Bt(r):Rf(e,Ow(e,[],r))});function Vr(t){return function e(r,n,i){switch(arguments.length){case 0:return e;case 1:return Zt(r)?e:dt(function(s,a){return t(r,s,a)});case 2:return Zt(r)&&Zt(n)?e:Zt(r)?dt(function(s,a){return t(s,n,a)}):Zt(n)?dt(function(s,a){return t(r,s,a)}):Bt(function(s){return t(r,n,s)});default:return Zt(r)&&Zt(n)&&Zt(i)?e:Zt(r)&&Zt(n)?dt(function(s,a){return t(s,a,i)}):Zt(r)&&Zt(i)?dt(function(s,a){return t(s,n,a)}):Zt(n)&&Zt(i)?dt(function(s,a){return t(r,s,a)}):Zt(r)?Bt(function(s){return t(s,n,i)}):Zt(n)?Bt(function(s){return t(r,s,i)}):Zt(i)?Bt(function(s){return t(r,n,s)}):t(r,n,i)}}}const ca=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function dY(t){return t!=null&&typeof t["@@transducer/step"]=="function"}function Is(t,e,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!ca(n)){for(var i=0;i<t.length;){if(typeof n[t[i]]=="function")return n[t[i]].apply(n,Array.prototype.slice.call(arguments,0,-1));i+=1}if(dY(n)){var s=e.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(n)}}return r.apply(this,arguments)}}function If(t){return t&&t["@@transducer/reduced"]?t:{"@@transducer/value":t,"@@transducer/reduced":!0}}const En={init:function(){return this.xf["@@transducer/init"]()},result:function(t){return this.xf["@@transducer/result"](t)}};var hY=(function(){function t(e,r){this.xf=r,this.f=e,this.all=!0}return t.prototype["@@transducer/init"]=En.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=If(this.xf["@@transducer/step"](e,!1))),e},t})();function mY(t){return function(e){return new hY(t,e)}}var Cw=dt(Is(["all"],mY,function(e,r){for(var n=0;n<r.length;){if(!e(r[n]))return!1;n+=1}return!0}));function dM(t){for(var e=[],r;!(r=t.next()).done;)e.push(r.value);return e}function Wc(t,e,r){for(var n=0,i=r.length;n<i;){if(t(e,r[n]))return!0;n+=1}return!1}function gY(t){var e=String(t).match(/^function (\w*)/);return e==null?"":e[1]}function Mn(t,e){return Object.prototype.hasOwnProperty.call(e,t)}function yY(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}const Go=typeof Object.is=="function"?Object.is:yY;var hM=Object.prototype.toString,GB=(function(){return hM.call(arguments)==="[object Arguments]"?function(e){return hM.call(e)==="[object Arguments]"}:function(e){return Mn("callee",e)}})(),vY=!{toString:null}.propertyIsEnumerable("toString"),mM=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],gM=(function(){return arguments.propertyIsEnumerable("length")})(),bY=function(e,r){for(var n=0;n<e.length;){if(e[n]===r)return!0;n+=1}return!1},ta=Bt(typeof Object.keys=="function"&&!gM?function(e){return Object(e)!==e?[]:Object.keys(e)}:function(e){if(Object(e)!==e)return[];var r,n,i=[],s=gM&&GB(e);for(r in e)Mn(r,e)&&(!s||r!=="length")&&(i[i.length]=r);if(vY)for(n=mM.length-1;n>=0;)r=mM[n],Mn(r,e)&&!bY(i,r)&&(i[i.length]=r),n-=1;return i}),ti=Bt(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function yM(t,e,r,n){var i=dM(t),s=dM(e);function a(o,u){return Rw(o,u,r.slice(),n.slice())}return!Wc(function(o,u){return!Wc(a,u,o)},s,i)}function Rw(t,e,r,n){if(Go(t,e))return!0;var i=ti(t);if(i!==ti(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(i){case"Arguments":case"Array":case"Object":if(typeof t.constructor=="function"&&gY(t.constructor)==="Promise")return t===e;break;case"Boolean":case"Number":case"String":if(!(typeof t==typeof e&&Go(t.valueOf(),e.valueOf())))return!1;break;case"Date":if(!Go(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 s=r.length-1;s>=0;){if(r[s]===t)return n[s]===e;s-=1}switch(i){case"Map":return t.size!==e.size?!1:yM(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size!==e.size?!1:yM(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 a=ta(t);if(a.length!==ta(e).length)return!1;var o=r.concat([t]),u=n.concat([e]);for(s=a.length-1;s>=0;){var l=a[s];if(!(Mn(l,e)&&Rw(e[l],t[l],o,u)))return!1;s-=1}return!0}var Ts=dt(function(e,r){return Rw(e,r,[],[])});function EY(t,e,r){var n,i;if(typeof t.indexOf=="function")switch(typeof e){case"number":if(e===0){for(n=1/e;r<t.length;){if(i=t[r],i===0&&1/i===n)return r;r+=1}return-1}else if(e!==e){for(;r<t.length;){if(i=t[r],typeof i=="number"&&i!==i)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(Ts(t[r],e))return r;r+=1}return-1}function Jc(t,e){return EY(e,t,0)>=0}function Oc(t,e){for(var r=0,n=e.length,i=Array(n);r<n;)i[r]=t(e[r]),r+=1;return i}function IE(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 Po=function(e){return(e<10?"0":"")+e},SY=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Po(e.getUTCMonth()+1)+"-"+Po(e.getUTCDate())+"T"+Po(e.getUTCHours())+":"+Po(e.getUTCMinutes())+":"+Po(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function YB(t){return function(){return!t.apply(this,arguments)}}function $u(t,e,r){for(var n=0,i=r.length;n<i;)e=t(e,r[n]),n+=1;return e}function _Y(t,e){for(var r=0,n=e.length,i=[];r<n;)t(e[r])&&(i[i.length]=e[r]),r+=1;return i}function Hc(t){return Object.prototype.toString.call(t)==="[object Object]"}var wY=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.result,t.prototype["@@transducer/step"]=function(e,r){return this.f(r)?this.xf["@@transducer/step"](e,r):e},t})();function xY(t){return function(e){return new wY(t,e)}}var AY=dt(Is(["fantasy-land/filter","filter"],xY,function(t,e){return Hc(e)?$u(function(r,n){return t(e[n])&&(r[n]=e[n]),r},{},ta(e)):_Y(t,e)})),OY=dt(function(e,r){return AY(YB(e),r)});function XB(t,e){var r=function(a){var o=e.concat([t]);return Jc(a,o)?"<Circular>":XB(a,o)},n=function(s,a){return Oc(function(o){return IE(o)+": "+r(s[o])},a.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+Oc(r,t).join(", ")+"))";case"[object Array]":return"["+Oc(r,t).concat(n(t,OY(function(s){return/^\d+$/.test(s)},ta(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):IE(SY(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())+")":IE(t);case"[object Undefined]":return"undefined";default:if(typeof t.toString=="function"){var i=t.toString();if(i!=="[object Object]")return i}return"{"+n(t,ta(t)).join(", ")+"}"}}var Ja=Bt(function(e){return XB(e,[])}),ZB=dt(function(e,r){if(e===r)return r;function n(u,l){if(u>l!=l>u)return l>u?l:u}var i=n(e,r);if(i!==void 0)return i;var s=n(typeof e,typeof r);if(s!==void 0)return s===typeof e?e:r;var a=Ja(e),o=n(a,Ja(r));return o!==void 0&&o===a?e:r}),CY=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.result,t.prototype["@@transducer/step"]=function(e,r){return this.xf["@@transducer/step"](e,this.f(r))},t})(),RY=function(e){return function(r){return new CY(e,r)}},Tf=dt(Is(["fantasy-land/map","map"],RY,function(e,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return yr(r.length,function(){return e.call(this,r.apply(this,arguments))});case"[object Object]":return $u(function(n,i){return n[i]=e(r[i]),n},{},ta(r));default:return Oc(e,r)}}));const lo=Number.isInteger||function(e){return e<<0===e};function Iw(t){return Object.prototype.toString.call(t)==="[object String]"}function Pf(t,e){var r=t<0?e.length+t:t;return Iw(e)?e.charAt(r):e[r]}var Lu=dt(function(e,r){if(r!=null)return lo(e)?Pf(e,r):r[e]}),QB=dt(function(e,r){return Tf(Lu(e),r)}),IY=Bt(function(e){return ca(e)?!0:!e||typeof e!="object"||Iw(e)?!1:e.length===0?!0:e.length>0?e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1):!1}),vM=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function e$(t,e,r){return function(i,s,a){if(IY(a))return t(i,s,a);if(a==null)return s;if(typeof a["fantasy-land/reduce"]=="function")return e(i,s,a,"fantasy-land/reduce");if(a[vM]!=null)return r(i,s,a[vM]());if(typeof a.next=="function")return r(i,s,a);if(typeof a.reduce=="function")return e(i,s,a,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function TY(t,e,r){for(var n=0,i=r.length;n<i;){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 t$=dt(function(e,r){return Rf(e.length,function(){return e.apply(r,arguments)})});function PY(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 kY(t,e,r,n){return t["@@transducer/result"](r[n](t$(t["@@transducer/step"],t),e))}var Tw=e$(TY,kY,PY),jY=(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 r$(t){return new jY(t)}var co=Vr(function(t,e,r){return Tw(typeof t=="function"?r$(t):t,e,r)}),NY=Bt(function(e){return yr(co(ZB,0,QB("length",e)),function(){for(var r=0,n=e.length;r<n;){if(!e[r].apply(this,arguments))return!1;r+=1}return!0})}),ut=Bt(function(e){return function(){return e}}),MY=dt(function(e,r){return e&&r}),DY=Bt(function(e){return yr(co(ZB,0,QB("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 FY(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function qY(t,e,r,n){return r[n](t,e)}var BY=e$($u,qY,FY),$Y=dt(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))}:BY(function(n,i){return pY(n,Tf(i,r))},[],e)}),LY=dt(function(e,r){return e.apply(this,r)}),Pw=Bt(function(e){return yr(e.length,e)});function UY(t,e,r){if(lo(t)&&ca(r)){var n=[].concat(r);return n[t]=e,n}var i={};for(var s in r)i[s]=r[s];return i[t]=e,i}var Kc=Bt(function(e){return e==null}),$e=Vr(function t(e,r,n){if(e.length===0)return r;var i=e[0];if(e.length>1){var s=!Kc(n)&&Mn(i,n)&&typeof n[i]=="object"?n[i]:lo(e[1])?[]:{};r=t(Array.prototype.slice.call(e,1),r,s)}return UY(i,r,n)}),VY=Vr(function(e,r,n){return $e([e],r,n)});function kw(t){var e=Object.prototype.toString.call(t);return e==="[object Function]"||e==="[object AsyncFunction]"||e==="[object GeneratorFunction]"||e==="[object AsyncGeneratorFunction]"}var zY=dt(function(e,r){var n=yr(e,r);return yr(e,function(){return $u($Y,Tf(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),jw=Bt(function(e){return zY(e.length,e)}),Uu=dt(function(e,r){return kw(e)?function(){return e.apply(this,arguments)&&r.apply(this,arguments)}:jw(MY)(e,r)});function n$(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 i$(t,e,r){if(r||(r=new JY),WY(t))return t;var n=function(s){var a=r.get(t);if(a)return a;r.set(t,s);for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(s[o]=t[o]);return s};switch(ti(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 n$(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 WY(t){var e=typeof t;return t==null||e!="object"&&e!="function"}var JY=(function(){function t(){this.map={},this.length=0}return t.prototype.set=function(e,r){var n=this.hash(e),i=this.map[n];i||(this.map[n]=i=[]),i.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 a=this.map[r],n=0;n<a.length;n+=1){var i=a[n];if(i[0]===e)return i[1]}return}var s=this.hash(e),a=this.map[s];if(a)for(var n=0;n<a.length;n+=1){var i=a[n];if(i[0]===e)return i[1]}},t})(),HY=Bt(function(e){return function(r,n){return e(r,n)?-1:e(n,r)?1:0}}),KY=Bt(function(e){return!e}),Vu=jw(KY);function GY(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Nw(t,e){return function(){var r=arguments.length;if(r===0)return e();var n=arguments[r-1];return ca(n)||typeof n[t]!="function"?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var zu=Vr(Nw("slice",function(e,r,n){return Array.prototype.slice.call(n,e,r)})),YY=Bt(Nw("tail",zu(1,1/0)));function qr(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Rf(arguments[0].length,co(GY,arguments[0],YY(arguments)))}var XY=Bt(function(t){return Pf(0,t)});function ZY(t){return t}var s$=Bt(ZY),QY=(function(){function t(e,r,n,i){this.valueFn=e,this.valueAcc=r,this.keyFn=n,this.xf=i,this.inputs={}}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=function(e){var r;for(r in this.inputs)if(Mn(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,i$(this.valueAcc)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),e},t})();function eX(t,e,r){return function(n){return new QY(t,e,r,n)}}var tX=Ow(4,[],Is([],eX,function(e,r,n,i){var s=r$(function(a,o){var u=n(o),l=e(Mn(u,a)?a[u]:i$(r),o);return l&&l["@@transducer/reduced"]?If(a):(a[u]=l,a)});return Tw(s,{},i)})),Ha=dt(function(e,r){return r==null||r!==r?e:r}),rX=(function(){function t(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return t.prototype.add=function(e){return!bM(e,!0,this)},t.prototype.has=function(e){return bM(e,!1,this)},t})();function bM(t,e,r){var n=typeof t,i,s;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?(i=r._nativeSet.size,r._nativeSet.add(t),s=r._nativeSet.size,s===i):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 a=t?1:0;return r._items[n][a]?!0:(e&&(r._items[n][a]=!0),!1)}else return e&&(r._items[n]=t?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?e?(i=r._nativeSet.size,r._nativeSet.add(t),s=r._nativeSet.size,s===i):r._nativeSet.has(t):n in r._items?Jc(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?Jc(t,r._items[n])?!0:(e&&r._items[n].push(t),!1):(e&&(r._items[n]=[t]),!1)}}var nX=dt(function(e,r){for(var n=[],i=0,s=e.length,a=r.length,o=new rX,u=0;u<a;u+=1)o.add(r[u]);for(;i<s;)o.add(e[i])&&(n[n.length]=e[i]),i+=1;return n}),iX=Vr(function(e,r,n){var i=Array.prototype.slice.call(n,0);return i.splice(e,r),i});function sX(t,e){if(e==null)return e;if(lo(t)&&ca(e))return iX(t,1,e);var r={};for(var n in e)r[n]=e[n];return delete r[t],r}function aX(t,e){if(lo(t)&&ca(e))return[].concat(e);var r={};for(var n in e)r[n]=e[n];return r}var bn=dt(function t(e,r){if(r==null)return r;switch(e.length){case 0:return r;case 1:return sX(e[0],r);default:var n=e[0],i=Array.prototype.slice.call(e,1);return r[n]==null?aX(n,r):VY(n,t(i,r[n]),r)}}),oX=(function(){function t(e,r){this.xf=r,this.n=e,this.i=0}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.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?If(n):n},t})();function uX(t){return function(e){return new oX(t,e)}}var lX=dt(Is(["take"],uX,function(e,r){return zu(0,e<0?1/0:e,r)}));function cX(t,e){for(var r=e.length-1;r>=0&&t(e[r]);)r-=1;return zu(0,r+1,e)}var fX=(function(){function t(e,r){this.f=e,this.retained=[],this.xf=r}return t.prototype["@@transducer/init"]=En.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=Tw(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 pX(t){return function(e){return new fX(t,e)}}var dX=dt(Is([],pX,cX)),kf=Bt(function(t){return Pf(-1,t)}),hX=(function(){function t(e,r){this.xf=r,this.f=e}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.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 mX(t){return function(e){return new hX(t,e)}}var gX=dt(Is(["dropWhile"],mX,function(e,r){for(var n=0,i=r.length;n<i&&e(r[n]);)n+=1;return zu(n,1/0,r)})),yX=dt(function(e,r){return e||r}),vX=dt(function(e,r){return kw(e)?function(){return e.apply(this,arguments)||r.apply(this,arguments)}:jw(yX)(e,r)});function bX(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 EX=Bt(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():ca(e)?[]:Iw(e)?"":Hc(e)?{}:GB(e)?(function(){return arguments})():bX(e)?e.constructor.from(""):void 0}),SX=Bt(function(e){return yr(e.length,function(r,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=r,e.apply(this,i)})}),_X=dt(Nw("groupBy",tX(function(t,e){return t.push(e),t},[]))),wX=dt(function(e,r){if(e.length===0||Kc(r))return!1;for(var n=r,i=0;i<e.length;)if(!Kc(n)&&Mn(e[i],n))n=n[e[i]],i+=1;else return!1;return!0}),Yo=dt(function(e,r){return wX([e],r)}),Ps=function(t,e){switch(arguments.length){case 0:return Ps;case 1:return(function(){return function r(n){switch(arguments.length){case 0:return r;default:return Go(t,n)}}})();default:return Go(t,e)}},Mw=Vr(function(e,r,n){return yr(Math.max(e.length,r.length,n.length),function(){return e.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})}),xX=dt(Jc),AX=zu(0,-1),Dw=dt(function(e,r){return yr(e+1,function(){var n=arguments[e];if(n!=null&&kw(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ja(n)+' does not have a method named "'+r+'"')})}),Wu=Bt(function(e){return e!=null&&Ts(e,EX(e))}),a$=Bt(function(e){return!Wu(e)}),o$=Dw(1,"join");function EM(t){return Object.prototype.toString.call(t)==="[object Number]"}var OX=dt(function(e,r){return function(n){return function(i){return Tf(function(s){return r(s,i)},n(e(i)))}}});function Fw(t,e){for(var r=e,n=0;n<t.length;n+=1){if(r==null)return;var i=t[n];lo(i)?r=Pf(i,r):r=r[i]}return r}var CX=dt(function(e,r){return $u(function(n,i){return n[i]=e(r[i],i,r),n},{},ta(r))}),RX=Vr(function(e,r,n){var i={},s;r=r||{},n=n||{};for(s in r)Mn(s,r)&&(i[s]=Mn(s,n)?e(s,r[s],n[s]):r[s]);for(s in n)Mn(s,n)&&!Mn(s,i)&&(i[s]=n[s]);return i}),IX=Vr(function t(e,r,n){return RX(function(i,s,a){return Hc(s)&&Hc(a)?t(e,s,a):e(i,s,a)},r,n)}),jf=dt(function(e,r){return IX(function(n,i,s){return s},e,r)}),TX=dt(function(e,r){return Cw(YB(e),r)}),u$=function(t){return{value:t,map:function(e){return u$(e(t))}}},PX=Vr(function(e,r,n){return e(function(i){return u$(r(i))})(n).value}),Or=dt(Fw),l$=Vr(function(e,r,n){return Ha(e,Fw(r,n))}),Nf=Vr(function(e,r,n){return e(Fw(r,n))}),c$=dt(function(e,r){for(var n={},i=0;i<e.length;)e[i]in r&&(n[e[i]]=r[e[i]]),i+=1;return n}),f$=Vr(function(e,r,n){return Ts(e,Lu(r,n))}),Gc=Vr(function(e,r,n){return Ha(e,Lu(r,n))}),kX=Vr(function(e,r,n){return e(Lu(r,n))}),jX=dt(function(e,r){if(!(EM(e)&&EM(r)))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(e<r?r-e:0),i=e<0?r+Math.abs(e):r-e,s=0;s<i;)n[s]=s+e,s+=1;return n}),NX=Bt(If),p$=Vr(function(e,r,n){return n.replace(e,r)}),MX=dt(function(e,r){return Array.prototype.slice.call(r,0).sort(e)}),d$=Dw(1,"split"),DX=dt(function(t,e){return Ts(lX(t.length,e),t)});function FX(t){return Object.prototype.toString.call(t)==="[object RegExp]"}var qX=dt(function(e,r){if(!FX(e))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ja(e));return n$(e).test(r)}),BX=(function(){function t(e,r){this.xf=r,this.pred=e,this.items=[]}return t.prototype["@@transducer/init"]=En.init,t.prototype["@@transducer/result"]=En.result,t.prototype["@@transducer/step"]=function(e,r){return Wc(this.pred,r,this.items)?e:(this.items.push(r),this.xf["@@transducer/step"](e,r))},t})();function $X(t){return function(e){return new BX(t,e)}}var h$=dt(Is([],$X,function(t,e){for(var r=0,n=e.length,i=[],s;r<n;)s=e[r],Wc(t,s,i)||(i[i.length]=s),r+=1;return i})),LX=Vr(function(e,r,n){return e(n)?r(n):n}),Mf=ut(void 0),ks=Ts(Mf()),m$=Vu(ks),g$=Ts(null),y$=Vu(g$),UX=Vu(Kc),VX=yr(1,qr(ti,Ps("GeneratorFunction"))),zX=yr(1,qr(ti,Ps("AsyncFunction"))),fa=DY([qr(ti,Ps("Function")),VX,zX]),v$=yr(1,fa(Array.isArray)?Array.isArray:qr(ti,Ps("Array"))),WX=Uu(v$,Wu),JX=Uu(v$,a$),pa=yr(1,qr(ti,Ps("String"))),HX=Ts("");function v1(t){"@babel/helpers - typeof";return v1=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},v1(t)}var b$=function(e){return v1(e)==="object"},KX=yr(1,Uu(y$,vX(b$,fa))),GX=Vu(KX),Df=NY([pa,GX,a$]),YX=Vu(fa),XX=yr(1,Uu(y$,b$)),ZX=qr(ti,Ps("Object")),QX=qr(Ja,Ts(Ja(Object))),eZ=Nf(Uu(fa,QX),["constructor"]),ri=yr(1,function(t){if(!XX(t)||!ZX(t))return!1;var e=Object.getPrototypeOf(t);return g$(e)?!0:eZ(e)}),tZ=yr(1,qr(ti,Ps("RegExp")));function rZ(t){return aZ(t)||sZ(t)||iZ(t)||nZ()}function nZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
67
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function iZ(t,e){if(t){if(typeof t=="string")return b1(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)?b1(t,e):void 0}}function sZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function aZ(t){if(Array.isArray(t))return b1(t)}function b1(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 oZ=HY(function(t,e){return t.length>e.length}),uZ=qr(MX(oZ),XY,Lu("length")),lZ=Pw(function(t,e,r){var n=r.apply(void 0,rZ(t));return UX(n)?NX(n):e}),cZ=function(e){var r=uZ(e);return yr(r,function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return co(lZ(i),void 0,e)})},E$=Mw(JX,cZ,Mf),Ff=SX(xX),ou=yr(3,function(t,e,r){var n=Or(t,r),i=Or(AX(t),r);if(!YX(n)&&!WX(t)){var s=t$(n,i);return LY(s,e)}}),fZ=LX(pa,p$(/[.*+?^${}()|[\]\\-]/g,"\\$&")),pZ=function(e,r,n){if(n==null||e==null||r==null)throw TypeError("Input values must not be `null` or `undefined`")},SM=function(e,r){if(typeof e!="string"&&!(e instanceof String))throw TypeError("`".concat(r,"` must be a string"))},dZ=function(e){if(typeof e!="string"&&!(e instanceof String)&&!(e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},hZ=function(e,r,n){pZ(e,r,n),SM(n,"str"),SM(r,"replaceValue"),dZ(e);var i=new RegExp(tZ(e)?e:fZ(e),"g");return p$(i,r,n)},mZ=yr(3,hZ),gZ=Dw(2,"replaceAll"),yZ=fa(String.prototype.replaceAll)?gZ:mZ,vZ=Pw(function(t,e){return qr(d$(""),dX(Ff(t)),o$(""))(e)}),S$=Pw(function(t,e){return qr(d$(""),gX(Ff(t)),o$(""))(e)}),TE={exports:{}},_M;function bZ(){if(_M)return TE.exports;_M=1;var t=TE.exports={},e,r;function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?e=setTimeout:e=n}catch{e=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=i}catch{r=i}})();function s(y){if(e===setTimeout)return setTimeout(y,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(y,0);try{return e(y,0)}catch{try{return e.call(null,y,0)}catch{return e.call(this,y,0)}}}function a(y){if(r===clearTimeout)return clearTimeout(y);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(y);try{return r(y)}catch{try{return r.call(null,y)}catch{return r.call(this,y)}}}var o=[],u=!1,l,c=-1;function p(){!u||!l||(u=!1,l.length?o=l.concat(o):c=-1,o.length&&h())}function h(){if(!u){var y=s(p);u=!0;for(var v=o.length;v;){for(l=o,o=[];++c<v;)l&&l[c].run();c=-1,v=o.length}l=null,u=!1,a(y)}}t.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)v[E-1]=arguments[E];o.push(new d(y,v)),o.length===1&&!u&&s(h)};function d(y,v){this.fun=y,this.array=v}d.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={};function g(){}return t.on=g,t.addListener=g,t.once=g,t.off=g,t.removeListener=g,t.removeAllListeners=g,t.emit=g,t.prependListener=g,t.prependOnceListener=g,t.listeners=function(y){return[]},t.binding=function(y){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(y){throw new Error("process.chdir is not supported")},t.umask=function(){return 0},TE.exports}var EZ=bZ();const Yc=ot(EZ),qw=()=>Nf(qX(/^win/),["platform"],Yc),Bw=t=>{try{const e=new URL(t);return vZ(":",e.protocol)}catch{return}};qr(Bw,m$);const SZ=t=>{const e=t.lastIndexOf(".");return e>=0?t.substring(e).toLowerCase():""},_$=t=>{if(Yc.browser)return!1;const e=Bw(t);return ks(e)||e==="file"||/^[a-zA-Z]$/.test(e)},$w=t=>{const e=Bw(t);return e==="http"||e==="https"},w$=(t,e)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Gc(!1,"keepFileProtocol",e),i=Gc(qw,"isWindows",e);let s=decodeURI(t);for(let o=0;o<r.length;o+=2)s=s.replace(r[o],r[o+1]);let a=s.substring(0,7).toLowerCase()==="file://";return a&&(s=s[7]==="/"?s.substring(8):s.substring(7),i()&&s[1]==="/"&&(s=`${s[0]}:${s.substring(1)}`),n?s=`file:///${s}`:(a=!1,s=i()?s:`/${s}`)),i()&&!a&&(s=yZ("/","\\",s),s.substring(1,3)===":\\"&&(s=s[0].toUpperCase()+s.substring(1))),s},_Z=t=>{const e=[/\?/g,"%3F",/#/g,"%23"];let r=t;qw()&&(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},x$=t=>{const e=t.indexOf("#");return e!==-1?t.substring(e):"#"},zt=t=>{const e=t.indexOf("#");let r=t;return e>=0&&(r=t.substring(0,e)),r},E1=()=>{if(Yc.browser)return zt(globalThis.location.href);const t=Yc.cwd(),e=kf(t);return["/","\\"].includes(e)?t:t+(qw()?"\\":"/")},Nr=(t,e)=>{const r=new URL(e,new URL(t,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:i,hash:s}=r;return n+i+s}return r.toString()},qf=t=>{if(_$(t))return _Z(w$(t));try{return new URL(t).toString()}catch{return encodeURI(decodeURI(t)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Ei=t=>_$(t)?w$(t):decodeURI(t);let uu=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:r="text/plain",data:n,parseResult:i}){this.uri=e,this.mediaType=r,this.data=n,this.parseResult=i}get extension(){return pa(this.uri)?SZ(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(ti(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}};class Ka{rootRef;refs;circular;constructor({refs:e=[],circular:r=!1}={}){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=pa(e)?e:e.uri;return m$(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 A$={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:s$,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},wZ=OX(Or(["resolve","baseURI"]),$e(["resolve","baseURI"])),xZ=t=>HX(t)?E1():t,O$=(t,e)=>{const r=jf(t,e);return PX(wZ,xZ,r)};class AZ extends nr{plugin;constructor(e,r){super(e,{cause:r.cause}),this.plugin=r.plugin}}const Lw=async(t,e,r)=>{const n=await Promise.all(r.map(ou([t],e)));return r.filter((i,s)=>n[s])},Uw=async(t,e,r)=>{let n;for(const i of r)try{const s=await i[t].call(i,...e);return{plugin:i,result:s}}catch(s){n=new AZ("Error while running plugin",{cause:s,plugin:i})}return Promise.reject(n)};class S1 extends nr{}class Vw extends nr{}class C$ extends Vw{}class R$ extends C${}const OZ=async(t,e)=>{const r=e.resolve.resolvers.map(i=>{const s=Object.create(i);return Object.assign(s,e.resolve.resolverOpts)}),n=await Lw("canRead",[t,e],r);if(Wu(n))throw new R$(t.uri);try{const{result:i}=await Uw("read",[t],n);return i}catch(i){throw new Vw(`Error while reading file "${t.uri}"`,{cause:i})}},CZ=async(t,e)=>{const r=e.parse.parsers.map(i=>{const s=Object.create(i);return Object.assign(s,e.parse.parserOpts)}),n=await Lw("canParse",[t,e],r);if(Wu(n))throw new R$(t.uri);try{const{plugin:i,result:s}=await Uw("parse",[t,e],n);return!i.allowEmpty&&s.isEmpty?Promise.reject(new S1(`Error while parsing file "${t.uri}". File is empty.`)):s}catch(i){throw new S1(`Error while parsing file "${t.uri}"`,{cause:i})}},RZ=async(t,e)=>{const r=new uu({uri:qf(zt(t)),mediaType:e.parse.mediaType}),n=await OZ(r,e);return CZ(new uu({...r,data:n}),e)};var dr={},PE,wM;function IZ(){if(wM)return PE;wM=1;function t(e){return e===null}return PE=t,PE}var kE,xM;function TZ(){if(xM)return kE;xM=1;var t=Ii(),e=nn(),r="[object Number]";function n(i){return typeof i=="number"||e(i)&&t(i)==r}return kE=n,kE}var jE,AM;function PZ(){if(AM)return jE;AM=1;var t=Ii(),e=nn(),r="[object Boolean]";function n(i){return i===!0||i===!1||e(i)&&t(i)==r}return jE=n,jE}var NE,OM;function zw(){if(OM)return NE;OM=1;class t{constructor(r){this.namespace=r||new this.Namespace}serialise(r){if(!(r instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${r}\` is not an Element instance`);const n={element:r.element};r._meta&&r._meta.length>0&&(n.meta=this.serialiseObject(r.meta)),r._attributes&&r._attributes.length>0&&(n.attributes=this.serialiseObject(r.attributes));const i=this.serialiseContent(r.content);return i!==void 0&&(n.content=i),n}deserialise(r){if(!r.element)throw new Error("Given value is not an object containing an element name");const n=this.namespace.getElementClass(r.element),i=new n;i.element!==r.element&&(i.element=r.element),r.meta&&this.deserialiseObject(r.meta,i.meta),r.attributes&&this.deserialiseObject(r.attributes,i.attributes);const s=this.deserialiseContent(r.content);return(s!==void 0||i.content===null)&&(i.content=s),i}serialiseContent(r){if(r instanceof this.namespace.elements.Element)return this.serialise(r);if(r instanceof this.namespace.KeyValuePair){const n={key:this.serialise(r.key)};return r.value&&(n.value=this.serialise(r.value)),n}return r&&r.map?r.length===0?void 0:r.map(this.serialise,this):r}deserialiseContent(r){if(r){if(r.element)return this.deserialise(r);if(r.key){const n=new this.namespace.KeyValuePair(this.deserialise(r.key));return r.value&&(n.value=this.deserialise(r.value)),n}if(r.map)return r.map(this.deserialise,this)}return r}serialiseObject(r){const n={};if(r.forEach((i,s)=>{i&&(n[s.toValue()]=this.serialise(i))}),Object.keys(n).length!==0)return n}deserialiseObject(r,n){Object.keys(r).forEach(i=>{n.set(i,this.deserialise(r[i]))})}}return NE=t,NE}var ME,CM;function kZ(){if(CM)return ME;CM=1;var t=W_();function e(r,n){return t(r,n)}return ME=e,ME}var DE,RM;function Bf(){if(RM)return DE;RM=1;class t{constructor(r,n){this.key=r,this.value=n}clone(){const r=new t;return this.key&&(r.key=this.key.clone()),this.value&&(r.value=this.value.clone()),r}}return DE=t,DE}var FE,IM;function $f(){if(IM)return FE;IM=1;var t="Expected a function";function e(r){if(typeof r!="function")throw new TypeError(t);return function(){var n=arguments;switch(n.length){case 0:return!r.call(this);case 1:return!r.call(this,n[0]);case 2:return!r.call(this,n[0],n[1]);case 3:return!r.call(this,n[0],n[1],n[2])}return!r.apply(this,n)}}return FE=e,FE}var qE,TM;function Lf(){if(TM)return qE;TM=1;const t=$f();function e(n){return typeof n=="string"?i=>i.element===n:n.constructor&&n.extend?i=>i instanceof n:n}class r{constructor(i){this.elements=i||[]}toValue(){return this.elements.map(i=>i.toValue())}map(i,s){return this.elements.map(i,s)}flatMap(i,s){return this.map(i,s).reduce((a,o)=>a.concat(o),[])}compactMap(i,s){const a=[];return this.forEach(o=>{const u=i.bind(s)(o);u&&a.push(u)}),a}filter(i,s){return i=e(i),new r(this.elements.filter(i,s))}reject(i,s){return i=e(i),new r(this.elements.filter(t(i),s))}find(i,s){return i=e(i),this.elements.find(i,s)}forEach(i,s){this.elements.forEach(i,s)}reduce(i,s){return this.elements.reduce(i,s)}includes(i){return this.elements.some(s=>s.equals(i))}shift(){return this.elements.shift()}unshift(i){this.elements.unshift(this.refract(i))}push(i){return this.elements.push(this.refract(i)),this}add(i){this.push(i)}get(i){return this.elements[i]}getValue(i){const s=this.elements[i];if(s)return s.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}}return typeof Symbol<"u"&&(r.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),qE=r,qE}var BE,PM;function ns(){if(PM)return BE;PM=1;const t=kZ(),e=Bf(),r=Lf();class n{constructor(s,a,o){a&&(this.meta=a),o&&(this.attributes=o),this.content=s}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(s=>{s.parent=this,s.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const s=new this.constructor;return s.element=this.element,this.meta.length&&(s._meta=this.meta.clone()),this.attributes.length&&(s._attributes=this.attributes.clone()),this.content?this.content.clone?s.content=this.content.clone():Array.isArray(this.content)?s.content=this.content.map(a=>a.clone()):s.content=this.content:s.content=this.content,s}toValue(){return this.content instanceof n?this.content.toValue():this.content instanceof e?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map(s=>s.toValue(),this):this.content}toRef(s){if(this.id.toValue()==="")throw Error("Cannot create reference to an element that does not contain an ID");const a=new this.RefElement(this.id.toValue());return s&&(a.path=s),a}findRecursive(...s){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 a=s.pop();let o=new r;const u=(c,p)=>(c.push(p),c),l=(c,p)=>{p.element===a&&c.push(p);const h=p.findRecursive(a);return h&&h.reduce(u,c),p.content instanceof e&&(p.content.key&&l(c,p.content.key),p.content.value&&l(c,p.content.value)),c};return this.content&&(this.content.element&&l(o,this.content),Array.isArray(this.content)&&this.content.reduce(l,o)),s.isEmpty||(o=o.filter(c=>{let p=c.parents.map(h=>h.element);for(const h in s){const d=s[h],g=p.indexOf(d);if(g!==-1)p=p.splice(0,g);else return!1}return!0})),o}set(s){return this.content=s,this}equals(s){return t(this.toValue(),s)}getMetaProperty(s,a){if(!this.meta.hasKey(s)){if(this.isFrozen){const o=this.refract(a);return o.freeze(),o}this.meta.set(s,a)}return this.meta.get(s)}setMetaProperty(s,a){this.meta.set(s,a)}get element(){return this._storedElement||"element"}set element(s){this._storedElement=s}get content(){return this._content}set content(s){if(s instanceof n)this._content=s;else if(s instanceof r)this.content=s.elements;else if(typeof s=="string"||typeof s=="number"||typeof s=="boolean"||s==="null"||s==null)this._content=s;else if(s instanceof e)this._content=s;else if(Array.isArray(s))this._content=s.map(this.refract);else if(typeof s=="object")this._content=Object.keys(s).map(a=>new this.MemberElement(a,s[a]));else throw new Error("Cannot set content to given value")}get meta(){if(!this._meta){if(this.isFrozen){const s=new this.ObjectElement;return s.freeze(),s}this._meta=new this.ObjectElement}return this._meta}set meta(s){s instanceof this.ObjectElement?this._meta=s:this.meta.set(s||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const s=new this.ObjectElement;return s.freeze(),s}this._attributes=new this.ObjectElement}return this._attributes}set attributes(s){s instanceof this.ObjectElement?this._attributes=s:this.attributes.set(s||{})}get id(){return this.getMetaProperty("id","")}set id(s){this.setMetaProperty("id",s)}get classes(){return this.getMetaProperty("classes",[])}set classes(s){this.setMetaProperty("classes",s)}get title(){return this.getMetaProperty("title","")}set title(s){this.setMetaProperty("title",s)}get description(){return this.getMetaProperty("description","")}set description(s){this.setMetaProperty("description",s)}get links(){return this.getMetaProperty("links",[])}set links(s){this.setMetaProperty("links",s)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:s}=this;const a=new r;for(;s;)a.push(s),s=s.parent;return a}get children(){if(Array.isArray(this.content))return new r(this.content);if(this.content instanceof e){const s=new r([this.content.key]);return this.content.value&&s.push(this.content.value),s}return this.content instanceof n?new r([this.content]):new r}get recursiveChildren(){const s=new r;return this.children.forEach(a=>{s.push(a),a.recursiveChildren.forEach(o=>{s.push(o)})}),s}}return BE=n,BE}var $E,kM;function jZ(){if(kM)return $E;kM=1;const t=ns();class e extends t{constructor(n,i,s){super(n||null,i,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}return $E=e,$E}var LE,jM;function NZ(){if(jM)return LE;jM=1;const t=ns();return LE=class extends t{constructor(r,n,i){super(r,n,i),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},LE}var UE,NM;function MZ(){if(NM)return UE;NM=1;const t=ns();return UE=class extends t{constructor(r,n,i){super(r,n,i),this.element="number"}primitive(){return"number"}},UE}var VE,MM;function DZ(){if(MM)return VE;MM=1;const t=ns();return VE=class extends t{constructor(r,n,i){super(r,n,i),this.element="boolean"}primitive(){return"boolean"}},VE}var zE,DM;function I$(){if(DM)return zE;DM=1;const t=$f(),e=ns(),r=Lf();class n extends e{constructor(s,a,o){super(s||[],a,o),this.element="array"}primitive(){return"array"}get(s){return this.content[s]}getValue(s){const a=this.get(s);if(a)return a.toValue()}getIndex(s){return this.content[s]}set(s,a){return this.content[s]=this.refract(a),this}remove(s){const a=this.content.splice(s,1);return a.length?a[0]:null}map(s,a){return this.content.map(s,a)}flatMap(s,a){return this.map(s,a).reduce((o,u)=>o.concat(u),[])}compactMap(s,a){const o=[];return this.forEach(u=>{const l=s.bind(a)(u);l&&o.push(l)}),o}filter(s,a){return new r(this.content.filter(s,a))}reject(s,a){return this.filter(t(s),a)}reduce(s,a){let o,u;a!==void 0?(o=0,u=this.refract(a)):(o=1,u=this.primitive()==="object"?this.first.value:this.first);for(let l=o;l<this.length;l+=1){const c=this.content[l];this.primitive()==="object"?u=this.refract(s(u,c.value,c.key,c,this)):u=this.refract(s(u,c,l,this))}return u}forEach(s,a){this.content.forEach((o,u)=>{s.bind(a)(o,this.refract(u))})}shift(){return this.content.shift()}unshift(s){this.content.unshift(this.refract(s))}push(s){return this.content.push(this.refract(s)),this}add(s){this.push(s)}findElements(s,a){const o=a||{},u=!!o.recursive,l=o.results===void 0?[]:o.results;return this.forEach((c,p,h)=>{u&&c.findElements!==void 0&&c.findElements(s,{results:l,recursive:u}),s(c,p,h)&&l.push(c)}),l}find(s){return new r(this.findElements(s,{recursive:!0}))}findByElement(s){return this.find(a=>a.element===s)}findByClass(s){return this.find(a=>a.classes.includes(s))}getById(s){return this.find(a=>a.id.toValue()===s).first}includes(s){return this.content.some(a=>a.equals(s))}contains(s){return this.includes(s)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(s){return new this.constructor(this.content.concat(s.content))}"fantasy-land/concat"(s){return this.concat(s)}"fantasy-land/map"(s){return new this.constructor(this.map(s))}"fantasy-land/chain"(s){return this.map(a=>s(a),this).reduce((a,o)=>a.concat(o),this.empty())}"fantasy-land/filter"(s){return new this.constructor(this.content.filter(s))}"fantasy-land/reduce"(s,a){return this.content.reduce(s,a)}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)}}return n.empty=function(){return new this},n["fantasy-land/empty"]=n.empty,typeof Symbol<"u"&&(n.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),zE=n,zE}var WE,FM;function T$(){if(FM)return WE;FM=1;const t=Bf(),e=ns();return WE=class extends e{constructor(n,i,s,a){super(new t,s,a),this.element="member",this.key=n,this.value=i}get key(){return this.content.key}set key(n){this.content.key=this.refract(n)}get value(){return this.content.value}set value(n){this.content.value=this.refract(n)}},WE}var JE,qM;function P$(){if(qM)return JE;qM=1;const t=$f(),e=Lf();class r extends e{map(i,s){return this.elements.map(a=>i.bind(s)(a.value,a.key,a))}filter(i,s){return new r(this.elements.filter(a=>i.bind(s)(a.value,a.key,a)))}reject(i,s){return this.filter(t(i.bind(s)))}forEach(i,s){return this.elements.forEach((a,o)=>{i.bind(s)(a.value,a.key,a,o)})}keys(){return this.map((i,s)=>s.toValue())}values(){return this.map(i=>i.toValue())}}return JE=r,JE}var HE,BM;function FZ(){if(BM)return HE;BM=1;const t=$f(),e=rn(),r=I$(),n=T$(),i=P$();class s extends r{constructor(o,u,l){super(o||[],u,l),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce((o,u)=>(o[u.key.toValue()]=u.value?u.value.toValue():void 0,o),{})}get(o){const u=this.getMember(o);if(u)return u.value}getMember(o){if(o!==void 0)return this.content.find(u=>u.key.toValue()===o)}remove(o){let u=null;return this.content=this.content.filter(l=>l.key.toValue()===o?(u=l,!1):!0),u}getKey(o){const u=this.getMember(o);if(u)return u.key}set(o,u){if(e(o))return Object.keys(o).forEach(p=>{this.set(p,o[p])}),this;const l=o,c=this.getMember(l);return c?c.value=u:this.content.push(new n(l,u)),this}keys(){return this.content.map(o=>o.key.toValue())}values(){return this.content.map(o=>o.value.toValue())}hasKey(o){return this.content.some(u=>u.key.equals(o))}items(){return this.content.map(o=>[o.key.toValue(),o.value.toValue()])}map(o,u){return this.content.map(l=>o.bind(u)(l.value,l.key,l))}compactMap(o,u){const l=[];return this.forEach((c,p,h)=>{const d=o.bind(u)(c,p,h);d&&l.push(d)}),l}filter(o,u){return new i(this.content).filter(o,u)}reject(o,u){return this.filter(t(o),u)}forEach(o,u){return this.content.forEach(l=>o.bind(u)(l.value,l.key,l))}}return HE=s,HE}var KE,$M;function qZ(){if($M)return KE;$M=1;const t=ns();return KE=class extends t{constructor(r,n,i){super(r||[],n,i),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(r){this.attributes.set("relation",r)}get href(){return this.attributes.get("href")}set href(r){this.attributes.set("href",r)}},KE}var GE,LM;function BZ(){if(LM)return GE;LM=1;const t=ns();return GE=class extends t{constructor(r,n,i){super(r||[],n,i),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(r){this.attributes.set("path",r)}},GE}var YE,UM;function k$(){if(UM)return YE;UM=1;const t=ns(),e=jZ(),r=NZ(),n=MZ(),i=DZ(),s=I$(),a=T$(),o=FZ(),u=qZ(),l=BZ(),c=Lf(),p=P$(),h=Bf();function d(g){return g instanceof t?g:typeof g=="string"?new r(g):typeof g=="number"?new n(g):typeof g=="boolean"?new i(g):g===null?new e:Array.isArray(g)?new s(g.map(d)):typeof g=="object"?new o(g):g}return t.prototype.ObjectElement=o,t.prototype.RefElement=l,t.prototype.MemberElement=a,t.prototype.refract=d,c.prototype.refract=d,YE={Element:t,NullElement:e,StringElement:r,NumberElement:n,BooleanElement:i,ArrayElement:s,MemberElement:a,ObjectElement:o,LinkElement:u,RefElement:l,refract:d,ArraySlice:c,ObjectSlice:p,KeyValuePair:h},YE}var XE,VM;function $Z(){if(VM)return XE;VM=1;const t=IZ(),e=fB(),r=TZ(),n=PZ(),i=rn(),s=zw(),a=k$();class o{constructor(l){this.elementMap={},this.elementDetection=[],this.Element=a.Element,this.KeyValuePair=a.KeyValuePair,(!l||!l.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(l){return l.namespace&&l.namespace({base:this}),l.load&&l.load({base:this}),this}useDefault(){return this.register("null",a.NullElement).register("string",a.StringElement).register("number",a.NumberElement).register("boolean",a.BooleanElement).register("array",a.ArrayElement).register("object",a.ObjectElement).register("member",a.MemberElement).register("ref",a.RefElement).register("link",a.LinkElement),this.detect(t,a.NullElement,!1).detect(e,a.StringElement,!1).detect(r,a.NumberElement,!1).detect(n,a.BooleanElement,!1).detect(Array.isArray,a.ArrayElement,!1).detect(i,a.ObjectElement,!1),this}register(l,c){return this._elements=void 0,this.elementMap[l]=c,this}unregister(l){return this._elements=void 0,delete this.elementMap[l],this}detect(l,c,p){return(p===void 0?!0:p)?this.elementDetection.unshift([l,c]):this.elementDetection.push([l,c]),this}toElement(l){if(l instanceof this.Element)return l;let c;for(let p=0;p<this.elementDetection.length;p+=1){const h=this.elementDetection[p][0],d=this.elementDetection[p][1];if(h(l)){c=new d(l);break}}return c}getElementClass(l){const c=this.elementMap[l];return c===void 0?this.Element:c}fromRefract(l){return this.serialiser.deserialise(l)}toRefract(l){return this.serialiser.serialise(l)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(l=>{const c=l[0].toUpperCase()+l.substr(1);this._elements[c]=this.elementMap[l]})),this._elements}get serialiser(){return new s(this)}}return s.prototype.Namespace=o,XE=o,XE}var ZE,zM;function LZ(){if(zM)return ZE;zM=1;const t=zw();return ZE=class extends t{serialise(r){if(!(r instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${r}\` is not an Element instance`);let n;r._attributes&&r.attributes.get("variable")&&(n=r.attributes.get("variable"));const i={element:r.element};r._meta&&r._meta.length>0&&(i.meta=this.serialiseObject(r.meta));const s=r.element==="enum"||r.attributes.keys().indexOf("enumerations")!==-1;if(s){const a=this.enumSerialiseAttributes(r);a&&(i.attributes=a)}else if(r._attributes&&r._attributes.length>0){let{attributes:a}=r;a.get("metadata")&&(a=a.clone(),a.set("meta",a.get("metadata")),a.remove("metadata")),r.element==="member"&&n&&(a=a.clone(),a.remove("variable")),a.length>0&&(i.attributes=this.serialiseObject(a))}if(s)i.content=this.enumSerialiseContent(r,i);else if(this[`${r.element}SerialiseContent`])i.content=this[`${r.element}SerialiseContent`](r,i);else if(r.content!==void 0){let a;n&&r.content.key?(a=r.content.clone(),a.key.attributes.set("variable",n),a=this.serialiseContent(a)):a=this.serialiseContent(r.content),this.shouldSerialiseContent(r,a)&&(i.content=a)}else this.shouldSerialiseContent(r,r.content)&&r instanceof this.namespace.elements.Array&&(i.content=[]);return i}shouldSerialiseContent(r,n){return r.element==="parseResult"||r.element==="httpRequest"||r.element==="httpResponse"||r.element==="category"||r.element==="link"?!0:!(n===void 0||Array.isArray(n)&&n.length===0)}refSerialiseContent(r,n){return delete n.attributes,{href:r.toValue(),path:r.path.toValue()}}sourceMapSerialiseContent(r){return r.toValue()}dataStructureSerialiseContent(r){return[this.serialiseContent(r.content)]}enumSerialiseAttributes(r){const n=r.attributes.clone(),i=n.remove("enumerations")||new this.namespace.elements.Array([]),s=n.get("default");let a=n.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),n.set("default",new this.namespace.elements.Array([s.content]))),a.forEach(o=>{o.content&&o.content.element&&o.content.attributes.remove("typeAttributes")}),r.content&&i.length!==0&&a.unshift(r.content),a=a.map(o=>o instanceof this.namespace.elements.Array?[o]:new this.namespace.elements.Array([o.content])),a.length&&n.set("samples",a),n.length>0)return this.serialiseObject(n)}enumSerialiseContent(r){if(r._attributes){const n=r.attributes.get("enumerations");if(n&&n.length>0)return n.content.map(i=>{const s=i.clone();return s.attributes.remove("typeAttributes"),this.serialise(s)})}if(r.content){const n=r.content.clone();return n.attributes.remove("typeAttributes"),[this.serialise(n)]}return[]}deserialise(r){if(typeof r=="string")return new this.namespace.elements.String(r);if(typeof r=="number")return new this.namespace.elements.Number(r);if(typeof r=="boolean")return new this.namespace.elements.Boolean(r);if(r===null)return new this.namespace.elements.Null;if(Array.isArray(r))return new this.namespace.elements.Array(r.map(this.deserialise,this));const n=this.namespace.getElementClass(r.element),i=new n;i.element!==r.element&&(i.element=r.element),r.meta&&this.deserialiseObject(r.meta,i.meta),r.attributes&&this.deserialiseObject(r.attributes,i.attributes);const s=this.deserialiseContent(r.content);if((s!==void 0||i.content===null)&&(i.content=s),i.element==="enum"){i.content&&i.attributes.set("enumerations",i.content);let a=i.attributes.get("samples");if(i.attributes.remove("samples"),a){const u=a;a=new this.namespace.elements.Array,u.forEach(c=>{c.forEach(p=>{const h=new n(p);h.element=i.element,a.push(h)})});const l=a.shift();l?i.content=l.content:i.content=void 0,i.attributes.set("samples",a)}else i.content=void 0;let o=i.attributes.get("default");if(o&&o.length>0){o=o.get(0);const u=new n(o);u.element=i.element,i.attributes.set("default",u)}}else if(i.element==="dataStructure"&&Array.isArray(i.content))[i.content]=i.content;else if(i.element==="category"){const a=i.attributes.get("meta");a&&(i.attributes.set("metadata",a),i.attributes.remove("meta"))}else i.element==="member"&&i.key&&i.key._attributes&&i.key._attributes.getValue("variable")&&(i.attributes.set("variable",i.key.attributes.get("variable")),i.key.attributes.remove("variable"));return i}serialiseContent(r){if(r instanceof this.namespace.elements.Element)return this.serialise(r);if(r instanceof this.namespace.KeyValuePair){const n={key:this.serialise(r.key)};return r.value&&(n.value=this.serialise(r.value)),n}return r&&r.map?r.map(this.serialise,this):r}deserialiseContent(r){if(r){if(r.element)return this.deserialise(r);if(r.key){const n=new this.namespace.KeyValuePair(this.deserialise(r.key));return r.value&&(n.value=this.deserialise(r.value)),n}if(r.map)return r.map(this.deserialise,this)}return r}shouldRefract(r){return r._attributes&&r.attributes.keys().length||r._meta&&r.meta.keys().length?!0:r.element==="enum"?!1:r.element!==r.primitive()||r.element==="member"}convertKeyToRefract(r,n){return this.shouldRefract(n)?this.serialise(n):n.element==="enum"?this.serialiseEnum(n):n.element==="array"?n.map(i=>this.shouldRefract(i)||r==="default"?this.serialise(i):i.element==="array"||i.element==="object"||i.element==="enum"?i.children.map(s=>this.serialise(s)):i.toValue()):n.element==="object"?(n.content||[]).map(this.serialise,this):n.toValue()}serialiseEnum(r){return r.children.map(n=>this.serialise(n))}serialiseObject(r){const n={};return r.forEach((i,s)=>{if(i){const a=s.toValue();n[a]=this.convertKeyToRefract(a,i)}}),n}deserialiseObject(r,n){Object.keys(r).forEach(i=>{n.set(i,this.deserialise(r[i]))})}},ZE}var WM;function UZ(){if(WM)return dr;WM=1;const t=$Z(),e=k$();return dr.Namespace=t,dr.namespace=function(n){return new t(n)},dr.KeyValuePair=Bf(),dr.ArraySlice=e.ArraySlice,dr.ObjectSlice=e.ObjectSlice,dr.Element=e.Element,dr.StringElement=e.StringElement,dr.NumberElement=e.NumberElement,dr.BooleanElement=e.BooleanElement,dr.NullElement=e.NullElement,dr.ArrayElement=e.ArrayElement,dr.ObjectElement=e.ObjectElement,dr.MemberElement=e.MemberElement,dr.RefElement=e.RefElement,dr.LinkElement=e.LinkElement,dr.refract=e.refract,dr.JSONSerialiser=zw(),dr.JSON06Serialiser=LZ(),dr}var pe=UZ();class Xc extends pe.StringElement{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 Zc extends pe.StringElement{constructor(e,r,n){super(e,r,n),this.element="comment"}}class ni extends pe.ArrayElement{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(ks(r))return!1;const n=this.content.findIndex(i=>i===r);return n===-1?!1:(this.content[n]=e,!0)}}const VZ=(t,e)=>typeof e=="object"&&e!==null&&t in e&&typeof e[t]=="function",zZ=t=>typeof t=="object"&&t!=null&&"_storedElement"in t&&typeof t._storedElement=="string"&&"_content"in t,WZ=(t,e)=>typeof e=="object"&&e!==null&&"primitive"in e?typeof e.primitive=="function"&&e.primitive()===t:!1,JZ=(t,e)=>typeof e=="object"&&e!==null&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof pe.ArrayElement)&&e.classes.includes(t),gs=(t,e)=>typeof e=="object"&&e!==null&&"element"in e&&e.element===t,Ue=t=>t({hasMethod:VZ,hasBasicElementProps:zZ,primitiveEq:WZ,isElementType:gs,hasClass:JZ}),or=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.Element||t(r)&&e(void 0,r)),ct=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.StringElement||t(r)&&e("string",r)),Ww=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.NumberElement||t(r)&&e("number",r)),Jw=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.NullElement||t(r)&&e("null",r)),Ju=Ue(({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof pe.BooleanElement||t(r)&&e("boolean",r)),kt=Ue(({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof pe.ObjectElement||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n)),Fr=Ue(({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof pe.ArrayElement&&!(n instanceof pe.ObjectElement)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n)),oi=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pe.MemberElement||t(n)&&e("member",n)&&r(void 0,n)),j$=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pe.LinkElement||t(n)&&e("link",n)&&r(void 0,n)),N$=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pe.RefElement||t(n)&&e("ref",n)&&r(void 0,n)),HZ=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xc||t(n)&&e("annotation",n)&&r("array",n)),KZ=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zc||t(n)&&e("comment",n)&&r("string",n)),M$=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ni||t(n)&&e("parseResult",n)&&r("array",n)),Zs=t=>gs("object",t)||gs("array",t)||gs("boolean",t)||gs("number",t)||gs("string",t)||gs("null",t)||gs("member",t),fo=t=>or(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,GZ=(t,e)=>{if(t.length===0)return!0;const r=e.attributes.get("symbols");return Fr(r)?Cw(Ff(r.toValue()),t):!1},Ga=(t,e)=>t.length===0?!0:Cw(Ff(e.classes.toValue()),t),YZ=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:fo,includesClasses:Ga,includesSymbols:GZ,isAnnotationElement:HZ,isArrayElement:Fr,isBooleanElement:Ju,isCommentElement:KZ,isElement:or,isLinkElement:j$,isMemberElement:oi,isNullElement:Jw,isNumberElement:Ww,isObjectElement:kt,isParseResultElement:M$,isPrimitiveElement:Zs,isRefElement:N$,isStringElement:ct},Symbol.toStringTag,{value:"Module"}));class D$ extends pe.Namespace{constructor(){super(),this.register("annotation",Xc),this.register("comment",Zc),this.register("parseResult",ni)}}const F$=new D$,is=t=>{const e=new D$;return ri(t)&&e.use(t),e},q$=()=>({predicates:{...YZ},namespace:F$}),Uf=(t,e,r)=>{const n=t[e];if(n!=null){if(!r&&typeof n=="function")return n;const i=r?n.leave:n.enter;if(typeof i=="function")return i}else{const i=r?t.leave:t.enter;if(i!=null){if(typeof i=="function")return i;const s=i[e];if(typeof s=="function")return s}}return null},Rt={},Hu=t=>t?.type,B$=t=>typeof Hu(t)=="string",Hw=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Vf=(t,{visitFnGetter:e=Uf,nodeTypeGetter:r=Hu,breakSymbol:n=Rt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(t.length).fill(o);return{enter(l,c,p,h,d,g){let y=l,v=!1;const E={...g,replaceWith(b,_){g.replaceWith(b,_),y=b}};for(let b=0;b<t.length;b+=1)if(u[b]===o){const _=e(t[b],r(y),!1);if(typeof _=="function"){const w=_.call(t[b],y,c,p,h,d,E);if(typeof w?.then=="function")throw new Ai("Async visitor not supported in sync mode",{visitor:t[b],visitFn:_});if(w===s)u[b]=y;else if(w===n)u[b]=n;else{if(w===i)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},leave(l,c,p,h,d,g){let y=l;const v={...g,replaceWith(E,b){g.replaceWith(E,b),y=E}};for(let E=0;E<t.length;E+=1)if(u[E]===o){const b=e(t[E],r(y),!0);if(typeof b=="function"){const _=b.call(t[E],y,c,p,h,d,v);if(typeof _?.then=="function")throw new Ai("Async visitor not supported in sync mode",{visitor:t[E],visitFn:b});if(_===n)u[E]=n;else if(_!==void 0&&_!==s)return _}}else u[E]===y&&(u[E]=o)}}},XZ=(t,{visitFnGetter:e=Uf,nodeTypeGetter:r=Hu,breakSymbol:n=Rt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(t.length).fill(o);return{async enter(l,c,p,h,d,g){let y=l,v=!1;const E={...g,replaceWith(b,_){g.replaceWith(b,_),y=b}};for(let b=0;b<t.length;b+=1)if(u[b]===o){const _=e(t[b],r(y),!1);if(typeof _=="function"){const w=await _.call(t[b],y,c,p,h,d,E);if(w===s)u[b]=y;else if(w===n)u[b]=n;else{if(w===i)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},async leave(l,c,p,h,d,g){let y=l;const v={...g,replaceWith(E,b){g.replaceWith(E,b),y=E}};for(let E=0;E<t.length;E+=1)if(u[E]===o){const b=e(t[E],r(y),!0);if(typeof b=="function"){const _=await b.call(t[E],y,c,p,h,d,v);if(_===n)u[E]=n;else if(_!==void 0&&_!==s)return _}}else u[E]===y&&(u[E]=o)}}};Vf[Symbol.for("nodejs.util.promisify.custom")]=XZ;const Kw=(t,e,{keyMap:r=null,state:n={},breakSymbol:i=Rt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Uf,nodeTypeGetter:u=Hu,nodePredicate:l=B$,nodeCloneFn:c=Hw,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(t),v=[t],E=-1,b,_=[],w=t;const S=[],A=[];do{E+=1;const k=E===v.length;let D;const R=k&&_.length!==0;if(k){if(D=A.length===0?void 0:S.pop(),w=b,b=A.pop(),R)if(y){w=w.slice();let M=0;for(const[K,ee]of _){const G=K-M;ee===s?(w.splice(G,1),M+=1):w[G]=ee}}else{w=c(w);for(const[M,K]of _)w[M]=K}E=g.index,v=g.keys,_=g.edits,y=g.inArray,g=g.prev}else if(b!==s&&b!==void 0){if(D=y?E:v[E],w=b[D],w===s||w===void 0)continue;S.push(D)}let $;if(!Array.isArray(w)){var I;if(!l(w))throw new Ai(`Invalid AST Node: ${String(w)}`,{node:w});if(p&&A.includes(w)){typeof h=="function"&&h(w,D,b,S,A),S.pop();continue}const M=o(e,u(w),k);if(M){for(const[ee,G]of Object.entries(n))e[ee]=G;const K={replaceWith(ee,G){typeof G=="function"?G(ee,w,D,b,S,A):b&&(b[D]=ee),k||(w=ee)}};$=M.call(e,w,D,b,S,A,K)}if(typeof((I=$)===null||I===void 0?void 0:I.then)=="function")throw new Ai("Async visitor not supported in sync mode",{visitor:e,visitFn:M});if($===i)break;if($===a){if(!k){S.pop();continue}}else if($!==void 0&&(_.push([D,$]),!k))if(l($))w=$;else{S.pop();continue}}if($===void 0&&R&&_.push([D,w]),!k){var T;g={inArray:y,index:E,keys:v,edits:_,prev:g},y=Array.isArray(w),v=y?w:(T=d[u(w)])!==null&&T!==void 0?T:[],E=-1,_=[],b!==s&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return _.length!==0?_[_.length-1][1]:t};Kw[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:i=Rt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Uf,nodeTypeGetter:u=Hu,nodePredicate:l=B$,nodeCloneFn:c=Hw,detectCycles:p=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(t),v=[t],E=-1,b,_=[],w=t;const S=[],A=[];do{E+=1;const T=E===v.length;let k;const D=T&&_.length!==0;if(T){if(k=A.length===0?void 0:S.pop(),w=b,b=A.pop(),D)if(y){w=w.slice();let $=0;for(const[M,K]of _){const ee=M-$;K===s?(w.splice(ee,1),$+=1):w[ee]=K}}else{w=c(w);for(const[$,M]of _)w[$]=M}E=g.index,v=g.keys,_=g.edits,y=g.inArray,g=g.prev}else if(b!==s&&b!==void 0){if(k=y?E:v[E],w=b[k],w===s||w===void 0)continue;S.push(k)}let R;if(!Array.isArray(w)){if(!l(w))throw new Ai(`Invalid AST Node: ${String(w)}`,{node:w});if(p&&A.includes(w)){typeof h=="function"&&h(w,k,b,S,A),S.pop();continue}const $=o(e,u(w),T);if($){for(const[K,ee]of Object.entries(n))e[K]=ee;const M={replaceWith(K,ee){typeof ee=="function"?ee(K,w,k,b,S,A):b&&(b[k]=K),T||(w=K)}};R=await $.call(e,w,k,b,S,A,M)}if(R===i)break;if(R===a){if(!T){S.pop();continue}}else if(R!==void 0&&(_.push([k,R]),!T))if(l(R))w=R;else{S.pop();continue}}if(R===void 0&&D&&_.push([k,w]),!T){var I;g={inArray:y,index:E,keys:v,edits:_,prev:g},y=Array.isArray(w),v=y?w:(I=d[u(w)])!==null&&I!==void 0?I:[],E=-1,_=[],b!==s&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return _.length!==0?_[_.length-1][1]:t};class $$ extends Ai{value;constructor(e,r){super(e,r),typeof r<"u"&&(this.value=r.value)}}class ZZ extends $${}class QZ extends $${}const js=(t,e)=>{const r=Ha(t,e);return CX(n=>{if(ri(n)&&Yo("$ref",n)&&kX(pa,"$ref",n)){const i=Or(["$ref"],n),s=S$("#/",i);return Or(s.split("/"),r)}return ri(n)?js(n,r):n},t)},Gw=(t,e)=>(t.startPositionRow=e?.startPositionRow,t.startPositionColumn=e?.startPositionColumn,t.startIndex=e?.startIndex,t.endPositionRow=e?.endPositionRow,t.endPositionColumn=e?.endPositionColumn,t.endIndex=e?.endIndex,t),Ke=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof pe.KeyValuePair){const{key:i,value:s}=t,a=or(i)?Ke(i,n):i,o=or(s)?Ke(s,n):s,u=new pe.KeyValuePair(a,o);return r.set(t,u),u}if(t instanceof pe.ObjectSlice){const i=o=>Ke(o,n),s=[...t].map(i),a=new pe.ObjectSlice(s);return r.set(t,a),a}if(t instanceof pe.ArraySlice){const i=o=>Ke(o,n),s=[...t].map(i),a=new pe.ArraySlice(s);return r.set(t,a),a}if(or(t)){const i=Ar(t);if(r.set(t,i),t.content)if(or(t.content))i.content=Ke(t.content,n);else if(t.content instanceof pe.KeyValuePair)i.content=Ke(t.content,n);else if(Array.isArray(t.content)){const s=a=>Ke(a,n);i.content=t.content.map(s)}else i.content=t.content;else i.content=t.content;return i}throw new ZZ("Value provided to cloneDeep function couldn't be cloned",{value:t})};Ke.safe=t=>{try{return Ke(t)}catch{return t}};const L$=t=>{const{key:e,value:r}=t;return new pe.KeyValuePair(e,r)},eQ=t=>{const e=[...t];return new pe.ArraySlice(e)},tQ=t=>{const e=[...t];return new pe.ObjectSlice(e)},U$=t=>{const e=new t.constructor;if(e.element=t.element,fo(t)&&Gw(e,t),t.meta.length>0&&(e._meta=Ke(t.meta)),t.attributes.length>0&&(e._attributes=Ke(t.attributes)),or(t.content)){const r=t.content;e.content=U$(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof pe.KeyValuePair?e.content=L$(t.content):e.content=t.content;return e},Ar=t=>{if(t instanceof pe.KeyValuePair)return L$(t);if(t instanceof pe.ObjectSlice)return tQ(t);if(t instanceof pe.ArraySlice)return eQ(t);if(or(t))return U$(t);throw new QZ("Value provided to cloneShallow function couldn't be cloned",{value:t})};Ar.safe=t=>{try{return Ar(t)}catch{return t}};const po=t=>kt(t)?"ObjectElement":Fr(t)?"ArrayElement":oi(t)?"MemberElement":ct(t)?"StringElement":Ju(t)?"BooleanElement":Ww(t)?"NumberElement":Jw(t)?"NullElement":j$(t)?"LinkElement":N$(t)?"RefElement":void 0,V$=t=>or(t)?Ar(t):Hw(t),z$=qr(po,pa),Pi={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class W${result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Aw,returnOnTrue:r,returnOnFalse:n}={}){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 vr=(t,e,{keyMap:r=Pi,...n}={})=>Kw(t,e,{keyMap:r,nodeTypeGetter:po,nodePredicate:z$,nodeCloneFn:V$,...n});vr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=Pi,...n}={})=>Kw[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:po,nodePredicate:z$,nodeCloneFn:V$,...n});const J$={toolboxCreator:q$,visitorOptions:{nodeTypeGetter:po,exposeEdits:!0}},ki=(t,e,r={})=>{if(e.length===0)return t;const n=jf(J$,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=e.map(c=>c(a)),u=Vf(o.map(Gc({},"visitor")),{...s});o.forEach(ou(["pre"],[]));const l=vr(t,u,s);return o.forEach(ou(["post"],[])),l},rQ=async(t,e,r={})=>{if(e.length===0)return t;const n=jf(J$,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=e.map(h=>h(a)),u=Vf[Symbol.for("nodejs.util.promisify.custom")],l=vr[Symbol.for("nodejs.util.promisify.custom")],c=u(o.map(Gc({},"visitor")),{...s});await Promise.allSettled(o.map(ou(["pre"],[])));const p=await l(t,c,s);return await Promise.allSettled(o.map(ou(["post"],[]))),p};ki[Symbol.for("nodejs.util.promisify.custom")]=rQ;var QE={exports:{}},JM;function nQ(){return JM||(JM=1,(function(t){var e=(()=>{var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,u=(w,S,A)=>S in w?r(w,S,{enumerable:!0,configurable:!0,writable:!0,value:A}):w[S]=A,l=(w,S)=>{for(var A in S||(S={}))a.call(S,A)&&u(w,A,S[A]);if(s)for(var A of s(S))o.call(S,A)&&u(w,A,S[A]);return w},c=(w,S)=>{for(var A in S)r(w,A,{get:S[A],enumerable:!0})},p=(w,S,A,I)=>{if(S&&typeof S=="object"||typeof S=="function")for(let T of i(S))!a.call(w,T)&&T!==A&&r(w,T,{get:()=>S[T],enumerable:!(I=n(S,T))||I.enumerable});return w},h=w=>p(r({},"__esModule",{value:!0}),w),d=(w,S,A)=>u(w,typeof S!="symbol"?S+"":S,A),g={};c(g,{DEFAULT_OPTIONS:()=>E,DEFAULT_UUID_LENGTH:()=>v,default:()=>_});var y="5.3.2",v=6,E={dictionary:"alphanum",shuffle:!0,debug:!1,length:v,counter:0},b=class{constructor(S={}){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",(...R)=>{const $=[...R];if($[0]="[short-unique-id] ".concat(R[0]),this.debug===!0&&typeof console<"u"&&console!==null){console.log(...$);return}}),d(this,"_normalizeDictionary",(R,$)=>{let M;if(R&&Array.isArray(R)&&R.length>1)M=R;else{M=[],this.dictIndex=0;const K="_".concat(R,"_dict_ranges"),ee=this._dict_ranges[K];let G=0;for(const[,X]of Object.entries(ee)){const[te,ce]=X;G+=Math.abs(ce-te)}M=new Array(G);let Z=0;for(const[,X]of Object.entries(ee)){this.dictRange=X,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const te=this.lowerBound<=this.upperBound,ce=this.lowerBound,ie=this.upperBound;if(te)for(let ue=ce;ue<ie;ue++)M[Z++]=String.fromCharCode(ue),this.dictIndex=ue;else for(let ue=ce;ue>ie;ue--)M[Z++]=String.fromCharCode(ue),this.dictIndex=ue}M.length=Z}if($){const K=M.length;for(let ee=K-1;ee>0;ee--){const G=Math.floor(Math.random()*(ee+1));[M[ee],M[G]]=[M[G],M[ee]]}}return M}),d(this,"setDictionary",(R,$)=>{this.dict=this._normalizeDictionary(R,$),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,"seq",()=>this.sequentialUUID()),d(this,"sequentialUUID",()=>{const R=this.dictLength,$=this.dict;let M=this.counter;const K=[];do{const G=M%R;M=Math.trunc(M/R),K.push($[G])}while(M!==0);const ee=K.join("");return this.counter+=1,ee}),d(this,"rnd",(R=this.uuidLength||v)=>this.randomUUID(R)),d(this,"randomUUID",(R=this.uuidLength||v)=>{if(R===null||typeof R>"u"||R<1)throw new Error("Invalid UUID Length Provided");const $=new Array(R),M=this.dictLength,K=this.dict;for(let ee=0;ee<R;ee++){const G=Math.floor(Math.random()*M);$[ee]=K[G]}return $.join("")}),d(this,"fmt",(R,$)=>this.formattedUUID(R,$)),d(this,"formattedUUID",(R,$)=>{const M={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return R.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,ee=>{const G=ee.slice(0,2),Z=Number.parseInt(ee.slice(2),10);return G==="$s"?M[G]().padStart(Z,"0"):G==="$t"&&$?M[G](Z,$):M[G](Z)})}),d(this,"availableUUIDs",(R=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**R).toFixed(0))),d(this,"_collisionCache",new Map),d(this,"approxMaxBeforeCollision",(R=this.availableUUIDs(this.uuidLength))=>{const $=R,M=this._collisionCache.get($);if(M!==void 0)return M;const K=Number.parseFloat(Math.sqrt(Math.PI/2*R).toFixed(20));return this._collisionCache.set($,K),K}),d(this,"collisionProbability",(R=this.availableUUIDs(this.uuidLength),$=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(R)/this.availableUUIDs($)).toFixed(20))),d(this,"uniqueness",(R=this.availableUUIDs(this.uuidLength))=>{const $=Number.parseFloat((1-this.approxMaxBeforeCollision(R)/R).toFixed(20));return $>1?1:$<0?0:$}),d(this,"getVersion",()=>this.version),d(this,"stamp",(R,$)=>{const M=Math.floor(+($||new Date)/1e3).toString(16);if(typeof R=="number"&&R===0)return M;if(typeof R!="number"||R<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(`
68
+ `));const K=R-9,ee=Math.round(Math.random()*(K>15?15:K)),G=this.randomUUID(K);return"".concat(G.substring(0,ee)).concat(M).concat(G.substring(ee)).concat(ee.toString(16))}),d(this,"parseStamp",(R,$)=>{if($&&!/t0|t[1-9]\d{1,}/.test($))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const M=$?$.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,ee=>{const G={$r:te=>[...Array(te)].map(()=>"r").join(""),$s:te=>[...Array(te)].map(()=>"s").join(""),$t:te=>[...Array(te)].map(()=>"t").join("")},Z=ee.slice(0,2),X=Number.parseInt(ee.slice(2),10);return G[Z](X)}).replace(/^(.*?)(t{8,})(.*)$/g,(ee,G,Z)=>R.substring(G.length,G.length+Z.length)):R;if(M.length===8)return new Date(Number.parseInt(M,16)*1e3);if(M.length<10)throw new Error("Stamp length invalid");const K=Number.parseInt(M.substring(M.length-1),16);return new Date(Number.parseInt(M.substring(K,K+8),16)*1e3)}),d(this,"setCounter",R=>{this.counter=R}),d(this,"validate",(R,$)=>{const M=$?this._normalizeDictionary($):this.dict;return R.split("").every(K=>M.includes(K))});const A=l(l({},E),S);this.counter=0,this.debug=!1,this.dict=[],this.version=y;const{dictionary:I,shuffle:T,length:k,counter:D}=A;this.uuidLength=k,this.setDictionary(I,T),this.setCounter(D),this.debug=A.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(b,"default",b);var _=b;return h(g)})();t.exports=e.default,typeof window<"u"&&(e=e.default)})(QE)),QE.exports}var iQ=nQ();const sQ=ot(iQ);class aQ extends Ai{value;constructor(e,r){super(e,r),typeof r<"u"&&(this.value=r.value)}}class Yw{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new sQ({length:e}),this.identityMap=new WeakMap}identify(e){if(!or(e))throw new aQ("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&ct(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 pe.StringElement(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 Yw;class oQ extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new RE("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new RE("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new RE("latest method in MediaTypes class is not yet implemented.")}}const uQ=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return or(t)&&(t.meta.length>0&&(n.meta=Ke(t.meta)),t.attributes.length>0&&(n.attributes=Ke(t.attributes))),ki(n,r,{toolboxCreator:q$,visitorOptions:{nodeTypeGetter:po}})},ui=t=>(e,r={})=>uQ(e,{...r,Type:t});pe.ObjectElement.refract=ui(pe.ObjectElement);pe.ArrayElement.refract=ui(pe.ArrayElement);pe.StringElement.refract=ui(pe.StringElement);pe.BooleanElement.refract=ui(pe.BooleanElement);pe.NullElement.refract=ui(pe.NullElement);pe.NumberElement.refract=ui(pe.NumberElement);pe.LinkElement.refract=ui(pe.LinkElement);pe.RefElement.refract=ui(pe.RefElement);Xc.refract=ui(Xc);Zc.refract=ui(Zc);ni.refract=ui(ni);const lQ=(t,e)=>{const r=new W$({predicate:t});return vr(e,r),new pe.ArraySlice(r.result)},H$=(t,e)=>{const r=new W$({predicate:t,returnOnTrue:Rt});return vr(e,r),l$(void 0,[0],r.result)},Cc=(t,e=new WeakMap)=>(oi(t)?(e.set(t.key,t),Cc(t.key,e),e.set(t.value,t),Cc(t.value,e)):t.children.forEach(r=>{e.set(r,t),Cc(r,e)}),e),cQ=(t,e,r)=>{const n=r.get(t);oi(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)))},fQ=(t,e,r)=>{const n=r.get(t);kt(n)&&(n.content=n.map((i,s,a)=>a===t?(r.delete(t),r.set(e,n),e):a))},pQ=(t,e,r)=>{const n=r.get(t);Fr(n)&&(n.content=n.map(i=>i===t?(r.delete(t),r.set(e,n),e):i))};class dQ{element;edges;constructor({element:e}){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:Cc(this.element);const i=this.edges.get(e);if(!ks(i))return kt(i)?fQ(e,r,this.edges):Fr(i)?pQ(e,r,this.edges):oi(i)&&cQ(e,r,this.edges),this.element}}const hQ=(t,e,r)=>new dQ({element:r}).transclude(t,e),K$=(t,e=F$)=>{if(pa(t))try{return e.fromRefract(JSON.parse(t))}catch{}return ri(t)&&Yo("element",t)?e.fromRefract(t):e.toElement(t)},G$=t=>typeof t?.type=="string"?t.type:po(t),Y$={EphemeralObject:["content"],EphemeralArray:["content"],...Pi},X$=(t,e,{keyMap:r=Y$,...n}={})=>vr(t,e,{keyMap:r,nodeTypeGetter:G$,nodePredicate:rs,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});X$[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=Y$,...r}={})=>vr[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:G$,nodePredicate:rs,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class mQ{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class gQ{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let yQ=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new gQ(e.content);return this.references.set(e,r),r}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const r=new mQ(e.content);return this.references.set(e,r),r}};EphemeralArray={leave:e=>e.toArray()};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 i=r[3];return((n=i[i.length-1])===null||n===void 0?void 0:n.type)==="EphemeralObject"?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return ct(e.href)?e.href.toValue():""}};const Re=t=>or(t)?ct(t)||Ww(t)||Ju(t)||Jw(t)?t.toValue():X$(t,new yQ):t,Qc=t=>{const e=t.meta.length>0?Ke(t.meta):void 0,r=t.attributes.length>0?Ke(t.attributes):void 0;return new t.constructor(void 0,e,r)},ef=(t,e)=>e.clone&&e.isMergeableElement(t)?Fn(Qc(t),t,e):t,vQ=(t,e)=>{if(typeof e.customMerge!="function")return Fn;const r=e.customMerge(t,e);return typeof r=="function"?r:Fn},bQ=t=>typeof t.customMetaMerge!="function"?e=>Ke(e):t.customMetaMerge,EQ=t=>typeof t.customAttributesMerge!="function"?e=>Ke(e):t.customAttributesMerge,SQ=(t,e,r)=>t.concat(e)["fantasy-land/map"](n=>ef(n,r)),_Q=(t,e,r)=>{const n=kt(t)?Qc(t):Qc(e);return kt(t)&&t.forEach((i,s,a)=>{const o=Ar(a);o.value=ef(i,r),n.content.push(o)}),e.forEach((i,s,a)=>{const o=Re(s);let u;if(kt(t)&&t.hasKey(o)&&r.isMergeableElement(i)){const l=t.get(o);u=Ar(a),u.value=vQ(s,r)(l,i,r)}else u=Ar(a),u.value=ef(i,r);n.remove(o),n.content.push(u)}),n},ac={clone:!0,isMergeableElement:t=>kt(t)||Fr(t),arrayElementMerge:SQ,objectElementMerge:_Q,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Fn=(t,e,r)=>{var n,i,s;const a={...ac,...r};a.isMergeableElement=(n=a.isMergeableElement)!==null&&n!==void 0?n:ac.isMergeableElement,a.arrayElementMerge=(i=a.arrayElementMerge)!==null&&i!==void 0?i:ac.arrayElementMerge,a.objectElementMerge=(s=a.objectElementMerge)!==null&&s!==void 0?s:ac.objectElementMerge;const o=Fr(e),u=Fr(t);if(!(o===u))return ef(e,a);const c=o&&typeof a.arrayElementMerge=="function"?a.arrayElementMerge(t,e,a):a.objectElementMerge(t,e,a);return c.meta=bQ(a)(t.meta,e.meta),c.attributes=EQ(a)(t.attributes,e.attributes),c};Fn.all=(t,e)=>{if(!Array.isArray(t))throw new TypeError("First argument of deepmerge should be an array.");return t.length===0?new pe.ObjectElement:t.reduce((r,n)=>Fn(r,n,e),Qc(t[0]))};class Xw extends nr{}class Z$ extends Xw{}const wQ=async(t,e)=>{let r=t,n=!1;if(!M$(t)){const a=Ar(t);a.classes.push("result"),r=new ni([a]),n=!0}const i=new uu({uri:e.resolve.baseURI,parseResult:r,mediaType:e.parse.mediaType}),s=await Lw("canDereference",[i,e],e.dereference.strategies);if(Wu(s))throw new Z$(i.uri);try{const{result:a}=await Uw("dereference",[i,e],s);return n?a.get(0):a}catch(a){throw new Xw(`Error while dereferencing file "${i.uri}"`,{cause:a})}};let Ku=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:i=[],mediaTypes:s=[]}){this.name=e,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=i,this.mediaTypes=s}};class xQ{name;constructor({name:e}){this.name=e}}class AQ extends xQ{timeout;redirects;withCredentials;constructor(e){const{name:r="http-resolver",timeout:n=5e3,redirects:i=5,withCredentials:s=!1}=e??{};super({name:r}),this.timeout=n,this.redirects=i,this.withCredentials=s}canRead(e){return $w(e.uri)}}class OQ{name;constructor({name:e}){this.name=e}}class CQ{name;constructor({name:e}){this.name=e}}class eS 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(or(n)&&e(n))return n}}let Hi=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:r=0,refSet:n,value:i}){this.uri=e,this.value=i,this.depth=r,this.refSet=n,this.errors=[]}};class Q$ extends nr{}class RQ extends Q${}class IQ extends nr{}class Zw extends IQ{}class TQ extends Q${constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}}class Ua extends Xw{}class PQ extends Vw{}class Yi extends S1{}const kQ=async(t,e={})=>{const r=O$(A$,e);return wQ(t,r)},{fetch:jQ,Response:NQ,Headers:MQ,Request:DQ,FormData:FQ,File:qQ,Blob:BQ}=globalThis;typeof globalThis.fetch>"u"&&(globalThis.fetch=jQ);typeof globalThis.Headers>"u"&&(globalThis.Headers=MQ);typeof globalThis.Request>"u"&&(globalThis.Request=DQ);typeof globalThis.Response>"u"&&(globalThis.Response=NQ);typeof globalThis.FormData>"u"&&(globalThis.FormData=FQ);typeof globalThis.File>"u"&&(globalThis.File=qQ);typeof globalThis.Blob>"u"&&(globalThis.Blob=BQ);function HM(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 $Q(t){if(Array.isArray(t))return t}function LQ(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function UQ(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 VQ(t,e,r){return e&&UQ(t.prototype,e),t}function eL(t,e){return e!=null&&typeof Symbol<"u"&&e[Symbol.hasInstance]?!!e[Symbol.hasInstance](t):t instanceof e}function zQ(t,e){var r=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(r!=null){var n=[],i=!0,s=!1,a,o;try{for(r=r.call(t);!(i=(a=r.next()).done)&&(n.push(a.value),!(e&&n.length===e));i=!0);}catch(u){s=!0,o=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}return n}}function WQ(){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 JQ(t,e){return $Q(t)||zQ(t,e)||HQ(t,e)||WQ()}function Va(t){"@swc/helpers - typeof";return t&&typeof Symbol<"u"&&t.constructor===Symbol?"symbol":typeof t}function HQ(t,e){if(t){if(typeof t=="string")return HM(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 HM(t,e)}}var tL=function(t){throw TypeError(t)},rL=function(t,e,r){return e.has(t)||tL("Cannot "+r)},Gr=function(t,e,r){return rL(t,e,"read from private field"),r?r.call(t):e.get(t)},KM=function(t,e,r){return e.has(t)?tL("Cannot add the same private member more than once"):eL(e,WeakSet)?e.add(t):e.set(t,r)},tS=function(t,e,r,n){return rL(t,e,"write to private field"),e.set(t,r),r},ho=function(t){return Object.prototype.toString.call(t)},nL=function(t){return ArrayBuffer.isView(t)&&!eL(t,DataView)},KQ=function(t){return ho(t)==="[object Date]"},GQ=function(t){return ho(t)==="[object RegExp]"},YQ=function(t){return ho(t)==="[object Error]"},XQ=function(t){return ho(t)==="[object Boolean]"},ZQ=function(t){return ho(t)==="[object Number]"},QQ=function(t){return ho(t)==="[object String]"},iL=Array.isArray,eee=Object.getOwnPropertyDescriptor,tee=Object.prototype.propertyIsEnumerable,ree=Object.getOwnPropertySymbols,Rc=Object.prototype.hasOwnProperty;function Qw(t){for(var e=Object.keys(t),r=ree(t),n=0;n<r.length;n++)tee.call(t,r[n])&&e.push(r[n]);return e}function nee(t,e){var r;return!(!((r=eee(t,e))===null||r===void 0)&&r.writable)}function sL(t,e){if((typeof t>"u"?"undefined":Va(t))==="object"&&t!==null){var r;if(iL(t))r=[];else if(KQ(t))r=new Date(t.getTime?t.getTime():t);else if(GQ(t))r=new RegExp(t);else if(YQ(t))r={message:t.message};else if(XQ(t)||ZQ(t)||QQ(t))r=Object(t);else{if(nL(t))return t.slice();r=Object.create(Object.getPrototypeOf(t))}var n=e.includeSymbols?Qw:Object.keys,i=!0,s=!1,a=void 0;try{for(var o=n(t)[Symbol.iterator](),u;!(i=(u=o.next()).done);i=!0){var l=u.value;r[l]=t[l]}}catch(c){s=!0,a=c}finally{try{!i&&o.return!=null&&o.return()}finally{if(s)throw a}}return r}return t}var aL={includeSymbols:!1,immutable:!1};function GM(t,e){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:aL,n=[],i=[],s=!0,a=r.includeSymbols?Qw:Object.keys,o=!!r.immutable;return(function u(l){var c=o?sL(l,r):l,p={},h=!0,d={node:c,node_:l,path:[].concat(n),parent:i[i.length-1],parents:i,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($){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.isRoot||(d.parent.node[d.key]=$),d.node=$,M&&(h=!1)},delete:function($){delete d.parent.node[d.key],$&&(h=!1)},remove:function($){iL(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],$&&(h=!1)},keys:null,before:function($){p.before=$},after:function($){p.after=$},pre:function($){p.pre=$},post:function($){p.post=$},stop:function(){s=!1},block:function(){h=!1}};if(!s)return d;function g(){if(Va(d.node)==="object"&&d.node!==null){(!d.keys||d.node_!==d.node)&&(d.keys=a(d.node)),d.isLeaf=d.keys.length===0;for(var R=0;R<i.length;R++)if(i[R].node_===l){d.circular=i[R];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}g();var y=e.call(d,d.node);if(y!==void 0&&d.update&&d.update(y),p.before&&p.before.call(d,d.node),!h)return d;if(Va(d.node)==="object"&&d.node!==null&&!d.circular){i.push(d),g();var v,E=!0,b=!1,_=void 0;try{for(var w=Object.entries((v=d.keys)!==null&&v!==void 0?v:[])[Symbol.iterator](),S;!(E=(S=w.next()).done);E=!0){var A=JQ(S.value,2),I=A[0],T=A[1],k;n.push(T),p.pre&&p.pre.call(d,d.node[T],T);var D=u(d.node[T]);o&&Rc.call(d.node,T)&&!nee(d.node,T)&&(d.node[T]=D.node),D.isLast=!((k=d.keys)===null||k===void 0)&&k.length?+I===d.keys.length-1:!1,D.isFirst=+I==0,p.post&&p.post.call(d,D),n.pop()}}catch(R){b=!0,_=R}finally{try{!E&&w.return!=null&&w.return()}finally{if(b)throw _}}i.pop()}return p.after&&p.after.call(d,d.node),d})(t).node}var an,ys,ji=(function(){function t(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:aL;LQ(this,t),KM(this,an),KM(this,ys),tS(this,an,e),tS(this,ys,r)}return VQ(t,[{key:"get",value:function(r){for(var n=Gr(this,an),i=0;n&&i<r.length;i++){var s=r[i];if(!Rc.call(n,s)||!Gr(this,ys).includeSymbols&&(typeof s>"u"?"undefined":Va(s))==="symbol")return;n=n[s]}return n}},{key:"has",value:function(r){for(var n=Gr(this,an),i=0;n&&i<r.length;i++){var s=r[i];if(!Rc.call(n,s)||!Gr(this,ys).includeSymbols&&(typeof s>"u"?"undefined":Va(s))==="symbol")return!1;n=n[s]}return!0}},{key:"set",value:function(r,n){var i=Gr(this,an),s=0;for(s=0;s<r.length-1;s++){var a=r[s];Rc.call(i,a)||(i[a]={}),i=i[a]}return i[r[s]]=n,n}},{key:"map",value:function(r){return GM(Gr(this,an),r,{immutable:!0,includeSymbols:!!Gr(this,ys).includeSymbols})}},{key:"forEach",value:function(r){return tS(this,an,GM(Gr(this,an),r,Gr(this,ys))),Gr(this,an)}},{key:"reduce",value:function(r,n){var i=arguments.length===1,s=i?Gr(this,an):n;return this.forEach(function(a){(!this.isRoot||!i)&&(s=r.call(this,s,a))}),s}},{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=[],i=Gr(this,ys);return nL(Gr(this,an))?Gr(this,an).slice():(function s(a){for(var o=0;o<r.length;o++)if(r[o]===a)return n[o];if((typeof a>"u"?"undefined":Va(a))==="object"&&a!==null){var u=sL(a,i);r.push(a),n.push(u);var l=i.includeSymbols?Qw:Object.keys,c=!0,p=!1,h=void 0;try{for(var d=l(a)[Symbol.iterator](),g;!(c=(g=d.next()).done);c=!0){var y=g.value;u[y]=s(a[y])}}catch(v){p=!0,h=v}finally{try{!c&&d.return!=null&&d.return()}finally{if(p)throw h}}return r.pop(),n.pop(),u}return a})(Gr(this,an))}}]),t})();an=new WeakMap;ys=new WeakMap;var Ni=function(t,e){return new ji(t,e)};Ni.get=function(t,e,r){return new ji(t,r).get(e)};Ni.set=function(t,e,r,n){return new ji(t,n).set(e,r)};Ni.has=function(t,e,r){return new ji(t,r).has(e)};Ni.map=function(t,e,r){return new ji(t,r).map(e)};Ni.forEach=function(t,e,r){return new ji(t,r).forEach(e)};Ni.reduce=function(t,e,r,n){return new ji(t,n).reduce(e,r)};Ni.paths=function(t,e){return new ji(t,e).paths()};Ni.nodes=function(t,e){return new ji(t,e).nodes()};Ni.clone=function(t,e){return new ji(t,e).clone()};var iee=Ni;const oL="application/json, application/yaml",tf="https://swagger.io",see=Object.freeze({url:"/"}),uL=3e3,aee=["properties"],oee=["properties"],uee=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],lee=["schema/example","items/example"];function lL(t){const e=t[t.length-1],r=t[t.length-2],n=t.join("/");return aee.indexOf(e)>-1&&oee.indexOf(r)===-1||uee.indexOf(n)>-1||lee.some(i=>n.indexOf(i)>-1)}function cee(t,e,{specmap:r,getBaseUrlForNodePath:n=s=>r.getContext([...e,...s]).baseDoc,targetKeys:i=["$ref","$$ref"]}={}){const s=[];return iee(t).forEach(function(){if(i.includes(this.key)&&typeof this.node=="string"){const o=this.path,u=e.concat(this.path),l=_1(this.node,n(o));s.push(r.replace(u,l))}}),s}function _1(t,e){const[r,n]=t.split("#"),i=e??"",s=r??"";let a;if($w(i))a=Nr(i,s);else{const o=Nr(tf,i),l=Nr(o,s).replace(tf,"");a=s.startsWith("/")?l:l.substring(1)}return n?`${a}#${n}`:a}const fee=/^([a-z]+:\/\/|\/\/)/i;class Ya extends Ai{}const Ji={},YM=new WeakMap,pee=[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"],dee=t=>pee.some(e=>e(t)),hee={key:"$ref",plugin:(t,e,r,n)=>{const i=n.getInstance(),s=r.slice(0,-1);if(lL(s)||dee(s))return;const{baseDoc:a}=n.getContext(r);if(typeof t!="string")return new Ya("$ref: must be a string (JSON-Ref)",{$ref:t,baseDoc:a,fullPath:r});const o=fL(t),u=o[0],l=o[1]||"";let c;try{c=a||u?cL(u,a):null}catch(y){return w1(y,{pointer:l,$ref:t,basePath:c,fullPath:r})}let p,h;if(bee(l,c,s,n)&&!i.useCircularStructures){const y=_1(t,c);return t===y?null:qt.replace(r,y)}if(c==null?(h=tx(l),p=n.get(h),typeof p>"u"&&(p=new Ya(`Could not resolve reference: ${t}`,{pointer:l,$ref:t,baseDoc:a,fullPath:r}))):(p=pL(c,l),p.__value!=null?p=p.__value:p=p.catch(y=>{throw w1(y,{pointer:l,$ref:t,baseDoc:a,fullPath:r})})),p instanceof Error)return[qt.remove(r),p];const d=_1(t,c),g=qt.replace(s,p,{$$ref:d});if(c&&c!==a)return[g,qt.context(s,{baseDoc:c})];try{if(!Eee(n.state,g)||i.useCircularStructures)return g}catch{return null}}},ex=Object.assign(hee,{docCache:Ji,absoluteify:cL,clearCache:mee,JSONRefError:Ya,wrapError:w1,getDoc:dL,split:fL,extractFromDoc:pL,fetchJSON:gee,extract:x1,jsonPointerToArray:tx,unescapeJsonPointerToken:hL});function cL(t,e){if(!fee.test(t)){if(!e)throw new Ya(`Tried to resolve a relative URL, without having a basePath. path: '${t}' basePath: '${e}'`);return Nr(e,t)}return t}function w1(t,e){let r;return t&&t.response&&t.response.body?r=`${t.response.body.code} ${t.response.body.message}`:r=t.message,new Ya(`Could not resolve reference: ${r}`,{...e,cause:t})}function fL(t){return(t+"").split("#")}function pL(t,e){const r=Ji[t];if(r&&!qt.isPromise(r))try{const n=x1(e,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return dL(t).then(n=>x1(e,n))}function mee(t){typeof t<"u"?delete Ji[t]:Object.keys(Ji).forEach(e=>{delete Ji[e]})}function dL(t){const e=Ji[t];return e?qt.isPromise(e)?e:Promise.resolve(e):(Ji[t]=ex.fetchJSON(t).then(r=>(Ji[t]=r,r)),Ji[t])}function gee(t){return fetch(t,{headers:{Accept:oL},loadSpec:!0}).then(e=>e.text()).then(e=>ea.load(e))}function x1(t,e){const r=tx(t);if(r.length<1)return e;const n=qt.getIn(e,r);if(typeof n>"u")throw new Ya(`Could not resolve pointer: ${t} does not exist in document`,{pointer:t});return n}function tx(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(hL)}function hL(t){return typeof t!="string"?t:new URLSearchParams(`=${t.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function mL(t){return new URLSearchParams([["",t.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function yee(t){return t.length===0?"":`/${t.map(mL).join("/")}`}const vee=t=>!t||t==="/"||t==="#";function rS(t,e){if(vee(e))return!0;const r=t.charAt(e.length),n=e.slice(-1);return t.indexOf(e)===0&&(!r||r==="/"||r==="#")&&n!=="#"}function bee(t,e,r,n){let i=YM.get(n);i||(i={},YM.set(n,i));const s=yee(r),a=`${e||"<specmap-base>"}#${t}`,o=s.replace(/allOf\/\d+\/?/g,""),u=n.contextTree.get([]).baseDoc;if(e===u&&rS(o,t))return!0;let l="";if(r.some(p=>(l=`${l}/${mL(p)}`,i[l]&&i[l].some(h=>rS(h,a)||rS(a,h)))))return!0;i[o]=(i[o]||[]).concat(a)}function Eee(t,e){const r=[t];return e.path.reduce((i,s)=>(r.push(i[s]),i[s]),t),n(e.value);function n(i){return qt.isObject(i)&&(r.indexOf(i)>=0||Object.keys(i).some(s=>n(i[s])))}}const See={key:"allOf",plugin:(t,e,r,n,i)=>{if(i.meta&&i.meta.$$ref)return;const s=r.slice(0,-1);if(lL(s))return;if(!Array.isArray(t)){const l=new TypeError("allOf must be an array");return l.fullPath=r,l}let a=!1,o=i.value;if(s.forEach(l=>{o&&(o=o[l])}),o={...o},Object.keys(o).length===0)return;delete o.allOf;const u=[];return u.push(n.replace(s,{})),t.forEach((l,c)=>{if(!n.isObject(l)){if(a)return null;a=!0;const d=new TypeError("Elements in allOf must be objects");return d.fullPath=r,u.push(d)}u.push(n.mergeDeep(s,l));const p=r.slice(0,-1),h=cee(l,p,{getBaseUrlForNodePath:d=>n.getContext([...r,c,...d]).baseDoc,specmap:n});u.push(...h)}),o.example&&u.push(n.remove([].concat(s,"example"))),u.push(n.mergeDeep(s,o)),o.$$ref||u.push(n.remove([].concat(s,"$$ref"))),u}},_ee={key:"parameters",plugin:(t,e,r,n)=>{if(Array.isArray(t)&&t.length){const i=Object.assign([],t),s=r.slice(0,-1),a={...qt.getIn(n.spec,s)};for(let o=0;o<t.length;o+=1){const u=t[o];try{i[o].default=n.parameterMacro(a,u)}catch(l){const c=new Error(l);return c.fullPath=r,c}}return qt.replace(r,i)}return qt.replace(r,t)}},wee={key:"properties",plugin:(t,e,r,n)=>{const i={...t};for(const a in t)try{i[a].default=n.modelPropertyMacro(i[a])}catch(o){const u=new Error(o);return u.fullPath=r,u}return qt.replace(r,i)}};class xee{constructor(e){this.root=nS(e||{})}set(e,r){const n=this.getParent(e,!0);if(!n){rf(this.root,r,null);return}const i=e[e.length-1],{children:s}=n;if(s[i]){rf(s[i],r,n);return}s[i]=nS(r,n)}get(e){if(e=e||[],e.length<1)return this.root.value;let r=this.root,n,i;for(let s=0;s<e.length&&(i=e[s],n=r.children,!!n[i]);s+=1)r=n[i];return r&&r.protoValue}getParent(e,r){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce((n,i)=>{if(!n)return n;const{children:s}=n;return!s[i]&&r&&(s[i]=nS(null,n)),s[i]},this.root)}}function nS(t,e){return rf({children:{}},t,e)}function rf(t,e,r){return t.value=e||{},t.protoValue=r?{...r.protoValue,...t.value}:t.value,Object.keys(t.children).forEach(n=>{const i=t.children[n];t.children[n]=rf(i,i.value,t)}),t}const XM=100,ZM=()=>{};class Aee{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 xee,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),qt,{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(qt.isFunction),this.patches.push(qt.add([],this.spec)),this.patches.push(qt.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 i=null,s;return e[this.pluginProp]?(i=e,s=e[this.pluginProp]):qt.isFunction(e)?s=e:qt.isObject(e)&&(s=a(e)),Object.assign(s.bind(i),{pluginName:e.name||r,isGenerator:qt.isGenerator(s)});function a(o){const u=(l,c)=>Array.isArray(l)?l.every((p,h)=>p===c[h]):!0;return function*(c,p){const h={};for(const[g,y]of c.filter(qt.isAdditiveMutation).entries())if(g<uL)yield*d(y.value,y.path,y);else return;function*d(g,y,v){if(!qt.isObject(g))o.key===y[y.length-1]&&(yield o.plugin(g,o.key,y,p));else{const E=y.length-1,b=y[E],_=y.indexOf("properties"),w=b==="properties"&&E===_,S=p.allowMetaPatches&&h[g.$$ref];for(const A of Object.keys(g)){const I=g[A],T=y.concat(A),k=qt.isObject(I),D=g.$$ref;if(S||k&&(p.allowMetaPatches&&D&&u(n,T)&&(h[D]=!0),yield*d(I,T,v)),!w&&A===o.key){const R=u(n,y);(!n||R)&&(yield o.plugin(I,A,T,p,v))}}}}}}}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){qt.normalizeArray(e).forEach(r=>{if(r instanceof Error){this.errors.push(r);return}try{if(!qt.isObject(r)){this.debug("updatePatches","Got a non-object patch",r);return}if(this.showDebug&&this.allPatches.push(r),qt.isPromise(r.value)){this.promisedPatches.push(r),this.promisedPatchThen(r);return}if(qt.isContextPatch(r)){this.setContext(r.path,r.value);return}qt.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=qt.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 qt.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 s=this.nextPromisedPatch();if(s)return s.then(()=>this.dispatch()).catch(()=>this.dispatch());const a={spec:this.state,errors:this.errors};return this.showDebug&&(a.patches=this.allPatches),Promise.resolve(a)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(r,(e.pluginCount.get(r)||0)+1),e.pluginCount[r]>XM)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error(`We've reached a hard limit of ${XM} plugin runs`))});if(r!==this.currentPlugin&&this.promisedPatches.length){const s=this.promisedPatches.map(a=>a.value);return Promise.all(s.map(a=>a.then(ZM,ZM))).then(()=>this.dispatch())}return n();function n(){e.currentPlugin=r;const s=e.getCurrentMutations(),a=e.mutations.length-1;try{if(r.isGenerator)for(const o of r(s,e.getLib()))i(o);else{const o=r(s,e.getLib());i(o)}}catch(o){console.error(o),i([Object.assign(Object.create(o),{plugin:r})])}finally{e.updatePluginHistory(r,{mutationIndex:a})}return e.dispatch()}function i(s){s&&(s=qt.fullyNormalizeArray(s),e.updatePatches(s,r))}}}function Oee(t){return new Aee(t).dispatch()}const Ca={refs:ex,allOf:See,parameters:_ee,properties:wee};function gL(t,e={}){const{requestInterceptor:r,responseInterceptor:n}=e,i=t.withCredentials?"include":"same-origin";return s=>t({url:s,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:oL},credentials:i}).then(a=>a.body)}function rx(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 yL(t,e){return Array.isArray(t)&&t.some(r=>rx(r,e))}class A1 extends File{constructor(e,r="",n={}){super([e],r,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const Cee=t=>":/?#[]@!$&'()*+,;=".indexOf(t)>-1,Ree=t=>/^[a-z0-9\-._~]+$/i.test(t);function vL(t,e="reserved"){return[...t].map(r=>{if(Ree(r)||Cee(r)&&e==="unsafe")return r;const n=new TextEncoder;return Array.from(n.encode(r)).map(s=>`0${s.toString(16).toUpperCase()}`.slice(-2)).map(s=>`%${s}`).join("")}).join("")}function nx(t){const{value:e}=t;return Array.isArray(e)?Iee(t):typeof e=="object"?Tee(t):Pee(t)}function Mr(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?vL(t,e):t??""}function Iee({key:t,value:e,style:r,explode:n,escape:i}){if(r==="simple")return e.map(s=>Mr(s,i)).join(",");if(r==="label")return`.${e.map(s=>Mr(s,i)).join(".")}`;if(r==="matrix")return e.map(s=>Mr(s,i)).reduce((s,a)=>!s||n?`${s||""};${t}=${a}`:`${s},${a}`,"");if(r==="form"){const s=n?`&${t}=`:",";return e.map(a=>Mr(a,i)).join(s)}if(r==="spaceDelimited"){const s=n?`${t}=`:"";return e.map(a=>Mr(a,i)).join(` ${s}`)}if(r==="pipeDelimited"){const s=n?`${t}=`:"";return e.map(a=>Mr(a,i)).join(`|${s}`)}}function Tee({key:t,value:e,style:r,explode:n,escape:i}){const s=Object.keys(e);if(r==="simple")return s.reduce((a,o)=>{const u=Mr(e[o],i),l=n?"=":",";return`${a?`${a},`:""}${o}${l}${u}`},"");if(r==="label")return s.reduce((a,o)=>{const u=Mr(e[o],i),l=n?"=":".";return`${a?`${a}.`:"."}${o}${l}${u}`},"");if(r==="matrix"&&n)return s.reduce((a,o)=>{const u=Mr(e[o],i);return`${a?`${a};`:";"}${o}=${u}`},"");if(r==="matrix")return s.reduce((a,o)=>{const u=Mr(e[o],i);return`${a?`${a},`:`;${t}=`}${o},${u}`},"");if(r==="form")return s.reduce((a,o)=>{const u=Mr(e[o],i);return`${a?`${a}${n?"&":","}`:""}${o}${n?"=":","}${u}`},"")}function Pee({key:t,value:e,style:r,escape:n}){if(r==="simple")return Mr(e,n);if(r==="label")return`.${Mr(e,n)}`;if(r==="matrix")return`;${t}=${Mr(e,n)}`;if(r==="form"||r==="deepObject")return Mr(e,n)}const kee={form:",",spaceDelimited:"%20",pipeDelimited:"|"},jee={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function bL(t,e,r=!1){const{collectionFormat:n,allowEmptyValue:i,serializationOption:s,encoding:a}=e,o=typeof e=="object"&&!Array.isArray(e)?e.value:e,u=r?c=>c.toString():c=>encodeURIComponent(c),l=u(t);if(typeof o>"u"&&i)return[[l,""]];if(rx(o)||yL(o))return[[l,o]];if(s)return QM(t,o,r,s);if(a){if([typeof a.style,typeof a.explode,typeof a.allowReserved].some(c=>c!=="undefined")){const{style:c,explode:p,allowReserved:h}=a;return QM(t,o,r,{style:c,explode:p,allowReserved:h})}if(typeof a.contentType=="string"){if(a.contentType.startsWith("application/json")){const h=typeof o=="string"?o:JSON.stringify(o),d=u(h),g=new A1(d,"blob",{type:a.contentType});return[[l,g]]}const c=u(String(o)),p=new A1(c,"blob",{type:a.contentType});return[[l,p]]}return typeof o!="object"?[[l,u(o)]]:Array.isArray(o)&&o.every(c=>typeof c!="object")?[[l,o.map(u).join(",")]]:[[l,u(JSON.stringify(o))]]}return typeof o!="object"?[[l,u(o)]]:Array.isArray(o)?n==="multi"?[[l,o.map(u)]]:[[l,o.map(u).join(jee[n||"csv"])]]:[[l,""]]}function QM(t,e,r,n){const i=n.style||"form",s=typeof n.explode>"u"?i==="form":n.explode,a=r?!1:n&&n.allowReserved?"unsafe":"reserved",o=l=>Mr(l,a),u=r?l=>l:l=>o(l);return typeof e!="object"?[[u(t),o(e)]]:Array.isArray(e)?s?[[u(t),e.map(o)]]:[[u(t),e.map(o).join(kee[i])]]:i==="deepObject"?Object.keys(e).map(l=>[u(`${t}[${l}]`),o(e[l])]):s?Object.keys(e).map(l=>[u(l),o(e[l])]):[[u(t),Object.keys(e).map(l=>[`${u(l)},${o(e[l])}`]).join(",")]]}function Nee(t){return Object.entries(t).reduce((e,[r,n])=>{for(const[i,s]of bL(r,n,!0))if(Array.isArray(s))for(const a of s)if(ArrayBuffer.isView(a)){const o=new Blob([a]);e.append(i,o)}else e.append(i,a);else if(ArrayBuffer.isView(s)){const a=new Blob([s]);e.append(i,a)}else e.append(i,s);return e},new FormData)}const Mee=(t,{encode:e=!0}={})=>{const r=(s,a,o)=>(Array.isArray(o)?o.reduce((u,l)=>r(s,a,l),s):o instanceof Date?s.append(a,o.toISOString()):typeof o=="object"?Object.entries(o).reduce((u,[l,c])=>r(s,`${a}[${l}]`,c),s):s.append(a,o),s),n=Object.entries(t).reduce((s,[a,o])=>r(s,a,o),new URLSearchParams),i=String(n);return e?i:decodeURIComponent(i)};function eD(t){const e=Object.keys(t).reduce((r,n)=>{for(const[i,s]of bL(n,t[n]))s instanceof A1?r[i]=s.valueOf():r[i]=s;return r},{});return Mee(e,{encode:!1})}function ix(t={}){const{url:e="",query:r,form:n}=t,i=(...s)=>{const a=s.filter(o=>o).join("&");return a?`?${a}`:""};if(n){const s=Object.keys(n).some(o=>{const{value:u}=n[o];return rx(u)||yL(u)}),a=t.headers["content-type"]||t.headers["Content-Type"];if(s||/multipart\/form-data/i.test(a)){const o=Nee(t.form);t.formdata=o,t.body=o}else t.body=eD(n);delete t.form}if(r){const[s,a]=e.split("?");let o="";if(a){const l=new URLSearchParams(a);Object.keys(r).forEach(p=>l.delete(p)),o=String(l)}const u=i(o,eD(r));t.url=s+u,delete t.query}return t}const Dee=(t="")=>/(json|xml|yaml|text)\b/.test(t);function Fee(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 ea.load(t)}function qee(t){return t.includes(", ")?t.split(", "):t}function Bee(t={}){return typeof t.entries!="function"?{}:Array.from(t.entries()).reduce((e,[r,n])=>(e[r]=qee(n),e),{})}function EL(t,e,{loadSpec:r=!1}={}){const n={ok:t.ok,url:t.url||e,status:t.status,statusText:t.statusText,headers:Bee(t.headers)},i=n.headers["content-type"],s=r||Dee(i);return(s?t.text:t.blob||t.buffer).call(t).then(o=>{if(n.text=o,n.data=o,s)try{const u=Fee(o,i);n.body=u,n.obj=u}catch(u){n.parseError=u}return n})}async function lu(t,e={}){typeof t=="object"&&(e=t,t=e.url),e.headers=e.headers||{},e=ix(e),e.headers&&Object.keys(e.headers).forEach(i=>{const s=e.headers[i];typeof s=="string"&&(e.headers[i]=s.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 EL(n,t,e),e.responseInterceptor&&(n=await e.responseInterceptor(n)||n)}catch(i){if(!n)throw i;const s=new Error(n.statusText||`response status is ${n.status}`);throw s.status=n.status,s.statusCode=n.status,s.responseError=i,s}if(!n.ok){const i=new Error(n.statusText||`response status is ${n.status}`);throw i.status=n.status,i.statusCode=n.status,i.response=n,i}return n}function $ee(t,e,r){return r=r||(n=>n),e=e||(n=>n),n=>(typeof n=="string"&&(n={url:n}),n=ix(n),n=e(n),r(t(n)))}const sx=t=>{var e,r;const{baseDoc:n,url:i}=t,s=(e=n??i)!==null&&e!==void 0?e:"";return typeof((r=globalThis.document)===null||r===void 0?void 0:r.baseURI)=="string"?String(new URL(s,globalThis.document.baseURI)):s},SL=t=>{const{fetch:e,http:r}=t;return e||r||lu};async function ax(t){const{spec:e,mode:r,allowMetaPatches:n=!0,pathDiscriminator:i,modelPropertyMacro:s,parameterMacro:a,requestInterceptor:o,responseInterceptor:u,skipNormalization:l=!1,useCircularStructures:c,strategies:p}=t,h=sx(t),d=SL(t),g=p.find(v=>v.match(e));return y(e);async function y(v){h&&(Ca.refs.docCache[h]=v),Ca.refs.fetchJSON=gL(d,{requestInterceptor:o,responseInterceptor:u});const E=[Ca.refs];typeof a=="function"&&E.push(Ca.parameters),typeof s=="function"&&E.push(Ca.properties),r!=="strict"&&E.push(Ca.allOf);const b=await Oee({spec:v,context:{baseDoc:h},plugins:E,allowMetaPatches:n,pathDiscriminator:i,parameterMacro:a,modelPropertyMacro:s,useCircularStructures:c});return l||(b.spec=g.normalize(b.spec)),b}}const _L=t=>t.replace(/\W/gi,"_");function Lee(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()}${_L(t)}`}function zf(t,e,r="",{v2OperationIdCompatibilityMode:n}={}){return!t||typeof t!="object"?null:(t.operationId||"").replace(/\s/g,"").length?_L(t.operationId):Lee(e,r,{v2OperationIdCompatibilityMode:n})}function ox(t){const{spec:e}=t,{paths:r}=e,n={};if(!r||e.$$normalized)return t;for(const i in r){const s=r[i];if(s==null||!["object","function"].includes(typeof s))continue;const a=s.parameters;for(const o in s){const u=s[o];if(u==null||!["object","function"].includes(typeof u))continue;const l=zf(u,i,o);if(l){n[l]?n[l].push(u):n[l]=[u];const c=n[l];if(c.length>1)c.forEach((p,h)=>{p.__originalOperationId=p.__originalOperationId||p.operationId,p.operationId=`${l}${h+1}`});else if(typeof u.operationId<"u"){const p=c[0];p.__originalOperationId=p.__originalOperationId||u.operationId,p.operationId=l}}if(o!=="parameters"){const c=[],p={};for(const h in e)(h==="produces"||h==="consumes"||h==="security")&&(p[h]=e[h],c.push(p));if(a&&(p.parameters=a,c.push(p)),c.length){for(const h of c)for(const d in h)if(!Array.isArray(u[d]))u[d]=h[d];else if(d==="parameters")for(const g of h[d])u[d].some(v=>!ri(v)&&!ri(g)?!1:v===g?!0:["name","$ref","$$ref"].some(E=>typeof v[E]=="string"&&typeof g[E]=="string"&&v[E]===g[E]))||u[d].push(g)}}}}return e.$$normalized=!0,t}const wL={name:"generic",match(){return!0},normalize(t){const{spec:e}=ox({spec:t});return e},async resolve(t){return ax(t)}};async function Uee(t){return ax(t)}const Vee=t=>{try{const{swagger:e}=t;return e==="2.0"}catch{return!1}},xL=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},ux=t=>{try{const{openapi:e}=t;return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)}catch{return!1}},AL=t=>xL(t)||ux(t),OL={name:"openapi-2",match(t){return Vee(t)},normalize(t){const{spec:e}=ox({spec:t});return e},async resolve(t){return Uee(t)}};async function zee(t){return ax(t)}const CL={name:"openapi-3-0",match(t){return xL(t)},normalize(t){const{spec:e}=ox({spec:t});return e},async resolve(t){return zee(t)}},Wee=t=>{try{const e=t.startsWith("#")?t.slice(1):t;return decodeURIComponent(e)}catch{return t}},Nn=t=>{const e=t.indexOf("#"),r=e===-1?"#":t.substring(e);return Wee(r)};function Gu(){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
69
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc6901
70
+ `,e+=`json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used
71
+ `,e+=`reference-token = *( unescaped / escaped )
72
+ `,e+=`unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
73
+ `,e+=` ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
74
+ `,e+=`escaped = "~" ( "0" / "1" )
75
+ `,e+=` ; representing '~' and '/', respectively
76
+ `,e+=`
77
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc6901#section-4
78
+ `,e+=`array-location = array-index / array-dash
79
+ `,e+=`array-index = %x30 / ( %x31-39 *(%x30-39) )
80
+ `,e+=` ; "0", or digits without a leading "0"
81
+ `,e+=`array-dash = "-"
82
+ `,e+=`
83
+ `,e+=`; Surrogate named rules
84
+ `,e+=`slash = "/"
85
+ `,e}}const Ln=function(){const e=vt,r=_n,n=this,i="parser.js: Parser(): ",s=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 a=0,o=0,u=0,l=0,c=0,p,h,d,g,y=new s,v,E,b;const _=()=>{a=0,o=0,u=0,l=0,c=0,p=void 0,h=void 0,d=void 0,g=void 0,y.refresh(),v=void 0,E=void 0,b=void 0},w=()=>{const X=`${i}initializeCallbacks(): `;let te;for(v=[],E=[],te=0;te<p.length;te+=1)v[te]=void 0;for(te=0;te<h.length;te+=1)E[te]=void 0;let ce;const ie=[];for(te=0;te<p.length;te+=1)ie.push(p[te].lower);for(te=0;te<h.length;te+=1)ie.push(h[te].lower);for(const ue in n.callbacks)if(n.callbacks.hasOwnProperty(ue)){if(te=ie.indexOf(ue.toLowerCase()),te<0)throw new Error(`${X}syntax callback '${ue}' not a rule or udt name`);if(ce=n.callbacks[ue]?n.callbacks[ue]:void 0,typeof ce=="function"||ce===void 0)te<p.length?v[te]=ce:E[te-p.length]=ce;else throw new Error(`${X}syntax callback[${ue}] must be function reference or falsy)`)}};n.parse=(X,te,ce,ie)=>{const ue=`${i}parse(): `;_(),g=r.stringToChars(ce),p=X.rules,h=X.udts;const ye=te.toLowerCase();let he;for(const W in p)if(p.hasOwnProperty(W)&&ye===p[W].lower){he=p[W].index;break}if(he===void 0)throw new Error(`${ue}start rule name '${startRule}' not recognized`);w(),n.trace&&n.trace.init(p,h,g),n.stats&&n.stats.init(p,h),n.ast&&n.ast.init(p,h,g),b=ie,d=[{type:e.RNM,index:he}],Z(0,0),d=void 0;let re=!1;switch(y.state){case e.ACTIVE:throw new Error(`${ue}final state should never be 'ACTIVE'`);case e.NOMATCH:re=!1;break;case e.EMPTY:case e.MATCH:y.phraseLength===g.length?re=!0:re=!1;break;default:throw new Error("unrecognized state")}return{success:re,state:y.state,stateName:e.idName(y.state),length:g.length,matched:y.phraseLength,maxMatched:c,maxTreeDepth:u,nodeHits:l}};const S=(X,te)=>{const ce=d[X];for(let ie=0;ie<ce.children.length&&(Z(ce.children[ie],te),y.state===e.NOMATCH);ie+=1);},A=(X,te)=>{let ce,ie,ue,ye;const he=d[X];n.ast&&(ie=n.ast.getLength()),ce=!0,ue=te,ye=0;for(let re=0;re<he.children.length;re+=1)if(Z(he.children[re],ue),y.state===e.NOMATCH){ce=!1;break}else ue+=y.phraseLength,ye+=y.phraseLength;ce?(y.state=ye===0?e.EMPTY:e.MATCH,y.phraseLength=ye):(y.state=e.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(ie))},I=(X,te)=>{let ce,ie,ue,ye;const he=d[X];if(he.max===0){y.state=e.EMPTY,y.phraseLength=0;return}for(ie=te,ue=0,ye=0,n.ast&&(ce=n.ast.getLength());!(ie>=g.length||(Z(X+1,ie),y.state===e.NOMATCH)||y.state===e.EMPTY||(ye+=1,ue+=y.phraseLength,ie+=y.phraseLength,ye===he.max)););y.state===e.EMPTY||ye>=he.min?(y.state=ue===0?e.EMPTY:e.MATCH,y.phraseLength=ue):(y.state=e.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(ce))},T=(X,te,ce,ie)=>{if(te.phraseLength>ce){let ue=`${i}opRNM(${X.name}): callback function error: `;throw ue+=`sysData.phraseLength: ${te.phraseLength}`,ue+=` must be <= remaining chars: ${ce}`,new Error(ue)}switch(te.state){case e.ACTIVE:if(!ie)throw new Error(`${i}opRNM(${X.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:te.phraseLength=0;break;case e.MATCH:te.phraseLength===0&&(te.state=e.EMPTY);break;case e.NOMATCH:te.phraseLength=0;break;default:throw new Error(`${i}opRNM(${X.name}): callback function return error. Unrecognized return state: ${te.state}`)}},k=(X,te)=>{let ce,ie,ue;const ye=d[X],he=p[ye.index],re=v[he.index];if(a||(ie=n.ast&&n.ast.ruleDefined(ye.index),ie&&(ce=n.ast.getLength(),n.ast.down(ye.index,p[ye.index].name))),re){const W=g.length-te;re(y,g,te,b),T(he,y,W,!0),y.state===e.ACTIVE&&(ue=d,d=he.opcodes,Z(0,te),d=ue,re(y,g,te,b),T(he,y,W,!1))}else ue=d,d=he.opcodes,Z(0,te),d=ue;a||ie&&(y.state===e.NOMATCH?n.ast.setLength(ce):n.ast.up(ye.index,he.name,te,y.phraseLength))},D=(X,te)=>{const ce=d[X];y.state=e.NOMATCH,te<g.length&&ce.min<=g[te]&&g[te]<=ce.max&&(y.state=e.MATCH,y.phraseLength=1)},R=(X,te)=>{const ce=d[X],ie=ce.string.length;if(y.state=e.NOMATCH,te+ie<=g.length){for(let ue=0;ue<ie;ue+=1)if(g[te+ue]!==ce.string[ue])return;y.state=e.MATCH,y.phraseLength=ie}},$=(X,te)=>{let ce;const ie=d[X];y.state=e.NOMATCH;const ue=ie.string.length;if(ue===0){y.state=e.EMPTY;return}if(te+ue<=g.length){for(let ye=0;ye<ue;ye+=1)if(ce=g[te+ye],ce>=65&&ce<=90&&(ce+=32),ce!==ie.string[ye])return;y.state=e.MATCH,y.phraseLength=ue}},M=(X,te,ce)=>{if(te.phraseLength>ce){let ie=`${i}opUDT(${X.name}): callback function error: `;throw ie+=`sysData.phraseLength: ${te.phraseLength}`,ie+=` must be <= remaining chars: ${ce}`,new Error(ie)}switch(te.state){case e.ACTIVE:throw new Error(`${i}opUDT(${X.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(X.empty)te.phraseLength=0;else throw new Error(`${i}opUDT(${X.name}) may not return EMPTY.`);break;case e.MATCH:if(te.phraseLength===0)if(X.empty)te.state=e.EMPTY;else throw new Error(`${i}opUDT(${X.name}) may not return EMPTY.`);break;case e.NOMATCH:te.phraseLength=0;break;default:throw new Error(`${i}opUDT(${X.name}): callback function return error. Unrecognized return state: ${te.state}`)}},K=(X,te)=>{let ce,ie,ue;const ye=d[X],he=h[ye.index];y.UdtIndex=he.index,a||(ue=n.ast&&n.ast.udtDefined(ye.index),ue&&(ie=p.length+ye.index,ce=n.ast.getLength(),n.ast.down(ie,he.name)));const re=g.length-te;E[ye.index](y,g,te,b),M(he,y,re),a||ue&&(y.state===e.NOMATCH?n.ast.setLength(ce):n.ast.up(ie,he.name,te,y.phraseLength))},ee=(X,te)=>{switch(a+=1,Z(X+1,te),a-=1,y.phraseLength=0,y.state){case e.EMPTY:y.state=e.EMPTY;break;case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}},G=(X,te)=>{switch(a+=1,Z(X+1,te),a-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}},Z=(X,te)=>{const ce=`${i}opExecute(): `,ie=d[X];switch(l+=1,o>u&&(u=o),o+=1,y.refresh(),n.trace&&n.trace.down(ie,te),ie.type){case e.ALT:S(X,te);break;case e.CAT:A(X,te);break;case e.REP:I(X,te);break;case e.RNM:k(X,te);break;case e.TRG:D(X,te);break;case e.TBS:R(X,te);break;case e.TLS:$(X,te);break;case e.UDT:K(X,te);break;case e.AND:ee(X,te);break;case e.NOT:G(X,te);break;default:throw new Error(`${ce}unrecognized operator`)}a||te+y.phraseLength>c&&(c=te+y.phraseLength),n.stats&&n.stats.collect(ie,y),n.trace&&n.trace.up(ie,y.state,te,y.phraseLength),o-=1}},lx=function(){const e="parser.js: Ast()): ",r=vt,n=_n,i=this;let s,a,o,u=0;const l=[],c=[],p=[];i.callbacks=[],i.init=(d,g,y)=>{c.length=0,p.length=0,u=0,s=d,a=g,o=y;let v;const E=[];for(v=0;v<s.length;v+=1)E.push(s[v].lower);for(v=0;v<a.length;v+=1)E.push(a[v].lower);for(u=s.length+a.length,v=0;v<u;v+=1)l[v]=void 0;for(const b in i.callbacks)if(i.callbacks.hasOwnProperty(b)){const _=b.toLowerCase();if(v=E.indexOf(_),v<0)throw new Error(`${e}init: node '${b}' not a rule or udt name`);l[v]=i.callbacks[b]}},i.ruleDefined=d=>!!l[d],i.udtDefined=d=>!!l[s.length+d],i.down=(d,g)=>{const y=p.length;return c.push(y),p.push({name:g,thisIndex:y,thatIndex:void 0,state:r.SEM_PRE,callbackIndex:d,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),y},i.up=(d,g,y,v)=>{const E=p.length,b=c.pop();return p.push({name:g,thisIndex:E,thatIndex:b,state:r.SEM_POST,callbackIndex:d,phraseIndex:y,phraseLength:v,stack:c.length}),p[b].thatIndex=E,p[b].phraseIndex=y,p[b].phraseLength=v,E},i.translate=d=>{let g,y;for(let v=0;v<p.length;v+=1)y=p[v],g=l[y.callbackIndex],g&&(y.state===r.SEM_PRE?g(r.SEM_PRE,o,y.phraseIndex,y.phraseLength,d):g&&g(r.SEM_POST,o,y.phraseIndex,y.phraseLength,d))},i.setLength=d=>{p.length=d,d>0?c.length=p[d-1].stack:c.length=0},i.getLength=()=>p.length;function h(d){let g="";for(;d-- >0;)g+=" ";return g}i.toXml=()=>{let d="",g=0;return d+=`<?xml version="1.0" encoding="utf-8"?>
86
+ `,d+=`<root nodes="${p.length/2}" characters="${o.length}">
87
+ `,d+=`<!-- input string -->
88
+ `,d+=h(g+2),d+=n.charsToString(o),d+=`
89
+ `,p.forEach(y=>{y.state===r.SEM_PRE?(g+=1,d+=h(g),d+=`<node name="${y.name}" index="${y.phraseIndex}" length="${y.phraseLength}">
90
+ `,d+=h(g+2),d+=n.charsToString(o,y.phraseIndex,y.phraseLength),d+=`
91
+ `):(d+=h(g),d+=`</node><!-- name="${y.name}" -->
92
+ `,g-=1)}),d+=`</root>
93
+ `,d}},Jee=function(){const e=vt,r=_n,n="parser.js: Trace(): ";let i,s,a,o="",u=0;const l=100,c=this,p=d=>{let g="",y=0;if(d>=0)for(;d--;)y+=1,y===5?(g+="|",y=0):g+=".";return g};c.init=(d,g,y)=>{s=d,a=g,i=y};const h=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(${s[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(${a[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};c.down=(d,g)=>{const y=p(u),v=Math.min(l,i.length-g);let E=r.charsToString(i,g,v);v<i.length-g&&(E+="..."),E=`${y}|-|[${h(d)}]${E}
94
+ `,o+=E,u+=1},c.up=(d,g,y,v)=>{const E=`${n}trace.up: `;u-=1;const b=p(u);let _,w,S;switch(g){case e.EMPTY:S="|E|",w="''";break;case e.MATCH:S="|M|",_=Math.min(l,v),_<v?w=`'${r.charsToString(i,y,_)}...'`:w=`'${r.charsToString(i,y,_)}'`;break;case e.NOMATCH:S="|N|",w="";break;default:throw new Error(`${E} unrecognized state`)}w=`${b}${S}[${h(d)}]${w}
95
+ `,o+=w},c.displayTrace=()=>o},Hee=function(){const e=vt,r="parser.js: Stats(): ";let n,i,s;const a=[],o=[],u=[];this.init=(v,E)=>{n=v,i=E,g()},this.collect=(v,E)=>{y(s,E.state,E.phraseLength),y(a[v.type],E.state,E.phraseLength),v.type===e.RNM&&y(o[v.index],E.state,E.phraseLength),v.type===e.UDT&&y(u[v.index],E.state,E.phraseLength)},this.displayStats=()=>{let v="";const E={match:0,empty:0,nomatch:0,total:0},b=(_,w,S,A,I)=>{E.match+=w,E.empty+=S,E.nomatch+=A,E.total+=I;const T=l(w),k=l(S),D=l(A),R=l(I);return`${_} | ${T} | ${k} | ${D} | ${R} |
96
+ `};return v+=` OPERATOR STATS
97
+ `,v+=` | MATCH | EMPTY | NOMATCH | TOTAL |
98
+ `,v+=b(" ALT",a[e.ALT].match,a[e.ALT].empty,a[e.ALT].nomatch,a[e.ALT].total),v+=b(" CAT",a[e.CAT].match,a[e.CAT].empty,a[e.CAT].nomatch,a[e.CAT].total),v+=b(" REP",a[e.REP].match,a[e.REP].empty,a[e.REP].nomatch,a[e.REP].total),v+=b(" RNM",a[e.RNM].match,a[e.RNM].empty,a[e.RNM].nomatch,a[e.RNM].total),v+=b(" TRG",a[e.TRG].match,a[e.TRG].empty,a[e.TRG].nomatch,a[e.TRG].total),v+=b(" TBS",a[e.TBS].match,a[e.TBS].empty,a[e.TBS].nomatch,a[e.TBS].total),v+=b(" TLS",a[e.TLS].match,a[e.TLS].empty,a[e.TLS].nomatch,a[e.TLS].total),v+=b(" UDT",a[e.UDT].match,a[e.UDT].empty,a[e.UDT].nomatch,a[e.UDT].total),v+=b(" AND",a[e.AND].match,a[e.AND].empty,a[e.AND].nomatch,a[e.AND].total),v+=b(" NOT",a[e.NOT].match,a[e.NOT].empty,a[e.NOT].nomatch,a[e.NOT].total),v+=b("TOTAL",E.match,E.empty,E.nomatch,E.total),v},this.displayHits=v=>{let E="";const b=(_,w,S,A,I)=>{s.match+=_,s.empty+=w,s.nomatch+=S,s.total+=A;const T=l(_),k=l(w),D=l(S),R=l(A);return`| ${T} | ${k} | ${D} | ${R} | ${I}
99
+ `};typeof v=="string"&&v.toLowerCase()[0]==="a"?(o.sort(c),u.sort(c),E+=` RULES/UDTS ALPHABETICALLY
100
+ `):typeof v=="string"&&v.toLowerCase()[0]==="i"?(o.sort(h),u.sort(h),E+=` RULES/UDTS BY INDEX
101
+ `):(o.sort(p),u.sort(p),E+=` RULES/UDTS BY HIT COUNT
102
+ `),E+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME
103
+ `;for(let _=0;_<o.length;_+=1){let w=o[_];w.total&&(E+=b(w.match,w.empty,w.nomatch,w.total,w.name))}for(let _=0;_<u.length;_+=1){let w=u[_];w.total&&(E+=b(w.match,w.empty,w.nomatch,w.total,w.name))}return E};const l=v=>v<10?` ${v}`:v<100?` ${v}`:v<1e3?` ${v}`:v<1e4?` ${v}`:v<1e5?` ${v}`:v<1e6?` ${v}`:`${v}`,c=(v,E)=>v.lower<E.lower?-1:v.lower>E.lower?1:0,p=(v,E)=>v.total<E.total?1:v.total>E.total?-1:c(v,E),h=(v,E)=>v.index<E.index?-1:v.index>E.index?1:0,d=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},g=()=>{a.length=0,s=new d,a[e.ALT]=new d,a[e.CAT]=new d,a[e.REP]=new d,a[e.RNM]=new d,a[e.TRG]=new d,a[e.TBS]=new d,a[e.TLS]=new d,a[e.UDT]=new d,a[e.AND]=new d,a[e.NOT]=new d,o.length=0;for(let v=0;v<n.length;v+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:n[v].name,lower:n[v].lower,index:n[v].index});if(i.length>0){u.length=0;for(let v=0;v<i.length;v+=1)u.push({empty:0,match:0,nomatch:0,total:0,name:i[v].name,lower:i[v].lower,index:i[v].index})}},y=(v,E)=>{switch(v.total+=1,E){case e.EMPTY:v.empty+=1;break;case e.MATCH:v.match+=1;break;case e.NOMATCH:v.nomatch+=1;break;default:throw new Error(`${r}collect(): incStat(): unrecognized state: ${E}`)}}},_n={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)}},vt={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 vt.ALT:return"ALT";case vt.CAT:return"CAT";case vt.REP:return"REP";case vt.RNM:return"RNM";case vt.TRG:return"TRG";case vt.TBS:return"TBS";case vt.TLS:return"TLS";case vt.UDT:return"UDT";case vt.AND:return"AND";case vt.NOT:return"NOT";case vt.ACTIVE:return"ACTIVE";case vt.EMPTY:return"EMPTY";case vt.MATCH:return"MATCH";case vt.NOMATCH:return"NOMATCH";case vt.SEM_PRE:return"SEM_PRE";case vt.SEM_POST:return"SEM_POST";case vt.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};class Es 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}
104
+ CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class RL extends Es{}const iS=t=>(e,r,n,i,s)=>{if(!(typeof s=="object"&&s!==null&&!Array.isArray(s)))throw new RL("parser's user data must be an object");if(e===vt.SEM_PRE){const a={type:t,text:_n.charsToString(r,n,i),start:n,length:i,children:[]};s.stack.length>0?s.stack[s.stack.length-1].children.push(a):s.root=a,s.stack.push(a)}e===vt.SEM_POST&&s.stack.pop()};class Kee extends lx{constructor(){super(),this.callbacks["json-pointer"]=iS("json-pointer"),this.callbacks["reference-token"]=iS("reference-token"),this.callbacks.slash=iS("text")}getTree(){const e={stack:[],root:null};return this.translate(e),delete e.stack,e}}const Gee=t=>{if(typeof t!="string")throw new TypeError("Reference token must be a string");return t.replace(/~1/g,"/").replace(/~0/g,"~")};class Yee extends Kee{getTree(){const{root:e}=super.getTree();return e.children.filter(({type:r})=>r==="reference-token").map(({text:r})=>Gee(r))}}class Xee extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(", ")}}class Zee extends Jee{inferExpectations(){const e=this.displayTrace().split(`
105
+ `),r=new Set;let n=-1;for(let i=0;i<e.length;i++){const s=e[i];if(s.includes("M|")){const a=s.match(/]'(.*)'$/);a&&a[1]&&(n=i)}if(i>n){const a=s.match(/N\|\[TLS\(([^)]+)\)]/);a&&r.add(a[1])}}return new Xee(...r)}}const Qee=new Gu,ete=(t,{translator:e=new Yee,stats:r=!1,trace:n=!1}={})=>{if(typeof t!="string")throw new TypeError("JSON Pointer must be a string");try{const i=new Ln;e&&(i.ast=e),r&&(i.stats=new Hee),n&&(i.trace=new Zee);const s=i.parse(Qee,"json-pointer",t);return{result:s,tree:s.success&&e?i.ast.getTree():void 0,stats:i.stats,trace:i.trace}}catch(i){throw new RL("Unexpected error during JSON Pointer parsing",{cause:i,jsonPointer:t})}};new Gu;new Ln;new Gu;new Ln;const tte=new Gu,rte=new Ln,nte=t=>{if(typeof t!="string")return!1;try{return rte.parse(tte,"array-index",t).success}catch{return!1}},ite=new Gu,ste=new Ln,ate=t=>{if(typeof t!="string")return!1;try{return ste.parse(ite,"array-dash",t).success}catch{return!1}},ote=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 ute extends Es{}const IL=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 ote(String(e))}).join("/")}`}catch(e){throw new ute("Unexpected error during JSON Pointer compilation",{cause:e,referenceTokens:t})}};class lte{#e;#t;#r;constructor(e,r={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...r,realm:r.realm.name},this.#t=[],this.#r=r.realm}step({referenceToken:e,input:r,output:n,success:i=!0,reason:s}){const a=this.#t.length;this.#t.push(e);const o={referenceToken:e,referenceTokenPosition:a,input:r,inputType:this.#r.isObject(r)?"object":this.#r.isArray(r)?"array":"unrecognized",output:n,success:i};s&&(o.reason=s),this.#e.steps.push(o),i||(this.#e.failed=!0,this.#e.failedAt=a,this.#e.message=s)}}class TL{name="";isArray(e){throw new Es("Realm.isArray(node) must be implemented in a subclass")}isObject(e){throw new Es("Realm.isObject(node) must be implemented in a subclass")}sizeOf(e){throw new Es("Realm.sizeOf(node) must be implemented in a subclass")}has(e,r){throw new Es("Realm.has(node) must be implemented in a subclass")}evaluate(e,r){throw new Es("Realm.evaluate(node) must be implemented in a subclass")}}class Qs extends Es{}class qa extends Qs{}class cte extends TL{name="json";isArray(e){return Array.isArray(e)}isObject(e){return typeof e=="object"&&e!==null&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,r){if(this.isArray(e)){const n=Number(r),i=n>>>0;if(n!==i)throw new qa(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return i<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,n)}return this.isObject(e)?Object.prototype.hasOwnProperty.call(e,r):!1}evaluate(e,r){return this.isArray(e)?e[Number(r)]:e[r]}}class fte extends Qs{}class PL extends Qs{}const pte=(t,e,{strictArrays:r=!0,strictObjects:n=!0,realm:i=new cte,trace:s=!0}={})=>{const{result:a,tree:o,trace:u}=ete(e,{trace:!!s}),l=typeof s=="object"&&s!==null?new lte(s,{jsonPointer:e,referenceTokens:o,strictArrays:r,strictObjects:n,realm:i,value:t}):null;try{let c;if(!a.success){let p=`Invalid JSON Pointer: "${e}". Syntax error at position ${a.maxMatched}`;throw p+=u?`, expected ${u.inferExpectations()}`:"",new Qs(p,{jsonPointer:e,currentValue:t,realm:i.name})}return o.reduce((p,h,d)=>{if(i.isArray(p)){if(ate(h)){if(r)throw new qa(`Invalid array index "-" at position ${d} in "${e}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:i.name});return c=i.evaluate(p,String(i.sizeOf(p))),l?.step({referenceToken:h,input:p,output:c}),c}if(!nte(h))throw new qa(`Invalid array index "${h}" at position ${d} in "${e}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:i.name});const g=Number(h);if(!Number.isSafeInteger(g))throw new qa(`Invalid array index "${h}" at position ${d} in "${e}": index must be a safe integer`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:i.name});if(!i.has(p,h)&&r)throw new qa(`Invalid array index "${h}" at position ${d} in "${e}": index not found in array`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:i.name});return c=i.evaluate(p,h),l?.step({referenceToken:h,input:p,output:c}),c}if(i.isObject(p)){if(!i.has(p,h)&&n)throw new PL(`Invalid object key "${h}" at position ${d} in "${e}": key not found in object`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:i.name});return c=i.evaluate(p,h),l?.step({referenceToken:h,input:p,output:c}),c}throw new fte(`Invalid reference token "${h}" at position ${d} in "${e}": cannot be applied to a non-object/non-array value`,{jsonPointer:e,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:p,realm:i.name})},t)}catch(c){throw l?.step({referenceToken:c.referenceToken,input:c.currentValue,success:!1,reason:c.message}),c instanceof Qs?c:new Qs("Unexpected error during JSON Pointer evaluation",{cause:c,jsonPointer:e,referenceTokens:o})}};class dte extends TL{name="apidom";isArray(e){return Fr(e)}isObject(e){return kt(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,r){if(this.isArray(e)){const n=Number(r),i=n>>>0;if(n!==i)throw new qa(`Invalid array index "${r}": index must be an unsinged 32-bit integer`,{referenceToken:r,currentValue:e,realm:this.name});return i<this.sizeOf(e)}if(this.isObject(e)){const n=e.keys(),i=new Set(n);if(n.length!==i.size)throw new PL(`Object key "${r}" is not unique — JSON Pointer requires unique member names`,{referenceToken:r,currentValue:e,realm:this.name});return e.hasKey(r)}return!1}evaluate(e,r){return this.isArray(e)?e.get(Number(r)):e.get(r)}}const Zn=(t,e,r={})=>pte(t,e,{...r,realm:new dte});class cx extends oQ{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(s=>s.includes(n))||this.unknownMediaType}latest(e="generic"){return kf(this.filterByFormat(e))}}const Xa=new cx("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 Yu=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="callback"}},Xu=class extends pe.ObjectElement{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)}},Zu=class extends pe.ObjectElement{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)}},Qu=class extends pe.ObjectElement{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)}},Wf=class extends pe.ObjectElement{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)}},el=class extends pe.ObjectElement{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)}},tl=class extends pe.ObjectElement{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)}},mo=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new pe.BooleanElement(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new pe.BooleanElement(!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(mo.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});let rl=class extends pe.ObjectElement{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)}},nl=class extends pe.ObjectElement{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)}},il=class extends pe.ObjectElement{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(ct(this.operationRef)){var e;return(e=this.operationRef)===null||e===void 0?void 0:e.meta.get("operation")}if(ct(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)}},sl=class extends pe.ObjectElement{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)}},Jf=class extends pe.ObjectElement{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)}},Hf=class extends pe.ObjectElement{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)}},al=class extends pe.StringElement{constructor(e,r,n){super(e,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class Kf extends pe.ObjectElement{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 ol=class extends pe.ObjectElement{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 pe.BooleanElement(!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)}},go=class extends pe.ObjectElement{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 pe.BooleanElement(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new pe.BooleanElement(!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(go.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});let ul=class extends pe.ObjectElement{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)}},ll=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="paths"}},cl=class extends pe.ObjectElement{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)}},fl=class extends pe.ObjectElement{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 pe.BooleanElement(!1)}set required(e){this.set("required",e)}},pl=class extends pe.ObjectElement{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)}},dl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}},yo=class extends pe.ObjectElement{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 vo extends pe.ObjectElement{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 hl extends pe.ObjectElement{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 ml=class extends pe.ObjectElement{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 hte={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft4",yo),e.register("jSONReference",vo),e.register("media",hl),e.register("linkDescription",ml),e}},gl=t=>{if(or(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},mte={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Pi};let kL=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=Fn(r.meta,e.meta)),fo(e)&&Gw(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=Fn(r.attributes,e.attributes))}},jt=class extends kL{enter(e){return this.element=Ke(e),Rt}};const jL=(t,e,r=[])=>{const n=Object.getOwnPropertyDescriptors(e);for(let i of r)delete n[i];Object.defineProperties(t,n)},cu=(t,e=[t])=>{const r=Object.getPrototypeOf(t);return r===null?e:cu(r,[...e,r])},gte=(...t)=>{if(t.length===0)return;let e;const r=t.map(n=>cu(n));for(;r.every(n=>n.length>0);){const n=r.map(s=>s.pop()),i=n[0];if(n.every(s=>s===i))e=i;else break}return e},tD=(t,e,r=[])=>{var n;const i=(n=gte(...t))!==null&&n!==void 0?n:Object.prototype,s=Object.create(i),a=cu(i);for(let o of t){let u=cu(o);for(let l=u.length-1;l>=0;l--){let c=u[l];a.indexOf(c)===-1&&(jL(s,c,["constructor",...r]),a.push(c))}}return s.constructor=e,s},O1=t=>t.filter((e,r)=>t.indexOf(e)==r),NL=new WeakMap,yte=t=>NL.get(t),vte=(t,e)=>NL.set(t,e),rD=(t,e)=>{var r,n;const i=O1([...Object.getOwnPropertyNames(t),...Object.getOwnPropertyNames(e)]),s={};for(let a of i)s[a]=O1([...(r=t?.[a])!==null&&r!==void 0?r:[],...(n=e?.[a])!==null&&n!==void 0?n:[]]);return s},nD=(t,e)=>{var r,n,i,s;return{property:rD((r=t?.property)!==null&&r!==void 0?r:{},(n=e?.property)!==null&&n!==void 0?n:{}),method:rD((i=t?.method)!==null&&i!==void 0?i:{},(s=e?.method)!==null&&s!==void 0?s:{})}},bte=(t,e)=>{var r,n,i,s,a,o;return{class:O1([...(r=t?.class)!==null&&r!==void 0?r:[],...(n=e?.class)!==null&&n!==void 0?n:[]]),static:nD((i=t?.static)!==null&&i!==void 0?i:{},(s=e?.static)!==null&&s!==void 0?s:{}),instance:nD((a=t?.instance)!==null&&a!==void 0?a:{},(o=e?.instance)!==null&&o!==void 0?o:{})}},Ete=new Map,Ste=(...t)=>{var e;const r=new Set,n=new Set([...t]);for(;n.size>0;)for(let i of n){const s=cu(i.prototype).map(l=>l.constructor),a=(e=yte(i))!==null&&e!==void 0?e:[],u=[...s,...a].filter(l=>!r.has(l));for(let l of u)n.add(l);r.add(i),n.delete(i)}return[...r]},_te=(...t)=>{const e=Ste(...t).map(r=>Ete.get(r)).filter(r=>!!r);return e.length==0?{}:e.length==1?e[0]:e.reduce((r,n)=>bte(r,n))};function qe(...t){var e,r,n;const i=t.map(o=>o.prototype);function s(...o){for(const u of t)jL(this,new u(...o))}s.prototype=tD(i,s),Object.setPrototypeOf(s,tD(t,null,["prototype"]));let a=s;{const o=_te(...t);for(let u of(e=o?.class)!==null&&e!==void 0?e:[]){const l=u(a);l&&(a=l)}iD((r=o?.static)!==null&&r!==void 0?r:{},a),iD((n=o?.instance)!==null&&n!==void 0?n:{},a.prototype)}return vte(a,t),a}const iD=(t,e)=>{const r=t.property,n=t.method;if(r)for(let i in r)for(let s of r[i])s(e,i);if(n)for(let i in n)for(let s of n[i])s(e,i,Object.getOwnPropertyDescriptor(e,i))};let wn=class extends kL{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...r}){super({...r}),this.specObj=e}retrievePassingOptions(){return c$(this.passingOptionsNames,this)}retrieveFixedFields(e){const r=Or(["visitors",...e,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(e){return Nf(fa,["visitors",...e],this.specObj)?Or(["visitors",...e],this.specObj):Or(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,r={}){const n=this.retrievePassingOptions(),i=this.retrieveVisitor(e),s={...n,...r};return new i(s)}toRefractedElement(e,r,n={}){const i=this.retrieveVisitorInstance(e,n);return i instanceof jt&&i?.constructor===jt?Ke(r):(vr(r,i,n),i.element)}},ra=class extends wn{specPath;ignoredFields;constructor({specPath:e,ignoredFields:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=r||[]}ObjectElement(e){const r=this.specPath(e),n=this.retrieveFixedFields(r);return e.forEach((i,s,a)=>{if(ct(s)&&n.includes(Re(s))&&!this.ignoredFields.includes(Re(s))){const o=this.toRefractedElement([...r,"fixedFields",Re(s)],i),u=new pe.MemberElement(Ke(s),o);this.copyMetaAndAttributes(a,u),u.classes.push("fixed-field"),this.element.content.push(u)}else this.ignoredFields.includes(Re(s))||this.element.content.push(Ke(a))}),this.copyMetaAndAttributes(e,this.element),Rt}};class br{parent;constructor({parent:e}){this.parent=e}}const ML=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof yo||t(n)&&e("JSONSchemaDraft4",n)&&r("object",n)),fx=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vo||t(n)&&e("JSONReference",n)&&r("object",n)),DL=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hl||t(n)&&e("media",n)&&r("object",n)),wte=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ml||t(n)&&e("linkDescription",n)&&r("object",n)),xte=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:fx,isJSONSchemaElement:ML,isLinkDescriptionElement:wte,isMediaElement:DL},Symbol.toStringTag,{value:"Module"}));let FL=class extends qe(ra,br,jt){constructor(e){super(e),this.element=new yo,this.specPath=ut(["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,ra.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(ks(this.parent)&&!ct(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(ML(this.parent)&&!ct(e.get("$schema"))){const r=Ha(Re(this.parent.meta.get("inheritedDialectIdentifier")),Re(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(e,r="id"){const n=this.parent!==void 0?Ke(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new pe.ArrayElement,i=Re(e.get(r));Df(i)&&n.push(i),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const Oi=t=>kt(t)&&t.hasKey("$ref");let qL=class extends qe(wn,br,jt){ObjectElement(e){const r=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,e),Rt}ArrayElement(e){return this.element=new pe.ArrayElement,this.element.classes.push("json-schema-items"),e.forEach(r=>{const n=Oi(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(e,this.element),Rt}};class Ate extends jt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-required"),r}}let Ote=class extends wn{specPath;ignoredFields;fieldPatternPredicate=Aw;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach((r,n,i)=>{if(!this.ignoredFields.includes(Re(n))&&this.fieldPatternPredicate(Re(n))){const s=this.specPath(r),a=this.toRefractedElement(s,r),o=new pe.MemberElement(Ke(n),a);this.copyMetaAndAttributes(i,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Re(n))||this.element.content.push(Ke(i))}),this.copyMetaAndAttributes(e,this.element),Rt}},Ns=class extends Ote{constructor(e){super(e),this.fieldPatternPredicate=Df}},Cte=class extends qe(Ns,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=r=>Oi(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},Rte=class extends qe(Ns,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>Oi(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class Ite extends qe(Ns,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>Oi(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class Tte extends jt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-enum"),r}}let Pte=class extends jt{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}},kte=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach(r=>{const n=Oi(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(e,this.element),Rt}},jte=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach(r=>{const n=Oi(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(e,this.element),Rt}},Nte=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach(r=>{const n=Oi(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(e,this.element),Rt}};class Mte extends qe(Ns,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=r=>Oi(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let Dte=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,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),Rt}};class Fte extends qe(ra,jt){constructor(e){super(e),this.element=new vo,this.specPath=ut(["document","objects","JSONReference"])}ObjectElement(e){const r=ra.prototype.ObjectElement.call(this,e);return ct(this.element.$ref)&&this.element.classes.push("reference-element"),r}}let qte=class extends jt{StringElement(e){const r=this.enter(e);return this.element.classes.push("reference-value"),r}},Bte=class extends wn{alternator;constructor({alternator:e,...r}){super({...r}),this.alternator=e}enter(e){const r=this.alternator.map(({predicate:i,specPath:s})=>Mw(i,ut(s),Mf)),n=E$(r)(e);return this.element=this.toRefractedElement(n,e),Rt}},Ra=class extends Bte{constructor(e){super(e),this.alternator=[{predicate:Oi,specPath:["document","objects","JSONReference"]},{predicate:rs,specPath:["document","objects","JSONSchema"]}]}};class $te extends qe(ra,jt){constructor(e){super(e),this.element=new hl,this.specPath=ut(["document","objects","Media"])}}let BL=class extends qe(ra,jt){constructor(e){super(e),this.element=new ml,this.specPath=ut(["document","objects","LinkDescription"])}};const jr={visitors:{value:jt,JSONSchemaOrJSONReferenceVisitor:Ra,document:{objects:{JSONSchema:{$visitor:FL,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:Ra,items:qL,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Ate,properties:Cte,additionalProperties:Ra,patternProperties:Rte,dependencies:Ite,enum:Tte,type:Pte,allOf:kte,anyOf:jte,oneOf:Nte,not:Ra,definitions:Mte,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Dte,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Fte,fixedFields:{$ref:qte}},Media:{$visitor:$te,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:BL,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ra,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ra}}}}}},Lte=()=>{const t=is(hte);return{predicates:{...xte,isStringElement:ct},namespace:t}},Ute=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=jr}={})=>{const i=pe.refract(t),s=js(n),a=Or(e,s),o=new a({specObj:s});return vr(i,o),ki(o.element,r,{toolboxCreator:Lte,visitorOptions:{keyMap:mte,nodeTypeGetter:gl}})},Gf=t=>(e,r={})=>Ute(e,{specPath:t,...r});yo.refract=Gf(["visitors","document","objects","JSONSchema","$visitor"]);vo.refract=Gf(["visitors","document","objects","JSONReference","$visitor"]);hl.refract=Gf(["visitors","document","objects","Media","$visitor"]);ml.refract=Gf(["visitors","document","objects","LinkDescription","$visitor"]);let Yf=class extends yo{constructor(e,r,n){super(e,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new wt("idProp getter in Schema class is not not supported.")}set idProp(e){throw new wt("idProp setter in Schema class is not not supported.")}get $schema(){throw new wt("$schema getter in Schema class is not not supported.")}set $schema(e){throw new wt("$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 wt("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new wt("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new wt("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new wt("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 wt("definitions getter in Schema class is not not supported.")}set definitions(e){throw new wt("definitions setter in Schema class is not not supported.")}get base(){throw new wt("base getter in Schema class is not not supported.")}set base(e){throw new wt("base setter in Schema class is not not supported.")}get links(){throw new wt("links getter in Schema class is not not supported.")}set links(e){throw new wt("links setter in Schema class is not not supported.")}get media(){throw new wt("media getter in Schema class is not not supported.")}set media(e){throw new wt("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)}},yl=class extends pe.ObjectElement{constructor(e,r,n){super(e,r,n),this.element="securityRequirement"}},vl=class extends pe.ObjectElement{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)}},bl=class extends pe.ObjectElement{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)}},El=class extends pe.ObjectElement{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)}},Xf=class extends pe.ObjectElement{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)}},Zf=class extends pe.ObjectElement{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 Vte={namespace:t=>{const{base:e}=t;return e.register("callback",Yu),e.register("components",Xu),e.register("contact",Zu),e.register("discriminator",Qu),e.register("encoding",Wf),e.register("example",el),e.register("externalDocumentation",tl),e.register("header",mo),e.register("info",rl),e.register("license",nl),e.register("link",il),e.register("mediaType",sl),e.register("oAuthFlow",Jf),e.register("oAuthFlows",Hf),e.register("openapi",al),e.register("openApi3_0",Kf),e.register("operation",ol),e.register("parameter",go),e.register("pathItem",ul),e.register("paths",ll),e.register("reference",cl),e.register("requestBody",fl),e.register("response",pl),e.register("responses",dl),e.register("schema",Yf),e.register("securityRequirement",yl),e.register("securityScheme",vl),e.register("server",bl),e.register("serverVariable",El),e.register("tag",Xf),e.register("xml",Zf),e}};class Qf extends pe.ArrayElement{static primaryClass="servers";constructor(e,r,n){super(e,r,n),this.classes.push(Qf.primaryClass)}}class px extends pe.ArrayElement{static primaryClass="security";constructor(e,r,n){super(e,r,n),this.classes.push(px.primaryClass)}}class dx extends pe.ArrayElement{static primaryClass="tags";constructor(e,r,n){super(e,r,n),this.classes.push(dx.primaryClass)}}class hx extends pe.ObjectElement{static primaryClass="server-variables";constructor(e,r,n){super(e,r,n),this.classes.push(hx.primaryClass)}}class ep extends pe.ObjectElement{static primaryClass="components-schemas";constructor(e,r,n){super(e,r,n),this.classes.push(ep.primaryClass)}}class mx extends pe.ObjectElement{static primaryClass="components-responses";constructor(e,r,n){super(e,r,n),this.classes.push(mx.primaryClass)}}class gx extends pe.ObjectElement{static primaryClass="components-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(gx.primaryClass),this.classes.push("parameters")}}class yx extends pe.ObjectElement{static primaryClass="components-examples";constructor(e,r,n){super(e,r,n),this.classes.push(yx.primaryClass),this.classes.push("examples")}}class vx extends pe.ObjectElement{static primaryClass="components-request-bodies";constructor(e,r,n){super(e,r,n),this.classes.push(vx.primaryClass)}}class bx extends pe.ObjectElement{static primaryClass="components-headers";constructor(e,r,n){super(e,r,n),this.classes.push(bx.primaryClass)}}class Ex extends pe.ObjectElement{static primaryClass="components-security-schemes";constructor(e,r,n){super(e,r,n),this.classes.push(Ex.primaryClass)}}class Sx extends pe.ObjectElement{static primaryClass="components-links";constructor(e,r,n){super(e,r,n),this.classes.push(Sx.primaryClass)}}class _x extends pe.ObjectElement{static primaryClass="components-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(_x.primaryClass)}}class wx extends pe.ArrayElement{static primaryClass="path-item-servers";constructor(e,r,n){super(e,r,n),this.classes.push(wx.primaryClass),this.classes.push("servers")}}class xx extends pe.ArrayElement{static primaryClass="path-item-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(xx.primaryClass),this.classes.push("parameters")}}class tp extends pe.ArrayElement{static primaryClass="operation-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(tp.primaryClass),this.classes.push("parameters")}}class Ax extends pe.ObjectElement{static primaryClass="parameter-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Ax.primaryClass),this.classes.push("examples")}}class Ox extends pe.ObjectElement{static primaryClass="parameter-content";constructor(e,r,n){super(e,r,n),this.classes.push(Ox.primaryClass),this.classes.push("content")}}class Cx extends pe.ArrayElement{static primaryClass="operation-tags";constructor(e,r,n){super(e,r,n),this.classes.push(Cx.primaryClass)}}class Rx extends pe.ObjectElement{static primaryClass="operation-callbacks";constructor(e,r,n){super(e,r,n),this.classes.push(Rx.primaryClass)}}class rp extends pe.ArrayElement{static primaryClass="operation-security";constructor(e,r,n){super(e,r,n),this.classes.push(rp.primaryClass),this.classes.push("security")}}let zte=class $L extends pe.ArrayElement{static primaryClass="operation-servers";constructor(e,r,n){super(e,r,n),this.classes.push($L.primaryClass),this.classes.push("servers")}};class Ix extends pe.ObjectElement{static primaryClass="request-body-content";constructor(e,r,n){super(e,r,n),this.classes.push(Ix.primaryClass),this.classes.push("content")}}class Tx extends pe.ObjectElement{static primaryClass="media-type-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Tx.primaryClass),this.classes.push("examples")}}class Px extends pe.ObjectElement{static primaryClass="media-type-encoding";constructor(e,r,n){super(e,r,n),this.classes.push(Px.primaryClass)}}class kx extends pe.ObjectElement{static primaryClass="encoding-headers";constructor(e,r,n){super(e,r,n),this.classes.push(kx.primaryClass)}}class jx extends pe.ObjectElement{static primaryClass="response-headers";constructor(e,r,n){super(e,r,n),this.classes.push(jx.primaryClass)}}class Nx extends pe.ObjectElement{static primaryClass="response-content";constructor(e,r,n){super(e,r,n),this.classes.push(Nx.primaryClass),this.classes.push("content")}}class Mx extends pe.ObjectElement{static primaryClass="response-links";constructor(e,r,n){super(e,r,n),this.classes.push(Mx.primaryClass)}}class Dx extends pe.ObjectElement{static primaryClass="discriminator-mapping";constructor(e,r,n){super(e,r,n),this.classes.push(Dx.primaryClass)}}class Fx extends pe.ObjectElement{static primaryClass="oauth-flow-scopes";constructor(e,r,n){super(e,r,n),this.classes.push(Fx.primaryClass)}}class qx extends pe.ObjectElement{static primaryClass="link-parameters";constructor(e,r,n){super(e,r,n),this.classes.push(qx.primaryClass)}}class Bx extends pe.ObjectElement{static primaryClass="header-examples";constructor(e,r,n){super(e,r,n),this.classes.push(Bx.primaryClass),this.classes.push("examples")}}class $x extends pe.ObjectElement{static primaryClass="header-content";constructor(e,r,n){super(e,r,n),this.classes.push($x.primaryClass),this.classes.push("content")}}const Wte=t=>{if(or(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},Jte={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"],...Pi};class LL{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,r){(e.meta.length>0||r.meta.length>0)&&(r.meta=Fn(r.meta,e.meta)),fo(e)&&Gw(r,e),(e.attributes.length>0||e.meta.length>0)&&(r.attributes=Fn(r.attributes,e.attributes))}}class Ve extends LL{enter(e){return this.element=Ke(e),Rt}}class li extends LL{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:r,openApiGenericElement:n,openApiSemanticElement:i,...s}){super({...s}),this.specObj=e,this.openApiGenericElement=n,this.openApiSemanticElement=i,Array.isArray(r)&&(this.passingOptionsNames=r)}retrievePassingOptions(){return c$(this.passingOptionsNames,this)}retrieveFixedFields(e){const r=Or(["visitors",...e,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(e){return Nf(fa,["visitors",...e],this.specObj)?Or(["visitors",...e],this.specObj):Or(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,r={}){const n=this.retrievePassingOptions(),i=this.retrieveVisitor(e),s={...n,...r};return new i(s)}toRefractedElement(e,r,n={}){const i=this.retrieveVisitorInstance(e,n);return i instanceof Ve&&i?.constructor===Ve?Ke(r):(vr(r,i,n),i.element)}}const Yt=t=>kt(t)&&t.hasKey("$ref"),Hte=kt,Kte=kt,UL=t=>ct(t.key)&&DX("x-",Re(t.key));class bt extends li{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=UL;constructor({specPath:e,ignoredFields:r,canSupportSpecificationExtensions:n,specificationExtensionPredicate:i,...s}){super({...s}),this.specPath=e,this.ignoredFields=r||[],typeof n=="boolean"&&(this.canSupportSpecificationExtensions=n),typeof i=="function"&&(this.specificationExtensionPredicate=i)}ObjectElement(e){const r=this.specPath(e),n=this.retrieveFixedFields(r);return e.forEach((i,s,a)=>{if(ct(s)&&n.includes(Re(s))&&!this.ignoredFields.includes(Re(s))){const o=this.toRefractedElement([...r,"fixedFields",Re(s)],i),u=new pe.MemberElement(Ke(s),o);this.copyMetaAndAttributes(a,u),u.classes.push("fixed-field"),this.element.content.push(u)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(a)){const o=this.toRefractedElement(["document","extension"],a);this.element.content.push(o)}else this.ignoredFields.includes(Re(s))||this.element.content.push(Ke(a))}),this.copyMetaAndAttributes(e,this.element),Rt}}class Gte extends qe(bt,Ve){constructor(e){super(e),this.element=new Kf,this.specPath=ut(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return bt.prototype.ObjectElement.call(this,e)}}class Yte extends qe(li,Ve){StringElement(e){const r=new al(Re(e));return this.copyMetaAndAttributes(e,r),this.element=r,Rt}}class Xte extends li{MemberElement(e){return this.element=Ke(e),this.element.classes.push("specification-extension"),Rt}}let Zte=class extends qe(bt,Ve){constructor(e){super(e),this.element=new rl,this.specPath=ut(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};class Qte extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}}let ere=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Zu,this.specPath=ut(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},tre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new nl,this.specPath=ut(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},rre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new il,this.specPath=ut(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return(ct(this.element.operationId)||ct(this.element.operationRef))&&this.element.classes.push("reference-element"),r}};class nre extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class ire extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class Za extends li{specPath;ignoredFields;fieldPatternPredicate=Aw;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=UL;constructor({specPath:e,ignoredFields:r,fieldPatternPredicate:n,canSupportSpecificationExtensions:i,specificationExtensionPredicate:s,...a}){super({...a}),this.specPath=e,this.ignoredFields=r||[],typeof n=="function"&&(this.fieldPatternPredicate=n),typeof i=="boolean"&&(this.canSupportSpecificationExtensions=i),typeof s=="function"&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach((r,n,i)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(i)){const s=this.toRefractedElement(["document","extension"],i);this.element.content.push(s)}else if(!this.ignoredFields.includes(Re(n))&&this.fieldPatternPredicate(Re(n))){const s=this.specPath(r),a=this.toRefractedElement(s,r),o=new pe.MemberElement(Ke(n),a);this.copyMetaAndAttributes(i,o),o.classes.push("patterned-field"),this.element.content.push(o)}else this.ignoredFields.includes(Re(n))||this.element.content.push(Ke(i))}),this.copyMetaAndAttributes(e,this.element),Rt}}class mt extends Za{constructor(e){super(e),this.fieldPatternPredicate=Df}}let sre=class extends qe(mt,Ve){constructor(e){super(e),this.element=new qx,this.specPath=ut(["value"])}},are=class extends qe(bt,Ve){constructor(e){super(e),this.element=new bl,this.specPath=ut(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};class ore extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("server-url"),r}}let Lx=class extends qe(li,Ve){constructor(e){super(e),this.element=new Qf}ArrayElement(e){return e.forEach(r=>{const n=Hte(r)?["document","objects","Server"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(e,this.element),Rt}},ure=class extends qe(bt,Ve){constructor(e){super(e),this.element=new El,this.specPath=ut(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class lre extends qe(mt,Ve){constructor(e){super(e),this.element=new hx,this.specPath=ut(["document","objects","ServerVariable"])}}let cre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new sl,this.specPath=ut(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class Ci extends li{alternator;constructor({alternator:e,...r}){super({...r}),this.alternator=e||[]}enter(e){const r=this.alternator.map(({predicate:i,specPath:s})=>Mw(i,ut(s),Mf)),n=E$(r)(e);return this.element=this.toRefractedElement(n,e),Rt}}const fre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yu||t(n)&&e("callback",n)&&r("object",n)),pre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xu||t(n)&&e("components",n)&&r("object",n)),dre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Zu||t(n)&&e("contact",n)&&r("object",n)),hre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof el||t(n)&&e("example",n)&&r("object",n)),mre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof tl||t(n)&&e("externalDocumentation",n)&&r("object",n)),bo=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mo||t(n)&&e("header",n)&&r("object",n)),gre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof rl||t(n)&&e("info",n)&&r("object",n)),yre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof nl||t(n)&&e("license",n)&&r("object",n)),vre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof il||t(n)&&e("link",n)&&r("object",n)),bre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof al||t(n)&&e("openapi",n)&&r("string",n)),Ere=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>i=>i instanceof Kf||t(i)&&e("openApi3_0",i)&&r("object",i)&&n("api",i)),VL=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ol||t(n)&&e("operation",n)&&r("object",n)),Sre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof go||t(n)&&e("parameter",n)&&r("object",n)),Ux=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ul||t(n)&&e("pathItem",n)&&r("object",n)),_re=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ll||t(n)&&e("paths",n)&&r("object",n)),Jt=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cl||t(n)&&e("reference",n)&&r("object",n)),wre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fl||t(n)&&e("requestBody",n)&&r("object",n)),np=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pl||t(n)&&e("response",n)&&r("object",n)),xre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dl||t(n)&&e("responses",n)&&r("object",n)),Are=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Yf||t(n)&&e("schema",n)&&r("object",n)),Ore=t=>Ju(t)&&t.classes.includes("boolean-json-schema"),Cre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof yl||t(n)&&e("securityRequirement",n)&&r("object",n)),Rre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vl||t(n)&&e("securityScheme",n)&&r("object",n)),Ire=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bl||t(n)&&e("server",n)&&r("object",n)),Tre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof El||t(n)&&e("serverVariable",n)&&r("object",n)),ip=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof sl||t(n)&&e("mediaType",n)&&r("object",n)),zL=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>i=>i instanceof Qf||t(i)&&e("array",i)&&r("array",i)&&n("servers",i)),Pre=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qu||t(n)&&e("discriminator",n)&&r("object",n)),kre=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:Ore,isCallbackElement:fre,isComponentsElement:pre,isContactElement:dre,isDiscriminatorElement:Pre,isExampleElement:hre,isExternalDocumentationElement:mre,isHeaderElement:bo,isInfoElement:gre,isLicenseElement:yre,isLinkElement:vre,isMediaTypeElement:ip,isOpenApi3_0Element:Ere,isOpenapiElement:bre,isOperationElement:VL,isParameterElement:Sre,isPathItemElement:Ux,isPathsElement:_re,isReferenceElement:Jt,isRequestBodyElement:wre,isResponseElement:np,isResponsesElement:xre,isSchemaElement:Are,isSecurityRequirementElement:Cre,isSecuritySchemeElement:Rre,isServerElement:Ire,isServerVariableElement:Tre,isServersElement:zL},Symbol.toStringTag,{value:"Module"}));let jre=class extends qe(Ci,Ve){constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:rs,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Ci.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Vx=class extends qe(mt,Ve){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("examples"),this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}},Nre=class extends Vx{constructor(e){super(e),this.element=new Tx}},Mre=class extends qe(mt,Ve){constructor(e){super(e),this.element=new Px,this.specPath=ut(["document","objects","Encoding"])}},Dre=class extends qe(mt,Ve){constructor(e){super(e),this.element=new yl,this.specPath=ut(["value"])}},Fre=class extends qe(li,Ve){constructor(e){super(e),this.element=new px}ArrayElement(e){return e.forEach(r=>{if(kt(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(Ke(r))}),this.copyMetaAndAttributes(e,this.element),Rt}},qre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Xu,this.specPath=ut(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},Bre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Xf,this.specPath=ut(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},$re=class extends qe(bt,Ve){constructor(e){super(e),this.element=new cl,this.specPath=ut(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return ct(this.element.$ref)&&this.element.classes.push("reference-element"),r}},Lre=class extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}},Ure=class extends qe(bt,Ve){constructor(e){super(e),this.element=new go,this.specPath=ut(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return kt(this.element.contentProp)&&this.element.contentProp.filter(ip).forEach((n,i)=>{n.setMetaProperty("media-type",Re(i))}),r}},Vre=class extends qe(Ci,Ve){constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:rs,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Ci.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},zre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new mo,this.specPath=ut(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},Wre=class extends qe(Ci,Ve){constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:rs,specPath:["document","objects","Schema"]}]}ObjectElement(e){const r=Ci.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Jre=class extends Vx{constructor(e){super(e),this.element=new Bx}},sp=class extends qe(mt,Ve){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("content"),this.specPath=ut(["document","objects","MediaType"])}},Hre=class extends sp{constructor(e){super(e),this.element=new $x}},Kre=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Yf,this.specPath=ut(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const sD=jr.visitors.document.objects.JSONSchema.fixedFields.allOf;let Gre=class extends sD{ArrayElement(e){const r=sD.prototype.ArrayElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const aD=jr.visitors.document.objects.JSONSchema.fixedFields.anyOf;let Yre=class extends aD{ArrayElement(e){const r=aD.prototype.ArrayElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const oD=jr.visitors.document.objects.JSONSchema.fixedFields.oneOf;let Xre=class extends oD{ArrayElement(e){const r=oD.prototype.ArrayElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const uD=jr.visitors.document.objects.JSONSchema.fixedFields.items;let Zre=class extends uD{ObjectElement(e){const r=uD.prototype.ObjectElement.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(e){return this.enter(e)}};const lD=jr.visitors.document.objects.JSONSchema.fixedFields.properties;let Qre=class extends lD{ObjectElement(e){const r=lD.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const ene=jr.visitors.document.objects.JSONSchema.fixedFields.type;class tne extends ene{ArrayElement(e){return this.enter(e)}}const cD=jr.visitors.JSONSchemaOrJSONReferenceVisitor;class fD extends cD{ObjectElement(e){const r=cD.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}let rne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Qu,this.specPath=ut(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class nne extends qe(mt,Ve){constructor(e){super(e),this.element=new Dx,this.specPath=ut(["value"])}}let ine=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Zf,this.specPath=ut(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},sne=class extends Vx{constructor(e){super(e),this.element=new Ax}},ane=class extends sp{constructor(e){super(e),this.element=new Ox}},one=class extends qe(mt,Ve){constructor(e){super(e),this.element=new ep,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}},une=class extends qe(mt,Ve){constructor(e){super(e),this.element=new mx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(np).forEach((n,i)=>{n.setMetaProperty("http-status-code",Re(i))}),r}},lne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new gx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","parameter")}),r}},cne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new yx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}};class fne extends qe(mt,Ve){constructor(e){super(e),this.element=new vx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","requestBody")}),r}}let pne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new bx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.filter(bo).forEach((n,i)=>{n.setMetaProperty("header-name",Re(i))}),r}};class dne extends qe(mt,Ve){constructor(e){super(e),this.element=new Ex,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","securityScheme")}),r}}let hne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new Sx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}},mne=class extends qe(mt,Ve){constructor(e){super(e),this.element=new _x,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}},gne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new el,this.specPath=ut(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return ct(this.element.externalValue)&&this.element.classes.push("reference-element"),r}};class yne extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}let vne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new tl,this.specPath=ut(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},bne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Wf,this.specPath=ut(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return kt(this.element.headers)&&this.element.headers.filter(bo).forEach((n,i)=>{n.setMetaProperty("header-name",Re(i))}),r}},Ene=class extends qe(mt,Ve){constructor(e){super(e),this.element=new kx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!bo(n))return;const s=Re(i);n.setMetaProperty("headerName",s)}),r}},Sne=class extends qe(Za,Ve){constructor(e){super(e),this.element=new ll,this.specPath=ut(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=rs}ObjectElement(e){const r=Za.prototype.ObjectElement.call(this,e);return this.element.filter(Ux).forEach((n,i)=>{i.classes.push("openapi-path-template"),i.classes.push("path-template"),n.setMetaProperty("path",Ke(i))}),r}},_ne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new fl,this.specPath=ut(["document","objects","RequestBody"])}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return kt(this.element.contentProp)&&this.element.contentProp.filter(ip).forEach((n,i)=>{n.setMetaProperty("media-type",Re(i))}),r}},wne=class extends sp{constructor(e){super(e),this.element=new Ix}},xne=class extends qe(Za,Ve){constructor(e){super(e),this.element=new Yu,this.specPath=ut(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Ux).forEach((n,i)=>{n.setMetaProperty("runtime-expression",Re(i))}),r}},Ane=class extends qe(bt,Ve){constructor(e){super(e),this.element=new pl,this.specPath=ut(["document","objects","Response"])}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return kt(this.element.contentProp)&&this.element.contentProp.filter(ip).forEach((n,i)=>{n.setMetaProperty("media-type",Re(i))}),kt(this.element.headers)&&this.element.headers.filter(bo).forEach((n,i)=>{n.setMetaProperty("header-name",Re(i))}),r}};class One extends qe(mt,Ve){constructor(e){super(e),this.element=new jx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!bo(n))return;const s=Re(i);n.setMetaProperty("header-name",s)}),r}}class Cne extends sp{constructor(e){super(e),this.element=new Nx}}class Rne extends qe(mt,Ve){constructor(e){super(e),this.element=new Mx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}}class pD extends qe(bt,Za){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:r,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=r}ObjectElement(e){const{specPath:r,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const i=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...nX(e.keys(),i)],bt.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=i,Za.prototype.ObjectElement.call(this,e)}catch(i){throw this.specPath=r,i}return Rt}}let Ine=class extends qe(pD,Ve){constructor(e){super(e),this.element=new dl,this.specPathFixedFields=ut(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${jX(100,600).join("|")})$`).test(String(r))}ObjectElement(e){const r=pD.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(np).forEach((n,i)=>{const s=Ke(i);this.fieldPatternPredicate(Re(s))&&n.setMetaProperty("http-status-code",s)}),r}};class Tne extends qe(Ci,Ve){constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:rs,specPath:["document","objects","Response"]}]}ObjectElement(e){const r=Ci.prototype.enter.call(this,e);return Jt(this.element)?this.element.setMetaProperty("referenced-element","response"):np(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}let Pne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new ol,this.specPath=ut(["document","objects","Operation"])}},kne=class extends Ve{constructor(e){super(e),this.element=new Cx}ArrayElement(e){return this.element=this.element.concat(Ke(e)),Rt}},WL=class extends qe(li,Ve){constructor(e){super(e),this.element=new pe.ArrayElement,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach(r=>{const n=Yt(r)?["document","objects","Reference"]:["document","objects","Parameter"],i=this.toRefractedElement(n,r);Jt(i)&&i.setMetaProperty("referenced-element","parameter"),this.element.push(i)}),this.copyMetaAndAttributes(e,this.element),Rt}},jne=class extends WL{constructor(e){super(e),this.element=new tp}},Nne=class extends Ci{constructor(e){super(e),this.alternator=[{predicate:Yt,specPath:["document","objects","Reference"]},{predicate:rs,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const r=Ci.prototype.enter.call(this,e);return Jt(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class Mne extends qe(mt,Ve){specPath;constructor(e){super(e),this.element=new Rx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(Jt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}}class Dne extends qe(li,Ve){constructor(e){super(e),this.element=new rp}ArrayElement(e){return e.forEach(r=>{const n=kt(r)?["document","objects","SecurityRequirement"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(e,this.element),Rt}}let Fne=class extends Lx{constructor(e){super(e),this.element=new zte}},qne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new ul,this.specPath=ut(["document","objects","PathItem"])}ObjectElement(e){const r=bt.prototype.ObjectElement.call(this,e);return this.element.filter(VL).forEach((n,i)=>{const s=Ke(i);s.content=Re(s).toUpperCase(),n.setMetaProperty("http-method",s)}),ct(this.element.$ref)&&this.element.classes.push("reference-element"),r}};class Bne extends Ve{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}class $ne extends Lx{constructor(e){super(e),this.element=new wx}}class Lne extends WL{constructor(e){super(e),this.element=new xx}}let Une=class extends qe(bt,Ve){constructor(e){super(e),this.element=new vl,this.specPath=ut(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},Vne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Hf,this.specPath=ut(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},zne=class extends qe(bt,Ve){constructor(e){super(e),this.element=new Jf,this.specPath=ut(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class Wne extends qe(mt,Ve){constructor(e){super(e),this.element=new Fx,this.specPath=ut(["value"])}}class Jne extends qe(li,Ve){constructor(e){super(e),this.element=new dx}ArrayElement(e){return e.forEach(r=>{const n=Kte(r)?["document","objects","Tag"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(e,this.element),Rt}}const{fixedFields:Sr}=jr.visitors.document.objects.JSONSchema,Ee={visitors:{value:Ve,document:{objects:{OpenApi:{$visitor:Gte,fixedFields:{openapi:Yte,info:{$ref:"#/visitors/document/objects/Info"},servers:Lx,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Fre,tags:Jne,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Zte,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:Qte}},Contact:{$visitor:ere,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:tre,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:are,fixedFields:{url:ore,description:{$ref:"#/visitors/value"},variables:lre}},ServerVariable:{$visitor:ure,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:qre,fixedFields:{schemas:one,responses:une,parameters:lne,examples:cne,requestBodies:fne,headers:pne,securitySchemes:dne,links:hne,callbacks:mne}},Paths:{$visitor:Sne},PathItem:{$visitor:qne,fixedFields:{$ref:Bne,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:$ne,parameters:Lne}},Operation:{$visitor:Pne,fixedFields:{tags:kne,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:jne,requestBody:Nne,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Mne,deprecated:{$ref:"#/visitors/value"},security:Dne,servers:Fne}},ExternalDocumentation:{$visitor:vne,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Ure,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:Vre,example:{$ref:"#/visitors/value"},examples:sne,content:ane}},RequestBody:{$visitor:_ne,fixedFields:{description:{$ref:"#/visitors/value"},content:wne,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:cre,fixedFields:{schema:jre,example:{$ref:"#/visitors/value"},examples:Nre,encoding:Mre}},Encoding:{$visitor:bne,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Ene,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Ine,fixedFields:{default:Tne}},Response:{$visitor:Ane,fixedFields:{description:{$ref:"#/visitors/value"},headers:One,content:Cne,links:Rne}},Callback:{$visitor:xne},Example:{$visitor:gne,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:yne}},Link:{$visitor:rre,fixedFields:{operationRef:nre,operationId:ire,parameters:sre,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:zre,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:Wre,example:{$ref:"#/visitors/value"},examples:Jre,content:Hre}},Tag:{$visitor:Bre,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:$re,fixedFields:{$ref:Lre}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Kre,fixedFields:{title:Sr.title,multipleOf:Sr.multipleOf,maximum:Sr.maximum,exclusiveMaximum:Sr.exclusiveMaximum,minimum:Sr.minimum,exclusiveMinimum:Sr.exclusiveMinimum,maxLength:Sr.maxLength,minLength:Sr.minLength,pattern:Sr.pattern,maxItems:Sr.maxItems,minItems:Sr.minItems,uniqueItems:Sr.uniqueItems,maxProperties:Sr.maxProperties,minProperties:Sr.minProperties,required:Sr.required,enum:Sr.enum,type:tne,allOf:Gre,anyOf:Yre,oneOf:Xre,not:fD,items:Zre,properties:Qre,additionalProperties:fD,description:Sr.description,format:Sr.format,default:Sr.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:rne,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:nne}},XML:{$visitor:ine,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Une,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:Vne,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:zne,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Wne}},SecurityRequirement:{$visitor:Dre}},extension:{$visitor:Xte}}}},Hne=()=>{const t=is(Vte);return{predicates:{...kre,isElement:or,isStringElement:ct,isArrayElement:Fr,isObjectElement:kt,isMemberElement:oi,includesClasses:Ga,hasElementSourceMap:fo},namespace:t}},Kne=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=pe.refract(t),i=js(Ee),s=Or(e,i),a=new s({specObj:i});return vr(n,a),ki(a.element,r,{toolboxCreator:Hne,visitorOptions:{keyMap:Jte,nodeTypeGetter:Wte}})},Dt=t=>(e,r={})=>Kne(e,{specPath:t,...r});Yu.refract=Dt(["visitors","document","objects","Callback","$visitor"]);Xu.refract=Dt(["visitors","document","objects","Components","$visitor"]);Zu.refract=Dt(["visitors","document","objects","Contact","$visitor"]);el.refract=Dt(["visitors","document","objects","Example","$visitor"]);Qu.refract=Dt(["visitors","document","objects","Discriminator","$visitor"]);Wf.refract=Dt(["visitors","document","objects","Encoding","$visitor"]);tl.refract=Dt(["visitors","document","objects","ExternalDocumentation","$visitor"]);mo.refract=Dt(["visitors","document","objects","Header","$visitor"]);rl.refract=Dt(["visitors","document","objects","Info","$visitor"]);nl.refract=Dt(["visitors","document","objects","License","$visitor"]);il.refract=Dt(["visitors","document","objects","Link","$visitor"]);sl.refract=Dt(["visitors","document","objects","MediaType","$visitor"]);Jf.refract=Dt(["visitors","document","objects","OAuthFlow","$visitor"]);Hf.refract=Dt(["visitors","document","objects","OAuthFlows","$visitor"]);al.refract=Dt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Kf.refract=Dt(["visitors","document","objects","OpenApi","$visitor"]);ol.refract=Dt(["visitors","document","objects","Operation","$visitor"]);go.refract=Dt(["visitors","document","objects","Parameter","$visitor"]);ul.refract=Dt(["visitors","document","objects","PathItem","$visitor"]);ll.refract=Dt(["visitors","document","objects","Paths","$visitor"]);cl.refract=Dt(["visitors","document","objects","Reference","$visitor"]);fl.refract=Dt(["visitors","document","objects","RequestBody","$visitor"]);pl.refract=Dt(["visitors","document","objects","Response","$visitor"]);dl.refract=Dt(["visitors","document","objects","Responses","$visitor"]);Yf.refract=Dt(["visitors","document","objects","Schema","$visitor"]);yl.refract=Dt(["visitors","document","objects","SecurityRequirement","$visitor"]);vl.refract=Dt(["visitors","document","objects","SecurityScheme","$visitor"]);bl.refract=Dt(["visitors","document","objects","Server","$visitor"]);El.refract=Dt(["visitors","document","objects","ServerVariable","$visitor"]);Xf.refract=Dt(["visitors","document","objects","Tag","$visitor"]);Zf.refract=Dt(["visitors","document","objects","XML","$visitor"]);class ap extends Yu{}class op extends Xu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}}let up=class extends Zu{};class zx extends Qu{}class Wx extends Wf{}let lp=class extends el{};class cp extends tl{}class fp extends mo{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}let pp=class extends rl{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)}};class da extends pe.StringElement{static default=new da("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,r,n){super(e,r,n),this.element="jsonSchemaDialect"}}let dp=class extends nl{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},hp=class extends il{};class mp extends sl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class Jx extends Jf{}class Hx extends Hf{}class Kx extends al{}class Ms extends pe.ObjectElement{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 Sl=class extends ol{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};class gp extends go{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}class Os extends ul{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 yp extends ll{}class Ds extends cl{}Object.defineProperty(Ds.prototype,"description",{get(){return this.get("description")},set(t){this.set("description",t)},enumerable:!0});Object.defineProperty(Ds.prototype,"summary",{get(){return this.get("summary")},set(t){this.set("summary",t)},enumerable:!0});class vp extends fl{}let bp=class extends pl{},Ep=class extends dl{},_l=class extends yo{constructor(e,r,n){super(e,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new wt("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new wt("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)}},wl=class extends ml{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 wt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new wt("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 wt("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new wt("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new wt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new wt("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 Gne={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft6",_l),e.register("jSONReference",vo),e.register("media",hl),e.register("linkDescription",wl),e}},Yne={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Pi};let JL=class extends FL{constructor(e){super(e),this.element=new _l}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)}},Xne=class extends qL{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Rt}};class Zne extends jt{ArrayElement(e){const r=this.enter(e);return this.element.classes.push("json-schema-examples"),r}}let HL=class extends BL{constructor(e){super(e),this.element=new wl}};const Pr=qr($e(["visitors","document","objects","JSONSchema","$visitor"],JL),bn(["visitors","document","objects","JSONSchema","fixedFields","id"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$id"],jr.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","contains"],jr.visitors.JSONSchemaOrJSONReferenceVisitor),$e(["visitors","document","objects","JSONSchema","fixedFields","items"],Xne),$e(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],jr.visitors.JSONSchemaOrJSONReferenceVisitor),$e(["visitors","document","objects","JSONSchema","fixedFields","const"],jr.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","examples"],Zne),$e(["visitors","document","objects","LinkDescription","$visitor"],HL),$e(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],jr.visitors.JSONSchemaOrJSONReferenceVisitor),bn(["visitors","document","objects","LinkDescription","fixedFields","schema"]),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],jr.visitors.JSONSchemaOrJSONReferenceVisitor),bn(["visitors","document","objects","LinkDescription","fixedFields","method"]),bn(["visitors","document","objects","LinkDescription","fixedFields","encType"]),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],jr.visitors.value))(jr),Qne=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _l||t(n)&&e("JSONSchemaDraft6",n)&&r("object",n)),eie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wl||t(n)&&e("linkDescription",n)&&r("object",n)),tie=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:fx,isJSONSchemaElement:Qne,isLinkDescriptionElement:eie,isMediaElement:DL},Symbol.toStringTag,{value:"Module"})),rie=()=>{const t=is(Gne);return{predicates:{...tie,isStringElement:ct},namespace:t}},nie=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Pr}={})=>{const i=pe.refract(t),s=js(n),a=Or(e,s),o=new a({specObj:s});return vr(i,o),ki(o.element,r,{toolboxCreator:rie,visitorOptions:{keyMap:Yne,nodeTypeGetter:gl}})},KL=t=>(e,r={})=>nie(e,{specPath:t,...r});_l.refract=KL(["visitors","document","objects","JSONSchema","$visitor"]);wl.refract=KL(["visitors","document","objects","LinkDescription","$visitor"]);let xl=class extends _l{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 wt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new wt('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)}},Al=class extends wl{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 wt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new wt("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 wt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new wt("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 iie={namespace:t=>{const{base:e}=t;return e.register("jSONSchemaDraft7",xl),e.register("jSONReference",vo),e.register("linkDescription",Al),e}},sie={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Pi};let GL=class extends JL{constructor(e){super(e),this.element=new xl}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},YL=class extends HL{constructor(e){super(e),this.element=new Al}};const vs=qr($e(["visitors","document","objects","JSONSchema","$visitor"],GL),$e(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Pr.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","if"],Pr.visitors.JSONSchemaOrJSONReferenceVisitor),$e(["visitors","document","objects","JSONSchema","fixedFields","then"],Pr.visitors.JSONSchemaOrJSONReferenceVisitor),$e(["visitors","document","objects","JSONSchema","fixedFields","else"],Pr.visitors.JSONSchemaOrJSONReferenceVisitor),bn(["visitors","document","objects","JSONSchema","fixedFields","media"]),$e(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Pr.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Pr.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Pr.visitors.value),$e(["visitors","document","objects","LinkDescription","$visitor"],YL),$e(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Pr.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Pr.visitors.value),bn(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),$e(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Pr.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Pr.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","description"],Pr.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Pr.visitors.value),$e(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Pr.visitors.JSONSchemaOrJSONReferenceVisitor),bn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Pr.visitors.value))(Pr),aie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xl||t(n)&&e("JSONSchemaDraft7",n)&&r("object",n)),oie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Al||t(n)&&e("linkDescription",n)&&r("object",n)),uie=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:fx,isJSONSchemaElement:aie,isLinkDescriptionElement:oie},Symbol.toStringTag,{value:"Module"})),lie=()=>{const t=is(iie);return{predicates:{...uie,isStringElement:ct},namespace:t}},cie=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=vs}={})=>{const i=pe.refract(t),s=js(n),a=Or(e,s),o=new a({specObj:s});return vr(i,o),ki(o.element,r,{toolboxCreator:lie,visitorOptions:{keyMap:sie,nodeTypeGetter:gl}})},XL=t=>(e,r={})=>cie(e,{specPath:t,...r});xl.refract=XL(["visitors","document","objects","JSONSchema","$visitor"]);Al.refract=XL(["visitors","document","objects","LinkDescription","$visitor"]);let Ol=class extends xl{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 wt("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new wt("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 wt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new wt("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)}},Cl=class extends Al{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 fie={namespace:t=>{const{base:e}=t;return e.register("jSONSchema201909",Ol),e.register("linkDescription",Cl),e}},pie={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Pi};let kr=class extends GL{constructor(e){super(e),this.element=new Ol}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=ra.prototype.ObjectElement.call(this,e);return ct(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}};class die extends jt{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),r}}class hie extends jt{StringElement(e){const r=super.enter(e);return this.element.classes.push("reference-value"),r}}let ZL=class extends qe(Ns,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-$defs"),this.specPath=ut(["document","objects","JSONSchema"])}},QL=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,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),Rt}},e6=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,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),Rt}},t6=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,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),Rt}},r6=class extends qe(Ns,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ut(["document","objects","JSONSchema"])}};class mie extends qe(wn,br,jt){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Rt}ArrayElement(e){return this.element=new pe.ArrayElement,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),Rt}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),Rt}}let n6=class extends qe(Ns,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=ut(["document","objects","JSONSchema"])}},i6=class extends qe(Ns,br,jt){constructor(e){super(e),this.element=new pe.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=ut(["document","objects","JSONSchema"])}};class gie extends jt{ObjectElement(e){const r=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),r}}let s6=class extends YL{constructor(e){super(e),this.element=new Cl}};const Ic=qr($e(["visitors","document","objects","JSONSchema","$visitor"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],die),$e(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],vs.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],vs.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],vs.visitors.value),bn(["visitors","document","objects","JSONReference","$visitor"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$ref"],hie),bn(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$defs"],ZL),$e(["visitors","document","objects","JSONSchema","fixedFields","allOf"],QL),$e(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],e6),$e(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],t6),$e(["visitors","document","objects","JSONSchema","fixedFields","not"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","if"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","then"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","else"],kr),bn(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),$e(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],r6),$e(["visitors","document","objects","JSONSchema","fixedFields","items"],mie),$e(["visitors","document","objects","JSONSchema","fixedFields","contains"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","properties"],n6),$e(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],i6),$e(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],kr),$e(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],vs.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","minContains"],vs.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],gie),$e(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],vs.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],kr),$e(["visitors","document","objects","LinkDescription","$visitor"],s6),$e(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],kr),$e(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],kr),$e(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],kr),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],kr))(vs),yie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ol||t(n)&&e("JSONSchema201909",n)&&r("object",n)),vie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Cl||t(n)&&e("linkDescription",n)&&r("object",n)),bie=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:yie,isLinkDescriptionElement:vie},Symbol.toStringTag,{value:"Module"})),Eie=()=>{const t=is(fie);return{predicates:{...bie,isStringElement:ct},namespace:t}},Sie=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Ic}={})=>{const i=pe.refract(t),s=js(n),a=Or(e,s),o=new a({specObj:s});return vr(i,o),ki(o.element,r,{toolboxCreator:Eie,visitorOptions:{keyMap:pie,nodeTypeGetter:gl}})},a6=t=>(e,r={})=>Sie(e,{specPath:t,...r});Ol.refract=a6(["visitors","document","objects","JSONSchema","$visitor"]);Cl.refract=a6(["visitors","document","objects","LinkDescription","$visitor"]);class Rl extends Ol{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 wt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new wt("$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 wt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new wt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}}class Sp extends Cl{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 _ie={namespace:t=>{const{base:e}=t;return e.register("jSONSchema202012",Rl),e.register("linkDescription",Sp),e}},wie={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Pi};let _r=class extends kr{constructor(e){super(e),this.element=new Rl}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},o6=class extends qe(wn,br,jt){constructor(e){super(e),this.element=new pe.ArrayElement,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),Rt}},xie=class extends s6{constructor(e){super(e),this.element=new Sp}};const u6=qr($e(["visitors","document","objects","JSONSchema","$visitor"],_r),bn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Ic.visitors.value),bn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),$e(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Ic.visitors.value),$e(["visitors","document","objects","JSONSchema","fixedFields","not"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","if"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","then"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","else"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],o6),$e(["visitors","document","objects","JSONSchema","fixedFields","items"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","contains"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],_r),bn(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),$e(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],_r),$e(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],_r),$e(["visitors","document","objects","LinkDescription","$visitor"],xie),$e(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],_r),$e(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],_r),$e(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],_r),$e(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],_r))(Ic),Aie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Rl||t(n)&&e("JSONSchema202012",n)&&r("object",n)),Oie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sp||t(n)&&e("linkDescription",n)&&r("object",n)),Cie=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Aie,isLinkDescriptionElement:Oie},Symbol.toStringTag,{value:"Module"})),Rie=()=>{const t=is(_ie);return{predicates:{...Cie,isStringElement:ct},namespace:t}},Iie=(t,{specPath:e=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=u6}={})=>{const i=pe.refract(t),s=js(n),a=Or(e,s),o=new a({specObj:s});return vr(i,o),ki(o.element,r,{toolboxCreator:Rie,visitorOptions:{keyMap:wie,nodeTypeGetter:gl}})},l6=t=>(e,r={})=>Iie(e,{specPath:t,...r});Rl.refract=l6(["visitors","document","objects","JSONSchema","$visitor"]);Sp.refract=l6(["visitors","document","objects","LinkDescription","$visitor"]);class Cs extends Rl{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 _p extends yl{}class wp extends vl{}class xp extends bl{}class Ap extends El{}class Gx extends Xf{}class Yx extends Zf{}const Xx={namespace:t=>{const{base:e}=t;return e.register("callback",ap),e.register("components",op),e.register("contact",up),e.register("discriminator",zx),e.register("encoding",Wx),e.register("example",lp),e.register("externalDocumentation",cp),e.register("header",fp),e.register("info",pp),e.register("jsonSchemaDialect",da),e.register("license",dp),e.register("link",hp),e.register("mediaType",mp),e.register("oAuthFlow",Jx),e.register("oAuthFlows",Hx),e.register("openapi",Kx),e.register("openApi3_1",Ms),e.register("operation",Sl),e.register("parameter",gp),e.register("pathItem",Os),e.register("paths",yp),e.register("reference",Ds),e.register("requestBody",vp),e.register("response",bp),e.register("responses",Ep),e.register("schema",Cs),e.register("securityRequirement",_p),e.register("securityScheme",wp),e.register("server",xp),e.register("serverVariable",Ap),e.register("tag",Gx),e.register("xml",Yx),e}};class Zx extends pe.ObjectElement{static primaryClass="components-path-items";constructor(e,r,n){super(e,r,n),this.classes.push(Zx.primaryClass)}}class Qx extends pe.ObjectElement{static primaryClass="webhooks";constructor(e,r,n){super(e,r,n),this.classes.push(Qx.primaryClass)}}const Dn=t=>{if(or(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"],...Pi};class Il{internalStore;constructor(e,r,n){this.storageElement=e,this.storageField=r,this.storageSubField=n}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);kt(e)||(e=new pe.ObjectElement,this.storageElement.set(this.storageField,e));let r=e.get(this.storageSubField);Fr(r)||(r=new pe.ArrayElement,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 Tie=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e,i=(o,u)=>!r.isParameterElement(o)||!r.isParameterElement(u)||!r.isStringElement(o.name)||!r.isStringElement(o.in)||!r.isStringElement(u.name)||!r.isStringElement(u.in)?!1:Re(o.name)===Re(u.name)&&Re(o.in)===Re(u.in),s=[];let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new Il(o,t,"parameters")},leave(){a=void 0}},PathItemElement:{enter(o,u,l,c,p){if(p.some(r.isComponentsElement))return;const{parameters:h}=o;r.isArrayElement(h)?s.push([...h.content]):s.push([])},leave(){s.pop()}},OperationElement:{leave(o,u,l,c,p){const h=kf(s);if(!Array.isArray(h)||h.length===0)return;const d=n([...p,l,o]);if(a.includes(d))return;const g=l$([],["parameters","content"],o),y=h$(i,[...g,...h]);o.parameters=new tp(y),a.append(d)}}}}},Pie=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let i,s;return{visitor:{OpenApi3_1Element:{enter(a){s=new Il(a,t,"security-requirements"),r.isArrayElement(a.security)&&(i=a.security)},leave(){s=void 0,i=void 0}},OperationElement:{leave(a,o,u,l,c){if(c.some(r.isComponentsElement))return;const p=n([...c,u,a]);if(s.includes(p))return;if(typeof a.security>"u"&&typeof i<"u"){var g;a.security=new rp((g=i)===null||g===void 0?void 0:g.content),s.append(p)}}}}}},C1=t=>t.replace(/\s/g,""),R1=t=>t.replace(/\W/gi,"_"),kie=(t,e)=>{const r=R1(C1(e.toLowerCase())),n=R1(C1(t));return`${r}${n}`},jie=(t,e,r)=>{const n=C1(t);return n.length>0?R1(n):kie(e,r)},Nie=({storageField:t="x-normalized",operationIdNormalizer:e=jie}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:i,namespace:s}=r,a=[],o=[],u=[];let l;return{visitor:{OpenApi3_1Element:{enter(c){l=new Il(c,t,"operation-ids")},leave(){const c=_X(p=>Re(p.operationId),o);Object.entries(c).forEach(([p,h])=>{Array.isArray(h)&&(h.length<=1||h.forEach((d,g)=>{const y=`${p}${g+1}`;d.operationId=new s.elements.String(y)}))}),u.forEach(p=>{if(typeof p.operationId>"u")return;const h=String(Re(p.operationId)),d=o.find(g=>Re(g.meta.get("originalOperationId"))===h);typeof d>"u"||(p.operationId=Ke.safe(d.operationId),p.meta.set("originalOperationId",h),p.set("__originalOperationId",h))}),o.length=0,u.length=0,l=void 0}},PathItemElement:{enter(c){const p=Ha("path",Re(c.meta.get("path")));a.push(p)},leave(){a.pop()}},OperationElement:{enter(c,p,h,d,g){if(typeof c.operationId>"u")return;const y=i([...g,h,c]);if(l.includes(y))return;const v=String(Re(c.operationId)),E=kf(a),b=Ha("method",Re(c.meta.get("http-method"))),_=e(v,E,b);v!==_&&(c.operationId=new s.elements.String(_),c.set("__originalOperationId",v),c.meta.set("originalOperationId",v),o.push(c),l.append(y))}},LinkElement:{leave(c){n.isLinkElement(c)&&(typeof c.operationId>"u"||u.push(c))}}}}},Mie=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new Il(s,t,"parameter-examples")},leave(){i=void 0}},ParameterElement:{leave(s,a,o,u,l){var c,p;if(l.some(r.isComponentsElement)||typeof s.schema>"u"||!r.isSchemaElement(s.schema)||typeof((c=s.schema)===null||c===void 0?void 0:c.example)>"u"&&typeof((p=s.schema)===null||p===void 0?void 0:p.examples)>"u")return;const h=n([...l,o,s]);if(!i.includes(h)){if(typeof s.examples<"u"&&r.isObjectElement(s.examples)){const d=s.examples.map(g=>Ke.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",d),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",d[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Ke(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Ke(s.example)),i.append(h)))}}}}}},Die=({storageField:t="x-normalized"}={})=>e=>{const{predicates:r,ancestorLineageToJSONPointer:n}=e;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new Il(s,t,"header-examples")},leave(){i=void 0}},HeaderElement:{leave(s,a,o,u,l){var c,p;if(l.some(r.isComponentsElement)||typeof s.schema>"u"||!r.isSchemaElement(s.schema)||typeof((c=s.schema)===null||c===void 0?void 0:c.example)>"u"&&typeof((p=s.schema)===null||p===void 0?void 0:p.examples)>"u")return;const h=n([...l,o,s]);if(!i.includes(h)){if(typeof s.examples<"u"&&r.isObjectElement(s.examples)){const d=s.examples.map(g=>Ke.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",d),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",d[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Ke(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Ke(s.example)),i.append(h)))}}}}}},Fie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ap||t(n)&&e("callback",n)&&r("object",n)),qie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof op||t(n)&&e("components",n)&&r("object",n)),Bie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof up||t(n)&&e("contact",n)&&r("object",n)),$ie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof lp||t(n)&&e("example",n)&&r("object",n)),Lie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cp||t(n)&&e("externalDocumentation",n)&&r("object",n)),Uie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fp||t(n)&&e("header",n)&&r("object",n)),Vie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof pp||t(n)&&e("info",n)&&r("object",n)),c6=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof da||t(n)&&e("jsonSchemaDialect",n)&&r("string",n)),zie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof dp||t(n)&&e("license",n)&&r("object",n)),Wie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof hp||t(n)&&e("link",n)&&r("object",n)),Jie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Kx||t(n)&&e("openapi",n)&&r("string",n)),f6=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r,hasClass:n})=>i=>i instanceof Ms||t(i)&&e("openApi3_1",i)&&r("object",i)&&n("api",i)),p6=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Sl||t(n)&&e("operation",n)&&r("object",n)),Hie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof gp||t(n)&&e("parameter",n)&&r("object",n)),na=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Os||t(n)&&e("pathItem",n)&&r("object",n)),Kie=t=>{if(!na(t)||!ct(t.$ref))return!1;const e=Re(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},Gie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof yp||t(n)&&e("paths",n)&&r("object",n)),ha=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ds||t(n)&&e("reference",n)&&r("object",n)),Yie=t=>{if(!ha(t)||!ct(t.$ref))return!1;const e=Re(t.$ref);return typeof e=="string"&&e.length>0&&!e.startsWith("#")},Xie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof vp||t(n)&&e("requestBody",n)&&r("object",n)),Zie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bp||t(n)&&e("response",n)&&r("object",n)),Qie=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ep||t(n)&&e("responses",n)&&r("object",n)),ei=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Cs||t(n)&&e("schema",n)&&r("object",n)),eA=t=>Ju(t)&&t.classes.includes("boolean-json-schema"),ese=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof _p||t(n)&&e("securityRequirement",n)&&r("object",n)),tse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof wp||t(n)&&e("securityScheme",n)&&r("object",n)),rse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xp||t(n)&&e("server",n)&&r("object",n)),nse=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ap||t(n)&&e("serverVariable",n)&&r("object",n)),ise=Ue(({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof mp||t(n)&&e("mediaType",n)&&r("object",n)),sse=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:eA,isCallbackElement:Fie,isComponentsElement:qie,isContactElement:Bie,isExampleElement:$ie,isExternalDocumentationElement:Lie,isHeaderElement:Uie,isInfoElement:Vie,isJsonSchemaDialectElement:c6,isLicenseElement:zie,isLinkElement:Wie,isMediaTypeElement:ise,isOpenApi3_1Element:f6,isOpenapiElement:Jie,isOperationElement:p6,isParameterElement:Hie,isPathItemElement:na,isPathItemElementExternal:Kie,isPathsElement:Gie,isReferenceElement:ha,isReferenceElementExternal:Yie,isRequestBodyElement:Xie,isResponseElement:Zie,isResponsesElement:Qie,isSchemaElement:ei,isSecurityRequirementElement:ese,isSecuritySchemeElement:tse,isServerElement:rse,isServerVariableElement:nse},Symbol.toStringTag,{value:"Module"})),ase=t=>{const e=t.reduce((r,n,i)=>{if(oi(n)){const s=String(Re(n.key));r.push(s)}else if(Fr(t[i-2])){const s=String(t[i-2].content.indexOf(n));r.push(s)}return r},[]);return IL(e)},d6=()=>{const t=is(Xx);return{predicates:{...sse,isElement:or,isStringElement:ct,isArrayElement:Fr,isObjectElement:kt,isMemberElement:oi,isServersElement:zL,includesClasses:Ga,hasElementSourceMap:fo},ancestorLineageToJSONPointer:ase,namespace:t}};class ose extends qe(bt,Ve){constructor(e){super(e),this.element=new Ms,this.specPath=ut(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,bt.prototype.ObjectElement.call(this,e)}}const use=Ee.visitors.document.objects.Info.$visitor;class lse extends use{constructor(e){super(e),this.element=new pp}}const cse=Ee.visitors.document.objects.Contact.$visitor;class fse extends cse{constructor(e){super(e),this.element=new up}}const pse=Ee.visitors.document.objects.License.$visitor;class dse extends pse{constructor(e){super(e),this.element=new dp}}const hse=Ee.visitors.document.objects.Link.$visitor;class mse extends hse{constructor(e){super(e),this.element=new hp}}class gse extends qe(li,Ve){StringElement(e){const r=new da(Re(e));return this.copyMetaAndAttributes(e,r),this.element=r,Rt}}const yse=Ee.visitors.document.objects.Server.$visitor;class vse extends yse{constructor(e){super(e),this.element=new xp}}const bse=Ee.visitors.document.objects.ServerVariable.$visitor;class Ese extends bse{constructor(e){super(e),this.element=new Ap}}const Sse=Ee.visitors.document.objects.MediaType.$visitor;class _se extends Sse{constructor(e){super(e),this.element=new mp}}const wse=Ee.visitors.document.objects.SecurityRequirement.$visitor;class xse extends wse{constructor(e){super(e),this.element=new _p}}const Ase=Ee.visitors.document.objects.Components.$visitor;class Ose extends Ase{constructor(e){super(e),this.element=new op}}const Cse=Ee.visitors.document.objects.Tag.$visitor;class Rse extends Cse{constructor(e){super(e),this.element=new Gx}}const Ise=Ee.visitors.document.objects.Reference.$visitor;class Tse extends Ise{constructor(e){super(e),this.element=new Ds}}const Pse=Ee.visitors.document.objects.Parameter.$visitor;class kse extends Pse{constructor(e){super(e),this.element=new gp}}const jse=Ee.visitors.document.objects.Header.$visitor;class Nse extends jse{constructor(e){super(e),this.element=new fp}}class Mse extends qe(bt,br,Ve){constructor(e){super(e),this.element=new Cs,this.specPath=ut(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=da.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const r=bt.prototype.ObjectElement.call(this,e);return ct(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(e){return _r.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return this.openApiSemanticElement!==void 0&&c6(this.openApiSemanticElement.jsonSchemaDialect)?e=Re(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&ct(this.openApiGenericElement.get("jsonSchemaDialect"))?e=Re(this.openApiGenericElement.get("jsonSchemaDialect")):e=Re(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return _r.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return _r.prototype.handleSchemaIdentifier.call(this,e)}}class Dse extends ZL{constructor(e){super(e),this.passingOptionsNames.push("parent")}}let Fse=class extends QL{constructor(e){super(e),this.passingOptionsNames.push("parent")}};class qse extends e6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class Bse extends t6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class $se extends r6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class Lse extends o6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class Use extends n6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}class Vse extends i6{constructor(e){super(e),this.passingOptionsNames.push("parent")}}const zse=Ee.visitors.document.objects.Discriminator.$visitor;class Wse extends zse{constructor(e){super(e),this.element=new zx,this.canSupportSpecificationExtensions=!0}}const Jse=Ee.visitors.document.objects.XML.$visitor;class Hse extends Jse{constructor(e){super(e),this.element=new Yx}}class Kse extends qe(mt,Ve){constructor(e){super(e),this.element=new ep,this.specPath=ut(["document","objects","Schema"])}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(ei).forEach((n,i)=>{n.setMetaProperty("schemaName",Re(i))}),r}}class Gse extends qe(mt,Ve){constructor(e){super(e),this.element=new Zx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(ha).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const Yse=Ee.visitors.document.objects.Example.$visitor;class Xse extends Yse{constructor(e){super(e),this.element=new lp}}const Zse=Ee.visitors.document.objects.ExternalDocumentation.$visitor;class Qse extends Zse{constructor(e){super(e),this.element=new cp}}const eae=Ee.visitors.document.objects.Encoding.$visitor;class tae extends eae{constructor(e){super(e),this.element=new Wx}}const rae=Ee.visitors.document.objects.Paths.$visitor;class nae extends rae{constructor(e){super(e),this.element=new yp}}const iae=Ee.visitors.document.objects.RequestBody.$visitor;class sae extends iae{constructor(e){super(e),this.element=new vp}}const dD=Ee.visitors.document.objects.Callback.$visitor;class aae extends dD{constructor(e){super(e),this.element=new ap,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=dD.prototype.ObjectElement.call(this,e);return this.element.filter(ha).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const oae=Ee.visitors.document.objects.Response.$visitor;class uae extends oae{constructor(e){super(e),this.element=new bp}}const lae=Ee.visitors.document.objects.Responses.$visitor;class cae extends lae{constructor(e){super(e),this.element=new Ep}}const fae=Ee.visitors.document.objects.Operation.$visitor;class pae extends fae{constructor(e){super(e),this.element=new Sl}}const dae=Ee.visitors.document.objects.PathItem.$visitor;class hae extends dae{constructor(e){super(e),this.element=new Os}}const mae=Ee.visitors.document.objects.SecurityScheme.$visitor;class gae extends mae{constructor(e){super(e),this.element=new wp}}const yae=Ee.visitors.document.objects.OAuthFlows.$visitor;class vae extends yae{constructor(e){super(e),this.element=new Hx}}const bae=Ee.visitors.document.objects.OAuthFlow.$visitor;class Eae extends bae{constructor(e){super(e),this.element=new Jx}}class Sae extends qe(mt,Ve){constructor(e){super(e),this.element=new Qx,this.specPath=r=>Yt(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const r=mt.prototype.ObjectElement.call(this,e);return this.element.filter(ha).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),this.element.filter(na).forEach((n,i)=>{n.setMetaProperty("webhook-name",Re(i))}),r}}const{JSONSchema:_ae,LinkDescription:wae}=u6.visitors.document.objects,xae={visitors:{value:Ee.visitors.value,document:{objects:{OpenApi:{$visitor:ose,fixedFields:{openapi:Ee.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:gse,servers:Ee.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Sae,components:{$ref:"#/visitors/document/objects/Components"},security:Ee.visitors.document.objects.OpenApi.fixedFields.security,tags:Ee.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:lse,fixedFields:{title:Ee.visitors.document.objects.Info.fixedFields.title,description:Ee.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Ee.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Ee.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:fse,fixedFields:{name:Ee.visitors.document.objects.Contact.fixedFields.name,url:Ee.visitors.document.objects.Contact.fixedFields.url,email:Ee.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:dse,fixedFields:{name:Ee.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Ee.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:vse,fixedFields:{url:Ee.visitors.document.objects.Server.fixedFields.url,description:Ee.visitors.document.objects.Server.fixedFields.description,variables:Ee.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Ese,fixedFields:{enum:Ee.visitors.document.objects.ServerVariable.fixedFields.enum,default:Ee.visitors.document.objects.ServerVariable.fixedFields.default,description:Ee.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Ose,fixedFields:{schemas:Kse,responses:Ee.visitors.document.objects.Components.fixedFields.responses,parameters:Ee.visitors.document.objects.Components.fixedFields.parameters,examples:Ee.visitors.document.objects.Components.fixedFields.examples,requestBodies:Ee.visitors.document.objects.Components.fixedFields.requestBodies,headers:Ee.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Ee.visitors.document.objects.Components.fixedFields.securitySchemes,links:Ee.visitors.document.objects.Components.fixedFields.links,callbacks:Ee.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Gse}},Paths:{$visitor:nae},PathItem:{$visitor:hae,fixedFields:{$ref:Ee.visitors.document.objects.PathItem.fixedFields.$ref,summary:Ee.visitors.document.objects.PathItem.fixedFields.summary,description:Ee.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:Ee.visitors.document.objects.PathItem.fixedFields.servers,parameters:Ee.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:pae,fixedFields:{tags:Ee.visitors.document.objects.Operation.fixedFields.tags,summary:Ee.visitors.document.objects.Operation.fixedFields.summary,description:Ee.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Ee.visitors.document.objects.Operation.fixedFields.operationId,parameters:Ee.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Ee.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Ee.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Ee.visitors.document.objects.Operation.fixedFields.deprecated,security:Ee.visitors.document.objects.Operation.fixedFields.security,servers:Ee.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Qse,fixedFields:{description:Ee.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Ee.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:kse,fixedFields:{name:Ee.visitors.document.objects.Parameter.fixedFields.name,in:Ee.visitors.document.objects.Parameter.fixedFields.in,description:Ee.visitors.document.objects.Parameter.fixedFields.description,required:Ee.visitors.document.objects.Parameter.fixedFields.required,deprecated:Ee.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Ee.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Ee.visitors.document.objects.Parameter.fixedFields.style,explode:Ee.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.Parameter.fixedFields.example,examples:Ee.visitors.document.objects.Parameter.fixedFields.examples,content:Ee.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:sae,fixedFields:{description:Ee.visitors.document.objects.RequestBody.fixedFields.description,content:Ee.visitors.document.objects.RequestBody.fixedFields.content,required:Ee.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:_se,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.MediaType.fixedFields.example,examples:Ee.visitors.document.objects.MediaType.fixedFields.examples,encoding:Ee.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:tae,fixedFields:{contentType:Ee.visitors.document.objects.Encoding.fixedFields.contentType,headers:Ee.visitors.document.objects.Encoding.fixedFields.headers,style:Ee.visitors.document.objects.Encoding.fixedFields.style,explode:Ee.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:cae,fixedFields:{default:Ee.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:uae,fixedFields:{description:Ee.visitors.document.objects.Response.fixedFields.description,headers:Ee.visitors.document.objects.Response.fixedFields.headers,content:Ee.visitors.document.objects.Response.fixedFields.content,links:Ee.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:aae},Example:{$visitor:Xse,fixedFields:{summary:Ee.visitors.document.objects.Example.fixedFields.summary,description:Ee.visitors.document.objects.Example.fixedFields.description,value:Ee.visitors.document.objects.Example.fixedFields.value,externalValue:Ee.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:mse,fixedFields:{operationRef:Ee.visitors.document.objects.Link.fixedFields.operationRef,operationId:Ee.visitors.document.objects.Link.fixedFields.operationId,parameters:Ee.visitors.document.objects.Link.fixedFields.parameters,requestBody:Ee.visitors.document.objects.Link.fixedFields.requestBody,description:Ee.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Nse,fixedFields:{description:Ee.visitors.document.objects.Header.fixedFields.description,required:Ee.visitors.document.objects.Header.fixedFields.required,deprecated:Ee.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Ee.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Ee.visitors.document.objects.Header.fixedFields.style,explode:Ee.visitors.document.objects.Header.fixedFields.explode,allowReserved:Ee.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Ee.visitors.document.objects.Header.fixedFields.example,examples:Ee.visitors.document.objects.Header.fixedFields.examples,content:Ee.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Rse,fixedFields:{name:Ee.visitors.document.objects.Tag.fixedFields.name,description:Ee.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Tse,fixedFields:{$ref:Ee.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...wae},Schema:{$visitor:Mse,fixedFields:{..._ae.fixedFields,$defs:Dse,allOf:Fse,anyOf:qse,oneOf:Bse,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:$se,prefixItems:Lse,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Use,patternProperties:Vse,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:Wse,fixedFields:{propertyName:Ee.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Ee.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Hse,fixedFields:{name:Ee.visitors.document.objects.XML.fixedFields.name,namespace:Ee.visitors.document.objects.XML.fixedFields.namespace,prefix:Ee.visitors.document.objects.XML.fixedFields.prefix,attribute:Ee.visitors.document.objects.XML.fixedFields.attribute,wrapped:Ee.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:gae,fixedFields:{type:Ee.visitors.document.objects.SecurityScheme.fixedFields.type,description:Ee.visitors.document.objects.SecurityScheme.fixedFields.description,name:Ee.visitors.document.objects.SecurityScheme.fixedFields.name,in:Ee.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Ee.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Ee.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Ee.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:vae,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:Eae,fixedFields:{authorizationUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Ee.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Ee.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:xse}},extension:{$visitor:Ee.visitors.document.extension.$visitor}}}},Aae=(t,{specPath:e=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=pe.refract(t),i=js(xae),s=Or(e,i),a=new s({specObj:i});return vr(n,a),ki(a.element,r,{toolboxCreator:d6,visitorOptions:{keyMap:Qn,nodeTypeGetter:Dn}})},Mt=t=>(e,r={})=>Aae(e,{specPath:t,...r});ap.refract=Mt(["visitors","document","objects","Callback","$visitor"]);op.refract=Mt(["visitors","document","objects","Components","$visitor"]);up.refract=Mt(["visitors","document","objects","Contact","$visitor"]);lp.refract=Mt(["visitors","document","objects","Example","$visitor"]);zx.refract=Mt(["visitors","document","objects","Discriminator","$visitor"]);Wx.refract=Mt(["visitors","document","objects","Encoding","$visitor"]);cp.refract=Mt(["visitors","document","objects","ExternalDocumentation","$visitor"]);fp.refract=Mt(["visitors","document","objects","Header","$visitor"]);pp.refract=Mt(["visitors","document","objects","Info","$visitor"]);da.refract=Mt(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]);dp.refract=Mt(["visitors","document","objects","License","$visitor"]);hp.refract=Mt(["visitors","document","objects","Link","$visitor"]);mp.refract=Mt(["visitors","document","objects","MediaType","$visitor"]);Jx.refract=Mt(["visitors","document","objects","OAuthFlow","$visitor"]);Hx.refract=Mt(["visitors","document","objects","OAuthFlows","$visitor"]);Kx.refract=Mt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Ms.refract=Mt(["visitors","document","objects","OpenApi","$visitor"]);Sl.refract=Mt(["visitors","document","objects","Operation","$visitor"]);gp.refract=Mt(["visitors","document","objects","Parameter","$visitor"]);Os.refract=Mt(["visitors","document","objects","PathItem","$visitor"]);yp.refract=Mt(["visitors","document","objects","Paths","$visitor"]);Ds.refract=Mt(["visitors","document","objects","Reference","$visitor"]);vp.refract=Mt(["visitors","document","objects","RequestBody","$visitor"]);bp.refract=Mt(["visitors","document","objects","Response","$visitor"]);Ep.refract=Mt(["visitors","document","objects","Responses","$visitor"]);Cs.refract=Mt(["visitors","document","objects","Schema","$visitor"]);_p.refract=Mt(["visitors","document","objects","SecurityRequirement","$visitor"]);wp.refract=Mt(["visitors","document","objects","SecurityScheme","$visitor"]);xp.refract=Mt(["visitors","document","objects","Server","$visitor"]);Ap.refract=Mt(["visitors","document","objects","ServerVariable","$visitor"]);Gx.refract=Mt(["visitors","document","objects","Tag","$visitor"]);Yx.refract=Mt(["visitors","document","objects","XML","$visitor"]);class Oae extends Ku{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),i=new ni;if(n.length!==0){const s=new pe.StringElement(n);s.classes.push("result"),i.push(s)}return i}catch(r){throw new Yi(`Error parsing "${e.uri}"`,{cause:r})}}}class Cae extends OQ{constructor(e){super({...e??{},name:"openapi-3-1"})}canResolve(e,r){const n=r.dereference.strategies.find(i=>i.name==="openapi-3-1");return n===void 0?!1:n.canDereference(e,r)}async resolve(e,r){const n=r.dereference.strategies.find(a=>a.name==="openapi-3-1");if(n===void 0)throw new Z$('"openapi-3-1" dereference strategy is not available.');const i=new Ka,s=O$(r,{resolve:{internal:!1},dereference:{refSet:i}});return await n.dereference(e,s),i}}const{AbortController:Rae,AbortSignal:Iae}=globalThis;typeof globalThis.AbortController>"u"&&(globalThis.AbortController=Rae);typeof globalThis.AbortSignal>"u"&&(globalThis.AbortSignal=Iae);class Tae extends AQ{swaggerHTTPClient=lu;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=lu,swaggerHTTPClientConfig:r={},...n}={}){super({...n,name:"http-swagger-client"}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=r}getHttpClient(){return this.swaggerHTTPClient}async read(e){const r=this.getHttpClient(),n=new AbortController,{signal:i}=n,s=setTimeout(()=>{n.abort()},this.timeout),a=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=this.redirects===0?"error":"follow",u=this.redirects>0?this.redirects:void 0;try{return(await r({url:e.uri,signal:i,userFetch:async(c,p)=>{let h=await fetch(c,p);try{h.headers.delete("Content-Type")}catch{h=new Response(h.body,{...h,headers:new Headers(h.headers)}),h.headers.delete("Content-Type")}return h},credentials:a,redirect:o,follow:u,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(l){throw new C$(`Error downloading "${e.uri}"`,{cause:l})}finally{clearTimeout(s)}}}class Pae extends Ku{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 Yi("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new ni,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const i=K$(JSON.parse(n));return i.classes.push("result"),r.push(i),r}catch(i){throw new Yi(`Error parsing "${e.uri}"`,{cause:i})}}}class kae extends Ku{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 ea.load(e.toString(),{schema:iu}),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Yi("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new ni,n=e.toString();try{const i=ea.load(n,{schema:iu});if(this.allowEmpty&&typeof i>"u")return r;const s=K$(i);return s.classes.push("result"),r.push(s),r}catch(i){throw new Yi(`Error parsing "${e.uri}"`,{cause:i})}}}class jae extends Ku{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new cx(...Xa.filterByFormat("generic"),...Xa.filterByFormat("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{const i=e.toString();return JSON.parse(i),this.detectionRegExp.test(i)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Yi("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new ni,n=e.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const i=JSON.parse(n),s=Ms.refract(i,this.refractorOpts);return s.classes.push("result"),r.push(s),r}catch(i){throw new Yi(`Error parsing "${e.uri}"`,{cause:i})}}}class Nae extends Ku{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;constructor(e={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new cx(...Xa.filterByFormat("generic"),...Xa.filterByFormat("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{const i=e.toString();return ea.load(i),this.detectionRegExp.test(i)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new Yi("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const r=new ni,n=e.toString();try{const i=ea.load(n,{schema:iu});if(this.allowEmpty&&typeof i>"u")return r;const s=Ms.refract(i,this.refractorOpts);return s.classes.push("result"),r.push(s),r}catch(i){throw new Yi(`Error parsing "${e.uri}"`,{cause:i})}}}const Op=t=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(t),Qa=t=>{const e=x$(t);return S$("#",e)},Mae=t=>{if(!Op(t))throw new TQ(t);return t},tA=(t,e)=>{const r=Mae(t),n=H$(i=>ei(i)&&Re(i.$anchor)===r,e);if(ks(n))throw new RQ(`Evaluation failed on token: "${r}"`);return n},h6=(t,e)=>{if(typeof e.$ref>"u")return;const r=x$(Re(e.$ref)),n=Re(e.meta.get("ancestorsSchemaIdentifiers"));return`${co((s,a)=>Nr(s,qf(zt(a))),t,[...n,Re(e.$ref)])}${r==="#"?"":r}`},Dae=(t,e)=>{if(typeof e.$id>"u")return;const r=Re(e.meta.get("ancestorsSchemaIdentifiers"));return co((n,i)=>Nr(n,qf(zt(i))),t,r)},Xo=t=>{if(Xo.cache.has(t))return Xo.cache.get(t);const e=Cs.refract(t);return Xo.cache.set(t,e),e};Xo.cache=new WeakMap;const $r=t=>Zs(t)?Xo(t):t,Cp=(t,e)=>{const{cache:r}=Cp,n=zt(t),i=a=>ei(a)&&typeof a.$id<"u";if(!r.has(e)){const a=lQ(i,e);r.set(e,Array.from(a))}const s=r.get(e).find(a=>Dae(n,a)===n);if(ks(s))throw new Zw(`Evaluation failed on URI: "${t}"`);return Op(Qa(t))?tA(Qa(t),s):Zn(s,Nn(t))};Cp.cache=new WeakMap;const oc=vr[Symbol.for("nodejs.util.promisify.custom")],Tr=new Yw,Tn=(t,e,r,n)=>{oi(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class Js{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;constructor({reference:e,namespace:r,options:n,indirections:i=[],ancestors:s=new eS,refractCache:a=new Map,allOfDiscriminatorMapping:o=new Map}){this.indirections=i,this.namespace=r,this.reference=e,this.options=n,this.ancestors=new eS(...s),this.refractCache=a,this.allOfDiscriminatorMapping=o}toBaseURI(e){return Nr(this.reference.uri,qf(zt(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new PQ(`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(f$(r,"uri"));const i=await RZ(Ei(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new Hi({uri:r,value:Ke(i),depth:this.reference.depth+1});if(n.add(s),this.options.dereference.immutable){const a=new Hi({uri:`immutable://${r}`,value:i,depth:this.reference.depth+1});n.add(a)}return s}toAncestorLineage(e){const r=new Set(e.filter(or));return[new eS(...this.ancestors,r),r]}OpenApi3_1Element={leave:(e,r,n,i,s,a)=>{var o;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping))return;const u=Ar(e);return u.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),a.replaceWith(u,Tn),n?void 0:u}};async ReferenceElement(e,r,n,i,s,a){if(this.indirections.includes(e))return!1;const[o,u]=this.toAncestorLineage([...s,n]),l=this.toBaseURI(Re(e.$ref)),c=zt(this.reference.uri)===l,p=!c;if(!this.options.resolve.internal&&c||!this.options.resolve.external&&p)return!1;const h=await this.toReference(Re(e.$ref)),d=Nr(l,Re(e.$ref));this.indirections.push(e);const g=Nn(d);let y=Zn(h.value.result,g);if(y.id=Tr.identify(y),Zs(y)){const S=Re(e.meta.get("referenced-element")),A=`${S}-${Re(Tr.identify(y))}`;this.refractCache.has(A)?y=this.refractCache.get(A):Yt(y)?(y=Ds.refract(y),y.setMetaProperty("referenced-element",S),this.refractCache.set(A,y)):(y=this.namespace.getElementClass(S).refract(y),this.refractCache.set(A,y))}if(e===y)throw new nr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(y)){if(h.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,E;const S=new pe.RefElement(y.id,{type:"reference",uri:h.uri,$ref:Re(e.$ref)}),I=((v=(E=this.options.dereference.strategyOpts["openapi-3-1"])===null||E===void 0?void 0:E.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(S);return a.replaceWith(I,Tn),n?!1:I}}const b=zt(h.refSet.rootRef.uri)!==h.uri,_=["error","replace"].includes(this.options.dereference.circular);if((p||b||ha(y)||_)&&!o.includesCycle(y)){u.add(e);const S=new Js({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await oc(y,S,{keyMap:Qn,nodeTypeGetter:Dn}),u.delete(e)}this.indirections.pop();const w=Ar(y);return w.setMetaProperty("id",Tr.generateId()),w.setMetaProperty("ref-fields",{$ref:Re(e.$ref),description:Re(e.description),summary:Re(e.summary)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Ke(Tr.identify(e))),kt(y)&&kt(w)&&(e.hasKey("description")&&"description"in y&&(w.remove("description"),w.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in y&&(w.remove("summary"),w.set("summary",e.get("summary")))),a.replaceWith(w,Tn),n?!1:w}async PathItemElement(e,r,n,i,s,a){if(!ct(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,u]=this.toAncestorLineage([...s,n]),l=this.toBaseURI(Re(e.$ref)),c=zt(this.reference.uri)===l,p=!c;if(!this.options.resolve.internal&&c||!this.options.resolve.external&&p)return;const h=await this.toReference(Re(e.$ref)),d=Nr(l,Re(e.$ref));this.indirections.push(e);const g=Nn(d);let y=Zn(h.value.result,g);if(y.id=Tr.identify(y),Zs(y)){const w=`path-item-${Re(Tr.identify(y))}`;this.refractCache.has(w)?y=this.refractCache.get(w):(y=Os.refract(y),this.refractCache.set(w,y))}if(e===y)throw new nr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(y)){if(h.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,E;const w=new pe.RefElement(y.id,{type:"path-item",uri:h.uri,$ref:Re(e.$ref)}),A=((v=(E=this.options.dereference.strategyOpts["openapi-3-1"])===null||E===void 0?void 0:E.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(w);return a.replaceWith(A,Tn),n?!1:A}}const b=zt(h.refSet.rootRef.uri)!==h.uri,_=["error","replace"].includes(this.options.dereference.circular);if((p||b||na(y)&&ct(y.$ref)||_)&&!o.includesCycle(y)){u.add(e);const w=new Js({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await oc(y,w,{keyMap:Qn,nodeTypeGetter:Dn}),u.delete(e)}if(this.indirections.pop(),na(y)){const w=new Os([...y.content],Ke(y.meta),Ke(y.attributes));w.setMetaProperty("id",Tr.generateId()),e.forEach((S,A,I)=>{w.remove(Re(A)),w.content.push(I)}),w.remove("$ref"),w.setMetaProperty("ref-fields",{$ref:Re(e.$ref)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Ke(Tr.identify(e))),y=w}return a.replaceWith(y,Tn),n?void 0:y}async LinkElement(e,r,n,i,s,a){if(!ct(e.operationRef)&&!ct(e.operationId))return;if(ct(e.operationRef)&&ct(e.operationId))throw new nr("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(ct(e.operationRef)){var u;const c=Nn(Re(e.operationRef)),p=this.toBaseURI(Re(e.operationRef)),h=zt(this.reference.uri)===p,d=!h;if(!this.options.resolve.internal&&h||!this.options.resolve.external&&d)return;const g=await this.toReference(Re(e.operationRef));if(o=Zn(g.value.result,c),Zs(o)){const v=`operation-${Re(Tr.identify(o))}`;this.refractCache.has(v)?o=this.refractCache.get(v):(o=Sl.refract(o),this.refractCache.set(v,o))}o=Ar(o),o.setMetaProperty("ref-origin",g.uri);const y=Ar(e);return(u=y.operationRef)===null||u===void 0||u.meta.set("operation",o),a.replaceWith(y,Tn),n?void 0:y}if(ct(e.operationId)){var l;const c=Re(e.operationId),p=await this.toReference(Ei(this.reference.uri));if(o=H$(d=>p6(d)&&or(d.operationId)&&d.operationId.equals(c),p.value.result),ks(o))throw new nr(`OperationElement(operationId=${c}) not found.`);const h=Ar(e);return(l=h.operationId)===null||l===void 0||l.meta.set("operation",o),a.replaceWith(h,Tn),n?void 0:h}}async ExampleElement(e,r,n,i,s,a){if(!ct(e.externalValue))return;if(e.hasKey("value")&&ct(e.externalValue))throw new nr("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Re(e.externalValue)),u=zt(this.reference.uri)===o,l=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&l)return;const c=await this.toReference(Re(e.externalValue)),p=Ar(c.value.result);p.setMetaProperty("ref-origin",c.uri);const h=Ar(e);return h.value=p,a.replaceWith(h,Tn),n?void 0:h}async MemberElement(e,r,n,i,s,a){var o;const u=s[s.length-1];if(!kt(u)||!u.classes.contains("discriminator-mapping"))return;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping)||!ct(e.key)||!ct(e.value)||this.indirections.includes(e))return!1;this.indirections.push(e);const[l,c]=this.toAncestorLineage([...s,n]),p=[...c].findLast(ei),h=Ke(p.getMetaProperty("ancestorsSchemaIdentifiers")),d=Re(e.value),y=/^[a-zA-Z0-9\\.\\-_]+$/.test(d)?`#/components/schemas/${d}`:d,v=new Cs({$ref:y});v.setMetaProperty("ancestorsSchemaIdentifiers",h),c.add(v);const E=new Js({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:l,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping}),b=await oc(v,E,{keyMap:Qn,nodeTypeGetter:Dn});c.delete(v),this.indirections.pop();const _=Ar(e);return _.value.setMetaProperty("ref-schema",b),a.replaceWith(_,Tn),n?void 0:_}async SchemaElement(e,r,n,i,s,a){if(!ct(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,u]=this.toAncestorLineage([...s,n]);let l=await this.toReference(Ei(this.reference.uri)),{uri:c}=l;const p=h6(c,e),h=zt(p),d=new uu({uri:h}),g=TX(D=>D.canRead(d),this.options.resolve.resolvers),y=!g;let v=zt(this.reference.uri)===p,E=!v;this.indirections.push(e);let b;try{if(g||y){c=this.toBaseURI(p);const D=p,R=$r(l.value.result);if(b=Cp(D,R),b=$r(b),b.id=Tr.identify(b),!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return}else{if(c=this.toBaseURI(p),v=zt(this.reference.uri)===c,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;l=await this.toReference(Ei(p));const D=Nn(p),R=$r(l.value.result);b=Zn(R,D),b=$r(b),b.id=Tr.identify(b)}}catch(D){if(y&&D instanceof Zw)if(Op(Qa(p))){if(v=zt(this.reference.uri)===c,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;l=await this.toReference(Ei(p));const R=Qa(p),$=$r(l.value.result);b=tA(R,$),b=$r(b),b.id=Tr.identify(b)}else{if(c=this.toBaseURI(p),v=zt(this.reference.uri)===c,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;l=await this.toReference(Ei(p));const R=Nn(p),$=$r(l.value.result);b=Zn($,R),b=$r(b),b.id=Tr.identify(b)}else throw D}if(e===b)throw new nr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(b)){if(l.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var _,w;const D=new pe.RefElement(b.id,{type:"json-schema",uri:l.uri,$ref:Re(e.$ref)}),$=((_=(w=this.options.dereference.strategyOpts["openapi-3-1"])===null||w===void 0?void 0:w.circularReplacer)!==null&&_!==void 0?_:this.options.dereference.circularReplacer)(D);return a.replaceWith($,Tn),n?!1:$}}const S=zt(l.refSet.rootRef.uri)!==l.uri,A=["error","replace"].includes(this.options.dereference.circular);if((E||S||ei(b)&&ct(b.$ref)||A)&&!o.includesCycle(b)){u.add(e);const D=new Js({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});b=await oc(b,D,{keyMap:Qn,nodeTypeGetter:Dn}),u.delete(e)}if(this.indirections.pop(),eA(b)){const D=Ke(b);return D.setMetaProperty("id",Tr.generateId()),D.setMetaProperty("ref-fields",{$ref:Re(e.$ref),$refBaseURI:p}),D.setMetaProperty("ref-origin",l.uri),D.setMetaProperty("ref-referencing-element-id",Ke(Tr.identify(e))),a.replaceWith(D,Tn),n?!1:D}if(ei(b)){var I;const D=new Cs([...b.content],Ke(b.meta),Ke(b.attributes));if(D.setMetaProperty("id",Tr.generateId()),e.forEach((R,$,M)=>{D.remove(Re($)),D.content.push(M)}),D.remove("$ref"),D.setMetaProperty("ref-fields",{$ref:Re(e.$ref),$refBaseURI:p}),D.setMetaProperty("ref-origin",l.uri),D.setMetaProperty("ref-referencing-element-id",Ke(Tr.identify(e))),(I=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&I!==void 0&&I.dereferenceDiscriminatorMapping){var T;const R=s[s.length-1],$=[...u].findLast(ei),M=$?.getMetaProperty("schemaName"),K=Re(D.getMetaProperty("schemaName"));if(K&&M&&R!==null&&R!==void 0&&(T=R.classes)!==null&&T!==void 0&&T.contains("json-schema-allOf")){var k;const ee=(k=this.allOfDiscriminatorMapping.get(K))!==null&&k!==void 0?k:[];ee.push($),this.allOfDiscriminatorMapping.set(K,ee)}}b=D}return a.replaceWith(b,Tn),n?void 0:b}}const Fae=vr[Symbol.for("nodejs.util.promisify.custom")];class qae extends CQ{constructor(e){super({...e??{},name:"openapi-3-1"})}canDereference(e){var r;return e.mediaType!=="text/plain"?Xa.includes(e.mediaType):f6((r=e.parseResult)===null||r===void 0?void 0:r.result)}async dereference(e,r){var n;const i=is(Xx),s=(n=r.dereference.refSet)!==null&&n!==void 0?n:new Ka,a=new Ka;let o=s,u;s.has(e.uri)?u=s.find(f$(e.uri,"uri")):(u=new Hi({uri:e.uri,value:e.parseResult}),s.add(u)),r.dereference.immutable&&(s.refs.map(p=>new Hi({...p,value:Ke(p.value)})).forEach(p=>a.add(p)),u=a.find(p=>p.uri===e.uri),o=a);const l=new Js({reference:u,namespace:i,options:r}),c=await Fae(o.rootRef.value,l,{keyMap:Qn,nodeTypeGetter:Dn});return r.dereference.immutable&&a.refs.filter(p=>p.uri.startsWith("immutable://")).map(p=>new Hi({...p,uri:p.uri.replace(/^immutable:\/\//,"")})).forEach(p=>s.add(p)),r.dereference.refSet===null&&s.clean(),a.clean(),c}}const Bae=t=>t.slice(2),Gn=t=>{const e=Bae(t);return e.reduce((r,n,i)=>{if(oi(n)){const s=String(Re(n.key));r.push(s)}else if(Fr(e[i-2])){const s=e[i-2].content.indexOf(n);r.push(s)}return r},[])};class $ae{modelPropertyMacro;options;SchemaElement={leave:(e,r,n,i,s)=>{typeof e.properties>"u"||kt(e.properties)&&e.properties.forEach(a=>{if(kt(a))try{const l=this.modelPropertyMacro(Re(a));a.set("default",l)}catch(l){var o,u;const c=new Error(l,{cause:l});c.fullPath=[...Gn([...s,n,e]),"properties"],(o=this.options.dereference.dereferenceOpts)===null||o===void 0||(o=o.errors)===null||o===void 0||(u=o.push)===null||u===void 0||u.call(o,c)}})}};constructor({modelPropertyMacro:e,options:r}){this.modelPropertyMacro=e,this.options=r}}class Lae{options;SchemaElement={leave(e,r,n,i,s){if(typeof e.allOf>"u")return;if(!Fr(e.allOf)){var a,o;const p=new TypeError("allOf must be an array");p.fullPath=[...Gn([...s,n,e]),"allOf"],(a=this.options.dereference.dereferenceOpts)===null||a===void 0||(a=a.errors)===null||a===void 0||(o=a.push)===null||o===void 0||o.call(a,p);return}if(e.allOf.isEmpty){e.remove("allOf");return}if(!e.allOf.content.every(ei)){var l,c;const p=new TypeError("Elements in allOf must be objects");p.fullPath=[...Gn([...s,n,e]),"allOf"],(l=this.options.dereference.dereferenceOpts)===null||l===void 0||(l=l.errors)===null||l===void 0||(c=l.push)===null||c===void 0||c.call(l,p);return}for(;e.hasKey("allOf");){const{allOf:p}=e;e.remove("allOf");const h=Fn.all([...p.content,e],{customMerge:d=>Re(d)==="enum"?(g,y)=>{if(Ga(["json-schema-enum"],g)&&Ga(["json-schema-enum"],y)){const v=(b,_)=>Fr(b)||Fr(_)||kt(b)||kt(_)?!1:b.equals(Re(_)),E=Ar(g);return E.content=h$(v)([...g.content,...y.content]),E}return Fn(g,y)}:Fn});if(e.hasKey("$$ref")||h.remove("$$ref"),e.hasKey("example")){const d=h.getMember("example");d&&(d.value=e.get("example"))}if(e.hasKey("examples")){const d=h.getMember("examples");d&&(d.value=e.get("examples"))}e.content=h.content}}};constructor({options:e}){this.options=e}}class Uae{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,r,n,i,s)=>{const a=this.#e?Re(this.#e):null,o=Re(e);try{const c=this.parameterMacro(a,o);e.set("default",c)}catch(c){var u,l;const p=new Error(c,{cause:c});p.fullPath=Gn([...s,n]),(u=this.options.dereference.dereferenceOpts)===null||u===void 0||(u=u.errors)===null||u===void 0||(l=u.push)===null||l===void 0||l.call(u,p)}}};constructor({parameterMacro:e,options:r}){this.parameterMacro=e,this.options=r}}const uc=t=>{if(t.cause==null)return t;let{cause:e}=t;for(;e.cause!=null;)e=e.cause;return e};class Vae extends Ai{}const{wrapError:sS}=ex,aS=vr[Symbol.for("nodejs.util.promisify.custom")],Pn=new Yw,Ls=(t,e,r,n)=>{oi(n)?n.value=t:Array.isArray(n)&&(n[r]=t)};class Zo extends Js{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:r=!1,basePath:n=null,...i}){super(i),this.allowMetaPatches=e,this.useCircularStructures=r,this.basePath=n}async ReferenceElement(e,r,n,i,s,a){try{if(this.indirections.includes(e))return!1;const[d,g]=this.toAncestorLineage([...s,n]),y=this.toBaseURI(Re(e.$ref)),v=zt(this.reference.uri)===y,E=!v;if(!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return!1;const b=await this.toReference(Re(e.$ref)),_=Nr(y,Re(e.$ref));this.indirections.push(e);const w=Nn(_);let S=Zn(b.value.result,w);if(S.id=Pn.identify(S),Zs(S)){const k=Re(e.meta.get("referenced-element")),D=`${k}-${Re(Pn.identify(S))}`;this.refractCache.has(D)?S=this.refractCache.get(D):Yt(S)?(S=Ds.refract(S),S.setMetaProperty("referenced-element",k),this.refractCache.set(D,S)):(S=this.namespace.getElementClass(k).refract(S),this.refractCache.set(D,S))}if(e===S)throw new nr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(d.includes(S)){if(b.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var o,u;const k=new pe.RefElement(S.id,{type:"reference",uri:b.uri,$ref:Re(e.$ref),baseURI:_,referencingElement:e}),R=((o=(u=this.options.dereference.strategyOpts["openapi-3-1"])===null||u===void 0?void 0:u.circularReplacer)!==null&&o!==void 0?o:this.options.dereference.circularReplacer)(k);return a.replaceWith(k,Ls),n?!1:R}}const A=zt(b.refSet.rootRef.uri)!==b.uri,I=["error","replace"].includes(this.options.dereference.circular);if((E||A||ha(S)||I)&&!d.includesCycle(S)){var l;g.add(e);const k=new Zo({reference:b,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:d,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Gn([...s,n,e]),"$ref"]});S=await aS(S,k,{keyMap:Qn,nodeTypeGetter:Dn}),g.delete(e)}this.indirections.pop();const T=Ar(S);if(T.setMetaProperty("ref-fields",{$ref:Re(e.$ref),description:Re(e.description),summary:Re(e.summary)}),T.setMetaProperty("ref-origin",b.uri),T.setMetaProperty("ref-referencing-element-id",Ke(Pn.identify(e))),kt(S)&&(e.hasKey("description")&&"description"in S&&(T.remove("description"),T.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in S&&(T.remove("summary"),T.set("summary",e.get("summary")))),this.allowMetaPatches&&kt(T)&&!T.hasKey("$$ref")){const k=Nr(y,_);T.set("$$ref",k)}return a.replaceWith(T,Ls),n?!1:T}catch(d){var c,p,h;const g=uc(d),y=sS(g,{baseDoc:this.reference.uri,$ref:Re(e.$ref),pointer:Nn(Re(e.$ref)),fullPath:(c=this.basePath)!==null&&c!==void 0?c:[...Gn([...s,n,e]),"$ref"]});(p=this.options.dereference.dereferenceOpts)===null||p===void 0||(p=p.errors)===null||p===void 0||(h=p.push)===null||h===void 0||h.call(p,y);return}}async PathItemElement(e,r,n,i,s,a){try{if(!ct(e.$ref))return;if(this.indirections.includes(e)||Ga(["cycle"],e.$ref))return!1;const[d,g]=this.toAncestorLineage([...s,n]),y=this.toBaseURI(Re(e.$ref)),v=zt(this.reference.uri)===y,E=!v;if(!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;const b=await this.toReference(Re(e.$ref)),_=Nr(y,Re(e.$ref));this.indirections.push(e);const w=Nn(_);let S=Zn(b.value.result,w);if(S.id=Pn.identify(S),Zs(S)){const T=`path-item-${Re(Pn.identify(S))}`;this.refractCache.has(T)?S=this.refractCache.get(T):(S=Os.refract(S),this.refractCache.set(T,S))}if(e===S)throw new nr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(d.includes(S)){if(b.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var o,u;const T=new pe.RefElement(S.id,{type:"path-item",uri:b.uri,$ref:Re(e.$ref),baseURI:_,referencingElement:e}),D=((o=(u=this.options.dereference.strategyOpts["openapi-3-1"])===null||u===void 0?void 0:u.circularReplacer)!==null&&o!==void 0?o:this.options.dereference.circularReplacer)(T);return a.replaceWith(T,Ls),n?!1:D}}const A=zt(b.refSet.rootRef.uri)!==b.uri,I=["error","replace"].includes(this.options.dereference.circular);if((E||A||na(S)&&ct(S.$ref)||I)&&!d.includesCycle(S)){var l;g.add(e);const T=new Zo({reference:b,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:d,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Gn([...s,n,e]),"$ref"]});S=await aS(S,T,{keyMap:Qn,nodeTypeGetter:Dn}),g.delete(e)}if(this.indirections.pop(),na(S)){const T=new Os([...S.content],Ke(S.meta),Ke(S.attributes));if(e.forEach((k,D,R)=>{T.remove(Re(D)),T.content.push(R)}),T.remove("$ref"),T.setMetaProperty("ref-fields",{$ref:Re(e.$ref)}),T.setMetaProperty("ref-origin",b.uri),T.setMetaProperty("ref-referencing-element-id",Ke(Pn.identify(e))),this.allowMetaPatches&&typeof T.get("$$ref")>"u"){const k=Nr(y,_);T.set("$$ref",k)}S=T}return a.replaceWith(S,Ls),n?void 0:S}catch(d){var c,p,h;const g=uc(d),y=sS(g,{baseDoc:this.reference.uri,$ref:Re(e.$ref),pointer:Nn(Re(e.$ref)),fullPath:(c=this.basePath)!==null&&c!==void 0?c:[...Gn([...s,n,e]),"$ref"]});(p=this.options.dereference.dereferenceOpts)===null||p===void 0||(p=p.errors)===null||p===void 0||(h=p.push)===null||h===void 0||h.call(p,y);return}}async SchemaElement(e,r,n,i,s,a){try{if(!ct(e.$ref))return;if(this.indirections.includes(e))return!1;const[d,g]=this.toAncestorLineage([...s,n]);let y=await this.toReference(Ei(this.reference.uri)),{uri:v}=y;const E=h6(v,e),b=zt(E),_=new uu({uri:b}),w=!this.options.resolve.resolvers.some(R=>R.canRead(_)),S=!w;let A=zt(this.reference.uri)===E,I=!A;this.indirections.push(e);let T;try{if(w||S){v=this.toBaseURI(E);const R=E,$=$r(y.value.result);if(T=Cp(R,$),T=$r(T),T.id=Pn.identify(T),!this.options.resolve.internal&&A||!this.options.resolve.external&&I)return}else{if(v=this.toBaseURI(E),A=zt(this.reference.uri)===v,I=!A,!this.options.resolve.internal&&A||!this.options.resolve.external&&I)return;y=await this.toReference(Ei(E));const R=Nn(E),$=$r(y.value.result);T=Zn($,R),T=$r(T),T.id=Pn.identify(T)}}catch(R){if(S&&R instanceof Zw)if(Op(Qa(E))){if(A=zt(this.reference.uri)===v,I=!A,!this.options.resolve.internal&&A||!this.options.resolve.external&&I)return;y=await this.toReference(Ei(E));const $=Qa(E),M=$r(y.value.result);T=tA($,M),T=$r(T),T.id=Pn.identify(T)}else{if(v=this.toBaseURI(Re(E)),A=zt(this.reference.uri)===v,I=!A,!this.options.resolve.internal&&A||!this.options.resolve.external&&I)return;y=await this.toReference(Ei(E));const $=Nn(E),M=$r(y.value.result);T=Zn(M,$),T=$r(T),T.id=Pn.identify(T)}else throw R}if(e===T)throw new nr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ua(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(d.includes(T)){if(y.refSet.circular=!0,this.options.dereference.circular==="error")throw new nr("Circular reference detected");if(this.options.dereference.circular==="replace"){var o,u;const R=new pe.RefElement(T.id,{type:"json-schema",uri:y.uri,$ref:Re(e.$ref),baseURI:Nr(v,E),referencingElement:e}),M=((o=(u=this.options.dereference.strategyOpts["openapi-3-1"])===null||u===void 0?void 0:u.circularReplacer)!==null&&o!==void 0?o:this.options.dereference.circularReplacer)(R);return a.replaceWith(M,Ls),n?!1:M}}const k=zt(y.refSet.rootRef.uri)!==y.uri,D=["error","replace"].includes(this.options.dereference.circular);if((I||k||ei(T)&&ct(T.$ref)||D)&&!d.includesCycle(T)){var l;g.add(e);const R=new Zo({reference:y,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:d,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Gn([...s,n,e]),"$ref"]});T=await aS(T,R,{keyMap:Qn,nodeTypeGetter:Dn}),g.delete(e)}if(this.indirections.pop(),eA(T)){const R=Ke(T);return R.setMetaProperty("ref-fields",{$ref:Re(e.$ref)}),R.setMetaProperty("ref-origin",y.uri),R.setMetaProperty("ref-referencing-element-id",Ke(Pn.identify(e))),a.replaceWith(R,Ls),n?!1:R}if(ei(T)){const R=new Cs([...T.content],Ke(T.meta),Ke(T.attributes));if(e.forEach(($,M,K)=>{R.remove(Re(M)),R.content.push(K)}),R.remove("$ref"),R.setMetaProperty("ref-fields",{$ref:Re(e.$ref)}),R.setMetaProperty("ref-origin",y.uri),R.setMetaProperty("ref-referencing-element-id",Ke(Pn.identify(e))),this.allowMetaPatches&&typeof R.get("$$ref")>"u"){const $=Nr(v,E);R.set("$$ref",$)}T=R}return a.replaceWith(T,Ls),n?void 0:T}catch(d){var c,p,h;const g=uc(d),y=new Vae(`Could not resolve reference: ${g.message}`,{baseDoc:this.reference.uri,$ref:Re(e.$ref),fullPath:(c=this.basePath)!==null&&c!==void 0?c:[...Gn([...s,n,e]),"$ref"],cause:g});(p=this.options.dereference.dereferenceOpts)===null||p===void 0||(p=p.errors)===null||p===void 0||(h=p.push)===null||h===void 0||h.call(p,y);return}}async LinkElement(){}async ExampleElement(e,r,n,i,s,a){try{return await super.ExampleElement(e,r,n,i,s,a)}catch(c){var o,u,l;const p=uc(c),h=sS(p,{baseDoc:this.reference.uri,externalValue:Re(e.externalValue),fullPath:(o=this.basePath)!==null&&o!==void 0?o:[...Gn([...s,n,e]),"externalValue"]});(u=this.options.dereference.dereferenceOpts)===null||u===void 0||(u=u.errors)===null||u===void 0||(l=u.push)===null||l===void 0||l.call(u,h);return}}}const zae=Vf[Symbol.for("nodejs.util.promisify.custom")];class Wae{constructor({parameterMacro:e,modelPropertyMacro:r,mode:n,options:i,...s}){const a=[];a.push(new Zo({...s,options:i})),typeof r=="function"&&a.push(new $ae({modelPropertyMacro:r,options:i})),n!=="strict"&&a.push(new Lae({options:i})),typeof e=="function"&&a.push(new Uae({parameterMacro:e,options:i}));const o=zae(a,{nodeTypeGetter:Dn});Object.assign(this,o)}}const Jae=vr[Symbol.for("nodejs.util.promisify.custom")];class Hae extends qae{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:r=null,modelPropertyMacro:n=null,mode:i="non-strict",ancestors:s=[],...a}={}){super({...a}),this.name="openapi-3-1-swagger-client",this.allowMetaPatches=e,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=i,this.ancestors=[...s]}async dereference(e,r){var n;const i=is(Xx),s=(n=r.dereference.refSet)!==null&&n!==void 0?n:new Ka,a=new Ka;let o=s,u;s.has(e.uri)?u=s.find(p=>p.uri===e.uri):(u=new Hi({uri:e.uri,value:e.parseResult}),s.add(u)),r.dereference.immutable&&(s.refs.map(p=>new Hi({...p,value:Ke(p.value)})).forEach(p=>a.add(p)),u=a.find(p=>p.uri===e.uri),o=a);const l=new Wae({reference:u,namespace:i,options:r,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await Jae(o.rootRef.value,l,{keyMap:Qn,nodeTypeGetter:Dn});return r.dereference.immutable&&a.refs.filter(p=>p.uri.startsWith("immutable://")).map(p=>new Hi({...p,uri:p.uri.replace(/^immutable:\/\//,"")})).forEach(p=>s.add(p)),r.dereference.refSet===null&&s.clean(),a.clean(),c}}const Kae=t=>{const e=Re(t.meta.get("baseURI")),r=t.meta.get("referencingElement");return new pe.ObjectElement({$ref:e},Ke(r.meta),Ke(r.attributes))},Rp=async t=>{const{spec:e,timeout:r,redirects:n,requestInterceptor:i,responseInterceptor:s,pathDiscriminator:a=[],allowMetaPatches:o=!1,useCircularStructures:u=!1,skipNormalization:l=!1,parameterMacro:c=null,modelPropertyMacro:p=null,mode:h="non-strict",strategies:d}=t;try{const{cache:g}=Rp,y=d.find(ee=>ee.match(e)),v=$w(E1())?E1():tf,E=sx(t),b=Nr(v,E);let _;g.has(e)?_=g.get(e):(_=Ms.refract(e),_.classes.push("result"),g.set(e,_));const w=new ni([_]),S=IL(a),A=S===""?"":`#${S}`,I=Zn(_,S),T=new Hi({uri:b,value:w}),k=new Ka({refs:[T]});S!==""&&(k.rootRef=void 0);const D=[new Set([I])],R=[],$=await kQ(I,{resolve:{baseURI:`${b}${A}`,resolvers:[new Tae({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:s}},strategies:[new Cae]},parse:{mediaType:Xa.latest(),parsers:[new jae({allowEmpty:!1,sourceMap:!1}),new Nae({allowEmpty:!1,sourceMap:!1}),new Pae({allowEmpty:!1,sourceMap:!1}),new kae({allowEmpty:!1,sourceMap:!1}),new Oae({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new Hae({allowMetaPatches:o,useCircularStructures:u,parameterMacro:c,modelPropertyMacro:p,mode:h,ancestors:D})],refSet:k,dereferenceOpts:{errors:R},immutable:!1,circular:u?"ignore":"replace",circularReplacer:u?A$.dereference.circularReplacer:Kae}}),M=hQ(I,$,_),K=l?M:y.normalize(M);return{spec:Re(K),errors:R}}catch(g){if(g instanceof Qs)return{spec:e,errors:[]};throw g}};Rp.cache=new WeakMap;const hD=t=>{if(!kt(t))return t;const e=[Nie({operationIdNormalizer:(n,i,s)=>zf({operationId:n},i,s,{v2OperationIdCompatibilityMode:!1})}),Tie(),Pie(),Mie(),Die()];return ki(t,e,{toolboxCreator:d6,visitorOptions:{keyMap:Qn,nodeTypeGetter:Dn}})},Gae=t=>e=>{const r=Ms.refract(e);r.classes.push("result");const n=t(r),i=Re(n);return Rp.cache.set(i,n),Re(n)},Yae={name:"openapi-3-1-apidom",match(t){return ux(t)},normalize(t){if(!or(t)&&ri(t)&&!t.$$normalized){const e=Gae(hD)(t);return e.$$normalized=!0,e}return or(t)?hD(t):t},async resolve(t){return Rp(t)}},Xae=async t=>{const{spec:e,requestInterceptor:r,responseInterceptor:n}=t,i=sx(t),s=SL(t),a=e||await gL(s,{requestInterceptor:r,responseInterceptor:n})(i),o={...t,spec:a};return t.strategies.find(l=>l.match(a)).resolve(o)},m6=t=>async e=>{const r={...t,...e};return Xae(r)},Zae=m6({strategies:[CL,OL,wL]});function Qae(){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
106
+ `,e+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
107
+ `,e+=`server-variable = "{" server-variable-name "}"
108
+ `,e+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
109
+ `,e+=`
110
+ `,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
111
+ `,e+=`; https://www.rfc-editor.org/errata/eid6937
112
+ `,e+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
113
+ `,e+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
114
+ `,e+=` / pct-encoded)
115
+ `,e+=` ; any Unicode character except: CTL, SP,
116
+ `,e+=` ; DQUOTE, "%" (aside from pct-encoded),
117
+ `,e+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',e+=`
118
+ `,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
119
+ `,e+=`DIGIT = %x30-39 ; 0-9
120
+ `,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
121
+ `,e+=`
122
+ `,e+=`pct-encoded = "%" HEXDIG HEXDIG
123
+ `,e+=`
124
+ `,e+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
125
+ `,e+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
126
+ `,e+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
127
+ `,e+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
128
+ `,e+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
129
+ `,e+=` / %xD0000-DFFFD / %xE1000-EFFFD
130
+ `,e+=`
131
+ `,e+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
132
+ `,e}}const eoe=(t,e,r,n,i)=>{if(t===vt.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-url-template",_n.charsToString(e,r,n)])}return vt.SEM_OK},toe=(t,e,r,n,i)=>{if(t===vt.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable",_n.charsToString(e,r,n)])}return vt.SEM_OK},roe=(t,e,r,n,i)=>{if(t===vt.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable-name",_n.charsToString(e,r,n)])}return vt.SEM_OK},noe=(t,e,r,n,i)=>{if(t===vt.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["literals",_n.charsToString(e,r,n)])}return vt.SEM_OK},ioe=new Qae,g6=t=>{const e=new Ln;return e.ast=new lx,e.ast.callbacks["server-url-template"]=eoe,e.ast.callbacks["server-variable"]=toe,e.ast.callbacks["server-variable-name"]=roe,e.ast.callbacks.literals=noe,{result:e.parse(ioe,"server-url-template",t),ast:e.ast}},soe=(t,{strict:e=!1}={})=>{try{const r=g6(t);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const i=n.some(([s])=>s==="server-variable");if(!e&&!i)try{return new URL(t,"https://vladimirgorej.com"),!0}catch{return!1}return e?i:!0}catch{return!1}},aoe=t=>{try{return typeof t=="string"&&decodeURIComponent(t)!==t}catch{return!1}},ooe=t=>aoe(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),uoe=["literals","server-variable-name"],loe=(t,e,r={})=>{const i={...{encoder:ooe},...r},s=g6(t);if(!s.result.success)return t;const a=[];return s.ast.translate(a),a.filter(([u])=>uoe.includes(u)).map(([u,l])=>u==="server-variable-name"?Object.hasOwn(e,l)?i.encoder(e[l],l):`{${l}}`:l).join("")};function y6(){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
133
+ `,e+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
134
+ `,e+=`path-template = slash *( path-segment slash ) [ path-segment ]
135
+ `,e+=`path-segment = 1*( path-literal / template-expression )
136
+ `,e+=`slash = "/"
137
+ `,e+=`path-literal = 1*pchar
138
+ `,e+=`template-expression = "{" template-expression-param-name "}"
139
+ `,e+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
140
+ `,e+=`
141
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
142
+ `,e+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
143
+ `,e+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
144
+ `,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
145
+ `,e+=`pct-encoded = "%" HEXDIG HEXDIG
146
+ `,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
147
+ `,e+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
148
+ `,e+=` / "*" / "+" / "," / ";" / "="
149
+ `,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
150
+ `,e+=`
151
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
152
+ `,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
153
+ `,e+=`DIGIT = %x30-39 ; 0-9
154
+ `,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
155
+ `,e}}const coe=(t,e,r,n,i)=>(t===vt.SEM_PRE&&i.push(["slash",_n.charsToString(e,r,n)]),vt.SEM_OK),foe=(t,e,r,n,i)=>{if(t===vt.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["path-template",_n.charsToString(e,r,n)])}return vt.SEM_OK},poe=(t,e,r,n,i)=>(t===vt.SEM_PRE&&i.push(["path-literal",_n.charsToString(e,r,n)]),vt.SEM_OK),doe=(t,e,r,n,i)=>(t===vt.SEM_PRE&&i.push(["template-expression",_n.charsToString(e,r,n)]),vt.SEM_OK),hoe=(t,e,r,n,i)=>(t===vt.SEM_PRE&&i.push(["template-expression-param-name",_n.charsToString(e,r,n)]),vt.SEM_OK),moe=new y6,goe=t=>{const e=new Ln;return e.ast=new lx,e.ast.callbacks["path-template"]=foe,e.ast.callbacks.slash=coe,e.ast.callbacks["path-literal"]=poe,e.ast.callbacks["template-expression"]=doe,e.ast.callbacks["template-expression-param-name"]=hoe,{result:e.parse(moe,"path-template",t),ast:e.ast}},yoe=t=>{try{return typeof t=="string"&&decodeURIComponent(t)!==t}catch{return!1}},voe=t=>yoe(t)?t:encodeURIComponent(t).replace(/%5B/g,"[").replace(/%5D/g,"]"),boe=["slash","path-literal","template-expression-param-name"],I1=(t,e,r={})=>{const i={...{encoder:voe},...r},s=goe(t);if(!s.result.success)return t;const a=[];return s.ast.translate(a),a.filter(([u])=>boe.includes(u)).map(([u,l])=>u==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(e,l)?i.encoder(e[l],l):`{${l}}`:l).join("")};new y6;new Ln;const Eoe={body:Soe,header:woe,query:Aoe,path:xoe,formData:_oe};function Soe({req:t,value:e}){e!==void 0&&(t.body=e)}function _oe({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 woe({req:t,parameter:e,value:r}){t.headers=t.headers||{},typeof r<"u"&&(t.headers[e.name]=r)}function xoe({req:t,value:e,parameter:r,baseURL:n}){if(e!==void 0){const i=t.url.replace(n,""),s=I1(i,{[r.name]:e});t.url=n+s}}function Aoe({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 Ip(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 Tl(){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
156
+ `,e+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
157
+ `,e+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
158
+ `,e+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
159
+ `,e+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
160
+ `,e+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
161
+ `,e+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
162
+ `,e+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
163
+ `,e+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
164
+ `,e+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
165
+ `,e+=` ; Allow all printable characters except CTLs, semicolon and SP
166
+ `,e+=`
167
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
168
+ `,e+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
169
+ `,e+=`
170
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
171
+ `,e+=`; https://www.rfc-editor.org/errata/eid5518
172
+ `,e+=`cookie-pair = cookie-name "=" cookie-value
173
+ `,e+=`cookie-name = token
174
+ `,e+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
175
+ `,e+=` ; https://www.rfc-editor.org/errata/eid8242
176
+ `,e+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
177
+ `,e+=` ; US-ASCII characters excluding CTLs,
178
+ `,e+=` ; whitespace, DQUOTE, comma, semicolon,
179
+ `,e+=` ; and backslash
180
+ `,e+=`
181
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
182
+ `,e+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
183
+ `,e+=`
184
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
185
+ `,e+=`token = 1*(tchar)
186
+ `,e+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
187
+ `,e+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',e+=` / DIGIT / ALPHA
188
+ `,e+=` ; any VCHAR, except delimiters
189
+ `,e+=`
190
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
191
+ `,e+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
192
+ `,e+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
193
+ `,e+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
194
+ `,e+=`SP = %x20 ; US-ASCII SP, space (32)
195
+ `,e+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
196
+ `,e+=`
197
+ `,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
198
+ `,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
199
+ `,e+=`DIGIT = %x30-39 ; 0-9
200
+ `,e+=`DQUOTE = %x22 ; " (Double Quote)
201
+ `,e+=`WSP = SP / HTAB ; white space
202
+ `,e+=`HTAB = %x09 ; horizontal tab
203
+ `,e+=`CRLF = CR LF ; Internet standard newline
204
+ `,e+=`CR = %x0D ; carriage return
205
+ `,e+=`LF = %x0A ; linefeed
206
+ `,e}}new Tl;const Ooe=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)},Coe=t=>t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),Tp=t=>t.length>=2&&t.startsWith('"')&&t.endsWith('"'),v6=t=>Tp(t)?t.slice(1,-1):t,b6=t=>`"${t}"`,E6=t=>t,Roe=new Ln,Ioe=new Tl,rA=(t,{strict:e=!0,quoted:r=null}={})=>{try{const n=e?"cookie-value":"lenient-cookie-value",i=Roe.parse(Ioe,n,t);return typeof r=="boolean"?i.success&&r===Tp(t):i.success}catch{return!1}},S6=t=>{const r=new TextEncoder().encode(t).reduce((n,i)=>n+String.fromCharCode(i),"");return btoa(r)},Toe=(t,e=S6)=>{const r=String(t);if(rA(r))return r;const n=Tp(r),i=n?v6(r):r,s=e(i);return n?b6(s):s},Poe=t=>Coe(S6(t)),koe=t=>Toe(t,Poe),joe=new Ln,Noe=new Tl,_6=(t,{strict:e=!0}={})=>{try{const r=e?"cookie-name":"lenient-cookie-name";return joe.parse(Noe,r,t).success}catch{return!1}},Moe=t=>{if(!_6(t))throw new TypeError(`Invalid cookie name: ${t}`)},w6=t=>{if(!rA(t))throw new TypeError(`Invalid cookie value: ${t}`)},mD={encoders:{name:E6,value:koe},validators:{name:Moe,value:w6}},Doe=(t,e,r={})=>{const n={...r,encoders:{...mD.encoders,...r.encoders},validators:{...mD.validators,...r.validators}},i=n.encoders.name(t),s=n.encoders.value(e);return n.validators.name(i),n.validators.value(s),`${i}=${s}`},Foe=(t,e={})=>(Array.isArray(t)?t:typeof t=="object"&&t!==null?Object.entries(t):[]).map(([n,i])=>Doe(n,i,e)).join("; "),qoe=new Ln,Boe=new Tl,$oe=t=>{const e=String(t);if(rA(e))return e;const r=Tp(e),n=r?v6(e):e;let i="";for(const s of n)i+=qoe.parse(Boe,"cookie-octet",s).success?s:Ooe(s);return r?b6(i):i};new Ln;new Tl;const Loe=t=>{if(!_6(t,{strict:!1}))throw new TypeError(`Invalid cookie name: ${t}`)},Uoe="%3D",Voe="%26",zoe=t=>$oe(t).replace(/[=&]/gu,e=>e==="="?Uoe:Voe),T1=(t,e={})=>Foe(t,jf({encoders:{name:E6,value:zoe},validators:{name:Loe,value:w6}},e));function Woe({req:t,value:e,parameter:r,baseURL:n}){const{name:i,style:s,explode:a,content:o}=r;if(e===void 0)return;const u=t.url.replace(n,"");let l;if(o){const c=Object.keys(o)[0];l=I1(u,{[i]:e},{encoder:p=>vL(Ip(p,c))})}else l=I1(u,{[i]:e},{encoder:c=>nx({key:r.name,value:c,style:s||"simple",explode:a??!1,escape:"reserved"})});t.url=n+l}function Joe({req:t,value:e,parameter:r}){if(t.query=t.query||{},e!==void 0&&r.content){const n=Object.keys(r.content)[0],i=Ip(e,n);if(i)t.query[r.name]=i;else if(r.allowEmptyValue){const s=r.name;t.query[s]=t.query[s]||{},t.query[s].allowEmptyValue=!0}return}if(e===!1&&(e="false"),e===0&&(e="0"),e){const{style:n,explode:i,allowReserved:s}=r;t.query[r.name]={value:e,serializationOption:{style:n,explode:i,allowReserved:s}}}else if(r.allowEmptyValue&&e!==void 0){const n=r.name;t.query[n]=t.query[n]||{},t.query[n].allowEmptyValue=!0}}const Hoe=["accept","authorization","content-type"];function Koe({req:t,parameter:e,value:r}){if(t.headers=t.headers||{},!(Hoe.indexOf(e.name.toLowerCase())>-1)){if(r!==void 0&&e.content){const n=Object.keys(e.content)[0];t.headers[e.name]=Ip(r,n);return}r!==void 0&&!(Array.isArray(r)&&r.length===0)&&(t.headers[e.name]=nx({key:e.name,value:r,style:e.style||"simple",explode:typeof e.explode>"u"?!1:e.explode,escape:!1}))}}function Goe({req:t,parameter:e,value:r}){const{name:n}=e;if(t.headers=t.headers||{},r!==void 0&&e.content){const s=Object.keys(e.content)[0],a=Ip(r,s);t.headers.Cookie=T1({[n]:a});return}if(r!==void 0&&!(Array.isArray(r)&&r.length===0)){var i;const s=nx({key:e.name,value:r,escape:!1,style:e.style||"form",explode:(i=e.explode)!==null&&i!==void 0?i:!1}),a=Array.isArray(r)&&e.explode?`${n}=${s}`:s;t.headers.Cookie=T1({[n]:a})}}const Yoe=Object.freeze(Object.defineProperty({__proto__:null,cookie:Goe,header:Koe,path:Woe,query:Joe},Symbol.toStringTag,{value:"Module"})),Xoe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:x6}=Xoe;function Zoe(t,e){const{operation:r,requestBody:n,securities:i,spec:s,attachContentTypeForEmptyPayload:a}=t;let{requestContentType:o}=t;e=Qoe({request:e,securities:i,operation:r,spec:s});const u=r.requestBody||{},l=Object.keys(u.content||{}),c=o&&l.indexOf(o)>-1;if(n||a){if(o&&c)e.headers["Content-Type"]=o;else if(!o){const y=l[0];y&&(e.headers["Content-Type"]=y,o=y)}}else o&&c&&(e.headers["Content-Type"]=o);if(!t.responseContentType&&r.responses){const y=Object.entries(r.responses).filter(([v,E])=>{const b=parseInt(v,10);return b>=200&&b<300&&ri(E.content)}).reduce((v,[,E])=>v.concat(Object.keys(E.content)),[]);y.length>0&&(e.headers.accept=y.join(", "))}if(n)if(o){if(l.indexOf(o)>-1)if(o==="application/x-www-form-urlencoded"||o==="multipart/form-data")if(typeof n=="object"){var p,h;const y=(p=(h=u.content[o])===null||h===void 0?void 0:h.encoding)!==null&&p!==void 0?p:{};e.form={},Object.keys(n).forEach(v=>{let E;try{E=JSON.parse(n[v])}catch{E=n[v]}e.form[v]={value:E,encoding:y[v]||{}}})}else if(typeof n=="string"){var d,g;const y=(d=(g=u.content[o])===null||g===void 0?void 0:g.encoding)!==null&&d!==void 0?d:{};try{e.form={};const v=JSON.parse(n);Object.entries(v).forEach(([E,b])=>{e.form[E]={value:b,encoding:y[E]||{}}})}catch{e.form=n}}else e.form=n;else e.body=n}else e.body=n;return e}function Qoe({request:t,securities:e={},operation:r={},spec:n}){var i;const s={...t},{authorized:a={}}=e,o=r.security||n.security||[],u=a&&!!Object.keys(a).length,l=(n==null||(i=n.components)===null||i===void 0?void 0:i.securitySchemes)||{};return s.headers=s.headers||{},s.query=s.query||{},!Object.keys(e).length||!u||!o||Array.isArray(r.security)&&!r.security.length?t:(o.forEach(c=>{Object.keys(c).forEach(p=>{const h=a[p],d=l[p];if(!h)return;const g=h.value||h,{type:y}=d;if(h){if(y==="apiKey")d.in==="query"&&(s.query[d.name]=g),d.in==="header"&&(s.headers[d.name]=g),d.in==="cookie"&&(s.cookies[d.name]=g);else if(y==="http"){if(/^basic$/i.test(d.scheme)){const v=g.username||"",E=g.password||"",b=x6(`${v}:${E}`);s.headers.Authorization=`Basic ${b}`}/^bearer$/i.test(d.scheme)&&(s.headers.Authorization=`Bearer ${g}`)}else if(y==="oauth2"||y==="openIdConnect"){const v=h.token||{},E=d["x-tokenName"]||"access_token",b=v[E];let _=v.token_type;(!_||_.toLowerCase()==="bearer")&&(_="Bearer"),s.headers.Authorization=`${_} ${b}`}}})}),s)}function eue(t,e){const{spec:r,operation:n,securities:i,requestContentType:s,responseContentType:a,attachContentTypeForEmptyPayload:o}=t;if(e=tue({request:e,securities:i,operation:n,spec:r}),e.body||e.form||o)s?e.headers["Content-Type"]=s: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(u=>u.type==="file").length?e.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter(u=>u.in==="formData").length&&(e.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){const u=n.parameters&&n.parameters.filter(c=>c.in==="body").length>0,l=n.parameters&&n.parameters.filter(c=>c.in==="formData").length>0;(u||l)&&(e.headers["Content-Type"]=s)}return!a&&Array.isArray(n.produces)&&n.produces.length>0&&(e.headers.accept=n.produces.join(", ")),e}function tue({request:t,securities:e={},operation:r={},spec:n}){const i={...t},{authorized:s={},specSecurity:a=[]}=e,o=r.security||a,u=s&&!!Object.keys(s).length,l=n.securityDefinitions;return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(e).length||!u||!o||Array.isArray(r.security)&&!r.security.length?t:(o.forEach(c=>{Object.keys(c).forEach(p=>{const h=s[p];if(!h)return;const{token:d}=h,g=h.value||h,y=l[p],{type:v}=y,E=y["x-tokenName"]||"access_token",b=d&&d[E];let _=d&&d.token_type;if(h)if(v==="apiKey"){const w=y.in==="query"?"query":"headers";i[w]=i[w]||{},i[w][y.name]=g}else if(v==="basic")if(g.header)i.headers.authorization=g.header;else{const w=g.username||"",S=g.password||"";g.base64=x6(`${w}:${S}`),i.headers.authorization=`Basic ${g.base64}`}else v==="oauth2"&&b&&(_=!_||_.toLowerCase()==="bearer"?"Bearer":_,i.headers.authorization=`${_} ${b}`)})}),i)}function rue(t,e,r){if(!t||typeof t!="object"||!t.paths||typeof t.paths!="object")return null;const{paths:n}=t;for(const i in n)for(const s in n[i]){if(s.toUpperCase()==="PARAMETERS")continue;const a=n[i][s];if(!a||typeof a!="object")continue;const o={spec:t,pathName:i,method:s.toUpperCase(),operation:a};if(e(o))return o}}function nue(t,e){return rue(t,e)||null}function A6(t,e){return`${e.toLowerCase()}-${t}`}function iue(t,e){return!t||!t.paths?null:nue(t,({pathName:r,method:n,operation:i})=>{if(!i||typeof i!="object")return!1;const s=i.operationId,a=zf(i,r,n),o=A6(r,n);return[a,o,s].some(u=>u&&u===e)})}const gD=t=>Array.isArray(t)?t:[],Qo=(t,{recurse:e=!0,depth:r=1}={})=>{if(ri(t)){if(t.type==="object"||t.type==="array"||Array.isArray(t.type)&&(t.type.includes("object")||t.type.includes("array")))return t;if(!(r>uL)&&e){const n=Array.isArray(t.oneOf)?t.oneOf.find(s=>Qo(s,{recurse:e,depth:r+1})):void 0;if(n)return n;const i=Array.isArray(t.anyOf)?t.anyOf.find(s=>Qo(s,{recurse:e,depth:r+1})):void 0;if(i)return i}}},oS=({value:t,silentFail:e=!1})=>{try{const r=JSON.parse(t);if(ri(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},Tc=t=>{try{return new URL(t)}catch{const e=new URL(t,tf),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 sue extends Ai{}const aue=(t,e)=>e.filter(r=>r.name===t),oue=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(i=>{r.push(e[n][i])})}),r},uue={buildRequest:O6};function lue({http:t,fetch:e,spec:r,operationId:n,pathName:i,method:s,parameters:a,securities:o,...u}){const l=t||e||lu;i&&s&&!n&&(n=A6(i,s));const c=uue.buildRequest({spec:r,operationId:n,parameters:a,securities:o,http:l,...u});return c.body&&(ri(c.body)||Array.isArray(c.body))&&(c.body=JSON.stringify(c.body)),l(c)}function O6(t){const{spec:e,operationId:r,responseContentType:n,scheme:i,requestInterceptor:s,responseInterceptor:a,contextUrl:o,userFetch:u,server:l,serverVariables:c,http:p,signal:h,serverVariableEncoder:d}=t;let{parameters:g,parameterBuilders:y,baseURL:v}=t;const E=AL(e);y||(E?y=Yoe:y=Eoe);let _={url:"",credentials:p&&p.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(_.signal=h),s&&(_.requestInterceptor=s),a&&(_.responseInterceptor=a),u&&(_.userFetch=u);const w=iue(e,r);if(!w)throw new sue(`Operation ${r} not found`);const{operation:S={},method:A,pathName:I}=w;if(v=v??cue({spec:e,scheme:i,contextUrl:o,server:l,serverVariables:c,pathName:I,method:A,serverVariableEncoder:d}),_.url+=v,!r)return delete _.cookies,_;_.url+=I,_.method=`${A}`.toUpperCase(),g=g||{};const T=e.paths[I]||{};n&&(_.headers.accept=n);const k=oue([].concat(gD(S.parameters)).concat(gD(T.parameters)));k.forEach(R=>{const $=y[R.in];let M;if(R.in==="body"&&R.schema&&R.schema.properties&&(M=g),M=R&&R.name&&g[R.name],typeof M>"u"?M=R&&R.name&&g[`${R.in}.${R.name}`]:aue(R.name,k).length>1&&console.warn(`Parameter '${R.name}' is ambiguous because the defined spec has more than one parameter with the name: '${R.name}' and the passed-in parameter values did not define an 'in' value.`),M!==null){if(typeof R.default<"u"&&typeof M>"u"&&(M=R.default),typeof M>"u"&&R.required&&!R.allowEmptyValue)throw new Error(`Required parameter ${R.name} is not provided`);E&&typeof M=="string"&&(Yo("type",R.schema)&&typeof R.schema.type=="string"&&Qo(R.schema,{recurse:!1})?M=oS({value:M,silentFail:!1}):Yo("type",R.schema)&&Array.isArray(R.schema.type)&&Qo(R.schema,{recurse:!1})?M=oS({value:M,silentFail:!0}):!Yo("type",R.schema)&&Qo(R.schema,{recurse:!0})&&(M=oS({value:M,silentFail:!0}))),$&&$({req:_,parameter:R,value:M,operation:S,spec:e,baseURL:v})}});const D={...t,operation:S};if(E?_=Zoe(D,_):_=eue(D,_),_.cookies&&Object.keys(_.cookies).length>0){const R=T1(_.cookies);Df(_.headers.Cookie)?_.headers.Cookie+=`; ${R}`:_.headers.Cookie=R}return _.cookies&&delete _.cookies,ix(_)}const P1=t=>t?t.replace(/\W/g,""):null;function cue(t){return AL(t.spec)?fue(t):due(t)}const uS=t=>Array.isArray(t)&&t.length>0;function fue({spec:t,pathName:e,method:r,server:n,contextUrl:i,serverVariables:s={},serverVariableEncoder:a}){var o,u;let l=[],c="",p;const h=t==null||(o=t.paths)===null||o===void 0||(o=o[e])===null||o===void 0||(o=o[(r||"").toLowerCase()])===null||o===void 0?void 0:o.servers,d=t==null||(u=t.paths)===null||u===void 0||(u=u[e])===null||u===void 0?void 0:u.servers,g=t?.servers;if(l=uS(h)?h:uS(d)?d:uS(g)?g:[see],n&&(p=l.find(y=>y.url===n),p&&(c=n)),c||([p]=l,c=p.url),soe(c,{strict:!0})){const y=Object.entries({...p.variables}).reduce((v,[E,b])=>(v[E]=b.default,v),{});c=loe(c,{...y,...s},{encoder:typeof a=="function"?a:s$})}return pue(c,i)}function pue(t="",e=""){const r=Tc(t&&e?Nr(e,t):t),n=Tc(e),i=P1(r.protocol)||P1(n.protocol),s=r.host||n.host,a=r.pathname;let o;return i&&s?o=`${i}://${s+a}`:o=a,o[o.length-1]==="/"?o.slice(0,-1):o}function due({spec:t,scheme:e,contextUrl:r=""}){const n=Tc(r),i=Array.isArray(t.schemes)?t.schemes[0]:null,s=e||i||P1(n.protocol)||"http",a=t.host||n.host||"",o=t.basePath||"";let u;return a?u=`${s}://${a+o}`:u=o,u[u.length-1]==="/"?u.slice(0,-1):u}const hue=async(t,e,r={})=>{const{returnEntireTree:n,baseDoc:i,requestInterceptor:s,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:l,strategies:c}=r,p={spec:t,pathDiscriminator:e,baseDoc:i,requestInterceptor:s,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:l,strategies:c},d=c.find(y=>y.match(t)).normalize(t),g=await Zae({spec:d,...p,allowMetaPatches:!0,skipNormalization:!ux(t)});return!n&&Array.isArray(e)&&e.length&&(g.spec=e.reduce((y,v)=>y?.[v],g.spec)||null),g},mue=t=>async(e,r,n={})=>{const i={...t,...n};return hue(e,r,i)};var gue=Cu();const yue=ot(gue);function vue(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 bue(t,e){if(t==null)return{};var r,n,i=vue(t,e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(t);for(n=0;n<s.length;n++)r=s[n],e.indexOf(r)===-1&&{}.propertyIsEnumerable.call(t,r)&&(i[r]=t[r])}return i}function k1(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 Eue(t){if(Array.isArray(t))return k1(t)}function Sue(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function _ue(t,e){if(t){if(typeof t=="string")return k1(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)?k1(t,e):void 0}}function wue(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
207
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function j1(t){return Eue(t)||Sue(t)||_ue(t)||wue()}function fu(t){"@babel/helpers - typeof";return fu=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},fu(t)}function xue(t,e){if(fu(t)!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e);if(fu(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Aue(t){var e=xue(t,"string");return fu(e)=="symbol"?e:e+""}function C6(t,e,r){return(e=Aue(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function N1(){return N1=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},N1.apply(null,arguments)}function yD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ba(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?yD(Object(r),!0).forEach(function(n){C6(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):yD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Oue(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 lS={};function Cue(t){if(t.length===0||t.length===1)return t;var e=t.join(".");return lS[e]||(lS[e]=Oue(t)),lS[e]}function Rue(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=t.filter(function(s){return s!=="token"}),i=Cue(n);return i.reduce(function(s,a){return Ba(Ba({},s),r[a])},e)}function vD(t){return t.join(" ")}function Iue(t,e){var r=0;return function(n){return r+=1,n.map(function(i,s){return R6({node:i,stylesheet:t,useInlineStyles:e,key:"code-segment-".concat(r,"-").concat(s)})})}}function R6(t){var e=t.node,r=t.stylesheet,n=t.style,i=n===void 0?{}:n,s=t.useInlineStyles,a=t.key,o=e.properties,u=e.type,l=e.tagName,c=e.value;if(u==="text")return c;if(l){var p=Iue(r,s),h;if(!s)h=Ba(Ba({},o),{},{className:vD(o.className)});else{var d=Object.keys(r).reduce(function(E,b){return b.split(".").forEach(function(_){E.includes(_)||E.push(_)}),E},[]),g=o.className&&o.className.includes("token")?["token"]:[],y=o.className&&g.concat(o.className.filter(function(E){return!d.includes(E)}));h=Ba(Ba({},o),{},{className:vD(y)||void 0,style:Rue(o.className,Object.assign({},o.style,i),r)})}var v=p(e.children);return Xn.createElement(l,N1({key:a},h),v)}}const Tue=(function(t,e){var r=t.listLanguages();return r.indexOf(e)!==-1});var Pue=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function bD(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function Ss(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?bD(Object(r),!0).forEach(function(n){C6(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):bD(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}var kue=/\n/g;function jue(t){return t.match(kue)}function Nue(t){var e=t.lines,r=t.startingLineNumber,n=t.style;return e.map(function(i,s){var a=s+r;return Xn.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(a):n},"".concat(a,`
208
+ `))})}function Mue(t){var e=t.codeString,r=t.codeStyle,n=t.containerStyle,i=n===void 0?{float:"left",paddingRight:"10px"}:n,s=t.numberStyle,a=s===void 0?{}:s,o=t.startingLineNumber;return Xn.createElement("code",{style:Object.assign({},r,i)},Nue({lines:e.replace(/\n$/,"").split(`
209
+ `),style:a,startingLineNumber:o}))}function Due(t){return"".concat(t.toString().length,".25em")}function I6(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 T6(t,e,r){var n={display:"inline-block",minWidth:Due(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof t=="function"?t(e):t,s=Ss(Ss({},n),i);return s}function Pc(t){var e=t.children,r=t.lineNumber,n=t.lineNumberStyle,i=t.largestLineNumber,s=t.showInlineLineNumbers,a=t.lineProps,o=a===void 0?{}:a,u=t.className,l=u===void 0?[]:u,c=t.showLineNumbers,p=t.wrapLongLines,h=t.wrapLines,d=h===void 0?!1:h,g=d?Ss({},typeof o=="function"?o(r):o):{};if(g.className=g.className?[].concat(j1(g.className.trim().split(/\s+/)),j1(l)):l,r&&s){var y=T6(n,r,i);e.unshift(I6(r,y))}return p&c&&(g.style=Ss({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:e}}function P6(t){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<t.length;n++){var i=t[n];if(i.type==="text")r.push(Pc({children:[i],className:j1(new Set(e))}));else if(i.children){var s=e.concat(i.properties.className);P6(i.children,s).forEach(function(a){return r.push(a)})}}return r}function Fue(t,e,r,n,i,s,a,o,u){var l,c=P6(t.value),p=[],h=-1,d=0;function g(S,A){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Pc({children:S,lineNumber:A,lineNumberStyle:o,largestLineNumber:a,showInlineLineNumbers:i,lineProps:r,className:I,showLineNumbers:n,wrapLongLines:u,wrapLines:e})}function y(S,A){if(n&&A&&i){var I=T6(o,A,a);S.unshift(I6(A,I))}return S}function v(S,A){var I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return e||I.length>0?g(S,A,I):y(S,A)}for(var E=function(){var A=c[d],I=A.children[0].value,T=jue(I);if(T){var k=I.split(`
210
+ `);k.forEach(function(D,R){var $=n&&p.length+s,M={type:"text",value:"".concat(D,`
211
+ `)};if(R===0){var K=c.slice(h+1,d).concat(Pc({children:[M],className:A.properties.className})),ee=v(K,$);p.push(ee)}else if(R===k.length-1){var G=c[d+1]&&c[d+1].children&&c[d+1].children[0],Z={type:"text",value:"".concat(D)};if(G){var X=Pc({children:[Z],className:A.properties.className});c.splice(d+1,0,X)}else{var te=[Z],ce=v(te,$,A.properties.className);p.push(ce)}}else{var ie=[M],ue=v(ie,$,A.properties.className);p.push(ue)}}),h=d}d++};d<c.length;)E();if(h!==c.length-1){var b=c.slice(h+1,c.length);if(b&&b.length){var _=n&&p.length+s,w=v(b,_);p.push(w)}}return e?p:(l=[]).concat.apply(l,p)}function que(t){var e=t.rows,r=t.stylesheet,n=t.useInlineStyles;return e.map(function(i,s){return R6({node:i,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(s)})})}function k6(t){return t&&typeof t.highlightAuto<"u"}function Bue(t){var e=t.astGenerator,r=t.language,n=t.code,i=t.defaultCodeValue;if(k6(e)){var s=Tue(e,r);return r==="text"?{value:i,language:"text"}:s?e.highlight(r,n):e.highlightAuto(n)}try{return r&&r!=="text"?{value:e.highlight(n,r)}:{value:i}}catch{return{value:i}}}function $ue(t,e){return function(n){var i,s,a=n.language,o=n.children,u=n.style,l=u===void 0?e:u,c=n.customStyle,p=c===void 0?{}:c,h=n.codeTagProps,d=h===void 0?{className:a?"language-".concat(a):void 0,style:Ss(Ss({},l['code[class*="language-"]']),l['code[class*="language-'.concat(a,'"]')])}:h,g=n.useInlineStyles,y=g===void 0?!0:g,v=n.showLineNumbers,E=v===void 0?!1:v,b=n.showInlineLineNumbers,_=b===void 0?!0:b,w=n.startingLineNumber,S=w===void 0?1:w,A=n.lineNumberContainerStyle,I=n.lineNumberStyle,T=I===void 0?{}:I,k=n.wrapLines,D=n.wrapLongLines,R=D===void 0?!1:D,$=n.lineProps,M=$===void 0?{}:$,K=n.renderer,ee=n.PreTag,G=ee===void 0?"pre":ee,Z=n.CodeTag,X=Z===void 0?"code":Z,te=n.code,ce=te===void 0?(Array.isArray(o)?o[0]:o)||"":te,ie=n.astGenerator,ue=bue(n,Pue);ie=ie||t;var ye=E?Xn.createElement(Mue,{containerStyle:A,codeStyle:d.style||{},numberStyle:T,startingLineNumber:S,codeString:ce}):null,he=l.hljs||l['pre[class*="language-"]']||{backgroundColor:"#fff"},re=k6(ie)?"hljs":"prismjs",W=y?Object.assign({},ue,{style:Object.assign({},he,p)}):Object.assign({},ue,{className:ue.className?"".concat(re," ").concat(ue.className):re,style:Object.assign({},p)});if(R?d.style=Ss({whiteSpace:"pre-wrap"},d.style):d.style=Ss({whiteSpace:"pre"},d.style),!ie)return Xn.createElement(G,W,ye,Xn.createElement(X,d,ce));(k===void 0&&K||R)&&(k=!0),K=K||que;var V=[{type:"text",value:ce}],me=Bue({astGenerator:ie,language:a,code:ce,defaultCodeValue:V});me.language===null&&(me.value=V);var ve=(i=(s=ce.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0,Me=S+ve,Be=Fue(me,k,M,E,_,S,Me,T,R);return Xn.createElement(G,W,Xn.createElement(X,d,!_&&ye,K({rows:Be,stylesheet:l,useInlineStyles:y})))}}var Us={},cS,ED;function Lue(){if(ED)return cS;ED=1;function t(ae){return ae instanceof Map?ae.clear=ae.delete=ae.set=function(){throw new Error("map is read-only")}:ae instanceof Set&&(ae.add=ae.clear=ae.delete=function(){throw new Error("set is read-only")}),Object.freeze(ae),Object.getOwnPropertyNames(ae).forEach(function(Ce){var je=ae[Ce];typeof je=="object"&&!Object.isFrozen(je)&&t(je)}),ae}var e=t,r=t;e.default=r;class n{constructor(Ce){Ce.data===void 0&&(Ce.data={}),this.data=Ce.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(ae){return ae.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(ae,...Ce){const je=Object.create(null);for(const tt in ae)je[tt]=ae[tt];return Ce.forEach(function(tt){for(const pt in tt)je[pt]=tt[pt]}),je}const a="</span>",o=ae=>!!ae.kind;class u{constructor(Ce,je){this.buffer="",this.classPrefix=je.classPrefix,Ce.walk(this)}addText(Ce){this.buffer+=i(Ce)}openNode(Ce){if(!o(Ce))return;let je=Ce.kind;Ce.sublanguage||(je=`${this.classPrefix}${je}`),this.span(je)}closeNode(Ce){o(Ce)&&(this.buffer+=a)}value(){return this.buffer}span(Ce){this.buffer+=`<span class="${Ce}">`}}class l{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ce){this.top.children.push(Ce)}openNode(Ce){const je={kind:Ce,children:[]};this.add(je),this.stack.push(je)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ce){return this.constructor._walk(Ce,this.rootNode)}static _walk(Ce,je){return typeof je=="string"?Ce.addText(je):je.children&&(Ce.openNode(je),je.children.forEach(tt=>this._walk(Ce,tt)),Ce.closeNode(je)),Ce}static _collapse(Ce){typeof Ce!="string"&&Ce.children&&(Ce.children.every(je=>typeof je=="string")?Ce.children=[Ce.children.join("")]:Ce.children.forEach(je=>{l._collapse(je)}))}}class c extends l{constructor(Ce){super(),this.options=Ce}addKeyword(Ce,je){Ce!==""&&(this.openNode(je),this.addText(Ce),this.closeNode())}addText(Ce){Ce!==""&&this.add(Ce)}addSublanguage(Ce,je){const tt=Ce.root;tt.kind=je,tt.sublanguage=!0,this.add(tt)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function p(ae){return new RegExp(ae.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function h(ae){return ae?typeof ae=="string"?ae:ae.source:null}function d(...ae){return ae.map(je=>h(je)).join("")}function g(...ae){return"("+ae.map(je=>h(je)).join("|")+")"}function y(ae){return new RegExp(ae.toString()+"|").exec("").length-1}function v(ae,Ce){const je=ae&&ae.exec(Ce);return je&&je.index===0}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(ae,Ce="|"){let je=0;return ae.map(tt=>{je+=1;const pt=je;let St=h(tt),Lt="";for(;St.length>0;){const De=E.exec(St);if(!De){Lt+=St;break}Lt+=St.substring(0,De.index),St=St.substring(De.index+De[0].length),De[0][0]==="\\"&&De[1]?Lt+="\\"+String(Number(De[1])+pt):(Lt+=De[0],De[0]==="("&&je++)}return Lt}).map(tt=>`(${tt})`).join(Ce)}const _=/\b\B/,w="[a-zA-Z]\\w*",S="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",I="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",T="\\b(0b[01]+)",k="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D=(ae={})=>{const Ce=/^#![ ]*\//;return ae.binary&&(ae.begin=d(Ce,/.*\b/,ae.binary,/\b.*/)),s({className:"meta",begin:Ce,end:/$/,relevance:0,"on:begin":(je,tt)=>{je.index!==0&&tt.ignoreMatch()}},ae)},R={begin:"\\\\[\\s\\S]",relevance:0},$={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[R]},M={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[R]},K={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/},ee=function(ae,Ce,je={}){const tt=s({className:"comment",begin:ae,end:Ce,contains:[]},je);return tt.contains.push(K),tt.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),tt},G=ee("//","$"),Z=ee("/\\*","\\*/"),X=ee("#","$"),te={className:"number",begin:A,relevance:0},ce={className:"number",begin:I,relevance:0},ie={className:"number",begin:T,relevance:0},ue={className:"number",begin:A+"(%|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},ye={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[R,{begin:/\[/,end:/\]/,relevance:0,contains:[R]}]}]},he={className:"title",begin:w,relevance:0},re={className:"title",begin:S,relevance:0},W={begin:"\\.\\s*"+S,relevance:0};var me=Object.freeze({__proto__:null,MATCH_NOTHING_RE:_,IDENT_RE:w,UNDERSCORE_IDENT_RE:S,NUMBER_RE:A,C_NUMBER_RE:I,BINARY_NUMBER_RE:T,RE_STARTERS_RE:k,SHEBANG:D,BACKSLASH_ESCAPE:R,APOS_STRING_MODE:$,QUOTE_STRING_MODE:M,PHRASAL_WORDS_MODE:K,COMMENT:ee,C_LINE_COMMENT_MODE:G,C_BLOCK_COMMENT_MODE:Z,HASH_COMMENT_MODE:X,NUMBER_MODE:te,C_NUMBER_MODE:ce,BINARY_NUMBER_MODE:ie,CSS_NUMBER_MODE:ue,REGEXP_MODE:ye,TITLE_MODE:he,UNDERSCORE_TITLE_MODE:re,METHOD_GUARD:W,END_SAME_AS_BEGIN:function(ae){return Object.assign(ae,{"on:begin":(Ce,je)=>{je.data._beginMatch=Ce[1]},"on:end":(Ce,je)=>{je.data._beginMatch!==Ce[1]&&je.ignoreMatch()}})}});function ve(ae,Ce){ae.input[ae.index-1]==="."&&Ce.ignoreMatch()}function Me(ae,Ce){Ce&&ae.beginKeywords&&(ae.begin="\\b("+ae.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",ae.__beforeBegin=ve,ae.keywords=ae.keywords||ae.beginKeywords,delete ae.beginKeywords,ae.relevance===void 0&&(ae.relevance=0))}function Be(ae,Ce){Array.isArray(ae.illegal)&&(ae.illegal=g(...ae.illegal))}function Te(ae,Ce){if(ae.match){if(ae.begin||ae.end)throw new Error("begin & end are not supported with match");ae.begin=ae.match,delete ae.match}}function Pe(ae,Ce){ae.relevance===void 0&&(ae.relevance=1)}const Le=["of","and","for","in","not","or","if","then","parent","list","value"],ge="keyword";function Se(ae,Ce,je=ge){const tt={};return typeof ae=="string"?pt(je,ae.split(" ")):Array.isArray(ae)?pt(je,ae):Object.keys(ae).forEach(function(St){Object.assign(tt,Se(ae[St],Ce,St))}),tt;function pt(St,Lt){Ce&&(Lt=Lt.map(De=>De.toLowerCase())),Lt.forEach(function(De){const Je=De.split("|");tt[Je[0]]=[St,we(Je[0],Je[1])]})}}function we(ae,Ce){return Ce?Number(Ce):L(ae)?0:1}function L(ae){return Le.includes(ae.toLowerCase())}function C(ae,{plugins:Ce}){function je(De,Je){return new RegExp(h(De),"m"+(ae.case_insensitive?"i":"")+(Je?"g":""))}class tt{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Je,lt){lt.position=this.position++,this.matchIndexes[this.matchAt]=lt,this.regexes.push([lt,Je]),this.matchAt+=y(Je)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Je=this.regexes.map(lt=>lt[1]);this.matcherRe=je(b(Je),!0),this.lastIndex=0}exec(Je){this.matcherRe.lastIndex=this.lastIndex;const lt=this.matcherRe.exec(Je);if(!lt)return null;const rt=lt.findIndex((zr,ss)=>ss>0&&zr!==void 0),Ut=this.matchIndexes[rt];return lt.splice(0,rt),Object.assign(lt,Ut)}}class pt{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Je){if(this.multiRegexes[Je])return this.multiRegexes[Je];const lt=new tt;return this.rules.slice(Je).forEach(([rt,Ut])=>lt.addRule(rt,Ut)),lt.compile(),this.multiRegexes[Je]=lt,lt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Je,lt){this.rules.push([Je,lt]),lt.type==="begin"&&this.count++}exec(Je){const lt=this.getMatcher(this.regexIndex);lt.lastIndex=this.lastIndex;let rt=lt.exec(Je);if(this.resumingScanAtSamePosition()&&!(rt&&rt.index===this.lastIndex)){const Ut=this.getMatcher(0);Ut.lastIndex=this.lastIndex+1,rt=Ut.exec(Je)}return rt&&(this.regexIndex+=rt.position+1,this.regexIndex===this.count&&this.considerAll()),rt}}function St(De){const Je=new pt;return De.contains.forEach(lt=>Je.addRule(lt.begin,{rule:lt,type:"begin"})),De.terminatorEnd&&Je.addRule(De.terminatorEnd,{type:"end"}),De.illegal&&Je.addRule(De.illegal,{type:"illegal"}),Je}function Lt(De,Je){const lt=De;if(De.isCompiled)return lt;[Te].forEach(Ut=>Ut(De,Je)),ae.compilerExtensions.forEach(Ut=>Ut(De,Je)),De.__beforeBegin=null,[Me,Be,Pe].forEach(Ut=>Ut(De,Je)),De.isCompiled=!0;let rt=null;if(typeof De.keywords=="object"&&(rt=De.keywords.$pattern,delete De.keywords.$pattern),De.keywords&&(De.keywords=Se(De.keywords,ae.case_insensitive)),De.lexemes&&rt)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return rt=rt||De.lexemes||/\w+/,lt.keywordPatternRe=je(rt,!0),Je&&(De.begin||(De.begin=/\B|\b/),lt.beginRe=je(De.begin),De.endSameAsBegin&&(De.end=De.begin),!De.end&&!De.endsWithParent&&(De.end=/\B|\b/),De.end&&(lt.endRe=je(De.end)),lt.terminatorEnd=h(De.end)||"",De.endsWithParent&&Je.terminatorEnd&&(lt.terminatorEnd+=(De.end?"|":"")+Je.terminatorEnd)),De.illegal&&(lt.illegalRe=je(De.illegal)),De.contains||(De.contains=[]),De.contains=[].concat(...De.contains.map(function(Ut){return U(Ut==="self"?De:Ut)})),De.contains.forEach(function(Ut){Lt(Ut,lt)}),De.starts&&Lt(De.starts,Je),lt.matcher=St(lt),lt}if(ae.compilerExtensions||(ae.compilerExtensions=[]),ae.contains&&ae.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return ae.classNameAliases=s(ae.classNameAliases||{}),Lt(ae)}function j(ae){return ae?ae.endsWithParent||j(ae.starts):!1}function U(ae){return ae.variants&&!ae.cachedVariants&&(ae.cachedVariants=ae.variants.map(function(Ce){return s(ae,{variants:null},Ce)})),ae.cachedVariants?ae.cachedVariants:j(ae)?s(ae,{starts:ae.starts?s(ae.starts):null}):Object.isFrozen(ae)?s(ae):ae}var Y="10.7.3";function ne(ae){return!!(ae||ae==="")}function fe(ae){const Ce={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!ae.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,i(this.code);let tt={};return this.autoDetect?(tt=ae.highlightAuto(this.code),this.detectedLanguage=tt.language):(tt=ae.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),tt.value},autoDetect(){return!this.language||ne(this.autodetect)},ignoreIllegals(){return!0}},render(tt){return tt("pre",{},[tt("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:Ce,VuePlugin:{install(tt){tt.component("highlightjs",Ce)}}}}const Ne={"after:highlightElement":({el:ae,result:Ce,text:je})=>{const tt=q(ae);if(!tt.length)return;const pt=document.createElement("div");pt.innerHTML=Ce.value,Ce.value=O(tt,q(pt),je)}};function Ge(ae){return ae.nodeName.toLowerCase()}function q(ae){const Ce=[];return(function je(tt,pt){for(let St=tt.firstChild;St;St=St.nextSibling)St.nodeType===3?pt+=St.nodeValue.length:St.nodeType===1&&(Ce.push({event:"start",offset:pt,node:St}),pt=je(St,pt),Ge(St).match(/br|hr|img|input/)||Ce.push({event:"stop",offset:pt,node:St}));return pt})(ae,0),Ce}function O(ae,Ce,je){let tt=0,pt="";const St=[];function Lt(){return!ae.length||!Ce.length?ae.length?ae:Ce:ae[0].offset!==Ce[0].offset?ae[0].offset<Ce[0].offset?ae:Ce:Ce[0].event==="start"?ae:Ce}function De(rt){function Ut(zr){return" "+zr.nodeName+'="'+i(zr.value)+'"'}pt+="<"+Ge(rt)+[].map.call(rt.attributes,Ut).join("")+">"}function Je(rt){pt+="</"+Ge(rt)+">"}function lt(rt){(rt.event==="start"?De:Je)(rt.node)}for(;ae.length||Ce.length;){let rt=Lt();if(pt+=i(je.substring(tt,rt[0].offset)),tt=rt[0].offset,rt===ae){St.reverse().forEach(Je);do lt(rt.splice(0,1)[0]),rt=Lt();while(rt===ae&&rt.length&&rt[0].offset===tt);St.reverse().forEach(De)}else rt[0].event==="start"?St.push(rt[0].node):St.pop(),lt(rt.splice(0,1)[0])}return pt+i(je.substr(tt))}const P={},H=ae=>{console.error(ae)},se=(ae,...Ce)=>{console.log(`WARN: ${ae}`,...Ce)},de=(ae,Ce)=>{P[`${ae}/${Ce}`]||(console.log(`Deprecated as of ${ae}. ${Ce}`),P[`${ae}/${Ce}`]=!0)},xe=i,Ze=s,st=Symbol("nomatch");var ft=function(ae){const Ce=Object.create(null),je=Object.create(null),tt=[];let pt=!0;const St=/(^(<[^>]+>|\t|)+|\n)/gm,Lt="Could not find the language '{}', did you forget to load/include a language module?",De={disableAutodetect:!0,name:"Plain text",contains:[]};let Je={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:c};function lt(ke){return Je.noHighlightRe.test(ke)}function rt(ke){let ze=ke.className+" ";ze+=ke.parentNode?ke.parentNode.className:"";const Ot=Je.languageDetectRe.exec(ze);if(Ot){const Ft=gt(Ot[1]);return Ft||(se(Lt.replace("{}",Ot[1])),se("Falling back to no-highlight mode for this block.",ke)),Ft?Ot[1]:"no-highlight"}return ze.split(/\s+/).find(Ft=>lt(Ft)||gt(Ft))}function Ut(ke,ze,Ot,Ft){let cr="",zn="";typeof ze=="object"?(cr=ke,Ot=ze.ignoreIllegals,zn=ze.language,Ft=void 0):(de("10.7.0","highlight(lang, code, ...args) has been deprecated."),de("10.7.0",`Please use highlight(code, options) instead.
212
+ https://github.com/highlightjs/highlight.js/issues/2277`),zn=ke,cr=ze);const An={code:cr,language:zn};sn("before:highlight",An);const On=An.result?An.result:zr(An.language,An.code,Ot,Ft);return On.code=An.code,sn("after:highlight",On),On}function zr(ke,ze,Ot,Ft){function cr(et,nt){const Et=ps.case_insensitive?nt[0].toLowerCase():nt[0];return Object.prototype.hasOwnProperty.call(et.keywords,Et)&&et.keywords[Et]}function zn(){if(!_t.keywords){yt.addText(rr);return}let et=0;_t.keywordPatternRe.lastIndex=0;let nt=_t.keywordPatternRe.exec(rr),Et="";for(;nt;){Et+=rr.substring(et,nt.index);const Nt=cr(_t,nt);if(Nt){const[Br,ds]=Nt;if(yt.addText(Et),Et="",$s+=ds,Br.startsWith("_"))Et+=nt[0];else{const hs=ps.classNameAliases[Br]||Br;yt.addKeyword(nt[0],hs)}}else Et+=nt[0];et=_t.keywordPatternRe.lastIndex,nt=_t.keywordPatternRe.exec(rr)}Et+=rr.substr(et),yt.addText(Et)}function An(){if(rr==="")return;let et=null;if(typeof _t.subLanguage=="string"){if(!Ce[_t.subLanguage]){yt.addText(rr);return}et=zr(_t.subLanguage,rr,!0,Vl[_t.subLanguage]),Vl[_t.subLanguage]=et.top}else et=as(rr,_t.subLanguage.length?_t.subLanguage:null);_t.relevance>0&&($s+=et.relevance),yt.addSublanguage(et.emitter,et.language)}function On(){_t.subLanguage!=null?An():zn(),rr=""}function Cn(et){return et.className&&yt.openNode(ps.classNameAliases[et.className]||et.className),_t=Object.create(et,{parent:{value:_t}}),_t}function mn(et,nt,Et){let Nt=v(et.endRe,Et);if(Nt){if(et["on:end"]){const Br=new n(et);et["on:end"](nt,Br),Br.isMatchIgnored&&(Nt=!1)}if(Nt){for(;et.endsParent&&et.parent;)et=et.parent;return et}}if(et.endsWithParent)return mn(et.parent,nt,Et)}function Bl(et){return _t.matcher.regexIndex===0?(rr+=et[0],1):(qi=!0,0)}function $l(et){const nt=et[0],Et=et.rule,Nt=new n(Et),Br=[Et.__beforeBegin,Et["on:begin"]];for(const ds of Br)if(ds&&(ds(et,Nt),Nt.isMatchIgnored))return Bl(nt);return Et&&Et.endSameAsBegin&&(Et.endRe=p(nt)),Et.skip?rr+=nt:(Et.excludeBegin&&(rr+=nt),On(),!Et.returnBegin&&!Et.excludeBegin&&(rr=nt)),Cn(Et),Et.returnBegin?0:nt.length}function Ll(et){const nt=et[0],Et=ze.substr(et.index),Nt=mn(_t,et,Et);if(!Nt)return st;const Br=_t;Br.skip?rr+=nt:(Br.returnEnd||Br.excludeEnd||(rr+=nt),On(),Br.excludeEnd&&(rr=nt));do _t.className&&yt.closeNode(),!_t.skip&&!_t.subLanguage&&($s+=_t.relevance),_t=_t.parent;while(_t!==Nt.parent);return Nt.starts&&(Nt.endSameAsBegin&&(Nt.starts.endRe=Nt.endRe),Cn(Nt.starts)),Br.returnEnd?0:nt.length}function Ul(){const et=[];for(let nt=_t;nt!==ps;nt=nt.parent)nt.className&&et.unshift(nt.className);et.forEach(nt=>yt.openNode(nt))}let Bs={};function _o(et,nt){const Et=nt&&nt[0];if(rr+=et,Et==null)return On(),0;if(Bs.type==="begin"&&nt.type==="end"&&Bs.index===nt.index&&Et===""){if(rr+=ze.slice(nt.index,nt.index+1),!pt){const Nt=new Error("0 width match regex");throw Nt.languageName=ke,Nt.badRule=Bs.rule,Nt}return 1}if(Bs=nt,nt.type==="begin")return $l(nt);if(nt.type==="illegal"&&!Ot){const Nt=new Error('Illegal lexeme "'+Et+'" for mode "'+(_t.className||"<unnamed>")+'"');throw Nt.mode=_t,Nt}else if(nt.type==="end"){const Nt=Ll(nt);if(Nt!==st)return Nt}if(nt.type==="illegal"&&Et==="")return 1;if(Rn>1e5&&Rn>nt.index*3)throw new Error("potential infinite loop, way more iterations than matches");return rr+=Et,Et.length}const ps=gt(ke);if(!ps)throw H(Lt.replace("{}",ke)),new Error('Unknown language: "'+ke+'"');const Hp=C(ps,{plugins:tt});let wo="",_t=Ft||Hp;const Vl={},yt=new Je.__emitter(Je);Ul();let rr="",$s=0,sr=0,Rn=0,qi=!1;try{for(_t.matcher.considerAll();;){Rn++,qi?qi=!1:_t.matcher.considerAll(),_t.matcher.lastIndex=sr;const et=_t.matcher.exec(ze);if(!et)break;const nt=ze.substring(sr,et.index),Et=_o(nt,et);sr=et.index+Et}return _o(ze.substr(sr)),yt.closeAllNodes(),yt.finalize(),wo=yt.toHTML(),{relevance:Math.floor($s),value:wo,language:ke,illegal:!1,emitter:yt,top:_t}}catch(et){if(et.message&&et.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:et.message,context:ze.slice(sr-100,sr+100),mode:et.mode},sofar:wo,relevance:0,value:xe(ze),emitter:yt};if(pt)return{illegal:!1,relevance:0,value:xe(ze),emitter:yt,language:ke,top:_t,errorRaised:et};throw et}}function ss(ke){const ze={relevance:0,emitter:new Je.__emitter(Je),value:xe(ke),illegal:!1,top:De};return ze.emitter.addText(ke),ze}function as(ke,ze){ze=ze||Je.languages||Object.keys(Ce);const Ot=ss(ke),Ft=ze.filter(gt).filter($t).map(Cn=>zr(Cn,ke,!1));Ft.unshift(Ot);const cr=Ft.sort((Cn,mn)=>{if(Cn.relevance!==mn.relevance)return mn.relevance-Cn.relevance;if(Cn.language&&mn.language){if(gt(Cn.language).supersetOf===mn.language)return 1;if(gt(mn.language).supersetOf===Cn.language)return-1}return 0}),[zn,An]=cr,On=zn;return On.second_best=An,On}function Wr(ke){return Je.tabReplace||Je.useBR?ke.replace(St,ze=>ze===`
213
+ `?Je.useBR?"<br>":ze:Je.tabReplace?ze.replace(/\t/g,Je.tabReplace):ze):ke}function pi(ke,ze,Ot){const Ft=ze?je[ze]:Ot;ke.classList.add("hljs"),Ft&&ke.classList.add(Ft)}const os={"before:highlightElement":({el:ke})=>{Je.useBR&&(ke.innerHTML=ke.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
214
+ `))},"after:highlightElement":({result:ke})=>{Je.useBR&&(ke.value=ke.value.replace(/\n/g,"<br>"))}},us=/^(<[^>]+>|\t)+/gm,Fi={"after:highlightElement":({result:ke})=>{Je.tabReplace&&(ke.value=ke.value.replace(us,ze=>ze.replace(/\t/g,Je.tabReplace)))}};function Jr(ke){let ze=null;const Ot=rt(ke);if(lt(Ot))return;sn("before:highlightElement",{el:ke,language:Ot}),ze=ke;const Ft=ze.textContent,cr=Ot?Ut(Ft,{language:Ot,ignoreIllegals:!0}):as(Ft);sn("after:highlightElement",{el:ke,result:cr,text:Ft}),ke.innerHTML=cr.value,pi(ke,Ot,cr.language),ke.result={language:cr.language,re:cr.relevance,relavance:cr.relevance},cr.second_best&&(ke.second_best={language:cr.second_best.language,re:cr.second_best.relevance,relavance:cr.second_best.relevance})}function hn(ke){ke.useBR&&(de("10.3.0","'useBR' will be removed entirely in v11.0"),de("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Je=Ze(Je,ke)}const ls=()=>{if(ls.called)return;ls.called=!0,de("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(Jr)};function cs(){de("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),di=!0}let di=!1;function Er(){if(document.readyState==="loading"){di=!0;return}document.querySelectorAll("pre code").forEach(Jr)}function xt(){di&&Er()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",xt,!1);function Qe(ke,ze){let Ot=null;try{Ot=ze(ae)}catch(Ft){if(H("Language definition for '{}' could not be registered.".replace("{}",ke)),pt)H(Ft);else throw Ft;Ot=De}Ot.name||(Ot.name=ke),Ce[ke]=Ot,Ot.rawDefinition=ze.bind(null,ae),Ot.aliases&&Xt(Ot.aliases,{languageName:ke})}function oe(ke){delete Ce[ke];for(const ze of Object.keys(je))je[ze]===ke&&delete je[ze]}function Oe(){return Object.keys(Ce)}function He(ke){de("10.4.0","requireLanguage will be removed entirely in v11."),de("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const ze=gt(ke);if(ze)return ze;throw new Error("The '{}' language is required, but not loaded.".replace("{}",ke))}function gt(ke){return ke=(ke||"").toLowerCase(),Ce[ke]||Ce[je[ke]]}function Xt(ke,{languageName:ze}){typeof ke=="string"&&(ke=[ke]),ke.forEach(Ot=>{je[Ot.toLowerCase()]=ze})}function $t(ke){const ze=gt(ke);return ze&&!ze.disableAutodetect}function Kt(ke){ke["before:highlightBlock"]&&!ke["before:highlightElement"]&&(ke["before:highlightElement"]=ze=>{ke["before:highlightBlock"](Object.assign({block:ze.el},ze))}),ke["after:highlightBlock"]&&!ke["after:highlightElement"]&&(ke["after:highlightElement"]=ze=>{ke["after:highlightBlock"](Object.assign({block:ze.el},ze))})}function Hr(ke){Kt(ke),tt.push(ke)}function sn(ke,ze){const Ot=ke;tt.forEach(function(Ft){Ft[Ot]&&Ft[Ot](ze)})}function fs(ke){return de("10.2.0","fixMarkup will be removed entirely in v11.0"),de("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),Wr(ke)}function ir(ke){return de("10.7.0","highlightBlock will be removed entirely in v12.0"),de("10.7.0","Please use highlightElement now."),Jr(ke)}Object.assign(ae,{highlight:Ut,highlightAuto:as,highlightAll:Er,fixMarkup:fs,highlightElement:Jr,highlightBlock:ir,configure:hn,initHighlighting:ls,initHighlightingOnLoad:cs,registerLanguage:Qe,unregisterLanguage:oe,listLanguages:Oe,getLanguage:gt,registerAliases:Xt,requireLanguage:He,autoDetection:$t,inherit:Ze,addPlugin:Hr,vuePlugin:fe(ae).VuePlugin}),ae.debugMode=function(){pt=!1},ae.safeMode=function(){pt=!0},ae.versionString=Y;for(const ke in me)typeof me[ke]=="object"&&e(me[ke]);return Object.assign(ae,me),ae.addPlugin(os),ae.addPlugin(Ne),ae.addPlugin(Fi),ae}({});return cS=ft,cS}var fS={exports:{}},SD;function Uue(){return SD||(SD=1,(function(t){(function(){var e;e=t.exports=i,e.format=i,e.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(e.printf=r);function r(){console.log(i.apply(null,arguments))}function n(s,a){return i.apply(null,[s].concat(a))}function i(s){for(var a=1,o=[].slice.call(arguments),u=0,l=s.length,c="",p,h=!1,d,g,y=!1,v,E=function(){return o[a++]},b=function(){for(var _="";/\d/.test(s[u]);)_+=s[u++],p=s[u];return _.length>0?parseInt(_):null};u<l;++u)if(p=s[u],h)switch(h=!1,p=="."?(y=!1,p=s[++u]):p=="0"&&s[u+1]=="."?(y=!0,u+=2,p=s[u]):y=!0,v=b(),p){case"b":c+=parseInt(E(),10).toString(2);break;case"c":d=E(),typeof d=="string"||d instanceof String?c+=d:c+=String.fromCharCode(parseInt(d,10));break;case"d":c+=parseInt(E(),10);break;case"f":g=String(parseFloat(E()).toFixed(v||6)),c+=y?g:g.replace(/^0/,"");break;case"j":c+=JSON.stringify(E());break;case"o":c+="0"+parseInt(E(),10).toString(8);break;case"s":c+=E();break;case"x":c+="0x"+parseInt(E(),10).toString(16);break;case"X":c+="0x"+parseInt(E(),10).toString(16).toUpperCase();break;default:c+=p;break}else p==="%"?h=!0:c+=p;return c}})()})(fS)),fS.exports}var pS,_D;function Vue(){if(_D)return pS;_D=1;var t=Uue(),e=r(Error);pS=e,e.eval=r(EvalError),e.range=r(RangeError),e.reference=r(ReferenceError),e.syntax=r(SyntaxError),e.type=r(TypeError),e.uri=r(URIError),e.create=r;function r(n){return i.displayName=n.displayName||n.name,i;function i(s){return s&&(s=t.apply(null,arguments)),new n(s)}}return pS}var wD;function zue(){if(wD)return Us;wD=1;var t=Lue(),e=Vue();Us.highlight=n,Us.highlightAuto=i,Us.registerLanguage=s,Us.listLanguages=a,Us.registerAlias=o,u.prototype.addText=p,u.prototype.addKeyword=l,u.prototype.addSublanguage=c,u.prototype.openNode=h,u.prototype.closeNode=d,u.prototype.closeAllNodes=y,u.prototype.finalize=y,u.prototype.toHTML=g;var r="hljs-";function n(v,E,b){var _=t.configure({}),w=b||{},S=w.prefix,A;if(typeof v!="string")throw e("Expected `string` for name, got `%s`",v);if(!t.getLanguage(v))throw e("Unknown language: `%s` is not registered",v);if(typeof E!="string")throw e("Expected `string` for value, got `%s`",E);if(S==null&&(S=r),t.configure({__emitter:u,classPrefix:S}),A=t.highlight(E,{language:v,ignoreIllegals:!0}),t.configure(_||{}),A.errorRaised)throw A.errorRaised;return{relevance:A.relevance,language:A.language,value:A.emitter.rootNode.children}}function i(v,E){var b=E||{},_=b.subset||t.listLanguages();b.prefix;var w=_.length,S=-1,A,I,T,k;if(typeof v!="string")throw e("Expected `string` for value, got `%s`",v);for(I={relevance:0,language:null,value:[]},A={relevance:0,language:null,value:[]};++S<w;)k=_[S],t.getLanguage(k)&&(T=n(k,v,E),T.language=k,T.relevance>I.relevance&&(I=T),T.relevance>A.relevance&&(I=A,A=T));return I.language&&(A.secondBest=I),A}function s(v,E){t.registerLanguage(v,E)}function a(){return t.listLanguages()}function o(v,E){var b=v,_;E&&(b={},b[v]=E);for(_ in b)t.registerAliases(b[_],{languageName:_})}function u(v){this.options=v,this.rootNode={children:[]},this.stack=[this.rootNode]}function l(v,E){this.openNode(E),this.addText(v),this.closeNode()}function c(v,E){var b=this.stack,_=b[b.length-1],w=v.rootNode.children,S=E?{type:"element",tagName:"span",properties:{className:[E]},children:w}:w;_.children=_.children.concat(S)}function p(v){var E=this.stack,b,_;v!==""&&(b=E[E.length-1],_=b.children[b.children.length-1],_&&_.type==="text"?_.value+=v:b.children.push({type:"text",value:v}))}function h(v){var E=this.stack,b=this.options.classPrefix+v,_=E[E.length-1],w={type:"element",tagName:"span",properties:{className:[b]},children:[]};_.children.push(w),E.push(w)}function d(){this.stack.pop()}function g(){return""}function y(){}return Us}var Wue=zue();const j6=ot(Wue);var N6=$ue(j6,{});N6.registerLanguage=j6.registerLanguage;var dS,xD;function Jue(){if(xD)return dS;xD=1;const t="[A-Za-z$_][0-9A-Za-z$_]*",e=["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"],r=["true","false","null","undefined","NaN","Infinity"],n=["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"],i=["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"],s=["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],a=["arguments","this","super","console","window","document","localStorage","module","global"],o=[].concat(s,a,n,i);function u(h){return h?typeof h=="string"?h:h.source:null}function l(h){return c("(?=",h,")")}function c(...h){return h.map(g=>u(g)).join("")}function p(h){const d=(G,{after:Z})=>{const X="</"+G[0].slice(1);return G.input.indexOf(X,Z)!==-1},g=t,y={begin:"<>",end:"</>"},v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(G,Z)=>{const X=G[0].length+G.index,te=G.input[X];if(te==="<"){Z.ignoreMatch();return}te===">"&&(d(G,{after:X})||Z.ignoreMatch())}},E={$pattern:t,keyword:e,literal:r,built_in:o},b="[0-9](_?[0-9])*",_=`\\.(${b})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",S={className:"number",variants:[{begin:`(\\b(${w})((${_})|\\.)?|(${_}))[eE][+-]?(${b})\\b`},{begin:`\\b(${w})\\b((${_})\\b|\\.)?|(${_})\\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},A={className:"subst",begin:"\\$\\{",end:"\\}",keywords:E,contains:[]},I={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},T={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"css"}},k={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,A]},R={className:"comment",variants:[h.COMMENT(/\/\*\*(?!\/)/,"\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:g+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),h.C_BLOCK_COMMENT_MODE,h.C_LINE_COMMENT_MODE]},$=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,I,T,k,S,h.REGEXP_MODE];A.contains=$.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat($)});const M=[].concat(R,A.contains),K=M.concat([{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(M)}]),ee={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:K};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:K},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,I,T,k,R,S,{begin:c(/[{,\n]\s*/,l(c(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,g+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:g+l("\\s*:"),relevance:0}]},{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[R,h.REGEXP_MODE,{className:"function",begin:"(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|"+h.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:h.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:K}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:y.begin,end:y.end},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:E,contains:["self",h.inherit(h.TITLE_MODE,{begin:g}),ee],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[ee,h.inherit(h.TITLE_MODE,{begin:g})]},{variants:[{begin:"\\."+g},{begin:"\\$"+g}],relevance:0},{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:"extends"},h.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[h.inherit(h.TITLE_MODE,{begin:g}),"self",ee]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:g}),{begin:/\(\)/},ee]},{begin:/\$[(.]/}]}}return dS=p,dS}var Hue=Jue();const Kue=ot(Hue);var hS,AD;function Gue(){if(AD)return hS;AD=1;function t(e){const r={literal:"true false null"},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],i=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],s={end:",",endsWithParent:!0,excludeEnd:!0,contains:i,keywords:r},a={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:"\\n"},e.inherit(s,{begin:/:/})].concat(n),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[e.inherit(s)],illegal:"\\S"};return i.push(a,o),n.forEach(function(u){i.push(u)}),{name:"JSON",contains:i,keywords:r,illegal:"\\S"}}return hS=t,hS}var Yue=Gue();const Xue=ot(Yue);var mS,OD;function Zue(){if(OD)return mS;OD=1;function t(a){return a?typeof a=="string"?a:a.source:null}function e(a){return n("(?=",a,")")}function r(a){return n("(",a,")?")}function n(...a){return a.map(u=>t(u)).join("")}function i(...a){return"("+a.map(u=>t(u)).join("|")+")"}function s(a){const o=n(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),u=/[A-Za-z0-9._:-]+/,l={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},p=a.inherit(c,{begin:/\(/,end:/\)/}),h=a.inherit(a.APOS_STRING_MODE,{className:"meta-string"}),d=a.inherit(a.QUOTE_STRING_MODE,{className:"meta-string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[l]},{begin:/'/,end:/'/,contains:[l]},{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:[c,d,h,p,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[c,p,d,h]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},l,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:/<style(?=\s|>)/,end:/>/,keywords:{name:"style"},contains:[g],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:/<script(?=\s|>)/,end:/>/,keywords:{name:"script"},contains:[g],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:/<>|<\/>/},{className:"tag",begin:n(/</,e(n(o,i(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:g}]},{className:"tag",begin:n(/<\//,e(n(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return mS=s,mS}var Que=Zue();const ele=ot(Que);var gS,CD;function tle(){if(CD)return gS;CD=1;function t(n){return n?typeof n=="string"?n:n.source:null}function e(...n){return n.map(s=>t(s)).join("")}function r(n){const i={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:e(/\$[\w\d#@][\w\d_]*/,"(?![\\w\\d])(?![$])")},s]});const a={className:"subst",begin:/\$\(/,end:/\)/,contains:[n.BACKSLASH_ESCAPE]},o={begin:/<<-?\s*(?=\w+)/,starts:{contains:[n.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:"string"})]}},u={className:"string",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE,i,a]};a.contains.push(u);const l={className:"",begin:/\\"/},c={className:"string",begin:/'/,end:/'/},p={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,i]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],d=n.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.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:[d,n.SHEBANG(),g,p,n.HASH_COMMENT_MODE,o,u,l,c,i]}}return gS=r,gS}var rle=tle();const nle=ot(rle);var yS,RD;function ile(){if(RD)return yS;RD=1;function t(e){var r="true false yes no null",n="[\\w#;/?:@&=+$,.~*'()[\\]]+",i={className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ ]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ ]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ ]|$)"}]},s={className:"template-variable",variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]},a={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,s]},o=e.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),u="[0-9]{4}(-[0-9][0-9]){0,2}",l="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",c="(\\.[0-9]*)?",p="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",h={className:"number",begin:"\\b"+u+l+c+p+"\\b"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},v=[i,{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+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},h,{className:"number",begin:e.C_NUMBER_RE+"\\b",relevance:0},g,y,a],E=[...v];return E.pop(),E.push(o),d.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return yS=t,yS}var sle=ile();const ale=ot(sle);var vS,ID;function ole(){if(ID)return vS;ID=1;function t(n){return n?typeof n=="string"?n:n.source:null}function e(...n){return n.map(s=>t(s)).join("")}function r(n){const i="HTTP/(2|1\\.[01])",a={className:"attribute",begin:e("^",/[A-Za-z][A-Za-z0-9-]*/,"(?=\\:\\s)"),starts:{contains:[{className:"punctuation",begin:/: /,relevance:0,starts:{end:"$",relevance:0}}]}},o=[a,{begin:"\\n\\n",starts:{subLanguage:[],endsWithParent:!0}}];return{name:"HTTP",aliases:["https"],illegal:/\S/,contains:[{begin:"^(?="+i+" \\d{3})",end:/$/,contains:[{className:"meta",begin:i},{className:"number",begin:"\\b\\d{3}\\b"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},{begin:"(?=^[A-Z]+ (.*?) "+i+"$)",end:/$/,contains:[{className:"string",begin:" ",end:" ",excludeBegin:!0,excludeEnd:!0},{className:"meta",begin:i},{className:"keyword",begin:"[A-Z]+"}],starts:{end:/\b\B/,illegal:/\S/,contains:o}},n.inherit(a,{relevance:0})]}}return vS=r,vS}var ule=ole();const lle=ot(ule);var bS,TD;function cle(){if(TD)return bS;TD=1;function t(e){const r=["string","char","byte","int","long","bool","decimal","single","double","DateTime","xml","array","hashtable","void"],n="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",i="-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"},a=/\w[\w\d]*((-)[\w\d]+)*/,o={begin:"`[\\s\\S]",relevance:0},u={className:"variable",variants:[{begin:/\$\B/},{className:"keyword",begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},l={className:"literal",begin:/\$(null|true|false)\b/},c={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,u,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},p={className:"string",variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},h={className:"doctag",variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]},d=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[h]}),g={className:"built_in",variants:[{begin:"(".concat(n,")+(-)[\\w\\d]+")}]},y={className:"class",beginKeywords:"class enum",end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.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:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[u]}]},E={begin:/using\s/,end:/$/,returnBegin:!0,contains:[c,p,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},_={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},e.inherit(e.TITLE_MODE,{endsParent:!0})]},S=[w,d,o,e.NUMBER_MODE,c,p,g,u,l,_],A={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",S,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return w.contains.unshift(A),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:s,contains:S.concat(y,v,E,b,A)}}return bS=t,bS}var fle=cle();const ple=ot(fle),dle={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"}},hle={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"}},mle={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"}},gle={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"}},yle={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"}},vle={"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"}},ble={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 ES,PD;function Ele(){return PD||(PD=1,ES=function(t,e,r,n){var i=typeof n<"u"?[n,t]:[t],s=new Blob(i,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(s,e);else{var a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(s):window.webkitURL.createObjectURL(s),o=document.createElement("a");o.style.display="none",o.href=a,o.setAttribute("download",e),typeof o.download>"u"&&o.setAttribute("target","_blank"),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(a)},200)}}),ES}var Sle=Ele();const _le=ot(Sle);var SS,kD;function wle(){if(kD)return SS;kD=1;function t(e,r,n){for(var i=-1,s=e.length,a=r.length,o={};++i<s;){var u=i<a?r[i]:void 0;n(o,e[i],u)}return o}return SS=t,SS}var _S,jD;function xle(){if(jD)return _S;jD=1;var t=Sf(),e=wle();function r(n,i){return e(n||[],i||[],t)}return _S=r,_S}var Ale=xle();const Ole=ot(Ale);var Cle=Qi();const Rle=ot(Cle);/*!
215
+ * repeat-string <https://github.com/jonschlinkert/repeat-string>
216
+ *
217
+ * Copyright (c) 2014-2015, Jon Schlinkert.
218
+ * Licensed under the MIT License.
219
+ */var wS,ND;function Ile(){if(ND)return wS;ND=1;var t="",e;wS=r;function r(n,i){if(typeof n!="string")throw new TypeError("expected a string");if(i===1)return n;if(i===2)return n+n;var s=n.length*i;if(e!==n||typeof e>"u")e=n,t="";else if(t.length>=s)return t.substr(0,s);for(;s>t.length&&i>1;)i&1&&(t+=n),i>>=1,n+=n;return t+=n,t=t.substr(0,s),t}return wS}var xS,MD;function Tle(){if(MD)return xS;MD=1;var t=Ile(),e=function(l){return l.split(/(<\/?[^>]+>)/g).filter(function(c){return c.trim()!==""})},r=function(l){return/<[^>!]+>/.test(l)},n=function(l){return/<\/+[^>]+>/.test(l)},i=function(l){return/<[^>]+\/>/.test(l)},s=function(l){return r(l)&&!n(l)&&!i(l)};xS=function(u){var l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=l.indentor,p=l.textNodesOnSameLine,h=0,d=[];c=c||" ";var g=a(u).map(function(y,v,E){var b=y.value,_=y.type;_==="ClosingTag"&&h--;var w=t(c,h),S=w+b;if(_==="OpeningTag"&&h++,p){var A=E[v-1],I=E[v-2];_==="ClosingTag"&&A.type==="Text"&&I.type==="OpeningTag"&&(S=""+w+I.value+A.value+b,d.push(v-2,v-1))}return S});return d.forEach(function(y){return g[y]=null}),g.filter(function(y){return!!y}).join(`
220
+ `)};function a(u){var l=e(u);return l.map(function(c){return{value:c,type:o(c)}})}function o(u){return n(u)?"ClosingTag":s(u)?"OpeningTag":i(u)?"SelfClosingTag":"Text"}return xS}var Ple=Tle();const kle=ot(Ple);var AS,DD;function jle(){if(DD)return AS;DD=1;var t=Qi();function e(r){return t(r).toLowerCase()}return AS=e,AS}var Nle=jle();const Mle=ot(Nle);var lc;function M6(t){return lc=lc||document.createElement("textarea"),lc.innerHTML="&"+t+";",lc.value}var Dle=Object.prototype.hasOwnProperty;function Fle(t,e){return t?Dle.call(t,e):!1}function D6(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 qle=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function pu(t){return t.indexOf("\\")<0?t:t.replace(qle,"$1")}function F6(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 M1(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 Ble=/&([a-z#][a-z0-9]{1,31});/gi,$le=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function Lle(t,e){var r=0,n=M6(e);return e!==n?n:e.charCodeAt(0)===35&&$le.test(e)&&(r=e[1].toLowerCase()==="x"?parseInt(e.slice(2),16):parseInt(e.slice(1),10),F6(r))?M1(r):t}function ia(t){return t.indexOf("&")<0?t:t.replace(Ble,Lle)}var Ule=/[&<>"]/,Vle=/[&<>"]/g,zle={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function Wle(t){return zle[t]}function ln(t){return Ule.test(t)?t.replace(Vle,Wle):t}var Ye={};Ye.blockquote_open=function(){return`<blockquote>
221
+ `};Ye.blockquote_close=function(t,e){return"</blockquote>"+ma(t,e)};Ye.code=function(t,e){return t[e].block?"<pre><code>"+ln(t[e].content)+"</code></pre>"+ma(t,e):"<code>"+ln(t[e].content)+"</code>"};Ye.fence=function(t,e,r,n,i){var s=t[e],a="",o=r.langPrefix,u="",l,c,p;if(s.params){if(l=s.params.split(/\s+/g),c=l.join(" "),Fle(i.rules.fence_custom,l[0]))return i.rules.fence_custom[l[0]](t,e,r,n,i);u=ln(ia(pu(c))),a=' class="'+o+u+'"'}return r.highlight?p=r.highlight.apply(r.highlight,[s.content].concat(l))||ln(s.content):p=ln(s.content),"<pre><code"+a+">"+p+"</code></pre>"+ma(t,e)};Ye.fence_custom={};Ye.heading_open=function(t,e){return"<h"+t[e].hLevel+">"};Ye.heading_close=function(t,e){return"</h"+t[e].hLevel+`>
222
+ `};Ye.hr=function(t,e,r){return(r.xhtmlOut?"<hr />":"<hr>")+ma(t,e)};Ye.bullet_list_open=function(){return`<ul>
223
+ `};Ye.bullet_list_close=function(t,e){return"</ul>"+ma(t,e)};Ye.list_item_open=function(){return"<li>"};Ye.list_item_close=function(){return`</li>
224
+ `};Ye.ordered_list_open=function(t,e){var r=t[e],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
225
+ `};Ye.ordered_list_close=function(t,e){return"</ol>"+ma(t,e)};Ye.paragraph_open=function(t,e){return t[e].tight?"":"<p>"};Ye.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?ma(t,e):"")};Ye.link_open=function(t,e,r){var n=t[e].title?' title="'+ln(ia(t[e].title))+'"':"",i=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+ln(t[e].href)+'"'+n+i+">"};Ye.link_close=function(){return"</a>"};Ye.image=function(t,e,r){var n=' src="'+ln(t[e].src)+'"',i=t[e].title?' title="'+ln(ia(t[e].title))+'"':"",s=' alt="'+(t[e].alt?ln(ia(pu(t[e].alt))):"")+'"',a=r.xhtmlOut?" /":"";return"<img"+n+s+i+a+">"};Ye.table_open=function(){return`<table>
226
+ `};Ye.table_close=function(){return`</table>
227
+ `};Ye.thead_open=function(){return`<thead>
228
+ `};Ye.thead_close=function(){return`</thead>
229
+ `};Ye.tbody_open=function(){return`<tbody>
230
+ `};Ye.tbody_close=function(){return`</tbody>
231
+ `};Ye.tr_open=function(){return"<tr>"};Ye.tr_close=function(){return`</tr>
232
+ `};Ye.th_open=function(t,e){var r=t[e];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ye.th_close=function(){return"</th>"};Ye.td_open=function(t,e){var r=t[e];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ye.td_close=function(){return"</td>"};Ye.strong_open=function(){return"<strong>"};Ye.strong_close=function(){return"</strong>"};Ye.em_open=function(){return"<em>"};Ye.em_close=function(){return"</em>"};Ye.del_open=function(){return"<del>"};Ye.del_close=function(){return"</del>"};Ye.ins_open=function(){return"<ins>"};Ye.ins_close=function(){return"</ins>"};Ye.mark_open=function(){return"<mark>"};Ye.mark_close=function(){return"</mark>"};Ye.sub=function(t,e){return"<sub>"+ln(t[e].content)+"</sub>"};Ye.sup=function(t,e){return"<sup>"+ln(t[e].content)+"</sup>"};Ye.hardbreak=function(t,e,r){return r.xhtmlOut?`<br />
233
+ `:`<br>
234
+ `};Ye.softbreak=function(t,e,r){return r.breaks?r.xhtmlOut?`<br />
235
+ `:`<br>
236
+ `:`
237
+ `};Ye.text=function(t,e){return ln(t[e].content)};Ye.htmlblock=function(t,e){return t[e].content};Ye.htmltag=function(t,e){return t[e].content};Ye.abbr_open=function(t,e){return'<abbr title="'+ln(ia(t[e].title))+'">'};Ye.abbr_close=function(){return"</abbr>"};Ye.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>"};Ye.footnote_block_open=function(t,e,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
238
+ `:`<hr class="footnotes-sep">
239
+ `;return n+`<section class="footnotes">
240
+ <ol class="footnotes-list">
241
+ `};Ye.footnote_block_close=function(){return`</ol>
242
+ </section>
243
+ `};Ye.footnote_open=function(t,e){var r=Number(t[e].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};Ye.footnote_close=function(){return`</li>
244
+ `};Ye.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>'};Ye.dl_open=function(){return`<dl>
245
+ `};Ye.dt_open=function(){return"<dt>"};Ye.dd_open=function(){return"<dd>"};Ye.dl_close=function(){return`</dl>
246
+ `};Ye.dt_close=function(){return`</dt>
247
+ `};Ye.dd_close=function(){return`</dd>
248
+ `};function q6(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?q6(t,e+2):e}var ma=Ye.getBreak=function(e,r){return r=q6(e,r),r<e.length&&e[r].type==="list_item_close"?"":`
249
+ `};function nA(){this.rules=D6({},Ye),this.getBreak=Ye.getBreak}nA.prototype.renderInline=function(t,e,r){for(var n=this.rules,i=t.length,s=0,a="";i--;)a+=n[t[s].type](t,s++,e,r,this);return a};nA.prototype.render=function(t,e,r){for(var n=this.rules,i=t.length,s=-1,a="";++s<i;)t[s].type==="inline"?a+=this.renderInline(t[s].children,e,r):a+=n[t[s].type](t,s,e,r,this);return a};function xn(){this.__rules__=[],this.__cache__=null}xn.prototype.__find__=function(t){for(var e=this.__rules__.length,r=-1;e--;)if(this.__rules__[++r].name===t)return r;return-1};xn.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))})})};xn.prototype.at=function(t,e,r){var n=this.__find__(t),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+t);this.__rules__[n].fn=e,this.__rules__[n].alt=i.alt||[],this.__cache__=null};xn.prototype.before=function(t,e,r,n){var i=this.__find__(t),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i,0,{name:e,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};xn.prototype.after=function(t,e,r,n){var i=this.__find__(t),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+t);this.__rules__.splice(i+1,0,{name:e,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};xn.prototype.push=function(t,e,r){var n=r||{};this.__rules__.push({name:t,enabled:!0,fn:e,alt:n.alt||[]}),this.__cache__=null};xn.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};xn.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};xn.prototype.getRules=function(t){return this.__cache__===null&&this.__compile__(),this.__cache__[t]||[]};function Jle(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 ga(t,e,r,n,i){this.src=t,this.env=n,this.options=r,this.parser=e,this.tokens=i,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}ga.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};ga.prototype.push=function(t){this.pending&&this.pushPending(),this.tokens.push(t),this.pendingLevel=this.level};ga.prototype.cacheSet=function(t,e){for(var r=this.cache.length;r<=t;r++)this.cache.push(0);this.cache[t]=e};ga.prototype.cacheGet=function(t){return t<this.cache.length?this.cache[t]:0};function du(t,e){var r,n,i,s=-1,a=t.posMax,o=t.pos,u=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<a;){if(i=t.src.charCodeAt(t.pos),i===91)r++;else if(i===93&&(r--,r===0)){n=!0;break}t.parser.skipToken(t)}return n?(s=t.pos,t.labelUnmatchedScopes=0):t.labelUnmatchedScopes=r-1,t.pos=o,t.isInLabel=u,s}function Hle(t,e,r,n){var i,s,a,o,u,l;if(t.charCodeAt(0)!==42||t.charCodeAt(1)!==91||t.indexOf("]:")===-1||(i=new ga(t,e,r,n,[]),s=du(i,1),s<0||t.charCodeAt(s+1)!==58))return-1;for(o=i.posMax,a=s+2;a<o&&i.src.charCodeAt(a)!==10;a++);return u=t.slice(2,s),l=t.slice(s+2,a).trim(),l.length===0?-1:(n.abbreviations||(n.abbreviations={}),typeof n.abbreviations[":"+u]>"u"&&(n.abbreviations[":"+u]=l),a)}function Kle(t){var e=t.tokens,r,n,i,s;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(i=e[r].content;i.length&&(s=Hle(i,t.inline,t.options,t.env),!(s<0));)i=i.slice(s).trim();e[r].content=i,i.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function D1(t){var e=ia(t);try{e=decodeURI(e)}catch{}return encodeURI(e)}function B6(t,e){var r,n,i,s=e,a=t.posMax;if(t.src.charCodeAt(e)===60){for(e++;e<a;){if(r=t.src.charCodeAt(e),r===10)return!1;if(r===62)return i=D1(pu(t.src.slice(s+1,e))),t.parser.validateLink(i)?(t.pos=e+1,t.linkContent=i,!0):!1;if(r===92&&e+1<a){e+=2;continue}e++}return!1}for(n=0;e<a&&(r=t.src.charCodeAt(e),!(r===32||r<32||r===127));){if(r===92&&e+1<a){e+=2;continue}if(r===40&&(n++,n>1)||r===41&&(n--,n<0))break;e++}return s===e||(i=pu(t.src.slice(s,e)),!t.parser.validateLink(i))?!1:(t.linkContent=i,t.pos=e,!0)}function $6(t,e){var r,n=e,i=t.posMax,s=t.src.charCodeAt(e);if(s!==34&&s!==39&&s!==40)return!1;for(e++,s===40&&(s=41);e<i;){if(r=t.src.charCodeAt(e),r===s)return t.pos=e+1,t.linkContent=pu(t.src.slice(n+1,e)),!0;if(r===92&&e+1<i){e+=2;continue}e++}return!1}function L6(t){return t.trim().replace(/\s+/g," ").toUpperCase()}function Gle(t,e,r,n){var i,s,a,o,u,l,c,p,h;if(t.charCodeAt(0)!==91||t.indexOf("]:")===-1||(i=new ga(t,e,r,n,[]),s=du(i,0),s<0||t.charCodeAt(s+1)!==58))return-1;for(o=i.posMax,a=s+2;a<o&&(u=i.src.charCodeAt(a),!(u!==32&&u!==10));a++);if(!B6(i,a))return-1;for(c=i.linkContent,a=i.pos,l=a,a=a+1;a<o&&(u=i.src.charCodeAt(a),!(u!==32&&u!==10));a++);for(a<o&&l!==a&&$6(i,a)?(p=i.linkContent,a=i.pos):(p="",a=l);a<o&&i.src.charCodeAt(a)===32;)a++;return a<o&&i.src.charCodeAt(a)!==10?-1:(h=L6(t.slice(1,s)),typeof n.references[h]>"u"&&(n.references[h]={title:p,href:c}),a)}function Yle(t){var e=t.tokens,r,n,i,s;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(i=e[r].content;i.length&&(s=Gle(i,t.inline,t.options,t.env),!(s<0));)i=i.slice(s).trim();e[r].content=i,i.length||(e[r-1].tight=!0,e[r+1].tight=!0)}}}function Xle(t){var e=t.tokens,r,n,i;for(n=0,i=e.length;n<i;n++)r=e[n],r.type==="inline"&&t.inline.parse(r.content,t.options,t.env,r.children)}function Zle(t){var e,r,n,i,s,a,o,u,l,c=0,p=!1,h={};if(t.env.footnotes&&(t.tokens=t.tokens.filter(function(d){return d.type==="footnote_reference_open"?(p=!0,u=[],l=d.label,!1):d.type==="footnote_reference_close"?(p=!1,h[":"+l]=u,!1):(p&&u.push(d),!p)}),!!t.env.footnotes.list)){for(a=t.env.footnotes.list,t.tokens.push({type:"footnote_block_open",level:c++}),e=0,r=a.length;e<r;e++){for(t.tokens.push({type:"footnote_open",id:e,level:c++}),a[e].tokens?(o=[],o.push({type:"paragraph_open",tight:!1,level:c++}),o.push({type:"inline",content:"",level:c,children:a[e].tokens}),o.push({type:"paragraph_close",tight:!1,level:--c})):a[e].label&&(o=h[":"+a[e].label]),t.tokens=t.tokens.concat(o),t.tokens[t.tokens.length-1].type==="paragraph_close"?s=t.tokens.pop():s=null,i=a[e].count>0?a[e].count:1,n=0;n<i;n++)t.tokens.push({type:"footnote_anchor",id:e,subId:n,level:c});s&&t.tokens.push(s),t.tokens.push({type:"footnote_close",level:--c})}t.tokens.push({type:"footnote_block_close",level:--c})}}var FD=`
250
+ ()[]'".,!?-`;function OS(t){return t.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function Qle(t){var e,r,n,i,s,a,o,u,l,c,p,h,d=t.tokens;if(t.env.abbreviations){for(t.env.abbrRegExp||(h="(^|["+FD.split("").map(OS).join("")+"])("+Object.keys(t.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,y){return y.length-g.length}).map(OS).join("|")+")($|["+FD.split("").map(OS).join("")+"])",t.env.abbrRegExp=new RegExp(h,"g")),c=t.env.abbrRegExp,r=0,n=d.length;r<n;r++)if(d[r].type==="inline"){for(i=d[r].children,e=i.length-1;e>=0;e--)if(s=i[e],s.type==="text"){for(u=0,a=s.content,c.lastIndex=0,l=s.level,o=[];p=c.exec(a);)c.lastIndex>u&&o.push({type:"text",content:a.slice(u,p.index+p[1].length),level:l}),o.push({type:"abbr_open",title:t.env.abbreviations[":"+p[2]],level:l++}),o.push({type:"text",content:p[2],level:l}),o.push({type:"abbr_close",level:--l}),u=c.lastIndex-p[3].length;o.length&&(u<a.length&&o.push({type:"text",content:a.slice(u),level:l}),d[r].children=i=[].concat(i.slice(0,e),o,i.slice(e+1)))}}}}var ece=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,tce=/\((c|tm|r|p)\)/ig,rce={c:"©",r:"®",p:"§",tm:"™"};function nce(t){return t.indexOf("(")<0?t:t.replace(tce,function(e,r){return rce[r.toLowerCase()]})}function ice(t){var e,r,n,i,s;if(t.options.typographer){for(s=t.tokens.length-1;s>=0;s--)if(t.tokens[s].type==="inline")for(i=t.tokens[s].children,e=i.length-1;e>=0;e--)r=i[e],r.type==="text"&&(n=r.content,n=nce(n),ece.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 sce=/['"]/,qD=/['"]/g,ace=/[-\s()\[\]]/,BD="’";function $D(t,e){return e<0||e>=t.length?!1:!ace.test(t[e])}function Ia(t,e,r){return t.substr(0,e)+r+t.substr(e+1)}function oce(t){var e,r,n,i,s,a,o,u,l,c,p,h,d,g,y,v,E;if(t.options.typographer){for(E=[],y=t.tokens.length-1;y>=0;y--)if(t.tokens[y].type==="inline"){for(v=t.tokens[y].children,E.length=0,e=0;e<v.length;e++)if(r=v[e],!(r.type!=="text"||sce.test(r.text))){for(o=v[e].level,d=E.length-1;d>=0&&!(E[d].level<=o);d--);E.length=d+1,n=r.content,s=0,a=n.length;e:for(;s<a&&(qD.lastIndex=s,i=qD.exec(n),!!i);){if(u=!$D(n,i.index-1),s=i.index+1,g=i[0]==="'",l=!$D(n,s),!l&&!u){g&&(r.content=Ia(r.content,i.index,BD));continue}if(p=!l,h=!u,h){for(d=E.length-1;d>=0&&(c=E[d],!(E[d].level<o));d--)if(c.single===g&&E[d].level===o){c=E[d],g?(v[c.token].content=Ia(v[c.token].content,c.pos,t.options.quotes[2]),r.content=Ia(r.content,i.index,t.options.quotes[3])):(v[c.token].content=Ia(v[c.token].content,c.pos,t.options.quotes[0]),r.content=Ia(r.content,i.index,t.options.quotes[1])),E.length=d;continue e}}p?E.push({token:e,pos:i.index,single:g,level:o}):h&&g&&(r.content=Ia(r.content,i.index,BD))}}}}}var CS=[["block",Jle],["abbr",Kle],["references",Yle],["inline",Xle],["footnote_tail",Zle],["abbr2",Qle],["replacements",ice],["smartquotes",oce]];function U6(){this.options={},this.ruler=new xn;for(var t=0;t<CS.length;t++)this.ruler.push(CS[t][0],CS[t][1])}U6.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 ya(t,e,r,n,i){var s,a,o,u,l,c,p;for(this.src=t,this.parser=e,this.options=r,this.env=n,this.tokens=i,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="",a=this.src,c=0,p=!1,o=u=c=0,l=a.length;u<l;u++){if(s=a.charCodeAt(u),!p)if(s===32){c++;continue}else p=!0;(s===10||u===l-1)&&(s!==10&&u++,this.bMarks.push(o),this.eMarks.push(u),this.tShift.push(c),p=!1,c=0,o=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}ya.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]};ya.prototype.skipEmptyLines=function(e){for(var r=this.lineMax;e<r&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e};ya.prototype.skipSpaces=function(e){for(var r=this.src.length;e<r&&this.src.charCodeAt(e)===32;e++);return e};ya.prototype.skipChars=function(e,r){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===r;e++);return e};ya.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};ya.prototype.getLines=function(e,r,n,i){var s,a,o,u,l,c=e;if(e>=r)return"";if(c+1===r)return a=this.bMarks[c]+Math.min(this.tShift[c],n),o=i?this.eMarks[c]+1:this.eMarks[c],this.src.slice(a,o);for(u=new Array(r-e),s=0;c<r;c++,s++)l=this.tShift[c],l>n&&(l=n),l<0&&(l=0),a=this.bMarks[c]+l,c+1<r||i?o=this.eMarks[c]+1:o=this.eMarks[c],u[s]=this.src.slice(a,o);return u.join("")};function uce(t,e,r){var n,i;if(t.tShift[e]-t.blkIndent<4)return!1;for(i=n=e+1;n<r;){if(t.isEmpty(n)){n++;continue}if(t.tShift[n]-t.blkIndent>=4){n++,i=n;continue}break}return t.line=n,t.tokens.push({type:"code",content:t.getLines(e,i,4+t.blkIndent,!0),block:!0,lines:[e,t.line],level:t.level}),!0}function lce(t,e,r,n){var i,s,a,o,u,l=!1,c=t.bMarks[e]+t.tShift[e],p=t.eMarks[e];if(c+3>p||(i=t.src.charCodeAt(c),i!==126&&i!==96)||(u=c,c=t.skipChars(c,i),s=c-u,s<3)||(a=t.src.slice(c,p).trim(),a.indexOf("`")>=0))return!1;if(n)return!0;for(o=e;o++,!(o>=r||(c=u=t.bMarks[o]+t.tShift[o],p=t.eMarks[o],c<p&&t.tShift[o]<t.blkIndent));)if(t.src.charCodeAt(c)===i&&!(t.tShift[o]-t.blkIndent>=4)&&(c=t.skipChars(c,i),!(c-u<s)&&(c=t.skipSpaces(c),!(c<p)))){l=!0;break}return s=t.tShift[e],t.line=o+(l?1:0),t.tokens.push({type:"fence",params:a,content:t.getLines(e+1,o,s,!0),lines:[e,t.line],level:t.level}),!0}function cce(t,e,r,n){var i,s,a,o,u,l,c,p,h,d,g,y=t.bMarks[e]+t.tShift[e],v=t.eMarks[e];if(y>v||t.src.charCodeAt(y++)!==62||t.level>=t.options.maxNesting)return!1;if(n)return!0;for(t.src.charCodeAt(y)===32&&y++,u=t.blkIndent,t.blkIndent=0,o=[t.bMarks[e]],t.bMarks[e]=y,y=y<v?t.skipSpaces(y):y,s=y>=v,a=[t.tShift[e]],t.tShift[e]=y-t.bMarks[e],p=t.parser.ruler.getRules("blockquote"),i=e+1;i<r&&(y=t.bMarks[i]+t.tShift[i],v=t.eMarks[i],!(y>=v));i++){if(t.src.charCodeAt(y++)===62){t.src.charCodeAt(y)===32&&y++,o.push(t.bMarks[i]),t.bMarks[i]=y,y=y<v?t.skipSpaces(y):y,s=y>=v,a.push(t.tShift[i]),t.tShift[i]=y-t.bMarks[i];continue}if(s)break;for(g=!1,h=0,d=p.length;h<d;h++)if(p[h](t,i,r,!0)){g=!0;break}if(g)break;o.push(t.bMarks[i]),a.push(t.tShift[i]),t.tShift[i]=-1337}for(l=t.parentType,t.parentType="blockquote",t.tokens.push({type:"blockquote_open",lines:c=[e,0],level:t.level++}),t.parser.tokenize(t,e,i),t.tokens.push({type:"blockquote_close",level:--t.level}),t.parentType=l,c[1]=t.line,h=0;h<a.length;h++)t.bMarks[h+e]=o[h],t.tShift[h+e]=a[h];return t.blkIndent=u,!0}function fce(t,e,r,n){var i,s,a,o=t.bMarks[e],u=t.eMarks[e];if(o+=t.tShift[e],o>u||(i=t.src.charCodeAt(o++),i!==42&&i!==45&&i!==95))return!1;for(s=1;o<u;){if(a=t.src.charCodeAt(o++),a!==i&&a!==32)return!1;a===i&&s++}return s<3?!1:(n||(t.line=e+1,t.tokens.push({type:"hr",lines:[e,t.line],level:t.level})),!0)}function LD(t,e){var r,n,i;return n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e],n>=i||(r=t.src.charCodeAt(n++),r!==42&&r!==45&&r!==43)||n<i&&t.src.charCodeAt(n)!==32?-1:n}function UD(t,e){var r,n=t.bMarks[e]+t.tShift[e],i=t.eMarks[e];if(n+1>=i||(r=t.src.charCodeAt(n++),r<48||r>57))return-1;for(;;){if(n>=i)return-1;if(r=t.src.charCodeAt(n++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n<i&&t.src.charCodeAt(n)!==32?-1:n}function pce(t,e){var r,n,i=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===i&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function dce(t,e,r,n){var i,s,a,o,u,l,c,p,h,d,g,y,v,E,b,_,w,S,A=!0,I,T,k,D;if((p=UD(t,e))>=0)v=!0;else if((p=LD(t,e))>=0)v=!1;else return!1;if(t.level>=t.options.maxNesting)return!1;if(y=t.src.charCodeAt(p-1),n)return!0;for(b=t.tokens.length,v?(c=t.bMarks[e]+t.tShift[e],g=Number(t.src.substr(c,p-c-1)),t.tokens.push({type:"ordered_list_open",order:g,lines:w=[e,0],level:t.level++})):t.tokens.push({type:"bullet_list_open",lines:w=[e,0],level:t.level++}),i=e,_=!1,I=t.parser.ruler.getRules("list");i<r&&(E=t.skipSpaces(p),h=t.eMarks[i],E>=h?d=1:d=E-p,d>4&&(d=1),d<1&&(d=1),s=p-t.bMarks[i]+d,t.tokens.push({type:"list_item_open",lines:S=[e,0],level:t.level++}),o=t.blkIndent,u=t.tight,a=t.tShift[e],l=t.parentType,t.tShift[e]=E-t.bMarks[e],t.blkIndent=s,t.tight=!0,t.parentType="list",t.parser.tokenize(t,e,r,!0),(!t.tight||_)&&(A=!1),_=t.line-e>1&&t.isEmpty(t.line-1),t.blkIndent=o,t.tShift[e]=a,t.tight=u,t.parentType=l,t.tokens.push({type:"list_item_close",level:--t.level}),i=e=t.line,S[1]=i,E=t.bMarks[e],!(i>=r||t.isEmpty(i)||t.tShift[i]<t.blkIndent));){for(D=!1,T=0,k=I.length;T<k;T++)if(I[T](t,i,r,!0)){D=!0;break}if(D)break;if(v){if(p=UD(t,i),p<0)break}else if(p=LD(t,i),p<0)break;if(y!==t.src.charCodeAt(p-1))break}return t.tokens.push({type:v?"ordered_list_close":"bullet_list_close",level:--t.level}),w[1]=i,t.line=i,A&&pce(t,b),!0}function hce(t,e,r,n){var i,s,a,o,u,l=t.bMarks[e]+t.tShift[e],c=t.eMarks[e];if(l+4>c||t.src.charCodeAt(l)!==91||t.src.charCodeAt(l+1)!==94||t.level>=t.options.maxNesting)return!1;for(o=l+2;o<c;o++){if(t.src.charCodeAt(o)===32)return!1;if(t.src.charCodeAt(o)===93)break}return o===l+2||o+1>=c||t.src.charCodeAt(++o)!==58?!1:(n||(o++,t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.refs||(t.env.footnotes.refs={}),u=t.src.slice(l+2,o-2),t.env.footnotes.refs[":"+u]=-1,t.tokens.push({type:"footnote_reference_open",label:u,level:t.level++}),i=t.bMarks[e],s=t.tShift[e],a=t.parentType,t.tShift[e]=t.skipSpaces(o)-o,t.bMarks[e]=o,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=a,t.blkIndent-=4,t.tShift[e]=s,t.bMarks[e]=i,t.tokens.push({type:"footnote_reference_close",level:--t.level})),!0)}function mce(t,e,r,n){var i,s,a,o=t.bMarks[e]+t.tShift[e],u=t.eMarks[e];if(o>=u||(i=t.src.charCodeAt(o),i!==35||o>=u))return!1;for(s=1,i=t.src.charCodeAt(++o);i===35&&o<u&&s<=6;)s++,i=t.src.charCodeAt(++o);return s>6||o<u&&i!==32?!1:(n||(u=t.skipCharsBack(u,32,o),a=t.skipCharsBack(u,35,o),a>o&&t.src.charCodeAt(a-1)===32&&(u=a),t.line=e+1,t.tokens.push({type:"heading_open",hLevel:s,lines:[e,t.line],level:t.level}),o<u&&t.tokens.push({type:"inline",content:t.src.slice(o,u).trim(),level:t.level+1,lines:[e,t.line],children:[]}),t.tokens.push({type:"heading_close",hLevel:s,level:t.level})),!0)}function gce(t,e,r){var n,i,s,a=e+1;return a>=r||t.tShift[a]<t.blkIndent||t.tShift[a]-t.blkIndent>3||(i=t.bMarks[a]+t.tShift[a],s=t.eMarks[a],i>=s)||(n=t.src.charCodeAt(i),n!==45&&n!==61)||(i=t.skipChars(i,n),i=t.skipSpaces(i),i<s)?!1:(i=t.bMarks[e]+t.tShift[e],t.line=a+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(i,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 V6={};["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){V6[t]=!0});var yce=/^<([a-zA-Z]{1,15})[\s\/>]/,vce=/^<\/([a-zA-Z]{1,15})[\s>]/;function bce(t){var e=t|32;return e>=97&&e<=122}function Ece(t,e,r,n){var i,s,a,o=t.bMarks[e],u=t.eMarks[e],l=t.tShift[e];if(o+=l,!t.options.html||l>3||o+2>=u||t.src.charCodeAt(o)!==60)return!1;if(i=t.src.charCodeAt(o+1),i===33||i===63){if(n)return!0}else if(i===47||bce(i)){if(i===47){if(s=t.src.slice(o,u).match(vce),!s)return!1}else if(s=t.src.slice(o,u).match(yce),!s)return!1;if(V6[s[1].toLowerCase()]!==!0)return!1;if(n)return!0}else return!1;for(a=e+1;a<t.lineMax&&!t.isEmpty(a);)a++;return t.line=a,t.tokens.push({type:"htmlblock",level:t.level,lines:[e,t.line],content:t.getLines(e,a,0,!0)}),!0}function RS(t,e){var r=t.bMarks[e]+t.blkIndent,n=t.eMarks[e];return t.src.substr(r,n-r)}function Sce(t,e,r,n){var i,s,a,o,u,l,c,p,h,d,g;if(e+2>r||(u=e+1,t.tShift[u]<t.blkIndent)||(a=t.bMarks[u]+t.tShift[u],a>=t.eMarks[u])||(i=t.src.charCodeAt(a),i!==124&&i!==45&&i!==58)||(s=RS(t,e+1),!/^[-:| ]+$/.test(s))||(l=s.split("|"),l<=2))return!1;for(p=[],o=0;o<l.length;o++){if(h=l[o].trim(),!h){if(o===0||o===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;h.charCodeAt(h.length-1)===58?p.push(h.charCodeAt(0)===58?"center":"right"):h.charCodeAt(0)===58?p.push("left"):p.push("")}if(s=RS(t,e).trim(),s.indexOf("|")===-1||(l=s.replace(/^\||\|$/g,"").split("|"),p.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++}),o=0;o<l.length;o++)t.tokens.push({type:"th_open",align:p[o],lines:[e,e+1],level:t.level++}),t.tokens.push({type:"inline",content:l[o].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++}),u=e+2;u<r&&!(t.tShift[u]<t.blkIndent||(s=RS(t,u).trim(),s.indexOf("|")===-1));u++){for(l=s.replace(/^\||\|$/g,"").split("|"),t.tokens.push({type:"tr_open",level:t.level++}),o=0;o<l.length;o++)t.tokens.push({type:"td_open",align:p[o],level:t.level++}),c=l[o].substring(l[o].charCodeAt(0)===124?1:0,l[o].charCodeAt(l[o].length-1)===124?l[o].length-1:l[o].length).trim(),t.tokens.push({type:"inline",content:c,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]=u,t.line=u,!0}function cc(t,e){var r,n,i=t.bMarks[e]+t.tShift[e],s=t.eMarks[e];return i>=s||(n=t.src.charCodeAt(i++),n!==126&&n!==58)||(r=t.skipSpaces(i),i===r)||r>=s?-1:r}function _ce(t,e){var r,n,i=t.level+2;for(r=e+2,n=t.tokens.length-2;r<n;r++)t.tokens[r].level===i&&t.tokens[r].type==="paragraph_open"&&(t.tokens[r+2].tight=!0,t.tokens[r].tight=!0,r+=2)}function wce(t,e,r,n){var i,s,a,o,u,l,c,p,h,d,g,y,v,E;if(n)return t.ddIndent<0?!1:cc(t,e)>=0;if(c=e+1,t.isEmpty(c)&&++c>r||t.tShift[c]<t.blkIndent||(i=cc(t,c),i<0)||t.level>=t.options.maxNesting)return!1;l=t.tokens.length,t.tokens.push({type:"dl_open",lines:u=[e,0],level:t.level++}),a=e,s=c;e:for(;;){for(E=!0,v=!1,t.tokens.push({type:"dt_open",lines:[a,a],level:t.level++}),t.tokens.push({type:"inline",content:t.getLines(a,a+1,t.blkIndent,!1).trim(),level:t.level+1,lines:[a,a],children:[]}),t.tokens.push({type:"dt_close",level:--t.level});;){if(t.tokens.push({type:"dd_open",lines:o=[c,0],level:t.level++}),y=t.tight,h=t.ddIndent,p=t.blkIndent,g=t.tShift[s],d=t.parentType,t.blkIndent=t.ddIndent=t.tShift[s]+2,t.tShift[s]=i-t.bMarks[s],t.tight=!0,t.parentType="deflist",t.parser.tokenize(t,s,r,!0),(!t.tight||v)&&(E=!1),v=t.line-s>1&&t.isEmpty(t.line-1),t.tShift[s]=g,t.tight=y,t.parentType=d,t.blkIndent=p,t.ddIndent=h,t.tokens.push({type:"dd_close",level:--t.level}),o[1]=c=t.line,c>=r||t.tShift[c]<t.blkIndent)break e;if(i=cc(t,c),i<0)break;s=c}if(c>=r||(a=c,t.isEmpty(a))||t.tShift[a]<t.blkIndent||(s=a+1,s>=r)||(t.isEmpty(s)&&s++,s>=r)||t.tShift[s]<t.blkIndent||(i=cc(t,s),i<0))break}return t.tokens.push({type:"dl_close",level:--t.level}),u[1]=c,t.line=c,E&&_ce(t,l),!0}function xce(t,e){var r,n,i,s,a,o=e+1,u;if(r=t.lineMax,o<r&&!t.isEmpty(o)){for(u=t.parser.ruler.getRules("paragraph");o<r&&!t.isEmpty(o);o++)if(!(t.tShift[o]-t.blkIndent>3)){for(i=!1,s=0,a=u.length;s<a;s++)if(u[s](t,o,r,!0)){i=!0;break}if(i)break}}return n=t.getLines(e,o,t.blkIndent,!1).trim(),t.line=o,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 fc=[["code",uce],["fences",lce,["paragraph","blockquote","list"]],["blockquote",cce,["paragraph","blockquote","list"]],["hr",fce,["paragraph","blockquote","list"]],["list",dce,["paragraph","blockquote"]],["footnote",hce,["paragraph"]],["heading",mce,["paragraph","blockquote"]],["lheading",gce],["htmlblock",Ece,["paragraph","blockquote"]],["table",Sce,["paragraph"]],["deflist",wce,["paragraph"]],["paragraph",xce]];function iA(){this.ruler=new xn;for(var t=0;t<fc.length;t++)this.ruler.push(fc[t][0],fc[t][1],{alt:(fc[t][2]||[]).slice()})}iA.prototype.tokenize=function(t,e,r){for(var n=this.ruler.getRules(""),i=n.length,s=e,a=!1,o,u;s<r&&(t.line=s=t.skipEmptyLines(s),!(s>=r||t.tShift[s]<t.blkIndent));){for(u=0;u<i&&(o=n[u](t,s,r,!1),!o);u++);if(t.tight=!a,t.isEmpty(t.line-1)&&(a=!0),s=t.line,s<r&&t.isEmpty(s)){if(a=!0,s++,s<r&&t.parentType==="list"&&t.isEmpty(s))break;t.line=s}}};var Ace=/[\n\t]/g,Oce=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,Cce=/\u00a0/g;iA.prototype.parse=function(t,e,r,n){var i,s=0,a=0;if(!t)return[];t=t.replace(Cce," "),t=t.replace(Oce,`
251
+ `),t.indexOf(" ")>=0&&(t=t.replace(Ace,function(o,u){var l;return t.charCodeAt(u)===10?(s=u+1,a=0,o):(l=" ".slice((u-s-a)%4),a=u-s+1,l)})),i=new ya(t,this,e,r,n),this.tokenize(i,i.line,i.lineMax)};function Rce(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 Ice(t,e){for(var r=t.pos;r<t.posMax&&!Rce(t.src.charCodeAt(r));)r++;return r===t.pos?!1:(e||(t.pending+=t.src.slice(t.pos,r)),t.pos=r,!0)}function Tce(t,e){var r,n,i=t.pos;if(t.src.charCodeAt(i)!==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 s=r-2;s>=0;s--)if(t.pending.charCodeAt(s)!==32){t.pending=t.pending.substring(0,s+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(i++;i<n&&t.src.charCodeAt(i)===32;)i++;return t.pos=i,!0}var sA=[];for(var VD=0;VD<256;VD++)sA.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(t){sA[t.charCodeAt(0)]=1});function Pce(t,e){var r,n=t.pos,i=t.posMax;if(t.src.charCodeAt(n)!==92)return!1;if(n++,n<i){if(r=t.src.charCodeAt(n),r<256&&sA[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<i&&t.src.charCodeAt(n)===32;)n++;return t.pos=n,!0}}return e||(t.pending+="\\"),t.pos++,!0}function kce(t,e){var r,n,i,s,a,o=t.pos,u=t.src.charCodeAt(o);if(u!==96)return!1;for(r=o,o++,n=t.posMax;o<n&&t.src.charCodeAt(o)===96;)o++;for(i=t.src.slice(r,o),s=a=o;(s=t.src.indexOf("`",a))!==-1;){for(a=s+1;a<n&&t.src.charCodeAt(a)===96;)a++;if(a-s===i.length)return e||t.push({type:"code",content:t.src.slice(o,s).replace(/[ \n]+/g," ").trim(),block:!1,level:t.level}),t.pos=a,!0}return e||(t.pending+=i),t.pos+=i.length,!0}function jce(t,e){var r,n,i,s=t.posMax,a=t.pos,o,u;if(t.src.charCodeAt(a)!==126||e||a+4>=s||t.src.charCodeAt(a+1)!==126||t.level>=t.options.maxNesting||(o=a>0?t.src.charCodeAt(a-1):-1,u=t.src.charCodeAt(a+2),o===126)||u===126||u===32||u===10)return!1;for(n=a+2;n<s&&t.src.charCodeAt(n)===126;)n++;if(n>a+3)return t.pos+=n-a,e||(t.pending+=t.src.slice(a,n)),!0;for(t.pos=a+2,i=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===126&&t.src.charCodeAt(t.pos+1)===126&&(o=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==126&&o!==126&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=a+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=s,!0):(t.pos=a,!1)}function Nce(t,e){var r,n,i,s=t.posMax,a=t.pos,o,u;if(t.src.charCodeAt(a)!==43||e||a+4>=s||t.src.charCodeAt(a+1)!==43||t.level>=t.options.maxNesting||(o=a>0?t.src.charCodeAt(a-1):-1,u=t.src.charCodeAt(a+2),o===43)||u===43||u===32||u===10)return!1;for(n=a+2;n<s&&t.src.charCodeAt(n)===43;)n++;if(n!==a+2)return t.pos+=n-a,e||(t.pending+=t.src.slice(a,n)),!0;for(t.pos=a+2,i=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===43&&t.src.charCodeAt(t.pos+1)===43&&(o=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==43&&o!==43&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=a+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=s,!0):(t.pos=a,!1)}function Mce(t,e){var r,n,i,s=t.posMax,a=t.pos,o,u;if(t.src.charCodeAt(a)!==61||e||a+4>=s||t.src.charCodeAt(a+1)!==61||t.level>=t.options.maxNesting||(o=a>0?t.src.charCodeAt(a-1):-1,u=t.src.charCodeAt(a+2),o===61)||u===61||u===32||u===10)return!1;for(n=a+2;n<s&&t.src.charCodeAt(n)===61;)n++;if(n!==a+2)return t.pos+=n-a,e||(t.pending+=t.src.slice(a,n)),!0;for(t.pos=a+2,i=1;t.pos+1<s;){if(t.src.charCodeAt(t.pos)===61&&t.src.charCodeAt(t.pos+1)===61&&(o=t.src.charCodeAt(t.pos-1),u=t.pos+2<s?t.src.charCodeAt(t.pos+2):-1,u!==61&&o!==61&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}t.parser.skipToken(t)}return r?(t.posMax=t.pos,t.pos=a+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=s,!0):(t.pos=a,!1)}function zD(t){return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122}function WD(t,e){var r=e,n,i,s,a=!0,o=!0,u=t.posMax,l=t.src.charCodeAt(e);for(n=e>0?t.src.charCodeAt(e-1):-1;r<u&&t.src.charCodeAt(r)===l;)r++;return r>=u&&(a=!1),s=r-e,s>=4?a=o=!1:(i=r<u?t.src.charCodeAt(r):-1,(i===32||i===10)&&(a=!1),(n===32||n===10)&&(o=!1),l===95&&(zD(n)&&(a=!1),zD(i)&&(o=!1))),{can_open:a,can_close:o,delims:s}}function Dce(t,e){var r,n,i,s,a,o,u,l=t.posMax,c=t.pos,p=t.src.charCodeAt(c);if(p!==95&&p!==42||e)return!1;if(u=WD(t,c),r=u.delims,!u.can_open)return t.pos+=r,e||(t.pending+=t.src.slice(c,t.pos)),!0;if(t.level>=t.options.maxNesting)return!1;for(t.pos=c+r,o=[r];t.pos<l;){if(t.src.charCodeAt(t.pos)===p){if(u=WD(t,t.pos),n=u.delims,u.can_close){for(s=o.pop(),a=n;s!==a;){if(a<s){o.push(s-a);break}if(a-=s,o.length===0)break;t.pos+=s,s=o.pop()}if(o.length===0){r=s,i=!0;break}t.pos+=n;continue}u.can_open&&o.push(n),t.pos+=n;continue}t.parser.skipToken(t)}return i?(t.posMax=t.pos,t.pos=c+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=c,!1)}var Fce=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function qce(t,e){var r,n,i=t.posMax,s=t.pos;if(t.src.charCodeAt(s)!==126||e||s+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=s+1;t.pos<i;){if(t.src.charCodeAt(t.pos)===126){r=!0;break}t.parser.skipToken(t)}return!r||s+1===t.pos||(n=t.src.slice(s+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=s,!1):(t.posMax=t.pos,t.pos=s+1,e||t.push({type:"sub",level:t.level,content:n.replace(Fce,"$1")}),t.pos=t.posMax+1,t.posMax=i,!0)}var Bce=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function $ce(t,e){var r,n,i=t.posMax,s=t.pos;if(t.src.charCodeAt(s)!==94||e||s+2>=i||t.level>=t.options.maxNesting)return!1;for(t.pos=s+1;t.pos<i;){if(t.src.charCodeAt(t.pos)===94){r=!0;break}t.parser.skipToken(t)}return!r||s+1===t.pos||(n=t.src.slice(s+1,t.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(t.pos=s,!1):(t.posMax=t.pos,t.pos=s+1,e||t.push({type:"sup",level:t.level,content:n.replace(Bce,"$1")}),t.pos=t.posMax+1,t.posMax=i,!0)}function Lce(t,e){var r,n,i,s,a,o,u,l,c=!1,p=t.pos,h=t.posMax,d=t.pos,g=t.src.charCodeAt(d);if(g===33&&(c=!0,g=t.src.charCodeAt(++d)),g!==91||t.level>=t.options.maxNesting||(r=d+1,n=du(t,d),n<0))return!1;if(o=n+1,o<h&&t.src.charCodeAt(o)===40){for(o++;o<h&&(l=t.src.charCodeAt(o),!(l!==32&&l!==10));o++);if(o>=h)return!1;for(d=o,B6(t,o)?(s=t.linkContent,o=t.pos):s="",d=o;o<h&&(l=t.src.charCodeAt(o),!(l!==32&&l!==10));o++);if(o<h&&d!==o&&$6(t,o))for(a=t.linkContent,o=t.pos;o<h&&(l=t.src.charCodeAt(o),!(l!==32&&l!==10));o++);else a="";if(o>=h||t.src.charCodeAt(o)!==41)return t.pos=p,!1;o++}else{if(t.linkLevel>0)return!1;for(;o<h&&(l=t.src.charCodeAt(o),!(l!==32&&l!==10));o++);if(o<h&&t.src.charCodeAt(o)===91&&(d=o+1,o=du(t,o),o>=0?i=t.src.slice(d,o++):o=d-1),i||(typeof i>"u"&&(o=n+1),i=t.src.slice(r,n)),u=t.env.references[L6(i)],!u)return t.pos=p,!1;s=u.href,a=u.title}return e||(t.pos=r,t.posMax=n,c?t.push({type:"image",src:s,title:a,alt:t.src.substr(r,n-r),level:t.level}):(t.push({type:"link_open",href:s,title:a,level:t.level++}),t.linkLevel++,t.parser.tokenize(t),t.linkLevel--,t.push({type:"link_close",level:--t.level}))),t.pos=o,t.posMax=h,!0}function Uce(t,e){var r,n,i,s,a=t.posMax,o=t.pos;return o+2>=a||t.src.charCodeAt(o)!==94||t.src.charCodeAt(o+1)!==91||t.level>=t.options.maxNesting||(r=o+2,n=du(t,o+1),n<0)?!1:(e||(t.env.footnotes||(t.env.footnotes={}),t.env.footnotes.list||(t.env.footnotes.list=[]),i=t.env.footnotes.list.length,t.pos=r,t.posMax=n,t.push({type:"footnote_ref",id:i,level:t.level}),t.linkLevel++,s=t.tokens.length,t.parser.tokenize(t),t.env.footnotes.list[i]={tokens:t.tokens.splice(s)},t.linkLevel--),t.pos=n+1,t.posMax=a,!0)}function Vce(t,e){var r,n,i,s,a=t.posMax,o=t.pos;if(o+3>a||!t.env.footnotes||!t.env.footnotes.refs||t.src.charCodeAt(o)!==91||t.src.charCodeAt(o+1)!==94||t.level>=t.options.maxNesting)return!1;for(n=o+2;n<a;n++){if(t.src.charCodeAt(n)===32||t.src.charCodeAt(n)===10)return!1;if(t.src.charCodeAt(n)===93)break}return n===o+2||n>=a||(n++,r=t.src.slice(o+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?(i=t.env.footnotes.list.length,t.env.footnotes.list[i]={label:r,count:0},t.env.footnotes.refs[":"+r]=i):i=t.env.footnotes.refs[":"+r],s=t.env.footnotes.list[i].count,t.env.footnotes.list[i].count++,t.push({type:"footnote_ref",id:i,subId:s,level:t.level})),t.pos=n,t.posMax=a,!0)}var zce=["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"],Wce=/^<([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])?)*)>/,Jce=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function Hce(t,e){var r,n,i,s,a,o=t.pos;return t.src.charCodeAt(o)!==60||(r=t.src.slice(o),r.indexOf(">")<0)?!1:(n=r.match(Jce),n?zce.indexOf(n[1].toLowerCase())<0||(s=n[0].slice(1,-1),a=D1(s),!t.parser.validateLink(s))?!1:(e||(t.push({type:"link_open",href:a,level:t.level}),t.push({type:"text",content:s,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=n[0].length,!0):(i=r.match(Wce),i?(s=i[0].slice(1,-1),a=D1("mailto:"+s),t.parser.validateLink(a)?(e||(t.push({type:"link_open",href:a,level:t.level}),t.push({type:"text",content:s,level:t.level+1}),t.push({type:"link_close",level:t.level})),t.pos+=i[0].length,!0):!1):!1))}function Pp(t,e){return t=t.source,e=e||"",function r(n,i){return n?(i=i.source||i,t=t.replace(n,i),r):new RegExp(t,e)}}var Kce=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,Gce=/[^"'=<>`\x00-\x20]+/,Yce=/'[^']*'/,Xce=/"[^"]*"/,Zce=Pp(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",Gce)("single_quoted",Yce)("double_quoted",Xce)(),Qce=Pp(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",Kce)("attr_value",Zce)(),efe=Pp(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",Qce)(),tfe=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,rfe=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,nfe=/<[?].*?[?]>/,ife=/<![A-Z]+\s+[^>]*>/,sfe=/<!\[CDATA\[[\s\S]*?\]\]>/,afe=Pp(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",efe)("close_tag",tfe)("comment",rfe)("processing",nfe)("declaration",ife)("cdata",sfe)();function ofe(t){var e=t|32;return e>=97&&e<=122}function ufe(t,e){var r,n,i,s=t.pos;return!t.options.html||(i=t.posMax,t.src.charCodeAt(s)!==60||s+2>=i)||(r=t.src.charCodeAt(s+1),r!==33&&r!==63&&r!==47&&!ofe(r))||(n=t.src.slice(s).match(afe),!n)?!1:(e||t.push({type:"htmltag",content:t.src.slice(s,s+n[0].length),level:t.level}),t.pos+=n[0].length,!0)}var lfe=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,cfe=/^&([a-z][a-z0-9]{1,31});/i;function ffe(t,e){var r,n,i,s=t.pos,a=t.posMax;if(t.src.charCodeAt(s)!==38)return!1;if(s+1<a){if(r=t.src.charCodeAt(s+1),r===35){if(i=t.src.slice(s).match(lfe),i)return e||(n=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),t.pending+=F6(n)?M1(n):M1(65533)),t.pos+=i[0].length,!0}else if(i=t.src.slice(s).match(cfe),i){var o=M6(i[1]);if(i[1]!==o)return e||(t.pending+=o),t.pos+=i[0].length,!0}}return e||(t.pending+="&"),t.pos++,!0}var IS=[["text",Ice],["newline",Tce],["escape",Pce],["backticks",kce],["del",jce],["ins",Nce],["mark",Mce],["emphasis",Dce],["sub",qce],["sup",$ce],["links",Lce],["footnote_inline",Uce],["footnote_ref",Vce],["autolink",Hce],["htmltag",ufe],["entity",ffe]];function kp(){this.ruler=new xn;for(var t=0;t<IS.length;t++)this.ruler.push(IS[t][0],IS[t][1]);this.validateLink=pfe}kp.prototype.skipToken=function(t){var e=this.ruler.getRules(""),r=e.length,n=t.pos,i,s;if((s=t.cacheGet(n))>0){t.pos=s;return}for(i=0;i<r;i++)if(e[i](t,!0)){t.cacheSet(n,t.pos);return}t.pos++,t.cacheSet(n,t.pos)};kp.prototype.tokenize=function(t){for(var e=this.ruler.getRules(""),r=e.length,n=t.posMax,i,s;t.pos<n;){for(s=0;s<r&&(i=e[s](t,!1),!i);s++);if(i){if(t.pos>=n)break;continue}t.pending+=t.src[t.pos++]}t.pending&&t.pushPending()};kp.prototype.parse=function(t,e,r,n){var i=new ga(t,this,e,r,n);this.tokenize(i)};function pfe(t){var e=["vbscript","javascript","file","data"],r=t.trim().toLowerCase();return r=ia(r),!(r.indexOf(":")!==-1&&e.indexOf(r.split(":")[0])!==-1)}var dfe={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"]}}},hfe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},mfe={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"]}}},gfe={default:dfe,full:hfe,commonmark:mfe};function z6(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 Fs(t,e){typeof t!="string"&&(e=t,t="default"),e&&e.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
252
+
253
+ import Remarkable from 'remarkable';
254
+ import linkify from 'remarkable/linkify';
255
+ new Remarkable().use(linkify)
256
+ `),this.inline=new kp,this.block=new iA,this.core=new U6,this.renderer=new nA,this.ruler=new xn,this.options={},this.configure(gfe[t]),this.set(e||{})}Fs.prototype.set=function(t){D6(this.options,t)};Fs.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)})};Fs.prototype.use=function(t,e){return t(this,e),this};Fs.prototype.parse=function(t,e){var r=new z6(this,t,e);return this.core.process(r),r.tokens};Fs.prototype.render=function(t,e){return e=e||{},this.renderer.render(this.parse(t,e),this.options,e)};Fs.prototype.parseInline=function(t,e){var r=new z6(this,t,e);return r.inlineMode=!0,this.core.process(r),r.tokens};Fs.prototype.renderInline=function(t,e){return e=e||{},this.renderer.render(this.parseInline(t,e),this.options,e)};var yfe="3.16.2";function vfe(t,e){for(var r in e)e.hasOwnProperty(r)&&t[r]===void 0&&(t[r]=e[r]);return t}function bfe(t,e,r){var n;return t.length>e&&(r==null?(r="&hellip;",n=3):n=r.length,t=t.substring(0,e-n)+r),t}function JD(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 Vs(t,e){for(var r=t.length-1;r>=0;r--)e(t[r])===!0&&t.splice(r,1)}function Efe(t,e){if(!e.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r=[],n=0,i;i=e.exec(t);)r.push(t.substring(n,i.index)),r.push(i[0]),n=i.index+i[0].length;return r.push(t.substring(n)),r}function aA(t){throw new Error("Unhandled case for value: '".concat(t,"'"))}var F1=(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,i=r?r.split(n):[],s=e.split(n),a;a=s.shift();)JD(i,a)===-1&&i.push(a);return this.getAttrs().class=i.join(" "),this},t.prototype.removeClass=function(e){for(var r=this.getClass(),n=this.whitespaceRegex,i=r?r.split(n):[],s=e.split(n),a;i.length&&(a=s.shift());){var o=JD(i,a);o!==-1&&i.splice(o,1)}return this.getAttrs().class=i.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 Sfe(t,e,r){var n,i;r==null?(r="&hellip;",i=3,n=8):(i=r.length,n=r.length);var s=function(b){var _={},w=b,S=w.match(/^([a-z]+):\/\//i);return S&&(_.scheme=S[1],w=w.substr(S[0].length)),S=w.match(/^(.*?)(?=(\?|#|\/|$))/i),S&&(_.host=S[1],w=w.substr(S[0].length)),S=w.match(/^\/(.*?)(?=(\?|#|$))/i),S&&(_.path=S[1],w=w.substr(S[0].length)),S=w.match(/^\?(.*?)(?=(#|$))/i),S&&(_.query=S[1],w=w.substr(S[0].length)),S=w.match(/^#(.*?)$/i),S&&(_.fragment=S[1]),_},a=function(b){var _="";return b.scheme&&b.host&&(_+=b.scheme+"://"),b.host&&(_+=b.host),b.path&&(_+="/"+b.path),b.query&&(_+="?"+b.query),b.fragment&&(_+="#"+b.fragment),_},o=function(b,_){var w=_/2,S=Math.ceil(w),A=-1*Math.floor(w),I="";return A<0&&(I=b.substr(A)),b.substr(0,S)+r+I};if(t.length<=e)return t;var u=e-i,l=s(t);if(l.query){var c=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);c&&(l.query=l.query.substr(0,c[1].length),t=a(l))}if(t.length<=e||(l.host&&(l.host=l.host.replace(/^www\./,""),t=a(l)),t.length<=e))return t;var p="";if(l.host&&(p+=l.host),p.length>=u)return l.host.length==e?(l.host.substr(0,e-i)+r).substr(0,u+n):o(p,u).substr(0,u+n);var h="";if(l.path&&(h+="/"+l.path),l.query&&(h+="?"+l.query),h)if((p+h).length>=u){if((p+h).length==e)return(p+h).substr(0,e);var d=u-p.length;return(p+o(h,d)).substr(0,u+n)}else p+=h;if(l.fragment){var g="#"+l.fragment;if((p+g).length>=u){if((p+g).length==e)return(p+g).substr(0,e);var y=u-p.length;return(p+o(g,y)).substr(0,u+n)}else p+=g}if(l.scheme&&l.host){var v=l.scheme+"://";if((p+v).length<u)return(v+p).substr(0,e)}if(p.length<=e)return p;var E="";return u>0&&(E=p.substr(-1*Math.floor(u/2))),(p.substr(0,Math.ceil(u/2))+r+E).substr(0,u+n)}function _fe(t,e,r){if(t.length<=e)return t;var n,i;r==null?(r="&hellip;",n=8,i=3):(n=r.length,i=r.length);var s=e-i,a="";return s>0&&(a=t.substr(-1*Math.floor(s/2))),(t.substr(0,Math.ceil(s/2))+r+a).substr(0,s+n)}function wfe(t,e,r){return bfe(t,e,r)}var HD=(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 F1({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],i=e.getCssClassSuffixes(),s=0,a=i.length;s<a;s++)n.push(r+"-"+i[s]);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,i=r.location;return i==="smart"?Sfe(e,n):i==="middle"?_fe(e,n):wfe(e,n)},t})(),Eo=(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})(),W6=(function(t){Ri(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})(Eo),J6=(function(t){Ri(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})(Eo),H6=(function(t){Ri(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})(Eo),K6=(function(t){Ri(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})(Eo),G6=(function(t){Ri(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(/&amp;/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,"&quot;").replace(/%26/gi,"&amp;").replace(/%27/gi,"&#39;").replace(/%3C/gi,"&lt;").replace(/%3E/gi,"&gt;");try{return decodeURIComponent(n)}catch{return n}},e})(Eo),So=(function(){function t(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder}return t})(),TS=/[A-Za-z]/,xfe=/[\d]/,Afe=/[\D]/,zs=/\s/,PS=/['"]/,Ofe=/[\x00-\x1F\x7F]/,Y6=/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,Cfe=/\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,Rfe=/\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,X6=Y6+Cfe+Rfe,nf=/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,Ife=X6+nf,ur=X6+nf,Vo=new RegExp("[".concat(ur,"]")),Tfe="(?:["+nf+"]{1,3}\\.){3}["+nf+"]{1,3}",Pfe="["+ur+"](?:["+ur+"\\-_]{0,61}["+ur+"])?",KD=function(t){return"(?=("+Pfe+"))\\"+t},kS=function(t){return"(?:"+KD(t)+"(?:\\."+KD(t+1)+"){0,126}|"+Tfe+")"},pc=Vo,Z6=/(?: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|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,kfe=new RegExp("[".concat(ur,"!#$%&'*+/=?^_`{|}~-]")),jfe=new RegExp("^".concat(Z6.source,"$")),GD=(function(t){Ri(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.localPartCharRegex=kfe,r.strictTldRegex=jfe,r}return e.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.localPartCharRegex,s=this.strictTldRegex,a=[],o=r.length,u=new dc,l={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},c=0,p=0,h=u;c<o;){var d=r.charAt(c);switch(p){case 0:g(d);break;case 1:y(r.charAt(c-1),d);break;case 2:v(d);break;case 3:E(d);break;case 4:b(d);break;case 5:_(d);break;case 6:w(d);break;case 7:S(d);break;default:aA(p)}c++}return T(),a;function g(k){k==="m"?A(1):i.test(k)&&A()}function y(k,D){k===":"?i.test(D)?(p=2,h=new dc(hr(hr({},h),{hasMailtoPrefix:!0}))):I():l[k]===D||(i.test(D)?p=2:D==="."?p=3:D==="@"?p=4:I())}function v(k){k==="."?p=3:k==="@"?p=4:i.test(k)||I()}function E(k){k==="."||k==="@"?I():i.test(k)?p=2:I()}function b(k){pc.test(k)?p=5:I()}function _(k){k==="."?p=7:k==="-"?p=6:pc.test(k)||T()}function w(k){k==="-"||k==="."?T():pc.test(k)?p=5:T()}function S(k){k==="."||k==="-"?T():pc.test(k)?(p=5,h=new dc(hr(hr({},h),{hasDomainDot:!0}))):T()}function A(k){k===void 0&&(k=2),p=k,h=new dc({idx:c})}function I(){p=0,h=u}function T(){if(h.hasDomainDot){var k=r.slice(h.idx,c);/[-.]$/.test(k)&&(k=k.slice(0,-1));var D=h.hasMailtoPrefix?k.slice(7):k;R(D)&&a.push(new W6({tagBuilder:n,matchedText:k,offset:h.idx,email:D}))}I();function R($){var M=$.split(".").pop()||"",K=M.toLowerCase(),ee=s.test(K);return ee}}},e})(So),dc=(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})(),Nfe=(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]*?["+Y6+"]"),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})(),Mfe=(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("[/?#](?:["+ur+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+ur+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",t.source,kS(2),")","|","(","(//)?",e.source,kS(6),")","|","(","(//)?",kS(10)+"\\.",Z6.source,"(?![-"+Ife+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")})(),Dfe=new RegExp("["+ur+"]"),YD=(function(t){Ri(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=Mfe,n.wordCharRegExp=Dfe,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return e.prototype.parseMatches=function(r){for(var n=this.matcherRegex,i=this.stripPrefix,s=this.stripTrailingSlash,a=this.decodePercentEncoding,o=this.tagBuilder,u=[],l,c=function(){var h=l[0],d=l[1],g=l[4],y=l[5],v=l[9],E=l.index,b=y||v,_=r.charAt(E-1);if(!Nfe.isValid(h,d)||E>0&&_==="@"||E>0&&b&&p.wordCharRegExp.test(_))return"continue";if(/\?$/.test(h)&&(h=h.substr(0,h.length-1)),p.matchHasUnbalancedClosingParen(h))h=h.substr(0,h.length-1);else{var w=p.matchHasInvalidCharAfterTld(h,d);w>-1&&(h=h.substr(0,w))}var S=["http://","https://"].find(function(k){return!!d&&d.indexOf(k)!==-1});if(S){var A=h.indexOf(S);h=h.substr(A),d=d.substr(A),E=E+A}var I=d?"scheme":g?"www":"tld",T=!!d;u.push(new G6({tagBuilder:o,matchedText:h,offset:E,urlMatchType:I,url:h,protocolUrlMatch:T,protocolRelativeMatch:!!b,stripPrefix:i,stripTrailingSlash:s,decodePercentEncoding:a}))},p=this;(l=n.exec(r))!==null;)c();return u},e.prototype.matchHasUnbalancedClosingParen=function(r){var n=r.charAt(r.length-1),i;if(n===")")i="(";else if(n==="]")i="[";else if(n==="}")i="{";else return!1;for(var s=0,a=0,o=r.length-1;a<o;a++){var u=r.charAt(a);u===i?s++:u===n&&(s=Math.max(s-1,0))}return s===0},e.prototype.matchHasInvalidCharAfterTld=function(r,n){if(!r)return-1;var i=0;n&&(i=r.indexOf(":"),r=r.slice(i));var s=new RegExp("^((.?//)?[-."+ur+"]*[-"+ur+"]\\.[-"+ur+"]+)"),a=s.exec(r);return a===null?-1:(i+=a[1].length,r=r.slice(a[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(r)?i:-1)},e})(So),XD=new RegExp("[_".concat(ur,"]")),ZD=(function(t){Ri(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,i=this.serviceName,s=[],a=r.length,o=0,u=-1,l=0;o<a;){var c=r.charAt(o);switch(l){case 0:p(c);break;case 1:h(c);break;case 2:d(c);break;case 3:g(c);break;default:aA(l)}o++}return y(),s;function p(v){v==="#"?(l=2,u=o):Vo.test(v)&&(l=1)}function h(v){Vo.test(v)||(l=0)}function d(v){XD.test(v)?l=3:Vo.test(v)?l=1:l=0}function g(v){XD.test(v)||(y(),u=-1,Vo.test(v)?l=1:l=0)}function y(){if(u>-1&&o-u<=140){var v=r.slice(u,o),E=new J6({tagBuilder:n,matchedText:v,offset:u,serviceName:i,hashtag:v.slice(1)});s.push(E)}}},e})(So),Ffe=["twitter","facebook","instagram","tiktok"],qfe=/(?:(?:(?:(\+)?\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]+#?)*/,Bfe=/(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})/,$fe=new RegExp("".concat(qfe.source,"|").concat(Bfe.source),"g"),QD=(function(t){Ri(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.matcherRegex=$fe,r}return e.prototype.parseMatches=function(r){for(var n=this.matcherRegex,i=this.tagBuilder,s=[],a;(a=n.exec(r))!==null;){var o=a[0],u=o.replace(/[^0-9,;#]/g,""),l=!!(a[1]||a[2]),c=a.index==0?"":r.substr(a.index-1,1),p=r.substr(a.index+o.length,1),h=!c.match(/\d/)&&!p.match(/\d/);this.testMatch(a[3])&&this.testMatch(o)&&h&&s.push(new K6({tagBuilder:i,matchedText:o,offset:a.index,number:u,plusSign:l}))}return s},e.prototype.testMatch=function(r){return Afe.test(r)},e})(So),Lfe=new RegExp("@[_".concat(ur,"]{1,50}(?![_").concat(ur,"])"),"g"),Ufe=new RegExp("@[_.".concat(ur,"]{1,30}(?![_").concat(ur,"])"),"g"),Vfe=new RegExp("@[-_.".concat(ur,"]{1,50}(?![-_").concat(ur,"])"),"g"),zfe=new RegExp("@[_.".concat(ur,"]{1,23}[_").concat(ur,"](?![_").concat(ur,"])"),"g"),Wfe=new RegExp("[^"+ur+"]"),e3=(function(t){Ri(e,t);function e(r){var n=t.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:Lfe,instagram:Ufe,soundcloud:Vfe,tiktok:zfe},n.nonWordCharRegex=Wfe,n.serviceName=r.serviceName,n}return e.prototype.parseMatches=function(r){var n=this.serviceName,i=this.matcherRegexes[this.serviceName],s=this.nonWordCharRegex,a=this.tagBuilder,o=[],u;if(!i)return o;for(;(u=i.exec(r))!==null;){var l=u.index,c=r.charAt(l-1);if(l===0||s.test(c)){var p=u[0].replace(/\.+$/g,""),h=p.slice(1);o.push(new H6({tagBuilder:a,matchedText:p,offset:l,serviceName:n,mention:h}))}}return o},e})(So);function Jfe(t,e){for(var r=e.onOpenTag,n=e.onCloseTag,i=e.onText,s=e.onComment,a=e.onDoctype,o=new vi,u=0,l=t.length,c=0,p=0,h=o;u<l;){var d=t.charAt(u);switch(c){case 0:g(d);break;case 1:y(d);break;case 2:E(d);break;case 3:v(d);break;case 4:b(d);break;case 5:_(d);break;case 6:w(d);break;case 7:S(d);break;case 8:A(d);break;case 9:I(d);break;case 10:T(d);break;case 11:k(d);break;case 12:D(d);break;case 13:R();break;case 14:$(d);break;case 15:M(d);break;case 16:K(d);break;case 17:ee(d);break;case 18:G(d);break;case 19:Z(d);break;case 20:X(d);break;default:aA(c)}u++}p<u&&ue();function g(re){re==="<"&&ce()}function y(re){re==="!"?c=13:re==="/"?(c=2,h=new vi(hr(hr({},h),{isClosing:!0}))):re==="<"?ce():TS.test(re)?(c=3,h=new vi(hr(hr({},h),{isOpening:!0}))):(c=0,h=o)}function v(re){zs.test(re)?(h=new vi(hr(hr({},h),{name:ye()})),c=4):re==="<"?ce():re==="/"?(h=new vi(hr(hr({},h),{name:ye()})),c=12):re===">"?(h=new vi(hr(hr({},h),{name:ye()})),ie()):!TS.test(re)&&!xfe.test(re)&&re!==":"&&te()}function E(re){re===">"?te():TS.test(re)?c=3:te()}function b(re){zs.test(re)||(re==="/"?c=12:re===">"?ie():re==="<"?ce():re==="="||PS.test(re)||Ofe.test(re)?te():c=5)}function _(re){zs.test(re)?c=6:re==="/"?c=12:re==="="?c=7:re===">"?ie():re==="<"?ce():PS.test(re)&&te()}function w(re){zs.test(re)||(re==="/"?c=12:re==="="?c=7:re===">"?ie():re==="<"?ce():PS.test(re)?te():c=5)}function S(re){zs.test(re)||(re==='"'?c=8:re==="'"?c=9:/[>=`]/.test(re)?te():re==="<"?ce():c=10)}function A(re){re==='"'&&(c=11)}function I(re){re==="'"&&(c=11)}function T(re){zs.test(re)?c=4:re===">"?ie():re==="<"&&ce()}function k(re){zs.test(re)?c=4:re==="/"?c=12:re===">"?ie():re==="<"?ce():(c=4,he())}function D(re){re===">"?(h=new vi(hr(hr({},h),{isClosing:!0})),ie()):c=4}function R(re){t.substr(u,2)==="--"?(u+=2,h=new vi(hr(hr({},h),{type:"comment"})),c=14):t.substr(u,7).toUpperCase()==="DOCTYPE"?(u+=7,h=new vi(hr(hr({},h),{type:"doctype"})),c=20):te()}function $(re){re==="-"?c=15:re===">"?te():c=16}function M(re){re==="-"?c=18:re===">"?te():c=16}function K(re){re==="-"&&(c=17)}function ee(re){re==="-"?c=18:c=16}function G(re){re===">"?ie():re==="!"?c=19:re==="-"||(c=16)}function Z(re){re==="-"?c=17:re===">"?ie():c=16}function X(re){re===">"?ie():re==="<"&&ce()}function te(){c=0,h=o}function ce(){c=1,h=new vi({idx:u})}function ie(){var re=t.slice(p,h.idx);re&&i(re,p),h.type==="comment"?s(h.idx):h.type==="doctype"?a(h.idx):(h.isOpening&&r(h.name,h.idx),h.isClosing&&n(h.name,h.idx)),te(),p=u+1}function ue(){var re=t.slice(p,u);i(re,p),p=u+1}function ye(){var re=h.idx+(h.isClosing?2:1);return t.slice(re,u).toLowerCase()}function he(){u--}}var vi=(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})(),Hfe=(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&&Ffe.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"}:vfe(e||{},{length:Number.POSITIVE_INFINITY,location:"end"})},t.prototype.parse=function(e){var r=this,n=["a","style","script"],i=0,s=[];return Jfe(e,{onOpenTag:function(a){n.indexOf(a)>=0&&i++},onText:function(a,o){if(i===0){var u=/(&nbsp;|&#160;|&lt;|&#60;|&gt;|&#62;|&quot;|&#34;|&#39;)/gi,l=Efe(a,u),c=o;l.forEach(function(p,h){if(h%2===0){var d=r.parseText(p,c);s.push.apply(s,d)}c+=p.length})}},onCloseTag:function(a){n.indexOf(a)>=0&&(i=Math.max(i-1,0))},onComment:function(a){},onDoctype:function(a){}}),s=this.compactMatches(s),s=this.removeUnwantedMatches(s),s},t.prototype.compactMatches=function(e){e.sort(function(u,l){return u.getOffset()-l.getOffset()});for(var r=0;r<e.length-1;){var n=e[r],i=n.getOffset(),s=n.getMatchedText().length,a=i+s;if(r+1<e.length){if(e[r+1].getOffset()===i){var o=e[r+1].getMatchedText().length>s?r:r+1;e.splice(o,1);continue}if(e[r+1].getOffset()<a){e.splice(r+1,1);continue}}r++}return e},t.prototype.removeUnwantedMatches=function(e){return this.hashtag||Vs(e,function(r){return r.getType()==="hashtag"}),this.email||Vs(e,function(r){return r.getType()==="email"}),this.phone||Vs(e,function(r){return r.getType()==="phone"}),this.mention||Vs(e,function(r){return r.getType()==="mention"}),this.urls.schemeMatches||Vs(e,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="scheme"}),this.urls.wwwMatches||Vs(e,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="www"}),this.urls.tldMatches||Vs(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(),i=[],s=0,a=n.length;s<a;s++){for(var o=n[s].parseMatches(e),u=0,l=o.length;u<l;u++)o[u].setOffset(r+o[u].getOffset());i.push.apply(i,o)}return i},t.prototype.link=function(e){if(!e)return"";this.sanitizeHtml&&(e=e.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var r=this.parse(e),n=[],i=0,s=0,a=r.length;s<a;s++){var o=r[s];n.push(e.substring(i,o.getOffset())),n.push(this.createMatchReturnVal(o)),i=o.getOffset()+o.getMatchedText().length}return n.push(e.substring(i)),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 F1)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 ZD({tagBuilder:e,serviceName:this.hashtag}),new GD({tagBuilder:e}),new QD({tagBuilder:e}),new e3({tagBuilder:e,serviceName:this.mention}),new YD({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 HD({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),e},t.version=yfe,t.AnchorTagBuilder=HD,t.HtmlTag=F1,t.matcher={Email:GD,Hashtag:ZD,Matcher:So,Mention:e3,Phone:QD,Url:YD},t.match={Email:W6,Hashtag:J6,Match:Eo,Mention:H6,Phone:K6,Url:G6},t})(),Kfe=/www|@|\:\/\//;function Gfe(t){return/^<a[>\s]/i.test(t)}function Yfe(t){return/^<\/a\s*>/i.test(t)}function Xfe(){var t=[],e=new Hfe({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 Zfe(t){var e,r,n,i,s,a,o,u,l,c,p,h=t.tokens,d=null,g,y;for(r=0,n=h.length;r<n;r++)if(h[r].type==="inline")for(i=h[r].children,p=0,e=i.length-1;e>=0;e--){if(s=i[e],s.type==="link_close"){for(e--;i[e].level!==s.level&&i[e].type!=="link_open";)e--;continue}if(s.type==="htmltag"&&(Gfe(s.content)&&p>0&&p--,Yfe(s.content)&&p++),!(p>0)&&s.type==="text"&&Kfe.test(s.content)){if(d||(d=Xfe(),g=d.links,y=d.autolinker),a=s.content,g.length=0,y.link(a),!g.length)continue;for(o=[],c=s.level,u=0;u<g.length;u++)t.inline.validateLink(g[u].url)&&(l=a.indexOf(g[u].text),l&&o.push({type:"text",content:a.slice(0,l),level:c}),o.push({type:"link_open",href:g[u].url,title:"",level:c++}),o.push({type:"text",content:g[u].text,level:c}),o.push({type:"link_close",level:--c}),a=a.slice(l+g[u].text.length));a.length&&o.push({type:"text",content:a,level:c}),h[r].children=i=[].concat(i.slice(0,e),o,i.slice(e+1))}}}function Qfe(t){t.core.ruler.push("linkify",Zfe)}/*! @license DOMPurify 3.2.6 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.6/LICENSE */const{entries:Q6,setPrototypeOf:t3,isFrozen:epe,getPrototypeOf:tpe,getOwnPropertyDescriptor:rpe}=Object;let{freeze:Zr,seal:qn,create:e8}=Object,{apply:q1,construct:B1}=typeof Reflect<"u"&&Reflect;Zr||(Zr=function(e){return e});qn||(qn=function(e){return e});q1||(q1=function(e,r,n){return e.apply(r,n)});B1||(B1=function(e,r){return new e(...r)});const hc=Qr(Array.prototype.forEach),npe=Qr(Array.prototype.lastIndexOf),r3=Qr(Array.prototype.pop),ko=Qr(Array.prototype.push),ipe=Qr(Array.prototype.splice),kc=Qr(String.prototype.toLowerCase),jS=Qr(String.prototype.toString),n3=Qr(String.prototype.match),jo=Qr(String.prototype.replace),spe=Qr(String.prototype.indexOf),ape=Qr(String.prototype.trim),Hn=Qr(Object.prototype.hasOwnProperty),Yr=Qr(RegExp.prototype.test),No=ope(TypeError);function Qr(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return q1(t,e,n)}}function ope(t){return function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return B1(t,r)}}function Ct(t,e){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:kc;t3&&t3(t,null);let n=e.length;for(;n--;){let i=e[n];if(typeof i=="string"){const s=r(i);s!==i&&(epe(e)||(e[n]=s),i=s)}t[i]=!0}return t}function upe(t){for(let e=0;e<t.length;e++)Hn(t,e)||(t[e]=null);return t}function Ui(t){const e=e8(null);for(const[r,n]of Q6(t))Hn(t,r)&&(Array.isArray(n)?e[r]=upe(n):n&&typeof n=="object"&&n.constructor===Object?e[r]=Ui(n):e[r]=n);return e}function Mo(t,e){for(;t!==null;){const n=rpe(t,e);if(n){if(n.get)return Qr(n.get);if(typeof n.value=="function")return Qr(n.value)}t=tpe(t)}function r(){return null}return r}const i3=Zr(["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","section","select","shadow","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"]),NS=Zr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),MS=Zr(["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"]),lpe=Zr(["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"]),DS=Zr(["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"]),cpe=Zr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),s3=Zr(["#text"]),a3=Zr(["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","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),FS=Zr(["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","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"]),o3=Zr(["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"]),mc=Zr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),fpe=qn(/\{\{[\w\W]*|[\w\W]*\}\}/gm),ppe=qn(/<%[\w\W]*|[\w\W]*%>/gm),dpe=qn(/\$\{[\w\W]*/gm),hpe=qn(/^data-[\-\w.\u00B7-\uFFFF]+$/),mpe=qn(/^aria-[\-\w]+$/),t8=qn(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),gpe=qn(/^(?:\w+script|data):/i),ype=qn(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),r8=qn(/^html$/i),vpe=qn(/^[a-z][.\w]*(-[.\w]+)+$/i);var u3=Object.freeze({__proto__:null,ARIA_ATTR:mpe,ATTR_WHITESPACE:ype,CUSTOM_ELEMENT:vpe,DATA_ATTR:hpe,DOCTYPE_NAME:r8,ERB_EXPR:ppe,IS_ALLOWED_URI:t8,IS_SCRIPT_OR_DATA:gpe,MUSTACHE_EXPR:fpe,TMPLIT_EXPR:dpe});const Do={element:1,text:3,progressingInstruction:7,comment:8,document:9},bpe=function(){return typeof window>"u"?null:window},Epe=function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let n=null;const i="data-tt-policy-suffix";r&&r.hasAttribute(i)&&(n=r.getAttribute(i));const s="dompurify"+(n?"#"+n:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},l3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function n8(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:bpe();const e=Qe=>n8(Qe);if(e.version="3.2.6",e.removed=[],!t||!t.document||t.document.nodeType!==Do.document||!t.Element)return e.isSupported=!1,e;let{document:r}=t;const n=r,i=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:o,Element:u,NodeFilter:l,NamedNodeMap:c=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:p,DOMParser:h,trustedTypes:d}=t,g=u.prototype,y=Mo(g,"cloneNode"),v=Mo(g,"remove"),E=Mo(g,"nextSibling"),b=Mo(g,"childNodes"),_=Mo(g,"parentNode");if(typeof a=="function"){const Qe=r.createElement("template");Qe.content&&Qe.content.ownerDocument&&(r=Qe.content.ownerDocument)}let w,S="";const{implementation:A,createNodeIterator:I,createDocumentFragment:T,getElementsByTagName:k}=r,{importNode:D}=n;let R=l3();e.isSupported=typeof Q6=="function"&&typeof _=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:$,ERB_EXPR:M,TMPLIT_EXPR:K,DATA_ATTR:ee,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:Z,ATTR_WHITESPACE:X,CUSTOM_ELEMENT:te}=u3;let{IS_ALLOWED_URI:ce}=u3,ie=null;const ue=Ct({},[...i3,...NS,...MS,...DS,...s3]);let ye=null;const he=Ct({},[...a3,...FS,...o3,...mc]);let re=Object.seal(e8(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}})),W=null,V=null,me=!0,ve=!0,Me=!1,Be=!0,Te=!1,Pe=!0,Le=!1,ge=!1,Se=!1,we=!1,L=!1,C=!1,j=!0,U=!1;const Y="user-content-";let ne=!0,fe=!1,Ne={},Ge=null;const q=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 O=null;const P=Ct({},["audio","video","img","source","image","track"]);let H=null;const se=Ct({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),de="http://www.w3.org/1998/Math/MathML",xe="http://www.w3.org/2000/svg",Ze="http://www.w3.org/1999/xhtml";let st=Ze,Pt=!1,ft=null;const ae=Ct({},[de,xe,Ze],jS);let Ce=Ct({},["mi","mo","mn","ms","mtext"]),je=Ct({},["annotation-xml"]);const tt=Ct({},["title","style","font","a","script"]);let pt=null;const St=["application/xhtml+xml","text/html"],Lt="text/html";let De=null,Je=null;const lt=r.createElement("form"),rt=function(oe){return oe instanceof RegExp||oe instanceof Function},Ut=function(){let oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Je&&Je===oe)){if((!oe||typeof oe!="object")&&(oe={}),oe=Ui(oe),pt=St.indexOf(oe.PARSER_MEDIA_TYPE)===-1?Lt:oe.PARSER_MEDIA_TYPE,De=pt==="application/xhtml+xml"?jS:kc,ie=Hn(oe,"ALLOWED_TAGS")?Ct({},oe.ALLOWED_TAGS,De):ue,ye=Hn(oe,"ALLOWED_ATTR")?Ct({},oe.ALLOWED_ATTR,De):he,ft=Hn(oe,"ALLOWED_NAMESPACES")?Ct({},oe.ALLOWED_NAMESPACES,jS):ae,H=Hn(oe,"ADD_URI_SAFE_ATTR")?Ct(Ui(se),oe.ADD_URI_SAFE_ATTR,De):se,O=Hn(oe,"ADD_DATA_URI_TAGS")?Ct(Ui(P),oe.ADD_DATA_URI_TAGS,De):P,Ge=Hn(oe,"FORBID_CONTENTS")?Ct({},oe.FORBID_CONTENTS,De):q,W=Hn(oe,"FORBID_TAGS")?Ct({},oe.FORBID_TAGS,De):Ui({}),V=Hn(oe,"FORBID_ATTR")?Ct({},oe.FORBID_ATTR,De):Ui({}),Ne=Hn(oe,"USE_PROFILES")?oe.USE_PROFILES:!1,me=oe.ALLOW_ARIA_ATTR!==!1,ve=oe.ALLOW_DATA_ATTR!==!1,Me=oe.ALLOW_UNKNOWN_PROTOCOLS||!1,Be=oe.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=oe.SAFE_FOR_TEMPLATES||!1,Pe=oe.SAFE_FOR_XML!==!1,Le=oe.WHOLE_DOCUMENT||!1,we=oe.RETURN_DOM||!1,L=oe.RETURN_DOM_FRAGMENT||!1,C=oe.RETURN_TRUSTED_TYPE||!1,Se=oe.FORCE_BODY||!1,j=oe.SANITIZE_DOM!==!1,U=oe.SANITIZE_NAMED_PROPS||!1,ne=oe.KEEP_CONTENT!==!1,fe=oe.IN_PLACE||!1,ce=oe.ALLOWED_URI_REGEXP||t8,st=oe.NAMESPACE||Ze,Ce=oe.MATHML_TEXT_INTEGRATION_POINTS||Ce,je=oe.HTML_INTEGRATION_POINTS||je,re=oe.CUSTOM_ELEMENT_HANDLING||{},oe.CUSTOM_ELEMENT_HANDLING&&rt(oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(re.tagNameCheck=oe.CUSTOM_ELEMENT_HANDLING.tagNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&rt(oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(re.attributeNameCheck=oe.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),oe.CUSTOM_ELEMENT_HANDLING&&typeof oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(re.allowCustomizedBuiltInElements=oe.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Te&&(ve=!1),L&&(we=!0),Ne&&(ie=Ct({},s3),ye=[],Ne.html===!0&&(Ct(ie,i3),Ct(ye,a3)),Ne.svg===!0&&(Ct(ie,NS),Ct(ye,FS),Ct(ye,mc)),Ne.svgFilters===!0&&(Ct(ie,MS),Ct(ye,FS),Ct(ye,mc)),Ne.mathMl===!0&&(Ct(ie,DS),Ct(ye,o3),Ct(ye,mc))),oe.ADD_TAGS&&(ie===ue&&(ie=Ui(ie)),Ct(ie,oe.ADD_TAGS,De)),oe.ADD_ATTR&&(ye===he&&(ye=Ui(ye)),Ct(ye,oe.ADD_ATTR,De)),oe.ADD_URI_SAFE_ATTR&&Ct(H,oe.ADD_URI_SAFE_ATTR,De),oe.FORBID_CONTENTS&&(Ge===q&&(Ge=Ui(Ge)),Ct(Ge,oe.FORBID_CONTENTS,De)),ne&&(ie["#text"]=!0),Le&&Ct(ie,["html","head","body"]),ie.table&&(Ct(ie,["tbody"]),delete W.tbody),oe.TRUSTED_TYPES_POLICY){if(typeof oe.TRUSTED_TYPES_POLICY.createHTML!="function")throw No('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof oe.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw No('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=oe.TRUSTED_TYPES_POLICY,S=w.createHTML("")}else w===void 0&&(w=Epe(d,i)),w!==null&&typeof S=="string"&&(S=w.createHTML(""));Zr&&Zr(oe),Je=oe}},zr=Ct({},[...NS,...MS,...lpe]),ss=Ct({},[...DS,...cpe]),as=function(oe){let Oe=_(oe);(!Oe||!Oe.tagName)&&(Oe={namespaceURI:st,tagName:"template"});const He=kc(oe.tagName),gt=kc(Oe.tagName);return ft[oe.namespaceURI]?oe.namespaceURI===xe?Oe.namespaceURI===Ze?He==="svg":Oe.namespaceURI===de?He==="svg"&&(gt==="annotation-xml"||Ce[gt]):!!zr[He]:oe.namespaceURI===de?Oe.namespaceURI===Ze?He==="math":Oe.namespaceURI===xe?He==="math"&&je[gt]:!!ss[He]:oe.namespaceURI===Ze?Oe.namespaceURI===xe&&!je[gt]||Oe.namespaceURI===de&&!Ce[gt]?!1:!ss[He]&&(tt[He]||!zr[He]):!!(pt==="application/xhtml+xml"&&ft[oe.namespaceURI]):!1},Wr=function(oe){ko(e.removed,{element:oe});try{_(oe).removeChild(oe)}catch{v(oe)}},pi=function(oe,Oe){try{ko(e.removed,{attribute:Oe.getAttributeNode(oe),from:Oe})}catch{ko(e.removed,{attribute:null,from:Oe})}if(Oe.removeAttribute(oe),oe==="is")if(we||L)try{Wr(Oe)}catch{}else try{Oe.setAttribute(oe,"")}catch{}},os=function(oe){let Oe=null,He=null;if(Se)oe="<remove></remove>"+oe;else{const $t=n3(oe,/^[\r\n\t ]+/);He=$t&&$t[0]}pt==="application/xhtml+xml"&&st===Ze&&(oe='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+oe+"</body></html>");const gt=w?w.createHTML(oe):oe;if(st===Ze)try{Oe=new h().parseFromString(gt,pt)}catch{}if(!Oe||!Oe.documentElement){Oe=A.createDocument(st,"template",null);try{Oe.documentElement.innerHTML=Pt?S:gt}catch{}}const Xt=Oe.body||Oe.documentElement;return oe&&He&&Xt.insertBefore(r.createTextNode(He),Xt.childNodes[0]||null),st===Ze?k.call(Oe,Le?"html":"body")[0]:Le?Oe.documentElement:Xt},us=function(oe){return I.call(oe.ownerDocument||oe,oe,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},Fi=function(oe){return oe instanceof p&&(typeof oe.nodeName!="string"||typeof oe.textContent!="string"||typeof oe.removeChild!="function"||!(oe.attributes instanceof c)||typeof oe.removeAttribute!="function"||typeof oe.setAttribute!="function"||typeof oe.namespaceURI!="string"||typeof oe.insertBefore!="function"||typeof oe.hasChildNodes!="function")},Jr=function(oe){return typeof o=="function"&&oe instanceof o};function hn(Qe,oe,Oe){hc(Qe,He=>{He.call(e,oe,Oe,Je)})}const ls=function(oe){let Oe=null;if(hn(R.beforeSanitizeElements,oe,null),Fi(oe))return Wr(oe),!0;const He=De(oe.nodeName);if(hn(R.uponSanitizeElement,oe,{tagName:He,allowedTags:ie}),Pe&&oe.hasChildNodes()&&!Jr(oe.firstElementChild)&&Yr(/<[/\w!]/g,oe.innerHTML)&&Yr(/<[/\w!]/g,oe.textContent)||oe.nodeType===Do.progressingInstruction||Pe&&oe.nodeType===Do.comment&&Yr(/<[/\w]/g,oe.data))return Wr(oe),!0;if(!ie[He]||W[He]){if(!W[He]&&di(He)&&(re.tagNameCheck instanceof RegExp&&Yr(re.tagNameCheck,He)||re.tagNameCheck instanceof Function&&re.tagNameCheck(He)))return!1;if(ne&&!Ge[He]){const gt=_(oe)||oe.parentNode,Xt=b(oe)||oe.childNodes;if(Xt&&gt){const $t=Xt.length;for(let Kt=$t-1;Kt>=0;--Kt){const Hr=y(Xt[Kt],!0);Hr.__removalCount=(oe.__removalCount||0)+1,gt.insertBefore(Hr,E(oe))}}}return Wr(oe),!0}return oe instanceof u&&!as(oe)||(He==="noscript"||He==="noembed"||He==="noframes")&&Yr(/<\/no(script|embed|frames)/i,oe.innerHTML)?(Wr(oe),!0):(Te&&oe.nodeType===Do.text&&(Oe=oe.textContent,hc([$,M,K],gt=>{Oe=jo(Oe,gt," ")}),oe.textContent!==Oe&&(ko(e.removed,{element:oe.cloneNode()}),oe.textContent=Oe)),hn(R.afterSanitizeElements,oe,null),!1)},cs=function(oe,Oe,He){if(j&&(Oe==="id"||Oe==="name")&&(He in r||He in lt))return!1;if(!(ve&&!V[Oe]&&Yr(ee,Oe))){if(!(me&&Yr(G,Oe))){if(!ye[Oe]||V[Oe]){if(!(di(oe)&&(re.tagNameCheck instanceof RegExp&&Yr(re.tagNameCheck,oe)||re.tagNameCheck instanceof Function&&re.tagNameCheck(oe))&&(re.attributeNameCheck instanceof RegExp&&Yr(re.attributeNameCheck,Oe)||re.attributeNameCheck instanceof Function&&re.attributeNameCheck(Oe))||Oe==="is"&&re.allowCustomizedBuiltInElements&&(re.tagNameCheck instanceof RegExp&&Yr(re.tagNameCheck,He)||re.tagNameCheck instanceof Function&&re.tagNameCheck(He))))return!1}else if(!H[Oe]){if(!Yr(ce,jo(He,X,""))){if(!((Oe==="src"||Oe==="xlink:href"||Oe==="href")&&oe!=="script"&&spe(He,"data:")===0&&O[oe])){if(!(Me&&!Yr(Z,jo(He,X,"")))){if(He)return!1}}}}}}return!0},di=function(oe){return oe!=="annotation-xml"&&n3(oe,te)},Er=function(oe){hn(R.beforeSanitizeAttributes,oe,null);const{attributes:Oe}=oe;if(!Oe||Fi(oe))return;const He={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ye,forceKeepAttr:void 0};let gt=Oe.length;for(;gt--;){const Xt=Oe[gt],{name:$t,namespaceURI:Kt,value:Hr}=Xt,sn=De($t),fs=Hr;let ir=$t==="value"?fs:ape(fs);if(He.attrName=sn,He.attrValue=ir,He.keepAttr=!0,He.forceKeepAttr=void 0,hn(R.uponSanitizeAttribute,oe,He),ir=He.attrValue,U&&(sn==="id"||sn==="name")&&(pi($t,oe),ir=Y+ir),Pe&&Yr(/((--!?|])>)|<\/(style|title)/i,ir)){pi($t,oe);continue}if(He.forceKeepAttr)continue;if(!He.keepAttr){pi($t,oe);continue}if(!Be&&Yr(/\/>/i,ir)){pi($t,oe);continue}Te&&hc([$,M,K],ze=>{ir=jo(ir,ze," ")});const ke=De(oe.nodeName);if(!cs(ke,sn,ir)){pi($t,oe);continue}if(w&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Kt)switch(d.getAttributeType(ke,sn)){case"TrustedHTML":{ir=w.createHTML(ir);break}case"TrustedScriptURL":{ir=w.createScriptURL(ir);break}}if(ir!==fs)try{Kt?oe.setAttributeNS(Kt,$t,ir):oe.setAttribute($t,ir),Fi(oe)?Wr(oe):r3(e.removed)}catch{pi($t,oe)}}hn(R.afterSanitizeAttributes,oe,null)},xt=function Qe(oe){let Oe=null;const He=us(oe);for(hn(R.beforeSanitizeShadowDOM,oe,null);Oe=He.nextNode();)hn(R.uponSanitizeShadowNode,Oe,null),ls(Oe),Er(Oe),Oe.content instanceof s&&Qe(Oe.content);hn(R.afterSanitizeShadowDOM,oe,null)};return e.sanitize=function(Qe){let oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Oe=null,He=null,gt=null,Xt=null;if(Pt=!Qe,Pt&&(Qe="<!-->"),typeof Qe!="string"&&!Jr(Qe))if(typeof Qe.toString=="function"){if(Qe=Qe.toString(),typeof Qe!="string")throw No("dirty is not a string, aborting")}else throw No("toString is not a function");if(!e.isSupported)return Qe;if(ge||Ut(oe),e.removed=[],typeof Qe=="string"&&(fe=!1),fe){if(Qe.nodeName){const Hr=De(Qe.nodeName);if(!ie[Hr]||W[Hr])throw No("root node is forbidden and cannot be sanitized in-place")}}else if(Qe instanceof o)Oe=os("<!---->"),He=Oe.ownerDocument.importNode(Qe,!0),He.nodeType===Do.element&&He.nodeName==="BODY"||He.nodeName==="HTML"?Oe=He:Oe.appendChild(He);else{if(!we&&!Te&&!Le&&Qe.indexOf("<")===-1)return w&&C?w.createHTML(Qe):Qe;if(Oe=os(Qe),!Oe)return we?null:C?S:""}Oe&&Se&&Wr(Oe.firstChild);const $t=us(fe?Qe:Oe);for(;gt=$t.nextNode();)ls(gt),Er(gt),gt.content instanceof s&&xt(gt.content);if(fe)return Qe;if(we){if(L)for(Xt=T.call(Oe.ownerDocument);Oe.firstChild;)Xt.appendChild(Oe.firstChild);else Xt=Oe;return(ye.shadowroot||ye.shadowrootmode)&&(Xt=D.call(n,Xt,!0)),Xt}let Kt=Le?Oe.outerHTML:Oe.innerHTML;return Le&&ie["!doctype"]&&Oe.ownerDocument&&Oe.ownerDocument.doctype&&Oe.ownerDocument.doctype.name&&Yr(r8,Oe.ownerDocument.doctype.name)&&(Kt="<!DOCTYPE "+Oe.ownerDocument.doctype.name+`>
257
+ `+Kt),Te&&hc([$,M,K],Hr=>{Kt=jo(Kt,Hr," ")}),w&&C?w.createHTML(Kt):Kt},e.setConfig=function(){let Qe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Ut(Qe),ge=!0},e.clearConfig=function(){Je=null,ge=!1},e.isValidAttribute=function(Qe,oe,Oe){Je||Ut({});const He=De(Qe),gt=De(oe);return cs(He,gt,Oe)},e.addHook=function(Qe,oe){typeof oe=="function"&&ko(R[Qe],oe)},e.removeHook=function(Qe,oe){if(oe!==void 0){const Oe=npe(R[Qe],oe);return Oe===-1?void 0:ipe(R[Qe],Oe,1)[0]}return r3(R[Qe])},e.removeHooks=function(Qe){R[Qe]=[]},e.removeAllHooks=function(){R=l3()},e}var Spe=n8(),qS,c3;function _pe(){if(c3)return qS;c3=1;var t=Qi(),e=/[\\^$.*+?()[\]{}|]/g,r=RegExp(e.source);function n(i){return i=t(i),i&&r.test(i)?i.replace(e,"\\$&"):i}return qS=n,qS}var wpe=_pe();const xpe=ot(wpe);var BS,f3;function Ape(){if(f3)return BS;f3=1;var t=Object.prototype,e=t.hasOwnProperty;function r(n,i){return n!=null&&e.call(n,i)}return BS=r,BS}var $S,p3;function Ope(){if(p3)return $S;p3=1;var t=Ape(),e=YF();function r(n,i){return n!=null&&e(n,i,t)}return $S=r,$S}var Cpe=Ope();const Rpe=ot(Cpe);var Ipe=AB();const Tpe=ot(Ipe);/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */var Ppe={7:function(t){var e,r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(E,b,_){return Function.prototype.apply.call(E,b,_)};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 i=Number.isNaN||function(E){return E!=E};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(E,b){return new Promise((function(_,w){function S(I){E.removeListener(b,A),w(I)}function A(){typeof E.removeListener=="function"&&E.removeListener("error",S),_([].slice.call(arguments))}y(E,b,A,{once:!0}),b!=="error"&&(function(T,k,D){typeof T.on=="function"&&y(T,"error",k,D)})(E,S,{once:!0})}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var a=10;function o(v){if(typeof v!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof v)}function u(v){return v._maxListeners===void 0?s.defaultMaxListeners:v._maxListeners}function l(v,E,b,_){var w,S,A;if(o(b),(S=v._events)===void 0?(S=v._events=Object.create(null),v._eventsCount=0):(S.newListener!==void 0&&(v.emit("newListener",E,b.listener?b.listener:b),S=v._events),A=S[E]),A===void 0)A=S[E]=b,++v._eventsCount;else if(typeof A=="function"?A=S[E]=_?[b,A]:[A,b]:_?A.unshift(b):A.push(b),(w=u(v))>0&&A.length>w&&!A.warned){A.warned=!0;var I=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");I.name="MaxListenersExceededWarning",I.emitter=v,I.type=E,I.count=A.length,(function(k){console&&console.warn&&console.warn(k)})(I)}return v}function c(){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 p(v,E,b){var _={fired:!1,wrapFn:void 0,target:v,type:E,listener:b},w=c.bind(_);return w.listener=b,_.wrapFn=w,w}function h(v,E,b){var _=v._events;if(_===void 0)return[];var w=_[E];return w===void 0?[]:typeof w=="function"?b?[w.listener||w]:[w]:b?(function(A){for(var I=new Array(A.length),T=0;T<I.length;++T)I[T]=A[T].listener||A[T];return I})(w):g(w,w.length)}function d(v){var E=this._events;if(E!==void 0){var b=E[v];if(typeof b=="function")return 1;if(b!==void 0)return b.length}return 0}function g(v,E){for(var b=new Array(E),_=0;_<E;++_)b[_]=v[_];return b}function y(v,E,b,_){if(typeof v.on=="function")_.once?v.once(E,b):v.on(E,b);else{if(typeof v.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof v);v.addEventListener(E,(function w(S){_.once&&v.removeEventListener(E,w),b(S)}))}}Object.defineProperty(s,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(v){if(typeof v!="number"||v<0||i(v))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+v+".");a=v}}),s.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},s.prototype.setMaxListeners=function(E){if(typeof E!="number"||E<0||i(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},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(E){for(var b=[],_=1;_<arguments.length;_++)b.push(arguments[_]);var w=E==="error",S=this._events;if(S!==void 0)w=w&&S.error===void 0;else if(!w)return!1;if(w){var A;if(b.length>0&&(A=b[0]),A instanceof Error)throw A;var I=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw I.context=A,I}var T=S[E];if(T===void 0)return!1;if(typeof T=="function")n(T,this,b);else{var k=T.length,D=g(T,k);for(_=0;_<k;++_)n(D[_],this,b)}return!0},s.prototype.addListener=function(E,b){return l(this,E,b,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(E,b){return l(this,E,b,!0)},s.prototype.once=function(E,b){return o(b),this.on(E,p(this,E,b)),this},s.prototype.prependOnceListener=function(E,b){return o(b),this.prependListener(E,p(this,E,b)),this},s.prototype.removeListener=function(E,b){var _,w,S,A,I;if(o(b),(w=this._events)===void 0)return this;if((_=w[E])===void 0)return this;if(_===b||_.listener===b)--this._eventsCount==0?this._events=Object.create(null):(delete w[E],w.removeListener&&this.emit("removeListener",E,_.listener||b));else if(typeof _!="function"){for(S=-1,A=_.length-1;A>=0;A--)if(_[A]===b||_[A].listener===b){I=_[A].listener,S=A;break}if(S<0)return this;S===0?_.shift():(function(k,D){for(;D+1<k.length;D++)k[D]=k[D+1];k.pop()})(_,S),_.length===1&&(w[E]=_[0]),w.removeListener!==void 0&&this.emit("removeListener",E,I||b)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(E){var b,_,w;if((_=this._events)===void 0)return this;if(_.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):_[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete _[E]),this;if(arguments.length===0){var S,A=Object.keys(_);for(w=0;w<A.length;++w)(S=A[w])!=="removeListener"&&this.removeAllListeners(S);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(b=_[E])=="function")this.removeListener(E,b);else if(b!==void 0)for(w=b.length-1;w>=0;w--)this.removeListener(E,b[w]);return this},s.prototype.listeners=function(E){return h(this,E,!0)},s.prototype.rawListeners=function(E){return h(this,E,!1)},s.listenerCount=function(v,E){return typeof v.listenerCount=="function"?v.listenerCount(E):d.call(v,E)},s.prototype.listenerCount=d,s.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]}},48:function(t){var e={};function r(i,s,a){a||(a=Error);var o=(function(u){function l(c,p,h){return u.call(this,(function(g,y,v){return typeof s=="string"?s:s(g,y,v)})(c,p,h))||this}return(function(p,h){p.prototype=Object.create(h.prototype),p.prototype.constructor=p,p.__proto__=h})(l,u),l})(a);o.prototype.name=a.name,o.prototype.code=i,e[i]=o}function n(i,s){if(Array.isArray(i)){var a=i.length;return i=i.map((function(o){return String(o)})),a>2?"one of ".concat(s," ").concat(i.slice(0,a-1).join(", "),", or ")+i[a-1]:a===2?"one of ".concat(s," ").concat(i[0]," or ").concat(i[1]):"of ".concat(s," ").concat(i[0])}return"of ".concat(s," ").concat(String(i))}r("ERR_INVALID_OPT_VALUE",(function(i,s){return'The value "'+s+'" is invalid for option "'+i+'"'}),TypeError),r("ERR_INVALID_ARG_TYPE",(function(i,s,a){var o,u;if(typeof s=="string"&&(function(p,h,d){return p.substr(0,h.length)===h})(s,"not ")?(o="must not be",s=s.replace(/^not /,"")):o="must be",(function(p,h,d){return(d===void 0||d>p.length)&&(d=p.length),p.substring(d-h.length,d)===h})(i," argument"))u="The ".concat(i," ").concat(o," ").concat(n(s,"type"));else{var l=(function(p,h,d){return typeof d!="number"&&(d=0),!(d+h.length>p.length)&&p.indexOf(h,d)!==-1})(i,".")?"property":"argument";u='The "'.concat(i,'" ').concat(l," ").concat(o," ").concat(n(s,"type"))}return u+=". Received type ".concat(typeof a)}),TypeError),r("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),r("ERR_METHOD_NOT_IMPLEMENTED",(function(i){return"The "+i+" method is not implemented"})),r("ERR_STREAM_PREMATURE_CLOSE","Premature close"),r("ERR_STREAM_DESTROYED",(function(i){return"Cannot call "+i+" 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(i){return"Unknown encoding: "+i}),TypeError),r("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.F=e},107:function(t,e,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[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],o=new Array(64);function u(){this.init(),this._w=o,i.call(this,64,56)}function l(y,v,E){return E^y&(v^E)}function c(y,v,E){return y&v|E&(y|v)}function p(y){return(y>>>2|y<<30)^(y>>>13|y<<19)^(y>>>22|y<<10)}function h(y){return(y>>>6|y<<26)^(y>>>11|y<<21)^(y>>>25|y<<7)}function d(y){return(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3}function g(y){return(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10}n(u,i),u.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},u.prototype._update=function(y){for(var v=this._w,E=0|this._a,b=0|this._b,_=0|this._c,w=0|this._d,S=0|this._e,A=0|this._f,I=0|this._g,T=0|this._h,k=0;k<16;++k)v[k]=y.readInt32BE(4*k);for(;k<64;++k)v[k]=g(v[k-2])+v[k-7]+d(v[k-15])+v[k-16]|0;for(var D=0;D<64;++D){var R=T+h(S)+l(S,A,I)+a[D]+v[D]|0,$=p(E)+c(E,b,_)|0;T=I,I=A,A=S,S=w+R|0,w=_,_=b,b=E,E=R+$|0}this._a=E+this._a|0,this._b=b+this._b|0,this._c=_+this._c|0,this._d=w+this._d|0,this._e=S+this._e|0,this._f=A+this._f|0,this._g=I+this._g|0,this._h=T+this._h|0},u.prototype._hash=function(){var y=s.allocUnsafe(32);return y.writeInt32BE(this._a,0),y.writeInt32BE(this._b,4),y.writeInt32BE(this._c,8),y.writeInt32BE(this._d,12),y.writeInt32BE(this._e,16),y.writeInt32BE(this._f,20),y.writeInt32BE(this._g,24),y.writeInt32BE(this._h,28),y},t.exports=u},123:function(t,e,r){var n=r(606),i=r(499),s=r(310).Stream;function a(u,l,c){var p,h=(function(_,w){return new Array(w||0).join(_||"")})(l,c=c||0),d=u;if(typeof u=="object"&&(d=u[p=Object.keys(u)[0]])&&d._elem)return d._elem.name=p,d._elem.icount=c,d._elem.indent=l,d._elem.indents=h,d._elem.interrupt=d,d._elem;var g,y=[],v=[];function E(b){Object.keys(b).forEach((function(_){y.push((function(S,A){return S+'="'+i(A)+'"'})(_,b[_]))}))}switch(typeof d){case"object":if(d===null)break;d._attr&&E(d._attr),d._cdata&&v.push(("<![CDATA["+d._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),d.forEach&&(g=!1,v.push(""),d.forEach((function(b){typeof b=="object"?Object.keys(b)[0]=="_attr"?E(b._attr):v.push(a(b,l,c+1)):(v.pop(),g=!0,v.push(i(b)))})),g||v.push(""));break;default:v.push(i(d))}return{name:p,interrupt:!1,attributes:y,content:v,icount:c,indents:h,indent:l}}function o(u,l,c){if(typeof l!="object")return u(!1,l);var p=l.interrupt?1:l.content.length;function h(){for(;l.content.length;){var g=l.content.shift();if(g!==void 0){if(d(g))return;o(u,g)}}u(!1,(p>1?l.indents:"")+(l.name?"</"+l.name+">":"")+(l.indent&&!c?`
258
+ `:"")),c&&c()}function d(g){return!!g.interrupt&&(g.interrupt.append=u,g.interrupt.end=h,g.interrupt=!1,u(!0),!0)}if(u(!1,l.indents+(l.name?"<"+l.name:"")+(l.attributes.length?" "+l.attributes.join(" "):"")+(p?l.name?">":"":l.name?"/>":"")+(l.indent&&p>1?`
259
+ `:"")),!p)return u(!1,l.indent?`
260
+ `:"");d(l)||h()}t.exports=function(l,c){typeof c!="object"&&(c={indent:c});var p=c.stream?new s:null,h="",d=!1,g=c.indent?c.indent===!0?" ":c.indent:"",y=!0;function v(w){y?n.nextTick(w):w()}function E(w,S){if(S!==void 0&&(h+=S),w&&!d&&(p=p||new s,d=!0),w&&d){var A=h;v((function(){p.emit("data",A)})),h=""}}function b(w,S){o(E,a(w,g,g?1:0),S)}function _(){if(p){var w=h;v((function(){p.emit("data",w),p.emit("end"),p.readable=!1,p.emit("close")}))}}return v((function(){y=!1})),c.declaration&&(function(S){var A={version:"1.0",encoding:S.encoding||"UTF-8"};S.standalone&&(A.standalone=S.standalone),b({"?xml":{_attr:A}}),h=h.replace("/>","?>")})(c.declaration),l&&l.forEach?l.forEach((function(w,S){var A;S+1===l.length&&(A=_),b(w,A)})):b(l,_),p?(p.readable=!0,p):h},t.exports.element=t.exports.Element=function(){var l={_elem:a(Array.prototype.slice.call(arguments)),push:function(c){if(!this.append)throw new Error("not assigned to a parent!");var p=this,h=this._elem.indent;o(this.append,a(c,h,this._elem.icount+(h?1:0)),(function(){p.append(!0)}))},close:function(c){c!==void 0&&this.push(c),this.end&&this.end()}};return l}},141:function(t,e,r){var n=r(861).Buffer,i=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 s(g){var y;switch(this.encoding=(function(E){var b=(function(w){if(!w)return"utf8";for(var S;;)switch(w){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 w;default:if(S)return;w=(""+w).toLowerCase(),S=!0}})(E);if(typeof b!="string"&&(n.isEncoding===i||!i(E)))throw new Error("Unknown encoding: "+E);return b||E})(g),this.encoding){case"utf16le":this.text=u,this.end=l,y=4;break;case"utf8":this.fillLast=o,y=4;break;case"base64":this.text=c,this.end=p,y=3;break;default:return this.write=h,void(this.end=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(y)}function a(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function o(g){var y=this.lastTotal-this.lastNeed,v=(function(b,_,w){if((192&_[0])!=128)return b.lastNeed=0,"�";if(b.lastNeed>1&&_.length>1){if((192&_[1])!=128)return b.lastNeed=1,"�";if(b.lastNeed>2&&_.length>2&&(192&_[2])!=128)return b.lastNeed=2,"�"}})(this,g);return v!==void 0?v:this.lastNeed<=g.length?(g.copy(this.lastChar,y,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(g.copy(this.lastChar,y,0,g.length),void(this.lastNeed-=g.length))}function u(g,y){if((g.length-y)%2==0){var v=g.toString("utf16le",y);if(v){var E=v.charCodeAt(v.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],v.slice(0,-1)}return v}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=g[g.length-1],g.toString("utf16le",y,g.length-1)}function l(g){var y=g&&g.length?this.write(g):"";if(this.lastNeed){var v=this.lastTotal-this.lastNeed;return y+this.lastChar.toString("utf16le",0,v)}return y}function c(g,y){var v=(g.length-y)%3;return v===0?g.toString("base64",y):(this.lastNeed=3-v,this.lastTotal=3,v===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",y,g.length-v))}function p(g){var y=g&&g.length?this.write(g):"";return this.lastNeed?y+this.lastChar.toString("base64",0,3-this.lastNeed):y}function h(g){return g.toString(this.encoding)}function d(g){return g&&g.length?this.write(g):""}e.I=s,s.prototype.write=function(g){if(g.length===0)return"";var y,v;if(this.lastNeed){if((y=this.fillLast(g))===void 0)return"";v=this.lastNeed,this.lastNeed=0}else v=0;return v<g.length?y?y+this.text(g,v):this.text(g,v):y||""},s.prototype.end=function(y){var v=y&&y.length?this.write(y):"";return this.lastNeed?v+"�":v},s.prototype.text=function(y,v){var E=(function(w,S,A){var I=S.length-1;if(I<A)return 0;var T=a(S[I]);return T>=0?(T>0&&(w.lastNeed=T-1),T):--I<A||T===-2?0:(T=a(S[I]),T>=0?(T>0&&(w.lastNeed=T-2),T):--I<A||T===-2?0:(T=a(S[I]),T>=0?(T>0&&(T===2?T=0:w.lastNeed=T-3),T):0))})(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=E;var b=y.length-(E-this.lastNeed);return y.copy(this.lastChar,0,b),y.toString("utf8",v,b)},s.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}},157:function(t){t.exports=function(){throw new Error("Readable.from is not available in the browser")}},209:function(t,e,r){var n=r(606),i=65536,s=4294967295,a=r(861).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?t.exports=function(l,c){if(l>s)throw new RangeError("requested too many random bytes");var p=a.allocUnsafe(l);if(l>0)if(l>i)for(var h=0;h<l;h+=i)o.getRandomValues(p.slice(h,h+i));else o.getRandomValues(p);return typeof c=="function"?n.nextTick((function(){c(null,p)})):p}:t.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
261
+ Use Chrome, Firefox or Internet Explorer 11`)}},238:function(t,e,r){var n=r(48).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function s(a,o,u){if(typeof o=="function")return s(a,null,o);o||(o={}),u=(function(w){var S=!1;return function(){if(!S){S=!0;for(var A=arguments.length,I=new Array(A),T=0;T<A;T++)I[T]=arguments[T];w.apply(this,I)}}})(u||i);var l=o.readable||o.readable!==!1&&a.readable,c=o.writable||o.writable!==!1&&a.writable,p=function(){a.writable||d()},h=a._writableState&&a._writableState.finished,d=function(){c=!1,h=!0,l||u.call(a)},g=a._readableState&&a._readableState.endEmitted,y=function(){l=!1,g=!0,c||u.call(a)},v=function(w){u.call(a,w)},E=function(){var w;return l&&!g?(a._readableState&&a._readableState.ended||(w=new n),u.call(a,w)):c&&!h?(a._writableState&&a._writableState.ended||(w=new n),u.call(a,w)):void 0},b=function(){a.req.on("finish",d)};return(function(w){return w.setHeader&&typeof w.abort=="function"})(a)?(a.on("complete",d),a.on("abort",E),a.req?b():a.on("request",b)):c&&!a._writableState&&(a.on("end",p),a.on("close",p)),a.on("end",y),a.on("finish",d),o.error!==!1&&a.on("error",v),a.on("close",E),function(){a.removeListener("complete",d),a.removeListener("abort",E),a.removeListener("request",b),a.req&&a.req.removeListener("finish",d),a.removeListener("end",p),a.removeListener("close",p),a.removeListener("finish",d),a.removeListener("end",y),a.removeListener("error",v),a.removeListener("close",E)}}},287:function(t,e,r){const n=r(987),i=r(362),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=function(C){return+C!=C&&(C=0),u.alloc(+C)},e.INSPECT_MAX_BYTES=50;const a=2147483647;function o(L){if(L>a)throw new RangeError('The value "'+L+'" is invalid for option "size"');const C=new Uint8Array(L);return Object.setPrototypeOf(C,u.prototype),C}function u(L,C,j){if(typeof L=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return p(L)}return l(L,C,j)}function l(L,C,j){if(typeof L=="string")return(function(fe,Ne){if(typeof Ne=="string"&&Ne!==""||(Ne="utf8"),!u.isEncoding(Ne))throw new TypeError("Unknown encoding: "+Ne);const Ge=0|y(fe,Ne);let q=o(Ge);const O=q.write(fe,Ne);return O!==Ge&&(q=q.slice(0,O)),q})(L,C);if(ArrayBuffer.isView(L))return(function(fe){if(Pe(fe,Uint8Array)){const Ne=new Uint8Array(fe);return d(Ne.buffer,Ne.byteOffset,Ne.byteLength)}return h(fe)})(L);if(L==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L);if(Pe(L,ArrayBuffer)||L&&Pe(L.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Pe(L,SharedArrayBuffer)||L&&Pe(L.buffer,SharedArrayBuffer)))return d(L,C,j);if(typeof L=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const U=L.valueOf&&L.valueOf();if(U!=null&&U!==L)return u.from(U,C,j);const Y=(function(fe){if(u.isBuffer(fe)){const Ne=0|g(fe.length),Ge=o(Ne);return Ge.length===0||fe.copy(Ge,0,0,Ne),Ge}if(fe.length!==void 0)return typeof fe.length!="number"||Le(fe.length)?o(0):h(fe);if(fe.type==="Buffer"&&Array.isArray(fe.data))return h(fe.data)})(L);if(Y)return Y;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof L[Symbol.toPrimitive]=="function")return u.from(L[Symbol.toPrimitive]("string"),C,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof L)}function c(L){if(typeof L!="number")throw new TypeError('"size" argument must be of type number');if(L<0)throw new RangeError('The value "'+L+'" is invalid for option "size"')}function p(L){return c(L),o(L<0?0:0|g(L))}function h(L){const C=L.length<0?0:0|g(L.length),j=o(C);for(let U=0;U<C;U+=1)j[U]=255&L[U];return j}function d(L,C,j){if(C<0||L.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if(L.byteLength<C+(j||0))throw new RangeError('"length" is outside of buffer bounds');let U;return U=C===void 0&&j===void 0?new Uint8Array(L):j===void 0?new Uint8Array(L,C):new Uint8Array(L,C,j),Object.setPrototypeOf(U,u.prototype),U}function g(L){if(L>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|L}function y(L,C){if(u.isBuffer(L))return L.length;if(ArrayBuffer.isView(L)||Pe(L,ArrayBuffer))return L.byteLength;if(typeof L!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof L);const j=L.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&j===0)return 0;let Y=!1;for(;;)switch(C){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return Me(L).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j;case"hex":return j>>>1;case"base64":return Be(L).length;default:if(Y)return U?-1:Me(L).length;C=(""+C).toLowerCase(),Y=!0}}function v(L,C,j){let U=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0)<=(C>>>=0))return"";for(L||(L="utf8");;)switch(L){case"hex":return K(this,C,j);case"utf8":case"utf-8":return D(this,C,j);case"ascii":return $(this,C,j);case"latin1":case"binary":return M(this,C,j);case"base64":return k(this,C,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,C,j);default:if(U)throw new TypeError("Unknown encoding: "+L);L=(L+"").toLowerCase(),U=!0}}function E(L,C,j){const U=L[C];L[C]=L[j],L[j]=U}function b(L,C,j,U,Y){if(L.length===0)return-1;if(typeof j=="string"?(U=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),Le(j=+j)&&(j=Y?0:L.length-1),j<0&&(j=L.length+j),j>=L.length){if(Y)return-1;j=L.length-1}else if(j<0){if(!Y)return-1;j=0}if(typeof C=="string"&&(C=u.from(C,U)),u.isBuffer(C))return C.length===0?-1:_(L,C,j,U,Y);if(typeof C=="number")return C&=255,typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(L,C,j):Uint8Array.prototype.lastIndexOf.call(L,C,j):_(L,[C],j,U,Y);throw new TypeError("val must be string, number or Buffer")}function _(L,C,j,U,Y){let ne,fe=1,Ne=L.length,Ge=C.length;if(U!==void 0&&((U=String(U).toLowerCase())==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le")){if(L.length<2||C.length<2)return-1;fe=2,Ne/=2,Ge/=2,j/=2}function q(O,P){return fe===1?O[P]:O.readUInt16BE(P*fe)}if(Y){let O=-1;for(ne=j;ne<Ne;ne++)if(q(L,ne)===q(C,O===-1?0:ne-O)){if(O===-1&&(O=ne),ne-O+1===Ge)return O*fe}else O!==-1&&(ne-=ne-O),O=-1}else for(j+Ge>Ne&&(j=Ne-Ge),ne=j;ne>=0;ne--){let O=!0;for(let P=0;P<Ge;P++)if(q(L,ne+P)!==q(C,P)){O=!1;break}if(O)return ne}return-1}function w(L,C,j,U){j=Number(j)||0;const Y=L.length-j;U?(U=Number(U))>Y&&(U=Y):U=Y;const ne=C.length;let fe;for(U>ne/2&&(U=ne/2),fe=0;fe<U;++fe){const Ne=parseInt(C.substr(2*fe,2),16);if(Le(Ne))return fe;L[j+fe]=Ne}return fe}function S(L,C,j,U){return Te(Me(C,L.length-j),L,j,U)}function A(L,C,j,U){return Te((function(ne){const fe=[];for(let Ne=0;Ne<ne.length;++Ne)fe.push(255&ne.charCodeAt(Ne));return fe})(C),L,j,U)}function I(L,C,j,U){return Te(Be(C),L,j,U)}function T(L,C,j,U){return Te((function(ne,fe){let Ne,Ge,q;const O=[];for(let P=0;P<ne.length&&!((fe-=2)<0);++P)Ne=ne.charCodeAt(P),Ge=Ne>>8,q=Ne%256,O.push(q),O.push(Ge);return O})(C,L.length-j),L,j,U)}function k(L,C,j){return C===0&&j===L.length?n.fromByteArray(L):n.fromByteArray(L.slice(C,j))}function D(L,C,j){j=Math.min(L.length,j);const U=[];let Y=C;for(;Y<j;){const ne=L[Y];let fe=null,Ne=ne>239?4:ne>223?3:ne>191?2:1;if(Y+Ne<=j){let Ge,q,O,P;switch(Ne){case 1:ne<128&&(fe=ne);break;case 2:Ge=L[Y+1],(192&Ge)==128&&(P=(31&ne)<<6|63&Ge,P>127&&(fe=P));break;case 3:Ge=L[Y+1],q=L[Y+2],(192&Ge)==128&&(192&q)==128&&(P=(15&ne)<<12|(63&Ge)<<6|63&q,P>2047&&(P<55296||P>57343)&&(fe=P));break;case 4:Ge=L[Y+1],q=L[Y+2],O=L[Y+3],(192&Ge)==128&&(192&q)==128&&(192&O)==128&&(P=(15&ne)<<18|(63&Ge)<<12|(63&q)<<6|63&O,P>65535&&P<1114112&&(fe=P))}}fe===null?(fe=65533,Ne=1):fe>65535&&(fe-=65536,U.push(fe>>>10&1023|55296),fe=56320|1023&fe),U.push(fe),Y+=Ne}return(function(fe){const Ne=fe.length;if(Ne<=R)return String.fromCharCode.apply(String,fe);let Ge="",q=0;for(;q<Ne;)Ge+=String.fromCharCode.apply(String,fe.slice(q,q+=R));return Ge})(U)}e.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=(function(){try{const C=new Uint8Array(1),j={foo:function(){return 42}};return Object.setPrototypeOf(j,Uint8Array.prototype),Object.setPrototypeOf(C,j),C.foo()===42}catch{return!1}})(),u.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(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}}),u.poolSize=8192,u.from=function(L,C,j){return l(L,C,j)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(L,C,j){return(function(Y,ne,fe){return c(Y),Y<=0?o(Y):ne!==void 0?typeof fe=="string"?o(Y).fill(ne,fe):o(Y).fill(ne):o(Y)})(L,C,j)},u.allocUnsafe=function(L){return p(L)},u.allocUnsafeSlow=function(L){return p(L)},u.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==u.prototype},u.compare=function(C,j){if(Pe(C,Uint8Array)&&(C=u.from(C,C.offset,C.byteLength)),Pe(j,Uint8Array)&&(j=u.from(j,j.offset,j.byteLength)),!u.isBuffer(C)||!u.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===j)return 0;let U=C.length,Y=j.length;for(let ne=0,fe=Math.min(U,Y);ne<fe;++ne)if(C[ne]!==j[ne]){U=C[ne],Y=j[ne];break}return U<Y?-1:Y<U?1:0},u.isEncoding=function(C){switch(String(C).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}},u.concat=function(C,j){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return u.alloc(0);let U;if(j===void 0)for(j=0,U=0;U<C.length;++U)j+=C[U].length;const Y=u.allocUnsafe(j);let ne=0;for(U=0;U<C.length;++U){let fe=C[U];if(Pe(fe,Uint8Array))ne+fe.length>Y.length?(u.isBuffer(fe)||(fe=u.from(fe)),fe.copy(Y,ne)):Uint8Array.prototype.set.call(Y,fe,ne);else{if(!u.isBuffer(fe))throw new TypeError('"list" argument must be an Array of Buffers');fe.copy(Y,ne)}ne+=fe.length}return Y},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const C=this.length;if(C%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<C;j+=2)E(this,j,j+1);return this},u.prototype.swap32=function(){const C=this.length;if(C%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<C;j+=4)E(this,j,j+3),E(this,j+1,j+2);return this},u.prototype.swap64=function(){const C=this.length;if(C%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<C;j+=8)E(this,j,j+7),E(this,j+1,j+6),E(this,j+2,j+5),E(this,j+3,j+4);return this},u.prototype.toString=function(){const C=this.length;return C===0?"":arguments.length===0?D(this,0,C):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(C){if(!u.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C||u.compare(this,C)===0},u.prototype.inspect=function(){let C="";const j=e.INSPECT_MAX_BYTES;return C=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(C+=" ... "),"<Buffer "+C+">"},s&&(u.prototype[s]=u.prototype.inspect),u.prototype.compare=function(C,j,U,Y,ne){if(Pe(C,Uint8Array)&&(C=u.from(C,C.offset,C.byteLength)),!u.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(j===void 0&&(j=0),U===void 0&&(U=C?C.length:0),Y===void 0&&(Y=0),ne===void 0&&(ne=this.length),j<0||U>C.length||Y<0||ne>this.length)throw new RangeError("out of range index");if(Y>=ne&&j>=U)return 0;if(Y>=ne)return-1;if(j>=U)return 1;if(this===C)return 0;let fe=(ne>>>=0)-(Y>>>=0),Ne=(U>>>=0)-(j>>>=0);const Ge=Math.min(fe,Ne),q=this.slice(Y,ne),O=C.slice(j,U);for(let P=0;P<Ge;++P)if(q[P]!==O[P]){fe=q[P],Ne=O[P];break}return fe<Ne?-1:Ne<fe?1:0},u.prototype.includes=function(C,j,U){return this.indexOf(C,j,U)!==-1},u.prototype.indexOf=function(C,j,U){return b(this,C,j,U,!0)},u.prototype.lastIndexOf=function(C,j,U){return b(this,C,j,U,!1)},u.prototype.write=function(C,j,U,Y){if(j===void 0)Y="utf8",U=this.length,j=0;else if(U===void 0&&typeof j=="string")Y=j,U=this.length,j=0;else{if(!isFinite(j))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");j>>>=0,isFinite(U)?(U>>>=0,Y===void 0&&(Y="utf8")):(Y=U,U=void 0)}const ne=this.length-j;if((U===void 0||U>ne)&&(U=ne),C.length>0&&(U<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");Y||(Y="utf8");let fe=!1;for(;;)switch(Y){case"hex":return w(this,C,j,U);case"utf8":case"utf-8":return S(this,C,j,U);case"ascii":case"latin1":case"binary":return A(this,C,j,U);case"base64":return I(this,C,j,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,C,j,U);default:if(fe)throw new TypeError("Unknown encoding: "+Y);Y=(""+Y).toLowerCase(),fe=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const R=4096;function $(L,C,j){let U="";j=Math.min(L.length,j);for(let Y=C;Y<j;++Y)U+=String.fromCharCode(127&L[Y]);return U}function M(L,C,j){let U="";j=Math.min(L.length,j);for(let Y=C;Y<j;++Y)U+=String.fromCharCode(L[Y]);return U}function K(L,C,j){const U=L.length;(!C||C<0)&&(C=0),(!j||j<0||j>U)&&(j=U);let Y="";for(let ne=C;ne<j;++ne)Y+=ge[L[ne]];return Y}function ee(L,C,j){const U=L.slice(C,j);let Y="";for(let ne=0;ne<U.length-1;ne+=2)Y+=String.fromCharCode(U[ne]+256*U[ne+1]);return Y}function G(L,C,j){if(L%1!=0||L<0)throw new RangeError("offset is not uint");if(L+C>j)throw new RangeError("Trying to access beyond buffer length")}function Z(L,C,j,U,Y,ne){if(!u.isBuffer(L))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>Y||C<ne)throw new RangeError('"value" argument is out of bounds');if(j+U>L.length)throw new RangeError("Index out of range")}function X(L,C,j,U,Y){W(C,U,Y,L,j,7);let ne=Number(C&BigInt(4294967295));L[j++]=ne,ne>>=8,L[j++]=ne,ne>>=8,L[j++]=ne,ne>>=8,L[j++]=ne;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return L[j++]=fe,fe>>=8,L[j++]=fe,fe>>=8,L[j++]=fe,fe>>=8,L[j++]=fe,j}function te(L,C,j,U,Y){W(C,U,Y,L,j,7);let ne=Number(C&BigInt(4294967295));L[j+7]=ne,ne>>=8,L[j+6]=ne,ne>>=8,L[j+5]=ne,ne>>=8,L[j+4]=ne;let fe=Number(C>>BigInt(32)&BigInt(4294967295));return L[j+3]=fe,fe>>=8,L[j+2]=fe,fe>>=8,L[j+1]=fe,fe>>=8,L[j]=fe,j+8}function ce(L,C,j,U,Y,ne){if(j+U>L.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function ie(L,C,j,U,Y){return C=+C,j>>>=0,Y||ce(L,0,j,4),i.write(L,C,j,U,23,4),j+4}function ue(L,C,j,U,Y){return C=+C,j>>>=0,Y||ce(L,0,j,8),i.write(L,C,j,U,52,8),j+8}u.prototype.slice=function(C,j){const U=this.length;(C=~~C)<0?(C+=U)<0&&(C=0):C>U&&(C=U),(j=j===void 0?U:~~j)<0?(j+=U)<0&&(j=0):j>U&&(j=U),j<C&&(j=C);const Y=this.subarray(C,j);return Object.setPrototypeOf(Y,u.prototype),Y},u.prototype.readUintLE=u.prototype.readUIntLE=function(C,j,U){C>>>=0,j>>>=0,U||G(C,j,this.length);let Y=this[C],ne=1,fe=0;for(;++fe<j&&(ne*=256);)Y+=this[C+fe]*ne;return Y},u.prototype.readUintBE=u.prototype.readUIntBE=function(C,j,U){C>>>=0,j>>>=0,U||G(C,j,this.length);let Y=this[C+--j],ne=1;for(;j>0&&(ne*=256);)Y+=this[C+--j]*ne;return Y},u.prototype.readUint8=u.prototype.readUInt8=function(C,j){return C>>>=0,j||G(C,1,this.length),this[C]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(C,j){return C>>>=0,j||G(C,2,this.length),this[C]|this[C+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(C,j){return C>>>=0,j||G(C,2,this.length),this[C]<<8|this[C+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(C,j){return C>>>=0,j||G(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+16777216*this[C+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(C,j){return C>>>=0,j||G(C,4,this.length),16777216*this[C]+(this[C+1]<<16|this[C+2]<<8|this[C+3])},u.prototype.readBigUInt64LE=Se((function(C){V(C>>>=0,"offset");const j=this[C],U=this[C+7];j!==void 0&&U!==void 0||me(C,this.length-8);const Y=j+256*this[++C]+65536*this[++C]+this[++C]*2**24,ne=this[++C]+256*this[++C]+65536*this[++C]+U*2**24;return BigInt(Y)+(BigInt(ne)<<BigInt(32))})),u.prototype.readBigUInt64BE=Se((function(C){V(C>>>=0,"offset");const j=this[C],U=this[C+7];j!==void 0&&U!==void 0||me(C,this.length-8);const Y=j*2**24+65536*this[++C]+256*this[++C]+this[++C],ne=this[++C]*2**24+65536*this[++C]+256*this[++C]+U;return(BigInt(Y)<<BigInt(32))+BigInt(ne)})),u.prototype.readIntLE=function(C,j,U){C>>>=0,j>>>=0,U||G(C,j,this.length);let Y=this[C],ne=1,fe=0;for(;++fe<j&&(ne*=256);)Y+=this[C+fe]*ne;return ne*=128,Y>=ne&&(Y-=Math.pow(2,8*j)),Y},u.prototype.readIntBE=function(C,j,U){C>>>=0,j>>>=0,U||G(C,j,this.length);let Y=j,ne=1,fe=this[C+--Y];for(;Y>0&&(ne*=256);)fe+=this[C+--Y]*ne;return ne*=128,fe>=ne&&(fe-=Math.pow(2,8*j)),fe},u.prototype.readInt8=function(C,j){return C>>>=0,j||G(C,1,this.length),128&this[C]?-1*(255-this[C]+1):this[C]},u.prototype.readInt16LE=function(C,j){C>>>=0,j||G(C,2,this.length);const U=this[C]|this[C+1]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt16BE=function(C,j){C>>>=0,j||G(C,2,this.length);const U=this[C+1]|this[C]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt32LE=function(C,j){return C>>>=0,j||G(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},u.prototype.readInt32BE=function(C,j){return C>>>=0,j||G(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},u.prototype.readBigInt64LE=Se((function(C){V(C>>>=0,"offset");const j=this[C],U=this[C+7];j!==void 0&&U!==void 0||me(C,this.length-8);const Y=this[C+4]+256*this[C+5]+65536*this[C+6]+(U<<24);return(BigInt(Y)<<BigInt(32))+BigInt(j+256*this[++C]+65536*this[++C]+this[++C]*2**24)})),u.prototype.readBigInt64BE=Se((function(C){V(C>>>=0,"offset");const j=this[C],U=this[C+7];j!==void 0&&U!==void 0||me(C,this.length-8);const Y=(j<<24)+65536*this[++C]+256*this[++C]+this[++C];return(BigInt(Y)<<BigInt(32))+BigInt(this[++C]*2**24+65536*this[++C]+256*this[++C]+U)})),u.prototype.readFloatLE=function(C,j){return C>>>=0,j||G(C,4,this.length),i.read(this,C,!0,23,4)},u.prototype.readFloatBE=function(C,j){return C>>>=0,j||G(C,4,this.length),i.read(this,C,!1,23,4)},u.prototype.readDoubleLE=function(C,j){return C>>>=0,j||G(C,8,this.length),i.read(this,C,!0,52,8)},u.prototype.readDoubleBE=function(C,j){return C>>>=0,j||G(C,8,this.length),i.read(this,C,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(C,j,U,Y){C=+C,j>>>=0,U>>>=0,!Y&&Z(this,C,j,U,Math.pow(2,8*U)-1,0);let ne=1,fe=0;for(this[j]=255&C;++fe<U&&(ne*=256);)this[j+fe]=C/ne&255;return j+U},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(C,j,U,Y){C=+C,j>>>=0,U>>>=0,!Y&&Z(this,C,j,U,Math.pow(2,8*U)-1,0);let ne=U-1,fe=1;for(this[j+ne]=255&C;--ne>=0&&(fe*=256);)this[j+ne]=C/fe&255;return j+U},u.prototype.writeUint8=u.prototype.writeUInt8=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,1,255,0),this[j]=255&C,j+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,2,65535,0),this[j]=255&C,this[j+1]=C>>>8,j+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,2,65535,0),this[j]=C>>>8,this[j+1]=255&C,j+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,4,4294967295,0),this[j+3]=C>>>24,this[j+2]=C>>>16,this[j+1]=C>>>8,this[j]=255&C,j+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,4,4294967295,0),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=255&C,j+4},u.prototype.writeBigUInt64LE=Se((function(C,j=0){return X(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=Se((function(C,j=0){return te(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(C,j,U,Y){if(C=+C,j>>>=0,!Y){const Ge=Math.pow(2,8*U-1);Z(this,C,j,U,Ge-1,-Ge)}let ne=0,fe=1,Ne=0;for(this[j]=255&C;++ne<U&&(fe*=256);)C<0&&Ne===0&&this[j+ne-1]!==0&&(Ne=1),this[j+ne]=(C/fe|0)-Ne&255;return j+U},u.prototype.writeIntBE=function(C,j,U,Y){if(C=+C,j>>>=0,!Y){const Ge=Math.pow(2,8*U-1);Z(this,C,j,U,Ge-1,-Ge)}let ne=U-1,fe=1,Ne=0;for(this[j+ne]=255&C;--ne>=0&&(fe*=256);)C<0&&Ne===0&&this[j+ne+1]!==0&&(Ne=1),this[j+ne]=(C/fe|0)-Ne&255;return j+U},u.prototype.writeInt8=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,1,127,-128),C<0&&(C=255+C+1),this[j]=255&C,j+1},u.prototype.writeInt16LE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,2,32767,-32768),this[j]=255&C,this[j+1]=C>>>8,j+2},u.prototype.writeInt16BE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,2,32767,-32768),this[j]=C>>>8,this[j+1]=255&C,j+2},u.prototype.writeInt32LE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,4,2147483647,-2147483648),this[j]=255&C,this[j+1]=C>>>8,this[j+2]=C>>>16,this[j+3]=C>>>24,j+4},u.prototype.writeInt32BE=function(C,j,U){return C=+C,j>>>=0,U||Z(this,C,j,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=255&C,j+4},u.prototype.writeBigInt64LE=Se((function(C,j=0){return X(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=Se((function(C,j=0){return te(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(C,j,U){return ie(this,C,j,!0,U)},u.prototype.writeFloatBE=function(C,j,U){return ie(this,C,j,!1,U)},u.prototype.writeDoubleLE=function(C,j,U){return ue(this,C,j,!0,U)},u.prototype.writeDoubleBE=function(C,j,U){return ue(this,C,j,!1,U)},u.prototype.copy=function(C,j,U,Y){if(!u.isBuffer(C))throw new TypeError("argument should be a Buffer");if(U||(U=0),Y||Y===0||(Y=this.length),j>=C.length&&(j=C.length),j||(j=0),Y>0&&Y<U&&(Y=U),Y===U||C.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(U<0||U>=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),C.length-j<Y-U&&(Y=C.length-j+U);const ne=Y-U;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,U,Y):Uint8Array.prototype.set.call(C,this.subarray(U,Y),j),ne},u.prototype.fill=function(C,j,U,Y){if(typeof C=="string"){if(typeof j=="string"?(Y=j,j=0,U=this.length):typeof U=="string"&&(Y=U,U=this.length),Y!==void 0&&typeof Y!="string")throw new TypeError("encoding must be a string");if(typeof Y=="string"&&!u.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);if(C.length===1){const fe=C.charCodeAt(0);(Y==="utf8"&&fe<128||Y==="latin1")&&(C=fe)}}else typeof C=="number"?C&=255:typeof C=="boolean"&&(C=Number(C));if(j<0||this.length<j||this.length<U)throw new RangeError("Out of range index");if(U<=j)return this;let ne;if(j>>>=0,U=U===void 0?this.length:U>>>0,C||(C=0),typeof C=="number")for(ne=j;ne<U;++ne)this[ne]=C;else{const fe=u.isBuffer(C)?C:u.from(C,Y),Ne=fe.length;if(Ne===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(ne=0;ne<U-j;++ne)this[ne+j]=fe[ne%Ne]}return this};const ye={};function he(L,C,j){ye[L]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:C.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${L}]`,this.stack,delete this.name}get code(){return L}set code(Y){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:Y,writable:!0})}toString(){return`${this.name} [${L}]: ${this.message}`}}}function re(L){let C="",j=L.length;const U=L[0]==="-"?1:0;for(;j>=U+4;j-=3)C=`_${L.slice(j-3,j)}${C}`;return`${L.slice(0,j)}${C}`}function W(L,C,j,U,Y,ne){if(L>j||L<C){const fe=typeof C=="bigint"?"n":"";let Ne;throw Ne=C===0||C===BigInt(0)?`>= 0${fe} and < 2${fe} ** ${8*(ne+1)}${fe}`:`>= -(2${fe} ** ${8*(ne+1)-1}${fe}) and < 2 ** ${8*(ne+1)-1}${fe}`,new ye.ERR_OUT_OF_RANGE("value",Ne,L)}(function(Ne,Ge,q){V(Ge,"offset"),Ne[Ge]!==void 0&&Ne[Ge+q]!==void 0||me(Ge,Ne.length-(q+1))})(U,Y,ne)}function V(L,C){if(typeof L!="number")throw new ye.ERR_INVALID_ARG_TYPE(C,"number",L)}function me(L,C,j){throw Math.floor(L)!==L?(V(L,j),new ye.ERR_OUT_OF_RANGE("offset","an integer",L)):C<0?new ye.ERR_BUFFER_OUT_OF_BOUNDS:new ye.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${C}`,L)}he("ERR_BUFFER_OUT_OF_BOUNDS",(function(L){return L?`${L} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),he("ERR_INVALID_ARG_TYPE",(function(L,C){return`The "${L}" argument must be of type number. Received type ${typeof C}`}),TypeError),he("ERR_OUT_OF_RANGE",(function(L,C,j){let U=`The value of "${L}" is out of range.`,Y=j;return Number.isInteger(j)&&Math.abs(j)>2**32?Y=re(String(j)):typeof j=="bigint"&&(Y=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(Y=re(Y)),Y+="n"),U+=` It must be ${C}. Received ${Y}`,U}),RangeError);const ve=/[^+/0-9A-Za-z-_]/g;function Me(L,C){let j;C=C||1/0;const U=L.length;let Y=null;const ne=[];for(let fe=0;fe<U;++fe){if(j=L.charCodeAt(fe),j>55295&&j<57344){if(!Y){if(j>56319){(C-=3)>-1&&ne.push(239,191,189);continue}if(fe+1===U){(C-=3)>-1&&ne.push(239,191,189);continue}Y=j;continue}if(j<56320){(C-=3)>-1&&ne.push(239,191,189),Y=j;continue}j=65536+(Y-55296<<10|j-56320)}else Y&&(C-=3)>-1&&ne.push(239,191,189);if(Y=null,j<128){if((C-=1)<0)break;ne.push(j)}else if(j<2048){if((C-=2)<0)break;ne.push(j>>6|192,63&j|128)}else if(j<65536){if((C-=3)<0)break;ne.push(j>>12|224,j>>6&63|128,63&j|128)}else{if(!(j<1114112))throw new Error("Invalid code point");if((C-=4)<0)break;ne.push(j>>18|240,j>>12&63|128,j>>6&63|128,63&j|128)}}return ne}function Be(L){return n.toByteArray((function(j){if((j=(j=j.split("=")[0]).trim().replace(ve,"")).length<2)return"";for(;j.length%4!=0;)j+="=";return j})(L))}function Te(L,C,j,U){let Y;for(Y=0;Y<U&&!(Y+j>=C.length||Y>=L.length);++Y)C[Y+j]=L[Y];return Y}function Pe(L,C){return L instanceof C||L!=null&&L.constructor!=null&&L.constructor.name!=null&&L.constructor.name===C.name}function Le(L){return L!=L}const ge=(function(){const L="0123456789abcdef",C=new Array(256);for(let j=0;j<16;++j){const U=16*j;for(let Y=0;Y<16;++Y)C[U+Y]=L[j]+L[Y]}return C})();function Se(L){return typeof BigInt>"u"?we:L}function we(){throw new Error("BigInt not supported")}},291:function(t,e,r){var n=r(48).F.ERR_INVALID_OPT_VALUE;t.exports={getHighWaterMark:function(s,a,o,u){var l=(function(p,h,d){return p.highWaterMark!=null?p.highWaterMark:h?p[d]:null})(a,u,o);if(l!=null){if(!isFinite(l)||Math.floor(l)!==l||l<0)throw new n(u?o:"highWaterMark",l);return Math.floor(l)}return s.objectMode?16:16384}}},310:function(t,e,r){t.exports=i;var n=r(7).EventEmitter;function i(){n.call(this)}r(698)(i,n),i.Readable=r(412),i.Writable=r(708),i.Duplex=r(382),i.Transform=r(610),i.PassThrough=r(600),i.finished=r(238),i.pipeline=r(758),i.Stream=i,i.prototype.pipe=function(s,a){var o=this;function u(y){s.writable&&s.write(y)===!1&&o.pause&&o.pause()}function l(){o.readable&&o.resume&&o.resume()}o.on("data",u),s.on("drain",l),s._isStdio||a&&a.end===!1||(o.on("end",p),o.on("close",h));var c=!1;function p(){c||(c=!0,s.end())}function h(){c||(c=!0,typeof s.destroy=="function"&&s.destroy())}function d(y){if(g(),n.listenerCount(this,"error")===0)throw y}function g(){o.removeListener("data",u),s.removeListener("drain",l),o.removeListener("end",p),o.removeListener("close",h),o.removeListener("error",d),s.removeListener("error",d),o.removeListener("end",g),o.removeListener("close",g),s.removeListener("close",g)}return o.on("error",d),s.on("error",d),o.on("end",g),o.on("close",g),s.on("close",g),s.emit("pipe",o),s}},340:function(){},345:function(t,e,r){t.exports=r(7).EventEmitter},362:function(t){t.exports=z9},382:function(t,e,r){var n=r(606),i=Object.keys||function(d){var g=[];for(var y in d)g.push(y);return g};t.exports=c;var s=r(412),a=r(708);r(698)(c,s);for(var o=i(a.prototype),u=0;u<o.length;u++){var l=o[u];c.prototype[l]||(c.prototype[l]=a.prototype[l])}function c(d){if(!(this instanceof c))return new c(d);s.call(this,d),a.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",p)))}function p(){this._writableState.ended||n.nextTick(h,this)}function h(d){d.end()}Object.defineProperty(c.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(c.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(c.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(c.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)}})},392:function(t,e,r){var n=r(861).Buffer,i=r(496);function s(a,o){this._block=n.alloc(a),this._finalSize=o,this._blockSize=a,this._len=0}s.prototype.update=function(a,o){a=i(a,o||"utf8");for(var u=this._block,l=this._blockSize,c=a.length,p=this._len,h=0;h<c;){for(var d=p%l,g=Math.min(c-h,l-d),y=0;y<g;y++)u[d+y]=a[h+y];h+=g,(p+=g)%l==0&&this._update(u)}return this._len+=c,this},s.prototype.digest=function(a){var o=this._len%this._blockSize;this._block[o]=128,this._block.fill(0,o+1),o>=this._finalSize&&(this._update(this._block),this._block.fill(0));var u=8*this._len;if(u<=4294967295)this._block.writeUInt32BE(u,this._blockSize-4);else{var l=(4294967295&u)>>>0,c=(u-l)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var p=this._hash();return a?p.toString(a):p},s.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=s},412:function(t,e,r){var n,i=r(606);t.exports=k,k.ReadableState=T,r(7).EventEmitter;var s=function(V,me){return V.listeners(me).length},a=r(345),o=r(287).Buffer,u=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},l,c=r(838);l=c&&c.debuglog?c.debuglog("stream"):function(){};var p,h,d,g=r(726),y=r(896),v=r(291).getHighWaterMark,E=r(48).F,b=E.ERR_INVALID_ARG_TYPE,_=E.ERR_STREAM_PUSH_AFTER_EOF,w=E.ERR_METHOD_NOT_IMPLEMENTED,S=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(k,a);var A=y.errorOrDestroy,I=["error","close","destroy","pause","resume"];function T(W,V,me){n=n||r(382),W=W||{},typeof me!="boolean"&&(me=V instanceof n),this.objectMode=!!W.objectMode,me&&(this.objectMode=this.objectMode||!!W.readableObjectMode),this.highWaterMark=v(this,W,"readableHighWaterMark",me),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=W.emitClose!==!1,this.autoDestroy=!!W.autoDestroy,this.destroyed=!1,this.defaultEncoding=W.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,W.encoding&&(p||(p=r(141).I),this.decoder=new p(W.encoding),this.encoding=W.encoding)}function k(W){if(n=n||r(382),!(this instanceof k))return new k(W);var V=this instanceof n;this._readableState=new T(W,this,V),this.readable=!0,W&&(typeof W.read=="function"&&(this._read=W.read),typeof W.destroy=="function"&&(this._destroy=W.destroy)),a.call(this)}function D(W,V,me,ve,Me){l("readableAddChunk",V);var Be,Te=W._readableState;if(V===null)Te.reading=!1,(function(Le,ge){if(l("onEofChunk"),!ge.ended){if(ge.decoder){var Se=ge.decoder.end();Se&&Se.length&&(ge.buffer.push(Se),ge.length+=ge.objectMode?1:Se.length)}ge.ended=!0,ge.sync?K(Le):(ge.needReadable=!1,ge.emittedReadable||(ge.emittedReadable=!0,ee(Le)))}})(W,Te);else if(Me||(Be=(function(Le,ge){var Se;return(function(L){return o.isBuffer(L)||L instanceof u})(ge)||typeof ge=="string"||ge===void 0||Le.objectMode||(Se=new b("chunk",["string","Buffer","Uint8Array"],ge)),Se})(Te,V)),Be)A(W,Be);else if(Te.objectMode||V&&V.length>0)if(typeof V=="string"||Te.objectMode||Object.getPrototypeOf(V)===o.prototype||(V=(function(Le){return o.from(Le)})(V)),ve)Te.endEmitted?A(W,new S):R(W,Te,V,!0);else if(Te.ended)A(W,new _);else{if(Te.destroyed)return!1;Te.reading=!1,Te.decoder&&!me?(V=Te.decoder.write(V),Te.objectMode||V.length!==0?R(W,Te,V,!1):G(W,Te)):R(W,Te,V,!1)}else ve||(Te.reading=!1,G(W,Te));return!Te.ended&&(Te.length<Te.highWaterMark||Te.length===0)}function R(W,V,me,ve){V.flowing&&V.length===0&&!V.sync?(V.awaitDrain=0,W.emit("data",me)):(V.length+=V.objectMode?1:me.length,ve?V.buffer.unshift(me):V.buffer.push(me),V.needReadable&&K(W)),G(W,V)}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(V){this._readableState&&(this._readableState.destroyed=V)}}),k.prototype.destroy=y.destroy,k.prototype._undestroy=y.undestroy,k.prototype._destroy=function(W,V){V(W)},k.prototype.push=function(W,V){var me,ve=this._readableState;return ve.objectMode?me=!0:typeof W=="string"&&((V=V||ve.defaultEncoding)!==ve.encoding&&(W=o.from(W,V),V=""),me=!0),D(this,W,V,!1,me)},k.prototype.unshift=function(W){return D(this,W,null,!0,!1)},k.prototype.isPaused=function(){return this._readableState.flowing===!1},k.prototype.setEncoding=function(W){p||(p=r(141).I);var V=new p(W);this._readableState.decoder=V,this._readableState.encoding=this._readableState.decoder.encoding;for(var me=this._readableState.buffer.head,ve="";me!==null;)ve+=V.write(me.data),me=me.next;return this._readableState.buffer.clear(),ve!==""&&this._readableState.buffer.push(ve),this._readableState.length=ve.length,this};var $=1073741824;function M(W,V){return W<=0||V.length===0&&V.ended?0:V.objectMode?1:W!=W?V.flowing&&V.length?V.buffer.head.data.length:V.length:(W>V.highWaterMark&&(V.highWaterMark=(function(ve){return ve>=$?ve=$:(ve--,ve|=ve>>>1,ve|=ve>>>2,ve|=ve>>>4,ve|=ve>>>8,ve|=ve>>>16,ve++),ve})(W)),W<=V.length?W:V.ended?V.length:(V.needReadable=!0,0))}function K(W){var V=W._readableState;l("emitReadable",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(l("emitReadable",V.flowing),V.emittedReadable=!0,i.nextTick(ee,W))}function ee(W){var V=W._readableState;l("emitReadable_",V.destroyed,V.length,V.ended),V.destroyed||!V.length&&!V.ended||(W.emit("readable"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,ie(W)}function G(W,V){V.readingMore||(V.readingMore=!0,i.nextTick(Z,W,V))}function Z(W,V){for(;!V.reading&&!V.ended&&(V.length<V.highWaterMark||V.flowing&&V.length===0);){var me=V.length;if(l("maybeReadMore read 0"),W.read(0),me===V.length)break}V.readingMore=!1}function X(W){var V=W._readableState;V.readableListening=W.listenerCount("readable")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:W.listenerCount("data")>0&&W.resume()}function te(W){l("readable nexttick read 0"),W.read(0)}function ce(W,V){l("resume",V.reading),V.reading||W.read(0),V.resumeScheduled=!1,W.emit("resume"),ie(W),V.flowing&&!V.reading&&W.read(0)}function ie(W){var V=W._readableState;for(l("flow",V.flowing);V.flowing&&W.read()!==null;);}function ue(W,V){return V.length===0?null:(V.objectMode?me=V.buffer.shift():!W||W>=V.length?(me=V.decoder?V.buffer.join(""):V.buffer.length===1?V.buffer.first():V.buffer.concat(V.length),V.buffer.clear()):me=V.buffer.consume(W,V.decoder),me);var me}function ye(W){var V=W._readableState;l("endReadable",V.endEmitted),V.endEmitted||(V.ended=!0,i.nextTick(he,V,W))}function he(W,V){if(l("endReadableNT",W.endEmitted,W.length),!W.endEmitted&&W.length===0&&(W.endEmitted=!0,V.readable=!1,V.emit("end"),W.autoDestroy)){var me=V._writableState;(!me||me.autoDestroy&&me.finished)&&V.destroy()}}function re(W,V){for(var me=0,ve=W.length;me<ve;me++)if(W[me]===V)return me;return-1}k.prototype.read=function(W){l("read",W),W=parseInt(W,10);var V=this._readableState,me=W;if(W!==0&&(V.emittedReadable=!1),W===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return l("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?ye(this):K(this),null;if((W=M(W,V))===0&&V.ended)return V.length===0&&ye(this),null;var ve,Me=V.needReadable;return l("need readable",Me),(V.length===0||V.length-W<V.highWaterMark)&&l("length less than watermark",Me=!0),V.ended||V.reading?l("reading or ended",Me=!1):Me&&(l("do read"),V.reading=!0,V.sync=!0,V.length===0&&(V.needReadable=!0),this._read(V.highWaterMark),V.sync=!1,V.reading||(W=M(me,V))),(ve=W>0?ue(W,V):null)===null?(V.needReadable=V.length<=V.highWaterMark,W=0):(V.length-=W,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),me!==W&&V.ended&&ye(this)),ve!==null&&this.emit("data",ve),ve},k.prototype._read=function(W){A(this,new w("_read()"))},k.prototype.pipe=function(W,V){var me=this,ve=this._readableState;switch(ve.pipesCount){case 0:ve.pipes=W;break;case 1:ve.pipes=[ve.pipes,W];break;default:ve.pipes.push(W)}ve.pipesCount+=1,l("pipe count=%d opts=%j",ve.pipesCount,V);var Me=(!V||V.end!==!1)&&W!==i.stdout&&W!==i.stderr?Te:C;function Be(j,U){l("onunpipe"),j===me&&U&&U.hasUnpiped===!1&&(U.hasUnpiped=!0,(function(){l("cleanup"),W.removeListener("close",we),W.removeListener("finish",L),W.removeListener("drain",Pe),W.removeListener("error",Se),W.removeListener("unpipe",Be),me.removeListener("end",Te),me.removeListener("end",C),me.removeListener("data",ge),Le=!0,!ve.awaitDrain||W._writableState&&!W._writableState.needDrain||Pe()})())}function Te(){l("onend"),W.end()}ve.endEmitted?i.nextTick(Me):me.once("end",Me),W.on("unpipe",Be);var Pe=(function(U){return function(){var ne=U._readableState;l("pipeOnDrain",ne.awaitDrain),ne.awaitDrain&&ne.awaitDrain--,ne.awaitDrain===0&&s(U,"data")&&(ne.flowing=!0,ie(U))}})(me);W.on("drain",Pe);var Le=!1;function ge(j){l("ondata");var U=W.write(j);l("dest.write",U),U===!1&&((ve.pipesCount===1&&ve.pipes===W||ve.pipesCount>1&&re(ve.pipes,W)!==-1)&&!Le&&(l("false write response, pause",ve.awaitDrain),ve.awaitDrain++),me.pause())}function Se(j){l("onerror",j),C(),W.removeListener("error",Se),s(W,"error")===0&&A(W,j)}function we(){W.removeListener("finish",L),C()}function L(){l("onfinish"),W.removeListener("close",we),C()}function C(){l("unpipe"),me.unpipe(W)}return me.on("data",ge),(function(U,Y,ne){if(typeof U.prependListener=="function")return U.prependListener(Y,ne);U._events&&U._events[Y]?Array.isArray(U._events[Y])?U._events[Y].unshift(ne):U._events[Y]=[ne,U._events[Y]]:U.on(Y,ne)})(W,"error",Se),W.once("close",we),W.once("finish",L),W.emit("pipe",me),ve.flowing||(l("pipe resume"),me.resume()),W},k.prototype.unpipe=function(W){var V=this._readableState,me={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return W&&W!==V.pipes||(W||(W=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,W&&W.emit("unpipe",this,me)),this;if(!W){var ve=V.pipes,Me=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var Be=0;Be<Me;Be++)ve[Be].emit("unpipe",this,{hasUnpiped:!1});return this}var Te=re(V.pipes,W);return Te===-1||(V.pipes.splice(Te,1),V.pipesCount-=1,V.pipesCount===1&&(V.pipes=V.pipes[0]),W.emit("unpipe",this,me)),this},k.prototype.on=function(W,V){var me=a.prototype.on.call(this,W,V),ve=this._readableState;return W==="data"?(ve.readableListening=this.listenerCount("readable")>0,ve.flowing!==!1&&this.resume()):W==="readable"&&(ve.endEmitted||ve.readableListening||(ve.readableListening=ve.needReadable=!0,ve.flowing=!1,ve.emittedReadable=!1,l("on readable",ve.length,ve.reading),ve.length?K(this):ve.reading||i.nextTick(te,this))),me},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(W,V){var me=a.prototype.removeListener.call(this,W,V);return W==="readable"&&i.nextTick(X,this),me},k.prototype.removeAllListeners=function(W){var V=a.prototype.removeAllListeners.apply(this,arguments);return W!=="readable"&&W!==void 0||i.nextTick(X,this),V},k.prototype.resume=function(){var W=this._readableState;return W.flowing||(l("resume"),W.flowing=!W.readableListening,(function(me,ve){ve.resumeScheduled||(ve.resumeScheduled=!0,i.nextTick(ce,me,ve))})(this,W)),W.paused=!1,this},k.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},k.prototype.wrap=function(W){var V=this,me=this._readableState,ve=!1;for(var Me in W.on("end",(function(){if(l("wrapped end"),me.decoder&&!me.ended){var Te=me.decoder.end();Te&&Te.length&&V.push(Te)}V.push(null)})),W.on("data",(function(Te){l("wrapped data"),me.decoder&&(Te=me.decoder.write(Te)),me.objectMode&&Te==null||(me.objectMode||Te&&Te.length)&&(V.push(Te)||(ve=!0,W.pause()))})),W)this[Me]===void 0&&typeof W[Me]=="function"&&(this[Me]=(function(Pe){return function(){return W[Pe].apply(W,arguments)}})(Me));for(var Be=0;Be<I.length;Be++)W.on(I[Be],this.emit.bind(this,I[Be]));return this._read=function(Te){l("wrapped _read",Te),ve&&(ve=!1,W.resume())},this},typeof Symbol=="function"&&(k.prototype[Symbol.asyncIterator]=function(){return h===void 0&&(h=r(955)),h(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(V){this._readableState&&(this._readableState.flowing=V)}}),k._fromList=ue,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(k.from=function(W,V){return d===void 0&&(d=r(157)),d(k,W,V)})},496:function(t){t.exports=R5},499:function(t){var e={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};t.exports=function(n){return n&&n.replace?n.replace(/([&"<>'])/g,(function(i,s){return e[s]})):n}},600:function(t,e,r){t.exports=i;var n=r(610);function i(s){if(!(this instanceof i))return new i(s);n.call(this,s)}r(698)(i,n),i.prototype._transform=function(s,a,o){o(null,s)}},606:function(t){var e,r,n=t.exports={};function i(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(y){if(e===setTimeout)return setTimeout(y,0);if((e===i||!e)&&setTimeout)return e=setTimeout,setTimeout(y,0);try{return e(y,0)}catch{try{return e.call(null,y,0)}catch{return e.call(this,y,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:i}catch{e=i}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var o,u=[],l=!1,c=-1;function p(){l&&o&&(l=!1,o.length?u=o.concat(u):c=-1,u.length&&h())}function h(){if(!l){var y=a(p);l=!0;for(var v=u.length;v;){for(o=u,u=[];++c<v;)o&&o[c].run();c=-1,v=u.length}o=null,l=!1,(function(b){if(r===clearTimeout)return clearTimeout(b);if((r===s||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(b);try{return r(b)}catch{try{return r.call(null,b)}catch{return r.call(this,b)}}})(y)}}function d(y,v){this.fun=y,this.array=v}function g(){}n.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var E=1;E<arguments.length;E++)v[E-1]=arguments[E];u.push(new d(y,v)),u.length!==1||l||a(h)},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(y){return[]},n.binding=function(y){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(y){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},610:function(t,e,r){t.exports=c;var n=r(48).F,i=n.ERR_METHOD_NOT_IMPLEMENTED,s=n.ERR_MULTIPLE_CALLBACK,a=n.ERR_TRANSFORM_ALREADY_TRANSFORMING,o=n.ERR_TRANSFORM_WITH_LENGTH_0,u=r(382);function l(d,g){var y=this._transformState;y.transforming=!1;var v=y.writecb;if(v===null)return this.emit("error",new s);y.writechunk=null,y.writecb=null,g!=null&&this.push(g),v(d);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function c(d){if(!(this instanceof c))return new c(d);u.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",p)}function p(){var d=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush((function(g,y){h(d,g,y)}))}function h(d,g,y){if(g)return d.emit("error",g);if(y!=null&&d.push(y),d._writableState.length)throw new o;if(d._transformState.transforming)throw new a;return d.push(null)}r(698)(c,u),c.prototype.push=function(d,g){return this._transformState.needTransform=!1,u.prototype.push.call(this,d,g)},c.prototype._transform=function(d,g,y){y(new i("_transform()"))},c.prototype._write=function(d,g,y){var v=this._transformState;if(v.writecb=y,v.writechunk=d,v.writeencoding=g,!v.transforming){var E=this._readableState;(v.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},c.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))},c.prototype._destroy=function(d,g){u.prototype._destroy.call(this,d,(function(y){g(y)}))}},643:function(t,e,r){function n(i){try{if(!r.g.localStorage)return!1}catch{return!1}var s=r.g.localStorage[i];return s!=null&&String(s).toLowerCase()==="true"}t.exports=function(s,a){if(n("noDeprecation"))return s;var o=!1;return function(){if(!o){if(n("throwDeprecation"))throw new Error(a);n("traceDeprecation")?console.trace(a):console.warn(a),o=!0}return s.apply(this,arguments)}}},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 i=function(){};i.prototype=n.prototype,r.prototype=new i,r.prototype.constructor=r}}},708:function(t,e,r){var n,i=r(606);function s(G){var Z=this;this.next=null,this.entry=null,this.finish=function(){(function(te,ce,ie){var ue=te.entry;for(te.entry=null;ue;){var ye=ue.callback;ce.pendingcb--,ye(ie),ue=ue.next}ce.corkedRequestsFree.next=te})(Z,G)}}t.exports=k,k.WritableState=T;var a={deprecate:r(643)},o=r(345),u=r(287).Buffer,l=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},c,p=r(896),h=r(291).getHighWaterMark,d=r(48).F,g=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,E=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,_=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,S=d.ERR_UNKNOWN_ENCODING,A=p.errorOrDestroy;function I(){}function T(G,Z,X){n=n||r(382),G=G||{},typeof X!="boolean"&&(X=Z instanceof n),this.objectMode=!!G.objectMode,X&&(this.objectMode=this.objectMode||!!G.writableObjectMode),this.highWaterMark=h(this,G,"writableHighWaterMark",X),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var te=G.decodeStrings===!1;this.decodeStrings=!te,this.defaultEncoding=G.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(ce){(function(ue,ye){var he=ue._writableState,re=he.sync,W=he.writecb;if(typeof W!="function")throw new v;if((function(ve){ve.writing=!1,ve.writecb=null,ve.length-=ve.writelen,ve.writelen=0})(he),ye)(function(ve,Me,Be,Te,Pe){--Me.pendingcb,Be?(i.nextTick(Pe,Te),i.nextTick(ee,ve,Me),ve._writableState.errorEmitted=!0,A(ve,Te)):(Pe(Te),ve._writableState.errorEmitted=!0,A(ve,Te),ee(ve,Me))})(ue,he,re,ye,W);else{var V=M(he)||ue.destroyed;V||he.corked||he.bufferProcessing||!he.bufferedRequest||$(ue,he),re?i.nextTick(R,ue,he,V,W):R(ue,he,V,W)}})(Z,ce)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=G.emitClose!==!1,this.autoDestroy=!!G.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function k(G){var Z=this instanceof(n=n||r(382));if(!Z&&!c.call(k,this))return new k(G);this._writableState=new T(G,this,Z),this.writable=!0,G&&(typeof G.write=="function"&&(this._write=G.write),typeof G.writev=="function"&&(this._writev=G.writev),typeof G.destroy=="function"&&(this._destroy=G.destroy),typeof G.final=="function"&&(this._final=G.final)),o.call(this)}function D(G,Z,X,te,ce,ie,ue){Z.writelen=te,Z.writecb=ue,Z.writing=!0,Z.sync=!0,Z.destroyed?Z.onwrite(new b("write")):X?G._writev(ce,Z.onwrite):G._write(ce,ie,Z.onwrite),Z.sync=!1}function R(G,Z,X,te){X||(function(ie,ue){ue.length===0&&ue.needDrain&&(ue.needDrain=!1,ie.emit("drain"))})(G,Z),Z.pendingcb--,te(),ee(G,Z)}function $(G,Z){Z.bufferProcessing=!0;var X=Z.bufferedRequest;if(G._writev&&X&&X.next){var te=Z.bufferedRequestCount,ce=new Array(te),ie=Z.corkedRequestsFree;ie.entry=X;for(var ue=0,ye=!0;X;)ce[ue]=X,X.isBuf||(ye=!1),X=X.next,ue+=1;ce.allBuffers=ye,D(G,Z,!0,Z.length,ce,"",ie.finish),Z.pendingcb++,Z.lastBufferedRequest=null,ie.next?(Z.corkedRequestsFree=ie.next,ie.next=null):Z.corkedRequestsFree=new s(Z),Z.bufferedRequestCount=0}else{for(;X;){var he=X.chunk,re=X.encoding,W=X.callback;if(D(G,Z,!1,Z.objectMode?1:he.length,he,re,W),X=X.next,Z.bufferedRequestCount--,Z.writing)break}X===null&&(Z.lastBufferedRequest=null)}Z.bufferedRequest=X,Z.bufferProcessing=!1}function M(G){return G.ending&&G.length===0&&G.bufferedRequest===null&&!G.finished&&!G.writing}function K(G,Z){G._final((function(X){Z.pendingcb--,X&&A(G,X),Z.prefinished=!0,G.emit("prefinish"),ee(G,Z)}))}function ee(G,Z){var X=M(Z);if(X&&((function(ie,ue){ue.prefinished||ue.finalCalled||(typeof ie._final!="function"||ue.destroyed?(ue.prefinished=!0,ie.emit("prefinish")):(ue.pendingcb++,ue.finalCalled=!0,i.nextTick(K,ie,ue)))})(G,Z),Z.pendingcb===0&&(Z.finished=!0,G.emit("finish"),Z.autoDestroy))){var te=G._readableState;(!te||te.autoDestroy&&te.endEmitted)&&G.destroy()}return X}r(698)(k,o),T.prototype.getBuffer=function(){for(var Z=this.bufferedRequest,X=[];Z;)X.push(Z),Z=Z.next;return X},(function(){try{Object.defineProperty(T.prototype,"buffer",{get:a.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"?(c=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(Z){return!!c.call(this,Z)||this===k&&Z&&Z._writableState instanceof T}})):c=function(Z){return Z instanceof this},k.prototype.pipe=function(){A(this,new E)},k.prototype.write=function(G,Z,X){var te=this._writableState,ce=!1,ie=!te.objectMode&&(function(ye){return u.isBuffer(ye)||ye instanceof l})(G);return ie&&!u.isBuffer(G)&&(G=(function(ye){return u.from(ye)})(G)),typeof Z=="function"&&(X=Z,Z=null),ie?Z="buffer":Z||(Z=te.defaultEncoding),typeof X!="function"&&(X=I),te.ending?(function(ye,he){var re=new w;A(ye,re),i.nextTick(he,re)})(this,X):(ie||(function(ye,he,re,W){var V;return re===null?V=new _:typeof re=="string"||he.objectMode||(V=new g("chunk",["string","Buffer"],re)),!V||(A(ye,V),i.nextTick(W,V),!1)})(this,te,G,X))&&(te.pendingcb++,ce=(function(ye,he,re,W,V,me){if(!re){var ve=(function(Le,ge,Se){return Le.objectMode||Le.decodeStrings===!1||typeof ge!="string"||(ge=u.from(ge,Se)),ge})(he,W,V);W!==ve&&(re=!0,V="buffer",W=ve)}var Me=he.objectMode?1:W.length;he.length+=Me;var Be=he.length<he.highWaterMark;if(Be||(he.needDrain=!0),he.writing||he.corked){var Te=he.lastBufferedRequest;he.lastBufferedRequest={chunk:W,encoding:V,isBuf:re,callback:me,next:null},Te?Te.next=he.lastBufferedRequest:he.bufferedRequest=he.lastBufferedRequest,he.bufferedRequestCount+=1}else D(ye,he,!1,Me,W,V,me);return Be})(this,te,ie,G,Z,X)),ce},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var G=this._writableState;G.corked&&(G.corked--,G.writing||G.corked||G.bufferProcessing||!G.bufferedRequest||$(this,G))},k.prototype.setDefaultEncoding=function(Z){if(typeof Z=="string"&&(Z=Z.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Z+"").toLowerCase())>-1))throw new S(Z);return this._writableState.defaultEncoding=Z,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(G,Z,X){X(new y("_write()"))},k.prototype._writev=null,k.prototype.end=function(G,Z,X){var te=this._writableState;return typeof G=="function"?(X=G,G=null,Z=null):typeof Z=="function"&&(X=Z,Z=null),G!=null&&this.write(G,Z),te.corked&&(te.corked=1,this.uncork()),te.ending||(function(ie,ue,ye){ue.ending=!0,ee(ie,ue),ye&&(ue.finished?i.nextTick(ye):ie.once("finish",ye)),ue.ended=!0,ie.writable=!1})(this,te,X),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(Z){this._writableState&&(this._writableState.destroyed=Z)}}),k.prototype.destroy=p.destroy,k.prototype._undestroy=p.undestroy,k.prototype._destroy=function(G,Z){Z(G)}},710:function(t,e,r){var n=r(698),i=r(107),s=r(392),a=r(861).Buffer,o=new Array(64);function u(){this.init(),this._w=o,s.call(this,64,56)}n(u,i),u.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},u.prototype._hash=function(){var l=a.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=u},726:function(t,e,r){function n(h,d){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);d&&(y=y.filter((function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable}))),g.push.apply(g,y)}return g}function i(h){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?n(Object(g),!0).forEach((function(y){s(h,y,g[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):n(Object(g)).forEach((function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(g,y))}))}return h}function s(h,d,g){return(d=o(d))in h?Object.defineProperty(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h}function a(h,d){for(var g=0;g<d.length;g++){var y=d[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,o(y.key),y)}}function o(h){var d=(function(y,v){if(typeof y!="object"||y===null)return y;var E=y[Symbol.toPrimitive];if(E!==void 0){var b=E.call(y,v);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)})(h,"string");return typeof d=="symbol"?d:String(d)}var u=r(287).Buffer,l=r(340).inspect,c=l&&l.custom||"inspect";function p(h,d,g){u.prototype.copy.call(h,d,g)}t.exports=(function(){function h(){(function(g,y){if(!(g instanceof y))throw new TypeError("Cannot call a class as a function")})(this,h),this.head=null,this.tail=null,this.length=0}return(function(g,y,v){return y&&a(g.prototype,y),Object.defineProperty(g,"prototype",{writable:!1}),g})(h,[{key:"push",value:function(g){var y={data:g,next:null};this.length>0?this.tail.next=y:this.head=y,this.tail=y,++this.length}},{key:"unshift",value:function(g){var y={data:g,next:this.head};this.length===0&&(this.tail=y),this.head=y,++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 y=this.head,v=""+y.data;y=y.next;)v+=g+y.data;return v}},{key:"concat",value:function(g){if(this.length===0)return u.alloc(0);for(var y=u.allocUnsafe(g>>>0),v=this.head,E=0;v;)p(v.data,y,E),E+=v.data.length,v=v.next;return y}},{key:"consume",value:function(g,y){var v;return g<this.head.data.length?(v=this.head.data.slice(0,g),this.head.data=this.head.data.slice(g)):v=g===this.head.data.length?this.shift():y?this._getString(g):this._getBuffer(g),v}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(g){var y=this.head,v=1,E=y.data;for(g-=E.length;y=y.next;){var b=y.data,_=g>b.length?b.length:g;if(_===b.length?E+=b:E+=b.slice(0,g),(g-=_)===0){_===b.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=b.slice(_));break}++v}return this.length-=v,E}},{key:"_getBuffer",value:function(g){var y=u.allocUnsafe(g),v=this.head,E=1;for(v.data.copy(y),g-=v.data.length;v=v.next;){var b=v.data,_=g>b.length?b.length:g;if(b.copy(y,y.length-g,0,_),(g-=_)===0){_===b.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(_));break}++E}return this.length-=E,y}},{key:c,value:function(g,y){return l(this,i(i({},y),{},{depth:0,customInspect:!1}))}}]),h})()},737:function(t,e,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function l(h){return h<<5|h>>>27}function c(h){return h<<30|h>>>2}function p(h,d,g,y){return h===0?d&g|~d&y:h===2?d&g|d&y|g&y:d^g^y}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(h){for(var d,g=this._w,y=0|this._a,v=0|this._b,E=0|this._c,b=0|this._d,_=0|this._e,w=0;w<16;++w)g[w]=h.readInt32BE(4*w);for(;w<80;++w)g[w]=(d=g[w-3]^g[w-8]^g[w-14]^g[w-16])<<1|d>>>31;for(var S=0;S<80;++S){var A=~~(S/20),I=l(y)+p(A,v,E,b)+_+g[S]+a[A]|0;_=b,b=E,E=c(v),v=y,y=I}this._a=y+this._a|0,this._b=v+this._b|0,this._c=E+this._c|0,this._d=b+this._d|0,this._e=_+this._e|0},u.prototype._hash=function(){var h=s.allocUnsafe(20);return h.writeInt32BE(0|this._a,0),h.writeInt32BE(0|this._b,4),h.writeInt32BE(0|this._c,8),h.writeInt32BE(0|this._d,12),h.writeInt32BE(0|this._e,16),h},t.exports=u},758:function(t,e,r){var n,i=r(48).F,s=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function o(c){if(c)throw c}function u(c){c()}function l(c,p){return c.pipe(p)}t.exports=function(){for(var p=arguments.length,h=new Array(p),d=0;d<p;d++)h[d]=arguments[d];var g,y=(function(b){return b.length?typeof b[b.length-1]!="function"?o:b.pop():o})(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new s("streams");var v=h.map((function(E,b){var _=b<h.length-1;return(function(S,A,I,T){T=(function($){var M=!1;return function(){M||(M=!0,$.apply(void 0,arguments))}})(T);var k=!1;S.on("close",(function(){k=!0})),n===void 0&&(n=r(238)),n(S,{readable:A,writable:I},(function(R){if(R)return T(R);k=!0,T()}));var D=!1;return function(R){if(!k&&!D)return D=!0,(function(M){return M.setHeader&&typeof M.abort=="function"})(S)?S.abort():typeof S.destroy=="function"?S.destroy():void T(R||new a("pipe"))}})(E,_,b>0,(function(w){g||(g=w),w&&v.forEach(u),_||(v.forEach(u),y(g))}))}));return h.reduce(l)}},802:function(t,e,r){t.exports=function(i){var s=i.toLowerCase(),a=t.exports[s];if(!a)throw new Error(s+" is not supported (we accept pull requests)");return new a},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),i=r(392),s=r(861).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],o=new Array(80);function u(){this.init(),this._w=o,i.call(this,64,56)}function l(p){return p<<30|p>>>2}function c(p,h,d,g){return p===0?h&d|~h&g:p===2?h&d|h&g|d&g:h^d^g}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(p){for(var h,d=this._w,g=0|this._a,y=0|this._b,v=0|this._c,E=0|this._d,b=0|this._e,_=0;_<16;++_)d[_]=p.readInt32BE(4*_);for(;_<80;++_)d[_]=d[_-3]^d[_-8]^d[_-14]^d[_-16];for(var w=0;w<80;++w){var S=~~(w/20),A=0|((h=g)<<5|h>>>27)+c(S,y,v,E)+b+d[w]+a[S];b=E,E=v,v=l(y),y=g,g=A}this._a=g+this._a|0,this._b=y+this._b|0,this._c=v+this._c|0,this._d=E+this._d|0,this._e=b+this._e|0},u.prototype._hash=function(){var p=s.allocUnsafe(20);return p.writeInt32BE(0|this._a,0),p.writeInt32BE(0|this._b,4),p.writeInt32BE(0|this._c,8),p.writeInt32BE(0|this._d,12),p.writeInt32BE(0|this._e,16),p},t.exports=u},827:function(t,e,r){var n=r(698),i=r(890),s=r(392),a=r(861).Buffer,o=new Array(160);function u(){this.init(),this._w=o,s.call(this,128,112)}n(u,i),u.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},u.prototype._hash=function(){var l=a.allocUnsafe(48);function c(p,h,d){l.writeInt32BE(p,d),l.writeInt32BE(h,d+4)}return c(this._ah,this._al,0),c(this._bh,this._bl,8),c(this._ch,this._cl,16),c(this._dh,this._dl,24),c(this._eh,this._el,32),c(this._fh,this._fl,40),l},t.exports=u},838:function(){},861:function(t,e,r){var n=r(287),i=n.Buffer;function s(o,u){for(var l in o)u[l]=o[l]}function a(o,u,l){return i(o,u,l)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=n:(s(n,e),e.Buffer=a),a.prototype=Object.create(i.prototype),s(i,a),a.from=function(o,u,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,u,l)},a.alloc=function(o,u,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=i(o);return u!==void 0?typeof l=="string"?c.fill(u,l):c.fill(u):c.fill(0),c},a.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return i(o)},a.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return n.SlowBuffer(o)}},890:function(t,e,r){var n=r(698),i=r(392),s=r(861).Buffer,a=[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],o=new Array(160);function u(){this.init(),this._w=o,i.call(this,128,112)}function l(b,_,w){return w^b&(_^w)}function c(b,_,w){return b&_|w&(b|_)}function p(b,_){return(b>>>28|_<<4)^(_>>>2|b<<30)^(_>>>7|b<<25)}function h(b,_){return(b>>>14|_<<18)^(b>>>18|_<<14)^(_>>>9|b<<23)}function d(b,_){return(b>>>1|_<<31)^(b>>>8|_<<24)^b>>>7}function g(b,_){return(b>>>1|_<<31)^(b>>>8|_<<24)^(b>>>7|_<<25)}function y(b,_){return(b>>>19|_<<13)^(_>>>29|b<<3)^b>>>6}function v(b,_){return(b>>>19|_<<13)^(_>>>29|b<<3)^(b>>>6|_<<26)}function E(b,_){return b>>>0<_>>>0?1:0}n(u,i),u.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},u.prototype._update=function(b){for(var _=this._w,w=0|this._ah,S=0|this._bh,A=0|this._ch,I=0|this._dh,T=0|this._eh,k=0|this._fh,D=0|this._gh,R=0|this._hh,$=0|this._al,M=0|this._bl,K=0|this._cl,ee=0|this._dl,G=0|this._el,Z=0|this._fl,X=0|this._gl,te=0|this._hl,ce=0;ce<32;ce+=2)_[ce]=b.readInt32BE(4*ce),_[ce+1]=b.readInt32BE(4*ce+4);for(;ce<160;ce+=2){var ie=_[ce-30],ue=_[ce-30+1],ye=d(ie,ue),he=g(ue,ie),re=y(ie=_[ce-4],ue=_[ce-4+1]),W=v(ue,ie),V=_[ce-14],me=_[ce-14+1],ve=_[ce-32],Me=_[ce-32+1],Be=he+me|0,Te=ye+V+E(Be,he)|0;Te=(Te=Te+re+E(Be=Be+W|0,W)|0)+ve+E(Be=Be+Me|0,Me)|0,_[ce]=Te,_[ce+1]=Be}for(var Pe=0;Pe<160;Pe+=2){Te=_[Pe],Be=_[Pe+1];var Le=c(w,S,A),ge=c($,M,K),Se=p(w,$),we=p($,w),L=h(T,G),C=h(G,T),j=a[Pe],U=a[Pe+1],Y=l(T,k,D),ne=l(G,Z,X),fe=te+C|0,Ne=R+L+E(fe,te)|0;Ne=(Ne=(Ne=Ne+Y+E(fe=fe+ne|0,ne)|0)+j+E(fe=fe+U|0,U)|0)+Te+E(fe=fe+Be|0,Be)|0;var Ge=we+ge|0,q=Se+Le+E(Ge,we)|0;R=D,te=X,D=k,X=Z,k=T,Z=G,T=I+Ne+E(G=ee+fe|0,ee)|0,I=A,ee=K,A=S,K=M,S=w,M=$,w=Ne+q+E($=fe+Ge|0,fe)|0}this._al=this._al+$|0,this._bl=this._bl+M|0,this._cl=this._cl+K|0,this._dl=this._dl+ee|0,this._el=this._el+G|0,this._fl=this._fl+Z|0,this._gl=this._gl+X|0,this._hl=this._hl+te|0,this._ah=this._ah+w+E(this._al,$)|0,this._bh=this._bh+S+E(this._bl,M)|0,this._ch=this._ch+A+E(this._cl,K)|0,this._dh=this._dh+I+E(this._dl,ee)|0,this._eh=this._eh+T+E(this._el,G)|0,this._fh=this._fh+k+E(this._fl,Z)|0,this._gh=this._gh+D+E(this._gl,X)|0,this._hh=this._hh+R+E(this._hl,te)|0},u.prototype._hash=function(){var b=s.allocUnsafe(64);function _(w,S,A){b.writeInt32BE(w,A),b.writeInt32BE(S,A+4)}return _(this._ah,this._al,0),_(this._bh,this._bl,8),_(this._ch,this._cl,16),_(this._dh,this._dl,24),_(this._eh,this._el,32),_(this._fh,this._fl,40),_(this._gh,this._gl,48),_(this._hh,this._hl,56),b},t.exports=u},896:function(t,e,r){var n=r(606);function i(o,u){a(o,u),s(o)}function s(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function a(o,u){o.emit("error",u)}t.exports={destroy:function(u,l){var c=this,p=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return p||h?(l?l(u):u&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,n.nextTick(a,this,u)):n.nextTick(a,this,u)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(u||null,(function(d){!l&&d?c._writableState?c._writableState.errorEmitted?n.nextTick(s,c):(c._writableState.errorEmitted=!0,n.nextTick(i,c,d)):n.nextTick(i,c,d):l?(n.nextTick(s,c),l(d)):n.nextTick(s,c)})),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(u,l){var c=u._readableState,p=u._writableState;c&&c.autoDestroy||p&&p.autoDestroy?u.destroy(l):u.emit("error",l)}}},919:function(t,e,r){var n=r(287).Buffer;function i(l){return l instanceof n||l instanceof Date||l instanceof RegExp}function s(l){if(l instanceof n){var c=n.alloc?n.alloc(l.length):new n(l.length);return l.copy(c),c}if(l instanceof Date)return new Date(l.getTime());if(l instanceof RegExp)return new RegExp(l);throw new Error("Unexpected situation")}function a(l){var c=[];return l.forEach((function(p,h){typeof p=="object"&&p!==null?Array.isArray(p)?c[h]=a(p):i(p)?c[h]=s(p):c[h]=u({},p):c[h]=p})),c}function o(l,c){return c==="__proto__"?void 0:l[c]}var u=t.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var l,c,p=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(h){typeof h!="object"||h===null||Array.isArray(h)||Object.keys(h).forEach((function(d){return c=o(p,d),(l=o(h,d))===p?void 0:typeof l!="object"||l===null?void(p[d]=l):Array.isArray(l)?void(p[d]=a(l)):i(l)?void(p[d]=s(l)):typeof c!="object"||c===null||Array.isArray(c)?void(p[d]=u({},l)):void(p[d]=u(c,l))}))})),p}},955:function(t,e,r){var n,i=r(606);function s(_,w,S){return(w=(function(I){var T=(function(D,R){if(typeof D!="object"||D===null)return D;var $=D[Symbol.toPrimitive];if($!==void 0){var M=$.call(D,R);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(R==="string"?String:Number)(D)})(I,"string");return typeof T=="symbol"?T:String(T)})(w))in _?Object.defineProperty(_,w,{value:S,enumerable:!0,configurable:!0,writable:!0}):_[w]=S,_}var a=r(238),o=Symbol("lastResolve"),u=Symbol("lastReject"),l=Symbol("error"),c=Symbol("ended"),p=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function g(_,w){return{value:_,done:w}}function y(_){var w=_[o];if(w!==null){var S=_[d].read();S!==null&&(_[p]=null,_[o]=null,_[u]=null,w(g(S,!1)))}}function v(_){i.nextTick(y,_)}var E=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((s(n={get stream(){return this[d]},next:function(){var w=this,S=this[l];if(S!==null)return Promise.reject(S);if(this[c])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise((function(k,D){i.nextTick((function(){w[l]?D(w[l]):k(g(void 0,!0))}))}));var A,I=this[p];if(I)A=new Promise((function(D,R){return function($,M){D.then((function(){R[c]?$(g(void 0,!0)):R[h]($,M)}),M)}})(I,this));else{var T=this[d].read();if(T!==null)return Promise.resolve(g(T,!1));A=new Promise(this[h])}return this[p]=A,A}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var w=this;return new Promise((function(S,A){w[d].destroy(null,(function(I){I?A(I):S(g(void 0,!0))}))}))})),n),E);t.exports=function(w){var S,A=Object.create(b,(s(S={},d,{value:w,writable:!0}),s(S,o,{value:null,writable:!0}),s(S,u,{value:null,writable:!0}),s(S,l,{value:null,writable:!0}),s(S,c,{value:w._readableState.endEmitted,writable:!0}),s(S,h,{value:function(T,k){var D=A[d].read();D?(A[p]=null,A[o]=null,A[u]=null,T(g(D,!1))):(A[o]=T,A[u]=k)},writable:!0}),S));return A[p]=null,a(w,(function(I){if(I&&I.code!=="ERR_STREAM_PREMATURE_CLOSE"){var T=A[u];return T!==null&&(A[p]=null,A[o]=null,A[u]=null,T(I)),void(A[l]=I)}var k=A[o];k!==null&&(A[p]=null,A[o]=null,A[u]=null,k(g(void 0,!0))),A[c]=!0})),w.on("readable",v.bind(null,A)),A}},987:function(t){t.exports=T5}},d3={};function be(t){var e=d3[t];if(e!==void 0)return e.exports;var r=d3[t]={exports:{}};return Ppe[t](r,r.exports,be),r.exports}be.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return be.d(e,{a:e}),e},be.d=function(t,e){for(var r in e)be.o(e,r)&&!be.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},be.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),be.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},be.r=function(t){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var i8={};be.d(i8,{A:function(){return xSe}});var $1={};be.r($1),be.d($1,{CLEAR:function(){return fA},CLEAR_BY:function(){return pA},NEW_AUTH_ERR:function(){return cA},NEW_SPEC_ERR:function(){return uA},NEW_SPEC_ERR_BATCH:function(){return lA},NEW_THROWN_ERR:function(){return jp},NEW_THROWN_ERR_BATCH:function(){return oA},clear:function(){return $pe},clearBy:function(){return Lpe},newAuthErr:function(){return Bpe},newSpecErr:function(){return Fpe},newSpecErrBatch:function(){return qpe},newThrownErr:function(){return Mpe},newThrownErrBatch:function(){return Dpe}});var L1={};be.r(L1),be.d(L1,{AUTHORIZE:function(){return mA},AUTHORIZE_OAUTH2:function(){return yA},CONFIGURE_AUTH:function(){return vA},LOGOUT:function(){return gA},RESTORE_AUTHORIZATION:function(){return bA},SHOW_AUTH_POPUP:function(){return hA},authPopup:function(){return hde},authorize:function(){return Qpe},authorizeAccessCodeWithBasicAuthentication:function(){return lde},authorizeAccessCodeWithFormParams:function(){return ude},authorizeApplication:function(){return ode},authorizeOauth2:function(){return ide},authorizeOauth2WithPersistOption:function(){return sde},authorizePassword:function(){return ade},authorizeRequest:function(){return cde},authorizeWithPersistOption:function(){return ede},configureAuth:function(){return fde},logout:function(){return tde},logoutWithPersistOption:function(){return rde},persistAuthorizationIfNeeded:function(){return dde},preAuthorizeImplicit:function(){return nde},restoreAuthorization:function(){return pde},showDefinitions:function(){return Zpe}});var U1={};be.r(U1),be.d(U1,{authorized:function(){return Sde},definitionsForRequirements:function(){return Ede},definitionsToAuthorize:function(){return yde},getConfigs:function(){return wde},getDefinitionsByNames:function(){return bde},isAuthorized:function(){return _de},selectAuthPath:function(){return vde},shownDefinitions:function(){return gde}});var V1={};be.r(V1),be.d(V1,{TOGGLE_CONFIGS:function(){return _A},UPDATE_CONFIGS:function(){return SA},downloadConfig:function(){return Mde},getConfigByUrl:function(){return Dde},loaded:function(){return Nde},toggle:function(){return jde},update:function(){return kde}});var z1={};be.r(z1),be.d(z1,{get:function(){return Fde}});var W1={};be.r(W1),be.d(W1,{transform:function(){return zde}});var J1={};be.r(J1),be.d(J1,{transform:function(){return Wde}});var H1={};be.r(H1),be.d(H1,{allErrors:function(){return g8},lastError:function(){return Hde}});var K1={};be.r(K1),be.d(K1,{SHOW:function(){return OA},UPDATE_FILTER:function(){return xA},UPDATE_LAYOUT:function(){return wA},UPDATE_MODE:function(){return AA},changeMode:function(){return she},show:function(){return ihe},updateFilter:function(){return nhe},updateLayout:function(){return rhe}});var G1={};be.r(G1),be.d(G1,{current:function(){return ohe},currentFilter:function(){return uhe},isShown:function(){return E8},showSummary:function(){return che},whatMode:function(){return lhe}});var Y1={};be.r(Y1),be.d(Y1,{taggedOperations:function(){return fhe}});var X1={};be.r(X1),be.d(X1,{getActiveLanguage:function(){return vhe},getDefaultExpanded:function(){return bhe},getGenerators:function(){return A8},getSnippetGenerators:function(){return yhe}});var Z1={};be.r(Z1),be.d(Z1,{JsonSchemaArrayItemFile:function(){return T8},JsonSchemaArrayItemText:function(){return I8},JsonSchemaForm:function(){return Dhe},JsonSchema_array:function(){return qhe},JsonSchema_boolean:function(){return Bhe},JsonSchema_object:function(){return Lhe},JsonSchema_string:function(){return Fhe}});var Q1={};be.r(Q1),be.d(Q1,{allowTryItOutFor:function(){return Ome},basePath:function(){return bme},canExecuteScheme:function(){return Nme},consumes:function(){return W8},consumesOptionsFor:function(){return jme},contentTypeValues:function(){return Pme},currentProducesFor:function(){return r4},definitions:function(){return vme},externalDocs:function(){return pme},findDefinition:function(){return yme},getOAS3RequiredRequestBodyContentType:function(){return Dme},getParameter:function(){return Rme},hasHost:function(){return Ime},host:function(){return Eme},info:function(){return L8},isMediaTypeSchemaPropertiesEqual:function(){return Fme},isOAS3:function(){return fme},lastError:function(){return ime},mutatedRequestFor:function(){return Ame},mutatedRequests:function(){return Z8},operationScheme:function(){return n4},operationWithMeta:function(){return e4},operations:function(){return z8},operationsWithRootInherited:function(){return H8},operationsWithTags:function(){return G8},parameterInclusionSettingFor:function(){return Q8},parameterValues:function(){return t4},parameterWithMeta:function(){return Cme},parameterWithMetaByIdentity:function(){return kA},parametersIncludeIn:function(){return Tme},parametersIncludeType:function(){return y_},paths:function(){return V8},produces:function(){return J8},producesOptionsFor:function(){return kme},requestFor:function(){return xme},requests:function(){return X8},responseFor:function(){return wme},responses:function(){return Y8},schemes:function(){return Sme},security:function(){return mme},securityDefinitions:function(){return gme},semver:function(){return dme},spec:function(){return pn},specJS:function(){return ume},specJson:function(){return TA},specJsonWithResolvedSubtrees:function(){return ci},specResolved:function(){return lme},specResolvedSubtree:function(){return cme},specSource:function(){return ome},specStr:function(){return ame},tagDetails:function(){return K8},taggedOperations:function(){return _me},tags:function(){return PA},url:function(){return sme},validOperationMethods:function(){return hme},validateBeforeExecute:function(){return Mme},validationErrors:function(){return i4},version:function(){return U8}});var e_={};be.r(e_),be.d(e_,{CLEAR_REQUEST:function(){return UA},CLEAR_RESPONSE:function(){return LA},CLEAR_VALIDATE_PARAMS:function(){return VA},LOG_REQUEST:function(){return o4},SET_MUTATED_REQUEST:function(){return $A},SET_REQUEST:function(){return BA},SET_RESPONSE:function(){return qA},SET_SCHEME:function(){return WA},UPDATE_EMPTY_PARAM_INCLUSION:function(){return DA},UPDATE_JSON:function(){return MA},UPDATE_OPERATION_META_VALUE:function(){return Bp},UPDATE_PARAM:function(){return qp},UPDATE_RESOLVED:function(){return zA},UPDATE_RESOLVED_SUBTREE:function(){return $p},UPDATE_SPEC:function(){return jA},UPDATE_URL:function(){return NA},VALIDATE_PARAMS:function(){return FA},changeConsumesValue:function(){return nge},changeParam:function(){return Yme},changeParamByIdentity:function(){return Xme},changeProducesValue:function(){return ige},clearRequest:function(){return pge},clearResponse:function(){return fge},clearValidateParams:function(){return rge},execute:function(){return cge},executeRequest:function(){return lge},invalidateResolvedSubtreeCache:function(){return Qme},logRequest:function(){return uge},parseToJson:function(){return Jme},requestResolvedSubtree:function(){return Gme},resolveSpec:function(){return Hme},setMutatedRequest:function(){return oge},setRequest:function(){return age},setResponse:function(){return sge},setScheme:function(){return dge},updateEmptyParamInclusion:function(){return tge},updateJsonSpec:function(){return Wme},updateResolved:function(){return Vme},updateResolvedSubtree:function(){return Zme},updateSpec:function(){return Ume},updateUrl:function(){return zme},validateParams:function(){return ege}});var t_={};be.r(t_),be.d(t_,{executeRequest:function(){return yge},updateJsonSpec:function(){return gge},updateSpec:function(){return mge},validateParams:function(){return vge}});var r_={};be.r(r_),be.d(r_,{Button:function(){return Yye},Col:function(){return Kye},Collapse:function(){return eve},Container:function(){return Hye},Input:function(){return Zye},Link:function(){return O4},Row:function(){return Gye},Select:function(){return Qye},TextArea:function(){return Xye}});var n_={};be.r(n_),be.d(n_,{basePath:function(){return Fve},consumes:function(){return qve},definitions:function(){return kve},findDefinition:function(){return Pve},hasHost:function(){return jve},host:function(){return Dve},produces:function(){return Bve},schemes:function(){return $ve},securityDefinitions:function(){return Nve},validOperationMethods:function(){return Mve}});var i_={};be.r(i_),be.d(i_,{definitionsToAuthorize:function(){return Lve}});var s_={};be.r(s_),be.d(s_,{callbacksOperations:function(){return Kve},findSchema:function(){return Hve},isOAS3:function(){return Wve},isOAS30:function(){return zve},isSwagger2:function(){return Vve},servers:function(){return Jve}});var a_={};be.r(a_),be.d(a_,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return Up},CLEAR_REQUEST_BODY_VALUE:function(){return i2},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return n2},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return QA},UPDATE_REQUEST_BODY_INCLUSION:function(){return ZA},UPDATE_REQUEST_BODY_VALUE:function(){return YA},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return XA},UPDATE_REQUEST_CONTENT_TYPE:function(){return e2},UPDATE_RESPONSE_CONTENT_TYPE:function(){return t2},UPDATE_SELECTED_SERVER:function(){return GA},UPDATE_SERVER_VARIABLE_VALUE:function(){return r2},clearRequestBodyValidateError:function(){return _0e},clearRequestBodyValue:function(){return x0e},initRequestBodyValidateError:function(){return w0e},setActiveExamplesMember:function(){return y0e},setRequestBodyInclusion:function(){return g0e},setRequestBodyValidateError:function(){return S0e},setRequestBodyValue:function(){return h0e},setRequestContentType:function(){return v0e},setResponseContentType:function(){return b0e},setRetainRequestBodyValueFlag:function(){return m0e},setSelectedServer:function(){return d0e},setServerVariableValue:function(){return E0e}});var o_={};be.r(o_),be.d(o_,{activeExamplesMember:function(){return j0e},hasUserEditedBody:function(){return T0e},requestBodyErrors:function(){return k0e},requestBodyInclusionSetting:function(){return P0e},requestBodyValue:function(){return C0e},requestContentType:function(){return N0e},responseContentType:function(){return M0e},selectDefaultRequestBodyValue:function(){return I0e},selectedServer:function(){return O0e},serverEffectiveValue:function(){return q0e},serverVariableValue:function(){return D0e},serverVariables:function(){return F0e},shouldRetainRequestBodyValue:function(){return R0e},validOperationMethods:function(){return L0e},validateBeforeExecute:function(){return B0e},validateShallowRequired:function(){return $0e}});var f=(function(t){var e={};return be.d(e,t),e})({Component:function(){return mr.Component},PureComponent:function(){return mr.PureComponent},createContext:function(){return mr.createContext},createElement:function(){return mr.createElement},default:function(){return Xn},forwardRef:function(){return mr.forwardRef},useCallback:function(){return mr.useCallback},useContext:function(){return mr.useContext},useEffect:function(){return mr.useEffect},useMemo:function(){return mr.useMemo},useRef:function(){return mr.useRef},useState:function(){return mr.useState}}),zo=(function(t){var e={};return be.d(e,t),e})({applyMiddleware:function(){return j9},bindActionCreators:function(){return k9},compose:function(){return P9},createStore:function(){return T9}}),z=(function(t){var e={};return be.d(e,t),e})({List:function(){return Wi.List},Map:function(){return Wi.Map},OrderedMap:function(){return Wi.OrderedMap},Seq:function(){return Wi.Seq},Set:function(){return Wi.Set},default:function(){return k5},fromJS:function(){return Wi.fromJS}}),kpe=be(919),hu=be.n(kpe),jpe=(function(t){var e={};return be.d(e,t),e})({combineReducers:function(){return q5.combineReducers}}),s8=(function(t){var e={};return be.d(e,t),e})({serializeError:function(){return $5.serializeError}}),Npe=(function(t){var e={};return be.d(e,t),e})({default:function(){return P7}});const jp="err_new_thrown_err",oA="err_new_thrown_err_batch",uA="err_new_spec_err",lA="err_new_spec_err_batch",cA="err_new_auth_err",fA="err_clear",pA="err_clear_by";function Mpe(t){return{type:jp,payload:(0,s8.serializeError)(t)}}function Dpe(t){return{type:oA,payload:t}}function Fpe(t){return{type:uA,payload:t}}function qpe(t){return{type:lA,payload:t}}function Bpe(t){return{type:cA,payload:t}}function $pe(t={}){return{type:fA,payload:t}}function Lpe(t=()=>!0){return{type:pA,payload:t}}var Gt=(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})(),Wo=((function(t){var e={};be.d(e,t)})({}),(function(t){var e={};be.d(e,t)})({}),(function(t){var e={};return be.d(e,t),e})({default:function(){return G7}})),Upe=(function(t){var e={};return be.d(e,t),e})({default:function(){return CV}}),a8=(function(t){var e={};return be.d(e,t),e})({default:function(){return jV}}),Vpe=(function(t){var e={};return be.d(e,t),e})({default:function(){return MV}}),h3=(function(t){var e={};return be.d(e,t),e})({default:function(){return FV}}),zpe=(function(t){var e={};return be.d(e,t),e})({default:function(){return LV}}),Wpe=be(209),$a=be.n(Wpe),Jpe=be(802),Hpe=be.n(Jpe);const Kpe=z.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function jc(t,{isOAS3:e}={}){if(!z.default.Map.isMap(t))return{schema:z.default.Map(),parameterContentMediaType:null};if(!e)return t.get("in")==="body"?{schema:t.get("schema",z.default.Map()),parameterContentMediaType:null}:{schema:t.filter(((r,n)=>Kpe.includes(n))),parameterContentMediaType:null};if(t.get("content")){const r=t.get("content",z.default.Map({})).keySeq().first();return{schema:t.getIn(["content",r,"schema"],z.default.Map()),parameterContentMediaType:r}}return{schema:t.get("schema")?t.get("schema",z.default.Map()):z.default.Map(),parameterContentMediaType:null}}var m3=be(287).Buffer;const g3="default",Pl=t=>z.default.Iterable.isIterable(t),eo=t=>Pl(t)?t.toJS():t;function Hs(t){return _i(t)?eo(t):{}}function Si(t){if(Pl(t)||t instanceof Gt.File||!_i(t))return t;if(Array.isArray(t))return z.default.Seq(t).map(Si).toList();if((0,h3.default)(t.entries)){const e=(function(n){if(!(0,h3.default)(n.entries))return n;const i={},s="_**[]",a={};for(let o of n.entries())i[o[0]]||a[o[0]]&&a[o[0]].containsMultiple?(a[o[0]]||(a[o[0]]={containsMultiple:!0,length:1},i[`${o[0]}${s}${a[o[0]].length}`]=i[o[0]],delete i[o[0]]),a[o[0]].length+=1,i[`${o[0]}${s}${a[o[0]].length}`]=o[1]):i[o[0]]=o[1];return i})(t);return z.default.OrderedMap(e).map(Si)}return z.default.OrderedMap(t).map(Si)}function va(t){return Array.isArray(t)?t:[t]}function LS(t){return typeof t=="function"}function _i(t){return!!t&&typeof t=="object"}function Xi(t){return typeof t=="function"}function sf(t){return Array.isArray(t)}const Gpe=Wo.default;function Jn(t,e){return Object.keys(t).reduce(((r,n)=>(r[n]=e(t[n],n),r)),{})}function y3(t,e){return Object.keys(t).reduce(((r,n)=>{let i=e(t[n],n);return i&&typeof i=="object"&&Object.assign(r,i),r}),{})}function Ype(t){return({dispatch:e,getState:r})=>n=>i=>typeof i=="function"?i(t()):n(i)}function u_(t,e,r,n,i){if(!e)return[];let s=[],a=e.get("nullable"),o=e.get("required"),u=e.get("maximum"),l=e.get("minimum"),c=e.get("type"),p=e.get("format"),h=e.get("maxLength"),d=e.get("minLength"),g=e.get("uniqueItems"),y=e.get("maxItems"),v=e.get("minItems"),E=e.get("pattern");const b=r||o===!0,_=t!=null,w=b||_&&c==="array"||!(!b&&!_),S=a&&t===null;if(b&&!_&&!S&&!n&&!c)return s.push("Required field is not provided"),s;if(S||!c||!w)return[];let A=c==="string"&&t,I=c==="array"&&Array.isArray(t)&&t.length,T=c==="array"&&z.default.List.isList(t)&&t.count();const k=[A,I,T,c==="array"&&typeof t=="string"&&t,c==="file"&&t instanceof Gt.File,c==="boolean"&&(t||t===!1),c==="number"&&(t||t===0),c==="integer"&&(t||t===0),c==="object"&&typeof t=="object"&&t!==null,c==="object"&&typeof t=="string"&&t].some((D=>!!D));if(b&&!k&&!n)return s.push("Required field is not provided"),s;if(c==="object"&&(i===null||i==="application/json")){let D=t;if(typeof t=="string")try{D=JSON.parse(t)}catch{return s.push("Parameter string value must be valid JSON"),s}e&&e.has("required")&&Xi(o.isList)&&o.isList()&&o.forEach((R=>{D[R]===void 0&&s.push({propKey:R,error:"Required property not found"})})),e&&e.has("properties")&&e.get("properties").forEach(((R,$)=>{const M=u_(D[$],R,!1,n,i);s.push(...M.map((K=>({propKey:$,error:K}))))}))}if(E){let D=((R,$)=>{if(!new RegExp($).test(R))return"Value must follow pattern "+$})(t,E);D&&s.push(D)}if(v&&c==="array"){let D=((R,$)=>{if(!R&&$>=1||R&&R.length<$)return`Array must contain at least ${$} item${$===1?"":"s"}`})(t,v);D&&s.push(D)}if(y&&c==="array"){let D=((R,$)=>{if(R&&R.length>$)return`Array must not contain more then ${$} item${$===1?"":"s"}`})(t,y);D&&s.push({needRemove:!0,error:D})}if(g&&c==="array"){let D=((R,$)=>{if(R&&($==="true"||$===!0)){const M=(0,z.fromJS)(R),K=M.toSet();if(R.length>K.size){let ee=(0,z.Set)();if(M.forEach(((G,Z)=>{M.filter((X=>Xi(X.equals)?X.equals(G):X===G)).size>1&&(ee=ee.add(Z))})),ee.size!==0)return ee.map((G=>({index:G,error:"No duplicates allowed."}))).toArray()}}})(t,g);D&&s.push(...D)}if(h||h===0){let D=((R,$)=>{if(R.length>$)return`Value must be no longer than ${$} character${$!==1?"s":""}`})(t,h);D&&s.push(D)}if(d){let D=((R,$)=>{if(R.length<$)return`Value must be at least ${$} character${$!==1?"s":""}`})(t,d);D&&s.push(D)}if(u||u===0){let D=((R,$)=>{if(R>$)return`Value must be less than or equal to ${$}`})(t,u);D&&s.push(D)}if(l||l===0){let D=((R,$)=>{if(R<$)return`Value must be greater than or equal to ${$}`})(t,l);D&&s.push(D)}if(c==="string"){let D;if(D=p==="date-time"?(R=>{if(isNaN(Date.parse(R)))return"Value must be a DateTime"})(t):p==="uuid"?(R=>{if(R=R.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(R))return"Value must be a Guid"})(t):(R=>{if(R&&typeof R!="string")return"Value must be a string"})(t),!D)return s;s.push(D)}else if(c==="boolean"){let D=(R=>{if(R!=="true"&&R!=="false"&&R!==!0&&R!==!1)return"Value must be a boolean"})(t);if(!D)return s;s.push(D)}else if(c==="number"){let D=(R=>{if(!/^-?\d+(\.?\d+)?$/.test(R))return"Value must be a number"})(t);if(!D)return s;s.push(D)}else if(c==="integer"){let D=(R=>{if(!/^-?\d+$/.test(R))return"Value must be an integer"})(t);if(!D)return s;s.push(D)}else if(c==="array"){if(!I&&!T)return s;t&&t.forEach(((D,R)=>{const $=u_(D,e.get("items"),!1,n,i);s.push(...$.map((M=>({index:R,error:M}))))}))}else if(c==="file"){let D=(R=>{if(R&&!(R instanceof Gt.File))return"Value must be a file"})(t);if(!D)return s;s.push(D)}return s}const kl=t=>{let e;return e=t instanceof m3?t:m3.from(t.toString(),"utf-8"),e.toString("base64")},v3={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)}},Np=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("&")},Xpe=(t,e,r)=>!!(0,Upe.default)(r,(n=>(0,Vpe.default)(t[n],e[n])));function b3(t){return!(!t||t.indexOf("localhost")>=0||t.indexOf("127.0.0.1")>=0||t==="none")}const mu=t=>typeof t=="string"||t instanceof String?t.trim().replace(/\s/g,"%20"):"",o8=t=>(0,zpe.default)(mu(t).replace(/%20/g,"_")),l_=t=>/^x-/.test(t),qs=t=>z.Map.isMap(t)?t.filter(((e,r)=>l_(r))):Object.keys(t).filter((e=>l_(e))),u8=t=>t.filter(((e,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r)));function l8(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((i=>{i===e&&r(n[i],i)?delete n[i]:n[i]=l8(n[i],e,r)})),n}function Cr(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 af(t,{returnAll:e=!1,allowHashes:r=!0}={}){if(!z.default.Map.isMap(t))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=t.get("name"),i=t.get("in");let s=[];return t&&t.hashCode&&i&&n&&r&&s.push(`${i}.${n}.hash-${t.hashCode()}`),i&&n&&s.push(`${i}.${n}`),s.push(n),e?s:s[0]||""}function c8(t,e){return af(t,{returnAll:!0}).map((r=>e[r])).filter((r=>r!==void 0))[0]}function E3(t){return t.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const dA=t=>!t||!(!Pl(t)||!t.isEmpty()),S3=t=>t;class f8{constructor(e={}){hu()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},e),this.getSystem=this._getSystem.bind(this),this.store=(function(n,i,s){return(function(o,u,l){let c=[Ype(l)];const p=Gt.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||zo.compose;return(0,zo.createStore)(o,u,p((0,zo.applyMiddleware)(...c)))})(n,i,s)})(S3,(0,z.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,r=!0){var n=c_(e,this.getSystem());p8(this.system,n),r&&this.buildSystem(),f_.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:z.default,React:f.default},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(s,a){let o=Object.keys(s).reduce(((u,l)=>(u[l]=(function(p,h){return(d=new z.Map,g)=>{if(!p)return d;let y=p[g.type];if(y){const v=Jo(y,h)(d,g);return v===null?d:v}return d}})(s[l],a),u)),{});return Object.keys(o).length?(0,jpe.combineReducers)(o):S3})(Jn(r,(i=>i.reducers)),n)})(this.system.statePlugins,this.getSystem))}getType(e){let r=e[0].toUpperCase()+e.slice(1);return y3(this.system.statePlugins,((n,i)=>{let s=n[e];if(s)return{[i+r]:s}}))}getSelectors(){return this.getType("selectors")}getActions(){return Jn(this.getType("actions"),(e=>y3(e,((r,n)=>{if(LS(r))return{[n]:r}}))))}getWrappedAndBoundActions(e){return Jn(this.getBoundActions(e),((r,n)=>{let i=this.system.statePlugins[n.slice(0,-7)].wrapActions;return i?Jn(r,((s,a)=>{let o=i[a];return o?(Array.isArray(o)||(o=[o]),o.reduce(((u,l)=>{let c=(...p)=>l(u,this.getSystem())(...p);if(!LS(c))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return Jo(c,this.getSystem)}),s||Function.prototype)):s})):r}))}getWrappedAndBoundSelectors(e,r){return Jn(this.getBoundSelectors(e,r),((n,i)=>{let s=[i.slice(0,-9)],a=this.system.statePlugins[s].wrapSelectors;return a?Jn(n,((o,u)=>{let l=a[u];return l?(Array.isArray(l)||(l=[l]),l.reduce(((c,p)=>{let h=(...d)=>p(c,this.getSystem())(e().getIn(s),...d);if(!LS(h))throw new TypeError("wrapSelector needs to return a function that returns a new function (ie the wrapped action)");return h}),o||Function.prototype)):o})):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,i)=>i(n,this.getSystem()))):e!==void 0?this.system.components[e]:this.system.components}getBoundSelectors(e,r){return Jn(this.getSelectors(),((n,i)=>{let s=[i.slice(0,-9)];return Jn(n,(a=>(...o)=>{let u=Jo(a,this.getSystem).apply(null,[e().getIn(s),...o]);return typeof u=="function"&&(u=Jo(u,this.getSystem)(r())),u}))}))}getBoundActions(e){e=e||this.getStore().dispatch;const r=this.getActions(),n=i=>typeof i!="function"?Jn(i,(s=>n(s))):(...s)=>{var a=null;try{a=i(...s)}catch(o){a={type:jp,error:!0,payload:(0,s8.serializeError)(o)}}finally{return a}};return Jn(r,(i=>(0,zo.bindActionCreators)(n(i),e)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return r=>hu()({},this.getWrappedAndBoundActions(r),this.getFn(),e)}}function c_(t,e){return _i(t)&&!sf(t)?(0,Npe.default)({},t):Xi(t)?c_(t(e),e):sf(t)?t.map((r=>c_(r,e))).reduce(p8,{components:e.getComponents()}):{}}function f_(t,e,{hasLoaded:r}={}){let n=r;return _i(t)&&!sf(t)&&typeof t.afterLoad=="function"&&(n=!0,Jo(t.afterLoad,e.getSystem).call(this,e)),Xi(t)?f_.call(this,t(e),e,{hasLoaded:n}):sf(t)?t.map((i=>f_.call(this,i,e,{hasLoaded:n}))):n}function p8(t={},e={}){if(!_i(t))return{};if(!_i(e))return t;e.wrapComponents&&(Jn(e.wrapComponents,((n,i)=>{const s=t.components&&t.components[i];s&&Array.isArray(s)?(t.components[i]=s.concat([n]),delete e.wrapComponents[i]):s&&(t.components[i]=[s,n],delete e.wrapComponents[i])})),Object.keys(e.wrapComponents).length||delete e.wrapComponents);const{statePlugins:r}=t;if(_i(r))for(let n in r){const i=r[n];if(!_i(i))continue;const{wrapActions:s,wrapSelectors:a}=i;if(_i(s))for(let o in s){let u=s[o];Array.isArray(u)||(u=[u],s[o]=u),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapActions&&e.statePlugins[n].wrapActions[o]&&(e.statePlugins[n].wrapActions[o]=s[o].concat(e.statePlugins[n].wrapActions[o]))}if(_i(a))for(let o in a){let u=a[o];Array.isArray(u)||(u=[u],a[o]=u),e&&e.statePlugins&&e.statePlugins[n]&&e.statePlugins[n].wrapSelectors&&e.statePlugins[n].wrapSelectors[o]&&(e.statePlugins[n].wrapSelectors[o]=a[o].concat(e.statePlugins[n].wrapSelectors[o]))}}return hu()(t,e)}function Jo(t,e,{logErrors:r=!0}={}){return typeof t!="function"?t:function(...n){try{return t.call(this,...n)}catch(i){if(r){const{uncaughtExceptionHandler:s}=e().getConfigs();typeof s=="function"?s(i):console.error(i)}return null}}}var gu=(function(t){var e={};return be.d(e,t),e})({default:function(){return JV}});const hA="show_popup",mA="authorize",gA="logout",yA="authorize_oauth2",vA="configure_auth",bA="restore_authorization";function Zpe(t){return{type:hA,payload:t}}function Qpe(t){return{type:mA,payload:t}}const ede=t=>({authActions:e})=>{e.authorize(t),e.persistAuthorizationIfNeeded()};function tde(t){return{type:gA,payload:t}}const rde=t=>({authActions:e})=>{e.logout(t),e.persistAuthorizationIfNeeded()},nde=t=>({authActions:e,errActions:r})=>{let{auth:n,token:i,isValid:s}=t,{schema:a,name:o}=n,u=a.get("flow");delete Gt.swaggerUIRedirectOauth2,u==="accessCode"||s||r.newAuthErr({authId:o,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),i.error?r.newAuthErr({authId:o,source:"auth",level:"error",message:JSON.stringify(i)}):e.authorizeOauth2WithPersistOption({auth:n,token:i})};function ide(t){return{type:yA,payload:t}}const sde=t=>({authActions:e})=>{e.authorizeOauth2(t),e.persistAuthorizationIfNeeded()},ade=t=>({authActions:e})=>{let{schema:r,name:n,username:i,password:s,passwordType:a,clientId:o,clientSecret:u}=t,l={grant_type:"password",scope:t.scopes.join(" "),username:i,password:s},c={};switch(a){case"request-body":(function(h,d,g){d&&Object.assign(h,{client_id:d}),g&&Object.assign(h,{client_secret:g})})(l,o,u);break;case"basic":c.Authorization="Basic "+kl(o+":"+u);break;default:console.warn(`Warning: invalid passwordType ${a} was passed, not including client id and secret`)}return e.authorizeRequest({body:Np(l),url:r.get("tokenUrl"),name:n,headers:c,query:{},auth:t})},ode=t=>({authActions:e})=>{let{schema:r,scopes:n,name:i,clientId:s,clientSecret:a}=t,o={Authorization:"Basic "+kl(s+":"+a)},u={grant_type:"client_credentials",scope:n.join(" ")};return e.authorizeRequest({body:Np(u),name:i,url:r.get("tokenUrl"),auth:t,headers:o})},ude=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=t,u={grant_type:"authorization_code",code:t.code,client_id:s,client_secret:a,redirect_uri:e,code_verifier:o};return r.authorizeRequest({body:Np(u),name:i,url:n.get("tokenUrl"),auth:t})},lde=({auth:t,redirectUrl:e})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=t,u={Authorization:"Basic "+kl(s+":"+a)},l={grant_type:"authorization_code",code:t.code,client_id:s,redirect_uri:e,code_verifier:o};return r.authorizeRequest({body:Np(l),name:i,url:n.get("tokenUrl"),auth:t,headers:u})},cde=t=>({fn:e,getConfigs:r,authActions:n,errActions:i,oas3Selectors:s,specSelectors:a,authSelectors:o})=>{let u,{body:l,query:c={},headers:p={},name:h,url:d,auth:g}=t,{additionalQueryStringParams:y}=o.getConfigs()||{};if(a.isOAS3()){let b=s.serverEffectiveValue(s.selectedServer());u=(0,gu.default)(d,b,!0)}else u=(0,gu.default)(d,a.url(),!0);typeof y=="object"&&(u.query=Object.assign({},u.query,y));const v=u.toString();let E=Object.assign({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},p);e.fetch({url:v,method:"post",headers:E,query:c,body:l,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(b){let _=JSON.parse(b.data),w=_&&(_.error||""),S=_&&(_.parseError||"");b.ok?w||S?i.newAuthErr({authId:h,level:"error",source:"auth",message:JSON.stringify(_)}):n.authorizeOauth2WithPersistOption({auth:g,token:_}):i.newAuthErr({authId:h,level:"error",source:"auth",message:b.statusText})})).catch((b=>{let _=new Error(b).message;if(b.response&&b.response.data){const w=b.response.data;try{const S=typeof w=="string"?JSON.parse(w):w;S.error&&(_+=`, error: ${S.error}`),S.error_description&&(_+=`, description: ${S.error_description}`)}catch{}}i.newAuthErr({authId:h,level:"error",source:"auth",message:_})}))};function fde(t){return{type:vA,payload:t}}function pde(t){return{type:bA,payload:t}}const dde=()=>({authSelectors:t,getConfigs:e})=>{if(!e().persistAuthorization)return;const r=t.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},hde=(t,e)=>()=>{Gt.swaggerUIRedirectOauth2=e,Gt.open(t)};var mde={[hA]:(t,{payload:e})=>t.set("showDefinitions",e),[mA]:(t,{payload:e})=>{let r=(0,z.fromJS)(e),n=t.get("authorized")||(0,z.Map)();return r.entrySeq().forEach((([i,s])=>{if(!Xi(s.getIn))return t.set("authorized",n);let a=s.getIn(["schema","type"]);if(a==="apiKey"||a==="http")n=n.set(i,s);else if(a==="basic"){let o=s.getIn(["value","username"]),u=s.getIn(["value","password"]);n=n.setIn([i,"value"],{username:o,header:"Basic "+kl(o+":"+u)}),n=n.setIn([i,"schema"],s.get("schema"))}})),t.set("authorized",n)},[yA]:(t,{payload:e})=>{let r,{auth:n,token:i}=e;n.token=Object.assign({},i),r=(0,z.fromJS)(n);let s=t.get("authorized")||(0,z.Map)();return s=s.set(r.get("name"),r),t.set("authorized",s)},[gA]:(t,{payload:e})=>{let r=t.get("authorized").withMutations((n=>{e.forEach((i=>{n.delete(i)}))}));return t.set("authorized",r)},[vA]:(t,{payload:e})=>t.set("configs",e),[bA]:(t,{payload:e})=>t.set("authorized",(0,z.fromJS)(e.authorized))},at=(function(t){var e={};return be.d(e,t),e})({createSelector:function(){return N9}});const Mp=t=>t,gde=(0,at.createSelector)(Mp,(t=>t.get("showDefinitions"))),yde=(0,at.createSelector)(Mp,(()=>({specSelectors:t})=>{let e=t.securityDefinitions()||(0,z.Map)({}),r=(0,z.List)();return e.entrySeq().forEach((([n,i])=>{let s=(0,z.Map)();s=s.set(n,i),r=r.push(s)})),r})),vde=(t,e)=>({specSelectors:r})=>(0,z.List)(r.isOAS3()?["components","securitySchemes",e]:["securityDefinitions",e]),bde=(t,e)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),i=(0,z.List)();return e.valueSeq().forEach((s=>{let a=(0,z.Map)();s.entrySeq().forEach((([o,u])=>{let l,c=n.get(o);c.get("type")==="oauth2"&&u.size&&(l=c.get("scopes"),l.keySeq().forEach((p=>{u.contains(p)||(l=l.delete(p))})),c=c.set("allowedScopes",l)),a=a.set(o,c)})),i=i.push(a)})),i},Ede=(t,e=(0,z.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,z.List)();let i=(0,z.List)();return n.forEach((s=>{let a=e.find((o=>o.get(s.keySeq().first())));a&&(s.forEach(((o,u)=>{if(o.get("type")==="oauth2"){const l=a.get(u);let c=o.get("scopes");z.List.isList(l)&&z.Map.isMap(c)&&(c.keySeq().forEach((p=>{l.contains(p)||(c=c.delete(p))})),s=s.set(u,o.set("scopes",c)))}})),i=i.push(s))})),i},Sde=(0,at.createSelector)(Mp,(t=>t.get("authorized")||(0,z.Map)())),_de=(t,e)=>({authSelectors:r})=>{let n=r.authorized();return z.List.isList(e)?!!e.toJS().filter((i=>Object.keys(i).map((s=>!!n.get(s))).indexOf(!1)===-1)).length:null},wde=(0,at.createSelector)(Mp,(t=>t.get("configs"))),xde=(t,{authSelectors:e,specSelectors:r})=>({path:n,method:i,operation:s,extras:a})=>{let o={authorized:e.authorized()&&e.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return t({path:n,method:i,operation:s,securities:o,...a})},Ade=(t,e)=>r=>{const{getConfigs:n,authActions:i}=e,s=n();if(t(r),s.persistAuthorization){const a=localStorage.getItem("authorized");a&&i.restoreAuthorization({authorized:JSON.parse(a)})}},Ode=(t,e)=>r=>{if(t(r),e.getConfigs().persistAuthorization)try{const[{schema:n,value:i}]=Object.values(r),s=(0,z.fromJS)(n),a=s.get("type")==="apiKey",o=s.get("in")==="cookie";a&&o&&(document.cookie=`${s.get("name")}=${i}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},Cde=(t,e)=>r=>{const n=e.getConfigs(),i=e.authSelectors.authorized();try{n.persistAuthorization&&Array.isArray(r)&&r.forEach((s=>{const a=i.get(s,{}),o=a.getIn(["schema","type"])==="apiKey",u=a.getIn(["schema","in"])==="cookie";if(o&&u){const l=a.getIn(["schema","name"]);document.cookie=`${l}=; Max-Age=-99999999`}}))}catch(s){console.error("Error deleting cookie based apiKey from document.cookie.",s)}t(r)};var on=(function(t){var e={};return be.d(e,t),e})({default:function(){return E9}}),EA=(function(t){var e={};return be.d(e,t),e})({default:function(){return hz}});class Rde extends f.default.Component{mapStateToProps(e,r){return{state:e,ownProps:(0,EA.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("LockIcon");return f.default.createElement(n,r)}}var _3=Rde;class Ide extends f.default.Component{mapStateToProps(e,r){return{state:e,ownProps:(0,EA.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:e,ownProps:r}=this.props,n=e("UnlockIcon");return f.default.createElement(n,r)}}var w3=Ide;function d8(){return{afterLoad(t){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=t.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=Pde.bind(null,t),this.rootInjects.preauthorizeBasic=Tde.bind(null,t)},components:{LockAuthIcon:_3,UnlockAuthIcon:w3,LockAuthOperationIcon:_3,UnlockAuthOperationIcon:w3},statePlugins:{auth:{reducers:mde,actions:L1,selectors:U1,wrapActions:{authorize:Ode,logout:Cde}},configs:{wrapActions:{loaded:Ade}},spec:{wrapActions:{execute:xde}}}}}function Tde(t,e,r,n){const{authActions:{authorize:i},specSelectors:{specJson:s,isOAS3:a}}=t,o=a()?["components","securitySchemes"]:["securityDefinitions"],u=s().getIn([...o,e]);return u?i({[e]:{value:{username:r,password:n},schema:u.toJS()}}):null}function Pde(t,e,r){const{authActions:{authorize:n},specSelectors:{specJson:i,isOAS3:s}}=t,a=s()?["components","securitySchemes"]:["securityDefinitions"],o=i().getIn([...a,e]);return o?n({[e]:{value:r,schema:o.toJS()}}):null}var Ki=(function(t){var e={};return be.d(e,t),e})({JSON_SCHEMA:function(){return iu},default:function(){return ea}});const SA="configs_update",_A="configs_toggle";function kde(t,e){return{type:SA,payload:{[t]:e}}}function jde(t){return{type:_A,payload:t}}const Nde=()=>()=>{},Mde=t=>e=>{const{fn:{fetch:r}}=e;return r(t)},Dde=(t,e)=>r=>{const{specActions:n,configsActions:i}=r;if(t)return i.downloadConfig(t).then(s,s);function s(a){a instanceof Error||a.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(a.statusText+" "+t.url),e(null)):e(((o,u)=>{try{return Ki.default.load(o)}catch(l){return u&&u.errActions.newThrownErr(new Error(l)),{}}})(a.text,r))}},Fde=(t,e)=>t.getIn(Array.isArray(e)?e:[e]);var qde={[SA]:(t,e)=>t.merge((0,z.fromJS)(e.payload)),[_A]:(t,e)=>{const r=e.payload,n=t.get(r);return t.set(r,!n)}};function h8(){return{statePlugins:{configs:{reducers:qde,actions:V1,selectors:z1}}}}const US=t=>t?history.pushState(null,null,`#${t}`):window.location.hash="";var Bde=(function(t){var e={};return be.d(e,t),e})({default:function(){return DJ}});const x3="layout_scroll_to",A3="layout_clear_scroll";var $de={fn:{getScrollParent:function(e,r){const n=document.documentElement;let i=getComputedStyle(e);const s=i.position==="absolute",a=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(i.position==="fixed")return n;for(let o=e;o=o.parentElement;)if(i=getComputedStyle(o),(!s||i.position!=="static")&&a.test(i.overflow+i.overflowY+i.overflowX))return o;return n}},statePlugins:{layout:{actions:{scrollToElement:(t,e)=>r=>{try{e=e||r.fn.getScrollParent(t),Bde.default.createScroller(e).to(t)}catch(n){console.error(n)}},scrollTo:t=>({type:x3,payload:Array.isArray(t)?t:[t]}),clearScrollTo:()=>({type:A3}),readyToScroll:(t,e)=>r=>{const n=r.layoutSelectors.getScrollToKey();z.default.is(n,(0,z.fromJS)(t))&&(r.layoutActions.scrollToElement(e),r.layoutActions.clearScrollTo())},parseDeepLinkHash:t=>({layoutActions:e,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&t){let i=t.slice(1);i[0]==="!"&&(i=i.slice(1)),i[0]==="/"&&(i=i.slice(1));const s=i.split("/").map((c=>c||"")),a=r.isShownKeyFromUrlHashArray(s),[o,u="",l=""]=a;if(o==="operations"){const c=r.isShownKeyFromUrlHashArray([u]);u.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(c.map((p=>p.replace(/_/g," "))),!0)),e.show(c,!0)}(u.indexOf("_")>-1||l.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),e.show(a.map((c=>c.replace(/_/g," "))),!0)),e.show(a,!0),e.scrollTo(a)}}},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,i]=e;return r=="operations"?[n,i]:r=="operations-tag"?[n]:[]}},reducers:{[x3]:(t,e)=>t.set("scrollToKey",z.default.fromJS(e.payload)),[A3]:t=>t.delete("scrollToKey")},wrapActions:{show:(t,{getConfigs:e,layoutSelectors:r})=>(...n)=>{if(t(...n),e().deepLinking)try{let[i,s]=n;i=Array.isArray(i)?i:[i];const a=r.urlHashArrayFromIsShownKey(i);if(!a.length)return;const[o,u]=a;if(!s)return US("/");a.length===2?US(mu(`/${encodeURIComponent(o)}/${encodeURIComponent(u)}`)):a.length===1&&US(mu(`/${encodeURIComponent(o)}`))}catch(i){console.error(i)}}}}}},O3=(function(t){var e={};return be.d(e,t),e})({default:function(){return BJ}}),Lde=(t,e)=>class extends f.default.Component{onLoad=n=>{const{operation:i}=this.props,{tag:s,operationId:a}=i.toObject();let{isShownKey:o}=i.toObject();o=o||["operations",s,a],e.layoutActions.readyToScroll(o,n)};render(){return f.default.createElement("span",{ref:this.onLoad},f.default.createElement(t,this.props))}},Ude=(t,e)=>class extends f.default.Component{onLoad=n=>{const{tag:i}=this.props,s=["operations-tag",i];e.layoutActions.readyToScroll(s,n)};render(){return f.default.createElement("span",{ref:this.onLoad},f.default.createElement(t,this.props))}};function m8(){return[$de,{statePlugins:{configs:{wrapActions:{loaded:(t,e)=>(...r)=>{t(...r);const n=decodeURIComponent(window.location.hash);e.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:Lde,OperationTag:Ude}}]}var Vde=(function(t){var e={};return be.d(e,t),e})({default:function(){return VJ}});function zde(t){return t.map((e=>{let r="is not of a type(s)",n=e.get("message").indexOf(r);if(n>-1){let i=e.get("message").slice(n+19).split(",");return e.set("message",e.get("message").slice(0,n)+(function(a){return a.reduce(((o,u,l,c)=>l===c.length-1&&c.length>1?o+"or "+u:c[l+1]&&c.length>2?o+u+", ":c[l+1]?o+u+" ":o+u),"should be a")})(i))}return e}))}var p_=(function(t){var e={};return be.d(e,t),e})({default:function(){return WJ}});function Wde(t,{jsSpec:e}){return t}const Jde=[W1,J1];function Fo(t){let e={jsSpec:{}};return(0,Vde.default)(Jde,((n,i)=>{try{return i.transform(n,e).filter((s=>!!s))}catch(s){return console.error("Transformer error:",s),n}}),t).filter((n=>!!n)).map((n=>(!n.get("line")&&n.get("path"),n)))}let VS={line:0,level:"error",message:"Unknown error"};const g8=(0,at.createSelector)((t=>t),(t=>t.get("errors",(0,z.List)()))),Hde=(0,at.createSelector)(g8,(t=>t.last()));function y8(t){return{statePlugins:{err:{reducers:{[jp]:(e,{payload:r})=>{let n=Object.assign(VS,r,{type:"thrown"});return e.update("errors",(i=>(i||(0,z.List)()).push((0,z.fromJS)(n)))).update("errors",(i=>Fo(i)))},[oA]:(e,{payload:r})=>(r=r.map((n=>(0,z.fromJS)(Object.assign(VS,n,{type:"thrown"})))),e.update("errors",(n=>(n||(0,z.List)()).concat((0,z.fromJS)(r)))).update("errors",(n=>Fo(n)))),[uA]:(e,{payload:r})=>{let n=(0,z.fromJS)(r);return n=n.set("type","spec"),e.update("errors",(i=>(i||(0,z.List)()).push((0,z.fromJS)(n)).sortBy((s=>s.get("line"))))).update("errors",(i=>Fo(i)))},[lA]:(e,{payload:r})=>(r=r.map((n=>(0,z.fromJS)(Object.assign(VS,n,{type:"spec"})))),e.update("errors",(n=>(n||(0,z.List)()).concat((0,z.fromJS)(r)))).update("errors",(n=>Fo(n)))),[cA]:(e,{payload:r})=>{let n=(0,z.fromJS)(Object.assign({},r));return n=n.set("type","auth"),e.update("errors",(i=>(i||(0,z.List)()).push((0,z.fromJS)(n)))).update("errors",(i=>Fo(i)))},[fA]:(e,{payload:r})=>{if(!r||!e.get("errors"))return e;let n=e.get("errors").filter((i=>i.keySeq().every((s=>{const a=i.get(s),o=r[s];return!o||a!==o}))));return e.merge({errors:n})},[pA]:(e,{payload:r})=>{if(!r||typeof r!="function")return e;let n=e.get("errors").filter((i=>r(i)));return e.merge({errors:n})}},actions:$1,selectors:H1}}}}function Kde(t,e){return t.filter(((r,n)=>n.indexOf(e)!==-1))}function v8(){return{fn:{opsFilter:Kde}}}var It=(function(t){var e={};return be.d(e,t),e})({default:function(){return u1}}),Gde=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,It.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.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"})),Yde=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,It.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.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"})),Xde=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,It.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.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"})),Zde=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,It.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.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"})),Qde=({className:t=null,width:e=15,height:r=16,...n})=>f.default.createElement("svg",(0,It.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.createElement("g",{transform:"translate(2, -1)"},f.default.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"}))),ehe=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,It.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.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"})),the=({className:t=null,width:e=20,height:r=20,...n})=>f.default.createElement("svg",(0,It.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:t,width:e,height:r,"aria-hidden":"true",focusable:"false"},n),f.default.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"})),b8=()=>({components:{ArrowUpIcon:Gde,ArrowDownIcon:Yde,ArrowIcon:Xde,CloseIcon:Zde,CopyIcon:Qde,LockIcon:ehe,UnlockIcon:the}});const wA="layout_update_layout",xA="layout_update_filter",AA="layout_update_mode",OA="layout_show";function rhe(t){return{type:wA,payload:t}}function nhe(t){return{type:xA,payload:t}}function ihe(t,e=!0){return t=va(t),{type:OA,payload:{thing:t,shown:e}}}function she(t,e=""){return t=va(t),{type:AA,payload:{thing:t,mode:e}}}var ahe={[wA]:(t,e)=>t.set("layout",e.payload),[xA]:(t,e)=>t.set("filter",e.payload),[OA]:(t,e)=>{const r=e.payload.shown,n=(0,z.fromJS)(e.payload.thing);return t.update("shown",(0,z.fromJS)({}),(i=>i.set(n,r)))},[AA]:(t,e)=>{let r=e.payload.thing,n=e.payload.mode;return t.setIn(["modes"].concat(r),(n||"")+"")}};const ohe=t=>t.get("layout"),uhe=t=>t.get("filter"),E8=(t,e,r)=>(e=va(e),t.get("shown",(0,z.fromJS)({})).get((0,z.fromJS)(e),r)),lhe=(t,e,r="")=>(e=va(e),t.getIn(["modes",...e],r)),che=(0,at.createSelector)((t=>t),(t=>!E8(t,"editor"))),fhe=(t,e)=>(r,...n)=>{let i=t(r,...n);const{fn:s,layoutSelectors:a,getConfigs:o}=e.getSystem(),u=o(),{maxDisplayedTags:l}=u;let c=a.currentFilter();return c&&c!==!0&&(i=s.opsFilter(i,c)),l>=0&&(i=i.slice(0,l)),i};function S8(){return{statePlugins:{layout:{reducers:ahe,actions:K1,selectors:G1},spec:{wrapSelectors:Y1}}}}function _8({configs:t}){const e={debug:0,info:1,log:2,warn:3,error:4},r=a=>e[a]||-1;let{logLevel:n}=t,i=r(n);function s(a,...o){r(a)>=i&&console[a](...o)}return s.warn=s.bind(null,"warn"),s.error=s.bind(null,"error"),s.info=s.bind(null,"info"),s.debug=s.bind(null,"debug"),{rootInjects:{log:s}}}let zS=!1;function w8(){return{statePlugins:{spec:{wrapActions:{updateSpec:t=>(...e)=>(zS=!0,t(...e)),updateJsonSpec:(t,e)=>(...r)=>{const n=e.getConfigs().onComplete;return zS&&typeof n=="function"&&(setTimeout(n,0),zS=!1),t(...r)}}}}}}const C3=t=>{const e="_**[]";return t.indexOf(e)<0?t:t.split(e)[0].trim()},phe=t=>t==="-d "||/^[_\/-]/g.test(t)?t:"'"+t.replace(/'/g,"'\\''")+"'",dhe=t=>(t=t.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^
262
+ `))==="-d "?t.replace(/-d /g,`-d ^
263
+ `):/^[_\/-]/g.test(t)?t:'"'+t+'"',hhe=t=>t==="-d "?t:/\n/.test(t)?`@"
264
+ ${t.replace(/`/g,"``").replace(/\$/g,"`$")}
265
+ "@`:/^[_\/-]/.test(t)?t:`'${t.replace(/'/g,"''")}'`,CA=(t,e,r,n="")=>{let i=!1,s="";const a=(...d)=>s+=" "+d.map(e).join(" "),o=(...d)=>s+=d.map(e).join(" "),u=()=>s+=` ${r}`,l=(d=1)=>s+=" ".repeat(d);let c=t.get("headers");s+="curl"+n;const p=t.get("curlOptions");if(z.List.isList(p)&&!p.isEmpty()&&a(...t.get("curlOptions")),a("-X",t.get("method")),u(),l(),o(`${t.get("url")}`),c&&c.size)for(let d of t.get("headers").entries()){u(),l();let[g,y]=d;o("-H",`${g}: ${y}`),i=i||/^content-type$/i.test(g)&&/^multipart\/form-data$/i.test(y)}const h=t.get("body");if(h)if(i&&["POST","PUT","PATCH"].includes(t.get("method")))for(let[d,g]of h.entrySeq()){let y=C3(d);u(),l(),o("-F"),g instanceof Gt.File&&typeof g.valueOf()=="string"?a(`${y}=${g.data}${g.type?`;type=${g.type}`:""}`):g instanceof Gt.File?a(`${y}=@${g.name}${g.type?`;type=${g.type}`:""}`):a(`${y}=${g}`)}else if(h instanceof Gt.File)u(),l(),o(`--data-binary '@${h.name}'`);else{u(),l(),o("-d ");let d=h;z.Map.isMap(d)?o((function(y){let v=[];for(let[E,b]of y.get("body").entrySeq()){let _=C3(E);b instanceof Gt.File?v.push(` "${_}": {
266
+ "name": "${b.name}"${b.type?`,
267
+ "type": "${b.type}"`:""}
268
+ }`):v.push(` "${_}": ${JSON.stringify(b,null,2).replace(/(\r\n|\r|\n)/g,`
269
+ `)}`)}return`{
270
+ ${v.join(`,
271
+ `)}
272
+ }`})(t)):(typeof d!="string"&&(d=JSON.stringify(d)),o(d))}else h||t.get("method")!=="POST"||(u(),l(),o("-d ''"));return s},mhe=t=>CA(t,hhe,"`\n",".exe"),x8=t=>CA(t,phe,`\\
273
+ `),ghe=t=>CA(t,dhe,`^
274
+ `),RA=t=>t||(0,z.Map)(),A8=(0,at.createSelector)(RA,(t=>{const e=t.get("languages"),r=t.get("generators",(0,z.Map)());return!e||e.isEmpty()?r:r.filter(((n,i)=>e.includes(i)))})),yhe=t=>({fn:e})=>A8(t).map(((r,n)=>{const i=(s=>e[`requestSnippetGenerator_${s}`])(n);return typeof i!="function"?null:r.set("fn",i)})).filter((r=>r)),vhe=(0,at.createSelector)(RA,(t=>t.get("activeLanguage"))),bhe=(0,at.createSelector)(RA,(t=>t.get("defaultExpanded")));var Tt=(function(t){var e={};return be.d(e,t),e})({default:function(){return xH}}),Dp=(function(t){var e={};return be.d(e,t),e})({CopyToClipboard:function(){return IH.CopyToClipboard}});const Ehe={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"},She={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 _he=({request:t,requestSnippetsSelectors:e,getComponent:r})=>{const n=(0,f.useRef)(null),i=r("ArrowUpIcon"),s=r("ArrowDownIcon"),a=r("SyntaxHighlighter",!0),[o,u]=(0,f.useState)(e.getSnippetGenerators()?.keySeq().first()),[l,c]=(0,f.useState)(e?.getDefaultExpanded()),p=e.getSnippetGenerators(),h=p.get(o),d=h.get("fn")(t),g=()=>{c(!l)},y=E=>E===o?She:Ehe,v=E=>{const{target:b,deltaY:_}=E,{scrollHeight:w,offsetHeight:S,scrollTop:A}=b;w>S&&(A===0&&_<0||S+A>=w&&_>0)&&E.preventDefault()};return(0,f.useEffect)((()=>{}),[]),(0,f.useEffect)((()=>{const E=Array.from(n.current.childNodes).filter((b=>!!b.nodeType&&b.classList?.contains("curl-command")));return E.forEach((b=>b.addEventListener("mousewheel",v,{passive:!1}))),()=>{E.forEach((b=>b.removeEventListener("mousewheel",v)))}}),[t]),f.default.createElement("div",{className:"request-snippets",ref:n},f.default.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},f.default.createElement("h4",{onClick:()=>g(),style:{cursor:"pointer"}},"Snippets"),f.default.createElement("button",{onClick:()=>g(),style:{border:"none",background:"none"},title:l?"Collapse operation":"Expand operation"},l?f.default.createElement(s,{className:"arrow",width:"10",height:"10"}):f.default.createElement(i,{className:"arrow",width:"10",height:"10"}))),l&&f.default.createElement("div",{className:"curl-command"},f.default.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},p.entrySeq().map((([E,b])=>f.default.createElement("div",{className:(0,Tt.default)("btn",{active:E===o}),style:y(E),key:E,onClick:()=>(_=>{o!==_&&u(_)})(E)},f.default.createElement("h4",{style:E===o?{color:"white"}:{}},b.get("title")))))),f.default.createElement("div",{className:"copy-to-clipboard"},f.default.createElement(Dp.CopyToClipboard,{text:d},f.default.createElement("button",null))),f.default.createElement("div",null,f.default.createElement(a,{language:h.get("syntax"),className:"curl microlight",renderPlainText:({children:E,PlainTextViewer:b})=>f.default.createElement(b,{className:"curl"},E)},d))))},O8=()=>({components:{RequestSnippets:_he},fn:{requestSnippetGenerator_curl_bash:x8,requestSnippetGenerator_curl_cmd:ghe,requestSnippetGenerator_curl_powershell:mhe},statePlugins:{requestSnippets:{selectors:X1}}});class IA extends f.Component{static defaultProps={collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:z.default.List([])};constructor(e,r){super(e,r);let{expanded:n,collapsedContent:i}=this.props;this.state={expanded:n,collapsedContent:i||IA.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:e,expanded:r,modelName:n}=this.props;e&&r&&this.props.onToggle(n,r)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}toggleCollapsed=()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})};onLoad=e=>{if(e&&this.props.layoutSelectors){const r=this.props.layoutSelectors.getScrollToKey();z.default.is(r,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}};render(){const{title:e,classes:r}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?f.default.createElement("span",{className:r||""},this.props.children):f.default.createElement("span",{className:r||"",ref:this.onLoad},f.default.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},e&&f.default.createElement("span",{className:"pointer"},e),f.default.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&f.default.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}}const whe=({initialTab:t,isExecute:e,schema:r,example:n})=>{const i=(0,f.useMemo)((()=>({example:"example",model:"model"})),[]),s=(0,f.useMemo)((()=>Object.keys(i)),[i]).includes(t)&&r&&!e?t:i.example,a=(c=>{const p=(0,f.useRef)();return(0,f.useEffect)((()=>{p.current=c})),p.current})(e),[o,u]=(0,f.useState)(s),l=(0,f.useCallback)((c=>{u(c.target.dataset.name)}),[]);return(0,f.useEffect)((()=>{a&&!e&&n&&u(i.example)}),[a,e,n]),{activeTab:o,onTabChange:l,tabs:i}};var xhe=({schema:t,example:e,isExecute:r=!1,specPath:n,includeWriteOnly:i=!1,includeReadOnly:s=!1,getComponent:a,getConfigs:o,specSelectors:u})=>{const{defaultModelRendering:l,defaultModelExpandDepth:c}=o(),p=a("ModelWrapper"),h=a("HighlightCode",!0),d=$a()(5).toString("base64"),g=$a()(5).toString("base64"),y=$a()(5).toString("base64"),v=$a()(5).toString("base64"),E=u.isOAS3(),{activeTab:b,tabs:_,onTabChange:w}=whe({initialTab:l,isExecute:r,schema:t,example:e});return f.default.createElement("div",{className:"model-example"},f.default.createElement("ul",{className:"tab",role:"tablist"},f.default.createElement("li",{className:(0,Tt.default)("tabitem",{active:b===_.example}),role:"presentation"},f.default.createElement("button",{"aria-controls":g,"aria-selected":b===_.example,className:"tablinks","data-name":"example",id:d,onClick:w,role:"tab"},r?"Edit Value":"Example Value")),t&&f.default.createElement("li",{className:(0,Tt.default)("tabitem",{active:b===_.model}),role:"presentation"},f.default.createElement("button",{"aria-controls":v,"aria-selected":b===_.model,className:(0,Tt.default)("tablinks",{inactive:r}),"data-name":"model",id:y,onClick:w,role:"tab"},E?"Schema":"Model"))),b===_.example&&f.default.createElement("div",{"aria-hidden":b!==_.example,"aria-labelledby":d,"data-name":"examplePanel",id:g,role:"tabpanel",tabIndex:"0"},e||f.default.createElement(h,null,"(no example available")),b===_.model&&f.default.createElement("div",{className:"model-container","aria-hidden":b===_.example,"aria-labelledby":y,"data-name":"modelPanel",id:v,role:"tabpanel",tabIndex:"0"},f.default.createElement(p,{schema:t,getComponent:a,getConfigs:o,specSelectors:u,expandDepth:c,specPath:n,includeReadOnly:s,includeWriteOnly:i})))};class Ahe extends f.Component{onToggle=(e,r)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,r)};render(){let{getComponent:e,getConfigs:r}=this.props;const n=e("Model");let i;return this.props.layoutSelectors&&(i=this.props.layoutSelectors.isShown(this.props.fullPath)),f.default.createElement("div",{className:"model-box"},f.default.createElement(n,(0,It.default)({},this.props,{getConfigs:r,expanded:i,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var R3,Ohe=(function(t){var e={};return be.d(e,t),e})({default:function(){return UH}});function d_(){return d_=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},d_.apply(null,arguments)}var C8=t=>f.createElement("svg",d_({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),R3||(R3=f.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},f.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 I3=t=>{const e=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(e)}catch{return e}};class Che extends Ohe.default{static propTypes={schema:O3.default.map.isRequired,getComponent:on.default.func.isRequired,getConfigs:on.default.func.isRequired,specSelectors:on.default.object.isRequired,name:on.default.string,displayName:on.default.string,isRef:on.default.bool,required:on.default.bool,expandDepth:on.default.number,depth:on.default.number,specPath:O3.default.list.isRequired,includeReadOnly:on.default.bool,includeWriteOnly:on.default.bool};getModelName=e=>e.indexOf("#/definitions/")!==-1?I3(e.replace(/^.*#\/definitions\//,"")):e.indexOf("#/components/schemas/")!==-1?I3(e.replace(/^.*#\/components\/schemas\//,"")):void 0;getRefSchema=e=>{let{specSelectors:r}=this.props;return r.findDefinition(e)};render(){let{getComponent:e,getConfigs:r,specSelectors:n,schema:i,required:s,name:a,isRef:o,specPath:u,displayName:l,includeReadOnly:c,includeWriteOnly:p}=this.props;const h=e("ObjectModel"),d=e("ArrayModel"),g=e("PrimitiveModel");let y="object",v=i&&i.get("$$ref"),E=i&&i.get("$ref");if(!a&&v&&(a=this.getModelName(v)),E){const _=this.getModelName(E),w=this.getRefSchema(_);z.Map.isMap(w)?(i=w.mergeDeep(i),v||(i=i.set("$$ref",E),v=E)):z.Map.isMap(i)&&i.size===1&&(i=null,a=E)}if(!i)return f.default.createElement("span",{className:"model model-title"},f.default.createElement("span",{className:"model-title__text"},l||a),!E&&f.default.createElement(C8,{height:"20px",width:"20px"}));const b=n.isOAS3()&&i.get("deprecated");switch(o=o!==void 0?o:!!v,y=i&&i.get("type")||y,y){case"object":return f.default.createElement(h,(0,It.default)({className:"object"},this.props,{specPath:u,getConfigs:r,schema:i,name:a,deprecated:b,isRef:o,includeReadOnly:c,includeWriteOnly:p}));case"array":return f.default.createElement(d,(0,It.default)({className:"array"},this.props,{getConfigs:r,schema:i,name:a,deprecated:b,required:s,includeReadOnly:c,includeWriteOnly:p}));default:return f.default.createElement(g,(0,It.default)({},this.props,{getComponent:e,getConfigs:r,schema:i,name:a,deprecated:b,required:s}))}}}class Rhe extends f.Component{getSchemaBasePath=()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"];getCollapsedContent=()=>" ";handleToggle=(e,r)=>{const{layoutActions:n}=this.props;n.show([...this.getSchemaBasePath(),e],r),r&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),e])};onLoadModels=e=>{e&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),e)};onLoadModel=e=>{if(e){const r=e.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),r],e)}};render(){let{specSelectors:e,getComponent:r,layoutSelectors:n,layoutActions:i,getConfigs:s}=this.props,a=e.definitions(),{docExpansion:o,defaultModelsExpandDepth:u}=s();if(!a.size||u<0)return null;const l=this.getSchemaBasePath();let c=n.isShown(l,u>0&&o!=="none");const p=e.isOAS3(),h=r("ModelWrapper"),d=r("Collapse"),g=r("ModelCollapse"),y=r("JumpToPath",!0),v=r("ArrowUpIcon"),E=r("ArrowDownIcon");return f.default.createElement("section",{className:c?"models is-open":"models",ref:this.onLoadModels},f.default.createElement("h4",null,f.default.createElement("button",{"aria-expanded":c,className:"models-control",onClick:()=>i.show(l,!c)},f.default.createElement("span",null,p?"Schemas":"Models"),c?f.default.createElement(v,null):f.default.createElement(E,null))),f.default.createElement(d,{isOpened:c},a.entrySeq().map((([b])=>{const _=[...l,b],w=z.default.List(_),S=e.specResolvedSubtree(_),A=e.specJson().getIn(_),I=z.Map.isMap(S)?S:z.default.Map(),T=z.Map.isMap(A)?A:z.default.Map(),k=I.get("title")||T.get("title")||b,D=n.isShown(_,!1);D&&I.size===0&&T.size>0&&this.props.specActions.requestResolvedSubtree(_);const R=f.default.createElement(h,{name:b,expandDepth:u,schema:I||z.default.Map(),displayName:k,fullPath:_,specPath:w,getComponent:r,specSelectors:e,getConfigs:s,layoutSelectors:n,layoutActions:i,includeReadOnly:!0,includeWriteOnly:!0}),$=f.default.createElement("span",{className:"model-box"},f.default.createElement("span",{className:"model model-title"},k));return f.default.createElement("div",{id:`model-${b}`,className:"model-container",key:`models-section-${b}`,"data-name":b,ref:this.onLoadModel},f.default.createElement("span",{className:"models-jump-to-path"},f.default.createElement(y,{path:w})),f.default.createElement(g,{classes:"model-box",collapsedContent:this.getCollapsedContent(b),onToggle:this.handleToggle,title:$,displayName:k,modelName:b,specPath:w,layoutSelectors:n,layoutActions:i,hideSelfOnExpand:!0,expanded:u>0&&D},R))})).toArray()))}}var Ihe=({value:t,getComponent:e})=>{let r=e("ModelCollapse"),n=f.default.createElement("span",null,"Array [ ",t.count()," ]");return f.default.createElement("span",{className:"prop-enum"},"Enum:",f.default.createElement("br",null),f.default.createElement(r,{collapsedContent:n},"[ ",t.map(String).join(", ")," ]"))};function h_(t){return t.match(/^(?:[a-z]+:)?\/\//i)}function The(t,e){return t?h_(t)?(function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n})(t):new URL(t,e).href:e}function ii(t,e,{selectedServer:r=""}={}){try{return(function(i,s,{selectedServer:a=""}={}){if(!i)return;if(h_(i))return i;const o=The(a,s);return h_(o)?new URL(i,o).href:new URL(i,window.location.href).href})(t,e,{selectedServer:r})}catch{return}}function lr(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)}`,i=new URL(e,n),s=i.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(s.toLowerCase())?r:i.origin===n?e.startsWith("/")?`${i.pathname}${i.search}${i.hash}`:e.startsWith("./")?`.${i.pathname}${i.search}${i.hash}`:e.startsWith("../")?`..${i.pathname}${i.search}${i.hash}`:`${i.pathname.substring(1)}${i.search}${i.hash}`:String(i)}catch{return r}}class Phe extends f.Component{render(){let{schema:e,name:r,displayName:n,isRef:i,getComponent:s,getConfigs:a,depth:o,onToggle:u,expanded:l,specPath:c,...p}=this.props,{specSelectors:h,expandDepth:d,includeReadOnly:g,includeWriteOnly:y}=p;const{isOAS3:v}=h,E=o>2||o===2&&c.last()!=="items";if(!e)return null;const{showExtensions:b}=a(),_=b?qs(e):(0,z.List)();let w=e.get("description"),S=e.get("properties"),A=e.get("additionalProperties"),I=e.get("title")||n||r,T=e.get("required"),k=e.filter(((V,me)=>["maxProperties","minProperties","nullable","example"].indexOf(me)!==-1)),D=e.get("deprecated"),R=e.getIn(["externalDocs","url"]),$=e.getIn(["externalDocs","description"]);const M=s("JumpToPath",!0),K=s("Markdown",!0),ee=s("Model"),G=s("ModelCollapse"),Z=s("Property"),X=s("Link"),te=s("ModelExtensions"),ce=()=>f.default.createElement("span",{className:"model-jump-to-path"},f.default.createElement(M,{path:c})),ie=f.default.createElement("span",null,f.default.createElement("span",null,"{"),"...",f.default.createElement("span",null,"}"),i?f.default.createElement(ce,null):""),ue=h.isOAS3()?e.get("allOf"):null,ye=h.isOAS3()?e.get("anyOf"):null,he=h.isOAS3()?e.get("oneOf"):null,re=h.isOAS3()?e.get("not"):null,W=I&&f.default.createElement("span",{className:"model-title"},i&&e.get("$$ref")&&f.default.createElement("span",{className:(0,Tt.default)("model-hint",{"model-hint--embedded":E})},e.get("$$ref")),f.default.createElement("span",{className:"model-title__text"},I));return f.default.createElement("span",{className:"model"},f.default.createElement(G,{modelName:r,title:W,onToggle:u,expanded:!!l||o<=d,collapsedContent:ie},f.default.createElement("span",{className:"brace-open object"},"{"),i?f.default.createElement(ce,null):null,f.default.createElement("span",{className:"inner-object"},f.default.createElement("table",{className:"model"},f.default.createElement("tbody",null,w?f.default.createElement("tr",{className:"description"},f.default.createElement("td",null,"description:"),f.default.createElement("td",null,f.default.createElement(K,{source:w}))):null,R&&f.default.createElement("tr",{className:"external-docs"},f.default.createElement("td",null,"externalDocs:"),f.default.createElement("td",null,f.default.createElement(X,{target:"_blank",href:lr(R)},$||R))),D?f.default.createElement("tr",{className:"property"},f.default.createElement("td",null,"deprecated:"),f.default.createElement("td",null,"true")):null,S&&S.size?S.entrySeq().filter((([,V])=>(!V.get("readOnly")||g)&&(!V.get("writeOnly")||y))).map((([V,me])=>{let ve=v()&&me.get("deprecated"),Me=z.List.isList(T)&&T.contains(V),Be=["property-row"];return ve&&Be.push("deprecated"),Me&&Be.push("required"),f.default.createElement("tr",{key:V,className:Be.join(" ")},f.default.createElement("td",null,V,Me&&f.default.createElement("span",{className:"star"},"*")),f.default.createElement("td",null,f.default.createElement(ee,(0,It.default)({key:`object-${r}-${V}_${me}`},p,{required:Me,getComponent:s,specPath:c.push("properties",V),getConfigs:a,schema:me,depth:o+1}))))})).toArray():null,_.size===0?null:f.default.createElement(f.default.Fragment,null,f.default.createElement("tr",null,f.default.createElement("td",null," ")),f.default.createElement(te,{extensions:_,propClass:"extension"})),A&&A.size?f.default.createElement("tr",null,f.default.createElement("td",null,"< * >:"),f.default.createElement("td",null,f.default.createElement(ee,(0,It.default)({},p,{required:!1,getComponent:s,specPath:c.push("additionalProperties"),getConfigs:a,schema:A,depth:o+1})))):null,ue?f.default.createElement("tr",null,f.default.createElement("td",null,"allOf ->"),f.default.createElement("td",null,ue.map(((V,me)=>f.default.createElement("div",{key:me},f.default.createElement(ee,(0,It.default)({},p,{required:!1,getComponent:s,specPath:c.push("allOf",me),getConfigs:a,schema:V,depth:o+1}))))))):null,ye?f.default.createElement("tr",null,f.default.createElement("td",null,"anyOf ->"),f.default.createElement("td",null,ye.map(((V,me)=>f.default.createElement("div",{key:me},f.default.createElement(ee,(0,It.default)({},p,{required:!1,getComponent:s,specPath:c.push("anyOf",me),getConfigs:a,schema:V,depth:o+1}))))))):null,he?f.default.createElement("tr",null,f.default.createElement("td",null,"oneOf ->"),f.default.createElement("td",null,he.map(((V,me)=>f.default.createElement("div",{key:me},f.default.createElement(ee,(0,It.default)({},p,{required:!1,getComponent:s,specPath:c.push("oneOf",me),getConfigs:a,schema:V,depth:o+1}))))))):null,re?f.default.createElement("tr",null,f.default.createElement("td",null,"not ->"),f.default.createElement("td",null,f.default.createElement("div",null,f.default.createElement(ee,(0,It.default)({},p,{required:!1,getComponent:s,specPath:c.push("not"),getConfigs:a,schema:re,depth:o+1}))))):null))),f.default.createElement("span",{className:"brace-close"},"}")),k.size?k.entrySeq().map((([V,me])=>f.default.createElement(Z,{key:`${V}-${me}`,propKey:V,propVal:me,propClass:"property"}))):null)}}class khe extends f.Component{render(){let{getComponent:e,getConfigs:r,schema:n,depth:i,expandDepth:s,name:a,displayName:o,specPath:u}=this.props,l=n.get("description"),c=n.get("items"),p=n.get("title")||o||a,h=n.filter(((S,A)=>["type","items","description","$$ref","externalDocs"].indexOf(A)===-1)),d=n.getIn(["externalDocs","url"]),g=n.getIn(["externalDocs","description"]);const y=e("Markdown",!0),v=e("ModelCollapse"),E=e("Model"),b=e("Property"),_=e("Link"),w=p&&f.default.createElement("span",{className:"model-title"},f.default.createElement("span",{className:"model-title__text"},p));return f.default.createElement("span",{className:"model"},f.default.createElement(v,{title:w,expanded:i<=s,collapsedContent:"[...]"},"[",h.size?h.entrySeq().map((([S,A])=>f.default.createElement(b,{key:`${S}-${A}`,propKey:S,propVal:A,propClass:"property"}))):null,l?f.default.createElement(y,{source:l}):h.size?f.default.createElement("div",{className:"markdown"}):null,d&&f.default.createElement("div",{className:"external-docs"},f.default.createElement(_,{target:"_blank",href:lr(d)},g||d)),f.default.createElement("span",null,f.default.createElement(E,(0,It.default)({},this.props,{getConfigs:r,specPath:u.push("items"),name:null,schema:c,required:!1,depth:i+1}))),"]"))}}const gc="property primitive";class jhe extends f.Component{render(){let{schema:e,getComponent:r,getConfigs:n,name:i,displayName:s,depth:a,expandDepth:o}=this.props;const{showExtensions:u}=n();if(!e||!e.get)return f.default.createElement("div",null);let l=e.get("type"),c=e.get("format"),p=e.get("xml"),h=e.get("enum"),d=e.get("title")||s||i,g=e.get("description");const y=qs(e);let v=e.filter(((D,R)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(R)===-1)).filterNot(((D,R)=>y.has(R))),E=e.getIn(["externalDocs","url"]),b=e.getIn(["externalDocs","description"]);const _=r("Markdown",!0),w=r("EnumModel"),S=r("Property"),A=r("ModelCollapse"),I=r("Link"),T=r("ModelExtensions"),k=d&&f.default.createElement("span",{className:"model-title"},f.default.createElement("span",{className:"model-title__text"},d));return f.default.createElement("span",{className:"model"},f.default.createElement(A,{title:k,expanded:a<=o,collapsedContent:"[...]"},f.default.createElement("span",{className:"prop"},i&&a>1&&f.default.createElement("span",{className:"prop-name"},d),f.default.createElement("span",{className:"prop-type"},l),c&&f.default.createElement("span",{className:"prop-format"},"($",c,")"),v.size?v.entrySeq().map((([D,R])=>f.default.createElement(S,{key:`${D}-${R}`,propKey:D,propVal:R,propClass:gc}))):null,u&&y.size>0?f.default.createElement(T,{extensions:y,propClass:`${gc} extension`}):null,g?f.default.createElement(_,{source:g}):null,E&&f.default.createElement("div",{className:"external-docs"},f.default.createElement(I,{target:"_blank",href:lr(E)},b||E)),p&&p.size?f.default.createElement("span",null,f.default.createElement("br",null),f.default.createElement("span",{className:gc},"xml:"),p.entrySeq().map((([D,R])=>f.default.createElement("span",{key:`${D}-${R}`,className:gc},f.default.createElement("br",null),"   ",D,": ",String(R)))).toArray()):null,h&&f.default.createElement(w,{value:h,getComponent:r}))))}}class Nhe extends f.default.Component{UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){this.props.currentScheme&&e.schemes.includes(this.props.currentScheme)||this.setScheme(e.schemes.first())}onChange=e=>{this.setScheme(e.target.value)};setScheme=e=>{let{path:r,method:n,specActions:i}=this.props;i.setScheme(e,r,n)};render(){let{schemes:e,currentScheme:r}=this.props;return f.default.createElement("label",{htmlFor:"schemes"},f.default.createElement("span",{className:"schemes-title"},"Schemes"),f.default.createElement("select",{onChange:this.onChange,value:r,id:"schemes"},e.valueSeq().map((n=>f.default.createElement("option",{value:n,key:n},n))).toArray()))}}class Mhe extends f.default.Component{render(){const{specActions:e,specSelectors:r,getComponent:n}=this.props,i=r.operationScheme(),s=r.schemes(),a=n("schemes");return s&&s.size?f.default.createElement(a,{currentScheme:i,schemes:s,specActions:e}):null}}var R8=(function(t){var e={};return be.d(e,t),e})({default:function(){return HH}});const ba={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,z.List)()};class Dhe extends f.Component{static defaultProps=ba;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:i,getComponent:s,fn:a,disabled:o}=this.props;const u=e&&e.get?e.get("format"):null,l=e&&e.get?e.get("type"):null,c=a.getSchemaObjectType(e),p=a.isFileUploadIntended(e);let h=g=>s(g,!1,{failSilently:!0}),d=l?h(u?`JsonSchema_${l}_${u}`:`JsonSchema_${l}`):s("JsonSchema_string");return p||!z.List.isList(l)||c!=="array"&&c!=="object"||(d=s("JsonSchema_object")),d||(d=s("JsonSchema_string")),f.default.createElement(d,(0,It.default)({},this.props,{errors:r,fn:a,getComponent:s,value:n,onChange:i,schema:e,disabled:o}))}}class Fhe extends f.Component{static defaultProps=ba;onChange=e=>{const r=this.props.schema&&this.props.schema.get("type")==="file"?e.target.files[0]:e.target.value;this.props.onChange(r,this.props.keyName)};onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,schema:n,errors:i,required:s,description:a,disabled:o}=this.props;const u=n&&n.get?n.get("enum"):null,l=n&&n.get?n.get("format"):null,c=n&&n.get?n.get("type"):null,p=n&&n.get?n.get("in"):null;if(r?(Pl(r)||typeof r=="object")&&(r=Cr(r)):r="",i=i.toJS?i.toJS():[],u){const g=e("Select");return f.default.createElement(g,{className:i.length?"invalid":"",title:i.length?i:"",allowedValues:[...u],value:r,allowEmptyValue:!s,disabled:o,onChange:this.onEnumChange})}const h=o||p&&p==="formData"&&!("FormData"in window),d=e("Input");return c&&c==="file"?f.default.createElement(d,{type:"file",className:i.length?"invalid":"",title:i.length?i:"",onChange:this.onChange,disabled:h}):f.default.createElement(R8.default,{type:l&&l==="password"?"password":"text",className:i.length?"invalid":"",title:i.length?i:"",value:r,minLength:0,debounceTimeout:350,placeholder:a,onChange:this.onChange,disabled:h})}}class qhe extends f.PureComponent{static defaultProps=ba;constructor(e,r){super(e,r),this.state={value:WS(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){const r=WS(e.value);r!==this.state.value&&this.setState({value:r}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}onChange=()=>{this.props.onChange(this.state.value)};onItemChange=(e,r)=>{this.setState((({value:n})=>({value:n.set(r,e)})),this.onChange)};removeItem=e=>{this.setState((({value:r})=>({value:r.delete(e)})),this.onChange)};addItem=()=>{const{fn:e}=this.props;let r=WS(this.state.value);this.setState((()=>({value:r.push(e.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)};onEnumChange=e=>{this.setState((()=>({value:e})),this.onChange)};render(){let{getComponent:e,required:r,schema:n,errors:i,fn:s,disabled:a}=this.props;i=i.toJS?i.toJS():Array.isArray(i)?i:[];const o=i.filter((S=>typeof S=="string")),u=i.filter((S=>S.needRemove!==void 0)).map((S=>S.error)),l=this.state.value,c=!!(l&&l.count&&l.count()>0),p=n.getIn(["items","enum"]),h=n.get("items"),d=s.getSchemaObjectType(h),g=s.getSchemaObjectTypeLabel(h),y=n.getIn(["items","format"]),v=n.get("items");let E,b=!1,_=d==="file"||d==="string"&&y==="binary";if(d&&y?E=e(`JsonSchema_${d}_${y}`):d!=="boolean"&&d!=="array"&&d!=="object"||(E=e(`JsonSchema_${d}`)),!z.List.isList(h?.get("type"))||d!=="array"&&d!=="object"||(E=e("JsonSchema_object")),E||_||(b=!0),p){const S=e("Select");return f.default.createElement(S,{className:i.length?"invalid":"",title:i.length?i:"",multiple:!0,value:l,disabled:a,allowedValues:p,allowEmptyValue:!r,onChange:this.onEnumChange})}const w=e("Button");return f.default.createElement("div",{className:"json-schema-array"},c?l.map(((S,A)=>{const I=(0,z.fromJS)([...i.filter((T=>T.index===A)).map((T=>T.error))]);return f.default.createElement("div",{key:A,className:"json-schema-form-item"},_?f.default.createElement(T8,{value:S,onChange:T=>this.onItemChange(T,A),disabled:a,errors:I,getComponent:e}):b?f.default.createElement(I8,{value:S,onChange:T=>this.onItemChange(T,A),disabled:a,errors:I}):f.default.createElement(E,(0,It.default)({},this.props,{value:S,onChange:T=>this.onItemChange(T,A),disabled:a,errors:I,schema:v,getComponent:e,fn:s})),a?null:f.default.createElement(w,{className:`btn btn-sm json-schema-form-item-remove ${u.length?"invalid":null}`,title:u.length?u:"",onClick:()=>this.removeItem(A)}," - "))})):null,a?null:f.default.createElement(w,{className:`btn btn-sm json-schema-form-item-add ${o.length?"invalid":null}`,title:o.length?o:"",onClick:this.addItem},"Add ",g," item"))}}class I8 extends f.Component{static defaultProps=ba;onChange=e=>{const r=e.target.value;this.props.onChange(r,this.props.keyName)};render(){let{value:e,errors:r,description:n,disabled:i}=this.props;return e?(Pl(e)||typeof e=="object")&&(e=Cr(e)):e="",r=r.toJS?r.toJS():[],f.default.createElement(R8.default,{type:"text",className:r.length?"invalid":"",title:r.length?r:"",value:e,minLength:0,debounceTimeout:350,placeholder:n,onChange:this.onChange,disabled:i})}}class T8 extends f.Component{static defaultProps=ba;onFileChange=e=>{const r=e.target.files[0];this.props.onChange(r,this.props.keyName)};render(){let{getComponent:e,errors:r,disabled:n}=this.props;const i=e("Input"),s=n||!("FormData"in window);return f.default.createElement(i,{type:"file",className:r.length?"invalid":"",title:r.length?r:"",onChange:this.onFileChange,disabled:s})}}class Bhe extends f.Component{static defaultProps=ba;onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:r,errors:n,schema:i,required:s,disabled:a}=this.props;n=n.toJS?n.toJS():[];let o=i&&i.get?i.get("enum"):null,u=!o||!s,l=!o&&["true","false"];const c=e("Select");return f.default.createElement(c,{className:n.length?"invalid":"",title:n.length?n:"",value:String(r),disabled:a,allowedValues:o?[...o]:l,allowEmptyValue:u,onChange:this.onEnumChange})}}const $he=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 i=e.error,s=`/${e.propKey}`;for(;typeof i=="object";){const a=i.propKey!==void 0?i.propKey:i.index;if(a===void 0||(s+=`/${a}`,!i.error))break;i=i.error}return`${s}: ${i}`}));class Lhe extends f.PureComponent{constructor(){super()}static defaultProps=ba;onChange=e=>{this.props.onChange(e)};handleOnChange=e=>{const r=e.target.value;this.onChange(r)};render(){let{getComponent:e,value:r,errors:n,disabled:i}=this.props;const s=e("TextArea");return n=n.toJS?n.toJS():Array.isArray(n)?n:[],f.default.createElement("div",null,f.default.createElement(s,{className:(0,Tt.default)({invalid:n.length}),title:n.length?$he(n).join(", "):"",value:Cr(r),disabled:i,onChange:this.handleOnChange}))}}function WS(t){return z.List.isList(t)?t:Array.isArray(t)?(0,z.fromJS)(t):(0,z.List)()}const Uhe=({extensions:t,propClass:e=""})=>t.entrySeq().map((([r,n])=>{const i=eo(n)??null;return f.default.createElement("tr",{key:r,className:e},f.default.createElement("td",null,r),f.default.createElement("td",null,JSON.stringify(i)))})).toArray();var Zi=(function(t){var e={};return be.d(e,t),e})({default:function(){return GH}});const Vhe=(t,e)=>{const r=z.Map.isMap(t);if(!r&&!(0,Zi.default)(t))return!1;const n=r?t.get("type"):t.type;return e===n||Array.isArray(e)&&e.includes(n)},P8=(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<${P8(n,e)}>`:"array<any>":r},zhe=t=>P8(eo(t));var k8=()=>({components:{modelExample:xhe,ModelWrapper:Ahe,ModelCollapse:IA,Model:Che,Models:Rhe,EnumModel:Ihe,ObjectModel:Phe,ArrayModel:khe,PrimitiveModel:jhe,ModelExtensions:Uhe,schemes:Nhe,SchemesContainer:Mhe,...Z1},fn:{hasSchemaType:Vhe,getSchemaObjectTypeLabel:zhe}}),Whe=be(123),j8=be.n(Whe),N8=(function(t){var e={};return be.d(e,t),e})({default:function(){return rK}}),wi=(function(t){var e={};return be.d(e,t),e})({default:function(){return sK}});const JS=t=>e=>Array.isArray(t)&&Array.isArray(e)&&t.length===e.length&&t.every(((r,n)=>r===e[n])),Jhe=(...t)=>t;class Hhe extends Map{delete(e){const r=Array.from(this.keys()).find(JS(e));return super.delete(r)}get(e){const r=Array.from(this.keys()).find(JS(e));return super.get(r)}has(e){return Array.from(this.keys()).findIndex(JS(e))!==-1}}var jl=(t,e=Jhe)=>{const{Cache:r}=Wo.default;Wo.default.Cache=Hhe;const n=(0,Wo.default)(t,e);return Wo.default.Cache=r,n};const T3={string:t=>t.pattern?(e=>{try{const r=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),n=e.replace(r,"100"),i=new N8.default(n);return i.max=100,i.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},P3=t=>{t=Hs(t);let{type:e,format:r}=t,n=T3[`${e}_${r}`]||T3[e];return Xi(n)?n(t):"Unknown Type: "+t.type},Khe=t=>l8(t,"$$ref",(e=>typeof e=="string"&&e.indexOf("#")>-1)),M8=["maxProperties","minProperties"],D8=["minItems","maxItems"],F8=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],Ghe=["minLength","maxLength"],za=(t,e,r={})=>{const n={...t};if(["example","default","enum","xml","type",...M8,...D8,...F8,...Ghe].forEach((i=>(s=>{n[s]===void 0&&e[s]!==void 0&&(n[s]=e[s])})(i))),e.required!==void 0&&Array.isArray(e.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),e.required.forEach((i=>{n.required.includes(i)||n.required.push(i)}))),e.properties){n.properties||(n.properties={});let i=Hs(e.properties);for(let s in i)Object.prototype.hasOwnProperty.call(i,s)&&(i[s]&&i[s].deprecated||i[s]&&i[s].readOnly&&!r.includeReadOnly||i[s]&&i[s].writeOnly&&!r.includeWriteOnly||n.properties[s]||(n.properties[s]=i[s],!e.required&&Array.isArray(e.required)&&e.required.indexOf(s)!==-1&&(n.required?n.required.push(s):n.required=[s])))}return e.items&&(n.items||(n.items={}),n.items=za(n.items,e.items,r)),n},jn=(t,e={},r=void 0,n=!1)=>{t&&Xi(t.toJS)&&(t=t.toJS());let i=r!==void 0||t&&t.example!==void 0||t&&t.default!==void 0;const s=!i&&t&&t.oneOf&&t.oneOf.length>0,a=!i&&t&&t.anyOf&&t.anyOf.length>0;if(!i&&(s||a)){const M=Hs(s?t.oneOf[0]:t.anyOf[0]);if(!(t=za(t,M,e)).xml&&M.xml&&(t.xml=M.xml),t.example!==void 0&&M.example!==void 0)i=!0;else if(M.properties){t.properties||(t.properties={});let K=Hs(M.properties);for(let ee in K)Object.prototype.hasOwnProperty.call(K,ee)&&(K[ee]&&K[ee].deprecated||K[ee]&&K[ee].readOnly&&!e.includeReadOnly||K[ee]&&K[ee].writeOnly&&!e.includeWriteOnly||t.properties[ee]||(t.properties[ee]=K[ee],!M.required&&Array.isArray(M.required)&&M.required.indexOf(ee)!==-1&&(t.required?t.required.push(ee):t.required=[ee])))}}const o={};let{xml:u,type:l,example:c,properties:p,additionalProperties:h,items:d}=t||{},{includeReadOnly:g,includeWriteOnly:y}=e;u=u||{};let v,{name:E,prefix:b,namespace:_}=u,w={};n&&(E=E||"notagname",v=(b?b+":":"")+E,_)&&(o[b?"xmlns:"+b:"xmlns"]=_),n&&(w[v]=[]);const S=M=>M.some((K=>Object.prototype.hasOwnProperty.call(t,K)));t&&!l&&(p||h||S(M8)?l="object":d||S(D8)?l="array":S(F8)?(l="number",t.type="number"):i||t.enum||(l="string",t.type="string"));const A=M=>{if(t?.maxItems!=null&&(M=M.slice(0,t?.maxItems)),t?.minItems!=null){let K=0;for(;M.length<t?.minItems;)M.push(M[K++%M.length])}return M},I=Hs(p);let T,k=0;const D=()=>t&&t.maxProperties!==null&&t.maxProperties!==void 0&&k>=t.maxProperties,R=M=>!t||t.maxProperties===null||t.maxProperties===void 0||!D()&&(!(K=>!(t&&t.required&&t.required.length&&t.required.includes(K)))(M)||t.maxProperties-k-(()=>{if(!t||!t.required)return 0;let K=0;return n?t.required.forEach((ee=>K+=w[ee]===void 0?0:1)):t.required.forEach((ee=>K+=w[v]?.find((G=>G[ee]!==void 0))===void 0?0:1)),t.required.length-K})()>0);if(T=n?(M,K=void 0)=>{if(t&&I[M]){if(I[M].xml=I[M].xml||{},I[M].xml.attribute){const G=Array.isArray(I[M].enum)?I[M].enum[0]:void 0,Z=I[M].example,X=I[M].default;return void(o[I[M].xml.name||M]=Z!==void 0?Z:X!==void 0?X:G!==void 0?G:P3(I[M]))}I[M].xml.name=I[M].xml.name||M}else I[M]||h===!1||(I[M]={xml:{name:M}});let ee=jn(t&&I[M]||void 0,e,K,n);R(M)&&(k++,Array.isArray(ee)?w[v]=w[v].concat(ee):w[v].push(ee))}:(M,K)=>{if(R(M)){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===M){for(let ee in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[ee])!==-1){w[M]=ee;break}}else w[M]=jn(I[M],e,K,n);k++}},i){let M;if(M=Khe(r!==void 0?r:c!==void 0?c:t.default),!n){if(typeof M=="number"&&l==="string")return`${M}`;if(typeof M!="string"||l==="string")return M;try{return JSON.parse(M)}catch{return M}}if(t||(l=Array.isArray(M)?"array":typeof M),l==="array"){if(!Array.isArray(M)){if(typeof M=="string")return M;M=[M]}const K=t?t.items:void 0;K&&(K.xml=K.xml||u||{},K.xml.name=K.xml.name||u.name);let ee=M.map((G=>jn(K,e,G,n)));return ee=A(ee),u.wrapped?(w[v]=ee,(0,wi.default)(o)||w[v].push({_attr:o})):w=ee,w}if(l==="object"){if(typeof M=="string")return M;for(let K in M)Object.prototype.hasOwnProperty.call(M,K)&&(t&&I[K]&&I[K].readOnly&&!g||t&&I[K]&&I[K].writeOnly&&!y||(t&&I[K]&&I[K].xml&&I[K].xml.attribute?o[I[K].xml.name||K]=M[K]:T(K,M[K])));return(0,wi.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,wi.default)(o)?M:[{_attr:o},M],w}if(l==="object"){for(let M in I)Object.prototype.hasOwnProperty.call(I,M)&&(I[M]&&I[M].deprecated||I[M]&&I[M].readOnly&&!g||I[M]&&I[M].writeOnly&&!y||T(M));if(n&&o&&w[v].push({_attr:o}),D())return w;if(h===!0)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},k++;else if(h){const M=Hs(h),K=jn(M,e,void 0,n);if(n&&M.xml&&M.xml.name&&M.xml.name!=="notagname")w[v].push(K);else{const ee=M["x-additionalPropertiesName"]||"additionalProp",G=t.minProperties!==null&&t.minProperties!==void 0&&k<t.minProperties?t.minProperties-k:3;for(let Z=1;Z<=G;Z++){if(D())return w;if(n){const X={};X[ee+Z]=K.notagname,w[v].push(X)}else w[ee+Z]=K;k++}}}return w}if(l==="array"){if(!d)return;let M;if(n&&(d.xml=d.xml||t?.xml||{},d.xml.name=d.xml.name||u.name),Array.isArray(d.anyOf))M=d.anyOf.map((K=>jn(za(K,d,e),e,void 0,n)));else if(Array.isArray(d.oneOf))M=d.oneOf.map((K=>jn(za(K,d,e),e,void 0,n)));else{if(!(!n||n&&u.wrapped))return jn(d,e,void 0,n);M=[jn(d,e,void 0,n)]}return M=A(M),n&&u.wrapped?(w[v]=M,(0,wi.default)(o)||w[v].push({_attr:o}),w):M}let $;if(t&&Array.isArray(t.enum))$=va(t.enum)[0];else{if(!t)return;if($=P3(t),typeof $=="number"){let M=t.minimum;M!=null&&(t.exclusiveMinimum&&M++,$=M);let K=t.maximum;K!=null&&(t.exclusiveMaximum&&K--,$=K)}if(typeof $=="string"&&(t.maxLength!==null&&t.maxLength!==void 0&&($=$.slice(0,t.maxLength)),t.minLength!==null&&t.minLength!==void 0)){let M=0;for(;$.length<t.minLength;)$+=$[M++%$.length]}}if(l!=="file")return n?(w[v]=(0,wi.default)(o)?$:[{_attr:o},$],w):$},k3=t=>(t.schema&&(t=t.schema),t.properties&&(t.type="object"),t),m_=(t,e,r)=>{const n=jn(t,e,r,!0);if(n)return typeof n=="string"?n:j8()(n,{declaration:!0,indent:" "})},g_=(t,e,r)=>jn(t,e,r,!1),q8=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],j3=jl(m_,q8),N3=jl(g_,q8),Yhe=t=>eo(t)?.type??"string",Xhe=[{when:/json/,shouldStringifyTypes:["string"]}],Zhe=["object"];var Qhe=t=>(e,r,n,i)=>{const{fn:s}=t(),a=s.memoizedSampleFromSchema(e,r,i),o=typeof a,u=Xhe.reduce(((l,c)=>c.when.test(n)?[...l,...c.shouldStringifyTypes]:l),Zhe);return(0,a8.default)(u,(l=>l===o))?JSON.stringify(a,null,2):a},eme=t=>(e,r,n,i)=>{const{fn:s}=t(),a=s.getJsonSampleSchema(e,r,n,i);let o;try{o=Ki.default.dump(Ki.default.load(a),{lineWidth:-1},{schema:Ki.JSON_SCHEMA}),o[o.length-1]===`
275
+ `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},tme=t=>(e,r,n)=>{const{fn:i}=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"?>
276
+ <!-- XML example cannot be generated; root element name is undefined -->`;if(e.$$ref){let s=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=s[1]}}return i.memoizedCreateXMLExample(e,r,n)},rme=t=>(e,r="",n={},i=void 0)=>{const{fn:s}=t();return typeof e?.toJS=="function"&&(e=e.toJS()),typeof i?.toJS=="function"&&(i=i.toJS()),/xml/.test(r)?s.getXmlSampleSchema(e,n,i):/(yaml|yml)/.test(r)?s.getYamlSampleSchema(e,n,r,i):s.getJsonSampleSchema(e,n,r,i)},B8=({getSystem:t})=>{const e=Qhe(t),r=eme(t),n=tme(t),i=rme(t);return{fn:{jsonSchema5:{inferSchema:k3,sampleFromSchema:g_,sampleFromSchemaGeneric:jn,createXMLExample:m_,memoizedSampleFromSchema:N3,memoizedCreateXMLExample:j3,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:za},inferSchema:k3,sampleFromSchema:g_,sampleFromSchemaGeneric:jn,createXMLExample:m_,memoizedSampleFromSchema:N3,memoizedCreateXMLExample:j3,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:za,getSchemaObjectType:Yhe}}},Fp=(function(t){var e={};return be.d(e,t),e})({default:function(){return oK}});const nme=["get","put","post","delete","options","head","patch","trace"],Mi=t=>t||(0,z.Map)(),ime=(0,at.createSelector)(Mi,(t=>t.get("lastError"))),sme=(0,at.createSelector)(Mi,(t=>t.get("url"))),ame=(0,at.createSelector)(Mi,(t=>t.get("spec")||"")),ome=(0,at.createSelector)(Mi,(t=>t.get("specSource")||"not-editor")),TA=(0,at.createSelector)(Mi,(t=>t.get("json",(0,z.Map)()))),ume=(0,at.createSelector)(TA,(t=>t.toJS())),lme=(0,at.createSelector)(Mi,(t=>t.get("resolved",(0,z.Map)()))),cme=(t,e)=>t.getIn(["resolvedSubtrees",...e],void 0),$8=(t,e)=>z.Map.isMap(t)&&z.Map.isMap(e)?e.get("$$ref")?e:(0,z.OrderedMap)().mergeWith($8,t,e):e,ci=(0,at.createSelector)(Mi,(t=>(0,z.OrderedMap)().mergeWith($8,t.get("json"),t.get("resolvedSubtrees")))),pn=t=>TA(t),fme=(0,at.createSelector)(pn,(()=>!1)),L8=(0,at.createSelector)(pn,(t=>s4(t&&t.get("info")))),pme=(0,at.createSelector)(pn,(t=>s4(t&&t.get("externalDocs")))),U8=(0,at.createSelector)(L8,(t=>t&&t.get("version"))),dme=(0,at.createSelector)(U8,(t=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(t).slice(1))),V8=(0,at.createSelector)(ci,(t=>t.get("paths"))),hme=(0,Fp.default)(["get","put","post","delete","options","head","patch"]),z8=(0,at.createSelector)(V8,(t=>{let e=(0,z.List)();return!z.Map.isMap(t)||t.isEmpty()||t.forEach(((r,n)=>{if(!r||!r.forEach)return{};r.forEach(((i,s)=>{nme.indexOf(s)<0||(e=e.push((0,z.fromJS)({path:n,method:s,operation:i,id:`${s}-${n}`})))}))})),e})),W8=(0,at.createSelector)(pn,(t=>(0,z.Set)(t.get("consumes")))),J8=(0,at.createSelector)(pn,(t=>(0,z.Set)(t.get("produces")))),mme=(0,at.createSelector)(pn,(t=>t.get("security",(0,z.List)()))),gme=(0,at.createSelector)(pn,(t=>t.get("securityDefinitions"))),yme=(t,e)=>{const r=t.getIn(["resolvedSubtrees","definitions",e],null),n=t.getIn(["json","definitions",e],null);return r||n||null},vme=(0,at.createSelector)(pn,(t=>{const e=t.get("definitions");return z.Map.isMap(e)?e:(0,z.Map)()})),bme=(0,at.createSelector)(pn,(t=>t.get("basePath"))),Eme=(0,at.createSelector)(pn,(t=>t.get("host"))),Sme=(0,at.createSelector)(pn,(t=>t.get("schemes",(0,z.Map)()))),H8=(0,at.createSelector)([z8,W8,J8],((t,e,r)=>t.map((n=>n.update("operation",(i=>z.Map.isMap(i)?i.withMutations((s=>(s.get("consumes")||s.update("consumes",(a=>(0,z.Set)(a).merge(e))),s.get("produces")||s.update("produces",(a=>(0,z.Set)(a).merge(r))),s))):(0,z.Map)())))))),PA=(0,at.createSelector)(pn,(t=>{const e=t.get("tags",(0,z.List)());return z.List.isList(e)?e.filter((r=>z.Map.isMap(r))):(0,z.List)()})),K8=(t,e)=>(PA(t)||(0,z.List)()).filter(z.Map.isMap).find((r=>r.get("name")===e),(0,z.Map)()),G8=(0,at.createSelector)(H8,PA,((t,e)=>t.reduce(((r,n)=>{let i=(0,z.Set)(n.getIn(["operation","tags"]));return i.count()<1?r.update("default",(0,z.List)(),(s=>s.push(n))):i.reduce(((s,a)=>s.update(a,(0,z.List)(),(o=>o.push(n)))),r)}),e.reduce(((r,n)=>r.set(n.get("name"),(0,z.List)())),(0,z.OrderedMap)())))),_me=t=>({getConfigs:e})=>{let{tagsSorter:r,operationsSorter:n}=e();return G8(t).sortBy(((i,s)=>s),((i,s)=>{let a=typeof r=="function"?r:v3.tagsSorter[r];return a?a(i,s):null})).map(((i,s)=>{let a=typeof n=="function"?n:v3.operationsSorter[n],o=a?i.sort(a):i;return(0,z.Map)({tagDetails:K8(t,s),operations:o})}))},Y8=(0,at.createSelector)(Mi,(t=>t.get("responses",(0,z.Map)()))),X8=(0,at.createSelector)(Mi,(t=>t.get("requests",(0,z.Map)()))),Z8=(0,at.createSelector)(Mi,(t=>t.get("mutatedRequests",(0,z.Map)()))),wme=(t,e,r)=>Y8(t).getIn([e,r],null),xme=(t,e,r)=>X8(t).getIn([e,r],null),Ame=(t,e,r)=>Z8(t).getIn([e,r],null),Ome=()=>!0,kA=(t,e,r)=>{const n=ci(t).getIn(["paths",...e,"parameters"],(0,z.OrderedMap)()),i=t.getIn(["meta","paths",...e,"parameters"],(0,z.OrderedMap)());return n.map((s=>{const a=i.get(`${r.get("in")}.${r.get("name")}`),o=i.get(`${r.get("in")}.${r.get("name")}.hash-${r.hashCode()}`);return(0,z.OrderedMap)().merge(s,a,o)})).find((s=>s.get("in")===r.get("in")&&s.get("name")===r.get("name")),(0,z.OrderedMap)())},Q8=(t,e,r,n)=>{const i=`${n}.${r}`;return t.getIn(["meta","paths",...e,"parameter_inclusions",i],!1)},Cme=(t,e,r,n)=>{const i=ci(t).getIn(["paths",...e,"parameters"],(0,z.OrderedMap)()).find((s=>s.get("in")===n&&s.get("name")===r),(0,z.OrderedMap)());return kA(t,e,i)},e4=(t,e,r)=>{const n=ci(t).getIn(["paths",e,r],(0,z.OrderedMap)()),i=t.getIn(["meta","paths",e,r],(0,z.OrderedMap)()),s=n.get("parameters",(0,z.List)()).map((a=>kA(t,[e,r],a)));return(0,z.OrderedMap)().merge(n,i).set("parameters",s)};function Rme(t,e,r,n){return e=e||[],t.getIn(["meta","paths",...e,"parameters"],(0,z.fromJS)([])).find((i=>z.Map.isMap(i)&&i.get("name")===r&&i.get("in")===n))||(0,z.Map)()}const Ime=(0,at.createSelector)(pn,(t=>{const e=t.get("host");return typeof e=="string"&&e.length>0&&e[0]!=="/"}));function t4(t,e,r){return e=e||[],e4(t,...e).get("parameters",(0,z.List)()).reduce(((n,i)=>{let s=r&&i.get("in")==="body"?i.get("value_xml"):i.get("value");return z.List.isList(s)&&(s=s.filter((a=>a!==""))),n.set(af(i,{allowHashes:!1}),s)}),(0,z.fromJS)({}))}function Tme(t,e=""){if(z.List.isList(t))return t.some((r=>z.Map.isMap(r)&&r.get("in")===e))}function y_(t,e=""){if(z.List.isList(t))return t.some((r=>z.Map.isMap(r)&&r.get("type")===e))}function Pme(t,e){e=e||[];let r=ci(t).getIn(["paths",...e],(0,z.fromJS)({})),n=t.getIn(["meta","paths",...e],(0,z.fromJS)({})),i=r4(t,e);const s=r.get("parameters")||new z.List,a=n.get("consumes_value")?n.get("consumes_value"):y_(s,"file")?"multipart/form-data":y_(s,"formData")?"application/x-www-form-urlencoded":void 0;return(0,z.fromJS)({requestContentType:a,responseContentType:i})}function r4(t,e){e=e||[];const r=ci(t).getIn(["paths",...e],null);if(r===null)return;const n=t.getIn(["meta","paths",...e,"produces_value"],null),i=r.getIn(["produces",0],null);return n||i||"application/json"}function kme(t,e){e=e||[];const r=ci(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[i]=e,s=n.get("produces",null),a=r.getIn(["paths",i,"produces"],null),o=r.getIn(["produces"],null);return s||a||o}function jme(t,e){e=e||[];const r=ci(t),n=r.getIn(["paths",...e],null);if(n===null)return;const[i]=e,s=n.get("consumes",null),a=r.getIn(["paths",i,"consumes"],null),o=r.getIn(["consumes"],null);return s||a||o}const n4=(t,e,r)=>{let n=t.get("url").match(/^([a-z][a-z0-9+\-.]*):/),i=Array.isArray(n)?n[1]:null;return t.getIn(["scheme",e,r])||t.getIn(["scheme","_defaultScheme"])||i||""},Nme=(t,e,r)=>["http","https"].indexOf(n4(t,e,r))>-1,i4=(t,e)=>{e=e||[];const r=t.getIn(["meta","paths",...e,"parameters"],(0,z.fromJS)([])),n=[];if(r.length===0)return n;const i=(s,a=[])=>{const o=(u,l)=>{const c=[...l,u.get("propKey")||u.get("index")];return z.Map.isMap(u.get("error"))?i(u.get("error"),c):{error:u.get("error"),path:c}};return z.List.isList(s)?s.map((u=>z.Map.isMap(u)?o(u,a):{error:u,path:a})):o(s,a)};return r.forEach(((s,a)=>{const o=a.split(".").slice(1,-1).join("."),u=s.get("errors");u&&u.count()&&i(u).forEach((({error:l,path:c})=>{n.push(((p,h,d)=>`For '${d}'${(h=h.reduce(((g,y)=>typeof y=="number"?`${g}[${y}]`:g?`${g}.${y}`:y),""))?` at path '${h}'`:""}: ${p}.`)(l,c,o))}))})),n},Mme=(t,e)=>i4(t,e).length===0,Dme=(t,e)=>{let r={requestBody:!1,requestContentType:{}},n=t.getIn(["resolvedSubtrees","paths",...e,"requestBody"],(0,z.fromJS)([]));return n.size<1||(n.getIn(["required"])&&(r.requestBody=n.getIn(["required"])),n.getIn(["content"]).entrySeq().forEach((i=>{const s=i[0];if(i[1].getIn(["schema","required"])){const a=i[1].getIn(["schema","required"]).toJS();r.requestContentType[s]=a}}))),r},Fme=(t,e,r,n)=>{if((r||n)&&r===n)return!0;let i=t.getIn(["resolvedSubtrees","paths",...e,"requestBody","content"],(0,z.fromJS)([]));if(i.size<2||!r||!n)return!1;let s=i.getIn([r,"schema","properties"],(0,z.fromJS)([])),a=i.getIn([n,"schema","properties"],(0,z.fromJS)([]));return!!s.equals(a)};function s4(t){return z.Map.isMap(t)?t:new z.Map}var qme=(function(t){var e={};return be.d(e,t),e})({default:function(){return lK}}),Bme=(function(t){var e={};return be.d(e,t),e})({default:function(){return dK}}),a4=(function(t){var e={};return be.d(e,t),e})({default:function(){return gK}}),$me=(function(t){var e={};return be.d(e,t),e})({default:function(){return YK}});const jA="spec_update_spec",NA="spec_update_url",MA="spec_update_json",qp="spec_update_param",DA="spec_update_empty_param_inclusion",FA="spec_validate_param",qA="spec_set_response",BA="spec_set_request",$A="spec_set_mutated_request",o4="spec_log_request",LA="spec_clear_response",UA="spec_clear_request",VA="spec_clear_validate_param",Bp="spec_update_operation_meta_value",zA="spec_update_resolved",$p="spec_update_resolved_subtree",WA="set_scheme",Lme=t=>(0,qme.default)(t)?t:"";function Ume(t){const e=Lme(t).replace(/\t/g," ");if(typeof t=="string")return{type:jA,payload:e}}function Vme(t){return{type:zA,payload:t}}function zme(t){return{type:NA,payload:t}}function Wme(t){return{type:MA,payload:t}}const Jme=t=>({specActions:e,specSelectors:r,errActions:n})=>{let{specStr:i}=r,s=null;try{t=t||i(),n.clear({source:"parser"}),s=Ki.default.load(t,{schema:Ki.JSON_SCHEMA})}catch(a){return console.error(a),n.newSpecErr({source:"parser",level:"error",message:a.reason,line:a.mark&&a.mark.line?a.mark.line+1:void 0})}return s&&typeof s=="object"?e.updateJsonSpec(s):e.updateJsonSpec({})};let M3=!1;const Hme=(t,e)=>({specActions:r,specSelectors:n,errActions:i,fn:{fetch:s,resolve:a,AST:o={}},getConfigs:u})=>{M3||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),M3=!0);const{modelPropertyMacro:l,parameterMacro:c,requestInterceptor:p,responseInterceptor:h}=u();t===void 0&&(t=n.specJson()),e===void 0&&(e=n.url());let d=o.getLineNumberForPath?o.getLineNumberForPath:()=>{},g=n.specStr();return a({fetch:s,spec:t,baseDoc:String(new URL(e,document.baseURI)),modelPropertyMacro:l,parameterMacro:c,requestInterceptor:p,responseInterceptor:h}).then((({spec:y,errors:v})=>{if(i.clear({type:"thrown"}),Array.isArray(v)&&v.length>0){let E=v.map((b=>(console.error(b),b.line=b.fullPath?d(g,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)));i.newThrownErrBatch(E)}return r.updateResolved(y)}))};let of=[];const Kme=(0,Bme.default)((()=>{const t=of.reduce(((e,{path:r,system:n})=>(e.has(n)||e.set(n,[]),e.get(n).push(r),e)),new Map);of=[],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:i,fn:{resolveSubtree:s,fetch:a,AST:o={}},specSelectors:u,specActions:l}=r,c=o.getLineNumberForPath??(0,Fp.default)(void 0),p=u.specStr(),{modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y}=r.getConfigs();try{const v=await e.reduce((async(E,b)=>{let{resultMap:_,specWithCurrentSubtrees:w}=await E;const{errors:S,spec:A}=await s(w,b,{baseDoc:String(new URL(u.url(),document.baseURI)),modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y});if(i.allErrors().size&&n.clearBy((I=>I.get("type")!=="thrown"||I.get("source")!=="resolver"||!I.get("fullPath")?.every(((T,k)=>T===b[k]||b[k]===void 0)))),Array.isArray(S)&&S.length>0){let I=S.map((T=>(T.line=T.fullPath?c(p,T.fullPath):null,T.path=T.fullPath?T.fullPath.join("."):null,T.level="error",T.type="thrown",T.source="resolver",Object.defineProperty(T,"message",{enumerable:!0,value:T.message}),T)));n.newThrownErrBatch(I)}return A&&u.isOAS3()&&b[0]==="components"&&b[1]==="securitySchemes"&&await Promise.all(Object.values(A).filter((I=>I?.type==="openIdConnect")).map((async I=>{const T={url:I.openIdConnectUrl,requestInterceptor:g,responseInterceptor:y};try{const k=await a(T);k instanceof Error||k.status>=400?console.error(k.statusText+" "+T.url):I.openIdConnectData=JSON.parse(k.text)}catch(k){console.error(k)}}))),(0,a4.default)(_,b,A),w=(0,$me.default)(b,A,w),{resultMap:_,specWithCurrentSubtrees:w}}),Promise.resolve({resultMap:(u.specResolvedSubtree([])||(0,z.Map)()).toJS(),specWithCurrentSubtrees:u.specJS()}));l.updateResolvedSubtree([],v.resultMap)}catch(v){console.error(v)}}))}),35),Gme=t=>e=>{of.find((({path:r,system:n})=>n===e&&r.toString()===t.toString()))||(of.push({path:t,system:e}),Kme())};function Yme(t,e,r,n,i){return{type:qp,payload:{path:t,value:n,paramName:e,paramIn:r,isXml:i}}}function Xme(t,e,r,n){return{type:qp,payload:{path:t,param:e,value:r,isXml:n}}}const Zme=(t,e)=>({type:$p,payload:{path:t,value:e}}),Qme=()=>({type:$p,payload:{path:[],value:(0,z.Map)()}}),ege=(t,e)=>({type:FA,payload:{pathMethod:t,isOAS3:e}}),tge=(t,e,r,n)=>({type:DA,payload:{pathMethod:t,paramName:e,paramIn:r,includeEmptyValue:n}});function rge(t){return{type:VA,payload:{pathMethod:t}}}function nge(t,e){return{type:Bp,payload:{path:t,value:e,key:"consumes_value"}}}function ige(t,e){return{type:Bp,payload:{path:t,value:e,key:"produces_value"}}}const sge=(t,e,r)=>({payload:{path:t,method:e,res:r},type:qA}),age=(t,e,r)=>({payload:{path:t,method:e,req:r},type:BA}),oge=(t,e,r)=>({payload:{path:t,method:e,req:r},type:$A}),uge=t=>({payload:t,type:o4}),lge=t=>({fn:e,specActions:r,specSelectors:n,getConfigs:i,oas3Selectors:s})=>{let{pathName:a,method:o,operation:u}=t,{requestInterceptor:l,responseInterceptor:c}=i(),p=u.toJS();if(u&&u.get("parameters")&&u.get("parameters").filter((g=>g&&g.get("allowEmptyValue")===!0)).forEach((g=>{if(n.parameterInclusionSettingFor([a,o],g.get("name"),g.get("in"))){t.parameters=t.parameters||{};const y=c8(g,t.parameters);(!y||y&&y.size===0)&&(t.parameters[g.get("name")]="")}})),t.contextUrl=(0,gu.default)(n.url()).toString(),p&&p.operationId?t.operationId=p.operationId:p&&a&&o&&(t.operationId=e.opId(p,a,o)),n.isOAS3()){const g=`${a}:${o}`;t.server=s.selectedServer(g)||s.selectedServer();const y=s.serverVariables({server:t.server,namespace:g}).toJS(),v=s.serverVariables({server:t.server}).toJS();t.serverVariables=Object.keys(y).length?y:v,t.requestContentType=s.requestContentType(a,o),t.responseContentType=s.responseContentType(a,o)||"*/*";const E=s.requestBodyValue(a,o),b=s.requestBodyInclusionSetting(a,o);E&&E.toJS?t.requestBody=E.map((_=>z.Map.isMap(_)?_.get("value"):_)).filter(((_,w)=>(Array.isArray(_)?_.length!==0:!dA(_))||b.get(w))).toJS():t.requestBody=E}let h=Object.assign({},t);h=e.buildRequest(h),r.setRequest(t.pathName,t.method,h),t.requestInterceptor=async g=>{let y=await l.apply(void 0,[g]),v=Object.assign({},y);return r.setMutatedRequest(t.pathName,t.method,v),y},t.responseInterceptor=c;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.**
277
+ **Possible Reasons:**
278
+ - CORS
279
+ - Network Failure
280
+ - URL scheme must be "http" or "https" for CORS request.`),r.setResponse(t.pathName,t.method,{error:!0,err:g})}))},cge=({path:t,method:e,...r}={})=>n=>{let{fn:{fetch:i},specSelectors:s,specActions:a}=n,o=s.specJsonWithResolvedSubtrees().toJS(),u=s.operationScheme(t,e),{requestContentType:l,responseContentType:c}=s.contentTypeValues([t,e]).toJS(),p=/xml/i.test(l),h=s.parameterValues([t,e],p).toJS();return a.executeRequest({...r,fetch:i,spec:o,pathName:t,method:e,parameters:h,requestContentType:l,scheme:u,responseContentType:c})};function fge(t,e){return{type:LA,payload:{path:t,method:e}}}function pge(t,e){return{type:UA,payload:{path:t,method:e}}}function dge(t,e,r){return{type:WA,payload:{scheme:t,path:e,method:r}}}var hge={[jA]:(t,e)=>typeof e.payload=="string"?t.set("spec",e.payload):t,[NA]:(t,e)=>t.set("url",e.payload+""),[MA]:(t,e)=>t.set("json",Si(e.payload)),[zA]:(t,e)=>t.setIn(["resolved"],Si(e.payload)),[$p]:(t,e)=>{const{value:r,path:n}=e.payload;return t.setIn(["resolvedSubtrees",...n],Si(r))},[qp]:(t,{payload:e})=>{let{path:r,paramName:n,paramIn:i,param:s,value:a,isXml:o}=e,u=s?af(s):`${i}.${n}`;const l=o?"value_xml":"value";return t.setIn(["meta","paths",...r,"parameters",u,l],(0,z.fromJS)(a))},[DA]:(t,{payload:e})=>{let{pathMethod:r,paramName:n,paramIn:i,includeEmptyValue:s}=e;if(!n||!i)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),t;const a=`${i}.${n}`;return t.setIn(["meta","paths",...r,"parameter_inclusions",a],s)},[FA]:(t,{payload:{pathMethod:e,isOAS3:r}})=>{const n=ci(t).getIn(["paths",...e]),i=t4(t,e).toJS();return t.updateIn(["meta","paths",...e,"parameters"],(0,z.fromJS)({}),(s=>n.get("parameters",(0,z.List)()).reduce(((a,o)=>{const u=c8(o,i),l=Q8(t,e,o.get("name"),o.get("in")),c=((p,h,{isOAS3:d=!1,bypassRequiredCheck:g=!1}={})=>{let y=p.get("required"),{schema:v,parameterContentMediaType:E}=jc(p,{isOAS3:d});return u_(h,v,y,g,E)})(o,u,{bypassRequiredCheck:l,isOAS3:r});return a.setIn([af(o),"errors"],(0,z.fromJS)(c))}),s)))},[VA]:(t,{payload:{pathMethod:e}})=>t.updateIn(["meta","paths",...e,"parameters"],(0,z.fromJS)([]),(r=>r.map((n=>n.set("errors",(0,z.fromJS)([])))))),[qA]:(t,{payload:{res:e,path:r,method:n}})=>{let i;i=e.error?Object.assign({error:!0,name:e.err.name,message:e.err.message,statusCode:e.err.statusCode},e.err.response):e,i.headers=i.headers||{};let s=t.setIn(["responses",r,n],Si(i));return Gt.Blob&&i.data instanceof Gt.Blob&&(s=s.setIn(["responses",r,n,"text"],i.data)),s},[BA]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["requests",r,n],Si(e)),[$A]:(t,{payload:{req:e,path:r,method:n}})=>t.setIn(["mutatedRequests",r,n],Si(e)),[Bp]:(t,{payload:{path:e,value:r,key:n}})=>{let i=["paths",...e],s=["meta","paths",...e];return t.getIn(["json",...i])||t.getIn(["resolved",...i])||t.getIn(["resolvedSubtrees",...i])?t.setIn([...s,n],(0,z.fromJS)(r)):t},[LA]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["responses",e,r]),[UA]:(t,{payload:{path:e,method:r}})=>t.deleteIn(["requests",e,r]),[WA]:(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 mge=(t,{specActions:e})=>(...r)=>{t(...r),e.parseToJson(...r)},gge=(t,{specActions:e})=>(...r)=>{t(...r),e.invalidateResolvedSubtreeCache();const[n]=r,i=(0,p_.default)(n,["paths"])||{};Object.keys(i).forEach((s=>{const a=(0,p_.default)(i,[s]);(0,Zi.default)(a)&&a.$ref&&e.requestResolvedSubtree(["paths",s])})),e.requestResolvedSubtree(["components","securitySchemes"])},yge=(t,{specActions:e})=>r=>(e.logRequest(r),t(r)),vge=(t,{specSelectors:e})=>r=>t(r,e.isOAS3());var u4=()=>({statePlugins:{spec:{wrapActions:{...t_},reducers:{...hge},actions:{...e_},selectors:{...Q1}}}}),D3=(function(t){var e={};return be.d(e,t),e})({default:function(){return wL}}),F3=(function(t){var e={};return be.d(e,t),e})({default:function(){return OL}}),q3=(function(t){var e={};return be.d(e,t),e})({default:function(){return CL}}),B3=(function(t){var e={};return be.d(e,t),e})({default:function(){return Yae}}),bge=(function(t){var e={};return be.d(e,t),e})({makeResolve:function(){return m6}}),$3=(function(t){var e={};return be.d(e,t),e})({buildRequest:function(){return O6},execute:function(){return lue}}),HS=(function(t){var e={};return be.d(e,t),e})({default:function(){return lu},makeHttp:function(){return $ee},serializeRes:function(){return EL}}),Ege=(function(t){var e={};return be.d(e,t),e})({makeResolveSubtree:function(){return mue}}),l4=(function(t){var e={};return be.d(e,t),e})({opId:function(){return zf}});const Sge=(t,e)=>(...r)=>{t(...r);const n=e.getConfigs().withCredentials;e.fn.fetch.withCredentials=n};function c4({configs:t,getConfigs:e}){return{fn:{fetch:(0,HS.makeHttp)(HS.default,t.preFetch,t.postFetch),buildRequest:$3.buildRequest,execute:$3.execute,resolve:(0,bge.makeResolve)({strategies:[B3.default,q3.default,F3.default,D3.default]}),resolveSubtree:async(r,n,i={})=>{const s=e(),a={modelPropertyMacro:s.modelPropertyMacro,parameterMacro:s.parameterMacro,requestInterceptor:s.requestInterceptor,responseInterceptor:s.responseInterceptor,strategies:[B3.default,q3.default,F3.default,D3.default]};return(0,Ege.makeResolveSubtree)(a)(r,n,i)},serializeRes:HS.serializeRes,opId:l4.opId},statePlugins:{configs:{wrapActions:{loaded:Sge}}}}}function f4(){return{fn:{shallowEqualKeys:Xpe,sanitizeUrl:lr}}}var p4=(function(t){var e={};return be.d(e,t),e})({default:function(){return S9}}),d4=(function(t){var e={};return be.d(e,t),e})({Provider:function(){return D9},connect:function(){return M9}}),h4=(function(t){var e={};return be.d(e,t),e})({default:function(){return yue}});const _ge=t=>e=>{const{fn:r}=t();class n extends f.Component{render(){return f.default.createElement(e,(0,It.default)({},t(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(e)})`,n},wge=(t,e)=>r=>{const{fn:n}=t();class i extends f.Component{render(){return f.default.createElement(d4.Provider,{store:e},f.default.createElement(r,(0,It.default)({},this.props,this.context)))}}return i.displayName=`WithRoot(${n.getDisplayName(r)})`,i},L3=(t,e,r)=>(0,zo.compose)(r?wge(t,r):h4.default,(0,d4.connect)(((n,i)=>{const s={...i,...t()};return(e.prototype?.mapStateToProps||(o=>({state:o})))(n,s)})),_ge(t))(e),U3=(t,e,r,n)=>{for(const i in e){const s=e[i];typeof s=="function"&&s(r[i],n[i],t())}},xge=(t,e,r)=>(n,i)=>{const{fn:s}=t(),a=r(n,"root");class o extends f.Component{constructor(l,c){super(l,c),U3(t,i,l,{})}UNSAFE_componentWillReceiveProps(l){U3(t,i,l,this.props)}render(){const l=(0,EA.default)(this.props,i?Object.keys(i):[]);return f.default.createElement(a,l)}}return o.displayName=`WithMappedContainer(${s.getDisplayName(a)})`,o},Age=(t,e,r,n)=>i=>{const s=r(t,e,n)("App","root"),{createRoot:a}=p4.default;a(i).render(f.default.createElement(s,null))},v_=(t,e,r)=>(n,i,s={})=>{if(typeof n!="string")throw new TypeError("Need a string, to fetch a component. Was given a "+typeof n);const a=r(n);return a?i?i==="root"?L3(t,a,e()):L3(t,a):a:(s.failSilently||t().log.warn("Could not find component:",n),null)},Oge=t=>t.displayName||t.name||"Component";var m4=({getComponents:t,getStore:e,getSystem:r})=>{const n=(i=v_(r,e,t),Gpe(i,((...a)=>JSON.stringify(a))));var i;const s=(a=>jl(a,((...o)=>o)))(xge(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:s,render:Age(r,e,v_,t)},fn:{getDisplayName:Oge}}},g4=({React:t,getSystem:e,getStore:r,getComponents:n})=>{const i={},s=parseInt(t?.version,10);return s>=16&&s<18&&(i.render=((a,o,u,l)=>c=>{const p=u(a,o,l)("App","root");p4.default.render(f.default.createElement(p,null),c)})(e,r,v_,n)),{rootInjects:i}};function y4(t){let{fn:e}=t;const r={download:i=>({errActions:s,specSelectors:a,specActions:o,getConfigs:u})=>{let{fetch:l}=e;const c=u();function p(h){if(h instanceof Error||h.status>=400)return o.updateLoadingStatus("failed"),s.newThrownErr(Object.assign(new Error((h.message||h.statusText)+" "+i),{source:"fetch"})),void(!h.status&&h instanceof Error&&(function(){try{let g;if("URL"in Gt?g=new URL(i):(g=document.createElement("a"),g.href=i),g.protocol!=="https:"&&Gt.location.protocol==="https:"){const y=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 s.newThrownErr(y)}if(g.origin!==Gt.location.origin){const y=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${g.origin}) does not match the page (${Gt.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:"fetch"});s.newThrownErr(y)}}catch{return}})());o.updateLoadingStatus("success"),o.updateSpec(h.text),a.url()!==i&&o.updateUrl(i)}i=i||a.url(),o.updateLoadingStatus("loading"),s.clear({source:"fetch"}),l({url:i,loadSpec:!0,requestInterceptor:c.requestInterceptor||(h=>h),responseInterceptor:c.responseInterceptor||(h=>h),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(p,p)},updateLoadingStatus:i=>{let s=[null,"loading","failed","success","failedConfig"];return s.indexOf(i)===-1&&console.error(`Error: ${i} is not one of ${JSON.stringify(s)}`),{type:"spec_update_loading_status",payload:i}}};let n={loadingStatus:(0,at.createSelector)((i=>i||(0,z.Map)()),(i=>i.get("loadingStatus")||null))};return{statePlugins:{spec:{actions:r,reducers:{spec_update_loading_status:(i,s)=>typeof s.payload=="string"?i.set("loadingStatus",s.payload):i},selectors:n}}}}var Vi=(function(t){var e={};return be.d(e,t),e})({default:function(){return N6}}),V3=(function(t){var e={};return be.d(e,t),e})({default:function(){return Kue}}),Cge=(function(t){var e={};return be.d(e,t),e})({default:function(){return Xue}}),Rge=(function(t){var e={};return be.d(e,t),e})({default:function(){return ele}}),Ige=(function(t){var e={};return be.d(e,t),e})({default:function(){return nle}}),Tge=(function(t){var e={};return be.d(e,t),e})({default:function(){return ale}}),Pge=(function(t){var e={};return be.d(e,t),e})({default:function(){return lle}}),kge=(function(t){var e={};return be.d(e,t),e})({default:function(){return ple}}),jge=()=>{Vi.default.registerLanguage("json",Cge.default),Vi.default.registerLanguage("js",V3.default),Vi.default.registerLanguage("xml",Rge.default),Vi.default.registerLanguage("yaml",Tge.default),Vi.default.registerLanguage("http",Pge.default),Vi.default.registerLanguage("bash",Ige.default),Vi.default.registerLanguage("powershell",kge.default),Vi.default.registerLanguage("javascript",V3.default)},v4=(function(t){var e={};return be.d(e,t),e})({default:function(){return dle}}),Nge=(function(t){var e={};return be.d(e,t),e})({default:function(){return hle}}),Mge=(function(t){var e={};return be.d(e,t),e})({default:function(){return mle}}),Dge=(function(t){var e={};return be.d(e,t),e})({default:function(){return gle}}),Fge=(function(t){var e={};return be.d(e,t),e})({default:function(){return yle}}),qge=(function(t){var e={};return be.d(e,t),e})({default:function(){return vle}}),Bge=(function(t){var e={};return be.d(e,t),e})({default:function(){return ble}});const $ge={agate:v4.default,arta:Nge.default,monokai:Mge.default,nord:Dge.default,obsidian:Fge.default,"tomorrow-night":qge.default,idea:Bge.default},Lge=v4.default;var Uge=({language:t,className:e="",getConfigs:r,syntaxHighlighting:n={},children:i=""})=>{const s=r().syntaxHighlight.theme,{styles:a,defaultStyle:o}=n,u=a?.[s]??o;return f.default.createElement(Vi.default,{language:t,className:e,style:u},i)},Vge=(function(t){var e={};return be.d(e,t),e})({default:function(){return _le}}),zge=({fileName:t="response.txt",className:e,downloadable:r,getComponent:n,canCopy:i,language:s,children:a})=>{const o=(0,f.useRef)(null),u=n("SyntaxHighlighter",!0),l=c=>{const{target:p,deltaY:h}=c,{scrollHeight:d,offsetHeight:g,scrollTop:y}=p;d>g&&(y===0&&h<0||g+y>=d&&h>0)&&c.preventDefault()};return(0,f.useEffect)((()=>{const c=Array.from(o.current.childNodes).filter((p=>!!p.nodeType&&p.classList.contains("microlight")));return c.forEach((p=>p.addEventListener("mousewheel",l,{passive:!1}))),()=>{c.forEach((p=>p.removeEventListener("mousewheel",l)))}}),[a,e,s]),f.default.createElement("div",{className:"highlight-code",ref:o},i&&f.default.createElement("div",{className:"copy-to-clipboard"},f.default.createElement(Dp.CopyToClipboard,{text:a},f.default.createElement("button",null))),r?f.default.createElement("button",{className:"download-contents",onClick:()=>{(0,Vge.default)(a,t)}},"Download"):null,f.default.createElement(u,{language:s,className:(0,Tt.default)(e,"microlight"),renderPlainText:({children:c,PlainTextViewer:p})=>f.default.createElement(p,{className:e},c)},a))},Wge=({className:t="",children:e})=>f.default.createElement("pre",{className:(0,Tt.default)("microlight",t)},e),Jge=(t,e)=>({renderPlainText:r,children:n,...i})=>{const s=e.getConfigs().syntaxHighlight.activated,a=e.getComponent("PlainTextViewer");return s||typeof r!="function"?s?f.default.createElement(t,i,n):f.default.createElement(a,null,n):r({children:n,PlainTextViewer:a})};const Hge=()=>({afterLoad:jge,rootInjects:{syntaxHighlighting:{styles:$ge,defaultStyle:Lge}},components:{SyntaxHighlighter:Uge,HighlightCode:zge,PlainTextViewer:Wge}}),Kge=()=>({wrapComponents:{SyntaxHighlighter:Jge}});var b4=()=>[Hge,Kge],Gge=()=>{const{GIT_DIRTY:t,GIT_COMMIT:e,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.30.0",GIT_COMMIT:"g5f013e9b",GIT_DIRTY:!0,BUILD_TIME:"Mon, 27 Oct 2025 11:43:49 GMT"};Gt.versions=Gt.versions||{},Gt.versions.swaggerUI={version:r,gitRevision:e,gitDirty:t,buildTimestamp:n}},E4=()=>({afterLoad:Gge}),Yge=(function(t){var e={};return be.d(e,t),e})({default:function(){return Ole}});const S4=console.error,Xge=t=>e=>{const{getComponent:r,fn:n}=t(),i=r("ErrorBoundary"),s=n.getDisplayName(e);class a extends f.Component{render(){return f.default.createElement(i,{targetName:s,getComponent:r,fn:n},f.default.createElement(e,(0,It.default)({},this.props,this.context)))}}var o;return a.displayName=`WithErrorBoundary(${s})`,(o=e).prototype&&o.prototype.isReactComponent&&(a.prototype.mapStateToProps=e.prototype.mapStateToProps),a};var _4=({name:t})=>f.default.createElement("div",{className:"fallback"},"😱 ",f.default.createElement("i",null,"Could not render ",t==="t"?"this component":t,", see the console."));class Zge extends f.Component{static defaultProps={targetName:"this component",getComponent:()=>_4,fn:{componentDidCatch:S4},children:null};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 i=e("Fallback");return f.default.createElement(i,{name:r})}return n}}var Qge=Zge,w4=({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],i=(0,Yge.default)(n,Array(n.length).fill(((s,{fn:a})=>a.withErrorBoundary(s))));return{fn:{componentDidCatch:S4,withErrorBoundary:Xge(r)},components:{ErrorBoundary:Qge,Fallback:_4},wrapComponents:i}};class eye extends f.default.Component{getLayout(){const{getComponent:e,layoutSelectors:r}=this.props,n=r.current();return e(n,!0)||(()=>f.default.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const e=this.getLayout();return f.default.createElement(e,null)}}var tye=eye;class rye extends f.default.Component{close=()=>{let{authActions:e}=this.props;e.showDefinitions(!1)};render(){let{authSelectors:e,authActions:r,getComponent:n,errSelectors:i,specSelectors:s,fn:{AST:a={}}}=this.props,o=e.shownDefinitions();const u=n("auths"),l=n("CloseIcon");return f.default.createElement("div",{className:"dialog-ux"},f.default.createElement("div",{className:"backdrop-ux"}),f.default.createElement("div",{className:"modal-ux"},f.default.createElement("div",{className:"modal-dialog-ux"},f.default.createElement("div",{className:"modal-ux-inner"},f.default.createElement("div",{className:"modal-ux-header"},f.default.createElement("h3",null,"Available authorizations"),f.default.createElement("button",{type:"button",className:"close-modal",onClick:this.close},f.default.createElement(l,null))),f.default.createElement("div",{className:"modal-ux-content"},o.valueSeq().map(((c,p)=>f.default.createElement(u,{key:p,AST:a,definitions:c,getComponent:n,errSelectors:i,authSelectors:e,authActions:r,specSelectors:s}))))))))}}class nye extends f.default.Component{render(){let{isAuthorized:e,showPopup:r,onClick:n,getComponent:i}=this.props;const s=i("authorizationPopup",!0),a=i("LockAuthIcon",!0),o=i("UnlockAuthIcon",!0);return f.default.createElement("div",{className:"auth-wrapper"},f.default.createElement("button",{className:e?"btn authorize locked":"btn authorize unlocked",onClick:n},f.default.createElement("span",null,"Authorize"),e?f.default.createElement(a,null):f.default.createElement(o,null)),r&&f.default.createElement(s,null))}}class iye extends f.default.Component{render(){const{authActions:e,authSelectors:r,specSelectors:n,getComponent:i}=this.props,s=n.securityDefinitions(),a=r.definitionsToAuthorize(),o=i("authorizeBtn");return s?f.default.createElement(o,{onClick:()=>e.showDefinitions(a),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:i}):null}}class sye extends f.default.Component{onClick=e=>{e.stopPropagation();let{onClick:r}=this.props;r&&r()};render(){let{isAuthorized:e,getComponent:r}=this.props;const n=r("LockAuthOperationIcon",!0),i=r("UnlockAuthOperationIcon",!0);return f.default.createElement("button",{className:"authorization__btn","aria-label":e?"authorization button locked":"authorization button unlocked",onClick:this.onClick},e?f.default.createElement(n,{className:"locked"}):f.default.createElement(i,{className:"unlocked"}))}}class aye extends f.default.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,i=n.map(((s,a)=>a)).toArray();this.setState(i.reduce(((s,a)=>(s[a]="",s)),{})),r.logoutWithPersistOption(i)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:i}=this.props;const s=r("AuthItem"),a=r("oauth2",!0),o=r("Button");let u=n.authorized(),l=e.filter(((h,d)=>!!u.get(d))),c=e.filter((h=>h.get("type")!=="oauth2")),p=e.filter((h=>h.get("type")==="oauth2"));return f.default.createElement("div",{className:"auth-container"},!!c.size&&f.default.createElement("form",{onSubmit:this.submitAuth},c.map(((h,d)=>f.default.createElement(s,{key:d,schema:h,name:d,getComponent:r,onAuthChange:this.onAuthChange,authorized:u,errSelectors:i,authSelectors:n}))).toArray(),f.default.createElement("div",{className:"auth-btn-wrapper"},c.size===l.size?f.default.createElement(o,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):f.default.createElement(o,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),f.default.createElement(o,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),p&&p.size?f.default.createElement("div",null,f.default.createElement("div",{className:"scope-def"},f.default.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."),f.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((h=>h.get("type")==="oauth2")).map(((h,d)=>f.default.createElement("div",{key:d},f.default.createElement(a,{authorized:u,schema:h,name:d})))).toArray()):null)}}class oye extends f.default.Component{render(){let{schema:e,name:r,getComponent:n,onAuthChange:i,authorized:s,errSelectors:a,authSelectors:o}=this.props;const u=n("apiKeyAuth"),l=n("basicAuth");let c;const p=e.get("type");switch(p){case"apiKey":c=f.default.createElement(u,{key:r,schema:e,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;case"basic":c=f.default.createElement(l,{key:r,schema:e,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;default:c=f.default.createElement("div",{key:r},"Unknown security definition type ",p)}return f.default.createElement("div",{key:`${r}-jump`},c)}}class uye extends f.default.Component{render(){let{error:e}=this.props,r=e.get("level"),n=e.get("message"),i=e.get("source");return f.default.createElement("div",{className:"errors"},f.default.createElement("b",null,i," ",r),f.default.createElement("span",null,n))}}class lye extends f.default.Component{constructor(e,r){super(e,r);let{name:n,schema:i}=this.props,s=this.getValue();this.state={name:n,schema:i,value:s}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,n=e.target.value,i=Object.assign({},this.state,{value:n});this.setState(i),r(i)};render(){let{schema:e,getComponent:r,errSelectors:n,name:i,authSelectors:s}=this.props;const a=r("Input"),o=r("Row"),u=r("Col"),l=r("authError"),c=r("Markdown",!0),p=r("JumpToPath",!0),h=s.selectAuthPath(i);let d=this.getValue(),g=n.allErrors().filter((y=>y.get("authId")===i));return f.default.createElement("div",null,f.default.createElement("h4",null,f.default.createElement("code",null,i||e.get("name"))," (apiKey)",f.default.createElement(p,{path:h})),d&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(o,null,f.default.createElement(c,{source:e.get("description")})),f.default.createElement(o,null,f.default.createElement("p",null,"Name: ",f.default.createElement("code",null,e.get("name")))),f.default.createElement(o,null,f.default.createElement("p",null,"In: ",f.default.createElement("code",null,e.get("in")))),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"api_key_value"},"Value:"),d?f.default.createElement("code",null," ****** "):f.default.createElement(u,null,f.default.createElement(a,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),g.valueSeq().map(((y,v)=>f.default.createElement(l,{error:y,key:v}))))}}class cye extends f.default.Component{constructor(e,r){super(e,r);let{schema:n,name:i}=this.props,s=this.getValue().username;this.state={name:i,schema:n,value:s?{username:s}:{}}}getValue(){let{authorized:e,name:r}=this.props;return e&&e.getIn([r,"value"])||{}}onChange=e=>{let{onChange:r}=this.props,{value:n,name:i}=e.target,s=this.state.value;s[i]=n,this.setState({value:s}),r(this.state)};render(){let{schema:e,getComponent:r,name:n,errSelectors:i,authSelectors:s}=this.props;const a=r("Input"),o=r("Row"),u=r("Col"),l=r("authError"),c=r("JumpToPath",!0),p=r("Markdown",!0),h=s.selectAuthPath(n);let d=this.getValue().username,g=i.allErrors().filter((y=>y.get("authId")===n));return f.default.createElement("div",null,f.default.createElement("h4",null,"Basic authorization",f.default.createElement(c,{path:h})),d&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(o,null,f.default.createElement(p,{source:e.get("description")})),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth_username"},"Username:"),d?f.default.createElement("code",null," ",d," "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth_password"},"Password:"),d?f.default.createElement("code",null," ****** "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),g.valueSeq().map(((y,v)=>f.default.createElement(l,{error:y,key:v}))))}}function fye(t){const{example:e,showValue:r,getComponent:n}=t,i=n("Markdown",!0),s=n("HighlightCode",!0);return e&&z.Map.isMap(e)?f.default.createElement("div",{className:"example"},e.get("description")?f.default.createElement("section",{className:"example__section"},f.default.createElement("div",{className:"example__section-header"},"Example Description"),f.default.createElement("p",null,f.default.createElement(i,{source:e.get("description")}))):null,r&&e.has("value")?f.default.createElement("section",{className:"example__section"},f.default.createElement("div",{className:"example__section-header"},"Example Value"),f.default.createElement(s,null,Cr(e.get("value")))):null):null}class pye extends f.default.PureComponent{static defaultProps={examples:(0,z.Map)({}),onSelect:(...e)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...e),currentExampleKey:null,showLabels:!0};_onSelect=(e,{isSyntheticChange:r=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(e,{isSyntheticChange:r})};_onDomSelect=e=>{if(typeof this.props.onSelect=="function"){const r=e.target.selectedOptions[0].getAttribute("value");this._onSelect(r,{isSyntheticChange:!1})}};getCurrentExample=()=>{const{examples:e,currentExampleKey:r}=this.props,n=e.get(r),i=e.keySeq().first(),s=e.get(i);return n||s||(0,z.Map)({})};componentDidMount(){const{onSelect:e,examples:r}=this.props;if(typeof e=="function"){const n=r.first(),i=r.keyOf(n);this._onSelect(i,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){const{currentExampleKey:r,examples:n}=e;if(n!==this.props.examples&&!n.has(r)){const i=n.first(),s=n.keyOf(i);this._onSelect(s,{isSyntheticChange:!0})}}render(){const{examples:e,currentExampleKey:r,isValueModified:n,isModifiedValueAvailable:i,showLabels:s}=this.props;return f.default.createElement("div",{className:"examples-select"},s?f.default.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,f.default.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:i&&n?"__MODIFIED__VALUE__":r||""},i?f.default.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,e.map(((a,o)=>f.default.createElement("option",{key:o,value:o},z.Map.isMap(a)&&a.get("summary")||o))).valueSeq()))}}const KS=t=>z.List.isList(t)?t:Cr(t);class dye extends f.default.PureComponent{static defaultProps={userHasEditedBody:!1,examples:(0,z.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...e)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...e),updateValue:(...e)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...e)};constructor(e){super(e);const r=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,z.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:r,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==r})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}_getStateForCurrentNamespace=()=>{const{currentNamespace:e}=this.props;return(this.state[e]||(0,z.Map)()).toObject()};_setStateForCurrentNamespace=e=>{const{currentNamespace:r}=this.props;return this._setStateForNamespace(r,e)};_setStateForNamespace=(e,r)=>{const n=(this.state[e]||(0,z.Map)()).mergeDeep(r);return this.setState({[e]:n})};_isCurrentUserInputSameAsExampleValue=()=>{const{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e};_getValueForExample=(e,r)=>{const{examples:n}=r||this.props;return KS((n||(0,z.Map)({})).getIn([e,"value"]))};_getCurrentExampleValue=e=>{const{currentKey:r}=e||this.props;return this._getValueForExample(r,e||this.props)};_onExamplesSelect=(e,{isSyntheticChange:r}={},...n)=>{const{onSelect:i,updateValue:s,currentUserInputValue:a,userHasEditedBody:o}=this.props,{lastUserEditedValue:u}=this._getStateForCurrentNamespace(),l=this._getValueForExample(e);if(e==="__MODIFIED__VALUE__")return s(KS(u)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof i=="function"&&i(e,{isSyntheticChange:r},...n),this._setStateForCurrentNamespace({lastDownstreamValue:l,isModifiedValueSelected:r&&o||!!a&&a!==l}),r||typeof s=="function"&&s(KS(l))};UNSAFE_componentWillReceiveProps(e){const{currentUserInputValue:r,examples:n,onSelect:i,userHasEditedBody:s}=e,{lastUserEditedValue:a,lastDownstreamValue:o}=this._getStateForCurrentNamespace(),u=this._getValueForExample(e.currentKey,e),l=n.filter((c=>z.Map.isMap(c)&&(c.get("value")===r||Cr(c.get("value"))===r)));if(l.size){let c;c=l.has(e.currentKey)?e.currentKey:l.keySeq().first(),i(c,{isSyntheticChange:!0})}else r!==this.props.currentUserInputValue&&r!==a&&r!==o&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:s||r!==u}))}render(){const{currentUserInputValue:e,examples:r,currentKey:n,getComponent:i,userHasEditedBody:s}=this.props,{lastDownstreamValue:a,lastUserEditedValue:o,isModifiedValueSelected:u}=this._getStateForCurrentNamespace(),l=i("ExamplesSelect");return f.default.createElement(l,{examples:r,currentExampleKey:n,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!o&&o!==a,isValueModified:e!==void 0&&u&&e!==this._getCurrentExampleValue()||s})}}function hye({auth:t,authActions:e,errActions:r,configs:n,authConfigs:i={},currentServer:s}){let{schema:a,scopes:o,name:u,clientId:l}=t,c=a.get("flow"),p=[];switch(c){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":p.push("response_type=code");break;case"implicit":p.push("response_type=token")}typeof l=="string"&&p.push("client_id="+encodeURIComponent(l));let h=n.oauth2RedirectUrl;if(h===void 0)return void r.newAuthErr({authId:u,source:"validation",level:"error",message:"oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed."});p.push("redirect_uri="+encodeURIComponent(h));let d=[];if(Array.isArray(o)?d=o:z.default.List.isList(o)&&(d=o.toArray()),d.length>0){let w=i.scopeSeparator||" ";p.push("scope="+encodeURIComponent(d.join(w)))}let g=kl(new Date);if(p.push("state="+encodeURIComponent(g)),i.realm!==void 0&&p.push("realm="+encodeURIComponent(i.realm)),(c==="authorizationCode"||c==="authorization_code"||c==="accessCode")&&i.usePkceWithAuthorizationCodeGrant){const w=(function(){return E3($a()(32).toString("base64"))})(),S=(function(I){return E3(Hpe()("sha256").update(I).digest("base64"))})(w);p.push("code_challenge="+S),p.push("code_challenge_method=S256"),t.codeVerifier=w}let{additionalQueryStringParams:y}=i;for(let w in y)y[w]!==void 0&&p.push([w,y[w]].map(encodeURIComponent).join("="));const v=a.get("authorizationUrl");let E;E=s?(0,gu.default)(lr(v),s,!0).toString():lr(v);let b,_=[E,p.join("&")].join(typeof v!="string"||v.includes("?")?"&":"?");b=c==="implicit"?e.preAuthorizeImplicit:i.useBasicAuthenticationWithAccessCodeGrant?e.authorizeAccessCodeWithBasicAuthentication:e.authorizeAccessCodeWithFormParams,e.authPopup(_,{auth:t,state:g,redirectUrl:h,callback:b,errCb:r.newAuthErr})}class mye extends f.default.Component{constructor(e,r){super(e,r);let{name:n,schema:i,authorized:s,authSelectors:a}=this.props,o=s&&s.get(n),u=a.getConfigs()||{},l=o&&o.get("username")||"",c=o&&o.get("clientId")||u.clientId||"",p=o&&o.get("clientSecret")||u.clientSecret||"",h=o&&o.get("passwordType")||"basic",d=o&&o.get("scopes")||u.scopes||[];typeof d=="string"&&(d=d.split(u.scopeSeparator||" ")),this.state={appName:u.appName,name:n,schema:i,scopes:d,clientId:c,clientSecret:p,username:l,password:"",passwordType:h}}close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};authorize=()=>{let{authActions:e,errActions:r,getConfigs:n,authSelectors:i,oas3Selectors:s}=this.props,a=n(),o=i.getConfigs();r.clear({authId:name,type:"auth",source:"auth"}),hye({auth:this.state,currentServer:s.serverEffectiveValue(s.selectedServer()),authActions:e,errActions:r,configs:a,authConfigs:o})};onScopeChange=e=>{let{target:r}=e,{checked:n}=r,i=r.dataset.value;if(n&&this.state.scopes.indexOf(i)===-1){let s=this.state.scopes.concat([i]);this.setState({scopes:s})}else!n&&this.state.scopes.indexOf(i)>-1&&this.setState({scopes:this.state.scopes.filter((s=>s!==i))})};onInputChange=e=>{let{target:{dataset:{name:r},value:n}}=e,i={[r]:n};this.setState(i)};selectScopes=e=>{e.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})};logout=e=>{e.preventDefault();let{authActions:r,errActions:n,name:i}=this.props;n.clear({authId:i,type:"auth",source:"auth"}),r.logoutWithPersistOption([i])};render(){let{schema:e,getComponent:r,authSelectors:n,errSelectors:i,name:s,specSelectors:a}=this.props;const o=r("Input"),u=r("Row"),l=r("Col"),c=r("Button"),p=r("authError"),h=r("JumpToPath",!0),d=r("Markdown",!0),g=r("InitializedInput"),{isOAS3:y}=a;let v=y()?e.get("openIdConnectUrl"):null;const E="implicit",b="password",_=y()?v?"authorization_code":"authorizationCode":"accessCode",w=y()?v?"client_credentials":"clientCredentials":"application",S=n.selectAuthPath(s);let A=!!(n.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,I=e.get("flow"),T=I===_&&A?I+" with PKCE":I,k=e.get("allowedScopes")||e.get("scopes"),D=!!n.authorized().get(s),R=i.allErrors().filter((K=>K.get("authId")===s)),$=!R.filter((K=>K.get("source")==="validation")).size,M=e.get("description");return f.default.createElement("div",null,f.default.createElement("h4",null,s," (OAuth2, ",T,") ",f.default.createElement(h,{path:S})),this.state.appName?f.default.createElement("h5",null,"Application: ",this.state.appName," "):null,M&&f.default.createElement(d,{source:e.get("description")}),D&&f.default.createElement("h6",null,"Authorized"),v&&f.default.createElement("p",null,"OpenID Connect URL: ",f.default.createElement("code",null,v)),(I===E||I===_)&&f.default.createElement("p",null,"Authorization URL: ",f.default.createElement("code",null,e.get("authorizationUrl"))),(I===b||I===_||I===w)&&f.default.createElement("p",null,"Token URL:",f.default.createElement("code",null," ",e.get("tokenUrl"))),f.default.createElement("p",{className:"flow"},"Flow: ",f.default.createElement("code",null,T)),I!==b?null:f.default.createElement(u,null,f.default.createElement(u,null,f.default.createElement("label",{htmlFor:"oauth_username"},"username:"),D?f.default.createElement("code",null," ",this.state.username," "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),f.default.createElement(u,null,f.default.createElement("label",{htmlFor:"oauth_password"},"password:"),D?f.default.createElement("code",null," ****** "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),f.default.createElement(u,null,f.default.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),D?f.default.createElement("code",null," ",this.state.passwordType," "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},f.default.createElement("option",{value:"basic"},"Authorization header"),f.default.createElement("option",{value:"request-body"},"Request body"))))),(I===w||I===E||I===_||I===b)&&(!D||D&&this.state.clientId)&&f.default.createElement(u,null,f.default.createElement("label",{htmlFor:`client_id_${I}`},"client_id:"),D?f.default.createElement("code",null," ****** "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement(g,{id:`client_id_${I}`,type:"text",required:I===b,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(I===w||I===_||I===b)&&f.default.createElement(u,null,f.default.createElement("label",{htmlFor:`client_secret_${I}`},"client_secret:"),D?f.default.createElement("code",null," ****** "):f.default.createElement(l,{tablet:10,desktop:10},f.default.createElement(g,{id:`client_secret_${I}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!D&&k&&k.size?f.default.createElement("div",{className:"scopes"},f.default.createElement("h2",null,"Scopes:",f.default.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),f.default.createElement("a",{onClick:this.selectScopes},"select none")),k.map(((K,ee)=>f.default.createElement(u,{key:ee},f.default.createElement("div",{className:"checkbox"},f.default.createElement(o,{"data-value":ee,id:`${ee}-${I}-checkbox-${this.state.name}`,disabled:D,checked:this.state.scopes.includes(ee),type:"checkbox",onChange:this.onScopeChange}),f.default.createElement("label",{htmlFor:`${ee}-${I}-checkbox-${this.state.name}`},f.default.createElement("span",{className:"item"}),f.default.createElement("div",{className:"text"},f.default.createElement("p",{className:"name"},ee),f.default.createElement("p",{className:"description"},K))))))).toArray()):null,R.valueSeq().map(((K,ee)=>f.default.createElement(p,{error:K,key:ee}))),f.default.createElement("div",{className:"auth-btn-wrapper"},$&&(D?f.default.createElement(c,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):f.default.createElement(c,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),f.default.createElement(c,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class gye extends f.Component{onClick=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearResponse(r,n),e.clearRequest(r,n)};render(){return f.default.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const yye=({headers:t})=>f.default.createElement("div",null,f.default.createElement("h5",null,"Response headers"),f.default.createElement("pre",{className:"microlight"},t)),vye=({duration:t})=>f.default.createElement("div",null,f.default.createElement("h5",null,"Request duration"),f.default.createElement("pre",{className:"microlight"},t," ms"));class bye extends f.default.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:i,specSelectors:s,path:a,method:o}=this.props,{showMutatedRequest:u,requestSnippetsEnabled:l}=n(),c=u?s.mutatedRequestFor(a,o):s.requestFor(a,o),p=e.get("status"),h=c.get("url"),d=e.get("headers").toJS(),g=e.get("notDocumented"),y=e.get("error"),v=e.get("text"),E=e.get("duration"),b=Object.keys(d),_=d["content-type"]||d["Content-Type"],w=r("responseBody"),S=b.map((D=>{var R=Array.isArray(d[D])?d[D].join():d[D];return f.default.createElement("span",{className:"headerline",key:D}," ",D,": ",R," ")})),A=S.length!==0,I=r("Markdown",!0),T=r("RequestSnippets",!0),k=r("curl",!0);return f.default.createElement("div",null,c&&l?f.default.createElement(T,{request:c}):f.default.createElement(k,{request:c}),h&&f.default.createElement("div",null,f.default.createElement("div",{className:"request-url"},f.default.createElement("h4",null,"Request URL"),f.default.createElement("pre",{className:"microlight"},h))),f.default.createElement("h4",null,"Server response"),f.default.createElement("table",{className:"responses-table live-responses-table"},f.default.createElement("thead",null,f.default.createElement("tr",{className:"responses-header"},f.default.createElement("td",{className:"col_header response-col_status"},"Code"),f.default.createElement("td",{className:"col_header response-col_description"},"Details"))),f.default.createElement("tbody",null,f.default.createElement("tr",{className:"response"},f.default.createElement("td",{className:"response-col_status"},p,g?f.default.createElement("div",{className:"response-undocumented"},f.default.createElement("i",null," Undocumented ")):null),f.default.createElement("td",{className:"response-col_description"},y?f.default.createElement(I,{source:`${e.get("name")!==""?`${e.get("name")}: `:""}${e.get("message")}`}):null,v?f.default.createElement(w,{content:v,contentType:_,url:h,headers:d,getConfigs:n,getComponent:r}):null,A?f.default.createElement(yye,{headers:S}):null,i&&E?f.default.createElement(vye,{duration:E}):null)))))}}class x4 extends f.default.Component{constructor(e,r){super(e,r);let{getConfigs:n}=e,{validatorUrl:i}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:i===void 0?"https://validator.swagger.io/validator":i}}getDefinitionUrl=()=>{let{specSelectors:e}=this.props;return new gu.default(e.url(),Gt.location).toString()};UNSAFE_componentWillReceiveProps(e){let{getConfigs:r}=e,{validatorUrl:n}=r();this.setState({url:this.getDefinitionUrl(),validatorUrl:n===void 0?"https://validator.swagger.io/validator":n})}render(){let{getConfigs:e}=this.props,{spec:r}=e(),n=lr(this.state.validatorUrl);return typeof r=="object"&&Object.keys(r).length?null:this.state.url&&b3(this.state.validatorUrl)&&b3(this.state.url)?f.default.createElement("span",{className:"float-right"},f.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},f.default.createElement(Eye,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class Eye extends f.default.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?f.default.createElement("img",{alt:"Error"}):this.state.loaded?f.default.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class Sye extends f.default.Component{render(){let{specSelectors:e}=this.props;const r=e.taggedOperations();return r.size===0?f.default.createElement("h3",null," No operations defined in spec!"):f.default.createElement("div",null,r.map(this.renderOperationTag).toArray(),r.size<1?f.default.createElement("h3",null," No operations defined in spec! "):null)}renderOperationTag=(e,r)=>{const{specSelectors:n,getComponent:i,oas3Selectors:s,layoutSelectors:a,layoutActions:o,getConfigs:u}=this.props,l=n.validOperationMethods(),c=i("OperationContainer",!0),p=i("OperationTag"),h=e.get("operations");return f.default.createElement(p,{key:"operation-"+r,tagObj:e,tag:r,oas3Selectors:s,layoutSelectors:a,layoutActions:o,getConfigs:u,getComponent:i,specUrl:n.url()},f.default.createElement("div",{className:"operation-tag-content"},h.map((d=>{const g=d.get("path"),y=d.get("method"),v=z.default.List(["paths",g,y]);return l.indexOf(y)===-1?null:f.default.createElement(c,{key:`${g}-${y}`,specPath:v,op:d,path:g,method:y,tag:r})})).toArray()))}}class _ye extends f.default.Component{static defaultProps={tagObj:z.default.fromJS({}),tag:""};render(){const{tagObj:e,tag:r,children:n,oas3Selectors:i,layoutSelectors:s,layoutActions:a,getConfigs:o,getComponent:u,specUrl:l}=this.props;let{docExpansion:c,deepLinking:p}=o();const h=u("Collapse"),d=u("Markdown",!0),g=u("DeepLink"),y=u("Link"),v=u("ArrowUpIcon"),E=u("ArrowDownIcon");let b,_=e.getIn(["tagDetails","description"],null),w=e.getIn(["tagDetails","externalDocs","description"]),S=e.getIn(["tagDetails","externalDocs","url"]);b=Xi(i)&&Xi(i.selectedServer)?ii(S,l,{selectedServer:i.selectedServer()}):S;let A=["operations-tag",r],I=s.isShown(A,c==="full"||c==="list");return f.default.createElement("div",{className:I?"opblock-tag-section is-open":"opblock-tag-section"},f.default.createElement("h3",{onClick:()=>a.show(A,!I),className:_?"opblock-tag":"opblock-tag no-desc",id:A.map((T=>o8(T))).join("-"),"data-tag":r,"data-is-open":I},f.default.createElement(g,{enabled:p,isShown:I,path:mu(r),text:r}),_?f.default.createElement("small",null,f.default.createElement(d,{source:_})):f.default.createElement("small",null),b?f.default.createElement("div",{className:"info__externaldocs"},f.default.createElement("small",null,f.default.createElement(y,{href:lr(b),onClick:T=>T.stopPropagation(),target:"_blank"},w||b))):null,f.default.createElement("button",{"aria-expanded":I,className:"expand-operation",title:I?"Collapse operation":"Expand operation",onClick:()=>a.show(A,!I)},I?f.default.createElement(v,{className:"arrow"}):f.default.createElement(E,{className:"arrow"}))),f.default.createElement(h,{isOpened:I},n))}}class wye extends f.PureComponent{static defaultProps={operation:null,response:null,request:null,specPath:(0,z.List)(),summary:""};render(){let{specPath:e,response:r,request:n,toggleShown:i,onTryoutClick:s,onResetClick:a,onCancelClick:o,onExecute:u,fn:l,getComponent:c,getConfigs:p,specActions:h,specSelectors:d,authActions:g,authSelectors:y,oas3Actions:v,oas3Selectors:E}=this.props,b=this.props.operation,{deprecated:_,isShown:w,path:S,method:A,op:I,tag:T,operationId:k,allowTryItOut:D,displayRequestDuration:R,tryItOutEnabled:$,executeInProgress:M}=b.toJS(),{description:K,externalDocs:ee,schemes:G}=I;const Z=ee?ii(ee.url,d.url(),{selectedServer:E.selectedServer()}):"";let X=b.getIn(["op"]),te=X.get("responses"),ce=(function(C,j){if(!z.default.Iterable.isIterable(C))return z.default.List();let U=C.getIn(Array.isArray(j)?j:[j]);return z.default.List.isList(U)?U:z.default.List()})(X,["parameters"]),ie=d.operationScheme(S,A),ue=["operations",T,k],ye=qs(X);const he=c("responses"),re=c("parameters"),W=c("execute"),V=c("clear"),me=c("Collapse"),ve=c("Markdown",!0),Me=c("schemes"),Be=c("OperationServers"),Te=c("OperationExt"),Pe=c("OperationSummary"),Le=c("Link"),{showExtensions:ge}=p();if(te&&r&&r.size>0){let L=!te.get(String(r.get("status")))&&!te.get("default");r=r.set("notDocumented",L)}let Se=[S,A];const we=d.validationErrors([S,A]);return f.default.createElement("div",{className:_?"opblock opblock-deprecated":w?`opblock opblock-${A} is-open`:`opblock opblock-${A}`,id:o8(ue.join("-"))},f.default.createElement(Pe,{operationProps:b,isShown:w,toggleShown:i,getComponent:c,authActions:g,authSelectors:y,specPath:e}),f.default.createElement(me,{isOpened:w},f.default.createElement("div",{className:"opblock-body"},X&&X.size||X===null?null:f.default.createElement(C8,{height:"32px",width:"32px",className:"opblock-loading-animation"}),_&&f.default.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),K&&f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement("div",{className:"opblock-description"},f.default.createElement(ve,{source:K}))),Z?f.default.createElement("div",{className:"opblock-external-docs-wrapper"},f.default.createElement("h4",{className:"opblock-title_normal"},"Find more details"),f.default.createElement("div",{className:"opblock-external-docs"},ee.description&&f.default.createElement("span",{className:"opblock-external-docs__description"},f.default.createElement(ve,{source:ee.description})),f.default.createElement(Le,{target:"_blank",className:"opblock-external-docs__link",href:lr(Z)},Z))):null,X&&X.size?f.default.createElement(re,{parameters:ce,specPath:e.push("parameters"),operation:X,onChangeKey:Se,onTryoutClick:s,onResetClick:a,onCancelClick:o,tryItOutEnabled:$,allowTryItOut:D,fn:l,getComponent:c,specActions:h,specSelectors:d,pathMethod:[S,A],getConfigs:p,oas3Actions:v,oas3Selectors:E}):null,$?f.default.createElement(Be,{getComponent:c,path:S,method:A,operationServers:X.get("servers"),pathServers:d.paths().getIn([S,"servers"]),getSelectedServer:E.selectedServer,setSelectedServer:v.setSelectedServer,setServerVariableValue:v.setServerVariableValue,getServerVariable:E.serverVariableValue,getEffectiveServerValue:E.serverEffectiveValue}):null,$&&D&&G&&G.size?f.default.createElement("div",{className:"opblock-schemes"},f.default.createElement(Me,{schemes:G,path:S,method:A,specActions:h,currentScheme:ie})):null,!$||!D||we.length<=0?null:f.default.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",f.default.createElement("ul",null,we.map(((L,C)=>f.default.createElement("li",{key:C}," ",L," "))))),f.default.createElement("div",{className:$&&r&&D?"btn-group":"execute-wrapper"},$&&D?f.default.createElement(W,{operation:X,specActions:h,specSelectors:d,oas3Selectors:E,oas3Actions:v,path:S,method:A,onExecute:u,disabled:M}):null,$&&r&&D?f.default.createElement(V,{specActions:h,path:S,method:A}):null),M?f.default.createElement("div",{className:"loading-container"},f.default.createElement("div",{className:"loading"})):null,te?f.default.createElement(he,{responses:te,request:n,tryItOutResponse:r,getComponent:c,getConfigs:p,specSelectors:d,oas3Actions:v,oas3Selectors:E,specActions:h,produces:d.producesOptionsFor([S,A]),producesValue:d.currentProducesFor([S,A]),specPath:e.push("responses"),path:S,method:A,displayRequestDuration:R,fn:l}):null,ge&&ye.size?f.default.createElement(Te,{extensions:ye,getComponent:c}):null)))}}class xye extends f.PureComponent{constructor(e,r){super(e,r);const{tryItOutEnabled:n}=e.getConfigs();this.state={tryItOutEnabled:n,executeInProgress:!1}}static defaultProps={showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1};mapStateToProps(e,r){const{op:n,layoutSelectors:i,getConfigs:s}=r,{docExpansion:a,deepLinking:o,displayOperationId:u,displayRequestDuration:l,supportedSubmitMethods:c}=s(),p=i.showSummary(),h=n.getIn(["operation","__originalOperationId"])||n.getIn(["operation","operationId"])||(0,l4.opId)(n.get("operation"),r.path,r.method)||n.get("id"),d=["operations",r.tag,h],g=c.indexOf(r.method)>=0&&(r.allowTryItOut===void 0?r.specSelectors.allowTryItOutFor(r.path,r.method):r.allowTryItOut),y=n.getIn(["operation","security"])||r.specSelectors.security();return{operationId:h,isDeepLinkingEnabled:o,showSummary:p,displayOperationId:u,displayRequestDuration:l,allowTryItOut:g,security:y,isAuthorized:r.authSelectors.isAuthorized(y),isShown:i.isShown(d,a==="full"),jumpToKey:`paths.${r.path}.${r.method}`,response:r.specSelectors.responseFor(r.path,r.method),request:r.specSelectors.requestFor(r.path,r.method)}}componentDidMount(){const{isShown:e}=this.props,r=this.getResolvedSubtree();e&&r===void 0&&this.requestResolvedSubtree()}componentDidUpdate(e){const{response:r,isShown:n}=this.props,i=this.getResolvedSubtree();r!==e.response&&this.setState({executeInProgress:!1}),n&&i===void 0&&!e.isShown&&this.requestResolvedSubtree()}toggleShown=()=>{let{layoutActions:e,tag:r,operationId:n,isShown:i}=this.props;const s=this.getResolvedSubtree();i||s!==void 0||this.requestResolvedSubtree(),e.show(["operations",r,n],!i)};onCancelClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onTryoutClick=()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})};onResetClick=e=>{const r=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e),n=this.props.oas3Selectors.requestContentType(...e);if(n==="application/x-www-form-urlencoded"||n==="multipart/form-data"){const i=JSON.parse(r);Object.entries(i).forEach((([s,a])=>{Array.isArray(a)?i[s]=i[s].map((o=>typeof o=="object"?JSON.stringify(o,null,2):o)):typeof a=="object"&&(i[s]=JSON.stringify(i[s],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,z.fromJS)(i),pathMethod:e})}else this.props.oas3Actions.setRequestBodyValue({value:r,pathMethod:e})};onExecute=()=>{this.setState({executeInProgress:!0})};getResolvedSubtree=()=>{const{specSelectors:e,path:r,method:n,specPath:i}=this.props;return i?e.specResolvedSubtree(i.toJS()):e.specResolvedSubtree(["paths",r,n])};requestResolvedSubtree=()=>{const{specActions:e,path:r,method:n,specPath:i}=this.props;return i?e.requestResolvedSubtree(i.toJS()):e.requestResolvedSubtree(["paths",r,n])};render(){let{op:e,tag:r,path:n,method:i,security:s,isAuthorized:a,operationId:o,showSummary:u,isShown:l,jumpToKey:c,allowTryItOut:p,response:h,request:d,displayOperationId:g,displayRequestDuration:y,isDeepLinkingEnabled:v,specPath:E,specSelectors:b,specActions:_,getComponent:w,getConfigs:S,layoutSelectors:A,layoutActions:I,authActions:T,authSelectors:k,oas3Actions:D,oas3Selectors:R,fn:$}=this.props;const M=w("operation"),K=this.getResolvedSubtree()||(0,z.Map)(),ee=(0,z.fromJS)({op:K,tag:r,path:n,summary:e.getIn(["operation","summary"])||"",deprecated:K.get("deprecated")||e.getIn(["operation","deprecated"])||!1,method:i,security:s,isAuthorized:a,operationId:o,originalOperationId:K.getIn(["operation","__originalOperationId"]),showSummary:u,isShown:l,jumpToKey:c,allowTryItOut:p,request:d,displayOperationId:g,displayRequestDuration:y,isDeepLinkingEnabled:v,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return f.default.createElement(M,{operation:ee,response:h,request:d,isShown:l,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:E,specActions:_,specSelectors:b,oas3Actions:D,oas3Selectors:R,layoutActions:I,layoutSelectors:A,authActions:T,authSelectors:k,getComponent:w,getConfigs:S,fn:$})}}var Aye=(function(t){var e={};return be.d(e,t),e})({default:function(){return Rle}});class Oye extends f.PureComponent{static defaultProps={operationProps:null,specPath:(0,z.List)(),summary:""};render(){let{isShown:e,toggleShown:r,getComponent:n,authActions:i,authSelectors:s,operationProps:a,specPath:o}=this.props,{summary:u,isAuthorized:l,method:c,op:p,showSummary:h,path:d,operationId:g,originalOperationId:y,displayOperationId:v}=a.toJS(),{summary:E}=p,b=a.get("security");const _=n("authorizeOperationBtn",!0),w=n("OperationSummaryMethod"),S=n("OperationSummaryPath"),A=n("JumpToPath",!0),I=n("CopyToClipboardBtn",!0),T=n("ArrowUpIcon"),k=n("ArrowDownIcon"),D=b&&!!b.count(),R=D&&b.size===1&&b.first().isEmpty(),$=!D||R;return f.default.createElement("div",{className:`opblock-summary opblock-summary-${c}`},f.default.createElement("button",{"aria-expanded":e,className:"opblock-summary-control",onClick:r},f.default.createElement(w,{method:c}),f.default.createElement("div",{className:"opblock-summary-path-description-wrapper"},f.default.createElement(S,{getComponent:n,operationProps:a,specPath:o}),h?f.default.createElement("div",{className:"opblock-summary-description"},(0,Aye.default)(E||u)):null),v&&(y||g)?f.default.createElement("span",{className:"opblock-summary-operation-id"},y||g):null),f.default.createElement(I,{textToCopy:`${o.get(1)}`}),$?null:f.default.createElement(_,{isAuthorized:l,onClick:()=>{const M=s.definitionsForRequirements(b);i.showDefinitions(M)}}),f.default.createElement(A,{path:o}),f.default.createElement("button",{"aria-label":`${c} ${d.replace(/\//g,"​/")}`,className:"opblock-control-arrow","aria-expanded":e,tabIndex:"-1",onClick:r},e?f.default.createElement(T,{className:"arrow"}):f.default.createElement(k,{className:"arrow"})))}}class Cye extends f.PureComponent{static defaultProps={operationProps:null};render(){let{method:e}=this.props;return f.default.createElement("span",{className:"opblock-summary-method"},e.toUpperCase())}}class Rye extends f.PureComponent{render(){let{getComponent:e,operationProps:r}=this.props,{deprecated:n,isShown:i,path:s,tag:a,operationId:o,isDeepLinkingEnabled:u}=r.toJS();const l=s.split(/(?=\/)/g);for(let p=1;p<l.length;p+=2)l.splice(p,0,f.default.createElement("wbr",{key:p}));const c=e("DeepLink");return f.default.createElement("span",{className:n?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":s},f.default.createElement(c,{enabled:u,isShown:i,path:mu(`${a}/${o}`),text:l}))}}var Iye=({extensions:t,getComponent:e})=>{let r=e("OperationExtRow");return f.default.createElement("div",{className:"opblock-section"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("h4",null,"Extensions")),f.default.createElement("div",{className:"table-container"},f.default.createElement("table",null,f.default.createElement("thead",null,f.default.createElement("tr",null,f.default.createElement("td",{className:"col_header"},"Field"),f.default.createElement("td",{className:"col_header"},"Value"))),f.default.createElement("tbody",null,t.entrySeq().map((([n,i])=>f.default.createElement(r,{key:`${n}-${i}`,xKey:n,xVal:i})))))))},Tye=({xKey:t,xVal:e})=>{const r=e?e.toJS?e.toJS():e:null;return f.default.createElement("tr",null,f.default.createElement("td",null,t),f.default.createElement("td",null,JSON.stringify(r)))};function JA(t,e="_"){return t.replace(/[^\w-]/g,e)}class HA extends f.default.Component{static defaultProps={tryItOutResponse:null,produces:(0,z.fromJS)(["application/json"]),displayRequestDuration:!1};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);onResponseContentTypeChange=({controlsAcceptHeader:e,value:r})=>{const{oas3Actions:n,path:i,method:s}=this.props;e&&n.setResponseContentType({value:r,path:i,method:s})};render(){let{responses:e,tryItOutResponse:r,getComponent:n,getConfigs:i,specSelectors:s,fn:a,producesValue:o,displayRequestDuration:u,specPath:l,path:c,method:p,oas3Selectors:h,oas3Actions:d}=this.props,g=(function(T){let k=T.keySeq();return k.contains(g3)?g3:k.filter((D=>(D+"")[0]==="2")).sort().first()})(e);const y=n("contentType"),v=n("liveResponse"),E=n("response");let b=this.props.produces&&this.props.produces.size?this.props.produces:HA.defaultProps.produces;const _=s.isOAS3()?(function(T){if(!z.default.OrderedMap.isOrderedMap(T)||!T.size)return null;const k=T.find((($,M)=>M.startsWith("2")&&Object.keys($.get("content")||{}).length>0)),D=T.get("default")||z.default.OrderedMap(),R=(D.get("content")||z.default.OrderedMap()).keySeq().toJS().length?D:null;return k||R})(e):null,w=e.filter(((I,T)=>!l_(T))),S=JA(`${p}${c}_responses`),A=`${S}_select`;return w&&w.size?f.default.createElement("div",{className:"responses-wrapper"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("h4",null,"Responses"),s.isOAS3()?null:f.default.createElement("label",{htmlFor:A},f.default.createElement("span",null,"Response content type"),f.default.createElement(y,{value:o,ariaControls:S,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:b,controlId:A,onChange:this.onChangeProducesWrapper}))),f.default.createElement("div",{className:"responses-inner"},r?f.default.createElement("div",null,f.default.createElement(v,{response:r,getComponent:n,getConfigs:i,specSelectors:s,path:this.props.path,method:this.props.method,displayRequestDuration:u}),f.default.createElement("h4",null,"Responses")):null,f.default.createElement("table",{"aria-live":"polite",className:"responses-table",id:S,role:"region"},f.default.createElement("thead",null,f.default.createElement("tr",{className:"responses-header"},f.default.createElement("td",{className:"col_header response-col_status"},"Code"),f.default.createElement("td",{className:"col_header response-col_description"},"Description"),s.isOAS3()?f.default.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),f.default.createElement("tbody",null,w.entrySeq().map((([I,T])=>{let k=r&&r.get("status")==I?"response_current":"";return f.default.createElement(E,{key:I,path:c,method:p,specPath:l.push(I),isDefault:g===I,fn:a,className:k,code:I,response:T,specSelectors:s,controlsAcceptHeader:T===_,onContentTypeChange:this.onResponseContentTypeChange,contentType:o,getConfigs:i,activeExamplesKey:h.activeExamplesMember(c,p,"responses",I),oas3Actions:d,getComponent:n})})).toArray())))):null}}function Lp(t){return(function(r){try{return!!JSON.parse(r)}catch{return null}})(t)?"json":null}let Pye=class extends f.default.Component{constructor(e,r){super(e,r),this.state={responseContentType:""}}static defaultProps={response:(0,z.fromJS)({}),onContentTypeChange:()=>{}};_onContentTypeChange=e=>{const{onContentTypeChange:r,controlsAcceptHeader:n}=this.props;this.setState({responseContentType:e}),r({value:e,controlsAcceptHeader:n})};getTargetExamplesKey=()=>{const{response:e,contentType:r,activeExamplesKey:n}=this.props,i=this.state.responseContentType||r,s=e.getIn(["content",i],(0,z.Map)({})).get("examples",null).keySeq().first();return n||s};render(){let{path:e,method:r,code:n,response:i,className:s,specPath:a,fn:o,getComponent:u,getConfigs:l,specSelectors:c,contentType:p,controlsAcceptHeader:h,oas3Actions:d}=this.props,{inferSchema:g,getSampleSchema:y}=o,v=c.isOAS3();const{showExtensions:E}=l();let b=E?qs(i):null,_=i.get("headers"),w=i.get("links");const S=u("ResponseExtension"),A=u("headers"),I=u("HighlightCode",!0),T=u("modelExample"),k=u("Markdown",!0),D=u("operationLink"),R=u("contentType"),$=u("ExamplesSelect"),M=u("Example");var K,ee;const G=this.state.responseContentType||p,Z=i.getIn(["content",G],(0,z.Map)({})),X=Z.get("examples",null);if(v){const he=Z.get("schema");K=he?g(he.toJS()):null,ee=he?a.push("content",this.state.responseContentType,"schema"):a}else K=i.get("schema"),ee=i.has("schema")?a.push("schema"):a;let te,ce,ie=!1,ue={includeReadOnly:!0};if(v)if(ce=Z.get("schema")?.toJS(),z.Map.isMap(X)&&!X.isEmpty()){const he=this.getTargetExamplesKey(),re=W=>z.Map.isMap(W)?W.get("value"):void 0;te=re(X.get(he,(0,z.Map)({}))),te===void 0&&(te=re(X.values().next().value)),ie=!0}else Z.get("example")!==void 0&&(te=Z.get("example"),ie=!0);else{ce=K,ue={...ue,includeWriteOnly:!0};const he=i.getIn(["examples",G]);he&&(te=he,ie=!0)}const ye=((he,re)=>{if(he==null)return null;const W=Lp(he)?"json":null;return f.default.createElement("div",null,f.default.createElement(re,{className:"example",language:W},Cr(he)))})(y(ce,G,ue,ie?te:void 0),I);return f.default.createElement("tr",{className:"response "+(s||""),"data-code":n},f.default.createElement("td",{className:"response-col_status"},n),f.default.createElement("td",{className:"response-col_description"},f.default.createElement("div",{className:"response-col_description__inner"},f.default.createElement(k,{source:i.get("description")})),E&&b.size?b.entrySeq().map((([he,re])=>f.default.createElement(S,{key:`${he}-${re}`,xKey:he,xVal:re}))):null,v&&i.get("content")?f.default.createElement("section",{className:"response-controls"},f.default.createElement("div",{className:(0,Tt.default)("response-control-media-type",{"response-control-media-type--accept-controller":h})},f.default.createElement("small",{className:"response-control-media-type__title"},"Media type"),f.default.createElement(R,{value:this.state.responseContentType,contentTypes:i.get("content")?i.get("content").keySeq():(0,z.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),h?f.default.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",f.default.createElement("code",null,"Accept")," header."):null),z.Map.isMap(X)&&!X.isEmpty()?f.default.createElement("div",{className:"response-control-examples"},f.default.createElement("small",{className:"response-control-examples__title"},"Examples"),f.default.createElement($,{examples:X,currentExampleKey:this.getTargetExamplesKey(),onSelect:he=>d.setActiveExamplesMember({name:he,pathMethod:[e,r],contextType:"responses",contextName:n}),showLabels:!1})):null):null,ye||K?f.default.createElement(T,{specPath:ee,getComponent:u,getConfigs:l,specSelectors:c,schema:Si(K),example:ye,includeReadOnly:!0}):null,v&&X?f.default.createElement(M,{example:X.get(this.getTargetExamplesKey(),(0,z.Map)({})),getComponent:u,getConfigs:l,omitValue:!0}):null,_?f.default.createElement(A,{headers:_,getComponent:u}):null),v?f.default.createElement("td",{className:"response-col_links"},w?w.toSeq().entrySeq().map((([he,re])=>f.default.createElement(D,{key:he,name:he,link:re,getComponent:u}))):f.default.createElement("i",null,"No links")):null)}};var kye=({xKey:t,xVal:e})=>f.default.createElement("div",{className:"response__extension"},t,": ",String(e)),jye=(function(t){var e={};return be.d(e,t),e})({default:function(){return kle}}),z3=(function(t){var e={};return be.d(e,t),e})({default:function(){return Mle}});class Nye extends f.default.PureComponent{state={parsedContent:null};updateParsedContent=e=>{const{content:r}=this.props;if(e!==r)if(r&&r instanceof Blob){var n=new FileReader;n.onload=()=>{this.setState({parsedContent:n.result})},n.readAsText(r)}else this.setState({parsedContent:r.toString()})};componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:r,url:n,headers:i={},getComponent:s}=this.props;const{parsedContent:a}=this.state,o=s("HighlightCode",!0),u="response_"+new Date().getTime();let l,c;if(n=n||"",(/^application\/octet-stream/i.test(r)||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"]))&&(e.size>0||e.length>0))if("Blob"in window){let p=r||"text/html",h=e instanceof Blob?e:new Blob([e],{type:p}),d=window.URL.createObjectURL(h),g=[p,n.substr(n.lastIndexOf("/")+1),d].join(":"),y=i["content-disposition"]||i["Content-Disposition"];if(y!==void 0){let v=(function(b){let _;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((w=>(_=w.exec(b),_!==null))),_!==null&&_.length>1)try{return decodeURIComponent(_[1])}catch(w){console.error(w)}return null})(y);v!==null&&(g=v)}c=Gt.navigator&&Gt.navigator.msSaveOrOpenBlob?f.default.createElement("div",null,f.default.createElement("a",{href:d,onClick:()=>Gt.navigator.msSaveOrOpenBlob(h,g)},"Download file")):f.default.createElement("div",null,f.default.createElement("a",{href:d,download:g},"Download file"))}else c=f.default.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(r)){let p=null;Lp(e)&&(p="json");try{l=JSON.stringify(JSON.parse(e),null," ")}catch{l=`can't parse JSON. Raw result:
281
+
282
+ `+e}c=f.default.createElement(o,{language:p,downloadable:!0,fileName:`${u}.json`,canCopy:!0},l)}else/xml/i.test(r)?(l=(0,jye.default)(e,{textNodesOnSameLine:!0,indentor:" "}),c=f.default.createElement(o,{downloadable:!0,fileName:`${u}.xml`,canCopy:!0},l)):c=(0,z3.default)(r)==="text/html"||/text\/plain/.test(r)?f.default.createElement(o,{downloadable:!0,fileName:`${u}.html`,canCopy:!0},e):(0,z3.default)(r)==="text/csv"||/text\/csv/.test(r)?f.default.createElement(o,{downloadable:!0,fileName:`${u}.csv`,canCopy:!0},e):/^image\//i.test(r)?r.includes("svg")?f.default.createElement("div",null," ",e," "):f.default.createElement("img",{src:window.URL.createObjectURL(e)}):/^audio\//i.test(r)?f.default.createElement("pre",{className:"microlight"},f.default.createElement("audio",{controls:!0,key:n},f.default.createElement("source",{src:n,type:r}))):typeof e=="string"?f.default.createElement(o,{downloadable:!0,fileName:`${u}.txt`,canCopy:!0},e):e.size>0?a?f.default.createElement("div",null,f.default.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),f.default.createElement(o,{downloadable:!0,fileName:`${u}.txt`,canCopy:!0},a)):f.default.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return c?f.default.createElement("div",null,f.default.createElement("h5",null,"Response body"),c):null}}class Mye extends f.Component{constructor(e){super(e),this.state={callbackVisible:!1,parametersVisible:!0}}static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]};onChange=(e,r,n)=>{let{specActions:{changeParamByIdentity:i},onChangeKey:s}=this.props;i(s,e,r,n)};onChangeConsumesWrapper=e=>{let{specActions:{changeConsumesValue:r},onChangeKey:n}=this.props;r(n,e)};toggleTab=e=>e==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):e==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0;onChangeMediaType=({value:e,pathMethod:r})=>{let{specActions:n,oas3Selectors:i,oas3Actions:s}=this.props;const a=i.hasUserEditedBody(...r),o=i.shouldRetainRequestBodyValue(...r);s.setRequestContentType({value:e,pathMethod:r}),s.initRequestBodyValidateError({pathMethod:r}),a||(o||s.setRequestBodyValue({value:void 0,pathMethod:r}),n.clearResponse(...r),n.clearRequest(...r),n.clearValidateParams(r))};render(){let{onTryoutClick:e,onResetClick:r,parameters:n,allowTryItOut:i,tryItOutEnabled:s,specPath:a,fn:o,getComponent:u,getConfigs:l,specSelectors:c,specActions:p,pathMethod:h,oas3Actions:d,oas3Selectors:g,operation:y}=this.props;const v=u("parameterRow"),E=u("TryItOutButton"),b=u("contentType"),_=u("Callbacks",!0),w=u("RequestBody",!0),S=s&&i,A=c.isOAS3(),I=`${JA(`${h[1]}${h[0]}_requests`)}_select`,T=y.get("requestBody"),k=Object.values(n.reduce(((D,R)=>{if(z.Map.isMap(R)){const $=R.get("in");D[$]??=[],D[$].push(R)}return D}),{})).reduce(((D,R)=>D.concat(R)),[]);return f.default.createElement("div",{className:"opblock-section"},f.default.createElement("div",{className:"opblock-section-header"},A?f.default.createElement("div",{className:"tab-header"},f.default.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},f.default.createElement("h4",{className:"opblock-title"},f.default.createElement("span",null,"Parameters"))),y.get("callbacks")?f.default.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},f.default.createElement("h4",{className:"opblock-title"},f.default.createElement("span",null,"Callbacks"))):null):f.default.createElement("div",{className:"tab-header"},f.default.createElement("h4",{className:"opblock-title"},"Parameters")),i?f.default.createElement(E,{isOAS3:c.isOAS3(),hasUserEditedBody:g.hasUserEditedBody(...h),enabled:s,onCancelClick:this.props.onCancelClick,onTryoutClick:e,onResetClick:()=>r(h)}):null),this.state.parametersVisible?f.default.createElement("div",{className:"parameters-container"},k.length?f.default.createElement("div",{className:"table-container"},f.default.createElement("table",{className:"parameters"},f.default.createElement("thead",null,f.default.createElement("tr",null,f.default.createElement("th",{className:"col_header parameters-col_name"},"Name"),f.default.createElement("th",{className:"col_header parameters-col_description"},"Description"))),f.default.createElement("tbody",null,k.map(((D,R)=>f.default.createElement(v,{fn:o,specPath:a.push(R.toString()),getComponent:u,getConfigs:l,rawParam:D,param:c.parameterWithMetaByIdentity(h,D),key:`${D.get("in")}.${D.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:c,specActions:p,oas3Actions:d,oas3Selectors:g,pathMethod:h,isExecute:S})))))):f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?f.default.createElement("div",{className:"callbacks-container opblock-description-wrapper"},f.default.createElement(_,{callbacks:(0,z.Map)(y.get("callbacks")),specPath:a.slice(0,-1).push("callbacks")})):null,A&&T&&this.state.parametersVisible&&f.default.createElement("div",{className:"opblock-section opblock-section-request-body"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("h4",{className:`opblock-title parameter__name ${T.get("required")&&"required"}`},"Request body"),f.default.createElement("label",{id:I},f.default.createElement(b,{value:g.requestContentType(...h),contentTypes:T.get("content",(0,z.List)()).keySeq(),onChange:D=>{this.onChangeMediaType({value:D,pathMethod:h})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:I}))),f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement(w,{setRetainRequestBodyValueFlag:D=>d.setRetainRequestBodyValueFlag({value:D,pathMethod:h}),userHasEditedBody:g.hasUserEditedBody(...h),specPath:a.slice(0,-1).push("requestBody"),requestBody:T,requestBodyValue:g.requestBodyValue(...h),requestBodyInclusionSetting:g.requestBodyInclusionSetting(...h),requestBodyErrors:g.requestBodyErrors(...h),isExecute:S,getConfigs:l,activeExamplesKey:g.activeExamplesMember(...h,"requestBody","requestBody"),updateActiveExamplesKey:D=>{this.props.oas3Actions.setActiveExamplesMember({name:D,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(D,R)=>{if(R){const $=g.requestBodyValue(...h),M=z.Map.isMap($)?$:(0,z.Map)();return d.setRequestBodyValue({pathMethod:h,value:M.setIn(R,D)})}d.setRequestBodyValue({value:D,pathMethod:h})},onChangeIncludeEmpty:(D,R)=>{d.setRequestBodyInclusion({pathMethod:h,value:R,name:D})},contentType:g.requestContentType(...h)}))))}}var Dye=({xKey:t,xVal:e})=>f.default.createElement("div",{className:"parameter__extension"},t,": ",String(e));const Fye={onChange:()=>{},isIncludedOptions:{}};class qye extends f.Component{static defaultProps=Fye;componentDidMount(){const{isIncludedOptions:e,onChange:r}=this.props,{shouldDispatchInit:n,defaultValue:i}=e;n&&r(i)}onCheckboxChange=e=>{const{onChange:r}=this.props;r(e.target.checked)};render(){let{isIncluded:e,isDisabled:r}=this.props;return f.default.createElement("div",null,f.default.createElement("label",{htmlFor:"include_empty_value",className:(0,Tt.default)("parameter__empty_value_toggle",{disabled:r})},f.default.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:r,checked:!r&&e,onChange:this.onCheckboxChange}),"Send empty value"))}}class Bye extends f.Component{constructor(e,r){super(e,r),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let r,{specSelectors:n,pathMethod:i,rawParam:s}=e,a=n.isOAS3(),o=n.parameterWithMetaByIdentity(i,s)||new z.Map;if(o=o.isEmpty()?s:o,a){let{schema:c}=jc(o,{isOAS3:a});r=c?c.get("enum"):void 0}else r=o?o.get("enum"):void 0;let u,l=o?o.get("value"):void 0;l!==void 0?u=l:s.get("required")&&r&&r.size&&(u=r.first()),u!==void 0&&u!==l&&this.onChangeWrapper((function(p){return typeof p=="number"?p.toString():p})(u)),this.setDefaultValue()}onChangeWrapper=(e,r=!1)=>{let n,{onChange:i,rawParam:s}=this.props;return n=e===""||e&&e.size===0?null:e,i(s,n,r)};_onExampleSelect=e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})};onChangeIncludeEmpty=e=>{let{specActions:r,param:n,pathMethod:i}=this.props;const s=n.get("name"),a=n.get("in");return r.updateEmptyParamInclusion(i,s,a,e)};setDefaultValue=()=>{let{specSelectors:e,pathMethod:r,rawParam:n,oas3Selectors:i,fn:s}=this.props;const a=e.parameterWithMetaByIdentity(r,n)||(0,z.Map)();let{schema:o}=jc(a,{isOAS3:e.isOAS3()});const u=a.get("content",(0,z.Map)()).keySeq().first(),l=o?s.getSampleSchema(o.toJS(),u,{includeWriteOnly:!0}):null;if(a&&a.get("value")===void 0&&a.get("in")!=="body"){let c;if(e.isSwagger2())c=a.get("x-example")!==void 0?a.get("x-example"):a.getIn(["schema","example"])!==void 0?a.getIn(["schema","example"]):o&&o.getIn(["default"]);else if(e.isOAS3()){o=this.composeJsonSchema(o);const d=i.activeExamplesMember(...r,"parameters",this.getParamKey());c=a.getIn(["examples",d,"value"])!==void 0?a.getIn(["examples",d,"value"]):a.getIn(["content",u,"example"])!==void 0?a.getIn(["content",u,"example"]):a.get("example")!==void 0?a.get("example"):(o&&o.get("example"))!==void 0?o&&o.get("example"):(o&&o.get("default"))!==void 0?o&&o.get("default"):a.get("default")}c===void 0||z.List.isList(c)||(c=Cr(c));const p=s.getSchemaObjectType(o),h=s.getSchemaObjectType(o?.get("items"));c!==void 0?this.onChangeWrapper(c):p==="object"&&l&&!a.get("examples")?this.onChangeWrapper(z.List.isList(l)?l:Cr(l)):p==="array"&&h==="object"&&l&&!a.get("examples")&&this.onChangeWrapper(z.List.isList(l)?l:(0,z.List)(JSON.parse(l)))}};getParamKey(){const{param:e}=this.props;return e?`${e.get("name")}-${e.get("in")}`:null}composeJsonSchema(e){const{fn:r}=this.props,n=e.get("oneOf")?.get(0)?.toJS(),i=e.get("anyOf")?.get(0)?.toJS();return(0,z.fromJS)(r.mergeJsonSchema(e.toJS(),n??i??{}))}render(){let{param:e,rawParam:r,getComponent:n,getConfigs:i,isExecute:s,fn:a,onChangeConsumes:o,specSelectors:u,pathMethod:l,specPath:c,oas3Selectors:p}=this.props,h=u.isOAS3();const{showExtensions:d,showCommonExtensions:g}=i();if(e||(e=r),!r)return null;const y=n("JsonSchemaForm"),v=n("ParamBody");let E=e.get("in"),b=E!=="body"?null:f.default.createElement(v,{getComponent:n,getConfigs:i,fn:a,param:e,consumes:u.consumesOptionsFor(l),consumesValue:u.contentTypeValues(l).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:o,isExecute:s,specSelectors:u,pathMethod:l});const _=n("modelExample"),w=n("Markdown",!0),S=n("ParameterExt"),A=n("ParameterIncludeEmpty"),I=n("ExamplesSelectValueRetainer"),T=n("Example");let{schema:k}=jc(e,{isOAS3:h}),D=u.parameterWithMetaByIdentity(l,r)||(0,z.Map)();const R=D.get("content",(0,z.Map)()).keySeq().first();h&&(k=this.composeJsonSchema(k));let $=k?k.get("format"):null,M=E==="formData",K="FormData"in Gt,ee=e.get("required");const G=a.getSchemaObjectType(k),Z=a.getSchemaObjectType(k?.get("items")),X=a.getSchemaObjectTypeLabel(k),te=!b&&G==="object",ce=!b&&Z==="object";let ie,ue,ye,he,re=D?D.get("value"):"",W=g?u8(k):null,V=d?qs(e):null,me=!1;e!==void 0&&k&&(ie=k.get("items")),ie!==void 0?(ue=ie.get("enum"),ye=ie.get("default")):k&&(ue=k.get("enum")),ue&&ue.size&&ue.size>0&&(me=!0),e!==void 0&&(k&&(ye=k.get("default")),ye===void 0&&(ye=e.get("default")),he=e.get("example"),he===void 0&&(he=e.get("x-example")));const ve=b?null:f.default.createElement(y,{fn:a,getComponent:n,value:re,required:ee,disabled:!s,description:e.get("name"),onChange:this.onChangeWrapper,errors:D.get("errors"),schema:k});return f.default.createElement("tr",{"data-param-name":e.get("name"),"data-param-in":e.get("in")},f.default.createElement("td",{className:"parameters-col_name"},f.default.createElement("div",{className:ee?"parameter__name required":"parameter__name"},e.get("name"),ee?f.default.createElement("span",null," *"):null),f.default.createElement("div",{className:"parameter__type"},X,$&&f.default.createElement("span",{className:"prop-format"},"($",$,")")),f.default.createElement("div",{className:"parameter__deprecated"},h&&e.get("deprecated")?"deprecated":null),f.default.createElement("div",{className:"parameter__in"},"(",e.get("in"),")")),f.default.createElement("td",{className:"parameters-col_description"},e.get("description")?f.default.createElement(w,{source:e.get("description")}):null,!b&&s||!me?null:f.default.createElement(w,{className:"parameter__enum",source:"<i>Available values</i> : "+ue.map((function(Me){return Me})).toArray().map(String).join(", ")}),!b&&s||ye===void 0?null:f.default.createElement(w,{className:"parameter__default",source:"<i>Default value</i> : "+ye}),!b&&s||he===void 0?null:f.default.createElement(w,{source:"<i>Example</i> : "+he}),M&&!K&&f.default.createElement("div",null,"Error: your browser does not support FormData"),h&&e.get("examples")?f.default.createElement("section",{className:"parameter-controls"},f.default.createElement(I,{examples:e.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:n,defaultToFirstExample:!0,currentKey:p.activeExamplesMember(...l,"parameters",this.getParamKey()),currentUserInputValue:re})):null,te||ce?f.default.createElement(_,{getComponent:n,specPath:R?c.push("content",R,"schema"):c.push("schema"),getConfigs:i,isExecute:s,specSelectors:u,schema:k,example:ve}):ve,b&&k?f.default.createElement(_,{getComponent:n,specPath:c.push("schema"),getConfigs:i,isExecute:s,specSelectors:u,schema:k,example:b,includeWriteOnly:!0}):null,!b&&s&&e.get("allowEmptyValue")?f.default.createElement(A,{onChange:this.onChangeIncludeEmpty,isIncluded:u.parameterInclusionSettingFor(l,e.get("name"),e.get("in")),isDisabled:!dA(re)}):null,h&&e.get("examples")?f.default.createElement(T,{example:e.getIn(["examples",p.activeExamplesMember(...l,"parameters",this.getParamKey())]),getComponent:n,getConfigs:i}):null,g&&W.size?W.entrySeq().map((([Me,Be])=>f.default.createElement(S,{key:`${Me}-${Be}`,xKey:Me,xVal:Be}))):null,d&&V.size?V.entrySeq().map((([Me,Be])=>f.default.createElement(S,{key:`${Me}-${Be}`,xKey:Me,xVal:Be}))):null))}}class $ye extends f.Component{handleValidateParameters=()=>{let{specSelectors:e,specActions:r,path:n,method:i}=this.props;return r.validateParams([n,i]),e.validateBeforeExecute([n,i])};handleValidateRequestBody=()=>{let{path:e,method:r,specSelectors:n,oas3Selectors:i,oas3Actions:s}=this.props,a={missingBodyValue:!1,missingRequiredKeys:[]};s.clearRequestBodyValidateError({path:e,method:r});let o=n.getOAS3RequiredRequestBodyContentType([e,r]),u=i.requestBodyValue(e,r),l=i.validateBeforeExecute([e,r]),c=i.requestContentType(e,r);if(!l)return a.missingBodyValue=!0,s.setRequestBodyValidateError({path:e,method:r,validationErrors:a}),!1;if(!o)return!0;let p=i.validateShallowRequired({oas3RequiredRequestBodyContentType:o,oas3RequestContentType:c,oas3RequestBodyValue:u});return!p||p.length<1||(p.forEach((h=>{a.missingRequiredKeys.push(h)})),s.setRequestBodyValidateError({path:e,method:r,validationErrors:a}),!1)};handleValidationResultPass=()=>{let{specActions:e,operation:r,path:n,method:i}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:r,path:n,method:i})};handleValidationResultFail=()=>{let{specActions:e,path:r,method:n}=this.props;e.clearValidateParams([r,n]),setTimeout((()=>{e.validateParams([r,n])}),40)};handleValidationResult=e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()};onClick=()=>{let e=this.handleValidateParameters(),r=this.handleValidateRequestBody(),n=e&&r;this.handleValidationResult(n)};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);render(){const{disabled:e}=this.props;return f.default.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:e},"Execute")}}class Lye extends f.default.Component{render(){let{headers:e,getComponent:r}=this.props;const n=r("Property"),i=r("Markdown",!0);return e&&e.size?f.default.createElement("div",{className:"headers-wrapper"},f.default.createElement("h4",{className:"headers__title"},"Headers:"),f.default.createElement("table",{className:"headers"},f.default.createElement("thead",null,f.default.createElement("tr",{className:"header-row"},f.default.createElement("th",{className:"header-col"},"Name"),f.default.createElement("th",{className:"header-col"},"Description"),f.default.createElement("th",{className:"header-col"},"Type"))),f.default.createElement("tbody",null,e.entrySeq().map((([s,a])=>{if(!z.default.Map.isMap(a))return null;const o=a.get("description"),u=a.getIn(["schema"])?a.getIn(["schema","type"]):a.getIn(["type"]),l=a.getIn(["schema","example"]);return f.default.createElement("tr",{key:s},f.default.createElement("td",{className:"header-col"},s),f.default.createElement("td",{className:"header-col"},o?f.default.createElement(i,{source:o}):null),f.default.createElement("td",{className:"header-col"},u," ",l?f.default.createElement(n,{propKey:"Example",propVal:l,propClass:"header-example"}):null))})).toArray()))):null}}class Uye extends f.default.Component{render(){let{editorActions:e,errSelectors:r,layoutSelectors:n,layoutActions:i,getComponent:s}=this.props;const a=s("Collapse");if(e&&e.jumpToLine)var o=e.jumpToLine;let u=r.allErrors().filter((p=>p.get("type")==="thrown"||p.get("level")==="error"));if(!u||u.count()<1)return null;let l=n.isShown(["errorPane"],!0),c=u.sortBy((p=>p.get("line")));return f.default.createElement("pre",{className:"errors-wrapper"},f.default.createElement("hgroup",{className:"error"},f.default.createElement("h4",{className:"errors__title"},"Errors"),f.default.createElement("button",{className:"btn errors__clear-btn",onClick:()=>i.show(["errorPane"],!l)},l?"Hide":"Show")),f.default.createElement(a,{isOpened:l,animated:!0},f.default.createElement("div",{className:"errors"},c.map(((p,h)=>{let d=p.get("type");return d==="thrown"||d==="auth"?f.default.createElement(Vye,{key:h,error:p.get("error")||p,jumpToLine:o}):d==="spec"?f.default.createElement(zye,{key:h,error:p,jumpToLine:o}):void 0})))))}}const Vye=({error:t,jumpToLine:e})=>{if(!t)return null;let r=t.get("line");return f.default.createElement("div",{className:"error-wrapper"},t?f.default.createElement("div",null,f.default.createElement("h4",null,t.get("source")&&t.get("level")?A4(t.get("source"))+" "+t.get("level"):"",t.get("path")?f.default.createElement("small",null," at ",t.get("path")):null),f.default.createElement("span",{className:"message thrown"},t.get("message")),f.default.createElement("div",{className:"error-line"},r&&e?f.default.createElement("a",{onClick:e.bind(null,r)},"Jump to line ",r):null)):null)},zye=({error:t,jumpToLine:e=null})=>{let r=null;return t.get("path")?r=z.List.isList(t.get("path"))?f.default.createElement("small",null,"at ",t.get("path").join(".")):f.default.createElement("small",null,"at ",t.get("path")):t.get("line")&&!e&&(r=f.default.createElement("small",null,"on line ",t.get("line"))),f.default.createElement("div",{className:"error-wrapper"},t?f.default.createElement("div",null,f.default.createElement("h4",null,A4(t.get("source"))+" "+t.get("level")," ",r),f.default.createElement("span",{className:"message"},t.get("message")),f.default.createElement("div",{className:"error-line"},e?f.default.createElement("a",{onClick:e.bind(null,t.get("line"))},"Jump to line ",t.get("line")):null)):null)};function A4(t){return(t||"").split(" ").map((e=>e[0].toUpperCase()+e.slice(1))).join(" ")}const Wye=()=>{};class Jye extends f.default.Component{static defaultProps={onChange:Wye,value:null,contentTypes:(0,z.fromJS)(["application/json"])};componentDidMount(){const{contentTypes:e,onChange:r}=this.props;e&&e.size&&r(e.first())}componentDidUpdate(){const{contentTypes:e,value:r,onChange:n}=this.props;e&&e.size&&(e.includes(r)||n(e.first()))}onChangeWrapper=e=>this.props.onChange(e.target.value);render(){let{ariaControls:e,ariaLabel:r,className:n,contentTypes:i,controlId:s,value:a}=this.props;return i&&i.size?f.default.createElement("div",{className:"content-type-wrapper "+(n||"")},f.default.createElement("select",{"aria-controls":e,"aria-label":r,className:"content-type",id:s,onChange:this.onChangeWrapper,value:a||""},i.map((o=>f.default.createElement("option",{key:o,value:o},o))).toArray())):null}}function Nl(...t){return t.filter((e=>!!e)).join(" ").trim()}class Hye extends f.default.Component{render(){let{fullscreen:e,full:r,...n}=this.props;if(e)return f.default.createElement("section",n);let i="swagger-container"+(r?"-full":"");return f.default.createElement("section",(0,It.default)({},n,{className:Nl(n.className,i)}))}}const GS={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class Kye extends f.default.Component{render(){const{hide:e,keepContents:r,mobile:n,tablet:i,desktop:s,large:a,...o}=this.props;if(e&&!r)return f.default.createElement("span",null);let u=[];for(let c in GS){if(!Object.prototype.hasOwnProperty.call(GS,c))continue;let p=GS[c];if(c in this.props){let h=this.props[c];if(h<1){u.push("none"+p);continue}u.push("block"+p),u.push("col-"+h+p)}}e&&u.push("hidden");let l=Nl(o.className,...u);return f.default.createElement("section",(0,It.default)({},o,{className:l}))}}class Gye extends f.default.Component{render(){return f.default.createElement("div",(0,It.default)({},this.props,{className:Nl(this.props.className,"wrapper")}))}}class Yye extends f.default.Component{static defaultProps={className:""};render(){return f.default.createElement("button",(0,It.default)({},this.props,{className:Nl(this.props.className,"button")}))}}const Xye=t=>f.default.createElement("textarea",t),Zye=t=>f.default.createElement("input",t);class Qye extends f.default.Component{static defaultProps={multiple:!1,allowEmptyValue:!0};constructor(e,r){let n;super(e,r),n=e.value?e.value:e.multiple?[""]:"",this.state={value:n}}onChange=e=>{let r,{onChange:n,multiple:i}=this.props,s=[].slice.call(e.target.options);r=i?s.filter((function(a){return a.selected})).map((function(a){return a.value})):e.target.value,this.setState({value:r}),n&&n(r)};UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){let{allowedValues:e,multiple:r,allowEmptyValue:n,disabled:i}=this.props,s=this.state.value?.toJS?.()||this.state.value;return f.default.createElement("select",{className:this.props.className,multiple:r,value:s,onChange:this.onChange,disabled:i},n?f.default.createElement("option",{value:""},"--"):null,e.map((function(a,o){return f.default.createElement("option",{key:o,value:String(a)},String(a))})))}}class O4 extends f.default.Component{render(){return f.default.createElement("a",(0,It.default)({},this.props,{rel:"noopener noreferrer",className:Nl(this.props.className,"link")}))}}const W3=({children:t})=>f.default.createElement("div",{className:"no-margin"}," ",t," ");class eve extends f.default.Component{static defaultProps={isOpened:!1,animated:!1};renderNotAnimated(){return this.props.isOpened?f.default.createElement(W3,null,this.props.children):f.default.createElement("noscript",null)}render(){let{animated:e,isOpened:r,children:n}=this.props;return e?(n=r?n:null,f.default.createElement(W3,null,n)):this.renderNotAnimated()}}class tve extends f.default.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:i}=this.props,s=e.taggedOperations();const a=i("Collapse");return f.default.createElement("div",null,f.default.createElement("h4",{className:"overview-title"},"Overview"),s.map(((o,u)=>{let l=o.get("operations"),c=["overview-tags",u],p=r.isShown(c,!0);return f.default.createElement("div",{key:"overview-"+u},f.default.createElement("h4",{onClick:()=>n.show(c,!p),className:"link overview-tag"}," ",p?"-":"+",u),f.default.createElement(a,{isOpened:p,animated:!0},l.map((h=>{let{path:d,method:g,id:y}=h.toObject(),v="operations",E=y,b=r.isShown([v,E]);return f.default.createElement(rve,{key:y,path:d,method:g,id:d+"-"+g,shown:b,showOpId:E,showOpIdPrefix:v,href:`#operation-${E}`,onClick:n.show})})).toArray()))})).toArray(),s.size<1&&f.default.createElement("h3",null," No operations defined in spec! "))}}class rve extends f.default.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:r,onClick:n,shown:i}=this.props;n([r,e],!i)}render(){let{id:e,method:r,shown:n,href:i}=this.props;return f.default.createElement(O4,{href:i,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},f.default.createElement("div",null,f.default.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),f.default.createElement("span",{className:"bold-label"},e)))}}class nve extends f.default.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:e,defaultValue:r,initialValue:n,...i}=this.props;return f.default.createElement("input",(0,It.default)({},i,{ref:s=>this.inputRef=s}))}}class ive extends f.default.Component{render(){const{host:e,basePath:r}=this.props;return f.default.createElement("pre",{className:"base-url"},"[ Base URL: ",e,r," ]")}}class sve extends f.default.PureComponent{render(){const{url:e,getComponent:r}=this.props,n=r("Link");return f.default.createElement(n,{target:"_blank",href:lr(e)},f.default.createElement("span",{className:"url"}," ",e))}}class ave extends f.default.Component{render(){const{info:e,url:r,host:n,basePath:i,getComponent:s,externalDocs:a,selectedServer:o,url:u}=this.props,l=e.get("version"),c=e.get("description"),p=e.get("title"),h=ii(e.get("termsOfService"),u,{selectedServer:o}),d=e.get("contact"),g=e.get("license"),y=ii(a&&a.get("url"),u,{selectedServer:o}),v=a&&a.get("description"),E=s("Markdown",!0),b=s("Link"),_=s("VersionStamp"),w=s("OpenAPIVersion"),S=s("InfoUrl"),A=s("InfoBasePath"),I=s("License"),T=s("Contact");return f.default.createElement("div",{className:"info"},f.default.createElement("hgroup",{className:"main"},f.default.createElement("h1",{className:"title"},p,f.default.createElement("span",null,l&&f.default.createElement(_,{version:l}),f.default.createElement(w,{oasVersion:"2.0"}))),n||i?f.default.createElement(A,{host:n,basePath:i}):null,r&&f.default.createElement(S,{getComponent:s,url:r})),f.default.createElement("div",{className:"description"},f.default.createElement(E,{source:c})),h&&f.default.createElement("div",{className:"info__tos"},f.default.createElement(b,{target:"_blank",href:lr(h)},"Terms of service")),d?.size>0&&f.default.createElement(T,{getComponent:s,data:d,selectedServer:o,url:r}),g?.size>0&&f.default.createElement(I,{getComponent:s,license:g,selectedServer:o,url:r}),y?f.default.createElement(b,{className:"info__extdocs",target:"_blank",href:lr(y)},v||y):null)}}var ove=ave;class uve extends f.default.Component{render(){const{specSelectors:e,getComponent:r,oas3Selectors:n}=this.props,i=e.info(),s=e.url(),a=e.basePath(),o=e.host(),u=e.externalDocs(),l=n.selectedServer(),c=r("info");return f.default.createElement("div",null,i&&i.count()?f.default.createElement(c,{info:i,url:s,host:o,basePath:a,externalDocs:u,getComponent:r,selectedServer:l}):null)}}class lve extends f.default.Component{render(){const{data:e,getComponent:r,selectedServer:n,url:i}=this.props,s=e.get("name","the developer"),a=ii(e.get("url"),i,{selectedServer:n}),o=e.get("email"),u=r("Link");return f.default.createElement("div",{className:"info__contact"},a&&f.default.createElement("div",null,f.default.createElement(u,{href:lr(a),target:"_blank"},s," - Website")),o&&f.default.createElement(u,{href:lr(`mailto:${o}`)},a?`Send email to ${s}`:`Contact ${s}`))}}var cve=lve;class fve extends f.default.Component{render(){const{license:e,getComponent:r,selectedServer:n,url:i}=this.props,s=e.get("name","License"),a=ii(e.get("url"),i,{selectedServer:n}),o=r("Link");return f.default.createElement("div",{className:"info__license"},a?f.default.createElement("div",{className:"info__license__url"},f.default.createElement(o,{target:"_blank",href:lr(a)},s)):f.default.createElement("span",null,s))}}var pve=fve;class dve extends f.default.Component{render(){return null}}class hve extends f.default.Component{render(){let{getComponent:e}=this.props;const r=e("CopyIcon");return f.default.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},f.default.createElement(Dp.CopyToClipboard,{text:this.props.textToCopy},f.default.createElement(r,null)))}}class mve extends f.default.Component{render(){return f.default.createElement("div",{className:"footer"})}}class gve extends f.default.Component{onFilterChange=e=>{const{target:{value:r}}=e;this.props.layoutActions.updateFilter(r)};render(){const{specSelectors:e,layoutSelectors:r,getComponent:n}=this.props,i=n("Col"),s=e.loadingStatus()==="loading",a=e.loadingStatus()==="failed",o=r.currentFilter(),u=["operation-filter-input"];return a&&u.push("failed"),s&&u.push("loading"),f.default.createElement("div",null,o===!1?null:f.default.createElement("div",{className:"filter-container"},f.default.createElement(i,{className:"filter wrapper",mobile:12},f.default.createElement("input",{className:u.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof o=="string"?o:"",disabled:s}))))}}const YS=Function.prototype;class KA extends f.PureComponent{static defaultProp={consumes:(0,z.fromJS)(["application/json"]),param:(0,z.fromJS)({}),onChange:YS,onChangeConsumes:YS};constructor(e,r){super(e,r),this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}updateValues=e=>{let{param:r,isExecute:n,consumesValue:i=""}=e,s=/xml/i.test(i),a=/json/i.test(i),o=s?r.get("value_xml"):r.get("value");if(o!==void 0){let u=!o&&a?"{}":o;this.setState({value:u}),this.onChange(u,{isXml:s,isEditBox:n})}else s?this.onChange(this.sample("xml"),{isXml:s,isEditBox:n}):this.onChange(this.sample(),{isEditBox:n})};sample=e=>{let{param:r,fn:n}=this.props,i=n.inferSchema(r.toJS());return n.getSampleSchema(i,e,{includeWriteOnly:!0})};onChange=(e,{isEditBox:r,isXml:n})=>{this.setState({value:e,isEditBox:r}),this._onChange(e,n)};_onChange=(e,r)=>{(this.props.onChange||YS)(e,r)};handleOnChange=e=>{const{consumesValue:r}=this.props,n=/xml/i.test(r),i=e.target.value;this.onChange(i,{isXml:n,isEditBox:this.state.isEditBox})};toggleIsEditBox=()=>this.setState((e=>({isEditBox:!e.isEditBox})));render(){let{onChangeConsumes:e,param:r,isExecute:n,specSelectors:i,pathMethod:s,getComponent:a}=this.props;const o=a("Button"),u=a("TextArea"),l=a("HighlightCode",!0),c=a("contentType");let p=(i?i.parameterWithMetaByIdentity(s,r):r).get("errors",(0,z.List)()),h=i.contentTypeValues(s).get("requestContentType"),d=this.props.consumes&&this.props.consumes.size?this.props.consumes:KA.defaultProp.consumes,{value:g,isEditBox:y}=this.state,v=null;Lp(g)&&(v="json");const E=`${JA(`${s[1]}${s[0]}_parameters`)}_select`;return f.default.createElement("div",{className:"body-param","data-param-name":r.get("name"),"data-param-in":r.get("in")},y&&n?f.default.createElement(u,{className:"body-param__text"+(p.count()?" invalid":""),value:g,onChange:this.handleOnChange}):g&&f.default.createElement(l,{className:"body-param__example",language:v},g),f.default.createElement("div",{className:"body-param-options"},n?f.default.createElement("div",{className:"body-param-edit"},f.default.createElement(o,{className:y?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},y?"Cancel":"Edit")):null,f.default.createElement("label",{htmlFor:E},f.default.createElement("span",null,"Parameter content type"),f.default.createElement(c,{value:h,contentTypes:d,onChange:e,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:E}))))}}class yve extends f.default.Component{render(){const{request:e,getComponent:r}=this.props,n=x8(e),i=r("SyntaxHighlighter",!0);return f.default.createElement("div",{className:"curl-command"},f.default.createElement("h4",null,"Curl"),f.default.createElement("div",{className:"copy-to-clipboard"},f.default.createElement(Dp.CopyToClipboard,{text:n},f.default.createElement("button",null))),f.default.createElement("div",null,f.default.createElement(i,{language:"bash",className:"curl microlight",renderPlainText:({children:s,PlainTextViewer:a})=>f.default.createElement(a,{className:"curl"},s)},n)))}}var vve=({propKey:t,propVal:e,propClass:r})=>f.default.createElement("span",{className:r},f.default.createElement("br",null),t,": ",Cr(e));class bve extends f.default.Component{static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1};render(){const{onTryoutClick:e,onCancelClick:r,onResetClick:n,enabled:i,hasUserEditedBody:s,isOAS3:a}=this.props,o=a&&s;return f.default.createElement("div",{className:o?"try-out btn-group":"try-out"},i?f.default.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):f.default.createElement("button",{className:"btn try-out__btn",onClick:e},"Try it out "),o&&f.default.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}class Eve extends f.default.PureComponent{static defaultProps={alsoShow:null,children:null,bypass:!1};render(){const{bypass:e,isSwagger2:r,isOAS3:n,alsoShow:i}=this.props;return e?f.default.createElement("div",null,this.props.children):r&&n?f.default.createElement("div",{className:"version-pragma"},i,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,f.default.createElement("code",null,"swagger")," and ",f.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),f.default.createElement("p",null,"Supported version fields are ",f.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",f.default.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?f.default.createElement("div",null,this.props.children):f.default.createElement("div",{className:"version-pragma"},i,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,"The provided definition does not specify a valid version field."),f.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",f.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",f.default.createElement("code",null,"openapi: 3.0.4"),")."))))}}var Sve=({version:t})=>f.default.createElement("small",null,f.default.createElement("pre",{className:"version"}," ",t," ")),_ve=({oasVersion:t})=>f.default.createElement("small",{className:"version-stamp"},f.default.createElement("pre",{className:"version"},"OAS ",t)),wve=({enabled:t,path:e,text:r})=>f.default.createElement("a",{className:"nostyle",onClick:t?n=>n.preventDefault():null,href:t?`#/${e}`:null},f.default.createElement("span",null,r)),xve=()=>f.default.createElement("div",null,f.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},f.default.createElement("defs",null,f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},f.default.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"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},f.default.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"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},f.default.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"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},f.default.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"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},f.default.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"})),f.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},f.default.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"})),f.default.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},f.default.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),f.default.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},f.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),f.default.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},f.default.createElement("g",{transform:"translate(2, -1)"},f.default.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"})))))),C4=(function(t){var e={};return be.d(e,t),e})({Remarkable:function(){return Fs}}),Ave=(function(t){var e={};return be.d(e,t),e})({linkify:function(){return Qfe}}),b_=(function(t){var e={};return be.d(e,t),e})({default:function(){return Spe}});b_.default.addHook&&b_.default.addHook("beforeSanitizeElements",(function(t){return t.href&&t.setAttribute("rel","noopener noreferrer"),t}));var Ove=function({source:e,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof e!="string")return null;const i=new C4.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(Ave.linkify);i.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:s}=n(),a=i.render(e),o=yu(a,{useUnsafeMarkdown:s});return e&&a&&o?f.default.createElement("div",{className:(0,Tt.default)(r,"markdown"),dangerouslySetInnerHTML:{__html:o}}):null};function yu(t,{useUnsafeMarkdown:e=!1}={}){const r=e,n=e?[]:["style","class"];return e&&!yu.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),yu.hasWarnedAboutDeprecation=!0),b_.default.sanitize(t,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}yu.hasWarnedAboutDeprecation=!1;class Cve extends f.default.Component{render(){const{errSelectors:e,specSelectors:r,getComponent:n}=this.props,i=n("SvgAssets"),s=n("InfoContainer",!0),a=n("VersionPragmaFilter"),o=n("operations",!0),u=n("Models",!0),l=n("Webhooks",!0),c=n("Row"),p=n("Col"),h=n("errors",!0),d=n("ServersContainer",!0),g=n("SchemesContainer",!0),y=n("AuthorizeBtnContainer",!0),v=n("FilterContainer",!0),E=r.isSwagger2(),b=r.isOAS3(),_=r.isOAS31(),w=!r.specStr(),S=r.loadingStatus();let A=null;if(S==="loading"&&(A=f.default.createElement("div",{className:"info"},f.default.createElement("div",{className:"loading-container"},f.default.createElement("div",{className:"loading"})))),S==="failed"&&(A=f.default.createElement("div",{className:"info"},f.default.createElement("div",{className:"loading-container"},f.default.createElement("h4",{className:"title"},"Failed to load API definition."),f.default.createElement(h,null)))),S==="failedConfig"){const $=e.lastError(),M=$?$.get("message"):"";A=f.default.createElement("div",{className:"info failed-config"},f.default.createElement("div",{className:"loading-container"},f.default.createElement("h4",{className:"title"},"Failed to load remote configuration."),f.default.createElement("p",null,M)))}if(!A&&w&&(A=f.default.createElement("h4",null,"No API definition provided.")),A)return f.default.createElement("div",{className:"swagger-ui"},f.default.createElement("div",{className:"loading-container"},A));const I=r.servers(),T=r.schemes(),k=I&&I.size,D=T&&T.size,R=!!r.securityDefinitions();return f.default.createElement("div",{className:"swagger-ui"},f.default.createElement(i,null),f.default.createElement(a,{isSwagger2:E,isOAS3:b,alsoShow:f.default.createElement(h,null)},f.default.createElement(h,null),f.default.createElement(c,{className:"information-container"},f.default.createElement(p,{mobile:12},f.default.createElement(s,null))),k||D||R?f.default.createElement("div",{className:"scheme-container"},f.default.createElement(p,{className:"schemes wrapper",mobile:12},k||D?f.default.createElement("div",{className:"schemes-server-container"},k?f.default.createElement(d,null):null,D?f.default.createElement(g,null):null):null,R?f.default.createElement(y,null):null)):null,f.default.createElement(v,null),f.default.createElement(c,null,f.default.createElement(p,{mobile:12,desktop:12},f.default.createElement(o,null))),_&&f.default.createElement(c,{className:"webhooks-container"},f.default.createElement(p,{mobile:12,desktop:12},f.default.createElement(l,null))),f.default.createElement(c,null,f.default.createElement(p,{mobile:12,desktop:12},f.default.createElement(u,null)))))}}var Rve=()=>({components:{App:tye,authorizationPopup:rye,authorizeBtn:nye,AuthorizeBtnContainer:iye,authorizeOperationBtn:sye,auths:aye,AuthItem:oye,authError:uye,oauth2:mye,apiKeyAuth:lye,basicAuth:cye,clear:gye,liveResponse:bye,InitializedInput:nve,info:ove,InfoContainer:uve,InfoUrl:sve,InfoBasePath:ive,Contact:cve,License:pve,JumpToPath:dve,CopyToClipboardBtn:hve,onlineValidatorBadge:x4,operations:Sye,operation:wye,OperationSummary:Oye,OperationSummaryMethod:Cye,OperationSummaryPath:Rye,responses:HA,response:Pye,ResponseExtension:kye,responseBody:Nye,parameters:Mye,parameterRow:Bye,execute:$ye,headers:Lye,errors:Uye,contentType:Jye,overview:tve,footer:mve,FilterContainer:gve,ParamBody:KA,curl:yve,Property:vve,TryItOutButton:bve,Markdown:Ove,BaseLayout:Cve,VersionPragmaFilter:Eve,VersionStamp:Sve,OperationExt:Iye,OperationExtRow:Tye,ParameterExt:Dye,ParameterIncludeEmpty:qye,OperationTag:_ye,OperationContainer:xye,OpenAPIVersion:_ve,DeepLink:wve,SvgAssets:xve,Example:fye,ExamplesSelect:pye,ExamplesSelectValueRetainer:dye}}),Ive=()=>({components:{...r_}}),R4=()=>[h8,f4,_8,m4,g4,u4,y8,b8,S8,k8,B8,Rve,Ive,c4,d8,y4,m8,v8,w8,O8,b4,E4,w4()];const Tve=(0,z.Map)();function Ml(t){return(e,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const i=t(...n);return typeof i=="function"?i(r):i}return e(...n)}}const Dl=Ml((0,Fp.default)(null)),Pve=Ml(((t,e)=>r=>r.getSystem().specSelectors.findSchema(e))),kve=Ml((()=>t=>{const e=t.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return z.Map.isMap(e)?e:Tve})),jve=Ml((()=>t=>t.getSystem().specSelectors.specJson().hasIn(["servers",0]))),Nve=Ml((0,at.createSelector)(ci,(t=>t.getIn(["components","securitySchemes"])||null))),Mve=(t,e)=>(r,...n)=>e.specSelectors.isOAS3()?e.oas3Selectors.validOperationMethods():t(...n),Dve=Dl,Fve=Dl,qve=Dl,Bve=Dl,$ve=Dl,Lve=(function(e){return(r,n)=>(...i)=>{if(n.getSystem().specSelectors.isOAS3()){let s=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return e(n,s,...i)}return r(...i)}})((0,at.createSelector)((t=>t),(({specSelectors:t})=>t.securityDefinitions()),((t,e)=>{let r=(0,z.List)();return e&&e.entrySeq().forEach((([n,i])=>{const s=i?.get("type");if(s==="oauth2"&&i.get("flows").entrySeq().forEach((([a,o])=>{let u=(0,z.fromJS)({flow:a,authorizationUrl:o.get("authorizationUrl"),tokenUrl:o.get("tokenUrl"),scopes:o.get("scopes"),type:i.get("type"),description:i.get("description")});r=r.push(new z.Map({[n]:u.filter((l=>l!==void 0))}))})),s!=="http"&&s!=="apiKey"||(r=r.push(new z.Map({[n]:i}))),s==="openIdConnect"&&i.get("openIdConnectData")){let a=i.get("openIdConnectData");(a.get("grant_types_supported")||["authorization_code","implicit"]).forEach((o=>{let u=a.get("scopes_supported")&&a.get("scopes_supported").reduce(((c,p)=>c.set(p,"")),new z.Map),l=(0,z.fromJS)({flow:o,authorizationUrl:a.get("authorization_endpoint"),tokenUrl:a.get("token_endpoint"),scopes:u,type:"oauth2",openIdConnectUrl:i.get("openIdConnectUrl")});r=r.push(new z.Map({[n]:l.filter((c=>c!==void 0))}))}))}})),r})));function Fl(t){return(e,r)=>n=>typeof r.specSelectors?.isOAS3=="function"?r.specSelectors.isOAS3()?f.default.createElement(t,(0,It.default)({},n,r,{Ori:e})):f.default.createElement(e,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}const Uve=(0,z.Map)(),Vve=()=>t=>(function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"})(t.getSystem().specSelectors.specJson()),zve=()=>t=>(function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)})(t.getSystem().specSelectors.specJson()),Wve=()=>t=>t.getSystem().specSelectors.isOAS30();function I4(t){return(e,...r)=>n=>{if(n.specSelectors.isOAS3()){const i=t(e,...r);return typeof i=="function"?i(n):i}return null}}const Jve=I4((()=>t=>t.specSelectors.specJson().get("servers",Uve))),Hve=(t,e)=>{const r=t.getIn(["resolvedSubtrees","components","schemas",e],null),n=t.getIn(["json","components","schemas",e],null);return r||n||null},Kve=I4(((t,{callbacks:e,specPath:r})=>n=>{const i=n.specSelectors.validOperationMethods();return z.Map.isMap(e)?e.reduce(((s,a,o)=>{if(!z.Map.isMap(a))return s;const u=a.reduce(((l,c,p)=>{if(!z.Map.isMap(c))return l;const h=c.entrySeq().filter((([d])=>i.includes(d))).map((([d,g])=>({operation:(0,z.Map)({operation:g}),method:d,path:p,callbackName:o,specPath:r.concat([o,p,d])})));return l.concat(h)}),(0,z.List)());return s.concat(u)}),(0,z.List)()).groupBy((s=>s.callbackName)).map((s=>s.toArray())).toObject():{}}));var Gve=({callbacks:t,specPath:e,specSelectors:r,getComponent:n})=>{const i=r.callbacksOperations({callbacks:t,specPath:e}),s=Object.keys(i),a=n("OperationContainer",!0);return s.length===0?f.default.createElement("span",null,"No callbacks"):f.default.createElement("div",null,s.map((o=>f.default.createElement("div",{key:`${o}`},f.default.createElement("h2",null,o),i[o].map((u=>f.default.createElement(a,{key:`${o}-${u.path}-${u.method}`,op:u.operation,tag:"callbacks",method:u.method,path:u.path,specPath:u.specPath,allowTryItOut:!1})))))))};const uf=(t,e,r,n)=>{const i=t.getIn(["content",e])??(0,z.OrderedMap)(),s=i.get("schema",(0,z.OrderedMap)()).toJS(),a=i.get("examples")!==void 0,o=i.get("example"),u=a?i.getIn(["examples",r,"value"]):o;return Cr(n.getSampleSchema(s,e,{includeWriteOnly:!0},u))};var Yve=({userHasEditedBody:t,requestBody:e,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:i,getComponent:s,getConfigs:a,specSelectors:o,fn:u,contentType:l,isExecute:c,specPath:p,onChange:h,onChangeIncludeEmpty:d,activeExamplesKey:g,updateActiveExamplesKey:y,setRetainRequestBodyValueFlag:v})=>{const E=ce=>{h(ce.target.files[0])},b=ce=>{let ie={key:ce,shouldDispatchInit:!1,defaultValue:!0};return n.get(ce,"no value")==="no value"&&(ie.shouldDispatchInit=!0),ie},_=s("Markdown",!0),w=s("modelExample"),S=s("RequestBodyEditor"),A=s("HighlightCode",!0),I=s("ExamplesSelectValueRetainer"),T=s("Example"),k=s("ParameterIncludeEmpty"),{showCommonExtensions:D}=a(),R=e?.get("description")??null,$=e?.get("content")??new z.OrderedMap;l=l||$.keySeq().first()||"";const M=$.get(l)??(0,z.OrderedMap)(),K=M.get("schema",(0,z.OrderedMap)()),ee=M.get("examples",null),G=ee?.map(((ce,ie)=>{const ue=ce?.get("value",null);return ue&&(ce=ce.set("value",uf(e,l,ie,u),ue)),ce}));if(i=z.List.isList(i)?i:(0,z.List)(),u.isFileUploadIntended(M?.get("schema"),l)){const ce=s("Input");return c?f.default.createElement(ce,{type:"file",onChange:E}):f.default.createElement("i",null,"Example values are not available for ",f.default.createElement("code",null,l)," media types.")}if(!M.size)return null;if(u.hasSchemaType(M.get("schema"),"object")&&(l==="application/x-www-form-urlencoded"||l.indexOf("multipart/")===0)&&K.get("properties",(0,z.OrderedMap)()).size>0){const ce=s("JsonSchemaForm"),ie=s("ParameterExt"),ue=K.get("properties",(0,z.OrderedMap)());return r=z.Map.isMap(r)?r:(0,z.OrderedMap)(),f.default.createElement("div",{className:"table-container"},R&&f.default.createElement(_,{source:R}),f.default.createElement("table",null,f.default.createElement("tbody",null,z.Map.isMap(ue)&&ue.entrySeq().map((([ye,he])=>{if(he.get("readOnly"))return;const re=he.get("oneOf")?.get(0)?.toJS(),W=he.get("anyOf")?.get(0)?.toJS();he=(0,z.fromJS)(u.mergeJsonSchema(he.toJS(),re??W??{}));let V=D?u8(he):null;const me=K.get("required",(0,z.List)()).includes(ye),ve=u.getSchemaObjectType(he),Me=u.getSchemaObjectTypeLabel(he),Be=u.getSchemaObjectType(he?.get("items")),Te=he.get("format"),Pe=he.get("description"),Le=r.getIn([ye,"value"]),ge=r.getIn([ye,"errors"])||i,Se=n.get(ye)||!1;let we=u.getSampleSchema(he,!1,{includeWriteOnly:!0});we===!1&&(we="false"),we===0&&(we="0"),typeof we!="string"&&ve==="object"&&(we=Cr(we)),typeof we=="string"&&ve==="array"&&(we=JSON.parse(we));const L=u.isFileUploadIntended(he),C=f.default.createElement(ce,{fn:u,dispatchInitialValue:!L,schema:he,description:ye,getComponent:s,value:Le===void 0?we:Le,required:me,errors:ge,onChange:j=>{h(j,[ye])}});return f.default.createElement("tr",{key:ye,className:"parameters","data-property-name":ye},f.default.createElement("td",{className:"parameters-col_name"},f.default.createElement("div",{className:me?"parameter__name required":"parameter__name"},ye,me?f.default.createElement("span",null," *"):null),f.default.createElement("div",{className:"parameter__type"},Me,Te&&f.default.createElement("span",{className:"prop-format"},"($",Te,")"),D&&V.size?V.entrySeq().map((([j,U])=>f.default.createElement(ie,{key:`${j}-${U}`,xKey:j,xVal:U}))):null),f.default.createElement("div",{className:"parameter__deprecated"},he.get("deprecated")?"deprecated":null)),f.default.createElement("td",{className:"parameters-col_description"},f.default.createElement(_,{source:Pe}),c?f.default.createElement("div",null,ve==="object"||Be==="object"?f.default.createElement(w,{getComponent:s,specPath:p.push("schema"),getConfigs:a,isExecute:c,specSelectors:o,schema:he,example:C}):C,me?null:f.default.createElement(k,{onChange:j=>d(ye,j),isIncluded:Se,isIncludedOptions:b(ye),isDisabled:Array.isArray(Le)?Le.length!==0:!dA(Le)})):null))})))))}const Z=uf(e,l,g,u);let X=null;Lp(Z)&&(X="json");const te=c?f.default.createElement(S,{value:r,errors:i,defaultValue:Z,onChange:h,getComponent:s}):f.default.createElement(A,{className:"body-param__example",language:X},Cr(r)||Z);return f.default.createElement("div",null,R&&f.default.createElement(_,{source:R}),G?f.default.createElement(I,{userHasEditedBody:t,examples:G,currentKey:g,currentUserInputValue:r,onSelect:ce=>{y(ce)},updateValue:h,defaultToFirstExample:!0,getComponent:s,setRetainRequestBodyValueFlag:v}):null,f.default.createElement(w,{getComponent:s,getConfigs:a,specSelectors:o,expandDepth:1,isExecute:c,schema:M.get("schema"),specPath:p.push("content",l,"schema"),example:te,includeWriteOnly:!0}),G?f.default.createElement(T,{example:G.get(g),getComponent:s,getConfigs:a}):null)};class Xve extends f.Component{render(){const{link:e,name:r,getComponent:n}=this.props,i=n("Markdown",!0);let s=e.get("operationId")||e.get("operationRef"),a=e.get("parameters")&&e.get("parameters").toJS(),o=e.get("description");return f.default.createElement("div",{className:"operation-link"},f.default.createElement("div",{className:"description"},f.default.createElement("b",null,f.default.createElement("code",null,r)),o?f.default.createElement(i,{source:o}):null),f.default.createElement("pre",null,"Operation `",s,"`",f.default.createElement("br",null),f.default.createElement("br",null),"Parameters ",(function(l,c){return typeof c!="string"?"":c.split(`
283
+ `).map(((p,h)=>h>0?Array(l+1).join(" ")+p:p)).join(`
284
+ `)})(0,JSON.stringify(a,null,2))||"{}",f.default.createElement("br",null)))}}var Zve=Xve,Qve=({servers:t,currentServer:e,setSelectedServer:r,setServerVariableValue:n,getServerVariable:i,getEffectiveServerValue:s})=>{const a=(t.find((c=>c.get("url")===e))||(0,z.OrderedMap)()).get("variables")||(0,z.OrderedMap)(),o=a.size!==0;(0,f.useEffect)((()=>{e||r(t.first()?.get("url"))}),[]),(0,f.useEffect)((()=>{const c=t.find((p=>p.get("url")===e));if(!c)return void r(t.first().get("url"));(c.get("variables")||(0,z.OrderedMap)()).map(((p,h)=>{n({server:e,key:h,val:p.get("default")||""})}))}),[e,t]);const u=(0,f.useCallback)((c=>{r(c.target.value)}),[r]),l=(0,f.useCallback)((c=>{const p=c.target.getAttribute("data-variable"),h=c.target.value;n({server:e,key:p,val:h})}),[n,e]);return f.default.createElement("div",{className:"servers"},f.default.createElement("label",{htmlFor:"servers"},f.default.createElement("select",{onChange:u,value:e,id:"servers"},t.valueSeq().map((c=>f.default.createElement("option",{value:c.get("url"),key:c.get("url")},c.get("url"),c.get("description")&&` - ${c.get("description")}`))).toArray())),o&&f.default.createElement("div",null,f.default.createElement("div",{className:"computed-url"},"Computed URL:",f.default.createElement("code",null,s(e))),f.default.createElement("h4",null,"Server variables"),f.default.createElement("table",null,f.default.createElement("tbody",null,a.entrySeq().map((([c,p])=>f.default.createElement("tr",{key:c},f.default.createElement("td",null,c),f.default.createElement("td",null,p.get("enum")?f.default.createElement("select",{"data-variable":c,onChange:l},p.get("enum").map((h=>f.default.createElement("option",{selected:h===i(e,c),key:h,value:h},h)))):f.default.createElement("input",{type:"text",value:i(e,c)||"",onChange:l,"data-variable":c})))))))))};class e0e extends f.default.Component{render(){const{specSelectors:e,oas3Selectors:r,oas3Actions:n,getComponent:i}=this.props,s=e.servers(),a=i("Servers");return s&&s.size?f.default.createElement("div",null,f.default.createElement("span",{className:"servers-title"},"Servers"),f.default.createElement(a,{servers:s,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const t0e=Function.prototype;class r0e extends f.PureComponent{static defaultProps={onChange:t0e,userHasEditedBody:!1};constructor(e,r){super(e,r),this.state={value:Cr(e.value)||e.defaultValue},e.onChange(e.value)}applyDefaultValue=e=>{const{onChange:r,defaultValue:n}=e||this.props;return this.setState({value:n}),r(n)};onChange=e=>{this.props.onChange(Cr(e))};onDomChange=e=>{const r=e.target.value;this.setState({value:r},(()=>this.onChange(r)))};UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:Cr(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:r}=this.props,{value:n}=this.state,i=r.size>0;const s=e("TextArea");return f.default.createElement("div",{className:"body-param"},f.default.createElement(s,{className:(0,Tt.default)("body-param__text",{invalid:i}),title:r.size?r.join(", "):"",value:n,onChange:this.onDomChange}))}}class n0e extends f.default.Component{constructor(e,r){super(e,r);let{name:n,schema:i}=this.props,s=this.getValue();this.state={name:n,schema:i,value:s}}getValue(){let{name:e,authorized:r}=this.props;return r&&r.getIn([e,"value"])}onChange=e=>{let{onChange:r}=this.props,{value:n,name:i}=e.target,s=Object.assign({},this.state.value);i?s[i]=n:s=n,this.setState({value:s},(()=>r(this.state)))};render(){let{schema:e,getComponent:r,errSelectors:n,name:i,authSelectors:s}=this.props;const a=r("Input"),o=r("Row"),u=r("Col"),l=r("authError"),c=r("Markdown",!0),p=r("JumpToPath",!0),h=(e.get("scheme")||"").toLowerCase(),d=s.selectAuthPath(i);let g=this.getValue(),y=n.allErrors().filter((v=>v.get("authId")===i));if(h==="basic"){let v=g?g.get("username"):null;return f.default.createElement("div",null,f.default.createElement("h4",null,f.default.createElement("code",null,i),"  (http, Basic)",f.default.createElement(p,{path:d})),v&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(o,null,f.default.createElement(c,{source:e.get("description")})),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),v?f.default.createElement("code",null," ",v," "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),v?f.default.createElement("code",null," ****** "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),y.valueSeq().map(((E,b)=>f.default.createElement(l,{error:E,key:b}))))}return h==="bearer"?f.default.createElement("div",null,f.default.createElement("h4",null,f.default.createElement("code",null,i),"  (http, Bearer)",f.default.createElement(p,{path:d})),g&&f.default.createElement("h6",null,"Authorized"),f.default.createElement(o,null,f.default.createElement(c,{source:e.get("description")})),f.default.createElement(o,null,f.default.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),g?f.default.createElement("code",null," ****** "):f.default.createElement(u,null,f.default.createElement(a,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),y.valueSeq().map(((v,E)=>f.default.createElement(l,{error:v,key:E})))):f.default.createElement("div",null,f.default.createElement("em",null,f.default.createElement("b",null,i)," HTTP authentication: unsupported scheme ",`'${h}'`))}}class i0e extends f.default.Component{setSelectedServer=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${r}:${n}`)};setServerVariableValue=e=>{const{path:r,method:n}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${r}:${n}`})};getSelectedServer=()=>{const{path:e,method:r}=this.props;return this.props.getSelectedServer(`${e}:${r}`)};getServerVariable=(e,r)=>{const{path:n,method:i}=this.props;return this.props.getServerVariable({namespace:`${n}:${i}`,server:e},r)};getEffectiveServerValue=e=>{const{path:r,method:n}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${r}:${n}`})};render(){const{operationServers:e,pathServers:r,getComponent:n}=this.props;if(!e&&!r)return null;const i=n("Servers"),s=e||r,a=e?"operation":"path";return f.default.createElement("div",{className:"opblock-section operation-servers"},f.default.createElement("div",{className:"opblock-section-header"},f.default.createElement("div",{className:"tab-header"},f.default.createElement("h4",{className:"opblock-title"},"Servers"))),f.default.createElement("div",{className:"opblock-description-wrapper"},f.default.createElement("h4",{className:"message"},"These ",a,"-level options override the global server options."),f.default.createElement(i,{servers:s,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var s0e={Callbacks:Gve,HttpAuth:n0e,RequestBody:Yve,Servers:Qve,ServersContainer:e0e,RequestBodyEditor:r0e,OperationServers:i0e,operationLink:Zve};const E_=new C4.Remarkable("commonmark");E_.block.ruler.enable(["table"]),E_.set({linkTarget:"_blank"});var a0e=Fl((({source:t,className:e="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof t!="string")return null;if(t){const{useUnsafeMarkdown:n}=r(),i=yu(E_.render(t),{useUnsafeMarkdown:n});let s;return typeof i=="string"&&(s=i.trim()),f.default.createElement("div",{dangerouslySetInnerHTML:{__html:s},className:(0,Tt.default)(e,"renderedMarkdown")})}return null})),o0e=Fl((({Ori:t,...e})=>{const{schema:r,getComponent:n,errSelectors:i,authorized:s,onAuthChange:a,name:o,authSelectors:u}=e,l=n("HttpAuth");return r.get("type")==="http"?f.default.createElement(l,{key:o,schema:r,name:o,errSelectors:i,authorized:s,getComponent:n,onChange:a,authSelectors:u}):f.default.createElement(t,e)})),u0e=Fl(x4);class l0e extends f.Component{render(){let{getConfigs:e,schema:r,Ori:n}=this.props,i=["model-box"],s=null;return r.get("deprecated")===!0&&(i.push("deprecated"),s=f.default.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),f.default.createElement("div",{className:i.join(" ")},s,f.default.createElement(n,(0,It.default)({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||0})))}}var c0e=Fl(l0e),f0e=Fl((({Ori:t,...e})=>{const{schema:r,getComponent:n,errors:i,onChange:s,fn:a}=e,o=a.isFileUploadIntended(r),u=n("Input");return o?f.default.createElement(u,{type:"file",className:i.length?"invalid":"",title:i.length?i:"",onChange:l=>{s(l.target.files[0])},disabled:t.isDisabled}):f.default.createElement(t,e)})),p0e={Markdown:a0e,AuthItem:o0e,OpenAPIVersion:(function(e){return(r,n)=>i=>typeof n.specSelectors?.isOAS30=="function"?n.specSelectors.isOAS30()?f.default.createElement(e,(0,It.default)({},i,n,{Ori:r})):f.default.createElement(r,i):(console.warn("OAS30 wrapper: couldn't get spec"),null)})((t=>{const{Ori:e}=t;return f.default.createElement(e,{oasVersion:"3.0"})})),JsonSchema_string:f0e,model:c0e,onlineValidatorBadge:u0e};const GA="oas3_set_servers",YA="oas3_set_request_body_value",XA="oas3_set_request_body_retain_flag",ZA="oas3_set_request_body_inclusion",QA="oas3_set_active_examples_member",e2="oas3_set_request_content_type",t2="oas3_set_response_content_type",r2="oas3_set_server_variable_value",n2="oas3_set_request_body_validate_error",Up="oas3_clear_request_body_validate_error",i2="oas3_clear_request_body_value";function d0e(t,e){return{type:GA,payload:{selectedServerUrl:t,namespace:e}}}function h0e({value:t,pathMethod:e}){return{type:YA,payload:{value:t,pathMethod:e}}}const m0e=({value:t,pathMethod:e})=>({type:XA,payload:{value:t,pathMethod:e}});function g0e({value:t,pathMethod:e,name:r}){return{type:ZA,payload:{value:t,pathMethod:e,name:r}}}function y0e({name:t,pathMethod:e,contextType:r,contextName:n}){return{type:QA,payload:{name:t,pathMethod:e,contextType:r,contextName:n}}}function v0e({value:t,pathMethod:e}){return{type:e2,payload:{value:t,pathMethod:e}}}function b0e({value:t,path:e,method:r}){return{type:t2,payload:{value:t,path:e,method:r}}}function E0e({server:t,namespace:e,key:r,val:n}){return{type:r2,payload:{server:t,namespace:e,key:r,val:n}}}const S0e=({path:t,method:e,validationErrors:r})=>({type:n2,payload:{path:t,method:e,validationErrors:r}}),_0e=({path:t,method:e})=>({type:Up,payload:{path:t,method:e}}),w0e=({pathMethod:t})=>({type:Up,payload:{path:t[0],method:t[1]}}),x0e=({pathMethod:t})=>({type:i2,payload:{pathMethod:t}});var A0e=(function(t){var e={};return be.d(e,t),e})({default:function(){return xpe}});const Un=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const i=t(e,...r);return typeof i=="function"?i(n):i}return null},O0e=Un(((t,e)=>{const r=e?[e,"selectedServer"]:["selectedServer"];return t.getIn(r)||""})),C0e=Un(((t,e,r)=>t.getIn(["requestData",e,r,"bodyValue"])||null)),R0e=Un(((t,e,r)=>t.getIn(["requestData",e,r,"retainBodyValue"])||!1)),I0e=(t,e,r)=>n=>{const{oas3Selectors:i,specSelectors:s,fn:a}=n.getSystem();if(s.isOAS3()){const o=i.requestContentType(e,r);if(o)return uf(s.specResolvedSubtree(["paths",e,r,"requestBody"]),o,i.activeExamplesMember(e,r,"requestBody","requestBody"),a)}return null},T0e=Un(((t,e,r)=>n=>{const{oas3Selectors:i,specSelectors:s,fn:a}=n;let o=!1;const u=i.requestContentType(e,r);let l=i.requestBodyValue(e,r);const c=s.specResolvedSubtree(["paths",e,r,"requestBody"]);if(!c)return!1;if(z.Map.isMap(l)&&(l=Cr(l.mapEntries((p=>z.Map.isMap(p[1])?[p[0],p[1].get("value")]:p)).toJS())),z.List.isList(l)&&(l=Cr(l)),u){const p=uf(c,u,i.activeExamplesMember(e,r,"requestBody","requestBody"),a);o=!!l&&l!==p}return o})),P0e=Un(((t,e,r)=>t.getIn(["requestData",e,r,"bodyInclusion"])||(0,z.Map)())),k0e=Un(((t,e,r)=>t.getIn(["requestData",e,r,"errors"])||null)),j0e=Un(((t,e,r,n,i)=>t.getIn(["examples",e,r,n,i,"activeExample"])||null)),N0e=Un(((t,e,r)=>t.getIn(["requestData",e,r,"requestContentType"])||null)),M0e=Un(((t,e,r)=>t.getIn(["requestData",e,r,"responseContentType"])||null)),D0e=Un(((t,e,r)=>{let n;if(typeof e!="string"){const{server:i,namespace:s}=e;n=s?[s,"serverVariableValues",i,r]:["serverVariableValues",i,r]}else n=["serverVariableValues",e,r];return t.getIn(n)||null})),F0e=Un(((t,e)=>{let r;if(typeof e!="string"){const{server:n,namespace:i}=e;r=i?[i,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",e];return t.getIn(r)||(0,z.OrderedMap)()})),q0e=Un(((t,e)=>{var r,n;if(typeof e!="string"){const{server:s,namespace:a}=e;n=s,r=a?t.getIn([a,"serverVariableValues",n]):t.getIn(["serverVariableValues",n])}else n=e,r=t.getIn(["serverVariableValues",n]);r=r||(0,z.OrderedMap)();let i=n;return r.map(((s,a)=>{i=i.replace(new RegExp(`{${(0,A0e.default)(a)}}`,"g"),s)})),i})),B0e=(function(e){return(...r)=>n=>{const i=n.getSystem().specSelectors.specJson();let s=[...r][1]||[];return!i.getIn(["paths",...s,"requestBody","required"])||e(...r)}})(((t,e)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(t,e))),$0e=(t,{oas3RequiredRequestBodyContentType:e,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let i=[];if(!z.Map.isMap(n))return i;let s=[];return Object.keys(e.requestContentType).forEach((a=>{a===r&&e.requestContentType[a].forEach((o=>{s.indexOf(o)<0&&s.push(o)}))})),s.forEach((a=>{n.getIn([a,"value"])||i.push(a)})),i},L0e=(0,Fp.default)(["get","put","post","delete","options","head","patch","trace"]);var U0e={[GA]:(t,{payload:{selectedServerUrl:e,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return t.setIn(n,e)},[YA]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,i]=r;if(!z.Map.isMap(e))return t.setIn(["requestData",n,i,"bodyValue"],e);let s=t.getIn(["requestData",n,i,"bodyValue"])||(0,z.Map)();z.Map.isMap(s)||(s=(0,z.Map)());let a=s;const[...o]=e.keys();return o.forEach((u=>{let l=e.getIn([u]);a.has(u)&&z.Map.isMap(l)||(a=a.setIn([u,"value"],l))})),t.setIn(["requestData",n,i,"bodyValue"],a)},[XA]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,i]=r;return t.setIn(["requestData",n,i,"retainBodyValue"],e)},[ZA]:(t,{payload:{value:e,pathMethod:r,name:n}})=>{let[i,s]=r;return t.setIn(["requestData",i,s,"bodyInclusion",n],e)},[QA]:(t,{payload:{name:e,pathMethod:r,contextType:n,contextName:i}})=>{let[s,a]=r;return t.setIn(["examples",s,a,n,i,"activeExample"],e)},[e2]:(t,{payload:{value:e,pathMethod:r}})=>{let[n,i]=r;return t.setIn(["requestData",n,i,"requestContentType"],e)},[t2]:(t,{payload:{value:e,path:r,method:n}})=>t.setIn(["requestData",r,n,"responseContentType"],e),[r2]:(t,{payload:{server:e,namespace:r,key:n,val:i}})=>{const s=r?[r,"serverVariableValues",e,n]:["serverVariableValues",e,n];return t.setIn(s,i)},[n2]:(t,{payload:{path:e,method:r,validationErrors:n}})=>{let i=[];if(i.push("Required field is not provided"),n.missingBodyValue)return t.setIn(["requestData",e,r,"errors"],(0,z.fromJS)(i));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:s}=n;return t.updateIn(["requestData",e,r,"bodyValue"],(0,z.fromJS)({}),(a=>s.reduce(((o,u)=>o.setIn([u,"errors"],(0,z.fromJS)(i))),a)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),t},[Up]:(t,{payload:{path:e,method:r}})=>{const n=t.getIn(["requestData",e,r,"bodyValue"]);if(!z.Map.isMap(n))return t.setIn(["requestData",e,r,"errors"],(0,z.fromJS)([]));const[...i]=n.keys();return i?t.updateIn(["requestData",e,r,"bodyValue"],(0,z.fromJS)({}),(s=>i.reduce(((a,o)=>a.setIn([o,"errors"],(0,z.fromJS)([]))),s))):t},[i2]:(t,{payload:{pathMethod:e}})=>{let[r,n]=e;const i=t.getIn(["requestData",r,n,"bodyValue"]);return i?z.Map.isMap(i)?t.setIn(["requestData",r,n,"bodyValue"],(0,z.Map)()):t.setIn(["requestData",r,n,"bodyValue"],""):t}};function S_({getSystem:t}){const e=(r=>(n,i=null)=>{const{getConfigs:s,fn:a}=r(),{fileUploadMediaTypes:o}=s();if(typeof i=="string"&&o.some((c=>i.startsWith(c))))return!0;const u=z.Map.isMap(n);if(!u&&!(0,Zi.default)(n))return!1;const l=u?n.get("format"):n.format;return a.hasSchemaType(n,"string")&&["binary","byte"].includes(l)})(t);return{components:s0e,wrapComponents:p0e,statePlugins:{spec:{wrapSelectors:n_,selectors:s_},auth:{wrapSelectors:i_},oas3:{actions:{...a_},reducers:U0e,selectors:{...o_}}},fn:{isFileUploadIntended:e,isFileUploadIntendedOAS30:e}}}var V0e=({specSelectors:t,getComponent:e})=>{const r=t.selectWebhooksOperations(),n=Object.keys(r),i=e("OperationContainer",!0);return n.length===0?null:f.default.createElement("div",{className:"webhooks"},f.default.createElement("h2",null,"Webhooks"),n.map((s=>f.default.createElement("div",{key:`${s}-webhook`},r[s].map((a=>f.default.createElement(i,{key:`${s}-${a.method}-webhook`,op:a.operation,tag:"webhooks",method:a.method,path:s,specPath:(0,z.List)(a.specPath),allowTryItOut:!1})))))))},z0e=({getComponent:t,specSelectors:e})=>{const r=e.selectLicenseNameField(),n=e.selectLicenseUrl(),i=t("Link");return f.default.createElement("div",{className:"info__license"},n?f.default.createElement("div",{className:"info__license__url"},f.default.createElement(i,{target:"_blank",href:lr(n)},r)):f.default.createElement("span",null,r))},W0e=({getComponent:t,specSelectors:e})=>{const r=e.selectContactNameField(),n=e.selectContactUrl(),i=e.selectContactEmailField(),s=t("Link");return f.default.createElement("div",{className:"info__contact"},n&&f.default.createElement("div",null,f.default.createElement(s,{href:lr(n),target:"_blank"},r," - Website")),i&&f.default.createElement(s,{href:lr(`mailto:${i}`)},n?`Send email to ${r}`:`Contact ${r}`))},J0e=({getComponent:t,specSelectors:e})=>{const r=e.version(),n=e.url(),i=e.basePath(),s=e.host(),a=e.selectInfoSummaryField(),o=e.selectInfoDescriptionField(),u=e.selectInfoTitleField(),l=e.selectInfoTermsOfServiceUrl(),c=e.selectExternalDocsUrl(),p=e.selectExternalDocsDescriptionField(),h=e.contact(),d=e.license(),g=t("Markdown",!0),y=t("Link"),v=t("VersionStamp"),E=t("OpenAPIVersion"),b=t("InfoUrl"),_=t("InfoBasePath"),w=t("License",!0),S=t("Contact",!0),A=t("JsonSchemaDialect",!0);return f.default.createElement("div",{className:"info"},f.default.createElement("hgroup",{className:"main"},f.default.createElement("h1",{className:"title"},u,f.default.createElement("span",null,r&&f.default.createElement(v,{version:r}),f.default.createElement(E,{oasVersion:"3.1"}))),(s||i)&&f.default.createElement(_,{host:s,basePath:i}),n&&f.default.createElement(b,{getComponent:t,url:n})),a&&f.default.createElement("p",{className:"info__summary"},a),f.default.createElement("div",{className:"info__description description"},f.default.createElement(g,{source:o})),l&&f.default.createElement("div",{className:"info__tos"},f.default.createElement(y,{target:"_blank",href:lr(l)},"Terms of service")),h.size>0&&f.default.createElement(S,null),d.size>0&&f.default.createElement(w,null),c&&f.default.createElement(y,{className:"info__extdocs",target:"_blank",href:lr(c)},p||c),f.default.createElement(A,null))},H0e=({getComponent:t,specSelectors:e})=>{const r=e.selectJsonSchemaDialectField(),n=e.selectJsonSchemaDialectDefault(),i=t("Link");return f.default.createElement(f.default.Fragment,null,r&&r===n&&f.default.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",f.default.createElement(i,{target:"_blank",href:lr(r)},r)),r&&r!==n&&f.default.createElement("div",{className:"error-wrapper"},f.default.createElement("div",{className:"no-margin"},f.default.createElement("div",{className:"errors"},f.default.createElement("div",{className:"errors-wrapper"},f.default.createElement("h4",{className:"center"},"Warning"),f.default.createElement("p",{className:"message"},f.default.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",f.default.createElement(i,{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."))))))},K0e=({bypass:t,isSwagger2:e,isOAS3:r,isOAS31:n,alsoShow:i,children:s})=>t?f.default.createElement("div",null,s):e&&(r||n)?f.default.createElement("div",{className:"version-pragma"},i,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,f.default.createElement("code",null,"swagger")," and ",f.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),f.default.createElement("p",null,"Supported version fields are ",f.default.createElement("code",null,'swagger: "2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",f.default.createElement("code",null,"openapi: 3.1.0"),").")))):e||r||n?f.default.createElement("div",null,s):f.default.createElement("div",{className:"version-pragma"},i,f.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},f.default.createElement("div",null,f.default.createElement("h3",null,"Unable to render this definition"),f.default.createElement("p",null,"The provided definition does not specify a valid version field."),f.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",f.default.createElement("code",null,'swagger: "2.0"')," and those that match ",f.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",f.default.createElement("code",null,"openapi: 3.1.0"),")."))));const G0e=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,Y0e=(0,f.forwardRef)((({schema:t,getComponent:e,onToggle:r=()=>{},specPath:n},i)=>{const s=e("JSONSchema202012"),a=G0e(t.get("$$ref")),o=(0,f.useCallback)(((u,l)=>{r(a,l)}),[a,r]);return f.default.createElement(s,{name:a,schema:t.toJS(),ref:i,onExpand:o,identifier:n.toJS().join("_")})}));var X0e=Y0e,Z0e=({specActions:t,specSelectors:e,layoutSelectors:r,layoutActions:n,getComponent:i,getConfigs:s,fn:a})=>{const o=e.selectSchemas(),u=Object.keys(o).length>0,l=["components","schemas"],{docExpansion:c,defaultModelsExpandDepth:p}=s(),h=p>0&&c!=="none",d=r.isShown(l,h),g=i("Collapse"),y=i("JSONSchema202012"),v=i("ArrowUpIcon"),E=i("ArrowDownIcon"),{getTitle:b}=a.jsonSchema202012.useFn();(0,f.useEffect)((()=>{const I=Object.entries(o).some((([D])=>r.isShown([...l,D],!1))),T=d&&(p>1||I),k=e.specResolvedSubtree(l)!=null;T&&!k&&t.requestResolvedSubtree(l)}),[d,p]);const _=(0,f.useCallback)((()=>{n.show(l,!d)}),[d]),w=(0,f.useCallback)((I=>{I!==null&&n.readyToScroll(l,I)}),[]),S=I=>T=>{T!==null&&n.readyToScroll([...l,I],T)},A=I=>(T,k)=>{const D=[...l,I];k?(e.specResolvedSubtree(D)!=null||t.requestResolvedSubtree([...l,I]),n.show(D,!0)):n.show(D,!1)};return!u||p<0?null:f.default.createElement("section",{className:(0,Tt.default)("models",{"is-open":d}),ref:w},f.default.createElement("h4",null,f.default.createElement("button",{"aria-expanded":d,className:"models-control",onClick:_},f.default.createElement("span",null,"Schemas"),d?f.default.createElement(v,null):f.default.createElement(E,null))),f.default.createElement(g,{isOpened:d},Object.entries(o).map((([I,T])=>{const k=b(T,{lookup:"basic"})||I;return f.default.createElement(y,{key:I,ref:S(I),schema:T,name:k,onExpand:A(I)})}))))},Q0e=({schema:t,getComponent:e,name:r,authSelectors:n})=>{const i=e("JumpToPath",!0),s=n.selectAuthPath(r);return f.default.createElement("div",null,f.default.createElement("h4",null,r," (mutualTLS) ",f.default.createElement(i,{path:s})),f.default.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),f.default.createElement("p",null,t.get("description")))};class ebe extends f.default.Component{constructor(e,r){super(e,r),this.state={}}onAuthChange=e=>{let{name:r}=e;this.setState({[r]:e})};submitAuth=e=>{e.preventDefault();let{authActions:r}=this.props;r.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:r,definitions:n}=this.props,i=n.map(((s,a)=>a)).toArray();this.setState(i.reduce(((s,a)=>(s[a]="",s)),{})),r.logoutWithPersistOption(i)};close=e=>{e.preventDefault();let{authActions:r}=this.props;r.showDefinitions(!1)};render(){let{definitions:e,getComponent:r,authSelectors:n,errSelectors:i}=this.props;const s=r("AuthItem"),a=r("oauth2",!0),o=r("Button"),u=n.authorized(),l=e.filter(((d,g)=>!!u.get(g))),c=e.filter((d=>d.get("type")!=="oauth2"&&d.get("type")!=="mutualTLS")),p=e.filter((d=>d.get("type")==="oauth2")),h=e.filter((d=>d.get("type")==="mutualTLS"));return f.default.createElement("div",{className:"auth-container"},c.size>0&&f.default.createElement("form",{onSubmit:this.submitAuth},c.map(((d,g)=>f.default.createElement(s,{key:g,schema:d,name:g,getComponent:r,onAuthChange:this.onAuthChange,authorized:u,errSelectors:i,authSelectors:n}))).toArray(),f.default.createElement("div",{className:"auth-btn-wrapper"},c.size===l.size?f.default.createElement(o,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):f.default.createElement(o,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),f.default.createElement(o,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),p.size>0?f.default.createElement("div",null,f.default.createElement("div",{className:"scope-def"},f.default.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."),f.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),e.filter((d=>d.get("type")==="oauth2")).map(((d,g)=>f.default.createElement("div",{key:g},f.default.createElement(a,{authorized:u,schema:d,name:g})))).toArray()):null,h.size>0&&f.default.createElement("div",null,h.map(((d,g)=>f.default.createElement(s,{key:g,schema:d,name:g,getComponent:r,onAuthChange:this.onAuthChange,authorized:u,errSelectors:i,authSelectors:n}))).toArray()))}}var tbe=ebe;const T4=t=>{const e=t.get("openapi");return typeof e=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(e)},J3=t=>(e,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const i=t(e,...r);return typeof i=="function"?i(n):i}return null},P4=t=>(e,r)=>(n,...i)=>{if(r.getSystem().specSelectors.isOAS31()){const s=t(n,...i);return typeof s=="function"?s(e,r):s}return e(...i)},H3=t=>(e,...r)=>n=>{const i=t(e,n,...r);return typeof i=="function"?i(n):i},Di=t=>(e,r)=>n=>r.specSelectors.isOAS31()?f.default.createElement(t,(0,It.default)({},n,{originalComponent:e,getSystem:r.getSystem})):f.default.createElement(e,n),XS=(t,e)=>{const{fn:r,specSelectors:n}=e;return Object.fromEntries(Object.entries(t).map((([i,s])=>{const a=r[i];return[i,(...o)=>n.isOAS31()?s(...o):typeof a=="function"?a(...o):void 0]})))};var rbe=Di((({getSystem:t})=>{const e=t().getComponent("OAS31License",!0);return f.default.createElement(e,null)})),nbe=Di((({getSystem:t})=>{const e=t().getComponent("OAS31Contact",!0);return f.default.createElement(e,null)})),ibe=Di((({getSystem:t})=>{const e=t().getComponent("OAS31Info",!0);return f.default.createElement(e,null)}));const sbe=(t,{includeReadOnly:e,includeWriteOnly:r})=>{if(!t?.properties)return{};const n=Object.entries(t.properties).filter((([,i])=>(i?.readOnly!==!0||e)&&(i?.writeOnly!==!0||r)));return Object.fromEntries(n)},k4=t=>{if(typeof t!="function")return null;const e=t();return()=>[...e,"discriminator","xml","externalDocs","example","$$ref"]},__=Di((({getSystem:t,...e})=>{const r=t(),{getComponent:n,fn:i,getConfigs:s}=r,a=s(),o=n("OAS31Model"),u=n("withJSONSchema202012SystemContext");return __.ModelWithJSONSchemaContext??=u(o,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:e.includeReadOnly,includeWriteOnly:e.includeWriteOnly},fn:{getProperties:i.jsonSchema202012.getProperties,isExpandable:i.jsonSchema202012.isExpandable,getSchemaKeywords:k4(i.jsonSchema202012.getSchemaKeywords)}}),f.default.createElement(__.ModelWithJSONSchemaContext,e)}));var abe=__;const La=Di((({getSystem:t})=>{const{getComponent:e,fn:r,getConfigs:n}=t(),i=n();if(La.ModelsWithJSONSchemaContext)return f.default.createElement(La.ModelsWithJSONSchemaContext,null);const s=e("OAS31Models",!0),a=e("withJSONSchema202012SystemContext");return La.ModelsWithJSONSchemaContext??=a(s,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:i.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:k4(r.jsonSchema202012.getSchemaKeywords)}}),f.default.createElement(La.ModelsWithJSONSchemaContext,null)}));La.ModelsWithJSONSchemaContext=null;var obe=La,ube=(t,e)=>r=>{const n=e.specSelectors.isOAS31(),i=e.getComponent("OAS31VersionPragmaFilter");return f.default.createElement(i,(0,It.default)({isOAS31:n},r))};const lbe=Di((({originalComponent:t,...e})=>{const{getComponent:r,schema:n,name:i}=e,s=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?f.default.createElement(s,{schema:n,name:i}):f.default.createElement(t,e)}));var cbe=lbe,fbe=Di((({getSystem:t,...e})=>{const r=t().getComponent("OAS31Auths",!0);return f.default.createElement(r,e)}));const s2=(0,z.Map)(),pbe=(0,at.createSelector)(((t,e)=>e.specSelectors.specJson()),T4),dbe=()=>t=>{const e=t.specSelectors.specJson().get("webhooks");return z.Map.isMap(e)?e:s2},hbe=(0,at.createSelector)([(t,e)=>e.specSelectors.webhooks(),(t,e)=>e.specSelectors.validOperationMethods(),(t,e)=>e.specSelectors.specResolvedSubtree(["webhooks"])],((t,e)=>t.reduce(((r,n,i)=>{if(!z.Map.isMap(n))return r;const s=n.entrySeq().filter((([a])=>e.includes(a))).map((([a,o])=>({operation:(0,z.Map)({operation:o}),method:a,path:i,specPath:["webhooks",i,a]})));return r.concat(s)}),(0,z.List)()).groupBy((r=>r.path)).map((r=>r.toArray())).toObject())),mbe=()=>t=>{const e=t.specSelectors.info().get("license");return z.Map.isMap(e)?e:s2},gbe=()=>t=>t.specSelectors.license().get("name","License"),ybe=()=>t=>t.specSelectors.license().get("url"),vbe=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectLicenseUrlField()],((t,e,r)=>{if(r)return ii(r,t,{selectedServer:e})})),bbe=()=>t=>t.specSelectors.license().get("identifier"),Ebe=()=>t=>{const e=t.specSelectors.info().get("contact");return z.Map.isMap(e)?e:s2},Sbe=()=>t=>t.specSelectors.contact().get("name","the developer"),_be=()=>t=>t.specSelectors.contact().get("email"),wbe=()=>t=>t.specSelectors.contact().get("url"),xbe=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectContactUrlField()],((t,e,r)=>{if(r)return ii(r,t,{selectedServer:e})})),Abe=()=>t=>t.specSelectors.info().get("title"),Obe=()=>t=>t.specSelectors.info().get("summary"),Cbe=()=>t=>t.specSelectors.info().get("description"),Rbe=()=>t=>t.specSelectors.info().get("termsOfService"),Ibe=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectInfoTermsOfServiceField()],((t,e,r)=>{if(r)return ii(r,t,{selectedServer:e})})),Tbe=()=>t=>t.specSelectors.externalDocs().get("description"),Pbe=()=>t=>t.specSelectors.externalDocs().get("url"),kbe=(0,at.createSelector)([(t,e)=>e.specSelectors.url(),(t,e)=>e.oas3Selectors.selectedServer(),(t,e)=>e.specSelectors.selectExternalDocsUrlField()],((t,e,r)=>{if(r)return ii(r,t,{selectedServer:e})})),jbe=()=>t=>t.specSelectors.specJson().get("jsonSchemaDialect"),Nbe=()=>"https://spec.openapis.org/oas/3.1/dialect/base",Mbe=(0,at.createSelector)(((t,e)=>e.specSelectors.definitions()),((t,e)=>e.specSelectors.specResolvedSubtree(["components","schemas"])),((t,e)=>z.Map.isMap(t)?z.Map.isMap(e)?Object.entries(t.toJS()).reduce(((r,[n,i])=>{const s=e.get(n);return r[n]=s?.toJS()||i,r}),{}):t.toJS():{})),Dbe=(t,e)=>(r,...n)=>e.specSelectors.isOAS31()||t(...n),Fbe=P4((()=>(t,e)=>e.oas31Selectors.selectLicenseUrl())),qbe=P4((()=>(t,e)=>{const r=e.specSelectors.securityDefinitions();let n=t();return r&&r.entrySeq().forEach((([i,s])=>{s?.get("type")==="mutualTLS"&&(n=n.push(new z.Map({[i]:s})))})),n})),Bbe=(0,at.createSelector)([(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?ii(r,t,{selectedServer:e}):n?`https://spdx.org/licenses/${n}.html`:void 0));var $be=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{hasKeyword:i}=r.jsonSchema202012.useFn(),s=n("JSONSchema202012JSONViewer");return i(t,"example")?f.default.createElement(s,{name:"Example",value:t.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},Lbe=({schema:t,getSystem:e})=>{const r=t?.xml||{},{fn:n,getComponent:i,getConfigs:s}=e(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:l,useLevel:c}=n.jsonSchema202012,{path:p}=l("xml"),{isExpanded:h,setExpanded:d,setCollapsed:g}=u("xml"),[y,v]=c(),E=a?qs(r):[],b=!!(r.name||r.namespace||r.prefix||E.length>0),_=o("Accordion"),w=o("ExpandDeepButton"),S=i("OpenAPI31Extensions"),A=i("JSONSchema202012PathContext")(),I=i("JSONSchema202012LevelContext")(),T=(0,f.useCallback)((()=>{h?g():d()}),[h,d,g]),k=(0,f.useCallback)(((D,R)=>{R?d({deep:!0}):g({deep:!0})}),[d,g]);return Object.keys(r).length===0?null:f.default.createElement(A.Provider,{value:p},f.default.createElement(I.Provider,{value:v},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":y},b?f.default.createElement(f.default.Fragment,null,f.default.createElement(_,{expanded:h,onChange:T},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),f.default.createElement(w,{expanded:h,onClick:k})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!h})},h&&f.default.createElement(f.default.Fragment,null,r.name&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),E.length>0&&f.default.createElement(S,{openAPISpecObj:r,openAPIExtensions:E,getSystem:e})))))},Ube=({discriminator:t})=>{const e=t?.mapping||{};return Object.keys(e).length===0?null:Object.entries(e).map((([r,n])=>f.default.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n))))},Vbe=({schema:t,getSystem:e})=>{const r=t?.discriminator||{},{fn:n,getComponent:i,getConfigs:s}=e(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:l,useLevel:c}=n.jsonSchema202012,p="discriminator",{path:h}=l(p),{isExpanded:d,setExpanded:g,setCollapsed:y}=u(p),[v,E]=c(),b=a?qs(r):[],_=!!(r.mapping||b.length>0),w=o("Accordion"),S=o("ExpandDeepButton"),A=i("OpenAPI31Extensions"),I=i("JSONSchema202012PathContext")(),T=i("JSONSchema202012LevelContext")(),k=(0,f.useCallback)((()=>{d?y():g()}),[d,g,y]),D=(0,f.useCallback)(((R,$)=>{$?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:f.default.createElement(I.Provider,{value:h},f.default.createElement(T.Provider,{value:E},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":v},_?f.default.createElement(f.default.Fragment,null,f.default.createElement(w,{expanded:d,onChange:k},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),f.default.createElement(S,{expanded:d,onClick:D})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement(Ube,{discriminator:r})),b.length>0&&f.default.createElement(A,{openAPISpecObj:r,openAPIExtensions:b,getSystem:e})))))},zbe=({openAPISpecObj:t,getSystem:e,openAPIExtensions:r})=>{const{fn:n}=e(),{useComponent:i}=n.jsonSchema202012,s=i("JSONViewer");return r.map((a=>f.default.createElement(s,{key:a,name:a,value:t[a],className:"json-schema-2020-12-json-viewer-extension-keyword"})))},Wbe=({schema:t,getSystem:e})=>{const r=t?.externalDocs||{},{fn:n,getComponent:i,getConfigs:s}=e(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:l,useLevel:c}=n.jsonSchema202012,p="externalDocs",{path:h}=l(p),{isExpanded:d,setExpanded:g,setCollapsed:y}=u(p),[v,E]=c(),b=a?qs(r):[],_=!!(r.description||r.url||b.length>0),w=o("Accordion"),S=o("ExpandDeepButton"),A=i("JSONSchema202012KeywordDescription"),I=i("Link"),T=i("OpenAPI31Extensions"),k=i("JSONSchema202012PathContext")(),D=i("JSONSchema202012LevelContext")(),R=(0,f.useCallback)((()=>{d?y():g()}),[d,g,y]),$=(0,f.useCallback)(((M,K)=>{K?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:f.default.createElement(k.Provider,{value:h},f.default.createElement(D.Provider,{value:E},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":v},_?f.default.createElement(f.default.Fragment,null,f.default.createElement(w,{expanded:d,onChange:R},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),f.default.createElement(S,{expanded:d,onClick:$})):f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&f.default.createElement(f.default.Fragment,null,r.description&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement(A,{schema:r,getSystem:e})),r.url&&f.default.createElement("li",{className:"json-schema-2020-12-property"},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},f.default.createElement(I,{target:"_blank",href:lr(r.url)},r.url))))),b.length>0&&f.default.createElement(T,{openAPISpecObj:r,openAPIExtensions:b,getSystem:e})))))},Jbe=({schema:t,getSystem:e})=>{if(!t?.description)return null;const{getComponent:r}=e(),n=r("Markdown");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},f.default.createElement(n,{source:t.description})))},Hbe=Di(Jbe);const Kbe=Di((({schema:t,getSystem:e,originalComponent:r})=>{const{getComponent:n}=e(),i=n("JSONSchema202012KeywordDiscriminator"),s=n("JSONSchema202012KeywordXml"),a=n("JSONSchema202012KeywordExample"),o=n("JSONSchema202012KeywordExternalDocs");return f.default.createElement(f.default.Fragment,null,f.default.createElement(r,{schema:t}),f.default.createElement(i,{schema:t,getSystem:e}),f.default.createElement(s,{schema:t,getSystem:e}),f.default.createElement(o,{schema:t,getSystem:e}),f.default.createElement(a,{schema:t,getSystem:e}))}));var Gbe=Kbe,Ybe=({schema:t,getSystem:e})=>{const{fn:r,getComponent:n}=e(),{useComponent:i,usePath:s}=r.jsonSchema202012,{getDependentRequired:a,getProperties:o}=r.jsonSchema202012.useFn(),u=r.jsonSchema202012.useConfig(),l=Array.isArray(t?.required)?t.required:[],{path:c}=s("properties"),p=i("JSONSchema"),h=n("JSONSchema202012PathContext")(),d=o(t,u);return Object.keys(d).length===0?null:f.default.createElement(h.Provider,{value:c},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.default.createElement("ul",null,Object.entries(d).map((([g,y])=>{const v=l.includes(g),E=a(g,t);return f.default.createElement("li",{key:g,className:(0,Tt.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":v})},f.default.createElement(p,{name:g,schema:y,dependentRequired:E}))})))))},Xbe=Di(Ybe),Zbe=function({fn:e,getSystem:r}){if(e.jsonSchema202012){const s=((a,o)=>{const{fn:u}=o();if(typeof a!="function")return null;const{hasKeyword:l}=u.jsonSchema202012;return c=>a(c)||l(c,"example")||c?.xml||c?.discriminator||c?.externalDocs})(e.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:s,getProperties:sbe})}if(typeof e.sampleFromSchema=="function"&&e.jsonSchema202012){const s=XS({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:a=>e.jsonSchema202012.getType(eo(a)),getSchemaObjectType:a=>e.jsonSchema202012.foldType(eo(a)?.type)},r());Object.assign(this.fn,s)}const n=(s=>(a,o=null)=>{const{fn:u}=s();if(u.isFileUploadIntendedOAS30(a,o))return!0;const l=z.Map.isMap(a);if(!l&&!(0,Zi.default)(a))return!1;const c=l?a.get("contentMediaType"):a.contentMediaType,p=l?a.get("contentEncoding"):a.contentEncoding;return typeof c=="string"&&c!==""||typeof p=="string"&&p!==""})(r),{isFileUploadIntended:i}=XS({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=i,this.fn.isFileUploadIntendedOAS31=n,e.jsonSchema202012){const{hasSchemaType:s}=XS({hasSchemaType:e.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=s}},Qbe=({fn:t})=>{const e=t.createSystemSelector||H3,r=t.createOnlyOAS31Selector||J3;return{afterLoad:Zbe,fn:{isOAS31:T4,createSystemSelector:H3,createOnlyOAS31Selector:J3},components:{Webhooks:V0e,JsonSchemaDialect:H0e,MutualTLSAuth:Q0e,OAS31Info:J0e,OAS31License:z0e,OAS31Contact:W0e,OAS31VersionPragmaFilter:K0e,OAS31Model:X0e,OAS31Models:Z0e,OAS31Auths:tbe,JSONSchema202012KeywordExample:$be,JSONSchema202012KeywordXml:Lbe,JSONSchema202012KeywordDiscriminator:Vbe,JSONSchema202012KeywordExternalDocs:Wbe,OpenAPI31Extensions:zbe},wrapComponents:{InfoContainer:ibe,License:rbe,Contact:nbe,VersionPragmaFilter:ube,Model:abe,Models:obe,AuthItem:cbe,auths:fbe,JSONSchema202012KeywordDescription:Hbe,JSONSchema202012KeywordExamples:Gbe,JSONSchema202012KeywordProperties:Xbe},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:qbe}},spec:{selectors:{isOAS31:e(pbe),license:mbe,selectLicenseNameField:gbe,selectLicenseUrlField:ybe,selectLicenseIdentifierField:r(bbe),selectLicenseUrl:e(vbe),contact:Ebe,selectContactNameField:Sbe,selectContactEmailField:_be,selectContactUrlField:wbe,selectContactUrl:e(xbe),selectInfoTitleField:Abe,selectInfoSummaryField:r(Obe),selectInfoDescriptionField:Cbe,selectInfoTermsOfServiceField:Rbe,selectInfoTermsOfServiceUrl:e(Ibe),selectExternalDocsDescriptionField:Tbe,selectExternalDocsUrlField:Pbe,selectExternalDocsUrl:e(kbe),webhooks:r(dbe),selectWebhooksOperations:r(e(hbe)),selectJsonSchemaDialectField:jbe,selectJsonSchemaDialectDefault:Nbe,selectSchemas:e(Mbe)},wrapSelectors:{isOAS3:Dbe,selectLicenseUrl:Fbe}},oas31:{selectors:{selectLicenseUrl:r(e(Bbe))}}}}};const eEe=on.default.object,tEe=on.default.bool,sa=(on.default.oneOfType([eEe,tEe]),(0,f.createContext)(null));sa.displayName="JSONSchemaContext";const Vn=(0,f.createContext)(0);Vn.displayName="JSONSchemaLevelContext";const w_=(0,f.createContext)(new Set),dn=(0,f.createContext)([]);class Kn{static Collapsed="collapsed";static Expanded="expanded";static DeeplyExpanded="deeply-expanded"}const a2=()=>{const{config:t}=(0,f.useContext)(sa);return t},Fe=t=>{const{components:e}=(0,f.useContext)(sa);return e[t]||null},Wt=(t=void 0)=>{const{fn:e}=(0,f.useContext)(sa);return t!==void 0?e[t]:e},j4=()=>{const[,t]=(0,f.useState)(null),{state:e}=(0,f.useContext)(sa);return{state:e,setState:r=>{r(e),t({})}}},Bn=()=>{const t=(0,f.useContext)(Vn);return[t,t+1]},en=t=>{const e=(0,f.useContext)(dn),{setState:r}=j4(),n=typeof t=="string"?[...e,t]:e;return{path:n,pathMutator:(i,s={deep:!1})=>{const a=n.toString(),o=l=>{l.paths[a]=i,i===Kn.Collapsed&&Object.keys(l.paths).forEach((c=>{c.startsWith(a)&&l.paths[c]===Kn.DeeplyExpanded&&(l.paths[c]=Kn.Expanded)}))},u=l=>{Object.keys(l.paths).forEach((c=>{c.startsWith(a)&&(l.paths[c]=i)}))};s.deep?r(u):r(o)}}},fi=t=>{const[e]=Bn(),{defaultExpandedLevels:r}=a2(),{path:n,pathMutator:i}=en(t),{path:s}=en(),{state:a}=j4(),o=a.paths[n.toString()],u=a.paths[s.toString()]??a.paths[s.slice(0,-1).toString()],l=o??(r-e>0?Kn.Expanded:Kn.Collapsed),c=l!==Kn.Collapsed;return(0,f.useEffect)((()=>{i(u===Kn.DeeplyExpanded?Kn.DeeplyExpanded:l)}),[u]),{isExpanded:c,setExpanded:(0,f.useCallback)(((p={deep:!1})=>{i(p.deep?Kn.DeeplyExpanded:Kn.Expanded)}),[]),setCollapsed:(0,f.useCallback)(((p={deep:!1})=>{i(Kn.Collapsed,p)}),[])}},K3=(t=void 0)=>{if(t===void 0)return(0,f.useContext)(w_);const e=(0,f.useContext)(w_);return new Set([...e,t])},rEe=(0,f.forwardRef)((({schema:t,name:e="",dependentRequired:r=[],onExpand:n=()=>{},identifier:i=""},s)=>{const a=Wt(),o=i||t?.$id||e,{path:u}=en(o),{isExpanded:l,setExpanded:c,setCollapsed:p}=fi(o),[h,d]=Bn(),g=(()=>{const[q]=Bn();return q>0})(),y=a.isExpandable(t)||r.length>0,v=(q=>K3().has(q))(t),E=K3(t),b=a.stringifyConstraints(t),_=Fe("Accordion"),w=Fe("Keyword$schema"),S=Fe("Keyword$vocabulary"),A=Fe("Keyword$id"),I=Fe("Keyword$anchor"),T=Fe("Keyword$dynamicAnchor"),k=Fe("Keyword$ref"),D=Fe("Keyword$dynamicRef"),R=Fe("Keyword$defs"),$=Fe("Keyword$comment"),M=Fe("KeywordAllOf"),K=Fe("KeywordAnyOf"),ee=Fe("KeywordOneOf"),G=Fe("KeywordNot"),Z=Fe("KeywordIf"),X=Fe("KeywordThen"),te=Fe("KeywordElse"),ce=Fe("KeywordDependentSchemas"),ie=Fe("KeywordPrefixItems"),ue=Fe("KeywordItems"),ye=Fe("KeywordContains"),he=Fe("KeywordProperties"),re=Fe("KeywordPatternProperties"),W=Fe("KeywordAdditionalProperties"),V=Fe("KeywordPropertyNames"),me=Fe("KeywordUnevaluatedItems"),ve=Fe("KeywordUnevaluatedProperties"),Me=Fe("KeywordType"),Be=Fe("KeywordEnum"),Te=Fe("KeywordConst"),Pe=Fe("KeywordConstraint"),Le=Fe("KeywordDependentRequired"),ge=Fe("KeywordContentSchema"),Se=Fe("KeywordTitle"),we=Fe("KeywordDescription"),L=Fe("KeywordDefault"),C=Fe("KeywordDeprecated"),j=Fe("KeywordReadOnly"),U=Fe("KeywordWriteOnly"),Y=Fe("KeywordExamples"),ne=Fe("ExtensionKeywords"),fe=Fe("ExpandDeepButton"),Ne=(0,f.useCallback)(((q,O)=>{O?c():p(),n(q,O,!1)}),[n,c,p]),Ge=(0,f.useCallback)(((q,O)=>{O?c({deep:!0}):p({deep:!0}),n(q,O,!0)}),[n,c,p]);return f.default.createElement(dn.Provider,{value:u},f.default.createElement(Vn.Provider,{value:d},f.default.createElement(w_.Provider,{value:E},f.default.createElement("article",{ref:s,"data-json-schema-level":h,className:(0,Tt.default)("json-schema-2020-12",{"json-schema-2020-12--embedded":g,"json-schema-2020-12--circular":v})},f.default.createElement("div",{className:"json-schema-2020-12-head"},y&&!v?f.default.createElement(f.default.Fragment,null,f.default.createElement(_,{expanded:l,onChange:Ne},f.default.createElement(Se,{title:e,schema:t})),f.default.createElement(fe,{expanded:l,onClick:Ge})):f.default.createElement(Se,{title:e,schema:t}),f.default.createElement(C,{schema:t}),f.default.createElement(j,{schema:t}),f.default.createElement(U,{schema:t}),f.default.createElement(Me,{schema:t,isCircular:v}),b.length>0&&b.map((q=>f.default.createElement(Pe,{key:`${q.scope}-${q.value}`,constraint:q})))),f.default.createElement("div",{className:(0,Tt.default)("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!l})},l&&f.default.createElement(f.default.Fragment,null,f.default.createElement(we,{schema:t}),!v&&y&&f.default.createElement(f.default.Fragment,null,f.default.createElement(he,{schema:t}),f.default.createElement(re,{schema:t}),f.default.createElement(W,{schema:t}),f.default.createElement(ve,{schema:t}),f.default.createElement(V,{schema:t}),f.default.createElement(M,{schema:t}),f.default.createElement(K,{schema:t}),f.default.createElement(ee,{schema:t}),f.default.createElement(G,{schema:t}),f.default.createElement(Z,{schema:t}),f.default.createElement(X,{schema:t}),f.default.createElement(te,{schema:t}),f.default.createElement(ce,{schema:t}),f.default.createElement(ie,{schema:t}),f.default.createElement(ue,{schema:t}),f.default.createElement(me,{schema:t}),f.default.createElement(ye,{schema:t}),f.default.createElement(ge,{schema:t})),f.default.createElement(Be,{schema:t}),f.default.createElement(Te,{schema:t}),f.default.createElement(Le,{schema:t,dependentRequired:r}),f.default.createElement(L,{schema:t}),f.default.createElement(Y,{schema:t}),f.default.createElement(w,{schema:t}),f.default.createElement(S,{schema:t}),f.default.createElement(A,{schema:t}),f.default.createElement(I,{schema:t}),f.default.createElement(T,{schema:t}),f.default.createElement(k,{schema:t}),!v&&y&&f.default.createElement(R,{schema:t}),f.default.createElement(D,{schema:t}),f.default.createElement($,{schema:t}),f.default.createElement(ne,{schema:t})))))))}));var N4=rEe,M4=({schema:t})=>t?.$schema?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$schema)):null,D4=({schema:t})=>{const e="$vocabulary",{path:r}=en(e),{isExpanded:n,setExpanded:i,setCollapsed:s}=fi(e),a=Fe("Accordion"),o=(0,f.useCallback)((()=>{n?s():i()}),[n,i,s]);return t?.$vocabulary?typeof t.$vocabulary!="object"?null:f.default.createElement(dn.Provider,{value:r},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},f.default.createElement(a,{expanded:n,onChange:o},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",null,n&&Object.entries(t.$vocabulary).map((([u,l])=>f.default.createElement("li",{key:u,className:(0,Tt.default)("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!l})},f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u))))))):null},F4=({schema:t})=>t?.$id?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$id)):null,q4=({schema:t})=>t?.$anchor?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$anchor)):null,B4=({schema:t})=>t?.$dynamicAnchor?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicAnchor)):null,$4=({schema:t})=>t?.$ref?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$ref)):null,L4=({schema:t})=>t?.$dynamicRef?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$dynamicRef)):null,U4=({schema:t})=>{const e=t?.$defs||{},r="$defs",{path:n}=en(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=fi(r),[o,u]=Bn(),l=Fe("Accordion"),c=Fe("ExpandDeepButton"),p=Fe("JSONSchema"),h=(0,f.useCallback)((()=>{i?a():s()}),[i,s,a]),d=(0,f.useCallback)(((g,y)=>{y?s({deep:!0}):a({deep:!0})}),[s,a]);return Object.keys(e).length===0?null:f.default.createElement(dn.Provider,{value:n},f.default.createElement(Vn.Provider,{value:u},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":o},f.default.createElement(l,{expanded:i,onChange:h},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),f.default.createElement(c,{expanded:i,onClick:d}),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&f.default.createElement(f.default.Fragment,null,Object.entries(e).map((([g,y])=>f.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},f.default.createElement(p,{name:g,schema:y})))))))))},V4=({schema:t})=>t?.$comment?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},t.$comment)):null,z4=({schema:t})=>{const e=t?.allOf||[],r=Wt(),n="allOf",{path:i}=en(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=fi(n),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,f.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(e)&&e.length!==0?f.default.createElement(dn.Provider,{value:i},f.default.createElement(Vn.Provider,{value:l},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":u},f.default.createElement(c,{expanded:s,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),f.default.createElement(p,{expanded:s,onClick:y}),f.default.createElement(d,{schema:{allOf:e}}),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.default.createElement(f.default.Fragment,null,e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v}))))))))):null},W4=({schema:t})=>{const e=t?.anyOf||[],r=Wt(),n="anyOf",{path:i}=en(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=fi(n),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,f.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(e)&&e.length!==0?f.default.createElement(dn.Provider,{value:i},f.default.createElement(Vn.Provider,{value:l},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":u},f.default.createElement(c,{expanded:s,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),f.default.createElement(p,{expanded:s,onClick:y}),f.default.createElement(d,{schema:{anyOf:e}}),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.default.createElement(f.default.Fragment,null,e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v}))))))))):null},J4=({schema:t})=>{const e=t?.oneOf||[],r=Wt(),n="oneOf",{path:i}=en(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=fi(n),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,f.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(e)&&e.length!==0?f.default.createElement(dn.Provider,{value:i},f.default.createElement(Vn.Provider,{value:l},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":u},f.default.createElement(c,{expanded:s,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),f.default.createElement(p,{expanded:s,onClick:y}),f.default.createElement(d,{schema:{oneOf:e}}),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.default.createElement(f.default.Fragment,null,e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v}))))))))):null},H4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"not"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},f.default.createElement(r,{name:n,schema:t.not,identifier:"not"}))},K4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"if"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},f.default.createElement(r,{name:n,schema:t.if,identifier:"if"}))},G4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"then"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},f.default.createElement(r,{name:n,schema:t.then,identifier:"then"}))},Y4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"else"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},f.default.createElement(r,{name:n,schema:t.else,identifier:"else"}))},X4=({schema:t})=>{const e=t?.dependentSchemas||[],r="dependentSchemas",{path:n}=en(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=fi(r),[o,u]=Bn(),l=Fe("Accordion"),c=Fe("ExpandDeepButton"),p=Fe("JSONSchema"),h=(0,f.useCallback)((()=>{i?a():s()}),[i,s,a]),d=(0,f.useCallback)(((g,y)=>{y?s({deep:!0}):a({deep:!0})}),[s,a]);return typeof e!="object"||Object.keys(e).length===0?null:f.default.createElement(dn.Provider,{value:n},f.default.createElement(Vn.Provider,{value:u},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":o},f.default.createElement(l,{expanded:i,onChange:h},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),f.default.createElement(c,{expanded:i,onClick:d}),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&f.default.createElement(f.default.Fragment,null,Object.entries(e).map((([g,y])=>f.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},f.default.createElement(p,{name:g,schema:y})))))))))},Z4=({schema:t})=>{const e=t?.prefixItems||[],r=Wt(),n="prefixItems",{path:i}=en(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=fi(n),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,f.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(e)&&e.length!==0?f.default.createElement(dn.Provider,{value:i},f.default.createElement(Vn.Provider,{value:l},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":u},f.default.createElement(c,{expanded:s,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),f.default.createElement(p,{expanded:s,onClick:y}),f.default.createElement(d,{schema:{prefixItems:e}}),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&f.default.createElement(f.default.Fragment,null,e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v}))))))))):null},Q4=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"items"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},f.default.createElement(r,{name:n,schema:t.items,identifier:"items"}))},eU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"contains"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},f.default.createElement(r,{name:n,schema:t.contains,identifier:"contains"}))},tU=({schema:t})=>{const e=Wt(),r=t?.properties||{},n=Array.isArray(t?.required)?t.required:[],i=Fe("JSONSchema"),{path:s}=en("properties");return Object.keys(r).length===0?null:f.default.createElement(dn.Provider,{value:s},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},f.default.createElement("ul",null,Object.entries(r).map((([a,o])=>{const u=n.includes(a),l=e.getDependentRequired(a,t);return f.default.createElement("li",{key:a,className:(0,Tt.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":u})},f.default.createElement(i,{name:a,schema:o,dependentRequired:l}))})))))},rU=({schema:t})=>{const e=t?.patternProperties||{},r=Fe("JSONSchema"),{path:n}=en("patternProperties");return Object.keys(e).length===0?null:f.default.createElement(dn.Provider,{value:n},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},f.default.createElement("ul",null,Object.entries(e).map((([i,s])=>f.default.createElement("li",{key:i,className:"json-schema-2020-12-property"},f.default.createElement(r,{name:i,schema:s})))))))},nU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"additionalProperties"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},t.additionalProperties===!0?f.default.createElement(f.default.Fragment,null,n,f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):t.additionalProperties===!1?f.default.createElement(f.default.Fragment,null,n,f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):f.default.createElement(r,{name:n,schema:t.additionalProperties,identifier:"additionalProperties"}))},iU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema"),n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return e.hasKeyword(t,"propertyNames")?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},f.default.createElement(r,{name:n,schema:t.propertyNames,identifier:"propertyNames"})):null},sU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"unevaluatedItems"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},f.default.createElement(r,{name:n,schema:t.unevaluatedItems,identifier:"unevaluatedItems"}))},aU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"unevaluatedProperties"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},f.default.createElement(r,{name:n,schema:t.unevaluatedProperties,identifier:"unevaluatedProperties"}))},oU=({schema:t,isCircular:e=!1})=>{const r=Wt().getType(t),n=e?" [circular]":"";return f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},uU=({schema:t})=>{const e=Fe("JSONViewer");return Array.isArray(t?.enum)?f.default.createElement(e,{name:"Enum",value:t.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},lU=({schema:t})=>{const e=Wt(),r=Fe("JSONViewer");return e.hasKeyword(t,"const")?f.default.createElement(r,{name:"Const",value:t.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null};const cU=t=>typeof t=="string"?`${t.charAt(0).toUpperCase()}${t.slice(1)}`:t,fU=t=>(e,{lookup:r="extended"}={})=>{const n=t();if(e?.title!=null)return n.upperFirst(String(e.title));if(r==="extended"){if(e?.$anchor!=null)return n.upperFirst(String(e.$anchor));if(e?.$id!=null)return String(e.$id)}return""},pU=t=>{const e=(r,n=new WeakSet)=>{const i=t();if(r==null)return"any";if(i.isBooleanJSONSchema(r))return r?"any":"never";if(typeof r!="object"||n.has(r))return"any";n.add(r);const{type:s,prefixItems:a,items:o}=r,u=()=>{if(Array.isArray(a)){const p=a.map((d=>e(d,n))),h=o?e(o,n):"any";return`array<[${p.join(", ")}], ${h}>`}return o?`array<${e(o,n)}>`:"array<any>"};if(r.not&&e(r.not)==="any")return"never";const l=(p,h)=>Array.isArray(r[p])?`(${r[p].map((d=>e(d,n))).join(h)})`:null,c=[Array.isArray(s)?s.map((p=>p==="array"?u():p)).join(" | "):s==="array"?u():["null","boolean","object","array","number","integer","string"].includes(s)?s:(()=>{if(Object.hasOwn(r,"prefixItems")||Object.hasOwn(r,"items")||Object.hasOwn(r,"contains"))return u();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),c||"any"};return e},dU=t=>typeof t=="boolean",hU=(t,e)=>t!==null&&typeof t=="object"&&Object.hasOwn(t,e),mU=t=>e=>{const r=t();return e?.$schema||e?.$vocabulary||e?.$id||e?.$anchor||e?.$dynamicAnchor||e?.$ref||e?.$dynamicRef||e?.$defs||e?.$comment||e?.allOf||e?.anyOf||e?.oneOf||r.hasKeyword(e,"not")||r.hasKeyword(e,"if")||r.hasKeyword(e,"then")||r.hasKeyword(e,"else")||e?.dependentSchemas||e?.prefixItems||r.hasKeyword(e,"items")||r.hasKeyword(e,"contains")||e?.properties||e?.patternProperties||r.hasKeyword(e,"additionalProperties")||r.hasKeyword(e,"propertyNames")||r.hasKeyword(e,"unevaluatedItems")||r.hasKeyword(e,"unevaluatedProperties")||e?.description||e?.enum||r.hasKeyword(e,"const")||r.hasKeyword(e,"contentSchema")||r.hasKeyword(e,"default")||e?.examples||r.getExtensionKeywords(e).length>0},gU=t=>t===null||["number","bigint","boolean"].includes(typeof t)?String(t):Array.isArray(t)?`[${t.map(gU).join(", ")}]`:JSON.stringify(t),yc=(t,e,r)=>{const n=typeof e=="number",i=typeof r=="number";return n&&i?e===r?`${e} ${t}`:`[${e}, ${r}] ${t}`:n?`≥ ${e} ${t}`:i?`≤ ${r} ${t}`:null},nEe=t=>{const e=[],r=(u=>{if(typeof u?.multipleOf!="number"||u.multipleOf<=0||u.multipleOf===1)return null;const{multipleOf:l}=u;if(Number.isInteger(l))return`multiple of ${l}`;const c=10**l.toString().split(".")[1].length;return`multiple of ${l*c}/${c}`})(t);r!==null&&e.push({scope:"number",value:r});const n=(u=>{const l=u?.minimum,c=u?.maximum,p=u?.exclusiveMinimum,h=u?.exclusiveMaximum,d=typeof l=="number",g=typeof c=="number",y=typeof p=="number",v=typeof h=="number",E=y&&(!d||l<p),b=v&&(!g||c>h);return(d||y)&&(g||v)?`${E?"(":"["}${E?p:l}, ${b?h:c}${b?")":"]"}`:d||y?`${E?">":"≥"} ${E?p:l}`:g||v?`${b?"<":"≤"} ${b?h:c}`:null})(t);n!==null&&e.push({scope:"number",value:n}),t?.format&&e.push({scope:"string",value:t.format});const i=yc("characters",t?.minLength,t?.maxLength);i!==null&&e.push({scope:"string",value:i}),t?.pattern&&e.push({scope:"string",value:`matches ${t?.pattern}`}),t?.contentMediaType&&e.push({scope:"string",value:`media type: ${t.contentMediaType}`}),t?.contentEncoding&&e.push({scope:"string",value:`encoding: ${t.contentEncoding}`});const s=yc(t?.uniqueItems?"unique items":"items",t?.minItems,t?.maxItems);s!==null&&e.push({scope:"array",value:s}),t?.uniqueItems&&!s&&e.push({scope:"array",value:"unique"});const a=yc("contained items",t?.minContains,t?.maxContains);a!==null&&e.push({scope:"array",value:a});const o=yc("properties",t?.minProperties,t?.maxProperties);return o!==null&&e.push({scope:"object",value:o}),e},iEe=(t,e)=>e?.dependentRequired?Array.from(Object.entries(e.dependentRequired).reduce(((r,[n,i])=>(Array.isArray(i)&&i.includes(t)&&r.add(n),r)),new Set)):[],Vp=t=>typeof t=="object"&&t!==null&&!Array.isArray(t)&&(Object.getPrototypeOf(t)===null||Object.getPrototypeOf(t)===Object.prototype),yU=()=>["$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"],vU=t=>e=>{const r=t().getSchemaKeywords();return Vp(e)?((n,i)=>{const s=new Set(i);return n.filter((a=>!s.has(a)))})(Object.keys(e),r):[]},sEe=(t,e)=>{const r=z.Map.isMap(t);if(!r&&!Vp(t))return!1;const n=s=>e===s||Array.isArray(e)&&e.includes(s),i=r?t.get("type"):t.type;return z.List.isList(i)||Array.isArray(i)?i.some((s=>n(s))):n(i)},aEe=({constraint:t})=>Vp(t)&&typeof t.scope=="string"&&typeof t.value=="string"?f.default.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${t.scope}`},t.value):null;var bU=f.default.memo(aEe),EU=({dependentRequired:t})=>Array.isArray(t)&&t.length!==0?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),f.default.createElement("ul",null,t.map((e=>f.default.createElement("li",{key:e},f.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},e)))))):null,SU=({schema:t})=>{const e=Wt(),r=Fe("JSONSchema");if(!e.hasKeyword(t,"contentSchema"))return null;const n=f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},f.default.createElement(r,{name:n,schema:t.contentSchema,identifier:"contentSchema"}))},_U=({title:t="",schema:e})=>{const r=Wt(),n=t||r.getTitle(e);return n?f.default.createElement("div",{className:"json-schema-2020-12__title"},n):null},wU=({schema:t})=>t?.description?f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},f.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},t.description)):null,xU=({schema:t})=>{const e=Wt(),r=Fe("JSONViewer");return e.hasKeyword(t,"default")?f.default.createElement(r,{name:"Default",value:t.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},AU=({schema:t})=>t?.deprecated!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),OU=({schema:t})=>t?.readOnly!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),CU=({schema:t})=>t?.writeOnly!==!0?null:f.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),RU=({schema:t})=>{const e=t?.examples||[],r=Fe("JSONViewer");return Array.isArray(e)&&e.length!==0?f.default.createElement(r,{name:"Examples",value:t.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},IU=({schema:t})=>{const e=Wt(),r="ExtensionKeywords",{path:n}=en(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=fi(r),[o,u]=Bn(),l=Fe("Accordion"),c=Fe("ExpandDeepButton"),p=Fe("JSONViewer"),{showExtensionKeywords:h}=a2(),d=e.getExtensionKeywords(t),g=(0,f.useCallback)((()=>{i?a():s()}),[i,s,a]),y=(0,f.useCallback)(((v,E)=>{E?s({deep:!0}):a({deep:!0})}),[s,a]);return h&&d.length!==0?f.default.createElement(dn.Provider,{value:n},f.default.createElement(Vn.Provider,{value:u},f.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":o},f.default.createElement(l,{expanded:i,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),f.default.createElement(c,{expanded:i,onClick:y}),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&f.default.createElement(f.default.Fragment,null,d.map((v=>f.default.createElement(p,{key:v,name:v,value:t[v],className:"json-schema-2020-12-json-viewer-extension-keyword"})))))))):null};const x_=({name:t,value:e,className:r})=>{const n=Wt(),{path:i}=en(t),{isExpanded:s,setExpanded:a,setCollapsed:o}=fi(t),[u,l]=Bn(),c=Fe("Accordion"),p=Fe("ExpandDeepButton"),h=typeof e=="string"||typeof e=="number"||typeof e=="bigint"||typeof e=="boolean"||typeof e=="symbol"||e==null,d=(v=>Vp(v)&&Object.keys(v).length===0)(e)||(v=>Array.isArray(v)&&v.length===0)(e),g=(0,f.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,f.useCallback)(((v,E)=>{E?a({deep:!0}):o({deep:!0})}),[a,o]);return h?f.default.createElement("div",{className:(0,Tt.default)("json-schema-2020-12-json-viewer",r)},f.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),f.default.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(e))):d?f.default.createElement("div",{className:(0,Tt.default)("json-schema-2020-12-json-viewer",r)},f.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"empty array":"empty object")):f.default.createElement(dn.Provider,{value:i},f.default.createElement(Vn.Provider,{value:l},f.default.createElement("div",{className:(0,Tt.default)("json-schema-2020-12-json-viewer",r),"data-json-schema-level":u},f.default.createElement(c,{expanded:s,onChange:g},f.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},t)),f.default.createElement(p,{expanded:s,onClick:y}),f.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(e)?"array":"object"),f.default.createElement("ul",{className:(0,Tt.default)("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!s})},s&&f.default.createElement(f.default.Fragment,null,Array.isArray(e)?e.map(((v,E)=>f.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},f.default.createElement(x_,{name:`#${E}`,value:v,className:r})))):Object.entries(e).map((([v,E])=>f.default.createElement("li",{key:v,className:"json-schema-2020-12-property"},f.default.createElement(x_,{name:v,value:E,className:r})))))))))};var TU=x_,PU=({expanded:t=!1,children:e,onChange:r})=>{const n=Fe("ChevronRightIcon"),i=(0,f.useCallback)((s=>{r(s,!t)}),[t,r]);return f.default.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:i},f.default.createElement("div",{className:"json-schema-2020-12-accordion__children"},e),f.default.createElement("span",{className:(0,Tt.default)("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":t,"json-schema-2020-12-accordion__icon--collapsed":!t})},f.default.createElement(n,null)))},kU=({expanded:t,onClick:e})=>{const r=(0,f.useCallback)((n=>{e(n,!t)}),[t,e]);return f.default.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},t?"Collapse all":"Expand all")},jU=()=>f.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},f.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const NU=(t,e={})=>{const r={components:{JSONSchema:N4,Keyword$schema:M4,Keyword$vocabulary:D4,Keyword$id:F4,Keyword$anchor:q4,Keyword$dynamicAnchor:B4,Keyword$ref:$4,Keyword$dynamicRef:L4,Keyword$defs:U4,Keyword$comment:V4,KeywordAllOf:z4,KeywordAnyOf:W4,KeywordOneOf:J4,KeywordNot:H4,KeywordIf:K4,KeywordThen:G4,KeywordElse:Y4,KeywordDependentSchemas:X4,KeywordPrefixItems:Z4,KeywordItems:Q4,KeywordContains:eU,KeywordProperties:tU,KeywordPatternProperties:rU,KeywordAdditionalProperties:nU,KeywordPropertyNames:iU,KeywordUnevaluatedItems:sU,KeywordUnevaluatedProperties:aU,KeywordType:oU,KeywordEnum:uU,KeywordConst:lU,KeywordConstraint:bU,KeywordDependentRequired:EU,KeywordContentSchema:SU,KeywordTitle:_U,KeywordDescription:wU,KeywordDefault:xU,KeywordDeprecated:AU,KeywordReadOnly:OU,KeywordWriteOnly:CU,KeywordExamples:RU,ExtensionKeywords:IU,JSONViewer:TU,Accordion:PU,ExpandDeepButton:kU,ChevronRightIcon:jU,...e.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...e.config},fn:{upperFirst:cU,getTitle:fU(Wt),getType:pU(Wt),isBooleanJSONSchema:dU,hasKeyword:hU,isExpandable:mU(Wt),stringify:gU,stringifyConstraints:nEe,getDependentRequired:iEe,getSchemaKeywords:yU,getExtensionKeywords:vU(Wt),...e.fn},state:{paths:{}}},n=i=>f.default.createElement(sa.Provider,{value:r},f.default.createElement(t,i));return n.contexts={JSONSchemaContext:sa},n.displayName=t.displayName,n},oEe=({getSystem:t})=>(e,r={})=>{const{getComponent:n,getConfigs:i}=t(),s=i(),a=n("JSONSchema202012"),o=n("JSONSchema202012Keyword$schema"),u=n("JSONSchema202012Keyword$vocabulary"),l=n("JSONSchema202012Keyword$id"),c=n("JSONSchema202012Keyword$anchor"),p=n("JSONSchema202012Keyword$dynamicAnchor"),h=n("JSONSchema202012Keyword$ref"),d=n("JSONSchema202012Keyword$dynamicRef"),g=n("JSONSchema202012Keyword$defs"),y=n("JSONSchema202012Keyword$comment"),v=n("JSONSchema202012KeywordAllOf"),E=n("JSONSchema202012KeywordAnyOf"),b=n("JSONSchema202012KeywordOneOf"),_=n("JSONSchema202012KeywordNot"),w=n("JSONSchema202012KeywordIf"),S=n("JSONSchema202012KeywordThen"),A=n("JSONSchema202012KeywordElse"),I=n("JSONSchema202012KeywordDependentSchemas"),T=n("JSONSchema202012KeywordPrefixItems"),k=n("JSONSchema202012KeywordItems"),D=n("JSONSchema202012KeywordContains"),R=n("JSONSchema202012KeywordProperties"),$=n("JSONSchema202012KeywordPatternProperties"),M=n("JSONSchema202012KeywordAdditionalProperties"),K=n("JSONSchema202012KeywordPropertyNames"),ee=n("JSONSchema202012KeywordUnevaluatedItems"),G=n("JSONSchema202012KeywordUnevaluatedProperties"),Z=n("JSONSchema202012KeywordType"),X=n("JSONSchema202012KeywordEnum"),te=n("JSONSchema202012KeywordConst"),ce=n("JSONSchema202012KeywordConstraint"),ie=n("JSONSchema202012KeywordDependentRequired"),ue=n("JSONSchema202012KeywordContentSchema"),ye=n("JSONSchema202012KeywordTitle"),he=n("JSONSchema202012KeywordDescription"),re=n("JSONSchema202012KeywordDefault"),W=n("JSONSchema202012KeywordDeprecated"),V=n("JSONSchema202012KeywordReadOnly"),me=n("JSONSchema202012KeywordWriteOnly"),ve=n("JSONSchema202012KeywordExamples"),Me=n("JSONSchema202012ExtensionKeywords"),Be=n("JSONSchema202012JSONViewer"),Te=n("JSONSchema202012Accordion"),Pe=n("JSONSchema202012ExpandDeepButton"),Le=n("JSONSchema202012ChevronRightIcon");return NU(e,{components:{JSONSchema:a,Keyword$schema:o,Keyword$vocabulary:u,Keyword$id:l,Keyword$anchor:c,Keyword$dynamicAnchor:p,Keyword$ref:h,Keyword$dynamicRef:d,Keyword$defs:g,Keyword$comment:y,KeywordAllOf:v,KeywordAnyOf:E,KeywordOneOf:b,KeywordNot:_,KeywordIf:w,KeywordThen:S,KeywordElse:A,KeywordDependentSchemas:I,KeywordPrefixItems:T,KeywordItems:k,KeywordContains:D,KeywordProperties:R,KeywordPatternProperties:$,KeywordAdditionalProperties:M,KeywordPropertyNames:K,KeywordUnevaluatedItems:ee,KeywordUnevaluatedProperties:G,KeywordType:Z,KeywordEnum:X,KeywordConst:te,KeywordConstraint:ce,KeywordDependentRequired:ie,KeywordContentSchema:ue,KeywordTitle:ye,KeywordDescription:he,KeywordDefault:re,KeywordDeprecated:W,KeywordReadOnly:V,KeywordWriteOnly:me,KeywordExamples:ve,ExtensionKeywords:Me,JSONViewer:Be,Accordion:Te,ExpandDeepButton:Pe,ChevronRightIcon:Le,...r.components},config:{showExtensionKeywords:s.showExtensions,...r.config},fn:{...r.fn}})};var MU=({getSystem:t,fn:e})=>{const r=()=>({upperFirst:e.upperFirst,...e.jsonSchema202012});return{components:{JSONSchema202012:N4,JSONSchema202012Keyword$schema:M4,JSONSchema202012Keyword$vocabulary:D4,JSONSchema202012Keyword$id:F4,JSONSchema202012Keyword$anchor:q4,JSONSchema202012Keyword$dynamicAnchor:B4,JSONSchema202012Keyword$ref:$4,JSONSchema202012Keyword$dynamicRef:L4,JSONSchema202012Keyword$defs:U4,JSONSchema202012Keyword$comment:V4,JSONSchema202012KeywordAllOf:z4,JSONSchema202012KeywordAnyOf:W4,JSONSchema202012KeywordOneOf:J4,JSONSchema202012KeywordNot:H4,JSONSchema202012KeywordIf:K4,JSONSchema202012KeywordThen:G4,JSONSchema202012KeywordElse:Y4,JSONSchema202012KeywordDependentSchemas:X4,JSONSchema202012KeywordPrefixItems:Z4,JSONSchema202012KeywordItems:Q4,JSONSchema202012KeywordContains:eU,JSONSchema202012KeywordProperties:tU,JSONSchema202012KeywordPatternProperties:rU,JSONSchema202012KeywordAdditionalProperties:nU,JSONSchema202012KeywordPropertyNames:iU,JSONSchema202012KeywordUnevaluatedItems:sU,JSONSchema202012KeywordUnevaluatedProperties:aU,JSONSchema202012KeywordType:oU,JSONSchema202012KeywordEnum:uU,JSONSchema202012KeywordConst:lU,JSONSchema202012KeywordConstraint:bU,JSONSchema202012KeywordDependentRequired:EU,JSONSchema202012KeywordContentSchema:SU,JSONSchema202012KeywordTitle:_U,JSONSchema202012KeywordDescription:wU,JSONSchema202012KeywordDefault:xU,JSONSchema202012KeywordDeprecated:AU,JSONSchema202012KeywordReadOnly:OU,JSONSchema202012KeywordWriteOnly:CU,JSONSchema202012KeywordExamples:RU,JSONSchema202012ExtensionKeywords:IU,JSONSchema202012JSONViewer:TU,JSONSchema202012Accordion:PU,JSONSchema202012ExpandDeepButton:kU,JSONSchema202012ChevronRightIcon:jU,withJSONSchema202012Context:NU,withJSONSchema202012SystemContext:oEe(t()),JSONSchema202012PathContext:()=>dn,JSONSchema202012LevelContext:()=>Vn},fn:{upperFirst:cU,jsonSchema202012:{getTitle:fU(r),getType:pU(r),isExpandable:mU(r),isBooleanJSONSchema:dU,hasKeyword:hU,useFn:Wt,useConfig:a2,useComponent:Fe,useIsExpanded:fi,usePath:en,useLevel:Bn,getSchemaKeywords:yU,getExtensionKeywords:vU(r),hasSchemaType:sEe}}}},uEe=(t,{sample:e=[]}={})=>((r,n={})=>{const{minItems:i,maxItems:s,uniqueItems:a}=n,{contains:o,minContains:u,maxContains:l}=n;let c=[...r];if(o!=null&&typeof o=="object"&&Number.isInteger(u)&&u>1){const p=c.at(0);for(let h=1;h<u;h+=1)c.unshift(p)}if(Number.isInteger(s)&&s>0&&(c=r.slice(0,s)),Number.isInteger(i)&&i>0)for(let p=0;c.length<i;p+=1)c.push(c[p%c.length]);return a===!0&&(c=Array.from(new Set(c))),c})(e,t),lEe=()=>{throw new Error("Not implemented")};const zp=t=>$a()(t),Nc=t=>t.at(0),Ks=t=>typeof t=="boolean",Yn=t=>(0,Zi.default)(t),zi=t=>Ks(t)||Yn(t);var Wp=class{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]}},DU=()=>0,FU=()=>0,cEe=()=>.1,fEe=()=>.1,pEe=()=>"user@example.com",dEe=()=>"실례@example.com",hEe=()=>"example.com",mEe=()=>"실례.com",gEe=()=>"198.51.100.42",yEe=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",vEe=()=>"https://example.com/",bEe=()=>"path/index.html",EEe=()=>"https://실례.com/",SEe=()=>"path/실례.html",_Ee=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",wEe=()=>"https://example.com/dictionary/{term:1}/{term}",xEe=()=>"/a/b/c",AEe=()=>"1/0",OEe=()=>new Date().toISOString(),CEe=()=>new Date().toISOString().substring(0,10),REe=()=>new Date().toISOString().substring(11),IEe=()=>"P3D",TEe=()=>"********",PEe=()=>"^[a-z]+$";const Mc=new class extends Wp{#e={int32:DU,int64:FU,float:cEe,double:fEe,email:pEe,"idn-email":dEe,hostname:hEe,"idn-hostname":mEe,ipv4:gEe,ipv6:yEe,uri:vEe,"uri-reference":bEe,iri:EEe,"iri-reference":SEe,uuid:_Ee,"uri-template":wEe,"json-pointer":xEe,"relative-json-pointer":AEe,"date-time":OEe,date:CEe,time:REe,duration:IEe,password:TEe,regex:PEe};data={...this.#e};get defaults(){return{...this.#e}}},qU=(t,e)=>typeof e=="function"?Mc.register(t,e):e===null?Mc.unregister(t):Mc.get(t);qU.getDefaults=()=>Mc.defaults;var Jp=qU,kEe=be(287).Buffer,jEe=t=>kEe.from(t).toString("ascii"),NEe=be(287).Buffer,MEe=t=>NEe.from(t).toString("utf8"),DEe=be(287).Buffer,FEe=t=>DEe.from(t).toString("binary"),qEe=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
285
+ `;else if(n>126){const i=unescape(encodeURIComponent(t.charAt(r)));for(let s=0;s<i.length;s++)e+="="+("0"+i.charCodeAt(s).toString(16)).slice(-2).toUpperCase()}else e+="="+("0"+n.toString(16)).slice(-2).toUpperCase()}return e},BEe=be(287).Buffer,$Ee=t=>BEe.from(t).toString("hex"),LEe=be(287).Buffer,UEe=t=>{const e=LEe.from(t).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,i="",s=0,a=0;for(let o=0;o<e.length;o++)for(s=s<<8|e.charCodeAt(o),a+=8;a>=5;)i+=r.charAt(s>>>a-5&31),a-=5;a>0&&(i+=r.charAt(s<<5-a&31),n=(8-8*e.length%5)%5);for(let o=0;o<n;o++)i+="=";return i},VEe=be(287).Buffer,zEe=t=>VEe.from(t).toString("base64"),WEe=be(287).Buffer,JEe=t=>WEe.from(t).toString("base64url");const Dc=new class extends Wp{#e={"7bit":jEe,"8bit":MEe,binary:FEe,"quoted-printable":qEe,base16:$Ee,base32:UEe,base64:zEe,base64url:JEe};data={...this.#e};get defaults(){return{...this.#e}}},BU=(t,e)=>typeof e=="function"?Dc.register(t,e):e===null?Dc.unregister(t):Dc.get(t);BU.getDefaults=()=>Dc.defaults;var $U=BU,HEe={"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"},KEe={"image/*":()=>zp(25).toString("binary")},GEe={"audio/*":()=>zp(25).toString("binary")},YEe={"video/*":()=>zp(25).toString("binary")},XEe={"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/*":()=>zp(25).toString("binary")};const ja=new class extends Wp{#e={...HEe,...KEe,...GEe,...YEe,...XEe};data={...this.#e};get defaults(){return{...this.#e}}},LU=(t,e)=>{if(typeof e=="function")return ja.register(t,e);if(e===null)return ja.unregister(t);const r=t.split(";").at(0),n=`${r.split("/").at(0)}/*`;return ja.get(t)||ja.get(r)||ja.get(n)};LU.getDefaults=()=>ja.defaults;var UU=LU;const ZS=(t,e={})=>{const{maxLength:r,minLength:n}=e;let i=t;if(Number.isInteger(r)&&r>0&&(i=i.slice(0,r)),Number.isInteger(n)&&n>0){let s=0;for(;i.length<n;)i+=i[s++%i.length]}return i};var ZEe=(t,{sample:e}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:i}=t,{pattern:s,format:a}=t,o=$U(r)||h4.default;let u;return u=typeof s=="string"?ZS((l=>{try{const c=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),p=l.replace(c,"100"),h=new N8.default(p);return h.max=100,h.gen()}catch{return"string"}})(s),t):typeof a=="string"?(l=>{const{format:c}=l,p=Jp(c);return typeof p=="function"?p(l):"string"})(t):zi(i)&&typeof n=="string"&&e!==void 0?Array.isArray(e)||typeof e=="object"?JSON.stringify(e):ZS(String(e),t):typeof n=="string"?(l=>{const{contentMediaType:c}=l,p=UU(c);return typeof p=="function"?p(l):"string"})(t):ZS("string",t),o(u)};const VU=(t,e={})=>{const{minimum:r,maximum:n,exclusiveMinimum:i,exclusiveMaximum:s}=e,{multipleOf:a}=e,o=Number.isInteger(t)?1:Number.EPSILON;let u=typeof r=="number"?r:null,l=typeof n=="number"?n:null,c=t;if(typeof i=="number"&&(u=u!==null?Math.max(u,i+o):i+o),typeof s=="number"&&(l=l!==null?Math.min(l,s-o):s-o),c=u>l&&t||u||l||c,typeof a=="number"&&a>0){const p=c%a;c=p===0?c:c+a-p}return c};var QEe=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:i}=n,s=Jp(i);return typeof s=="function"?s(n):0})(t):0,VU(r,t)},eSe=t=>{const{format:e}=t;let r;return r=typeof e=="string"?(n=>{const{format:i}=n,s=Jp(i);if(typeof s=="function")return s(n);switch(i){case"int32":return DU();case"int64":return FU()}return 0})(t):0,VU(r,t)},tSe=t=>typeof t.default!="boolean"||t.default,vc=new Proxy({array:uEe,object:lEe,string:ZEe,number:QEe,integer:eSe,boolean:tSe,null:()=>null},{get:(t,e)=>typeof e=="string"&&Object.hasOwn(t,e)?t[e]:()=>`Unknown Type: ${e}`});const G3=["array","object","number","integer","string","boolean","null"],Ho=t=>{if(!Yn(t))return!1;const{examples:e,example:r,default:n}=t;return!!(Array.isArray(e)&&e.length>=1)||n!==void 0||r!==void 0},A_=t=>{if(!Yn(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},lf={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"]};lf.number=lf.integer;const QS="string",Y3=t=>t===void 0?null:t===null?"null":Array.isArray(t)?"array":Number.isInteger(t)?"integer":typeof t,Fc=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=Nc(e.length>0?e:t);if(G3.includes(r))return r}}return G3.includes(t)?t:null},O_=(t,e=new WeakSet)=>{if(!Yn(t)||e.has(t))return QS;e.add(t);let{type:r,const:n}=t;if(r=Fc(r),typeof r!="string"){const i=Object.keys(lf);e:for(let s=0;s<i.length;s+=1){const a=i[s],o=lf[a];for(let u=0;u<o.length;u+=1){const l=o[u];if(Object.hasOwn(t,l)){r=a;break e}}}}if(typeof r!="string"&&n!==void 0){const i=Y3(n);r=typeof i=="string"?i:r}if(typeof r!="string"){const i=l=>{if(Array.isArray(t[l])){const c=t[l].map((p=>O_(p,e)));return Fc(c)}return null},s=i("allOf"),a=i("anyOf"),o=i("oneOf"),u=t.not?O_(t.not,e):null;(s||a||o||u)&&(r=Fc([s,a,o,u].filter(Boolean)))}if(typeof r!="string"&&Ho(t)){const i=A_(t),s=Y3(i);r=typeof s=="string"?s:r}return e.delete(t),r||QS},X3=t=>O_(t),e1=t=>Ks(t)?(e=>e===!1?{not:{}}:{})(t):Yn(t)?t:{},Ko=(t,e,r={})=>{if(Ks(t)&&t===!0)return!0;if(Ks(t)&&t===!1)return!1;if(Ks(e)&&e===!0)return!0;if(Ks(e)&&e===!1)return!1;if(!zi(t))return e;if(!zi(e))return t;const n={...e,...t};if(e.type&&t.type&&Array.isArray(e.type)&&typeof e.type=="string"){const i=va(e.type).concat(t.type);n.type=Array.from(new Set(i))}if(Array.isArray(e.required)&&Array.isArray(t.required)&&(n.required=[...new Set([...t.required,...e.required])]),e.properties&&t.properties){const i=new Set([...Object.keys(e.properties),...Object.keys(t.properties)]);n.properties={};for(const s of i){const a=e.properties[s]||{},o=t.properties[s]||{};a.readOnly&&!r.includeReadOnly||a.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter((u=>u!==s)):n.properties[s]=Ko(o,a,r)}}return zi(e.items)&&zi(t.items)&&(n.items=Ko(t.items,e.items,r)),zi(e.contains)&&zi(t.contains)&&(n.contains=Ko(t.contains,e.contains,r)),zi(e.contentSchema)&&zi(t.contentSchema)&&(n.contentSchema=Ko(t.contentSchema,e.contentSchema,r)),n};var Na=Ko;const xr=(t,e={},r=void 0,n=!1)=>{if(t==null&&r===void 0)return;typeof t?.toJS=="function"&&(t=t.toJS()),t=e1(t);let i=r!==void 0||Ho(t);const s=!i&&Array.isArray(t.oneOf)&&t.oneOf.length>0,a=!i&&Array.isArray(t.anyOf)&&t.anyOf.length>0;if(!i&&(s||a)){const R=e1(Nc(s?t.oneOf:t.anyOf));!(t=Na(t,R,e)).xml&&R.xml&&(t.xml=R.xml),Ho(t)&&Ho(R)&&(i=!0)}const o={};let{xml:u,properties:l,additionalProperties:c,items:p,contains:h}=t||{},d=X3(t),{includeReadOnly:g,includeWriteOnly:y}=e;u=u||{};let v,{name:E,prefix:b,namespace:_}=u,w={};Object.hasOwn(t,"type")||(t.type=d),n&&(E=E||"notagname",v=(b?`${b}:`:"")+E,_)&&(o[b?`xmlns:${b}`:"xmlns"]=_),n&&(w[v]=[]);const S=Hs(l);let A,I=0;const T=()=>Number.isInteger(t.maxProperties)&&t.maxProperties>0&&I>=t.maxProperties,k=R=>!(Number.isInteger(t.maxProperties)&&t.maxProperties>0)||!T()&&(!($=>!Array.isArray(t.required)||t.required.length===0||!t.required.includes($))(R)||t.maxProperties-I-(()=>{if(!Array.isArray(t.required)||t.required.length===0)return 0;let $=0;return n?t.required.forEach((M=>$+=w[M]===void 0?0:1)):t.required.forEach((M=>{$+=w[v]?.find((K=>K[M]!==void 0))===void 0?0:1})),t.required.length-$})()>0);if(A=n?(R,$=void 0)=>{if(t&&S[R]){if(S[R].xml=S[R].xml||{},S[R].xml.attribute){const K=Array.isArray(S[R].enum)?Nc(S[R].enum):void 0;if(Ho(S[R]))o[S[R].xml.name||R]=A_(S[R]);else if(K!==void 0)o[S[R].xml.name||R]=K;else{const ee=e1(S[R]),G=X3(ee),Z=S[R].xml.name||R;if(G==="array"){const X=xr(S[R],e,$,!1);o[Z]=X.map((te=>(0,Zi.default)(te)?"UnknownTypeObject":Array.isArray(te)?"UnknownTypeArray":te)).join(" ")}else o[Z]=G==="object"?"UnknownTypeObject":vc[G](ee)}return}S[R].xml.name=S[R].xml.name||R}else S[R]||c===!1||(S[R]={xml:{name:R}});let M=xr(S[R],e,$,n);k(R)&&(I++,Array.isArray(M)?w[v]=w[v].concat(M):w[v].push(M))}:(R,$)=>{if(k(R)){if((0,Zi.default)(t.discriminator?.mapping)&&t.discriminator.propertyName===R&&typeof t.$$ref=="string"){for(const M in t.discriminator.mapping)if(t.$$ref.search(t.discriminator.mapping[M])!==-1){w[R]=M;break}}else w[R]=xr(S[R],e,$,n);I++}},i){let R;if(R=r!==void 0?r:A_(t),!n){if(typeof R=="number"&&d==="string")return`${R}`;if(typeof R!="string"||d==="string")return R;try{return JSON.parse(R)}catch{return R}}if(d==="array"){if(!Array.isArray(R)){if(typeof R=="string")return R;R=[R]}let $=[];return Yn(p)&&(p.xml=p.xml||u||{},p.xml.name=p.xml.name||u.name,$=R.map((M=>xr(p,e,M,n)))),Yn(h)&&(h.xml=h.xml||u||{},h.xml.name=h.xml.name||u.name,$=[xr(h,e,void 0,n),...$]),$=vc.array(t,{sample:$}),u.wrapped?(w[v]=$,(0,wi.default)(o)||w[v].push({_attr:o})):w=$,w}if(d==="object"){if(typeof R=="string")return R;for(const $ in R)Object.hasOwn(R,$)&&(S[$]?.readOnly&&!g||S[$]?.writeOnly&&!y||(S[$]?.xml?.attribute?o[S[$].xml.name||$]=R[$]:A($,R[$])));return(0,wi.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,wi.default)(o)?R:[{_attr:o},R],w}if(d==="array"){let R=[];if(Yn(h))if(n&&(h.xml=h.xml||t.xml||{},h.xml.name=h.xml.name||u.name),Array.isArray(h.anyOf)){const{anyOf:$,...M}=p;R.push(...h.anyOf.map((K=>xr(Na(K,M,e),e,void 0,n))))}else if(Array.isArray(h.oneOf)){const{oneOf:$,...M}=p;R.push(...h.oneOf.map((K=>xr(Na(K,M,e),e,void 0,n))))}else{if(!(!n||n&&u.wrapped))return xr(h,e,void 0,n);R.push(xr(h,e,void 0,n))}if(Yn(p))if(n&&(p.xml=p.xml||t.xml||{},p.xml.name=p.xml.name||u.name),Array.isArray(p.anyOf)){const{anyOf:$,...M}=p;R.push(...p.anyOf.map((K=>xr(Na(K,M,e),e,void 0,n))))}else if(Array.isArray(p.oneOf)){const{oneOf:$,...M}=p;R.push(...p.oneOf.map((K=>xr(Na(K,M,e),e,void 0,n))))}else{if(!(!n||n&&u.wrapped))return xr(p,e,void 0,n);R.push(xr(p,e,void 0,n))}return R=vc.array(t,{sample:R}),n&&u.wrapped?(w[v]=R,(0,wi.default)(o)||w[v].push({_attr:o}),w):R}if(d==="object"){for(let R in S)Object.hasOwn(S,R)&&(S[R]?.deprecated||S[R]?.readOnly&&!g||S[R]?.writeOnly&&!y||A(R));if(n&&o&&w[v].push({_attr:o}),T())return w;if(Ks(c)&&c)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},I++;else if(Yn(c)){const R=c,$=xr(R,e,void 0,n);if(n&&typeof R?.xml?.name=="string"&&R?.xml?.name!=="notagname")w[v].push($);else{const M=R?.["x-additionalPropertiesName"]||"additionalProp",K=Number.isInteger(t.minProperties)&&t.minProperties>0&&I<t.minProperties?t.minProperties-I:3;for(let ee=1;ee<=K;ee++){if(T())return w;if(n){const G={};G[M+ee]=$.notagname,w[v].push(G)}else w[M+ee]=$;I++}}}return w}let D;if(t.const!==void 0)D=t.const;else if(t&&Array.isArray(t.enum))D=Nc(va(t.enum));else{const R=Yn(t.contentSchema)?xr(t.contentSchema,e,void 0,n):void 0;D=vc[d](t,{sample:R})}return n?(w[v]=(0,wi.default)(o)?D:[{_attr:o},D],w):D},zU=(t,e,r)=>{const n=xr(t,e,r,!0);if(n)return typeof n=="string"?n:j8()(n,{declaration:!0,indent:" "})},WU=(t,e,r)=>xr(t,e,r,!1),JU=(t,e,r)=>[t,JSON.stringify(e),JSON.stringify(r)],rSe=jl(zU,JU),nSe=jl(WU,JU),Z3=new class extends Wp{#e={};data={...this.#e};get defaults(){return{...this.#e}}};var iSe=(t,e)=>(e!==void 0&&Z3.register(t,e),Z3.get(t));const sSe=[{when:/json/,shouldStringifyTypes:["string"]}],aSe=["object"];var oSe=t=>(e,r,n,i)=>{const{fn:s}=t(),a=s.jsonSchema202012.memoizedSampleFromSchema(e,r,i),o=typeof a,u=sSe.reduce(((l,c)=>c.when.test(n)?[...l,...c.shouldStringifyTypes]:l),aSe);return(0,a8.default)(u,(l=>l===o))?JSON.stringify(a,null,2):a},uSe=t=>(e,r,n,i)=>{const{fn:s}=t(),a=s.jsonSchema202012.getJsonSampleSchema(e,r,n,i);let o;try{o=Ki.default.dump(Ki.default.load(a),{lineWidth:-1},{schema:Ki.JSON_SCHEMA}),o[o.length-1]===`
286
+ `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},lSe=t=>(e,r,n)=>{const{fn:i}=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"?>
287
+ <!-- XML example cannot be generated; root element name is undefined -->`;if(e.$$ref){let s=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=s[1]}}return i.jsonSchema202012.memoizedCreateXMLExample(e,r,n)},cSe=t=>(e,r="",n={},i=void 0)=>{const{fn:s}=t();return typeof e?.toJS=="function"&&(e=e.toJS()),typeof i?.toJS=="function"&&(i=i.toJS()),/xml/.test(r)?s.jsonSchema202012.getXmlSampleSchema(e,n,i):/(yaml|yml)/.test(r)?s.jsonSchema202012.getYamlSampleSchema(e,n,r,i):s.jsonSchema202012.getJsonSampleSchema(e,n,r,i)},HU=({getSystem:t})=>{const e=oSe(t),r=uSe(t),n=lSe(t),i=cSe(t);return{fn:{jsonSchema202012:{sampleFromSchema:WU,sampleFromSchemaGeneric:xr,sampleOptionAPI:iSe,sampleEncoderAPI:$U,sampleFormatAPI:Jp,sampleMediaTypeAPI:UU,createXMLExample:zU,memoizedSampleFromSchema:nSe,memoizedCreateXMLExample:rSe,getJsonSampleSchema:e,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Na,foldType:Fc}}}};function KU(){return[R4,S_,MU,HU,Qbe]}var fSe=t=>()=>({fn:t.fn,components:t.components}),pSe=t=>{const e=hu()({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}},dSe=()=>t=>{const e=t.queryConfigEnabled?(()=>{const r=new URLSearchParams(Gt.location.search);return Object.fromEntries(r)})():{};return Object.entries(e).reduce(((r,[n,i])=>(n==="config"?r.configUrl=i:n==="urls.primaryName"?r[n]=i:r=(0,a4.default)(r,n,i),r)),{})},hSe=({url:t,system:e})=>async r=>{if(!t)return{};if(typeof e.configsActions?.getConfigByUrl!="function")return{};const n=(()=>{const i={};return i.promise=new Promise(((s,a)=>{i.resolve=s,i.reject=a})),i})();return e.configsActions.getConfigByUrl({url:t,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},(i=>{n.resolve(i)})),n.promise},mSe=()=>()=>{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},tr=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:[KU],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}),gSe=(function(t){var e={};return be.d(e,t),e})({default:function(){return Rpe}}),ySe=(function(t){var e={};return be.d(e,t),e})({default:function(){return Tpe}}),bc=(t,e=[])=>Array.isArray(t)?t:e,kn=(t,e=!1)=>t===!0||t==="true"||t===1||t==="1"||t!==!1&&t!=="false"&&t!==0&&t!=="0"&&e,vSe=t=>t===null||t==="null"?null:t,bSe=t=>{const e=String(t);return kn(t,e)},Q3=(t,e)=>typeof t=="function"?t:e,ESe=t=>Array.isArray(t)?t:null,Ec=t=>typeof t=="function"?t:null,t1=t=>t===null||t==="null"?null:String(t),r1=(t,e=-1)=>{const r=parseInt(t,10);return Number.isNaN(r)?e:r},Ta=(t,e={})=>(0,Zi.default)(t)?t:e,eF=t=>typeof t=="function"||typeof t=="string"?t:null,Pa=t=>String(t),SSe=(t,e)=>(0,Zi.default)(t)?t:t===!1||t==="false"||t===0||t==="0"?{activated:!1}:e,_Se=t=>t===void 0||t==="undefined"?void 0:String(t),GU={components:{typeCaster:Ta},configs:{typeCaster:Ta},configUrl:{typeCaster:t1},deepLinking:{typeCaster:kn,defaultValue:tr.deepLinking},defaultModelExpandDepth:{typeCaster:r1,defaultValue:tr.defaultModelExpandDepth},defaultModelRendering:{typeCaster:Pa},defaultModelsExpandDepth:{typeCaster:r1,defaultValue:tr.defaultModelsExpandDepth},displayOperationId:{typeCaster:kn,defaultValue:tr.displayOperationId},displayRequestDuration:{typeCaster:kn,defaultValue:tr.displayRequestDuration},docExpansion:{typeCaster:Pa},dom_id:{typeCaster:t1},domNode:{typeCaster:vSe},fileUploadMediaTypes:{typeCaster:bc,defaultValue:tr.fileUploadMediaTypes},filter:{typeCaster:bSe},fn:{typeCaster:Ta},initialState:{typeCaster:Ta},layout:{typeCaster:Pa},maxDisplayedTags:{typeCaster:r1,defaultValue:tr.maxDisplayedTags},modelPropertyMacro:{typeCaster:Ec},oauth2RedirectUrl:{typeCaster:_Se},onComplete:{typeCaster:Ec},operationsSorter:{typeCaster:eF},paramaterMacro:{typeCaster:Ec},persistAuthorization:{typeCaster:kn,defaultValue:tr.persistAuthorization},plugins:{typeCaster:bc,defaultValue:tr.plugins},presets:{typeCaster:bc,defaultValue:tr.presets},requestInterceptor:{typeCaster:Q3,defaultValue:tr.requestInterceptor},requestSnippets:{typeCaster:Ta,defaultValue:tr.requestSnippets},requestSnippetsEnabled:{typeCaster:kn,defaultValue:tr.requestSnippetsEnabled},responseInterceptor:{typeCaster:Q3,defaultValue:tr.responseInterceptor},showCommonExtensions:{typeCaster:kn,defaultValue:tr.showCommonExtensions},showExtensions:{typeCaster:kn,defaultValue:tr.showExtensions},showMutatedRequest:{typeCaster:kn,defaultValue:tr.showMutatedRequest},spec:{typeCaster:Ta,defaultValue:tr.spec},supportedSubmitMethods:{typeCaster:bc,defaultValue:tr.supportedSubmitMethods},syntaxHighlight:{typeCaster:SSe,defaultValue:tr.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:kn,defaultValue:tr.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:Pa},tagsSorter:{typeCaster:eF},tryItOutEnabled:{typeCaster:kn,defaultValue:tr.tryItOutEnabled},url:{typeCaster:Pa},urls:{typeCaster:ESe},"urls.primaryName":{typeCaster:Pa},validatorUrl:{typeCaster:t1},withCredentials:{typeCaster:kn,defaultValue:tr.withCredentials},uncaughtExceptionHandler:{typeCaster:Ec}},YU=t=>Object.entries(GU).reduce(((e,[r,{typeCaster:n,defaultValue:i}])=>{if((0,gSe.default)(e,r)){const s=n((0,p_.default)(e,r),i);e=(0,ySe.default)(r,s,e)}return e}),{...t}),wSe=(t,...e)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const i=[];for(const a of e){const o={...a};Object.hasOwn(o,"domNode")&&(r=o.domNode,delete o.domNode),Object.hasOwn(o,"urls.primaryName")?(n=o["urls.primaryName"],delete o["urls.primaryName"]):Array.isArray(o.urls)&&Object.hasOwn(o.urls,"primaryName")&&(n=o.urls.primaryName,delete o.urls.primaryName),i.push(o)}const s=hu()(t,...i);return r!==Symbol.for("domNode")&&(s.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(s.urls)&&(s.urls.primaryName=n),YU(s)};function _s(t){const e=dSe()(t),r=mSe()(),n=_s.config.merge({},_s.config.defaults,r,t,e),i=pSe(n),s=fSe(n),a=new f8(i);a.register([n.plugins,s]);const o=a.getSystem(),u=p=>{a.setConfigs(p),o.configsActions.loaded()},l=p=>{!e.url&&typeof p.spec=="object"&&Object.keys(p.spec).length>0?(o.specActions.updateUrl(""),o.specActions.updateLoadingStatus("success"),o.specActions.updateSpec(JSON.stringify(p.spec))):typeof o.specActions.download=="function"&&p.url&&!p.urls&&(o.specActions.updateUrl(p.url),o.specActions.download(p.url))},c=p=>{if(p.domNode)o.render(p.domNode,"App");else if(p.dom_id){const h=document.querySelector(p.dom_id);o.render(h,"App")}else p.dom_id===null||p.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:p}=n,h=await hSe({url:p,system:o})(n),d=_s.config.merge({},n,h,e);u(d),h!==null&&l(d),c(d)})(),o):(u(n),l(n),c(n),o)}_s.System=f8,_s.config={defaults:tr,merge:wSe,typeCast:YU,typeCastMappings:GU},_s.presets={base:R4,apis:KU},_s.plugins={Auth:d8,Configs:h8,DeepLining:m8,Err:y8,Filter:v8,Icons:b8,JSONSchema5:k8,JSONSchema5Samples:B8,JSONSchema202012:MU,JSONSchema202012Samples:HU,Layout:S8,Logs:_8,OpenAPI30:S_,OpenAPI31:S_,OnComplete:w8,RequestSnippets:O8,Spec:u4,SwaggerClient:c4,Util:f4,View:m4,ViewLegacy:g4,DownloadUrl:y4,SyntaxHighlighting:b4,Versions:E4,SafeRender:w4};var xSe=_s,xs=i8.A;const{config:Vt}=xs,tF=t=>{const e=mr.useRef();return mr.useEffect(()=>{e.current=t},[t]),e.current},ql=({spec:t=Vt.defaults.spec,url:e=Vt.defaults.url,layout:r=Vt.defaults.layout,requestInterceptor:n=Vt.defaults.requestInterceptor,responseInterceptor:i=Vt.defaults.responseInterceptor,supportedSubmitMethods:s=Vt.defaults.supportedSubmitMethods,queryConfigEnabled:a=Vt.defaults.queryConfigEnabled,plugins:o=Vt.defaults.plugins,displayOperationId:u=Vt.defaults.displayOperationId,showMutatedRequest:l=Vt.defaults.showMutatedRequest,docExpansion:c=Vt.defaults.docExpansion,defaultModelExpandDepth:p=Vt.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:h=Vt.defaults.defaultModelsExpandDepth,defaultModelRendering:d=Vt.defaults.defaultModelRendering,presets:g=Vt.defaults.presets,deepLinking:y=Vt.defaults.deepLinking,showExtensions:v=Vt.defaults.showExtensions,showCommonExtensions:E=Vt.defaults.showCommonExtensions,filter:b=Vt.defaults.filter,requestSnippetsEnabled:_=Vt.defaults.requestSnippetsEnabled,requestSnippets:w=Vt.defaults.requestSnippets,tryItOutEnabled:S=Vt.defaults.tryItOutEnabled,displayRequestDuration:A=Vt.defaults.displayRequestDuration,withCredentials:I=Vt.defaults.withCredentials,persistAuthorization:T=Vt.defaults.persistAuthorization,oauth2RedirectUrl:k=Vt.defaults.oauth2RedirectUrl,onComplete:D=null,initialState:R=Vt.defaults.initialState,uncaughtExceptionHandler:$=Vt.defaults.uncaughtExceptionHandler})=>{const[M,K]=mr.useState(null),ee=M?.getComponent("App","root"),G=tF(t),Z=tF(e);return mr.useEffect(()=>{const X=xs({plugins:o,spec:t,url:e,layout:r,defaultModelsExpandDepth:h,defaultModelRendering:d,presets:[xs.presets.apis,...g],requestInterceptor:n,responseInterceptor:i,onComplete:()=>{typeof D=="function"&&D(X)},docExpansion:c,supportedSubmitMethods:s,queryConfigEnabled:a,defaultModelExpandDepth:p,displayOperationId:u,tryItOutEnabled:S,displayRequestDuration:A,requestSnippetsEnabled:_,requestSnippets:w,showMutatedRequest:l,deepLinking:y,showExtensions:v,showCommonExtensions:E,filter:b,persistAuthorization:T,withCredentials:I,initialState:R,uncaughtExceptionHandler:$,...typeof k=="string"?{oauth2RedirectUrl:k}:{}});K(X)},[]),mr.useEffect(()=>{if(M){const X=M.specSelectors.url();(e!==X||e!==Z)&&(M.specActions.updateSpec(""),e&&(M.specActions.updateUrl(e),M.specActions.download(e)))}},[M,e]),mr.useEffect(()=>{if(M){const X=M.specSelectors.specStr();if(t&&t!==xs.config.defaults.spec&&(t!==X||t!==G)){const te=typeof t=="object"?JSON.stringify(t):t;M.specActions.updateSpec(te)}}},[M,t]),ee?Xn.createElement(ee,null):null};ql.System=xs.System;ql.presets=xs.presets;ql.plugins=xs.plugins;ql.config=xs.config;function ASe(){const{instanceId:t,clusterId:e}=_9({strict:!1}),r=rF(),{data:n,isLoading:i}=id(w9(r)),{data:s,isLoading:a}=id(x9(r)),{data:o,isLoading:u,error:l}=id($9(r)),c=n?.http;let p="";const h=c?.cors===!1,d=c?.corsAccessList?.length!==void 0&&!c.corsAccessList.includes("*")&&!c.corsAccessList.includes("null")&&!c.corsAccessList.includes(window.location.origin);h?p=`This ${e&&!t?"cluster":"instance"} has CORS disabled currently, so you won't be able to execute API requests from the browser.`:d&&(p=`This ${e&&!t?"cluster":"instance"} has CORS enabled, but ${window.location.origin} is not allowed, so you won't be able to execute API requests from the browser.`);const{onConfigUpdate:g,isPending:y}=U9(),v=mr.useCallback(()=>{g({...h?{http_cors:!0}:{},...d?{http_corsAccessList:[...c?.corsAccessList??[],window.location.origin]}:{}})},[h,c?.corsAccessList,d,g]);if(i||a||u)return bi.jsx(A9,{centered:!0,text:"Looking up your instance configuration, one moment."});if(l){let E;return s?.version&&!O9("4.7.0-beta.7",s?.version)?E=`API Docs are only available starting in version '4.7.0-beta.7' of Harper, please update your version ${s.version}!`:E="We weren't able to look up your docs. Please check the Network tab of your developer tools to see why the docs were not accessible to Studio.",bi.jsx(q2,{title:"API Docs Unavailable",error:{message:E},showReturnToHome:!1})}return bi.jsxs(bi.Fragment,{children:[p&&bi.jsx(q2,{title:"CORS Disabled: HTTP API Not Accessible",className:"mt-0 mx-4 m-0 border-yellow text-yellow",error:{message:p},showReturnToHome:!1,children:bi.jsxs(C9,{disabled:y,variant:"warning",className:"rounded-full",onClick:v,children:[bi.jsx(R9,{}),y?"Enabling CORS...":`Enable CORS for ${window.location.origin}`]})}),bi.jsx(ql,{spec:o,persistAuthorization:!0,requestSnippetsEnabled:!0,requestSnippets:B9,plugins:q9,tryItOutEnabled:!0})]})}const Nwe=I9("/apis")({component:ASe});export{Nwe as route};