@layers-app/editor 0.0.14 → 0.0.15-swagger

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.
@@ -0,0 +1,310 @@
1
+ "use strict";var Nz=Object.defineProperty;var KR=e=>{throw TypeError(e)};var Mz=(e,t,r)=>t in e?Nz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var z=(e,t,r)=>Mz(e,typeof t!="symbol"?t+"":t,r),HR=(e,t,r)=>t.has(e)||KR("Cannot "+r);var xi=(e,t,r)=>(HR(e,t,"read from private field"),r?r.call(e):t.get(e)),Co=(e,t,r)=>t.has(e)?KR("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Jm=(e,t,r,n)=>(HR(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Nr=require("react/jsx-runtime"),jt=require("react"),Dz=require("react-i18next"),Ue=require("./layers.D1A3jNDb.js"),Vn=require("@mantine/core"),qz=require("react-dom");function pL(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function hL(e,t){for(var r=0;r<t.length;r++){const n=t[r];if(typeof n!="string"&&!Array.isArray(n)){for(const i in n)if(i!=="default"&&!(i in e)){const s=Object.getOwnPropertyDescriptor(n,i);s&&Object.defineProperty(e,i,s.get?s:{enumerable:!0,get:()=>n[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const ot=pL(jt),$z=pL(qz);var qf={exports:{}},$f={exports:{}},Mt={};/** @license React v16.13.1
2
+ * react-is.production.min.js
3
+ *
4
+ * Copyright (c) Facebook, Inc. and its affiliates.
5
+ *
6
+ * This source code is licensed under the MIT license found in the
7
+ * LICENSE file in the root directory of this source tree.
8
+ */var GR;function Fz(){if(GR)return Mt;GR=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(_){if(typeof _=="object"&&_!==null){var A=_.$$typeof;switch(A){case t:switch(_=_.type,_){case u:case c:case n:case s:case i:case f:return _;default:switch(_=_&&_.$$typeof,_){case o:case l:case g:case p:case a:return _;default:return A}}case r:return A}}}function x(_){return S(_)===c}return Mt.AsyncMode=u,Mt.ConcurrentMode=c,Mt.ContextConsumer=o,Mt.ContextProvider=a,Mt.Element=t,Mt.ForwardRef=l,Mt.Fragment=n,Mt.Lazy=g,Mt.Memo=p,Mt.Portal=r,Mt.Profiler=s,Mt.StrictMode=i,Mt.Suspense=f,Mt.isAsyncMode=function(_){return x(_)||S(_)===u},Mt.isConcurrentMode=x,Mt.isContextConsumer=function(_){return S(_)===o},Mt.isContextProvider=function(_){return S(_)===a},Mt.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Mt.isForwardRef=function(_){return S(_)===l},Mt.isFragment=function(_){return S(_)===n},Mt.isLazy=function(_){return S(_)===g},Mt.isMemo=function(_){return S(_)===p},Mt.isPortal=function(_){return S(_)===r},Mt.isProfiler=function(_){return S(_)===s},Mt.isStrictMode=function(_){return S(_)===i},Mt.isSuspense=function(_){return S(_)===f},Mt.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===c||_===s||_===i||_===f||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===g||_.$$typeof===p||_.$$typeof===a||_.$$typeof===o||_.$$typeof===l||_.$$typeof===v||_.$$typeof===E||_.$$typeof===b||_.$$typeof===y)},Mt.typeOf=S,Mt}var Dt={};/** @license React v16.13.1
9
+ * react-is.development.js
10
+ *
11
+ * Copyright (c) Facebook, Inc. and its affiliates.
12
+ *
13
+ * This source code is licensed under the MIT license found in the
14
+ * LICENSE file in the root directory of this source tree.
15
+ */var YR;function Lz(){return YR||(YR=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,o=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,c=e?Symbol.for("react.concurrent_mode"):60111,l=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,g=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,E=e?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(ce){return typeof ce=="string"||typeof ce=="function"||ce===n||ce===c||ce===s||ce===i||ce===f||ce===h||typeof ce=="object"&&ce!==null&&(ce.$$typeof===g||ce.$$typeof===p||ce.$$typeof===a||ce.$$typeof===o||ce.$$typeof===l||ce.$$typeof===v||ce.$$typeof===E||ce.$$typeof===b||ce.$$typeof===y)}function x(ce){if(typeof ce=="object"&&ce!==null){var Re=ce.$$typeof;switch(Re){case t:var ze=ce.type;switch(ze){case u:case c:case n:case s:case i:case f:return ze;default:var he=ze&&ze.$$typeof;switch(he){case o:case l:case g:case p:case a:return he;default:return Re}}case r:return Re}}}var _=u,A=c,C=o,T=a,O=t,M=l,k=n,D=g,P=p,H=r,X=s,V=i,G=f,Q=!1;function Z(ce){return Q||(Q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(ce)||x(ce)===u}function B(ce){return x(ce)===c}function J(ce){return x(ce)===o}function ee(ce){return x(ce)===a}function ne(ce){return typeof ce=="object"&&ce!==null&&ce.$$typeof===t}function ae(ce){return x(ce)===l}function Y(ce){return x(ce)===n}function F(ce){return x(ce)===g}function L(ce){return x(ce)===p}function ue(ce){return x(ce)===r}function de(ce){return x(ce)===s}function Ae(ce){return x(ce)===i}function Ne(ce){return x(ce)===f}Dt.AsyncMode=_,Dt.ConcurrentMode=A,Dt.ContextConsumer=C,Dt.ContextProvider=T,Dt.Element=O,Dt.ForwardRef=M,Dt.Fragment=k,Dt.Lazy=D,Dt.Memo=P,Dt.Portal=H,Dt.Profiler=X,Dt.StrictMode=V,Dt.Suspense=G,Dt.isAsyncMode=Z,Dt.isConcurrentMode=B,Dt.isContextConsumer=J,Dt.isContextProvider=ee,Dt.isElement=ne,Dt.isForwardRef=ae,Dt.isFragment=Y,Dt.isLazy=F,Dt.isMemo=L,Dt.isPortal=ue,Dt.isProfiler=de,Dt.isStrictMode=Ae,Dt.isSuspense=Ne,Dt.isValidElementType=S,Dt.typeOf=x}()),Dt}var XR;function mL(){return XR||(XR=1,process.env.NODE_ENV==="production"?$f.exports=Fz():$f.exports=Lz()),$f.exports}/*
16
+ object-assign
17
+ (c) Sindre Sorhus
18
+ @license MIT
19
+ */var Km,ZR;function Bz(){if(ZR)return Km;ZR=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var a={},o=0;o<10;o++)a["_"+String.fromCharCode(o)]=o;var u=Object.getOwnPropertyNames(a).map(function(l){return a[l]});if(u.join("")!=="0123456789")return!1;var c={};return"abcdefghijklmnopqrst".split("").forEach(function(l){c[l]=l}),Object.keys(Object.assign({},c)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Km=i()?Object.assign:function(s,a){for(var o,u=n(s),c,l=1;l<arguments.length;l++){o=Object(arguments[l]);for(var f in o)t.call(o,f)&&(u[f]=o[f]);if(e){c=e(o);for(var h=0;h<c.length;h++)r.call(o,c[h])&&(u[c[h]]=o[c[h]])}}return u},Km}var Hm,QR;function jA(){if(QR)return Hm;QR=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Hm=e,Hm}var Gm,eT;function gL(){return eT||(eT=1,Gm=Function.call.bind(Object.prototype.hasOwnProperty)),Gm}var Ym,tT;function Uz(){if(tT)return Ym;tT=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=jA(),r={},n=gL();e=function(s){var a="Warning: "+s;typeof console<"u"&&console.error(a);try{throw new Error(a)}catch{}}}function i(s,a,o,u,c){if(process.env.NODE_ENV!=="production"){for(var l in s)if(n(s,l)){var f;try{if(typeof s[l]!="function"){var h=Error((u||"React class")+": "+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=s[l](a,l,u,o,null,t)}catch(g){f=g}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var p=c?c():"";e("Failed "+o+" type: "+f.message+(p??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ym=i,Ym}var Xm,rT;function Vz(){if(rT)return Xm;rT=1;var e=mL(),t=Bz(),r=jA(),n=gL(),i=Uz(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(o){var u="Warning: "+o;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function a(){return null}return Xm=function(o,u){var c=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(B){var J=B&&(c&&B[c]||B[l]);if(typeof J=="function")return J}var h="<<anonymous>>",p={array:E("array"),bigint:E("bigint"),bool:E("boolean"),func:E("function"),number:E("number"),object:E("object"),string:E("string"),symbol:E("symbol"),any:b(),arrayOf:S,element:x(),elementType:_(),instanceOf:A,node:M(),objectOf:T,oneOf:C,oneOfType:O,shape:D,exact:P};function g(B,J){return B===J?B!==0||1/B===1/J:B!==B&&J!==J}function y(B,J){this.message=B,this.data=J&&typeof J=="object"?J:{},this.stack=""}y.prototype=Error.prototype;function v(B){if(process.env.NODE_ENV!=="production")var J={},ee=0;function ne(Y,F,L,ue,de,Ae,Ne){if(ue=ue||h,Ae=Ae||L,Ne!==r){if(u){var ce=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw ce.name="Invariant Violation",ce}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Re=ue+":"+L;!J[Re]&&ee<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Ae+"` prop on `"+ue+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),J[Re]=!0,ee++)}}return F[L]==null?Y?F[L]===null?new y("The "+de+" `"+Ae+"` is marked as required "+("in `"+ue+"`, but its value is `null`.")):new y("The "+de+" `"+Ae+"` is marked as required in "+("`"+ue+"`, but its value is `undefined`.")):null:B(F,L,ue,de,Ae)}var ae=ne.bind(null,!1);return ae.isRequired=ne.bind(null,!0),ae}function E(B){function J(ee,ne,ae,Y,F,L){var ue=ee[ne],de=V(ue);if(de!==B){var Ae=G(ue);return new y("Invalid "+Y+" `"+F+"` of type "+("`"+Ae+"` supplied to `"+ae+"`, expected ")+("`"+B+"`."),{expectedType:B})}return null}return v(J)}function b(){return v(a)}function S(B){function J(ee,ne,ae,Y,F){if(typeof B!="function")return new y("Property `"+F+"` of component `"+ae+"` has invalid PropType notation inside arrayOf.");var L=ee[ne];if(!Array.isArray(L)){var ue=V(L);return new y("Invalid "+Y+" `"+F+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected an array."))}for(var de=0;de<L.length;de++){var Ae=B(L,de,ae,Y,F+"["+de+"]",r);if(Ae instanceof Error)return Ae}return null}return v(J)}function x(){function B(J,ee,ne,ae,Y){var F=J[ee];if(!o(F)){var L=V(F);return new y("Invalid "+ae+" `"+Y+"` of type "+("`"+L+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return v(B)}function _(){function B(J,ee,ne,ae,Y){var F=J[ee];if(!e.isValidElementType(F)){var L=V(F);return new y("Invalid "+ae+" `"+Y+"` of type "+("`"+L+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return v(B)}function A(B){function J(ee,ne,ae,Y,F){if(!(ee[ne]instanceof B)){var L=B.name||h,ue=Z(ee[ne]);return new y("Invalid "+Y+" `"+F+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected ")+("instance of `"+L+"`."))}return null}return v(J)}function C(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),a;function J(ee,ne,ae,Y,F){for(var L=ee[ne],ue=0;ue<B.length;ue++)if(g(L,B[ue]))return null;var de=JSON.stringify(B,function(Ne,ce){var Re=G(ce);return Re==="symbol"?String(ce):ce});return new y("Invalid "+Y+" `"+F+"` of value `"+String(L)+"` "+("supplied to `"+ae+"`, expected one of "+de+"."))}return v(J)}function T(B){function J(ee,ne,ae,Y,F){if(typeof B!="function")return new y("Property `"+F+"` of component `"+ae+"` has invalid PropType notation inside objectOf.");var L=ee[ne],ue=V(L);if(ue!=="object")return new y("Invalid "+Y+" `"+F+"` of type "+("`"+ue+"` supplied to `"+ae+"`, expected an object."));for(var de in L)if(n(L,de)){var Ae=B(L,de,ae,Y,F+"."+de,r);if(Ae instanceof Error)return Ae}return null}return v(J)}function O(B){if(!Array.isArray(B))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var J=0;J<B.length;J++){var ee=B[J];if(typeof ee!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Q(ee)+" at index "+J+"."),a}function ne(ae,Y,F,L,ue){for(var de=[],Ae=0;Ae<B.length;Ae++){var Ne=B[Ae],ce=Ne(ae,Y,F,L,ue,r);if(ce==null)return null;ce.data&&n(ce.data,"expectedType")&&de.push(ce.data.expectedType)}var Re=de.length>0?", expected one of type ["+de.join(", ")+"]":"";return new y("Invalid "+L+" `"+ue+"` supplied to "+("`"+F+"`"+Re+"."))}return v(ne)}function M(){function B(J,ee,ne,ae,Y){return H(J[ee])?null:new y("Invalid "+ae+" `"+Y+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return v(B)}function k(B,J,ee,ne,ae){return new y((B||"React class")+": "+J+" type `"+ee+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ae+"`.")}function D(B){function J(ee,ne,ae,Y,F){var L=ee[ne],ue=V(L);if(ue!=="object")return new y("Invalid "+Y+" `"+F+"` of type `"+ue+"` "+("supplied to `"+ae+"`, expected `object`."));for(var de in B){var Ae=B[de];if(typeof Ae!="function")return k(ae,Y,F,de,G(Ae));var Ne=Ae(L,de,ae,Y,F+"."+de,r);if(Ne)return Ne}return null}return v(J)}function P(B){function J(ee,ne,ae,Y,F){var L=ee[ne],ue=V(L);if(ue!=="object")return new y("Invalid "+Y+" `"+F+"` of type `"+ue+"` "+("supplied to `"+ae+"`, expected `object`."));var de=t({},ee[ne],B);for(var Ae in de){var Ne=B[Ae];if(n(B,Ae)&&typeof Ne!="function")return k(ae,Y,F,Ae,G(Ne));if(!Ne)return new y("Invalid "+Y+" `"+F+"` key `"+Ae+"` supplied to `"+ae+"`.\nBad object: "+JSON.stringify(ee[ne],null," ")+`
20
+ Valid keys: `+JSON.stringify(Object.keys(B),null," "));var ce=Ne(L,Ae,ae,Y,F+"."+Ae,r);if(ce)return ce}return null}return v(J)}function H(B){switch(typeof B){case"number":case"string":case"undefined":return!0;case"boolean":return!B;case"object":if(Array.isArray(B))return B.every(H);if(B===null||o(B))return!0;var J=f(B);if(J){var ee=J.call(B),ne;if(J!==B.entries){for(;!(ne=ee.next()).done;)if(!H(ne.value))return!1}else for(;!(ne=ee.next()).done;){var ae=ne.value;if(ae&&!H(ae[1]))return!1}}else return!1;return!0;default:return!1}}function X(B,J){return B==="symbol"?!0:J?J["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&J instanceof Symbol:!1}function V(B){var J=typeof B;return Array.isArray(B)?"array":B instanceof RegExp?"object":X(J,B)?"symbol":J}function G(B){if(typeof B>"u"||B===null)return""+B;var J=V(B);if(J==="object"){if(B instanceof Date)return"date";if(B instanceof RegExp)return"regexp"}return J}function Q(B){var J=G(B);switch(J){case"array":case"object":return"an "+J;case"boolean":case"date":case"regexp":return"a "+J;default:return J}}function Z(B){return!B.constructor||!B.constructor.name?h:B.constructor.name}return p.checkPropTypes=i,p.resetWarningCache=i.resetWarningCache,p.PropTypes=p,p},Xm}var Zm,nT;function zz(){if(nT)return Zm;nT=1;var e=jA();function t(){}function r(){}return r.resetWarningCache=t,Zm=function(){function n(a,o,u,c,l,f){if(f!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Zm}var iT;function Wz(){if(iT)return qf.exports;if(iT=1,process.env.NODE_ENV!=="production"){var e=mL(),t=!0;qf.exports=Vz()(e.isElement,t)}else qf.exports=zz()();return qf.exports}var Jz=Wz();const Kz=Ue.getDefaultExportFromCjs(Jz);var Ff={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var sT;function Hz(){return sT||(sT=1,Ff.read=function(e,t,r,n,i){var s,a,o=i*8-n-1,u=(1<<o)-1,c=u>>1,l=-7,f=r?i-1:0,h=r?-1:1,p=e[t+f];for(f+=h,s=p&(1<<-l)-1,p>>=-l,l+=o;l>0;s=s*256+e[t+f],f+=h,l-=8);for(a=s&(1<<-l)-1,s>>=-l,l+=n;l>0;a=a*256+e[t+f],f+=h,l-=8);if(s===0)s=1-c;else{if(s===u)return a?NaN:(p?-1:1)*(1/0);a=a+Math.pow(2,n),s=s-c}return(p?-1:1)*a*Math.pow(2,s-n)},Ff.write=function(e,t,r,n,i,s){var a,o,u,c=s*8-i-1,l=(1<<c)-1,f=l>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,g=n?1:-1,y=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),a+f>=1?t+=h/u:t+=h*Math.pow(2,1-f),t*u>=2&&(a++,u/=2),a+f>=l?(o=0,a=l):a+f>=1?(o=(t*u-1)*Math.pow(2,i),a=a+f):(o=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[r+p]=o&255,p+=g,o/=256,i-=8);for(a=a<<i|o,c+=i;c>0;e[r+p]=a&255,p+=g,a/=256,c-=8);e[r+p-g]|=y*128}),Ff}var yL=Hz();const Gz=Ue.getDefaultExportFromCjs(yL),Yz=hL({__proto__:null,default:Gz},[yL]);var $u={},aT;function Xz(){if(aT)return $u;aT=1,$u.byteLength=o,$u.toByteArray=c,$u.fromByteArray=h;for(var e=[],t=[],r=typeof Uint8Array<"u"?Uint8Array:Array,n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",i=0,s=n.length;i<s;++i)e[i]=n[i],t[n.charCodeAt(i)]=i;t[45]=62,t[95]=63;function a(p){var g=p.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=p.indexOf("=");y===-1&&(y=g);var v=y===g?0:4-y%4;return[y,v]}function o(p){var g=a(p),y=g[0],v=g[1];return(y+v)*3/4-v}function u(p,g,y){return(g+y)*3/4-y}function c(p){var g,y=a(p),v=y[0],E=y[1],b=new r(u(p,v,E)),S=0,x=E>0?v-4:v,_;for(_=0;_<x;_+=4)g=t[p.charCodeAt(_)]<<18|t[p.charCodeAt(_+1)]<<12|t[p.charCodeAt(_+2)]<<6|t[p.charCodeAt(_+3)],b[S++]=g>>16&255,b[S++]=g>>8&255,b[S++]=g&255;return E===2&&(g=t[p.charCodeAt(_)]<<2|t[p.charCodeAt(_+1)]>>4,b[S++]=g&255),E===1&&(g=t[p.charCodeAt(_)]<<10|t[p.charCodeAt(_+1)]<<4|t[p.charCodeAt(_+2)]>>2,b[S++]=g>>8&255,b[S++]=g&255),b}function l(p){return e[p>>18&63]+e[p>>12&63]+e[p>>6&63]+e[p&63]}function f(p,g,y){for(var v,E=[],b=g;b<y;b+=3)v=(p[b]<<16&16711680)+(p[b+1]<<8&65280)+(p[b+2]&255),E.push(l(v));return E.join("")}function h(p){for(var g,y=p.length,v=y%3,E=[],b=16383,S=0,x=y-v;S<x;S+=b)E.push(f(p,S,S+b>x?x:S+b));return v===1?(g=p[y-1],E.push(e[g>>2]+e[g<<4&63]+"==")):v===2&&(g=(p[y-2]<<8)+p[y-1],E.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),E.join("")}return $u}var vL=Xz();const Zz=Ue.getDefaultExportFromCjs(vL),Qz=hL({__proto__:null,default:Zz},[vL]);function fn(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var eW=typeof Symbol=="function"&&Symbol.observable||"@@observable",oT=eW,uT=()=>Math.random().toString(36).substring(7).split("").join("."),tW={INIT:`@@redux/INIT${uT()}`,REPLACE:`@@redux/REPLACE${uT()}`},cT=tW;function rW(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function nW(e){if(e===void 0)return"undefined";if(e===null)return"null";const t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(aW(e))return"date";if(sW(e))return"error";const r=iW(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return Object.prototype.toString.call(e).slice(8,-1).toLowerCase().replace(/\s/g,"")}function iW(e){return typeof e.constructor=="function"?e.constructor.name:null}function sW(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function aW(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function ea(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=nW(e)),t}function bL(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?fn(2):`Expected the root reducer to be a function. Instead, received: '${ea(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?fn(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?fn(1):`Expected the enhancer to be a function. Instead, received: '${ea(r)}'`);return r(bL)(e,t)}let n=e,i=t,s=new Map,a=s,o=0,u=!1;function c(){a===s&&(a=new Map,s.forEach((v,E)=>{a.set(E,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?fn(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return i}function f(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?fn(4):`Expected the listener to be a function. Instead, received: '${ea(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?fn(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");let E=!0;c();const b=o++;return a.set(b,v),function(){if(E){if(u)throw new Error(process.env.NODE_ENV==="production"?fn(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");E=!1,c(),a.delete(b),s=null}}}function h(v){if(!rW(v))throw new Error(process.env.NODE_ENV==="production"?fn(7):`Actions must be plain objects. Instead, the actual type was: '${ea(v)}'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.`);if(typeof v.type>"u")throw new Error(process.env.NODE_ENV==="production"?fn(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(typeof v.type!="string")throw new Error(process.env.NODE_ENV==="production"?fn(17):`Action "type" property must be a string. Instead, the actual type was: '${ea(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?fn(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,v)}finally{u=!1}return(s=a).forEach(b=>{b()}),v}function p(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?fn(10):`Expected the nextReducer to be a function. Instead, received: '${ea(v)}`);n=v,h({type:cT.REPLACE})}function g(){const v=f;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?fn(11):`Expected the observer to be an object. Instead, received: '${ea(E)}'`);function b(){const x=E;x.next&&x.next(l())}return b(),{unsubscribe:v(b)}},[oT](){return this}}}return h({type:cT.INIT}),{dispatch:h,subscribe:f,getState:l,replaceReducer:p,[oT]:g}}function lT(e,t){return function(...r){return t(e.apply(this,r))}}function oW(e,t){if(typeof e=="function")return lT(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?fn(16):`bindActionCreators expected an object or a function, but instead received: '${ea(e)}'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=lT(i,t))}return r}function _L(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function uW(...e){return t=>(r,n)=>{const i=t(r,n);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?fn(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")};const a={getState:i.getState,dispatch:(u,...c)=>s(u,...c)},o=e.map(u=>u(a));return s=_L(...o)(i.dispatch),{...i,dispatch:s}}}var ld={exports:{}},cW=ld.exports,fT;function kA(){return fT||(fT=1,function(e,t){(function(r,n){e.exports=n()})(cW,function(){var r=Array.prototype.slice;function n(m,w){w&&(m.prototype=Object.create(w.prototype)),m.prototype.constructor=m}function i(m){return u(m)?m:Re(m)}n(s,i);function s(m){return c(m)?m:ze(m)}n(a,i);function a(m){return l(m)?m:he(m)}n(o,i);function o(m){return u(m)&&!f(m)?m:_e(m)}function u(m){return!!(m&&m[p])}function c(m){return!!(m&&m[g])}function l(m){return!!(m&&m[y])}function f(m){return c(m)||l(m)}function h(m){return!!(m&&m[v])}i.isIterable=u,i.isKeyed=c,i.isIndexed=l,i.isAssociative=f,i.isOrdered=h,i.Keyed=s,i.Indexed=a,i.Set=o;var p="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",v="@@__IMMUTABLE_ORDERED__@@",E="delete",b=5,S=1<<b,x=S-1,_={},A={value:!1},C={value:!1};function T(m){return m.value=!1,m}function O(m){m&&(m.value=!0)}function M(){}function k(m,w){w=w||0;for(var I=Math.max(0,m.length-w),N=new Array(I),q=0;q<I;q++)N[q]=m[q+w];return N}function D(m){return m.size===void 0&&(m.size=m.__iterate(H)),m.size}function P(m,w){if(typeof w!="number"){var I=w>>>0;if(""+I!==w||I===4294967295)return NaN;w=I}return w<0?D(m)+w:w}function H(){return!0}function X(m,w,I){return(m===0||I!==void 0&&m<=-I)&&(w===void 0||I!==void 0&&w>=I)}function V(m,w){return Q(m,w,0)}function G(m,w){return Q(m,w,w)}function Q(m,w,I){return m===void 0?I:m<0?Math.max(0,w+m):w===void 0?m:Math.min(w,m)}var Z=0,B=1,J=2,ee=typeof Symbol=="function"&&Symbol.iterator,ne="@@iterator",ae=ee||ne;function Y(m){this.next=m}Y.prototype.toString=function(){return"[Iterator]"},Y.KEYS=Z,Y.VALUES=B,Y.ENTRIES=J,Y.prototype.inspect=Y.prototype.toSource=function(){return this.toString()},Y.prototype[ae]=function(){return this};function F(m,w,I,N){var q=m===0?w:m===1?I:[w,I];return N?N.value=q:N={value:q,done:!1},N}function L(){return{value:void 0,done:!0}}function ue(m){return!!Ne(m)}function de(m){return m&&typeof m.next=="function"}function Ae(m){var w=Ne(m);return w&&w.call(m)}function Ne(m){var w=m&&(ee&&m[ee]||m[ne]);if(typeof w=="function")return w}function ce(m){return m&&typeof m.length=="number"}n(Re,i);function Re(m){return m==null?fe():u(m)?m.toSeq():Ge(m)}Re.of=function(){return Re(arguments)},Re.prototype.toSeq=function(){return this},Re.prototype.toString=function(){return this.__toString("Seq {","}")},Re.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Re.prototype.__iterate=function(m,w){return ct(this,m,w,!0)},Re.prototype.__iterator=function(m,w){return $n(this,m,w,!0)},n(ze,Re);function ze(m){return m==null?fe().toKeyedSeq():u(m)?c(m)?m.toSeq():m.fromEntrySeq():Ie(m)}ze.prototype.toKeyedSeq=function(){return this},n(he,Re);function he(m){return m==null?fe():u(m)?c(m)?m.entrySeq():m.toIndexedSeq():Fe(m)}he.of=function(){return he(arguments)},he.prototype.toIndexedSeq=function(){return this},he.prototype.toString=function(){return this.__toString("Seq [","]")},he.prototype.__iterate=function(m,w){return ct(this,m,w,!1)},he.prototype.__iterator=function(m,w){return $n(this,m,w,!1)},n(_e,Re);function _e(m){return(m==null?fe():u(m)?c(m)?m.entrySeq():m:Fe(m)).toSetSeq()}_e.of=function(){return _e(arguments)},_e.prototype.toSetSeq=function(){return this},Re.isSeq=re,Re.Keyed=ze,Re.Set=_e,Re.Indexed=he;var Se="@@__IMMUTABLE_SEQ__@@";Re.prototype[Se]=!0,n($,he);function $(m){this._array=m,this.size=m.length}$.prototype.get=function(m,w){return this.has(m)?this._array[P(this,m)]:w},$.prototype.__iterate=function(m,w){for(var I=this._array,N=I.length-1,q=0;q<=N;q++)if(m(I[w?N-q:q],q,this)===!1)return q+1;return q},$.prototype.__iterator=function(m,w){var I=this._array,N=I.length-1,q=0;return new Y(function(){return q>N?L():F(m,q,I[w?N-q++:q++])})},n(R,ze);function R(m){var w=Object.keys(m);this._object=m,this._keys=w,this.size=w.length}R.prototype.get=function(m,w){return w!==void 0&&!this.has(m)?w:this._object[m]},R.prototype.has=function(m){return this._object.hasOwnProperty(m)},R.prototype.__iterate=function(m,w){for(var I=this._object,N=this._keys,q=N.length-1,W=0;W<=q;W++){var te=N[w?q-W:W];if(m(I[te],te,this)===!1)return W+1}return W},R.prototype.__iterator=function(m,w){var I=this._object,N=this._keys,q=N.length-1,W=0;return new Y(function(){var te=N[w?q-W:W];return W++>q?L():F(m,te,I[te])})},R.prototype[v]=!0,n(j,he);function j(m){this._iterable=m,this.size=m.length||m.size}j.prototype.__iterateUncached=function(m,w){if(w)return this.cacheResult().__iterate(m,w);var I=this._iterable,N=Ae(I),q=0;if(de(N))for(var W;!(W=N.next()).done&&m(W.value,q++,this)!==!1;);return q},j.prototype.__iteratorUncached=function(m,w){if(w)return this.cacheResult().__iterator(m,w);var I=this._iterable,N=Ae(I);if(!de(N))return new Y(L);var q=0;return new Y(function(){var W=N.next();return W.done?W:F(m,q++,W.value)})},n(U,he);function U(m){this._iterator=m,this._iteratorCache=[]}U.prototype.__iterateUncached=function(m,w){if(w)return this.cacheResult().__iterate(m,w);for(var I=this._iterator,N=this._iteratorCache,q=0;q<N.length;)if(m(N[q],q++,this)===!1)return q;for(var W;!(W=I.next()).done;){var te=W.value;if(N[q]=te,m(te,q++,this)===!1)break}return q},U.prototype.__iteratorUncached=function(m,w){if(w)return this.cacheResult().__iterator(m,w);var I=this._iterator,N=this._iteratorCache,q=0;return new Y(function(){if(q>=N.length){var W=I.next();if(W.done)return W;N[q]=W.value}return F(m,q,N[q++])})};function re(m){return!!(m&&m[Se])}var ie;function fe(){return ie||(ie=new $([]))}function Ie(m){var w=Array.isArray(m)?new $(m).fromEntrySeq():de(m)?new U(m).fromEntrySeq():ue(m)?new j(m).fromEntrySeq():typeof m=="object"?new R(m):void 0;if(!w)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return w}function Fe(m){var w=tt(m);if(!w)throw new TypeError("Expected Array or iterable object of values: "+m);return w}function Ge(m){var w=tt(m)||typeof m=="object"&&new R(m);if(!w)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return w}function tt(m){return ce(m)?new $(m):de(m)?new U(m):ue(m)?new j(m):void 0}function ct(m,w,I,N){var q=m._cache;if(q){for(var W=q.length-1,te=0;te<=W;te++){var oe=q[I?W-te:te];if(w(oe[1],N?oe[0]:te,m)===!1)return te+1}return te}return m.__iterateUncached(w,I)}function $n(m,w,I,N){var q=m._cache;if(q){var W=q.length-1,te=0;return new Y(function(){var oe=q[I?W-te:te];return te++>W?L():F(w,N?oe[0]:te-1,oe[1])})}return m.__iteratorUncached(w,I)}function Ei(m,w){return w?ar(w,m,"",{"":m}):br(m)}function ar(m,w,I,N){return Array.isArray(w)?m.call(N,I,he(w).map(function(q,W){return ar(m,q,W,w)})):cr(w)?m.call(N,I,ze(w).map(function(q,W){return ar(m,q,W,w)})):w}function br(m){return Array.isArray(m)?he(m).map(br).toList():cr(m)?ze(m).map(br).toMap():m}function cr(m){return m&&(m.constructor===Object||m.constructor===void 0)}function Pt(m,w){if(m===w||m!==m&&w!==w)return!0;if(!m||!w)return!1;if(typeof m.valueOf=="function"&&typeof w.valueOf=="function"){if(m=m.valueOf(),w=w.valueOf(),m===w||m!==m&&w!==w)return!0;if(!m||!w)return!1}return!!(typeof m.equals=="function"&&typeof w.equals=="function"&&m.equals(w))}function Bs(m,w){if(m===w)return!0;if(!u(w)||m.size!==void 0&&w.size!==void 0&&m.size!==w.size||m.__hash!==void 0&&w.__hash!==void 0&&m.__hash!==w.__hash||c(m)!==c(w)||l(m)!==l(w)||h(m)!==h(w))return!1;if(m.size===0&&w.size===0)return!0;var I=!f(m);if(h(m)){var N=m.entries();return w.every(function(ye,ve){var xe=N.next().value;return xe&&Pt(xe[1],ye)&&(I||Pt(xe[0],ve))})&&N.next().done}var q=!1;if(m.size===void 0)if(w.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{q=!0;var W=m;m=w,w=W}var te=!0,oe=w.__iterate(function(ye,ve){if(I?!m.has(ye):q?!Pt(ye,m.get(ve,_)):!Pt(m.get(ve,_),ye))return te=!1,!1});return te&&m.size===oe}n(pr,he);function pr(m,w){if(!(this instanceof pr))return new pr(m,w);if(this._value=m,this.size=w===void 0?1/0:Math.max(0,w),this.size===0){if(pe)return pe;pe=this}}pr.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},pr.prototype.get=function(m,w){return this.has(m)?this._value:w},pr.prototype.includes=function(m){return Pt(this._value,m)},pr.prototype.slice=function(m,w){var I=this.size;return X(m,w,I)?this:new pr(this._value,G(w,I)-V(m,I))},pr.prototype.reverse=function(){return this},pr.prototype.indexOf=function(m){return Pt(this._value,m)?0:-1},pr.prototype.lastIndexOf=function(m){return Pt(this._value,m)?this.size:-1},pr.prototype.__iterate=function(m,w){for(var I=0;I<this.size;I++)if(m(this._value,I,this)===!1)return I+1;return I},pr.prototype.__iterator=function(m,w){var I=this,N=0;return new Y(function(){return N<I.size?F(m,N++,I._value):L()})},pr.prototype.equals=function(m){return m instanceof pr?Pt(this._value,m._value):Bs(m)};var pe;function Ee(m,w){if(!m)throw new Error(w)}n(Ce,he);function Ce(m,w,I){if(!(this instanceof Ce))return new Ce(m,w,I);if(Ee(I!==0,"Cannot step a Range by 0"),m=m||0,w===void 0&&(w=1/0),I=I===void 0?1:Math.abs(I),w<m&&(I=-I),this._start=m,this._end=w,this._step=I,this.size=Math.max(0,Math.ceil((w-m)/I-1)+1),this.size===0){if(Ye)return Ye;Ye=this}}Ce.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},Ce.prototype.get=function(m,w){return this.has(m)?this._start+P(this,m)*this._step:w},Ce.prototype.includes=function(m){var w=(m-this._start)/this._step;return w>=0&&w<this.size&&w===Math.floor(w)},Ce.prototype.slice=function(m,w){return X(m,w,this.size)?this:(m=V(m,this.size),w=G(w,this.size),w<=m?new Ce(0,0):new Ce(this.get(m,this._end),this.get(w,this._end),this._step))},Ce.prototype.indexOf=function(m){var w=m-this._start;if(w%this._step===0){var I=w/this._step;if(I>=0&&I<this.size)return I}return-1},Ce.prototype.lastIndexOf=function(m){return this.indexOf(m)},Ce.prototype.__iterate=function(m,w){for(var I=this.size-1,N=this._step,q=w?this._start+I*N:this._start,W=0;W<=I;W++){if(m(q,W,this)===!1)return W+1;q+=w?-N:N}return W},Ce.prototype.__iterator=function(m,w){var I=this.size-1,N=this._step,q=w?this._start+I*N:this._start,W=0;return new Y(function(){var te=q;return q+=w?-N:N,W>I?L():F(m,W++,te)})},Ce.prototype.equals=function(m){return m instanceof Ce?this._start===m._start&&this._end===m._end&&this._step===m._step:Bs(this,m)};var Ye;n(at,i);function at(){throw TypeError("Abstract")}n(mt,at);function mt(){}n(Lt,at);function Lt(){}n(Te,at);function Te(){}at.Keyed=mt,at.Indexed=Lt,at.Set=Te;var Le=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(w,I){w=w|0,I=I|0;var N=w&65535,q=I&65535;return N*q+((w>>>16)*q+N*(I>>>16)<<16>>>0)|0};function nt(m){return m>>>1&1073741824|m&3221225471}function Xe(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 w=typeof m;if(w==="number"){if(m!==m||m===1/0)return 0;var I=m|0;for(I!==m&&(I^=m*4294967295);m>4294967295;)m/=4294967295,I^=m;return nt(I)}if(w==="string")return m.length>Fn?Bt(m):sn(m);if(typeof m.hashCode=="function")return m.hashCode();if(w==="object")return Us(m);if(typeof m.toString=="function")return sn(m.toString());throw new Error("Value type "+w+" cannot be hashed.")}function Bt(m){var w=Vi[m];return w===void 0&&(w=sn(m),Hs===Ks&&(Hs=0,Vi={}),Hs++,Vi[m]=w),w}function sn(m){for(var w=0,I=0;I<m.length;I++)w=31*w+m.charCodeAt(I)|0;return nt(w)}function Us(m){var w;if(Ws&&(w=Js.get(m),w!==void 0)||(w=m[on],w!==void 0)||!an&&(w=m.propertyIsEnumerable&&m.propertyIsEnumerable[on],w!==void 0||(w=zs(m),w!==void 0)))return w;if(w=++vs,vs&1073741824&&(vs=0),Ws)Js.set(m,w);else{if(Vs!==void 0&&Vs(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(an)Object.defineProperty(m,on,{enumerable:!1,configurable:!1,writable:!1,value:w});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[on]=w;else if(m.nodeType!==void 0)m[on]=w;else throw new Error("Unable to set a non-enumerable property on object.")}return w}var Vs=Object.isExtensible,an=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function zs(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var Ws=typeof WeakMap=="function",Js;Ws&&(Js=new WeakMap);var vs=0,on="__immutablehash__";typeof Symbol=="function"&&(on=Symbol(on));var Fn=16,Ks=255,Hs=0,Vi={};function kr(m){Ee(m!==1/0,"Cannot perform this action with an infinite size.")}n(vt,mt);function vt(m){return m==null?qe():Ke(m)&&!h(m)?m:qe().withMutations(function(w){var I=s(m);kr(I.size),I.forEach(function(N,q){return w.set(q,N)})})}vt.of=function(){var m=r.call(arguments,0);return qe().withMutations(function(w){for(var I=0;I<m.length;I+=2){if(I+1>=m.length)throw new Error("Missing value for key: "+m[I]);w.set(m[I],m[I+1])}})},vt.prototype.toString=function(){return this.__toString("Map {","}")},vt.prototype.get=function(m,w){return this._root?this._root.get(0,void 0,m,w):w},vt.prototype.set=function(m,w){return _t(this,m,w)},vt.prototype.setIn=function(m,w){return this.updateIn(m,_,function(){return w})},vt.prototype.remove=function(m){return _t(this,m,_)},vt.prototype.deleteIn=function(m){return this.updateIn(m,function(){return _})},vt.prototype.update=function(m,w,I){return arguments.length===1?m(this):this.updateIn([m],w,I)},vt.prototype.updateIn=function(m,w,I){I||(I=w,w=void 0);var N=Cf(this,kR(m),w,I);return N===_?void 0:N},vt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):qe()},vt.prototype.merge=function(){return Ln(this,void 0,arguments)},vt.prototype.mergeWith=function(m){var w=r.call(arguments,1);return Ln(this,m,w)},vt.prototype.mergeIn=function(m){var w=r.call(arguments,1);return this.updateIn(m,qe(),function(I){return typeof I.merge=="function"?I.merge.apply(I,w):w[w.length-1]})},vt.prototype.mergeDeep=function(){return Ln(this,xf,arguments)},vt.prototype.mergeDeepWith=function(m){var w=r.call(arguments,1);return Ln(this,Af(m),w)},vt.prototype.mergeDeepIn=function(m){var w=r.call(arguments,1);return this.updateIn(m,qe(),function(I){return typeof I.mergeDeep=="function"?I.mergeDeep.apply(I,w):w[w.length-1]})},vt.prototype.sort=function(m){return Er(Ao(this,m))},vt.prototype.sortBy=function(m,w){return Er(Ao(this,w,m))},vt.prototype.withMutations=function(m){var w=this.asMutable();return m(w),w.wasAltered()?w.__ensureOwner(this.__ownerID):this},vt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new M)},vt.prototype.asImmutable=function(){return this.__ensureOwner()},vt.prototype.wasAltered=function(){return this.__altered},vt.prototype.__iterator=function(m,w){return new Zr(this,m,w)},vt.prototype.__iterate=function(m,w){var I=this,N=0;return this._root&&this._root.iterate(function(q){return N++,m(q[1],q[0],I)},w),N},vt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Gs(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function Ke(m){return!!(m&&m[se])}vt.isMap=Ke;var se="@@__IMMUTABLE_MAP__@@",be=vt.prototype;be[se]=!0,be[E]=be.remove,be.removeIn=be.deleteIn;function Ve(m,w){this.ownerID=m,this.entries=w}Ve.prototype.get=function(m,w,I,N){for(var q=this.entries,W=0,te=q.length;W<te;W++)if(Pt(I,q[W][0]))return q[W][1];return N},Ve.prototype.update=function(m,w,I,N,q,W,te){for(var oe=q===_,ye=this.entries,ve=0,xe=ye.length;ve<xe&&!Pt(N,ye[ve][0]);ve++);var $e=ve<xe;if($e?ye[ve][1]===q:oe)return this;if(O(te),(oe||!$e)&&O(W),!(oe&&ye.length===1)){if(!$e&&!oe&&ye.length>=Mu)return Qn(m,ye,N,q);var Je=m&&m===this.ownerID,ut=Je?ye:k(ye);return $e?oe?ve===xe-1?ut.pop():ut[ve]=ut.pop():ut[ve]=[N,q]:ut.push([N,q]),Je?(this.entries=ut,this):new Ve(m,ut)}};function lt(m,w,I){this.ownerID=m,this.bitmap=w,this.nodes=I}lt.prototype.get=function(m,w,I,N){w===void 0&&(w=Xe(I));var q=1<<((m===0?w:w>>>m)&x),W=this.bitmap;return(W&q)===0?N:this.nodes[Ca(W&q-1)].get(m+b,w,I,N)},lt.prototype.update=function(m,w,I,N,q,W,te){I===void 0&&(I=Xe(N));var oe=(w===0?I:I>>>w)&x,ye=1<<oe,ve=this.bitmap,xe=(ve&ye)!==0;if(!xe&&q===_)return this;var $e=Ca(ve&ye-1),Je=this.nodes,ut=xe?Je[$e]:void 0,bt=Nt(ut,m,w+b,I,N,q,W,te);if(bt===ut)return this;if(!xe&&bt&&Je.length>=gt)return ti(m,Je,ve,oe,bt);if(xe&&!bt&&Je.length===2&&_r(Je[$e^1]))return Je[$e^1];if(xe&&bt&&Je.length===1&&_r(bt))return bt;var ur=m&&m===this.ownerID,wi=xe?bt?ve:ve^ye:ve|ye,Ki=xe?bt?Nu(Je,$e,bt,ur):Mm(Je,$e,ur):Ys(Je,$e,bt,ur);return ur?(this.bitmap=wi,this.nodes=Ki,this):new lt(m,wi,Ki)};function tr(m,w,I){this.ownerID=m,this.count=w,this.nodes=I}tr.prototype.get=function(m,w,I,N){w===void 0&&(w=Xe(I));var q=(m===0?w:w>>>m)&x,W=this.nodes[q];return W?W.get(m+b,w,I,N):N},tr.prototype.update=function(m,w,I,N,q,W,te){I===void 0&&(I=Xe(N));var oe=(w===0?I:I>>>w)&x,ye=q===_,ve=this.nodes,xe=ve[oe];if(ye&&!xe)return this;var $e=Nt(xe,m,w+b,I,N,q,W,te);if($e===xe)return this;var Je=this.count;if(!xe)Je++;else if(!$e&&(Je--,Je<Rf))return ei(m,ve,Je,oe);var ut=m&&m===this.ownerID,bt=Nu(ve,oe,$e,ut);return ut?(this.count=Je,this.nodes=bt,this):new tr(m,Je,bt)};function Wt(m,w,I){this.ownerID=m,this.keyHash=w,this.entries=I}Wt.prototype.get=function(m,w,I,N){for(var q=this.entries,W=0,te=q.length;W<te;W++)if(Pt(I,q[W][0]))return q[W][1];return N},Wt.prototype.update=function(m,w,I,N,q,W,te){I===void 0&&(I=Xe(N));var oe=q===_;if(I!==this.keyHash)return oe?this:(O(te),O(W),Si(this,m,w,I,[N,q]));for(var ye=this.entries,ve=0,xe=ye.length;ve<xe&&!Pt(N,ye[ve][0]);ve++);var $e=ve<xe;if($e?ye[ve][1]===q:oe)return this;if(O(te),(oe||!$e)&&O(W),oe&&xe===2)return new Yt(m,this.keyHash,ye[ve^1]);var Je=m&&m===this.ownerID,ut=Je?ye:k(ye);return $e?oe?ve===xe-1?ut.pop():ut[ve]=ut.pop():ut[ve]=[N,q]:ut.push([N,q]),Je?(this.entries=ut,this):new Wt(m,this.keyHash,ut)};function Yt(m,w,I){this.ownerID=m,this.keyHash=w,this.entry=I}Yt.prototype.get=function(m,w,I,N){return Pt(I,this.entry[0])?this.entry[1]:N},Yt.prototype.update=function(m,w,I,N,q,W,te){var oe=q===_,ye=Pt(N,this.entry[0]);if(ye?q===this.entry[1]:oe)return this;if(O(te),oe){O(W);return}return ye?m&&m===this.ownerID?(this.entry[1]=q,this):new Yt(m,this.keyHash,[N,q]):(O(W),Si(this,m,w,Xe(N),[N,q]))},Ve.prototype.iterate=Wt.prototype.iterate=function(m,w){for(var I=this.entries,N=0,q=I.length-1;N<=q;N++)if(m(I[w?q-N:N])===!1)return!1},lt.prototype.iterate=tr.prototype.iterate=function(m,w){for(var I=this.nodes,N=0,q=I.length-1;N<=q;N++){var W=I[w?q-N:N];if(W&&W.iterate(m,w)===!1)return!1}},Yt.prototype.iterate=function(m,w){return m(this.entry)},n(Zr,Y);function Zr(m,w,I){this._type=w,this._reverse=I,this._stack=m._root&&xr(m._root)}Zr.prototype.next=function(){for(var m=this._type,w=this._stack;w;){var I=w.node,N=w.index++,q;if(I.entry){if(N===0)return On(m,I.entry)}else if(I.entries){if(q=I.entries.length-1,N<=q)return On(m,I.entries[this._reverse?q-N:N])}else if(q=I.nodes.length-1,N<=q){var W=I.nodes[this._reverse?q-N:N];if(W){if(W.entry)return On(m,W.entry);w=this._stack=xr(W,w)}continue}w=this._stack=this._stack.__prev}return L()};function On(m,w){return F(m,w[0],w[1])}function xr(m,w){return{node:m,index:0,__prev:w}}function Gs(m,w,I,N){var q=Object.create(be);return q.size=m,q._root=w,q.__ownerID=I,q.__hash=N,q.__altered=!1,q}var Oe;function qe(){return Oe||(Oe=Gs(0))}function _t(m,w,I){var N,q;if(m._root){var W=T(A),te=T(C);if(N=Nt(m._root,m.__ownerID,0,void 0,w,I,W,te),!te.value)return m;q=m.size+(W.value?I===_?-1:1:0)}else{if(I===_)return m;q=1,N=new Ve(m.__ownerID,[[w,I]])}return m.__ownerID?(m.size=q,m._root=N,m.__hash=void 0,m.__altered=!0,m):N?Gs(q,N):qe()}function Nt(m,w,I,N,q,W,te,oe){return m?m.update(w,I,N,q,W,te,oe):W===_?m:(O(oe),O(te),new Yt(w,N,[q,W]))}function _r(m){return m.constructor===Yt||m.constructor===Wt}function Si(m,w,I,N,q){if(m.keyHash===N)return new Wt(w,N,[m.entry,q]);var W=(I===0?m.keyHash:m.keyHash>>>I)&x,te=(I===0?N:N>>>I)&x,oe,ye=W===te?[Si(m,w,I+b,N,q)]:(oe=new Yt(w,N,q),W<te?[m,oe]:[oe,m]);return new lt(w,1<<W|1<<te,ye)}function Qn(m,w,I,N){m||(m=new M);for(var q=new Yt(m,Xe(I),[I,N]),W=0;W<w.length;W++){var te=w[W];q=q.update(m,0,void 0,te[0],te[1])}return q}function ei(m,w,I,N){for(var q=0,W=0,te=new Array(I),oe=0,ye=1,ve=w.length;oe<ve;oe++,ye<<=1){var xe=w[oe];xe!==void 0&&oe!==N&&(q|=ye,te[W++]=xe)}return new lt(m,q,te)}function ti(m,w,I,N,q){for(var W=0,te=new Array(S),oe=0;I!==0;oe++,I>>>=1)te[oe]=I&1?w[W++]:void 0;return te[N]=q,new tr(m,W+1,te)}function Ln(m,w,I){for(var N=[],q=0;q<I.length;q++){var W=I[q],te=s(W);u(W)||(te=te.map(function(oe){return Ei(oe)})),N.push(te)}return Of(m,w,N)}function xf(m,w,I){return m&&m.mergeDeep&&u(w)?m.mergeDeep(w):Pt(m,w)?m:w}function Af(m){return function(w,I,N){if(w&&w.mergeDeepWith&&u(I))return w.mergeDeepWith(m,I);var q=m(w,I,N);return Pt(w,q)?w:q}}function Of(m,w,I){return I=I.filter(function(N){return N.size!==0}),I.length===0?m:m.size===0&&!m.__ownerID&&I.length===1?m.constructor(I[0]):m.withMutations(function(N){for(var q=w?function(te,oe){N.update(oe,_,function(ye){return ye===_?te:w(ye,te,oe)})}:function(te,oe){N.set(oe,te)},W=0;W<I.length;W++)I[W].forEach(q)})}function Cf(m,w,I,N){var q=m===_,W=w.next();if(W.done){var te=q?I:m,oe=N(te);return oe===te?m:oe}Ee(q||m&&m.set,"invalid keyPath");var ye=W.value,ve=q?_:m.get(ye,_),xe=Cf(ve,w,I,N);return xe===ve?m:xe===_?m.remove(ye):(q?qe():m).set(ye,xe)}function Ca(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 Nu(m,w,I,N){var q=N?m:k(m);return q[w]=I,q}function Ys(m,w,I,N){var q=m.length+1;if(N&&w+1===q)return m[w]=I,m;for(var W=new Array(q),te=0,oe=0;oe<q;oe++)oe===w?(W[oe]=I,te=-1):W[oe]=m[oe+te];return W}function Mm(m,w,I){var N=m.length-1;if(I&&w===N)return m.pop(),m;for(var q=new Array(N),W=0,te=0;te<N;te++)te===w&&(W=1),q[te]=m[te+W];return q}var Mu=S/4,gt=S/2,Rf=S/4;n(ft,Lt);function ft(m){var w=Rt();if(m==null)return w;if(lr(m))return m;var I=a(m),N=I.size;return N===0?w:(kr(N),N>0&&N<S?Ze(0,N,b,null,new ri(I.toArray())):w.withMutations(function(q){q.setSize(N),I.forEach(function(W,te){return q.set(te,W)})}))}ft.of=function(){return this(arguments)},ft.prototype.toString=function(){return this.__toString("List [","]")},ft.prototype.get=function(m,w){if(m=P(this,m),m>=0&&m<this.size){m+=this._origin;var I=vR(this,m);return I&&I.array[m&x]}return w},ft.prototype.set=function(m,w){return Qr(this,m,w)},ft.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},ft.prototype.insert=function(m,w){return this.splice(m,0,w)},ft.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):Rt()},ft.prototype.push=function(){var m=arguments,w=this.size;return this.withMutations(function(I){Qs(I,0,w+m.length);for(var N=0;N<m.length;N++)I.set(w+N,m[N])})},ft.prototype.pop=function(){return Qs(this,0,-1)},ft.prototype.unshift=function(){var m=arguments;return this.withMutations(function(w){Qs(w,-m.length);for(var I=0;I<m.length;I++)w.set(I,m[I])})},ft.prototype.shift=function(){return Qs(this,1)},ft.prototype.merge=function(){return Tf(this,void 0,arguments)},ft.prototype.mergeWith=function(m){var w=r.call(arguments,1);return Tf(this,m,w)},ft.prototype.mergeDeep=function(){return Tf(this,xf,arguments)},ft.prototype.mergeDeepWith=function(m){var w=r.call(arguments,1);return Tf(this,Af(m),w)},ft.prototype.setSize=function(m){return Qs(this,0,m)},ft.prototype.slice=function(m,w){var I=this.size;return X(m,w,I)?this:Qs(this,V(m,I),G(w,I))},ft.prototype.__iterator=function(m,w){var I=0,N=He(this,w);return new Y(function(){var q=N();return q===bs?L():F(m,I++,q)})},ft.prototype.__iterate=function(m,w){for(var I=0,N=He(this,w),q;(q=N())!==bs&&m(q,I++,this)!==!1;);return I},ft.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Ze(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function lr(m){return!!(m&&m[Ra])}ft.isList=lr;var Ra="@@__IMMUTABLE_LIST__@@",hr=ft.prototype;hr[Ra]=!0,hr[E]=hr.remove,hr.setIn=be.setIn,hr.deleteIn=hr.removeIn=be.removeIn,hr.update=be.update,hr.updateIn=be.updateIn,hr.mergeIn=be.mergeIn,hr.mergeDeepIn=be.mergeDeepIn,hr.withMutations=be.withMutations,hr.asMutable=be.asMutable,hr.asImmutable=be.asImmutable,hr.wasAltered=be.wasAltered;function ri(m,w){this.array=m,this.ownerID=w}ri.prototype.removeBefore=function(m,w,I){if(I===w?1<<w:this.array.length===0)return this;var N=I>>>w&x;if(N>=this.array.length)return new ri([],m);var q=N===0,W;if(w>0){var te=this.array[N];if(W=te&&te.removeBefore(m,w-b,I),W===te&&q)return this}if(q&&!W)return this;var oe=Zs(this,m);if(!q)for(var ye=0;ye<N;ye++)oe.array[ye]=void 0;return W&&(oe.array[N]=W),oe},ri.prototype.removeAfter=function(m,w,I){if(I===(w?1<<w:0)||this.array.length===0)return this;var N=I-1>>>w&x;if(N>=this.array.length)return this;var q;if(w>0){var W=this.array[N];if(q=W&&W.removeAfter(m,w-b,I),q===W&&N===this.array.length-1)return this}var te=Zs(this,m);return te.array.splice(N+1),q&&(te.array[N]=q),te};var bs={};function He(m,w){var I=m._origin,N=m._capacity,q=Du(N),W=m._tail;return te(m._root,m._level,0);function te(ve,xe,$e){return xe===0?oe(ve,$e):ye(ve,xe,$e)}function oe(ve,xe){var $e=xe===q?W&&W.array:ve&&ve.array,Je=xe>I?0:I-xe,ut=N-xe;return ut>S&&(ut=S),function(){if(Je===ut)return bs;var bt=w?--ut:Je++;return $e&&$e[bt]}}function ye(ve,xe,$e){var Je,ut=ve&&ve.array,bt=$e>I?0:I-$e>>xe,ur=(N-$e>>xe)+1;return ur>S&&(ur=S),function(){do{if(Je){var wi=Je();if(wi!==bs)return wi;Je=null}if(bt===ur)return bs;var Ki=w?--ur:bt++;Je=te(ut&&ut[Ki],xe-b,$e+(Ki<<xe))}while(!0)}}}function Ze(m,w,I,N,q,W,te){var oe=Object.create(hr);return oe.size=w-m,oe._origin=m,oe._capacity=w,oe._level=I,oe._root=N,oe._tail=q,oe.__ownerID=W,oe.__hash=te,oe.__altered=!1,oe}var ht;function Rt(){return ht||(ht=Ze(0,0,b))}function Qr(m,w,I){if(w=P(m,w),w!==w)return m;if(w>=m.size||w<0)return m.withMutations(function(te){w<0?Qs(te,w).set(0,I):Qs(te,0,w+1).set(w,I)});w+=m._origin;var N=m._tail,q=m._root,W=T(C);return w>=Du(m._capacity)?N=Xs(N,m.__ownerID,0,w,I,W):q=Xs(q,m.__ownerID,m._level,w,I,W),W.value?m.__ownerID?(m._root=q,m._tail=N,m.__hash=void 0,m.__altered=!0,m):Ze(m._origin,m._capacity,m._level,q,N):m}function Xs(m,w,I,N,q,W){var te=N>>>I&x,oe=m&&te<m.array.length;if(!oe&&q===void 0)return m;var ye;if(I>0){var ve=m&&m.array[te],xe=Xs(ve,w,I-b,N,q,W);return xe===ve?m:(ye=Zs(m,w),ye.array[te]=xe,ye)}return oe&&m.array[te]===q?m:(O(W),ye=Zs(m,w),q===void 0&&te===ye.array.length-1?ye.array.pop():ye.array[te]=q,ye)}function Zs(m,w){return w&&m&&w===m.ownerID?m:new ri(m?m.array.slice():[],w)}function vR(m,w){if(w>=Du(m._capacity))return m._tail;if(w<1<<m._level+b){for(var I=m._root,N=m._level;I&&N>0;)I=I.array[w>>>N&x],N-=b;return I}}function Qs(m,w,I){w!==void 0&&(w=w|0),I!==void 0&&(I=I|0);var N=m.__ownerID||new M,q=m._origin,W=m._capacity,te=q+w,oe=I===void 0?W:I<0?W+I:q+I;if(te===q&&oe===W)return m;if(te>=oe)return m.clear();for(var ye=m._level,ve=m._root,xe=0;te+xe<0;)ve=new ri(ve&&ve.array.length?[void 0,ve]:[],N),ye+=b,xe+=1<<ye;xe&&(te+=xe,q+=xe,oe+=xe,W+=xe);for(var $e=Du(W),Je=Du(oe);Je>=1<<ye+b;)ve=new ri(ve&&ve.array.length?[ve]:[],N),ye+=b;var ut=m._tail,bt=Je<$e?vR(m,oe-1):Je>$e?new ri([],N):ut;if(ut&&Je>$e&&te<W&&ut.array.length){ve=Zs(ve,N);for(var ur=ve,wi=ye;wi>b;wi-=b){var Ki=$e>>>wi&x;ur=ur.array[Ki]=Zs(ur.array[Ki],N)}ur.array[$e>>>b&x]=ut}if(oe<W&&(bt=bt&&bt.removeAfter(N,0,oe)),te>=Je)te-=Je,oe-=Je,ye=b,ve=null,bt=bt&&bt.removeBefore(N,0,te);else if(te>q||Je<$e){for(xe=0;ve;){var Df=te>>>ye&x;if(Df!==Je>>>ye&x)break;Df&&(xe+=(1<<ye)*Df),ye-=b,ve=ve.array[Df]}ve&&te>q&&(ve=ve.removeBefore(N,ye,te-xe)),ve&&Je<$e&&(ve=ve.removeAfter(N,ye,Je-xe)),xe&&(te-=xe,oe-=xe)}return m.__ownerID?(m.size=oe-te,m._origin=te,m._capacity=oe,m._level=ye,m._root=ve,m._tail=bt,m.__hash=void 0,m.__altered=!0,m):Ze(te,oe,ye,ve,bt)}function Tf(m,w,I){for(var N=[],q=0,W=0;W<I.length;W++){var te=I[W],oe=a(te);oe.size>q&&(q=oe.size),u(te)||(oe=oe.map(function(ye){return Ei(ye)})),N.push(oe)}return q>m.size&&(m=m.setSize(q)),Of(m,w,N)}function Du(m){return m<S?0:m-1>>>b<<b}n(Er,vt);function Er(m){return m==null?If():bR(m)?m:If().withMutations(function(w){var I=s(m);kr(I.size),I.forEach(function(N,q){return w.set(q,N)})})}Er.of=function(){return this(arguments)},Er.prototype.toString=function(){return this.__toString("OrderedMap {","}")},Er.prototype.get=function(m,w){var I=this._map.get(m);return I!==void 0?this._list.get(I)[1]:w},Er.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):If()},Er.prototype.set=function(m,w){return ER(this,m,w)},Er.prototype.remove=function(m){return ER(this,m,_)},Er.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},Er.prototype.__iterate=function(m,w){var I=this;return this._list.__iterate(function(N){return N&&m(N[1],N[0],I)},w)},Er.prototype.__iterator=function(m,w){return this._list.fromEntrySeq().__iterator(m,w)},Er.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var w=this._map.__ensureOwner(m),I=this._list.__ensureOwner(m);return m?Dm(w,I,m,this.__hash):(this.__ownerID=m,this._map=w,this._list=I,this)};function bR(m){return Ke(m)&&h(m)}Er.isOrderedMap=bR,Er.prototype[v]=!0,Er.prototype[E]=Er.prototype.remove;function Dm(m,w,I,N){var q=Object.create(Er.prototype);return q.size=m?m.size:0,q._map=m,q._list=w,q.__ownerID=I,q.__hash=N,q}var _R;function If(){return _R||(_R=Dm(qe(),Rt()))}function ER(m,w,I){var N=m._map,q=m._list,W=N.get(w),te=W!==void 0,oe,ye;if(I===_){if(!te)return m;q.size>=S&&q.size>=N.size*2?(ye=q.filter(function(ve,xe){return ve!==void 0&&W!==xe}),oe=ye.toKeyedSeq().map(function(ve){return ve[0]}).flip().toMap(),m.__ownerID&&(oe.__ownerID=ye.__ownerID=m.__ownerID)):(oe=N.remove(w),ye=W===q.size-1?q.pop():q.set(W,void 0))}else if(te){if(I===q.get(W)[1])return m;oe=N,ye=q.set(W,[w,I])}else oe=N.set(w,q.size),ye=q.set(q.size,[w,I]);return m.__ownerID?(m.size=oe.size,m._map=oe,m._list=ye,m.__hash=void 0,m):Dm(oe,ye)}n(ni,ze);function ni(m,w){this._iter=m,this._useKeys=w,this.size=m.size}ni.prototype.get=function(m,w){return this._iter.get(m,w)},ni.prototype.has=function(m){return this._iter.has(m)},ni.prototype.valueSeq=function(){return this._iter.valueSeq()},ni.prototype.reverse=function(){var m=this,w=qm(this,!0);return this._useKeys||(w.valueSeq=function(){return m._iter.toSeq().reverse()}),w},ni.prototype.map=function(m,w){var I=this,N=wR(this,m,w);return this._useKeys||(N.valueSeq=function(){return I._iter.toSeq().map(m,w)}),N},ni.prototype.__iterate=function(m,w){var I=this,N;return this._iter.__iterate(this._useKeys?function(q,W){return m(q,W,I)}:(N=w?TR(this):0,function(q){return m(q,w?--N:N++,I)}),w)},ni.prototype.__iterator=function(m,w){if(this._useKeys)return this._iter.__iterator(m,w);var I=this._iter.__iterator(B,w),N=w?TR(this):0;return new Y(function(){var q=I.next();return q.done?q:F(m,w?--N:N++,q.value,q)})},ni.prototype[v]=!0,n(So,he);function So(m){this._iter=m,this.size=m.size}So.prototype.includes=function(m){return this._iter.includes(m)},So.prototype.__iterate=function(m,w){var I=this,N=0;return this._iter.__iterate(function(q){return m(q,N++,I)},w)},So.prototype.__iterator=function(m,w){var I=this._iter.__iterator(B,w),N=0;return new Y(function(){var q=I.next();return q.done?q:F(m,N++,q.value,q)})},n(wo,_e);function wo(m){this._iter=m,this.size=m.size}wo.prototype.has=function(m){return this._iter.includes(m)},wo.prototype.__iterate=function(m,w){var I=this;return this._iter.__iterate(function(N){return m(N,N,I)},w)},wo.prototype.__iterator=function(m,w){var I=this._iter.__iterator(B,w);return new Y(function(){var N=I.next();return N.done?N:F(m,N.value,N.value,N)})},n(xo,ze);function xo(m){this._iter=m,this.size=m.size}xo.prototype.entrySeq=function(){return this._iter.toSeq()},xo.prototype.__iterate=function(m,w){var I=this;return this._iter.__iterate(function(N){if(N){RR(N);var q=u(N);return m(q?N.get(1):N[1],q?N.get(0):N[0],I)}},w)},xo.prototype.__iterator=function(m,w){var I=this._iter.__iterator(B,w);return new Y(function(){for(;;){var N=I.next();if(N.done)return N;var q=N.value;if(q){RR(q);var W=u(q);return F(m,W?q.get(0):q[0],W?q.get(1):q[1],N)}}})},So.prototype.cacheResult=ni.prototype.cacheResult=wo.prototype.cacheResult=xo.prototype.cacheResult=Lm;function SR(m){var w=zi(m);return w._iter=m,w.size=m.size,w.flip=function(){return m},w.reverse=function(){var I=m.reverse.apply(this);return I.flip=function(){return m.reverse()},I},w.has=function(I){return m.includes(I)},w.includes=function(I){return m.has(I)},w.cacheResult=Lm,w.__iterateUncached=function(I,N){var q=this;return m.__iterate(function(W,te){return I(te,W,q)!==!1},N)},w.__iteratorUncached=function(I,N){if(I===J){var q=m.__iterator(I,N);return new Y(function(){var W=q.next();if(!W.done){var te=W.value[0];W.value[0]=W.value[1],W.value[1]=te}return W})}return m.__iterator(I===B?Z:B,N)},w}function wR(m,w,I){var N=zi(m);return N.size=m.size,N.has=function(q){return m.has(q)},N.get=function(q,W){var te=m.get(q,_);return te===_?W:w.call(I,te,q,m)},N.__iterateUncached=function(q,W){var te=this;return m.__iterate(function(oe,ye,ve){return q(w.call(I,oe,ye,ve),ye,te)!==!1},W)},N.__iteratorUncached=function(q,W){var te=m.__iterator(J,W);return new Y(function(){var oe=te.next();if(oe.done)return oe;var ye=oe.value,ve=ye[0];return F(q,ve,w.call(I,ye[1],ve,m),oe)})},N}function qm(m,w){var I=zi(m);return I._iter=m,I.size=m.size,I.reverse=function(){return m},m.flip&&(I.flip=function(){var N=SR(m);return N.reverse=function(){return m.flip()},N}),I.get=function(N,q){return m.get(w?N:-1-N,q)},I.has=function(N){return m.has(w?N:-1-N)},I.includes=function(N){return m.includes(N)},I.cacheResult=Lm,I.__iterate=function(N,q){var W=this;return m.__iterate(function(te,oe){return N(te,oe,W)},!q)},I.__iterator=function(N,q){return m.__iterator(N,!q)},I}function xR(m,w,I,N){var q=zi(m);return N&&(q.has=function(W){var te=m.get(W,_);return te!==_&&!!w.call(I,te,W,m)},q.get=function(W,te){var oe=m.get(W,_);return oe!==_&&w.call(I,oe,W,m)?oe:te}),q.__iterateUncached=function(W,te){var oe=this,ye=0;return m.__iterate(function(ve,xe,$e){if(w.call(I,ve,xe,$e))return ye++,W(ve,N?xe:ye-1,oe)},te),ye},q.__iteratorUncached=function(W,te){var oe=m.__iterator(J,te),ye=0;return new Y(function(){for(;;){var ve=oe.next();if(ve.done)return ve;var xe=ve.value,$e=xe[0],Je=xe[1];if(w.call(I,Je,$e,m))return F(W,N?$e:ye++,Je,ve)}})},q}function _z(m,w,I){var N=vt().asMutable();return m.__iterate(function(q,W){N.update(w.call(I,q,W,m),0,function(te){return te+1})}),N.asImmutable()}function Ez(m,w,I){var N=c(m),q=(h(m)?Er():vt()).asMutable();m.__iterate(function(te,oe){q.update(w.call(I,te,oe,m),function(ye){return ye=ye||[],ye.push(N?[oe,te]:te),ye})});var W=IR(m);return q.map(function(te){return Jt(m,W(te))})}function $m(m,w,I,N){var q=m.size;if(w!==void 0&&(w=w|0),I!==void 0&&(I===1/0?I=q:I=I|0),X(w,I,q))return m;var W=V(w,q),te=G(I,q);if(W!==W||te!==te)return $m(m.toSeq().cacheResult(),w,I,N);var oe=te-W,ye;oe===oe&&(ye=oe<0?0:oe);var ve=zi(m);return ve.size=ye===0?ye:m.size&&ye||void 0,!N&&re(m)&&ye>=0&&(ve.get=function(xe,$e){return xe=P(this,xe),xe>=0&&xe<ye?m.get(xe+W,$e):$e}),ve.__iterateUncached=function(xe,$e){var Je=this;if(ye===0)return 0;if($e)return this.cacheResult().__iterate(xe,$e);var ut=0,bt=!0,ur=0;return m.__iterate(function(wi,Ki){if(!(bt&&(bt=ut++<W)))return ur++,xe(wi,N?Ki:ur-1,Je)!==!1&&ur!==ye}),ur},ve.__iteratorUncached=function(xe,$e){if(ye!==0&&$e)return this.cacheResult().__iterator(xe,$e);var Je=ye!==0&&m.__iterator(xe,$e),ut=0,bt=0;return new Y(function(){for(;ut++<W;)Je.next();if(++bt>ye)return L();var ur=Je.next();return N||xe===B?ur:xe===Z?F(xe,bt-1,void 0,ur):F(xe,bt-1,ur.value[1],ur)})},ve}function Sz(m,w,I){var N=zi(m);return N.__iterateUncached=function(q,W){var te=this;if(W)return this.cacheResult().__iterate(q,W);var oe=0;return m.__iterate(function(ye,ve,xe){return w.call(I,ye,ve,xe)&&++oe&&q(ye,ve,te)}),oe},N.__iteratorUncached=function(q,W){var te=this;if(W)return this.cacheResult().__iterator(q,W);var oe=m.__iterator(J,W),ye=!0;return new Y(function(){if(!ye)return L();var ve=oe.next();if(ve.done)return ve;var xe=ve.value,$e=xe[0],Je=xe[1];return w.call(I,Je,$e,te)?q===J?ve:F(q,$e,Je,ve):(ye=!1,L())})},N}function AR(m,w,I,N){var q=zi(m);return q.__iterateUncached=function(W,te){var oe=this;if(te)return this.cacheResult().__iterate(W,te);var ye=!0,ve=0;return m.__iterate(function(xe,$e,Je){if(!(ye&&(ye=w.call(I,xe,$e,Je))))return ve++,W(xe,N?$e:ve-1,oe)}),ve},q.__iteratorUncached=function(W,te){var oe=this;if(te)return this.cacheResult().__iterator(W,te);var ye=m.__iterator(J,te),ve=!0,xe=0;return new Y(function(){var $e,Je,ut;do{if($e=ye.next(),$e.done)return N||W===B?$e:W===Z?F(W,xe++,void 0,$e):F(W,xe++,$e.value[1],$e);var bt=$e.value;Je=bt[0],ut=bt[1],ve&&(ve=w.call(I,ut,Je,oe))}while(ve);return W===J?$e:F(W,Je,ut,$e)})},q}function wz(m,w){var I=c(m),N=[m].concat(w).map(function(te){return u(te)?I&&(te=s(te)):te=I?Ie(te):Fe(Array.isArray(te)?te:[te]),te}).filter(function(te){return te.size!==0});if(N.length===0)return m;if(N.length===1){var q=N[0];if(q===m||I&&c(q)||l(m)&&l(q))return q}var W=new $(N);return I?W=W.toKeyedSeq():l(m)||(W=W.toSetSeq()),W=W.flatten(!0),W.size=N.reduce(function(te,oe){if(te!==void 0){var ye=oe.size;if(ye!==void 0)return te+ye}},0),W}function OR(m,w,I){var N=zi(m);return N.__iterateUncached=function(q,W){var te=0,oe=!1;function ye(ve,xe){var $e=this;ve.__iterate(function(Je,ut){return(!w||xe<w)&&u(Je)?ye(Je,xe+1):q(Je,I?ut:te++,$e)===!1&&(oe=!0),!oe},W)}return ye(m,0),te},N.__iteratorUncached=function(q,W){var te=m.__iterator(q,W),oe=[],ye=0;return new Y(function(){for(;te;){var ve=te.next();if(ve.done!==!1){te=oe.pop();continue}var xe=ve.value;if(q===J&&(xe=xe[1]),(!w||oe.length<w)&&u(xe))oe.push(te),te=xe.__iterator(q,W);else return I?ve:F(q,ye++,xe,ve)}return L()})},N}function xz(m,w,I){var N=IR(m);return m.toSeq().map(function(q,W){return N(w.call(I,q,W,m))}).flatten(!0)}function Az(m,w){var I=zi(m);return I.size=m.size&&m.size*2-1,I.__iterateUncached=function(N,q){var W=this,te=0;return m.__iterate(function(oe,ye){return(!te||N(w,te++,W)!==!1)&&N(oe,te++,W)!==!1},q),te},I.__iteratorUncached=function(N,q){var W=m.__iterator(B,q),te=0,oe;return new Y(function(){return(!oe||te%2)&&(oe=W.next(),oe.done)?oe:te%2?F(N,te++,w):F(N,te++,oe.value,oe)})},I}function Ao(m,w,I){w||(w=jR);var N=c(m),q=0,W=m.toSeq().map(function(te,oe){return[oe,te,q++,I?I(te,oe,m):te]}).toArray();return W.sort(function(te,oe){return w(te[3],oe[3])||te[2]-oe[2]}).forEach(N?function(te,oe){W[oe].length=2}:function(te,oe){W[oe]=te[1]}),N?ze(W):l(m)?he(W):_e(W)}function jf(m,w,I){if(w||(w=jR),I){var N=m.toSeq().map(function(q,W){return[q,I(q,W,m)]}).reduce(function(q,W){return CR(w,q[1],W[1])?W:q});return N&&N[0]}else return m.reduce(function(q,W){return CR(w,q,W)?W:q})}function CR(m,w,I){var N=m(I,w);return N===0&&I!==w&&(I==null||I!==I)||N>0}function Fm(m,w,I){var N=zi(m);return N.size=new $(I).map(function(q){return q.size}).min(),N.__iterate=function(q,W){for(var te=this.__iterator(B,W),oe,ye=0;!(oe=te.next()).done&&q(oe.value,ye++,this)!==!1;);return ye},N.__iteratorUncached=function(q,W){var te=I.map(function(ve){return ve=i(ve),Ae(W?ve.reverse():ve)}),oe=0,ye=!1;return new Y(function(){var ve;return ye||(ve=te.map(function(xe){return xe.next()}),ye=ve.some(function(xe){return xe.done})),ye?L():F(q,oe++,w.apply(null,ve.map(function(xe){return xe.value})))})},N}function Jt(m,w){return re(m)?w:m.constructor(w)}function RR(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function TR(m){return kr(m.size),D(m)}function IR(m){return c(m)?s:l(m)?a:o}function zi(m){return Object.create((c(m)?ze:l(m)?he:_e).prototype)}function Lm(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Re.prototype.cacheResult.call(this)}function jR(m,w){return m>w?1:m<w?-1:0}function kR(m){var w=Ae(m);if(!w){if(!ce(m))throw new TypeError("Expected iterable or array-like: "+m);w=Ae(i(m))}return w}n(Bn,mt);function Bn(m,w){var I,N=function(te){if(te instanceof N)return te;if(!(this instanceof N))return new N(te);if(!I){I=!0;var oe=Object.keys(m);Oz(q,oe),q.size=oe.length,q._name=w,q._keys=oe,q._defaultValues=m}this._map=vt(te)},q=N.prototype=Object.create(Br);return q.constructor=N,N}Bn.prototype.toString=function(){return this.__toString(PR(this)+" {","}")},Bn.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},Bn.prototype.get=function(m,w){if(!this.has(m))return w;var I=this._defaultValues[m];return this._map?this._map.get(m,I):I},Bn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=kf(this,qe()))},Bn.prototype.set=function(m,w){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+PR(this));if(this._map&&!this._map.has(m)){var I=this._defaultValues[m];if(w===I)return this}var N=this._map&&this._map.set(m,w);return this.__ownerID||N===this._map?this:kf(this,N)},Bn.prototype.remove=function(m){if(!this.has(m))return this;var w=this._map&&this._map.remove(m);return this.__ownerID||w===this._map?this:kf(this,w)},Bn.prototype.wasAltered=function(){return this._map.wasAltered()},Bn.prototype.__iterator=function(m,w){var I=this;return s(this._defaultValues).map(function(N,q){return I.get(q)}).__iterator(m,w)},Bn.prototype.__iterate=function(m,w){var I=this;return s(this._defaultValues).map(function(N,q){return I.get(q)}).__iterate(m,w)},Bn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var w=this._map&&this._map.__ensureOwner(m);return m?kf(this,w,m):(this.__ownerID=m,this._map=w,this)};var Br=Bn.prototype;Br[E]=Br.remove,Br.deleteIn=Br.removeIn=be.removeIn,Br.merge=be.merge,Br.mergeWith=be.mergeWith,Br.mergeIn=be.mergeIn,Br.mergeDeep=be.mergeDeep,Br.mergeDeepWith=be.mergeDeepWith,Br.mergeDeepIn=be.mergeDeepIn,Br.setIn=be.setIn,Br.update=be.update,Br.updateIn=be.updateIn,Br.withMutations=be.withMutations,Br.asMutable=be.asMutable,Br.asImmutable=be.asImmutable;function kf(m,w,I){var N=Object.create(Object.getPrototypeOf(m));return N._map=w,N.__ownerID=I,N}function PR(m){return m._name||m.constructor.name||"Record"}function Oz(m,w){try{w.forEach(Cz.bind(void 0,m))}catch{}}function Cz(m,w){Object.defineProperty(m,w,{get:function(){return this.get(w)},set:function(I){Ee(this.__ownerID,"Cannot set on an immutable record."),this.set(w,I)}})}n(or,Te);function or(m){return m==null?Vm():Bm(m)&&!h(m)?m:Vm().withMutations(function(w){var I=o(m);kr(I.size),I.forEach(function(N){return w.add(N)})})}or.of=function(){return this(arguments)},or.fromKeys=function(m){return this(s(m).keySeq())},or.prototype.toString=function(){return this.__toString("Set {","}")},or.prototype.has=function(m){return this._map.has(m)},or.prototype.add=function(m){return Um(this,this._map.set(m,!0))},or.prototype.remove=function(m){return Um(this,this._map.remove(m))},or.prototype.clear=function(){return Um(this,this._map.clear())},or.prototype.union=function(){var m=r.call(arguments,0);return m=m.filter(function(w){return w.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(w){for(var I=0;I<m.length;I++)o(m[I]).forEach(function(N){return w.add(N)})})},or.prototype.intersect=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(I){return o(I)});var w=this;return this.withMutations(function(I){w.forEach(function(N){m.every(function(q){return q.includes(N)})||I.remove(N)})})},or.prototype.subtract=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(I){return o(I)});var w=this;return this.withMutations(function(I){w.forEach(function(N){m.some(function(q){return q.includes(N)})&&I.remove(N)})})},or.prototype.merge=function(){return this.union.apply(this,arguments)},or.prototype.mergeWith=function(m){var w=r.call(arguments,1);return this.union.apply(this,w)},or.prototype.sort=function(m){return Wi(Ao(this,m))},or.prototype.sortBy=function(m,w){return Wi(Ao(this,w,m))},or.prototype.wasAltered=function(){return this._map.wasAltered()},or.prototype.__iterate=function(m,w){var I=this;return this._map.__iterate(function(N,q){return m(q,q,I)},w)},or.prototype.__iterator=function(m,w){return this._map.map(function(I,N){return N}).__iterator(m,w)},or.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var w=this._map.__ensureOwner(m);return m?this.__make(w,m):(this.__ownerID=m,this._map=w,this)};function Bm(m){return!!(m&&m[NR])}or.isSet=Bm;var NR="@@__IMMUTABLE_SET__@@",Un=or.prototype;Un[NR]=!0,Un[E]=Un.remove,Un.mergeDeep=Un.merge,Un.mergeDeepWith=Un.mergeWith,Un.withMutations=be.withMutations,Un.asMutable=be.asMutable,Un.asImmutable=be.asImmutable,Un.__empty=Vm,Un.__make=MR;function Um(m,w){return m.__ownerID?(m.size=w.size,m._map=w,m):w===m._map?m:w.size===0?m.__empty():m.__make(w)}function MR(m,w){var I=Object.create(Un);return I.size=m?m.size:0,I._map=m,I.__ownerID=w,I}var DR;function Vm(){return DR||(DR=MR(qe()))}n(Wi,or);function Wi(m){return m==null?zm():qR(m)?m:zm().withMutations(function(w){var I=o(m);kr(I.size),I.forEach(function(N){return w.add(N)})})}Wi.of=function(){return this(arguments)},Wi.fromKeys=function(m){return this(s(m).keySeq())},Wi.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function qR(m){return Bm(m)&&h(m)}Wi.isOrderedSet=qR;var Pf=Wi.prototype;Pf[v]=!0,Pf.__empty=zm,Pf.__make=$R;function $R(m,w){var I=Object.create(Pf);return I.size=m?m.size:0,I._map=m,I.__ownerID=w,I}var FR;function zm(){return FR||(FR=$R(If()))}n(Ar,Lt);function Ar(m){return m==null?Wm():LR(m)?m:Wm().unshiftAll(m)}Ar.of=function(){return this(arguments)},Ar.prototype.toString=function(){return this.__toString("Stack [","]")},Ar.prototype.get=function(m,w){var I=this._head;for(m=P(this,m);I&&m--;)I=I.next;return I?I.value:w},Ar.prototype.peek=function(){return this._head&&this._head.value},Ar.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,w=this._head,I=arguments.length-1;I>=0;I--)w={value:arguments[I],next:w};return this.__ownerID?(this.size=m,this._head=w,this.__hash=void 0,this.__altered=!0,this):qu(m,w)},Ar.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;kr(m.size);var w=this.size,I=this._head;return m.reverse().forEach(function(N){w++,I={value:N,next:I}}),this.__ownerID?(this.size=w,this._head=I,this.__hash=void 0,this.__altered=!0,this):qu(w,I)},Ar.prototype.pop=function(){return this.slice(1)},Ar.prototype.unshift=function(){return this.push.apply(this,arguments)},Ar.prototype.unshiftAll=function(m){return this.pushAll(m)},Ar.prototype.shift=function(){return this.pop.apply(this,arguments)},Ar.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):Wm()},Ar.prototype.slice=function(m,w){if(X(m,w,this.size))return this;var I=V(m,this.size),N=G(w,this.size);if(N!==this.size)return Lt.prototype.slice.call(this,m,w);for(var q=this.size-I,W=this._head;I--;)W=W.next;return this.__ownerID?(this.size=q,this._head=W,this.__hash=void 0,this.__altered=!0,this):qu(q,W)},Ar.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?qu(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},Ar.prototype.__iterate=function(m,w){if(w)return this.reverse().__iterate(m);for(var I=0,N=this._head;N&&m(N.value,I++,this)!==!1;)N=N.next;return I},Ar.prototype.__iterator=function(m,w){if(w)return this.reverse().__iterator(m);var I=0,N=this._head;return new Y(function(){if(N){var q=N.value;return N=N.next,F(m,I++,q)}return L()})};function LR(m){return!!(m&&m[BR])}Ar.isStack=LR;var BR="@@__IMMUTABLE_STACK__@@",Oo=Ar.prototype;Oo[BR]=!0,Oo.withMutations=be.withMutations,Oo.asMutable=be.asMutable,Oo.asImmutable=be.asImmutable,Oo.wasAltered=be.wasAltered;function qu(m,w,I,N){var q=Object.create(Oo);return q.size=m,q._head=w,q.__ownerID=I,q.__hash=N,q.__altered=!1,q}var UR;function Wm(){return UR||(UR=qu(0))}function Ji(m,w){var I=function(N){m.prototype[N]=w[N]};return Object.keys(w).forEach(I),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(w).forEach(I),m}i.Iterator=Y,Ji(i,{toArray:function(){kr(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(w,I){m[I]=w}),m},toIndexedSeq:function(){return new So(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 ni(this,!0)},toMap:function(){return vt(this.toKeyedSeq())},toObject:function(){kr(this.size);var m={};return this.__iterate(function(w,I){m[I]=w}),m},toOrderedMap:function(){return Er(this.toKeyedSeq())},toOrderedSet:function(){return Wi(c(this)?this.valueSeq():this)},toSet:function(){return or(c(this)?this.valueSeq():this)},toSetSeq:function(){return new wo(this)},toSeq:function(){return l(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ar(c(this)?this.valueSeq():this)},toList:function(){return ft(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,w){return this.size===0?m+w:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+w},concat:function(){var m=r.call(arguments,0);return Jt(this,wz(this,m))},includes:function(m){return this.some(function(w){return Pt(w,m)})},entries:function(){return this.__iterator(J)},every:function(m,w){kr(this.size);var I=!0;return this.__iterate(function(N,q,W){if(!m.call(w,N,q,W))return I=!1,!1}),I},filter:function(m,w){return Jt(this,xR(this,m,w,!0))},find:function(m,w,I){var N=this.findEntry(m,w);return N?N[1]:I},forEach:function(m,w){return kr(this.size),this.__iterate(w?m.bind(w):m)},join:function(m){kr(this.size),m=m!==void 0?""+m:",";var w="",I=!0;return this.__iterate(function(N){I?I=!1:w+=m,w+=N!=null?N.toString():""}),w},keys:function(){return this.__iterator(Z)},map:function(m,w){return Jt(this,wR(this,m,w))},reduce:function(m,w,I){kr(this.size);var N,q;return arguments.length<2?q=!0:N=w,this.__iterate(function(W,te,oe){q?(q=!1,N=W):N=m.call(I,N,W,te,oe)}),N},reduceRight:function(m,w,I){var N=this.toKeyedSeq().reverse();return N.reduce.apply(N,arguments)},reverse:function(){return Jt(this,qm(this,!0))},slice:function(m,w){return Jt(this,$m(this,m,w,!0))},some:function(m,w){return!this.every(Mf(m),w)},sort:function(m){return Jt(this,Ao(this,m))},values:function(){return this.__iterator(B)},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,w){return D(m?this.toSeq().filter(m,w):this)},countBy:function(m,w){return _z(this,m,w)},equals:function(m){return Bs(this,m)},entrySeq:function(){var m=this;if(m._cache)return new $(m._cache);var w=m.toSeq().map(Tz).toIndexedSeq();return w.fromEntrySeq=function(){return m.toSeq()},w},filterNot:function(m,w){return this.filter(Mf(m),w)},findEntry:function(m,w,I){var N=I;return this.__iterate(function(q,W,te){if(m.call(w,q,W,te))return N=[W,q],!1}),N},findKey:function(m,w){var I=this.findEntry(m,w);return I&&I[0]},findLast:function(m,w,I){return this.toKeyedSeq().reverse().find(m,w,I)},findLastEntry:function(m,w,I){return this.toKeyedSeq().reverse().findEntry(m,w,I)},findLastKey:function(m,w){return this.toKeyedSeq().reverse().findKey(m,w)},first:function(){return this.find(H)},flatMap:function(m,w){return Jt(this,xz(this,m,w))},flatten:function(m){return Jt(this,OR(this,m,!0))},fromEntrySeq:function(){return new xo(this)},get:function(m,w){return this.find(function(I,N){return Pt(N,m)},void 0,w)},getIn:function(m,w){for(var I=this,N=kR(m),q;!(q=N.next()).done;){var W=q.value;if(I=I&&I.get?I.get(W,_):_,I===_)return w}return I},groupBy:function(m,w){return Ez(this,m,w)},has:function(m){return this.get(m,_)!==_},hasIn:function(m){return this.getIn(m,_)!==_},isSubset:function(m){return m=typeof m.includes=="function"?m:i(m),this.every(function(w){return m.includes(w)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:i(m),m.isSubset(this)},keyOf:function(m){return this.findKey(function(w){return Pt(w,m)})},keySeq:function(){return this.toSeq().map(Rz).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(m){return this.toKeyedSeq().reverse().keyOf(m)},max:function(m){return jf(this,m)},maxBy:function(m,w){return jf(this,w,m)},min:function(m){return jf(this,m?VR(m):WR)},minBy:function(m,w){return jf(this,w?VR(w):WR,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return Jt(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,w){return Jt(this,AR(this,m,w,!0))},skipUntil:function(m,w){return this.skipWhile(Mf(m),w)},sortBy:function(m,w){return Jt(this,Ao(this,w,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return Jt(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,w){return Jt(this,Sz(this,m,w))},takeUntil:function(m,w){return this.takeWhile(Mf(m),w)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=jz(this))}});var un=i.prototype;un[p]=!0,un[ae]=un.values,un.__toJS=un.toArray,un.__toStringMapper=zR,un.inspect=un.toSource=function(){return this.toString()},un.chain=un.flatMap,un.contains=un.includes,Ji(s,{flip:function(){return Jt(this,SR(this))},mapEntries:function(m,w){var I=this,N=0;return Jt(this,this.toSeq().map(function(q,W){return m.call(w,[W,q],N++,I)}).fromEntrySeq())},mapKeys:function(m,w){var I=this;return Jt(this,this.toSeq().flip().map(function(N,q){return m.call(w,N,q,I)}).flip())}});var Nf=s.prototype;Nf[g]=!0,Nf[ae]=un.entries,Nf.__toJS=un.toObject,Nf.__toStringMapper=function(m,w){return JSON.stringify(w)+": "+zR(m)},Ji(a,{toKeyedSeq:function(){return new ni(this,!1)},filter:function(m,w){return Jt(this,xR(this,m,w,!1))},findIndex:function(m,w){var I=this.findEntry(m,w);return I?I[0]:-1},indexOf:function(m){var w=this.keyOf(m);return w===void 0?-1:w},lastIndexOf:function(m){var w=this.lastKeyOf(m);return w===void 0?-1:w},reverse:function(){return Jt(this,qm(this,!1))},slice:function(m,w){return Jt(this,$m(this,m,w,!1))},splice:function(m,w){var I=arguments.length;if(w=Math.max(w|0,0),I===0||I===2&&!w)return this;m=V(m,m<0?this.count():this.size);var N=this.slice(0,m);return Jt(this,I===1?N:N.concat(k(arguments,2),this.slice(m+w)))},findLastIndex:function(m,w){var I=this.findLastEntry(m,w);return I?I[0]:-1},first:function(){return this.get(0)},flatten:function(m){return Jt(this,OR(this,m,!1))},get:function(m,w){return m=P(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?w:this.find(function(I,N){return N===m},void 0,w)},has:function(m){return m=P(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return Jt(this,Az(this,m))},interleave:function(){var m=[this].concat(k(arguments)),w=Fm(this.toSeq(),he.of,m),I=w.flatten(!0);return w.size&&(I.size=w.size*m.length),Jt(this,I)},keySeq:function(){return Ce(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(m,w){return Jt(this,AR(this,m,w,!1))},zip:function(){var m=[this].concat(k(arguments));return Jt(this,Fm(this,Iz,m))},zipWith:function(m){var w=k(arguments);return w[0]=this,Jt(this,Fm(this,m,w))}}),a.prototype[y]=!0,a.prototype[v]=!0,Ji(o,{get:function(m,w){return this.has(m)?m:w},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=un.includes,o.prototype.contains=o.prototype.includes,Ji(ze,s.prototype),Ji(he,a.prototype),Ji(_e,o.prototype),Ji(mt,s.prototype),Ji(Lt,a.prototype),Ji(Te,o.prototype);function Rz(m,w){return w}function Tz(m,w){return[w,m]}function Mf(m){return function(){return!m.apply(this,arguments)}}function VR(m){return function(){return-m.apply(this,arguments)}}function zR(m){return typeof m=="string"?JSON.stringify(m):String(m)}function Iz(){return k(arguments)}function WR(m,w){return m<w?1:m>w?-1:0}function jz(m){if(m.size===1/0)return 0;var w=h(m),I=c(m),N=w?1:0,q=m.__iterate(I?w?function(W,te){N=31*N+JR(Xe(W),Xe(te))|0}:function(W,te){N=N+JR(Xe(W),Xe(te))|0}:w?function(W){N=31*N+Xe(W)|0}:function(W){N=N+Xe(W)|0});return kz(q,N)}function kz(m,w){return w=Le(w,3432918353),w=Le(w<<15|w>>>-15,461845907),w=Le(w<<13|w>>>-13,5),w=(w+3864292196|0)^m,w=Le(w^w>>>16,2246822507),w=Le(w^w>>>13,3266489909),w=nt(w^w>>>16),w}function JR(m,w){return m^w+2654435769+(m<<6)+(m>>2)|0}var Pz={Iterable:i,Seq:Re,Collection:at,Map:vt,OrderedMap:Er,List:ft,Stack:Ar,Set:or,OrderedSet:Wi,Record:Bn,Range:Ce,Repeat:pr,is:Pt,fromJS:Ei};return Pz})}(ld)),ld.exports}var Pa=kA();const lW=Ue.getDefaultExportFromCjs(Pa);var Fu={},Lf={exports:{}},_s={},Bf={exports:{}},dT;function EL(){return dT||(dT=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(r){return r&&r.type==="@@redux/INIT"?"initialState argument passed to createStore":"previous state received by the reducer"},e.exports=t.default}(Bf,Bf.exports)),Bf.exports}var Uf={exports:{}},pT;function fW(){return pT||(pT=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=kA(),n=a(r),i=EL(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}t.default=function(o,u,c){var l=Object.keys(u);if(!l.length)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";var f=(0,s.default)(c);if(n.default.isImmutable?!n.default.isImmutable(o):!n.default.Iterable.isIterable(o))return"The "+f+' is of unexpected type. Expected argument to be an instance of Immutable.Collection or Immutable.Record with the following properties: "'+l.join('", "')+'".';var h=o.toSeq().keySeq().toArray().filter(function(p){return!u.hasOwnProperty(p)});return h.length>0?"Unexpected "+(h.length===1?"property":"properties")+' "'+h.join('", "')+'" found in '+f+'. Expected to find one of the known reducer property names instead: "'+l.join('", "')+'". Unexpected properties will be ignored.':null},e.exports=t.default}(Uf,Uf.exports)),Uf.exports}var Vf={exports:{}},hT;function dW(){return hT||(hT=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.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.')},e.exports=t.default}(Vf,Vf.exports)),Vf.exports}var mT;function pW(){if(mT)return _s;mT=1,Object.defineProperty(_s,"__esModule",{value:!0}),_s.validateNextState=_s.getUnexpectedInvocationParameterMessage=_s.getStateName=void 0;var e=EL(),t=a(e),r=fW(),n=a(r),i=dW(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}return _s.getStateName=t.default,_s.getUnexpectedInvocationParameterMessage=n.default,_s.validateNextState=s.default,_s}var gT;function hW(){return gT||(gT=1,function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=kA(),n=s(r),i=pW();function s(a){return a&&a.__esModule?a:{default:a}}t.default=function(a){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:n.default.Map,u=Object.keys(a);return function(){var c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o(),l=arguments[1];if(process.env.NODE_ENV!=="production"){var f=(0,i.getUnexpectedInvocationParameterMessage)(c,a,l);f&&console.error(f)}return c.withMutations(function(h){u.forEach(function(p){var g=a[p],y=h.get(p),v=g(y,l);(0,i.validateNextState)(v,p,l),h.set(p,v)})})}},e.exports=t.default}(Lf,Lf.exports)),Lf.exports}var yT;function mW(){if(yT)return Fu;yT=1,Object.defineProperty(Fu,"__esModule",{value:!0}),Fu.combineReducers=void 0;var e=hW(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Fu.combineReducers=t.default,Fu}var gW=mW(),Qm,vT;function yW(){if(vT)return Qm;vT=1;class e extends Error{constructor(u){super(e._prepareSuperMessage(u)),Object.defineProperty(this,"name",{value:"NonError",configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(u){try{return JSON.stringify(u)}catch{return String(u)}}}const t=[{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_:c,forceEnumerable:l,maxDepth:f,depth:h})=>{const p=c||(Array.isArray(o)?[]:{});if(u.push(o),h>=f)return p;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)){p[g]="[object Buffer]";continue}if(typeof y!="function"){if(!y||typeof y!="object"){p[g]=y;continue}if(!u.includes(o[g])){h++,p[g]=i({from:o[g],seen:u.slice(),forceEnumerable:l,maxDepth:f,depth:h});continue}p[g]="[Circular]"}}for(const{property:g,enumerable:y}of t)typeof o[g]=="string"&&Object.defineProperty(p,g,{value:o[g],enumerable:l?!0:y,configurable:!0,writable:!0});return p};return Qm={serializeError:(o,u={})=>{const{maxDepth:c=Number.POSITIVE_INFINITY}=u;return typeof o=="object"&&o!==null?i({from:o,seen:[],forceEnumerable:!0,maxDepth:c,depth:0}):typeof o=="function"?`[Function: ${o.name||"anonymous"}]`:o},deserializeError:(o,u={})=>{const{maxDepth:c=Number.POSITIVE_INFINITY}=u;if(o instanceof Error)return o;if(typeof o=="object"&&o!==null&&!Array.isArray(o)){const l=new Error;return i({from:o,seen:[],to_:l,maxDepth:c,depth:0}),l}return new e(o)}},Qm}var vW=yW(),eg,bT;function bW(){if(bT)return eg;bT=1;function e(){this.__data__=[],this.size=0}return eg=e,eg}var tg,_T;function lu(){if(_T)return tg;_T=1;function e(t,r){return t===r||t!==t&&r!==r}return tg=e,tg}var rg,ET;function Jp(){if(ET)return rg;ET=1;var e=lu();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return rg=t,rg}var ng,ST;function _W(){if(ST)return ng;ST=1;var e=Jp(),t=Array.prototype,r=t.splice;function n(i){var s=this.__data__,a=e(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 ng=n,ng}var ig,wT;function EW(){if(wT)return ig;wT=1;var e=Jp();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return ig=t,ig}var sg,xT;function SW(){if(xT)return sg;xT=1;var e=Jp();function t(r){return e(this.__data__,r)>-1}return sg=t,sg}var ag,AT;function wW(){if(AT)return ag;AT=1;var e=Jp();function t(r,n){var i=this.__data__,s=e(i,r);return s<0?(++this.size,i.push([r,n])):i[s][1]=n,this}return ag=t,ag}var og,OT;function Kp(){if(OT)return og;OT=1;var e=bW(),t=_W(),r=EW(),n=SW(),i=wW();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,og=s,og}var ug,CT;function xW(){if(CT)return ug;CT=1;var e=Kp();function t(){this.__data__=new e,this.size=0}return ug=t,ug}var cg,RT;function AW(){if(RT)return cg;RT=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return cg=e,cg}var lg,TT;function OW(){if(TT)return lg;TT=1;function e(t){return this.__data__.get(t)}return lg=e,lg}var fg,IT;function CW(){if(IT)return fg;IT=1;function e(t){return this.__data__.has(t)}return fg=e,fg}var dg,jT;function SL(){if(jT)return dg;jT=1;var e=typeof Ue.commonjsGlobal=="object"&&Ue.commonjsGlobal&&Ue.commonjsGlobal.Object===Object&&Ue.commonjsGlobal;return dg=e,dg}var pg,kT;function wn(){if(kT)return pg;kT=1;var e=SL(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return pg=r,pg}var hg,PT;function fu(){if(PT)return hg;PT=1;var e=wn(),t=e.Symbol;return hg=t,hg}var mg,NT;function RW(){if(NT)return mg;NT=1;var e=fu(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,i=e?e.toStringTag:void 0;function s(a){var o=r.call(a,i),u=a[i];try{a[i]=void 0;var c=!0}catch{}var l=n.call(a);return c&&(o?a[i]=u:delete a[i]),l}return mg=s,mg}var gg,MT;function TW(){if(MT)return gg;MT=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return gg=r,gg}var yg,DT;function us(){if(DT)return yg;DT=1;var e=fu(),t=RW(),r=TW(),n="[object Null]",i="[object Undefined]",s=e?e.toStringTag:void 0;function a(o){return o==null?o===void 0?i:n:s&&s in Object(o)?t(o):r(o)}return yg=a,yg}var vg,qT;function xn(){if(qT)return vg;qT=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return vg=e,vg}var bg,$T;function Hc(){if($T)return bg;$T=1;var e=us(),t=xn(),r="[object AsyncFunction]",n="[object Function]",i="[object GeneratorFunction]",s="[object Proxy]";function a(o){if(!t(o))return!1;var u=e(o);return u==n||u==i||u==r||u==s}return bg=a,bg}var _g,FT;function IW(){if(FT)return _g;FT=1;var e=wn(),t=e["__core-js_shared__"];return _g=t,_g}var Eg,LT;function jW(){if(LT)return Eg;LT=1;var e=IW(),t=function(){var n=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}();function r(n){return!!t&&t in n}return Eg=r,Eg}var Sg,BT;function wL(){if(BT)return Sg;BT=1;var e=Function.prototype,t=e.toString;function r(n){if(n!=null){try{return t.call(n)}catch{}try{return n+""}catch{}}return""}return Sg=r,Sg}var wg,UT;function kW(){if(UT)return wg;UT=1;var e=Hc(),t=jW(),r=xn(),n=wL(),i=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,a=Function.prototype,o=Object.prototype,u=a.toString,c=o.hasOwnProperty,l=RegExp("^"+u.call(c).replace(i,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function f(h){if(!r(h)||t(h))return!1;var p=e(h)?l:s;return p.test(n(h))}return wg=f,wg}var xg,VT;function PW(){if(VT)return xg;VT=1;function e(t,r){return t==null?void 0:t[r]}return xg=e,xg}var Ag,zT;function Qa(){if(zT)return Ag;zT=1;var e=kW(),t=PW();function r(n,i){var s=t(n,i);return e(s)?s:void 0}return Ag=r,Ag}var Og,WT;function PA(){if(WT)return Og;WT=1;var e=Qa(),t=wn(),r=e(t,"Map");return Og=r,Og}var Cg,JT;function Hp(){if(JT)return Cg;JT=1;var e=Qa(),t=e(Object,"create");return Cg=t,Cg}var Rg,KT;function NW(){if(KT)return Rg;KT=1;var e=Hp();function t(){this.__data__=e?e(null):{},this.size=0}return Rg=t,Rg}var Tg,HT;function MW(){if(HT)return Tg;HT=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Tg=e,Tg}var Ig,GT;function DW(){if(GT)return Ig;GT=1;var e=Hp(),t="__lodash_hash_undefined__",r=Object.prototype,n=r.hasOwnProperty;function i(s){var a=this.__data__;if(e){var o=a[s];return o===t?void 0:o}return n.call(a,s)?a[s]:void 0}return Ig=i,Ig}var jg,YT;function qW(){if(YT)return jg;YT=1;var e=Hp(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var s=this.__data__;return e?s[i]!==void 0:r.call(s,i)}return jg=n,jg}var kg,XT;function $W(){if(XT)return kg;XT=1;var e=Hp(),t="__lodash_hash_undefined__";function r(n,i){var s=this.__data__;return this.size+=this.has(n)?0:1,s[n]=e&&i===void 0?t:i,this}return kg=r,kg}var Pg,ZT;function FW(){if(ZT)return Pg;ZT=1;var e=NW(),t=MW(),r=DW(),n=qW(),i=$W();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Pg=s,Pg}var Ng,QT;function LW(){if(QT)return Ng;QT=1;var e=FW(),t=Kp(),r=PA();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Ng=n,Ng}var Mg,eI;function BW(){if(eI)return Mg;eI=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Mg=e,Mg}var Dg,tI;function Gp(){if(tI)return Dg;tI=1;var e=BW();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Dg=t,Dg}var qg,rI;function UW(){if(rI)return qg;rI=1;var e=Gp();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return qg=t,qg}var $g,nI;function VW(){if(nI)return $g;nI=1;var e=Gp();function t(r){return e(this,r).get(r)}return $g=t,$g}var Fg,iI;function zW(){if(iI)return Fg;iI=1;var e=Gp();function t(r){return e(this,r).has(r)}return Fg=t,Fg}var Lg,sI;function WW(){if(sI)return Lg;sI=1;var e=Gp();function t(r,n){var i=e(this,r),s=i.size;return i.set(r,n),this.size+=i.size==s?0:1,this}return Lg=t,Lg}var Bg,aI;function NA(){if(aI)return Bg;aI=1;var e=LW(),t=UW(),r=VW(),n=zW(),i=WW();function s(a){var o=-1,u=a==null?0:a.length;for(this.clear();++o<u;){var c=a[o];this.set(c[0],c[1])}}return s.prototype.clear=e,s.prototype.delete=t,s.prototype.get=r,s.prototype.has=n,s.prototype.set=i,Bg=s,Bg}var Ug,oI;function JW(){if(oI)return Ug;oI=1;var e=Kp(),t=PA(),r=NA(),n=200;function i(s,a){var o=this.__data__;if(o instanceof e){var u=o.__data__;if(!t||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 Ug=i,Ug}var Vg,uI;function Yp(){if(uI)return Vg;uI=1;var e=Kp(),t=xW(),r=AW(),n=OW(),i=CW(),s=JW();function a(o){var u=this.__data__=new e(o);this.size=u.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=i,a.prototype.set=s,Vg=a,Vg}var zg,cI;function xL(){if(cI)return zg;cI=1;var e=Qa(),t=function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}}();return zg=t,zg}var Wg,lI;function MA(){if(lI)return Wg;lI=1;var e=xL();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return Wg=t,Wg}var Jg,fI;function AL(){if(fI)return Jg;fI=1;var e=MA(),t=lu();function r(n,i,s){(s!==void 0&&!t(n[i],s)||s===void 0&&!(i in n))&&e(n,i,s)}return Jg=r,Jg}var Kg,dI;function KW(){if(dI)return Kg;dI=1;function e(t){return function(r,n,i){for(var s=-1,a=Object(r),o=i(r),u=o.length;u--;){var c=o[t?u:++s];if(n(a[c],c,a)===!1)break}return r}}return Kg=e,Kg}var Hg,pI;function OL(){if(pI)return Hg;pI=1;var e=KW(),t=e();return Hg=t,Hg}var Xu={exports:{}};Xu.exports;var hI;function CL(){return hI||(hI=1,function(e,t){var r=wn(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===n,a=s?r.Buffer:void 0,o=a?a.allocUnsafe:void 0;function u(c,l){if(l)return c.slice();var f=c.length,h=o?o(f):new c.constructor(f);return c.copy(h),h}e.exports=u}(Xu,Xu.exports)),Xu.exports}var Gg,mI;function RL(){if(mI)return Gg;mI=1;var e=wn(),t=e.Uint8Array;return Gg=t,Gg}var Yg,gI;function DA(){if(gI)return Yg;gI=1;var e=RL();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return Yg=t,Yg}var Xg,yI;function TL(){if(yI)return Xg;yI=1;var e=DA();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return Xg=t,Xg}var Zg,vI;function Gc(){if(vI)return Zg;vI=1;function e(t,r){var n=-1,i=t.length;for(r||(r=Array(i));++n<i;)r[n]=t[n];return r}return Zg=e,Zg}var Qg,bI;function Xp(){if(bI)return Qg;bI=1;var e=xn(),t=Object.create,r=function(){function n(){}return function(i){if(!e(i))return{};if(t)return t(i);n.prototype=i;var s=new n;return n.prototype=void 0,s}}();return Qg=r,Qg}var ey,_I;function IL(){if(_I)return ey;_I=1;function e(t,r){return function(n){return t(r(n))}}return ey=e,ey}var ty,EI;function qA(){if(EI)return ty;EI=1;var e=IL(),t=e(Object.getPrototypeOf,Object);return ty=t,ty}var ry,SI;function Zp(){if(SI)return ry;SI=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return ry=t,ry}var ny,wI;function jL(){if(wI)return ny;wI=1;var e=Xp(),t=qA(),r=Zp();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return ny=n,ny}var iy,xI;function An(){if(xI)return iy;xI=1;function e(t){return t!=null&&typeof t=="object"}return iy=e,iy}var sy,AI;function HW(){if(AI)return sy;AI=1;var e=us(),t=An(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return sy=n,sy}var ay,OI;function Yc(){if(OI)return ay;OI=1;var e=HW(),t=An(),r=Object.prototype,n=r.hasOwnProperty,i=r.propertyIsEnumerable,s=e(function(){return arguments}())?e:function(a){return t(a)&&n.call(a,"callee")&&!i.call(a,"callee")};return ay=s,ay}var oy,CI;function Lr(){if(CI)return oy;CI=1;var e=Array.isArray;return oy=e,oy}var uy,RI;function $A(){if(RI)return uy;RI=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return uy=t,uy}var cy,TI;function eo(){if(TI)return cy;TI=1;var e=Hc(),t=$A();function r(n){return n!=null&&t(n.length)&&!e(n)}return cy=r,cy}var ly,II;function GW(){if(II)return ly;II=1;var e=eo(),t=An();function r(n){return t(n)&&e(n)}return ly=r,ly}var Zu={exports:{}},fy,jI;function YW(){if(jI)return fy;jI=1;function e(){return!1}return fy=e,fy}Zu.exports;var kI;function Xc(){return kI||(kI=1,function(e,t){var r=wn(),n=YW(),i=t&&!t.nodeType&&t,s=i&&!0&&e&&!e.nodeType&&e,a=s&&s.exports===i,o=a?r.Buffer:void 0,u=o?o.isBuffer:void 0,c=u||n;e.exports=c}(Zu,Zu.exports)),Zu.exports}var dy,PI;function Qp(){if(PI)return dy;PI=1;var e=us(),t=qA(),r=An(),n="[object Object]",i=Function.prototype,s=Object.prototype,a=i.toString,o=s.hasOwnProperty,u=a.call(Object);function c(l){if(!r(l)||e(l)!=n)return!1;var f=t(l);if(f===null)return!0;var h=o.call(f,"constructor")&&f.constructor;return typeof h=="function"&&h instanceof h&&a.call(h)==u}return dy=c,dy}var py,NI;function XW(){if(NI)return py;NI=1;var e=us(),t=$A(),r=An(),n="[object Arguments]",i="[object Array]",s="[object Boolean]",a="[object Date]",o="[object Error]",u="[object Function]",c="[object Map]",l="[object Number]",f="[object Object]",h="[object RegExp]",p="[object Set]",g="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",E="[object DataView]",b="[object Float32Array]",S="[object Float64Array]",x="[object Int8Array]",_="[object Int16Array]",A="[object Int32Array]",C="[object Uint8Array]",T="[object Uint8ClampedArray]",O="[object Uint16Array]",M="[object Uint32Array]",k={};k[b]=k[S]=k[x]=k[_]=k[A]=k[C]=k[T]=k[O]=k[M]=!0,k[n]=k[i]=k[v]=k[s]=k[E]=k[a]=k[o]=k[u]=k[c]=k[l]=k[f]=k[h]=k[p]=k[g]=k[y]=!1;function D(P){return r(P)&&t(P.length)&&!!k[e(P)]}return py=D,py}var hy,MI;function FA(){if(MI)return hy;MI=1;function e(t){return function(r){return t(r)}}return hy=e,hy}var Qu={exports:{}};Qu.exports;var DI;function LA(){return DI||(DI=1,function(e,t){var r=SL(),n=t&&!t.nodeType&&t,i=n&&!0&&e&&!e.nodeType&&e,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{}}();e.exports=o}(Qu,Qu.exports)),Qu.exports}var my,qI;function eh(){if(qI)return my;qI=1;var e=XW(),t=FA(),r=LA(),n=r&&r.isTypedArray,i=n?t(n):e;return my=i,my}var gy,$I;function kL(){if($I)return gy;$I=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return gy=e,gy}var yy,FI;function th(){if(FI)return yy;FI=1;var e=MA(),t=lu(),r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o){var u=s[a];(!(n.call(s,a)&&t(u,o))||o===void 0&&!(a in s))&&e(s,a,o)}return yy=i,yy}var vy,LI;function du(){if(LI)return vy;LI=1;var e=th(),t=MA();function r(n,i,s,a){var o=!s;s||(s={});for(var u=-1,c=i.length;++u<c;){var l=i[u],f=a?a(s[l],n[l],l,s,n):void 0;f===void 0&&(f=n[l]),o?t(s,l,f):e(s,l,f)}return s}return vy=r,vy}var by,BI;function ZW(){if(BI)return by;BI=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return by=e,by}var _y,UI;function Zc(){if(UI)return _y;UI=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function r(n,i){var s=typeof n;return i=i??e,!!i&&(s=="number"||s!="symbol"&&t.test(n))&&n>-1&&n%1==0&&n<i}return _y=r,_y}var Ey,VI;function PL(){if(VI)return Ey;VI=1;var e=ZW(),t=Yc(),r=Lr(),n=Xc(),i=Zc(),s=eh(),a=Object.prototype,o=a.hasOwnProperty;function u(c,l){var f=r(c),h=!f&&t(c),p=!f&&!h&&n(c),g=!f&&!h&&!p&&s(c),y=f||h||p||g,v=y?e(c.length,String):[],E=v.length;for(var b in c)(l||o.call(c,b))&&!(y&&(b=="length"||p&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,E)))&&v.push(b);return v}return Ey=u,Ey}var Sy,zI;function QW(){if(zI)return Sy;zI=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return Sy=e,Sy}var wy,WI;function eJ(){if(WI)return wy;WI=1;var e=xn(),t=Zp(),r=QW(),n=Object.prototype,i=n.hasOwnProperty;function s(a){if(!e(a))return r(a);var o=t(a),u=[];for(var c in a)c=="constructor"&&(o||!i.call(a,c))||u.push(c);return u}return wy=s,wy}var xy,JI;function Qc(){if(JI)return xy;JI=1;var e=PL(),t=eJ(),r=eo();function n(i){return r(i)?e(i,!0):t(i)}return xy=n,xy}var Ay,KI;function tJ(){if(KI)return Ay;KI=1;var e=du(),t=Qc();function r(n){return e(n,t(n))}return Ay=r,Ay}var Oy,HI;function rJ(){if(HI)return Oy;HI=1;var e=AL(),t=CL(),r=TL(),n=Gc(),i=jL(),s=Yc(),a=Lr(),o=GW(),u=Xc(),c=Hc(),l=xn(),f=Qp(),h=eh(),p=kL(),g=tJ();function y(v,E,b,S,x,_,A){var C=p(v,b),T=p(E,b),O=A.get(T);if(O){e(v,b,O);return}var M=_?_(C,T,b+"",v,E,A):void 0,k=M===void 0;if(k){var D=a(T),P=!D&&u(T),H=!D&&!P&&h(T);M=T,D||P||H?a(C)?M=C:o(C)?M=n(C):P?(k=!1,M=t(T,!0)):H?(k=!1,M=r(T,!0)):M=[]:f(T)||s(T)?(M=C,s(C)?M=g(C):(!l(C)||c(C))&&(M=i(T))):k=!1}k&&(A.set(T,M),x(M,T,S,_,A),A.delete(T)),e(v,b,M)}return Oy=y,Oy}var Cy,GI;function nJ(){if(GI)return Cy;GI=1;var e=Yp(),t=AL(),r=OL(),n=rJ(),i=xn(),s=Qc(),a=kL();function o(u,c,l,f,h){u!==c&&r(c,function(p,g){if(h||(h=new e),i(p))n(u,c,g,l,o,f,h);else{var y=f?f(a(u,g),p,g+"",u,c,h):void 0;y===void 0&&(y=p),t(u,g,y)}},s)}return Cy=o,Cy}var Ry,YI;function el(){if(YI)return Ry;YI=1;function e(t){return t}return Ry=e,Ry}var Ty,XI;function BA(){if(XI)return Ty;XI=1;function e(t,r,n){switch(n.length){case 0:return t.call(r);case 1:return t.call(r,n[0]);case 2:return t.call(r,n[0],n[1]);case 3:return t.call(r,n[0],n[1],n[2])}return t.apply(r,n)}return Ty=e,Ty}var Iy,ZI;function NL(){if(ZI)return Iy;ZI=1;var e=BA(),t=Math.max;function r(n,i,s){return i=t(i===void 0?n.length-1:i,0),function(){for(var a=arguments,o=-1,u=t(a.length-i,0),c=Array(u);++o<u;)c[o]=a[i+o];o=-1;for(var l=Array(i+1);++o<i;)l[o]=a[o];return l[i]=s(c),e(n,this,l)}}return Iy=r,Iy}var jy,QI;function ML(){if(QI)return jy;QI=1;function e(t){return function(){return t}}return jy=e,jy}var ky,ej;function iJ(){if(ej)return ky;ej=1;var e=ML(),t=xL(),r=el(),n=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:r;return ky=n,ky}var Py,tj;function DL(){if(tj)return Py;tj=1;var e=800,t=16,r=Date.now;function n(i){var s=0,a=0;return function(){var o=r(),u=t-(o-a);if(a=o,u>0){if(++s>=e)return arguments[0]}else s=0;return i.apply(void 0,arguments)}}return Py=n,Py}var Ny,rj;function UA(){if(rj)return Ny;rj=1;var e=iJ(),t=DL(),r=t(e);return Ny=r,Ny}var My,nj;function sJ(){if(nj)return My;nj=1;var e=el(),t=NL(),r=UA();function n(i,s){return r(t(i,s,e),i+"")}return My=n,My}var Dy,ij;function qL(){if(ij)return Dy;ij=1;var e=lu(),t=eo(),r=Zc(),n=xn();function i(s,a,o){if(!n(o))return!1;var u=typeof a;return(u=="number"?t(o)&&r(a,o.length):u=="string"&&a in o)?e(o[a],s):!1}return Dy=i,Dy}var qy,sj;function aJ(){if(sj)return qy;sj=1;var e=sJ(),t=qL();function r(n){return e(function(i,s){var a=-1,o=s.length,u=o>1?s[o-1]:void 0,c=o>2?s[2]:void 0;for(u=n.length>3&&typeof u=="function"?(o--,u):void 0,c&&t(s[0],s[1],c)&&(u=o<3?void 0:u,o=1),i=Object(i);++a<o;){var l=s[a];l&&n(i,l,a,u)}return i})}return qy=r,qy}var $y,aj;function oJ(){if(aj)return $y;aj=1;var e=nJ(),t=aJ(),r=t(function(n,i,s){e(n,i,s)});return $y=r,$y}var uJ=oJ();const cJ=Ue.getDefaultExportFromCjs(uJ);var Fy,oj;function VA(){if(oj)return Fy;oj=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=Array(i);++n<i;)s[n]=r(t[n],n,t);return s}return Fy=e,Fy}var Ly,uj;function tl(){if(uj)return Ly;uj=1;var e=us(),t=An(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Ly=n,Ly}var By,cj;function lJ(){if(cj)return By;cj=1;var e=fu(),t=VA(),r=Lr(),n=tl(),i=e?e.prototype:void 0,s=i?i.toString:void 0;function a(o){if(typeof o=="string")return o;if(r(o))return t(o,a)+"";if(n(o))return s?s.call(o):"";var u=o+"";return u=="0"&&1/o==-1/0?"-0":u}return By=a,By}var Uy,lj;function ks(){if(lj)return Uy;lj=1;var e=lJ();function t(r){return r==null?"":e(r)}return Uy=t,Uy}var Vy,fj;function $L(){if(fj)return Vy;fj=1;function e(t,r,n){var i=-1,s=t.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]=t[i+r];return a}return Vy=e,Vy}var zy,dj;function fJ(){if(dj)return zy;dj=1;var e=$L();function t(r,n,i){var s=r.length;return i=i===void 0?s:i,!n&&i>=s?r:e(r,n,i)}return zy=t,zy}var Wy,pj;function FL(){if(pj)return Wy;pj=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="\\u200d",o=RegExp("["+a+e+i+s+"]");function u(c){return o.test(c)}return Wy=u,Wy}var Jy,hj;function dJ(){if(hj)return Jy;hj=1;function e(t){return t.split("")}return Jy=e,Jy}var Ky,mj;function pJ(){if(mj)return Ky;mj=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+r+n,s="\\ufe0e\\ufe0f",a="["+e+"]",o="["+i+"]",u="\\ud83c[\\udffb-\\udfff]",c="(?:"+o+"|"+u+")",l="[^"+e+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",h="[\\ud800-\\udbff][\\udc00-\\udfff]",p="\\u200d",g=c+"?",y="["+s+"]?",v="(?:"+p+"(?:"+[l,f,h].join("|")+")"+y+g+")*",E=y+g+v,b="(?:"+[l+o+"?",o,f,h,a].join("|")+")",S=RegExp(u+"(?="+u+")|"+b+E,"g");function x(_){return _.match(S)||[]}return Ky=x,Ky}var Hy,gj;function hJ(){if(gj)return Hy;gj=1;var e=dJ(),t=FL(),r=pJ();function n(i){return t(i)?r(i):e(i)}return Hy=n,Hy}var Gy,yj;function mJ(){if(yj)return Gy;yj=1;var e=fJ(),t=FL(),r=hJ(),n=ks();function i(s){return function(a){a=n(a);var o=t(a)?r(a):void 0,u=o?o[0]:a.charAt(0),c=o?e(o,1).join(""):a.slice(1);return u[s]()+c}}return Gy=i,Gy}var Yy,vj;function LL(){if(vj)return Yy;vj=1;var e=mJ(),t=e("toUpperCase");return Yy=t,Yy}var Xy,bj;function gJ(){if(bj)return Xy;bj=1;var e=ks(),t=LL();function r(n){return t(e(n).toLowerCase())}return Xy=r,Xy}var Zy,_j;function BL(){if(_j)return Zy;_j=1;function e(t,r,n,i){var s=-1,a=t==null?0:t.length;for(i&&a&&(n=t[++s]);++s<a;)n=r(n,t[s],s,t);return n}return Zy=e,Zy}var Qy,Ej;function yJ(){if(Ej)return Qy;Ej=1;function e(t){return function(r){return t==null?void 0:t[r]}}return Qy=e,Qy}var ev,Sj;function vJ(){if(Sj)return ev;Sj=1;var e=yJ(),t={À:"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=e(t);return ev=r,ev}var tv,wj;function bJ(){if(wj)return tv;wj=1;var e=vJ(),t=ks(),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 c(l){return l=t(l),l&&l.replace(r,e).replace(u,"")}return tv=c,tv}var rv,xj;function _J(){if(xj)return rv;xj=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return rv=t,rv}var nv,Aj;function EJ(){if(Aj)return nv;Aj=1;var e=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function t(r){return e.test(r)}return nv=t,nv}var iv,Oj;function SJ(){if(Oj)return iv;Oj=1;var e="\\ud800-\\udfff",t="\\u0300-\\u036f",r="\\ufe20-\\ufe2f",n="\\u20d0-\\u20ff",i=t+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",c="\\u2000-\\u206f",l=" \\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",f="A-Z\\xc0-\\xd6\\xd8-\\xde",h="\\ufe0e\\ufe0f",p=o+u+c+l,g="['’]",y="["+p+"]",v="["+i+"]",E="\\d+",b="["+s+"]",S="["+a+"]",x="[^"+e+p+E+s+a+f+"]",_="\\ud83c[\\udffb-\\udfff]",A="(?:"+v+"|"+_+")",C="[^"+e+"]",T="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",M="["+f+"]",k="\\u200d",D="(?:"+S+"|"+x+")",P="(?:"+M+"|"+x+")",H="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",X="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",V=A+"?",G="["+h+"]?",Q="(?:"+k+"(?:"+[C,T,O].join("|")+")"+G+V+")*",Z="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",B="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",J=G+V+Q,ee="(?:"+[b,T,O].join("|")+")"+J,ne=RegExp([M+"?"+S+"+"+H+"(?="+[y,M,"$"].join("|")+")",P+"+"+X+"(?="+[y,M+D,"$"].join("|")+")",M+"?"+D+"+"+H,M+"+"+X,B,Z,E,ee].join("|"),"g");function ae(Y){return Y.match(ne)||[]}return iv=ae,iv}var sv,Cj;function wJ(){if(Cj)return sv;Cj=1;var e=_J(),t=EJ(),r=ks(),n=SJ();function i(s,a,o){return s=r(s),a=o?void 0:a,a===void 0?t(s)?n(s):e(s):s.match(a)||[]}return sv=i,sv}var av,Rj;function xJ(){if(Rj)return av;Rj=1;var e=BL(),t=bJ(),r=wJ(),n="['’]",i=RegExp(n,"g");function s(a){return function(o){return e(r(t(o).replace(i,"")),a,"")}}return av=s,av}var ov,Tj;function AJ(){if(Tj)return ov;Tj=1;var e=gJ(),t=xJ(),r=t(function(n,i,s){return i=i.toLowerCase(),n+(s?e(i):i)});return ov=r,ov}AJ();LL();var uv,Ij;function UL(){if(Ij)return uv;Ij=1;var e=NA(),t="Expected a function";function r(n,i){if(typeof n!="function"||i!=null&&typeof i!="function")throw new TypeError(t);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 c=n.apply(this,a);return s.cache=u.set(o,c)||u,c};return s.cache=new(r.Cache||e),s}return r.Cache=e,uv=r,uv}var OJ=UL();const CJ=Ue.getDefaultExportFromCjs(OJ);var cv,jj;function RJ(){if(jj)return cv;jj=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return cv=t,cv}var lv,kj;function TJ(){if(kj)return lv;kj=1;function e(t){return this.__data__.has(t)}return lv=e,lv}var fv,Pj;function IJ(){if(Pj)return fv;Pj=1;var e=NA(),t=RJ(),r=TJ();function n(i){var s=-1,a=i==null?0:i.length;for(this.__data__=new e;++s<a;)this.add(i[s])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,fv=n,fv}var dv,Nj;function VL(){if(Nj)return dv;Nj=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i;)if(r(t[n],n,t))return!0;return!1}return dv=e,dv}var pv,Mj;function jJ(){if(Mj)return pv;Mj=1;function e(t,r){return t.has(r)}return pv=e,pv}var hv,Dj;function zL(){if(Dj)return hv;Dj=1;var e=IJ(),t=VL(),r=jJ(),n=1,i=2;function s(a,o,u,c,l,f){var h=u&n,p=a.length,g=o.length;if(p!=g&&!(h&&g>p))return!1;var y=f.get(a),v=f.get(o);if(y&&v)return y==o&&v==a;var E=-1,b=!0,S=u&i?new e:void 0;for(f.set(a,o),f.set(o,a);++E<p;){var x=a[E],_=o[E];if(c)var A=h?c(_,x,E,o,a,f):c(x,_,E,a,o,f);if(A!==void 0){if(A)continue;b=!1;break}if(S){if(!t(o,function(C,T){if(!r(S,T)&&(x===C||l(x,C,u,c,f)))return S.push(T)})){b=!1;break}}else if(!(x===_||l(x,_,u,c,f))){b=!1;break}}return f.delete(a),f.delete(o),b}return hv=s,hv}var mv,qj;function kJ(){if(qj)return mv;qj=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,s){n[++r]=[s,i]}),n}return mv=e,mv}var gv,$j;function PJ(){if($j)return gv;$j=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return gv=e,gv}var yv,Fj;function NJ(){if(Fj)return yv;Fj=1;var e=fu(),t=RL(),r=lu(),n=zL(),i=kJ(),s=PJ(),a=1,o=2,u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",h="[object Number]",p="[object RegExp]",g="[object Set]",y="[object String]",v="[object Symbol]",E="[object ArrayBuffer]",b="[object DataView]",S=e?e.prototype:void 0,x=S?S.valueOf:void 0;function _(A,C,T,O,M,k,D){switch(T){case b:if(A.byteLength!=C.byteLength||A.byteOffset!=C.byteOffset)return!1;A=A.buffer,C=C.buffer;case E:return!(A.byteLength!=C.byteLength||!k(new t(A),new t(C)));case u:case c:case h:return r(+A,+C);case l:return A.name==C.name&&A.message==C.message;case p:case y:return A==C+"";case f:var P=i;case g:var H=O&a;if(P||(P=s),A.size!=C.size&&!H)return!1;var X=D.get(A);if(X)return X==C;O|=o,D.set(A,C);var V=n(P(A),P(C),O,M,k,D);return D.delete(A),V;case v:if(x)return x.call(A)==x.call(C)}return!1}return yv=_,yv}var vv,Lj;function zA(){if(Lj)return vv;Lj=1;function e(t,r){for(var n=-1,i=r.length,s=t.length;++n<i;)t[s+n]=r[n];return t}return vv=e,vv}var bv,Bj;function WL(){if(Bj)return bv;Bj=1;var e=zA(),t=Lr();function r(n,i,s){var a=i(n);return t(n)?a:e(a,s(n))}return bv=r,bv}var _v,Uj;function MJ(){if(Uj)return _v;Uj=1;function e(t,r){for(var n=-1,i=t==null?0:t.length,s=0,a=[];++n<i;){var o=t[n];r(o,n,t)&&(a[s++]=o)}return a}return _v=e,_v}var Ev,Vj;function JL(){if(Vj)return Ev;Vj=1;function e(){return[]}return Ev=e,Ev}var Sv,zj;function WA(){if(zj)return Sv;zj=1;var e=MJ(),t=JL(),r=Object.prototype,n=r.propertyIsEnumerable,i=Object.getOwnPropertySymbols,s=i?function(a){return a==null?[]:(a=Object(a),e(i(a),function(o){return n.call(a,o)}))}:t;return Sv=s,Sv}var wv,Wj;function DJ(){if(Wj)return wv;Wj=1;var e=IL(),t=e(Object.keys,Object);return wv=t,wv}var xv,Jj;function JA(){if(Jj)return xv;Jj=1;var e=Zp(),t=DJ(),r=Object.prototype,n=r.hasOwnProperty;function i(s){if(!e(s))return t(s);var a=[];for(var o in Object(s))n.call(s,o)&&o!="constructor"&&a.push(o);return a}return xv=i,xv}var Av,Kj;function pu(){if(Kj)return Av;Kj=1;var e=PL(),t=JA(),r=eo();function n(i){return r(i)?e(i):t(i)}return Av=n,Av}var Ov,Hj;function KL(){if(Hj)return Ov;Hj=1;var e=WL(),t=WA(),r=pu();function n(i){return e(i,r,t)}return Ov=n,Ov}var Cv,Gj;function qJ(){if(Gj)return Cv;Gj=1;var e=KL(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o,u,c,l){var f=o&t,h=e(s),p=h.length,g=e(a),y=g.length;if(p!=y&&!f)return!1;for(var v=p;v--;){var E=h[v];if(!(f?E in a:n.call(a,E)))return!1}var b=l.get(s),S=l.get(a);if(b&&S)return b==a&&S==s;var x=!0;l.set(s,a),l.set(a,s);for(var _=f;++v<p;){E=h[v];var A=s[E],C=a[E];if(u)var T=f?u(C,A,E,a,s,l):u(A,C,E,s,a,l);if(!(T===void 0?A===C||c(A,C,o,u,l):T)){x=!1;break}_||(_=E=="constructor")}if(x&&!_){var O=s.constructor,M=a.constructor;O!=M&&"constructor"in s&&"constructor"in a&&!(typeof O=="function"&&O instanceof O&&typeof M=="function"&&M instanceof M)&&(x=!1)}return l.delete(s),l.delete(a),x}return Cv=i,Cv}var Rv,Yj;function $J(){if(Yj)return Rv;Yj=1;var e=Qa(),t=wn(),r=e(t,"DataView");return Rv=r,Rv}var Tv,Xj;function FJ(){if(Xj)return Tv;Xj=1;var e=Qa(),t=wn(),r=e(t,"Promise");return Tv=r,Tv}var Iv,Zj;function LJ(){if(Zj)return Iv;Zj=1;var e=Qa(),t=wn(),r=e(t,"Set");return Iv=r,Iv}var jv,Qj;function HL(){if(Qj)return jv;Qj=1;var e=Qa(),t=wn(),r=e(t,"WeakMap");return jv=r,jv}var kv,ek;function hu(){if(ek)return kv;ek=1;var e=$J(),t=PA(),r=FJ(),n=LJ(),i=HL(),s=us(),a=wL(),o="[object Map]",u="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",p=a(e),g=a(t),y=a(r),v=a(n),E=a(i),b=s;return(e&&b(new e(new ArrayBuffer(1)))!=h||t&&b(new t)!=o||r&&b(r.resolve())!=c||n&&b(new n)!=l||i&&b(new i)!=f)&&(b=function(S){var x=s(S),_=x==u?S.constructor:void 0,A=_?a(_):"";if(A)switch(A){case p:return h;case g:return o;case y:return c;case v:return l;case E:return f}return x}),kv=b,kv}var Pv,tk;function BJ(){if(tk)return Pv;tk=1;var e=Yp(),t=zL(),r=NJ(),n=qJ(),i=hu(),s=Lr(),a=Xc(),o=eh(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",h=Object.prototype,p=h.hasOwnProperty;function g(y,v,E,b,S,x){var _=s(y),A=s(v),C=_?l:i(y),T=A?l:i(v);C=C==c?f:C,T=T==c?f:T;var O=C==f,M=T==f,k=C==T;if(k&&a(y)){if(!a(v))return!1;_=!0,O=!1}if(k&&!O)return x||(x=new e),_||o(y)?t(y,v,E,b,S,x):r(y,v,C,E,b,S,x);if(!(E&u)){var D=O&&p.call(y,"__wrapped__"),P=M&&p.call(v,"__wrapped__");if(D||P){var H=D?y.value():y,X=P?v.value():v;return x||(x=new e),S(H,X,E,b,x)}}return k?(x||(x=new e),n(y,v,E,b,S,x)):!1}return Pv=g,Pv}var Nv,rk;function KA(){if(rk)return Nv;rk=1;var e=BJ(),t=An();function r(n,i,s,a,o){return n===i?!0:n==null||i==null||!t(n)&&!t(i)?n!==n&&i!==i:e(n,i,s,a,r,o)}return Nv=r,Nv}var Mv,nk;function UJ(){if(nk)return Mv;nk=1;var e=Yp(),t=KA(),r=1,n=2;function i(s,a,o,u){var c=o.length,l=c,f=!u;if(s==null)return!l;for(s=Object(s);c--;){var h=o[c];if(f&&h[2]?h[1]!==s[h[0]]:!(h[0]in s))return!1}for(;++c<l;){h=o[c];var p=h[0],g=s[p],y=h[1];if(f&&h[2]){if(g===void 0&&!(p in s))return!1}else{var v=new e;if(u)var E=u(g,y,p,s,a,v);if(!(E===void 0?t(y,g,r|n,u,v):E))return!1}}return!0}return Mv=i,Mv}var Dv,ik;function GL(){if(ik)return Dv;ik=1;var e=xn();function t(r){return r===r&&!e(r)}return Dv=t,Dv}var qv,sk;function VJ(){if(sk)return qv;sk=1;var e=GL(),t=pu();function r(n){for(var i=t(n),s=i.length;s--;){var a=i[s],o=n[a];i[s]=[a,o,e(o)]}return i}return qv=r,qv}var $v,ak;function YL(){if(ak)return $v;ak=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return $v=e,$v}var Fv,ok;function zJ(){if(ok)return Fv;ok=1;var e=UJ(),t=VJ(),r=YL();function n(i){var s=t(i);return s.length==1&&s[0][2]?r(s[0][0],s[0][1]):function(a){return a===i||e(a,i,s)}}return Fv=n,Fv}var Lv,uk;function HA(){if(uk)return Lv;uk=1;var e=Lr(),t=tl(),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,n=/^\w*$/;function i(s,a){if(e(s))return!1;var o=typeof s;return o=="number"||o=="symbol"||o=="boolean"||s==null||t(s)?!0:n.test(s)||!r.test(s)||a!=null&&s in Object(a)}return Lv=i,Lv}var Bv,ck;function WJ(){if(ck)return Bv;ck=1;var e=UL(),t=500;function r(n){var i=e(n,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return Bv=r,Bv}var Uv,lk;function XL(){if(lk)return Uv;lk=1;var e=WJ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,n=e(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(t,function(a,o,u,c){s.push(u?c.replace(r,"$1"):o||a)}),s});return Uv=n,Uv}var Vv,fk;function rl(){if(fk)return Vv;fk=1;var e=Lr(),t=HA(),r=XL(),n=ks();function i(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return Vv=i,Vv}var zv,dk;function to(){if(dk)return zv;dk=1;var e=tl();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return zv=t,zv}var Wv,pk;function GA(){if(pk)return Wv;pk=1;var e=rl(),t=to();function r(n,i){i=e(i,n);for(var s=0,a=i.length;n!=null&&s<a;)n=n[t(i[s++])];return s&&s==a?n:void 0}return Wv=r,Wv}var Jv,hk;function ZL(){if(hk)return Jv;hk=1;var e=GA();function t(r,n,i){var s=r==null?void 0:e(r,n);return s===void 0?i:s}return Jv=t,Jv}var Kv,mk;function JJ(){if(mk)return Kv;mk=1;function e(t,r){return t!=null&&r in Object(t)}return Kv=e,Kv}var Hv,gk;function QL(){if(gk)return Hv;gk=1;var e=rl(),t=Yc(),r=Lr(),n=Zc(),i=$A(),s=to();function a(o,u,c){u=e(u,o);for(var l=-1,f=u.length,h=!1;++l<f;){var p=s(u[l]);if(!(h=o!=null&&c(o,p)))break;o=o[p]}return h||++l!=f?h:(f=o==null?0:o.length,!!f&&i(f)&&n(p,f)&&(r(o)||t(o)))}return Hv=a,Hv}var Gv,yk;function KJ(){if(yk)return Gv;yk=1;var e=JJ(),t=QL();function r(n,i){return n!=null&&t(n,i,e)}return Gv=r,Gv}var Yv,vk;function HJ(){if(vk)return Yv;vk=1;var e=KA(),t=ZL(),r=KJ(),n=HA(),i=GL(),s=YL(),a=to(),o=1,u=2;function c(l,f){return n(l)&&i(f)?s(a(l),f):function(h){var p=t(h,l);return p===void 0&&p===f?r(h,l):e(f,p,o|u)}}return Yv=c,Yv}var Xv,bk;function GJ(){if(bk)return Xv;bk=1;function e(t){return function(r){return r==null?void 0:r[t]}}return Xv=e,Xv}var Zv,_k;function YJ(){if(_k)return Zv;_k=1;var e=GA();function t(r){return function(n){return e(n,r)}}return Zv=t,Zv}var Qv,Ek;function XJ(){if(Ek)return Qv;Ek=1;var e=GJ(),t=YJ(),r=HA(),n=to();function i(s){return r(s)?e(n(s)):t(s)}return Qv=i,Qv}var e0,Sk;function nl(){if(Sk)return e0;Sk=1;var e=zJ(),t=HJ(),r=el(),n=Lr(),i=XJ();function s(a){return typeof a=="function"?a:a==null?r:typeof a=="object"?n(a)?t(a[0],a[1]):e(a):i(a)}return e0=s,e0}var t0,wk;function ZJ(){if(wk)return t0;wk=1;var e=nl(),t=eo(),r=pu();function n(i){return function(s,a,o){var u=Object(s);if(!t(s)){var c=e(a,3);s=r(s),a=function(f){return c(u[f],f,u)}}var l=i(s,a,o);return l>-1?u[c?s[l]:l]:void 0}}return t0=n,t0}var r0,xk;function eB(){if(xk)return r0;xk=1;function e(t,r,n,i){for(var s=t.length,a=n+(i?1:-1);i?a--:++a<s;)if(r(t[a],a,t))return a;return-1}return r0=e,r0}var n0,Ak;function QJ(){if(Ak)return n0;Ak=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return n0=t,n0}var i0,Ok;function eK(){if(Ok)return i0;Ok=1;var e=QJ(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return i0=r,i0}var s0,Ck;function tB(){if(Ck)return s0;Ck=1;var e=eK(),t=xn(),r=tl(),n=NaN,i=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,a=/^0o[0-7]+$/i,o=parseInt;function u(c){if(typeof c=="number")return c;if(r(c))return n;if(t(c)){var l=typeof c.valueOf=="function"?c.valueOf():c;c=t(l)?l+"":l}if(typeof c!="string")return c===0?c:+c;c=e(c);var f=s.test(c);return f||a.test(c)?o(c.slice(2),f?2:8):i.test(c)?n:+c}return s0=u,s0}var a0,Rk;function tK(){if(Rk)return a0;Rk=1;var e=tB(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-1/0){var s=i<0?-1:1;return s*r}return i===i?i:0}return a0=n,a0}var o0,Tk;function YA(){if(Tk)return o0;Tk=1;var e=tK();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return o0=t,o0}var u0,Ik;function rK(){if(Ik)return u0;Ik=1;var e=eB(),t=nl(),r=YA(),n=Math.max;function i(s,a,o){var u=s==null?0:s.length;if(!u)return-1;var c=o==null?0:r(o);return c<0&&(c=n(u+c,0)),e(s,t(a,3),c)}return u0=i,u0}var c0,jk;function nK(){if(jk)return c0;jk=1;var e=ZJ(),t=rK(),r=e(t);return c0=r,c0}var iK=nK();const sK=Ue.getDefaultExportFromCjs(iK);var l0,kk;function aK(){if(kk)return l0;kk=1;var e=OL(),t=pu();function r(n,i){return n&&e(n,i,t)}return l0=r,l0}var f0,Pk;function oK(){if(Pk)return f0;Pk=1;var e=eo();function t(r,n){return function(i,s){if(i==null)return i;if(!e(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 f0=t,f0}var d0,Nk;function rB(){if(Nk)return d0;Nk=1;var e=aK(),t=oK(),r=t(e);return d0=r,d0}var p0,Mk;function uK(){if(Mk)return p0;Mk=1;var e=rB();function t(r,n){var i;return e(r,function(s,a,o){return i=n(s,a,o),!i}),!!i}return p0=t,p0}var h0,Dk;function cK(){if(Dk)return h0;Dk=1;var e=VL(),t=nl(),r=uK(),n=Lr(),i=qL();function s(a,o,u){var c=n(a)?e:r;return u&&i(a,o,u)&&(o=void 0),c(a,t(o,3))}return h0=s,h0}var lK=cK();const fK=Ue.getDefaultExportFromCjs(lK);var dK=lu();const pK=Ue.getDefaultExportFromCjs(dK);var hK=Hc();const mK=Ue.getDefaultExportFromCjs(hK);var fd={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */var gK=fd.exports,qk;function yK(){return qk||(qk=1,function(e,t){(function(r,n){e.exports=n(r)})(typeof Ue.commonjsGlobal<"u"?Ue.commonjsGlobal:gK,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,c="",l=s.charCodeAt(0);++o<a;){if(u=s.charCodeAt(o),u==0){c+="�";continue}if(u>=1&&u<=31||u==127||o==0&&u>=48&&u<=57||o==1&&u>=48&&u<=57&&l==45){c+="\\"+u.toString(16)+" ";continue}if(o==0&&a==1&&u==45){c+="\\"+s.charAt(o);continue}if(u>=128||u==45||u==95||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122){c+=s.charAt(o);continue}c+="\\"+s.charAt(o)}return c};return r.CSS||(r.CSS={}),r.CSS.escape=n,n})}(fd)),fd.exports}var vK=yK();const bK=Ue.getDefaultExportFromCjs(vK);var m0,$k;function _K(){return $k||($k=1,m0=function(t,r){if(r=r.split(":")[0],t=+t,!t)return!1;switch(r){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0}),m0}var zf={},Fk;function EK(){if(Fk)return zf;Fk=1;var e=Object.prototype.hasOwnProperty,t;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={},c;c=o.exec(a);){var l=r(c[1]),f=r(c[2]);l===null||f===null||l in u||(u[l]=f)}return u}function s(a,o){o=o||"";var u=[],c,l;typeof o!="string"&&(o="?");for(l in a)if(e.call(a,l)){if(c=a[l],!c&&(c===null||c===t||isNaN(c))&&(c=""),l=n(l),c=n(c),l===null||c===null)continue;u.push(l+"="+c)}return u.length?o+u.join("&"):""}return zf.stringify=s,zf.parse=i,zf}var g0,Lk;function SK(){if(Lk)return g0;Lk=1;var e=_K(),t=EK(),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 c=[["#","hash"],["?","query"],function(S,x){return h(x.protocol)?S.replace(/\\/g,"/"):S},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],l={hash:1,query:1};function f(b){var S;typeof window<"u"?S=window:typeof Ue.commonjsGlobal<"u"?S=Ue.commonjsGlobal:typeof self<"u"?S=self:S={};var x=S.location||{};b=b||x;var _={},A=typeof b,C;if(b.protocol==="blob:")_=new y(unescape(b.pathname),{});else if(A==="string"){_=new y(b,{});for(C in l)delete _[C]}else if(A==="object"){for(C in b)C in l||(_[C]=b[C]);_.slashes===void 0&&(_.slashes=i.test(b.href))}return _}function h(b){return b==="file:"||b==="ftp:"||b==="http:"||b==="https:"||b==="ws:"||b==="wss:"}function p(b,S){b=u(b),b=b.replace(n,""),S=S||{};var x=a.exec(b),_=x[1]?x[1].toLowerCase():"",A=!!x[2],C=!!x[3],T=0,O;return A?C?(O=x[2]+x[3]+x[4],T=x[2].length+x[3].length):(O=x[2]+x[4],T=x[2].length):C?(O=x[3]+x[4],T=x[3].length):O=x[4],_==="file:"?T>=2&&(O=O.slice(2)):h(_)?O=x[4]:_?A&&(O=O.slice(2)):T>=2&&h(S.protocol)&&(O=x[4]),{protocol:_,slashes:A||h(_),slashesCount:T,rest:O}}function g(b,S){if(b==="")return S;for(var x=(S||"/").split("/").slice(0,-1).concat(b.split("/")),_=x.length,A=x[_-1],C=!1,T=0;_--;)x[_]==="."?x.splice(_,1):x[_]===".."?(x.splice(_,1),T++):T&&(_===0&&(C=!0),x.splice(_,1),T--);return C&&x.unshift(""),(A==="."||A==="..")&&x.push(""),x.join("/")}function y(b,S,x){if(b=u(b),b=b.replace(n,""),!(this instanceof y))return new y(b,S,x);var _,A,C,T,O,M,k=c.slice(),D=typeof S,P=this,H=0;for(D!=="object"&&D!=="string"&&(x=S,S=null),x&&typeof x!="function"&&(x=t.parse),S=f(S),A=p(b||"",S),_=!A.protocol&&!A.slashes,P.slashes=A.slashes||_&&S.slashes,P.protocol=A.protocol||S.protocol||"",b=A.rest,(A.protocol==="file:"&&(A.slashesCount!==2||o.test(b))||!A.slashes&&(A.protocol||A.slashesCount<2||!h(P.protocol)))&&(k[3]=[/(.*)/,"pathname"]);H<k.length;H++){if(T=k[H],typeof T=="function"){b=T(b,P);continue}C=T[0],M=T[1],C!==C?P[M]=b:typeof C=="string"?(O=C==="@"?b.lastIndexOf(C):b.indexOf(C),~O&&(typeof T[2]=="number"?(P[M]=b.slice(0,O),b=b.slice(O+T[2])):(P[M]=b.slice(O),b=b.slice(0,O)))):(O=C.exec(b))&&(P[M]=O[1],b=b.slice(0,O.index)),P[M]=P[M]||_&&T[3]&&S[M]||"",T[4]&&(P[M]=P[M].toLowerCase())}x&&(P.query=x(P.query)),_&&S.slashes&&P.pathname.charAt(0)!=="/"&&(P.pathname!==""||S.pathname!=="")&&(P.pathname=g(P.pathname,S.pathname)),P.pathname.charAt(0)!=="/"&&h(P.protocol)&&(P.pathname="/"+P.pathname),e(P.port,P.protocol)||(P.host=P.hostname,P.port=""),P.username=P.password="",P.auth&&(O=P.auth.indexOf(":"),~O?(P.username=P.auth.slice(0,O),P.username=encodeURIComponent(decodeURIComponent(P.username)),P.password=P.auth.slice(O+1),P.password=encodeURIComponent(decodeURIComponent(P.password))):P.username=encodeURIComponent(decodeURIComponent(P.auth)),P.auth=P.password?P.username+":"+P.password:P.username),P.origin=P.protocol!=="file:"&&h(P.protocol)&&P.host?P.protocol+"//"+P.host:"null",P.href=P.toString()}function v(b,S,x){var _=this;switch(b){case"query":typeof S=="string"&&S.length&&(S=(x||t.parse)(S)),_[b]=S;break;case"port":_[b]=S,e(S,_.protocol)?S&&(_.host=_.hostname+":"+S):(_.host=_.hostname,_[b]="");break;case"hostname":_[b]=S,_.port&&(S+=":"+_.port),_.host=S;break;case"host":_[b]=S,s.test(S)?(S=S.split(":"),_.port=S.pop(),_.hostname=S.join(":")):(_.hostname=S,_.port="");break;case"protocol":_.protocol=S.toLowerCase(),_.slashes=!x;break;case"pathname":case"hash":if(S){var A=b==="pathname"?"/":"#";_[b]=S.charAt(0)!==A?A+S:S}else _[b]=S;break;case"username":case"password":_[b]=encodeURIComponent(S);break;case"auth":var C=S.indexOf(":");~C?(_.username=S.slice(0,C),_.username=encodeURIComponent(decodeURIComponent(_.username)),_.password=S.slice(C+1),_.password=encodeURIComponent(decodeURIComponent(_.password))):_.username=encodeURIComponent(decodeURIComponent(S))}for(var T=0;T<c.length;T++){var O=c[T];O[4]&&(_[O[1]]=_[O[1]].toLowerCase())}return _.auth=_.password?_.username+":"+_.password:_.username,_.origin=_.protocol!=="file:"&&h(_.protocol)&&_.host?_.protocol+"//"+_.host:"null",_.href=_.toString(),_}function E(b){(!b||typeof b!="function")&&(b=t.stringify);var S,x=this,_=x.host,A=x.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var C=A+(x.protocol&&x.slashes||h(x.protocol)?"//":"");return x.username?(C+=x.username,x.password&&(C+=":"+x.password),C+="@"):x.password?(C+=":"+x.password,C+="@"):x.protocol!=="file:"&&h(x.protocol)&&!_&&x.pathname!=="/"&&(C+="@"),(_[_.length-1]===":"||s.test(x.hostname)&&!x.port)&&(_+=":"),C+=_+x.pathname,S=typeof x.query=="object"?b(x.query):x.query,S&&(C+=S.charAt(0)!=="?"?"?"+S:S),x.hash&&(C+=x.hash),C}return y.prototype={set:v,toString:E},y.extractProtocol=p,y.location=f,y.trimLeft=u,y.qs=t,g0=y,g0}var wK=SK();const xK=Ue.getDefaultExportFromCjs(wK);var AK=(e,t,r)=>{if(t.length===1&&t[0]===r){let n=!1;try{const i={};e(i)===i&&(n=!0)}catch{}if(n){let i;try{throw new Error}catch(s){({stack:i}=s)}console.warn(`The result function returned its own inputs without modification. e.g
21
+ \`createSelector([state => state.todos], todos => todos)\`
22
+ This could lead to inefficient memoization and unnecessary re-renders.
23
+ Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},OK=(e,t,r)=>{const{memoize:n,memoizeOptions:i}=t,{inputSelectorResults:s,inputSelectorResultsCopy:a}=e,o=n(()=>({}),...i);if(!(o.apply(null,s)===o.apply(null,a))){let c;try{throw new Error}catch(l){({stack:c}=l)}console.warn(`An input selector returned a different result when passed same arguments.
24
+ This means your output selector will likely run more frequently than intended.
25
+ Avoid returning a new reference inside your input selector, e.g.
26
+ \`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:a,stack:c})}},CK={inputStabilityCheck:"once",identityFunctionCheck:"once"};function RK(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function TK(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function IK(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(r=>typeof r=="function")){const r=e.map(n=>typeof n=="function"?`function ${n.name||"unnamed"}()`:typeof n).join(", ");throw new TypeError(`${t}[${r}]`)}}var Bk=e=>Array.isArray(e)?e:[e];function jK(e){const t=Array.isArray(e[0])?e[0]:e;return IK(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function Uk(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var kK=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...CK,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:AK},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:OK}}},PK=class{constructor(e){this.value=e}deref(){return this.value}},NK=typeof WeakRef<"u"?WeakRef:PK,MK=0,Vk=1;function Wf(){return{s:MK,v:void 0,o:null,p:null}}function nB(e,t={}){let r=Wf();const{resultEqualityCheck:n}=t;let i,s=0;function a(){var f;let o=r;const{length:u}=arguments;for(let h=0,p=u;h<p;h++){const g=arguments[h];if(typeof g=="function"||typeof g=="object"&&g!==null){let y=o.o;y===null&&(o.o=y=new WeakMap);const v=y.get(g);v===void 0?(o=Wf(),y.set(g,o)):o=v}else{let y=o.p;y===null&&(o.p=y=new Map);const v=y.get(g);v===void 0?(o=Wf(),y.set(g,o)):o=v}}const c=o;let l;if(o.s===Vk)l=o.v;else if(l=e.apply(null,arguments),s++,n){const h=((f=i==null?void 0:i.deref)==null?void 0:f.call(i))??i;h!=null&&n(h,l)&&(l=h,s!==0&&s--),i=typeof l=="object"&&l!==null||typeof l=="function"?new NK(l):l}return c.s=Vk,c.v=l,l}return a.clearCache=()=>{r=Wf(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function DK(e,...t){const r=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,n=(...i)=>{let s=0,a=0,o,u={},c=i.pop();typeof c=="object"&&(u=c,c=i.pop()),RK(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...u},{memoize:f,memoizeOptions:h=[],argsMemoize:p=nB,argsMemoizeOptions:g=[],devModeChecks:y={}}=l,v=Bk(h),E=Bk(g),b=jK(i),S=f(function(){return s++,c.apply(null,arguments)},...v);let x=!0;const _=p(function(){a++;const C=Uk(b,arguments);if(o=S.apply(null,C),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:T,inputStabilityCheck:O}=kK(x,y);if(T.shouldRun&&T.run(c,C,o),O.shouldRun){const M=Uk(b,arguments);O.run({inputSelectorResults:C,inputSelectorResultsCopy:M},{memoize:f,memoizeOptions:v},arguments)}x&&(x=!1)}return o},...E);return Object.assign(_,{resultFunc:c,memoizedResultFunc:S,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>o,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:p})};return Object.assign(n,{withTypes:()=>n}),n}var iB=DK(nB),qK=Object.assign((e,t=iB)=>{TK(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const r=Object.keys(e),n=r.map(s=>e[s]);return t(n,(...s)=>s.reduce((a,o,u)=>(a[r[u]]=o,a),{}))},{withTypes:()=>qK}),y0,zk;function XA(){if(zk)return y0;zk=1;function e(t,r){for(var n=-1,i=t==null?0:t.length;++n<i&&r(t[n],n,t)!==!1;);return t}return y0=e,y0}var v0,Wk;function sB(){if(Wk)return v0;Wk=1;var e=du(),t=pu();function r(n,i){return n&&e(i,t(i),n)}return v0=r,v0}var b0,Jk;function $K(){if(Jk)return b0;Jk=1;var e=du(),t=Qc();function r(n,i){return n&&e(i,t(i),n)}return b0=r,b0}var _0,Kk;function FK(){if(Kk)return _0;Kk=1;var e=du(),t=WA();function r(n,i){return e(n,t(n),i)}return _0=r,_0}var E0,Hk;function aB(){if(Hk)return E0;Hk=1;var e=zA(),t=qA(),r=WA(),n=JL(),i=Object.getOwnPropertySymbols,s=i?function(a){for(var o=[];a;)e(o,r(a)),a=t(a);return o}:n;return E0=s,E0}var S0,Gk;function LK(){if(Gk)return S0;Gk=1;var e=du(),t=aB();function r(n,i){return e(n,t(n),i)}return S0=r,S0}var w0,Yk;function oB(){if(Yk)return w0;Yk=1;var e=WL(),t=aB(),r=Qc();function n(i){return e(i,r,t)}return w0=n,w0}var x0,Xk;function BK(){if(Xk)return x0;Xk=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n){var i=n.length,s=new n.constructor(i);return i&&typeof n[0]=="string"&&t.call(n,"index")&&(s.index=n.index,s.input=n.input),s}return x0=r,x0}var A0,Zk;function UK(){if(Zk)return A0;Zk=1;var e=DA();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return A0=t,A0}var O0,Qk;function VK(){if(Qk)return O0;Qk=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return O0=t,O0}var C0,eP;function zK(){if(eP)return C0;eP=1;var e=fu(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return C0=n,C0}var R0,tP;function WK(){if(tP)return R0;tP=1;var e=DA(),t=UK(),r=VK(),n=zK(),i=TL(),s="[object Boolean]",a="[object Date]",o="[object Map]",u="[object Number]",c="[object RegExp]",l="[object Set]",f="[object String]",h="[object Symbol]",p="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",E="[object Int8Array]",b="[object Int16Array]",S="[object Int32Array]",x="[object Uint8Array]",_="[object Uint8ClampedArray]",A="[object Uint16Array]",C="[object Uint32Array]";function T(O,M,k){var D=O.constructor;switch(M){case p:return e(O);case s:case a:return new D(+O);case g:return t(O,k);case y:case v:case E:case b:case S:case x:case _:case A:case C:return i(O,k);case o:return new D;case u:case f:return new D(O);case c:return r(O);case l:return new D;case h:return n(O)}}return R0=T,R0}var T0,rP;function JK(){if(rP)return T0;rP=1;var e=hu(),t=An(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return T0=n,T0}var I0,nP;function KK(){if(nP)return I0;nP=1;var e=JK(),t=FA(),r=LA(),n=r&&r.isMap,i=n?t(n):e;return I0=i,I0}var j0,iP;function HK(){if(iP)return j0;iP=1;var e=hu(),t=An(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return j0=n,j0}var k0,sP;function GK(){if(sP)return k0;sP=1;var e=HK(),t=FA(),r=LA(),n=r&&r.isSet,i=n?t(n):e;return k0=i,k0}var P0,aP;function ZA(){if(aP)return P0;aP=1;var e=Yp(),t=XA(),r=th(),n=sB(),i=$K(),s=CL(),a=Gc(),o=FK(),u=LK(),c=KL(),l=oB(),f=hu(),h=BK(),p=WK(),g=jL(),y=Lr(),v=Xc(),E=KK(),b=xn(),S=GK(),x=pu(),_=Qc(),A=1,C=2,T=4,O="[object Arguments]",M="[object Array]",k="[object Boolean]",D="[object Date]",P="[object Error]",H="[object Function]",X="[object GeneratorFunction]",V="[object Map]",G="[object Number]",Q="[object Object]",Z="[object RegExp]",B="[object Set]",J="[object String]",ee="[object Symbol]",ne="[object WeakMap]",ae="[object ArrayBuffer]",Y="[object DataView]",F="[object Float32Array]",L="[object Float64Array]",ue="[object Int8Array]",de="[object Int16Array]",Ae="[object Int32Array]",Ne="[object Uint8Array]",ce="[object Uint8ClampedArray]",Re="[object Uint16Array]",ze="[object Uint32Array]",he={};he[O]=he[M]=he[ae]=he[Y]=he[k]=he[D]=he[F]=he[L]=he[ue]=he[de]=he[Ae]=he[V]=he[G]=he[Q]=he[Z]=he[B]=he[J]=he[ee]=he[Ne]=he[ce]=he[Re]=he[ze]=!0,he[P]=he[H]=he[ne]=!1;function _e(Se,$,R,j,U,re){var ie,fe=$&A,Ie=$&C,Fe=$&T;if(R&&(ie=U?R(Se,j,U,re):R(Se)),ie!==void 0)return ie;if(!b(Se))return Se;var Ge=y(Se);if(Ge){if(ie=h(Se),!fe)return a(Se,ie)}else{var tt=f(Se),ct=tt==H||tt==X;if(v(Se))return s(Se,fe);if(tt==Q||tt==O||ct&&!U){if(ie=Ie||ct?{}:g(Se),!fe)return Ie?u(Se,i(ie,Se)):o(Se,n(ie,Se))}else{if(!he[tt])return U?Se:{};ie=p(Se,tt,fe)}}re||(re=new e);var $n=re.get(Se);if($n)return $n;re.set(Se,ie),S(Se)?Se.forEach(function(br){ie.add(_e(br,$,R,br,Se,re))}):E(Se)&&Se.forEach(function(br,cr){ie.set(cr,_e(br,$,R,cr,Se,re))});var Ei=Fe?Ie?l:c:Ie?_:x,ar=Ge?void 0:Ei(Se);return t(ar||Se,function(br,cr){ar&&(cr=br,br=Se[cr]),r(ie,cr,_e(br,$,R,cr,Se,re))}),ie}return P0=_e,P0}var N0,oP;function YK(){if(oP)return N0;oP=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return N0=e,N0}var M0,uP;function XK(){if(uP)return M0;uP=1;var e=GA(),t=$L();function r(n,i){return i.length<2?n:e(n,t(i,0,-1))}return M0=r,M0}var D0,cP;function ZK(){if(cP)return D0;cP=1;var e=rl(),t=YK(),r=XK(),n=to();function i(s,a){return a=e(a,s),s=r(s,a),s==null||delete s[n(t(a))]}return D0=i,D0}var q0,lP;function QK(){if(lP)return q0;lP=1;var e=Qp();function t(r){return e(r)?void 0:r}return q0=t,q0}var $0,fP;function eH(){if(fP)return $0;fP=1;var e=fu(),t=Yc(),r=Lr(),n=e?e.isConcatSpreadable:void 0;function i(s){return r(s)||t(s)||!!(n&&s&&s[n])}return $0=i,$0}var F0,dP;function tH(){if(dP)return F0;dP=1;var e=zA(),t=eH();function r(n,i,s,a,o){var u=-1,c=n.length;for(s||(s=t),o||(o=[]);++u<c;){var l=n[u];i>0&&s(l)?i>1?r(l,i-1,s,a,o):e(o,l):a||(o[o.length]=l)}return o}return F0=r,F0}var L0,pP;function rH(){if(pP)return L0;pP=1;var e=tH();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return L0=t,L0}var B0,hP;function uB(){if(hP)return B0;hP=1;var e=rH(),t=NL(),r=UA();function n(i){return r(t(i,void 0,e),i+"")}return B0=n,B0}var U0,mP;function nH(){if(mP)return U0;mP=1;var e=VA(),t=ZA(),r=ZK(),n=rl(),i=du(),s=QK(),a=uB(),o=oB(),u=1,c=2,l=4,f=a(function(h,p){var g={};if(h==null)return g;var y=!1;p=e(p,function(E){return E=n(E,h),y||(y=E.length>1),E}),i(h,o(h),g),y&&(g=t(g,u|c|l,s));for(var v=p.length;v--;)r(g,p[v]);return g});return U0=f,U0}var iH=nH();const sH=Ue.getDefaultExportFromCjs(iH);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function cB(e){return typeof e>"u"||e===null}function aH(e){return typeof e=="object"&&e!==null}function oH(e){return Array.isArray(e)?e:cB(e)?[]:[e]}function uH(e,t){var r,n,i,s;if(t)for(s=Object.keys(t),r=0,n=s.length;r<n;r+=1)i=s[r],e[i]=t[i];return e}function cH(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function lH(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var fH=cB,dH=aH,pH=oH,hH=cH,mH=lH,gH=uH,Dr={isNothing:fH,isObject:dH,toArray:pH,repeat:hH,isNegativeZero:mH,extend:gH};function lB(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+=`
27
+
28
+ `+e.mark.snippet),n+" "+r):n}function Ec(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=lB(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Ec.prototype=Object.create(Error.prototype);Ec.prototype.constructor=Ec;Ec.prototype.toString=function(t){return this.name+": "+lB(this,t)};var pn=Ec;function V0(e,t,r,n,i){var s="",a="",o=Math.floor(i/2)-1;return n-t>o&&(s=" ... ",t=n-o+s.length),r-n>o&&(a=" ...",r=n+o-a.length),{str:s+e.slice(t,r).replace(/\t/g,"→")+a,pos:n-t+s.length}}function z0(e,t){return Dr.repeat(" ",t-e.length)+e}function yH(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),typeof t.indent!="number"&&(t.indent=1),typeof t.linesBefore!="number"&&(t.linesBefore=3),typeof t.linesAfter!="number"&&(t.linesAfter=2);for(var r=/\r?\n|\r|\0/g,n=[0],i=[],s,a=-1;s=r.exec(e.buffer);)i.push(s.index),n.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=n.length-2);a<0&&(a=n.length-1);var o="",u,c,l=Math.min(e.line+t.linesAfter,i.length).toString().length,f=t.maxLength-(t.indent+l+3);for(u=1;u<=t.linesBefore&&!(a-u<0);u++)c=V0(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),o=Dr.repeat(" ",t.indent)+z0((e.line-u+1).toString(),l)+" | "+c.str+`
29
+ `+o;for(c=V0(e.buffer,n[a],i[a],e.position,f),o+=Dr.repeat(" ",t.indent)+z0((e.line+1).toString(),l)+" | "+c.str+`
30
+ `,o+=Dr.repeat("-",t.indent+l+3+c.pos)+`^
31
+ `,u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)c=V0(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f),o+=Dr.repeat(" ",t.indent)+z0((e.line+u+1).toString(),l)+" | "+c.str+`
32
+ `;return o.replace(/\n$/,"")}var vH=yH,bH=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_H=["scalar","sequence","mapping"];function EH(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function SH(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(bH.indexOf(r)===-1)throw new pn('Unknown option "'+r+'" is met in definition of "'+e+'" YAML type.')}),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(r){return r},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=EH(t.styleAliases||null),_H.indexOf(this.kind)===-1)throw new pn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var Gr=SH;function gP(e,t){var r=[];return e[t].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 wH(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},t,r;function n(i){i.multi?(e.multi[i.kind].push(i),e.multi.fallback.push(i)):e[i.kind][i.tag]=e.fallback[i.tag]=i}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}function mw(e){return this.extend(e)}mw.prototype.extend=function(t){var r=[],n=[];if(t instanceof Gr)n.push(t);else if(Array.isArray(t))n=n.concat(t);else if(t&&(Array.isArray(t.implicit)||Array.isArray(t.explicit)))t.implicit&&(r=r.concat(t.implicit)),t.explicit&&(n=n.concat(t.explicit));else throw new pn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof Gr))throw new pn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new pn("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 pn("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 Gr))throw new pn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(mw.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=gP(i,"implicit"),i.compiledExplicit=gP(i,"explicit"),i.compiledTypeMap=wH(i.compiledImplicit,i.compiledExplicit),i};var fB=mw,dB=new Gr("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),pB=new Gr("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),hB=new Gr("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),mB=new fB({explicit:[dB,pB,hB]});function xH(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function AH(){return null}function OH(e){return e===null}var gB=new Gr("tag:yaml.org,2002:null",{kind:"scalar",resolve:xH,construct:AH,predicate:OH,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function CH(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function RH(e){return e==="true"||e==="True"||e==="TRUE"}function TH(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var yB=new Gr("tag:yaml.org,2002:bool",{kind:"scalar",resolve:CH,construct:RH,predicate:TH,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function IH(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function jH(e){return 48<=e&&e<=55}function kH(e){return 48<=e&&e<=57}function PH(e){if(e===null)return!1;var t=e.length,r=0,n=!1,i;if(!t)return!1;if(i=e[r],(i==="-"||i==="+")&&(i=e[++r]),i==="0"){if(r+1===t)return!0;if(i=e[++r],i==="b"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(i!=="0"&&i!=="1")return!1;n=!0}return n&&i!=="_"}if(i==="x"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!IH(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!jH(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!kH(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function NH(e){var t=e,r=1,n;if(t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0")return 0;if(n==="0"){if(t[1]==="b")return r*parseInt(t.slice(2),2);if(t[1]==="x")return r*parseInt(t.slice(2),16);if(t[1]==="o")return r*parseInt(t.slice(2),8)}return r*parseInt(t,10)}function MH(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Dr.isNegativeZero(e)}var vB=new Gr("tag:yaml.org,2002:int",{kind:"scalar",resolve:PH,construct:NH,predicate:MH,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),DH=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function qH(e){return!(e===null||!DH.test(e)||e[e.length-1]==="_")}function $H(e){var t,r;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:r*parseFloat(t,10)}var FH=/^[-+]?[0-9]+e/;function LH(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(Dr.isNegativeZero(e))return"-0.0";return r=e.toString(10),FH.test(r)?r.replace("e",".e"):r}function BH(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Dr.isNegativeZero(e))}var bB=new Gr("tag:yaml.org,2002:float",{kind:"scalar",resolve:qH,construct:$H,predicate:BH,represent:LH,defaultStyle:"lowercase"}),_B=mB.extend({implicit:[gB,yB,vB,bB]}),EB=_B,SB=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),wB=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 UH(e){return e===null?!1:SB.exec(e)!==null||wB.exec(e)!==null}function VH(e){var t,r,n,i,s,a,o,u=0,c=null,l,f,h;if(t=SB.exec(e),t===null&&(t=wB.exec(e)),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,i=+t[3],!t[4])return new Date(Date.UTC(r,n,i));if(s=+t[4],a=+t[5],o=+t[6],t[7]){for(u=t[7].slice(0,3);u.length<3;)u+="0";u=+u}return t[9]&&(l=+t[10],f=+(t[11]||0),c=(l*60+f)*6e4,t[9]==="-"&&(c=-c)),h=new Date(Date.UTC(r,n,i,s,a,o,u)),c&&h.setTime(h.getTime()-c),h}function zH(e){return e.toISOString()}var xB=new Gr("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:UH,construct:VH,instanceOf:Date,represent:zH});function WH(e){return e==="<<"||e===null}var AB=new Gr("tag:yaml.org,2002:merge",{kind:"scalar",resolve:WH}),QA=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
33
+ \r`;function JH(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=QA;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function KH(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=QA,a=0,o=[];for(t=0;t<i;t++)t%4===0&&t&&(o.push(a>>16&255),o.push(a>>8&255),o.push(a&255)),a=a<<6|s.indexOf(n.charAt(t));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 HH(e){var t="",r=0,n,i,s=e.length,a=QA;for(n=0;n<s;n++)n%3===0&&n&&(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]),r=(r<<8)+e[n];return i=s%3,i===0?(t+=a[r>>18&63],t+=a[r>>12&63],t+=a[r>>6&63],t+=a[r&63]):i===2?(t+=a[r>>10&63],t+=a[r>>4&63],t+=a[r<<2&63],t+=a[64]):i===1&&(t+=a[r>>2&63],t+=a[r<<4&63],t+=a[64],t+=a[64]),t}function GH(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var OB=new Gr("tag:yaml.org,2002:binary",{kind:"scalar",resolve:JH,construct:KH,predicate:GH,represent:HH}),YH=Object.prototype.hasOwnProperty,XH=Object.prototype.toString;function ZH(e){if(e===null)return!0;var t=[],r,n,i,s,a,o=e;for(r=0,n=o.length;r<n;r+=1){if(i=o[r],a=!1,XH.call(i)!=="[object Object]")return!1;for(s in i)if(YH.call(i,s))if(!a)a=!0;else return!1;if(!a)return!1;if(t.indexOf(s)===-1)t.push(s);else return!1}return!0}function QH(e){return e!==null?e:[]}var CB=new Gr("tag:yaml.org,2002:omap",{kind:"sequence",resolve:ZH,construct:QH}),eG=Object.prototype.toString;function tG(e){if(e===null)return!0;var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1){if(n=a[t],eG.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function rG(e){if(e===null)return[];var t,r,n,i,s,a=e;for(s=new Array(a.length),t=0,r=a.length;t<r;t+=1)n=a[t],i=Object.keys(n),s[t]=[i[0],n[i[0]]];return s}var RB=new Gr("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:tG,construct:rG}),nG=Object.prototype.hasOwnProperty;function iG(e){if(e===null)return!0;var t,r=e;for(t in r)if(nG.call(r,t)&&r[t]!==null)return!1;return!0}function sG(e){return e!==null?e:{}}var TB=new Gr("tag:yaml.org,2002:set",{kind:"mapping",resolve:iG,construct:sG}),eO=EB.extend({implicit:[xB,AB],explicit:[OB,CB,RB,TB]}),da=Object.prototype.hasOwnProperty,Cd=1,IB=2,jB=3,Rd=4,W0=1,aG=2,yP=3,oG=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,uG=/[\x85\u2028\u2029]/,cG=/[,\[\]\{\}]/,kB=/^(?:!|!!|![a-z\-]+!)$/i,PB=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function vP(e){return Object.prototype.toString.call(e)}function rs(e){return e===10||e===13}function Ba(e){return e===9||e===32}function jn(e){return e===9||e===32||e===10||e===13}function $o(e){return e===44||e===91||e===93||e===123||e===125}function lG(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function fG(e){return e===120?2:e===117?4:e===85?8:0}function dG(e){return 48<=e&&e<=57?e-48:-1}function bP(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
34
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"…":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function pG(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var NB=new Array(256),MB=new Array(256);for(var Ro=0;Ro<256;Ro++)NB[Ro]=bP(Ro)?1:0,MB[Ro]=bP(Ro);function hG(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||eO,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function DB(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=vH(r),new pn(t,r)}function Qe(e,t){throw DB(e,t)}function Td(e,t){e.onWarning&&e.onWarning.call(null,DB(e,t))}var _P={YAML:function(t,r,n){var i,s,a;t.version!==null&&Qe(t,"duplication of %YAML directive"),n.length!==1&&Qe(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&Qe(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&Qe(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&Td(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&Qe(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],kB.test(i)||Qe(t,"ill-formed tag handle (first argument) of the TAG directive"),da.call(t.tagMap,i)&&Qe(t,'there is a previously declared suffix for "'+i+'" tag handle'),PB.test(s)||Qe(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{Qe(t,"tag prefix is malformed: "+s)}t.tagMap[i]=s}};function ca(e,t,r,n){var i,s,a,o;if(t<r){if(o=e.input.slice(t,r),n)for(i=0,s=o.length;i<s;i+=1)a=o.charCodeAt(i),a===9||32<=a&&a<=1114111||Qe(e,"expected valid JSON character");else oG.test(o)&&Qe(e,"the stream contains non-printable characters");e.result+=o}}function EP(e,t,r,n){var i,s,a,o;for(Dr.isObject(r)||Qe(e,"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],da.call(t,s)||(t[s]=r[s],n[s]=!0)}function Fo(e,t,r,n,i,s,a,o,u){var c,l;if(Array.isArray(i))for(i=Array.prototype.slice.call(i),c=0,l=i.length;c<l;c+=1)Array.isArray(i[c])&&Qe(e,"nested arrays are not supported inside keys"),typeof i=="object"&&vP(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&vP(i)==="[object Object]"&&(i="[object Object]"),i=String(i),t===null&&(t={}),n==="tag:yaml.org,2002:merge")if(Array.isArray(s))for(c=0,l=s.length;c<l;c+=1)EP(e,t,s[c],r);else EP(e,t,s,r);else!e.json&&!da.call(r,i)&&da.call(t,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=u||e.position,Qe(e,"duplicated mapping key")),i==="__proto__"?Object.defineProperty(t,i,{configurable:!0,enumerable:!0,writable:!0,value:s}):t[i]=s,delete r[i];return t}function tO(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):Qe(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Cr(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ba(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(rs(i))for(tO(e),i=e.input.charCodeAt(e.position),n++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&Td(e,"deficient indentation"),n}function rh(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)&&(t+=3,r=e.input.charCodeAt(t),r===0||jn(r)))}function rO(e,t){t===1?e.result+=" ":t>1&&(e.result+=Dr.repeat(`
35
+ `,t-1))}function mG(e,t,r){var n,i,s,a,o,u,c,l,f=e.kind,h=e.result,p;if(p=e.input.charCodeAt(e.position),jn(p)||$o(p)||p===35||p===38||p===42||p===33||p===124||p===62||p===39||p===34||p===37||p===64||p===96||(p===63||p===45)&&(i=e.input.charCodeAt(e.position+1),jn(i)||r&&$o(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,o=!1;p!==0;){if(p===58){if(i=e.input.charCodeAt(e.position+1),jn(i)||r&&$o(i))break}else if(p===35){if(n=e.input.charCodeAt(e.position-1),jn(n))break}else{if(e.position===e.lineStart&&rh(e)||r&&$o(p))break;if(rs(p))if(u=e.line,c=e.lineStart,l=e.lineIndent,Cr(e,!1,-1),e.lineIndent>=t){o=!0,p=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=u,e.lineStart=c,e.lineIndent=l;break}}o&&(ca(e,s,a,!1),rO(e,e.line-u),s=a=e.position,o=!1),Ba(p)||(a=e.position+1),p=e.input.charCodeAt(++e.position)}return ca(e,s,a,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function gG(e,t){var r,n,i;if(r=e.input.charCodeAt(e.position),r!==39)return!1;for(e.kind="scalar",e.result="",e.position++,n=i=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(ca(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),r===39)n=e.position,e.position++,i=e.position;else return!0;else rs(r)?(ca(e,n,i,!0),rO(e,Cr(e,!1,t)),n=i=e.position):e.position===e.lineStart&&rh(e)?Qe(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);Qe(e,"unexpected end of the stream within a single quoted scalar")}function yG(e,t){var r,n,i,s,a,o;if(o=e.input.charCodeAt(e.position),o!==34)return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;(o=e.input.charCodeAt(e.position))!==0;){if(o===34)return ca(e,r,e.position,!0),e.position++,!0;if(o===92){if(ca(e,r,e.position,!0),o=e.input.charCodeAt(++e.position),rs(o))Cr(e,!1,t);else if(o<256&&NB[o])e.result+=MB[o],e.position++;else if((a=fG(o))>0){for(i=a,s=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=lG(o))>=0?s=(s<<4)+a:Qe(e,"expected hexadecimal character");e.result+=pG(s),e.position++}else Qe(e,"unknown escape sequence");r=n=e.position}else rs(o)?(ca(e,r,n,!0),rO(e,Cr(e,!1,t)),r=n=e.position):e.position===e.lineStart&&rh(e)?Qe(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Qe(e,"unexpected end of the stream within a double quoted scalar")}function vG(e,t){var r=!0,n,i,s,a=e.tag,o,u=e.anchor,c,l,f,h,p,g=Object.create(null),y,v,E,b;if(b=e.input.charCodeAt(e.position),b===91)l=93,p=!1,o=[];else if(b===123)l=125,p=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),b=e.input.charCodeAt(++e.position);b!==0;){if(Cr(e,!0,t),b=e.input.charCodeAt(e.position),b===l)return e.position++,e.tag=a,e.anchor=u,e.kind=p?"mapping":"sequence",e.result=o,!0;r?b===44&&Qe(e,"expected the node content, but found ','"):Qe(e,"missed comma between flow collection entries"),v=y=E=null,f=h=!1,b===63&&(c=e.input.charCodeAt(e.position+1),jn(c)&&(f=h=!0,e.position++,Cr(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Ko(e,t,Cd,!1,!0),v=e.tag,y=e.result,Cr(e,!0,t),b=e.input.charCodeAt(e.position),(h||e.line===n)&&b===58&&(f=!0,b=e.input.charCodeAt(++e.position),Cr(e,!0,t),Ko(e,t,Cd,!1,!0),E=e.result),p?Fo(e,o,g,v,y,E,n,i,s):f?o.push(Fo(e,null,g,v,y,E,n,i,s)):o.push(y),Cr(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}Qe(e,"unexpected end of the stream within a flow collection")}function bG(e,t){var r,n,i=W0,s=!1,a=!1,o=t,u=0,c=!1,l,f;if(f=e.input.charCodeAt(e.position),f===124)n=!1;else if(f===62)n=!0;else return!1;for(e.kind="scalar",e.result="";f!==0;)if(f=e.input.charCodeAt(++e.position),f===43||f===45)W0===i?i=f===43?yP:aG:Qe(e,"repeat of a chomping mode identifier");else if((l=dG(f))>=0)l===0?Qe(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?Qe(e,"repeat of an indentation width identifier"):(o=t+l-1,a=!0);else break;if(Ba(f)){do f=e.input.charCodeAt(++e.position);while(Ba(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!rs(f)&&f!==0)}for(;f!==0;){for(tO(e),e.lineIndent=0,f=e.input.charCodeAt(e.position);(!a||e.lineIndent<o)&&f===32;)e.lineIndent++,f=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>o&&(o=e.lineIndent),rs(f)){u++;continue}if(e.lineIndent<o){i===yP?e.result+=Dr.repeat(`
36
+ `,s?1+u:u):i===W0&&s&&(e.result+=`
37
+ `);break}for(n?Ba(f)?(c=!0,e.result+=Dr.repeat(`
38
+ `,s?1+u:u)):c?(c=!1,e.result+=Dr.repeat(`
39
+ `,u+1)):u===0?s&&(e.result+=" "):e.result+=Dr.repeat(`
40
+ `,u):e.result+=Dr.repeat(`
41
+ `,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!rs(f)&&f!==0;)f=e.input.charCodeAt(++e.position);ca(e,r,e.position,!1)}return!0}function SP(e,t){var r,n=e.tag,i=e.anchor,s=[],a,o=!1,u;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=s),u=e.input.charCodeAt(e.position);u!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Qe(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!jn(a))));){if(o=!0,e.position++,Cr(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Ko(e,t,jB,!1,!0),s.push(e.result),Cr(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)Qe(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return o?(e.tag=n,e.anchor=i,e.kind="sequence",e.result=s,!0):!1}function _G(e,t,r){var n,i,s,a,o,u,c=e.tag,l=e.anchor,f={},h=Object.create(null),p=null,g=null,y=null,v=!1,E=!1,b;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=f),b=e.input.charCodeAt(e.position);b!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,Qe(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(b===63||b===58)&&jn(n))b===63?(v&&(Fo(e,f,h,p,g,null,a,o,u),p=g=y=null),E=!0,v=!0,i=!0):v?(v=!1,i=!0):Qe(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,b=n;else{if(a=e.line,o=e.lineStart,u=e.position,!Ko(e,r,IB,!1,!0))break;if(e.line===s){for(b=e.input.charCodeAt(e.position);Ba(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),jn(b)||Qe(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Fo(e,f,h,p,g,null,a,o,u),p=g=y=null),E=!0,v=!1,i=!1,p=e.tag,g=e.result;else if(E)Qe(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(E)Qe(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=c,e.anchor=l,!0}if((e.line===s||e.lineIndent>t)&&(v&&(a=e.line,o=e.lineStart,u=e.position),Ko(e,t,Rd,!0,i)&&(v?g=e.result:y=e.result),v||(Fo(e,f,h,p,g,y,a,o,u),p=g=y=null),Cr(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&b!==0)Qe(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Fo(e,f,h,p,g,null,a,o,u),E&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),E}function EG(e){var t,r=!1,n=!1,i,s,a;if(a=e.input.charCodeAt(e.position),a!==33)return!1;if(e.tag!==null&&Qe(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(r=!0,a=e.input.charCodeAt(++e.position)):a===33?(n=!0,i="!!",a=e.input.charCodeAt(++e.position)):i="!",t=e.position,r){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(s=e.input.slice(t,e.position),a=e.input.charCodeAt(++e.position)):Qe(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!jn(a);)a===33&&(n?Qe(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),kB.test(i)||Qe(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),a=e.input.charCodeAt(++e.position);s=e.input.slice(t,e.position),cG.test(s)&&Qe(e,"tag suffix cannot contain flow indicator characters")}s&&!PB.test(s)&&Qe(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{Qe(e,"tag name is malformed: "+s)}return r?e.tag=s:da.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:Qe(e,'undeclared tag handle "'+i+'"'),!0}function SG(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&Qe(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!jn(r)&&!$o(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Qe(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function wG(e){var t,r,n;if(n=e.input.charCodeAt(e.position),n!==42)return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;n!==0&&!jn(n)&&!$o(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Qe(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),da.call(e.anchorMap,r)||Qe(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Cr(e,!0,-1),!0}function Ko(e,t,r,n,i){var s,a,o,u=1,c=!1,l=!1,f,h,p,g,y,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,s=a=o=Rd===r||jB===r,n&&Cr(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;EG(e)||SG(e);)Cr(e,!0,-1)?(c=!0,o=s,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)):o=!1;if(o&&(o=c||i),(u===1||Rd===r)&&(Cd===r||IB===r?y=t:y=t+1,v=e.position-e.lineStart,u===1?o&&(SP(e,v)||_G(e,v,y))||vG(e,y)?l=!0:(a&&bG(e,y)||gG(e,y)||yG(e,y)?l=!0:wG(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&Qe(e,"alias node should not have any properties")):mG(e,y,Cd===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=o&&SP(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&Qe(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),f=0,h=e.implicitTypes.length;f<h;f+=1)if(g=e.implicitTypes[f],g.resolve(e.result)){e.result=g.construct(e.result),e.tag=g.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(da.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,p=e.typeMap.multi[e.kind||"fallback"],f=0,h=p.length;f<h;f+=1)if(e.tag.slice(0,p[f].tag.length)===p[f].tag){g=p[f];break}g||Qe(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&Qe(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+g.kind+'", not "'+e.kind+'"'),g.resolve(e.result,e.tag)?(e.result=g.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):Qe(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||l}function xG(e){var t=e.position,r,n,i,s=!1,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(Cr(e,!0,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(s=!0,a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!jn(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&Qe(e,"directive name must not be less than one character in length");a!==0;){for(;Ba(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!rs(a));break}if(rs(a))break;for(r=e.position;a!==0&&!jn(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&tO(e),da.call(_P,n)?_P[n](e,n,i):Td(e,'unknown document directive "'+n+'"')}if(Cr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Cr(e,!0,-1)):s&&Qe(e,"directives end mark is expected"),Ko(e,e.lineIndent-1,Rd,!1,!0),Cr(e,!0,-1),e.checkLineBreaks&&uG.test(e.input.slice(t,e.position))&&Td(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&rh(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Cr(e,!0,-1));return}if(e.position<e.length-1)Qe(e,"end of the stream or a document separator is expected");else return}function qB(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
42
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new hG(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,Qe(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;)xG(r);return r.documents}function AG(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=qB(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function OG(e,t){var r=qB(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new pn("expected a single document in the stream, but found more")}}var CG=AG,RG=OG,$B={loadAll:CG,load:RG},FB=Object.prototype.toString,LB=Object.prototype.hasOwnProperty,nO=65279,TG=9,Sc=10,IG=13,jG=32,kG=33,PG=34,gw=35,NG=37,MG=38,DG=39,qG=42,BB=44,$G=45,Id=58,FG=61,LG=62,BG=63,UG=64,UB=91,VB=93,VG=96,zB=123,zG=124,WB=125,rn={};rn[0]="\\0";rn[7]="\\a";rn[8]="\\b";rn[9]="\\t";rn[10]="\\n";rn[11]="\\v";rn[12]="\\f";rn[13]="\\r";rn[27]="\\e";rn[34]='\\"';rn[92]="\\\\";rn[133]="\\N";rn[160]="\\_";rn[8232]="\\L";rn[8233]="\\P";var WG=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],JG=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function KG(e,t){var r,n,i,s,a,o,u;if(t===null)return{};for(r={},n=Object.keys(t),i=0,s=n.length;i<s;i+=1)a=n[i],o=String(t[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),u=e.compiledTypeMap.fallback[a],u&&LB.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[a]=o;return r}function HG(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else if(e<=4294967295)r="U",n=8;else throw new pn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Dr.repeat("0",n-t.length)+t}var GG=1,wc=2;function YG(e){this.schema=e.schema||eO,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Dr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=KG(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?wc:GG,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function wP(e,t){for(var r=Dr.repeat(" ",t),n=0,i=-1,s="",a,o=e.length;n<o;)i=e.indexOf(`
43
+ `,n),i===-1?(a=e.slice(n),n=o):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
44
+ `&&(s+=r),s+=a;return s}function yw(e,t){return`
45
+ `+Dr.repeat(" ",e.indent*t)}function XG(e,t){var r,n,i;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(i=e.implicitTypes[r],i.resolve(t))return!0;return!1}function jd(e){return e===jG||e===TG}function xc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==nO||65536<=e&&e<=1114111}function xP(e){return xc(e)&&e!==nO&&e!==IG&&e!==Sc}function AP(e,t,r){var n=xP(e),i=n&&!jd(e);return(r?n:n&&e!==BB&&e!==UB&&e!==VB&&e!==zB&&e!==WB)&&e!==gw&&!(t===Id&&!i)||xP(t)&&!jd(t)&&e===gw||t===Id&&i}function ZG(e){return xc(e)&&e!==nO&&!jd(e)&&e!==$G&&e!==BG&&e!==Id&&e!==BB&&e!==UB&&e!==VB&&e!==zB&&e!==WB&&e!==gw&&e!==MG&&e!==qG&&e!==kG&&e!==zG&&e!==FG&&e!==LG&&e!==DG&&e!==PG&&e!==NG&&e!==UG&&e!==VG}function QG(e){return!jd(e)&&e!==Id}function ec(e,t){var r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function JB(e){var t=/^\n* /;return t.test(e)}var KB=1,vw=2,HB=3,GB=4,Mo=5;function eY(e,t,r,n,i,s,a,o){var u,c=0,l=null,f=!1,h=!1,p=n!==-1,g=-1,y=ZG(ec(e,0))&&QG(ec(e,e.length-1));if(t||a)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=ec(e,u),!xc(c))return Mo;y=y&&AP(c,l,o),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=ec(e,u),c===Sc)f=!0,p&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!xc(c))return Mo;y=y&&AP(c,l,o),l=c}h=h||p&&u-g-1>n&&e[g+1]!==" "}return!f&&!h?y&&!a&&!i(e)?KB:s===wc?Mo:vw:r>9&&JB(e)?Mo:a?s===wc?Mo:vw:h?GB:HB}function tY(e,t,r,n,i){e.dump=function(){if(t.length===0)return e.quotingType===wc?'""':"''";if(!e.noCompatMode&&(WG.indexOf(t)!==-1||JG.test(t)))return e.quotingType===wc?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s),o=n||e.flowLevel>-1&&r>=e.flowLevel;function u(c){return XG(e,c)}switch(eY(t,o,e.indent,a,u,e.quotingType,e.forceQuotes&&!n,i)){case KB:return t;case vw:return"'"+t.replace(/'/g,"''")+"'";case HB:return"|"+OP(t,e.indent)+CP(wP(t,s));case GB:return">"+OP(t,e.indent)+CP(wP(rY(t,a),s));case Mo:return'"'+nY(t)+'"';default:throw new pn("impossible error: invalid scalar style")}}()}function OP(e,t){var r=JB(e)?String(t):"",n=e[e.length-1]===`
46
+ `,i=n&&(e[e.length-2]===`
47
+ `||e===`
48
+ `),s=i?"+":n?"":"-";return r+s+`
49
+ `}function CP(e){return e[e.length-1]===`
50
+ `?e.slice(0,-1):e}function rY(e,t){for(var r=/(\n+)([^\n]*)/g,n=function(){var c=e.indexOf(`
51
+ `);return c=c!==-1?c:e.length,r.lastIndex=c,RP(e.slice(0,c),t)}(),i=e[0]===`
52
+ `||e[0]===" ",s,a;a=r.exec(e);){var o=a[1],u=a[2];s=u[0]===" ",n+=o+(!i&&!s&&u!==""?`
53
+ `:"")+RP(u,t),i=s}return n}function RP(e,t){if(e===""||e[0]===" ")return e;for(var r=/ [^ ]/g,n,i=0,s,a=0,o=0,u="";n=r.exec(e);)o=n.index,o-i>t&&(s=a>i?a:o,u+=`
54
+ `+e.slice(i,s),i=s+1),a=o;return u+=`
55
+ `,e.length-i>t&&a>i?u+=e.slice(i,a)+`
56
+ `+e.slice(a+1):u+=e.slice(i),u.slice(1)}function nY(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=ec(e,i),n=rn[r],!n&&xc(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||HG(r);return t}function iY(e,t,r){var n="",i=e.tag,s,a,o;for(s=0,a=r.length;s<a;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(Cs(e,t,o,!1,!1)||typeof o>"u"&&Cs(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function TP(e,t,r,n){var i="",s=e.tag,a,o,u;for(a=0,o=r.length;a<o;a+=1)u=r[a],e.replacer&&(u=e.replacer.call(r,String(a),u)),(Cs(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Cs(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=yw(e,t)),e.dump&&Sc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function sY(e,t,r){var n="",i=e.tag,s=Object.keys(r),a,o,u,c,l;for(a=0,o=s.length;a<o;a+=1)l="",n!==""&&(l+=", "),e.condenseFlow&&(l+='"'),u=s[a],c=r[u],e.replacer&&(c=e.replacer.call(r,u,c)),Cs(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Cs(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function aY(e,t,r,n){var i="",s=e.tag,a=Object.keys(r),o,u,c,l,f,h;if(e.sortKeys===!0)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new pn("sortKeys must be a boolean or a function");for(o=0,u=a.length;o<u;o+=1)h="",(!n||i!=="")&&(h+=yw(e,t)),c=a[o],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),Cs(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Sc===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=yw(e,t)),Cs(e,t+1,l,!0,f)&&(e.dump&&Sc===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function IP(e,t,r){var n,i,s,a,o,u;for(i=r?e.explicitTypes:e.implicitTypes,s=0,a=i.length;s<a;s+=1)if(o=i[s],(o.instanceOf||o.predicate)&&(!o.instanceOf||typeof t=="object"&&t instanceof o.instanceOf)&&(!o.predicate||o.predicate(t))){if(r?o.multi&&o.representName?e.tag=o.representName(t):e.tag=o.tag:e.tag="?",o.represent){if(u=e.styleMap[o.tag]||o.defaultStyle,FB.call(o.represent)==="[object Function]")n=o.represent(t,u);else if(LB.call(o.represent,u))n=o.represent[u](t,u);else throw new pn("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function Cs(e,t,r,n,i,s,a){e.tag=null,e.dump=r,IP(e,r,!1)||IP(e,r,!0);var o=FB.call(e.dump),u=n,c;n&&(n=e.flowLevel<0||e.flowLevel>t);var l=o==="[object Object]"||o==="[object Array]",f,h;if(l&&(f=e.duplicates.indexOf(r),h=f!==-1),(e.tag!==null&&e.tag!=="?"||h||e.indent!==2&&t>0)&&(i=!1),h&&e.usedDuplicates[f])e.dump="*ref_"+f;else{if(l&&h&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),o==="[object Object]")n&&Object.keys(e.dump).length!==0?(aY(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(sY(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(o==="[object Array]")n&&e.dump.length!==0?(e.noArrayIndent&&!a&&t>0?TP(e,t-1,e.dump,i):TP(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(iY(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&tY(e,e.dump,t,s,u);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new pn("unacceptable kind of an object to dump "+o)}e.tag!==null&&e.tag!=="?"&&(c=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?c="!"+c:c.slice(0,18)==="tag:yaml.org,2002:"?c="!!"+c.slice(18):c="!<"+c+">",e.dump=c+" "+e.dump)}return!0}function oY(e,t){var r=[],n=[],i,s;for(bw(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function bw(e,t,r){var n,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)bw(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)bw(e[n[i]],t,r)}function uY(e,t){t=t||{};var r=new YG(t);r.noRefs||oY(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Cs(r,0,n,!0,!0)?r.dump+`
57
+ `:""}var cY=uY,lY={dump:cY};function iO(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var fY=Gr,dY=fB,pY=mB,Ac=_B,hY=EB,mY=eO,gY=$B.load,yY=$B.loadAll,vY=lY.dump,bY=pn,_Y={binary:OB,float:bB,map:hB,null:gB,pairs:RB,set:TB,timestamp:xB,bool:yB,int:vB,merge:AB,omap:CB,seq:pB,str:dB},EY=iO("safeLoad","load"),SY=iO("safeLoadAll","loadAll"),wY=iO("safeDump","dump"),Wa={Type:fY,Schema:dY,FAILSAFE_SCHEMA:pY,JSON_SCHEMA:Ac,CORE_SCHEMA:hY,DEFAULT_SCHEMA:mY,load:gY,loadAll:yY,dump:vY,YAMLException:bY,types:_Y,safeLoad:EY,safeLoadAll:SY,safeDump:wY},dd={exports:{}},xY=dd.exports,jP;function AY(){return jP||(jP=1,function(e){(function(t,r){e.exports?e.exports=r():function n(){document&&document.body?t.zenscroll=r():setTimeout(n,9)}()})(xY,function(){var t=function(c){return c&&"getComputedStyle"in window&&window.getComputedStyle(c)["scroll-behavior"]==="smooth"};if(typeof window>"u"||!("document"in window))return{};var r=function(c,l,f){l=l||999,!f&&f!==0&&(f=9);var h,p=function(_){h=_},g=function(){clearTimeout(h),p(0)},y=function(_){return Math.max(0,c.getTopOf(_)-f)},v=function(_,A,C){if(g(),A===0||A&&A<0||t(c.body))c.toY(_),C&&C();else{var T=c.getY(),O=Math.max(0,_)-T,M=new Date().getTime();A=A||Math.min(Math.abs(O),l),function k(){p(setTimeout(function(){var D=Math.min(1,(new Date().getTime()-M)/A),P=Math.max(0,Math.floor(T+O*(D<.5?2*D*D:D*(4-D*2)-1)));c.toY(P),D<1&&c.getHeight()+P<c.body.scrollHeight?k():(setTimeout(g,99),C&&C())},9))}()}},E=function(_,A,C){v(y(_),A,C)},b=function(_,A,C){var T=_.getBoundingClientRect().height,O=c.getTopOf(_)+T,M=c.getHeight(),k=c.getY(),D=k+M;y(_)<k||T+f>M?E(_,A,C):O+f>D?v(O-M+f,A,C):C&&C()},S=function(_,A,C,T){v(Math.max(0,c.getTopOf(_)-c.getHeight()/2+(C||_.getBoundingClientRect().height/2)),A,T)},x=function(_,A){return(_===0||_)&&(l=_),(A===0||A)&&(f=A),{defaultDuration:l,edgeOffset:f}};return{setup:x,to:E,toY:v,intoView:b,center:S,stop:g,moving:function(){return!!h},getY:c.getY,getTopOf:c.getTopOf}},n=document.documentElement,i=function(){return window.scrollY||n.scrollTop},s=r({body:document.scrollingElement||document.body,toY:function(c){window.scrollTo(0,c)},getY:i,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(c){return c.getBoundingClientRect().top+i()-n.offsetTop}});if(s.createScroller=function(c,l,f){return r({body:c,toY:function(h){c.scrollTop=h},getY:function(){return c.scrollTop},getHeight:function(){return Math.min(c.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(h){return h.offsetTop}},l,f)},"addEventListener"in window&&!window.noZensmooth&&!t(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(c){c.state&&"zenscrollY"in c.state&&s.toY(c.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var c=s.setup().edgeOffset;if(c){var l=document.getElementById(window.location.href.split("#")[1]);if(l){var f=Math.max(0,s.getTopOf(l)-c),h=s.getY()-f;0<=h&&h<9&&window.scrollTo(0,f)}}},9)},!1);var u=new RegExp("(^|\\s)noZensmooth(\\s|$)");window.addEventListener("click",function(c){for(var l=c.target;l&&l.tagName!=="A";)l=l.parentNode;if(!(!l||c.which!==1||c.shiftKey||c.metaKey||c.ctrlKey||c.altKey)){if(o){var f=history.state&&typeof history.state=="object"?history.state:{};f.zenscrollY=s.getY();try{history.replaceState(f,"")}catch{}}var h=l.getAttribute("href")||"";if(h.indexOf("#")===0&&!u.test(l.className)){var p=0,g=document.getElementById(h.substring(1));if(h!=="#"){if(!g)return;p=s.getTopOf(g)}c.preventDefault();var y=function(){window.location=h},v=s.setup().edgeOffset;v&&(p=Math.max(0,p-v),a&&(y=function(){history.pushState({},"",h)})),s.toY(p,null,y)}}},!1)}return s})}(dd)),dd.exports}var OY=AY();const CY=Ue.getDefaultExportFromCjs(OY);/**
58
+ * @license
59
+ * MIT License
60
+ *
61
+ * Copyright (c) 2014-present, Lee Byron and other contributors.
62
+ *
63
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
64
+ * of this software and associated documentation files (the "Software"), to deal
65
+ * in the Software without restriction, including without limitation the rights
66
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
67
+ * copies of the Software, and to permit persons to whom the Software is
68
+ * furnished to do so, subject to the following conditions:
69
+ *
70
+ * The above copyright notice and this permission notice shall be included in all
71
+ * copies or substantial portions of the Software.
72
+ *
73
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
74
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
75
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
76
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
77
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
78
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
79
+ * SOFTWARE.
80
+ */var il="delete",Gt=5,Jn=1<<Gt,hn=Jn-1,xt={};function _w(){return{value:!1}}function ui(e){e&&(e.value=!0)}function sO(){}function Ho(e){return e.size===void 0&&(e.size=e.__iterate(YB)),e.size}function pa(e,t){if(typeof t!="number"){var r=t>>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?Ho(e)+t:t}function YB(){return!0}function sl(e,t,r){return(e===0&&!ZB(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function mu(e,t){return XB(e,t,0)}function al(e,t){return XB(e,t,t)}function XB(e,t,r){return e===void 0?r:ZB(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function ZB(e){return e<0||e===0&&1/e===-1/0}var QB="@@__IMMUTABLE_ITERABLE__@@";function Pn(e){return!!(e&&e[QB])}var e6="@@__IMMUTABLE_KEYED__@@";function nr(e){return!!(e&&e[e6])}var t6="@@__IMMUTABLE_INDEXED__@@";function mn(e){return!!(e&&e[t6])}function nh(e){return nr(e)||mn(e)}var $r=function(t){return Pn(t)?t:yn(t)},hi=function(e){function t(r){return nr(r)?r:ya(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}($r),ro=function(e){function t(r){return mn(r)?r:gi(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}($r),gu=function(e){function t(r){return Pn(r)&&!nh(r)?r:bu(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}($r);$r.Keyed=hi;$r.Indexed=ro;$r.Set=gu;var r6="@@__IMMUTABLE_SEQ__@@";function ih(e){return!!(e&&e[r6])}var n6="@@__IMMUTABLE_RECORD__@@";function no(e){return!!(e&&e[n6])}function mi(e){return Pn(e)||no(e)}var yu="@@__IMMUTABLE_ORDERED__@@";function Ii(e){return!!(e&&e[yu])}var ol=0,ki=1,li=2,Ew=typeof Symbol=="function"&&Symbol.iterator,i6="@@iterator",sh=Ew||i6,Tt=function(t){this.next=t};Tt.prototype.toString=function(){return"[Iterator]"};Tt.KEYS=ol;Tt.VALUES=ki;Tt.ENTRIES=li;Tt.prototype.inspect=Tt.prototype.toSource=function(){return this.toString()};Tt.prototype[sh]=function(){return this};function ir(e,t,r,n){var i=e===0?t:e===1?r:[t,r];return n?n.value=i:n={value:i,done:!1},n}function gn(){return{value:void 0,done:!0}}function aO(e){return Array.isArray(e)?!0:!!ah(e)}function kP(e){return e&&typeof e.next=="function"}function Sw(e){var t=ah(e);return t&&t.call(e)}function ah(e){var t=e&&(Ew&&e[Ew]||e[i6]);if(typeof t=="function")return t}function RY(e){var t=ah(e);return t&&t===e.entries}function TY(e){var t=ah(e);return t&&t===e.keys}var vu=Object.prototype.hasOwnProperty;function oO(e){return Array.isArray(e)||typeof e=="string"?!0:e&&typeof e=="object"&&Number.isInteger(e.length)&&e.length>=0&&(e.length===0?Object.keys(e).length===1:e.hasOwnProperty(e.length-1))}var yn=function(e){function t(r){return r==null?cO():mi(r)?r.toSeq():jY(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq {","}")},t.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},t.prototype.__iterate=function(n,i){var s=this._cache;if(s){for(var a=s.length,o=0;o!==a;){var u=s[i?a-++o:o++];if(n(u[1],u[0],this)===!1)break}return o}return this.__iterateUncached(n,i)},t.prototype.__iterator=function(n,i){var s=this._cache;if(s){var a=s.length,o=0;return new Tt(function(){if(o===a)return gn();var u=s[i?a-++o:o++];return ir(n,u[0],u[1])})}return this.__iteratorUncached(n,i)},t}($r),ya=function(e){function t(r){return r==null?cO().toKeyedSeq():Pn(r)?nr(r)?r.toSeq():r.fromEntrySeq():no(r)?r.toSeq():lO(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(yn),gi=function(e){function t(r){return r==null?cO():Pn(r)?nr(r)?r.entrySeq():r.toIndexedSeq():no(r)?r.toSeq().entrySeq():s6(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toIndexedSeq=function(){return this},t.prototype.toString=function(){return this.__toString("Seq [","]")},t}(yn),bu=function(e){function t(r){return(Pn(r)&&!nh(r)?r:gi(r)).toSetSeq()}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return t(arguments)},t.prototype.toSetSeq=function(){return this},t}(yn);yn.isSeq=ih;yn.Keyed=ya;yn.Set=bu;yn.Indexed=gi;yn.prototype[r6]=!0;var Ja=function(e){function t(r){this._array=r,this.size=r.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return this.has(n)?this._array[pa(this,n)]:i},t.prototype.__iterate=function(n,i){for(var s=this._array,a=s.length,o=0;o!==a;){var u=i?a-++o:o++;if(n(s[u],u,this)===!1)break}return o},t.prototype.__iterator=function(n,i){var s=this._array,a=s.length,o=0;return new Tt(function(){if(o===a)return gn();var u=i?a-++o:o++;return ir(n,u,s[u])})},t}(gi),uO=function(e){function t(r){var n=Object.keys(r).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(r):[]);this._object=r,this._keys=n,this.size=n.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return i!==void 0&&!this.has(n)?i:this._object[n]},t.prototype.has=function(n){return vu.call(this._object,n)},t.prototype.__iterate=function(n,i){for(var s=this._object,a=this._keys,o=a.length,u=0;u!==o;){var c=a[i?o-++u:u++];if(n(s[c],c,this)===!1)break}return u},t.prototype.__iterator=function(n,i){var s=this._object,a=this._keys,o=a.length,u=0;return new Tt(function(){if(u===o)return gn();var c=a[i?o-++u:u++];return ir(n,c,s[c])})},t}(ya);uO.prototype[yu]=!0;var IY=function(e){function t(r){this._collection=r,this.size=r.length||r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,i){if(i)return this.cacheResult().__iterate(n,i);var s=this._collection,a=Sw(s),o=0;if(kP(a))for(var u;!(u=a.next()).done&&n(u.value,o++,this)!==!1;);return o},t.prototype.__iteratorUncached=function(n,i){if(i)return this.cacheResult().__iterator(n,i);var s=this._collection,a=Sw(s);if(!kP(a))return new Tt(gn);var o=0;return new Tt(function(){var u=a.next();return u.done?u:ir(n,o++,u.value)})},t}(gi),PP;function cO(){return PP||(PP=new Ja([]))}function lO(e){var t=fO(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new uO(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function s6(e){var t=fO(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function jY(e){var t=fO(e);if(t)return RY(e)?t.fromEntrySeq():TY(e)?t.toSetSeq():t;if(typeof e=="object")return new uO(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function fO(e){return oO(e)?new Ja(e):aO(e)?new IY(e):void 0}var a6="@@__IMMUTABLE_MAP__@@";function oh(e){return!!(e&&e[a6])}function dO(e){return oh(e)&&Ii(e)}function ww(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function Rr(e,t){if(e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1;if(typeof e.valueOf=="function"&&typeof t.valueOf=="function"){if(e=e.valueOf(),t=t.valueOf(),e===t||e!==e&&t!==t)return!0;if(!e||!t)return!1}return!!(ww(e)&&ww(t)&&e.equals(t))}var Lu=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(t,r){t|=0,r|=0;var n=t&65535,i=r&65535;return n*i+((t>>>16)*i+n*(r>>>16)<<16>>>0)|0};function uh(e){return e>>>1&1073741824|e&3221225471}var kY=Object.prototype.valueOf;function In(e){if(e==null)return NP(e);if(typeof e.hashCode=="function")return uh(e.hashCode(e));var t=$Y(e);if(t==null)return NP(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return PY(t);case"string":return t.length>FY?NY(t):xw(t);case"object":case"function":return DY(t);case"symbol":return MY(t);default:if(typeof t.toString=="function")return xw(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function NP(e){return e===null?1108378658:1108378659}function PY(e){if(e!==e||e===1/0)return 0;var t=e|0;for(t!==e&&(t^=e*4294967295);e>4294967295;)e/=4294967295,t^=e;return uh(t)}function NY(e){var t=H0[e];return t===void 0&&(t=xw(e),K0===LY&&(K0=0,H0={}),K0++,H0[e]=t),t}function xw(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return uh(t)}function MY(e){var t=qP[e];return t!==void 0||(t=o6(),qP[e]=t),t}function DY(e){var t;if(Aw&&(t=Ow.get(e),t!==void 0)||(t=e[Da],t!==void 0)||!DP&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Da],t!==void 0||(t=qY(e),t!==void 0)))return t;if(t=o6(),Aw)Ow.set(e,t);else{if(MP!==void 0&&MP(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(DP)Object.defineProperty(e,Da,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(e.propertyIsEnumerable!==void 0&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Da]=t;else if(e.nodeType!==void 0)e[Da]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var MP=Object.isExtensible,DP=function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}}();function qY(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function $Y(e){return e.valueOf!==kY&&typeof e.valueOf=="function"?e.valueOf(e):e}function o6(){var e=++J0;return J0&1073741824&&(J0=0),e}var Aw=typeof WeakMap=="function",Ow;Aw&&(Ow=new WeakMap);var qP=Object.create(null),J0=0,Da="__immutablehash__";typeof Symbol=="function"&&(Da=Symbol(Da));var FY=16,LY=255,K0=0,H0={},ch=function(e){function t(r,n){this._iter=r,this._useKeys=n,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(n,i){return this._iter.get(n,i)},t.prototype.has=function(n){return this._iter.has(n)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var n=this,i=pO(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},t.prototype.map=function(n,i){var s=this,a=d6(this,n,i);return this._useKeys||(a.valueSeq=function(){return s._iter.toSeq().map(n,i)}),a},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a,o){return n(a,o,s)},i)},t.prototype.__iterator=function(n,i){return this._iter.__iterator(n,i)},t}(ya);ch.prototype[yu]=!0;var u6=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,i){var s=this,a=0;return i&&Ho(this),this._iter.__iterate(function(o){return n(o,i?s.size-++a:a++,s)},i)},t.prototype.__iterator=function(n,i){var s=this,a=this._iter.__iterator(ki,i),o=0;return i&&Ho(this),new Tt(function(){var u=a.next();return u.done?u:ir(n,i?s.size-++o:o++,u.value,u)})},t}(gi),c6=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(n){return this._iter.includes(n)},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a){return n(a,a,s)},i)},t.prototype.__iterator=function(n,i){var s=this._iter.__iterator(ki,i);return new Tt(function(){var a=s.next();return a.done?a:ir(n,a.value,a.value,a)})},t}(bu),l6=function(e){function t(r){this._iter=r,this.size=r.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.entrySeq=function(){return this._iter.toSeq()},t.prototype.__iterate=function(n,i){var s=this;return this._iter.__iterate(function(a){if(a){FP(a);var o=Pn(a);return n(o?a.get(1):a[1],o?a.get(0):a[0],s)}},i)},t.prototype.__iterator=function(n,i){var s=this._iter.__iterator(ki,i);return new Tt(function(){for(;;){var a=s.next();if(a.done)return a;var o=a.value;if(o){FP(o);var u=Pn(o);return ir(n,u?o.get(0):o[0],u?o.get(1):o[1],a)}}})},t}(ya);u6.prototype.cacheResult=ch.prototype.cacheResult=c6.prototype.cacheResult=l6.prototype.cacheResult=gO;function f6(e){var t=cs(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var r=e.reverse.apply(this);return r.flip=function(){return e.reverse()},r},t.has=function(r){return e.includes(r)},t.includes=function(r){return e.has(r)},t.cacheResult=gO,t.__iterateUncached=function(r,n){var i=this;return e.__iterate(function(s,a){return r(a,s,i)!==!1},n)},t.__iteratorUncached=function(r,n){if(r===li){var i=e.__iterator(r,n);return new Tt(function(){var s=i.next();if(!s.done){var a=s.value[0];s.value[0]=s.value[1],s.value[1]=a}return s})}return e.__iterator(r===ki?ol:ki,n)},t}function d6(e,t,r){var n=cs(e);return n.size=e.size,n.has=function(i){return e.has(i)},n.get=function(i,s){var a=e.get(i,xt);return a===xt?s:t.call(r,a,i,e)},n.__iterateUncached=function(i,s){var a=this;return e.__iterate(function(o,u,c){return i(t.call(r,o,u,c),u,a)!==!1},s)},n.__iteratorUncached=function(i,s){var a=e.__iterator(li,s);return new Tt(function(){var o=a.next();if(o.done)return o;var u=o.value,c=u[0];return ir(i,c,t.call(r,u[1],c,e),o)})},n}function pO(e,t){var r=this,n=cs(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var i=f6(e);return i.reverse=function(){return e.flip()},i}),n.get=function(i,s){return e.get(t?i:-1-i,s)},n.has=function(i){return e.has(t?i:-1-i)},n.includes=function(i){return e.includes(i)},n.cacheResult=gO,n.__iterate=function(i,s){var a=this,o=0;return s&&Ho(e),e.__iterate(function(u,c){return i(u,t?c:s?a.size-++o:o++,a)},!s)},n.__iterator=function(i,s){var a=0;s&&Ho(e);var o=e.__iterator(li,!s);return new Tt(function(){var u=o.next();if(u.done)return u;var c=u.value;return ir(i,t?c[0]:s?r.size-++a:a++,c[1],u)})},n}function p6(e,t,r,n){var i=cs(e);return n&&(i.has=function(s){var a=e.get(s,xt);return a!==xt&&!!t.call(r,a,s,e)},i.get=function(s,a){var o=e.get(s,xt);return o!==xt&&t.call(r,o,s,e)?o:a}),i.__iterateUncached=function(s,a){var o=this,u=0;return e.__iterate(function(c,l,f){if(t.call(r,c,l,f))return u++,s(c,n?l:u-1,o)},a),u},i.__iteratorUncached=function(s,a){var o=e.__iterator(li,a),u=0;return new Tt(function(){for(;;){var c=o.next();if(c.done)return c;var l=c.value,f=l[0],h=l[1];if(t.call(r,h,f,e))return ir(s,n?f:u++,h,c)}})},i}function BY(e,t,r){var n=so().asMutable();return e.__iterate(function(i,s){n.update(t.call(r,i,s,e),0,function(a){return a+1})}),n.asImmutable()}function UY(e,t,r){var n=nr(e),i=(Ii(e)?is():so()).asMutable();e.__iterate(function(a,o){i.update(t.call(r,a,o,e),function(u){return u=u||[],u.push(n?[o,a]:a),u})});var s=mO(e);return i.map(function(a){return Ht(e,s(a))}).asImmutable()}function VY(e,t,r){var n=nr(e),i=[[],[]];e.__iterate(function(a,o){i[t.call(r,a,o,e)?1:0].push(n?[o,a]:a)});var s=mO(e);return i.map(function(a){return Ht(e,s(a))})}function hO(e,t,r,n){var i=e.size;if(sl(t,r,i))return e;if(typeof i>"u"&&(t<0||r<0))return hO(e.toSeq().cacheResult(),t,r,n);var s=mu(t,i),a=al(r,i),o=a-s,u;o===o&&(u=o<0?0:o);var c=cs(e);return c.size=u===0?u:e.size&&u||void 0,!n&&ih(e)&&u>=0&&(c.get=function(l,f){return l=pa(this,l),l>=0&&l<u?e.get(l+s,f):f}),c.__iterateUncached=function(l,f){var h=this;if(u===0)return 0;if(f)return this.cacheResult().__iterate(l,f);var p=0,g=!0,y=0;return e.__iterate(function(v,E){if(!(g&&(g=p++<s)))return y++,l(v,n?E:y-1,h)!==!1&&y!==u}),y},c.__iteratorUncached=function(l,f){if(u!==0&&f)return this.cacheResult().__iterator(l,f);if(u===0)return new Tt(gn);var h=e.__iterator(l,f),p=0,g=0;return new Tt(function(){for(;p++<s;)h.next();if(++g>u)return gn();var y=h.next();return n||l===ki||y.done?y:l===ol?ir(l,g-1,void 0,y):ir(l,g-1,y.value[1],y)})},c}function zY(e,t,r){var n=cs(e);return n.__iterateUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterate(i,s);var o=0;return e.__iterate(function(u,c,l){return t.call(r,u,c,l)&&++o&&i(u,c,a)}),o},n.__iteratorUncached=function(i,s){var a=this;if(s)return this.cacheResult().__iterator(i,s);var o=e.__iterator(li,s),u=!0;return new Tt(function(){if(!u)return gn();var c=o.next();if(c.done)return c;var l=c.value,f=l[0],h=l[1];return t.call(r,h,f,a)?i===li?c:ir(i,f,h,c):(u=!1,gn())})},n}function h6(e,t,r,n){var i=cs(e);return i.__iterateUncached=function(s,a){var o=this;if(a)return this.cacheResult().__iterate(s,a);var u=!0,c=0;return e.__iterate(function(l,f,h){if(!(u&&(u=t.call(r,l,f,h))))return c++,s(l,n?f:c-1,o)}),c},i.__iteratorUncached=function(s,a){var o=this;if(a)return this.cacheResult().__iterator(s,a);var u=e.__iterator(li,a),c=!0,l=0;return new Tt(function(){var f,h,p;do{if(f=u.next(),f.done)return n||s===ki?f:s===ol?ir(s,l++,void 0,f):ir(s,l++,f.value[1],f);var g=f.value;h=g[0],p=g[1],c&&(c=t.call(r,p,h,o))}while(c);return s===li?f:ir(s,h,p,f)})},i}function WY(e,t){var r=nr(e),n=[e].concat(t).map(function(a){return Pn(a)?r&&(a=hi(a)):a=r?lO(a):s6(Array.isArray(a)?a:[a]),a}).filter(function(a){return a.size!==0});if(n.length===0)return e;if(n.length===1){var i=n[0];if(i===e||r&&nr(i)||mn(e)&&mn(i))return i}var s=new Ja(n);return r?s=s.toKeyedSeq():mn(e)||(s=s.toSetSeq()),s=s.flatten(!0),s.size=n.reduce(function(a,o){if(a!==void 0){var u=o.size;if(u!==void 0)return a+u}},0),s}function m6(e,t,r){var n=cs(e);return n.__iterateUncached=function(i,s){if(s)return this.cacheResult().__iterate(i,s);var a=0,o=!1;function u(c,l){c.__iterate(function(f,h){return(!t||l<t)&&Pn(f)?u(f,l+1):(a++,i(f,r?h:a-1,n)===!1&&(o=!0)),!o},s)}return u(e,0),a},n.__iteratorUncached=function(i,s){if(s)return this.cacheResult().__iterator(i,s);var a=e.__iterator(i,s),o=[],u=0;return new Tt(function(){for(;a;){var c=a.next();if(c.done!==!1){a=o.pop();continue}var l=c.value;if(i===li&&(l=l[1]),(!t||o.length<t)&&Pn(l))o.push(a),a=l.__iterator(i,s);else return r?c:ir(i,u++,l,c)}return gn()})},n}function JY(e,t,r){var n=mO(e);return e.toSeq().map(function(i,s){return n(t.call(r,i,s,e))}).flatten(!0)}function KY(e,t){var r=cs(e);return r.size=e.size&&e.size*2-1,r.__iterateUncached=function(n,i){var s=this,a=0;return e.__iterate(function(o){return(!a||n(t,a++,s)!==!1)&&n(o,a++,s)!==!1},i),a},r.__iteratorUncached=function(n,i){var s=e.__iterator(ki,i),a=0,o;return new Tt(function(){return(!o||a%2)&&(o=s.next(),o.done)?o:a%2?ir(n,a++,t):ir(n,a++,o.value,o)})},r}function Go(e,t,r){t||(t=g6);var n=nr(e),i=0,s=e.toSeq().map(function(a,o){return[o,a,i++,r?r(a,o,e):a]}).valueSeq().toArray();return s.sort(function(a,o){return t(a[3],o[3])||a[2]-o[2]}).forEach(n?function(a,o){s[o].length=2}:function(a,o){s[o]=a[1]}),n?ya(s):mn(e)?gi(s):bu(s)}function Jf(e,t,r){if(t||(t=g6),r){var n=e.toSeq().map(function(i,s){return[i,r(i,s,e)]}).reduce(function(i,s){return $P(t,i[1],s[1])?s:i});return n&&n[0]}return e.reduce(function(i,s){return $P(t,i,s)?s:i})}function $P(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r==null||r!==r)||n>0}function Kf(e,t,r,n){var i=cs(e),s=new Ja(r).map(function(a){return a.size});return i.size=n?s.max():s.min(),i.__iterate=function(a,o){for(var u=this.__iterator(ki,o),c,l=0;!(c=u.next()).done&&a(c.value,l++,this)!==!1;);return l},i.__iteratorUncached=function(a,o){var u=r.map(function(f){return f=$r(f),Sw(o?f.reverse():f)}),c=0,l=!1;return new Tt(function(){var f;return l||(f=u.map(function(h){return h.next()}),l=n?f.every(function(h){return h.done}):f.some(function(h){return h.done})),l?gn():ir(a,c++,t.apply(null,f.map(function(h){return h.value})))})},i}function Ht(e,t){return e===t?e:ih(e)?t:e.constructor(t)}function FP(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function mO(e){return nr(e)?hi:mn(e)?ro:gu}function cs(e){return Object.create((nr(e)?ya:mn(e)?gi:bu).prototype)}function gO(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):yn.prototype.cacheResult.call(this)}function g6(e,t){return e===void 0&&t===void 0?0:e===void 0?1:t===void 0?-1:e>t?1:e<t?-1:0}function Qi(e,t){t=t||0;for(var r=Math.max(0,e.length-t),n=new Array(r),i=0;i<r;i++)n[i]=e[i+t];return n}function pc(e,t){if(!e)throw new Error(t)}function zn(e){pc(e!==1/0,"Cannot perform this action with an infinite size.")}function y6(e){if(oO(e)&&typeof e!="string")return e;if(Ii(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}var HY=Object.prototype.toString;function yO(e){if(!e||typeof e!="object"||HY.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t,n=Object.getPrototypeOf(t);n!==null;)r=n,n=Object.getPrototypeOf(r);return r===t}function ha(e){return typeof e=="object"&&(mi(e)||Array.isArray(e)||yO(e))}function Oc(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function v6(e,t){return mi(e)?e.has(t):ha(e)&&vu.call(e,t)}function vO(e,t,r){return mi(e)?e.get(t,r):v6(e,t)?typeof e.get=="function"?e.get(t):e[t]:r}function kd(e){if(Array.isArray(e))return Qi(e);var t={};for(var r in e)vu.call(e,r)&&(t[r]=e[r]);return t}function b6(e,t){if(!ha(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(mi(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!vu.call(e,t))return e;var r=kd(e);return Array.isArray(r)?r.splice(t,1):delete r[t],r}function _6(e,t,r){if(!ha(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(mi(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,r)}if(vu.call(e,t)&&r===e[t])return e;var n=kd(e);return n[t]=r,n}function io(e,t,r,n){n||(n=r,r=void 0);var i=E6(mi(e),e,y6(t),0,r,n);return i===xt?r:i}function E6(e,t,r,n,i,s){var a=t===xt;if(n===r.length){var o=a?i:t,u=s(o);return u===o?t:u}if(!a&&!ha(t))throw new TypeError("Cannot update within non-data-structure value in path ["+r.slice(0,n).map(Oc)+"]: "+t);var c=r[n],l=a?xt:vO(t,c,xt),f=E6(l===xt?e:mi(l),l,r,n+1,i,s);return f===l?t:f===xt?b6(t,c):_6(a?e?ts():{}:t,c,f)}function S6(e,t,r){return io(e,t,xt,function(){return r})}function bO(e,t){return S6(this,e,t)}function w6(e,t){return io(e,t,function(){return xt})}function _O(e){return w6(this,e)}function EO(e,t,r,n){return io(e,[t],r,n)}function SO(e,t,r){return arguments.length===1?e(this):EO(this,e,t,r)}function wO(e,t,r){return io(this,e,t,r)}function x6(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return O6(this,e)}function A6(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];if(typeof e!="function")throw new TypeError("Invalid merger function: "+e);return O6(this,t,e)}function O6(e,t,r){for(var n=[],i=0;i<t.length;i++){var s=hi(t[i]);s.size!==0&&n.push(s)}return n.length===0?e:e.toSeq().size===0&&!e.__ownerID&&n.length===1?e.constructor(n[0]):e.withMutations(function(a){for(var o=r?function(c,l){EO(a,l,xt,function(f){return f===xt?c:r(f,c,l)})}:function(c,l){a.set(l,c)},u=0;u<n.length;u++)n[u].forEach(o)})}function GY(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return cl(e,t)}function YY(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return cl(t,r,e)}function XY(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return ul(e,t)}function ZY(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return ul(t,r,e)}function ul(e,t,r){return cl(e,t,QY(r))}function cl(e,t,r){if(!ha(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(mi(e))return typeof r=="function"&&e.mergeWith?e.mergeWith.apply(e,[r].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var n=Array.isArray(e),i=e,s=n?ro:hi,a=n?function(u){i===e&&(i=kd(i)),i.push(u)}:function(u,c){var l=vu.call(i,c),f=l&&r?r(i[c],u,c):u;(!l||f!==i[c])&&(i===e&&(i=kd(i)),i[c]=f)},o=0;o<t.length;o++)s(t[o]).forEach(a);return i}function QY(e){function t(r,n,i){return ha(r)&&ha(n)&&eX(r,n)?cl(r,[n],t):e?e(r,n,i):n}return t}function eX(e,t){var r=yn(e),n=yn(t);return mn(r)===mn(n)&&nr(r)===nr(n)}function C6(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ul(this,e)}function R6(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return ul(this,t,e)}function xO(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return io(this,e,ts(),function(n){return cl(n,t)})}function AO(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return io(this,e,ts(),function(n){return ul(n,t)})}function ll(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function fl(){return this.__ownerID?this:this.__ensureOwner(new sO)}function dl(){return this.__ensureOwner()}function OO(){return this.__altered}var so=function(e){function t(r){return r==null?ts():oh(r)&&!Ii(r)?r:ts().withMutations(function(n){var i=e(r);zn(i.size),i.forEach(function(s,a){return n.set(a,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.__toString("Map {","}")},t.prototype.get=function(n,i){return this._root?this._root.get(0,void 0,n,i):i},t.prototype.set=function(n,i){return UP(this,n,i)},t.prototype.remove=function(n){return UP(this,n,xt)},t.prototype.deleteAll=function(n){var i=$r(n);return i.size===0?this:this.withMutations(function(s){i.forEach(function(a){return s.remove(a)})})},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):ts()},t.prototype.sort=function(n){return is(Go(this,n))},t.prototype.sortBy=function(n,i){return is(Go(this,i,n))},t.prototype.map=function(n,i){var s=this;return this.withMutations(function(a){a.forEach(function(o,u){a.set(u,n.call(i,o,u,s))})})},t.prototype.__iterator=function(n,i){return new tX(this,n,i)},t.prototype.__iterate=function(n,i){var s=this,a=0;return this._root&&this._root.iterate(function(o){return a++,n(o[1],o[0],s)},i),a},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?CO(this.size,this._root,n,this.__hash):this.size===0?ts():(this.__ownerID=n,this.__altered=!1,this)},t}(hi);so.isMap=oh;var sr=so.prototype;sr[a6]=!0;sr[il]=sr.remove;sr.removeAll=sr.deleteAll;sr.setIn=bO;sr.removeIn=sr.deleteIn=_O;sr.update=SO;sr.updateIn=wO;sr.merge=sr.concat=x6;sr.mergeWith=A6;sr.mergeDeep=C6;sr.mergeDeepWith=R6;sr.mergeIn=xO;sr.mergeDeepIn=AO;sr.withMutations=ll;sr.wasAltered=OO;sr.asImmutable=dl;sr["@@transducer/init"]=sr.asMutable=fl;sr["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};sr["@@transducer/result"]=function(e){return e.asImmutable()};var Cc=function(t,r){this.ownerID=t,this.entries=r};Cc.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(Rr(n,s[a][0]))return s[a][1];return i};Cc.prototype.update=function(t,r,n,i,s,a,o){for(var u=s===xt,c=this.entries,l=0,f=c.length;l<f&&!Rr(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(ui(o),(u||!h)&&ui(a),!(u&&c.length===1)){if(!h&&!u&&c.length>=oX)return rX(t,c,i,s);var p=t&&t===this.ownerID,g=p?c:Qi(c);return h?u?l===f-1?g.pop():g[l]=g.pop():g[l]=[i,s]:g.push([i,s]),p?(this.entries=g,this):new Cc(t,g)}};var Yo=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};Yo.prototype.get=function(t,r,n,i){r===void 0&&(r=In(n));var s=1<<((t===0?r:r>>>t)&hn),a=this.bitmap;return(a&s)===0?i:this.nodes[T6(a&s-1)].get(t+Gt,r,n,i)};Yo.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=In(i));var u=(r===0?n:n>>>r)&hn,c=1<<u,l=this.bitmap,f=(l&c)!==0;if(!f&&s===xt)return this;var h=T6(l&c-1),p=this.nodes,g=f?p[h]:void 0,y=RO(g,t,r+Gt,n,i,s,a,o);if(y===g)return this;if(!f&&y&&p.length>=uX)return iX(t,p,l,u,y);if(f&&!y&&p.length===2&&VP(p[h^1]))return p[h^1];if(f&&y&&p.length===1&&VP(y))return y;var v=t&&t===this.ownerID,E=f?y?l:l^c:l|c,b=f?y?I6(p,h,y,v):aX(p,h,v):sX(p,h,y,v);return v?(this.bitmap=E,this.nodes=b,this):new Yo(t,E,b)};var Rc=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};Rc.prototype.get=function(t,r,n,i){r===void 0&&(r=In(n));var s=(t===0?r:r>>>t)&hn,a=this.nodes[s];return a?a.get(t+Gt,r,n,i):i};Rc.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=In(i));var u=(r===0?n:n>>>r)&hn,c=s===xt,l=this.nodes,f=l[u];if(c&&!f)return this;var h=RO(f,t,r+Gt,n,i,s,a,o);if(h===f)return this;var p=this.count;if(!f)p++;else if(!h&&(p--,p<cX))return nX(t,l,p,u);var g=t&&t===this.ownerID,y=I6(l,u,h,g);return g?(this.count=p,this.nodes=y,this):new Rc(t,p,y)};var Xo=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entries=n};Xo.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(Rr(n,s[a][0]))return s[a][1];return i};Xo.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=In(i));var u=s===xt;if(n!==this.keyHash)return u?this:(ui(o),ui(a),TO(this,t,r,n,[i,s]));for(var c=this.entries,l=0,f=c.length;l<f&&!Rr(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(ui(o),(u||!h)&&ui(a),u&&f===2)return new Rs(t,this.keyHash,c[l^1]);var p=t&&t===this.ownerID,g=p?c:Qi(c);return h?u?l===f-1?g.pop():g[l]=g.pop():g[l]=[i,s]:g.push([i,s]),p?(this.entries=g,this):new Xo(t,this.keyHash,g)};var Rs=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entry=n};Rs.prototype.get=function(t,r,n,i){return Rr(n,this.entry[0])?this.entry[1]:i};Rs.prototype.update=function(t,r,n,i,s,a,o){var u=s===xt,c=Rr(i,this.entry[0]);if(c?s===this.entry[1]:u)return this;if(ui(o),u){ui(a);return}return c?t&&t===this.ownerID?(this.entry[1]=s,this):new Rs(t,this.keyHash,[i,s]):(ui(a),TO(this,t,r,In(i),[i,s]))};Cc.prototype.iterate=Xo.prototype.iterate=function(e,t){for(var r=this.entries,n=0,i=r.length-1;n<=i;n++)if(e(r[t?i-n:n])===!1)return!1};Yo.prototype.iterate=Rc.prototype.iterate=function(e,t){for(var r=this.nodes,n=0,i=r.length-1;n<=i;n++){var s=r[t?i-n:n];if(s&&s.iterate(e,t)===!1)return!1}};Rs.prototype.iterate=function(e,t){return e(this.entry)};var tX=function(e){function t(r,n,i){this._type=n,this._reverse=i,this._stack=r._root&&LP(r._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var n=this._type,i=this._stack;i;){var s=i.node,a=i.index++,o=void 0;if(s.entry){if(a===0)return G0(n,s.entry)}else if(s.entries){if(o=s.entries.length-1,a<=o)return G0(n,s.entries[this._reverse?o-a:a])}else if(o=s.nodes.length-1,a<=o){var u=s.nodes[this._reverse?o-a:a];if(u){if(u.entry)return G0(n,u.entry);i=this._stack=LP(u,i)}continue}i=this._stack=this._stack.__prev}return gn()},t}(Tt);function G0(e,t){return ir(e,t[0],t[1])}function LP(e,t){return{node:e,index:0,__prev:t}}function CO(e,t,r,n){var i=Object.create(sr);return i.size=e,i._root=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var BP;function ts(){return BP||(BP=CO(0))}function UP(e,t,r){var n,i;if(e._root){var s=_w(),a=_w();if(n=RO(e._root,e.__ownerID,0,void 0,t,r,s,a),!a.value)return e;i=e.size+(s.value?r===xt?-1:1:0)}else{if(r===xt)return e;i=1,n=new Cc(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=i,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?CO(i,n):ts()}function RO(e,t,r,n,i,s,a,o){return e?e.update(t,r,n,i,s,a,o):s===xt?e:(ui(o),ui(a),new Rs(t,n,[i,s]))}function VP(e){return e.constructor===Rs||e.constructor===Xo}function TO(e,t,r,n,i){if(e.keyHash===n)return new Xo(t,n,[e.entry,i]);var s=(r===0?e.keyHash:e.keyHash>>>r)&hn,a=(r===0?n:n>>>r)&hn,o,u=s===a?[TO(e,t,r+Gt,n,i)]:(o=new Rs(t,n,i),s<a?[e,o]:[o,e]);return new Yo(t,1<<s|1<<a,u)}function rX(e,t,r,n){e||(e=new sO);for(var i=new Rs(e,In(r),[r,n]),s=0;s<t.length;s++){var a=t[s];i=i.update(e,0,void 0,a[0],a[1])}return i}function nX(e,t,r,n){for(var i=0,s=0,a=new Array(r),o=0,u=1,c=t.length;o<c;o++,u<<=1){var l=t[o];l!==void 0&&o!==n&&(i|=u,a[s++]=l)}return new Yo(e,i,a)}function iX(e,t,r,n,i){for(var s=0,a=new Array(Jn),o=0;r!==0;o++,r>>>=1)a[o]=r&1?t[s++]:void 0;return a[n]=i,new Rc(e,s+1,a)}function T6(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),e=e+(e>>4)&252645135,e+=e>>8,e+=e>>16,e&127}function I6(e,t,r,n){var i=n?e:Qi(e);return i[t]=r,i}function sX(e,t,r,n){var i=e.length+1;if(n&&t+1===i)return e[t]=r,e;for(var s=new Array(i),a=0,o=0;o<i;o++)o===t?(s[o]=r,a=-1):s[o]=e[o+a];return s}function aX(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var i=new Array(n),s=0,a=0;a<n;a++)a===t&&(s=1),i[a]=e[a+s];return i}var oX=Jn/4,uX=Jn/2,cX=Jn/4,j6="@@__IMMUTABLE_LIST__@@";function IO(e){return!!(e&&e[j6])}var pl=function(e){function t(r){var n=pd();if(r==null)return n;if(IO(r))return r;var i=e(r),s=i.size;return s===0?n:(zn(s),s>0&&s<Jn?Tc(0,s,Gt,null,new la(i.toArray())):n.withMutations(function(a){a.setSize(s),i.forEach(function(o,u){return a.set(u,o)})}))}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("List [","]")},t.prototype.get=function(n,i){if(n=pa(this,n),n>=0&&n<this.size){n+=this._origin;var s=k6(this,n);return s&&s.array[n&hn]}return i},t.prototype.set=function(n,i){return lX(this,n,i)},t.prototype.remove=function(n){return this.has(n)?n===0?this.shift():n===this.size-1?this.pop():this.splice(n,1):this},t.prototype.insert=function(n,i){return this.splice(n,0,i)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Gt,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):pd()},t.prototype.push=function(){var n=arguments,i=this.size;return this.withMutations(function(s){ia(s,0,i+n.length);for(var a=0;a<n.length;a++)s.set(i+a,n[a])})},t.prototype.pop=function(){return ia(this,0,-1)},t.prototype.unshift=function(){var n=arguments;return this.withMutations(function(i){ia(i,-n.length);for(var s=0;s<n.length;s++)i.set(s,n[s])})},t.prototype.shift=function(){return ia(this,1)},t.prototype.concat=function(){for(var n=arguments,i=[],s=0;s<arguments.length;s++){var a=n[s],o=e(typeof a!="string"&&aO(a)?a:[a]);o.size!==0&&i.push(o)}return i.length===0?this:this.size===0&&!this.__ownerID&&i.length===1?this.constructor(i[0]):this.withMutations(function(u){i.forEach(function(c){return c.forEach(function(l){return u.push(l)})})})},t.prototype.setSize=function(n){return ia(this,0,n)},t.prototype.map=function(n,i){var s=this;return this.withMutations(function(a){for(var o=0;o<s.size;o++)a.set(o,n.call(i,a.get(o),o,s))})},t.prototype.slice=function(n,i){var s=this.size;return sl(n,i,s)?this:ia(this,mu(n,s),al(i,s))},t.prototype.__iterator=function(n,i){var s=i?this.size:0,a=zP(this,i);return new Tt(function(){var o=a();return o===hc?gn():ir(n,i?--s:s++,o)})},t.prototype.__iterate=function(n,i){for(var s=i?this.size:0,a=zP(this,i),o;(o=a())!==hc&&n(o,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Tc(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):this.size===0?pd():(this.__ownerID=n,this.__altered=!1,this)},t}(ro);pl.isList=IO;var Tr=pl.prototype;Tr[j6]=!0;Tr[il]=Tr.remove;Tr.merge=Tr.concat;Tr.setIn=bO;Tr.deleteIn=Tr.removeIn=_O;Tr.update=SO;Tr.updateIn=wO;Tr.mergeIn=xO;Tr.mergeDeepIn=AO;Tr.withMutations=ll;Tr.wasAltered=OO;Tr.asImmutable=dl;Tr["@@transducer/init"]=Tr.asMutable=fl;Tr["@@transducer/step"]=function(e,t){return e.push(t)};Tr["@@transducer/result"]=function(e){return e.asImmutable()};var la=function(t,r){this.array=t,this.ownerID=r};la.prototype.removeBefore=function(t,r,n){if((n&(1<<r+Gt)-1)===0||this.array.length===0)return this;var i=n>>>r&hn;if(i>=this.array.length)return new la([],t);var s=i===0,a;if(r>0){var o=this.array[i];if(a=o&&o.removeBefore(t,r-Gt,n),a===o&&s)return this}if(s&&!a)return this;var u=Zo(this,t);if(!s)for(var c=0;c<i;c++)u.array[c]=void 0;return a&&(u.array[i]=a),u};la.prototype.removeAfter=function(t,r,n){if(n===(r?1<<r+Gt:Jn)||this.array.length===0)return this;var i=n-1>>>r&hn;if(i>=this.array.length)return this;var s;if(r>0){var a=this.array[i];if(s=a&&a.removeAfter(t,r-Gt,n),s===a&&i===this.array.length-1)return this}var o=Zo(this,t);return o.array.splice(i+1),s&&(o.array[i]=s),o};var hc={};function zP(e,t){var r=e._origin,n=e._capacity,i=Ic(n),s=e._tail;return a(e._root,e._level,0);function a(c,l,f){return l===0?o(c,f):u(c,l,f)}function o(c,l){var f=l===i?s&&s.array:c&&c.array,h=l>r?0:r-l,p=n-l;return p>Jn&&(p=Jn),function(){if(h===p)return hc;var g=t?--p:h++;return f&&f[g]}}function u(c,l,f){var h,p=c&&c.array,g=f>r?0:r-f>>l,y=(n-f>>l)+1;return y>Jn&&(y=Jn),function(){for(;;){if(h){var v=h();if(v!==hc)return v;h=null}if(g===y)return hc;var E=t?--y:g++;h=a(p&&p[E],l-Gt,f+(E<<l))}}}}function Tc(e,t,r,n,i,s,a){var o=Object.create(Tr);return o.size=t-e,o._origin=e,o._capacity=t,o._level=r,o._root=n,o._tail=i,o.__ownerID=s,o.__hash=a,o.__altered=!1,o}function pd(){return Tc(0,0,Gt)}function lX(e,t,r){if(t=pa(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(a){t<0?ia(a,t).set(0,r):ia(a,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,i=e._root,s=_w();return t>=Ic(e._capacity)?n=Cw(n,e.__ownerID,0,t,r,s):i=Cw(i,e.__ownerID,e._level,t,r,s),s.value?e.__ownerID?(e._root=i,e._tail=n,e.__hash=void 0,e.__altered=!0,e):Tc(e._origin,e._capacity,e._level,i,n):e}function Cw(e,t,r,n,i,s){var a=n>>>r&hn,o=e&&a<e.array.length;if(!o&&i===void 0)return e;var u;if(r>0){var c=e&&e.array[a],l=Cw(c,t,r-Gt,n,i,s);return l===c?e:(u=Zo(e,t),u.array[a]=l,u)}return o&&e.array[a]===i?e:(s&&ui(s),u=Zo(e,t),i===void 0&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function Zo(e,t){return t&&e&&t===e.ownerID?e:new la(e?e.array.slice():[],t)}function k6(e,t){if(t>=Ic(e._capacity))return e._tail;if(t<1<<e._level+Gt){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&hn],n-=Gt;return r}}function ia(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new sO,i=e._origin,s=e._capacity,a=i+t,o=r===void 0?s:r<0?s+r:i+r;if(a===i&&o===s)return e;if(a>=o)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new la(c&&c.array.length?[void 0,c]:[],n),u+=Gt,l+=1<<u;l&&(a+=l,i+=l,o+=l,s+=l);for(var f=Ic(s),h=Ic(o);h>=1<<u+Gt;)c=new la(c&&c.array.length?[c]:[],n),u+=Gt;var p=e._tail,g=h<f?k6(e,o-1):h>f?new la([],n):p;if(p&&h>f&&a<s&&p.array.length){c=Zo(c,n);for(var y=c,v=u;v>Gt;v-=Gt){var E=f>>>v&hn;y=y.array[E]=Zo(y.array[E],n)}y.array[f>>>Gt&hn]=p}if(o<s&&(g=g&&g.removeAfter(n,0,o)),a>=h)a-=h,o-=h,u=Gt,c=null,g=g&&g.removeBefore(n,0,a);else if(a>i||h<f){for(l=0;c;){var b=a>>>u&hn;if(b!==h>>>u&hn)break;b&&(l+=(1<<u)*b),u-=Gt,c=c.array[b]}c&&a>i&&(c=c.removeBefore(n,u,a-l)),c&&h<f&&(c=c.removeAfter(n,u,h-l)),l&&(a-=l,o-=l)}return e.__ownerID?(e.size=o-a,e._origin=a,e._capacity=o,e._level=u,e._root=c,e._tail=g,e.__hash=void 0,e.__altered=!0,e):Tc(a,o,u,c,g)}function Ic(e){return e<Jn?0:e-1>>>Gt<<Gt}var is=function(e){function t(r){return r==null?tc():dO(r)?r:tc().withMutations(function(n){var i=hi(r);zn(i.size),i.forEach(function(s,a){return n.set(a,s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("OrderedMap {","}")},t.prototype.get=function(n,i){var s=this._map.get(n);return s!==void 0?this._list.get(s)[1]:i},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):tc()},t.prototype.set=function(n,i){return JP(this,n,i)},t.prototype.remove=function(n){return JP(this,n,xt)},t.prototype.__iterate=function(n,i){var s=this;return this._list.__iterate(function(a){return a&&n(a[1],a[0],s)},i)},t.prototype.__iterator=function(n,i){return this._list.fromEntrySeq().__iterator(n,i)},t.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n),s=this._list.__ensureOwner(n);return n?jO(i,s,n,this.__hash):this.size===0?tc():(this.__ownerID=n,this.__altered=!1,this._map=i,this._list=s,this)},t}(so);is.isOrderedMap=dO;is.prototype[yu]=!0;is.prototype[il]=is.prototype.remove;function jO(e,t,r,n){var i=Object.create(is.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var WP;function tc(){return WP||(WP=jO(ts(),pd()))}function JP(e,t,r){var n=e._map,i=e._list,s=n.get(t),a=s!==void 0,o,u;if(r===xt){if(!a)return e;i.size>=Jn&&i.size>=n.size*2?(u=i.filter(function(c,l){return c!==void 0&&s!==l}),o=u.toKeyedSeq().map(function(c){return c[0]}).flip().toMap(),e.__ownerID&&(o.__ownerID=u.__ownerID=e.__ownerID)):(o=n.remove(t),u=s===i.size-1?i.pop():i.set(s,void 0))}else if(a){if(r===i.get(s)[1])return e;o=n,u=i.set(s,[t,r])}else o=n.set(t,i.size),u=i.set(i.size,[t,r]);return e.__ownerID?(e.size=o.size,e._map=o,e._list=u,e.__hash=void 0,e.__altered=!0,e):jO(o,u)}var P6="@@__IMMUTABLE_STACK__@@";function Pd(e){return!!(e&&e[P6])}var lh=function(e){function t(r){return r==null?Hf():Pd(r)?r:Hf().pushAll(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.prototype.toString=function(){return this.__toString("Stack [","]")},t.prototype.get=function(n,i){var s=this._head;for(n=pa(this,n);s&&n--;)s=s.next;return s?s.value:i},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var n=arguments;if(arguments.length===0)return this;for(var i=this.size+arguments.length,s=this._head,a=arguments.length-1;a>=0;a--)s={value:n[a],next:s};return this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):rc(i,s)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&Pd(n))return n;zn(n.size);var i=this.size,s=this._head;return n.__iterate(function(a){i++,s={value:a,next:s}},!0),this.__ownerID?(this.size=i,this._head=s,this.__hash=void 0,this.__altered=!0,this):rc(i,s)},t.prototype.pop=function(){return this.slice(1)},t.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):Hf()},t.prototype.slice=function(n,i){if(sl(n,i,this.size))return this;var s=mu(n,this.size),a=al(i,this.size);if(a!==this.size)return e.prototype.slice.call(this,n,i);for(var o=this.size-s,u=this._head;s--;)u=u.next;return this.__ownerID?(this.size=o,this._head=u,this.__hash=void 0,this.__altered=!0,this):rc(o,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?rc(this.size,this._head,n,this.__hash):this.size===0?Hf():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,i){var s=this;if(i)return new Ja(this.toArray()).__iterate(function(u,c){return n(u,c,s)},i);for(var a=0,o=this._head;o&&n(o.value,a++,this)!==!1;)o=o.next;return a},t.prototype.__iterator=function(n,i){if(i)return new Ja(this.toArray()).__iterator(n,i);var s=0,a=this._head;return new Tt(function(){if(a){var o=a.value;return a=a.next,ir(n,s++,o)}return gn()})},t}(ro);lh.isStack=Pd;var vn=lh.prototype;vn[P6]=!0;vn.shift=vn.pop;vn.unshift=vn.push;vn.unshiftAll=vn.pushAll;vn.withMutations=ll;vn.wasAltered=OO;vn.asImmutable=dl;vn["@@transducer/init"]=vn.asMutable=fl;vn["@@transducer/step"]=function(e,t){return e.unshift(t)};vn["@@transducer/result"]=function(e){return e.asImmutable()};function rc(e,t,r,n){var i=Object.create(vn);return i.size=e,i._head=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var KP;function Hf(){return KP||(KP=rc(0))}var N6="@@__IMMUTABLE_SET__@@";function fh(e){return!!(e&&e[N6])}function kO(e){return fh(e)&&Ii(e)}function PO(e,t){if(e===t)return!0;if(!Pn(t)||e.size!==void 0&&t.size!==void 0&&e.size!==t.size||e.__hash!==void 0&&t.__hash!==void 0&&e.__hash!==t.__hash||nr(e)!==nr(t)||mn(e)!==mn(t)||Ii(e)!==Ii(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!nh(e);if(Ii(e)){var n=e.entries();return t.every(function(u,c){var l=n.next().value;return l&&Rr(l[1],u)&&(r||Rr(l[0],c))})&&n.next().done}var i=!1;if(e.size===void 0)if(t.size===void 0)typeof e.cacheResult=="function"&&e.cacheResult();else{i=!0;var s=e;e=t,t=s}var a=!0,o=t.__iterate(function(u,c){if(r?!e.has(u):i?!Rr(u,e.get(c,xt)):!Rr(e.get(c,xt),u))return a=!1,!1});return a&&e.size===o}function ao(e,t){var r=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}function Nd(e){if(!e||typeof e!="object")return e;if(!Pn(e)){if(!ha(e))return e;e=yn(e)}if(nr(e)){var t={};return e.__iterate(function(n,i){t[i]=Nd(n)}),t}var r=[];return e.__iterate(function(n){r.push(Nd(n))}),r}var hl=function(e){function t(r){return r==null?nc():fh(r)&&!Ii(r)?r:nc().withMutations(function(n){var i=e(r);zn(i.size),i.forEach(function(s){return n.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(hi(n).keySeq())},t.intersect=function(n){return n=$r(n).toArray(),n.length?Yr.intersect.apply(t(n.pop()),n):nc()},t.union=function(n){return n=$r(n).toArray(),n.length?Yr.union.apply(t(n.pop()),n):nc()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return Gf(this,this._map.set(n,n))},t.prototype.remove=function(n){return Gf(this,this._map.remove(n))},t.prototype.clear=function(){return Gf(this,this._map.clear())},t.prototype.map=function(n,i){var s=this,a=!1,o=Gf(this,this._map.mapEntries(function(u){var c=u[1],l=n.call(i,c,c,s);return l!==c&&(a=!0),[l,l]},i));return a?o:this},t.prototype.union=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];return n=n.filter(function(s){return s.size!==0}),n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(s){for(var a=0;a<n.length;a++)typeof n[a]=="string"?s.add(n[a]):e(n[a]).forEach(function(o){return s.add(o)})})},t.prototype.intersect=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(a){return e(a)});var s=[];return this.forEach(function(a){n.every(function(o){return o.includes(a)})||s.push(a)}),this.withMutations(function(a){s.forEach(function(o){a.remove(o)})})},t.prototype.subtract=function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(n.length===0)return this;n=n.map(function(a){return e(a)});var s=[];return this.forEach(function(a){n.some(function(o){return o.includes(a)})&&s.push(a)}),this.withMutations(function(a){s.forEach(function(o){a.remove(o)})})},t.prototype.sort=function(n){return eu(Go(this,n))},t.prototype.sortBy=function(n,i){return eu(Go(this,i,n))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(n,i){var s=this;return this._map.__iterate(function(a){return n(a,a,s)},i)},t.prototype.__iterator=function(n,i){return this._map.__iterator(n,i)},t.prototype.__ensureOwner=function(n){if(n===this.__ownerID)return this;var i=this._map.__ensureOwner(n);return n?this.__make(i,n):this.size===0?this.__empty():(this.__ownerID=n,this._map=i,this)},t}(gu);hl.isSet=fh;var Yr=hl.prototype;Yr[N6]=!0;Yr[il]=Yr.remove;Yr.merge=Yr.concat=Yr.union;Yr.withMutations=ll;Yr.asImmutable=dl;Yr["@@transducer/init"]=Yr.asMutable=fl;Yr["@@transducer/step"]=function(e,t){return e.add(t)};Yr["@@transducer/result"]=function(e){return e.asImmutable()};Yr.__empty=nc;Yr.__make=M6;function Gf(e,t){return e.__ownerID?(e.size=t.size,e._map=t,e):t===e._map?e:t.size===0?e.__empty():e.__make(t)}function M6(e,t){var r=Object.create(Yr);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var HP;function nc(){return HP||(HP=M6(ts()))}var D6=function(e){function t(r,n,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(r,n,i);if(pc(i!==0,"Cannot step a Range by 0"),pc(r!==void 0,"You must define a start value when using Range"),pc(n!==void 0,"You must define an end value when using Range"),i=Math.abs(i),n<r&&(i=-i),this._start=r,this._end=n,this._step=i,this.size=Math.max(0,Math.ceil((n-r)/i-1)+1),this.size===0){if(Y0)return Y0;Y0=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},t.prototype.get=function(n,i){return this.has(n)?this._start+pa(this,n)*this._step:i},t.prototype.includes=function(n){var i=(n-this._start)/this._step;return i>=0&&i<this.size&&i===Math.floor(i)},t.prototype.slice=function(n,i){return sl(n,i,this.size)?this:(n=mu(n,this.size),i=al(i,this.size),i<=n?new t(0,0):new t(this.get(n,this._end),this.get(i,this._end),this._step))},t.prototype.indexOf=function(n){var i=n-this._start;if(i%this._step===0){var s=i/this._step;if(s>=0&&s<this.size)return s}return-1},t.prototype.lastIndexOf=function(n){return this.indexOf(n)},t.prototype.__iterate=function(n,i){for(var s=this.size,a=this._step,o=i?this._start+(s-1)*a:this._start,u=0;u!==s&&n(o,i?s-++u:u++,this)!==!1;)o+=i?-a:a;return u},t.prototype.__iterator=function(n,i){var s=this.size,a=this._step,o=i?this._start+(s-1)*a:this._start,u=0;return new Tt(function(){if(u===s)return gn();var c=o;return o+=i?-a:a,ir(n,i?s-++u:u++,c)})},t.prototype.equals=function(n){return n instanceof t?this._start===n._start&&this._end===n._end&&this._step===n._step:PO(this,n)},t}(gi),Y0;function NO(e,t,r){for(var n=y6(t),i=0;i!==n.length;)if(e=vO(e,n[i++],xt),e===xt)return r;return e}function q6(e,t){return NO(this,e,t)}function $6(e,t){return NO(e,t,xt)!==xt}function fX(e){return $6(this,e)}function F6(){zn(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e}$r.Iterator=Tt;ao($r,{toArray:function(){zn(this.size);var t=new Array(this.size||0),r=nr(this),n=0;return this.__iterate(function(i,s){t[n++]=r?[s,i]:i}),t},toIndexedSeq:function(){return new u6(this)},toJS:function(){return Nd(this)},toKeyedSeq:function(){return new ch(this,!0)},toMap:function(){return so(this.toKeyedSeq())},toObject:F6,toOrderedMap:function(){return is(this.toKeyedSeq())},toOrderedSet:function(){return eu(nr(this)?this.valueSeq():this)},toSet:function(){return hl(nr(this)?this.valueSeq():this)},toSetSeq:function(){return new c6(this)},toSeq:function(){return mn(this)?this.toIndexedSeq():nr(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return lh(nr(this)?this.valueSeq():this)},toList:function(){return pl(nr(this)?this.valueSeq():this)},toString:function(){return"[Collection]"},__toString:function(t,r){return this.size===0?t+r:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+r},concat:function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return Ht(this,WY(this,t))},includes:function(t){return this.some(function(r){return Rr(r,t)})},entries:function(){return this.__iterator(li)},every:function(t,r){zn(this.size);var n=!0;return this.__iterate(function(i,s,a){if(!t.call(r,i,s,a))return n=!1,!1}),n},filter:function(t,r){return Ht(this,p6(this,t,r,!0))},partition:function(t,r){return VY(this,t,r)},find:function(t,r,n){var i=this.findEntry(t,r);return i?i[1]:n},forEach:function(t,r){return zn(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){zn(this.size),t=t!==void 0?""+t:",";var r="",n=!0;return this.__iterate(function(i){n?n=!1:r+=t,r+=i!=null?i.toString():""}),r},keys:function(){return this.__iterator(ol)},map:function(t,r){return Ht(this,d6(this,t,r))},reduce:function(t,r,n){return GP(this,t,r,n,arguments.length<2,!1)},reduceRight:function(t,r,n){return GP(this,t,r,n,arguments.length<2,!0)},reverse:function(){return Ht(this,pO(this,!0))},slice:function(t,r){return Ht(this,hO(this,t,r,!0))},some:function(t,r){zn(this.size);var n=!1;return this.__iterate(function(i,s,a){if(t.call(r,i,s,a))return n=!0,!1}),n},sort:function(t){return Ht(this,Go(this,t))},values:function(){return this.__iterator(ki)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(t,r){return Ho(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return BY(this,t,r)},equals:function(t){return PO(this,t)},entrySeq:function(){var t=this;if(t._cache)return new Ja(t._cache);var r=t.toSeq().map(pX).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(X0(t),r)},findEntry:function(t,r,n){var i=n;return this.__iterate(function(s,a,o){if(t.call(r,s,a,o))return i=[a,s],!1}),i},findKey:function(t,r){var n=this.findEntry(t,r);return n&&n[0]},findLast:function(t,r,n){return this.toKeyedSeq().reverse().find(t,r,n)},findLastEntry:function(t,r,n){return this.toKeyedSeq().reverse().findEntry(t,r,n)},findLastKey:function(t,r){return this.toKeyedSeq().reverse().findKey(t,r)},first:function(t){return this.find(YB,null,t)},flatMap:function(t,r){return Ht(this,JY(this,t,r))},flatten:function(t){return Ht(this,m6(this,t,!0))},fromEntrySeq:function(){return new l6(this)},get:function(t,r){return this.find(function(n,i){return Rr(i,t)},void 0,r)},getIn:q6,groupBy:function(t,r){return UY(this,t,r)},has:function(t){return this.get(t,xt)!==xt},hasIn:fX,isSubset:function(t){return t=typeof t.includes=="function"?t:$r(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:$r(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return Rr(r,t)})},keySeq:function(){return this.toSeq().map(dX).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return Jf(this,t)},maxBy:function(t,r){return Jf(this,r,t)},min:function(t){return Jf(this,t?YP(t):ZP)},minBy:function(t,r){return Jf(this,r?YP(r):ZP,t)},rest:function(){return this.slice(1)},skip:function(t){return t===0?this:this.slice(Math.max(0,t))},skipLast:function(t){return t===0?this:this.slice(0,-Math.max(0,t))},skipWhile:function(t,r){return Ht(this,h6(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(X0(t),r)},sortBy:function(t,r){return Ht(this,Go(this,r,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return this.slice(-Math.max(0,t))},takeWhile:function(t,r){return Ht(this,zY(this,t,r))},takeUntil:function(t,r){return this.takeWhile(X0(t),r)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=hX(this))}});var tn=$r.prototype;tn[QB]=!0;tn[sh]=tn.values;tn.toJSON=tn.toArray;tn.__toStringMapper=Oc;tn.inspect=tn.toSource=function(){return this.toString()};tn.chain=tn.flatMap;tn.contains=tn.includes;ao(hi,{flip:function(){return Ht(this,f6(this))},mapEntries:function(t,r){var n=this,i=0;return Ht(this,this.toSeq().map(function(s,a){return t.call(r,[a,s],i++,n)}).fromEntrySeq())},mapKeys:function(t,r){var n=this;return Ht(this,this.toSeq().flip().map(function(i,s){return t.call(r,i,s,n)}).flip())}});var ml=hi.prototype;ml[e6]=!0;ml[sh]=tn.entries;ml.toJSON=F6;ml.__toStringMapper=function(e,t){return Oc(t)+": "+Oc(e)};ao(ro,{toKeyedSeq:function(){return new ch(this,!1)},filter:function(t,r){return Ht(this,p6(this,t,r,!1))},findIndex:function(t,r){var n=this.findEntry(t,r);return n?n[0]:-1},indexOf:function(t){var r=this.keyOf(t);return r===void 0?-1:r},lastIndexOf:function(t){var r=this.lastKeyOf(t);return r===void 0?-1:r},reverse:function(){return Ht(this,pO(this,!1))},slice:function(t,r){return Ht(this,hO(this,t,r,!1))},splice:function(t,r){var n=arguments.length;if(r=Math.max(r||0,0),n===0||n===2&&!r)return this;t=mu(t,t<0?this.count():this.size);var i=this.slice(0,t);return Ht(this,n===1?i:i.concat(Qi(arguments,2),this.slice(t+r)))},findLastIndex:function(t,r){var n=this.findLastEntry(t,r);return n?n[0]:-1},first:function(t){return this.get(0,t)},flatten:function(t){return Ht(this,m6(this,t,!1))},get:function(t,r){return t=pa(this,t),t<0||this.size===1/0||this.size!==void 0&&t>this.size?r:this.find(function(n,i){return i===t},void 0,r)},has:function(t){return t=pa(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return Ht(this,KY(this,t))},interleave:function(){var t=[this].concat(Qi(arguments)),r=Kf(this.toSeq(),gi.of,t),n=r.flatten(!0);return r.size&&(n.size=r.size*t.length),Ht(this,n)},keySeq:function(){return D6(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return Ht(this,h6(this,t,r,!1))},zip:function(){var t=[this].concat(Qi(arguments));return Ht(this,Kf(this,XP,t))},zipAll:function(){var t=[this].concat(Qi(arguments));return Ht(this,Kf(this,XP,t,!0))},zipWith:function(t){var r=Qi(arguments);return r[0]=this,Ht(this,Kf(this,t,r))}});var _u=ro.prototype;_u[t6]=!0;_u[yu]=!0;ao(gu,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var Qo=gu.prototype;Qo.has=tn.includes;Qo.contains=Qo.includes;Qo.keys=Qo.values;ao(ya,ml);ao(gi,_u);ao(bu,Qo);function GP(e,t,r,n,i,s){return zn(e.size),e.__iterate(function(a,o,u){i?(i=!1,r=a):r=t.call(n,r,a,o,u)},s),r}function dX(e,t){return t}function pX(e,t){return[t,e]}function X0(e){return function(){return!e.apply(this,arguments)}}function YP(e){return function(){return-e.apply(this,arguments)}}function XP(){return Qi(arguments)}function ZP(e,t){return e<t?1:e>t?-1:0}function hX(e){if(e.size===1/0)return 0;var t=Ii(e),r=nr(e),n=t?1:0;return e.__iterate(r?t?function(i,s){n=31*n+QP(In(i),In(s))|0}:function(i,s){n=n+QP(In(i),In(s))|0}:t?function(i){n=31*n+In(i)|0}:function(i){n=n+In(i)|0}),mX(e.size,n)}function mX(e,t){return t=Lu(t,3432918353),t=Lu(t<<15|t>>>-15,461845907),t=Lu(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Lu(t^t>>>16,2246822507),t=Lu(t^t>>>13,3266489909),t=uh(t^t>>>16),t}function QP(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}var eu=function(e){function t(r){return r==null?Rw():kO(r)?r:Rw().withMutations(function(n){var i=gu(r);zn(i.size),i.forEach(function(s){return n.add(s)})})}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.of=function(){return this(arguments)},t.fromKeys=function(n){return this(hi(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t}(hl);eu.isOrderedSet=kO;var oo=eu.prototype;oo[yu]=!0;oo.zip=_u.zip;oo.zipWith=_u.zipWith;oo.zipAll=_u.zipAll;oo.__empty=Rw;oo.__make=L6;function L6(e,t){var r=Object.create(oo);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var eN;function Rw(){return eN||(eN=L6(tc()))}var gX={LeftThenRight:-1,RightThenLeft:1};function yX(e){if(no(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(mi(e))throw new Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(e===null||typeof e!="object")throw new Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}var qr=function(t,r){var n;yX(t);var i=function(o){var u=this;if(o instanceof i)return o;if(!(this instanceof i))return new i(o);if(!n){n=!0;var c=Object.keys(t),l=s._indices={};s._name=r,s._keys=c,s._defaultValues=t;for(var f=0;f<c.length;f++){var h=c[f];l[h]=f,s[h]?typeof console=="object"&&console.warn&&console.warn("Cannot define "+DO(this)+' with property "'+h+'" since that property name is part of the Record API.'):vX(s,h)}}return this.__ownerID=void 0,this._values=pl().withMutations(function(p){p.setSize(u._keys.length),hi(o).forEach(function(g,y){p.set(u._indices[y],g===u._defaultValues[y]?void 0:g)})}),this},s=i.prototype=Object.create(Zt);return s.constructor=i,r&&(i.displayName=r),i};qr.prototype.toString=function(){for(var t=DO(this)+" { ",r=this._keys,n,i=0,s=r.length;i!==s;i++)n=r[i],t+=(i?", ":"")+n+": "+Oc(this.get(n));return t+" }"};qr.prototype.equals=function(t){return this===t||no(t)&&tu(this).equals(tu(t))};qr.prototype.hashCode=function(){return tu(this).hashCode()};qr.prototype.has=function(t){return this._indices.hasOwnProperty(t)};qr.prototype.get=function(t,r){if(!this.has(t))return r;var n=this._indices[t],i=this._values.get(n);return i===void 0?this._defaultValues[t]:i};qr.prototype.set=function(t,r){if(this.has(t)){var n=this._values.set(this._indices[t],r===this._defaultValues[t]?void 0:r);if(n!==this._values&&!this.__ownerID)return MO(this,n)}return this};qr.prototype.remove=function(t){return this.set(t)};qr.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:MO(this,t)};qr.prototype.wasAltered=function(){return this._values.wasAltered()};qr.prototype.toSeq=function(){return tu(this)};qr.prototype.toJS=function(){return Nd(this)};qr.prototype.entries=function(){return this.__iterator(li)};qr.prototype.__iterator=function(t,r){return tu(this).__iterator(t,r)};qr.prototype.__iterate=function(t,r){return tu(this).__iterate(t,r)};qr.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?MO(this,r,t):(this.__ownerID=t,this._values=r,this)};qr.isRecord=no;qr.getDescriptiveName=DO;var Zt=qr.prototype;Zt[n6]=!0;Zt[il]=Zt.remove;Zt.deleteIn=Zt.removeIn=_O;Zt.getIn=q6;Zt.hasIn=tn.hasIn;Zt.merge=x6;Zt.mergeWith=A6;Zt.mergeIn=xO;Zt.mergeDeep=C6;Zt.mergeDeepWith=R6;Zt.mergeDeepIn=AO;Zt.setIn=bO;Zt.update=SO;Zt.updateIn=wO;Zt.withMutations=ll;Zt.asMutable=fl;Zt.asImmutable=dl;Zt[sh]=Zt.entries;Zt.toJSON=Zt.toObject=tn.toObject;Zt.inspect=Zt.toSource=function(){return this.toString()};function MO(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._values=t,n.__ownerID=r,n}function DO(e){return e.constructor.displayName||e.constructor.name||"Record"}function tu(e){return lO(e._keys.map(function(t){return[t,e.get(t)]}))}function vX(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(r){pc(this.__ownerID,"Cannot set on an immutable record."),this.set(t,r)}})}catch{}}var bX=function(e){function t(r,n){if(!(this instanceof t))return new t(r,n);if(this._value=r,this.size=n===void 0?1/0:Math.max(0,n),this.size===0){if(Z0)return Z0;Z0=this}}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},t.prototype.get=function(n,i){return this.has(n)?this._value:i},t.prototype.includes=function(n){return Rr(this._value,n)},t.prototype.slice=function(n,i){var s=this.size;return sl(n,i,s)?this:new t(this._value,al(i,s)-mu(n,s))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(n){return Rr(this._value,n)?0:-1},t.prototype.lastIndexOf=function(n){return Rr(this._value,n)?this.size:-1},t.prototype.__iterate=function(n,i){for(var s=this.size,a=0;a!==s&&n(this._value,i?s-++a:a++,this)!==!1;);return a},t.prototype.__iterator=function(n,i){var s=this,a=this.size,o=0;return new Tt(function(){return o===a?gn():ir(n,i?a-++o:o++,s._value)})},t.prototype.equals=function(n){return n instanceof t?Rr(this._value,n._value):PO(this,n)},t}(gi),Z0;function _X(e,t){return B6([],t||EX,e,"",t&&t.length>2?[]:void 0,{"":e})}function B6(e,t,r,n,i,s){if(typeof r!="string"&&!mi(r)&&(oO(r)||aO(r)||yO(r))){if(~e.indexOf(r))throw new TypeError("Cannot convert circular structure to Immutable");e.push(r),i&&n!==""&&i.push(n);var a=t.call(s,n,yn(r).map(function(o,u){return B6(e,t,o,u,i,r)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return r}function EX(e,t){return mn(t)?t.toList():nr(t)?t.toMap():t.toSet()}var SX="5.0.3",wX=$r;const xX=Object.freeze(Object.defineProperty({__proto__:null,Collection:$r,Iterable:wX,List:pl,Map:so,OrderedMap:is,OrderedSet:eu,PairSorting:gX,Range:D6,Record:qr,Repeat:bX,Seq:yn,Set:hl,Stack:lh,fromJS:_X,get:vO,getIn:NO,has:v6,hasIn:$6,hash:In,is:Rr,isAssociative:nh,isCollection:Pn,isImmutable:mi,isIndexed:mn,isKeyed:nr,isList:IO,isMap:oh,isOrdered:Ii,isOrderedMap:dO,isOrderedSet:kO,isPlainObject:yO,isRecord:no,isSeq:ih,isSet:fh,isStack:Pd,isValueObject:ww,merge:GY,mergeDeep:XY,mergeDeepWith:ZY,mergeWith:YY,remove:b6,removeIn:w6,set:_6,setIn:S6,update:EO,updateIn:io,version:SX},Symbol.toStringTag,{value:"Module"})),AX=Ue.getAugmentedNamespace(xX);var Q0,tN;function OX(){if(tN)return Q0;tN=1;var e=AX,t="<<anonymous>>",r;if(process.env.NODE_ENV!=="production")r={listOf:f,mapOf:p,orderedMapOf:g,setOf:y,orderedSetOf:v,stackOf:E,iterableOf:b,recordOf:S,shape:_,contains:_,mapContains:A,orderedMapContains:C,list:o("List",e.List.isList),map:o("Map",e.Map.isMap),orderedMap:o("OrderedMap",e.OrderedMap.isOrderedMap),set:o("Set",e.Set.isSet),orderedSet:o("OrderedSet",e.OrderedSet.isOrderedSet),stack:o("Stack",e.Stack.isStack),seq:o("Seq",e.Seq.isSeq),record:o("Record",function(T){return T instanceof e.Record}),iterable:o("Iterable",e.Iterable.isIterable)};else{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",e.Iterable.isIndexed),r.iterable.keyed=u("Keyed",e.Iterable.isKeyed);function s(T){var O=typeof T;return Array.isArray(T)?"array":T instanceof RegExp?"object":T instanceof e.Iterable?"Immutable."+T.toSource().split(" ")[0]:O}function a(T){function O(k,D,P,H,X,V){for(var G=arguments.length,Q=Array(G>6?G-6:0),Z=6;Z<G;Z++)Q[Z-6]=arguments[Z];if(V=V||P,H=H||t,D[P]==null){var B=X;if(k)return new Error("Required "+B+" `"+V+"` was not specified in "+("`"+H+"`."))}else return T.apply(void 0,[D,P,H,X,V].concat(Q))}var M=O.bind(null,!1);return M.isRequired=O.bind(null,!0),M}function o(T,O){function M(k,D,P,H,X){var V=k[D];if(!O(V)){var G=s(V);return new Error("Invalid "+H+" `"+X+"` of type `"+G+"` "+("supplied to `"+P+"`, expected `"+T+"`."))}return null}return a(M)}function u(T,O){return o("Iterable."+T,function(M){return e.Iterable.isIterable(M)&&O(M)})}function c(T,O,M){function k(D,P,H,X,V){for(var G=arguments.length,Q=Array(G>5?G-5:0),Z=5;Z<G;Z++)Q[Z-5]=arguments[Z];var B=D[P];if(!M(B)){var J=X,ee=s(B);return new Error("Invalid "+J+" `"+V+"` of type "+("`"+ee+"` supplied to `"+H+"`, expected an Immutable.js "+O+"."))}if(typeof T!="function")return new Error("Invalid typeChecker supplied to `"+H+"` "+("for propType `"+V+"`, expected a function."));for(var ne=B.valueSeq().toArray(),ae=0,Y=ne.length;ae<Y;ae++){var F=T.apply(void 0,[ne,ae,H,X,""+V+"["+ae+"]"].concat(Q));if(F instanceof Error)return F}}return a(k)}function l(T){function O(M,k,D,P,H){for(var X=arguments.length,V=Array(X>5?X-5:0),G=5;G<X;G++)V[G-5]=arguments[G];var Q=M[k];if(typeof T!="function")return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+D+"` "+("for propType `"+H+"`, expected a function."));for(var Z=Q.keySeq().toArray(),B=0,J=Z.length;B<J;B++){var ee=T.apply(void 0,[Z,B,D,P,""+H+" -> key("+Z[B]+")"].concat(V));if(ee instanceof Error)return ee}}return a(O)}function f(T){return c(T,"List",e.List.isList)}function h(T,O,M,k){function D(){for(var P=arguments.length,H=Array(P),X=0;X<P;X++)H[X]=arguments[X];return c(T,M,k).apply(void 0,H)||O&&l(O).apply(void 0,H)}return a(D)}function p(T,O){return h(T,O,"Map",e.Map.isMap)}function g(T,O){return h(T,O,"OrderedMap",e.OrderedMap.isOrderedMap)}function y(T){return c(T,"Set",e.Set.isSet)}function v(T){return c(T,"OrderedSet",e.OrderedSet.isOrderedSet)}function E(T){return c(T,"Stack",e.Stack.isStack)}function b(T){return c(T,"Iterable",e.Iterable.isIterable)}function S(T){function O(M,k,D,P,H){for(var X=arguments.length,V=Array(X>5?X-5:0),G=5;G<X;G++)V[G-5]=arguments[G];var Q=M[k];if(!(Q instanceof e.Record)){var Z=s(Q),B=P;return new Error("Invalid "+B+" `"+H+"` of type `"+Z+"` "+("supplied to `"+D+"`, expected an Immutable.js Record."))}for(var J in T){var ee=T[J];if(ee){var ne=Q.toObject(),ae=ee.apply(void 0,[ne,J,D,P,""+H+"."+J].concat(V));if(ae)return ae}}}return a(O)}function x(T){var O=arguments[1]===void 0?"Iterable":arguments[1],M=arguments[2]===void 0?e.Iterable.isIterable:arguments[2];function k(D,P,H,X,V){for(var G=arguments.length,Q=Array(G>5?G-5:0),Z=5;Z<G;Z++)Q[Z-5]=arguments[Z];var B=D[P];if(!M(B)){var J=s(B),ee=X;return new Error("Invalid "+ee+" `"+V+"` of type `"+J+"` "+("supplied to `"+H+"`, expected an Immutable.js "+O+"."))}var ne=B.toObject();for(var ae in T){var Y=T[ae];if(Y){var F=Y.apply(void 0,[ne,ae,H,X,""+V+"."+ae].concat(Q));if(F)return F}}}return a(k)}function _(T){return x(T)}function A(T){return x(T,"Map",e.Map.isMap)}function C(T){return x(T,"OrderedMap",e.OrderedMap.isOrderedMap)}return Q0=r,Q0}var CX=OX();const RX=Ue.getDefaultExportFromCjs(CX);var eb,rN;function TX(){if(rN)return eb;rN=1;function e(t,r,n,i,s){return s(t,function(a,o,u){n=i?(i=!1,a):r(n,a,o,u)}),n}return eb=e,eb}var tb,nN;function IX(){if(nN)return tb;nN=1;var e=BL(),t=rB(),r=nl(),n=TX(),i=Lr();function s(a,o,u){var c=i(a)?e:n,l=arguments.length<3;return c(a,r(o,4),u,l,t)}return tb=s,tb}var jX=IX();const kX=Ue.getDefaultExportFromCjs(jX);var PX=ZL();const NX=Ue.getDefaultExportFromCjs(PX);var iN={},Bu,sN;function Nn(){if(sN)return Bu;sN=1;var e=function(t){return t&&t.Math===Math&&t};return Bu=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof Ue.commonjsGlobal=="object"&&Ue.commonjsGlobal)||e(typeof Bu=="object"&&Bu)||function(){return this}()||Function("return this")(),Bu}var rb,aN;function yi(){return aN||(aN=1,rb=function(e){try{return!!e()}catch{return!0}}),rb}var nb,oN;function gl(){if(oN)return nb;oN=1;var e=yi();return nb=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),nb}var ib,uN;function qO(){if(uN)return ib;uN=1;var e=gl(),t=Function.prototype,r=t.apply,n=t.call;return ib=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),ib}var sb,cN;function Mn(){if(cN)return sb;cN=1;var e=gl(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return sb=e?n:function(i){return function(){return r.apply(i,arguments)}},sb}var ab,lN;function $O(){if(lN)return ab;lN=1;var e=Mn(),t=e({}.toString),r=e("".slice);return ab=function(n){return r(t(n),8,-1)},ab}var ob,fN;function U6(){if(fN)return ob;fN=1;var e=$O(),t=Mn();return ob=function(r){if(e(r)==="Function")return t(r)},ob}var ub,dN;function Yn(){if(dN)return ub;dN=1;var e=typeof document=="object"&&document.all;return ub=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},ub}var cb={},lb,pN;function ls(){if(pN)return lb;pN=1;var e=yi();return lb=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),lb}var fb,hN;function va(){if(hN)return fb;hN=1;var e=gl(),t=Function.prototype.call;return fb=e?t.bind(t):function(){return t.apply(t,arguments)},fb}var db={},mN;function V6(){if(mN)return db;mN=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return db.f=r?function(i){var s=t(this,i);return!!s&&s.enumerable}:e,db}var pb,gN;function yl(){return gN||(gN=1,pb=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),pb}var hb,yN;function z6(){if(yN)return hb;yN=1;var e=Mn(),t=yi(),r=$O(),n=Object,i=e("".split);return hb=t(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?i(s,""):n(s)}:n,hb}var mb,vN;function FO(){return vN||(vN=1,mb=function(e){return e==null}),mb}var gb,bN;function dh(){if(bN)return gb;bN=1;var e=FO(),t=TypeError;return gb=function(r){if(e(r))throw new t("Can't call method on "+r);return r},gb}var yb,_N;function vl(){if(_N)return yb;_N=1;var e=z6(),t=dh();return yb=function(r){return e(t(r))},yb}var vb,EN;function Di(){if(EN)return vb;EN=1;var e=Yn();return vb=function(t){return typeof t=="object"?t!==null:e(t)},vb}var bb,SN;function bl(){return SN||(SN=1,bb={}),bb}var _b,wN;function _l(){if(wN)return _b;wN=1;var e=bl(),t=Nn(),r=Yn(),n=function(i){return r(i)?i:void 0};return _b=function(i,s){return arguments.length<2?n(e[i])||n(t[i]):e[i]&&e[i][s]||t[i]&&t[i][s]},_b}var Eb,xN;function El(){if(xN)return Eb;xN=1;var e=Mn();return Eb=e({}.isPrototypeOf),Eb}var Sb,AN;function MX(){if(AN)return Sb;AN=1;var e=Nn(),t=e.navigator,r=t&&t.userAgent;return Sb=r?String(r):"",Sb}var wb,ON;function DX(){if(ON)return wb;ON=1;var e=Nn(),t=MX(),r=e.process,n=e.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&&t&&(a=t.match(/Edge\/(\d+)/),(!a||a[1]>=74)&&(a=t.match(/Chrome\/(\d+)/),a&&(o=+a[1]))),wb=o,wb}var xb,CN;function W6(){if(CN)return xb;CN=1;var e=DX(),t=yi(),r=Nn(),n=r.String;return xb=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),xb}var Ab,RN;function J6(){if(RN)return Ab;RN=1;var e=W6();return Ab=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",Ab}var Ob,TN;function K6(){if(TN)return Ob;TN=1;var e=_l(),t=Yn(),r=El(),n=J6(),i=Object;return Ob=n?function(s){return typeof s=="symbol"}:function(s){var a=e("Symbol");return t(a)&&r(a.prototype,i(s))},Ob}var Cb,IN;function LO(){if(IN)return Cb;IN=1;var e=String;return Cb=function(t){try{return e(t)}catch{return"Object"}},Cb}var Rb,jN;function Sl(){if(jN)return Rb;jN=1;var e=Yn(),t=LO(),r=TypeError;return Rb=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},Rb}var Tb,kN;function BO(){if(kN)return Tb;kN=1;var e=Sl(),t=FO();return Tb=function(r,n){var i=r[n];return t(i)?void 0:e(i)},Tb}var Ib,PN;function qX(){if(PN)return Ib;PN=1;var e=va(),t=Yn(),r=Di(),n=TypeError;return Ib=function(i,s){var a,o;if(s==="string"&&t(a=i.toString)&&!r(o=e(a,i))||t(a=i.valueOf)&&!r(o=e(a,i))||s!=="string"&&t(a=i.toString)&&!r(o=e(a,i)))return o;throw new n("Can't convert object to primitive value")},Ib}var jb={exports:{}},kb,NN;function wl(){return NN||(NN=1,kb=!0),kb}var Pb,MN;function $X(){if(MN)return Pb;MN=1;var e=Nn(),t=Object.defineProperty;return Pb=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},Pb}var DN;function H6(){if(DN)return jb.exports;DN=1;var e=wl(),t=Nn(),r=$X(),n="__core-js_shared__",i=jb.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.41.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.41.0/LICENSE",source:"https://github.com/zloirock/core-js"}),jb.exports}var Nb,qN;function G6(){if(qN)return Nb;qN=1;var e=H6();return Nb=function(t,r){return e[t]||(e[t]=r||{})},Nb}var Mb,$N;function UO(){if($N)return Mb;$N=1;var e=dh(),t=Object;return Mb=function(r){return t(e(r))},Mb}var Db,FN;function qi(){if(FN)return Db;FN=1;var e=Mn(),t=UO(),r=e({}.hasOwnProperty);return Db=Object.hasOwn||function(i,s){return r(t(i),s)},Db}var qb,LN;function Y6(){if(LN)return qb;LN=1;var e=Mn(),t=0,r=Math.random(),n=e(1 .toString);return qb=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},qb}var $b,BN;function Ps(){if(BN)return $b;BN=1;var e=Nn(),t=G6(),r=qi(),n=Y6(),i=W6(),s=J6(),a=e.Symbol,o=t("wks"),u=s?a.for||a:a&&a.withoutSetter||n;return $b=function(c){return r(o,c)||(o[c]=i&&r(a,c)?a[c]:u("Symbol."+c)),o[c]},$b}var Fb,UN;function FX(){if(UN)return Fb;UN=1;var e=va(),t=Di(),r=K6(),n=BO(),i=qX(),s=Ps(),a=TypeError,o=s("toPrimitive");return Fb=function(u,c){if(!t(u)||r(u))return u;var l=n(u,o),f;if(l){if(c===void 0&&(c="default"),f=e(l,u,c),!t(f)||r(f))return f;throw new a("Can't convert object to primitive value")}return c===void 0&&(c="number"),i(u,c)},Fb}var Lb,VN;function X6(){if(VN)return Lb;VN=1;var e=FX(),t=K6();return Lb=function(r){var n=e(r,"string");return t(n)?n:n+""},Lb}var Bb,zN;function Z6(){if(zN)return Bb;zN=1;var e=Nn(),t=Di(),r=e.document,n=t(r)&&t(r.createElement);return Bb=function(i){return n?r.createElement(i):{}},Bb}var Ub,WN;function Q6(){if(WN)return Ub;WN=1;var e=ls(),t=yi(),r=Z6();return Ub=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Ub}var JN;function e4(){if(JN)return cb;JN=1;var e=ls(),t=va(),r=V6(),n=yl(),i=vl(),s=X6(),a=qi(),o=Q6(),u=Object.getOwnPropertyDescriptor;return cb.f=e?u:function(l,f){if(l=i(l),f=s(f),o)try{return u(l,f)}catch{}if(a(l,f))return n(!t(r.f,l,f),l[f])},cb}var Vb,KN;function LX(){if(KN)return Vb;KN=1;var e=yi(),t=Yn(),r=/#|\.prototype\./,n=function(u,c){var l=s[i(u)];return l===o?!0:l===a?!1:t(c)?e(c):!!c},i=n.normalize=function(u){return String(u).replace(r,".").toLowerCase()},s=n.data={},a=n.NATIVE="N",o=n.POLYFILL="P";return Vb=n,Vb}var zb,HN;function t4(){if(HN)return zb;HN=1;var e=U6(),t=Sl(),r=gl(),n=e(e.bind);return zb=function(i,s){return t(i),s===void 0?i:r?n(i,s):function(){return i.apply(s,arguments)}},zb}var Wb={},Jb,GN;function r4(){if(GN)return Jb;GN=1;var e=ls(),t=yi();return Jb=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),Jb}var Kb,YN;function uo(){if(YN)return Kb;YN=1;var e=Di(),t=String,r=TypeError;return Kb=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},Kb}var XN;function Eu(){if(XN)return Wb;XN=1;var e=ls(),t=Q6(),r=r4(),n=uo(),i=X6(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return Wb.f=e?r?function(h,p,g){if(n(h),p=i(p),n(g),typeof h=="function"&&p==="prototype"&&"value"in g&&l in g&&!g[l]){var y=o(h,p);y&&y[l]&&(h[p]=g.value,g={configurable:c in g?g[c]:y[c],enumerable:u in g?g[u]:y[u],writable:!1})}return a(h,p,g)}:a:function(h,p,g){if(n(h),p=i(p),n(g),t)try{return a(h,p,g)}catch{}if("get"in g||"set"in g)throw new s("Accessors not supported");return"value"in g&&(h[p]=g.value),h},Wb}var Hb,ZN;function Ns(){if(ZN)return Hb;ZN=1;var e=ls(),t=Eu(),r=yl();return Hb=e?function(n,i,s){return t.f(n,i,r(1,s))}:function(n,i,s){return n[i]=s,n},Hb}var Gb,QN;function Su(){if(QN)return Gb;QN=1;var e=Nn(),t=qO(),r=U6(),n=Yn(),i=e4().f,s=LX(),a=bl(),o=t4(),u=Ns(),c=qi(),l=function(f){var h=function(p,g,y){if(this instanceof h){switch(arguments.length){case 0:return new f;case 1:return new f(p);case 2:return new f(p,g)}return new f(p,g,y)}return t(f,this,arguments)};return h.prototype=f.prototype,h};return Gb=function(f,h){var p=f.target,g=f.global,y=f.stat,v=f.proto,E=g?e:y?e[p]:e[p]&&e[p].prototype,b=g?a:a[p]||u(a,p,{})[p],S=b.prototype,x,_,A,C,T,O,M,k,D;for(C in h)x=s(g?C:p+(y?".":"#")+C,f.forced),_=!x&&E&&c(E,C),O=b[C],_&&(f.dontCallGetSet?(D=i(E,C),M=D&&D.value):M=E[C]),T=_&&M?M:h[C],!(!x&&!v&&typeof O==typeof T)&&(f.bind&&_?k=o(T,e):f.wrap&&_?k=l(T):v&&n(T)?k=r(T):k=T,(f.sham||T&&T.sham||O&&O.sham)&&u(k,"sham",!0),u(b,C,k),v&&(A=p+"Prototype",c(a,A)||u(a,A,{}),u(a[A],C,T),f.real&&S&&(x||!S[C])&&u(S,C,T)))},Gb}var Yb,eM;function BX(){if(eM)return Yb;eM=1;var e=Math.ceil,t=Math.floor;return Yb=Math.trunc||function(n){var i=+n;return(i>0?t:e)(i)},Yb}var Xb,tM;function VO(){if(tM)return Xb;tM=1;var e=BX();return Xb=function(t){var r=+t;return r!==r||r===0?0:e(r)},Xb}var Zb,rM;function UX(){if(rM)return Zb;rM=1;var e=VO(),t=Math.max,r=Math.min;return Zb=function(n,i){var s=e(n);return s<0?t(s+i,0):r(s,i)},Zb}var Qb,nM;function VX(){if(nM)return Qb;nM=1;var e=VO(),t=Math.min;return Qb=function(r){var n=e(r);return n>0?t(n,9007199254740991):0},Qb}var e_,iM;function n4(){if(iM)return e_;iM=1;var e=VX();return e_=function(t){return e(t.length)},e_}var t_,sM;function zX(){if(sM)return t_;sM=1;var e=vl(),t=UX(),r=n4(),n=function(i){return function(s,a,o){var u=e(s),c=r(u);if(c===0)return!i&&-1;var l=t(o,c),f;if(i&&a!==a){for(;c>l;)if(f=u[l++],f!==f)return!0}else for(;c>l;l++)if((i||l in u)&&u[l]===a)return i||l||0;return!i&&-1}};return t_={includes:n(!0),indexOf:n(!1)},t_}var r_,aM;function zO(){return aM||(aM=1,r_={}),r_}var n_,oM;function i4(){if(oM)return n_;oM=1;var e=Mn(),t=qi(),r=vl(),n=zX().indexOf,i=zO(),s=e([].push);return n_=function(a,o){var u=r(a),c=0,l=[],f;for(f in u)!t(i,f)&&t(u,f)&&s(l,f);for(;o.length>c;)t(u,f=o[c++])&&(~n(l,f)||s(l,f));return l},n_}var i_,uM;function WO(){return uM||(uM=1,i_=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),i_}var s_,cM;function s4(){if(cM)return s_;cM=1;var e=i4(),t=WO();return s_=Object.keys||function(n){return e(n,t)},s_}var a_={},lM;function a4(){return lM||(lM=1,a_.f=Object.getOwnPropertySymbols),a_}var o_,fM;function WX(){if(fM)return o_;fM=1;var e=ls(),t=Mn(),r=va(),n=yi(),i=s4(),s=a4(),a=V6(),o=UO(),u=z6(),c=Object.assign,l=Object.defineProperty,f=t([].concat);return o_=!c||n(function(){if(e&&c({b:1},c(l({},"a",{enumerable:!0,get:function(){l(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var h={},p={},g=Symbol("assign detection"),y="abcdefghijklmnopqrst";return h[g]=7,y.split("").forEach(function(v){p[v]=v}),c({},h)[g]!==7||i(c({},p)).join("")!==y})?function(p,g){for(var y=o(p),v=arguments.length,E=1,b=s.f,S=a.f;v>E;)for(var x=u(arguments[E++]),_=b?f(i(x),b(x)):i(x),A=_.length,C=0,T;A>C;)T=_[C++],(!e||r(S,x,T))&&(y[T]=x[T]);return y}:c,o_}var dM;function JX(){if(dM)return iN;dM=1;var e=Su(),t=WX();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t}),iN}var u_,pM;function KX(){if(pM)return u_;pM=1,JX();var e=bl();return u_=e.Object.assign,u_}var c_,hM;function HX(){if(hM)return c_;hM=1;var e=KX();return c_=e,c_}var l_,mM;function GX(){if(mM)return l_;mM=1;var e=HX();return l_=e,l_}var f_,gM;function YX(){if(gM)return f_;gM=1;var e=GX();return f_=e,f_}var d_,yM;function XX(){return yM||(yM=1,d_=YX()),d_}var ZX=XX();const vM=Ue.getDefaultExportFromCjs(ZX);var bM={},p_,_M;function QX(){if(_M)return p_;_M=1;var e=Mn();return p_=e([].slice),p_}var h_,EM;function eZ(){if(EM)return h_;EM=1;var e=Mn(),t=Sl(),r=Di(),n=qi(),i=QX(),s=gl(),a=Function,o=e([].concat),u=e([].join),c={},l=function(f,h,p){if(!n(c,h)){for(var g=[],y=0;y<h;y++)g[y]="a["+y+"]";c[h]=a("C,a","return new C("+u(g,",")+")")}return c[h](f,p)};return h_=s?a.bind:function(h){var p=t(this),g=p.prototype,y=i(arguments,1),v=function(){var b=o(y,i(arguments));return this instanceof v?l(p,b.length,b):p.apply(h,b)};return r(g)&&(v.prototype=g),v},h_}var SM;function tZ(){if(SM)return bM;SM=1;var e=Su(),t=eZ();return e({target:"Function",proto:!0,forced:Function.bind!==t},{bind:t}),bM}var m_,wM;function rZ(){if(wM)return m_;wM=1;var e=Nn(),t=bl();return m_=function(r,n){var i=t[r+"Prototype"],s=i&&i[n];if(s)return s;var a=e[r],o=a&&a.prototype;return o&&o[n]},m_}var g_,xM;function nZ(){if(xM)return g_;xM=1,tZ();var e=rZ();return g_=e("Function","bind"),g_}var y_,AM;function iZ(){if(AM)return y_;AM=1;var e=El(),t=nZ(),r=Function.prototype;return y_=function(n){var i=n.bind;return n===r||e(r,n)&&i===r.bind?t:i},y_}var v_,OM;function sZ(){if(OM)return v_;OM=1;var e=iZ();return v_=e,v_}var b_,CM;function aZ(){if(CM)return b_;CM=1;var e=sZ();return b_=e,b_}var __,RM;function oZ(){if(RM)return __;RM=1;var e=aZ();return __=e,__}var E_,TM;function uZ(){return TM||(TM=1,E_=oZ()),E_}var cZ=uZ();const lZ=Ue.getDefaultExportFromCjs(cZ);function Tw(){var e;return Tw=vM?lZ(e=vM).call(e):function(t){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var i in n)({}).hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},Tw.apply(null,arguments)}var S_={exports:{}};/*!
81
+ Copyright (c) 2018 Jed Watson.
82
+ Licensed under the MIT License (MIT), see
83
+ http://jedwatson.github.io/classnames
84
+ */var IM;function fZ(){return IM||(IM=1,function(e){(function(){var t={}.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)t.call(s,o)&&s[o]&&(a=i(a,o));return a}function i(s,a){return a?s?s+" "+a:s+a:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()}(S_)),S_.exports}var dZ=fZ();const pZ=Ue.getDefaultExportFromCjs(dZ);var Uu={},w_,jM;function hZ(){return jM||(jM=1,w_=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,r=[],n=0;n<e.rangeCount;n++)r.push(e.getRangeAt(n));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null;break}return e.removeAllRanges(),function(){e.type==="Caret"&&e.removeAllRanges(),e.rangeCount||r.forEach(function(i){e.addRange(i)}),t&&t.focus()}}),w_}var x_,kM;function mZ(){if(kM)return x_;kM=1;var e=hZ(),t={"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,c,l,f,h,p=!1;a||(a={}),o=a.debug||!1;try{c=e(),l=document.createRange(),f=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=t[a.format]||t.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),l.selectNodeContents(h),f.addRange(l);var g=document.execCommand("copy");if(!g)throw new Error("copy command was unsuccessful");p=!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),p=!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{f&&(typeof f.removeRange=="function"?f.removeRange(l):f.removeAllRanges()),h&&document.body.removeChild(h),c()}return p}return x_=i,x_}var PM;function gZ(){if(PM)return Uu;PM=1;function e(_){"@babel/helpers - typeof";return e=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},e(_)}Object.defineProperty(Uu,"__esModule",{value:!0}),Uu.CopyToClipboard=void 0;var t=i(jt),r=i(mZ()),n=["text","onCopy","options","children"];function i(_){return _&&_.__esModule?_:{default:_}}function s(_,A){var C=Object.keys(_);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(_);A&&(T=T.filter(function(O){return Object.getOwnPropertyDescriptor(_,O).enumerable})),C.push.apply(C,T)}return C}function a(_){for(var A=1;A<arguments.length;A++){var C=arguments[A]!=null?arguments[A]:{};A%2?s(Object(C),!0).forEach(function(T){S(_,T,C[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(C)):s(Object(C)).forEach(function(T){Object.defineProperty(_,T,Object.getOwnPropertyDescriptor(C,T))})}return _}function o(_,A){if(_==null)return{};var C=u(_,A),T,O;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(_);for(O=0;O<M.length;O++)T=M[O],!(A.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(_,T)&&(C[T]=_[T])}return C}function u(_,A){if(_==null)return{};var C={},T=Object.keys(_),O,M;for(M=0;M<T.length;M++)O=T[M],!(A.indexOf(O)>=0)&&(C[O]=_[O]);return C}function c(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}function l(_,A){for(var C=0;C<A.length;C++){var T=A[C];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(_,T.key,T)}}function f(_,A,C){return A&&l(_.prototype,A),Object.defineProperty(_,"prototype",{writable:!1}),_}function h(_,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(A&&A.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),A&&p(_,A)}function p(_,A){return p=Object.setPrototypeOf||function(T,O){return T.__proto__=O,T},p(_,A)}function g(_){var A=E();return function(){var T=b(_),O;if(A){var M=b(this).constructor;O=Reflect.construct(T,arguments,M)}else O=T.apply(this,arguments);return y(this,O)}}function y(_,A){if(A&&(e(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(_)}function v(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}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(_){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},b(_)}function S(_,A,C){return A in _?Object.defineProperty(_,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):_[A]=C,_}var x=function(_){h(C,_);var A=g(C);function C(){var T;c(this,C);for(var O=arguments.length,M=new Array(O),k=0;k<O;k++)M[k]=arguments[k];return T=A.call.apply(A,[this].concat(M)),S(v(T),"onClick",function(D){var P=T.props,H=P.text,X=P.onCopy,V=P.children,G=P.options,Q=t.default.Children.only(V),Z=(0,r.default)(H,G);X&&X(H,Z),Q&&Q.props&&typeof Q.props.onClick=="function"&&Q.props.onClick(D)}),T}return f(C,[{key:"render",value:function(){var O=this.props;O.text,O.onCopy,O.options;var M=O.children,k=o(O,n),D=t.default.Children.only(M);return t.default.cloneElement(D,a(a({},k),{},{onClick:this.onClick}))}}]),C}(t.default.PureComponent);return Uu.CopyToClipboard=x,S(x,"defaultProps",{onCopy:void 0,options:void 0}),Uu}var A_,NM;function yZ(){if(NM)return A_;NM=1;var e=gZ(),t=e.CopyToClipboard;return t.CopyToClipboard=t,A_=t,A_}var vZ=yZ();function hd(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?hd=function(t){return typeof t}:hd=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hd(e)}function bZ(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _Z(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function EZ(e,t,r){return t&&_Z(e.prototype,t),e}function SZ(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function MM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function wZ(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?MM(r,!0).forEach(function(n){SZ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):MM(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function xZ(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&jw(e,t)}function Iw(e){return Iw=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Iw(e)}function jw(e,t){return jw=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},jw(e,t)}function AZ(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OZ(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:AZ(e)}var DM={};function CZ(e){return e!==null&&hd(e)==="object"&&typeof e.get=="function"&&typeof e.has=="function"}function RZ(e){return e==null}function TZ(e,t,r){return RZ(e)?r:CZ(e)?e.has(t)?e.get(t):r:hasOwnProperty.call(e,t)?e[t]:r}function qM(e,t,r){for(var n=0;n!==t.length;)if(e=TZ(e,t[n++],DM),e===DM)return r;return e}function $M(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=IZ(t,r),i=e||Object.keys(wZ({},r,{},t));return i.every(n)}function IZ(e,t){return function(r){if(typeof r=="string")return Rr(t[r],e[r]);if(Array.isArray(r))return Rr(qM(t,r),qM(e,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}var jZ=function(e){xZ(t,e);function t(){return bZ(this,t),OZ(this,Iw(t).apply(this,arguments))}return EZ(t,[{key:"shouldComponentUpdate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!$M(this.updateOnProps,this.props,n,"updateOnProps")||!$M(this.updateOnStates,this.state,i,"updateOnStates")}}]),t}(jt.Component),Vu={},O_,FM;function kZ(){if(FM)return O_;FM=1;var e="Expected a function",t=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 Ue.commonjsGlobal=="object"&&Ue.commonjsGlobal&&Ue.commonjsGlobal.Object===Object&&Ue.commonjsGlobal,c=typeof self=="object"&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=Object.prototype,h=f.toString,p=Math.max,g=Math.min,y=function(){return l.Date.now()};function v(_,A,C){var T,O,M,k,D,P,H=0,X=!1,V=!1,G=!0;if(typeof _!="function")throw new TypeError(e);A=x(A)||0,E(C)&&(X=!!C.leading,V="maxWait"in C,M=V?p(x(C.maxWait)||0,A):M,G="trailing"in C?!!C.trailing:G);function Q(L){var ue=T,de=O;return T=O=void 0,H=L,k=_.apply(de,ue),k}function Z(L){return H=L,D=setTimeout(ee,A),X?Q(L):k}function B(L){var ue=L-P,de=L-H,Ae=A-ue;return V?g(Ae,M-de):Ae}function J(L){var ue=L-P,de=L-H;return P===void 0||ue>=A||ue<0||V&&de>=M}function ee(){var L=y();if(J(L))return ne(L);D=setTimeout(ee,B(L))}function ne(L){return D=void 0,G&&T?Q(L):(T=O=void 0,k)}function ae(){D!==void 0&&clearTimeout(D),H=0,T=P=O=D=void 0}function Y(){return D===void 0?k:ne(y())}function F(){var L=y(),ue=J(L);if(T=arguments,O=this,P=L,ue){if(D===void 0)return Z(P);if(V)return D=setTimeout(ee,A),Q(P)}return D===void 0&&(D=setTimeout(ee,A)),k}return F.cancel=ae,F.flush=Y,F}function E(_){var A=typeof _;return!!_&&(A=="object"||A=="function")}function b(_){return!!_&&typeof _=="object"}function S(_){return typeof _=="symbol"||b(_)&&h.call(_)==r}function x(_){if(typeof _=="number")return _;if(S(_))return t;if(E(_)){var A=typeof _.valueOf=="function"?_.valueOf():_;_=E(A)?A+"":A}if(typeof _!="string")return _===0?_:+_;_=_.replace(n,"");var C=s.test(_);return C||a.test(_)?o(_.slice(2),C?2:8):i.test(_)?t:+_}return O_=v,O_}var LM;function PZ(){if(LM)return Vu;LM=1;function e(_){"@babel/helpers - typeof";return e=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},e(_)}Object.defineProperty(Vu,"__esModule",{value:!0}),Vu.DebounceInput=void 0;var t=i(jt),r=i(kZ()),n=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function i(_){return _&&_.__esModule?_:{default:_}}function s(_,A){if(_==null)return{};var C=a(_,A),T,O;if(Object.getOwnPropertySymbols){var M=Object.getOwnPropertySymbols(_);for(O=0;O<M.length;O++)T=M[O],!(A.indexOf(T)>=0)&&Object.prototype.propertyIsEnumerable.call(_,T)&&(C[T]=_[T])}return C}function a(_,A){if(_==null)return{};var C={},T=Object.keys(_),O,M;for(M=0;M<T.length;M++)O=T[M],!(A.indexOf(O)>=0)&&(C[O]=_[O]);return C}function o(_,A){var C=Object.keys(_);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(_);A&&(T=T.filter(function(O){return Object.getOwnPropertyDescriptor(_,O).enumerable})),C.push.apply(C,T)}return C}function u(_){for(var A=1;A<arguments.length;A++){var C=arguments[A]!=null?arguments[A]:{};A%2?o(Object(C),!0).forEach(function(T){S(_,T,C[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(_,Object.getOwnPropertyDescriptors(C)):o(Object(C)).forEach(function(T){Object.defineProperty(_,T,Object.getOwnPropertyDescriptor(C,T))})}return _}function c(_,A){if(!(_ instanceof A))throw new TypeError("Cannot call a class as a function")}function l(_,A){for(var C=0;C<A.length;C++){var T=A[C];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(_,T.key,T)}}function f(_,A,C){return A&&l(_.prototype,A),Object.defineProperty(_,"prototype",{writable:!1}),_}function h(_,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");_.prototype=Object.create(A&&A.prototype,{constructor:{value:_,writable:!0,configurable:!0}}),Object.defineProperty(_,"prototype",{writable:!1}),A&&p(_,A)}function p(_,A){return p=Object.setPrototypeOf||function(T,O){return T.__proto__=O,T},p(_,A)}function g(_){var A=E();return function(){var T=b(_),O;if(A){var M=b(this).constructor;O=Reflect.construct(T,arguments,M)}else O=T.apply(this,arguments);return y(this,O)}}function y(_,A){if(A&&(e(A)==="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(_)}function v(_){if(_===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return _}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(_){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},b(_)}function S(_,A,C){return A in _?Object.defineProperty(_,A,{value:C,enumerable:!0,configurable:!0,writable:!0}):_[A]=C,_}var x=function(_){h(C,_);var A=g(C);function C(T){var O;c(this,C),O=A.call(this,T),S(v(O),"onChange",function(k){k.persist();var D=O.state.value,P=O.props.minLength;O.setState({value:k.target.value},function(){var H=O.state.value;if(H.length>=P){O.notify(k);return}D.length>H.length&&O.notify(u(u({},k),{},{target:u(u({},k.target),{},{value:""})}))})}),S(v(O),"onKeyDown",function(k){k.key==="Enter"&&O.forceNotify(k);var D=O.props.onKeyDown;D&&(k.persist(),D(k))}),S(v(O),"onBlur",function(k){O.forceNotify(k);var D=O.props.onBlur;D&&(k.persist(),D(k))}),S(v(O),"createNotifier",function(k){if(k<0)O.notify=function(){return null};else if(k===0)O.notify=O.doNotify;else{var D=(0,r.default)(function(P){O.isDebouncing=!1,O.doNotify(P)},k);O.notify=function(P){O.isDebouncing=!0,D(P)},O.flush=function(){return D.flush()},O.cancel=function(){O.isDebouncing=!1,D.cancel()}}}),S(v(O),"doNotify",function(){var k=O.props.onChange;k.apply(void 0,arguments)}),S(v(O),"forceNotify",function(k){var D=O.props.debounceTimeout;if(!(!O.isDebouncing&&D>0)){O.cancel&&O.cancel();var P=O.state.value,H=O.props.minLength;P.length>=H?O.doNotify(k):O.doNotify(u(u({},k),{},{target:u(u({},k.target),{},{value:P})}))}}),O.isDebouncing=!1,O.state={value:typeof T.value>"u"||T.value===null?"":T.value};var M=O.props.debounceTimeout;return O.createNotifier(M),O}return f(C,[{key:"componentDidUpdate",value:function(O){if(!this.isDebouncing){var M=this.props,k=M.value,D=M.debounceTimeout,P=O.debounceTimeout,H=O.value,X=this.state.value;typeof k<"u"&&H!==k&&X!==k&&this.setState({value:k}),D!==P&&this.createNotifier(D)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var O=this.props,M=O.element;O.onChange,O.value,O.minLength,O.debounceTimeout;var k=O.forceNotifyByEnter,D=O.forceNotifyOnBlur,P=O.onKeyDown,H=O.onBlur,X=O.inputRef,V=s(O,n),G=this.state.value,Q;k?Q={onKeyDown:this.onKeyDown}:P?Q={onKeyDown:P}:Q={};var Z;D?Z={onBlur:this.onBlur}:H?Z={onBlur:H}:Z={};var B=X?{ref:X}:{};return t.default.createElement(M,u(u(u(u({},V),{},{onChange:this.onChange,value:G},Q),Z),B))}}]),C}(t.default.PureComponent);return Vu.DebounceInput=x,S(x,"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}),Vu}var C_,BM;function NZ(){if(BM)return C_;BM=1;var e=PZ(),t=e.DebounceInput;return t.DebounceInput=t,C_=t,C_}var MZ=NZ();const DZ=Ue.getDefaultExportFromCjs(MZ);var Yf={exports:{}},R_={},T_,UM;function ph(){return UM||(UM=1,T_={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}),T_}var Es={},VM;function o4(){if(VM)return Es;VM=1;const e=ph(),t=()=>[{type:e.RANGE,from:48,to:57}],r=()=>[{type:e.CHAR,value:95},{type:e.RANGE,from:97,to:122},{type:e.RANGE,from:65,to:90}].concat(t()),n=()=>[{type:e.CHAR,value:9},{type:e.CHAR,value:10},{type:e.CHAR,value:11},{type:e.CHAR,value:12},{type:e.CHAR,value:13},{type:e.CHAR,value:32},{type:e.CHAR,value:160},{type:e.CHAR,value:5760},{type:e.RANGE,from:8192,to:8202},{type:e.CHAR,value:8232},{type:e.CHAR,value:8233},{type:e.CHAR,value:8239},{type:e.CHAR,value:8287},{type:e.CHAR,value:12288},{type:e.CHAR,value:65279}],i=()=>[{type:e.CHAR,value:10},{type:e.CHAR,value:13},{type:e.CHAR,value:8232},{type:e.CHAR,value:8233}];return Es.words=()=>({type:e.SET,set:r(),not:!1}),Es.notWords=()=>({type:e.SET,set:r(),not:!0}),Es.ints=()=>({type:e.SET,set:t(),not:!1}),Es.notInts=()=>({type:e.SET,set:t(),not:!0}),Es.whitespace=()=>({type:e.SET,set:n(),not:!1}),Es.notWhitespace=()=>({type:e.SET,set:n(),not:!0}),Es.anyChar=()=>({type:e.SET,set:i(),not:!0}),Es}var zM;function qZ(){return zM||(zM=1,function(e){const t=ph(),r=o4(),n="@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?",i={0:0,t:9,n:10,v:11,f:12,r:13};e.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,c,l,f,h,p,g){if(c)return o;var y=u?8:l?parseInt(l,16):f?parseInt(f,16):h?parseInt(h,8):p?n.indexOf(p):i[g],v=String.fromCharCode(y);return/[[\]{}^$.|?*+()]/.test(v)&&(v="\\"+v),v}),s},e.tokenizeClass=(s,a)=>{for(var o=[],u=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,c,l;(c=u.exec(s))!=null;)if(c[1])o.push(r.words());else if(c[2])o.push(r.ints());else if(c[3])o.push(r.whitespace());else if(c[4])o.push(r.notWords());else if(c[5])o.push(r.notInts());else if(c[6])o.push(r.notWhitespace());else if(c[7])o.push({type:t.RANGE,from:(c[8]||c[9]).charCodeAt(0),to:c[10].charCodeAt(0)});else if(l=c[12])o.push({type:t.CHAR,value:l.charCodeAt(0)});else return[o,u.lastIndex];e.error(a,"Unterminated character class")},e.error=(s,a)=>{throw new SyntaxError("Invalid regular expression: /"+s+"/: "+a)}}(R_)),R_}var To={},WM;function $Z(){if(WM)return To;WM=1;const e=ph();return To.wordBoundary=()=>({type:e.POSITION,value:"b"}),To.nonWordBoundary=()=>({type:e.POSITION,value:"B"}),To.begin=()=>({type:e.POSITION,value:"^"}),To.end=()=>({type:e.POSITION,value:"$"}),To}var JM;function FZ(){if(JM)return Yf.exports;JM=1;const e=qZ(),t=ph(),r=o4(),n=$Z();return Yf.exports=i=>{var s=0,a,o,u={type:t.ROOT,stack:[]},c=u,l=u.stack,f=[],h=_=>{e.error(i,`Nothing to repeat at column ${_-1}`)},p=e.strToChars(i);for(a=p.length;s<a;)switch(o=p[s++],o){case"\\":switch(o=p[s++],o){case"b":l.push(n.wordBoundary());break;case"B":l.push(n.nonWordBoundary());break;case"w":l.push(r.words());break;case"W":l.push(r.notWords());break;case"d":l.push(r.ints());break;case"D":l.push(r.notInts());break;case"s":l.push(r.whitespace());break;case"S":l.push(r.notWhitespace());break;default:/\d/.test(o)?l.push({type:t.REFERENCE,value:parseInt(o,10)}):l.push({type:t.CHAR,value:o.charCodeAt(0)})}break;case"^":l.push(n.begin());break;case"$":l.push(n.end());break;case"[":var g;p[s]==="^"?(g=!0,s++):g=!1;var y=e.tokenizeClass(p.slice(s),i);s+=y[1],l.push({type:t.SET,set:y[0],not:g});break;case".":l.push(r.anyChar());break;case"(":var v={type:t.GROUP,stack:[],remember:!0};o=p[s],o==="?"&&(o=p[s+1],s+=2,o==="="?v.followedBy=!0:o==="!"?v.notFollowedBy=!0:o!==":"&&e.error(i,`Invalid group, character '${o}' after '?' at column ${s-1}`),v.remember=!1),l.push(v),f.push(c),c=v,l=v.stack;break;case")":f.length===0&&e.error(i,`Unmatched ) at column ${s-1}`),c=f.pop(),l=c.options?c.options[c.options.length-1]:c.stack;break;case"|":c.options||(c.options=[c.stack],delete c.stack);var E=[];c.options.push(E),l=E;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(s)),S,x;b!==null?(l.length===0&&h(s),S=parseInt(b[1],10),x=b[2]?b[3]?parseInt(b[3],10):1/0:S,s+=b[0].length,l.push({type:t.REPETITION,min:S,max:x,value:l.pop()})):l.push({type:t.CHAR,value:123});break;case"?":l.length===0&&h(s),l.push({type:t.REPETITION,min:0,max:1,value:l.pop()});break;case"+":l.length===0&&h(s),l.push({type:t.REPETITION,min:1,max:1/0,value:l.pop()});break;case"*":l.length===0&&h(s),l.push({type:t.REPETITION,min:0,max:1/0,value:l.pop()});break;default:l.push({type:t.CHAR,value:o.charCodeAt(0)})}return f.length!==0&&e.error(i,"Unterminated group"),u},Yf.exports.types=t,Yf.exports}var I_,KM;function LZ(){if(KM)return I_;KM=1;class e{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 e(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 e(this.low,n.low-1),new e(n.high+1,this.high)]:n.low<=this.low?[new e(n.high+1,this.high)]:[new e(this.low,n.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+"-"+this.high}}class t{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 t?n.ranges.forEach(s):(i==null&&(i=n),s(new e(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 t?n.ranges.forEach(s):(i==null&&(i=n),s(new e(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 c=Math.max(this.ranges[u].low,o.low),l=Math.min(this.ranges[u].high,o.high);s.push(new e(c,l)),u++}};return n instanceof t?n.ranges.forEach(a):(i==null&&(i=n),a(new e(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 t(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 I_=t,I_}var j_,HM;function BZ(){if(HM)return j_;HM=1;const e=FZ(),t=LZ(),r=e.types;return j_=class ic{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=e(i)}_setDefaults(i){this.max=i.max!=null?i.max:ic.prototype.max!=null?ic.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,c,l;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="",c=0,l=a.length;c<l;c++)o+=this._gen(a[c],s);return i.remember&&(s[i.groupNumber]=o),o;case r.POSITION:return"";case r.SET:var f=this._expand(i);return f.length?String.fromCharCode(this._randSelect(f)):"";case r.REPETITION:for(u=this.randInt(i.min,i.max===1/0?i.min+this.max:i.max),o="",c=0;c<u;c++)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 t?i.index(this.randInt(0,i.length-1)):i[this.randInt(0,i.length-1)]}_expand(i){if(i.type===e.types.CHAR)return new t(i.value);if(i.type===e.types.RANGE)return new t(i.from,i.to);{let s=new t;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 c=o.index(u),l=this._toOtherCase(c);c!==l&&s.add(l)}}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 t(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 ic(i,s),i._randexp=a):(a=i._randexp,a._setDefaults(i)),a.gen()}static sugar(){RegExp.prototype.gen=function(){return ic.randexp(this)}}},j_}var UZ=BZ();const VZ=Ue.getDefaultExportFromCjs(UZ);var k_,GM;function zZ(){if(GM)return k_;GM=1;var e=JA(),t=hu(),r=Yc(),n=Lr(),i=eo(),s=Xc(),a=Zp(),o=eh(),u="[object Map]",c="[object Set]",l=Object.prototype,f=l.hasOwnProperty;function h(p){if(p==null)return!0;if(i(p)&&(n(p)||typeof p=="string"||typeof p.splice=="function"||s(p)||o(p)||r(p)))return!p.length;var g=t(p);if(g==u||g==c)return!p.size;if(a(p))return!e(p).length;for(var y in p)if(f.call(p,y))return!1;return!0}return k_=h,k_}var WZ=zZ();const JZ=Ue.getDefaultExportFromCjs(WZ);var KZ=ML();const HZ=Ue.getDefaultExportFromCjs(KZ);var P_,YM;function u4(){if(YM)return P_;YM=1;var e=us(),t=Lr(),r=An(),n="[object String]";function i(s){return typeof s=="string"||!t(s)&&r(s)&&e(s)==n}return P_=i,P_}var GZ=u4();const YZ=Ue.getDefaultExportFromCjs(GZ);var N_,XM;function XZ(){if(XM)return N_;XM=1;var e=wn(),t=function(){return e.Date.now()};return N_=t,N_}var M_,ZM;function ZZ(){if(ZM)return M_;ZM=1;var e=xn(),t=XZ(),r=tB(),n="Expected a function",i=Math.max,s=Math.min;function a(o,u,c){var l,f,h,p,g,y,v=0,E=!1,b=!1,S=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(E=!!c.leading,b="maxWait"in c,h=b?i(r(c.maxWait)||0,u):h,S="trailing"in c?!!c.trailing:S);function x(P){var H=l,X=f;return l=f=void 0,v=P,p=o.apply(X,H),p}function _(P){return v=P,g=setTimeout(T,u),E?x(P):p}function A(P){var H=P-y,X=P-v,V=u-H;return b?s(V,h-X):V}function C(P){var H=P-y,X=P-v;return y===void 0||H>=u||H<0||b&&X>=h}function T(){var P=t();if(C(P))return O(P);g=setTimeout(T,A(P))}function O(P){return g=void 0,S&&l?x(P):(l=f=void 0,p)}function M(){g!==void 0&&clearTimeout(g),v=0,l=y=f=g=void 0}function k(){return g===void 0?p:O(t())}function D(){var P=t(),H=C(P);if(l=arguments,f=this,y=P,H){if(g===void 0)return _(y);if(b)return clearTimeout(g),g=setTimeout(T,u),x(y)}return g===void 0&&(g=setTimeout(T,u)),p}return D.cancel=M,D.flush=k,D}return M_=a,M_}var QZ=ZZ();const eQ=Ue.getDefaultExportFromCjs(QZ);var D_,QM;function tQ(){if(QM)return D_;QM=1;var e=th(),t=rl(),r=Zc(),n=xn(),i=to();function s(a,o,u,c){if(!n(a))return a;o=t(o,a);for(var l=-1,f=o.length,h=f-1,p=a;p!=null&&++l<f;){var g=i(o[l]),y=u;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;if(l!=h){var v=p[g];y=c?c(v,g,p):void 0,y===void 0&&(y=n(v)?v:r(o[l+1])?[]:{})}e(p,g,y),p=p[g]}return a}return D_=s,D_}var q_,eD;function c4(){if(eD)return q_;eD=1;var e=tQ();function t(r,n,i){return r==null?r:e(r,n,i)}return q_=t,q_}var rQ=c4();const nQ=Ue.getDefaultExportFromCjs(rQ);var $_={},tD;function iQ(){return tD||(tD=1,function(e){e.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"},e.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"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.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},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.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]},e.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}},e.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}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,r=e.aliasToReal,n={};for(var i in r){var s=r[i];t.call(n,s)?n[s].push(i):n[s]=[i]}return n}(),e.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"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.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}}($_)),$_}var F_,rD;function l4(){return rD||(rD=1,F_={}),F_}var L_,nD;function sQ(){if(nD)return L_;nD=1;var e=iQ(),t=l4(),r=Array.prototype.push;function n(l,f){return f==2?function(h,p){return l.apply(void 0,arguments)}:function(h){return l.apply(void 0,arguments)}}function i(l,f){return f==2?function(h,p){return l(h,p)}:function(h){return l(h)}}function s(l){for(var f=l?l.length:0,h=Array(f);f--;)h[f]=l[f];return h}function a(l){return function(f){return l({},f)}}function o(l,f){return function(){for(var h=arguments.length,p=h-1,g=Array(h);h--;)g[h]=arguments[h];var y=g[f],v=g.slice(0,f);return y&&r.apply(v,y),f!=p&&r.apply(v,g.slice(f+1)),l.apply(this,v)}}function u(l,f){return function(){var h=arguments.length;if(h){for(var p=Array(h);h--;)p[h]=arguments[h];var g=p[0]=f.apply(void 0,p);return l.apply(void 0,p),g}}}function c(l,f,h,p){var g=typeof f=="function",y=f===Object(f);if(y&&(p=h,h=f,f=void 0),h==null)throw new TypeError;p||(p={});var v={cap:"cap"in p?p.cap:!0,curry:"curry"in p?p.curry:!0,fixed:"fixed"in p?p.fixed:!0,immutable:"immutable"in p?p.immutable:!0,rearg:"rearg"in p?p.rearg:!0},E=g?h:t,b="curry"in p&&p.curry,S="fixed"in p&&p.fixed,x="rearg"in p&&p.rearg,_=g?h.runInContext():void 0,A=g?h:{ary:l.ary,assign:l.assign,clone:l.clone,curry:l.curry,forEach:l.forEach,isArray:l.isArray,isError:l.isError,isFunction:l.isFunction,isWeakMap:l.isWeakMap,iteratee:l.iteratee,keys:l.keys,rearg:l.rearg,toInteger:l.toInteger,toPath:l.toPath},C=A.ary,T=A.assign,O=A.clone,M=A.curry,k=A.forEach,D=A.isArray,P=A.isError,H=A.isFunction,X=A.isWeakMap,V=A.keys,G=A.rearg,Q=A.toInteger,Z=A.toPath,B=V(e.aryMethod),J={castArray:function(he){return function(){var _e=arguments[0];return D(_e)?he(s(_e)):he.apply(void 0,arguments)}},iteratee:function(he){return function(){var _e=arguments[0],Se=arguments[1],$=he(_e,Se),R=$.length;return v.cap&&typeof Se=="number"?(Se=Se>2?Se-2:1,R&&R<=Se?$:i($,Se)):$}},mixin:function(he){return function(_e){var Se=this;if(!H(Se))return he(Se,Object(_e));var $=[];return k(V(_e),function(R){H(_e[R])&&$.push([R,Se.prototype[R]])}),he(Se,Object(_e)),k($,function(R){var j=R[1];H(j)?Se.prototype[R[0]]=j:delete Se.prototype[R[0]]}),Se}},nthArg:function(he){return function(_e){var Se=_e<0?1:Q(_e)+1;return M(he(_e),Se)}},rearg:function(he){return function(_e,Se){var $=Se?Se.length:0;return M(he(_e,Se),$)}},runInContext:function(he){return function(_e){return c(l,he(_e),p)}}};function ee(he,_e){if(v.cap){var Se=e.iterateeRearg[he];if(Se)return Ae(_e,Se);var $=!g&&e.iterateeAry[he];if($)return de(_e,$)}return _e}function ne(he,_e,Se){return b||v.curry&&Se>1?M(_e,Se):_e}function ae(he,_e,Se){if(v.fixed&&(S||!e.skipFixed[he])){var $=e.methodSpread[he],R=$&&$.start;return R===void 0?C(_e,Se):o(_e,R)}return _e}function Y(he,_e,Se){return v.rearg&&Se>1&&(x||!e.skipRearg[he])?G(_e,e.methodRearg[he]||e.aryRearg[Se]):_e}function F(he,_e){_e=Z(_e);for(var Se=-1,$=_e.length,R=$-1,j=O(Object(he)),U=j;U!=null&&++Se<$;){var re=_e[Se],ie=U[re];ie!=null&&!(H(ie)||P(ie)||X(ie))&&(U[re]=O(Se==R?ie:Object(ie))),U=U[re]}return j}function L(he){return Re.runInContext.convert(he)(void 0)}function ue(he,_e){var Se=e.aliasToReal[he]||he,$=e.remap[Se]||Se,R=p;return function(j){var U=g?_:A,re=g?_[$]:_e,ie=T(T({},R),j);return c(U,Se,re,ie)}}function de(he,_e){return Ne(he,function(Se){return typeof Se=="function"?i(Se,_e):Se})}function Ae(he,_e){return Ne(he,function(Se){var $=_e.length;return n(G(i(Se,$),_e),$)})}function Ne(he,_e){return function(){var Se=arguments.length;if(!Se)return he();for(var $=Array(Se);Se--;)$[Se]=arguments[Se];var R=v.rearg?0:Se-1;return $[R]=_e($[R]),he.apply(void 0,$)}}function ce(he,_e,Se){var $,R=e.aliasToReal[he]||he,j=_e,U=J[R];return U?j=U(_e):v.immutable&&(e.mutate.array[R]?j=u(_e,s):e.mutate.object[R]?j=u(_e,a(_e)):e.mutate.set[R]&&(j=u(_e,F))),k(B,function(re){return k(e.aryMethod[re],function(ie){if(R==ie){var fe=e.methodSpread[R],Ie=fe&&fe.afterRearg;return $=Ie?ae(R,Y(R,j,re),re):Y(R,ae(R,j,re),re),$=ee(R,$),$=ne(R,$,re),!1}}),!$}),$||($=j),$==_e&&($=b?M($,1):function(){return _e.apply(this,arguments)}),$.convert=ue(R,_e),$.placeholder=_e.placeholder=Se,$}if(!y)return ce(f,h,E);var Re=h,ze=[];return k(B,function(he){k(e.aryMethod[he],function(_e){var Se=Re[e.remap[_e]||_e];Se&&ze.push([_e,ce(_e,Se,Re)])})}),k(V(Re),function(he){var _e=Re[he];if(typeof _e=="function"){for(var Se=ze.length;Se--;)if(ze[Se][0]==he)return;_e.convert=ue(he,_e),ze.push([he,_e])}}),k(ze,function(he){Re[he[0]]=he[1]}),Re.convert=L,Re.placeholder=Re,k(V(Re),function(he){k(e.realToAlias[he]||[],function(_e){Re[_e]=Re[he]})}),Re}return L_=c,L_}var B_,iD;function f4(){if(iD)return B_;iD=1;var e=HL(),t=e&&new e;return B_=t,B_}var U_,sD;function d4(){if(sD)return U_;sD=1;var e=el(),t=f4(),r=t?function(n,i){return t.set(n,i),n}:e;return U_=r,U_}var V_,aD;function hh(){if(aD)return V_;aD=1;var e=Xp(),t=xn();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=e(n.prototype),a=n.apply(s,i);return t(a)?a:s}}return V_=r,V_}var z_,oD;function aQ(){if(oD)return z_;oD=1;var e=hh(),t=wn(),r=1;function n(i,s,a){var o=s&r,u=e(i);function c(){var l=this&&this!==t&&this instanceof c?u:i;return l.apply(o?a:this,arguments)}return c}return z_=n,z_}var W_,uD;function p4(){if(uD)return W_;uD=1;var e=Math.max;function t(r,n,i,s){for(var a=-1,o=r.length,u=i.length,c=-1,l=n.length,f=e(o-u,0),h=Array(l+f),p=!s;++c<l;)h[c]=n[c];for(;++a<u;)(p||a<o)&&(h[i[a]]=r[a]);for(;f--;)h[c++]=r[a++];return h}return W_=t,W_}var J_,cD;function h4(){if(cD)return J_;cD=1;var e=Math.max;function t(r,n,i,s){for(var a=-1,o=r.length,u=-1,c=i.length,l=-1,f=n.length,h=e(o-c,0),p=Array(h+f),g=!s;++a<h;)p[a]=r[a];for(var y=a;++l<f;)p[y+l]=n[l];for(;++u<c;)(g||a<o)&&(p[y+i[u]]=r[a++]);return p}return J_=t,J_}var K_,lD;function oQ(){if(lD)return K_;lD=1;function e(t,r){for(var n=t.length,i=0;n--;)t[n]===r&&++i;return i}return K_=e,K_}var H_,fD;function JO(){if(fD)return H_;fD=1;function e(){}return H_=e,H_}var G_,dD;function KO(){if(dD)return G_;dD=1;var e=Xp(),t=JO(),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=e(t.prototype),n.prototype.constructor=n,G_=n,G_}var Y_,pD;function uQ(){if(pD)return Y_;pD=1;function e(){}return Y_=e,Y_}var X_,hD;function m4(){if(hD)return X_;hD=1;var e=f4(),t=uQ(),r=e?function(n){return e.get(n)}:t;return X_=r,X_}var Z_,mD;function cQ(){if(mD)return Z_;mD=1;var e={};return Z_=e,Z_}var Q_,gD;function lQ(){if(gD)return Q_;gD=1;var e=cQ(),t=Object.prototype,r=t.hasOwnProperty;function n(i){for(var s=i.name+"",a=e[s],o=r.call(e,s)?a.length:0;o--;){var u=a[o],c=u.func;if(c==null||c==i)return u.name}return s}return Q_=n,Q_}var eE,yD;function g4(){if(yD)return eE;yD=1;var e=Xp(),t=JO();function r(n,i){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=void 0}return r.prototype=e(t.prototype),r.prototype.constructor=r,eE=r,eE}var tE,vD;function fQ(){if(vD)return tE;vD=1;var e=KO(),t=g4(),r=Gc();function n(i){if(i instanceof e)return i.clone();var s=new t(i.__wrapped__,i.__chain__);return s.__actions__=r(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}return tE=n,tE}var rE,bD;function dQ(){if(bD)return rE;bD=1;var e=KO(),t=g4(),r=JO(),n=Lr(),i=An(),s=fQ(),a=Object.prototype,o=a.hasOwnProperty;function u(c){if(i(c)&&!n(c)&&!(c instanceof e)){if(c instanceof t)return c;if(o.call(c,"__wrapped__"))return s(c)}return new t(c)}return u.prototype=r.prototype,u.prototype.constructor=u,rE=u,rE}var nE,_D;function pQ(){if(_D)return nE;_D=1;var e=KO(),t=m4(),r=lQ(),n=dQ();function i(s){var a=r(s),o=n[a];if(typeof o!="function"||!(a in e.prototype))return!1;if(s===o)return!0;var u=t(o);return!!u&&s===u[0]}return nE=i,nE}var iE,ED;function y4(){if(ED)return iE;ED=1;var e=d4(),t=DL(),r=t(e);return iE=r,iE}var sE,SD;function hQ(){if(SD)return sE;SD=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;function r(n){var i=n.match(e);return i?i[1].split(t):[]}return sE=r,sE}var aE,wD;function mQ(){if(wD)return aE;wD=1;var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function t(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(e,`{
85
+ /* [wrapped with `+n+`] */
86
+ `)}return aE=t,aE}var oE,xD;function gQ(){if(xD)return oE;xD=1;function e(t){return t!==t}return oE=e,oE}var uE,AD;function yQ(){if(AD)return uE;AD=1;function e(t,r,n){for(var i=n-1,s=t.length;++i<s;)if(t[i]===r)return i;return-1}return uE=e,uE}var cE,OD;function vQ(){if(OD)return cE;OD=1;var e=eB(),t=gQ(),r=yQ();function n(i,s,a){return s===s?r(i,s,a):e(i,t,a)}return cE=n,cE}var lE,CD;function bQ(){if(CD)return lE;CD=1;var e=vQ();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return lE=t,lE}var fE,RD;function _Q(){if(RD)return fE;RD=1;var e=XA(),t=bQ(),r=1,n=2,i=8,s=16,a=32,o=64,u=128,c=256,l=512,f=[["ary",u],["bind",r],["bindKey",n],["curry",i],["curryRight",s],["flip",l],["partial",a],["partialRight",o],["rearg",c]];function h(p,g){return e(f,function(y){var v="_."+y[0];g&y[1]&&!t(p,v)&&p.push(v)}),p.sort()}return fE=h,fE}var dE,TD;function v4(){if(TD)return dE;TD=1;var e=hQ(),t=mQ(),r=UA(),n=_Q();function i(s,a,o){var u=a+"";return r(s,t(u,n(e(u),o)))}return dE=i,dE}var pE,ID;function b4(){if(ID)return pE;ID=1;var e=pQ(),t=y4(),r=v4(),n=4,i=8,s=32,a=64;function o(u,c,l,f,h,p,g,y,v,E){var b=c&i,S=b?g:void 0,x=b?void 0:g,_=b?p:void 0,A=b?void 0:p;c|=b?s:a,c&=~(b?a:s),c&n||(c&=-4);var C=[u,c,h,_,S,A,x,y,v,E],T=l.apply(void 0,C);return e(u)&&t(T,C),T.placeholder=f,r(T,u,c)}return pE=o,pE}var hE,jD;function _4(){if(jD)return hE;jD=1;function e(t){var r=t;return r.placeholder}return hE=e,hE}var mE,kD;function EQ(){if(kD)return mE;kD=1;var e=Gc(),t=Zc(),r=Math.min;function n(i,s){for(var a=i.length,o=r(s.length,a),u=e(i);o--;){var c=s[o];i[o]=t(c,a)?u[c]:void 0}return i}return mE=n,mE}var gE,PD;function HO(){if(PD)return gE;PD=1;var e="__lodash_placeholder__";function t(r,n){for(var i=-1,s=r.length,a=0,o=[];++i<s;){var u=r[i];(u===n||u===e)&&(r[i]=e,o[a++]=i)}return o}return gE=t,gE}var yE,ND;function E4(){if(ND)return yE;ND=1;var e=p4(),t=h4(),r=oQ(),n=hh(),i=b4(),s=_4(),a=EQ(),o=HO(),u=wn(),c=1,l=2,f=8,h=16,p=128,g=512;function y(v,E,b,S,x,_,A,C,T,O){var M=E&p,k=E&c,D=E&l,P=E&(f|h),H=E&g,X=D?void 0:n(v);function V(){for(var G=arguments.length,Q=Array(G),Z=G;Z--;)Q[Z]=arguments[Z];if(P)var B=s(V),J=r(Q,B);if(S&&(Q=e(Q,S,x,P)),_&&(Q=t(Q,_,A,P)),G-=J,P&&G<O){var ee=o(Q,B);return i(v,E,y,V.placeholder,b,Q,ee,C,T,O-G)}var ne=k?b:this,ae=D?ne[v]:v;return G=Q.length,C?Q=a(Q,C):H&&G>1&&Q.reverse(),M&&T<G&&(Q.length=T),this&&this!==u&&this instanceof V&&(ae=X||n(ae)),ae.apply(ne,Q)}return V}return yE=y,yE}var vE,MD;function SQ(){if(MD)return vE;MD=1;var e=BA(),t=hh(),r=E4(),n=b4(),i=_4(),s=HO(),a=wn();function o(u,c,l){var f=t(u);function h(){for(var p=arguments.length,g=Array(p),y=p,v=i(h);y--;)g[y]=arguments[y];var E=p<3&&g[0]!==v&&g[p-1]!==v?[]:s(g,v);if(p-=E.length,p<l)return n(u,c,r,h.placeholder,void 0,g,E,void 0,void 0,l-p);var b=this&&this!==a&&this instanceof h?f:u;return e(b,this,g)}return h}return vE=o,vE}var bE,DD;function wQ(){if(DD)return bE;DD=1;var e=BA(),t=hh(),r=wn(),n=1;function i(s,a,o,u){var c=a&n,l=t(s);function f(){for(var h=-1,p=arguments.length,g=-1,y=u.length,v=Array(y+p),E=this&&this!==r&&this instanceof f?l:s;++g<y;)v[g]=u[g];for(;p--;)v[g++]=arguments[++h];return e(E,c?o:this,v)}return f}return bE=i,bE}var _E,qD;function xQ(){if(qD)return _E;qD=1;var e=p4(),t=h4(),r=HO(),n="__lodash_placeholder__",i=1,s=2,a=4,o=8,u=128,c=256,l=Math.min;function f(h,p){var g=h[1],y=p[1],v=g|y,E=v<(i|s|u),b=y==u&&g==o||y==u&&g==c&&h[7].length<=p[8]||y==(u|c)&&p[7].length<=p[8]&&g==o;if(!(E||b))return h;y&i&&(h[2]=p[2],v|=g&i?0:a);var S=p[3];if(S){var x=h[3];h[3]=x?e(x,S,p[4]):S,h[4]=x?r(h[3],n):p[4]}return S=p[5],S&&(x=h[5],h[5]=x?t(x,S,p[6]):S,h[6]=x?r(h[5],n):p[6]),S=p[7],S&&(h[7]=S),y&u&&(h[8]=h[8]==null?p[8]:l(h[8],p[8])),h[9]==null&&(h[9]=p[9]),h[0]=p[0],h[1]=v,h}return _E=f,_E}var EE,$D;function GO(){if($D)return EE;$D=1;var e=d4(),t=aQ(),r=SQ(),n=E4(),i=wQ(),s=m4(),a=xQ(),o=y4(),u=v4(),c=YA(),l="Expected a function",f=1,h=2,p=8,g=16,y=32,v=64,E=Math.max;function b(S,x,_,A,C,T,O,M){var k=x&h;if(!k&&typeof S!="function")throw new TypeError(l);var D=A?A.length:0;if(D||(x&=-97,A=C=void 0),O=O===void 0?O:E(c(O),0),M=M===void 0?M:c(M),D-=C?C.length:0,x&v){var P=A,H=C;A=C=void 0}var X=k?void 0:s(S),V=[S,x,_,A,C,P,H,T,O,M];if(X&&a(V,X),S=V[0],x=V[1],_=V[2],A=V[3],C=V[4],M=V[9]=V[9]===void 0?k?0:S.length:E(V[9]-D,0),!M&&x&(p|g)&&(x&=-25),!x||x==f)var G=t(S,x,_);else x==p||x==g?G=r(S,x,M):(x==y||x==(f|y))&&!C.length?G=i(S,x,_,A):G=n.apply(void 0,V);var Q=X?e:o;return u(Q(G,V),S,x)}return EE=b,EE}var SE,FD;function AQ(){if(FD)return SE;FD=1;var e=GO(),t=128;function r(n,i,s){return i=s?void 0:i,i=n&&i==null?n.length:i,e(n,t,void 0,void 0,void 0,void 0,i)}return SE=r,SE}var wE,LD;function OQ(){if(LD)return wE;LD=1;var e=ZA(),t=4;function r(n){return e(n,t)}return wE=r,wE}var xE,BD;function CQ(){if(BD)return xE;BD=1;var e=GO(),t=8;function r(n,i,s){i=s?void 0:i;var a=e(n,t,void 0,void 0,void 0,void 0,void 0,i);return a.placeholder=r.placeholder,a}return r.placeholder={},xE=r,xE}var AE,UD;function RQ(){if(UD)return AE;UD=1;var e=us(),t=An(),r=Qp(),n="[object DOMException]",i="[object Error]";function s(a){if(!t(a))return!1;var o=e(a);return o==i||o==n||typeof a.message=="string"&&typeof a.name=="string"&&!r(a)}return AE=s,AE}var OE,VD;function TQ(){if(VD)return OE;VD=1;var e=hu(),t=An(),r="[object WeakMap]";function n(i){return t(i)&&e(i)==r}return OE=n,OE}var CE,zD;function IQ(){if(zD)return CE;zD=1;var e=ZA(),t=nl(),r=1;function n(i){return t(typeof i=="function"?i:e(i,r))}return CE=n,CE}var RE,WD;function jQ(){if(WD)return RE;WD=1;var e=GO(),t=uB(),r=256,n=t(function(i,s){return e(i,r,void 0,void 0,void 0,s)});return RE=n,RE}var TE,JD;function kQ(){if(JD)return TE;JD=1;var e=VA(),t=Gc(),r=Lr(),n=tl(),i=XL(),s=to(),a=ks();function o(u){return r(u)?e(u,s):n(u)?[u]:t(i(a(u)))}return TE=o,TE}var IE,KD;function PQ(){return KD||(KD=1,IE={ary:AQ(),assign:sB(),clone:OQ(),curry:CQ(),forEach:XA(),isArray:Lr(),isError:RQ(),isFunction:Hc(),isWeakMap:TQ(),iteratee:IQ(),keys:JA(),rearg:jQ(),toInteger:YA(),toPath:kQ()}),IE}var jE,HD;function NQ(){if(HD)return jE;HD=1;var e=sQ(),t=PQ();function r(n,i,s){return e(t,n,i,s)}return jE=r,jE}var kE,GD;function S4(){if(GD)return kE;GD=1;var e=NQ(),t=e("set",c4());return t.placeholder=l4(),kE=t,kE}var PE,YD;function MQ(){return YD||(YD=1,PE=S4()),PE}var DQ=MQ();const qQ=Ue.getDefaultExportFromCjs(DQ);/*!
87
+ * https://github.com/Starcounter-Jack/JSON-Patch
88
+ * (c) 2017-2022 Joachim Wester
89
+ * MIT licensed
90
+ */var $Q=function(){var e=function(t,r){return e=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])},e(t,r)};return function(t,r){e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),FQ=Object.prototype.hasOwnProperty;function kw(e,t){return FQ.call(e,t)}function Pw(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var i in e)kw(e,i)&&n.push(i);return n}function Kn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Nw(e){for(var t=0,r=e.length,n;t<r;){if(n=e.charCodeAt(t),n>=48&&n<=57){t++;continue}return!1}return!0}function Na(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function w4(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Mw(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Mw(e[t]))return!0}else if(typeof e=="object"){for(var n=Pw(e),i=n.length,s=0;s<i;s++)if(Mw(e[n[s]]))return!0}}return!1}function XD(e,t){var r=[e];for(var n in t){var i=typeof t[n]=="object"?JSON.stringify(t[n],null,2):t[n];typeof i<"u"&&r.push(n+": "+i)}return r.join(`
91
+ `)}var x4=function(e){$Q(t,e);function t(r,n,i,s,a){var o=this.constructor,u=e.call(this,XD(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=XD(r,{name:n,index:i,operation:s,tree:a}),u}return t}(Error),gr=x4,LQ=Kn,Lo={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=jc(r,this.path);n&&(n=Kn(n));var i=Ua(r,{op:"remove",path:this.from}).removed;return Ua(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=jc(r,this.from);return Ua(r,{op:"add",path:this.path,value:Kn(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:kc(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},BQ={add:function(e,t,r){return Nw(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){var n=e.splice(t,1);return{newDocument:r,removed:n[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:Lo.move,copy:Lo.copy,test:Lo.test,_get:Lo._get};function jc(e,t){if(t=="")return e;var r={op:"_get",path:t};return Ua(e,r),r.value}function Ua(e,t,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(t,0,e,t.path):Md(t,0)),t.path===""){var a={newDocument:e};if(t.op==="add")return a.newDocument=t.value,a;if(t.op==="replace")return a.newDocument=t.value,a.removed=e,a;if(t.op==="move"||t.op==="copy")return a.newDocument=jc(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=kc(e,t.value),a.test===!1)throw new gr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a.newDocument=e,a}else{if(t.op==="remove")return a.removed=e,a.newDocument=null,a;if(t.op==="_get")return t.value=e,a;if(r)throw new gr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,t,e);return a}}else{n||(e=Kn(e));var o=t.path||"",u=o.split("/"),c=e,l=1,f=u.length,h=void 0,p=void 0,g=void 0;for(typeof r=="function"?g=r:g=Md;;){if(p=u[l],p&&p.indexOf("~")!=-1&&(p=w4(p)),i&&(p=="__proto__"||p=="prototype"&&l>0&&u[l-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&&(c[p]===void 0?h=u.slice(0,l).join("/"):l==f-1&&(h=t.path),h!==void 0&&g(t,0,e,h)),l++,Array.isArray(c)){if(p==="-")p=c.length;else{if(r&&!Nw(p))throw new gr("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,t,e);Nw(p)&&(p=~~p)}if(l>=f){if(r&&t.op==="add"&&p>c.length)throw new gr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s,t,e);var a=BQ[t.op].call(t,c,p,e);if(a.test===!1)throw new gr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}}else if(l>=f){var a=Lo[t.op].call(t,c,p,e);if(a.test===!1)throw new gr("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}if(c=c[p],r&&l<f&&(!c||typeof c!="object"))throw new gr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,t,e)}}}function aa(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new gr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Kn(e));for(var s=new Array(t.length),a=0,o=t.length;a<o;a++)s[a]=Ua(e,t[a],r,!0,i,a),e=s[a].newDocument;return s.newDocument=e,s}function UQ(e,t,r){var n=Ua(e,t);if(n.test===!1)throw new gr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function Md(e,t,r,n){if(typeof e!="object"||e===null||Array.isArray(e))throw new gr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(Lo[e.op]){if(typeof e.path!="string")throw new gr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new gr('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new gr("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new gr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if((e.op==="add"||e.op==="replace"||e.op==="test")&&Mw(e.value))throw new gr("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r){if(e.op=="add"){var i=e.path.split("/").length,s=n.split("/").length;if(i!==s+1&&i!==s)throw new gr("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==n)throw new gr("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if(e.op==="move"||e.op==="copy"){var a={op:"_get",path:e.from,value:void 0},o=A4([a],r);if(o&&o.name==="OPERATION_PATH_UNRESOLVABLE")throw new gr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new gr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function A4(e,t,r){try{if(!Array.isArray(e))throw new gr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)aa(Kn(t),Kn(e),r||!0);else{r=r||Md;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(i){if(i instanceof gr)return i;throw i}}function kc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){var r=Array.isArray(e),n=Array.isArray(t),i,s,a;if(r&&n){if(s=e.length,s!=t.length)return!1;for(i=s;i--!==0;)if(!kc(e[i],t[i]))return!1;return!0}if(r!=n)return!1;var o=Object.keys(e);if(s=o.length,s!==Object.keys(t).length)return!1;for(i=s;i--!==0;)if(!t.hasOwnProperty(o[i]))return!1;for(i=s;i--!==0;)if(a=o[i],!kc(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}const VQ=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:gr,_areEquals:kc,applyOperation:Ua,applyPatch:aa,applyReducer:UQ,deepClone:LQ,getValueByPointer:jc,validate:A4,validator:Md},Symbol.toStringTag,{value:"Module"}));/*!
92
+ * https://github.com/Starcounter-Jack/JSON-Patch
93
+ * (c) 2017-2021 Joachim Wester
94
+ * MIT license
95
+ */var YO=new WeakMap,zQ=function(){function e(t){this.observers=new Map,this.obj=t}return e}(),WQ=function(){function e(t,r){this.callback=t,this.observer=r}return e}();function JQ(e){return YO.get(e)}function KQ(e,t){return e.observers.get(t)}function HQ(e,t){e.observers.delete(t.callback)}function GQ(e,t){t.unobserve()}function YQ(e,t){var r=[],n,i=JQ(e);if(!i)i=new zQ(e),YO.set(e,i);else{var s=KQ(i,t);n=s&&s.observer}if(n)return n;if(n={},i.value=Kn(e),t){n.callback=t,n.next=null;var a=function(){Dw(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=e,n.unobserve=function(){Dw(n),clearTimeout(n.next),HQ(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(t,new WQ(t,n)),n}function Dw(e,t){t===void 0&&(t=!1);var r=YO.get(e.object);XO(r.value,e.object,e.patches,"",t),e.patches.length&&aa(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function XO(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var s=Pw(t),a=Pw(e),o=!1,u=a.length-1;u>=0;u--){var c=a[u],l=e[c];if(kw(t,c)&&!(t[c]===void 0&&l!==void 0&&Array.isArray(t)===!1)){var f=t[c];typeof l=="object"&&l!=null&&typeof f=="object"&&f!=null&&Array.isArray(l)===Array.isArray(f)?XO(l,f,r,n+"/"+Na(c),i):l!==f&&(i&&r.push({op:"test",path:n+"/"+Na(c),value:Kn(l)}),r.push({op:"replace",path:n+"/"+Na(c),value:Kn(f)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+Na(c),value:Kn(l)}),r.push({op:"remove",path:n+"/"+Na(c)}),o=!0):(i&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}))}if(!(!o&&s.length==a.length))for(var u=0;u<s.length;u++){var c=s[u];!kw(e,c)&&t[c]!==void 0&&r.push({op:"add",path:n+"/"+Na(c),value:Kn(t[c])})}}}function XQ(e,t,r){r===void 0&&(r=!1);var n=[];return XO(e,t,n,"",r),n}const ZQ=Object.freeze(Object.defineProperty({__proto__:null,compare:XQ,generate:Dw,observe:YQ,unobserve:GQ},Symbol.toStringTag,{value:"Module"}));Object.assign({},VQ,ZQ,{JsonPatchError:x4,deepClone:Kn,escapePathComponent:Na,unescapePathComponent:w4});var NE,ZD;function QQ(){if(ZD)return NE;ZD=1;var e=function(b){return t(b)&&!r(b)};function t(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,S){return E.concat(b).map(function(x){return o(x,S)})}function c(E,b){if(!b.customMerge)return y;var S=b.customMerge(E);return typeof S=="function"?S:y}function l(E){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(E).filter(function(b){return Object.propertyIsEnumerable.call(E,b)}):[]}function f(E){return Object.keys(E).concat(l(E))}function h(E,b){try{return b in E}catch{return!1}}function p(E,b){return h(E,b)&&!(Object.hasOwnProperty.call(E,b)&&Object.propertyIsEnumerable.call(E,b))}function g(E,b,S){var x={};return S.isMergeableObject(E)&&f(E).forEach(function(_){x[_]=o(E[_],S)}),f(b).forEach(function(_){p(E,_)||(h(E,_)&&S.isMergeableObject(b[_])?x[_]=c(_,S)(E[_],b[_],S):x[_]=o(b[_],S))}),x}function y(E,b,S){S=S||{},S.arrayMerge=S.arrayMerge||u,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=o;var x=Array.isArray(b),_=Array.isArray(E),A=x===_;return A?x?S.arrayMerge(E,b,S):g(E,b,S):o(b,S)}y.all=function(b,S){if(!Array.isArray(b))throw new Error("first argument should be an array");return b.reduce(function(x,_){return y(x,_,S)},{})};var v=y;return NE=v,NE}var eee=QQ();const tee=Ue.getDefaultExportFromCjs(eee),qt={add:nee,replace:md,remove:iee,merge:see,mergeDeep:aee,context:oee,getIn:fee,applyPatch:ree,parentPathMatch:lee,flatten:xl,fullyNormalizeArray:dee,normalizeArray:C4,isPromise:pee,forEachNew:uee,forEachNewPrimitive:cee,isJsonPatch:I4,isContextPatch:gee,isPatch:mh,isMutation:j4,isAdditiveMutation:Dd,isGenerator:mee,isFunction:T4,isObject:Va,isError:hee};function ree(e,t,r){if(r=r||{},t={...t,path:t.path&&QD(t.path)},t.op==="merge"){const n=ME(e,t.path);Object.assign(n,t.value),aa(e,[md(t.path,n)])}else if(t.op==="mergeDeep"){const n=ME(e,t.path),i=tee(n,t.value);e=aa(e,[md(t.path,i)]).newDocument}else if(t.op==="add"&&t.path===""&&Va(t.value)){const n=Object.keys(t.value).reduce((i,s)=>(i.push({op:"add",path:`/${QD(s)}`,value:t.value[s]}),i),[]);aa(e,n)}else if(t.op==="replace"&&t.path===""){let{value:n}=t;r.allowMetaPatches&&t.meta&&Dd(t)&&(Array.isArray(t.value)||Va(t.value))&&(n={...n,...t.meta}),e=n}else if(aa(e,[t]),r.allowMetaPatches&&t.meta&&Dd(t)&&(Array.isArray(t.value)||Va(t.value))){const i={...ME(e,t.path),...t.meta};aa(e,[md(t.path,i)])}return e}function QD(e){return Array.isArray(e)?e.length<1?"":`/${e.map(t=>(t+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function nee(e,t){return{op:"add",path:e,value:t}}function md(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function iee(e){return{op:"remove",path:e}}function see(e,t){return{type:"mutation",op:"merge",path:e,value:t}}function aee(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}}function oee(e,t){return{type:"context",path:e,value:t}}function uee(e,t){try{return O4(e,$w,t)}catch(r){return r}}function cee(e,t){try{return O4(e,qw,t)}catch(r){return r}}function O4(e,t,r){const n=e.filter(Dd).map(a=>t(a.value,r,a.path))||[],i=xl(n);return R4(i)}function qw(e,t,r){return r=r||[],Array.isArray(e)?e.map((n,i)=>qw(n,t,r.concat(i))):Va(e)?Object.keys(e).map(n=>qw(e[n],t,r.concat(n))):t(e,r[r.length-1],r)}function $w(e,t,r){r=r||[];let n=[];if(r.length>0){const i=t(e,r[r.length-1],r);i&&(n=n.concat(i))}if(Array.isArray(e)){const i=e.map((s,a)=>$w(s,t,r.concat(a)));i&&(n=n.concat(i))}else if(Va(e)){const i=Object.keys(e).map(s=>$w(e[s],t,r.concat(s)));i&&(n=n.concat(i))}return n=xl(n),n}function lee(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0}function fee(e,t){return t.reduce((r,n)=>typeof n<"u"&&r?r[n]:r,e)}function dee(e){return R4(xl(C4(e)))}function C4(e){return Array.isArray(e)?e:[e]}function xl(e){return[].concat(...e.map(t=>Array.isArray(t)?xl(t):t))}function R4(e){return e.filter(t=>typeof t<"u")}function Va(e){return e&&typeof e=="object"}function pee(e){return Va(e)&&T4(e.then)}function T4(e){return e&&typeof e=="function"}function hee(e){return e instanceof Error}function I4(e){if(mh(e)){const{op:t}=e;return t==="add"||t==="remove"||t==="replace"}return!1}function mee(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function j4(e){return I4(e)||mh(e)&&e.type==="mutation"}function Dd(e){return j4(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function gee(e){return mh(e)&&e.type==="context"}function mh(e){return e&&typeof e=="object"}function ME(e,t){try{return jc(e,t)}catch(r){return console.error(r),{}}}var eq={},tq={},rq={},DE,nq;function ZO(){if(nq)return DE;nq=1;var e=G6(),t=Y6(),r=e("keys");return DE=function(n){return r[n]||(r[n]=t(n))},DE}var qE,iq;function yee(){if(iq)return qE;iq=1;var e=yi();return qE=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),qE}var $E,sq;function QO(){if(sq)return $E;sq=1;var e=qi(),t=Yn(),r=UO(),n=ZO(),i=yee(),s=n("IE_PROTO"),a=Object,o=a.prototype;return $E=i?a.getPrototypeOf:function(u){var c=r(u);if(e(c,s))return c[s];var l=c.constructor;return t(l)&&c instanceof l?l.prototype:c instanceof a?o:null},$E}var FE,aq;function vee(){if(aq)return FE;aq=1;var e=Mn(),t=Sl();return FE=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch{}},FE}var LE,oq;function bee(){if(oq)return LE;oq=1;var e=Di();return LE=function(t){return e(t)||t===null},LE}var BE,uq;function _ee(){if(uq)return BE;uq=1;var e=bee(),t=String,r=TypeError;return BE=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")},BE}var UE,cq;function gh(){if(cq)return UE;cq=1;var e=vee(),t=Di(),r=dh(),n=_ee();return UE=Object.setPrototypeOf||("__proto__"in{}?function(){var i=!1,s={},a;try{a=e(Object.prototype,"__proto__","set"),a(s,[]),i=s instanceof Array}catch{}return function(u,c){return r(u),n(c),t(u)&&(i?a(u,c):u.__proto__=c),u}}():void 0),UE}var VE={},lq;function Eee(){if(lq)return VE;lq=1;var e=i4(),t=WO(),r=t.concat("length","prototype");return VE.f=Object.getOwnPropertyNames||function(i){return e(i,r)},VE}var zE,fq;function See(){if(fq)return zE;fq=1;var e=_l(),t=Mn(),r=Eee(),n=a4(),i=uo(),s=t([].concat);return zE=e("Reflect","ownKeys")||function(o){var u=r.f(i(o)),c=n.f;return c?s(u,c(o)):u},zE}var WE,dq;function k4(){if(dq)return WE;dq=1;var e=qi(),t=See(),r=e4(),n=Eu();return WE=function(i,s,a){for(var o=t(s),u=n.f,c=r.f,l=0;l<o.length;l++){var f=o[l];!e(i,f)&&!(a&&e(a,f))&&u(i,f,c(s,f))}},WE}var JE={},pq;function wee(){if(pq)return JE;pq=1;var e=ls(),t=r4(),r=Eu(),n=uo(),i=vl(),s=s4();return JE.f=e&&!t?Object.defineProperties:function(o,u){n(o);for(var c=i(u),l=s(u),f=l.length,h=0,p;f>h;)r.f(o,p=l[h++],c[p]);return o},JE}var KE,hq;function xee(){if(hq)return KE;hq=1;var e=_l();return KE=e("document","documentElement"),KE}var HE,mq;function e2(){if(mq)return HE;mq=1;var e=uo(),t=wee(),r=WO(),n=zO(),i=xee(),s=Z6(),a=ZO(),o=">",u="<",c="prototype",l="script",f=a("IE_PROTO"),h=function(){},p=function(b){return u+l+o+b+u+"/"+l+o},g=function(b){b.write(p("")),b.close();var S=b.parentWindow.Object;return b=null,S},y=function(){var b=s("iframe"),S="java"+l+":",x;return b.style.display="none",i.appendChild(b),b.src=String(S),x=b.contentWindow.document,x.open(),x.write(p("document.F=Object")),x.close(),x.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[c][r[b]];return E()};return n[f]=!0,HE=Object.create||function(S,x){var _;return S!==null?(h[c]=e(S),_=new h,h[c]=null,_[f]=S):_=E(),x===void 0?_:t.f(_,x)},HE}var GE,gq;function P4(){if(gq)return GE;gq=1;var e=Di(),t=Ns();return GE=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},GE}var YE,yq;function Aee(){if(yq)return YE;yq=1;var e=Mn(),t=Error,r=e("".replace),n=function(a){return String(new t(a).stack)}("zxcasd"),i=/\n\s*at [^:]*:[^\n]*/,s=i.test(n);return YE=function(a,o){if(s&&typeof a=="string"&&!t.prepareStackTrace)for(;o--;)a=r(a,i,"");return a},YE}var XE,vq;function Oee(){if(vq)return XE;vq=1;var e=yi(),t=yl();return XE=!e(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",t(1,7)),r.stack!==7):!0}),XE}var ZE,bq;function N4(){if(bq)return ZE;bq=1;var e=Ns(),t=Aee(),r=Oee(),n=Error.captureStackTrace;return ZE=function(i,s,a,o){r&&(n?n(i,s):e(i,"stack",t(a,o)))},ZE}var QE,_q;function wu(){return _q||(_q=1,QE={}),QE}var eS,Eq;function Cee(){if(Eq)return eS;Eq=1;var e=Ps(),t=wu(),r=e("iterator"),n=Array.prototype;return eS=function(i){return i!==void 0&&(t.Array===i||n[r]===i)},eS}var tS,Sq;function t2(){if(Sq)return tS;Sq=1;var e=Ps(),t=e("toStringTag"),r={};return r[t]="z",tS=String(r)==="[object z]",tS}var rS,wq;function r2(){if(wq)return rS;wq=1;var e=t2(),t=Yn(),r=$O(),n=Ps(),i=n("toStringTag"),s=Object,a=r(function(){return arguments}())==="Arguments",o=function(u,c){try{return u[c]}catch{}};return rS=e?r:function(u){var c,l,f;return u===void 0?"Undefined":u===null?"Null":typeof(l=o(c=s(u),i))=="string"?l:a?r(c):(f=r(c))==="Object"&&t(c.callee)?"Arguments":f},rS}var nS,xq;function M4(){if(xq)return nS;xq=1;var e=r2(),t=BO(),r=FO(),n=wu(),i=Ps(),s=i("iterator");return nS=function(a){if(!r(a))return t(a,s)||t(a,"@@iterator")||n[e(a)]},nS}var iS,Aq;function Ree(){if(Aq)return iS;Aq=1;var e=va(),t=Sl(),r=uo(),n=LO(),i=M4(),s=TypeError;return iS=function(a,o){var u=arguments.length<2?i(a):o;if(t(u))return r(e(u,a));throw new s(n(a)+" is not iterable")},iS}var sS,Oq;function Tee(){if(Oq)return sS;Oq=1;var e=va(),t=uo(),r=BO();return sS=function(n,i,s){var a,o;t(n);try{if(a=r(n,"return"),!a){if(i==="throw")throw s;return s}a=e(a,n)}catch(u){o=!0,a=u}if(i==="throw")throw s;if(o)throw a;return t(a),s},sS}var aS,Cq;function Iee(){if(Cq)return aS;Cq=1;var e=t4(),t=va(),r=uo(),n=LO(),i=Cee(),s=n4(),a=El(),o=Ree(),u=M4(),c=Tee(),l=TypeError,f=function(p,g){this.stopped=p,this.result=g},h=f.prototype;return aS=function(p,g,y){var v=y&&y.that,E=!!(y&&y.AS_ENTRIES),b=!!(y&&y.IS_RECORD),S=!!(y&&y.IS_ITERATOR),x=!!(y&&y.INTERRUPTED),_=e(g,v),A,C,T,O,M,k,D,P=function(X){return A&&c(A,"normal",X),new f(!0,X)},H=function(X){return E?(r(X),x?_(X[0],X[1],P):_(X[0],X[1])):x?_(X,P):_(X)};if(b)A=p.iterator;else if(S)A=p;else{if(C=u(p),!C)throw new l(n(p)+" is not iterable");if(i(C)){for(T=0,O=s(p);O>T;T++)if(M=H(p[T]),M&&a(h,M))return M;return new f(!1)}A=o(p,C)}for(k=b?p.next:A.next;!(D=t(k,A)).done;){try{M=H(D.value)}catch(X){c(A,"throw",X)}if(typeof M=="object"&&M&&a(h,M))return M}return new f(!1)},aS}var oS,Rq;function n2(){if(Rq)return oS;Rq=1;var e=r2(),t=String;return oS=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(r)},oS}var uS,Tq;function D4(){if(Tq)return uS;Tq=1;var e=n2();return uS=function(t,r){return t===void 0?arguments.length<2?"":r:e(t)},uS}var Iq;function jee(){if(Iq)return rq;Iq=1;var e=Su(),t=El(),r=QO(),n=gh(),i=k4(),s=e2(),a=Ns(),o=yl(),u=P4(),c=N4(),l=Iee(),f=D4(),h=Ps(),p=h("toStringTag"),g=Error,y=[].push,v=function(S,x){var _=t(E,this),A;n?A=n(new g,_?r(this):E):(A=_?this:s(E),a(A,p,"Error")),x!==void 0&&a(A,"message",f(x)),c(A,v,A.stack,1),arguments.length>2&&u(A,arguments[2]);var C=[];return l(S,y,{that:C}),a(A,"errors",C),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 e({global:!0,constructor:!0,arity:2},{AggregateError:v}),rq}var jq;function q4(){return jq||(jq=1,jee()),tq}var kq;function $4(){return kq||(kq=1,q4()),eq}var Pq={},cS,Nq;function kee(){if(Nq)return cS;Nq=1;var e=Eu().f;return cS=function(t,r,n){n in t||e(t,n,{configurable:!0,get:function(){return r[n]},set:function(i){r[n]=i}})},cS}var lS,Mq;function Pee(){if(Mq)return lS;Mq=1;var e=Yn(),t=Di(),r=gh();return lS=function(n,i,s){var a,o;return r&&e(a=i.constructor)&&a!==s&&t(o=a.prototype)&&o!==s.prototype&&r(n,o),n},lS}var fS,Dq;function F4(){if(Dq)return fS;Dq=1;var e=_l(),t=qi(),r=Ns(),n=El(),i=gh(),s=k4(),a=kee(),o=Pee(),u=D4(),c=P4(),l=N4(),f=ls(),h=wl();return fS=function(p,g,y,v){var E="stackTraceLimit",b=v?2:1,S=p.split("."),x=S[S.length-1],_=e.apply(null,S);if(_){var A=_.prototype;if(!h&&t(A,"cause")&&delete A.cause,!y)return _;var C=e("Error"),T=g(function(O,M){var k=u(v?M:O,void 0),D=v?new _(O):new _;return k!==void 0&&r(D,"message",k),l(D,T,D.stack,2),this&&n(A,this)&&o(D,this,T),arguments.length>b&&c(D,arguments[b]),D});if(T.prototype=A,x!=="Error"?i?i(T,C):s(T,C,{name:!0}):f&&E in _&&(a(T,_,E),a(T,_,"prepareStackTrace")),s(T,_),!h)try{A.name!==x&&r(A,"name",x),A.constructor=T}catch{}return T}},fS}var qq;function Nee(){if(qq)return Pq;qq=1;var e=Su(),t=Nn(),r=qO(),n=F4(),i="WebAssembly",s=t[i],a=new Error("e",{cause:7}).cause!==7,o=function(c,l){var f={};f[c]=n(c,l,a),e({global:!0,constructor:!0,arity:1,forced:a},f)},u=function(c,l){if(s&&s[c]){var f={};f[c]=n(i+"."+c,l,a),e({target:i,stat:!0,constructor:!0,arity:1,forced:a},f)}};return o("Error",function(c){return function(f){return r(c,this,arguments)}}),o("EvalError",function(c){return function(f){return r(c,this,arguments)}}),o("RangeError",function(c){return function(f){return r(c,this,arguments)}}),o("ReferenceError",function(c){return function(f){return r(c,this,arguments)}}),o("SyntaxError",function(c){return function(f){return r(c,this,arguments)}}),o("TypeError",function(c){return function(f){return r(c,this,arguments)}}),o("URIError",function(c){return function(f){return r(c,this,arguments)}}),u("CompileError",function(c){return function(f){return r(c,this,arguments)}}),u("LinkError",function(c){return function(f){return r(c,this,arguments)}}),u("RuntimeError",function(c){return function(f){return r(c,this,arguments)}}),Pq}var $q={},Fq;function Mee(){if(Fq)return $q;Fq=1;var e=Su(),t=_l(),r=qO(),n=yi(),i=F4(),s="AggregateError",a=t(s),o=!n(function(){return a([1]).errors[0]!==1})&&n(function(){return a([1],s,{cause:7}).cause!==7});return e({global:!0,constructor:!0,arity:2,forced:o},{AggregateError:i(s,function(u){return function(l,f){return r(u,this,arguments)}},o,!0)}),$q}var dS,Lq;function Dee(){return Lq||(Lq=1,dS=function(){}),dS}var pS,Bq;function qee(){if(Bq)return pS;Bq=1;var e=Nn(),t=Yn(),r=e.WeakMap;return pS=t(r)&&/native code/.test(String(r)),pS}var hS,Uq;function L4(){if(Uq)return hS;Uq=1;var e=qee(),t=Nn(),r=Di(),n=Ns(),i=qi(),s=H6(),a=ZO(),o=zO(),u="Object already initialized",c=t.TypeError,l=t.WeakMap,f,h,p,g=function(b){return p(b)?h(b):f(b,{})},y=function(b){return function(S){var x;if(!r(S)||(x=h(S)).type!==b)throw new c("Incompatible receiver, "+b+" required");return x}};if(e||s.state){var v=s.state||(s.state=new l);v.get=v.get,v.has=v.has,v.set=v.set,f=function(b,S){if(v.has(b))throw new c(u);return S.facade=b,v.set(b,S),S},h=function(b){return v.get(b)||{}},p=function(b){return v.has(b)}}else{var E=a("state");o[E]=!0,f=function(b,S){if(i(b,E))throw new c(u);return S.facade=b,n(b,E,S),S},h=function(b){return i(b,E)?b[E]:{}},p=function(b){return i(b,E)}}return hS={set:f,get:h,has:p,enforce:g,getterFor:y},hS}var mS,Vq;function $ee(){if(Vq)return mS;Vq=1;var e=ls(),t=qi(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,i=t(r,"name"),s=i&&(function(){}).name==="something",a=i&&(!e||e&&n(r,"name").configurable);return mS={EXISTS:i,PROPER:s,CONFIGURABLE:a},mS}var gS,zq;function B4(){if(zq)return gS;zq=1;var e=Ns();return gS=function(t,r,n,i){return i&&i.enumerable?t[r]=n:e(t,r,n),t},gS}var yS,Wq;function U4(){if(Wq)return yS;Wq=1;var e=yi(),t=Yn(),r=Di(),n=e2(),i=QO(),s=B4(),a=Ps(),o=wl(),u=a("iterator"),c=!1,l,f,h;[].keys&&(h=[].keys(),"next"in h?(f=i(i(h)),f!==Object.prototype&&(l=f)):c=!0);var p=!r(l)||e(function(){var g={};return l[u].call(g)!==g});return p?l={}:o&&(l=n(l)),t(l[u])||s(l,u,function(){return this}),yS={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:c},yS}var vS,Jq;function Fee(){if(Jq)return vS;Jq=1;var e=t2(),t=r2();return vS=e?{}.toString:function(){return"[object "+t(this)+"]"},vS}var bS,Kq;function i2(){if(Kq)return bS;Kq=1;var e=t2(),t=Eu().f,r=Ns(),n=qi(),i=Fee(),s=Ps(),a=s("toStringTag");return bS=function(o,u,c,l){var f=c?o:o&&o.prototype;f&&(n(f,a)||t(f,a,{configurable:!0,value:u}),l&&!e&&r(f,"toString",i))},bS}var _S,Hq;function Lee(){if(Hq)return _S;Hq=1;var e=U4().IteratorPrototype,t=e2(),r=yl(),n=i2(),i=wu(),s=function(){return this};return _S=function(a,o,u,c){var l=o+" Iterator";return a.prototype=t(e,{next:r(+!c,u)}),n(a,l,!1,!0),i[l]=s,a},_S}var ES,Gq;function V4(){if(Gq)return ES;Gq=1;var e=Su(),t=va(),r=wl(),n=$ee(),i=Yn(),s=Lee(),a=QO(),o=gh(),u=i2(),c=Ns(),l=B4(),f=Ps(),h=wu(),p=U4(),g=n.PROPER,y=n.CONFIGURABLE,v=p.IteratorPrototype,E=p.BUGGY_SAFARI_ITERATORS,b=f("iterator"),S="keys",x="values",_="entries",A=function(){return this};return ES=function(C,T,O,M,k,D,P){s(O,T,M);var H=function(ae){if(ae===k&&Z)return Z;if(!E&&ae&&ae in G)return G[ae];switch(ae){case S:return function(){return new O(this,ae)};case x:return function(){return new O(this,ae)};case _:return function(){return new O(this,ae)}}return function(){return new O(this)}},X=T+" Iterator",V=!1,G=C.prototype,Q=G[b]||G["@@iterator"]||k&&G[k],Z=!E&&Q||H(k),B=T==="Array"&&G.entries||Q,J,ee,ne;if(B&&(J=a(B.call(new C)),J!==Object.prototype&&J.next&&(!r&&a(J)!==v&&(o?o(J,v):i(J[b])||l(J,b,A)),u(J,X,!0,!0),r&&(h[X]=A))),g&&k===x&&Q&&Q.name!==x&&(!r&&y?c(G,"name",x):(V=!0,Z=function(){return t(Q,this)})),k)if(ee={values:H(x),keys:D?Z:H(S),entries:H(_)},P)for(ne in ee)(E||V||!(ne in G))&&l(G,ne,ee[ne]);else e({target:T,proto:!0,forced:E||V},ee);return(!r||P)&&G[b]!==Z&&l(G,b,Z,{name:k}),h[T]=Z,ee},ES}var SS,Yq;function z4(){return Yq||(Yq=1,SS=function(e,t){return{value:e,done:t}}),SS}var wS,Xq;function W4(){if(Xq)return wS;Xq=1;var e=vl(),t=Dee(),r=wu(),n=L4(),i=Eu().f,s=V4(),a=z4(),o=wl(),u=ls(),c="Array Iterator",l=n.set,f=n.getterFor(c);wS=s(Array,"Array",function(p,g){l(this,{type:c,target:e(p),index:0,kind:g})},function(){var p=f(this),g=p.target,y=p.index++;if(!g||y>=g.length)return p.target=null,a(void 0,!0);switch(p.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(t("keys"),t("values"),t("entries"),!o&&u&&h.name!=="values")try{i(h,"name",{value:"values"})}catch{}return wS}var Zq={},xS,Qq;function Bee(){if(Qq)return xS;Qq=1;var e=Mn(),t=VO(),r=n2(),n=dh(),i=e("".charAt),s=e("".charCodeAt),a=e("".slice),o=function(u){return function(c,l){var f=r(n(c)),h=t(l),p=f.length,g,y;return h<0||h>=p?u?"":void 0:(g=s(f,h),g<55296||g>56319||h+1===p||(y=s(f,h+1))<56320||y>57343?u?i(f,h):g:u?a(f,h,h+2):(g-55296<<10)+(y-56320)+65536)}};return xS={codeAt:o(!1),charAt:o(!0)},xS}var e$;function Uee(){if(e$)return Zq;e$=1;var e=Bee().charAt,t=n2(),r=L4(),n=V4(),i=z4(),s="String Iterator",a=r.set,o=r.getterFor(s);return n(String,"String",function(u){a(this,{type:s,string:t(u),index:0})},function(){var c=o(this),l=c.string,f=c.index,h;return f>=l.length?i(void 0,!0):(h=e(l,f),c.index+=h.length,i(h,!1))}),Zq}var AS,t$;function Vee(){if(t$)return AS;t$=1,Nee(),q4(),Mee(),W4(),Uee();var e=bl();return AS=e.AggregateError,AS}var r$={},OS,n$;function zee(){return n$||(n$=1,OS={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}),OS}var i$;function Wee(){if(i$)return r$;i$=1,W4();var e=zee(),t=Nn(),r=i2(),n=wu();for(var i in e)r(t[i],i),n[i]=n.Array;return r$}var CS,s$;function Jee(){if(s$)return CS;s$=1,$4();var e=Vee();return Wee(),CS=e,CS}var RS,a$;function Kee(){if(a$)return RS;a$=1;var e=Jee();return RS=e,RS}var TS,o$;function Hee(){if(o$)return TS;o$=1,$4();var e=Kee();return TS=e,TS}var IS,u$;function Gee(){return u$||(u$=1,IS=Hee()),IS}var jS,c$;function Yee(){return c$||(c$=1,jS=Gee()),jS}var Xee=Yee();const Zee=Ue.getDefaultExportFromCjs(Xee);class Qee extends Zee{constructor(t,r,n){if(super(t,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}
96
+ CAUSE: ${i.stack}`)}}}class dr extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(Qee,t)}constructor(t,r){if(super(t,r),this.name=this.constructor.name,typeof t=="string"&&(this.message=t),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).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}
97
+ CAUSE: ${n.stack}`)}}}class Pi extends dr{constructor(t,r){if(super(t,r),r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class yt extends dr{}class kS extends yt{}var s2=function(){return!1},Ms=function(){return!0};function rr(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function $t(e){return function t(r){return arguments.length===0||rr(r)?t:e.apply(this,arguments)}}function st(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return rr(r)?t:$t(function(i){return e(r,i)});default:return rr(r)&&rr(n)?t:rr(r)?$t(function(i){return e(i,n)}):rr(n)?$t(function(i){return e(r,i)}):e(r,n)}}}function ete(e,t){e=e||[],t=t||[];var r,n=e.length,i=t.length,s=[];for(r=0;r<n;)s[s.length]=e[r],r+=1;for(r=0;r<i;)s[s.length]=t[r],r+=1;return s}function yh(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,n){return t.apply(this,arguments)};case 3:return function(r,n,i){return t.apply(this,arguments)};case 4:return function(r,n,i,s){return t.apply(this,arguments)};case 5:return function(r,n,i,s,a){return t.apply(this,arguments)};case 6:return function(r,n,i,s,a,o){return t.apply(this,arguments)};case 7:return function(r,n,i,s,a,o,u){return t.apply(this,arguments)};case 8:return function(r,n,i,s,a,o,u,c){return t.apply(this,arguments)};case 9:return function(r,n,i,s,a,o,u,c,l){return t.apply(this,arguments)};case 10:return function(r,n,i,s,a,o,u,c,l,f){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function a2(e,t,r){return function(){for(var n=[],i=0,s=e,a=0,o=!1;a<t.length||i<arguments.length;){var u;a<t.length&&(!rr(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,rr(u)?o=!0:s-=1,a+=1}return!o&&s<=0?r.apply(this,n):yh(Math.max(0,s),a2(e,n,r))}}var Qt=st(function(t,r){return t===1?$t(r):yh(t,a2(t,[],r))});function nn(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return rr(r)?t:st(function(s,a){return e(r,s,a)});case 2:return rr(r)&&rr(n)?t:rr(r)?st(function(s,a){return e(s,n,a)}):rr(n)?st(function(s,a){return e(r,s,a)}):$t(function(s){return e(r,n,s)});default:return rr(r)&&rr(n)&&rr(i)?t:rr(r)&&rr(n)?st(function(s,a){return e(s,a,i)}):rr(r)&&rr(i)?st(function(s,a){return e(s,n,a)}):rr(n)&&rr(i)?st(function(s,a){return e(r,s,a)}):rr(r)?$t(function(s){return e(s,n,i)}):rr(n)?$t(function(s){return e(r,s,i)}):rr(i)?$t(function(s){return e(r,n,s)}):e(r,n,i)}}}const co=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function tte(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function ba(e,t,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!co(n)){for(var i=0;i<e.length;){if(typeof n[e[i]]=="function")return n[e[i]].apply(n,Array.prototype.slice.call(arguments,0,-1));i+=1}if(tte(n)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(n)}}return r.apply(this,arguments)}}function vh(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Gn={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var rte=function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=Gn.init,e.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)||(this.all=!1,t=vh(this.xf["@@transducer/step"](t,!1))),t},e}();function nte(e){return function(t){return new rte(e,t)}}var o2=st(ba(["all"],nte,function(t,r){for(var n=0;n<r.length;){if(!t(r[n]))return!1;n+=1}return!0}));function l$(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}function qd(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}function ite(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function ci(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function ste(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const mc=typeof Object.is=="function"?Object.is:ste;var f$=Object.prototype.toString,J4=function(){return f$.call(arguments)==="[object Arguments]"?function(t){return f$.call(t)==="[object Arguments]"}:function(t){return ci("callee",t)}}(),ate=!{toString:null}.propertyIsEnumerable("toString"),d$=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],p$=function(){return arguments.propertyIsEnumerable("length")}(),ote=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},Ka=$t(typeof Object.keys=="function"&&!p$?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var r,n,i=[],s=p$&&J4(t);for(r in t)ci(r,t)&&(!s||r!=="length")&&(i[i.length]=r);if(ate)for(n=d$.length-1;n>=0;)r=d$[n],ci(r,t)&&!ote(i,r)&&(i[i.length]=r),n-=1;return i}),fi=$t(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function h$(e,t,r,n){var i=l$(e),s=l$(t);function a(o,u){return u2(o,u,r.slice(),n.slice())}return!qd(function(o,u){return!qd(a,u,o)},s,i)}function u2(e,t,r,n){if(mc(e,t))return!0;var i=fi(e);if(i!==fi(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&ite(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&mc(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!mc(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(!(e.source===t.source&&e.global===t.global&&e.ignoreCase===t.ignoreCase&&e.multiline===t.multiline&&e.sticky===t.sticky&&e.unicode===t.unicode))return!1;break}for(var s=r.length-1;s>=0;){if(r[s]===e)return n[s]===t;s-=1}switch(i){case"Map":return e.size!==t.size?!1:h$(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:h$(e.values(),t.values(),r.concat([e]),n.concat([t]));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=Ka(e);if(a.length!==Ka(t).length)return!1;var o=r.concat([e]),u=n.concat([t]);for(s=a.length-1;s>=0;){var c=a[s];if(!(ci(c,t)&&u2(t[c],e[c],o,u)))return!1;s-=1}return!0}var Ds=st(function(t,r){return u2(t,r,[],[])});function ute(e,t,r){var n,i;if(typeof e.indexOf=="function")switch(typeof t){case"number":if(t===0){for(n=1/t;r<e.length;){if(i=e[r],i===0&&1/i===n)return r;r+=1}return-1}else if(t!==t){for(;r<e.length;){if(i=e[r],typeof i=="number"&&i!==i)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(t===null)return e.indexOf(t,r)}for(;r<e.length;){if(Ds(e[r],t))return r;r+=1}return-1}function $d(e,t){return ute(t,e,0)>=0}function gc(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}function PS(e){var t=e.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'"'+t.replace(/"/g,'\\"')+'"'}var zu=function(t){return(t<10?"0":"")+t},cte=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+zu(t.getUTCMonth()+1)+"-"+zu(t.getUTCDate())+"T"+zu(t.getUTCHours())+":"+zu(t.getUTCMinutes())+":"+zu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function K4(e){return function(){return!e.apply(this,arguments)}}function Al(e,t,r){for(var n=0,i=r.length;n<i;)t=e(t,r[n]),n+=1;return t}function lte(e,t){for(var r=0,n=t.length,i=[];r<n;)e(t[r])&&(i[i.length]=t[r]),r+=1;return i}function Fd(e){return Object.prototype.toString.call(e)==="[object Object]"}var fte=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Gn.init,e.prototype["@@transducer/result"]=Gn.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e}();function dte(e){return function(t){return new fte(e,t)}}var pte=st(ba(["fantasy-land/filter","filter"],dte,function(e,t){return Fd(t)?Al(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},Ka(t)):lte(e,t)})),hte=st(function(t,r){return pte(K4(t),r)});function H4(e,t){var r=function(a){var o=t.concat([e]);return $d(a,o)?"<Circular>":H4(a,o)},n=function(s,a){return gc(function(o){return PS(o)+": "+r(s[o])},a.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+gc(r,e).join(", ")+"))";case"[object Array]":return"["+gc(r,e).concat(n(e,hte(function(s){return/^\d+$/.test(s)},Ka(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):PS(cte(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+r(e.valueOf())+")":1/e===-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return typeof e=="object"?"new String("+r(e.valueOf())+")":PS(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var i=e.toString();if(i!=="[object Object]")return i}return"{"+n(e,Ka(e)).join(", ")+"}"}}var ru=$t(function(t){return H4(t,[])}),c2=st(function(t,r){if(t===r)return r;function n(u,c){if(u>c!=c>u)return c>u?c:u}var i=n(t,r);if(i!==void 0)return i;var s=n(typeof t,typeof r);if(s!==void 0)return s===typeof t?t:r;var a=ru(t),o=n(a,ru(r));return o!==void 0&&o===a?t:r}),mte=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Gn.init,e.prototype["@@transducer/result"]=Gn.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e}(),gte=function(t){return function(r){return new mte(t,r)}},Ol=st(ba(["fantasy-land/map","map"],gte,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return Qt(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return Al(function(n,i){return n[i]=t(r[i]),n},{},Ka(r));default:return gc(t,r)}}));const xu=Number.isInteger||function(t){return t<<0===t};function l2(e){return Object.prototype.toString.call(e)==="[object String]"}function bh(e,t){var r=e<0?t.length+e:e;return l2(t)?t.charAt(r):t[r]}var Cl=st(function(t,r){if(r!=null)return xu(t)?bh(t,r):r[t]}),f2=st(function(t,r){return Ol(Cl(t),r)}),yte=$t(function(t){return co(t)?!0:!t||typeof t!="object"||l2(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),m$=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function G4(e,t,r){return function(i,s,a){if(yte(a))return e(i,s,a);if(a==null)return s;if(typeof a["fantasy-land/reduce"]=="function")return t(i,s,a,"fantasy-land/reduce");if(a[m$]!=null)return r(i,s,a[m$]());if(typeof a.next=="function")return r(i,s,a);if(typeof a.reduce=="function")return t(i,s,a,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function vte(e,t,r){for(var n=0,i=r.length;n<i;){if(t=e["@@transducer/step"](t,r[n]),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var _h=st(function(t,r){return yh(t.length,function(){return t.apply(r,arguments)})});function bte(e,t,r){for(var n=r.next();!n.done;){if(t=e["@@transducer/step"](t,n.value),t&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function _te(e,t,r,n){return e["@@transducer/result"](r[n](_h(e["@@transducer/step"],e),t))}var d2=G4(vte,_te,bte),Ete=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function Y4(e){return new Ete(e)}var lo=nn(function(e,t,r){return d2(typeof e=="function"?Y4(e):e,t,r)}),Ste=$t(function(t){return Qt(lo(c2,0,f2("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})}),rt=$t(function(t){return function(){return t}}),wte=st(function(t,r){return t&&r}),xte=$t(function(t){return Qt(lo(c2,0,f2("length",t)),function(){for(var r=0,n=t.length;r<n;){if(t[r].apply(this,arguments))return!0;r+=1}return!1})});function Ate(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Ote(e,t,r,n){return r[n](e,t)}var Cte=G4(Al,Ote,Ate),Rte=st(function(t,r){return typeof r["fantasy-land/ap"]=="function"?r["fantasy-land/ap"](t):typeof t.ap=="function"?t.ap(r):typeof t=="function"?function(n){return t(n)(r(n))}:Cte(function(n,i){return ete(n,Ol(i,r))},[],t)}),Tte=st(function(t,r){return t.apply(this,r)}),p2=$t(function(t){return Qt(t.length,t)});function Ite(e,t,r){if(xu(e)&&co(r)){var n=[].concat(r);return n[e]=t,n}var i={};for(var s in r)i[s]=r[s];return i[e]=t,i}var Ld=$t(function(t){return t==null}),Pe=nn(function e(t,r,n){if(t.length===0)return r;var i=t[0];if(t.length>1){var s=!Ld(n)&&ci(i,n)&&typeof n[i]=="object"?n[i]:xu(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,s)}return Ite(i,r,n)}),jte=nn(function(t,r,n){return Pe([t],r,n)});function h2(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var kte=st(function(t,r){var n=Qt(t,r);return Qt(t,function(){return Al(Rte,Ol(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),m2=$t(function(t){return kte(t.length,t)}),fo=st(function(t,r){return h2(t)?function(){return t.apply(this,arguments)&&r.apply(this,arguments)}:m2(wte)(t,r)});function X4(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function Z4(e,t,r){if(r||(r=new Nte),Pte(e))return e;var n=function(s){var a=r.get(e);if(a)return a;r.set(e,s);for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(s[o]=e[o]);return s};switch(fi(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return X4(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}function Pte(e){var t=typeof e;return e==null||t!="object"&&t!="function"}var Nte=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(t,r){var n=this.hash(t),i=this.map[n];i||(this.map[n]=i=[]),i.push([t,r]),this.length+=1},e.prototype.hash=function(t){var r=[];for(var n in t)r.push(Object.prototype.toString.call(t[n]));return r.join()},e.prototype.get=function(t){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]===t)return i[1]}return}var s=this.hash(t),a=this.map[s];if(a)for(var n=0;n<a.length;n+=1){var i=a[n];if(i[0]===t)return i[1]}},e}(),Mte=$t(function(t){return function(r,n){return t(r,n)?-1:t(n,r)?1:0}}),Dte=$t(function(t){return!t}),Rl=m2(Dte);function qte(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function g2(e,t){return function(){var r=arguments.length;if(r===0)return t();var n=arguments[r-1];return co(n)||typeof n[e]!="function"?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var Tl=nn(g2("slice",function(t,r,n){return Array.prototype.slice.call(n,t,r)})),Q4=$t(g2("tail",Tl(1,1/0)));function wr(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return yh(arguments[0].length,lo(qte,arguments[0],Q4(arguments)))}var $te=$t(function(e){return bh(0,e)});function Fte(e){return e}var y2=$t(Fte),Lte=st(function(t,r){return Qt(lo(c2,0,f2("length",r)),function(){var n=arguments,i=this;return t.apply(i,gc(function(s){return s.apply(i,n)},r))})}),Bte=function(){function e(t,r,n,i){this.valueFn=t,this.valueAcc=r,this.keyFn=n,this.xf=i,this.inputs={}}return e.prototype["@@transducer/init"]=Gn.init,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(ci(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]),t["@@transducer/reduced"])){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var n=this.keyFn(r);return this.inputs[n]=this.inputs[n]||[n,Z4(this.valueAcc)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),t},e}();function Ute(e,t,r){return function(n){return new Bte(e,t,r,n)}}var Vte=a2(4,[],ba([],Ute,function(t,r,n,i){var s=Y4(function(a,o){var u=n(o),c=t(ci(u,a)?a[u]:Z4(r),o);return c&&c["@@transducer/reduced"]?vh(a):(a[u]=c,a)});return d2(s,{},i)})),nu=st(function(t,r){return r==null||r!==r?t:r}),zte=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!g$(t,!0,this)},e.prototype.has=function(t){return g$(t,!1,this)},e}();function g$(e,t,r){var n=typeof e,i,s;switch(n){case"string":case"number":return e===0&&1/e===-1/0?r._items["-0"]?!0:(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?e in r._items[n]?!0:(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var a=e?1:0;return r._items[n][a]?!0:(t&&(r._items[n][a]=!0),!1)}else return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(i=r._nativeSet.size,r._nativeSet.add(e),s=r._nativeSet.size,s===i):r._nativeSet.has(e):n in r._items?$d(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return r._items[n]?!0:(t&&(r._items[n]=!0),!1);case"object":if(e===null)return r._items.null?!0:(t&&(r._items.null=!0),!1);default:return n=Object.prototype.toString.call(e),n in r._items?$d(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}var Wte=st(function(t,r){for(var n=[],i=0,s=t.length,a=r.length,o=new zte,u=0;u<a;u+=1)o.add(r[u]);for(;i<s;)o.add(t[i])&&(n[n.length]=t[i]),i+=1;return n}),Jte=nn(function(t,r,n){var i=Array.prototype.slice.call(n,0);return i.splice(t,r),i});function Kte(e,t){if(t==null)return t;if(xu(e)&&co(t))return Jte(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}function Hte(e,t){if(xu(e)&&co(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}var Hn=st(function e(t,r){if(r==null)return r;switch(t.length){case 0:return r;case 1:return Kte(t[0],r);default:var n=t[0],i=Array.prototype.slice.call(t,1);return r[n]==null?Hte(n,r):jte(n,e(i,r[n]),r)}}),Gte=function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=Gn.init,e.prototype["@@transducer/result"]=Gn.result,e.prototype["@@transducer/step"]=function(t,r){this.i+=1;var n=this.n===0?t:this.xf["@@transducer/step"](t,r);return this.n>=0&&this.i>=this.n?vh(n):n},e}();function Yte(e){return function(t){return new Gte(e,t)}}var Xte=st(ba(["take"],Yte,function(t,r){return Tl(0,t<0?1/0:t,r)}));function Zte(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Tl(0,r+1,t)}var Qte=function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=Gn.init,e.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.retain(t,r):this.flush(t,r)},e.prototype.flush=function(t,r){return t=d2(this.xf,t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,r)},e.prototype.retain=function(t,r){return this.retained.push(r),t},e}();function ere(e){return function(t){return new Qte(e,t)}}var tre=st(ba([],ere,Zte)),Eh=$t(function(e){return bh(-1,e)}),rre=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Gn.init,e.prototype["@@transducer/result"]=Gn.result,e.prototype["@@transducer/step"]=function(t,r){if(this.f){if(this.f(r))return t;this.f=null}return this.xf["@@transducer/step"](t,r)},e}();function nre(e){return function(t){return new rre(e,t)}}var ire=st(ba(["dropWhile"],nre,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return Tl(n,1/0,r)})),sre=st(function(t,r){return t||r}),are=st(function(t,r){return h2(t)?function(){return t.apply(this,arguments)||r.apply(this,arguments)}:m2(sre)(t,r)});function ore(e){var t=Object.prototype.toString.call(e);return t==="[object Uint8ClampedArray]"||t==="[object Int8Array]"||t==="[object Uint8Array]"||t==="[object Int16Array]"||t==="[object Uint16Array]"||t==="[object Int32Array]"||t==="[object Uint32Array]"||t==="[object Float32Array]"||t==="[object Float64Array]"||t==="[object BigInt64Array]"||t==="[object BigUint64Array]"}var ure=$t(function(t){return t!=null&&typeof t["fantasy-land/empty"]=="function"?t["fantasy-land/empty"]():t!=null&&t.constructor!=null&&typeof t.constructor["fantasy-land/empty"]=="function"?t.constructor["fantasy-land/empty"]():t!=null&&typeof t.empty=="function"?t.empty():t!=null&&t.constructor!=null&&typeof t.constructor.empty=="function"?t.constructor.empty():co(t)?[]:l2(t)?"":Fd(t)?{}:J4(t)?function(){return arguments}():ore(t)?t.constructor.from(""):void 0}),cre=$t(function(t){return Qt(t.length,function(r,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=r,t.apply(this,i)})}),lre=st(g2("groupBy",Vte(function(e,t){return e.push(t),e},[]))),fre=st(function(t,r){if(t.length===0||Ld(r))return!1;for(var n=r,i=0;i<t.length;)if(!Ld(n)&&ci(t[i],n))n=n[t[i]],i+=1;else return!1;return!0}),yc=st(function(t,r){return fre([t],r)}),qs=function(e,t){switch(arguments.length){case 0:return qs;case 1:return function(){return function r(n){switch(arguments.length){case 0:return r;default:return mc(e,n)}}}();default:return mc(e,t)}},v2=nn(function(t,r,n){return Qt(Math.max(t.length,r.length,n.length),function(){return t.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})}),dre=st($d),pre=Tl(0,-1),b2=st(function(t,r){return Qt(t+1,function(){var n=arguments[t];if(n!=null&&h2(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(ru(n)+' does not have a method named "'+r+'"')})}),Il=$t(function(t){return t!=null&&Ds(t,ure(t))}),e8=$t(function(t){return!Il(t)}),t8=b2(1,"join");function y$(e){return Object.prototype.toString.call(e)==="[object Number]"}var hre=st(function(t,r){return function(n){return function(i){return Ol(function(s){return r(s,i)},n(t(i)))}}});function _2(e,t){for(var r=t,n=0;n<e.length;n+=1){if(r==null)return;var i=e[n];xu(i)?r=bh(i,r):r=r[i]}return r}var mre=st(function(t,r){return Al(function(n,i){return n[i]=t(r[i],i,r),n},{},Ka(r))}),gre=nn(function(t,r,n){var i={},s;r=r||{},n=n||{};for(s in r)ci(s,r)&&(i[s]=ci(s,n)?t(s,r[s],n[s]):r[s]);for(s in n)ci(s,n)&&!ci(s,i)&&(i[s]=n[s]);return i}),yre=nn(function e(t,r,n){return gre(function(i,s,a){return Fd(s)&&Fd(a)?e(t,s,a):t(i,s,a)},r,n)}),Sh=st(function(t,r){return yre(function(n,i,s){return s},t,r)}),vre=st(function(t,r){return o2(K4(t),r)}),r8=function(e){return{value:e,map:function(t){return r8(t(e))}}},bre=nn(function(t,r,n){return t(function(i){return r8(r(i))})(n).value}),Fr=st(_2),n8=nn(function(t,r,n){return nu(t,_2(r,n))}),wh=nn(function(t,r,n){return t(_2(r,n))}),i8=st(function(t,r){for(var n={},i=0;i<t.length;)t[i]in r&&(n[t[i]]=r[t[i]]),i+=1;return n}),s8=nn(function(t,r,n){return Ds(t,Cl(r,n))}),Bd=nn(function(t,r,n){return nu(t,Cl(r,n))}),_re=nn(function(t,r,n){return t(Cl(r,n))}),Ere=st(function(t,r){if(!(y$(t)&&y$(r)))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(t<r?r-t:0),i=t<0?r+Math.abs(t):r-t,s=0;s<i;)n[s]=s+t,s+=1;return n}),Sre=$t(vh),iu=nn(function(t,r,n){return n.replace(t,r)}),wre=st(function(t,r){return Array.prototype.slice.call(r,0).sort(t)}),E2=b2(1,"split"),a8=st(function(e,t){return Ds(Xte(e.length,t),e)});function xre(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Are=st(function(t,r){if(!xre(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+ru(t));return X4(t).test(r)}),Ore=function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=Gn.init,e.prototype["@@transducer/result"]=Gn.result,e.prototype["@@transducer/step"]=function(t,r){return qd(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e}();function Cre(e){return function(t){return new Ore(e,t)}}var Rre=st(ba([],Cre,function(e,t){for(var r=0,n=t.length,i=[],s;r<n;)s=t[r],qd(e,s,i)||(i[i.length]=s),r+=1;return i})),Tre=nn(function(t,r,n){return t(n)?r(n):n}),xh=rt(void 0),_a=Ds(xh()),o8=Rl(_a),u8=Ds(null),c8=Rl(u8),Ire=Rl(Ld),jre=Qt(1,wr(fi,qs("GeneratorFunction"))),kre=Qt(1,wr(fi,qs("AsyncFunction"))),$s=xte([wr(fi,qs("Function")),jre,kre]),l8=Qt(1,$s(Array.isArray)?Array.isArray:wr(fi,qs("Array"))),Pre=fo(l8,Il),Nre=fo(l8,e8),po=Qt(1,wr(fi,qs("String"))),f8=Ds("");function Fw(e){"@babel/helpers - typeof";return Fw=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fw(e)}var d8=function(t){return Fw(t)==="object"},Mre=Qt(1,fo(c8,are(d8,$s))),Dre=Rl(Mre),Ah=Ste([po,Dre,e8]),qre=Rl($s),$re=Qt(1,fo(c8,d8)),Fre=wr(fi,qs("Object")),Lre=wr(ru,Ds(ru(Object))),Bre=wh(fo($s,Lre),["constructor"]),Ts=Qt(1,function(e){if(!$re(e)||!Fre(e))return!1;var t=Object.getPrototypeOf(e);return u8(t)?!0:Bre(t)}),Ure=Qt(1,wr(fi,qs("Number"))),Vre=fo(Ure,isFinite),zre=Qt(1,Vre),Wre=$s(Number.isFinite)?Qt(1,_h(Number.isFinite,Number)):zre,Jre=fo(Wre,Lte(Ds,[Math.floor,y2])),Kre=Qt(1,Jre),Hre=$s(Number.isInteger)?Qt(1,_h(Number.isInteger,Number)):Kre,Gre=Qt(1,wr(fi,qs("RegExp")));function Yre(e){return ene(e)||Qre(e)||Zre(e)||Xre()}function Xre(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
98
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Zre(e,t){if(e){if(typeof e=="string")return Lw(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Lw(e,t):void 0}}function Qre(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function ene(e){if(Array.isArray(e))return Lw(e)}function Lw(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tne=Mte(function(e,t){return e.length>t.length}),rne=wr(wre(tne),$te,Cl("length")),nne=p2(function(e,t,r){var n=r.apply(void 0,Yre(e));return Ire(n)?Sre(n):t}),ine=function(t){var r=rne(t);return Qt(r,function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return lo(nne(i),void 0,t)})},p8=v2(Nre,ine,xh),Oh=cre(dre),Pc=Qt(3,function(e,t,r){var n=Fr(e,r),i=Fr(pre(e),r);if(!qre(n)&&!Pre(e)){var s=_h(n,i);return Tte(s,t)}}),sne=Tre(po,iu(/[.*+?^${}()|[\]\\-]/g,"\\$&")),ane=function(t,r,n){if(n==null||t==null||r==null)throw TypeError("Input values must not be `null` or `undefined`")},v$=function(t,r){if(typeof t!="string"&&!(t instanceof String))throw TypeError("`".concat(r,"` must be a string"))},one=function(t){if(typeof t!="string"&&!(t instanceof String)&&!(t instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},une=function(t,r,n){ane(t,r,n),v$(n,"str"),v$(r,"replaceValue"),one(t);var i=new RegExp(Gre(t)?t:sne(t),"g");return iu(i,r,n)},cne=Qt(3,une),lne=b2(2,"replaceAll"),fne=$s(String.prototype.replaceAll)?lne:cne,dne=p2(function(e,t){return wr(E2(""),tre(Oh(e)),t8(""))(t)}),S2=p2(function(e,t){return wr(E2(""),ire(Oh(e)),t8(""))(t)}),NS={exports:{}},b$;function pne(){if(b$)return NS.exports;b$=1;var e=NS.exports={},t,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"?t=setTimeout:t=n}catch{t=n}try{typeof clearTimeout=="function"?r=clearTimeout:r=i}catch{r=i}})();function s(y){if(t===setTimeout)return setTimeout(y,0);if((t===n||!t)&&setTimeout)return t=setTimeout,setTimeout(y,0);try{return t(y,0)}catch{try{return t.call(null,y,0)}catch{return t.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,c,l=-1;function f(){!u||!c||(u=!1,c.length?o=c.concat(o):l=-1,o.length&&h())}function h(){if(!u){var y=s(f);u=!0;for(var v=o.length;v;){for(c=o,o=[];++l<v;)c&&c[l].run();l=-1,v=o.length}c=null,u=!1,a(y)}}e.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 p(y,v)),o.length===1&&!u&&s(h)};function p(y,v){this.fun=y,this.array=v}p.prototype.run=function(){this.fun.apply(null,this.array)},e.title="browser",e.browser=!0,e.env={},e.argv=[],e.version="",e.versions={};function g(){}return e.on=g,e.addListener=g,e.once=g,e.off=g,e.removeListener=g,e.removeAllListeners=g,e.emit=g,e.prependListener=g,e.prependOnceListener=g,e.listeners=function(y){return[]},e.binding=function(y){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(y){throw new Error("process.chdir is not supported")},e.umask=function(){return 0},NS.exports}var hne=pne();const Ud=Ue.getDefaultExportFromCjs(hne),w2=()=>wh(Are(/^win/),["platform"],Ud),x2=e=>{try{const t=new URL(e);return dne(":",t.protocol)}catch{return}};wr(x2,o8);const mne=e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""},h8=e=>{if(Ud.browser)return!1;const t=x2(e);return _a(t)||t==="file"||/^[a-zA-Z]$/.test(t)},A2=e=>{const t=x2(e);return t==="http"||t==="https"},m8=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Bd(!1,"keepFileProtocol",t),i=Bd(w2,"isWindows",t);let s=decodeURI(e);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=fne("/","\\",s),s.substring(1,3)===":\\"&&(s=s[0].toUpperCase()+s.substring(1))),s},gne=e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;w2()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let n=0;n<t.length;n+=2)r=r.replace(t[n],t[n+1]);return r},g8=e=>{const t=e.indexOf("#");return t!==-1?e.substring(t):"#"},Ut=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Bw=()=>{if(Ud.browser)return Ut(globalThis.location.href);const e=Ud.cwd(),t=Eh(e);return["/","\\"].includes(t)?e:e+(w2()?"\\":"/")},Kr=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if(r.protocol==="resolve:"){const{pathname:n,search:i,hash:s}=r;return n+i+s}return r.toString()},Ch=e=>{if(h8(e))return gne(m8(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Yi=e=>h8(e)?m8(e):decodeURI(e);let Nc=class{constructor({uri:t,mediaType:r="text/plain",data:n,parseResult:i}){z(this,"uri");z(this,"mediaType");z(this,"data");z(this,"parseResult");this.uri=t,this.mediaType=r,this.data=n,this.parseResult=i}get extension(){return po(this.uri)?mne(this.uri):""}toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(fi(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}};class su{constructor({refs:t=[],circular:r=!1}={}){z(this,"rootRef");z(this,"refs");z(this,"circular");this.refs=[],this.circular=r,t.forEach(this.add.bind(this))}get size(){return this.refs.length}add(t){return this.has(t)||(this.refs.push(t),this.rootRef=this.rootRef===void 0?t:this.rootRef,t.refSet=this),this}merge(t){for(const r of t.values())this.add(r);return this}has(t){const r=po(t)?t:t.uri;return o8(this.find(n=>n.uri===r))}find(t){return this.refs.find(t)}*values(){yield*this.refs}clean(){this.refs.forEach(t=>{t.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}}const y8={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:y2,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},yne=hre(Fr(["resolve","baseURI"]),Pe(["resolve","baseURI"])),vne=e=>f8(e)?Bw():e,v8=(e,t)=>{const r=Sh(e,t);return bre(yne,vne,r)};class bne extends dr{constructor(r,n){super(r,{cause:n.cause});z(this,"plugin");this.plugin=n.plugin}}const O2=async(e,t,r)=>{const n=await Promise.all(r.map(Pc([e],t)));return r.filter((i,s)=>n[s])},C2=async(e,t,r)=>{let n;for(const i of r)try{const s=await i[e].call(i,...t);return{plugin:i,result:s}}catch(s){n=new bne("Error while running plugin",{cause:s,plugin:i})}return Promise.reject(n)};class Uw extends dr{}class R2 extends dr{}class b8 extends R2{}class _8 extends b8{}const _ne=async(e,t)=>{const r=t.resolve.resolvers.map(i=>{const s=Object.create(i);return Object.assign(s,t.resolve.resolverOpts)}),n=await O2("canRead",[e,t],r);if(Il(n))throw new _8(e.uri);try{const{result:i}=await C2("read",[e],n);return i}catch(i){throw new R2(`Error while reading file "${e.uri}"`,{cause:i})}},Ene=async(e,t)=>{const r=t.parse.parsers.map(i=>{const s=Object.create(i);return Object.assign(s,t.parse.parserOpts)}),n=await O2("canParse",[e,t],r);if(Il(n))throw new _8(e.uri);try{const{plugin:i,result:s}=await C2("parse",[e,t],n);return!i.allowEmpty&&s.isEmpty?Promise.reject(new Uw(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(i){throw new Uw(`Error while parsing file "${e.uri}"`,{cause:i})}},Sne=async(e,t)=>{const r=new Nc({uri:Ch(Ut(e)),mediaType:t.parse.mediaType}),n=await _ne(r,t);return Ene(new Nc({...r,data:n}),t)};var Or={},MS,_$;function wne(){if(_$)return MS;_$=1;function e(t){return t===null}return MS=e,MS}var DS,E$;function xne(){if(E$)return DS;E$=1;var e=us(),t=An(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return DS=n,DS}var qS,S$;function Ane(){if(S$)return qS;S$=1;var e=us(),t=An(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return qS=n,qS}var $S,w$;function T2(){if(w$)return $S;w$=1;class e{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 $S=e,$S}var FS,x$;function One(){if(x$)return FS;x$=1;var e=KA();function t(r,n){return e(r,n)}return FS=t,FS}var LS,A$;function Rh(){if(A$)return LS;A$=1;class e{constructor(r,n){this.key=r,this.value=n}clone(){const r=new e;return this.key&&(r.key=this.key.clone()),this.value&&(r.value=this.value.clone()),r}}return LS=e,LS}var BS,O$;function Th(){if(O$)return BS;O$=1;var e="Expected a function";function t(r){if(typeof r!="function")throw new TypeError(e);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 BS=t,BS}var US,C$;function Ih(){if(C$)return US;C$=1;const e=Th();function t(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=t(i),new r(this.elements.filter(i,s))}reject(i,s){return i=t(i),new r(this.elements.filter(e(i),s))}find(i,s){return i=t(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]()}),US=r,US}var VS,R$;function Fs(){if(R$)return VS;R$=1;const e=One(),t=Rh(),r=Ih();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 t?{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=(l,f)=>(l.push(f),l),c=(l,f)=>{f.element===a&&l.push(f);const h=f.findRecursive(a);return h&&h.reduce(u,l),f.content instanceof t&&(f.content.key&&c(l,f.content.key),f.content.value&&c(l,f.content.value)),l};return this.content&&(this.content.element&&c(o,this.content),Array.isArray(this.content)&&this.content.reduce(c,o)),s.isEmpty||(o=o.filter(l=>{let f=l.parents.map(h=>h.element);for(const h in s){const p=s[h],g=f.indexOf(p);if(g!==-1)f=f.splice(0,g);else return!1}return!0})),o}set(s){return this.content=s,this}equals(s){return e(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 t)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 t){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 VS=n,VS}var zS,T$;function Cne(){if(T$)return zS;T$=1;const e=Fs();class t extends e{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 zS=t,zS}var WS,I$;function Rne(){if(I$)return WS;I$=1;const e=Fs();return WS=class extends e{constructor(r,n,i){super(r,n,i),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},WS}var JS,j$;function Tne(){if(j$)return JS;j$=1;const e=Fs();return JS=class extends e{constructor(r,n,i){super(r,n,i),this.element="number"}primitive(){return"number"}},JS}var KS,k$;function Ine(){if(k$)return KS;k$=1;const e=Fs();return KS=class extends e{constructor(r,n,i){super(r,n,i),this.element="boolean"}primitive(){return"boolean"}},KS}var HS,P$;function E8(){if(P$)return HS;P$=1;const e=Th(),t=Fs(),r=Ih();class n extends t{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 c=s.bind(a)(u);c&&o.push(c)}),o}filter(s,a){return new r(this.content.filter(s,a))}reject(s,a){return this.filter(e(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 c=o;c<this.length;c+=1){const l=this.content[c];this.primitive()==="object"?u=this.refract(s(u,l.value,l.key,l,this)):u=this.refract(s(u,l,c,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,c=o.results===void 0?[]:o.results;return this.forEach((l,f,h)=>{u&&l.findElements!==void 0&&l.findElements(s,{results:c,recursive:u}),s(l,f,h)&&c.push(l)}),c}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]()}),HS=n,HS}var GS,N$;function S8(){if(N$)return GS;N$=1;const e=Rh(),t=Fs();return GS=class extends t{constructor(n,i,s,a){super(new e,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)}},GS}var YS,M$;function w8(){if(M$)return YS;M$=1;const e=Th(),t=Ih();class r extends t{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(e(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 YS=r,YS}var XS,D$;function jne(){if(D$)return XS;D$=1;const e=Th(),t=xn(),r=E8(),n=S8(),i=w8();class s extends r{constructor(o,u,c){super(o||[],u,c),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(c=>c.key.toValue()===o?(u=c,!1):!0),u}getKey(o){const u=this.getMember(o);if(u)return u.key}set(o,u){if(t(o))return Object.keys(o).forEach(f=>{this.set(f,o[f])}),this;const c=o,l=this.getMember(c);return l?l.value=u:this.content.push(new n(c,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(c=>o.bind(u)(c.value,c.key,c))}compactMap(o,u){const c=[];return this.forEach((l,f,h)=>{const p=o.bind(u)(l,f,h);p&&c.push(p)}),c}filter(o,u){return new i(this.content).filter(o,u)}reject(o,u){return this.filter(e(o),u)}forEach(o,u){return this.content.forEach(c=>o.bind(u)(c.value,c.key,c))}}return XS=s,XS}var ZS,q$;function kne(){if(q$)return ZS;q$=1;const e=Fs();return ZS=class extends e{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)}},ZS}var QS,$$;function Pne(){if($$)return QS;$$=1;const e=Fs();return QS=class extends e{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)}},QS}var e1,F$;function x8(){if(F$)return e1;F$=1;const e=Fs(),t=Cne(),r=Rne(),n=Tne(),i=Ine(),s=E8(),a=S8(),o=jne(),u=kne(),c=Pne(),l=Ih(),f=w8(),h=Rh();function p(g){return g instanceof e?g:typeof g=="string"?new r(g):typeof g=="number"?new n(g):typeof g=="boolean"?new i(g):g===null?new t:Array.isArray(g)?new s(g.map(p)):typeof g=="object"?new o(g):g}return e.prototype.ObjectElement=o,e.prototype.RefElement=c,e.prototype.MemberElement=a,e.prototype.refract=p,l.prototype.refract=p,e1={Element:e,NullElement:t,StringElement:r,NumberElement:n,BooleanElement:i,ArrayElement:s,MemberElement:a,ObjectElement:o,LinkElement:u,RefElement:c,refract:p,ArraySlice:l,ObjectSlice:f,KeyValuePair:h},e1}var t1,L$;function Nne(){if(L$)return t1;L$=1;const e=wne(),t=u4(),r=xne(),n=Ane(),i=xn(),s=T2(),a=x8();class o{constructor(c){this.elementMap={},this.elementDetection=[],this.Element=a.Element,this.KeyValuePair=a.KeyValuePair,(!c||!c.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(c){return c.namespace&&c.namespace({base:this}),c.load&&c.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(e,a.NullElement,!1).detect(t,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(c,l){return this._elements=void 0,this.elementMap[c]=l,this}unregister(c){return this._elements=void 0,delete this.elementMap[c],this}detect(c,l,f){return(f===void 0?!0:f)?this.elementDetection.unshift([c,l]):this.elementDetection.push([c,l]),this}toElement(c){if(c instanceof this.Element)return c;let l;for(let f=0;f<this.elementDetection.length;f+=1){const h=this.elementDetection[f][0],p=this.elementDetection[f][1];if(h(c)){l=new p(c);break}}return l}getElementClass(c){const l=this.elementMap[c];return l===void 0?this.Element:l}fromRefract(c){return this.serialiser.deserialise(c)}toRefract(c){return this.serialiser.serialise(c)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach(c=>{const l=c[0].toUpperCase()+c.substr(1);this._elements[l]=this.elementMap[c]})),this._elements}get serialiser(){return new s(this)}}return s.prototype.Namespace=o,t1=o,t1}var r1,B$;function Mne(){if(B$)return r1;B$=1;const e=T2();return r1=class extends e{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(l=>{l.forEach(f=>{const h=new n(f);h.element=i.element,a.push(h)})});const c=a.shift();c?i.content=c.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]))})}},r1}var U$;function Dne(){if(U$)return Or;U$=1;const e=Nne(),t=x8();return Or.Namespace=e,Or.namespace=function(n){return new e(n)},Or.KeyValuePair=Rh(),Or.ArraySlice=t.ArraySlice,Or.ObjectSlice=t.ObjectSlice,Or.Element=t.Element,Or.StringElement=t.StringElement,Or.NumberElement=t.NumberElement,Or.BooleanElement=t.BooleanElement,Or.NullElement=t.NullElement,Or.ArrayElement=t.ArrayElement,Or.ObjectElement=t.ObjectElement,Or.MemberElement=t.MemberElement,Or.RefElement=t.RefElement,Or.LinkElement=t.LinkElement,Or.refract=t.refract,Or.JSONSerialiser=T2(),Or.JSON06Serialiser=Mne(),Or}var le=Dne();class Vd extends le.StringElement{constructor(t,r,n){super(t,r,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}class zd extends le.StringElement{constructor(t,r,n){super(t,r,n),this.element="comment"}}class Ni extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.element="parseResult"}get api(){return this.children.filter(t=>t.classes.contains("api")).first}get results(){return this.children.filter(t=>t.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(t=>t.element==="annotation")}get warnings(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("warning"))}get errors(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("error"))}get isEmpty(){return this.children.reject(t=>t.element==="annotation").isEmpty}replaceResult(t){const{result:r}=this;if(_a(r))return!1;const n=this.content.findIndex(i=>i===r);return n===-1?!1:(this.content[n]=t,!0)}}class Wd extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.element="sourceMap"}get positionStart(){return this.children.filter(t=>t.classes.contains("position")).get(0)}get positionEnd(){return this.children.filter(t=>t.classes.contains("position")).get(1)}set position(t){if(typeof t>"u")return;const r=new le.ArrayElement([t.start.row,t.start.column,t.start.char]),n=new le.ArrayElement([t.end.row,t.end.column,t.end.char]);r.classes.push("position"),n.classes.push("position"),this.push(r).push(n)}}const qne=(e,t)=>typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="function",$ne=e=>typeof e=="object"&&e!=null&&"_storedElement"in e&&typeof e._storedElement=="string"&&"_content"in e,Fne=(e,t)=>typeof t=="object"&&t!==null&&"primitive"in t?typeof t.primitive=="function"&&t.primitive()===e:!1,Lne=(e,t)=>typeof t=="object"&&t!==null&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof le.ArrayElement)&&t.classes.includes(e),ta=(e,t)=>typeof t=="object"&&t!==null&&"element"in t&&t.element===e,Me=e=>e({hasMethod:qne,hasBasicElementProps:$ne,primitiveEq:Fne,isElementType:ta,hasClass:Lne}),Sr=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof le.Element||e(r)&&t(void 0,r)),it=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof le.StringElement||e(r)&&t("string",r)),I2=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof le.NumberElement||e(r)&&t("number",r)),j2=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof le.NullElement||e(r)&&t("null",r)),jl=Me(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof le.BooleanElement||e(r)&&t("boolean",r)),Ft=Me(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof le.ObjectElement||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n)),bn=Me(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof le.ArrayElement&&!(n instanceof le.ObjectElement)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n)),$i=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof le.MemberElement||e(n)&&t("member",n)&&r(void 0,n)),A8=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof le.LinkElement||e(n)&&t("link",n)&&r(void 0,n)),O8=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof le.RefElement||e(n)&&t("ref",n)&&r(void 0,n)),Bne=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vd||e(n)&&t("annotation",n)&&r("array",n)),Une=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zd||e(n)&&t("comment",n)&&r("string",n)),C8=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ni||e(n)&&t("parseResult",n)&&r("array",n)),R8=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wd||e(n)&&t("sourceMap",n)&&r("array",n)),za=e=>ta("object",e)||ta("array",e)||ta("boolean",e)||ta("number",e)||ta("string",e)||ta("null",e)||ta("member",e),kl=e=>R8(e.meta.get("sourceMap")),Vne=(e,t)=>{if(e.length===0)return!0;const r=t.attributes.get("symbols");return bn(r)?o2(Oh(r.toValue()),e):!1},jh=(e,t)=>e.length===0?!0:o2(Oh(t.classes.toValue()),e),zne=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:kl,includesClasses:jh,includesSymbols:Vne,isAnnotationElement:Bne,isArrayElement:bn,isBooleanElement:jl,isCommentElement:Une,isElement:Sr,isLinkElement:A8,isMemberElement:$i,isNullElement:j2,isNumberElement:I2,isObjectElement:Ft,isParseResultElement:C8,isPrimitiveElement:za,isRefElement:O8,isSourceMapElement:R8,isStringElement:it},Symbol.toStringTag,{value:"Module"}));class T8 extends le.Namespace{constructor(){super(),this.register("annotation",Vd),this.register("comment",zd),this.register("parseResult",Ni),this.register("sourceMap",Wd)}}const I8=new T8,Ls=e=>{const t=new T8;return Ts(e)&&t.use(e),t},j8=()=>({predicates:{...zne},namespace:I8}),kh=(e,t,r)=>{const n=e[t];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?e.leave:e.enter;if(i!=null){if(typeof i=="function")return i;const s=i[t];if(typeof s=="function")return s}}return null},wt={},Pl=e=>e==null?void 0:e.type,k8=e=>typeof Pl(e)=="string",k2=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Ph=(e,{visitFnGetter:t=kh,nodeTypeGetter:r=Pl,breakSymbol:n=wt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{enter(c,l,f,h,p,g){let y=c,v=!1;const E={...g,replaceWith(b,S){g.replaceWith(b,S),y=b}};for(let b=0;b<e.length;b+=1)if(u[b]===o){const S=t(e[b],r(y),!1);if(typeof S=="function"){const x=S.call(e[b],y,l,f,h,p,E);if(typeof(x==null?void 0:x.then)=="function")throw new Pi("Async visitor not supported in sync mode",{visitor:e[b],visitFn:S});if(x===s)u[b]=y;else if(x===n)u[b]=n;else{if(x===i)return x;if(x!==void 0)if(a)y=x,v=!0;else return x}}}return v?y:void 0},leave(c,l,f,h,p,g){let y=c;const v={...g,replaceWith(E,b){g.replaceWith(E,b),y=E}};for(let E=0;E<e.length;E+=1)if(u[E]===o){const b=t(e[E],r(y),!0);if(typeof b=="function"){const S=b.call(e[E],y,l,f,h,p,v);if(typeof(S==null?void 0:S.then)=="function")throw new Pi("Async visitor not supported in sync mode",{visitor:e[E],visitFn:b});if(S===n)u[E]=n;else if(S!==void 0&&S!==s)return S}}else u[E]===y&&(u[E]=o)}}},Wne=(e,{visitFnGetter:t=kh,nodeTypeGetter:r=Pl,breakSymbol:n=wt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:s=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{async enter(c,l,f,h,p,g){let y=c,v=!1;const E={...g,replaceWith(b,S){g.replaceWith(b,S),y=b}};for(let b=0;b<e.length;b+=1)if(u[b]===o){const S=t(e[b],r(y),!1);if(typeof S=="function"){const x=await S.call(e[b],y,l,f,h,p,E);if(x===s)u[b]=y;else if(x===n)u[b]=n;else{if(x===i)return x;if(x!==void 0)if(a)y=x,v=!0;else return x}}}return v?y:void 0},async leave(c,l,f,h,p,g){let y=c;const v={...g,replaceWith(E,b){g.replaceWith(E,b),y=E}};for(let E=0;E<e.length;E+=1)if(u[E]===o){const b=t(e[E],r(y),!0);if(typeof b=="function"){const S=await b.call(e[E],y,l,f,h,p,v);if(S===n)u[E]=n;else if(S!==void 0&&S!==s)return S}}else u[E]===y&&(u[E]=o)}}};Ph[Symbol.for("nodejs.util.promisify.custom")]=Wne;const P2=(e,t,{keyMap:r=null,state:n={},breakSymbol:i=wt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=kh,nodeTypeGetter:u=Pl,nodePredicate:c=k8,nodeCloneFn:l=k2,detectCycles:f=!0}={})=>{const h=r||{};let p,g=Array.isArray(e),y=[e],v=-1,E,b=[],S=e;const x=[],_=[];do{v+=1;const T=v===y.length;let O;const M=T&&b.length!==0;if(T){if(O=_.length===0?void 0:x.pop(),S=E,E=_.pop(),M)if(g){S=S.slice();let D=0;for(const[P,H]of b){const X=P-D;H===s?(S.splice(X,1),D+=1):S[X]=H}}else{S=l(S);for(const[D,P]of b)S[D]=P}v=p.index,y=p.keys,b=p.edits,g=p.inArray,p=p.prev}else if(E!==s&&E!==void 0){if(O=g?v:y[v],S=E[O],S===s||S===void 0)continue;x.push(O)}let k;if(!Array.isArray(S)){var A;if(!c(S))throw new Pi(`Invalid AST Node: ${String(S)}`,{node:S});if(f&&_.includes(S)){x.pop();continue}const D=o(t,u(S),T);if(D){for(const[H,X]of Object.entries(n))t[H]=X;const P={replaceWith(H,X){typeof X=="function"?X(H,S,O,E,x,_):E&&(E[O]=H),T||(S=H)}};k=D.call(t,S,O,E,x,_,P)}if(typeof((A=k)===null||A===void 0?void 0:A.then)=="function")throw new Pi("Async visitor not supported in sync mode",{visitor:t,visitFn:D});if(k===i)break;if(k===a){if(!T){x.pop();continue}}else if(k!==void 0&&(b.push([O,k]),!T))if(c(k))S=k;else{x.pop();continue}}if(k===void 0&&M&&b.push([O,S]),!T){var C;p={inArray:g,index:v,keys:y,edits:b,prev:p},g=Array.isArray(S),y=g?S:(C=h[u(S)])!==null&&C!==void 0?C:[],v=-1,b=[],E!==s&&E!==void 0&&_.push(E),E=S}}while(p!==void 0);return b.length!==0?b[b.length-1][1]:e};P2[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:i=wt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=kh,nodeTypeGetter:u=Pl,nodePredicate:c=k8,nodeCloneFn:l=k2,detectCycles:f=!0}={})=>{const h=r||{};let p,g=Array.isArray(e),y=[e],v=-1,E,b=[],S=e;const x=[],_=[];do{v+=1;const C=v===y.length;let T;const O=C&&b.length!==0;if(C){if(T=_.length===0?void 0:x.pop(),S=E,E=_.pop(),O)if(g){S=S.slice();let k=0;for(const[D,P]of b){const H=D-k;P===s?(S.splice(H,1),k+=1):S[H]=P}}else{S=l(S);for(const[k,D]of b)S[k]=D}v=p.index,y=p.keys,b=p.edits,g=p.inArray,p=p.prev}else if(E!==s&&E!==void 0){if(T=g?v:y[v],S=E[T],S===s||S===void 0)continue;x.push(T)}let M;if(!Array.isArray(S)){if(!c(S))throw new Pi(`Invalid AST Node: ${String(S)}`,{node:S});if(f&&_.includes(S)){x.pop();continue}const k=o(t,u(S),C);if(k){for(const[P,H]of Object.entries(n))t[P]=H;const D={replaceWith(P,H){typeof H=="function"?H(P,S,T,E,x,_):E&&(E[T]=P),C||(S=P)}};M=await k.call(t,S,T,E,x,_,D)}if(M===i)break;if(M===a){if(!C){x.pop();continue}}else if(M!==void 0&&(b.push([T,M]),!C))if(c(M))S=M;else{x.pop();continue}}if(M===void 0&&O&&b.push([T,S]),!C){var A;p={inArray:g,index:v,keys:y,edits:b,prev:p},g=Array.isArray(S),y=g?S:(A=h[u(S)])!==null&&A!==void 0?A:[],v=-1,b=[],E!==s&&E!==void 0&&_.push(E),E=S}}while(p!==void 0);return b.length!==0?b[b.length-1][1]:e};class P8 extends Pi{constructor(r,n){super(r,n);z(this,"value");typeof n<"u"&&(this.value=n.value)}}class Jne extends P8{}class Kne extends P8{}const Be=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof le.KeyValuePair){const{key:i,value:s}=e,a=Sr(i)?Be(i,n):i,o=Sr(s)?Be(s,n):s,u=new le.KeyValuePair(a,o);return r.set(e,u),u}if(e instanceof le.ObjectSlice){const i=o=>Be(o,n),s=[...e].map(i),a=new le.ObjectSlice(s);return r.set(e,a),a}if(e instanceof le.ArraySlice){const i=o=>Be(o,n),s=[...e].map(i),a=new le.ArraySlice(s);return r.set(e,a),a}if(Sr(e)){const i=dn(e);if(r.set(e,i),e.content)if(Sr(e.content))i.content=Be(e.content,n);else if(e.content instanceof le.KeyValuePair)i.content=Be(e.content,n);else if(Array.isArray(e.content)){const s=a=>Be(a,n);i.content=e.content.map(s)}else i.content=e.content;else i.content=e.content;return i}throw new Jne("Value provided to cloneDeep function couldn't be cloned",{value:e})};Be.safe=e=>{try{return Be(e)}catch{return e}};const N8=e=>{const{key:t,value:r}=e;return new le.KeyValuePair(t,r)},Hne=e=>{const t=[...e];return new le.ArraySlice(t)},Gne=e=>{const t=[...e];return new le.ObjectSlice(t)},M8=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Be(e.meta)),e.attributes.length>0&&(t._attributes=Be(e.attributes)),Sr(e.content)){const r=e.content;t.content=M8(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof le.KeyValuePair?t.content=N8(e.content):t.content=e.content;return t},dn=e=>{if(e instanceof le.KeyValuePair)return N8(e);if(e instanceof le.ObjectSlice)return Gne(e);if(e instanceof le.ArraySlice)return Hne(e);if(Sr(e))return M8(e);throw new Kne("Value provided to cloneShallow function couldn't be cloned",{value:e})};dn.safe=e=>{try{return dn(e)}catch{return e}};const Au=e=>Ft(e)?"ObjectElement":bn(e)?"ArrayElement":$i(e)?"MemberElement":it(e)?"StringElement":jl(e)?"BooleanElement":I2(e)?"NumberElement":j2(e)?"NullElement":A8(e)?"LinkElement":O8(e)?"RefElement":void 0,D8=e=>Sr(e)?dn(e):k2(e),q8=wr(Au,po),fs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class $8{constructor({predicate:t=s2,returnOnTrue:r,returnOnFalse:n}={}){z(this,"result");z(this,"predicate");z(this,"returnOnTrue");z(this,"returnOnFalse");this.result=[],this.predicate=t,this.returnOnTrue=r,this.returnOnFalse=n}enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}const Ir=(e,t,{keyMap:r=fs,...n}={})=>P2(e,t,{keyMap:r,nodeTypeGetter:Au,nodePredicate:q8,nodeCloneFn:D8,...n});Ir[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=fs,...n}={})=>P2[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Au,nodePredicate:q8,nodeCloneFn:D8,...n});const F8={toolboxCreator:j8,visitorOptions:{nodeTypeGetter:Au,exposeEdits:!0}},ds=(e,t,r={})=>{if(t.length===0)return e;const n=Sh(F8,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(l=>l(a)),u=Ph(o.map(Bd({},"visitor")),{...s});o.forEach(Pc(["pre"],[]));const c=Ir(e,u,s);return o.forEach(Pc(["post"],[])),c},Yne=async(e,t,r={})=>{if(t.length===0)return e;const n=Sh(F8,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(h=>h(a)),u=Ph[Symbol.for("nodejs.util.promisify.custom")],c=Ir[Symbol.for("nodejs.util.promisify.custom")],l=u(o.map(Bd({},"visitor")),{...s});await Promise.allSettled(o.map(Pc(["pre"],[])));const f=await c(e,l,s);return await Promise.allSettled(o.map(Pc(["post"],[]))),f};ds[Symbol.for("nodejs.util.promisify.custom")]=Yne;var n1={exports:{}},V$;function Xne(){return V$||(V$=1,function(e){var t=(()=>{var r=Object.defineProperty,n=Object.getOwnPropertyDescriptor,i=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable,u=(x,_,A)=>_ in x?r(x,_,{enumerable:!0,configurable:!0,writable:!0,value:A}):x[_]=A,c=(x,_)=>{for(var A in _||(_={}))a.call(_,A)&&u(x,A,_[A]);if(s)for(var A of s(_))o.call(_,A)&&u(x,A,_[A]);return x},l=(x,_)=>{for(var A in _)r(x,A,{get:_[A],enumerable:!0})},f=(x,_,A,C)=>{if(_&&typeof _=="object"||typeof _=="function")for(let T of i(_))!a.call(x,T)&&T!==A&&r(x,T,{get:()=>_[T],enumerable:!(C=n(_,T))||C.enumerable});return x},h=x=>f(r({},"__esModule",{value:!0}),x),p=(x,_,A)=>u(x,typeof _!="symbol"?_+"":_,A),g={};l(g,{DEFAULT_OPTIONS:()=>E,DEFAULT_UUID_LENGTH:()=>v,default:()=>S});var y="5.2.2",v=6,E={dictionary:"alphanum",shuffle:!0,debug:!1,length:v,counter:0},b=class{constructor(_={}){p(this,"counter"),p(this,"debug"),p(this,"dict"),p(this,"version"),p(this,"dictIndex",0),p(this,"dictRange",[]),p(this,"lowerBound",0),p(this,"upperBound",0),p(this,"dictLength",0),p(this,"uuidLength"),p(this,"_digit_first_ascii",48),p(this,"_digit_last_ascii",58),p(this,"_alpha_lower_first_ascii",97),p(this,"_alpha_lower_last_ascii",123),p(this,"_hex_last_ascii",103),p(this,"_alpha_upper_first_ascii",65),p(this,"_alpha_upper_last_ascii",91),p(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),p(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]}),p(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),p(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),p(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]}),p(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]}),p(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]}),p(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),p(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}),p(this,"log",(...k)=>{const D=[...k];if(D[0]="[short-unique-id] ".concat(k[0]),this.debug===!0&&typeof console<"u"&&console!==null){console.log(...D);return}}),p(this,"_normalizeDictionary",(k,D)=>{let P;if(k&&Array.isArray(k)&&k.length>1)P=k;else{P=[],this.dictIndex=0;const H="_".concat(k,"_dict_ranges"),X=this._dict_ranges[H];let V=0;for(const[,Q]of Object.entries(X)){const[Z,B]=Q;V+=Math.abs(B-Z)}P=new Array(V);let G=0;for(const[,Q]of Object.entries(X)){this.dictRange=Q,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const Z=this.lowerBound<=this.upperBound,B=this.lowerBound,J=this.upperBound;if(Z)for(let ee=B;ee<J;ee++)P[G++]=String.fromCharCode(ee),this.dictIndex=ee;else for(let ee=B;ee>J;ee--)P[G++]=String.fromCharCode(ee),this.dictIndex=ee}P.length=G}if(D){const H=P.length;for(let X=H-1;X>0;X--){const V=Math.floor(Math.random()*(X+1));[P[X],P[V]]=[P[V],P[X]]}}return P}),p(this,"setDictionary",(k,D)=>{this.dict=this._normalizeDictionary(k,D),this.dictLength=this.dict.length,this.setCounter(0)}),p(this,"seq",()=>this.sequentialUUID()),p(this,"sequentialUUID",()=>{const k=this.dictLength,D=this.dict;let P=this.counter;const H=[];do{const V=P%k;P=Math.trunc(P/k),H.push(D[V])}while(P!==0);const X=H.join("");return this.counter+=1,X}),p(this,"rnd",(k=this.uuidLength||v)=>this.randomUUID(k)),p(this,"randomUUID",(k=this.uuidLength||v)=>{if(k===null||typeof k>"u"||k<1)throw new Error("Invalid UUID Length Provided");const D=new Array(k),P=this.dictLength,H=this.dict;for(let X=0;X<k;X++){const V=Math.floor(Math.random()*P);D[X]=H[V]}return D.join("")}),p(this,"fmt",(k,D)=>this.formattedUUID(k,D)),p(this,"formattedUUID",(k,D)=>{const P={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return k.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,X=>{const V=X.slice(0,2),G=Number.parseInt(X.slice(2),10);return V==="$s"?P[V]().padStart(G,"0"):V==="$t"&&D?P[V](G,D):P[V](G)})}),p(this,"availableUUIDs",(k=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**k).toFixed(0))),p(this,"_collisionCache",new Map),p(this,"approxMaxBeforeCollision",(k=this.availableUUIDs(this.uuidLength))=>{const D=k,P=this._collisionCache.get(D);if(P!==void 0)return P;const H=Number.parseFloat(Math.sqrt(Math.PI/2*k).toFixed(20));return this._collisionCache.set(D,H),H}),p(this,"collisionProbability",(k=this.availableUUIDs(this.uuidLength),D=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(k)/this.availableUUIDs(D)).toFixed(20))),p(this,"uniqueness",(k=this.availableUUIDs(this.uuidLength))=>{const D=Number.parseFloat((1-this.approxMaxBeforeCollision(k)/k).toFixed(20));return D>1?1:D<0?0:D}),p(this,"getVersion",()=>this.version),p(this,"stamp",(k,D)=>{const P=Math.floor(+(D||new Date)/1e3).toString(16);if(typeof k=="number"&&k===0)return P;if(typeof k!="number"||k<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(`
99
+ `));const H=k-9,X=Math.round(Math.random()*(H>15?15:H)),V=this.randomUUID(H);return"".concat(V.substring(0,X)).concat(P).concat(V.substring(X)).concat(X.toString(16))}),p(this,"parseStamp",(k,D)=>{if(D&&!/t0|t[1-9]\d{1,}/.test(D))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const P=D?D.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,X=>{const V={$r:Z=>[...Array(Z)].map(()=>"r").join(""),$s:Z=>[...Array(Z)].map(()=>"s").join(""),$t:Z=>[...Array(Z)].map(()=>"t").join("")},G=X.slice(0,2),Q=Number.parseInt(X.slice(2),10);return V[G](Q)}).replace(/^(.*?)(t{8,})(.*)$/g,(X,V,G)=>k.substring(V.length,V.length+G.length)):k;if(P.length===8)return new Date(Number.parseInt(P,16)*1e3);if(P.length<10)throw new Error("Stamp length invalid");const H=Number.parseInt(P.substring(P.length-1),16);return new Date(Number.parseInt(P.substring(H,H+8),16)*1e3)}),p(this,"setCounter",k=>{this.counter=k}),p(this,"validate",(k,D)=>{const P=D?this._normalizeDictionary(D):this.dict;return k.split("").every(H=>P.includes(H))});const A=c(c({},E),_);this.counter=0,this.debug=!1,this.dict=[],this.version=y;const{dictionary:C,shuffle:T,length:O,counter:M}=A;this.uuidLength=O,this.setDictionary(C,T),this.setCounter(M),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)}};p(b,"default",b);var S=b;return h(g)})();e.exports=t.default,typeof window<"u"&&(t=t.default)}(n1)),n1.exports}var Zne=Xne();const Qne=Ue.getDefaultExportFromCjs(Zne);class eie extends Pi{constructor(r,n){super(r,n);z(this,"value");typeof n<"u"&&(this.value=n.value)}}class N2{constructor({length:t=6}={}){z(this,"uuid");z(this,"identityMap");this.uuid=new Qne({length:t}),this.identityMap=new WeakMap}identify(t){if(!Sr(t))throw new eie("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:t});if(t.meta.hasKey("id")&&it(t.meta.get("id"))&&!t.meta.get("id").equals(""))return t.id;if(this.identityMap.has(t))return this.identityMap.get(t);const r=new le.StringElement(this.generateId());return this.identityMap.set(t,r),r}forget(t){return this.identityMap.has(t)?(this.identityMap.delete(t),!0):!1}generateId(){return this.uuid.randomUUID()}}new N2;class tie extends Array{constructor(){super(...arguments);z(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new kS("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new kS("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new kS("latest method in MediaTypes class is not yet implemented.")}}const rie=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Sr(e)&&(e.meta.length>0&&(n.meta=Be(e.meta)),e.attributes.length>0&&(n.attributes=Be(e.attributes))),ds(n,r,{toolboxCreator:j8,visitorOptions:{nodeTypeGetter:Au}})},vi=e=>(t,r={})=>rie(t,{...r,Type:e});le.ObjectElement.refract=vi(le.ObjectElement);le.ArrayElement.refract=vi(le.ArrayElement);le.StringElement.refract=vi(le.StringElement);le.BooleanElement.refract=vi(le.BooleanElement);le.NullElement.refract=vi(le.NullElement);le.NumberElement.refract=vi(le.NumberElement);le.LinkElement.refract=vi(le.LinkElement);le.RefElement.refract=vi(le.RefElement);Vd.refract=vi(Vd);zd.refract=vi(zd);Ni.refract=vi(Ni);Wd.refract=vi(Wd);const nie=(e,t)=>{const r=new $8({predicate:e});return Ir(t,r),new le.ArraySlice(r.result)},L8=(e,t)=>{const r=new $8({predicate:e,returnOnTrue:wt});return Ir(t,r),n8(void 0,[0],r.result)},B8=e=>typeof(e==null?void 0:e.type)=="string"?e.type:Au(e),U8={EphemeralObject:["content"],EphemeralArray:["content"],...fs},V8=(e,t,{keyMap:r=U8,...n}={})=>Ir(e,t,{keyMap:r,nodeTypeGetter:B8,nodePredicate:Ms,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});V8[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=U8,...r}={})=>Ir[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:B8,nodePredicate:Ms,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class iie{constructor(t){z(this,"type","EphemeralArray");z(this,"content",[]);z(this,"reference");this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class sie{constructor(t){z(this,"type","EphemeralObject");z(this,"content",[]);z(this,"reference");this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let aie=class{constructor(){z(this,"ObjectElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new sie(t.content);return this.references.set(t,r),r}});z(this,"EphemeralObject",{leave:t=>t.toObject()});z(this,"MemberElement",{enter:t=>[t.key,t.value]});z(this,"ArrayElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new iie(t.content);return this.references.set(t,r),r}});z(this,"EphemeralArray",{leave:t=>t.toArray()});z(this,"references",new WeakMap)}BooleanElement(t){return t.toValue()}NumberElement(t){return t.toValue()}StringElement(t){return t.toValue()}NullElement(){return null}RefElement(t,...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(t.toValue())}LinkElement(t){return it(t.href)?t.href.toValue():""}};const we=e=>Sr(e)?it(e)||I2(e)||jl(e)||j2(e)?e.toValue():V8(e,new aie):e,gd=(e,t=new WeakMap)=>($i(e)?(t.set(e.key,e),gd(e.key,t),t.set(e.value,e),gd(e.value,t)):e.children.forEach(r=>{t.set(r,e),gd(r,t)}),t),oie=(e,t,r)=>{const n=r.get(e);$i(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))},uie=(e,t,r)=>{const n=r.get(e);Ft(n)&&(n.content=n.map((i,s,a)=>a===e?(r.delete(e),r.set(t,n),t):a))},cie=(e,t,r)=>{const n=r.get(e);bn(n)&&(n.content=n.map(i=>i===e?(r.delete(e),r.set(t,n),t):i))};class lie{constructor({element:t}){z(this,"element");z(this,"edges");this.element=t}transclude(t,r){var n;if(t===this.element)return r;if(t===r)return this.element;this.edges=(n=this.edges)!==null&&n!==void 0?n:gd(this.element);const i=this.edges.get(t);if(!_a(i))return Ft(i)?uie(t,r,this.edges):bn(i)?cie(t,r,this.edges):$i(i)&&oie(t,r,this.edges),this.element}}const fie=(e,t,r)=>new lie({element:r}).transclude(e,t),Ea=(e,t)=>{const r=nu(e,t);return mre(n=>{if(Ts(n)&&yc("$ref",n)&&_re(po,"$ref",n)){const i=Fr(["$ref"],n),s=S2("#/",i);return Fr(s.split("/"),r)}return Ts(n)?Ea(n,r):n},e)},z8=(e,t=I8)=>{if(po(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Ts(e)&&yc("element",e)?t.fromRefract(e):t.toElement(e)},Jd=e=>{const t=e.meta.length>0?Be(e.meta):void 0,r=e.attributes.length>0?Be(e.attributes):void 0;return new e.constructor(void 0,t,r)},Kd=(e,t)=>t.clone&&t.isMergeableElement(e)?ss(Jd(e),e,t):e,die=(e,t)=>{if(typeof t.customMerge!="function")return ss;const r=t.customMerge(e,t);return typeof r=="function"?r:ss},pie=e=>typeof e.customMetaMerge!="function"?t=>Be(t):e.customMetaMerge,hie=e=>typeof e.customAttributesMerge!="function"?t=>Be(t):e.customAttributesMerge,mie=(e,t,r)=>e.concat(t)["fantasy-land/map"](n=>Kd(n,r)),gie=(e,t,r)=>{const n=Ft(e)?Jd(e):Jd(t);return Ft(e)&&e.forEach((i,s,a)=>{const o=dn(a);o.value=Kd(i,r),n.content.push(o)}),t.forEach((i,s,a)=>{const o=we(s);let u;if(Ft(e)&&e.hasKey(o)&&r.isMergeableElement(i)){const c=e.get(o);u=dn(a),u.value=die(s,r)(c,i)}else u=dn(a),u.value=Kd(i,r);n.remove(o),n.content.push(u)}),n},Xf={clone:!0,isMergeableElement:e=>Ft(e)||bn(e),arrayElementMerge:mie,objectElementMerge:gie,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ss=(e,t,r)=>{var n,i,s;const a={...Xf,...r};a.isMergeableElement=(n=a.isMergeableElement)!==null&&n!==void 0?n:Xf.isMergeableElement,a.arrayElementMerge=(i=a.arrayElementMerge)!==null&&i!==void 0?i:Xf.arrayElementMerge,a.objectElementMerge=(s=a.objectElementMerge)!==null&&s!==void 0?s:Xf.objectElementMerge;const o=bn(t),u=bn(e);if(!(o===u))return Kd(t,a);const l=o&&typeof a.arrayElementMerge=="function"?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a);return l.meta=pie(a)(e.meta,t.meta),l.attributes=hie(a)(e.attributes,t.attributes),l};ss.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return e.length===0?new le.ObjectElement:e.reduce((r,n)=>ss(r,n,t),Jd(e[0]))};class M2 extends dr{}class W8 extends M2{}const yie=async(e,t)=>{let r=e,n=!1;if(!C8(e)){const a=dn(e);a.classes.push("result"),r=new Ni([a]),n=!0}const i=new Nc({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),s=await O2("canDereference",[i,t],t.dereference.strategies);if(Il(s))throw new W8(i.uri);try{const{result:a}=await C2("dereference",[i,t],s);return n?a.get(0):a}catch(a){throw new M2(`Error while dereferencing file "${i.uri}"`,{cause:a})}};let Nl=class{constructor({name:t,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:i=[],mediaTypes:s=[]}){z(this,"name");z(this,"allowEmpty");z(this,"sourceMap");z(this,"fileExtensions");z(this,"mediaTypes");this.name=t,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=i,this.mediaTypes=s}};class vie{constructor({name:t}){z(this,"name");this.name=t}}class bie extends vie{constructor(r){const{name:n="http-resolver",timeout:i=5e3,redirects:s=5,withCredentials:a=!1}=r??{};super({name:n});z(this,"timeout");z(this,"redirects");z(this,"withCredentials");this.timeout=i,this.redirects=s,this.withCredentials=a}canRead(r){return A2(r.uri)}}class _ie{constructor({name:t}){z(this,"name");this.name=t}}class Eie{constructor({name:t}){z(this,"name");this.name=t}}class i1 extends Array{includesCycle(t){return this.filter(r=>r.has(t)).length>1}includes(t,r){return t instanceof Set?super.includes(t,r):this.some(n=>n.has(t))}findItem(t){for(const r of this)for(const n of r)if(Sr(n)&&t(n))return n}}let As=class{constructor({uri:t,depth:r=0,refSet:n,value:i}){z(this,"uri");z(this,"depth");z(this,"value");z(this,"refSet");z(this,"errors");this.uri=t,this.value=i,this.depth=r,this.refSet=n,this.errors=[]}};class J8 extends dr{}class Sie extends J8{}class wie extends dr{}class D2 extends wie{}class xie extends J8{constructor(t){super(`Invalid JSON Schema $anchor "${t}".`)}}class Vo extends M2{}class Aie extends R2{}class Is extends Uw{}const Oie=async(e,t={})=>{const r=v8(y8,t);return yie(e,r)},{fetch:Cie,Response:Rie,Headers:Tie,Request:Iie,FormData:jie,File:kie,Blob:Pie}=globalThis;typeof globalThis.fetch>"u"&&(globalThis.fetch=Cie);typeof globalThis.Headers>"u"&&(globalThis.Headers=Tie);typeof globalThis.Request>"u"&&(globalThis.Request=Iie);typeof globalThis.Response>"u"&&(globalThis.Response=Rie);typeof globalThis.FormData>"u"&&(globalThis.FormData=jie);typeof globalThis.File>"u"&&(globalThis.File=kie);typeof globalThis.Blob>"u"&&(globalThis.Blob=Pie);function z$(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Nie(e){if(Array.isArray(e))return e}function Mie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Die(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function qie(e,t,r){return t&&Die(e.prototype,t),e}function K8(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function $ie(e,t){var r=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(r!=null){var n=[],i=!0,s=!1,a,o;try{for(r=r.call(e);!(i=(a=r.next()).done)&&(n.push(a.value),!(t&&n.length===t));i=!0);}catch(u){s=!0,o=u}finally{try{!i&&r.return!=null&&r.return()}finally{if(s)throw o}}return n}}function Fie(){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 Lie(e,t){return Nie(e)||$ie(e,t)||Bie(e,t)||Fie()}function zo(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Bie(e,t){if(e){if(typeof e=="string")return z$(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(r);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return z$(e,t)}}var H8=function(e){throw TypeError(e)},G8=function(e,t,r){return t.has(e)||H8("Cannot "+r)},cn=function(e,t,r){return G8(e,t,"read from private field"),r?r.call(e):t.get(e)},W$=function(e,t,r){return t.has(e)?H8("Cannot add the same private member more than once"):K8(t,WeakSet)?t.add(e):t.set(e,r)},s1=function(e,t,r,n){return G8(e,t,"write to private field"),t.set(e,r),r},Ou=function(e){return Object.prototype.toString.call(e)},Y8=function(e){return ArrayBuffer.isView(e)&&!K8(e,DataView)},Uie=function(e){return Ou(e)==="[object Date]"},Vie=function(e){return Ou(e)==="[object RegExp]"},zie=function(e){return Ou(e)==="[object Error]"},Wie=function(e){return Ou(e)==="[object Boolean]"},Jie=function(e){return Ou(e)==="[object Number]"},Kie=function(e){return Ou(e)==="[object String]"},X8=Array.isArray,Hie=Object.getOwnPropertyDescriptor,Gie=Object.prototype.propertyIsEnumerable,Yie=Object.getOwnPropertySymbols,yd=Object.prototype.hasOwnProperty;function q2(e){for(var t=Object.keys(e),r=Yie(e),n=0;n<r.length;n++)Gie.call(e,r[n])&&t.push(r[n]);return t}function Xie(e,t){var r;return!(!((r=Hie(e,t))===null||r===void 0)&&r.writable)}function Z8(e,t){if((typeof e>"u"?"undefined":zo(e))==="object"&&e!==null){var r;if(X8(e))r=[];else if(Uie(e))r=new Date(e.getTime?e.getTime():e);else if(Vie(e))r=new RegExp(e);else if(zie(e))r={message:e.message};else if(Wie(e)||Jie(e)||Kie(e))r=Object(e);else{if(Y8(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var n=t.includeSymbols?q2:Object.keys,i=!0,s=!1,a=void 0;try{for(var o=n(e)[Symbol.iterator](),u;!(i=(u=o.next()).done);i=!0){var c=u.value;r[c]=e[c]}}catch(l){s=!0,a=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(s)throw a}}return r}return e}var Q8={includeSymbols:!1,immutable:!1};function J$(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Q8,n=[],i=[],s=!0,a=r.includeSymbols?q2:Object.keys,o=!!r.immutable;return function u(c){var l=o?Z8(c,r):c,f={},h=!0,p={node:l,node_:c,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(D){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;p.isRoot||(p.parent.node[p.key]=D),p.node=D,P&&(h=!1)},delete:function(D){delete p.parent.node[p.key],D&&(h=!1)},remove:function(D){X8(p.parent.node)?p.parent.node.splice(p.key,1):delete p.parent.node[p.key],D&&(h=!1)},keys:null,before:function(D){f.before=D},after:function(D){f.after=D},pre:function(D){f.pre=D},post:function(D){f.post=D},stop:function(){s=!1},block:function(){h=!1}};if(!s)return p;function g(){if(zo(p.node)==="object"&&p.node!==null){(!p.keys||p.node_!==p.node)&&(p.keys=a(p.node)),p.isLeaf=p.keys.length===0;for(var k=0;k<i.length;k++)if(i[k].node_===c){p.circular=i[k];break}}else p.isLeaf=!0,p.keys=null;p.notLeaf=!p.isLeaf,p.notRoot=!p.isRoot}g();var y=t.call(p,p.node);if(y!==void 0&&p.update&&p.update(y),f.before&&f.before.call(p,p.node),!h)return p;if(zo(p.node)==="object"&&p.node!==null&&!p.circular){i.push(p),g();var v,E=!0,b=!1,S=void 0;try{for(var x=Object.entries((v=p.keys)!==null&&v!==void 0?v:[])[Symbol.iterator](),_;!(E=(_=x.next()).done);E=!0){var A=Lie(_.value,2),C=A[0],T=A[1],O;n.push(T),f.pre&&f.pre.call(p,p.node[T],T);var M=u(p.node[T]);o&&yd.call(p.node,T)&&!Xie(p.node,T)&&(p.node[T]=M.node),M.isLast=!((O=p.keys)===null||O===void 0)&&O.length?+C===p.keys.length-1:!1,M.isFirst=+C==0,f.post&&f.post.call(p,M),n.pop()}}catch(k){b=!0,S=k}finally{try{!E&&x.return!=null&&x.return()}finally{if(b)throw S}}i.pop()}return f.after&&f.after.call(p,p.node),p}(e).node}var Cn,ra,ps=function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Q8;Mie(this,e),W$(this,Cn),W$(this,ra),s1(this,Cn,t),s1(this,ra,r)}return qie(e,[{key:"get",value:function(r){for(var n=cn(this,Cn),i=0;n&&i<r.length;i++){var s=r[i];if(!yd.call(n,s)||!cn(this,ra).includeSymbols&&(typeof s>"u"?"undefined":zo(s))==="symbol")return;n=n[s]}return n}},{key:"has",value:function(r){for(var n=cn(this,Cn),i=0;n&&i<r.length;i++){var s=r[i];if(!yd.call(n,s)||!cn(this,ra).includeSymbols&&(typeof s>"u"?"undefined":zo(s))==="symbol")return!1;n=n[s]}return!0}},{key:"set",value:function(r,n){var i=cn(this,Cn),s=0;for(s=0;s<r.length-1;s++){var a=r[s];yd.call(i,a)||(i[a]={}),i=i[a]}return i[r[s]]=n,n}},{key:"map",value:function(r){return J$(cn(this,Cn),r,{immutable:!0,includeSymbols:!!cn(this,ra).includeSymbols})}},{key:"forEach",value:function(r){return s1(this,Cn,J$(cn(this,Cn),r,cn(this,ra))),cn(this,Cn)}},{key:"reduce",value:function(r,n){var i=arguments.length===1,s=i?cn(this,Cn):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=cn(this,ra);return Y8(cn(this,Cn))?cn(this,Cn).slice():function s(a){for(var o=0;o<r.length;o++)if(r[o]===a)return n[o];if((typeof a>"u"?"undefined":zo(a))==="object"&&a!==null){var u=Z8(a,i);r.push(a),n.push(u);var c=i.includeSymbols?q2:Object.keys,l=!0,f=!1,h=void 0;try{for(var p=c(a)[Symbol.iterator](),g;!(l=(g=p.next()).done);l=!0){var y=g.value;u[y]=s(a[y])}}catch(v){f=!0,h=v}finally{try{!l&&p.return!=null&&p.return()}finally{if(f)throw h}}return r.pop(),n.pop(),u}return a}(cn(this,Cn))}}]),e}();Cn=new WeakMap;ra=new WeakMap;var hs=function(e,t){return new ps(e,t)};hs.get=function(e,t,r){return new ps(e,r).get(t)};hs.set=function(e,t,r,n){return new ps(e,n).set(t,r)};hs.has=function(e,t,r){return new ps(e,r).has(t)};hs.map=function(e,t,r){return new ps(e,r).map(t)};hs.forEach=function(e,t,r){return new ps(e,r).forEach(t)};hs.reduce=function(e,t,r,n){return new ps(e,n).reduce(t,r)};hs.paths=function(e,t){return new ps(e,t).paths()};hs.nodes=function(e,t){return new ps(e,t).nodes()};hs.clone=function(e,t){return new ps(e,t).clone()};var Zie=hs;const e9="application/json, application/yaml",Hd="https://swagger.io",Qie=Object.freeze({url:"/"}),t9=3e3,ese=["properties"],tse=["properties"],rse=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],nse=["schema/example","items/example"];function r9(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return ese.indexOf(t)>-1&&tse.indexOf(r)===-1||rse.indexOf(n)>-1||nse.some(i=>n.indexOf(i)>-1)}function ise(e,t,{specmap:r,getBaseUrlForNodePath:n=s=>r.getContext([...t,...s]).baseDoc,targetKeys:i=["$ref","$$ref"]}={}){const s=[];return Zie(e).forEach(function(){if(i.includes(this.key)&&typeof this.node=="string"){const o=this.path,u=t.concat(this.path),c=Vw(this.node,n(o));s.push(r.replace(u,c))}}),s}function Vw(e,t){const[r,n]=e.split("#"),i=t??"",s=r??"";let a;if(A2(i))a=Kr(i,s);else{const o=Kr(Hd,i),c=Kr(o,s).replace(Hd,"");a=s.startsWith("/")?c:c.substring(1)}return n?`${a}#${n}`:a}const sse=/^([a-z]+:\/\/|\/\/)/i;class au extends Pi{}const xs={},K$=new WeakMap,ase=[e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples",e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example",e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value",e=>e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example",e=>e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value",e=>e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"],ose=e=>ase.some(t=>t(e)),use={key:"$ref",plugin:(e,t,r,n)=>{const i=n.getInstance(),s=r.slice(0,-1);if(r9(s)||ose(s))return;const{baseDoc:a}=n.getContext(r);if(typeof e!="string")return new au("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:a,fullPath:r});const o=i9(e),u=o[0],c=o[1]||"";let l;try{l=a||u?n9(u,a):null}catch(y){return zw(y,{pointer:c,$ref:e,basePath:l,fullPath:r})}let f,h;if(pse(c,l,s,n)&&!i.useCircularStructures){const y=Vw(e,l);return e===y?null:qt.replace(r,y)}if(l==null?(h=F2(c),f=n.get(h),typeof f>"u"&&(f=new au(`Could not resolve reference: ${e}`,{pointer:c,$ref:e,baseDoc:a,fullPath:r}))):(f=s9(l,c),f.__value!=null?f=f.__value:f=f.catch(y=>{throw zw(y,{pointer:c,$ref:e,baseDoc:a,fullPath:r})})),f instanceof Error)return[qt.remove(r),f];const p=Vw(e,l),g=qt.replace(s,f,{$$ref:p});if(l&&l!==a)return[g,qt.context(s,{baseDoc:l})];try{if(!hse(n.state,g)||i.useCircularStructures)return g}catch{return null}}},$2=Object.assign(use,{docCache:xs,absoluteify:n9,clearCache:cse,JSONRefError:au,wrapError:zw,getDoc:a9,split:i9,extractFromDoc:s9,fetchJSON:lse,extract:Ww,jsonPointerToArray:F2,unescapeJsonPointerToken:o9});function n9(e,t){if(!sse.test(e)){if(!t)throw new au(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Kr(t,e)}return e}function zw(e,t){let r;return e&&e.response&&e.response.body?r=`${e.response.body.code} ${e.response.body.message}`:r=e.message,new au(`Could not resolve reference: ${r}`,{...t,cause:e})}function i9(e){return(e+"").split("#")}function s9(e,t){const r=xs[e];if(r&&!qt.isPromise(r))try{const n=Ww(t,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return a9(e).then(n=>Ww(t,n))}function cse(e){typeof e<"u"?delete xs[e]:Object.keys(xs).forEach(t=>{delete xs[t]})}function a9(e){const t=xs[e];return t?qt.isPromise(t)?t:Promise.resolve(t):(xs[e]=$2.fetchJSON(e).then(r=>(xs[e]=r,r)),xs[e])}function lse(e){return fetch(e,{headers:{Accept:e9},loadSpec:!0}).then(t=>t.text()).then(t=>Wa.load(t))}function Ww(e,t){const r=F2(e);if(r.length<1)return t;const n=qt.getIn(t,r);if(typeof n>"u")throw new au(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function F2(e){if(typeof e!="string")throw new TypeError(`Expected a string, got a ${typeof e}`);return e[0]==="/"&&(e=e.substr(1)),e===""?[]:e.split("/").map(o9)}function o9(e){return typeof e!="string"?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function u9(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function fse(e){return e.length===0?"":`/${e.map(u9).join("/")}`}const dse=e=>!e||e==="/"||e==="#";function a1(e,t){if(dse(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return e.indexOf(t)===0&&(!r||r==="/"||r==="#")&&n!=="#"}function pse(e,t,r,n){let i=K$.get(n);i||(i={},K$.set(n,i));const s=fse(r),a=`${t||"<specmap-base>"}#${e}`,o=s.replace(/allOf\/\d+\/?/g,""),u=n.contextTree.get([]).baseDoc;if(t===u&&a1(o,e))return!0;let c="";if(r.some(f=>(c=`${c}/${u9(f)}`,i[c]&&i[c].some(h=>a1(h,a)||a1(a,h)))))return!0;i[o]=(i[o]||[]).concat(a)}function hse(e,t){const r=[e];return t.path.reduce((i,s)=>(r.push(i[s]),i[s]),e),n(t.value);function n(i){return qt.isObject(i)&&(r.indexOf(i)>=0||Object.keys(i).some(s=>n(i[s])))}}const mse={key:"allOf",plugin:(e,t,r,n,i)=>{if(i.meta&&i.meta.$$ref)return;const s=r.slice(0,-1);if(r9(s))return;if(!Array.isArray(e)){const c=new TypeError("allOf must be an array");return c.fullPath=r,c}let a=!1,o=i.value;if(s.forEach(c=>{o&&(o=o[c])}),o={...o},Object.keys(o).length===0)return;delete o.allOf;const u=[];return u.push(n.replace(s,{})),e.forEach((c,l)=>{if(!n.isObject(c)){if(a)return null;a=!0;const p=new TypeError("Elements in allOf must be objects");return p.fullPath=r,u.push(p)}u.push(n.mergeDeep(s,c));const f=r.slice(0,-1),h=ise(c,f,{getBaseUrlForNodePath:p=>n.getContext([...r,l,...p]).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}},gse={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const i=Object.assign([],e),s=r.slice(0,-1),a={...qt.getIn(n.spec,s)};for(let o=0;o<e.length;o+=1){const u=e[o];try{i[o].default=n.parameterMacro(a,u)}catch(c){const l=new Error(c);return l.fullPath=r,l}}return qt.replace(r,i)}return qt.replace(r,e)}},yse={key:"properties",plugin:(e,t,r,n)=>{const i={...e};for(const a in e)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 vse{constructor(t){this.root=o1(t||{})}set(t,r){const n=this.getParent(t,!0);if(!n){Gd(this.root,r,null);return}const i=t[t.length-1],{children:s}=n;if(s[i]){Gd(s[i],r,n);return}s[i]=o1(r,n)}get(t){if(t=t||[],t.length<1)return this.root.value;let r=this.root,n,i;for(let s=0;s<t.length&&(i=t[s],n=r.children,!!n[i]);s+=1)r=n[i];return r&&r.protoValue}getParent(t,r){return!t||t.length<1?null:t.length<2?this.root:t.slice(0,-1).reduce((n,i)=>{if(!n)return n;const{children:s}=n;return!s[i]&&r&&(s[i]=o1(null,n)),s[i]},this.root)}}function o1(e,t){return Gd({children:{}},e,t)}function Gd(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach(n=>{const i=e.children[n];e.children[n]=Gd(i,i.value,e)}),e}const H$=100,G$=()=>{};class bse{static getPluginName(t){return t.pluginName}static getPatchesOfType(t,r){return t.filter(r)}constructor(t){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new vse,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),qt,{getInstance:()=>this}),allowMetaPatches:!1},t),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(t,...r){this.debugLevel===t&&console.log(...r)}verbose(t,...r){this.debugLevel==="verbose"&&console.log(`[${t}] `,...r)}wrapPlugin(t,r){const{pathDiscriminator:n}=this;let i=null,s;return t[this.pluginProp]?(i=t,s=t[this.pluginProp]):qt.isFunction(t)?s=t:qt.isObject(t)&&(s=a(t)),Object.assign(s.bind(i),{pluginName:t.name||r,isGenerator:qt.isGenerator(s)});function a(o){const u=(c,l)=>Array.isArray(c)?c.every((f,h)=>f===l[h]):!0;return function*(l,f){const h={};for(const[g,y]of l.filter(qt.isAdditiveMutation).entries())if(g<t9)yield*p(y.value,y.path,y);else return;function*p(g,y,v){if(!qt.isObject(g))o.key===y[y.length-1]&&(yield o.plugin(g,o.key,y,f));else{const E=y.length-1,b=y[E],S=y.indexOf("properties"),x=b==="properties"&&E===S,_=f.allowMetaPatches&&h[g.$$ref];for(const A of Object.keys(g)){const C=g[A],T=y.concat(A),O=qt.isObject(C),M=g.$$ref;if(_||O&&(f.allowMetaPatches&&M&&u(n,T)&&(h[M]=!0),yield*p(C,T,v)),!x&&A===o.key){const k=u(n,y);(!n||k)&&(yield o.plugin(C,A,T,f,v))}}}}}}}nextPlugin(){return this.wrappedPlugins.find(t=>this.getMutationsForPlugin(t).length>0)}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map(t=>t.value))}getPluginHistory(t){const r=this.constructor.getPluginName(t);return this.pluginHistory[r]||[]}getPluginRunCount(t){return this.getPluginHistory(t).length}getPluginHistoryTip(t){const r=this.getPluginHistory(t);return r&&r[r.length-1]||{}}getPluginMutationIndex(t){const r=this.getPluginHistoryTip(t).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(t,r){const n=this.constructor.getPluginName(t);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(r)}updatePatches(t){qt.normalizeArray(t).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(t){typeof t.value=="object"&&!Array.isArray(t.value)&&this.allowMetaPatches&&(t.value={...t.value});const r=qt.applyPatch(this.state,t,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(t),this.state=r)}removePromisedPatch(t){const r=this.promisedPatches.indexOf(t);if(r<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}this.promisedPatches.splice(r,1)}promisedPatchThen(t){return t.value=t.value.then(r=>{const n={...t,value:r};this.removePromisedPatch(t),this.updatePatches(n)}).catch(r=>{this.removePromisedPatch(t),this.updatePatches(r)}),t.value}getMutations(t,r){return t=t||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(t,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(t){const r=this.getPluginMutationIndex(t);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(t){return qt.getIn(this.state,t)}_getContext(t){return this.contextTree.get(t)}setContext(t,r){return this.contextTree.set(t,r)}_hasRun(t){return this.getPluginRunCount(this.getCurrentPlugin())>(t||0)}dispatch(){const t=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(t.pluginCount=t.pluginCount||new WeakMap,t.pluginCount.set(r,(t.pluginCount.get(r)||0)+1),t.pluginCount[r]>H$)return Promise.resolve({spec:t.state,errors:t.errors.concat(new Error(`We've reached a hard limit of ${H$} 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(G$,G$))).then(()=>this.dispatch())}return n();function n(){t.currentPlugin=r;const s=t.getCurrentMutations(),a=t.mutations.length-1;try{if(r.isGenerator)for(const o of r(s,t.getLib()))i(o);else{const o=r(s,t.getLib());i(o)}}catch(o){console.error(o),i([Object.assign(Object.create(o),{plugin:r})])}finally{t.updatePluginHistory(r,{mutationIndex:a})}return t.dispatch()}function i(s){s&&(s=qt.fullyNormalizeArray(s),t.updatePatches(s,r))}}}function _se(e){return new bse(e).dispatch()}const Io={refs:$2,allOf:mse,parameters:gse,properties:yse};function c9(e,t={}){const{requestInterceptor:r,responseInterceptor:n}=t,i=e.withCredentials?"include":"same-origin";return s=>e({url:s,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:e9},credentials:i}).then(a=>a.body)}function L2(e,t){return!t&&typeof navigator<"u"&&(t=navigator),t&&t.product==="ReactNative"?!!(e&&typeof e=="object"&&typeof e.uri=="string"):typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob||ArrayBuffer.isView(e)?!0:e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function l9(e,t){return Array.isArray(e)&&e.some(r=>L2(r,t))}class Jw extends File{constructor(t,r="",n={}){super([t],r,n),this.data=t}valueOf(){return this.data}toString(){return this.valueOf()}}const Ese=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Sse=e=>/^[a-z0-9\-._~]+$/i.test(e);function f9(e,t="reserved"){return[...e].map(r=>{if(Sse(r)||Ese(r)&&t==="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 B2(e){const{value:t}=e;return Array.isArray(t)?wse(e):typeof t=="object"?xse(e):Ase(e)}function Hr(e,t=!1){return Array.isArray(e)||e!==null&&typeof e=="object"?e=JSON.stringify(e):(typeof e=="number"||typeof e=="boolean")&&(e=String(e)),t&&typeof e=="string"&&e.length>0?f9(e,t):e??""}function wse({key:e,value:t,style:r,explode:n,escape:i}){if(r==="simple")return t.map(s=>Hr(s,i)).join(",");if(r==="label")return`.${t.map(s=>Hr(s,i)).join(".")}`;if(r==="matrix")return t.map(s=>Hr(s,i)).reduce((s,a)=>!s||n?`${s||""};${e}=${a}`:`${s},${a}`,"");if(r==="form"){const s=n?`&${e}=`:",";return t.map(a=>Hr(a,i)).join(s)}if(r==="spaceDelimited"){const s=n?`${e}=`:"";return t.map(a=>Hr(a,i)).join(` ${s}`)}if(r==="pipeDelimited"){const s=n?`${e}=`:"";return t.map(a=>Hr(a,i)).join(`|${s}`)}}function xse({key:e,value:t,style:r,explode:n,escape:i}){const s=Object.keys(t);if(r==="simple")return s.reduce((a,o)=>{const u=Hr(t[o],i),c=n?"=":",";return`${a?`${a},`:""}${o}${c}${u}`},"");if(r==="label")return s.reduce((a,o)=>{const u=Hr(t[o],i),c=n?"=":".";return`${a?`${a}.`:"."}${o}${c}${u}`},"");if(r==="matrix"&&n)return s.reduce((a,o)=>{const u=Hr(t[o],i);return`${a?`${a};`:";"}${o}=${u}`},"");if(r==="matrix")return s.reduce((a,o)=>{const u=Hr(t[o],i);return`${a?`${a},`:`;${e}=`}${o},${u}`},"");if(r==="form")return s.reduce((a,o)=>{const u=Hr(t[o],i);return`${a?`${a}${n?"&":","}`:""}${o}${n?"=":","}${u}`},"")}function Ase({key:e,value:t,style:r,escape:n}){if(r==="simple")return Hr(t,n);if(r==="label")return`.${Hr(t,n)}`;if(r==="matrix")return`;${e}=${Hr(t,n)}`;if(r==="form"||r==="deepObject")return Hr(t,n)}const Ose={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Cse={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function d9(e,t,r=!1){const{collectionFormat:n,allowEmptyValue:i,serializationOption:s,encoding:a}=t,o=typeof t=="object"&&!Array.isArray(t)?t.value:t,u=r?l=>l.toString():l=>encodeURIComponent(l),c=u(e);if(typeof o>"u"&&i)return[[c,""]];if(L2(o)||l9(o))return[[c,o]];if(s)return Y$(e,o,r,s);if(a){if([typeof a.style,typeof a.explode,typeof a.allowReserved].some(l=>l!=="undefined")){const{style:l,explode:f,allowReserved:h}=a;return Y$(e,o,r,{style:l,explode:f,allowReserved:h})}if(typeof a.contentType=="string"){if(a.contentType.startsWith("application/json")){const h=typeof o=="string"?o:JSON.stringify(o),p=u(h),g=new Jw(p,"blob",{type:a.contentType});return[[c,g]]}const l=u(String(o)),f=new Jw(l,"blob",{type:a.contentType});return[[c,f]]}return typeof o!="object"?[[c,u(o)]]:Array.isArray(o)&&o.every(l=>typeof l!="object")?[[c,o.map(u).join(",")]]:[[c,u(JSON.stringify(o))]]}return typeof o!="object"?[[c,u(o)]]:Array.isArray(o)?n==="multi"?[[c,o.map(u)]]:[[c,o.map(u).join(Cse[n||"csv"])]]:[[c,""]]}function Y$(e,t,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=c=>Hr(c,a),u=r?c=>c:c=>o(c);return typeof t!="object"?[[u(e),o(t)]]:Array.isArray(t)?s?[[u(e),t.map(o)]]:[[u(e),t.map(o).join(Ose[i])]]:i==="deepObject"?Object.keys(t).map(c=>[u(`${e}[${c}]`),o(t[c])]):s?Object.keys(t).map(c=>[u(c),o(t[c])]):[[u(e),Object.keys(t).map(c=>[`${u(c)},${o(t[c])}`]).join(",")]]}function Rse(e){return Object.entries(e).reduce((t,[r,n])=>{for(const[i,s]of d9(r,n,!0))if(Array.isArray(s))for(const a of s)if(ArrayBuffer.isView(a)){const o=new Blob([a]);t.append(i,o)}else t.append(i,a);else if(ArrayBuffer.isView(s)){const a=new Blob([s]);t.append(i,a)}else t.append(i,s);return t},new FormData)}const Tse=(e,{encode:t=!0}={})=>{const r=(s,a,o)=>(Array.isArray(o)?o.reduce((u,c)=>r(s,a,c),s):o instanceof Date?s.append(a,o.toISOString()):typeof o=="object"?Object.entries(o).reduce((u,[c,l])=>r(s,`${a}[${c}]`,l),s):s.append(a,o),s),n=Object.entries(e).reduce((s,[a,o])=>r(s,a,o),new URLSearchParams),i=String(n);return t?i:decodeURIComponent(i)};function X$(e){const t=Object.keys(e).reduce((r,n)=>{for(const[i,s]of d9(n,e[n]))s instanceof Jw?r[i]=s.valueOf():r[i]=s;return r},{});return Tse(t,{encode:!1})}function U2(e={}){const{url:t="",query:r,form:n}=e,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 L2(u)||l9(u)}),a=e.headers["content-type"]||e.headers["Content-Type"];if(s||/multipart\/form-data/i.test(a)){const o=Rse(e.form);e.formdata=o,e.body=o}else e.body=X$(n);delete e.form}if(r){const[s,a]=t.split("?");let o="";if(a){const c=new URLSearchParams(a);Object.keys(r).forEach(f=>c.delete(f)),o=String(c)}const u=i(o,X$(r));e.url=s+u,delete e.query}return e}const Ise=(e="")=>/(json|xml|yaml|text)\b/.test(e);function jse(e,t){return t&&(t.indexOf("application/json")===0||t.indexOf("+json")>0)?JSON.parse(e):Wa.load(e)}function kse(e){return e.includes(", ")?e.split(", "):e}function Pse(e={}){return typeof e.entries!="function"?{}:Array.from(e.entries()).reduce((t,[r,n])=>(t[r]=kse(n),t),{})}function p9(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Pse(e.headers)},i=n.headers["content-type"],s=r||Ise(i);return(s?e.text:e.blob||e.buffer).call(e).then(o=>{if(n.text=o,n.data=o,s)try{const u=jse(o,i);n.body=u,n.obj=u}catch(u){n.parseError=u}return n})}async function Mc(e,t={}){typeof e=="object"&&(t=e,e=t.url),t.headers=t.headers||{},t=U2(t),t.headers&&Object.keys(t.headers).forEach(i=>{const s=t.headers[i];typeof s=="string"&&(t.headers[i]=s.replace(/\n+/g," "))}),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);let n;try{n=await(t.userFetch||fetch)(t.url,t),n=await p9(n,e,t),t.responseInterceptor&&(n=await t.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 Nse(e,t,r){return r=r||(n=>n),t=t||(n=>n),n=>(typeof n=="string"&&(n={url:n}),n=U2(n),n=t(n),r(e(n)))}const V2=e=>{var t,r;const{baseDoc:n,url:i}=e,s=(t=n??i)!==null&&t!==void 0?t:"";return typeof((r=globalThis.document)===null||r===void 0?void 0:r.baseURI)=="string"?String(new URL(s,globalThis.document.baseURI)):s},h9=e=>{const{fetch:t,http:r}=e;return t||r||Mc};async function z2(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:i,modelPropertyMacro:s,parameterMacro:a,requestInterceptor:o,responseInterceptor:u,skipNormalization:c=!1,useCircularStructures:l,strategies:f}=e,h=V2(e),p=h9(e),g=f.find(v=>v.match(t));return y(t);async function y(v){h&&(Io.refs.docCache[h]=v),Io.refs.fetchJSON=c9(p,{requestInterceptor:o,responseInterceptor:u});const E=[Io.refs];typeof a=="function"&&E.push(Io.parameters),typeof s=="function"&&E.push(Io.properties),r!=="strict"&&E.push(Io.allOf);const b=await _se({spec:v,context:{baseDoc:h},plugins:E,allowMetaPatches:n,pathDiscriminator:i,parameterMacro:a,modelPropertyMacro:s,useCircularStructures:l});return c||(b.spec=g.normalize(b.spec)),b}}const m9=e=>e.replace(/\W/gi,"_");function Mse(e,t,{v2OperationIdCompatibilityMode:r}={}){if(r){let n=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return n=n||`${e.substring(1)}_${t}`,n.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${m9(e)}`}function Nh(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){return!e||typeof e!="object"?null:(e.operationId||"").replace(/\s/g,"").length?m9(e.operationId):Mse(t,r,{v2OperationIdCompatibilityMode:n})}function W2(e){const{spec:t}=e,{paths:r}=t,n={};if(!r||t.$$normalized)return e;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 c=Nh(u,i,o);if(c){n[c]?n[c].push(u):n[c]=[u];const l=n[c];if(l.length>1)l.forEach((f,h)=>{f.__originalOperationId=f.__originalOperationId||f.operationId,f.operationId=`${c}${h+1}`});else if(typeof u.operationId<"u"){const f=l[0];f.__originalOperationId=f.__originalOperationId||u.operationId,f.operationId=c}}if(o!=="parameters"){const l=[],f={};for(const h in t)(h==="produces"||h==="consumes"||h==="security")&&(f[h]=t[h],l.push(f));if(a&&(f.parameters=a,l.push(f)),l.length){for(const h of l)for(const p in h)if(!u[p])u[p]=h[p];else if(p==="parameters")for(const g of h[p])u[p].some(v=>v.name&&v.name===g.name||v.$ref&&v.$ref===g.$ref||v.$$ref&&v.$$ref===g.$$ref||v===g)||u[p].push(g)}}}}return t.$$normalized=!0,e}const g9={name:"generic",match(){return!0},normalize(e){const{spec:t}=W2({spec:e});return t},async resolve(e){return z2(e)}};async function Dse(e){return z2(e)}const qse=e=>{try{const{swagger:t}=e;return t==="2.0"}catch{return!1}},y9=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},J2=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},v9=e=>y9(e)||J2(e),b9={name:"openapi-2",match(e){return qse(e)},normalize(e){const{spec:t}=W2({spec:e});return t},async resolve(e){return Dse(e)}};async function $se(e){return z2(e)}const _9={name:"openapi-3-0",match(e){return y9(e)},normalize(e){const{spec:t}=W2({spec:e});return t},async resolve(e){return $se(e)}};class K2 extends Pi{}class Kw extends K2{constructor(r,n){super(r,n);z(this,"pointer");typeof n<"u"&&(this.pointer=n.pointer)}}class Fse extends K2{constructor(r,n){super(r,n);z(this,"tokens");typeof n<"u"&&(this.tokens=[...n.tokens])}}class sc extends K2{constructor(r,n){super(r,n);z(this,"pointer");z(this,"tokens");z(this,"failedToken");z(this,"failedTokenPosition");z(this,"element");typeof n<"u"&&(this.pointer=n.pointer,Array.isArray(n.tokens)&&(this.tokens=[...n.tokens]),this.failedToken=n.failedToken,this.failedTokenPosition=n.failedTokenPosition,this.element=n.element)}}const Lse=wr(iu(/~/g,"~0"),iu(/\//g,"~1"),encodeURIComponent),Bse=e=>{try{return decodeURIComponent(e)}catch{return e}},Use=wr(iu(/~1/g,"/"),iu(/~0/g,"~"),Bse),Vse=e=>{if(f8(e))return[];if(!a8("/",e))throw new Kw(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=wr(E2("/"),Ol(Use))(e);return Q4(t)}catch(t){throw new Kw(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}},zse=e=>{const t=e.indexOf("#");return t!==-1?e.substring(t):"#"},oi=e=>{const t=zse(e);return S2("#",t)},E9=e=>{try{return e.length===0?"":`/${e.map(Lse).join("/")}`}catch(t){throw new Fse("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}},Ti=(e,t)=>{let r;try{r=Vse(e)}catch(n){throw new sc(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Be(t),cause:n})}return r.reduce((n,i,s)=>{if(Ft(n)){if(!n.hasKey(i))throw new sc(`JSON Pointer evaluation failed while evaluating token "${i}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:s,element:Be(n)});return n.get(i)}if(bn(n)){if(!(i in n.content)||!Hre(Number(i)))throw new sc(`JSON Pointer evaluation failed while evaluating token "${i}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:s,element:Be(n)});return n.get(Number(i))}throw new sc(`JSON Pointer evaluation failed while evaluating token "${i}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:i,failedTokenPosition:s,element:Be(n)})},t)};class H2 extends tie{filterByFormat(t="generic"){const r=t==="generic"?"openapi;version":t;return this.filter(n=>n.includes(r))}findBy(t="3.1.0",r="generic"){const n=r==="generic"?`vnd.oai.openapi;version=${t}`:`vnd.oai.openapi+${r};version=${t}`;return this.find(s=>s.includes(n))||this.unknownMediaType}latest(t="generic"){return Eh(this.filterByFormat(t))}}const ou=new H2("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 Ml=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="callback"}},Dl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="components"}get schemas(){return this.get("schemas")}set schemas(t){this.set("schemas",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get requestBodies(){return this.get("requestBodies")}set requestBodies(t){this.set("requestBodies",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(t){this.set("securitySchemes",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}},ql=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="contact"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}get email(){return this.get("email")}set email(t){this.set("email",t)}},Mh=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(t){this.set("propertyName",t)}get mapping(){return this.get("mapping")}set mapping(t){this.set("mapping",t)}},Dh=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(t){this.set("contentType",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(t){this.set("allowedReserved",t)}},$l=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="example"}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get value(){return this.get("value")}set value(t){this.set("value",t)}get externalValue(){return this.get("externalValue")}set externalValue(t){this.set("externalValue",t)}},Fl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="externalDocumentation"}get description(){return this.get("description")}set description(t){this.set("description",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}},Cu=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new le.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new le.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}};Object.defineProperty(Cu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let Ll=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get termsOfService(){return this.get("termsOfService")}set termsOfService(t){this.set("termsOfService",t)}get contact(){return this.get("contact")}set contact(t){this.set("contact",t)}get license(){return this.get("license")}set license(t){this.set("license",t)}get version(){return this.get("version")}set version(t){this.set("version",t)}},Bl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="license"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}},Ul=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(t){this.set("operationRef",t)}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get operation(){if(it(this.operationRef)){var t;return(t=this.operationRef)===null||t===void 0?void 0:t.meta.get("operation")}if(it(this.operationId)){var r;return(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation")}}set operation(t){this.set("operation",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get server(){return this.get("server")}set server(t){this.set("server",t)}},Vl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="mediaType"}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get encoding(){return this.get("encoding")}set encoding(t){this.set("encoding",t)}},qh=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(t){this.set("authorizationUrl",t)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(t){this.set("tokenUrl",t)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(t){this.set("refreshUrl",t)}get scopes(){return this.get("scopes")}set scopes(t){this.set("scopes",t)}},$h=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(t){this.set("implicit",t)}get password(){return this.get("password")}set password(t){this.set("password",t)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(t){this.set("clientCredentials",t)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(t){this.set("authorizationCode",t)}},zl=class extends le.StringElement{constructor(t,r,n){super(t,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class Fh extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}let Wl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="operation"}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}set externalDocs(t){this.set("externalDocs",t)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new le.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get servers(){return this.get("severs")}set servers(t){this.set("servers",t)}},Ru=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="parameter"}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get required(){return this.hasKey("required")?this.get("required"):new le.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new le.BooleanElement(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}};Object.defineProperty(Ru.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let Jl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}},Kl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="paths"}},Hl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}},Gl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="requestBody"}get description(){return this.get("description")}set description(t){this.set("description",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get required(){return this.hasKey("required")?this.get("required"):new le.BooleanElement(!1)}set required(t){this.set("required",t)}},Yl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="response"}get description(){return this.get("description")}set description(t){this.set("description",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}},Xl=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="responses"}get default(){return this.get("default")}set default(t){this.set("default",t)}},Tu=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(t){this.set("id",t)}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get dependencies(){return this.get("dependencies")}set dependencies(t){this.set("dependencies",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){return this.get("definitions")}set definitions(t){this.set("definitions",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get base(){return this.get("base")}set base(t){this.set("base",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get media(){return this.get("media")}set media(t){this.set("media",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}};class Iu extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}class Zl extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(t){this.set("binaryEncoding",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}}let Ql=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="linkDescription"}get href(){return this.get("href")}set href(t){this.set("href",t)}get rel(){return this.get("rel")}set rel(t){this.set("rel",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){return this.get("mediaType")}set mediaType(t){this.set("mediaType",t)}get method(){return this.get("method")}set method(t){this.set("method",t)}get encType(){return this.get("encType")}set encType(t){this.set("encType",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}};const Wse={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Tu),t.register("jSONReference",Iu),t.register("media",Zl),t.register("linkDescription",Ql),t}},ef=e=>{if(Sr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Jse={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fs};let S9=class{constructor(t){z(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=ss(r.meta,t.meta),kl(t)&&r.meta.set("sourceMap",t.meta.get("sourceMap"))),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=ss(r.attributes,t.attributes))}},Ct=class extends S9{enter(t){return this.element=Be(t),wt}};const w9=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let i of r)delete n[i];Object.defineProperties(e,n)},Dc=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return r===null?t:Dc(r,[...t,r])},Kse=(...e)=>{if(e.length===0)return;let t;const r=e.map(n=>Dc(n));for(;r.every(n=>n.length>0);){const n=r.map(s=>s.pop()),i=n[0];if(n.every(s=>s===i))t=i;else break}return t},Z$=(e,t,r=[])=>{var n;const i=(n=Kse(...e))!==null&&n!==void 0?n:Object.prototype,s=Object.create(i),a=Dc(i);for(let o of e){let u=Dc(o);for(let c=u.length-1;c>=0;c--){let l=u[c];a.indexOf(l)===-1&&(w9(s,l,["constructor",...r]),a.push(l))}}return s.constructor=t,s},Hw=e=>e.filter((t,r)=>e.indexOf(t)==r),x9=new WeakMap,Hse=e=>x9.get(e),Gse=(e,t)=>x9.set(e,t),Q$=(e,t)=>{var r,n;const i=Hw([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let a of i)s[a]=Hw([...(r=e==null?void 0:e[a])!==null&&r!==void 0?r:[],...(n=t==null?void 0:t[a])!==null&&n!==void 0?n:[]]);return s},eF=(e,t)=>{var r,n,i,s;return{property:Q$((r=e==null?void 0:e.property)!==null&&r!==void 0?r:{},(n=t==null?void 0:t.property)!==null&&n!==void 0?n:{}),method:Q$((i=e==null?void 0:e.method)!==null&&i!==void 0?i:{},(s=t==null?void 0:t.method)!==null&&s!==void 0?s:{})}},Yse=(e,t)=>{var r,n,i,s,a,o;return{class:Hw([...(r=e==null?void 0:e.class)!==null&&r!==void 0?r:[],...(n=t==null?void 0:t.class)!==null&&n!==void 0?n:[]]),static:eF((i=e==null?void 0:e.static)!==null&&i!==void 0?i:{},(s=t==null?void 0:t.static)!==null&&s!==void 0?s:{}),instance:eF((a=e==null?void 0:e.instance)!==null&&a!==void 0?a:{},(o=t==null?void 0:t.instance)!==null&&o!==void 0?o:{})}},Xse=new Map,Zse=(...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let i of n){const s=Dc(i.prototype).map(c=>c.constructor),a=(t=Hse(i))!==null&&t!==void 0?t:[],u=[...s,...a].filter(c=>!r.has(c));for(let c of u)n.add(c);r.add(i),n.delete(i)}return[...r]},Qse=(...e)=>{const t=Zse(...e).map(r=>Xse.get(r)).filter(r=>!!r);return t.length==0?{}:t.length==1?t[0]:t.reduce((r,n)=>Yse(r,n))};function ke(...e){var t,r,n;const i=e.map(o=>o.prototype);function s(...o){for(const u of e)w9(this,new u(...o))}s.prototype=Z$(i,s),Object.setPrototypeOf(s,Z$(e,null,["prototype"]));let a=s;{const o=Qse(...e);for(let u of(t=o==null?void 0:o.class)!==null&&t!==void 0?t:[]){const c=u(a);c&&(a=c)}tF((r=o==null?void 0:o.static)!==null&&r!==void 0?r:{},a),tF((n=o==null?void 0:o.instance)!==null&&n!==void 0?n:{},a.prototype)}return Gse(a,e),a}const tF=(e,t)=>{const r=e.property,n=e.method;if(r)for(let i in r)for(let s of r[i])s(t,i);if(n)for(let i in n)for(let s of n[i])s(t,i,Object.getOwnPropertyDescriptor(t,i))};let Xn=class extends S9{constructor({specObj:r,...n}){super({...n});z(this,"specObj");z(this,"passingOptionsNames",["specObj","parent"]);this.specObj=r}retrievePassingOptions(){return i8(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=Fr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return wh($s,["visitors",...r],this.specObj)?Fr(["visitors",...r],this.specObj):Fr(["visitors",...r,"$visitor"],this.specObj)}retrieveVisitorInstance(r,n={}){const i=this.retrievePassingOptions(),s=this.retrieveVisitor(r),a={...i,...n};return new s(a)}toRefractedElement(r,n,i={}){const s=this.retrieveVisitorInstance(r,i);return s instanceof Ct&&(s==null?void 0:s.constructor)===Ct?Be(n):(Ir(n,s,i),s.element)}},Ha=class extends Xn{constructor({specPath:r,ignoredFields:n,...i}){super({...i});z(this,"specPath");z(this,"ignoredFields");this.specPath=r,this.ignoredFields=n||[]}ObjectElement(r){const n=this.specPath(r),i=this.retrieveFixedFields(n);return r.forEach((s,a,o)=>{if(it(a)&&i.includes(we(a))&&!this.ignoredFields.includes(we(a))){const u=this.toRefractedElement([...n,"fixedFields",we(a)],s),c=new le.MemberElement(Be(a),u);this.copyMetaAndAttributes(o,c),c.classes.push("fixed-field"),this.element.content.push(c)}else this.ignoredFields.includes(we(a))||this.element.content.push(Be(o))}),this.copyMetaAndAttributes(r,this.element),wt}};class jr{constructor({parent:t}){z(this,"parent");this.parent=t}}const A9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n)),G2=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Iu||e(n)&&t("JSONReference",n)&&r("object",n)),O9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zl||e(n)&&t("media",n)&&r("object",n)),eae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ql||e(n)&&t("linkDescription",n)&&r("object",n)),tae=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:G2,isJSONSchemaElement:A9,isLinkDescriptionElement:eae,isMediaElement:O9},Symbol.toStringTag,{value:"Module"}));let C9=class extends ke(Ha,jr,Ct){constructor(t){super(t),this.element=new Tu,this.specPath=rt(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(t){return this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,Ha.prototype.ObjectElement.call(this,t)}handleDialectIdentifier(t){if(_a(this.parent)&&!it(t.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(A9(this.parent)&&!it(t.get("$schema"))){const r=nu(we(this.parent.meta.get("inheritedDialectIdentifier")),we(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(t,r="id"){const n=this.parent!==void 0?Be(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new le.ArrayElement,i=we(t.get(r));Ah(i)&&n.push(i),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const as=e=>Ft(e)&&e.hasKey("$ref");let R9=class extends ke(Xn,jr,Ct){ObjectElement(t){const r=as(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,t),wt}ArrayElement(t){return this.element=new le.ArrayElement,this.element.classes.push("json-schema-items"),t.forEach(r=>{const n=as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}};class rae extends Ct{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-required"),r}}let nae=class extends Xn{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,...s}){super({...s});z(this,"specPath");z(this,"ignoredFields");z(this,"fieldPatternPredicate",s2);this.specPath=r,this.ignoredFields=n||[],typeof i=="function"&&(this.fieldPatternPredicate=i)}ObjectElement(r){return r.forEach((n,i,s)=>{if(!this.ignoredFields.includes(we(i))&&this.fieldPatternPredicate(we(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new le.MemberElement(Be(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(we(i))||this.element.content.push(Be(s))}),this.copyMetaAndAttributes(r,this.element),wt}},Sa=class extends nae{constructor(t){super(t),this.fieldPatternPredicate=Ah}},iae=class extends ke(Sa,jr,Ct){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=r=>as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},sae=class extends ke(Sa,jr,Ct){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class aae extends ke(Sa,jr,Ct){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class oae extends Ct{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-enum"),r}}let uae=class extends Ct{StringElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-type"),r}ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-type"),r}},cae=class extends ke(Xn,jr,Ct){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(t){return t.forEach(r=>{const n=as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}},lae=class extends ke(Xn,jr,Ct){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(t){return t.forEach(r=>{const n=as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}},fae=class extends ke(Xn,jr,Ct){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(t){return t.forEach(r=>{const n=as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}};class dae extends ke(Sa,jr,Ct){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=r=>as(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let pae=class extends ke(Xn,jr,Ct){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("json-schema-links")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","LinkDescription"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}};class hae extends ke(Ha,Ct){constructor(t){super(t),this.element=new Iu,this.specPath=rt(["document","objects","JSONReference"])}ObjectElement(t){const r=Ha.prototype.ObjectElement.call(this,t);return it(this.element.$ref)&&this.element.classes.push("reference-element"),r}}let mae=class extends Ct{StringElement(t){const r=this.enter(t);return this.element.classes.push("reference-value"),r}},gae=class extends Xn{constructor({alternator:r,...n}){super({...n});z(this,"alternator");this.alternator=r}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>v2(s,rt(a),xh)),i=p8(n)(r);return this.element=this.toRefractedElement(i,r),wt}},jo=class extends gae{constructor(t){super(t),this.alternator=[{predicate:as,specPath:["document","objects","JSONReference"]},{predicate:Ms,specPath:["document","objects","JSONSchema"]}]}};class yae extends ke(Ha,Ct){constructor(t){super(t),this.element=new Zl,this.specPath=rt(["document","objects","Media"])}}let T9=class extends ke(Ha,Ct){constructor(t){super(t),this.element=new Ql,this.specPath=rt(["document","objects","LinkDescription"])}};const Jr={visitors:{value:Ct,JSONSchemaOrJSONReferenceVisitor:jo,document:{objects:{JSONSchema:{$visitor:C9,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:jo,items:R9,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:rae,properties:iae,additionalProperties:jo,patternProperties:sae,dependencies:aae,enum:oae,type:uae,allOf:cae,anyOf:lae,oneOf:fae,not:jo,definitions:dae,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:pae,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:hae,fixedFields:{$ref:mae}},Media:{$visitor:yae,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:T9,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:jo,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:jo}}}}}},vae=()=>{const e=Ls(Wse);return{predicates:{...tae,isStringElement:it},namespace:e}},bae=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Jr}={})=>{const i=le.refract(e),s=Ea(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ds(o.element,r,{toolboxCreator:vae,visitorOptions:{keyMap:Jse,nodeTypeGetter:ef}})},Lh=e=>(t,r={})=>bae(t,{specPath:e,...r});Tu.refract=Lh(["visitors","document","objects","JSONSchema","$visitor"]);Iu.refract=Lh(["visitors","document","objects","JSONReference","$visitor"]);Zl.refract=Lh(["visitors","document","objects","Media","$visitor"]);Ql.refract=Lh(["visitors","document","objects","LinkDescription","$visitor"]);let Bh=class extends Tu{constructor(t,r,n){super(t,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new yt("idProp getter in Schema class is not not supported.")}set idProp(t){throw new yt("idProp setter in Schema class is not not supported.")}get $schema(){throw new yt("$schema getter in Schema class is not not supported.")}set $schema(t){throw new yt("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){throw new yt("patternProperties getter in Schema class is not not supported.")}set patternProperties(t){throw new yt("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new yt("dependencies getter in Schema class is not not supported.")}set dependencies(t){throw new yt("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(t){this.set("type",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){throw new yt("definitions getter in Schema class is not not supported.")}set definitions(t){throw new yt("definitions setter in Schema class is not not supported.")}get base(){throw new yt("base getter in Schema class is not not supported.")}set base(t){throw new yt("base setter in Schema class is not not supported.")}get links(){throw new yt("links getter in Schema class is not not supported.")}set links(t){throw new yt("links setter in Schema class is not not supported.")}get media(){throw new yt("media getter in Schema class is not not supported.")}set media(t){throw new yt("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(t){this.set("nullable",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}},tf=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="securityRequirement"}},rf=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="securityScheme"}get type(){return this.get("type")}set type(t){this.set("type",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get scheme(){return this.get("scheme")}set scheme(t){this.set("scheme",t)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(t){this.set("bearerFormat",t)}get flows(){return this.get("flows")}set flows(t){this.set("flows",t)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(t){this.set("openIdConnectUrl",t)}},nf=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="server"}get url(){return this.get("url")}set url(t){this.set("url",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get variables(){return this.get("variables")}set variables(t){this.set("variables",t)}},sf=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}},Uh=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="tag"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}},Vh=class extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="xml"}get name(){return this.get("name")}set name(t){this.set("name",t)}get namespace(){return this.get("namespace")}set namespace(t){this.set("namespace",t)}get prefix(){return this.get("prefix")}set prefix(t){this.set("prefix",t)}get attribute(){return this.get("attribute")}set attribute(t){this.set("attribute",t)}get wrapped(){return this.get("wrapped")}set wrapped(t){this.set("wrapped",t)}};const _ae={namespace:e=>{const{base:t}=e;return t.register("callback",Ml),t.register("components",Dl),t.register("contact",ql),t.register("discriminator",Mh),t.register("encoding",Dh),t.register("example",$l),t.register("externalDocumentation",Fl),t.register("header",Cu),t.register("info",Ll),t.register("license",Bl),t.register("link",Ul),t.register("mediaType",Vl),t.register("oAuthFlow",qh),t.register("oAuthFlows",$h),t.register("openapi",zl),t.register("openApi3_0",Fh),t.register("operation",Wl),t.register("parameter",Ru),t.register("pathItem",Jl),t.register("paths",Kl),t.register("reference",Hl),t.register("requestBody",Gl),t.register("response",Yl),t.register("responses",Xl),t.register("schema",Bh),t.register("securityRequirement",tf),t.register("securityScheme",rf),t.register("server",nf),t.register("serverVariable",sf),t.register("tag",Uh),t.register("xml",Vh),t}},op=class op extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(op.primaryClass)}};z(op,"primaryClass","servers");let Yd=op;const up=class up extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(up.primaryClass)}};z(up,"primaryClass","security");let Gw=up;const cp=class cp extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(cp.primaryClass)}};z(cp,"primaryClass","tags");let Yw=cp;const lp=class lp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(lp.primaryClass)}};z(lp,"primaryClass","server-variables");let Xw=lp;const fp=class fp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(fp.primaryClass)}};z(fp,"primaryClass","components-schemas");let Xd=fp;const dp=class dp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(dp.primaryClass)}};z(dp,"primaryClass","components-responses");let Zw=dp;const pp=class pp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(pp.primaryClass),this.classes.push("parameters")}};z(pp,"primaryClass","components-parameters");let Qw=pp;const hp=class hp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(hp.primaryClass),this.classes.push("examples")}};z(hp,"primaryClass","components-examples");let ex=hp;const mp=class mp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(mp.primaryClass)}};z(mp,"primaryClass","components-request-bodies");let tx=mp;const gp=class gp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(gp.primaryClass)}};z(gp,"primaryClass","components-headers");let rx=gp;const yp=class yp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(yp.primaryClass)}};z(yp,"primaryClass","components-security-schemes");let nx=yp;const vp=class vp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(vp.primaryClass)}};z(vp,"primaryClass","components-links");let ix=vp;const bp=class bp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(bp.primaryClass)}};z(bp,"primaryClass","components-callbacks");let sx=bp;const _p=class _p extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(_p.primaryClass),this.classes.push("servers")}};z(_p,"primaryClass","path-item-servers");let ax=_p;const Ep=class Ep extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ep.primaryClass),this.classes.push("parameters")}};z(Ep,"primaryClass","path-item-parameters");let ox=Ep;const Sp=class Sp extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Sp.primaryClass),this.classes.push("parameters")}};z(Sp,"primaryClass","operation-parameters");let Zd=Sp;const wp=class wp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(wp.primaryClass),this.classes.push("examples")}};z(wp,"primaryClass","parameter-examples");let ux=wp;const xp=class xp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(xp.primaryClass),this.classes.push("content")}};z(xp,"primaryClass","parameter-content");let cx=xp;const Ap=class Ap extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ap.primaryClass)}};z(Ap,"primaryClass","operation-tags");let lx=Ap;const Op=class Op extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Op.primaryClass)}};z(Op,"primaryClass","operation-callbacks");let fx=Op;const Cp=class Cp extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Cp.primaryClass),this.classes.push("security")}};z(Cp,"primaryClass","operation-security");let Qd=Cp;var Fa;let Eae=(Fa=class extends le.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Fa.primaryClass),this.classes.push("servers")}},z(Fa,"primaryClass","operation-servers"),Fa);const Rp=class Rp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Rp.primaryClass),this.classes.push("content")}};z(Rp,"primaryClass","request-body-content");let dx=Rp;const Tp=class Tp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Tp.primaryClass),this.classes.push("examples")}};z(Tp,"primaryClass","media-type-examples");let px=Tp;const Ip=class Ip extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ip.primaryClass)}};z(Ip,"primaryClass","media-type-encoding");let hx=Ip;const jp=class jp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(jp.primaryClass)}};z(jp,"primaryClass","encoding-headers");let mx=jp;const kp=class kp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(kp.primaryClass)}};z(kp,"primaryClass","response-headers");let gx=kp;const Pp=class Pp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Pp.primaryClass),this.classes.push("content")}};z(Pp,"primaryClass","response-content");let yx=Pp;const Np=class Np extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Np.primaryClass)}};z(Np,"primaryClass","response-links");let vx=Np;const Mp=class Mp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Mp.primaryClass)}};z(Mp,"primaryClass","discriminator-mapping");let bx=Mp;const Dp=class Dp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Dp.primaryClass)}};z(Dp,"primaryClass","oauth-flow-scopes");let _x=Dp;const qp=class qp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(qp.primaryClass)}};z(qp,"primaryClass","link-parameters");let Ex=qp;const $p=class $p extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push($p.primaryClass),this.classes.push("examples")}};z($p,"primaryClass","header-examples");let Sx=$p;const Fp=class Fp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Fp.primaryClass),this.classes.push("content")}};z(Fp,"primaryClass","header-content");let wx=Fp;const Sae=e=>{if(Sr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},wae={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"],...fs};class I9{constructor(t={}){z(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=ss(r.meta,t.meta),kl(t)&&r.meta.set("sourceMap",t.meta.get("sourceMap"))),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=ss(r.attributes,t.attributes))}}class De extends I9{enter(t){return this.element=Be(t),wt}}class Fi extends I9{constructor({specObj:r,passingOptionsNames:n,openApiGenericElement:i,openApiSemanticElement:s,...a}){super({...a});z(this,"specObj");z(this,"passingOptionsNames",["specObj","openApiGenericElement","openApiSemanticElement"]);z(this,"openApiGenericElement");z(this,"openApiSemanticElement");this.specObj=r,this.openApiGenericElement=i,this.openApiSemanticElement=s,Array.isArray(n)&&(this.passingOptionsNames=n)}retrievePassingOptions(){return i8(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=Fr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return wh($s,["visitors",...r],this.specObj)?Fr(["visitors",...r],this.specObj):Fr(["visitors",...r,"$visitor"],this.specObj)}retrieveVisitorInstance(r,n={}){const i=this.retrievePassingOptions(),s=this.retrieveVisitor(r),a={...i,...n};return new s(a)}toRefractedElement(r,n,i={}){const s=this.retrieveVisitorInstance(r,i);return s instanceof De&&(s==null?void 0:s.constructor)===De?Be(n):(Ir(n,s,i),s.element)}}const er=e=>Ft(e)&&e.hasKey("$ref"),xae=Ft,Aae=Ft,j9=e=>it(e.key)&&a8("x-",we(e.key));class dt extends Fi{constructor({specPath:r,ignoredFields:n,canSupportSpecificationExtensions:i,specificationExtensionPredicate:s,...a}){super({...a});z(this,"specPath");z(this,"ignoredFields");z(this,"canSupportSpecificationExtensions",!0);z(this,"specificationExtensionPredicate",j9);this.specPath=r,this.ignoredFields=n||[],typeof i=="boolean"&&(this.canSupportSpecificationExtensions=i),typeof s=="function"&&(this.specificationExtensionPredicate=s)}ObjectElement(r){const n=this.specPath(r),i=this.retrieveFixedFields(n);return r.forEach((s,a,o)=>{if(it(a)&&i.includes(we(a))&&!this.ignoredFields.includes(we(a))){const u=this.toRefractedElement([...n,"fixedFields",we(a)],s),c=new le.MemberElement(Be(a),u);this.copyMetaAndAttributes(o,c),c.classes.push("fixed-field"),this.element.content.push(c)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(o)){const u=this.toRefractedElement(["document","extension"],o);this.element.content.push(u)}else this.ignoredFields.includes(we(a))||this.element.content.push(Be(o))}),this.copyMetaAndAttributes(r,this.element),wt}}class Oae extends ke(dt,De){constructor(t){super(t),this.element=new Fh,this.specPath=rt(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){return dt.prototype.ObjectElement.call(this,t)}}class Cae extends ke(Fi,De){StringElement(t){const r=new zl(we(t));return this.copyMetaAndAttributes(t,r),this.element=r,wt}}class Rae extends Fi{MemberElement(t){return this.element=Be(t),this.element.classes.push("specification-extension"),wt}}let Tae=class extends ke(dt,De){constructor(t){super(t),this.element=new Ll,this.specPath=rt(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};class Iae extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}}let jae=class extends ke(dt,De){constructor(t){super(t),this.element=new ql,this.specPath=rt(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},kae=class extends ke(dt,De){constructor(t){super(t),this.element=new Bl,this.specPath=rt(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},Pae=class extends ke(dt,De){constructor(t){super(t),this.element=new Ul,this.specPath=rt(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return(it(this.element.operationId)||it(this.element.operationRef))&&this.element.classes.push("reference-element"),r}};class Nae extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class Mae extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class uu extends Fi{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,canSupportSpecificationExtensions:s,specificationExtensionPredicate:a,...o}){super({...o});z(this,"specPath");z(this,"ignoredFields");z(this,"fieldPatternPredicate",s2);z(this,"canSupportSpecificationExtensions",!1);z(this,"specificationExtensionPredicate",j9);this.specPath=r,this.ignoredFields=n||[],typeof i=="function"&&(this.fieldPatternPredicate=i),typeof s=="boolean"&&(this.canSupportSpecificationExtensions=s),typeof a=="function"&&(this.specificationExtensionPredicate=a)}ObjectElement(r){return r.forEach((n,i,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const a=this.toRefractedElement(["document","extension"],s);this.element.content.push(a)}else if(!this.ignoredFields.includes(we(i))&&this.fieldPatternPredicate(we(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new le.MemberElement(Be(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(we(i))||this.element.content.push(Be(s))}),this.copyMetaAndAttributes(r,this.element),wt}}class pt extends uu{constructor(t){super(t),this.fieldPatternPredicate=Ah}}let Dae=class extends ke(pt,De){constructor(t){super(t),this.element=new Ex,this.specPath=rt(["value"])}},qae=class extends ke(dt,De){constructor(t){super(t),this.element=new nf,this.specPath=rt(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};class $ae extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("server-url"),r}}let Y2=class extends ke(Fi,De){constructor(t){super(t),this.element=new Yd}ArrayElement(t){return t.forEach(r=>{const n=xae(r)?["document","objects","Server"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}},Fae=class extends ke(dt,De){constructor(t){super(t),this.element=new sf,this.specPath=rt(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class Lae extends ke(pt,De){constructor(t){super(t),this.element=new Xw,this.specPath=rt(["document","objects","ServerVariable"])}}let Bae=class extends ke(dt,De){constructor(t){super(t),this.element=new Vl,this.specPath=rt(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class os extends Fi{constructor({alternator:r,...n}){super({...n});z(this,"alternator");this.alternator=r||[]}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>v2(s,rt(a),xh)),i=p8(n)(r);return this.element=this.toRefractedElement(i,r),wt}}const Uae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ml||e(n)&&t("callback",n)&&r("object",n)),Vae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dl||e(n)&&t("components",n)&&r("object",n)),zae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ql||e(n)&&t("contact",n)&&r("object",n)),Wae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $l||e(n)&&t("example",n)&&r("object",n)),Jae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fl||e(n)&&t("externalDocumentation",n)&&r("object",n)),ju=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cu||e(n)&&t("header",n)&&r("object",n)),Kae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ll||e(n)&&t("info",n)&&r("object",n)),Hae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bl||e(n)&&t("license",n)&&r("object",n)),Gae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ul||e(n)&&t("link",n)&&r("object",n)),Yae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zl||e(n)&&t("openapi",n)&&r("string",n)),Xae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof Fh||e(i)&&t("openApi3_0",i)&&r("object",i)&&n("api",i)),k9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wl||e(n)&&t("operation",n)&&r("object",n)),Zae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ru||e(n)&&t("parameter",n)&&r("object",n)),X2=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jl||e(n)&&t("pathItem",n)&&r("object",n)),Qae=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kl||e(n)&&t("paths",n)&&r("object",n)),zt=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hl||e(n)&&t("reference",n)&&r("object",n)),eoe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gl||e(n)&&t("requestBody",n)&&r("object",n)),zh=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yl||e(n)&&t("response",n)&&r("object",n)),toe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xl||e(n)&&t("responses",n)&&r("object",n)),roe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bh||e(n)&&t("schema",n)&&r("object",n)),noe=e=>jl(e)&&e.classes.includes("boolean-json-schema"),ioe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tf||e(n)&&t("securityRequirement",n)&&r("object",n)),soe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rf||e(n)&&t("securityScheme",n)&&r("object",n)),aoe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nf||e(n)&&t("server",n)&&r("object",n)),ooe=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sf||e(n)&&t("serverVariable",n)&&r("object",n)),Wh=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vl||e(n)&&t("mediaType",n)&&r("object",n)),P9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof Yd||e(i)&&t("array",i)&&r("array",i)&&n("servers",i)),uoe=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:noe,isCallbackElement:Uae,isComponentsElement:Vae,isContactElement:zae,isExampleElement:Wae,isExternalDocumentationElement:Jae,isHeaderElement:ju,isInfoElement:Kae,isLicenseElement:Hae,isLinkElement:Gae,isMediaTypeElement:Wh,isOpenApi3_0Element:Xae,isOpenapiElement:Yae,isOperationElement:k9,isParameterElement:Zae,isPathItemElement:X2,isPathsElement:Qae,isReferenceElement:zt,isRequestBodyElement:eoe,isResponseElement:zh,isResponsesElement:toe,isSchemaElement:roe,isSecurityRequirementElement:ioe,isSecuritySchemeElement:soe,isServerElement:aoe,isServerVariableElement:ooe,isServersElement:P9},Symbol.toStringTag,{value:"Module"}));let coe=class extends ke(os,De){constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Z2=class extends ke(pt,De){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("examples"),this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}},loe=class extends Z2{constructor(t){super(t),this.element=new px}},foe=class extends ke(pt,De){constructor(t){super(t),this.element=new hx,this.specPath=rt(["document","objects","Encoding"])}},doe=class extends ke(pt,De){constructor(t){super(t),this.element=new tf,this.specPath=rt(["value"])}},poe=class extends ke(Fi,De){constructor(t){super(t),this.element=new Gw}ArrayElement(t){return t.forEach(r=>{if(Ft(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(Be(r))}),this.copyMetaAndAttributes(t,this.element),wt}},hoe=class extends ke(dt,De){constructor(t){super(t),this.element=new Dl,this.specPath=rt(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},moe=class extends ke(dt,De){constructor(t){super(t),this.element=new Uh,this.specPath=rt(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},goe=class extends ke(dt,De){constructor(t){super(t),this.element=new Hl,this.specPath=rt(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return it(this.element.$ref)&&this.element.classes.push("reference-element"),r}},yoe=class extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}},voe=class extends ke(dt,De){constructor(t){super(t),this.element=new Ru,this.specPath=rt(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return Ft(this.element.contentProp)&&this.element.contentProp.filter(Wh).forEach((n,i)=>{n.setMetaProperty("media-type",we(i))}),r}},boe=class extends ke(os,De){constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},_oe=class extends ke(dt,De){constructor(t){super(t),this.element=new Cu,this.specPath=rt(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},Eoe=class extends ke(os,De){constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Soe=class extends Z2{constructor(t){super(t),this.element=new Sx}},Jh=class extends ke(pt,De){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("content"),this.specPath=rt(["document","objects","MediaType"])}},woe=class extends Jh{constructor(t){super(t),this.element=new wx}},xoe=class extends ke(dt,De){constructor(t){super(t),this.element=new Bh,this.specPath=rt(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const rF=Jr.visitors.document.objects.JSONSchema.fixedFields.allOf;let Aoe=class extends rF{ArrayElement(t){const r=rF.prototype.ArrayElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const nF=Jr.visitors.document.objects.JSONSchema.fixedFields.anyOf;let Ooe=class extends nF{ArrayElement(t){const r=nF.prototype.ArrayElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const iF=Jr.visitors.document.objects.JSONSchema.fixedFields.oneOf;let Coe=class extends iF{ArrayElement(t){const r=iF.prototype.ArrayElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const sF=Jr.visitors.document.objects.JSONSchema.fixedFields.items;let Roe=class extends sF{ObjectElement(t){const r=sF.prototype.ObjectElement.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(t){return this.enter(t)}};const aF=Jr.visitors.document.objects.JSONSchema.fixedFields.properties;let Toe=class extends aF{ObjectElement(t){const r=aF.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const Ioe=Jr.visitors.document.objects.JSONSchema.fixedFields.type;class joe extends Ioe{ArrayElement(t){return this.enter(t)}}const oF=Jr.visitors.JSONSchemaOrJSONReferenceVisitor;class uF extends oF{ObjectElement(t){const r=oF.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}let koe=class extends ke(dt,De){constructor(t){super(t),this.element=new Mh,this.specPath=rt(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class Poe extends ke(pt,De){constructor(t){super(t),this.element=new bx,this.specPath=rt(["value"])}}let Noe=class extends ke(dt,De){constructor(t){super(t),this.element=new Vh,this.specPath=rt(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},Moe=class extends Z2{constructor(t){super(t),this.element=new ux}},Doe=class extends Jh{constructor(t){super(t),this.element=new cx}},qoe=class extends ke(pt,De){constructor(t){super(t),this.element=new Xd,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}},$oe=class extends ke(pt,De){constructor(t){super(t),this.element=new Zw,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(zh).forEach((n,i)=>{n.setMetaProperty("http-status-code",we(i))}),r}},Foe=class extends ke(pt,De){constructor(t){super(t),this.element=new Qw,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","parameter")}),r}},Loe=class extends ke(pt,De){constructor(t){super(t),this.element=new ex,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}};class Boe extends ke(pt,De){constructor(t){super(t),this.element=new tx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","requestBody")}),r}}let Uoe=class extends ke(pt,De){constructor(t){super(t),this.element=new rx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.filter(ju).forEach((n,i)=>{n.setMetaProperty("header-name",we(i))}),r}};class Voe extends ke(pt,De){constructor(t){super(t),this.element=new nx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","securityScheme")}),r}}let zoe=class extends ke(pt,De){constructor(t){super(t),this.element=new ix,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}},Woe=class extends ke(pt,De){constructor(t){super(t),this.element=new sx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}},Joe=class extends ke(dt,De){constructor(t){super(t),this.element=new $l,this.specPath=rt(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return it(this.element.externalValue)&&this.element.classes.push("reference-element"),r}};class Koe extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let Hoe=class extends ke(dt,De){constructor(t){super(t),this.element=new Fl,this.specPath=rt(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},Goe=class extends ke(dt,De){constructor(t){super(t),this.element=new Dh,this.specPath=rt(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return Ft(this.element.headers)&&this.element.headers.filter(ju).forEach((n,i)=>{n.setMetaProperty("header-name",we(i))}),r}},Yoe=class extends ke(pt,De){constructor(t){super(t),this.element=new mx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!ju(n))return;const s=we(i);n.setMetaProperty("headerName",s)}),r}},Xoe=class extends ke(uu,De){constructor(t){super(t),this.element=new Kl,this.specPath=rt(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ms}ObjectElement(t){const r=uu.prototype.ObjectElement.call(this,t);return this.element.filter(X2).forEach((n,i)=>{i.classes.push("openapi-path-template"),i.classes.push("path-template"),n.setMetaProperty("path",Be(i))}),r}},Zoe=class extends ke(dt,De){constructor(t){super(t),this.element=new Gl,this.specPath=rt(["document","objects","RequestBody"])}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return Ft(this.element.contentProp)&&this.element.contentProp.filter(Wh).forEach((n,i)=>{n.setMetaProperty("media-type",we(i))}),r}},Qoe=class extends Jh{constructor(t){super(t),this.element=new dx}},eue=class extends ke(uu,De){constructor(t){super(t),this.element=new Ml,this.specPath=rt(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(X2).forEach((n,i)=>{n.setMetaProperty("runtime-expression",we(i))}),r}},tue=class extends ke(dt,De){constructor(t){super(t),this.element=new Yl,this.specPath=rt(["document","objects","Response"])}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return Ft(this.element.contentProp)&&this.element.contentProp.filter(Wh).forEach((n,i)=>{n.setMetaProperty("media-type",we(i))}),Ft(this.element.headers)&&this.element.headers.filter(ju).forEach((n,i)=>{n.setMetaProperty("header-name",we(i))}),r}};class rue extends ke(pt,De){constructor(t){super(t),this.element=new gx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!ju(n))return;const s=we(i);n.setMetaProperty("header-name",s)}),r}}class nue extends Jh{constructor(t){super(t),this.element=new yx}}class iue extends ke(pt,De){constructor(t){super(t),this.element=new vx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}}class cF extends ke(dt,uu){constructor({specPathFixedFields:r,specPathPatternedFields:n,...i}){super({...i});z(this,"specPathFixedFields");z(this,"specPathPatternedFields");this.specPathFixedFields=r,this.specPathPatternedFields=n}ObjectElement(r){const{specPath:n,ignoredFields:i}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(r));this.ignoredFields=[...i,...Wte(r.keys(),s)],dt.prototype.ObjectElement.call(this,r),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,uu.prototype.ObjectElement.call(this,r)}catch(s){throw this.specPath=n,s}return wt}}let sue=class extends ke(cF,De){constructor(t){super(t),this.element=new Xl,this.specPathFixedFields=rt(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>er(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ere(100,600).join("|")})$`).test(String(r))}ObjectElement(t){const r=cF.prototype.ObjectElement.call(this,t);return this.element.filter(zt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(zh).forEach((n,i)=>{const s=Be(i);this.fieldPatternPredicate(we(s))&&n.setMetaProperty("http-status-code",s)}),r}};class aue extends ke(os,De){constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","Response"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)?this.element.setMetaProperty("referenced-element","response"):zh(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}let oue=class extends ke(dt,De){constructor(t){super(t),this.element=new Wl,this.specPath=rt(["document","objects","Operation"])}},uue=class extends De{constructor(t){super(t),this.element=new lx}ArrayElement(t){return this.element=this.element.concat(Be(t)),wt}},N9=class extends ke(Fi,De){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("parameters")}ArrayElement(t){return t.forEach(r=>{const n=er(r)?["document","objects","Reference"]:["document","objects","Parameter"],i=this.toRefractedElement(n,r);zt(i)&&i.setMetaProperty("referenced-element","parameter"),this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}},cue=class extends N9{constructor(t){super(t),this.element=new Zd}},lue=class extends os{constructor(t){super(t),this.alternator=[{predicate:er,specPath:["document","objects","Reference"]},{predicate:Ms,specPath:["document","objects","RequestBody"]}]}ObjectElement(t){const r=os.prototype.enter.call(this,t);return zt(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class fue extends ke(pt,De){constructor(r){super(r);z(this,"specPath");this.element=new fx,this.specPath=n=>er(n)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(r){const n=pt.prototype.ObjectElement.call(this,r);return this.element.filter(zt).forEach(i=>{i.setMetaProperty("referenced-element","callback")}),n}}class due extends ke(Fi,De){constructor(t){super(t),this.element=new Qd}ArrayElement(t){return t.forEach(r=>{const n=Ft(r)?["document","objects","SecurityRequirement"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}}let pue=class extends Y2{constructor(t){super(t),this.element=new Eae}},hue=class extends ke(dt,De){constructor(t){super(t),this.element=new Jl,this.specPath=rt(["document","objects","PathItem"])}ObjectElement(t){const r=dt.prototype.ObjectElement.call(this,t);return this.element.filter(k9).forEach((n,i)=>{const s=Be(i);s.content=we(s).toUpperCase(),n.setMetaProperty("http-method",s)}),it(this.element.$ref)&&this.element.classes.push("reference-element"),r}};class mue extends De{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class gue extends Y2{constructor(t){super(t),this.element=new ax}}class yue extends N9{constructor(t){super(t),this.element=new ox}}let vue=class extends ke(dt,De){constructor(t){super(t),this.element=new rf,this.specPath=rt(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},bue=class extends ke(dt,De){constructor(t){super(t),this.element=new $h,this.specPath=rt(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},_ue=class extends ke(dt,De){constructor(t){super(t),this.element=new qh,this.specPath=rt(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class Eue extends ke(pt,De){constructor(t){super(t),this.element=new _x,this.specPath=rt(["value"])}}class Sue extends ke(Fi,De){constructor(t){super(t),this.element=new Yw}ArrayElement(t){return t.forEach(r=>{const n=Aae(r)?["document","objects","Tag"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),wt}}const{fixedFields:Pr}=Jr.visitors.document.objects.JSONSchema,ge={visitors:{value:De,document:{objects:{OpenApi:{$visitor:Oae,fixedFields:{openapi:Cae,info:{$ref:"#/visitors/document/objects/Info"},servers:Y2,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:poe,tags:Sue,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Tae,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:Iae}},Contact:{$visitor:jae,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:kae,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:qae,fixedFields:{url:$ae,description:{$ref:"#/visitors/value"},variables:Lae}},ServerVariable:{$visitor:Fae,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:hoe,fixedFields:{schemas:qoe,responses:$oe,parameters:Foe,examples:Loe,requestBodies:Boe,headers:Uoe,securitySchemes:Voe,links:zoe,callbacks:Woe}},Paths:{$visitor:Xoe},PathItem:{$visitor:hue,fixedFields:{$ref:mue,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:gue,parameters:yue}},Operation:{$visitor:oue,fixedFields:{tags:uue,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:cue,requestBody:lue,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:fue,deprecated:{$ref:"#/visitors/value"},security:due,servers:pue}},ExternalDocumentation:{$visitor:Hoe,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:voe,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:boe,example:{$ref:"#/visitors/value"},examples:Moe,content:Doe}},RequestBody:{$visitor:Zoe,fixedFields:{description:{$ref:"#/visitors/value"},content:Qoe,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Bae,fixedFields:{schema:coe,example:{$ref:"#/visitors/value"},examples:loe,encoding:foe}},Encoding:{$visitor:Goe,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Yoe,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:sue,fixedFields:{default:aue}},Response:{$visitor:tue,fixedFields:{description:{$ref:"#/visitors/value"},headers:rue,content:nue,links:iue}},Callback:{$visitor:eue},Example:{$visitor:Joe,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Koe}},Link:{$visitor:Pae,fixedFields:{operationRef:Nae,operationId:Mae,parameters:Dae,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:_oe,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:Eoe,example:{$ref:"#/visitors/value"},examples:Soe,content:woe}},Tag:{$visitor:moe,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:goe,fixedFields:{$ref:yoe}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:xoe,fixedFields:{title:Pr.title,multipleOf:Pr.multipleOf,maximum:Pr.maximum,exclusiveMaximum:Pr.exclusiveMaximum,minimum:Pr.minimum,exclusiveMinimum:Pr.exclusiveMinimum,maxLength:Pr.maxLength,minLength:Pr.minLength,pattern:Pr.pattern,maxItems:Pr.maxItems,minItems:Pr.minItems,uniqueItems:Pr.uniqueItems,maxProperties:Pr.maxProperties,minProperties:Pr.minProperties,required:Pr.required,enum:Pr.enum,type:joe,allOf:Aoe,anyOf:Ooe,oneOf:Coe,not:uF,items:Roe,properties:Toe,additionalProperties:uF,description:Pr.description,format:Pr.format,default:Pr.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:koe,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Poe}},XML:{$visitor:Noe,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:vue,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:bue,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:_ue,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Eue}},SecurityRequirement:{$visitor:doe}},extension:{$visitor:Rae}}}},wue=()=>{const e=Ls(_ae);return{predicates:{...uoe,isElement:Sr,isStringElement:it,isArrayElement:bn,isObjectElement:Ft,isMemberElement:$i,includesClasses:jh,hasElementSourceMap:kl},namespace:e}},xue=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=le.refract(e),i=Ea(ge),s=Fr(t,i),a=new s({specObj:i});return Ir(n,a),ds(a.element,r,{toolboxCreator:wue,visitorOptions:{keyMap:wae,nodeTypeGetter:Sae}})},kt=e=>(t,r={})=>xue(t,{specPath:e,...r});Ml.refract=kt(["visitors","document","objects","Callback","$visitor"]);Dl.refract=kt(["visitors","document","objects","Components","$visitor"]);ql.refract=kt(["visitors","document","objects","Contact","$visitor"]);$l.refract=kt(["visitors","document","objects","Example","$visitor"]);Mh.refract=kt(["visitors","document","objects","Discriminator","$visitor"]);Dh.refract=kt(["visitors","document","objects","Encoding","$visitor"]);Fl.refract=kt(["visitors","document","objects","ExternalDocumentation","$visitor"]);Cu.refract=kt(["visitors","document","objects","Header","$visitor"]);Ll.refract=kt(["visitors","document","objects","Info","$visitor"]);Bl.refract=kt(["visitors","document","objects","License","$visitor"]);Ul.refract=kt(["visitors","document","objects","Link","$visitor"]);Vl.refract=kt(["visitors","document","objects","MediaType","$visitor"]);qh.refract=kt(["visitors","document","objects","OAuthFlow","$visitor"]);$h.refract=kt(["visitors","document","objects","OAuthFlows","$visitor"]);zl.refract=kt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Fh.refract=kt(["visitors","document","objects","OpenApi","$visitor"]);Wl.refract=kt(["visitors","document","objects","Operation","$visitor"]);Ru.refract=kt(["visitors","document","objects","Parameter","$visitor"]);Jl.refract=kt(["visitors","document","objects","PathItem","$visitor"]);Kl.refract=kt(["visitors","document","objects","Paths","$visitor"]);Hl.refract=kt(["visitors","document","objects","Reference","$visitor"]);Gl.refract=kt(["visitors","document","objects","RequestBody","$visitor"]);Yl.refract=kt(["visitors","document","objects","Response","$visitor"]);Xl.refract=kt(["visitors","document","objects","Responses","$visitor"]);Bh.refract=kt(["visitors","document","objects","Schema","$visitor"]);tf.refract=kt(["visitors","document","objects","SecurityRequirement","$visitor"]);rf.refract=kt(["visitors","document","objects","SecurityScheme","$visitor"]);nf.refract=kt(["visitors","document","objects","Server","$visitor"]);sf.refract=kt(["visitors","document","objects","ServerVariable","$visitor"]);Uh.refract=kt(["visitors","document","objects","Tag","$visitor"]);Vh.refract=kt(["visitors","document","objects","XML","$visitor"]);class Kh extends Ml{}class Hh extends Dl{get pathItems(){return this.get("pathItems")}set pathItems(t){this.set("pathItems",t)}}let Gh=class extends ql{};class Q2 extends Mh{}class eC extends Dh{}let Yh=class extends $l{};class Xh extends Fl{}class Zh extends Cu{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}let Qh=class extends Ll{get license(){return this.get("license")}set license(t){this.set("license",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}};const Lp=class Lp extends le.StringElement{constructor(t,r,n){super(t,r,n),this.element="jsonSchemaDialect"}};z(Lp,"default",new Lp("https://spec.openapis.org/oas/3.1/dialect/base"));let Ga=Lp,em=class extends Bl{get identifier(){return this.get("identifier")}set identifier(t){this.set("identifier",t)}},tm=class extends Ul{};class rm extends Vl{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class tC extends qh{}class rC extends $h{}class nC extends zl{}class wa extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(t){this.set("jsonSchemaDialect",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get webhooks(){return this.get("webhooks")}set webhooks(t){this.set("webhooks",t)}}let af=class extends Wl{get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}};class nm extends Ru{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class ma extends Jl{get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}}class im extends Kl{}class xa extends Hl{}Object.defineProperty(xa.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});Object.defineProperty(xa.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});class sm extends Gl{}let am=class extends Yl{},om=class extends Xl{},of=class extends Tu{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new yt("id keyword from Core vocabulary has been renamed to $id.")}set idProp(t){throw new yt("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(t){this.set("$id",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get const(){return this.get("const")}set const(t){this.set("const",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}},uf=class extends Ql{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get schema(){throw new yt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(t){throw new yt("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}get method(){throw new yt("method keyword from Hyper-Schema vocabulary has been removed.")}set method(t){throw new yt("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new yt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(t){throw new yt("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(t){this.set("submissionEncType",t)}};const Aue={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",of),t.register("jSONReference",Iu),t.register("media",Zl),t.register("linkDescription",uf),t}},Oue={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fs};let M9=class extends C9{constructor(t){super(t),this.element=new of}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(t){const r=this.enter(t);return this.element.classes.push("boolean-json-schema"),r}handleSchemaIdentifier(t,r="$id"){return super.handleSchemaIdentifier(t,r)}},Cue=class extends R9{BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),wt}};class Rue extends Ct{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-examples"),r}}let D9=class extends T9{constructor(t){super(t),this.element=new uf}};const Vr=wr(Pe(["visitors","document","objects","JSONSchema","$visitor"],M9),Hn(["visitors","document","objects","JSONSchema","fixedFields","id"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$id"],Jr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],Cue),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","const"],Jr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","examples"],Rue),Pe(["visitors","document","objects","LinkDescription","$visitor"],D9),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Hn(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Jr.visitors.JSONSchemaOrJSONReferenceVisitor),Hn(["visitors","document","objects","LinkDescription","fixedFields","method"]),Hn(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Jr.visitors.value))(Jr),Tue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof of||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n)),Iue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uf||e(n)&&t("linkDescription",n)&&r("object",n)),jue=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:G2,isJSONSchemaElement:Tue,isLinkDescriptionElement:Iue,isMediaElement:O9},Symbol.toStringTag,{value:"Module"})),kue=()=>{const e=Ls(Aue);return{predicates:{...jue,isStringElement:it},namespace:e}},Pue=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Vr}={})=>{const i=le.refract(e),s=Ea(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ds(o.element,r,{toolboxCreator:kue,visitorOptions:{keyMap:Oue,nodeTypeGetter:ef}})},q9=e=>(t,r={})=>Pue(t,{specPath:e,...r});of.refract=q9(["visitors","document","objects","JSONSchema","$visitor"]);uf.refract=q9(["visitors","document","objects","LinkDescription","$visitor"]);let cf=class extends of{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(t){this.set("contentEncoding",t)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(t){this.set("contentMediaType",t)}get media(){throw new yt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(t){throw new yt('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}},lf=class extends uf{get anchor(){return this.get("anchor")}set anchor(t){this.set("anchor",t)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(t){this.set("anchorPointer",t)}get templatePointers(){return this.get("templatePointers")}set templatePointers(t){this.set("templatePointers",t)}get templateRequired(){return this.get("templateRequired")}set templateRequired(t){this.set("templateRequired",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){throw new yt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(t){throw new yt("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(t){this.set("targetMediaType",t)}get targetHints(){return this.get("targetHints")}set targetHints(t){this.set("targetHints",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}get submissionEncType(){throw new yt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(t){throw new yt("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(t){this.set("submissionMediaType",t)}};const Nue={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",cf),t.register("jSONReference",Iu),t.register("linkDescription",lf),t}},Mue={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...fs};let $9=class extends M9{constructor(t){super(t),this.element=new cf}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},F9=class extends D9{constructor(t){super(t),this.element=new lf}};const na=wr(Pe(["visitors","document","objects","JSONSchema","$visitor"],$9),Pe(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Vr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],Vr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],Vr.visitors.JSONSchemaOrJSONReferenceVisitor),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],Vr.visitors.JSONSchemaOrJSONReferenceVisitor),Hn(["visitors","document","objects","JSONSchema","fixedFields","media"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Vr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Vr.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","$visitor"],F9),Pe(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Vr.visitors.value),Hn(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","description"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Vr.visitors.value),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Vr.visitors.JSONSchemaOrJSONReferenceVisitor),Hn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Vr.visitors.value))(Vr),Due=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cf||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n)),que=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lf||e(n)&&t("linkDescription",n)&&r("object",n)),$ue=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:G2,isJSONSchemaElement:Due,isLinkDescriptionElement:que},Symbol.toStringTag,{value:"Module"})),Fue=()=>{const e=Ls(Nue);return{predicates:{...$ue,isStringElement:it},namespace:e}},Lue=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=na}={})=>{const i=le.refract(e),s=Ea(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ds(o.element,r,{toolboxCreator:Fue,visitorOptions:{keyMap:Mue,nodeTypeGetter:ef}})},L9=e=>(t,r={})=>Lue(t,{specPath:e,...r});cf.refract=L9(["visitors","document","objects","JSONSchema","$visitor"]);lf.refract=L9(["visitors","document","objects","LinkDescription","$visitor"]);let ff=class extends cf{constructor(t,r,n){super(t,r,n),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(t){this.set("$vocabulary",t)}get $anchor(){return this.get("$anchor")}set $anchor(t){this.set("$anchor",t)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(t){this.set("$recursiveAnchor",t)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(t){this.set("$recursiveRef",t)}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get $defs(){return this.get("$defs")}set $defs(t){this.set("$defs",t)}get definitions(){throw new yt("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(t){throw new yt("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(t){this.set("not",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(t){this.set("dependentSchemas",t)}get dependencies(){throw new yt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(t){throw new yt("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(t){this.set("items",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(t){this.set("unevaluatedItems",t)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(t){this.set("unevaluatedProperties",t)}get maxContains(){return this.get("maxContains")}set maxContains(t){this.set("maxContains",t)}get minContains(){return this.get("minContains")}set minContains(t){this.set("minContains",t)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(t){this.set("dependentRequired",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}get contentSchema(){return this.get("contentSchema")}set contentSchema(t){this.set("contentSchema",t)}},df=class extends lf{get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}};const Bue={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",ff),t.register("linkDescription",df),t}},Uue={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...fs};let zr=class extends $9{constructor(t){super(t),this.element=new ff}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(t){this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element;const r=Ha.prototype.ObjectElement.call(this,t);return it(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}};class Vue extends Ct{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-$vocabulary"),r}}class zue extends Ct{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let B9=class extends ke(Sa,jr,Ct){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("json-schema-$defs"),this.specPath=rt(["document","objects","JSONSchema"])}},U9=class extends ke(Xn,jr,Ct){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}},V9=class extends ke(Xn,jr,Ct){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}},z9=class extends ke(Xn,jr,Ct){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}},W9=class extends ke(Sa,jr,Ct){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=rt(["document","objects","JSONSchema"])}};class Wue extends ke(Xn,jr,Ct){ObjectElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),wt}ArrayElement(t){return this.element=new le.ArrayElement,this.element.classes.push("json-schema-items"),t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),wt}}let J9=class extends ke(Sa,jr,Ct){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=rt(["document","objects","JSONSchema"])}},K9=class extends ke(Sa,jr,Ct){constructor(t){super(t),this.element=new le.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=rt(["document","objects","JSONSchema"])}};class Jue extends Ct{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-dependentRequired"),r}}let H9=class extends F9{constructor(t){super(t),this.element=new df}};const vd=wr(Pe(["visitors","document","objects","JSONSchema","$visitor"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Vue),Pe(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],na.visitors.value),Hn(["visitors","document","objects","JSONReference","$visitor"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$ref"],zue),Hn(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$defs"],B9),Pe(["visitors","document","objects","JSONSchema","fixedFields","allOf"],U9),Pe(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],V9),Pe(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],z9),Pe(["visitors","document","objects","JSONSchema","fixedFields","not"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],zr),Hn(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],W9),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],Wue),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","properties"],J9),Pe(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],K9),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],zr),Pe(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","minContains"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Jue),Pe(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],na.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],zr),Pe(["visitors","document","objects","LinkDescription","$visitor"],H9),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],zr),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],zr),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],zr),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],zr))(na),Kue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ff||e(n)&&t("JSONSchema201909",n)&&r("object",n)),Hue=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof df||e(n)&&t("linkDescription",n)&&r("object",n)),Gue=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:Kue,isLinkDescriptionElement:Hue},Symbol.toStringTag,{value:"Module"})),Yue=()=>{const e=Ls(Bue);return{predicates:{...Gue,isStringElement:it},namespace:e}},Xue=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=vd}={})=>{const i=le.refract(e),s=Ea(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ds(o.element,r,{toolboxCreator:Yue,visitorOptions:{keyMap:Uue,nodeTypeGetter:ef}})},G9=e=>(t,r={})=>Xue(t,{specPath:e,...r});ff.refract=G9(["visitors","document","objects","JSONSchema","$visitor"]);df.refract=G9(["visitors","document","objects","LinkDescription","$visitor"]);class pf extends ff{constructor(t,r,n){super(t,r,n),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(t){this.set("$dynamicAnchor",t)}get $recursiveAnchor(){throw new yt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(t){throw new yt("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(t){this.set("$dynamicRef",t)}get $recursiveRef(){throw new yt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(t){throw new yt("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}}class um extends df{get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(t){this.set("hrefSchema",t)}get headerSchema(){return this.get("headerSchema")}set headerSchema(t){this.set("headerSchema",t)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(t){this.set("submissionSchema",t)}}const Zue={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",pf),t.register("linkDescription",um),t}},Que={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...fs};let Mr=class extends zr{constructor(t){super(t),this.element=new pf}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},Y9=class extends ke(Xn,jr,Ct){constructor(t){super(t),this.element=new le.ArrayElement,this.element.classes.push("json-schema-prefixItems")}ArrayElement(t){return t.forEach(r=>{const n=this.toRefractedElement(["document","objects","JSONSchema"],r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),wt}},ece=class extends H9{constructor(t){super(t),this.element=new um}};const X9=wr(Pe(["visitors","document","objects","JSONSchema","$visitor"],Mr),Hn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],vd.visitors.value),Hn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],vd.visitors.value),Pe(["visitors","document","objects","JSONSchema","fixedFields","not"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","if"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","then"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","else"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],Y9),Pe(["visitors","document","objects","JSONSchema","fixedFields","items"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","contains"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Mr),Hn(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Pe(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Mr),Pe(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Mr),Pe(["visitors","document","objects","LinkDescription","$visitor"],ece),Pe(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Mr),Pe(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Mr),Pe(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Mr),Pe(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Mr))(vd),tce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pf||e(n)&&t("JSONSchema202012",n)&&r("object",n)),rce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof um||e(n)&&t("linkDescription",n)&&r("object",n)),nce=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:tce,isLinkDescriptionElement:rce},Symbol.toStringTag,{value:"Module"})),ice=()=>{const e=Ls(Zue);return{predicates:{...nce,isStringElement:it},namespace:e}},sce=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=X9}={})=>{const i=le.refract(e),s=Ea(n),a=Fr(t,s),o=new a({specObj:s});return Ir(i,o),ds(o.element,r,{toolboxCreator:ice,visitorOptions:{keyMap:Que,nodeTypeGetter:ef}})},Z9=e=>(t,r={})=>sce(t,{specPath:e,...r});pf.refract=Z9(["visitors","document","objects","JSONSchema","$visitor"]);um.refract=Z9(["visitors","document","objects","LinkDescription","$visitor"]);class ho extends pf{constructor(t,r,n){super(t,r,n),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}}class cm extends tf{}class lm extends rf{}class fm extends nf{}class dm extends sf{}class iC extends Uh{}class sC extends Vh{}const aC={namespace:e=>{const{base:t}=e;return t.register("callback",Kh),t.register("components",Hh),t.register("contact",Gh),t.register("discriminator",Q2),t.register("encoding",eC),t.register("example",Yh),t.register("externalDocumentation",Xh),t.register("header",Zh),t.register("info",Qh),t.register("jsonSchemaDialect",Ga),t.register("license",em),t.register("link",tm),t.register("mediaType",rm),t.register("oAuthFlow",tC),t.register("oAuthFlows",rC),t.register("openapi",nC),t.register("openApi3_1",wa),t.register("operation",af),t.register("parameter",nm),t.register("pathItem",ma),t.register("paths",im),t.register("reference",xa),t.register("requestBody",sm),t.register("response",am),t.register("responses",om),t.register("schema",ho),t.register("securityRequirement",cm),t.register("securityScheme",lm),t.register("server",fm),t.register("serverVariable",dm),t.register("tag",iC),t.register("xml",sC),t}},Bp=class Bp extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Bp.primaryClass)}};z(Bp,"primaryClass","components-path-items");let xx=Bp;const Up=class Up extends le.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Up.primaryClass)}};z(Up,"primaryClass","webhooks");let Ax=Up;const ji=e=>{if(Sr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ns={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"],...fs};class hf{constructor(t,r,n){z(this,"internalStore");this.storageElement=t,this.storageField=r,this.storageSubField=n}get store(){if(!this.internalStore){let t=this.storageElement.get(this.storageField);Ft(t)||(t=new le.ObjectElement,this.storageElement.set(this.storageField,t));let r=t.get(this.storageSubField);bn(r)||(r=new le.ArrayElement,t.set(this.storageSubField,r)),this.internalStore=r}return this.internalStore}append(t){this.includes(t)||this.store.push(t)}includes(t){return this.store.includes(t)}}const ace=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t,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:we(o.name)===we(u.name)&&we(o.in)===we(u.in),s=[];let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new hf(o,e,"parameters")},leave(){a=void 0}},PathItemElement:{enter(o,u,c,l,f){if(f.some(r.isComponentsElement))return;const{parameters:h}=o;r.isArrayElement(h)?s.push([...h.content]):s.push([])},leave(){s.pop()}},OperationElement:{leave(o,u,c,l,f){const h=Eh(s);if(!Array.isArray(h)||h.length===0)return;const p=n([...f,c,o]);if(a.includes(p))return;const g=n8([],["parameters","content"],o),y=Rre(i,[...g,...h]);o.parameters=new Zd(y),a.append(p)}}}}},oce=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i,s;return{visitor:{OpenApi3_1Element:{enter(a){s=new hf(a,e,"security-requirements"),r.isArrayElement(a.security)&&(i=a.security)},leave(){s=void 0,i=void 0}},OperationElement:{leave(a,o,u,c,l){if(l.some(r.isComponentsElement))return;const f=n([...l,u,a]);if(s.includes(f))return;if(typeof a.security>"u"&&typeof i<"u"){var g;a.security=new Qd((g=i)===null||g===void 0?void 0:g.content),s.append(f)}}}}}},Ox=e=>e.replace(/\s/g,""),Cx=e=>e.replace(/\W/gi,"_"),uce=(e,t)=>{const r=Cx(Ox(t.toLowerCase())),n=Cx(Ox(e));return`${r}${n}`},cce=(e,t,r)=>{const n=Ox(e);return n.length>0?Cx(n):uce(t,r)},lce=({storageField:e="x-normalized",operationIdNormalizer:t=cce}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:i,namespace:s}=r,a=[],o=[],u=[];let c;return{visitor:{OpenApi3_1Element:{enter(l){c=new hf(l,e,"operation-ids")},leave(){const l=lre(f=>we(f.operationId),o);Object.entries(l).forEach(([f,h])=>{Array.isArray(h)&&(h.length<=1||h.forEach((p,g)=>{const y=`${f}${g+1}`;p.operationId=new s.elements.String(y)}))}),u.forEach(f=>{if(typeof f.operationId>"u")return;const h=String(we(f.operationId)),p=o.find(g=>we(g.meta.get("originalOperationId"))===h);typeof p>"u"||(f.operationId=Be.safe(p.operationId),f.meta.set("originalOperationId",h),f.set("__originalOperationId",h))}),o.length=0,u.length=0,c=void 0}},PathItemElement:{enter(l){const f=nu("path",we(l.meta.get("path")));a.push(f)},leave(){a.pop()}},OperationElement:{enter(l,f,h,p,g){if(typeof l.operationId>"u")return;const y=i([...g,h,l]);if(c.includes(y))return;const v=String(we(l.operationId)),E=Eh(a),b=nu("method",we(l.meta.get("http-method"))),S=t(v,E,b);v!==S&&(l.operationId=new s.elements.String(S),l.set("__originalOperationId",v),l.meta.set("originalOperationId",v),o.push(l),c.append(y))}},LinkElement:{leave(l){n.isLinkElement(l)&&(typeof l.operationId>"u"||u.push(l))}}}}},fce=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new hf(s,e,"parameter-examples")},leave(){i=void 0}},ParameterElement:{leave(s,a,o,u,c){var l,f;if(c.some(r.isComponentsElement)||typeof s.schema>"u"||!r.isSchemaElement(s.schema)||typeof((l=s.schema)===null||l===void 0?void 0:l.example)>"u"&&typeof((f=s.schema)===null||f===void 0?void 0:f.examples)>"u")return;const h=n([...c,o,s]);if(!i.includes(h)){if(typeof s.examples<"u"&&r.isObjectElement(s.examples)){const p=s.examples.map(g=>Be.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",p),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",p[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Be(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Be(s.example)),i.append(h)))}}}}}},dce=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new hf(s,e,"header-examples")},leave(){i=void 0}},HeaderElement:{leave(s,a,o,u,c){var l,f;if(c.some(r.isComponentsElement)||typeof s.schema>"u"||!r.isSchemaElement(s.schema)||typeof((l=s.schema)===null||l===void 0?void 0:l.example)>"u"&&typeof((f=s.schema)===null||f===void 0?void 0:f.examples)>"u")return;const h=n([...c,o,s]);if(!i.includes(h)){if(typeof s.examples<"u"&&r.isObjectElement(s.examples)){const p=s.examples.map(g=>Be.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",p),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",p[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Be(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Be(s.example)),i.append(h)))}}}}}},pce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kh||e(n)&&t("callback",n)&&r("object",n)),hce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hh||e(n)&&t("components",n)&&r("object",n)),mce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gh||e(n)&&t("contact",n)&&r("object",n)),gce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yh||e(n)&&t("example",n)&&r("object",n)),yce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xh||e(n)&&t("externalDocumentation",n)&&r("object",n)),vce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zh||e(n)&&t("header",n)&&r("object",n)),bce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qh||e(n)&&t("info",n)&&r("object",n)),Q9=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ga||e(n)&&t("jsonSchemaDialect",n)&&r("string",n)),_ce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof em||e(n)&&t("license",n)&&r("object",n)),Ece=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tm||e(n)&&t("link",n)&&r("object",n)),Sce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nC||e(n)&&t("openapi",n)&&r("string",n)),e5=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof wa||e(i)&&t("openApi3_1",i)&&r("object",i)&&n("api",i)),t5=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof af||e(n)&&t("operation",n)&&r("object",n)),wce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nm||e(n)&&t("parameter",n)&&r("object",n)),Ya=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ma||e(n)&&t("pathItem",n)&&r("object",n)),xce=e=>{if(!Ya(e)||!it(e.$ref))return!1;const t=we(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Ace=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof im||e(n)&&t("paths",n)&&r("object",n)),mo=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xa||e(n)&&t("reference",n)&&r("object",n)),Oce=e=>{if(!mo(e)||!it(e.$ref))return!1;const t=we(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Cce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sm||e(n)&&t("requestBody",n)&&r("object",n)),Rce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof am||e(n)&&t("response",n)&&r("object",n)),Tce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof om||e(n)&&t("responses",n)&&r("object",n)),ga=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ho||e(n)&&t("schema",n)&&r("object",n)),oC=e=>jl(e)&&e.classes.includes("boolean-json-schema"),Ice=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cm||e(n)&&t("securityRequirement",n)&&r("object",n)),jce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lm||e(n)&&t("securityScheme",n)&&r("object",n)),kce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fm||e(n)&&t("server",n)&&r("object",n)),Pce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dm||e(n)&&t("serverVariable",n)&&r("object",n)),Nce=Me(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rm||e(n)&&t("mediaType",n)&&r("object",n)),Mce=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:oC,isCallbackElement:pce,isComponentsElement:hce,isContactElement:mce,isExampleElement:gce,isExternalDocumentationElement:yce,isHeaderElement:vce,isInfoElement:bce,isJsonSchemaDialectElement:Q9,isLicenseElement:_ce,isLinkElement:Ece,isMediaTypeElement:Nce,isOpenApi3_1Element:e5,isOpenapiElement:Sce,isOperationElement:t5,isParameterElement:wce,isPathItemElement:Ya,isPathItemElementExternal:xce,isPathsElement:Ace,isReferenceElement:mo,isReferenceElementExternal:Oce,isRequestBodyElement:Cce,isResponseElement:Rce,isResponsesElement:Tce,isSchemaElement:ga,isSecurityRequirementElement:Ice,isSecuritySchemeElement:jce,isServerElement:kce,isServerVariableElement:Pce},Symbol.toStringTag,{value:"Module"})),Dce=e=>{const t=e.reduce((r,n,i)=>{if($i(n)){const s=String(we(n.key));r.push(s)}else if(bn(e[i-2])){const s=String(e[i-2].content.indexOf(n));r.push(s)}return r},[]);return E9(t)},r5=()=>{const e=Ls(aC);return{predicates:{...Mce,isElement:Sr,isStringElement:it,isArrayElement:bn,isObjectElement:Ft,isMemberElement:$i,isServersElement:P9,includesClasses:jh,hasElementSourceMap:kl},ancestorLineageToJSONPointer:Dce,namespace:e}};class qce extends ke(dt,De){constructor(t){super(t),this.element=new wa,this.specPath=rt(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(t){return this.openApiGenericElement=t,dt.prototype.ObjectElement.call(this,t)}}const $ce=ge.visitors.document.objects.Info.$visitor;class Fce extends $ce{constructor(t){super(t),this.element=new Qh}}const Lce=ge.visitors.document.objects.Contact.$visitor;class Bce extends Lce{constructor(t){super(t),this.element=new Gh}}const Uce=ge.visitors.document.objects.License.$visitor;class Vce extends Uce{constructor(t){super(t),this.element=new em}}const zce=ge.visitors.document.objects.Link.$visitor;class Wce extends zce{constructor(t){super(t),this.element=new tm}}class Jce extends ke(Fi,De){StringElement(t){const r=new Ga(we(t));return this.copyMetaAndAttributes(t,r),this.element=r,wt}}const Kce=ge.visitors.document.objects.Server.$visitor;class Hce extends Kce{constructor(t){super(t),this.element=new fm}}const Gce=ge.visitors.document.objects.ServerVariable.$visitor;class Yce extends Gce{constructor(t){super(t),this.element=new dm}}const Xce=ge.visitors.document.objects.MediaType.$visitor;class Zce extends Xce{constructor(t){super(t),this.element=new rm}}const Qce=ge.visitors.document.objects.SecurityRequirement.$visitor;class ele extends Qce{constructor(t){super(t),this.element=new cm}}const tle=ge.visitors.document.objects.Components.$visitor;class rle extends tle{constructor(t){super(t),this.element=new Hh}}const nle=ge.visitors.document.objects.Tag.$visitor;class ile extends nle{constructor(t){super(t),this.element=new iC}}const sle=ge.visitors.document.objects.Reference.$visitor;class ale extends sle{constructor(t){super(t),this.element=new xa}}const ole=ge.visitors.document.objects.Parameter.$visitor;class ule extends ole{constructor(t){super(t),this.element=new nm}}const cle=ge.visitors.document.objects.Header.$visitor;class lle extends cle{constructor(t){super(t),this.element=new Zh}}class fle extends ke(dt,jr,De){constructor(t){super(t),this.element=new ho,this.specPath=rt(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Ga.default,this.passingOptionsNames.push("parent")}ObjectElement(t){this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element;const r=dt.prototype.ObjectElement.call(this,t);return it(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(t){return Mr.prototype.BooleanElement.call(this,t)}get defaultDialectIdentifier(){let t;return this.openApiSemanticElement!==void 0&&Q9(this.openApiSemanticElement.jsonSchemaDialect)?t=we(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&it(this.openApiGenericElement.get("jsonSchemaDialect"))?t=we(this.openApiGenericElement.get("jsonSchemaDialect")):t=we(this.jsonSchemaDefaultDialect),t}handleDialectIdentifier(t){return Mr.prototype.handleDialectIdentifier.call(this,t)}handleSchemaIdentifier(t){return Mr.prototype.handleSchemaIdentifier.call(this,t)}}class dle extends B9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}let ple=class extends U9{constructor(t){super(t),this.passingOptionsNames.push("parent")}};class hle extends V9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class mle extends z9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class gle extends W9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class yle extends Y9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class vle extends J9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class ble extends K9{constructor(t){super(t),this.passingOptionsNames.push("parent")}}const _le=ge.visitors.document.objects.Discriminator.$visitor;class Ele extends _le{constructor(t){super(t),this.element=new Q2,this.canSupportSpecificationExtensions=!0}}const Sle=ge.visitors.document.objects.XML.$visitor;class wle extends Sle{constructor(t){super(t),this.element=new sC}}class xle extends ke(pt,De){constructor(t){super(t),this.element=new Xd,this.specPath=rt(["document","objects","Schema"])}}class Ale extends ke(pt,De){constructor(t){super(t),this.element=new xx,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(mo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const Ole=ge.visitors.document.objects.Example.$visitor;class Cle extends Ole{constructor(t){super(t),this.element=new Yh}}const Rle=ge.visitors.document.objects.ExternalDocumentation.$visitor;class Tle extends Rle{constructor(t){super(t),this.element=new Xh}}const Ile=ge.visitors.document.objects.Encoding.$visitor;class jle extends Ile{constructor(t){super(t),this.element=new eC}}const kle=ge.visitors.document.objects.Paths.$visitor;class Ple extends kle{constructor(t){super(t),this.element=new im}}const Nle=ge.visitors.document.objects.RequestBody.$visitor;class Mle extends Nle{constructor(t){super(t),this.element=new sm}}const lF=ge.visitors.document.objects.Callback.$visitor;class Dle extends lF{constructor(t){super(t),this.element=new Kh,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=lF.prototype.ObjectElement.call(this,t);return this.element.filter(mo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const qle=ge.visitors.document.objects.Response.$visitor;class $le extends qle{constructor(t){super(t),this.element=new am}}const Fle=ge.visitors.document.objects.Responses.$visitor;class Lle extends Fle{constructor(t){super(t),this.element=new om}}const Ble=ge.visitors.document.objects.Operation.$visitor;class Ule extends Ble{constructor(t){super(t),this.element=new af}}const Vle=ge.visitors.document.objects.PathItem.$visitor;class zle extends Vle{constructor(t){super(t),this.element=new ma}}const Wle=ge.visitors.document.objects.SecurityScheme.$visitor;class Jle extends Wle{constructor(t){super(t),this.element=new lm}}const Kle=ge.visitors.document.objects.OAuthFlows.$visitor;class Hle extends Kle{constructor(t){super(t),this.element=new rC}}const Gle=ge.visitors.document.objects.OAuthFlow.$visitor;class Yle extends Gle{constructor(t){super(t),this.element=new tC}}class Xle extends ke(pt,De){constructor(t){super(t),this.element=new Ax,this.specPath=r=>er(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=pt.prototype.ObjectElement.call(this,t);return this.element.filter(mo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),this.element.filter(Ya).forEach((n,i)=>{n.setMetaProperty("webhook-name",we(i))}),r}}const{JSONSchema:Zle,LinkDescription:Qle}=X9.visitors.document.objects,efe={visitors:{value:ge.visitors.value,document:{objects:{OpenApi:{$visitor:qce,fixedFields:{openapi:ge.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Jce,servers:ge.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Xle,components:{$ref:"#/visitors/document/objects/Components"},security:ge.visitors.document.objects.OpenApi.fixedFields.security,tags:ge.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Fce,fixedFields:{title:ge.visitors.document.objects.Info.fixedFields.title,description:ge.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:ge.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:ge.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Bce,fixedFields:{name:ge.visitors.document.objects.Contact.fixedFields.name,url:ge.visitors.document.objects.Contact.fixedFields.url,email:ge.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Vce,fixedFields:{name:ge.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:ge.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Hce,fixedFields:{url:ge.visitors.document.objects.Server.fixedFields.url,description:ge.visitors.document.objects.Server.fixedFields.description,variables:ge.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Yce,fixedFields:{enum:ge.visitors.document.objects.ServerVariable.fixedFields.enum,default:ge.visitors.document.objects.ServerVariable.fixedFields.default,description:ge.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:rle,fixedFields:{schemas:xle,responses:ge.visitors.document.objects.Components.fixedFields.responses,parameters:ge.visitors.document.objects.Components.fixedFields.parameters,examples:ge.visitors.document.objects.Components.fixedFields.examples,requestBodies:ge.visitors.document.objects.Components.fixedFields.requestBodies,headers:ge.visitors.document.objects.Components.fixedFields.headers,securitySchemes:ge.visitors.document.objects.Components.fixedFields.securitySchemes,links:ge.visitors.document.objects.Components.fixedFields.links,callbacks:ge.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Ale}},Paths:{$visitor:Ple},PathItem:{$visitor:zle,fixedFields:{$ref:ge.visitors.document.objects.PathItem.fixedFields.$ref,summary:ge.visitors.document.objects.PathItem.fixedFields.summary,description:ge.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:ge.visitors.document.objects.PathItem.fixedFields.servers,parameters:ge.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Ule,fixedFields:{tags:ge.visitors.document.objects.Operation.fixedFields.tags,summary:ge.visitors.document.objects.Operation.fixedFields.summary,description:ge.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:ge.visitors.document.objects.Operation.fixedFields.operationId,parameters:ge.visitors.document.objects.Operation.fixedFields.parameters,requestBody:ge.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:ge.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:ge.visitors.document.objects.Operation.fixedFields.deprecated,security:ge.visitors.document.objects.Operation.fixedFields.security,servers:ge.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Tle,fixedFields:{description:ge.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:ge.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:ule,fixedFields:{name:ge.visitors.document.objects.Parameter.fixedFields.name,in:ge.visitors.document.objects.Parameter.fixedFields.in,description:ge.visitors.document.objects.Parameter.fixedFields.description,required:ge.visitors.document.objects.Parameter.fixedFields.required,deprecated:ge.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:ge.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:ge.visitors.document.objects.Parameter.fixedFields.style,explode:ge.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:ge.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ge.visitors.document.objects.Parameter.fixedFields.example,examples:ge.visitors.document.objects.Parameter.fixedFields.examples,content:ge.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Mle,fixedFields:{description:ge.visitors.document.objects.RequestBody.fixedFields.description,content:ge.visitors.document.objects.RequestBody.fixedFields.content,required:ge.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Zce,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:ge.visitors.document.objects.MediaType.fixedFields.example,examples:ge.visitors.document.objects.MediaType.fixedFields.examples,encoding:ge.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:jle,fixedFields:{contentType:ge.visitors.document.objects.Encoding.fixedFields.contentType,headers:ge.visitors.document.objects.Encoding.fixedFields.headers,style:ge.visitors.document.objects.Encoding.fixedFields.style,explode:ge.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:ge.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Lle,fixedFields:{default:ge.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:$le,fixedFields:{description:ge.visitors.document.objects.Response.fixedFields.description,headers:ge.visitors.document.objects.Response.fixedFields.headers,content:ge.visitors.document.objects.Response.fixedFields.content,links:ge.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Dle},Example:{$visitor:Cle,fixedFields:{summary:ge.visitors.document.objects.Example.fixedFields.summary,description:ge.visitors.document.objects.Example.fixedFields.description,value:ge.visitors.document.objects.Example.fixedFields.value,externalValue:ge.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Wce,fixedFields:{operationRef:ge.visitors.document.objects.Link.fixedFields.operationRef,operationId:ge.visitors.document.objects.Link.fixedFields.operationId,parameters:ge.visitors.document.objects.Link.fixedFields.parameters,requestBody:ge.visitors.document.objects.Link.fixedFields.requestBody,description:ge.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:lle,fixedFields:{description:ge.visitors.document.objects.Header.fixedFields.description,required:ge.visitors.document.objects.Header.fixedFields.required,deprecated:ge.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:ge.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:ge.visitors.document.objects.Header.fixedFields.style,explode:ge.visitors.document.objects.Header.fixedFields.explode,allowReserved:ge.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ge.visitors.document.objects.Header.fixedFields.example,examples:ge.visitors.document.objects.Header.fixedFields.examples,content:ge.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:ile,fixedFields:{name:ge.visitors.document.objects.Tag.fixedFields.name,description:ge.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ale,fixedFields:{$ref:ge.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Qle},Schema:{$visitor:fle,fixedFields:{...Zle.fixedFields,$defs:dle,allOf:ple,anyOf:hle,oneOf:mle,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:gle,prefixItems:yle,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:vle,patternProperties:ble,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:Ele,fixedFields:{propertyName:ge.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:ge.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:wle,fixedFields:{name:ge.visitors.document.objects.XML.fixedFields.name,namespace:ge.visitors.document.objects.XML.fixedFields.namespace,prefix:ge.visitors.document.objects.XML.fixedFields.prefix,attribute:ge.visitors.document.objects.XML.fixedFields.attribute,wrapped:ge.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Jle,fixedFields:{type:ge.visitors.document.objects.SecurityScheme.fixedFields.type,description:ge.visitors.document.objects.SecurityScheme.fixedFields.description,name:ge.visitors.document.objects.SecurityScheme.fixedFields.name,in:ge.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:ge.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:ge.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:ge.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Hle,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:Yle,fixedFields:{authorizationUrl:ge.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:ge.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:ge.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:ge.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:ele}},extension:{$visitor:ge.visitors.document.extension.$visitor}}}},tfe=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=le.refract(e),i=Ea(efe),s=Fr(t,i),a=new s({specObj:i});return Ir(n,a),ds(a.element,r,{toolboxCreator:r5,visitorOptions:{keyMap:ns,nodeTypeGetter:ji}})},It=e=>(t,r={})=>tfe(t,{specPath:e,...r});Kh.refract=It(["visitors","document","objects","Callback","$visitor"]);Hh.refract=It(["visitors","document","objects","Components","$visitor"]);Gh.refract=It(["visitors","document","objects","Contact","$visitor"]);Yh.refract=It(["visitors","document","objects","Example","$visitor"]);Q2.refract=It(["visitors","document","objects","Discriminator","$visitor"]);eC.refract=It(["visitors","document","objects","Encoding","$visitor"]);Xh.refract=It(["visitors","document","objects","ExternalDocumentation","$visitor"]);Zh.refract=It(["visitors","document","objects","Header","$visitor"]);Qh.refract=It(["visitors","document","objects","Info","$visitor"]);Ga.refract=It(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]);em.refract=It(["visitors","document","objects","License","$visitor"]);tm.refract=It(["visitors","document","objects","Link","$visitor"]);rm.refract=It(["visitors","document","objects","MediaType","$visitor"]);tC.refract=It(["visitors","document","objects","OAuthFlow","$visitor"]);rC.refract=It(["visitors","document","objects","OAuthFlows","$visitor"]);nC.refract=It(["visitors","document","objects","OpenApi","fixedFields","openapi"]);wa.refract=It(["visitors","document","objects","OpenApi","$visitor"]);af.refract=It(["visitors","document","objects","Operation","$visitor"]);nm.refract=It(["visitors","document","objects","Parameter","$visitor"]);ma.refract=It(["visitors","document","objects","PathItem","$visitor"]);im.refract=It(["visitors","document","objects","Paths","$visitor"]);xa.refract=It(["visitors","document","objects","Reference","$visitor"]);sm.refract=It(["visitors","document","objects","RequestBody","$visitor"]);am.refract=It(["visitors","document","objects","Response","$visitor"]);om.refract=It(["visitors","document","objects","Responses","$visitor"]);ho.refract=It(["visitors","document","objects","Schema","$visitor"]);cm.refract=It(["visitors","document","objects","SecurityRequirement","$visitor"]);lm.refract=It(["visitors","document","objects","SecurityScheme","$visitor"]);fm.refract=It(["visitors","document","objects","Server","$visitor"]);dm.refract=It(["visitors","document","objects","ServerVariable","$visitor"]);iC.refract=It(["visitors","document","objects","Tag","$visitor"]);sC.refract=It(["visitors","document","objects","XML","$visitor"]);class rfe extends Nl{constructor(t){super({...t??{},name:"binary"})}canParse(t){return this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension)}parse(t){try{const r=unescape(encodeURIComponent(t.toString())),n=btoa(r),i=new Ni;if(n.length!==0){const s=new le.StringElement(n);s.classes.push("result"),i.push(s)}return i}catch(r){throw new Is(`Error parsing "${t.uri}"`,{cause:r})}}}class nfe extends _ie{constructor(t){super({...t??{},name:"openapi-3-1"})}canResolve(t,r){const n=r.dereference.strategies.find(i=>i.name==="openapi-3-1");return n===void 0?!1:n.canDereference(t,r)}async resolve(t,r){const n=r.dereference.strategies.find(a=>a.name==="openapi-3-1");if(n===void 0)throw new W8('"openapi-3-1" dereference strategy is not available.');const i=new su,s=v8(r,{resolve:{internal:!1},dereference:{refSet:i}});return await n.dereference(t,s),i}}const{AbortController:ife,AbortSignal:sfe}=globalThis;typeof globalThis.AbortController>"u"&&(globalThis.AbortController=ife);typeof globalThis.AbortSignal>"u"&&(globalThis.AbortSignal=sfe);class afe extends bie{constructor({swaggerHTTPClient:r=Mc,swaggerHTTPClientConfig:n={},...i}={}){super({...i,name:"http-swagger-client"});z(this,"swaggerHTTPClient",Mc);z(this,"swaggerHTTPClientConfig");this.swaggerHTTPClient=r,this.swaggerHTTPClientConfig=n}getHttpClient(){return this.swaggerHTTPClient}async read(r){const n=this.getHttpClient(),i=new AbortController,{signal:s}=i,a=setTimeout(()=>{i.abort()},this.timeout),o=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",u=this.redirects===0?"error":"follow",c=this.redirects>0?this.redirects:void 0;try{return(await n({url:r.uri,signal:s,userFetch:async(f,h)=>{let p=await fetch(f,h);try{p.headers.delete("Content-Type")}catch{p=new Response(p.body,{...p,headers:new Headers(p.headers)}),p.headers.delete("Content-Type")}return p},credentials:o,redirect:u,follow:c,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(l){throw new b8(`Error downloading "${r.uri}"`,{cause:l})}finally{clearTimeout(a)}}}class ofe extends Nl{constructor(t={}){super({name:"json-swagger-client",mediaTypes:["application/json"],...t})}async canParse(t){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension),n=this.mediaTypes.includes(t.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return JSON.parse(t.toString()),!0}catch{return!1}return!1}async parse(t){if(this.sourceMap)throw new Is("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ni,n=t.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const i=z8(JSON.parse(n));return i.classes.push("result"),r.push(i),r}catch(i){throw new Is(`Error parsing "${t.uri}"`,{cause:i})}}}class ufe extends Nl{constructor(t={}){super({name:"yaml-1-2-swagger-client",mediaTypes:["text/yaml","application/yaml"],...t})}async canParse(t){const r=this.fileExtensions.length===0?!0:this.fileExtensions.includes(t.extension),n=this.mediaTypes.includes(t.mediaType);if(!r)return!1;if(n)return!0;if(!n)try{return Wa.load(t.toString(),{schema:Ac}),!0}catch{return!1}return!1}async parse(t){if(this.sourceMap)throw new Is("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new Ni,n=t.toString();try{const i=Wa.load(n,{schema:Ac});if(this.allowEmpty&&typeof i>"u")return r;const s=z8(i);return s.classes.push("result"),r.push(s),r}catch(i){throw new Is(`Error parsing "${t.uri}"`,{cause:i})}}}class cfe extends Nl{constructor(r={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new H2(...ou.filterByFormat("generic"),...ou.filterByFormat("json")),...r});z(this,"detectionRegExp",/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/)}async canParse(r){const n=this.fileExtensions.length===0?!0:this.fileExtensions.includes(r.extension),i=this.mediaTypes.includes(r.mediaType);if(!n)return!1;if(i)return!0;if(!i)try{const s=r.toString();return JSON.parse(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new Is("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ni,i=r.toString();if(this.allowEmpty&&i.trim()==="")return n;try{const s=JSON.parse(i),a=wa.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new Is(`Error parsing "${r.uri}"`,{cause:s})}}}class lfe extends Nl{constructor(r={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new H2(...ou.filterByFormat("generic"),...ou.filterByFormat("yaml")),...r});z(this,"detectionRegExp",/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m)}async canParse(r){const n=this.fileExtensions.length===0?!0:this.fileExtensions.includes(r.extension),i=this.mediaTypes.includes(r.mediaType);if(!n)return!1;if(i)return!0;if(!i)try{const s=r.toString();return Wa.load(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new Is("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Ni,i=r.toString();try{const s=Wa.load(i,{schema:Ac});if(this.allowEmpty&&typeof s>"u")return n;const a=wa.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new Is(`Error parsing "${r.uri}"`,{cause:s})}}}const pm=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),cu=e=>{const t=g8(e);return S2("#",t)},ffe=e=>{if(!pm(e))throw new xie(e);return e},uC=(e,t)=>{const r=ffe(e),n=L8(i=>ga(i)&&we(i.$anchor)===r,t);if(_a(n))throw new Sie(`Evaluation failed on token: "${r}"`);return n},n5=(e,t)=>{if(typeof t.$ref>"u")return;const r=g8(we(t.$ref)),n=we(t.meta.get("ancestorsSchemaIdentifiers"));return`${lo((s,a)=>Kr(s,Ch(Ut(a))),e,[...n,we(t.$ref)])}${r==="#"?"":r}`},dfe=(e,t)=>{if(typeof t.$id>"u")return;const r=we(t.meta.get("ancestorsSchemaIdentifiers"));return lo((n,i)=>Kr(n,Ch(Ut(i))),e,[...r,we(t.$id)])},vc=e=>{if(vc.cache.has(e))return vc.cache.get(e);const t=ho.refract(e);return vc.cache.set(e,t),t};vc.cache=new WeakMap;const en=e=>za(e)?vc(e):e,hm=(e,t)=>{const{cache:r}=hm,n=Ut(e),i=u=>ga(u)&&typeof u.$id<"u";if(!r.has(t)){const u=nie(i,t);r.set(t,Array.from(u))}const s=r.get(t).find(u=>dfe(n,u)===n);if(_a(s))throw new D2(`Evaluation failed on URI: "${e}"`);let a,o;return pm(cu(e))?(a=uC,o=cu(e)):(a=Ti,o=oi(e)),a(o,s)};hm.cache=new WeakMap;const u1=Ir[Symbol.for("nodejs.util.promisify.custom")],Ur=new N2,Hi=(e,t,r,n)=>{$i(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class Wo{constructor({reference:t,namespace:r,options:n,indirections:i=[],ancestors:s=new i1,refractCache:a=new Map}){z(this,"indirections");z(this,"namespace");z(this,"reference");z(this,"options");z(this,"ancestors");z(this,"refractCache");this.indirections=i,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new i1(...s),this.refractCache=a}toBaseURI(t){return Kr(this.reference.uri,Ch(Ut(t)))}async toReference(t){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Aie(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const r=this.toBaseURI(t),{refSet:n}=this.reference;if(n.has(r))return n.find(s8(r,"uri"));const i=await Sne(Yi(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new As({uri:r,value:Be(i),depth:this.reference.depth+1});if(n.add(s),this.options.dereference.immutable){const a=new As({uri:`immutable://${r}`,value:i,depth:this.reference.depth+1});n.add(a)}return s}toAncestorLineage(t){const r=new Set(t.filter(Sr));return[new i1(...this.ancestors,r),r]}async ReferenceElement(t,r,n,i,s,a){if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]),c=this.toBaseURI(we(t.$ref)),l=Ut(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return!1;const h=await this.toReference(we(t.$ref)),p=Kr(c,we(t.$ref));this.indirections.push(t);const g=oi(p);let y=Ti(g,h.value.result);if(y.id=Ur.identify(y),za(y)){const _=we(t.meta.get("referenced-element")),A=`${_}-${we(Ur.identify(y))}`;this.refractCache.has(A)?y=this.refractCache.get(A):er(y)?(y=xa.refract(y),y.setMetaProperty("referenced-element",_),this.refractCache.set(A,y)):(y=this.namespace.getElementClass(_).refract(y),this.refractCache.set(A,y))}if(t===y)throw new dr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Vo(`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 dr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,E;const _=new le.RefElement(y.id,{type:"reference",uri:h.uri,$ref:we(t.$ref)}),C=((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)(_);return a.replaceWith(C,Hi),n?!1:C}}const b=Ut(h.refSet.rootRef.uri)!==h.uri,S=["error","replace"].includes(this.options.dereference.circular);if((f||b||mo(y)||S)&&!o.includesCycle(y)){u.add(t);const _=new Wo({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});y=await u1(y,_,{keyMap:ns,nodeTypeGetter:ji}),u.delete(t)}this.indirections.pop();const x=dn(y);return x.setMetaProperty("id",Ur.generateId()),x.setMetaProperty("ref-fields",{$ref:we(t.$ref),description:we(t.description),summary:we(t.summary)}),x.setMetaProperty("ref-origin",h.uri),x.setMetaProperty("ref-referencing-element-id",Be(Ur.identify(t))),Ft(y)&&Ft(x)&&(t.hasKey("description")&&"description"in y&&(x.remove("description"),x.set("description",t.get("description"))),t.hasKey("summary")&&"summary"in y&&(x.remove("summary"),x.set("summary",t.get("summary")))),a.replaceWith(x,Hi),n?!1:x}async PathItemElement(t,r,n,i,s,a){if(!it(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]),c=this.toBaseURI(we(t.$ref)),l=Ut(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return;const h=await this.toReference(we(t.$ref)),p=Kr(c,we(t.$ref));this.indirections.push(t);const g=oi(p);let y=Ti(g,h.value.result);if(y.id=Ur.identify(y),za(y)){const x=`path-item-${we(Ur.identify(y))}`;this.refractCache.has(x)?y=this.refractCache.get(x):(y=ma.refract(y),this.refractCache.set(x,y))}if(t===y)throw new dr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Vo(`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 dr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,E;const x=new le.RefElement(y.id,{type:"path-item",uri:h.uri,$ref:we(t.$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)(x);return a.replaceWith(A,Hi),n?!1:A}}const b=Ut(h.refSet.rootRef.uri)!==h.uri,S=["error","replace"].includes(this.options.dereference.circular);if((f||b||Ya(y)&&it(y.$ref)||S)&&!o.includesCycle(y)){u.add(t);const x=new Wo({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});y=await u1(y,x,{keyMap:ns,nodeTypeGetter:ji}),u.delete(t)}if(this.indirections.pop(),Ya(y)){const x=new ma([...y.content],Be(y.meta),Be(y.attributes));x.setMetaProperty("id",Ur.generateId()),t.forEach((_,A,C)=>{x.remove(we(A)),x.content.push(C)}),x.remove("$ref"),x.setMetaProperty("ref-fields",{$ref:we(t.$ref)}),x.setMetaProperty("ref-origin",h.uri),x.setMetaProperty("ref-referencing-element-id",Be(Ur.identify(t))),y=x}return a.replaceWith(y,Hi),n?void 0:y}async LinkElement(t,r,n,i,s,a){if(!it(t.operationRef)&&!it(t.operationId))return;if(it(t.operationRef)&&it(t.operationId))throw new dr("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(it(t.operationRef)){var u;const l=oi(we(t.operationRef)),f=this.toBaseURI(we(t.operationRef)),h=Ut(this.reference.uri)===f,p=!h;if(!this.options.resolve.internal&&h||!this.options.resolve.external&&p)return;const g=await this.toReference(we(t.operationRef));if(o=Ti(l,g.value.result),za(o)){const v=`operation-${we(Ur.identify(o))}`;this.refractCache.has(v)?o=this.refractCache.get(v):(o=af.refract(o),this.refractCache.set(v,o))}o=dn(o),o.setMetaProperty("ref-origin",g.uri);const y=dn(t);return(u=y.operationRef)===null||u===void 0||u.meta.set("operation",o),a.replaceWith(y,Hi),n?void 0:y}if(it(t.operationId)){var c;const l=we(t.operationId),f=await this.toReference(Yi(this.reference.uri));if(o=L8(p=>t5(p)&&Sr(p.operationId)&&p.operationId.equals(l),f.value.result),_a(o))throw new dr(`OperationElement(operationId=${l}) not found.`);const h=dn(t);return(c=h.operationId)===null||c===void 0||c.meta.set("operation",o),a.replaceWith(h,Hi),n?void 0:h}}async ExampleElement(t,r,n,i,s,a){if(!it(t.externalValue))return;if(t.hasKey("value")&&it(t.externalValue))throw new dr("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(we(t.externalValue)),u=Ut(this.reference.uri)===o,c=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&c)return;const l=await this.toReference(we(t.externalValue)),f=dn(l.value.result);f.setMetaProperty("ref-origin",l.uri);const h=dn(t);return h.value=f,a.replaceWith(h,Hi),n?void 0:h}async SchemaElement(t,r,n,i,s,a){if(!it(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]);let c=await this.toReference(Yi(this.reference.uri)),{uri:l}=c;const f=n5(l,t),h=Ut(f),p=new Nc({uri:h}),g=vre(C=>C.canRead(p),this.options.resolve.resolvers),y=!g;let v=Ut(this.reference.uri)===f,E=!v;this.indirections.push(t);let b;try{if(g||y){l=this.toBaseURI(f);const C=f,T=en(c.value.result);if(b=hm(C,T),b=en(b),b.id=Ur.identify(b),!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return}else{if(l=this.toBaseURI(f),v=Ut(this.reference.uri)===l,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;c=await this.toReference(Yi(f));const C=oi(f),T=en(c.value.result);b=Ti(C,T),b=en(b),b.id=Ur.identify(b)}}catch(C){if(y&&C instanceof D2)if(pm(cu(f))){if(v=Ut(this.reference.uri)===l,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;c=await this.toReference(Yi(f));const T=cu(f),O=en(c.value.result);b=uC(T,O),b=en(b),b.id=Ur.identify(b)}else{if(l=this.toBaseURI(f),v=Ut(this.reference.uri)===l,E=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&E)return;c=await this.toReference(Yi(f));const T=oi(f),O=en(c.value.result);b=Ti(T,O),b=en(b),b.id=Ur.identify(b)}else throw C}if(t===b)throw new dr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Vo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(b)){if(c.refSet.circular=!0,this.options.dereference.circular==="error")throw new dr("Circular reference detected");if(this.options.dereference.circular==="replace"){var S,x;const C=new le.RefElement(b.id,{type:"json-schema",uri:c.uri,$ref:we(t.$ref)}),O=((S=(x=this.options.dereference.strategyOpts["openapi-3-1"])===null||x===void 0?void 0:x.circularReplacer)!==null&&S!==void 0?S:this.options.dereference.circularReplacer)(C);return a.replaceWith(O,Hi),n?!1:O}}const _=Ut(c.refSet.rootRef.uri)!==c.uri,A=["error","replace"].includes(this.options.dereference.circular);if((E||_||ga(b)&&it(b.$ref)||A)&&!o.includesCycle(b)){u.add(t);const C=new Wo({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});b=await u1(b,C,{keyMap:ns,nodeTypeGetter:ji}),u.delete(t)}if(this.indirections.pop(),oC(b)){const C=Be(b);return C.setMetaProperty("id",Ur.generateId()),C.setMetaProperty("ref-fields",{$ref:we(t.$ref)}),C.setMetaProperty("ref-origin",c.uri),C.setMetaProperty("ref-referencing-element-id",Be(Ur.identify(t))),a.replaceWith(C,Hi),n?!1:C}if(ga(b)){const C=new ho([...b.content],Be(b.meta),Be(b.attributes));C.setMetaProperty("id",Ur.generateId()),t.forEach((T,O,M)=>{C.remove(we(O)),C.content.push(M)}),C.remove("$ref"),C.setMetaProperty("ref-fields",{$ref:we(t.$ref)}),C.setMetaProperty("ref-origin",c.uri),C.setMetaProperty("ref-referencing-element-id",Be(Ur.identify(t))),b=C}return a.replaceWith(b,Hi),n?void 0:b}}const pfe=Ir[Symbol.for("nodejs.util.promisify.custom")];class hfe extends Eie{constructor(t){super({...t??{},name:"openapi-3-1"})}canDereference(t){var r;return t.mediaType!=="text/plain"?ou.includes(t.mediaType):e5((r=t.parseResult)===null||r===void 0?void 0:r.result)}async dereference(t,r){var n;const i=Ls(aC),s=(n=r.dereference.refSet)!==null&&n!==void 0?n:new su,a=new su;let o=s,u;s.has(t.uri)?u=s.find(s8(t.uri,"uri")):(u=new As({uri:t.uri,value:t.parseResult}),s.add(u)),r.dereference.immutable&&(s.refs.map(f=>new As({...f,value:Be(f.value)})).forEach(f=>a.add(f)),u=a.find(f=>f.uri===t.uri),o=a);const c=new Wo({reference:u,namespace:i,options:r}),l=await pfe(o.rootRef.value,c,{keyMap:ns,nodeTypeGetter:ji});return r.dereference.immutable&&a.refs.filter(f=>f.uri.startsWith("immutable://")).map(f=>new As({...f,uri:f.uri.replace(/^immutable:\/\//,"")})).forEach(f=>s.add(f)),r.dereference.refSet===null&&s.clean(),a.clean(),l}}const mfe=e=>e.slice(2),Ci=e=>{const t=mfe(e);return t.reduce((r,n,i)=>{if($i(n)){const s=String(we(n.key));r.push(s)}else if(bn(t[i-2])){const s=t[i-2].content.indexOf(n);r.push(s)}return r},[])};class gfe{constructor({modelPropertyMacro:t,options:r}){z(this,"modelPropertyMacro");z(this,"options");z(this,"SchemaElement",{leave:(t,r,n,i,s)=>{typeof t.properties>"u"||Ft(t.properties)&&t.properties.forEach(a=>{if(Ft(a))try{const c=this.modelPropertyMacro(we(a));a.set("default",c)}catch(c){var o,u;const l=new Error(c,{cause:c});l.fullPath=[...Ci([...s,n,t]),"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,l)}})}});this.modelPropertyMacro=t,this.options=r}}class yfe{constructor({options:t}){z(this,"options");z(this,"SchemaElement",{leave(t,r,n,i,s){if(typeof t.allOf>"u")return;if(!bn(t.allOf)){var a,o;const f=new TypeError("allOf must be an array");f.fullPath=[...Ci([...s,n,t]),"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,f);return}if(t.allOf.isEmpty){t.remove("allOf");return}if(!t.allOf.content.every(ga)){var c,l;const f=new TypeError("Elements in allOf must be objects");f.fullPath=[...Ci([...s,n,t]),"allOf"],(c=this.options.dereference.dereferenceOpts)===null||c===void 0||(c=c.errors)===null||c===void 0||(l=c.push)===null||l===void 0||l.call(c,f);return}for(;t.hasKey("allOf");){const{allOf:f}=t;t.remove("allOf");const h=ss.all([...f.content,t]);if(t.hasKey("$$ref")||h.remove("$$ref"),t.hasKey("example")){const p=h.getMember("example");p&&(p.value=t.get("example"))}if(t.hasKey("examples")){const p=h.getMember("examples");p&&(p.value=t.get("examples"))}t.content=h.content}}});this.options=t}}var La;class vfe{constructor({parameterMacro:t,options:r}){z(this,"parameterMacro");z(this,"options");Co(this,La);z(this,"OperationElement",{enter:t=>{Jm(this,La,t)},leave:()=>{Jm(this,La,void 0)}});z(this,"ParameterElement",{leave:(t,r,n,i,s)=>{const a=xi(this,La)?we(xi(this,La)):null,o=we(t);try{const l=this.parameterMacro(a,o);t.set("default",l)}catch(l){var u,c;const f=new Error(l,{cause:l});f.fullPath=Ci([...s,n]),(u=this.options.dereference.dereferenceOpts)===null||u===void 0||(u=u.errors)===null||u===void 0||(c=u.push)===null||c===void 0||c.call(u,f)}}});this.parameterMacro=t,this.options=r}}La=new WeakMap;const Zf=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t};class bfe extends Pi{}const{wrapError:c1}=$2,l1=Ir[Symbol.for("nodejs.util.promisify.custom")],ii=new N2,Ta=(e,t,r,n)=>{$i(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class bc extends Wo{constructor({allowMetaPatches:r=!0,useCircularStructures:n=!1,basePath:i=null,...s}){super(s);z(this,"useCircularStructures");z(this,"allowMetaPatches");z(this,"basePath");this.allowMetaPatches=r,this.useCircularStructures=n,this.basePath=i}async ReferenceElement(r,n,i,s,a,o){try{if(this.indirections.includes(r))return!1;const[g,y]=this.toAncestorLineage([...a,i]),v=this.toBaseURI(we(r.$ref)),E=Ut(this.reference.uri)===v,b=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&b)return!1;const S=await this.toReference(we(r.$ref)),x=Kr(v,we(r.$ref));this.indirections.push(r);const _=oi(x);let A=Ti(_,S.value.result);if(A.id=ii.identify(A),za(A)){const M=we(r.meta.get("referenced-element")),k=`${M}-${we(ii.identify(A))}`;this.refractCache.has(k)?A=this.refractCache.get(k):er(A)?(A=xa.refract(A),A.setMetaProperty("referenced-element",M),this.refractCache.set(k,A)):(A=this.namespace.getElementClass(M).refract(A),this.refractCache.set(k,A))}if(r===A)throw new dr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Vo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(A)){if(S.refSet.circular=!0,this.options.dereference.circular==="error")throw new dr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const M=new le.RefElement(A.id,{type:"reference",uri:S.uri,$ref:we(r.$ref),baseURI:x,referencingElement:r}),D=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)(M);return o.replaceWith(M,Ta),i?!1:D}}const C=Ut(S.refSet.rootRef.uri)!==S.uri,T=["error","replace"].includes(this.options.dereference.circular);if((b||C||mo(A)||T)&&!g.includesCycle(A)){var l;y.add(r);const M=new bc({reference:S,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:g,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Ci([...a,i,r]),"$ref"]});A=await l1(A,M,{keyMap:ns,nodeTypeGetter:ji}),y.delete(r)}this.indirections.pop();const O=dn(A);if(O.setMetaProperty("ref-fields",{$ref:we(r.$ref),description:we(r.description),summary:we(r.summary)}),O.setMetaProperty("ref-origin",S.uri),O.setMetaProperty("ref-referencing-element-id",Be(ii.identify(r))),Ft(A)&&(r.hasKey("description")&&"description"in A&&(O.remove("description"),O.set("description",r.get("description"))),r.hasKey("summary")&&"summary"in A&&(O.remove("summary"),O.set("summary",r.get("summary")))),this.allowMetaPatches&&Ft(O)&&!O.hasKey("$$ref")){const M=Kr(v,x);O.set("$$ref",M)}return o.replaceWith(O,Ta),i?!1:O}catch(g){var f,h,p;const y=Zf(g),v=c1(y,{baseDoc:this.reference.uri,$ref:we(r.$ref),pointer:oi(we(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ci([...a,i,r]),"$ref"]});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(p=h.push)===null||p===void 0||p.call(h,v);return}}async PathItemElement(r,n,i,s,a,o){try{if(!it(r.$ref))return;if(this.indirections.includes(r)||jh(["cycle"],r.$ref))return!1;const[g,y]=this.toAncestorLineage([...a,i]),v=this.toBaseURI(we(r.$ref)),E=Ut(this.reference.uri)===v,b=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&b)return;const S=await this.toReference(we(r.$ref)),x=Kr(v,we(r.$ref));this.indirections.push(r);const _=oi(x);let A=Ti(_,S.value.result);if(A.id=ii.identify(A),za(A)){const O=`path-item-${we(ii.identify(A))}`;this.refractCache.has(O)?A=this.refractCache.get(O):(A=ma.refract(A),this.refractCache.set(O,A))}if(r===A)throw new dr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Vo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(A)){if(S.refSet.circular=!0,this.options.dereference.circular==="error")throw new dr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const O=new le.RefElement(A.id,{type:"path-item",uri:S.uri,$ref:we(r.$ref),baseURI:x,referencingElement:r}),k=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)(O);return o.replaceWith(O,Ta),i?!1:k}}const C=Ut(S.refSet.rootRef.uri)!==S.uri,T=["error","replace"].includes(this.options.dereference.circular);if((b||C||Ya(A)&&it(A.$ref)||T)&&!g.includesCycle(A)){var l;y.add(r);const O=new bc({reference:S,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:g,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Ci([...a,i,r]),"$ref"]});A=await l1(A,O,{keyMap:ns,nodeTypeGetter:ji}),y.delete(r)}if(this.indirections.pop(),Ya(A)){const O=new ma([...A.content],Be(A.meta),Be(A.attributes));if(r.forEach((M,k,D)=>{O.remove(we(k)),O.content.push(D)}),O.remove("$ref"),O.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),O.setMetaProperty("ref-origin",S.uri),O.setMetaProperty("ref-referencing-element-id",Be(ii.identify(r))),this.allowMetaPatches&&typeof O.get("$$ref")>"u"){const M=Kr(v,x);O.set("$$ref",M)}A=O}return o.replaceWith(A,Ta),i?void 0:A}catch(g){var f,h,p;const y=Zf(g),v=c1(y,{baseDoc:this.reference.uri,$ref:we(r.$ref),pointer:oi(we(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ci([...a,i,r]),"$ref"]});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(p=h.push)===null||p===void 0||p.call(h,v);return}}async SchemaElement(r,n,i,s,a,o){try{if(!it(r.$ref))return;if(this.indirections.includes(r))return!1;const[g,y]=this.toAncestorLineage([...a,i]);let v=await this.toReference(Yi(this.reference.uri)),{uri:E}=v;const b=n5(E,r),S=Ut(b),x=new Nc({uri:S}),_=!this.options.resolve.resolvers.some(D=>D.canRead(x)),A=!_;let C=Ut(this.reference.uri)===b,T=!C;this.indirections.push(r);let O;try{if(_||A){E=this.toBaseURI(b);const D=b,P=en(v.value.result);if(O=hm(D,P),O=en(O),O.id=ii.identify(O),!this.options.resolve.internal&&C||!this.options.resolve.external&&T)return}else{if(E=this.toBaseURI(b),C=Ut(this.reference.uri)===E,T=!C,!this.options.resolve.internal&&C||!this.options.resolve.external&&T)return;v=await this.toReference(Yi(b));const D=oi(b),P=en(v.value.result);O=Ti(D,P),O=en(O),O.id=ii.identify(O)}}catch(D){if(A&&D instanceof D2)if(pm(cu(b))){if(C=Ut(this.reference.uri)===E,T=!C,!this.options.resolve.internal&&C||!this.options.resolve.external&&T)return;v=await this.toReference(Yi(b));const P=cu(b),H=en(v.value.result);O=uC(P,H),O=en(O),O.id=ii.identify(O)}else{if(E=this.toBaseURI(we(b)),C=Ut(this.reference.uri)===E,T=!C,!this.options.resolve.internal&&C||!this.options.resolve.external&&T)return;v=await this.toReference(Yi(b));const P=oi(b),H=en(v.value.result);O=Ti(P,H),O=en(O),O.id=ii.identify(O)}else throw D}if(r===O)throw new dr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Vo(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(g.includes(O)){if(v.refSet.circular=!0,this.options.dereference.circular==="error")throw new dr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const D=new le.RefElement(O.id,{type:"json-schema",uri:v.uri,$ref:we(r.$ref),baseURI:Kr(E,b),referencingElement:r}),H=((u=(c=this.options.dereference.strategyOpts["openapi-3-1"])===null||c===void 0?void 0:c.circularReplacer)!==null&&u!==void 0?u:this.options.dereference.circularReplacer)(D);return o.replaceWith(H,Ta),i?!1:H}}const M=Ut(v.refSet.rootRef.uri)!==v.uri,k=["error","replace"].includes(this.options.dereference.circular);if((T||M||ga(O)&&it(O.$ref)||k)&&!g.includesCycle(O)){var l;y.add(r);const D=new bc({reference:v,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:g,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Ci([...a,i,r]),"$ref"]});O=await l1(O,D,{keyMap:ns,nodeTypeGetter:ji}),y.delete(r)}if(this.indirections.pop(),oC(O)){const D=Be(O);return D.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),D.setMetaProperty("ref-origin",v.uri),D.setMetaProperty("ref-referencing-element-id",Be(ii.identify(r))),o.replaceWith(D,Ta),i?!1:D}if(ga(O)){const D=new ho([...O.content],Be(O.meta),Be(O.attributes));if(r.forEach((P,H,X)=>{D.remove(we(H)),D.content.push(X)}),D.remove("$ref"),D.setMetaProperty("ref-fields",{$ref:we(r.$ref)}),D.setMetaProperty("ref-origin",v.uri),D.setMetaProperty("ref-referencing-element-id",Be(ii.identify(r))),this.allowMetaPatches&&typeof D.get("$$ref")>"u"){const P=Kr(E,b);D.set("$$ref",P)}O=D}return o.replaceWith(O,Ta),i?void 0:O}catch(g){var f,h,p;const y=Zf(g),v=new bfe(`Could not resolve reference: ${y.message}`,{baseDoc:this.reference.uri,$ref:we(r.$ref),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Ci([...a,i,r]),"$ref"],cause:y});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(p=h.push)===null||p===void 0||p.call(h,v);return}}async LinkElement(){}async ExampleElement(r,n,i,s,a,o){try{return await super.ExampleElement(r,n,i,s,a,o)}catch(f){var u,c,l;const h=Zf(f),p=c1(h,{baseDoc:this.reference.uri,externalValue:we(r.externalValue),fullPath:(u=this.basePath)!==null&&u!==void 0?u:[...Ci([...a,i,r]),"externalValue"]});(c=this.options.dereference.dereferenceOpts)===null||c===void 0||(c=c.errors)===null||c===void 0||(l=c.push)===null||l===void 0||l.call(c,p);return}}}const _fe=Ph[Symbol.for("nodejs.util.promisify.custom")];class Efe{constructor({parameterMacro:t,modelPropertyMacro:r,mode:n,options:i,...s}){const a=[];a.push(new bc({...s,options:i})),typeof r=="function"&&a.push(new gfe({modelPropertyMacro:r,options:i})),n!=="strict"&&a.push(new yfe({options:i})),typeof t=="function"&&a.push(new vfe({parameterMacro:t,options:i}));const o=_fe(a,{nodeTypeGetter:ji});Object.assign(this,o)}}const Sfe=Ir[Symbol.for("nodejs.util.promisify.custom")];class wfe extends hfe{constructor({allowMetaPatches:r=!1,parameterMacro:n=null,modelPropertyMacro:i=null,mode:s="non-strict",ancestors:a=[],...o}={}){super({...o});z(this,"allowMetaPatches");z(this,"parameterMacro");z(this,"modelPropertyMacro");z(this,"mode");z(this,"ancestors");this.name="openapi-3-1-swagger-client",this.allowMetaPatches=r,this.parameterMacro=n,this.modelPropertyMacro=i,this.mode=s,this.ancestors=[...a]}async dereference(r,n){var i;const s=Ls(aC),a=(i=n.dereference.refSet)!==null&&i!==void 0?i:new su,o=new su;let u=a,c;a.has(r.uri)?c=a.find(h=>h.uri===r.uri):(c=new As({uri:r.uri,value:r.parseResult}),a.add(c)),n.dereference.immutable&&(a.refs.map(h=>new As({...h,value:Be(h.value)})).forEach(h=>o.add(h)),c=o.find(h=>h.uri===r.uri),u=o);const l=new Efe({reference:c,namespace:s,options:n,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),f=await Sfe(u.rootRef.value,l,{keyMap:ns,nodeTypeGetter:ji});return n.dereference.immutable&&o.refs.filter(h=>h.uri.startsWith("immutable://")).map(h=>new As({...h,uri:h.uri.replace(/^immutable:\/\//,"")})).forEach(h=>a.add(h)),n.dereference.refSet===null&&a.clean(),o.clean(),f}}const xfe=e=>{const t=we(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new le.ObjectElement({$ref:t},Be(r.meta),Be(r.attributes))},mm=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:i,responseInterceptor:s,pathDiscriminator:a=[],allowMetaPatches:o=!1,useCircularStructures:u=!1,skipNormalization:c=!1,parameterMacro:l=null,modelPropertyMacro:f=null,mode:h="non-strict",strategies:p}=e;try{const{cache:g}=mm,y=p.find(X=>X.match(t)),v=A2(Bw())?Bw():Hd,E=V2(e),b=Kr(v,E);let S;g.has(t)?S=g.get(t):(S=wa.refract(t),S.classes.push("result"),g.set(t,S));const x=new Ni([S]),_=E9(a),A=_===""?"":`#${_}`,C=Ti(_,S),T=new As({uri:b,value:x}),O=new su({refs:[T]});_!==""&&(O.rootRef=void 0);const M=[new Set([C])],k=[],D=await Oie(C,{resolve:{baseURI:`${b}${A}`,resolvers:[new afe({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:s}},strategies:[new nfe]},parse:{mediaType:ou.latest(),parsers:[new cfe({allowEmpty:!1,sourceMap:!1}),new lfe({allowEmpty:!1,sourceMap:!1}),new ofe({allowEmpty:!1,sourceMap:!1}),new ufe({allowEmpty:!1,sourceMap:!1}),new rfe({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new wfe({allowMetaPatches:o,useCircularStructures:u,parameterMacro:l,modelPropertyMacro:f,mode:h,ancestors:M})],refSet:O,dereferenceOpts:{errors:k},immutable:!1,circular:u?"ignore":"replace",circularReplacer:u?y8.dereference.circularReplacer:xfe}}),P=fie(C,D,S),H=c?P:y.normalize(P);return{spec:we(H),errors:k}}catch(g){if(g instanceof Kw||g instanceof sc)return{spec:t,errors:[]};throw g}};mm.cache=new WeakMap;const fF=e=>{if(!Ft(e))return e;const t=[lce({operationIdNormalizer:(n,i,s)=>Nh({operationId:n},i,s,{v2OperationIdCompatibilityMode:!1})}),ace(),oce(),fce(),dce()];return ds(e,t,{toolboxCreator:r5,visitorOptions:{keyMap:ns,nodeTypeGetter:ji}})},Afe=e=>t=>{const r=wa.refract(t);r.classes.push("result");const n=e(r),i=we(n);return mm.cache.set(i,n),we(n)},Ofe={name:"openapi-3-1-apidom",match(e){return J2(e)},normalize(e){if(!Sr(e)&&Ts(e)&&!e.$$normalized){const t=Afe(fF)(e);return t.$$normalized=!0,t}return Sr(e)?fF(e):e},async resolve(e){return mm(e)}},Cfe=async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,i=V2(e),s=h9(e),a=t||await c9(s,{requestInterceptor:r,responseInterceptor:n})(i),o={...e,spec:a};return e.strategies.find(c=>c.match(a)).resolve(o)},i5=e=>async t=>{const r={...e,...t};return Cfe(r)},Rfe=i5({strategies:[_9,b9,g9]});function Tfe(){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 t="";return t+=`; OpenAPI Server URL templating ABNF syntax
100
+ `,t+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
101
+ `,t+=`server-variable = "{" server-variable-name "}"
102
+ `,t+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
103
+ `,t+=`
104
+ `,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
105
+ `,t+=`; https://www.rfc-editor.org/errata/eid6937
106
+ `,t+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
107
+ `,t+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
108
+ `,t+=` / pct-encoded)
109
+ `,t+=` ; any Unicode character except: CTL, SP,
110
+ `,t+=` ; DQUOTE, "%" (aside from pct-encoded),
111
+ `,t+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',t+=`
112
+ `,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
113
+ `,t+=`DIGIT = %x30-39 ; 0-9
114
+ `,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
115
+ `,t+=`
116
+ `,t+=`pct-encoded = "%" HEXDIG HEXDIG
117
+ `,t+=`
118
+ `,t+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
119
+ `,t+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
120
+ `,t+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
121
+ `,t+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
122
+ `,t+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
123
+ `,t+=` / %xD0000-DFFFD / %xE1000-EFFFD
124
+ `,t+=`
125
+ `,t+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
126
+ `,t}}const go=function(){const t=St,r=Li,n=this,i="parser.js: Parser(): ",s=function(){this.state=t.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=t.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,c=0,l=0,f,h,p,g,y=new s,v,E,b;const S=()=>{a=0,o=0,u=0,c=0,l=0,f=void 0,h=void 0,p=void 0,g=void 0,y.refresh(),v=void 0,E=void 0,b=void 0},x=()=>{const Q=`${i}initializeCallbacks(): `;let Z;for(v=[],E=[],Z=0;Z<f.length;Z+=1)v[Z]=void 0;for(Z=0;Z<h.length;Z+=1)E[Z]=void 0;let B;const J=[];for(Z=0;Z<f.length;Z+=1)J.push(f[Z].lower);for(Z=0;Z<h.length;Z+=1)J.push(h[Z].lower);for(const ee in n.callbacks)if(n.callbacks.hasOwnProperty(ee)){if(Z=J.indexOf(ee.toLowerCase()),Z<0)throw new Error(`${Q}syntax callback '${ee}' not a rule or udt name`);if(B=n.callbacks[ee]?n.callbacks[ee]:void 0,typeof B=="function"||B===void 0)Z<f.length?v[Z]=B:E[Z-f.length]=B;else throw new Error(`${Q}syntax callback[${ee}] must be function reference or falsy)`)}};n.parse=(Q,Z,B,J)=>{const ee=`${i}parse(): `;S(),g=r.stringToChars(B),f=Q.rules,h=Q.udts;const ne=Z.toLowerCase();let ae;for(const F in f)if(f.hasOwnProperty(F)&&ne===f[F].lower){ae=f[F].index;break}if(ae===void 0)throw new Error(`${ee}start rule name '${startRule}' not recognized`);x(),n.trace&&n.trace.init(f,h,g),n.stats&&n.stats.init(f,h),n.ast&&n.ast.init(f,h,g),b=J,p=[{type:t.RNM,index:ae}],G(0,0),p=void 0;let Y=!1;switch(y.state){case t.ACTIVE:throw new Error(`${ee}final state should never be 'ACTIVE'`);case t.NOMATCH:Y=!1;break;case t.EMPTY:case t.MATCH:y.phraseLength===g.length?Y=!0:Y=!1;break;default:throw new Error("unrecognized state")}return{success:Y,state:y.state,stateName:t.idName(y.state),length:g.length,matched:y.phraseLength,maxMatched:l,maxTreeDepth:u,nodeHits:c}};const _=(Q,Z)=>{const B=p[Q];for(let J=0;J<B.children.length&&(G(B.children[J],Z),y.state===t.NOMATCH);J+=1);},A=(Q,Z)=>{let B,J,ee,ne;const ae=p[Q];n.ast&&(J=n.ast.getLength()),B=!0,ee=Z,ne=0;for(let Y=0;Y<ae.children.length;Y+=1)if(G(ae.children[Y],ee),y.state===t.NOMATCH){B=!1;break}else ee+=y.phraseLength,ne+=y.phraseLength;B?(y.state=ne===0?t.EMPTY:t.MATCH,y.phraseLength=ne):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(J))},C=(Q,Z)=>{let B,J,ee,ne;const ae=p[Q];if(ae.max===0){y.state=t.EMPTY,y.phraseLength=0;return}for(J=Z,ee=0,ne=0,n.ast&&(B=n.ast.getLength());!(J>=g.length||(G(Q+1,J),y.state===t.NOMATCH)||y.state===t.EMPTY||(ne+=1,ee+=y.phraseLength,J+=y.phraseLength,ne===ae.max)););y.state===t.EMPTY||ne>=ae.min?(y.state=ee===0?t.EMPTY:t.MATCH,y.phraseLength=ee):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(B))},T=(Q,Z,B,J)=>{if(Z.phraseLength>B){let ee=`${i}opRNM(${Q.name}): callback function error: `;throw ee+=`sysData.phraseLength: ${Z.phraseLength}`,ee+=` must be <= remaining chars: ${B}`,new Error(ee)}switch(Z.state){case t.ACTIVE:if(!J)throw new Error(`${i}opRNM(${Q.name}): callback function return error. ACTIVE state not allowed.`);break;case t.EMPTY:Z.phraseLength=0;break;case t.MATCH:Z.phraseLength===0&&(Z.state=t.EMPTY);break;case t.NOMATCH:Z.phraseLength=0;break;default:throw new Error(`${i}opRNM(${Q.name}): callback function return error. Unrecognized return state: ${Z.state}`)}},O=(Q,Z)=>{let B,J,ee;const ne=p[Q],ae=f[ne.index],Y=v[ae.index];if(a||(J=n.ast&&n.ast.ruleDefined(ne.index),J&&(B=n.ast.getLength(),n.ast.down(ne.index,f[ne.index].name))),Y){const F=g.length-Z;Y(y,g,Z,b),T(ae,y,F,!0),y.state===t.ACTIVE&&(ee=p,p=ae.opcodes,G(0,Z),p=ee,Y(y,g,Z,b),T(ae,y,F,!1))}else ee=p,p=ae.opcodes,G(0,Z),p=ee;a||J&&(y.state===t.NOMATCH?n.ast.setLength(B):n.ast.up(ne.index,ae.name,Z,y.phraseLength))},M=(Q,Z)=>{const B=p[Q];y.state=t.NOMATCH,Z<g.length&&B.min<=g[Z]&&g[Z]<=B.max&&(y.state=t.MATCH,y.phraseLength=1)},k=(Q,Z)=>{const B=p[Q],J=B.string.length;if(y.state=t.NOMATCH,Z+J<=g.length){for(let ee=0;ee<J;ee+=1)if(g[Z+ee]!==B.string[ee])return;y.state=t.MATCH,y.phraseLength=J}},D=(Q,Z)=>{let B;const J=p[Q];y.state=t.NOMATCH;const ee=J.string.length;if(ee===0){y.state=t.EMPTY;return}if(Z+ee<=g.length){for(let ne=0;ne<ee;ne+=1)if(B=g[Z+ne],B>=65&&B<=90&&(B+=32),B!==J.string[ne])return;y.state=t.MATCH,y.phraseLength=ee}},P=(Q,Z,B)=>{if(Z.phraseLength>B){let J=`${i}opUDT(${Q.name}): callback function error: `;throw J+=`sysData.phraseLength: ${Z.phraseLength}`,J+=` must be <= remaining chars: ${B}`,new Error(J)}switch(Z.state){case t.ACTIVE:throw new Error(`${i}opUDT(${Q.name}) ACTIVE state return not allowed.`);case t.EMPTY:if(Q.empty)Z.phraseLength=0;else throw new Error(`${i}opUDT(${Q.name}) may not return EMPTY.`);break;case t.MATCH:if(Z.phraseLength===0)if(Q.empty)Z.state=t.EMPTY;else throw new Error(`${i}opUDT(${Q.name}) may not return EMPTY.`);break;case t.NOMATCH:Z.phraseLength=0;break;default:throw new Error(`${i}opUDT(${Q.name}): callback function return error. Unrecognized return state: ${Z.state}`)}},H=(Q,Z)=>{let B,J,ee;const ne=p[Q],ae=h[ne.index];y.UdtIndex=ae.index,a||(ee=n.ast&&n.ast.udtDefined(ne.index),ee&&(J=f.length+ne.index,B=n.ast.getLength(),n.ast.down(J,ae.name)));const Y=g.length-Z;E[ne.index](y,g,Z,b),P(ae,y,Y),a||ee&&(y.state===t.NOMATCH?n.ast.setLength(B):n.ast.up(J,ae.name,Z,y.phraseLength))},X=(Q,Z)=>{switch(a+=1,G(Q+1,Z),a-=1,y.phraseLength=0,y.state){case t.EMPTY:y.state=t.EMPTY;break;case t.MATCH:y.state=t.EMPTY;break;case t.NOMATCH:y.state=t.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}},V=(Q,Z)=>{switch(a+=1,G(Q+1,Z),a-=1,y.phraseLength=0,y.state){case t.EMPTY:case t.MATCH:y.state=t.NOMATCH;break;case t.NOMATCH:y.state=t.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}},G=(Q,Z)=>{const B=`${i}opExecute(): `,J=p[Q];switch(c+=1,o>u&&(u=o),o+=1,y.refresh(),n.trace&&n.trace.down(J,Z),J.type){case t.ALT:_(Q,Z);break;case t.CAT:A(Q,Z);break;case t.REP:C(Q,Z);break;case t.RNM:O(Q,Z);break;case t.TRG:M(Q,Z);break;case t.TBS:k(Q,Z);break;case t.TLS:D(Q,Z);break;case t.UDT:H(Q,Z);break;case t.AND:X(Q,Z);break;case t.NOT:V(Q,Z);break;default:throw new Error(`${B}unrecognized operator`)}a||Z+y.phraseLength>l&&(l=Z+y.phraseLength),n.stats&&n.stats.collect(J,y),n.trace&&n.trace.up(J,y.state,Z,y.phraseLength),o-=1}},s5=function(){const t="parser.js: Ast()): ",r=St,n=Li,i=this;let s,a,o,u=0;const c=[],l=[],f=[];i.callbacks=[],i.init=(p,g,y)=>{l.length=0,f.length=0,u=0,s=p,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)c[v]=void 0;for(const b in i.callbacks)if(i.callbacks.hasOwnProperty(b)){const S=b.toLowerCase();if(v=E.indexOf(S),v<0)throw new Error(`${t}init: node '${b}' not a rule or udt name`);c[v]=i.callbacks[b]}},i.ruleDefined=p=>!!c[p],i.udtDefined=p=>!!c[s.length+p],i.down=(p,g)=>{const y=f.length;return l.push(y),f.push({name:g,thisIndex:y,thatIndex:void 0,state:r.SEM_PRE,callbackIndex:p,phraseIndex:void 0,phraseLength:void 0,stack:l.length}),y},i.up=(p,g,y,v)=>{const E=f.length,b=l.pop();return f.push({name:g,thisIndex:E,thatIndex:b,state:r.SEM_POST,callbackIndex:p,phraseIndex:y,phraseLength:v,stack:l.length}),f[b].thatIndex=E,f[b].phraseIndex=y,f[b].phraseLength=v,E},i.translate=p=>{let g,y;for(let v=0;v<f.length;v+=1)y=f[v],g=c[y.callbackIndex],g&&(y.state===r.SEM_PRE?g(r.SEM_PRE,o,y.phraseIndex,y.phraseLength,p):g&&g(r.SEM_POST,o,y.phraseIndex,y.phraseLength,p))},i.setLength=p=>{f.length=p,p>0?l.length=f[p-1].stack:l.length=0},i.getLength=()=>f.length;function h(p){let g="";for(;p-- >0;)g+=" ";return g}i.toXml=()=>{let p="",g=0;return p+=`<?xml version="1.0" encoding="utf-8"?>
127
+ `,p+=`<root nodes="${f.length/2}" characters="${o.length}">
128
+ `,p+=`<!-- input string -->
129
+ `,p+=h(g+2),p+=n.charsToString(o),p+=`
130
+ `,f.forEach(y=>{y.state===r.SEM_PRE?(g+=1,p+=h(g),p+=`<node name="${y.name}" index="${y.phraseIndex}" length="${y.phraseLength}">
131
+ `,p+=h(g+2),p+=n.charsToString(o,y.phraseIndex,y.phraseLength),p+=`
132
+ `):(p+=h(g),p+=`</node><!-- name="${y.name}" -->
133
+ `,g-=1)}),p+=`</root>
134
+ `,p}},Li={stringToChars:e=>[...e].map(t=>t.codePointAt(0)),charsToString:(e,t,r)=>{let n=e;for(;!(t===void 0||t<0);){if(r===void 0){n=e.slice(t);break}if(r<=0)return"";n=e.slice(t,t+r);break}return String.fromCodePoint(...n)}},St={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case St.ALT:return"ALT";case St.CAT:return"CAT";case St.REP:return"REP";case St.RNM:return"RNM";case St.TRG:return"TRG";case St.TBS:return"TBS";case St.TLS:return"TLS";case St.UDT:return"UDT";case St.AND:return"AND";case St.NOT:return"NOT";case St.ACTIVE:return"ACTIVE";case St.EMPTY:return"EMPTY";case St.MATCH:return"MATCH";case St.NOMATCH:return"NOMATCH";case St.SEM_PRE:return"SEM_PRE";case St.SEM_POST:return"SEM_POST";case St.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}},Ife=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-url-template",Li.charsToString(t,r,n)])}return St.SEM_OK},jfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable",Li.charsToString(t,r,n)])}return St.SEM_OK},kfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable-name",Li.charsToString(t,r,n)])}return St.SEM_OK},Pfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["literals",Li.charsToString(t,r,n)])}return St.SEM_OK},Nfe=new Tfe,a5=e=>{const t=new go;return t.ast=new s5,t.ast.callbacks["server-url-template"]=Ife,t.ast.callbacks["server-variable"]=jfe,t.ast.callbacks["server-variable-name"]=kfe,t.ast.callbacks.literals=Pfe,{result:t.parse(Nfe,"server-url-template",e),ast:t.ast}},Mfe=(e,{strict:t=!1}={})=>{try{const r=a5(e);if(!r.result.success)return!1;const n=[];r.ast.translate(n);const i=n.some(([s])=>s==="server-variable");if(!t&&!i)try{return new URL(e,"https://vladimirgorej.com"),!0}catch{return!1}return t?i:!0}catch{return!1}},Dfe=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},qfe=e=>Dfe(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),$fe=["literals","server-variable-name"],Ffe=(e,t,r={})=>{const i={...{encoder:qfe},...r},s=a5(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>$fe.includes(u)).map(([u,c])=>u==="server-variable-name"?Object.hasOwn(t,c)?i.encoder(t[c],c):`{${c}}`:c).join("")};function o5(){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 t="";return t+=`; OpenAPI Path Templating ABNF syntax
135
+ `,t+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
136
+ `,t+=`path-template = slash *( path-segment slash ) [ path-segment ]
137
+ `,t+=`path-segment = 1*( path-literal / template-expression )
138
+ `,t+=`slash = "/"
139
+ `,t+=`path-literal = 1*pchar
140
+ `,t+=`template-expression = "{" template-expression-param-name "}"
141
+ `,t+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
142
+ `,t+=`
143
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
144
+ `,t+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
145
+ `,t+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
146
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
147
+ `,t+=`pct-encoded = "%" HEXDIG HEXDIG
148
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
149
+ `,t+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
150
+ `,t+=` / "*" / "+" / "," / ";" / "="
151
+ `,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
152
+ `,t+=`
153
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
154
+ `,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
155
+ `,t+=`DIGIT = %x30-39 ; 0-9
156
+ `,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
157
+ `,t}}const Lfe=(e,t,r,n,i)=>(e===St.SEM_PRE&&i.push(["slash",Li.charsToString(t,r,n)]),St.SEM_OK),Bfe=(e,t,r,n,i)=>{if(e===St.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["path-template",Li.charsToString(t,r,n)])}return St.SEM_OK},Ufe=(e,t,r,n,i)=>(e===St.SEM_PRE&&i.push(["path-literal",Li.charsToString(t,r,n)]),St.SEM_OK),Vfe=(e,t,r,n,i)=>(e===St.SEM_PRE&&i.push(["template-expression",Li.charsToString(t,r,n)]),St.SEM_OK),zfe=(e,t,r,n,i)=>(e===St.SEM_PRE&&i.push(["template-expression-param-name",Li.charsToString(t,r,n)]),St.SEM_OK),Wfe=new o5,Jfe=e=>{const t=new go;return t.ast=new s5,t.ast.callbacks["path-template"]=Bfe,t.ast.callbacks.slash=Lfe,t.ast.callbacks["path-literal"]=Ufe,t.ast.callbacks["template-expression"]=Vfe,t.ast.callbacks["template-expression-param-name"]=zfe,{result:t.parse(Wfe,"path-template",e),ast:t.ast}},Kfe=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},Hfe=e=>Kfe(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Gfe=["slash","path-literal","template-expression-param-name"],Rx=(e,t,r={})=>{const i={...{encoder:Hfe},...r},s=Jfe(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>Gfe.includes(u)).map(([u,c])=>u==="template-expression-param-name"?Object.prototype.hasOwnProperty.call(t,c)?i.encoder(t[c],c):`{${c}}`:c).join("")};new o5;new go;const Yfe={body:Xfe,header:Qfe,query:tde,path:ede,formData:Zfe};function Xfe({req:e,value:t}){t!==void 0&&(e.body=t)}function Zfe({req:e,value:t,parameter:r}){if(t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){e.form=e.form||{};const n=r.name;e.form[n]=e.form[n]||{},e.form[n].allowEmptyValue=!0}}function Qfe({req:e,parameter:t,value:r}){e.headers=e.headers||{},typeof r<"u"&&(e.headers[t.name]=r)}function ede({req:e,value:t,parameter:r,baseURL:n}){if(t!==void 0){const i=e.url.replace(n,""),s=Rx(i,{[r.name]:t});e.url=n+s}}function tde({req:e,value:t,parameter:r}){if(e.query=e.query||{},t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){const n=r.name;e.query[n]=e.query[n]||{},e.query[n].allowEmptyValue=!0}}function gm(e,t){return t.includes("application/json")?typeof e=="string"?e:(Array.isArray(e)&&(e=e.map(r=>{try{return JSON.parse(r)}catch{return r}})),JSON.stringify(e)):String(e)}function mf(){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 t="";return t+=`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
158
+ `,t+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
159
+ `,t+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
160
+ `,t+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
161
+ `,t+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
162
+ `,t+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
163
+ `,t+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
164
+ `,t+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
165
+ `,t+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
166
+ `,t+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
167
+ `,t+=` ; Allow all printable characters except CTLs, semicolon and SP
168
+ `,t+=`
169
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
170
+ `,t+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
171
+ `,t+=`
172
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
173
+ `,t+=`; https://www.rfc-editor.org/errata/eid5518
174
+ `,t+=`cookie-pair = cookie-name "=" cookie-value
175
+ `,t+=`cookie-name = token
176
+ `,t+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
177
+ `,t+=` ; https://www.rfc-editor.org/errata/eid8242
178
+ `,t+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
179
+ `,t+=` ; US-ASCII characters excluding CTLs,
180
+ `,t+=` ; whitespace, DQUOTE, comma, semicolon,
181
+ `,t+=` ; and backslash
182
+ `,t+=`
183
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
184
+ `,t+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
185
+ `,t+=`
186
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
187
+ `,t+=`token = 1*(tchar)
188
+ `,t+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
189
+ `,t+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',t+=` / DIGIT / ALPHA
190
+ `,t+=` ; any VCHAR, except delimiters
191
+ `,t+=`
192
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
193
+ `,t+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
194
+ `,t+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
195
+ `,t+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
196
+ `,t+=`SP = %x20 ; US-ASCII SP, space (32)
197
+ `,t+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
198
+ `,t+=`
199
+ `,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
200
+ `,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
201
+ `,t+=`DIGIT = %x30-39 ; 0-9
202
+ `,t+=`DQUOTE = %x22 ; " (Double Quote)
203
+ `,t+=`WSP = SP / HTAB ; white space
204
+ `,t+=`HTAB = %x09 ; horizontal tab
205
+ `,t+=`CRLF = CR LF ; Internet standard newline
206
+ `,t+=`CR = %x0D ; carriage return
207
+ `,t+=`LF = %x0A ; linefeed
208
+ `,t}}new mf;const rde=e=>{if(typeof e!="string"||[...e].length!==1)throw new TypeError("Input must be a single character string.");const t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,"0")}`:encodeURIComponent(e)},nde=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),ym=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),u5=e=>ym(e)?e.slice(1,-1):e,c5=e=>`"${e}"`,l5=e=>e,ide=new go,sde=new mf,cC=(e,{strict:t=!0,quoted:r=null}={})=>{try{const n=t?"cookie-value":"lenient-cookie-value",i=ide.parse(sde,n,e);return typeof r=="boolean"?i.success&&r===ym(e):i.success}catch{return!1}},f5=e=>{const r=new TextEncoder().encode(e).reduce((n,i)=>n+String.fromCharCode(i),"");return btoa(r)},ade=(e,t=f5)=>{const r=String(e);if(cC(r))return r;const n=ym(r),i=n?u5(r):r,s=t(i);return n?c5(s):s},ode=e=>nde(f5(e)),ude=e=>ade(e,ode),cde=new go,lde=new mf,d5=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return cde.parse(lde,r,e).success}catch{return!1}},fde=e=>{if(!d5(e))throw new TypeError(`Invalid cookie name: ${e}`)},p5=e=>{if(!cC(e))throw new TypeError(`Invalid cookie value: ${e}`)},dF={encoders:{name:l5,value:ude},validators:{name:fde,value:p5}},dde=(e,t,r={})=>{const n={...r,encoders:{...dF.encoders,...r.encoders},validators:{...dF.validators,...r.validators}},i=n.encoders.name(e),s=n.encoders.value(t);return n.validators.name(i),n.validators.value(s),`${i}=${s}`},pde=(e,t={})=>(Array.isArray(e)?e:typeof e=="object"&&e!==null?Object.entries(e):[]).map(([n,i])=>dde(n,i,t)).join("; "),hde=new go,mde=new mf,gde=e=>{const t=String(e);if(cC(t))return t;const r=ym(t),n=r?u5(t):t;let i="";for(const s of n)i+=hde.parse(mde,"cookie-octet",s).success?s:rde(s);return r?c5(i):i};new go;new mf;const yde=e=>{if(!d5(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)},vde="%3D",bde="%26",_de=e=>gde(e).replace(/[=&]/gu,t=>t==="="?vde:bde),Tx=(e,t={})=>pde(e,Sh({encoders:{name:l5,value:_de},validators:{name:yde,value:p5}},t));function Ede({req:e,value:t,parameter:r,baseURL:n}){const{name:i,style:s,explode:a,content:o}=r;if(t===void 0)return;const u=e.url.replace(n,"");let c;if(o){const l=Object.keys(o)[0];c=Rx(u,{[i]:t},{encoder:f=>f9(gm(f,l))})}else c=Rx(u,{[i]:t},{encoder:l=>B2({key:r.name,value:l,style:s||"simple",explode:a??!1,escape:"reserved"})});e.url=n+c}function Sde({req:e,value:t,parameter:r}){if(e.query=e.query||{},t!==void 0&&r.content){const n=Object.keys(r.content)[0],i=gm(t,n);if(i)e.query[r.name]=i;else if(r.allowEmptyValue){const s=r.name;e.query[s]=e.query[s]||{},e.query[s].allowEmptyValue=!0}return}if(t===!1&&(t="false"),t===0&&(t="0"),t){const{style:n,explode:i,allowReserved:s}=r;e.query[r.name]={value:t,serializationOption:{style:n,explode:i,allowReserved:s}}}else if(r.allowEmptyValue&&t!==void 0){const n=r.name;e.query[n]=e.query[n]||{},e.query[n].allowEmptyValue=!0}}const wde=["accept","authorization","content-type"];function xde({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(wde.indexOf(t.name.toLowerCase())>-1)){if(r!==void 0&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=gm(r,n);return}r!==void 0&&!(Array.isArray(r)&&r.length===0)&&(e.headers[t.name]=B2({key:t.name,value:r,style:t.style||"simple",explode:typeof t.explode>"u"?!1:t.explode,escape:!1}))}}function Ade({req:e,parameter:t,value:r}){const{name:n}=t;if(e.headers=e.headers||{},r!==void 0&&t.content){const s=Object.keys(t.content)[0],a=gm(r,s);e.headers.Cookie=Tx({[n]:a});return}if(r!==void 0&&!(Array.isArray(r)&&r.length===0)){var i;const s=B2({key:t.name,value:r,escape:!1,style:t.style||"form",explode:(i=t.explode)!==null&&i!==void 0?i:!1}),a=Array.isArray(r)&&t.explode?`${n}=${s}`:s;e.headers.Cookie=Tx({[n]:a})}}const Ode=Object.freeze(Object.defineProperty({__proto__:null,cookie:Ade,header:xde,path:Ede,query:Sde},Symbol.toStringTag,{value:"Module"})),Cde=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:h5}=Cde;function Rde(e,t){const{operation:r,requestBody:n,securities:i,spec:s,attachContentTypeForEmptyPayload:a}=e;let{requestContentType:o}=e;t=Tde({request:t,securities:i,operation:r,spec:s});const u=r.requestBody||{},c=Object.keys(u.content||{}),l=o&&c.indexOf(o)>-1;if(n||a){if(o&&l)t.headers["Content-Type"]=o;else if(!o){const y=c[0];y&&(t.headers["Content-Type"]=y,o=y)}}else o&&l&&(t.headers["Content-Type"]=o);if(!e.responseContentType&&r.responses){const y=Object.entries(r.responses).filter(([v,E])=>{const b=parseInt(v,10);return b>=200&&b<300&&Ts(E.content)}).reduce((v,[,E])=>v.concat(Object.keys(E.content)),[]);y.length>0&&(t.headers.accept=y.join(", "))}if(n)if(o){if(c.indexOf(o)>-1)if(o==="application/x-www-form-urlencoded"||o==="multipart/form-data")if(typeof n=="object"){var f,h;const y=(f=(h=u.content[o])===null||h===void 0?void 0:h.encoding)!==null&&f!==void 0?f:{};t.form={},Object.keys(n).forEach(v=>{let E;try{E=JSON.parse(n[v])}catch{E=n[v]}t.form[v]={value:E,encoding:y[v]||{}}})}else if(typeof n=="string"){var p,g;const y=(p=(g=u.content[o])===null||g===void 0?void 0:g.encoding)!==null&&p!==void 0?p:{};try{t.form={};const v=JSON.parse(n);Object.entries(v).forEach(([E,b])=>{t.form[E]={value:b,encoding:y[E]||{}}})}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function Tde({request:e,securities:t={},operation:r={},spec:n}){var i;const s={...e},{authorized:a={}}=t,o=r.security||n.security||[],u=a&&!!Object.keys(a).length,c=(n==null||(i=n.components)===null||i===void 0?void 0:i.securitySchemes)||{};return s.headers=s.headers||{},s.query=s.query||{},!Object.keys(t).length||!u||!o||Array.isArray(r.security)&&!r.security.length?e:(o.forEach(l=>{Object.keys(l).forEach(f=>{const h=a[f],p=c[f];if(!h)return;const g=h.value||h,{type:y}=p;if(h){if(y==="apiKey")p.in==="query"&&(s.query[p.name]=g),p.in==="header"&&(s.headers[p.name]=g),p.in==="cookie"&&(s.cookies[p.name]=g);else if(y==="http"){if(/^basic$/i.test(p.scheme)){const v=g.username||"",E=g.password||"",b=h5(`${v}:${E}`);s.headers.Authorization=`Basic ${b}`}/^bearer$/i.test(p.scheme)&&(s.headers.Authorization=`Bearer ${g}`)}else if(y==="oauth2"||y==="openIdConnect"){const v=h.token||{},E=p["x-tokenName"]||"access_token",b=v[E];let S=v.token_type;(!S||S.toLowerCase()==="bearer")&&(S="Bearer"),s.headers.Authorization=`${S} ${b}`}}})}),s)}function Ide(e,t){const{spec:r,operation:n,securities:i,requestContentType:s,responseContentType:a,attachContentTypeForEmptyPayload:o}=e;if(t=jde({request:t,securities:i,operation:n,spec:r}),t.body||t.form||o)s?t.headers["Content-Type"]=s:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter(u=>u.type==="file").length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter(u=>u.in==="formData").length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(s){const u=n.parameters&&n.parameters.filter(l=>l.in==="body").length>0,c=n.parameters&&n.parameters.filter(l=>l.in==="formData").length>0;(u||c)&&(t.headers["Content-Type"]=s)}return!a&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}function jde({request:e,securities:t={},operation:r={},spec:n}){const i={...e},{authorized:s={},specSecurity:a=[]}=t,o=r.security||a,u=s&&!!Object.keys(s).length,c=n.securityDefinitions;return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!u||!o||Array.isArray(r.security)&&!r.security.length?e:(o.forEach(l=>{Object.keys(l).forEach(f=>{const h=s[f];if(!h)return;const{token:p}=h,g=h.value||h,y=c[f],{type:v}=y,E=y["x-tokenName"]||"access_token",b=p&&p[E];let S=p&&p.token_type;if(h)if(v==="apiKey"){const x=y.in==="query"?"query":"headers";i[x]=i[x]||{},i[x][y.name]=g}else if(v==="basic")if(g.header)i.headers.authorization=g.header;else{const x=g.username||"",_=g.password||"";g.base64=h5(`${x}:${_}`),i.headers.authorization=`Basic ${g.base64}`}else v==="oauth2"&&b&&(S=!S||S.toLowerCase()==="bearer"?"Bearer":S,i.headers.authorization=`${S} ${b}`)})}),i)}function kde(e,t,r){if(!e||typeof e!="object"||!e.paths||typeof e.paths!="object")return null;const{paths:n}=e;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:e,pathName:i,method:s.toUpperCase(),operation:a};if(t(o))return o}}function Pde(e,t){return kde(e,t)||null}function m5(e,t){return`${t.toLowerCase()}-${e}`}function Nde(e,t){return!e||!e.paths?null:Pde(e,({pathName:r,method:n,operation:i})=>{if(!i||typeof i!="object")return!1;const s=i.operationId,a=Nh(i,r,n),o=m5(r,n);return[a,o,s].some(u=>u&&u===t)})}const pF=e=>Array.isArray(e)?e:[],_c=(e,{recurse:t=!0,depth:r=1}={})=>{if(Ts(e)){if(e.type==="object"||e.type==="array"||Array.isArray(e.type)&&(e.type.includes("object")||e.type.includes("array")))return e;if(!(r>t9)&&t){const n=Array.isArray(e.oneOf)?e.oneOf.find(s=>_c(s,{recurse:t,depth:r+1})):void 0;if(n)return n;const i=Array.isArray(e.anyOf)?e.anyOf.find(s=>_c(s,{recurse:t,depth:r+1})):void 0;if(i)return i}}},f1=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if(Ts(r)||Array.isArray(r))return r;if(!t)throw new Error("Expected JSON serialized object or array")}catch{if(!t)throw new Error("Could not parse parameter value string as JSON Object or JSON Array")}return e},bd=e=>{try{return new URL(e)}catch{const t=new URL(e,Hd),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}};class Mde extends Pi{}const Dde=(e,t)=>t.filter(r=>r.name===e),qde=e=>{const t={};e.forEach(n=>{t[n.in]||(t[n.in]={}),t[n.in][n.name]=n});const r=[];return Object.keys(t).forEach(n=>{Object.keys(t[n]).forEach(i=>{r.push(t[n][i])})}),r},$de={buildRequest:g5};function Fde({http:e,fetch:t,spec:r,operationId:n,pathName:i,method:s,parameters:a,securities:o,...u}){const c=e||t||Mc;i&&s&&!n&&(n=m5(i,s));const l=$de.buildRequest({spec:r,operationId:n,parameters:a,securities:o,http:c,...u});return l.body&&(Ts(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),c(l)}function g5(e){const{spec:t,operationId:r,responseContentType:n,scheme:i,requestInterceptor:s,responseInterceptor:a,contextUrl:o,userFetch:u,server:c,serverVariables:l,http:f,signal:h,serverVariableEncoder:p}=e;let{parameters:g,parameterBuilders:y,baseURL:v}=e;const E=v9(t);y||(E?y=Ode:y=Yfe);let S={url:"",credentials:f&&f.withCredentials?"include":"same-origin",headers:{},cookies:{}};h&&(S.signal=h),s&&(S.requestInterceptor=s),a&&(S.responseInterceptor=a),u&&(S.userFetch=u);const x=Nde(t,r);if(!x)throw new Mde(`Operation ${r} not found`);const{operation:_={},method:A,pathName:C}=x;if(v=v??Lde({spec:t,scheme:i,contextUrl:o,server:c,serverVariables:l,pathName:C,method:A,serverVariableEncoder:p}),S.url+=v,!r)return delete S.cookies,S;S.url+=C,S.method=`${A}`.toUpperCase(),g=g||{};const T=t.paths[C]||{};n&&(S.headers.accept=n);const O=qde([].concat(pF(_.parameters)).concat(pF(T.parameters)));O.forEach(k=>{const D=y[k.in];let P;if(k.in==="body"&&k.schema&&k.schema.properties&&(P=g),P=k&&k.name&&g[k.name],typeof P>"u"?P=k&&k.name&&g[`${k.in}.${k.name}`]:Dde(k.name,O).length>1&&console.warn(`Parameter '${k.name}' is ambiguous because the defined spec has more than one parameter with the name: '${k.name}' and the passed-in parameter values did not define an 'in' value.`),P!==null){if(typeof k.default<"u"&&typeof P>"u"&&(P=k.default),typeof P>"u"&&k.required&&!k.allowEmptyValue)throw new Error(`Required parameter ${k.name} is not provided`);E&&typeof P=="string"&&(yc("type",k.schema)&&typeof k.schema.type=="string"&&_c(k.schema,{recurse:!1})?P=f1({value:P,silentFail:!1}):yc("type",k.schema)&&Array.isArray(k.schema.type)&&_c(k.schema,{recurse:!1})?P=f1({value:P,silentFail:!0}):!yc("type",k.schema)&&_c(k.schema,{recurse:!0})&&(P=f1({value:P,silentFail:!0}))),D&&D({req:S,parameter:k,value:P,operation:_,spec:t,baseURL:v})}});const M={...e,operation:_};if(E?S=Rde(M,S):S=Ide(M,S),S.cookies&&Object.keys(S.cookies).length>0){const k=Tx(S.cookies);Ah(S.headers.Cookie)?S.headers.Cookie+=`; ${k}`:S.headers.Cookie=k}return S.cookies&&delete S.cookies,U2(S)}const Ix=e=>e?e.replace(/\W/g,""):null;function Lde(e){return v9(e.spec)?Bde(e):Vde(e)}const d1=e=>Array.isArray(e)&&e.length>0;function Bde({spec:e,pathName:t,method:r,server:n,contextUrl:i,serverVariables:s={},serverVariableEncoder:a}){var o,u;let c=[],l="",f;const h=e==null||(o=e.paths)===null||o===void 0||(o=o[t])===null||o===void 0||(o=o[(r||"").toLowerCase()])===null||o===void 0?void 0:o.servers,p=e==null||(u=e.paths)===null||u===void 0||(u=u[t])===null||u===void 0?void 0:u.servers,g=e==null?void 0:e.servers;if(c=d1(h)?h:d1(p)?p:d1(g)?g:[Qie],n&&(f=c.find(y=>y.url===n),f&&(l=n)),l||([f]=c,l=f.url),Mfe(l,{strict:!0})){const y=Object.entries({...f.variables}).reduce((v,[E,b])=>(v[E]=b.default,v),{});l=Ffe(l,{...y,...s},{encoder:typeof a=="function"?a:y2})}return Ude(l,i)}function Ude(e="",t=""){const r=bd(e&&t?Kr(t,e):e),n=bd(t),i=Ix(r.protocol)||Ix(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 Vde({spec:e,scheme:t,contextUrl:r=""}){const n=bd(r),i=Array.isArray(e.schemes)?e.schemes[0]:null,s=t||i||Ix(n.protocol)||"http",a=e.host||n.host||"",o=e.basePath||"";let u;return a?u=`${s}://${a+o}`:u=o,u[u.length-1]==="/"?u.slice(0,-1):u}const zde=async(e,t,r={})=>{const{returnEntireTree:n,baseDoc:i,requestInterceptor:s,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:c,strategies:l}=r,f={spec:e,pathDiscriminator:t,baseDoc:i,requestInterceptor:s,responseInterceptor:a,parameterMacro:o,modelPropertyMacro:u,useCircularStructures:c,strategies:l},p=l.find(y=>y.match(e)).normalize(e),g=await Rfe({spec:p,...f,allowMetaPatches:!0,skipNormalization:!J2(e)});return!n&&Array.isArray(t)&&t.length&&(g.spec=t.reduce((y,v)=>y==null?void 0:y[v],g.spec)||null),g},Wde=e=>async(t,r,n={})=>{const i={...e,...n};return zde(t,r,i)};var Qf={exports:{}},p1={};/**
209
+ * @license React
210
+ * use-sync-external-store-with-selector.production.js
211
+ *
212
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
213
+ *
214
+ * This source code is licensed under the MIT license found in the
215
+ * LICENSE file in the root directory of this source tree.
216
+ */var hF;function Jde(){if(hF)return p1;hF=1;var e=jt;function t(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}var r=typeof Object.is=="function"?Object.is:t,n=e.useSyncExternalStore,i=e.useRef,s=e.useEffect,a=e.useMemo,o=e.useDebugValue;return p1.useSyncExternalStoreWithSelector=function(u,c,l,f,h){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=a(function(){function v(_){if(!E){if(E=!0,b=_,_=f(_),h!==void 0&&g.hasValue){var A=g.value;if(h(A,_))return S=A}return S=_}if(A=S,r(b,_))return A;var C=f(_);return h!==void 0&&h(A,C)?(b=_,A):(b=_,S=C)}var E=!1,b,S,x=l===void 0?null:l;return[function(){return v(c())},x===null?void 0:function(){return v(x())}]},[c,l,f,h]);var y=n(u,p[0],p[1]);return s(function(){g.hasValue=!0,g.value=y},[y]),o(y),y},p1}var h1={};/**
217
+ * @license React
218
+ * use-sync-external-store-with-selector.development.js
219
+ *
220
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
221
+ *
222
+ * This source code is licensed under the MIT license found in the
223
+ * LICENSE file in the root directory of this source tree.
224
+ */var mF;function Kde(){return mF||(mF=1,process.env.NODE_ENV!=="production"&&function(){function e(u,c){return u===c&&(u!==0||1/u===1/c)||u!==u&&c!==c}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var t=jt,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,o=t.useDebugValue;h1.useSyncExternalStoreWithSelector=function(u,c,l,f,h){var p=i(null);if(p.current===null){var g={hasValue:!1,value:null};p.current=g}else g=p.current;p=a(function(){function v(_){if(!E){if(E=!0,b=_,_=f(_),h!==void 0&&g.hasValue){var A=g.value;if(h(A,_))return S=A}return S=_}if(A=S,r(b,_))return A;var C=f(_);return h!==void 0&&h(A,C)?(b=_,A):(b=_,S=C)}var E=!1,b,S,x=l===void 0?null:l;return[function(){return v(c())},x===null?void 0:function(){return v(x())}]},[c,l,f,h]);var y=n(u,p[0],p[1]);return s(function(){g.hasValue=!0,g.value=y},[y]),o(y),y},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),h1}var gF;function Hde(){return gF||(gF=1,process.env.NODE_ENV==="production"?Qf.exports=Jde():Qf.exports=Kde()),Qf.exports}Hde();var y5=ot.version.startsWith("19"),Gde=Symbol.for(y5?"react.transitional.element":"react.element"),Yde=Symbol.for("react.portal"),v5=Symbol.for("react.fragment"),b5=Symbol.for("react.strict_mode"),_5=Symbol.for("react.profiler"),lC=Symbol.for("react.consumer"),fC=Symbol.for("react.context"),dC=Symbol.for("react.forward_ref"),E5=Symbol.for("react.suspense"),S5=Symbol.for("react.suspense_list"),vm=Symbol.for("react.memo"),w5=Symbol.for("react.lazy"),Xde=Symbol.for("react.offscreen"),Zde=Symbol.for("react.client.reference"),Qde=dC,epe=vm;function tpe(e){return typeof e=="string"||typeof e=="function"||e===v5||e===_5||e===b5||e===E5||e===S5||e===Xde||typeof e=="object"&&e!==null&&(e.$$typeof===w5||e.$$typeof===vm||e.$$typeof===fC||e.$$typeof===lC||e.$$typeof===dC||e.$$typeof===Zde||e.getModuleId!==void 0)}function jx(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case Gde:switch(e=e.type,e){case v5:case _5:case b5:case E5:case S5:return e;default:switch(e=e&&e.$$typeof,e){case fC:case dC:case w5:case vm:return e;case lC:return e;default:return t}}case Yde:return t}}}function rpe(e){return y5?jx(e)===lC:jx(e)===fC}function npe(e){return jx(e)===vm}function pC(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function m1(e,t){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||pC(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${t} in connect.`)}function ipe(e,t,r){m1(e,"mapStateToProps"),m1(t,"mapDispatchToProps"),m1(r,"mergeProps")}function spe(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:s,areStatePropsEqual:a}){let o=!1,u,c,l,f,h;function p(b,S){return u=b,c=S,l=e(u,c),f=t(n,c),h=r(l,f,c),o=!0,h}function g(){return l=e(u,c),t.dependsOnOwnProps&&(f=t(n,c)),h=r(l,f,c),h}function y(){return e.dependsOnOwnProps&&(l=e(u,c)),t.dependsOnOwnProps&&(f=t(n,c)),h=r(l,f,c),h}function v(){const b=e(u,c),S=!a(b,l);return l=b,S&&(h=r(l,f,c)),h}function E(b,S){const x=!s(S,c),_=!i(b,u,S,c);return u=b,c=S,x&&_?g():x?y():_?v():h}return function(S,x){return o?E(S,x):p(S,x)}}function ape(e,{initMapStateToProps:t,initMapDispatchToProps:r,initMergeProps:n,...i}){const s=t(e,i),a=r(e,i),o=n(e,i);return process.env.NODE_ENV!=="production"&&ipe(s,a,o),spe(s,a,o,e,i)}function ope(e,t){const r={};for(const n in e){const i=e[n];typeof i=="function"&&(r[n]=(...s)=>t(i(...s)))}return r}function upe(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);if(t===null)return!0;let r=t;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function x5(e,t,r){upe(e)||pC(`${r}() in ${t} must return a plain object. Instead received ${e}.`)}function kx(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function yF(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function A5(e,t){return function(n,{displayName:i}){const s=function(o,u){return s.dependsOnOwnProps?s.mapToProps(o,u):s.mapToProps(o,void 0)};return s.dependsOnOwnProps=!0,s.mapToProps=function(o,u){s.mapToProps=e,s.dependsOnOwnProps=yF(e);let c=s(o,u);return typeof c=="function"&&(s.mapToProps=c,s.dependsOnOwnProps=yF(c),c=s(o,u)),process.env.NODE_ENV!=="production"&&x5(c,i,t),c},s}}function hC(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function cpe(e){return e&&typeof e=="object"?kx(t=>ope(e,t)):e?typeof e=="function"?A5(e,"mapDispatchToProps"):hC(e,"mapDispatchToProps"):kx(t=>({dispatch:t}))}function lpe(e){return e?typeof e=="function"?A5(e,"mapStateToProps"):hC(e,"mapStateToProps"):kx(()=>({}))}function fpe(e,t,r){return{...r,...e,...t}}function dpe(e){return function(r,{displayName:n,areMergedPropsEqual:i}){let s=!1,a;return function(u,c,l){const f=e(u,c,l);return s?i(f,a)||(a=f):(s=!0,a=f,process.env.NODE_ENV!=="production"&&x5(a,n,"mergeProps")),a}}}function ppe(e){return e?typeof e=="function"?dpe(e):hC(e,"mergeProps"):()=>fpe}function hpe(e){e()}function mpe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){hpe(()=>{let r=e;for(;r;)r.callback(),r=r.next})},get(){const r=[];let n=e;for(;n;)r.push(n),n=n.next;return r},subscribe(r){let n=!0;const i=t={callback:r,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){!n||e===null||(n=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var vF={notify(){},get:()=>[]};function O5(e,t){let r,n=vF,i=0,s=!1;function a(y){l();const v=n.subscribe(y);let E=!1;return()=>{E||(E=!0,v(),f())}}function o(){n.notify()}function u(){g.onStateChange&&g.onStateChange()}function c(){return s}function l(){i++,r||(r=t?t.addNestedSub(u):e.subscribe(u),n=mpe())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=vF)}function h(){s||(s=!0,l())}function p(){s&&(s=!1,f())}const g={addNestedSub:a,notifyNestedSubs:o,handleChangeWrapper:u,isSubscribed:c,trySubscribe:h,tryUnsubscribe:p,getListeners:()=>n};return g}var gpe=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",ype=gpe(),vpe=()=>typeof navigator<"u"&&navigator.product==="ReactNative",bpe=vpe(),_pe=()=>ype||bpe?ot.useLayoutEffect:ot.useEffect,ep=_pe();function bF(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function g1(e,t){if(bF(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!bF(e[r[i]],t[r[i]]))return!1;return!0}var Epe={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Spe={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},wpe={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},C5={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xpe={[Qde]:wpe,[epe]:C5};function _F(e){return npe(e)?C5:xpe[e.$$typeof]||Epe}var Ape=Object.defineProperty,Ope=Object.getOwnPropertyNames,EF=Object.getOwnPropertySymbols,Cpe=Object.getOwnPropertyDescriptor,Rpe=Object.getPrototypeOf,SF=Object.prototype;function Px(e,t){if(typeof t!="string"){if(SF){const s=Rpe(t);s&&s!==SF&&Px(e,s)}let r=Ope(t);EF&&(r=r.concat(EF(t)));const n=_F(e),i=_F(t);for(let s=0;s<r.length;++s){const a=r[s];if(!Spe[a]&&!(i&&i[a])&&!(n&&n[a])){const o=Cpe(t,a);try{Ape(e,a,o)}catch{}}}}return e}var y1=Symbol.for("react-redux-context"),v1=typeof globalThis<"u"?globalThis:{};function Tpe(){if(!ot.createContext)return{};const e=v1[y1]??(v1[y1]=new Map);let t=e.get(ot.createContext);return t||(t=ot.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(ot.createContext,t)),t}var R5=Tpe(),Ipe=[null,null],jpe=e=>{try{return JSON.stringify(e)}catch{return String(e)}};function kpe(e,t,r){ep(()=>e(...t),r)}function Ppe(e,t,r,n,i,s){e.current=n,r.current=!1,i.current&&(i.current=null,s())}function Npe(e,t,r,n,i,s,a,o,u,c,l){if(!e)return()=>{};let f=!1,h=null;const p=()=>{if(f||!o.current)return;const y=t.getState();let v,E;try{v=n(y,i.current)}catch(b){E=b,h=b}E||(h=null),v===s.current?a.current||c():(s.current=v,u.current=v,a.current=!0,l())};return r.onStateChange=p,r.trySubscribe(),p(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}function Mpe(e,t){return e===t}var wF=!1;function Dpe(e,t,r,{pure:n,areStatesEqual:i=Mpe,areOwnPropsEqual:s=g1,areStatePropsEqual:a=g1,areMergedPropsEqual:o=g1,forwardRef:u=!1,context:c=R5}={}){process.env.NODE_ENV!=="production"&&n!==void 0&&!wF&&(wF=!0,pC('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const l=c,f=lpe(e),h=cpe(t),p=ppe(r),g=!!e;return v=>{if(process.env.NODE_ENV!=="production"&&!tpe(v))throw new Error(`You must pass a component to the function returned by connect. Instead received ${jpe(v)}`);const E=v.displayName||v.name||"Component",b=`Connect(${E})`,S={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:E,WrappedComponent:v,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:s,areMergedPropsEqual:o};function x(C){const[T,O,M]=ot.useMemo(()=>{const{reactReduxForwardedRef:ce,...Re}=C;return[C.context,ce,Re]},[C]),k=ot.useMemo(()=>{let ce=l;if(T!=null&&T.Consumer&&process.env.NODE_ENV!=="production"){if(!rpe(ot.createElement(T.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");ce=T}return ce},[T,l]),D=ot.useContext(k),P=!!C.store&&!!C.store.getState&&!!C.store.dispatch,H=!!D&&!!D.store;if(process.env.NODE_ENV!=="production"&&!P&&!H)throw new Error(`Could not find "store" in the context of "${b}". Either wrap the root component in a <Provider>, or pass a custom React context provider to <Provider> and the corresponding React context consumer to ${b} in connect options.`);const X=P?C.store:D.store,V=H?D.getServerState:X.getState,G=ot.useMemo(()=>ape(X.dispatch,S),[X]),[Q,Z]=ot.useMemo(()=>{if(!g)return Ipe;const ce=O5(X,P?void 0:D.subscription),Re=ce.notifyNestedSubs.bind(ce);return[ce,Re]},[X,P,D]),B=ot.useMemo(()=>P?D:{...D,subscription:Q},[P,D,Q]),J=ot.useRef(void 0),ee=ot.useRef(M),ne=ot.useRef(void 0),ae=ot.useRef(!1),Y=ot.useRef(!1),F=ot.useRef(void 0);ep(()=>(Y.current=!0,()=>{Y.current=!1}),[]);const L=ot.useMemo(()=>()=>ne.current&&M===ee.current?ne.current:G(X.getState(),M),[X,M]),ue=ot.useMemo(()=>Re=>Q?Npe(g,X,Q,G,ee,J,ae,Y,ne,Z,Re):()=>{},[Q]);kpe(Ppe,[ee,J,ae,M,ne,Z]);let de;try{de=ot.useSyncExternalStore(ue,L,V?()=>G(V(),M):L)}catch(ce){throw F.current&&(ce.message+=`
225
+ The error may be correlated with this previous error:
226
+ ${F.current.stack}
227
+
228
+ `),ce}ep(()=>{F.current=void 0,ne.current=void 0,J.current=de});const Ae=ot.useMemo(()=>ot.createElement(v,{...de,ref:O}),[O,v,de]);return ot.useMemo(()=>g?ot.createElement(k.Provider,{value:B},Ae):Ae,[k,Ae,B])}const A=ot.memo(x);if(A.WrappedComponent=v,A.displayName=x.displayName=b,u){const T=ot.forwardRef(function(M,k){return ot.createElement(A,{...M,reactReduxForwardedRef:k})});return T.displayName=b,T.WrappedComponent=v,Px(T,v)}return Px(A,v)}}var qpe=Dpe;function $pe(e){const{children:t,context:r,serverState:n,store:i}=e,s=ot.useMemo(()=>{const u=O5(i),c={store:i,subscription:u,getServerState:n?()=>n:void 0};if(process.env.NODE_ENV==="production")return c;{const{identityFunctionCheck:l="once",stabilityCheck:f="once"}=e;return Object.assign(c,{stabilityCheck:f,identityFunctionCheck:l})}},[i,n]),a=ot.useMemo(()=>i.getState(),[i]);ep(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),a!==i.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,a]);const o=r||R5;return ot.createElement(o.Provider,{value:s},t)}var Fpe=$pe,Lpe=el();const Bpe=Ue.getDefaultExportFromCjs(Lpe);function Upe(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function Vpe(e,t){if(e==null)return{};var r,n,i=Upe(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(n=0;n<s.length;n++)r=s[n],t.indexOf(r)===-1&&{}.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}function Nx(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function zpe(e){if(Array.isArray(e))return Nx(e)}function Wpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Jpe(e,t){if(e){if(typeof e=="string")return Nx(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nx(e,t):void 0}}function Kpe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
229
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mx(e){return zpe(e)||Wpe(e)||Jpe(e)||Kpe()}function qc(e){"@babel/helpers - typeof";return qc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qc(e)}function Hpe(e,t){if(qc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(qc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Gpe(e){var t=Hpe(e,"string");return qc(t)=="symbol"?t:t+""}function T5(e,t,r){return(t=Gpe(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Dx(){return Dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dx.apply(null,arguments)}function xF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function Bo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?xF(Object(r),!0).forEach(function(n){T5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xF(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Ype(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var b1={};function Xpe(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return b1[t]||(b1[t]=Ype(e)),b1[t]}function Zpe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0,n=e.filter(function(s){return s!=="token"}),i=Xpe(n);return i.reduce(function(s,a){return Bo(Bo({},s),r[a])},t)}function AF(e){return e.join(" ")}function Qpe(e,t){var r=0;return function(n){return r+=1,n.map(function(i,s){return I5({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(s)})})}}function I5(e){var t=e.node,r=e.stylesheet,n=e.style,i=n===void 0?{}:n,s=e.useInlineStyles,a=e.key,o=t.properties,u=t.type,c=t.tagName,l=t.value;if(u==="text")return l;if(c){var f=Qpe(r,s),h;if(!s)h=Bo(Bo({},o),{},{className:AF(o.className)});else{var p=Object.keys(r).reduce(function(E,b){return b.split(".").forEach(function(S){E.includes(S)||E.push(S)}),E},[]),g=o.className&&o.className.includes("token")?["token"]:[],y=o.className&&g.concat(o.className.filter(function(E){return!p.includes(E)}));h=Bo(Bo({},o),{},{className:AF(y)||void 0,style:Zpe(o.className,Object.assign({},o.style,i),r)})}var v=f(t.children);return jt.createElement(c,Dx({key:a},h),v)}}const ehe=function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1};var the=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function OF(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function oa(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?OF(Object(r),!0).forEach(function(n){T5(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):OF(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var rhe=/\n/g;function nhe(e){return e.match(rhe)}function ihe(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(i,s){var a=s+r;return jt.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(a):n},"".concat(a,`
230
+ `))})}function she(e){var t=e.codeString,r=e.codeStyle,n=e.containerStyle,i=n===void 0?{float:"left",paddingRight:"10px"}:n,s=e.numberStyle,a=s===void 0?{}:s,o=e.startingLineNumber;return jt.createElement("code",{style:Object.assign({},r,i)},ihe({lines:t.replace(/\n$/,"").split(`
231
+ `),style:a,startingLineNumber:o}))}function ahe(e){return"".concat(e.toString().length,".25em")}function j5(e,t){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(e),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:t},children:[{type:"text",value:e}]}}function k5(e,t,r){var n={display:"inline-block",minWidth:ahe(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,s=oa(oa({},n),i);return s}function _d(e){var t=e.children,r=e.lineNumber,n=e.lineNumberStyle,i=e.largestLineNumber,s=e.showInlineLineNumbers,a=e.lineProps,o=a===void 0?{}:a,u=e.className,c=u===void 0?[]:u,l=e.showLineNumbers,f=e.wrapLongLines,h=e.wrapLines,p=h===void 0?!1:h,g=p?oa({},typeof o=="function"?o(r):o):{};if(g.className=g.className?[].concat(Mx(g.className.trim().split(/\s+/)),Mx(c)):c,r&&s){var y=k5(n,r,i);t.unshift(j5(r,y))}return f&l&&(g.style=oa({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:t}}function P5(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],n=0;n<e.length;n++){var i=e[n];if(i.type==="text")r.push(_d({children:[i],className:Mx(new Set(t))}));else if(i.children){var s=t.concat(i.properties.className);P5(i.children,s).forEach(function(a){return r.push(a)})}}return r}function ohe(e,t,r,n,i,s,a,o,u){var c,l=P5(e.value),f=[],h=-1,p=0;function g(_,A){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return _d({children:_,lineNumber:A,lineNumberStyle:o,largestLineNumber:a,showInlineLineNumbers:i,lineProps:r,className:C,showLineNumbers:n,wrapLongLines:u,wrapLines:t})}function y(_,A){if(n&&A&&i){var C=k5(o,A,a);_.unshift(j5(A,C))}return _}function v(_,A){var C=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||C.length>0?g(_,A,C):y(_,A)}for(var E=function(){var A=l[p],C=A.children[0].value,T=nhe(C);if(T){var O=C.split(`
232
+ `);O.forEach(function(M,k){var D=n&&f.length+s,P={type:"text",value:"".concat(M,`
233
+ `)};if(k===0){var H=l.slice(h+1,p).concat(_d({children:[P],className:A.properties.className})),X=v(H,D);f.push(X)}else if(k===O.length-1){var V=l[p+1]&&l[p+1].children&&l[p+1].children[0],G={type:"text",value:"".concat(M)};if(V){var Q=_d({children:[G],className:A.properties.className});l.splice(p+1,0,Q)}else{var Z=[G],B=v(Z,D,A.properties.className);f.push(B)}}else{var J=[P],ee=v(J,D,A.properties.className);f.push(ee)}}),h=p}p++};p<l.length;)E();if(h!==l.length-1){var b=l.slice(h+1,l.length);if(b&&b.length){var S=n&&f.length+s,x=v(b,S);f.push(x)}}return t?f:(c=[]).concat.apply(c,f)}function uhe(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(i,s){return I5({node:i,stylesheet:r,useInlineStyles:n,key:"code-segement".concat(s)})})}function N5(e){return e&&typeof e.highlightAuto<"u"}function che(e){var t=e.astGenerator,r=e.language,n=e.code,i=e.defaultCodeValue;if(N5(t)){var s=ehe(t,r);return r==="text"?{value:i,language:"text"}:s?t.highlight(r,n):t.highlightAuto(n)}try{return r&&r!=="text"?{value:t.highlight(n,r)}:{value:i}}catch{return{value:i}}}function lhe(e,t){return function(n){var i=n.language,s=n.children,a=n.style,o=a===void 0?t:a,u=n.customStyle,c=u===void 0?{}:u,l=n.codeTagProps,f=l===void 0?{className:i?"language-".concat(i):void 0,style:oa(oa({},o['code[class*="language-"]']),o['code[class*="language-'.concat(i,'"]')])}:l,h=n.useInlineStyles,p=h===void 0?!0:h,g=n.showLineNumbers,y=g===void 0?!1:g,v=n.showInlineLineNumbers,E=v===void 0?!0:v,b=n.startingLineNumber,S=b===void 0?1:b,x=n.lineNumberContainerStyle,_=n.lineNumberStyle,A=_===void 0?{}:_,C=n.wrapLines,T=n.wrapLongLines,O=T===void 0?!1:T,M=n.lineProps,k=M===void 0?{}:M,D=n.renderer,P=n.PreTag,H=P===void 0?"pre":P,X=n.CodeTag,V=X===void 0?"code":X,G=n.code,Q=G===void 0?(Array.isArray(s)?s[0]:s)||"":G,Z=n.astGenerator,B=Vpe(n,the);Z=Z||e;var J=y?jt.createElement(she,{containerStyle:x,codeStyle:f.style||{},numberStyle:A,startingLineNumber:S,codeString:Q}):null,ee=o.hljs||o['pre[class*="language-"]']||{backgroundColor:"#fff"},ne=N5(Z)?"hljs":"prismjs",ae=p?Object.assign({},B,{style:Object.assign({},ee,c)}):Object.assign({},B,{className:B.className?"".concat(ne," ").concat(B.className):ne,style:Object.assign({},c)});if(O?f.style=oa({whiteSpace:"pre-wrap"},f.style):f.style=oa({whiteSpace:"pre"},f.style),!Z)return jt.createElement(H,ae,J,jt.createElement(V,f,Q));(C===void 0&&D||O)&&(C=!0),D=D||uhe;var Y=[{type:"text",value:Q}],F=che({astGenerator:Z,language:i,code:Q,defaultCodeValue:Y});F.language===null&&(F.value=Y);var L=F.value.length;L===1&&F.value[0].type==="text"&&(L=F.value[0].value.split(`
234
+ `).length);var ue=L+S,de=ohe(F,C,k,y,E,S,ue,A,O);return jt.createElement(H,ae,jt.createElement(V,f,!E&&J,D({rows:de,stylesheet:o,useInlineStyles:p})))}}var Ia={},_1,CF;function fhe(){if(CF)return _1;CF=1;function e(pe){return pe instanceof Map?pe.clear=pe.delete=pe.set=function(){throw new Error("map is read-only")}:pe instanceof Set&&(pe.add=pe.clear=pe.delete=function(){throw new Error("set is read-only")}),Object.freeze(pe),Object.getOwnPropertyNames(pe).forEach(function(Ee){var Ce=pe[Ee];typeof Ce=="object"&&!Object.isFrozen(Ce)&&e(Ce)}),pe}var t=e,r=e;t.default=r;class n{constructor(Ee){Ee.data===void 0&&(Ee.data={}),this.data=Ee.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(pe){return pe.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#x27;")}function s(pe,...Ee){const Ce=Object.create(null);for(const Ye in pe)Ce[Ye]=pe[Ye];return Ee.forEach(function(Ye){for(const at in Ye)Ce[at]=Ye[at]}),Ce}const a="</span>",o=pe=>!!pe.kind;class u{constructor(Ee,Ce){this.buffer="",this.classPrefix=Ce.classPrefix,Ee.walk(this)}addText(Ee){this.buffer+=i(Ee)}openNode(Ee){if(!o(Ee))return;let Ce=Ee.kind;Ee.sublanguage||(Ce=`${this.classPrefix}${Ce}`),this.span(Ce)}closeNode(Ee){o(Ee)&&(this.buffer+=a)}value(){return this.buffer}span(Ee){this.buffer+=`<span class="${Ee}">`}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(Ee){this.top.children.push(Ee)}openNode(Ee){const Ce={kind:Ee,children:[]};this.add(Ce),this.stack.push(Ce)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(Ee){return this.constructor._walk(Ee,this.rootNode)}static _walk(Ee,Ce){return typeof Ce=="string"?Ee.addText(Ce):Ce.children&&(Ee.openNode(Ce),Ce.children.forEach(Ye=>this._walk(Ee,Ye)),Ee.closeNode(Ce)),Ee}static _collapse(Ee){typeof Ee!="string"&&Ee.children&&(Ee.children.every(Ce=>typeof Ce=="string")?Ee.children=[Ee.children.join("")]:Ee.children.forEach(Ce=>{c._collapse(Ce)}))}}class l extends c{constructor(Ee){super(),this.options=Ee}addKeyword(Ee,Ce){Ee!==""&&(this.openNode(Ce),this.addText(Ee),this.closeNode())}addText(Ee){Ee!==""&&this.add(Ee)}addSublanguage(Ee,Ce){const Ye=Ee.root;Ye.kind=Ce,Ye.sublanguage=!0,this.add(Ye)}toHTML(){return new u(this,this.options).value()}finalize(){return!0}}function f(pe){return new RegExp(pe.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")}function h(pe){return pe?typeof pe=="string"?pe:pe.source:null}function p(...pe){return pe.map(Ce=>h(Ce)).join("")}function g(...pe){return"("+pe.map(Ce=>h(Ce)).join("|")+")"}function y(pe){return new RegExp(pe.toString()+"|").exec("").length-1}function v(pe,Ee){const Ce=pe&&pe.exec(Ee);return Ce&&Ce.index===0}const E=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(pe,Ee="|"){let Ce=0;return pe.map(Ye=>{Ce+=1;const at=Ce;let mt=h(Ye),Lt="";for(;mt.length>0;){const Te=E.exec(mt);if(!Te){Lt+=mt;break}Lt+=mt.substring(0,Te.index),mt=mt.substring(Te.index+Te[0].length),Te[0][0]==="\\"&&Te[1]?Lt+="\\"+String(Number(Te[1])+at):(Lt+=Te[0],Te[0]==="("&&Ce++)}return Lt}).map(Ye=>`(${Ye})`).join(Ee)}const S=/\b\B/,x="[a-zA-Z]\\w*",_="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",C="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",T="\\b(0b[01]+)",O="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",M=(pe={})=>{const Ee=/^#![ ]*\//;return pe.binary&&(pe.begin=p(Ee,/.*\b/,pe.binary,/\b.*/)),s({className:"meta",begin:Ee,end:/$/,relevance:0,"on:begin":(Ce,Ye)=>{Ce.index!==0&&Ye.ignoreMatch()}},pe)},k={begin:"\\\\[\\s\\S]",relevance:0},D={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[k]},P={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[k]},H={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/},X=function(pe,Ee,Ce={}){const Ye=s({className:"comment",begin:pe,end:Ee,contains:[]},Ce);return Ye.contains.push(H),Ye.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),Ye},V=X("//","$"),G=X("/\\*","\\*/"),Q=X("#","$"),Z={className:"number",begin:A,relevance:0},B={className:"number",begin:C,relevance:0},J={className:"number",begin:T,relevance:0},ee={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},ne={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[k,{begin:/\[/,end:/\]/,relevance:0,contains:[k]}]}]},ae={className:"title",begin:x,relevance:0},Y={className:"title",begin:_,relevance:0},F={begin:"\\.\\s*"+_,relevance:0};var ue=Object.freeze({__proto__:null,MATCH_NOTHING_RE:S,IDENT_RE:x,UNDERSCORE_IDENT_RE:_,NUMBER_RE:A,C_NUMBER_RE:C,BINARY_NUMBER_RE:T,RE_STARTERS_RE:O,SHEBANG:M,BACKSLASH_ESCAPE:k,APOS_STRING_MODE:D,QUOTE_STRING_MODE:P,PHRASAL_WORDS_MODE:H,COMMENT:X,C_LINE_COMMENT_MODE:V,C_BLOCK_COMMENT_MODE:G,HASH_COMMENT_MODE:Q,NUMBER_MODE:Z,C_NUMBER_MODE:B,BINARY_NUMBER_MODE:J,CSS_NUMBER_MODE:ee,REGEXP_MODE:ne,TITLE_MODE:ae,UNDERSCORE_TITLE_MODE:Y,METHOD_GUARD:F,END_SAME_AS_BEGIN:function(pe){return Object.assign(pe,{"on:begin":(Ee,Ce)=>{Ce.data._beginMatch=Ee[1]},"on:end":(Ee,Ce)=>{Ce.data._beginMatch!==Ee[1]&&Ce.ignoreMatch()}})}});function de(pe,Ee){pe.input[pe.index-1]==="."&&Ee.ignoreMatch()}function Ae(pe,Ee){Ee&&pe.beginKeywords&&(pe.begin="\\b("+pe.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",pe.__beforeBegin=de,pe.keywords=pe.keywords||pe.beginKeywords,delete pe.beginKeywords,pe.relevance===void 0&&(pe.relevance=0))}function Ne(pe,Ee){Array.isArray(pe.illegal)&&(pe.illegal=g(...pe.illegal))}function ce(pe,Ee){if(pe.match){if(pe.begin||pe.end)throw new Error("begin & end are not supported with match");pe.begin=pe.match,delete pe.match}}function Re(pe,Ee){pe.relevance===void 0&&(pe.relevance=1)}const ze=["of","and","for","in","not","or","if","then","parent","list","value"],he="keyword";function _e(pe,Ee,Ce=he){const Ye={};return typeof pe=="string"?at(Ce,pe.split(" ")):Array.isArray(pe)?at(Ce,pe):Object.keys(pe).forEach(function(mt){Object.assign(Ye,_e(pe[mt],Ee,mt))}),Ye;function at(mt,Lt){Ee&&(Lt=Lt.map(Te=>Te.toLowerCase())),Lt.forEach(function(Te){const Le=Te.split("|");Ye[Le[0]]=[mt,Se(Le[0],Le[1])]})}}function Se(pe,Ee){return Ee?Number(Ee):$(pe)?0:1}function $(pe){return ze.includes(pe.toLowerCase())}function R(pe,{plugins:Ee}){function Ce(Te,Le){return new RegExp(h(Te),"m"+(pe.case_insensitive?"i":"")+(Le?"g":""))}class Ye{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Le,nt){nt.position=this.position++,this.matchIndexes[this.matchAt]=nt,this.regexes.push([nt,Le]),this.matchAt+=y(Le)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Le=this.regexes.map(nt=>nt[1]);this.matcherRe=Ce(b(Le),!0),this.lastIndex=0}exec(Le){this.matcherRe.lastIndex=this.lastIndex;const nt=this.matcherRe.exec(Le);if(!nt)return null;const Xe=nt.findIndex((sn,Us)=>Us>0&&sn!==void 0),Bt=this.matchIndexes[Xe];return nt.splice(0,Xe),Object.assign(nt,Bt)}}class at{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Le){if(this.multiRegexes[Le])return this.multiRegexes[Le];const nt=new Ye;return this.rules.slice(Le).forEach(([Xe,Bt])=>nt.addRule(Xe,Bt)),nt.compile(),this.multiRegexes[Le]=nt,nt}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Le,nt){this.rules.push([Le,nt]),nt.type==="begin"&&this.count++}exec(Le){const nt=this.getMatcher(this.regexIndex);nt.lastIndex=this.lastIndex;let Xe=nt.exec(Le);if(this.resumingScanAtSamePosition()&&!(Xe&&Xe.index===this.lastIndex)){const Bt=this.getMatcher(0);Bt.lastIndex=this.lastIndex+1,Xe=Bt.exec(Le)}return Xe&&(this.regexIndex+=Xe.position+1,this.regexIndex===this.count&&this.considerAll()),Xe}}function mt(Te){const Le=new at;return Te.contains.forEach(nt=>Le.addRule(nt.begin,{rule:nt,type:"begin"})),Te.terminatorEnd&&Le.addRule(Te.terminatorEnd,{type:"end"}),Te.illegal&&Le.addRule(Te.illegal,{type:"illegal"}),Le}function Lt(Te,Le){const nt=Te;if(Te.isCompiled)return nt;[ce].forEach(Bt=>Bt(Te,Le)),pe.compilerExtensions.forEach(Bt=>Bt(Te,Le)),Te.__beforeBegin=null,[Ae,Ne,Re].forEach(Bt=>Bt(Te,Le)),Te.isCompiled=!0;let Xe=null;if(typeof Te.keywords=="object"&&(Xe=Te.keywords.$pattern,delete Te.keywords.$pattern),Te.keywords&&(Te.keywords=_e(Te.keywords,pe.case_insensitive)),Te.lexemes&&Xe)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return Xe=Xe||Te.lexemes||/\w+/,nt.keywordPatternRe=Ce(Xe,!0),Le&&(Te.begin||(Te.begin=/\B|\b/),nt.beginRe=Ce(Te.begin),Te.endSameAsBegin&&(Te.end=Te.begin),!Te.end&&!Te.endsWithParent&&(Te.end=/\B|\b/),Te.end&&(nt.endRe=Ce(Te.end)),nt.terminatorEnd=h(Te.end)||"",Te.endsWithParent&&Le.terminatorEnd&&(nt.terminatorEnd+=(Te.end?"|":"")+Le.terminatorEnd)),Te.illegal&&(nt.illegalRe=Ce(Te.illegal)),Te.contains||(Te.contains=[]),Te.contains=[].concat(...Te.contains.map(function(Bt){return U(Bt==="self"?Te:Bt)})),Te.contains.forEach(function(Bt){Lt(Bt,nt)}),Te.starts&&Lt(Te.starts,Le),nt.matcher=mt(nt),nt}if(pe.compilerExtensions||(pe.compilerExtensions=[]),pe.contains&&pe.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return pe.classNameAliases=s(pe.classNameAliases||{}),Lt(pe)}function j(pe){return pe?pe.endsWithParent||j(pe.starts):!1}function U(pe){return pe.variants&&!pe.cachedVariants&&(pe.cachedVariants=pe.variants.map(function(Ee){return s(pe,{variants:null},Ee)})),pe.cachedVariants?pe.cachedVariants:j(pe)?s(pe,{starts:pe.starts?s(pe.starts):null}):Object.isFrozen(pe)?s(pe):pe}var re="10.7.3";function ie(pe){return!!(pe||pe==="")}function fe(pe){const Ee={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!pe.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,i(this.code);let Ye={};return this.autoDetect?(Ye=pe.highlightAuto(this.code),this.detectedLanguage=Ye.language):(Ye=pe.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),Ye.value},autoDetect(){return!this.language||ie(this.autodetect)},ignoreIllegals(){return!0}},render(Ye){return Ye("pre",{},[Ye("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:Ee,VuePlugin:{install(Ye){Ye.component("highlightjs",Ee)}}}}const Ie={"after:highlightElement":({el:pe,result:Ee,text:Ce})=>{const Ye=Ge(pe);if(!Ye.length)return;const at=document.createElement("div");at.innerHTML=Ee.value,Ee.value=tt(Ye,Ge(at),Ce)}};function Fe(pe){return pe.nodeName.toLowerCase()}function Ge(pe){const Ee=[];return function Ce(Ye,at){for(let mt=Ye.firstChild;mt;mt=mt.nextSibling)mt.nodeType===3?at+=mt.nodeValue.length:mt.nodeType===1&&(Ee.push({event:"start",offset:at,node:mt}),at=Ce(mt,at),Fe(mt).match(/br|hr|img|input/)||Ee.push({event:"stop",offset:at,node:mt}));return at}(pe,0),Ee}function tt(pe,Ee,Ce){let Ye=0,at="";const mt=[];function Lt(){return!pe.length||!Ee.length?pe.length?pe:Ee:pe[0].offset!==Ee[0].offset?pe[0].offset<Ee[0].offset?pe:Ee:Ee[0].event==="start"?pe:Ee}function Te(Xe){function Bt(sn){return" "+sn.nodeName+'="'+i(sn.value)+'"'}at+="<"+Fe(Xe)+[].map.call(Xe.attributes,Bt).join("")+">"}function Le(Xe){at+="</"+Fe(Xe)+">"}function nt(Xe){(Xe.event==="start"?Te:Le)(Xe.node)}for(;pe.length||Ee.length;){let Xe=Lt();if(at+=i(Ce.substring(Ye,Xe[0].offset)),Ye=Xe[0].offset,Xe===pe){mt.reverse().forEach(Le);do nt(Xe.splice(0,1)[0]),Xe=Lt();while(Xe===pe&&Xe.length&&Xe[0].offset===Ye);mt.reverse().forEach(Te)}else Xe[0].event==="start"?mt.push(Xe[0].node):mt.pop(),nt(Xe.splice(0,1)[0])}return at+i(Ce.substr(Ye))}const ct={},$n=pe=>{console.error(pe)},Ei=(pe,...Ee)=>{console.log(`WARN: ${pe}`,...Ee)},ar=(pe,Ee)=>{ct[`${pe}/${Ee}`]||(console.log(`Deprecated as of ${pe}. ${Ee}`),ct[`${pe}/${Ee}`]=!0)},br=i,cr=s,Pt=Symbol("nomatch");var pr=function(pe){const Ee=Object.create(null),Ce=Object.create(null),Ye=[];let at=!0;const mt=/(^(<[^>]+>|\t|)+|\n)/gm,Lt="Could not find the language '{}', did you forget to load/include a language module?",Te={disableAutodetect:!0,name:"Plain text",contains:[]};let Le={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:l};function nt(Oe){return Le.noHighlightRe.test(Oe)}function Xe(Oe){let qe=Oe.className+" ";qe+=Oe.parentNode?Oe.parentNode.className:"";const _t=Le.languageDetectRe.exec(qe);if(_t){const Nt=lt(_t[1]);return Nt||(Ei(Lt.replace("{}",_t[1])),Ei("Falling back to no-highlight mode for this block.",Oe)),Nt?_t[1]:"no-highlight"}return qe.split(/\s+/).find(Nt=>nt(Nt)||lt(Nt))}function Bt(Oe,qe,_t,Nt){let _r="",Si="";typeof qe=="object"?(_r=Oe,_t=qe.ignoreIllegals,Si=qe.language,Nt=void 0):(ar("10.7.0","highlight(lang, code, ...args) has been deprecated."),ar("10.7.0",`Please use highlight(code, options) instead.
235
+ https://github.com/highlightjs/highlight.js/issues/2277`),Si=Oe,_r=qe);const Qn={code:_r,language:Si};On("before:highlight",Qn);const ei=Qn.result?Qn.result:sn(Qn.language,Qn.code,_t,Nt);return ei.code=Qn.code,On("after:highlight",ei),ei}function sn(Oe,qe,_t,Nt){function _r(He,Ze){const ht=Ys.case_insensitive?Ze[0].toLowerCase():Ze[0];return Object.prototype.hasOwnProperty.call(He.keywords,ht)&&He.keywords[ht]}function Si(){if(!gt.keywords){ft.addText(lr);return}let He=0;gt.keywordPatternRe.lastIndex=0;let Ze=gt.keywordPatternRe.exec(lr),ht="";for(;Ze;){ht+=lr.substring(He,Ze.index);const Rt=_r(gt,Ze);if(Rt){const[Qr,Xs]=Rt;if(ft.addText(ht),ht="",Ra+=Xs,Qr.startsWith("_"))ht+=Ze[0];else{const Zs=Ys.classNameAliases[Qr]||Qr;ft.addKeyword(Ze[0],Zs)}}else ht+=Ze[0];He=gt.keywordPatternRe.lastIndex,Ze=gt.keywordPatternRe.exec(lr)}ht+=lr.substr(He),ft.addText(ht)}function Qn(){if(lr==="")return;let He=null;if(typeof gt.subLanguage=="string"){if(!Ee[gt.subLanguage]){ft.addText(lr);return}He=sn(gt.subLanguage,lr,!0,Rf[gt.subLanguage]),Rf[gt.subLanguage]=He.top}else He=Vs(lr,gt.subLanguage.length?gt.subLanguage:null);gt.relevance>0&&(Ra+=He.relevance),ft.addSublanguage(He.emitter,He.language)}function ei(){gt.subLanguage!=null?Qn():Si(),lr=""}function ti(He){return He.className&&ft.openNode(Ys.classNameAliases[He.className]||He.className),gt=Object.create(He,{parent:{value:gt}}),gt}function Ln(He,Ze,ht){let Rt=v(He.endRe,ht);if(Rt){if(He["on:end"]){const Qr=new n(He);He["on:end"](Ze,Qr),Qr.isMatchIgnored&&(Rt=!1)}if(Rt){for(;He.endsParent&&He.parent;)He=He.parent;return He}}if(He.endsWithParent)return Ln(He.parent,Ze,ht)}function xf(He){return gt.matcher.regexIndex===0?(lr+=He[0],1):(bs=!0,0)}function Af(He){const Ze=He[0],ht=He.rule,Rt=new n(ht),Qr=[ht.__beforeBegin,ht["on:begin"]];for(const Xs of Qr)if(Xs&&(Xs(He,Rt),Rt.isMatchIgnored))return xf(Ze);return ht&&ht.endSameAsBegin&&(ht.endRe=f(Ze)),ht.skip?lr+=Ze:(ht.excludeBegin&&(lr+=Ze),ei(),!ht.returnBegin&&!ht.excludeBegin&&(lr=Ze)),ti(ht),ht.returnBegin?0:Ze.length}function Of(He){const Ze=He[0],ht=qe.substr(He.index),Rt=Ln(gt,He,ht);if(!Rt)return Pt;const Qr=gt;Qr.skip?lr+=Ze:(Qr.returnEnd||Qr.excludeEnd||(lr+=Ze),ei(),Qr.excludeEnd&&(lr=Ze));do gt.className&&ft.closeNode(),!gt.skip&&!gt.subLanguage&&(Ra+=gt.relevance),gt=gt.parent;while(gt!==Rt.parent);return Rt.starts&&(Rt.endSameAsBegin&&(Rt.starts.endRe=Rt.endRe),ti(Rt.starts)),Qr.returnEnd?0:Ze.length}function Cf(){const He=[];for(let Ze=gt;Ze!==Ys;Ze=Ze.parent)Ze.className&&He.unshift(Ze.className);He.forEach(Ze=>ft.openNode(Ze))}let Ca={};function Nu(He,Ze){const ht=Ze&&Ze[0];if(lr+=He,ht==null)return ei(),0;if(Ca.type==="begin"&&Ze.type==="end"&&Ca.index===Ze.index&&ht===""){if(lr+=qe.slice(Ze.index,Ze.index+1),!at){const Rt=new Error("0 width match regex");throw Rt.languageName=Oe,Rt.badRule=Ca.rule,Rt}return 1}if(Ca=Ze,Ze.type==="begin")return Af(Ze);if(Ze.type==="illegal"&&!_t){const Rt=new Error('Illegal lexeme "'+ht+'" for mode "'+(gt.className||"<unnamed>")+'"');throw Rt.mode=gt,Rt}else if(Ze.type==="end"){const Rt=Of(Ze);if(Rt!==Pt)return Rt}if(Ze.type==="illegal"&&ht==="")return 1;if(ri>1e5&&ri>Ze.index*3)throw new Error("potential infinite loop, way more iterations than matches");return lr+=ht,ht.length}const Ys=lt(Oe);if(!Ys)throw $n(Lt.replace("{}",Oe)),new Error('Unknown language: "'+Oe+'"');const Mm=R(Ys,{plugins:Ye});let Mu="",gt=Nt||Mm;const Rf={},ft=new Le.__emitter(Le);Cf();let lr="",Ra=0,hr=0,ri=0,bs=!1;try{for(gt.matcher.considerAll();;){ri++,bs?bs=!1:gt.matcher.considerAll(),gt.matcher.lastIndex=hr;const He=gt.matcher.exec(qe);if(!He)break;const Ze=qe.substring(hr,He.index),ht=Nu(Ze,He);hr=He.index+ht}return Nu(qe.substr(hr)),ft.closeAllNodes(),ft.finalize(),Mu=ft.toHTML(),{relevance:Math.floor(Ra),value:Mu,language:Oe,illegal:!1,emitter:ft,top:gt}}catch(He){if(He.message&&He.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:He.message,context:qe.slice(hr-100,hr+100),mode:He.mode},sofar:Mu,relevance:0,value:br(qe),emitter:ft};if(at)return{illegal:!1,relevance:0,value:br(qe),emitter:ft,language:Oe,top:gt,errorRaised:He};throw He}}function Us(Oe){const qe={relevance:0,emitter:new Le.__emitter(Le),value:br(Oe),illegal:!1,top:Te};return qe.emitter.addText(Oe),qe}function Vs(Oe,qe){qe=qe||Le.languages||Object.keys(Ee);const _t=Us(Oe),Nt=qe.filter(lt).filter(Wt).map(ti=>sn(ti,Oe,!1));Nt.unshift(_t);const _r=Nt.sort((ti,Ln)=>{if(ti.relevance!==Ln.relevance)return Ln.relevance-ti.relevance;if(ti.language&&Ln.language){if(lt(ti.language).supersetOf===Ln.language)return 1;if(lt(Ln.language).supersetOf===ti.language)return-1}return 0}),[Si,Qn]=_r,ei=Si;return ei.second_best=Qn,ei}function an(Oe){return Le.tabReplace||Le.useBR?Oe.replace(mt,qe=>qe===`
236
+ `?Le.useBR?"<br>":qe:Le.tabReplace?qe.replace(/\t/g,Le.tabReplace):qe):Oe}function zs(Oe,qe,_t){const Nt=qe?Ce[qe]:_t;Oe.classList.add("hljs"),Nt&&Oe.classList.add(Nt)}const Ws={"before:highlightElement":({el:Oe})=>{Le.useBR&&(Oe.innerHTML=Oe.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
237
+ `))},"after:highlightElement":({result:Oe})=>{Le.useBR&&(Oe.value=Oe.value.replace(/\n/g,"<br>"))}},Js=/^(<[^>]+>|\t)+/gm,vs={"after:highlightElement":({result:Oe})=>{Le.tabReplace&&(Oe.value=Oe.value.replace(Js,qe=>qe.replace(/\t/g,Le.tabReplace)))}};function on(Oe){let qe=null;const _t=Xe(Oe);if(nt(_t))return;On("before:highlightElement",{el:Oe,language:_t}),qe=Oe;const Nt=qe.textContent,_r=_t?Bt(Nt,{language:_t,ignoreIllegals:!0}):Vs(Nt);On("after:highlightElement",{el:Oe,result:_r,text:Nt}),Oe.innerHTML=_r.value,zs(Oe,_t,_r.language),Oe.result={language:_r.language,re:_r.relevance,relavance:_r.relevance},_r.second_best&&(Oe.second_best={language:_r.second_best.language,re:_r.second_best.relevance,relavance:_r.second_best.relevance})}function Fn(Oe){Oe.useBR&&(ar("10.3.0","'useBR' will be removed entirely in v11.0"),ar("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Le=cr(Le,Oe)}const Ks=()=>{if(Ks.called)return;Ks.called=!0,ar("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(on)};function Hs(){ar("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Vi=!0}let Vi=!1;function kr(){if(document.readyState==="loading"){Vi=!0;return}document.querySelectorAll("pre code").forEach(on)}function vt(){Vi&&kr()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",vt,!1);function Ke(Oe,qe){let _t=null;try{_t=qe(pe)}catch(Nt){if($n("Language definition for '{}' could not be registered.".replace("{}",Oe)),at)$n(Nt);else throw Nt;_t=Te}_t.name||(_t.name=Oe),Ee[Oe]=_t,_t.rawDefinition=qe.bind(null,pe),_t.aliases&&tr(_t.aliases,{languageName:Oe})}function se(Oe){delete Ee[Oe];for(const qe of Object.keys(Ce))Ce[qe]===Oe&&delete Ce[qe]}function be(){return Object.keys(Ee)}function Ve(Oe){ar("10.4.0","requireLanguage will be removed entirely in v11."),ar("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const qe=lt(Oe);if(qe)return qe;throw new Error("The '{}' language is required, but not loaded.".replace("{}",Oe))}function lt(Oe){return Oe=(Oe||"").toLowerCase(),Ee[Oe]||Ee[Ce[Oe]]}function tr(Oe,{languageName:qe}){typeof Oe=="string"&&(Oe=[Oe]),Oe.forEach(_t=>{Ce[_t.toLowerCase()]=qe})}function Wt(Oe){const qe=lt(Oe);return qe&&!qe.disableAutodetect}function Yt(Oe){Oe["before:highlightBlock"]&&!Oe["before:highlightElement"]&&(Oe["before:highlightElement"]=qe=>{Oe["before:highlightBlock"](Object.assign({block:qe.el},qe))}),Oe["after:highlightBlock"]&&!Oe["after:highlightElement"]&&(Oe["after:highlightElement"]=qe=>{Oe["after:highlightBlock"](Object.assign({block:qe.el},qe))})}function Zr(Oe){Yt(Oe),Ye.push(Oe)}function On(Oe,qe){const _t=Oe;Ye.forEach(function(Nt){Nt[_t]&&Nt[_t](qe)})}function xr(Oe){return ar("10.2.0","fixMarkup will be removed entirely in v11.0"),ar("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),an(Oe)}function Gs(Oe){return ar("10.7.0","highlightBlock will be removed entirely in v12.0"),ar("10.7.0","Please use highlightElement now."),on(Oe)}Object.assign(pe,{highlight:Bt,highlightAuto:Vs,highlightAll:kr,fixMarkup:xr,highlightElement:on,highlightBlock:Gs,configure:Fn,initHighlighting:Ks,initHighlightingOnLoad:Hs,registerLanguage:Ke,unregisterLanguage:se,listLanguages:be,getLanguage:lt,registerAliases:tr,requireLanguage:Ve,autoDetection:Wt,inherit:cr,addPlugin:Zr,vuePlugin:fe(pe).VuePlugin}),pe.debugMode=function(){at=!1},pe.safeMode=function(){at=!0},pe.versionString=re;for(const Oe in ue)typeof ue[Oe]=="object"&&t(ue[Oe]);return Object.assign(pe,ue),pe.addPlugin(Ws),pe.addPlugin(Ie),pe.addPlugin(vs),pe}({});return _1=pr,_1}var E1={exports:{}},RF;function dhe(){return RF||(RF=1,function(e){(function(){var t;t=e.exports=i,t.format=i,t.vsprintf=n,typeof console<"u"&&typeof console.log=="function"&&(t.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,c=s.length,l="",f,h=!1,p,g,y=!1,v,E=function(){return o[a++]},b=function(){for(var S="";/\d/.test(s[u]);)S+=s[u++],f=s[u];return S.length>0?parseInt(S):null};u<c;++u)if(f=s[u],h)switch(h=!1,f=="."?(y=!1,f=s[++u]):f=="0"&&s[u+1]=="."?(y=!0,u+=2,f=s[u]):y=!0,v=b(),f){case"b":l+=parseInt(E(),10).toString(2);break;case"c":p=E(),typeof p=="string"||p instanceof String?l+=p:l+=String.fromCharCode(parseInt(p,10));break;case"d":l+=parseInt(E(),10);break;case"f":g=String(parseFloat(E()).toFixed(v||6)),l+=y?g:g.replace(/^0/,"");break;case"j":l+=JSON.stringify(E());break;case"o":l+="0"+parseInt(E(),10).toString(8);break;case"s":l+=E();break;case"x":l+="0x"+parseInt(E(),10).toString(16);break;case"X":l+="0x"+parseInt(E(),10).toString(16).toUpperCase();break;default:l+=f;break}else f==="%"?h=!0:l+=f;return l}})()}(E1)),E1.exports}var S1,TF;function phe(){if(TF)return S1;TF=1;var e=dhe(),t=r(Error);S1=t,t.eval=r(EvalError),t.range=r(RangeError),t.reference=r(ReferenceError),t.syntax=r(SyntaxError),t.type=r(TypeError),t.uri=r(URIError),t.create=r;function r(n){return i.displayName=n.displayName||n.name,i;function i(s){return s&&(s=e.apply(null,arguments)),new n(s)}}return S1}var IF;function hhe(){if(IF)return Ia;IF=1;var e=fhe(),t=phe();Ia.highlight=n,Ia.highlightAuto=i,Ia.registerLanguage=s,Ia.listLanguages=a,Ia.registerAlias=o,u.prototype.addText=f,u.prototype.addKeyword=c,u.prototype.addSublanguage=l,u.prototype.openNode=h,u.prototype.closeNode=p,u.prototype.closeAllNodes=y,u.prototype.finalize=y,u.prototype.toHTML=g;var r="hljs-";function n(v,E,b){var S=e.configure({}),x=b||{},_=x.prefix,A;if(typeof v!="string")throw t("Expected `string` for name, got `%s`",v);if(!e.getLanguage(v))throw t("Unknown language: `%s` is not registered",v);if(typeof E!="string")throw t("Expected `string` for value, got `%s`",E);if(_==null&&(_=r),e.configure({__emitter:u,classPrefix:_}),A=e.highlight(E,{language:v,ignoreIllegals:!0}),e.configure(S||{}),A.errorRaised)throw A.errorRaised;return{relevance:A.relevance,language:A.language,value:A.emitter.rootNode.children}}function i(v,E){var b=E||{},S=b.subset||e.listLanguages();b.prefix;var x=S.length,_=-1,A,C,T,O;if(typeof v!="string")throw t("Expected `string` for value, got `%s`",v);for(C={relevance:0,language:null,value:[]},A={relevance:0,language:null,value:[]};++_<x;)O=S[_],e.getLanguage(O)&&(T=n(O,v,E),T.language=O,T.relevance>C.relevance&&(C=T),T.relevance>A.relevance&&(C=A,A=T));return C.language&&(A.secondBest=C),A}function s(v,E){e.registerLanguage(v,E)}function a(){return e.listLanguages()}function o(v,E){var b=v,S;E&&(b={},b[v]=E);for(S in b)e.registerAliases(b[S],{languageName:S})}function u(v){this.options=v,this.rootNode={children:[]},this.stack=[this.rootNode]}function c(v,E){this.openNode(E),this.addText(v),this.closeNode()}function l(v,E){var b=this.stack,S=b[b.length-1],x=v.rootNode.children,_=E?{type:"element",tagName:"span",properties:{className:[E]},children:x}:x;S.children=S.children.concat(_)}function f(v){var E=this.stack,b,S;v!==""&&(b=E[E.length-1],S=b.children[b.children.length-1],S&&S.type==="text"?S.value+=v:b.children.push({type:"text",value:v}))}function h(v){var E=this.stack,b=this.options.classPrefix+v,S=E[E.length-1],x={type:"element",tagName:"span",properties:{className:[b]},children:[]};S.children.push(x),E.push(x)}function p(){this.stack.pop()}function g(){return""}function y(){}return Ia}var mhe=hhe();const M5=Ue.getDefaultExportFromCjs(mhe);var D5=lhe(M5,{});D5.registerLanguage=M5.registerLanguage;var w1,jF;function ghe(){if(jF)return w1;jF=1;const e="[A-Za-z$_][0-9A-Za-z$_]*",t=["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 c(h){return l("(?=",h,")")}function l(...h){return h.map(g=>u(g)).join("")}function f(h){const p=(V,{after:G})=>{const Q="</"+V[0].slice(1);return V.input.indexOf(Q,G)!==-1},g=e,y={begin:"<>",end:"</>"},v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(V,G)=>{const Q=V[0].length+V.index,Z=V.input[Q];if(Z==="<"){G.ignoreMatch();return}Z===">"&&(p(V,{after:Q})||G.ignoreMatch())}},E={$pattern:e,keyword:t,literal:r,built_in:o},b="[0-9](_?[0-9])*",S=`\\.(${b})`,x="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",_={className:"number",variants:[{begin:`(\\b(${x})((${S})|\\.)?|(${S}))[eE][+-]?(${b})\\b`},{begin:`\\b(${x})\\b((${S})\\b|\\.)?|(${S})\\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:[]},C={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"}},O={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,A]},k={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]},D=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,C,T,O,_,h.REGEXP_MODE];A.contains=D.concat({begin:/\{/,end:/\}/,keywords:E,contains:["self"].concat(D)});const P=[].concat(k,A.contains),H=P.concat([{begin:/\(/,end:/\)/,keywords:E,contains:["self"].concat(P)}]),X={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:E,contains:H};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:E,exports:{PARAMS_CONTAINS:H},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,C,T,O,k,_,{begin:l(/[{,\n]\s*/,c(l(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,g+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:g+c("\\s*:"),relevance:0}]},{begin:"("+h.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[k,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:H}]}]},{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}),X],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[X,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",X]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:g}),{begin:/\(\)/},X]},{begin:/\$[(.]/}]}}return w1=f,w1}var yhe=ghe();const vhe=Ue.getDefaultExportFromCjs(yhe);var x1,kF;function bhe(){if(kF)return x1;kF=1;function e(t){const r={literal:"true false null"},n=[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE],i=[t.QUOTE_STRING_MODE,t.C_NUMBER_MODE],s={end:",",endsWithParent:!0,excludeEnd:!0,contains:i,keywords:r},a={begin:/\{/,end:/\}/,contains:[{className:"attr",begin:/"/,end:/"/,contains:[t.BACKSLASH_ESCAPE],illegal:"\\n"},t.inherit(s,{begin:/:/})].concat(n),illegal:"\\S"},o={begin:"\\[",end:"\\]",contains:[t.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 x1=e,x1}var _he=bhe();const Ehe=Ue.getDefaultExportFromCjs(_he);var A1,PF;function She(){if(PF)return A1;PF=1;function e(a){return a?typeof a=="string"?a:a.source:null}function t(a){return n("(?=",a,")")}function r(a){return n("(",a,")?")}function n(...a){return a.map(u=>e(u)).join("")}function i(...a){return"("+a.map(u=>e(u)).join("|")+")"}function s(a){const o=n(/[A-Z_]/,r(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),u=/[A-Za-z0-9._:-]+/,c={className:"symbol",begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},l={begin:/\s/,contains:[{className:"meta-keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},f=a.inherit(l,{begin:/\(/,end:/\)/}),h=a.inherit(a.APOS_STRING_MODE,{className:"meta-string"}),p=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:[c]},{begin:/'/,end:/'/,contains:[c]},{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:[l,p,h,f,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,f,p,h]}]}]},a.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},c,{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(/</,t(n(o,i(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:"name",begin:o,relevance:0,starts:g}]},{className:"tag",begin:n(/<\//,t(n(o,/>/))),contains:[{className:"name",begin:o,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}return A1=s,A1}var whe=She();const xhe=Ue.getDefaultExportFromCjs(whe);var O1,NF;function Ahe(){if(NF)return O1;NF=1;function e(n){return n?typeof n=="string"?n:n.source:null}function t(...n){return n.map(s=>e(s)).join("")}function r(n){const i={},s={begin:/\$\{/,end:/\}/,contains:["self",{begin:/:-/,contains:[i]}]};Object.assign(i,{className:"variable",variants:[{begin:t(/\$[\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 c={className:"",begin:/\\"/},l={className:"string",begin:/'/,end:/'/},f={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},n.NUMBER_MODE,i]},h=["fish","bash","zsh","sh","csh","ksh","tcsh","dash","scsh"],p=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:[p,n.SHEBANG(),g,f,n.HASH_COMMENT_MODE,o,u,c,l,i]}}return O1=r,O1}var Ohe=Ahe();const Che=Ue.getDefaultExportFromCjs(Ohe);var C1,MF;function Rhe(){if(MF)return C1;MF=1;function e(t){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:[t.BACKSLASH_ESCAPE,s]},o=t.inherit(a,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),u="[0-9]{4}(-[0-9][0-9]){0,2}",c="([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?",l="(\\.[0-9]*)?",f="([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?",h={className:"number",begin:"\\b"+u+c+l+f+"\\b"},p={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[p],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[p],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:"&"+t.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+t.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"-(?=[ ]|$)",relevance:0},t.HASH_COMMENT_MODE,{beginKeywords:r,keywords:{literal:r}},h,{className:"number",begin:t.C_NUMBER_RE+"\\b",relevance:0},g,y,a],E=[...v];return E.pop(),E.push(o),p.contains=E,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return C1=e,C1}var The=Rhe();const Ihe=Ue.getDefaultExportFromCjs(The);var R1,DF;function jhe(){if(DF)return R1;DF=1;function e(n){return n?typeof n=="string"?n:n.source:null}function t(...n){return n.map(s=>e(s)).join("")}function r(n){const i="HTTP/(2|1\\.[01])",a={className:"attribute",begin:t("^",/[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 R1=r,R1}var khe=jhe();const Phe=Ue.getDefaultExportFromCjs(khe);var T1,qF;function Nhe(){if(qF)return T1;qF=1;function e(t){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_:]*/}]},c={className:"literal",begin:/\$(null|true|false)\b/},l={className:"string",variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[o,u,{className:"variable",begin:/\$[A-z]/,end:/[^A-z]/}]},f={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+/}]},p=t.inherit(t.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:[t.TITLE_MODE]},v={className:"function",begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:"function",relevance:0,className:"keyword"},{className:"title",begin:a,relevance:0},{begin:/\(/,end:/\)/,className:"params",relevance:0,contains:[u]}]},E={begin:/using\s/,end:/$/,returnBegin:!0,contains:[l,f,{className:"keyword",begin:/(using|assembly|command|module|namespace|type)/}]},b={variants:[{className:"operator",begin:"(".concat(i,")\\b")},{className:"literal",begin:/(-)[\w\d]+/,relevance:0}]},S={className:"selector-tag",begin:/@\B/,relevance:0},x={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(s.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},_=[x,p,o,t.NUMBER_MODE,l,f,g,u,c,S],A={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",_,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return x.contains.unshift(A),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:s,contains:_.concat(y,v,E,b,A)}}return T1=e,T1}var Mhe=Nhe();const Dhe=Ue.getDefaultExportFromCjs(Mhe),qhe={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"}},$he={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"}},Fhe={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"}},Lhe={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"}},Bhe={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"}},Uhe={"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"}},Vhe={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 I1,$F;function zhe(){return $F||($F=1,I1=function(e,t,r,n){var i=typeof n<"u"?[n,e]:[e],s=new Blob(i,{type:r||"application/octet-stream"});if(typeof window.navigator.msSaveBlob<"u")window.navigator.msSaveBlob(s,t);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",t),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)}}),I1}var Whe=zhe();const Jhe=Ue.getDefaultExportFromCjs(Whe);var j1,FF;function Khe(){if(FF)return j1;FF=1;function e(t,r,n){for(var i=-1,s=t.length,a=r.length,o={};++i<s;){var u=i<a?r[i]:void 0;n(o,t[i],u)}return o}return j1=e,j1}var k1,LF;function Hhe(){if(LF)return k1;LF=1;var e=th(),t=Khe();function r(n,i){return t(n||[],i||[],e)}return k1=r,k1}var Ghe=Hhe();const Yhe=Ue.getDefaultExportFromCjs(Ghe);var Xhe=ks();const Zhe=Ue.getDefaultExportFromCjs(Xhe);/*!
238
+ * repeat-string <https://github.com/jonschlinkert/repeat-string>
239
+ *
240
+ * Copyright (c) 2014-2015, Jon Schlinkert.
241
+ * Licensed under the MIT License.
242
+ */var P1,BF;function Qhe(){if(BF)return P1;BF=1;var e="",t;P1=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(t!==n||typeof t>"u")t=n,e="";else if(e.length>=s)return e.substr(0,s);for(;s>e.length&&i>1;)i&1&&(e+=n),i>>=1,n+=n;return e+=n,e=e.substr(0,s),e}return P1}var N1,UF;function eme(){if(UF)return N1;UF=1;var e=Qhe(),t=function(c){return c.split(/(<\/?[^>]+>)/g).filter(function(l){return l.trim()!==""})},r=function(c){return/<[^>!]+>/.test(c)},n=function(c){return/<\/+[^>]+>/.test(c)},i=function(c){return/<[^>]+\/>/.test(c)},s=function(c){return r(c)&&!n(c)&&!i(c)};N1=function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.indentor,f=c.textNodesOnSameLine,h=0,p=[];l=l||" ";var g=a(u).map(function(y,v,E){var b=y.value,S=y.type;S==="ClosingTag"&&h--;var x=e(l,h),_=x+b;if(S==="OpeningTag"&&h++,f){var A=E[v-1],C=E[v-2];S==="ClosingTag"&&A.type==="Text"&&C.type==="OpeningTag"&&(_=""+x+C.value+A.value+b,p.push(v-2,v-1))}return _});return p.forEach(function(y){return g[y]=null}),g.filter(function(y){return!!y}).join(`
243
+ `)};function a(u){var c=t(u);return c.map(function(l){return{value:l,type:o(l)}})}function o(u){return n(u)?"ClosingTag":s(u)?"OpeningTag":i(u)?"SelfClosingTag":"Text"}return N1}var tme=eme();const rme=Ue.getDefaultExportFromCjs(tme);var M1,VF;function nme(){if(VF)return M1;VF=1;var e=ks();function t(r){return e(r).toLowerCase()}return M1=t,M1}var ime=nme();const sme=Ue.getDefaultExportFromCjs(ime);var ed;function q5(e){return ed=ed||document.createElement("textarea"),ed.innerHTML="&"+e+";",ed.value}var ame=Object.prototype.hasOwnProperty;function ome(e,t){return e?ame.call(e,t):!1}function $5(e){var t=[].slice.call(arguments,1);return t.forEach(function(r){if(r){if(typeof r!="object")throw new TypeError(r+"must be object");Object.keys(r).forEach(function(n){e[n]=r[n]})}}),e}var ume=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function $c(e){return e.indexOf("\\")<0?e:e.replace(ume,"$1")}function F5(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function qx(e){if(e>65535){e-=65536;var t=55296+(e>>10),r=56320+(e&1023);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var cme=/&([a-z#][a-z0-9]{1,31});/gi,lme=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function fme(e,t){var r=0,n=q5(t);return t!==n?n:t.charCodeAt(0)===35&&lme.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),F5(r))?qx(r):e}function Xa(e){return e.indexOf("&")<0?e:e.replace(cme,fme)}var dme=/[&<>"]/,pme=/[&<>"]/g,hme={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;"};function mme(e){return hme[e]}function kn(e){return dme.test(e)?e.replace(pme,mme):e}var We={};We.blockquote_open=function(){return`<blockquote>
244
+ `};We.blockquote_close=function(e,t){return"</blockquote>"+yo(e,t)};We.code=function(e,t){return e[t].block?"<pre><code>"+kn(e[t].content)+"</code></pre>"+yo(e,t):"<code>"+kn(e[t].content)+"</code>"};We.fence=function(e,t,r,n,i){var s=e[t],a="",o=r.langPrefix,u="",c,l,f;if(s.params){if(c=s.params.split(/\s+/g),l=c.join(" "),ome(i.rules.fence_custom,c[0]))return i.rules.fence_custom[c[0]](e,t,r,n,i);u=kn(Xa($c(l))),a=' class="'+o+u+'"'}return r.highlight?f=r.highlight.apply(r.highlight,[s.content].concat(c))||kn(s.content):f=kn(s.content),"<pre><code"+a+">"+f+"</code></pre>"+yo(e,t)};We.fence_custom={};We.heading_open=function(e,t){return"<h"+e[t].hLevel+">"};We.heading_close=function(e,t){return"</h"+e[t].hLevel+`>
245
+ `};We.hr=function(e,t,r){return(r.xhtmlOut?"<hr />":"<hr>")+yo(e,t)};We.bullet_list_open=function(){return`<ul>
246
+ `};We.bullet_list_close=function(e,t){return"</ul>"+yo(e,t)};We.list_item_open=function(){return"<li>"};We.list_item_close=function(){return`</li>
247
+ `};We.ordered_list_open=function(e,t){var r=e[t],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
248
+ `};We.ordered_list_close=function(e,t){return"</ol>"+yo(e,t)};We.paragraph_open=function(e,t){return e[t].tight?"":"<p>"};We.paragraph_close=function(e,t){var r=!(e[t].tight&&t&&e[t-1].type==="inline"&&!e[t-1].content);return(e[t].tight?"":"</p>")+(r?yo(e,t):"")};We.link_open=function(e,t,r){var n=e[t].title?' title="'+kn(Xa(e[t].title))+'"':"",i=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+kn(e[t].href)+'"'+n+i+">"};We.link_close=function(){return"</a>"};We.image=function(e,t,r){var n=' src="'+kn(e[t].src)+'"',i=e[t].title?' title="'+kn(Xa(e[t].title))+'"':"",s=' alt="'+(e[t].alt?kn(Xa($c(e[t].alt))):"")+'"',a=r.xhtmlOut?" /":"";return"<img"+n+s+i+a+">"};We.table_open=function(){return`<table>
249
+ `};We.table_close=function(){return`</table>
250
+ `};We.thead_open=function(){return`<thead>
251
+ `};We.thead_close=function(){return`</thead>
252
+ `};We.tbody_open=function(){return`<tbody>
253
+ `};We.tbody_close=function(){return`</tbody>
254
+ `};We.tr_open=function(){return"<tr>"};We.tr_close=function(){return`</tr>
255
+ `};We.th_open=function(e,t){var r=e[t];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};We.th_close=function(){return"</th>"};We.td_open=function(e,t){var r=e[t];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};We.td_close=function(){return"</td>"};We.strong_open=function(){return"<strong>"};We.strong_close=function(){return"</strong>"};We.em_open=function(){return"<em>"};We.em_close=function(){return"</em>"};We.del_open=function(){return"<del>"};We.del_close=function(){return"</del>"};We.ins_open=function(){return"<ins>"};We.ins_close=function(){return"</ins>"};We.mark_open=function(){return"<mark>"};We.mark_close=function(){return"</mark>"};We.sub=function(e,t){return"<sub>"+kn(e[t].content)+"</sub>"};We.sup=function(e,t){return"<sup>"+kn(e[t].content)+"</sup>"};We.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
256
+ `:`<br>
257
+ `};We.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
258
+ `:`<br>
259
+ `:`
260
+ `};We.text=function(e,t){return kn(e[t].content)};We.htmlblock=function(e,t){return e[t].content};We.htmltag=function(e,t){return e[t].content};We.abbr_open=function(e,t){return'<abbr title="'+kn(Xa(e[t].title))+'">'};We.abbr_close=function(){return"</abbr>"};We.footnote_ref=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+r+'" id="'+n+'">['+r+"]</a></sup>"};We.footnote_block_open=function(e,t,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
261
+ `:`<hr class="footnotes-sep">
262
+ `;return n+`<section class="footnotes">
263
+ <ol class="footnotes-list">
264
+ `};We.footnote_block_close=function(){return`</ol>
265
+ </section>
266
+ `};We.footnote_open=function(e,t){var r=Number(e[t].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};We.footnote_close=function(){return`</li>
267
+ `};We.footnote_anchor=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'};We.dl_open=function(){return`<dl>
268
+ `};We.dt_open=function(){return"<dt>"};We.dd_open=function(){return"<dd>"};We.dl_close=function(){return`</dl>
269
+ `};We.dt_close=function(){return`</dt>
270
+ `};We.dd_close=function(){return`</dd>
271
+ `};function L5(e,t){return++t>=e.length-2?t:e[t].type==="paragraph_open"&&e[t].tight&&e[t+1].type==="inline"&&e[t+1].content.length===0&&e[t+2].type==="paragraph_close"&&e[t+2].tight?L5(e,t+2):t}var yo=We.getBreak=function(t,r){return r=L5(t,r),r<t.length&&t[r].type==="list_item_close"?"":`
272
+ `};function mC(){this.rules=$5({},We),this.getBreak=We.getBreak}mC.prototype.renderInline=function(e,t,r){for(var n=this.rules,i=e.length,s=0,a="";i--;)a+=n[e[s].type](e,s++,t,r,this);return a};mC.prototype.render=function(e,t,r){for(var n=this.rules,i=e.length,s=-1,a="";++s<i;)e[s].type==="inline"?a+=this.renderInline(e[s].children,t,r):a+=n[e[s].type](e,s,t,r,this);return a};function Zn(){this.__rules__=[],this.__cache__=null}Zn.prototype.__find__=function(e){for(var t=this.__rules__.length,r=-1;t--;)if(this.__rules__[++r].name===e)return r;return-1};Zn.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach(function(r){r.enabled&&r.alt.forEach(function(n){t.indexOf(n)<0&&t.push(n)})}),e.__cache__={},t.forEach(function(r){e.__cache__[r]=[],e.__rules__.forEach(function(n){n.enabled&&(r&&n.alt.indexOf(r)<0||e.__cache__[r].push(n.fn))})})};Zn.prototype.at=function(e,t,r){var n=this.__find__(e),i=r||{};if(n===-1)throw new Error("Parser rule not found: "+e);this.__rules__[n].fn=t,this.__rules__[n].alt=i.alt||[],this.__cache__=null};Zn.prototype.before=function(e,t,r,n){var i=this.__find__(e),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};Zn.prototype.after=function(e,t,r,n){var i=this.__find__(e),s=n||{};if(i===-1)throw new Error("Parser rule not found: "+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:r,alt:s.alt||[]}),this.__cache__=null};Zn.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};Zn.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(r){r.enabled=!1}),e.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};Zn.prototype.disable=function(e){e=Array.isArray(e)?e:[e],e.forEach(function(t){var r=this.__find__(t);if(r<0)throw new Error("Rules manager: invalid rule name "+t);this.__rules__[r].enabled=!1},this),this.__cache__=null};Zn.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function gme(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}function vo(e,t,r,n,i){this.src=e,this.env=n,this.options=r,this.parser=t,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}vo.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};vo.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level};vo.prototype.cacheSet=function(e,t){for(var r=this.cache.length;r<=e;r++)this.cache.push(0);this.cache[e]=t};vo.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function Fc(e,t){var r,n,i,s=-1,a=e.posMax,o=e.pos,u=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,r=1;e.pos<a;){if(i=e.src.charCodeAt(e.pos),i===91)r++;else if(i===93&&(r--,r===0)){n=!0;break}e.parser.skipToken(e)}return n?(s=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=r-1,e.pos=o,e.isInLabel=u,s}function yme(e,t,r,n){var i,s,a,o,u,c;if(e.charCodeAt(0)!==42||e.charCodeAt(1)!==91||e.indexOf("]:")===-1||(i=new vo(e,t,r,n,[]),s=Fc(i,1),s<0||e.charCodeAt(s+1)!==58))return-1;for(o=i.posMax,a=s+2;a<o&&i.src.charCodeAt(a)!==10;a++);return u=e.slice(2,s),c=e.slice(s+2,a).trim(),c.length===0?-1:(n.abbreviations||(n.abbreviations={}),typeof n.abbreviations[":"+u]>"u"&&(n.abbreviations[":"+u]=c),a)}function vme(e){var t=e.tokens,r,n,i,s;if(!e.inlineMode){for(r=1,n=t.length-1;r<n;r++)if(t[r-1].type==="paragraph_open"&&t[r].type==="inline"&&t[r+1].type==="paragraph_close"){for(i=t[r].content;i.length&&(s=yme(i,e.inline,e.options,e.env),!(s<0));)i=i.slice(s).trim();t[r].content=i,i.length||(t[r-1].tight=!0,t[r+1].tight=!0)}}}function $x(e){var t=Xa(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function B5(e,t){var r,n,i,s=t,a=e.posMax;if(e.src.charCodeAt(t)===60){for(t++;t<a;){if(r=e.src.charCodeAt(t),r===10)return!1;if(r===62)return i=$x($c(e.src.slice(s+1,t))),e.parser.validateLink(i)?(e.pos=t+1,e.linkContent=i,!0):!1;if(r===92&&t+1<a){t+=2;continue}t++}return!1}for(n=0;t<a&&(r=e.src.charCodeAt(t),!(r===32||r<32||r===127));){if(r===92&&t+1<a){t+=2;continue}if(r===40&&(n++,n>1)||r===41&&(n--,n<0))break;t++}return s===t||(i=$c(e.src.slice(s,t)),!e.parser.validateLink(i))?!1:(e.linkContent=i,e.pos=t,!0)}function U5(e,t){var r,n=t,i=e.posMax,s=e.src.charCodeAt(t);if(s!==34&&s!==39&&s!==40)return!1;for(t++,s===40&&(s=41);t<i;){if(r=e.src.charCodeAt(t),r===s)return e.pos=t+1,e.linkContent=$c(e.src.slice(n+1,t)),!0;if(r===92&&t+1<i){t+=2;continue}t++}return!1}function V5(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function bme(e,t,r,n){var i,s,a,o,u,c,l,f,h;if(e.charCodeAt(0)!==91||e.indexOf("]:")===-1||(i=new vo(e,t,r,n,[]),s=Fc(i,0),s<0||e.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(!B5(i,a))return-1;for(l=i.linkContent,a=i.pos,c=a,a=a+1;a<o&&(u=i.src.charCodeAt(a),!(u!==32&&u!==10));a++);for(a<o&&c!==a&&U5(i,a)?(f=i.linkContent,a=i.pos):(f="",a=c);a<o&&i.src.charCodeAt(a)===32;)a++;return a<o&&i.src.charCodeAt(a)!==10?-1:(h=V5(e.slice(1,s)),typeof n.references[h]>"u"&&(n.references[h]={title:f,href:l}),a)}function _me(e){var t=e.tokens,r,n,i,s;if(e.env.references=e.env.references||{},!e.inlineMode){for(r=1,n=t.length-1;r<n;r++)if(t[r].type==="inline"&&t[r-1].type==="paragraph_open"&&t[r+1].type==="paragraph_close"){for(i=t[r].content;i.length&&(s=bme(i,e.inline,e.options,e.env),!(s<0));)i=i.slice(s).trim();t[r].content=i,i.length||(t[r-1].tight=!0,t[r+1].tight=!0)}}}function Eme(e){var t=e.tokens,r,n,i;for(n=0,i=t.length;n<i;n++)r=t[n],r.type==="inline"&&e.inline.parse(r.content,e.options,e.env,r.children)}function Sme(e){var t,r,n,i,s,a,o,u,c,l=0,f=!1,h={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(p){return p.type==="footnote_reference_open"?(f=!0,u=[],c=p.label,!1):p.type==="footnote_reference_close"?(f=!1,h[":"+c]=u,!1):(f&&u.push(p),!f)}),!!e.env.footnotes.list)){for(a=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:l++}),t=0,r=a.length;t<r;t++){for(e.tokens.push({type:"footnote_open",id:t,level:l++}),a[t].tokens?(o=[],o.push({type:"paragraph_open",tight:!1,level:l++}),o.push({type:"inline",content:"",level:l,children:a[t].tokens}),o.push({type:"paragraph_close",tight:!1,level:--l})):a[t].label&&(o=h[":"+a[t].label]),e.tokens=e.tokens.concat(o),e.tokens[e.tokens.length-1].type==="paragraph_close"?s=e.tokens.pop():s=null,i=a[t].count>0?a[t].count:1,n=0;n<i;n++)e.tokens.push({type:"footnote_anchor",id:t,subId:n,level:l});s&&e.tokens.push(s),e.tokens.push({type:"footnote_close",level:--l})}e.tokens.push({type:"footnote_block_close",level:--l})}}var zF=`
273
+ ()[]'".,!?-`;function D1(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function wme(e){var t,r,n,i,s,a,o,u,c,l,f,h,p=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(h="(^|["+zF.split("").map(D1).join("")+"])("+Object.keys(e.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,y){return y.length-g.length}).map(D1).join("|")+")($|["+zF.split("").map(D1).join("")+"])",e.env.abbrRegExp=new RegExp(h,"g")),l=e.env.abbrRegExp,r=0,n=p.length;r<n;r++)if(p[r].type==="inline"){for(i=p[r].children,t=i.length-1;t>=0;t--)if(s=i[t],s.type==="text"){for(u=0,a=s.content,l.lastIndex=0,c=s.level,o=[];f=l.exec(a);)l.lastIndex>u&&o.push({type:"text",content:a.slice(u,f.index+f[1].length),level:c}),o.push({type:"abbr_open",title:e.env.abbreviations[":"+f[2]],level:c++}),o.push({type:"text",content:f[2],level:c}),o.push({type:"abbr_close",level:--c}),u=l.lastIndex-f[3].length;o.length&&(u<a.length&&o.push({type:"text",content:a.slice(u),level:c}),p[r].children=i=[].concat(i.slice(0,t),o,i.slice(t+1)))}}}}var xme=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Ame=/\((c|tm|r|p)\)/ig,Ome={c:"©",r:"®",p:"§",tm:"™"};function Cme(e){return e.indexOf("(")<0?e:e.replace(Ame,function(t,r){return Ome[r.toLowerCase()]})}function Rme(e){var t,r,n,i,s;if(e.options.typographer){for(s=e.tokens.length-1;s>=0;s--)if(e.tokens[s].type==="inline")for(i=e.tokens[s].children,t=i.length-1;t>=0;t--)r=i[t],r.type==="text"&&(n=r.content,n=Cme(n),xme.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 Tme=/['"]/,WF=/['"]/g,Ime=/[-\s()\[\]]/,JF="’";function KF(e,t){return t<0||t>=e.length?!1:!Ime.test(e[t])}function ko(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function jme(e){var t,r,n,i,s,a,o,u,c,l,f,h,p,g,y,v,E;if(e.options.typographer){for(E=[],y=e.tokens.length-1;y>=0;y--)if(e.tokens[y].type==="inline"){for(v=e.tokens[y].children,E.length=0,t=0;t<v.length;t++)if(r=v[t],!(r.type!=="text"||Tme.test(r.text))){for(o=v[t].level,p=E.length-1;p>=0&&!(E[p].level<=o);p--);E.length=p+1,n=r.content,s=0,a=n.length;e:for(;s<a&&(WF.lastIndex=s,i=WF.exec(n),!!i);){if(u=!KF(n,i.index-1),s=i.index+1,g=i[0]==="'",c=!KF(n,s),!c&&!u){g&&(r.content=ko(r.content,i.index,JF));continue}if(f=!c,h=!u,h){for(p=E.length-1;p>=0&&(l=E[p],!(E[p].level<o));p--)if(l.single===g&&E[p].level===o){l=E[p],g?(v[l.token].content=ko(v[l.token].content,l.pos,e.options.quotes[2]),r.content=ko(r.content,i.index,e.options.quotes[3])):(v[l.token].content=ko(v[l.token].content,l.pos,e.options.quotes[0]),r.content=ko(r.content,i.index,e.options.quotes[1])),E.length=p;continue e}}f?E.push({token:t,pos:i.index,single:g,level:o}):h&&g&&(r.content=ko(r.content,i.index,JF))}}}}}var q1=[["block",gme],["abbr",vme],["references",_me],["inline",Eme],["footnote_tail",Sme],["abbr2",wme],["replacements",Rme],["smartquotes",jme]];function z5(){this.options={},this.ruler=new Zn;for(var e=0;e<q1.length;e++)this.ruler.push(q1[e][0],q1[e][1])}z5.prototype.process=function(e){var t,r,n;for(n=this.ruler.getRules(""),t=0,r=n.length;t<r;t++)n[t](e)};function bo(e,t,r,n,i){var s,a,o,u,c,l,f;for(this.src=e,this.parser=t,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,l=0,f=!1,o=u=l=0,c=a.length;u<c;u++){if(s=a.charCodeAt(u),!f)if(s===32){l++;continue}else f=!0;(s===10||u===c-1)&&(s!==10&&u++,this.bMarks.push(o),this.eMarks.push(u),this.tShift.push(l),f=!1,l=0,o=u+1)}this.bMarks.push(a.length),this.eMarks.push(a.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}bo.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};bo.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};bo.prototype.skipSpaces=function(t){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===32;t++);return t};bo.prototype.skipChars=function(t,r){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};bo.prototype.skipCharsBack=function(t,r,n){if(t<=n)return t;for(;t>n;)if(r!==this.src.charCodeAt(--t))return t+1;return t};bo.prototype.getLines=function(t,r,n,i){var s,a,o,u,c,l=t;if(t>=r)return"";if(l+1===r)return a=this.bMarks[l]+Math.min(this.tShift[l],n),o=i?this.eMarks[l]+1:this.eMarks[l],this.src.slice(a,o);for(u=new Array(r-t),s=0;l<r;l++,s++)c=this.tShift[l],c>n&&(c=n),c<0&&(c=0),a=this.bMarks[l]+c,l+1<r||i?o=this.eMarks[l]+1:o=this.eMarks[l],u[s]=this.src.slice(a,o);return u.join("")};function kme(e,t,r){var n,i;if(e.tShift[t]-e.blkIndent<4)return!1;for(i=n=t+1;n<r;){if(e.isEmpty(n)){n++;continue}if(e.tShift[n]-e.blkIndent>=4){n++,i=n;continue}break}return e.line=n,e.tokens.push({type:"code",content:e.getLines(t,i,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}function Pme(e,t,r,n){var i,s,a,o,u,c=!1,l=e.bMarks[t]+e.tShift[t],f=e.eMarks[t];if(l+3>f||(i=e.src.charCodeAt(l),i!==126&&i!==96)||(u=l,l=e.skipChars(l,i),s=l-u,s<3)||(a=e.src.slice(l,f).trim(),a.indexOf("`")>=0))return!1;if(n)return!0;for(o=t;o++,!(o>=r||(l=u=e.bMarks[o]+e.tShift[o],f=e.eMarks[o],l<f&&e.tShift[o]<e.blkIndent));)if(e.src.charCodeAt(l)===i&&!(e.tShift[o]-e.blkIndent>=4)&&(l=e.skipChars(l,i),!(l-u<s)&&(l=e.skipSpaces(l),!(l<f)))){c=!0;break}return s=e.tShift[t],e.line=o+(c?1:0),e.tokens.push({type:"fence",params:a,content:e.getLines(t+1,o,s,!0),lines:[t,e.line],level:e.level}),!0}function Nme(e,t,r,n){var i,s,a,o,u,c,l,f,h,p,g,y=e.bMarks[t]+e.tShift[t],v=e.eMarks[t];if(y>v||e.src.charCodeAt(y++)!==62||e.level>=e.options.maxNesting)return!1;if(n)return!0;for(e.src.charCodeAt(y)===32&&y++,u=e.blkIndent,e.blkIndent=0,o=[e.bMarks[t]],e.bMarks[t]=y,y=y<v?e.skipSpaces(y):y,s=y>=v,a=[e.tShift[t]],e.tShift[t]=y-e.bMarks[t],f=e.parser.ruler.getRules("blockquote"),i=t+1;i<r&&(y=e.bMarks[i]+e.tShift[i],v=e.eMarks[i],!(y>=v));i++){if(e.src.charCodeAt(y++)===62){e.src.charCodeAt(y)===32&&y++,o.push(e.bMarks[i]),e.bMarks[i]=y,y=y<v?e.skipSpaces(y):y,s=y>=v,a.push(e.tShift[i]),e.tShift[i]=y-e.bMarks[i];continue}if(s)break;for(g=!1,h=0,p=f.length;h<p;h++)if(f[h](e,i,r,!0)){g=!0;break}if(g)break;o.push(e.bMarks[i]),a.push(e.tShift[i]),e.tShift[i]=-1337}for(c=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:l=[t,0],level:e.level++}),e.parser.tokenize(e,t,i),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=c,l[1]=e.line,h=0;h<a.length;h++)e.bMarks[h+t]=o[h],e.tShift[h+t]=a[h];return e.blkIndent=u,!0}function Mme(e,t,r,n){var i,s,a,o=e.bMarks[t],u=e.eMarks[t];if(o+=e.tShift[t],o>u||(i=e.src.charCodeAt(o++),i!==42&&i!==45&&i!==95))return!1;for(s=1;o<u;){if(a=e.src.charCodeAt(o++),a!==i&&a!==32)return!1;a===i&&s++}return s<3?!1:(n||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),!0)}function HF(e,t){var r,n,i;return n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t],n>=i||(r=e.src.charCodeAt(n++),r!==42&&r!==45&&r!==43)||n<i&&e.src.charCodeAt(n)!==32?-1:n}function GF(e,t){var r,n=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(n+1>=i||(r=e.src.charCodeAt(n++),r<48||r>57))return-1;for(;;){if(n>=i)return-1;if(r=e.src.charCodeAt(n++),!(r>=48&&r<=57)){if(r===41||r===46)break;return-1}}return n<i&&e.src.charCodeAt(n)!==32?-1:n}function Dme(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].tight=!0,e.tokens[r].tight=!0,r+=2)}function qme(e,t,r,n){var i,s,a,o,u,c,l,f,h,p,g,y,v,E,b,S,x,_,A=!0,C,T,O,M;if((f=GF(e,t))>=0)v=!0;else if((f=HF(e,t))>=0)v=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(y=e.src.charCodeAt(f-1),n)return!0;for(b=e.tokens.length,v?(l=e.bMarks[t]+e.tShift[t],g=Number(e.src.substr(l,f-l-1)),e.tokens.push({type:"ordered_list_open",order:g,lines:x=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:x=[t,0],level:e.level++}),i=t,S=!1,C=e.parser.ruler.getRules("list");i<r&&(E=e.skipSpaces(f),h=e.eMarks[i],E>=h?p=1:p=E-f,p>4&&(p=1),p<1&&(p=1),s=f-e.bMarks[i]+p,e.tokens.push({type:"list_item_open",lines:_=[t,0],level:e.level++}),o=e.blkIndent,u=e.tight,a=e.tShift[t],c=e.parentType,e.tShift[t]=E-e.bMarks[t],e.blkIndent=s,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),(!e.tight||S)&&(A=!1),S=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=o,e.tShift[t]=a,e.tight=u,e.parentType=c,e.tokens.push({type:"list_item_close",level:--e.level}),i=t=e.line,_[1]=i,E=e.bMarks[t],!(i>=r||e.isEmpty(i)||e.tShift[i]<e.blkIndent));){for(M=!1,T=0,O=C.length;T<O;T++)if(C[T](e,i,r,!0)){M=!0;break}if(M)break;if(v){if(f=GF(e,i),f<0)break}else if(f=HF(e,i),f<0)break;if(y!==e.src.charCodeAt(f-1))break}return e.tokens.push({type:v?"ordered_list_close":"bullet_list_close",level:--e.level}),x[1]=i,e.line=i,A&&Dme(e,b),!0}function $me(e,t,r,n){var i,s,a,o,u,c=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(c+4>l||e.src.charCodeAt(c)!==91||e.src.charCodeAt(c+1)!==94||e.level>=e.options.maxNesting)return!1;for(o=c+2;o<l;o++){if(e.src.charCodeAt(o)===32)return!1;if(e.src.charCodeAt(o)===93)break}return o===c+2||o+1>=l||e.src.charCodeAt(++o)!==58?!1:(n||(o++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),u=e.src.slice(c+2,o-2),e.env.footnotes.refs[":"+u]=-1,e.tokens.push({type:"footnote_reference_open",label:u,level:e.level++}),i=e.bMarks[t],s=e.tShift[t],a=e.parentType,e.tShift[t]=e.skipSpaces(o)-o,e.bMarks[t]=o,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,r,!0),e.parentType=a,e.blkIndent-=4,e.tShift[t]=s,e.bMarks[t]=i,e.tokens.push({type:"footnote_reference_close",level:--e.level})),!0)}function Fme(e,t,r,n){var i,s,a,o=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(o>=u||(i=e.src.charCodeAt(o),i!==35||o>=u))return!1;for(s=1,i=e.src.charCodeAt(++o);i===35&&o<u&&s<=6;)s++,i=e.src.charCodeAt(++o);return s>6||o<u&&i!==32?!1:(n||(u=e.skipCharsBack(u,32,o),a=e.skipCharsBack(u,35,o),a>o&&e.src.charCodeAt(a-1)===32&&(u=a),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:s,lines:[t,e.line],level:e.level}),o<u&&e.tokens.push({type:"inline",content:e.src.slice(o,u).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:s,level:e.level})),!0)}function Lme(e,t,r){var n,i,s,a=t+1;return a>=r||e.tShift[a]<e.blkIndent||e.tShift[a]-e.blkIndent>3||(i=e.bMarks[a]+e.tShift[a],s=e.eMarks[a],i>=s)||(n=e.src.charCodeAt(i),n!==45&&n!==61)||(i=e.skipChars(i,n),i=e.skipSpaces(i),i<s)?!1:(i=e.bMarks[t]+e.tShift[t],e.line=a+1,e.tokens.push({type:"heading_open",hLevel:n===61?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(i,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:n===61?1:2,level:e.level}),!0)}var W5={};["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(e){W5[e]=!0});var Bme=/^<([a-zA-Z]{1,15})[\s\/>]/,Ume=/^<\/([a-zA-Z]{1,15})[\s>]/;function Vme(e){var t=e|32;return t>=97&&t<=122}function zme(e,t,r,n){var i,s,a,o=e.bMarks[t],u=e.eMarks[t],c=e.tShift[t];if(o+=c,!e.options.html||c>3||o+2>=u||e.src.charCodeAt(o)!==60)return!1;if(i=e.src.charCodeAt(o+1),i===33||i===63){if(n)return!0}else if(i===47||Vme(i)){if(i===47){if(s=e.src.slice(o,u).match(Ume),!s)return!1}else if(s=e.src.slice(o,u).match(Bme),!s)return!1;if(W5[s[1].toLowerCase()]!==!0)return!1;if(n)return!0}else return!1;for(a=t+1;a<e.lineMax&&!e.isEmpty(a);)a++;return e.line=a,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,a,0,!0)}),!0}function $1(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function Wme(e,t,r,n){var i,s,a,o,u,c,l,f,h,p,g;if(t+2>r||(u=t+1,e.tShift[u]<e.blkIndent)||(a=e.bMarks[u]+e.tShift[u],a>=e.eMarks[u])||(i=e.src.charCodeAt(a),i!==124&&i!==45&&i!==58)||(s=$1(e,t+1),!/^[-:| ]+$/.test(s))||(c=s.split("|"),c<=2))return!1;for(f=[],o=0;o<c.length;o++){if(h=c[o].trim(),!h){if(o===0||o===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(h))return!1;h.charCodeAt(h.length-1)===58?f.push(h.charCodeAt(0)===58?"center":"right"):h.charCodeAt(0)===58?f.push("left"):f.push("")}if(s=$1(e,t).trim(),s.indexOf("|")===-1||(c=s.replace(/^\||\|$/g,"").split("|"),f.length!==c.length))return!1;if(n)return!0;for(e.tokens.push({type:"table_open",lines:p=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),o=0;o<c.length;o++)e.tokens.push({type:"th_open",align:f[o],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:c[o].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:g=[t+2,0],level:e.level++}),u=t+2;u<r&&!(e.tShift[u]<e.blkIndent||(s=$1(e,u).trim(),s.indexOf("|")===-1));u++){for(c=s.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),o=0;o<c.length;o++)e.tokens.push({type:"td_open",align:f[o],level:e.level++}),l=c[o].substring(c[o].charCodeAt(0)===124?1:0,c[o].charCodeAt(c[o].length-1)===124?c[o].length-1:c[o].length).trim(),e.tokens.push({type:"inline",content:l,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),p[1]=g[1]=u,e.line=u,!0}function td(e,t){var r,n,i=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];return i>=s||(n=e.src.charCodeAt(i++),n!==126&&n!==58)||(r=e.skipSpaces(i),i===r)||r>=s?-1:r}function Jme(e,t){var r,n,i=e.level+2;for(r=t+2,n=e.tokens.length-2;r<n;r++)e.tokens[r].level===i&&e.tokens[r].type==="paragraph_open"&&(e.tokens[r+2].tight=!0,e.tokens[r].tight=!0,r+=2)}function Kme(e,t,r,n){var i,s,a,o,u,c,l,f,h,p,g,y,v,E;if(n)return e.ddIndent<0?!1:td(e,t)>=0;if(l=t+1,e.isEmpty(l)&&++l>r||e.tShift[l]<e.blkIndent||(i=td(e,l),i<0)||e.level>=e.options.maxNesting)return!1;c=e.tokens.length,e.tokens.push({type:"dl_open",lines:u=[t,0],level:e.level++}),a=t,s=l;e:for(;;){for(E=!0,v=!1,e.tokens.push({type:"dt_open",lines:[a,a],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(a,a+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[a,a],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:o=[l,0],level:e.level++}),y=e.tight,h=e.ddIndent,f=e.blkIndent,g=e.tShift[s],p=e.parentType,e.blkIndent=e.ddIndent=e.tShift[s]+2,e.tShift[s]=i-e.bMarks[s],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,s,r,!0),(!e.tight||v)&&(E=!1),v=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=g,e.tight=y,e.parentType=p,e.blkIndent=f,e.ddIndent=h,e.tokens.push({type:"dd_close",level:--e.level}),o[1]=l=e.line,l>=r||e.tShift[l]<e.blkIndent)break e;if(i=td(e,l),i<0)break;s=l}if(l>=r||(a=l,e.isEmpty(a))||e.tShift[a]<e.blkIndent||(s=a+1,s>=r)||(e.isEmpty(s)&&s++,s>=r)||e.tShift[s]<e.blkIndent||(i=td(e,s),i<0))break}return e.tokens.push({type:"dl_close",level:--e.level}),u[1]=l,e.line=l,E&&Jme(e,c),!0}function Hme(e,t){var r,n,i,s,a,o=t+1,u;if(r=e.lineMax,o<r&&!e.isEmpty(o)){for(u=e.parser.ruler.getRules("paragraph");o<r&&!e.isEmpty(o);o++)if(!(e.tShift[o]-e.blkIndent>3)){for(i=!1,s=0,a=u.length;s<a;s++)if(u[s](e,o,r,!0)){i=!0;break}if(i)break}}return n=e.getLines(t,o,e.blkIndent,!1).trim(),e.line=o,n.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:n,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}var rd=[["code",kme],["fences",Pme,["paragraph","blockquote","list"]],["blockquote",Nme,["paragraph","blockquote","list"]],["hr",Mme,["paragraph","blockquote","list"]],["list",qme,["paragraph","blockquote"]],["footnote",$me,["paragraph"]],["heading",Fme,["paragraph","blockquote"]],["lheading",Lme],["htmlblock",zme,["paragraph","blockquote"]],["table",Wme,["paragraph"]],["deflist",Kme,["paragraph"]],["paragraph",Hme]];function gC(){this.ruler=new Zn;for(var e=0;e<rd.length;e++)this.ruler.push(rd[e][0],rd[e][1],{alt:(rd[e][2]||[]).slice()})}gC.prototype.tokenize=function(e,t,r){for(var n=this.ruler.getRules(""),i=n.length,s=t,a=!1,o,u;s<r&&(e.line=s=e.skipEmptyLines(s),!(s>=r||e.tShift[s]<e.blkIndent));){for(u=0;u<i&&(o=n[u](e,s,r,!1),!o);u++);if(e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s<r&&e.isEmpty(s)){if(a=!0,s++,s<r&&e.parentType==="list"&&e.isEmpty(s))break;e.line=s}}};var Gme=/[\n\t]/g,Yme=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,Xme=/\u00a0/g;gC.prototype.parse=function(e,t,r,n){var i,s=0,a=0;if(!e)return[];e=e.replace(Xme," "),e=e.replace(Yme,`
274
+ `),e.indexOf(" ")>=0&&(e=e.replace(Gme,function(o,u){var c;return e.charCodeAt(u)===10?(s=u+1,a=0,o):(c=" ".slice((u-s-a)%4),a=u-s+1,c)})),i=new bo(e,this,t,r,n),this.tokenize(i,i.line,i.lineMax)};function Zme(e){switch(e){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 Qme(e,t){for(var r=e.pos;r<e.posMax&&!Zme(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}function ege(e,t){var r,n,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(r=e.pending.length-1,n=e.posMax,!t)if(r>=0&&e.pending.charCodeAt(r)===32)if(r>=1&&e.pending.charCodeAt(r-1)===32){for(var s=r-2;s>=0;s--)if(e.pending.charCodeAt(s)!==32){e.pending=e.pending.substring(0,s+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(i++;i<n&&e.src.charCodeAt(i)===32;)i++;return e.pos=i,!0}var yC=[];for(var YF=0;YF<256;YF++)yC.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){yC[e.charCodeAt(0)]=1});function tge(e,t){var r,n=e.pos,i=e.posMax;if(e.src.charCodeAt(n)!==92)return!1;if(n++,n<i){if(r=e.src.charCodeAt(n),r<256&&yC[r]!==0)return t||(e.pending+=e.src[n]),e.pos+=2,!0;if(r===10){for(t||e.push({type:"hardbreak",level:e.level}),n++;n<i&&e.src.charCodeAt(n)===32;)n++;return e.pos=n,!0}}return t||(e.pending+="\\"),e.pos++,!0}function rge(e,t){var r,n,i,s,a,o=e.pos,u=e.src.charCodeAt(o);if(u!==96)return!1;for(r=o,o++,n=e.posMax;o<n&&e.src.charCodeAt(o)===96;)o++;for(i=e.src.slice(r,o),s=a=o;(s=e.src.indexOf("`",a))!==-1;){for(a=s+1;a<n&&e.src.charCodeAt(a)===96;)a++;if(a-s===i.length)return t||e.push({type:"code",content:e.src.slice(o,s).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=a,!0}return t||(e.pending+=i),e.pos+=i.length,!0}function nge(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==126||t||a+4>=s||e.src.charCodeAt(a+1)!==126||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===126)||u===126||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===126;)n++;if(n>a+3)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===126&&e.src.charCodeAt(e.pos+1)===126&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==126&&o!==126&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function ige(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==43||t||a+4>=s||e.src.charCodeAt(a+1)!==43||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===43)||u===43||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===43;)n++;if(n!==a+2)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===43&&e.src.charCodeAt(e.pos+1)===43&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==43&&o!==43&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function sge(e,t){var r,n,i,s=e.posMax,a=e.pos,o,u;if(e.src.charCodeAt(a)!==61||t||a+4>=s||e.src.charCodeAt(a+1)!==61||e.level>=e.options.maxNesting||(o=a>0?e.src.charCodeAt(a-1):-1,u=e.src.charCodeAt(a+2),o===61)||u===61||u===32||u===10)return!1;for(n=a+2;n<s&&e.src.charCodeAt(n)===61;)n++;if(n!==a+2)return e.pos+=n-a,t||(e.pending+=e.src.slice(a,n)),!0;for(e.pos=a+2,i=1;e.pos+1<s;){if(e.src.charCodeAt(e.pos)===61&&e.src.charCodeAt(e.pos+1)===61&&(o=e.src.charCodeAt(e.pos-1),u=e.pos+2<s?e.src.charCodeAt(e.pos+2):-1,u!==61&&o!==61&&(o!==32&&o!==10?i--:u!==32&&u!==10&&i++,i<=0))){r=!0;break}e.parser.skipToken(e)}return r?(e.posMax=e.pos,e.pos=a+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=s,!0):(e.pos=a,!1)}function XF(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function ZF(e,t){var r=t,n,i,s,a=!0,o=!0,u=e.posMax,c=e.src.charCodeAt(t);for(n=t>0?e.src.charCodeAt(t-1):-1;r<u&&e.src.charCodeAt(r)===c;)r++;return r>=u&&(a=!1),s=r-t,s>=4?a=o=!1:(i=r<u?e.src.charCodeAt(r):-1,(i===32||i===10)&&(a=!1),(n===32||n===10)&&(o=!1),c===95&&(XF(n)&&(a=!1),XF(i)&&(o=!1))),{can_open:a,can_close:o,delims:s}}function age(e,t){var r,n,i,s,a,o,u,c=e.posMax,l=e.pos,f=e.src.charCodeAt(l);if(f!==95&&f!==42||t)return!1;if(u=ZF(e,l),r=u.delims,!u.can_open)return e.pos+=r,t||(e.pending+=e.src.slice(l,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=l+r,o=[r];e.pos<c;){if(e.src.charCodeAt(e.pos)===f){if(u=ZF(e,e.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;e.pos+=s,s=o.pop()}if(o.length===0){r=s,i=!0;break}e.pos+=n;continue}u.can_open&&o.push(n),e.pos+=n;continue}e.parser.skipToken(e)}return i?(e.posMax=e.pos,e.pos=l+r,t||((r===2||r===3)&&e.push({type:"strong_open",level:e.level++}),(r===1||r===3)&&e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),(r===1||r===3)&&e.push({type:"em_close",level:--e.level}),(r===2||r===3)&&e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+r,e.posMax=c,!0):(e.pos=l,!1)}var oge=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function uge(e,t){var r,n,i=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==126||t||s+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===126){r=!0;break}e.parser.skipToken(e)}return!r||s+1===e.pos||(n=e.src.slice(s+1,e.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sub",level:e.level,content:n.replace(oge,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}var cge=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function lge(e,t){var r,n,i=e.posMax,s=e.pos;if(e.src.charCodeAt(s)!==94||t||s+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=s+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===94){r=!0;break}e.parser.skipToken(e)}return!r||s+1===e.pos||(n=e.src.slice(s+1,e.pos),n.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=s,!1):(e.posMax=e.pos,e.pos=s+1,t||e.push({type:"sup",level:e.level,content:n.replace(cge,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}function fge(e,t){var r,n,i,s,a,o,u,c,l=!1,f=e.pos,h=e.posMax,p=e.pos,g=e.src.charCodeAt(p);if(g===33&&(l=!0,g=e.src.charCodeAt(++p)),g!==91||e.level>=e.options.maxNesting||(r=p+1,n=Fc(e,p),n<0))return!1;if(o=n+1,o<h&&e.src.charCodeAt(o)===40){for(o++;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o>=h)return!1;for(p=o,B5(e,o)?(s=e.linkContent,o=e.pos):s="",p=o;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o<h&&p!==o&&U5(e,o))for(a=e.linkContent,o=e.pos;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);else a="";if(o>=h||e.src.charCodeAt(o)!==41)return e.pos=f,!1;o++}else{if(e.linkLevel>0)return!1;for(;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o<h&&e.src.charCodeAt(o)===91&&(p=o+1,o=Fc(e,o),o>=0?i=e.src.slice(p,o++):o=p-1),i||(typeof i>"u"&&(o=n+1),i=e.src.slice(r,n)),u=e.env.references[V5(i)],!u)return e.pos=f,!1;s=u.href,a=u.title}return t||(e.pos=r,e.posMax=n,l?e.push({type:"image",src:s,title:a,alt:e.src.substr(r,n-r),level:e.level}):(e.push({type:"link_open",href:s,title:a,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=o,e.posMax=h,!0}function dge(e,t){var r,n,i,s,a=e.posMax,o=e.pos;return o+2>=a||e.src.charCodeAt(o)!==94||e.src.charCodeAt(o+1)!==91||e.level>=e.options.maxNesting||(r=o+2,n=Fc(e,o+1),n<0)?!1:(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),i=e.env.footnotes.list.length,e.pos=r,e.posMax=n,e.push({type:"footnote_ref",id:i,level:e.level}),e.linkLevel++,s=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[i]={tokens:e.tokens.splice(s)},e.linkLevel--),e.pos=n+1,e.posMax=a,!0)}function pge(e,t){var r,n,i,s,a=e.posMax,o=e.pos;if(o+3>a||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(o)!==91||e.src.charCodeAt(o+1)!==94||e.level>=e.options.maxNesting)return!1;for(n=o+2;n<a;n++){if(e.src.charCodeAt(n)===32||e.src.charCodeAt(n)===10)return!1;if(e.src.charCodeAt(n)===93)break}return n===o+2||n>=a||(n++,r=e.src.slice(o+2,n-1),typeof e.env.footnotes.refs[":"+r]>"u")?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(i=e.env.footnotes.list.length,e.env.footnotes.list[i]={label:r,count:0},e.env.footnotes.refs[":"+r]=i):i=e.env.footnotes.refs[":"+r],s=e.env.footnotes.list[i].count,e.env.footnotes.list[i].count++,e.push({type:"footnote_ref",id:i,subId:s,level:e.level})),e.pos=n,e.posMax=a,!0)}var hge=["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"],mge=/^<([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])?)*)>/,gge=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function yge(e,t){var r,n,i,s,a,o=e.pos;return e.src.charCodeAt(o)!==60||(r=e.src.slice(o),r.indexOf(">")<0)?!1:(n=r.match(gge),n?hge.indexOf(n[1].toLowerCase())<0||(s=n[0].slice(1,-1),a=$x(s),!e.parser.validateLink(s))?!1:(t||(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=n[0].length,!0):(i=r.match(mge),i?(s=i[0].slice(1,-1),a=$x("mailto:"+s),e.parser.validateLink(a)?(t||(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:s,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=i[0].length,!0):!1):!1))}function bm(e,t){return e=e.source,t=t||"",function r(n,i){return n?(i=i.source||i,e=e.replace(n,i),r):new RegExp(e,t)}}var vge=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,bge=/[^"'=<>`\x00-\x20]+/,_ge=/'[^']*'/,Ege=/"[^"]*"/,Sge=bm(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",bge)("single_quoted",_ge)("double_quoted",Ege)(),wge=bm(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",vge)("attr_value",Sge)(),xge=bm(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",wge)(),Age=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,Oge=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,Cge=/<[?].*?[?]>/,Rge=/<![A-Z]+\s+[^>]*>/,Tge=/<!\[CDATA\[[\s\S]*?\]\]>/,Ige=bm(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",xge)("close_tag",Age)("comment",Oge)("processing",Cge)("declaration",Rge)("cdata",Tge)();function jge(e){var t=e|32;return t>=97&&t<=122}function kge(e,t){var r,n,i,s=e.pos;return!e.options.html||(i=e.posMax,e.src.charCodeAt(s)!==60||s+2>=i)||(r=e.src.charCodeAt(s+1),r!==33&&r!==63&&r!==47&&!jge(r))||(n=e.src.slice(s).match(Ige),!n)?!1:(t||e.push({type:"htmltag",content:e.src.slice(s,s+n[0].length),level:e.level}),e.pos+=n[0].length,!0)}var Pge=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,Nge=/^&([a-z][a-z0-9]{1,31});/i;function Mge(e,t){var r,n,i,s=e.pos,a=e.posMax;if(e.src.charCodeAt(s)!==38)return!1;if(s+1<a){if(r=e.src.charCodeAt(s+1),r===35){if(i=e.src.slice(s).match(Pge),i)return t||(n=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),e.pending+=F5(n)?qx(n):qx(65533)),e.pos+=i[0].length,!0}else if(i=e.src.slice(s).match(Nge),i){var o=q5(i[1]);if(i[1]!==o)return t||(e.pending+=o),e.pos+=i[0].length,!0}}return t||(e.pending+="&"),e.pos++,!0}var F1=[["text",Qme],["newline",ege],["escape",tge],["backticks",rge],["del",nge],["ins",ige],["mark",sge],["emphasis",age],["sub",uge],["sup",lge],["links",fge],["footnote_inline",dge],["footnote_ref",pge],["autolink",yge],["htmltag",kge],["entity",Mge]];function _m(){this.ruler=new Zn;for(var e=0;e<F1.length;e++)this.ruler.push(F1[e][0],F1[e][1]);this.validateLink=Dge}_m.prototype.skipToken=function(e){var t=this.ruler.getRules(""),r=t.length,n=e.pos,i,s;if((s=e.cacheGet(n))>0){e.pos=s;return}for(i=0;i<r;i++)if(t[i](e,!0)){e.cacheSet(n,e.pos);return}e.pos++,e.cacheSet(n,e.pos)};_m.prototype.tokenize=function(e){for(var t=this.ruler.getRules(""),r=t.length,n=e.posMax,i,s;e.pos<n;){for(s=0;s<r&&(i=t[s](e,!1),!i);s++);if(i){if(e.pos>=n)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()};_m.prototype.parse=function(e,t,r,n){var i=new vo(e,this,t,r,n);this.tokenize(i)};function Dge(e){var t=["vbscript","javascript","file","data"],r=e.trim().toLowerCase();return r=Xa(r),!(r.indexOf(":")!==-1&&t.indexOf(r.split(":")[0])!==-1)}var qge={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"]}}},$ge={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},Fge={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"]}}},Lge={default:qge,full:$ge,commonmark:Fge};function J5(e,t,r){this.src=t,this.env=r,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Aa(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
275
+
276
+ import Remarkable from 'remarkable';
277
+ import linkify from 'remarkable/linkify';
278
+ new Remarkable().use(linkify)
279
+ `),this.inline=new _m,this.block=new gC,this.core=new z5,this.renderer=new mC,this.ruler=new Zn,this.options={},this.configure(Lge[e]),this.set(t||{})}Aa.prototype.set=function(e){$5(this.options,e)};Aa.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(r){e.components[r].rules&&t[r].ruler.enable(e.components[r].rules,!0)})};Aa.prototype.use=function(e,t){return e(this,t),this};Aa.prototype.parse=function(e,t){var r=new J5(this,e,t);return this.core.process(r),r.tokens};Aa.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Aa.prototype.parseInline=function(e,t){var r=new J5(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Aa.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var Bge="3.16.2";function Uge(e,t){for(var r in t)t.hasOwnProperty(r)&&e[r]===void 0&&(e[r]=t[r]);return e}function Vge(e,t,r){var n;return e.length>t&&(r==null?(r="&hellip;",n=3):n=r.length,e=e.substring(0,t-n)+r),e}function QF(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function ja(e,t){for(var r=e.length-1;r>=0;r--)t(e[r])===!0&&e.splice(r,1)}function zge(e,t){if(!t.global)throw new Error("`splitRegex` must have the 'g' flag set");for(var r=[],n=0,i;i=t.exec(e);)r.push(e.substring(n,i.index)),r.push(i[0]),n=i.index+i[0].length;return r.push(e.substring(n)),r}function vC(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var Fx=function(){function e(t){t===void 0&&(t={}),this.tagName="",this.attrs={},this.innerHTML="",this.whitespaceRegex=/\s+/,this.tagName=t.tagName||"",this.attrs=t.attrs||{},this.innerHTML=t.innerHtml||t.innerHTML||""}return e.prototype.setTagName=function(t){return this.tagName=t,this},e.prototype.getTagName=function(){return this.tagName||""},e.prototype.setAttr=function(t,r){var n=this.getAttrs();return n[t]=r,this},e.prototype.getAttr=function(t){return this.getAttrs()[t]},e.prototype.setAttrs=function(t){return Object.assign(this.getAttrs(),t),this},e.prototype.getAttrs=function(){return this.attrs||(this.attrs={})},e.prototype.setClass=function(t){return this.setAttr("class",t)},e.prototype.addClass=function(t){for(var r=this.getClass(),n=this.whitespaceRegex,i=r?r.split(n):[],s=t.split(n),a;a=s.shift();)QF(i,a)===-1&&i.push(a);return this.getAttrs().class=i.join(" "),this},e.prototype.removeClass=function(t){for(var r=this.getClass(),n=this.whitespaceRegex,i=r?r.split(n):[],s=t.split(n),a;i.length&&(a=s.shift());){var o=QF(i,a);o!==-1&&i.splice(o,1)}return this.getAttrs().class=i.join(" "),this},e.prototype.getClass=function(){return this.getAttrs().class||""},e.prototype.hasClass=function(t){return(" "+this.getClass()+" ").indexOf(" "+t+" ")!==-1},e.prototype.setInnerHTML=function(t){return this.innerHTML=t,this},e.prototype.setInnerHtml=function(t){return this.setInnerHTML(t)},e.prototype.getInnerHTML=function(){return this.innerHTML||""},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var t=this.getTagName(),r=this.buildAttrsStr();return r=r?" "+r:"",["<",t,r,">",this.getInnerHtml(),"</",t,">"].join("")},e.prototype.buildAttrsStr=function(){if(!this.attrs)return"";var t=this.getAttrs(),r=[];for(var n in t)t.hasOwnProperty(n)&&r.push(n+'="'+t[n]+'"');return r.join(" ")},e}();function Wge(e,t,r){var n,i;r==null?(r="&hellip;",i=3,n=8):(i=r.length,n=r.length);var s=function(b){var S={},x=b,_=x.match(/^([a-z]+):\/\//i);return _&&(S.scheme=_[1],x=x.substr(_[0].length)),_=x.match(/^(.*?)(?=(\?|#|\/|$))/i),_&&(S.host=_[1],x=x.substr(_[0].length)),_=x.match(/^\/(.*?)(?=(\?|#|$))/i),_&&(S.path=_[1],x=x.substr(_[0].length)),_=x.match(/^\?(.*?)(?=(#|$))/i),_&&(S.query=_[1],x=x.substr(_[0].length)),_=x.match(/^#(.*?)$/i),_&&(S.fragment=_[1]),S},a=function(b){var S="";return b.scheme&&b.host&&(S+=b.scheme+"://"),b.host&&(S+=b.host),b.path&&(S+="/"+b.path),b.query&&(S+="?"+b.query),b.fragment&&(S+="#"+b.fragment),S},o=function(b,S){var x=S/2,_=Math.ceil(x),A=-1*Math.floor(x),C="";return A<0&&(C=b.substr(A)),b.substr(0,_)+r+C};if(e.length<=t)return e;var u=t-i,c=s(e);if(c.query){var l=c.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);l&&(c.query=c.query.substr(0,l[1].length),e=a(c))}if(e.length<=t||(c.host&&(c.host=c.host.replace(/^www\./,""),e=a(c)),e.length<=t))return e;var f="";if(c.host&&(f+=c.host),f.length>=u)return c.host.length==t?(c.host.substr(0,t-i)+r).substr(0,u+n):o(f,u).substr(0,u+n);var h="";if(c.path&&(h+="/"+c.path),c.query&&(h+="?"+c.query),h)if((f+h).length>=u){if((f+h).length==t)return(f+h).substr(0,t);var p=u-f.length;return(f+o(h,p)).substr(0,u+n)}else f+=h;if(c.fragment){var g="#"+c.fragment;if((f+g).length>=u){if((f+g).length==t)return(f+g).substr(0,t);var y=u-f.length;return(f+o(g,y)).substr(0,u+n)}else f+=g}if(c.scheme&&c.host){var v=c.scheme+"://";if((f+v).length<u)return(v+f).substr(0,t)}if(f.length<=t)return f;var E="";return u>0&&(E=f.substr(-1*Math.floor(u/2))),(f.substr(0,Math.ceil(u/2))+r+E).substr(0,u+n)}function Jge(e,t,r){if(e.length<=t)return e;var n,i;r==null?(r="&hellip;",n=8,i=3):(n=r.length,i=r.length);var s=t-i,a="";return s>0&&(a=e.substr(-1*Math.floor(s/2))),(e.substr(0,Math.ceil(s/2))+r+a).substr(0,s+n)}function Kge(e,t,r){return Vge(e,t,r)}var e3=function(){function e(t){t===void 0&&(t={}),this.newWindow=!1,this.truncate={},this.className="",this.newWindow=t.newWindow||!1,this.truncate=t.truncate||{},this.className=t.className||""}return e.prototype.build=function(t){return new Fx({tagName:"a",attrs:this.createAttrs(t),innerHtml:this.processAnchorText(t.getAnchorText())})},e.prototype.createAttrs=function(t){var r={href:t.getAnchorHref()},n=this.createCssClass(t);return n&&(r.class=n),this.newWindow&&(r.target="_blank",r.rel="noopener noreferrer"),this.truncate&&this.truncate.length&&this.truncate.length<t.getAnchorText().length&&(r.title=t.getAnchorHref()),r},e.prototype.createCssClass=function(t){var r=this.className;if(r){for(var n=[r],i=t.getCssClassSuffixes(),s=0,a=i.length;s<a;s++)n.push(r+"-"+i[s]);return n.join(" ")}else return""},e.prototype.processAnchorText=function(t){return t=this.doTruncate(t),t},e.prototype.doTruncate=function(t){var r=this.truncate;if(!r||!r.length)return t;var n=r.length,i=r.location;return i==="smart"?Wge(t,n):i==="middle"?Jge(t,n):Kge(t,n)},e}(),ku=function(){function e(t){this.__jsduckDummyDocProp=null,this.matchedText="",this.offset=0,this.tagBuilder=t.tagBuilder,this.matchedText=t.matchedText,this.offset=t.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(t){this.offset=t},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),Lx=function(e,t){return Lx=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Lx(e,t)};function ms(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lx(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var mr=function(){return mr=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},mr.apply(this,arguments)};var K5=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.email="",n.email=r.email,n}return t.prototype.getType=function(){return"email"},t.prototype.getEmail=function(){return this.email},t.prototype.getAnchorHref=function(){return"mailto:"+this.email},t.prototype.getAnchorText=function(){return this.email},t}(ku),H5=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="",n.hashtag="",n.serviceName=r.serviceName,n.hashtag=r.hashtag,n}return t.prototype.getType=function(){return"hashtag"},t.prototype.getServiceName=function(){return this.serviceName},t.prototype.getHashtag=function(){return this.hashtag},t.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)}},t.prototype.getAnchorText=function(){return"#"+this.hashtag},t}(ku),G5=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.mention="",n.mention=r.mention,n.serviceName=r.serviceName,n}return t.prototype.getType=function(){return"mention"},t.prototype.getMention=function(){return this.mention},t.prototype.getServiceName=function(){return this.serviceName},t.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)}},t.prototype.getAnchorText=function(){return"@"+this.mention},t.prototype.getCssClassSuffixes=function(){var r=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();return n&&r.push(n),r},t}(ku),Y5=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.number="",n.plusSign=!1,n.number=r.number,n.plusSign=r.plusSign,n}return t.prototype.getType=function(){return"phone"},t.prototype.getPhoneNumber=function(){return this.number},t.prototype.getNumber=function(){return this.getPhoneNumber()},t.prototype.getAnchorHref=function(){return"tel:"+(this.plusSign?"+":"")+this.number},t.prototype.getAnchorText=function(){return this.matchedText},t}(ku),X5=function(e){ms(t,e);function t(r){var n=e.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 t.prototype.getType=function(){return"url"},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var r=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(r=this.url="http://"+r,this.protocolPrepended=!0),r},t.prototype.getAnchorHref=function(){var r=this.getUrl();return r.replace(/&amp;/g,"&")},t.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},t.prototype.stripSchemePrefix=function(r){return r.replace(this.schemePrefixRegex,"")},t.prototype.stripWwwPrefix=function(r){return r.replace(this.wwwPrefixRegex,"$1")},t.prototype.stripProtocolRelativePrefix=function(r){return r.replace(this.protocolRelativeRegex,"")},t.prototype.removeTrailingSlash=function(r){return r.charAt(r.length-1)==="/"&&(r=r.slice(0,-1)),r},t.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}},t}(ku),Pu=function(){function e(t){this.__jsduckDummyDocProp=null,this.tagBuilder=t.tagBuilder}return e}(),L1=/[A-Za-z]/,Hge=/[\d]/,Gge=/[\D]/,ka=/\s/,B1=/['"]/,Yge=/[\x00-\x1F\x7F]/,Z5=/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,Xge=/\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,Zge=/\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,Q5=Z5+Xge+Zge,tp=/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,Qge=Q5+tp,yr=Q5+tp,ac=new RegExp("[".concat(yr,"]")),eye="(?:["+tp+"]{1,3}\\.){3}["+tp+"]{1,3}",tye="["+yr+"](?:["+yr+"\\-_]{0,61}["+yr+"])?",t3=function(e){return"(?=("+tye+"))\\"+e},U1=function(e){return"(?:"+t3(e)+"(?:\\."+t3(e+1)+"){0,126}|"+eye+")"},nd=ac,eU=/(?: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|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,rye=new RegExp("[".concat(yr,"!#$%&'*+/=?^_`{|}~-]")),nye=new RegExp("^".concat(eU.source,"$")),r3=function(e){ms(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.localPartCharRegex=rye,r.strictTldRegex=nye,r}return t.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.localPartCharRegex,s=this.strictTldRegex,a=[],o=r.length,u=new id,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},l=0,f=0,h=u;l<o;){var p=r.charAt(l);switch(f){case 0:g(p);break;case 1:y(r.charAt(l-1),p);break;case 2:v(p);break;case 3:E(p);break;case 4:b(p);break;case 5:S(p);break;case 6:x(p);break;case 7:_(p);break;default:vC(f)}l++}return T(),a;function g(O){O==="m"?A(1):i.test(O)&&A()}function y(O,M){O===":"?i.test(M)?(f=2,h=new id(mr(mr({},h),{hasMailtoPrefix:!0}))):C():c[O]===M||(i.test(M)?f=2:M==="."?f=3:M==="@"?f=4:C())}function v(O){O==="."?f=3:O==="@"?f=4:i.test(O)||C()}function E(O){O==="."||O==="@"?C():i.test(O)?f=2:C()}function b(O){nd.test(O)?f=5:C()}function S(O){O==="."?f=7:O==="-"?f=6:nd.test(O)||T()}function x(O){O==="-"||O==="."?T():nd.test(O)?f=5:T()}function _(O){O==="."||O==="-"?T():nd.test(O)?(f=5,h=new id(mr(mr({},h),{hasDomainDot:!0}))):T()}function A(O){O===void 0&&(O=2),f=O,h=new id({idx:l})}function C(){f=0,h=u}function T(){if(h.hasDomainDot){var O=r.slice(h.idx,l);/[-.]$/.test(O)&&(O=O.slice(0,-1));var M=h.hasMailtoPrefix?O.slice(7):O;k(M)&&a.push(new K5({tagBuilder:n,matchedText:O,offset:h.idx,email:M}))}C();function k(D){var P=D.split(".").pop()||"",H=P.toLowerCase(),X=s.test(H);return X}}},t}(Pu),id=function(){function e(t){t===void 0&&(t={}),this.idx=t.idx!==void 0?t.idx:-1,this.hasMailtoPrefix=!!t.hasMailtoPrefix,this.hasDomainDot=!!t.hasDomainDot}return e}(),iye=function(){function e(){}return e.isValid=function(t,r){return!(r&&!this.isValidUriScheme(r)||this.urlMatchDoesNotHaveProtocolOrDot(t,r)||this.urlMatchDoesNotHaveAtLeastOneWordChar(t,r)&&!this.isValidIpAddress(t)||this.containsMultipleDots(t))},e.isValidIpAddress=function(t){var r=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source),n=t.match(r);return n!==null},e.containsMultipleDots=function(t){var r=t;return this.hasFullProtocolRegex.test(t)&&(r=t.split("://")[1]),r.split("/")[0].indexOf("..")>-1},e.isValidUriScheme=function(t){var r=t.match(this.uriSchemeRegex),n=r&&r[0].toLowerCase();return n!=="javascript:"&&n!=="vbscript:"},e.urlMatchDoesNotHaveProtocolOrDot=function(t,r){return!!t&&(!r||!this.hasFullProtocolRegex.test(r))&&t.indexOf(".")===-1},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(t,r){return t&&r?!this.hasFullProtocolRegex.test(r)&&!this.hasWordCharAfterProtocolRegex.test(t):!1},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=new RegExp(":[^\\s]*?["+Z5+"]"),e.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]*)?\/?$/,e}(),sye=function(){var e=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,t=/(?:www\.)/,r=new RegExp("[/?#](?:["+yr+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+yr+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",e.source,U1(2),")","|","(","(//)?",t.source,U1(6),")","|","(","(//)?",U1(10)+"\\.",eU.source,"(?![-"+Qge+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")}(),aye=new RegExp("["+yr+"]"),n3=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=sye,n.wordCharRegExp=aye,n.stripPrefix=r.stripPrefix,n.stripTrailingSlash=r.stripTrailingSlash,n.decodePercentEncoding=r.decodePercentEncoding,n}return t.prototype.parseMatches=function(r){for(var n=this.matcherRegex,i=this.stripPrefix,s=this.stripTrailingSlash,a=this.decodePercentEncoding,o=this.tagBuilder,u=[],c,l=function(){var h=c[0],p=c[1],g=c[4],y=c[5],v=c[9],E=c.index,b=y||v,S=r.charAt(E-1);if(!iye.isValid(h,p)||E>0&&S==="@"||E>0&&b&&f.wordCharRegExp.test(S))return"continue";if(/\?$/.test(h)&&(h=h.substr(0,h.length-1)),f.matchHasUnbalancedClosingParen(h))h=h.substr(0,h.length-1);else{var x=f.matchHasInvalidCharAfterTld(h,p);x>-1&&(h=h.substr(0,x))}var _=["http://","https://"].find(function(O){return!!p&&p.indexOf(O)!==-1});if(_){var A=h.indexOf(_);h=h.substr(A),p=p.substr(A),E=E+A}var C=p?"scheme":g?"www":"tld",T=!!p;u.push(new X5({tagBuilder:o,matchedText:h,offset:E,urlMatchType:C,url:h,protocolUrlMatch:T,protocolRelativeMatch:!!b,stripPrefix:i,stripTrailingSlash:s,decodePercentEncoding:a}))},f=this;(c=n.exec(r))!==null;)l();return u},t.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},t.prototype.matchHasInvalidCharAfterTld=function(r,n){if(!r)return-1;var i=0;n&&(i=r.indexOf(":"),r=r.slice(i));var s=new RegExp("^((.?//)?[-."+yr+"]*[-"+yr+"]\\.[-"+yr+"]+)"),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)},t}(Pu),i3=new RegExp("[_".concat(yr,"]")),s3=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.serviceName=r.serviceName,n}return t.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.serviceName,s=[],a=r.length,o=0,u=-1,c=0;o<a;){var l=r.charAt(o);switch(c){case 0:f(l);break;case 1:h(l);break;case 2:p(l);break;case 3:g(l);break;default:vC(c)}o++}return y(),s;function f(v){v==="#"?(c=2,u=o):ac.test(v)&&(c=1)}function h(v){ac.test(v)||(c=0)}function p(v){i3.test(v)?c=3:ac.test(v)?c=1:c=0}function g(v){i3.test(v)||(y(),u=-1,ac.test(v)?c=1:c=0)}function y(){if(u>-1&&o-u<=140){var v=r.slice(u,o),E=new H5({tagBuilder:n,matchedText:v,offset:u,serviceName:i,hashtag:v.slice(1)});s.push(E)}}},t}(Pu),oye=["twitter","facebook","instagram","tiktok"],uye=/(?:(?:(?:(\+)?\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]+#?)*/,cye=/(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})/,lye=new RegExp("".concat(uye.source,"|").concat(cye.source),"g"),a3=function(e){ms(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.matcherRegex=lye,r}return t.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,""),c=!!(a[1]||a[2]),l=a.index==0?"":r.substr(a.index-1,1),f=r.substr(a.index+o.length,1),h=!l.match(/\d/)&&!f.match(/\d/);this.testMatch(a[3])&&this.testMatch(o)&&h&&s.push(new Y5({tagBuilder:i,matchedText:o,offset:a.index,number:u,plusSign:c}))}return s},t.prototype.testMatch=function(r){return Gge.test(r)},t}(Pu),fye=new RegExp("@[_".concat(yr,"]{1,50}(?![_").concat(yr,"])"),"g"),dye=new RegExp("@[_.".concat(yr,"]{1,30}(?![_").concat(yr,"])"),"g"),pye=new RegExp("@[-_.".concat(yr,"]{1,50}(?![-_").concat(yr,"])"),"g"),hye=new RegExp("@[_.".concat(yr,"]{1,23}[_").concat(yr,"](?![_").concat(yr,"])"),"g"),mye=new RegExp("[^"+yr+"]"),o3=function(e){ms(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:fye,instagram:dye,soundcloud:pye,tiktok:hye},n.nonWordCharRegex=mye,n.serviceName=r.serviceName,n}return t.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 c=u.index,l=r.charAt(c-1);if(c===0||s.test(l)){var f=u[0].replace(/\.+$/g,""),h=f.slice(1);o.push(new G5({tagBuilder:a,matchedText:f,offset:c,serviceName:n,mention:h}))}}return o},t}(Pu);function gye(e,t){for(var r=t.onOpenTag,n=t.onCloseTag,i=t.onText,s=t.onComment,a=t.onDoctype,o=new Gi,u=0,c=e.length,l=0,f=0,h=o;u<c;){var p=e.charAt(u);switch(l){case 0:g(p);break;case 1:y(p);break;case 2:E(p);break;case 3:v(p);break;case 4:b(p);break;case 5:S(p);break;case 6:x(p);break;case 7:_(p);break;case 8:A(p);break;case 9:C(p);break;case 10:T(p);break;case 11:O(p);break;case 12:M(p);break;case 13:k();break;case 14:D(p);break;case 15:P(p);break;case 16:H(p);break;case 17:X(p);break;case 18:V(p);break;case 19:G(p);break;case 20:Q(p);break;default:vC(l)}u++}f<u&&ee();function g(Y){Y==="<"&&B()}function y(Y){Y==="!"?l=13:Y==="/"?(l=2,h=new Gi(mr(mr({},h),{isClosing:!0}))):Y==="<"?B():L1.test(Y)?(l=3,h=new Gi(mr(mr({},h),{isOpening:!0}))):(l=0,h=o)}function v(Y){ka.test(Y)?(h=new Gi(mr(mr({},h),{name:ne()})),l=4):Y==="<"?B():Y==="/"?(h=new Gi(mr(mr({},h),{name:ne()})),l=12):Y===">"?(h=new Gi(mr(mr({},h),{name:ne()})),J()):!L1.test(Y)&&!Hge.test(Y)&&Y!==":"&&Z()}function E(Y){Y===">"?Z():L1.test(Y)?l=3:Z()}function b(Y){ka.test(Y)||(Y==="/"?l=12:Y===">"?J():Y==="<"?B():Y==="="||B1.test(Y)||Yge.test(Y)?Z():l=5)}function S(Y){ka.test(Y)?l=6:Y==="/"?l=12:Y==="="?l=7:Y===">"?J():Y==="<"?B():B1.test(Y)&&Z()}function x(Y){ka.test(Y)||(Y==="/"?l=12:Y==="="?l=7:Y===">"?J():Y==="<"?B():B1.test(Y)?Z():l=5)}function _(Y){ka.test(Y)||(Y==='"'?l=8:Y==="'"?l=9:/[>=`]/.test(Y)?Z():Y==="<"?B():l=10)}function A(Y){Y==='"'&&(l=11)}function C(Y){Y==="'"&&(l=11)}function T(Y){ka.test(Y)?l=4:Y===">"?J():Y==="<"&&B()}function O(Y){ka.test(Y)?l=4:Y==="/"?l=12:Y===">"?J():Y==="<"?B():(l=4,ae())}function M(Y){Y===">"?(h=new Gi(mr(mr({},h),{isClosing:!0})),J()):l=4}function k(Y){e.substr(u,2)==="--"?(u+=2,h=new Gi(mr(mr({},h),{type:"comment"})),l=14):e.substr(u,7).toUpperCase()==="DOCTYPE"?(u+=7,h=new Gi(mr(mr({},h),{type:"doctype"})),l=20):Z()}function D(Y){Y==="-"?l=15:Y===">"?Z():l=16}function P(Y){Y==="-"?l=18:Y===">"?Z():l=16}function H(Y){Y==="-"&&(l=17)}function X(Y){Y==="-"?l=18:l=16}function V(Y){Y===">"?J():Y==="!"?l=19:Y==="-"||(l=16)}function G(Y){Y==="-"?l=17:Y===">"?J():l=16}function Q(Y){Y===">"?J():Y==="<"&&B()}function Z(){l=0,h=o}function B(){l=1,h=new Gi({idx:u})}function J(){var Y=e.slice(f,h.idx);Y&&i(Y,f),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)),Z(),f=u+1}function ee(){var Y=e.slice(f,u);i(Y,f),f=u+1}function ne(){var Y=h.idx+(h.isClosing?2:1);return e.slice(Y,u).toLowerCase()}function ae(){u--}}var Gi=function(){function e(t){t===void 0&&(t={}),this.idx=t.idx!==void 0?t.idx:-1,this.type=t.type||"tag",this.name=t.name||"",this.isOpening=!!t.isOpening,this.isClosing=!!t.isClosing}return e}(),yye=function(){function e(t){t===void 0&&(t={}),this.version=e.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(t.urls),this.email=typeof t.email=="boolean"?t.email:this.email,this.phone=typeof t.phone=="boolean"?t.phone:this.phone,this.hashtag=t.hashtag||this.hashtag,this.mention=t.mention||this.mention,this.newWindow=typeof t.newWindow=="boolean"?t.newWindow:this.newWindow,this.stripPrefix=this.normalizeStripPrefixCfg(t.stripPrefix),this.stripTrailingSlash=typeof t.stripTrailingSlash=="boolean"?t.stripTrailingSlash:this.stripTrailingSlash,this.decodePercentEncoding=typeof t.decodePercentEncoding=="boolean"?t.decodePercentEncoding:this.decodePercentEncoding,this.sanitizeHtml=t.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&&oye.indexOf(n)===-1)throw new Error("invalid `hashtag` cfg '".concat(n,"' - see docs"));this.truncate=this.normalizeTruncateCfg(t.truncate),this.className=t.className||this.className,this.replaceFn=t.replaceFn||this.replaceFn,this.context=t.context||this}return e.link=function(t,r){var n=new e(r);return n.link(t)},e.parse=function(t,r){var n=new e(r);return n.parse(t)},e.prototype.normalizeUrlsCfg=function(t){return t==null&&(t=!0),typeof t=="boolean"?{schemeMatches:t,wwwMatches:t,tldMatches:t}:{schemeMatches:typeof t.schemeMatches=="boolean"?t.schemeMatches:!0,wwwMatches:typeof t.wwwMatches=="boolean"?t.wwwMatches:!0,tldMatches:typeof t.tldMatches=="boolean"?t.tldMatches:!0}},e.prototype.normalizeStripPrefixCfg=function(t){return t==null&&(t=!0),typeof t=="boolean"?{scheme:t,www:t}:{scheme:typeof t.scheme=="boolean"?t.scheme:!0,www:typeof t.www=="boolean"?t.www:!0}},e.prototype.normalizeTruncateCfg=function(t){return typeof t=="number"?{length:t,location:"end"}:Uge(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(t){var r=this,n=["a","style","script"],i=0,s=[];return gye(t,{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,c=zge(a,u),l=o;c.forEach(function(f,h){if(h%2===0){var p=r.parseText(f,l);s.push.apply(s,p)}l+=f.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},e.prototype.compactMatches=function(t){t.sort(function(u,c){return u.getOffset()-c.getOffset()});for(var r=0;r<t.length-1;){var n=t[r],i=n.getOffset(),s=n.getMatchedText().length,a=i+s;if(r+1<t.length){if(t[r+1].getOffset()===i){var o=t[r+1].getMatchedText().length>s?r:r+1;t.splice(o,1);continue}if(t[r+1].getOffset()<a){t.splice(r+1,1);continue}}r++}return t},e.prototype.removeUnwantedMatches=function(t){return this.hashtag||ja(t,function(r){return r.getType()==="hashtag"}),this.email||ja(t,function(r){return r.getType()==="email"}),this.phone||ja(t,function(r){return r.getType()==="phone"}),this.mention||ja(t,function(r){return r.getType()==="mention"}),this.urls.schemeMatches||ja(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="scheme"}),this.urls.wwwMatches||ja(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="www"}),this.urls.tldMatches||ja(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="tld"}),t},e.prototype.parseText=function(t,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(t),u=0,c=o.length;u<c;u++)o[u].setOffset(r+o[u].getOffset());i.push.apply(i,o)}return i},e.prototype.link=function(t){if(!t)return"";this.sanitizeHtml&&(t=t.replace(/</g,"&lt;").replace(/>/g,"&gt;"));for(var r=this.parse(t),n=[],i=0,s=0,a=r.length;s<a;s++){var o=r[s];n.push(t.substring(i,o.getOffset())),n.push(this.createMatchReturnVal(o)),i=o.getOffset()+o.getMatchedText().length}return n.push(t.substring(i)),n.join("")},e.prototype.createMatchReturnVal=function(t){var r;if(this.replaceFn&&(r=this.replaceFn.call(this.context,t)),typeof r=="string")return r;if(r===!1)return t.getMatchedText();if(r instanceof Fx)return r.toAnchorString();var n=t.buildTag();return n.toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var t=this.getTagBuilder(),r=[new s3({tagBuilder:t,serviceName:this.hashtag}),new r3({tagBuilder:t}),new a3({tagBuilder:t}),new o3({tagBuilder:t,serviceName:this.mention}),new n3({tagBuilder:t,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=r},e.prototype.getTagBuilder=function(){var t=this.tagBuilder;return t||(t=this.tagBuilder=new e3({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},e.version=Bge,e.AnchorTagBuilder=e3,e.HtmlTag=Fx,e.matcher={Email:r3,Hashtag:s3,Matcher:Pu,Mention:o3,Phone:a3,Url:n3},e.match={Email:K5,Hashtag:H5,Match:ku,Mention:G5,Phone:Y5,Url:X5},e}(),vye=/www|@|\:\/\//;function bye(e){return/^<a[>\s]/i.test(e)}function _ye(e){return/^<\/a\s*>/i.test(e)}function Eye(){var e=[],t=new yye({stripPrefix:!1,url:!0,email:!0,replaceFn:function(r){switch(r.getType()){case"url":e.push({text:r.matchedText,url:r.getUrl()});break;case"email":e.push({text:r.matchedText,url:"mailto:"+r.getEmail().replace(/^mailto:/i,"")});break}return!1}});return{links:e,autolinker:t}}function Sye(e){var t,r,n,i,s,a,o,u,c,l,f,h=e.tokens,p=null,g,y;for(r=0,n=h.length;r<n;r++)if(h[r].type==="inline")for(i=h[r].children,f=0,t=i.length-1;t>=0;t--){if(s=i[t],s.type==="link_close"){for(t--;i[t].level!==s.level&&i[t].type!=="link_open";)t--;continue}if(s.type==="htmltag"&&(bye(s.content)&&f>0&&f--,_ye(s.content)&&f++),!(f>0)&&s.type==="text"&&vye.test(s.content)){if(p||(p=Eye(),g=p.links,y=p.autolinker),a=s.content,g.length=0,y.link(a),!g.length)continue;for(o=[],l=s.level,u=0;u<g.length;u++)e.inline.validateLink(g[u].url)&&(c=a.indexOf(g[u].text),c&&o.push({type:"text",content:a.slice(0,c),level:l}),o.push({type:"link_open",href:g[u].url,title:"",level:l++}),o.push({type:"text",content:g[u].text,level:l}),o.push({type:"link_close",level:--l}),a=a.slice(c+g[u].text.length));a.length&&o.push({type:"text",content:a,level:l}),h[r].children=i=[].concat(i.slice(0,t),o,i.slice(t+1))}}}function wye(e){e.core.ruler.push("linkify",Sye)}/*! @license DOMPurify 3.2.4 | (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.4/LICENSE */const{entries:tU,setPrototypeOf:u3,isFrozen:xye,getPrototypeOf:Aye,getOwnPropertyDescriptor:Oye}=Object;let{freeze:_n,seal:di,create:rU}=Object,{apply:Bx,construct:Ux}=typeof Reflect<"u"&&Reflect;_n||(_n=function(t){return t});di||(di=function(t){return t});Bx||(Bx=function(t,r,n){return t.apply(r,n)});Ux||(Ux=function(t,r){return new t(...r)});const sd=En(Array.prototype.forEach),Cye=En(Array.prototype.lastIndexOf),c3=En(Array.prototype.pop),Wu=En(Array.prototype.push),Rye=En(Array.prototype.splice),Ed=En(String.prototype.toLowerCase),V1=En(String.prototype.toString),l3=En(String.prototype.match),Ju=En(String.prototype.replace),Tye=En(String.prototype.indexOf),Iye=En(String.prototype.trim),Oi=En(Object.prototype.hasOwnProperty),ln=En(RegExp.prototype.test),Ku=jye(TypeError);function En(e){return function(t){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return Bx(e,t,n)}}function jye(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ux(e,r)}}function Et(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Ed;u3&&u3(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const s=r(i);s!==i&&(xye(t)||(t[n]=s),i=s)}e[i]=!0}return e}function kye(e){for(let t=0;t<e.length;t++)Oi(e,t)||(e[t]=null);return e}function Ma(e){const t=rU(null);for(const[r,n]of tU(e))Oi(e,r)&&(Array.isArray(n)?t[r]=kye(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=Ma(n):t[r]=n);return t}function Hu(e,t){for(;e!==null;){const n=Oye(e,t);if(n){if(n.get)return En(n.get);if(typeof n.value=="function")return En(n.value)}e=Aye(e)}function r(){return null}return r}const f3=_n(["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"]),z1=_n(["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"]),W1=_n(["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"]),Pye=_n(["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"]),J1=_n(["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"]),Nye=_n(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),d3=_n(["#text"]),p3=_n(["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"]),K1=_n(["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"]),h3=_n(["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"]),ad=_n(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Mye=di(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Dye=di(/<%[\w\W]*|[\w\W]*%>/gm),qye=di(/\$\{[\w\W]*/gm),$ye=di(/^data-[\-\w.\u00B7-\uFFFF]+$/),Fye=di(/^aria-[\-\w]+$/),nU=di(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Lye=di(/^(?:\w+script|data):/i),Bye=di(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),iU=di(/^html$/i),Uye=di(/^[a-z][.\w]*(-[.\w]+)+$/i);var m3=Object.freeze({__proto__:null,ARIA_ATTR:Fye,ATTR_WHITESPACE:Bye,CUSTOM_ELEMENT:Uye,DATA_ATTR:$ye,DOCTYPE_NAME:iU,ERB_EXPR:Dye,IS_ALLOWED_URI:nU,IS_SCRIPT_OR_DATA:Lye,MUSTACHE_EXPR:Mye,TMPLIT_EXPR:qye});const Gu={element:1,text:3,progressingInstruction:7,comment:8,document:9},Vye=function(){return typeof window>"u"?null:window},zye=function(t,r){if(typeof t!="object"||typeof t.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 t.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},g3=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function sU(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Vye();const t=Ke=>sU(Ke);if(t.version="3.2.4",t.removed=[],!e||!e.document||e.document.nodeType!==Gu.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e;const n=r,i=n.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:o,Element:u,NodeFilter:c,NamedNodeMap:l=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:f,DOMParser:h,trustedTypes:p}=e,g=u.prototype,y=Hu(g,"cloneNode"),v=Hu(g,"remove"),E=Hu(g,"nextSibling"),b=Hu(g,"childNodes"),S=Hu(g,"parentNode");if(typeof a=="function"){const Ke=r.createElement("template");Ke.content&&Ke.content.ownerDocument&&(r=Ke.content.ownerDocument)}let x,_="";const{implementation:A,createNodeIterator:C,createDocumentFragment:T,getElementsByTagName:O}=r,{importNode:M}=n;let k=g3();t.isSupported=typeof tU=="function"&&typeof S=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:D,ERB_EXPR:P,TMPLIT_EXPR:H,DATA_ATTR:X,ARIA_ATTR:V,IS_SCRIPT_OR_DATA:G,ATTR_WHITESPACE:Q,CUSTOM_ELEMENT:Z}=m3;let{IS_ALLOWED_URI:B}=m3,J=null;const ee=Et({},[...f3,...z1,...W1,...J1,...d3]);let ne=null;const ae=Et({},[...p3,...K1,...h3,...ad]);let Y=Object.seal(rU(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}})),F=null,L=null,ue=!0,de=!0,Ae=!1,Ne=!0,ce=!1,Re=!0,ze=!1,he=!1,_e=!1,Se=!1,$=!1,R=!1,j=!0,U=!1;const re="user-content-";let ie=!0,fe=!1,Ie={},Fe=null;const Ge=Et({},["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 tt=null;const ct=Et({},["audio","video","img","source","image","track"]);let $n=null;const Ei=Et({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ar="http://www.w3.org/1998/Math/MathML",br="http://www.w3.org/2000/svg",cr="http://www.w3.org/1999/xhtml";let Pt=cr,Bs=!1,pr=null;const pe=Et({},[ar,br,cr],V1);let Ee=Et({},["mi","mo","mn","ms","mtext"]),Ce=Et({},["annotation-xml"]);const Ye=Et({},["title","style","font","a","script"]);let at=null;const mt=["application/xhtml+xml","text/html"],Lt="text/html";let Te=null,Le=null;const nt=r.createElement("form"),Xe=function(se){return se instanceof RegExp||se instanceof Function},Bt=function(){let se=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Le&&Le===se)){if((!se||typeof se!="object")&&(se={}),se=Ma(se),at=mt.indexOf(se.PARSER_MEDIA_TYPE)===-1?Lt:se.PARSER_MEDIA_TYPE,Te=at==="application/xhtml+xml"?V1:Ed,J=Oi(se,"ALLOWED_TAGS")?Et({},se.ALLOWED_TAGS,Te):ee,ne=Oi(se,"ALLOWED_ATTR")?Et({},se.ALLOWED_ATTR,Te):ae,pr=Oi(se,"ALLOWED_NAMESPACES")?Et({},se.ALLOWED_NAMESPACES,V1):pe,$n=Oi(se,"ADD_URI_SAFE_ATTR")?Et(Ma(Ei),se.ADD_URI_SAFE_ATTR,Te):Ei,tt=Oi(se,"ADD_DATA_URI_TAGS")?Et(Ma(ct),se.ADD_DATA_URI_TAGS,Te):ct,Fe=Oi(se,"FORBID_CONTENTS")?Et({},se.FORBID_CONTENTS,Te):Ge,F=Oi(se,"FORBID_TAGS")?Et({},se.FORBID_TAGS,Te):{},L=Oi(se,"FORBID_ATTR")?Et({},se.FORBID_ATTR,Te):{},Ie=Oi(se,"USE_PROFILES")?se.USE_PROFILES:!1,ue=se.ALLOW_ARIA_ATTR!==!1,de=se.ALLOW_DATA_ATTR!==!1,Ae=se.ALLOW_UNKNOWN_PROTOCOLS||!1,Ne=se.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ce=se.SAFE_FOR_TEMPLATES||!1,Re=se.SAFE_FOR_XML!==!1,ze=se.WHOLE_DOCUMENT||!1,Se=se.RETURN_DOM||!1,$=se.RETURN_DOM_FRAGMENT||!1,R=se.RETURN_TRUSTED_TYPE||!1,_e=se.FORCE_BODY||!1,j=se.SANITIZE_DOM!==!1,U=se.SANITIZE_NAMED_PROPS||!1,ie=se.KEEP_CONTENT!==!1,fe=se.IN_PLACE||!1,B=se.ALLOWED_URI_REGEXP||nU,Pt=se.NAMESPACE||cr,Ee=se.MATHML_TEXT_INTEGRATION_POINTS||Ee,Ce=se.HTML_INTEGRATION_POINTS||Ce,Y=se.CUSTOM_ELEMENT_HANDLING||{},se.CUSTOM_ELEMENT_HANDLING&&Xe(se.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Y.tagNameCheck=se.CUSTOM_ELEMENT_HANDLING.tagNameCheck),se.CUSTOM_ELEMENT_HANDLING&&Xe(se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Y.attributeNameCheck=se.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),se.CUSTOM_ELEMENT_HANDLING&&typeof se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Y.allowCustomizedBuiltInElements=se.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),ce&&(de=!1),$&&(Se=!0),Ie&&(J=Et({},d3),ne=[],Ie.html===!0&&(Et(J,f3),Et(ne,p3)),Ie.svg===!0&&(Et(J,z1),Et(ne,K1),Et(ne,ad)),Ie.svgFilters===!0&&(Et(J,W1),Et(ne,K1),Et(ne,ad)),Ie.mathMl===!0&&(Et(J,J1),Et(ne,h3),Et(ne,ad))),se.ADD_TAGS&&(J===ee&&(J=Ma(J)),Et(J,se.ADD_TAGS,Te)),se.ADD_ATTR&&(ne===ae&&(ne=Ma(ne)),Et(ne,se.ADD_ATTR,Te)),se.ADD_URI_SAFE_ATTR&&Et($n,se.ADD_URI_SAFE_ATTR,Te),se.FORBID_CONTENTS&&(Fe===Ge&&(Fe=Ma(Fe)),Et(Fe,se.FORBID_CONTENTS,Te)),ie&&(J["#text"]=!0),ze&&Et(J,["html","head","body"]),J.table&&(Et(J,["tbody"]),delete F.tbody),se.TRUSTED_TYPES_POLICY){if(typeof se.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ku('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof se.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ku('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=se.TRUSTED_TYPES_POLICY,_=x.createHTML("")}else x===void 0&&(x=zye(p,i)),x!==null&&typeof _=="string"&&(_=x.createHTML(""));_n&&_n(se),Le=se}},sn=Et({},[...z1,...W1,...Pye]),Us=Et({},[...J1,...Nye]),Vs=function(se){let be=S(se);(!be||!be.tagName)&&(be={namespaceURI:Pt,tagName:"template"});const Ve=Ed(se.tagName),lt=Ed(be.tagName);return pr[se.namespaceURI]?se.namespaceURI===br?be.namespaceURI===cr?Ve==="svg":be.namespaceURI===ar?Ve==="svg"&&(lt==="annotation-xml"||Ee[lt]):!!sn[Ve]:se.namespaceURI===ar?be.namespaceURI===cr?Ve==="math":be.namespaceURI===br?Ve==="math"&&Ce[lt]:!!Us[Ve]:se.namespaceURI===cr?be.namespaceURI===br&&!Ce[lt]||be.namespaceURI===ar&&!Ee[lt]?!1:!Us[Ve]&&(Ye[Ve]||!sn[Ve]):!!(at==="application/xhtml+xml"&&pr[se.namespaceURI]):!1},an=function(se){Wu(t.removed,{element:se});try{S(se).removeChild(se)}catch{v(se)}},zs=function(se,be){try{Wu(t.removed,{attribute:be.getAttributeNode(se),from:be})}catch{Wu(t.removed,{attribute:null,from:be})}if(be.removeAttribute(se),se==="is")if(Se||$)try{an(be)}catch{}else try{be.setAttribute(se,"")}catch{}},Ws=function(se){let be=null,Ve=null;if(_e)se="<remove></remove>"+se;else{const Wt=l3(se,/^[\r\n\t ]+/);Ve=Wt&&Wt[0]}at==="application/xhtml+xml"&&Pt===cr&&(se='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+se+"</body></html>");const lt=x?x.createHTML(se):se;if(Pt===cr)try{be=new h().parseFromString(lt,at)}catch{}if(!be||!be.documentElement){be=A.createDocument(Pt,"template",null);try{be.documentElement.innerHTML=Bs?_:lt}catch{}}const tr=be.body||be.documentElement;return se&&Ve&&tr.insertBefore(r.createTextNode(Ve),tr.childNodes[0]||null),Pt===cr?O.call(be,ze?"html":"body")[0]:ze?be.documentElement:tr},Js=function(se){return C.call(se.ownerDocument||se,se,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},vs=function(se){return se instanceof f&&(typeof se.nodeName!="string"||typeof se.textContent!="string"||typeof se.removeChild!="function"||!(se.attributes instanceof l)||typeof se.removeAttribute!="function"||typeof se.setAttribute!="function"||typeof se.namespaceURI!="string"||typeof se.insertBefore!="function"||typeof se.hasChildNodes!="function")},on=function(se){return typeof o=="function"&&se instanceof o};function Fn(Ke,se,be){sd(Ke,Ve=>{Ve.call(t,se,be,Le)})}const Ks=function(se){let be=null;if(Fn(k.beforeSanitizeElements,se,null),vs(se))return an(se),!0;const Ve=Te(se.nodeName);if(Fn(k.uponSanitizeElement,se,{tagName:Ve,allowedTags:J}),se.hasChildNodes()&&!on(se.firstElementChild)&&ln(/<[/\w]/g,se.innerHTML)&&ln(/<[/\w]/g,se.textContent)||se.nodeType===Gu.progressingInstruction||Re&&se.nodeType===Gu.comment&&ln(/<[/\w]/g,se.data))return an(se),!0;if(!J[Ve]||F[Ve]){if(!F[Ve]&&Vi(Ve)&&(Y.tagNameCheck instanceof RegExp&&ln(Y.tagNameCheck,Ve)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Ve)))return!1;if(ie&&!Fe[Ve]){const lt=S(se)||se.parentNode,tr=b(se)||se.childNodes;if(tr&&lt){const Wt=tr.length;for(let Yt=Wt-1;Yt>=0;--Yt){const Zr=y(tr[Yt],!0);Zr.__removalCount=(se.__removalCount||0)+1,lt.insertBefore(Zr,E(se))}}}return an(se),!0}return se instanceof u&&!Vs(se)||(Ve==="noscript"||Ve==="noembed"||Ve==="noframes")&&ln(/<\/no(script|embed|frames)/i,se.innerHTML)?(an(se),!0):(ce&&se.nodeType===Gu.text&&(be=se.textContent,sd([D,P,H],lt=>{be=Ju(be,lt," ")}),se.textContent!==be&&(Wu(t.removed,{element:se.cloneNode()}),se.textContent=be)),Fn(k.afterSanitizeElements,se,null),!1)},Hs=function(se,be,Ve){if(j&&(be==="id"||be==="name")&&(Ve in r||Ve in nt))return!1;if(!(de&&!L[be]&&ln(X,be))){if(!(ue&&ln(V,be))){if(!ne[be]||L[be]){if(!(Vi(se)&&(Y.tagNameCheck instanceof RegExp&&ln(Y.tagNameCheck,se)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(se))&&(Y.attributeNameCheck instanceof RegExp&&ln(Y.attributeNameCheck,be)||Y.attributeNameCheck instanceof Function&&Y.attributeNameCheck(be))||be==="is"&&Y.allowCustomizedBuiltInElements&&(Y.tagNameCheck instanceof RegExp&&ln(Y.tagNameCheck,Ve)||Y.tagNameCheck instanceof Function&&Y.tagNameCheck(Ve))))return!1}else if(!$n[be]){if(!ln(B,Ju(Ve,Q,""))){if(!((be==="src"||be==="xlink:href"||be==="href")&&se!=="script"&&Tye(Ve,"data:")===0&&tt[se])){if(!(Ae&&!ln(G,Ju(Ve,Q,"")))){if(Ve)return!1}}}}}}return!0},Vi=function(se){return se!=="annotation-xml"&&l3(se,Z)},kr=function(se){Fn(k.beforeSanitizeAttributes,se,null);const{attributes:be}=se;if(!be||vs(se))return;const Ve={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ne,forceKeepAttr:void 0};let lt=be.length;for(;lt--;){const tr=be[lt],{name:Wt,namespaceURI:Yt,value:Zr}=tr,On=Te(Wt);let xr=Wt==="value"?Zr:Iye(Zr);if(Ve.attrName=On,Ve.attrValue=xr,Ve.keepAttr=!0,Ve.forceKeepAttr=void 0,Fn(k.uponSanitizeAttribute,se,Ve),xr=Ve.attrValue,U&&(On==="id"||On==="name")&&(zs(Wt,se),xr=re+xr),Re&&ln(/((--!?|])>)|<\/(style|title)/i,xr)){zs(Wt,se);continue}if(Ve.forceKeepAttr||(zs(Wt,se),!Ve.keepAttr))continue;if(!Ne&&ln(/\/>/i,xr)){zs(Wt,se);continue}ce&&sd([D,P,H],Oe=>{xr=Ju(xr,Oe," ")});const Gs=Te(se.nodeName);if(Hs(Gs,On,xr)){if(x&&typeof p=="object"&&typeof p.getAttributeType=="function"&&!Yt)switch(p.getAttributeType(Gs,On)){case"TrustedHTML":{xr=x.createHTML(xr);break}case"TrustedScriptURL":{xr=x.createScriptURL(xr);break}}try{Yt?se.setAttributeNS(Yt,Wt,xr):se.setAttribute(Wt,xr),vs(se)?an(se):c3(t.removed)}catch{}}}Fn(k.afterSanitizeAttributes,se,null)},vt=function Ke(se){let be=null;const Ve=Js(se);for(Fn(k.beforeSanitizeShadowDOM,se,null);be=Ve.nextNode();)Fn(k.uponSanitizeShadowNode,be,null),Ks(be),kr(be),be.content instanceof s&&Ke(be.content);Fn(k.afterSanitizeShadowDOM,se,null)};return t.sanitize=function(Ke){let se=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},be=null,Ve=null,lt=null,tr=null;if(Bs=!Ke,Bs&&(Ke="<!-->"),typeof Ke!="string"&&!on(Ke))if(typeof Ke.toString=="function"){if(Ke=Ke.toString(),typeof Ke!="string")throw Ku("dirty is not a string, aborting")}else throw Ku("toString is not a function");if(!t.isSupported)return Ke;if(he||Bt(se),t.removed=[],typeof Ke=="string"&&(fe=!1),fe){if(Ke.nodeName){const Zr=Te(Ke.nodeName);if(!J[Zr]||F[Zr])throw Ku("root node is forbidden and cannot be sanitized in-place")}}else if(Ke instanceof o)be=Ws("<!---->"),Ve=be.ownerDocument.importNode(Ke,!0),Ve.nodeType===Gu.element&&Ve.nodeName==="BODY"||Ve.nodeName==="HTML"?be=Ve:be.appendChild(Ve);else{if(!Se&&!ce&&!ze&&Ke.indexOf("<")===-1)return x&&R?x.createHTML(Ke):Ke;if(be=Ws(Ke),!be)return Se?null:R?_:""}be&&_e&&an(be.firstChild);const Wt=Js(fe?Ke:be);for(;lt=Wt.nextNode();)Ks(lt),kr(lt),lt.content instanceof s&&vt(lt.content);if(fe)return Ke;if(Se){if($)for(tr=T.call(be.ownerDocument);be.firstChild;)tr.appendChild(be.firstChild);else tr=be;return(ne.shadowroot||ne.shadowrootmode)&&(tr=M.call(n,tr,!0)),tr}let Yt=ze?be.outerHTML:be.innerHTML;return ze&&J["!doctype"]&&be.ownerDocument&&be.ownerDocument.doctype&&be.ownerDocument.doctype.name&&ln(iU,be.ownerDocument.doctype.name)&&(Yt="<!DOCTYPE "+be.ownerDocument.doctype.name+`>
280
+ `+Yt),ce&&sd([D,P,H],Zr=>{Yt=Ju(Yt,Zr," ")}),x&&R?x.createHTML(Yt):Yt},t.setConfig=function(){let Ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Bt(Ke),he=!0},t.clearConfig=function(){Le=null,he=!1},t.isValidAttribute=function(Ke,se,be){Le||Bt({});const Ve=Te(Ke),lt=Te(se);return Hs(Ve,lt,be)},t.addHook=function(Ke,se){typeof se=="function"&&Wu(k[Ke],se)},t.removeHook=function(Ke,se){if(se!==void 0){const be=Cye(k[Ke],se);return be===-1?void 0:Rye(k[Ke],be,1)[0]}return c3(k[Ke])},t.removeHooks=function(Ke){k[Ke]=[]},t.removeAllHooks=function(){k=g3()},t}var Wye=sU(),H1,y3;function Jye(){if(y3)return H1;y3=1;var e=ks(),t=/[\\^$.*+?()[\]{}|]/g,r=RegExp(t.source);function n(i){return i=e(i),i&&r.test(i)?i.replace(t,"\\$&"):i}return H1=n,H1}var Kye=Jye();const Hye=Ue.getDefaultExportFromCjs(Kye);var Gye=Qp();const Yye=Ue.getDefaultExportFromCjs(Gye);var G1,v3;function Xye(){if(v3)return G1;v3=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return G1=r,G1}var Y1,b3;function Zye(){if(b3)return Y1;b3=1;var e=Xye(),t=QL();function r(n,i){return n!=null&&t(n,i,e)}return Y1=r,Y1}var Qye=Zye();const eve=Ue.getDefaultExportFromCjs(Qye);var tve=S4();const rve=Ue.getDefaultExportFromCjs(tve);/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */var nve={7:function(e){var t,r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(E,b,S){return Function.prototype.apply.call(E,b,S)};t=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)}e.exports=s,e.exports.once=function(E,b){return new Promise(function(S,x){function _(C){E.removeListener(b,A),x(C)}function A(){typeof E.removeListener=="function"&&E.removeListener("error",_),S([].slice.call(arguments))}y(E,b,A,{once:!0}),b!=="error"&&function(T,O,M){typeof T.on=="function"&&y(T,"error",O,M)}(E,_,{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 c(v,E,b,S){var x,_,A;if(o(b),(_=v._events)===void 0?(_=v._events=Object.create(null),v._eventsCount=0):(_.newListener!==void 0&&(v.emit("newListener",E,b.listener?b.listener:b),_=v._events),A=_[E]),A===void 0)A=_[E]=b,++v._eventsCount;else if(typeof A=="function"?A=_[E]=S?[b,A]:[A,b]:S?A.unshift(b):A.push(b),(x=u(v))>0&&A.length>x&&!A.warned){A.warned=!0;var C=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(E)+" listeners added. Use emitter.setMaxListeners() to increase limit");C.name="MaxListenersExceededWarning",C.emitter=v,C.type=E,C.count=A.length,function(O){console&&console.warn&&console.warn(O)}(C)}return v}function l(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function f(v,E,b){var S={fired:!1,wrapFn:void 0,target:v,type:E,listener:b},x=l.bind(S);return x.listener=b,S.wrapFn=x,x}function h(v,E,b){var S=v._events;if(S===void 0)return[];var x=S[E];return x===void 0?[]:typeof x=="function"?b?[x.listener||x]:[x]:b?function(A){for(var C=new Array(A.length),T=0;T<C.length;++T)C[T]=A[T].listener||A[T];return C}(x):g(x,x.length)}function p(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),S=0;S<E;++S)b[S]=v[S];return b}function y(v,E,b,S){if(typeof v.on=="function")S.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 x(_){S.once&&v.removeEventListener(E,x),b(_)})}}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=[],S=1;S<arguments.length;S++)b.push(arguments[S]);var x=E==="error",_=this._events;if(_!==void 0)x=x&&_.error===void 0;else if(!x)return!1;if(x){var A;if(b.length>0&&(A=b[0]),A instanceof Error)throw A;var C=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw C.context=A,C}var T=_[E];if(T===void 0)return!1;if(typeof T=="function")n(T,this,b);else{var O=T.length,M=g(T,O);for(S=0;S<O;++S)n(M[S],this,b)}return!0},s.prototype.addListener=function(E,b){return c(this,E,b,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(E,b){return c(this,E,b,!0)},s.prototype.once=function(E,b){return o(b),this.on(E,f(this,E,b)),this},s.prototype.prependOnceListener=function(E,b){return o(b),this.prependListener(E,f(this,E,b)),this},s.prototype.removeListener=function(E,b){var S,x,_,A,C;if(o(b),(x=this._events)===void 0)return this;if((S=x[E])===void 0)return this;if(S===b||S.listener===b)--this._eventsCount==0?this._events=Object.create(null):(delete x[E],x.removeListener&&this.emit("removeListener",E,S.listener||b));else if(typeof S!="function"){for(_=-1,A=S.length-1;A>=0;A--)if(S[A]===b||S[A].listener===b){C=S[A].listener,_=A;break}if(_<0)return this;_===0?S.shift():function(O,M){for(;M+1<O.length;M++)O[M]=O[M+1];O.pop()}(S,_),S.length===1&&(x[E]=S[0]),x.removeListener!==void 0&&this.emit("removeListener",E,C||b)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(E){var b,S,x;if((S=this._events)===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[E]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete S[E]),this;if(arguments.length===0){var _,A=Object.keys(S);for(x=0;x<A.length;++x)(_=A[x])!=="removeListener"&&this.removeAllListeners(_);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(b=S[E])=="function")this.removeListener(E,b);else if(b!==void 0)for(x=b.length-1;x>=0;x--)this.removeListener(E,b[x]);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):p.call(v,E)},s.prototype.listenerCount=p,s.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},48:function(e){var t={};function r(i,s,a){a||(a=Error);var o=function(u){function c(l,f,h){return u.call(this,function(g,y,v){return typeof s=="string"?s:s(g,y,v)}(l,f,h))||this}return function(f,h){f.prototype=Object.create(h.prototype),f.prototype.constructor=f,f.__proto__=h}(c,u),c}(a);o.prototype.name=a.name,o.prototype.code=i,t[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(f,h,p){return f.substr(0,h.length)===h}(s,"not ")?(o="must not be",s=s.replace(/^not /,"")):o="must be",function(f,h,p){return(p===void 0||p>f.length)&&(p=f.length),f.substring(p-h.length,p)===h}(i," argument"))u="The ".concat(i," ").concat(o," ").concat(n(s,"type"));else{var c=function(f,h,p){return typeof p!="number"&&(p=0),!(p+h.length>f.length)&&f.indexOf(h,p)!==-1}(i,".")?"property":"argument";u='The "'.concat(i,'" ').concat(c," ").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"),e.exports.F=t},107:function(e,t,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 c(y,v,E){return E^y&(v^E)}function l(y,v,E){return y&v|E&(y|v)}function f(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 p(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,S=0|this._c,x=0|this._d,_=0|this._e,A=0|this._f,C=0|this._g,T=0|this._h,O=0;O<16;++O)v[O]=y.readInt32BE(4*O);for(;O<64;++O)v[O]=g(v[O-2])+v[O-7]+p(v[O-15])+v[O-16]|0;for(var M=0;M<64;++M){var k=T+h(_)+c(_,A,C)+a[M]+v[M]|0,D=f(E)+l(E,b,S)|0;T=C,C=A,A=_,_=x+k|0,x=S,S=b,b=E,E=k+D|0}this._a=E+this._a|0,this._b=b+this._b|0,this._c=S+this._c|0,this._d=x+this._d|0,this._e=_+this._e|0,this._f=A+this._f|0,this._g=C+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},e.exports=u},123:function(e,t,r){var n=r(606),i=r(499),s=r(310).Stream;function a(u,c,l){var f,h=function(S,x){return new Array(x||0).join(S||"")}(c,l=l||0),p=u;if(typeof u=="object"&&(p=u[f=Object.keys(u)[0]])&&p._elem)return p._elem.name=f,p._elem.icount=l,p._elem.indent=c,p._elem.indents=h,p._elem.interrupt=p,p._elem;var g,y=[],v=[];function E(b){Object.keys(b).forEach(function(S){y.push(function(_,A){return _+'="'+i(A)+'"'}(S,b[S]))})}switch(typeof p){case"object":if(p===null)break;p._attr&&E(p._attr),p._cdata&&v.push(("<![CDATA["+p._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),p.forEach&&(g=!1,v.push(""),p.forEach(function(b){typeof b=="object"?Object.keys(b)[0]=="_attr"?E(b._attr):v.push(a(b,c,l+1)):(v.pop(),g=!0,v.push(i(b)))}),g||v.push(""));break;default:v.push(i(p))}return{name:f,interrupt:!1,attributes:y,content:v,icount:l,indents:h,indent:c}}function o(u,c,l){if(typeof c!="object")return u(!1,c);var f=c.interrupt?1:c.content.length;function h(){for(;c.content.length;){var g=c.content.shift();if(g!==void 0){if(p(g))return;o(u,g)}}u(!1,(f>1?c.indents:"")+(c.name?"</"+c.name+">":"")+(c.indent&&!l?`
281
+ `:"")),l&&l()}function p(g){return!!g.interrupt&&(g.interrupt.append=u,g.interrupt.end=h,g.interrupt=!1,u(!0),!0)}if(u(!1,c.indents+(c.name?"<"+c.name:"")+(c.attributes.length?" "+c.attributes.join(" "):"")+(f?c.name?">":"":c.name?"/>":"")+(c.indent&&f>1?`
282
+ `:"")),!f)return u(!1,c.indent?`
283
+ `:"");p(c)||h()}e.exports=function(c,l){typeof l!="object"&&(l={indent:l});var f=l.stream?new s:null,h="",p=!1,g=l.indent?l.indent===!0?" ":l.indent:"",y=!0;function v(x){y?n.nextTick(x):x()}function E(x,_){if(_!==void 0&&(h+=_),x&&!p&&(f=f||new s,p=!0),x&&p){var A=h;v(function(){f.emit("data",A)}),h=""}}function b(x,_){o(E,a(x,g,g?1:0),_)}function S(){if(f){var x=h;v(function(){f.emit("data",x),f.emit("end"),f.readable=!1,f.emit("close")})}}return v(function(){y=!1}),l.declaration&&function(_){var A={version:"1.0",encoding:_.encoding||"UTF-8"};_.standalone&&(A.standalone=_.standalone),b({"?xml":{_attr:A}}),h=h.replace("/>","?>")}(l.declaration),c&&c.forEach?c.forEach(function(x,_){var A;_+1===c.length&&(A=S),b(x,A)}):b(c,S),f?(f.readable=!0,f):h},e.exports.element=e.exports.Element=function(){var c={_elem:a(Array.prototype.slice.call(arguments)),push:function(l){if(!this.append)throw new Error("not assigned to a parent!");var f=this,h=this._elem.indent;o(this.append,a(l,h,this._elem.icount+(h?1:0)),function(){f.append(!0)})},close:function(l){l!==void 0&&this.push(l),this.end&&this.end()}};return c}},141:function(e,t,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(x){if(!x)return"utf8";for(var _;;)switch(x){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return x;default:if(_)return;x=(""+x).toLowerCase(),_=!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=c,y=4;break;case"utf8":this.fillLast=o,y=4;break;case"base64":this.text=l,this.end=f,y=3;break;default:return this.write=h,void(this.end=p)}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,S,x){if((192&S[0])!=128)return b.lastNeed=0,"�";if(b.lastNeed>1&&S.length>1){if((192&S[1])!=128)return b.lastNeed=1,"�";if(b.lastNeed>2&&S.length>2&&(192&S[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 c(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 l(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 f(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 p(g){return g&&g.length?this.write(g):""}t.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(x,_,A){var C=_.length-1;if(C<A)return 0;var T=a(_[C]);return T>=0?(T>0&&(x.lastNeed=T-1),T):--C<A||T===-2?0:(T=a(_[C]),T>=0?(T>0&&(x.lastNeed=T-2),T):--C<A||T===-2?0:(T=a(_[C]),T>=0?(T>0&&(T===2?T=0:x.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(e){e.exports=function(){throw new Error("Readable.from is not available in the browser")}},209:function(e,t,r){var n=r(606),i=65536,s=4294967295,a=r(861).Buffer,o=r.g.crypto||r.g.msCrypto;o&&o.getRandomValues?e.exports=function(c,l){if(c>s)throw new RangeError("requested too many random bytes");var f=a.allocUnsafe(c);if(c>0)if(c>i)for(var h=0;h<c;h+=i)o.getRandomValues(f.slice(h,h+i));else o.getRandomValues(f);return typeof l=="function"?n.nextTick(function(){l(null,f)}):f}:e.exports=function(){throw new Error(`Secure random number generation is not supported by this browser.
284
+ Use Chrome, Firefox or Internet Explorer 11`)}},238:function(e,t,r){var n=r(48).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function s(a,o,u){if(typeof o=="function")return s(a,null,o);o||(o={}),u=function(x){var _=!1;return function(){if(!_){_=!0;for(var A=arguments.length,C=new Array(A),T=0;T<A;T++)C[T]=arguments[T];x.apply(this,C)}}}(u||i);var c=o.readable||o.readable!==!1&&a.readable,l=o.writable||o.writable!==!1&&a.writable,f=function(){a.writable||p()},h=a._writableState&&a._writableState.finished,p=function(){l=!1,h=!0,c||u.call(a)},g=a._readableState&&a._readableState.endEmitted,y=function(){c=!1,g=!0,l||u.call(a)},v=function(x){u.call(a,x)},E=function(){var x;return c&&!g?(a._readableState&&a._readableState.ended||(x=new n),u.call(a,x)):l&&!h?(a._writableState&&a._writableState.ended||(x=new n),u.call(a,x)):void 0},b=function(){a.req.on("finish",p)};return function(x){return x.setHeader&&typeof x.abort=="function"}(a)?(a.on("complete",p),a.on("abort",E),a.req?b():a.on("request",b)):l&&!a._writableState&&(a.on("end",f),a.on("close",f)),a.on("end",y),a.on("finish",p),o.error!==!1&&a.on("error",v),a.on("close",E),function(){a.removeListener("complete",p),a.removeListener("abort",E),a.removeListener("request",b),a.req&&a.req.removeListener("finish",p),a.removeListener("end",f),a.removeListener("close",f),a.removeListener("finish",p),a.removeListener("end",y),a.removeListener("error",v),a.removeListener("close",E)}}},287:function(e,t,r){const n=r(987),i=r(362),s=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=function(R){return+R!=R&&(R=0),u.alloc(+R)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function o($){if($>a)throw new RangeError('The value "'+$+'" is invalid for option "size"');const R=new Uint8Array($);return Object.setPrototypeOf(R,u.prototype),R}function u($,R,j){if(typeof $=="number"){if(typeof R=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f($)}return c($,R,j)}function c($,R,j){if(typeof $=="string")return function(fe,Ie){if(typeof Ie=="string"&&Ie!==""||(Ie="utf8"),!u.isEncoding(Ie))throw new TypeError("Unknown encoding: "+Ie);const Fe=0|y(fe,Ie);let Ge=o(Fe);const tt=Ge.write(fe,Ie);return tt!==Fe&&(Ge=Ge.slice(0,tt)),Ge}($,R);if(ArrayBuffer.isView($))return function(fe){if(Re(fe,Uint8Array)){const Ie=new Uint8Array(fe);return p(Ie.buffer,Ie.byteOffset,Ie.byteLength)}return h(fe)}($);if($==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $);if(Re($,ArrayBuffer)||$&&Re($.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Re($,SharedArrayBuffer)||$&&Re($.buffer,SharedArrayBuffer)))return p($,R,j);if(typeof $=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const U=$.valueOf&&$.valueOf();if(U!=null&&U!==$)return u.from(U,R,j);const re=function(fe){if(u.isBuffer(fe)){const Ie=0|g(fe.length),Fe=o(Ie);return Fe.length===0||fe.copy(Fe,0,0,Ie),Fe}if(fe.length!==void 0)return typeof fe.length!="number"||ze(fe.length)?o(0):h(fe);if(fe.type==="Buffer"&&Array.isArray(fe.data))return h(fe.data)}($);if(re)return re;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]=="function")return u.from($[Symbol.toPrimitive]("string"),R,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}function l($){if(typeof $!="number")throw new TypeError('"size" argument must be of type number');if($<0)throw new RangeError('The value "'+$+'" is invalid for option "size"')}function f($){return l($),o($<0?0:0|g($))}function h($){const R=$.length<0?0:0|g($.length),j=o(R);for(let U=0;U<R;U+=1)j[U]=255&$[U];return j}function p($,R,j){if(R<0||$.byteLength<R)throw new RangeError('"offset" is outside of buffer bounds');if($.byteLength<R+(j||0))throw new RangeError('"length" is outside of buffer bounds');let U;return U=R===void 0&&j===void 0?new Uint8Array($):j===void 0?new Uint8Array($,R):new Uint8Array($,R,j),Object.setPrototypeOf(U,u.prototype),U}function g($){if($>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|$}function y($,R){if(u.isBuffer($))return $.length;if(ArrayBuffer.isView($)||Re($,ArrayBuffer))return $.byteLength;if(typeof $!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof $);const j=$.length,U=arguments.length>2&&arguments[2]===!0;if(!U&&j===0)return 0;let re=!1;for(;;)switch(R){case"ascii":case"latin1":case"binary":return j;case"utf8":case"utf-8":return Ae($).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*j;case"hex":return j>>>1;case"base64":return Ne($).length;default:if(re)return U?-1:Ae($).length;R=(""+R).toLowerCase(),re=!0}}function v($,R,j){let U=!1;if((R===void 0||R<0)&&(R=0),R>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0)<=(R>>>=0))return"";for($||($="utf8");;)switch($){case"hex":return H(this,R,j);case"utf8":case"utf-8":return M(this,R,j);case"ascii":return D(this,R,j);case"latin1":case"binary":return P(this,R,j);case"base64":return O(this,R,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return X(this,R,j);default:if(U)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),U=!0}}function E($,R,j){const U=$[R];$[R]=$[j],$[j]=U}function b($,R,j,U,re){if($.length===0)return-1;if(typeof j=="string"?(U=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),ze(j=+j)&&(j=re?0:$.length-1),j<0&&(j=$.length+j),j>=$.length){if(re)return-1;j=$.length-1}else if(j<0){if(!re)return-1;j=0}if(typeof R=="string"&&(R=u.from(R,U)),u.isBuffer(R))return R.length===0?-1:S($,R,j,U,re);if(typeof R=="number")return R&=255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call($,R,j):Uint8Array.prototype.lastIndexOf.call($,R,j):S($,[R],j,U,re);throw new TypeError("val must be string, number or Buffer")}function S($,R,j,U,re){let ie,fe=1,Ie=$.length,Fe=R.length;if(U!==void 0&&((U=String(U).toLowerCase())==="ucs2"||U==="ucs-2"||U==="utf16le"||U==="utf-16le")){if($.length<2||R.length<2)return-1;fe=2,Ie/=2,Fe/=2,j/=2}function Ge(tt,ct){return fe===1?tt[ct]:tt.readUInt16BE(ct*fe)}if(re){let tt=-1;for(ie=j;ie<Ie;ie++)if(Ge($,ie)===Ge(R,tt===-1?0:ie-tt)){if(tt===-1&&(tt=ie),ie-tt+1===Fe)return tt*fe}else tt!==-1&&(ie-=ie-tt),tt=-1}else for(j+Fe>Ie&&(j=Ie-Fe),ie=j;ie>=0;ie--){let tt=!0;for(let ct=0;ct<Fe;ct++)if(Ge($,ie+ct)!==Ge(R,ct)){tt=!1;break}if(tt)return ie}return-1}function x($,R,j,U){j=Number(j)||0;const re=$.length-j;U?(U=Number(U))>re&&(U=re):U=re;const ie=R.length;let fe;for(U>ie/2&&(U=ie/2),fe=0;fe<U;++fe){const Ie=parseInt(R.substr(2*fe,2),16);if(ze(Ie))return fe;$[j+fe]=Ie}return fe}function _($,R,j,U){return ce(Ae(R,$.length-j),$,j,U)}function A($,R,j,U){return ce(function(ie){const fe=[];for(let Ie=0;Ie<ie.length;++Ie)fe.push(255&ie.charCodeAt(Ie));return fe}(R),$,j,U)}function C($,R,j,U){return ce(Ne(R),$,j,U)}function T($,R,j,U){return ce(function(ie,fe){let Ie,Fe,Ge;const tt=[];for(let ct=0;ct<ie.length&&!((fe-=2)<0);++ct)Ie=ie.charCodeAt(ct),Fe=Ie>>8,Ge=Ie%256,tt.push(Ge),tt.push(Fe);return tt}(R,$.length-j),$,j,U)}function O($,R,j){return R===0&&j===$.length?n.fromByteArray($):n.fromByteArray($.slice(R,j))}function M($,R,j){j=Math.min($.length,j);const U=[];let re=R;for(;re<j;){const ie=$[re];let fe=null,Ie=ie>239?4:ie>223?3:ie>191?2:1;if(re+Ie<=j){let Fe,Ge,tt,ct;switch(Ie){case 1:ie<128&&(fe=ie);break;case 2:Fe=$[re+1],(192&Fe)==128&&(ct=(31&ie)<<6|63&Fe,ct>127&&(fe=ct));break;case 3:Fe=$[re+1],Ge=$[re+2],(192&Fe)==128&&(192&Ge)==128&&(ct=(15&ie)<<12|(63&Fe)<<6|63&Ge,ct>2047&&(ct<55296||ct>57343)&&(fe=ct));break;case 4:Fe=$[re+1],Ge=$[re+2],tt=$[re+3],(192&Fe)==128&&(192&Ge)==128&&(192&tt)==128&&(ct=(15&ie)<<18|(63&Fe)<<12|(63&Ge)<<6|63&tt,ct>65535&&ct<1114112&&(fe=ct))}}fe===null?(fe=65533,Ie=1):fe>65535&&(fe-=65536,U.push(fe>>>10&1023|55296),fe=56320|1023&fe),U.push(fe),re+=Ie}return function(fe){const Ie=fe.length;if(Ie<=k)return String.fromCharCode.apply(String,fe);let Fe="",Ge=0;for(;Ge<Ie;)Fe+=String.fromCharCode.apply(String,fe.slice(Ge,Ge+=k));return Fe}(U)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=function(){try{const R=new Uint8Array(1),j={foo:function(){return 42}};return Object.setPrototypeOf(j,Uint8Array.prototype),Object.setPrototypeOf(R,j),R.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($,R,j){return c($,R,j)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function($,R,j){return function(re,ie,fe){return l(re),re<=0?o(re):ie!==void 0?typeof fe=="string"?o(re).fill(ie,fe):o(re).fill(ie):o(re)}($,R,j)},u.allocUnsafe=function($){return f($)},u.allocUnsafeSlow=function($){return f($)},u.isBuffer=function(R){return R!=null&&R._isBuffer===!0&&R!==u.prototype},u.compare=function(R,j){if(Re(R,Uint8Array)&&(R=u.from(R,R.offset,R.byteLength)),Re(j,Uint8Array)&&(j=u.from(j,j.offset,j.byteLength)),!u.isBuffer(R)||!u.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(R===j)return 0;let U=R.length,re=j.length;for(let ie=0,fe=Math.min(U,re);ie<fe;++ie)if(R[ie]!==j[ie]){U=R[ie],re=j[ie];break}return U<re?-1:re<U?1:0},u.isEncoding=function(R){switch(String(R).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(R,j){if(!Array.isArray(R))throw new TypeError('"list" argument must be an Array of Buffers');if(R.length===0)return u.alloc(0);let U;if(j===void 0)for(j=0,U=0;U<R.length;++U)j+=R[U].length;const re=u.allocUnsafe(j);let ie=0;for(U=0;U<R.length;++U){let fe=R[U];if(Re(fe,Uint8Array))ie+fe.length>re.length?(u.isBuffer(fe)||(fe=u.from(fe)),fe.copy(re,ie)):Uint8Array.prototype.set.call(re,fe,ie);else{if(!u.isBuffer(fe))throw new TypeError('"list" argument must be an Array of Buffers');fe.copy(re,ie)}ie+=fe.length}return re},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const R=this.length;if(R%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<R;j+=2)E(this,j,j+1);return this},u.prototype.swap32=function(){const R=this.length;if(R%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<R;j+=4)E(this,j,j+3),E(this,j+1,j+2);return this},u.prototype.swap64=function(){const R=this.length;if(R%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<R;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 R=this.length;return R===0?"":arguments.length===0?M(this,0,R):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(R){if(!u.isBuffer(R))throw new TypeError("Argument must be a Buffer");return this===R||u.compare(this,R)===0},u.prototype.inspect=function(){let R="";const j=t.INSPECT_MAX_BYTES;return R=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(R+=" ... "),"<Buffer "+R+">"},s&&(u.prototype[s]=u.prototype.inspect),u.prototype.compare=function(R,j,U,re,ie){if(Re(R,Uint8Array)&&(R=u.from(R,R.offset,R.byteLength)),!u.isBuffer(R))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof R);if(j===void 0&&(j=0),U===void 0&&(U=R?R.length:0),re===void 0&&(re=0),ie===void 0&&(ie=this.length),j<0||U>R.length||re<0||ie>this.length)throw new RangeError("out of range index");if(re>=ie&&j>=U)return 0;if(re>=ie)return-1;if(j>=U)return 1;if(this===R)return 0;let fe=(ie>>>=0)-(re>>>=0),Ie=(U>>>=0)-(j>>>=0);const Fe=Math.min(fe,Ie),Ge=this.slice(re,ie),tt=R.slice(j,U);for(let ct=0;ct<Fe;++ct)if(Ge[ct]!==tt[ct]){fe=Ge[ct],Ie=tt[ct];break}return fe<Ie?-1:Ie<fe?1:0},u.prototype.includes=function(R,j,U){return this.indexOf(R,j,U)!==-1},u.prototype.indexOf=function(R,j,U){return b(this,R,j,U,!0)},u.prototype.lastIndexOf=function(R,j,U){return b(this,R,j,U,!1)},u.prototype.write=function(R,j,U,re){if(j===void 0)re="utf8",U=this.length,j=0;else if(U===void 0&&typeof j=="string")re=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,re===void 0&&(re="utf8")):(re=U,U=void 0)}const ie=this.length-j;if((U===void 0||U>ie)&&(U=ie),R.length>0&&(U<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");let fe=!1;for(;;)switch(re){case"hex":return x(this,R,j,U);case"utf8":case"utf-8":return _(this,R,j,U);case"ascii":case"latin1":case"binary":return A(this,R,j,U);case"base64":return C(this,R,j,U);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,R,j,U);default:if(fe)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),fe=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const k=4096;function D($,R,j){let U="";j=Math.min($.length,j);for(let re=R;re<j;++re)U+=String.fromCharCode(127&$[re]);return U}function P($,R,j){let U="";j=Math.min($.length,j);for(let re=R;re<j;++re)U+=String.fromCharCode($[re]);return U}function H($,R,j){const U=$.length;(!R||R<0)&&(R=0),(!j||j<0||j>U)&&(j=U);let re="";for(let ie=R;ie<j;++ie)re+=he[$[ie]];return re}function X($,R,j){const U=$.slice(R,j);let re="";for(let ie=0;ie<U.length-1;ie+=2)re+=String.fromCharCode(U[ie]+256*U[ie+1]);return re}function V($,R,j){if($%1!=0||$<0)throw new RangeError("offset is not uint");if($+R>j)throw new RangeError("Trying to access beyond buffer length")}function G($,R,j,U,re,ie){if(!u.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(R>re||R<ie)throw new RangeError('"value" argument is out of bounds');if(j+U>$.length)throw new RangeError("Index out of range")}function Q($,R,j,U,re){F(R,U,re,$,j,7);let ie=Number(R&BigInt(4294967295));$[j++]=ie,ie>>=8,$[j++]=ie,ie>>=8,$[j++]=ie,ie>>=8,$[j++]=ie;let fe=Number(R>>BigInt(32)&BigInt(4294967295));return $[j++]=fe,fe>>=8,$[j++]=fe,fe>>=8,$[j++]=fe,fe>>=8,$[j++]=fe,j}function Z($,R,j,U,re){F(R,U,re,$,j,7);let ie=Number(R&BigInt(4294967295));$[j+7]=ie,ie>>=8,$[j+6]=ie,ie>>=8,$[j+5]=ie,ie>>=8,$[j+4]=ie;let fe=Number(R>>BigInt(32)&BigInt(4294967295));return $[j+3]=fe,fe>>=8,$[j+2]=fe,fe>>=8,$[j+1]=fe,fe>>=8,$[j]=fe,j+8}function B($,R,j,U,re,ie){if(j+U>$.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function J($,R,j,U,re){return R=+R,j>>>=0,re||B($,0,j,4),i.write($,R,j,U,23,4),j+4}function ee($,R,j,U,re){return R=+R,j>>>=0,re||B($,0,j,8),i.write($,R,j,U,52,8),j+8}u.prototype.slice=function(R,j){const U=this.length;(R=~~R)<0?(R+=U)<0&&(R=0):R>U&&(R=U),(j=j===void 0?U:~~j)<0?(j+=U)<0&&(j=0):j>U&&(j=U),j<R&&(j=R);const re=this.subarray(R,j);return Object.setPrototypeOf(re,u.prototype),re},u.prototype.readUintLE=u.prototype.readUIntLE=function(R,j,U){R>>>=0,j>>>=0,U||V(R,j,this.length);let re=this[R],ie=1,fe=0;for(;++fe<j&&(ie*=256);)re+=this[R+fe]*ie;return re},u.prototype.readUintBE=u.prototype.readUIntBE=function(R,j,U){R>>>=0,j>>>=0,U||V(R,j,this.length);let re=this[R+--j],ie=1;for(;j>0&&(ie*=256);)re+=this[R+--j]*ie;return re},u.prototype.readUint8=u.prototype.readUInt8=function(R,j){return R>>>=0,j||V(R,1,this.length),this[R]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(R,j){return R>>>=0,j||V(R,2,this.length),this[R]|this[R+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(R,j){return R>>>=0,j||V(R,2,this.length),this[R]<<8|this[R+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(R,j){return R>>>=0,j||V(R,4,this.length),(this[R]|this[R+1]<<8|this[R+2]<<16)+16777216*this[R+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(R,j){return R>>>=0,j||V(R,4,this.length),16777216*this[R]+(this[R+1]<<16|this[R+2]<<8|this[R+3])},u.prototype.readBigUInt64LE=_e(function(R){L(R>>>=0,"offset");const j=this[R],U=this[R+7];j!==void 0&&U!==void 0||ue(R,this.length-8);const re=j+256*this[++R]+65536*this[++R]+this[++R]*2**24,ie=this[++R]+256*this[++R]+65536*this[++R]+U*2**24;return BigInt(re)+(BigInt(ie)<<BigInt(32))}),u.prototype.readBigUInt64BE=_e(function(R){L(R>>>=0,"offset");const j=this[R],U=this[R+7];j!==void 0&&U!==void 0||ue(R,this.length-8);const re=j*2**24+65536*this[++R]+256*this[++R]+this[++R],ie=this[++R]*2**24+65536*this[++R]+256*this[++R]+U;return(BigInt(re)<<BigInt(32))+BigInt(ie)}),u.prototype.readIntLE=function(R,j,U){R>>>=0,j>>>=0,U||V(R,j,this.length);let re=this[R],ie=1,fe=0;for(;++fe<j&&(ie*=256);)re+=this[R+fe]*ie;return ie*=128,re>=ie&&(re-=Math.pow(2,8*j)),re},u.prototype.readIntBE=function(R,j,U){R>>>=0,j>>>=0,U||V(R,j,this.length);let re=j,ie=1,fe=this[R+--re];for(;re>0&&(ie*=256);)fe+=this[R+--re]*ie;return ie*=128,fe>=ie&&(fe-=Math.pow(2,8*j)),fe},u.prototype.readInt8=function(R,j){return R>>>=0,j||V(R,1,this.length),128&this[R]?-1*(255-this[R]+1):this[R]},u.prototype.readInt16LE=function(R,j){R>>>=0,j||V(R,2,this.length);const U=this[R]|this[R+1]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt16BE=function(R,j){R>>>=0,j||V(R,2,this.length);const U=this[R+1]|this[R]<<8;return 32768&U?4294901760|U:U},u.prototype.readInt32LE=function(R,j){return R>>>=0,j||V(R,4,this.length),this[R]|this[R+1]<<8|this[R+2]<<16|this[R+3]<<24},u.prototype.readInt32BE=function(R,j){return R>>>=0,j||V(R,4,this.length),this[R]<<24|this[R+1]<<16|this[R+2]<<8|this[R+3]},u.prototype.readBigInt64LE=_e(function(R){L(R>>>=0,"offset");const j=this[R],U=this[R+7];j!==void 0&&U!==void 0||ue(R,this.length-8);const re=this[R+4]+256*this[R+5]+65536*this[R+6]+(U<<24);return(BigInt(re)<<BigInt(32))+BigInt(j+256*this[++R]+65536*this[++R]+this[++R]*2**24)}),u.prototype.readBigInt64BE=_e(function(R){L(R>>>=0,"offset");const j=this[R],U=this[R+7];j!==void 0&&U!==void 0||ue(R,this.length-8);const re=(j<<24)+65536*this[++R]+256*this[++R]+this[++R];return(BigInt(re)<<BigInt(32))+BigInt(this[++R]*2**24+65536*this[++R]+256*this[++R]+U)}),u.prototype.readFloatLE=function(R,j){return R>>>=0,j||V(R,4,this.length),i.read(this,R,!0,23,4)},u.prototype.readFloatBE=function(R,j){return R>>>=0,j||V(R,4,this.length),i.read(this,R,!1,23,4)},u.prototype.readDoubleLE=function(R,j){return R>>>=0,j||V(R,8,this.length),i.read(this,R,!0,52,8)},u.prototype.readDoubleBE=function(R,j){return R>>>=0,j||V(R,8,this.length),i.read(this,R,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(R,j,U,re){R=+R,j>>>=0,U>>>=0,!re&&G(this,R,j,U,Math.pow(2,8*U)-1,0);let ie=1,fe=0;for(this[j]=255&R;++fe<U&&(ie*=256);)this[j+fe]=R/ie&255;return j+U},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(R,j,U,re){R=+R,j>>>=0,U>>>=0,!re&&G(this,R,j,U,Math.pow(2,8*U)-1,0);let ie=U-1,fe=1;for(this[j+ie]=255&R;--ie>=0&&(fe*=256);)this[j+ie]=R/fe&255;return j+U},u.prototype.writeUint8=u.prototype.writeUInt8=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,1,255,0),this[j]=255&R,j+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,2,65535,0),this[j]=255&R,this[j+1]=R>>>8,j+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,2,65535,0),this[j]=R>>>8,this[j+1]=255&R,j+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,4,4294967295,0),this[j+3]=R>>>24,this[j+2]=R>>>16,this[j+1]=R>>>8,this[j]=255&R,j+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,4,4294967295,0),this[j]=R>>>24,this[j+1]=R>>>16,this[j+2]=R>>>8,this[j+3]=255&R,j+4},u.prototype.writeBigUInt64LE=_e(function(R,j=0){return Q(this,R,j,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=_e(function(R,j=0){return Z(this,R,j,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(R,j,U,re){if(R=+R,j>>>=0,!re){const Fe=Math.pow(2,8*U-1);G(this,R,j,U,Fe-1,-Fe)}let ie=0,fe=1,Ie=0;for(this[j]=255&R;++ie<U&&(fe*=256);)R<0&&Ie===0&&this[j+ie-1]!==0&&(Ie=1),this[j+ie]=(R/fe|0)-Ie&255;return j+U},u.prototype.writeIntBE=function(R,j,U,re){if(R=+R,j>>>=0,!re){const Fe=Math.pow(2,8*U-1);G(this,R,j,U,Fe-1,-Fe)}let ie=U-1,fe=1,Ie=0;for(this[j+ie]=255&R;--ie>=0&&(fe*=256);)R<0&&Ie===0&&this[j+ie+1]!==0&&(Ie=1),this[j+ie]=(R/fe|0)-Ie&255;return j+U},u.prototype.writeInt8=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,1,127,-128),R<0&&(R=255+R+1),this[j]=255&R,j+1},u.prototype.writeInt16LE=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,2,32767,-32768),this[j]=255&R,this[j+1]=R>>>8,j+2},u.prototype.writeInt16BE=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,2,32767,-32768),this[j]=R>>>8,this[j+1]=255&R,j+2},u.prototype.writeInt32LE=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,4,2147483647,-2147483648),this[j]=255&R,this[j+1]=R>>>8,this[j+2]=R>>>16,this[j+3]=R>>>24,j+4},u.prototype.writeInt32BE=function(R,j,U){return R=+R,j>>>=0,U||G(this,R,j,4,2147483647,-2147483648),R<0&&(R=4294967295+R+1),this[j]=R>>>24,this[j+1]=R>>>16,this[j+2]=R>>>8,this[j+3]=255&R,j+4},u.prototype.writeBigInt64LE=_e(function(R,j=0){return Q(this,R,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=_e(function(R,j=0){return Z(this,R,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeFloatLE=function(R,j,U){return J(this,R,j,!0,U)},u.prototype.writeFloatBE=function(R,j,U){return J(this,R,j,!1,U)},u.prototype.writeDoubleLE=function(R,j,U){return ee(this,R,j,!0,U)},u.prototype.writeDoubleBE=function(R,j,U){return ee(this,R,j,!1,U)},u.prototype.copy=function(R,j,U,re){if(!u.isBuffer(R))throw new TypeError("argument should be a Buffer");if(U||(U=0),re||re===0||(re=this.length),j>=R.length&&(j=R.length),j||(j=0),re>0&&re<U&&(re=U),re===U||R.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(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),R.length-j<re-U&&(re=R.length-j+U);const ie=re-U;return this===R&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,U,re):Uint8Array.prototype.set.call(R,this.subarray(U,re),j),ie},u.prototype.fill=function(R,j,U,re){if(typeof R=="string"){if(typeof j=="string"?(re=j,j=0,U=this.length):typeof U=="string"&&(re=U,U=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!u.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(R.length===1){const fe=R.charCodeAt(0);(re==="utf8"&&fe<128||re==="latin1")&&(R=fe)}}else typeof R=="number"?R&=255:typeof R=="boolean"&&(R=Number(R));if(j<0||this.length<j||this.length<U)throw new RangeError("Out of range index");if(U<=j)return this;let ie;if(j>>>=0,U=U===void 0?this.length:U>>>0,R||(R=0),typeof R=="number")for(ie=j;ie<U;++ie)this[ie]=R;else{const fe=u.isBuffer(R)?R:u.from(R,re),Ie=fe.length;if(Ie===0)throw new TypeError('The value "'+R+'" is invalid for argument "value"');for(ie=0;ie<U-j;++ie)this[ie+j]=fe[ie%Ie]}return this};const ne={};function ae($,R,j){ne[$]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:R.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(re){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:re,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}function Y($){let R="",j=$.length;const U=$[0]==="-"?1:0;for(;j>=U+4;j-=3)R=`_${$.slice(j-3,j)}${R}`;return`${$.slice(0,j)}${R}`}function F($,R,j,U,re,ie){if($>j||$<R){const fe=typeof R=="bigint"?"n":"";let Ie;throw Ie=R===0||R===BigInt(0)?`>= 0${fe} and < 2${fe} ** ${8*(ie+1)}${fe}`:`>= -(2${fe} ** ${8*(ie+1)-1}${fe}) and < 2 ** ${8*(ie+1)-1}${fe}`,new ne.ERR_OUT_OF_RANGE("value",Ie,$)}(function(Ie,Fe,Ge){L(Fe,"offset"),Ie[Fe]!==void 0&&Ie[Fe+Ge]!==void 0||ue(Fe,Ie.length-(Ge+1))})(U,re,ie)}function L($,R){if(typeof $!="number")throw new ne.ERR_INVALID_ARG_TYPE(R,"number",$)}function ue($,R,j){throw Math.floor($)!==$?(L($,j),new ne.ERR_OUT_OF_RANGE("offset","an integer",$)):R<0?new ne.ERR_BUFFER_OUT_OF_BOUNDS:new ne.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${R}`,$)}ae("ERR_BUFFER_OUT_OF_BOUNDS",function($){return $?`${$} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ae("ERR_INVALID_ARG_TYPE",function($,R){return`The "${$}" argument must be of type number. Received type ${typeof R}`},TypeError),ae("ERR_OUT_OF_RANGE",function($,R,j){let U=`The value of "${$}" is out of range.`,re=j;return Number.isInteger(j)&&Math.abs(j)>2**32?re=Y(String(j)):typeof j=="bigint"&&(re=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(re=Y(re)),re+="n"),U+=` It must be ${R}. Received ${re}`,U},RangeError);const de=/[^+/0-9A-Za-z-_]/g;function Ae($,R){let j;R=R||1/0;const U=$.length;let re=null;const ie=[];for(let fe=0;fe<U;++fe){if(j=$.charCodeAt(fe),j>55295&&j<57344){if(!re){if(j>56319){(R-=3)>-1&&ie.push(239,191,189);continue}if(fe+1===U){(R-=3)>-1&&ie.push(239,191,189);continue}re=j;continue}if(j<56320){(R-=3)>-1&&ie.push(239,191,189),re=j;continue}j=65536+(re-55296<<10|j-56320)}else re&&(R-=3)>-1&&ie.push(239,191,189);if(re=null,j<128){if((R-=1)<0)break;ie.push(j)}else if(j<2048){if((R-=2)<0)break;ie.push(j>>6|192,63&j|128)}else if(j<65536){if((R-=3)<0)break;ie.push(j>>12|224,j>>6&63|128,63&j|128)}else{if(!(j<1114112))throw new Error("Invalid code point");if((R-=4)<0)break;ie.push(j>>18|240,j>>12&63|128,j>>6&63|128,63&j|128)}}return ie}function Ne($){return n.toByteArray(function(j){if((j=(j=j.split("=")[0]).trim().replace(de,"")).length<2)return"";for(;j.length%4!=0;)j+="=";return j}($))}function ce($,R,j,U){let re;for(re=0;re<U&&!(re+j>=R.length||re>=$.length);++re)R[re+j]=$[re];return re}function Re($,R){return $ instanceof R||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===R.name}function ze($){return $!=$}const he=function(){const $="0123456789abcdef",R=new Array(256);for(let j=0;j<16;++j){const U=16*j;for(let re=0;re<16;++re)R[U+re]=$[j]+$[re]}return R}();function _e($){return typeof BigInt>"u"?Se:$}function Se(){throw new Error("BigInt not supported")}},291:function(e,t,r){var n=r(48).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(s,a,o,u){var c=function(f,h,p){return f.highWaterMark!=null?f.highWaterMark:h?f[p]:null}(a,u,o);if(c!=null){if(!isFinite(c)||Math.floor(c)!==c||c<0)throw new n(u?o:"highWaterMark",c);return Math.floor(c)}return s.objectMode?16:16384}}},310:function(e,t,r){e.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 c(){o.readable&&o.resume&&o.resume()}o.on("data",u),s.on("drain",c),s._isStdio||a&&a.end===!1||(o.on("end",f),o.on("close",h));var l=!1;function f(){l||(l=!0,s.end())}function h(){l||(l=!0,typeof s.destroy=="function"&&s.destroy())}function p(y){if(g(),n.listenerCount(this,"error")===0)throw y}function g(){o.removeListener("data",u),s.removeListener("drain",c),o.removeListener("end",f),o.removeListener("close",h),o.removeListener("error",p),s.removeListener("error",p),o.removeListener("end",g),o.removeListener("close",g),s.removeListener("close",g)}return o.on("error",p),s.on("error",p),o.on("end",g),o.on("close",g),s.on("close",g),s.emit("pipe",o),s}},340:function(){},345:function(e,t,r){e.exports=r(7).EventEmitter},362:function(e){e.exports=Yz},382:function(e,t,r){var n=r(606),i=Object.keys||function(p){var g=[];for(var y in p)g.push(y);return g};e.exports=l;var s=r(412),a=r(708);r(698)(l,s);for(var o=i(a.prototype),u=0;u<o.length;u++){var c=o[u];l.prototype[c]||(l.prototype[c]=a.prototype[c])}function l(p){if(!(this instanceof l))return new l(p);s.call(this,p),a.call(this,p),this.allowHalfOpen=!0,p&&(p.readable===!1&&(this.readable=!1),p.writable===!1&&(this.writable=!1),p.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(h,this)}function h(p){p.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.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(e,t,r){var n=r(861).Buffer;function i(s,a){this._block=n.alloc(s),this._finalSize=a,this._blockSize=s,this._len=0}i.prototype.update=function(s,a){typeof s=="string"&&(a=a||"utf8",s=n.from(s,a));for(var o=this._block,u=this._blockSize,c=s.length,l=this._len,f=0;f<c;){for(var h=l%u,p=Math.min(c-f,u-h),g=0;g<p;g++)o[h+g]=s[f+g];f+=p,(l+=p)%u==0&&this._update(o)}return this._len+=c,this},i.prototype.digest=function(s){var a=this._len%this._blockSize;this._block[a]=128,this._block.fill(0,a+1),a>=this._finalSize&&(this._update(this._block),this._block.fill(0));var o=8*this._len;if(o<=4294967295)this._block.writeUInt32BE(o,this._blockSize-4);else{var u=(4294967295&o)>>>0,c=(o-u)/4294967296;this._block.writeUInt32BE(c,this._blockSize-8),this._block.writeUInt32BE(u,this._blockSize-4)}this._update(this._block);var l=this._hash();return s?l.toString(s):l},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=i},412:function(e,t,r){var n,i=r(606);e.exports=O,O.ReadableState=T,r(7).EventEmitter;var s=function(L,ue){return L.listeners(ue).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(){},c,l=r(838);c=l&&l.debuglog?l.debuglog("stream"):function(){};var f,h,p,g=r(726),y=r(896),v=r(291).getHighWaterMark,E=r(48).F,b=E.ERR_INVALID_ARG_TYPE,S=E.ERR_STREAM_PUSH_AFTER_EOF,x=E.ERR_METHOD_NOT_IMPLEMENTED,_=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(O,a);var A=y.errorOrDestroy,C=["error","close","destroy","pause","resume"];function T(F,L,ue){n=n||r(382),F=F||{},typeof ue!="boolean"&&(ue=L instanceof n),this.objectMode=!!F.objectMode,ue&&(this.objectMode=this.objectMode||!!F.readableObjectMode),this.highWaterMark=v(this,F,"readableHighWaterMark",ue),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=F.emitClose!==!1,this.autoDestroy=!!F.autoDestroy,this.destroyed=!1,this.defaultEncoding=F.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,F.encoding&&(f||(f=r(141).I),this.decoder=new f(F.encoding),this.encoding=F.encoding)}function O(F){if(n=n||r(382),!(this instanceof O))return new O(F);var L=this instanceof n;this._readableState=new T(F,this,L),this.readable=!0,F&&(typeof F.read=="function"&&(this._read=F.read),typeof F.destroy=="function"&&(this._destroy=F.destroy)),a.call(this)}function M(F,L,ue,de,Ae){c("readableAddChunk",L);var Ne,ce=F._readableState;if(L===null)ce.reading=!1,function(ze,he){if(c("onEofChunk"),!he.ended){if(he.decoder){var _e=he.decoder.end();_e&&_e.length&&(he.buffer.push(_e),he.length+=he.objectMode?1:_e.length)}he.ended=!0,he.sync?H(ze):(he.needReadable=!1,he.emittedReadable||(he.emittedReadable=!0,X(ze)))}}(F,ce);else if(Ae||(Ne=function(ze,he){var _e;return function($){return o.isBuffer($)||$ instanceof u}(he)||typeof he=="string"||he===void 0||ze.objectMode||(_e=new b("chunk",["string","Buffer","Uint8Array"],he)),_e}(ce,L)),Ne)A(F,Ne);else if(ce.objectMode||L&&L.length>0)if(typeof L=="string"||ce.objectMode||Object.getPrototypeOf(L)===o.prototype||(L=function(ze){return o.from(ze)}(L)),de)ce.endEmitted?A(F,new _):k(F,ce,L,!0);else if(ce.ended)A(F,new S);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!ue?(L=ce.decoder.write(L),ce.objectMode||L.length!==0?k(F,ce,L,!1):V(F,ce)):k(F,ce,L,!1)}else de||(ce.reading=!1,V(F,ce));return!ce.ended&&(ce.length<ce.highWaterMark||ce.length===0)}function k(F,L,ue,de){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,F.emit("data",ue)):(L.length+=L.objectMode?1:ue.length,de?L.buffer.unshift(ue):L.buffer.push(ue),L.needReadable&&H(F)),V(F,L)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(L){this._readableState&&(this._readableState.destroyed=L)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(F,L){L(F)},O.prototype.push=function(F,L){var ue,de=this._readableState;return de.objectMode?ue=!0:typeof F=="string"&&((L=L||de.defaultEncoding)!==de.encoding&&(F=o.from(F,L),L=""),ue=!0),M(this,F,L,!1,ue)},O.prototype.unshift=function(F){return M(this,F,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(F){f||(f=r(141).I);var L=new f(F);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var ue=this._readableState.buffer.head,de="";ue!==null;)de+=L.write(ue.data),ue=ue.next;return this._readableState.buffer.clear(),de!==""&&this._readableState.buffer.push(de),this._readableState.length=de.length,this};var D=1073741824;function P(F,L){return F<=0||L.length===0&&L.ended?0:L.objectMode?1:F!=F?L.flowing&&L.length?L.buffer.head.data.length:L.length:(F>L.highWaterMark&&(L.highWaterMark=function(de){return de>=D?de=D:(de--,de|=de>>>1,de|=de>>>2,de|=de>>>4,de|=de>>>8,de|=de>>>16,de++),de}(F)),F<=L.length?F:L.ended?L.length:(L.needReadable=!0,0))}function H(F){var L=F._readableState;c("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(c("emitReadable",L.flowing),L.emittedReadable=!0,i.nextTick(X,F))}function X(F){var L=F._readableState;c("emitReadable_",L.destroyed,L.length,L.ended),L.destroyed||!L.length&&!L.ended||(F.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,J(F)}function V(F,L){L.readingMore||(L.readingMore=!0,i.nextTick(G,F,L))}function G(F,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var ue=L.length;if(c("maybeReadMore read 0"),F.read(0),ue===L.length)break}L.readingMore=!1}function Q(F){var L=F._readableState;L.readableListening=F.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:F.listenerCount("data")>0&&F.resume()}function Z(F){c("readable nexttick read 0"),F.read(0)}function B(F,L){c("resume",L.reading),L.reading||F.read(0),L.resumeScheduled=!1,F.emit("resume"),J(F),L.flowing&&!L.reading&&F.read(0)}function J(F){var L=F._readableState;for(c("flow",L.flowing);L.flowing&&F.read()!==null;);}function ee(F,L){return L.length===0?null:(L.objectMode?ue=L.buffer.shift():!F||F>=L.length?(ue=L.decoder?L.buffer.join(""):L.buffer.length===1?L.buffer.first():L.buffer.concat(L.length),L.buffer.clear()):ue=L.buffer.consume(F,L.decoder),ue);var ue}function ne(F){var L=F._readableState;c("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,i.nextTick(ae,L,F))}function ae(F,L){if(c("endReadableNT",F.endEmitted,F.length),!F.endEmitted&&F.length===0&&(F.endEmitted=!0,L.readable=!1,L.emit("end"),F.autoDestroy)){var ue=L._writableState;(!ue||ue.autoDestroy&&ue.finished)&&L.destroy()}}function Y(F,L){for(var ue=0,de=F.length;ue<de;ue++)if(F[ue]===L)return ue;return-1}O.prototype.read=function(F){c("read",F),F=parseInt(F,10);var L=this._readableState,ue=F;if(F!==0&&(L.emittedReadable=!1),F===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return c("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?ne(this):H(this),null;if((F=P(F,L))===0&&L.ended)return L.length===0&&ne(this),null;var de,Ae=L.needReadable;return c("need readable",Ae),(L.length===0||L.length-F<L.highWaterMark)&&c("length less than watermark",Ae=!0),L.ended||L.reading?c("reading or ended",Ae=!1):Ae&&(c("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(F=P(ue,L))),(de=F>0?ee(F,L):null)===null?(L.needReadable=L.length<=L.highWaterMark,F=0):(L.length-=F,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),ue!==F&&L.ended&&ne(this)),de!==null&&this.emit("data",de),de},O.prototype._read=function(F){A(this,new x("_read()"))},O.prototype.pipe=function(F,L){var ue=this,de=this._readableState;switch(de.pipesCount){case 0:de.pipes=F;break;case 1:de.pipes=[de.pipes,F];break;default:de.pipes.push(F)}de.pipesCount+=1,c("pipe count=%d opts=%j",de.pipesCount,L);var Ae=(!L||L.end!==!1)&&F!==i.stdout&&F!==i.stderr?ce:R;function Ne(j,U){c("onunpipe"),j===ue&&U&&U.hasUnpiped===!1&&(U.hasUnpiped=!0,function(){c("cleanup"),F.removeListener("close",Se),F.removeListener("finish",$),F.removeListener("drain",Re),F.removeListener("error",_e),F.removeListener("unpipe",Ne),ue.removeListener("end",ce),ue.removeListener("end",R),ue.removeListener("data",he),ze=!0,!de.awaitDrain||F._writableState&&!F._writableState.needDrain||Re()}())}function ce(){c("onend"),F.end()}de.endEmitted?i.nextTick(Ae):ue.once("end",Ae),F.on("unpipe",Ne);var Re=function(U){return function(){var ie=U._readableState;c("pipeOnDrain",ie.awaitDrain),ie.awaitDrain&&ie.awaitDrain--,ie.awaitDrain===0&&s(U,"data")&&(ie.flowing=!0,J(U))}}(ue);F.on("drain",Re);var ze=!1;function he(j){c("ondata");var U=F.write(j);c("dest.write",U),U===!1&&((de.pipesCount===1&&de.pipes===F||de.pipesCount>1&&Y(de.pipes,F)!==-1)&&!ze&&(c("false write response, pause",de.awaitDrain),de.awaitDrain++),ue.pause())}function _e(j){c("onerror",j),R(),F.removeListener("error",_e),s(F,"error")===0&&A(F,j)}function Se(){F.removeListener("finish",$),R()}function $(){c("onfinish"),F.removeListener("close",Se),R()}function R(){c("unpipe"),ue.unpipe(F)}return ue.on("data",he),function(U,re,ie){if(typeof U.prependListener=="function")return U.prependListener(re,ie);U._events&&U._events[re]?Array.isArray(U._events[re])?U._events[re].unshift(ie):U._events[re]=[ie,U._events[re]]:U.on(re,ie)}(F,"error",_e),F.once("close",Se),F.once("finish",$),F.emit("pipe",ue),de.flowing||(c("pipe resume"),ue.resume()),F},O.prototype.unpipe=function(F){var L=this._readableState,ue={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return F&&F!==L.pipes||(F||(F=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,F&&F.emit("unpipe",this,ue)),this;if(!F){var de=L.pipes,Ae=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var Ne=0;Ne<Ae;Ne++)de[Ne].emit("unpipe",this,{hasUnpiped:!1});return this}var ce=Y(L.pipes,F);return ce===-1||(L.pipes.splice(ce,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),F.emit("unpipe",this,ue)),this},O.prototype.on=function(F,L){var ue=a.prototype.on.call(this,F,L),de=this._readableState;return F==="data"?(de.readableListening=this.listenerCount("readable")>0,de.flowing!==!1&&this.resume()):F==="readable"&&(de.endEmitted||de.readableListening||(de.readableListening=de.needReadable=!0,de.flowing=!1,de.emittedReadable=!1,c("on readable",de.length,de.reading),de.length?H(this):de.reading||i.nextTick(Z,this))),ue},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(F,L){var ue=a.prototype.removeListener.call(this,F,L);return F==="readable"&&i.nextTick(Q,this),ue},O.prototype.removeAllListeners=function(F){var L=a.prototype.removeAllListeners.apply(this,arguments);return F!=="readable"&&F!==void 0||i.nextTick(Q,this),L},O.prototype.resume=function(){var F=this._readableState;return F.flowing||(c("resume"),F.flowing=!F.readableListening,function(ue,de){de.resumeScheduled||(de.resumeScheduled=!0,i.nextTick(B,ue,de))}(this,F)),F.paused=!1,this},O.prototype.pause=function(){return c("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(c("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},O.prototype.wrap=function(F){var L=this,ue=this._readableState,de=!1;for(var Ae in F.on("end",function(){if(c("wrapped end"),ue.decoder&&!ue.ended){var ce=ue.decoder.end();ce&&ce.length&&L.push(ce)}L.push(null)}),F.on("data",function(ce){c("wrapped data"),ue.decoder&&(ce=ue.decoder.write(ce)),ue.objectMode&&ce==null||(ue.objectMode||ce&&ce.length)&&(L.push(ce)||(de=!0,F.pause()))}),F)this[Ae]===void 0&&typeof F[Ae]=="function"&&(this[Ae]=function(Re){return function(){return F[Re].apply(F,arguments)}}(Ae));for(var Ne=0;Ne<C.length;Ne++)F.on(C[Ne],this.emit.bind(this,C[Ne]));return this._read=function(ce){c("wrapped _read",ce),de&&(de=!1,F.resume())},this},typeof Symbol=="function"&&(O.prototype[Symbol.asyncIterator]=function(){return h===void 0&&(h=r(955)),h(this)}),Object.defineProperty(O.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(O.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(O.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(L){this._readableState&&(this._readableState.flowing=L)}}),O._fromList=ee,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(O.from=function(F,L){return p===void 0&&(p=r(157)),p(O,F,L)})},499:function(e){var t={"&":"&amp;",'"':"&quot;","'":"&apos;","<":"&lt;",">":"&gt;"};e.exports=function(n){return n&&n.replace?n.replace(/([&"<>'])/g,function(i,s){return t[s]}):n}},600:function(e,t,r){e.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(e){var t,r,n=e.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(t===setTimeout)return setTimeout(y,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(y,0);try{return t(y,0)}catch{try{return t.call(null,y,0)}catch{return t.call(this,y,0)}}}(function(){try{t=typeof setTimeout=="function"?setTimeout:i}catch{t=i}try{r=typeof clearTimeout=="function"?clearTimeout:s}catch{r=s}})();var o,u=[],c=!1,l=-1;function f(){c&&o&&(c=!1,o.length?u=o.concat(u):l=-1,u.length&&h())}function h(){if(!c){var y=a(f);c=!0;for(var v=u.length;v;){for(o=u,u=[];++l<v;)o&&o[l].run();l=-1,v=u.length}o=null,c=!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 p(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 p(y,v)),u.length!==1||c||a(h)},p.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(e,t,r){e.exports=l;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 c(p,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(p);var E=this._readableState;E.reading=!1,(E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}function l(p){if(!(this instanceof l))return new l(p);u.call(this,p),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,p&&(typeof p.transform=="function"&&(this._transform=p.transform),typeof p.flush=="function"&&(this._flush=p.flush)),this.on("prefinish",f)}function f(){var p=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush(function(g,y){h(p,g,y)})}function h(p,g,y){if(g)return p.emit("error",g);if(y!=null&&p.push(y),p._writableState.length)throw new o;if(p._transformState.transforming)throw new a;return p.push(null)}r(698)(l,u),l.prototype.push=function(p,g){return this._transformState.needTransform=!1,u.prototype.push.call(this,p,g)},l.prototype._transform=function(p,g,y){y(new i("_transform()"))},l.prototype._write=function(p,g,y){var v=this._transformState;if(v.writecb=y,v.writechunk=p,v.writeencoding=g,!v.transforming){var E=this._readableState;(v.needTransform||E.needReadable||E.length<E.highWaterMark)&&this._read(E.highWaterMark)}},l.prototype._read=function(p){var g=this._transformState;g.writechunk===null||g.transforming?g.needTransform=!0:(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform))},l.prototype._destroy=function(p,g){u.prototype._destroy.call(this,p,function(y){g(y)})}},643:function(e,t,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"}e.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(e){typeof Object.create=="function"?e.exports=function(r,n){n&&(r.super_=n,r.prototype=Object.create(n.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:e.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(e,t,r){var n,i=r(606);function s(V){var G=this;this.next=null,this.entry=null,this.finish=function(){(function(Z,B,J){var ee=Z.entry;for(Z.entry=null;ee;){var ne=ee.callback;B.pendingcb--,ne(J),ee=ee.next}B.corkedRequestsFree.next=Z})(G,V)}}e.exports=O,O.WritableState=T;var a={deprecate:r(643)},o=r(345),u=r(287).Buffer,c=(r.g!==void 0?r.g:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){},l,f=r(896),h=r(291).getHighWaterMark,p=r(48).F,g=p.ERR_INVALID_ARG_TYPE,y=p.ERR_METHOD_NOT_IMPLEMENTED,v=p.ERR_MULTIPLE_CALLBACK,E=p.ERR_STREAM_CANNOT_PIPE,b=p.ERR_STREAM_DESTROYED,S=p.ERR_STREAM_NULL_VALUES,x=p.ERR_STREAM_WRITE_AFTER_END,_=p.ERR_UNKNOWN_ENCODING,A=f.errorOrDestroy;function C(){}function T(V,G,Q){n=n||r(382),V=V||{},typeof Q!="boolean"&&(Q=G instanceof n),this.objectMode=!!V.objectMode,Q&&(this.objectMode=this.objectMode||!!V.writableObjectMode),this.highWaterMark=h(this,V,"writableHighWaterMark",Q),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var Z=V.decodeStrings===!1;this.decodeStrings=!Z,this.defaultEncoding=V.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(B){(function(ee,ne){var ae=ee._writableState,Y=ae.sync,F=ae.writecb;if(typeof F!="function")throw new v;if(function(de){de.writing=!1,de.writecb=null,de.length-=de.writelen,de.writelen=0}(ae),ne)(function(de,Ae,Ne,ce,Re){--Ae.pendingcb,Ne?(i.nextTick(Re,ce),i.nextTick(X,de,Ae),de._writableState.errorEmitted=!0,A(de,ce)):(Re(ce),de._writableState.errorEmitted=!0,A(de,ce),X(de,Ae))})(ee,ae,Y,ne,F);else{var L=P(ae)||ee.destroyed;L||ae.corked||ae.bufferProcessing||!ae.bufferedRequest||D(ee,ae),Y?i.nextTick(k,ee,ae,L,F):k(ee,ae,L,F)}})(G,B)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=V.emitClose!==!1,this.autoDestroy=!!V.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function O(V){var G=this instanceof(n=n||r(382));if(!G&&!l.call(O,this))return new O(V);this._writableState=new T(V,this,G),this.writable=!0,V&&(typeof V.write=="function"&&(this._write=V.write),typeof V.writev=="function"&&(this._writev=V.writev),typeof V.destroy=="function"&&(this._destroy=V.destroy),typeof V.final=="function"&&(this._final=V.final)),o.call(this)}function M(V,G,Q,Z,B,J,ee){G.writelen=Z,G.writecb=ee,G.writing=!0,G.sync=!0,G.destroyed?G.onwrite(new b("write")):Q?V._writev(B,G.onwrite):V._write(B,J,G.onwrite),G.sync=!1}function k(V,G,Q,Z){Q||function(J,ee){ee.length===0&&ee.needDrain&&(ee.needDrain=!1,J.emit("drain"))}(V,G),G.pendingcb--,Z(),X(V,G)}function D(V,G){G.bufferProcessing=!0;var Q=G.bufferedRequest;if(V._writev&&Q&&Q.next){var Z=G.bufferedRequestCount,B=new Array(Z),J=G.corkedRequestsFree;J.entry=Q;for(var ee=0,ne=!0;Q;)B[ee]=Q,Q.isBuf||(ne=!1),Q=Q.next,ee+=1;B.allBuffers=ne,M(V,G,!0,G.length,B,"",J.finish),G.pendingcb++,G.lastBufferedRequest=null,J.next?(G.corkedRequestsFree=J.next,J.next=null):G.corkedRequestsFree=new s(G),G.bufferedRequestCount=0}else{for(;Q;){var ae=Q.chunk,Y=Q.encoding,F=Q.callback;if(M(V,G,!1,G.objectMode?1:ae.length,ae,Y,F),Q=Q.next,G.bufferedRequestCount--,G.writing)break}Q===null&&(G.lastBufferedRequest=null)}G.bufferedRequest=Q,G.bufferProcessing=!1}function P(V){return V.ending&&V.length===0&&V.bufferedRequest===null&&!V.finished&&!V.writing}function H(V,G){V._final(function(Q){G.pendingcb--,Q&&A(V,Q),G.prefinished=!0,V.emit("prefinish"),X(V,G)})}function X(V,G){var Q=P(G);if(Q&&(function(J,ee){ee.prefinished||ee.finalCalled||(typeof J._final!="function"||ee.destroyed?(ee.prefinished=!0,J.emit("prefinish")):(ee.pendingcb++,ee.finalCalled=!0,i.nextTick(H,J,ee)))}(V,G),G.pendingcb===0&&(G.finished=!0,V.emit("finish"),G.autoDestroy))){var Z=V._readableState;(!Z||Z.autoDestroy&&Z.endEmitted)&&V.destroy()}return Q}r(698)(O,o),T.prototype.getBuffer=function(){for(var G=this.bufferedRequest,Q=[];G;)Q.push(G),G=G.next;return Q},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"?(l=Function.prototype[Symbol.hasInstance],Object.defineProperty(O,Symbol.hasInstance,{value:function(G){return!!l.call(this,G)||this===O&&G&&G._writableState instanceof T}})):l=function(G){return G instanceof this},O.prototype.pipe=function(){A(this,new E)},O.prototype.write=function(V,G,Q){var Z=this._writableState,B=!1,J=!Z.objectMode&&function(ne){return u.isBuffer(ne)||ne instanceof c}(V);return J&&!u.isBuffer(V)&&(V=function(ne){return u.from(ne)}(V)),typeof G=="function"&&(Q=G,G=null),J?G="buffer":G||(G=Z.defaultEncoding),typeof Q!="function"&&(Q=C),Z.ending?function(ne,ae){var Y=new x;A(ne,Y),i.nextTick(ae,Y)}(this,Q):(J||function(ne,ae,Y,F){var L;return Y===null?L=new S:typeof Y=="string"||ae.objectMode||(L=new g("chunk",["string","Buffer"],Y)),!L||(A(ne,L),i.nextTick(F,L),!1)}(this,Z,V,Q))&&(Z.pendingcb++,B=function(ne,ae,Y,F,L,ue){if(!Y){var de=function(ze,he,_e){return ze.objectMode||ze.decodeStrings===!1||typeof he!="string"||(he=u.from(he,_e)),he}(ae,F,L);F!==de&&(Y=!0,L="buffer",F=de)}var Ae=ae.objectMode?1:F.length;ae.length+=Ae;var Ne=ae.length<ae.highWaterMark;if(Ne||(ae.needDrain=!0),ae.writing||ae.corked){var ce=ae.lastBufferedRequest;ae.lastBufferedRequest={chunk:F,encoding:L,isBuf:Y,callback:ue,next:null},ce?ce.next=ae.lastBufferedRequest:ae.bufferedRequest=ae.lastBufferedRequest,ae.bufferedRequestCount+=1}else M(ne,ae,!1,Ae,F,L,ue);return Ne}(this,Z,J,V,G,Q)),B},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var V=this._writableState;V.corked&&(V.corked--,V.writing||V.corked||V.bufferProcessing||!V.bufferedRequest||D(this,V))},O.prototype.setDefaultEncoding=function(G){if(typeof G=="string"&&(G=G.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((G+"").toLowerCase())>-1))throw new _(G);return this._writableState.defaultEncoding=G,this},Object.defineProperty(O.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(O.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),O.prototype._write=function(V,G,Q){Q(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(V,G,Q){var Z=this._writableState;return typeof V=="function"?(Q=V,V=null,G=null):typeof G=="function"&&(Q=G,G=null),V!=null&&this.write(V,G),Z.corked&&(Z.corked=1,this.uncork()),Z.ending||function(J,ee,ne){ee.ending=!0,X(J,ee),ne&&(ee.finished?i.nextTick(ne):J.once("finish",ne)),ee.ended=!0,J.writable=!1}(this,Z,Q),this},Object.defineProperty(O.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(G){this._writableState&&(this._writableState.destroyed=G)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(V,G){G(V)}},710:function(e,t,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 c=a.allocUnsafe(28);return c.writeInt32BE(this._a,0),c.writeInt32BE(this._b,4),c.writeInt32BE(this._c,8),c.writeInt32BE(this._d,12),c.writeInt32BE(this._e,16),c.writeInt32BE(this._f,20),c.writeInt32BE(this._g,24),c},e.exports=u},726:function(e,t,r){function n(h,p){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);p&&(y=y.filter(function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable})),g.push.apply(g,y)}return g}function i(h){for(var p=1;p<arguments.length;p++){var g=arguments[p]!=null?arguments[p]:{};p%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,p,g){return(p=o(p))in h?Object.defineProperty(h,p,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[p]=g,h}function a(h,p){for(var g=0;g<p.length;g++){var y=p[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 p=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 p=="symbol"?p:String(p)}var u=r(287).Buffer,c=r(340).inspect,l=c&&c.custom||"inspect";function f(h,p,g){u.prototype.copy.call(h,p,g)}e.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;)f(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,S=g>b.length?b.length:g;if(S===b.length?E+=b:E+=b.slice(0,g),(g-=S)===0){S===b.length?(++v,y.next?this.head=y.next:this.head=this.tail=null):(this.head=y,y.data=b.slice(S));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,S=g>b.length?b.length:g;if(b.copy(y,y.length-g,0,S),(g-=S)===0){S===b.length?(++E,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(S));break}++E}return this.length-=E,y}},{key:l,value:function(g,y){return c(this,i(i({},y),{},{depth:0,customInspect:!1}))}}]),h}()},737:function(e,t,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 c(h){return h<<5|h>>>27}function l(h){return h<<30|h>>>2}function f(h,p,g,y){return h===0?p&g|~p&y:h===2?p&g|p&y|g&y:p^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 p,g=this._w,y=0|this._a,v=0|this._b,E=0|this._c,b=0|this._d,S=0|this._e,x=0;x<16;++x)g[x]=h.readInt32BE(4*x);for(;x<80;++x)g[x]=(p=g[x-3]^g[x-8]^g[x-14]^g[x-16])<<1|p>>>31;for(var _=0;_<80;++_){var A=~~(_/20),C=c(y)+f(A,v,E,b)+S+g[_]+a[A]|0;S=b,b=E,E=l(v),v=y,y=C}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=S+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},e.exports=u},758:function(e,t,r){var n,i=r(48).F,s=i.ERR_MISSING_ARGS,a=i.ERR_STREAM_DESTROYED;function o(l){if(l)throw l}function u(l){l()}function c(l,f){return l.pipe(f)}e.exports=function(){for(var f=arguments.length,h=new Array(f),p=0;p<f;p++)h[p]=arguments[p];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 S=b<h.length-1;return function(_,A,C,T){T=function(D){var P=!1;return function(){P||(P=!0,D.apply(void 0,arguments))}}(T);var O=!1;_.on("close",function(){O=!0}),n===void 0&&(n=r(238)),n(_,{readable:A,writable:C},function(k){if(k)return T(k);O=!0,T()});var M=!1;return function(k){if(!O&&!M)return M=!0,function(P){return P.setHeader&&typeof P.abort=="function"}(_)?_.abort():typeof _.destroy=="function"?_.destroy():void T(k||new a("pipe"))}}(E,S,b>0,function(x){g||(g=x),x&&v.forEach(u),S||(v.forEach(u),y(g))})});return h.reduce(c)}},802:function(e,t,r){var n=e.exports=function(s){s=s.toLowerCase();var a=n[s];if(!a)throw new Error(s+" is not supported (we accept pull requests)");return new a};n.sha=r(816),n.sha1=r(737),n.sha224=r(710),n.sha256=r(107),n.sha384=r(827),n.sha512=r(890)},816:function(e,t,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 c(f){return f<<30|f>>>2}function l(f,h,p,g){return f===0?h&p|~h&g:f===2?h&p|h&g|p&g:h^p^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(f){for(var h,p=this._w,g=0|this._a,y=0|this._b,v=0|this._c,E=0|this._d,b=0|this._e,S=0;S<16;++S)p[S]=f.readInt32BE(4*S);for(;S<80;++S)p[S]=p[S-3]^p[S-8]^p[S-14]^p[S-16];for(var x=0;x<80;++x){var _=~~(x/20),A=0|((h=g)<<5|h>>>27)+l(_,y,v,E)+b+p[x]+a[_];b=E,E=v,v=c(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 f=s.allocUnsafe(20);return f.writeInt32BE(0|this._a,0),f.writeInt32BE(0|this._b,4),f.writeInt32BE(0|this._c,8),f.writeInt32BE(0|this._d,12),f.writeInt32BE(0|this._e,16),f},e.exports=u},827:function(e,t,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 c=a.allocUnsafe(48);function l(f,h,p){c.writeInt32BE(f,p),c.writeInt32BE(h,p+4)}return l(this._ah,this._al,0),l(this._bh,this._bl,8),l(this._ch,this._cl,16),l(this._dh,this._dl,24),l(this._eh,this._el,32),l(this._fh,this._fl,40),c},e.exports=u},838:function(){},861:function(e,t,r){var n=r(287),i=n.Buffer;function s(o,u){for(var c in o)u[c]=o[c]}function a(o,u,c){return i(o,u,c)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=n:(s(n,t),t.Buffer=a),a.prototype=Object.create(i.prototype),s(i,a),a.from=function(o,u,c){if(typeof o=="number")throw new TypeError("Argument must not be a number");return i(o,u,c)},a.alloc=function(o,u,c){if(typeof o!="number")throw new TypeError("Argument must be a number");var l=i(o);return u!==void 0?typeof c=="string"?l.fill(u,c):l.fill(u):l.fill(0),l},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(e,t,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 c(b,S,x){return x^b&(S^x)}function l(b,S,x){return b&S|x&(b|S)}function f(b,S){return(b>>>28|S<<4)^(S>>>2|b<<30)^(S>>>7|b<<25)}function h(b,S){return(b>>>14|S<<18)^(b>>>18|S<<14)^(S>>>9|b<<23)}function p(b,S){return(b>>>1|S<<31)^(b>>>8|S<<24)^b>>>7}function g(b,S){return(b>>>1|S<<31)^(b>>>8|S<<24)^(b>>>7|S<<25)}function y(b,S){return(b>>>19|S<<13)^(S>>>29|b<<3)^b>>>6}function v(b,S){return(b>>>19|S<<13)^(S>>>29|b<<3)^(b>>>6|S<<26)}function E(b,S){return b>>>0<S>>>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 S=this._w,x=0|this._ah,_=0|this._bh,A=0|this._ch,C=0|this._dh,T=0|this._eh,O=0|this._fh,M=0|this._gh,k=0|this._hh,D=0|this._al,P=0|this._bl,H=0|this._cl,X=0|this._dl,V=0|this._el,G=0|this._fl,Q=0|this._gl,Z=0|this._hl,B=0;B<32;B+=2)S[B]=b.readInt32BE(4*B),S[B+1]=b.readInt32BE(4*B+4);for(;B<160;B+=2){var J=S[B-30],ee=S[B-30+1],ne=p(J,ee),ae=g(ee,J),Y=y(J=S[B-4],ee=S[B-4+1]),F=v(ee,J),L=S[B-14],ue=S[B-14+1],de=S[B-32],Ae=S[B-32+1],Ne=ae+ue|0,ce=ne+L+E(Ne,ae)|0;ce=(ce=ce+Y+E(Ne=Ne+F|0,F)|0)+de+E(Ne=Ne+Ae|0,Ae)|0,S[B]=ce,S[B+1]=Ne}for(var Re=0;Re<160;Re+=2){ce=S[Re],Ne=S[Re+1];var ze=l(x,_,A),he=l(D,P,H),_e=f(x,D),Se=f(D,x),$=h(T,V),R=h(V,T),j=a[Re],U=a[Re+1],re=c(T,O,M),ie=c(V,G,Q),fe=Z+R|0,Ie=k+$+E(fe,Z)|0;Ie=(Ie=(Ie=Ie+re+E(fe=fe+ie|0,ie)|0)+j+E(fe=fe+U|0,U)|0)+ce+E(fe=fe+Ne|0,Ne)|0;var Fe=Se+he|0,Ge=_e+ze+E(Fe,Se)|0;k=M,Z=Q,M=O,Q=G,O=T,G=V,T=C+Ie+E(V=X+fe|0,X)|0,C=A,X=H,A=_,H=P,_=x,P=D,x=Ie+Ge+E(D=fe+Fe|0,fe)|0}this._al=this._al+D|0,this._bl=this._bl+P|0,this._cl=this._cl+H|0,this._dl=this._dl+X|0,this._el=this._el+V|0,this._fl=this._fl+G|0,this._gl=this._gl+Q|0,this._hl=this._hl+Z|0,this._ah=this._ah+x+E(this._al,D)|0,this._bh=this._bh+_+E(this._bl,P)|0,this._ch=this._ch+A+E(this._cl,H)|0,this._dh=this._dh+C+E(this._dl,X)|0,this._eh=this._eh+T+E(this._el,V)|0,this._fh=this._fh+O+E(this._fl,G)|0,this._gh=this._gh+M+E(this._gl,Q)|0,this._hh=this._hh+k+E(this._hl,Z)|0},u.prototype._hash=function(){var b=s.allocUnsafe(64);function S(x,_,A){b.writeInt32BE(x,A),b.writeInt32BE(_,A+4)}return S(this._ah,this._al,0),S(this._bh,this._bl,8),S(this._ch,this._cl,16),S(this._dh,this._dl,24),S(this._eh,this._el,32),S(this._fh,this._fl,40),S(this._gh,this._gl,48),S(this._hh,this._hl,56),b},e.exports=u},896:function(e,t,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)}e.exports={destroy:function(u,c){var l=this,f=this._readableState&&this._readableState.destroyed,h=this._writableState&&this._writableState.destroyed;return f||h?(c?c(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(p){!c&&p?l._writableState?l._writableState.errorEmitted?n.nextTick(s,l):(l._writableState.errorEmitted=!0,n.nextTick(i,l,p)):n.nextTick(i,l,p):c?(n.nextTick(s,l),c(p)):n.nextTick(s,l)}),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,c){var l=u._readableState,f=u._writableState;l&&l.autoDestroy||f&&f.autoDestroy?u.destroy(c):u.emit("error",c)}}},919:function(e,t,r){var n=r(287).Buffer;function i(c){return c instanceof n||c instanceof Date||c instanceof RegExp}function s(c){if(c instanceof n){var l=n.alloc?n.alloc(c.length):new n(c.length);return c.copy(l),l}if(c instanceof Date)return new Date(c.getTime());if(c instanceof RegExp)return new RegExp(c);throw new Error("Unexpected situation")}function a(c){var l=[];return c.forEach(function(f,h){typeof f=="object"&&f!==null?Array.isArray(f)?l[h]=a(f):i(f)?l[h]=s(f):l[h]=u({},f):l[h]=f}),l}function o(c,l){return l==="__proto__"?void 0:c[l]}var u=e.exports=function(){if(arguments.length<1||typeof arguments[0]!="object")return!1;if(arguments.length<2)return arguments[0];var c,l,f=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(p){return l=o(f,p),(c=o(h,p))===f?void 0:typeof c!="object"||c===null?void(f[p]=c):Array.isArray(c)?void(f[p]=a(c)):i(c)?void(f[p]=s(c)):typeof l!="object"||l===null||Array.isArray(l)?void(f[p]=u({},c)):void(f[p]=u(l,c))})}),f}},955:function(e,t,r){var n,i=r(606);function s(S,x,_){return(x=function(C){var T=function(M,k){if(typeof M!="object"||M===null)return M;var D=M[Symbol.toPrimitive];if(D!==void 0){var P=D.call(M,k);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(M)}(C,"string");return typeof T=="symbol"?T:String(T)}(x))in S?Object.defineProperty(S,x,{value:_,enumerable:!0,configurable:!0,writable:!0}):S[x]=_,S}var a=r(238),o=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),p=Symbol("stream");function g(S,x){return{value:S,done:x}}function y(S){var x=S[o];if(x!==null){var _=S[p].read();_!==null&&(S[f]=null,S[o]=null,S[u]=null,x(g(_,!1)))}}function v(S){i.nextTick(y,S)}var E=Object.getPrototypeOf(function(){}),b=Object.setPrototypeOf((s(n={get stream(){return this[p]},next:function(){var x=this,_=this[c];if(_!==null)return Promise.reject(_);if(this[l])return Promise.resolve(g(void 0,!0));if(this[p].destroyed)return new Promise(function(O,M){i.nextTick(function(){x[c]?M(x[c]):O(g(void 0,!0))})});var A,C=this[f];if(C)A=new Promise(function(M,k){return function(D,P){M.then(function(){k[l]?D(g(void 0,!0)):k[h](D,P)},P)}}(C,this));else{var T=this[p].read();if(T!==null)return Promise.resolve(g(T,!1));A=new Promise(this[h])}return this[f]=A,A}},Symbol.asyncIterator,function(){return this}),s(n,"return",function(){var x=this;return new Promise(function(_,A){x[p].destroy(null,function(C){C?A(C):_(g(void 0,!0))})})}),n),E);e.exports=function(x){var _,A=Object.create(b,(s(_={},p,{value:x,writable:!0}),s(_,o,{value:null,writable:!0}),s(_,u,{value:null,writable:!0}),s(_,c,{value:null,writable:!0}),s(_,l,{value:x._readableState.endEmitted,writable:!0}),s(_,h,{value:function(T,O){var M=A[p].read();M?(A[f]=null,A[o]=null,A[u]=null,T(g(M,!1))):(A[o]=T,A[u]=O)},writable:!0}),_));return A[f]=null,a(x,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var T=A[u];return T!==null&&(A[f]=null,A[o]=null,A[u]=null,T(C)),void(A[c]=C)}var O=A[o];O!==null&&(A[f]=null,A[o]=null,A[u]=null,O(g(void 0,!0))),A[l]=!0}),x.on("readable",v.bind(null,A)),A}},987:function(e){e.exports=Qz}},_3={};function me(e){var t=_3[e];if(t!==void 0)return t.exports;var r=_3[e]={exports:{}};return nve[e](r,r.exports,me),r.exports}me.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return me.d(t,{a:t}),t},me.d=function(e,t){for(var r in t)me.o(t,r)&&!me.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},me.g=function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}}(),me.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},me.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var aU={};me.d(aU,{A:function(){return wAe}});var Vx={};me.r(Vx),me.d(Vx,{CLEAR:function(){return wC},CLEAR_BY:function(){return xC},NEW_AUTH_ERR:function(){return SC},NEW_SPEC_ERR:function(){return _C},NEW_SPEC_ERR_BATCH:function(){return EC},NEW_THROWN_ERR:function(){return Em},NEW_THROWN_ERR_BATCH:function(){return bC},clear:function(){return dve},clearBy:function(){return pve},newAuthErr:function(){return fve},newSpecErr:function(){return cve},newSpecErrBatch:function(){return lve},newThrownErr:function(){return ove},newThrownErrBatch:function(){return uve}});var zx={};me.r(zx),me.d(zx,{AUTHORIZE:function(){return CC},AUTHORIZE_OAUTH2:function(){return TC},CONFIGURE_AUTH:function(){return IC},LOGOUT:function(){return RC},RESTORE_AUTHORIZATION:function(){return jC},SHOW_AUTH_POPUP:function(){return OC},authPopup:function(){return Lve},authorize:function(){return Ave},authorizeAccessCodeWithBasicAuthentication:function(){return Mve},authorizeAccessCodeWithFormParams:function(){return Nve},authorizeApplication:function(){return Pve},authorizeOauth2:function(){return Ive},authorizeOauth2WithPersistOption:function(){return jve},authorizePassword:function(){return kve},authorizeRequest:function(){return Dve},authorizeWithPersistOption:function(){return Ove},configureAuth:function(){return qve},logout:function(){return Cve},logoutWithPersistOption:function(){return Rve},persistAuthorizationIfNeeded:function(){return Fve},preAuthorizeImplicit:function(){return Tve},restoreAuthorization:function(){return $ve},showDefinitions:function(){return xve}});var Wx={};me.r(Wx),me.d(Wx,{authorized:function(){return Kve},definitionsForRequirements:function(){return Jve},definitionsToAuthorize:function(){return Vve},getConfigs:function(){return Gve},getDefinitionsByNames:function(){return Wve},isAuthorized:function(){return Hve},selectAuthPath:function(){return zve},shownDefinitions:function(){return Uve}});var Jx={};me.r(Jx),me.d(Jx,{TOGGLE_CONFIGS:function(){return NC},UPDATE_CONFIGS:function(){return PC},downloadConfig:function(){return o0e},getConfigByUrl:function(){return u0e},loaded:function(){return a0e},toggle:function(){return s0e},update:function(){return i0e}});var Kx={};me.r(Kx),me.d(Kx,{get:function(){return c0e}});var Hx={};me.r(Hx),me.d(Hx,{transform:function(){return g0e}});var Gx={};me.r(Gx),me.d(Gx,{transform:function(){return y0e}});var Yx={};me.r(Yx),me.d(Yx,{allErrors:function(){return vU},lastError:function(){return b0e}});var Xx={};me.r(Xx),me.d(Xx,{SHOW:function(){return $C},UPDATE_FILTER:function(){return DC},UPDATE_LAYOUT:function(){return MC},UPDATE_MODE:function(){return qC},changeMode:function(){return j0e},show:function(){return I0e},updateFilter:function(){return T0e},updateLayout:function(){return R0e}});var Zx={};me.r(Zx),me.d(Zx,{current:function(){return P0e},currentFilter:function(){return N0e},isShown:function(){return SU},showSummary:function(){return D0e},whatMode:function(){return M0e}});var Qx={};me.r(Qx),me.d(Qx,{taggedOperations:function(){return q0e}});var eA={};me.r(eA),me.d(eA,{getActiveLanguage:function(){return z0e},getDefaultExpanded:function(){return W0e},getGenerators:function(){return CU},getSnippetGenerators:function(){return V0e}});var tA={};me.r(tA),me.d(tA,{JsonSchemaArrayItemFile:function(){return UC},JsonSchemaArrayItemText:function(){return BC},JsonSchemaForm:function(){return kU},JsonSchema_array:function(){return NU},JsonSchema_boolean:function(){return MU},JsonSchema_object:function(){return DU},JsonSchema_string:function(){return PU}});var rA={};me.r(rA),me.d(rA,{allowTryItOutFor:function(){return Vbe},basePath:function(){return Dbe},canExecuteScheme:function(){return Xbe},consumes:function(){return YU},consumesOptionsFor:function(){return Ybe},contentTypeValues:function(){return Hbe},currentProducesFor:function(){return o7},definitions:function(){return Mbe},externalDocs:function(){return Tbe},findDefinition:function(){return Nbe},getOAS3RequiredRequestBodyContentType:function(){return Qbe},getParameter:function(){return Wbe},hasHost:function(){return Jbe},host:function(){return qbe},info:function(){return JU},isMediaTypeSchemaPropertiesEqual:function(){return e_e},isOAS3:function(){return Rbe},lastError:function(){return Ebe},mutatedRequestFor:function(){return Ube},mutatedRequests:function(){return n7},operationScheme:function(){return u7},operationWithMeta:function(){return s7},operations:function(){return GU},operationsWithRootInherited:function(){return ZU},operationsWithTags:function(){return e7},parameterInclusionSettingFor:function(){return i7},parameterValues:function(){return a7},parameterWithMeta:function(){return zbe},parameterWithMetaByIdentity:function(){return WC},parametersIncludeIn:function(){return Kbe},parametersIncludeType:function(){return _A},paths:function(){return HU},produces:function(){return XU},producesOptionsFor:function(){return Gbe},requestFor:function(){return Bbe},requests:function(){return r7},responseFor:function(){return Lbe},responses:function(){return t7},schemes:function(){return $be},security:function(){return kbe},securityDefinitions:function(){return Pbe},semver:function(){return Ibe},spec:function(){return Dn},specJS:function(){return Abe},specJson:function(){return VC},specJsonWithResolvedSubtrees:function(){return Bi},specResolved:function(){return Obe},specResolvedSubtree:function(){return Cbe},specSource:function(){return xbe},specStr:function(){return wbe},tagDetails:function(){return QU},taggedOperations:function(){return Fbe},tags:function(){return zC},url:function(){return Sbe},validOperationMethods:function(){return jbe},validateBeforeExecute:function(){return Zbe},validationErrors:function(){return c7},version:function(){return KU}});var nA={};me.r(nA),me.d(nA,{CLEAR_REQUEST:function(){return tR},CLEAR_RESPONSE:function(){return eR},CLEAR_VALIDATE_PARAMS:function(){return rR},LOG_REQUEST:function(){return d7},SET_MUTATED_REQUEST:function(){return QC},SET_REQUEST:function(){return ZC},SET_RESPONSE:function(){return XC},SET_SCHEME:function(){return iR},UPDATE_EMPTY_PARAM_INCLUSION:function(){return GC},UPDATE_JSON:function(){return HC},UPDATE_OPERATION_META_VALUE:function(){return Cm},UPDATE_PARAM:function(){return Om},UPDATE_RESOLVED:function(){return nR},UPDATE_RESOLVED_SUBTREE:function(){return Rm},UPDATE_SPEC:function(){return JC},UPDATE_URL:function(){return KC},VALIDATE_PARAMS:function(){return YC},changeConsumesValue:function(){return __e},changeParam:function(){return p_e},changeParamByIdentity:function(){return h_e},changeProducesValue:function(){return E_e},clearRequest:function(){return T_e},clearResponse:function(){return R_e},clearValidateParams:function(){return b_e},execute:function(){return C_e},executeRequest:function(){return O_e},invalidateResolvedSubtreeCache:function(){return g_e},logRequest:function(){return A_e},parseToJson:function(){return c_e},requestResolvedSubtree:function(){return d_e},resolveSpec:function(){return l_e},setMutatedRequest:function(){return x_e},setRequest:function(){return w_e},setResponse:function(){return S_e},setScheme:function(){return I_e},updateEmptyParamInclusion:function(){return v_e},updateJsonSpec:function(){return u_e},updateResolved:function(){return a_e},updateResolvedSubtree:function(){return m_e},updateSpec:function(){return s_e},updateUrl:function(){return o_e},validateParams:function(){return y_e}});var iA={};me.r(iA),me.d(iA,{executeRequest:function(){return N_e},updateJsonSpec:function(){return P_e},updateSpec:function(){return k_e},validateParams:function(){return M_e}});var sA={};me.r(sA),me.d(sA,{Button:function(){return U7},Col:function(){return eSe},Collapse:function(){return W7},Container:function(){return QEe},Input:function(){return nSe},Link:function(){return z7},Row:function(){return tSe},Select:function(){return V7},TextArea:function(){return rSe}});var aA={};me.r(aA),me.d(aA,{basePath:function(){return $Se},consumes:function(){return FSe},definitions:function(){return PSe},findDefinition:function(){return kSe},hasHost:function(){return NSe},host:function(){return qSe},produces:function(){return LSe},schemes:function(){return BSe},securityDefinitions:function(){return MSe},validOperationMethods:function(){return DSe}});var oA={};me.r(oA),me.d(oA,{definitionsToAuthorize:function(){return USe}});var uA={};me.r(uA),me.d(uA,{callbacksOperations:function(){return GSe},findSchema:function(){return HSe},isOAS3:function(){return JSe},isOAS30:function(){return WSe},isSwagger2:function(){return zSe},servers:function(){return KSe}});var cA={};me.r(cA),me.d(cA,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return Im},CLEAR_REQUEST_BODY_VALUE:function(){return mR},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return hR},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return lR},UPDATE_REQUEST_BODY_INCLUSION:function(){return cR},UPDATE_REQUEST_BODY_VALUE:function(){return oR},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return uR},UPDATE_REQUEST_CONTENT_TYPE:function(){return fR},UPDATE_RESPONSE_CONTENT_TYPE:function(){return dR},UPDATE_SELECTED_SERVER:function(){return aR},UPDATE_SERVER_VARIABLE_VALUE:function(){return pR},clearRequestBodyValidateError:function(){return S1e},clearRequestBodyValue:function(){return x1e},initRequestBodyValidateError:function(){return w1e},setActiveExamplesMember:function(){return y1e},setRequestBodyInclusion:function(){return g1e},setRequestBodyValidateError:function(){return E1e},setRequestBodyValue:function(){return h1e},setRequestContentType:function(){return v1e},setResponseContentType:function(){return b1e},setRetainRequestBodyValueFlag:function(){return m1e},setSelectedServer:function(){return p1e},setServerVariableValue:function(){return _1e}});var lA={};me.r(lA),me.d(lA,{activeExamplesMember:function(){return P1e},hasUserEditedBody:function(){return I1e},requestBodyErrors:function(){return k1e},requestBodyInclusionSetting:function(){return j1e},requestBodyValue:function(){return C1e},requestContentType:function(){return N1e},responseContentType:function(){return M1e},selectDefaultRequestBodyValue:function(){return T1e},selectedServer:function(){return O1e},serverEffectiveValue:function(){return $1e},serverVariableValue:function(){return D1e},serverVariables:function(){return q1e},shouldRetainRequestBodyValue:function(){return R1e},validOperationMethods:function(){return B1e},validateBeforeExecute:function(){return F1e},validateShallowRequired:function(){return L1e}});var d=function(e){var t={};return me.d(t,e),t}({Component:function(){return ot.Component},PureComponent:function(){return ot.PureComponent},createContext:function(){return ot.createContext},createElement:function(){return ot.createElement},default:function(){return ot.default},forwardRef:function(){return ot.forwardRef},useCallback:function(){return ot.useCallback},useContext:function(){return ot.useContext},useEffect:function(){return ot.useEffect},useMemo:function(){return ot.useMemo},useRef:function(){return ot.useRef},useState:function(){return ot.useState}}),oc=function(e){var t={};return me.d(t,e),t}({applyMiddleware:function(){return uW},bindActionCreators:function(){return oW},compose:function(){return _L},createStore:function(){return bL}}),K=function(e){var t={};return me.d(t,e),t}({List:function(){return Pa.List},Map:function(){return Pa.Map},OrderedMap:function(){return Pa.OrderedMap},Seq:function(){return Pa.Seq},Set:function(){return Pa.Set},default:function(){return lW},fromJS:function(){return Pa.fromJS}}),ive=me(919),Lc=me.n(ive),sve=function(e){var t={};return me.d(t,e),t}({combineReducers:function(){return gW.combineReducers}}),oU=function(e){var t={};return me.d(t,e),t}({serializeError:function(){return vW.serializeError}}),ave=function(e){var t={};return me.d(t,e),t}({default:function(){return cJ}});const Em="err_new_thrown_err",bC="err_new_thrown_err_batch",_C="err_new_spec_err",EC="err_new_spec_err_batch",SC="err_new_auth_err",wC="err_clear",xC="err_clear_by";function ove(e){return{type:Em,payload:(0,oU.serializeError)(e)}}function uve(e){return{type:bC,payload:e}}function cve(e){return{type:_C,payload:e}}function lve(e){return{type:EC,payload:e}}function fve(e){return{type:SC,payload:e}}function dve(e={}){return{type:wC,payload:e}}function pve(e=()=>!0){return{type:xC,payload:e}}var Xt=function(){var t={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>"u")return t;try{t=window;for(var r of["File","Blob","FormData"])r in window&&(t[r]=window[r])}catch(n){console.error(n)}return t}(),uc=(function(e){var t={};me.d(t,e)}({}),function(e){var t={};me.d(t,e)}({}),function(e){var t={};return me.d(t,e),t}({default:function(){return CJ}})),hve=function(e){var t={};return me.d(t,e),t}({default:function(){return sK}}),uU=function(e){var t={};return me.d(t,e),t}({default:function(){return fK}}),mve=function(e){var t={};return me.d(t,e),t}({default:function(){return pK}}),E3=function(e){var t={};return me.d(t,e),t}({default:function(){return mK}}),gve=function(e){var t={};return me.d(t,e),t}({default:function(){return bK}}),yve=me(209),Uo=me.n(yve),vve=me(802),bve=me.n(vve);const _ve=K.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function Sd(e,{isOAS3:t}={}){if(!K.default.Map.isMap(e))return{schema:K.default.Map(),parameterContentMediaType:null};if(!t)return e.get("in")==="body"?{schema:e.get("schema",K.default.Map()),parameterContentMediaType:null}:{schema:e.filter((r,n)=>_ve.includes(n)),parameterContentMediaType:null};if(e.get("content")){const r=e.get("content",K.default.Map({})).keySeq().first();return{schema:e.getIn(["content",r,"schema"],K.default.Map()),parameterContentMediaType:r}}return{schema:e.get("schema")?e.get("schema",K.default.Map()):K.default.Map(),parameterContentMediaType:null}}var S3=me(287).Buffer;const w3="default",gf=e=>K.default.Iterable.isIterable(e),Wn=e=>gf(e)?e.toJS():e;function qa(e){return Zi(e)?Wn(e):{}}function Xi(e){if(gf(e)||e instanceof Xt.File||!Zi(e))return e;if(Array.isArray(e))return K.default.Seq(e).map(Xi).toList();if((0,E3.default)(e.entries)){const t=function(n){if(!(0,E3.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}(e);return K.default.OrderedMap(t).map(Xi)}return K.default.OrderedMap(e).map(Xi)}function _o(e){return Array.isArray(e)?e:[e]}function X1(e){return typeof e=="function"}function Zi(e){return!!e&&typeof e=="object"}function js(e){return typeof e=="function"}function rp(e){return Array.isArray(e)}const Eve=uc.default;function Ai(e,t){return Object.keys(e).reduce((r,n)=>(r[n]=t(e[n],n),r),{})}function x3(e,t){return Object.keys(e).reduce((r,n)=>{let i=t(e[n],n);return i&&typeof i=="object"&&Object.assign(r,i),r},{})}function Sve(e){return({dispatch:t,getState:r})=>n=>i=>typeof i=="function"?i(e()):n(i)}function fA(e,t,r,n,i){if(!t)return[];let s=[],a=t.get("nullable"),o=t.get("required"),u=t.get("maximum"),c=t.get("minimum"),l=t.get("type"),f=t.get("format"),h=t.get("maxLength"),p=t.get("minLength"),g=t.get("uniqueItems"),y=t.get("maxItems"),v=t.get("minItems"),E=t.get("pattern");const b=r||o===!0,S=e!=null,x=b||S&&l==="array"||!(!b&&!S),_=a&&e===null;if(b&&!S&&!_&&!n&&!l)return s.push("Required field is not provided"),s;if(_||!l||!x)return[];let A=l==="string"&&e,C=l==="array"&&Array.isArray(e)&&e.length,T=l==="array"&&K.default.List.isList(e)&&e.count();const O=[A,C,T,l==="array"&&typeof e=="string"&&e,l==="file"&&e instanceof Xt.File,l==="boolean"&&(e||e===!1),l==="number"&&(e||e===0),l==="integer"&&(e||e===0),l==="object"&&typeof e=="object"&&e!==null,l==="object"&&typeof e=="string"&&e].some(M=>!!M);if(b&&!O&&!n)return s.push("Required field is not provided"),s;if(l==="object"&&(i===null||i==="application/json")){let M=e;if(typeof e=="string")try{M=JSON.parse(e)}catch{return s.push("Parameter string value must be valid JSON"),s}t&&t.has("required")&&js(o.isList)&&o.isList()&&o.forEach(k=>{M[k]===void 0&&s.push({propKey:k,error:"Required property not found"})}),t&&t.has("properties")&&t.get("properties").forEach((k,D)=>{const P=fA(M[D],k,!1,n,i);s.push(...P.map(H=>({propKey:D,error:H})))})}if(E){let M=((k,D)=>{if(!new RegExp(D).test(k))return"Value must follow pattern "+D})(e,E);M&&s.push(M)}if(v&&l==="array"){let M=((k,D)=>{if(!k&&D>=1||k&&k.length<D)return`Array must contain at least ${D} item${D===1?"":"s"}`})(e,v);M&&s.push(M)}if(y&&l==="array"){let M=((k,D)=>{if(k&&k.length>D)return`Array must not contain more then ${D} item${D===1?"":"s"}`})(e,y);M&&s.push({needRemove:!0,error:M})}if(g&&l==="array"){let M=((k,D)=>{if(k&&(D==="true"||D===!0)){const P=(0,K.fromJS)(k),H=P.toSet();if(k.length>H.size){let X=(0,K.Set)();if(P.forEach((V,G)=>{P.filter(Q=>js(Q.equals)?Q.equals(V):Q===V).size>1&&(X=X.add(G))}),X.size!==0)return X.map(V=>({index:V,error:"No duplicates allowed."})).toArray()}}})(e,g);M&&s.push(...M)}if(h||h===0){let M=((k,D)=>{if(k.length>D)return`Value must be no longer than ${D} character${D!==1?"s":""}`})(e,h);M&&s.push(M)}if(p){let M=((k,D)=>{if(k.length<D)return`Value must be at least ${D} character${D!==1?"s":""}`})(e,p);M&&s.push(M)}if(u||u===0){let M=((k,D)=>{if(k>D)return`Value must be less than ${D}`})(e,u);M&&s.push(M)}if(c||c===0){let M=((k,D)=>{if(k<D)return`Value must be greater than ${D}`})(e,c);M&&s.push(M)}if(l==="string"){let M;if(M=f==="date-time"?(k=>{if(isNaN(Date.parse(k)))return"Value must be a DateTime"})(e):f==="uuid"?(k=>{if(k=k.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(k))return"Value must be a Guid"})(e):(k=>{if(k&&typeof k!="string")return"Value must be a string"})(e),!M)return s;s.push(M)}else if(l==="boolean"){let M=(k=>{if(k!=="true"&&k!=="false"&&k!==!0&&k!==!1)return"Value must be a boolean"})(e);if(!M)return s;s.push(M)}else if(l==="number"){let M=(k=>{if(!/^-?\d+(\.?\d+)?$/.test(k))return"Value must be a number"})(e);if(!M)return s;s.push(M)}else if(l==="integer"){let M=(k=>{if(!/^-?\d+$/.test(k))return"Value must be an integer"})(e);if(!M)return s;s.push(M)}else if(l==="array"){if(!C&&!T)return s;e&&e.forEach((M,k)=>{const D=fA(M,t.get("items"),!1,n,i);s.push(...D.map(P=>({index:k,error:P})))})}else if(l==="file"){let M=(k=>{if(k&&!(k instanceof Xt.File))return"Value must be a file"})(e);if(!M)return s;s.push(M)}return s}const yf=e=>{let t;return t=e instanceof S3?e:S3.from(e.toString(),"utf-8"),t.toString("base64")},A3={operationsSorter:{alpha:(e,t)=>e.get("path").localeCompare(t.get("path")),method:(e,t)=>e.get("method").localeCompare(t.get("method"))},tagsSorter:{alpha:(e,t)=>e.localeCompare(t)}},Sm=e=>{let t=[];for(let r in e){let n=e[r];n!==void 0&&n!==""&&t.push([r,"=",encodeURIComponent(n).replace(/%20/g,"+")].join(""))}return t.join("&")},wve=(e,t,r)=>!!(0,hve.default)(r,n=>(0,mve.default)(e[n],t[n]));function O3(e){return!(!e||e.indexOf("localhost")>=0||e.indexOf("127.0.0.1")>=0||e==="none")}const Bc=e=>typeof e=="string"||e instanceof String?e.trim().replace(/\s/g,"%20"):"",cU=e=>(0,gve.default)(Bc(e).replace(/%20/g,"_")),Oa=e=>{const t=/^x-/;return K.Map.isMap(e)?e.filter((r,n)=>t.test(n)):Object.keys(e).filter(r=>t.test(r))},lU=e=>e.filter((t,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r));function fU(e,t,r=()=>!0){if(typeof e!="object"||Array.isArray(e)||e===null)return e;const n=Object.assign({},e);return Object.keys(n).forEach(i=>{i===t&&r(n[i],i)?delete n[i]:n[i]=fU(n[i],t,r)}),n}function Xr(e){if(typeof e=="string")return e;if(e&&e.toJS&&(e=e.toJS()),typeof e=="object"&&e!==null)try{return JSON.stringify(e,null,2)}catch{return String(e)}return e==null?"":e.toString()}function np(e,{returnAll:t=!1,allowHashes:r=!0}={}){if(!K.default.Map.isMap(e))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");const n=e.get("name"),i=e.get("in");let s=[];return e&&e.hashCode&&i&&n&&r&&s.push(`${i}.${n}.hash-${e.hashCode()}`),i&&n&&s.push(`${i}.${n}`),s.push(n),t?s:s[0]||""}function dU(e,t){return np(e,{returnAll:!0}).map(r=>t[r]).filter(r=>r!==void 0)[0]}function C3(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const AC=e=>!e||!(!gf(e)||!e.isEmpty()),R3=e=>e;class pU{constructor(t={}){Lc()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}},t),this.getSystem=this._getSystem.bind(this),this.store=function(n,i,s){return function(o,u,c){let l=[Sve(c)];const f=Xt.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||oc.compose;return(0,oc.createStore)(o,u,f((0,oc.applyMiddleware)(...l)))}(n,i,s)}(R3,(0,K.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(t,r=!0){var n=dA(t,this.getSystem());hU(this.system,n),r&&this.buildSystem(),pA.call(this.system,t,this.getSystem())&&this.buildSystem()}buildSystem(t=!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()),t&&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:K.default,React:d.default},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(t){this.system.configs=t}rebuildReducer(){this.store.replaceReducer(function(r){return function(i){let s=Object.keys(i).reduce((a,o)=>(a[o]=function(c){return(l=new K.Map,f)=>{if(!c)return l;let h=c[f.type];if(h){const p=cc(h)(l,f);return p===null?l:p}return l}}(i[o]),a),{});return Object.keys(s).length?(0,sve.combineReducers)(s):R3}(Ai(r,n=>n.reducers))}(this.system.statePlugins))}getType(t){let r=t[0].toUpperCase()+t.slice(1);return x3(this.system.statePlugins,(n,i)=>{let s=n[t];if(s)return{[i+r]:s}})}getSelectors(){return this.getType("selectors")}getActions(){return Ai(this.getType("actions"),t=>x3(t,(r,n)=>{if(X1(r))return{[n]:r}}))}getWrappedAndBoundActions(t){return Ai(this.getBoundActions(t),(r,n)=>{let i=this.system.statePlugins[n.slice(0,-7)].wrapActions;return i?Ai(r,(s,a)=>{let o=i[a];return o?(Array.isArray(o)||(o=[o]),o.reduce((u,c)=>{let l=(...f)=>c(u,this.getSystem())(...f);if(!X1(l))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return cc(l)},s||Function.prototype)):s}):r})}getWrappedAndBoundSelectors(t,r){return Ai(this.getBoundSelectors(t,r),(n,i)=>{let s=[i.slice(0,-9)],a=this.system.statePlugins[s].wrapSelectors;return a?Ai(n,(o,u)=>{let c=a[u];return c?(Array.isArray(c)||(c=[c]),c.reduce((l,f)=>{let h=(...p)=>f(l,this.getSystem())(t().getIn(s),...p);if(!X1(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(t){return Object.keys(this.system.statePlugins).reduce((r,n)=>(r[n]=t.get(n),r),{})}getStateThunks(t){return Object.keys(this.system.statePlugins).reduce((r,n)=>(r[n]=()=>t().get(n),r),{})}getFn(){return{fn:this.system.fn}}getComponents(t){const r=this.system.components[t];return Array.isArray(r)?r.reduce((n,i)=>i(n,this.getSystem())):t!==void 0?this.system.components[t]:this.system.components}getBoundSelectors(t,r){return Ai(this.getSelectors(),(n,i)=>{let s=[i.slice(0,-9)];return Ai(n,a=>(...o)=>{let u=cc(a).apply(null,[t().getIn(s),...o]);return typeof u=="function"&&(u=cc(u)(r())),u})})}getBoundActions(t){t=t||this.getStore().dispatch;const r=this.getActions(),n=i=>typeof i!="function"?Ai(i,s=>n(s)):(...s)=>{var a=null;try{a=i(...s)}catch(o){a={type:Em,error:!0,payload:(0,oU.serializeError)(o)}}finally{return a}};return Ai(r,i=>(0,oc.bindActionCreators)(n(i),t))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(t){return r=>Lc()({},this.getWrappedAndBoundActions(r),this.getFn(),t)}}function dA(e,t){return Zi(e)&&!rp(e)?(0,ave.default)({},e):js(e)?dA(e(t),t):rp(e)?e.map(r=>dA(r,t)).reduce(hU,{components:t.getComponents()}):{}}function pA(e,t,{hasLoaded:r}={}){let n=r;return Zi(e)&&!rp(e)&&typeof e.afterLoad=="function"&&(n=!0,cc(e.afterLoad).call(this,t)),js(e)?pA.call(this,e(t),t,{hasLoaded:n}):rp(e)?e.map(i=>pA.call(this,i,t,{hasLoaded:n})):n}function hU(e={},t={}){if(!Zi(e))return{};if(!Zi(t))return e;t.wrapComponents&&(Ai(t.wrapComponents,(n,i)=>{const s=e.components&&e.components[i];s&&Array.isArray(s)?(e.components[i]=s.concat([n]),delete t.wrapComponents[i]):s&&(e.components[i]=[s,n],delete t.wrapComponents[i])}),Object.keys(t.wrapComponents).length||delete t.wrapComponents);const{statePlugins:r}=e;if(Zi(r))for(let n in r){const i=r[n];if(!Zi(i))continue;const{wrapActions:s,wrapSelectors:a}=i;if(Zi(s))for(let o in s){let u=s[o];Array.isArray(u)||(u=[u],s[o]=u),t&&t.statePlugins&&t.statePlugins[n]&&t.statePlugins[n].wrapActions&&t.statePlugins[n].wrapActions[o]&&(t.statePlugins[n].wrapActions[o]=s[o].concat(t.statePlugins[n].wrapActions[o]))}if(Zi(a))for(let o in a){let u=a[o];Array.isArray(u)||(u=[u],a[o]=u),t&&t.statePlugins&&t.statePlugins[n]&&t.statePlugins[n].wrapSelectors&&t.statePlugins[n].wrapSelectors[o]&&(t.statePlugins[n].wrapSelectors[o]=a[o].concat(t.statePlugins[n].wrapSelectors[o]))}}return Lc()(e,t)}function cc(e,{logErrors:t=!0}={}){return typeof e!="function"?e:function(...r){try{return e.call(this,...r)}catch(n){return t&&console.error(n),null}}}var Uc=function(e){var t={};return me.d(t,e),t}({default:function(){return xK}});const OC="show_popup",CC="authorize",RC="logout",TC="authorize_oauth2",IC="configure_auth",jC="restore_authorization";function xve(e){return{type:OC,payload:e}}function Ave(e){return{type:CC,payload:e}}const Ove=e=>({authActions:t})=>{t.authorize(e),t.persistAuthorizationIfNeeded()};function Cve(e){return{type:RC,payload:e}}const Rve=e=>({authActions:t})=>{t.logout(e),t.persistAuthorizationIfNeeded()},Tve=e=>({authActions:t,errActions:r})=>{let{auth:n,token:i,isValid:s}=e,{schema:a,name:o}=n,u=a.get("flow");delete Xt.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)}):t.authorizeOauth2WithPersistOption({auth:n,token:i})};function Ive(e){return{type:TC,payload:e}}const jve=e=>({authActions:t})=>{t.authorizeOauth2(e),t.persistAuthorizationIfNeeded()},kve=e=>({authActions:t})=>{let{schema:r,name:n,username:i,password:s,passwordType:a,clientId:o,clientSecret:u}=e,c={grant_type:"password",scope:e.scopes.join(" "),username:i,password:s},l={};switch(a){case"request-body":(function(h,p,g){p&&Object.assign(h,{client_id:p}),g&&Object.assign(h,{client_secret:g})})(c,o,u);break;case"basic":l.Authorization="Basic "+yf(o+":"+u);break;default:console.warn(`Warning: invalid passwordType ${a} was passed, not including client id and secret`)}return t.authorizeRequest({body:Sm(c),url:r.get("tokenUrl"),name:n,headers:l,query:{},auth:e})},Pve=e=>({authActions:t})=>{let{schema:r,scopes:n,name:i,clientId:s,clientSecret:a}=e,o={Authorization:"Basic "+yf(s+":"+a)},u={grant_type:"client_credentials",scope:n.join(" ")};return t.authorizeRequest({body:Sm(u),name:i,url:r.get("tokenUrl"),auth:e,headers:o})},Nve=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=e,u={grant_type:"authorization_code",code:e.code,client_id:s,client_secret:a,redirect_uri:t,code_verifier:o};return r.authorizeRequest({body:Sm(u),name:i,url:n.get("tokenUrl"),auth:e})},Mve=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=e,u={Authorization:"Basic "+yf(s+":"+a)},c={grant_type:"authorization_code",code:e.code,client_id:s,redirect_uri:t,code_verifier:o};return r.authorizeRequest({body:Sm(c),name:i,url:n.get("tokenUrl"),auth:e,headers:u})},Dve=e=>({fn:t,getConfigs:r,authActions:n,errActions:i,oas3Selectors:s,specSelectors:a,authSelectors:o})=>{let u,{body:c,query:l={},headers:f={},name:h,url:p,auth:g}=e,{additionalQueryStringParams:y}=o.getConfigs()||{};if(a.isOAS3()){let b=s.serverEffectiveValue(s.selectedServer());u=(0,Uc.default)(p,b,!0)}else u=(0,Uc.default)(p,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"},f);t.fetch({url:v,method:"post",headers:E,query:l,body:c,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then(function(b){let S=JSON.parse(b.data),x=S&&(S.error||""),_=S&&(S.parseError||"");b.ok?x||_?i.newAuthErr({authId:h,level:"error",source:"auth",message:JSON.stringify(S)}):n.authorizeOauth2WithPersistOption({auth:g,token:S}):i.newAuthErr({authId:h,level:"error",source:"auth",message:b.statusText})}).catch(b=>{let S=new Error(b).message;if(b.response&&b.response.data){const x=b.response.data;try{const _=typeof x=="string"?JSON.parse(x):x;_.error&&(S+=`, error: ${_.error}`),_.error_description&&(S+=`, description: ${_.error_description}`)}catch{}}i.newAuthErr({authId:h,level:"error",source:"auth",message:S})})};function qve(e){return{type:IC,payload:e}}function $ve(e){return{type:jC,payload:e}}const Fve=()=>({authSelectors:e,getConfigs:t})=>{if(!t().persistAuthorization)return;const r=e.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},Lve=(e,t)=>()=>{Xt.swaggerUIRedirectOauth2=t,Xt.open(e)};var Bve={[OC]:(e,{payload:t})=>e.set("showDefinitions",t),[CC]:(e,{payload:t})=>{let r=(0,K.fromJS)(t),n=e.get("authorized")||(0,K.Map)();return r.entrySeq().forEach(([i,s])=>{if(!js(s.getIn))return e.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 "+yf(o+":"+u)}),n=n.setIn([i,"schema"],s.get("schema"))}}),e.set("authorized",n)},[TC]:(e,{payload:t})=>{let r,{auth:n,token:i}=t;n.token=Object.assign({},i),r=(0,K.fromJS)(n);let s=e.get("authorized")||(0,K.Map)();return s=s.set(r.get("name"),r),e.set("authorized",s)},[RC]:(e,{payload:t})=>{let r=e.get("authorized").withMutations(n=>{t.forEach(i=>{n.delete(i)})});return e.set("authorized",r)},[IC]:(e,{payload:t})=>e.set("configs",t),[jC]:(e,{payload:t})=>e.set("authorized",(0,K.fromJS)(t.authorized))},et=function(e){var t={};return me.d(t,e),t}({createSelector:function(){return iB}});const wm=e=>e,Uve=(0,et.createSelector)(wm,e=>e.get("showDefinitions")),Vve=(0,et.createSelector)(wm,()=>({specSelectors:e})=>{let t=e.securityDefinitions()||(0,K.Map)({}),r=(0,K.List)();return t.entrySeq().forEach(([n,i])=>{let s=(0,K.Map)();s=s.set(n,i),r=r.push(s)}),r}),zve=(e,t)=>({specSelectors:r})=>(0,K.List)(r.isOAS3()?["components","securitySchemes",t]:["securityDefinitions",t]),Wve=(e,t)=>({specSelectors:r})=>{console.warn("WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.");let n=r.securityDefinitions(),i=(0,K.List)();return t.valueSeq().forEach(s=>{let a=(0,K.Map)();s.entrySeq().forEach(([o,u])=>{let c,l=n.get(o);l.get("type")==="oauth2"&&u.size&&(c=l.get("scopes"),c.keySeq().forEach(f=>{u.contains(f)||(c=c.delete(f))}),l=l.set("allowedScopes",c)),a=a.set(o,l)}),i=i.push(a)}),i},Jve=(e,t=(0,K.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,K.List)();let i=(0,K.List)();return n.forEach(s=>{let a=t.find(o=>o.get(s.keySeq().first()));a&&(s.forEach((o,u)=>{if(o.get("type")==="oauth2"){const c=a.get(u);let l=o.get("scopes");K.List.isList(c)&&K.Map.isMap(l)&&(l.keySeq().forEach(f=>{c.contains(f)||(l=l.delete(f))}),s=s.set(u,o.set("scopes",l)))}}),i=i.push(s))}),i},Kve=(0,et.createSelector)(wm,e=>e.get("authorized")||(0,K.Map)()),Hve=(e,t)=>({authSelectors:r})=>{let n=r.authorized();return K.List.isList(t)?!!t.toJS().filter(i=>Object.keys(i).map(s=>!!n.get(s)).indexOf(!1)===-1).length:null},Gve=(0,et.createSelector)(wm,e=>e.get("configs")),Yve=(e,{authSelectors:t,specSelectors:r})=>({path:n,method:i,operation:s,extras:a})=>{let o={authorized:t.authorized()&&t.authorized().toJS(),definitions:r.securityDefinitions()&&r.securityDefinitions().toJS(),specSecurity:r.security()&&r.security().toJS()};return e({path:n,method:i,operation:s,securities:o,...a})},Xve=(e,t)=>r=>{const{getConfigs:n,authActions:i}=t,s=n();if(e(r),s.persistAuthorization){const a=localStorage.getItem("authorized");a&&i.restoreAuthorization({authorized:JSON.parse(a)})}},Zve=(e,t)=>r=>{if(e(r),t.getConfigs().persistAuthorization)try{const[{schema:n,value:i}]=Object.values(r),s=n.get("type")==="apiKey",a=n.get("in")==="cookie";s&&a&&(document.cookie=`${n.get("name")}=${i}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},Qve=(e,t)=>r=>{const n=t.getConfigs(),i=t.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 c=a.getIn(["schema","name"]);document.cookie=`${c}=; Max-Age=-99999999`}})}catch(s){console.error("Error deleting cookie based apiKey from document.cookie.",s)}e(r)};var Rn=function(e){var t={};return me.d(t,e),t}({default:function(){return Kz}}),kC=function(e){var t={};return me.d(t,e),t}({default:function(){return sH}});class e0e extends d.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,kC.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("LockIcon");return d.default.createElement(n,r)}}var T3=e0e;class t0e extends d.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,kC.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("UnlockIcon");return d.default.createElement(n,r)}}var I3=t0e;function mU(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=n0e.bind(null,e),this.rootInjects.preauthorizeBasic=r0e.bind(null,e)},components:{LockAuthIcon:T3,UnlockAuthIcon:I3,LockAuthOperationIcon:T3,UnlockAuthOperationIcon:I3},statePlugins:{auth:{reducers:Bve,actions:zx,selectors:Wx,wrapActions:{authorize:Zve,logout:Qve}},configs:{wrapActions:{loaded:Xve}},spec:{wrapActions:{execute:Yve}}}}}function r0e(e,t,r,n){const{authActions:{authorize:i},specSelectors:{specJson:s,isOAS3:a}}=e,o=a()?["components","securitySchemes"]:["securityDefinitions"],u=s().getIn([...o,t]);return u?i({[t]:{value:{username:r,password:n},schema:u.toJS()}}):null}function n0e(e,t,r){const{authActions:{authorize:n},specSelectors:{specJson:i,isOAS3:s}}=e,a=s()?["components","securitySchemes"]:["securityDefinitions"],o=i().getIn([...a,t]);return o?n({[t]:{value:r,schema:o.toJS()}}):null}var Os=function(e){var t={};return me.d(t,e),t}({JSON_SCHEMA:function(){return Ac},default:function(){return Wa}});const PC="configs_update",NC="configs_toggle";function i0e(e,t){return{type:PC,payload:{[e]:t}}}function s0e(e){return{type:NC,payload:e}}const a0e=()=>()=>{},o0e=e=>t=>{const{fn:{fetch:r}}=t;return r(e)},u0e=(e,t)=>r=>{const{specActions:n,configsActions:i}=r;if(e)return i.downloadConfig(e).then(s,s);function s(a){a instanceof Error||a.status>=400?(n.updateLoadingStatus("failedConfig"),n.updateLoadingStatus("failedConfig"),n.updateUrl(""),console.error(a.statusText+" "+e.url),t(null)):t(((o,u)=>{try{return Os.default.load(o)}catch(c){return u&&u.errActions.newThrownErr(new Error(c)),{}}})(a.text,r))}},c0e=(e,t)=>e.getIn(Array.isArray(t)?t:[t]);var l0e={[PC]:(e,t)=>e.merge((0,K.fromJS)(t.payload)),[NC]:(e,t)=>{const r=t.payload,n=e.get(r);return e.set(r,!n)}};function gU(){return{statePlugins:{configs:{reducers:l0e,actions:Jx,selectors:Kx}}}}const Z1=e=>e?history.pushState(null,null,`#${e}`):window.location.hash="";var f0e=function(e){var t={};return me.d(t,e),t}({default:function(){return CY}});const j3="layout_scroll_to",k3="layout_clear_scroll";var d0e={fn:{getScrollParent:function(t,r){const n=document.documentElement;let i=getComputedStyle(t);const s=i.position==="absolute",a=r?/(auto|scroll|hidden)/:/(auto|scroll)/;if(i.position==="fixed")return n;for(let o=t;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:(e,t)=>r=>{try{t=t||r.fn.getScrollParent(e),f0e.default.createScroller(t).to(e)}catch(n){console.error(n)}},scrollTo:e=>({type:j3,payload:Array.isArray(e)?e:[e]}),clearScrollTo:()=>({type:k3}),readyToScroll:(e,t)=>r=>{const n=r.layoutSelectors.getScrollToKey();K.default.is(n,(0,K.fromJS)(e))&&(r.layoutActions.scrollToElement(t),r.layoutActions.clearScrollTo())},parseDeepLinkHash:e=>({layoutActions:t,layoutSelectors:r,getConfigs:n})=>{if(n().deepLinking&&e){let i=e.slice(1);i[0]==="!"&&(i=i.slice(1)),i[0]==="/"&&(i=i.slice(1));const s=i.split("/").map(l=>l||""),a=r.isShownKeyFromUrlHashArray(s),[o,u="",c=""]=a;if(o==="operations"){const l=r.isShownKeyFromUrlHashArray([u]);u.indexOf("_")>-1&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(l.map(f=>f.replace(/_/g," ")),!0)),t.show(l,!0)}(u.indexOf("_")>-1||c.indexOf("_")>-1)&&(console.warn("Warning: escaping deep link whitespace with `_` will be unsupported in v4.0, use `%20` instead."),t.show(a.map(l=>l.replace(/_/g," ")),!0)),t.show(a,!0),t.scrollTo(a)}}},selectors:{getScrollToKey:e=>e.get("scrollToKey"),isShownKeyFromUrlHashArray(e,t){const[r,n]=t;return n?["operations",r,n]:r?["operations-tag",r]:[]},urlHashArrayFromIsShownKey(e,t){let[r,n,i]=t;return r=="operations"?[n,i]:r=="operations-tag"?[n]:[]}},reducers:{[j3]:(e,t)=>e.set("scrollToKey",K.default.fromJS(t.payload)),[k3]:e=>e.delete("scrollToKey")},wrapActions:{show:(e,{getConfigs:t,layoutSelectors:r})=>(...n)=>{if(e(...n),t().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 Z1("/");a.length===2?Z1(Bc(`/${encodeURIComponent(o)}/${encodeURIComponent(u)}`)):a.length===1&&Z1(Bc(`/${encodeURIComponent(o)}`))}catch(i){console.error(i)}}}}}},P3=function(e){var t={};return me.d(t,e),t}({default:function(){return RX}}),p0e=(e,t)=>class extends d.default.Component{constructor(){super(...arguments);z(this,"onLoad",i=>{const{operation:s}=this.props,{tag:a,operationId:o}=s.toObject();let{isShownKey:u}=s.toObject();u=u||["operations",a,o],t.layoutActions.readyToScroll(u,i)})}render(){return d.default.createElement("span",{ref:this.onLoad},d.default.createElement(e,this.props))}},h0e=(e,t)=>class extends d.default.Component{constructor(){super(...arguments);z(this,"onLoad",i=>{const{tag:s}=this.props,a=["operations-tag",s];t.layoutActions.readyToScroll(a,i)})}render(){return d.default.createElement("span",{ref:this.onLoad},d.default.createElement(e,this.props))}};function yU(){return[d0e,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>(...r)=>{e(...r);const n=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:p0e,OperationTag:h0e}}]}var m0e=function(e){var t={};return me.d(t,e),t}({default:function(){return kX}});function g0e(e){return e.map(t=>{let r="is not of a type(s)",n=t.get("message").indexOf(r);if(n>-1){let i=t.get("message").slice(n+19).split(",");return t.set("message",t.get("message").slice(0,n)+function(a){return a.reduce((o,u,c,l)=>c===l.length-1&&l.length>1?o+"or "+u:l[c+1]&&l.length>2?o+u+", ":l[c+1]?o+u+" ":o+u,"should be a")}(i))}return t})}var hA=function(e){var t={};return me.d(t,e),t}({default:function(){return NX}});function y0e(e,{jsSpec:t}){return e}const v0e=[Hx,Gx];function Yu(e){let t={jsSpec:{}};return(0,m0e.default)(v0e,(n,i)=>{try{return i.transform(n,t).filter(s=>!!s)}catch(s){return console.error("Transformer error:",s),n}},e).filter(n=>!!n).map(n=>(!n.get("line")&&n.get("path"),n))}let Q1={line:0,level:"error",message:"Unknown error"};const vU=(0,et.createSelector)(e=>e,e=>e.get("errors",(0,K.List)())),b0e=(0,et.createSelector)(vU,e=>e.last());function bU(e){return{statePlugins:{err:{reducers:{[Em]:(t,{payload:r})=>{let n=Object.assign(Q1,r,{type:"thrown"});return t.update("errors",i=>(i||(0,K.List)()).push((0,K.fromJS)(n))).update("errors",i=>Yu(i))},[bC]:(t,{payload:r})=>(r=r.map(n=>(0,K.fromJS)(Object.assign(Q1,n,{type:"thrown"}))),t.update("errors",n=>(n||(0,K.List)()).concat((0,K.fromJS)(r))).update("errors",n=>Yu(n))),[_C]:(t,{payload:r})=>{let n=(0,K.fromJS)(r);return n=n.set("type","spec"),t.update("errors",i=>(i||(0,K.List)()).push((0,K.fromJS)(n)).sortBy(s=>s.get("line"))).update("errors",i=>Yu(i))},[EC]:(t,{payload:r})=>(r=r.map(n=>(0,K.fromJS)(Object.assign(Q1,n,{type:"spec"}))),t.update("errors",n=>(n||(0,K.List)()).concat((0,K.fromJS)(r))).update("errors",n=>Yu(n))),[SC]:(t,{payload:r})=>{let n=(0,K.fromJS)(Object.assign({},r));return n=n.set("type","auth"),t.update("errors",i=>(i||(0,K.List)()).push((0,K.fromJS)(n))).update("errors",i=>Yu(i))},[wC]:(t,{payload:r})=>{if(!r||!t.get("errors"))return t;let n=t.get("errors").filter(i=>i.keySeq().every(s=>{const a=i.get(s),o=r[s];return!o||a!==o}));return t.merge({errors:n})},[xC]:(t,{payload:r})=>{if(!r||typeof r!="function")return t;let n=t.get("errors").filter(i=>r(i));return t.merge({errors:n})}},actions:Vx,selectors:Yx}}}}function _0e(e,t){return e.filter((r,n)=>n.indexOf(t)!==-1)}function _U(){return{fn:{opsFilter:_0e}}}var At=function(e){var t={};return me.d(t,e),t}({default:function(){return Tw}}),E0e=({className:e=null,width:t=20,height:r=20,...n})=>d.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),d.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"})),S0e=({className:e=null,width:t=20,height:r=20,...n})=>d.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),d.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"})),w0e=({className:e=null,width:t=20,height:r=20,...n})=>d.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),d.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"})),x0e=({className:e=null,width:t=20,height:r=20,...n})=>d.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),d.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"})),A0e=({className:e=null,width:t=15,height:r=16,...n})=>d.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 15 16",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),d.default.createElement("g",{transform:"translate(2, -1)"},d.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"}))),O0e=({className:e=null,width:t=20,height:r=20,...n})=>d.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),d.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"})),C0e=({className:e=null,width:t=20,height:r=20,...n})=>d.default.createElement("svg",(0,At.default)({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",className:e,width:t,height:r,"aria-hidden":"true",focusable:"false"},n),d.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"})),EU=()=>({components:{ArrowUpIcon:E0e,ArrowDownIcon:S0e,ArrowIcon:w0e,CloseIcon:x0e,CopyIcon:A0e,LockIcon:O0e,UnlockIcon:C0e}});const MC="layout_update_layout",DC="layout_update_filter",qC="layout_update_mode",$C="layout_show";function R0e(e){return{type:MC,payload:e}}function T0e(e){return{type:DC,payload:e}}function I0e(e,t=!0){return e=_o(e),{type:$C,payload:{thing:e,shown:t}}}function j0e(e,t=""){return e=_o(e),{type:qC,payload:{thing:e,mode:t}}}var k0e={[MC]:(e,t)=>e.set("layout",t.payload),[DC]:(e,t)=>e.set("filter",t.payload),[$C]:(e,t)=>{const r=t.payload.shown,n=(0,K.fromJS)(t.payload.thing);return e.update("shown",(0,K.fromJS)({}),i=>i.set(n,r))},[qC]:(e,t)=>{let r=t.payload.thing,n=t.payload.mode;return e.setIn(["modes"].concat(r),(n||"")+"")}};const P0e=e=>e.get("layout"),N0e=e=>e.get("filter"),SU=(e,t,r)=>(t=_o(t),e.get("shown",(0,K.fromJS)({})).get((0,K.fromJS)(t),r)),M0e=(e,t,r="")=>(t=_o(t),e.getIn(["modes",...t],r)),D0e=(0,et.createSelector)(e=>e,e=>!SU(e,"editor")),q0e=(e,t)=>(r,...n)=>{let i=e(r,...n);const{fn:s,layoutSelectors:a,getConfigs:o}=t.getSystem(),u=o(),{maxDisplayedTags:c}=u;let l=a.currentFilter();return l&&l!==!0&&(i=s.opsFilter(i,l)),c>=0&&(i=i.slice(0,c)),i};function wU(){return{statePlugins:{layout:{reducers:k0e,actions:Xx,selectors:Zx},spec:{wrapSelectors:Qx}}}}function xU({configs:e}){const t={debug:0,info:1,log:2,warn:3,error:4},r=a=>t[a]||-1;let{logLevel:n}=e,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 ew=!1;function AU(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>(...t)=>(ew=!0,e(...t)),updateJsonSpec:(e,t)=>(...r)=>{const n=t.getConfigs().onComplete;return ew&&typeof n=="function"&&(setTimeout(n,0),ew=!1),e(...r)}}}}}}const N3=e=>{const t="_**[]";return e.indexOf(t)<0?e:e.split(t)[0].trim()},$0e=e=>e==="-d "||/^[_\/-]/g.test(e)?e:"'"+e.replace(/'/g,"'\\''")+"'",F0e=e=>(e=e.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^
285
+ `))==="-d "?e.replace(/-d /g,`-d ^
286
+ `):/^[_\/-]/g.test(e)?e:'"'+e+'"',L0e=e=>e==="-d "?e:/\n/.test(e)?`@"
287
+ ${e.replace(/`/g,"``").replace(/\$/g,"`$")}
288
+ "@`:/^[_\/-]/.test(e)?e:`'${e.replace(/'/g,"''")}'`,FC=(e,t,r,n="")=>{let i=!1,s="";const a=(...p)=>s+=" "+p.map(t).join(" "),o=(...p)=>s+=p.map(t).join(" "),u=()=>s+=` ${r}`,c=(p=1)=>s+=" ".repeat(p);let l=e.get("headers");s+="curl"+n;const f=e.get("curlOptions");if(K.List.isList(f)&&!f.isEmpty()&&a(...e.get("curlOptions")),a("-X",e.get("method")),u(),c(),o(`${e.get("url")}`),l&&l.size)for(let p of e.get("headers").entries()){u(),c();let[g,y]=p;o("-H",`${g}: ${y}`),i=i||/^content-type$/i.test(g)&&/^multipart\/form-data$/i.test(y)}const h=e.get("body");if(h)if(i&&["POST","PUT","PATCH"].includes(e.get("method")))for(let[p,g]of h.entrySeq()){let y=N3(p);u(),c(),o("-F"),g instanceof Xt.File&&typeof g.valueOf()=="string"?a(`${y}=${g.data}${g.type?`;type=${g.type}`:""}`):g instanceof Xt.File?a(`${y}=@${g.name}${g.type?`;type=${g.type}`:""}`):a(`${y}=${g}`)}else if(h instanceof Xt.File)u(),c(),o(`--data-binary '@${h.name}'`);else{u(),c(),o("-d ");let p=h;K.Map.isMap(p)?o(function(y){let v=[];for(let[E,b]of y.get("body").entrySeq()){let S=N3(E);b instanceof Xt.File?v.push(` "${S}": {
289
+ "name": "${b.name}"${b.type?`,
290
+ "type": "${b.type}"`:""}
291
+ }`):v.push(` "${S}": ${JSON.stringify(b,null,2).replace(/(\r\n|\r|\n)/g,`
292
+ `)}`)}return`{
293
+ ${v.join(`,
294
+ `)}
295
+ }`}(e)):(typeof p!="string"&&(p=JSON.stringify(p)),o(p))}else h||e.get("method")!=="POST"||(u(),c(),o("-d ''"));return s},B0e=e=>FC(e,L0e,"`\n",".exe"),OU=e=>FC(e,$0e,`\\
296
+ `),U0e=e=>FC(e,F0e,`^
297
+ `),LC=e=>e||(0,K.Map)(),CU=(0,et.createSelector)(LC,e=>{const t=e.get("languages"),r=e.get("generators",(0,K.Map)());return!t||t.isEmpty()?r:r.filter((n,i)=>t.includes(i))}),V0e=e=>({fn:t})=>CU(e).map((r,n)=>{const i=(s=>t[`requestSnippetGenerator_${s}`])(n);return typeof i!="function"?null:r.set("fn",i)}).filter(r=>r),z0e=(0,et.createSelector)(LC,e=>e.get("activeLanguage")),W0e=(0,et.createSelector)(LC,e=>e.get("defaultExpanded"));var Ot=function(e){var t={};return me.d(t,e),t}({default:function(){return pZ}}),xm=function(e){var t={};return me.d(t,e),t}({CopyToClipboard:function(){return vZ.CopyToClipboard}});const J0e={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"},K0e={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 H0e=({request:e,requestSnippetsSelectors:t,getComponent:r})=>{var E;const n=(0,d.useRef)(null),i=r("ArrowUpIcon"),s=r("ArrowDownIcon"),a=r("SyntaxHighlighter",!0),[o,u]=(0,d.useState)((E=t.getSnippetGenerators())==null?void 0:E.keySeq().first()),[c,l]=(0,d.useState)(t==null?void 0:t.getDefaultExpanded()),f=t.getSnippetGenerators(),h=f.get(o),p=h.get("fn")(e),g=()=>{l(!c)},y=b=>b===o?K0e:J0e,v=b=>{const{target:S,deltaY:x}=b,{scrollHeight:_,offsetHeight:A,scrollTop:C}=S;_>A&&(C===0&&x<0||A+C>=_&&x>0)&&b.preventDefault()};return(0,d.useEffect)(()=>{},[]),(0,d.useEffect)(()=>{const b=Array.from(n.current.childNodes).filter(S=>{var x;return!!S.nodeType&&((x=S.classList)==null?void 0:x.contains("curl-command"))});return b.forEach(S=>S.addEventListener("mousewheel",v,{passive:!1})),()=>{b.forEach(S=>S.removeEventListener("mousewheel",v))}},[e]),d.default.createElement("div",{className:"request-snippets",ref:n},d.default.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},d.default.createElement("h4",{onClick:()=>g(),style:{cursor:"pointer"}},"Snippets"),d.default.createElement("button",{onClick:()=>g(),style:{border:"none",background:"none"},title:c?"Collapse operation":"Expand operation"},c?d.default.createElement(s,{className:"arrow",width:"10",height:"10"}):d.default.createElement(i,{className:"arrow",width:"10",height:"10"}))),c&&d.default.createElement("div",{className:"curl-command"},d.default.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},f.entrySeq().map(([b,S])=>d.default.createElement("div",{className:(0,Ot.default)("btn",{active:b===o}),style:y(b),key:b,onClick:()=>(x=>{o!==x&&u(x)})(b)},d.default.createElement("h4",{style:b===o?{color:"white"}:{}},S.get("title"))))),d.default.createElement("div",{className:"copy-to-clipboard"},d.default.createElement(xm.CopyToClipboard,{text:p},d.default.createElement("button",null))),d.default.createElement("div",null,d.default.createElement(a,{language:h.get("syntax"),className:"curl microlight",renderPlainText:({children:b,PlainTextViewer:S})=>d.default.createElement(S,{className:"curl"},b)},p))))},RU=()=>({components:{RequestSnippets:H0e},fn:{requestSnippetGenerator_curl_bash:OU,requestSnippetGenerator_curl_cmd:U0e,requestSnippetGenerator_curl_powershell:B0e},statePlugins:{requestSnippets:{selectors:eA}}});const Vp=class Vp extends d.Component{constructor(r,n){super(r,n);z(this,"toggleCollapsed",()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})});z(this,"onLoad",r=>{if(r&&this.props.layoutSelectors){const n=this.props.layoutSelectors.getScrollToKey();K.default.is(n,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,r.parentElement)}});let{expanded:i,collapsedContent:s}=this.props;this.state={expanded:i,collapsedContent:s||Vp.defaultProps.collapsedContent}}componentDidMount(){const{hideSelfOnExpand:r,expanded:n,modelName:i}=this.props;r&&n&&this.props.onToggle(i,n)}UNSAFE_componentWillReceiveProps(r){this.props.expanded!==r.expanded&&this.setState({expanded:r.expanded})}render(){const{title:r,classes:n}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?d.default.createElement("span",{className:n||""},this.props.children):d.default.createElement("span",{className:n||"",ref:this.onLoad},d.default.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},r&&d.default.createElement("span",{className:"pointer"},r),d.default.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&d.default.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}};z(Vp,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:K.default.List([])});let mA=Vp;const G0e=({initialTab:e,isExecute:t,schema:r,example:n})=>{const i=(0,d.useMemo)(()=>({example:"example",model:"model"}),[]),s=(0,d.useMemo)(()=>Object.keys(i),[i]).includes(e)&&r&&!t?e:i.example,a=(l=>{const f=(0,d.useRef)();return(0,d.useEffect)(()=>{f.current=l}),f.current})(t),[o,u]=(0,d.useState)(s),c=(0,d.useCallback)(l=>{u(l.target.dataset.name)},[]);return(0,d.useEffect)(()=>{a&&!t&&n&&u(i.example)},[a,t,n]),{activeTab:o,onTabChange:c,tabs:i}};var Y0e=({schema:e,example:t,isExecute:r=!1,specPath:n,includeWriteOnly:i=!1,includeReadOnly:s=!1,getComponent:a,getConfigs:o,specSelectors:u})=>{const{defaultModelRendering:c,defaultModelExpandDepth:l}=o(),f=a("ModelWrapper"),h=a("HighlightCode",!0),p=Uo()(5).toString("base64"),g=Uo()(5).toString("base64"),y=Uo()(5).toString("base64"),v=Uo()(5).toString("base64"),E=u.isOAS3(),{activeTab:b,tabs:S,onTabChange:x}=G0e({initialTab:c,isExecute:r,schema:e,example:t});return d.default.createElement("div",{className:"model-example"},d.default.createElement("ul",{className:"tab",role:"tablist"},d.default.createElement("li",{className:(0,Ot.default)("tabitem",{active:b===S.example}),role:"presentation"},d.default.createElement("button",{"aria-controls":g,"aria-selected":b===S.example,className:"tablinks","data-name":"example",id:p,onClick:x,role:"tab"},r?"Edit Value":"Example Value")),e&&d.default.createElement("li",{className:(0,Ot.default)("tabitem",{active:b===S.model}),role:"presentation"},d.default.createElement("button",{"aria-controls":v,"aria-selected":b===S.model,className:(0,Ot.default)("tablinks",{inactive:r}),"data-name":"model",id:y,onClick:x,role:"tab"},E?"Schema":"Model"))),b===S.example&&d.default.createElement("div",{"aria-hidden":b!==S.example,"aria-labelledby":p,"data-name":"examplePanel",id:g,role:"tabpanel",tabIndex:"0"},t||d.default.createElement(h,null,"(no example available")),b===S.model&&d.default.createElement("div",{className:"model-container","aria-hidden":b===S.example,"aria-labelledby":y,"data-name":"modelPanel",id:v,role:"tabpanel",tabIndex:"0"},d.default.createElement(f,{schema:e,getComponent:a,getConfigs:o,specSelectors:u,expandDepth:l,specPath:n,includeReadOnly:s,includeWriteOnly:i})))};class X0e extends d.Component{constructor(){super(...arguments);z(this,"onToggle",(r,n)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,n)})}render(){let{getComponent:r,getConfigs:n}=this.props;const i=r("Model");let s;return this.props.layoutSelectors&&(s=this.props.layoutSelectors.isShown(this.props.fullPath)),d.default.createElement("div",{className:"model-box"},d.default.createElement(i,(0,At.default)({},this.props,{getConfigs:n,expanded:s,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var M3,Z0e=function(e){var t={};return me.d(t,e),t}({default:function(){return jZ}});function gA(){return gA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},gA.apply(null,arguments)}var TU=e=>d.createElement("svg",gA({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"},e),M3||(M3=d.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},d.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 D3=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class IU extends Z0e.default{constructor(){super(...arguments);z(this,"getModelName",r=>r.indexOf("#/definitions/")!==-1?D3(r.replace(/^.*#\/definitions\//,"")):r.indexOf("#/components/schemas/")!==-1?D3(r.replace(/^.*#\/components\/schemas\//,"")):void 0);z(this,"getRefSchema",r=>{let{specSelectors:n}=this.props;return n.findDefinition(r)})}render(){let{getComponent:r,getConfigs:n,specSelectors:i,schema:s,required:a,name:o,isRef:u,specPath:c,displayName:l,includeReadOnly:f,includeWriteOnly:h}=this.props;const p=r("ObjectModel"),g=r("ArrayModel"),y=r("PrimitiveModel");let v="object",E=s&&s.get("$$ref"),b=s&&s.get("$ref");if(!o&&E&&(o=this.getModelName(E)),b){const x=this.getModelName(b),_=this.getRefSchema(x);K.Map.isMap(_)?(s=_.mergeDeep(s),E||(s=s.set("$$ref",b),E=b)):K.Map.isMap(s)&&s.size===1&&(s=null,o=b)}if(!s)return d.default.createElement("span",{className:"model model-title"},d.default.createElement("span",{className:"model-title__text"},l||o),!b&&d.default.createElement(TU,{height:"20px",width:"20px"}));const S=i.isOAS3()&&s.get("deprecated");switch(u=u!==void 0?u:!!E,v=s&&s.get("type")||v,v){case"object":return d.default.createElement(p,(0,At.default)({className:"object"},this.props,{specPath:c,getConfigs:n,schema:s,name:o,deprecated:S,isRef:u,includeReadOnly:f,includeWriteOnly:h}));case"array":return d.default.createElement(g,(0,At.default)({className:"array"},this.props,{getConfigs:n,schema:s,name:o,deprecated:S,required:a,includeReadOnly:f,includeWriteOnly:h}));default:return d.default.createElement(y,(0,At.default)({},this.props,{getComponent:r,getConfigs:n,schema:s,name:o,deprecated:S,required:a}))}}}z(IU,"propTypes",{schema:P3.default.map.isRequired,getComponent:Rn.default.func.isRequired,getConfigs:Rn.default.func.isRequired,specSelectors:Rn.default.object.isRequired,name:Rn.default.string,displayName:Rn.default.string,isRef:Rn.default.bool,required:Rn.default.bool,expandDepth:Rn.default.number,depth:Rn.default.number,specPath:P3.default.list.isRequired,includeReadOnly:Rn.default.bool,includeWriteOnly:Rn.default.bool});class Q0e extends d.Component{constructor(){super(...arguments);z(this,"getSchemaBasePath",()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"]);z(this,"getCollapsedContent",()=>" ");z(this,"handleToggle",(r,n)=>{const{layoutActions:i}=this.props;i.show([...this.getSchemaBasePath(),r],n),n&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),r])});z(this,"onLoadModels",r=>{r&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),r)});z(this,"onLoadModel",r=>{if(r){const n=r.getAttribute("data-name");this.props.layoutActions.readyToScroll([...this.getSchemaBasePath(),n],r)}})}render(){let{specSelectors:r,getComponent:n,layoutSelectors:i,layoutActions:s,getConfigs:a}=this.props,o=r.definitions(),{docExpansion:u,defaultModelsExpandDepth:c}=a();if(!o.size||c<0)return null;const l=this.getSchemaBasePath();let f=i.isShown(l,c>0&&u!=="none");const h=r.isOAS3(),p=n("ModelWrapper"),g=n("Collapse"),y=n("ModelCollapse"),v=n("JumpToPath",!0),E=n("ArrowUpIcon"),b=n("ArrowDownIcon");return d.default.createElement("section",{className:f?"models is-open":"models",ref:this.onLoadModels},d.default.createElement("h4",null,d.default.createElement("button",{"aria-expanded":f,className:"models-control",onClick:()=>s.show(l,!f)},d.default.createElement("span",null,h?"Schemas":"Models"),f?d.default.createElement(E,null):d.default.createElement(b,null))),d.default.createElement(g,{isOpened:f},o.entrySeq().map(([S])=>{const x=[...l,S],_=K.default.List(x),A=r.specResolvedSubtree(x),C=r.specJson().getIn(x),T=K.Map.isMap(A)?A:K.default.Map(),O=K.Map.isMap(C)?C:K.default.Map(),M=T.get("title")||O.get("title")||S,k=i.isShown(x,!1);k&&T.size===0&&O.size>0&&this.props.specActions.requestResolvedSubtree(x);const D=d.default.createElement(p,{name:S,expandDepth:c,schema:T||K.default.Map(),displayName:M,fullPath:x,specPath:_,getComponent:n,specSelectors:r,getConfigs:a,layoutSelectors:i,layoutActions:s,includeReadOnly:!0,includeWriteOnly:!0}),P=d.default.createElement("span",{className:"model-box"},d.default.createElement("span",{className:"model model-title"},M));return d.default.createElement("div",{id:`model-${S}`,className:"model-container",key:`models-section-${S}`,"data-name":S,ref:this.onLoadModel},d.default.createElement("span",{className:"models-jump-to-path"},d.default.createElement(v,{path:_})),d.default.createElement(y,{classes:"model-box",collapsedContent:this.getCollapsedContent(S),onToggle:this.handleToggle,title:P,displayName:M,modelName:S,specPath:_,layoutSelectors:i,layoutActions:s,hideSelfOnExpand:!0,expanded:c>0&&k},D))}).toArray()))}}var ebe=({value:e,getComponent:t})=>{let r=t("ModelCollapse"),n=d.default.createElement("span",null,"Array [ ",e.count()," ]");return d.default.createElement("span",{className:"prop-enum"},"Enum:",d.default.createElement("br",null),d.default.createElement(r,{collapsedContent:n},"[ ",e.map(String).join(", ")," ]"))};function yA(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function tbe(e,t){return e?yA(e)?function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n}(e):new URL(e,t).href:t}function Mi(e,t,{selectedServer:r=""}={}){try{return function(i,s,{selectedServer:a=""}={}){if(!i)return;if(yA(i))return i;const o=tbe(a,s);return yA(o)?new URL(i,o).href:new URL(i,window.location.href).href}(e,t,{selectedServer:r})}catch{return}}function vr(e){if(typeof e!="string"||e.trim()==="")return"";const t=e.trim(),r="about:blank";try{const n=`https://base${String(Math.random()).slice(2)}`,i=new URL(t,n),s=i.protocol.slice(0,-1);return["javascript","data","vbscript"].includes(s.toLowerCase())?r:i.origin===n?t.startsWith("/")?`${i.pathname}${i.search}${i.hash}`:t.startsWith(".")?`.${i.pathname}${i.search}${i.hash}`:`${i.pathname.substring(1)}${i.search}${i.hash}`:String(i)}catch{return r}}class rbe extends d.Component{render(){let{schema:t,name:r,displayName:n,isRef:i,getComponent:s,getConfigs:a,depth:o,onToggle:u,expanded:c,specPath:l,...f}=this.props,{specSelectors:h,expandDepth:p,includeReadOnly:g,includeWriteOnly:y}=f;const{isOAS3:v}=h,E=o>2||o===2&&l.last()!=="items";if(!t)return null;const{showExtensions:b}=a(),S=b?Oa(t):(0,K.List)();let x=t.get("description"),_=t.get("properties"),A=t.get("additionalProperties"),C=t.get("title")||n||r,T=t.get("required"),O=t.filter((L,ue)=>["maxProperties","minProperties","nullable","example"].indexOf(ue)!==-1),M=t.get("deprecated"),k=t.getIn(["externalDocs","url"]),D=t.getIn(["externalDocs","description"]);const P=s("JumpToPath",!0),H=s("Markdown",!0),X=s("Model"),V=s("ModelCollapse"),G=s("Property"),Q=s("Link"),Z=s("ModelExtensions"),B=()=>d.default.createElement("span",{className:"model-jump-to-path"},d.default.createElement(P,{path:l})),J=d.default.createElement("span",null,d.default.createElement("span",null,"{"),"...",d.default.createElement("span",null,"}"),i?d.default.createElement(B,null):""),ee=h.isOAS3()?t.get("allOf"):null,ne=h.isOAS3()?t.get("anyOf"):null,ae=h.isOAS3()?t.get("oneOf"):null,Y=h.isOAS3()?t.get("not"):null,F=C&&d.default.createElement("span",{className:"model-title"},i&&t.get("$$ref")&&d.default.createElement("span",{className:(0,Ot.default)("model-hint",{"model-hint--embedded":E})},t.get("$$ref")),d.default.createElement("span",{className:"model-title__text"},C));return d.default.createElement("span",{className:"model"},d.default.createElement(V,{modelName:r,title:F,onToggle:u,expanded:!!c||o<=p,collapsedContent:J},d.default.createElement("span",{className:"brace-open object"},"{"),i?d.default.createElement(B,null):null,d.default.createElement("span",{className:"inner-object"},d.default.createElement("table",{className:"model"},d.default.createElement("tbody",null,x?d.default.createElement("tr",{className:"description"},d.default.createElement("td",null,"description:"),d.default.createElement("td",null,d.default.createElement(H,{source:x}))):null,k&&d.default.createElement("tr",{className:"external-docs"},d.default.createElement("td",null,"externalDocs:"),d.default.createElement("td",null,d.default.createElement(Q,{target:"_blank",href:vr(k)},D||k))),M?d.default.createElement("tr",{className:"property"},d.default.createElement("td",null,"deprecated:"),d.default.createElement("td",null,"true")):null,_&&_.size?_.entrySeq().filter(([,L])=>(!L.get("readOnly")||g)&&(!L.get("writeOnly")||y)).map(([L,ue])=>{let de=v()&&ue.get("deprecated"),Ae=K.List.isList(T)&&T.contains(L),Ne=["property-row"];return de&&Ne.push("deprecated"),Ae&&Ne.push("required"),d.default.createElement("tr",{key:L,className:Ne.join(" ")},d.default.createElement("td",null,L,Ae&&d.default.createElement("span",{className:"star"},"*")),d.default.createElement("td",null,d.default.createElement(X,(0,At.default)({key:`object-${r}-${L}_${ue}`},f,{required:Ae,getComponent:s,specPath:l.push("properties",L),getConfigs:a,schema:ue,depth:o+1}))))}).toArray():null,S.size===0?null:d.default.createElement(d.default.Fragment,null,d.default.createElement("tr",null,d.default.createElement("td",null," ")),d.default.createElement(Z,{extensions:S,propClass:"extension"})),A&&A.size?d.default.createElement("tr",null,d.default.createElement("td",null,"< * >:"),d.default.createElement("td",null,d.default.createElement(X,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("additionalProperties"),getConfigs:a,schema:A,depth:o+1})))):null,ee?d.default.createElement("tr",null,d.default.createElement("td",null,"allOf ->"),d.default.createElement("td",null,ee.map((L,ue)=>d.default.createElement("div",{key:ue},d.default.createElement(X,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("allOf",ue),getConfigs:a,schema:L,depth:o+1})))))):null,ne?d.default.createElement("tr",null,d.default.createElement("td",null,"anyOf ->"),d.default.createElement("td",null,ne.map((L,ue)=>d.default.createElement("div",{key:ue},d.default.createElement(X,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("anyOf",ue),getConfigs:a,schema:L,depth:o+1})))))):null,ae?d.default.createElement("tr",null,d.default.createElement("td",null,"oneOf ->"),d.default.createElement("td",null,ae.map((L,ue)=>d.default.createElement("div",{key:ue},d.default.createElement(X,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("oneOf",ue),getConfigs:a,schema:L,depth:o+1})))))):null,Y?d.default.createElement("tr",null,d.default.createElement("td",null,"not ->"),d.default.createElement("td",null,d.default.createElement("div",null,d.default.createElement(X,(0,At.default)({},f,{required:!1,getComponent:s,specPath:l.push("not"),getConfigs:a,schema:Y,depth:o+1}))))):null))),d.default.createElement("span",{className:"brace-close"},"}")),O.size?O.entrySeq().map(([L,ue])=>d.default.createElement(G,{key:`${L}-${ue}`,propKey:L,propVal:ue,propClass:"property"})):null)}}class nbe extends d.Component{render(){let{getComponent:t,getConfigs:r,schema:n,depth:i,expandDepth:s,name:a,displayName:o,specPath:u}=this.props,c=n.get("description"),l=n.get("items"),f=n.get("title")||o||a,h=n.filter((_,A)=>["type","items","description","$$ref","externalDocs"].indexOf(A)===-1),p=n.getIn(["externalDocs","url"]),g=n.getIn(["externalDocs","description"]);const y=t("Markdown",!0),v=t("ModelCollapse"),E=t("Model"),b=t("Property"),S=t("Link"),x=f&&d.default.createElement("span",{className:"model-title"},d.default.createElement("span",{className:"model-title__text"},f));return d.default.createElement("span",{className:"model"},d.default.createElement(v,{title:x,expanded:i<=s,collapsedContent:"[...]"},"[",h.size?h.entrySeq().map(([_,A])=>d.default.createElement(b,{key:`${_}-${A}`,propKey:_,propVal:A,propClass:"property"})):null,c?d.default.createElement(y,{source:c}):h.size?d.default.createElement("div",{className:"markdown"}):null,p&&d.default.createElement("div",{className:"external-docs"},d.default.createElement(S,{target:"_blank",href:vr(p)},g||p)),d.default.createElement("span",null,d.default.createElement(E,(0,At.default)({},this.props,{getConfigs:r,specPath:u.push("items"),name:null,schema:l,required:!1,depth:i+1}))),"]"))}}const od="property primitive";class ibe extends d.Component{render(){let{schema:t,getComponent:r,getConfigs:n,name:i,displayName:s,depth:a,expandDepth:o}=this.props;const{showExtensions:u}=n();if(!t||!t.get)return d.default.createElement("div",null);let c=t.get("type"),l=t.get("format"),f=t.get("xml"),h=t.get("enum"),p=t.get("title")||s||i,g=t.get("description");const y=Oa(t);let v=t.filter((M,k)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(k)===-1).filterNot((M,k)=>y.has(k)),E=t.getIn(["externalDocs","url"]),b=t.getIn(["externalDocs","description"]);const S=r("Markdown",!0),x=r("EnumModel"),_=r("Property"),A=r("ModelCollapse"),C=r("Link"),T=r("ModelExtensions"),O=p&&d.default.createElement("span",{className:"model-title"},d.default.createElement("span",{className:"model-title__text"},p));return d.default.createElement("span",{className:"model"},d.default.createElement(A,{title:O,expanded:a<=o,collapsedContent:"[...]"},d.default.createElement("span",{className:"prop"},i&&a>1&&d.default.createElement("span",{className:"prop-name"},p),d.default.createElement("span",{className:"prop-type"},c),l&&d.default.createElement("span",{className:"prop-format"},"($",l,")"),v.size?v.entrySeq().map(([M,k])=>d.default.createElement(_,{key:`${M}-${k}`,propKey:M,propVal:k,propClass:od})):null,u&&y.size>0?d.default.createElement(T,{extensions:y,propClass:`${od} extension`}):null,g?d.default.createElement(S,{source:g}):null,E&&d.default.createElement("div",{className:"external-docs"},d.default.createElement(C,{target:"_blank",href:vr(E)},b||E)),f&&f.size?d.default.createElement("span",null,d.default.createElement("br",null),d.default.createElement("span",{className:od},"xml:"),f.entrySeq().map(([M,k])=>d.default.createElement("span",{key:`${M}-${k}`,className:od},d.default.createElement("br",null),"   ",M,": ",String(k))).toArray()):null,h&&d.default.createElement(x,{value:h,getComponent:r}))))}}class sbe extends d.default.Component{constructor(){super(...arguments);z(this,"onChange",r=>{this.setScheme(r.target.value)});z(this,"setScheme",r=>{let{path:n,method:i,specActions:s}=this.props;s.setScheme(r,n,i)})}UNSAFE_componentWillMount(){let{schemes:r}=this.props;this.setScheme(r.first())}UNSAFE_componentWillReceiveProps(r){this.props.currentScheme&&r.schemes.includes(this.props.currentScheme)||this.setScheme(r.schemes.first())}render(){let{schemes:r,currentScheme:n}=this.props;return d.default.createElement("label",{htmlFor:"schemes"},d.default.createElement("span",{className:"schemes-title"},"Schemes"),d.default.createElement("select",{onChange:this.onChange,value:n,id:"schemes"},r.valueSeq().map(i=>d.default.createElement("option",{value:i,key:i},i)).toArray()))}}class abe extends d.default.Component{render(){const{specActions:t,specSelectors:r,getComponent:n}=this.props,i=r.operationScheme(),s=r.schemes(),a=n("schemes");return s&&s.size?d.default.createElement(a,{currentScheme:i,schemes:s,specActions:t}):null}}var jU=function(e){var t={};return me.d(t,e),t}({default:function(){return DZ}});const Eo={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,K.List)()};class kU extends d.Component{componentDidMount(){const{dispatchInitialValue:t,value:r,onChange:n}=this.props;t?n(r):t===!1&&n("")}render(){let{schema:t,errors:r,value:n,onChange:i,getComponent:s,fn:a,disabled:o}=this.props;const u=t&&t.get?t.get("format"):null,c=t&&t.get?t.get("type"):null,l=a.jsonSchema202012.foldType(Wn(c));let f=p=>s(p,!1,{failSilently:!0}),h=c?f(u?`JsonSchema_${c}_${u}`:`JsonSchema_${c}`):s("JsonSchema_string");return!K.List.isList(c)||l!=="array"&&l!=="object"||(h=s("JsonSchema_object")),h||(h=s("JsonSchema_string")),d.default.createElement(h,(0,At.default)({},this.props,{errors:r,fn:a,getComponent:s,value:n,onChange:i,schema:t,disabled:o}))}}z(kU,"defaultProps",Eo);class PU extends d.Component{constructor(){super(...arguments);z(this,"onChange",r=>{const n=this.props.schema&&this.props.schema.get("type")==="file"?r.target.files[0]:r.target.value;this.props.onChange(n,this.props.keyName)});z(this,"onEnumChange",r=>this.props.onChange(r))}render(){let{getComponent:r,value:n,schema:i,errors:s,required:a,description:o,disabled:u}=this.props;const c=i&&i.get?i.get("enum"):null,l=i&&i.get?i.get("format"):null,f=i&&i.get?i.get("type"):null,h=i&&i.get?i.get("in"):null;if(n?(gf(n)||typeof n=="object")&&(n=Xr(n)):n="",s=s.toJS?s.toJS():[],c){const y=r("Select");return d.default.createElement(y,{className:s.length?"invalid":"",title:s.length?s:"",allowedValues:[...c],value:n,allowEmptyValue:!a,disabled:u,onChange:this.onEnumChange})}const p=u||h&&h==="formData"&&!("FormData"in window),g=r("Input");return f&&f==="file"?d.default.createElement(g,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:this.onChange,disabled:p}):d.default.createElement(jU.default,{type:l&&l==="password"?"password":"text",className:s.length?"invalid":"",title:s.length?s:"",value:n,minLength:0,debounceTimeout:350,placeholder:o,onChange:this.onChange,disabled:p})}}z(PU,"defaultProps",Eo);class NU extends d.PureComponent{constructor(r,n){super(r,n);z(this,"onChange",()=>{this.props.onChange(this.state.value)});z(this,"onItemChange",(r,n)=>{this.setState(({value:i})=>({value:i.set(n,r)}),this.onChange)});z(this,"removeItem",r=>{this.setState(({value:n})=>({value:n.delete(r)}),this.onChange)});z(this,"addItem",()=>{const{fn:r}=this.props;let n=tw(this.state.value);this.setState(()=>({value:n.push(r.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))}),this.onChange)});z(this,"onEnumChange",r=>{this.setState(()=>({value:r}),this.onChange)});this.state={value:tw(r.value),schema:r.schema}}UNSAFE_componentWillReceiveProps(r){const n=tw(r.value);n!==this.state.value&&this.setState({value:n}),r.schema!==this.state.schema&&this.setState({schema:r.schema})}render(){let{getComponent:r,required:n,schema:i,errors:s,fn:a,disabled:o}=this.props;s=s.toJS?s.toJS():Array.isArray(s)?s:[];const u=s.filter(A=>typeof A=="string"),c=s.filter(A=>A.needRemove!==void 0).map(A=>A.error),l=this.state.value,f=!!(l&&l.count&&l.count()>0),h=i.getIn(["items","enum"]),p=i.getIn(["items","type"]),g=a.jsonSchema202012.foldType(Wn(p)),y=a.jsonSchema202012.getType(Wn(i.get("items"))),v=i.getIn(["items","format"]),E=i.get("items");let b,S=!1,x=p==="file"||p==="string"&&v==="binary";if(p&&v?b=r(`JsonSchema_${p}_${v}`):p!=="boolean"&&p!=="array"&&p!=="object"||(b=r(`JsonSchema_${p}`)),!K.List.isList(p)||g!=="array"&&g!=="object"||(b=r("JsonSchema_object")),b||x||(S=!0),h){const A=r("Select");return d.default.createElement(A,{className:s.length?"invalid":"",title:s.length?s:"",multiple:!0,value:l,disabled:o,allowedValues:h,allowEmptyValue:!n,onChange:this.onEnumChange})}const _=r("Button");return d.default.createElement("div",{className:"json-schema-array"},f?l.map((A,C)=>{const T=(0,K.fromJS)([...s.filter(O=>O.index===C).map(O=>O.error)]);return d.default.createElement("div",{key:C,className:"json-schema-form-item"},x?d.default.createElement(UC,{value:A,onChange:O=>this.onItemChange(O,C),disabled:o,errors:T,getComponent:r}):S?d.default.createElement(BC,{value:A,onChange:O=>this.onItemChange(O,C),disabled:o,errors:T}):d.default.createElement(b,(0,At.default)({},this.props,{value:A,onChange:O=>this.onItemChange(O,C),disabled:o,errors:T,schema:E,getComponent:r,fn:a})),o?null:d.default.createElement(_,{className:`btn btn-sm json-schema-form-item-remove ${c.length?"invalid":null}`,title:c.length?c:"",onClick:()=>this.removeItem(C)}," - "))}):null,o?null:d.default.createElement(_,{className:`btn btn-sm json-schema-form-item-add ${u.length?"invalid":null}`,title:u.length?u:"",onClick:this.addItem},"Add ",y," item"))}}z(NU,"defaultProps",Eo);class BC extends d.Component{constructor(){super(...arguments);z(this,"onChange",r=>{const n=r.target.value;this.props.onChange(n,this.props.keyName)})}render(){let{value:r,errors:n,description:i,disabled:s}=this.props;return r?(gf(r)||typeof r=="object")&&(r=Xr(r)):r="",n=n.toJS?n.toJS():[],d.default.createElement(jU.default,{type:"text",className:n.length?"invalid":"",title:n.length?n:"",value:r,minLength:0,debounceTimeout:350,placeholder:i,onChange:this.onChange,disabled:s})}}z(BC,"defaultProps",Eo);class UC extends d.Component{constructor(){super(...arguments);z(this,"onFileChange",r=>{const n=r.target.files[0];this.props.onChange(n,this.props.keyName)})}render(){let{getComponent:r,errors:n,disabled:i}=this.props;const s=r("Input"),a=i||!("FormData"in window);return d.default.createElement(s,{type:"file",className:n.length?"invalid":"",title:n.length?n:"",onChange:this.onFileChange,disabled:a})}}z(UC,"defaultProps",Eo);class MU extends d.Component{constructor(){super(...arguments);z(this,"onEnumChange",r=>this.props.onChange(r))}render(){let{getComponent:r,value:n,errors:i,schema:s,required:a,disabled:o}=this.props;i=i.toJS?i.toJS():[];let u=s&&s.get?s.get("enum"):null,c=!u||!a,l=!u&&["true","false"];const f=r("Select");return d.default.createElement(f,{className:i.length?"invalid":"",title:i.length?i:"",value:String(n),disabled:o,allowedValues:u?[...u]:l,allowEmptyValue:c,onChange:this.onEnumChange})}}z(MU,"defaultProps",Eo);const obe=e=>e.map(t=>{const r=t.propKey!==void 0?t.propKey:t.index;let n=typeof t=="string"?t:typeof t.error=="string"?t.error:null;if(!r&&n)return n;let i=t.error,s=`/${t.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 DU extends d.PureComponent{constructor(){super();z(this,"onChange",r=>{this.props.onChange(r)});z(this,"handleOnChange",r=>{const n=r.target.value;this.onChange(n)})}render(){let{getComponent:r,value:n,errors:i,disabled:s}=this.props;const a=r("TextArea");return i=i.toJS?i.toJS():Array.isArray(i)?i:[],d.default.createElement("div",null,d.default.createElement(a,{className:(0,Ot.default)({invalid:i.length}),title:i.length?obe(i).join(", "):"",value:Xr(n),disabled:s,onChange:this.handleOnChange}))}}z(DU,"defaultProps",Eo);function tw(e){return K.List.isList(e)?e:Array.isArray(e)?(0,K.fromJS)(e):(0,K.List)()}const ube=({extensions:e,propClass:t=""})=>e.entrySeq().map(([r,n])=>{const i=Wn(n)??null;return d.default.createElement("tr",{key:r,className:t},d.default.createElement("td",null,r),d.default.createElement("td",null,JSON.stringify(i)))}).toArray();var qU=()=>({components:{modelExample:Y0e,ModelWrapper:X0e,ModelCollapse:mA,Model:IU,Models:Q0e,EnumModel:ebe,ObjectModel:rbe,ArrayModel:nbe,PrimitiveModel:ibe,ModelExtensions:ube,schemes:sbe,SchemesContainer:abe,...tA}}),cbe=me(123),$U=me.n(cbe),FU=function(e){var t={};return me.d(t,e),t}({default:function(){return VZ}}),es=function(e){var t={};return me.d(t,e),t}({default:function(){return JZ}});const rw=e=>t=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every((r,n)=>r===t[n]),lbe=(...e)=>e;class fbe extends Map{delete(t){const r=Array.from(this.keys()).find(rw(t));return super.delete(r)}get(t){const r=Array.from(this.keys()).find(rw(t));return super.get(r)}has(t){return Array.from(this.keys()).findIndex(rw(t))!==-1}}var vf=(e,t=lbe)=>{const{Cache:r}=uc.default;uc.default.Cache=fbe;const n=(0,uc.default)(e,t);return uc.default.Cache=r,n};const q3={string:e=>e.pattern?(t=>{try{return new FU.default(t).gen()}catch{return"string"}})(e.pattern):"string",string_email:()=>"user@example.com","string_date-time":()=>new Date().toISOString(),string_date:()=>new Date().toISOString().substring(0,10),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:e=>typeof e.default!="boolean"||e.default},$3=e=>{e=qa(e);let{type:t,format:r}=e,n=q3[`${t}_${r}`]||q3[t];return js(n)?n(e):"Unknown Type: "+e.type},dbe=e=>fU(e,"$$ref",t=>typeof t=="string"&&t.indexOf("#")>-1),LU=["maxProperties","minProperties"],BU=["minItems","maxItems"],UU=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],pbe=["minLength","maxLength"],Jo=(e,t,r={})=>{const n={...e};if(["example","default","enum","xml","type",...LU,...BU,...UU,...pbe].forEach(i=>(s=>{n[s]===void 0&&t[s]!==void 0&&(n[s]=t[s])})(i)),t.required!==void 0&&Array.isArray(t.required)&&(n.required!==void 0&&n.required.length||(n.required=[]),t.required.forEach(i=>{n.required.includes(i)||n.required.push(i)})),t.properties){n.properties||(n.properties={});let i=qa(t.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],!t.required&&Array.isArray(t.required)&&t.required.indexOf(s)!==-1&&(n.required?n.required.push(s):n.required=[s])))}return t.items&&(n.items||(n.items={}),n.items=Jo(n.items,t.items,r)),n},ai=(e,t={},r=void 0,n=!1)=>{e&&js(e.toJS)&&(e=e.toJS());let i=r!==void 0||e&&e.example!==void 0||e&&e.default!==void 0;const s=!i&&e&&e.oneOf&&e.oneOf.length>0,a=!i&&e&&e.anyOf&&e.anyOf.length>0;if(!i&&(s||a)){const P=qa(s?e.oneOf[0]:e.anyOf[0]);if(!(e=Jo(e,P,t)).xml&&P.xml&&(e.xml=P.xml),e.example!==void 0&&P.example!==void 0)i=!0;else if(P.properties){e.properties||(e.properties={});let H=qa(P.properties);for(let X in H)Object.prototype.hasOwnProperty.call(H,X)&&(H[X]&&H[X].deprecated||H[X]&&H[X].readOnly&&!t.includeReadOnly||H[X]&&H[X].writeOnly&&!t.includeWriteOnly||e.properties[X]||(e.properties[X]=H[X],!P.required&&Array.isArray(P.required)&&P.required.indexOf(X)!==-1&&(e.required?e.required.push(X):e.required=[X])))}}const o={};let{xml:u,type:c,example:l,properties:f,additionalProperties:h,items:p}=e||{},{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:E,prefix:b,namespace:S}=u,x={};n&&(E=E||"notagname",v=(b?b+":":"")+E,S)&&(o[b?"xmlns:"+b:"xmlns"]=S),n&&(x[v]=[]);const _=P=>P.some(H=>Object.prototype.hasOwnProperty.call(e,H));e&&!c&&(f||h||_(LU)?c="object":p||_(BU)?c="array":_(UU)?(c="number",e.type="number"):i||e.enum||(c="string",e.type="string"));const A=P=>{if((e==null?void 0:e.maxItems)!=null&&(P=P.slice(0,e==null?void 0:e.maxItems)),(e==null?void 0:e.minItems)!=null){let H=0;for(;P.length<(e==null?void 0:e.minItems);)P.push(P[H++%P.length])}return P},C=qa(f);let T,O=0;const M=()=>e&&e.maxProperties!==null&&e.maxProperties!==void 0&&O>=e.maxProperties,k=P=>!e||e.maxProperties===null||e.maxProperties===void 0||!M()&&(!(H=>!(e&&e.required&&e.required.length&&e.required.includes(H)))(P)||e.maxProperties-O-(()=>{if(!e||!e.required)return 0;let H=0;return n?e.required.forEach(X=>H+=x[X]===void 0?0:1):e.required.forEach(X=>{var V;return H+=((V=x[v])==null?void 0:V.find(G=>G[X]!==void 0))===void 0?0:1}),e.required.length-H})()>0);if(T=n?(P,H=void 0)=>{if(e&&C[P]){if(C[P].xml=C[P].xml||{},C[P].xml.attribute){const V=Array.isArray(C[P].enum)?C[P].enum[0]:void 0,G=C[P].example,Q=C[P].default;return void(o[C[P].xml.name||P]=G!==void 0?G:Q!==void 0?Q:V!==void 0?V:$3(C[P]))}C[P].xml.name=C[P].xml.name||P}else C[P]||h===!1||(C[P]={xml:{name:P}});let X=ai(e&&C[P]||void 0,t,H,n);k(P)&&(O++,Array.isArray(X)?x[v]=x[v].concat(X):x[v].push(X))}:(P,H)=>{if(k(P)){if(Object.prototype.hasOwnProperty.call(e,"discriminator")&&e.discriminator&&Object.prototype.hasOwnProperty.call(e.discriminator,"mapping")&&e.discriminator.mapping&&Object.prototype.hasOwnProperty.call(e,"$$ref")&&e.$$ref&&e.discriminator.propertyName===P){for(let X in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[X])!==-1){x[P]=X;break}}else x[P]=ai(C[P],t,H,n);O++}},i){let P;if(P=dbe(r!==void 0?r:l!==void 0?l:e.default),!n){if(typeof P=="number"&&c==="string")return`${P}`;if(typeof P!="string"||c==="string")return P;try{return JSON.parse(P)}catch{return P}}if(e||(c=Array.isArray(P)?"array":typeof P),c==="array"){if(!Array.isArray(P)){if(typeof P=="string")return P;P=[P]}const H=e?e.items:void 0;H&&(H.xml=H.xml||u||{},H.xml.name=H.xml.name||u.name);let X=P.map(V=>ai(H,t,V,n));return X=A(X),u.wrapped?(x[v]=X,(0,es.default)(o)||x[v].push({_attr:o})):x=X,x}if(c==="object"){if(typeof P=="string")return P;for(let H in P)Object.prototype.hasOwnProperty.call(P,H)&&(e&&C[H]&&C[H].readOnly&&!g||e&&C[H]&&C[H].writeOnly&&!y||(e&&C[H]&&C[H].xml&&C[H].xml.attribute?o[C[H].xml.name||H]=P[H]:T(H,P[H])));return(0,es.default)(o)||x[v].push({_attr:o}),x}return x[v]=(0,es.default)(o)?P:[{_attr:o},P],x}if(c==="object"){for(let P in C)Object.prototype.hasOwnProperty.call(C,P)&&(C[P]&&C[P].deprecated||C[P]&&C[P].readOnly&&!g||C[P]&&C[P].writeOnly&&!y||T(P));if(n&&o&&x[v].push({_attr:o}),M())return x;if(h===!0)n?x[v].push({additionalProp:"Anything can be here"}):x.additionalProp1={},O++;else if(h){const P=qa(h),H=ai(P,t,void 0,n);if(n&&P.xml&&P.xml.name&&P.xml.name!=="notagname")x[v].push(H);else{const X=e.minProperties!==null&&e.minProperties!==void 0&&O<e.minProperties?e.minProperties-O:3;for(let V=1;V<=X;V++){if(M())return x;if(n){const G={};G["additionalProp"+V]=H.notagname,x[v].push(G)}else x["additionalProp"+V]=H;O++}}}return x}if(c==="array"){if(!p)return;let P;if(n&&(p.xml=p.xml||(e==null?void 0:e.xml)||{},p.xml.name=p.xml.name||u.name),Array.isArray(p.anyOf))P=p.anyOf.map(H=>ai(Jo(H,p,t),t,void 0,n));else if(Array.isArray(p.oneOf))P=p.oneOf.map(H=>ai(Jo(H,p,t),t,void 0,n));else{if(!(!n||n&&u.wrapped))return ai(p,t,void 0,n);P=[ai(p,t,void 0,n)]}return P=A(P),n&&u.wrapped?(x[v]=P,(0,es.default)(o)||x[v].push({_attr:o}),x):P}let D;if(e&&Array.isArray(e.enum))D=_o(e.enum)[0];else{if(!e)return;if(D=$3(e),typeof D=="number"){let P=e.minimum;P!=null&&(e.exclusiveMinimum&&P++,D=P);let H=e.maximum;H!=null&&(e.exclusiveMaximum&&H--,D=H)}if(typeof D=="string"&&(e.maxLength!==null&&e.maxLength!==void 0&&(D=D.slice(0,e.maxLength)),e.minLength!==null&&e.minLength!==void 0)){let P=0;for(;D.length<e.minLength;)D+=D[P++%D.length]}}if(c!=="file")return n?(x[v]=(0,es.default)(o)?D:[{_attr:o},D],x):D},F3=e=>(e.schema&&(e=e.schema),e.properties&&(e.type="object"),e),vA=(e,t,r)=>{const n=ai(e,t,r,!0);if(n)return typeof n=="string"?n:$U()(n,{declaration:!0,indent:" "})},bA=(e,t,r)=>ai(e,t,r,!1),VU=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],L3=vf(vA,VU),B3=vf(bA,VU),hbe=[{when:/json/,shouldStringifyTypes:["string"]}],mbe=["object"];var gbe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.memoizedSampleFromSchema(t,r,i),o=typeof a,u=hbe.reduce((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c,mbe);return(0,uU.default)(u,c=>c===o)?JSON.stringify(a,null,2):a},ybe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.getJsonSampleSchema(t,r,n,i);let o;try{o=Os.default.dump(Os.default.load(a),{lineWidth:-1},{schema:Os.JSON_SCHEMA}),o[o.length-1]===`
298
+ `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},vbe=e=>(t,r,n)=>{const{fn:i}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
299
+ <!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let s=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=s[1]}}return i.memoizedCreateXMLExample(t,r,n)},bbe=e=>(t,r="",n={},i=void 0)=>{const{fn:s}=e();return typeof(t==null?void 0:t.toJS)=="function"&&(t=t.toJS()),typeof(i==null?void 0:i.toJS)=="function"&&(i=i.toJS()),/xml/.test(r)?s.getXmlSampleSchema(t,n,i):/(yaml|yml)/.test(r)?s.getYamlSampleSchema(t,n,r,i):s.getJsonSampleSchema(t,n,r,i)},zU=({getSystem:e})=>{const t=gbe(e),r=ybe(e),n=vbe(e),i=bbe(e);return{fn:{jsonSchema5:{inferSchema:F3,sampleFromSchema:bA,sampleFromSchemaGeneric:ai,createXMLExample:vA,memoizedSampleFromSchema:B3,memoizedCreateXMLExample:L3,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Jo},inferSchema:F3,sampleFromSchema:bA,sampleFromSchemaGeneric:ai,createXMLExample:vA,memoizedSampleFromSchema:B3,memoizedCreateXMLExample:L3,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Jo}}},Am=function(e){var t={};return me.d(t,e),t}({default:function(){return HZ}});const _be=["get","put","post","delete","options","head","patch","trace"],gs=e=>e||(0,K.Map)(),Ebe=(0,et.createSelector)(gs,e=>e.get("lastError")),Sbe=(0,et.createSelector)(gs,e=>e.get("url")),wbe=(0,et.createSelector)(gs,e=>e.get("spec")||""),xbe=(0,et.createSelector)(gs,e=>e.get("specSource")||"not-editor"),VC=(0,et.createSelector)(gs,e=>e.get("json",(0,K.Map)())),Abe=(0,et.createSelector)(VC,e=>e.toJS()),Obe=(0,et.createSelector)(gs,e=>e.get("resolved",(0,K.Map)())),Cbe=(e,t)=>e.getIn(["resolvedSubtrees",...t],void 0),WU=(e,t)=>K.Map.isMap(e)&&K.Map.isMap(t)?t.get("$$ref")?t:(0,K.OrderedMap)().mergeWith(WU,e,t):t,Bi=(0,et.createSelector)(gs,e=>(0,K.OrderedMap)().mergeWith(WU,e.get("json"),e.get("resolvedSubtrees"))),Dn=e=>VC(e),Rbe=(0,et.createSelector)(Dn,()=>!1),JU=(0,et.createSelector)(Dn,e=>l7(e&&e.get("info"))),Tbe=(0,et.createSelector)(Dn,e=>l7(e&&e.get("externalDocs"))),KU=(0,et.createSelector)(JU,e=>e&&e.get("version")),Ibe=(0,et.createSelector)(KU,e=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1)),HU=(0,et.createSelector)(Bi,e=>e.get("paths")),jbe=(0,Am.default)(["get","put","post","delete","options","head","patch"]),GU=(0,et.createSelector)(HU,e=>{let t=(0,K.List)();return!K.Map.isMap(e)||e.isEmpty()||e.forEach((r,n)=>{if(!r||!r.forEach)return{};r.forEach((i,s)=>{_be.indexOf(s)<0||(t=t.push((0,K.fromJS)({path:n,method:s,operation:i,id:`${s}-${n}`})))})}),t}),YU=(0,et.createSelector)(Dn,e=>(0,K.Set)(e.get("consumes"))),XU=(0,et.createSelector)(Dn,e=>(0,K.Set)(e.get("produces"))),kbe=(0,et.createSelector)(Dn,e=>e.get("security",(0,K.List)())),Pbe=(0,et.createSelector)(Dn,e=>e.get("securityDefinitions")),Nbe=(e,t)=>{const r=e.getIn(["resolvedSubtrees","definitions",t],null),n=e.getIn(["json","definitions",t],null);return r||n||null},Mbe=(0,et.createSelector)(Dn,e=>{const t=e.get("definitions");return K.Map.isMap(t)?t:(0,K.Map)()}),Dbe=(0,et.createSelector)(Dn,e=>e.get("basePath")),qbe=(0,et.createSelector)(Dn,e=>e.get("host")),$be=(0,et.createSelector)(Dn,e=>e.get("schemes",(0,K.Map)())),ZU=(0,et.createSelector)([GU,YU,XU],(e,t,r)=>e.map(n=>n.update("operation",i=>i?K.Map.isMap(i)?i.withMutations(s=>(s.get("consumes")||s.update("consumes",a=>(0,K.Set)(a).merge(t)),s.get("produces")||s.update("produces",a=>(0,K.Set)(a).merge(r)),s)):void 0:(0,K.Map)()))),zC=(0,et.createSelector)(Dn,e=>{const t=e.get("tags",(0,K.List)());return K.List.isList(t)?t.filter(r=>K.Map.isMap(r)):(0,K.List)()}),QU=(e,t)=>(zC(e)||(0,K.List)()).filter(K.Map.isMap).find(r=>r.get("name")===t,(0,K.Map)()),e7=(0,et.createSelector)(ZU,zC,(e,t)=>e.reduce((r,n)=>{let i=(0,K.Set)(n.getIn(["operation","tags"]));return i.count()<1?r.update("default",(0,K.List)(),s=>s.push(n)):i.reduce((s,a)=>s.update(a,(0,K.List)(),o=>o.push(n)),r)},t.reduce((r,n)=>r.set(n.get("name"),(0,K.List)()),(0,K.OrderedMap)()))),Fbe=e=>({getConfigs:t})=>{let{tagsSorter:r,operationsSorter:n}=t();return e7(e).sortBy((i,s)=>s,(i,s)=>{let a=typeof r=="function"?r:A3.tagsSorter[r];return a?a(i,s):null}).map((i,s)=>{let a=typeof n=="function"?n:A3.operationsSorter[n],o=a?i.sort(a):i;return(0,K.Map)({tagDetails:QU(e,s),operations:o})})},t7=(0,et.createSelector)(gs,e=>e.get("responses",(0,K.Map)())),r7=(0,et.createSelector)(gs,e=>e.get("requests",(0,K.Map)())),n7=(0,et.createSelector)(gs,e=>e.get("mutatedRequests",(0,K.Map)())),Lbe=(e,t,r)=>t7(e).getIn([t,r],null),Bbe=(e,t,r)=>r7(e).getIn([t,r],null),Ube=(e,t,r)=>n7(e).getIn([t,r],null),Vbe=()=>!0,WC=(e,t,r)=>{const n=Bi(e).getIn(["paths",...t,"parameters"],(0,K.OrderedMap)()),i=e.getIn(["meta","paths",...t,"parameters"],(0,K.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,K.OrderedMap)().merge(s,a,o)}).find(s=>s.get("in")===r.get("in")&&s.get("name")===r.get("name"),(0,K.OrderedMap)())},i7=(e,t,r,n)=>{const i=`${n}.${r}`;return e.getIn(["meta","paths",...t,"parameter_inclusions",i],!1)},zbe=(e,t,r,n)=>{const i=Bi(e).getIn(["paths",...t,"parameters"],(0,K.OrderedMap)()).find(s=>s.get("in")===n&&s.get("name")===r,(0,K.OrderedMap)());return WC(e,t,i)},s7=(e,t,r)=>{const n=Bi(e).getIn(["paths",t,r],(0,K.OrderedMap)()),i=e.getIn(["meta","paths",t,r],(0,K.OrderedMap)()),s=n.get("parameters",(0,K.List)()).map(a=>WC(e,[t,r],a));return(0,K.OrderedMap)().merge(n,i).set("parameters",s)};function Wbe(e,t,r,n){return t=t||[],e.getIn(["meta","paths",...t,"parameters"],(0,K.fromJS)([])).find(i=>K.Map.isMap(i)&&i.get("name")===r&&i.get("in")===n)||(0,K.Map)()}const Jbe=(0,et.createSelector)(Dn,e=>{const t=e.get("host");return typeof t=="string"&&t.length>0&&t[0]!=="/"});function a7(e,t,r){return t=t||[],s7(e,...t).get("parameters",(0,K.List)()).reduce((n,i)=>{let s=r&&i.get("in")==="body"?i.get("value_xml"):i.get("value");return K.List.isList(s)&&(s=s.filter(a=>a!=="")),n.set(np(i,{allowHashes:!1}),s)},(0,K.fromJS)({}))}function Kbe(e,t=""){if(K.List.isList(e))return e.some(r=>K.Map.isMap(r)&&r.get("in")===t)}function _A(e,t=""){if(K.List.isList(e))return e.some(r=>K.Map.isMap(r)&&r.get("type")===t)}function Hbe(e,t){t=t||[];let r=Bi(e).getIn(["paths",...t],(0,K.fromJS)({})),n=e.getIn(["meta","paths",...t],(0,K.fromJS)({})),i=o7(e,t);const s=r.get("parameters")||new K.List,a=n.get("consumes_value")?n.get("consumes_value"):_A(s,"file")?"multipart/form-data":_A(s,"formData")?"application/x-www-form-urlencoded":void 0;return(0,K.fromJS)({requestContentType:a,responseContentType:i})}function o7(e,t){t=t||[];const r=Bi(e).getIn(["paths",...t],null);if(r===null)return;const n=e.getIn(["meta","paths",...t,"produces_value"],null),i=r.getIn(["produces",0],null);return n||i||"application/json"}function Gbe(e,t){t=t||[];const r=Bi(e),n=r.getIn(["paths",...t],null);if(n===null)return;const[i]=t,s=n.get("produces",null),a=r.getIn(["paths",i,"produces"],null),o=r.getIn(["produces"],null);return s||a||o}function Ybe(e,t){t=t||[];const r=Bi(e),n=r.getIn(["paths",...t],null);if(n===null)return;const[i]=t,s=n.get("consumes",null),a=r.getIn(["paths",i,"consumes"],null),o=r.getIn(["consumes"],null);return s||a||o}const u7=(e,t,r)=>{let n=e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),i=Array.isArray(n)?n[1]:null;return e.getIn(["scheme",t,r])||e.getIn(["scheme","_defaultScheme"])||i||""},Xbe=(e,t,r)=>["http","https"].indexOf(u7(e,t,r))>-1,c7=(e,t)=>{t=t||[];const r=e.getIn(["meta","paths",...t,"parameters"],(0,K.fromJS)([])),n=[];if(r.length===0)return n;const i=(s,a=[])=>{const o=(u,c)=>{const l=[...c,u.get("propKey")||u.get("index")];return K.Map.isMap(u.get("error"))?i(u.get("error"),l):{error:u.get("error"),path:l}};return K.List.isList(s)?s.map(u=>K.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:c,path:l})=>{n.push(((f,h,p)=>`For '${p}'${(h=h.reduce((g,y)=>typeof y=="number"?`${g}[${y}]`:g?`${g}.${y}`:y,""))?` at path '${h}'`:""}: ${f}.`)(c,l,o))})}),n},Zbe=(e,t)=>c7(e,t).length===0,Qbe=(e,t)=>{let r={requestBody:!1,requestContentType:{}},n=e.getIn(["resolvedSubtrees","paths",...t,"requestBody"],(0,K.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},e_e=(e,t,r,n)=>{if((r||n)&&r===n)return!0;let i=e.getIn(["resolvedSubtrees","paths",...t,"requestBody","content"],(0,K.fromJS)([]));if(i.size<2||!r||!n)return!1;let s=i.getIn([r,"schema","properties"],(0,K.fromJS)([])),a=i.getIn([n,"schema","properties"],(0,K.fromJS)([]));return!!s.equals(a)};function l7(e){return K.Map.isMap(e)?e:new K.Map}var t_e=function(e){var t={};return me.d(t,e),t}({default:function(){return YZ}}),r_e=function(e){var t={};return me.d(t,e),t}({default:function(){return eQ}}),f7=function(e){var t={};return me.d(t,e),t}({default:function(){return nQ}}),n_e=function(e){var t={};return me.d(t,e),t}({default:function(){return qQ}});const JC="spec_update_spec",KC="spec_update_url",HC="spec_update_json",Om="spec_update_param",GC="spec_update_empty_param_inclusion",YC="spec_validate_param",XC="spec_set_response",ZC="spec_set_request",QC="spec_set_mutated_request",d7="spec_log_request",eR="spec_clear_response",tR="spec_clear_request",rR="spec_clear_validate_param",Cm="spec_update_operation_meta_value",nR="spec_update_resolved",Rm="spec_update_resolved_subtree",iR="set_scheme",i_e=e=>(0,t_e.default)(e)?e:"";function s_e(e){const t=i_e(e).replace(/\t/g," ");if(typeof e=="string")return{type:JC,payload:t}}function a_e(e){return{type:nR,payload:e}}function o_e(e){return{type:KC,payload:e}}function u_e(e){return{type:HC,payload:e}}const c_e=e=>({specActions:t,specSelectors:r,errActions:n})=>{let{specStr:i}=r,s=null;try{e=e||i(),n.clear({source:"parser"}),s=Os.default.load(e,{schema:Os.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"?t.updateJsonSpec(s):t.updateJsonSpec({})};let U3=!1;const l_e=(e,t)=>({specActions:r,specSelectors:n,errActions:i,fn:{fetch:s,resolve:a,AST:o={}},getConfigs:u})=>{U3||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),U3=!0);const{modelPropertyMacro:c,parameterMacro:l,requestInterceptor:f,responseInterceptor:h}=u();e===void 0&&(e=n.specJson()),t===void 0&&(t=n.url());let p=o.getLineNumberForPath?o.getLineNumberForPath:()=>{},g=n.specStr();return a({fetch:s,spec:e,baseDoc:String(new URL(t,document.baseURI)),modelPropertyMacro:c,parameterMacro:l,requestInterceptor:f,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?p(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 ip=[];const f_e=(0,r_e.default)(()=>{const e=ip.reduce((t,{path:r,system:n})=>(t.has(n)||t.set(n,[]),t.get(n).push(r),t),new Map);ip=[],e.forEach(async(t,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:c}=r,l=o.getLineNumberForPath??(0,Am.default)(void 0),f=u.specStr(),{modelPropertyMacro:h,parameterMacro:p,requestInterceptor:g,responseInterceptor:y}=r.getConfigs();try{const v=await t.reduce(async(E,b)=>{let{resultMap:S,specWithCurrentSubtrees:x}=await E;const{errors:_,spec:A}=await s(x,b,{baseDoc:String(new URL(u.url(),document.baseURI)),modelPropertyMacro:h,parameterMacro:p,requestInterceptor:g,responseInterceptor:y});if(i.allErrors().size&&n.clearBy(C=>{var T;return C.get("type")!=="thrown"||C.get("source")!=="resolver"||!((T=C.get("fullPath"))!=null&&T.every((O,M)=>O===b[M]||b[M]===void 0))}),Array.isArray(_)&&_.length>0){let C=_.map(T=>(T.line=T.fullPath?l(f,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(C)}return A&&u.isOAS3()&&b[0]==="components"&&b[1]==="securitySchemes"&&await Promise.all(Object.values(A).filter(C=>(C==null?void 0:C.type)==="openIdConnect").map(async C=>{const T={url:C.openIdConnectUrl,requestInterceptor:g,responseInterceptor:y};try{const O=await a(T);O instanceof Error||O.status>=400?console.error(O.statusText+" "+T.url):C.openIdConnectData=JSON.parse(O.text)}catch(O){console.error(O)}})),(0,f7.default)(S,b,A),x=(0,n_e.default)(b,A,x),{resultMap:S,specWithCurrentSubtrees:x}},Promise.resolve({resultMap:(u.specResolvedSubtree([])||(0,K.Map)()).toJS(),specWithCurrentSubtrees:u.specJS()}));c.updateResolvedSubtree([],v.resultMap)}catch(v){console.error(v)}})},35),d_e=e=>t=>{ip.find(({path:r,system:n})=>n===t&&r.toString()===e.toString())||(ip.push({path:e,system:t}),f_e())};function p_e(e,t,r,n,i){return{type:Om,payload:{path:e,value:n,paramName:t,paramIn:r,isXml:i}}}function h_e(e,t,r,n){return{type:Om,payload:{path:e,param:t,value:r,isXml:n}}}const m_e=(e,t)=>({type:Rm,payload:{path:e,value:t}}),g_e=()=>({type:Rm,payload:{path:[],value:(0,K.Map)()}}),y_e=(e,t)=>({type:YC,payload:{pathMethod:e,isOAS3:t}}),v_e=(e,t,r,n)=>({type:GC,payload:{pathMethod:e,paramName:t,paramIn:r,includeEmptyValue:n}});function b_e(e){return{type:rR,payload:{pathMethod:e}}}function __e(e,t){return{type:Cm,payload:{path:e,value:t,key:"consumes_value"}}}function E_e(e,t){return{type:Cm,payload:{path:e,value:t,key:"produces_value"}}}const S_e=(e,t,r)=>({payload:{path:e,method:t,res:r},type:XC}),w_e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:ZC}),x_e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:QC}),A_e=e=>({payload:e,type:d7}),O_e=e=>({fn:t,specActions:r,specSelectors:n,getConfigs:i,oas3Selectors:s})=>{let{pathName:a,method:o,operation:u}=e,{requestInterceptor:c,responseInterceptor:l}=i(),f=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"))){e.parameters=e.parameters||{};const y=dU(g,e.parameters);(!y||y&&y.size===0)&&(e.parameters[g.get("name")]="")}}),e.contextUrl=(0,Uc.default)(n.url()).toString(),f&&f.operationId?e.operationId=f.operationId:f&&a&&o&&(e.operationId=t.opId(f,a,o)),n.isOAS3()){const g=`${a}:${o}`;e.server=s.selectedServer(g)||s.selectedServer();const y=s.serverVariables({server:e.server,namespace:g}).toJS(),v=s.serverVariables({server:e.server}).toJS();e.serverVariables=Object.keys(y).length?y:v,e.requestContentType=s.requestContentType(a,o),e.responseContentType=s.responseContentType(a,o)||"*/*";const E=s.requestBodyValue(a,o),b=s.requestBodyInclusionSetting(a,o);E&&E.toJS?e.requestBody=E.map(S=>K.Map.isMap(S)?S.get("value"):S).filter((S,x)=>(Array.isArray(S)?S.length!==0:!AC(S))||b.get(x)).toJS():e.requestBody=E}let h=Object.assign({},e);h=t.buildRequest(h),r.setRequest(e.pathName,e.method,h),e.requestInterceptor=async g=>{let y=await c.apply(void 0,[g]),v=Object.assign({},y);return r.setMutatedRequest(e.pathName,e.method,v),y},e.responseInterceptor=l;const p=Date.now();return t.execute(e).then(g=>{g.duration=Date.now()-p,r.setResponse(e.pathName,e.method,g)}).catch(g=>{g.message==="Failed to fetch"&&(g.name="",g.message=`**Failed to fetch.**
300
+ **Possible Reasons:**
301
+ - CORS
302
+ - Network Failure
303
+ - URL scheme must be "http" or "https" for CORS request.`),r.setResponse(e.pathName,e.method,{error:!0,err:g})})},C_e=({path:e,method:t,...r}={})=>n=>{let{fn:{fetch:i},specSelectors:s,specActions:a}=n,o=s.specJsonWithResolvedSubtrees().toJS(),u=s.operationScheme(e,t),{requestContentType:c,responseContentType:l}=s.contentTypeValues([e,t]).toJS(),f=/xml/i.test(c),h=s.parameterValues([e,t],f).toJS();return a.executeRequest({...r,fetch:i,spec:o,pathName:e,method:t,parameters:h,requestContentType:c,scheme:u,responseContentType:l})};function R_e(e,t){return{type:eR,payload:{path:e,method:t}}}function T_e(e,t){return{type:tR,payload:{path:e,method:t}}}function I_e(e,t,r){return{type:iR,payload:{scheme:e,path:t,method:r}}}var j_e={[JC]:(e,t)=>typeof t.payload=="string"?e.set("spec",t.payload):e,[KC]:(e,t)=>e.set("url",t.payload+""),[HC]:(e,t)=>e.set("json",Xi(t.payload)),[nR]:(e,t)=>e.setIn(["resolved"],Xi(t.payload)),[Rm]:(e,t)=>{const{value:r,path:n}=t.payload;return e.setIn(["resolvedSubtrees",...n],Xi(r))},[Om]:(e,{payload:t})=>{let{path:r,paramName:n,paramIn:i,param:s,value:a,isXml:o}=t,u=s?np(s):`${i}.${n}`;const c=o?"value_xml":"value";return e.setIn(["meta","paths",...r,"parameters",u,c],(0,K.fromJS)(a))},[GC]:(e,{payload:t})=>{let{pathMethod:r,paramName:n,paramIn:i,includeEmptyValue:s}=t;if(!n||!i)return console.warn("Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey."),e;const a=`${i}.${n}`;return e.setIn(["meta","paths",...r,"parameter_inclusions",a],s)},[YC]:(e,{payload:{pathMethod:t,isOAS3:r}})=>{const n=Bi(e).getIn(["paths",...t]),i=a7(e,t).toJS();return e.updateIn(["meta","paths",...t,"parameters"],(0,K.fromJS)({}),s=>n.get("parameters",(0,K.List)()).reduce((a,o)=>{const u=dU(o,i),c=i7(e,t,o.get("name"),o.get("in")),l=((f,h,{isOAS3:p=!1,bypassRequiredCheck:g=!1}={})=>{let y=f.get("required"),{schema:v,parameterContentMediaType:E}=Sd(f,{isOAS3:p});return fA(h,v,y,g,E)})(o,u,{bypassRequiredCheck:c,isOAS3:r});return a.setIn([np(o),"errors"],(0,K.fromJS)(l))},s))},[rR]:(e,{payload:{pathMethod:t}})=>e.updateIn(["meta","paths",...t,"parameters"],(0,K.fromJS)([]),r=>r.map(n=>n.set("errors",(0,K.fromJS)([])))),[XC]:(e,{payload:{res:t,path:r,method:n}})=>{let i;i=t.error?Object.assign({error:!0,name:t.err.name,message:t.err.message,statusCode:t.err.statusCode},t.err.response):t,i.headers=i.headers||{};let s=e.setIn(["responses",r,n],Xi(i));return Xt.Blob&&i.data instanceof Xt.Blob&&(s=s.setIn(["responses",r,n,"text"],i.data)),s},[ZC]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["requests",r,n],Xi(t)),[QC]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["mutatedRequests",r,n],Xi(t)),[Cm]:(e,{payload:{path:t,value:r,key:n}})=>{let i=["paths",...t],s=["meta","paths",...t];return e.getIn(["json",...i])||e.getIn(["resolved",...i])||e.getIn(["resolvedSubtrees",...i])?e.setIn([...s,n],(0,K.fromJS)(r)):e},[eR]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["responses",t,r]),[tR]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["requests",t,r]),[iR]:(e,{payload:{scheme:t,path:r,method:n}})=>r&&n?e.setIn(["scheme",r,n],t):r||n?void 0:e.setIn(["scheme","_defaultScheme"],t)};const k_e=(e,{specActions:t})=>(...r)=>{e(...r),t.parseToJson(...r)},P_e=(e,{specActions:t})=>(...r)=>{e(...r),t.invalidateResolvedSubtreeCache();const[n]=r,i=(0,hA.default)(n,["paths"])||{};Object.keys(i).forEach(s=>{(0,hA.default)(i,[s]).$ref&&t.requestResolvedSubtree(["paths",s])}),t.requestResolvedSubtree(["components","securitySchemes"])},N_e=(e,{specActions:t})=>r=>(t.logRequest(r),e(r)),M_e=(e,{specSelectors:t})=>r=>e(r,t.isOAS3());var p7=()=>({statePlugins:{spec:{wrapActions:{...iA},reducers:{...j_e},actions:{...nA},selectors:{...rA}}}}),V3=function(e){var t={};return me.d(t,e),t}({default:function(){return g9}}),z3=function(e){var t={};return me.d(t,e),t}({default:function(){return b9}}),W3=function(e){var t={};return me.d(t,e),t}({default:function(){return _9}}),J3=function(e){var t={};return me.d(t,e),t}({default:function(){return Ofe}}),D_e=function(e){var t={};return me.d(t,e),t}({makeResolve:function(){return i5}}),K3=function(e){var t={};return me.d(t,e),t}({buildRequest:function(){return g5},execute:function(){return Fde}}),nw=function(e){var t={};return me.d(t,e),t}({default:function(){return Mc},makeHttp:function(){return Nse},serializeRes:function(){return p9}}),q_e=function(e){var t={};return me.d(t,e),t}({makeResolveSubtree:function(){return Wde}}),h7=function(e){var t={};return me.d(t,e),t}({opId:function(){return Nh}});const $_e=(e,t)=>(...r)=>{e(...r);const n=t.getConfigs().withCredentials;t.fn.fetch.withCredentials=n};function m7({configs:e,getConfigs:t}){return{fn:{fetch:(0,nw.makeHttp)(nw.default,e.preFetch,e.postFetch),buildRequest:K3.buildRequest,execute:K3.execute,resolve:(0,D_e.makeResolve)({strategies:[J3.default,W3.default,z3.default,V3.default]}),resolveSubtree:async(r,n,i={})=>{const s=t(),a={modelPropertyMacro:s.modelPropertyMacro,parameterMacro:s.parameterMacro,requestInterceptor:s.requestInterceptor,responseInterceptor:s.responseInterceptor,strategies:[J3.default,W3.default,z3.default,V3.default]};return(0,q_e.makeResolveSubtree)(a)(r,n,i)},serializeRes:nw.serializeRes,opId:h7.opId},statePlugins:{configs:{wrapActions:{loaded:$_e}}}}}function g7(){return{fn:{shallowEqualKeys:wve,sanitizeUrl:vr}}}var y7=function(e){var t={};return me.d(t,e),t}({default:function(){return $z.default}}),v7=function(e){var t={};return me.d(t,e),t}({Provider:function(){return Fpe},connect:function(){return qpe}}),b7=function(e){var t={};return me.d(t,e),t}({default:function(){return Bpe}});const F_e=e=>t=>{const{fn:r}=e();class n extends d.Component{render(){return d.default.createElement(t,(0,At.default)({},e(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(t)})`,n},L_e=(e,t)=>r=>{const{fn:n}=e();class i extends d.Component{render(){return d.default.createElement(v7.Provider,{store:t},d.default.createElement(r,(0,At.default)({},this.props,this.context)))}}return i.displayName=`WithRoot(${n.getDisplayName(r)})`,i},H3=(e,t,r)=>(0,oc.compose)(r?L_e(e,r):b7.default,(0,v7.connect)((n,i)=>{var o;const s={...i,...e()};return(((o=t.prototype)==null?void 0:o.mapStateToProps)||(u=>({state:u})))(n,s)}),F_e(e))(t),G3=(e,t,r,n)=>{for(const i in t){const s=t[i];typeof s=="function"&&s(r[i],n[i],e())}},B_e=(e,t,r)=>(n,i)=>{const{fn:s}=e(),a=r(n,"root");class o extends d.Component{constructor(c,l){super(c,l),G3(e,i,c,{})}UNSAFE_componentWillReceiveProps(c){G3(e,i,c,this.props)}render(){const c=(0,kC.default)(this.props,i?Object.keys(i):[]);return d.default.createElement(a,c)}}return o.displayName=`WithMappedContainer(${s.getDisplayName(a)})`,o},U_e=(e,t,r,n)=>i=>{const s=r(e,t,n)("App","root"),{createRoot:a}=y7.default;a(i).render(d.default.createElement(s,null))},EA=(e,t,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"?H3(e,a,t()):H3(e,a):a:(s.failSilently||e().log.warn("Could not find component:",n),null)},V_e=e=>e.displayName||e.name||"Component";var _7=({getComponents:e,getStore:t,getSystem:r})=>{const n=(i=EA(r,t,e),Eve(i,(...a)=>JSON.stringify(a)));var i;const s=(a=>vf(a,(...o)=>o))(B_e(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:s,render:U_e(r,t,EA,e)},fn:{getDisplayName:V_e}}},E7=({React:e,getSystem:t,getStore:r,getComponents:n})=>{const i={},s=parseInt(e==null?void 0:e.version,10);return s>=16&&s<18&&(i.render=((a,o,u,c)=>l=>{const f=u(a,o,c)("App","root");y7.default.render(d.default.createElement(f,null),l)})(t,r,EA,n)),{rootInjects:i}};function S7(e){let{fn:t}=e;const r={download:i=>({errActions:s,specSelectors:a,specActions:o,getConfigs:u})=>{let{fetch:c}=t;const l=u();function f(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 Xt?g=new URL(i):(g=document.createElement("a"),g.href=i),g.protocol!=="https:"&&Xt.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!==Xt.location.origin){const y=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${g.origin}) does not match the page (${Xt.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"}),c({url:i,loadSpec:!0,requestInterceptor:l.requestInterceptor||(h=>h),responseInterceptor:l.responseInterceptor||(h=>h),credentials:"same-origin",headers:{Accept:"application/json,*/*"}}).then(f,f)},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,et.createSelector)(i=>i||(0,K.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 Ss=function(e){var t={};return me.d(t,e),t}({default:function(){return D5}}),Y3=function(e){var t={};return me.d(t,e),t}({default:function(){return vhe}}),z_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Ehe}}),W_e=function(e){var t={};return me.d(t,e),t}({default:function(){return xhe}}),J_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Che}}),K_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Ihe}}),H_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Phe}}),G_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Dhe}}),Y_e=()=>{Ss.default.registerLanguage("json",z_e.default),Ss.default.registerLanguage("js",Y3.default),Ss.default.registerLanguage("xml",W_e.default),Ss.default.registerLanguage("yaml",K_e.default),Ss.default.registerLanguage("http",H_e.default),Ss.default.registerLanguage("bash",J_e.default),Ss.default.registerLanguage("powershell",G_e.default),Ss.default.registerLanguage("javascript",Y3.default)},w7=function(e){var t={};return me.d(t,e),t}({default:function(){return qhe}}),X_e=function(e){var t={};return me.d(t,e),t}({default:function(){return $he}}),Z_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Fhe}}),Q_e=function(e){var t={};return me.d(t,e),t}({default:function(){return Lhe}}),eEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Bhe}}),tEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Uhe}}),rEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Vhe}});const nEe={agate:w7.default,arta:X_e.default,monokai:Z_e.default,nord:Q_e.default,obsidian:eEe.default,"tomorrow-night":tEe.default,idea:rEe.default},iEe=w7.default;var sEe=({language:e,className:t="",getConfigs:r,syntaxHighlighting:n={},children:i=""})=>{const s=r().syntaxHighlight.theme,{styles:a,defaultStyle:o}=n,u=(a==null?void 0:a[s])??o;return d.default.createElement(Ss.default,{language:e,className:t,style:u},i)},aEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Jhe}}),oEe=({fileName:e="response.txt",className:t,downloadable:r,getComponent:n,canCopy:i,language:s,children:a})=>{const o=(0,d.useRef)(null),u=n("SyntaxHighlighter",!0),c=l=>{const{target:f,deltaY:h}=l,{scrollHeight:p,offsetHeight:g,scrollTop:y}=f;p>g&&(y===0&&h<0||g+y>=p&&h>0)&&l.preventDefault()};return(0,d.useEffect)(()=>{const l=Array.from(o.current.childNodes).filter(f=>!!f.nodeType&&f.classList.contains("microlight"));return l.forEach(f=>f.addEventListener("mousewheel",c,{passive:!1})),()=>{l.forEach(f=>f.removeEventListener("mousewheel",c))}},[a,t,s]),d.default.createElement("div",{className:"highlight-code",ref:o},i&&d.default.createElement("div",{className:"copy-to-clipboard"},d.default.createElement(xm.CopyToClipboard,{text:a},d.default.createElement("button",null))),r?d.default.createElement("button",{className:"download-contents",onClick:()=>{(0,aEe.default)(a,e)}},"Download"):null,d.default.createElement(u,{language:s,className:(0,Ot.default)(t,"microlight"),renderPlainText:({children:l,PlainTextViewer:f})=>d.default.createElement(f,{className:t},l)},a))},uEe=({className:e="",children:t})=>d.default.createElement("pre",{className:(0,Ot.default)("microlight",e)},t),cEe=(e,t)=>({renderPlainText:r,children:n,...i})=>{const s=t.getConfigs().syntaxHighlight.activated,a=t.getComponent("PlainTextViewer");return s||typeof r!="function"?s?d.default.createElement(e,i,n):d.default.createElement(a,null,n):r({children:n,PlainTextViewer:a})};const lEe=()=>({afterLoad:Y_e,rootInjects:{syntaxHighlighting:{styles:nEe,defaultStyle:iEe}},components:{SyntaxHighlighter:sEe,HighlightCode:oEe,PlainTextViewer:uEe}}),fEe=()=>({wrapComponents:{SyntaxHighlighter:cEe}});var x7=()=>[lEe,fEe],dEe=()=>{const{GIT_DIRTY:e,GIT_COMMIT:t,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.20.2",GIT_COMMIT:"g28f77cb2",GIT_DIRTY:!0,BUILD_TIME:"Thu, 27 Mar 2025 14:12:18 GMT"};Xt.versions=Xt.versions||{},Xt.versions.swaggerUI={version:r,gitRevision:t,gitDirty:e,buildTimestamp:n}},A7=()=>({afterLoad:dEe}),pEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Yhe}});const O7=console.error,hEe=e=>t=>{const{getComponent:r,fn:n}=e(),i=r("ErrorBoundary"),s=n.getDisplayName(t);class a extends d.Component{render(){return d.default.createElement(i,{targetName:s,getComponent:r,fn:n},d.default.createElement(t,(0,At.default)({},this.props,this.context)))}}var o;return a.displayName=`WithErrorBoundary(${s})`,(o=t).prototype&&o.prototype.isReactComponent&&(a.prototype.mapStateToProps=t.prototype.mapStateToProps),a};var C7=({name:e})=>d.default.createElement("div",{className:"fallback"},"😱 ",d.default.createElement("i",null,"Could not render ",e==="t"?"this component":e,", see the console."));class R7 extends d.Component{static getDerivedStateFromError(t){return{hasError:!0,error:t}}constructor(...t){super(...t),this.state={hasError:!1,error:null}}componentDidCatch(t,r){this.props.fn.componentDidCatch(t,r)}render(){const{getComponent:t,targetName:r,children:n}=this.props;if(this.state.hasError){const i=t("Fallback");return d.default.createElement(i,{name:r})}return n}}z(R7,"defaultProps",{targetName:"this component",getComponent:()=>C7,fn:{componentDidCatch:O7},children:null});var mEe=R7,T7=({componentList:e=[],fullOverride:t=!1}={})=>({getSystem:r})=>{const n=t?e:["App","BaseLayout","VersionPragmaFilter","InfoContainer","ServersContainer","SchemesContainer","AuthorizeBtnContainer","FilterContainer","Operations","OperationContainer","parameters","responses","OperationServers","Models","ModelWrapper",...e],i=(0,pEe.default)(n,Array(n.length).fill((s,{fn:a})=>a.withErrorBoundary(s)));return{fn:{componentDidCatch:O7,withErrorBoundary:hEe(r)},components:{ErrorBoundary:mEe,Fallback:C7},wrapComponents:i}};class gEe extends d.default.Component{getLayout(){const{getComponent:t,layoutSelectors:r}=this.props,n=r.current();return t(n,!0)||(()=>d.default.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const t=this.getLayout();return d.default.createElement(t,null)}}var yEe=gEe;class vEe extends d.default.Component{constructor(){super(...arguments);z(this,"close",()=>{let{authActions:r}=this.props;r.showDefinitions(!1)})}render(){let{authSelectors:r,authActions:n,getComponent:i,errSelectors:s,specSelectors:a,fn:{AST:o={}}}=this.props,u=r.shownDefinitions();const c=i("auths"),l=i("CloseIcon");return d.default.createElement("div",{className:"dialog-ux"},d.default.createElement("div",{className:"backdrop-ux"}),d.default.createElement("div",{className:"modal-ux"},d.default.createElement("div",{className:"modal-dialog-ux"},d.default.createElement("div",{className:"modal-ux-inner"},d.default.createElement("div",{className:"modal-ux-header"},d.default.createElement("h3",null,"Available authorizations"),d.default.createElement("button",{type:"button",className:"close-modal",onClick:this.close},d.default.createElement(l,null))),d.default.createElement("div",{className:"modal-ux-content"},u.valueSeq().map((f,h)=>d.default.createElement(c,{key:h,AST:o,definitions:f,getComponent:i,errSelectors:s,authSelectors:r,authActions:n,specSelectors:a})))))))}}class bEe extends d.default.Component{render(){let{isAuthorized:t,showPopup:r,onClick:n,getComponent:i}=this.props;const s=i("authorizationPopup",!0),a=i("LockAuthIcon",!0),o=i("UnlockAuthIcon",!0);return d.default.createElement("div",{className:"auth-wrapper"},d.default.createElement("button",{className:t?"btn authorize locked":"btn authorize unlocked",onClick:n},d.default.createElement("span",null,"Authorize"),t?d.default.createElement(a,null):d.default.createElement(o,null)),r&&d.default.createElement(s,null))}}class _Ee extends d.default.Component{render(){const{authActions:t,authSelectors:r,specSelectors:n,getComponent:i}=this.props,s=n.securityDefinitions(),a=r.definitionsToAuthorize(),o=i("authorizeBtn");return s?d.default.createElement(o,{onClick:()=>t.showDefinitions(a),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:i}):null}}class EEe extends d.default.Component{constructor(){super(...arguments);z(this,"onClick",r=>{r.stopPropagation();let{onClick:n}=this.props;n&&n()})}render(){let{isAuthorized:r,getComponent:n}=this.props;const i=n("LockAuthOperationIcon",!0),s=n("UnlockAuthOperationIcon",!0);return d.default.createElement("button",{className:"authorization__btn","aria-label":r?"authorization button locked":"authorization button unlocked",onClick:this.onClick},r?d.default.createElement(i,{className:"locked"}):d.default.createElement(s,{className:"unlocked"}))}}class SEe extends d.default.Component{constructor(r,n){super(r,n);z(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});z(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});z(this,"logoutClick",r=>{r.preventDefault();let{authActions:n,definitions:i}=this.props,s=i.map((a,o)=>o).toArray();this.setState(s.reduce((a,o)=>(a[o]="",a),{})),n.logoutWithPersistOption(s)});z(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});this.state={}}render(){let{definitions:r,getComponent:n,authSelectors:i,errSelectors:s}=this.props;const a=n("AuthItem"),o=n("oauth2",!0),u=n("Button");let c=i.authorized(),l=r.filter((p,g)=>!!c.get(g)),f=r.filter(p=>p.get("type")!=="oauth2"),h=r.filter(p=>p.get("type")==="oauth2");return d.default.createElement("div",{className:"auth-container"},!!f.size&&d.default.createElement("form",{onSubmit:this.submitAuth},f.map((p,g)=>d.default.createElement(a,{key:g,schema:p,name:g,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i})).toArray(),d.default.createElement("div",{className:"auth-btn-wrapper"},f.size===l.size?d.default.createElement(u,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):d.default.createElement(u,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),d.default.createElement(u,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),h&&h.size?d.default.createElement("div",null,d.default.createElement("div",{className:"scope-def"},d.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."),d.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter(p=>p.get("type")==="oauth2").map((p,g)=>d.default.createElement("div",{key:g},d.default.createElement(o,{authorized:c,schema:p,name:g}))).toArray()):null)}}class wEe extends d.default.Component{render(){let{schema:t,name:r,getComponent:n,onAuthChange:i,authorized:s,errSelectors:a,authSelectors:o}=this.props;const u=n("apiKeyAuth"),c=n("basicAuth");let l;const f=t.get("type");switch(f){case"apiKey":l=d.default.createElement(u,{key:r,schema:t,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;case"basic":l=d.default.createElement(c,{key:r,schema:t,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;default:l=d.default.createElement("div",{key:r},"Unknown security definition type ",f)}return d.default.createElement("div",{key:`${r}-jump`},l)}}class xEe extends d.default.Component{render(){let{error:t}=this.props,r=t.get("level"),n=t.get("message"),i=t.get("source");return d.default.createElement("div",{className:"errors"},d.default.createElement("b",null,i," ",r),d.default.createElement("span",null,n))}}class AEe extends d.default.Component{constructor(r,n){super(r,n);z(this,"onChange",r=>{let{onChange:n}=this.props,i=r.target.value,s=Object.assign({},this.state,{value:i});this.setState(s),n(s)});let{name:i,schema:s}=this.props,a=this.getValue();this.state={name:i,schema:s,value:a}}getValue(){let{name:r,authorized:n}=this.props;return n&&n.getIn([r,"value"])}render(){let{schema:r,getComponent:n,errSelectors:i,name:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("Markdown",!0),h=n("JumpToPath",!0),p=a.selectAuthPath(s);let g=this.getValue(),y=i.allErrors().filter(v=>v.get("authId")===s);return d.default.createElement("div",null,d.default.createElement("h4",null,d.default.createElement("code",null,s||r.get("name"))," (apiKey)",d.default.createElement(h,{path:p})),g&&d.default.createElement("h6",null,"Authorized"),d.default.createElement(u,null,d.default.createElement(f,{source:r.get("description")})),d.default.createElement(u,null,d.default.createElement("p",null,"Name: ",d.default.createElement("code",null,r.get("name")))),d.default.createElement(u,null,d.default.createElement("p",null,"In: ",d.default.createElement("code",null,r.get("in")))),d.default.createElement(u,null,d.default.createElement("label",{htmlFor:"api_key_value"},"Value:"),g?d.default.createElement("code",null," ****** "):d.default.createElement(c,null,d.default.createElement(o,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),y.valueSeq().map((v,E)=>d.default.createElement(l,{error:v,key:E})))}}class OEe extends d.default.Component{constructor(r,n){super(r,n);z(this,"onChange",r=>{let{onChange:n}=this.props,{value:i,name:s}=r.target,a=this.state.value;a[s]=i,this.setState({value:a}),n(this.state)});let{schema:i,name:s}=this.props,a=this.getValue().username;this.state={name:s,schema:i,value:a?{username:a}:{}}}getValue(){let{authorized:r,name:n}=this.props;return r&&r.getIn([n,"value"])||{}}render(){let{schema:r,getComponent:n,name:i,errSelectors:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("JumpToPath",!0),h=n("Markdown",!0),p=a.selectAuthPath(i);let g=this.getValue().username,y=s.allErrors().filter(v=>v.get("authId")===i);return d.default.createElement("div",null,d.default.createElement("h4",null,"Basic authorization",d.default.createElement(f,{path:p})),g&&d.default.createElement("h6",null,"Authorized"),d.default.createElement(u,null,d.default.createElement(h,{source:r.get("description")})),d.default.createElement(u,null,d.default.createElement("label",{htmlFor:"auth_username"},"Username:"),g?d.default.createElement("code",null," ",g," "):d.default.createElement(c,null,d.default.createElement(o,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),d.default.createElement(u,null,d.default.createElement("label",{htmlFor:"auth_password"},"Password:"),g?d.default.createElement("code",null," ****** "):d.default.createElement(c,null,d.default.createElement(o,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),y.valueSeq().map((v,E)=>d.default.createElement(l,{error:v,key:E})))}}function CEe(e){const{example:t,showValue:r,getComponent:n}=e,i=n("Markdown",!0),s=n("HighlightCode",!0);return t&&K.Map.isMap(t)?d.default.createElement("div",{className:"example"},t.get("description")?d.default.createElement("section",{className:"example__section"},d.default.createElement("div",{className:"example__section-header"},"Example Description"),d.default.createElement("p",null,d.default.createElement(i,{source:t.get("description")}))):null,r&&t.has("value")?d.default.createElement("section",{className:"example__section"},d.default.createElement("div",{className:"example__section-header"},"Example Value"),d.default.createElement(s,null,Xr(t.get("value")))):null):null}class I7 extends d.default.PureComponent{constructor(){super(...arguments);z(this,"_onSelect",(r,{isSyntheticChange:n=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(r,{isSyntheticChange:n})});z(this,"_onDomSelect",r=>{if(typeof this.props.onSelect=="function"){const n=r.target.selectedOptions[0].getAttribute("value");this._onSelect(n,{isSyntheticChange:!1})}});z(this,"getCurrentExample",()=>{const{examples:r,currentExampleKey:n}=this.props,i=r.get(n),s=r.keySeq().first(),a=r.get(s);return i||a||(0,K.Map)({})})}componentDidMount(){const{onSelect:r,examples:n}=this.props;if(typeof r=="function"){const i=n.first(),s=n.keyOf(i);this._onSelect(s,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(r){const{currentExampleKey:n,examples:i}=r;if(i!==this.props.examples&&!i.has(n)){const s=i.first(),a=i.keyOf(s);this._onSelect(a,{isSyntheticChange:!0})}}render(){const{examples:r,currentExampleKey:n,isValueModified:i,isModifiedValueAvailable:s,showLabels:a}=this.props;return d.default.createElement("div",{className:"examples-select"},a?d.default.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,d.default.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:s&&i?"__MODIFIED__VALUE__":n||""},s?d.default.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,r.map((o,u)=>d.default.createElement("option",{key:u,value:u},K.Map.isMap(o)&&o.get("summary")||u)).valueSeq()))}}z(I7,"defaultProps",{examples:(0,K.Map)({}),onSelect:(...r)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...r),currentExampleKey:null,showLabels:!0});const iw=e=>K.List.isList(e)?e:Xr(e);class j7 extends d.default.PureComponent{constructor(r){super(r);z(this,"_getStateForCurrentNamespace",()=>{const{currentNamespace:r}=this.props;return(this.state[r]||(0,K.Map)()).toObject()});z(this,"_setStateForCurrentNamespace",r=>{const{currentNamespace:n}=this.props;return this._setStateForNamespace(n,r)});z(this,"_setStateForNamespace",(r,n)=>{const i=(this.state[r]||(0,K.Map)()).mergeDeep(n);return this.setState({[r]:i})});z(this,"_isCurrentUserInputSameAsExampleValue",()=>{const{currentUserInputValue:r}=this.props;return this._getCurrentExampleValue()===r});z(this,"_getValueForExample",(r,n)=>{const{examples:i}=n||this.props;return iw((i||(0,K.Map)({})).getIn([r,"value"]))});z(this,"_getCurrentExampleValue",r=>{const{currentKey:n}=r||this.props;return this._getValueForExample(n,r||this.props)});z(this,"_onExamplesSelect",(r,{isSyntheticChange:n}={},...i)=>{const{onSelect:s,updateValue:a,currentUserInputValue:o,userHasEditedBody:u}=this.props,{lastUserEditedValue:c}=this._getStateForCurrentNamespace(),l=this._getValueForExample(r);if(r==="__MODIFIED__VALUE__")return a(iw(c)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof s=="function"&&s(r,{isSyntheticChange:n},...i),this._setStateForCurrentNamespace({lastDownstreamValue:l,isModifiedValueSelected:n&&u||!!o&&o!==l}),n||typeof a=="function"&&a(iw(l))});const n=this._getCurrentExampleValue();this.state={[r.currentNamespace]:(0,K.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:n,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==n})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}UNSAFE_componentWillReceiveProps(r){const{currentUserInputValue:n,examples:i,onSelect:s,userHasEditedBody:a}=r,{lastUserEditedValue:o,lastDownstreamValue:u}=this._getStateForCurrentNamespace(),c=this._getValueForExample(r.currentKey,r),l=i.filter(f=>f.get("value")===n||Xr(f.get("value"))===n);if(l.size){let f;f=l.has(r.currentKey)?r.currentKey:l.keySeq().first(),s(f,{isSyntheticChange:!0})}else n!==this.props.currentUserInputValue&&n!==o&&n!==u&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(r.currentNamespace,{lastUserEditedValue:r.currentUserInputValue,isModifiedValueSelected:a||n!==c}))}render(){const{currentUserInputValue:r,examples:n,currentKey:i,getComponent:s,userHasEditedBody:a}=this.props,{lastDownstreamValue:o,lastUserEditedValue:u,isModifiedValueSelected:c}=this._getStateForCurrentNamespace(),l=s("ExamplesSelect");return d.default.createElement(l,{examples:n,currentExampleKey:i,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!u&&u!==o,isValueModified:r!==void 0&&c&&r!==this._getCurrentExampleValue()||a})}}z(j7,"defaultProps",{userHasEditedBody:!1,examples:(0,K.Map)({}),currentNamespace:"__DEFAULT__NAMESPACE__",setRetainRequestBodyValueFlag:()=>{},onSelect:(...r)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...r),updateValue:(...r)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...r)});function REe({auth:e,authActions:t,errActions:r,configs:n,authConfigs:i={},currentServer:s}){let{schema:a,scopes:o,name:u,clientId:c}=e,l=a.get("flow"),f=[];switch(l){case"password":return void t.authorizePassword(e);case"application":case"clientCredentials":case"client_credentials":return void t.authorizeApplication(e);case"accessCode":case"authorizationCode":case"authorization_code":f.push("response_type=code");break;case"implicit":f.push("response_type=token")}typeof c=="string"&&f.push("client_id="+encodeURIComponent(c));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."});f.push("redirect_uri="+encodeURIComponent(h));let p=[];if(Array.isArray(o)?p=o:K.default.List.isList(o)&&(p=o.toArray()),p.length>0){let x=i.scopeSeparator||" ";f.push("scope="+encodeURIComponent(p.join(x)))}let g=yf(new Date);if(f.push("state="+encodeURIComponent(g)),i.realm!==void 0&&f.push("realm="+encodeURIComponent(i.realm)),(l==="authorizationCode"||l==="authorization_code"||l==="accessCode")&&i.usePkceWithAuthorizationCodeGrant){const x=function(){return C3(Uo()(32).toString("base64"))}(),_=function(C){return C3(bve()("sha256").update(C).digest("base64"))}(x);f.push("code_challenge="+_),f.push("code_challenge_method=S256"),e.codeVerifier=x}let{additionalQueryStringParams:y}=i;for(let x in y)y[x]!==void 0&&f.push([x,y[x]].map(encodeURIComponent).join("="));const v=a.get("authorizationUrl");let E;E=s?(0,Uc.default)(vr(v),s,!0).toString():vr(v);let b,S=[E,f.join("&")].join(v.indexOf("?")===-1?"?":"&");b=l==="implicit"?t.preAuthorizeImplicit:i.useBasicAuthenticationWithAccessCodeGrant?t.authorizeAccessCodeWithBasicAuthentication:t.authorizeAccessCodeWithFormParams,t.authPopup(S,{auth:e,state:g,redirectUrl:h,callback:b,errCb:r.newAuthErr})}class TEe extends d.default.Component{constructor(r,n){super(r,n);z(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});z(this,"authorize",()=>{let{authActions:r,errActions:n,getConfigs:i,authSelectors:s,oas3Selectors:a}=this.props,o=i(),u=s.getConfigs();n.clear({authId:name,type:"auth",source:"auth"}),REe({auth:this.state,currentServer:a.serverEffectiveValue(a.selectedServer()),authActions:r,errActions:n,configs:o,authConfigs:u})});z(this,"onScopeChange",r=>{let{target:n}=r,{checked:i}=n,s=n.dataset.value;if(i&&this.state.scopes.indexOf(s)===-1){let a=this.state.scopes.concat([s]);this.setState({scopes:a})}else!i&&this.state.scopes.indexOf(s)>-1&&this.setState({scopes:this.state.scopes.filter(a=>a!==s)})});z(this,"onInputChange",r=>{let{target:{dataset:{name:n},value:i}}=r,s={[n]:i};this.setState(s)});z(this,"selectScopes",r=>{r.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get("allowedScopes")||this.props.schema.get("scopes")).keys())}):this.setState({scopes:[]})});z(this,"logout",r=>{r.preventDefault();let{authActions:n,errActions:i,name:s}=this.props;i.clear({authId:s,type:"auth",source:"auth"}),n.logoutWithPersistOption([s])});let{name:i,schema:s,authorized:a,authSelectors:o}=this.props,u=a&&a.get(i),c=o.getConfigs()||{},l=u&&u.get("username")||"",f=u&&u.get("clientId")||c.clientId||"",h=u&&u.get("clientSecret")||c.clientSecret||"",p=u&&u.get("passwordType")||"basic",g=u&&u.get("scopes")||c.scopes||[];typeof g=="string"&&(g=g.split(c.scopeSeparator||" ")),this.state={appName:c.appName,name:i,schema:s,scopes:g,clientId:f,clientSecret:h,username:l,password:"",passwordType:p}}render(){let{schema:r,getComponent:n,authSelectors:i,errSelectors:s,name:a,specSelectors:o}=this.props;const u=n("Input"),c=n("Row"),l=n("Col"),f=n("Button"),h=n("authError"),p=n("JumpToPath",!0),g=n("Markdown",!0),y=n("InitializedInput"),{isOAS3:v}=o;let E=v()?r.get("openIdConnectUrl"):null;const b="implicit",S="password",x=v()?E?"authorization_code":"authorizationCode":"accessCode",_=v()?E?"client_credentials":"clientCredentials":"application",A=i.selectAuthPath(a);let C=!!(i.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,T=r.get("flow"),O=T===x&&C?T+" with PKCE":T,M=r.get("allowedScopes")||r.get("scopes"),k=!!i.authorized().get(a),D=s.allErrors().filter(X=>X.get("authId")===a),P=!D.filter(X=>X.get("source")==="validation").size,H=r.get("description");return d.default.createElement("div",null,d.default.createElement("h4",null,a," (OAuth2, ",O,") ",d.default.createElement(p,{path:A})),this.state.appName?d.default.createElement("h5",null,"Application: ",this.state.appName," "):null,H&&d.default.createElement(g,{source:r.get("description")}),k&&d.default.createElement("h6",null,"Authorized"),E&&d.default.createElement("p",null,"OpenID Connect URL: ",d.default.createElement("code",null,E)),(T===b||T===x)&&d.default.createElement("p",null,"Authorization URL: ",d.default.createElement("code",null,r.get("authorizationUrl"))),(T===S||T===x||T===_)&&d.default.createElement("p",null,"Token URL:",d.default.createElement("code",null," ",r.get("tokenUrl"))),d.default.createElement("p",{className:"flow"},"Flow: ",d.default.createElement("code",null,O)),T!==S?null:d.default.createElement(c,null,d.default.createElement(c,null,d.default.createElement("label",{htmlFor:"oauth_username"},"username:"),k?d.default.createElement("code",null," ",this.state.username," "):d.default.createElement(l,{tablet:10,desktop:10},d.default.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),d.default.createElement(c,null,d.default.createElement("label",{htmlFor:"oauth_password"},"password:"),k?d.default.createElement("code",null," ****** "):d.default.createElement(l,{tablet:10,desktop:10},d.default.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),d.default.createElement(c,null,d.default.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),k?d.default.createElement("code",null," ",this.state.passwordType," "):d.default.createElement(l,{tablet:10,desktop:10},d.default.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},d.default.createElement("option",{value:"basic"},"Authorization header"),d.default.createElement("option",{value:"request-body"},"Request body"))))),(T===_||T===b||T===x||T===S)&&(!k||k&&this.state.clientId)&&d.default.createElement(c,null,d.default.createElement("label",{htmlFor:`client_id_${T}`},"client_id:"),k?d.default.createElement("code",null," ****** "):d.default.createElement(l,{tablet:10,desktop:10},d.default.createElement(y,{id:`client_id_${T}`,type:"text",required:T===S,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(T===_||T===x||T===S)&&d.default.createElement(c,null,d.default.createElement("label",{htmlFor:`client_secret_${T}`},"client_secret:"),k?d.default.createElement("code",null," ****** "):d.default.createElement(l,{tablet:10,desktop:10},d.default.createElement(y,{id:`client_secret_${T}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!k&&M&&M.size?d.default.createElement("div",{className:"scopes"},d.default.createElement("h2",null,"Scopes:",d.default.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),d.default.createElement("a",{onClick:this.selectScopes},"select none")),M.map((X,V)=>d.default.createElement(c,{key:V},d.default.createElement("div",{className:"checkbox"},d.default.createElement(u,{"data-value":V,id:`${V}-${T}-checkbox-${this.state.name}`,disabled:k,checked:this.state.scopes.includes(V),type:"checkbox",onChange:this.onScopeChange}),d.default.createElement("label",{htmlFor:`${V}-${T}-checkbox-${this.state.name}`},d.default.createElement("span",{className:"item"}),d.default.createElement("div",{className:"text"},d.default.createElement("p",{className:"name"},V),d.default.createElement("p",{className:"description"},X)))))).toArray()):null,D.valueSeq().map((X,V)=>d.default.createElement(h,{error:X,key:V})),d.default.createElement("div",{className:"auth-btn-wrapper"},P&&(k?d.default.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):d.default.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),d.default.createElement(f,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class IEe extends d.Component{constructor(){super(...arguments);z(this,"onClick",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearResponse(n,i),r.clearRequest(n,i)})}render(){return d.default.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const jEe=({headers:e})=>d.default.createElement("div",null,d.default.createElement("h5",null,"Response headers"),d.default.createElement("pre",{className:"microlight"},e)),kEe=({duration:e})=>d.default.createElement("div",null,d.default.createElement("h5",null,"Request duration"),d.default.createElement("pre",{className:"microlight"},e," ms"));class PEe extends d.default.Component{shouldComponentUpdate(t){return this.props.response!==t.response||this.props.path!==t.path||this.props.method!==t.method||this.props.displayRequestDuration!==t.displayRequestDuration}render(){const{response:t,getComponent:r,getConfigs:n,displayRequestDuration:i,specSelectors:s,path:a,method:o}=this.props,{showMutatedRequest:u,requestSnippetsEnabled:c}=n(),l=u?s.mutatedRequestFor(a,o):s.requestFor(a,o),f=t.get("status"),h=l.get("url"),p=t.get("headers").toJS(),g=t.get("notDocumented"),y=t.get("error"),v=t.get("text"),E=t.get("duration"),b=Object.keys(p),S=p["content-type"]||p["Content-Type"],x=r("responseBody"),_=b.map(M=>{var k=Array.isArray(p[M])?p[M].join():p[M];return d.default.createElement("span",{className:"headerline",key:M}," ",M,": ",k," ")}),A=_.length!==0,C=r("Markdown",!0),T=r("RequestSnippets",!0),O=r("curl",!0);return d.default.createElement("div",null,l&&c?d.default.createElement(T,{request:l}):d.default.createElement(O,{request:l}),h&&d.default.createElement("div",null,d.default.createElement("div",{className:"request-url"},d.default.createElement("h4",null,"Request URL"),d.default.createElement("pre",{className:"microlight"},h))),d.default.createElement("h4",null,"Server response"),d.default.createElement("table",{className:"responses-table live-responses-table"},d.default.createElement("thead",null,d.default.createElement("tr",{className:"responses-header"},d.default.createElement("td",{className:"col_header response-col_status"},"Code"),d.default.createElement("td",{className:"col_header response-col_description"},"Details"))),d.default.createElement("tbody",null,d.default.createElement("tr",{className:"response"},d.default.createElement("td",{className:"response-col_status"},f,g?d.default.createElement("div",{className:"response-undocumented"},d.default.createElement("i",null," Undocumented ")):null),d.default.createElement("td",{className:"response-col_description"},y?d.default.createElement(C,{source:`${t.get("name")!==""?`${t.get("name")}: `:""}${t.get("message")}`}):null,v?d.default.createElement(x,{content:v,contentType:S,url:h,headers:p,getConfigs:n,getComponent:r}):null,A?d.default.createElement(jEe,{headers:_}):null,i&&E?d.default.createElement(kEe,{duration:E}):null)))))}}class k7 extends d.default.Component{constructor(r,n){super(r,n);z(this,"getDefinitionUrl",()=>{let{specSelectors:r}=this.props;return new Uc.default(r.url(),Xt.location).toString()});let{getConfigs:i}=r,{validatorUrl:s}=i();this.state={url:this.getDefinitionUrl(),validatorUrl:s===void 0?"https://validator.swagger.io/validator":s}}UNSAFE_componentWillReceiveProps(r){let{getConfigs:n}=r,{validatorUrl:i}=n();this.setState({url:this.getDefinitionUrl(),validatorUrl:i===void 0?"https://validator.swagger.io/validator":i})}render(){let{getConfigs:r}=this.props,{spec:n}=r(),i=vr(this.state.validatorUrl);return typeof n=="object"&&Object.keys(n).length?null:this.state.url&&O3(this.state.validatorUrl)&&O3(this.state.url)?d.default.createElement("span",{className:"float-right"},d.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${i}/debug?url=${encodeURIComponent(this.state.url)}`},d.default.createElement(NEe,{src:`${i}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class NEe extends d.default.Component{constructor(t){super(t),this.state={loaded:!1,error:!1}}componentDidMount(){const t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=this.props.src}UNSAFE_componentWillReceiveProps(t){if(t.src!==this.props.src){const r=new Image;r.onload=()=>{this.setState({loaded:!0})},r.onerror=()=>{this.setState({error:!0})},r.src=t.src}}render(){return this.state.error?d.default.createElement("img",{alt:"Error"}):this.state.loaded?d.default.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class MEe extends d.default.Component{constructor(){super(...arguments);z(this,"renderOperationTag",(r,n)=>{const{specSelectors:i,getComponent:s,oas3Selectors:a,layoutSelectors:o,layoutActions:u,getConfigs:c}=this.props,l=i.validOperationMethods(),f=s("OperationContainer",!0),h=s("OperationTag"),p=r.get("operations");return d.default.createElement(h,{key:"operation-"+n,tagObj:r,tag:n,oas3Selectors:a,layoutSelectors:o,layoutActions:u,getConfigs:c,getComponent:s,specUrl:i.url()},d.default.createElement("div",{className:"operation-tag-content"},p.map(g=>{const y=g.get("path"),v=g.get("method"),E=K.default.List(["paths",y,v]);return l.indexOf(v)===-1?null:d.default.createElement(f,{key:`${y}-${v}`,specPath:E,op:g,path:y,method:v,tag:n})}).toArray()))})}render(){let{specSelectors:r}=this.props;const n=r.taggedOperations();return n.size===0?d.default.createElement("h3",null," No operations defined in spec!"):d.default.createElement("div",null,n.map(this.renderOperationTag).toArray(),n.size<1?d.default.createElement("h3",null," No operations defined in spec! "):null)}}class P7 extends d.default.Component{render(){const{tagObj:t,tag:r,children:n,oas3Selectors:i,layoutSelectors:s,layoutActions:a,getConfigs:o,getComponent:u,specUrl:c}=this.props;let{docExpansion:l,deepLinking:f}=o();const h=u("Collapse"),p=u("Markdown",!0),g=u("DeepLink"),y=u("Link"),v=u("ArrowUpIcon"),E=u("ArrowDownIcon");let b,S=t.getIn(["tagDetails","description"],null),x=t.getIn(["tagDetails","externalDocs","description"]),_=t.getIn(["tagDetails","externalDocs","url"]);b=js(i)&&js(i.selectedServer)?Mi(_,c,{selectedServer:i.selectedServer()}):_;let A=["operations-tag",r],C=s.isShown(A,l==="full"||l==="list");return d.default.createElement("div",{className:C?"opblock-tag-section is-open":"opblock-tag-section"},d.default.createElement("h3",{onClick:()=>a.show(A,!C),className:S?"opblock-tag":"opblock-tag no-desc",id:A.map(T=>cU(T)).join("-"),"data-tag":r,"data-is-open":C},d.default.createElement(g,{enabled:f,isShown:C,path:Bc(r),text:r}),S?d.default.createElement("small",null,d.default.createElement(p,{source:S})):d.default.createElement("small",null),b?d.default.createElement("div",{className:"info__externaldocs"},d.default.createElement("small",null,d.default.createElement(y,{href:vr(b),onClick:T=>T.stopPropagation(),target:"_blank"},x||b))):null,d.default.createElement("button",{"aria-expanded":C,className:"expand-operation",title:C?"Collapse operation":"Expand operation",onClick:()=>a.show(A,!C)},C?d.default.createElement(v,{className:"arrow"}):d.default.createElement(E,{className:"arrow"}))),d.default.createElement(h,{isOpened:C},n))}}z(P7,"defaultProps",{tagObj:K.default.fromJS({}),tag:""});class N7 extends d.PureComponent{render(){let{specPath:t,response:r,request:n,toggleShown:i,onTryoutClick:s,onResetClick:a,onCancelClick:o,onExecute:u,fn:c,getComponent:l,getConfigs:f,specActions:h,specSelectors:p,authActions:g,authSelectors:y,oas3Actions:v,oas3Selectors:E}=this.props,b=this.props.operation,{deprecated:S,isShown:x,path:_,method:A,op:C,tag:T,operationId:O,allowTryItOut:M,displayRequestDuration:k,tryItOutEnabled:D,executeInProgress:P}=b.toJS(),{description:H,externalDocs:X,schemes:V}=C;const G=X?Mi(X.url,p.url(),{selectedServer:E.selectedServer()}):"";let Q=b.getIn(["op"]),Z=Q.get("responses"),B=function(R,j){if(!K.default.Iterable.isIterable(R))return K.default.List();let U=R.getIn(Array.isArray(j)?j:[j]);return K.default.List.isList(U)?U:K.default.List()}(Q,["parameters"]),J=p.operationScheme(_,A),ee=["operations",T,O],ne=Oa(Q);const ae=l("responses"),Y=l("parameters"),F=l("execute"),L=l("clear"),ue=l("Collapse"),de=l("Markdown",!0),Ae=l("schemes"),Ne=l("OperationServers"),ce=l("OperationExt"),Re=l("OperationSummary"),ze=l("Link"),{showExtensions:he}=f();if(Z&&r&&r.size>0){let $=!Z.get(String(r.get("status")))&&!Z.get("default");r=r.set("notDocumented",$)}let _e=[_,A];const Se=p.validationErrors([_,A]);return d.default.createElement("div",{className:S?"opblock opblock-deprecated":x?`opblock opblock-${A} is-open`:`opblock opblock-${A}`,id:cU(ee.join("-"))},d.default.createElement(Re,{operationProps:b,isShown:x,toggleShown:i,getComponent:l,authActions:g,authSelectors:y,specPath:t}),d.default.createElement(ue,{isOpened:x},d.default.createElement("div",{className:"opblock-body"},Q&&Q.size||Q===null?null:d.default.createElement(TU,{height:"32px",width:"32px",className:"opblock-loading-animation"}),S&&d.default.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),H&&d.default.createElement("div",{className:"opblock-description-wrapper"},d.default.createElement("div",{className:"opblock-description"},d.default.createElement(de,{source:H}))),G?d.default.createElement("div",{className:"opblock-external-docs-wrapper"},d.default.createElement("h4",{className:"opblock-title_normal"},"Find more details"),d.default.createElement("div",{className:"opblock-external-docs"},X.description&&d.default.createElement("span",{className:"opblock-external-docs__description"},d.default.createElement(de,{source:X.description})),d.default.createElement(ze,{target:"_blank",className:"opblock-external-docs__link",href:vr(G)},G))):null,Q&&Q.size?d.default.createElement(Y,{parameters:B,specPath:t.push("parameters"),operation:Q,onChangeKey:_e,onTryoutClick:s,onResetClick:a,onCancelClick:o,tryItOutEnabled:D,allowTryItOut:M,fn:c,getComponent:l,specActions:h,specSelectors:p,pathMethod:[_,A],getConfigs:f,oas3Actions:v,oas3Selectors:E}):null,D?d.default.createElement(Ne,{getComponent:l,path:_,method:A,operationServers:Q.get("servers"),pathServers:p.paths().getIn([_,"servers"]),getSelectedServer:E.selectedServer,setSelectedServer:v.setSelectedServer,setServerVariableValue:v.setServerVariableValue,getServerVariable:E.serverVariableValue,getEffectiveServerValue:E.serverEffectiveValue}):null,D&&M&&V&&V.size?d.default.createElement("div",{className:"opblock-schemes"},d.default.createElement(Ae,{schemes:V,path:_,method:A,specActions:h,currentScheme:J})):null,!D||!M||Se.length<=0?null:d.default.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",d.default.createElement("ul",null,Se.map(($,R)=>d.default.createElement("li",{key:R}," ",$," ")))),d.default.createElement("div",{className:D&&r&&M?"btn-group":"execute-wrapper"},D&&M?d.default.createElement(F,{operation:Q,specActions:h,specSelectors:p,oas3Selectors:E,oas3Actions:v,path:_,method:A,onExecute:u,disabled:P}):null,D&&r&&M?d.default.createElement(L,{specActions:h,path:_,method:A}):null),P?d.default.createElement("div",{className:"loading-container"},d.default.createElement("div",{className:"loading"})):null,Z?d.default.createElement(ae,{responses:Z,request:n,tryItOutResponse:r,getComponent:l,getConfigs:f,specSelectors:p,oas3Actions:v,oas3Selectors:E,specActions:h,produces:p.producesOptionsFor([_,A]),producesValue:p.currentProducesFor([_,A]),specPath:t.push("responses"),path:_,method:A,displayRequestDuration:k,fn:c}):null,he&&ne.size?d.default.createElement(ce,{extensions:ne,getComponent:l}):null)))}}z(N7,"defaultProps",{operation:null,response:null,request:null,specPath:(0,K.List)(),summary:""});class M7 extends d.PureComponent{constructor(r,n){super(r,n);z(this,"toggleShown",()=>{let{layoutActions:r,tag:n,operationId:i,isShown:s}=this.props;const a=this.getResolvedSubtree();s||a!==void 0||this.requestResolvedSubtree(),r.show(["operations",n,i],!s)});z(this,"onCancelClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});z(this,"onTryoutClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});z(this,"onResetClick",r=>{const n=this.props.oas3Selectors.selectDefaultRequestBodyValue(...r);this.props.oas3Actions.setRequestBodyValue({value:n,pathMethod:r})});z(this,"onExecute",()=>{this.setState({executeInProgress:!0})});z(this,"getResolvedSubtree",()=>{const{specSelectors:r,path:n,method:i,specPath:s}=this.props;return s?r.specResolvedSubtree(s.toJS()):r.specResolvedSubtree(["paths",n,i])});z(this,"requestResolvedSubtree",()=>{const{specActions:r,path:n,method:i,specPath:s}=this.props;return s?r.requestResolvedSubtree(s.toJS()):r.requestResolvedSubtree(["paths",n,i])});const{tryItOutEnabled:i}=r.getConfigs();this.state={tryItOutEnabled:i,executeInProgress:!1}}mapStateToProps(r,n){const{op:i,layoutSelectors:s,getConfigs:a}=n,{docExpansion:o,deepLinking:u,displayOperationId:c,displayRequestDuration:l,supportedSubmitMethods:f}=a(),h=s.showSummary(),p=i.getIn(["operation","__originalOperationId"])||i.getIn(["operation","operationId"])||(0,h7.opId)(i.get("operation"),n.path,n.method)||i.get("id"),g=["operations",n.tag,p],y=f.indexOf(n.method)>=0&&(n.allowTryItOut===void 0?n.specSelectors.allowTryItOutFor(n.path,n.method):n.allowTryItOut),v=i.getIn(["operation","security"])||n.specSelectors.security();return{operationId:p,isDeepLinkingEnabled:u,showSummary:h,displayOperationId:c,displayRequestDuration:l,allowTryItOut:y,security:v,isAuthorized:n.authSelectors.isAuthorized(v),isShown:s.isShown(g,o==="full"),jumpToKey:`paths.${n.path}.${n.method}`,response:n.specSelectors.responseFor(n.path,n.method),request:n.specSelectors.requestFor(n.path,n.method)}}componentDidMount(){const{isShown:r}=this.props,n=this.getResolvedSubtree();r&&n===void 0&&this.requestResolvedSubtree()}UNSAFE_componentWillReceiveProps(r){const{response:n,isShown:i}=r,s=this.getResolvedSubtree();n!==this.props.response&&this.setState({executeInProgress:!1}),i&&s===void 0&&this.requestResolvedSubtree()}render(){let{op:r,tag:n,path:i,method:s,security:a,isAuthorized:o,operationId:u,showSummary:c,isShown:l,jumpToKey:f,allowTryItOut:h,response:p,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:E,specPath:b,specSelectors:S,specActions:x,getComponent:_,getConfigs:A,layoutSelectors:C,layoutActions:T,authActions:O,authSelectors:M,oas3Actions:k,oas3Selectors:D,fn:P}=this.props;const H=_("operation"),X=this.getResolvedSubtree()||(0,K.Map)(),V=(0,K.fromJS)({op:X,tag:n,path:i,summary:r.getIn(["operation","summary"])||"",deprecated:X.get("deprecated")||r.getIn(["operation","deprecated"])||!1,method:s,security:a,isAuthorized:o,operationId:u,originalOperationId:X.getIn(["operation","__originalOperationId"]),showSummary:c,isShown:l,jumpToKey:f,allowTryItOut:h,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:E,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return d.default.createElement(H,{operation:V,response:p,request:g,isShown:l,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:b,specActions:x,specSelectors:S,oas3Actions:k,oas3Selectors:D,layoutActions:T,layoutSelectors:C,authActions:O,authSelectors:M,getComponent:_,getConfigs:A,fn:P})}}z(M7,"defaultProps",{showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1});var DEe=function(e){var t={};return me.d(t,e),t}({default:function(){return Zhe}});class D7 extends d.PureComponent{render(){let{isShown:t,toggleShown:r,getComponent:n,authActions:i,authSelectors:s,operationProps:a,specPath:o}=this.props,{summary:u,isAuthorized:c,method:l,op:f,showSummary:h,path:p,operationId:g,originalOperationId:y,displayOperationId:v}=a.toJS(),{summary:E}=f,b=a.get("security");const S=n("authorizeOperationBtn",!0),x=n("OperationSummaryMethod"),_=n("OperationSummaryPath"),A=n("JumpToPath",!0),C=n("CopyToClipboardBtn",!0),T=n("ArrowUpIcon"),O=n("ArrowDownIcon"),M=b&&!!b.count(),k=M&&b.size===1&&b.first().isEmpty(),D=!M||k;return d.default.createElement("div",{className:`opblock-summary opblock-summary-${l}`},d.default.createElement("button",{"aria-expanded":t,className:"opblock-summary-control",onClick:r},d.default.createElement(x,{method:l}),d.default.createElement("div",{className:"opblock-summary-path-description-wrapper"},d.default.createElement(_,{getComponent:n,operationProps:a,specPath:o}),h?d.default.createElement("div",{className:"opblock-summary-description"},(0,DEe.default)(E||u)):null),v&&(y||g)?d.default.createElement("span",{className:"opblock-summary-operation-id"},y||g):null),d.default.createElement(C,{textToCopy:`${o.get(1)}`}),D?null:d.default.createElement(S,{isAuthorized:c,onClick:()=>{const P=s.definitionsForRequirements(b);i.showDefinitions(P)}}),d.default.createElement(A,{path:o}),d.default.createElement("button",{"aria-label":`${l} ${p.replace(/\//g,"​/")}`,className:"opblock-control-arrow","aria-expanded":t,tabIndex:"-1",onClick:r},t?d.default.createElement(T,{className:"arrow"}):d.default.createElement(O,{className:"arrow"})))}}z(D7,"defaultProps",{operationProps:null,specPath:(0,K.List)(),summary:""});class q7 extends d.PureComponent{render(){let{method:t}=this.props;return d.default.createElement("span",{className:"opblock-summary-method"},t.toUpperCase())}}z(q7,"defaultProps",{operationProps:null});class qEe extends d.PureComponent{render(){let{getComponent:t,operationProps:r}=this.props,{deprecated:n,isShown:i,path:s,tag:a,operationId:o,isDeepLinkingEnabled:u}=r.toJS();const c=s.split(/(?=\/)/g);for(let f=1;f<c.length;f+=2)c.splice(f,0,d.default.createElement("wbr",{key:f}));const l=t("DeepLink");return d.default.createElement("span",{className:n?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":s},d.default.createElement(l,{enabled:u,isShown:i,path:Bc(`${a}/${o}`),text:c}))}}var $Ee=({extensions:e,getComponent:t})=>{let r=t("OperationExtRow");return d.default.createElement("div",{className:"opblock-section"},d.default.createElement("div",{className:"opblock-section-header"},d.default.createElement("h4",null,"Extensions")),d.default.createElement("div",{className:"table-container"},d.default.createElement("table",null,d.default.createElement("thead",null,d.default.createElement("tr",null,d.default.createElement("td",{className:"col_header"},"Field"),d.default.createElement("td",{className:"col_header"},"Value"))),d.default.createElement("tbody",null,e.entrySeq().map(([n,i])=>d.default.createElement(r,{key:`${n}-${i}`,xKey:n,xVal:i}))))))},FEe=({xKey:e,xVal:t})=>{const r=t?t.toJS?t.toJS():t:null;return d.default.createElement("tr",null,d.default.createElement("td",null,e),d.default.createElement("td",null,JSON.stringify(r)))};function sR(e,t="_"){return e.replace(/[^\w-]/g,t)}const zp=class zp extends d.default.Component{constructor(){super(...arguments);z(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r));z(this,"onResponseContentTypeChange",({controlsAcceptHeader:r,value:n})=>{const{oas3Actions:i,path:s,method:a}=this.props;r&&i.setResponseContentType({value:n,path:s,method:a})})}render(){let{responses:r,tryItOutResponse:n,getComponent:i,getConfigs:s,specSelectors:a,fn:o,producesValue:u,displayRequestDuration:c,specPath:l,path:f,method:h,oas3Selectors:p,oas3Actions:g}=this.props,y=function(T){let O=T.keySeq();return O.contains(w3)?w3:O.filter(M=>(M+"")[0]==="2").sort().first()}(r);const v=i("contentType"),E=i("liveResponse"),b=i("response");let S=this.props.produces&&this.props.produces.size?this.props.produces:zp.defaultProps.produces;const x=a.isOAS3()?function(T){if(!K.default.OrderedMap.isOrderedMap(T)||!T.size)return null;const O=T.find((D,P)=>P.startsWith("2")&&Object.keys(D.get("content")||{}).length>0),M=T.get("default")||K.default.OrderedMap(),k=(M.get("content")||K.default.OrderedMap()).keySeq().toJS().length?M:null;return O||k}(r):null,_=sR(`${h}${f}_responses`),A=`${_}_select`;return d.default.createElement("div",{className:"responses-wrapper"},d.default.createElement("div",{className:"opblock-section-header"},d.default.createElement("h4",null,"Responses"),a.isOAS3()?null:d.default.createElement("label",{htmlFor:A},d.default.createElement("span",null,"Response content type"),d.default.createElement(v,{value:u,ariaControls:_,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:S,controlId:A,onChange:this.onChangeProducesWrapper}))),d.default.createElement("div",{className:"responses-inner"},n?d.default.createElement("div",null,d.default.createElement(E,{response:n,getComponent:i,getConfigs:s,specSelectors:a,path:this.props.path,method:this.props.method,displayRequestDuration:c}),d.default.createElement("h4",null,"Responses")):null,d.default.createElement("table",{"aria-live":"polite",className:"responses-table",id:_,role:"region"},d.default.createElement("thead",null,d.default.createElement("tr",{className:"responses-header"},d.default.createElement("td",{className:"col_header response-col_status"},"Code"),d.default.createElement("td",{className:"col_header response-col_description"},"Description"),a.isOAS3()?d.default.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),d.default.createElement("tbody",null,r.entrySeq().map(([C,T])=>{let O=n&&n.get("status")==C?"response_current":"";return d.default.createElement(b,{key:C,path:f,method:h,specPath:l.push(C),isDefault:y===C,fn:o,className:O,code:C,response:T,specSelectors:a,controlsAcceptHeader:T===x,onContentTypeChange:this.onResponseContentTypeChange,contentType:u,getConfigs:s,activeExamplesKey:p.activeExamplesMember(f,h,"responses",C),oas3Actions:g,getComponent:i})}).toArray()))))}};z(zp,"defaultProps",{tryItOutResponse:null,produces:(0,K.fromJS)(["application/json"]),displayRequestDuration:!1});let SA=zp;function Tm(e){return function(r){try{return!!JSON.parse(r)}catch{return null}}(e)?"json":null}var hw;let LEe=(hw=class extends d.default.Component{constructor(r,n){super(r,n);z(this,"_onContentTypeChange",r=>{const{onContentTypeChange:n,controlsAcceptHeader:i}=this.props;this.setState({responseContentType:r}),n({value:r,controlsAcceptHeader:i})});z(this,"getTargetExamplesKey",()=>{const{response:r,contentType:n,activeExamplesKey:i}=this.props,s=this.state.responseContentType||n,a=r.getIn(["content",s],(0,K.Map)({})).get("examples",null).keySeq().first();return i||a});this.state={responseContentType:""}}render(){var Y;let{path:r,method:n,code:i,response:s,className:a,specPath:o,fn:u,getComponent:c,getConfigs:l,specSelectors:f,contentType:h,controlsAcceptHeader:p,oas3Actions:g}=this.props,{inferSchema:y,getSampleSchema:v}=u,E=f.isOAS3();const{showExtensions:b}=l();let S=b?Oa(s):null,x=s.get("headers"),_=s.get("links");const A=c("ResponseExtension"),C=c("headers"),T=c("HighlightCode",!0),O=c("modelExample"),M=c("Markdown",!0),k=c("operationLink"),D=c("contentType"),P=c("ExamplesSelect"),H=c("Example");var X,V;const G=this.state.responseContentType||h,Q=s.getIn(["content",G],(0,K.Map)({})),Z=Q.get("examples",null);if(E){const F=Q.get("schema");X=F?y(F.toJS()):null,V=F?(0,K.List)(["content",this.state.responseContentType,"schema"]):o}else X=s.get("schema"),V=s.has("schema")?o.push("schema"):o;let B,J,ee=!1,ne={includeReadOnly:!0};if(E)if(J=(Y=Q.get("schema"))==null?void 0:Y.toJS(),K.Map.isMap(Z)&&!Z.isEmpty()){const F=this.getTargetExamplesKey(),L=ue=>K.Map.isMap(ue)?ue.get("value"):void 0;B=L(Z.get(F,(0,K.Map)({}))),B===void 0&&(B=L(Z.values().next().value)),ee=!0}else Q.get("example")!==void 0&&(B=Q.get("example"),ee=!0);else{J=X,ne={...ne,includeWriteOnly:!0};const F=s.getIn(["examples",G]);F&&(B=F,ee=!0)}const ae=((F,L)=>{if(F==null)return null;const ue=Tm(F)?"json":null;return d.default.createElement("div",null,d.default.createElement(L,{className:"example",language:ue},Xr(F)))})(v(J,G,ne,ee?B:void 0),T);return d.default.createElement("tr",{className:"response "+(a||""),"data-code":i},d.default.createElement("td",{className:"response-col_status"},i),d.default.createElement("td",{className:"response-col_description"},d.default.createElement("div",{className:"response-col_description__inner"},d.default.createElement(M,{source:s.get("description")})),b&&S.size?S.entrySeq().map(([F,L])=>d.default.createElement(A,{key:`${F}-${L}`,xKey:F,xVal:L})):null,E&&s.get("content")?d.default.createElement("section",{className:"response-controls"},d.default.createElement("div",{className:(0,Ot.default)("response-control-media-type",{"response-control-media-type--accept-controller":p})},d.default.createElement("small",{className:"response-control-media-type__title"},"Media type"),d.default.createElement(D,{value:this.state.responseContentType,contentTypes:s.get("content")?s.get("content").keySeq():(0,K.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),p?d.default.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",d.default.createElement("code",null,"Accept")," header."):null),K.Map.isMap(Z)&&!Z.isEmpty()?d.default.createElement("div",{className:"response-control-examples"},d.default.createElement("small",{className:"response-control-examples__title"},"Examples"),d.default.createElement(P,{examples:Z,currentExampleKey:this.getTargetExamplesKey(),onSelect:F=>g.setActiveExamplesMember({name:F,pathMethod:[r,n],contextType:"responses",contextName:i}),showLabels:!1})):null):null,ae||X?d.default.createElement(O,{specPath:V,getComponent:c,getConfigs:l,specSelectors:f,schema:Xi(X),example:ae,includeReadOnly:!0}):null,E&&Z?d.default.createElement(H,{example:Z.get(this.getTargetExamplesKey(),(0,K.Map)({})),getComponent:c,getConfigs:l,omitValue:!0}):null,x?d.default.createElement(C,{headers:x,getComponent:c}):null),E?d.default.createElement("td",{className:"response-col_links"},_?_.toSeq().entrySeq().map(([F,L])=>d.default.createElement(k,{key:F,name:F,link:L,getComponent:c})):d.default.createElement("i",null,"No links")):null)}},z(hw,"defaultProps",{response:(0,K.fromJS)({}),onContentTypeChange:()=>{}}),hw);var BEe=({xKey:e,xVal:t})=>d.default.createElement("div",{className:"response__extension"},e,": ",String(t)),UEe=function(e){var t={};return me.d(t,e),t}({default:function(){return rme}}),X3=function(e){var t={};return me.d(t,e),t}({default:function(){return sme}});class VEe extends d.default.PureComponent{constructor(){super(...arguments);z(this,"state",{parsedContent:null});z(this,"updateParsedContent",r=>{const{content:n}=this.props;if(r!==n)if(n&&n instanceof Blob){var i=new FileReader;i.onload=()=>{this.setState({parsedContent:i.result})},i.readAsText(n)}else this.setState({parsedContent:n.toString()})})}componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(r){this.updateParsedContent(r.content)}render(){let{content:r,contentType:n,url:i,headers:s={},getComponent:a}=this.props;const{parsedContent:o}=this.state,u=a("HighlightCode",!0),c="response_"+new Date().getTime();let l,f;if(i=i||"",(/^application\/octet-stream/i.test(n)||s["Content-Disposition"]&&/attachment/i.test(s["Content-Disposition"])||s["content-disposition"]&&/attachment/i.test(s["content-disposition"])||s["Content-Description"]&&/File Transfer/i.test(s["Content-Description"])||s["content-description"]&&/File Transfer/i.test(s["content-description"]))&&(r.size>0||r.length>0))if("Blob"in window){let h=n||"text/html",p=r instanceof Blob?r:new Blob([r],{type:h}),g=window.URL.createObjectURL(p),y=[h,i.substr(i.lastIndexOf("/")+1),g].join(":"),v=s["content-disposition"]||s["Content-Disposition"];if(v!==void 0){let E=function(S){let x;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some(_=>(x=_.exec(S),x!==null)),x!==null&&x.length>1)try{return decodeURIComponent(x[1])}catch(_){console.error(_)}return null}(v);E!==null&&(y=E)}f=Xt.navigator&&Xt.navigator.msSaveOrOpenBlob?d.default.createElement("div",null,d.default.createElement("a",{href:g,onClick:()=>Xt.navigator.msSaveOrOpenBlob(p,y)},"Download file")):d.default.createElement("div",null,d.default.createElement("a",{href:g,download:y},"Download file"))}else f=d.default.createElement("pre",{className:"microlight"},"Download headers detected but your browser does not support downloading binary via XHR (Blob).");else if(/json/i.test(n)){let h=null;Tm(r)&&(h="json");try{l=JSON.stringify(JSON.parse(r),null," ")}catch{l=`can't parse JSON. Raw result:
304
+
305
+ `+r}f=d.default.createElement(u,{language:h,downloadable:!0,fileName:`${c}.json`,canCopy:!0},l)}else/xml/i.test(n)?(l=(0,UEe.default)(r,{textNodesOnSameLine:!0,indentor:" "}),f=d.default.createElement(u,{downloadable:!0,fileName:`${c}.xml`,canCopy:!0},l)):f=(0,X3.default)(n)==="text/html"||/text\/plain/.test(n)?d.default.createElement(u,{downloadable:!0,fileName:`${c}.html`,canCopy:!0},r):(0,X3.default)(n)==="text/csv"||/text\/csv/.test(n)?d.default.createElement(u,{downloadable:!0,fileName:`${c}.csv`,canCopy:!0},r):/^image\//i.test(n)?n.includes("svg")?d.default.createElement("div",null," ",r," "):d.default.createElement("img",{src:window.URL.createObjectURL(r)}):/^audio\//i.test(n)?d.default.createElement("pre",{className:"microlight"},d.default.createElement("audio",{controls:!0,key:i},d.default.createElement("source",{src:i,type:n}))):typeof r=="string"?d.default.createElement(u,{downloadable:!0,fileName:`${c}.txt`,canCopy:!0},r):r.size>0?o?d.default.createElement("div",null,d.default.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),d.default.createElement(u,{downloadable:!0,fileName:`${c}.txt`,canCopy:!0},o)):d.default.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return f?d.default.createElement("div",null,d.default.createElement("h5",null,"Response body"),f):null}}class $7 extends d.Component{constructor(r){super(r);z(this,"onChange",(r,n,i)=>{let{specActions:{changeParamByIdentity:s},onChangeKey:a}=this.props;s(a,r,n,i)});z(this,"onChangeConsumesWrapper",r=>{let{specActions:{changeConsumesValue:n},onChangeKey:i}=this.props;n(i,r)});z(this,"toggleTab",r=>r==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):r==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0);z(this,"onChangeMediaType",({value:r,pathMethod:n})=>{let{specActions:i,oas3Selectors:s,oas3Actions:a}=this.props;const o=s.hasUserEditedBody(...n),u=s.shouldRetainRequestBodyValue(...n);a.setRequestContentType({value:r,pathMethod:n}),a.initRequestBodyValidateError({pathMethod:n}),o||(u||a.setRequestBodyValue({value:void 0,pathMethod:n}),i.clearResponse(...n),i.clearRequest(...n),i.clearValidateParams(n))});this.state={callbackVisible:!1,parametersVisible:!0}}render(){let{onTryoutClick:r,onResetClick:n,parameters:i,allowTryItOut:s,tryItOutEnabled:a,specPath:o,fn:u,getComponent:c,getConfigs:l,specSelectors:f,specActions:h,pathMethod:p,oas3Actions:g,oas3Selectors:y,operation:v}=this.props;const E=c("parameterRow"),b=c("TryItOutButton"),S=c("contentType"),x=c("Callbacks",!0),_=c("RequestBody",!0),A=a&&s,C=f.isOAS3(),T=`${sR(`${p[1]}${p[0]}_requests`)}_select`,O=v.get("requestBody"),M=Object.values(i.reduce((k,D)=>{const P=D.get("in");return k[P]??(k[P]=[]),k[P].push(D),k},{})).reduce((k,D)=>k.concat(D),[]);return d.default.createElement("div",{className:"opblock-section"},d.default.createElement("div",{className:"opblock-section-header"},C?d.default.createElement("div",{className:"tab-header"},d.default.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},d.default.createElement("h4",{className:"opblock-title"},d.default.createElement("span",null,"Parameters"))),v.get("callbacks")?d.default.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},d.default.createElement("h4",{className:"opblock-title"},d.default.createElement("span",null,"Callbacks"))):null):d.default.createElement("div",{className:"tab-header"},d.default.createElement("h4",{className:"opblock-title"},"Parameters")),s?d.default.createElement(b,{isOAS3:f.isOAS3(),hasUserEditedBody:y.hasUserEditedBody(...p),enabled:a,onCancelClick:this.props.onCancelClick,onTryoutClick:r,onResetClick:()=>n(p)}):null),this.state.parametersVisible?d.default.createElement("div",{className:"parameters-container"},M.length?d.default.createElement("div",{className:"table-container"},d.default.createElement("table",{className:"parameters"},d.default.createElement("thead",null,d.default.createElement("tr",null,d.default.createElement("th",{className:"col_header parameters-col_name"},"Name"),d.default.createElement("th",{className:"col_header parameters-col_description"},"Description"))),d.default.createElement("tbody",null,M.map((k,D)=>d.default.createElement(E,{fn:u,specPath:o.push(D.toString()),getComponent:c,getConfigs:l,rawParam:k,param:f.parameterWithMetaByIdentity(p,k),key:`${k.get("in")}.${k.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:f,specActions:h,oas3Actions:g,oas3Selectors:y,pathMethod:p,isExecute:A}))))):d.default.createElement("div",{className:"opblock-description-wrapper"},d.default.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?d.default.createElement("div",{className:"callbacks-container opblock-description-wrapper"},d.default.createElement(x,{callbacks:(0,K.Map)(v.get("callbacks")),specPath:o.slice(0,-1).push("callbacks")})):null,C&&O&&this.state.parametersVisible&&d.default.createElement("div",{className:"opblock-section opblock-section-request-body"},d.default.createElement("div",{className:"opblock-section-header"},d.default.createElement("h4",{className:`opblock-title parameter__name ${O.get("required")&&"required"}`},"Request body"),d.default.createElement("label",{id:T},d.default.createElement(S,{value:y.requestContentType(...p),contentTypes:O.get("content",(0,K.List)()).keySeq(),onChange:k=>{this.onChangeMediaType({value:k,pathMethod:p})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:T}))),d.default.createElement("div",{className:"opblock-description-wrapper"},d.default.createElement(_,{setRetainRequestBodyValueFlag:k=>g.setRetainRequestBodyValueFlag({value:k,pathMethod:p}),userHasEditedBody:y.hasUserEditedBody(...p),specPath:o.slice(0,-1).push("requestBody"),requestBody:O,requestBodyValue:y.requestBodyValue(...p),requestBodyInclusionSetting:y.requestBodyInclusionSetting(...p),requestBodyErrors:y.requestBodyErrors(...p),isExecute:A,getConfigs:l,activeExamplesKey:y.activeExamplesMember(...p,"requestBody","requestBody"),updateActiveExamplesKey:k=>{this.props.oas3Actions.setActiveExamplesMember({name:k,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(k,D)=>{if(D){const P=y.requestBodyValue(...p),H=K.Map.isMap(P)?P:(0,K.Map)();return g.setRequestBodyValue({pathMethod:p,value:H.setIn(D,k)})}g.setRequestBodyValue({value:k,pathMethod:p})},onChangeIncludeEmpty:(k,D)=>{g.setRequestBodyInclusion({pathMethod:p,value:D,name:k})},contentType:y.requestContentType(...p)}))))}}z($7,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});var zEe=({xKey:e,xVal:t})=>d.default.createElement("div",{className:"parameter__extension"},e,": ",String(t));const WEe={onChange:()=>{},isIncludedOptions:{}};class F7 extends d.Component{constructor(){super(...arguments);z(this,"onCheckboxChange",r=>{const{onChange:n}=this.props;n(r.target.checked)})}componentDidMount(){const{isIncludedOptions:r,onChange:n}=this.props,{shouldDispatchInit:i,defaultValue:s}=r;i&&n(s)}render(){let{isIncluded:r,isDisabled:n}=this.props;return d.default.createElement("div",null,d.default.createElement("label",{htmlFor:"include_empty_value",className:(0,Ot.default)("parameter__empty_value_toggle",{disabled:n})},d.default.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:n,checked:!n&&r,onChange:this.onCheckboxChange}),"Send empty value"))}}z(F7,"defaultProps",WEe);class JEe extends d.Component{constructor(r,n){super(r,n);z(this,"onChangeWrapper",(r,n=!1)=>{let i,{onChange:s,rawParam:a}=this.props;return i=r===""||r&&r.size===0?null:r,s(a,i,n)});z(this,"_onExampleSelect",r=>{this.props.oas3Actions.setActiveExamplesMember({name:r,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})});z(this,"onChangeIncludeEmpty",r=>{let{specActions:n,param:i,pathMethod:s}=this.props;const a=i.get("name"),o=i.get("in");return n.updateEmptyParamInclusion(s,a,o,r)});z(this,"setDefaultValue",()=>{let{specSelectors:r,pathMethod:n,rawParam:i,oas3Selectors:s,fn:a}=this.props;const o=r.parameterWithMetaByIdentity(n,i)||(0,K.Map)();let{schema:u}=Sd(o,{isOAS3:r.isOAS3()});const c=o.get("content",(0,K.Map)()).keySeq().first(),l=u?a.getSampleSchema(u.toJS(),c,{includeWriteOnly:!0}):null;if(o&&o.get("value")===void 0&&o.get("in")!=="body"){let f;if(r.isSwagger2())f=o.get("x-example")!==void 0?o.get("x-example"):o.getIn(["schema","example"])!==void 0?o.getIn(["schema","example"]):u&&u.getIn(["default"]);else if(r.isOAS3()){u=this.composeJsonSchema(u);const g=s.activeExamplesMember(...n,"parameters",this.getParamKey());f=o.getIn(["examples",g,"value"])!==void 0?o.getIn(["examples",g,"value"]):o.getIn(["content",c,"example"])!==void 0?o.getIn(["content",c,"example"]):o.get("example")!==void 0?o.get("example"):(u&&u.get("example"))!==void 0?u&&u.get("example"):(u&&u.get("default"))!==void 0?u&&u.get("default"):o.get("default")}f===void 0||K.List.isList(f)||(f=Xr(f));const h=a.jsonSchema202012.foldType(Wn(u==null?void 0:u.get("type"))),p=a.jsonSchema202012.foldType(Wn(u==null?void 0:u.getIn(["items","type"])));f!==void 0?this.onChangeWrapper(f):h==="object"&&l&&!o.get("examples")?this.onChangeWrapper(K.List.isList(l)?l:Xr(l)):h==="array"&&p==="object"&&l&&!o.get("examples")&&this.onChangeWrapper(K.List.isList(l)?l:(0,K.List)(JSON.parse(l)))}});this.setDefaultValue()}UNSAFE_componentWillReceiveProps(r){let n,{specSelectors:i,pathMethod:s,rawParam:a}=r,o=i.isOAS3(),u=i.parameterWithMetaByIdentity(s,a)||new K.Map;if(u=u.isEmpty()?a:u,o){let{schema:f}=Sd(u,{isOAS3:o});n=f?f.get("enum"):void 0}else n=u?u.get("enum"):void 0;let c,l=u?u.get("value"):void 0;l!==void 0?c=l:a.get("required")&&n&&n.size&&(c=n.first()),c!==void 0&&c!==l&&this.onChangeWrapper(function(h){return typeof h=="number"?h.toString():h}(c)),this.setDefaultValue()}getParamKey(){const{param:r}=this.props;return r?`${r.get("name")}-${r.get("in")}`:null}composeJsonSchema(r){var a,o,u,c;const{fn:n}=this.props,i=(o=(a=r.get("oneOf"))==null?void 0:a.get(0))==null?void 0:o.toJS(),s=(c=(u=r.get("anyOf"))==null?void 0:u.get(0))==null?void 0:c.toJS();return(0,K.fromJS)(n.mergeJsonSchema(r.toJS(),i??s??{}))}render(){let{param:r,rawParam:n,getComponent:i,getConfigs:s,isExecute:a,fn:o,onChangeConsumes:u,specSelectors:c,pathMethod:l,specPath:f,oas3Selectors:h}=this.props,p=c.isOAS3();const{showExtensions:g,showCommonExtensions:y}=s();if(r||(r=n),!n)return null;const v=i("JsonSchemaForm"),E=i("ParamBody");let b=r.get("in"),S=b!=="body"?null:d.default.createElement(E,{getComponent:i,getConfigs:s,fn:o,param:r,consumes:c.consumesOptionsFor(l),consumesValue:c.contentTypeValues(l).get("requestContentType"),onChange:this.onChangeWrapper,onChangeConsumes:u,isExecute:a,specSelectors:c,pathMethod:l});const x=i("modelExample"),_=i("Markdown",!0),A=i("ParameterExt"),C=i("ParameterIncludeEmpty"),T=i("ExamplesSelectValueRetainer"),O=i("Example");let{schema:M}=Sd(r,{isOAS3:p}),k=c.parameterWithMetaByIdentity(l,n)||(0,K.Map)();p&&(M=this.composeJsonSchema(M));let D=M?M.get("format"):null,P=b==="formData",H="FormData"in Xt,X=r.get("required");const V=o.jsonSchema202012.getType(Wn(M)),G=o.jsonSchema202012.foldType(Wn(M==null?void 0:M.get("type"))),Q=o.jsonSchema202012.foldType(Wn(M==null?void 0:M.getIn(["items","type"]))),Z=!S&&G==="object",B=!S&&Q==="object";let J,ee,ne,ae,Y=k?k.get("value"):"",F=y?lU(M):null,L=g?Oa(r):null,ue=!1;r!==void 0&&M&&(J=M.get("items")),J!==void 0?(ee=J.get("enum"),ne=J.get("default")):M&&(ee=M.get("enum")),ee&&ee.size&&ee.size>0&&(ue=!0),r!==void 0&&(M&&(ne=M.get("default")),ne===void 0&&(ne=r.get("default")),ae=r.get("example"),ae===void 0&&(ae=r.get("x-example")));const de=S?null:d.default.createElement(v,{fn:o,getComponent:i,value:Y,required:X,disabled:!a,description:r.get("name"),onChange:this.onChangeWrapper,errors:k.get("errors"),schema:M});return d.default.createElement("tr",{"data-param-name":r.get("name"),"data-param-in":r.get("in")},d.default.createElement("td",{className:"parameters-col_name"},d.default.createElement("div",{className:X?"parameter__name required":"parameter__name"},r.get("name"),X?d.default.createElement("span",null," *"):null),d.default.createElement("div",{className:"parameter__type"},V,D&&d.default.createElement("span",{className:"prop-format"},"($",D,")")),d.default.createElement("div",{className:"parameter__deprecated"},p&&r.get("deprecated")?"deprecated":null),d.default.createElement("div",{className:"parameter__in"},"(",r.get("in"),")")),d.default.createElement("td",{className:"parameters-col_description"},r.get("description")?d.default.createElement(_,{source:r.get("description")}):null,!S&&a||!ue?null:d.default.createElement(_,{className:"parameter__enum",source:"<i>Available values</i> : "+ee.map(function(Ae){return Ae}).toArray().map(String).join(", ")}),!S&&a||ne===void 0?null:d.default.createElement(_,{className:"parameter__default",source:"<i>Default value</i> : "+ne}),!S&&a||ae===void 0?null:d.default.createElement(_,{source:"<i>Example</i> : "+ae}),P&&!H&&d.default.createElement("div",null,"Error: your browser does not support FormData"),p&&r.get("examples")?d.default.createElement("section",{className:"parameter-controls"},d.default.createElement(T,{examples:r.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:i,defaultToFirstExample:!0,currentKey:h.activeExamplesMember(...l,"parameters",this.getParamKey()),currentUserInputValue:Y})):null,Z||B?d.default.createElement(x,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:M,example:de}):de,S&&M?d.default.createElement(x,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:M,example:S,includeWriteOnly:!0}):null,!S&&a&&r.get("allowEmptyValue")?d.default.createElement(C,{onChange:this.onChangeIncludeEmpty,isIncluded:c.parameterInclusionSettingFor(l,r.get("name"),r.get("in")),isDisabled:!AC(Y)}):null,p&&r.get("examples")?d.default.createElement(O,{example:r.getIn(["examples",h.activeExamplesMember(...l,"parameters",this.getParamKey())]),getComponent:i,getConfigs:s}):null,y&&F.size?F.entrySeq().map(([Ae,Ne])=>d.default.createElement(A,{key:`${Ae}-${Ne}`,xKey:Ae,xVal:Ne})):null,g&&L.size?L.entrySeq().map(([Ae,Ne])=>d.default.createElement(A,{key:`${Ae}-${Ne}`,xKey:Ae,xVal:Ne})):null))}}class KEe extends d.Component{constructor(){super(...arguments);z(this,"handleValidateParameters",()=>{let{specSelectors:r,specActions:n,path:i,method:s}=this.props;return n.validateParams([i,s]),r.validateBeforeExecute([i,s])});z(this,"handleValidateRequestBody",()=>{let{path:r,method:n,specSelectors:i,oas3Selectors:s,oas3Actions:a}=this.props,o={missingBodyValue:!1,missingRequiredKeys:[]};a.clearRequestBodyValidateError({path:r,method:n});let u=i.getOAS3RequiredRequestBodyContentType([r,n]),c=s.requestBodyValue(r,n),l=s.validateBeforeExecute([r,n]),f=s.requestContentType(r,n);if(!l)return o.missingBodyValue=!0,a.setRequestBodyValidateError({path:r,method:n,validationErrors:o}),!1;if(!u)return!0;let h=s.validateShallowRequired({oas3RequiredRequestBodyContentType:u,oas3RequestContentType:f,oas3RequestBodyValue:c});return!h||h.length<1||(h.forEach(p=>{o.missingRequiredKeys.push(p)}),a.setRequestBodyValidateError({path:r,method:n,validationErrors:o}),!1)});z(this,"handleValidationResultPass",()=>{let{specActions:r,operation:n,path:i,method:s}=this.props;this.props.onExecute&&this.props.onExecute(),r.execute({operation:n,path:i,method:s})});z(this,"handleValidationResultFail",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearValidateParams([n,i]),setTimeout(()=>{r.validateParams([n,i])},40)});z(this,"handleValidationResult",r=>{r?this.handleValidationResultPass():this.handleValidationResultFail()});z(this,"onClick",()=>{let r=this.handleValidateParameters(),n=this.handleValidateRequestBody(),i=r&&n;this.handleValidationResult(i)});z(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r))}render(){const{disabled:r}=this.props;return d.default.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:r},"Execute")}}class HEe extends d.default.Component{render(){let{headers:t,getComponent:r}=this.props;const n=r("Property"),i=r("Markdown",!0);return t&&t.size?d.default.createElement("div",{className:"headers-wrapper"},d.default.createElement("h4",{className:"headers__title"},"Headers:"),d.default.createElement("table",{className:"headers"},d.default.createElement("thead",null,d.default.createElement("tr",{className:"header-row"},d.default.createElement("th",{className:"header-col"},"Name"),d.default.createElement("th",{className:"header-col"},"Description"),d.default.createElement("th",{className:"header-col"},"Type"))),d.default.createElement("tbody",null,t.entrySeq().map(([s,a])=>{if(!K.default.Map.isMap(a))return null;const o=a.get("description"),u=a.getIn(["schema"])?a.getIn(["schema","type"]):a.getIn(["type"]),c=a.getIn(["schema","example"]);return d.default.createElement("tr",{key:s},d.default.createElement("td",{className:"header-col"},s),d.default.createElement("td",{className:"header-col"},o?d.default.createElement(i,{source:o}):null),d.default.createElement("td",{className:"header-col"},u," ",c?d.default.createElement(n,{propKey:"Example",propVal:c,propClass:"header-example"}):null))}).toArray()))):null}}class GEe extends d.default.Component{render(){let{editorActions:t,errSelectors:r,layoutSelectors:n,layoutActions:i,getComponent:s}=this.props;const a=s("Collapse");if(t&&t.jumpToLine)var o=t.jumpToLine;let u=r.allErrors().filter(f=>f.get("type")==="thrown"||f.get("level")==="error");if(!u||u.count()<1)return null;let c=n.isShown(["errorPane"],!0),l=u.sortBy(f=>f.get("line"));return d.default.createElement("pre",{className:"errors-wrapper"},d.default.createElement("hgroup",{className:"error"},d.default.createElement("h4",{className:"errors__title"},"Errors"),d.default.createElement("button",{className:"btn errors__clear-btn",onClick:()=>i.show(["errorPane"],!c)},c?"Hide":"Show")),d.default.createElement(a,{isOpened:c,animated:!0},d.default.createElement("div",{className:"errors"},l.map((f,h)=>{let p=f.get("type");return p==="thrown"||p==="auth"?d.default.createElement(YEe,{key:h,error:f.get("error")||f,jumpToLine:o}):p==="spec"?d.default.createElement(XEe,{key:h,error:f,jumpToLine:o}):void 0}))))}}const YEe=({error:e,jumpToLine:t})=>{if(!e)return null;let r=e.get("line");return d.default.createElement("div",{className:"error-wrapper"},e?d.default.createElement("div",null,d.default.createElement("h4",null,e.get("source")&&e.get("level")?L7(e.get("source"))+" "+e.get("level"):"",e.get("path")?d.default.createElement("small",null," at ",e.get("path")):null),d.default.createElement("span",{className:"message thrown"},e.get("message")),d.default.createElement("div",{className:"error-line"},r&&t?d.default.createElement("a",{onClick:t.bind(null,r)},"Jump to line ",r):null)):null)},XEe=({error:e,jumpToLine:t=null})=>{let r=null;return e.get("path")?r=K.List.isList(e.get("path"))?d.default.createElement("small",null,"at ",e.get("path").join(".")):d.default.createElement("small",null,"at ",e.get("path")):e.get("line")&&!t&&(r=d.default.createElement("small",null,"on line ",e.get("line"))),d.default.createElement("div",{className:"error-wrapper"},e?d.default.createElement("div",null,d.default.createElement("h4",null,L7(e.get("source"))+" "+e.get("level")," ",r),d.default.createElement("span",{className:"message"},e.get("message")),d.default.createElement("div",{className:"error-line"},t?d.default.createElement("a",{onClick:t.bind(null,e.get("line"))},"Jump to line ",e.get("line")):null)):null)};function L7(e){return(e||"").split(" ").map(t=>t[0].toUpperCase()+t.slice(1)).join(" ")}const ZEe=()=>{};class B7 extends d.default.Component{constructor(){super(...arguments);z(this,"onChangeWrapper",r=>this.props.onChange(r.target.value))}componentDidMount(){this.props.contentTypes&&this.props.onChange(this.props.contentTypes.first())}UNSAFE_componentWillReceiveProps(r){r.contentTypes&&r.contentTypes.size&&(r.contentTypes.includes(r.value)||r.onChange(r.contentTypes.first()))}render(){let{ariaControls:r,ariaLabel:n,className:i,contentTypes:s,controlId:a,value:o}=this.props;return s&&s.size?d.default.createElement("div",{className:"content-type-wrapper "+(i||"")},d.default.createElement("select",{"aria-controls":r,"aria-label":n,className:"content-type",id:a,onChange:this.onChangeWrapper,value:o||""},s.map(u=>d.default.createElement("option",{key:u,value:u},u)).toArray())):null}}z(B7,"defaultProps",{onChange:ZEe,value:null,contentTypes:(0,K.fromJS)(["application/json"])});function bf(...e){return e.filter(t=>!!t).join(" ").trim()}class QEe extends d.default.Component{render(){let{fullscreen:t,full:r,...n}=this.props;if(t)return d.default.createElement("section",n);let i="swagger-container"+(r?"-full":"");return d.default.createElement("section",(0,At.default)({},n,{className:bf(n.className,i)}))}}const sw={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class eSe extends d.default.Component{render(){const{hide:t,keepContents:r,mobile:n,tablet:i,desktop:s,large:a,...o}=this.props;if(t&&!r)return d.default.createElement("span",null);let u=[];for(let l in sw){if(!Object.prototype.hasOwnProperty.call(sw,l))continue;let f=sw[l];if(l in this.props){let h=this.props[l];if(h<1){u.push("none"+f);continue}u.push("block"+f),u.push("col-"+h+f)}}t&&u.push("hidden");let c=bf(o.className,...u);return d.default.createElement("section",(0,At.default)({},o,{className:c}))}}class tSe extends d.default.Component{render(){return d.default.createElement("div",(0,At.default)({},this.props,{className:bf(this.props.className,"wrapper")}))}}class U7 extends d.default.Component{render(){return d.default.createElement("button",(0,At.default)({},this.props,{className:bf(this.props.className,"button")}))}}z(U7,"defaultProps",{className:""});const rSe=e=>d.default.createElement("textarea",e),nSe=e=>d.default.createElement("input",e);class V7 extends d.default.Component{constructor(r,n){let i;super(r,n);z(this,"onChange",r=>{let n,{onChange:i,multiple:s}=this.props,a=[].slice.call(r.target.options);n=s?a.filter(function(o){return o.selected}).map(function(o){return o.value}):r.target.value,this.setState({value:n}),i&&i(n)});i=r.value?r.value:r.multiple?[""]:"",this.state={value:i}}UNSAFE_componentWillReceiveProps(r){r.value!==this.props.value&&this.setState({value:r.value})}render(){var o,u;let{allowedValues:r,multiple:n,allowEmptyValue:i,disabled:s}=this.props,a=((u=(o=this.state.value)==null?void 0:o.toJS)==null?void 0:u.call(o))||this.state.value;return d.default.createElement("select",{className:this.props.className,multiple:n,value:a,onChange:this.onChange,disabled:s},i?d.default.createElement("option",{value:""},"--"):null,r.map(function(c,l){return d.default.createElement("option",{key:l,value:String(c)},String(c))}))}}z(V7,"defaultProps",{multiple:!1,allowEmptyValue:!0});class z7 extends d.default.Component{render(){return d.default.createElement("a",(0,At.default)({},this.props,{rel:"noopener noreferrer",className:bf(this.props.className,"link")}))}}const Z3=({children:e})=>d.default.createElement("div",{className:"no-margin"}," ",e," ");class W7 extends d.default.Component{renderNotAnimated(){return this.props.isOpened?d.default.createElement(Z3,null,this.props.children):d.default.createElement("noscript",null)}render(){let{animated:t,isOpened:r,children:n}=this.props;return t?(n=r?n:null,d.default.createElement(Z3,null,n)):this.renderNotAnimated()}}z(W7,"defaultProps",{isOpened:!1,animated:!1});class iSe extends d.default.Component{constructor(...t){super(...t),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(t,r){this.props.layoutActions.show(t,r)}showOp(t,r){let{layoutActions:n}=this.props;n.show(t,r)}render(){let{specSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:i}=this.props,s=t.taggedOperations();const a=i("Collapse");return d.default.createElement("div",null,d.default.createElement("h4",{className:"overview-title"},"Overview"),s.map((o,u)=>{let c=o.get("operations"),l=["overview-tags",u],f=r.isShown(l,!0);return d.default.createElement("div",{key:"overview-"+u},d.default.createElement("h4",{onClick:()=>n.show(l,!f),className:"link overview-tag"}," ",f?"-":"+",u),d.default.createElement(a,{isOpened:f,animated:!0},c.map(h=>{let{path:p,method:g,id:y}=h.toObject(),v="operations",E=y,b=r.isShown([v,E]);return d.default.createElement(sSe,{key:y,path:p,method:g,id:p+"-"+g,shown:b,showOpId:E,showOpIdPrefix:v,href:`#operation-${E}`,onClick:n.show})}).toArray()))}).toArray(),s.size<1&&d.default.createElement("h3",null," No operations defined in spec! "))}}class sSe extends d.default.Component{constructor(t){super(t),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:t,showOpIdPrefix:r,onClick:n,shown:i}=this.props;n([r,t],!i)}render(){let{id:t,method:r,shown:n,href:i}=this.props;return d.default.createElement(z7,{href:i,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},d.default.createElement("div",null,d.default.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),d.default.createElement("span",{className:"bold-label"},t)))}}class aSe extends d.default.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:t,defaultValue:r,initialValue:n,...i}=this.props;return d.default.createElement("input",(0,At.default)({},i,{ref:s=>this.inputRef=s}))}}class oSe extends d.default.Component{render(){const{host:t,basePath:r}=this.props;return d.default.createElement("pre",{className:"base-url"},"[ Base URL: ",t,r," ]")}}class uSe extends d.default.PureComponent{render(){const{url:t,getComponent:r}=this.props,n=r("Link");return d.default.createElement(n,{target:"_blank",href:vr(t)},d.default.createElement("span",{className:"url"}," ",t))}}class cSe extends d.default.Component{render(){const{info:t,url:r,host:n,basePath:i,getComponent:s,externalDocs:a,selectedServer:o,url:u}=this.props,c=t.get("version"),l=t.get("description"),f=t.get("title"),h=Mi(t.get("termsOfService"),u,{selectedServer:o}),p=t.get("contact"),g=t.get("license"),y=Mi(a&&a.get("url"),u,{selectedServer:o}),v=a&&a.get("description"),E=s("Markdown",!0),b=s("Link"),S=s("VersionStamp"),x=s("OpenAPIVersion"),_=s("InfoUrl"),A=s("InfoBasePath"),C=s("License"),T=s("Contact");return d.default.createElement("div",{className:"info"},d.default.createElement("hgroup",{className:"main"},d.default.createElement("h2",{className:"title"},f,d.default.createElement("span",null,c&&d.default.createElement(S,{version:c}),d.default.createElement(x,{oasVersion:"2.0"}))),n||i?d.default.createElement(A,{host:n,basePath:i}):null,r&&d.default.createElement(_,{getComponent:s,url:r})),d.default.createElement("div",{className:"description"},d.default.createElement(E,{source:l})),h&&d.default.createElement("div",{className:"info__tos"},d.default.createElement(b,{target:"_blank",href:vr(h)},"Terms of service")),(p==null?void 0:p.size)>0&&d.default.createElement(T,{getComponent:s,data:p,selectedServer:o,url:r}),(g==null?void 0:g.size)>0&&d.default.createElement(C,{getComponent:s,license:g,selectedServer:o,url:r}),y?d.default.createElement(b,{className:"info__extdocs",target:"_blank",href:vr(y)},v||y):null)}}var lSe=cSe;class fSe extends d.default.Component{render(){const{specSelectors:t,getComponent:r,oas3Selectors:n}=this.props,i=t.info(),s=t.url(),a=t.basePath(),o=t.host(),u=t.externalDocs(),c=n.selectedServer(),l=r("info");return d.default.createElement("div",null,i&&i.count()?d.default.createElement(l,{info:i,url:s,host:o,basePath:a,externalDocs:u,getComponent:r,selectedServer:c}):null)}}class dSe extends d.default.Component{render(){const{data:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","the developer"),a=Mi(t.get("url"),i,{selectedServer:n}),o=t.get("email"),u=r("Link");return d.default.createElement("div",{className:"info__contact"},a&&d.default.createElement("div",null,d.default.createElement(u,{href:vr(a),target:"_blank"},s," - Website")),o&&d.default.createElement(u,{href:vr(`mailto:${o}`)},a?`Send email to ${s}`:`Contact ${s}`))}}var pSe=dSe;class hSe extends d.default.Component{render(){const{license:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","License"),a=Mi(t.get("url"),i,{selectedServer:n}),o=r("Link");return d.default.createElement("div",{className:"info__license"},a?d.default.createElement("div",{className:"info__license__url"},d.default.createElement(o,{target:"_blank",href:vr(a)},s)):d.default.createElement("span",null,s))}}var mSe=hSe;class gSe extends d.default.Component{render(){return null}}class ySe extends d.default.Component{render(){let{getComponent:t}=this.props;const r=t("CopyIcon");return d.default.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},d.default.createElement(xm.CopyToClipboard,{text:this.props.textToCopy},d.default.createElement(r,null)))}}class vSe extends d.default.Component{render(){return d.default.createElement("div",{className:"footer"})}}class bSe extends d.default.Component{constructor(){super(...arguments);z(this,"onFilterChange",r=>{const{target:{value:n}}=r;this.props.layoutActions.updateFilter(n)})}render(){const{specSelectors:r,layoutSelectors:n,getComponent:i}=this.props,s=i("Col"),a=r.loadingStatus()==="loading",o=r.loadingStatus()==="failed",u=n.currentFilter(),c=["operation-filter-input"];return o&&c.push("failed"),a&&c.push("loading"),d.default.createElement("div",null,u===!1?null:d.default.createElement("div",{className:"filter-container"},d.default.createElement(s,{className:"filter wrapper",mobile:12},d.default.createElement("input",{className:c.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof u=="string"?u:"",disabled:a}))))}}const aw=Function.prototype,Wp=class Wp extends d.PureComponent{constructor(r,n){super(r,n);z(this,"updateValues",r=>{let{param:n,isExecute:i,consumesValue:s=""}=r,a=/xml/i.test(s),o=/json/i.test(s),u=a?n.get("value_xml"):n.get("value");if(u!==void 0){let c=!u&&o?"{}":u;this.setState({value:c}),this.onChange(c,{isXml:a,isEditBox:i})}else a?this.onChange(this.sample("xml"),{isXml:a,isEditBox:i}):this.onChange(this.sample(),{isEditBox:i})});z(this,"sample",r=>{let{param:n,fn:i}=this.props,s=i.inferSchema(n.toJS());return i.getSampleSchema(s,r,{includeWriteOnly:!0})});z(this,"onChange",(r,{isEditBox:n,isXml:i})=>{this.setState({value:r,isEditBox:n}),this._onChange(r,i)});z(this,"_onChange",(r,n)=>{(this.props.onChange||aw)(r,n)});z(this,"handleOnChange",r=>{const{consumesValue:n}=this.props,i=/xml/i.test(n),s=r.target.value;this.onChange(s,{isXml:i,isEditBox:this.state.isEditBox})});z(this,"toggleIsEditBox",()=>this.setState(r=>({isEditBox:!r.isEditBox})));this.state={isEditBox:!1,value:""}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(r){this.updateValues.call(this,r)}render(){let{onChangeConsumes:r,param:n,isExecute:i,specSelectors:s,pathMethod:a,getComponent:o}=this.props;const u=o("Button"),c=o("TextArea"),l=o("HighlightCode",!0),f=o("contentType");let h=(s?s.parameterWithMetaByIdentity(a,n):n).get("errors",(0,K.List)()),p=s.contentTypeValues(a).get("requestContentType"),g=this.props.consumes&&this.props.consumes.size?this.props.consumes:Wp.defaultProp.consumes,{value:y,isEditBox:v}=this.state,E=null;Tm(y)&&(E="json");const b=`${sR(`${a[1]}${a[0]}_parameters`)}_select`;return d.default.createElement("div",{className:"body-param","data-param-name":n.get("name"),"data-param-in":n.get("in")},v&&i?d.default.createElement(c,{className:"body-param__text"+(h.count()?" invalid":""),value:y,onChange:this.handleOnChange}):y&&d.default.createElement(l,{className:"body-param__example",language:E},y),d.default.createElement("div",{className:"body-param-options"},i?d.default.createElement("div",{className:"body-param-edit"},d.default.createElement(u,{className:v?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},v?"Cancel":"Edit")):null,d.default.createElement("label",{htmlFor:b},d.default.createElement("span",null,"Parameter content type"),d.default.createElement(f,{value:p,contentTypes:g,onChange:r,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:b}))))}};z(Wp,"defaultProp",{consumes:(0,K.fromJS)(["application/json"]),param:(0,K.fromJS)({}),onChange:aw,onChangeConsumes:aw});let wA=Wp;class _Se extends d.default.Component{render(){const{request:t,getComponent:r}=this.props,n=OU(t),i=r("SyntaxHighlighter",!0);return d.default.createElement("div",{className:"curl-command"},d.default.createElement("h4",null,"Curl"),d.default.createElement("div",{className:"copy-to-clipboard"},d.default.createElement(xm.CopyToClipboard,{text:n},d.default.createElement("button",null))),d.default.createElement("div",null,d.default.createElement(i,{language:"bash",className:"curl microlight",renderPlainText:({children:s,PlainTextViewer:a})=>d.default.createElement(a,{className:"curl"},s)},n)))}}var ESe=({propKey:e,propVal:t,propClass:r})=>d.default.createElement("span",{className:r},d.default.createElement("br",null),e,": ",String(t));class J7 extends d.default.Component{render(){const{onTryoutClick:t,onCancelClick:r,onResetClick:n,enabled:i,hasUserEditedBody:s,isOAS3:a}=this.props,o=a&&s;return d.default.createElement("div",{className:o?"try-out btn-group":"try-out"},i?d.default.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):d.default.createElement("button",{className:"btn try-out__btn",onClick:t},"Try it out "),o&&d.default.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}z(J7,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class K7 extends d.default.PureComponent{render(){const{bypass:t,isSwagger2:r,isOAS3:n,alsoShow:i}=this.props;return t?d.default.createElement("div",null,this.props.children):r&&n?d.default.createElement("div",{className:"version-pragma"},i,d.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},d.default.createElement("div",null,d.default.createElement("h3",null,"Unable to render this definition"),d.default.createElement("p",null,d.default.createElement("code",null,"swagger")," and ",d.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),d.default.createElement("p",null,"Supported version fields are ",d.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",d.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",d.default.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?d.default.createElement("div",null,this.props.children):d.default.createElement("div",{className:"version-pragma"},i,d.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},d.default.createElement("div",null,d.default.createElement("h3",null,"Unable to render this definition"),d.default.createElement("p",null,"The provided definition does not specify a valid version field."),d.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",d.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",d.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",d.default.createElement("code",null,"openapi: 3.0.4"),")."))))}}z(K7,"defaultProps",{alsoShow:null,children:null,bypass:!1});var SSe=({version:e})=>d.default.createElement("small",null,d.default.createElement("pre",{className:"version"}," ",e," ")),wSe=({oasVersion:e})=>d.default.createElement("small",{className:"version-stamp"},d.default.createElement("pre",{className:"version"},"OAS ",e)),xSe=({enabled:e,path:t,text:r})=>d.default.createElement("a",{className:"nostyle",onClick:e?n=>n.preventDefault():null,href:e?`#/${t}`:null},d.default.createElement("span",null,r)),ASe=()=>d.default.createElement("div",null,d.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},d.default.createElement("defs",null,d.default.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},d.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"})),d.default.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},d.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"})),d.default.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},d.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"})),d.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},d.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"})),d.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},d.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"})),d.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},d.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"})),d.default.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},d.default.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),d.default.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},d.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),d.default.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},d.default.createElement("g",{transform:"translate(2, -1)"},d.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"})))))),H7=function(e){var t={};return me.d(t,e),t}({Remarkable:function(){return Aa}}),OSe=function(e){var t={};return me.d(t,e),t}({linkify:function(){return wye}}),xA=function(e){var t={};return me.d(t,e),t}({default:function(){return Wye}});xA.default.addHook&&xA.default.addHook("beforeSanitizeElements",function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e});var CSe=function({source:t,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof t!="string")return null;const i=new H7.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(OSe.linkify);i.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:s}=n(),a=i.render(t),o=Vc(a,{useUnsafeMarkdown:s});return t&&a&&o?d.default.createElement("div",{className:(0,Ot.default)(r,"markdown"),dangerouslySetInnerHTML:{__html:o}}):null};function Vc(e,{useUnsafeMarkdown:t=!1}={}){const r=t,n=t?[]:["style","class"];return t&&!Vc.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),Vc.hasWarnedAboutDeprecation=!0),xA.default.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}Vc.hasWarnedAboutDeprecation=!1;class RSe extends d.default.Component{render(){const{errSelectors:t,specSelectors:r,getComponent:n}=this.props,i=n("SvgAssets"),s=n("InfoContainer",!0),a=n("VersionPragmaFilter"),o=n("operations",!0),u=n("Models",!0),c=n("Webhooks",!0),l=n("Row"),f=n("Col"),h=n("errors",!0),p=n("ServersContainer",!0),g=n("SchemesContainer",!0),y=n("AuthorizeBtnContainer",!0),v=n("FilterContainer",!0),E=r.isSwagger2(),b=r.isOAS3(),S=r.isOAS31(),x=!r.specStr(),_=r.loadingStatus();let A=null;if(_==="loading"&&(A=d.default.createElement("div",{className:"info"},d.default.createElement("div",{className:"loading-container"},d.default.createElement("div",{className:"loading"})))),_==="failed"&&(A=d.default.createElement("div",{className:"info"},d.default.createElement("div",{className:"loading-container"},d.default.createElement("h4",{className:"title"},"Failed to load API definition."),d.default.createElement(h,null)))),_==="failedConfig"){const D=t.lastError(),P=D?D.get("message"):"";A=d.default.createElement("div",{className:"info failed-config"},d.default.createElement("div",{className:"loading-container"},d.default.createElement("h4",{className:"title"},"Failed to load remote configuration."),d.default.createElement("p",null,P)))}if(!A&&x&&(A=d.default.createElement("h4",null,"No API definition provided.")),A)return d.default.createElement("div",{className:"swagger-ui"},d.default.createElement("div",{className:"loading-container"},A));const C=r.servers(),T=r.schemes(),O=C&&C.size,M=T&&T.size,k=!!r.securityDefinitions();return d.default.createElement("div",{className:"swagger-ui"},d.default.createElement(i,null),d.default.createElement(a,{isSwagger2:E,isOAS3:b,alsoShow:d.default.createElement(h,null)},d.default.createElement(h,null),d.default.createElement(l,{className:"information-container"},d.default.createElement(f,{mobile:12},d.default.createElement(s,null))),O||M||k?d.default.createElement("div",{className:"scheme-container"},d.default.createElement(f,{className:"schemes wrapper",mobile:12},O||M?d.default.createElement("div",{className:"schemes-server-container"},O?d.default.createElement(p,null):null,M?d.default.createElement(g,null):null):null,k?d.default.createElement(y,null):null)):null,d.default.createElement(v,null),d.default.createElement(l,null,d.default.createElement(f,{mobile:12,desktop:12},d.default.createElement(o,null))),S&&d.default.createElement(l,{className:"webhooks-container"},d.default.createElement(f,{mobile:12,desktop:12},d.default.createElement(c,null))),d.default.createElement(l,null,d.default.createElement(f,{mobile:12,desktop:12},d.default.createElement(u,null)))))}}var TSe=()=>({components:{App:yEe,authorizationPopup:vEe,authorizeBtn:bEe,AuthorizeBtnContainer:_Ee,authorizeOperationBtn:EEe,auths:SEe,AuthItem:wEe,authError:xEe,oauth2:TEe,apiKeyAuth:AEe,basicAuth:OEe,clear:IEe,liveResponse:PEe,InitializedInput:aSe,info:lSe,InfoContainer:fSe,InfoUrl:uSe,InfoBasePath:oSe,Contact:pSe,License:mSe,JumpToPath:gSe,CopyToClipboardBtn:ySe,onlineValidatorBadge:k7,operations:MEe,operation:N7,OperationSummary:D7,OperationSummaryMethod:q7,OperationSummaryPath:qEe,responses:SA,response:LEe,ResponseExtension:BEe,responseBody:VEe,parameters:$7,parameterRow:JEe,execute:KEe,headers:HEe,errors:GEe,contentType:B7,overview:iSe,footer:vSe,FilterContainer:bSe,ParamBody:wA,curl:_Se,Property:ESe,TryItOutButton:J7,Markdown:CSe,BaseLayout:RSe,VersionPragmaFilter:K7,VersionStamp:SSe,OperationExt:$Ee,OperationExtRow:FEe,ParameterExt:zEe,ParameterIncludeEmpty:F7,OperationTag:P7,OperationContainer:M7,OpenAPIVersion:wSe,DeepLink:xSe,SvgAssets:ASe,Example:CEe,ExamplesSelect:I7,ExamplesSelectValueRetainer:j7}}),ISe=()=>({components:{...sA}}),G7=()=>[gU,g7,xU,_7,E7,p7,bU,EU,wU,qU,zU,TSe,ISe,m7,mU,S7,yU,_U,AU,RU,x7,A7,T7()];const jSe=(0,K.Map)();function _f(e){return(t,r)=>(...n)=>{if(r.getSystem().specSelectors.isOAS3()){const i=e(...n);return typeof i=="function"?i(r):i}return t(...n)}}const Ef=_f((0,Am.default)(null)),kSe=_f((e,t)=>r=>r.getSystem().specSelectors.findSchema(t)),PSe=_f(()=>e=>{const t=e.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return K.Map.isMap(t)?t:jSe}),NSe=_f(()=>e=>e.getSystem().specSelectors.specJson().hasIn(["servers",0])),MSe=_f((0,et.createSelector)(Bi,e=>e.getIn(["components","securitySchemes"])||null)),DSe=(e,t)=>(r,...n)=>t.specSelectors.isOAS3()?t.oas3Selectors.validOperationMethods():e(...n),qSe=Ef,$Se=Ef,FSe=Ef,LSe=Ef,BSe=Ef,USe=function(t){return(r,n)=>(...i)=>{if(n.getSystem().specSelectors.isOAS3()){let s=n.getState().getIn(["spec","resolvedSubtrees","components","securitySchemes"]);return t(n,s,...i)}return r(...i)}}((0,et.createSelector)(e=>e,({specSelectors:e})=>e.securityDefinitions(),(e,t)=>{let r=(0,K.List)();return t&&t.entrySeq().forEach(([n,i])=>{const s=i==null?void 0:i.get("type");if(s==="oauth2"&&i.get("flows").entrySeq().forEach(([a,o])=>{let u=(0,K.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 K.Map({[n]:u.filter(c=>c!==void 0)}))}),s!=="http"&&s!=="apiKey"||(r=r.push(new K.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((l,f)=>l.set(f,""),new K.Map),c=(0,K.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 K.Map({[n]:c.filter(l=>l!==void 0)}))})}}),r}));function Sf(e){return(t,r)=>n=>{var i;return typeof((i=r.specSelectors)==null?void 0:i.isOAS3)=="function"?r.specSelectors.isOAS3()?d.default.createElement(e,(0,At.default)({},n,r,{Ori:t})):d.default.createElement(t,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}const VSe=(0,K.Map)(),zSe=()=>e=>function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"}(e.getSystem().specSelectors.specJson()),WSe=()=>e=>function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)}(e.getSystem().specSelectors.specJson()),JSe=()=>e=>e.getSystem().specSelectors.isOAS30();function Y7(e){return(t,...r)=>n=>{if(n.specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null}}const KSe=Y7(()=>e=>e.specSelectors.specJson().get("servers",VSe)),HSe=(e,t)=>{const r=e.getIn(["resolvedSubtrees","components","schemas",t],null),n=e.getIn(["json","components","schemas",t],null);return r||n||null},GSe=Y7((e,{callbacks:t,specPath:r})=>n=>{const i=n.specSelectors.validOperationMethods();return K.Map.isMap(t)?t.reduce((s,a,o)=>{if(!K.Map.isMap(a))return s;const u=a.reduce((c,l,f)=>{if(!K.Map.isMap(l))return c;const h=l.entrySeq().filter(([p])=>i.includes(p)).map(([p,g])=>({operation:(0,K.Map)({operation:g}),method:p,path:f,callbackName:o,specPath:r.concat([o,f,p])}));return c.concat(h)},(0,K.List)());return s.concat(u)},(0,K.List)()).groupBy(s=>s.callbackName).map(s=>s.toArray()).toObject():{}});var YSe=({callbacks:e,specPath:t,specSelectors:r,getComponent:n})=>{const i=r.callbacksOperations({callbacks:e,specPath:t}),s=Object.keys(i),a=n("OperationContainer",!0);return s.length===0?d.default.createElement("span",null,"No callbacks"):d.default.createElement("div",null,s.map(o=>d.default.createElement("div",{key:`${o}`},d.default.createElement("h2",null,o),i[o].map(u=>d.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 sp=(e,t,r,n)=>{const i=e.getIn(["content",t])??(0,K.OrderedMap)(),s=i.get("schema",(0,K.OrderedMap)()).toJS(),a=i.get("examples")!==void 0,o=i.get("example"),u=a?i.getIn(["examples",r,"value"]):o;return Xr(n.getSampleSchema(s,t,{includeWriteOnly:!0},u))};var XSe=({userHasEditedBody:e,requestBody:t,requestBodyValue:r,requestBodyInclusionSetting:n,requestBodyErrors:i,getComponent:s,getConfigs:a,specSelectors:o,fn:u,contentType:c,isExecute:l,specPath:f,onChange:h,onChangeIncludeEmpty:p,activeExamplesKey:g,updateActiveExamplesKey:y,setRetainRequestBodyValueFlag:v})=>{const E=ee=>{h(ee.target.files[0])},b=ee=>{let ne={key:ee,shouldDispatchInit:!1,defaultValue:!0};return n.get(ee,"no value")==="no value"&&(ne.shouldDispatchInit=!0),ne},S=s("Markdown",!0),x=s("modelExample"),_=s("RequestBodyEditor"),A=s("HighlightCode",!0),C=s("ExamplesSelectValueRetainer"),T=s("Example"),O=s("ParameterIncludeEmpty"),{showCommonExtensions:M}=a(),k=(t==null?void 0:t.get("description"))??null,D=(t==null?void 0:t.get("content"))??new K.OrderedMap;c=c||D.keySeq().first()||"";const P=D.get(c)??(0,K.OrderedMap)(),H=P.get("schema",(0,K.OrderedMap)()),X=P.get("examples",null),V=X==null?void 0:X.map((ee,ne)=>{const ae=ee==null?void 0:ee.get("value",null);return ae&&(ee=ee.set("value",sp(t,c,ne,u),ae)),ee});if(i=K.List.isList(i)?i:(0,K.List)(),!P.size)return null;const G=P.getIn(["schema","type"])==="object",Q=P.getIn(["schema","format"])==="binary",Z=P.getIn(["schema","format"])==="base64";if(c==="application/octet-stream"||c.indexOf("image/")===0||c.indexOf("audio/")===0||c.indexOf("video/")===0||Q||Z){const ee=s("Input");return l?d.default.createElement(ee,{type:"file",onChange:E}):d.default.createElement("i",null,"Example values are not available for ",d.default.createElement("code",null,c)," media types.")}if(G&&(c==="application/x-www-form-urlencoded"||c.indexOf("multipart/")===0)&&H.get("properties",(0,K.OrderedMap)()).size>0){const ee=s("JsonSchemaForm"),ne=s("ParameterExt"),ae=H.get("properties",(0,K.OrderedMap)());return r=K.Map.isMap(r)?r:(0,K.OrderedMap)(),d.default.createElement("div",{className:"table-container"},k&&d.default.createElement(S,{source:k}),d.default.createElement("table",null,d.default.createElement("tbody",null,K.Map.isMap(ae)&&ae.entrySeq().map(([Y,F])=>{var re,ie,fe,Ie;if(F.get("readOnly"))return;const L=(ie=(re=F.get("oneOf"))==null?void 0:re.get(0))==null?void 0:ie.toJS(),ue=(Ie=(fe=F.get("anyOf"))==null?void 0:fe.get(0))==null?void 0:Ie.toJS();F=(0,K.fromJS)(u.mergeJsonSchema(F.toJS(),L??ue??{}));let de=M?lU(F):null;const Ae=H.get("required",(0,K.List)()).includes(Y),Ne=u.jsonSchema202012.getType(Wn(F)),ce=u.jsonSchema202012.foldType(Wn(F==null?void 0:F.get("type"))),Re=u.jsonSchema202012.foldType(Wn(F==null?void 0:F.getIn(["items","type"]))),ze=F.get("format"),he=F.get("description"),_e=r.getIn([Y,"value"]),Se=r.getIn([Y,"errors"])||i,$=n.get(Y)||!1;let R=u.getSampleSchema(F,!1,{includeWriteOnly:!0});R===!1&&(R="false"),R===0&&(R="0"),typeof R!="string"&&ce==="object"&&(R=Xr(R)),typeof R=="string"&&ce==="array"&&(R=JSON.parse(R));const j=ce==="string"&&(ze==="binary"||ze==="base64"),U=d.default.createElement(ee,{fn:u,dispatchInitialValue:!j,schema:F,description:Y,getComponent:s,value:_e===void 0?R:_e,required:Ae,errors:Se,onChange:Fe=>{h(Fe,[Y])}});return d.default.createElement("tr",{key:Y,className:"parameters","data-property-name":Y},d.default.createElement("td",{className:"parameters-col_name"},d.default.createElement("div",{className:Ae?"parameter__name required":"parameter__name"},Y,Ae?d.default.createElement("span",null," *"):null),d.default.createElement("div",{className:"parameter__type"},Ne,ze&&d.default.createElement("span",{className:"prop-format"},"($",ze,")"),M&&de.size?de.entrySeq().map(([Fe,Ge])=>d.default.createElement(ne,{key:`${Fe}-${Ge}`,xKey:Fe,xVal:Ge})):null),d.default.createElement("div",{className:"parameter__deprecated"},F.get("deprecated")?"deprecated":null)),d.default.createElement("td",{className:"parameters-col_description"},d.default.createElement(S,{source:he}),l?d.default.createElement("div",null,ce==="object"||Re==="object"?d.default.createElement(x,{getComponent:s,specPath:f.push("schema"),getConfigs:a,isExecute:l,specSelectors:o,schema:F,example:U}):U,Ae?null:d.default.createElement(O,{onChange:Fe=>p(Y,Fe),isIncluded:$,isIncludedOptions:b(Y),isDisabled:Array.isArray(_e)?_e.length!==0:!AC(_e)})):null))}))))}const B=sp(t,c,g,u);let J=null;return Tm(B)&&(J="json"),d.default.createElement("div",null,k&&d.default.createElement(S,{source:k}),V?d.default.createElement(C,{userHasEditedBody:e,examples:V,currentKey:g,currentUserInputValue:r,onSelect:ee=>{y(ee)},updateValue:h,defaultToFirstExample:!0,getComponent:s,setRetainRequestBodyValueFlag:v}):null,l?d.default.createElement("div",null,d.default.createElement(_,{value:r,errors:i,defaultValue:B,onChange:h,getComponent:s})):d.default.createElement(x,{getComponent:s,getConfigs:a,specSelectors:o,expandDepth:1,isExecute:l,schema:P.get("schema"),specPath:f.push("content",c),example:d.default.createElement(A,{className:"body-param__example",language:J},Xr(r)||B),includeWriteOnly:!0}),V?d.default.createElement(T,{example:V.get(g),getComponent:s,getConfigs:a}):null)};class ZSe extends d.Component{render(){const{link:t,name:r,getComponent:n}=this.props,i=n("Markdown",!0);let s=t.get("operationId")||t.get("operationRef"),a=t.get("parameters")&&t.get("parameters").toJS(),o=t.get("description");return d.default.createElement("div",{className:"operation-link"},d.default.createElement("div",{className:"description"},d.default.createElement("b",null,d.default.createElement("code",null,r)),o?d.default.createElement(i,{source:o}):null),d.default.createElement("pre",null,"Operation `",s,"`",d.default.createElement("br",null),d.default.createElement("br",null),"Parameters ",function(c,l){return typeof l!="string"?"":l.split(`
306
+ `).map((f,h)=>h>0?Array(c+1).join(" ")+f:f).join(`
307
+ `)}(0,JSON.stringify(a,null,2))||"{}",d.default.createElement("br",null)))}}var QSe=ZSe,e1e=({servers:e,currentServer:t,setSelectedServer:r,setServerVariableValue:n,getServerVariable:i,getEffectiveServerValue:s})=>{const a=(e.find(l=>l.get("url")===t)||(0,K.OrderedMap)()).get("variables")||(0,K.OrderedMap)(),o=a.size!==0;(0,d.useEffect)(()=>{var l;t||r((l=e.first())==null?void 0:l.get("url"))},[]),(0,d.useEffect)(()=>{const l=e.find(f=>f.get("url")===t);if(!l)return void r(e.first().get("url"));(l.get("variables")||(0,K.OrderedMap)()).map((f,h)=>{n({server:t,key:h,val:f.get("default")||""})})},[t,e]);const u=(0,d.useCallback)(l=>{r(l.target.value)},[r]),c=(0,d.useCallback)(l=>{const f=l.target.getAttribute("data-variable"),h=l.target.value;n({server:t,key:f,val:h})},[n,t]);return d.default.createElement("div",{className:"servers"},d.default.createElement("label",{htmlFor:"servers"},d.default.createElement("select",{onChange:u,value:t,id:"servers"},e.valueSeq().map(l=>d.default.createElement("option",{value:l.get("url"),key:l.get("url")},l.get("url"),l.get("description")&&` - ${l.get("description")}`)).toArray())),o&&d.default.createElement("div",null,d.default.createElement("div",{className:"computed-url"},"Computed URL:",d.default.createElement("code",null,s(t))),d.default.createElement("h4",null,"Server variables"),d.default.createElement("table",null,d.default.createElement("tbody",null,a.entrySeq().map(([l,f])=>d.default.createElement("tr",{key:l},d.default.createElement("td",null,l),d.default.createElement("td",null,f.get("enum")?d.default.createElement("select",{"data-variable":l,onChange:c},f.get("enum").map(h=>d.default.createElement("option",{selected:h===i(t,l),key:h,value:h},h))):d.default.createElement("input",{type:"text",value:i(t,l)||"",onChange:c,"data-variable":l}))))))))};class t1e extends d.default.Component{render(){const{specSelectors:t,oas3Selectors:r,oas3Actions:n,getComponent:i}=this.props,s=t.servers(),a=i("Servers");return s&&s.size?d.default.createElement("div",null,d.default.createElement("span",{className:"servers-title"},"Servers"),d.default.createElement(a,{servers:s,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const r1e=Function.prototype;class X7 extends d.PureComponent{constructor(r,n){super(r,n);z(this,"applyDefaultValue",r=>{const{onChange:n,defaultValue:i}=r||this.props;return this.setState({value:i}),n(i)});z(this,"onChange",r=>{this.props.onChange(Xr(r))});z(this,"onDomChange",r=>{const n=r.target.value;this.setState({value:n},()=>this.onChange(n))});this.state={value:Xr(r.value)||r.defaultValue},r.onChange(r.value)}UNSAFE_componentWillReceiveProps(r){this.props.value!==r.value&&r.value!==this.state.value&&this.setState({value:Xr(r.value)}),!r.value&&r.defaultValue&&this.state.value&&this.applyDefaultValue(r)}render(){let{getComponent:r,errors:n}=this.props,{value:i}=this.state,s=n.size>0;const a=r("TextArea");return d.default.createElement("div",{className:"body-param"},d.default.createElement(a,{className:(0,Ot.default)("body-param__text",{invalid:s}),title:n.size?n.join(", "):"",value:i,onChange:this.onDomChange}))}}z(X7,"defaultProps",{onChange:r1e,userHasEditedBody:!1});class n1e extends d.default.Component{constructor(r,n){super(r,n);z(this,"onChange",r=>{let{onChange:n}=this.props,{value:i,name:s}=r.target,a=Object.assign({},this.state.value);s?a[s]=i:a=i,this.setState({value:a},()=>n(this.state))});let{name:i,schema:s}=this.props,a=this.getValue();this.state={name:i,schema:s,value:a}}getValue(){let{name:r,authorized:n}=this.props;return n&&n.getIn([r,"value"])}render(){let{schema:r,getComponent:n,errSelectors:i,name:s,authSelectors:a}=this.props;const o=n("Input"),u=n("Row"),c=n("Col"),l=n("authError"),f=n("Markdown",!0),h=n("JumpToPath",!0),p=(r.get("scheme")||"").toLowerCase(),g=a.selectAuthPath(s);let y=this.getValue(),v=i.allErrors().filter(E=>E.get("authId")===s);if(p==="basic"){let E=y?y.get("username"):null;return d.default.createElement("div",null,d.default.createElement("h4",null,d.default.createElement("code",null,s),"  (http, Basic)",d.default.createElement(h,{path:g})),E&&d.default.createElement("h6",null,"Authorized"),d.default.createElement(u,null,d.default.createElement(f,{source:r.get("description")})),d.default.createElement(u,null,d.default.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),E?d.default.createElement("code",null," ",E," "):d.default.createElement(c,null,d.default.createElement(o,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),d.default.createElement(u,null,d.default.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),E?d.default.createElement("code",null," ****** "):d.default.createElement(c,null,d.default.createElement(o,{id:"auth-basic-password",autoComplete:"new-password",name:"password",type:"password","aria-label":"auth-basic-password",onChange:this.onChange}))),v.valueSeq().map((b,S)=>d.default.createElement(l,{error:b,key:S})))}return p==="bearer"?d.default.createElement("div",null,d.default.createElement("h4",null,d.default.createElement("code",null,s),"  (http, Bearer)",d.default.createElement(h,{path:g})),y&&d.default.createElement("h6",null,"Authorized"),d.default.createElement(u,null,d.default.createElement(f,{source:r.get("description")})),d.default.createElement(u,null,d.default.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),y?d.default.createElement("code",null," ****** "):d.default.createElement(c,null,d.default.createElement(o,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),v.valueSeq().map((E,b)=>d.default.createElement(l,{error:E,key:b}))):d.default.createElement("div",null,d.default.createElement("em",null,d.default.createElement("b",null,s)," HTTP authentication: unsupported scheme ",`'${p}'`))}}class i1e extends d.default.Component{constructor(){super(...arguments);z(this,"setSelectedServer",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setSelectedServer(r,`${n}:${i}`)});z(this,"setServerVariableValue",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...r,namespace:`${n}:${i}`})});z(this,"getSelectedServer",()=>{const{path:r,method:n}=this.props;return this.props.getSelectedServer(`${r}:${n}`)});z(this,"getServerVariable",(r,n)=>{const{path:i,method:s}=this.props;return this.props.getServerVariable({namespace:`${i}:${s}`,server:r},n)});z(this,"getEffectiveServerValue",r=>{const{path:n,method:i}=this.props;return this.props.getEffectiveServerValue({server:r,namespace:`${n}:${i}`})})}render(){const{operationServers:r,pathServers:n,getComponent:i}=this.props;if(!r&&!n)return null;const s=i("Servers"),a=r||n,o=r?"operation":"path";return d.default.createElement("div",{className:"opblock-section operation-servers"},d.default.createElement("div",{className:"opblock-section-header"},d.default.createElement("div",{className:"tab-header"},d.default.createElement("h4",{className:"opblock-title"},"Servers"))),d.default.createElement("div",{className:"opblock-description-wrapper"},d.default.createElement("h4",{className:"message"},"These ",o,"-level options override the global server options."),d.default.createElement(s,{servers:a,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var s1e={Callbacks:YSe,HttpAuth:n1e,RequestBody:XSe,Servers:e1e,ServersContainer:t1e,RequestBodyEditor:X7,OperationServers:i1e,operationLink:QSe};const AA=new H7.Remarkable("commonmark");AA.block.ruler.enable(["table"]),AA.set({linkTarget:"_blank"});var a1e=Sf(({source:e,className:t="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof e!="string")return null;if(e){const{useUnsafeMarkdown:n}=r(),i=Vc(AA.render(e),{useUnsafeMarkdown:n});let s;return typeof i=="string"&&(s=i.trim()),d.default.createElement("div",{dangerouslySetInnerHTML:{__html:s},className:(0,Ot.default)(t,"renderedMarkdown")})}return null}),o1e=Sf(({Ori:e,...t})=>{const{schema:r,getComponent:n,errSelectors:i,authorized:s,onAuthChange:a,name:o,authSelectors:u}=t,c=n("HttpAuth");return r.get("type")==="http"?d.default.createElement(c,{key:o,schema:r,name:o,errSelectors:i,authorized:s,getComponent:n,onChange:a,authSelectors:u}):d.default.createElement(e,t)}),u1e=Sf(k7);class c1e extends d.Component{render(){let{getConfigs:t,schema:r,Ori:n}=this.props,i=["model-box"],s=null;return r.get("deprecated")===!0&&(i.push("deprecated"),s=d.default.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),d.default.createElement("div",{className:i.join(" ")},s,d.default.createElement(n,(0,At.default)({},this.props,{getConfigs:t,depth:1,expandDepth:this.props.expandDepth||0})))}}var l1e=Sf(c1e),f1e=Sf(({Ori:e,...t})=>{const{schema:r,getComponent:n,errors:i,onChange:s}=t,a=r&&r.get?r.get("format"):null,o=r&&r.get?r.get("type"):null,u=n("Input");return o&&o==="string"&&a&&(a==="binary"||a==="base64")?d.default.createElement(u,{type:"file",className:i.length?"invalid":"",title:i.length?i:"",onChange:c=>{s(c.target.files[0])},disabled:e.isDisabled}):d.default.createElement(e,t)}),d1e={Markdown:a1e,AuthItem:o1e,OpenAPIVersion:function(t){return(r,n)=>i=>{var s;return typeof((s=n.specSelectors)==null?void 0:s.isOAS30)=="function"?n.specSelectors.isOAS30()?d.default.createElement(t,(0,At.default)({},i,n,{Ori:r})):d.default.createElement(r,i):(console.warn("OAS30 wrapper: couldn't get spec"),null)}}(e=>{const{Ori:t}=e;return d.default.createElement(t,{oasVersion:"3.0"})}),JsonSchema_string:f1e,model:l1e,onlineValidatorBadge:u1e};const aR="oas3_set_servers",oR="oas3_set_request_body_value",uR="oas3_set_request_body_retain_flag",cR="oas3_set_request_body_inclusion",lR="oas3_set_active_examples_member",fR="oas3_set_request_content_type",dR="oas3_set_response_content_type",pR="oas3_set_server_variable_value",hR="oas3_set_request_body_validate_error",Im="oas3_clear_request_body_validate_error",mR="oas3_clear_request_body_value";function p1e(e,t){return{type:aR,payload:{selectedServerUrl:e,namespace:t}}}function h1e({value:e,pathMethod:t}){return{type:oR,payload:{value:e,pathMethod:t}}}const m1e=({value:e,pathMethod:t})=>({type:uR,payload:{value:e,pathMethod:t}});function g1e({value:e,pathMethod:t,name:r}){return{type:cR,payload:{value:e,pathMethod:t,name:r}}}function y1e({name:e,pathMethod:t,contextType:r,contextName:n}){return{type:lR,payload:{name:e,pathMethod:t,contextType:r,contextName:n}}}function v1e({value:e,pathMethod:t}){return{type:fR,payload:{value:e,pathMethod:t}}}function b1e({value:e,path:t,method:r}){return{type:dR,payload:{value:e,path:t,method:r}}}function _1e({server:e,namespace:t,key:r,val:n}){return{type:pR,payload:{server:e,namespace:t,key:r,val:n}}}const E1e=({path:e,method:t,validationErrors:r})=>({type:hR,payload:{path:e,method:t,validationErrors:r}}),S1e=({path:e,method:t})=>({type:Im,payload:{path:e,method:t}}),w1e=({pathMethod:e})=>({type:Im,payload:{path:e[0],method:e[1]}}),x1e=({pathMethod:e})=>({type:mR,payload:{pathMethod:e}});var A1e=function(e){var t={};return me.d(t,e),t}({default:function(){return Hye}});const bi=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},O1e=bi((e,t)=>{const r=t?[t,"selectedServer"]:["selectedServer"];return e.getIn(r)||""}),C1e=bi((e,t,r)=>e.getIn(["requestData",t,r,"bodyValue"])||null),R1e=bi((e,t,r)=>e.getIn(["requestData",t,r,"retainBodyValue"])||!1),T1e=(e,t,r)=>n=>{const{oas3Selectors:i,specSelectors:s,fn:a}=n.getSystem();if(s.isOAS3()){const o=i.requestContentType(t,r);if(o)return sp(s.specResolvedSubtree(["paths",t,r,"requestBody"]),o,i.activeExamplesMember(t,r,"requestBody","requestBody"),a)}return null},I1e=bi((e,t,r)=>n=>{const{oas3Selectors:i,specSelectors:s,fn:a}=n;let o=!1;const u=i.requestContentType(t,r);let c=i.requestBodyValue(t,r);const l=s.specResolvedSubtree(["paths",t,r,"requestBody"]);if(!l)return!1;if(K.Map.isMap(c)&&(c=Xr(c.mapEntries(f=>K.Map.isMap(f[1])?[f[0],f[1].get("value")]:f).toJS())),K.List.isList(c)&&(c=Xr(c)),u){const f=sp(l,u,i.activeExamplesMember(t,r,"requestBody","requestBody"),a);o=!!c&&c!==f}return o}),j1e=bi((e,t,r)=>e.getIn(["requestData",t,r,"bodyInclusion"])||(0,K.Map)()),k1e=bi((e,t,r)=>e.getIn(["requestData",t,r,"errors"])||null),P1e=bi((e,t,r,n,i)=>e.getIn(["examples",t,r,n,i,"activeExample"])||null),N1e=bi((e,t,r)=>e.getIn(["requestData",t,r,"requestContentType"])||null),M1e=bi((e,t,r)=>e.getIn(["requestData",t,r,"responseContentType"])||null),D1e=bi((e,t,r)=>{let n;if(typeof t!="string"){const{server:i,namespace:s}=t;n=s?[s,"serverVariableValues",i,r]:["serverVariableValues",i,r]}else n=["serverVariableValues",t,r];return e.getIn(n)||null}),q1e=bi((e,t)=>{let r;if(typeof t!="string"){const{server:n,namespace:i}=t;r=i?[i,"serverVariableValues",n]:["serverVariableValues",n]}else r=["serverVariableValues",t];return e.getIn(r)||(0,K.OrderedMap)()}),$1e=bi((e,t)=>{var r,n;if(typeof t!="string"){const{server:s,namespace:a}=t;n=s,r=a?e.getIn([a,"serverVariableValues",n]):e.getIn(["serverVariableValues",n])}else n=t,r=e.getIn(["serverVariableValues",n]);r=r||(0,K.OrderedMap)();let i=n;return r.map((s,a)=>{i=i.replace(new RegExp(`{${(0,A1e.default)(a)}}`,"g"),s)}),i}),F1e=function(t){return(...r)=>n=>{const i=n.getSystem().specSelectors.specJson();let s=[...r][1]||[];return!i.getIn(["paths",...s,"requestBody","required"])||t(...r)}}((e,t)=>((r,n)=>(n=n||[],!!r.getIn(["requestData",...n,"bodyValue"])))(e,t)),L1e=(e,{oas3RequiredRequestBodyContentType:t,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let i=[];if(!K.Map.isMap(n))return i;let s=[];return Object.keys(t.requestContentType).forEach(a=>{a===r&&t.requestContentType[a].forEach(o=>{s.indexOf(o)<0&&s.push(o)})}),s.forEach(a=>{n.getIn([a,"value"])||i.push(a)}),i},B1e=(0,Am.default)(["get","put","post","delete","options","head","patch","trace"]);var U1e={[aR]:(e,{payload:{selectedServerUrl:t,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return e.setIn(n,t)},[oR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;if(!K.Map.isMap(t))return e.setIn(["requestData",n,i,"bodyValue"],t);let s,a=e.getIn(["requestData",n,i,"bodyValue"])||(0,K.Map)();K.Map.isMap(a)||(a=(0,K.Map)());const[...o]=t.keys();return o.forEach(u=>{let c=t.getIn([u]);a.has(u)&&K.Map.isMap(c)||(s=a.setIn([u,"value"],c))}),e.setIn(["requestData",n,i,"bodyValue"],s)},[uR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"retainBodyValue"],t)},[cR]:(e,{payload:{value:t,pathMethod:r,name:n}})=>{let[i,s]=r;return e.setIn(["requestData",i,s,"bodyInclusion",n],t)},[lR]:(e,{payload:{name:t,pathMethod:r,contextType:n,contextName:i}})=>{let[s,a]=r;return e.setIn(["examples",s,a,n,i,"activeExample"],t)},[fR]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"requestContentType"],t)},[dR]:(e,{payload:{value:t,path:r,method:n}})=>e.setIn(["requestData",r,n,"responseContentType"],t),[pR]:(e,{payload:{server:t,namespace:r,key:n,val:i}})=>{const s=r?[r,"serverVariableValues",t,n]:["serverVariableValues",t,n];return e.setIn(s,i)},[hR]:(e,{payload:{path:t,method:r,validationErrors:n}})=>{let i=[];if(i.push("Required field is not provided"),n.missingBodyValue)return e.setIn(["requestData",t,r,"errors"],(0,K.fromJS)(i));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:s}=n;return e.updateIn(["requestData",t,r,"bodyValue"],(0,K.fromJS)({}),a=>s.reduce((o,u)=>o.setIn([u,"errors"],(0,K.fromJS)(i)),a))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),e},[Im]:(e,{payload:{path:t,method:r}})=>{const n=e.getIn(["requestData",t,r,"bodyValue"]);if(!K.Map.isMap(n))return e.setIn(["requestData",t,r,"errors"],(0,K.fromJS)([]));const[...i]=n.keys();return i?e.updateIn(["requestData",t,r,"bodyValue"],(0,K.fromJS)({}),s=>i.reduce((a,o)=>a.setIn([o,"errors"],(0,K.fromJS)([])),s)):e},[mR]:(e,{payload:{pathMethod:t}})=>{let[r,n]=t;const i=e.getIn(["requestData",r,n,"bodyValue"]);return i?K.Map.isMap(i)?e.setIn(["requestData",r,n,"bodyValue"],(0,K.Map)()):e.setIn(["requestData",r,n,"bodyValue"],""):e}};function OA(){return{components:s1e,wrapComponents:d1e,statePlugins:{spec:{wrapSelectors:aA,selectors:uA},auth:{wrapSelectors:oA},oas3:{actions:{...cA},reducers:U1e,selectors:{...lA}}}}}var V1e=({specSelectors:e,getComponent:t})=>{const r=e.selectWebhooksOperations(),n=Object.keys(r),i=t("OperationContainer",!0);return n.length===0?null:d.default.createElement("div",{className:"webhooks"},d.default.createElement("h2",null,"Webhooks"),n.map(s=>d.default.createElement("div",{key:`${s}-webhook`},r[s].map(a=>d.default.createElement(i,{key:`${s}-${a.method}-webhook`,op:a.operation,tag:"webhooks",method:a.method,path:s,specPath:(0,K.List)(a.specPath),allowTryItOut:!1})))))},z1e=({getComponent:e,specSelectors:t})=>{const r=t.selectLicenseNameField(),n=t.selectLicenseUrl(),i=e("Link");return d.default.createElement("div",{className:"info__license"},n?d.default.createElement("div",{className:"info__license__url"},d.default.createElement(i,{target:"_blank",href:vr(n)},r)):d.default.createElement("span",null,r))},W1e=({getComponent:e,specSelectors:t})=>{const r=t.selectContactNameField(),n=t.selectContactUrl(),i=t.selectContactEmailField(),s=e("Link");return d.default.createElement("div",{className:"info__contact"},n&&d.default.createElement("div",null,d.default.createElement(s,{href:vr(n),target:"_blank"},r," - Website")),i&&d.default.createElement(s,{href:vr(`mailto:${i}`)},n?`Send email to ${r}`:`Contact ${r}`))},J1e=({getComponent:e,specSelectors:t})=>{const r=t.version(),n=t.url(),i=t.basePath(),s=t.host(),a=t.selectInfoSummaryField(),o=t.selectInfoDescriptionField(),u=t.selectInfoTitleField(),c=t.selectInfoTermsOfServiceUrl(),l=t.selectExternalDocsUrl(),f=t.selectExternalDocsDescriptionField(),h=t.contact(),p=t.license(),g=e("Markdown",!0),y=e("Link"),v=e("VersionStamp"),E=e("OpenAPIVersion"),b=e("InfoUrl"),S=e("InfoBasePath"),x=e("License",!0),_=e("Contact",!0),A=e("JsonSchemaDialect",!0);return d.default.createElement("div",{className:"info"},d.default.createElement("hgroup",{className:"main"},d.default.createElement("h2",{className:"title"},u,d.default.createElement("span",null,r&&d.default.createElement(v,{version:r}),d.default.createElement(E,{oasVersion:"3.1"}))),(s||i)&&d.default.createElement(S,{host:s,basePath:i}),n&&d.default.createElement(b,{getComponent:e,url:n})),a&&d.default.createElement("p",{className:"info__summary"},a),d.default.createElement("div",{className:"info__description description"},d.default.createElement(g,{source:o})),c&&d.default.createElement("div",{className:"info__tos"},d.default.createElement(y,{target:"_blank",href:vr(c)},"Terms of service")),h.size>0&&d.default.createElement(_,null),p.size>0&&d.default.createElement(x,null),l&&d.default.createElement(y,{className:"info__extdocs",target:"_blank",href:vr(l)},f||l),d.default.createElement(A,null))},K1e=({getComponent:e,specSelectors:t})=>{const r=t.selectJsonSchemaDialectField(),n=t.selectJsonSchemaDialectDefault(),i=e("Link");return d.default.createElement(d.default.Fragment,null,r&&r===n&&d.default.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",d.default.createElement(i,{target:"_blank",href:vr(r)},r)),r&&r!==n&&d.default.createElement("div",{className:"error-wrapper"},d.default.createElement("div",{className:"no-margin"},d.default.createElement("div",{className:"errors"},d.default.createElement("div",{className:"errors-wrapper"},d.default.createElement("h4",{className:"center"},"Warning"),d.default.createElement("p",{className:"message"},d.default.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",d.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."))))))},H1e=({bypass:e,isSwagger2:t,isOAS3:r,isOAS31:n,alsoShow:i,children:s})=>e?d.default.createElement("div",null,s):t&&(r||n)?d.default.createElement("div",{className:"version-pragma"},i,d.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},d.default.createElement("div",null,d.default.createElement("h3",null,"Unable to render this definition"),d.default.createElement("p",null,d.default.createElement("code",null,"swagger")," and ",d.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),d.default.createElement("p",null,"Supported version fields are ",d.default.createElement("code",null,'swagger: "2.0"')," and those that match ",d.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",d.default.createElement("code",null,"openapi: 3.1.0"),").")))):t||r||n?d.default.createElement("div",null,s):d.default.createElement("div",{className:"version-pragma"},i,d.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},d.default.createElement("div",null,d.default.createElement("h3",null,"Unable to render this definition"),d.default.createElement("p",null,"The provided definition does not specify a valid version field."),d.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",d.default.createElement("code",null,'swagger: "2.0"')," and those that match ",d.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",d.default.createElement("code",null,"openapi: 3.1.0"),")."))));const G1e=e=>typeof e=="string"&&e.includes("#/components/schemas/")?(t=>{const r=t.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(r)}catch{return r}})(e.replace(/^.*#\/components\/schemas\//,"")):null,Y1e=(0,d.forwardRef)(({schema:e,getComponent:t,onToggle:r=()=>{},specPath:n},i)=>{const s=t("JSONSchema202012"),a=G1e(e.get("$$ref")),o=(0,d.useCallback)((u,c)=>{r(a,c)},[a,r]);return d.default.createElement(s,{name:a,schema:e.toJS(),ref:i,onExpand:o,identifier:n.toJS().join("_")})});var X1e=Y1e,Z1e=({specActions:e,specSelectors:t,layoutSelectors:r,layoutActions:n,getComponent:i,getConfigs:s,fn:a})=>{const o=t.selectSchemas(),u=Object.keys(o).length>0,c=["components","schemas"],{docExpansion:l,defaultModelsExpandDepth:f}=s(),h=f>0&&l!=="none",p=r.isShown(c,h),g=i("Collapse"),y=i("JSONSchema202012"),v=i("ArrowUpIcon"),E=i("ArrowDownIcon"),{getTitle:b}=a.jsonSchema202012.useFn();(0,d.useEffect)(()=>{const C=p&&f>1,T=t.specResolvedSubtree(c)!=null;C&&!T&&e.requestResolvedSubtree(c)},[p,f]);const S=(0,d.useCallback)(()=>{n.show(c,!p)},[p]),x=(0,d.useCallback)(C=>{C!==null&&n.readyToScroll(c,C)},[]),_=C=>T=>{T!==null&&n.readyToScroll([...c,C],T)},A=C=>(T,O)=>{if(O){const M=[...c,C];t.specResolvedSubtree(M)!=null||e.requestResolvedSubtree([...c,C])}};return!u||f<0?null:d.default.createElement("section",{className:(0,Ot.default)("models",{"is-open":p}),ref:x},d.default.createElement("h4",null,d.default.createElement("button",{"aria-expanded":p,className:"models-control",onClick:S},d.default.createElement("span",null,"Schemas"),p?d.default.createElement(v,null):d.default.createElement(E,null))),d.default.createElement(g,{isOpened:p},Object.entries(o).map(([C,T])=>{const O=b(T,{lookup:"basic"})||C;return d.default.createElement(y,{key:C,ref:_(C),schema:T,name:O,onExpand:A(C)})})))},Q1e=({schema:e,getComponent:t,name:r,authSelectors:n})=>{const i=t("JumpToPath",!0),s=n.selectAuthPath(r);return d.default.createElement("div",null,d.default.createElement("h4",null,r," (mutualTLS) ",d.default.createElement(i,{path:s})),d.default.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),d.default.createElement("p",null,e.get("description")))};class ewe extends d.default.Component{constructor(r,n){super(r,n);z(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});z(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});z(this,"logoutClick",r=>{r.preventDefault();let{authActions:n,definitions:i}=this.props,s=i.map((a,o)=>o).toArray();this.setState(s.reduce((a,o)=>(a[o]="",a),{})),n.logoutWithPersistOption(s)});z(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});this.state={}}render(){let{definitions:r,getComponent:n,authSelectors:i,errSelectors:s}=this.props;const a=n("AuthItem"),o=n("oauth2",!0),u=n("Button"),c=i.authorized(),l=r.filter((g,y)=>!!c.get(y)),f=r.filter(g=>g.get("type")!=="oauth2"&&g.get("type")!=="mutualTLS"),h=r.filter(g=>g.get("type")==="oauth2"),p=r.filter(g=>g.get("type")==="mutualTLS");return d.default.createElement("div",{className:"auth-container"},f.size>0&&d.default.createElement("form",{onSubmit:this.submitAuth},f.map((g,y)=>d.default.createElement(a,{key:y,schema:g,name:y,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i})).toArray(),d.default.createElement("div",{className:"auth-btn-wrapper"},f.size===l.size?d.default.createElement(u,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):d.default.createElement(u,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),d.default.createElement(u,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),h.size>0?d.default.createElement("div",null,d.default.createElement("div",{className:"scope-def"},d.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."),d.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter(g=>g.get("type")==="oauth2").map((g,y)=>d.default.createElement("div",{key:y},d.default.createElement(o,{authorized:c,schema:g,name:y}))).toArray()):null,p.size>0&&d.default.createElement("div",null,p.map((g,y)=>d.default.createElement(a,{key:y,schema:g,name:y,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i})).toArray()))}}var twe=ewe;const Z7=e=>{const t=e.get("openapi");return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},Q3=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},Q7=e=>(t,r)=>(n,...i)=>{if(r.getSystem().specSelectors.isOAS31()){const s=e(n,...i);return typeof s=="function"?s(t,r):s}return t(...i)},eL=e=>(t,...r)=>n=>{const i=e(t,n,...r);return typeof i=="function"?i(n):i},ys=e=>(t,r)=>n=>r.specSelectors.isOAS31()?d.default.createElement(e,(0,At.default)({},n,{originalComponent:t,getSystem:r.getSystem})):d.default.createElement(t,n);var rwe=ys(({getSystem:e})=>{const t=e().getComponent("OAS31License",!0);return d.default.createElement(t,null)}),nwe=ys(({getSystem:e})=>{const t=e().getComponent("OAS31Contact",!0);return d.default.createElement(t,null)}),iwe=ys(({getSystem:e})=>{const t=e().getComponent("OAS31Info",!0);return d.default.createElement(t,null)});const swe=(e,{includeReadOnly:t,includeWriteOnly:r})=>{if(!(e!=null&&e.properties))return{};const n=Object.entries(e.properties).filter(([,i])=>((i==null?void 0:i.readOnly)!==!0||t)&&((i==null?void 0:i.writeOnly)!==!0||r));return Object.fromEntries(n)},eV=e=>{if(typeof e!="function")return null;const t=e();return()=>[...t,"discriminator","xml","externalDocs","example","$$ref"]},lc=ys(({getSystem:e,...t})=>{const r=e(),{getComponent:n,fn:i,getConfigs:s}=r,a=s(),o=n("OAS31Model"),u=n("withJSONSchema202012SystemContext");return lc.ModelWithJSONSchemaContext??(lc.ModelWithJSONSchemaContext=u(o,{config:{default$schema:"https://spec.openapis.org/oas/3.1/dialect/base",defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:i.jsonSchema202012.getProperties,isExpandable:i.jsonSchema202012.isExpandable,getSchemaKeywords:eV(i.jsonSchema202012.getSchemaKeywords)}})),d.default.createElement(lc.ModelWithJSONSchemaContext,t)});var awe=lc;const sa=ys(({getSystem:e})=>{const{getComponent:t,fn:r,getConfigs:n}=e(),i=n();if(sa.ModelsWithJSONSchemaContext)return d.default.createElement(sa.ModelsWithJSONSchemaContext,null);const s=t("OAS31Models",!0),a=t("withJSONSchema202012SystemContext");return sa.ModelsWithJSONSchemaContext??(sa.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:eV(r.jsonSchema202012.getSchemaKeywords)}})),d.default.createElement(sa.ModelsWithJSONSchemaContext,null)});sa.ModelsWithJSONSchemaContext=null;var owe=sa,uwe=(e,t)=>r=>{const n=t.specSelectors.isOAS31(),i=t.getComponent("OAS31VersionPragmaFilter");return d.default.createElement(i,(0,At.default)({isOAS31:n},r))};const cwe=ys(({originalComponent:e,...t})=>{const{getComponent:r,schema:n,name:i}=t,s=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?d.default.createElement(s,{schema:n,name:i}):d.default.createElement(e,t)});var lwe=cwe,fwe=ys(({getSystem:e,...t})=>{const r=e().getComponent("OAS31Auths",!0);return d.default.createElement(r,t)});const gR=(0,K.Map)(),dwe=(0,et.createSelector)((e,t)=>t.specSelectors.specJson(),Z7),pwe=()=>e=>{const t=e.specSelectors.specJson().get("webhooks");return K.Map.isMap(t)?t:gR},hwe=(0,et.createSelector)([(e,t)=>t.specSelectors.webhooks(),(e,t)=>t.specSelectors.validOperationMethods(),(e,t)=>t.specSelectors.specResolvedSubtree(["webhooks"])],(e,t)=>e.reduce((r,n,i)=>{if(!K.Map.isMap(n))return r;const s=n.entrySeq().filter(([a])=>t.includes(a)).map(([a,o])=>({operation:(0,K.Map)({operation:o}),method:a,path:i,specPath:["webhooks",i,a]}));return r.concat(s)},(0,K.List)()).groupBy(r=>r.path).map(r=>r.toArray()).toObject()),mwe=()=>e=>{const t=e.specSelectors.info().get("license");return K.Map.isMap(t)?t:gR},gwe=()=>e=>e.specSelectors.license().get("name","License"),ywe=()=>e=>e.specSelectors.license().get("url"),vwe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],(e,t,r)=>{if(r)return Mi(r,e,{selectedServer:t})}),bwe=()=>e=>e.specSelectors.license().get("identifier"),_we=()=>e=>{const t=e.specSelectors.info().get("contact");return K.Map.isMap(t)?t:gR},Ewe=()=>e=>e.specSelectors.contact().get("name","the developer"),Swe=()=>e=>e.specSelectors.contact().get("email"),wwe=()=>e=>e.specSelectors.contact().get("url"),xwe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],(e,t,r)=>{if(r)return Mi(r,e,{selectedServer:t})}),Awe=()=>e=>e.specSelectors.info().get("title"),Owe=()=>e=>e.specSelectors.info().get("summary"),Cwe=()=>e=>e.specSelectors.info().get("description"),Rwe=()=>e=>e.specSelectors.info().get("termsOfService"),Twe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectInfoTermsOfServiceField()],(e,t,r)=>{if(r)return Mi(r,e,{selectedServer:t})}),Iwe=()=>e=>e.specSelectors.externalDocs().get("description"),jwe=()=>e=>e.specSelectors.externalDocs().get("url"),kwe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectExternalDocsUrlField()],(e,t,r)=>{if(r)return Mi(r,e,{selectedServer:t})}),Pwe=()=>e=>e.specSelectors.specJson().get("jsonSchemaDialect"),Nwe=()=>"https://spec.openapis.org/oas/3.1/dialect/base",Mwe=(0,et.createSelector)((e,t)=>t.specSelectors.definitions(),(e,t)=>t.specSelectors.specResolvedSubtree(["components","schemas"]),(e,t)=>K.Map.isMap(e)?K.Map.isMap(t)?Object.entries(e.toJS()).reduce((r,[n,i])=>{const s=t.get(n);return r[n]=(s==null?void 0:s.toJS())||i,r},{}):e.toJS():{}),Dwe=(e,t)=>(r,...n)=>t.specSelectors.isOAS31()||e(...n),qwe=Q7(()=>(e,t)=>t.oas31Selectors.selectLicenseUrl()),$we=Q7(()=>(e,t)=>{const r=t.specSelectors.securityDefinitions();let n=e();return r&&r.entrySeq().forEach(([i,s])=>{(s==null?void 0:s.get("type"))==="mutualTLS"&&(n=n.push(new K.Map({[i]:s})))}),n}),Fwe=(0,et.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField(),(e,t)=>t.specSelectors.selectLicenseIdentifierField()],(e,t,r,n)=>r?Mi(r,e,{selectedServer:t}):n?`https://spdx.org/licenses/${n}.html`:void 0);var Lwe=({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{hasKeyword:i}=r.jsonSchema202012.useFn(),s=n("JSONSchema202012JSONViewer");return i(e,"example")?d.default.createElement(s,{name:"Example",value:e.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},Bwe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.xml)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,{path:f}=c("xml"),{isExpanded:h,setExpanded:p,setCollapsed:g}=u("xml"),[y,v]=l(),E=a?Oa(r):[],b=!!(r.name||r.namespace||r.prefix||E.length>0),S=o("Accordion"),x=o("ExpandDeepButton"),_=i("OpenAPI31Extensions"),A=i("JSONSchema202012PathContext")(),C=i("JSONSchema202012LevelContext")(),T=(0,d.useCallback)(()=>{h?g():p()},[h,p,g]),O=(0,d.useCallback)((M,k)=>{k?p({deep:!0}):g({deep:!0})},[p,g]);return Object.keys(r).length===0?null:d.default.createElement(A.Provider,{value:f},d.default.createElement(C.Provider,{value:v},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":y},b?d.default.createElement(d.default.Fragment,null,d.default.createElement(S,{expanded:h,onChange:T},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),d.default.createElement(x,{expanded:h,onClick:O})):d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&d.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&d.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!h})},h&&d.default.createElement(d.default.Fragment,null,r.name&&d.default.createElement("li",{className:"json-schema-2020-12-property"},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&d.default.createElement("li",{className:"json-schema-2020-12-property"},d.default.createElement("div",{className:"json-schema-2020-12-keyword"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&d.default.createElement("li",{className:"json-schema-2020-12-property"},d.default.createElement("div",{className:"json-schema-2020-12-keyword"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),E.length>0&&d.default.createElement(_,{openAPISpecObj:r,openAPIExtensions:E,getSystem:t})))))},Uwe=({discriminator:e})=>{const t=(e==null?void 0:e.mapping)||{};return Object.keys(t).length===0?null:Object.entries(t).map(([r,n])=>d.default.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n)))},Vwe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.discriminator)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,f="discriminator",{path:h}=c(f),{isExpanded:p,setExpanded:g,setCollapsed:y}=u(f),[v,E]=l(),b=a?Oa(r):[],S=!!(r.mapping||b.length>0),x=o("Accordion"),_=o("ExpandDeepButton"),A=i("OpenAPI31Extensions"),C=i("JSONSchema202012PathContext")(),T=i("JSONSchema202012LevelContext")(),O=(0,d.useCallback)(()=>{p?y():g()},[p,g,y]),M=(0,d.useCallback)((k,D)=>{D?g({deep:!0}):y({deep:!0})},[g,y]);return Object.keys(r).length===0?null:d.default.createElement(C.Provider,{value:h},d.default.createElement(T.Provider,{value:E},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":v},S?d.default.createElement(d.default.Fragment,null,d.default.createElement(x,{expanded:p,onChange:O},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),d.default.createElement(_,{expanded:p,onClick:M})):d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&d.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!p})},p&&d.default.createElement("li",{className:"json-schema-2020-12-property"},d.default.createElement(Uwe,{discriminator:r})),b.length>0&&d.default.createElement(A,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},zwe=({openAPISpecObj:e,getSystem:t,openAPIExtensions:r})=>{const{fn:n}=t(),{useComponent:i}=n.jsonSchema202012,s=i("JSONViewer");return r.map(a=>d.default.createElement(s,{key:a,name:a,value:e[a],className:"json-schema-2020-12-json-viewer-extension-keyword"}))},Wwe=({schema:e,getSystem:t})=>{const r=(e==null?void 0:e.externalDocs)||{},{fn:n,getComponent:i,getConfigs:s}=t(),{showExtensions:a}=s(),{useComponent:o,useIsExpanded:u,usePath:c,useLevel:l}=n.jsonSchema202012,f="externalDocs",{path:h}=c(f),{isExpanded:p,setExpanded:g,setCollapsed:y}=u(f),[v,E]=l(),b=a?Oa(r):[],S=!!(r.description||r.url||b.length>0),x=o("Accordion"),_=o("ExpandDeepButton"),A=i("JSONSchema202012KeywordDescription"),C=i("Link"),T=i("OpenAPI31Extensions"),O=i("JSONSchema202012PathContext")(),M=i("JSONSchema202012LevelContext")(),k=(0,d.useCallback)(()=>{p?y():g()},[p,g,y]),D=(0,d.useCallback)((P,H)=>{H?g({deep:!0}):y({deep:!0})},[g,y]);return Object.keys(r).length===0?null:d.default.createElement(O.Provider,{value:h},d.default.createElement(M.Provider,{value:E},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":v},S?d.default.createElement(d.default.Fragment,null,d.default.createElement(x,{expanded:p,onChange:k},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),d.default.createElement(_,{expanded:p,onClick:D})):d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!p})},p&&d.default.createElement(d.default.Fragment,null,r.description&&d.default.createElement("li",{className:"json-schema-2020-12-property"},d.default.createElement(A,{schema:r,getSystem:t})),r.url&&d.default.createElement("li",{className:"json-schema-2020-12-property"},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},d.default.createElement(C,{target:"_blank",href:vr(r.url)},r.url))))),b.length>0&&d.default.createElement(T,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},Jwe=({schema:e,getSystem:t})=>{if(!(e!=null&&e.description))return null;const{getComponent:r}=t(),n=r("Markdown");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},d.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},d.default.createElement(n,{source:e.description})))},Kwe=ys(Jwe);const Hwe=ys(({schema:e,getSystem:t,originalComponent:r})=>{const{getComponent:n}=t(),i=n("JSONSchema202012KeywordDiscriminator"),s=n("JSONSchema202012KeywordXml"),a=n("JSONSchema202012KeywordExample"),o=n("JSONSchema202012KeywordExternalDocs");return d.default.createElement(d.default.Fragment,null,d.default.createElement(r,{schema:e}),d.default.createElement(i,{schema:e,getSystem:t}),d.default.createElement(s,{schema:e,getSystem:t}),d.default.createElement(o,{schema:e,getSystem:t}),d.default.createElement(a,{schema:e,getSystem:t}))});var Gwe=Hwe,Ywe=({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{useComponent:i,usePath:s}=r.jsonSchema202012,{getDependentRequired:a,getProperties:o}=r.jsonSchema202012.useFn(),u=r.jsonSchema202012.useConfig(),c=Array.isArray(e==null?void 0:e.required)?e.required:[],{path:l}=s("properties"),f=i("JSONSchema"),h=n("JSONSchema202012PathContext")(),p=o(e,u);return Object.keys(p).length===0?null:d.default.createElement(h.Provider,{value:l},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},d.default.createElement("ul",null,Object.entries(p).map(([g,y])=>{const v=c.includes(g),E=a(g,e);return d.default.createElement("li",{key:g,className:(0,Ot.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":v})},d.default.createElement(f,{name:g,schema:y,dependentRequired:E}))}))))},Xwe=ys(Ywe),Zwe=function({fn:t,getSystem:r}){if(t.jsonSchema202012){const n=((i,s)=>{const{fn:a}=s();if(typeof i!="function")return null;const{hasKeyword:o}=a.jsonSchema202012;return u=>i(u)||o(u,"example")||(u==null?void 0:u.xml)||(u==null?void 0:u.discriminator)||(u==null?void 0:u.externalDocs)})(t.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:n,getProperties:swe})}if(typeof t.sampleFromSchema=="function"&&t.jsonSchema202012){const n=((i,s)=>{const{fn:a,specSelectors:o}=s;return Object.fromEntries(Object.entries(i).map(([u,c])=>{const l=a[u];return[u,(...f)=>o.isOAS31()?c(...f):typeof l=="function"?l(...f):void 0]}))})({sampleFromSchema:t.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:t.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:t.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:t.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:t.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:t.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:t.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:t.jsonSchema202012.getXmlSampleSchema,getSampleSchema:t.jsonSchema202012.getSampleSchema,mergeJsonSchema:t.jsonSchema202012.mergeJsonSchema},r());Object.assign(this.fn,n)}},Qwe=({fn:e})=>{const t=e.createSystemSelector||eL,r=e.createOnlyOAS31Selector||Q3;return{afterLoad:Zwe,fn:{isOAS31:Z7,createSystemSelector:eL,createOnlyOAS31Selector:Q3},components:{Webhooks:V1e,JsonSchemaDialect:K1e,MutualTLSAuth:Q1e,OAS31Info:J1e,OAS31License:z1e,OAS31Contact:W1e,OAS31VersionPragmaFilter:H1e,OAS31Model:X1e,OAS31Models:Z1e,OAS31Auths:twe,JSONSchema202012KeywordExample:Lwe,JSONSchema202012KeywordXml:Bwe,JSONSchema202012KeywordDiscriminator:Vwe,JSONSchema202012KeywordExternalDocs:Wwe,OpenAPI31Extensions:zwe},wrapComponents:{InfoContainer:iwe,License:rwe,Contact:nwe,VersionPragmaFilter:uwe,Model:awe,Models:owe,AuthItem:lwe,auths:fwe,JSONSchema202012KeywordDescription:Kwe,JSONSchema202012KeywordExamples:Gwe,JSONSchema202012KeywordProperties:Xwe},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:$we}},spec:{selectors:{isOAS31:t(dwe),license:mwe,selectLicenseNameField:gwe,selectLicenseUrlField:ywe,selectLicenseIdentifierField:r(bwe),selectLicenseUrl:t(vwe),contact:_we,selectContactNameField:Ewe,selectContactEmailField:Swe,selectContactUrlField:wwe,selectContactUrl:t(xwe),selectInfoTitleField:Awe,selectInfoSummaryField:r(Owe),selectInfoDescriptionField:Cwe,selectInfoTermsOfServiceField:Rwe,selectInfoTermsOfServiceUrl:t(Twe),selectExternalDocsDescriptionField:Iwe,selectExternalDocsUrlField:jwe,selectExternalDocsUrl:t(kwe),webhooks:r(pwe),selectWebhooksOperations:r(t(hwe)),selectJsonSchemaDialectField:Pwe,selectJsonSchemaDialectDefault:Nwe,selectSchemas:t(Mwe)},wrapSelectors:{isOAS3:Dwe,selectLicenseUrl:qwe}},oas31:{selectors:{selectLicenseUrl:r(t(Fwe))}}}}};const exe=Rn.default.object,txe=Rn.default.bool,Za=(Rn.default.oneOfType([exe,txe]),(0,d.createContext)(null));Za.displayName="JSONSchemaContext";const _i=(0,d.createContext)(0);_i.displayName="JSONSchemaLevelContext";const CA=(0,d.createContext)(new Set),qn=(0,d.createContext)([]);class Tn{}z(Tn,"Collapsed","collapsed"),z(Tn,"Expanded","expanded"),z(Tn,"DeeplyExpanded","deeply-expanded");const yR=()=>{const{config:e}=(0,d.useContext)(Za);return e},je=e=>{const{components:t}=(0,d.useContext)(Za);return t[e]||null},Vt=(e=void 0)=>{const{fn:t}=(0,d.useContext)(Za);return e!==void 0?t[e]:t},tV=()=>{const[,e]=(0,d.useState)(null),{state:t}=(0,d.useContext)(Za);return{state:t,setState:r=>{r(t),e({})}}},pi=()=>{const e=(0,d.useContext)(_i);return[e,e+1]},Sn=e=>{const t=(0,d.useContext)(qn),{setState:r}=tV(),n=typeof e=="string"?[...t,e]:t;return{path:n,pathMutator:(i,s={deep:!1})=>{const a=n.toString(),o=c=>{c.paths[a]=i,i===Tn.Collapsed&&Object.keys(c.paths).forEach(l=>{l.startsWith(a)&&c.paths[l]===Tn.DeeplyExpanded&&(c.paths[l]=Tn.Expanded)})},u=c=>{Object.keys(c.paths).forEach(l=>{l.startsWith(a)&&(c.paths[l]=i)})};s.deep?r(u):r(o)}}},Ui=e=>{const[t]=pi(),{defaultExpandedLevels:r}=yR(),{path:n,pathMutator:i}=Sn(e),{path:s}=Sn(),{state:a}=tV(),o=a.paths[n.toString()],u=a.paths[s.toString()]??a.paths[s.slice(0,-1).toString()],c=o??(r-t>0?Tn.Expanded:Tn.Collapsed),l=c!==Tn.Collapsed;return(0,d.useEffect)(()=>{i(u===Tn.DeeplyExpanded?Tn.DeeplyExpanded:c)},[u]),{isExpanded:l,setExpanded:(0,d.useCallback)((f={deep:!1})=>{i(f.deep?Tn.DeeplyExpanded:Tn.Expanded)},[]),setCollapsed:(0,d.useCallback)((f={deep:!1})=>{i(Tn.Collapsed,f)},[])}},tL=(e=void 0)=>{if(e===void 0)return(0,d.useContext)(CA);const t=(0,d.useContext)(CA);return new Set([...t,e])},rxe=(0,d.forwardRef)(({schema:e,name:t="",dependentRequired:r=[],onExpand:n=()=>{},identifier:i=""},s)=>{const a=Vt(),o=i||e.$id||t,{path:u}=Sn(o),{isExpanded:c,setExpanded:l,setCollapsed:f}=Ui(o),[h,p]=pi(),g=(()=>{const[Ge]=pi();return Ge>0})(),y=a.isExpandable(e)||r.length>0,v=(Ge=>tL().has(Ge))(e),E=tL(e),b=a.stringifyConstraints(e),S=je("Accordion"),x=je("Keyword$schema"),_=je("Keyword$vocabulary"),A=je("Keyword$id"),C=je("Keyword$anchor"),T=je("Keyword$dynamicAnchor"),O=je("Keyword$ref"),M=je("Keyword$dynamicRef"),k=je("Keyword$defs"),D=je("Keyword$comment"),P=je("KeywordAllOf"),H=je("KeywordAnyOf"),X=je("KeywordOneOf"),V=je("KeywordNot"),G=je("KeywordIf"),Q=je("KeywordThen"),Z=je("KeywordElse"),B=je("KeywordDependentSchemas"),J=je("KeywordPrefixItems"),ee=je("KeywordItems"),ne=je("KeywordContains"),ae=je("KeywordProperties"),Y=je("KeywordPatternProperties"),F=je("KeywordAdditionalProperties"),L=je("KeywordPropertyNames"),ue=je("KeywordUnevaluatedItems"),de=je("KeywordUnevaluatedProperties"),Ae=je("KeywordType"),Ne=je("KeywordEnum"),ce=je("KeywordConst"),Re=je("KeywordConstraint"),ze=je("KeywordDependentRequired"),he=je("KeywordContentSchema"),_e=je("KeywordTitle"),Se=je("KeywordDescription"),$=je("KeywordDefault"),R=je("KeywordDeprecated"),j=je("KeywordReadOnly"),U=je("KeywordWriteOnly"),re=je("KeywordExamples"),ie=je("ExtensionKeywords"),fe=je("ExpandDeepButton"),Ie=(0,d.useCallback)((Ge,tt)=>{tt?l():f(),n(Ge,tt,!1)},[n,l,f]),Fe=(0,d.useCallback)((Ge,tt)=>{tt?l({deep:!0}):f({deep:!0}),n(Ge,tt,!0)},[n,l,f]);return d.default.createElement(qn.Provider,{value:u},d.default.createElement(_i.Provider,{value:p},d.default.createElement(CA.Provider,{value:E},d.default.createElement("article",{ref:s,"data-json-schema-level":h,className:(0,Ot.default)("json-schema-2020-12",{"json-schema-2020-12--embedded":g,"json-schema-2020-12--circular":v})},d.default.createElement("div",{className:"json-schema-2020-12-head"},y&&!v?d.default.createElement(d.default.Fragment,null,d.default.createElement(S,{expanded:c,onChange:Ie},d.default.createElement(_e,{title:t,schema:e})),d.default.createElement(fe,{expanded:c,onClick:Fe})):d.default.createElement(_e,{title:t,schema:e}),d.default.createElement(R,{schema:e}),d.default.createElement(j,{schema:e}),d.default.createElement(U,{schema:e}),d.default.createElement(Ae,{schema:e,isCircular:v}),b.length>0&&b.map(Ge=>d.default.createElement(Re,{key:`${Ge.scope}-${Ge.value}`,constraint:Ge}))),d.default.createElement("div",{className:(0,Ot.default)("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!c})},c&&d.default.createElement(d.default.Fragment,null,d.default.createElement(Se,{schema:e}),!v&&y&&d.default.createElement(d.default.Fragment,null,d.default.createElement(ae,{schema:e}),d.default.createElement(Y,{schema:e}),d.default.createElement(F,{schema:e}),d.default.createElement(de,{schema:e}),d.default.createElement(L,{schema:e}),d.default.createElement(P,{schema:e}),d.default.createElement(H,{schema:e}),d.default.createElement(X,{schema:e}),d.default.createElement(V,{schema:e}),d.default.createElement(G,{schema:e}),d.default.createElement(Q,{schema:e}),d.default.createElement(Z,{schema:e}),d.default.createElement(B,{schema:e}),d.default.createElement(J,{schema:e}),d.default.createElement(ee,{schema:e}),d.default.createElement(ue,{schema:e}),d.default.createElement(ne,{schema:e}),d.default.createElement(he,{schema:e})),d.default.createElement(Ne,{schema:e}),d.default.createElement(ce,{schema:e}),d.default.createElement(ze,{schema:e,dependentRequired:r}),d.default.createElement($,{schema:e}),d.default.createElement(re,{schema:e}),d.default.createElement(x,{schema:e}),d.default.createElement(_,{schema:e}),d.default.createElement(A,{schema:e}),d.default.createElement(C,{schema:e}),d.default.createElement(T,{schema:e}),d.default.createElement(O,{schema:e}),!v&&y&&d.default.createElement(k,{schema:e}),d.default.createElement(M,{schema:e}),d.default.createElement(D,{schema:e}),d.default.createElement(ie,{schema:e})))))))});var rV=rxe,nV=({schema:e})=>e!=null&&e.$schema?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$schema)):null,iV=({schema:e})=>{const t="$vocabulary",{path:r}=Sn(t),{isExpanded:n,setExpanded:i,setCollapsed:s}=Ui(t),a=je("Accordion"),o=(0,d.useCallback)(()=>{n?s():i()},[n,i,s]);return e!=null&&e.$vocabulary?typeof e.$vocabulary!="object"?null:d.default.createElement(qn.Provider,{value:r},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},d.default.createElement(a,{expanded:n,onChange:o},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),d.default.createElement("ul",null,n&&Object.entries(e.$vocabulary).map(([u,c])=>d.default.createElement("li",{key:u,className:(0,Ot.default)("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!c})},d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u)))))):null},sV=({schema:e})=>e!=null&&e.$id?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$id)):null,aV=({schema:e})=>e!=null&&e.$anchor?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$anchor)):null,oV=({schema:e})=>e!=null&&e.$dynamicAnchor?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicAnchor)):null,uV=({schema:e})=>e!=null&&e.$ref?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$ref)):null,cV=({schema:e})=>e!=null&&e.$dynamicRef?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicRef)):null,lV=({schema:e})=>{const t=(e==null?void 0:e.$defs)||{},r="$defs",{path:n}=Sn(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ui(r),[o,u]=pi(),c=je("Accordion"),l=je("ExpandDeepButton"),f=je("JSONSchema"),h=(0,d.useCallback)(()=>{i?a():s()},[i,s,a]),p=(0,d.useCallback)((g,y)=>{y?s({deep:!0}):a({deep:!0})},[s,a]);return Object.keys(t).length===0?null:d.default.createElement(qn.Provider,{value:n},d.default.createElement(_i.Provider,{value:u},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":o},d.default.createElement(c,{expanded:i,onChange:h},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),d.default.createElement(l,{expanded:i,onClick:p}),d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&d.default.createElement(d.default.Fragment,null,Object.entries(t).map(([g,y])=>d.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},d.default.createElement(f,{name:g,schema:y}))))))))},fV=({schema:e})=>e!=null&&e.$comment?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$comment)):null,dV=({schema:e})=>{const t=(e==null?void 0:e.allOf)||[],r=Vt(),n="allOf",{path:i}=Sn(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(n),[u,c]=pi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=je("JSONSchema"),p=je("KeywordType"),g=(0,d.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,d.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return Array.isArray(t)&&t.length!==0?d.default.createElement(qn.Provider,{value:i},d.default.createElement(_i.Provider,{value:c},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":u},d.default.createElement(l,{expanded:s,onChange:g},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),d.default.createElement(f,{expanded:s,onClick:y}),d.default.createElement(p,{schema:{allOf:t}}),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&d.default.createElement(d.default.Fragment,null,t.map((v,E)=>d.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},d.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v})))))))):null},pV=({schema:e})=>{const t=(e==null?void 0:e.anyOf)||[],r=Vt(),n="anyOf",{path:i}=Sn(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(n),[u,c]=pi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=je("JSONSchema"),p=je("KeywordType"),g=(0,d.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,d.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return Array.isArray(t)&&t.length!==0?d.default.createElement(qn.Provider,{value:i},d.default.createElement(_i.Provider,{value:c},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":u},d.default.createElement(l,{expanded:s,onChange:g},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),d.default.createElement(f,{expanded:s,onClick:y}),d.default.createElement(p,{schema:{anyOf:t}}),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&d.default.createElement(d.default.Fragment,null,t.map((v,E)=>d.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},d.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v})))))))):null},hV=({schema:e})=>{const t=(e==null?void 0:e.oneOf)||[],r=Vt(),n="oneOf",{path:i}=Sn(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(n),[u,c]=pi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=je("JSONSchema"),p=je("KeywordType"),g=(0,d.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,d.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return Array.isArray(t)&&t.length!==0?d.default.createElement(qn.Provider,{value:i},d.default.createElement(_i.Provider,{value:c},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":u},d.default.createElement(l,{expanded:s,onChange:g},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),d.default.createElement(f,{expanded:s,onClick:y}),d.default.createElement(p,{schema:{oneOf:t}}),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&d.default.createElement(d.default.Fragment,null,t.map((v,E)=>d.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},d.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v})))))))):null},mV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"not"))return null;const n=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},d.default.createElement(r,{name:n,schema:e.not,identifier:"not"}))},gV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"if"))return null;const n=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},d.default.createElement(r,{name:n,schema:e.if,identifier:"if"}))},yV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"then"))return null;const n=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},d.default.createElement(r,{name:n,schema:e.then,identifier:"then"}))},vV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"else"))return null;const n=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},d.default.createElement(r,{name:n,schema:e.else,identifier:"else"}))},bV=({schema:e})=>{const t=(e==null?void 0:e.dependentSchemas)||[],r="dependentSchemas",{path:n}=Sn(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ui(r),[o,u]=pi(),c=je("Accordion"),l=je("ExpandDeepButton"),f=je("JSONSchema"),h=(0,d.useCallback)(()=>{i?a():s()},[i,s,a]),p=(0,d.useCallback)((g,y)=>{y?s({deep:!0}):a({deep:!0})},[s,a]);return typeof t!="object"||Object.keys(t).length===0?null:d.default.createElement(qn.Provider,{value:n},d.default.createElement(_i.Provider,{value:u},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":o},d.default.createElement(c,{expanded:i,onChange:h},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),d.default.createElement(l,{expanded:i,onClick:p}),d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&d.default.createElement(d.default.Fragment,null,Object.entries(t).map(([g,y])=>d.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},d.default.createElement(f,{name:g,schema:y}))))))))},_V=({schema:e})=>{const t=(e==null?void 0:e.prefixItems)||[],r=Vt(),n="prefixItems",{path:i}=Sn(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(n),[u,c]=pi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=je("JSONSchema"),p=je("KeywordType"),g=(0,d.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,d.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return Array.isArray(t)&&t.length!==0?d.default.createElement(qn.Provider,{value:i},d.default.createElement(_i.Provider,{value:c},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":u},d.default.createElement(l,{expanded:s,onChange:g},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),d.default.createElement(f,{expanded:s,onClick:y}),d.default.createElement(p,{schema:{prefixItems:t}}),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&d.default.createElement(d.default.Fragment,null,t.map((v,E)=>d.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},d.default.createElement(h,{name:`#${E} ${r.getTitle(v)}`,schema:v})))))))):null},EV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"items"))return null;const n=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},d.default.createElement(r,{name:n,schema:e.items,identifier:"items"}))},SV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"contains"))return null;const n=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},d.default.createElement(r,{name:n,schema:e.contains,identifier:"contains"}))},wV=({schema:e})=>{const t=Vt(),r=(e==null?void 0:e.properties)||{},n=Array.isArray(e==null?void 0:e.required)?e.required:[],i=je("JSONSchema"),{path:s}=Sn("properties");return Object.keys(r).length===0?null:d.default.createElement(qn.Provider,{value:s},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},d.default.createElement("ul",null,Object.entries(r).map(([a,o])=>{const u=n.includes(a),c=t.getDependentRequired(a,e);return d.default.createElement("li",{key:a,className:(0,Ot.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":u})},d.default.createElement(i,{name:a,schema:o,dependentRequired:c}))}))))},xV=({schema:e})=>{const t=(e==null?void 0:e.patternProperties)||{},r=je("JSONSchema"),{path:n}=Sn("patternProperties");return Object.keys(t).length===0?null:d.default.createElement(qn.Provider,{value:n},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},d.default.createElement("ul",null,Object.entries(t).map(([i,s])=>d.default.createElement("li",{key:i,className:"json-schema-2020-12-property"},d.default.createElement(r,{name:i,schema:s}))))))},AV=({schema:e})=>{const t=Vt(),{additionalProperties:r}=e,n=je("JSONSchema");if(!t.hasKeyword(e,"additionalProperties"))return null;const i=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},r===!0?d.default.createElement(d.default.Fragment,null,i,d.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):r===!1?d.default.createElement(d.default.Fragment,null,i,d.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):d.default.createElement(n,{name:i,schema:r,identifier:"additionalProperties"}))},OV=({schema:e})=>{const t=Vt(),{propertyNames:r}=e,n=je("JSONSchema"),i=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return t.hasKeyword(e,"propertyNames")?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},d.default.createElement(n,{name:i,schema:r,identifier:"propertyNames"})):null},CV=({schema:e})=>{const t=Vt(),{unevaluatedItems:r}=e,n=je("JSONSchema");if(!t.hasKeyword(e,"unevaluatedItems"))return null;const i=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},d.default.createElement(n,{name:i,schema:r,identifier:"unevaluatedItems"}))},RV=({schema:e})=>{const t=Vt(),{unevaluatedProperties:r}=e,n=je("JSONSchema");if(!t.hasKeyword(e,"unevaluatedProperties"))return null;const i=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},d.default.createElement(n,{name:i,schema:r,identifier:"unevaluatedProperties"}))},TV=({schema:e,isCircular:t=!1})=>{const r=Vt().getType(e),n=t?" [circular]":"";return d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},IV=({schema:e})=>{const t=je("JSONViewer");return Array.isArray(e==null?void 0:e.enum)?d.default.createElement(t,{name:"Enum",value:e.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},jV=({schema:e})=>{const t=Vt(),r=je("JSONViewer");return t.hasKeyword(e,"const")?d.default.createElement(r,{name:"Const",value:e.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null};const nxe=({constraint:e})=>d.default.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${e.scope}`},e.value);var kV=d.default.memo(nxe),PV=({dependentRequired:e})=>e.length===0?null:d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),d.default.createElement("ul",null,e.map(t=>d.default.createElement("li",{key:t},d.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},t))))),NV=({schema:e})=>{const t=Vt(),r=je("JSONSchema");if(!t.hasKeyword(e,"contentSchema"))return null;const n=d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},d.default.createElement(r,{name:n,schema:e.contentSchema,identifier:"contentSchema"}))},MV=({title:e="",schema:t})=>{const r=Vt(),n=e||r.getTitle(t);return n?d.default.createElement("div",{className:"json-schema-2020-12__title"},n):null},DV=({schema:e})=>e!=null&&e.description?d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},d.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},e.description)):null,qV=({schema:e})=>{const t=Vt(),r=je("JSONViewer");return t.hasKeyword(e,"default")?d.default.createElement(r,{name:"Default",value:e.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},$V=({schema:e})=>(e==null?void 0:e.deprecated)!==!0?null:d.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),FV=({schema:e})=>(e==null?void 0:e.readOnly)!==!0?null:d.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),LV=({schema:e})=>(e==null?void 0:e.writeOnly)!==!0?null:d.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),BV=({schema:e})=>{const t=(e==null?void 0:e.examples)||[],r=je("JSONViewer");return Array.isArray(t)&&t.length!==0?d.default.createElement(r,{name:"Examples",value:e.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},UV=({schema:e})=>{const t=Vt(),r="ExtensionKeywords",{path:n}=Sn(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ui(r),[o,u]=pi(),c=je("Accordion"),l=je("ExpandDeepButton"),f=je("JSONViewer"),{showExtensionKeywords:h}=yR(),p=t.getExtensionKeywords(e),g=(0,d.useCallback)(()=>{i?a():s()},[i,s,a]),y=(0,d.useCallback)((v,E)=>{E?s({deep:!0}):a({deep:!0})},[s,a]);return h&&p.length!==0?d.default.createElement(qn.Provider,{value:n},d.default.createElement(_i.Provider,{value:u},d.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":o},d.default.createElement(c,{expanded:i,onChange:g},d.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),d.default.createElement(l,{expanded:i,onClick:y}),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&d.default.createElement(d.default.Fragment,null,p.map(v=>d.default.createElement(f,{key:v,name:v,value:e[v],className:"json-schema-2020-12-json-viewer-extension-keyword"}))))))):null};const VV=e=>typeof e=="string"?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,zV=e=>(t,{lookup:r="extended"}={})=>{const n=e();if((t==null?void 0:t.title)!=null)return n.upperFirst(String(t.title));if(r==="extended"){if((t==null?void 0:t.$anchor)!=null)return n.upperFirst(String(t.$anchor));if((t==null?void 0:t.$id)!=null)return String(t.$id)}return""},WV=e=>{const t=(r,n=new WeakSet)=>{const i=e();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 f=a.map(p=>t(p,n)),h=o?t(o,n):"any";return`array<[${f.join(", ")}], ${h}>`}return o?`array<${t(o,n)}>`:"array<any>"};if(r.not&&t(r.not)==="any")return"never";const c=(f,h)=>Array.isArray(r[f])?`(${r[f].map(p=>t(p,n)).join(h)})`:null,l=[Array.isArray(s)?s.map(f=>f==="array"?u():f).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"))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})(),c("oneOf"," | "),c("anyOf"," | "),c("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),l||"any"};return t},JV=e=>typeof e=="boolean",KV=(e,t)=>e!==null&&typeof e=="object"&&Object.hasOwn(e,t),HV=e=>t=>{const r=e();return(t==null?void 0:t.$schema)||(t==null?void 0:t.$vocabulary)||(t==null?void 0:t.$id)||(t==null?void 0:t.$anchor)||(t==null?void 0:t.$dynamicAnchor)||(t==null?void 0:t.$ref)||(t==null?void 0:t.$dynamicRef)||(t==null?void 0:t.$defs)||(t==null?void 0:t.$comment)||(t==null?void 0:t.allOf)||(t==null?void 0:t.anyOf)||(t==null?void 0:t.oneOf)||r.hasKeyword(t,"not")||r.hasKeyword(t,"if")||r.hasKeyword(t,"then")||r.hasKeyword(t,"else")||(t==null?void 0:t.dependentSchemas)||(t==null?void 0:t.prefixItems)||r.hasKeyword(t,"items")||r.hasKeyword(t,"contains")||(t==null?void 0:t.properties)||(t==null?void 0:t.patternProperties)||r.hasKeyword(t,"additionalProperties")||r.hasKeyword(t,"propertyNames")||r.hasKeyword(t,"unevaluatedItems")||r.hasKeyword(t,"unevaluatedProperties")||(t==null?void 0:t.description)||(t==null?void 0:t.enum)||r.hasKeyword(t,"const")||r.hasKeyword(t,"contentSchema")||r.hasKeyword(t,"default")||(t==null?void 0:t.examples)||r.getExtensionKeywords(t).length>0},GV=e=>e===null||["number","bigint","boolean"].includes(typeof e)?String(e):Array.isArray(e)?`[${e.map(GV).join(", ")}]`:JSON.stringify(e),ud=(e,t,r)=>{const n=typeof t=="number",i=typeof r=="number";return n&&i?t===r?`${t} ${e}`:`[${t}, ${r}] ${e}`:n?`>= ${t} ${e}`:i?`<= ${r} ${e}`:null},ixe=e=>{const t=[],r=(u=>{if(typeof(u==null?void 0:u.multipleOf)!="number"||u.multipleOf<=0||u.multipleOf===1)return null;const{multipleOf:c}=u;if(Number.isInteger(c))return`multiple of ${c}`;const l=10**c.toString().split(".")[1].length;return`multiple of ${c*l}/${l}`})(e);r!==null&&t.push({scope:"number",value:r});const n=(u=>{const c=u==null?void 0:u.minimum,l=u==null?void 0:u.maximum,f=u==null?void 0:u.exclusiveMinimum,h=u==null?void 0:u.exclusiveMaximum,p=typeof c=="number",g=typeof l=="number",y=typeof f=="number",v=typeof h=="number",E=y&&(!p||c<f),b=v&&(!g||l>h);return(p||y)&&(g||v)?`${E?"(":"["}${E?f:c}, ${b?h:l}${b?")":"]"}`:p||y?`${E?">":"≥"} ${E?f:c}`:g||v?`${b?"<":"≤"} ${b?h:l}`:null})(e);n!==null&&t.push({scope:"number",value:n}),e!=null&&e.format&&t.push({scope:"string",value:e.format});const i=ud("characters",e==null?void 0:e.minLength,e==null?void 0:e.maxLength);i!==null&&t.push({scope:"string",value:i}),e!=null&&e.pattern&&t.push({scope:"string",value:`matches ${e==null?void 0:e.pattern}`}),e!=null&&e.contentMediaType&&t.push({scope:"string",value:`media type: ${e.contentMediaType}`}),e!=null&&e.contentEncoding&&t.push({scope:"string",value:`encoding: ${e.contentEncoding}`});const s=ud(e!=null&&e.uniqueItems?"unique items":"items",e==null?void 0:e.minItems,e==null?void 0:e.maxItems);s!==null&&t.push({scope:"array",value:s}),e!=null&&e.uniqueItems&&!s&&t.push({scope:"array",value:"unique"});const a=ud("contained items",e==null?void 0:e.minContains,e==null?void 0:e.maxContains);a!==null&&t.push({scope:"array",value:a});const o=ud("properties",e==null?void 0:e.minProperties,e==null?void 0:e.maxProperties);return o!==null&&t.push({scope:"object",value:o}),t},sxe=(e,t)=>t!=null&&t.dependentRequired?Array.from(Object.entries(t.dependentRequired).reduce((r,[n,i])=>(Array.isArray(i)&&i.includes(e)&&r.add(n),r),new Set)):[],YV=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),XV=()=>["$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"],ZV=e=>t=>{const r=e().getSchemaKeywords();return YV(t)?((n,i)=>{const s=new Set(i);return n.filter(a=>!s.has(a))})(Object.keys(t),r):[]},RA=({name:e,value:t,className:r})=>{const n=Vt(),{path:i}=Sn(e),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ui(e),[u,c]=pi(),l=je("Accordion"),f=je("ExpandDeepButton"),h=typeof t=="string"||typeof t=="number"||typeof t=="bigint"||typeof t=="boolean"||typeof t=="symbol"||t==null,p=(v=>YV(v)&&Object.keys(v).length===0)(t)||(v=>Array.isArray(v)&&v.length===0)(t),g=(0,d.useCallback)(()=>{s?o():a()},[s,a,o]),y=(0,d.useCallback)((v,E)=>{E?a({deep:!0}):o({deep:!0})},[a,o]);return h?d.default.createElement("div",{className:(0,Ot.default)("json-schema-2020-12-json-viewer",r)},d.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),d.default.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(t))):p?d.default.createElement("div",{className:(0,Ot.default)("json-schema-2020-12-json-viewer",r)},d.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"empty array":"empty object")):d.default.createElement(qn.Provider,{value:i},d.default.createElement(_i.Provider,{value:c},d.default.createElement("div",{className:(0,Ot.default)("json-schema-2020-12-json-viewer",r),"data-json-schema-level":u},d.default.createElement(l,{expanded:s,onChange:g},d.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e)),d.default.createElement(f,{expanded:s,onClick:y}),d.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"array":"object"),d.default.createElement("ul",{className:(0,Ot.default)("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!s})},s&&d.default.createElement(d.default.Fragment,null,Array.isArray(t)?t.map((v,E)=>d.default.createElement("li",{key:`#${E}`,className:"json-schema-2020-12-property"},d.default.createElement(RA,{name:`#${E}`,value:v,className:r}))):Object.entries(t).map(([v,E])=>d.default.createElement("li",{key:v,className:"json-schema-2020-12-property"},d.default.createElement(RA,{name:v,value:E,className:r}))))))))};var QV=RA,ez=({expanded:e=!1,children:t,onChange:r})=>{const n=je("ChevronRightIcon"),i=(0,d.useCallback)(s=>{r(s,!e)},[e,r]);return d.default.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:i},d.default.createElement("div",{className:"json-schema-2020-12-accordion__children"},t),d.default.createElement("span",{className:(0,Ot.default)("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":e,"json-schema-2020-12-accordion__icon--collapsed":!e})},d.default.createElement(n,null)))},tz=({expanded:e,onClick:t})=>{const r=(0,d.useCallback)(n=>{t(n,!e)},[e,t]);return d.default.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},e?"Collapse all":"Expand all")},rz=()=>d.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},d.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const nz=(e,t={})=>{const r={components:{JSONSchema:rV,Keyword$schema:nV,Keyword$vocabulary:iV,Keyword$id:sV,Keyword$anchor:aV,Keyword$dynamicAnchor:oV,Keyword$ref:uV,Keyword$dynamicRef:cV,Keyword$defs:lV,Keyword$comment:fV,KeywordAllOf:dV,KeywordAnyOf:pV,KeywordOneOf:hV,KeywordNot:mV,KeywordIf:gV,KeywordThen:yV,KeywordElse:vV,KeywordDependentSchemas:bV,KeywordPrefixItems:_V,KeywordItems:EV,KeywordContains:SV,KeywordProperties:wV,KeywordPatternProperties:xV,KeywordAdditionalProperties:AV,KeywordPropertyNames:OV,KeywordUnevaluatedItems:CV,KeywordUnevaluatedProperties:RV,KeywordType:TV,KeywordEnum:IV,KeywordConst:jV,KeywordConstraint:kV,KeywordDependentRequired:PV,KeywordContentSchema:NV,KeywordTitle:MV,KeywordDescription:DV,KeywordDefault:qV,KeywordDeprecated:$V,KeywordReadOnly:FV,KeywordWriteOnly:LV,KeywordExamples:BV,ExtensionKeywords:UV,JSONViewer:QV,Accordion:ez,ExpandDeepButton:tz,ChevronRightIcon:rz,...t.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...t.config},fn:{upperFirst:VV,getTitle:zV(Vt),getType:WV(Vt),isBooleanJSONSchema:JV,hasKeyword:KV,isExpandable:HV(Vt),stringify:GV,stringifyConstraints:ixe,getDependentRequired:sxe,getSchemaKeywords:XV,getExtensionKeywords:ZV(Vt),...t.fn},state:{paths:{}}},n=i=>d.default.createElement(Za.Provider,{value:r},d.default.createElement(e,i));return n.contexts={JSONSchemaContext:Za},n.displayName=e.displayName,n},axe=({getSystem:e})=>(t,r={})=>{const{getComponent:n,getConfigs:i}=e(),s=i(),a=n("JSONSchema202012"),o=n("JSONSchema202012Keyword$schema"),u=n("JSONSchema202012Keyword$vocabulary"),c=n("JSONSchema202012Keyword$id"),l=n("JSONSchema202012Keyword$anchor"),f=n("JSONSchema202012Keyword$dynamicAnchor"),h=n("JSONSchema202012Keyword$ref"),p=n("JSONSchema202012Keyword$dynamicRef"),g=n("JSONSchema202012Keyword$defs"),y=n("JSONSchema202012Keyword$comment"),v=n("JSONSchema202012KeywordAllOf"),E=n("JSONSchema202012KeywordAnyOf"),b=n("JSONSchema202012KeywordOneOf"),S=n("JSONSchema202012KeywordNot"),x=n("JSONSchema202012KeywordIf"),_=n("JSONSchema202012KeywordThen"),A=n("JSONSchema202012KeywordElse"),C=n("JSONSchema202012KeywordDependentSchemas"),T=n("JSONSchema202012KeywordPrefixItems"),O=n("JSONSchema202012KeywordItems"),M=n("JSONSchema202012KeywordContains"),k=n("JSONSchema202012KeywordProperties"),D=n("JSONSchema202012KeywordPatternProperties"),P=n("JSONSchema202012KeywordAdditionalProperties"),H=n("JSONSchema202012KeywordPropertyNames"),X=n("JSONSchema202012KeywordUnevaluatedItems"),V=n("JSONSchema202012KeywordUnevaluatedProperties"),G=n("JSONSchema202012KeywordType"),Q=n("JSONSchema202012KeywordEnum"),Z=n("JSONSchema202012KeywordConst"),B=n("JSONSchema202012KeywordConstraint"),J=n("JSONSchema202012KeywordDependentRequired"),ee=n("JSONSchema202012KeywordContentSchema"),ne=n("JSONSchema202012KeywordTitle"),ae=n("JSONSchema202012KeywordDescription"),Y=n("JSONSchema202012KeywordDefault"),F=n("JSONSchema202012KeywordDeprecated"),L=n("JSONSchema202012KeywordReadOnly"),ue=n("JSONSchema202012KeywordWriteOnly"),de=n("JSONSchema202012KeywordExamples"),Ae=n("JSONSchema202012ExtensionKeywords"),Ne=n("JSONSchema202012JSONViewer"),ce=n("JSONSchema202012Accordion"),Re=n("JSONSchema202012ExpandDeepButton"),ze=n("JSONSchema202012ChevronRightIcon");return nz(t,{components:{JSONSchema:a,Keyword$schema:o,Keyword$vocabulary:u,Keyword$id:c,Keyword$anchor:l,Keyword$dynamicAnchor:f,Keyword$ref:h,Keyword$dynamicRef:p,Keyword$defs:g,Keyword$comment:y,KeywordAllOf:v,KeywordAnyOf:E,KeywordOneOf:b,KeywordNot:S,KeywordIf:x,KeywordThen:_,KeywordElse:A,KeywordDependentSchemas:C,KeywordPrefixItems:T,KeywordItems:O,KeywordContains:M,KeywordProperties:k,KeywordPatternProperties:D,KeywordAdditionalProperties:P,KeywordPropertyNames:H,KeywordUnevaluatedItems:X,KeywordUnevaluatedProperties:V,KeywordType:G,KeywordEnum:Q,KeywordConst:Z,KeywordConstraint:B,KeywordDependentRequired:J,KeywordContentSchema:ee,KeywordTitle:ne,KeywordDescription:ae,KeywordDefault:Y,KeywordDeprecated:F,KeywordReadOnly:L,KeywordWriteOnly:ue,KeywordExamples:de,ExtensionKeywords:Ae,JSONViewer:Ne,Accordion:ce,ExpandDeepButton:Re,ChevronRightIcon:ze,...r.components},config:{showExtensionKeywords:s.showExtensions,...r.config},fn:{...r.fn}})};var iz=({getSystem:e,fn:t})=>{const r=()=>({upperFirst:t.upperFirst,...t.jsonSchema202012});return{components:{JSONSchema202012:rV,JSONSchema202012Keyword$schema:nV,JSONSchema202012Keyword$vocabulary:iV,JSONSchema202012Keyword$id:sV,JSONSchema202012Keyword$anchor:aV,JSONSchema202012Keyword$dynamicAnchor:oV,JSONSchema202012Keyword$ref:uV,JSONSchema202012Keyword$dynamicRef:cV,JSONSchema202012Keyword$defs:lV,JSONSchema202012Keyword$comment:fV,JSONSchema202012KeywordAllOf:dV,JSONSchema202012KeywordAnyOf:pV,JSONSchema202012KeywordOneOf:hV,JSONSchema202012KeywordNot:mV,JSONSchema202012KeywordIf:gV,JSONSchema202012KeywordThen:yV,JSONSchema202012KeywordElse:vV,JSONSchema202012KeywordDependentSchemas:bV,JSONSchema202012KeywordPrefixItems:_V,JSONSchema202012KeywordItems:EV,JSONSchema202012KeywordContains:SV,JSONSchema202012KeywordProperties:wV,JSONSchema202012KeywordPatternProperties:xV,JSONSchema202012KeywordAdditionalProperties:AV,JSONSchema202012KeywordPropertyNames:OV,JSONSchema202012KeywordUnevaluatedItems:CV,JSONSchema202012KeywordUnevaluatedProperties:RV,JSONSchema202012KeywordType:TV,JSONSchema202012KeywordEnum:IV,JSONSchema202012KeywordConst:jV,JSONSchema202012KeywordConstraint:kV,JSONSchema202012KeywordDependentRequired:PV,JSONSchema202012KeywordContentSchema:NV,JSONSchema202012KeywordTitle:MV,JSONSchema202012KeywordDescription:DV,JSONSchema202012KeywordDefault:qV,JSONSchema202012KeywordDeprecated:$V,JSONSchema202012KeywordReadOnly:FV,JSONSchema202012KeywordWriteOnly:LV,JSONSchema202012KeywordExamples:BV,JSONSchema202012ExtensionKeywords:UV,JSONSchema202012JSONViewer:QV,JSONSchema202012Accordion:ez,JSONSchema202012ExpandDeepButton:tz,JSONSchema202012ChevronRightIcon:rz,withJSONSchema202012Context:nz,withJSONSchema202012SystemContext:axe(e()),JSONSchema202012PathContext:()=>qn,JSONSchema202012LevelContext:()=>_i},fn:{upperFirst:VV,jsonSchema202012:{getTitle:zV(r),getType:WV(r),isExpandable:HV(r),isBooleanJSONSchema:JV,hasKeyword:KV,useFn:Vt,useConfig:yR,useComponent:je,useIsExpanded:Ui,usePath:Sn,useLevel:pi,getSchemaKeywords:XV,getExtensionKeywords:ZV(r)}}}},jm=function(e){var t={};return me.d(t,e),t}({default:function(){return Yye}}),oxe=(e,{sample:t})=>((r,n={})=>{const{minItems:i,maxItems:s,uniqueItems:a}=n,{contains:o,minContains:u,maxContains:c}=n;let l=[...r];if(o!=null&&typeof o=="object"&&Number.isInteger(u)&&u>1){const f=l.at(0);for(let h=1;h<u;h+=1)l.unshift(f)}if(Number.isInteger(s)&&s>0&&(l=r.slice(0,s)),Number.isInteger(i)&&i>0)for(let f=0;l.length<i;f+=1)l.push(l[f%l.length]);return a===!0&&(l=Array.from(new Set(l))),l})(t,e),uxe=()=>{throw new Error("Not implemented")};const km=e=>Uo()(e),wd=e=>e.at(0),$a=e=>typeof e=="boolean",Ri=e=>(0,jm.default)(e),ws=e=>$a(e)||Ri(e);var Pm=class{constructor(){z(this,"data",{})}register(t,r){this.data[t]=r}unregister(t){t===void 0?this.data={}:delete this.data[t]}get(t){return this.data[t]}},sz=()=>2**30>>>0,az=()=>2**53-1,cxe=()=>.1,lxe=()=>.1,fxe=()=>"user@example.com",dxe=()=>"실례@example.com",pxe=()=>"example.com",hxe=()=>"실례.com",mxe=()=>"198.51.100.42",gxe=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",yxe=()=>"https://example.com/",vxe=()=>"path/index.html",bxe=()=>"https://실례.com/",_xe=()=>"path/실례.html",Exe=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",Sxe=()=>"https://example.com/dictionary/{term:1}/{term}",wxe=()=>"/a/b/c",xxe=()=>"1/0",Axe=()=>new Date().toISOString(),Oxe=()=>new Date().toISOString().substring(0,10),Cxe=()=>new Date().toISOString().substring(11),Rxe=()=>"P3D",Txe=()=>"********",Ixe=()=>"^[a-z]+$",zc,cL;const xd=new(cL=class extends Pm{constructor(){super(...arguments);Co(this,zc,{int32:sz,int64:az,float:cxe,double:lxe,email:fxe,"idn-email":dxe,hostname:pxe,"idn-hostname":hxe,ipv4:mxe,ipv6:gxe,uri:yxe,"uri-reference":vxe,iri:bxe,"iri-reference":_xe,uuid:Exe,"uri-template":Sxe,"json-pointer":wxe,"relative-json-pointer":xxe,"date-time":Axe,date:Oxe,time:Cxe,duration:Rxe,password:Txe,regex:Ixe});z(this,"data",{...xi(this,zc)})}get defaults(){return{...xi(this,zc)}}},zc=new WeakMap,cL),oz=(e,t)=>typeof t=="function"?xd.register(e,t):t===null?xd.unregister(e):xd.get(e);oz.getDefaults=()=>xd.defaults;var Nm=oz,jxe=me(287).Buffer,kxe=e=>jxe.from(e).toString("ascii"),Pxe=me(287).Buffer,Nxe=e=>Pxe.from(e).toString("utf8"),Mxe=me(287).Buffer,Dxe=e=>Mxe.from(e).toString("binary"),qxe=e=>{let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r);if(n===61)t+="=3D";else if(n>=33&&n<=60||n>=62&&n<=126||n===9||n===32)t+=e.charAt(r);else if(n===13||n===10)t+=`\r
308
+ `;else if(n>126){const i=unescape(encodeURIComponent(e.charAt(r)));for(let s=0;s<i.length;s++)t+="="+("0"+i.charCodeAt(s).toString(16)).slice(-2).toUpperCase()}else t+="="+("0"+n.toString(16)).slice(-2).toUpperCase()}return t},$xe=me(287).Buffer,Fxe=e=>$xe.from(e).toString("hex"),Lxe=me(287).Buffer,Bxe=e=>{const t=Lxe.from(e).toString("utf8"),r="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";let n=0,i="",s=0,a=0;for(let o=0;o<t.length;o++)for(s=s<<8|t.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*t.length%5)%5);for(let o=0;o<n;o++)i+="=";return i},Uxe=me(287).Buffer,Vxe=e=>Uxe.from(e).toString("base64"),zxe=me(287).Buffer,Wxe=e=>zxe.from(e).toString("base64url"),Wc,lL;const Ad=new(lL=class extends Pm{constructor(){super(...arguments);Co(this,Wc,{"7bit":kxe,"8bit":Nxe,binary:Dxe,"quoted-printable":qxe,base16:Fxe,base32:Bxe,base64:Vxe,base64url:Wxe});z(this,"data",{...xi(this,Wc)})}get defaults(){return{...xi(this,Wc)}}},Wc=new WeakMap,lL),uz=(e,t)=>typeof t=="function"?Ad.register(e,t):t===null?Ad.unregister(e):Ad.get(e);uz.getDefaults=()=>Ad.defaults;var cz=uz,Jxe={"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"},Kxe={"image/*":()=>km(25).toString("binary")},Hxe={"audio/*":()=>km(25).toString("binary")},Gxe={"video/*":()=>km(25).toString("binary")},Yxe={"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/*":()=>km(25).toString("binary")},Jc,fL;const Do=new(fL=class extends Pm{constructor(){super(...arguments);Co(this,Jc,{...Jxe,...Kxe,...Hxe,...Gxe,...Yxe});z(this,"data",{...xi(this,Jc)})}get defaults(){return{...xi(this,Jc)}}},Jc=new WeakMap,fL),lz=(e,t)=>{if(typeof t=="function")return Do.register(e,t);if(t===null)return Do.unregister(e);const r=e.split(";").at(0),n=`${r.split("/").at(0)}/*`;return Do.get(e)||Do.get(r)||Do.get(n)};lz.getDefaults=()=>Do.defaults;var fz=lz;const ow=(e,t={})=>{const{maxLength:r,minLength:n}=t;let i=e;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 Xxe=(e,{sample:t}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:i}=e,{pattern:s,format:a}=e,o=cz(r)||b7.default;let u;return u=typeof s=="string"?ow((c=>{try{return new FU.default(c).gen()}catch{return"string"}})(s),e):typeof a=="string"?(c=>{const{format:l}=c,f=Nm(l);return typeof f=="function"?f(c):"string"})(e):ws(i)&&typeof n=="string"&&t!==void 0?Array.isArray(t)||typeof t=="object"?JSON.stringify(t):ow(String(t),e):typeof n=="string"?(c=>{const{contentMediaType:l}=c,f=fz(l);return typeof f=="function"?f(c):"string"})(e):ow("string",e),o(u)};const dz=(e,t={})=>{const{minimum:r,maximum:n,exclusiveMinimum:i,exclusiveMaximum:s}=t,{multipleOf:a}=t,o=Number.isInteger(e)?1:Number.EPSILON;let u=typeof r=="number"?r:null,c=typeof n=="number"?n:null,l=e;if(typeof i=="number"&&(u=u!==null?Math.max(u,i+o):i+o),typeof s=="number"&&(c=c!==null?Math.min(c,s-o):s-o),l=u>c&&e||u||c||l,typeof a=="number"&&a>0){const f=l%a;l=f===0?l:l+a-f}return l};var Zxe=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=Nm(i);return typeof s=="function"?s(n):0})(e):0,dz(r,e)},Qxe=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=Nm(i);if(typeof s=="function")return s(n);switch(i){case"int32":return sz();case"int64":return az()}return 0})(e):0,dz(r,e)},eAe=e=>typeof e.default!="boolean"||e.default,cd=new Proxy({array:oxe,object:uxe,string:Xxe,number:Zxe,integer:Qxe,boolean:eAe,null:()=>null},{get:(e,t)=>typeof t=="string"&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`});const rL=["array","object","number","integer","string","boolean","null"],fc=e=>{if(!Ri(e))return!1;const{examples:t,example:r,default:n}=e;return!!(Array.isArray(t)&&t.length>=1)||n!==void 0||r!==void 0},TA=e=>{if(!Ri(e))return null;const{examples:t,example:r,default:n}=e;return Array.isArray(t)&&t.length>=1?t.at(0):n!==void 0?n:r!==void 0?r:void 0},ap={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"]};ap.number=ap.integer;const uw="string",nL=e=>e===void 0?null:e===null?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e,Od=e=>{if(Array.isArray(e)&&e.length>=1){if(e.includes("array"))return"array";if(e.includes("object"))return"object";{const t=wd(e);if(rL.includes(t))return t}}return rL.includes(e)?e:null},IA=(e,t=new WeakSet)=>{if(!Ri(e)||t.has(e))return uw;t.add(e);let{type:r,const:n}=e;if(r=Od(r),typeof r!="string"){const i=Object.keys(ap);e:for(let s=0;s<i.length;s+=1){const a=i[s],o=ap[a];for(let u=0;u<o.length;u+=1){const c=o[u];if(Object.hasOwn(e,c)){r=a;break e}}}}if(typeof r!="string"&&n!==void 0){const i=nL(n);r=typeof i=="string"?i:r}if(typeof r!="string"){const i=c=>{if(Array.isArray(e[c])){const l=e[c].map(f=>IA(f,t));return Od(l)}return null},s=i("allOf"),a=i("anyOf"),o=i("oneOf"),u=e.not?IA(e.not,t):null;(s||a||o||u)&&(r=Od([s,a,o,u].filter(Boolean)))}if(typeof r!="string"&&fc(e)){const i=TA(e),s=nL(i);r=typeof s=="string"?s:r}return t.delete(e),r||uw},iL=e=>IA(e),cw=e=>$a(e)?(t=>t===!1?{not:{}}:{})(e):Ri(e)?e:{},dc=(e,t,r={})=>{if($a(e)&&e===!0)return!0;if($a(e)&&e===!1)return!1;if($a(t)&&t===!0)return!0;if($a(t)&&t===!1)return!1;if(!ws(e))return t;if(!ws(t))return e;const n={...t,...e};if(t.type&&e.type&&Array.isArray(t.type)&&typeof t.type=="string"){const i=_o(t.type).concat(e.type);n.type=Array.from(new Set(i))}if(Array.isArray(t.required)&&Array.isArray(e.required)&&(n.required=[...new Set([...e.required,...t.required])]),t.properties&&e.properties){const i=new Set([...Object.keys(t.properties),...Object.keys(e.properties)]);n.properties={};for(const s of i){const a=t.properties[s]||{},o=e.properties[s]||{};a.readOnly&&!r.includeReadOnly||a.writeOnly&&!r.includeWriteOnly?n.required=(n.required||[]).filter(u=>u!==s):n.properties[s]=dc(o,a,r)}}return ws(t.items)&&ws(e.items)&&(n.items=dc(e.items,t.items,r)),ws(t.contains)&&ws(e.contains)&&(n.contains=dc(e.contains,t.contains,r)),ws(t.contentSchema)&&ws(e.contentSchema)&&(n.contentSchema=dc(e.contentSchema,t.contentSchema,r)),n};var qo=dc;const Wr=(e,t={},r=void 0,n=!1)=>{var k,D,P,H,X,V,G,Q,Z;if(e==null&&r===void 0)return;typeof(e==null?void 0:e.toJS)=="function"&&(e=e.toJS()),e=cw(e);let i=r!==void 0||fc(e);const s=!i&&Array.isArray(e.oneOf)&&e.oneOf.length>0,a=!i&&Array.isArray(e.anyOf)&&e.anyOf.length>0;if(!i&&(s||a)){const B=cw(wd(s?e.oneOf:e.anyOf));!(e=qo(e,B,t)).xml&&B.xml&&(e.xml=B.xml),fc(e)&&fc(B)&&(i=!0)}const o={};let{xml:u,properties:c,additionalProperties:l,items:f,contains:h}=e||{},p=iL(e),{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:E,prefix:b,namespace:S}=u,x={};Object.hasOwn(e,"type")||(e.type=p),n&&(E=E||"notagname",v=(b?`${b}:`:"")+E,S)&&(o[b?`xmlns:${b}`:"xmlns"]=S),n&&(x[v]=[]);const _=qa(c);let A,C=0;const T=()=>Number.isInteger(e.maxProperties)&&e.maxProperties>0&&C>=e.maxProperties,O=B=>!(Number.isInteger(e.maxProperties)&&e.maxProperties>0)||!T()&&(!(J=>!Array.isArray(e.required)||e.required.length===0||!e.required.includes(J))(B)||e.maxProperties-C-(()=>{if(!Array.isArray(e.required)||e.required.length===0)return 0;let J=0;return n?e.required.forEach(ee=>J+=x[ee]===void 0?0:1):e.required.forEach(ee=>{var ne;J+=((ne=x[v])==null?void 0:ne.find(ae=>ae[ee]!==void 0))===void 0?0:1}),e.required.length-J})()>0);if(A=n?(B,J=void 0)=>{if(e&&_[B]){if(_[B].xml=_[B].xml||{},_[B].xml.attribute){const ne=Array.isArray(_[B].enum)?wd(_[B].enum):void 0;if(fc(_[B]))o[_[B].xml.name||B]=TA(_[B]);else if(ne!==void 0)o[_[B].xml.name||B]=ne;else{const ae=cw(_[B]),Y=iL(ae),F=_[B].xml.name||B;o[F]=cd[Y](ae)}return}_[B].xml.name=_[B].xml.name||B}else _[B]||l===!1||(_[B]={xml:{name:B}});let ee=Wr(_[B],t,J,n);O(B)&&(C++,Array.isArray(ee)?x[v]=x[v].concat(ee):x[v].push(ee))}:(B,J)=>{var ee;if(O(B)){if((0,jm.default)((ee=e.discriminator)==null?void 0:ee.mapping)&&e.discriminator.propertyName===B&&typeof e.$$ref=="string"){for(const ne in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[ne])!==-1){x[B]=ne;break}}else x[B]=Wr(_[B],t,J,n);C++}},i){let B;if(B=r!==void 0?r:TA(e),!n){if(typeof B=="number"&&p==="string")return`${B}`;if(typeof B!="string"||p==="string")return B;try{return JSON.parse(B)}catch{return B}}if(p==="array"){if(!Array.isArray(B)){if(typeof B=="string")return B;B=[B]}let J=[];return Ri(f)&&(f.xml=f.xml||u||{},f.xml.name=f.xml.name||u.name,J=B.map(ee=>Wr(f,t,ee,n))),Ri(h)&&(h.xml=h.xml||u||{},h.xml.name=h.xml.name||u.name,J=[Wr(h,t,void 0,n),...J]),J=cd.array(e,{sample:J}),u.wrapped?(x[v]=J,(0,es.default)(o)||x[v].push({_attr:o})):x=J,x}if(p==="object"){if(typeof B=="string")return B;for(const J in B)Object.hasOwn(B,J)&&((k=_[J])!=null&&k.readOnly&&!g||(D=_[J])!=null&&D.writeOnly&&!y||((H=(P=_[J])==null?void 0:P.xml)!=null&&H.attribute?o[_[J].xml.name||J]=B[J]:A(J,B[J])));return(0,es.default)(o)||x[v].push({_attr:o}),x}return x[v]=(0,es.default)(o)?B:[{_attr:o},B],x}if(p==="array"){let B=[];if(Ri(h))if(n&&(h.xml=h.xml||e.xml||{},h.xml.name=h.xml.name||u.name),Array.isArray(h.anyOf)){const{anyOf:J,...ee}=f;B.push(...h.anyOf.map(ne=>Wr(qo(ne,ee,t),t,void 0,n)))}else if(Array.isArray(h.oneOf)){const{oneOf:J,...ee}=f;B.push(...h.oneOf.map(ne=>Wr(qo(ne,ee,t),t,void 0,n)))}else{if(!(!n||n&&u.wrapped))return Wr(h,t,void 0,n);B.push(Wr(h,t,void 0,n))}if(Ri(f))if(n&&(f.xml=f.xml||e.xml||{},f.xml.name=f.xml.name||u.name),Array.isArray(f.anyOf)){const{anyOf:J,...ee}=f;B.push(...f.anyOf.map(ne=>Wr(qo(ne,ee,t),t,void 0,n)))}else if(Array.isArray(f.oneOf)){const{oneOf:J,...ee}=f;B.push(...f.oneOf.map(ne=>Wr(qo(ne,ee,t),t,void 0,n)))}else{if(!(!n||n&&u.wrapped))return Wr(f,t,void 0,n);B.push(Wr(f,t,void 0,n))}return B=cd.array(e,{sample:B}),n&&u.wrapped?(x[v]=B,(0,es.default)(o)||x[v].push({_attr:o}),x):B}if(p==="object"){for(let B in _)Object.hasOwn(_,B)&&((X=_[B])!=null&&X.deprecated||(V=_[B])!=null&&V.readOnly&&!g||(G=_[B])!=null&&G.writeOnly&&!y||A(B));if(n&&o&&x[v].push({_attr:o}),T())return x;if($a(l)&&l)n?x[v].push({additionalProp:"Anything can be here"}):x.additionalProp1={},C++;else if(Ri(l)){const B=l,J=Wr(B,t,void 0,n);if(n&&typeof((Q=B==null?void 0:B.xml)==null?void 0:Q.name)=="string"&&((Z=B==null?void 0:B.xml)==null?void 0:Z.name)!=="notagname")x[v].push(J);else{const ee=Number.isInteger(e.minProperties)&&e.minProperties>0&&C<e.minProperties?e.minProperties-C:3;for(let ne=1;ne<=ee;ne++){if(T())return x;if(n){const ae={};ae["additionalProp"+ne]=J.notagname,x[v].push(ae)}else x["additionalProp"+ne]=J;C++}}}return x}let M;if(e.const!==void 0)M=e.const;else if(e&&Array.isArray(e.enum))M=wd(_o(e.enum));else{const B=Ri(e.contentSchema)?Wr(e.contentSchema,t,void 0,n):void 0;M=cd[p](e,{sample:B})}return n?(x[v]=(0,es.default)(o)?M:[{_attr:o},M],x):M},pz=(e,t,r)=>{const n=Wr(e,t,r,!0);if(n)return typeof n=="string"?n:$U()(n,{declaration:!0,indent:" "})},hz=(e,t,r)=>Wr(e,t,r,!1),mz=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],tAe=vf(pz,mz),rAe=vf(hz,mz);var Kc,dL;const sL=new(dL=class extends Pm{constructor(){super(...arguments);Co(this,Kc,{});z(this,"data",{...xi(this,Kc)})}get defaults(){return{...xi(this,Kc)}}},Kc=new WeakMap,dL);var nAe=(e,t)=>(t!==void 0&&sL.register(e,t),sL.get(e));const iAe=[{when:/json/,shouldStringifyTypes:["string"]}],sAe=["object"];var aAe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.memoizedSampleFromSchema(t,r,i),o=typeof a,u=iAe.reduce((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c,sAe);return(0,uU.default)(u,c=>c===o)?JSON.stringify(a,null,2):a},oAe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.getJsonSampleSchema(t,r,n,i);let o;try{o=Os.default.dump(Os.default.load(a),{lineWidth:-1},{schema:Os.JSON_SCHEMA}),o[o.length-1]===`
309
+ `&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},uAe=e=>(t,r,n)=>{const{fn:i}=e();if(t&&!t.xml&&(t.xml={}),t&&!t.xml.name){if(!t.$$ref&&(t.type||t.items||t.properties||t.additionalProperties))return`<?xml version="1.0" encoding="UTF-8"?>
310
+ <!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let s=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=s[1]}}return i.jsonSchema202012.memoizedCreateXMLExample(t,r,n)},cAe=e=>(t,r="",n={},i=void 0)=>{const{fn:s}=e();return typeof(t==null?void 0:t.toJS)=="function"&&(t=t.toJS()),typeof(i==null?void 0:i.toJS)=="function"&&(i=i.toJS()),/xml/.test(r)?s.jsonSchema202012.getXmlSampleSchema(t,n,i):/(yaml|yml)/.test(r)?s.jsonSchema202012.getYamlSampleSchema(t,n,r,i):s.jsonSchema202012.getJsonSampleSchema(t,n,r,i)},gz=({getSystem:e})=>{const t=aAe(e),r=oAe(e),n=uAe(e),i=cAe(e);return{fn:{jsonSchema202012:{sampleFromSchema:hz,sampleFromSchemaGeneric:Wr,sampleOptionAPI:nAe,sampleEncoderAPI:cz,sampleFormatAPI:Nm,sampleMediaTypeAPI:fz,createXMLExample:pz,memoizedSampleFromSchema:rAe,memoizedCreateXMLExample:tAe,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:qo,foldType:Od}}}};function yz(){return[G7,OA,iz,gz,Qwe]}var lAe=e=>()=>({fn:e.fn,components:e.components}),fAe=e=>{const t=Lc()({layout:{layout:e.layout,filter:e.filter},spec:{spec:"",url:e.url},requestSnippets:e.requestSnippets},e.initialState);if(e.initialState)for(const[r,n]of Object.entries(e.initialState))n===void 0&&delete t[r];return{system:{configs:e.configs},plugins:e.presets,state:t}},dAe=()=>e=>{const t=e.queryConfigEnabled?(()=>{const r=new URLSearchParams(Xt.location.search);return Object.fromEntries(r)})():{};return Object.entries(t).reduce((r,[n,i])=>(n==="config"?r.configUrl=i:n==="urls.primaryName"?r[n]=i:r=(0,f7.default)(r,n,i),r),{})},pAe=({url:e,system:t})=>async r=>{var i;if(!e)return{};if(typeof((i=t.configsActions)==null?void 0:i.getConfigByUrl)!="function")return{};const n=(()=>{const s={};return s.promise=new Promise((a,o)=>{s.resolve=a,s.reject=o}),s})();return t.configsActions.getConfigByUrl({url:e,loadRemoteConfig:!0,requestInterceptor:r.requestInterceptor,responseInterceptor:r.responseInterceptor},s=>{n.resolve(s)}),n.promise},hAe=()=>()=>{const e={};return globalThis.location&&(e.oauth2RedirectUrl=`${globalThis.location.protocol}//${globalThis.location.host}${globalThis.location.pathname.substring(0,globalThis.location.pathname.lastIndexOf("/"))}/oauth2-redirect.html`),e},fr=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:e=>(e.curlOptions=[],e),responseInterceptor:e=>e,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:[yz],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null}),mAe=function(e){var t={};return me.d(t,e),t}({default:function(){return eve}}),gAe=function(e){var t={};return me.d(t,e),t}({default:function(){return rve}}),lw=(e,t=[])=>Array.isArray(e)?e:t,si=(e,t=!1)=>e===!0||e==="true"||e===1||e==="1"||e!==!1&&e!=="false"&&e!==0&&e!=="0"&&t,yAe=e=>e===null||e==="null"?null:e,vAe=e=>{const t=String(e);return si(e,t)},aL=(e,t)=>typeof e=="function"?e:t,bAe=e=>Array.isArray(e)?e:null,fw=e=>typeof e=="function"?e:null,dw=e=>e===null||e==="null"?null:String(e),pw=(e,t=-1)=>{const r=parseInt(e,10);return Number.isNaN(r)?t:r},Po=(e,t={})=>(0,jm.default)(e)?e:t,oL=e=>typeof e=="function"||typeof e=="string"?e:null,No=e=>String(e),_Ae=(e,t)=>(0,jm.default)(e)?e:e===!1||e==="false"||e===0||e==="0"?{activated:!1}:t,EAe=e=>e===void 0||e==="undefined"?void 0:String(e),vz={components:{typeCaster:Po},configs:{typeCaster:Po},configUrl:{typeCaster:dw},deepLinking:{typeCaster:si,defaultValue:fr.deepLinking},defaultModelExpandDepth:{typeCaster:pw,defaultValue:fr.defaultModelExpandDepth},defaultModelRendering:{typeCaster:No},defaultModelsExpandDepth:{typeCaster:pw,defaultValue:fr.defaultModelsExpandDepth},displayOperationId:{typeCaster:si,defaultValue:fr.displayOperationId},displayRequestDuration:{typeCaster:si,defaultValue:fr.displayRequestDuration},docExpansion:{typeCaster:No},dom_id:{typeCaster:dw},domNode:{typeCaster:yAe},filter:{typeCaster:vAe},fn:{typeCaster:Po},initialState:{typeCaster:Po},layout:{typeCaster:No},maxDisplayedTags:{typeCaster:pw,defaultValue:fr.maxDisplayedTags},modelPropertyMacro:{typeCaster:fw},oauth2RedirectUrl:{typeCaster:EAe},onComplete:{typeCaster:fw},operationsSorter:{typeCaster:oL},paramaterMacro:{typeCaster:fw},persistAuthorization:{typeCaster:si,defaultValue:fr.persistAuthorization},plugins:{typeCaster:lw,defaultValue:fr.plugins},presets:{typeCaster:lw,defaultValue:fr.presets},requestInterceptor:{typeCaster:aL,defaultValue:fr.requestInterceptor},requestSnippets:{typeCaster:Po,defaultValue:fr.requestSnippets},requestSnippetsEnabled:{typeCaster:si,defaultValue:fr.requestSnippetsEnabled},responseInterceptor:{typeCaster:aL,defaultValue:fr.responseInterceptor},showCommonExtensions:{typeCaster:si,defaultValue:fr.showCommonExtensions},showExtensions:{typeCaster:si,defaultValue:fr.showExtensions},showMutatedRequest:{typeCaster:si,defaultValue:fr.showMutatedRequest},spec:{typeCaster:Po,defaultValue:fr.spec},supportedSubmitMethods:{typeCaster:lw,defaultValue:fr.supportedSubmitMethods},syntaxHighlight:{typeCaster:_Ae,defaultValue:fr.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:si,defaultValue:fr.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:No},tagsSorter:{typeCaster:oL},tryItOutEnabled:{typeCaster:si,defaultValue:fr.tryItOutEnabled},url:{typeCaster:No},urls:{typeCaster:bAe},"urls.primaryName":{typeCaster:No},validatorUrl:{typeCaster:dw},withCredentials:{typeCaster:si,defaultValue:fr.withCredentials}},bz=e=>Object.entries(vz).reduce((t,[r,{typeCaster:n,defaultValue:i}])=>{if((0,mAe.default)(t,r)){const s=n((0,hA.default)(t,r),i);t=(0,gAe.default)(r,s,t)}return t},{...e}),SAe=(e,...t)=>{let r=Symbol.for("domNode"),n=Symbol.for("primaryName");const i=[];for(const a of t){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=Lc()(e,...i);return r!==Symbol.for("domNode")&&(s.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(s.urls)&&(s.urls.primaryName=n),bz(s)};function ua(e){const t=dAe()(e),r=hAe()(),n=ua.config.merge({},ua.config.defaults,r,e,t),i=fAe(n),s=lAe(n),a=new pU(i);a.register([n.plugins,s]);const o=a.getSystem(),u=f=>{a.setConfigs(f),o.configsActions.loaded()},c=f=>{!t.url&&typeof f.spec=="object"&&Object.keys(f.spec).length>0?(o.specActions.updateUrl(""),o.specActions.updateLoadingStatus("success"),o.specActions.updateSpec(JSON.stringify(f.spec))):typeof o.specActions.download=="function"&&f.url&&!f.urls&&(o.specActions.updateUrl(f.url),o.specActions.download(f.url))},l=f=>{if(f.domNode)o.render(f.domNode,"App");else if(f.dom_id){const h=document.querySelector(f.dom_id);o.render(h,"App")}else f.dom_id===null||f.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return n.configUrl?((async()=>{const{configUrl:f}=n,h=await pAe({url:f,system:o})(n),p=ua.config.merge({},n,h,t);u(p),h!==null&&c(p),l(p)})(),o):(u(n),c(n),l(n),o)}ua.System=pU,ua.config={defaults:fr,merge:SAe,typeCast:bz,typeCastMappings:vz},ua.presets={base:G7,apis:yz},ua.plugins={Auth:mU,Configs:gU,DeepLining:yU,Err:bU,Filter:_U,Icons:EU,JSONSchema5:qU,JSONSchema5Samples:zU,JSONSchema202012:iz,JSONSchema202012Samples:gz,Layout:wU,Logs:xU,OpenAPI30:OA,OpenAPI31:OA,OnComplete:AU,RequestSnippets:RU,Spec:p7,SwaggerClient:m7,Util:g7,View:_7,ViewLegacy:E7,DownloadUrl:S7,SyntaxHighlighting:x7,Versions:A7,SafeRender:T7};var wAe=ua,fa=aU.A;const{config:Kt}=fa,uL=e=>{const t=jt.useRef();return jt.useEffect(()=>{t.current=e},[e]),t.current},wf=({spec:e=Kt.defaults.spec,url:t=Kt.defaults.url,layout:r=Kt.defaults.layout,requestInterceptor:n=Kt.defaults.requestInterceptor,responseInterceptor:i=Kt.defaults.responseInterceptor,supportedSubmitMethods:s=Kt.defaults.supportedSubmitMethods,queryConfigEnabled:a=Kt.defaults.queryConfigEnabled,plugins:o=Kt.defaults.plugins,displayOperationId:u=Kt.defaults.displayOperationId,showMutatedRequest:c=Kt.defaults.showMutatedRequest,docExpansion:l=Kt.defaults.docExpansion,defaultModelExpandDepth:f=Kt.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:h=Kt.defaults.defaultModelsExpandDepth,defaultModelRendering:p=Kt.defaults.defaultModelRendering,presets:g=Kt.defaults.presets,deepLinking:y=Kt.defaults.deepLinking,showExtensions:v=Kt.defaults.showExtensions,showCommonExtensions:E=Kt.defaults.showCommonExtensions,filter:b=Kt.defaults.filter,requestSnippetsEnabled:S=Kt.defaults.requestSnippetsEnabled,requestSnippets:x=Kt.defaults.requestSnippets,tryItOutEnabled:_=Kt.defaults.tryItOutEnabled,displayRequestDuration:A=Kt.defaults.displayRequestDuration,withCredentials:C=Kt.defaults.withCredentials,persistAuthorization:T=Kt.defaults.persistAuthorization,oauth2RedirectUrl:O=Kt.defaults.oauth2RedirectUrl,onComplete:M=null,initialState:k=Kt.defaults.initialState})=>{const[D,P]=jt.useState(null),H=D==null?void 0:D.getComponent("App","root"),X=uL(e),V=uL(t);return jt.useEffect(()=>{const G=fa({plugins:o,spec:e,url:t,layout:r,defaultModelsExpandDepth:h,defaultModelRendering:p,presets:[fa.presets.apis,...g],requestInterceptor:n,responseInterceptor:i,onComplete:()=>{typeof M=="function"&&M(G)},docExpansion:l,supportedSubmitMethods:s,queryConfigEnabled:a,defaultModelExpandDepth:f,displayOperationId:u,tryItOutEnabled:_,displayRequestDuration:A,requestSnippetsEnabled:S,requestSnippets:x,showMutatedRequest:c,deepLinking:y,showExtensions:v,showCommonExtensions:E,filter:b,persistAuthorization:T,withCredentials:C,initialState:k,...typeof O=="string"?{oauth2RedirectUrl:O}:{}});P(G)},[]),jt.useEffect(()=>{if(D){const G=D.specSelectors.url();(t!==G||t!==V)&&(D.specActions.updateSpec(""),t&&(D.specActions.updateUrl(t),D.specActions.download(t)))}},[D,t]),jt.useEffect(()=>{if(D){const G=D.specSelectors.specStr();if(e&&e!==fa.config.defaults.spec&&(e!==G||e!==X)){const Q=typeof e=="object"?JSON.stringify(e):e;D.specActions.updateSpec(Q)}}},[D,e]),H?jt.createElement(H,null):null};wf.System=fa.System;wf.presets=fa.presets;wf.plugins=fa.plugins;wf.config=fa.config;class xAe extends jt.Component{render(){const{getComponent:t}=this.props,r=t("operations",!0);return Nr.jsx("div",{className:"swagger-ui",children:Nr.jsx(r,{})})}}const AAe=()=>({components:{OperationsLayout:xAe}}),OAe=e=>({statePlugins:{spec:{wrapSelectors:{taggedOperations:t=>(r,...n)=>{const i=t(r,...n);return e.operation?i.map(s=>s.update("operations",a=>a.filter(o=>o.get("operation").get("operationId")===e.operation))).filter(s=>s.get("operations").size>0):i}}}}}),CAe=({inputUrl:e,inputJSON:t,className:r,format:n,nodeKey:i,editor:s,create:a})=>{const{t:o}=Dz.useTranslation(),[u,c]=jt.useState(""),[l,f]=jt.useState(""),[h,p]=jt.useState(!1),[g,y]=jt.useState(!1),[v,E]=jt.useState(!1),[b,S]=jt.useState(!0);jt.useEffect(()=>{a&&E(!0)},[a]),jt.useEffect(()=>{const A=document.documentElement;Ue.toggleLockScroll(v,A)},[v]);const x=A=>{A.preventDefault(),s.update(()=>{const C=Ue.Ct(i);Ue.$isSwaggerNode(C)&&(E(!1),C.setSrc(u),C.setJSON(l))})},{operation:_}=jt.useMemo(()=>e?{operation:new URL(e).hash.split("/").pop()||""}:{operation:""},[e,t]);return e?Nr.jsxs(Vn.Box,{pos:"relative",mih:45,children:[Nr.jsx(Vn.LoadingOverlay,{visible:b,zIndex:1e3,overlayProps:{blur:4},loaderProps:{size:"xs"}}),Nr.jsx(wf,{url:t,onComplete:()=>{S(!1)},plugins:[OAe({operation:_}),AAe],layout:"OperationsLayout"})]}):Nr.jsxs(Vn.Popover,{width:400,position:"bottom",shadow:"md",opened:v,onChange:E,defaultOpened:!0,withinPortal:!0,trapFocus:!0,children:[Nr.jsx(Vn.Popover.Target,{children:Nr.jsx(Vn.Flex,{w:"100%",children:Nr.jsx(Ue.v$1,{className:r,format:n,nodeKey:i,children:Nr.jsx(Ue.EmptyNodeButton,{title:o("editor.swagger.add"),icon:"api",onClick:()=>E(A=>!A)})})})}),Nr.jsx(Vn.Popover.Dropdown,{"aria-hidden":!v,tabIndex:v?0:-1,children:Nr.jsx("form",{onSubmit:x,children:Nr.jsxs(Vn.Stack,{gap:16,children:[Nr.jsx(Vn.Box,{children:Nr.jsx(Vn.TextInput,{maxLength:500,placeholder:"https://api.example.com/v3/swagger.json","data-autofocus":!0,type:"url",value:l,onChange:A=>{f(A.currentTarget.value),y(!1)}})}),Nr.jsx(Vn.Box,{children:Nr.jsx(Vn.TextInput,{maxLength:500,placeholder:"https://api.swagger.io/#/user/getUser","data-autofocus":!0,type:"url",value:u,onChange:A=>{c(A.currentTarget.value),p(!1)}})}),Nr.jsx(Vn.Center,{children:Nr.jsx(Vn.Button,{w:"100%",type:"submit",disabled:!u,children:o("editor.video.insert")})})]})})})]})};exports.default=CAe;