@layers-app/editor 0.5.10-optimization → 0.6.0-specific.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -252
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +3 -4
- package/dist/index.js +11 -12
- package/dist/layers.BAh77n3h.js +53500 -0
- package/dist/layers.BR_PAAvW.js +319 -0
- package/dist/layers.BVrvmVeX.js +343 -0
- package/dist/layers.BeZDS7Yo.js +1 -0
- package/dist/layers.C9DRKDGJ.js +1 -0
- package/dist/layers.Dawun4Ev.js +44715 -0
- package/dist/layers.DwBS80Kn.js +285 -0
- package/dist/layers.Zo4c9OM_.js +161 -0
- package/package.json +23 -66
- package/dist/ExcalidrawComponent-D7Z_2awF.cjs +0 -1
- package/dist/ExcalidrawComponent-Re4zFgLg.js +0 -283
- package/dist/InlineImageComponent-DHgCaPNk.cjs +0 -1
- package/dist/InlineImageComponent-kXhZcmF6.js +0 -265
- package/dist/collaboration-C7xVk0Zj.cjs +0 -4
- package/dist/collaboration-Cn7KizEJ.js +0 -5997
- package/dist/excalidraw-C-6bid_P.js +0 -16497
- package/dist/excalidraw-DpwKTNBz.cjs +0 -574
- package/dist/index-B4yOqKUQ.cjs +0 -1
- package/dist/index-BZu8Qnrg.cjs +0 -1
- package/dist/index-CFA9Drk2.cjs +0 -16
- package/dist/index-CX5msaMB.js +0 -296
- package/dist/index-CbQX0N2c.js +0 -136
- package/dist/index-DEC5JR_F.js +0 -60
- package/dist/index-Dan3tqoj.cjs +0 -1
- package/dist/index-WCOc4LNL.js +0 -16600
- package/dist/lexical-2rxs76dr.cjs +0 -41
- package/dist/lexical-C60GkwxR.js +0 -13122
- package/dist/lexical-code-DKIWiZdJ.js +0 -604
- package/dist/lexical-code-VafvPacU.cjs +0 -9
- package/dist/lexical-collab-1tX9tFVC.js +0 -1025
- package/dist/lexical-collab-Nk2LVpJv.cjs +0 -1
- package/dist/lexical-file-C52Mze5k.cjs +0 -1
- package/dist/lexical-file-DjHP4vVw.js +0 -43
- package/dist/lexical-markdown-BSl_ahWw.cjs +0 -12
- package/dist/lexical-markdown-DcEwQQba.js +0 -488
- package/dist/lodash-3PEMjFQT.cjs +0 -1
- package/dist/lodash-jftOdrxX.js +0 -711
- package/dist/stats.html +0 -4949
- package/dist/vendor-BrXDSyZX.js +0 -136433
- package/dist/vendor-Bt6Lma3y.cjs +0 -2469
|
@@ -0,0 +1,343 @@
|
|
|
1
|
+
"use strict";var sH=Object.defineProperty;var sI=e=>{throw TypeError(e)};var aH=(e,t,r)=>t in e?sH(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var X=(e,t,r)=>aH(e,typeof t!="symbol"?t+"":t,r),aI=(e,t,r)=>t.has(e)||sI("Cannot "+r);var dr=(e,t,r)=>(aI(e,t,"read from private field"),r?r.call(e):t.get(e)),Os=(e,t,r)=>t.has(e)?sI("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Io=(e,t,r,n)=>(aI(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const Rr=require("react/jsx-runtime"),Bt=require("react"),oH=require("react-i18next"),He=require("./layers.Zo4c9OM_.js"),Wn=require("@mantine/core"),uH=require("react-dom"),cH=require("@layers-app/shared");function w6(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 VO(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 dt=w6(Bt),lH=w6(uH);var Hf={exports:{}},Kf={exports:{}},zt={};/** @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 oI;function fH(){if(oI)return zt;oI=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,d=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?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(E){if(typeof E=="object"&&E!==null){var A=E.$$typeof;switch(A){case t:switch(E=E.type,E){case u:case c:case n:case s:case i:case f:return E;default:switch(E=E&&E.$$typeof,E){case o:case l:case g:case d:case a:return E;default:return A}}case r:return A}}}function w(E){return S(E)===c}return zt.AsyncMode=u,zt.ConcurrentMode=c,zt.ContextConsumer=o,zt.ContextProvider=a,zt.Element=t,zt.ForwardRef=l,zt.Fragment=n,zt.Lazy=g,zt.Memo=d,zt.Portal=r,zt.Profiler=s,zt.StrictMode=i,zt.Suspense=f,zt.isAsyncMode=function(E){return w(E)||S(E)===u},zt.isConcurrentMode=w,zt.isContextConsumer=function(E){return S(E)===o},zt.isContextProvider=function(E){return S(E)===a},zt.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},zt.isForwardRef=function(E){return S(E)===l},zt.isFragment=function(E){return S(E)===n},zt.isLazy=function(E){return S(E)===g},zt.isMemo=function(E){return S(E)===d},zt.isPortal=function(E){return S(E)===r},zt.isProfiler=function(E){return S(E)===s},zt.isStrictMode=function(E){return S(E)===i},zt.isSuspense=function(E){return S(E)===f},zt.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===c||E===s||E===i||E===f||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===g||E.$$typeof===d||E.$$typeof===a||E.$$typeof===o||E.$$typeof===l||E.$$typeof===v||E.$$typeof===_||E.$$typeof===b||E.$$typeof===y)},zt.typeOf=S,zt}var Wt={};/** @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 uI;function pH(){return uI||(uI=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,d=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?Symbol.for("react.responder"):60118,b=e?Symbol.for("react.scope"):60119;function S(he){return typeof he=="string"||typeof he=="function"||he===n||he===c||he===s||he===i||he===f||he===h||typeof he=="object"&&he!==null&&(he.$$typeof===g||he.$$typeof===d||he.$$typeof===a||he.$$typeof===o||he.$$typeof===l||he.$$typeof===v||he.$$typeof===_||he.$$typeof===b||he.$$typeof===y)}function w(he){if(typeof he=="object"&&he!==null){var Te=he.$$typeof;switch(Te){case t:var Ue=he.type;switch(Ue){case u:case c:case n:case s:case i:case f:return Ue;default:var _e=Ue&&Ue.$$typeof;switch(_e){case o:case l:case g:case d:case a:return _e;default:return Te}}case r:return Te}}}var E=u,A=c,R=o,I=a,O=t,D=l,P=n,F=g,M=d,K=r,te=s,J=i,Q=f,re=!1;function ne(he){return re||(re=!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.")),U(he)||w(he)===u}function U(he){return w(he)===c}function H(he){return w(he)===o}function ie(he){return w(he)===a}function ue(he){return typeof he=="object"&&he!==null&&he.$$typeof===t}function le(he){return w(he)===l}function ee(he){return w(he)===n}function z(he){return w(he)===g}function V(he){return w(he)===d}function fe(he){return w(he)===r}function me(he){return w(he)===s}function Re(he){return w(he)===i}function Ne(he){return w(he)===f}Wt.AsyncMode=E,Wt.ConcurrentMode=A,Wt.ContextConsumer=R,Wt.ContextProvider=I,Wt.Element=O,Wt.ForwardRef=D,Wt.Fragment=P,Wt.Lazy=F,Wt.Memo=M,Wt.Portal=K,Wt.Profiler=te,Wt.StrictMode=J,Wt.Suspense=Q,Wt.isAsyncMode=ne,Wt.isConcurrentMode=U,Wt.isContextConsumer=H,Wt.isContextProvider=ie,Wt.isElement=ue,Wt.isForwardRef=le,Wt.isFragment=ee,Wt.isLazy=z,Wt.isMemo=V,Wt.isPortal=fe,Wt.isProfiler=me,Wt.isStrictMode=Re,Wt.isSuspense=Ne,Wt.isValidElementType=S,Wt.typeOf=w})()),Wt}var cI;function x6(){return cI||(cI=1,process.env.NODE_ENV==="production"?Kf.exports=fH():Kf.exports=pH()),Kf.exports}/*
|
|
16
|
+
object-assign
|
|
17
|
+
(c) Sindre Sorhus
|
|
18
|
+
@license MIT
|
|
19
|
+
*/var og,lI;function dH(){if(lI)return og;lI=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 og=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},og}var ug,fI;function zO(){if(fI)return ug;fI=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return ug=e,ug}var cg,pI;function A6(){return pI||(pI=1,cg=Function.call.bind(Object.prototype.hasOwnProperty)),cg}var lg,dI;function hH(){if(dI)return lg;dI=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=zO(),r={},n=A6();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 d=c?c():"";e("Failed "+o+" type: "+f.message+(d??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},lg=i,lg}var fg,hI;function mH(){if(hI)return fg;hI=1;var e=x6(),t=dH(),r=zO(),n=A6(),i=hH(),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 fg=function(o,u){var c=typeof Symbol=="function"&&Symbol.iterator,l="@@iterator";function f(U){var H=U&&(c&&U[c]||U[l]);if(typeof H=="function")return H}var h="<<anonymous>>",d={array:_("array"),bigint:_("bigint"),bool:_("boolean"),func:_("function"),number:_("number"),object:_("object"),string:_("string"),symbol:_("symbol"),any:b(),arrayOf:S,element:w(),elementType:E(),instanceOf:A,node:D(),objectOf:I,oneOf:R,oneOfType:O,shape:F,exact:M};function g(U,H){return U===H?U!==0||1/U===1/H:U!==U&&H!==H}function y(U,H){this.message=U,this.data=H&&typeof H=="object"?H:{},this.stack=""}y.prototype=Error.prototype;function v(U){if(process.env.NODE_ENV!=="production")var H={},ie=0;function ue(ee,z,V,fe,me,Re,Ne){if(fe=fe||h,Re=Re||V,Ne!==r){if(u){var he=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 he.name="Invariant Violation",he}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=fe+":"+V;!H[Te]&&ie<3&&(s("You are manually calling a React.PropTypes validation function for the `"+Re+"` prop on `"+fe+"`. 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."),H[Te]=!0,ie++)}}return z[V]==null?ee?z[V]===null?new y("The "+me+" `"+Re+"` is marked as required "+("in `"+fe+"`, but its value is `null`.")):new y("The "+me+" `"+Re+"` is marked as required in "+("`"+fe+"`, but its value is `undefined`.")):null:U(z,V,fe,me,Re)}var le=ue.bind(null,!1);return le.isRequired=ue.bind(null,!0),le}function _(U){function H(ie,ue,le,ee,z,V){var fe=ie[ue],me=J(fe);if(me!==U){var Re=Q(fe);return new y("Invalid "+ee+" `"+z+"` of type "+("`"+Re+"` supplied to `"+le+"`, expected ")+("`"+U+"`."),{expectedType:U})}return null}return v(H)}function b(){return v(a)}function S(U){function H(ie,ue,le,ee,z){if(typeof U!="function")return new y("Property `"+z+"` of component `"+le+"` has invalid PropType notation inside arrayOf.");var V=ie[ue];if(!Array.isArray(V)){var fe=J(V);return new y("Invalid "+ee+" `"+z+"` of type "+("`"+fe+"` supplied to `"+le+"`, expected an array."))}for(var me=0;me<V.length;me++){var Re=U(V,me,le,ee,z+"["+me+"]",r);if(Re instanceof Error)return Re}return null}return v(H)}function w(){function U(H,ie,ue,le,ee){var z=H[ie];if(!o(z)){var V=J(z);return new y("Invalid "+le+" `"+ee+"` of type "+("`"+V+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return v(U)}function E(){function U(H,ie,ue,le,ee){var z=H[ie];if(!e.isValidElementType(z)){var V=J(z);return new y("Invalid "+le+" `"+ee+"` of type "+("`"+V+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return v(U)}function A(U){function H(ie,ue,le,ee,z){if(!(ie[ue]instanceof U)){var V=U.name||h,fe=ne(ie[ue]);return new y("Invalid "+ee+" `"+z+"` of type "+("`"+fe+"` supplied to `"+le+"`, expected ")+("instance of `"+V+"`."))}return null}return v(H)}function R(U){if(!Array.isArray(U))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 H(ie,ue,le,ee,z){for(var V=ie[ue],fe=0;fe<U.length;fe++)if(g(V,U[fe]))return null;var me=JSON.stringify(U,function(Ne,he){var Te=Q(he);return Te==="symbol"?String(he):he});return new y("Invalid "+ee+" `"+z+"` of value `"+String(V)+"` "+("supplied to `"+le+"`, expected one of "+me+"."))}return v(H)}function I(U){function H(ie,ue,le,ee,z){if(typeof U!="function")return new y("Property `"+z+"` of component `"+le+"` has invalid PropType notation inside objectOf.");var V=ie[ue],fe=J(V);if(fe!=="object")return new y("Invalid "+ee+" `"+z+"` of type "+("`"+fe+"` supplied to `"+le+"`, expected an object."));for(var me in V)if(n(V,me)){var Re=U(V,me,le,ee,z+"."+me,r);if(Re instanceof Error)return Re}return null}return v(H)}function O(U){if(!Array.isArray(U))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var H=0;H<U.length;H++){var ie=U[H];if(typeof ie!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+re(ie)+" at index "+H+"."),a}function ue(le,ee,z,V,fe){for(var me=[],Re=0;Re<U.length;Re++){var Ne=U[Re],he=Ne(le,ee,z,V,fe,r);if(he==null)return null;he.data&&n(he.data,"expectedType")&&me.push(he.data.expectedType)}var Te=me.length>0?", expected one of type ["+me.join(", ")+"]":"";return new y("Invalid "+V+" `"+fe+"` supplied to "+("`"+z+"`"+Te+"."))}return v(ue)}function D(){function U(H,ie,ue,le,ee){return K(H[ie])?null:new y("Invalid "+le+" `"+ee+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return v(U)}function P(U,H,ie,ue,le){return new y((U||"React class")+": "+H+" type `"+ie+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+le+"`.")}function F(U){function H(ie,ue,le,ee,z){var V=ie[ue],fe=J(V);if(fe!=="object")return new y("Invalid "+ee+" `"+z+"` of type `"+fe+"` "+("supplied to `"+le+"`, expected `object`."));for(var me in U){var Re=U[me];if(typeof Re!="function")return P(le,ee,z,me,Q(Re));var Ne=Re(V,me,le,ee,z+"."+me,r);if(Ne)return Ne}return null}return v(H)}function M(U){function H(ie,ue,le,ee,z){var V=ie[ue],fe=J(V);if(fe!=="object")return new y("Invalid "+ee+" `"+z+"` of type `"+fe+"` "+("supplied to `"+le+"`, expected `object`."));var me=t({},ie[ue],U);for(var Re in me){var Ne=U[Re];if(n(U,Re)&&typeof Ne!="function")return P(le,ee,z,Re,Q(Ne));if(!Ne)return new y("Invalid "+ee+" `"+z+"` key `"+Re+"` supplied to `"+le+"`.\nBad object: "+JSON.stringify(ie[ue],null," ")+`
|
|
20
|
+
Valid keys: `+JSON.stringify(Object.keys(U),null," "));var he=Ne(V,Re,le,ee,z+"."+Re,r);if(he)return he}return null}return v(H)}function K(U){switch(typeof U){case"number":case"string":case"undefined":return!0;case"boolean":return!U;case"object":if(Array.isArray(U))return U.every(K);if(U===null||o(U))return!0;var H=f(U);if(H){var ie=H.call(U),ue;if(H!==U.entries){for(;!(ue=ie.next()).done;)if(!K(ue.value))return!1}else for(;!(ue=ie.next()).done;){var le=ue.value;if(le&&!K(le[1]))return!1}}else return!1;return!0;default:return!1}}function te(U,H){return U==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function J(U){var H=typeof U;return Array.isArray(U)?"array":U instanceof RegExp?"object":te(H,U)?"symbol":H}function Q(U){if(typeof U>"u"||U===null)return""+U;var H=J(U);if(H==="object"){if(U instanceof Date)return"date";if(U instanceof RegExp)return"regexp"}return H}function re(U){var H=Q(U);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function ne(U){return!U.constructor||!U.constructor.name?h:U.constructor.name}return d.checkPropTypes=i,d.resetWarningCache=i.resetWarningCache,d.PropTypes=d,d},fg}var pg,mI;function gH(){if(mI)return pg;mI=1;var e=zO();function t(){}function r(){}return r.resetWarningCache=t,pg=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},pg}var gI;function yH(){if(gI)return Hf.exports;if(gI=1,process.env.NODE_ENV!=="production"){var e=x6(),t=!0;Hf.exports=mH()(e.isElement,t)}else Hf.exports=gH()();return Hf.exports}var vH=yH();const bH=He.getDefaultExportFromCjs(vH);var Gf={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */var yI;function O6(){return yI||(yI=1,Gf.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,d=e[t+f];for(f+=h,s=d&(1<<-l)-1,d>>=-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:(d?-1:1)*(1/0);a=a+Math.pow(2,n),s=s-c}return(d?-1:1)*a*Math.pow(2,s-n)},Gf.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,d=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+d]=o&255,d+=g,o/=256,i-=8);for(a=a<<i|o,c+=i;c>0;e[r+d]=a&255,d+=g,a/=256,c-=8);e[r+d-g]|=y*128}),Gf}var C6=O6();const _H=He.getDefaultExportFromCjs(C6),EH=VO({__proto__:null,default:_H},[C6]);var Yf={exports:{}},dg={},Hu={},vI;function R6(){if(vI)return Hu;vI=1,Hu.byteLength=o,Hu.toByteArray=c,Hu.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(d){var g=d.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var y=d.indexOf("=");y===-1&&(y=g);var v=y===g?0:4-y%4;return[y,v]}function o(d){var g=a(d),y=g[0],v=g[1];return(y+v)*3/4-v}function u(d,g,y){return(g+y)*3/4-y}function c(d){var g,y=a(d),v=y[0],_=y[1],b=new r(u(d,v,_)),S=0,w=_>0?v-4:v,E;for(E=0;E<w;E+=4)g=t[d.charCodeAt(E)]<<18|t[d.charCodeAt(E+1)]<<12|t[d.charCodeAt(E+2)]<<6|t[d.charCodeAt(E+3)],b[S++]=g>>16&255,b[S++]=g>>8&255,b[S++]=g&255;return _===2&&(g=t[d.charCodeAt(E)]<<2|t[d.charCodeAt(E+1)]>>4,b[S++]=g&255),_===1&&(g=t[d.charCodeAt(E)]<<10|t[d.charCodeAt(E+1)]<<4|t[d.charCodeAt(E+2)]>>2,b[S++]=g>>8&255,b[S++]=g&255),b}function l(d){return e[d>>18&63]+e[d>>12&63]+e[d>>6&63]+e[d&63]}function f(d,g,y){for(var v,_=[],b=g;b<y;b+=3)v=(d[b]<<16&16711680)+(d[b+1]<<8&65280)+(d[b+2]&255),_.push(l(v));return _.join("")}function h(d){for(var g,y=d.length,v=y%3,_=[],b=16383,S=0,w=y-v;S<w;S+=b)_.push(f(d,S,S+b>w?w:S+b));return v===1?(g=d[y-1],_.push(e[g>>2]+e[g<<4&63]+"==")):v===2&&(g=(d[y-2]<<8)+d[y-1],_.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),_.join("")}return Hu}/*!
|
|
21
|
+
* The buffer module from node.js, for the browser.
|
|
22
|
+
*
|
|
23
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
24
|
+
* @license MIT
|
|
25
|
+
*/var bI;function SH(){return bI||(bI=1,(function(e){const t=R6(),r=O6(),n=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=b,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,o.TYPED_ARRAY_SUPPORT=s(),!o.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function s(){try{const $=new Uint8Array(1),C={foo:function(){return 42}};return Object.setPrototypeOf(C,Uint8Array.prototype),Object.setPrototypeOf($,C),$.foo()===42}catch{return!1}}Object.defineProperty(o.prototype,"parent",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.buffer}}),Object.defineProperty(o.prototype,"offset",{enumerable:!0,get:function(){if(o.isBuffer(this))return this.byteOffset}});function a($){if($>i)throw new RangeError('The value "'+$+'" is invalid for option "size"');const C=new Uint8Array($);return Object.setPrototypeOf(C,o.prototype),C}function o($,C,j){if(typeof $=="number"){if(typeof C=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f($)}return u($,C,j)}o.poolSize=8192;function u($,C,j){if(typeof $=="string")return h($,C);if(ArrayBuffer.isView($))return g($);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(se($,ArrayBuffer)||$&&se($.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(se($,SharedArrayBuffer)||$&&se($.buffer,SharedArrayBuffer)))return y($,C,j);if(typeof $=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const Z=$.valueOf&&$.valueOf();if(Z!=null&&Z!==$)return o.from(Z,C,j);const de=v($);if(de)return de;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof $[Symbol.toPrimitive]=="function")return o.from($[Symbol.toPrimitive]("string"),C,j);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof $)}o.from=function($,C,j){return u($,C,j)},Object.setPrototypeOf(o.prototype,Uint8Array.prototype),Object.setPrototypeOf(o,Uint8Array);function c($){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 l($,C,j){return c($),$<=0?a($):C!==void 0?typeof j=="string"?a($).fill(C,j):a($).fill(C):a($)}o.alloc=function($,C,j){return l($,C,j)};function f($){return c($),a($<0?0:_($)|0)}o.allocUnsafe=function($){return f($)},o.allocUnsafeSlow=function($){return f($)};function h($,C){if((typeof C!="string"||C==="")&&(C="utf8"),!o.isEncoding(C))throw new TypeError("Unknown encoding: "+C);const j=S($,C)|0;let Z=a(j);const de=Z.write($,C);return de!==j&&(Z=Z.slice(0,de)),Z}function d($){const C=$.length<0?0:_($.length)|0,j=a(C);for(let Z=0;Z<C;Z+=1)j[Z]=$[Z]&255;return j}function g($){if(se($,Uint8Array)){const C=new Uint8Array($);return y(C.buffer,C.byteOffset,C.byteLength)}return d($)}function y($,C,j){if(C<0||$.byteLength<C)throw new RangeError('"offset" is outside of buffer bounds');if($.byteLength<C+(j||0))throw new RangeError('"length" is outside of buffer bounds');let Z;return C===void 0&&j===void 0?Z=new Uint8Array($):j===void 0?Z=new Uint8Array($,C):Z=new Uint8Array($,C,j),Object.setPrototypeOf(Z,o.prototype),Z}function v($){if(o.isBuffer($)){const C=_($.length)|0,j=a(C);return j.length===0||$.copy(j,0,0,C),j}if($.length!==void 0)return typeof $.length!="number"||ce($.length)?a(0):d($);if($.type==="Buffer"&&Array.isArray($.data))return d($.data)}function _($){if($>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return $|0}function b($){return+$!=$&&($=0),o.alloc(+$)}o.isBuffer=function(C){return C!=null&&C._isBuffer===!0&&C!==o.prototype},o.compare=function(C,j){if(se(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),se(j,Uint8Array)&&(j=o.from(j,j.offset,j.byteLength)),!o.isBuffer(C)||!o.isBuffer(j))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(C===j)return 0;let Z=C.length,de=j.length;for(let be=0,Oe=Math.min(Z,de);be<Oe;++be)if(C[be]!==j[be]){Z=C[be],de=j[be];break}return Z<de?-1:de<Z?1:0},o.isEncoding=function(C){switch(String(C).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(C,j){if(!Array.isArray(C))throw new TypeError('"list" argument must be an Array of Buffers');if(C.length===0)return o.alloc(0);let Z;if(j===void 0)for(j=0,Z=0;Z<C.length;++Z)j+=C[Z].length;const de=o.allocUnsafe(j);let be=0;for(Z=0;Z<C.length;++Z){let Oe=C[Z];if(se(Oe,Uint8Array))be+Oe.length>de.length?(o.isBuffer(Oe)||(Oe=o.from(Oe)),Oe.copy(de,be)):Uint8Array.prototype.set.call(de,Oe,be);else if(o.isBuffer(Oe))Oe.copy(de,be);else throw new TypeError('"list" argument must be an Array of Buffers');be+=Oe.length}return de};function S($,C){if(o.isBuffer($))return $.length;if(ArrayBuffer.isView($)||se($,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,Z=arguments.length>2&&arguments[2]===!0;if(!Z&&j===0)return 0;let de=!1;for(;;)switch(C){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 j*2;case"hex":return j>>>1;case"base64":return k($).length;default:if(de)return Z?-1:Ae($).length;C=(""+C).toLowerCase(),de=!0}}o.byteLength=S;function w($,C,j){let Z=!1;if((C===void 0||C<0)&&(C=0),C>this.length||((j===void 0||j>this.length)&&(j=this.length),j<=0)||(j>>>=0,C>>>=0,j<=C))return"";for($||($="utf8");;)switch($){case"hex":return ne(this,C,j);case"utf8":case"utf-8":return K(this,C,j);case"ascii":return Q(this,C,j);case"latin1":case"binary":return re(this,C,j);case"base64":return M(this,C,j);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return U(this,C,j);default:if(Z)throw new TypeError("Unknown encoding: "+$);$=($+"").toLowerCase(),Z=!0}}o.prototype._isBuffer=!0;function E($,C,j){const Z=$[C];$[C]=$[j],$[j]=Z}o.prototype.swap16=function(){const C=this.length;if(C%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let j=0;j<C;j+=2)E(this,j,j+1);return this},o.prototype.swap32=function(){const C=this.length;if(C%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let j=0;j<C;j+=4)E(this,j,j+3),E(this,j+1,j+2);return this},o.prototype.swap64=function(){const C=this.length;if(C%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let j=0;j<C;j+=8)E(this,j,j+7),E(this,j+1,j+6),E(this,j+2,j+5),E(this,j+3,j+4);return this},o.prototype.toString=function(){const C=this.length;return C===0?"":arguments.length===0?K(this,0,C):w.apply(this,arguments)},o.prototype.toLocaleString=o.prototype.toString,o.prototype.equals=function(C){if(!o.isBuffer(C))throw new TypeError("Argument must be a Buffer");return this===C?!0:o.compare(this,C)===0},o.prototype.inspect=function(){let C="";const j=e.INSPECT_MAX_BYTES;return C=this.toString("hex",0,j).replace(/(.{2})/g,"$1 ").trim(),this.length>j&&(C+=" ... "),"<Buffer "+C+">"},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(C,j,Z,de,be){if(se(C,Uint8Array)&&(C=o.from(C,C.offset,C.byteLength)),!o.isBuffer(C))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof C);if(j===void 0&&(j=0),Z===void 0&&(Z=C?C.length:0),de===void 0&&(de=0),be===void 0&&(be=this.length),j<0||Z>C.length||de<0||be>this.length)throw new RangeError("out of range index");if(de>=be&&j>=Z)return 0;if(de>=be)return-1;if(j>=Z)return 1;if(j>>>=0,Z>>>=0,de>>>=0,be>>>=0,this===C)return 0;let Oe=be-de,nt=Z-j;const it=Math.min(Oe,nt),It=this.slice(de,be),pt=C.slice(j,Z);for(let pe=0;pe<it;++pe)if(It[pe]!==pt[pe]){Oe=It[pe],nt=pt[pe];break}return Oe<nt?-1:nt<Oe?1:0};function A($,C,j,Z,de){if($.length===0)return-1;if(typeof j=="string"?(Z=j,j=0):j>2147483647?j=2147483647:j<-2147483648&&(j=-2147483648),j=+j,ce(j)&&(j=de?0:$.length-1),j<0&&(j=$.length+j),j>=$.length){if(de)return-1;j=$.length-1}else if(j<0)if(de)j=0;else return-1;if(typeof C=="string"&&(C=o.from(C,Z)),o.isBuffer(C))return C.length===0?-1:R($,C,j,Z,de);if(typeof C=="number")return C=C&255,typeof Uint8Array.prototype.indexOf=="function"?de?Uint8Array.prototype.indexOf.call($,C,j):Uint8Array.prototype.lastIndexOf.call($,C,j):R($,[C],j,Z,de);throw new TypeError("val must be string, number or Buffer")}function R($,C,j,Z,de){let be=1,Oe=$.length,nt=C.length;if(Z!==void 0&&(Z=String(Z).toLowerCase(),Z==="ucs2"||Z==="ucs-2"||Z==="utf16le"||Z==="utf-16le")){if($.length<2||C.length<2)return-1;be=2,Oe/=2,nt/=2,j/=2}function it(pt,pe){return be===1?pt[pe]:pt.readUInt16BE(pe*be)}let It;if(de){let pt=-1;for(It=j;It<Oe;It++)if(it($,It)===it(C,pt===-1?0:It-pt)){if(pt===-1&&(pt=It),It-pt+1===nt)return pt*be}else pt!==-1&&(It-=It-pt),pt=-1}else for(j+nt>Oe&&(j=Oe-nt),It=j;It>=0;It--){let pt=!0;for(let pe=0;pe<nt;pe++)if(it($,It+pe)!==it(C,pe)){pt=!1;break}if(pt)return It}return-1}o.prototype.includes=function(C,j,Z){return this.indexOf(C,j,Z)!==-1},o.prototype.indexOf=function(C,j,Z){return A(this,C,j,Z,!0)},o.prototype.lastIndexOf=function(C,j,Z){return A(this,C,j,Z,!1)};function I($,C,j,Z){j=Number(j)||0;const de=$.length-j;Z?(Z=Number(Z),Z>de&&(Z=de)):Z=de;const be=C.length;Z>be/2&&(Z=be/2);let Oe;for(Oe=0;Oe<Z;++Oe){const nt=parseInt(C.substr(Oe*2,2),16);if(ce(nt))return Oe;$[j+Oe]=nt}return Oe}function O($,C,j,Z){return W(Ae(C,$.length-j),$,j,Z)}function D($,C,j,Z){return W(B(C),$,j,Z)}function P($,C,j,Z){return W(k(C),$,j,Z)}function F($,C,j,Z){return W(T(C,$.length-j),$,j,Z)}o.prototype.write=function(C,j,Z,de){if(j===void 0)de="utf8",Z=this.length,j=0;else if(Z===void 0&&typeof j=="string")de=j,Z=this.length,j=0;else if(isFinite(j))j=j>>>0,isFinite(Z)?(Z=Z>>>0,de===void 0&&(de="utf8")):(de=Z,Z=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const be=this.length-j;if((Z===void 0||Z>be)&&(Z=be),C.length>0&&(Z<0||j<0)||j>this.length)throw new RangeError("Attempt to write outside buffer bounds");de||(de="utf8");let Oe=!1;for(;;)switch(de){case"hex":return I(this,C,j,Z);case"utf8":case"utf-8":return O(this,C,j,Z);case"ascii":case"latin1":case"binary":return D(this,C,j,Z);case"base64":return P(this,C,j,Z);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,C,j,Z);default:if(Oe)throw new TypeError("Unknown encoding: "+de);de=(""+de).toLowerCase(),Oe=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function M($,C,j){return C===0&&j===$.length?t.fromByteArray($):t.fromByteArray($.slice(C,j))}function K($,C,j){j=Math.min($.length,j);const Z=[];let de=C;for(;de<j;){const be=$[de];let Oe=null,nt=be>239?4:be>223?3:be>191?2:1;if(de+nt<=j){let it,It,pt,pe;switch(nt){case 1:be<128&&(Oe=be);break;case 2:it=$[de+1],(it&192)===128&&(pe=(be&31)<<6|it&63,pe>127&&(Oe=pe));break;case 3:it=$[de+1],It=$[de+2],(it&192)===128&&(It&192)===128&&(pe=(be&15)<<12|(it&63)<<6|It&63,pe>2047&&(pe<55296||pe>57343)&&(Oe=pe));break;case 4:it=$[de+1],It=$[de+2],pt=$[de+3],(it&192)===128&&(It&192)===128&&(pt&192)===128&&(pe=(be&15)<<18|(it&63)<<12|(It&63)<<6|pt&63,pe>65535&&pe<1114112&&(Oe=pe))}}Oe===null?(Oe=65533,nt=1):Oe>65535&&(Oe-=65536,Z.push(Oe>>>10&1023|55296),Oe=56320|Oe&1023),Z.push(Oe),de+=nt}return J(Z)}const te=4096;function J($){const C=$.length;if(C<=te)return String.fromCharCode.apply(String,$);let j="",Z=0;for(;Z<C;)j+=String.fromCharCode.apply(String,$.slice(Z,Z+=te));return j}function Q($,C,j){let Z="";j=Math.min($.length,j);for(let de=C;de<j;++de)Z+=String.fromCharCode($[de]&127);return Z}function re($,C,j){let Z="";j=Math.min($.length,j);for(let de=C;de<j;++de)Z+=String.fromCharCode($[de]);return Z}function ne($,C,j){const Z=$.length;(!C||C<0)&&(C=0),(!j||j<0||j>Z)&&(j=Z);let de="";for(let be=C;be<j;++be)de+=ye[$[be]];return de}function U($,C,j){const Z=$.slice(C,j);let de="";for(let be=0;be<Z.length-1;be+=2)de+=String.fromCharCode(Z[be]+Z[be+1]*256);return de}o.prototype.slice=function(C,j){const Z=this.length;C=~~C,j=j===void 0?Z:~~j,C<0?(C+=Z,C<0&&(C=0)):C>Z&&(C=Z),j<0?(j+=Z,j<0&&(j=0)):j>Z&&(j=Z),j<C&&(j=C);const de=this.subarray(C,j);return Object.setPrototypeOf(de,o.prototype),de};function H($,C,j){if($%1!==0||$<0)throw new RangeError("offset is not uint");if($+C>j)throw new RangeError("Trying to access beyond buffer length")}o.prototype.readUintLE=o.prototype.readUIntLE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||H(C,j,this.length);let de=this[C],be=1,Oe=0;for(;++Oe<j&&(be*=256);)de+=this[C+Oe]*be;return de},o.prototype.readUintBE=o.prototype.readUIntBE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||H(C,j,this.length);let de=this[C+--j],be=1;for(;j>0&&(be*=256);)de+=this[C+--j]*be;return de},o.prototype.readUint8=o.prototype.readUInt8=function(C,j){return C=C>>>0,j||H(C,1,this.length),this[C]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(C,j){return C=C>>>0,j||H(C,2,this.length),this[C]|this[C+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(C,j){return C=C>>>0,j||H(C,2,this.length),this[C]<<8|this[C+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(C,j){return C=C>>>0,j||H(C,4,this.length),(this[C]|this[C+1]<<8|this[C+2]<<16)+this[C+3]*16777216},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(C,j){return C=C>>>0,j||H(C,4,this.length),this[C]*16777216+(this[C+1]<<16|this[C+2]<<8|this[C+3])},o.prototype.readBigUInt64LE=Me(function(C){C=C>>>0,Te(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Ue(C,this.length-8);const de=j+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24,be=this[++C]+this[++C]*2**8+this[++C]*2**16+Z*2**24;return BigInt(de)+(BigInt(be)<<BigInt(32))}),o.prototype.readBigUInt64BE=Me(function(C){C=C>>>0,Te(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Ue(C,this.length-8);const de=j*2**24+this[++C]*2**16+this[++C]*2**8+this[++C],be=this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+Z;return(BigInt(de)<<BigInt(32))+BigInt(be)}),o.prototype.readIntLE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||H(C,j,this.length);let de=this[C],be=1,Oe=0;for(;++Oe<j&&(be*=256);)de+=this[C+Oe]*be;return be*=128,de>=be&&(de-=Math.pow(2,8*j)),de},o.prototype.readIntBE=function(C,j,Z){C=C>>>0,j=j>>>0,Z||H(C,j,this.length);let de=j,be=1,Oe=this[C+--de];for(;de>0&&(be*=256);)Oe+=this[C+--de]*be;return be*=128,Oe>=be&&(Oe-=Math.pow(2,8*j)),Oe},o.prototype.readInt8=function(C,j){return C=C>>>0,j||H(C,1,this.length),this[C]&128?(255-this[C]+1)*-1:this[C]},o.prototype.readInt16LE=function(C,j){C=C>>>0,j||H(C,2,this.length);const Z=this[C]|this[C+1]<<8;return Z&32768?Z|4294901760:Z},o.prototype.readInt16BE=function(C,j){C=C>>>0,j||H(C,2,this.length);const Z=this[C+1]|this[C]<<8;return Z&32768?Z|4294901760:Z},o.prototype.readInt32LE=function(C,j){return C=C>>>0,j||H(C,4,this.length),this[C]|this[C+1]<<8|this[C+2]<<16|this[C+3]<<24},o.prototype.readInt32BE=function(C,j){return C=C>>>0,j||H(C,4,this.length),this[C]<<24|this[C+1]<<16|this[C+2]<<8|this[C+3]},o.prototype.readBigInt64LE=Me(function(C){C=C>>>0,Te(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Ue(C,this.length-8);const de=this[C+4]+this[C+5]*2**8+this[C+6]*2**16+(Z<<24);return(BigInt(de)<<BigInt(32))+BigInt(j+this[++C]*2**8+this[++C]*2**16+this[++C]*2**24)}),o.prototype.readBigInt64BE=Me(function(C){C=C>>>0,Te(C,"offset");const j=this[C],Z=this[C+7];(j===void 0||Z===void 0)&&Ue(C,this.length-8);const de=(j<<24)+this[++C]*2**16+this[++C]*2**8+this[++C];return(BigInt(de)<<BigInt(32))+BigInt(this[++C]*2**24+this[++C]*2**16+this[++C]*2**8+Z)}),o.prototype.readFloatLE=function(C,j){return C=C>>>0,j||H(C,4,this.length),r.read(this,C,!0,23,4)},o.prototype.readFloatBE=function(C,j){return C=C>>>0,j||H(C,4,this.length),r.read(this,C,!1,23,4)},o.prototype.readDoubleLE=function(C,j){return C=C>>>0,j||H(C,8,this.length),r.read(this,C,!0,52,8)},o.prototype.readDoubleBE=function(C,j){return C=C>>>0,j||H(C,8,this.length),r.read(this,C,!1,52,8)};function ie($,C,j,Z,de,be){if(!o.isBuffer($))throw new TypeError('"buffer" argument must be a Buffer instance');if(C>de||C<be)throw new RangeError('"value" argument is out of bounds');if(j+Z>$.length)throw new RangeError("Index out of range")}o.prototype.writeUintLE=o.prototype.writeUIntLE=function(C,j,Z,de){if(C=+C,j=j>>>0,Z=Z>>>0,!de){const nt=Math.pow(2,8*Z)-1;ie(this,C,j,Z,nt,0)}let be=1,Oe=0;for(this[j]=C&255;++Oe<Z&&(be*=256);)this[j+Oe]=C/be&255;return j+Z},o.prototype.writeUintBE=o.prototype.writeUIntBE=function(C,j,Z,de){if(C=+C,j=j>>>0,Z=Z>>>0,!de){const nt=Math.pow(2,8*Z)-1;ie(this,C,j,Z,nt,0)}let be=Z-1,Oe=1;for(this[j+be]=C&255;--be>=0&&(Oe*=256);)this[j+be]=C/Oe&255;return j+Z},o.prototype.writeUint8=o.prototype.writeUInt8=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,1,255,0),this[j]=C&255,j+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,2,65535,0),this[j]=C&255,this[j+1]=C>>>8,j+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,2,65535,0),this[j]=C>>>8,this[j+1]=C&255,j+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,4,4294967295,0),this[j+3]=C>>>24,this[j+2]=C>>>16,this[j+1]=C>>>8,this[j]=C&255,j+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,4,4294967295,0),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=C&255,j+4};function ue($,C,j,Z,de){he(C,Z,de,$,j,7);let be=Number(C&BigInt(4294967295));$[j++]=be,be=be>>8,$[j++]=be,be=be>>8,$[j++]=be,be=be>>8,$[j++]=be;let Oe=Number(C>>BigInt(32)&BigInt(4294967295));return $[j++]=Oe,Oe=Oe>>8,$[j++]=Oe,Oe=Oe>>8,$[j++]=Oe,Oe=Oe>>8,$[j++]=Oe,j}function le($,C,j,Z,de){he(C,Z,de,$,j,7);let be=Number(C&BigInt(4294967295));$[j+7]=be,be=be>>8,$[j+6]=be,be=be>>8,$[j+5]=be,be=be>>8,$[j+4]=be;let Oe=Number(C>>BigInt(32)&BigInt(4294967295));return $[j+3]=Oe,Oe=Oe>>8,$[j+2]=Oe,Oe=Oe>>8,$[j+1]=Oe,Oe=Oe>>8,$[j]=Oe,j+8}o.prototype.writeBigUInt64LE=Me(function(C,j=0){return ue(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeBigUInt64BE=Me(function(C,j=0){return le(this,C,j,BigInt(0),BigInt("0xffffffffffffffff"))}),o.prototype.writeIntLE=function(C,j,Z,de){if(C=+C,j=j>>>0,!de){const it=Math.pow(2,8*Z-1);ie(this,C,j,Z,it-1,-it)}let be=0,Oe=1,nt=0;for(this[j]=C&255;++be<Z&&(Oe*=256);)C<0&&nt===0&&this[j+be-1]!==0&&(nt=1),this[j+be]=(C/Oe>>0)-nt&255;return j+Z},o.prototype.writeIntBE=function(C,j,Z,de){if(C=+C,j=j>>>0,!de){const it=Math.pow(2,8*Z-1);ie(this,C,j,Z,it-1,-it)}let be=Z-1,Oe=1,nt=0;for(this[j+be]=C&255;--be>=0&&(Oe*=256);)C<0&&nt===0&&this[j+be+1]!==0&&(nt=1),this[j+be]=(C/Oe>>0)-nt&255;return j+Z},o.prototype.writeInt8=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,1,127,-128),C<0&&(C=255+C+1),this[j]=C&255,j+1},o.prototype.writeInt16LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,2,32767,-32768),this[j]=C&255,this[j+1]=C>>>8,j+2},o.prototype.writeInt16BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,2,32767,-32768),this[j]=C>>>8,this[j+1]=C&255,j+2},o.prototype.writeInt32LE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,4,2147483647,-2147483648),this[j]=C&255,this[j+1]=C>>>8,this[j+2]=C>>>16,this[j+3]=C>>>24,j+4},o.prototype.writeInt32BE=function(C,j,Z){return C=+C,j=j>>>0,Z||ie(this,C,j,4,2147483647,-2147483648),C<0&&(C=4294967295+C+1),this[j]=C>>>24,this[j+1]=C>>>16,this[j+2]=C>>>8,this[j+3]=C&255,j+4},o.prototype.writeBigInt64LE=Me(function(C,j=0){return ue(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),o.prototype.writeBigInt64BE=Me(function(C,j=0){return le(this,C,j,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function ee($,C,j,Z,de,be){if(j+Z>$.length)throw new RangeError("Index out of range");if(j<0)throw new RangeError("Index out of range")}function z($,C,j,Z,de){return C=+C,j=j>>>0,de||ee($,C,j,4),r.write($,C,j,Z,23,4),j+4}o.prototype.writeFloatLE=function(C,j,Z){return z(this,C,j,!0,Z)},o.prototype.writeFloatBE=function(C,j,Z){return z(this,C,j,!1,Z)};function V($,C,j,Z,de){return C=+C,j=j>>>0,de||ee($,C,j,8),r.write($,C,j,Z,52,8),j+8}o.prototype.writeDoubleLE=function(C,j,Z){return V(this,C,j,!0,Z)},o.prototype.writeDoubleBE=function(C,j,Z){return V(this,C,j,!1,Z)},o.prototype.copy=function(C,j,Z,de){if(!o.isBuffer(C))throw new TypeError("argument should be a Buffer");if(Z||(Z=0),!de&&de!==0&&(de=this.length),j>=C.length&&(j=C.length),j||(j=0),de>0&&de<Z&&(de=Z),de===Z||C.length===0||this.length===0)return 0;if(j<0)throw new RangeError("targetStart out of bounds");if(Z<0||Z>=this.length)throw new RangeError("Index out of range");if(de<0)throw new RangeError("sourceEnd out of bounds");de>this.length&&(de=this.length),C.length-j<de-Z&&(de=C.length-j+Z);const be=de-Z;return this===C&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(j,Z,de):Uint8Array.prototype.set.call(C,this.subarray(Z,de),j),be},o.prototype.fill=function(C,j,Z,de){if(typeof C=="string"){if(typeof j=="string"?(de=j,j=0,Z=this.length):typeof Z=="string"&&(de=Z,Z=this.length),de!==void 0&&typeof de!="string")throw new TypeError("encoding must be a string");if(typeof de=="string"&&!o.isEncoding(de))throw new TypeError("Unknown encoding: "+de);if(C.length===1){const Oe=C.charCodeAt(0);(de==="utf8"&&Oe<128||de==="latin1")&&(C=Oe)}}else typeof C=="number"?C=C&255:typeof C=="boolean"&&(C=Number(C));if(j<0||this.length<j||this.length<Z)throw new RangeError("Out of range index");if(Z<=j)return this;j=j>>>0,Z=Z===void 0?this.length:Z>>>0,C||(C=0);let be;if(typeof C=="number")for(be=j;be<Z;++be)this[be]=C;else{const Oe=o.isBuffer(C)?C:o.from(C,de),nt=Oe.length;if(nt===0)throw new TypeError('The value "'+C+'" is invalid for argument "value"');for(be=0;be<Z-j;++be)this[be+j]=Oe[be%nt]}return this};const fe={};function me($,C,j){fe[$]=class extends j{constructor(){super(),Object.defineProperty(this,"message",{value:C.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${$}]`,this.stack,delete this.name}get code(){return $}set code(de){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:de,writable:!0})}toString(){return`${this.name} [${$}]: ${this.message}`}}}me("ERR_BUFFER_OUT_OF_BOUNDS",function($){return $?`${$} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),me("ERR_INVALID_ARG_TYPE",function($,C){return`The "${$}" argument must be of type number. Received type ${typeof C}`},TypeError),me("ERR_OUT_OF_RANGE",function($,C,j){let Z=`The value of "${$}" is out of range.`,de=j;return Number.isInteger(j)&&Math.abs(j)>2**32?de=Re(String(j)):typeof j=="bigint"&&(de=String(j),(j>BigInt(2)**BigInt(32)||j<-(BigInt(2)**BigInt(32)))&&(de=Re(de)),de+="n"),Z+=` It must be ${C}. Received ${de}`,Z},RangeError);function Re($){let C="",j=$.length;const Z=$[0]==="-"?1:0;for(;j>=Z+4;j-=3)C=`_${$.slice(j-3,j)}${C}`;return`${$.slice(0,j)}${C}`}function Ne($,C,j){Te(C,"offset"),($[C]===void 0||$[C+j]===void 0)&&Ue(C,$.length-(j+1))}function he($,C,j,Z,de,be){if($>j||$<C){const Oe=typeof C=="bigint"?"n":"";let nt;throw C===0||C===BigInt(0)?nt=`>= 0${Oe} and < 2${Oe} ** ${(be+1)*8}${Oe}`:nt=`>= -(2${Oe} ** ${(be+1)*8-1}${Oe}) and < 2 ** ${(be+1)*8-1}${Oe}`,new fe.ERR_OUT_OF_RANGE("value",nt,$)}Ne(Z,de,be)}function Te($,C){if(typeof $!="number")throw new fe.ERR_INVALID_ARG_TYPE(C,"number",$)}function Ue($,C,j){throw Math.floor($)!==$?(Te($,j),new fe.ERR_OUT_OF_RANGE("offset","an integer",$)):C<0?new fe.ERR_BUFFER_OUT_OF_BOUNDS:new fe.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${C}`,$)}const _e=/[^+/0-9A-Za-z-_]/g;function we($){if($=$.split("=")[0],$=$.trim().replace(_e,""),$.length<2)return"";for(;$.length%4!==0;)$=$+"=";return $}function Ae($,C){C=C||1/0;let j;const Z=$.length;let de=null;const be=[];for(let Oe=0;Oe<Z;++Oe){if(j=$.charCodeAt(Oe),j>55295&&j<57344){if(!de){if(j>56319){(C-=3)>-1&&be.push(239,191,189);continue}else if(Oe+1===Z){(C-=3)>-1&&be.push(239,191,189);continue}de=j;continue}if(j<56320){(C-=3)>-1&&be.push(239,191,189),de=j;continue}j=(de-55296<<10|j-56320)+65536}else de&&(C-=3)>-1&&be.push(239,191,189);if(de=null,j<128){if((C-=1)<0)break;be.push(j)}else if(j<2048){if((C-=2)<0)break;be.push(j>>6|192,j&63|128)}else if(j<65536){if((C-=3)<0)break;be.push(j>>12|224,j>>6&63|128,j&63|128)}else if(j<1114112){if((C-=4)<0)break;be.push(j>>18|240,j>>12&63|128,j>>6&63|128,j&63|128)}else throw new Error("Invalid code point")}return be}function B($){const C=[];for(let j=0;j<$.length;++j)C.push($.charCodeAt(j)&255);return C}function T($,C){let j,Z,de;const be=[];for(let Oe=0;Oe<$.length&&!((C-=2)<0);++Oe)j=$.charCodeAt(Oe),Z=j>>8,de=j%256,be.push(de),be.push(Z);return be}function k($){return t.toByteArray(we($))}function W($,C,j,Z){let de;for(de=0;de<Z&&!(de+j>=C.length||de>=$.length);++de)C[de+j]=$[de];return de}function se($,C){return $ instanceof C||$!=null&&$.constructor!=null&&$.constructor.name!=null&&$.constructor.name===C.name}function ce($){return $!==$}const ye=(function(){const $="0123456789abcdef",C=new Array(256);for(let j=0;j<16;++j){const Z=j*16;for(let de=0;de<16;++de)C[Z+de]=$[j]+$[de]}return C})();function Me($){return typeof BigInt>"u"?Xe:$}function Xe(){throw new Error("BigInt not supported")}})(dg)),dg}/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var _I;function wH(){return _I||(_I=1,(function(e,t){var r=SH(),n=r.Buffer;function i(a,o){for(var u in a)o[u]=a[u]}n.from&&n.alloc&&n.allocUnsafe&&n.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=s);function s(a,o,u){return n(a,o,u)}s.prototype=Object.create(n.prototype),i(n,s),s.from=function(a,o,u){if(typeof a=="number")throw new TypeError("Argument must not be a number");return n(a,o,u)},s.alloc=function(a,o,u){if(typeof a!="number")throw new TypeError("Argument must be a number");var c=n(a);return o!==void 0?typeof u=="string"?c.fill(o,u):c.fill(o):c.fill(0),c},s.allocUnsafe=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return n(a)},s.allocUnsafeSlow=function(a){if(typeof a!="number")throw new TypeError("Argument must be a number");return r.SlowBuffer(a)}})(Yf,Yf.exports)),Yf.exports}var hg,EI;function xH(){if(EI)return hg;EI=1;var e={}.toString;return hg=Array.isArray||function(t){return e.call(t)=="[object Array]"},hg}var mg,SI;function tl(){return SI||(SI=1,mg=TypeError),mg}var gg,wI;function T6(){return wI||(wI=1,gg=Object),gg}var yg,xI;function AH(){return xI||(xI=1,yg=Error),yg}var vg,AI;function OH(){return AI||(AI=1,vg=EvalError),vg}var bg,OI;function CH(){return OI||(OI=1,bg=RangeError),bg}var _g,CI;function RH(){return CI||(CI=1,_g=ReferenceError),_g}var Eg,RI;function I6(){return RI||(RI=1,Eg=SyntaxError),Eg}var Sg,TI;function TH(){return TI||(TI=1,Sg=URIError),Sg}var wg,II;function IH(){return II||(II=1,wg=Math.abs),wg}var xg,jI;function jH(){return jI||(jI=1,xg=Math.floor),xg}var Ag,PI;function PH(){return PI||(PI=1,Ag=Math.max),Ag}var Og,kI;function kH(){return kI||(kI=1,Og=Math.min),Og}var Cg,NI;function NH(){return NI||(NI=1,Cg=Math.pow),Cg}var Rg,MI;function MH(){return MI||(MI=1,Rg=Math.round),Rg}var Tg,DI;function DH(){return DI||(DI=1,Tg=Number.isNaN||function(t){return t!==t}),Tg}var Ig,qI;function qH(){if(qI)return Ig;qI=1;var e=DH();return Ig=function(r){return e(r)||r===0?r:r<0?-1:1},Ig}var jg,FI;function FH(){return FI||(FI=1,jg=Object.getOwnPropertyDescriptor),jg}var Pg,$I;function rl(){if($I)return Pg;$I=1;var e=FH();if(e)try{e([],"length")}catch{e=null}return Pg=e,Pg}var kg,LI;function uh(){if(LI)return kg;LI=1;var e=Object.defineProperty||!1;if(e)try{e({},"a",{value:1})}catch{e=!1}return kg=e,kg}var Ng,BI;function j6(){return BI||(BI=1,Ng=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),n=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var i=42;t[r]=i;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var a=Object.getOwnPropertySymbols(t);if(a.length!==1||a[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var o=Object.getOwnPropertyDescriptor(t,r);if(o.value!==i||o.enumerable!==!0)return!1}return!0}),Ng}var Mg,UI;function $H(){if(UI)return Mg;UI=1;var e=typeof Symbol<"u"&&Symbol,t=j6();return Mg=function(){return typeof e!="function"||typeof Symbol!="function"||typeof e("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:t()},Mg}var Dg,VI;function P6(){return VI||(VI=1,Dg=typeof Reflect<"u"&&Reflect.getPrototypeOf||null),Dg}var qg,zI;function k6(){if(zI)return qg;zI=1;var e=T6();return qg=e.getPrototypeOf||null,qg}var Fg,WI;function LH(){if(WI)return Fg;WI=1;var e="Function.prototype.bind called on incompatible ",t=Object.prototype.toString,r=Math.max,n="[object Function]",i=function(u,c){for(var l=[],f=0;f<u.length;f+=1)l[f]=u[f];for(var h=0;h<c.length;h+=1)l[h+u.length]=c[h];return l},s=function(u,c){for(var l=[],f=c,h=0;f<u.length;f+=1,h+=1)l[h]=u[f];return l},a=function(o,u){for(var c="",l=0;l<o.length;l+=1)c+=o[l],l+1<o.length&&(c+=u);return c};return Fg=function(u){var c=this;if(typeof c!="function"||t.apply(c)!==n)throw new TypeError(e+c);for(var l=s(arguments,1),f,h=function(){if(this instanceof f){var _=c.apply(this,i(l,arguments));return Object(_)===_?_:this}return c.apply(u,i(l,arguments))},d=r(0,c.length-l.length),g=[],y=0;y<d;y++)g[y]="$"+y;if(f=Function("binder","return function ("+a(g,",")+"){ return binder.apply(this,arguments); }")(h),c.prototype){var v=function(){};v.prototype=c.prototype,f.prototype=new v,v.prototype=null}return f},Fg}var $g,JI;function nl(){if(JI)return $g;JI=1;var e=LH();return $g=Function.prototype.bind||e,$g}var Lg,HI;function WO(){return HI||(HI=1,Lg=Function.prototype.call),Lg}var Bg,KI;function JO(){return KI||(KI=1,Bg=Function.prototype.apply),Bg}var Ug,GI;function BH(){return GI||(GI=1,Ug=typeof Reflect<"u"&&Reflect&&Reflect.apply),Ug}var Vg,YI;function N6(){if(YI)return Vg;YI=1;var e=nl(),t=JO(),r=WO(),n=BH();return Vg=n||e.call(r,t),Vg}var zg,XI;function HO(){if(XI)return zg;XI=1;var e=nl(),t=tl(),r=WO(),n=N6();return zg=function(s){if(s.length<1||typeof s[0]!="function")throw new t("a function is required");return n(e,r,s)},zg}var Wg,ZI;function UH(){if(ZI)return Wg;ZI=1;var e=HO(),t=rl(),r;try{r=[].__proto__===Array.prototype}catch(a){if(!a||typeof a!="object"||!("code"in a)||a.code!=="ERR_PROTO_ACCESS")throw a}var n=!!r&&t&&t(Object.prototype,"__proto__"),i=Object,s=i.getPrototypeOf;return Wg=n&&typeof n.get=="function"?e([n.get]):typeof s=="function"?function(o){return s(o==null?o:i(o))}:!1,Wg}var Jg,QI;function M6(){if(QI)return Jg;QI=1;var e=P6(),t=k6(),r=UH();return Jg=e?function(i){return e(i)}:t?function(i){if(!i||typeof i!="object"&&typeof i!="function")throw new TypeError("getProto: not an object");return t(i)}:r?function(i){return r(i)}:null,Jg}var Hg,ej;function VH(){if(ej)return Hg;ej=1;var e=Function.prototype.call,t=Object.prototype.hasOwnProperty,r=nl();return Hg=r.call(e,t),Hg}var Kg,tj;function D6(){if(tj)return Kg;tj=1;var e,t=T6(),r=AH(),n=OH(),i=CH(),s=RH(),a=I6(),o=tl(),u=TH(),c=IH(),l=jH(),f=PH(),h=kH(),d=NH(),g=MH(),y=qH(),v=Function,_=function(me){try{return v('"use strict"; return ('+me+").constructor;")()}catch{}},b=rl(),S=uh(),w=function(){throw new o},E=b?(function(){try{return arguments.callee,w}catch{try{return b(arguments,"callee").get}catch{return w}}})():w,A=$H()(),R=M6(),I=k6(),O=P6(),D=JO(),P=WO(),F={},M=typeof Uint8Array>"u"||!R?e:R(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?e:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?e:ArrayBuffer,"%ArrayIteratorPrototype%":A&&R?R([][Symbol.iterator]()):e,"%AsyncFromSyncIteratorPrototype%":e,"%AsyncFunction%":F,"%AsyncGenerator%":F,"%AsyncGeneratorFunction%":F,"%AsyncIteratorPrototype%":F,"%Atomics%":typeof Atomics>"u"?e:Atomics,"%BigInt%":typeof BigInt>"u"?e:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?e:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?e:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?e:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":r,"%eval%":eval,"%EvalError%":n,"%Float16Array%":typeof Float16Array>"u"?e:Float16Array,"%Float32Array%":typeof Float32Array>"u"?e:Float32Array,"%Float64Array%":typeof Float64Array>"u"?e:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?e:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":F,"%Int8Array%":typeof Int8Array>"u"?e:Int8Array,"%Int16Array%":typeof Int16Array>"u"?e:Int16Array,"%Int32Array%":typeof Int32Array>"u"?e:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":A&&R?R(R([][Symbol.iterator]())):e,"%JSON%":typeof JSON=="object"?JSON:e,"%Map%":typeof Map>"u"?e:Map,"%MapIteratorPrototype%":typeof Map>"u"||!A||!R?e:R(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":t,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?e:Promise,"%Proxy%":typeof Proxy>"u"?e:Proxy,"%RangeError%":i,"%ReferenceError%":s,"%Reflect%":typeof Reflect>"u"?e:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?e:Set,"%SetIteratorPrototype%":typeof Set>"u"||!A||!R?e:R(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?e:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":A&&R?R(""[Symbol.iterator]()):e,"%Symbol%":A?Symbol:e,"%SyntaxError%":a,"%ThrowTypeError%":E,"%TypedArray%":M,"%TypeError%":o,"%Uint8Array%":typeof Uint8Array>"u"?e:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?e:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?e:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?e:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>"u"?e:WeakMap,"%WeakRef%":typeof WeakRef>"u"?e:WeakRef,"%WeakSet%":typeof WeakSet>"u"?e:WeakSet,"%Function.prototype.call%":P,"%Function.prototype.apply%":D,"%Object.defineProperty%":S,"%Object.getPrototypeOf%":I,"%Math.abs%":c,"%Math.floor%":l,"%Math.max%":f,"%Math.min%":h,"%Math.pow%":d,"%Math.round%":g,"%Math.sign%":y,"%Reflect.getPrototypeOf%":O};if(R)try{null.error}catch(me){var te=R(R(me));K["%Error.prototype%"]=te}var J=function me(Re){var Ne;if(Re==="%AsyncFunction%")Ne=_("async function () {}");else if(Re==="%GeneratorFunction%")Ne=_("function* () {}");else if(Re==="%AsyncGeneratorFunction%")Ne=_("async function* () {}");else if(Re==="%AsyncGenerator%"){var he=me("%AsyncGeneratorFunction%");he&&(Ne=he.prototype)}else if(Re==="%AsyncIteratorPrototype%"){var Te=me("%AsyncGenerator%");Te&&R&&(Ne=R(Te.prototype))}return K[Re]=Ne,Ne},Q={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},re=nl(),ne=VH(),U=re.call(P,Array.prototype.concat),H=re.call(D,Array.prototype.splice),ie=re.call(P,String.prototype.replace),ue=re.call(P,String.prototype.slice),le=re.call(P,RegExp.prototype.exec),ee=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,z=/\\(\\)?/g,V=function(Re){var Ne=ue(Re,0,1),he=ue(Re,-1);if(Ne==="%"&&he!=="%")throw new a("invalid intrinsic syntax, expected closing `%`");if(he==="%"&&Ne!=="%")throw new a("invalid intrinsic syntax, expected opening `%`");var Te=[];return ie(Re,ee,function(Ue,_e,we,Ae){Te[Te.length]=we?ie(Ae,z,"$1"):_e||Ue}),Te},fe=function(Re,Ne){var he=Re,Te;if(ne(Q,he)&&(Te=Q[he],he="%"+Te[0]+"%"),ne(K,he)){var Ue=K[he];if(Ue===F&&(Ue=J(he)),typeof Ue>"u"&&!Ne)throw new o("intrinsic "+Re+" exists, but is not available. Please file an issue!");return{alias:Te,name:he,value:Ue}}throw new a("intrinsic "+Re+" does not exist!")};return Kg=function(Re,Ne){if(typeof Re!="string"||Re.length===0)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof Ne!="boolean")throw new o('"allowMissing" argument must be a boolean');if(le(/^%?[^%]*%?$/,Re)===null)throw new a("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var he=V(Re),Te=he.length>0?he[0]:"",Ue=fe("%"+Te+"%",Ne),_e=Ue.name,we=Ue.value,Ae=!1,B=Ue.alias;B&&(Te=B[0],H(he,U([0,1],B)));for(var T=1,k=!0;T<he.length;T+=1){var W=he[T],se=ue(W,0,1),ce=ue(W,-1);if((se==='"'||se==="'"||se==="`"||ce==='"'||ce==="'"||ce==="`")&&se!==ce)throw new a("property names with quotes must have matching quotes");if((W==="constructor"||!k)&&(Ae=!0),Te+="."+W,_e="%"+Te+"%",ne(K,_e))we=K[_e];else if(we!=null){if(!(W in we)){if(!Ne)throw new o("base intrinsic for "+Re+" exists, but the property is not available.");return}if(b&&T+1>=he.length){var ye=b(we,W);k=!!ye,k&&"get"in ye&&!("originalValue"in ye.get)?we=ye.get:we=we[W]}else k=ne(we,W),we=we[W];k&&!Ae&&(K[_e]=we)}}return we},Kg}var Gg,rj;function q6(){if(rj)return Gg;rj=1;var e=D6(),t=HO(),r=t([e("%String.prototype.indexOf%")]);return Gg=function(i,s){var a=e(i,!!s);return typeof a=="function"&&r(i,".prototype.")>-1?t([a]):a},Gg}var Yg,nj;function zH(){if(nj)return Yg;nj=1;var e=Function.prototype.toString,t=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,r,n;if(typeof t=="function"&&typeof Object.defineProperty=="function")try{r=Object.defineProperty({},"length",{get:function(){throw n}}),n={},t(function(){throw 42},null,r)}catch(b){b!==n&&(t=null)}else t=null;var i=/^\s*class\b/,s=function(S){try{var w=e.call(S);return i.test(w)}catch{return!1}},a=function(S){try{return s(S)?!1:(e.call(S),!0)}catch{return!1}},o=Object.prototype.toString,u="[object Object]",c="[object Function]",l="[object GeneratorFunction]",f="[object HTMLAllCollection]",h="[object HTML document.all class]",d="[object HTMLCollection]",g=typeof Symbol=="function"&&!!Symbol.toStringTag,y=!(0 in[,]),v=function(){return!1};if(typeof document=="object"){var _=document.all;o.call(_)===o.call(document.all)&&(v=function(S){if((y||!S)&&(typeof S>"u"||typeof S=="object"))try{var w=o.call(S);return(w===f||w===h||w===d||w===u)&&S("")==null}catch{}return!1})}return Yg=t?function(S){if(v(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;try{t(S,null,r)}catch(w){if(w!==n)return!1}return!s(S)&&a(S)}:function(S){if(v(S))return!0;if(!S||typeof S!="function"&&typeof S!="object")return!1;if(g)return a(S);if(s(S))return!1;var w=o.call(S);return w!==c&&w!==l&&!/^\[object HTML/.test(w)?!1:a(S)},Yg}var Xg,ij;function WH(){if(ij)return Xg;ij=1;var e=zH(),t=Object.prototype.toString,r=Object.prototype.hasOwnProperty,n=function(u,c,l){for(var f=0,h=u.length;f<h;f++)r.call(u,f)&&(l==null?c(u[f],f,u):c.call(l,u[f],f,u))},i=function(u,c,l){for(var f=0,h=u.length;f<h;f++)l==null?c(u.charAt(f),f,u):c.call(l,u.charAt(f),f,u)},s=function(u,c,l){for(var f in u)r.call(u,f)&&(l==null?c(u[f],f,u):c.call(l,u[f],f,u))};function a(o){return t.call(o)==="[object Array]"}return Xg=function(u,c,l){if(!e(c))throw new TypeError("iterator must be a function");var f;arguments.length>=3&&(f=l),a(u)?n(u,c,f):typeof u=="string"?i(u,c,f):s(u,c,f)},Xg}var Zg,sj;function JH(){return sj||(sj=1,Zg=["Float16Array","Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"]),Zg}var Qg,aj;function HH(){if(aj)return Qg;aj=1;var e=JH(),t=typeof globalThis>"u"?He.commonjsGlobal:globalThis;return Qg=function(){for(var n=[],i=0;i<e.length;i++)typeof t[e[i]]=="function"&&(n[n.length]=e[i]);return n},Qg}var ey={exports:{}},ty,oj;function KH(){if(oj)return ty;oj=1;var e=uh(),t=I6(),r=tl(),n=rl();return ty=function(s,a,o){if(!s||typeof s!="object"&&typeof s!="function")throw new r("`obj` must be an object or a function`");if(typeof a!="string"&&typeof a!="symbol")throw new r("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new r("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new r("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new r("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new r("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,f=arguments.length>6?arguments[6]:!1,h=!!n&&n(s,a);if(e)e(s,a,{configurable:l===null&&h?h.configurable:!l,enumerable:u===null&&h?h.enumerable:!u,value:o,writable:c===null&&h?h.writable:!c});else if(f||!u&&!c&&!l)s[a]=o;else throw new t("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},ty}var ry,uj;function GH(){if(uj)return ry;uj=1;var e=uh(),t=function(){return!!e};return t.hasArrayLengthDefineBug=function(){if(!e)return null;try{return e([],"length",{value:1}).length!==1}catch{return!0}},ry=t,ry}var ny,cj;function YH(){if(cj)return ny;cj=1;var e=D6(),t=KH(),r=GH()(),n=rl(),i=tl(),s=e("%Math.floor%");return ny=function(o,u){if(typeof o!="function")throw new i("`fn` is not a function");if(typeof u!="number"||u<0||u>4294967295||s(u)!==u)throw new i("`length` must be a positive 32-bit integer");var c=arguments.length>2&&!!arguments[2],l=!0,f=!0;if("length"in o&&n){var h=n(o,"length");h&&!h.configurable&&(l=!1),h&&!h.writable&&(f=!1)}return(l||f||!c)&&(r?t(o,"length",u,!0,!0):t(o,"length",u)),o},ny}var iy,lj;function XH(){if(lj)return iy;lj=1;var e=nl(),t=JO(),r=N6();return iy=function(){return r(e,t,arguments)},iy}var fj;function ZH(){return fj||(fj=1,(function(e){var t=YH(),r=uh(),n=HO(),i=XH();e.exports=function(a){var o=n(arguments),u=a.length-(arguments.length-1);return t(o,1+(u>0?u:0),!0)},r?r(e.exports,"apply",{value:i}):e.exports.apply=i})(ey)),ey.exports}var sy,pj;function QH(){if(pj)return sy;pj=1;var e=j6();return sy=function(){return e()&&!!Symbol.toStringTag},sy}var ay,dj;function eK(){if(dj)return ay;dj=1;var e=WH(),t=HH(),r=ZH(),n=q6(),i=rl(),s=M6(),a=n("Object.prototype.toString"),o=QH()(),u=typeof globalThis>"u"?He.commonjsGlobal:globalThis,c=t(),l=n("String.prototype.slice"),f=n("Array.prototype.indexOf",!0)||function(v,_){for(var b=0;b<v.length;b+=1)if(v[b]===_)return b;return-1},h={__proto__:null};o&&i&&s?e(c,function(y){var v=new u[y];if(Symbol.toStringTag in v&&s){var _=s(v),b=i(_,Symbol.toStringTag);if(!b&&_){var S=s(_);b=i(S,Symbol.toStringTag)}h["$"+y]=r(b.get)}}):e(c,function(y){var v=new u[y],_=v.slice||v.set;_&&(h["$"+y]=r(_))});var d=function(v){var _=!1;return e(h,function(b,S){if(!_)try{"$"+b(v)===S&&(_=l(S,1))}catch{}}),_},g=function(v){var _=!1;return e(h,function(b,S){if(!_)try{b(v),_=l(S,1)}catch{}}),_};return ay=function(v){if(!v||typeof v!="object")return!1;if(!o){var _=l(a(v),8,-1);return f(c,_)>-1?_:_!=="Object"?!1:g(v)}return i?d(v):null},ay}var oy,hj;function tK(){if(hj)return oy;hj=1;var e=eK();return oy=function(r){return!!e(r)},oy}var uy,mj;function rK(){if(mj)return uy;mj=1;var e=tl(),t=q6(),r=t("TypedArray.prototype.buffer",!0),n=tK();return uy=r||function(s){if(!n(s))throw new e("Not a Typed Array");return s.buffer},uy}var cy,gj;function nK(){if(gj)return cy;gj=1;var e=wH().Buffer,t=xH(),r=rK(),n=ArrayBuffer.isView||function(u){try{return r(u),!0}catch{return!1}},i=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",a=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return cy=function(u,c){if(e.isBuffer(u))return u.constructor&&!("isBuffer"in u)?e.from(u):u;if(typeof u=="string")return e.from(u,c);if(s&&n(u)){if(u.byteLength===0)return e.alloc(0);if(a){var l=e.from(u.buffer,u.byteOffset,u.byteLength);if(l.byteLength===u.byteLength)return l}var f=u instanceof Uint8Array?u:new Uint8Array(u.buffer,u.byteOffset,u.byteLength),h=e.from(f);if(h.length===u.byteLength)return h}if(i&&u instanceof Uint8Array)return e.from(u);var d=t(u);if(d)for(var g=0;g<u.length;g+=1){var y=u[g];if(typeof y!="number"||y<0||y>255||~~y!==y)throw new RangeError("Array items must be numbers in the range 0-255.")}if(d||e.isBuffer(u)&&u.constructor&&typeof u.constructor.isBuffer=="function"&&u.constructor.isBuffer(u))return e.from(u);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},cy}var F6=nK();const iK=He.getDefaultExportFromCjs(F6),sK=VO({__proto__:null,default:iK},[F6]);var $6=R6();const aK=He.getDefaultExportFromCjs($6),oK=VO({__proto__:null,default:aK},[$6]);function vn(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 uK=typeof Symbol=="function"&&Symbol.observable||"@@observable",yj=uK,vj=()=>Math.random().toString(36).substring(7).split("").join("."),cK={INIT:`@@redux/INIT${vj()}`,REPLACE:`@@redux/REPLACE${vj()}`},bj=cK;function lK(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 fK(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(hK(e))return"date";if(dK(e))return"error";const r=pK(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 pK(e){return typeof e.constructor=="function"?e.constructor.name:null}function dK(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function hK(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function Qs(e){let t=typeof e;return process.env.NODE_ENV!=="production"&&(t=fK(e)),t}function L6(e,t,r){if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?vn(2):`Expected the root reducer to be a function. Instead, received: '${Qs(e)}'`);if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?vn(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"?vn(1):`Expected the enhancer to be a function. Instead, received: '${Qs(r)}'`);return r(L6)(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,_)=>{a.set(_,v)}))}function l(){if(u)throw new Error(process.env.NODE_ENV==="production"?vn(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"?vn(4):`Expected the listener to be a function. Instead, received: '${Qs(v)}'`);if(u)throw new Error(process.env.NODE_ENV==="production"?vn(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 _=!0;c();const b=o++;return a.set(b,v),function(){if(_){if(u)throw new Error(process.env.NODE_ENV==="production"?vn(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.");_=!1,c(),a.delete(b),s=null}}}function h(v){if(!lK(v))throw new Error(process.env.NODE_ENV==="production"?vn(7):`Actions must be plain objects. Instead, the actual type was: '${Qs(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"?vn(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"?vn(17):`Action "type" property must be a string. Instead, the actual type was: '${Qs(v.type)}'. Value was: '${v.type}' (stringified)`);if(u)throw new Error(process.env.NODE_ENV==="production"?vn(9):"Reducers may not dispatch actions.");try{u=!0,i=n(i,v)}finally{u=!1}return(s=a).forEach(b=>{b()}),v}function d(v){if(typeof v!="function")throw new Error(process.env.NODE_ENV==="production"?vn(10):`Expected the nextReducer to be a function. Instead, received: '${Qs(v)}`);n=v,h({type:bj.REPLACE})}function g(){const v=f;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(process.env.NODE_ENV==="production"?vn(11):`Expected the observer to be an object. Instead, received: '${Qs(_)}'`);function b(){const w=_;w.next&&w.next(l())}return b(),{unsubscribe:v(b)}},[yj](){return this}}}return h({type:bj.INIT}),{dispatch:h,subscribe:f,getState:l,replaceReducer:d,[yj]:g}}function _j(e,t){return function(...r){return t(e.apply(this,r))}}function mK(e,t){if(typeof e=="function")return _j(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?vn(16):`bindActionCreators expected an object or a function, but instead received: '${Qs(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]=_j(i,t))}return r}function B6(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,r)=>(...n)=>t(r(...n)))}function gK(...e){return t=>(r,n)=>{const i=t(r,n);let s=()=>{throw new Error(process.env.NODE_ENV==="production"?vn(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=B6(...o)(i.dispatch),{...i,dispatch:s}}}var xp={exports:{}},yK=xp.exports,Ej;function KO(){return Ej||(Ej=1,(function(e,t){(function(r,n){e.exports=n()})(yK,function(){var r=Array.prototype.slice;function n(m,x){x&&(m.prototype=Object.create(x.prototype)),m.prototype.constructor=m}function i(m){return u(m)?m:Te(m)}n(s,i);function s(m){return c(m)?m:Ue(m)}n(a,i);function a(m){return l(m)?m:_e(m)}n(o,i);function o(m){return u(m)&&!f(m)?m:we(m)}function u(m){return!!(m&&m[d])}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 d="@@__IMMUTABLE_ITERABLE__@@",g="@@__IMMUTABLE_KEYED__@@",y="@@__IMMUTABLE_INDEXED__@@",v="@@__IMMUTABLE_ORDERED__@@",_="delete",b=5,S=1<<b,w=S-1,E={},A={value:!1},R={value:!1};function I(m){return m.value=!1,m}function O(m){m&&(m.value=!0)}function D(){}function P(m,x){x=x||0;for(var N=Math.max(0,m.length-x),q=new Array(N),L=0;L<N;L++)q[L]=m[L+x];return q}function F(m){return m.size===void 0&&(m.size=m.__iterate(K)),m.size}function M(m,x){if(typeof x!="number"){var N=x>>>0;if(""+N!==x||N===4294967295)return NaN;x=N}return x<0?F(m)+x:x}function K(){return!0}function te(m,x,N){return(m===0||N!==void 0&&m<=-N)&&(x===void 0||N!==void 0&&x>=N)}function J(m,x){return re(m,x,0)}function Q(m,x){return re(m,x,x)}function re(m,x,N){return m===void 0?N:m<0?Math.max(0,x+m):x===void 0?m:Math.min(x,m)}var ne=0,U=1,H=2,ie=typeof Symbol=="function"&&Symbol.iterator,ue="@@iterator",le=ie||ue;function ee(m){this.next=m}ee.prototype.toString=function(){return"[Iterator]"},ee.KEYS=ne,ee.VALUES=U,ee.ENTRIES=H,ee.prototype.inspect=ee.prototype.toSource=function(){return this.toString()},ee.prototype[le]=function(){return this};function z(m,x,N,q){var L=m===0?x:m===1?N:[x,N];return q?q.value=L:q={value:L,done:!1},q}function V(){return{value:void 0,done:!0}}function fe(m){return!!Ne(m)}function me(m){return m&&typeof m.next=="function"}function Re(m){var x=Ne(m);return x&&x.call(m)}function Ne(m){var x=m&&(ie&&m[ie]||m[ue]);if(typeof x=="function")return x}function he(m){return m&&typeof m.length=="number"}n(Te,i);function Te(m){return m==null?ye():u(m)?m.toSeq():$(m)}Te.of=function(){return Te(arguments)},Te.prototype.toSeq=function(){return this},Te.prototype.toString=function(){return this.__toString("Seq {","}")},Te.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},Te.prototype.__iterate=function(m,x){return j(this,m,x,!0)},Te.prototype.__iterator=function(m,x){return Z(this,m,x,!0)},n(Ue,Te);function Ue(m){return m==null?ye().toKeyedSeq():u(m)?c(m)?m.toSeq():m.fromEntrySeq():Me(m)}Ue.prototype.toKeyedSeq=function(){return this},n(_e,Te);function _e(m){return m==null?ye():u(m)?c(m)?m.entrySeq():m.toIndexedSeq():Xe(m)}_e.of=function(){return _e(arguments)},_e.prototype.toIndexedSeq=function(){return this},_e.prototype.toString=function(){return this.__toString("Seq [","]")},_e.prototype.__iterate=function(m,x){return j(this,m,x,!1)},_e.prototype.__iterator=function(m,x){return Z(this,m,x,!1)},n(we,Te);function we(m){return(m==null?ye():u(m)?c(m)?m.entrySeq():m:Xe(m)).toSetSeq()}we.of=function(){return we(arguments)},we.prototype.toSetSeq=function(){return this},Te.isSeq=se,Te.Keyed=Ue,Te.Set=we,Te.Indexed=_e;var Ae="@@__IMMUTABLE_SEQ__@@";Te.prototype[Ae]=!0,n(B,_e);function B(m){this._array=m,this.size=m.length}B.prototype.get=function(m,x){return this.has(m)?this._array[M(this,m)]:x},B.prototype.__iterate=function(m,x){for(var N=this._array,q=N.length-1,L=0;L<=q;L++)if(m(N[x?q-L:L],L,this)===!1)return L+1;return L},B.prototype.__iterator=function(m,x){var N=this._array,q=N.length-1,L=0;return new ee(function(){return L>q?V():z(m,L,N[x?q-L++:L++])})},n(T,Ue);function T(m){var x=Object.keys(m);this._object=m,this._keys=x,this.size=x.length}T.prototype.get=function(m,x){return x!==void 0&&!this.has(m)?x:this._object[m]},T.prototype.has=function(m){return this._object.hasOwnProperty(m)},T.prototype.__iterate=function(m,x){for(var N=this._object,q=this._keys,L=q.length-1,Y=0;Y<=L;Y++){var oe=q[x?L-Y:Y];if(m(N[oe],oe,this)===!1)return Y+1}return Y},T.prototype.__iterator=function(m,x){var N=this._object,q=this._keys,L=q.length-1,Y=0;return new ee(function(){var oe=q[x?L-Y:Y];return Y++>L?V():z(m,oe,N[oe])})},T.prototype[v]=!0,n(k,_e);function k(m){this._iterable=m,this.size=m.length||m.size}k.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);var N=this._iterable,q=Re(N),L=0;if(me(q))for(var Y;!(Y=q.next()).done&&m(Y.value,L++,this)!==!1;);return L},k.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var N=this._iterable,q=Re(N);if(!me(q))return new ee(V);var L=0;return new ee(function(){var Y=q.next();return Y.done?Y:z(m,L++,Y.value)})},n(W,_e);function W(m){this._iterator=m,this._iteratorCache=[]}W.prototype.__iterateUncached=function(m,x){if(x)return this.cacheResult().__iterate(m,x);for(var N=this._iterator,q=this._iteratorCache,L=0;L<q.length;)if(m(q[L],L++,this)===!1)return L;for(var Y;!(Y=N.next()).done;){var oe=Y.value;if(q[L]=oe,m(oe,L++,this)===!1)break}return L},W.prototype.__iteratorUncached=function(m,x){if(x)return this.cacheResult().__iterator(m,x);var N=this._iterator,q=this._iteratorCache,L=0;return new ee(function(){if(L>=q.length){var Y=N.next();if(Y.done)return Y;q[L]=Y.value}return z(m,L,q[L++])})};function se(m){return!!(m&&m[Ae])}var ce;function ye(){return ce||(ce=new B([]))}function Me(m){var x=Array.isArray(m)?new B(m).fromEntrySeq():me(m)?new W(m).fromEntrySeq():fe(m)?new k(m).fromEntrySeq():typeof m=="object"?new T(m):void 0;if(!x)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+m);return x}function Xe(m){var x=C(m);if(!x)throw new TypeError("Expected Array or iterable object of values: "+m);return x}function $(m){var x=C(m)||typeof m=="object"&&new T(m);if(!x)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+m);return x}function C(m){return he(m)?new B(m):me(m)?new W(m):fe(m)?new k(m):void 0}function j(m,x,N,q){var L=m._cache;if(L){for(var Y=L.length-1,oe=0;oe<=Y;oe++){var ge=L[N?Y-oe:oe];if(x(ge[1],q?ge[0]:oe,m)===!1)return oe+1}return oe}return m.__iterateUncached(x,N)}function Z(m,x,N,q){var L=m._cache;if(L){var Y=L.length-1,oe=0;return new ee(function(){var ge=L[N?Y-oe:oe];return oe++>Y?V():z(x,q?ge[0]:oe-1,ge[1])})}return m.__iteratorUncached(x,N)}function de(m,x){return x?be(x,m,"",{"":m}):Oe(m)}function be(m,x,N,q){return Array.isArray(x)?m.call(q,N,_e(x).map(function(L,Y){return be(m,L,Y,x)})):nt(x)?m.call(q,N,Ue(x).map(function(L,Y){return be(m,L,Y,x)})):x}function Oe(m){return Array.isArray(m)?_e(m).map(Oe).toList():nt(m)?Ue(m).map(Oe).toMap():m}function nt(m){return m&&(m.constructor===Object||m.constructor===void 0)}function it(m,x){if(m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1;if(typeof m.valueOf=="function"&&typeof x.valueOf=="function"){if(m=m.valueOf(),x=x.valueOf(),m===x||m!==m&&x!==x)return!0;if(!m||!x)return!1}return!!(typeof m.equals=="function"&&typeof x.equals=="function"&&m.equals(x))}function It(m,x){if(m===x)return!0;if(!u(x)||m.size!==void 0&&x.size!==void 0&&m.size!==x.size||m.__hash!==void 0&&x.__hash!==void 0&&m.__hash!==x.__hash||c(m)!==c(x)||l(m)!==l(x)||h(m)!==h(x))return!1;if(m.size===0&&x.size===0)return!0;var N=!f(m);if(h(m)){var q=m.entries();return x.every(function(xe,Ce){var ke=q.next().value;return ke&&it(ke[1],xe)&&(N||it(ke[0],Ce))})&&q.next().done}var L=!1;if(m.size===void 0)if(x.size===void 0)typeof m.cacheResult=="function"&&m.cacheResult();else{L=!0;var Y=m;m=x,x=Y}var oe=!0,ge=x.__iterate(function(xe,Ce){if(N?!m.has(xe):L?!it(xe,m.get(Ce,E)):!it(m.get(Ce,E),xe))return oe=!1,!1});return oe&&m.size===ge}n(pt,_e);function pt(m,x){if(!(this instanceof pt))return new pt(m,x);if(this._value=m,this.size=x===void 0?1/0:Math.max(0,x),this.size===0){if(pe)return pe;pe=this}}pt.prototype.toString=function(){return this.size===0?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},pt.prototype.get=function(m,x){return this.has(m)?this._value:x},pt.prototype.includes=function(m){return it(this._value,m)},pt.prototype.slice=function(m,x){var N=this.size;return te(m,x,N)?this:new pt(this._value,Q(x,N)-J(m,N))},pt.prototype.reverse=function(){return this},pt.prototype.indexOf=function(m){return it(this._value,m)?0:-1},pt.prototype.lastIndexOf=function(m){return it(this._value,m)?this.size:-1},pt.prototype.__iterate=function(m,x){for(var N=0;N<this.size;N++)if(m(this._value,N,this)===!1)return N+1;return N},pt.prototype.__iterator=function(m,x){var N=this,q=0;return new ee(function(){return q<N.size?z(m,q++,N._value):V()})},pt.prototype.equals=function(m){return m instanceof pt?it(this._value,m._value):It(m)};var pe;function je(m,x){if(!m)throw new Error(x)}n(De,_e);function De(m,x,N){if(!(this instanceof De))return new De(m,x,N);if(je(N!==0,"Cannot step a Range by 0"),m=m||0,x===void 0&&(x=1/0),N=N===void 0?1:Math.abs(N),x<m&&(N=-N),this._start=m,this._end=x,this._step=N,this.size=Math.max(0,Math.ceil((x-m)/N-1)+1),this.size===0){if(et)return et;et=this}}De.prototype.toString=function(){return this.size===0?"Range []":"Range [ "+this._start+"..."+this._end+(this._step!==1?" by "+this._step:"")+" ]"},De.prototype.get=function(m,x){return this.has(m)?this._start+M(this,m)*this._step:x},De.prototype.includes=function(m){var x=(m-this._start)/this._step;return x>=0&&x<this.size&&x===Math.floor(x)},De.prototype.slice=function(m,x){return te(m,x,this.size)?this:(m=J(m,this.size),x=Q(x,this.size),x<=m?new De(0,0):new De(this.get(m,this._end),this.get(x,this._end),this._step))},De.prototype.indexOf=function(m){var x=m-this._start;if(x%this._step===0){var N=x/this._step;if(N>=0&&N<this.size)return N}return-1},De.prototype.lastIndexOf=function(m){return this.indexOf(m)},De.prototype.__iterate=function(m,x){for(var N=this.size-1,q=this._step,L=x?this._start+N*q:this._start,Y=0;Y<=N;Y++){if(m(L,Y,this)===!1)return Y+1;L+=x?-q:q}return Y},De.prototype.__iterator=function(m,x){var N=this.size-1,q=this._step,L=x?this._start+N*q:this._start,Y=0;return new ee(function(){var oe=L;return L+=x?-q:q,Y>N?V():z(m,Y++,oe)})},De.prototype.equals=function(m){return m instanceof De?this._start===m._start&&this._end===m._end&&this._step===m._step:It(this,m)};var et;n(vt,i);function vt(){throw TypeError("Abstract")}n(gt,vt);function gt(){}n(Kt,vt);function Kt(){}n(Je,vt);function Je(){}vt.Keyed=gt,vt.Indexed=Kt,vt.Set=Je;var Be=typeof Math.imul=="function"&&Math.imul(4294967295,2)===-2?Math.imul:function(x,N){x=x|0,N=N|0;var q=x&65535,L=N&65535;return q*L+((x>>>16)*L+q*(N>>>16)<<16>>>0)|0};function ut(m){return m>>>1&1073741824|m&3221225471}function ot(m){if(m===!1||m===null||m===void 0||typeof m.valueOf=="function"&&(m=m.valueOf(),m===!1||m===null||m===void 0))return 0;if(m===!0)return 1;var x=typeof m;if(x==="number"){if(m!==m||m===1/0)return 0;var N=m|0;for(N!==m&&(N^=m*4294967295);m>4294967295;)m/=4294967295,N^=m;return ut(N)}if(x==="string")return m.length>xo?Qt(m):sn(m);if(typeof m.hashCode=="function")return m.hashCode();if(x==="object")return Ws(m);if(typeof m.toString=="function")return sn(m.toString());throw new Error("Value type "+x+" cannot be hashed.")}function Qt(m){var x=Gi[m];return x===void 0&&(x=sn(m),Ks===hn&&(Ks=0,Gi={}),Ks++,Gi[m]=x),x}function sn(m){for(var x=0,N=0;N<m.length;N++)x=31*x+m.charCodeAt(N)|0;return ut(x)}function Ws(m){var x;if(Bn&&(x=Js.get(m),x!==void 0)||(x=m[an],x!==void 0)||!wo&&(x=m.propertyIsEnumerable&&m.propertyIsEnumerable[an],x!==void 0||(x=Rn(m),x!==void 0)))return x;if(x=++Hs,Hs&1073741824&&(Hs=0),Bn)Js.set(m,x);else{if(ws!==void 0&&ws(m)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(wo)Object.defineProperty(m,an,{enumerable:!1,configurable:!1,writable:!1,value:x});else if(m.propertyIsEnumerable!==void 0&&m.propertyIsEnumerable===m.constructor.prototype.propertyIsEnumerable)m.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},m.propertyIsEnumerable[an]=x;else if(m.nodeType!==void 0)m[an]=x;else throw new Error("Unable to set a non-enumerable property on object.")}return x}var ws=Object.isExtensible,wo=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function Rn(m){if(m&&m.nodeType>0)switch(m.nodeType){case 1:return m.uniqueID;case 9:return m.documentElement&&m.documentElement.uniqueID}}var Bn=typeof WeakMap=="function",Js;Bn&&(Js=new WeakMap);var Hs=0,an="__immutablehash__";typeof Symbol=="function"&&(an=Symbol(an));var xo=16,hn=255,Ks=0,Gi={};function Mr(m){je(m!==1/0,"Cannot perform this action with an infinite size.")}n(xt,gt);function xt(m){return m==null?Ke():ja(m)&&!h(m)?m:Ke().withMutations(function(x){var N=s(m);Mr(N.size),N.forEach(function(q,L){return x.set(L,q)})})}xt.of=function(){var m=r.call(arguments,0);return Ke().withMutations(function(x){for(var N=0;N<m.length;N+=2){if(N+1>=m.length)throw new Error("Missing value for key: "+m[N]);x.set(m[N],m[N+1])}})},xt.prototype.toString=function(){return this.__toString("Map {","}")},xt.prototype.get=function(m,x){return this._root?this._root.get(0,void 0,m,x):x},xt.prototype.set=function(m,x){return St(this,m,x)},xt.prototype.setIn=function(m,x){return this.updateIn(m,E,function(){return x})},xt.prototype.remove=function(m){return St(this,m,E)},xt.prototype.deleteIn=function(m){return this.updateIn(m,function(){return E})},xt.prototype.update=function(m,x,N){return arguments.length===1?m(this):this.updateIn([m],x,N)},xt.prototype.updateIn=function(m,x,N){N||(N=x,x=void 0);var q=qf(this,zT(m),x,N);return q===E?void 0:q},xt.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ke()},xt.prototype.merge=function(){return Un(this,void 0,arguments)},xt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return Un(this,m,x)},xt.prototype.mergeIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,Ke(),function(N){return typeof N.merge=="function"?N.merge.apply(N,x):x[x.length-1]})},xt.prototype.mergeDeep=function(){return Un(this,Nf,arguments)},xt.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return Un(this,Mf(m),x)},xt.prototype.mergeDeepIn=function(m){var x=r.call(arguments,1);return this.updateIn(m,Ke(),function(N){return typeof N.mergeDeep=="function"?N.mergeDeep.apply(N,x):x[x.length-1]})},xt.prototype.sort=function(m){return xr(Ro(this,m))},xt.prototype.sortBy=function(m,x){return xr(Ro(this,x,m))},xt.prototype.withMutations=function(m){var x=this.asMutable();return m(x),x.wasAltered()?x.__ensureOwner(this.__ownerID):this},xt.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new D)},xt.prototype.asImmutable=function(){return this.__ensureOwner()},xt.prototype.wasAltered=function(){return this.__altered},xt.prototype.__iterator=function(m,x){return new Ar(this,m,x)},xt.prototype.__iterate=function(m,x){var N=this,q=0;return this._root&&this._root.iterate(function(L){return q++,m(L[1],L[0],N)},x),q},xt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?xs(this.size,this._root,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)};function ja(m){return!!(m&&m[tt])}xt.isMap=ja;var tt="@@__IMMUTABLE_MAP__@@",ae=xt.prototype;ae[tt]=!0,ae[_]=ae.remove,ae.removeIn=ae.deleteIn;function qe(m,x){this.ownerID=m,this.entries=x}qe.prototype.get=function(m,x,N,q){for(var L=this.entries,Y=0,oe=L.length;Y<oe;Y++)if(it(N,L[Y][0]))return L[Y][1];return q},qe.prototype.update=function(m,x,N,q,L,Y,oe){for(var ge=L===E,xe=this.entries,Ce=0,ke=xe.length;Ce<ke&&!it(q,xe[Ce][0]);Ce++);var Ge=Ce<ke;if(Ge?xe[Ce][1]===L:ge)return this;if(O(oe),(ge||!Ge)&&O(Y),!(ge&&xe.length===1)){if(!Ge&&!ge&&xe.length>=zu)return ii(m,xe,q,L);var Qe=m&&m===this.ownerID,mt=Qe?xe:P(xe);return Ge?ge?Ce===ke-1?mt.pop():mt[Ce]=mt.pop():mt[Ce]=[q,L]:mt.push([q,L]),Qe?(this.entries=mt,this):new qe(m,mt)}};function Ve(m,x,N){this.ownerID=m,this.bitmap=x,this.nodes=N}Ve.prototype.get=function(m,x,N,q){x===void 0&&(x=ot(N));var L=1<<((m===0?x:x>>>m)&w),Y=this.bitmap;return(Y&L)===0?q:this.nodes[Pa(Y&L-1)].get(m+b,x,N,q)},Ve.prototype.update=function(m,x,N,q,L,Y,oe){N===void 0&&(N=ot(q));var ge=(x===0?N:N>>>x)&w,xe=1<<ge,Ce=this.bitmap,ke=(Ce&xe)!==0;if(!ke&&L===E)return this;var Ge=Pa(Ce&xe-1),Qe=this.nodes,mt=ke?Qe[Ge]:void 0,Ct=Vt(mt,m,x+b,N,q,L,Y,oe);if(Ct===mt)return this;if(!ke&&Ct&&Qe.length>=At)return ai(m,Qe,Ce,ge,Ct);if(ke&&!Ct&&Qe.length===2&&wr(Qe[Ge^1]))return Qe[Ge^1];if(ke&&Ct&&Qe.length===1&&wr(Ct))return Ct;var pr=m&&m===this.ownerID,Ti=ke?Ct?Ce:Ce^xe:Ce|xe,Qi=ke?Ct?Vu(Qe,Ge,Ct,pr):Ym(Qe,Ge,pr):Gs(Qe,Ge,Ct,pr);return pr?(this.bitmap=Ti,this.nodes=Qi,this):new Ve(m,Ti,Qi)};function Mt(m,x,N){this.ownerID=m,this.count=x,this.nodes=N}Mt.prototype.get=function(m,x,N,q){x===void 0&&(x=ot(N));var L=(m===0?x:x>>>m)&w,Y=this.nodes[L];return Y?Y.get(m+b,x,N,q):q},Mt.prototype.update=function(m,x,N,q,L,Y,oe){N===void 0&&(N=ot(q));var ge=(x===0?N:N>>>x)&w,xe=L===E,Ce=this.nodes,ke=Ce[ge];if(xe&&!ke)return this;var Ge=Vt(ke,m,x+b,N,q,L,Y,oe);if(Ge===ke)return this;var Qe=this.count;if(!ke)Qe++;else if(!Ge&&(Qe--,Qe<Ff))return si(m,Ce,Qe,ge);var mt=m&&m===this.ownerID,Ct=Vu(Ce,ge,Ge,mt);return mt?(this.count=Qe,this.nodes=Ct,this):new Mt(m,Qe,Ct)};function nr(m,x,N){this.ownerID=m,this.keyHash=x,this.entries=N}nr.prototype.get=function(m,x,N,q){for(var L=this.entries,Y=0,oe=L.length;Y<oe;Y++)if(it(N,L[Y][0]))return L[Y][1];return q},nr.prototype.update=function(m,x,N,q,L,Y,oe){N===void 0&&(N=ot(q));var ge=L===E;if(N!==this.keyHash)return ge?this:(O(oe),O(Y),Ri(this,m,x,N,[q,L]));for(var xe=this.entries,Ce=0,ke=xe.length;Ce<ke&&!it(q,xe[Ce][0]);Ce++);var Ge=Ce<ke;if(Ge?xe[Ce][1]===L:ge)return this;if(O(oe),(ge||!Ge)&&O(Y),ge&&ke===2)return new Ft(m,this.keyHash,xe[Ce^1]);var Qe=m&&m===this.ownerID,mt=Qe?xe:P(xe);return Ge?ge?Ce===ke-1?mt.pop():mt[Ce]=mt.pop():mt[Ce]=[q,L]:mt.push([q,L]),Qe?(this.entries=mt,this):new nr(m,this.keyHash,mt)};function Ft(m,x,N){this.ownerID=m,this.keyHash=x,this.entry=N}Ft.prototype.get=function(m,x,N,q){return it(N,this.entry[0])?this.entry[1]:q},Ft.prototype.update=function(m,x,N,q,L,Y,oe){var ge=L===E,xe=it(q,this.entry[0]);if(xe?L===this.entry[1]:ge)return this;if(O(oe),ge){O(Y);return}return xe?m&&m===this.ownerID?(this.entry[1]=L,this):new Ft(m,this.keyHash,[q,L]):(O(Y),Ri(this,m,x,ot(q),[q,L]))},qe.prototype.iterate=nr.prototype.iterate=function(m,x){for(var N=this.entries,q=0,L=N.length-1;q<=L;q++)if(m(N[x?L-q:q])===!1)return!1},Ve.prototype.iterate=Mt.prototype.iterate=function(m,x){for(var N=this.nodes,q=0,L=N.length-1;q<=L;q++){var Y=N[x?L-q:q];if(Y&&Y.iterate(m,x)===!1)return!1}},Ft.prototype.iterate=function(m,x){return m(this.entry)},n(Ar,ee);function Ar(m,x,N){this._type=x,this._reverse=N,this._stack=m._root&&Ci(m._root)}Ar.prototype.next=function(){for(var m=this._type,x=this._stack;x;){var N=x.node,q=x.index++,L;if(N.entry){if(q===0)return Lr(m,N.entry)}else if(N.entries){if(L=N.entries.length-1,q<=L)return Lr(m,N.entries[this._reverse?L-q:q])}else if(L=N.nodes.length-1,q<=L){var Y=N.nodes[this._reverse?L-q:q];if(Y){if(Y.entry)return Lr(m,Y.entry);x=this._stack=Ci(Y,x)}continue}x=this._stack=this._stack.__prev}return V()};function Lr(m,x){return z(m,x[0],x[1])}function Ci(m,x){return{node:m,index:0,__prev:x}}function xs(m,x,N,q){var L=Object.create(ae);return L.size=m,L._root=x,L.__ownerID=N,L.__hash=q,L.__altered=!1,L}var Pe;function Ke(){return Pe||(Pe=xs(0))}function St(m,x,N){var q,L;if(m._root){var Y=I(A),oe=I(R);if(q=Vt(m._root,m.__ownerID,0,void 0,x,N,Y,oe),!oe.value)return m;L=m.size+(Y.value?N===E?-1:1:0)}else{if(N===E)return m;L=1,q=new qe(m.__ownerID,[[x,N]])}return m.__ownerID?(m.size=L,m._root=q,m.__hash=void 0,m.__altered=!0,m):q?xs(L,q):Ke()}function Vt(m,x,N,q,L,Y,oe,ge){return m?m.update(x,N,q,L,Y,oe,ge):Y===E?m:(O(ge),O(oe),new Ft(x,q,[L,Y]))}function wr(m){return m.constructor===Ft||m.constructor===nr}function Ri(m,x,N,q,L){if(m.keyHash===q)return new nr(x,q,[m.entry,L]);var Y=(N===0?m.keyHash:m.keyHash>>>N)&w,oe=(N===0?q:q>>>N)&w,ge,xe=Y===oe?[Ri(m,x,N+b,q,L)]:(ge=new Ft(x,q,L),Y<oe?[m,ge]:[ge,m]);return new Ve(x,1<<Y|1<<oe,xe)}function ii(m,x,N,q){m||(m=new D);for(var L=new Ft(m,ot(N),[N,q]),Y=0;Y<x.length;Y++){var oe=x[Y];L=L.update(m,0,void 0,oe[0],oe[1])}return L}function si(m,x,N,q){for(var L=0,Y=0,oe=new Array(N),ge=0,xe=1,Ce=x.length;ge<Ce;ge++,xe<<=1){var ke=x[ge];ke!==void 0&&ge!==q&&(L|=xe,oe[Y++]=ke)}return new Ve(m,L,oe)}function ai(m,x,N,q,L){for(var Y=0,oe=new Array(S),ge=0;N!==0;ge++,N>>>=1)oe[ge]=N&1?x[Y++]:void 0;return oe[q]=L,new Mt(m,Y+1,oe)}function Un(m,x,N){for(var q=[],L=0;L<N.length;L++){var Y=N[L],oe=s(Y);u(Y)||(oe=oe.map(function(ge){return de(ge)})),q.push(oe)}return Df(m,x,q)}function Nf(m,x,N){return m&&m.mergeDeep&&u(x)?m.mergeDeep(x):it(m,x)?m:x}function Mf(m){return function(x,N,q){if(x&&x.mergeDeepWith&&u(N))return x.mergeDeepWith(m,N);var L=m(x,N,q);return it(x,L)?x:L}}function Df(m,x,N){return N=N.filter(function(q){return q.size!==0}),N.length===0?m:m.size===0&&!m.__ownerID&&N.length===1?m.constructor(N[0]):m.withMutations(function(q){for(var L=x?function(oe,ge){q.update(ge,E,function(xe){return xe===E?oe:x(xe,oe,ge)})}:function(oe,ge){q.set(ge,oe)},Y=0;Y<N.length;Y++)N[Y].forEach(L)})}function qf(m,x,N,q){var L=m===E,Y=x.next();if(Y.done){var oe=L?N:m,ge=q(oe);return ge===oe?m:ge}je(L||m&&m.set,"invalid keyPath");var xe=Y.value,Ce=L?E:m.get(xe,E),ke=qf(Ce,x,N,q);return ke===Ce?m:ke===E?m.remove(xe):(L?Ke():m).set(xe,ke)}function Pa(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 Vu(m,x,N,q){var L=q?m:P(m);return L[x]=N,L}function Gs(m,x,N,q){var L=m.length+1;if(q&&x+1===L)return m[x]=N,m;for(var Y=new Array(L),oe=0,ge=0;ge<L;ge++)ge===x?(Y[ge]=N,oe=-1):Y[ge]=m[ge+oe];return Y}function Ym(m,x,N){var q=m.length-1;if(N&&x===q)return m.pop(),m;for(var L=new Array(q),Y=0,oe=0;oe<q;oe++)oe===x&&(Y=1),L[oe]=m[oe+Y];return L}var zu=S/4,At=S/2,Ff=S/4;n(bt,Kt);function bt(m){var x=$t();if(m==null)return x;if(mr(m))return m;var N=a(m),q=N.size;return q===0?x:(Mr(q),q>0&&q<S?st(0,q,b,null,new oi(N.toArray())):x.withMutations(function(L){L.setSize(q),N.forEach(function(Y,oe){return L.set(oe,Y)})}))}bt.of=function(){return this(arguments)},bt.prototype.toString=function(){return this.__toString("List [","]")},bt.prototype.get=function(m,x){if(m=M(this,m),m>=0&&m<this.size){m+=this._origin;var N=IT(this,m);return N&&N.array[m&w]}return x},bt.prototype.set=function(m,x){return on(this,m,x)},bt.prototype.remove=function(m){return this.has(m)?m===0?this.shift():m===this.size-1?this.pop():this.splice(m,1):this},bt.prototype.insert=function(m,x){return this.splice(m,0,x)},bt.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):$t()},bt.prototype.push=function(){var m=arguments,x=this.size;return this.withMutations(function(N){Zs(N,0,x+m.length);for(var q=0;q<m.length;q++)N.set(x+q,m[q])})},bt.prototype.pop=function(){return Zs(this,0,-1)},bt.prototype.unshift=function(){var m=arguments;return this.withMutations(function(x){Zs(x,-m.length);for(var N=0;N<m.length;N++)x.set(N,m[N])})},bt.prototype.shift=function(){return Zs(this,1)},bt.prototype.merge=function(){return $f(this,void 0,arguments)},bt.prototype.mergeWith=function(m){var x=r.call(arguments,1);return $f(this,m,x)},bt.prototype.mergeDeep=function(){return $f(this,Nf,arguments)},bt.prototype.mergeDeepWith=function(m){var x=r.call(arguments,1);return $f(this,Mf(m),x)},bt.prototype.setSize=function(m){return Zs(this,0,m)},bt.prototype.slice=function(m,x){var N=this.size;return te(m,x,N)?this:Zs(this,J(m,N),Q(x,N))},bt.prototype.__iterator=function(m,x){var N=0,q=rt(this,x);return new ee(function(){var L=q();return L===As?V():z(m,N++,L)})},bt.prototype.__iterate=function(m,x){for(var N=0,q=rt(this,x),L;(L=q())!==As&&m(L,N++,this)!==!1;);return N},bt.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?st(this._origin,this._capacity,this._level,this._root,this._tail,m,this.__hash):(this.__ownerID=m,this)};function mr(m){return!!(m&&m[ka])}bt.isList=mr;var ka="@@__IMMUTABLE_LIST__@@",yr=bt.prototype;yr[ka]=!0,yr[_]=yr.remove,yr.setIn=ae.setIn,yr.deleteIn=yr.removeIn=ae.removeIn,yr.update=ae.update,yr.updateIn=ae.updateIn,yr.mergeIn=ae.mergeIn,yr.mergeDeepIn=ae.mergeDeepIn,yr.withMutations=ae.withMutations,yr.asMutable=ae.asMutable,yr.asImmutable=ae.asImmutable,yr.wasAltered=ae.wasAltered;function oi(m,x){this.array=m,this.ownerID=x}oi.prototype.removeBefore=function(m,x,N){if(N===x?1<<x:this.array.length===0)return this;var q=N>>>x&w;if(q>=this.array.length)return new oi([],m);var L=q===0,Y;if(x>0){var oe=this.array[q];if(Y=oe&&oe.removeBefore(m,x-b,N),Y===oe&&L)return this}if(L&&!Y)return this;var ge=Xs(this,m);if(!L)for(var xe=0;xe<q;xe++)ge.array[xe]=void 0;return Y&&(ge.array[q]=Y),ge},oi.prototype.removeAfter=function(m,x,N){if(N===(x?1<<x:0)||this.array.length===0)return this;var q=N-1>>>x&w;if(q>=this.array.length)return this;var L;if(x>0){var Y=this.array[q];if(L=Y&&Y.removeAfter(m,x-b,N),L===Y&&q===this.array.length-1)return this}var oe=Xs(this,m);return oe.array.splice(q+1),L&&(oe.array[q]=L),oe};var As={};function rt(m,x){var N=m._origin,q=m._capacity,L=Wu(q),Y=m._tail;return oe(m._root,m._level,0);function oe(Ce,ke,Ge){return ke===0?ge(Ce,Ge):xe(Ce,ke,Ge)}function ge(Ce,ke){var Ge=ke===L?Y&&Y.array:Ce&&Ce.array,Qe=ke>N?0:N-ke,mt=q-ke;return mt>S&&(mt=S),function(){if(Qe===mt)return As;var Ct=x?--mt:Qe++;return Ge&&Ge[Ct]}}function xe(Ce,ke,Ge){var Qe,mt=Ce&&Ce.array,Ct=Ge>N?0:N-Ge>>ke,pr=(q-Ge>>ke)+1;return pr>S&&(pr=S),function(){do{if(Qe){var Ti=Qe();if(Ti!==As)return Ti;Qe=null}if(Ct===pr)return As;var Qi=x?--pr:Ct++;Qe=oe(mt&&mt[Qi],ke-b,Ge+(Qi<<ke))}while(!0)}}}function st(m,x,N,q,L,Y,oe){var ge=Object.create(yr);return ge.size=x-m,ge._origin=m,ge._capacity=x,ge._level=N,ge._root=q,ge._tail=L,ge.__ownerID=Y,ge.__hash=oe,ge.__altered=!1,ge}var wt;function $t(){return wt||(wt=st(0,0,b))}function on(m,x,N){if(x=M(m,x),x!==x)return m;if(x>=m.size||x<0)return m.withMutations(function(oe){x<0?Zs(oe,x).set(0,N):Zs(oe,0,x+1).set(x,N)});x+=m._origin;var q=m._tail,L=m._root,Y=I(R);return x>=Wu(m._capacity)?q=Ys(q,m.__ownerID,0,x,N,Y):L=Ys(L,m.__ownerID,m._level,x,N,Y),Y.value?m.__ownerID?(m._root=L,m._tail=q,m.__hash=void 0,m.__altered=!0,m):st(m._origin,m._capacity,m._level,L,q):m}function Ys(m,x,N,q,L,Y){var oe=q>>>N&w,ge=m&&oe<m.array.length;if(!ge&&L===void 0)return m;var xe;if(N>0){var Ce=m&&m.array[oe],ke=Ys(Ce,x,N-b,q,L,Y);return ke===Ce?m:(xe=Xs(m,x),xe.array[oe]=ke,xe)}return ge&&m.array[oe]===L?m:(O(Y),xe=Xs(m,x),L===void 0&&oe===xe.array.length-1?xe.array.pop():xe.array[oe]=L,xe)}function Xs(m,x){return x&&m&&x===m.ownerID?m:new oi(m?m.array.slice():[],x)}function IT(m,x){if(x>=Wu(m._capacity))return m._tail;if(x<1<<m._level+b){for(var N=m._root,q=m._level;N&&q>0;)N=N.array[x>>>q&w],q-=b;return N}}function Zs(m,x,N){x!==void 0&&(x=x|0),N!==void 0&&(N=N|0);var q=m.__ownerID||new D,L=m._origin,Y=m._capacity,oe=L+x,ge=N===void 0?Y:N<0?Y+N:L+N;if(oe===L&&ge===Y)return m;if(oe>=ge)return m.clear();for(var xe=m._level,Ce=m._root,ke=0;oe+ke<0;)Ce=new oi(Ce&&Ce.array.length?[void 0,Ce]:[],q),xe+=b,ke+=1<<xe;ke&&(oe+=ke,L+=ke,ge+=ke,Y+=ke);for(var Ge=Wu(Y),Qe=Wu(ge);Qe>=1<<xe+b;)Ce=new oi(Ce&&Ce.array.length?[Ce]:[],q),xe+=b;var mt=m._tail,Ct=Qe<Ge?IT(m,ge-1):Qe>Ge?new oi([],q):mt;if(mt&&Qe>Ge&&oe<Y&&mt.array.length){Ce=Xs(Ce,q);for(var pr=Ce,Ti=xe;Ti>b;Ti-=b){var Qi=Ge>>>Ti&w;pr=pr.array[Qi]=Xs(pr.array[Qi],q)}pr.array[Ge>>>b&w]=mt}if(ge<Y&&(Ct=Ct&&Ct.removeAfter(q,0,ge)),oe>=Qe)oe-=Qe,ge-=Qe,xe=b,Ce=null,Ct=Ct&&Ct.removeBefore(q,0,oe);else if(oe>L||Qe<Ge){for(ke=0;Ce;){var Jf=oe>>>xe&w;if(Jf!==Qe>>>xe&w)break;Jf&&(ke+=(1<<xe)*Jf),xe-=b,Ce=Ce.array[Jf]}Ce&&oe>L&&(Ce=Ce.removeBefore(q,xe,oe-ke)),Ce&&Qe<Ge&&(Ce=Ce.removeAfter(q,xe,Qe-ke)),ke&&(oe-=ke,ge-=ke)}return m.__ownerID?(m.size=ge-oe,m._origin=oe,m._capacity=ge,m._level=xe,m._root=Ce,m._tail=Ct,m.__hash=void 0,m.__altered=!0,m):st(oe,ge,xe,Ce,Ct)}function $f(m,x,N){for(var q=[],L=0,Y=0;Y<N.length;Y++){var oe=N[Y],ge=a(oe);ge.size>L&&(L=ge.size),u(oe)||(ge=ge.map(function(xe){return de(xe)})),q.push(ge)}return L>m.size&&(m=m.setSize(L)),Df(m,x,q)}function Wu(m){return m<S?0:m-1>>>b<<b}n(xr,xt);function xr(m){return m==null?Lf():jT(m)?m:Lf().withMutations(function(x){var N=s(m);Mr(N.size),N.forEach(function(q,L){return x.set(L,q)})})}xr.of=function(){return this(arguments)},xr.prototype.toString=function(){return this.__toString("OrderedMap {","}")},xr.prototype.get=function(m,x){var N=this._map.get(m);return N!==void 0?this._list.get(N)[1]:x},xr.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this):Lf()},xr.prototype.set=function(m,x){return kT(this,m,x)},xr.prototype.remove=function(m){return kT(this,m,E)},xr.prototype.wasAltered=function(){return this._map.wasAltered()||this._list.wasAltered()},xr.prototype.__iterate=function(m,x){var N=this;return this._list.__iterate(function(q){return q&&m(q[1],q[0],N)},x)},xr.prototype.__iterator=function(m,x){return this._list.fromEntrySeq().__iterator(m,x)},xr.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m),N=this._list.__ensureOwner(m);return m?Xm(x,N,m,this.__hash):(this.__ownerID=m,this._map=x,this._list=N,this)};function jT(m){return ja(m)&&h(m)}xr.isOrderedMap=jT,xr.prototype[v]=!0,xr.prototype[_]=xr.prototype.remove;function Xm(m,x,N,q){var L=Object.create(xr.prototype);return L.size=m?m.size:0,L._map=m,L._list=x,L.__ownerID=N,L.__hash=q,L}var PT;function Lf(){return PT||(PT=Xm(Ke(),$t()))}function kT(m,x,N){var q=m._map,L=m._list,Y=q.get(x),oe=Y!==void 0,ge,xe;if(N===E){if(!oe)return m;L.size>=S&&L.size>=q.size*2?(xe=L.filter(function(Ce,ke){return Ce!==void 0&&Y!==ke}),ge=xe.toKeyedSeq().map(function(Ce){return Ce[0]}).flip().toMap(),m.__ownerID&&(ge.__ownerID=xe.__ownerID=m.__ownerID)):(ge=q.remove(x),xe=Y===L.size-1?L.pop():L.set(Y,void 0))}else if(oe){if(N===L.get(Y)[1])return m;ge=q,xe=L.set(Y,[x,N])}else ge=q.set(x,L.size),xe=L.set(L.size,[x,N]);return m.__ownerID?(m.size=ge.size,m._map=ge,m._list=xe,m.__hash=void 0,m):Xm(ge,xe)}n(ui,Ue);function ui(m,x){this._iter=m,this._useKeys=x,this.size=m.size}ui.prototype.get=function(m,x){return this._iter.get(m,x)},ui.prototype.has=function(m){return this._iter.has(m)},ui.prototype.valueSeq=function(){return this._iter.valueSeq()},ui.prototype.reverse=function(){var m=this,x=Zm(this,!0);return this._useKeys||(x.valueSeq=function(){return m._iter.toSeq().reverse()}),x},ui.prototype.map=function(m,x){var N=this,q=MT(this,m,x);return this._useKeys||(q.valueSeq=function(){return N._iter.toSeq().map(m,x)}),q},ui.prototype.__iterate=function(m,x){var N=this,q;return this._iter.__iterate(this._useKeys?function(L,Y){return m(L,Y,N)}:(q=x?BT(this):0,function(L){return m(L,x?--q:q++,N)}),x)},ui.prototype.__iterator=function(m,x){if(this._useKeys)return this._iter.__iterator(m,x);var N=this._iter.__iterator(U,x),q=x?BT(this):0;return new ee(function(){var L=N.next();return L.done?L:z(m,x?--q:q++,L.value,L)})},ui.prototype[v]=!0,n(Ao,_e);function Ao(m){this._iter=m,this.size=m.size}Ao.prototype.includes=function(m){return this._iter.includes(m)},Ao.prototype.__iterate=function(m,x){var N=this,q=0;return this._iter.__iterate(function(L){return m(L,q++,N)},x)},Ao.prototype.__iterator=function(m,x){var N=this._iter.__iterator(U,x),q=0;return new ee(function(){var L=N.next();return L.done?L:z(m,q++,L.value,L)})},n(Oo,we);function Oo(m){this._iter=m,this.size=m.size}Oo.prototype.has=function(m){return this._iter.includes(m)},Oo.prototype.__iterate=function(m,x){var N=this;return this._iter.__iterate(function(q){return m(q,q,N)},x)},Oo.prototype.__iterator=function(m,x){var N=this._iter.__iterator(U,x);return new ee(function(){var q=N.next();return q.done?q:z(m,q.value,q.value,q)})},n(Co,Ue);function Co(m){this._iter=m,this.size=m.size}Co.prototype.entrySeq=function(){return this._iter.toSeq()},Co.prototype.__iterate=function(m,x){var N=this;return this._iter.__iterate(function(q){if(q){LT(q);var L=u(q);return m(L?q.get(1):q[1],L?q.get(0):q[0],N)}},x)},Co.prototype.__iterator=function(m,x){var N=this._iter.__iterator(U,x);return new ee(function(){for(;;){var q=N.next();if(q.done)return q;var L=q.value;if(L){LT(L);var Y=u(L);return z(m,Y?L.get(0):L[0],Y?L.get(1):L[1],q)}}})},Ao.prototype.cacheResult=ui.prototype.cacheResult=Oo.prototype.cacheResult=Co.prototype.cacheResult=tg;function NT(m){var x=Yi(m);return x._iter=m,x.size=m.size,x.flip=function(){return m},x.reverse=function(){var N=m.reverse.apply(this);return N.flip=function(){return m.reverse()},N},x.has=function(N){return m.includes(N)},x.includes=function(N){return m.has(N)},x.cacheResult=tg,x.__iterateUncached=function(N,q){var L=this;return m.__iterate(function(Y,oe){return N(oe,Y,L)!==!1},q)},x.__iteratorUncached=function(N,q){if(N===H){var L=m.__iterator(N,q);return new ee(function(){var Y=L.next();if(!Y.done){var oe=Y.value[0];Y.value[0]=Y.value[1],Y.value[1]=oe}return Y})}return m.__iterator(N===U?ne:U,q)},x}function MT(m,x,N){var q=Yi(m);return q.size=m.size,q.has=function(L){return m.has(L)},q.get=function(L,Y){var oe=m.get(L,E);return oe===E?Y:x.call(N,oe,L,m)},q.__iterateUncached=function(L,Y){var oe=this;return m.__iterate(function(ge,xe,Ce){return L(x.call(N,ge,xe,Ce),xe,oe)!==!1},Y)},q.__iteratorUncached=function(L,Y){var oe=m.__iterator(H,Y);return new ee(function(){var ge=oe.next();if(ge.done)return ge;var xe=ge.value,Ce=xe[0];return z(L,Ce,x.call(N,xe[1],Ce,m),ge)})},q}function Zm(m,x){var N=Yi(m);return N._iter=m,N.size=m.size,N.reverse=function(){return m},m.flip&&(N.flip=function(){var q=NT(m);return q.reverse=function(){return m.flip()},q}),N.get=function(q,L){return m.get(x?q:-1-q,L)},N.has=function(q){return m.has(x?q:-1-q)},N.includes=function(q){return m.includes(q)},N.cacheResult=tg,N.__iterate=function(q,L){var Y=this;return m.__iterate(function(oe,ge){return q(oe,ge,Y)},!L)},N.__iterator=function(q,L){return m.__iterator(q,!L)},N}function DT(m,x,N,q){var L=Yi(m);return q&&(L.has=function(Y){var oe=m.get(Y,E);return oe!==E&&!!x.call(N,oe,Y,m)},L.get=function(Y,oe){var ge=m.get(Y,E);return ge!==E&&x.call(N,ge,Y,m)?ge:oe}),L.__iterateUncached=function(Y,oe){var ge=this,xe=0;return m.__iterate(function(Ce,ke,Ge){if(x.call(N,Ce,ke,Ge))return xe++,Y(Ce,q?ke:xe-1,ge)},oe),xe},L.__iteratorUncached=function(Y,oe){var ge=m.__iterator(H,oe),xe=0;return new ee(function(){for(;;){var Ce=ge.next();if(Ce.done)return Ce;var ke=Ce.value,Ge=ke[0],Qe=ke[1];if(x.call(N,Qe,Ge,m))return z(Y,q?Ge:xe++,Qe,Ce)}})},L}function WJ(m,x,N){var q=xt().asMutable();return m.__iterate(function(L,Y){q.update(x.call(N,L,Y,m),0,function(oe){return oe+1})}),q.asImmutable()}function JJ(m,x,N){var q=c(m),L=(h(m)?xr():xt()).asMutable();m.__iterate(function(oe,ge){L.update(x.call(N,oe,ge,m),function(xe){return xe=xe||[],xe.push(q?[ge,oe]:oe),xe})});var Y=UT(m);return L.map(function(oe){return er(m,Y(oe))})}function Qm(m,x,N,q){var L=m.size;if(x!==void 0&&(x=x|0),N!==void 0&&(N===1/0?N=L:N=N|0),te(x,N,L))return m;var Y=J(x,L),oe=Q(N,L);if(Y!==Y||oe!==oe)return Qm(m.toSeq().cacheResult(),x,N,q);var ge=oe-Y,xe;ge===ge&&(xe=ge<0?0:ge);var Ce=Yi(m);return Ce.size=xe===0?xe:m.size&&xe||void 0,!q&&se(m)&&xe>=0&&(Ce.get=function(ke,Ge){return ke=M(this,ke),ke>=0&&ke<xe?m.get(ke+Y,Ge):Ge}),Ce.__iterateUncached=function(ke,Ge){var Qe=this;if(xe===0)return 0;if(Ge)return this.cacheResult().__iterate(ke,Ge);var mt=0,Ct=!0,pr=0;return m.__iterate(function(Ti,Qi){if(!(Ct&&(Ct=mt++<Y)))return pr++,ke(Ti,q?Qi:pr-1,Qe)!==!1&&pr!==xe}),pr},Ce.__iteratorUncached=function(ke,Ge){if(xe!==0&&Ge)return this.cacheResult().__iterator(ke,Ge);var Qe=xe!==0&&m.__iterator(ke,Ge),mt=0,Ct=0;return new ee(function(){for(;mt++<Y;)Qe.next();if(++Ct>xe)return V();var pr=Qe.next();return q||ke===U?pr:ke===ne?z(ke,Ct-1,void 0,pr):z(ke,Ct-1,pr.value[1],pr)})},Ce}function HJ(m,x,N){var q=Yi(m);return q.__iterateUncached=function(L,Y){var oe=this;if(Y)return this.cacheResult().__iterate(L,Y);var ge=0;return m.__iterate(function(xe,Ce,ke){return x.call(N,xe,Ce,ke)&&++ge&&L(xe,Ce,oe)}),ge},q.__iteratorUncached=function(L,Y){var oe=this;if(Y)return this.cacheResult().__iterator(L,Y);var ge=m.__iterator(H,Y),xe=!0;return new ee(function(){if(!xe)return V();var Ce=ge.next();if(Ce.done)return Ce;var ke=Ce.value,Ge=ke[0],Qe=ke[1];return x.call(N,Qe,Ge,oe)?L===H?Ce:z(L,Ge,Qe,Ce):(xe=!1,V())})},q}function qT(m,x,N,q){var L=Yi(m);return L.__iterateUncached=function(Y,oe){var ge=this;if(oe)return this.cacheResult().__iterate(Y,oe);var xe=!0,Ce=0;return m.__iterate(function(ke,Ge,Qe){if(!(xe&&(xe=x.call(N,ke,Ge,Qe))))return Ce++,Y(ke,q?Ge:Ce-1,ge)}),Ce},L.__iteratorUncached=function(Y,oe){var ge=this;if(oe)return this.cacheResult().__iterator(Y,oe);var xe=m.__iterator(H,oe),Ce=!0,ke=0;return new ee(function(){var Ge,Qe,mt;do{if(Ge=xe.next(),Ge.done)return q||Y===U?Ge:Y===ne?z(Y,ke++,void 0,Ge):z(Y,ke++,Ge.value[1],Ge);var Ct=Ge.value;Qe=Ct[0],mt=Ct[1],Ce&&(Ce=x.call(N,mt,Qe,ge))}while(Ce);return Y===H?Ge:z(Y,Qe,mt,Ge)})},L}function KJ(m,x){var N=c(m),q=[m].concat(x).map(function(oe){return u(oe)?N&&(oe=s(oe)):oe=N?Me(oe):Xe(Array.isArray(oe)?oe:[oe]),oe}).filter(function(oe){return oe.size!==0});if(q.length===0)return m;if(q.length===1){var L=q[0];if(L===m||N&&c(L)||l(m)&&l(L))return L}var Y=new B(q);return N?Y=Y.toKeyedSeq():l(m)||(Y=Y.toSetSeq()),Y=Y.flatten(!0),Y.size=q.reduce(function(oe,ge){if(oe!==void 0){var xe=ge.size;if(xe!==void 0)return oe+xe}},0),Y}function FT(m,x,N){var q=Yi(m);return q.__iterateUncached=function(L,Y){var oe=0,ge=!1;function xe(Ce,ke){var Ge=this;Ce.__iterate(function(Qe,mt){return(!x||ke<x)&&u(Qe)?xe(Qe,ke+1):L(Qe,N?mt:oe++,Ge)===!1&&(ge=!0),!ge},Y)}return xe(m,0),oe},q.__iteratorUncached=function(L,Y){var oe=m.__iterator(L,Y),ge=[],xe=0;return new ee(function(){for(;oe;){var Ce=oe.next();if(Ce.done!==!1){oe=ge.pop();continue}var ke=Ce.value;if(L===H&&(ke=ke[1]),(!x||ge.length<x)&&u(ke))ge.push(oe),oe=ke.__iterator(L,Y);else return N?Ce:z(L,xe++,ke,Ce)}return V()})},q}function GJ(m,x,N){var q=UT(m);return m.toSeq().map(function(L,Y){return q(x.call(N,L,Y,m))}).flatten(!0)}function YJ(m,x){var N=Yi(m);return N.size=m.size&&m.size*2-1,N.__iterateUncached=function(q,L){var Y=this,oe=0;return m.__iterate(function(ge,xe){return(!oe||q(x,oe++,Y)!==!1)&&q(ge,oe++,Y)!==!1},L),oe},N.__iteratorUncached=function(q,L){var Y=m.__iterator(U,L),oe=0,ge;return new ee(function(){return(!ge||oe%2)&&(ge=Y.next(),ge.done)?ge:oe%2?z(q,oe++,x):z(q,oe++,ge.value,ge)})},N}function Ro(m,x,N){x||(x=VT);var q=c(m),L=0,Y=m.toSeq().map(function(oe,ge){return[ge,oe,L++,N?N(oe,ge,m):oe]}).toArray();return Y.sort(function(oe,ge){return x(oe[3],ge[3])||oe[2]-ge[2]}).forEach(q?function(oe,ge){Y[ge].length=2}:function(oe,ge){Y[ge]=oe[1]}),q?Ue(Y):l(m)?_e(Y):we(Y)}function Bf(m,x,N){if(x||(x=VT),N){var q=m.toSeq().map(function(L,Y){return[L,N(L,Y,m)]}).reduce(function(L,Y){return $T(x,L[1],Y[1])?Y:L});return q&&q[0]}else return m.reduce(function(L,Y){return $T(x,L,Y)?Y:L})}function $T(m,x,N){var q=m(N,x);return q===0&&N!==x&&(N==null||N!==N)||q>0}function eg(m,x,N){var q=Yi(m);return q.size=new B(N).map(function(L){return L.size}).min(),q.__iterate=function(L,Y){for(var oe=this.__iterator(U,Y),ge,xe=0;!(ge=oe.next()).done&&L(ge.value,xe++,this)!==!1;);return xe},q.__iteratorUncached=function(L,Y){var oe=N.map(function(Ce){return Ce=i(Ce),Re(Y?Ce.reverse():Ce)}),ge=0,xe=!1;return new ee(function(){var Ce;return xe||(Ce=oe.map(function(ke){return ke.next()}),xe=Ce.some(function(ke){return ke.done})),xe?V():z(L,ge++,x.apply(null,Ce.map(function(ke){return ke.value})))})},q}function er(m,x){return se(m)?x:m.constructor(x)}function LT(m){if(m!==Object(m))throw new TypeError("Expected [K, V] tuple: "+m)}function BT(m){return Mr(m.size),F(m)}function UT(m){return c(m)?s:l(m)?a:o}function Yi(m){return Object.create((c(m)?Ue:l(m)?_e:we).prototype)}function tg(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Te.prototype.cacheResult.call(this)}function VT(m,x){return m>x?1:m<x?-1:0}function zT(m){var x=Re(m);if(!x){if(!he(m))throw new TypeError("Expected iterable or array-like: "+m);x=Re(i(m))}return x}n(Vn,gt);function Vn(m,x){var N,q=function(oe){if(oe instanceof q)return oe;if(!(this instanceof q))return new q(oe);if(!N){N=!0;var ge=Object.keys(m);XJ(L,ge),L.size=ge.length,L._name=x,L._keys=ge,L._defaultValues=m}this._map=xt(oe)},L=q.prototype=Object.create(Hr);return L.constructor=q,q}Vn.prototype.toString=function(){return this.__toString(WT(this)+" {","}")},Vn.prototype.has=function(m){return this._defaultValues.hasOwnProperty(m)},Vn.prototype.get=function(m,x){if(!this.has(m))return x;var N=this._defaultValues[m];return this._map?this._map.get(m,N):N},Vn.prototype.clear=function(){if(this.__ownerID)return this._map&&this._map.clear(),this;var m=this.constructor;return m._empty||(m._empty=Uf(this,Ke()))},Vn.prototype.set=function(m,x){if(!this.has(m))throw new Error('Cannot set unknown key "'+m+'" on '+WT(this));if(this._map&&!this._map.has(m)){var N=this._defaultValues[m];if(x===N)return this}var q=this._map&&this._map.set(m,x);return this.__ownerID||q===this._map?this:Uf(this,q)},Vn.prototype.remove=function(m){if(!this.has(m))return this;var x=this._map&&this._map.remove(m);return this.__ownerID||x===this._map?this:Uf(this,x)},Vn.prototype.wasAltered=function(){return this._map.wasAltered()},Vn.prototype.__iterator=function(m,x){var N=this;return s(this._defaultValues).map(function(q,L){return N.get(L)}).__iterator(m,x)},Vn.prototype.__iterate=function(m,x){var N=this;return s(this._defaultValues).map(function(q,L){return N.get(L)}).__iterate(m,x)},Vn.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map&&this._map.__ensureOwner(m);return m?Uf(this,x,m):(this.__ownerID=m,this._map=x,this)};var Hr=Vn.prototype;Hr[_]=Hr.remove,Hr.deleteIn=Hr.removeIn=ae.removeIn,Hr.merge=ae.merge,Hr.mergeWith=ae.mergeWith,Hr.mergeIn=ae.mergeIn,Hr.mergeDeep=ae.mergeDeep,Hr.mergeDeepWith=ae.mergeDeepWith,Hr.mergeDeepIn=ae.mergeDeepIn,Hr.setIn=ae.setIn,Hr.update=ae.update,Hr.updateIn=ae.updateIn,Hr.withMutations=ae.withMutations,Hr.asMutable=ae.asMutable,Hr.asImmutable=ae.asImmutable;function Uf(m,x,N){var q=Object.create(Object.getPrototypeOf(m));return q._map=x,q.__ownerID=N,q}function WT(m){return m._name||m.constructor.name||"Record"}function XJ(m,x){try{x.forEach(ZJ.bind(void 0,m))}catch{}}function ZJ(m,x){Object.defineProperty(m,x,{get:function(){return this.get(x)},set:function(N){je(this.__ownerID,"Cannot set on an immutable record."),this.set(x,N)}})}n(fr,Je);function fr(m){return m==null?ig():rg(m)&&!h(m)?m:ig().withMutations(function(x){var N=o(m);Mr(N.size),N.forEach(function(q){return x.add(q)})})}fr.of=function(){return this(arguments)},fr.fromKeys=function(m){return this(s(m).keySeq())},fr.prototype.toString=function(){return this.__toString("Set {","}")},fr.prototype.has=function(m){return this._map.has(m)},fr.prototype.add=function(m){return ng(this,this._map.set(m,!0))},fr.prototype.remove=function(m){return ng(this,this._map.remove(m))},fr.prototype.clear=function(){return ng(this,this._map.clear())},fr.prototype.union=function(){var m=r.call(arguments,0);return m=m.filter(function(x){return x.size!==0}),m.length===0?this:this.size===0&&!this.__ownerID&&m.length===1?this.constructor(m[0]):this.withMutations(function(x){for(var N=0;N<m.length;N++)o(m[N]).forEach(function(q){return x.add(q)})})},fr.prototype.intersect=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(N){return o(N)});var x=this;return this.withMutations(function(N){x.forEach(function(q){m.every(function(L){return L.includes(q)})||N.remove(q)})})},fr.prototype.subtract=function(){var m=r.call(arguments,0);if(m.length===0)return this;m=m.map(function(N){return o(N)});var x=this;return this.withMutations(function(N){x.forEach(function(q){m.some(function(L){return L.includes(q)})&&N.remove(q)})})},fr.prototype.merge=function(){return this.union.apply(this,arguments)},fr.prototype.mergeWith=function(m){var x=r.call(arguments,1);return this.union.apply(this,x)},fr.prototype.sort=function(m){return Xi(Ro(this,m))},fr.prototype.sortBy=function(m,x){return Xi(Ro(this,x,m))},fr.prototype.wasAltered=function(){return this._map.wasAltered()},fr.prototype.__iterate=function(m,x){var N=this;return this._map.__iterate(function(q,L){return m(L,L,N)},x)},fr.prototype.__iterator=function(m,x){return this._map.map(function(N,q){return q}).__iterator(m,x)},fr.prototype.__ensureOwner=function(m){if(m===this.__ownerID)return this;var x=this._map.__ensureOwner(m);return m?this.__make(x,m):(this.__ownerID=m,this._map=x,this)};function rg(m){return!!(m&&m[JT])}fr.isSet=rg;var JT="@@__IMMUTABLE_SET__@@",zn=fr.prototype;zn[JT]=!0,zn[_]=zn.remove,zn.mergeDeep=zn.merge,zn.mergeDeepWith=zn.mergeWith,zn.withMutations=ae.withMutations,zn.asMutable=ae.asMutable,zn.asImmutable=ae.asImmutable,zn.__empty=ig,zn.__make=HT;function ng(m,x){return m.__ownerID?(m.size=x.size,m._map=x,m):x===m._map?m:x.size===0?m.__empty():m.__make(x)}function HT(m,x){var N=Object.create(zn);return N.size=m?m.size:0,N._map=m,N.__ownerID=x,N}var KT;function ig(){return KT||(KT=HT(Ke()))}n(Xi,fr);function Xi(m){return m==null?sg():GT(m)?m:sg().withMutations(function(x){var N=o(m);Mr(N.size),N.forEach(function(q){return x.add(q)})})}Xi.of=function(){return this(arguments)},Xi.fromKeys=function(m){return this(s(m).keySeq())},Xi.prototype.toString=function(){return this.__toString("OrderedSet {","}")};function GT(m){return rg(m)&&h(m)}Xi.isOrderedSet=GT;var Vf=Xi.prototype;Vf[v]=!0,Vf.__empty=sg,Vf.__make=YT;function YT(m,x){var N=Object.create(Vf);return N.size=m?m.size:0,N._map=m,N.__ownerID=x,N}var XT;function sg(){return XT||(XT=YT(Lf()))}n(Or,Kt);function Or(m){return m==null?ag():ZT(m)?m:ag().unshiftAll(m)}Or.of=function(){return this(arguments)},Or.prototype.toString=function(){return this.__toString("Stack [","]")},Or.prototype.get=function(m,x){var N=this._head;for(m=M(this,m);N&&m--;)N=N.next;return N?N.value:x},Or.prototype.peek=function(){return this._head&&this._head.value},Or.prototype.push=function(){if(arguments.length===0)return this;for(var m=this.size+arguments.length,x=this._head,N=arguments.length-1;N>=0;N--)x={value:arguments[N],next:x};return this.__ownerID?(this.size=m,this._head=x,this.__hash=void 0,this.__altered=!0,this):Ju(m,x)},Or.prototype.pushAll=function(m){if(m=a(m),m.size===0)return this;Mr(m.size);var x=this.size,N=this._head;return m.reverse().forEach(function(q){x++,N={value:q,next:N}}),this.__ownerID?(this.size=x,this._head=N,this.__hash=void 0,this.__altered=!0,this):Ju(x,N)},Or.prototype.pop=function(){return this.slice(1)},Or.prototype.unshift=function(){return this.push.apply(this,arguments)},Or.prototype.unshiftAll=function(m){return this.pushAll(m)},Or.prototype.shift=function(){return this.pop.apply(this,arguments)},Or.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):ag()},Or.prototype.slice=function(m,x){if(te(m,x,this.size))return this;var N=J(m,this.size),q=Q(x,this.size);if(q!==this.size)return Kt.prototype.slice.call(this,m,x);for(var L=this.size-N,Y=this._head;N--;)Y=Y.next;return this.__ownerID?(this.size=L,this._head=Y,this.__hash=void 0,this.__altered=!0,this):Ju(L,Y)},Or.prototype.__ensureOwner=function(m){return m===this.__ownerID?this:m?Ju(this.size,this._head,m,this.__hash):(this.__ownerID=m,this.__altered=!1,this)},Or.prototype.__iterate=function(m,x){if(x)return this.reverse().__iterate(m);for(var N=0,q=this._head;q&&m(q.value,N++,this)!==!1;)q=q.next;return N},Or.prototype.__iterator=function(m,x){if(x)return this.reverse().__iterator(m);var N=0,q=this._head;return new ee(function(){if(q){var L=q.value;return q=q.next,z(m,N++,L)}return V()})};function ZT(m){return!!(m&&m[QT])}Or.isStack=ZT;var QT="@@__IMMUTABLE_STACK__@@",To=Or.prototype;To[QT]=!0,To.withMutations=ae.withMutations,To.asMutable=ae.asMutable,To.asImmutable=ae.asImmutable,To.wasAltered=ae.wasAltered;function Ju(m,x,N,q){var L=Object.create(To);return L.size=m,L._head=x,L.__ownerID=N,L.__hash=q,L.__altered=!1,L}var eI;function ag(){return eI||(eI=Ju(0))}function Zi(m,x){var N=function(q){m.prototype[q]=x[q]};return Object.keys(x).forEach(N),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(x).forEach(N),m}i.Iterator=ee,Zi(i,{toArray:function(){Mr(this.size);var m=new Array(this.size||0);return this.valueSeq().__iterate(function(x,N){m[N]=x}),m},toIndexedSeq:function(){return new Ao(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 ui(this,!0)},toMap:function(){return xt(this.toKeyedSeq())},toObject:function(){Mr(this.size);var m={};return this.__iterate(function(x,N){m[N]=x}),m},toOrderedMap:function(){return xr(this.toKeyedSeq())},toOrderedSet:function(){return Xi(c(this)?this.valueSeq():this)},toSet:function(){return fr(c(this)?this.valueSeq():this)},toSetSeq:function(){return new Oo(this)},toSeq:function(){return l(this)?this.toIndexedSeq():c(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Or(c(this)?this.valueSeq():this)},toList:function(){return bt(c(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(m,x){return this.size===0?m+x:m+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+x},concat:function(){var m=r.call(arguments,0);return er(this,KJ(this,m))},includes:function(m){return this.some(function(x){return it(x,m)})},entries:function(){return this.__iterator(H)},every:function(m,x){Mr(this.size);var N=!0;return this.__iterate(function(q,L,Y){if(!m.call(x,q,L,Y))return N=!1,!1}),N},filter:function(m,x){return er(this,DT(this,m,x,!0))},find:function(m,x,N){var q=this.findEntry(m,x);return q?q[1]:N},forEach:function(m,x){return Mr(this.size),this.__iterate(x?m.bind(x):m)},join:function(m){Mr(this.size),m=m!==void 0?""+m:",";var x="",N=!0;return this.__iterate(function(q){N?N=!1:x+=m,x+=q!=null?q.toString():""}),x},keys:function(){return this.__iterator(ne)},map:function(m,x){return er(this,MT(this,m,x))},reduce:function(m,x,N){Mr(this.size);var q,L;return arguments.length<2?L=!0:q=x,this.__iterate(function(Y,oe,ge){L?(L=!1,q=Y):q=m.call(N,q,Y,oe,ge)}),q},reduceRight:function(m,x,N){var q=this.toKeyedSeq().reverse();return q.reduce.apply(q,arguments)},reverse:function(){return er(this,Zm(this,!0))},slice:function(m,x){return er(this,Qm(this,m,x,!0))},some:function(m,x){return!this.every(Wf(m),x)},sort:function(m){return er(this,Ro(this,m))},values:function(){return this.__iterator(U)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size!==void 0?this.size===0:!this.some(function(){return!0})},count:function(m,x){return F(m?this.toSeq().filter(m,x):this)},countBy:function(m,x){return WJ(this,m,x)},equals:function(m){return It(this,m)},entrySeq:function(){var m=this;if(m._cache)return new B(m._cache);var x=m.toSeq().map(eH).toIndexedSeq();return x.fromEntrySeq=function(){return m.toSeq()},x},filterNot:function(m,x){return this.filter(Wf(m),x)},findEntry:function(m,x,N){var q=N;return this.__iterate(function(L,Y,oe){if(m.call(x,L,Y,oe))return q=[Y,L],!1}),q},findKey:function(m,x){var N=this.findEntry(m,x);return N&&N[0]},findLast:function(m,x,N){return this.toKeyedSeq().reverse().find(m,x,N)},findLastEntry:function(m,x,N){return this.toKeyedSeq().reverse().findEntry(m,x,N)},findLastKey:function(m,x){return this.toKeyedSeq().reverse().findKey(m,x)},first:function(){return this.find(K)},flatMap:function(m,x){return er(this,GJ(this,m,x))},flatten:function(m){return er(this,FT(this,m,!0))},fromEntrySeq:function(){return new Co(this)},get:function(m,x){return this.find(function(N,q){return it(q,m)},void 0,x)},getIn:function(m,x){for(var N=this,q=zT(m),L;!(L=q.next()).done;){var Y=L.value;if(N=N&&N.get?N.get(Y,E):E,N===E)return x}return N},groupBy:function(m,x){return JJ(this,m,x)},has:function(m){return this.get(m,E)!==E},hasIn:function(m){return this.getIn(m,E)!==E},isSubset:function(m){return m=typeof m.includes=="function"?m:i(m),this.every(function(x){return m.includes(x)})},isSuperset:function(m){return m=typeof m.isSubset=="function"?m:i(m),m.isSubset(this)},keyOf:function(m){return this.findKey(function(x){return it(x,m)})},keySeq:function(){return this.toSeq().map(QJ).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(m){return this.toKeyedSeq().reverse().keyOf(m)},max:function(m){return Bf(this,m)},maxBy:function(m,x){return Bf(this,x,m)},min:function(m){return Bf(this,m?tI(m):nI)},minBy:function(m,x){return Bf(this,x?tI(x):nI,m)},rest:function(){return this.slice(1)},skip:function(m){return this.slice(Math.max(0,m))},skipLast:function(m){return er(this,this.toSeq().reverse().skip(m).reverse())},skipWhile:function(m,x){return er(this,qT(this,m,x,!0))},skipUntil:function(m,x){return this.skipWhile(Wf(m),x)},sortBy:function(m,x){return er(this,Ro(this,x,m))},take:function(m){return this.slice(0,Math.max(0,m))},takeLast:function(m){return er(this,this.toSeq().reverse().take(m).reverse())},takeWhile:function(m,x){return er(this,HJ(this,m,x))},takeUntil:function(m,x){return this.takeWhile(Wf(m),x)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=rH(this))}});var mn=i.prototype;mn[d]=!0,mn[le]=mn.values,mn.__toJS=mn.toArray,mn.__toStringMapper=rI,mn.inspect=mn.toSource=function(){return this.toString()},mn.chain=mn.flatMap,mn.contains=mn.includes,Zi(s,{flip:function(){return er(this,NT(this))},mapEntries:function(m,x){var N=this,q=0;return er(this,this.toSeq().map(function(L,Y){return m.call(x,[Y,L],q++,N)}).fromEntrySeq())},mapKeys:function(m,x){var N=this;return er(this,this.toSeq().flip().map(function(q,L){return m.call(x,q,L,N)}).flip())}});var zf=s.prototype;zf[g]=!0,zf[le]=mn.entries,zf.__toJS=mn.toObject,zf.__toStringMapper=function(m,x){return JSON.stringify(x)+": "+rI(m)},Zi(a,{toKeyedSeq:function(){return new ui(this,!1)},filter:function(m,x){return er(this,DT(this,m,x,!1))},findIndex:function(m,x){var N=this.findEntry(m,x);return N?N[0]:-1},indexOf:function(m){var x=this.keyOf(m);return x===void 0?-1:x},lastIndexOf:function(m){var x=this.lastKeyOf(m);return x===void 0?-1:x},reverse:function(){return er(this,Zm(this,!1))},slice:function(m,x){return er(this,Qm(this,m,x,!1))},splice:function(m,x){var N=arguments.length;if(x=Math.max(x|0,0),N===0||N===2&&!x)return this;m=J(m,m<0?this.count():this.size);var q=this.slice(0,m);return er(this,N===1?q:q.concat(P(arguments,2),this.slice(m+x)))},findLastIndex:function(m,x){var N=this.findLastEntry(m,x);return N?N[0]:-1},first:function(){return this.get(0)},flatten:function(m){return er(this,FT(this,m,!1))},get:function(m,x){return m=M(this,m),m<0||this.size===1/0||this.size!==void 0&&m>this.size?x:this.find(function(N,q){return q===m},void 0,x)},has:function(m){return m=M(this,m),m>=0&&(this.size!==void 0?this.size===1/0||m<this.size:this.indexOf(m)!==-1)},interpose:function(m){return er(this,YJ(this,m))},interleave:function(){var m=[this].concat(P(arguments)),x=eg(this.toSeq(),_e.of,m),N=x.flatten(!0);return x.size&&(N.size=x.size*m.length),er(this,N)},keySeq:function(){return De(0,this.size)},last:function(){return this.get(-1)},skipWhile:function(m,x){return er(this,qT(this,m,x,!1))},zip:function(){var m=[this].concat(P(arguments));return er(this,eg(this,tH,m))},zipWith:function(m){var x=P(arguments);return x[0]=this,er(this,eg(this,m,x))}}),a.prototype[y]=!0,a.prototype[v]=!0,Zi(o,{get:function(m,x){return this.has(m)?m:x},includes:function(m){return this.has(m)},keySeq:function(){return this.valueSeq()}}),o.prototype.has=mn.includes,o.prototype.contains=o.prototype.includes,Zi(Ue,s.prototype),Zi(_e,a.prototype),Zi(we,o.prototype),Zi(gt,s.prototype),Zi(Kt,a.prototype),Zi(Je,o.prototype);function QJ(m,x){return x}function eH(m,x){return[x,m]}function Wf(m){return function(){return!m.apply(this,arguments)}}function tI(m){return function(){return-m.apply(this,arguments)}}function rI(m){return typeof m=="string"?JSON.stringify(m):String(m)}function tH(){return P(arguments)}function nI(m,x){return m<x?1:m>x?-1:0}function rH(m){if(m.size===1/0)return 0;var x=h(m),N=c(m),q=x?1:0,L=m.__iterate(N?x?function(Y,oe){q=31*q+iI(ot(Y),ot(oe))|0}:function(Y,oe){q=q+iI(ot(Y),ot(oe))|0}:x?function(Y){q=31*q+ot(Y)|0}:function(Y){q=q+ot(Y)|0});return nH(L,q)}function nH(m,x){return x=Be(x,3432918353),x=Be(x<<15|x>>>-15,461845907),x=Be(x<<13|x>>>-13,5),x=(x+3864292196|0)^m,x=Be(x^x>>>16,2246822507),x=Be(x^x>>>13,3266489909),x=ut(x^x>>>16),x}function iI(m,x){return m^x+2654435769+(m<<6)+(m>>2)|0}var iH={Iterable:i,Seq:Te,Collection:vt,Map:xt,OrderedMap:xr,List:bt,Stack:Or,Set:fr,OrderedSet:Xi,Record:Vn,Range:De,Repeat:pt,is:it,fromJS:de};return iH})})(xp)),xp.exports}var Fa=KO();const vK=He.getDefaultExportFromCjs(Fa);var Ku={},Xf={exports:{}},Cs={},Zf={exports:{}},Sj;function U6(){return Sj||(Sj=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})(Zf,Zf.exports)),Zf.exports}var Qf={exports:{}},wj;function bK(){return wj||(wj=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=KO(),n=a(r),i=U6(),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(d){return!u.hasOwnProperty(d)});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})(Qf,Qf.exports)),Qf.exports}var ep={exports:{}},xj;function _K(){return xj||(xj=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})(ep,ep.exports)),ep.exports}var Aj;function EK(){if(Aj)return Cs;Aj=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.validateNextState=Cs.getUnexpectedInvocationParameterMessage=Cs.getStateName=void 0;var e=U6(),t=a(e),r=bK(),n=a(r),i=_K(),s=a(i);function a(o){return o&&o.__esModule?o:{default:o}}return Cs.getStateName=t.default,Cs.getUnexpectedInvocationParameterMessage=n.default,Cs.validateNextState=s.default,Cs}var Oj;function SK(){return Oj||(Oj=1,(function(e,t){Object.defineProperty(t,"__esModule",{value:!0});var r=KO(),n=s(r),i=EK();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(d){var g=a[d],y=h.get(d),v=g(y,l);(0,i.validateNextState)(v,d,l),h.set(d,v)})})}},e.exports=t.default})(Xf,Xf.exports)),Xf.exports}var Cj;function wK(){if(Cj)return Ku;Cj=1,Object.defineProperty(Ku,"__esModule",{value:!0}),Ku.combineReducers=void 0;var e=SK(),t=r(e);function r(n){return n&&n.__esModule?n:{default:n}}return Ku.combineReducers=t.default,Ku}var xK=wK(),ly,Rj;function AK(){if(Rj)return ly;Rj=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 d=c||(Array.isArray(o)?[]:{});if(u.push(o),h>=f)return d;if(typeof o.toJSON=="function"&&o[r]!==!0)return n(o);for(const[g,y]of Object.entries(o)){if(typeof Buffer=="function"&&Buffer.isBuffer(y)){d[g]="[object Buffer]";continue}if(typeof y!="function"){if(!y||typeof y!="object"){d[g]=y;continue}if(!u.includes(o[g])){h++,d[g]=i({from:o[g],seen:u.slice(),forceEnumerable:l,maxDepth:f,depth:h});continue}d[g]="[Circular]"}}for(const{property:g,enumerable:y}of t)typeof o[g]=="string"&&Object.defineProperty(d,g,{value:o[g],enumerable:l?!0:y,configurable:!0,writable:!0});return d};return ly={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)}},ly}var OK=AK(),fy,Tj;function CK(){if(Tj)return fy;Tj=1;function e(){this.__data__=[],this.size=0}return fy=e,fy}var py,Ij;function yu(){if(Ij)return py;Ij=1;function e(t,r){return t===r||t!==t&&r!==r}return py=e,py}var dy,jj;function ch(){if(jj)return dy;jj=1;var e=yu();function t(r,n){for(var i=r.length;i--;)if(e(r[i][0],n))return i;return-1}return dy=t,dy}var hy,Pj;function RK(){if(Pj)return hy;Pj=1;var e=ch(),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 hy=n,hy}var my,kj;function TK(){if(kj)return my;kj=1;var e=ch();function t(r){var n=this.__data__,i=e(n,r);return i<0?void 0:n[i][1]}return my=t,my}var gy,Nj;function IK(){if(Nj)return gy;Nj=1;var e=ch();function t(r){return e(this.__data__,r)>-1}return gy=t,gy}var yy,Mj;function jK(){if(Mj)return yy;Mj=1;var e=ch();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 yy=t,yy}var vy,Dj;function lh(){if(Dj)return vy;Dj=1;var e=CK(),t=RK(),r=TK(),n=IK(),i=jK();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,vy=s,vy}var by,qj;function PK(){if(qj)return by;qj=1;var e=lh();function t(){this.__data__=new e,this.size=0}return by=t,by}var _y,Fj;function kK(){if(Fj)return _y;Fj=1;function e(t){var r=this.__data__,n=r.delete(t);return this.size=r.size,n}return _y=e,_y}var Ey,$j;function NK(){if($j)return Ey;$j=1;function e(t){return this.__data__.get(t)}return Ey=e,Ey}var Sy,Lj;function MK(){if(Lj)return Sy;Lj=1;function e(t){return this.__data__.has(t)}return Sy=e,Sy}var wy,Bj;function V6(){if(Bj)return wy;Bj=1;var e=typeof He.commonjsGlobal=="object"&&He.commonjsGlobal&&He.commonjsGlobal.Object===Object&&He.commonjsGlobal;return wy=e,wy}var xy,Uj;function An(){if(Uj)return xy;Uj=1;var e=V6(),t=typeof self=="object"&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return xy=r,xy}var Ay,Vj;function vu(){if(Vj)return Ay;Vj=1;var e=An(),t=e.Symbol;return Ay=t,Ay}var Oy,zj;function DK(){if(zj)return Oy;zj=1;var e=vu(),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 Oy=s,Oy}var Cy,Wj;function qK(){if(Wj)return Cy;Wj=1;var e=Object.prototype,t=e.toString;function r(n){return t.call(n)}return Cy=r,Cy}var Ry,Jj;function ds(){if(Jj)return Ry;Jj=1;var e=vu(),t=DK(),r=qK(),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 Ry=a,Ry}var Ty,Hj;function On(){if(Hj)return Ty;Hj=1;function e(t){var r=typeof t;return t!=null&&(r=="object"||r=="function")}return Ty=e,Ty}var Iy,Kj;function il(){if(Kj)return Iy;Kj=1;var e=ds(),t=On(),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 Iy=a,Iy}var jy,Gj;function FK(){if(Gj)return jy;Gj=1;var e=An(),t=e["__core-js_shared__"];return jy=t,jy}var Py,Yj;function $K(){if(Yj)return Py;Yj=1;var e=FK(),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 Py=r,Py}var ky,Xj;function z6(){if(Xj)return ky;Xj=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 ky=r,ky}var Ny,Zj;function LK(){if(Zj)return Ny;Zj=1;var e=il(),t=$K(),r=On(),n=z6(),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 d=e(h)?l:s;return d.test(n(h))}return Ny=f,Ny}var My,Qj;function BK(){if(Qj)return My;Qj=1;function e(t,r){return t==null?void 0:t[r]}return My=e,My}var Dy,eP;function io(){if(eP)return Dy;eP=1;var e=LK(),t=BK();function r(n,i){var s=t(n,i);return e(s)?s:void 0}return Dy=r,Dy}var qy,tP;function GO(){if(tP)return qy;tP=1;var e=io(),t=An(),r=e(t,"Map");return qy=r,qy}var Fy,rP;function fh(){if(rP)return Fy;rP=1;var e=io(),t=e(Object,"create");return Fy=t,Fy}var $y,nP;function UK(){if(nP)return $y;nP=1;var e=fh();function t(){this.__data__=e?e(null):{},this.size=0}return $y=t,$y}var Ly,iP;function VK(){if(iP)return Ly;iP=1;function e(t){var r=this.has(t)&&delete this.__data__[t];return this.size-=r?1:0,r}return Ly=e,Ly}var By,sP;function zK(){if(sP)return By;sP=1;var e=fh(),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 By=i,By}var Uy,aP;function WK(){if(aP)return Uy;aP=1;var e=fh(),t=Object.prototype,r=t.hasOwnProperty;function n(i){var s=this.__data__;return e?s[i]!==void 0:r.call(s,i)}return Uy=n,Uy}var Vy,oP;function JK(){if(oP)return Vy;oP=1;var e=fh(),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 Vy=r,Vy}var zy,uP;function HK(){if(uP)return zy;uP=1;var e=UK(),t=VK(),r=zK(),n=WK(),i=JK();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,zy=s,zy}var Wy,cP;function KK(){if(cP)return Wy;cP=1;var e=HK(),t=lh(),r=GO();function n(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}return Wy=n,Wy}var Jy,lP;function GK(){if(lP)return Jy;lP=1;function e(t){var r=typeof t;return r=="string"||r=="number"||r=="symbol"||r=="boolean"?t!=="__proto__":t===null}return Jy=e,Jy}var Hy,fP;function ph(){if(fP)return Hy;fP=1;var e=GK();function t(r,n){var i=r.__data__;return e(n)?i[typeof n=="string"?"string":"hash"]:i.map}return Hy=t,Hy}var Ky,pP;function YK(){if(pP)return Ky;pP=1;var e=ph();function t(r){var n=e(this,r).delete(r);return this.size-=n?1:0,n}return Ky=t,Ky}var Gy,dP;function XK(){if(dP)return Gy;dP=1;var e=ph();function t(r){return e(this,r).get(r)}return Gy=t,Gy}var Yy,hP;function ZK(){if(hP)return Yy;hP=1;var e=ph();function t(r){return e(this,r).has(r)}return Yy=t,Yy}var Xy,mP;function QK(){if(mP)return Xy;mP=1;var e=ph();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 Xy=t,Xy}var Zy,gP;function YO(){if(gP)return Zy;gP=1;var e=KK(),t=YK(),r=XK(),n=ZK(),i=QK();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,Zy=s,Zy}var Qy,yP;function eG(){if(yP)return Qy;yP=1;var e=lh(),t=GO(),r=YO(),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 Qy=i,Qy}var ev,vP;function dh(){if(vP)return ev;vP=1;var e=lh(),t=PK(),r=kK(),n=NK(),i=MK(),s=eG();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,ev=a,ev}var tv,bP;function W6(){if(bP)return tv;bP=1;var e=io(),t=(function(){try{var r=e(Object,"defineProperty");return r({},"",{}),r}catch{}})();return tv=t,tv}var rv,_P;function XO(){if(_P)return rv;_P=1;var e=W6();function t(r,n,i){n=="__proto__"&&e?e(r,n,{configurable:!0,enumerable:!0,value:i,writable:!0}):r[n]=i}return rv=t,rv}var nv,EP;function J6(){if(EP)return nv;EP=1;var e=XO(),t=yu();function r(n,i,s){(s!==void 0&&!t(n[i],s)||s===void 0&&!(i in n))&&e(n,i,s)}return nv=r,nv}var iv,SP;function tG(){if(SP)return iv;SP=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 iv=e,iv}var sv,wP;function H6(){if(wP)return sv;wP=1;var e=tG(),t=e();return sv=t,sv}var ac={exports:{}};ac.exports;var xP;function K6(){return xP||(xP=1,(function(e,t){var r=An(),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})(ac,ac.exports)),ac.exports}var av,AP;function G6(){if(AP)return av;AP=1;var e=An(),t=e.Uint8Array;return av=t,av}var ov,OP;function ZO(){if(OP)return ov;OP=1;var e=G6();function t(r){var n=new r.constructor(r.byteLength);return new e(n).set(new e(r)),n}return ov=t,ov}var uv,CP;function Y6(){if(CP)return uv;CP=1;var e=ZO();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.length)}return uv=t,uv}var cv,RP;function sl(){if(RP)return cv;RP=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 cv=e,cv}var lv,TP;function hh(){if(TP)return lv;TP=1;var e=On(),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 lv=r,lv}var fv,IP;function X6(){if(IP)return fv;IP=1;function e(t,r){return function(n){return t(r(n))}}return fv=e,fv}var pv,jP;function QO(){if(jP)return pv;jP=1;var e=X6(),t=e(Object.getPrototypeOf,Object);return pv=t,pv}var dv,PP;function mh(){if(PP)return dv;PP=1;var e=Object.prototype;function t(r){var n=r&&r.constructor,i=typeof n=="function"&&n.prototype||e;return r===i}return dv=t,dv}var hv,kP;function Z6(){if(kP)return hv;kP=1;var e=hh(),t=QO(),r=mh();function n(i){return typeof i.constructor=="function"&&!r(i)?e(t(i)):{}}return hv=n,hv}var mv,NP;function Cn(){if(NP)return mv;NP=1;function e(t){return t!=null&&typeof t=="object"}return mv=e,mv}var gv,MP;function rG(){if(MP)return gv;MP=1;var e=ds(),t=Cn(),r="[object Arguments]";function n(i){return t(i)&&e(i)==r}return gv=n,gv}var yv,DP;function al(){if(DP)return yv;DP=1;var e=rG(),t=Cn(),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 yv=s,yv}var vv,qP;function Jr(){if(qP)return vv;qP=1;var e=Array.isArray;return vv=e,vv}var bv,FP;function e2(){if(FP)return bv;FP=1;var e=9007199254740991;function t(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=e}return bv=t,bv}var _v,$P;function so(){if($P)return _v;$P=1;var e=il(),t=e2();function r(n){return n!=null&&t(n.length)&&!e(n)}return _v=r,_v}var Ev,LP;function nG(){if(LP)return Ev;LP=1;var e=so(),t=Cn();function r(n){return t(n)&&e(n)}return Ev=r,Ev}var oc={exports:{}},Sv,BP;function iG(){if(BP)return Sv;BP=1;function e(){return!1}return Sv=e,Sv}oc.exports;var UP;function ol(){return UP||(UP=1,(function(e,t){var r=An(),n=iG(),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})(oc,oc.exports)),oc.exports}var wv,VP;function gh(){if(VP)return wv;VP=1;var e=ds(),t=QO(),r=Cn(),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 wv=c,wv}var xv,zP;function sG(){if(zP)return xv;zP=1;var e=ds(),t=e2(),r=Cn(),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]",d="[object Set]",g="[object String]",y="[object WeakMap]",v="[object ArrayBuffer]",_="[object DataView]",b="[object Float32Array]",S="[object Float64Array]",w="[object Int8Array]",E="[object Int16Array]",A="[object Int32Array]",R="[object Uint8Array]",I="[object Uint8ClampedArray]",O="[object Uint16Array]",D="[object Uint32Array]",P={};P[b]=P[S]=P[w]=P[E]=P[A]=P[R]=P[I]=P[O]=P[D]=!0,P[n]=P[i]=P[v]=P[s]=P[_]=P[a]=P[o]=P[u]=P[c]=P[l]=P[f]=P[h]=P[d]=P[g]=P[y]=!1;function F(M){return r(M)&&t(M.length)&&!!P[e(M)]}return xv=F,xv}var Av,WP;function t2(){if(WP)return Av;WP=1;function e(t){return function(r){return t(r)}}return Av=e,Av}var uc={exports:{}};uc.exports;var JP;function r2(){return JP||(JP=1,(function(e,t){var r=V6(),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})(uc,uc.exports)),uc.exports}var Ov,HP;function yh(){if(HP)return Ov;HP=1;var e=sG(),t=t2(),r=r2(),n=r&&r.isTypedArray,i=n?t(n):e;return Ov=i,Ov}var Cv,KP;function Q6(){if(KP)return Cv;KP=1;function e(t,r){if(!(r==="constructor"&&typeof t[r]=="function")&&r!="__proto__")return t[r]}return Cv=e,Cv}var Rv,GP;function vh(){if(GP)return Rv;GP=1;var e=XO(),t=yu(),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 Rv=i,Rv}var Tv,YP;function bu(){if(YP)return Tv;YP=1;var e=vh(),t=XO();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 Tv=r,Tv}var Iv,XP;function aG(){if(XP)return Iv;XP=1;function e(t,r){for(var n=-1,i=Array(t);++n<t;)i[n]=r(n);return i}return Iv=e,Iv}var jv,ZP;function ul(){if(ZP)return jv;ZP=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 jv=r,jv}var Pv,QP;function e8(){if(QP)return Pv;QP=1;var e=aG(),t=al(),r=Jr(),n=ol(),i=ul(),s=yh(),a=Object.prototype,o=a.hasOwnProperty;function u(c,l){var f=r(c),h=!f&&t(c),d=!f&&!h&&n(c),g=!f&&!h&&!d&&s(c),y=f||h||d||g,v=y?e(c.length,String):[],_=v.length;for(var b in c)(l||o.call(c,b))&&!(y&&(b=="length"||d&&(b=="offset"||b=="parent")||g&&(b=="buffer"||b=="byteLength"||b=="byteOffset")||i(b,_)))&&v.push(b);return v}return Pv=u,Pv}var kv,ek;function oG(){if(ek)return kv;ek=1;function e(t){var r=[];if(t!=null)for(var n in Object(t))r.push(n);return r}return kv=e,kv}var Nv,tk;function uG(){if(tk)return Nv;tk=1;var e=On(),t=mh(),r=oG(),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 Nv=s,Nv}var Mv,rk;function cl(){if(rk)return Mv;rk=1;var e=e8(),t=uG(),r=so();function n(i){return r(i)?e(i,!0):t(i)}return Mv=n,Mv}var Dv,nk;function cG(){if(nk)return Dv;nk=1;var e=bu(),t=cl();function r(n){return e(n,t(n))}return Dv=r,Dv}var qv,ik;function lG(){if(ik)return qv;ik=1;var e=J6(),t=K6(),r=Y6(),n=sl(),i=Z6(),s=al(),a=Jr(),o=nG(),u=ol(),c=il(),l=On(),f=gh(),h=yh(),d=Q6(),g=cG();function y(v,_,b,S,w,E,A){var R=d(v,b),I=d(_,b),O=A.get(I);if(O){e(v,b,O);return}var D=E?E(R,I,b+"",v,_,A):void 0,P=D===void 0;if(P){var F=a(I),M=!F&&u(I),K=!F&&!M&&h(I);D=I,F||M||K?a(R)?D=R:o(R)?D=n(R):M?(P=!1,D=t(I,!0)):K?(P=!1,D=r(I,!0)):D=[]:f(I)||s(I)?(D=R,s(R)?D=g(R):(!l(R)||c(R))&&(D=i(I))):P=!1}P&&(A.set(I,D),w(D,I,S,E,A),A.delete(I)),e(v,b,D)}return qv=y,qv}var Fv,sk;function fG(){if(sk)return Fv;sk=1;var e=dh(),t=J6(),r=H6(),n=lG(),i=On(),s=cl(),a=Q6();function o(u,c,l,f,h){u!==c&&r(c,function(d,g){if(h||(h=new e),i(d))n(u,c,g,l,o,f,h);else{var y=f?f(a(u,g),d,g+"",u,c,h):void 0;y===void 0&&(y=d),t(u,g,y)}},s)}return Fv=o,Fv}var $v,ak;function ll(){if(ak)return $v;ak=1;function e(t){return t}return $v=e,$v}var Lv,ok;function n2(){if(ok)return Lv;ok=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 Lv=e,Lv}var Bv,uk;function t8(){if(uk)return Bv;uk=1;var e=n2(),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 Bv=r,Bv}var Uv,ck;function r8(){if(ck)return Uv;ck=1;function e(t){return function(){return t}}return Uv=e,Uv}var Vv,lk;function pG(){if(lk)return Vv;lk=1;var e=r8(),t=W6(),r=ll(),n=t?function(i,s){return t(i,"toString",{configurable:!0,enumerable:!1,value:e(s),writable:!0})}:r;return Vv=n,Vv}var zv,fk;function n8(){if(fk)return zv;fk=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 zv=n,zv}var Wv,pk;function i2(){if(pk)return Wv;pk=1;var e=pG(),t=n8(),r=t(e);return Wv=r,Wv}var Jv,dk;function dG(){if(dk)return Jv;dk=1;var e=ll(),t=t8(),r=i2();function n(i,s){return r(t(i,s,e),i+"")}return Jv=n,Jv}var Hv,hk;function i8(){if(hk)return Hv;hk=1;var e=yu(),t=so(),r=ul(),n=On();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 Hv=i,Hv}var Kv,mk;function hG(){if(mk)return Kv;mk=1;var e=dG(),t=i8();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 Kv=r,Kv}var Gv,gk;function mG(){if(gk)return Gv;gk=1;var e=fG(),t=hG(),r=t(function(n,i,s){e(n,i,s)});return Gv=r,Gv}var gG=mG();const yG=He.getDefaultExportFromCjs(gG);var Yv,yk;function s2(){if(yk)return Yv;yk=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 Yv=e,Yv}var Xv,vk;function fl(){if(vk)return Xv;vk=1;var e=ds(),t=Cn(),r="[object Symbol]";function n(i){return typeof i=="symbol"||t(i)&&e(i)==r}return Xv=n,Xv}var Zv,bk;function vG(){if(bk)return Zv;bk=1;var e=vu(),t=s2(),r=Jr(),n=fl(),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 Zv=a,Zv}var Qv,_k;function $s(){if(_k)return Qv;_k=1;var e=vG();function t(r){return r==null?"":e(r)}return Qv=t,Qv}var e0,Ek;function s8(){if(Ek)return e0;Ek=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 e0=e,e0}var t0,Sk;function bG(){if(Sk)return t0;Sk=1;var e=s8();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 t0=t,t0}var r0,wk;function a8(){if(wk)return r0;wk=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 r0=u,r0}var n0,xk;function _G(){if(xk)return n0;xk=1;function e(t){return t.split("")}return n0=e,n0}var i0,Ak;function EG(){if(Ak)return i0;Ak=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]",d="\\u200d",g=c+"?",y="["+s+"]?",v="(?:"+d+"(?:"+[l,f,h].join("|")+")"+y+g+")*",_=y+g+v,b="(?:"+[l+o+"?",o,f,h,a].join("|")+")",S=RegExp(u+"(?="+u+")|"+b+_,"g");function w(E){return E.match(S)||[]}return i0=w,i0}var s0,Ok;function SG(){if(Ok)return s0;Ok=1;var e=_G(),t=a8(),r=EG();function n(i){return t(i)?r(i):e(i)}return s0=n,s0}var a0,Ck;function wG(){if(Ck)return a0;Ck=1;var e=bG(),t=a8(),r=SG(),n=$s();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 a0=i,a0}var o0,Rk;function o8(){if(Rk)return o0;Rk=1;var e=wG(),t=e("toUpperCase");return o0=t,o0}var u0,Tk;function xG(){if(Tk)return u0;Tk=1;var e=$s(),t=o8();function r(n){return t(e(n).toLowerCase())}return u0=r,u0}var c0,Ik;function u8(){if(Ik)return c0;Ik=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 c0=e,c0}var l0,jk;function AG(){if(jk)return l0;jk=1;function e(t){return function(r){return t==null?void 0:t[r]}}return l0=e,l0}var f0,Pk;function OG(){if(Pk)return f0;Pk=1;var e=AG(),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 f0=r,f0}var p0,kk;function CG(){if(kk)return p0;kk=1;var e=OG(),t=$s(),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 p0=c,p0}var d0,Nk;function RG(){if(Nk)return d0;Nk=1;var e=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function t(r){return r.match(e)||[]}return d0=t,d0}var h0,Mk;function TG(){if(Mk)return h0;Mk=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 h0=t,h0}var m0,Dk;function IG(){if(Dk)return m0;Dk=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",d=o+u+c+l,g="['’]",y="["+d+"]",v="["+i+"]",_="\\d+",b="["+s+"]",S="["+a+"]",w="[^"+e+d+_+s+a+f+"]",E="\\ud83c[\\udffb-\\udfff]",A="(?:"+v+"|"+E+")",R="[^"+e+"]",I="(?:\\ud83c[\\udde6-\\uddff]){2}",O="[\\ud800-\\udbff][\\udc00-\\udfff]",D="["+f+"]",P="\\u200d",F="(?:"+S+"|"+w+")",M="(?:"+D+"|"+w+")",K="(?:"+g+"(?:d|ll|m|re|s|t|ve))?",te="(?:"+g+"(?:D|LL|M|RE|S|T|VE))?",J=A+"?",Q="["+h+"]?",re="(?:"+P+"(?:"+[R,I,O].join("|")+")"+Q+J+")*",ne="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",U="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",H=Q+J+re,ie="(?:"+[b,I,O].join("|")+")"+H,ue=RegExp([D+"?"+S+"+"+K+"(?="+[y,D,"$"].join("|")+")",M+"+"+te+"(?="+[y,D+F,"$"].join("|")+")",D+"?"+F+"+"+K,D+"+"+te,U,ne,_,ie].join("|"),"g");function le(ee){return ee.match(ue)||[]}return m0=le,m0}var g0,qk;function jG(){if(qk)return g0;qk=1;var e=RG(),t=TG(),r=$s(),n=IG();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 g0=i,g0}var y0,Fk;function PG(){if(Fk)return y0;Fk=1;var e=u8(),t=CG(),r=jG(),n="['’]",i=RegExp(n,"g");function s(a){return function(o){return e(r(t(o).replace(i,"")),a,"")}}return y0=s,y0}var v0,$k;function kG(){if($k)return v0;$k=1;var e=xG(),t=PG(),r=t(function(n,i,s){return i=i.toLowerCase(),n+(s?e(i):i)});return v0=r,v0}kG();o8();var b0,Lk;function c8(){if(Lk)return b0;Lk=1;var e=YO(),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,b0=r,b0}var NG=c8();const MG=He.getDefaultExportFromCjs(NG);var _0,Bk;function DG(){if(Bk)return _0;Bk=1;var e="__lodash_hash_undefined__";function t(r){return this.__data__.set(r,e),this}return _0=t,_0}var E0,Uk;function qG(){if(Uk)return E0;Uk=1;function e(t){return this.__data__.has(t)}return E0=e,E0}var S0,Vk;function FG(){if(Vk)return S0;Vk=1;var e=YO(),t=DG(),r=qG();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,S0=n,S0}var w0,zk;function l8(){if(zk)return w0;zk=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 w0=e,w0}var x0,Wk;function $G(){if(Wk)return x0;Wk=1;function e(t,r){return t.has(r)}return x0=e,x0}var A0,Jk;function f8(){if(Jk)return A0;Jk=1;var e=FG(),t=l8(),r=$G(),n=1,i=2;function s(a,o,u,c,l,f){var h=u&n,d=a.length,g=o.length;if(d!=g&&!(h&&g>d))return!1;var y=f.get(a),v=f.get(o);if(y&&v)return y==o&&v==a;var _=-1,b=!0,S=u&i?new e:void 0;for(f.set(a,o),f.set(o,a);++_<d;){var w=a[_],E=o[_];if(c)var A=h?c(E,w,_,o,a,f):c(w,E,_,a,o,f);if(A!==void 0){if(A)continue;b=!1;break}if(S){if(!t(o,function(R,I){if(!r(S,I)&&(w===R||l(w,R,u,c,f)))return S.push(I)})){b=!1;break}}else if(!(w===E||l(w,E,u,c,f))){b=!1;break}}return f.delete(a),f.delete(o),b}return A0=s,A0}var O0,Hk;function LG(){if(Hk)return O0;Hk=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i,s){n[++r]=[s,i]}),n}return O0=e,O0}var C0,Kk;function BG(){if(Kk)return C0;Kk=1;function e(t){var r=-1,n=Array(t.size);return t.forEach(function(i){n[++r]=i}),n}return C0=e,C0}var R0,Gk;function UG(){if(Gk)return R0;Gk=1;var e=vu(),t=G6(),r=yu(),n=f8(),i=LG(),s=BG(),a=1,o=2,u="[object Boolean]",c="[object Date]",l="[object Error]",f="[object Map]",h="[object Number]",d="[object RegExp]",g="[object Set]",y="[object String]",v="[object Symbol]",_="[object ArrayBuffer]",b="[object DataView]",S=e?e.prototype:void 0,w=S?S.valueOf:void 0;function E(A,R,I,O,D,P,F){switch(I){case b:if(A.byteLength!=R.byteLength||A.byteOffset!=R.byteOffset)return!1;A=A.buffer,R=R.buffer;case _:return!(A.byteLength!=R.byteLength||!P(new t(A),new t(R)));case u:case c:case h:return r(+A,+R);case l:return A.name==R.name&&A.message==R.message;case d:case y:return A==R+"";case f:var M=i;case g:var K=O&a;if(M||(M=s),A.size!=R.size&&!K)return!1;var te=F.get(A);if(te)return te==R;O|=o,F.set(A,R);var J=n(M(A),M(R),O,D,P,F);return F.delete(A),J;case v:if(w)return w.call(A)==w.call(R)}return!1}return R0=E,R0}var T0,Yk;function a2(){if(Yk)return T0;Yk=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 T0=e,T0}var I0,Xk;function p8(){if(Xk)return I0;Xk=1;var e=a2(),t=Jr();function r(n,i,s){var a=i(n);return t(n)?a:e(a,s(n))}return I0=r,I0}var j0,Zk;function VG(){if(Zk)return j0;Zk=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 j0=e,j0}var P0,Qk;function d8(){if(Qk)return P0;Qk=1;function e(){return[]}return P0=e,P0}var k0,eN;function o2(){if(eN)return k0;eN=1;var e=VG(),t=d8(),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 k0=s,k0}var N0,tN;function zG(){if(tN)return N0;tN=1;var e=X6(),t=e(Object.keys,Object);return N0=t,N0}var M0,rN;function u2(){if(rN)return M0;rN=1;var e=mh(),t=zG(),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 M0=i,M0}var D0,nN;function _u(){if(nN)return D0;nN=1;var e=e8(),t=u2(),r=so();function n(i){return r(i)?e(i):t(i)}return D0=n,D0}var q0,iN;function h8(){if(iN)return q0;iN=1;var e=p8(),t=o2(),r=_u();function n(i){return e(i,r,t)}return q0=n,q0}var F0,sN;function WG(){if(sN)return F0;sN=1;var e=h8(),t=1,r=Object.prototype,n=r.hasOwnProperty;function i(s,a,o,u,c,l){var f=o&t,h=e(s),d=h.length,g=e(a),y=g.length;if(d!=y&&!f)return!1;for(var v=d;v--;){var _=h[v];if(!(f?_ in a:n.call(a,_)))return!1}var b=l.get(s),S=l.get(a);if(b&&S)return b==a&&S==s;var w=!0;l.set(s,a),l.set(a,s);for(var E=f;++v<d;){_=h[v];var A=s[_],R=a[_];if(u)var I=f?u(R,A,_,a,s,l):u(A,R,_,s,a,l);if(!(I===void 0?A===R||c(A,R,o,u,l):I)){w=!1;break}E||(E=_=="constructor")}if(w&&!E){var O=s.constructor,D=a.constructor;O!=D&&"constructor"in s&&"constructor"in a&&!(typeof O=="function"&&O instanceof O&&typeof D=="function"&&D instanceof D)&&(w=!1)}return l.delete(s),l.delete(a),w}return F0=i,F0}var $0,aN;function JG(){if(aN)return $0;aN=1;var e=io(),t=An(),r=e(t,"DataView");return $0=r,$0}var L0,oN;function HG(){if(oN)return L0;oN=1;var e=io(),t=An(),r=e(t,"Promise");return L0=r,L0}var B0,uN;function KG(){if(uN)return B0;uN=1;var e=io(),t=An(),r=e(t,"Set");return B0=r,B0}var U0,cN;function m8(){if(cN)return U0;cN=1;var e=io(),t=An(),r=e(t,"WeakMap");return U0=r,U0}var V0,lN;function Eu(){if(lN)return V0;lN=1;var e=JG(),t=GO(),r=HG(),n=KG(),i=m8(),s=ds(),a=z6(),o="[object Map]",u="[object Object]",c="[object Promise]",l="[object Set]",f="[object WeakMap]",h="[object DataView]",d=a(e),g=a(t),y=a(r),v=a(n),_=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 w=s(S),E=w==u?S.constructor:void 0,A=E?a(E):"";if(A)switch(A){case d:return h;case g:return o;case y:return c;case v:return l;case _:return f}return w}),V0=b,V0}var z0,fN;function GG(){if(fN)return z0;fN=1;var e=dh(),t=f8(),r=UG(),n=WG(),i=Eu(),s=Jr(),a=ol(),o=yh(),u=1,c="[object Arguments]",l="[object Array]",f="[object Object]",h=Object.prototype,d=h.hasOwnProperty;function g(y,v,_,b,S,w){var E=s(y),A=s(v),R=E?l:i(y),I=A?l:i(v);R=R==c?f:R,I=I==c?f:I;var O=R==f,D=I==f,P=R==I;if(P&&a(y)){if(!a(v))return!1;E=!0,O=!1}if(P&&!O)return w||(w=new e),E||o(y)?t(y,v,_,b,S,w):r(y,v,R,_,b,S,w);if(!(_&u)){var F=O&&d.call(y,"__wrapped__"),M=D&&d.call(v,"__wrapped__");if(F||M){var K=F?y.value():y,te=M?v.value():v;return w||(w=new e),S(K,te,_,b,w)}}return P?(w||(w=new e),n(y,v,_,b,S,w)):!1}return z0=g,z0}var W0,pN;function c2(){if(pN)return W0;pN=1;var e=GG(),t=Cn();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 W0=r,W0}var J0,dN;function YG(){if(dN)return J0;dN=1;var e=dh(),t=c2(),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 d=h[0],g=s[d],y=h[1];if(f&&h[2]){if(g===void 0&&!(d in s))return!1}else{var v=new e;if(u)var _=u(g,y,d,s,a,v);if(!(_===void 0?t(y,g,r|n,u,v):_))return!1}}return!0}return J0=i,J0}var H0,hN;function g8(){if(hN)return H0;hN=1;var e=On();function t(r){return r===r&&!e(r)}return H0=t,H0}var K0,mN;function XG(){if(mN)return K0;mN=1;var e=g8(),t=_u();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 K0=r,K0}var G0,gN;function y8(){if(gN)return G0;gN=1;function e(t,r){return function(n){return n==null?!1:n[t]===r&&(r!==void 0||t in Object(n))}}return G0=e,G0}var Y0,yN;function ZG(){if(yN)return Y0;yN=1;var e=YG(),t=XG(),r=y8();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 Y0=n,Y0}var X0,vN;function l2(){if(vN)return X0;vN=1;var e=Jr(),t=fl(),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 X0=i,X0}var Z0,bN;function QG(){if(bN)return Z0;bN=1;var e=c8(),t=500;function r(n){var i=e(n,function(a){return s.size===t&&s.clear(),a}),s=i.cache;return i}return Z0=r,Z0}var Q0,_N;function v8(){if(_N)return Q0;_N=1;var e=QG(),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 Q0=n,Q0}var eb,EN;function pl(){if(EN)return eb;EN=1;var e=Jr(),t=l2(),r=v8(),n=$s();function i(s,a){return e(s)?s:t(s,a)?[s]:r(n(s))}return eb=i,eb}var tb,SN;function ao(){if(SN)return tb;SN=1;var e=fl();function t(r){if(typeof r=="string"||e(r))return r;var n=r+"";return n=="0"&&1/r==-1/0?"-0":n}return tb=t,tb}var rb,wN;function f2(){if(wN)return rb;wN=1;var e=pl(),t=ao();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 rb=r,rb}var nb,xN;function b8(){if(xN)return nb;xN=1;var e=f2();function t(r,n,i){var s=r==null?void 0:e(r,n);return s===void 0?i:s}return nb=t,nb}var ib,AN;function eY(){if(AN)return ib;AN=1;function e(t,r){return t!=null&&r in Object(t)}return ib=e,ib}var sb,ON;function _8(){if(ON)return sb;ON=1;var e=pl(),t=al(),r=Jr(),n=ul(),i=e2(),s=ao();function a(o,u,c){u=e(u,o);for(var l=-1,f=u.length,h=!1;++l<f;){var d=s(u[l]);if(!(h=o!=null&&c(o,d)))break;o=o[d]}return h||++l!=f?h:(f=o==null?0:o.length,!!f&&i(f)&&n(d,f)&&(r(o)||t(o)))}return sb=a,sb}var ab,CN;function tY(){if(CN)return ab;CN=1;var e=eY(),t=_8();function r(n,i){return n!=null&&t(n,i,e)}return ab=r,ab}var ob,RN;function rY(){if(RN)return ob;RN=1;var e=c2(),t=b8(),r=tY(),n=l2(),i=g8(),s=y8(),a=ao(),o=1,u=2;function c(l,f){return n(l)&&i(f)?s(a(l),f):function(h){var d=t(h,l);return d===void 0&&d===f?r(h,l):e(f,d,o|u)}}return ob=c,ob}var ub,TN;function nY(){if(TN)return ub;TN=1;function e(t){return function(r){return r==null?void 0:r[t]}}return ub=e,ub}var cb,IN;function iY(){if(IN)return cb;IN=1;var e=f2();function t(r){return function(n){return e(n,r)}}return cb=t,cb}var lb,jN;function sY(){if(jN)return lb;jN=1;var e=nY(),t=iY(),r=l2(),n=ao();function i(s){return r(s)?e(n(s)):t(s)}return lb=i,lb}var fb,PN;function dl(){if(PN)return fb;PN=1;var e=ZG(),t=rY(),r=ll(),n=Jr(),i=sY();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 fb=s,fb}var pb,kN;function aY(){if(kN)return pb;kN=1;var e=dl(),t=so(),r=_u();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 pb=n,pb}var db,NN;function E8(){if(NN)return db;NN=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 db=e,db}var hb,MN;function oY(){if(MN)return hb;MN=1;var e=/\s/;function t(r){for(var n=r.length;n--&&e.test(r.charAt(n)););return n}return hb=t,hb}var mb,DN;function uY(){if(DN)return mb;DN=1;var e=oY(),t=/^\s+/;function r(n){return n&&n.slice(0,e(n)+1).replace(t,"")}return mb=r,mb}var gb,qN;function S8(){if(qN)return gb;qN=1;var e=uY(),t=On(),r=fl(),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 gb=u,gb}var yb,FN;function cY(){if(FN)return yb;FN=1;var e=S8(),t=1/0,r=17976931348623157e292;function n(i){if(!i)return i===0?i:0;if(i=e(i),i===t||i===-t){var s=i<0?-1:1;return s*r}return i===i?i:0}return yb=n,yb}var vb,$N;function p2(){if($N)return vb;$N=1;var e=cY();function t(r){var n=e(r),i=n%1;return n===n?i?n-i:n:0}return vb=t,vb}var bb,LN;function lY(){if(LN)return bb;LN=1;var e=E8(),t=dl(),r=p2(),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 bb=i,bb}var _b,BN;function fY(){if(BN)return _b;BN=1;var e=aY(),t=lY(),r=e(t);return _b=r,_b}var pY=fY();const dY=He.getDefaultExportFromCjs(pY);var Eb,UN;function hY(){if(UN)return Eb;UN=1;var e=H6(),t=_u();function r(n,i){return n&&e(n,i,t)}return Eb=r,Eb}var Sb,VN;function mY(){if(VN)return Sb;VN=1;var e=so();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 Sb=t,Sb}var wb,zN;function w8(){if(zN)return wb;zN=1;var e=hY(),t=mY(),r=t(e);return wb=r,wb}var xb,WN;function gY(){if(WN)return xb;WN=1;var e=w8();function t(r,n){var i;return e(r,function(s,a,o){return i=n(s,a,o),!i}),!!i}return xb=t,xb}var Ab,JN;function yY(){if(JN)return Ab;JN=1;var e=l8(),t=dl(),r=gY(),n=Jr(),i=i8();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 Ab=s,Ab}var vY=yY();const bY=He.getDefaultExportFromCjs(vY);var _Y=yu();const EY=He.getDefaultExportFromCjs(_Y);var SY=il();const wY=He.getDefaultExportFromCjs(SY);var Ap={exports:{}};/*! https://mths.be/cssescape v1.5.1 by @mathias | MIT license */var xY=Ap.exports,HN;function AY(){return HN||(HN=1,(function(e,t){(function(r,n){e.exports=n(r)})(typeof He.commonjsGlobal<"u"?He.commonjsGlobal:xY,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})})(Ap)),Ap.exports}var OY=AY();const CY=He.getDefaultExportFromCjs(OY);var Ob,KN;function RY(){return KN||(KN=1,Ob=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}),Ob}var tp={},GN;function TY(){if(GN)return tp;GN=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 tp.stringify=s,tp.parse=i,tp}var Cb,YN;function IY(){if(YN)return Cb;YN=1;var e=RY(),t=TY(),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,w){return h(w.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 He.commonjsGlobal<"u"?S=He.commonjsGlobal:typeof self<"u"?S=self:S={};var w=S.location||{};b=b||w;var E={},A=typeof b,R;if(b.protocol==="blob:")E=new y(unescape(b.pathname),{});else if(A==="string"){E=new y(b,{});for(R in l)delete E[R]}else if(A==="object"){for(R in b)R in l||(E[R]=b[R]);E.slashes===void 0&&(E.slashes=i.test(b.href))}return E}function h(b){return b==="file:"||b==="ftp:"||b==="http:"||b==="https:"||b==="ws:"||b==="wss:"}function d(b,S){b=u(b),b=b.replace(n,""),S=S||{};var w=a.exec(b),E=w[1]?w[1].toLowerCase():"",A=!!w[2],R=!!w[3],I=0,O;return A?R?(O=w[2]+w[3]+w[4],I=w[2].length+w[3].length):(O=w[2]+w[4],I=w[2].length):R?(O=w[3]+w[4],I=w[3].length):O=w[4],E==="file:"?I>=2&&(O=O.slice(2)):h(E)?O=w[4]:E?A&&(O=O.slice(2)):I>=2&&h(S.protocol)&&(O=w[4]),{protocol:E,slashes:A||h(E),slashesCount:I,rest:O}}function g(b,S){if(b==="")return S;for(var w=(S||"/").split("/").slice(0,-1).concat(b.split("/")),E=w.length,A=w[E-1],R=!1,I=0;E--;)w[E]==="."?w.splice(E,1):w[E]===".."?(w.splice(E,1),I++):I&&(E===0&&(R=!0),w.splice(E,1),I--);return R&&w.unshift(""),(A==="."||A==="..")&&w.push(""),w.join("/")}function y(b,S,w){if(b=u(b),b=b.replace(n,""),!(this instanceof y))return new y(b,S,w);var E,A,R,I,O,D,P=c.slice(),F=typeof S,M=this,K=0;for(F!=="object"&&F!=="string"&&(w=S,S=null),w&&typeof w!="function"&&(w=t.parse),S=f(S),A=d(b||"",S),E=!A.protocol&&!A.slashes,M.slashes=A.slashes||E&&S.slashes,M.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(M.protocol)))&&(P[3]=[/(.*)/,"pathname"]);K<P.length;K++){if(I=P[K],typeof I=="function"){b=I(b,M);continue}R=I[0],D=I[1],R!==R?M[D]=b:typeof R=="string"?(O=R==="@"?b.lastIndexOf(R):b.indexOf(R),~O&&(typeof I[2]=="number"?(M[D]=b.slice(0,O),b=b.slice(O+I[2])):(M[D]=b.slice(O),b=b.slice(0,O)))):(O=R.exec(b))&&(M[D]=O[1],b=b.slice(0,O.index)),M[D]=M[D]||E&&I[3]&&S[D]||"",I[4]&&(M[D]=M[D].toLowerCase())}w&&(M.query=w(M.query)),E&&S.slashes&&M.pathname.charAt(0)!=="/"&&(M.pathname!==""||S.pathname!=="")&&(M.pathname=g(M.pathname,S.pathname)),M.pathname.charAt(0)!=="/"&&h(M.protocol)&&(M.pathname="/"+M.pathname),e(M.port,M.protocol)||(M.host=M.hostname,M.port=""),M.username=M.password="",M.auth&&(O=M.auth.indexOf(":"),~O?(M.username=M.auth.slice(0,O),M.username=encodeURIComponent(decodeURIComponent(M.username)),M.password=M.auth.slice(O+1),M.password=encodeURIComponent(decodeURIComponent(M.password))):M.username=encodeURIComponent(decodeURIComponent(M.auth)),M.auth=M.password?M.username+":"+M.password:M.username),M.origin=M.protocol!=="file:"&&h(M.protocol)&&M.host?M.protocol+"//"+M.host:"null",M.href=M.toString()}function v(b,S,w){var E=this;switch(b){case"query":typeof S=="string"&&S.length&&(S=(w||t.parse)(S)),E[b]=S;break;case"port":E[b]=S,e(S,E.protocol)?S&&(E.host=E.hostname+":"+S):(E.host=E.hostname,E[b]="");break;case"hostname":E[b]=S,E.port&&(S+=":"+E.port),E.host=S;break;case"host":E[b]=S,s.test(S)?(S=S.split(":"),E.port=S.pop(),E.hostname=S.join(":")):(E.hostname=S,E.port="");break;case"protocol":E.protocol=S.toLowerCase(),E.slashes=!w;break;case"pathname":case"hash":if(S){var A=b==="pathname"?"/":"#";E[b]=S.charAt(0)!==A?A+S:S}else E[b]=S;break;case"username":case"password":E[b]=encodeURIComponent(S);break;case"auth":var R=S.indexOf(":");~R?(E.username=S.slice(0,R),E.username=encodeURIComponent(decodeURIComponent(E.username)),E.password=S.slice(R+1),E.password=encodeURIComponent(decodeURIComponent(E.password))):E.username=encodeURIComponent(decodeURIComponent(S))}for(var I=0;I<c.length;I++){var O=c[I];O[4]&&(E[O[1]]=E[O[1]].toLowerCase())}return E.auth=E.password?E.username+":"+E.password:E.username,E.origin=E.protocol!=="file:"&&h(E.protocol)&&E.host?E.protocol+"//"+E.host:"null",E.href=E.toString(),E}function _(b){(!b||typeof b!="function")&&(b=t.stringify);var S,w=this,E=w.host,A=w.protocol;A&&A.charAt(A.length-1)!==":"&&(A+=":");var R=A+(w.protocol&&w.slashes||h(w.protocol)?"//":"");return w.username?(R+=w.username,w.password&&(R+=":"+w.password),R+="@"):w.password?(R+=":"+w.password,R+="@"):w.protocol!=="file:"&&h(w.protocol)&&!E&&w.pathname!=="/"&&(R+="@"),(E[E.length-1]===":"||s.test(w.hostname)&&!w.port)&&(E+=":"),R+=E+w.pathname,S=typeof w.query=="object"?b(w.query):w.query,S&&(R+=S.charAt(0)!=="?"?"?"+S:S),w.hash&&(R+=w.hash),R}return y.prototype={set:v,toString:_},y.extractProtocol=d,y.location=f,y.trimLeft=u,y.qs=t,Cb=y,Cb}var jY=IY();const PY=He.getDefaultExportFromCjs(jY);var kY=(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
|
|
26
|
+
\`createSelector([state => state.todos], todos => todos)\`
|
|
27
|
+
This could lead to inefficient memoization and unnecessary re-renders.
|
|
28
|
+
Ensure transformation logic is in the result function, and extraction logic is in the input selectors.`,{stack:i})}}},NY=(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.
|
|
29
|
+
This means your output selector will likely run more frequently than intended.
|
|
30
|
+
Avoid returning a new reference inside your input selector, e.g.
|
|
31
|
+
\`createSelector([state => state.todos.map(todo => todo.id)], todoIds => todoIds.length)\``,{arguments:r,firstInputs:s,secondInputs:a,stack:c})}},MY={inputStabilityCheck:"once",identityFunctionCheck:"once"};function DY(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function qY(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function FY(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 XN=e=>Array.isArray(e)?e:[e];function $Y(e){const t=Array.isArray(e[0])?e[0]:e;return FY(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function ZN(e,t){const r=[],{length:n}=e;for(let i=0;i<n;i++)r.push(e[i].apply(null,t));return r}var LY=(e,t)=>{const{identityFunctionCheck:r,inputStabilityCheck:n}={...MY,...t};return{identityFunctionCheck:{shouldRun:r==="always"||r==="once"&&e,run:kY},inputStabilityCheck:{shouldRun:n==="always"||n==="once"&&e,run:NY}}},BY=class{constructor(e){this.value=e}deref(){return this.value}},UY=typeof WeakRef<"u"?WeakRef:BY,VY=0,QN=1;function rp(){return{s:VY,v:void 0,o:null,p:null}}function x8(e,t={}){let r=rp();const{resultEqualityCheck:n}=t;let i,s=0;function a(){var f;let o=r;const{length:u}=arguments;for(let h=0,d=u;h<d;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=rp(),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=rp(),y.set(g,o)):o=v}}const c=o;let l;if(o.s===QN)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 UY(l):l}return c.s=QN,c.v=l,l}return a.clearCache=()=>{r=rp(),a.resetResultsCount()},a.resultsCount=()=>s,a.resetResultsCount=()=>{s=0},a}function zY(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()),DY(c,`createSelector expects an output function after the inputs, but received: [${typeof c}]`);const l={...r,...u},{memoize:f,memoizeOptions:h=[],argsMemoize:d=x8,argsMemoizeOptions:g=[],devModeChecks:y={}}=l,v=XN(h),_=XN(g),b=$Y(i),S=f(function(){return s++,c.apply(null,arguments)},...v);let w=!0;const E=d(function(){a++;const R=ZN(b,arguments);if(o=S.apply(null,R),process.env.NODE_ENV!=="production"){const{identityFunctionCheck:I,inputStabilityCheck:O}=LY(w,y);if(I.shouldRun&&I.run(c,R,o),O.shouldRun){const D=ZN(b,arguments);O.run({inputSelectorResults:R,inputSelectorResultsCopy:D},{memoize:f,memoizeOptions:v},arguments)}w&&(w=!1)}return o},..._);return Object.assign(E,{resultFunc:c,memoizedResultFunc:S,dependencies:b,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>o,recomputations:()=>s,resetRecomputations:()=>{s=0},memoize:f,argsMemoize:d})};return Object.assign(n,{withTypes:()=>n}),n}var A8=zY(x8),WY=Object.assign((e,t=A8)=>{qY(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:()=>WY}),Rb,eM;function d2(){if(eM)return Rb;eM=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 Rb=e,Rb}var Tb,tM;function O8(){if(tM)return Tb;tM=1;var e=bu(),t=_u();function r(n,i){return n&&e(i,t(i),n)}return Tb=r,Tb}var Ib,rM;function JY(){if(rM)return Ib;rM=1;var e=bu(),t=cl();function r(n,i){return n&&e(i,t(i),n)}return Ib=r,Ib}var jb,nM;function HY(){if(nM)return jb;nM=1;var e=bu(),t=o2();function r(n,i){return e(n,t(n),i)}return jb=r,jb}var Pb,iM;function C8(){if(iM)return Pb;iM=1;var e=a2(),t=QO(),r=o2(),n=d8(),i=Object.getOwnPropertySymbols,s=i?function(a){for(var o=[];a;)e(o,r(a)),a=t(a);return o}:n;return Pb=s,Pb}var kb,sM;function KY(){if(sM)return kb;sM=1;var e=bu(),t=C8();function r(n,i){return e(n,t(n),i)}return kb=r,kb}var Nb,aM;function R8(){if(aM)return Nb;aM=1;var e=p8(),t=C8(),r=cl();function n(i){return e(i,r,t)}return Nb=n,Nb}var Mb,oM;function GY(){if(oM)return Mb;oM=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 Mb=r,Mb}var Db,uM;function YY(){if(uM)return Db;uM=1;var e=ZO();function t(r,n){var i=n?e(r.buffer):r.buffer;return new r.constructor(i,r.byteOffset,r.byteLength)}return Db=t,Db}var qb,cM;function XY(){if(cM)return qb;cM=1;var e=/\w*$/;function t(r){var n=new r.constructor(r.source,e.exec(r));return n.lastIndex=r.lastIndex,n}return qb=t,qb}var Fb,lM;function ZY(){if(lM)return Fb;lM=1;var e=vu(),t=e?e.prototype:void 0,r=t?t.valueOf:void 0;function n(i){return r?Object(r.call(i)):{}}return Fb=n,Fb}var $b,fM;function QY(){if(fM)return $b;fM=1;var e=ZO(),t=YY(),r=XY(),n=ZY(),i=Y6(),s="[object Boolean]",a="[object Date]",o="[object Map]",u="[object Number]",c="[object RegExp]",l="[object Set]",f="[object String]",h="[object Symbol]",d="[object ArrayBuffer]",g="[object DataView]",y="[object Float32Array]",v="[object Float64Array]",_="[object Int8Array]",b="[object Int16Array]",S="[object Int32Array]",w="[object Uint8Array]",E="[object Uint8ClampedArray]",A="[object Uint16Array]",R="[object Uint32Array]";function I(O,D,P){var F=O.constructor;switch(D){case d:return e(O);case s:case a:return new F(+O);case g:return t(O,P);case y:case v:case _:case b:case S:case w:case E:case A:case R:return i(O,P);case o:return new F;case u:case f:return new F(O);case c:return r(O);case l:return new F;case h:return n(O)}}return $b=I,$b}var Lb,pM;function eX(){if(pM)return Lb;pM=1;var e=Eu(),t=Cn(),r="[object Map]";function n(i){return t(i)&&e(i)==r}return Lb=n,Lb}var Bb,dM;function tX(){if(dM)return Bb;dM=1;var e=eX(),t=t2(),r=r2(),n=r&&r.isMap,i=n?t(n):e;return Bb=i,Bb}var Ub,hM;function rX(){if(hM)return Ub;hM=1;var e=Eu(),t=Cn(),r="[object Set]";function n(i){return t(i)&&e(i)==r}return Ub=n,Ub}var Vb,mM;function nX(){if(mM)return Vb;mM=1;var e=rX(),t=t2(),r=r2(),n=r&&r.isSet,i=n?t(n):e;return Vb=i,Vb}var zb,gM;function h2(){if(gM)return zb;gM=1;var e=dh(),t=d2(),r=vh(),n=O8(),i=JY(),s=K6(),a=sl(),o=HY(),u=KY(),c=h8(),l=R8(),f=Eu(),h=GY(),d=QY(),g=Z6(),y=Jr(),v=ol(),_=tX(),b=On(),S=nX(),w=_u(),E=cl(),A=1,R=2,I=4,O="[object Arguments]",D="[object Array]",P="[object Boolean]",F="[object Date]",M="[object Error]",K="[object Function]",te="[object GeneratorFunction]",J="[object Map]",Q="[object Number]",re="[object Object]",ne="[object RegExp]",U="[object Set]",H="[object String]",ie="[object Symbol]",ue="[object WeakMap]",le="[object ArrayBuffer]",ee="[object DataView]",z="[object Float32Array]",V="[object Float64Array]",fe="[object Int8Array]",me="[object Int16Array]",Re="[object Int32Array]",Ne="[object Uint8Array]",he="[object Uint8ClampedArray]",Te="[object Uint16Array]",Ue="[object Uint32Array]",_e={};_e[O]=_e[D]=_e[le]=_e[ee]=_e[P]=_e[F]=_e[z]=_e[V]=_e[fe]=_e[me]=_e[Re]=_e[J]=_e[Q]=_e[re]=_e[ne]=_e[U]=_e[H]=_e[ie]=_e[Ne]=_e[he]=_e[Te]=_e[Ue]=!0,_e[M]=_e[K]=_e[ue]=!1;function we(Ae,B,T,k,W,se){var ce,ye=B&A,Me=B&R,Xe=B&I;if(T&&(ce=W?T(Ae,k,W,se):T(Ae)),ce!==void 0)return ce;if(!b(Ae))return Ae;var $=y(Ae);if($){if(ce=h(Ae),!ye)return a(Ae,ce)}else{var C=f(Ae),j=C==K||C==te;if(v(Ae))return s(Ae,ye);if(C==re||C==O||j&&!W){if(ce=Me||j?{}:g(Ae),!ye)return Me?u(Ae,i(ce,Ae)):o(Ae,n(ce,Ae))}else{if(!_e[C])return W?Ae:{};ce=d(Ae,C,ye)}}se||(se=new e);var Z=se.get(Ae);if(Z)return Z;se.set(Ae,ce),S(Ae)?Ae.forEach(function(Oe){ce.add(we(Oe,B,T,Oe,Ae,se))}):_(Ae)&&Ae.forEach(function(Oe,nt){ce.set(nt,we(Oe,B,T,nt,Ae,se))});var de=Xe?Me?l:c:Me?E:w,be=$?void 0:de(Ae);return t(be||Ae,function(Oe,nt){be&&(nt=Oe,Oe=Ae[nt]),r(ce,nt,we(Oe,B,T,nt,Ae,se))}),ce}return zb=we,zb}var Wb,yM;function iX(){if(yM)return Wb;yM=1;function e(t){var r=t==null?0:t.length;return r?t[r-1]:void 0}return Wb=e,Wb}var Jb,vM;function sX(){if(vM)return Jb;vM=1;var e=f2(),t=s8();function r(n,i){return i.length<2?n:e(n,t(i,0,-1))}return Jb=r,Jb}var Hb,bM;function aX(){if(bM)return Hb;bM=1;var e=pl(),t=iX(),r=sX(),n=ao();function i(s,a){return a=e(a,s),s=r(s,a),s==null||delete s[n(t(a))]}return Hb=i,Hb}var Kb,_M;function oX(){if(_M)return Kb;_M=1;var e=gh();function t(r){return e(r)?void 0:r}return Kb=t,Kb}var Gb,EM;function uX(){if(EM)return Gb;EM=1;var e=vu(),t=al(),r=Jr(),n=e?e.isConcatSpreadable:void 0;function i(s){return r(s)||t(s)||!!(n&&s&&s[n])}return Gb=i,Gb}var Yb,SM;function cX(){if(SM)return Yb;SM=1;var e=a2(),t=uX();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 Yb=r,Yb}var Xb,wM;function lX(){if(wM)return Xb;wM=1;var e=cX();function t(r){var n=r==null?0:r.length;return n?e(r,1):[]}return Xb=t,Xb}var Zb,xM;function T8(){if(xM)return Zb;xM=1;var e=lX(),t=t8(),r=i2();function n(i){return r(t(i,void 0,e),i+"")}return Zb=n,Zb}var Qb,AM;function fX(){if(AM)return Qb;AM=1;var e=s2(),t=h2(),r=aX(),n=pl(),i=bu(),s=oX(),a=T8(),o=R8(),u=1,c=2,l=4,f=a(function(h,d){var g={};if(h==null)return g;var y=!1;d=e(d,function(_){return _=n(_,h),y||(y=_.length>1),_}),i(h,o(h),g),y&&(g=t(g,u|c|l,s));for(var v=d.length;v--;)r(g,d[v]);return g});return Qb=f,Qb}var pX=fX();const dX=He.getDefaultExportFromCjs(pX);/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function I8(e){return typeof e>"u"||e===null}function hX(e){return typeof e=="object"&&e!==null}function mX(e){return Array.isArray(e)?e:I8(e)?[]:[e]}function gX(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 yX(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}function vX(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var bX=I8,_X=hX,EX=mX,SX=yX,wX=vX,xX=gX,Fr={isNothing:bX,isObject:_X,toArray:EX,repeat:SX,isNegativeZero:wX,extend:xX};function j8(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+=`
|
|
32
|
+
|
|
33
|
+
`+e.mark.snippet),n+" "+r):n}function Rc(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=j8(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Rc.prototype=Object.create(Error.prototype);Rc.prototype.constructor=Rc;Rc.prototype.toString=function(t){return this.name+": "+j8(this,t)};var bn=Rc;function e_(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 t_(e,t){return Fr.repeat(" ",t-e.length)+e}function AX(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=e_(e.buffer,n[a-u],i[a-u],e.position-(n[a]-n[a-u]),f),o=Fr.repeat(" ",t.indent)+t_((e.line-u+1).toString(),l)+" | "+c.str+`
|
|
34
|
+
`+o;for(c=e_(e.buffer,n[a],i[a],e.position,f),o+=Fr.repeat(" ",t.indent)+t_((e.line+1).toString(),l)+" | "+c.str+`
|
|
35
|
+
`,o+=Fr.repeat("-",t.indent+l+3+c.pos)+`^
|
|
36
|
+
`,u=1;u<=t.linesAfter&&!(a+u>=i.length);u++)c=e_(e.buffer,n[a+u],i[a+u],e.position-(n[a]-n[a+u]),f),o+=Fr.repeat(" ",t.indent)+t_((e.line+u+1).toString(),l)+" | "+c.str+`
|
|
37
|
+
`;return o.replace(/\n$/,"")}var OX=AX,CX=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],RX=["scalar","sequence","mapping"];function TX(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}function IX(e,t){if(t=t||{},Object.keys(t).forEach(function(r){if(CX.indexOf(r)===-1)throw new bn('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=TX(t.styleAliases||null),RX.indexOf(this.kind)===-1)throw new bn('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var en=IX;function OM(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 jX(){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 Ox(e){return this.extend(e)}Ox.prototype.extend=function(t){var r=[],n=[];if(t instanceof en)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 bn("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");r.forEach(function(s){if(!(s instanceof en))throw new bn("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(s.loadKind&&s.loadKind!=="scalar")throw new bn("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 bn("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 en))throw new bn("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var i=Object.create(Ox.prototype);return i.implicit=(this.implicit||[]).concat(r),i.explicit=(this.explicit||[]).concat(n),i.compiledImplicit=OM(i,"implicit"),i.compiledExplicit=OM(i,"explicit"),i.compiledTypeMap=jX(i.compiledImplicit,i.compiledExplicit),i};var P8=Ox,k8=new en("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),N8=new en("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),M8=new en("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),D8=new P8({explicit:[k8,N8,M8]});function PX(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function kX(){return null}function NX(e){return e===null}var q8=new en("tag:yaml.org,2002:null",{kind:"scalar",resolve:PX,construct:kX,predicate:NX,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function MX(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 DX(e){return e==="true"||e==="True"||e==="TRUE"}function qX(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var F8=new en("tag:yaml.org,2002:bool",{kind:"scalar",resolve:MX,construct:DX,predicate:qX,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 FX(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function $X(e){return 48<=e&&e<=55}function LX(e){return 48<=e&&e<=57}function BX(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(!FX(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}if(i==="o"){for(r++;r<t;r++)if(i=e[r],i!=="_"){if(!$X(e.charCodeAt(r)))return!1;n=!0}return n&&i!=="_"}}if(i==="_")return!1;for(;r<t;r++)if(i=e[r],i!=="_"){if(!LX(e.charCodeAt(r)))return!1;n=!0}return!(!n||i==="_")}function UX(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 VX(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!Fr.isNegativeZero(e)}var $8=new en("tag:yaml.org,2002:int",{kind:"scalar",resolve:BX,construct:UX,predicate:VX,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"]}}),zX=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function WX(e){return!(e===null||!zX.test(e)||e[e.length-1]==="_")}function JX(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 HX=/^[-+]?[0-9]+e/;function KX(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(Fr.isNegativeZero(e))return"-0.0";return r=e.toString(10),HX.test(r)?r.replace("e",".e"):r}function GX(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||Fr.isNegativeZero(e))}var L8=new en("tag:yaml.org,2002:float",{kind:"scalar",resolve:WX,construct:JX,predicate:GX,represent:KX,defaultStyle:"lowercase"}),B8=D8.extend({implicit:[q8,F8,$8,L8]}),U8=B8,V8=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),z8=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 YX(e){return e===null?!1:V8.exec(e)!==null||z8.exec(e)!==null}function XX(e){var t,r,n,i,s,a,o,u=0,c=null,l,f,h;if(t=V8.exec(e),t===null&&(t=z8.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 ZX(e){return e.toISOString()}var W8=new en("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:YX,construct:XX,instanceOf:Date,represent:ZX});function QX(e){return e==="<<"||e===null}var J8=new en("tag:yaml.org,2002:merge",{kind:"scalar",resolve:QX}),m2=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
38
|
+
\r`;function eZ(e){if(e===null)return!1;var t,r,n=0,i=e.length,s=m2;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 tZ(e){var t,r,n=e.replace(/[\r\n=]/g,""),i=n.length,s=m2,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 rZ(e){var t="",r=0,n,i,s=e.length,a=m2;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 nZ(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var H8=new en("tag:yaml.org,2002:binary",{kind:"scalar",resolve:eZ,construct:tZ,predicate:nZ,represent:rZ}),iZ=Object.prototype.hasOwnProperty,sZ=Object.prototype.toString;function aZ(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,sZ.call(i)!=="[object Object]")return!1;for(s in i)if(iZ.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 oZ(e){return e!==null?e:[]}var K8=new en("tag:yaml.org,2002:omap",{kind:"sequence",resolve:aZ,construct:oZ}),uZ=Object.prototype.toString;function cZ(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],uZ.call(n)!=="[object Object]"||(i=Object.keys(n),i.length!==1))return!1;s[t]=[i[0],n[i[0]]]}return!0}function lZ(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 G8=new en("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:cZ,construct:lZ}),fZ=Object.prototype.hasOwnProperty;function pZ(e){if(e===null)return!0;var t,r=e;for(t in r)if(fZ.call(r,t)&&r[t]!==null)return!1;return!0}function dZ(e){return e!==null?e:{}}var Y8=new en("tag:yaml.org,2002:set",{kind:"mapping",resolve:pZ,construct:dZ}),g2=U8.extend({implicit:[W8,J8],explicit:[H8,K8,G8,Y8]}),pa=Object.prototype.hasOwnProperty,Up=1,X8=2,Z8=3,Vp=4,r_=1,hZ=2,CM=3,mZ=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,gZ=/[\x85\u2028\u2029]/,yZ=/[,\[\]\{\}]/,Q8=/^(?:!|!!|![a-z\-]+!)$/i,e4=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function RM(e){return Object.prototype.toString.call(e)}function us(e){return e===10||e===13}function Ja(e){return e===9||e===32}function kn(e){return e===9||e===32||e===10||e===13}function Bo(e){return e===44||e===91||e===93||e===123||e===125}function vZ(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function bZ(e){return e===120?2:e===117?4:e===85?8:0}function _Z(e){return 48<=e&&e<=57?e-48:-1}function TM(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
39
|
+
`: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 EZ(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function t4(e,t,r){t==="__proto__"?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:r}):e[t]=r}var r4=new Array(256),n4=new Array(256);for(var jo=0;jo<256;jo++)r4[jo]=TM(jo)?1:0,n4[jo]=TM(jo);function SZ(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||g2,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 i4(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=OX(r),new bn(t,r)}function at(e,t){throw i4(e,t)}function zp(e,t){e.onWarning&&e.onWarning.call(null,i4(e,t))}var IM={YAML:function(t,r,n){var i,s,a;t.version!==null&&at(t,"duplication of %YAML directive"),n.length!==1&&at(t,"YAML directive accepts exactly one argument"),i=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),i===null&&at(t,"ill-formed argument of the YAML directive"),s=parseInt(i[1],10),a=parseInt(i[2],10),s!==1&&at(t,"unacceptable YAML version of the document"),t.version=n[0],t.checkLineBreaks=a<2,a!==1&&a!==2&&zp(t,"unsupported YAML version of the document")},TAG:function(t,r,n){var i,s;n.length!==2&&at(t,"TAG directive accepts exactly two arguments"),i=n[0],s=n[1],Q8.test(i)||at(t,"ill-formed tag handle (first argument) of the TAG directive"),pa.call(t.tagMap,i)&&at(t,'there is a previously declared suffix for "'+i+'" tag handle'),e4.test(s)||at(t,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch{at(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||at(e,"expected valid JSON character");else mZ.test(o)&&at(e,"the stream contains non-printable characters");e.result+=o}}function jM(e,t,r,n){var i,s,a,o;for(Fr.isObject(r)||at(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],pa.call(t,s)||(t4(t,s,r[s]),n[s]=!0)}function Uo(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])&&at(e,"nested arrays are not supported inside keys"),typeof i=="object"&&RM(i[c])==="[object Object]"&&(i[c]="[object Object]");if(typeof i=="object"&&RM(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)jM(e,t,s[c],r);else jM(e,t,s,r);else!e.json&&!pa.call(r,i)&&pa.call(t,i)&&(e.line=a||e.line,e.lineStart=o||e.lineStart,e.position=u||e.position,at(e,"duplicated mapping key")),t4(t,i,s),delete r[i];return t}function y2(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++):at(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Tr(e,t,r){for(var n=0,i=e.input.charCodeAt(e.position);i!==0;){for(;Ja(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(us(i))for(y2(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&&zp(e,"deficient indentation"),n}function bh(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||kn(r)))}function v2(e,t){t===1?e.result+=" ":t>1&&(e.result+=Fr.repeat(`
|
|
40
|
+
`,t-1))}function wZ(e,t,r){var n,i,s,a,o,u,c,l,f=e.kind,h=e.result,d;if(d=e.input.charCodeAt(e.position),kn(d)||Bo(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(i=e.input.charCodeAt(e.position+1),kn(i)||r&&Bo(i)))return!1;for(e.kind="scalar",e.result="",s=a=e.position,o=!1;d!==0;){if(d===58){if(i=e.input.charCodeAt(e.position+1),kn(i)||r&&Bo(i))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),kn(n))break}else{if(e.position===e.lineStart&&bh(e)||r&&Bo(d))break;if(us(d))if(u=e.line,c=e.lineStart,l=e.lineIndent,Tr(e,!1,-1),e.lineIndent>=t){o=!0,d=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),v2(e,e.line-u),s=a=e.position,o=!1),Ja(d)||(a=e.position+1),d=e.input.charCodeAt(++e.position)}return ca(e,s,a,!1),e.result?!0:(e.kind=f,e.result=h,!1)}function xZ(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 us(r)?(ca(e,n,i,!0),v2(e,Tr(e,!1,t)),n=i=e.position):e.position===e.lineStart&&bh(e)?at(e,"unexpected end of the document within a single quoted scalar"):(e.position++,i=e.position);at(e,"unexpected end of the stream within a single quoted scalar")}function AZ(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),us(o))Tr(e,!1,t);else if(o<256&&r4[o])e.result+=n4[o],e.position++;else if((a=bZ(o))>0){for(i=a,s=0;i>0;i--)o=e.input.charCodeAt(++e.position),(a=vZ(o))>=0?s=(s<<4)+a:at(e,"expected hexadecimal character");e.result+=EZ(s),e.position++}else at(e,"unknown escape sequence");r=n=e.position}else us(o)?(ca(e,r,n,!0),v2(e,Tr(e,!1,t)),r=n=e.position):e.position===e.lineStart&&bh(e)?at(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}at(e,"unexpected end of the stream within a double quoted scalar")}function OZ(e,t){var r=!0,n,i,s,a=e.tag,o,u=e.anchor,c,l,f,h,d,g=Object.create(null),y,v,_,b;if(b=e.input.charCodeAt(e.position),b===91)l=93,d=!1,o=[];else if(b===123)l=125,d=!0,o={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=o),b=e.input.charCodeAt(++e.position);b!==0;){if(Tr(e,!0,t),b=e.input.charCodeAt(e.position),b===l)return e.position++,e.tag=a,e.anchor=u,e.kind=d?"mapping":"sequence",e.result=o,!0;r?b===44&&at(e,"expected the node content, but found ','"):at(e,"missed comma between flow collection entries"),v=y=_=null,f=h=!1,b===63&&(c=e.input.charCodeAt(e.position+1),kn(c)&&(f=h=!0,e.position++,Tr(e,!0,t))),n=e.line,i=e.lineStart,s=e.position,Zo(e,t,Up,!1,!0),v=e.tag,y=e.result,Tr(e,!0,t),b=e.input.charCodeAt(e.position),(h||e.line===n)&&b===58&&(f=!0,b=e.input.charCodeAt(++e.position),Tr(e,!0,t),Zo(e,t,Up,!1,!0),_=e.result),d?Uo(e,o,g,v,y,_,n,i,s):f?o.push(Uo(e,null,g,v,y,_,n,i,s)):o.push(y),Tr(e,!0,t),b=e.input.charCodeAt(e.position),b===44?(r=!0,b=e.input.charCodeAt(++e.position)):r=!1}at(e,"unexpected end of the stream within a flow collection")}function CZ(e,t){var r,n,i=r_,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)r_===i?i=f===43?CM:hZ:at(e,"repeat of a chomping mode identifier");else if((l=_Z(f))>=0)l===0?at(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?at(e,"repeat of an indentation width identifier"):(o=t+l-1,a=!0);else break;if(Ja(f)){do f=e.input.charCodeAt(++e.position);while(Ja(f));if(f===35)do f=e.input.charCodeAt(++e.position);while(!us(f)&&f!==0)}for(;f!==0;){for(y2(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),us(f)){u++;continue}if(e.lineIndent<o){i===CM?e.result+=Fr.repeat(`
|
|
41
|
+
`,s?1+u:u):i===r_&&s&&(e.result+=`
|
|
42
|
+
`);break}for(n?Ja(f)?(c=!0,e.result+=Fr.repeat(`
|
|
43
|
+
`,s?1+u:u)):c?(c=!1,e.result+=Fr.repeat(`
|
|
44
|
+
`,u+1)):u===0?s&&(e.result+=" "):e.result+=Fr.repeat(`
|
|
45
|
+
`,u):e.result+=Fr.repeat(`
|
|
46
|
+
`,s?1+u:u),s=!0,a=!0,u=0,r=e.position;!us(f)&&f!==0;)f=e.input.charCodeAt(++e.position);ca(e,r,e.position,!1)}return!0}function PM(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,at(e,"tab characters must not be used in indentation")),!(u!==45||(a=e.input.charCodeAt(e.position+1),!kn(a))));){if(o=!0,e.position++,Tr(e,!0,-1)&&e.lineIndent<=t){s.push(null),u=e.input.charCodeAt(e.position);continue}if(r=e.line,Zo(e,t,Z8,!1,!0),s.push(e.result),Tr(e,!0,-1),u=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&u!==0)at(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 RZ(e,t,r){var n,i,s,a,o,u,c=e.tag,l=e.anchor,f={},h=Object.create(null),d=null,g=null,y=null,v=!1,_=!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,at(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),s=e.line,(b===63||b===58)&&kn(n))b===63?(v&&(Uo(e,f,h,d,g,null,a,o,u),d=g=y=null),_=!0,v=!0,i=!0):v?(v=!1,i=!0):at(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,!Zo(e,r,X8,!1,!0))break;if(e.line===s){for(b=e.input.charCodeAt(e.position);Ja(b);)b=e.input.charCodeAt(++e.position);if(b===58)b=e.input.charCodeAt(++e.position),kn(b)||at(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Uo(e,f,h,d,g,null,a,o,u),d=g=y=null),_=!0,v=!1,i=!1,d=e.tag,g=e.result;else if(_)at(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=c,e.anchor=l,!0}else if(_)at(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),Zo(e,t,Vp,!0,i)&&(v?g=e.result:y=e.result),v||(Uo(e,f,h,d,g,y,a,o,u),d=g=y=null),Tr(e,!0,-1),b=e.input.charCodeAt(e.position)),(e.line===s||e.lineIndent>t)&&b!==0)at(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Uo(e,f,h,d,g,null,a,o,u),_&&(e.tag=c,e.anchor=l,e.kind="mapping",e.result=f),_}function TZ(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&&at(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)):at(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!kn(a);)a===33&&(n?at(e,"tag suffix cannot contain exclamation marks"):(i=e.input.slice(t-1,e.position+1),Q8.test(i)||at(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),yZ.test(s)&&at(e,"tag suffix cannot contain flow indicator characters")}s&&!e4.test(s)&&at(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch{at(e,"tag name is malformed: "+s)}return r?e.tag=s:pa.call(e.tagMap,i)?e.tag=e.tagMap[i]+s:i==="!"?e.tag="!"+s:i==="!!"?e.tag="tag:yaml.org,2002:"+s:at(e,'undeclared tag handle "'+i+'"'),!0}function IZ(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&at(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!kn(r)&&!Bo(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&at(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function jZ(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&&!kn(n)&&!Bo(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&at(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),pa.call(e.anchorMap,r)||at(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Tr(e,!0,-1),!0}function Zo(e,t,r,n,i){var s,a,o,u=1,c=!1,l=!1,f,h,d,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=Vp===r||Z8===r,n&&Tr(e,!0,-1)&&(c=!0,e.lineIndent>t?u=1:e.lineIndent===t?u=0:e.lineIndent<t&&(u=-1)),u===1)for(;TZ(e)||IZ(e);)Tr(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||Vp===r)&&(Up===r||X8===r?y=t:y=t+1,v=e.position-e.lineStart,u===1?o&&(PM(e,v)||RZ(e,v,y))||OZ(e,y)?l=!0:(a&&CZ(e,y)||xZ(e,y)||AZ(e,y)?l=!0:jZ(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&at(e,"alias node should not have any properties")):wZ(e,y,Up===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):u===0&&(l=o&&PM(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"&&at(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(pa.call(e.typeMap[e.kind||"fallback"],e.tag))g=e.typeMap[e.kind||"fallback"][e.tag];else for(g=null,d=e.typeMap.multi[e.kind||"fallback"],f=0,h=d.length;f<h;f+=1)if(e.tag.slice(0,d[f].tag.length)===d[f].tag){g=d[f];break}g||at(e,"unknown tag !<"+e.tag+">"),e.result!==null&&g.kind!==e.kind&&at(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)):at(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 PZ(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&&(Tr(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&&!kn(a);)a=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),i=[],n.length<1&&at(e,"directive name must not be less than one character in length");a!==0;){for(;Ja(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!us(a));break}if(us(a))break;for(r=e.position;a!==0&&!kn(a);)a=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}a!==0&&y2(e),pa.call(IM,n)?IM[n](e,n,i):zp(e,'unknown document directive "'+n+'"')}if(Tr(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,Tr(e,!0,-1)):s&&at(e,"directives end mark is expected"),Zo(e,e.lineIndent-1,Vp,!1,!0),Tr(e,!0,-1),e.checkLineBreaks&&gZ.test(e.input.slice(t,e.position))&&zp(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&bh(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Tr(e,!0,-1));return}if(e.position<e.length-1)at(e,"end of the stream or a document separator is expected");else return}function s4(e,t){e=String(e),t=t||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
47
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var r=new SZ(e,t),n=e.indexOf("\0");for(n!==-1&&(r.position=n,at(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;)PZ(r);return r.documents}function kZ(e,t,r){t!==null&&typeof t=="object"&&typeof r>"u"&&(r=t,t=null);var n=s4(e,r);if(typeof t!="function")return n;for(var i=0,s=n.length;i<s;i+=1)t(n[i])}function NZ(e,t){var r=s4(e,t);if(r.length!==0){if(r.length===1)return r[0];throw new bn("expected a single document in the stream, but found more")}}var MZ=kZ,DZ=NZ,a4={loadAll:MZ,load:DZ},o4=Object.prototype.toString,u4=Object.prototype.hasOwnProperty,b2=65279,qZ=9,Tc=10,FZ=13,$Z=32,LZ=33,BZ=34,Cx=35,UZ=37,VZ=38,zZ=39,WZ=42,c4=44,JZ=45,Wp=58,HZ=61,KZ=62,GZ=63,YZ=64,l4=91,f4=93,XZ=96,p4=123,ZZ=124,d4=125,pn={};pn[0]="\\0";pn[7]="\\a";pn[8]="\\b";pn[9]="\\t";pn[10]="\\n";pn[11]="\\v";pn[12]="\\f";pn[13]="\\r";pn[27]="\\e";pn[34]='\\"';pn[92]="\\\\";pn[133]="\\N";pn[160]="\\_";pn[8232]="\\L";pn[8233]="\\P";var QZ=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],eQ=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function tQ(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&&u4.call(u.styleAliases,o)&&(o=u.styleAliases[o]),r[a]=o;return r}function rQ(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 bn("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Fr.repeat("0",n-t.length)+t}var nQ=1,Ic=2;function iQ(e){this.schema=e.schema||g2,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Fr.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=tQ(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==='"'?Ic:nQ,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 kM(e,t){for(var r=Fr.repeat(" ",t),n=0,i=-1,s="",a,o=e.length;n<o;)i=e.indexOf(`
|
|
48
|
+
`,n),i===-1?(a=e.slice(n),n=o):(a=e.slice(n,i+1),n=i+1),a.length&&a!==`
|
|
49
|
+
`&&(s+=r),s+=a;return s}function Rx(e,t){return`
|
|
50
|
+
`+Fr.repeat(" ",e.indent*t)}function sQ(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 Jp(e){return e===$Z||e===qZ}function jc(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==b2||65536<=e&&e<=1114111}function NM(e){return jc(e)&&e!==b2&&e!==FZ&&e!==Tc}function MM(e,t,r){var n=NM(e),i=n&&!Jp(e);return(r?n:n&&e!==c4&&e!==l4&&e!==f4&&e!==p4&&e!==d4)&&e!==Cx&&!(t===Wp&&!i)||NM(t)&&!Jp(t)&&e===Cx||t===Wp&&i}function aQ(e){return jc(e)&&e!==b2&&!Jp(e)&&e!==JZ&&e!==GZ&&e!==Wp&&e!==c4&&e!==l4&&e!==f4&&e!==p4&&e!==d4&&e!==Cx&&e!==VZ&&e!==WZ&&e!==LZ&&e!==ZZ&&e!==HZ&&e!==KZ&&e!==zZ&&e!==BZ&&e!==UZ&&e!==YZ&&e!==XZ}function oQ(e){return!Jp(e)&&e!==Wp}function cc(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 h4(e){var t=/^\n* /;return t.test(e)}var m4=1,Tx=2,g4=3,y4=4,Fo=5;function uQ(e,t,r,n,i,s,a,o){var u,c=0,l=null,f=!1,h=!1,d=n!==-1,g=-1,y=aQ(cc(e,0))&&oQ(cc(e,e.length-1));if(t||a)for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=cc(e,u),!jc(c))return Fo;y=y&&MM(c,l,o),l=c}else{for(u=0;u<e.length;c>=65536?u+=2:u++){if(c=cc(e,u),c===Tc)f=!0,d&&(h=h||u-g-1>n&&e[g+1]!==" ",g=u);else if(!jc(c))return Fo;y=y&&MM(c,l,o),l=c}h=h||d&&u-g-1>n&&e[g+1]!==" "}return!f&&!h?y&&!a&&!i(e)?m4:s===Ic?Fo:Tx:r>9&&h4(e)?Fo:a?s===Ic?Fo:Tx:h?y4:g4}function cQ(e,t,r,n,i){e.dump=(function(){if(t.length===0)return e.quotingType===Ic?'""':"''";if(!e.noCompatMode&&(QZ.indexOf(t)!==-1||eQ.test(t)))return e.quotingType===Ic?'"'+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 sQ(e,c)}switch(uQ(t,o,e.indent,a,u,e.quotingType,e.forceQuotes&&!n,i)){case m4:return t;case Tx:return"'"+t.replace(/'/g,"''")+"'";case g4:return"|"+DM(t,e.indent)+qM(kM(t,s));case y4:return">"+DM(t,e.indent)+qM(kM(lQ(t,a),s));case Fo:return'"'+fQ(t)+'"';default:throw new bn("impossible error: invalid scalar style")}})()}function DM(e,t){var r=h4(e)?String(t):"",n=e[e.length-1]===`
|
|
51
|
+
`,i=n&&(e[e.length-2]===`
|
|
52
|
+
`||e===`
|
|
53
|
+
`),s=i?"+":n?"":"-";return r+s+`
|
|
54
|
+
`}function qM(e){return e[e.length-1]===`
|
|
55
|
+
`?e.slice(0,-1):e}function lQ(e,t){for(var r=/(\n+)([^\n]*)/g,n=(function(){var c=e.indexOf(`
|
|
56
|
+
`);return c=c!==-1?c:e.length,r.lastIndex=c,FM(e.slice(0,c),t)})(),i=e[0]===`
|
|
57
|
+
`||e[0]===" ",s,a;a=r.exec(e);){var o=a[1],u=a[2];s=u[0]===" ",n+=o+(!i&&!s&&u!==""?`
|
|
58
|
+
`:"")+FM(u,t),i=s}return n}function FM(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+=`
|
|
59
|
+
`+e.slice(i,s),i=s+1),a=o;return u+=`
|
|
60
|
+
`,e.length-i>t&&a>i?u+=e.slice(i,a)+`
|
|
61
|
+
`+e.slice(a+1):u+=e.slice(i),u.slice(1)}function fQ(e){for(var t="",r=0,n,i=0;i<e.length;r>=65536?i+=2:i++)r=cc(e,i),n=pn[r],!n&&jc(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=n||rQ(r);return t}function pQ(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)),(Ns(e,t,o,!1,!1)||typeof o>"u"&&Ns(e,t,null,!1,!1))&&(n!==""&&(n+=","+(e.condenseFlow?"":" ")),n+=e.dump);e.tag=i,e.dump="["+n+"]"}function $M(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)),(Ns(e,t+1,u,!0,!0,!1,!0)||typeof u>"u"&&Ns(e,t+1,null,!0,!0,!1,!0))&&((!n||i!=="")&&(i+=Rx(e,t)),e.dump&&Tc===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}function dQ(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)),Ns(e,t,u,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ns(e,t,c,!1,!1)&&(l+=e.dump,n+=l));e.tag=i,e.dump="{"+n+"}"}function hQ(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 bn("sortKeys must be a boolean or a function");for(o=0,u=a.length;o<u;o+=1)h="",(!n||i!=="")&&(h+=Rx(e,t)),c=a[o],l=r[c],e.replacer&&(l=e.replacer.call(r,c,l)),Ns(e,t+1,c,!0,!0,!0)&&(f=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,f&&(e.dump&&Tc===e.dump.charCodeAt(0)?h+="?":h+="? "),h+=e.dump,f&&(h+=Rx(e,t)),Ns(e,t+1,l,!0,f)&&(e.dump&&Tc===e.dump.charCodeAt(0)?h+=":":h+=": ",h+=e.dump,i+=h));e.tag=s,e.dump=i||"{}"}function LM(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,o4.call(o.represent)==="[object Function]")n=o.represent(t,u);else if(u4.call(o.represent,u))n=o.represent[u](t,u);else throw new bn("!<"+o.tag+'> tag resolver accepts not "'+u+'" style');e.dump=n}return!0}return!1}function Ns(e,t,r,n,i,s,a){e.tag=null,e.dump=r,LM(e,r,!1)||LM(e,r,!0);var o=o4.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?(hQ(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(dQ(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?$M(e,t-1,e.dump,i):$M(e,t,e.dump,i),h&&(e.dump="&ref_"+f+e.dump)):(pQ(e,t,e.dump),h&&(e.dump="&ref_"+f+" "+e.dump));else if(o==="[object String]")e.tag!=="?"&&cQ(e,e.dump,t,s,u);else{if(o==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new bn("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 mQ(e,t){var r=[],n=[],i,s;for(Ix(e,r,n),i=0,s=n.length;i<s;i+=1)t.duplicates.push(r[n[i]]);t.usedDuplicates=new Array(s)}function Ix(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)Ix(e[i],t,r);else for(n=Object.keys(e),i=0,s=n.length;i<s;i+=1)Ix(e[n[i]],t,r)}function gQ(e,t){t=t||{};var r=new iQ(t);r.noRefs||mQ(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Ns(r,0,n,!0,!0)?r.dump+`
|
|
62
|
+
`:""}var yQ=gQ,vQ={dump:yQ};function _2(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 bQ=en,_Q=P8,EQ=D8,Pc=B8,SQ=U8,wQ=g2,xQ=a4.load,AQ=a4.loadAll,OQ=vQ.dump,CQ=bn,RQ={binary:H8,float:L8,map:M8,null:q8,pairs:G8,set:Y8,timestamp:W8,bool:F8,int:$8,merge:J8,omap:K8,seq:N8,str:k8},TQ=_2("safeLoad","load"),IQ=_2("safeLoadAll","loadAll"),jQ=_2("safeDump","dump"),Xa={Type:bQ,Schema:_Q,FAILSAFE_SCHEMA:EQ,JSON_SCHEMA:Pc,CORE_SCHEMA:SQ,DEFAULT_SCHEMA:wQ,load:xQ,loadAll:AQ,dump:OQ,YAMLException:CQ,types:RQ,safeLoad:TQ,safeLoadAll:IQ,safeDump:jQ},Op={exports:{}},PQ=Op.exports,BM;function kQ(){return BM||(BM=1,(function(e){(function(t,r){e.exports?e.exports=r():(function n(){document&&document.body?t.zenscroll=r():setTimeout(n,9)})()})(PQ,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,d=function(E){h=E},g=function(){clearTimeout(h),d(0)},y=function(E){return Math.max(0,c.getTopOf(E)-f)},v=function(E,A,R){if(g(),A===0||A&&A<0||t(c.body))c.toY(E),R&&R();else{var I=c.getY(),O=Math.max(0,E)-I,D=new Date().getTime();A=A||Math.min(Math.abs(O),l),(function P(){d(setTimeout(function(){var F=Math.min(1,(new Date().getTime()-D)/A),M=Math.max(0,Math.floor(I+O*(F<.5?2*F*F:F*(4-F*2)-1)));c.toY(M),F<1&&c.getHeight()+M<c.body.scrollHeight?P():(setTimeout(g,99),R&&R())},9))})()}},_=function(E,A,R){v(y(E),A,R)},b=function(E,A,R){var I=E.getBoundingClientRect().height,O=c.getTopOf(E)+I,D=c.getHeight(),P=c.getY(),F=P+D;y(E)<P||I+f>D?_(E,A,R):O+f>F?v(O-D+f,A,R):R&&R()},S=function(E,A,R,I){v(Math.max(0,c.getTopOf(E)-c.getHeight()/2+(R||E.getBoundingClientRect().height/2)),A,I)},w=function(E,A){return(E===0||E)&&(l=E),(A===0||A)&&(f=A),{defaultDuration:l,edgeOffset:f}};return{setup:w,to:_,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 d=0,g=document.getElementById(h.substring(1));if(h!=="#"){if(!g)return;d=s.getTopOf(g)}c.preventDefault();var y=function(){window.location=h},v=s.setup().edgeOffset;v&&(d=Math.max(0,d-v),a&&(y=function(){history.pushState({},"",h)})),s.toY(d,null,y)}}},!1)}return s})})(Op)),Op.exports}var NQ=kQ();const MQ=He.getDefaultExportFromCjs(NQ);/**
|
|
63
|
+
* @license
|
|
64
|
+
* MIT License
|
|
65
|
+
*
|
|
66
|
+
* Copyright (c) 2014-present, Lee Byron and other contributors.
|
|
67
|
+
*
|
|
68
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
69
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
70
|
+
* in the Software without restriction, including without limitation the rights
|
|
71
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
72
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
73
|
+
* furnished to do so, subject to the following conditions:
|
|
74
|
+
*
|
|
75
|
+
* The above copyright notice and this permission notice shall be included in all
|
|
76
|
+
* copies or substantial portions of the Software.
|
|
77
|
+
*
|
|
78
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
79
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
80
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
81
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
82
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
83
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
84
|
+
* SOFTWARE.
|
|
85
|
+
*/var Hp="@@__IMMUTABLE_INDEXED__@@";function Mn(e){return!!(e&&e[Hp])}var Kp="@@__IMMUTABLE_KEYED__@@";function ir(e){return!!(e&&e[Kp])}function _h(e){return ir(e)||Mn(e)}var v4="@@__IMMUTABLE_ITERABLE__@@";function Dn(e){return!!(e&&e[v4])}var Vr=function(t){return Dn(t)?t:ln(t)},_i=(function(e){function t(r){return ir(r)?r:ba(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Vr),oo=(function(e){function t(r){return Mn(r)?r:Si(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Vr),Su=(function(e){function t(r){return Dn(r)&&!_h(r)?r:Ou(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t})(Vr);Vr.Keyed=_i;Vr.Indexed=oo;Vr.Set=Su;var wu=0,Xn=1,Zn=2,jx=typeof Symbol=="function"&&Symbol.iterator,b4="@@iterator",Eh=jx||b4,Nt=function(t){this.next=t};Nt.prototype.toString=function(){return"[Iterator]"};Nt.KEYS=wu;Nt.VALUES=Xn;Nt.ENTRIES=Zn;Nt.prototype.inspect=Nt.prototype.toSource=function(){return this.toString()};Nt.prototype[Eh]=function(){return this};function cr(e,t,r,n){var i=e===wu?t:e===Xn?r:[t,r];return n?n.value=i:n={value:i,done:!1},n}function cn(){return{value:void 0,done:!0}}function E2(e){return Array.isArray(e)?!0:!!Sh(e)}function UM(e){return!!(e&&typeof e.next=="function")}function Px(e){var t=Sh(e);return t&&t.call(e)}function Sh(e){var t=e&&(jx&&e[jx]||e[b4]);if(typeof t=="function")return t}function DQ(e){var t=Sh(e);return t&&t===e.entries}function qQ(e){var t=Sh(e);return t&&t===e.keys}var hl="delete",rr=5,Kn=1<<rr,_n=Kn-1,jt={};function kx(){return{value:!1}}function hi(e){e&&(e.value=!0)}function S2(){}function Qo(e){return e.size===void 0&&(e.size=e.__iterate(_4)),e.size}function da(e,t){if(typeof t!="number"){var r=t>>>0;if(""+r!==t||r===4294967295)return NaN;t=r}return t<0?Qo(e)+t:t}function _4(){return!0}function ml(e,t,r){return(e===0&&!S4(e)||r!==void 0&&e<=-r)&&(t===void 0||r!==void 0&&t>=r)}function xu(e,t){return E4(e,t,0)}function gl(e,t){return E4(e,t,t)}function E4(e,t,r){return e===void 0?r:S4(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function S4(e){return e<0||e===0&&1/e===-1/0}var w4="@@__IMMUTABLE_RECORD__@@";function va(e){return!!(e&&e[w4])}function Ei(e){return Dn(e)||va(e)}var ha="@@__IMMUTABLE_ORDERED__@@";function qi(e){return!!(e&&e[ha])}var x4="@@__IMMUTABLE_SEQ__@@";function wh(e){return!!(e&&e[x4])}var Au=Object.prototype.hasOwnProperty;function w2(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 ln=(function(e){function t(r){return r==null?A2():Ei(r)?r.toSeq():$Q(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 Nt(function(){if(o===a)return cn();var u=s[i?a-++o:o++];return cr(n,u[0],u[1])})}return this.__iteratorUncached(n,i)},t})(Vr),ba=(function(e){function t(r){return r==null?A2().toKeyedSeq():Dn(r)?ir(r)?r.toSeq():r.fromEntrySeq():va(r)?r.toSeq():O2(r)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t})(ln),Si=(function(e){function t(r){return r==null?A2():Dn(r)?ir(r)?r.entrySeq():r.toIndexedSeq():va(r)?r.toSeq().entrySeq():A4(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})(ln),Ou=(function(e){function t(r){return(Dn(r)&&!_h(r)?r:Si(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})(ln);ln.isSeq=wh;ln.Keyed=ba;ln.Set=Ou;ln.Indexed=Si;ln.prototype[x4]=!0;var eu=(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[da(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 Nt(function(){if(o===a)return cn();var u=i?a-++o:o++;return cr(n,u,s[u])})},t})(Si),x2=(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 Au.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 Nt(function(){if(u===o)return cn();var c=a[i?o-++u:u++];return cr(n,c,s[c])})},t})(ba);x2.prototype[ha]=!0;var FQ=(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=Px(s),o=0;if(UM(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=Px(s);if(!UM(a))return new Nt(cn);var o=0;return new Nt(function(){var u=a.next();return u.done?u:cr(n,o++,u.value)})},t})(Si),VM;function A2(){return VM||(VM=new eu([]))}function O2(e){var t=C2(e);if(t)return t.fromEntrySeq();if(typeof e=="object")return new x2(e);throw new TypeError("Expected Array or collection object of [k, v] entries, or keyed object: "+e)}function A4(e){var t=C2(e);if(t)return t;throw new TypeError("Expected Array or collection object of values: "+e)}function $Q(e){var t=C2(e);if(t)return DQ(e)?t.fromEntrySeq():qQ(e)?t.toSetSeq():t;if(typeof e=="object")return new x2(e);throw new TypeError("Expected Array or collection object of values, or keyed object: "+e)}function C2(e){return w2(e)?new eu(e):E2(e)?new FQ(e):void 0}function yl(){return this.__ensureOwner()}function vl(){return this.__ownerID?this:this.__ensureOwner(new S2)}var Gu=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 xh(e){return e>>>1&1073741824|e&3221225471}var LQ=Object.prototype.valueOf;function Pn(e){if(e==null)return zM(e);if(typeof e.hashCode=="function")return xh(e.hashCode(e));var t=JQ(e);if(t==null)return zM(t);switch(typeof t){case"boolean":return t?1108378657:1108378656;case"number":return BQ(t);case"string":return t.length>HQ?UQ(t):Nx(t);case"object":case"function":return zQ(t);case"symbol":return VQ(t);default:if(typeof t.toString=="function")return Nx(t.toString());throw new Error("Value type "+typeof t+" cannot be hashed.")}}function zM(e){return e===null?1108378658:1108378659}function BQ(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 xh(t)}function UQ(e){var t=s_[e];return t===void 0&&(t=Nx(e),i_===KQ&&(i_=0,s_={}),i_++,s_[e]=t),t}function Nx(e){for(var t=0,r=0;r<e.length;r++)t=31*t+e.charCodeAt(r)|0;return xh(t)}function VQ(e){var t=HM[e];return t!==void 0||(t=O4(),HM[e]=t),t}function zQ(e){var t;if(Mx&&(t=Dx.get(e),t!==void 0)||(t=e[La],t!==void 0)||!JM&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[La],t!==void 0||(t=WQ(e),t!==void 0)))return t;if(t=O4(),Mx)Dx.set(e,t);else{if(WM!==void 0&&WM(e)===!1)throw new Error("Non-extensible objects are not allowed as keys.");if(JM)Object.defineProperty(e,La,{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[La]=t;else if(e.nodeType!==void 0)e[La]=t;else throw new Error("Unable to set a non-enumerable property on object.")}return t}var WM=Object.isExtensible,JM=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})();function WQ(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function JQ(e){return e.valueOf!==LQ&&typeof e.valueOf=="function"?e.valueOf(e):e}function O4(){var e=++n_;return n_&1073741824&&(n_=0),e}var Mx=typeof WeakMap=="function",Dx;Mx&&(Dx=new WeakMap);var HM=Object.create(null),n_=0,La="__immutablehash__";typeof Symbol=="function"&&(La=Symbol(La));var HQ=16,KQ=255,i_=0,s_={},Ah=(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=R2(this,!0);return this._useKeys||(i.valueSeq=function(){return n._iter.toSeq().reverse()}),i},t.prototype.map=function(n,i){var s=this,a=j4(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})(ba);Ah.prototype[ha]=!0;var C4=(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&&Qo(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(Xn,i),o=0;return i&&Qo(this),new Nt(function(){var u=a.next();return u.done?u:cr(n,i?s.size-++o:o++,u.value,u)})},t})(Si),R4=(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(Xn,i);return new Nt(function(){var a=s.next();return a.done?a:cr(n,a.value,a.value,a)})},t})(Ou),T4=(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){GM(a);var o=Dn(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(Xn,i);return new Nt(function(){for(;;){var a=s.next();if(a.done)return a;var o=a.value;if(o){GM(o);var u=Dn(o);return cr(n,u?o.get(0):o[0],u?o.get(1):o[1],a)}}})},t})(ba);C4.prototype.cacheResult=Ah.prototype.cacheResult=R4.prototype.cacheResult=T4.prototype.cacheResult=j2;function I4(e){var t=hs(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=j2,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===Zn){var i=e.__iterator(r,n);return new Nt(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===Xn?wu:Xn,n)},t}function j4(e,t,r){var n=hs(e);return n.size=e.size,n.has=function(i){return e.has(i)},n.get=function(i,s){var a=e.get(i,jt);return a===jt?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(Zn,s);return new Nt(function(){var o=a.next();if(o.done)return o;var u=o.value,c=u[0];return cr(i,c,t.call(r,u[1],c,e),o)})},n}function R2(e,t){var r=this,n=hs(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var i=I4(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=j2,n.__iterate=function(i,s){var a=this,o=0;return s&&Qo(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&&Qo(e);var o=e.__iterator(Zn,!s);return new Nt(function(){var u=o.next();if(u.done)return u;var c=u.value;return cr(i,t?c[0]:s?r.size-++a:a++,c[1],u)})},n}function P4(e,t,r,n){var i=hs(e);return n&&(i.has=function(s){var a=e.get(s,jt);return a!==jt&&!!t.call(r,a,s,e)},i.get=function(s,a){var o=e.get(s,jt);return o!==jt&&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(Zn,a),u=0;return new Nt(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 cr(s,n?f:u++,h,c)}})},i}function GQ(e,t,r){var n=uo().asMutable();return e.__iterate(function(i,s){n.update(t.call(r,i,s,e),0,function(a){return a+1})}),n.asImmutable()}function YQ(e,t,r){var n=ir(e),i=(qi(e)?cs():uo()).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=I2(e);return i.map(function(a){return tr(e,s(a))}).asImmutable()}function XQ(e,t,r){var n=ir(e),i=[[],[]];e.__iterate(function(a,o){i[t.call(r,a,o,e)?1:0].push(n?[o,a]:a)});var s=I2(e);return i.map(function(a){return tr(e,s(a))})}function T2(e,t,r,n){var i=e.size;if(ml(t,r,i))return e;if(typeof i>"u"&&(t<0||r<0))return T2(e.toSeq().cacheResult(),t,r,n);var s=xu(t,i),a=gl(r,i),o=a-s,u;o===o&&(u=o<0?0:o);var c=hs(e);return c.size=u===0?u:e.size&&u||void 0,!n&&wh(e)&&u>=0&&(c.get=function(l,f){return l=da(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 d=0,g=!0,y=0;return e.__iterate(function(v,_){if(!(g&&(g=d++<s)))return y++,l(v,n?_: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 Nt(cn);var h=e.__iterator(l,f),d=0,g=0;return new Nt(function(){for(;d++<s;)h.next();if(++g>u)return cn();var y=h.next();return n||l===Xn||y.done?y:l===wu?cr(l,g-1,void 0,y):cr(l,g-1,y.value[1],y)})},c}function ZQ(e,t,r){var n=hs(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(Zn,s),u=!0;return new Nt(function(){if(!u)return cn();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===Zn?c:cr(i,f,h,c):(u=!1,cn())})},n}function k4(e,t,r,n){var i=hs(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(Zn,a),c=!0,l=0;return new Nt(function(){var f,h,d;do{if(f=u.next(),f.done)return n||s===Xn?f:s===wu?cr(s,l++,void 0,f):cr(s,l++,f.value[1],f);var g=f.value;h=g[0],d=g[1],c&&(c=t.call(r,d,h,o))}while(c);return s===Zn?f:cr(s,h,d,f)})},i}var QQ=(function(e){function t(r){this._wrappedIterables=r.flatMap(function(n){return n._wrappedIterables?n._wrappedIterables:[n]}),this.size=this._wrappedIterables.reduce(function(n,i){if(n!==void 0){var s=i.size;if(s!==void 0)return n+s}},0),this[Kp]=this._wrappedIterables[0][Kp],this[Hp]=this._wrappedIterables[0][Hp],this[ha]=this._wrappedIterables[0][ha]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(n,i){if(this._wrappedIterables.length!==0){if(i)return this.cacheResult().__iterate(n,i);for(var s=0,a=ir(this),o=a?Zn:Xn,u=this._wrappedIterables[s].__iterator(o,i),c=!0,l=0;c;){for(var f=u.next();f.done;){if(s++,s===this._wrappedIterables.length)return l;u=this._wrappedIterables[s].__iterator(o,i),f=u.next()}var h=a?n(f.value[1],f.value[0],this):n(f.value,l,this);c=h!==!1,l++}return l}},t.prototype.__iteratorUncached=function(n,i){var s=this;if(this._wrappedIterables.length===0)return new Nt(cn);if(i)return this.cacheResult().__iterator(n,i);var a=0,o=this._wrappedIterables[a].__iterator(n,i);return new Nt(function(){for(var u=o.next();u.done;){if(a++,a===s._wrappedIterables.length)return u;o=s._wrappedIterables[a].__iterator(n,i),u=o.next()}return u})},t})(ln);function eee(e,t){var r=ir(e),n=[e].concat(t).map(function(s){return Dn(s)?r&&(s=_i(s)):s=r?O2(s):A4(Array.isArray(s)?s:[s]),s}).filter(function(s){return s.size!==0});if(n.length===0)return e;if(n.length===1){var i=n[0];if(i===e||r&&ir(i)||Mn(e)&&Mn(i))return i}return new QQ(n)}function N4(e,t,r){var n=hs(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)&&Dn(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 Nt(function(){for(;a;){var c=a.next();if(c.done!==!1){a=o.pop();continue}var l=c.value;if(i===Zn&&(l=l[1]),(!t||o.length<t)&&Dn(l))o.push(a),a=l.__iterator(i,s);else return r?c:cr(i,u++,l,c)}return cn()})},n}function tee(e,t,r){var n=I2(e);return e.toSeq().map(function(i,s){return n(t.call(r,i,s,e))}).flatten(!0)}function ree(e,t){var r=hs(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(Xn,i),a=0,o;return new Nt(function(){return(!o||a%2)&&(o=s.next(),o.done)?o:a%2?cr(n,a++,t):cr(n,a++,o.value,o)})},r}function tu(e,t,r){t||(t=M4);var n=ir(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?ba(s):Mn(e)?Si(s):Ou(s)}function np(e,t,r){if(t||(t=M4),r){var n=e.toSeq().map(function(i,s){return[i,r(i,s,e)]}).reduce(function(i,s){return KM(t,i[1],s[1])?s:i});return n&&n[0]}return e.reduce(function(i,s){return KM(t,i,s)?s:i})}function KM(e,t,r){var n=e(r,t);return n===0&&r!==t&&(r==null||r!==r)||n>0}function ip(e,t,r,n){var i=hs(e),s=new eu(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(Xn,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=Vr(f),Px(o?f.reverse():f)}),c=0,l=!1;return new Nt(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?cn():cr(a,c++,t.apply(null,f.map(function(h){return h.value})))})},i}function tr(e,t){return e===t?e:wh(e)?t:e.constructor(t)}function GM(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function I2(e){return ir(e)?_i:Mn(e)?oo:Su}function hs(e){return Object.create((ir(e)?ba:Mn(e)?Si:Ou).prototype)}function j2(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):ln.prototype.cacheResult.call(this)}function M4(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 qx(e){return!!(e&&typeof e.equals=="function"&&typeof e.hashCode=="function")}function Ir(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!!(qx(e)&&qx(t)&&e.equals(t))}function P2(e,t,r,n){return co(e,[t],r,n)}function D4(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return F4(this,e)}function q4(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 F4(this,t,e)}function F4(e,t,r){for(var n=[],i=0;i<t.length;i++){var s=_i(t[i]);s.size!==0&&n.push(s)}return n.length===0?e:e.toSeq().size===0&&!e.__ownerID&&n.length===1?va(e)?e:e.constructor(n[0]):e.withMutations(function(a){for(var o=r?function(c,l){P2(a,l,jt,function(f){return f===jt?c:r(f,c,l)})}:function(c,l){a.set(l,c)},u=0;u<n.length;u++)n[u].forEach(o)})}var nee=Object.prototype.toString;function k2(e){if(!e||typeof e!="object"||nee.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 ma(e){return typeof e=="object"&&(Ei(e)||Array.isArray(e)||k2(e))}function ss(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 Gp(e){if(Array.isArray(e))return ss(e);var t={};for(var r in e)Au.call(e,r)&&(t[r]=e[r]);return t}function iee(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return _l(e,t)}function see(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return _l(t,r,e)}function aee(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return bl(e,t)}function oee(e,t){for(var r=[],n=arguments.length-2;n-- >0;)r[n]=arguments[n+2];return bl(t,r,e)}function bl(e,t,r){return _l(e,t,uee(r))}function _l(e,t,r){if(!ma(e))throw new TypeError("Cannot merge into non-data-structure value: "+e);if(Ei(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?oo:_i,a=n?function(u){i===e&&(i=Gp(i)),i.push(u)}:function(u,c){var l=Au.call(i,c),f=l&&r?r(i[c],u,c):u;(!l||f!==i[c])&&(i===e&&(i=Gp(i)),i[c]=f)},o=0;o<t.length;o++)s(t[o]).forEach(a);return i}function uee(e){function t(r,n,i){return ma(r)&&ma(n)&&cee(r,n)?_l(r,[n],t):e?e(r,n,i):n}return t}function cee(e,t){var r=ln(e),n=ln(t);return Mn(r)===Mn(n)&&ir(r)===ir(n)}function $4(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return bl(this,e)}function L4(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return bl(this,t,e)}function N2(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return co(this,e,os(),function(n){return bl(n,t)})}function M2(e){for(var t=[],r=arguments.length-1;r-- >0;)t[r]=arguments[r+1];return co(this,e,os(),function(n){return _l(n,t)})}function B4(e,t,r){return co(e,t,jt,function(){return r})}function D2(e,t){return B4(this,e,t)}function q2(e,t,r){return arguments.length===1?e(this):P2(this,e,t,r)}function F2(e,t,r){return co(this,e,t,r)}function $2(){return this.__altered}function El(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}var U4="@@__IMMUTABLE_MAP__@@";function Oh(e){return!!(e&&e[U4])}function Ec(e,t){if(!e)throw new Error(t)}function Hn(e){Ec(e!==1/0,"Cannot perform this action with an infinite size.")}var uo=(function(e){function t(r){return r==null?os():Oh(r)&&!qi(r)?r:os().withMutations(function(n){var i=e(r);Hn(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 ZM(this,n,i)},t.prototype.remove=function(n){return ZM(this,n,jt)},t.prototype.deleteAll=function(n){var i=Vr(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):os()},t.prototype.sort=function(n){return cs(tu(this,n))},t.prototype.sortBy=function(n,i){return cs(tu(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 lee(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?L2(this.size,this._root,n,this.__hash):this.size===0?os():(this.__ownerID=n,this.__altered=!1,this)},t})(_i);uo.isMap=Oh;var lr=uo.prototype;lr[U4]=!0;lr[hl]=lr.remove;lr.removeAll=lr.deleteAll;lr.setIn=D2;lr.removeIn=lr.deleteIn=z2;lr.update=q2;lr.updateIn=F2;lr.merge=lr.concat=D4;lr.mergeWith=q4;lr.mergeDeep=$4;lr.mergeDeepWith=L4;lr.mergeIn=M2;lr.mergeDeepIn=N2;lr.withMutations=El;lr.wasAltered=$2;lr.asImmutable=yl;lr["@@transducer/init"]=lr.asMutable=vl;lr["@@transducer/step"]=function(e,t){return e.set(t[0],t[1])};lr["@@transducer/result"]=function(e){return e.asImmutable()};var kc=function(t,r){this.ownerID=t,this.entries=r};kc.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(Ir(n,s[a][0]))return s[a][1];return i};kc.prototype.update=function(t,r,n,i,s,a,o){for(var u=s===jt,c=this.entries,l=0,f=c.length;l<f&&!Ir(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(hi(o),(u||!h)&&hi(a),!(u&&c.length===1)){if(!h&&!u&&c.length>=gee)return fee(t,c,i,s);var d=t&&t===this.ownerID,g=d?c:ss(c);return h?u?l===f-1?g.pop():g[l]=g.pop():g[l]=[i,s]:g.push([i,s]),d?(this.entries=g,this):new kc(t,g)}};var ru=function(t,r,n){this.ownerID=t,this.bitmap=r,this.nodes=n};ru.prototype.get=function(t,r,n,i){r===void 0&&(r=Pn(n));var s=1<<((t===0?r:r>>>t)&_n),a=this.bitmap;return(a&s)===0?i:this.nodes[V4(a&s-1)].get(t+rr,r,n,i)};ru.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=Pn(i));var u=(r===0?n:n>>>r)&_n,c=1<<u,l=this.bitmap,f=(l&c)!==0;if(!f&&s===jt)return this;var h=V4(l&c-1),d=this.nodes,g=f?d[h]:void 0,y=B2(g,t,r+rr,n,i,s,a,o);if(y===g)return this;if(!f&&y&&d.length>=yee)return dee(t,d,l,u,y);if(f&&!y&&d.length===2&&QM(d[h^1]))return d[h^1];if(f&&y&&d.length===1&&QM(y))return y;var v=t&&t===this.ownerID,_=f?y?l:l^c:l|c,b=f?y?z4(d,h,y,v):mee(d,h,v):hee(d,h,y,v);return v?(this.bitmap=_,this.nodes=b,this):new ru(t,_,b)};var Nc=function(t,r,n){this.ownerID=t,this.count=r,this.nodes=n};Nc.prototype.get=function(t,r,n,i){r===void 0&&(r=Pn(n));var s=(t===0?r:r>>>t)&_n,a=this.nodes[s];return a?a.get(t+rr,r,n,i):i};Nc.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=Pn(i));var u=(r===0?n:n>>>r)&_n,c=s===jt,l=this.nodes,f=l[u];if(c&&!f)return this;var h=B2(f,t,r+rr,n,i,s,a,o);if(h===f)return this;var d=this.count;if(!f)d++;else if(!h&&(d--,d<vee))return pee(t,l,d,u);var g=t&&t===this.ownerID,y=z4(l,u,h,g);return g?(this.count=d,this.nodes=y,this):new Nc(t,d,y)};var nu=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entries=n};nu.prototype.get=function(t,r,n,i){for(var s=this.entries,a=0,o=s.length;a<o;a++)if(Ir(n,s[a][0]))return s[a][1];return i};nu.prototype.update=function(t,r,n,i,s,a,o){n===void 0&&(n=Pn(i));var u=s===jt;if(n!==this.keyHash)return u?this:(hi(o),hi(a),U2(this,t,r,n,[i,s]));for(var c=this.entries,l=0,f=c.length;l<f&&!Ir(i,c[l][0]);l++);var h=l<f;if(h?c[l][1]===s:u)return this;if(hi(o),(u||!h)&&hi(a),u&&f===2)return new Ms(t,this.keyHash,c[l^1]);var d=t&&t===this.ownerID,g=d?c:ss(c);return h?u?l===f-1?g.pop():g[l]=g.pop():g[l]=[i,s]:g.push([i,s]),d?(this.entries=g,this):new nu(t,this.keyHash,g)};var Ms=function(t,r,n){this.ownerID=t,this.keyHash=r,this.entry=n};Ms.prototype.get=function(t,r,n,i){return Ir(n,this.entry[0])?this.entry[1]:i};Ms.prototype.update=function(t,r,n,i,s,a,o){var u=s===jt,c=Ir(i,this.entry[0]);if(c?s===this.entry[1]:u)return this;if(hi(o),u){hi(a);return}return c?t&&t===this.ownerID?(this.entry[1]=s,this):new Ms(t,this.keyHash,[i,s]):(hi(a),U2(this,t,r,Pn(i),[i,s]))};kc.prototype.iterate=nu.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};ru.prototype.iterate=Nc.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}};Ms.prototype.iterate=function(e,t){return e(this.entry)};var lee=(function(e){function t(r,n,i){this._type=n,this._reverse=i,this._stack=r._root&&YM(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 a_(n,s.entry)}else if(s.entries){if(o=s.entries.length-1,a<=o)return a_(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 a_(n,u.entry);i=this._stack=YM(u,i)}continue}i=this._stack=this._stack.__prev}return cn()},t})(Nt);function a_(e,t){return cr(e,t[0],t[1])}function YM(e,t){return{node:e,index:0,__prev:t}}function L2(e,t,r,n){var i=Object.create(lr);return i.size=e,i._root=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var XM;function os(){return XM||(XM=L2(0))}function ZM(e,t,r){var n,i;if(e._root){var s=kx(),a=kx();if(n=B2(e._root,e.__ownerID,0,void 0,t,r,s,a),!a.value)return e;i=e.size+(s.value?r===jt?-1:1:0)}else{if(r===jt)return e;i=1,n=new kc(e.__ownerID,[[t,r]])}return e.__ownerID?(e.size=i,e._root=n,e.__hash=void 0,e.__altered=!0,e):n?L2(i,n):os()}function B2(e,t,r,n,i,s,a,o){return e?e.update(t,r,n,i,s,a,o):s===jt?e:(hi(o),hi(a),new Ms(t,n,[i,s]))}function QM(e){return e.constructor===Ms||e.constructor===nu}function U2(e,t,r,n,i){if(e.keyHash===n)return new nu(t,n,[e.entry,i]);var s=(r===0?e.keyHash:e.keyHash>>>r)&_n,a=(r===0?n:n>>>r)&_n,o,u=s===a?[U2(e,t,r+rr,n,i)]:(o=new Ms(t,n,i),s<a?[e,o]:[o,e]);return new ru(t,1<<s|1<<a,u)}function fee(e,t,r,n){e||(e=new S2);for(var i=new Ms(e,Pn(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 pee(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 ru(e,i,a)}function dee(e,t,r,n,i){for(var s=0,a=new Array(Kn),o=0;r!==0;o++,r>>>=1)a[o]=r&1?t[s++]:void 0;return a[n]=i,new Nc(e,s+1,a)}function V4(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 z4(e,t,r,n){var i=n?e:ss(e);return i[t]=r,i}function hee(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 mee(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 gee=Kn/4,yee=Kn/2,vee=Kn/4;function W4(e){if(w2(e)&&typeof e!="string")return e;if(qi(e))return e.toArray();throw new TypeError("Invalid keyPath: expected Ordered Collection or Array: "+e)}function Mc(e){try{return typeof e=="string"?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function J4(e,t){return Ei(e)?e.has(t):ma(e)&&Au.call(e,t)}function V2(e,t,r){return Ei(e)?e.get(t,r):J4(e,t)?typeof e.get=="function"?e.get(t):e[t]:r}function H4(e,t){if(!ma(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Ei(e)){if(!e.remove)throw new TypeError("Cannot update immutable value without .remove() method: "+e);return e.remove(t)}if(!Au.call(e,t))return e;var r=Gp(e);return Array.isArray(r)?r.splice(t,1):delete r[t],r}function K4(e,t,r){if(!ma(e))throw new TypeError("Cannot update non-data-structure value: "+e);if(Ei(e)){if(!e.set)throw new TypeError("Cannot update immutable value without .set() method: "+e);return e.set(t,r)}if(Au.call(e,t)&&r===e[t])return e;var n=Gp(e);return n[t]=r,n}function co(e,t,r,n){n||(n=r,r=void 0);var i=G4(Ei(e),e,W4(t),0,r,n);return i===jt?r:i}function G4(e,t,r,n,i,s){var a=t===jt;if(n===r.length){var o=a?i:t,u=s(o);return u===o?t:u}if(!a&&!ma(t))throw new TypeError("Cannot update within non-data-structure value in path ["+Array.from(r).slice(0,n).map(Mc)+"]: "+t);var c=r[n],l=a?jt:V2(t,c,jt),f=G4(l===jt?e:Ei(l),l,r,n+1,i,s);return f===l?t:f===jt?H4(t,c):K4(a?e?os():{}:t,c,f)}function Y4(e,t){return co(e,t,function(){return jt})}function z2(e){return Y4(this,e)}var X4="@@__IMMUTABLE_LIST__@@";function W2(e){return!!(e&&e[X4])}var Sl=(function(e){function t(r){var n=Cp();if(r==null)return n;if(W2(r))return r;var i=e(r),s=i.size;return s===0?n:(Hn(s),s>0&&s<Kn?Dc(0,s,rr,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=da(this,n),n>=0&&n<this.size){n+=this._origin;var s=Z4(this,n);return s&&s.array[n&_n]}return i},t.prototype.set=function(n,i){return bee(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=rr,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):Cp()},t.prototype.push=function(){var n=arguments,i=this.size;return this.withMutations(function(s){na(s,0,i+n.length);for(var a=0;a<n.length;a++)s.set(i+a,n[a])})},t.prototype.pop=function(){return na(this,0,-1)},t.prototype.unshift=function(){var n=arguments;return this.withMutations(function(i){na(i,-n.length);for(var s=0;s<n.length;s++)i.set(s,n[s])})},t.prototype.shift=function(){return na(this,1)},t.prototype.shuffle=function(n){return n===void 0&&(n=Math.random),this.withMutations(function(i){for(var s=i.size,a,o;s;)a=Math.floor(n()*s--),o=i.get(a),i.set(a,i.get(s)),i.set(s,o)})},t.prototype.concat=function(){for(var n=arguments,i=[],s=0;s<arguments.length;s++){var a=n[s],o=e(typeof a!="string"&&E2(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 na(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 ml(n,i,s)?this:na(this,xu(n,s),gl(i,s))},t.prototype.__iterator=function(n,i){var s=i?this.size:0,a=eD(this,i);return new Nt(function(){var o=a();return o===Sc?cn():cr(n,i?--s:s++,o)})},t.prototype.__iterate=function(n,i){for(var s=i?this.size:0,a=eD(this,i),o;(o=a())!==Sc&&n(o,i?--s:s++,this)!==!1;);return s},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?Dc(this._origin,this._capacity,this._level,this._root,this._tail,n,this.__hash):this.size===0?Cp():(this.__ownerID=n,this.__altered=!1,this)},t})(oo);Sl.isList=W2;var jr=Sl.prototype;jr[X4]=!0;jr[hl]=jr.remove;jr.merge=jr.concat;jr.setIn=D2;jr.deleteIn=jr.removeIn=z2;jr.update=q2;jr.updateIn=F2;jr.mergeIn=M2;jr.mergeDeepIn=N2;jr.withMutations=El;jr.wasAltered=$2;jr.asImmutable=yl;jr["@@transducer/init"]=jr.asMutable=vl;jr["@@transducer/step"]=function(e,t){return e.push(t)};jr["@@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+rr)-1)===0||this.array.length===0)return this;var i=n>>>r&_n;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-rr,n),a===o&&s)return this}if(s&&!a)return this;var u=iu(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+rr:Kn)||this.array.length===0)return this;var i=n-1>>>r&_n;if(i>=this.array.length)return this;var s;if(r>0){var a=this.array[i];if(s=a&&a.removeAfter(t,r-rr,n),s===a&&i===this.array.length-1)return this}var o=iu(this,t);return o.array.splice(i+1),s&&(o.array[i]=s),o};var Sc={};function eD(e,t){var r=e._origin,n=e._capacity,i=qc(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,d=n-l;return d>Kn&&(d=Kn),function(){if(h===d)return Sc;var g=t?--d:h++;return f&&f[g]}}function u(c,l,f){var h,d=c&&c.array,g=f>r?0:r-f>>l,y=(n-f>>l)+1;return y>Kn&&(y=Kn),function(){for(;;){if(h){var v=h();if(v!==Sc)return v;h=null}if(g===y)return Sc;var _=t?--y:g++;h=a(d&&d[_],l-rr,f+(_<<l))}}}}function Dc(e,t,r,n,i,s,a){var o=Object.create(jr);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 Cp(){return Dc(0,0,rr)}function bee(e,t,r){if(t=da(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(a){t<0?na(a,t).set(0,r):na(a,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,i=e._root,s=kx();return t>=qc(e._capacity)?n=Fx(n,e.__ownerID,0,t,r,s):i=Fx(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):Dc(e._origin,e._capacity,e._level,i,n):e}function Fx(e,t,r,n,i,s){var a=n>>>r&_n,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=Fx(c,t,r-rr,n,i,s);return l===c?e:(u=iu(e,t),u.array[a]=l,u)}return o&&e.array[a]===i?e:(s&&hi(s),u=iu(e,t),i===void 0&&a===u.array.length-1?u.array.pop():u.array[a]=i,u)}function iu(e,t){return t&&e&&t===e.ownerID?e:new la(e?e.array.slice():[],t)}function Z4(e,t){if(t>=qc(e._capacity))return e._tail;if(t<1<<e._level+rr){for(var r=e._root,n=e._level;r&&n>0;)r=r.array[t>>>n&_n],n-=rr;return r}}function na(e,t,r){t!==void 0&&(t|=0),r!==void 0&&(r|=0);var n=e.__ownerID||new S2,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+=rr,l+=1<<u;l&&(a+=l,i+=l,o+=l,s+=l);for(var f=qc(s),h=qc(o);h>=1<<u+rr;)c=new la(c&&c.array.length?[c]:[],n),u+=rr;var d=e._tail,g=h<f?Z4(e,o-1):h>f?new la([],n):d;if(d&&h>f&&a<s&&d.array.length){c=iu(c,n);for(var y=c,v=u;v>rr;v-=rr){var _=f>>>v&_n;y=y.array[_]=iu(y.array[_],n)}y.array[f>>>rr&_n]=d}if(o<s&&(g=g&&g.removeAfter(n,0,o)),a>=h)a-=h,o-=h,u=rr,c=null,g=g&&g.removeBefore(n,0,a);else if(a>i||h<f){for(l=0;c;){var b=a>>>u&_n;if(b!==h>>>u&_n)break;b&&(l+=(1<<u)*b),u-=rr,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):Dc(a,o,u,c,g)}function qc(e){return e<Kn?0:e-1>>>rr<<rr}function J2(e){return Oh(e)&&qi(e)}var cs=(function(e){function t(r){return r==null?lc():J2(r)?r:lc().withMutations(function(n){var i=_i(r);Hn(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):lc()},t.prototype.set=function(n,i){return rD(this,n,i)},t.prototype.remove=function(n){return rD(this,n,jt)},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?H2(i,s,n,this.__hash):this.size===0?lc():(this.__ownerID=n,this.__altered=!1,this._map=i,this._list=s,this)},t})(uo);cs.isOrderedMap=J2;cs.prototype[ha]=!0;cs.prototype[hl]=cs.prototype.remove;function H2(e,t,r,n){var i=Object.create(cs.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 tD;function lc(){return tD||(tD=H2(os(),Cp()))}function rD(e,t,r){var n=e._map,i=e._list,s=n.get(t),a=s!==void 0,o,u;if(r===jt){if(!a)return e;i.size>=Kn&&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):H2(o,u)}var Q4="@@__IMMUTABLE_STACK__@@";function Yp(e){return!!(e&&e[Q4])}var Ch=(function(e){function t(r){return r==null?sp():Yp(r)?r:sp().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=da(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):fc(i,s)},t.prototype.pushAll=function(n){if(n=e(n),n.size===0)return this;if(this.size===0&&Yp(n))return n;Hn(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):fc(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):sp()},t.prototype.slice=function(n,i){if(ml(n,i,this.size))return this;var s=xu(n,this.size),a=gl(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):fc(o,u)},t.prototype.__ensureOwner=function(n){return n===this.__ownerID?this:n?fc(this.size,this._head,n,this.__hash):this.size===0?sp():(this.__ownerID=n,this.__altered=!1,this)},t.prototype.__iterate=function(n,i){var s=this;if(i)return new eu(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 eu(this.toArray()).__iterator(n,i);var s=0,a=this._head;return new Nt(function(){if(a){var o=a.value;return a=a.next,cr(n,s++,o)}return cn()})},t})(oo);Ch.isStack=Yp;var En=Ch.prototype;En[Q4]=!0;En.shift=En.pop;En.unshift=En.push;En.unshiftAll=En.pushAll;En.withMutations=El;En.wasAltered=$2;En.asImmutable=yl;En["@@transducer/init"]=En.asMutable=vl;En["@@transducer/step"]=function(e,t){return e.unshift(t)};En["@@transducer/result"]=function(e){return e.asImmutable()};function fc(e,t,r,n){var i=Object.create(En);return i.size=e,i._head=t,i.__ownerID=r,i.__hash=n,i.__altered=!1,i}var nD;function sp(){return nD||(nD=fc(0))}function iD(e,t,r,n,i,s){return Hn(e.size),e.__iterate(function(a,o,u){i?(i=!1,r=a):r=t.call(n,r,a,o,u)},s),r}function _ee(e,t){return t}function Eee(e,t){return[t,e]}function o_(e){return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return!e.apply(this,t)}}function sD(e){return function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];return-e.apply(this,t)}}function aD(e,t){return e<t?1:e>t?-1:0}function K2(e,t){if(e===t)return!0;if(!Dn(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||ir(e)!==ir(t)||Mn(e)!==Mn(t)||qi(e)!==qi(t))return!1;if(e.size===0&&t.size===0)return!0;var r=!_h(e);if(qi(e)){var n=e.entries();return t.every(function(u,c){var l=n.next().value;return l&&Ir(l[1],u)&&(r||Ir(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?!Ir(u,e.get(c,jt)):!Ir(e.get(c,jt),u))return a=!1,!1});return a&&e.size===o}var eU=(function(e){function t(r,n,i){if(i===void 0&&(i=1),!(this instanceof t))return new t(r,n,i);if(Ec(i!==0,"Cannot step a Range by 0"),Ec(r!==void 0,"You must define a start value when using Range"),Ec(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(u_)return u_;u_=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+da(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 ml(n,i,this.size)?this:(n=xu(n,this.size),i=gl(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 Nt(function(){if(u===s)return cn();var c=o;return o+=i?-a:a,cr(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:K2(this,n)},t})(Si),u_,tU="@@__IMMUTABLE_SET__@@";function Rh(e){return!!(e&&e[tU])}var wl=(function(e){function t(r){return r==null?pc():Rh(r)&&!qi(r)?r:pc().withMutations(function(n){var i=e(r);Hn(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(_i(n).keySeq())},t.intersect=function(n){return n=Vr(n).toArray(),n.length?tn.intersect.apply(t(n.pop()),n):pc()},t.union=function(n){return n=Vr(n).toArray(),n.length?tn.union.apply(t(n.pop()),n):pc()},t.prototype.toString=function(){return this.__toString("Set {","}")},t.prototype.has=function(n){return this._map.has(n)},t.prototype.add=function(n){return ap(this,this._map.set(n,n))},t.prototype.remove=function(n){return ap(this,this._map.remove(n))},t.prototype.clear=function(){return ap(this,this._map.clear())},t.prototype.map=function(n,i){var s=this,a=!1,o=ap(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 au(tu(this,n))},t.prototype.sortBy=function(n,i){return au(tu(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})(Su);wl.isSet=Rh;var tn=wl.prototype;tn[tU]=!0;tn[hl]=tn.remove;tn.merge=tn.concat=tn.union;tn.withMutations=El;tn.asImmutable=yl;tn["@@transducer/init"]=tn.asMutable=vl;tn["@@transducer/step"]=function(e,t){return e.add(t)};tn["@@transducer/result"]=function(e){return e.asImmutable()};tn.__empty=pc;tn.__make=rU;function ap(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 rU(e,t){var r=Object.create(tn);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var oD;function pc(){return oD||(oD=rU(os()))}function G2(e,t,r){for(var n=W4(t),i=0;i!==n.length;)if(e=V2(e,n[i++],jt),e===jt)return r;return e}function nU(e,t){return G2(this,e,t)}function iU(e,t){return G2(e,t,jt)!==jt}function See(e){return iU(this,e)}function sU(){Hn(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e}function Xp(e){if(!e||typeof e!="object")return e;if(!Dn(e)){if(!ma(e))return e;e=ln(e)}if(ir(e)){var t={};return e.__iterate(function(n,i){t[i]=Xp(n)}),t}var r=[];return e.__iterate(function(n){r.push(Xp(n))}),r}function wee(e){if(e.size===1/0)return 0;var t=qi(e),r=ir(e),n=t?1:0;return e.__iterate(r?t?function(i,s){n=31*n+uD(Pn(i),Pn(s))|0}:function(i,s){n=n+uD(Pn(i),Pn(s))|0}:t?function(i){n=31*n+Pn(i)|0}:function(i){n=n+Pn(i)|0}),xee(e.size,n)}function xee(e,t){return t=Gu(t,3432918353),t=Gu(t<<15|t>>>-15,461845907),t=Gu(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=Gu(t^t>>>16,2246822507),t=Gu(t^t>>>13,3266489909),t=xh(t^t>>>16),t}function uD(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function lo(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}Vr.Iterator=Nt;lo(Vr,{toArray:function(){Hn(this.size);var t=new Array(this.size||0),r=ir(this),n=0;return this.__iterate(function(i,s){t[n++]=r?[s,i]:i}),t},toIndexedSeq:function(){return new C4(this)},toJS:function(){return Xp(this)},toKeyedSeq:function(){return new Ah(this,!0)},toMap:function(){return uo(this.toKeyedSeq())},toObject:sU,toOrderedMap:function(){return cs(this.toKeyedSeq())},toOrderedSet:function(){return au(ir(this)?this.valueSeq():this)},toSet:function(){return wl(ir(this)?this.valueSeq():this)},toSetSeq:function(){return new R4(this)},toSeq:function(){return Mn(this)?this.toIndexedSeq():ir(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Ch(ir(this)?this.valueSeq():this)},toList:function(){return Sl(ir(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 tr(this,eee(this,t))},includes:function(t){return this.some(function(r){return Ir(r,t)})},entries:function(){return this.__iterator(Zn)},every:function(t,r){Hn(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 tr(this,P4(this,t,r,!0))},partition:function(t,r){return XQ(this,t,r)},find:function(t,r,n){var i=this.findEntry(t,r);return i?i[1]:n},forEach:function(t,r){return Hn(this.size),this.__iterate(r?t.bind(r):t)},join:function(t){Hn(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(wu)},map:function(t,r){return tr(this,j4(this,t,r))},reduce:function(t,r,n){return iD(this,t,r,n,arguments.length<2,!1)},reduceRight:function(t,r,n){return iD(this,t,r,n,arguments.length<2,!0)},reverse:function(){return tr(this,R2(this,!0))},slice:function(t,r){return tr(this,T2(this,t,r,!0))},some:function(t,r){Hn(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 tr(this,tu(this,t))},values:function(){return this.__iterator(Xn)},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 Qo(t?this.toSeq().filter(t,r):this)},countBy:function(t,r){return GQ(this,t,r)},equals:function(t){return K2(this,t)},entrySeq:function(){var t=this;if(t._cache)return new eu(t._cache);var r=t.toSeq().map(Eee).toIndexedSeq();return r.fromEntrySeq=function(){return t.toSeq()},r},filterNot:function(t,r){return this.filter(o_(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(_4,null,t)},flatMap:function(t,r){return tr(this,tee(this,t,r))},flatten:function(t){return tr(this,N4(this,t,!0))},fromEntrySeq:function(){return new T4(this)},get:function(t,r){return this.find(function(n,i){return Ir(i,t)},void 0,r)},getIn:nU,groupBy:function(t,r){return YQ(this,t,r)},has:function(t){return this.get(t,jt)!==jt},hasIn:See,isSubset:function(t){return t=typeof t.includes=="function"?t:Vr(t),this.every(function(r){return t.includes(r)})},isSuperset:function(t){return t=typeof t.isSubset=="function"?t:Vr(t),t.isSubset(this)},keyOf:function(t){return this.findKey(function(r){return Ir(r,t)})},keySeq:function(){return this.toSeq().map(_ee).toIndexedSeq()},last:function(t){return this.toSeq().reverse().first(t)},lastKeyOf:function(t){return this.toKeyedSeq().reverse().keyOf(t)},max:function(t){return np(this,t)},maxBy:function(t,r){return np(this,r,t)},min:function(t){return np(this,t?sD(t):aD)},minBy:function(t,r){return np(this,r?sD(r):aD,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 tr(this,k4(this,t,r,!0))},skipUntil:function(t,r){return this.skipWhile(o_(t),r)},sortBy:function(t,r){return tr(this,tu(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 tr(this,ZQ(this,t,r))},takeUntil:function(t,r){return this.takeWhile(o_(t),r)},update:function(t){return t(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=wee(this))}});var fn=Vr.prototype;fn[v4]=!0;fn[Eh]=fn.values;fn.toJSON=fn.toArray;fn.__toStringMapper=Mc;fn.inspect=fn.toSource=function(){return this.toString()};fn.chain=fn.flatMap;fn.contains=fn.includes;lo(_i,{flip:function(){return tr(this,I4(this))},mapEntries:function(t,r){var n=this,i=0;return tr(this,this.toSeq().map(function(s,a){return t.call(r,[a,s],i++,n)}).fromEntrySeq())},mapKeys:function(t,r){var n=this;return tr(this,this.toSeq().flip().map(function(i,s){return t.call(r,i,s,n)}).flip())}});var xl=_i.prototype;xl[Kp]=!0;xl[Eh]=fn.entries;xl.toJSON=sU;xl.__toStringMapper=function(e,t){return Mc(t)+": "+Mc(e)};lo(oo,{toKeyedSeq:function(){return new Ah(this,!1)},filter:function(t,r){return tr(this,P4(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 tr(this,R2(this,!1))},slice:function(t,r){return tr(this,T2(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=xu(t,t<0?this.count():this.size);var i=this.slice(0,t);return tr(this,n===1?i:i.concat(ss(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 tr(this,N4(this,t,!1))},get:function(t,r){return t=da(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=da(this,t),t>=0&&(this.size!==void 0?this.size===1/0||t<this.size:this.indexOf(t)!==-1)},interpose:function(t){return tr(this,ree(this,t))},interleave:function(){var t=[this].concat(ss(arguments)),r=ip(this.toSeq(),Si.of,t),n=r.flatten(!0);return r.size&&(n.size=r.size*t.length),tr(this,n)},keySeq:function(){return eU(0,this.size)},last:function(t){return this.get(-1,t)},skipWhile:function(t,r){return tr(this,k4(this,t,r,!1))},zip:function(){var t=[this].concat(ss(arguments));return tr(this,ip(this,cD,t))},zipAll:function(){var t=[this].concat(ss(arguments));return tr(this,ip(this,cD,t,!0))},zipWith:function(t){var r=ss(arguments);return r[0]=this,tr(this,ip(this,t,r))}});var Cu=oo.prototype;Cu[Hp]=!0;Cu[ha]=!0;lo(Su,{get:function(t,r){return this.has(t)?t:r},includes:function(t){return this.has(t)},keySeq:function(){return this.valueSeq()}});var su=Su.prototype;su.has=fn.includes;su.contains=su.includes;su.keys=su.values;lo(ba,xl);lo(Si,Cu);lo(Ou,su);function cD(){return ss(arguments)}function Y2(e){return Rh(e)&&qi(e)}var au=(function(e){function t(r){return r==null?$x():Y2(r)?r:$x().withMutations(function(n){var i=Su(r);Hn(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(_i(n).keySeq())},t.prototype.toString=function(){return this.__toString("OrderedSet {","}")},t})(wl);au.isOrderedSet=Y2;var fo=au.prototype;fo[ha]=!0;fo.zip=Cu.zip;fo.zipWith=Cu.zipWith;fo.zipAll=Cu.zipAll;fo.__empty=$x;fo.__make=aU;function aU(e,t){var r=Object.create(fo);return r.size=e?e.size:0,r._map=e,r.__ownerID=t,r}var lD;function $x(){return lD||(lD=aU(lc()))}var Aee={LeftThenRight:-1,RightThenLeft:1};function Oee(e){if(va(e))throw new Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Ei(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 $r=function(t,r){var n;Oee(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 "+Z2(this)+' with property "'+h+'" since that property name is part of the Record API.'):Cee(s,h)}}return this.__ownerID=void 0,this._values=Sl().withMutations(function(d){d.setSize(u._keys.length),_i(o).forEach(function(g,y){d.set(u._indices[y],g===u._defaultValues[y]?void 0:g)})}),this},s=i.prototype=Object.create(ar);return s.constructor=i,r&&(i.displayName=r),i};$r.prototype.toString=function(){for(var t=Z2(this)+" { ",r=this._keys,n,i=0,s=r.length;i!==s;i++)n=r[i],t+=(i?", ":"")+n+": "+Mc(this.get(n));return t+" }"};$r.prototype.equals=function(t){return this===t||va(t)&&ou(this).equals(ou(t))};$r.prototype.hashCode=function(){return ou(this).hashCode()};$r.prototype.has=function(t){return this._indices.hasOwnProperty(t)};$r.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};$r.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 X2(this,n)}return this};$r.prototype.remove=function(t){return this.set(t)};$r.prototype.clear=function(){var t=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:X2(this,t)};$r.prototype.wasAltered=function(){return this._values.wasAltered()};$r.prototype.toSeq=function(){return ou(this)};$r.prototype.toJS=function(){return Xp(this)};$r.prototype.entries=function(){return this.__iterator(Zn)};$r.prototype.__iterator=function(t,r){return ou(this).__iterator(t,r)};$r.prototype.__iterate=function(t,r){return ou(this).__iterate(t,r)};$r.prototype.__ensureOwner=function(t){if(t===this.__ownerID)return this;var r=this._values.__ensureOwner(t);return t?X2(this,r,t):(this.__ownerID=t,this._values=r,this)};$r.isRecord=va;$r.getDescriptiveName=Z2;var ar=$r.prototype;ar[w4]=!0;ar[hl]=ar.remove;ar.deleteIn=ar.removeIn=z2;ar.getIn=nU;ar.hasIn=fn.hasIn;ar.merge=D4;ar.mergeWith=q4;ar.mergeIn=M2;ar.mergeDeep=$4;ar.mergeDeepWith=L4;ar.mergeDeepIn=N2;ar.setIn=D2;ar.update=q2;ar.updateIn=F2;ar.withMutations=El;ar.asMutable=vl;ar.asImmutable=yl;ar[Eh]=ar.entries;ar.toJSON=ar.toObject=fn.toObject;ar.inspect=ar.toSource=function(){return this.toString()};function X2(e,t,r){var n=Object.create(Object.getPrototypeOf(e));return n._values=t,n.__ownerID=r,n}function Z2(e){return e.constructor.displayName||e.constructor.name||"Record"}function ou(e){return O2(e._keys.map(function(t){return[t,e.get(t)]}))}function Cee(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(r){Ec(this.__ownerID,"Cannot set on an immutable record."),this.set(t,r)}})}catch{}}var Ree=(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(c_)return c_;c_=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 Ir(this._value,n)},t.prototype.slice=function(n,i){var s=this.size;return ml(n,i,s)?this:new t(this._value,gl(i,s)-xu(n,s))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(n){return Ir(this._value,n)?0:-1},t.prototype.lastIndexOf=function(n){return Ir(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 Nt(function(){return o===a?cn():cr(n,i?a-++o:o++,s._value)})},t.prototype.equals=function(n){return n instanceof t?Ir(this._value,n._value):K2(this,n)},t})(Si),c_;function Tee(e,t){return oU([],t||Iee,e,"",t&&t.length>2?[]:void 0,{"":e})}function oU(e,t,r,n,i,s){if(typeof r!="string"&&!Ei(r)&&(w2(r)||E2(r)||k2(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,ln(r).map(function(o,u){return oU(e,t,o,u,i,r)}),i&&i.slice());return e.pop(),i&&i.pop(),a}return r}function Iee(e,t){return Mn(t)?t.toList():ir(t)?t.toMap():t.toSet()}var jee="5.1.4",Pee=Vr;const kee=Object.freeze(Object.defineProperty({__proto__:null,Collection:Vr,Iterable:Pee,List:Sl,Map:uo,OrderedMap:cs,OrderedSet:au,PairSorting:Aee,Range:eU,Record:$r,Repeat:Ree,Seq:ln,Set:wl,Stack:Ch,fromJS:Tee,get:V2,getIn:G2,has:J4,hasIn:iU,hash:Pn,is:Ir,isAssociative:_h,isCollection:Dn,isImmutable:Ei,isIndexed:Mn,isKeyed:ir,isList:W2,isMap:Oh,isOrdered:qi,isOrderedMap:J2,isOrderedSet:Y2,isPlainObject:k2,isRecord:va,isSeq:wh,isSet:Rh,isStack:Yp,isValueObject:qx,merge:iee,mergeDeep:aee,mergeDeepWith:oee,mergeWith:see,remove:H4,removeIn:Y4,set:K4,setIn:B4,update:P2,updateIn:co,version:jee},Symbol.toStringTag,{value:"Module"})),Nee=He.getAugmentedNamespace(kee);var l_,fD;function Mee(){if(fD)return l_;fD=1;var e=Nee,t="<<anonymous>>",r;if(process.env.NODE_ENV!=="production")r={listOf:f,mapOf:d,orderedMapOf:g,setOf:y,orderedSetOf:v,stackOf:_,iterableOf:b,recordOf:S,shape:E,contains:E,mapContains:A,orderedMapContains:R,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(I){return I 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(I){var O=typeof I;return Array.isArray(I)?"array":I instanceof RegExp?"object":I instanceof e.Iterable?"Immutable."+I.toSource().split(" ")[0]:O}function a(I){function O(P,F,M,K,te,J){for(var Q=arguments.length,re=Array(Q>6?Q-6:0),ne=6;ne<Q;ne++)re[ne-6]=arguments[ne];if(J=J||M,K=K||t,F[M]==null){var U=te;if(P)return new Error("Required "+U+" `"+J+"` was not specified in "+("`"+K+"`."))}else return I.apply(void 0,[F,M,K,te,J].concat(re))}var D=O.bind(null,!1);return D.isRequired=O.bind(null,!0),D}function o(I,O){function D(P,F,M,K,te){var J=P[F];if(!O(J)){var Q=s(J);return new Error("Invalid "+K+" `"+te+"` of type `"+Q+"` "+("supplied to `"+M+"`, expected `"+I+"`."))}return null}return a(D)}function u(I,O){return o("Iterable."+I,function(D){return e.Iterable.isIterable(D)&&O(D)})}function c(I,O,D){function P(F,M,K,te,J){for(var Q=arguments.length,re=Array(Q>5?Q-5:0),ne=5;ne<Q;ne++)re[ne-5]=arguments[ne];var U=F[M];if(!D(U)){var H=te,ie=s(U);return new Error("Invalid "+H+" `"+J+"` of type "+("`"+ie+"` supplied to `"+K+"`, expected an Immutable.js "+O+"."))}if(typeof I!="function")return new Error("Invalid typeChecker supplied to `"+K+"` "+("for propType `"+J+"`, expected a function."));for(var ue=U.valueSeq().toArray(),le=0,ee=ue.length;le<ee;le++){var z=I.apply(void 0,[ue,le,K,te,""+J+"["+le+"]"].concat(re));if(z instanceof Error)return z}}return a(P)}function l(I){function O(D,P,F,M,K){for(var te=arguments.length,J=Array(te>5?te-5:0),Q=5;Q<te;Q++)J[Q-5]=arguments[Q];var re=D[P];if(typeof I!="function")return new Error("Invalid keysTypeChecker (optional second argument) supplied to `"+F+"` "+("for propType `"+K+"`, expected a function."));for(var ne=re.keySeq().toArray(),U=0,H=ne.length;U<H;U++){var ie=I.apply(void 0,[ne,U,F,M,""+K+" -> key("+ne[U]+")"].concat(J));if(ie instanceof Error)return ie}}return a(O)}function f(I){return c(I,"List",e.List.isList)}function h(I,O,D,P){function F(){for(var M=arguments.length,K=Array(M),te=0;te<M;te++)K[te]=arguments[te];return c(I,D,P).apply(void 0,K)||O&&l(O).apply(void 0,K)}return a(F)}function d(I,O){return h(I,O,"Map",e.Map.isMap)}function g(I,O){return h(I,O,"OrderedMap",e.OrderedMap.isOrderedMap)}function y(I){return c(I,"Set",e.Set.isSet)}function v(I){return c(I,"OrderedSet",e.OrderedSet.isOrderedSet)}function _(I){return c(I,"Stack",e.Stack.isStack)}function b(I){return c(I,"Iterable",e.Iterable.isIterable)}function S(I){function O(D,P,F,M,K){for(var te=arguments.length,J=Array(te>5?te-5:0),Q=5;Q<te;Q++)J[Q-5]=arguments[Q];var re=D[P];if(!(re instanceof e.Record)){var ne=s(re),U=M;return new Error("Invalid "+U+" `"+K+"` of type `"+ne+"` "+("supplied to `"+F+"`, expected an Immutable.js Record."))}for(var H in I){var ie=I[H];if(ie){var ue=re.toObject(),le=ie.apply(void 0,[ue,H,F,M,""+K+"."+H].concat(J));if(le)return le}}}return a(O)}function w(I){var O=arguments[1]===void 0?"Iterable":arguments[1],D=arguments[2]===void 0?e.Iterable.isIterable:arguments[2];function P(F,M,K,te,J){for(var Q=arguments.length,re=Array(Q>5?Q-5:0),ne=5;ne<Q;ne++)re[ne-5]=arguments[ne];var U=F[M];if(!D(U)){var H=s(U),ie=te;return new Error("Invalid "+ie+" `"+J+"` of type `"+H+"` "+("supplied to `"+K+"`, expected an Immutable.js "+O+"."))}var ue=U.toObject();for(var le in I){var ee=I[le];if(ee){var z=ee.apply(void 0,[ue,le,K,te,""+J+"."+le].concat(re));if(z)return z}}}return a(P)}function E(I){return w(I)}function A(I){return w(I,"Map",e.Map.isMap)}function R(I){return w(I,"OrderedMap",e.OrderedMap.isOrderedMap)}return l_=r,l_}var Dee=Mee();const qee=He.getDefaultExportFromCjs(Dee);var f_,pD;function Fee(){if(pD)return f_;pD=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 f_=e,f_}var p_,dD;function $ee(){if(dD)return p_;dD=1;var e=u8(),t=w8(),r=dl(),n=Fee(),i=Jr();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 p_=s,p_}var Lee=$ee();const Bee=He.getDefaultExportFromCjs(Lee);var Uee=b8();const Vee=He.getDefaultExportFromCjs(Uee);var hD={},Yu,mD;function qn(){if(mD)return Yu;mD=1;var e=function(t){return t&&t.Math===Math&&t};return Yu=e(typeof globalThis=="object"&&globalThis)||e(typeof window=="object"&&window)||e(typeof self=="object"&&self)||e(typeof He.commonjsGlobal=="object"&&He.commonjsGlobal)||e(typeof Yu=="object"&&Yu)||(function(){return this})()||Function("return this")(),Yu}var d_,gD;function wi(){return gD||(gD=1,d_=function(e){try{return!!e()}catch{return!0}}),d_}var h_,yD;function Al(){if(yD)return h_;yD=1;var e=wi();return h_=!e(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),h_}var m_,vD;function Q2(){if(vD)return m_;vD=1;var e=Al(),t=Function.prototype,r=t.apply,n=t.call;return m_=typeof Reflect=="object"&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),m_}var g_,bD;function Fn(){if(bD)return g_;bD=1;var e=Al(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return g_=e?n:function(i){return function(){return r.apply(i,arguments)}},g_}var y_,_D;function eC(){if(_D)return y_;_D=1;var e=Fn(),t=e({}.toString),r=e("".slice);return y_=function(n){return r(t(n),8,-1)},y_}var v_,ED;function uU(){if(ED)return v_;ED=1;var e=eC(),t=Fn();return v_=function(r){if(e(r)==="Function")return t(r)},v_}var b_,SD;function ei(){if(SD)return b_;SD=1;var e=typeof document=="object"&&document.all;return b_=typeof e>"u"&&e!==void 0?function(t){return typeof t=="function"||t===e}:function(t){return typeof t=="function"},b_}var __={},E_,wD;function ms(){if(wD)return E_;wD=1;var e=wi();return E_=!e(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),E_}var S_,xD;function _a(){if(xD)return S_;xD=1;var e=Al(),t=Function.prototype.call;return S_=e?t.bind(t):function(){return t.apply(t,arguments)},S_}var w_={},AD;function cU(){if(AD)return w_;AD=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return w_.f=r?function(i){var s=t(this,i);return!!s&&s.enumerable}:e,w_}var x_,OD;function Ol(){return OD||(OD=1,x_=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}),x_}var A_,CD;function lU(){if(CD)return A_;CD=1;var e=Fn(),t=wi(),r=eC(),n=Object,i=e("".split);return A_=t(function(){return!n("z").propertyIsEnumerable(0)})?function(s){return r(s)==="String"?i(s,""):n(s)}:n,A_}var O_,RD;function tC(){return RD||(RD=1,O_=function(e){return e==null}),O_}var C_,TD;function Th(){if(TD)return C_;TD=1;var e=tC(),t=TypeError;return C_=function(r){if(e(r))throw new t("Can't call method on "+r);return r},C_}var R_,ID;function Cl(){if(ID)return R_;ID=1;var e=lU(),t=Th();return R_=function(r){return e(t(r))},R_}var T_,jD;function Ui(){if(jD)return T_;jD=1;var e=ei();return T_=function(t){return typeof t=="object"?t!==null:e(t)},T_}var I_,PD;function Rl(){return PD||(PD=1,I_={}),I_}var j_,kD;function Tl(){if(kD)return j_;kD=1;var e=Rl(),t=qn(),r=ei(),n=function(i){return r(i)?i:void 0};return j_=function(i,s){return arguments.length<2?n(e[i])||n(t[i]):e[i]&&e[i][s]||t[i]&&t[i][s]},j_}var P_,ND;function Il(){if(ND)return P_;ND=1;var e=Fn();return P_=e({}.isPrototypeOf),P_}var k_,MD;function zee(){if(MD)return k_;MD=1;var e=qn(),t=e.navigator,r=t&&t.userAgent;return k_=r?String(r):"",k_}var N_,DD;function Wee(){if(DD)return N_;DD=1;var e=qn(),t=zee(),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]))),N_=o,N_}var M_,qD;function fU(){if(qD)return M_;qD=1;var e=Wee(),t=wi(),r=qn(),n=r.String;return M_=!!Object.getOwnPropertySymbols&&!t(function(){var i=Symbol("symbol detection");return!n(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&e&&e<41}),M_}var D_,FD;function pU(){if(FD)return D_;FD=1;var e=fU();return D_=e&&!Symbol.sham&&typeof Symbol.iterator=="symbol",D_}var q_,$D;function dU(){if($D)return q_;$D=1;var e=Tl(),t=ei(),r=Il(),n=pU(),i=Object;return q_=n?function(s){return typeof s=="symbol"}:function(s){var a=e("Symbol");return t(a)&&r(a.prototype,i(s))},q_}var F_,LD;function rC(){if(LD)return F_;LD=1;var e=String;return F_=function(t){try{return e(t)}catch{return"Object"}},F_}var $_,BD;function jl(){if(BD)return $_;BD=1;var e=ei(),t=rC(),r=TypeError;return $_=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")},$_}var L_,UD;function nC(){if(UD)return L_;UD=1;var e=jl(),t=tC();return L_=function(r,n){var i=r[n];return t(i)?void 0:e(i)},L_}var B_,VD;function Jee(){if(VD)return B_;VD=1;var e=_a(),t=ei(),r=Ui(),n=TypeError;return B_=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")},B_}var U_={exports:{}},V_,zD;function Pl(){return zD||(zD=1,V_=!0),V_}var z_,WD;function Hee(){if(WD)return z_;WD=1;var e=qn(),t=Object.defineProperty;return z_=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch{e[r]=n}return n},z_}var JD;function hU(){if(JD)return U_.exports;JD=1;var e=Pl(),t=qn(),r=Hee(),n="__core-js_shared__",i=U_.exports=t[n]||r(n,{});return(i.versions||(i.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),U_.exports}var W_,HD;function mU(){if(HD)return W_;HD=1;var e=hU();return W_=function(t,r){return e[t]||(e[t]=r||{})},W_}var J_,KD;function iC(){if(KD)return J_;KD=1;var e=Th(),t=Object;return J_=function(r){return t(e(r))},J_}var H_,GD;function Vi(){if(GD)return H_;GD=1;var e=Fn(),t=iC(),r=e({}.hasOwnProperty);return H_=Object.hasOwn||function(i,s){return r(t(i),s)},H_}var K_,YD;function gU(){if(YD)return K_;YD=1;var e=Fn(),t=0,r=Math.random(),n=e(1.1.toString);return K_=function(i){return"Symbol("+(i===void 0?"":i)+")_"+n(++t+r,36)},K_}var G_,XD;function Ls(){if(XD)return G_;XD=1;var e=qn(),t=mU(),r=Vi(),n=gU(),i=fU(),s=pU(),a=e.Symbol,o=t("wks"),u=s?a.for||a:a&&a.withoutSetter||n;return G_=function(c){return r(o,c)||(o[c]=i&&r(a,c)?a[c]:u("Symbol."+c)),o[c]},G_}var Y_,ZD;function Kee(){if(ZD)return Y_;ZD=1;var e=_a(),t=Ui(),r=dU(),n=nC(),i=Jee(),s=Ls(),a=TypeError,o=s("toPrimitive");return Y_=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)},Y_}var X_,QD;function yU(){if(QD)return X_;QD=1;var e=Kee(),t=dU();return X_=function(r){var n=e(r,"string");return t(n)?n:n+""},X_}var Z_,eq;function vU(){if(eq)return Z_;eq=1;var e=qn(),t=Ui(),r=e.document,n=t(r)&&t(r.createElement);return Z_=function(i){return n?r.createElement(i):{}},Z_}var Q_,tq;function bU(){if(tq)return Q_;tq=1;var e=ms(),t=wi(),r=vU();return Q_=!e&&!t(function(){return Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a!==7}),Q_}var rq;function _U(){if(rq)return __;rq=1;var e=ms(),t=_a(),r=cU(),n=Ol(),i=Cl(),s=yU(),a=Vi(),o=bU(),u=Object.getOwnPropertyDescriptor;return __.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])},__}var eE,nq;function Gee(){if(nq)return eE;nq=1;var e=wi(),t=ei(),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 eE=n,eE}var tE,iq;function EU(){if(iq)return tE;iq=1;var e=uU(),t=jl(),r=Al(),n=e(e.bind);return tE=function(i,s){return t(i),s===void 0?i:r?n(i,s):function(){return i.apply(s,arguments)}},tE}var rE={},nE,sq;function SU(){if(sq)return nE;sq=1;var e=ms(),t=wi();return nE=e&&t(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42}),nE}var iE,aq;function po(){if(aq)return iE;aq=1;var e=Ui(),t=String,r=TypeError;return iE=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")},iE}var oq;function Ru(){if(oq)return rE;oq=1;var e=ms(),t=bU(),r=SU(),n=po(),i=yU(),s=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",c="configurable",l="writable";return rE.f=e?r?function(h,d,g){if(n(h),d=i(d),n(g),typeof h=="function"&&d==="prototype"&&"value"in g&&l in g&&!g[l]){var y=o(h,d);y&&y[l]&&(h[d]=g.value,g={configurable:c in g?g[c]:y[c],enumerable:u in g?g[u]:y[u],writable:!1})}return a(h,d,g)}:a:function(h,d,g){if(n(h),d=i(d),n(g),t)try{return a(h,d,g)}catch{}if("get"in g||"set"in g)throw new s("Accessors not supported");return"value"in g&&(h[d]=g.value),h},rE}var sE,uq;function Bs(){if(uq)return sE;uq=1;var e=ms(),t=Ru(),r=Ol();return sE=e?function(n,i,s){return t.f(n,i,r(1,s))}:function(n,i,s){return n[i]=s,n},sE}var aE,cq;function Tu(){if(cq)return aE;cq=1;var e=qn(),t=Q2(),r=uU(),n=ei(),i=_U().f,s=Gee(),a=Rl(),o=EU(),u=Bs(),c=Vi(),l=function(f){var h=function(d,g,y){if(this instanceof h){switch(arguments.length){case 0:return new f;case 1:return new f(d);case 2:return new f(d,g)}return new f(d,g,y)}return t(f,this,arguments)};return h.prototype=f.prototype,h};return aE=function(f,h){var d=f.target,g=f.global,y=f.stat,v=f.proto,_=g?e:y?e[d]:e[d]&&e[d].prototype,b=g?a:a[d]||u(a,d,{})[d],S=b.prototype,w,E,A,R,I,O,D,P,F;for(R in h)w=s(g?R:d+(y?".":"#")+R,f.forced),E=!w&&_&&c(_,R),O=b[R],E&&(f.dontCallGetSet?(F=i(_,R),D=F&&F.value):D=_[R]),I=E&&D?D:h[R],!(!w&&!v&&typeof O==typeof I)&&(f.bind&&E?P=o(I,e):f.wrap&&E?P=l(I):v&&n(I)?P=r(I):P=I,(f.sham||I&&I.sham||O&&O.sham)&&u(P,"sham",!0),u(b,R,P),v&&(A=d+"Prototype",c(a,A)||u(a,A,{}),u(a[A],R,I),f.real&&S&&(w||!S[R])&&u(S,R,I)))},aE}var oE,lq;function Yee(){if(lq)return oE;lq=1;var e=Math.ceil,t=Math.floor;return oE=Math.trunc||function(n){var i=+n;return(i>0?t:e)(i)},oE}var uE,fq;function sC(){if(fq)return uE;fq=1;var e=Yee();return uE=function(t){var r=+t;return r!==r||r===0?0:e(r)},uE}var cE,pq;function Xee(){if(pq)return cE;pq=1;var e=sC(),t=Math.max,r=Math.min;return cE=function(n,i){var s=e(n);return s<0?t(s+i,0):r(s,i)},cE}var lE,dq;function Zee(){if(dq)return lE;dq=1;var e=sC(),t=Math.min;return lE=function(r){var n=e(r);return n>0?t(n,9007199254740991):0},lE}var fE,hq;function wU(){if(hq)return fE;hq=1;var e=Zee();return fE=function(t){return e(t.length)},fE}var pE,mq;function Qee(){if(mq)return pE;mq=1;var e=Cl(),t=Xee(),r=wU(),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 pE={includes:n(!0),indexOf:n(!1)},pE}var dE,gq;function aC(){return gq||(gq=1,dE={}),dE}var hE,yq;function xU(){if(yq)return hE;yq=1;var e=Fn(),t=Vi(),r=Cl(),n=Qee().indexOf,i=aC(),s=e([].push);return hE=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},hE}var mE,vq;function oC(){return vq||(vq=1,mE=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]),mE}var gE,bq;function AU(){if(bq)return gE;bq=1;var e=xU(),t=oC();return gE=Object.keys||function(n){return e(n,t)},gE}var yE={},_q;function OU(){return _q||(_q=1,yE.f=Object.getOwnPropertySymbols),yE}var vE,Eq;function ete(){if(Eq)return vE;Eq=1;var e=ms(),t=Fn(),r=_a(),n=wi(),i=AU(),s=OU(),a=cU(),o=iC(),u=lU(),c=Object.assign,l=Object.defineProperty,f=t([].concat);return vE=!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={},d={},g=Symbol("assign detection"),y="abcdefghijklmnopqrst";return h[g]=7,y.split("").forEach(function(v){d[v]=v}),c({},h)[g]!==7||i(c({},d)).join("")!==y})?function(d,g){for(var y=o(d),v=arguments.length,_=1,b=s.f,S=a.f;v>_;)for(var w=u(arguments[_++]),E=b?f(i(w),b(w)):i(w),A=E.length,R=0,I;A>R;)I=E[R++],(!e||r(S,w,I))&&(y[I]=w[I]);return y}:c,vE}var Sq;function tte(){if(Sq)return hD;Sq=1;var e=Tu(),t=ete();return e({target:"Object",stat:!0,arity:2,forced:Object.assign!==t},{assign:t}),hD}var bE,wq;function rte(){if(wq)return bE;wq=1,tte();var e=Rl();return bE=e.Object.assign,bE}var _E,xq;function nte(){if(xq)return _E;xq=1;var e=rte();return _E=e,_E}var EE,Aq;function ite(){if(Aq)return EE;Aq=1;var e=nte();return EE=e,EE}var SE,Oq;function ste(){if(Oq)return SE;Oq=1;var e=ite();return SE=e,SE}var wE,Cq;function ate(){return Cq||(Cq=1,wE=ste()),wE}var ote=ate();const Rq=He.getDefaultExportFromCjs(ote);var Tq={},xE,Iq;function ute(){if(Iq)return xE;Iq=1;var e=Fn();return xE=e([].slice),xE}var AE,jq;function cte(){if(jq)return AE;jq=1;var e=Fn(),t=jl(),r=Ui(),n=Vi(),i=ute(),s=Al(),a=Function,o=e([].concat),u=e([].join),c={},l=function(f,h,d){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,d)};return AE=s?a.bind:function(h){var d=t(this),g=d.prototype,y=i(arguments,1),v=function(){var b=o(y,i(arguments));return this instanceof v?l(d,b.length,b):d.apply(h,b)};return r(g)&&(v.prototype=g),v},AE}var Pq;function lte(){if(Pq)return Tq;Pq=1;var e=Tu(),t=cte();return e({target:"Function",proto:!0,forced:Function.bind!==t},{bind:t}),Tq}var OE,kq;function fte(){if(kq)return OE;kq=1;var e=qn(),t=Rl();return OE=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]},OE}var CE,Nq;function pte(){if(Nq)return CE;Nq=1,lte();var e=fte();return CE=e("Function","bind"),CE}var RE,Mq;function dte(){if(Mq)return RE;Mq=1;var e=Il(),t=pte(),r=Function.prototype;return RE=function(n){var i=n.bind;return n===r||e(r,n)&&i===r.bind?t:i},RE}var TE,Dq;function hte(){if(Dq)return TE;Dq=1;var e=dte();return TE=e,TE}var IE,qq;function mte(){if(qq)return IE;qq=1;var e=hte();return IE=e,IE}var jE,Fq;function gte(){if(Fq)return jE;Fq=1;var e=mte();return jE=e,jE}var PE,$q;function yte(){return $q||($q=1,PE=gte()),PE}var vte=yte();const bte=He.getDefaultExportFromCjs(vte);function Lx(){var e;return Lx=Rq?bte(e=Rq).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},Lx.apply(null,arguments)}var kE={exports:{}};/*!
|
|
86
|
+
Copyright (c) 2018 Jed Watson.
|
|
87
|
+
Licensed under the MIT License (MIT), see
|
|
88
|
+
http://jedwatson.github.io/classnames
|
|
89
|
+
*/var Lq;function _te(){return Lq||(Lq=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})()})(kE)),kE.exports}var Ete=_te();const Ste=He.getDefaultExportFromCjs(Ete);var Xu={},NE,Bq;function wte(){return Bq||(Bq=1,NE=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()}}),NE}var ME,Uq;function xte(){if(Uq)return ME;Uq=1;var e=wte(),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,d=!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");d=!0}catch(y){o&&console.error("unable to copy using execCommand: ",y),o&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(a.format||"text",s),a.onCopy&&a.onCopy(window.clipboardData),d=!0}catch(v){o&&console.error("unable to copy using clipboardData: ",v),o&&console.error("falling back to prompt"),u=n("message"in a?a.message:r),window.prompt(u,s)}}finally{f&&(typeof f.removeRange=="function"?f.removeRange(l):f.removeAllRanges()),h&&document.body.removeChild(h),c()}return d}return ME=i,ME}var Vq;function Ate(){if(Vq)return Xu;Vq=1;function e(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(E)}Object.defineProperty(Xu,"__esModule",{value:!0}),Xu.CopyToClipboard=void 0;var t=i(Bt),r=i(xte()),n=["text","onCopy","options","children"];function i(E){return E&&E.__esModule?E:{default:E}}function s(E,A){var R=Object.keys(E);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(E);A&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(E,O).enumerable})),R.push.apply(R,I)}return R}function a(E){for(var A=1;A<arguments.length;A++){var R=arguments[A]!=null?arguments[A]:{};A%2?s(Object(R),!0).forEach(function(I){S(E,I,R[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(R)):s(Object(R)).forEach(function(I){Object.defineProperty(E,I,Object.getOwnPropertyDescriptor(R,I))})}return E}function o(E,A){if(E==null)return{};var R=u(E,A),I,O;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);for(O=0;O<D.length;O++)I=D[O],!(A.indexOf(I)>=0)&&Object.prototype.propertyIsEnumerable.call(E,I)&&(R[I]=E[I])}return R}function u(E,A){if(E==null)return{};var R={},I=Object.keys(E),O,D;for(D=0;D<I.length;D++)O=I[D],!(A.indexOf(O)>=0)&&(R[O]=E[O]);return R}function c(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function l(E,A){for(var R=0;R<A.length;R++){var I=A[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}function f(E,A,R){return A&&l(E.prototype,A),Object.defineProperty(E,"prototype",{writable:!1}),E}function h(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),A&&d(E,A)}function d(E,A){return d=Object.setPrototypeOf||function(I,O){return I.__proto__=O,I},d(E,A)}function g(E){var A=_();return function(){var I=b(E),O;if(A){var D=b(this).constructor;O=Reflect.construct(I,arguments,D)}else O=I.apply(this,arguments);return y(this,O)}}function y(E,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(E)}function v(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function _(){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(E){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},b(E)}function S(E,A,R){return A in E?Object.defineProperty(E,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):E[A]=R,E}var w=(function(E){h(R,E);var A=g(R);function R(){var I;c(this,R);for(var O=arguments.length,D=new Array(O),P=0;P<O;P++)D[P]=arguments[P];return I=A.call.apply(A,[this].concat(D)),S(v(I),"onClick",function(F){var M=I.props,K=M.text,te=M.onCopy,J=M.children,Q=M.options,re=t.default.Children.only(J),ne=(0,r.default)(K,Q);te&&te(K,ne),re&&re.props&&typeof re.props.onClick=="function"&&re.props.onClick(F)}),I}return f(R,[{key:"render",value:function(){var O=this.props;O.text,O.onCopy,O.options;var D=O.children,P=o(O,n),F=t.default.Children.only(D);return t.default.cloneElement(F,a(a({},P),{},{onClick:this.onClick}))}}]),R})(t.default.PureComponent);return Xu.CopyToClipboard=w,S(w,"defaultProps",{onCopy:void 0,options:void 0}),Xu}var DE,zq;function Ote(){if(zq)return DE;zq=1;var e=Ate(),t=e.CopyToClipboard;return t.CopyToClipboard=t,DE=t,DE}var Cte=Ote();function Rp(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Rp=function(t){return typeof t}:Rp=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rp(e)}function Rte(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Tte(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 Ite(e,t,r){return t&&Tte(e.prototype,t),e}function jte(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Wq(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 Pte(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Wq(r,!0).forEach(function(n){jte(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wq(r).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function kte(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&&Ux(e,t)}function Bx(e){return Bx=Object.setPrototypeOf?Object.getPrototypeOf:function(r){return r.__proto__||Object.getPrototypeOf(r)},Bx(e)}function Ux(e,t){return Ux=Object.setPrototypeOf||function(n,i){return n.__proto__=i,n},Ux(e,t)}function Nte(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mte(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:Nte(e)}var Jq={};function Dte(e){return e!==null&&Rp(e)==="object"&&typeof e.get=="function"&&typeof e.has=="function"}function qte(e){return e==null}function Fte(e,t,r){return qte(e)?r:Dte(e)?e.has(t)?e.get(t):r:hasOwnProperty.call(e,t)?e[t]:r}function Hq(e,t,r){for(var n=0;n!==t.length;)if(e=Fte(e,t[n++],Jq),e===Jq)return r;return e}function Kq(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=$te(t,r),i=e||Object.keys(Pte({},r,{},t));return i.every(n)}function $te(e,t){return function(r){if(typeof r=="string")return Ir(t[r],e[r]);if(Array.isArray(r))return Ir(Hq(t,r),Hq(e,r));throw new TypeError("Invalid key: expected Array or string: "+r)}}var Lte=(function(e){kte(t,e);function t(){return Rte(this,t),Mte(this,Bx(t).apply(this,arguments))}return Ite(t,[{key:"shouldComponentUpdate",value:function(n){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!Kq(this.updateOnProps,this.props,n,"updateOnProps")||!Kq(this.updateOnStates,this.state,i,"updateOnStates")}}]),t})(Bt.Component),Zu={},qE,Gq;function Bte(){if(Gq)return qE;Gq=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 He.commonjsGlobal=="object"&&He.commonjsGlobal&&He.commonjsGlobal.Object===Object&&He.commonjsGlobal,c=typeof self=="object"&&self&&self.Object===Object&&self,l=u||c||Function("return this")(),f=Object.prototype,h=f.toString,d=Math.max,g=Math.min,y=function(){return l.Date.now()};function v(E,A,R){var I,O,D,P,F,M,K=0,te=!1,J=!1,Q=!0;if(typeof E!="function")throw new TypeError(e);A=w(A)||0,_(R)&&(te=!!R.leading,J="maxWait"in R,D=J?d(w(R.maxWait)||0,A):D,Q="trailing"in R?!!R.trailing:Q);function re(V){var fe=I,me=O;return I=O=void 0,K=V,P=E.apply(me,fe),P}function ne(V){return K=V,F=setTimeout(ie,A),te?re(V):P}function U(V){var fe=V-M,me=V-K,Re=A-fe;return J?g(Re,D-me):Re}function H(V){var fe=V-M,me=V-K;return M===void 0||fe>=A||fe<0||J&&me>=D}function ie(){var V=y();if(H(V))return ue(V);F=setTimeout(ie,U(V))}function ue(V){return F=void 0,Q&&I?re(V):(I=O=void 0,P)}function le(){F!==void 0&&clearTimeout(F),K=0,I=M=O=F=void 0}function ee(){return F===void 0?P:ue(y())}function z(){var V=y(),fe=H(V);if(I=arguments,O=this,M=V,fe){if(F===void 0)return ne(M);if(J)return F=setTimeout(ie,A),re(M)}return F===void 0&&(F=setTimeout(ie,A)),P}return z.cancel=le,z.flush=ee,z}function _(E){var A=typeof E;return!!E&&(A=="object"||A=="function")}function b(E){return!!E&&typeof E=="object"}function S(E){return typeof E=="symbol"||b(E)&&h.call(E)==r}function w(E){if(typeof E=="number")return E;if(S(E))return t;if(_(E)){var A=typeof E.valueOf=="function"?E.valueOf():E;E=_(A)?A+"":A}if(typeof E!="string")return E===0?E:+E;E=E.replace(n,"");var R=s.test(E);return R||a.test(E)?o(E.slice(2),R?2:8):i.test(E)?t:+E}return qE=v,qE}var Yq;function Ute(){if(Yq)return Zu;Yq=1;function e(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(E)}Object.defineProperty(Zu,"__esModule",{value:!0}),Zu.DebounceInput=void 0;var t=i(Bt),r=i(Bte()),n=["element","onChange","value","minLength","debounceTimeout","forceNotifyByEnter","forceNotifyOnBlur","onKeyDown","onBlur","inputRef"];function i(E){return E&&E.__esModule?E:{default:E}}function s(E,A){if(E==null)return{};var R=a(E,A),I,O;if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(E);for(O=0;O<D.length;O++)I=D[O],!(A.indexOf(I)>=0)&&Object.prototype.propertyIsEnumerable.call(E,I)&&(R[I]=E[I])}return R}function a(E,A){if(E==null)return{};var R={},I=Object.keys(E),O,D;for(D=0;D<I.length;D++)O=I[D],!(A.indexOf(O)>=0)&&(R[O]=E[O]);return R}function o(E,A){var R=Object.keys(E);if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols(E);A&&(I=I.filter(function(O){return Object.getOwnPropertyDescriptor(E,O).enumerable})),R.push.apply(R,I)}return R}function u(E){for(var A=1;A<arguments.length;A++){var R=arguments[A]!=null?arguments[A]:{};A%2?o(Object(R),!0).forEach(function(I){S(E,I,R[I])}):Object.getOwnPropertyDescriptors?Object.defineProperties(E,Object.getOwnPropertyDescriptors(R)):o(Object(R)).forEach(function(I){Object.defineProperty(E,I,Object.getOwnPropertyDescriptor(R,I))})}return E}function c(E,A){if(!(E instanceof A))throw new TypeError("Cannot call a class as a function")}function l(E,A){for(var R=0;R<A.length;R++){var I=A[R];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(E,I.key,I)}}function f(E,A,R){return A&&l(E.prototype,A),Object.defineProperty(E,"prototype",{writable:!1}),E}function h(E,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");E.prototype=Object.create(A&&A.prototype,{constructor:{value:E,writable:!0,configurable:!0}}),Object.defineProperty(E,"prototype",{writable:!1}),A&&d(E,A)}function d(E,A){return d=Object.setPrototypeOf||function(I,O){return I.__proto__=O,I},d(E,A)}function g(E){var A=_();return function(){var I=b(E),O;if(A){var D=b(this).constructor;O=Reflect.construct(I,arguments,D)}else O=I.apply(this,arguments);return y(this,O)}}function y(E,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(E)}function v(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function _(){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(E){return b=Object.setPrototypeOf?Object.getPrototypeOf:function(R){return R.__proto__||Object.getPrototypeOf(R)},b(E)}function S(E,A,R){return A in E?Object.defineProperty(E,A,{value:R,enumerable:!0,configurable:!0,writable:!0}):E[A]=R,E}var w=(function(E){h(R,E);var A=g(R);function R(I){var O;c(this,R),O=A.call(this,I),S(v(O),"onChange",function(P){P.persist();var F=O.state.value,M=O.props.minLength;O.setState({value:P.target.value},function(){var K=O.state.value;if(K.length>=M){O.notify(P);return}F.length>K.length&&O.notify(u(u({},P),{},{target:u(u({},P.target),{},{value:""})}))})}),S(v(O),"onKeyDown",function(P){P.key==="Enter"&&O.forceNotify(P);var F=O.props.onKeyDown;F&&(P.persist(),F(P))}),S(v(O),"onBlur",function(P){O.forceNotify(P);var F=O.props.onBlur;F&&(P.persist(),F(P))}),S(v(O),"createNotifier",function(P){if(P<0)O.notify=function(){return null};else if(P===0)O.notify=O.doNotify;else{var F=(0,r.default)(function(M){O.isDebouncing=!1,O.doNotify(M)},P);O.notify=function(M){O.isDebouncing=!0,F(M)},O.flush=function(){return F.flush()},O.cancel=function(){O.isDebouncing=!1,F.cancel()}}}),S(v(O),"doNotify",function(){var P=O.props.onChange;P.apply(void 0,arguments)}),S(v(O),"forceNotify",function(P){var F=O.props.debounceTimeout;if(!(!O.isDebouncing&&F>0)){O.cancel&&O.cancel();var M=O.state.value,K=O.props.minLength;M.length>=K?O.doNotify(P):O.doNotify(u(u({},P),{},{target:u(u({},P.target),{},{value:M})}))}}),O.isDebouncing=!1,O.state={value:typeof I.value>"u"||I.value===null?"":I.value};var D=O.props.debounceTimeout;return O.createNotifier(D),O}return f(R,[{key:"componentDidUpdate",value:function(O){if(!this.isDebouncing){var D=this.props,P=D.value,F=D.debounceTimeout,M=O.debounceTimeout,K=O.value,te=this.state.value;typeof P<"u"&&K!==P&&te!==P&&this.setState({value:P}),F!==M&&this.createNotifier(F)}}},{key:"componentWillUnmount",value:function(){this.flush&&this.flush()}},{key:"render",value:function(){var O=this.props,D=O.element;O.onChange,O.value,O.minLength,O.debounceTimeout;var P=O.forceNotifyByEnter,F=O.forceNotifyOnBlur,M=O.onKeyDown,K=O.onBlur,te=O.inputRef,J=s(O,n),Q=this.state.value,re;P?re={onKeyDown:this.onKeyDown}:M?re={onKeyDown:M}:re={};var ne;F?ne={onBlur:this.onBlur}:K?ne={onBlur:K}:ne={};var U=te?{ref:te}:{};return t.default.createElement(D,u(u(u(u({},J),{},{onChange:this.onChange,value:Q},re),ne),U))}}]),R})(t.default.PureComponent);return Zu.DebounceInput=w,S(w,"defaultProps",{element:"input",type:"text",onKeyDown:void 0,onBlur:void 0,value:void 0,minLength:0,debounceTimeout:100,forceNotifyByEnter:!0,forceNotifyOnBlur:!0,inputRef:void 0}),Zu}var FE,Xq;function Vte(){if(Xq)return FE;Xq=1;var e=Ute(),t=e.DebounceInput;return t.DebounceInput=t,FE=t,FE}var zte=Vte();const Wte=He.getDefaultExportFromCjs(zte);var Jte=gh();const Hte=He.getDefaultExportFromCjs(Jte);var op={exports:{}},$E={},LE,Zq;function Ih(){return Zq||(Zq=1,LE={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}),LE}var Rs={},Qq;function CU(){if(Qq)return Rs;Qq=1;const e=Ih(),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 Rs.words=()=>({type:e.SET,set:r(),not:!1}),Rs.notWords=()=>({type:e.SET,set:r(),not:!0}),Rs.ints=()=>({type:e.SET,set:t(),not:!1}),Rs.notInts=()=>({type:e.SET,set:t(),not:!0}),Rs.whitespace=()=>({type:e.SET,set:n(),not:!1}),Rs.notWhitespace=()=>({type:e.SET,set:n(),not:!0}),Rs.anyChar=()=>({type:e.SET,set:i(),not:!0}),Rs}var eF;function Kte(){return eF||(eF=1,(function(e){const t=Ih(),r=CU(),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,d,g){if(c)return o;var y=u?8:l?parseInt(l,16):f?parseInt(f,16):h?parseInt(h,8):d?n.indexOf(d):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)}})($E)),$E}var Po={},tF;function Gte(){if(tF)return Po;tF=1;const e=Ih();return Po.wordBoundary=()=>({type:e.POSITION,value:"b"}),Po.nonWordBoundary=()=>({type:e.POSITION,value:"B"}),Po.begin=()=>({type:e.POSITION,value:"^"}),Po.end=()=>({type:e.POSITION,value:"$"}),Po}var rF;function Yte(){if(rF)return op.exports;rF=1;const e=Kte(),t=Ih(),r=CU(),n=Gte();return op.exports=i=>{var s=0,a,o,u={type:t.ROOT,stack:[]},c=u,l=u.stack,f=[],h=E=>{e.error(i,`Nothing to repeat at column ${E-1}`)},d=e.strToChars(i);for(a=d.length;s<a;)switch(o=d[s++],o){case"\\":switch(o=d[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;d[s]==="^"?(g=!0,s++):g=!1;var y=e.tokenizeClass(d.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=d[s],o==="?"&&(o=d[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 _=[];c.options.push(_),l=_;break;case"{":var b=/^(\d+)(,(\d+)?)?\}/.exec(d.slice(s)),S,w;b!==null?(l.length===0&&h(s),S=parseInt(b[1],10),w=b[2]?b[3]?parseInt(b[3],10):1/0:S,s+=b[0].length,l.push({type:t.REPETITION,min:S,max:w,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},op.exports.types=t,op.exports}var BE,nF;function Xte(){if(nF)return BE;nF=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 BE=t,BE}var UE,iF;function Zte(){if(iF)return UE;iF=1;const e=Yte(),t=Xte(),r=e.types;return UE=class dc{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:dc.prototype.max!=null?dc.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 dc(i,s),i._randexp=a):(a=i._randexp,a._setDefaults(i)),a.gen()}static sugar(){RegExp.prototype.gen=function(){return dc.randexp(this)}}},UE}var Qte=Zte();const ere=He.getDefaultExportFromCjs(Qte);var VE,sF;function tre(){if(sF)return VE;sF=1;var e=u2(),t=Eu(),r=al(),n=Jr(),i=so(),s=ol(),a=mh(),o=yh(),u="[object Map]",c="[object Set]",l=Object.prototype,f=l.hasOwnProperty;function h(d){if(d==null)return!0;if(i(d)&&(n(d)||typeof d=="string"||typeof d.splice=="function"||s(d)||o(d)||r(d)))return!d.length;var g=t(d);if(g==u||g==c)return!d.size;if(a(d))return!e(d).length;for(var y in d)if(f.call(d,y))return!1;return!0}return VE=h,VE}var rre=tre();const nre=He.getDefaultExportFromCjs(rre);var ire=r8();const sre=He.getDefaultExportFromCjs(ire);var zE,aF;function RU(){if(aF)return zE;aF=1;var e=ds(),t=Jr(),r=Cn(),n="[object String]";function i(s){return typeof s=="string"||!t(s)&&r(s)&&e(s)==n}return zE=i,zE}var are=RU();const ore=He.getDefaultExportFromCjs(are);var WE,oF;function ure(){if(oF)return WE;oF=1;var e=An(),t=function(){return e.Date.now()};return WE=t,WE}var JE,uF;function cre(){if(uF)return JE;uF=1;var e=On(),t=ure(),r=S8(),n="Expected a function",i=Math.max,s=Math.min;function a(o,u,c){var l,f,h,d,g,y,v=0,_=!1,b=!1,S=!0;if(typeof o!="function")throw new TypeError(n);u=r(u)||0,e(c)&&(_=!!c.leading,b="maxWait"in c,h=b?i(r(c.maxWait)||0,u):h,S="trailing"in c?!!c.trailing:S);function w(M){var K=l,te=f;return l=f=void 0,v=M,d=o.apply(te,K),d}function E(M){return v=M,g=setTimeout(I,u),_?w(M):d}function A(M){var K=M-y,te=M-v,J=u-K;return b?s(J,h-te):J}function R(M){var K=M-y,te=M-v;return y===void 0||K>=u||K<0||b&&te>=h}function I(){var M=t();if(R(M))return O(M);g=setTimeout(I,A(M))}function O(M){return g=void 0,S&&l?w(M):(l=f=void 0,d)}function D(){g!==void 0&&clearTimeout(g),v=0,l=y=f=g=void 0}function P(){return g===void 0?d:O(t())}function F(){var M=t(),K=R(M);if(l=arguments,f=this,y=M,K){if(g===void 0)return E(y);if(b)return clearTimeout(g),g=setTimeout(I,u),w(y)}return g===void 0&&(g=setTimeout(I,u)),d}return F.cancel=D,F.flush=P,F}return JE=a,JE}var lre=cre();const fre=He.getDefaultExportFromCjs(lre);var HE,cF;function pre(){if(cF)return HE;cF=1;var e=vh(),t=pl(),r=ul(),n=On(),i=ao();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,d=a;d!=null&&++l<f;){var g=i(o[l]),y=u;if(g==="__proto__"||g==="constructor"||g==="prototype")return a;if(l!=h){var v=d[g];y=c?c(v,g,d):void 0,y===void 0&&(y=n(v)?v:r(o[l+1])?[]:{})}e(d,g,y),d=d[g]}return a}return HE=s,HE}var KE,lF;function TU(){if(lF)return KE;lF=1;var e=pre();function t(r,n,i){return r==null?r:e(r,n,i)}return KE=t,KE}var dre=TU();const hre=He.getDefaultExportFromCjs(dre);var GE={},fF;function mre(){return fF||(fF=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}})(GE)),GE}var YE,pF;function IU(){return pF||(pF=1,YE={}),YE}var XE,dF;function gre(){if(dF)return XE;dF=1;var e=mre(),t=IU(),r=Array.prototype.push;function n(l,f){return f==2?function(h,d){return l.apply(void 0,arguments)}:function(h){return l.apply(void 0,arguments)}}function i(l,f){return f==2?function(h,d){return l(h,d)}: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,d=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!=d&&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 d=Array(h);h--;)d[h]=arguments[h];var g=d[0]=f.apply(void 0,d);return l.apply(void 0,d),g}}}function c(l,f,h,d){var g=typeof f=="function",y=f===Object(f);if(y&&(d=h,h=f,f=void 0),h==null)throw new TypeError;d||(d={});var v={cap:"cap"in d?d.cap:!0,curry:"curry"in d?d.curry:!0,fixed:"fixed"in d?d.fixed:!0,immutable:"immutable"in d?d.immutable:!0,rearg:"rearg"in d?d.rearg:!0},_=g?h:t,b="curry"in d&&d.curry,S="fixed"in d&&d.fixed,w="rearg"in d&&d.rearg,E=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},R=A.ary,I=A.assign,O=A.clone,D=A.curry,P=A.forEach,F=A.isArray,M=A.isError,K=A.isFunction,te=A.isWeakMap,J=A.keys,Q=A.rearg,re=A.toInteger,ne=A.toPath,U=J(e.aryMethod),H={castArray:function(_e){return function(){var we=arguments[0];return F(we)?_e(s(we)):_e.apply(void 0,arguments)}},iteratee:function(_e){return function(){var we=arguments[0],Ae=arguments[1],B=_e(we,Ae),T=B.length;return v.cap&&typeof Ae=="number"?(Ae=Ae>2?Ae-2:1,T&&T<=Ae?B:i(B,Ae)):B}},mixin:function(_e){return function(we){var Ae=this;if(!K(Ae))return _e(Ae,Object(we));var B=[];return P(J(we),function(T){K(we[T])&&B.push([T,Ae.prototype[T]])}),_e(Ae,Object(we)),P(B,function(T){var k=T[1];K(k)?Ae.prototype[T[0]]=k:delete Ae.prototype[T[0]]}),Ae}},nthArg:function(_e){return function(we){var Ae=we<0?1:re(we)+1;return D(_e(we),Ae)}},rearg:function(_e){return function(we,Ae){var B=Ae?Ae.length:0;return D(_e(we,Ae),B)}},runInContext:function(_e){return function(we){return c(l,_e(we),d)}}};function ie(_e,we){if(v.cap){var Ae=e.iterateeRearg[_e];if(Ae)return Re(we,Ae);var B=!g&&e.iterateeAry[_e];if(B)return me(we,B)}return we}function ue(_e,we,Ae){return b||v.curry&&Ae>1?D(we,Ae):we}function le(_e,we,Ae){if(v.fixed&&(S||!e.skipFixed[_e])){var B=e.methodSpread[_e],T=B&&B.start;return T===void 0?R(we,Ae):o(we,T)}return we}function ee(_e,we,Ae){return v.rearg&&Ae>1&&(w||!e.skipRearg[_e])?Q(we,e.methodRearg[_e]||e.aryRearg[Ae]):we}function z(_e,we){we=ne(we);for(var Ae=-1,B=we.length,T=B-1,k=O(Object(_e)),W=k;W!=null&&++Ae<B;){var se=we[Ae],ce=W[se];ce!=null&&!(K(ce)||M(ce)||te(ce))&&(W[se]=O(Ae==T?ce:Object(ce))),W=W[se]}return k}function V(_e){return Te.runInContext.convert(_e)(void 0)}function fe(_e,we){var Ae=e.aliasToReal[_e]||_e,B=e.remap[Ae]||Ae,T=d;return function(k){var W=g?E:A,se=g?E[B]:we,ce=I(I({},T),k);return c(W,Ae,se,ce)}}function me(_e,we){return Ne(_e,function(Ae){return typeof Ae=="function"?i(Ae,we):Ae})}function Re(_e,we){return Ne(_e,function(Ae){var B=we.length;return n(Q(i(Ae,B),we),B)})}function Ne(_e,we){return function(){var Ae=arguments.length;if(!Ae)return _e();for(var B=Array(Ae);Ae--;)B[Ae]=arguments[Ae];var T=v.rearg?0:Ae-1;return B[T]=we(B[T]),_e.apply(void 0,B)}}function he(_e,we,Ae){var B,T=e.aliasToReal[_e]||_e,k=we,W=H[T];return W?k=W(we):v.immutable&&(e.mutate.array[T]?k=u(we,s):e.mutate.object[T]?k=u(we,a(we)):e.mutate.set[T]&&(k=u(we,z))),P(U,function(se){return P(e.aryMethod[se],function(ce){if(T==ce){var ye=e.methodSpread[T],Me=ye&&ye.afterRearg;return B=Me?le(T,ee(T,k,se),se):ee(T,le(T,k,se),se),B=ie(T,B),B=ue(T,B,se),!1}}),!B}),B||(B=k),B==we&&(B=b?D(B,1):function(){return we.apply(this,arguments)}),B.convert=fe(T,we),B.placeholder=we.placeholder=Ae,B}if(!y)return he(f,h,_);var Te=h,Ue=[];return P(U,function(_e){P(e.aryMethod[_e],function(we){var Ae=Te[e.remap[we]||we];Ae&&Ue.push([we,he(we,Ae,Te)])})}),P(J(Te),function(_e){var we=Te[_e];if(typeof we=="function"){for(var Ae=Ue.length;Ae--;)if(Ue[Ae][0]==_e)return;we.convert=fe(_e,we),Ue.push([_e,we])}}),P(Ue,function(_e){Te[_e[0]]=_e[1]}),Te.convert=V,Te.placeholder=Te,P(J(Te),function(_e){P(e.realToAlias[_e]||[],function(we){Te[we]=Te[_e]})}),Te}return XE=c,XE}var ZE,hF;function jU(){if(hF)return ZE;hF=1;var e=m8(),t=e&&new e;return ZE=t,ZE}var QE,mF;function PU(){if(mF)return QE;mF=1;var e=ll(),t=jU(),r=t?function(n,i){return t.set(n,i),n}:e;return QE=r,QE}var eS,gF;function jh(){if(gF)return eS;gF=1;var e=hh(),t=On();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 eS=r,eS}var tS,yF;function yre(){if(yF)return tS;yF=1;var e=jh(),t=An(),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 tS=n,tS}var rS,vF;function kU(){if(vF)return rS;vF=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),d=!s;++c<l;)h[c]=n[c];for(;++a<u;)(d||a<o)&&(h[i[a]]=r[a]);for(;f--;)h[c++]=r[a++];return h}return rS=t,rS}var nS,bF;function NU(){if(bF)return nS;bF=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),d=Array(h+f),g=!s;++a<h;)d[a]=r[a];for(var y=a;++l<f;)d[y+l]=n[l];for(;++u<c;)(g||a<o)&&(d[y+i[u]]=r[a++]);return d}return nS=t,nS}var iS,_F;function vre(){if(_F)return iS;_F=1;function e(t,r){for(var n=t.length,i=0;n--;)t[n]===r&&++i;return i}return iS=e,iS}var sS,EF;function uC(){if(EF)return sS;EF=1;function e(){}return sS=e,sS}var aS,SF;function cC(){if(SF)return aS;SF=1;var e=hh(),t=uC(),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,aS=n,aS}var oS,wF;function bre(){if(wF)return oS;wF=1;function e(){}return oS=e,oS}var uS,xF;function MU(){if(xF)return uS;xF=1;var e=jU(),t=bre(),r=e?function(n){return e.get(n)}:t;return uS=r,uS}var cS,AF;function _re(){if(AF)return cS;AF=1;var e={};return cS=e,cS}var lS,OF;function Ere(){if(OF)return lS;OF=1;var e=_re(),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 lS=n,lS}var fS,CF;function DU(){if(CF)return fS;CF=1;var e=hh(),t=uC();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,fS=r,fS}var pS,RF;function Sre(){if(RF)return pS;RF=1;var e=cC(),t=DU(),r=sl();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 pS=n,pS}var dS,TF;function wre(){if(TF)return dS;TF=1;var e=cC(),t=DU(),r=uC(),n=Jr(),i=Cn(),s=Sre(),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,dS=u,dS}var hS,IF;function xre(){if(IF)return hS;IF=1;var e=cC(),t=MU(),r=Ere(),n=wre();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 hS=i,hS}var mS,jF;function qU(){if(jF)return mS;jF=1;var e=PU(),t=n8(),r=t(e);return mS=r,mS}var gS,PF;function Are(){if(PF)return gS;PF=1;var e=/\{\n\/\* \[wrapped with (.+)\] \*/,t=/,? & /;function r(n){var i=n.match(e);return i?i[1].split(t):[]}return gS=r,gS}var yS,kF;function Ore(){if(kF)return yS;kF=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,`{
|
|
90
|
+
/* [wrapped with `+n+`] */
|
|
91
|
+
`)}return yS=t,yS}var vS,NF;function Cre(){if(NF)return vS;NF=1;function e(t){return t!==t}return vS=e,vS}var bS,MF;function Rre(){if(MF)return bS;MF=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 bS=e,bS}var _S,DF;function Tre(){if(DF)return _S;DF=1;var e=E8(),t=Cre(),r=Rre();function n(i,s,a){return s===s?r(i,s,a):e(i,t,a)}return _S=n,_S}var ES,qF;function Ire(){if(qF)return ES;qF=1;var e=Tre();function t(r,n){var i=r==null?0:r.length;return!!i&&e(r,n,0)>-1}return ES=t,ES}var SS,FF;function jre(){if(FF)return SS;FF=1;var e=d2(),t=Ire(),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(d,g){return e(f,function(y){var v="_."+y[0];g&y[1]&&!t(d,v)&&d.push(v)}),d.sort()}return SS=h,SS}var wS,$F;function FU(){if($F)return wS;$F=1;var e=Are(),t=Ore(),r=i2(),n=jre();function i(s,a,o){var u=a+"";return r(s,t(u,n(e(u),o)))}return wS=i,wS}var xS,LF;function $U(){if(LF)return xS;LF=1;var e=xre(),t=qU(),r=FU(),n=4,i=8,s=32,a=64;function o(u,c,l,f,h,d,g,y,v,_){var b=c&i,S=b?g:void 0,w=b?void 0:g,E=b?d:void 0,A=b?void 0:d;c|=b?s:a,c&=~(b?a:s),c&n||(c&=-4);var R=[u,c,h,E,S,A,w,y,v,_],I=l.apply(void 0,R);return e(u)&&t(I,R),I.placeholder=f,r(I,u,c)}return xS=o,xS}var AS,BF;function LU(){if(BF)return AS;BF=1;function e(t){var r=t;return r.placeholder}return AS=e,AS}var OS,UF;function Pre(){if(UF)return OS;UF=1;var e=sl(),t=ul(),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 OS=n,OS}var CS,VF;function lC(){if(VF)return CS;VF=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 CS=t,CS}var RS,zF;function BU(){if(zF)return RS;zF=1;var e=kU(),t=NU(),r=vre(),n=jh(),i=$U(),s=LU(),a=Pre(),o=lC(),u=An(),c=1,l=2,f=8,h=16,d=128,g=512;function y(v,_,b,S,w,E,A,R,I,O){var D=_&d,P=_&c,F=_&l,M=_&(f|h),K=_&g,te=F?void 0:n(v);function J(){for(var Q=arguments.length,re=Array(Q),ne=Q;ne--;)re[ne]=arguments[ne];if(M)var U=s(J),H=r(re,U);if(S&&(re=e(re,S,w,M)),E&&(re=t(re,E,A,M)),Q-=H,M&&Q<O){var ie=o(re,U);return i(v,_,y,J.placeholder,b,re,ie,R,I,O-Q)}var ue=P?b:this,le=F?ue[v]:v;return Q=re.length,R?re=a(re,R):K&&Q>1&&re.reverse(),D&&I<Q&&(re.length=I),this&&this!==u&&this instanceof J&&(le=te||n(le)),le.apply(ue,re)}return J}return RS=y,RS}var TS,WF;function kre(){if(WF)return TS;WF=1;var e=n2(),t=jh(),r=BU(),n=$U(),i=LU(),s=lC(),a=An();function o(u,c,l){var f=t(u);function h(){for(var d=arguments.length,g=Array(d),y=d,v=i(h);y--;)g[y]=arguments[y];var _=d<3&&g[0]!==v&&g[d-1]!==v?[]:s(g,v);if(d-=_.length,d<l)return n(u,c,r,h.placeholder,void 0,g,_,void 0,void 0,l-d);var b=this&&this!==a&&this instanceof h?f:u;return e(b,this,g)}return h}return TS=o,TS}var IS,JF;function Nre(){if(JF)return IS;JF=1;var e=n2(),t=jh(),r=An(),n=1;function i(s,a,o,u){var c=a&n,l=t(s);function f(){for(var h=-1,d=arguments.length,g=-1,y=u.length,v=Array(y+d),_=this&&this!==r&&this instanceof f?l:s;++g<y;)v[g]=u[g];for(;d--;)v[g++]=arguments[++h];return e(_,c?o:this,v)}return f}return IS=i,IS}var jS,HF;function Mre(){if(HF)return jS;HF=1;var e=kU(),t=NU(),r=lC(),n="__lodash_placeholder__",i=1,s=2,a=4,o=8,u=128,c=256,l=Math.min;function f(h,d){var g=h[1],y=d[1],v=g|y,_=v<(i|s|u),b=y==u&&g==o||y==u&&g==c&&h[7].length<=d[8]||y==(u|c)&&d[7].length<=d[8]&&g==o;if(!(_||b))return h;y&i&&(h[2]=d[2],v|=g&i?0:a);var S=d[3];if(S){var w=h[3];h[3]=w?e(w,S,d[4]):S,h[4]=w?r(h[3],n):d[4]}return S=d[5],S&&(w=h[5],h[5]=w?t(w,S,d[6]):S,h[6]=w?r(h[5],n):d[6]),S=d[7],S&&(h[7]=S),y&u&&(h[8]=h[8]==null?d[8]:l(h[8],d[8])),h[9]==null&&(h[9]=d[9]),h[0]=d[0],h[1]=v,h}return jS=f,jS}var PS,KF;function fC(){if(KF)return PS;KF=1;var e=PU(),t=yre(),r=kre(),n=BU(),i=Nre(),s=MU(),a=Mre(),o=qU(),u=FU(),c=p2(),l="Expected a function",f=1,h=2,d=8,g=16,y=32,v=64,_=Math.max;function b(S,w,E,A,R,I,O,D){var P=w&h;if(!P&&typeof S!="function")throw new TypeError(l);var F=A?A.length:0;if(F||(w&=-97,A=R=void 0),O=O===void 0?O:_(c(O),0),D=D===void 0?D:c(D),F-=R?R.length:0,w&v){var M=A,K=R;A=R=void 0}var te=P?void 0:s(S),J=[S,w,E,A,R,M,K,I,O,D];if(te&&a(J,te),S=J[0],w=J[1],E=J[2],A=J[3],R=J[4],D=J[9]=J[9]===void 0?P?0:S.length:_(J[9]-F,0),!D&&w&(d|g)&&(w&=-25),!w||w==f)var Q=t(S,w,E);else w==d||w==g?Q=r(S,w,D):(w==y||w==(f|y))&&!R.length?Q=i(S,w,E,A):Q=n.apply(void 0,J);var re=te?e:o;return u(re(Q,J),S,w)}return PS=b,PS}var kS,GF;function Dre(){if(GF)return kS;GF=1;var e=fC(),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 kS=r,kS}var NS,YF;function qre(){if(YF)return NS;YF=1;var e=h2(),t=4;function r(n){return e(n,t)}return NS=r,NS}var MS,XF;function Fre(){if(XF)return MS;XF=1;var e=fC(),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={},MS=r,MS}var DS,ZF;function $re(){if(ZF)return DS;ZF=1;var e=ds(),t=Cn(),r=gh(),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 DS=s,DS}var qS,QF;function Lre(){if(QF)return qS;QF=1;var e=Eu(),t=Cn(),r="[object WeakMap]";function n(i){return t(i)&&e(i)==r}return qS=n,qS}var FS,e$;function Bre(){if(e$)return FS;e$=1;var e=h2(),t=dl(),r=1;function n(i){return t(typeof i=="function"?i:e(i,r))}return FS=n,FS}var $S,t$;function Ure(){if(t$)return $S;t$=1;var e=fC(),t=T8(),r=256,n=t(function(i,s){return e(i,r,void 0,void 0,void 0,s)});return $S=n,$S}var LS,r$;function Vre(){if(r$)return LS;r$=1;var e=s2(),t=sl(),r=Jr(),n=fl(),i=v8(),s=ao(),a=$s();function o(u){return r(u)?e(u,s):n(u)?[u]:t(i(a(u)))}return LS=o,LS}var BS,n$;function zre(){return n$||(n$=1,BS={ary:Dre(),assign:O8(),clone:qre(),curry:Fre(),forEach:d2(),isArray:Jr(),isError:$re(),isFunction:il(),isWeakMap:Lre(),iteratee:Bre(),keys:u2(),rearg:Ure(),toInteger:p2(),toPath:Vre()}),BS}var US,i$;function Wre(){if(i$)return US;i$=1;var e=gre(),t=zre();function r(n,i,s){return e(t,n,i,s)}return US=r,US}var VS,s$;function UU(){if(s$)return VS;s$=1;var e=Wre(),t=e("set",TU());return t.placeholder=IU(),VS=t,VS}var zS,a$;function Jre(){return a$||(a$=1,zS=UU()),zS}var Hre=Jre();const Kre=He.getDefaultExportFromCjs(Hre);/*!
|
|
92
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
93
|
+
* (c) 2017-2022 Joachim Wester
|
|
94
|
+
* MIT licensed
|
|
95
|
+
*/var Gre=(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)}})(),Yre=Object.prototype.hasOwnProperty;function Vx(e,t){return Yre.call(e,t)}function zx(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)Vx(e,i)&&n.push(i);return n}function Gn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Wx(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 $a(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function VU(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Jx(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Jx(e[t]))return!0}else if(typeof e=="object"){for(var n=zx(e),i=n.length,s=0;s<i;s++)if(Jx(e[n[s]]))return!0}}return!1}function o$(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(`
|
|
96
|
+
`)}var zU=(function(e){Gre(t,e);function t(r,n,i,s,a){var o=this.constructor,u=e.call(this,o$(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=o$(r,{name:n,index:i,operation:s,tree:a}),u}return t})(Error),br=zU,Xre=Gn,Vo={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=Fc(r,this.path);n&&(n=Gn(n));var i=Ha(r,{op:"remove",path:this.from}).removed;return Ha(r,{op:"add",path:this.path,value:i}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=Fc(r,this.from);return Ha(r,{op:"add",path:this.path,value:Gn(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:$c(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},Zre={add:function(e,t,r){return Wx(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:Vo.move,copy:Vo.copy,test:Vo.test,_get:Vo._get};function Fc(e,t){if(t=="")return e;var r={op:"_get",path:t};return Ha(e,r),r.value}function Ha(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):Zp(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=Fc(e,t.from),t.op==="move"&&(a.removed=e),a;if(t.op==="test"){if(a.test=$c(e,t.value),a.test===!1)throw new br("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 br("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",s,t,e);return a}}else{n||(e=Gn(e));var o=t.path||"",u=o.split("/"),c=e,l=1,f=u.length,h=void 0,d=void 0,g=void 0;for(typeof r=="function"?g=r:g=Zp;;){if(d=u[l],d&&d.indexOf("~")!=-1&&(d=VU(d)),i&&(d=="__proto__"||d=="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[d]===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(d==="-")d=c.length;else{if(r&&!Wx(d))throw new br("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);Wx(d)&&(d=~~d)}if(l>=f){if(r&&t.op==="add"&&d>c.length)throw new br("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=Zre[t.op].call(t,c,d,e);if(a.test===!1)throw new br("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}}else if(l>=f){var a=Vo[t.op].call(t,c,d,e);if(a.test===!1)throw new br("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return a}if(c=c[d],r&&l<f&&(!c||typeof c!="object"))throw new br("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",s,t,e)}}}function sa(e,t,r,n,i){if(n===void 0&&(n=!0),i===void 0&&(i=!0),r&&!Array.isArray(t))throw new br("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Gn(e));for(var s=new Array(t.length),a=0,o=t.length;a<o;a++)s[a]=Ha(e,t[a],r,!0,i,a),e=s[a].newDocument;return s.newDocument=e,s}function Qre(e,t,r){var n=Ha(e,t);if(n.test===!1)throw new br("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function Zp(e,t,r,n){if(typeof e!="object"||e===null||Array.isArray(e))throw new br("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(Vo[e.op]){if(typeof e.path!="string")throw new br("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new br('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 br("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 br("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")&&Jx(e.value))throw new br("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 br("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 br("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=WU([a],r);if(o&&o.name==="OPERATION_PATH_UNRESOLVABLE")throw new br("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}}else throw new br("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r)}function WU(e,t,r){try{if(!Array.isArray(e))throw new br("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)sa(Gn(t),Gn(e),r||!0);else{r=r||Zp;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(i){if(i instanceof br)return i;throw i}}function $c(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(!$c(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],!$c(e[a],t[a]))return!1;return!0}return e!==e&&t!==t}const ene=Object.freeze(Object.defineProperty({__proto__:null,JsonPatchError:br,_areEquals:$c,applyOperation:Ha,applyPatch:sa,applyReducer:Qre,deepClone:Xre,getValueByPointer:Fc,validate:WU,validator:Zp},Symbol.toStringTag,{value:"Module"}));/*!
|
|
97
|
+
* https://github.com/Starcounter-Jack/JSON-Patch
|
|
98
|
+
* (c) 2017-2021 Joachim Wester
|
|
99
|
+
* MIT license
|
|
100
|
+
*/var pC=new WeakMap,tne=(function(){function e(t){this.observers=new Map,this.obj=t}return e})(),rne=(function(){function e(t,r){this.callback=t,this.observer=r}return e})();function nne(e){return pC.get(e)}function ine(e,t){return e.observers.get(t)}function sne(e,t){e.observers.delete(t.callback)}function ane(e,t){t.unobserve()}function one(e,t){var r=[],n,i=nne(e);if(!i)i=new tne(e),pC.set(e,i);else{var s=ine(i,t);n=s&&s.observer}if(n)return n;if(n={},i.value=Gn(e),t){n.callback=t,n.next=null;var a=function(){Hx(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(){Hx(n),clearTimeout(n.next),sne(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 rne(t,n)),n}function Hx(e,t){t===void 0&&(t=!1);var r=pC.get(e.object);dC(r.value,e.object,e.patches,"",t),e.patches.length&&sa(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function dC(e,t,r,n,i){if(t!==e){typeof t.toJSON=="function"&&(t=t.toJSON());for(var s=zx(t),a=zx(e),o=!1,u=a.length-1;u>=0;u--){var c=a[u],l=e[c];if(Vx(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)?dC(l,f,r,n+"/"+$a(c),i):l!==f&&(i&&r.push({op:"test",path:n+"/"+$a(c),value:Gn(l)}),r.push({op:"replace",path:n+"/"+$a(c),value:Gn(f)}))}else Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:n+"/"+$a(c),value:Gn(l)}),r.push({op:"remove",path:n+"/"+$a(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];!Vx(e,c)&&t[c]!==void 0&&r.push({op:"add",path:n+"/"+$a(c),value:Gn(t[c])})}}}function une(e,t,r){r===void 0&&(r=!1);var n=[];return dC(e,t,n,"",r),n}const cne=Object.freeze(Object.defineProperty({__proto__:null,compare:une,generate:Hx,observe:one,unobserve:ane},Symbol.toStringTag,{value:"Module"}));Object.assign({},ene,cne,{JsonPatchError:zU,deepClone:Gn,escapePathComponent:$a,unescapePathComponent:VU});var WS,u$;function lne(){if(u$)return WS;u$=1;var e=function(b){return t(b)&&!r(b)};function t(_){return!!_&&typeof _=="object"}function r(_){var b=Object.prototype.toString.call(_);return b==="[object RegExp]"||b==="[object Date]"||s(_)}var n=typeof Symbol=="function"&&Symbol.for,i=n?Symbol.for("react.element"):60103;function s(_){return _.$$typeof===i}function a(_){return Array.isArray(_)?[]:{}}function o(_,b){return b.clone!==!1&&b.isMergeableObject(_)?y(a(_),_,b):_}function u(_,b,S){return _.concat(b).map(function(w){return o(w,S)})}function c(_,b){if(!b.customMerge)return y;var S=b.customMerge(_);return typeof S=="function"?S:y}function l(_){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(_).filter(function(b){return Object.propertyIsEnumerable.call(_,b)}):[]}function f(_){return Object.keys(_).concat(l(_))}function h(_,b){try{return b in _}catch{return!1}}function d(_,b){return h(_,b)&&!(Object.hasOwnProperty.call(_,b)&&Object.propertyIsEnumerable.call(_,b))}function g(_,b,S){var w={};return S.isMergeableObject(_)&&f(_).forEach(function(E){w[E]=o(_[E],S)}),f(b).forEach(function(E){d(_,E)||(h(_,E)&&S.isMergeableObject(b[E])?w[E]=c(E,S)(_[E],b[E],S):w[E]=o(b[E],S))}),w}function y(_,b,S){S=S||{},S.arrayMerge=S.arrayMerge||u,S.isMergeableObject=S.isMergeableObject||e,S.cloneUnlessOtherwiseSpecified=o;var w=Array.isArray(b),E=Array.isArray(_),A=w===E;return A?w?S.arrayMerge(_,b,S):g(_,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(w,E){return y(w,E,S)},{})};var v=y;return WS=v,WS}var fne=lne();const c$=He.getDefaultExportFromCjs(fne),Jt={add:dne,replace:Tp,remove:hne,merge:mne,mergeDeep:gne,context:yne,getIn:Ene,applyPatch:pne,parentPathMatch:_ne,flatten:kl,fullyNormalizeArray:Sne,normalizeArray:HU,isPromise:wne,forEachNew:vne,forEachNewPrimitive:bne,isJsonPatch:YU,isContextPatch:One,isPatch:Ph,isMutation:XU,isAdditiveMutation:Qp,isGenerator:Ane,isFunction:GU,isObject:Ka,isError:xne};function pne(e,t,r){if(r=r||{},t={...t,path:t.path&&l$(t.path)},t.op==="merge"){const n=JS(e,t.path);Object.assign(n,t.value),sa(e,[Tp(t.path,n)])}else if(t.op==="mergeDeep"){const n=JS(e,t.path),i=c$(n,t.value,{customMerge:s=>{if(s==="enum")return(a,o)=>Array.isArray(a)&&Array.isArray(o)?[...new Set([...a,...o])]:c$(a,o)}});e=sa(e,[Tp(t.path,i)]).newDocument}else if(t.op==="add"&&t.path===""&&Ka(t.value)){const n=Object.keys(t.value).reduce((i,s)=>(i.push({op:"add",path:`/${l$(s)}`,value:t.value[s]}),i),[]);sa(e,n)}else if(t.op==="replace"&&t.path===""){let{value:n}=t;r.allowMetaPatches&&t.meta&&Qp(t)&&(Array.isArray(t.value)||Ka(t.value))&&(n={...n,...t.meta}),e=n}else if(sa(e,[t]),r.allowMetaPatches&&t.meta&&Qp(t)&&(Array.isArray(t.value)||Ka(t.value))){const i={...JS(e,t.path),...t.meta};sa(e,[Tp(t.path,i)])}return e}function l$(e){return Array.isArray(e)?e.length<1?"":`/${e.map(t=>(t+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function dne(e,t){return{op:"add",path:e,value:t}}function Tp(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function hne(e){return{op:"remove",path:e}}function mne(e,t){return{type:"mutation",op:"merge",path:e,value:t}}function gne(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}}function yne(e,t){return{type:"context",path:e,value:t}}function vne(e,t){try{return JU(e,Gx,t)}catch(r){return r}}function bne(e,t){try{return JU(e,Kx,t)}catch(r){return r}}function JU(e,t,r){const n=e.filter(Qp).map(a=>t(a.value,r,a.path))||[],i=kl(n);return KU(i)}function Kx(e,t,r){return r=r||[],Array.isArray(e)?e.map((n,i)=>Kx(n,t,r.concat(i))):Ka(e)?Object.keys(e).map(n=>Kx(e[n],t,r.concat(n))):t(e,r[r.length-1],r)}function Gx(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)=>Gx(s,t,r.concat(a)));i&&(n=n.concat(i))}else if(Ka(e)){const i=Object.keys(e).map(s=>Gx(e[s],t,r.concat(s)));i&&(n=n.concat(i))}return n=kl(n),n}function _ne(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 Ene(e,t){return t.reduce((r,n)=>typeof n<"u"&&r?r[n]:r,e)}function Sne(e){return KU(kl(HU(e)))}function HU(e){return Array.isArray(e)?e:[e]}function kl(e){return[].concat(...e.map(t=>Array.isArray(t)?kl(t):t))}function KU(e){return e.filter(t=>typeof t<"u")}function Ka(e){return e&&typeof e=="object"}function wne(e){return Ka(e)&&GU(e.then)}function GU(e){return e&&typeof e=="function"}function xne(e){return e instanceof Error}function YU(e){if(Ph(e)){const{op:t}=e;return t==="add"||t==="remove"||t==="replace"}return!1}function Ane(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function XU(e){return YU(e)||Ph(e)&&e.type==="mutation"}function Qp(e){return XU(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function One(e){return Ph(e)&&e.type==="context"}function Ph(e){return e&&typeof e=="object"}function JS(e,t){try{return Fc(e,t)}catch(r){return console.error(r),{}}}var f$={},p$={},d$={},HS,h$;function hC(){if(h$)return HS;h$=1;var e=mU(),t=gU(),r=e("keys");return HS=function(n){return r[n]||(r[n]=t(n))},HS}var KS,m$;function Cne(){if(m$)return KS;m$=1;var e=wi();return KS=!e(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}),KS}var GS,g$;function mC(){if(g$)return GS;g$=1;var e=Vi(),t=ei(),r=iC(),n=hC(),i=Cne(),s=n("IE_PROTO"),a=Object,o=a.prototype;return GS=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},GS}var YS,y$;function Rne(){if(y$)return YS;y$=1;var e=Fn(),t=jl();return YS=function(r,n,i){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[i]))}catch{}},YS}var XS,v$;function Tne(){if(v$)return XS;v$=1;var e=Ui();return XS=function(t){return e(t)||t===null},XS}var ZS,b$;function Ine(){if(b$)return ZS;b$=1;var e=Tne(),t=String,r=TypeError;return ZS=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")},ZS}var QS,_$;function kh(){if(_$)return QS;_$=1;var e=Rne(),t=Ui(),r=Th(),n=Ine();return QS=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),QS}var e1={},E$;function jne(){if(E$)return e1;E$=1;var e=xU(),t=oC(),r=t.concat("length","prototype");return e1.f=Object.getOwnPropertyNames||function(i){return e(i,r)},e1}var t1,S$;function Pne(){if(S$)return t1;S$=1;var e=Tl(),t=Fn(),r=jne(),n=OU(),i=po(),s=t([].concat);return t1=e("Reflect","ownKeys")||function(o){var u=r.f(i(o)),c=n.f;return c?s(u,c(o)):u},t1}var r1,w$;function ZU(){if(w$)return r1;w$=1;var e=Vi(),t=Pne(),r=_U(),n=Ru();return r1=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))}},r1}var n1={},x$;function kne(){if(x$)return n1;x$=1;var e=ms(),t=SU(),r=Ru(),n=po(),i=Cl(),s=AU();return n1.f=e&&!t?Object.defineProperties:function(o,u){n(o);for(var c=i(u),l=s(u),f=l.length,h=0,d;f>h;)r.f(o,d=l[h++],c[d]);return o},n1}var i1,A$;function Nne(){if(A$)return i1;A$=1;var e=Tl();return i1=e("document","documentElement"),i1}var s1,O$;function gC(){if(O$)return s1;O$=1;var e=po(),t=kne(),r=oC(),n=aC(),i=Nne(),s=vU(),a=hC(),o=">",u="<",c="prototype",l="script",f=a("IE_PROTO"),h=function(){},d=function(b){return u+l+o+b+u+"/"+l+o},g=function(b){b.write(d("")),b.close();var S=b.parentWindow.Object;return b=null,S},y=function(){var b=s("iframe"),S="java"+l+":",w;return b.style.display="none",i.appendChild(b),b.src=String(S),w=b.contentWindow.document,w.open(),w.write(d("document.F=Object")),w.close(),w.F},v,_=function(){try{v=new ActiveXObject("htmlfile")}catch{}_=typeof document<"u"?document.domain&&v?g(v):y():g(v);for(var b=r.length;b--;)delete _[c][r[b]];return _()};return n[f]=!0,s1=Object.create||function(S,w){var E;return S!==null?(h[c]=e(S),E=new h,h[c]=null,E[f]=S):E=_(),w===void 0?E:t.f(E,w)},s1}var a1,C$;function QU(){if(C$)return a1;C$=1;var e=Ui(),t=Bs();return a1=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)},a1}var o1,R$;function Mne(){if(R$)return o1;R$=1;var e=Fn(),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 o1=function(a,o){if(s&&typeof a=="string"&&!t.prepareStackTrace)for(;o--;)a=r(a,i,"");return a},o1}var u1,T$;function Dne(){if(T$)return u1;T$=1;var e=wi(),t=Ol();return u1=!e(function(){var r=new Error("a");return"stack"in r?(Object.defineProperty(r,"stack",t(1,7)),r.stack!==7):!0}),u1}var c1,I$;function e5(){if(I$)return c1;I$=1;var e=Bs(),t=Mne(),r=Dne(),n=Error.captureStackTrace;return c1=function(i,s,a,o){r&&(n?n(i,s):e(i,"stack",t(a,o)))},c1}var l1,j$;function Iu(){return j$||(j$=1,l1={}),l1}var f1,P$;function qne(){if(P$)return f1;P$=1;var e=Ls(),t=Iu(),r=e("iterator"),n=Array.prototype;return f1=function(i){return i!==void 0&&(t.Array===i||n[r]===i)},f1}var p1,k$;function yC(){if(k$)return p1;k$=1;var e=Ls(),t=e("toStringTag"),r={};return r[t]="z",p1=String(r)==="[object z]",p1}var d1,N$;function vC(){if(N$)return d1;N$=1;var e=yC(),t=ei(),r=eC(),n=Ls(),i=n("toStringTag"),s=Object,a=r((function(){return arguments})())==="Arguments",o=function(u,c){try{return u[c]}catch{}};return d1=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},d1}var h1,M$;function t5(){if(M$)return h1;M$=1;var e=vC(),t=nC(),r=tC(),n=Iu(),i=Ls(),s=i("iterator");return h1=function(a){if(!r(a))return t(a,s)||t(a,"@@iterator")||n[e(a)]},h1}var m1,D$;function Fne(){if(D$)return m1;D$=1;var e=_a(),t=jl(),r=po(),n=rC(),i=t5(),s=TypeError;return m1=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")},m1}var g1,q$;function $ne(){if(q$)return g1;q$=1;var e=_a(),t=po(),r=nC();return g1=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},g1}var y1,F$;function Lne(){if(F$)return y1;F$=1;var e=EU(),t=_a(),r=po(),n=rC(),i=qne(),s=wU(),a=Il(),o=Fne(),u=t5(),c=$ne(),l=TypeError,f=function(d,g){this.stopped=d,this.result=g},h=f.prototype;return y1=function(d,g,y){var v=y&&y.that,_=!!(y&&y.AS_ENTRIES),b=!!(y&&y.IS_RECORD),S=!!(y&&y.IS_ITERATOR),w=!!(y&&y.INTERRUPTED),E=e(g,v),A,R,I,O,D,P,F,M=function(te){return A&&c(A,"normal"),new f(!0,te)},K=function(te){return _?(r(te),w?E(te[0],te[1],M):E(te[0],te[1])):w?E(te,M):E(te)};if(b)A=d.iterator;else if(S)A=d;else{if(R=u(d),!R)throw new l(n(d)+" is not iterable");if(i(R)){for(I=0,O=s(d);O>I;I++)if(D=K(d[I]),D&&a(h,D))return D;return new f(!1)}A=o(d,R)}for(P=b?d.next:A.next;!(F=t(P,A)).done;){try{D=K(F.value)}catch(te){c(A,"throw",te)}if(typeof D=="object"&&D&&a(h,D))return D}return new f(!1)},y1}var v1,$$;function bC(){if($$)return v1;$$=1;var e=vC(),t=String;return v1=function(r){if(e(r)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return t(r)},v1}var b1,L$;function r5(){if(L$)return b1;L$=1;var e=bC();return b1=function(t,r){return t===void 0?arguments.length<2?"":r:e(t)},b1}var B$;function Bne(){if(B$)return d$;B$=1;var e=Tu(),t=Il(),r=mC(),n=kh(),i=ZU(),s=gC(),a=Bs(),o=Ol(),u=QU(),c=e5(),l=Lne(),f=r5(),h=Ls(),d=h("toStringTag"),g=Error,y=[].push,v=function(S,w){var E=t(_,this),A;n?A=n(new g,E?r(this):_):(A=E?this:s(_),a(A,d,"Error")),w!==void 0&&a(A,"message",f(w)),c(A,v,A.stack,1),arguments.length>2&&u(A,arguments[2]);var R=[];return l(S,y,{that:R}),a(A,"errors",R),A};n?n(v,g):i(v,g,{name:!0});var _=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}),d$}var U$;function n5(){return U$||(U$=1,Bne()),p$}var V$;function i5(){return V$||(V$=1,n5()),f$}var z$={},_1,W$;function Une(){if(W$)return _1;W$=1;var e=Ru().f;return _1=function(t,r,n){n in t||e(t,n,{configurable:!0,get:function(){return r[n]},set:function(i){r[n]=i}})},_1}var E1,J$;function Vne(){if(J$)return E1;J$=1;var e=ei(),t=Ui(),r=kh();return E1=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},E1}var S1,H$;function s5(){if(H$)return S1;H$=1;var e=Tl(),t=Vi(),r=Bs(),n=Il(),i=kh(),s=ZU(),a=Une(),o=Vne(),u=r5(),c=QU(),l=e5(),f=ms(),h=Pl();return S1=function(d,g,y,v){var _="stackTraceLimit",b=v?2:1,S=d.split("."),w=S[S.length-1],E=e.apply(null,S);if(E){var A=E.prototype;if(!h&&t(A,"cause")&&delete A.cause,!y)return E;var R=e("Error"),I=g(function(O,D){var P=u(v?D:O,void 0),F=v?new E(O):new E;return P!==void 0&&r(F,"message",P),l(F,I,F.stack,2),this&&n(A,this)&&o(F,this,I),arguments.length>b&&c(F,arguments[b]),F});if(I.prototype=A,w!=="Error"?i?i(I,R):s(I,R,{name:!0}):f&&_ in E&&(a(I,E,_),a(I,E,"prepareStackTrace")),s(I,E),!h)try{A.name!==w&&r(A,"name",w),A.constructor=I}catch{}return I}},S1}var K$;function zne(){if(K$)return z$;K$=1;var e=Tu(),t=qn(),r=Q2(),n=s5(),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)}}),z$}var G$={},Y$;function Wne(){if(Y$)return G$;Y$=1;var e=Tu(),t=Tl(),r=Q2(),n=wi(),i=s5(),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)}),G$}var w1,X$;function Jne(){return X$||(X$=1,w1=function(){}),w1}var x1,Z$;function Hne(){if(Z$)return x1;Z$=1;var e=qn(),t=ei(),r=e.WeakMap;return x1=t(r)&&/native code/.test(String(r)),x1}var A1,Q$;function a5(){if(Q$)return A1;Q$=1;var e=Hne(),t=qn(),r=Ui(),n=Bs(),i=Vi(),s=hU(),a=hC(),o=aC(),u="Object already initialized",c=t.TypeError,l=t.WeakMap,f,h,d,g=function(b){return d(b)?h(b):f(b,{})},y=function(b){return function(S){var w;if(!r(S)||(w=h(S)).type!==b)throw new c("Incompatible receiver, "+b+" required");return w}};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)||{}},d=function(b){return v.has(b)}}else{var _=a("state");o[_]=!0,f=function(b,S){if(i(b,_))throw new c(u);return S.facade=b,n(b,_,S),S},h=function(b){return i(b,_)?b[_]:{}},d=function(b){return i(b,_)}}return A1={set:f,get:h,has:d,enforce:g,getterFor:y},A1}var O1,e3;function Kne(){if(e3)return O1;e3=1;var e=ms(),t=Vi(),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 O1={EXISTS:i,PROPER:s,CONFIGURABLE:a},O1}var C1,t3;function o5(){if(t3)return C1;t3=1;var e=Bs();return C1=function(t,r,n,i){return i&&i.enumerable?t[r]=n:e(t,r,n),t},C1}var R1,r3;function u5(){if(r3)return R1;r3=1;var e=wi(),t=ei(),r=Ui(),n=gC(),i=mC(),s=o5(),a=Ls(),o=Pl(),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 d=!r(l)||e(function(){var g={};return l[u].call(g)!==g});return d?l={}:o&&(l=n(l)),t(l[u])||s(l,u,function(){return this}),R1={IteratorPrototype:l,BUGGY_SAFARI_ITERATORS:c},R1}var T1,n3;function Gne(){if(n3)return T1;n3=1;var e=yC(),t=vC();return T1=e?{}.toString:function(){return"[object "+t(this)+"]"},T1}var I1,i3;function _C(){if(i3)return I1;i3=1;var e=yC(),t=Ru().f,r=Bs(),n=Vi(),i=Gne(),s=Ls(),a=s("toStringTag");return I1=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))},I1}var j1,s3;function Yne(){if(s3)return j1;s3=1;var e=u5().IteratorPrototype,t=gC(),r=Ol(),n=_C(),i=Iu(),s=function(){return this};return j1=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},j1}var P1,a3;function c5(){if(a3)return P1;a3=1;var e=Tu(),t=_a(),r=Pl(),n=Kne(),i=ei(),s=Yne(),a=mC(),o=kh(),u=_C(),c=Bs(),l=o5(),f=Ls(),h=Iu(),d=u5(),g=n.PROPER,y=n.CONFIGURABLE,v=d.IteratorPrototype,_=d.BUGGY_SAFARI_ITERATORS,b=f("iterator"),S="keys",w="values",E="entries",A=function(){return this};return P1=function(R,I,O,D,P,F,M){s(O,I,D);var K=function(le){if(le===P&&ne)return ne;if(!_&&le&&le in Q)return Q[le];switch(le){case S:return function(){return new O(this,le)};case w:return function(){return new O(this,le)};case E:return function(){return new O(this,le)}}return function(){return new O(this)}},te=I+" Iterator",J=!1,Q=R.prototype,re=Q[b]||Q["@@iterator"]||P&&Q[P],ne=!_&&re||K(P),U=I==="Array"&&Q.entries||re,H,ie,ue;if(U&&(H=a(U.call(new R)),H!==Object.prototype&&H.next&&(!r&&a(H)!==v&&(o?o(H,v):i(H[b])||l(H,b,A)),u(H,te,!0,!0),r&&(h[te]=A))),g&&P===w&&re&&re.name!==w&&(!r&&y?c(Q,"name",w):(J=!0,ne=function(){return t(re,this)})),P)if(ie={values:K(w),keys:F?ne:K(S),entries:K(E)},M)for(ue in ie)(_||J||!(ue in Q))&&l(Q,ue,ie[ue]);else e({target:I,proto:!0,forced:_||J},ie);return(!r||M)&&Q[b]!==ne&&l(Q,b,ne,{name:P}),h[I]=ne,ie},P1}var k1,o3;function l5(){return o3||(o3=1,k1=function(e,t){return{value:e,done:t}}),k1}var N1,u3;function f5(){if(u3)return N1;u3=1;var e=Cl(),t=Jne(),r=Iu(),n=a5(),i=Ru().f,s=c5(),a=l5(),o=Pl(),u=ms(),c="Array Iterator",l=n.set,f=n.getterFor(c);N1=s(Array,"Array",function(d,g){l(this,{type:c,target:e(d),index:0,kind:g})},function(){var d=f(this),g=d.target,y=d.index++;if(!g||y>=g.length)return d.target=null,a(void 0,!0);switch(d.kind){case"keys":return a(y,!1);case"values":return a(g[y],!1)}return a([y,g[y]],!1)},"values");var h=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!o&&u&&h.name!=="values")try{i(h,"name",{value:"values"})}catch{}return N1}var c3={},M1,l3;function Xne(){if(l3)return M1;l3=1;var e=Fn(),t=sC(),r=bC(),n=Th(),i=e("".charAt),s=e("".charCodeAt),a=e("".slice),o=function(u){return function(c,l){var f=r(n(c)),h=t(l),d=f.length,g,y;return h<0||h>=d?u?"":void 0:(g=s(f,h),g<55296||g>56319||h+1===d||(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 M1={codeAt:o(!1),charAt:o(!0)},M1}var f3;function Zne(){if(f3)return c3;f3=1;var e=Xne().charAt,t=bC(),r=a5(),n=c5(),i=l5(),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))}),c3}var D1,p3;function Qne(){if(p3)return D1;p3=1,zne(),n5(),Wne(),f5(),Zne();var e=Rl();return D1=e.AggregateError,D1}var d3={},q1,h3;function eie(){return h3||(h3=1,q1={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}),q1}var m3;function tie(){if(m3)return d3;m3=1,f5();var e=eie(),t=qn(),r=_C(),n=Iu();for(var i in e)r(t[i],i),n[i]=n.Array;return d3}var F1,g3;function rie(){if(g3)return F1;g3=1,i5();var e=Qne();return tie(),F1=e,F1}var $1,y3;function nie(){if(y3)return $1;y3=1;var e=rie();return $1=e,$1}var L1,v3;function iie(){if(v3)return L1;v3=1,i5();var e=nie();return L1=e,L1}var B1,b3;function sie(){return b3||(b3=1,B1=iie()),B1}var U1,_3;function aie(){return _3||(_3=1,U1=sie()),U1}var oie=aie();const uie=He.getDefaultExportFromCjs(oie);class cie extends uie{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}
|
|
101
|
+
CAUSE: ${i.stack}`)}}}class gr extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(cie,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}
|
|
102
|
+
CAUSE: ${n.stack}`)}}}class ls extends gr{constructor(t,r){if(super(t,r),r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class Ot extends gr{}class V1 extends Ot{}var EC=function(){return!1},Us=function(){return!0};function ur(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Ht(e){return function t(r){return arguments.length===0||ur(r)?t:e.apply(this,arguments)}}function ht(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return ur(r)?t:Ht(function(i){return e(r,i)});default:return ur(r)&&ur(n)?t:ur(r)?Ht(function(i){return e(i,n)}):ur(n)?Ht(function(i){return e(r,i)}):e(r,n)}}}function lie(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 Nh(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 SC(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&&(!ur(t[a])||i>=arguments.length)?u=t[a]:(u=arguments[i],i+=1),n[a]=u,ur(u)?o=!0:s-=1,a+=1}return!o&&s<=0?r.apply(this,n):Nh(Math.max(0,s),SC(e,n,r))}}var Pr=ht(function(t,r){return t===1?Ht(r):Nh(t,SC(t,[],r))});function dn(e){return function t(r,n,i){switch(arguments.length){case 0:return t;case 1:return ur(r)?t:ht(function(s,a){return e(r,s,a)});case 2:return ur(r)&&ur(n)?t:ur(r)?ht(function(s,a){return e(s,n,a)}):ur(n)?ht(function(s,a){return e(r,s,a)}):Ht(function(s){return e(r,n,s)});default:return ur(r)&&ur(n)&&ur(i)?t:ur(r)&&ur(n)?ht(function(s,a){return e(s,a,i)}):ur(r)&&ur(i)?ht(function(s,a){return e(s,n,a)}):ur(n)&&ur(i)?ht(function(s,a){return e(r,s,a)}):ur(r)?Ht(function(s){return e(s,n,i)}):ur(n)?Ht(function(s){return e(r,s,i)}):ur(i)?Ht(function(s){return e(r,n,s)}):e(r,n,i)}}}const ho=Array.isArray||function(t){return t!=null&&t.length>=0&&Object.prototype.toString.call(t)==="[object Array]"};function fie(e){return e!=null&&typeof e["@@transducer/step"]=="function"}function Ea(e,t,r){return function(){if(arguments.length===0)return r();var n=arguments[arguments.length-1];if(!ho(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(fie(n)){var s=t.apply(null,Array.prototype.slice.call(arguments,0,-1));return s(n)}}return r.apply(this,arguments)}}function Mh(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Qn={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var pie=(function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=Qn.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=Mh(this.xf["@@transducer/step"](t,!1))),t},e})();function die(e){return function(t){return new pie(e,t)}}var wC=ht(Ea(["all"],die,function(t,r){for(var n=0;n<r.length;){if(!t(r[n]))return!1;n+=1}return!0}));function E3(e){for(var t=[],r;!(r=e.next()).done;)t.push(r.value);return t}function ed(e,t,r){for(var n=0,i=r.length;n<i;){if(e(t,r[n]))return!0;n+=1}return!1}function hie(e){var t=String(e).match(/^function (\w*)/);return t==null?"":t[1]}function mi(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function mie(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}const wc=typeof Object.is=="function"?Object.is:mie;var S3=Object.prototype.toString,p5=(function(){return S3.call(arguments)==="[object Arguments]"?function(t){return S3.call(t)==="[object Arguments]"}:function(t){return mi("callee",t)}})(),gie=!{toString:null}.propertyIsEnumerable("toString"),w3=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x3=(function(){return arguments.propertyIsEnumerable("length")})(),yie=function(t,r){for(var n=0;n<t.length;){if(t[n]===r)return!0;n+=1}return!1},Za=Ht(typeof Object.keys=="function"&&!x3?function(t){return Object(t)!==t?[]:Object.keys(t)}:function(t){if(Object(t)!==t)return[];var r,n,i=[],s=x3&&p5(t);for(r in t)mi(r,t)&&(!s||r!=="length")&&(i[i.length]=r);if(gie)for(n=w3.length-1;n>=0;)r=w3[n],mi(r,t)&&!yie(i,r)&&(i[i.length]=r),n-=1;return i}),Fi=Ht(function(t){return t===null?"Null":t===void 0?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function A3(e,t,r,n){var i=E3(e),s=E3(t);function a(o,u){return xC(o,u,r.slice(),n.slice())}return!ed(function(o,u){return!ed(a,u,o)},s,i)}function xC(e,t,r,n){if(wc(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"&&hie(e.constructor)==="Promise")return e===t;break;case"Boolean":case"Number":case"String":if(!(typeof e==typeof t&&wc(e.valueOf(),t.valueOf())))return!1;break;case"Date":if(!wc(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:A3(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size!==t.size?!1:A3(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=Za(e);if(a.length!==Za(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(!(mi(c,t)&&xC(t[c],e[c],o,u)))return!1;s-=1}return!0}var Sa=ht(function(t,r){return xC(t,r,[],[])});function vie(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(Sa(e[r],t))return r;r+=1}return-1}function td(e,t){return vie(t,e,0)>=0}function Ip(e,t){for(var r=0,n=t.length,i=Array(n);r<n;)i[r]=e(t[r]),r+=1;return i}function z1(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 Qu=function(t){return(t<10?"0":"")+t},bie=typeof Date.prototype.toISOString=="function"?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+Qu(t.getUTCMonth()+1)+"-"+Qu(t.getUTCDate())+"T"+Qu(t.getUTCHours())+":"+Qu(t.getUTCMinutes())+":"+Qu(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function d5(e){return function(){return!e.apply(this,arguments)}}function Nl(e,t,r){for(var n=0,i=r.length;n<i;)t=e(t,r[n]),n+=1;return t}function _ie(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 rd(e){return Object.prototype.toString.call(e)==="[object Object]"}var Eie=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Qn.init,e.prototype["@@transducer/result"]=Qn.result,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e})();function Sie(e){return function(t){return new Eie(e,t)}}var wie=ht(Ea(["fantasy-land/filter","filter"],Sie,function(e,t){return rd(t)?Nl(function(r,n){return e(t[n])&&(r[n]=t[n]),r},{},Za(t)):_ie(e,t)})),xie=ht(function(t,r){return wie(d5(t),r)});function h5(e,t){var r=function(a){var o=t.concat([e]);return td(a,o)?"<Circular>":h5(a,o)},n=function(s,a){return Ip(function(o){return z1(o)+": "+r(s[o])},a.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ip(r,e).join(", ")+"))";case"[object Array]":return"["+Ip(r,e).concat(n(e,xie(function(s){return/^\d+$/.test(s)},Za(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):z1(bie(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())+")":z1(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,Za(e)).join(", ")+"}"}}var uu=Ht(function(t){return h5(t,[])}),m5=ht(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=uu(t),o=n(a,uu(r));return o!==void 0&&o===a?t:r}),Aie=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Qn.init,e.prototype["@@transducer/result"]=Qn.result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e})(),Oie=function(t){return function(r){return new Aie(t,r)}},Dh=ht(Ea(["fantasy-land/map","map"],Oie,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return Pr(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return Nl(function(n,i){return n[i]=t(r[i]),n},{},Za(r));default:return Ip(t,r)}}));const ju=Number.isInteger||function(t){return t<<0===t};function AC(e){return Object.prototype.toString.call(e)==="[object String]"}function qh(e,t){var r=e<0?t.length+e:e;return AC(t)?t.charAt(r):t[r]}var Ml=ht(function(t,r){if(r!=null)return ju(t)?qh(t,r):r[t]}),g5=ht(function(t,r){return Dh(Ml(t),r)}),Cie=Ht(function(t){return ho(t)?!0:!t||typeof t!="object"||AC(t)?!1:t.length===0?!0:t.length>0?t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1):!1}),O3=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function y5(e,t,r){return function(i,s,a){if(Cie(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[O3]!=null)return r(i,s,a[O3]());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 Rie(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 v5=ht(function(t,r){return Nh(t.length,function(){return t.apply(r,arguments)})});function Tie(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 Iie(e,t,r,n){return e["@@transducer/result"](r[n](v5(e["@@transducer/step"],e),t))}var OC=y5(Rie,Iie,Tie),jie=(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 b5(e){return new jie(e)}var Pu=dn(function(e,t,r){return OC(typeof e=="function"?b5(e):e,t,r)}),Pie=Ht(function(t){return Pr(Pu(m5,0,g5("length",t)),function(){for(var r=0,n=t.length;r<n;){if(!t[r].apply(this,arguments))return!1;r+=1}return!0})}),lt=Ht(function(t){return function(){return t}}),kie=ht(function(t,r){return t&&r}),Nie=Ht(function(t){return Pr(Pu(m5,0,g5("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 Mie(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Die(e,t,r,n){return r[n](e,t)}var qie=y5(Nl,Die,Mie),Fie=ht(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))}:qie(function(n,i){return lie(n,Dh(i,r))},[],t)}),$ie=ht(function(t,r){return t.apply(this,r)}),CC=Ht(function(t){return Pr(t.length,t)});function Lie(e,t,r){if(ju(e)&&ho(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 nd=Ht(function(t){return t==null}),Le=dn(function e(t,r,n){if(t.length===0)return r;var i=t[0];if(t.length>1){var s=!nd(n)&&mi(i,n)&&typeof n[i]=="object"?n[i]:ju(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,s)}return Lie(i,r,n)}),Bie=dn(function(t,r,n){return Le([t],r,n)});function RC(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}var Uie=ht(function(t,r){var n=Pr(t,r);return Pr(t,function(){return Nl(Fie,Dh(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),TC=Ht(function(t){return Uie(t.length,t)}),Dl=ht(function(t,r){return RC(t)?function(){return t.apply(this,arguments)&&r.apply(this,arguments)}:TC(kie)(t,r)});function _5(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 E5(e,t,r){if(r||(r=new zie),Vie(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 _5(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 Vie(e){var t=typeof e;return e==null||t!="object"&&t!="function"}var zie=(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})(),Wie=Ht(function(t){return function(r,n){return t(r,n)?-1:t(n,r)?1:0}}),Jie=Ht(function(t){return!t}),ql=TC(Jie);function Hie(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function IC(e,t){return function(){var r=arguments.length;if(r===0)return t();var n=arguments[r-1];return ho(n)||typeof n[e]!="function"?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var Fl=dn(IC("slice",function(t,r,n){return Array.prototype.slice.call(n,t,r)})),Kie=Ht(IC("tail",Fl(1,1/0)));function nn(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return Nh(arguments[0].length,Pu(Hie,arguments[0],Kie(arguments)))}var Gie=Ht(function(e){return qh(0,e)});function Yie(e){return e}var S5=Ht(Yie),Xie=(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"]=Qn.init,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(mi(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,E5(this.valueAcc)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],r),t},e})();function Zie(e,t,r){return function(n){return new Xie(e,t,r,n)}}var Qie=SC(4,[],Ea([],Zie,function(t,r,n,i){var s=b5(function(a,o){var u=n(o),c=t(mi(u,a)?a[u]:E5(r),o);return c&&c["@@transducer/reduced"]?Mh(a):(a[u]=c,a)});return OC(s,{},i)})),cu=ht(function(t,r){return r==null||r!==r?t:r}),ese=(function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!C3(t,!0,this)},e.prototype.has=function(t){return C3(t,!1,this)},e})();function C3(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?td(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?td(e,r._items[n])?!0:(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}var tse=ht(function(t,r){for(var n=[],i=0,s=t.length,a=r.length,o=new ese,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}),rse=dn(function(t,r,n){var i=Array.prototype.slice.call(n,0);return i.splice(t,r),i});function nse(e,t){if(t==null)return t;if(ju(e)&&ho(t))return rse(e,1,t);var r={};for(var n in t)r[n]=t[n];return delete r[e],r}function ise(e,t){if(ju(e)&&ho(t))return[].concat(t);var r={};for(var n in t)r[n]=t[n];return r}var Yn=ht(function e(t,r){if(r==null)return r;switch(t.length){case 0:return r;case 1:return nse(t[0],r);default:var n=t[0],i=Array.prototype.slice.call(t,1);return r[n]==null?ise(n,r):Bie(n,e(i,r[n]),r)}}),sse=(function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=Qn.init,e.prototype["@@transducer/result"]=Qn.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?Mh(n):n},e})();function ase(e){return function(t){return new sse(e,t)}}var ose=ht(Ea(["take"],ase,function(t,r){return Fl(0,t<0?1/0:t,r)}));function use(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Fl(0,r+1,t)}var cse=(function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=Qn.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=OC(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 lse(e){return function(t){return new cse(e,t)}}var fse=ht(Ea([],lse,use)),Fh=Ht(function(e){return qh(-1,e)}),pse=(function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Qn.init,e.prototype["@@transducer/result"]=Qn.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 dse(e){return function(t){return new pse(e,t)}}var hse=ht(Ea(["dropWhile"],dse,function(t,r){for(var n=0,i=r.length;n<i&&t(r[n]);)n+=1;return Fl(n,1/0,r)})),mse=ht(function(t,r){return t||r}),gse=ht(function(t,r){return RC(t)?function(){return t.apply(this,arguments)||r.apply(this,arguments)}:TC(mse)(t,r)});function yse(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 vse=Ht(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():ho(t)?[]:AC(t)?"":rd(t)?{}:p5(t)?(function(){return arguments})():yse(t)?t.constructor.from(""):void 0}),bse=Ht(function(t){return Pr(t.length,function(r,n){var i=Array.prototype.slice.call(arguments,0);return i[0]=n,i[1]=r,t.apply(this,i)})}),_se=ht(IC("groupBy",Qie(function(e,t){return e.push(t),e},[]))),Ese=ht(function(t,r){if(t.length===0||nd(r))return!1;for(var n=r,i=0;i<t.length;)if(!nd(n)&&mi(t[i],n))n=n[t[i]],i+=1;else return!1;return!0}),xc=ht(function(t,r){return Ese([t],r)}),wa=function(e,t){switch(arguments.length){case 0:return wa;case 1:return(function(){return function r(n){switch(arguments.length){case 0:return r;default:return wc(e,n)}}})();default:return wc(e,t)}},jC=dn(function(t,r,n){return Pr(Math.max(t.length,r.length,n.length),function(){return t.apply(this,arguments)?r.apply(this,arguments):n.apply(this,arguments)})}),Sse=ht(td),wse=Fl(0,-1),PC=ht(function(t,r){return Pr(t+1,function(){var n=arguments[t];if(n!=null&&RC(n[r]))return n[r].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(uu(n)+' does not have a method named "'+r+'"')})}),$l=Ht(function(t){return t!=null&&Sa(t,vse(t))}),w5=Ht(function(t){return!$l(t)}),x5=PC(1,"join");function R3(e){return Object.prototype.toString.call(e)==="[object Number]"}var xse=ht(function(t,r){return function(n){return function(i){return Dh(function(s){return r(s,i)},n(t(i)))}}});function kC(e,t){for(var r=t,n=0;n<e.length;n+=1){if(r==null)return;var i=e[n];ju(i)?r=qh(i,r):r=r[i]}return r}var Ase=ht(function(t,r){return Nl(function(n,i){return n[i]=t(r[i],i,r),n},{},Za(r))}),Ose=dn(function(t,r,n){var i={},s;r=r||{},n=n||{};for(s in r)mi(s,r)&&(i[s]=mi(s,n)?t(s,r[s],n[s]):r[s]);for(s in n)mi(s,n)&&!mi(s,i)&&(i[s]=n[s]);return i}),Cse=dn(function e(t,r,n){return Ose(function(i,s,a){return rd(s)&&rd(a)?e(t,s,a):t(i,s,a)},r,n)}),$h=ht(function(t,r){return Cse(function(n,i,s){return s},t,r)}),Rse=ht(function(t,r){return wC(d5(t),r)}),A5=function(e){return{value:e,map:function(t){return A5(t(e))}}},Tse=dn(function(t,r,n){return t(function(i){return A5(r(i))})(n).value}),zr=ht(kC),O5=dn(function(t,r,n){return cu(t,kC(r,n))}),Lh=dn(function(t,r,n){return t(kC(r,n))}),C5=ht(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}),R5=dn(function(t,r,n){return Sa(t,Ml(r,n))}),id=dn(function(t,r,n){return cu(t,Ml(r,n))}),Ise=dn(function(t,r,n){return t(Ml(r,n))}),jse=ht(function(t,r){if(!(R3(t)&&R3(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}),Pse=Ht(Mh),T5=dn(function(t,r,n){return n.replace(t,r)}),kse=ht(function(t,r){return Array.prototype.slice.call(r,0).sort(t)}),I5=PC(1,"split"),Nse=ht(function(e,t){return Sa(ose(e.length,t),e)});function Mse(e){return Object.prototype.toString.call(e)==="[object RegExp]"}var Dse=ht(function(t,r){if(!Mse(t))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+uu(t));return _5(t).test(r)}),qse=(function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=Qn.init,e.prototype["@@transducer/result"]=Qn.result,e.prototype["@@transducer/step"]=function(t,r){return ed(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e})();function Fse(e){return function(t){return new qse(e,t)}}var j5=ht(Ea([],Fse,function(e,t){for(var r=0,n=t.length,i=[],s;r<n;)s=t[r],ed(e,s,i)||(i[i.length]=s),r+=1;return i})),$se=dn(function(t,r,n){return t(n)?r(n):n}),Bh=lt(void 0),xa=Sa(Bh()),P5=ql(xa),k5=Sa(null),N5=ql(k5),Lse=ql(nd),Bse=Pr(1,nn(Fi,wa("GeneratorFunction"))),Use=Pr(1,nn(Fi,wa("AsyncFunction"))),mo=Nie([nn(Fi,wa("Function")),Bse,Use]),M5=Pr(1,mo(Array.isArray)?Array.isArray:nn(Fi,wa("Array"))),Vse=Dl(M5,$l),zse=Dl(M5,w5),go=Pr(1,nn(Fi,wa("String"))),Wse=Sa("");function Yx(e){"@babel/helpers - typeof";return Yx=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},Yx(e)}var D5=function(t){return Yx(t)==="object"},Jse=Pr(1,Dl(N5,gse(D5,mo))),Hse=ql(Jse),Uh=Pie([go,Hse,w5]),Kse=ql(mo),Gse=Pr(1,Dl(N5,D5)),Yse=nn(Fi,wa("Object")),Xse=nn(uu,Sa(uu(Object))),Zse=Lh(Dl(mo,Xse),["constructor"]),$i=Pr(1,function(e){if(!Gse(e)||!Yse(e))return!1;var t=Object.getPrototypeOf(e);return k5(t)?!0:Zse(t)}),Qse=Pr(1,nn(Fi,wa("RegExp")));function eae(e){return iae(e)||nae(e)||rae(e)||tae()}function tae(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
103
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function rae(e,t){if(e){if(typeof e=="string")return Xx(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)?Xx(e,t):void 0}}function nae(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function iae(e){if(Array.isArray(e))return Xx(e)}function Xx(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 sae=Wie(function(e,t){return e.length>t.length}),aae=nn(kse(sae),Gie,Ml("length")),oae=CC(function(e,t,r){var n=r.apply(void 0,eae(e));return Lse(n)?Pse(n):t}),uae=function(t){var r=aae(t);return Pr(r,function(){for(var n=arguments.length,i=new Array(n),s=0;s<n;s++)i[s]=arguments[s];return Pu(oae(i),void 0,t)})},q5=jC(zse,uae,Bh),Vh=bse(Sse),Lc=Pr(3,function(e,t,r){var n=zr(e,r),i=zr(wse(e),r);if(!Kse(n)&&!Vse(e)){var s=v5(n,i);return $ie(s,t)}}),cae=$se(go,T5(/[.*+?^${}()|[\]\\-]/g,"\\$&")),lae=function(t,r,n){if(n==null||t==null||r==null)throw TypeError("Input values must not be `null` or `undefined`")},T3=function(t,r){if(typeof t!="string"&&!(t instanceof String))throw TypeError("`".concat(r,"` must be a string"))},fae=function(t){if(typeof t!="string"&&!(t instanceof String)&&!(t instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},pae=function(t,r,n){lae(t,r,n),T3(n,"str"),T3(r,"replaceValue"),fae(t);var i=new RegExp(Qse(t)?t:cae(t),"g");return T5(i,r,n)},dae=Pr(3,pae),hae=PC(2,"replaceAll"),mae=mo(String.prototype.replaceAll)?hae:dae,gae=CC(function(e,t){return nn(I5(""),fse(Vh(e)),x5(""))(t)}),F5=CC(function(e,t){return nn(I5(""),hse(Vh(e)),x5(""))(t)}),W1={exports:{}},I3;function yae(){if(I3)return W1.exports;I3=1;var e=W1.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 _=1;_<arguments.length;_++)v[_-1]=arguments[_];o.push(new d(y,v)),o.length===1&&!u&&s(h)};function d(y,v){this.fun=y,this.array=v}d.prototype.run=function(){this.fun.apply(null,this.array)},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},W1.exports}var vae=yae();const sd=He.getDefaultExportFromCjs(vae),NC=()=>Lh(Dse(/^win/),["platform"],sd),MC=e=>{try{const t=new URL(e);return gae(":",t.protocol)}catch{return}};nn(MC,P5);const bae=e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""},$5=e=>{if(sd.browser)return!1;const t=MC(e);return xa(t)||t==="file"||/^[a-zA-Z]$/.test(t)},DC=e=>{const t=MC(e);return t==="http"||t==="https"},L5=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=id(!1,"keepFileProtocol",t),i=id(NC,"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=mae("/","\\",s),s.substring(1,3)===":\\"&&(s=s[0].toUpperCase()+s.substring(1))),s},_ae=e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;NC()&&(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},B5=e=>{const t=e.indexOf("#");return t!==-1?e.substring(t):"#"},Yt=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},Zx=()=>{if(sd.browser)return Yt(globalThis.location.href);const e=sd.cwd(),t=Fh(e);return["/","\\"].includes(t)?e:e+(NC()?"\\":"/")},Zr=(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()},zh=e=>{if($5(e))return _ae(L5(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},rs=e=>$5(e)?L5(e):decodeURI(e);let Bc=class{constructor({uri:t,mediaType:r="text/plain",data:n,parseResult:i}){X(this,"uri");X(this,"mediaType");X(this,"data");X(this,"parseResult");this.uri=t,this.mediaType=r,this.data=n,this.parseResult=i}get extension(){return go(this.uri)?bae(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 lu{constructor({refs:t=[],circular:r=!1}={}){X(this,"rootRef");X(this,"refs");X(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=go(t)?t:t.uri;return P5(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 U5={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:S5,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},Eae=xse(zr(["resolve","baseURI"]),Le(["resolve","baseURI"])),Sae=e=>Wse(e)?Zx():e,V5=(e,t)=>{const r=$h(e,t);return Tse(Eae,Sae,r)};class wae extends gr{constructor(r,n){super(r,{cause:n.cause});X(this,"plugin");this.plugin=n.plugin}}const qC=async(e,t,r)=>{const n=await Promise.all(r.map(Lc([e],t)));return r.filter((i,s)=>n[s])},FC=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 wae("Error while running plugin",{cause:s,plugin:i})}return Promise.reject(n)};class Qx extends gr{}class $C extends gr{}class z5 extends $C{}class W5 extends z5{}const xae=async(e,t)=>{const r=t.resolve.resolvers.map(i=>{const s=Object.create(i);return Object.assign(s,t.resolve.resolverOpts)}),n=await qC("canRead",[e,t],r);if($l(n))throw new W5(e.uri);try{const{result:i}=await FC("read",[e],n);return i}catch(i){throw new $C(`Error while reading file "${e.uri}"`,{cause:i})}},Aae=async(e,t)=>{const r=t.parse.parsers.map(i=>{const s=Object.create(i);return Object.assign(s,t.parse.parserOpts)}),n=await qC("canParse",[e,t],r);if($l(n))throw new W5(e.uri);try{const{plugin:i,result:s}=await FC("parse",[e,t],n);return!i.allowEmpty&&s.isEmpty?Promise.reject(new Qx(`Error while parsing file "${e.uri}". File is empty.`)):s}catch(i){throw new Qx(`Error while parsing file "${e.uri}"`,{cause:i})}},Oae=async(e,t)=>{const r=new Bc({uri:zh(Yt(e)),mediaType:t.parse.mediaType}),n=await xae(r,t);return Aae(new Bc({...r,data:n}),t)};var Cr={},J1,j3;function Cae(){if(j3)return J1;j3=1;function e(t){return t===null}return J1=e,J1}var H1,P3;function Rae(){if(P3)return H1;P3=1;var e=ds(),t=Cn(),r="[object Number]";function n(i){return typeof i=="number"||t(i)&&e(i)==r}return H1=n,H1}var K1,k3;function Tae(){if(k3)return K1;k3=1;var e=ds(),t=Cn(),r="[object Boolean]";function n(i){return i===!0||i===!1||t(i)&&e(i)==r}return K1=n,K1}var G1,N3;function LC(){if(N3)return G1;N3=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 G1=e,G1}var Y1,M3;function Iae(){if(M3)return Y1;M3=1;var e=c2();function t(r,n){return e(r,n)}return Y1=t,Y1}var X1,D3;function Wh(){if(D3)return X1;D3=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 X1=e,X1}var Z1,q3;function Jh(){if(q3)return Z1;q3=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 Z1=t,Z1}var Q1,F3;function Hh(){if(F3)return Q1;F3=1;const e=Jh();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]()}),Q1=r,Q1}var ew,$3;function Vs(){if($3)return ew;$3=1;const e=Iae(),t=Wh(),r=Hh();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 d=s[h],g=f.indexOf(d);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 ew=n,ew}var tw,L3;function jae(){if(L3)return tw;L3=1;const e=Vs();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 tw=t,tw}var rw,B3;function Pae(){if(B3)return rw;B3=1;const e=Vs();return rw=class extends e{constructor(r,n,i){super(r,n,i),this.element="string"}primitive(){return"string"}get length(){return this.content.length}},rw}var nw,U3;function kae(){if(U3)return nw;U3=1;const e=Vs();return nw=class extends e{constructor(r,n,i){super(r,n,i),this.element="number"}primitive(){return"number"}},nw}var iw,V3;function Nae(){if(V3)return iw;V3=1;const e=Vs();return iw=class extends e{constructor(r,n,i){super(r,n,i),this.element="boolean"}primitive(){return"boolean"}},iw}var sw,z3;function J5(){if(z3)return sw;z3=1;const e=Jh(),t=Vs(),r=Hh();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]()}),sw=n,sw}var aw,W3;function H5(){if(W3)return aw;W3=1;const e=Wh(),t=Vs();return aw=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)}},aw}var ow,J3;function K5(){if(J3)return ow;J3=1;const e=Jh(),t=Hh();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 ow=r,ow}var uw,H3;function Mae(){if(H3)return uw;H3=1;const e=Jh(),t=On(),r=J5(),n=H5(),i=K5();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 d=o.bind(u)(l,f,h);d&&c.push(d)}),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 uw=s,uw}var cw,K3;function Dae(){if(K3)return cw;K3=1;const e=Vs();return cw=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)}},cw}var lw,G3;function qae(){if(G3)return lw;G3=1;const e=Vs();return lw=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)}},lw}var fw,Y3;function G5(){if(Y3)return fw;Y3=1;const e=Vs(),t=jae(),r=Pae(),n=kae(),i=Nae(),s=J5(),a=H5(),o=Mae(),u=Dae(),c=qae(),l=Hh(),f=K5(),h=Wh();function d(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(d)):typeof g=="object"?new o(g):g}return e.prototype.ObjectElement=o,e.prototype.RefElement=c,e.prototype.MemberElement=a,e.prototype.refract=d,l.prototype.refract=d,fw={Element:e,NullElement:t,StringElement:r,NumberElement:n,BooleanElement:i,ArrayElement:s,MemberElement:a,ObjectElement:o,LinkElement:u,RefElement:c,refract:d,ArraySlice:l,ObjectSlice:f,KeyValuePair:h},fw}var pw,X3;function Fae(){if(X3)return pw;X3=1;const e=Cae(),t=RU(),r=Rae(),n=Tae(),i=On(),s=LC(),a=G5();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],d=this.elementDetection[f][1];if(h(c)){l=new d(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,pw=o,pw}var dw,Z3;function $ae(){if(Z3)return dw;Z3=1;const e=LC();return dw=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]))})}},dw}var Q3;function Lae(){if(Q3)return Cr;Q3=1;const e=Fae(),t=G5();return Cr.Namespace=e,Cr.namespace=function(n){return new e(n)},Cr.KeyValuePair=Wh(),Cr.ArraySlice=t.ArraySlice,Cr.ObjectSlice=t.ObjectSlice,Cr.Element=t.Element,Cr.StringElement=t.StringElement,Cr.NumberElement=t.NumberElement,Cr.BooleanElement=t.BooleanElement,Cr.NullElement=t.NullElement,Cr.ArrayElement=t.ArrayElement,Cr.ObjectElement=t.ObjectElement,Cr.MemberElement=t.MemberElement,Cr.RefElement=t.RefElement,Cr.LinkElement=t.LinkElement,Cr.refract=t.refract,Cr.JSONSerialiser=LC(),Cr.JSON06Serialiser=$ae(),Cr}var ve=Lae();class ad extends ve.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 od extends ve.StringElement{constructor(t,r,n){super(t,r,n),this.element="comment"}}class Li extends ve.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(xa(r))return!1;const n=this.content.findIndex(i=>i===r);return n===-1?!1:(this.content[n]=t,!0)}}const Bae=(e,t)=>typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="function",Uae=e=>typeof e=="object"&&e!=null&&"_storedElement"in e&&typeof e._storedElement=="string"&&"_content"in e,Vae=(e,t)=>typeof t=="object"&&t!==null&&"primitive"in t?typeof t.primitive=="function"&&t.primitive()===e:!1,zae=(e,t)=>typeof t=="object"&&t!==null&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ve.ArrayElement)&&t.classes.includes(e),ea=(e,t)=>typeof t=="object"&&t!==null&&"element"in t&&t.element===e,ze=e=>e({hasMethod:Bae,hasBasicElementProps:Uae,primitiveEq:Vae,isElementType:ea,hasClass:zae}),_r=ze(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.Element||e(r)&&t(void 0,r)),ft=ze(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.StringElement||e(r)&&t("string",r)),BC=ze(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.NumberElement||e(r)&&t("number",r)),UC=ze(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.NullElement||e(r)&&t("null",r)),Ll=ze(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ve.BooleanElement||e(r)&&t("boolean",r)),Dt=ze(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ve.ObjectElement||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n)),rn=ze(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof ve.ArrayElement&&!(n instanceof ve.ObjectElement)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n)),zi=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ve.MemberElement||e(n)&&t("member",n)&&r(void 0,n)),Y5=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ve.LinkElement||e(n)&&t("link",n)&&r(void 0,n)),X5=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ve.RefElement||e(n)&&t("ref",n)&&r(void 0,n)),Wae=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ad||e(n)&&t("annotation",n)&&r("array",n)),Jae=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof od||e(n)&&t("comment",n)&&r("string",n)),Z5=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Li||e(n)&&t("parseResult",n)&&r("array",n)),Ga=e=>ea("object",e)||ea("array",e)||ea("boolean",e)||ea("number",e)||ea("string",e)||ea("null",e)||ea("member",e),ku=e=>_r(e)?Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex):!1,Hae=(e,t)=>{if(e.length===0)return!0;const r=t.attributes.get("symbols");return rn(r)?wC(Vh(r.toValue()),e):!1},fu=(e,t)=>e.length===0?!0:wC(Vh(t.classes.toValue()),e),Kae=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:ku,includesClasses:fu,includesSymbols:Hae,isAnnotationElement:Wae,isArrayElement:rn,isBooleanElement:Ll,isCommentElement:Jae,isElement:_r,isLinkElement:Y5,isMemberElement:zi,isNullElement:UC,isNumberElement:BC,isObjectElement:Dt,isParseResultElement:Z5,isPrimitiveElement:Ga,isRefElement:X5,isStringElement:ft},Symbol.toStringTag,{value:"Module"}));class Q5 extends ve.Namespace{constructor(){super(),this.register("annotation",ad),this.register("comment",od),this.register("parseResult",Li)}}const e9=new Q5,zs=e=>{const t=new Q5;return $i(e)&&t.use(e),t},t9=()=>({predicates:{...Kae},namespace:e9}),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},Tt={},Bl=e=>e==null?void 0:e.type,r9=e=>typeof Bl(e)=="string",VC=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Gh=(e,{visitFnGetter:t=Kh,nodeTypeGetter:r=Bl,breakSymbol:n=Tt,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,d,g){let y=c,v=!1;const _={...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 w=S.call(e[b],y,l,f,h,d,_);if(typeof(w==null?void 0:w.then)=="function")throw new ls("Async visitor not supported in sync mode",{visitor:e[b],visitFn:S});if(w===s)u[b]=y;else if(w===n)u[b]=n;else{if(w===i)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},leave(c,l,f,h,d,g){let y=c;const v={...g,replaceWith(_,b){g.replaceWith(_,b),y=_}};for(let _=0;_<e.length;_+=1)if(u[_]===o){const b=t(e[_],r(y),!0);if(typeof b=="function"){const S=b.call(e[_],y,l,f,h,d,v);if(typeof(S==null?void 0:S.then)=="function")throw new ls("Async visitor not supported in sync mode",{visitor:e[_],visitFn:b});if(S===n)u[_]=n;else if(S!==void 0&&S!==s)return S}}else u[_]===y&&(u[_]=o)}}},Gae=(e,{visitFnGetter:t=Kh,nodeTypeGetter:r=Bl,breakSymbol:n=Tt,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,d,g){let y=c,v=!1;const _={...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 w=await S.call(e[b],y,l,f,h,d,_);if(w===s)u[b]=y;else if(w===n)u[b]=n;else{if(w===i)return w;if(w!==void 0)if(a)y=w,v=!0;else return w}}}return v?y:void 0},async leave(c,l,f,h,d,g){let y=c;const v={...g,replaceWith(_,b){g.replaceWith(_,b),y=_}};for(let _=0;_<e.length;_+=1)if(u[_]===o){const b=t(e[_],r(y),!0);if(typeof b=="function"){const S=await b.call(e[_],y,l,f,h,d,v);if(S===n)u[_]=n;else if(S!==void 0&&S!==s)return S}}else u[_]===y&&(u[_]=o)}}};Gh[Symbol.for("nodejs.util.promisify.custom")]=Gae;const zC=(e,t,{keyMap:r=null,state:n={},breakSymbol:i=Tt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Kh,nodeTypeGetter:u=Bl,nodePredicate:c=r9,nodeCloneFn:l=VC,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(e),v=[e],_=-1,b,S=[],w=e;const E=[],A=[];do{_+=1;const O=_===v.length;let D;const P=O&&S.length!==0;if(O){if(D=A.length===0?void 0:E.pop(),w=b,b=A.pop(),P)if(y){w=w.slice();let M=0;for(const[K,te]of S){const J=K-M;te===s?(w.splice(J,1),M+=1):w[J]=te}}else{w=l(w);for(const[M,K]of S)w[M]=K}_=g.index,v=g.keys,S=g.edits,y=g.inArray,g=g.prev}else if(b!==s&&b!==void 0){if(D=y?_:v[_],w=b[D],w===s||w===void 0)continue;E.push(D)}let F;if(!Array.isArray(w)){var R;if(!c(w))throw new ls(`Invalid AST Node: ${String(w)}`,{node:w});if(f&&A.includes(w)){typeof h=="function"&&h(w,D,b,E,A),E.pop();continue}const M=o(t,u(w),O);if(M){for(const[te,J]of Object.entries(n))t[te]=J;const K={replaceWith(te,J){typeof J=="function"?J(te,w,D,b,E,A):b&&(b[D]=te),O||(w=te)}};F=M.call(t,w,D,b,E,A,K)}if(typeof((R=F)===null||R===void 0?void 0:R.then)=="function")throw new ls("Async visitor not supported in sync mode",{visitor:t,visitFn:M});if(F===i)break;if(F===a){if(!O){E.pop();continue}}else if(F!==void 0&&(S.push([D,F]),!O))if(c(F))w=F;else{E.pop();continue}}if(F===void 0&&P&&S.push([D,w]),!O){var I;g={inArray:y,index:_,keys:v,edits:S,prev:g},y=Array.isArray(w),v=y?w:(I=d[u(w)])!==null&&I!==void 0?I:[],_=-1,S=[],b!==s&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return S.length!==0?S[S.length-1][1]:e};zC[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:i=Tt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=Kh,nodeTypeGetter:u=Bl,nodePredicate:c=r9,nodeCloneFn:l=VC,detectCycles:f=!0,detectCyclesCallback:h=null}={})=>{const d=r||{};let g,y=Array.isArray(e),v=[e],_=-1,b,S=[],w=e;const E=[],A=[];do{_+=1;const I=_===v.length;let O;const D=I&&S.length!==0;if(I){if(O=A.length===0?void 0:E.pop(),w=b,b=A.pop(),D)if(y){w=w.slice();let F=0;for(const[M,K]of S){const te=M-F;K===s?(w.splice(te,1),F+=1):w[te]=K}}else{w=l(w);for(const[F,M]of S)w[F]=M}_=g.index,v=g.keys,S=g.edits,y=g.inArray,g=g.prev}else if(b!==s&&b!==void 0){if(O=y?_:v[_],w=b[O],w===s||w===void 0)continue;E.push(O)}let P;if(!Array.isArray(w)){if(!c(w))throw new ls(`Invalid AST Node: ${String(w)}`,{node:w});if(f&&A.includes(w)){typeof h=="function"&&h(w,O,b,E,A),E.pop();continue}const F=o(t,u(w),I);if(F){for(const[K,te]of Object.entries(n))t[K]=te;const M={replaceWith(K,te){typeof te=="function"?te(K,w,O,b,E,A):b&&(b[O]=K),I||(w=K)}};P=await F.call(t,w,O,b,E,A,M)}if(P===i)break;if(P===a){if(!I){E.pop();continue}}else if(P!==void 0&&(S.push([O,P]),!I))if(c(P))w=P;else{E.pop();continue}}if(P===void 0&&D&&S.push([O,w]),!I){var R;g={inArray:y,index:_,keys:v,edits:S,prev:g},y=Array.isArray(w),v=y?w:(R=d[u(w)])!==null&&R!==void 0?R:[],_=-1,S=[],b!==s&&b!==void 0&&A.push(b),b=w}}while(g!==void 0);return S.length!==0?S[S.length-1][1]:e};class n9 extends ls{constructor(r,n){super(r,n);X(this,"value");typeof n<"u"&&(this.value=n.value)}}class Yae extends n9{}class Xae extends n9{}const Aa=(e,t)=>{const r=cu(e,t);return Ase(n=>{if($i(n)&&xc("$ref",n)&&Ise(go,"$ref",n)){const i=zr(["$ref"],n),s=F5("#/",i);return zr(s.split("/"),r)}return $i(n)?Aa(n,r):n},e)},WC=(e,t)=>(e.startPositionRow=t==null?void 0:t.startPositionRow,e.startPositionColumn=t==null?void 0:t.startPositionColumn,e.startIndex=t==null?void 0:t.startIndex,e.endPositionRow=t==null?void 0:t.endPositionRow,e.endPositionColumn=t==null?void 0:t.endPositionColumn,e.endIndex=t==null?void 0:t.endIndex,e),Ye=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ve.KeyValuePair){const{key:i,value:s}=e,a=_r(i)?Ye(i,n):i,o=_r(s)?Ye(s,n):s,u=new ve.KeyValuePair(a,o);return r.set(e,u),u}if(e instanceof ve.ObjectSlice){const i=o=>Ye(o,n),s=[...e].map(i),a=new ve.ObjectSlice(s);return r.set(e,a),a}if(e instanceof ve.ArraySlice){const i=o=>Ye(o,n),s=[...e].map(i),a=new ve.ArraySlice(s);return r.set(e,a),a}if(_r(e)){const i=Ur(e);if(r.set(e,i),e.content)if(_r(e.content))i.content=Ye(e.content,n);else if(e.content instanceof ve.KeyValuePair)i.content=Ye(e.content,n);else if(Array.isArray(e.content)){const s=a=>Ye(a,n);i.content=e.content.map(s)}else i.content=e.content;else i.content=e.content;return i}throw new Yae("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ye.safe=e=>{try{return Ye(e)}catch{return e}};const i9=e=>{const{key:t,value:r}=e;return new ve.KeyValuePair(t,r)},Zae=e=>{const t=[...e];return new ve.ArraySlice(t)},Qae=e=>{const t=[...e];return new ve.ObjectSlice(t)},s9=e=>{const t=new e.constructor;if(t.element=e.element,ku(e)&&WC(t,e),e.meta.length>0&&(t._meta=Ye(e.meta)),e.attributes.length>0&&(t._attributes=Ye(e.attributes)),_r(e.content)){const r=e.content;t.content=s9(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ve.KeyValuePair?t.content=i9(e.content):t.content=e.content;return t},Ur=e=>{if(e instanceof ve.KeyValuePair)return i9(e);if(e instanceof ve.ObjectSlice)return Qae(e);if(e instanceof ve.ArraySlice)return Zae(e);if(_r(e))return s9(e);throw new Xae("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ur.safe=e=>{try{return Ur(e)}catch{return e}};const Nu=e=>Dt(e)?"ObjectElement":rn(e)?"ArrayElement":zi(e)?"MemberElement":ft(e)?"StringElement":Ll(e)?"BooleanElement":BC(e)?"NumberElement":UC(e)?"NullElement":Y5(e)?"LinkElement":X5(e)?"RefElement":void 0,a9=e=>_r(e)?Ur(e):VC(e),o9=nn(Nu,go),gs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};class u9{constructor({predicate:t=EC,returnOnTrue:r,returnOnFalse:n}={}){X(this,"result");X(this,"predicate");X(this,"returnOnTrue");X(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 kr=(e,t,{keyMap:r=gs,...n}={})=>zC(e,t,{keyMap:r,nodeTypeGetter:Nu,nodePredicate:o9,nodeCloneFn:a9,...n});kr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=gs,...n}={})=>zC[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Nu,nodePredicate:o9,nodeCloneFn:a9,...n});const c9={toolboxCreator:t9,visitorOptions:{nodeTypeGetter:Nu,exposeEdits:!0}},ys=(e,t,r={})=>{if(t.length===0)return e;const n=$h(c9,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(l=>l(a)),u=Gh(o.map(id({},"visitor")),{...s});o.forEach(Lc(["pre"],[]));const c=kr(e,u,s);return o.forEach(Lc(["post"],[])),c},eoe=async(e,t,r={})=>{if(t.length===0)return e;const n=$h(c9,r),{toolboxCreator:i,visitorOptions:s}=n,a=i(),o=t.map(h=>h(a)),u=Gh[Symbol.for("nodejs.util.promisify.custom")],c=kr[Symbol.for("nodejs.util.promisify.custom")],l=u(o.map(id({},"visitor")),{...s});await Promise.allSettled(o.map(Lc(["pre"],[])));const f=await c(e,l,s);return await Promise.allSettled(o.map(Lc(["post"],[]))),f};ys[Symbol.for("nodejs.util.promisify.custom")]=eoe;var hw={exports:{}},eL;function toe(){return eL||(eL=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=(w,E,A)=>E in w?r(w,E,{enumerable:!0,configurable:!0,writable:!0,value:A}):w[E]=A,c=(w,E)=>{for(var A in E||(E={}))a.call(E,A)&&u(w,A,E[A]);if(s)for(var A of s(E))o.call(E,A)&&u(w,A,E[A]);return w},l=(w,E)=>{for(var A in E)r(w,A,{get:E[A],enumerable:!0})},f=(w,E,A,R)=>{if(E&&typeof E=="object"||typeof E=="function")for(let I of i(E))!a.call(w,I)&&I!==A&&r(w,I,{get:()=>E[I],enumerable:!(R=n(E,I))||R.enumerable});return w},h=w=>f(r({},"__esModule",{value:!0}),w),d=(w,E,A)=>u(w,typeof E!="symbol"?E+"":E,A),g={};l(g,{DEFAULT_OPTIONS:()=>_,DEFAULT_UUID_LENGTH:()=>v,default:()=>S});var y="5.3.2",v=6,_={dictionary:"alphanum",shuffle:!0,debug:!1,length:v,counter:0},b=class{constructor(E={}){d(this,"counter"),d(this,"debug"),d(this,"dict"),d(this,"version"),d(this,"dictIndex",0),d(this,"dictRange",[]),d(this,"lowerBound",0),d(this,"upperBound",0),d(this,"dictLength",0),d(this,"uuidLength"),d(this,"_digit_first_ascii",48),d(this,"_digit_last_ascii",58),d(this,"_alpha_lower_first_ascii",97),d(this,"_alpha_lower_last_ascii",123),d(this,"_hex_last_ascii",103),d(this,"_alpha_upper_first_ascii",65),d(this,"_alpha_upper_last_ascii",91),d(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),d(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),d(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),d(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),d(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),d(this,"log",(...P)=>{const F=[...P];if(F[0]="[short-unique-id] ".concat(P[0]),this.debug===!0&&typeof console<"u"&&console!==null){console.log(...F);return}}),d(this,"_normalizeDictionary",(P,F)=>{let M;if(P&&Array.isArray(P)&&P.length>1)M=P;else{M=[],this.dictIndex=0;const K="_".concat(P,"_dict_ranges"),te=this._dict_ranges[K];let J=0;for(const[,re]of Object.entries(te)){const[ne,U]=re;J+=Math.abs(U-ne)}M=new Array(J);let Q=0;for(const[,re]of Object.entries(te)){this.dictRange=re,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];const ne=this.lowerBound<=this.upperBound,U=this.lowerBound,H=this.upperBound;if(ne)for(let ie=U;ie<H;ie++)M[Q++]=String.fromCharCode(ie),this.dictIndex=ie;else for(let ie=U;ie>H;ie--)M[Q++]=String.fromCharCode(ie),this.dictIndex=ie}M.length=Q}if(F){const K=M.length;for(let te=K-1;te>0;te--){const J=Math.floor(Math.random()*(te+1));[M[te],M[J]]=[M[J],M[te]]}}return M}),d(this,"setDictionary",(P,F)=>{this.dict=this._normalizeDictionary(P,F),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,"seq",()=>this.sequentialUUID()),d(this,"sequentialUUID",()=>{const P=this.dictLength,F=this.dict;let M=this.counter;const K=[];do{const J=M%P;M=Math.trunc(M/P),K.push(F[J])}while(M!==0);const te=K.join("");return this.counter+=1,te}),d(this,"rnd",(P=this.uuidLength||v)=>this.randomUUID(P)),d(this,"randomUUID",(P=this.uuidLength||v)=>{if(P===null||typeof P>"u"||P<1)throw new Error("Invalid UUID Length Provided");const F=new Array(P),M=this.dictLength,K=this.dict;for(let te=0;te<P;te++){const J=Math.floor(Math.random()*M);F[te]=K[J]}return F.join("")}),d(this,"fmt",(P,F)=>this.formattedUUID(P,F)),d(this,"formattedUUID",(P,F)=>{const M={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return P.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,te=>{const J=te.slice(0,2),Q=Number.parseInt(te.slice(2),10);return J==="$s"?M[J]().padStart(Q,"0"):J==="$t"&&F?M[J](Q,F):M[J](Q)})}),d(this,"availableUUIDs",(P=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**P).toFixed(0))),d(this,"_collisionCache",new Map),d(this,"approxMaxBeforeCollision",(P=this.availableUUIDs(this.uuidLength))=>{const F=P,M=this._collisionCache.get(F);if(M!==void 0)return M;const K=Number.parseFloat(Math.sqrt(Math.PI/2*P).toFixed(20));return this._collisionCache.set(F,K),K}),d(this,"collisionProbability",(P=this.availableUUIDs(this.uuidLength),F=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(P)/this.availableUUIDs(F)).toFixed(20))),d(this,"uniqueness",(P=this.availableUUIDs(this.uuidLength))=>{const F=Number.parseFloat((1-this.approxMaxBeforeCollision(P)/P).toFixed(20));return F>1?1:F<0?0:F}),d(this,"getVersion",()=>this.version),d(this,"stamp",(P,F)=>{const M=Math.floor(+(F||new Date)/1e3).toString(16);if(typeof P=="number"&&P===0)return M;if(typeof P!="number"||P<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(`
|
|
104
|
+
`));const K=P-9,te=Math.round(Math.random()*(K>15?15:K)),J=this.randomUUID(K);return"".concat(J.substring(0,te)).concat(M).concat(J.substring(te)).concat(te.toString(16))}),d(this,"parseStamp",(P,F)=>{if(F&&!/t0|t[1-9]\d{1,}/.test(F))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const M=F?F.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,te=>{const J={$r:ne=>[...Array(ne)].map(()=>"r").join(""),$s:ne=>[...Array(ne)].map(()=>"s").join(""),$t:ne=>[...Array(ne)].map(()=>"t").join("")},Q=te.slice(0,2),re=Number.parseInt(te.slice(2),10);return J[Q](re)}).replace(/^(.*?)(t{8,})(.*)$/g,(te,J,Q)=>P.substring(J.length,J.length+Q.length)):P;if(M.length===8)return new Date(Number.parseInt(M,16)*1e3);if(M.length<10)throw new Error("Stamp length invalid");const K=Number.parseInt(M.substring(M.length-1),16);return new Date(Number.parseInt(M.substring(K,K+8),16)*1e3)}),d(this,"setCounter",P=>{this.counter=P}),d(this,"validate",(P,F)=>{const M=F?this._normalizeDictionary(F):this.dict;return P.split("").every(K=>M.includes(K))});const A=c(c({},_),E);this.counter=0,this.debug=!1,this.dict=[],this.version=y;const{dictionary:R,shuffle:I,length:O,counter:D}=A;this.uuidLength=O,this.setDictionary(R,I),this.setCounter(D),this.debug=A.debug,this.log(this.dict),this.log("Generator instantiated with Dictionary Size ".concat(this.dictLength," and counter set to ").concat(this.counter)),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this)}};d(b,"default",b);var S=b;return h(g)})();e.exports=t.default,typeof window<"u"&&(t=t.default)})(hw)),hw.exports}var roe=toe();const noe=He.getDefaultExportFromCjs(roe);class ioe extends ls{constructor(r,n){super(r,n);X(this,"value");typeof n<"u"&&(this.value=n.value)}}class JC{constructor({length:t=6}={}){X(this,"uuid");X(this,"identityMap");this.uuid=new noe({length:t}),this.identityMap=new WeakMap}identify(t){if(!_r(t))throw new ioe("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:t});if(t.meta.hasKey("id")&&ft(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 ve.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 JC;class soe extends Array{constructor(){super(...arguments);X(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new V1("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new V1("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new V1("latest method in MediaTypes class is not yet implemented.")}}const aoe=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return _r(e)&&(e.meta.length>0&&(n.meta=Ye(e.meta)),e.attributes.length>0&&(n.attributes=Ye(e.attributes))),ys(n,r,{toolboxCreator:t9,visitorOptions:{nodeTypeGetter:Nu}})},Wi=e=>(t,r={})=>aoe(t,{...r,Type:e});ve.ObjectElement.refract=Wi(ve.ObjectElement);ve.ArrayElement.refract=Wi(ve.ArrayElement);ve.StringElement.refract=Wi(ve.StringElement);ve.BooleanElement.refract=Wi(ve.BooleanElement);ve.NullElement.refract=Wi(ve.NullElement);ve.NumberElement.refract=Wi(ve.NumberElement);ve.LinkElement.refract=Wi(ve.LinkElement);ve.RefElement.refract=Wi(ve.RefElement);ad.refract=Wi(ad);od.refract=Wi(od);Li.refract=Wi(Li);const ooe=(e,t)=>{const r=new u9({predicate:e});return kr(t,r),new ve.ArraySlice(r.result)},l9=(e,t)=>{const r=new u9({predicate:e,returnOnTrue:Tt});return kr(t,r),O5(void 0,[0],r.result)},jp=(e,t=new WeakMap)=>(zi(e)?(t.set(e.key,e),jp(e.key,t),t.set(e.value,e),jp(e.value,t)):e.children.forEach(r=>{t.set(r,e),jp(r,t)}),t),uoe=(e,t,r)=>{const n=r.get(e);zi(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)))},coe=(e,t,r)=>{const n=r.get(e);Dt(n)&&(n.content=n.map((i,s,a)=>a===e?(r.delete(e),r.set(t,n),t):a))},loe=(e,t,r)=>{const n=r.get(e);rn(n)&&(n.content=n.map(i=>i===e?(r.delete(e),r.set(t,n),t):i))};class foe{constructor({element:t}){X(this,"element");X(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:jp(this.element);const i=this.edges.get(t);if(!xa(i))return Dt(i)?coe(t,r,this.edges):rn(i)?loe(t,r,this.edges):zi(i)&&uoe(t,r,this.edges),this.element}}const poe=(e,t,r)=>new foe({element:r}).transclude(e,t),f9=(e,t=e9)=>{if(go(e))try{return t.fromRefract(JSON.parse(e))}catch{}return $i(e)&&xc("element",e)?t.fromRefract(e):t.toElement(e)},p9=e=>typeof(e==null?void 0:e.type)=="string"?e.type:Nu(e),d9={EphemeralObject:["content"],EphemeralArray:["content"],...gs},h9=(e,t,{keyMap:r=d9,...n}={})=>kr(e,t,{keyMap:r,nodeTypeGetter:p9,nodePredicate:Us,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});h9[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=d9,...r}={})=>kr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:p9,nodePredicate:Us,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class doe{constructor(t){X(this,"type","EphemeralArray");X(this,"content",[]);X(this,"reference");this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}}class hoe{constructor(t){X(this,"type","EphemeralObject");X(this,"content",[]);X(this,"reference");this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}}let moe=class{constructor(){X(this,"ObjectElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new hoe(t.content);return this.references.set(t,r),r}});X(this,"EphemeralObject",{leave:t=>t.toObject()});X(this,"MemberElement",{enter:t=>[t.key,t.value]});X(this,"ArrayElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new doe(t.content);return this.references.set(t,r),r}});X(this,"EphemeralArray",{leave:t=>t.toArray()});X(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 ft(t.href)?t.href.toValue():""}};const Ie=e=>_r(e)?ft(e)||BC(e)||Ll(e)||UC(e)?e.toValue():h9(e,new moe):e,ud=e=>{const t=e.meta.length>0?Ye(e.meta):void 0,r=e.attributes.length>0?Ye(e.attributes):void 0;return new e.constructor(void 0,t,r)},cd=(e,t)=>t.clone&&t.isMergeableElement(e)?yi(ud(e),e,t):e,goe=(e,t)=>{if(typeof t.customMerge!="function")return yi;const r=t.customMerge(e,t);return typeof r=="function"?r:yi},yoe=e=>typeof e.customMetaMerge!="function"?t=>Ye(t):e.customMetaMerge,voe=e=>typeof e.customAttributesMerge!="function"?t=>Ye(t):e.customAttributesMerge,boe=(e,t,r)=>e.concat(t)["fantasy-land/map"](n=>cd(n,r)),_oe=(e,t,r)=>{const n=Dt(e)?ud(e):ud(t);return Dt(e)&&e.forEach((i,s,a)=>{const o=Ur(a);o.value=cd(i,r),n.content.push(o)}),t.forEach((i,s,a)=>{const o=Ie(s);let u;if(Dt(e)&&e.hasKey(o)&&r.isMergeableElement(i)){const c=e.get(o);u=Ur(a),u.value=goe(s,r)(c,i,r)}else u=Ur(a),u.value=cd(i,r);n.remove(o),n.content.push(u)}),n},up={clone:!0,isMergeableElement:e=>Dt(e)||rn(e),arrayElementMerge:boe,objectElementMerge:_oe,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},yi=(e,t,r)=>{var n,i,s;const a={...up,...r};a.isMergeableElement=(n=a.isMergeableElement)!==null&&n!==void 0?n:up.isMergeableElement,a.arrayElementMerge=(i=a.arrayElementMerge)!==null&&i!==void 0?i:up.arrayElementMerge,a.objectElementMerge=(s=a.objectElementMerge)!==null&&s!==void 0?s:up.objectElementMerge;const o=rn(t),u=rn(e);if(!(o===u))return cd(t,a);const l=o&&typeof a.arrayElementMerge=="function"?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a);return l.meta=yoe(a)(e.meta,t.meta),l.attributes=voe(a)(e.attributes,t.attributes),l};yi.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return e.length===0?new ve.ObjectElement:e.reduce((r,n)=>yi(r,n,t),ud(e[0]))};class HC extends gr{}class m9 extends HC{}const Eoe=async(e,t)=>{let r=e,n=!1;if(!Z5(e)){const a=Ur(e);a.classes.push("result"),r=new Li([a]),n=!0}const i=new Bc({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),s=await qC("canDereference",[i,t],t.dereference.strategies);if($l(s))throw new m9(i.uri);try{const{result:a}=await FC("dereference",[i,t],s);return n?a.get(0):a}catch(a){throw new HC(`Error while dereferencing file "${i.uri}"`,{cause:a})}};let Ul=class{constructor({name:t,allowEmpty:r=!0,sourceMap:n=!1,fileExtensions:i=[],mediaTypes:s=[]}){X(this,"name");X(this,"allowEmpty");X(this,"sourceMap");X(this,"fileExtensions");X(this,"mediaTypes");this.name=t,this.allowEmpty=r,this.sourceMap=n,this.fileExtensions=i,this.mediaTypes=s}};class Soe{constructor({name:t}){X(this,"name");this.name=t}}class woe extends Soe{constructor(r){const{name:n="http-resolver",timeout:i=5e3,redirects:s=5,withCredentials:a=!1}=r??{};super({name:n});X(this,"timeout");X(this,"redirects");X(this,"withCredentials");this.timeout=i,this.redirects=s,this.withCredentials=a}canRead(r){return DC(r.uri)}}class xoe{constructor({name:t}){X(this,"name");this.name=t}}class Aoe{constructor({name:t}){X(this,"name");this.name=t}}class mw 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(_r(n)&&t(n))return n}}let Ps=class{constructor({uri:t,depth:r=0,refSet:n,value:i}){X(this,"uri");X(this,"depth");X(this,"value");X(this,"refSet");X(this,"errors");this.uri=t,this.value=i,this.depth=r,this.refSet=n,this.errors=[]}};class g9 extends gr{}class Ooe extends g9{}class Coe extends gr{}class KC extends Coe{}class Roe extends g9{constructor(t){super(`Invalid JSON Schema $anchor "${t}".`)}}class Ho extends HC{}class Toe extends $C{}class Ds extends Qx{}const Ioe=async(e,t={})=>{const r=V5(U5,t);return Eoe(e,r)},{fetch:joe,Response:Poe,Headers:koe,Request:Noe,FormData:Moe,File:Doe,Blob:qoe}=globalThis;typeof globalThis.fetch>"u"&&(globalThis.fetch=joe);typeof globalThis.Headers>"u"&&(globalThis.Headers=koe);typeof globalThis.Request>"u"&&(globalThis.Request=Noe);typeof globalThis.Response>"u"&&(globalThis.Response=Poe);typeof globalThis.FormData>"u"&&(globalThis.FormData=Moe);typeof globalThis.File>"u"&&(globalThis.File=Doe);typeof globalThis.Blob>"u"&&(globalThis.Blob=qoe);function tL(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 Foe(e){if(Array.isArray(e))return e}function $oe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Loe(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 Boe(e,t,r){return t&&Loe(e.prototype,t),e}function y9(e,t){return t!=null&&typeof Symbol<"u"&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Uoe(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 Voe(){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 zoe(e,t){return Foe(e)||Uoe(e,t)||Woe(e,t)||Voe()}function Ko(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Woe(e,t){if(e){if(typeof e=="string")return tL(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 tL(e,t)}}var v9=function(e){throw TypeError(e)},b9=function(e,t,r){return t.has(e)||v9("Cannot "+r)},gn=function(e,t,r){return b9(e,t,"read from private field"),r?r.call(e):t.get(e)},rL=function(e,t,r){return t.has(e)?v9("Cannot add the same private member more than once"):y9(t,WeakSet)?t.add(e):t.set(e,r)},gw=function(e,t,r,n){return b9(e,t,"write to private field"),t.set(e,r),r},Mu=function(e){return Object.prototype.toString.call(e)},_9=function(e){return ArrayBuffer.isView(e)&&!y9(e,DataView)},Joe=function(e){return Mu(e)==="[object Date]"},Hoe=function(e){return Mu(e)==="[object RegExp]"},Koe=function(e){return Mu(e)==="[object Error]"},Goe=function(e){return Mu(e)==="[object Boolean]"},Yoe=function(e){return Mu(e)==="[object Number]"},Xoe=function(e){return Mu(e)==="[object String]"},E9=Array.isArray,Zoe=Object.getOwnPropertyDescriptor,Qoe=Object.prototype.propertyIsEnumerable,eue=Object.getOwnPropertySymbols,Pp=Object.prototype.hasOwnProperty;function GC(e){for(var t=Object.keys(e),r=eue(e),n=0;n<r.length;n++)Qoe.call(e,r[n])&&t.push(r[n]);return t}function tue(e,t){var r;return!(!((r=Zoe(e,t))===null||r===void 0)&&r.writable)}function S9(e,t){if((typeof e>"u"?"undefined":Ko(e))==="object"&&e!==null){var r;if(E9(e))r=[];else if(Joe(e))r=new Date(e.getTime?e.getTime():e);else if(Hoe(e))r=new RegExp(e);else if(Koe(e))r={message:e.message};else if(Goe(e)||Yoe(e)||Xoe(e))r=Object(e);else{if(_9(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var n=t.includeSymbols?GC: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 w9={includeSymbols:!1,immutable:!1};function nL(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:w9,n=[],i=[],s=!0,a=r.includeSymbols?GC:Object.keys,o=!!r.immutable;return(function u(c){var l=o?S9(c,r):c,f={},h=!0,d={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(F){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;d.isRoot||(d.parent.node[d.key]=F),d.node=F,M&&(h=!1)},delete:function(F){delete d.parent.node[d.key],F&&(h=!1)},remove:function(F){E9(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],F&&(h=!1)},keys:null,before:function(F){f.before=F},after:function(F){f.after=F},pre:function(F){f.pre=F},post:function(F){f.post=F},stop:function(){s=!1},block:function(){h=!1}};if(!s)return d;function g(){if(Ko(d.node)==="object"&&d.node!==null){(!d.keys||d.node_!==d.node)&&(d.keys=a(d.node)),d.isLeaf=d.keys.length===0;for(var P=0;P<i.length;P++)if(i[P].node_===c){d.circular=i[P];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}g();var y=t.call(d,d.node);if(y!==void 0&&d.update&&d.update(y),f.before&&f.before.call(d,d.node),!h)return d;if(Ko(d.node)==="object"&&d.node!==null&&!d.circular){i.push(d),g();var v,_=!0,b=!1,S=void 0;try{for(var w=Object.entries((v=d.keys)!==null&&v!==void 0?v:[])[Symbol.iterator](),E;!(_=(E=w.next()).done);_=!0){var A=zoe(E.value,2),R=A[0],I=A[1],O;n.push(I),f.pre&&f.pre.call(d,d.node[I],I);var D=u(d.node[I]);o&&Pp.call(d.node,I)&&!tue(d.node,I)&&(d.node[I]=D.node),D.isLast=!((O=d.keys)===null||O===void 0)&&O.length?+R===d.keys.length-1:!1,D.isFirst=+R==0,f.post&&f.post.call(d,D),n.pop()}}catch(P){b=!0,S=P}finally{try{!_&&w.return!=null&&w.return()}finally{if(b)throw S}}i.pop()}return f.after&&f.after.call(d,d.node),d})(e).node}var Tn,ta,vs=(function(){function e(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:w9;$oe(this,e),rL(this,Tn),rL(this,ta),gw(this,Tn,t),gw(this,ta,r)}return Boe(e,[{key:"get",value:function(r){for(var n=gn(this,Tn),i=0;n&&i<r.length;i++){var s=r[i];if(!Pp.call(n,s)||!gn(this,ta).includeSymbols&&(typeof s>"u"?"undefined":Ko(s))==="symbol")return;n=n[s]}return n}},{key:"has",value:function(r){for(var n=gn(this,Tn),i=0;n&&i<r.length;i++){var s=r[i];if(!Pp.call(n,s)||!gn(this,ta).includeSymbols&&(typeof s>"u"?"undefined":Ko(s))==="symbol")return!1;n=n[s]}return!0}},{key:"set",value:function(r,n){var i=gn(this,Tn),s=0;for(s=0;s<r.length-1;s++){var a=r[s];Pp.call(i,a)||(i[a]={}),i=i[a]}return i[r[s]]=n,n}},{key:"map",value:function(r){return nL(gn(this,Tn),r,{immutable:!0,includeSymbols:!!gn(this,ta).includeSymbols})}},{key:"forEach",value:function(r){return gw(this,Tn,nL(gn(this,Tn),r,gn(this,ta))),gn(this,Tn)}},{key:"reduce",value:function(r,n){var i=arguments.length===1,s=i?gn(this,Tn):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=gn(this,ta);return _9(gn(this,Tn))?gn(this,Tn).slice():(function s(a){for(var o=0;o<r.length;o++)if(r[o]===a)return n[o];if((typeof a>"u"?"undefined":Ko(a))==="object"&&a!==null){var u=S9(a,i);r.push(a),n.push(u);var c=i.includeSymbols?GC:Object.keys,l=!0,f=!1,h=void 0;try{for(var d=c(a)[Symbol.iterator](),g;!(l=(g=d.next()).done);l=!0){var y=g.value;u[y]=s(a[y])}}catch(v){f=!0,h=v}finally{try{!l&&d.return!=null&&d.return()}finally{if(f)throw h}}return r.pop(),n.pop(),u}return a})(gn(this,Tn))}}]),e})();Tn=new WeakMap;ta=new WeakMap;var bs=function(e,t){return new vs(e,t)};bs.get=function(e,t,r){return new vs(e,r).get(t)};bs.set=function(e,t,r,n){return new vs(e,n).set(t,r)};bs.has=function(e,t,r){return new vs(e,r).has(t)};bs.map=function(e,t,r){return new vs(e,r).map(t)};bs.forEach=function(e,t,r){return new vs(e,r).forEach(t)};bs.reduce=function(e,t,r,n){return new vs(e,n).reduce(t,r)};bs.paths=function(e,t){return new vs(e,t).paths()};bs.nodes=function(e,t){return new vs(e,t).nodes()};bs.clone=function(e,t){return new vs(e,t).clone()};var rue=bs;const x9="application/json, application/yaml",ld="https://swagger.io",nue=Object.freeze({url:"/"}),A9=3e3,iue=["properties"],sue=["properties"],aue=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],oue=["schema/example","items/example"];function O9(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return iue.indexOf(t)>-1&&sue.indexOf(r)===-1||aue.indexOf(n)>-1||oue.some(i=>n.indexOf(i)>-1)}function uue(e,t,{specmap:r,getBaseUrlForNodePath:n=s=>r.getContext([...t,...s]).baseDoc,targetKeys:i=["$ref","$$ref"]}={}){const s=[];return rue(e).forEach(function(){if(i.includes(this.key)&&typeof this.node=="string"){const o=this.path,u=t.concat(this.path),c=eA(this.node,n(o));s.push(r.replace(u,c))}}),s}function eA(e,t){const[r,n]=e.split("#"),i=t??"",s=r??"";let a;if(DC(i))a=Zr(i,s);else{const o=Zr(ld,i),c=Zr(o,s).replace(ld,"");a=s.startsWith("/")?c:c.substring(1)}return n?`${a}#${n}`:a}const cue=/^([a-z]+:\/\/|\/\/)/i;class pu extends ls{}const js={},iL=new WeakMap,lue=[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"],fue=e=>lue.some(t=>t(e)),pue={key:"$ref",plugin:(e,t,r,n)=>{const i=n.getInstance(),s=r.slice(0,-1);if(O9(s)||fue(s))return;const{baseDoc:a}=n.getContext(r);if(typeof e!="string")return new pu("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:a,fullPath:r});const o=R9(e),u=o[0],c=o[1]||"";let l;try{l=a||u?C9(u,a):null}catch(y){return tA(y,{pointer:c,$ref:e,basePath:l,fullPath:r})}let f,h;if(yue(c,l,s,n)&&!i.useCircularStructures){const y=eA(e,l);return e===y?null:Jt.replace(r,y)}if(l==null?(h=XC(c),f=n.get(h),typeof f>"u"&&(f=new pu(`Could not resolve reference: ${e}`,{pointer:c,$ref:e,baseDoc:a,fullPath:r}))):(f=T9(l,c),f.__value!=null?f=f.__value:f=f.catch(y=>{throw tA(y,{pointer:c,$ref:e,baseDoc:a,fullPath:r})})),f instanceof Error)return[Jt.remove(r),f];const d=eA(e,l),g=Jt.replace(s,f,{$$ref:d});if(l&&l!==a)return[g,Jt.context(s,{baseDoc:l})];try{if(!vue(n.state,g)||i.useCircularStructures)return g}catch{return null}}},YC=Object.assign(pue,{docCache:js,absoluteify:C9,clearCache:due,JSONRefError:pu,wrapError:tA,getDoc:I9,split:R9,extractFromDoc:T9,fetchJSON:hue,extract:rA,jsonPointerToArray:XC,unescapeJsonPointerToken:j9});function C9(e,t){if(!cue.test(e)){if(!t)throw new pu(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Zr(t,e)}return e}function tA(e,t){let r;return e&&e.response&&e.response.body?r=`${e.response.body.code} ${e.response.body.message}`:r=e.message,new pu(`Could not resolve reference: ${r}`,{...t,cause:e})}function R9(e){return(e+"").split("#")}function T9(e,t){const r=js[e];if(r&&!Jt.isPromise(r))try{const n=rA(t,r);return Object.assign(Promise.resolve(n),{__value:n})}catch(n){return Promise.reject(n)}return I9(e).then(n=>rA(t,n))}function due(e){typeof e<"u"?delete js[e]:Object.keys(js).forEach(t=>{delete js[t]})}function I9(e){const t=js[e];return t?Jt.isPromise(t)?t:Promise.resolve(t):(js[e]=YC.fetchJSON(e).then(r=>(js[e]=r,r)),js[e])}function hue(e){return fetch(e,{headers:{Accept:x9},loadSpec:!0}).then(t=>t.text()).then(t=>Xa.load(t))}function rA(e,t){const r=XC(e);if(r.length<1)return t;const n=Jt.getIn(t,r);if(typeof n>"u")throw new pu(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function XC(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(j9)}function j9(e){return typeof e!="string"?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function P9(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}function mue(e){return e.length===0?"":`/${e.map(P9).join("/")}`}const gue=e=>!e||e==="/"||e==="#";function yw(e,t){if(gue(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return e.indexOf(t)===0&&(!r||r==="/"||r==="#")&&n!=="#"}function yue(e,t,r,n){let i=iL.get(n);i||(i={},iL.set(n,i));const s=mue(r),a=`${t||"<specmap-base>"}#${e}`,o=s.replace(/allOf\/\d+\/?/g,""),u=n.contextTree.get([]).baseDoc;if(t===u&&yw(o,e))return!0;let c="";if(r.some(f=>(c=`${c}/${P9(f)}`,i[c]&&i[c].some(h=>yw(h,a)||yw(a,h)))))return!0;i[o]=(i[o]||[]).concat(a)}function vue(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 Jt.isObject(i)&&(r.indexOf(i)>=0||Object.keys(i).some(s=>n(i[s])))}}const bue={key:"allOf",plugin:(e,t,r,n,i)=>{if(i.meta&&i.meta.$$ref)return;const s=r.slice(0,-1);if(O9(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 d=new TypeError("Elements in allOf must be objects");return d.fullPath=r,u.push(d)}u.push(n.mergeDeep(s,c));const f=r.slice(0,-1),h=uue(c,f,{getBaseUrlForNodePath:d=>n.getContext([...r,l,...d]).baseDoc,specmap:n});u.push(...h)}),o.example&&u.push(n.remove([].concat(s,"example"))),u.push(n.mergeDeep(s,o)),o.$$ref||u.push(n.remove([].concat(s,"$$ref"))),u}},_ue={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const i=Object.assign([],e),s=r.slice(0,-1),a={...Jt.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 Jt.replace(r,i)}return Jt.replace(r,e)}},Eue={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 Jt.replace(r,i)}};class Sue{constructor(t){this.root=vw(t||{})}set(t,r){const n=this.getParent(t,!0);if(!n){fd(this.root,r,null);return}const i=t[t.length-1],{children:s}=n;if(s[i]){fd(s[i],r,n);return}s[i]=vw(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]=vw(null,n)),s[i]},this.root)}}function vw(e,t){return fd({children:{}},e,t)}function fd(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]=fd(i,i.value,e)}),e}const sL=100,aL=()=>{};class wue{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 Sue,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Jt,{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(Jt.isFunction),this.patches.push(Jt.add([],this.spec)),this.patches.push(Jt.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]):Jt.isFunction(t)?s=t:Jt.isObject(t)&&(s=a(t)),Object.assign(s.bind(i),{pluginName:t.name||r,isGenerator:Jt.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(Jt.isAdditiveMutation).entries())if(g<A9)yield*d(y.value,y.path,y);else return;function*d(g,y,v){if(!Jt.isObject(g))o.key===y[y.length-1]&&(yield o.plugin(g,o.key,y,f));else{const _=y.length-1,b=y[_],S=y.indexOf("properties"),w=b==="properties"&&_===S,E=f.allowMetaPatches&&h[g.$$ref];for(const A of Object.keys(g)){const R=g[A],I=y.concat(A),O=Jt.isObject(R),D=g.$$ref;if(E||O&&(f.allowMetaPatches&&D&&u(n,I)&&(h[D]=!0),yield*d(R,I,v)),!w&&A===o.key){const P=u(n,y);(!n||P)&&(yield o.plugin(R,A,I,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){Jt.normalizeArray(t).forEach(r=>{if(r instanceof Error){this.errors.push(r);return}try{if(!Jt.isObject(r)){this.debug("updatePatches","Got a non-object patch",r);return}if(this.showDebug&&this.allPatches.push(r),Jt.isPromise(r.value)){this.promisedPatches.push(r),this.promisedPatchThen(r);return}if(Jt.isContextPatch(r)){this.setContext(r.path,r.value);return}Jt.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=Jt.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 Jt.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]>sL)return Promise.resolve({spec:t.state,errors:t.errors.concat(new Error(`We've reached a hard limit of ${sL} 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(aL,aL))).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=Jt.fullyNormalizeArray(s),t.updatePatches(s,r))}}}function xue(e){return new wue(e).dispatch()}const ko={refs:YC,allOf:bue,parameters:_ue,properties:Eue};function k9(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:x9},credentials:i}).then(a=>a.body)}function ZC(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 N9(e,t){return Array.isArray(e)&&e.some(r=>ZC(r,t))}class nA extends File{constructor(t,r="",n={}){super([t],r,n),this.data=t}valueOf(){return this.data}toString(){return this.valueOf()}}const Aue=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Oue=e=>/^[a-z0-9\-._~]+$/i.test(e);function M9(e,t="reserved"){return[...e].map(r=>{if(Oue(r)||Aue(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 QC(e){const{value:t}=e;return Array.isArray(t)?Cue(e):typeof t=="object"?Rue(e):Tue(e)}function Qr(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?M9(e,t):e??""}function Cue({key:e,value:t,style:r,explode:n,escape:i}){if(r==="simple")return t.map(s=>Qr(s,i)).join(",");if(r==="label")return`.${t.map(s=>Qr(s,i)).join(".")}`;if(r==="matrix")return t.map(s=>Qr(s,i)).reduce((s,a)=>!s||n?`${s||""};${e}=${a}`:`${s},${a}`,"");if(r==="form"){const s=n?`&${e}=`:",";return t.map(a=>Qr(a,i)).join(s)}if(r==="spaceDelimited"){const s=n?`${e}=`:"";return t.map(a=>Qr(a,i)).join(` ${s}`)}if(r==="pipeDelimited"){const s=n?`${e}=`:"";return t.map(a=>Qr(a,i)).join(`|${s}`)}}function Rue({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=Qr(t[o],i),c=n?"=":",";return`${a?`${a},`:""}${o}${c}${u}`},"");if(r==="label")return s.reduce((a,o)=>{const u=Qr(t[o],i),c=n?"=":".";return`${a?`${a}.`:"."}${o}${c}${u}`},"");if(r==="matrix"&&n)return s.reduce((a,o)=>{const u=Qr(t[o],i);return`${a?`${a};`:";"}${o}=${u}`},"");if(r==="matrix")return s.reduce((a,o)=>{const u=Qr(t[o],i);return`${a?`${a},`:`;${e}=`}${o},${u}`},"");if(r==="form")return s.reduce((a,o)=>{const u=Qr(t[o],i);return`${a?`${a}${n?"&":","}`:""}${o}${n?"=":","}${u}`},"")}function Tue({key:e,value:t,style:r,escape:n}){if(r==="simple")return Qr(t,n);if(r==="label")return`.${Qr(t,n)}`;if(r==="matrix")return`;${e}=${Qr(t,n)}`;if(r==="form"||r==="deepObject")return Qr(t,n)}const Iue={form:",",spaceDelimited:"%20",pipeDelimited:"|"},jue={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(ZC(o)||N9(o))return[[c,o]];if(s)return oL(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 oL(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),d=u(h),g=new nA(d,"blob",{type:a.contentType});return[[c,g]]}const l=u(String(o)),f=new nA(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(jue[n||"csv"])]]:[[c,""]]}function oL(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=>Qr(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(Iue[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 Pue(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 kue=(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 uL(e){const t=Object.keys(e).reduce((r,n)=>{for(const[i,s]of D9(n,e[n]))s instanceof nA?r[i]=s.valueOf():r[i]=s;return r},{});return kue(t,{encode:!1})}function eR(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 ZC(u)||N9(u)}),a=e.headers["content-type"]||e.headers["Content-Type"];if(s||/multipart\/form-data/i.test(a)){const o=Pue(e.form);e.formdata=o,e.body=o}else e.body=uL(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,uL(r));e.url=s+u,delete e.query}return e}const Nue=(e="")=>/(json|xml|yaml|text)\b/.test(e);function Mue(e,t){if(t){if(t.indexOf("application/json")===0||t.indexOf("+json")>0)return JSON.parse(e);if(t.indexOf("application/xml")===0||t.indexOf("+xml")>0)return e}return Xa.load(e)}function Due(e){return e.includes(", ")?e.split(", "):e}function que(e={}){return typeof e.entries!="function"?{}:Array.from(e.entries()).reduce((t,[r,n])=>(t[r]=Due(n),t),{})}function q9(e,t,{loadSpec:r=!1}={}){const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:que(e.headers)},i=n.headers["content-type"],s=r||Nue(i);return(s?e.text:e.blob||e.buffer).call(e).then(o=>{if(n.text=o,n.data=o,s)try{const u=Mue(o,i);n.body=u,n.obj=u}catch(u){n.parseError=u}return n})}async function Uc(e,t={}){typeof e=="object"&&(t=e,e=t.url),t.headers=t.headers||{},t=eR(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 q9(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 Fue(e,t,r){return r=r||(n=>n),t=t||(n=>n),n=>(typeof n=="string"&&(n={url:n}),n=eR(n),n=t(n),r(e(n)))}const tR=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},F9=e=>{const{fetch:t,http:r}=e;return t||r||Uc};async function rR(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=tR(e),d=F9(e),g=f.find(v=>v.match(t));return y(t);async function y(v){h&&(ko.refs.docCache[h]=v),ko.refs.fetchJSON=k9(d,{requestInterceptor:o,responseInterceptor:u});const _=[ko.refs];typeof a=="function"&&_.push(ko.parameters),typeof s=="function"&&_.push(ko.properties),r!=="strict"&&_.push(ko.allOf);const b=await xue({spec:v,context:{baseDoc:h},plugins:_,allowMetaPatches:n,pathDiscriminator:i,parameterMacro:a,modelPropertyMacro:s,useCircularStructures:l});return c||(b.spec=g.normalize(b.spec)),b}}const $9=e=>e.replace(/\W/gi,"_");function $ue(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()}${$9(e)}`}function Yh(e,t,r="",{v2OperationIdCompatibilityMode:n}={}){return!e||typeof e!="object"?null:(e.operationId||"").replace(/\s/g,"").length?$9(e.operationId):$ue(t,r,{v2OperationIdCompatibilityMode:n})}function nR(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=Yh(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 d in h)if(!Array.isArray(u[d]))u[d]=h[d];else if(d==="parameters")for(const g of h[d])u[d].some(v=>!$i(v)&&!$i(g)?!1:v===g?!0:["name","$ref","$$ref"].some(_=>typeof v[_]=="string"&&typeof g[_]=="string"&&v[_]===g[_]))||u[d].push(g)}}}}return t.$$normalized=!0,e}const L9={name:"generic",match(){return!0},normalize(e){const{spec:t}=nR({spec:e});return t},async resolve(e){return rR(e)}};async function Lue(e){return rR(e)}const Bue=e=>{try{const{swagger:t}=e;return t==="2.0"}catch{return!1}},B9=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},iR=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},U9=e=>B9(e)||iR(e),V9={name:"openapi-2",match(e){return Bue(e)},normalize(e){const{spec:t}=nR({spec:e});return t},async resolve(e){return Lue(e)}};async function Uue(e){return rR(e)}const z9={name:"openapi-3-0",match(e){return B9(e)},normalize(e){const{spec:t}=nR({spec:e});return t},async resolve(e){return Uue(e)}},Vue=e=>{try{const t=e.startsWith("#")?e.slice(1):e;return decodeURIComponent(t)}catch{return e}},di=e=>{const t=e.indexOf("#"),r=t===-1?"#":e.substring(t);return Vue(r)};function Vl(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let t="";return t+=`; JavaScript Object Notation (JSON) Pointer ABNF syntax
|
|
105
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6901
|
|
106
|
+
`,t+=`json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used
|
|
107
|
+
`,t+=`reference-token = *( unescaped / escaped )
|
|
108
|
+
`,t+=`unescaped = %x00-2E / %x30-7D / %x7F-10FFFF
|
|
109
|
+
`,t+=` ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'
|
|
110
|
+
`,t+=`escaped = "~" ( "0" / "1" )
|
|
111
|
+
`,t+=` ; representing '~' and '/', respectively
|
|
112
|
+
`,t+=`
|
|
113
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6901#section-4
|
|
114
|
+
`,t+=`array-location = array-index / array-dash
|
|
115
|
+
`,t+=`array-index = %x30 / ( %x31-39 *(%x30-39) )
|
|
116
|
+
`,t+=` ; "0", or digits without a leading "0"
|
|
117
|
+
`,t+=`array-dash = "-"
|
|
118
|
+
`,t+=`
|
|
119
|
+
`,t+=`; Surrogate named rules
|
|
120
|
+
`,t+=`slash = "/"
|
|
121
|
+
`,t}}const xi=function(){const t=_t,r=ti,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,d,g,y=new s,v,_,b;const S=()=>{a=0,o=0,u=0,c=0,l=0,f=void 0,h=void 0,d=void 0,g=void 0,y.refresh(),v=void 0,_=void 0,b=void 0},w=()=>{const re=`${i}initializeCallbacks(): `;let ne;for(v=[],_=[],ne=0;ne<f.length;ne+=1)v[ne]=void 0;for(ne=0;ne<h.length;ne+=1)_[ne]=void 0;let U;const H=[];for(ne=0;ne<f.length;ne+=1)H.push(f[ne].lower);for(ne=0;ne<h.length;ne+=1)H.push(h[ne].lower);for(const ie in n.callbacks)if(n.callbacks.hasOwnProperty(ie)){if(ne=H.indexOf(ie.toLowerCase()),ne<0)throw new Error(`${re}syntax callback '${ie}' not a rule or udt name`);if(U=n.callbacks[ie]?n.callbacks[ie]:void 0,typeof U=="function"||U===void 0)ne<f.length?v[ne]=U:_[ne-f.length]=U;else throw new Error(`${re}syntax callback[${ie}] must be function reference or falsy)`)}};n.parse=(re,ne,U,H)=>{const ie=`${i}parse(): `;S(),g=r.stringToChars(U),f=re.rules,h=re.udts;const ue=ne.toLowerCase();let le;for(const z in f)if(f.hasOwnProperty(z)&&ue===f[z].lower){le=f[z].index;break}if(le===void 0)throw new Error(`${ie}start rule name '${startRule}' not recognized`);w(),n.trace&&n.trace.init(f,h,g),n.stats&&n.stats.init(f,h),n.ast&&n.ast.init(f,h,g),b=H,d=[{type:t.RNM,index:le}],Q(0,0),d=void 0;let ee=!1;switch(y.state){case t.ACTIVE:throw new Error(`${ie}final state should never be 'ACTIVE'`);case t.NOMATCH:ee=!1;break;case t.EMPTY:case t.MATCH:y.phraseLength===g.length?ee=!0:ee=!1;break;default:throw new Error("unrecognized state")}return{success:ee,state:y.state,stateName:t.idName(y.state),length:g.length,matched:y.phraseLength,maxMatched:l,maxTreeDepth:u,nodeHits:c}};const E=(re,ne)=>{const U=d[re];for(let H=0;H<U.children.length&&(Q(U.children[H],ne),y.state===t.NOMATCH);H+=1);},A=(re,ne)=>{let U,H,ie,ue;const le=d[re];n.ast&&(H=n.ast.getLength()),U=!0,ie=ne,ue=0;for(let ee=0;ee<le.children.length;ee+=1)if(Q(le.children[ee],ie),y.state===t.NOMATCH){U=!1;break}else ie+=y.phraseLength,ue+=y.phraseLength;U?(y.state=ue===0?t.EMPTY:t.MATCH,y.phraseLength=ue):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(H))},R=(re,ne)=>{let U,H,ie,ue;const le=d[re];if(le.max===0){y.state=t.EMPTY,y.phraseLength=0;return}for(H=ne,ie=0,ue=0,n.ast&&(U=n.ast.getLength());!(H>=g.length||(Q(re+1,H),y.state===t.NOMATCH)||y.state===t.EMPTY||(ue+=1,ie+=y.phraseLength,H+=y.phraseLength,ue===le.max)););y.state===t.EMPTY||ue>=le.min?(y.state=ie===0?t.EMPTY:t.MATCH,y.phraseLength=ie):(y.state=t.NOMATCH,y.phraseLength=0,n.ast&&n.ast.setLength(U))},I=(re,ne,U,H)=>{if(ne.phraseLength>U){let ie=`${i}opRNM(${re.name}): callback function error: `;throw ie+=`sysData.phraseLength: ${ne.phraseLength}`,ie+=` must be <= remaining chars: ${U}`,new Error(ie)}switch(ne.state){case t.ACTIVE:if(!H)throw new Error(`${i}opRNM(${re.name}): callback function return error. ACTIVE state not allowed.`);break;case t.EMPTY:ne.phraseLength=0;break;case t.MATCH:ne.phraseLength===0&&(ne.state=t.EMPTY);break;case t.NOMATCH:ne.phraseLength=0;break;default:throw new Error(`${i}opRNM(${re.name}): callback function return error. Unrecognized return state: ${ne.state}`)}},O=(re,ne)=>{let U,H,ie;const ue=d[re],le=f[ue.index],ee=v[le.index];if(a||(H=n.ast&&n.ast.ruleDefined(ue.index),H&&(U=n.ast.getLength(),n.ast.down(ue.index,f[ue.index].name))),ee){const z=g.length-ne;ee(y,g,ne,b),I(le,y,z,!0),y.state===t.ACTIVE&&(ie=d,d=le.opcodes,Q(0,ne),d=ie,ee(y,g,ne,b),I(le,y,z,!1))}else ie=d,d=le.opcodes,Q(0,ne),d=ie;a||H&&(y.state===t.NOMATCH?n.ast.setLength(U):n.ast.up(ue.index,le.name,ne,y.phraseLength))},D=(re,ne)=>{const U=d[re];y.state=t.NOMATCH,ne<g.length&&U.min<=g[ne]&&g[ne]<=U.max&&(y.state=t.MATCH,y.phraseLength=1)},P=(re,ne)=>{const U=d[re],H=U.string.length;if(y.state=t.NOMATCH,ne+H<=g.length){for(let ie=0;ie<H;ie+=1)if(g[ne+ie]!==U.string[ie])return;y.state=t.MATCH,y.phraseLength=H}},F=(re,ne)=>{let U;const H=d[re];y.state=t.NOMATCH;const ie=H.string.length;if(ie===0){y.state=t.EMPTY;return}if(ne+ie<=g.length){for(let ue=0;ue<ie;ue+=1)if(U=g[ne+ue],U>=65&&U<=90&&(U+=32),U!==H.string[ue])return;y.state=t.MATCH,y.phraseLength=ie}},M=(re,ne,U)=>{if(ne.phraseLength>U){let H=`${i}opUDT(${re.name}): callback function error: `;throw H+=`sysData.phraseLength: ${ne.phraseLength}`,H+=` must be <= remaining chars: ${U}`,new Error(H)}switch(ne.state){case t.ACTIVE:throw new Error(`${i}opUDT(${re.name}) ACTIVE state return not allowed.`);case t.EMPTY:if(re.empty)ne.phraseLength=0;else throw new Error(`${i}opUDT(${re.name}) may not return EMPTY.`);break;case t.MATCH:if(ne.phraseLength===0)if(re.empty)ne.state=t.EMPTY;else throw new Error(`${i}opUDT(${re.name}) may not return EMPTY.`);break;case t.NOMATCH:ne.phraseLength=0;break;default:throw new Error(`${i}opUDT(${re.name}): callback function return error. Unrecognized return state: ${ne.state}`)}},K=(re,ne)=>{let U,H,ie;const ue=d[re],le=h[ue.index];y.UdtIndex=le.index,a||(ie=n.ast&&n.ast.udtDefined(ue.index),ie&&(H=f.length+ue.index,U=n.ast.getLength(),n.ast.down(H,le.name)));const ee=g.length-ne;_[ue.index](y,g,ne,b),M(le,y,ee),a||ie&&(y.state===t.NOMATCH?n.ast.setLength(U):n.ast.up(H,le.name,ne,y.phraseLength))},te=(re,ne)=>{switch(a+=1,Q(re+1,ne),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}`)}},J=(re,ne)=>{switch(a+=1,Q(re+1,ne),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}`)}},Q=(re,ne)=>{const U=`${i}opExecute(): `,H=d[re];switch(c+=1,o>u&&(u=o),o+=1,y.refresh(),n.trace&&n.trace.down(H,ne),H.type){case t.ALT:E(re,ne);break;case t.CAT:A(re,ne);break;case t.REP:R(re,ne);break;case t.RNM:O(re,ne);break;case t.TRG:D(re,ne);break;case t.TBS:P(re,ne);break;case t.TLS:F(re,ne);break;case t.UDT:K(re,ne);break;case t.AND:te(re,ne);break;case t.NOT:J(re,ne);break;default:throw new Error(`${U}unrecognized operator`)}a||ne+y.phraseLength>l&&(l=ne+y.phraseLength),n.stats&&n.stats.collect(H,y),n.trace&&n.trace.up(H,y.state,ne,y.phraseLength),o-=1}},sR=function(){const t="parser.js: Ast()): ",r=_t,n=ti,i=this;let s,a,o,u=0;const c=[],l=[],f=[];i.callbacks=[],i.init=(d,g,y)=>{l.length=0,f.length=0,u=0,s=d,a=g,o=y;let v;const _=[];for(v=0;v<s.length;v+=1)_.push(s[v].lower);for(v=0;v<a.length;v+=1)_.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=_.indexOf(S),v<0)throw new Error(`${t}init: node '${b}' not a rule or udt name`);c[v]=i.callbacks[b]}},i.ruleDefined=d=>!!c[d],i.udtDefined=d=>!!c[s.length+d],i.down=(d,g)=>{const y=f.length;return l.push(y),f.push({name:g,thisIndex:y,thatIndex:void 0,state:r.SEM_PRE,callbackIndex:d,phraseIndex:void 0,phraseLength:void 0,stack:l.length}),y},i.up=(d,g,y,v)=>{const _=f.length,b=l.pop();return f.push({name:g,thisIndex:_,thatIndex:b,state:r.SEM_POST,callbackIndex:d,phraseIndex:y,phraseLength:v,stack:l.length}),f[b].thatIndex=_,f[b].phraseIndex=y,f[b].phraseLength=v,_},i.translate=d=>{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,d):g&&g(r.SEM_POST,o,y.phraseIndex,y.phraseLength,d))},i.setLength=d=>{f.length=d,d>0?l.length=f[d-1].stack:l.length=0},i.getLength=()=>f.length;function h(d){let g="";for(;d-- >0;)g+=" ";return g}i.toXml=()=>{let d="",g=0;return d+=`<?xml version="1.0" encoding="utf-8"?>
|
|
122
|
+
`,d+=`<root nodes="${f.length/2}" characters="${o.length}">
|
|
123
|
+
`,d+=`<!-- input string -->
|
|
124
|
+
`,d+=h(g+2),d+=n.charsToString(o),d+=`
|
|
125
|
+
`,f.forEach(y=>{y.state===r.SEM_PRE?(g+=1,d+=h(g),d+=`<node name="${y.name}" index="${y.phraseIndex}" length="${y.phraseLength}">
|
|
126
|
+
`,d+=h(g+2),d+=n.charsToString(o,y.phraseIndex,y.phraseLength),d+=`
|
|
127
|
+
`):(d+=h(g),d+=`</node><!-- name="${y.name}" -->
|
|
128
|
+
`,g-=1)}),d+=`</root>
|
|
129
|
+
`,d}},zue=function(){const t=_t,r=ti,n="parser.js: Trace(): ";let i,s,a,o="",u=0;const c=100,l=this,f=d=>{let g="",y=0;if(d>=0)for(;d--;)y+=1,y===5?(g+="|",y=0):g+=".";return g};l.init=(d,g,y)=>{s=d,a=g,i=y};const h=d=>{let g;switch(d.type){case t.ALT:g="ALT";break;case t.CAT:g="CAT";break;case t.REP:d.max===1/0?g=`REP(${d.min},inf)`:g=`REP(${d.min},${d.max})`;break;case t.RNM:g=`RNM(${s[d.index].name})`;break;case t.TRG:g=`TRG(${d.min},${d.max})`;break;case t.TBS:d.string.length>6?g=`TBS(${r.charsToString(d.string,0,3)}...)`:g=`TBS(${r.charsToString(d.string,0,6)})`;break;case t.TLS:d.string.length>6?g=`TLS(${r.charsToString(d.string,0,3)}...)`:g=`TLS(${r.charsToString(d.string,0,6)})`;break;case t.UDT:g=`UDT(${a[d.index].name})`;break;case t.AND:g="AND";break;case t.NOT:g="NOT";break;default:throw new Error(`${n}Trace: opName: unrecognized opcode`)}return g};l.down=(d,g)=>{const y=f(u),v=Math.min(c,i.length-g);let _=r.charsToString(i,g,v);v<i.length-g&&(_+="..."),_=`${y}|-|[${h(d)}]${_}
|
|
130
|
+
`,o+=_,u+=1},l.up=(d,g,y,v)=>{const _=`${n}trace.up: `;u-=1;const b=f(u);let S,w,E;switch(g){case t.EMPTY:E="|E|",w="''";break;case t.MATCH:E="|M|",S=Math.min(c,v),S<v?w=`'${r.charsToString(i,y,S)}...'`:w=`'${r.charsToString(i,y,S)}'`;break;case t.NOMATCH:E="|N|",w="";break;default:throw new Error(`${_} unrecognized state`)}w=`${b}${E}[${h(d)}]${w}
|
|
131
|
+
`,o+=w},l.displayTrace=()=>o},Wue=function(){const t=_t,r="parser.js: Stats(): ";let n,i,s;const a=[],o=[],u=[];this.init=(v,_)=>{n=v,i=_,g()},this.collect=(v,_)=>{y(s,_.state,_.phraseLength),y(a[v.type],_.state,_.phraseLength),v.type===t.RNM&&y(o[v.index],_.state,_.phraseLength),v.type===t.UDT&&y(u[v.index],_.state,_.phraseLength)},this.displayStats=()=>{let v="";const _={match:0,empty:0,nomatch:0,total:0},b=(S,w,E,A,R)=>{_.match+=w,_.empty+=E,_.nomatch+=A,_.total+=R;const I=c(w),O=c(E),D=c(A),P=c(R);return`${S} | ${I} | ${O} | ${D} | ${P} |
|
|
132
|
+
`};return v+=` OPERATOR STATS
|
|
133
|
+
`,v+=` | MATCH | EMPTY | NOMATCH | TOTAL |
|
|
134
|
+
`,v+=b(" ALT",a[t.ALT].match,a[t.ALT].empty,a[t.ALT].nomatch,a[t.ALT].total),v+=b(" CAT",a[t.CAT].match,a[t.CAT].empty,a[t.CAT].nomatch,a[t.CAT].total),v+=b(" REP",a[t.REP].match,a[t.REP].empty,a[t.REP].nomatch,a[t.REP].total),v+=b(" RNM",a[t.RNM].match,a[t.RNM].empty,a[t.RNM].nomatch,a[t.RNM].total),v+=b(" TRG",a[t.TRG].match,a[t.TRG].empty,a[t.TRG].nomatch,a[t.TRG].total),v+=b(" TBS",a[t.TBS].match,a[t.TBS].empty,a[t.TBS].nomatch,a[t.TBS].total),v+=b(" TLS",a[t.TLS].match,a[t.TLS].empty,a[t.TLS].nomatch,a[t.TLS].total),v+=b(" UDT",a[t.UDT].match,a[t.UDT].empty,a[t.UDT].nomatch,a[t.UDT].total),v+=b(" AND",a[t.AND].match,a[t.AND].empty,a[t.AND].nomatch,a[t.AND].total),v+=b(" NOT",a[t.NOT].match,a[t.NOT].empty,a[t.NOT].nomatch,a[t.NOT].total),v+=b("TOTAL",_.match,_.empty,_.nomatch,_.total),v},this.displayHits=v=>{let _="";const b=(S,w,E,A,R)=>{s.match+=S,s.empty+=w,s.nomatch+=E,s.total+=A;const I=c(S),O=c(w),D=c(E),P=c(A);return`| ${I} | ${O} | ${D} | ${P} | ${R}
|
|
135
|
+
`};typeof v=="string"&&v.toLowerCase()[0]==="a"?(o.sort(l),u.sort(l),_+=` RULES/UDTS ALPHABETICALLY
|
|
136
|
+
`):typeof v=="string"&&v.toLowerCase()[0]==="i"?(o.sort(h),u.sort(h),_+=` RULES/UDTS BY INDEX
|
|
137
|
+
`):(o.sort(f),u.sort(f),_+=` RULES/UDTS BY HIT COUNT
|
|
138
|
+
`),_+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME
|
|
139
|
+
`;for(let S=0;S<o.length;S+=1){let w=o[S];w.total&&(_+=b(w.match,w.empty,w.nomatch,w.total,w.name))}for(let S=0;S<u.length;S+=1){let w=u[S];w.total&&(_+=b(w.match,w.empty,w.nomatch,w.total,w.name))}return _};const c=v=>v<10?` ${v}`:v<100?` ${v}`:v<1e3?` ${v}`:v<1e4?` ${v}`:v<1e5?` ${v}`:v<1e6?` ${v}`:`${v}`,l=(v,_)=>v.lower<_.lower?-1:v.lower>_.lower?1:0,f=(v,_)=>v.total<_.total?1:v.total>_.total?-1:l(v,_),h=(v,_)=>v.index<_.index?-1:v.index>_.index?1:0,d=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},g=()=>{a.length=0,s=new d,a[t.ALT]=new d,a[t.CAT]=new d,a[t.REP]=new d,a[t.RNM]=new d,a[t.TRG]=new d,a[t.TBS]=new d,a[t.TLS]=new d,a[t.UDT]=new d,a[t.AND]=new d,a[t.NOT]=new d,o.length=0;for(let v=0;v<n.length;v+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:n[v].name,lower:n[v].lower,index:n[v].index});if(i.length>0){u.length=0;for(let v=0;v<i.length;v+=1)u.push({empty:0,match:0,nomatch:0,total:0,name:i[v].name,lower:i[v].lower,index:i[v].index})}},y=(v,_)=>{switch(v.total+=1,_){case t.EMPTY:v.empty+=1;break;case t.MATCH:v.match+=1;break;case t.NOMATCH:v.nomatch+=1;break;default:throw new Error(`${r}collect(): incStat(): unrecognized state: ${_}`)}}},ti={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)}},_t={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 _t.ALT:return"ALT";case _t.CAT:return"CAT";case _t.REP:return"REP";case _t.RNM:return"RNM";case _t.TRG:return"TRG";case _t.TBS:return"TBS";case _t.TLS:return"TLS";case _t.UDT:return"UDT";case _t.AND:return"AND";case _t.NOT:return"NOT";case _t.ACTIVE:return"ACTIVE";case _t.EMPTY:return"EMPTY";case _t.MATCH:return"MATCH";case _t.NOMATCH:return"NOMATCH";case _t.SEM_PRE:return"SEM_PRE";case _t.SEM_POST:return"SEM_POST";case _t.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};class aa extends Error{constructor(t,r=void 0){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.prototype.hasOwnProperty.call(r,"cause")&&!("cause"in this)){const{cause:n}=r;this.cause=n,n instanceof Error&&"stack"in n&&(this.stack=`${this.stack}
|
|
140
|
+
CAUSE: ${n.stack}`)}if(r!=null&&typeof r=="object"){const{cause:n,...i}=r;Object.assign(this,i)}}}class W9 extends aa{}const bw=e=>(t,r,n,i,s)=>{if(!(typeof s=="object"&&s!==null&&!Array.isArray(s)))throw new W9("parser's user data must be an object");if(t===_t.SEM_PRE){const a={type:e,text:ti.charsToString(r,n,i),start:n,length:i,children:[]};s.stack.length>0?s.stack[s.stack.length-1].children.push(a):s.root=a,s.stack.push(a)}t===_t.SEM_POST&&s.stack.pop()};class Jue extends sR{constructor(){super(),this.callbacks["json-pointer"]=bw("json-pointer"),this.callbacks["reference-token"]=bw("reference-token"),this.callbacks.slash=bw("text")}getTree(){const t={stack:[],root:null};return this.translate(t),delete t.stack,t}}const Hue=e=>{if(typeof e!="string")throw new TypeError("Reference token must be a string");return e.replace(/~1/g,"/").replace(/~0/g,"~")};class Kue extends Jue{getTree(){const{root:t}=super.getTree();return t.children.filter(({type:r})=>r==="reference-token").map(({text:r})=>Hue(r))}}class Gue extends Array{toString(){return this.map(t=>`"${String(t)}"`).join(", ")}}class Yue extends zue{inferExpectations(){const t=this.displayTrace().split(`
|
|
141
|
+
`),r=new Set;let n=-1;for(let i=0;i<t.length;i++){const s=t[i];if(s.includes("M|")){const a=s.match(/]'(.*)'$/);a&&a[1]&&(n=i)}if(i>n){const a=s.match(/N\|\[TLS\(([^)]+)\)]/);a&&r.add(a[1])}}return new Gue(...r)}}const Xue=new Vl,Zue=(e,{translator:t=new Kue,stats:r=!1,trace:n=!1}={})=>{if(typeof e!="string")throw new TypeError("JSON Pointer must be a string");try{const i=new xi;t&&(i.ast=t),r&&(i.stats=new Wue),n&&(i.trace=new Yue);const s=i.parse(Xue,"json-pointer",e);return{result:s,tree:s.success&&t?i.ast.getTree():void 0,stats:i.stats,trace:i.trace}}catch(i){throw new W9("Unexpected error during JSON Pointer parsing",{cause:i,jsonPointer:e})}};new Vl;new xi;new Vl;new xi;const Que=new Vl,ece=new xi,tce=e=>{if(typeof e!="string")return!1;try{return ece.parse(Que,"array-index",e).success}catch{return!1}},rce=new Vl,nce=new xi,ice=e=>{if(typeof e!="string")return!1;try{return nce.parse(rce,"array-dash",e).success}catch{return!1}},sce=e=>{if(typeof e!="string"&&typeof e!="number")throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};class ace extends aa{}const J9=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return e.length===0?"":`/${e.map(t=>{if(typeof t!="string"&&typeof t!="number")throw new TypeError("Reference token must be a string or number");return sce(String(t))}).join("/")}`}catch(t){throw new ace("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};var Jn,Yo,Xo;class oce{constructor(t,r={}){Os(this,Jn);Os(this,Yo);Os(this,Xo);Io(this,Jn,t),dr(this,Jn).steps=[],dr(this,Jn).failed=!1,dr(this,Jn).failedAt=-1,dr(this,Jn).message=`JSON Pointer "${r.jsonPointer}" was successfully evaluated against the provided value`,dr(this,Jn).context={...r,realm:r.realm.name},Io(this,Yo,[]),Io(this,Xo,r.realm)}step({referenceToken:t,input:r,output:n,success:i=!0,reason:s}){const a=dr(this,Yo).length;dr(this,Yo).push(t);const o={referenceToken:t,referenceTokenPosition:a,input:r,inputType:dr(this,Xo).isObject(r)?"object":dr(this,Xo).isArray(r)?"array":"unrecognized",output:n,success:i};s&&(o.reason=s),dr(this,Jn).steps.push(o),i||(dr(this,Jn).failed=!0,dr(this,Jn).failedAt=a,dr(this,Jn).message=s)}}Jn=new WeakMap,Yo=new WeakMap,Xo=new WeakMap;class H9{constructor(){X(this,"name","")}isArray(t){throw new aa("Realm.isArray(node) must be implemented in a subclass")}isObject(t){throw new aa("Realm.isObject(node) must be implemented in a subclass")}sizeOf(t){throw new aa("Realm.sizeOf(node) must be implemented in a subclass")}has(t,r){throw new aa("Realm.has(node) must be implemented in a subclass")}evaluate(t,r){throw new aa("Realm.evaluate(node) must be implemented in a subclass")}}class Ya extends aa{}class zo extends Ya{}class uce extends H9{constructor(){super(...arguments);X(this,"name","json")}isArray(r){return Array.isArray(r)}isObject(r){return typeof r=="object"&&r!==null&&!this.isArray(r)}sizeOf(r){return this.isArray(r)?r.length:this.isObject(r)?Object.keys(r).length:0}has(r,n){if(this.isArray(r)){const i=Number(n),s=i>>>0;if(i!==s)throw new zo(`Invalid array index "${n}": index must be an unsinged 32-bit integer`,{referenceToken:n,currentValue:r,realm:this.name});return s<this.sizeOf(r)&&Object.prototype.hasOwnProperty.call(r,i)}return this.isObject(r)?Object.prototype.hasOwnProperty.call(r,n):!1}evaluate(r,n){return this.isArray(r)?r[Number(n)]:r[n]}}class cce extends Ya{}class K9 extends Ya{}const lce=(e,t,{strictArrays:r=!0,strictObjects:n=!0,realm:i=new uce,trace:s=!0}={})=>{const{result:a,tree:o,trace:u}=Zue(t,{trace:!!s}),c=typeof s=="object"&&s!==null?new oce(s,{jsonPointer:t,referenceTokens:o,strictArrays:r,strictObjects:n,realm:i,value:e}):null;try{let l;if(!a.success){let f=`Invalid JSON Pointer: "${t}". Syntax error at position ${a.maxMatched}`;throw f+=u?`, expected ${u.inferExpectations()}`:"",new Ya(f,{jsonPointer:t,currentValue:e,realm:i.name})}return o.reduce((f,h,d)=>{if(i.isArray(f)){if(ice(h)){if(r)throw new zo(`Invalid array index "-" at position ${d} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,String(i.sizeOf(f))),c==null||c.step({referenceToken:h,input:f,output:l}),l}if(!tce(h))throw new zo(`Invalid array index "${h}" at position ${d} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});const g=Number(h);if(!Number.isSafeInteger(g))throw new zo(`Invalid array index "${h}" at position ${d} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});if(!i.has(f,h)&&r)throw new zo(`Invalid array index "${h}" at position ${d} in "${t}": index not found in array`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,h),c==null||c.step({referenceToken:h,input:f,output:l}),l}if(i.isObject(f)){if(!i.has(f,h)&&n)throw new K9(`Invalid object key "${h}" at position ${d} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name});return l=i.evaluate(f,h),c==null||c.step({referenceToken:h,input:f,output:l}),l}throw new cce(`Invalid reference token "${h}" at position ${d} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:o,referenceToken:h,referenceTokenPosition:d,currentValue:f,realm:i.name})},e)}catch(l){throw c==null||c.step({referenceToken:l.referenceToken,input:l.currentValue,success:!1,reason:l.message}),l instanceof Ya?l:new Ya("Unexpected error during JSON Pointer evaluation",{cause:l,jsonPointer:t,referenceTokens:o})}};class fce extends H9{constructor(){super(...arguments);X(this,"name","apidom")}isArray(r){return rn(r)}isObject(r){return Dt(r)}sizeOf(r){return this.isArray(r)||this.isObject(r)?r.length:0}has(r,n){if(this.isArray(r)){const i=Number(n),s=i>>>0;if(i!==s)throw new zo(`Invalid array index "${n}": index must be an unsinged 32-bit integer`,{referenceToken:n,currentValue:r,realm:this.name});return s<this.sizeOf(r)}if(this.isObject(r)){const i=r.keys(),s=new Set(i);if(i.length!==s.size)throw new K9(`Object key "${n}" is not unique — JSON Pointer requires unique member names`,{referenceToken:n,currentValue:r,realm:this.name});return r.hasKey(n)}return!1}evaluate(r,n){return this.isArray(r)?r.get(Number(n)):r.get(n)}}const Ni=(e,t,r={})=>lce(e,t,{...r,realm:new fce});class aR extends soe{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 Fh(this.filterByFormat(t))}}const du=new aR("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 zl=class extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="callback"}},Wl=class extends ve.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)}},Jl=class extends ve.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)}},Hl=class extends ve.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)}},Xh=class extends ve.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)}},Kl=class extends ve.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)}},Gl=class extends ve.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)}},Du=class extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ve.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ve.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(Du.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let Yl=class extends ve.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)}},Xl=class extends ve.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)}},Zl=class extends ve.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(ft(this.operationRef)){var t;return(t=this.operationRef)===null||t===void 0?void 0:t.meta.get("operation")}if(ft(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)}},Ql=class extends ve.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)}},Zh=class extends ve.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)}},Qh=class extends ve.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)}},ef=class extends ve.StringElement{constructor(t,r,n){super(t,r,n),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};class em extends ve.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 tf=class extends ve.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 ve.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)}},qu=class extends ve.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 ve.BooleanElement(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ve.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(qu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});let rf=class extends ve.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)}},nf=class extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="paths"}},sf=class extends ve.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)}},af=class extends ve.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 ve.BooleanElement(!1)}set required(t){this.set("required",t)}},of=class extends ve.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)}},uf=class extends ve.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)}},Fu=class extends ve.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 $u extends ve.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 cf extends ve.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 lf=class extends ve.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 pce={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Fu),t.register("jSONReference",$u),t.register("media",cf),t.register("linkDescription",lf),t}},ff=e=>{if(_r(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},dce={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...gs};let G9=class{constructor(t){X(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=yi(r.meta,t.meta)),ku(t)&&WC(r,t),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=yi(r.attributes,t.attributes))}},qt=class extends G9{enter(t){return this.element=Ye(t),Tt}};const Y9=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let i of r)delete n[i];Object.defineProperties(e,n)},Vc=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return r===null?t:Vc(r,[...t,r])},hce=(...e)=>{if(e.length===0)return;let t;const r=e.map(n=>Vc(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},cL=(e,t,r=[])=>{var n;const i=(n=hce(...e))!==null&&n!==void 0?n:Object.prototype,s=Object.create(i),a=Vc(i);for(let o of e){let u=Vc(o);for(let c=u.length-1;c>=0;c--){let l=u[c];a.indexOf(l)===-1&&(Y9(s,l,["constructor",...r]),a.push(l))}}return s.constructor=t,s},iA=e=>e.filter((t,r)=>e.indexOf(t)==r),X9=new WeakMap,mce=e=>X9.get(e),gce=(e,t)=>X9.set(e,t),lL=(e,t)=>{var r,n;const i=iA([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),s={};for(let a of i)s[a]=iA([...(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},fL=(e,t)=>{var r,n,i,s;return{property:lL((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:lL((i=e==null?void 0:e.method)!==null&&i!==void 0?i:{},(s=t==null?void 0:t.method)!==null&&s!==void 0?s:{})}},yce=(e,t)=>{var r,n,i,s,a,o;return{class:iA([...(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:fL((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:fL((a=e==null?void 0:e.instance)!==null&&a!==void 0?a:{},(o=t==null?void 0:t.instance)!==null&&o!==void 0?o:{})}},vce=new Map,bce=(...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let i of n){const s=Vc(i.prototype).map(c=>c.constructor),a=(t=mce(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]},_ce=(...e)=>{const t=bce(...e).map(r=>vce.get(r)).filter(r=>!!r);return t.length==0?{}:t.length==1?t[0]:t.reduce((r,n)=>yce(r,n))};function $e(...e){var t,r,n;const i=e.map(o=>o.prototype);function s(...o){for(const u of e)Y9(this,new u(...o))}s.prototype=cL(i,s),Object.setPrototypeOf(s,cL(e,null,["prototype"]));let a=s;{const o=_ce(...e);for(let u of(t=o==null?void 0:o.class)!==null&&t!==void 0?t:[]){const c=u(a);c&&(a=c)}pL((r=o==null?void 0:o.static)!==null&&r!==void 0?r:{},a),pL((n=o==null?void 0:o.instance)!==null&&n!==void 0?n:{},a.prototype)}return gce(a,e),a}const pL=(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 ri=class extends G9{constructor({specObj:r,...n}){super({...n});X(this,"specObj");X(this,"passingOptionsNames",["specObj","parent"]);this.specObj=r}retrievePassingOptions(){return C5(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=zr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return Lh(mo,["visitors",...r],this.specObj)?zr(["visitors",...r],this.specObj):zr(["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 qt&&(s==null?void 0:s.constructor)===qt?Ye(n):(kr(n,s,i),s.element)}},Qa=class extends ri{constructor({specPath:r,ignoredFields:n,...i}){super({...i});X(this,"specPath");X(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(ft(a)&&i.includes(Ie(a))&&!this.ignoredFields.includes(Ie(a))){const u=this.toRefractedElement([...n,"fixedFields",Ie(a)],s),c=new ve.MemberElement(Ye(a),u);this.copyMetaAndAttributes(o,c),c.classes.push("fixed-field"),this.element.content.push(c)}else this.ignoredFields.includes(Ie(a))||this.element.content.push(Ye(o))}),this.copyMetaAndAttributes(r,this.element),Tt}};class Nr{constructor({parent:t}){X(this,"parent");this.parent=t}}const Z9=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fu||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n)),oR=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof $u||e(n)&&t("JSONReference",n)&&r("object",n)),Q9=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cf||e(n)&&t("media",n)&&r("object",n)),Ece=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lf||e(n)&&t("linkDescription",n)&&r("object",n)),Sce=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:oR,isJSONSchemaElement:Z9,isLinkDescriptionElement:Ece,isMediaElement:Q9},Symbol.toStringTag,{value:"Module"}));let e7=class extends $e(Qa,Nr,qt){constructor(t){super(t),this.element=new Fu,this.specPath=lt(["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,Qa.prototype.ObjectElement.call(this,t)}handleDialectIdentifier(t){if(xa(this.parent)&&!ft(t.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Z9(this.parent)&&!ft(t.get("$schema"))){const r=cu(Ie(this.parent.meta.get("inheritedDialectIdentifier")),Ie(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",r)}}handleSchemaIdentifier(t,r="id"){const n=this.parent!==void 0?Ye(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ve.ArrayElement,i=Ie(t.get(r));Uh(i)&&n.push(i),this.element.setMetaProperty("ancestorsSchemaIdentifiers",n)}};const fs=e=>Dt(e)&&e.hasKey("$ref");let t7=class extends $e(ri,Nr,qt){ObjectElement(t){const r=fs(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(r,t),Tt}ArrayElement(t){return this.element=new ve.ArrayElement,this.element.classes.push("json-schema-items"),t.forEach(r=>{const n=fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),Tt}};class wce extends qt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-required"),r}}let xce=class extends ri{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,...s}){super({...s});X(this,"specPath");X(this,"ignoredFields");X(this,"fieldPatternPredicate",EC);this.specPath=r,this.ignoredFields=n||[],typeof i=="function"&&(this.fieldPatternPredicate=i)}ObjectElement(r){return r.forEach((n,i,s)=>{if(!this.ignoredFields.includes(Ie(i))&&this.fieldPatternPredicate(Ie(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new ve.MemberElement(Ye(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(Ie(i))||this.element.content.push(Ye(s))}),this.copyMetaAndAttributes(r,this.element),Tt}},Oa=class extends xce{constructor(t){super(t),this.fieldPatternPredicate=Uh}},Ace=class extends $e(Oa,Nr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=r=>fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}},Oce=class extends $e(Oa,Nr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=r=>fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};class Cce extends $e(Oa,Nr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=r=>fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class Rce extends qt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-enum"),r}}let Tce=class extends qt{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}},Ice=class extends $e(ri,Nr,qt){constructor(t){super(t),this.element=new ve.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(t){return t.forEach(r=>{const n=fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),Tt}},jce=class extends $e(ri,Nr,qt){constructor(t){super(t),this.element=new ve.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(t){return t.forEach(r=>{const n=fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),Tt}},Pce=class extends $e(ri,Nr,qt){constructor(t){super(t),this.element=new ve.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(t){return t.forEach(r=>{const n=fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),Tt}};class kce extends $e(Oa,Nr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=r=>fs(r)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}let Nce=class extends $e(ri,Nr,qt){constructor(t){super(t),this.element=new ve.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),Tt}};class Mce extends $e(Qa,qt){constructor(t){super(t),this.element=new $u,this.specPath=lt(["document","objects","JSONReference"])}ObjectElement(t){const r=Qa.prototype.ObjectElement.call(this,t);return ft(this.element.$ref)&&this.element.classes.push("reference-element"),r}}let Dce=class extends qt{StringElement(t){const r=this.enter(t);return this.element.classes.push("reference-value"),r}},qce=class extends ri{constructor({alternator:r,...n}){super({...n});X(this,"alternator");this.alternator=r}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>jC(s,lt(a),Bh)),i=q5(n)(r);return this.element=this.toRefractedElement(i,r),Tt}},No=class extends qce{constructor(t){super(t),this.alternator=[{predicate:fs,specPath:["document","objects","JSONReference"]},{predicate:Us,specPath:["document","objects","JSONSchema"]}]}};class Fce extends $e(Qa,qt){constructor(t){super(t),this.element=new cf,this.specPath=lt(["document","objects","Media"])}}let r7=class extends $e(Qa,qt){constructor(t){super(t),this.element=new lf,this.specPath=lt(["document","objects","LinkDescription"])}};const Xr={visitors:{value:qt,JSONSchemaOrJSONReferenceVisitor:No,document:{objects:{JSONSchema:{$visitor:e7,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:No,items:t7,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:wce,properties:Ace,additionalProperties:No,patternProperties:Oce,dependencies:Cce,enum:Rce,type:Tce,allOf:Ice,anyOf:jce,oneOf:Pce,not:No,definitions:kce,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Nce,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Mce,fixedFields:{$ref:Dce}},Media:{$visitor:Fce,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:r7,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:No,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:No}}}}}},$ce=()=>{const e=zs(pce);return{predicates:{...Sce,isStringElement:ft},namespace:e}},Lce=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Xr}={})=>{const i=ve.refract(e),s=Aa(n),a=zr(t,s),o=new a({specObj:s});return kr(i,o),ys(o.element,r,{toolboxCreator:$ce,visitorOptions:{keyMap:dce,nodeTypeGetter:ff}})},tm=e=>(t,r={})=>Lce(t,{specPath:e,...r});Fu.refract=tm(["visitors","document","objects","JSONSchema","$visitor"]);$u.refract=tm(["visitors","document","objects","JSONReference","$visitor"]);cf.refract=tm(["visitors","document","objects","Media","$visitor"]);lf.refract=tm(["visitors","document","objects","LinkDescription","$visitor"]);let rm=class extends Fu{constructor(t,r,n){super(t,r,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Ot("idProp getter in Schema class is not not supported.")}set idProp(t){throw new Ot("idProp setter in Schema class is not not supported.")}get $schema(){throw new Ot("$schema getter in Schema class is not not supported.")}set $schema(t){throw new Ot("$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 Ot("patternProperties getter in Schema class is not not supported.")}set patternProperties(t){throw new Ot("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Ot("dependencies getter in Schema class is not not supported.")}set dependencies(t){throw new Ot("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 Ot("definitions getter in Schema class is not not supported.")}set definitions(t){throw new Ot("definitions setter in Schema class is not not supported.")}get base(){throw new Ot("base getter in Schema class is not not supported.")}set base(t){throw new Ot("base setter in Schema class is not not supported.")}get links(){throw new Ot("links getter in Schema class is not not supported.")}set links(t){throw new Ot("links setter in Schema class is not not supported.")}get media(){throw new Ot("media getter in Schema class is not not supported.")}set media(t){throw new Ot("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)}},pf=class extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.element="securityRequirement"}},df=class extends ve.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)}},hf=class extends ve.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)}},mf=class extends ve.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)}},nm=class extends ve.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)}},im=class extends ve.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 Bce={namespace:e=>{const{base:t}=e;return t.register("callback",zl),t.register("components",Wl),t.register("contact",Jl),t.register("discriminator",Hl),t.register("encoding",Xh),t.register("example",Kl),t.register("externalDocumentation",Gl),t.register("header",Du),t.register("info",Yl),t.register("license",Xl),t.register("link",Zl),t.register("mediaType",Ql),t.register("oAuthFlow",Zh),t.register("oAuthFlows",Qh),t.register("openapi",ef),t.register("openApi3_0",em),t.register("operation",tf),t.register("parameter",qu),t.register("pathItem",rf),t.register("paths",nf),t.register("reference",sf),t.register("requestBody",af),t.register("response",of),t.register("responses",uf),t.register("schema",rm),t.register("securityRequirement",pf),t.register("securityScheme",df),t.register("server",hf),t.register("serverVariable",mf),t.register("tag",nm),t.register("xml",im),t}},wd=class wd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(wd.primaryClass)}};X(wd,"primaryClass","servers");let pd=wd;const xd=class xd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(xd.primaryClass)}};X(xd,"primaryClass","security");let sA=xd;const Ad=class Ad extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ad.primaryClass)}};X(Ad,"primaryClass","tags");let aA=Ad;const Od=class Od extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Od.primaryClass)}};X(Od,"primaryClass","server-variables");let oA=Od;const Cd=class Cd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Cd.primaryClass)}};X(Cd,"primaryClass","components-schemas");let dd=Cd;const Rd=class Rd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Rd.primaryClass)}};X(Rd,"primaryClass","components-responses");let uA=Rd;const Td=class Td extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Td.primaryClass),this.classes.push("parameters")}};X(Td,"primaryClass","components-parameters");let cA=Td;const Id=class Id extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Id.primaryClass),this.classes.push("examples")}};X(Id,"primaryClass","components-examples");let lA=Id;const jd=class jd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(jd.primaryClass)}};X(jd,"primaryClass","components-request-bodies");let fA=jd;const Pd=class Pd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Pd.primaryClass)}};X(Pd,"primaryClass","components-headers");let pA=Pd;const kd=class kd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(kd.primaryClass)}};X(kd,"primaryClass","components-security-schemes");let dA=kd;const Nd=class Nd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Nd.primaryClass)}};X(Nd,"primaryClass","components-links");let hA=Nd;const Md=class Md extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Md.primaryClass)}};X(Md,"primaryClass","components-callbacks");let mA=Md;const Dd=class Dd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Dd.primaryClass),this.classes.push("servers")}};X(Dd,"primaryClass","path-item-servers");let gA=Dd;const qd=class qd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(qd.primaryClass),this.classes.push("parameters")}};X(qd,"primaryClass","path-item-parameters");let yA=qd;const Fd=class Fd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Fd.primaryClass),this.classes.push("parameters")}};X(Fd,"primaryClass","operation-parameters");let hd=Fd;const $d=class $d extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push($d.primaryClass),this.classes.push("examples")}};X($d,"primaryClass","parameter-examples");let vA=$d;const Ld=class Ld extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ld.primaryClass),this.classes.push("content")}};X(Ld,"primaryClass","parameter-content");let bA=Ld;const Bd=class Bd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Bd.primaryClass)}};X(Bd,"primaryClass","operation-tags");let _A=Bd;const Ud=class Ud extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Ud.primaryClass)}};X(Ud,"primaryClass","operation-callbacks");let EA=Ud;const Vd=class Vd extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(Vd.primaryClass),this.classes.push("security")}};X(Vd,"primaryClass","operation-security");let md=Vd;var za;let Uce=(za=class extends ve.ArrayElement{constructor(t,r,n){super(t,r,n),this.classes.push(za.primaryClass),this.classes.push("servers")}},X(za,"primaryClass","operation-servers"),za);const zd=class zd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(zd.primaryClass),this.classes.push("content")}};X(zd,"primaryClass","request-body-content");let SA=zd;const Wd=class Wd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Wd.primaryClass),this.classes.push("examples")}};X(Wd,"primaryClass","media-type-examples");let wA=Wd;const Jd=class Jd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Jd.primaryClass)}};X(Jd,"primaryClass","media-type-encoding");let xA=Jd;const Hd=class Hd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Hd.primaryClass)}};X(Hd,"primaryClass","encoding-headers");let AA=Hd;const Kd=class Kd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Kd.primaryClass)}};X(Kd,"primaryClass","response-headers");let OA=Kd;const Gd=class Gd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Gd.primaryClass),this.classes.push("content")}};X(Gd,"primaryClass","response-content");let CA=Gd;const Yd=class Yd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Yd.primaryClass)}};X(Yd,"primaryClass","response-links");let RA=Yd;const Xd=class Xd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Xd.primaryClass)}};X(Xd,"primaryClass","discriminator-mapping");let TA=Xd;const Zd=class Zd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Zd.primaryClass)}};X(Zd,"primaryClass","oauth-flow-scopes");let IA=Zd;const Qd=class Qd extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(Qd.primaryClass)}};X(Qd,"primaryClass","link-parameters");let jA=Qd;const eh=class eh extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(eh.primaryClass),this.classes.push("examples")}};X(eh,"primaryClass","header-examples");let PA=eh;const th=class th extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(th.primaryClass),this.classes.push("content")}};X(th,"primaryClass","header-content");let kA=th;const Vce=e=>{if(_r(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},zce={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"],...gs};class n7{constructor(t={}){X(this,"element");Object.assign(this,t)}copyMetaAndAttributes(t,r){(t.meta.length>0||r.meta.length>0)&&(r.meta=yi(r.meta,t.meta)),ku(t)&&WC(r,t),(t.attributes.length>0||t.meta.length>0)&&(r.attributes=yi(r.attributes,t.attributes))}}class We extends n7{enter(t){return this.element=Ye(t),Tt}}class Ji extends n7{constructor({specObj:r,passingOptionsNames:n,openApiGenericElement:i,openApiSemanticElement:s,...a}){super({...a});X(this,"specObj");X(this,"passingOptionsNames",["specObj","openApiGenericElement","openApiSemanticElement"]);X(this,"openApiGenericElement");X(this,"openApiSemanticElement");this.specObj=r,this.openApiGenericElement=i,this.openApiSemanticElement=s,Array.isArray(n)&&(this.passingOptionsNames=n)}retrievePassingOptions(){return C5(this.passingOptionsNames,this)}retrieveFixedFields(r){const n=zr(["visitors",...r,"fixedFields"],this.specObj);return typeof n=="object"&&n!==null?Object.keys(n):[]}retrieveVisitor(r){return Lh(mo,["visitors",...r],this.specObj)?zr(["visitors",...r],this.specObj):zr(["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 We&&(s==null?void 0:s.constructor)===We?Ye(n):(kr(n,s,i),s.element)}}const or=e=>Dt(e)&&e.hasKey("$ref"),Wce=Dt,Jce=Dt,i7=e=>ft(e.key)&&Nse("x-",Ie(e.key));class Et extends Ji{constructor({specPath:r,ignoredFields:n,canSupportSpecificationExtensions:i,specificationExtensionPredicate:s,...a}){super({...a});X(this,"specPath");X(this,"ignoredFields");X(this,"canSupportSpecificationExtensions",!0);X(this,"specificationExtensionPredicate",i7);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(ft(a)&&i.includes(Ie(a))&&!this.ignoredFields.includes(Ie(a))){const u=this.toRefractedElement([...n,"fixedFields",Ie(a)],s),c=new ve.MemberElement(Ye(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(Ie(a))||this.element.content.push(Ye(o))}),this.copyMetaAndAttributes(r,this.element),Tt}}class Hce extends $e(Et,We){constructor(t){super(t),this.element=new em,this.specPath=lt(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){return Et.prototype.ObjectElement.call(this,t)}}class Kce extends $e(Ji,We){StringElement(t){const r=new ef(Ie(t));return this.copyMetaAndAttributes(t,r),this.element=r,Tt}}class Gce extends Ji{MemberElement(t){return this.element=Ye(t),this.element.classes.push("specification-extension"),Tt}}let Yce=class extends $e(Et,We){constructor(t){super(t),this.element=new Yl,this.specPath=lt(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};class Xce extends We{StringElement(t){const r=super.enter(t);return this.element.classes.push("api-version"),this.element.classes.push("version"),r}}let Zce=class extends $e(Et,We){constructor(t){super(t),this.element=new Jl,this.specPath=lt(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}},Qce=class extends $e(Et,We){constructor(t){super(t),this.element=new Xl,this.specPath=lt(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}},ele=class extends $e(Et,We){constructor(t){super(t),this.element=new Zl,this.specPath=lt(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return(ft(this.element.operationId)||ft(this.element.operationRef))&&this.element.classes.push("reference-element"),r}};class tle extends We{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class rle extends We{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class hu extends Ji{constructor({specPath:r,ignoredFields:n,fieldPatternPredicate:i,canSupportSpecificationExtensions:s,specificationExtensionPredicate:a,...o}){super({...o});X(this,"specPath");X(this,"ignoredFields");X(this,"fieldPatternPredicate",EC);X(this,"canSupportSpecificationExtensions",!1);X(this,"specificationExtensionPredicate",i7);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(Ie(i))&&this.fieldPatternPredicate(Ie(i))){const a=this.specPath(n),o=this.toRefractedElement(a,n),u=new ve.MemberElement(Ye(i),o);this.copyMetaAndAttributes(s,u),u.classes.push("patterned-field"),this.element.content.push(u)}else this.ignoredFields.includes(Ie(i))||this.element.content.push(Ye(s))}),this.copyMetaAndAttributes(r,this.element),Tt}}class yt extends hu{constructor(t){super(t),this.fieldPatternPredicate=Uh}}let nle=class extends $e(yt,We){constructor(t){super(t),this.element=new jA,this.specPath=lt(["value"])}},ile=class extends $e(Et,We){constructor(t){super(t),this.element=new hf,this.specPath=lt(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};class sle extends We{StringElement(t){const r=super.enter(t);return this.element.classes.push("server-url"),r}}let uR=class extends $e(Ji,We){constructor(t){super(t),this.element=new pd}ArrayElement(t){return t.forEach(r=>{const n=Wce(r)?["document","objects","Server"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),Tt}},ale=class extends $e(Et,We){constructor(t){super(t),this.element=new mf,this.specPath=lt(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};class ole extends $e(yt,We){constructor(t){super(t),this.element=new oA,this.specPath=lt(["document","objects","ServerVariable"])}}let ule=class extends $e(Et,We){constructor(t){super(t),this.element=new Ql,this.specPath=lt(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};class ps extends Ji{constructor({alternator:r,...n}){super({...n});X(this,"alternator");this.alternator=r||[]}enter(r){const n=this.alternator.map(({predicate:s,specPath:a})=>jC(s,lt(a),Bh)),i=q5(n)(r);return this.element=this.toRefractedElement(i,r),Tt}}const cle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zl||e(n)&&t("callback",n)&&r("object",n)),lle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wl||e(n)&&t("components",n)&&r("object",n)),fle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jl||e(n)&&t("contact",n)&&r("object",n)),ple=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kl||e(n)&&t("example",n)&&r("object",n)),dle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gl||e(n)&&t("externalDocumentation",n)&&r("object",n)),Lu=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Du||e(n)&&t("header",n)&&r("object",n)),hle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yl||e(n)&&t("info",n)&&r("object",n)),mle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xl||e(n)&&t("license",n)&&r("object",n)),gle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zl||e(n)&&t("link",n)&&r("object",n)),yle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ef||e(n)&&t("openapi",n)&&r("string",n)),vle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof em||e(i)&&t("openApi3_0",i)&&r("object",i)&&n("api",i)),s7=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tf||e(n)&&t("operation",n)&&r("object",n)),ble=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qu||e(n)&&t("parameter",n)&&r("object",n)),cR=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rf||e(n)&&t("pathItem",n)&&r("object",n)),_le=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nf||e(n)&&t("paths",n)&&r("object",n)),Zt=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sf||e(n)&&t("reference",n)&&r("object",n)),Ele=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof af||e(n)&&t("requestBody",n)&&r("object",n)),sm=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof of||e(n)&&t("response",n)&&r("object",n)),Sle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uf||e(n)&&t("responses",n)&&r("object",n)),wle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rm||e(n)&&t("schema",n)&&r("object",n)),xle=e=>Ll(e)&&e.classes.includes("boolean-json-schema"),Ale=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pf||e(n)&&t("securityRequirement",n)&&r("object",n)),Ole=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof df||e(n)&&t("securityScheme",n)&&r("object",n)),Cle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hf||e(n)&&t("server",n)&&r("object",n)),Rle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mf||e(n)&&t("serverVariable",n)&&r("object",n)),am=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ql||e(n)&&t("mediaType",n)&&r("object",n)),a7=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof pd||e(i)&&t("array",i)&&r("array",i)&&n("servers",i)),Tle=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hl||e(n)&&t("discriminator",n)&&r("object",n)),Ile=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:xle,isCallbackElement:cle,isComponentsElement:lle,isContactElement:fle,isDiscriminatorElement:Tle,isExampleElement:ple,isExternalDocumentationElement:dle,isHeaderElement:Lu,isInfoElement:hle,isLicenseElement:mle,isLinkElement:gle,isMediaTypeElement:am,isOpenApi3_0Element:vle,isOpenapiElement:yle,isOperationElement:s7,isParameterElement:ble,isPathItemElement:cR,isPathsElement:_le,isReferenceElement:Zt,isRequestBodyElement:Ele,isResponseElement:sm,isResponsesElement:Sle,isSchemaElement:wle,isSecurityRequirementElement:Ale,isSecuritySchemeElement:Ole,isServerElement:Cle,isServerVariableElement:Rle,isServersElement:a7},Symbol.toStringTag,{value:"Module"}));let jle=class extends $e(ps,We){constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},lR=class extends $e(yt,We){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("examples"),this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}},Ple=class extends lR{constructor(t){super(t),this.element=new wA}},kle=class extends $e(yt,We){constructor(t){super(t),this.element=new xA,this.specPath=lt(["document","objects","Encoding"])}},Nle=class extends $e(yt,We){constructor(t){super(t),this.element=new pf,this.specPath=lt(["value"])}},Mle=class extends $e(Ji,We){constructor(t){super(t),this.element=new sA}ArrayElement(t){return t.forEach(r=>{if(Dt(r)){const n=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(n)}else this.element.push(Ye(r))}),this.copyMetaAndAttributes(t,this.element),Tt}},Dle=class extends $e(Et,We){constructor(t){super(t),this.element=new Wl,this.specPath=lt(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}},qle=class extends $e(Et,We){constructor(t){super(t),this.element=new nm,this.specPath=lt(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}},Fle=class extends $e(Et,We){constructor(t){super(t),this.element=new sf,this.specPath=lt(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return ft(this.element.$ref)&&this.element.classes.push("reference-element"),r}},$le=class extends We{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}},Lle=class extends $e(Et,We){constructor(t){super(t),this.element=new qu,this.specPath=lt(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return Dt(this.element.contentProp)&&this.element.contentProp.filter(am).forEach((n,i)=>{n.setMetaProperty("media-type",Ie(i))}),r}},Ble=class extends $e(ps,We){constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},Ule=class extends $e(Et,We){constructor(t){super(t),this.element=new Du,this.specPath=lt(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}},Vle=class extends $e(ps,We){constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}},zle=class extends lR{constructor(t){super(t),this.element=new PA}},om=class extends $e(yt,We){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("content"),this.specPath=lt(["document","objects","MediaType"])}},Wle=class extends om{constructor(t){super(t),this.element=new kA}},Jle=class extends $e(Et,We){constructor(t){super(t),this.element=new rm,this.specPath=lt(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}};const dL=Xr.visitors.document.objects.JSONSchema.fixedFields.allOf;let Hle=class extends dL{ArrayElement(t){const r=dL.prototype.ArrayElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const hL=Xr.visitors.document.objects.JSONSchema.fixedFields.anyOf;let Kle=class extends hL{ArrayElement(t){const r=hL.prototype.ArrayElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const mL=Xr.visitors.document.objects.JSONSchema.fixedFields.oneOf;let Gle=class extends mL{ArrayElement(t){const r=mL.prototype.ArrayElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const gL=Xr.visitors.document.objects.JSONSchema.fixedFields.items;let Yle=class extends gL{ObjectElement(t){const r=gL.prototype.ObjectElement.call(this,t);return Zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}ArrayElement(t){return this.enter(t)}};const yL=Xr.visitors.document.objects.JSONSchema.fixedFields.properties;let Xle=class extends yL{ObjectElement(t){const r=yL.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}};const Zle=Xr.visitors.document.objects.JSONSchema.fixedFields.type;class Qle extends Zle{ArrayElement(t){return this.enter(t)}}const vL=Xr.visitors.JSONSchemaOrJSONReferenceVisitor;class bL extends vL{ObjectElement(t){const r=vL.prototype.enter.call(this,t);return Zt(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}let efe=class extends $e(Et,We){constructor(t){super(t),this.element=new Hl,this.specPath=lt(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};class tfe extends $e(yt,We){constructor(t){super(t),this.element=new TA,this.specPath=lt(["value"])}}let rfe=class extends $e(Et,We){constructor(t){super(t),this.element=new im,this.specPath=lt(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}},nfe=class extends lR{constructor(t){super(t),this.element=new vA}},ife=class extends om{constructor(t){super(t),this.element=new bA}},sfe=class extends $e(yt,We){constructor(t){super(t),this.element=new dd,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","schema")}),r}},afe=class extends $e(yt,We){constructor(t){super(t),this.element=new uA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(sm).forEach((n,i)=>{n.setMetaProperty("http-status-code",Ie(i))}),r}},ofe=class extends $e(yt,We){constructor(t){super(t),this.element=new cA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","parameter")}),r}},ufe=class extends $e(yt,We){constructor(t){super(t),this.element=new lA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","example")}),r}};class cfe extends $e(yt,We){constructor(t){super(t),this.element=new fA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","requestBody")}),r}}let lfe=class extends $e(yt,We){constructor(t){super(t),this.element=new pA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.filter(Lu).forEach((n,i)=>{n.setMetaProperty("header-name",Ie(i))}),r}};class ffe extends $e(yt,We){constructor(t){super(t),this.element=new dA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","securityScheme")}),r}}let pfe=class extends $e(yt,We){constructor(t){super(t),this.element=new hA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}},dfe=class extends $e(yt,We){constructor(t){super(t),this.element=new mA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),r}},hfe=class extends $e(Et,We){constructor(t){super(t),this.element=new Kl,this.specPath=lt(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return ft(this.element.externalValue)&&this.element.classes.push("reference-element"),r}};class mfe extends We{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let gfe=class extends $e(Et,We){constructor(t){super(t),this.element=new Gl,this.specPath=lt(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}},yfe=class extends $e(Et,We){constructor(t){super(t),this.element=new Xh,this.specPath=lt(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return Dt(this.element.headers)&&this.element.headers.filter(Lu).forEach((n,i)=>{n.setMetaProperty("header-name",Ie(i))}),r}},vfe=class extends $e(yt,We){constructor(t){super(t),this.element=new AA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!Lu(n))return;const s=Ie(i);n.setMetaProperty("headerName",s)}),r}},bfe=class extends $e(hu,We){constructor(t){super(t),this.element=new nf,this.specPath=lt(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Us}ObjectElement(t){const r=hu.prototype.ObjectElement.call(this,t);return this.element.filter(cR).forEach((n,i)=>{i.classes.push("openapi-path-template"),i.classes.push("path-template"),n.setMetaProperty("path",Ye(i))}),r}},_fe=class extends $e(Et,We){constructor(t){super(t),this.element=new af,this.specPath=lt(["document","objects","RequestBody"])}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return Dt(this.element.contentProp)&&this.element.contentProp.filter(am).forEach((n,i)=>{n.setMetaProperty("media-type",Ie(i))}),r}},Efe=class extends om{constructor(t){super(t),this.element=new SA}},Sfe=class extends $e(hu,We){constructor(t){super(t),this.element=new zl,this.specPath=lt(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(cR).forEach((n,i)=>{n.setMetaProperty("runtime-expression",Ie(i))}),r}},wfe=class extends $e(Et,We){constructor(t){super(t),this.element=new of,this.specPath=lt(["document","objects","Response"])}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return Dt(this.element.contentProp)&&this.element.contentProp.filter(am).forEach((n,i)=>{n.setMetaProperty("media-type",Ie(i))}),Dt(this.element.headers)&&this.element.headers.filter(Lu).forEach((n,i)=>{n.setMetaProperty("header-name",Ie(i))}),r}};class xfe extends $e(yt,We){constructor(t){super(t),this.element=new OA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","header")}),this.element.forEach((n,i)=>{if(!Lu(n))return;const s=Ie(i);n.setMetaProperty("header-name",s)}),r}}class Afe extends om{constructor(t){super(t),this.element=new CA}}class Ofe extends $e(yt,We){constructor(t){super(t),this.element=new RA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","link")}),r}}class _L extends $e(Et,hu){constructor({specPathFixedFields:r,specPathPatternedFields:n,...i}){super({...i});X(this,"specPathFixedFields");X(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,...tse(r.keys(),s)],Et.prototype.ObjectElement.call(this,r),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,hu.prototype.ObjectElement.call(this,r)}catch(s){throw this.specPath=n,s}return Tt}}let Cfe=class extends $e(_L,We){constructor(t){super(t),this.element=new uf,this.specPathFixedFields=lt(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>or(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${jse(100,600).join("|")})$`).test(String(r))}ObjectElement(t){const r=_L.prototype.ObjectElement.call(this,t);return this.element.filter(Zt).forEach(n=>{n.setMetaProperty("referenced-element","response")}),this.element.filter(sm).forEach((n,i)=>{const s=Ye(i);this.fieldPatternPredicate(Ie(s))&&n.setMetaProperty("http-status-code",s)}),r}};class Rfe extends $e(ps,We){constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","Response"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Zt(this.element)?this.element.setMetaProperty("referenced-element","response"):sm(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}let Tfe=class extends $e(Et,We){constructor(t){super(t),this.element=new tf,this.specPath=lt(["document","objects","Operation"])}},Ife=class extends We{constructor(t){super(t),this.element=new _A}ArrayElement(t){return this.element=this.element.concat(Ye(t)),Tt}},o7=class extends $e(Ji,We){constructor(t){super(t),this.element=new ve.ArrayElement,this.element.classes.push("parameters")}ArrayElement(t){return t.forEach(r=>{const n=or(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),Tt}},jfe=class extends o7{constructor(t){super(t),this.element=new hd}},Pfe=class extends ps{constructor(t){super(t),this.alternator=[{predicate:or,specPath:["document","objects","Reference"]},{predicate:Us,specPath:["document","objects","RequestBody"]}]}ObjectElement(t){const r=ps.prototype.enter.call(this,t);return Zt(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),r}};class kfe extends $e(yt,We){constructor(r){super(r);X(this,"specPath");this.element=new EA,this.specPath=n=>or(n)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(r){const n=yt.prototype.ObjectElement.call(this,r);return this.element.filter(Zt).forEach(i=>{i.setMetaProperty("referenced-element","callback")}),n}}class Nfe extends $e(Ji,We){constructor(t){super(t),this.element=new md}ArrayElement(t){return t.forEach(r=>{const n=Dt(r)?["document","objects","SecurityRequirement"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),Tt}}let Mfe=class extends uR{constructor(t){super(t),this.element=new Uce}},Dfe=class extends $e(Et,We){constructor(t){super(t),this.element=new rf,this.specPath=lt(["document","objects","PathItem"])}ObjectElement(t){const r=Et.prototype.ObjectElement.call(this,t);return this.element.filter(s7).forEach((n,i)=>{const s=Ye(i);s.content=Ie(s).toUpperCase(),n.setMetaProperty("http-method",s)}),ft(this.element.$ref)&&this.element.classes.push("reference-element"),r}};class qfe extends We{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}class Ffe extends uR{constructor(t){super(t),this.element=new gA}}class $fe extends o7{constructor(t){super(t),this.element=new yA}}let Lfe=class extends $e(Et,We){constructor(t){super(t),this.element=new df,this.specPath=lt(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}},Bfe=class extends $e(Et,We){constructor(t){super(t),this.element=new Qh,this.specPath=lt(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}},Ufe=class extends $e(Et,We){constructor(t){super(t),this.element=new Zh,this.specPath=lt(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};class Vfe extends $e(yt,We){constructor(t){super(t),this.element=new IA,this.specPath=lt(["value"])}}class zfe extends $e(Ji,We){constructor(t){super(t),this.element=new aA}ArrayElement(t){return t.forEach(r=>{const n=Jce(r)?["document","objects","Tag"]:["value"],i=this.toRefractedElement(n,r);this.element.push(i)}),this.copyMetaAndAttributes(t,this.element),Tt}}const{fixedFields:Dr}=Xr.visitors.document.objects.JSONSchema,Se={visitors:{value:We,document:{objects:{OpenApi:{$visitor:Hce,fixedFields:{openapi:Kce,info:{$ref:"#/visitors/document/objects/Info"},servers:uR,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Mle,tags:zfe,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Yce,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:Xce}},Contact:{$visitor:Zce,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Qce,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:ile,fixedFields:{url:sle,description:{$ref:"#/visitors/value"},variables:ole}},ServerVariable:{$visitor:ale,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Dle,fixedFields:{schemas:sfe,responses:afe,parameters:ofe,examples:ufe,requestBodies:cfe,headers:lfe,securitySchemes:ffe,links:pfe,callbacks:dfe}},Paths:{$visitor:bfe},PathItem:{$visitor:Dfe,fixedFields:{$ref:qfe,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:Ffe,parameters:$fe}},Operation:{$visitor:Tfe,fixedFields:{tags:Ife,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:jfe,requestBody:Pfe,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:kfe,deprecated:{$ref:"#/visitors/value"},security:Nfe,servers:Mfe}},ExternalDocumentation:{$visitor:gfe,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Lle,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:Ble,example:{$ref:"#/visitors/value"},examples:nfe,content:ife}},RequestBody:{$visitor:_fe,fixedFields:{description:{$ref:"#/visitors/value"},content:Efe,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ule,fixedFields:{schema:jle,example:{$ref:"#/visitors/value"},examples:Ple,encoding:kle}},Encoding:{$visitor:yfe,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:vfe,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Cfe,fixedFields:{default:Rfe}},Response:{$visitor:wfe,fixedFields:{description:{$ref:"#/visitors/value"},headers:xfe,content:Afe,links:Ofe}},Callback:{$visitor:Sfe},Example:{$visitor:hfe,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:mfe}},Link:{$visitor:ele,fixedFields:{operationRef:tle,operationId:rle,parameters:nle,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Ule,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:Vle,example:{$ref:"#/visitors/value"},examples:zle,content:Wle}},Tag:{$visitor:qle,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Fle,fixedFields:{$ref:$le}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Jle,fixedFields:{title:Dr.title,multipleOf:Dr.multipleOf,maximum:Dr.maximum,exclusiveMaximum:Dr.exclusiveMaximum,minimum:Dr.minimum,exclusiveMinimum:Dr.exclusiveMinimum,maxLength:Dr.maxLength,minLength:Dr.minLength,pattern:Dr.pattern,maxItems:Dr.maxItems,minItems:Dr.minItems,uniqueItems:Dr.uniqueItems,maxProperties:Dr.maxProperties,minProperties:Dr.minProperties,required:Dr.required,enum:Dr.enum,type:Qle,allOf:Hle,anyOf:Kle,oneOf:Gle,not:bL,items:Yle,properties:Xle,additionalProperties:bL,description:Dr.description,format:Dr.format,default:Dr.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:efe,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:tfe}},XML:{$visitor:rfe,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Lfe,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:Bfe,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:Ufe,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Vfe}},SecurityRequirement:{$visitor:Nle}},extension:{$visitor:Gce}}}},Wfe=()=>{const e=zs(Bce);return{predicates:{...Ile,isElement:_r,isStringElement:ft,isArrayElement:rn,isObjectElement:Dt,isMemberElement:zi,includesClasses:fu,hasElementSourceMap:ku},namespace:e}},Jfe=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=ve.refract(e),i=Aa(Se),s=zr(t,i),a=new s({specObj:i});return kr(n,a),ys(a.element,r,{toolboxCreator:Wfe,visitorOptions:{keyMap:zce,nodeTypeGetter:Vce}})},Ut=e=>(t,r={})=>Jfe(t,{specPath:e,...r});zl.refract=Ut(["visitors","document","objects","Callback","$visitor"]);Wl.refract=Ut(["visitors","document","objects","Components","$visitor"]);Jl.refract=Ut(["visitors","document","objects","Contact","$visitor"]);Kl.refract=Ut(["visitors","document","objects","Example","$visitor"]);Hl.refract=Ut(["visitors","document","objects","Discriminator","$visitor"]);Xh.refract=Ut(["visitors","document","objects","Encoding","$visitor"]);Gl.refract=Ut(["visitors","document","objects","ExternalDocumentation","$visitor"]);Du.refract=Ut(["visitors","document","objects","Header","$visitor"]);Yl.refract=Ut(["visitors","document","objects","Info","$visitor"]);Xl.refract=Ut(["visitors","document","objects","License","$visitor"]);Zl.refract=Ut(["visitors","document","objects","Link","$visitor"]);Ql.refract=Ut(["visitors","document","objects","MediaType","$visitor"]);Zh.refract=Ut(["visitors","document","objects","OAuthFlow","$visitor"]);Qh.refract=Ut(["visitors","document","objects","OAuthFlows","$visitor"]);ef.refract=Ut(["visitors","document","objects","OpenApi","fixedFields","openapi"]);em.refract=Ut(["visitors","document","objects","OpenApi","$visitor"]);tf.refract=Ut(["visitors","document","objects","Operation","$visitor"]);qu.refract=Ut(["visitors","document","objects","Parameter","$visitor"]);rf.refract=Ut(["visitors","document","objects","PathItem","$visitor"]);nf.refract=Ut(["visitors","document","objects","Paths","$visitor"]);sf.refract=Ut(["visitors","document","objects","Reference","$visitor"]);af.refract=Ut(["visitors","document","objects","RequestBody","$visitor"]);of.refract=Ut(["visitors","document","objects","Response","$visitor"]);uf.refract=Ut(["visitors","document","objects","Responses","$visitor"]);rm.refract=Ut(["visitors","document","objects","Schema","$visitor"]);pf.refract=Ut(["visitors","document","objects","SecurityRequirement","$visitor"]);df.refract=Ut(["visitors","document","objects","SecurityScheme","$visitor"]);hf.refract=Ut(["visitors","document","objects","Server","$visitor"]);mf.refract=Ut(["visitors","document","objects","ServerVariable","$visitor"]);nm.refract=Ut(["visitors","document","objects","Tag","$visitor"]);im.refract=Ut(["visitors","document","objects","XML","$visitor"]);class um extends zl{}class cm extends Wl{get pathItems(){return this.get("pathItems")}set pathItems(t){this.set("pathItems",t)}}let lm=class extends Jl{};class fR extends Hl{}class pR extends Xh{}let fm=class extends Kl{};class pm extends Gl{}class dm extends Du{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}let hm=class extends Yl{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 rh=class rh extends ve.StringElement{constructor(t,r,n){super(t,r,n),this.element="jsonSchemaDialect"}};X(rh,"default",new rh("https://spec.openapis.org/oas/3.1/dialect/base"));let eo=rh,mm=class extends Xl{get identifier(){return this.get("identifier")}set identifier(t){this.set("identifier",t)}},gm=class extends Zl{};class ym extends Ql{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class dR extends Zh{}class hR extends Qh{}class mR extends ef{}class Ca extends ve.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 gf=class extends tf{get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}};class vm extends qu{get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}class ga extends rf{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 bm extends nf{}class Ra extends sf{}Object.defineProperty(Ra.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});Object.defineProperty(Ra.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});class _m extends af{}let Em=class extends of{},Sm=class extends uf{},yf=class extends Fu{constructor(t,r,n){super(t,r,n),this.element="JSONSchemaDraft6"}get idProp(){throw new Ot("id keyword from Core vocabulary has been renamed to $id.")}set idProp(t){throw new Ot("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)}},vf=class extends lf{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 Ot("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(t){throw new Ot("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 Ot("method keyword from Hyper-Schema vocabulary has been removed.")}set method(t){throw new Ot("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Ot("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(t){throw new Ot("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 Hfe={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",yf),t.register("jSONReference",$u),t.register("media",cf),t.register("linkDescription",vf),t}},Kfe={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...gs};let u7=class extends e7{constructor(t){super(t),this.element=new yf}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)}},Gfe=class extends t7{BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),Tt}};class Yfe extends qt{ArrayElement(t){const r=this.enter(t);return this.element.classes.push("json-schema-examples"),r}}let c7=class extends r7{constructor(t){super(t),this.element=new vf}};const Gr=nn(Le(["visitors","document","objects","JSONSchema","$visitor"],u7),Yn(["visitors","document","objects","JSONSchema","fixedFields","id"]),Le(["visitors","document","objects","JSONSchema","fixedFields","$id"],Xr.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","contains"],Xr.visitors.JSONSchemaOrJSONReferenceVisitor),Le(["visitors","document","objects","JSONSchema","fixedFields","items"],Gfe),Le(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Xr.visitors.JSONSchemaOrJSONReferenceVisitor),Le(["visitors","document","objects","JSONSchema","fixedFields","const"],Xr.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","examples"],Yfe),Le(["visitors","document","objects","LinkDescription","$visitor"],c7),Le(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Xr.visitors.JSONSchemaOrJSONReferenceVisitor),Yn(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Le(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Xr.visitors.JSONSchemaOrJSONReferenceVisitor),Yn(["visitors","document","objects","LinkDescription","fixedFields","method"]),Yn(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Le(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Xr.visitors.value))(Xr),Xfe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yf||e(n)&&t("JSONSchemaDraft6",n)&&r("object",n)),Zfe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vf||e(n)&&t("linkDescription",n)&&r("object",n)),Qfe=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:oR,isJSONSchemaElement:Xfe,isLinkDescriptionElement:Zfe,isMediaElement:Q9},Symbol.toStringTag,{value:"Module"})),epe=()=>{const e=zs(Hfe);return{predicates:{...Qfe,isStringElement:ft},namespace:e}},tpe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Gr}={})=>{const i=ve.refract(e),s=Aa(n),a=zr(t,s),o=new a({specObj:s});return kr(i,o),ys(o.element,r,{toolboxCreator:epe,visitorOptions:{keyMap:Kfe,nodeTypeGetter:ff}})},l7=e=>(t,r={})=>tpe(t,{specPath:e,...r});yf.refract=l7(["visitors","document","objects","JSONSchema","$visitor"]);vf.refract=l7(["visitors","document","objects","LinkDescription","$visitor"]);let bf=class extends yf{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 Ot('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(t){throw new Ot('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}},_f=class extends vf{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 Ot("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(t){throw new Ot("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 Ot("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(t){throw new Ot("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 rpe={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",bf),t.register("jSONReference",$u),t.register("linkDescription",_f),t}},npe={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...gs};let f7=class extends u7{constructor(t){super(t),this.element=new bf}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}},p7=class extends c7{constructor(t){super(t),this.element=new _f}};const ra=nn(Le(["visitors","document","objects","JSONSchema","$visitor"],f7),Le(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Gr.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","if"],Gr.visitors.JSONSchemaOrJSONReferenceVisitor),Le(["visitors","document","objects","JSONSchema","fixedFields","then"],Gr.visitors.JSONSchemaOrJSONReferenceVisitor),Le(["visitors","document","objects","JSONSchema","fixedFields","else"],Gr.visitors.JSONSchemaOrJSONReferenceVisitor),Yn(["visitors","document","objects","JSONSchema","fixedFields","media"]),Le(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Gr.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Gr.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Gr.visitors.value),Le(["visitors","document","objects","LinkDescription","$visitor"],p7),Le(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Gr.visitors.value),Le(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Gr.visitors.value),Yn(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Le(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Gr.visitors.value),Le(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Gr.visitors.value),Le(["visitors","document","objects","LinkDescription","fixedFields","description"],Gr.visitors.value),Le(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Gr.visitors.value),Le(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Gr.visitors.JSONSchemaOrJSONReferenceVisitor),Yn(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Le(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Gr.visitors.value))(Gr),ipe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bf||e(n)&&t("JSONSchemaDraft7",n)&&r("object",n)),spe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _f||e(n)&&t("linkDescription",n)&&r("object",n)),ape=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:oR,isJSONSchemaElement:ipe,isLinkDescriptionElement:spe},Symbol.toStringTag,{value:"Module"})),ope=()=>{const e=zs(rpe);return{predicates:{...ape,isStringElement:ft},namespace:e}},upe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=ra}={})=>{const i=ve.refract(e),s=Aa(n),a=zr(t,s),o=new a({specObj:s});return kr(i,o),ys(o.element,r,{toolboxCreator:ope,visitorOptions:{keyMap:npe,nodeTypeGetter:ff}})},d7=e=>(t,r={})=>upe(t,{specPath:e,...r});bf.refract=d7(["visitors","document","objects","JSONSchema","$visitor"]);_f.refract=d7(["visitors","document","objects","LinkDescription","$visitor"]);let Ef=class extends bf{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 Ot("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(t){throw new Ot("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 Ot("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(t){throw new Ot("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)}},Sf=class extends _f{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 cpe={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Ef),t.register("linkDescription",Sf),t}},lpe={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...gs};let Yr=class extends f7{constructor(t){super(t),this.element=new Ef}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=Qa.prototype.ObjectElement.call(this,t);return ft(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}};class fpe extends qt{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-$vocabulary"),r}}class ppe extends qt{StringElement(t){const r=super.enter(t);return this.element.classes.push("reference-value"),r}}let h7=class extends $e(Oa,Nr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-$defs"),this.specPath=lt(["document","objects","JSONSchema"])}},m7=class extends $e(ri,Nr,qt){constructor(t){super(t),this.element=new ve.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),Tt}},g7=class extends $e(ri,Nr,qt){constructor(t){super(t),this.element=new ve.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),Tt}},y7=class extends $e(ri,Nr,qt){constructor(t){super(t),this.element=new ve.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),Tt}},v7=class extends $e(Oa,Nr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=lt(["document","objects","JSONSchema"])}};class dpe extends $e(ri,Nr,qt){ObjectElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),Tt}ArrayElement(t){return this.element=new ve.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),Tt}BooleanElement(t){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],t),Tt}}let b7=class extends $e(Oa,Nr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=lt(["document","objects","JSONSchema"])}},_7=class extends $e(Oa,Nr,qt){constructor(t){super(t),this.element=new ve.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=lt(["document","objects","JSONSchema"])}};class hpe extends qt{ObjectElement(t){const r=super.enter(t);return this.element.classes.push("json-schema-dependentRequired"),r}}let E7=class extends p7{constructor(t){super(t),this.element=new Sf}};const kp=nn(Le(["visitors","document","objects","JSONSchema","$visitor"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],fpe),Le(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],ra.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],ra.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],ra.visitors.value),Yn(["visitors","document","objects","JSONReference","$visitor"]),Le(["visitors","document","objects","JSONSchema","fixedFields","$ref"],ppe),Yn(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Le(["visitors","document","objects","JSONSchema","fixedFields","$defs"],h7),Le(["visitors","document","objects","JSONSchema","fixedFields","allOf"],m7),Le(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],g7),Le(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],y7),Le(["visitors","document","objects","JSONSchema","fixedFields","not"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","if"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","then"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","else"],Yr),Yn(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Le(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],v7),Le(["visitors","document","objects","JSONSchema","fixedFields","items"],dpe),Le(["visitors","document","objects","JSONSchema","fixedFields","contains"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","properties"],b7),Le(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],_7),Le(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Yr),Le(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],ra.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","minContains"],ra.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],hpe),Le(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],ra.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Yr),Le(["visitors","document","objects","LinkDescription","$visitor"],E7),Le(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Yr),Le(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Yr),Le(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Yr),Le(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Yr))(ra),mpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ef||e(n)&&t("JSONSchema201909",n)&&r("object",n)),gpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sf||e(n)&&t("linkDescription",n)&&r("object",n)),ype=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:mpe,isLinkDescriptionElement:gpe},Symbol.toStringTag,{value:"Module"})),vpe=()=>{const e=zs(cpe);return{predicates:{...ype,isStringElement:ft},namespace:e}},bpe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=kp}={})=>{const i=ve.refract(e),s=Aa(n),a=zr(t,s),o=new a({specObj:s});return kr(i,o),ys(o.element,r,{toolboxCreator:vpe,visitorOptions:{keyMap:lpe,nodeTypeGetter:ff}})},S7=e=>(t,r={})=>bpe(t,{specPath:e,...r});Ef.refract=S7(["visitors","document","objects","JSONSchema","$visitor"]);Sf.refract=S7(["visitors","document","objects","LinkDescription","$visitor"]);class wf extends Ef{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 Ot("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(t){throw new Ot("$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 Ot("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(t){throw new Ot("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}}class wm extends Sf{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 _pe={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",wf),t.register("linkDescription",wm),t}},Epe={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...gs};let qr=class extends Yr{constructor(t){super(t),this.element=new wf}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}},w7=class extends $e(ri,Nr,qt){constructor(t){super(t),this.element=new ve.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),Tt}},Spe=class extends E7{constructor(t){super(t),this.element=new wm}};const x7=nn(Le(["visitors","document","objects","JSONSchema","$visitor"],qr),Yn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Le(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],kp.visitors.value),Yn(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Le(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],kp.visitors.value),Le(["visitors","document","objects","JSONSchema","fixedFields","not"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","if"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","then"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","else"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],w7),Le(["visitors","document","objects","JSONSchema","fixedFields","items"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","contains"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],qr),Yn(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Le(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],qr),Le(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],qr),Le(["visitors","document","objects","LinkDescription","$visitor"],Spe),Le(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],qr),Le(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],qr),Le(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],qr),Le(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],qr))(kp),wpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wf||e(n)&&t("JSONSchema202012",n)&&r("object",n)),xpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wm||e(n)&&t("linkDescription",n)&&r("object",n)),Ape=Object.freeze(Object.defineProperty({__proto__:null,isJSONSchemaElement:wpe,isLinkDescriptionElement:xpe},Symbol.toStringTag,{value:"Module"})),Ope=()=>{const e=zs(_pe);return{predicates:{...Ape,isStringElement:ft},namespace:e}},Cpe=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=x7}={})=>{const i=ve.refract(e),s=Aa(n),a=zr(t,s),o=new a({specObj:s});return kr(i,o),ys(o.element,r,{toolboxCreator:Ope,visitorOptions:{keyMap:Epe,nodeTypeGetter:ff}})},A7=e=>(t,r={})=>Cpe(t,{specPath:e,...r});wf.refract=A7(["visitors","document","objects","JSONSchema","$visitor"]);wm.refract=A7(["visitors","document","objects","LinkDescription","$visitor"]);class ya extends wf{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 xm extends pf{}class Am extends df{}class Om extends hf{}class Cm extends mf{}class gR extends nm{}class yR extends im{}const vR={namespace:e=>{const{base:t}=e;return t.register("callback",um),t.register("components",cm),t.register("contact",lm),t.register("discriminator",fR),t.register("encoding",pR),t.register("example",fm),t.register("externalDocumentation",pm),t.register("header",dm),t.register("info",hm),t.register("jsonSchemaDialect",eo),t.register("license",mm),t.register("link",gm),t.register("mediaType",ym),t.register("oAuthFlow",dR),t.register("oAuthFlows",hR),t.register("openapi",mR),t.register("openApi3_1",Ca),t.register("operation",gf),t.register("parameter",vm),t.register("pathItem",ga),t.register("paths",bm),t.register("reference",Ra),t.register("requestBody",_m),t.register("response",Em),t.register("responses",Sm),t.register("schema",ya),t.register("securityRequirement",xm),t.register("securityScheme",Am),t.register("server",Om),t.register("serverVariable",Cm),t.register("tag",gR),t.register("xml",yR),t}},nh=class nh extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(nh.primaryClass)}};X(nh,"primaryClass","components-path-items");let NA=nh;const ih=class ih extends ve.ObjectElement{constructor(t,r,n){super(t,r,n),this.classes.push(ih.primaryClass)}};X(ih,"primaryClass","webhooks");let MA=ih;const gi=e=>{if(_r(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Mi={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"],...gs};class xf{constructor(t,r,n){X(this,"internalStore");this.storageElement=t,this.storageField=r,this.storageSubField=n}get store(){if(!this.internalStore){let t=this.storageElement.get(this.storageField);Dt(t)||(t=new ve.ObjectElement,this.storageElement.set(this.storageField,t));let r=t.get(this.storageSubField);rn(r)||(r=new ve.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 Rpe=({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:Ie(o.name)===Ie(u.name)&&Ie(o.in)===Ie(u.in),s=[];let a;return{visitor:{OpenApi3_1Element:{enter(o){a=new xf(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=Fh(s);if(!Array.isArray(h)||h.length===0)return;const d=n([...f,c,o]);if(a.includes(d))return;const g=O5([],["parameters","content"],o),y=j5(i,[...g,...h]);o.parameters=new hd(y),a.append(d)}}}}},Tpe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i,s;return{visitor:{OpenApi3_1Element:{enter(a){s=new xf(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 md((g=i)===null||g===void 0?void 0:g.content),s.append(f)}}}}}},DA=e=>e.replace(/\s/g,""),qA=e=>e.replace(/\W/gi,"_"),Ipe=(e,t)=>{const r=qA(DA(t.toLowerCase())),n=qA(DA(e));return`${r}${n}`},jpe=(e,t,r)=>{const n=DA(e);return n.length>0?qA(n):Ipe(t,r)},Ppe=({storageField:e="x-normalized",operationIdNormalizer:t=jpe}={})=>r=>{const{predicates:n,ancestorLineageToJSONPointer:i,namespace:s}=r,a=[],o=[],u=[];let c;return{visitor:{OpenApi3_1Element:{enter(l){c=new xf(l,e,"operation-ids")},leave(){const l=_se(f=>Ie(f.operationId),o);Object.entries(l).forEach(([f,h])=>{Array.isArray(h)&&(h.length<=1||h.forEach((d,g)=>{const y=`${f}${g+1}`;d.operationId=new s.elements.String(y)}))}),u.forEach(f=>{if(typeof f.operationId>"u")return;const h=String(Ie(f.operationId)),d=o.find(g=>Ie(g.meta.get("originalOperationId"))===h);typeof d>"u"||(f.operationId=Ye.safe(d.operationId),f.meta.set("originalOperationId",h),f.set("__originalOperationId",h))}),o.length=0,u.length=0,c=void 0}},PathItemElement:{enter(l){const f=cu("path",Ie(l.meta.get("path")));a.push(f)},leave(){a.pop()}},OperationElement:{enter(l,f,h,d,g){if(typeof l.operationId>"u")return;const y=i([...g,h,l]);if(c.includes(y))return;const v=String(Ie(l.operationId)),_=Fh(a),b=cu("method",Ie(l.meta.get("http-method"))),S=t(v,_,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))}}}}},kpe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new xf(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 d=s.examples.map(g=>Ye.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",d),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",d[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Ye(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Ye(s.example)),i.append(h)))}}}}}},Npe=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:n}=t;let i;return{visitor:{OpenApi3_1Element:{enter(s){i=new xf(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 d=s.examples.map(g=>Ye.safe(g.value));typeof s.schema.examples<"u"&&(s.schema.set("examples",d),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",d[0]),i.append(h));return}typeof s.example<"u"&&(typeof s.schema.examples<"u"&&(s.schema.set("examples",[Ye(s.example)]),i.append(h)),typeof s.schema.example<"u"&&(s.schema.set("example",Ye(s.example)),i.append(h)))}}}}}},Mpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof um||e(n)&&t("callback",n)&&r("object",n)),Dpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cm||e(n)&&t("components",n)&&r("object",n)),qpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lm||e(n)&&t("contact",n)&&r("object",n)),Fpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fm||e(n)&&t("example",n)&&r("object",n)),$pe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pm||e(n)&&t("externalDocumentation",n)&&r("object",n)),Lpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dm||e(n)&&t("header",n)&&r("object",n)),Bpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hm||e(n)&&t("info",n)&&r("object",n)),O7=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof eo||e(n)&&t("jsonSchemaDialect",n)&&r("string",n)),Upe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mm||e(n)&&t("license",n)&&r("object",n)),Vpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gm||e(n)&&t("link",n)&&r("object",n)),zpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mR||e(n)&&t("openapi",n)&&r("string",n)),C7=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>i=>i instanceof Ca||e(i)&&t("openApi3_1",i)&&r("object",i)&&n("api",i)),R7=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gf||e(n)&&t("operation",n)&&r("object",n)),Wpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vm||e(n)&&t("parameter",n)&&r("object",n)),to=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ga||e(n)&&t("pathItem",n)&&r("object",n)),Jpe=e=>{if(!to(e)||!ft(e.$ref))return!1;const t=Ie(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Hpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bm||e(n)&&t("paths",n)&&r("object",n)),yo=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ra||e(n)&&t("reference",n)&&r("object",n)),Kpe=e=>{if(!yo(e)||!ft(e.$ref))return!1;const t=Ie(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Gpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _m||e(n)&&t("requestBody",n)&&r("object",n)),Ype=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Em||e(n)&&t("response",n)&&r("object",n)),Xpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sm||e(n)&&t("responses",n)&&r("object",n)),Di=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ya||e(n)&&t("schema",n)&&r("object",n)),bR=e=>Ll(e)&&e.classes.includes("boolean-json-schema"),Zpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xm||e(n)&&t("securityRequirement",n)&&r("object",n)),Qpe=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Am||e(n)&&t("securityScheme",n)&&r("object",n)),ede=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Om||e(n)&&t("server",n)&&r("object",n)),tde=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cm||e(n)&&t("serverVariable",n)&&r("object",n)),rde=ze(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ym||e(n)&&t("mediaType",n)&&r("object",n)),nde=Object.freeze(Object.defineProperty({__proto__:null,isBooleanJsonSchemaElement:bR,isCallbackElement:Mpe,isComponentsElement:Dpe,isContactElement:qpe,isExampleElement:Fpe,isExternalDocumentationElement:$pe,isHeaderElement:Lpe,isInfoElement:Bpe,isJsonSchemaDialectElement:O7,isLicenseElement:Upe,isLinkElement:Vpe,isMediaTypeElement:rde,isOpenApi3_1Element:C7,isOpenapiElement:zpe,isOperationElement:R7,isParameterElement:Wpe,isPathItemElement:to,isPathItemElementExternal:Jpe,isPathsElement:Hpe,isReferenceElement:yo,isReferenceElementExternal:Kpe,isRequestBodyElement:Gpe,isResponseElement:Ype,isResponsesElement:Xpe,isSchemaElement:Di,isSecurityRequirementElement:Zpe,isSecuritySchemeElement:Qpe,isServerElement:ede,isServerVariableElement:tde},Symbol.toStringTag,{value:"Module"})),ide=e=>{const t=e.reduce((r,n,i)=>{if(zi(n)){const s=String(Ie(n.key));r.push(s)}else if(rn(e[i-2])){const s=String(e[i-2].content.indexOf(n));r.push(s)}return r},[]);return J9(t)},T7=()=>{const e=zs(vR);return{predicates:{...nde,isElement:_r,isStringElement:ft,isArrayElement:rn,isObjectElement:Dt,isMemberElement:zi,isServersElement:a7,includesClasses:fu,hasElementSourceMap:ku},ancestorLineageToJSONPointer:ide,namespace:e}};class sde extends $e(Et,We){constructor(t){super(t),this.element=new Ca,this.specPath=lt(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(t){return this.openApiGenericElement=t,Et.prototype.ObjectElement.call(this,t)}}const ade=Se.visitors.document.objects.Info.$visitor;class ode extends ade{constructor(t){super(t),this.element=new hm}}const ude=Se.visitors.document.objects.Contact.$visitor;class cde extends ude{constructor(t){super(t),this.element=new lm}}const lde=Se.visitors.document.objects.License.$visitor;class fde extends lde{constructor(t){super(t),this.element=new mm}}const pde=Se.visitors.document.objects.Link.$visitor;class dde extends pde{constructor(t){super(t),this.element=new gm}}class hde extends $e(Ji,We){StringElement(t){const r=new eo(Ie(t));return this.copyMetaAndAttributes(t,r),this.element=r,Tt}}const mde=Se.visitors.document.objects.Server.$visitor;class gde extends mde{constructor(t){super(t),this.element=new Om}}const yde=Se.visitors.document.objects.ServerVariable.$visitor;class vde extends yde{constructor(t){super(t),this.element=new Cm}}const bde=Se.visitors.document.objects.MediaType.$visitor;class _de extends bde{constructor(t){super(t),this.element=new ym}}const Ede=Se.visitors.document.objects.SecurityRequirement.$visitor;class Sde extends Ede{constructor(t){super(t),this.element=new xm}}const wde=Se.visitors.document.objects.Components.$visitor;class xde extends wde{constructor(t){super(t),this.element=new cm}}const Ade=Se.visitors.document.objects.Tag.$visitor;class Ode extends Ade{constructor(t){super(t),this.element=new gR}}const Cde=Se.visitors.document.objects.Reference.$visitor;class Rde extends Cde{constructor(t){super(t),this.element=new Ra}}const Tde=Se.visitors.document.objects.Parameter.$visitor;class Ide extends Tde{constructor(t){super(t),this.element=new vm}}const jde=Se.visitors.document.objects.Header.$visitor;class Pde extends jde{constructor(t){super(t),this.element=new dm}}class kde extends $e(Et,Nr,We){constructor(t){super(t),this.element=new ya,this.specPath=lt(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=eo.default,this.passingOptionsNames.push("parent")}ObjectElement(t){this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element;const r=Et.prototype.ObjectElement.call(this,t);return ft(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(t){return qr.prototype.BooleanElement.call(this,t)}get defaultDialectIdentifier(){let t;return this.openApiSemanticElement!==void 0&&O7(this.openApiSemanticElement.jsonSchemaDialect)?t=Ie(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&ft(this.openApiGenericElement.get("jsonSchemaDialect"))?t=Ie(this.openApiGenericElement.get("jsonSchemaDialect")):t=Ie(this.jsonSchemaDefaultDialect),t}handleDialectIdentifier(t){return qr.prototype.handleDialectIdentifier.call(this,t)}handleSchemaIdentifier(t){return qr.prototype.handleSchemaIdentifier.call(this,t)}}class Nde extends h7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}let Mde=class extends m7{constructor(t){super(t),this.passingOptionsNames.push("parent")}};class Dde extends g7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class qde extends y7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Fde extends v7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class $de extends w7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Lde extends b7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}class Bde extends _7{constructor(t){super(t),this.passingOptionsNames.push("parent")}}const Ude=Se.visitors.document.objects.Discriminator.$visitor;class Vde extends Ude{constructor(t){super(t),this.element=new fR,this.canSupportSpecificationExtensions=!0}}const zde=Se.visitors.document.objects.XML.$visitor;class Wde extends zde{constructor(t){super(t),this.element=new yR}}class Jde extends $e(yt,We){constructor(t){super(t),this.element=new dd,this.specPath=lt(["document","objects","Schema"])}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(Di).forEach((n,i)=>{n.setMetaProperty("schemaName",Ie(i))}),r}}class Hde extends $e(yt,We){constructor(t){super(t),this.element=new NA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(yo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const Kde=Se.visitors.document.objects.Example.$visitor;class Gde extends Kde{constructor(t){super(t),this.element=new fm}}const Yde=Se.visitors.document.objects.ExternalDocumentation.$visitor;class Xde extends Yde{constructor(t){super(t),this.element=new pm}}const Zde=Se.visitors.document.objects.Encoding.$visitor;class Qde extends Zde{constructor(t){super(t),this.element=new pR}}const ehe=Se.visitors.document.objects.Paths.$visitor;class the extends ehe{constructor(t){super(t),this.element=new bm}}const rhe=Se.visitors.document.objects.RequestBody.$visitor;class nhe extends rhe{constructor(t){super(t),this.element=new _m}}const EL=Se.visitors.document.objects.Callback.$visitor;class ihe extends EL{constructor(t){super(t),this.element=new um,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=EL.prototype.ObjectElement.call(this,t);return this.element.filter(yo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),r}}const she=Se.visitors.document.objects.Response.$visitor;class ahe extends she{constructor(t){super(t),this.element=new Em}}const ohe=Se.visitors.document.objects.Responses.$visitor;class uhe extends ohe{constructor(t){super(t),this.element=new Sm}}const che=Se.visitors.document.objects.Operation.$visitor;class lhe extends che{constructor(t){super(t),this.element=new gf}}const fhe=Se.visitors.document.objects.PathItem.$visitor;class phe extends fhe{constructor(t){super(t),this.element=new ga}}const dhe=Se.visitors.document.objects.SecurityScheme.$visitor;class hhe extends dhe{constructor(t){super(t),this.element=new Am}}const mhe=Se.visitors.document.objects.OAuthFlows.$visitor;class ghe extends mhe{constructor(t){super(t),this.element=new hR}}const yhe=Se.visitors.document.objects.OAuthFlow.$visitor;class vhe extends yhe{constructor(t){super(t),this.element=new dR}}class bhe extends $e(yt,We){constructor(t){super(t),this.element=new MA,this.specPath=r=>or(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=yt.prototype.ObjectElement.call(this,t);return this.element.filter(yo).forEach(n=>{n.setMetaProperty("referenced-element","pathItem")}),this.element.filter(to).forEach((n,i)=>{n.setMetaProperty("webhook-name",Ie(i))}),r}}const{JSONSchema:_he,LinkDescription:Ehe}=x7.visitors.document.objects,She={visitors:{value:Se.visitors.value,document:{objects:{OpenApi:{$visitor:sde,fixedFields:{openapi:Se.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:hde,servers:Se.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:bhe,components:{$ref:"#/visitors/document/objects/Components"},security:Se.visitors.document.objects.OpenApi.fixedFields.security,tags:Se.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ode,fixedFields:{title:Se.visitors.document.objects.Info.fixedFields.title,description:Se.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Se.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Se.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:cde,fixedFields:{name:Se.visitors.document.objects.Contact.fixedFields.name,url:Se.visitors.document.objects.Contact.fixedFields.url,email:Se.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:fde,fixedFields:{name:Se.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Se.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:gde,fixedFields:{url:Se.visitors.document.objects.Server.fixedFields.url,description:Se.visitors.document.objects.Server.fixedFields.description,variables:Se.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:vde,fixedFields:{enum:Se.visitors.document.objects.ServerVariable.fixedFields.enum,default:Se.visitors.document.objects.ServerVariable.fixedFields.default,description:Se.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:xde,fixedFields:{schemas:Jde,responses:Se.visitors.document.objects.Components.fixedFields.responses,parameters:Se.visitors.document.objects.Components.fixedFields.parameters,examples:Se.visitors.document.objects.Components.fixedFields.examples,requestBodies:Se.visitors.document.objects.Components.fixedFields.requestBodies,headers:Se.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Se.visitors.document.objects.Components.fixedFields.securitySchemes,links:Se.visitors.document.objects.Components.fixedFields.links,callbacks:Se.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Hde}},Paths:{$visitor:the},PathItem:{$visitor:phe,fixedFields:{$ref:Se.visitors.document.objects.PathItem.fixedFields.$ref,summary:Se.visitors.document.objects.PathItem.fixedFields.summary,description:Se.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:Se.visitors.document.objects.PathItem.fixedFields.servers,parameters:Se.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:lhe,fixedFields:{tags:Se.visitors.document.objects.Operation.fixedFields.tags,summary:Se.visitors.document.objects.Operation.fixedFields.summary,description:Se.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Se.visitors.document.objects.Operation.fixedFields.operationId,parameters:Se.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Se.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Se.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Se.visitors.document.objects.Operation.fixedFields.deprecated,security:Se.visitors.document.objects.Operation.fixedFields.security,servers:Se.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Xde,fixedFields:{description:Se.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Se.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Ide,fixedFields:{name:Se.visitors.document.objects.Parameter.fixedFields.name,in:Se.visitors.document.objects.Parameter.fixedFields.in,description:Se.visitors.document.objects.Parameter.fixedFields.description,required:Se.visitors.document.objects.Parameter.fixedFields.required,deprecated:Se.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Se.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Se.visitors.document.objects.Parameter.fixedFields.style,explode:Se.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Se.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Se.visitors.document.objects.Parameter.fixedFields.example,examples:Se.visitors.document.objects.Parameter.fixedFields.examples,content:Se.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:nhe,fixedFields:{description:Se.visitors.document.objects.RequestBody.fixedFields.description,content:Se.visitors.document.objects.RequestBody.fixedFields.content,required:Se.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:_de,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Se.visitors.document.objects.MediaType.fixedFields.example,examples:Se.visitors.document.objects.MediaType.fixedFields.examples,encoding:Se.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Qde,fixedFields:{contentType:Se.visitors.document.objects.Encoding.fixedFields.contentType,headers:Se.visitors.document.objects.Encoding.fixedFields.headers,style:Se.visitors.document.objects.Encoding.fixedFields.style,explode:Se.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Se.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:uhe,fixedFields:{default:Se.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:ahe,fixedFields:{description:Se.visitors.document.objects.Response.fixedFields.description,headers:Se.visitors.document.objects.Response.fixedFields.headers,content:Se.visitors.document.objects.Response.fixedFields.content,links:Se.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:ihe},Example:{$visitor:Gde,fixedFields:{summary:Se.visitors.document.objects.Example.fixedFields.summary,description:Se.visitors.document.objects.Example.fixedFields.description,value:Se.visitors.document.objects.Example.fixedFields.value,externalValue:Se.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:dde,fixedFields:{operationRef:Se.visitors.document.objects.Link.fixedFields.operationRef,operationId:Se.visitors.document.objects.Link.fixedFields.operationId,parameters:Se.visitors.document.objects.Link.fixedFields.parameters,requestBody:Se.visitors.document.objects.Link.fixedFields.requestBody,description:Se.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Pde,fixedFields:{description:Se.visitors.document.objects.Header.fixedFields.description,required:Se.visitors.document.objects.Header.fixedFields.required,deprecated:Se.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Se.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Se.visitors.document.objects.Header.fixedFields.style,explode:Se.visitors.document.objects.Header.fixedFields.explode,allowReserved:Se.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Se.visitors.document.objects.Header.fixedFields.example,examples:Se.visitors.document.objects.Header.fixedFields.examples,content:Se.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Ode,fixedFields:{name:Se.visitors.document.objects.Tag.fixedFields.name,description:Se.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Rde,fixedFields:{$ref:Se.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Ehe},Schema:{$visitor:kde,fixedFields:{..._he.fixedFields,$defs:Nde,allOf:Mde,anyOf:Dde,oneOf:qde,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:Fde,prefixItems:$de,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Lde,patternProperties:Bde,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:Vde,fixedFields:{propertyName:Se.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Se.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Wde,fixedFields:{name:Se.visitors.document.objects.XML.fixedFields.name,namespace:Se.visitors.document.objects.XML.fixedFields.namespace,prefix:Se.visitors.document.objects.XML.fixedFields.prefix,attribute:Se.visitors.document.objects.XML.fixedFields.attribute,wrapped:Se.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:hhe,fixedFields:{type:Se.visitors.document.objects.SecurityScheme.fixedFields.type,description:Se.visitors.document.objects.SecurityScheme.fixedFields.description,name:Se.visitors.document.objects.SecurityScheme.fixedFields.name,in:Se.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Se.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Se.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Se.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:ghe,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:vhe,fixedFields:{authorizationUrl:Se.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Se.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Se.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Se.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Sde}},extension:{$visitor:Se.visitors.document.extension.$visitor}}}},whe=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=ve.refract(e),i=Aa(She),s=zr(t,i),a=new s({specObj:i});return kr(n,a),ys(a.element,r,{toolboxCreator:T7,visitorOptions:{keyMap:Mi,nodeTypeGetter:gi}})},Lt=e=>(t,r={})=>whe(t,{specPath:e,...r});um.refract=Lt(["visitors","document","objects","Callback","$visitor"]);cm.refract=Lt(["visitors","document","objects","Components","$visitor"]);lm.refract=Lt(["visitors","document","objects","Contact","$visitor"]);fm.refract=Lt(["visitors","document","objects","Example","$visitor"]);fR.refract=Lt(["visitors","document","objects","Discriminator","$visitor"]);pR.refract=Lt(["visitors","document","objects","Encoding","$visitor"]);pm.refract=Lt(["visitors","document","objects","ExternalDocumentation","$visitor"]);dm.refract=Lt(["visitors","document","objects","Header","$visitor"]);hm.refract=Lt(["visitors","document","objects","Info","$visitor"]);eo.refract=Lt(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]);mm.refract=Lt(["visitors","document","objects","License","$visitor"]);gm.refract=Lt(["visitors","document","objects","Link","$visitor"]);ym.refract=Lt(["visitors","document","objects","MediaType","$visitor"]);dR.refract=Lt(["visitors","document","objects","OAuthFlow","$visitor"]);hR.refract=Lt(["visitors","document","objects","OAuthFlows","$visitor"]);mR.refract=Lt(["visitors","document","objects","OpenApi","fixedFields","openapi"]);Ca.refract=Lt(["visitors","document","objects","OpenApi","$visitor"]);gf.refract=Lt(["visitors","document","objects","Operation","$visitor"]);vm.refract=Lt(["visitors","document","objects","Parameter","$visitor"]);ga.refract=Lt(["visitors","document","objects","PathItem","$visitor"]);bm.refract=Lt(["visitors","document","objects","Paths","$visitor"]);Ra.refract=Lt(["visitors","document","objects","Reference","$visitor"]);_m.refract=Lt(["visitors","document","objects","RequestBody","$visitor"]);Em.refract=Lt(["visitors","document","objects","Response","$visitor"]);Sm.refract=Lt(["visitors","document","objects","Responses","$visitor"]);ya.refract=Lt(["visitors","document","objects","Schema","$visitor"]);xm.refract=Lt(["visitors","document","objects","SecurityRequirement","$visitor"]);Am.refract=Lt(["visitors","document","objects","SecurityScheme","$visitor"]);Om.refract=Lt(["visitors","document","objects","Server","$visitor"]);Cm.refract=Lt(["visitors","document","objects","ServerVariable","$visitor"]);gR.refract=Lt(["visitors","document","objects","Tag","$visitor"]);yR.refract=Lt(["visitors","document","objects","XML","$visitor"]);class xhe extends Ul{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 Li;if(n.length!==0){const s=new ve.StringElement(n);s.classes.push("result"),i.push(s)}return i}catch(r){throw new Ds(`Error parsing "${t.uri}"`,{cause:r})}}}class Ahe extends xoe{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 m9('"openapi-3-1" dereference strategy is not available.');const i=new lu,s=V5(r,{resolve:{internal:!1},dereference:{refSet:i}});return await n.dereference(t,s),i}}const{AbortController:Ohe,AbortSignal:Che}=globalThis;typeof globalThis.AbortController>"u"&&(globalThis.AbortController=Ohe);typeof globalThis.AbortSignal>"u"&&(globalThis.AbortSignal=Che);class Rhe extends woe{constructor({swaggerHTTPClient:r=Uc,swaggerHTTPClientConfig:n={},...i}={}){super({...i,name:"http-swagger-client"});X(this,"swaggerHTTPClient",Uc);X(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 d=await fetch(f,h);try{d.headers.delete("Content-Type")}catch{d=new Response(d.body,{...d,headers:new Headers(d.headers)}),d.headers.delete("Content-Type")}return d},credentials:o,redirect:u,follow:c,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(l){throw new z5(`Error downloading "${r.uri}"`,{cause:l})}finally{clearTimeout(a)}}}class The extends Ul{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 Ds("json-swagger-client parser plugin doesn't support sourceMaps option");const r=new Li,n=t.toString();if(this.allowEmpty&&n.trim()==="")return r;try{const i=f9(JSON.parse(n));return i.classes.push("result"),r.push(i),r}catch(i){throw new Ds(`Error parsing "${t.uri}"`,{cause:i})}}}class Ihe extends Ul{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 Xa.load(t.toString(),{schema:Pc}),!0}catch{return!1}return!1}async parse(t){if(this.sourceMap)throw new Ds("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const r=new Li,n=t.toString();try{const i=Xa.load(n,{schema:Pc});if(this.allowEmpty&&typeof i>"u")return r;const s=f9(i);return s.classes.push("result"),r.push(s),r}catch(i){throw new Ds(`Error parsing "${t.uri}"`,{cause:i})}}}class jhe extends Ul{constructor(r={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new aR(...du.filterByFormat("generic"),...du.filterByFormat("json")),...r});X(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 Ds("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Li,i=r.toString();if(this.allowEmpty&&i.trim()==="")return n;try{const s=JSON.parse(i),a=Ca.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new Ds(`Error parsing "${r.uri}"`,{cause:s})}}}class Phe extends Ul{constructor(r={}){super({name:"openapi-yaml-3-1-swagger-client",mediaTypes:new aR(...du.filterByFormat("generic"),...du.filterByFormat("yaml")),...r});X(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 Xa.load(s),this.detectionRegExp.test(s)}catch{return!1}return!1}async parse(r){if(this.sourceMap)throw new Ds("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const n=new Li,i=r.toString();try{const s=Xa.load(i,{schema:Pc});if(this.allowEmpty&&typeof s>"u")return n;const a=Ca.refract(s,this.refractorOpts);return a.classes.push("result"),n.push(a),n}catch(s){throw new Ds(`Error parsing "${r.uri}"`,{cause:s})}}}const Rm=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),mu=e=>{const t=B5(e);return F5("#",t)},khe=e=>{if(!Rm(e))throw new Roe(e);return e},_R=(e,t)=>{const r=khe(e),n=l9(i=>Di(i)&&Ie(i.$anchor)===r,t);if(xa(n))throw new Ooe(`Evaluation failed on token: "${r}"`);return n},I7=(e,t)=>{if(typeof t.$ref>"u")return;const r=B5(Ie(t.$ref)),n=Ie(t.meta.get("ancestorsSchemaIdentifiers"));return`${Pu((s,a)=>Zr(s,zh(Yt(a))),e,[...n,Ie(t.$ref)])}${r==="#"?"":r}`},Nhe=(e,t)=>{if(typeof t.$id>"u")return;const r=Ie(t.meta.get("ancestorsSchemaIdentifiers"));return Pu((n,i)=>Zr(n,zh(Yt(i))),e,r)},Ac=e=>{if(Ac.cache.has(e))return Ac.cache.get(e);const t=ya.refract(e);return Ac.cache.set(e,t),t};Ac.cache=new WeakMap;const un=e=>Ga(e)?Ac(e):e,Tm=(e,t)=>{const{cache:r}=Tm,n=Yt(e),i=a=>Di(a)&&typeof a.$id<"u";if(!r.has(t)){const a=ooe(i,t);r.set(t,Array.from(a))}const s=r.get(t).find(a=>Nhe(n,a)===n);if(xa(s))throw new KC(`Evaluation failed on URI: "${e}"`);return Rm(mu(e))?_R(mu(e),s):Ni(s,di(e))};Tm.cache=new WeakMap;const cp=kr[Symbol.for("nodejs.util.promisify.custom")],Kr=new JC,ci=(e,t,r,n)=>{zi(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class Ba{constructor({reference:t,namespace:r,options:n,indirections:i=[],ancestors:s=new mw,refractCache:a=new Map,allOfDiscriminatorMapping:o=new Map}){X(this,"indirections");X(this,"namespace");X(this,"reference");X(this,"options");X(this,"ancestors");X(this,"refractCache");X(this,"allOfDiscriminatorMapping");X(this,"OpenApi3_1Element",{leave:(t,r,n,i,s,a)=>{var o;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping))return;const u=Ur(t);return u.setMetaProperty("allOfDiscriminatorMapping",Object.fromEntries(this.allOfDiscriminatorMapping)),a.replaceWith(u,ci),n?void 0:u}});this.indirections=i,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new mw(...s),this.refractCache=a,this.allOfDiscriminatorMapping=o}toBaseURI(t){return Zr(this.reference.uri,zh(Yt(t)))}async toReference(t){if(this.reference.depth>=this.options.resolve.maxDepth)throw new Toe(`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(R5(r,"uri"));const i=await Oae(rs(r),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=new Ps({uri:r,value:Ye(i),depth:this.reference.depth+1});if(n.add(s),this.options.dereference.immutable){const a=new Ps({uri:`immutable://${r}`,value:i,depth:this.reference.depth+1});n.add(a)}return s}toAncestorLineage(t){const r=new Set(t.filter(_r));return[new mw(...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(Ie(t.$ref)),l=Yt(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return!1;const h=await this.toReference(Ie(t.$ref)),d=Zr(c,Ie(t.$ref));this.indirections.push(t);const g=di(d);let y=Ni(h.value.result,g);if(y.id=Kr.identify(y),Ga(y)){const E=Ie(t.meta.get("referenced-element")),A=`${E}-${Ie(Kr.identify(y))}`;this.refractCache.has(A)?y=this.refractCache.get(A):or(y)?(y=Ra.refract(y),y.setMetaProperty("referenced-element",E),this.refractCache.set(A,y)):(y=this.namespace.getElementClass(E).refract(y),this.refractCache.set(A,y))}if(t===y)throw new gr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 gr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,_;const E=new ve.RefElement(y.id,{type:"reference",uri:h.uri,$ref:Ie(t.$ref)}),R=((v=(_=this.options.dereference.strategyOpts["openapi-3-1"])===null||_===void 0?void 0:_.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(E);return a.replaceWith(R,ci),n?!1:R}}const b=Yt(h.refSet.rootRef.uri)!==h.uri,S=["error","replace"].includes(this.options.dereference.circular);if((f||b||yo(y)||S)&&!o.includesCycle(y)){u.add(t);const E=new Ba({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await cp(y,E,{keyMap:Mi,nodeTypeGetter:gi}),u.delete(t)}this.indirections.pop();const w=Ur(y);return w.setMetaProperty("id",Kr.generateId()),w.setMetaProperty("ref-fields",{$ref:Ie(t.$ref),description:Ie(t.description),summary:Ie(t.summary)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Ye(Kr.identify(t))),Dt(y)&&Dt(w)&&(t.hasKey("description")&&"description"in y&&(w.remove("description"),w.set("description",t.get("description"))),t.hasKey("summary")&&"summary"in y&&(w.remove("summary"),w.set("summary",t.get("summary")))),a.replaceWith(w,ci),n?!1:w}async PathItemElement(t,r,n,i,s,a){if(!ft(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]),c=this.toBaseURI(Ie(t.$ref)),l=Yt(this.reference.uri)===c,f=!l;if(!this.options.resolve.internal&&l||!this.options.resolve.external&&f)return;const h=await this.toReference(Ie(t.$ref)),d=Zr(c,Ie(t.$ref));this.indirections.push(t);const g=di(d);let y=Ni(h.value.result,g);if(y.id=Kr.identify(y),Ga(y)){const w=`path-item-${Ie(Kr.identify(y))}`;this.refractCache.has(w)?y=this.refractCache.get(w):(y=ga.refract(y),this.refractCache.set(w,y))}if(t===y)throw new gr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 gr("Circular reference detected");if(this.options.dereference.circular==="replace"){var v,_;const w=new ve.RefElement(y.id,{type:"path-item",uri:h.uri,$ref:Ie(t.$ref)}),A=((v=(_=this.options.dereference.strategyOpts["openapi-3-1"])===null||_===void 0?void 0:_.circularReplacer)!==null&&v!==void 0?v:this.options.dereference.circularReplacer)(w);return a.replaceWith(A,ci),n?!1:A}}const b=Yt(h.refSet.rootRef.uri)!==h.uri,S=["error","replace"].includes(this.options.dereference.circular);if((f||b||to(y)&&ft(y.$ref)||S)&&!o.includesCycle(y)){u.add(t);const w=new Ba({reference:h,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});y=await cp(y,w,{keyMap:Mi,nodeTypeGetter:gi}),u.delete(t)}if(this.indirections.pop(),to(y)){const w=new ga([...y.content],Ye(y.meta),Ye(y.attributes));w.setMetaProperty("id",Kr.generateId()),t.forEach((E,A,R)=>{w.remove(Ie(A)),w.content.push(R)}),w.remove("$ref"),w.setMetaProperty("ref-fields",{$ref:Ie(t.$ref)}),w.setMetaProperty("ref-origin",h.uri),w.setMetaProperty("ref-referencing-element-id",Ye(Kr.identify(t))),y=w}return a.replaceWith(y,ci),n?void 0:y}async LinkElement(t,r,n,i,s,a){if(!ft(t.operationRef)&&!ft(t.operationId))return;if(ft(t.operationRef)&&ft(t.operationId))throw new gr("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(ft(t.operationRef)){var u;const l=di(Ie(t.operationRef)),f=this.toBaseURI(Ie(t.operationRef)),h=Yt(this.reference.uri)===f,d=!h;if(!this.options.resolve.internal&&h||!this.options.resolve.external&&d)return;const g=await this.toReference(Ie(t.operationRef));if(o=Ni(g.value.result,l),Ga(o)){const v=`operation-${Ie(Kr.identify(o))}`;this.refractCache.has(v)?o=this.refractCache.get(v):(o=gf.refract(o),this.refractCache.set(v,o))}o=Ur(o),o.setMetaProperty("ref-origin",g.uri);const y=Ur(t);return(u=y.operationRef)===null||u===void 0||u.meta.set("operation",o),a.replaceWith(y,ci),n?void 0:y}if(ft(t.operationId)){var c;const l=Ie(t.operationId),f=await this.toReference(rs(this.reference.uri));if(o=l9(d=>R7(d)&&_r(d.operationId)&&d.operationId.equals(l),f.value.result),xa(o))throw new gr(`OperationElement(operationId=${l}) not found.`);const h=Ur(t);return(c=h.operationId)===null||c===void 0||c.meta.set("operation",o),a.replaceWith(h,ci),n?void 0:h}}async ExampleElement(t,r,n,i,s,a){if(!ft(t.externalValue))return;if(t.hasKey("value")&&ft(t.externalValue))throw new gr("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(Ie(t.externalValue)),u=Yt(this.reference.uri)===o,c=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&c)return;const l=await this.toReference(Ie(t.externalValue)),f=Ur(l.value.result);f.setMetaProperty("ref-origin",l.uri);const h=Ur(t);return h.value=f,a.replaceWith(h,ci),n?void 0:h}async MemberElement(t,r,n,i,s,a){var o;const u=s[s.length-1];if(!Dt(u)||!u.classes.contains("discriminator-mapping"))return;if(!((o=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&o!==void 0&&o.dereferenceDiscriminatorMapping)||!ft(t.key)||!ft(t.value)||this.indirections.includes(t))return!1;this.indirections.push(t);const[c,l]=this.toAncestorLineage([...s,n]),f=[...l].findLast(Di),h=Ye(f.getMetaProperty("ancestorsSchemaIdentifiers")),d=Ie(t.value),y=/^[a-zA-Z0-9\\.\\-_]+$/.test(d)?`#/components/schemas/${d}`:d,v=new ya({$ref:y});v.setMetaProperty("ancestorsSchemaIdentifiers",h),l.add(v);const _=new Ba({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping}),b=await cp(v,_,{keyMap:Mi,nodeTypeGetter:gi});l.delete(v),this.indirections.pop();const S=Ur(t);return S.value.setMetaProperty("ref-schema",b),a.replaceWith(S,ci),n?void 0:S}async SchemaElement(t,r,n,i,s,a){if(!ft(t.$ref))return;if(this.indirections.includes(t))return!1;const[o,u]=this.toAncestorLineage([...s,n]);let c=await this.toReference(rs(this.reference.uri)),{uri:l}=c;const f=I7(l,t),h=Yt(f),d=new Bc({uri:h}),g=Rse(D=>D.canRead(d),this.options.resolve.resolvers),y=!g;let v=Yt(this.reference.uri)===f,_=!v;this.indirections.push(t);let b;try{if(g||y){l=this.toBaseURI(f);const D=f,P=un(c.value.result);if(b=Tm(D,P),b=un(b),b.id=Kr.identify(b),!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return}else{if(l=this.toBaseURI(f),v=Yt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference(rs(f));const D=di(f),P=un(c.value.result);b=Ni(P,D),b=un(b),b.id=Kr.identify(b)}}catch(D){if(y&&D instanceof KC)if(Rm(mu(f))){if(v=Yt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference(rs(f));const P=mu(f),F=un(c.value.result);b=_R(P,F),b=un(b),b.id=Kr.identify(b)}else{if(l=this.toBaseURI(f),v=Yt(this.reference.uri)===l,_=!v,!this.options.resolve.internal&&v||!this.options.resolve.external&&_)return;c=await this.toReference(rs(f));const P=di(f),F=un(c.value.result);b=Ni(F,P),b=un(b),b.id=Kr.identify(b)}else throw D}if(t===b)throw new gr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 gr("Circular reference detected");if(this.options.dereference.circular==="replace"){var S,w;const D=new ve.RefElement(b.id,{type:"json-schema",uri:c.uri,$ref:Ie(t.$ref)}),F=((S=(w=this.options.dereference.strategyOpts["openapi-3-1"])===null||w===void 0?void 0:w.circularReplacer)!==null&&S!==void 0?S:this.options.dereference.circularReplacer)(D);return a.replaceWith(F,ci),n?!1:F}}const E=Yt(c.refSet.rootRef.uri)!==c.uri,A=["error","replace"].includes(this.options.dereference.circular);if((_||E||Di(b)&&ft(b.$ref)||A)&&!o.includesCycle(b)){u.add(t);const D=new Ba({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping});b=await cp(b,D,{keyMap:Mi,nodeTypeGetter:gi}),u.delete(t)}if(this.indirections.pop(),bR(b)){const D=Ye(b);return D.setMetaProperty("id",Kr.generateId()),D.setMetaProperty("ref-fields",{$ref:Ie(t.$ref),$refBaseURI:f}),D.setMetaProperty("ref-origin",c.uri),D.setMetaProperty("ref-referencing-element-id",Ye(Kr.identify(t))),a.replaceWith(D,ci),n?!1:D}if(Di(b)){var R;const D=new ya([...b.content],Ye(b.meta),Ye(b.attributes));if(D.setMetaProperty("id",Kr.generateId()),t.forEach((P,F,M)=>{D.remove(Ie(F)),D.content.push(M)}),D.remove("$ref"),D.setMetaProperty("ref-fields",{$ref:Ie(t.$ref),$refBaseURI:f}),D.setMetaProperty("ref-origin",c.uri),D.setMetaProperty("ref-referencing-element-id",Ye(Kr.identify(t))),(R=this.options.dereference.strategyOpts["openapi-3-1"])!==null&&R!==void 0&&R.dereferenceDiscriminatorMapping){var I;const P=s[s.length-1],F=[...u].findLast(Di),M=F==null?void 0:F.getMetaProperty("schemaName"),K=Ie(D.getMetaProperty("schemaName"));if(K&&M&&P!==null&&P!==void 0&&(I=P.classes)!==null&&I!==void 0&&I.contains("json-schema-allOf")){var O;const te=(O=this.allOfDiscriminatorMapping.get(K))!==null&&O!==void 0?O:[];te.push(F),this.allOfDiscriminatorMapping.set(K,te)}}b=D}return a.replaceWith(b,ci),n?void 0:b}}const Mhe=kr[Symbol.for("nodejs.util.promisify.custom")];class Dhe extends Aoe{constructor(t){super({...t??{},name:"openapi-3-1"})}canDereference(t){var r;return t.mediaType!=="text/plain"?du.includes(t.mediaType):C7((r=t.parseResult)===null||r===void 0?void 0:r.result)}async dereference(t,r){var n;const i=zs(vR),s=(n=r.dereference.refSet)!==null&&n!==void 0?n:new lu,a=new lu;let o=s,u;s.has(t.uri)?u=s.find(R5(t.uri,"uri")):(u=new Ps({uri:t.uri,value:t.parseResult}),s.add(u)),r.dereference.immutable&&(s.refs.map(f=>new Ps({...f,value:Ye(f.value)})).forEach(f=>a.add(f)),u=a.find(f=>f.uri===t.uri),o=a);const c=new Ba({reference:u,namespace:i,options:r}),l=await Mhe(o.rootRef.value,c,{keyMap:Mi,nodeTypeGetter:gi});return r.dereference.immutable&&a.refs.filter(f=>f.uri.startsWith("immutable://")).map(f=>new Ps({...f,uri:f.uri.replace(/^immutable:\/\//,"")})).forEach(f=>s.add(f)),r.dereference.refSet===null&&s.clean(),a.clean(),l}}const qhe=e=>e.slice(2),Pi=e=>{const t=qhe(e);return t.reduce((r,n,i)=>{if(zi(n)){const s=String(Ie(n.key));r.push(s)}else if(rn(t[i-2])){const s=t[i-2].content.indexOf(n);r.push(s)}return r},[])};class Fhe{constructor({modelPropertyMacro:t,options:r}){X(this,"modelPropertyMacro");X(this,"options");X(this,"SchemaElement",{leave:(t,r,n,i,s)=>{typeof t.properties>"u"||Dt(t.properties)&&t.properties.forEach(a=>{if(Dt(a))try{const c=this.modelPropertyMacro(Ie(a));a.set("default",c)}catch(c){var o,u;const l=new Error(c,{cause:c});l.fullPath=[...Pi([...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 $he{constructor({options:t}){X(this,"options");X(this,"SchemaElement",{leave(t,r,n,i,s){if(typeof t.allOf>"u")return;if(!rn(t.allOf)){var a,o;const f=new TypeError("allOf must be an array");f.fullPath=[...Pi([...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(Di)){var c,l;const f=new TypeError("Elements in allOf must be objects");f.fullPath=[...Pi([...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=yi.all([...f.content,t],{customMerge:d=>Ie(d)==="enum"?(g,y)=>{if(fu(["json-schema-enum"],g)&&fu(["json-schema-enum"],y)){const v=(b,S)=>rn(b)||rn(S)||Dt(b)||Dt(S)?!1:b.equals(Ie(S)),_=Ur(g);return _.content=j5(v)([...g.content,...y.content]),_}return yi(g,y)}:yi});if(t.hasKey("$$ref")||h.remove("$$ref"),t.hasKey("example")){const d=h.getMember("example");d&&(d.value=t.get("example"))}if(t.hasKey("examples")){const d=h.getMember("examples");d&&(d.value=t.get("examples"))}t.content=h.content}}});this.options=t}}var Wa;class Lhe{constructor({parameterMacro:t,options:r}){X(this,"parameterMacro");X(this,"options");Os(this,Wa);X(this,"OperationElement",{enter:t=>{Io(this,Wa,t)},leave:()=>{Io(this,Wa,void 0)}});X(this,"ParameterElement",{leave:(t,r,n,i,s)=>{const a=dr(this,Wa)?Ie(dr(this,Wa)):null,o=Ie(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=Pi([...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}}Wa=new WeakMap;const lp=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t};class Bhe extends ls{}const{wrapError:_w}=YC,Ew=kr[Symbol.for("nodejs.util.promisify.custom")],li=new JC,Na=(e,t,r,n)=>{zi(n)?n.value=e:Array.isArray(n)&&(n[r]=e)};class Oc extends Ba{constructor({allowMetaPatches:r=!0,useCircularStructures:n=!1,basePath:i=null,...s}){super(s);X(this,"useCircularStructures");X(this,"allowMetaPatches");X(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(Ie(r.$ref)),_=Yt(this.reference.uri)===v,b=!_;if(!this.options.resolve.internal&&_||!this.options.resolve.external&&b)return!1;const S=await this.toReference(Ie(r.$ref)),w=Zr(v,Ie(r.$ref));this.indirections.push(r);const E=di(w);let A=Ni(S.value.result,E);if(A.id=li.identify(A),Ga(A)){const D=Ie(r.meta.get("referenced-element")),P=`${D}-${Ie(li.identify(A))}`;this.refractCache.has(P)?A=this.refractCache.get(P):or(A)?(A=Ra.refract(A),A.setMetaProperty("referenced-element",D),this.refractCache.set(P,A)):(A=this.namespace.getElementClass(D).refract(A),this.refractCache.set(P,A))}if(r===A)throw new gr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 gr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const D=new ve.RefElement(A.id,{type:"reference",uri:S.uri,$ref:Ie(r.$ref),baseURI:w,referencingElement:r}),F=((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(D,Na),i?!1:F}}const R=Yt(S.refSet.rootRef.uri)!==S.uri,I=["error","replace"].includes(this.options.dereference.circular);if((b||R||yo(A)||I)&&!g.includesCycle(A)){var l;y.add(r);const D=new Oc({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:[...Pi([...a,i,r]),"$ref"]});A=await Ew(A,D,{keyMap:Mi,nodeTypeGetter:gi}),y.delete(r)}this.indirections.pop();const O=Ur(A);if(O.setMetaProperty("ref-fields",{$ref:Ie(r.$ref),description:Ie(r.description),summary:Ie(r.summary)}),O.setMetaProperty("ref-origin",S.uri),O.setMetaProperty("ref-referencing-element-id",Ye(li.identify(r))),Dt(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&&Dt(O)&&!O.hasKey("$$ref")){const D=Zr(v,w);O.set("$$ref",D)}return o.replaceWith(O,Na),i?!1:O}catch(g){var f,h,d;const y=lp(g),v=_w(y,{baseDoc:this.reference.uri,$ref:Ie(r.$ref),pointer:di(Ie(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Pi([...a,i,r]),"$ref"]});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.call(h,v);return}}async PathItemElement(r,n,i,s,a,o){try{if(!ft(r.$ref))return;if(this.indirections.includes(r)||fu(["cycle"],r.$ref))return!1;const[g,y]=this.toAncestorLineage([...a,i]),v=this.toBaseURI(Ie(r.$ref)),_=Yt(this.reference.uri)===v,b=!_;if(!this.options.resolve.internal&&_||!this.options.resolve.external&&b)return;const S=await this.toReference(Ie(r.$ref)),w=Zr(v,Ie(r.$ref));this.indirections.push(r);const E=di(w);let A=Ni(S.value.result,E);if(A.id=li.identify(A),Ga(A)){const O=`path-item-${Ie(li.identify(A))}`;this.refractCache.has(O)?A=this.refractCache.get(O):(A=ga.refract(A),this.refractCache.set(O,A))}if(r===A)throw new gr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 gr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const O=new ve.RefElement(A.id,{type:"path-item",uri:S.uri,$ref:Ie(r.$ref),baseURI:w,referencingElement:r}),P=((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,Na),i?!1:P}}const R=Yt(S.refSet.rootRef.uri)!==S.uri,I=["error","replace"].includes(this.options.dereference.circular);if((b||R||to(A)&&ft(A.$ref)||I)&&!g.includesCycle(A)){var l;y.add(r);const O=new Oc({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:[...Pi([...a,i,r]),"$ref"]});A=await Ew(A,O,{keyMap:Mi,nodeTypeGetter:gi}),y.delete(r)}if(this.indirections.pop(),to(A)){const O=new ga([...A.content],Ye(A.meta),Ye(A.attributes));if(r.forEach((D,P,F)=>{O.remove(Ie(P)),O.content.push(F)}),O.remove("$ref"),O.setMetaProperty("ref-fields",{$ref:Ie(r.$ref)}),O.setMetaProperty("ref-origin",S.uri),O.setMetaProperty("ref-referencing-element-id",Ye(li.identify(r))),this.allowMetaPatches&&typeof O.get("$$ref")>"u"){const D=Zr(v,w);O.set("$$ref",D)}A=O}return o.replaceWith(A,Na),i?void 0:A}catch(g){var f,h,d;const y=lp(g),v=_w(y,{baseDoc:this.reference.uri,$ref:Ie(r.$ref),pointer:di(Ie(r.$ref)),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Pi([...a,i,r]),"$ref"]});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.call(h,v);return}}async SchemaElement(r,n,i,s,a,o){try{if(!ft(r.$ref))return;if(this.indirections.includes(r))return!1;const[g,y]=this.toAncestorLineage([...a,i]);let v=await this.toReference(rs(this.reference.uri)),{uri:_}=v;const b=I7(_,r),S=Yt(b),w=new Bc({uri:S}),E=!this.options.resolve.resolvers.some(F=>F.canRead(w)),A=!E;let R=Yt(this.reference.uri)===b,I=!R;this.indirections.push(r);let O;try{if(E||A){_=this.toBaseURI(b);const F=b,M=un(v.value.result);if(O=Tm(F,M),O=un(O),O.id=li.identify(O),!this.options.resolve.internal&&R||!this.options.resolve.external&&I)return}else{if(_=this.toBaseURI(b),R=Yt(this.reference.uri)===_,I=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&I)return;v=await this.toReference(rs(b));const F=di(b),M=un(v.value.result);O=Ni(M,F),O=un(O),O.id=li.identify(O)}}catch(F){if(A&&F instanceof KC)if(Rm(mu(b))){if(R=Yt(this.reference.uri)===_,I=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&I)return;v=await this.toReference(rs(b));const M=mu(b),K=un(v.value.result);O=_R(M,K),O=un(O),O.id=li.identify(O)}else{if(_=this.toBaseURI(Ie(b)),R=Yt(this.reference.uri)===_,I=!R,!this.options.resolve.internal&&R||!this.options.resolve.external&&I)return;v=await this.toReference(rs(b));const M=di(b),K=un(v.value.result);O=Ni(K,M),O=un(O),O.id=li.identify(O)}else throw F}if(r===O)throw new gr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Ho(`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 gr("Circular reference detected");if(this.options.dereference.circular==="replace"){var u,c;const F=new ve.RefElement(O.id,{type:"json-schema",uri:v.uri,$ref:Ie(r.$ref),baseURI:Zr(_,b),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)(F);return o.replaceWith(K,Na),i?!1:K}}const D=Yt(v.refSet.rootRef.uri)!==v.uri,P=["error","replace"].includes(this.options.dereference.circular);if((I||D||Di(O)&&ft(O.$ref)||P)&&!g.includesCycle(O)){var l;y.add(r);const F=new Oc({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:[...Pi([...a,i,r]),"$ref"]});O=await Ew(O,F,{keyMap:Mi,nodeTypeGetter:gi}),y.delete(r)}if(this.indirections.pop(),bR(O)){const F=Ye(O);return F.setMetaProperty("ref-fields",{$ref:Ie(r.$ref)}),F.setMetaProperty("ref-origin",v.uri),F.setMetaProperty("ref-referencing-element-id",Ye(li.identify(r))),o.replaceWith(F,Na),i?!1:F}if(Di(O)){const F=new ya([...O.content],Ye(O.meta),Ye(O.attributes));if(r.forEach((M,K,te)=>{F.remove(Ie(K)),F.content.push(te)}),F.remove("$ref"),F.setMetaProperty("ref-fields",{$ref:Ie(r.$ref)}),F.setMetaProperty("ref-origin",v.uri),F.setMetaProperty("ref-referencing-element-id",Ye(li.identify(r))),this.allowMetaPatches&&typeof F.get("$$ref")>"u"){const M=Zr(_,b);F.set("$$ref",M)}O=F}return o.replaceWith(O,Na),i?void 0:O}catch(g){var f,h,d;const y=lp(g),v=new Bhe(`Could not resolve reference: ${y.message}`,{baseDoc:this.reference.uri,$ref:Ie(r.$ref),fullPath:(f=this.basePath)!==null&&f!==void 0?f:[...Pi([...a,i,r]),"$ref"],cause:y});(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(d=h.push)===null||d===void 0||d.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=lp(f),d=_w(h,{baseDoc:this.reference.uri,externalValue:Ie(r.externalValue),fullPath:(u=this.basePath)!==null&&u!==void 0?u:[...Pi([...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,d);return}}}const Uhe=Gh[Symbol.for("nodejs.util.promisify.custom")];class Vhe{constructor({parameterMacro:t,modelPropertyMacro:r,mode:n,options:i,...s}){const a=[];a.push(new Oc({...s,options:i})),typeof r=="function"&&a.push(new Fhe({modelPropertyMacro:r,options:i})),n!=="strict"&&a.push(new $he({options:i})),typeof t=="function"&&a.push(new Lhe({parameterMacro:t,options:i}));const o=Uhe(a,{nodeTypeGetter:gi});Object.assign(this,o)}}const zhe=kr[Symbol.for("nodejs.util.promisify.custom")];class Whe extends Dhe{constructor({allowMetaPatches:r=!1,parameterMacro:n=null,modelPropertyMacro:i=null,mode:s="non-strict",ancestors:a=[],...o}={}){super({...o});X(this,"allowMetaPatches");X(this,"parameterMacro");X(this,"modelPropertyMacro");X(this,"mode");X(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=zs(vR),a=(i=n.dereference.refSet)!==null&&i!==void 0?i:new lu,o=new lu;let u=a,c;a.has(r.uri)?c=a.find(h=>h.uri===r.uri):(c=new Ps({uri:r.uri,value:r.parseResult}),a.add(c)),n.dereference.immutable&&(a.refs.map(h=>new Ps({...h,value:Ye(h.value)})).forEach(h=>o.add(h)),c=o.find(h=>h.uri===r.uri),u=o);const l=new Vhe({reference:c,namespace:s,options:n,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),f=await zhe(u.rootRef.value,l,{keyMap:Mi,nodeTypeGetter:gi});return n.dereference.immutable&&o.refs.filter(h=>h.uri.startsWith("immutable://")).map(h=>new Ps({...h,uri:h.uri.replace(/^immutable:\/\//,"")})).forEach(h=>a.add(h)),n.dereference.refSet===null&&a.clean(),o.clean(),f}}const Jhe=e=>{const t=Ie(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new ve.ObjectElement({$ref:t},Ye(r.meta),Ye(r.attributes))},Im=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:d}=e;try{const{cache:g}=Im,y=d.find(te=>te.match(t)),v=DC(Zx())?Zx():ld,_=tR(e),b=Zr(v,_);let S;g.has(t)?S=g.get(t):(S=Ca.refract(t),S.classes.push("result"),g.set(t,S));const w=new Li([S]),E=J9(a),A=E===""?"":`#${E}`,R=Ni(S,E),I=new Ps({uri:b,value:w}),O=new lu({refs:[I]});E!==""&&(O.rootRef=void 0);const D=[new Set([R])],P=[],F=await Ioe(R,{resolve:{baseURI:`${b}${A}`,resolvers:[new Rhe({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:s}},strategies:[new Ahe]},parse:{mediaType:du.latest(),parsers:[new jhe({allowEmpty:!1,sourceMap:!1}),new Phe({allowEmpty:!1,sourceMap:!1}),new The({allowEmpty:!1,sourceMap:!1}),new Ihe({allowEmpty:!1,sourceMap:!1}),new xhe({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new Whe({allowMetaPatches:o,useCircularStructures:u,parameterMacro:l,modelPropertyMacro:f,mode:h,ancestors:D})],refSet:O,dereferenceOpts:{errors:P},immutable:!1,circular:u?"ignore":"replace",circularReplacer:u?U5.dereference.circularReplacer:Jhe}}),M=poe(R,F,S),K=c?M:y.normalize(M);return{spec:Ie(K),errors:P}}catch(g){if(g instanceof Ya)return{spec:t,errors:[]};throw g}};Im.cache=new WeakMap;const SL=e=>{if(!Dt(e))return e;const t=[Ppe({operationIdNormalizer:(n,i,s)=>Yh({operationId:n},i,s,{v2OperationIdCompatibilityMode:!1})}),Rpe(),Tpe(),kpe(),Npe()];return ys(e,t,{toolboxCreator:T7,visitorOptions:{keyMap:Mi,nodeTypeGetter:gi}})},Hhe=e=>t=>{const r=Ca.refract(t);r.classes.push("result");const n=e(r),i=Ie(n);return Im.cache.set(i,n),Ie(n)},Khe={name:"openapi-3-1-apidom",match(e){return iR(e)},normalize(e){if(!_r(e)&&$i(e)&&!e.$$normalized){const t=Hhe(SL)(e);return t.$$normalized=!0,t}return _r(e)?SL(e):e},async resolve(e){return Im(e)}},Ghe=async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,i=tR(e),s=F9(e),a=t||await k9(s,{requestInterceptor:r,responseInterceptor:n})(i),o={...e,spec:a};return e.strategies.find(c=>c.match(a)).resolve(o)},j7=e=>async t=>{const r={...e,...t};return Ghe(r)},Yhe=j7({strategies:[z9,V9,L9]});function Xhe(){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
|
|
142
|
+
`,t+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2
|
|
143
|
+
`,t+=`server-variable = "{" server-variable-name "}"
|
|
144
|
+
`,t+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
|
|
145
|
+
`,t+=`
|
|
146
|
+
`,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1
|
|
147
|
+
`,t+=`; https://www.rfc-editor.org/errata/eid6937
|
|
148
|
+
`,t+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B
|
|
149
|
+
`,t+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate
|
|
150
|
+
`,t+=` / pct-encoded)
|
|
151
|
+
`,t+=` ; any Unicode character except: CTL, SP,
|
|
152
|
+
`,t+=` ; DQUOTE, "%" (aside from pct-encoded),
|
|
153
|
+
`,t+=' ; "<", ">", "\\", "^", "`", "{", "|", "}"\n',t+=`
|
|
154
|
+
`,t+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5
|
|
155
|
+
`,t+=`DIGIT = %x30-39 ; 0-9
|
|
156
|
+
`,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive
|
|
157
|
+
`,t+=`
|
|
158
|
+
`,t+=`pct-encoded = "%" HEXDIG HEXDIG
|
|
159
|
+
`,t+=`
|
|
160
|
+
`,t+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF
|
|
161
|
+
`,t+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD
|
|
162
|
+
`,t+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD
|
|
163
|
+
`,t+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD
|
|
164
|
+
`,t+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD
|
|
165
|
+
`,t+=` / %xD0000-DFFFD / %xE1000-EFFFD
|
|
166
|
+
`,t+=`
|
|
167
|
+
`,t+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD
|
|
168
|
+
`,t}}const Zhe=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-url-template",ti.charsToString(t,r,n)])}return _t.SEM_OK},Qhe=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable",ti.charsToString(t,r,n)])}return _t.SEM_OK},eme=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["server-variable-name",ti.charsToString(t,r,n)])}return _t.SEM_OK},tme=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["literals",ti.charsToString(t,r,n)])}return _t.SEM_OK},rme=new Xhe,P7=e=>{const t=new xi;return t.ast=new sR,t.ast.callbacks["server-url-template"]=Zhe,t.ast.callbacks["server-variable"]=Qhe,t.ast.callbacks["server-variable-name"]=eme,t.ast.callbacks.literals=tme,{result:t.parse(rme,"server-url-template",e),ast:t.ast}},nme=(e,{strict:t=!1}={})=>{try{const r=P7(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}},ime=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},sme=e=>ime(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),ame=["literals","server-variable-name"],ome=(e,t,r={})=>{const i={...{encoder:sme},...r},s=P7(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>ame.includes(u)).map(([u,c])=>u==="server-variable-name"?Object.hasOwn(t,c)?i.encoder(t[c],c):`{${c}}`:c).join("")};function k7(){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
|
|
169
|
+
`,t+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
|
|
170
|
+
`,t+=`path-template = slash *( path-segment slash ) [ path-segment ]
|
|
171
|
+
`,t+=`path-segment = 1*( path-literal / template-expression )
|
|
172
|
+
`,t+=`slash = "/"
|
|
173
|
+
`,t+=`path-literal = 1*pchar
|
|
174
|
+
`,t+=`template-expression = "{" template-expression-param-name "}"
|
|
175
|
+
`,t+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI)
|
|
176
|
+
`,t+=`
|
|
177
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3
|
|
178
|
+
`,t+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@"
|
|
179
|
+
`,t+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~"
|
|
180
|
+
`,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3
|
|
181
|
+
`,t+=`pct-encoded = "%" HEXDIG HEXDIG
|
|
182
|
+
`,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1
|
|
183
|
+
`,t+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")"
|
|
184
|
+
`,t+=` / "*" / "+" / "," / ";" / "="
|
|
185
|
+
`,t+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2
|
|
186
|
+
`,t+=`
|
|
187
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
|
|
188
|
+
`,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
189
|
+
`,t+=`DIGIT = %x30-39 ; 0-9
|
|
190
|
+
`,t+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"
|
|
191
|
+
`,t}}const ume=(e,t,r,n,i)=>(e===_t.SEM_PRE&&i.push(["slash",ti.charsToString(t,r,n)]),_t.SEM_OK),cme=(e,t,r,n,i)=>{if(e===_t.SEM_PRE){if(Array.isArray(i)===!1)throw new Error("parser's user data must be an array");i.push(["path-template",ti.charsToString(t,r,n)])}return _t.SEM_OK},lme=(e,t,r,n,i)=>(e===_t.SEM_PRE&&i.push(["path-literal",ti.charsToString(t,r,n)]),_t.SEM_OK),fme=(e,t,r,n,i)=>(e===_t.SEM_PRE&&i.push(["template-expression",ti.charsToString(t,r,n)]),_t.SEM_OK),pme=(e,t,r,n,i)=>(e===_t.SEM_PRE&&i.push(["template-expression-param-name",ti.charsToString(t,r,n)]),_t.SEM_OK),dme=new k7,hme=e=>{const t=new xi;return t.ast=new sR,t.ast.callbacks["path-template"]=cme,t.ast.callbacks.slash=ume,t.ast.callbacks["path-literal"]=lme,t.ast.callbacks["template-expression"]=fme,t.ast.callbacks["template-expression-param-name"]=pme,{result:t.parse(dme,"path-template",e),ast:t.ast}},mme=e=>{try{return typeof e=="string"&&decodeURIComponent(e)!==e}catch{return!1}},gme=e=>mme(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),yme=["slash","path-literal","template-expression-param-name"],FA=(e,t,r={})=>{const i={...{encoder:gme},...r},s=hme(e);if(!s.result.success)return e;const a=[];return s.ast.translate(a),a.filter(([u])=>yme.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 k7;new xi;const vme={body:bme,header:Eme,query:wme,path:Sme,formData:_me};function bme({req:e,value:t}){t!==void 0&&(e.body=t)}function _me({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 Eme({req:e,parameter:t,value:r}){e.headers=e.headers||{},typeof r<"u"&&(e.headers[t.name]=r)}function Sme({req:e,value:t,parameter:r,baseURL:n}){if(t!==void 0){const i=e.url.replace(n,""),s=FA(i,{[r.name]:t});e.url=n+s}}function wme({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 jm(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 Af(){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
|
|
192
|
+
`,t+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry )
|
|
193
|
+
`,t+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid
|
|
194
|
+
`,t+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS
|
|
195
|
+
`,t+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored
|
|
196
|
+
`,t+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "="
|
|
197
|
+
`,t+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet
|
|
198
|
+
`,t+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE
|
|
199
|
+
`,t+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE
|
|
200
|
+
`,t+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E
|
|
201
|
+
`,t+=` ; Allow all printable characters except CTLs, semicolon and SP
|
|
202
|
+
`,t+=`
|
|
203
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1
|
|
204
|
+
`,t+=`cookie-string = cookie-pair *( ";" SP cookie-pair )
|
|
205
|
+
`,t+=`
|
|
206
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1
|
|
207
|
+
`,t+=`; https://www.rfc-editor.org/errata/eid5518
|
|
208
|
+
`,t+=`cookie-pair = cookie-name "=" cookie-value
|
|
209
|
+
`,t+=`cookie-name = token
|
|
210
|
+
`,t+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet
|
|
211
|
+
`,t+=` ; https://www.rfc-editor.org/errata/eid8242
|
|
212
|
+
`,t+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E
|
|
213
|
+
`,t+=` ; US-ASCII characters excluding CTLs,
|
|
214
|
+
`,t+=` ; whitespace, DQUOTE, comma, semicolon,
|
|
215
|
+
`,t+=` ; and backslash
|
|
216
|
+
`,t+=`
|
|
217
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2
|
|
218
|
+
`,t+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace
|
|
219
|
+
`,t+=`
|
|
220
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2
|
|
221
|
+
`,t+=`token = 1*(tchar)
|
|
222
|
+
`,t+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*"
|
|
223
|
+
`,t+=' / "+" / "-" / "." / "^" / "_" / "`" / "|" / "~"\n',t+=` / DIGIT / ALPHA
|
|
224
|
+
`,t+=` ; any VCHAR, except delimiters
|
|
225
|
+
`,t+=`
|
|
226
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2
|
|
227
|
+
`,t+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127)
|
|
228
|
+
`,t+=`CTL = %x00-1F / %x7F ; any US-ASCII control character
|
|
229
|
+
`,t+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT
|
|
230
|
+
`,t+=`SP = %x20 ; US-ASCII SP, space (32)
|
|
231
|
+
`,t+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9)
|
|
232
|
+
`,t+=`
|
|
233
|
+
`,t+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1
|
|
234
|
+
`,t+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z
|
|
235
|
+
`,t+=`DIGIT = %x30-39 ; 0-9
|
|
236
|
+
`,t+=`DQUOTE = %x22 ; " (Double Quote)
|
|
237
|
+
`,t+=`WSP = SP / HTAB ; white space
|
|
238
|
+
`,t+=`HTAB = %x09 ; horizontal tab
|
|
239
|
+
`,t+=`CRLF = CR LF ; Internet standard newline
|
|
240
|
+
`,t+=`CR = %x0D ; carriage return
|
|
241
|
+
`,t+=`LF = %x0A ; linefeed
|
|
242
|
+
`,t}}new Af;const xme=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)},Ame=e=>e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/g,""),Pm=e=>e.length>=2&&e.startsWith('"')&&e.endsWith('"'),N7=e=>Pm(e)?e.slice(1,-1):e,M7=e=>`"${e}"`,D7=e=>e,Ome=new xi,Cme=new Af,ER=(e,{strict:t=!0,quoted:r=null}={})=>{try{const n=t?"cookie-value":"lenient-cookie-value",i=Ome.parse(Cme,n,e);return typeof r=="boolean"?i.success&&r===Pm(e):i.success}catch{return!1}},q7=e=>{const r=new TextEncoder().encode(e).reduce((n,i)=>n+String.fromCharCode(i),"");return btoa(r)},Rme=(e,t=q7)=>{const r=String(e);if(ER(r))return r;const n=Pm(r),i=n?N7(r):r,s=t(i);return n?M7(s):s},Tme=e=>Ame(q7(e)),Ime=e=>Rme(e,Tme),jme=new xi,Pme=new Af,F7=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return jme.parse(Pme,r,e).success}catch{return!1}},kme=e=>{if(!F7(e))throw new TypeError(`Invalid cookie name: ${e}`)},$7=e=>{if(!ER(e))throw new TypeError(`Invalid cookie value: ${e}`)},wL={encoders:{name:D7,value:Ime},validators:{name:kme,value:$7}},Nme=(e,t,r={})=>{const n={...r,encoders:{...wL.encoders,...r.encoders},validators:{...wL.validators,...r.validators}},i=n.encoders.name(e),s=n.encoders.value(t);return n.validators.name(i),n.validators.value(s),`${i}=${s}`},Mme=(e,t={})=>(Array.isArray(e)?e:typeof e=="object"&&e!==null?Object.entries(e):[]).map(([n,i])=>Nme(n,i,t)).join("; "),Dme=new xi,qme=new Af,Fme=e=>{const t=String(e);if(ER(t))return t;const r=Pm(t),n=r?N7(t):t;let i="";for(const s of n)i+=Dme.parse(qme,"cookie-octet",s).success?s:xme(s);return r?M7(i):i};new xi;new Af;const $me=e=>{if(!F7(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)},Lme="%3D",Bme="%26",Ume=e=>Fme(e).replace(/[=&]/gu,t=>t==="="?Lme:Bme),$A=(e,t={})=>Mme(e,$h({encoders:{name:D7,value:Ume},validators:{name:$me,value:$7}},t));function Vme({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=FA(u,{[i]:t},{encoder:f=>M9(jm(f,l))})}else c=FA(u,{[i]:t},{encoder:l=>QC({key:r.name,value:l,style:s||"simple",explode:a??!1,escape:"reserved"})});e.url=n+c}function zme({req:e,value:t,parameter:r}){if(e.query=e.query||{},t!==void 0&&r.content){const n=Object.keys(r.content)[0],i=jm(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 Wme=["accept","authorization","content-type"];function Jme({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(Wme.indexOf(t.name.toLowerCase())>-1)){if(r!==void 0&&t.content){const n=Object.keys(t.content)[0];e.headers[t.name]=jm(r,n);return}r!==void 0&&!(Array.isArray(r)&&r.length===0)&&(e.headers[t.name]=QC({key:t.name,value:r,style:t.style||"simple",explode:typeof t.explode>"u"?!1:t.explode,escape:!1}))}}function Hme({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=jm(r,s);e.headers.Cookie=$A({[n]:a});return}if(r!==void 0&&!(Array.isArray(r)&&r.length===0)){var i;const s=QC({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=$A({[n]:a})}}const Kme=Object.freeze(Object.defineProperty({__proto__:null,cookie:Hme,header:Jme,path:Vme,query:zme},Symbol.toStringTag,{value:"Module"})),Gme=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:L7}=Gme;function Yme(e,t){const{operation:r,requestBody:n,securities:i,spec:s,attachContentTypeForEmptyPayload:a}=e;let{requestContentType:o}=e;t=Xme({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,_])=>{const b=parseInt(v,10);return b>=200&&b<300&&$i(_.content)}).reduce((v,[,_])=>v.concat(Object.keys(_.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 _;try{_=JSON.parse(n[v])}catch{_=n[v]}t.form[v]={value:_,encoding:y[v]||{}}})}else if(typeof n=="string"){var d,g;const y=(d=(g=u.content[o])===null||g===void 0?void 0:g.encoding)!==null&&d!==void 0?d:{};try{t.form={};const v=JSON.parse(n);Object.entries(v).forEach(([_,b])=>{t.form[_]={value:b,encoding:y[_]||{}}})}catch{t.form=n}}else t.form=n;else t.body=n}else t.body=n;return t}function Xme({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],d=c[f];if(!h)return;const g=h.value||h,{type:y}=d;if(h){if(y==="apiKey")d.in==="query"&&(s.query[d.name]=g),d.in==="header"&&(s.headers[d.name]=g),d.in==="cookie"&&(s.cookies[d.name]=g);else if(y==="http"){if(/^basic$/i.test(d.scheme)){const v=g.username||"",_=g.password||"",b=L7(`${v}:${_}`);s.headers.Authorization=`Basic ${b}`}/^bearer$/i.test(d.scheme)&&(s.headers.Authorization=`Bearer ${g}`)}else if(y==="oauth2"||y==="openIdConnect"){const v=h.token||{},_=d["x-tokenName"]||"access_token",b=v[_];let S=v.token_type;(!S||S.toLowerCase()==="bearer")&&(S="Bearer"),s.headers.Authorization=`${S} ${b}`}}})}),s)}function Zme(e,t){const{spec:r,operation:n,securities:i,requestContentType:s,responseContentType:a,attachContentTypeForEmptyPayload:o}=e;if(t=Qme({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 Qme({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:d}=h,g=h.value||h,y=c[f],{type:v}=y,_=y["x-tokenName"]||"access_token",b=d&&d[_];let S=d&&d.token_type;if(h)if(v==="apiKey"){const w=y.in==="query"?"query":"headers";i[w]=i[w]||{},i[w][y.name]=g}else if(v==="basic")if(g.header)i.headers.authorization=g.header;else{const w=g.username||"",E=g.password||"";g.base64=L7(`${w}:${E}`),i.headers.authorization=`Basic ${g.base64}`}else v==="oauth2"&&b&&(S=!S||S.toLowerCase()==="bearer"?"Bearer":S,i.headers.authorization=`${S} ${b}`)})}),i)}function ege(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 tge(e,t){return ege(e,t)||null}function B7(e,t){return`${t.toLowerCase()}-${e}`}function rge(e,t){return!e||!e.paths?null:tge(e,({pathName:r,method:n,operation:i})=>{if(!i||typeof i!="object")return!1;const s=i.operationId,a=Yh(i,r,n),o=B7(r,n);return[a,o,s].some(u=>u&&u===t)})}const xL=e=>Array.isArray(e)?e:[],Cc=(e,{recurse:t=!0,depth:r=1}={})=>{if($i(e)){if(e.type==="object"||e.type==="array"||Array.isArray(e.type)&&(e.type.includes("object")||e.type.includes("array")))return e;if(!(r>A9)&&t){const n=Array.isArray(e.oneOf)?e.oneOf.find(s=>Cc(s,{recurse:t,depth:r+1})):void 0;if(n)return n;const i=Array.isArray(e.anyOf)?e.anyOf.find(s=>Cc(s,{recurse:t,depth:r+1})):void 0;if(i)return i}}},Sw=({value:e,silentFail:t=!1})=>{try{const r=JSON.parse(e);if($i(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},Np=e=>{try{return new URL(e)}catch{const t=new URL(e,ld),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 nge extends ls{}const ige=(e,t)=>t.filter(r=>r.name===e),sge=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},age={buildRequest:U7};function oge({http:e,fetch:t,spec:r,operationId:n,pathName:i,method:s,parameters:a,securities:o,...u}){const c=e||t||Uc;i&&s&&!n&&(n=B7(i,s));const l=age.buildRequest({spec:r,operationId:n,parameters:a,securities:o,http:c,...u});return l.body&&($i(l.body)||Array.isArray(l.body))&&(l.body=JSON.stringify(l.body)),c(l)}function U7(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:d}=e;let{parameters:g,parameterBuilders:y,baseURL:v}=e;const _=U9(t);y||(_?y=Kme:y=vme);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 w=rge(t,r);if(!w)throw new nge(`Operation ${r} not found`);const{operation:E={},method:A,pathName:R}=w;if(v=v??uge({spec:t,scheme:i,contextUrl:o,server:c,serverVariables:l,pathName:R,method:A,serverVariableEncoder:d}),S.url+=v,!r)return delete S.cookies,S;S.url+=R,S.method=`${A}`.toUpperCase(),g=g||{};const I=t.paths[R]||{};n&&(S.headers.accept=n);const O=sge([].concat(xL(E.parameters)).concat(xL(I.parameters)));O.forEach(P=>{const F=y[P.in];let M;if(P.in==="body"&&P.schema&&P.schema.properties&&(M=g),M=P&&P.name&&g[P.name],typeof M>"u"?M=P&&P.name&&g[`${P.in}.${P.name}`]:ige(P.name,O).length>1&&console.warn(`Parameter '${P.name}' is ambiguous because the defined spec has more than one parameter with the name: '${P.name}' and the passed-in parameter values did not define an 'in' value.`),M!==null){if(typeof P.default<"u"&&typeof M>"u"&&(M=P.default),typeof M>"u"&&P.required&&!P.allowEmptyValue)throw new Error(`Required parameter ${P.name} is not provided`);_&&typeof M=="string"&&(xc("type",P.schema)&&typeof P.schema.type=="string"&&Cc(P.schema,{recurse:!1})?M=Sw({value:M,silentFail:!1}):xc("type",P.schema)&&Array.isArray(P.schema.type)&&Cc(P.schema,{recurse:!1})?M=Sw({value:M,silentFail:!0}):!xc("type",P.schema)&&Cc(P.schema,{recurse:!0})&&(M=Sw({value:M,silentFail:!0}))),F&&F({req:S,parameter:P,value:M,operation:E,spec:t,baseURL:v})}});const D={...e,operation:E};if(_?S=Yme(D,S):S=Zme(D,S),S.cookies&&Object.keys(S.cookies).length>0){const P=$A(S.cookies);Uh(S.headers.Cookie)?S.headers.Cookie+=`; ${P}`:S.headers.Cookie=P}return S.cookies&&delete S.cookies,eR(S)}const LA=e=>e?e.replace(/\W/g,""):null;function uge(e){return U9(e.spec)?cge(e):fge(e)}const ww=e=>Array.isArray(e)&&e.length>0;function cge({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,d=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=ww(h)?h:ww(d)?d:ww(g)?g:[nue],n&&(f=c.find(y=>y.url===n),f&&(l=n)),l||([f]=c,l=f.url),nme(l,{strict:!0})){const y=Object.entries({...f.variables}).reduce((v,[_,b])=>(v[_]=b.default,v),{});l=ome(l,{...y,...s},{encoder:typeof a=="function"?a:S5})}return lge(l,i)}function lge(e="",t=""){const r=Np(e&&t?Zr(t,e):e),n=Np(t),i=LA(r.protocol)||LA(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 fge({spec:e,scheme:t,contextUrl:r=""}){const n=Np(r),i=Array.isArray(e.schemes)?e.schemes[0]:null,s=t||i||LA(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 pge=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},d=l.find(y=>y.match(e)).normalize(e),g=await Yhe({spec:d,...f,allowMetaPatches:!0,skipNormalization:!iR(e)});return!n&&Array.isArray(t)&&t.length&&(g.spec=t.reduce((y,v)=>y==null?void 0:y[v],g.spec)||null),g},dge=e=>async(t,r,n={})=>{const i={...e,...n};return pge(t,r,i)};var fp={exports:{}},xw={};/**
|
|
243
|
+
* @license React
|
|
244
|
+
* use-sync-external-store-with-selector.production.js
|
|
245
|
+
*
|
|
246
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
247
|
+
*
|
|
248
|
+
* This source code is licensed under the MIT license found in the
|
|
249
|
+
* LICENSE file in the root directory of this source tree.
|
|
250
|
+
*/var AL;function hge(){if(AL)return xw;AL=1;var e=Bt;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 xw.useSyncExternalStoreWithSelector=function(u,c,l,f,h){var d=i(null);if(d.current===null){var g={hasValue:!1,value:null};d.current=g}else g=d.current;d=a(function(){function v(E){if(!_){if(_=!0,b=E,E=f(E),h!==void 0&&g.hasValue){var A=g.value;if(h(A,E))return S=A}return S=E}if(A=S,r(b,E))return A;var R=f(E);return h!==void 0&&h(A,R)?(b=E,A):(b=E,S=R)}var _=!1,b,S,w=l===void 0?null:l;return[function(){return v(c())},w===null?void 0:function(){return v(w())}]},[c,l,f,h]);var y=n(u,d[0],d[1]);return s(function(){g.hasValue=!0,g.value=y},[y]),o(y),y},xw}var Aw={};/**
|
|
251
|
+
* @license React
|
|
252
|
+
* use-sync-external-store-with-selector.development.js
|
|
253
|
+
*
|
|
254
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
255
|
+
*
|
|
256
|
+
* This source code is licensed under the MIT license found in the
|
|
257
|
+
* LICENSE file in the root directory of this source tree.
|
|
258
|
+
*/var OL;function mge(){return OL||(OL=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=Bt,r=typeof Object.is=="function"?Object.is:e,n=t.useSyncExternalStore,i=t.useRef,s=t.useEffect,a=t.useMemo,o=t.useDebugValue;Aw.useSyncExternalStoreWithSelector=function(u,c,l,f,h){var d=i(null);if(d.current===null){var g={hasValue:!1,value:null};d.current=g}else g=d.current;d=a(function(){function v(E){if(!_){if(_=!0,b=E,E=f(E),h!==void 0&&g.hasValue){var A=g.value;if(h(A,E))return S=A}return S=E}if(A=S,r(b,E))return A;var R=f(E);return h!==void 0&&h(A,R)?(b=E,A):(b=E,S=R)}var _=!1,b,S,w=l===void 0?null:l;return[function(){return v(c())},w===null?void 0:function(){return v(w())}]},[c,l,f,h]);var y=n(u,d[0],d[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())})()),Aw}var CL;function gge(){return CL||(CL=1,process.env.NODE_ENV==="production"?fp.exports=hge():fp.exports=mge()),fp.exports}gge();var V7=dt.version.startsWith("19"),yge=Symbol.for(V7?"react.transitional.element":"react.element"),vge=Symbol.for("react.portal"),z7=Symbol.for("react.fragment"),W7=Symbol.for("react.strict_mode"),J7=Symbol.for("react.profiler"),SR=Symbol.for("react.consumer"),wR=Symbol.for("react.context"),xR=Symbol.for("react.forward_ref"),H7=Symbol.for("react.suspense"),K7=Symbol.for("react.suspense_list"),km=Symbol.for("react.memo"),G7=Symbol.for("react.lazy"),bge=Symbol.for("react.offscreen"),_ge=Symbol.for("react.client.reference"),Ege=xR,Sge=km;function wge(e){return typeof e=="string"||typeof e=="function"||e===z7||e===J7||e===W7||e===H7||e===K7||e===bge||typeof e=="object"&&e!==null&&(e.$$typeof===G7||e.$$typeof===km||e.$$typeof===wR||e.$$typeof===SR||e.$$typeof===xR||e.$$typeof===_ge||e.getModuleId!==void 0)}function BA(e){if(typeof e=="object"&&e!==null){const{$$typeof:t}=e;switch(t){case yge:switch(e=e.type,e){case z7:case J7:case W7:case H7:case K7:return e;default:switch(e=e&&e.$$typeof,e){case wR:case xR:case G7:case km:return e;case SR:return e;default:return t}}case vge:return t}}}function xge(e){return V7?BA(e)===SR:BA(e)===wR}function Age(e){return BA(e)===km}function AR(e){typeof console<"u"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch{}}function Ow(e,t){if(e)(t==="mapStateToProps"||t==="mapDispatchToProps")&&(Object.prototype.hasOwnProperty.call(e,"dependsOnOwnProps")||AR(`The selector for ${t} of connect did not specify a value for dependsOnOwnProps.`));else throw new Error(`Unexpected value for ${t} in connect.`)}function Oge(e,t,r){Ow(e,"mapStateToProps"),Ow(t,"mapDispatchToProps"),Ow(r,"mergeProps")}function Cge(e,t,r,n,{areStatesEqual:i,areOwnPropsEqual:s,areStatePropsEqual:a}){let o=!1,u,c,l,f,h;function d(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 _(b,S){const w=!s(S,c),E=!i(b,u,S,c);return u=b,c=S,w&&E?g():w?y():E?v():h}return function(S,w){return o?_(S,w):d(S,w)}}function Rge(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"&&Oge(s,a,o),Cge(s,a,o,e,i)}function Tge(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 Ige(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 Y7(e,t,r){Ige(e)||AR(`${r}() in ${t} must return a plain object. Instead received ${e}.`)}function UA(e){return function(r){const n=e(r);function i(){return n}return i.dependsOnOwnProps=!1,i}}function RL(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function X7(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=RL(e);let c=s(o,u);return typeof c=="function"&&(s.mapToProps=c,s.dependsOnOwnProps=RL(c),c=s(o,u)),process.env.NODE_ENV!=="production"&&Y7(c,i,t),c},s}}function OR(e,t){return(r,n)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${n.wrappedComponentName}.`)}}function jge(e){return e&&typeof e=="object"?UA(t=>Tge(e,t)):e?typeof e=="function"?X7(e,"mapDispatchToProps"):OR(e,"mapDispatchToProps"):UA(t=>({dispatch:t}))}function Pge(e){return e?typeof e=="function"?X7(e,"mapStateToProps"):OR(e,"mapStateToProps"):UA(()=>({}))}function kge(e,t,r){return{...r,...e,...t}}function Nge(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"&&Y7(a,n,"mergeProps")),a}}}function Mge(e){return e?typeof e=="function"?Nge(e):OR(e,"mergeProps"):()=>kge}function Dge(e){e()}function qge(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Dge(()=>{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 TL={notify(){},get:()=>[]};function Z7(e,t){let r,n=TL,i=0,s=!1;function a(y){l();const v=n.subscribe(y);let _=!1;return()=>{_||(_=!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=qge())}function f(){i--,r&&i===0&&(r(),r=void 0,n.clear(),n=TL)}function h(){s||(s=!0,l())}function d(){s&&(s=!1,f())}const g={addNestedSub:a,notifyNestedSubs:o,handleChangeWrapper:u,isSubscribed:c,trySubscribe:h,tryUnsubscribe:d,getListeners:()=>n};return g}var Fge=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",$ge=Fge(),Lge=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Bge=Lge(),Uge=()=>$ge||Bge?dt.useLayoutEffect:dt.useEffect,gd=Uge();function IL(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Cw(e,t){if(IL(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])||!IL(e[r[i]],t[r[i]]))return!1;return!0}var Vge={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},zge={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Wge={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Q7={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Jge={[Ege]:Wge,[Sge]:Q7};function jL(e){return Age(e)?Q7:Jge[e.$$typeof]||Vge}var Hge=Object.defineProperty,Kge=Object.getOwnPropertyNames,PL=Object.getOwnPropertySymbols,Gge=Object.getOwnPropertyDescriptor,Yge=Object.getPrototypeOf,kL=Object.prototype;function VA(e,t){if(typeof t!="string"){if(kL){const s=Yge(t);s&&s!==kL&&VA(e,s)}let r=Kge(t);PL&&(r=r.concat(PL(t)));const n=jL(e),i=jL(t);for(let s=0;s<r.length;++s){const a=r[s];if(!zge[a]&&!(i&&i[a])&&!(n&&n[a])){const o=Gge(t,a);try{Hge(e,a,o)}catch{}}}}return e}var Rw=Symbol.for("react-redux-context"),Tw=typeof globalThis<"u"?globalThis:{};function Xge(){if(!dt.createContext)return{};const e=Tw[Rw]??(Tw[Rw]=new Map);let t=e.get(dt.createContext);return t||(t=dt.createContext(null),process.env.NODE_ENV!=="production"&&(t.displayName="ReactRedux"),e.set(dt.createContext,t)),t}var eV=Xge(),Zge=[null,null],Qge=e=>{try{return JSON.stringify(e)}catch{return String(e)}};function eye(e,t,r){gd(()=>e(...t),r)}function tye(e,t,r,n,i,s){e.current=n,r.current=!1,i.current&&(i.current=null,s())}function rye(e,t,r,n,i,s,a,o,u,c,l){if(!e)return()=>{};let f=!1,h=null;const d=()=>{if(f||!o.current)return;const y=t.getState();let v,_;try{v=n(y,i.current)}catch(b){_=b,h=b}_||(h=null),v===s.current?a.current||c():(s.current=v,u.current=v,a.current=!0,l())};return r.onStateChange=d,r.trySubscribe(),d(),()=>{if(f=!0,r.tryUnsubscribe(),r.onStateChange=null,h)throw h}}function nye(e,t){return e===t}var NL=!1;function iye(e,t,r,{pure:n,areStatesEqual:i=nye,areOwnPropsEqual:s=Cw,areStatePropsEqual:a=Cw,areMergedPropsEqual:o=Cw,forwardRef:u=!1,context:c=eV}={}){process.env.NODE_ENV!=="production"&&n!==void 0&&!NL&&(NL=!0,AR('The `pure` option has been removed. `connect` is now always a "pure/memoized" component'));const l=c,f=Pge(e),h=jge(t),d=Mge(r),g=!!e;return v=>{if(process.env.NODE_ENV!=="production"&&!wge(v))throw new Error(`You must pass a component to the function returned by connect. Instead received ${Qge(v)}`);const _=v.displayName||v.name||"Component",b=`Connect(${_})`,S={shouldHandleStateChanges:g,displayName:b,wrappedComponentName:_,WrappedComponent:v,initMapStateToProps:f,initMapDispatchToProps:h,initMergeProps:d,areStatesEqual:i,areStatePropsEqual:a,areOwnPropsEqual:s,areMergedPropsEqual:o};function w(R){const[I,O,D]=dt.useMemo(()=>{const{reactReduxForwardedRef:he,...Te}=R;return[R.context,he,Te]},[R]),P=dt.useMemo(()=>{let he=l;if(I!=null&&I.Consumer&&process.env.NODE_ENV!=="production"){if(!xge(dt.createElement(I.Consumer,null)))throw new Error("You must pass a valid React context consumer as `props.context`");he=I}return he},[I,l]),F=dt.useContext(P),M=!!R.store&&!!R.store.getState&&!!R.store.dispatch,K=!!F&&!!F.store;if(process.env.NODE_ENV!=="production"&&!M&&!K)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 te=M?R.store:F.store,J=K?F.getServerState:te.getState,Q=dt.useMemo(()=>Rge(te.dispatch,S),[te]),[re,ne]=dt.useMemo(()=>{if(!g)return Zge;const he=Z7(te,M?void 0:F.subscription),Te=he.notifyNestedSubs.bind(he);return[he,Te]},[te,M,F]),U=dt.useMemo(()=>M?F:{...F,subscription:re},[M,F,re]),H=dt.useRef(void 0),ie=dt.useRef(D),ue=dt.useRef(void 0),le=dt.useRef(!1),ee=dt.useRef(!1),z=dt.useRef(void 0);gd(()=>(ee.current=!0,()=>{ee.current=!1}),[]);const V=dt.useMemo(()=>()=>ue.current&&D===ie.current?ue.current:Q(te.getState(),D),[te,D]),fe=dt.useMemo(()=>Te=>re?rye(g,te,re,Q,ie,H,le,ee,ue,ne,Te):()=>{},[re]);eye(tye,[ie,H,le,D,ue,ne]);let me;try{me=dt.useSyncExternalStore(fe,V,J?()=>Q(J(),D):V)}catch(he){throw z.current&&(he.message+=`
|
|
259
|
+
The error may be correlated with this previous error:
|
|
260
|
+
${z.current.stack}
|
|
261
|
+
|
|
262
|
+
`),he}gd(()=>{z.current=void 0,ue.current=void 0,H.current=me});const Re=dt.useMemo(()=>dt.createElement(v,{...me,ref:O}),[O,v,me]);return dt.useMemo(()=>g?dt.createElement(P.Provider,{value:U},Re):Re,[P,Re,U])}const A=dt.memo(w);if(A.WrappedComponent=v,A.displayName=w.displayName=b,u){const I=dt.forwardRef(function(D,P){return dt.createElement(A,{...D,reactReduxForwardedRef:P})});return I.displayName=b,I.WrappedComponent=v,VA(I,v)}return VA(A,v)}}var sye=iye;function aye(e){const{children:t,context:r,serverState:n,store:i}=e,s=dt.useMemo(()=>{const u=Z7(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=dt.useMemo(()=>i.getState(),[i]);gd(()=>{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||eV;return dt.createElement(o.Provider,{value:s},t)}var oye=aye,uye=ll();const cye=He.getDefaultExportFromCjs(uye);function lye(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 fye(e,t){if(e==null)return{};var r,n,i=lye(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 zA(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 pye(e){if(Array.isArray(e))return zA(e)}function dye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function hye(e,t){if(e){if(typeof e=="string")return zA(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)?zA(e,t):void 0}}function mye(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
263
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function WA(e){return pye(e)||dye(e)||hye(e)||mye()}function zc(e){"@babel/helpers - typeof";return zc=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},zc(e)}function gye(e,t){if(zc(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t);if(zc(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function yye(e){var t=gye(e,"string");return zc(t)=="symbol"?t:t+""}function tV(e,t,r){return(t=yye(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function JA(){return JA=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},JA.apply(null,arguments)}function ML(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 Wo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ML(Object(r),!0).forEach(function(n){tV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ML(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function vye(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 Iw={};function bye(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return Iw[t]||(Iw[t]=vye(e)),Iw[t]}function _ye(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=bye(n);return i.reduce(function(s,a){return Wo(Wo({},s),r[a])},t)}function DL(e){return e.join(" ")}function Eye(e,t){var r=0;return function(n){return r+=1,n.map(function(i,s){return rV({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(r,"-").concat(s)})})}}function rV(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=Eye(r,s),h;if(!s)h=Wo(Wo({},o),{},{className:DL(o.className)});else{var d=Object.keys(r).reduce(function(_,b){return b.split(".").forEach(function(S){_.includes(S)||_.push(S)}),_},[]),g=o.className&&o.className.includes("token")?["token"]:[],y=o.className&&g.concat(o.className.filter(function(_){return!d.includes(_)}));h=Wo(Wo({},o),{},{className:DL(y)||void 0,style:_ye(o.className,Object.assign({},o.style,i),r)})}var v=f(t.children);return Bt.createElement(c,JA({key:a},h),v)}}const Sye=(function(e,t){var r=e.listLanguages();return r.indexOf(t)!==-1});var wye=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function qL(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?qL(Object(r),!0).forEach(function(n){tV(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qL(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}var xye=/\n/g;function Aye(e){return e.match(xye)}function Oye(e){var t=e.lines,r=e.startingLineNumber,n=e.style;return t.map(function(i,s){var a=s+r;return Bt.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof n=="function"?n(a):n},"".concat(a,`
|
|
264
|
+
`))})}function Cye(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 Bt.createElement("code",{style:Object.assign({},r,i)},Oye({lines:t.replace(/\n$/,"").split(`
|
|
265
|
+
`),style:a,startingLineNumber:o}))}function Rye(e){return"".concat(e.toString().length,".25em")}function nV(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 iV(e,t,r){var n={display:"inline-block",minWidth:Rye(r),paddingRight:"1em",textAlign:"right",userSelect:"none"},i=typeof e=="function"?e(t):e,s=oa(oa({},n),i);return s}function Mp(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,d=h===void 0?!1:h,g=d?oa({},typeof o=="function"?o(r):o):{};if(g.className=g.className?[].concat(WA(g.className.trim().split(/\s+/)),WA(c)):c,r&&s){var y=iV(n,r,i);t.unshift(nV(r,y))}return f&l&&(g.style=oa({display:"flex"},g.style)),{type:"element",tagName:"span",properties:g,children:t}}function sV(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var n=0;n<e.length;n++){var i=e[n];if(i.type==="text")r.push(Mp({children:[i],className:WA(new Set(t))}));else if(i.children){var s,a=t.concat(((s=i.properties)===null||s===void 0?void 0:s.className)||[]);sV(i.children,a).forEach(function(o){return r.push(o)})}}return r}function Tye(e,t,r,n,i,s,a,o,u){var c,l=sV(e.value),f=[],h=-1,d=0;function g(E,A){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Mp({children:E,lineNumber:A,lineNumberStyle:o,largestLineNumber:a,showInlineLineNumbers:i,lineProps:r,className:R,showLineNumbers:n,wrapLongLines:u,wrapLines:t})}function y(E,A){if(n&&A&&i){var R=iV(o,A,a);E.unshift(nV(A,R))}return E}function v(E,A){var R=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||R.length>0?g(E,A,R):y(E,A)}for(var _=function(){var A=l[d],R=A.children[0].value,I=Aye(R);if(I){var O=R.split(`
|
|
266
|
+
`);O.forEach(function(D,P){var F=n&&f.length+s,M={type:"text",value:"".concat(D,`
|
|
267
|
+
`)};if(P===0){var K=l.slice(h+1,d).concat(Mp({children:[M],className:A.properties.className})),te=v(K,F);f.push(te)}else if(P===O.length-1){var J=l[d+1]&&l[d+1].children&&l[d+1].children[0],Q={type:"text",value:"".concat(D)};if(J){var re=Mp({children:[Q],className:A.properties.className});l.splice(d+1,0,re)}else{var ne=[Q],U=v(ne,F,A.properties.className);f.push(U)}}else{var H=[M],ie=v(H,F,A.properties.className);f.push(ie)}}),h=d}d++};d<l.length;)_();if(h!==l.length-1){var b=l.slice(h+1,l.length);if(b&&b.length){var S=n&&f.length+s,w=v(b,S);f.push(w)}}return t?f:(c=[]).concat.apply(c,f)}function Iye(e){var t=e.rows,r=e.stylesheet,n=e.useInlineStyles;return t.map(function(i,s){return rV({node:i,stylesheet:r,useInlineStyles:n,key:"code-segment-".concat(s)})})}function aV(e){return e&&typeof e.highlightAuto<"u"}function jye(e){var t=e.astGenerator,r=e.language,n=e.code,i=e.defaultCodeValue;if(aV(t)){var s=Sye(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 Pye(e,t){return function(n){var i,s,a=n.language,o=n.children,u=n.style,c=u===void 0?t:u,l=n.customStyle,f=l===void 0?{}:l,h=n.codeTagProps,d=h===void 0?{className:a?"language-".concat(a):void 0,style:oa(oa({},c['code[class*="language-"]']),c['code[class*="language-'.concat(a,'"]')])}:h,g=n.useInlineStyles,y=g===void 0?!0:g,v=n.showLineNumbers,_=v===void 0?!1:v,b=n.showInlineLineNumbers,S=b===void 0?!0:b,w=n.startingLineNumber,E=w===void 0?1:w,A=n.lineNumberContainerStyle,R=n.lineNumberStyle,I=R===void 0?{}:R,O=n.wrapLines,D=n.wrapLongLines,P=D===void 0?!1:D,F=n.lineProps,M=F===void 0?{}:F,K=n.renderer,te=n.PreTag,J=te===void 0?"pre":te,Q=n.CodeTag,re=Q===void 0?"code":Q,ne=n.code,U=ne===void 0?(Array.isArray(o)?o[0]:o)||"":ne,H=n.astGenerator,ie=fye(n,wye);H=H||e;var ue=_?Bt.createElement(Cye,{containerStyle:A,codeStyle:d.style||{},numberStyle:I,startingLineNumber:E,codeString:U}):null,le=c.hljs||c['pre[class*="language-"]']||{backgroundColor:"#fff"},ee=aV(H)?"hljs":"prismjs",z=y?Object.assign({},ie,{style:Object.assign({},le,f)}):Object.assign({},ie,{className:ie.className?"".concat(ee," ").concat(ie.className):ee,style:Object.assign({},f)});if(P?d.style=oa({whiteSpace:"pre-wrap"},d.style):d.style=oa({whiteSpace:"pre"},d.style),!H)return Bt.createElement(J,z,ue,Bt.createElement(re,d,U));(O===void 0&&K||P)&&(O=!0),K=K||Iye;var V=[{type:"text",value:U}],fe=jye({astGenerator:H,language:a,code:U,defaultCodeValue:V});fe.language===null&&(fe.value=V);var me=(i=(s=U.match(/\n/g))===null||s===void 0?void 0:s.length)!==null&&i!==void 0?i:0,Re=E+me,Ne=Tye(fe,O,M,_,S,E,Re,I,P);return Bt.createElement(J,z,Bt.createElement(re,d,!S&&ue,K({rows:Ne,stylesheet:c,useInlineStyles:y})))}}var Ma={},jw,FL;function kye(){if(FL)return jw;FL=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(je){var De=pe[je];typeof De=="object"&&!Object.isFrozen(De)&&e(De)}),pe}var t=e,r=e;t.default=r;class n{constructor(je){je.data===void 0&&(je.data={}),this.data=je.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}}function i(pe){return pe.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function s(pe,...je){const De=Object.create(null);for(const et in pe)De[et]=pe[et];return je.forEach(function(et){for(const vt in et)De[vt]=et[vt]}),De}const a="</span>",o=pe=>!!pe.kind;class u{constructor(je,De){this.buffer="",this.classPrefix=De.classPrefix,je.walk(this)}addText(je){this.buffer+=i(je)}openNode(je){if(!o(je))return;let De=je.kind;je.sublanguage||(De=`${this.classPrefix}${De}`),this.span(De)}closeNode(je){o(je)&&(this.buffer+=a)}value(){return this.buffer}span(je){this.buffer+=`<span class="${je}">`}}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(je){this.top.children.push(je)}openNode(je){const De={kind:je,children:[]};this.add(De),this.stack.push(De)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(je){return this.constructor._walk(je,this.rootNode)}static _walk(je,De){return typeof De=="string"?je.addText(De):De.children&&(je.openNode(De),De.children.forEach(et=>this._walk(je,et)),je.closeNode(De)),je}static _collapse(je){typeof je!="string"&&je.children&&(je.children.every(De=>typeof De=="string")?je.children=[je.children.join("")]:je.children.forEach(De=>{c._collapse(De)}))}}class l extends c{constructor(je){super(),this.options=je}addKeyword(je,De){je!==""&&(this.openNode(De),this.addText(je),this.closeNode())}addText(je){je!==""&&this.add(je)}addSublanguage(je,De){const et=je.root;et.kind=De,et.sublanguage=!0,this.add(et)}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 d(...pe){return pe.map(De=>h(De)).join("")}function g(...pe){return"("+pe.map(De=>h(De)).join("|")+")"}function y(pe){return new RegExp(pe.toString()+"|").exec("").length-1}function v(pe,je){const De=pe&&pe.exec(je);return De&&De.index===0}const _=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function b(pe,je="|"){let De=0;return pe.map(et=>{De+=1;const vt=De;let gt=h(et),Kt="";for(;gt.length>0;){const Je=_.exec(gt);if(!Je){Kt+=gt;break}Kt+=gt.substring(0,Je.index),gt=gt.substring(Je.index+Je[0].length),Je[0][0]==="\\"&&Je[1]?Kt+="\\"+String(Number(Je[1])+vt):(Kt+=Je[0],Je[0]==="("&&De++)}return Kt}).map(et=>`(${et})`).join(je)}const S=/\b\B/,w="[a-zA-Z]\\w*",E="[a-zA-Z_]\\w*",A="\\b\\d+(\\.\\d+)?",R="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",I="\\b(0b[01]+)",O="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",D=(pe={})=>{const je=/^#![ ]*\//;return pe.binary&&(pe.begin=d(je,/.*\b/,pe.binary,/\b.*/)),s({className:"meta",begin:je,end:/$/,relevance:0,"on:begin":(De,et)=>{De.index!==0&&et.ignoreMatch()}},pe)},P={begin:"\\\\[\\s\\S]",relevance:0},F={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[P]},M={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[P]},K={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},te=function(pe,je,De={}){const et=s({className:"comment",begin:pe,end:je,contains:[]},De);return et.contains.push(K),et.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),et},J=te("//","$"),Q=te("/\\*","\\*/"),re=te("#","$"),ne={className:"number",begin:A,relevance:0},U={className:"number",begin:R,relevance:0},H={className:"number",begin:I,relevance:0},ie={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},ue={begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[P,{begin:/\[/,end:/\]/,relevance:0,contains:[P]}]}]},le={className:"title",begin:w,relevance:0},ee={className:"title",begin:E,relevance:0},z={begin:"\\.\\s*"+E,relevance:0};var fe=Object.freeze({__proto__:null,MATCH_NOTHING_RE:S,IDENT_RE:w,UNDERSCORE_IDENT_RE:E,NUMBER_RE:A,C_NUMBER_RE:R,BINARY_NUMBER_RE:I,RE_STARTERS_RE:O,SHEBANG:D,BACKSLASH_ESCAPE:P,APOS_STRING_MODE:F,QUOTE_STRING_MODE:M,PHRASAL_WORDS_MODE:K,COMMENT:te,C_LINE_COMMENT_MODE:J,C_BLOCK_COMMENT_MODE:Q,HASH_COMMENT_MODE:re,NUMBER_MODE:ne,C_NUMBER_MODE:U,BINARY_NUMBER_MODE:H,CSS_NUMBER_MODE:ie,REGEXP_MODE:ue,TITLE_MODE:le,UNDERSCORE_TITLE_MODE:ee,METHOD_GUARD:z,END_SAME_AS_BEGIN:function(pe){return Object.assign(pe,{"on:begin":(je,De)=>{De.data._beginMatch=je[1]},"on:end":(je,De)=>{De.data._beginMatch!==je[1]&&De.ignoreMatch()}})}});function me(pe,je){pe.input[pe.index-1]==="."&&je.ignoreMatch()}function Re(pe,je){je&&pe.beginKeywords&&(pe.begin="\\b("+pe.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",pe.__beforeBegin=me,pe.keywords=pe.keywords||pe.beginKeywords,delete pe.beginKeywords,pe.relevance===void 0&&(pe.relevance=0))}function Ne(pe,je){Array.isArray(pe.illegal)&&(pe.illegal=g(...pe.illegal))}function he(pe,je){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 Te(pe,je){pe.relevance===void 0&&(pe.relevance=1)}const Ue=["of","and","for","in","not","or","if","then","parent","list","value"],_e="keyword";function we(pe,je,De=_e){const et={};return typeof pe=="string"?vt(De,pe.split(" ")):Array.isArray(pe)?vt(De,pe):Object.keys(pe).forEach(function(gt){Object.assign(et,we(pe[gt],je,gt))}),et;function vt(gt,Kt){je&&(Kt=Kt.map(Je=>Je.toLowerCase())),Kt.forEach(function(Je){const Be=Je.split("|");et[Be[0]]=[gt,Ae(Be[0],Be[1])]})}}function Ae(pe,je){return je?Number(je):B(pe)?0:1}function B(pe){return Ue.includes(pe.toLowerCase())}function T(pe,{plugins:je}){function De(Je,Be){return new RegExp(h(Je),"m"+(pe.case_insensitive?"i":"")+(Be?"g":""))}class et{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(Be,ut){ut.position=this.position++,this.matchIndexes[this.matchAt]=ut,this.regexes.push([ut,Be]),this.matchAt+=y(Be)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);const Be=this.regexes.map(ut=>ut[1]);this.matcherRe=De(b(Be),!0),this.lastIndex=0}exec(Be){this.matcherRe.lastIndex=this.lastIndex;const ut=this.matcherRe.exec(Be);if(!ut)return null;const ot=ut.findIndex((sn,Ws)=>Ws>0&&sn!==void 0),Qt=this.matchIndexes[ot];return ut.splice(0,ot),Object.assign(ut,Qt)}}class vt{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(Be){if(this.multiRegexes[Be])return this.multiRegexes[Be];const ut=new et;return this.rules.slice(Be).forEach(([ot,Qt])=>ut.addRule(ot,Qt)),ut.compile(),this.multiRegexes[Be]=ut,ut}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(Be,ut){this.rules.push([Be,ut]),ut.type==="begin"&&this.count++}exec(Be){const ut=this.getMatcher(this.regexIndex);ut.lastIndex=this.lastIndex;let ot=ut.exec(Be);if(this.resumingScanAtSamePosition()&&!(ot&&ot.index===this.lastIndex)){const Qt=this.getMatcher(0);Qt.lastIndex=this.lastIndex+1,ot=Qt.exec(Be)}return ot&&(this.regexIndex+=ot.position+1,this.regexIndex===this.count&&this.considerAll()),ot}}function gt(Je){const Be=new vt;return Je.contains.forEach(ut=>Be.addRule(ut.begin,{rule:ut,type:"begin"})),Je.terminatorEnd&&Be.addRule(Je.terminatorEnd,{type:"end"}),Je.illegal&&Be.addRule(Je.illegal,{type:"illegal"}),Be}function Kt(Je,Be){const ut=Je;if(Je.isCompiled)return ut;[he].forEach(Qt=>Qt(Je,Be)),pe.compilerExtensions.forEach(Qt=>Qt(Je,Be)),Je.__beforeBegin=null,[Re,Ne,Te].forEach(Qt=>Qt(Je,Be)),Je.isCompiled=!0;let ot=null;if(typeof Je.keywords=="object"&&(ot=Je.keywords.$pattern,delete Je.keywords.$pattern),Je.keywords&&(Je.keywords=we(Je.keywords,pe.case_insensitive)),Je.lexemes&&ot)throw new Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return ot=ot||Je.lexemes||/\w+/,ut.keywordPatternRe=De(ot,!0),Be&&(Je.begin||(Je.begin=/\B|\b/),ut.beginRe=De(Je.begin),Je.endSameAsBegin&&(Je.end=Je.begin),!Je.end&&!Je.endsWithParent&&(Je.end=/\B|\b/),Je.end&&(ut.endRe=De(Je.end)),ut.terminatorEnd=h(Je.end)||"",Je.endsWithParent&&Be.terminatorEnd&&(ut.terminatorEnd+=(Je.end?"|":"")+Be.terminatorEnd)),Je.illegal&&(ut.illegalRe=De(Je.illegal)),Je.contains||(Je.contains=[]),Je.contains=[].concat(...Je.contains.map(function(Qt){return W(Qt==="self"?Je:Qt)})),Je.contains.forEach(function(Qt){Kt(Qt,ut)}),Je.starts&&Kt(Je.starts,Be),ut.matcher=gt(ut),ut}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||{}),Kt(pe)}function k(pe){return pe?pe.endsWithParent||k(pe.starts):!1}function W(pe){return pe.variants&&!pe.cachedVariants&&(pe.cachedVariants=pe.variants.map(function(je){return s(pe,{variants:null},je)})),pe.cachedVariants?pe.cachedVariants:k(pe)?s(pe,{starts:pe.starts?s(pe.starts):null}):Object.isFrozen(pe)?s(pe):pe}var se="10.7.3";function ce(pe){return!!(pe||pe==="")}function ye(pe){const je={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 et={};return this.autoDetect?(et=pe.highlightAuto(this.code),this.detectedLanguage=et.language):(et=pe.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),et.value},autoDetect(){return!this.language||ce(this.autodetect)},ignoreIllegals(){return!0}},render(et){return et("pre",{},[et("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:je,VuePlugin:{install(et){et.component("highlightjs",je)}}}}const Me={"after:highlightElement":({el:pe,result:je,text:De})=>{const et=$(pe);if(!et.length)return;const vt=document.createElement("div");vt.innerHTML=je.value,je.value=C(et,$(vt),De)}};function Xe(pe){return pe.nodeName.toLowerCase()}function $(pe){const je=[];return(function De(et,vt){for(let gt=et.firstChild;gt;gt=gt.nextSibling)gt.nodeType===3?vt+=gt.nodeValue.length:gt.nodeType===1&&(je.push({event:"start",offset:vt,node:gt}),vt=De(gt,vt),Xe(gt).match(/br|hr|img|input/)||je.push({event:"stop",offset:vt,node:gt}));return vt})(pe,0),je}function C(pe,je,De){let et=0,vt="";const gt=[];function Kt(){return!pe.length||!je.length?pe.length?pe:je:pe[0].offset!==je[0].offset?pe[0].offset<je[0].offset?pe:je:je[0].event==="start"?pe:je}function Je(ot){function Qt(sn){return" "+sn.nodeName+'="'+i(sn.value)+'"'}vt+="<"+Xe(ot)+[].map.call(ot.attributes,Qt).join("")+">"}function Be(ot){vt+="</"+Xe(ot)+">"}function ut(ot){(ot.event==="start"?Je:Be)(ot.node)}for(;pe.length||je.length;){let ot=Kt();if(vt+=i(De.substring(et,ot[0].offset)),et=ot[0].offset,ot===pe){gt.reverse().forEach(Be);do ut(ot.splice(0,1)[0]),ot=Kt();while(ot===pe&&ot.length&&ot[0].offset===et);gt.reverse().forEach(Je)}else ot[0].event==="start"?gt.push(ot[0].node):gt.pop(),ut(ot.splice(0,1)[0])}return vt+i(De.substr(et))}const j={},Z=pe=>{console.error(pe)},de=(pe,...je)=>{console.log(`WARN: ${pe}`,...je)},be=(pe,je)=>{j[`${pe}/${je}`]||(console.log(`Deprecated as of ${pe}. ${je}`),j[`${pe}/${je}`]=!0)},Oe=i,nt=s,it=Symbol("nomatch");var pt=function(pe){const je=Object.create(null),De=Object.create(null),et=[];let vt=!0;const gt=/(^(<[^>]+>|\t|)+|\n)/gm,Kt="Could not find the language '{}', did you forget to load/include a language module?",Je={disableAutodetect:!0,name:"Plain text",contains:[]};let Be={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:l};function ut(Pe){return Be.noHighlightRe.test(Pe)}function ot(Pe){let Ke=Pe.className+" ";Ke+=Pe.parentNode?Pe.parentNode.className:"";const St=Be.languageDetectRe.exec(Ke);if(St){const Vt=Ve(St[1]);return Vt||(de(Kt.replace("{}",St[1])),de("Falling back to no-highlight mode for this block.",Pe)),Vt?St[1]:"no-highlight"}return Ke.split(/\s+/).find(Vt=>ut(Vt)||Ve(Vt))}function Qt(Pe,Ke,St,Vt){let wr="",Ri="";typeof Ke=="object"?(wr=Pe,St=Ke.ignoreIllegals,Ri=Ke.language,Vt=void 0):(be("10.7.0","highlight(lang, code, ...args) has been deprecated."),be("10.7.0",`Please use highlight(code, options) instead.
|
|
268
|
+
https://github.com/highlightjs/highlight.js/issues/2277`),Ri=Pe,wr=Ke);const ii={code:wr,language:Ri};Lr("before:highlight",ii);const si=ii.result?ii.result:sn(ii.language,ii.code,St,Vt);return si.code=ii.code,Lr("after:highlight",si),si}function sn(Pe,Ke,St,Vt){function wr(rt,st){const wt=Gs.case_insensitive?st[0].toLowerCase():st[0];return Object.prototype.hasOwnProperty.call(rt.keywords,wt)&&rt.keywords[wt]}function Ri(){if(!At.keywords){bt.addText(mr);return}let rt=0;At.keywordPatternRe.lastIndex=0;let st=At.keywordPatternRe.exec(mr),wt="";for(;st;){wt+=mr.substring(rt,st.index);const $t=wr(At,st);if($t){const[on,Ys]=$t;if(bt.addText(wt),wt="",ka+=Ys,on.startsWith("_"))wt+=st[0];else{const Xs=Gs.classNameAliases[on]||on;bt.addKeyword(st[0],Xs)}}else wt+=st[0];rt=At.keywordPatternRe.lastIndex,st=At.keywordPatternRe.exec(mr)}wt+=mr.substr(rt),bt.addText(wt)}function ii(){if(mr==="")return;let rt=null;if(typeof At.subLanguage=="string"){if(!je[At.subLanguage]){bt.addText(mr);return}rt=sn(At.subLanguage,mr,!0,Ff[At.subLanguage]),Ff[At.subLanguage]=rt.top}else rt=ws(mr,At.subLanguage.length?At.subLanguage:null);At.relevance>0&&(ka+=rt.relevance),bt.addSublanguage(rt.emitter,rt.language)}function si(){At.subLanguage!=null?ii():Ri(),mr=""}function ai(rt){return rt.className&&bt.openNode(Gs.classNameAliases[rt.className]||rt.className),At=Object.create(rt,{parent:{value:At}}),At}function Un(rt,st,wt){let $t=v(rt.endRe,wt);if($t){if(rt["on:end"]){const on=new n(rt);rt["on:end"](st,on),on.isMatchIgnored&&($t=!1)}if($t){for(;rt.endsParent&&rt.parent;)rt=rt.parent;return rt}}if(rt.endsWithParent)return Un(rt.parent,st,wt)}function Nf(rt){return At.matcher.regexIndex===0?(mr+=rt[0],1):(As=!0,0)}function Mf(rt){const st=rt[0],wt=rt.rule,$t=new n(wt),on=[wt.__beforeBegin,wt["on:begin"]];for(const Ys of on)if(Ys&&(Ys(rt,$t),$t.isMatchIgnored))return Nf(st);return wt&&wt.endSameAsBegin&&(wt.endRe=f(st)),wt.skip?mr+=st:(wt.excludeBegin&&(mr+=st),si(),!wt.returnBegin&&!wt.excludeBegin&&(mr=st)),ai(wt),wt.returnBegin?0:st.length}function Df(rt){const st=rt[0],wt=Ke.substr(rt.index),$t=Un(At,rt,wt);if(!$t)return it;const on=At;on.skip?mr+=st:(on.returnEnd||on.excludeEnd||(mr+=st),si(),on.excludeEnd&&(mr=st));do At.className&&bt.closeNode(),!At.skip&&!At.subLanguage&&(ka+=At.relevance),At=At.parent;while(At!==$t.parent);return $t.starts&&($t.endSameAsBegin&&($t.starts.endRe=$t.endRe),ai($t.starts)),on.returnEnd?0:st.length}function qf(){const rt=[];for(let st=At;st!==Gs;st=st.parent)st.className&&rt.unshift(st.className);rt.forEach(st=>bt.openNode(st))}let Pa={};function Vu(rt,st){const wt=st&&st[0];if(mr+=rt,wt==null)return si(),0;if(Pa.type==="begin"&&st.type==="end"&&Pa.index===st.index&&wt===""){if(mr+=Ke.slice(st.index,st.index+1),!vt){const $t=new Error("0 width match regex");throw $t.languageName=Pe,$t.badRule=Pa.rule,$t}return 1}if(Pa=st,st.type==="begin")return Mf(st);if(st.type==="illegal"&&!St){const $t=new Error('Illegal lexeme "'+wt+'" for mode "'+(At.className||"<unnamed>")+'"');throw $t.mode=At,$t}else if(st.type==="end"){const $t=Df(st);if($t!==it)return $t}if(st.type==="illegal"&&wt==="")return 1;if(oi>1e5&&oi>st.index*3)throw new Error("potential infinite loop, way more iterations than matches");return mr+=wt,wt.length}const Gs=Ve(Pe);if(!Gs)throw Z(Kt.replace("{}",Pe)),new Error('Unknown language: "'+Pe+'"');const Ym=T(Gs,{plugins:et});let zu="",At=Vt||Ym;const Ff={},bt=new Be.__emitter(Be);qf();let mr="",ka=0,yr=0,oi=0,As=!1;try{for(At.matcher.considerAll();;){oi++,As?As=!1:At.matcher.considerAll(),At.matcher.lastIndex=yr;const rt=At.matcher.exec(Ke);if(!rt)break;const st=Ke.substring(yr,rt.index),wt=Vu(st,rt);yr=rt.index+wt}return Vu(Ke.substr(yr)),bt.closeAllNodes(),bt.finalize(),zu=bt.toHTML(),{relevance:Math.floor(ka),value:zu,language:Pe,illegal:!1,emitter:bt,top:At}}catch(rt){if(rt.message&&rt.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:rt.message,context:Ke.slice(yr-100,yr+100),mode:rt.mode},sofar:zu,relevance:0,value:Oe(Ke),emitter:bt};if(vt)return{illegal:!1,relevance:0,value:Oe(Ke),emitter:bt,language:Pe,top:At,errorRaised:rt};throw rt}}function Ws(Pe){const Ke={relevance:0,emitter:new Be.__emitter(Be),value:Oe(Pe),illegal:!1,top:Je};return Ke.emitter.addText(Pe),Ke}function ws(Pe,Ke){Ke=Ke||Be.languages||Object.keys(je);const St=Ws(Pe),Vt=Ke.filter(Ve).filter(nr).map(ai=>sn(ai,Pe,!1));Vt.unshift(St);const wr=Vt.sort((ai,Un)=>{if(ai.relevance!==Un.relevance)return Un.relevance-ai.relevance;if(ai.language&&Un.language){if(Ve(ai.language).supersetOf===Un.language)return 1;if(Ve(Un.language).supersetOf===ai.language)return-1}return 0}),[Ri,ii]=wr,si=Ri;return si.second_best=ii,si}function wo(Pe){return Be.tabReplace||Be.useBR?Pe.replace(gt,Ke=>Ke===`
|
|
269
|
+
`?Be.useBR?"<br>":Ke:Be.tabReplace?Ke.replace(/\t/g,Be.tabReplace):Ke):Pe}function Rn(Pe,Ke,St){const Vt=Ke?De[Ke]:St;Pe.classList.add("hljs"),Vt&&Pe.classList.add(Vt)}const Bn={"before:highlightElement":({el:Pe})=>{Be.useBR&&(Pe.innerHTML=Pe.innerHTML.replace(/\n/g,"").replace(/<br[ /]*>/g,`
|
|
270
|
+
`))},"after:highlightElement":({result:Pe})=>{Be.useBR&&(Pe.value=Pe.value.replace(/\n/g,"<br>"))}},Js=/^(<[^>]+>|\t)+/gm,Hs={"after:highlightElement":({result:Pe})=>{Be.tabReplace&&(Pe.value=Pe.value.replace(Js,Ke=>Ke.replace(/\t/g,Be.tabReplace)))}};function an(Pe){let Ke=null;const St=ot(Pe);if(ut(St))return;Lr("before:highlightElement",{el:Pe,language:St}),Ke=Pe;const Vt=Ke.textContent,wr=St?Qt(Vt,{language:St,ignoreIllegals:!0}):ws(Vt);Lr("after:highlightElement",{el:Pe,result:wr,text:Vt}),Pe.innerHTML=wr.value,Rn(Pe,St,wr.language),Pe.result={language:wr.language,re:wr.relevance,relavance:wr.relevance},wr.second_best&&(Pe.second_best={language:wr.second_best.language,re:wr.second_best.relevance,relavance:wr.second_best.relevance})}function xo(Pe){Pe.useBR&&(be("10.3.0","'useBR' will be removed entirely in v11.0"),be("10.3.0","Please see https://github.com/highlightjs/highlight.js/issues/2559")),Be=nt(Be,Pe)}const hn=()=>{if(hn.called)return;hn.called=!0,be("10.6.0","initHighlighting() is deprecated. Use highlightAll() instead."),document.querySelectorAll("pre code").forEach(an)};function Ks(){be("10.6.0","initHighlightingOnLoad() is deprecated. Use highlightAll() instead."),Gi=!0}let Gi=!1;function Mr(){if(document.readyState==="loading"){Gi=!0;return}document.querySelectorAll("pre code").forEach(an)}function xt(){Gi&&Mr()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",xt,!1);function ja(Pe,Ke){let St=null;try{St=Ke(pe)}catch(Vt){if(Z("Language definition for '{}' could not be registered.".replace("{}",Pe)),vt)Z(Vt);else throw Vt;St=Je}St.name||(St.name=Pe),je[Pe]=St,St.rawDefinition=Ke.bind(null,pe),St.aliases&&Mt(St.aliases,{languageName:Pe})}function tt(Pe){delete je[Pe];for(const Ke of Object.keys(De))De[Ke]===Pe&&delete De[Ke]}function ae(){return Object.keys(je)}function qe(Pe){be("10.4.0","requireLanguage will be removed entirely in v11."),be("10.4.0","Please see https://github.com/highlightjs/highlight.js/pull/2844");const Ke=Ve(Pe);if(Ke)return Ke;throw new Error("The '{}' language is required, but not loaded.".replace("{}",Pe))}function Ve(Pe){return Pe=(Pe||"").toLowerCase(),je[Pe]||je[De[Pe]]}function Mt(Pe,{languageName:Ke}){typeof Pe=="string"&&(Pe=[Pe]),Pe.forEach(St=>{De[St.toLowerCase()]=Ke})}function nr(Pe){const Ke=Ve(Pe);return Ke&&!Ke.disableAutodetect}function Ft(Pe){Pe["before:highlightBlock"]&&!Pe["before:highlightElement"]&&(Pe["before:highlightElement"]=Ke=>{Pe["before:highlightBlock"](Object.assign({block:Ke.el},Ke))}),Pe["after:highlightBlock"]&&!Pe["after:highlightElement"]&&(Pe["after:highlightElement"]=Ke=>{Pe["after:highlightBlock"](Object.assign({block:Ke.el},Ke))})}function Ar(Pe){Ft(Pe),et.push(Pe)}function Lr(Pe,Ke){const St=Pe;et.forEach(function(Vt){Vt[St]&&Vt[St](Ke)})}function Ci(Pe){return be("10.2.0","fixMarkup will be removed entirely in v11.0"),be("10.2.0","Please see https://github.com/highlightjs/highlight.js/issues/2534"),wo(Pe)}function xs(Pe){return be("10.7.0","highlightBlock will be removed entirely in v12.0"),be("10.7.0","Please use highlightElement now."),an(Pe)}Object.assign(pe,{highlight:Qt,highlightAuto:ws,highlightAll:Mr,fixMarkup:Ci,highlightElement:an,highlightBlock:xs,configure:xo,initHighlighting:hn,initHighlightingOnLoad:Ks,registerLanguage:ja,unregisterLanguage:tt,listLanguages:ae,getLanguage:Ve,registerAliases:Mt,requireLanguage:qe,autoDetection:nr,inherit:nt,addPlugin:Ar,vuePlugin:ye(pe).VuePlugin}),pe.debugMode=function(){vt=!1},pe.safeMode=function(){vt=!0},pe.versionString=se;for(const Pe in fe)typeof fe[Pe]=="object"&&t(fe[Pe]);return Object.assign(pe,fe),pe.addPlugin(Bn),pe.addPlugin(Me),pe.addPlugin(Hs),pe}({});return jw=pt,jw}var Pw={exports:{}},$L;function Nye(){return $L||($L=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,d,g,y=!1,v,_=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(_(),10).toString(2);break;case"c":d=_(),typeof d=="string"||d instanceof String?l+=d:l+=String.fromCharCode(parseInt(d,10));break;case"d":l+=parseInt(_(),10);break;case"f":g=String(parseFloat(_()).toFixed(v||6)),l+=y?g:g.replace(/^0/,"");break;case"j":l+=JSON.stringify(_());break;case"o":l+="0"+parseInt(_(),10).toString(8);break;case"s":l+=_();break;case"x":l+="0x"+parseInt(_(),10).toString(16);break;case"X":l+="0x"+parseInt(_(),10).toString(16).toUpperCase();break;default:l+=f;break}else f==="%"?h=!0:l+=f;return l}})()})(Pw)),Pw.exports}var kw,LL;function Mye(){if(LL)return kw;LL=1;var e=Nye(),t=r(Error);kw=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 kw}var BL;function Dye(){if(BL)return Ma;BL=1;var e=kye(),t=Mye();Ma.highlight=n,Ma.highlightAuto=i,Ma.registerLanguage=s,Ma.listLanguages=a,Ma.registerAlias=o,u.prototype.addText=f,u.prototype.addKeyword=c,u.prototype.addSublanguage=l,u.prototype.openNode=h,u.prototype.closeNode=d,u.prototype.closeAllNodes=y,u.prototype.finalize=y,u.prototype.toHTML=g;var r="hljs-";function n(v,_,b){var S=e.configure({}),w=b||{},E=w.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 _!="string")throw t("Expected `string` for value, got `%s`",_);if(E==null&&(E=r),e.configure({__emitter:u,classPrefix:E}),A=e.highlight(_,{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,_){var b=_||{},S=b.subset||e.listLanguages();b.prefix;var w=S.length,E=-1,A,R,I,O;if(typeof v!="string")throw t("Expected `string` for value, got `%s`",v);for(R={relevance:0,language:null,value:[]},A={relevance:0,language:null,value:[]};++E<w;)O=S[E],e.getLanguage(O)&&(I=n(O,v,_),I.language=O,I.relevance>R.relevance&&(R=I),I.relevance>A.relevance&&(R=A,A=I));return R.language&&(A.secondBest=R),A}function s(v,_){e.registerLanguage(v,_)}function a(){return e.listLanguages()}function o(v,_){var b=v,S;_&&(b={},b[v]=_);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,_){this.openNode(_),this.addText(v),this.closeNode()}function l(v,_){var b=this.stack,S=b[b.length-1],w=v.rootNode.children,E=_?{type:"element",tagName:"span",properties:{className:[_]},children:w}:w;S.children=S.children.concat(E)}function f(v){var _=this.stack,b,S;v!==""&&(b=_[_.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 _=this.stack,b=this.options.classPrefix+v,S=_[_.length-1],w={type:"element",tagName:"span",properties:{className:[b]},children:[]};S.children.push(w),_.push(w)}function d(){this.stack.pop()}function g(){return""}function y(){}return Ma}var qye=Dye();const oV=He.getDefaultExportFromCjs(qye);var uV=Pye(oV,{});uV.registerLanguage=oV.registerLanguage;var Nw,UL;function Fye(){if(UL)return Nw;UL=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 d=(J,{after:Q})=>{const re="</"+J[0].slice(1);return J.input.indexOf(re,Q)!==-1},g=e,y={begin:"<>",end:"</>"},v={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(J,Q)=>{const re=J[0].length+J.index,ne=J.input[re];if(ne==="<"){Q.ignoreMatch();return}ne===">"&&(d(J,{after:re})||Q.ignoreMatch())}},_={$pattern:e,keyword:t,literal:r,built_in:o},b="[0-9](_?[0-9])*",S=`\\.(${b})`,w="0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*",E={className:"number",variants:[{begin:`(\\b(${w})((${S})|\\.)?|(${S}))[eE][+-]?(${b})\\b`},{begin:`\\b(${w})\\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:_,contains:[]},R={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"xml"}},I={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[h.BACKSLASH_ESCAPE,A],subLanguage:"css"}},O={className:"string",begin:"`",end:"`",contains:[h.BACKSLASH_ESCAPE,A]},P={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]},F=[h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,I,O,E,h.REGEXP_MODE];A.contains=F.concat({begin:/\{/,end:/\}/,keywords:_,contains:["self"].concat(F)});const M=[].concat(P,A.contains),K=M.concat([{begin:/\(/,end:/\)/,keywords:_,contains:["self"].concat(M)}]),te={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:_,contains:K};return{name:"Javascript",aliases:["js","jsx","mjs","cjs"],keywords:_,exports:{PARAMS_CONTAINS:K},illegal:/#(?![$_A-z])/,contains:[h.SHEBANG({label:"shebang",binary:"node",relevance:5}),{label:"use_strict",className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},h.APOS_STRING_MODE,h.QUOTE_STRING_MODE,R,I,O,P,E,{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:[P,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:_,contains:K}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:y.begin,end:y.end},{begin:v.begin,"on:begin":v.isTrulyOpeningTag,end:v.end}],subLanguage:"xml",contains:[{begin:v.begin,end:v.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[{;]/,excludeEnd:!0,keywords:_,contains:["self",h.inherit(h.TITLE_MODE,{begin:g}),te],illegal:/%/},{beginKeywords:"while if switch catch for"},{className:"function",begin:h.UNDERSCORE_IDENT_RE+"\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{",returnBegin:!0,contains:[te,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",te]},{begin:"(get|set)\\s+(?="+g+"\\()",end:/\{/,keywords:"get set",contains:[h.inherit(h.TITLE_MODE,{begin:g}),{begin:/\(\)/},te]},{begin:/\$[(.]/}]}}return Nw=f,Nw}var $ye=Fye();const Lye=He.getDefaultExportFromCjs($ye);var Mw,VL;function Bye(){if(VL)return Mw;VL=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 Mw=e,Mw}var Uye=Bye();const Vye=He.getDefaultExportFromCjs(Uye);var Dw,zL;function zye(){if(zL)return Dw;zL=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"}),d=a.inherit(a.QUOTE_STRING_MODE,{className:"meta-string"}),g={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:"attr",begin:u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[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,d,h,f,{begin:/\[/,end:/\]/,contains:[{className:"meta",begin:/<![a-z]/,end:/>/,contains:[l,f,d,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 Dw=s,Dw}var Wye=zye();const Jye=He.getDefaultExportFromCjs(Wye);var qw,WL;function Hye(){if(WL)return qw;WL=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"],d=n.SHEBANG({binary:`(${h.join("|")})`,relevance:10}),g={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[n.inherit(n.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b[a-z._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp"},contains:[d,n.SHEBANG(),g,f,n.HASH_COMMENT_MODE,o,u,c,l,i]}}return qw=r,qw}var Kye=Hye();const Gye=He.getDefaultExportFromCjs(Kye);var Fw,JL;function Yye(){if(JL)return Fw;JL=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"},d={end:",",endsWithParent:!0,excludeEnd:!0,keywords:r,relevance:0},g={begin:/\{/,end:/\}/,contains:[d],illegal:"\\n",relevance:0},y={begin:"\\[",end:"\\]",contains:[d],illegal:"\\n",relevance:0},v=[i,{className:"meta",begin:"^---\\s*$",relevance:10},{className:"string",begin:"[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+n},{className:"type",begin:"!<"+n+">"},{className:"type",begin:"!"+n},{className:"type",begin:"!!"+n},{className:"meta",begin:"&"+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],_=[...v];return _.pop(),_.push(o),d.contains=_,{name:"YAML",case_insensitive:!0,aliases:["yml"],contains:v}}return Fw=e,Fw}var Xye=Yye();const Zye=He.getDefaultExportFromCjs(Xye);var $w,HL;function Qye(){if(HL)return $w;HL=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 $w=r,$w}var eve=Qye();const tve=He.getDefaultExportFromCjs(eve);var Lw,KL;function rve(){if(KL)return Lw;KL=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+/}]},d=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]}]},_={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},w={className:"function",begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:"keyword",begin:"(".concat(s.keyword.toString().replace(/\s/g,"|"),")\\b"),endsParent:!0,relevance:0},t.inherit(t.TITLE_MODE,{endsParent:!0})]},E=[w,d,o,t.NUMBER_MODE,l,f,g,u,c,S],A={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[].concat("self",E,{begin:"("+r.join("|")+")",className:"built_in",relevance:0},{className:"type",begin:/[\.\w\d]+/,relevance:0})};return w.contains.unshift(A),{name:"PowerShell",aliases:["ps","ps1"],case_insensitive:!0,keywords:s,contains:E.concat(y,v,_,b,A)}}return Lw=e,Lw}var nve=rve();const ive=He.getDefaultExportFromCjs(nve),sve={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"}},ave={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"}},ove={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"}},uve={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"}},cve={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"}},lve={"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"}},fve={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 Bw,GL;function pve(){return GL||(GL=1,Bw=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)}}),Bw}var dve=pve();const hve=He.getDefaultExportFromCjs(dve);var Uw,YL;function mve(){if(YL)return Uw;YL=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 Uw=e,Uw}var Vw,XL;function gve(){if(XL)return Vw;XL=1;var e=vh(),t=mve();function r(n,i){return t(n||[],i||[],e)}return Vw=r,Vw}var yve=gve();const vve=He.getDefaultExportFromCjs(yve);var bve=$s();const _ve=He.getDefaultExportFromCjs(bve);/*!
|
|
271
|
+
* repeat-string <https://github.com/jonschlinkert/repeat-string>
|
|
272
|
+
*
|
|
273
|
+
* Copyright (c) 2014-2015, Jon Schlinkert.
|
|
274
|
+
* Licensed under the MIT License.
|
|
275
|
+
*/var zw,ZL;function Eve(){if(ZL)return zw;ZL=1;var e="",t;zw=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 zw}var Ww,QL;function Sve(){if(QL)return Ww;QL=1;var e=Eve(),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)};Ww=function(u){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=c.indentor,f=c.textNodesOnSameLine,h=0,d=[];l=l||" ";var g=a(u).map(function(y,v,_){var b=y.value,S=y.type;S==="ClosingTag"&&h--;var w=e(l,h),E=w+b;if(S==="OpeningTag"&&h++,f){var A=_[v-1],R=_[v-2];S==="ClosingTag"&&A.type==="Text"&&R.type==="OpeningTag"&&(E=""+w+R.value+A.value+b,d.push(v-2,v-1))}return E});return d.forEach(function(y){return g[y]=null}),g.filter(function(y){return!!y}).join(`
|
|
276
|
+
`)};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 Ww}var wve=Sve();const xve=He.getDefaultExportFromCjs(wve);var Jw,eB;function Ave(){if(eB)return Jw;eB=1;var e=$s();function t(r){return e(r).toLowerCase()}return Jw=t,Jw}var Ove=Ave();const Cve=He.getDefaultExportFromCjs(Ove);var pp;function cV(e){return pp=pp||document.createElement("textarea"),pp.innerHTML="&"+e+";",pp.value}var Rve=Object.prototype.hasOwnProperty;function Tve(e,t){return e?Rve.call(e,t):!1}function lV(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 Ive=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function Wc(e){return e.indexOf("\\")<0?e:e.replace(Ive,"$1")}function fV(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 HA(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 jve=/&([a-z#][a-z0-9]{1,31});/gi,Pve=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function kve(e,t){var r=0,n=cV(t);return t!==n?n:t.charCodeAt(0)===35&&Pve.test(t)&&(r=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10),fV(r))?HA(r):e}function ro(e){return e.indexOf("&")<0?e:e.replace(jve,kve)}var Nve=/[&<>"]/,Mve=/[&<>"]/g,Dve={"&":"&","<":"<",">":">",'"':"""};function qve(e){return Dve[e]}function Nn(e){return Nve.test(e)?e.replace(Mve,qve):e}var Ze={};Ze.blockquote_open=function(){return`<blockquote>
|
|
277
|
+
`};Ze.blockquote_close=function(e,t){return"</blockquote>"+vo(e,t)};Ze.code=function(e,t){return e[t].block?"<pre><code>"+Nn(e[t].content)+"</code></pre>"+vo(e,t):"<code>"+Nn(e[t].content)+"</code>"};Ze.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(" "),Tve(i.rules.fence_custom,c[0]))return i.rules.fence_custom[c[0]](e,t,r,n,i);u=Nn(ro(Wc(l))),a=' class="'+o+u+'"'}return r.highlight?f=r.highlight.apply(r.highlight,[s.content].concat(c))||Nn(s.content):f=Nn(s.content),"<pre><code"+a+">"+f+"</code></pre>"+vo(e,t)};Ze.fence_custom={};Ze.heading_open=function(e,t){return"<h"+e[t].hLevel+">"};Ze.heading_close=function(e,t){return"</h"+e[t].hLevel+`>
|
|
278
|
+
`};Ze.hr=function(e,t,r){return(r.xhtmlOut?"<hr />":"<hr>")+vo(e,t)};Ze.bullet_list_open=function(){return`<ul>
|
|
279
|
+
`};Ze.bullet_list_close=function(e,t){return"</ul>"+vo(e,t)};Ze.list_item_open=function(){return"<li>"};Ze.list_item_close=function(){return`</li>
|
|
280
|
+
`};Ze.ordered_list_open=function(e,t){var r=e[t],n=r.order>1?' start="'+r.order+'"':"";return"<ol"+n+`>
|
|
281
|
+
`};Ze.ordered_list_close=function(e,t){return"</ol>"+vo(e,t)};Ze.paragraph_open=function(e,t){return e[t].tight?"":"<p>"};Ze.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?vo(e,t):"")};Ze.link_open=function(e,t,r){var n=e[t].title?' title="'+Nn(ro(e[t].title))+'"':"",i=r.linkTarget?' target="'+r.linkTarget+'"':"";return'<a href="'+Nn(e[t].href)+'"'+n+i+">"};Ze.link_close=function(){return"</a>"};Ze.image=function(e,t,r){var n=' src="'+Nn(e[t].src)+'"',i=e[t].title?' title="'+Nn(ro(e[t].title))+'"':"",s=' alt="'+(e[t].alt?Nn(ro(Wc(e[t].alt))):"")+'"',a=r.xhtmlOut?" /":"";return"<img"+n+s+i+a+">"};Ze.table_open=function(){return`<table>
|
|
282
|
+
`};Ze.table_close=function(){return`</table>
|
|
283
|
+
`};Ze.thead_open=function(){return`<thead>
|
|
284
|
+
`};Ze.thead_close=function(){return`</thead>
|
|
285
|
+
`};Ze.tbody_open=function(){return`<tbody>
|
|
286
|
+
`};Ze.tbody_close=function(){return`</tbody>
|
|
287
|
+
`};Ze.tr_open=function(){return"<tr>"};Ze.tr_close=function(){return`</tr>
|
|
288
|
+
`};Ze.th_open=function(e,t){var r=e[t];return"<th"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ze.th_close=function(){return"</th>"};Ze.td_open=function(e,t){var r=e[t];return"<td"+(r.align?' style="text-align:'+r.align+'"':"")+">"};Ze.td_close=function(){return"</td>"};Ze.strong_open=function(){return"<strong>"};Ze.strong_close=function(){return"</strong>"};Ze.em_open=function(){return"<em>"};Ze.em_close=function(){return"</em>"};Ze.del_open=function(){return"<del>"};Ze.del_close=function(){return"</del>"};Ze.ins_open=function(){return"<ins>"};Ze.ins_close=function(){return"</ins>"};Ze.mark_open=function(){return"<mark>"};Ze.mark_close=function(){return"</mark>"};Ze.sub=function(e,t){return"<sub>"+Nn(e[t].content)+"</sub>"};Ze.sup=function(e,t){return"<sup>"+Nn(e[t].content)+"</sup>"};Ze.hardbreak=function(e,t,r){return r.xhtmlOut?`<br />
|
|
289
|
+
`:`<br>
|
|
290
|
+
`};Ze.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?`<br />
|
|
291
|
+
`:`<br>
|
|
292
|
+
`:`
|
|
293
|
+
`};Ze.text=function(e,t){return Nn(e[t].content)};Ze.htmlblock=function(e,t){return e[t].content};Ze.htmltag=function(e,t){return e[t].content};Ze.abbr_open=function(e,t){return'<abbr title="'+Nn(ro(e[t].title))+'">'};Ze.abbr_close=function(){return"</abbr>"};Ze.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>"};Ze.footnote_block_open=function(e,t,r){var n=r.xhtmlOut?`<hr class="footnotes-sep" />
|
|
294
|
+
`:`<hr class="footnotes-sep">
|
|
295
|
+
`;return n+`<section class="footnotes">
|
|
296
|
+
<ol class="footnotes-list">
|
|
297
|
+
`};Ze.footnote_block_close=function(){return`</ol>
|
|
298
|
+
</section>
|
|
299
|
+
`};Ze.footnote_open=function(e,t){var r=Number(e[t].id+1).toString();return'<li id="fn'+r+'" class="footnote-item">'};Ze.footnote_close=function(){return`</li>
|
|
300
|
+
`};Ze.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>'};Ze.dl_open=function(){return`<dl>
|
|
301
|
+
`};Ze.dt_open=function(){return"<dt>"};Ze.dd_open=function(){return"<dd>"};Ze.dl_close=function(){return`</dl>
|
|
302
|
+
`};Ze.dt_close=function(){return`</dt>
|
|
303
|
+
`};Ze.dd_close=function(){return`</dd>
|
|
304
|
+
`};function pV(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?pV(e,t+2):t}var vo=Ze.getBreak=function(t,r){return r=pV(t,r),r<t.length&&t[r].type==="list_item_close"?"":`
|
|
305
|
+
`};function CR(){this.rules=lV({},Ze),this.getBreak=Ze.getBreak}CR.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};CR.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 ni(){this.__rules__=[],this.__cache__=null}ni.prototype.__find__=function(e){for(var t=this.__rules__.length,r=-1;t--;)if(this.__rules__[++r].name===e)return r;return-1};ni.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))})})};ni.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};ni.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};ni.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};ni.prototype.push=function(e,t,r){var n=r||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null};ni.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};ni.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};ni.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function Fve(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 bo(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}bo.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""};bo.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level};bo.prototype.cacheSet=function(e,t){for(var r=this.cache.length;r<=e;r++)this.cache.push(0);this.cache[e]=t};bo.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function Jc(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 $ve(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 bo(e,t,r,n,[]),s=Jc(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 Lve(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=$ve(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 KA(e){var t=ro(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function dV(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=KA(Wc(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=Wc(e.src.slice(s,t)),!e.parser.validateLink(i))?!1:(e.linkContent=i,e.pos=t,!0)}function hV(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=Wc(e.src.slice(n+1,t)),!0;if(r===92&&t+1<i){t+=2;continue}t++}return!1}function mV(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function Bve(e,t,r,n){var i,s,a,o,u,c,l,f,h;if(e.charCodeAt(0)!==91||e.indexOf("]:")===-1||(i=new bo(e,t,r,n,[]),s=Jc(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(!dV(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&&hV(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=mV(e.slice(1,s)),typeof n.references[h]>"u"&&(n.references[h]={title:f,href:l}),a)}function Uve(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=Bve(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 Vve(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 zve(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(d){return d.type==="footnote_reference_open"?(f=!0,u=[],c=d.label,!1):d.type==="footnote_reference_close"?(f=!1,h[":"+c]=u,!1):(f&&u.push(d),!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 tB=`
|
|
306
|
+
()[]'".,!?-`;function Hw(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}function Wve(e){var t,r,n,i,s,a,o,u,c,l,f,h,d=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(h="(^|["+tB.split("").map(Hw).join("")+"])("+Object.keys(e.env.abbreviations).map(function(g){return g.substr(1)}).sort(function(g,y){return y.length-g.length}).map(Hw).join("|")+")($|["+tB.split("").map(Hw).join("")+"])",e.env.abbrRegExp=new RegExp(h,"g")),l=e.env.abbrRegExp,r=0,n=d.length;r<n;r++)if(d[r].type==="inline"){for(i=d[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}),d[r].children=i=[].concat(i.slice(0,t),o,i.slice(t+1)))}}}}var Jve=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Hve=/\((c|tm|r|p)\)/ig,Kve={c:"©",r:"®",p:"§",tm:"™"};function Gve(e){return e.indexOf("(")<0?e:e.replace(Hve,function(t,r){return Kve[r.toLowerCase()]})}function Yve(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=Gve(n),Jve.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 Xve=/['"]/,rB=/['"]/g,Zve=/[-\s()\[\]]/,nB="’";function iB(e,t){return t<0||t>=e.length?!1:!Zve.test(e[t])}function Mo(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}function Qve(e){var t,r,n,i,s,a,o,u,c,l,f,h,d,g,y,v,_;if(e.options.typographer){for(_=[],y=e.tokens.length-1;y>=0;y--)if(e.tokens[y].type==="inline"){for(v=e.tokens[y].children,_.length=0,t=0;t<v.length;t++)if(r=v[t],!(r.type!=="text"||Xve.test(r.text))){for(o=v[t].level,d=_.length-1;d>=0&&!(_[d].level<=o);d--);_.length=d+1,n=r.content,s=0,a=n.length;e:for(;s<a&&(rB.lastIndex=s,i=rB.exec(n),!!i);){if(u=!iB(n,i.index-1),s=i.index+1,g=i[0]==="'",c=!iB(n,s),!c&&!u){g&&(r.content=Mo(r.content,i.index,nB));continue}if(f=!c,h=!u,h){for(d=_.length-1;d>=0&&(l=_[d],!(_[d].level<o));d--)if(l.single===g&&_[d].level===o){l=_[d],g?(v[l.token].content=Mo(v[l.token].content,l.pos,e.options.quotes[2]),r.content=Mo(r.content,i.index,e.options.quotes[3])):(v[l.token].content=Mo(v[l.token].content,l.pos,e.options.quotes[0]),r.content=Mo(r.content,i.index,e.options.quotes[1])),_.length=d;continue e}}f?_.push({token:t,pos:i.index,single:g,level:o}):h&&g&&(r.content=Mo(r.content,i.index,nB))}}}}}var Kw=[["block",Fve],["abbr",Lve],["references",Uve],["inline",Vve],["footnote_tail",zve],["abbr2",Wve],["replacements",Yve],["smartquotes",Qve]];function gV(){this.options={},this.ruler=new ni;for(var e=0;e<Kw.length;e++)this.ruler.push(Kw[e][0],Kw[e][1])}gV.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 _o(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}_o.prototype.isEmpty=function(t){return this.bMarks[t]+this.tShift[t]>=this.eMarks[t]};_o.prototype.skipEmptyLines=function(t){for(var r=this.lineMax;t<r&&!(this.bMarks[t]+this.tShift[t]<this.eMarks[t]);t++);return t};_o.prototype.skipSpaces=function(t){for(var r=this.src.length;t<r&&this.src.charCodeAt(t)===32;t++);return t};_o.prototype.skipChars=function(t,r){for(var n=this.src.length;t<n&&this.src.charCodeAt(t)===r;t++);return t};_o.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};_o.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 e0e(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 t0e(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 r0e(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,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,d=f.length;h<d;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 n0e(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 sB(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 aB(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 i0e(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 s0e(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y,v,_,b,S,w,E,A=!0,R,I,O,D;if((f=aB(e,t))>=0)v=!0;else if((f=sB(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:w=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:w=[t,0],level:e.level++}),i=t,S=!1,R=e.parser.ruler.getRules("list");i<r&&(_=e.skipSpaces(f),h=e.eMarks[i],_>=h?d=1:d=_-f,d>4&&(d=1),d<1&&(d=1),s=f-e.bMarks[i]+d,e.tokens.push({type:"list_item_open",lines:E=[t,0],level:e.level++}),o=e.blkIndent,u=e.tight,a=e.tShift[t],c=e.parentType,e.tShift[t]=_-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,E[1]=i,_=e.bMarks[t],!(i>=r||e.isEmpty(i)||e.tShift[i]<e.blkIndent));){for(D=!1,I=0,O=R.length;I<O;I++)if(R[I](e,i,r,!0)){D=!0;break}if(D)break;if(v){if(f=aB(e,i),f<0)break}else if(f=sB(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}),w[1]=i,e.line=i,A&&i0e(e,b),!0}function a0e(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 o0e(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 u0e(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 yV={};["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){yV[e]=!0});var c0e=/^<([a-zA-Z]{1,15})[\s\/>]/,l0e=/^<\/([a-zA-Z]{1,15})[\s>]/;function f0e(e){var t=e|32;return t>=97&&t<=122}function p0e(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||f0e(i)){if(i===47){if(s=e.src.slice(o,u).match(l0e),!s)return!1}else if(s=e.src.slice(o,u).match(c0e),!s)return!1;if(yV[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 Gw(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function d0e(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,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=Gw(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=Gw(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:d=[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=Gw(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}),d[1]=g[1]=u,e.line=u,!0}function dp(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 h0e(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 m0e(e,t,r,n){var i,s,a,o,u,c,l,f,h,d,g,y,v,_;if(n)return e.ddIndent<0?!1:dp(e,t)>=0;if(l=t+1,e.isEmpty(l)&&++l>r||e.tShift[l]<e.blkIndent||(i=dp(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(_=!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],d=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)&&(_=!1),v=e.line-s>1&&e.isEmpty(e.line-1),e.tShift[s]=g,e.tight=y,e.parentType=d,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=dp(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=dp(e,s),i<0))break}return e.tokens.push({type:"dl_close",level:--e.level}),u[1]=l,e.line=l,_&&h0e(e,c),!0}function g0e(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 hp=[["code",e0e],["fences",t0e,["paragraph","blockquote","list"]],["blockquote",r0e,["paragraph","blockquote","list"]],["hr",n0e,["paragraph","blockquote","list"]],["list",s0e,["paragraph","blockquote"]],["footnote",a0e,["paragraph"]],["heading",o0e,["paragraph","blockquote"]],["lheading",u0e],["htmlblock",p0e,["paragraph","blockquote"]],["table",d0e,["paragraph"]],["deflist",m0e,["paragraph"]],["paragraph",g0e]];function RR(){this.ruler=new ni;for(var e=0;e<hp.length;e++)this.ruler.push(hp[e][0],hp[e][1],{alt:(hp[e][2]||[]).slice()})}RR.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 y0e=/[\n\t]/g,v0e=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,b0e=/\u00a0/g;RR.prototype.parse=function(e,t,r,n){var i,s=0,a=0;if(!e)return[];e=e.replace(b0e," "),e=e.replace(v0e,`
|
|
307
|
+
`),e.indexOf(" ")>=0&&(e=e.replace(y0e,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 _o(e,this,t,r,n),this.tokenize(i,i.line,i.lineMax)};function _0e(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 E0e(e,t){for(var r=e.pos;r<e.posMax&&!_0e(e.src.charCodeAt(r));)r++;return r===e.pos?!1:(t||(e.pending+=e.src.slice(e.pos,r)),e.pos=r,!0)}function S0e(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 TR=[];for(var oB=0;oB<256;oB++)TR.push(0);"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){TR[e.charCodeAt(0)]=1});function w0e(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&&TR[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 x0e(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 A0e(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 O0e(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 C0e(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 uB(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function cB(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&&(uB(n)&&(a=!1),uB(i)&&(o=!1))),{can_open:a,can_close:o,delims:s}}function R0e(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=cB(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=cB(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 T0e=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function I0e(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(T0e,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}var j0e=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function P0e(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(j0e,"$1")}),e.pos=e.posMax+1,e.posMax=i,!0)}function k0e(e,t){var r,n,i,s,a,o,u,c,l=!1,f=e.pos,h=e.posMax,d=e.pos,g=e.src.charCodeAt(d);if(g===33&&(l=!0,g=e.src.charCodeAt(++d)),g!==91||e.level>=e.options.maxNesting||(r=d+1,n=Jc(e,d),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(d=o,dV(e,o)?(s=e.linkContent,o=e.pos):s="",d=o;o<h&&(c=e.src.charCodeAt(o),!(c!==32&&c!==10));o++);if(o<h&&d!==o&&hV(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&&(d=o+1,o=Jc(e,o),o>=0?i=e.src.slice(d,o++):o=d-1),i||(typeof i>"u"&&(o=n+1),i=e.src.slice(r,n)),u=e.env.references[mV(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 N0e(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=Jc(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 M0e(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 D0e=["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"],q0e=/^<([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])?)*)>/,F0e=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function $0e(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(F0e),n?D0e.indexOf(n[1].toLowerCase())<0||(s=n[0].slice(1,-1),a=KA(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(q0e),i?(s=i[0].slice(1,-1),a=KA("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 Nm(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 L0e=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,B0e=/[^"'=<>`\x00-\x20]+/,U0e=/'[^']*'/,V0e=/"[^"]*"/,z0e=Nm(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",B0e)("single_quoted",U0e)("double_quoted",V0e)(),W0e=Nm(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",L0e)("attr_value",z0e)(),J0e=Nm(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",W0e)(),H0e=/<\/[A-Za-z][A-Za-z0-9]*\s*>/,K0e=/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/,G0e=/<[?].*?[?]>/,Y0e=/<![A-Z]+\s+[^>]*>/,X0e=/<!\[CDATA\[[\s\S]*?\]\]>/,Z0e=Nm(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",J0e)("close_tag",H0e)("comment",K0e)("processing",G0e)("declaration",Y0e)("cdata",X0e)();function Q0e(e){var t=e|32;return t>=97&&t<=122}function ebe(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&&!Q0e(r))||(n=e.src.slice(s).match(Z0e),!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 tbe=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,rbe=/^&([a-z][a-z0-9]{1,31});/i;function nbe(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(tbe),i)return t||(n=i[1][0].toLowerCase()==="x"?parseInt(i[1].slice(1),16):parseInt(i[1],10),e.pending+=fV(n)?HA(n):HA(65533)),e.pos+=i[0].length,!0}else if(i=e.src.slice(s).match(rbe),i){var o=cV(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 Yw=[["text",E0e],["newline",S0e],["escape",w0e],["backticks",x0e],["del",A0e],["ins",O0e],["mark",C0e],["emphasis",R0e],["sub",I0e],["sup",P0e],["links",k0e],["footnote_inline",N0e],["footnote_ref",M0e],["autolink",$0e],["htmltag",ebe],["entity",nbe]];function Mm(){this.ruler=new ni;for(var e=0;e<Yw.length;e++)this.ruler.push(Yw[e][0],Yw[e][1]);this.validateLink=ibe}Mm.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)};Mm.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()};Mm.prototype.parse=function(e,t,r,n){var i=new bo(e,this,t,r,n);this.tokenize(i)};function ibe(e){var t=["vbscript","javascript","file","data"],r=e.trim().toLowerCase();return r=ro(r),!(r.indexOf(":")!==-1&&t.indexOf(r.split(":")[0])!==-1)}var sbe={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"]}}},abe={options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},obe={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"]}}},ube={default:sbe,full:abe,commonmark:obe};function vV(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 Ta(e,t){typeof e!="string"&&(t=e,e="default"),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead:
|
|
308
|
+
|
|
309
|
+
import Remarkable from 'remarkable';
|
|
310
|
+
import linkify from 'remarkable/linkify';
|
|
311
|
+
new Remarkable().use(linkify)
|
|
312
|
+
`),this.inline=new Mm,this.block=new RR,this.core=new gV,this.renderer=new CR,this.ruler=new ni,this.options={},this.configure(ube[e]),this.set(t||{})}Ta.prototype.set=function(e){lV(this.options,e)};Ta.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)})};Ta.prototype.use=function(e,t){return e(this,t),this};Ta.prototype.parse=function(e,t){var r=new vV(this,e,t);return this.core.process(r),r.tokens};Ta.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)};Ta.prototype.parseInline=function(e,t){var r=new vV(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens};Ta.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};var cbe="3.16.2";function lbe(e,t){for(var r in t)t.hasOwnProperty(r)&&e[r]===void 0&&(e[r]=t[r]);return e}function fbe(e,t,r){var n;return e.length>t&&(r==null?(r="…",n=3):n=r.length,e=e.substring(0,t-n)+r),e}function lB(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 Da(e,t){for(var r=e.length-1;r>=0;r--)t(e[r])===!0&&e.splice(r,1)}function pbe(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 IR(e){throw new Error("Unhandled case for value: '".concat(e,"'"))}var GA=(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();)lB(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=lB(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 dbe(e,t,r){var n,i;r==null?(r="…",i=3,n=8):(i=r.length,n=r.length);var s=function(b){var S={},w=b,E=w.match(/^([a-z]+):\/\//i);return E&&(S.scheme=E[1],w=w.substr(E[0].length)),E=w.match(/^(.*?)(?=(\?|#|\/|$))/i),E&&(S.host=E[1],w=w.substr(E[0].length)),E=w.match(/^\/(.*?)(?=(\?|#|$))/i),E&&(S.path=E[1],w=w.substr(E[0].length)),E=w.match(/^\?(.*?)(?=(#|$))/i),E&&(S.query=E[1],w=w.substr(E[0].length)),E=w.match(/^#(.*?)$/i),E&&(S.fragment=E[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 w=S/2,E=Math.ceil(w),A=-1*Math.floor(w),R="";return A<0&&(R=b.substr(A)),b.substr(0,E)+r+R};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 d=u-f.length;return(f+o(h,d)).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 _="";return u>0&&(_=f.substr(-1*Math.floor(u/2))),(f.substr(0,Math.ceil(u/2))+r+_).substr(0,u+n)}function hbe(e,t,r){if(e.length<=t)return e;var n,i;r==null?(r="…",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 mbe(e,t,r){return fbe(e,t,r)}var fB=(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 GA({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"?dbe(t,n):i==="middle"?hbe(t,n):mbe(t,n)},e})(),Bu=(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})(),YA=function(e,t){return YA=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])},YA(e,t)};function _s(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");YA(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var vr=function(){return vr=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},vr.apply(this,arguments)};var bV=(function(e){_s(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})(Bu),_V=(function(e){_s(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})(Bu),EV=(function(e){_s(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})(Bu),SV=(function(e){_s(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})(Bu),wV=(function(e){_s(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(/&/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,""").replace(/%26/gi,"&").replace(/%27/gi,"'").replace(/%3C/gi,"<").replace(/%3E/gi,">");try{return decodeURIComponent(n)}catch{return n}},t})(Bu),Uu=(function(){function e(t){this.__jsduckDummyDocProp=null,this.tagBuilder=t.tagBuilder}return e})(),Xw=/[A-Za-z]/,gbe=/[\d]/,ybe=/[\D]/,qa=/\s/,Zw=/['"]/,vbe=/[\x00-\x1F\x7F]/,xV=/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,bbe=/\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,_be=/\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,AV=xV+bbe+_be,yd=/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,Ebe=AV+yd,Er=AV+yd,hc=new RegExp("[".concat(Er,"]")),Sbe="(?:["+yd+"]{1,3}\\.){3}["+yd+"]{1,3}",wbe="["+Er+"](?:["+Er+"\\-_]{0,61}["+Er+"])?",pB=function(e){return"(?=("+wbe+"))\\"+e},Qw=function(e){return"(?:"+pB(e)+"(?:\\."+pB(e+1)+"){0,126}|"+Sbe+")"},mp=hc,OV=/(?: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|ελ|ευ|бг|ею|рф|გე|닷넷|닷컴|삼성|한국|コム|世界|中信|中国|中國|企业|佛山|信息|健康|八卦|公司|公益|台湾|台灣|商城|商店|商标|嘉里|在线|大拿|娱乐|家電|广东|微博|慈善|手机|招聘|政务|政府|新闻|时尚|書籍|机构|游戏|澳門|点看|移动|网址|网店|网站|网络|联通|谷歌|购物|通販|集团|食品|餐厅|香港)/,xbe=new RegExp("[".concat(Er,"!#$%&'*+/=?^_`{|}~-]")),Abe=new RegExp("^".concat(OV.source,"$")),dB=(function(e){_s(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.localPartCharRegex=xbe,r.strictTldRegex=Abe,r}return t.prototype.parseMatches=function(r){for(var n=this.tagBuilder,i=this.localPartCharRegex,s=this.strictTldRegex,a=[],o=r.length,u=new gp,c={m:"a",a:"i",i:"l",l:"t",t:"o",o:":"},l=0,f=0,h=u;l<o;){var d=r.charAt(l);switch(f){case 0:g(d);break;case 1:y(r.charAt(l-1),d);break;case 2:v(d);break;case 3:_(d);break;case 4:b(d);break;case 5:S(d);break;case 6:w(d);break;case 7:E(d);break;default:IR(f)}l++}return I(),a;function g(O){O==="m"?A(1):i.test(O)&&A()}function y(O,D){O===":"?i.test(D)?(f=2,h=new gp(vr(vr({},h),{hasMailtoPrefix:!0}))):R():c[O]===D||(i.test(D)?f=2:D==="."?f=3:D==="@"?f=4:R())}function v(O){O==="."?f=3:O==="@"?f=4:i.test(O)||R()}function _(O){O==="."||O==="@"?R():i.test(O)?f=2:R()}function b(O){mp.test(O)?f=5:R()}function S(O){O==="."?f=7:O==="-"?f=6:mp.test(O)||I()}function w(O){O==="-"||O==="."?I():mp.test(O)?f=5:I()}function E(O){O==="."||O==="-"?I():mp.test(O)?(f=5,h=new gp(vr(vr({},h),{hasDomainDot:!0}))):I()}function A(O){O===void 0&&(O=2),f=O,h=new gp({idx:l})}function R(){f=0,h=u}function I(){if(h.hasDomainDot){var O=r.slice(h.idx,l);/[-.]$/.test(O)&&(O=O.slice(0,-1));var D=h.hasMailtoPrefix?O.slice(7):O;P(D)&&a.push(new bV({tagBuilder:n,matchedText:O,offset:h.idx,email:D}))}R();function P(F){var M=F.split(".").pop()||"",K=M.toLowerCase(),te=s.test(K);return te}}},t})(Uu),gp=(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})(),Obe=(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]*?["+xV+"]"),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})(),Cbe=(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("[/?#](?:["+Er+"\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^✓]*["+Er+"\\-+&@#/%=~_()|'$*\\[\\]{}✓])?");return new RegExp(["(?:","(",e.source,Qw(2),")","|","(","(//)?",t.source,Qw(6),")","|","(","(//)?",Qw(10)+"\\.",OV.source,"(?![-"+Ebe+"])",")",")","(?::[0-9]+)?","(?:"+r.source+")?"].join(""),"gi")})(),Rbe=new RegExp("["+Er+"]"),hB=(function(e){_s(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=Cbe,n.wordCharRegExp=Rbe,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],d=c[1],g=c[4],y=c[5],v=c[9],_=c.index,b=y||v,S=r.charAt(_-1);if(!Obe.isValid(h,d)||_>0&&S==="@"||_>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 w=f.matchHasInvalidCharAfterTld(h,d);w>-1&&(h=h.substr(0,w))}var E=["http://","https://"].find(function(O){return!!d&&d.indexOf(O)!==-1});if(E){var A=h.indexOf(E);h=h.substr(A),d=d.substr(A),_=_+A}var R=d?"scheme":g?"www":"tld",I=!!d;u.push(new wV({tagBuilder:o,matchedText:h,offset:_,urlMatchType:R,url:h,protocolUrlMatch:I,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("^((.?//)?[-."+Er+"]*[-"+Er+"]\\.[-"+Er+"]+)"),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})(Uu),mB=new RegExp("[_".concat(Er,"]")),gB=(function(e){_s(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:d(l);break;case 3:g(l);break;default:IR(c)}o++}return y(),s;function f(v){v==="#"?(c=2,u=o):hc.test(v)&&(c=1)}function h(v){hc.test(v)||(c=0)}function d(v){mB.test(v)?c=3:hc.test(v)?c=1:c=0}function g(v){mB.test(v)||(y(),u=-1,hc.test(v)?c=1:c=0)}function y(){if(u>-1&&o-u<=140){var v=r.slice(u,o),_=new _V({tagBuilder:n,matchedText:v,offset:u,serviceName:i,hashtag:v.slice(1)});s.push(_)}}},t})(Uu),Tbe=["twitter","facebook","instagram","tiktok"],Ibe=/(?:(?:(?:(\+)?\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]+#?)*/,jbe=/(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})/,Pbe=new RegExp("".concat(Ibe.source,"|").concat(jbe.source),"g"),yB=(function(e){_s(t,e);function t(){var r=e!==null&&e.apply(this,arguments)||this;return r.matcherRegex=Pbe,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 SV({tagBuilder:i,matchedText:o,offset:a.index,number:u,plusSign:c}))}return s},t.prototype.testMatch=function(r){return ybe.test(r)},t})(Uu),kbe=new RegExp("@[_".concat(Er,"]{1,50}(?![_").concat(Er,"])"),"g"),Nbe=new RegExp("@[_.".concat(Er,"]{1,30}(?![_").concat(Er,"])"),"g"),Mbe=new RegExp("@[-_.".concat(Er,"]{1,50}(?![-_").concat(Er,"])"),"g"),Dbe=new RegExp("@[_.".concat(Er,"]{1,23}[_").concat(Er,"](?![_").concat(Er,"])"),"g"),qbe=new RegExp("[^"+Er+"]"),vB=(function(e){_s(t,e);function t(r){var n=e.call(this,r)||this;return n.serviceName="twitter",n.matcherRegexes={twitter:kbe,instagram:Nbe,soundcloud:Mbe,tiktok:Dbe},n.nonWordCharRegex=qbe,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 EV({tagBuilder:a,matchedText:f,offset:c,serviceName:n,mention:h}))}}return o},t})(Uu);function Fbe(e,t){for(var r=t.onOpenTag,n=t.onCloseTag,i=t.onText,s=t.onComment,a=t.onDoctype,o=new es,u=0,c=e.length,l=0,f=0,h=o;u<c;){var d=e.charAt(u);switch(l){case 0:g(d);break;case 1:y(d);break;case 2:_(d);break;case 3:v(d);break;case 4:b(d);break;case 5:S(d);break;case 6:w(d);break;case 7:E(d);break;case 8:A(d);break;case 9:R(d);break;case 10:I(d);break;case 11:O(d);break;case 12:D(d);break;case 13:P();break;case 14:F(d);break;case 15:M(d);break;case 16:K(d);break;case 17:te(d);break;case 18:J(d);break;case 19:Q(d);break;case 20:re(d);break;default:IR(l)}u++}f<u&&ie();function g(ee){ee==="<"&&U()}function y(ee){ee==="!"?l=13:ee==="/"?(l=2,h=new es(vr(vr({},h),{isClosing:!0}))):ee==="<"?U():Xw.test(ee)?(l=3,h=new es(vr(vr({},h),{isOpening:!0}))):(l=0,h=o)}function v(ee){qa.test(ee)?(h=new es(vr(vr({},h),{name:ue()})),l=4):ee==="<"?U():ee==="/"?(h=new es(vr(vr({},h),{name:ue()})),l=12):ee===">"?(h=new es(vr(vr({},h),{name:ue()})),H()):!Xw.test(ee)&&!gbe.test(ee)&&ee!==":"&&ne()}function _(ee){ee===">"?ne():Xw.test(ee)?l=3:ne()}function b(ee){qa.test(ee)||(ee==="/"?l=12:ee===">"?H():ee==="<"?U():ee==="="||Zw.test(ee)||vbe.test(ee)?ne():l=5)}function S(ee){qa.test(ee)?l=6:ee==="/"?l=12:ee==="="?l=7:ee===">"?H():ee==="<"?U():Zw.test(ee)&&ne()}function w(ee){qa.test(ee)||(ee==="/"?l=12:ee==="="?l=7:ee===">"?H():ee==="<"?U():Zw.test(ee)?ne():l=5)}function E(ee){qa.test(ee)||(ee==='"'?l=8:ee==="'"?l=9:/[>=`]/.test(ee)?ne():ee==="<"?U():l=10)}function A(ee){ee==='"'&&(l=11)}function R(ee){ee==="'"&&(l=11)}function I(ee){qa.test(ee)?l=4:ee===">"?H():ee==="<"&&U()}function O(ee){qa.test(ee)?l=4:ee==="/"?l=12:ee===">"?H():ee==="<"?U():(l=4,le())}function D(ee){ee===">"?(h=new es(vr(vr({},h),{isClosing:!0})),H()):l=4}function P(ee){e.substr(u,2)==="--"?(u+=2,h=new es(vr(vr({},h),{type:"comment"})),l=14):e.substr(u,7).toUpperCase()==="DOCTYPE"?(u+=7,h=new es(vr(vr({},h),{type:"doctype"})),l=20):ne()}function F(ee){ee==="-"?l=15:ee===">"?ne():l=16}function M(ee){ee==="-"?l=18:ee===">"?ne():l=16}function K(ee){ee==="-"&&(l=17)}function te(ee){ee==="-"?l=18:l=16}function J(ee){ee===">"?H():ee==="!"?l=19:ee==="-"||(l=16)}function Q(ee){ee==="-"?l=17:ee===">"?H():l=16}function re(ee){ee===">"?H():ee==="<"&&U()}function ne(){l=0,h=o}function U(){l=1,h=new es({idx:u})}function H(){var ee=e.slice(f,h.idx);ee&&i(ee,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)),ne(),f=u+1}function ie(){var ee=e.slice(f,u);i(ee,f),f=u+1}function ue(){var ee=h.idx+(h.isClosing?2:1);return e.slice(ee,u).toLowerCase()}function le(){u--}}var es=(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})(),$be=(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&&Tbe.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"}:lbe(t||{},{length:Number.POSITIVE_INFINITY,location:"end"})},e.prototype.parse=function(t){var r=this,n=["a","style","script"],i=0,s=[];return Fbe(t,{onOpenTag:function(a){n.indexOf(a)>=0&&i++},onText:function(a,o){if(i===0){var u=/( | |<|<|>|>|"|"|')/gi,c=pbe(a,u),l=o;c.forEach(function(f,h){if(h%2===0){var d=r.parseText(f,l);s.push.apply(s,d)}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||Da(t,function(r){return r.getType()==="hashtag"}),this.email||Da(t,function(r){return r.getType()==="email"}),this.phone||Da(t,function(r){return r.getType()==="phone"}),this.mention||Da(t,function(r){return r.getType()==="mention"}),this.urls.schemeMatches||Da(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="scheme"}),this.urls.wwwMatches||Da(t,function(r){return r.getType()==="url"&&r.getUrlMatchType()==="www"}),this.urls.tldMatches||Da(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,"<").replace(/>/g,">"));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 GA)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 gB({tagBuilder:t,serviceName:this.hashtag}),new dB({tagBuilder:t}),new yB({tagBuilder:t}),new vB({tagBuilder:t,serviceName:this.mention}),new hB({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 fB({newWindow:this.newWindow,truncate:this.truncate,className:this.className})),t},e.version=cbe,e.AnchorTagBuilder=fB,e.HtmlTag=GA,e.matcher={Email:dB,Hashtag:gB,Matcher:Uu,Mention:vB,Phone:yB,Url:hB},e.match={Email:bV,Hashtag:_V,Match:Bu,Mention:EV,Phone:SV,Url:wV},e})(),Lbe=/www|@|\:\/\//;function Bbe(e){return/^<a[>\s]/i.test(e)}function Ube(e){return/^<\/a\s*>/i.test(e)}function Vbe(){var e=[],t=new $be({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 zbe(e){var t,r,n,i,s,a,o,u,c,l,f,h=e.tokens,d=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"&&(Bbe(s.content)&&f>0&&f--,Ube(s.content)&&f++),!(f>0)&&s.type==="text"&&Lbe.test(s.content)){if(d||(d=Vbe(),g=d.links,y=d.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 Wbe(e){e.core.ruler.push("linkify",zbe)}/*! @license DOMPurify 3.3.1 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.1/LICENSE */const{entries:CV,setPrototypeOf:bB,isFrozen:Jbe,getPrototypeOf:Hbe,getOwnPropertyDescriptor:Kbe}=Object;let{freeze:Sn,seal:vi,create:XA}=Object,{apply:ZA,construct:QA}=typeof Reflect<"u"&&Reflect;Sn||(Sn=function(t){return t});vi||(vi=function(t){return t});ZA||(ZA=function(t,r){for(var n=arguments.length,i=new Array(n>2?n-2:0),s=2;s<n;s++)i[s-2]=arguments[s];return t.apply(r,i)});QA||(QA=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 new t(...n)});const yp=wn(Array.prototype.forEach),Gbe=wn(Array.prototype.lastIndexOf),_B=wn(Array.prototype.pop),ec=wn(Array.prototype.push),Ybe=wn(Array.prototype.splice),Dp=wn(String.prototype.toLowerCase),ex=wn(String.prototype.toString),tx=wn(String.prototype.match),tc=wn(String.prototype.replace),Xbe=wn(String.prototype.indexOf),Zbe=wn(String.prototype.trim),ji=wn(Object.prototype.hasOwnProperty),yn=wn(RegExp.prototype.test),rc=Qbe(TypeError);function wn(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return ZA(e,t,n)}}function Qbe(e){return function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return QA(e,r)}}function Rt(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dp;bB&&bB(e,null);let n=t.length;for(;n--;){let i=t[n];if(typeof i=="string"){const s=r(i);s!==i&&(Jbe(t)||(t[n]=s),i=s)}e[i]=!0}return e}function e_e(e){for(let t=0;t<e.length;t++)ji(e,t)||(e[t]=null);return e}function ts(e){const t=XA(null);for(const[r,n]of CV(e))ji(e,r)&&(Array.isArray(n)?t[r]=e_e(n):n&&typeof n=="object"&&n.constructor===Object?t[r]=ts(n):t[r]=n);return t}function nc(e,t){for(;e!==null;){const n=Kbe(e,t);if(n){if(n.get)return wn(n.get);if(typeof n.value=="function")return wn(n.value)}e=Hbe(e)}function r(){return null}return r}const EB=Sn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),rx=Sn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nx=Sn(["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"]),t_e=Sn(["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"]),ix=Sn(["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"]),r_e=Sn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),SB=Sn(["#text"]),wB=Sn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),sx=Sn(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),xB=Sn(["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"]),vp=Sn(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),n_e=vi(/\{\{[\w\W]*|[\w\W]*\}\}/gm),i_e=vi(/<%[\w\W]*|[\w\W]*%>/gm),s_e=vi(/\$\{[\w\W]*/gm),a_e=vi(/^data-[\-\w.\u00B7-\uFFFF]+$/),o_e=vi(/^aria-[\-\w]+$/),RV=vi(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),u_e=vi(/^(?:\w+script|data):/i),c_e=vi(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),TV=vi(/^html$/i),l_e=vi(/^[a-z][.\w]*(-[.\w]+)+$/i);var AB=Object.freeze({__proto__:null,ARIA_ATTR:o_e,ATTR_WHITESPACE:c_e,CUSTOM_ELEMENT:l_e,DATA_ATTR:a_e,DOCTYPE_NAME:TV,ERB_EXPR:i_e,IS_ALLOWED_URI:RV,IS_SCRIPT_OR_DATA:u_e,MUSTACHE_EXPR:n_e,TMPLIT_EXPR:s_e});const ic={element:1,text:3,progressingInstruction:7,comment:8,document:9},f_e=function(){return typeof window>"u"?null:window},p_e=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}},OB=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function IV(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:f_e();const t=tt=>IV(tt);if(t.version="3.3.1",t.removed=[],!e||!e.document||e.document.nodeType!==ic.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:d}=e,g=u.prototype,y=nc(g,"cloneNode"),v=nc(g,"remove"),_=nc(g,"nextSibling"),b=nc(g,"childNodes"),S=nc(g,"parentNode");if(typeof a=="function"){const tt=r.createElement("template");tt.content&&tt.content.ownerDocument&&(r=tt.content.ownerDocument)}let w,E="";const{implementation:A,createNodeIterator:R,createDocumentFragment:I,getElementsByTagName:O}=r,{importNode:D}=n;let P=OB();t.isSupported=typeof CV=="function"&&typeof S=="function"&&A&&A.createHTMLDocument!==void 0;const{MUSTACHE_EXPR:F,ERB_EXPR:M,TMPLIT_EXPR:K,DATA_ATTR:te,ARIA_ATTR:J,IS_SCRIPT_OR_DATA:Q,ATTR_WHITESPACE:re,CUSTOM_ELEMENT:ne}=AB;let{IS_ALLOWED_URI:U}=AB,H=null;const ie=Rt({},[...EB,...rx,...nx,...ix,...SB]);let ue=null;const le=Rt({},[...wB,...sx,...xB,...vp]);let ee=Object.seal(XA(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}})),z=null,V=null;const fe=Object.seal(XA(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let me=!0,Re=!0,Ne=!1,he=!0,Te=!1,Ue=!0,_e=!1,we=!1,Ae=!1,B=!1,T=!1,k=!1,W=!0,se=!1;const ce="user-content-";let ye=!0,Me=!1,Xe={},$=null;const C=Rt({},["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 j=null;const Z=Rt({},["audio","video","img","source","image","track"]);let de=null;const be=Rt({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",nt="http://www.w3.org/2000/svg",it="http://www.w3.org/1999/xhtml";let It=it,pt=!1,pe=null;const je=Rt({},[Oe,nt,it],ex);let De=Rt({},["mi","mo","mn","ms","mtext"]),et=Rt({},["annotation-xml"]);const vt=Rt({},["title","style","font","a","script"]);let gt=null;const Kt=["application/xhtml+xml","text/html"],Je="text/html";let Be=null,ut=null;const ot=r.createElement("form"),Qt=function(ae){return ae instanceof RegExp||ae instanceof Function},sn=function(){let ae=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ut&&ut===ae)){if((!ae||typeof ae!="object")&&(ae={}),ae=ts(ae),gt=Kt.indexOf(ae.PARSER_MEDIA_TYPE)===-1?Je:ae.PARSER_MEDIA_TYPE,Be=gt==="application/xhtml+xml"?ex:Dp,H=ji(ae,"ALLOWED_TAGS")?Rt({},ae.ALLOWED_TAGS,Be):ie,ue=ji(ae,"ALLOWED_ATTR")?Rt({},ae.ALLOWED_ATTR,Be):le,pe=ji(ae,"ALLOWED_NAMESPACES")?Rt({},ae.ALLOWED_NAMESPACES,ex):je,de=ji(ae,"ADD_URI_SAFE_ATTR")?Rt(ts(be),ae.ADD_URI_SAFE_ATTR,Be):be,j=ji(ae,"ADD_DATA_URI_TAGS")?Rt(ts(Z),ae.ADD_DATA_URI_TAGS,Be):Z,$=ji(ae,"FORBID_CONTENTS")?Rt({},ae.FORBID_CONTENTS,Be):C,z=ji(ae,"FORBID_TAGS")?Rt({},ae.FORBID_TAGS,Be):ts({}),V=ji(ae,"FORBID_ATTR")?Rt({},ae.FORBID_ATTR,Be):ts({}),Xe=ji(ae,"USE_PROFILES")?ae.USE_PROFILES:!1,me=ae.ALLOW_ARIA_ATTR!==!1,Re=ae.ALLOW_DATA_ATTR!==!1,Ne=ae.ALLOW_UNKNOWN_PROTOCOLS||!1,he=ae.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Te=ae.SAFE_FOR_TEMPLATES||!1,Ue=ae.SAFE_FOR_XML!==!1,_e=ae.WHOLE_DOCUMENT||!1,B=ae.RETURN_DOM||!1,T=ae.RETURN_DOM_FRAGMENT||!1,k=ae.RETURN_TRUSTED_TYPE||!1,Ae=ae.FORCE_BODY||!1,W=ae.SANITIZE_DOM!==!1,se=ae.SANITIZE_NAMED_PROPS||!1,ye=ae.KEEP_CONTENT!==!1,Me=ae.IN_PLACE||!1,U=ae.ALLOWED_URI_REGEXP||RV,It=ae.NAMESPACE||it,De=ae.MATHML_TEXT_INTEGRATION_POINTS||De,et=ae.HTML_INTEGRATION_POINTS||et,ee=ae.CUSTOM_ELEMENT_HANDLING||{},ae.CUSTOM_ELEMENT_HANDLING&&Qt(ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ee.tagNameCheck=ae.CUSTOM_ELEMENT_HANDLING.tagNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&Qt(ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ee.attributeNameCheck=ae.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),ae.CUSTOM_ELEMENT_HANDLING&&typeof ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ee.allowCustomizedBuiltInElements=ae.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Te&&(Re=!1),T&&(B=!0),Xe&&(H=Rt({},SB),ue=[],Xe.html===!0&&(Rt(H,EB),Rt(ue,wB)),Xe.svg===!0&&(Rt(H,rx),Rt(ue,sx),Rt(ue,vp)),Xe.svgFilters===!0&&(Rt(H,nx),Rt(ue,sx),Rt(ue,vp)),Xe.mathMl===!0&&(Rt(H,ix),Rt(ue,xB),Rt(ue,vp))),ae.ADD_TAGS&&(typeof ae.ADD_TAGS=="function"?fe.tagCheck=ae.ADD_TAGS:(H===ie&&(H=ts(H)),Rt(H,ae.ADD_TAGS,Be))),ae.ADD_ATTR&&(typeof ae.ADD_ATTR=="function"?fe.attributeCheck=ae.ADD_ATTR:(ue===le&&(ue=ts(ue)),Rt(ue,ae.ADD_ATTR,Be))),ae.ADD_URI_SAFE_ATTR&&Rt(de,ae.ADD_URI_SAFE_ATTR,Be),ae.FORBID_CONTENTS&&($===C&&($=ts($)),Rt($,ae.FORBID_CONTENTS,Be)),ae.ADD_FORBID_CONTENTS&&($===C&&($=ts($)),Rt($,ae.ADD_FORBID_CONTENTS,Be)),ye&&(H["#text"]=!0),_e&&Rt(H,["html","head","body"]),H.table&&(Rt(H,["tbody"]),delete z.tbody),ae.TRUSTED_TYPES_POLICY){if(typeof ae.TRUSTED_TYPES_POLICY.createHTML!="function")throw rc('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof ae.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw rc('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');w=ae.TRUSTED_TYPES_POLICY,E=w.createHTML("")}else w===void 0&&(w=p_e(d,i)),w!==null&&typeof E=="string"&&(E=w.createHTML(""));Sn&&Sn(ae),ut=ae}},Ws=Rt({},[...rx,...nx,...t_e]),ws=Rt({},[...ix,...r_e]),wo=function(ae){let qe=S(ae);(!qe||!qe.tagName)&&(qe={namespaceURI:It,tagName:"template"});const Ve=Dp(ae.tagName),Mt=Dp(qe.tagName);return pe[ae.namespaceURI]?ae.namespaceURI===nt?qe.namespaceURI===it?Ve==="svg":qe.namespaceURI===Oe?Ve==="svg"&&(Mt==="annotation-xml"||De[Mt]):!!Ws[Ve]:ae.namespaceURI===Oe?qe.namespaceURI===it?Ve==="math":qe.namespaceURI===nt?Ve==="math"&&et[Mt]:!!ws[Ve]:ae.namespaceURI===it?qe.namespaceURI===nt&&!et[Mt]||qe.namespaceURI===Oe&&!De[Mt]?!1:!ws[Ve]&&(vt[Ve]||!Ws[Ve]):!!(gt==="application/xhtml+xml"&&pe[ae.namespaceURI]):!1},Rn=function(ae){ec(t.removed,{element:ae});try{S(ae).removeChild(ae)}catch{v(ae)}},Bn=function(ae,qe){try{ec(t.removed,{attribute:qe.getAttributeNode(ae),from:qe})}catch{ec(t.removed,{attribute:null,from:qe})}if(qe.removeAttribute(ae),ae==="is")if(B||T)try{Rn(qe)}catch{}else try{qe.setAttribute(ae,"")}catch{}},Js=function(ae){let qe=null,Ve=null;if(Ae)ae="<remove></remove>"+ae;else{const Ft=tx(ae,/^[\r\n\t ]+/);Ve=Ft&&Ft[0]}gt==="application/xhtml+xml"&&It===it&&(ae='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+ae+"</body></html>");const Mt=w?w.createHTML(ae):ae;if(It===it)try{qe=new h().parseFromString(Mt,gt)}catch{}if(!qe||!qe.documentElement){qe=A.createDocument(It,"template",null);try{qe.documentElement.innerHTML=pt?E:Mt}catch{}}const nr=qe.body||qe.documentElement;return ae&&Ve&&nr.insertBefore(r.createTextNode(Ve),nr.childNodes[0]||null),It===it?O.call(qe,_e?"html":"body")[0]:_e?qe.documentElement:nr},Hs=function(ae){return R.call(ae.ownerDocument||ae,ae,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},an=function(ae){return ae instanceof f&&(typeof ae.nodeName!="string"||typeof ae.textContent!="string"||typeof ae.removeChild!="function"||!(ae.attributes instanceof l)||typeof ae.removeAttribute!="function"||typeof ae.setAttribute!="function"||typeof ae.namespaceURI!="string"||typeof ae.insertBefore!="function"||typeof ae.hasChildNodes!="function")},xo=function(ae){return typeof o=="function"&&ae instanceof o};function hn(tt,ae,qe){yp(tt,Ve=>{Ve.call(t,ae,qe,ut)})}const Ks=function(ae){let qe=null;if(hn(P.beforeSanitizeElements,ae,null),an(ae))return Rn(ae),!0;const Ve=Be(ae.nodeName);if(hn(P.uponSanitizeElement,ae,{tagName:Ve,allowedTags:H}),Ue&&ae.hasChildNodes()&&!xo(ae.firstElementChild)&&yn(/<[/\w!]/g,ae.innerHTML)&&yn(/<[/\w!]/g,ae.textContent)||ae.nodeType===ic.progressingInstruction||Ue&&ae.nodeType===ic.comment&&yn(/<[/\w]/g,ae.data))return Rn(ae),!0;if(!(fe.tagCheck instanceof Function&&fe.tagCheck(Ve))&&(!H[Ve]||z[Ve])){if(!z[Ve]&&Mr(Ve)&&(ee.tagNameCheck instanceof RegExp&&yn(ee.tagNameCheck,Ve)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(Ve)))return!1;if(ye&&!$[Ve]){const Mt=S(ae)||ae.parentNode,nr=b(ae)||ae.childNodes;if(nr&&Mt){const Ft=nr.length;for(let Ar=Ft-1;Ar>=0;--Ar){const Lr=y(nr[Ar],!0);Lr.__removalCount=(ae.__removalCount||0)+1,Mt.insertBefore(Lr,_(ae))}}}return Rn(ae),!0}return ae instanceof u&&!wo(ae)||(Ve==="noscript"||Ve==="noembed"||Ve==="noframes")&&yn(/<\/no(script|embed|frames)/i,ae.innerHTML)?(Rn(ae),!0):(Te&&ae.nodeType===ic.text&&(qe=ae.textContent,yp([F,M,K],Mt=>{qe=tc(qe,Mt," ")}),ae.textContent!==qe&&(ec(t.removed,{element:ae.cloneNode()}),ae.textContent=qe)),hn(P.afterSanitizeElements,ae,null),!1)},Gi=function(ae,qe,Ve){if(W&&(qe==="id"||qe==="name")&&(Ve in r||Ve in ot))return!1;if(!(Re&&!V[qe]&&yn(te,qe))){if(!(me&&yn(J,qe))){if(!(fe.attributeCheck instanceof Function&&fe.attributeCheck(qe,ae))){if(!ue[qe]||V[qe]){if(!(Mr(ae)&&(ee.tagNameCheck instanceof RegExp&&yn(ee.tagNameCheck,ae)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(ae))&&(ee.attributeNameCheck instanceof RegExp&&yn(ee.attributeNameCheck,qe)||ee.attributeNameCheck instanceof Function&&ee.attributeNameCheck(qe,ae))||qe==="is"&&ee.allowCustomizedBuiltInElements&&(ee.tagNameCheck instanceof RegExp&&yn(ee.tagNameCheck,Ve)||ee.tagNameCheck instanceof Function&&ee.tagNameCheck(Ve))))return!1}else if(!de[qe]){if(!yn(U,tc(Ve,re,""))){if(!((qe==="src"||qe==="xlink:href"||qe==="href")&&ae!=="script"&&Xbe(Ve,"data:")===0&&j[ae])){if(!(Ne&&!yn(Q,tc(Ve,re,"")))){if(Ve)return!1}}}}}}}return!0},Mr=function(ae){return ae!=="annotation-xml"&&tx(ae,ne)},xt=function(ae){hn(P.beforeSanitizeAttributes,ae,null);const{attributes:qe}=ae;if(!qe||an(ae))return;const Ve={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ue,forceKeepAttr:void 0};let Mt=qe.length;for(;Mt--;){const nr=qe[Mt],{name:Ft,namespaceURI:Ar,value:Lr}=nr,Ci=Be(Ft),xs=Lr;let Pe=Ft==="value"?xs:Zbe(xs);if(Ve.attrName=Ci,Ve.attrValue=Pe,Ve.keepAttr=!0,Ve.forceKeepAttr=void 0,hn(P.uponSanitizeAttribute,ae,Ve),Pe=Ve.attrValue,se&&(Ci==="id"||Ci==="name")&&(Bn(Ft,ae),Pe=ce+Pe),Ue&&yn(/((--!?|])>)|<\/(style|title|textarea)/i,Pe)){Bn(Ft,ae);continue}if(Ci==="attributename"&&tx(Pe,"href")){Bn(Ft,ae);continue}if(Ve.forceKeepAttr)continue;if(!Ve.keepAttr){Bn(Ft,ae);continue}if(!he&&yn(/\/>/i,Pe)){Bn(Ft,ae);continue}Te&&yp([F,M,K],St=>{Pe=tc(Pe,St," ")});const Ke=Be(ae.nodeName);if(!Gi(Ke,Ci,Pe)){Bn(Ft,ae);continue}if(w&&typeof d=="object"&&typeof d.getAttributeType=="function"&&!Ar)switch(d.getAttributeType(Ke,Ci)){case"TrustedHTML":{Pe=w.createHTML(Pe);break}case"TrustedScriptURL":{Pe=w.createScriptURL(Pe);break}}if(Pe!==xs)try{Ar?ae.setAttributeNS(Ar,Ft,Pe):ae.setAttribute(Ft,Pe),an(ae)?Rn(ae):_B(t.removed)}catch{Bn(Ft,ae)}}hn(P.afterSanitizeAttributes,ae,null)},ja=function tt(ae){let qe=null;const Ve=Hs(ae);for(hn(P.beforeSanitizeShadowDOM,ae,null);qe=Ve.nextNode();)hn(P.uponSanitizeShadowNode,qe,null),Ks(qe),xt(qe),qe.content instanceof s&&tt(qe.content);hn(P.afterSanitizeShadowDOM,ae,null)};return t.sanitize=function(tt){let ae=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},qe=null,Ve=null,Mt=null,nr=null;if(pt=!tt,pt&&(tt="<!-->"),typeof tt!="string"&&!xo(tt))if(typeof tt.toString=="function"){if(tt=tt.toString(),typeof tt!="string")throw rc("dirty is not a string, aborting")}else throw rc("toString is not a function");if(!t.isSupported)return tt;if(we||sn(ae),t.removed=[],typeof tt=="string"&&(Me=!1),Me){if(tt.nodeName){const Lr=Be(tt.nodeName);if(!H[Lr]||z[Lr])throw rc("root node is forbidden and cannot be sanitized in-place")}}else if(tt instanceof o)qe=Js("<!---->"),Ve=qe.ownerDocument.importNode(tt,!0),Ve.nodeType===ic.element&&Ve.nodeName==="BODY"||Ve.nodeName==="HTML"?qe=Ve:qe.appendChild(Ve);else{if(!B&&!Te&&!_e&&tt.indexOf("<")===-1)return w&&k?w.createHTML(tt):tt;if(qe=Js(tt),!qe)return B?null:k?E:""}qe&&Ae&&Rn(qe.firstChild);const Ft=Hs(Me?tt:qe);for(;Mt=Ft.nextNode();)Ks(Mt),xt(Mt),Mt.content instanceof s&&ja(Mt.content);if(Me)return tt;if(B){if(T)for(nr=I.call(qe.ownerDocument);qe.firstChild;)nr.appendChild(qe.firstChild);else nr=qe;return(ue.shadowroot||ue.shadowrootmode)&&(nr=D.call(n,nr,!0)),nr}let Ar=_e?qe.outerHTML:qe.innerHTML;return _e&&H["!doctype"]&&qe.ownerDocument&&qe.ownerDocument.doctype&&qe.ownerDocument.doctype.name&&yn(TV,qe.ownerDocument.doctype.name)&&(Ar="<!DOCTYPE "+qe.ownerDocument.doctype.name+`>
|
|
313
|
+
`+Ar),Te&&yp([F,M,K],Lr=>{Ar=tc(Ar,Lr," ")}),w&&k?w.createHTML(Ar):Ar},t.setConfig=function(){let tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};sn(tt),we=!0},t.clearConfig=function(){ut=null,we=!1},t.isValidAttribute=function(tt,ae,qe){ut||sn({});const Ve=Be(tt),Mt=Be(ae);return Gi(Ve,Mt,qe)},t.addHook=function(tt,ae){typeof ae=="function"&&ec(P[tt],ae)},t.removeHook=function(tt,ae){if(ae!==void 0){const qe=Gbe(P[tt],ae);return qe===-1?void 0:Ybe(P[tt],qe,1)[0]}return _B(P[tt])},t.removeHooks=function(tt){P[tt]=[]},t.removeAllHooks=function(){P=OB()},t}var d_e=IV(),ax,CB;function h_e(){if(CB)return ax;CB=1;var e=$s(),t=/[\\^$.*+?()[\]{}|]/g,r=RegExp(t.source);function n(i){return i=e(i),i&&r.test(i)?i.replace(t,"\\$&"):i}return ax=n,ax}var m_e=h_e();const g_e=He.getDefaultExportFromCjs(m_e);var ox,RB;function y_e(){if(RB)return ox;RB=1;var e=Object.prototype,t=e.hasOwnProperty;function r(n,i){return n!=null&&t.call(n,i)}return ox=r,ox}var ux,TB;function v_e(){if(TB)return ux;TB=1;var e=y_e(),t=_8();function r(n,i){return n!=null&&t(n,i,e)}return ux=r,ux}var b_e=v_e();const __e=He.getDefaultExportFromCjs(b_e);var E_e=UU();const S_e=He.getDefaultExportFromCjs(E_e);/*! For license information please see swagger-ui-es-bundle-core.js.LICENSE.txt */var w_e={7:function(e){var t,r=typeof Reflect=="object"?Reflect:null,n=r&&typeof r.apply=="function"?r.apply:function(_,b,S){return Function.prototype.apply.call(_,b,S)};t=r&&typeof r.ownKeys=="function"?r.ownKeys:Object.getOwnPropertySymbols?function(_){return Object.getOwnPropertyNames(_).concat(Object.getOwnPropertySymbols(_))}:function(_){return Object.getOwnPropertyNames(_)};var i=Number.isNaN||function(_){return _!=_};function s(){s.init.call(this)}e.exports=s,e.exports.once=function(_,b){return new Promise((function(S,w){function E(R){_.removeListener(b,A),w(R)}function A(){typeof _.removeListener=="function"&&_.removeListener("error",E),S([].slice.call(arguments))}y(_,b,A,{once:!0}),b!=="error"&&(function(I,O,D){typeof I.on=="function"&&y(I,"error",O,D)})(_,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,_,b,S){var w,E,A;if(o(b),(E=v._events)===void 0?(E=v._events=Object.create(null),v._eventsCount=0):(E.newListener!==void 0&&(v.emit("newListener",_,b.listener?b.listener:b),E=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),(w=u(v))>0&&A.length>w&&!A.warned){A.warned=!0;var R=new Error("Possible EventEmitter memory leak detected. "+A.length+" "+String(_)+" listeners added. Use emitter.setMaxListeners() to increase limit");R.name="MaxListenersExceededWarning",R.emitter=v,R.type=_,R.count=A.length,(function(O){console&&console.warn&&console.warn(O)})(R)}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,_,b){var S={fired:!1,wrapFn:void 0,target:v,type:_,listener:b},w=l.bind(S);return w.listener=b,S.wrapFn=w,w}function h(v,_,b){var S=v._events;if(S===void 0)return[];var w=S[_];return w===void 0?[]:typeof w=="function"?b?[w.listener||w]:[w]:b?(function(A){for(var R=new Array(A.length),I=0;I<R.length;++I)R[I]=A[I].listener||A[I];return R})(w):g(w,w.length)}function d(v){var _=this._events;if(_!==void 0){var b=_[v];if(typeof b=="function")return 1;if(b!==void 0)return b.length}return 0}function g(v,_){for(var b=new Array(_),S=0;S<_;++S)b[S]=v[S];return b}function y(v,_,b,S){if(typeof v.on=="function")S.once?v.once(_,b):v.on(_,b);else{if(typeof v.addEventListener!="function")throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof v);v.addEventListener(_,(function w(E){S.once&&v.removeEventListener(_,w),b(E)}))}}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(_){if(typeof _!="number"||_<0||i(_))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+_+".");return this._maxListeners=_,this},s.prototype.getMaxListeners=function(){return u(this)},s.prototype.emit=function(_){for(var b=[],S=1;S<arguments.length;S++)b.push(arguments[S]);var w=_==="error",E=this._events;if(E!==void 0)w=w&&E.error===void 0;else if(!w)return!1;if(w){var A;if(b.length>0&&(A=b[0]),A instanceof Error)throw A;var R=new Error("Unhandled error."+(A?" ("+A.message+")":""));throw R.context=A,R}var I=E[_];if(I===void 0)return!1;if(typeof I=="function")n(I,this,b);else{var O=I.length,D=g(I,O);for(S=0;S<O;++S)n(D[S],this,b)}return!0},s.prototype.addListener=function(_,b){return c(this,_,b,!1)},s.prototype.on=s.prototype.addListener,s.prototype.prependListener=function(_,b){return c(this,_,b,!0)},s.prototype.once=function(_,b){return o(b),this.on(_,f(this,_,b)),this},s.prototype.prependOnceListener=function(_,b){return o(b),this.prependListener(_,f(this,_,b)),this},s.prototype.removeListener=function(_,b){var S,w,E,A,R;if(o(b),(w=this._events)===void 0)return this;if((S=w[_])===void 0)return this;if(S===b||S.listener===b)--this._eventsCount==0?this._events=Object.create(null):(delete w[_],w.removeListener&&this.emit("removeListener",_,S.listener||b));else if(typeof S!="function"){for(E=-1,A=S.length-1;A>=0;A--)if(S[A]===b||S[A].listener===b){R=S[A].listener,E=A;break}if(E<0)return this;E===0?S.shift():(function(O,D){for(;D+1<O.length;D++)O[D]=O[D+1];O.pop()})(S,E),S.length===1&&(w[_]=S[0]),w.removeListener!==void 0&&this.emit("removeListener",_,R||b)}return this},s.prototype.off=s.prototype.removeListener,s.prototype.removeAllListeners=function(_){var b,S,w;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[_]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete S[_]),this;if(arguments.length===0){var E,A=Object.keys(S);for(w=0;w<A.length;++w)(E=A[w])!=="removeListener"&&this.removeAllListeners(E);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(b=S[_])=="function")this.removeListener(_,b);else if(b!==void 0)for(w=b.length-1;w>=0;w--)this.removeListener(_,b[w]);return this},s.prototype.listeners=function(_){return h(this,_,!0)},s.prototype.rawListeners=function(_){return h(this,_,!1)},s.listenerCount=function(v,_){return typeof v.listenerCount=="function"?v.listenerCount(_):d.call(v,_)},s.prototype.listenerCount=d,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,d){return f.substr(0,h.length)===h})(s,"not ")?(o="must not be",s=s.replace(/^not /,"")):o="must be",(function(f,h,d){return(d===void 0||d>f.length)&&(d=f.length),f.substring(d-h.length,d)===h})(i," argument"))u="The ".concat(i," ").concat(o," ").concat(n(s,"type"));else{var c=(function(f,h,d){return typeof d!="number"&&(d=0),!(d+h.length>f.length)&&f.indexOf(h,d)!==-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,_){return _^y&(v^_)}function l(y,v,_){return y&v|_&(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 d(y){return(y>>>7|y<<25)^(y>>>18|y<<14)^y>>>3}function g(y){return(y>>>17|y<<15)^(y>>>19|y<<13)^y>>>10}n(u,i),u.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},u.prototype._update=function(y){for(var v=this._w,_=0|this._a,b=0|this._b,S=0|this._c,w=0|this._d,E=0|this._e,A=0|this._f,R=0|this._g,I=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]+d(v[O-15])+v[O-16]|0;for(var D=0;D<64;++D){var P=I+h(E)+c(E,A,R)+a[D]+v[D]|0,F=f(_)+l(_,b,S)|0;I=R,R=A,A=E,E=w+P|0,w=S,S=b,b=_,_=P+F|0}this._a=_+this._a|0,this._b=b+this._b|0,this._c=S+this._c|0,this._d=w+this._d|0,this._e=E+this._e|0,this._f=A+this._f|0,this._g=R+this._g|0,this._h=I+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,w){return new Array(w||0).join(S||"")})(c,l=l||0),d=u;if(typeof u=="object"&&(d=u[f=Object.keys(u)[0]])&&d._elem)return d._elem.name=f,d._elem.icount=l,d._elem.indent=c,d._elem.indents=h,d._elem.interrupt=d,d._elem;var g,y=[],v=[];function _(b){Object.keys(b).forEach((function(S){y.push((function(E,A){return E+'="'+i(A)+'"'})(S,b[S]))}))}switch(typeof d){case"object":if(d===null)break;d._attr&&_(d._attr),d._cdata&&v.push(("<![CDATA["+d._cdata).replace(/\]\]>/g,"]]]]><![CDATA[>")+"]]>"),d.forEach&&(g=!1,v.push(""),d.forEach((function(b){typeof b=="object"?Object.keys(b)[0]=="_attr"?_(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(d))}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(d(g))return;o(u,g)}}u(!1,(f>1?c.indents:"")+(c.name?"</"+c.name+">":"")+(c.indent&&!l?`
|
|
314
|
+
`:"")),l&&l()}function d(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?`
|
|
315
|
+
`:"")),!f)return u(!1,c.indent?`
|
|
316
|
+
`:"");d(c)||h()}e.exports=function(c,l){typeof l!="object"&&(l={indent:l});var f=l.stream?new s:null,h="",d=!1,g=l.indent?l.indent===!0?" ":l.indent:"",y=!0;function v(w){y?n.nextTick(w):w()}function _(w,E){if(E!==void 0&&(h+=E),w&&!d&&(f=f||new s,d=!0),w&&d){var A=h;v((function(){f.emit("data",A)})),h=""}}function b(w,E){o(_,a(w,g,g?1:0),E)}function S(){if(f){var w=h;v((function(){f.emit("data",w),f.emit("end"),f.readable=!1,f.emit("close")}))}}return v((function(){y=!1})),l.declaration&&(function(E){var A={version:"1.0",encoding:E.encoding||"UTF-8"};E.standalone&&(A.standalone=E.standalone),b({"?xml":{_attr:A}}),h=h.replace("/>","?>")})(l.declaration),c&&c.forEach?c.forEach((function(w,E){var A;E+1===c.length&&(A=S),b(w,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(_){var b=(function(w){if(!w)return"utf8";for(var E;;)switch(w){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return w;default:if(E)return;w=(""+w).toLowerCase(),E=!0}})(_);if(typeof b!="string"&&(n.isEncoding===i||!i(_)))throw new Error("Unknown encoding: "+_);return b||_})(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=d)}this.lastNeed=0,this.lastTotal=0,this.lastChar=n.allocUnsafe(y)}function a(g){return g<=127?0:g>>5==6?2:g>>4==14?3:g>>3==30?4:g>>6==2?-1:-2}function o(g){var y=this.lastTotal-this.lastNeed,v=(function(b,S,w){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 _=v.charCodeAt(v.length-1);if(_>=55296&&_<=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 d(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 _=(function(w,E,A){var R=E.length-1;if(R<A)return 0;var I=a(E[R]);return I>=0?(I>0&&(w.lastNeed=I-1),I):--R<A||I===-2?0:(I=a(E[R]),I>=0?(I>0&&(w.lastNeed=I-2),I):--R<A||I===-2?0:(I=a(E[R]),I>=0?(I>0&&(I===2?I=0:w.lastNeed=I-3),I):0))})(this,y,v);if(!this.lastNeed)return y.toString("utf8",v);this.lastTotal=_;var b=y.length-(_-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.
|
|
317
|
+
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(w){var E=!1;return function(){if(!E){E=!0;for(var A=arguments.length,R=new Array(A),I=0;I<A;I++)R[I]=arguments[I];w.apply(this,R)}}})(u||i);var c=o.readable||o.readable!==!1&&a.readable,l=o.writable||o.writable!==!1&&a.writable,f=function(){a.writable||d()},h=a._writableState&&a._writableState.finished,d=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(w){u.call(a,w)},_=function(){var w;return c&&!g?(a._readableState&&a._readableState.ended||(w=new n),u.call(a,w)):l&&!h?(a._writableState&&a._writableState.ended||(w=new n),u.call(a,w)):void 0},b=function(){a.req.on("finish",d)};return(function(w){return w.setHeader&&typeof w.abort=="function"})(a)?(a.on("complete",d),a.on("abort",_),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",d),o.error!==!1&&a.on("error",v),a.on("close",_),function(){a.removeListener("complete",d),a.removeListener("abort",_),a.removeListener("request",b),a.req&&a.req.removeListener("finish",d),a.removeListener("end",f),a.removeListener("close",f),a.removeListener("finish",d),a.removeListener("end",y),a.removeListener("error",v),a.removeListener("close",_)}}},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(T){return+T!=T&&(T=0),u.alloc(+T)},t.INSPECT_MAX_BYTES=50;const a=2147483647;function o(B){if(B>a)throw new RangeError('The value "'+B+'" is invalid for option "size"');const T=new Uint8Array(B);return Object.setPrototypeOf(T,u.prototype),T}function u(B,T,k){if(typeof B=="number"){if(typeof T=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return f(B)}return c(B,T,k)}function c(B,T,k){if(typeof B=="string")return(function(ye,Me){if(typeof Me=="string"&&Me!==""||(Me="utf8"),!u.isEncoding(Me))throw new TypeError("Unknown encoding: "+Me);const Xe=0|y(ye,Me);let $=o(Xe);const C=$.write(ye,Me);return C!==Xe&&($=$.slice(0,C)),$})(B,T);if(ArrayBuffer.isView(B))return(function(ye){if(Te(ye,Uint8Array)){const Me=new Uint8Array(ye);return d(Me.buffer,Me.byteOffset,Me.byteLength)}return h(ye)})(B);if(B==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B);if(Te(B,ArrayBuffer)||B&&Te(B.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Te(B,SharedArrayBuffer)||B&&Te(B.buffer,SharedArrayBuffer)))return d(B,T,k);if(typeof B=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const W=B.valueOf&&B.valueOf();if(W!=null&&W!==B)return u.from(W,T,k);const se=(function(ye){if(u.isBuffer(ye)){const Me=0|g(ye.length),Xe=o(Me);return Xe.length===0||ye.copy(Xe,0,0,Me),Xe}if(ye.length!==void 0)return typeof ye.length!="number"||Ue(ye.length)?o(0):h(ye);if(ye.type==="Buffer"&&Array.isArray(ye.data))return h(ye.data)})(B);if(se)return se;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof B[Symbol.toPrimitive]=="function")return u.from(B[Symbol.toPrimitive]("string"),T,k);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof B)}function l(B){if(typeof B!="number")throw new TypeError('"size" argument must be of type number');if(B<0)throw new RangeError('The value "'+B+'" is invalid for option "size"')}function f(B){return l(B),o(B<0?0:0|g(B))}function h(B){const T=B.length<0?0:0|g(B.length),k=o(T);for(let W=0;W<T;W+=1)k[W]=255&B[W];return k}function d(B,T,k){if(T<0||B.byteLength<T)throw new RangeError('"offset" is outside of buffer bounds');if(B.byteLength<T+(k||0))throw new RangeError('"length" is outside of buffer bounds');let W;return W=T===void 0&&k===void 0?new Uint8Array(B):k===void 0?new Uint8Array(B,T):new Uint8Array(B,T,k),Object.setPrototypeOf(W,u.prototype),W}function g(B){if(B>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return 0|B}function y(B,T){if(u.isBuffer(B))return B.length;if(ArrayBuffer.isView(B)||Te(B,ArrayBuffer))return B.byteLength;if(typeof B!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof B);const k=B.length,W=arguments.length>2&&arguments[2]===!0;if(!W&&k===0)return 0;let se=!1;for(;;)switch(T){case"ascii":case"latin1":case"binary":return k;case"utf8":case"utf-8":return Re(B).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*k;case"hex":return k>>>1;case"base64":return Ne(B).length;default:if(se)return W?-1:Re(B).length;T=(""+T).toLowerCase(),se=!0}}function v(B,T,k){let W=!1;if((T===void 0||T<0)&&(T=0),T>this.length||((k===void 0||k>this.length)&&(k=this.length),k<=0)||(k>>>=0)<=(T>>>=0))return"";for(B||(B="utf8");;)switch(B){case"hex":return K(this,T,k);case"utf8":case"utf-8":return D(this,T,k);case"ascii":return F(this,T,k);case"latin1":case"binary":return M(this,T,k);case"base64":return O(this,T,k);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,T,k);default:if(W)throw new TypeError("Unknown encoding: "+B);B=(B+"").toLowerCase(),W=!0}}function _(B,T,k){const W=B[T];B[T]=B[k],B[k]=W}function b(B,T,k,W,se){if(B.length===0)return-1;if(typeof k=="string"?(W=k,k=0):k>2147483647?k=2147483647:k<-2147483648&&(k=-2147483648),Ue(k=+k)&&(k=se?0:B.length-1),k<0&&(k=B.length+k),k>=B.length){if(se)return-1;k=B.length-1}else if(k<0){if(!se)return-1;k=0}if(typeof T=="string"&&(T=u.from(T,W)),u.isBuffer(T))return T.length===0?-1:S(B,T,k,W,se);if(typeof T=="number")return T&=255,typeof Uint8Array.prototype.indexOf=="function"?se?Uint8Array.prototype.indexOf.call(B,T,k):Uint8Array.prototype.lastIndexOf.call(B,T,k):S(B,[T],k,W,se);throw new TypeError("val must be string, number or Buffer")}function S(B,T,k,W,se){let ce,ye=1,Me=B.length,Xe=T.length;if(W!==void 0&&((W=String(W).toLowerCase())==="ucs2"||W==="ucs-2"||W==="utf16le"||W==="utf-16le")){if(B.length<2||T.length<2)return-1;ye=2,Me/=2,Xe/=2,k/=2}function $(C,j){return ye===1?C[j]:C.readUInt16BE(j*ye)}if(se){let C=-1;for(ce=k;ce<Me;ce++)if($(B,ce)===$(T,C===-1?0:ce-C)){if(C===-1&&(C=ce),ce-C+1===Xe)return C*ye}else C!==-1&&(ce-=ce-C),C=-1}else for(k+Xe>Me&&(k=Me-Xe),ce=k;ce>=0;ce--){let C=!0;for(let j=0;j<Xe;j++)if($(B,ce+j)!==$(T,j)){C=!1;break}if(C)return ce}return-1}function w(B,T,k,W){k=Number(k)||0;const se=B.length-k;W?(W=Number(W))>se&&(W=se):W=se;const ce=T.length;let ye;for(W>ce/2&&(W=ce/2),ye=0;ye<W;++ye){const Me=parseInt(T.substr(2*ye,2),16);if(Ue(Me))return ye;B[k+ye]=Me}return ye}function E(B,T,k,W){return he(Re(T,B.length-k),B,k,W)}function A(B,T,k,W){return he((function(ce){const ye=[];for(let Me=0;Me<ce.length;++Me)ye.push(255&ce.charCodeAt(Me));return ye})(T),B,k,W)}function R(B,T,k,W){return he(Ne(T),B,k,W)}function I(B,T,k,W){return he((function(ce,ye){let Me,Xe,$;const C=[];for(let j=0;j<ce.length&&!((ye-=2)<0);++j)Me=ce.charCodeAt(j),Xe=Me>>8,$=Me%256,C.push($),C.push(Xe);return C})(T,B.length-k),B,k,W)}function O(B,T,k){return T===0&&k===B.length?n.fromByteArray(B):n.fromByteArray(B.slice(T,k))}function D(B,T,k){k=Math.min(B.length,k);const W=[];let se=T;for(;se<k;){const ce=B[se];let ye=null,Me=ce>239?4:ce>223?3:ce>191?2:1;if(se+Me<=k){let Xe,$,C,j;switch(Me){case 1:ce<128&&(ye=ce);break;case 2:Xe=B[se+1],(192&Xe)==128&&(j=(31&ce)<<6|63&Xe,j>127&&(ye=j));break;case 3:Xe=B[se+1],$=B[se+2],(192&Xe)==128&&(192&$)==128&&(j=(15&ce)<<12|(63&Xe)<<6|63&$,j>2047&&(j<55296||j>57343)&&(ye=j));break;case 4:Xe=B[se+1],$=B[se+2],C=B[se+3],(192&Xe)==128&&(192&$)==128&&(192&C)==128&&(j=(15&ce)<<18|(63&Xe)<<12|(63&$)<<6|63&C,j>65535&&j<1114112&&(ye=j))}}ye===null?(ye=65533,Me=1):ye>65535&&(ye-=65536,W.push(ye>>>10&1023|55296),ye=56320|1023&ye),W.push(ye),se+=Me}return(function(ye){const Me=ye.length;if(Me<=P)return String.fromCharCode.apply(String,ye);let Xe="",$=0;for(;$<Me;)Xe+=String.fromCharCode.apply(String,ye.slice($,$+=P));return Xe})(W)}t.kMaxLength=a,u.TYPED_ARRAY_SUPPORT=(function(){try{const T=new Uint8Array(1),k={foo:function(){return 42}};return Object.setPrototypeOf(k,Uint8Array.prototype),Object.setPrototypeOf(T,k),T.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(B,T,k){return c(B,T,k)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array),u.alloc=function(B,T,k){return(function(se,ce,ye){return l(se),se<=0?o(se):ce!==void 0?typeof ye=="string"?o(se).fill(ce,ye):o(se).fill(ce):o(se)})(B,T,k)},u.allocUnsafe=function(B){return f(B)},u.allocUnsafeSlow=function(B){return f(B)},u.isBuffer=function(T){return T!=null&&T._isBuffer===!0&&T!==u.prototype},u.compare=function(T,k){if(Te(T,Uint8Array)&&(T=u.from(T,T.offset,T.byteLength)),Te(k,Uint8Array)&&(k=u.from(k,k.offset,k.byteLength)),!u.isBuffer(T)||!u.isBuffer(k))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(T===k)return 0;let W=T.length,se=k.length;for(let ce=0,ye=Math.min(W,se);ce<ye;++ce)if(T[ce]!==k[ce]){W=T[ce],se=k[ce];break}return W<se?-1:se<W?1:0},u.isEncoding=function(T){switch(String(T).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(T,k){if(!Array.isArray(T))throw new TypeError('"list" argument must be an Array of Buffers');if(T.length===0)return u.alloc(0);let W;if(k===void 0)for(k=0,W=0;W<T.length;++W)k+=T[W].length;const se=u.allocUnsafe(k);let ce=0;for(W=0;W<T.length;++W){let ye=T[W];if(Te(ye,Uint8Array))ce+ye.length>se.length?(u.isBuffer(ye)||(ye=u.from(ye)),ye.copy(se,ce)):Uint8Array.prototype.set.call(se,ye,ce);else{if(!u.isBuffer(ye))throw new TypeError('"list" argument must be an Array of Buffers');ye.copy(se,ce)}ce+=ye.length}return se},u.byteLength=y,u.prototype._isBuffer=!0,u.prototype.swap16=function(){const T=this.length;if(T%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let k=0;k<T;k+=2)_(this,k,k+1);return this},u.prototype.swap32=function(){const T=this.length;if(T%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let k=0;k<T;k+=4)_(this,k,k+3),_(this,k+1,k+2);return this},u.prototype.swap64=function(){const T=this.length;if(T%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let k=0;k<T;k+=8)_(this,k,k+7),_(this,k+1,k+6),_(this,k+2,k+5),_(this,k+3,k+4);return this},u.prototype.toString=function(){const T=this.length;return T===0?"":arguments.length===0?D(this,0,T):v.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(T){if(!u.isBuffer(T))throw new TypeError("Argument must be a Buffer");return this===T||u.compare(this,T)===0},u.prototype.inspect=function(){let T="";const k=t.INSPECT_MAX_BYTES;return T=this.toString("hex",0,k).replace(/(.{2})/g,"$1 ").trim(),this.length>k&&(T+=" ... "),"<Buffer "+T+">"},s&&(u.prototype[s]=u.prototype.inspect),u.prototype.compare=function(T,k,W,se,ce){if(Te(T,Uint8Array)&&(T=u.from(T,T.offset,T.byteLength)),!u.isBuffer(T))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof T);if(k===void 0&&(k=0),W===void 0&&(W=T?T.length:0),se===void 0&&(se=0),ce===void 0&&(ce=this.length),k<0||W>T.length||se<0||ce>this.length)throw new RangeError("out of range index");if(se>=ce&&k>=W)return 0;if(se>=ce)return-1;if(k>=W)return 1;if(this===T)return 0;let ye=(ce>>>=0)-(se>>>=0),Me=(W>>>=0)-(k>>>=0);const Xe=Math.min(ye,Me),$=this.slice(se,ce),C=T.slice(k,W);for(let j=0;j<Xe;++j)if($[j]!==C[j]){ye=$[j],Me=C[j];break}return ye<Me?-1:Me<ye?1:0},u.prototype.includes=function(T,k,W){return this.indexOf(T,k,W)!==-1},u.prototype.indexOf=function(T,k,W){return b(this,T,k,W,!0)},u.prototype.lastIndexOf=function(T,k,W){return b(this,T,k,W,!1)},u.prototype.write=function(T,k,W,se){if(k===void 0)se="utf8",W=this.length,k=0;else if(W===void 0&&typeof k=="string")se=k,W=this.length,k=0;else{if(!isFinite(k))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");k>>>=0,isFinite(W)?(W>>>=0,se===void 0&&(se="utf8")):(se=W,W=void 0)}const ce=this.length-k;if((W===void 0||W>ce)&&(W=ce),T.length>0&&(W<0||k<0)||k>this.length)throw new RangeError("Attempt to write outside buffer bounds");se||(se="utf8");let ye=!1;for(;;)switch(se){case"hex":return w(this,T,k,W);case"utf8":case"utf-8":return E(this,T,k,W);case"ascii":case"latin1":case"binary":return A(this,T,k,W);case"base64":return R(this,T,k,W);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,T,k,W);default:if(ye)throw new TypeError("Unknown encoding: "+se);se=(""+se).toLowerCase(),ye=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const P=4096;function F(B,T,k){let W="";k=Math.min(B.length,k);for(let se=T;se<k;++se)W+=String.fromCharCode(127&B[se]);return W}function M(B,T,k){let W="";k=Math.min(B.length,k);for(let se=T;se<k;++se)W+=String.fromCharCode(B[se]);return W}function K(B,T,k){const W=B.length;(!T||T<0)&&(T=0),(!k||k<0||k>W)&&(k=W);let se="";for(let ce=T;ce<k;++ce)se+=_e[B[ce]];return se}function te(B,T,k){const W=B.slice(T,k);let se="";for(let ce=0;ce<W.length-1;ce+=2)se+=String.fromCharCode(W[ce]+256*W[ce+1]);return se}function J(B,T,k){if(B%1!=0||B<0)throw new RangeError("offset is not uint");if(B+T>k)throw new RangeError("Trying to access beyond buffer length")}function Q(B,T,k,W,se,ce){if(!u.isBuffer(B))throw new TypeError('"buffer" argument must be a Buffer instance');if(T>se||T<ce)throw new RangeError('"value" argument is out of bounds');if(k+W>B.length)throw new RangeError("Index out of range")}function re(B,T,k,W,se){z(T,W,se,B,k,7);let ce=Number(T&BigInt(4294967295));B[k++]=ce,ce>>=8,B[k++]=ce,ce>>=8,B[k++]=ce,ce>>=8,B[k++]=ce;let ye=Number(T>>BigInt(32)&BigInt(4294967295));return B[k++]=ye,ye>>=8,B[k++]=ye,ye>>=8,B[k++]=ye,ye>>=8,B[k++]=ye,k}function ne(B,T,k,W,se){z(T,W,se,B,k,7);let ce=Number(T&BigInt(4294967295));B[k+7]=ce,ce>>=8,B[k+6]=ce,ce>>=8,B[k+5]=ce,ce>>=8,B[k+4]=ce;let ye=Number(T>>BigInt(32)&BigInt(4294967295));return B[k+3]=ye,ye>>=8,B[k+2]=ye,ye>>=8,B[k+1]=ye,ye>>=8,B[k]=ye,k+8}function U(B,T,k,W,se,ce){if(k+W>B.length)throw new RangeError("Index out of range");if(k<0)throw new RangeError("Index out of range")}function H(B,T,k,W,se){return T=+T,k>>>=0,se||U(B,0,k,4),i.write(B,T,k,W,23,4),k+4}function ie(B,T,k,W,se){return T=+T,k>>>=0,se||U(B,0,k,8),i.write(B,T,k,W,52,8),k+8}u.prototype.slice=function(T,k){const W=this.length;(T=~~T)<0?(T+=W)<0&&(T=0):T>W&&(T=W),(k=k===void 0?W:~~k)<0?(k+=W)<0&&(k=0):k>W&&(k=W),k<T&&(k=T);const se=this.subarray(T,k);return Object.setPrototypeOf(se,u.prototype),se},u.prototype.readUintLE=u.prototype.readUIntLE=function(T,k,W){T>>>=0,k>>>=0,W||J(T,k,this.length);let se=this[T],ce=1,ye=0;for(;++ye<k&&(ce*=256);)se+=this[T+ye]*ce;return se},u.prototype.readUintBE=u.prototype.readUIntBE=function(T,k,W){T>>>=0,k>>>=0,W||J(T,k,this.length);let se=this[T+--k],ce=1;for(;k>0&&(ce*=256);)se+=this[T+--k]*ce;return se},u.prototype.readUint8=u.prototype.readUInt8=function(T,k){return T>>>=0,k||J(T,1,this.length),this[T]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(T,k){return T>>>=0,k||J(T,2,this.length),this[T]|this[T+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(T,k){return T>>>=0,k||J(T,2,this.length),this[T]<<8|this[T+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(T,k){return T>>>=0,k||J(T,4,this.length),(this[T]|this[T+1]<<8|this[T+2]<<16)+16777216*this[T+3]},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(T,k){return T>>>=0,k||J(T,4,this.length),16777216*this[T]+(this[T+1]<<16|this[T+2]<<8|this[T+3])},u.prototype.readBigUInt64LE=we((function(T){V(T>>>=0,"offset");const k=this[T],W=this[T+7];k!==void 0&&W!==void 0||fe(T,this.length-8);const se=k+256*this[++T]+65536*this[++T]+this[++T]*2**24,ce=this[++T]+256*this[++T]+65536*this[++T]+W*2**24;return BigInt(se)+(BigInt(ce)<<BigInt(32))})),u.prototype.readBigUInt64BE=we((function(T){V(T>>>=0,"offset");const k=this[T],W=this[T+7];k!==void 0&&W!==void 0||fe(T,this.length-8);const se=k*2**24+65536*this[++T]+256*this[++T]+this[++T],ce=this[++T]*2**24+65536*this[++T]+256*this[++T]+W;return(BigInt(se)<<BigInt(32))+BigInt(ce)})),u.prototype.readIntLE=function(T,k,W){T>>>=0,k>>>=0,W||J(T,k,this.length);let se=this[T],ce=1,ye=0;for(;++ye<k&&(ce*=256);)se+=this[T+ye]*ce;return ce*=128,se>=ce&&(se-=Math.pow(2,8*k)),se},u.prototype.readIntBE=function(T,k,W){T>>>=0,k>>>=0,W||J(T,k,this.length);let se=k,ce=1,ye=this[T+--se];for(;se>0&&(ce*=256);)ye+=this[T+--se]*ce;return ce*=128,ye>=ce&&(ye-=Math.pow(2,8*k)),ye},u.prototype.readInt8=function(T,k){return T>>>=0,k||J(T,1,this.length),128&this[T]?-1*(255-this[T]+1):this[T]},u.prototype.readInt16LE=function(T,k){T>>>=0,k||J(T,2,this.length);const W=this[T]|this[T+1]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt16BE=function(T,k){T>>>=0,k||J(T,2,this.length);const W=this[T+1]|this[T]<<8;return 32768&W?4294901760|W:W},u.prototype.readInt32LE=function(T,k){return T>>>=0,k||J(T,4,this.length),this[T]|this[T+1]<<8|this[T+2]<<16|this[T+3]<<24},u.prototype.readInt32BE=function(T,k){return T>>>=0,k||J(T,4,this.length),this[T]<<24|this[T+1]<<16|this[T+2]<<8|this[T+3]},u.prototype.readBigInt64LE=we((function(T){V(T>>>=0,"offset");const k=this[T],W=this[T+7];k!==void 0&&W!==void 0||fe(T,this.length-8);const se=this[T+4]+256*this[T+5]+65536*this[T+6]+(W<<24);return(BigInt(se)<<BigInt(32))+BigInt(k+256*this[++T]+65536*this[++T]+this[++T]*2**24)})),u.prototype.readBigInt64BE=we((function(T){V(T>>>=0,"offset");const k=this[T],W=this[T+7];k!==void 0&&W!==void 0||fe(T,this.length-8);const se=(k<<24)+65536*this[++T]+256*this[++T]+this[++T];return(BigInt(se)<<BigInt(32))+BigInt(this[++T]*2**24+65536*this[++T]+256*this[++T]+W)})),u.prototype.readFloatLE=function(T,k){return T>>>=0,k||J(T,4,this.length),i.read(this,T,!0,23,4)},u.prototype.readFloatBE=function(T,k){return T>>>=0,k||J(T,4,this.length),i.read(this,T,!1,23,4)},u.prototype.readDoubleLE=function(T,k){return T>>>=0,k||J(T,8,this.length),i.read(this,T,!0,52,8)},u.prototype.readDoubleBE=function(T,k){return T>>>=0,k||J(T,8,this.length),i.read(this,T,!1,52,8)},u.prototype.writeUintLE=u.prototype.writeUIntLE=function(T,k,W,se){T=+T,k>>>=0,W>>>=0,!se&&Q(this,T,k,W,Math.pow(2,8*W)-1,0);let ce=1,ye=0;for(this[k]=255&T;++ye<W&&(ce*=256);)this[k+ye]=T/ce&255;return k+W},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(T,k,W,se){T=+T,k>>>=0,W>>>=0,!se&&Q(this,T,k,W,Math.pow(2,8*W)-1,0);let ce=W-1,ye=1;for(this[k+ce]=255&T;--ce>=0&&(ye*=256);)this[k+ce]=T/ye&255;return k+W},u.prototype.writeUint8=u.prototype.writeUInt8=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,1,255,0),this[k]=255&T,k+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,2,65535,0),this[k]=255&T,this[k+1]=T>>>8,k+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,2,65535,0),this[k]=T>>>8,this[k+1]=255&T,k+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,4,4294967295,0),this[k+3]=T>>>24,this[k+2]=T>>>16,this[k+1]=T>>>8,this[k]=255&T,k+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,4,4294967295,0),this[k]=T>>>24,this[k+1]=T>>>16,this[k+2]=T>>>8,this[k+3]=255&T,k+4},u.prototype.writeBigUInt64LE=we((function(T,k=0){return re(this,T,k,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeBigUInt64BE=we((function(T,k=0){return ne(this,T,k,BigInt(0),BigInt("0xffffffffffffffff"))})),u.prototype.writeIntLE=function(T,k,W,se){if(T=+T,k>>>=0,!se){const Xe=Math.pow(2,8*W-1);Q(this,T,k,W,Xe-1,-Xe)}let ce=0,ye=1,Me=0;for(this[k]=255&T;++ce<W&&(ye*=256);)T<0&&Me===0&&this[k+ce-1]!==0&&(Me=1),this[k+ce]=(T/ye|0)-Me&255;return k+W},u.prototype.writeIntBE=function(T,k,W,se){if(T=+T,k>>>=0,!se){const Xe=Math.pow(2,8*W-1);Q(this,T,k,W,Xe-1,-Xe)}let ce=W-1,ye=1,Me=0;for(this[k+ce]=255&T;--ce>=0&&(ye*=256);)T<0&&Me===0&&this[k+ce+1]!==0&&(Me=1),this[k+ce]=(T/ye|0)-Me&255;return k+W},u.prototype.writeInt8=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,1,127,-128),T<0&&(T=255+T+1),this[k]=255&T,k+1},u.prototype.writeInt16LE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,2,32767,-32768),this[k]=255&T,this[k+1]=T>>>8,k+2},u.prototype.writeInt16BE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,2,32767,-32768),this[k]=T>>>8,this[k+1]=255&T,k+2},u.prototype.writeInt32LE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,4,2147483647,-2147483648),this[k]=255&T,this[k+1]=T>>>8,this[k+2]=T>>>16,this[k+3]=T>>>24,k+4},u.prototype.writeInt32BE=function(T,k,W){return T=+T,k>>>=0,W||Q(this,T,k,4,2147483647,-2147483648),T<0&&(T=4294967295+T+1),this[k]=T>>>24,this[k+1]=T>>>16,this[k+2]=T>>>8,this[k+3]=255&T,k+4},u.prototype.writeBigInt64LE=we((function(T,k=0){return re(this,T,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeBigInt64BE=we((function(T,k=0){return ne(this,T,k,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),u.prototype.writeFloatLE=function(T,k,W){return H(this,T,k,!0,W)},u.prototype.writeFloatBE=function(T,k,W){return H(this,T,k,!1,W)},u.prototype.writeDoubleLE=function(T,k,W){return ie(this,T,k,!0,W)},u.prototype.writeDoubleBE=function(T,k,W){return ie(this,T,k,!1,W)},u.prototype.copy=function(T,k,W,se){if(!u.isBuffer(T))throw new TypeError("argument should be a Buffer");if(W||(W=0),se||se===0||(se=this.length),k>=T.length&&(k=T.length),k||(k=0),se>0&&se<W&&(se=W),se===W||T.length===0||this.length===0)return 0;if(k<0)throw new RangeError("targetStart out of bounds");if(W<0||W>=this.length)throw new RangeError("Index out of range");if(se<0)throw new RangeError("sourceEnd out of bounds");se>this.length&&(se=this.length),T.length-k<se-W&&(se=T.length-k+W);const ce=se-W;return this===T&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(k,W,se):Uint8Array.prototype.set.call(T,this.subarray(W,se),k),ce},u.prototype.fill=function(T,k,W,se){if(typeof T=="string"){if(typeof k=="string"?(se=k,k=0,W=this.length):typeof W=="string"&&(se=W,W=this.length),se!==void 0&&typeof se!="string")throw new TypeError("encoding must be a string");if(typeof se=="string"&&!u.isEncoding(se))throw new TypeError("Unknown encoding: "+se);if(T.length===1){const ye=T.charCodeAt(0);(se==="utf8"&&ye<128||se==="latin1")&&(T=ye)}}else typeof T=="number"?T&=255:typeof T=="boolean"&&(T=Number(T));if(k<0||this.length<k||this.length<W)throw new RangeError("Out of range index");if(W<=k)return this;let ce;if(k>>>=0,W=W===void 0?this.length:W>>>0,T||(T=0),typeof T=="number")for(ce=k;ce<W;++ce)this[ce]=T;else{const ye=u.isBuffer(T)?T:u.from(T,se),Me=ye.length;if(Me===0)throw new TypeError('The value "'+T+'" is invalid for argument "value"');for(ce=0;ce<W-k;++ce)this[ce+k]=ye[ce%Me]}return this};const ue={};function le(B,T,k){ue[B]=class extends k{constructor(){super(),Object.defineProperty(this,"message",{value:T.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${B}]`,this.stack,delete this.name}get code(){return B}set code(se){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:se,writable:!0})}toString(){return`${this.name} [${B}]: ${this.message}`}}}function ee(B){let T="",k=B.length;const W=B[0]==="-"?1:0;for(;k>=W+4;k-=3)T=`_${B.slice(k-3,k)}${T}`;return`${B.slice(0,k)}${T}`}function z(B,T,k,W,se,ce){if(B>k||B<T){const ye=typeof T=="bigint"?"n":"";let Me;throw Me=T===0||T===BigInt(0)?`>= 0${ye} and < 2${ye} ** ${8*(ce+1)}${ye}`:`>= -(2${ye} ** ${8*(ce+1)-1}${ye}) and < 2 ** ${8*(ce+1)-1}${ye}`,new ue.ERR_OUT_OF_RANGE("value",Me,B)}(function(Me,Xe,$){V(Xe,"offset"),Me[Xe]!==void 0&&Me[Xe+$]!==void 0||fe(Xe,Me.length-($+1))})(W,se,ce)}function V(B,T){if(typeof B!="number")throw new ue.ERR_INVALID_ARG_TYPE(T,"number",B)}function fe(B,T,k){throw Math.floor(B)!==B?(V(B,k),new ue.ERR_OUT_OF_RANGE("offset","an integer",B)):T<0?new ue.ERR_BUFFER_OUT_OF_BOUNDS:new ue.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${T}`,B)}le("ERR_BUFFER_OUT_OF_BOUNDS",(function(B){return B?`${B} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),le("ERR_INVALID_ARG_TYPE",(function(B,T){return`The "${B}" argument must be of type number. Received type ${typeof T}`}),TypeError),le("ERR_OUT_OF_RANGE",(function(B,T,k){let W=`The value of "${B}" is out of range.`,se=k;return Number.isInteger(k)&&Math.abs(k)>2**32?se=ee(String(k)):typeof k=="bigint"&&(se=String(k),(k>BigInt(2)**BigInt(32)||k<-(BigInt(2)**BigInt(32)))&&(se=ee(se)),se+="n"),W+=` It must be ${T}. Received ${se}`,W}),RangeError);const me=/[^+/0-9A-Za-z-_]/g;function Re(B,T){let k;T=T||1/0;const W=B.length;let se=null;const ce=[];for(let ye=0;ye<W;++ye){if(k=B.charCodeAt(ye),k>55295&&k<57344){if(!se){if(k>56319){(T-=3)>-1&&ce.push(239,191,189);continue}if(ye+1===W){(T-=3)>-1&&ce.push(239,191,189);continue}se=k;continue}if(k<56320){(T-=3)>-1&&ce.push(239,191,189),se=k;continue}k=65536+(se-55296<<10|k-56320)}else se&&(T-=3)>-1&&ce.push(239,191,189);if(se=null,k<128){if((T-=1)<0)break;ce.push(k)}else if(k<2048){if((T-=2)<0)break;ce.push(k>>6|192,63&k|128)}else if(k<65536){if((T-=3)<0)break;ce.push(k>>12|224,k>>6&63|128,63&k|128)}else{if(!(k<1114112))throw new Error("Invalid code point");if((T-=4)<0)break;ce.push(k>>18|240,k>>12&63|128,k>>6&63|128,63&k|128)}}return ce}function Ne(B){return n.toByteArray((function(k){if((k=(k=k.split("=")[0]).trim().replace(me,"")).length<2)return"";for(;k.length%4!=0;)k+="=";return k})(B))}function he(B,T,k,W){let se;for(se=0;se<W&&!(se+k>=T.length||se>=B.length);++se)T[se+k]=B[se];return se}function Te(B,T){return B instanceof T||B!=null&&B.constructor!=null&&B.constructor.name!=null&&B.constructor.name===T.name}function Ue(B){return B!=B}const _e=(function(){const B="0123456789abcdef",T=new Array(256);for(let k=0;k<16;++k){const W=16*k;for(let se=0;se<16;++se)T[W+se]=B[k]+B[se]}return T})();function we(B){return typeof BigInt>"u"?Ae:B}function Ae(){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,d){return f.highWaterMark!=null?f.highWaterMark:h?f[d]: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 d(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",d),s.removeListener("error",d),o.removeListener("end",g),o.removeListener("close",g),s.removeListener("close",g)}return o.on("error",d),s.on("error",d),o.on("end",g),o.on("close",g),s.on("close",g),s.emit("pipe",o),s}},340:function(){},345:function(e,t,r){e.exports=r(7).EventEmitter},362:function(e){e.exports=EH},382:function(e,t,r){var n=r(606),i=Object.keys||function(d){var g=[];for(var y in d)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(d){if(!(this instanceof l))return new l(d);s.call(this,d),a.call(this,d),this.allowHalfOpen=!0,d&&(d.readable===!1&&(this.readable=!1),d.writable===!1&&(this.writable=!1),d.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",f)))}function f(){this._writableState.ended||n.nextTick(h,this)}function h(d){d.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,i=r(496);function s(a,o){this._block=n.alloc(a),this._finalSize=o,this._blockSize=a,this._len=0}s.prototype.update=function(a,o){a=i(a,o||"utf8");for(var u=this._block,c=this._blockSize,l=a.length,f=this._len,h=0;h<l;){for(var d=f%c,g=Math.min(l-h,c-d),y=0;y<g;y++)u[d+y]=a[h+y];h+=g,(f+=g)%c==0&&this._update(u)}return this._len+=l,this},s.prototype.digest=function(a){var o=this._len%this._blockSize;this._block[o]=128,this._block.fill(0,o+1),o>=this._finalSize&&(this._update(this._block),this._block.fill(0));var u=8*this._len;if(u<=4294967295)this._block.writeUInt32BE(u,this._blockSize-4);else{var c=(4294967295&u)>>>0,l=(u-c)/4294967296;this._block.writeUInt32BE(l,this._blockSize-8),this._block.writeUInt32BE(c,this._blockSize-4)}this._update(this._block);var f=this._hash();return a?f.toString(a):f},s.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=s},412:function(e,t,r){var n,i=r(606);e.exports=O,O.ReadableState=I,r(7).EventEmitter;var s=function(V,fe){return V.listeners(fe).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,d,g=r(726),y=r(896),v=r(291).getHighWaterMark,_=r(48).F,b=_.ERR_INVALID_ARG_TYPE,S=_.ERR_STREAM_PUSH_AFTER_EOF,w=_.ERR_METHOD_NOT_IMPLEMENTED,E=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;r(698)(O,a);var A=y.errorOrDestroy,R=["error","close","destroy","pause","resume"];function I(z,V,fe){n=n||r(382),z=z||{},typeof fe!="boolean"&&(fe=V instanceof n),this.objectMode=!!z.objectMode,fe&&(this.objectMode=this.objectMode||!!z.readableObjectMode),this.highWaterMark=v(this,z,"readableHighWaterMark",fe),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=z.emitClose!==!1,this.autoDestroy=!!z.autoDestroy,this.destroyed=!1,this.defaultEncoding=z.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,z.encoding&&(f||(f=r(141).I),this.decoder=new f(z.encoding),this.encoding=z.encoding)}function O(z){if(n=n||r(382),!(this instanceof O))return new O(z);var V=this instanceof n;this._readableState=new I(z,this,V),this.readable=!0,z&&(typeof z.read=="function"&&(this._read=z.read),typeof z.destroy=="function"&&(this._destroy=z.destroy)),a.call(this)}function D(z,V,fe,me,Re){c("readableAddChunk",V);var Ne,he=z._readableState;if(V===null)he.reading=!1,(function(Ue,_e){if(c("onEofChunk"),!_e.ended){if(_e.decoder){var we=_e.decoder.end();we&&we.length&&(_e.buffer.push(we),_e.length+=_e.objectMode?1:we.length)}_e.ended=!0,_e.sync?K(Ue):(_e.needReadable=!1,_e.emittedReadable||(_e.emittedReadable=!0,te(Ue)))}})(z,he);else if(Re||(Ne=(function(Ue,_e){var we;return(function(B){return o.isBuffer(B)||B instanceof u})(_e)||typeof _e=="string"||_e===void 0||Ue.objectMode||(we=new b("chunk",["string","Buffer","Uint8Array"],_e)),we})(he,V)),Ne)A(z,Ne);else if(he.objectMode||V&&V.length>0)if(typeof V=="string"||he.objectMode||Object.getPrototypeOf(V)===o.prototype||(V=(function(Ue){return o.from(Ue)})(V)),me)he.endEmitted?A(z,new E):P(z,he,V,!0);else if(he.ended)A(z,new S);else{if(he.destroyed)return!1;he.reading=!1,he.decoder&&!fe?(V=he.decoder.write(V),he.objectMode||V.length!==0?P(z,he,V,!1):J(z,he)):P(z,he,V,!1)}else me||(he.reading=!1,J(z,he));return!he.ended&&(he.length<he.highWaterMark||he.length===0)}function P(z,V,fe,me){V.flowing&&V.length===0&&!V.sync?(V.awaitDrain=0,z.emit("data",fe)):(V.length+=V.objectMode?1:fe.length,me?V.buffer.unshift(fe):V.buffer.push(fe),V.needReadable&&K(z)),J(z,V)}Object.defineProperty(O.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(V){this._readableState&&(this._readableState.destroyed=V)}}),O.prototype.destroy=y.destroy,O.prototype._undestroy=y.undestroy,O.prototype._destroy=function(z,V){V(z)},O.prototype.push=function(z,V){var fe,me=this._readableState;return me.objectMode?fe=!0:typeof z=="string"&&((V=V||me.defaultEncoding)!==me.encoding&&(z=o.from(z,V),V=""),fe=!0),D(this,z,V,!1,fe)},O.prototype.unshift=function(z){return D(this,z,null,!0,!1)},O.prototype.isPaused=function(){return this._readableState.flowing===!1},O.prototype.setEncoding=function(z){f||(f=r(141).I);var V=new f(z);this._readableState.decoder=V,this._readableState.encoding=this._readableState.decoder.encoding;for(var fe=this._readableState.buffer.head,me="";fe!==null;)me+=V.write(fe.data),fe=fe.next;return this._readableState.buffer.clear(),me!==""&&this._readableState.buffer.push(me),this._readableState.length=me.length,this};var F=1073741824;function M(z,V){return z<=0||V.length===0&&V.ended?0:V.objectMode?1:z!=z?V.flowing&&V.length?V.buffer.head.data.length:V.length:(z>V.highWaterMark&&(V.highWaterMark=(function(me){return me>=F?me=F:(me--,me|=me>>>1,me|=me>>>2,me|=me>>>4,me|=me>>>8,me|=me>>>16,me++),me})(z)),z<=V.length?z:V.ended?V.length:(V.needReadable=!0,0))}function K(z){var V=z._readableState;c("emitReadable",V.needReadable,V.emittedReadable),V.needReadable=!1,V.emittedReadable||(c("emitReadable",V.flowing),V.emittedReadable=!0,i.nextTick(te,z))}function te(z){var V=z._readableState;c("emitReadable_",V.destroyed,V.length,V.ended),V.destroyed||!V.length&&!V.ended||(z.emit("readable"),V.emittedReadable=!1),V.needReadable=!V.flowing&&!V.ended&&V.length<=V.highWaterMark,H(z)}function J(z,V){V.readingMore||(V.readingMore=!0,i.nextTick(Q,z,V))}function Q(z,V){for(;!V.reading&&!V.ended&&(V.length<V.highWaterMark||V.flowing&&V.length===0);){var fe=V.length;if(c("maybeReadMore read 0"),z.read(0),fe===V.length)break}V.readingMore=!1}function re(z){var V=z._readableState;V.readableListening=z.listenerCount("readable")>0,V.resumeScheduled&&!V.paused?V.flowing=!0:z.listenerCount("data")>0&&z.resume()}function ne(z){c("readable nexttick read 0"),z.read(0)}function U(z,V){c("resume",V.reading),V.reading||z.read(0),V.resumeScheduled=!1,z.emit("resume"),H(z),V.flowing&&!V.reading&&z.read(0)}function H(z){var V=z._readableState;for(c("flow",V.flowing);V.flowing&&z.read()!==null;);}function ie(z,V){return V.length===0?null:(V.objectMode?fe=V.buffer.shift():!z||z>=V.length?(fe=V.decoder?V.buffer.join(""):V.buffer.length===1?V.buffer.first():V.buffer.concat(V.length),V.buffer.clear()):fe=V.buffer.consume(z,V.decoder),fe);var fe}function ue(z){var V=z._readableState;c("endReadable",V.endEmitted),V.endEmitted||(V.ended=!0,i.nextTick(le,V,z))}function le(z,V){if(c("endReadableNT",z.endEmitted,z.length),!z.endEmitted&&z.length===0&&(z.endEmitted=!0,V.readable=!1,V.emit("end"),z.autoDestroy)){var fe=V._writableState;(!fe||fe.autoDestroy&&fe.finished)&&V.destroy()}}function ee(z,V){for(var fe=0,me=z.length;fe<me;fe++)if(z[fe]===V)return fe;return-1}O.prototype.read=function(z){c("read",z),z=parseInt(z,10);var V=this._readableState,fe=z;if(z!==0&&(V.emittedReadable=!1),z===0&&V.needReadable&&((V.highWaterMark!==0?V.length>=V.highWaterMark:V.length>0)||V.ended))return c("read: emitReadable",V.length,V.ended),V.length===0&&V.ended?ue(this):K(this),null;if((z=M(z,V))===0&&V.ended)return V.length===0&&ue(this),null;var me,Re=V.needReadable;return c("need readable",Re),(V.length===0||V.length-z<V.highWaterMark)&&c("length less than watermark",Re=!0),V.ended||V.reading?c("reading or ended",Re=!1):Re&&(c("do read"),V.reading=!0,V.sync=!0,V.length===0&&(V.needReadable=!0),this._read(V.highWaterMark),V.sync=!1,V.reading||(z=M(fe,V))),(me=z>0?ie(z,V):null)===null?(V.needReadable=V.length<=V.highWaterMark,z=0):(V.length-=z,V.awaitDrain=0),V.length===0&&(V.ended||(V.needReadable=!0),fe!==z&&V.ended&&ue(this)),me!==null&&this.emit("data",me),me},O.prototype._read=function(z){A(this,new w("_read()"))},O.prototype.pipe=function(z,V){var fe=this,me=this._readableState;switch(me.pipesCount){case 0:me.pipes=z;break;case 1:me.pipes=[me.pipes,z];break;default:me.pipes.push(z)}me.pipesCount+=1,c("pipe count=%d opts=%j",me.pipesCount,V);var Re=(!V||V.end!==!1)&&z!==i.stdout&&z!==i.stderr?he:T;function Ne(k,W){c("onunpipe"),k===fe&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,(function(){c("cleanup"),z.removeListener("close",Ae),z.removeListener("finish",B),z.removeListener("drain",Te),z.removeListener("error",we),z.removeListener("unpipe",Ne),fe.removeListener("end",he),fe.removeListener("end",T),fe.removeListener("data",_e),Ue=!0,!me.awaitDrain||z._writableState&&!z._writableState.needDrain||Te()})())}function he(){c("onend"),z.end()}me.endEmitted?i.nextTick(Re):fe.once("end",Re),z.on("unpipe",Ne);var Te=(function(W){return function(){var ce=W._readableState;c("pipeOnDrain",ce.awaitDrain),ce.awaitDrain&&ce.awaitDrain--,ce.awaitDrain===0&&s(W,"data")&&(ce.flowing=!0,H(W))}})(fe);z.on("drain",Te);var Ue=!1;function _e(k){c("ondata");var W=z.write(k);c("dest.write",W),W===!1&&((me.pipesCount===1&&me.pipes===z||me.pipesCount>1&&ee(me.pipes,z)!==-1)&&!Ue&&(c("false write response, pause",me.awaitDrain),me.awaitDrain++),fe.pause())}function we(k){c("onerror",k),T(),z.removeListener("error",we),s(z,"error")===0&&A(z,k)}function Ae(){z.removeListener("finish",B),T()}function B(){c("onfinish"),z.removeListener("close",Ae),T()}function T(){c("unpipe"),fe.unpipe(z)}return fe.on("data",_e),(function(W,se,ce){if(typeof W.prependListener=="function")return W.prependListener(se,ce);W._events&&W._events[se]?Array.isArray(W._events[se])?W._events[se].unshift(ce):W._events[se]=[ce,W._events[se]]:W.on(se,ce)})(z,"error",we),z.once("close",Ae),z.once("finish",B),z.emit("pipe",fe),me.flowing||(c("pipe resume"),fe.resume()),z},O.prototype.unpipe=function(z){var V=this._readableState,fe={hasUnpiped:!1};if(V.pipesCount===0)return this;if(V.pipesCount===1)return z&&z!==V.pipes||(z||(z=V.pipes),V.pipes=null,V.pipesCount=0,V.flowing=!1,z&&z.emit("unpipe",this,fe)),this;if(!z){var me=V.pipes,Re=V.pipesCount;V.pipes=null,V.pipesCount=0,V.flowing=!1;for(var Ne=0;Ne<Re;Ne++)me[Ne].emit("unpipe",this,{hasUnpiped:!1});return this}var he=ee(V.pipes,z);return he===-1||(V.pipes.splice(he,1),V.pipesCount-=1,V.pipesCount===1&&(V.pipes=V.pipes[0]),z.emit("unpipe",this,fe)),this},O.prototype.on=function(z,V){var fe=a.prototype.on.call(this,z,V),me=this._readableState;return z==="data"?(me.readableListening=this.listenerCount("readable")>0,me.flowing!==!1&&this.resume()):z==="readable"&&(me.endEmitted||me.readableListening||(me.readableListening=me.needReadable=!0,me.flowing=!1,me.emittedReadable=!1,c("on readable",me.length,me.reading),me.length?K(this):me.reading||i.nextTick(ne,this))),fe},O.prototype.addListener=O.prototype.on,O.prototype.removeListener=function(z,V){var fe=a.prototype.removeListener.call(this,z,V);return z==="readable"&&i.nextTick(re,this),fe},O.prototype.removeAllListeners=function(z){var V=a.prototype.removeAllListeners.apply(this,arguments);return z!=="readable"&&z!==void 0||i.nextTick(re,this),V},O.prototype.resume=function(){var z=this._readableState;return z.flowing||(c("resume"),z.flowing=!z.readableListening,(function(fe,me){me.resumeScheduled||(me.resumeScheduled=!0,i.nextTick(U,fe,me))})(this,z)),z.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(z){var V=this,fe=this._readableState,me=!1;for(var Re in z.on("end",(function(){if(c("wrapped end"),fe.decoder&&!fe.ended){var he=fe.decoder.end();he&&he.length&&V.push(he)}V.push(null)})),z.on("data",(function(he){c("wrapped data"),fe.decoder&&(he=fe.decoder.write(he)),fe.objectMode&&he==null||(fe.objectMode||he&&he.length)&&(V.push(he)||(me=!0,z.pause()))})),z)this[Re]===void 0&&typeof z[Re]=="function"&&(this[Re]=(function(Te){return function(){return z[Te].apply(z,arguments)}})(Re));for(var Ne=0;Ne<R.length;Ne++)z.on(R[Ne],this.emit.bind(this,R[Ne]));return this._read=function(he){c("wrapped _read",he),me&&(me=!1,z.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(V){this._readableState&&(this._readableState.flowing=V)}}),O._fromList=ie,Object.defineProperty(O.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol=="function"&&(O.from=function(z,V){return d===void 0&&(d=r(157)),d(O,z,V)})},496:function(e){e.exports=sK},499:function(e){var t={"&":"&",'"':""","'":"'","<":"<",">":">"};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 d(y,v){this.fun=y,this.array=v}function g(){}n.nextTick=function(y){var v=new Array(arguments.length-1);if(arguments.length>1)for(var _=1;_<arguments.length;_++)v[_-1]=arguments[_];u.push(new d(y,v)),u.length!==1||c||a(h)},d.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=g,n.addListener=g,n.once=g,n.off=g,n.removeListener=g,n.removeAllListeners=g,n.emit=g,n.prependListener=g,n.prependOnceListener=g,n.listeners=function(y){return[]},n.binding=function(y){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(y){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},610:function(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(d,g){var y=this._transformState;y.transforming=!1;var v=y.writecb;if(v===null)return this.emit("error",new s);y.writechunk=null,y.writecb=null,g!=null&&this.push(g),v(d);var _=this._readableState;_.reading=!1,(_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}function l(d){if(!(this instanceof l))return new l(d);u.call(this,d),this._transformState={afterTransform:c.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,d&&(typeof d.transform=="function"&&(this._transform=d.transform),typeof d.flush=="function"&&(this._flush=d.flush)),this.on("prefinish",f)}function f(){var d=this;typeof this._flush!="function"||this._readableState.destroyed?h(this,null,null):this._flush((function(g,y){h(d,g,y)}))}function h(d,g,y){if(g)return d.emit("error",g);if(y!=null&&d.push(y),d._writableState.length)throw new o;if(d._transformState.transforming)throw new a;return d.push(null)}r(698)(l,u),l.prototype.push=function(d,g){return this._transformState.needTransform=!1,u.prototype.push.call(this,d,g)},l.prototype._transform=function(d,g,y){y(new i("_transform()"))},l.prototype._write=function(d,g,y){var v=this._transformState;if(v.writecb=y,v.writechunk=d,v.writeencoding=g,!v.transforming){var _=this._readableState;(v.needTransform||_.needReadable||_.length<_.highWaterMark)&&this._read(_.highWaterMark)}},l.prototype._read=function(d){var g=this._transformState;g.writechunk===null||g.transforming?g.needTransform=!0:(g.transforming=!0,this._transform(g.writechunk,g.writeencoding,g.afterTransform))},l.prototype._destroy=function(d,g){u.prototype._destroy.call(this,d,(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(J){var Q=this;this.next=null,this.entry=null,this.finish=function(){(function(ne,U,H){var ie=ne.entry;for(ne.entry=null;ie;){var ue=ie.callback;U.pendingcb--,ue(H),ie=ie.next}U.corkedRequestsFree.next=ne})(Q,J)}}e.exports=O,O.WritableState=I;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,d=r(48).F,g=d.ERR_INVALID_ARG_TYPE,y=d.ERR_METHOD_NOT_IMPLEMENTED,v=d.ERR_MULTIPLE_CALLBACK,_=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,S=d.ERR_STREAM_NULL_VALUES,w=d.ERR_STREAM_WRITE_AFTER_END,E=d.ERR_UNKNOWN_ENCODING,A=f.errorOrDestroy;function R(){}function I(J,Q,re){n=n||r(382),J=J||{},typeof re!="boolean"&&(re=Q instanceof n),this.objectMode=!!J.objectMode,re&&(this.objectMode=this.objectMode||!!J.writableObjectMode),this.highWaterMark=h(this,J,"writableHighWaterMark",re),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var ne=J.decodeStrings===!1;this.decodeStrings=!ne,this.defaultEncoding=J.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(U){(function(ie,ue){var le=ie._writableState,ee=le.sync,z=le.writecb;if(typeof z!="function")throw new v;if((function(me){me.writing=!1,me.writecb=null,me.length-=me.writelen,me.writelen=0})(le),ue)(function(me,Re,Ne,he,Te){--Re.pendingcb,Ne?(i.nextTick(Te,he),i.nextTick(te,me,Re),me._writableState.errorEmitted=!0,A(me,he)):(Te(he),me._writableState.errorEmitted=!0,A(me,he),te(me,Re))})(ie,le,ee,ue,z);else{var V=M(le)||ie.destroyed;V||le.corked||le.bufferProcessing||!le.bufferedRequest||F(ie,le),ee?i.nextTick(P,ie,le,V,z):P(ie,le,V,z)}})(Q,U)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=J.emitClose!==!1,this.autoDestroy=!!J.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function O(J){var Q=this instanceof(n=n||r(382));if(!Q&&!l.call(O,this))return new O(J);this._writableState=new I(J,this,Q),this.writable=!0,J&&(typeof J.write=="function"&&(this._write=J.write),typeof J.writev=="function"&&(this._writev=J.writev),typeof J.destroy=="function"&&(this._destroy=J.destroy),typeof J.final=="function"&&(this._final=J.final)),o.call(this)}function D(J,Q,re,ne,U,H,ie){Q.writelen=ne,Q.writecb=ie,Q.writing=!0,Q.sync=!0,Q.destroyed?Q.onwrite(new b("write")):re?J._writev(U,Q.onwrite):J._write(U,H,Q.onwrite),Q.sync=!1}function P(J,Q,re,ne){re||(function(H,ie){ie.length===0&&ie.needDrain&&(ie.needDrain=!1,H.emit("drain"))})(J,Q),Q.pendingcb--,ne(),te(J,Q)}function F(J,Q){Q.bufferProcessing=!0;var re=Q.bufferedRequest;if(J._writev&&re&&re.next){var ne=Q.bufferedRequestCount,U=new Array(ne),H=Q.corkedRequestsFree;H.entry=re;for(var ie=0,ue=!0;re;)U[ie]=re,re.isBuf||(ue=!1),re=re.next,ie+=1;U.allBuffers=ue,D(J,Q,!0,Q.length,U,"",H.finish),Q.pendingcb++,Q.lastBufferedRequest=null,H.next?(Q.corkedRequestsFree=H.next,H.next=null):Q.corkedRequestsFree=new s(Q),Q.bufferedRequestCount=0}else{for(;re;){var le=re.chunk,ee=re.encoding,z=re.callback;if(D(J,Q,!1,Q.objectMode?1:le.length,le,ee,z),re=re.next,Q.bufferedRequestCount--,Q.writing)break}re===null&&(Q.lastBufferedRequest=null)}Q.bufferedRequest=re,Q.bufferProcessing=!1}function M(J){return J.ending&&J.length===0&&J.bufferedRequest===null&&!J.finished&&!J.writing}function K(J,Q){J._final((function(re){Q.pendingcb--,re&&A(J,re),Q.prefinished=!0,J.emit("prefinish"),te(J,Q)}))}function te(J,Q){var re=M(Q);if(re&&((function(H,ie){ie.prefinished||ie.finalCalled||(typeof H._final!="function"||ie.destroyed?(ie.prefinished=!0,H.emit("prefinish")):(ie.pendingcb++,ie.finalCalled=!0,i.nextTick(K,H,ie)))})(J,Q),Q.pendingcb===0&&(Q.finished=!0,J.emit("finish"),Q.autoDestroy))){var ne=J._readableState;(!ne||ne.autoDestroy&&ne.endEmitted)&&J.destroy()}return re}r(698)(O,o),I.prototype.getBuffer=function(){for(var Q=this.bufferedRequest,re=[];Q;)re.push(Q),Q=Q.next;return re},(function(){try{Object.defineProperty(I.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(Q){return!!l.call(this,Q)||this===O&&Q&&Q._writableState instanceof I}})):l=function(Q){return Q instanceof this},O.prototype.pipe=function(){A(this,new _)},O.prototype.write=function(J,Q,re){var ne=this._writableState,U=!1,H=!ne.objectMode&&(function(ue){return u.isBuffer(ue)||ue instanceof c})(J);return H&&!u.isBuffer(J)&&(J=(function(ue){return u.from(ue)})(J)),typeof Q=="function"&&(re=Q,Q=null),H?Q="buffer":Q||(Q=ne.defaultEncoding),typeof re!="function"&&(re=R),ne.ending?(function(ue,le){var ee=new w;A(ue,ee),i.nextTick(le,ee)})(this,re):(H||(function(ue,le,ee,z){var V;return ee===null?V=new S:typeof ee=="string"||le.objectMode||(V=new g("chunk",["string","Buffer"],ee)),!V||(A(ue,V),i.nextTick(z,V),!1)})(this,ne,J,re))&&(ne.pendingcb++,U=(function(ue,le,ee,z,V,fe){if(!ee){var me=(function(Ue,_e,we){return Ue.objectMode||Ue.decodeStrings===!1||typeof _e!="string"||(_e=u.from(_e,we)),_e})(le,z,V);z!==me&&(ee=!0,V="buffer",z=me)}var Re=le.objectMode?1:z.length;le.length+=Re;var Ne=le.length<le.highWaterMark;if(Ne||(le.needDrain=!0),le.writing||le.corked){var he=le.lastBufferedRequest;le.lastBufferedRequest={chunk:z,encoding:V,isBuf:ee,callback:fe,next:null},he?he.next=le.lastBufferedRequest:le.bufferedRequest=le.lastBufferedRequest,le.bufferedRequestCount+=1}else D(ue,le,!1,Re,z,V,fe);return Ne})(this,ne,H,J,Q,re)),U},O.prototype.cork=function(){this._writableState.corked++},O.prototype.uncork=function(){var J=this._writableState;J.corked&&(J.corked--,J.writing||J.corked||J.bufferProcessing||!J.bufferedRequest||F(this,J))},O.prototype.setDefaultEncoding=function(Q){if(typeof Q=="string"&&(Q=Q.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((Q+"").toLowerCase())>-1))throw new E(Q);return this._writableState.defaultEncoding=Q,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(J,Q,re){re(new y("_write()"))},O.prototype._writev=null,O.prototype.end=function(J,Q,re){var ne=this._writableState;return typeof J=="function"?(re=J,J=null,Q=null):typeof Q=="function"&&(re=Q,Q=null),J!=null&&this.write(J,Q),ne.corked&&(ne.corked=1,this.uncork()),ne.ending||(function(H,ie,ue){ie.ending=!0,te(H,ie),ue&&(ie.finished?i.nextTick(ue):H.once("finish",ue)),ie.ended=!0,H.writable=!1})(this,ne,re),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(Q){this._writableState&&(this._writableState.destroyed=Q)}}),O.prototype.destroy=f.destroy,O.prototype._undestroy=f.undestroy,O.prototype._destroy=function(J,Q){Q(J)}},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,d){var g=Object.keys(h);if(Object.getOwnPropertySymbols){var y=Object.getOwnPropertySymbols(h);d&&(y=y.filter((function(v){return Object.getOwnPropertyDescriptor(h,v).enumerable}))),g.push.apply(g,y)}return g}function i(h){for(var d=1;d<arguments.length;d++){var g=arguments[d]!=null?arguments[d]:{};d%2?n(Object(g),!0).forEach((function(y){s(h,y,g[y])})):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(g)):n(Object(g)).forEach((function(y){Object.defineProperty(h,y,Object.getOwnPropertyDescriptor(g,y))}))}return h}function s(h,d,g){return(d=o(d))in h?Object.defineProperty(h,d,{value:g,enumerable:!0,configurable:!0,writable:!0}):h[d]=g,h}function a(h,d){for(var g=0;g<d.length;g++){var y=d[g];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,o(y.key),y)}}function o(h){var d=(function(y,v){if(typeof y!="object"||y===null)return y;var _=y[Symbol.toPrimitive];if(_!==void 0){var b=_.call(y,v);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(y)})(h,"string");return typeof d=="symbol"?d:String(d)}var u=r(287).Buffer,c=r(340).inspect,l=c&&c.custom||"inspect";function f(h,d,g){u.prototype.copy.call(h,d,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,_=0;v;)f(v.data,y,_),_+=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,_=y.data;for(g-=_.length;y=y.next;){var b=y.data,S=g>b.length?b.length:g;if(S===b.length?_+=b:_+=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,_}},{key:"_getBuffer",value:function(g){var y=u.allocUnsafe(g),v=this.head,_=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?(++_,v.next?this.head=v.next:this.head=this.tail=null):(this.head=v,v.data=b.slice(S));break}++_}return this.length-=_,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,d,g,y){return h===0?d&g|~d&y:h===2?d&g|d&y|g&y:d^g^y}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(h){for(var d,g=this._w,y=0|this._a,v=0|this._b,_=0|this._c,b=0|this._d,S=0|this._e,w=0;w<16;++w)g[w]=h.readInt32BE(4*w);for(;w<80;++w)g[w]=(d=g[w-3]^g[w-8]^g[w-14]^g[w-16])<<1|d>>>31;for(var E=0;E<80;++E){var A=~~(E/20),R=c(y)+f(A,v,_,b)+S+g[E]+a[A]|0;S=b,b=_,_=l(v),v=y,y=R}this._a=y+this._a|0,this._b=v+this._b|0,this._c=_+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),d=0;d<f;d++)h[d]=arguments[d];var g,y=(function(b){return b.length?typeof b[b.length-1]!="function"?o:b.pop():o})(h);if(Array.isArray(h[0])&&(h=h[0]),h.length<2)throw new s("streams");var v=h.map((function(_,b){var S=b<h.length-1;return(function(E,A,R,I){I=(function(F){var M=!1;return function(){M||(M=!0,F.apply(void 0,arguments))}})(I);var O=!1;E.on("close",(function(){O=!0})),n===void 0&&(n=r(238)),n(E,{readable:A,writable:R},(function(P){if(P)return I(P);O=!0,I()}));var D=!1;return function(P){if(!O&&!D)return D=!0,(function(M){return M.setHeader&&typeof M.abort=="function"})(E)?E.abort():typeof E.destroy=="function"?E.destroy():void I(P||new a("pipe"))}})(_,S,b>0,(function(w){g||(g=w),w&&v.forEach(u),S||(v.forEach(u),y(g))}))}));return h.reduce(c)}},802:function(e,t,r){e.exports=function(i){var s=i.toLowerCase(),a=e.exports[s];if(!a)throw new Error(s+" is not supported (we accept pull requests)");return new a},e.exports.sha=r(816),e.exports.sha1=r(737),e.exports.sha224=r(710),e.exports.sha256=r(107),e.exports.sha384=r(827),e.exports.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,d,g){return f===0?h&d|~h&g:f===2?h&d|h&g|d&g:h^d^g}n(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(f){for(var h,d=this._w,g=0|this._a,y=0|this._b,v=0|this._c,_=0|this._d,b=0|this._e,S=0;S<16;++S)d[S]=f.readInt32BE(4*S);for(;S<80;++S)d[S]=d[S-3]^d[S-8]^d[S-14]^d[S-16];for(var w=0;w<80;++w){var E=~~(w/20),A=0|((h=g)<<5|h>>>27)+l(E,y,v,_)+b+d[w]+a[E];b=_,_=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=_+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,d){c.writeInt32BE(f,d),c.writeInt32BE(h,d+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,w){return w^b&(S^w)}function l(b,S,w){return b&S|w&(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 d(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 _(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,w=0|this._ah,E=0|this._bh,A=0|this._ch,R=0|this._dh,I=0|this._eh,O=0|this._fh,D=0|this._gh,P=0|this._hh,F=0|this._al,M=0|this._bl,K=0|this._cl,te=0|this._dl,J=0|this._el,Q=0|this._fl,re=0|this._gl,ne=0|this._hl,U=0;U<32;U+=2)S[U]=b.readInt32BE(4*U),S[U+1]=b.readInt32BE(4*U+4);for(;U<160;U+=2){var H=S[U-30],ie=S[U-30+1],ue=d(H,ie),le=g(ie,H),ee=y(H=S[U-4],ie=S[U-4+1]),z=v(ie,H),V=S[U-14],fe=S[U-14+1],me=S[U-32],Re=S[U-32+1],Ne=le+fe|0,he=ue+V+_(Ne,le)|0;he=(he=he+ee+_(Ne=Ne+z|0,z)|0)+me+_(Ne=Ne+Re|0,Re)|0,S[U]=he,S[U+1]=Ne}for(var Te=0;Te<160;Te+=2){he=S[Te],Ne=S[Te+1];var Ue=l(w,E,A),_e=l(F,M,K),we=f(w,F),Ae=f(F,w),B=h(I,J),T=h(J,I),k=a[Te],W=a[Te+1],se=c(I,O,D),ce=c(J,Q,re),ye=ne+T|0,Me=P+B+_(ye,ne)|0;Me=(Me=(Me=Me+se+_(ye=ye+ce|0,ce)|0)+k+_(ye=ye+W|0,W)|0)+he+_(ye=ye+Ne|0,Ne)|0;var Xe=Ae+_e|0,$=we+Ue+_(Xe,Ae)|0;P=D,ne=re,D=O,re=Q,O=I,Q=J,I=R+Me+_(J=te+ye|0,te)|0,R=A,te=K,A=E,K=M,E=w,M=F,w=Me+$+_(F=ye+Xe|0,ye)|0}this._al=this._al+F|0,this._bl=this._bl+M|0,this._cl=this._cl+K|0,this._dl=this._dl+te|0,this._el=this._el+J|0,this._fl=this._fl+Q|0,this._gl=this._gl+re|0,this._hl=this._hl+ne|0,this._ah=this._ah+w+_(this._al,F)|0,this._bh=this._bh+E+_(this._bl,M)|0,this._ch=this._ch+A+_(this._cl,K)|0,this._dh=this._dh+R+_(this._dl,te)|0,this._eh=this._eh+I+_(this._el,J)|0,this._fh=this._fh+O+_(this._fl,Q)|0,this._gh=this._gh+D+_(this._gl,re)|0,this._hh=this._hh+P+_(this._hl,ne)|0},u.prototype._hash=function(){var b=s.allocUnsafe(64);function S(w,E,A){b.writeInt32BE(w,A),b.writeInt32BE(E,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(d){!c&&d?l._writableState?l._writableState.errorEmitted?n.nextTick(s,l):(l._writableState.errorEmitted=!0,n.nextTick(i,l,d)):n.nextTick(i,l,d):c?(n.nextTick(s,l),c(d)):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(d){return l=o(f,d),(c=o(h,d))===f?void 0:typeof c!="object"||c===null?void(f[d]=c):Array.isArray(c)?void(f[d]=a(c)):i(c)?void(f[d]=s(c)):typeof l!="object"||l===null||Array.isArray(l)?void(f[d]=u({},c)):void(f[d]=u(l,c))}))})),f}},955:function(e,t,r){var n,i=r(606);function s(S,w,E){return(w=(function(R){var I=(function(D,P){if(typeof D!="object"||D===null)return D;var F=D[Symbol.toPrimitive];if(F!==void 0){var M=F.call(D,P);if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(D)})(R,"string");return typeof I=="symbol"?I:String(I)})(w))in S?Object.defineProperty(S,w,{value:E,enumerable:!0,configurable:!0,writable:!0}):S[w]=E,S}var a=r(238),o=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),f=Symbol("lastPromise"),h=Symbol("handlePromise"),d=Symbol("stream");function g(S,w){return{value:S,done:w}}function y(S){var w=S[o];if(w!==null){var E=S[d].read();E!==null&&(S[f]=null,S[o]=null,S[u]=null,w(g(E,!1)))}}function v(S){i.nextTick(y,S)}var _=Object.getPrototypeOf((function(){})),b=Object.setPrototypeOf((s(n={get stream(){return this[d]},next:function(){var w=this,E=this[c];if(E!==null)return Promise.reject(E);if(this[l])return Promise.resolve(g(void 0,!0));if(this[d].destroyed)return new Promise((function(O,D){i.nextTick((function(){w[c]?D(w[c]):O(g(void 0,!0))}))}));var A,R=this[f];if(R)A=new Promise((function(D,P){return function(F,M){D.then((function(){P[l]?F(g(void 0,!0)):P[h](F,M)}),M)}})(R,this));else{var I=this[d].read();if(I!==null)return Promise.resolve(g(I,!1));A=new Promise(this[h])}return this[f]=A,A}},Symbol.asyncIterator,(function(){return this})),s(n,"return",(function(){var w=this;return new Promise((function(E,A){w[d].destroy(null,(function(R){R?A(R):E(g(void 0,!0))}))}))})),n),_);e.exports=function(w){var E,A=Object.create(b,(s(E={},d,{value:w,writable:!0}),s(E,o,{value:null,writable:!0}),s(E,u,{value:null,writable:!0}),s(E,c,{value:null,writable:!0}),s(E,l,{value:w._readableState.endEmitted,writable:!0}),s(E,h,{value:function(I,O){var D=A[d].read();D?(A[f]=null,A[o]=null,A[u]=null,I(g(D,!1))):(A[o]=I,A[u]=O)},writable:!0}),E));return A[f]=null,a(w,(function(R){if(R&&R.code!=="ERR_STREAM_PREMATURE_CLOSE"){var I=A[u];return I!==null&&(A[f]=null,A[o]=null,A[u]=null,I(R)),void(A[c]=R)}var O=A[o];O!==null&&(A[f]=null,A[o]=null,A[u]=null,O(g(void 0,!0))),A[l]=!0})),w.on("readable",v.bind(null,A)),A}},987:function(e){e.exports=oK}},IB={};function Ee(e){var t=IB[e];if(t!==void 0)return t.exports;var r=IB[e]={exports:{}};return w_e[e](r,r.exports,Ee),r.exports}Ee.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return Ee.d(t,{a:t}),t},Ee.d=function(e,t){for(var r in t)Ee.o(t,r)&&!Ee.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},Ee.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})(),Ee.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Ee.r=function(e){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var jV={};Ee.d(jV,{A:function(){return HCe}});var eO={};Ee.r(eO),Ee.d(eO,{CLEAR:function(){return MR},CLEAR_BY:function(){return DR},NEW_AUTH_ERR:function(){return NR},NEW_SPEC_ERR:function(){return PR},NEW_SPEC_ERR_BATCH:function(){return kR},NEW_THROWN_ERR:function(){return Dm},NEW_THROWN_ERR_BATCH:function(){return jR},clear:function(){return P_e},clearBy:function(){return k_e},newAuthErr:function(){return j_e},newSpecErr:function(){return T_e},newSpecErrBatch:function(){return I_e},newThrownErr:function(){return C_e},newThrownErrBatch:function(){return R_e}});var tO={};Ee.r(tO),Ee.d(tO,{AUTHORIZE:function(){return $R},AUTHORIZE_OAUTH2:function(){return BR},CONFIGURE_AUTH:function(){return UR},LOGOUT:function(){return LR},RESTORE_AUTHORIZATION:function(){return VR},SHOW_AUTH_POPUP:function(){return FR},authPopup:function(){return aEe},authorize:function(){return W_e},authorizeAccessCodeWithBasicAuthentication:function(){return tEe},authorizeAccessCodeWithFormParams:function(){return eEe},authorizeApplication:function(){return Q_e},authorizeOauth2:function(){return Y_e},authorizeOauth2WithPersistOption:function(){return X_e},authorizePassword:function(){return Z_e},authorizeRequest:function(){return rEe},authorizeWithPersistOption:function(){return J_e},configureAuth:function(){return nEe},logout:function(){return H_e},logoutWithPersistOption:function(){return K_e},persistAuthorizationIfNeeded:function(){return sEe},preAuthorizeImplicit:function(){return G_e},restoreAuthorization:function(){return iEe},showDefinitions:function(){return z_e}});var rO={};Ee.r(rO),Ee.d(rO,{authorized:function(){return dEe},definitionsForRequirements:function(){return pEe},definitionsToAuthorize:function(){return cEe},getConfigs:function(){return mEe},getDefinitionsByNames:function(){return fEe},isAuthorized:function(){return hEe},selectAuthPath:function(){return lEe},shownDefinitions:function(){return uEe}});var nO={};Ee.r(nO),Ee.d(nO,{TOGGLE_CONFIGS:function(){return JR},UPDATE_CONFIGS:function(){return WR},downloadConfig:function(){return CEe},getConfigByUrl:function(){return REe},loaded:function(){return OEe},toggle:function(){return AEe},update:function(){return xEe}});var iO={};Ee.r(iO),Ee.d(iO,{get:function(){return TEe}});var sO={};Ee.r(sO),Ee.d(sO,{transform:function(){return DEe}});var aO={};Ee.r(aO),Ee.d(aO,{transform:function(){return qEe}});var oO={};Ee.r(oO),Ee.d(oO,{allErrors:function(){return VV},lastError:function(){return $Ee}});var uO={};Ee.r(uO),Ee.d(uO,{SHOW:function(){return YR},UPDATE_FILTER:function(){return KR},UPDATE_LAYOUT:function(){return HR},UPDATE_MODE:function(){return GR},changeMode:function(){return XEe},show:function(){return YEe},updateFilter:function(){return GEe},updateLayout:function(){return KEe}});var cO={};Ee.r(cO),Ee.d(cO,{current:function(){return QEe},currentFilter:function(){return eSe},isShown:function(){return HV},showSummary:function(){return rSe},whatMode:function(){return tSe}});var lO={};Ee.r(lO),Ee.d(lO,{taggedOperations:function(){return nSe}});var fO={};Ee.r(fO),Ee.d(fO,{getActiveLanguage:function(){return lSe},getDefaultExpanded:function(){return fSe},getGenerators:function(){return ZV},getSnippetGenerators:function(){return cSe}});var pO={};Ee.r(pO),Ee.d(pO,{JsonSchemaArrayItemFile:function(){return eT},JsonSchemaArrayItemText:function(){return QR},JsonSchemaForm:function(){return nz},JsonSchema_array:function(){return sz},JsonSchema_boolean:function(){return az},JsonSchema_object:function(){return oz},JsonSchema_string:function(){return iz}});var dO={};Ee.r(dO),Ee.d(dO,{allowTryItOutFor:function(){return p1e},basePath:function(){return s1e},canExecuteScheme:function(){return _1e},consumes:function(){return Sz},consumesOptionsFor:function(){return b1e},contentTypeValues:function(){return y1e},currentProducesFor:function(){return kz},definitions:function(){return i1e},externalDocs:function(){return ZSe},findDefinition:function(){return n1e},getOAS3RequiredRequestBodyContentType:function(){return S1e},getParameter:function(){return h1e},hasHost:function(){return m1e},host:function(){return a1e},info:function(){return vz},isMediaTypeSchemaPropertiesEqual:function(){return w1e},isOAS3:function(){return XSe},lastError:function(){return zSe},mutatedRequestFor:function(){return f1e},mutatedRequests:function(){return Tz},operationScheme:function(){return Nz},operationWithMeta:function(){return jz},operations:function(){return Ez},operationsWithRootInherited:function(){return xz},operationsWithTags:function(){return Oz},parameterInclusionSettingFor:function(){return Iz},parameterValues:function(){return Pz},parameterWithMeta:function(){return d1e},parameterWithMetaByIdentity:function(){return nT},parametersIncludeIn:function(){return g1e},parametersIncludeType:function(){return PO},paths:function(){return _z},produces:function(){return wz},producesOptionsFor:function(){return v1e},requestFor:function(){return l1e},requests:function(){return Rz},responseFor:function(){return c1e},responses:function(){return Cz},schemes:function(){return o1e},security:function(){return t1e},securityDefinitions:function(){return r1e},semver:function(){return QSe},spec:function(){return $n},specJS:function(){return KSe},specJson:function(){return tT},specJsonWithResolvedSubtrees:function(){return Hi},specResolved:function(){return GSe},specResolvedSubtree:function(){return YSe},specSource:function(){return HSe},specStr:function(){return JSe},tagDetails:function(){return Az},taggedOperations:function(){return u1e},tags:function(){return rT},url:function(){return WSe},validOperationMethods:function(){return e1e},validateBeforeExecute:function(){return E1e},validationErrors:function(){return Mz},version:function(){return bz}});var hO={};Ee.r(hO),Ee.d(hO,{CLEAR_REQUEST:function(){return dT},CLEAR_RESPONSE:function(){return pT},CLEAR_VALIDATE_PARAMS:function(){return hT},LOG_REQUEST:function(){return Fz},SET_MUTATED_REQUEST:function(){return fT},SET_REQUEST:function(){return lT},SET_RESPONSE:function(){return cT},SET_SCHEME:function(){return gT},UPDATE_EMPTY_PARAM_INCLUSION:function(){return oT},UPDATE_JSON:function(){return aT},UPDATE_OPERATION_META_VALUE:function(){return Um},UPDATE_PARAM:function(){return Bm},UPDATE_RESOLVED:function(){return mT},UPDATE_RESOLVED_SUBTREE:function(){return Vm},UPDATE_SPEC:function(){return iT},UPDATE_URL:function(){return sT},VALIDATE_PARAMS:function(){return uT},changeConsumesValue:function(){return V1e},changeParam:function(){return D1e},changeParamByIdentity:function(){return q1e},changeProducesValue:function(){return z1e},clearRequest:function(){return Z1e},clearResponse:function(){return X1e},clearValidateParams:function(){return U1e},execute:function(){return Y1e},executeRequest:function(){return G1e},invalidateResolvedSubtreeCache:function(){return $1e},logRequest:function(){return K1e},parseToJson:function(){return P1e},requestResolvedSubtree:function(){return M1e},resolveSpec:function(){return k1e},setMutatedRequest:function(){return H1e},setRequest:function(){return J1e},setResponse:function(){return W1e},setScheme:function(){return Q1e},updateEmptyParamInclusion:function(){return B1e},updateJsonSpec:function(){return j1e},updateResolved:function(){return T1e},updateResolvedSubtree:function(){return F1e},updateSpec:function(){return R1e},updateUrl:function(){return I1e},validateParams:function(){return L1e}});var mO={};Ee.r(mO),Ee.d(mO,{executeRequest:function(){return nwe},updateJsonSpec:function(){return rwe},updateSpec:function(){return twe},validateParams:function(){return iwe}});var gO={};Ee.r(gO),Ee.d(gO,{Button:function(){return hW},Col:function(){return wxe},Collapse:function(){return yW},Container:function(){return Sxe},Input:function(){return Oxe},Link:function(){return gW},Row:function(){return xxe},Select:function(){return mW},TextArea:function(){return Axe}});var yO={};Ee.r(yO),Ee.d(yO,{basePath:function(){return oAe},consumes:function(){return uAe},definitions:function(){return rAe},findDefinition:function(){return tAe},hasHost:function(){return nAe},host:function(){return aAe},produces:function(){return cAe},schemes:function(){return lAe},securityDefinitions:function(){return iAe},validOperationMethods:function(){return sAe}});var vO={};Ee.r(vO),Ee.d(vO,{definitionsToAuthorize:function(){return fAe}});var bO={};Ee.r(bO),Ee.d(bO,{callbacksOperations:function(){return vAe},findSchema:function(){return yAe},isOAS3:function(){return mAe},isOAS30:function(){return hAe},isSwagger2:function(){return dAe},servers:function(){return gAe}});var _O={};Ee.r(_O),Ee.d(_O,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return Wm},CLEAR_REQUEST_BODY_VALUE:function(){return CT},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return OT},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return ST},UPDATE_REQUEST_BODY_INCLUSION:function(){return ET},UPDATE_REQUEST_BODY_VALUE:function(){return bT},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return _T},UPDATE_REQUEST_CONTENT_TYPE:function(){return wT},UPDATE_RESPONSE_CONTENT_TYPE:function(){return xT},UPDATE_SELECTED_SERVER:function(){return vT},UPDATE_SERVER_VARIABLE_VALUE:function(){return AT},clearRequestBodyValidateError:function(){return WAe},clearRequestBodyValue:function(){return HAe},initRequestBodyValidateError:function(){return JAe},setActiveExamplesMember:function(){return LAe},setRequestBodyInclusion:function(){return $Ae},setRequestBodyValidateError:function(){return zAe},setRequestBodyValue:function(){return qAe},setRequestContentType:function(){return BAe},setResponseContentType:function(){return UAe},setRetainRequestBodyValueFlag:function(){return FAe},setSelectedServer:function(){return DAe},setServerVariableValue:function(){return VAe}});var EO={};Ee.r(EO),Ee.d(EO,{activeExamplesMember:function(){return rOe},hasUserEditedBody:function(){return QAe},requestBodyErrors:function(){return tOe},requestBodyInclusionSetting:function(){return eOe},requestBodyValue:function(){return YAe},requestContentType:function(){return nOe},responseContentType:function(){return iOe},selectDefaultRequestBodyValue:function(){return ZAe},selectedServer:function(){return GAe},serverEffectiveValue:function(){return oOe},serverVariableValue:function(){return sOe},serverVariables:function(){return aOe},shouldRetainRequestBodyValue:function(){return XAe},validOperationMethods:function(){return lOe},validateBeforeExecute:function(){return uOe},validateShallowRequired:function(){return cOe}});var p=(function(e){var t={};return Ee.d(t,e),t})({Component:function(){return dt.Component},PureComponent:function(){return dt.PureComponent},createContext:function(){return dt.createContext},createElement:function(){return dt.createElement},default:function(){return dt.default},forwardRef:function(){return dt.forwardRef},useCallback:function(){return dt.useCallback},useContext:function(){return dt.useContext},useEffect:function(){return dt.useEffect},useMemo:function(){return dt.useMemo},useRef:function(){return dt.useRef},useState:function(){return dt.useState}}),mc=(function(e){var t={};return Ee.d(t,e),t})({applyMiddleware:function(){return gK},bindActionCreators:function(){return mK},compose:function(){return B6},createStore:function(){return L6}}),G=(function(e){var t={};return Ee.d(t,e),t})({List:function(){return Fa.List},Map:function(){return Fa.Map},OrderedMap:function(){return Fa.OrderedMap},Seq:function(){return Fa.Seq},Set:function(){return Fa.Set},default:function(){return vK},fromJS:function(){return Fa.fromJS}}),x_e=Ee(919),Hc=Ee.n(x_e),A_e=(function(e){var t={};return Ee.d(t,e),t})({combineReducers:function(){return xK.combineReducers}}),PV=(function(e){var t={};return Ee.d(t,e),t})({serializeError:function(){return OK.serializeError}}),O_e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return yG}});const Dm="err_new_thrown_err",jR="err_new_thrown_err_batch",PR="err_new_spec_err",kR="err_new_spec_err_batch",NR="err_new_auth_err",MR="err_clear",DR="err_clear_by";function C_e(e){return{type:Dm,payload:(0,PV.serializeError)(e)}}function R_e(e){return{type:jR,payload:e}}function T_e(e){return{type:PR,payload:e}}function I_e(e){return{type:kR,payload:e}}function j_e(e){return{type:NR,payload:e}}function P_e(e={}){return{type:MR,payload:e}}function k_e(e=()=>!0){return{type:DR,payload:e}}var sr=(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})(),gc=((function(e){var t={};Ee.d(t,e)})({}),(function(e){var t={};Ee.d(t,e)})({}),(function(e){var t={};return Ee.d(t,e),t})({default:function(){return MG}})),N_e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return dY}}),kV=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return bY}}),M_e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return EY}}),jB=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return wY}}),D_e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return CY}}),q_e=Ee(209),Jo=Ee.n(q_e),F_e=Ee(802),$_e=Ee.n(F_e);const L_e=G.default.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function qp(e,{isOAS3:t}={}){if(!G.default.Map.isMap(e))return{schema:G.default.Map(),parameterContentMediaType:null};if(!t)return e.get("in")==="body"?{schema:e.get("schema",G.default.Map()),parameterContentMediaType:null}:{schema:e.filter(((r,n)=>L_e.includes(n))),parameterContentMediaType:null};if(e.get("content")){const r=e.get("content",G.default.Map({})).keySeq().first();return{schema:e.getIn(["content",r,"schema"],G.default.Map()),parameterContentMediaType:r}}return{schema:e.get("schema")?e.get("schema",G.default.Map()):G.default.Map(),parameterContentMediaType:null}}var PB=Ee(287).Buffer;const kB="default",Of=e=>G.default.Iterable.isIterable(e),gu=e=>Of(e)?e.toJS():e;function Ua(e){return is(e)?gu(e):{}}function ns(e){if(Of(e)||e instanceof sr.File||!is(e))return e;if(Array.isArray(e))return G.default.Seq(e).map(ns).toList();if((0,jB.default)(e.entries)){const t=(function(n){if(!(0,jB.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 G.default.OrderedMap(t).map(ns)}return G.default.OrderedMap(e).map(ns)}function Eo(e){return Array.isArray(e)?e:[e]}function cx(e){return typeof e=="function"}function is(e){return!!e&&typeof e=="object"}function qs(e){return typeof e=="function"}function vd(e){return Array.isArray(e)}const B_e=gc.default;function Ii(e,t){return Object.keys(e).reduce(((r,n)=>(r[n]=t(e[n],n),r)),{})}function NB(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 U_e(e){return({dispatch:t,getState:r})=>n=>i=>typeof i=="function"?i(e()):n(i)}function SO(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"),d=t.get("minLength"),g=t.get("uniqueItems"),y=t.get("maxItems"),v=t.get("minItems"),_=t.get("pattern");const b=r||o===!0,S=e!=null,w=b||S&&l==="array"||!(!b&&!S),E=a&&e===null;if(b&&!S&&!E&&!n&&!l)return s.push("Required field is not provided"),s;if(E||!l||!w)return[];let A=l==="string"&&e,R=l==="array"&&Array.isArray(e)&&e.length,I=l==="array"&&G.default.List.isList(e)&&e.count();const O=[A,R,I,l==="array"&&typeof e=="string"&&e,l==="file"&&e instanceof sr.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((D=>!!D));if(b&&!O&&!n)return s.push("Required field is not provided"),s;if(l==="object"&&(i===null||i==="application/json")){let D=e;if(typeof e=="string")try{D=JSON.parse(e)}catch{return s.push("Parameter string value must be valid JSON"),s}t&&t.has("required")&&qs(o.isList)&&o.isList()&&o.forEach((P=>{D[P]===void 0&&s.push({propKey:P,error:"Required property not found"})})),t&&t.has("properties")&&t.get("properties").forEach(((P,F)=>{const M=SO(D[F],P,!1,n,i);s.push(...M.map((K=>({propKey:F,error:K}))))}))}if(_){let D=((P,F)=>{if(!new RegExp(F).test(P))return"Value must follow pattern "+F})(e,_);D&&s.push(D)}if(v&&l==="array"){let D=((P,F)=>{if(!P&&F>=1||P&&P.length<F)return`Array must contain at least ${F} item${F===1?"":"s"}`})(e,v);D&&s.push(D)}if(y&&l==="array"){let D=((P,F)=>{if(P&&P.length>F)return`Array must not contain more then ${F} item${F===1?"":"s"}`})(e,y);D&&s.push({needRemove:!0,error:D})}if(g&&l==="array"){let D=((P,F)=>{if(P&&(F==="true"||F===!0)){const M=(0,G.fromJS)(P),K=M.toSet();if(P.length>K.size){let te=(0,G.Set)();if(M.forEach(((J,Q)=>{M.filter((re=>qs(re.equals)?re.equals(J):re===J)).size>1&&(te=te.add(Q))})),te.size!==0)return te.map((J=>({index:J,error:"No duplicates allowed."}))).toArray()}}})(e,g);D&&s.push(...D)}if(h||h===0){let D=((P,F)=>{if(P.length>F)return`Value must be no longer than ${F} character${F!==1?"s":""}`})(e,h);D&&s.push(D)}if(d){let D=((P,F)=>{if(P.length<F)return`Value must be at least ${F} character${F!==1?"s":""}`})(e,d);D&&s.push(D)}if(u||u===0){let D=((P,F)=>{if(P>F)return`Value must be less than or equal to ${F}`})(e,u);D&&s.push(D)}if(c||c===0){let D=((P,F)=>{if(P<F)return`Value must be greater than or equal to ${F}`})(e,c);D&&s.push(D)}if(l==="string"){let D;if(D=f==="date-time"?(P=>{if(isNaN(Date.parse(P)))return"Value must be a DateTime"})(e):f==="uuid"?(P=>{if(P=P.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(P))return"Value must be a Guid"})(e):(P=>{if(P&&typeof P!="string")return"Value must be a string"})(e),!D)return s;s.push(D)}else if(l==="boolean"){let D=(P=>{if(P!=="true"&&P!=="false"&&P!==!0&&P!==!1)return"Value must be a boolean"})(e);if(!D)return s;s.push(D)}else if(l==="number"){let D=(P=>{if(!/^-?\d+(\.?\d+)?$/.test(P))return"Value must be a number"})(e);if(!D)return s;s.push(D)}else if(l==="integer"){let D=(P=>{if(!/^-?\d+$/.test(P))return"Value must be an integer"})(e);if(!D)return s;s.push(D)}else if(l==="array"){if(!R&&!I)return s;e&&e.forEach(((D,P)=>{const F=SO(D,t.get("items"),!1,n,i);s.push(...F.map((M=>({index:P,error:M}))))}))}else if(l==="file"){let D=(P=>{if(P&&!(P instanceof sr.File))return"Value must be a file"})(e);if(!D)return s;s.push(D)}return s}const Cf=e=>{let t;return t=e instanceof PB?e:PB.from(e.toString(),"utf-8"),t.toString("base64")},MB={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)}},qm=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("&")},V_e=(e,t,r)=>!!(0,N_e.default)(r,(n=>(0,M_e.default)(e[n],t[n])));function DB(e){return!(!e||e.indexOf("localhost")>=0||e.indexOf("127.0.0.1")>=0||e==="none")}const Kc=e=>typeof e=="string"||e instanceof String?e.trim().replace(/\s/g,"%20"):"",NV=e=>(0,D_e.default)(Kc(e).replace(/%20/g,"_")),wO=e=>/^x-/.test(e),Ia=e=>G.Map.isMap(e)?e.filter(((t,r)=>wO(r))):Object.keys(e).filter((t=>wO(t))),MV=e=>e.filter(((t,r)=>/^pattern|maxLength|minLength|maximum|minimum/.test(r)));function DV(e,t,r=()=>!0){if(typeof e!="object"||Array.isArray(e)||e===null||!t)return e;const n=Object.assign({},e);return Object.keys(n).forEach((i=>{i===t&&r(n[i],i)?delete n[i]:n[i]=DV(n[i],t,r)})),n}function Wr(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 bd(e,{returnAll:t=!1,allowHashes:r=!0}={}){if(!G.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 qV(e,t){return bd(e,{returnAll:!0}).map((r=>t[r])).filter((r=>r!==void 0))[0]}function qB(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}const qR=e=>!e||!(!Of(e)||!e.isEmpty()),FB=e=>e;class FV{constructor(t={}){Hc()(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=[U_e(c)];const f=sr.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||mc.compose;return(0,mc.createStore)(o,u,f((0,mc.applyMiddleware)(...l)))})(n,i,s)})(FB,(0,G.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(t,r=!0){var n=xO(t,this.getSystem());$V(this.system,n),r&&this.buildSystem(),AO.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:G.default,React:p.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,n){return(function(s,a){let o=Object.keys(s).reduce(((u,c)=>(u[c]=(function(f,h){return(d=new G.Map,g)=>{if(!f)return d;let y=f[g.type];if(y){const v=yc(y,h)(d,g);return v===null?d:v}return d}})(s[c],a),u)),{});return Object.keys(o).length?(0,A_e.combineReducers)(o):FB})(Ii(r,(i=>i.reducers)),n)})(this.system.statePlugins,this.getSystem))}getType(t){let r=t[0].toUpperCase()+t.slice(1);return NB(this.system.statePlugins,((n,i)=>{let s=n[t];if(s)return{[i+r]:s}}))}getSelectors(){return this.getType("selectors")}getActions(){return Ii(this.getType("actions"),(t=>NB(t,((r,n)=>{if(cx(r))return{[n]:r}}))))}getWrappedAndBoundActions(t){return Ii(this.getBoundActions(t),((r,n)=>{let i=this.system.statePlugins[n.slice(0,-7)].wrapActions;return i?Ii(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(!cx(l))throw new TypeError("wrapActions needs to return a function that returns a new function (ie the wrapped action)");return yc(l,this.getSystem)}),s||Function.prototype)):s})):r}))}getWrappedAndBoundSelectors(t,r){return Ii(this.getBoundSelectors(t,r),((n,i)=>{let s=[i.slice(0,-9)],a=this.system.statePlugins[s].wrapSelectors;return a?Ii(n,((o,u)=>{let c=a[u];return c?(Array.isArray(c)||(c=[c]),c.reduce(((l,f)=>{let h=(...d)=>f(l,this.getSystem())(t().getIn(s),...d);if(!cx(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 Ii(this.getSelectors(),((n,i)=>{let s=[i.slice(0,-9)];return Ii(n,(a=>(...o)=>{let u=yc(a,this.getSystem).apply(null,[t().getIn(s),...o]);return typeof u=="function"&&(u=yc(u,this.getSystem)(r())),u}))}))}getBoundActions(t){t=t||this.getStore().dispatch;const r=this.getActions(),n=i=>typeof i!="function"?Ii(i,(s=>n(s))):(...s)=>{var a=null;try{a=i(...s)}catch(o){a={type:Dm,error:!0,payload:(0,PV.serializeError)(o)}}finally{return a}};return Ii(r,(i=>(0,mc.bindActionCreators)(n(i),t)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(t){return r=>Hc()({},this.getWrappedAndBoundActions(r),this.getFn(),t)}}function xO(e,t){return is(e)&&!vd(e)?(0,O_e.default)({},e):qs(e)?xO(e(t),t):vd(e)?e.map((r=>xO(r,t))).reduce($V,{components:t.getComponents()}):{}}function AO(e,t,{hasLoaded:r}={}){let n=r;return is(e)&&!vd(e)&&typeof e.afterLoad=="function"&&(n=!0,yc(e.afterLoad,t.getSystem).call(this,t)),qs(e)?AO.call(this,e(t),t,{hasLoaded:n}):vd(e)?e.map((i=>AO.call(this,i,t,{hasLoaded:n}))):n}function $V(e={},t={}){if(!is(e))return{};if(!is(t))return e;t.wrapComponents&&(Ii(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(is(r))for(let n in r){const i=r[n];if(!is(i))continue;const{wrapActions:s,wrapSelectors:a}=i;if(is(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(is(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 Hc()(e,t)}function yc(e,t,{logErrors:r=!0}={}){return typeof e!="function"?e:function(...n){try{return e.call(this,...n)}catch(i){if(r){const{uncaughtExceptionHandler:s}=t().getConfigs();typeof s=="function"?s(i):console.error(i)}return null}}}var Gc=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return PY}});const FR="show_popup",$R="authorize",LR="logout",BR="authorize_oauth2",UR="configure_auth",VR="restore_authorization";function z_e(e){return{type:FR,payload:e}}function W_e(e){return{type:$R,payload:e}}const J_e=e=>({authActions:t})=>{t.authorize(e),t.persistAuthorizationIfNeeded()};function H_e(e){return{type:LR,payload:e}}const K_e=e=>({authActions:t})=>{t.logout(e),t.persistAuthorizationIfNeeded()},G_e=e=>({authActions:t,errActions:r})=>{let{auth:n,token:i,isValid:s}=e,{schema:a,name:o}=n,u=a.get("flow");delete sr.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 Y_e(e){return{type:BR,payload:e}}const X_e=e=>({authActions:t})=>{t.authorizeOauth2(e),t.persistAuthorizationIfNeeded()},Z_e=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,d,g){d&&Object.assign(h,{client_id:d}),g&&Object.assign(h,{client_secret:g})})(c,o,u);break;case"basic":l.Authorization="Basic "+Cf(o+":"+u);break;default:console.warn(`Warning: invalid passwordType ${a} was passed, not including client id and secret`)}return t.authorizeRequest({body:qm(c),url:r.get("tokenUrl"),name:n,headers:l,query:{},auth:e})},Q_e=e=>({authActions:t})=>{let{schema:r,scopes:n,name:i,clientId:s,clientSecret:a}=e,o={Authorization:"Basic "+Cf(s+":"+a)},u={grant_type:"client_credentials",scope:n.join(" ")};return t.authorizeRequest({body:qm(u),name:i,url:r.get("tokenUrl"),auth:e,headers:o})},eEe=({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:qm(u),name:i,url:n.get("tokenUrl"),auth:e})},tEe=({auth:e,redirectUrl:t})=>({authActions:r})=>{let{schema:n,name:i,clientId:s,clientSecret:a,codeVerifier:o}=e,u={Authorization:"Basic "+Cf(s+":"+a)},c={grant_type:"authorization_code",code:e.code,client_id:s,redirect_uri:t,code_verifier:o};return r.authorizeRequest({body:qm(c),name:i,url:n.get("tokenUrl"),auth:e,headers:u})},rEe=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:d,auth:g}=e,{additionalQueryStringParams:y}=o.getConfigs()||{};if(a.isOAS3()){let b=s.serverEffectiveValue(s.selectedServer());u=(0,Gc.default)(d,b,!0)}else u=(0,Gc.default)(d,a.url(),!0);typeof y=="object"&&(u.query=Object.assign({},u.query,y));const v=u.toString();let _=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:_,query:l,body:c,requestInterceptor:r().requestInterceptor,responseInterceptor:r().responseInterceptor}).then((function(b){let S=JSON.parse(b.data),w=S&&(S.error||""),E=S&&(S.parseError||"");b.ok?w||E?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 w=b.response.data;try{const E=typeof w=="string"?JSON.parse(w):w;E.error&&(S+=`, error: ${E.error}`),E.error_description&&(S+=`, description: ${E.error_description}`)}catch{}}i.newAuthErr({authId:h,level:"error",source:"auth",message:S})}))};function nEe(e){return{type:UR,payload:e}}function iEe(e){return{type:VR,payload:e}}const sEe=()=>({authSelectors:e,getConfigs:t})=>{if(!t().persistAuthorization)return;const r=e.authorized().toJS();localStorage.setItem("authorized",JSON.stringify(r))},aEe=(e,t)=>()=>{sr.swaggerUIRedirectOauth2=t,sr.open(e)};var oEe={[FR]:(e,{payload:t})=>e.set("showDefinitions",t),[$R]:(e,{payload:t})=>{let r=(0,G.fromJS)(t),n=e.get("authorized")||(0,G.Map)();return r.entrySeq().forEach((([i,s])=>{if(!qs(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 "+Cf(o+":"+u)}),n=n.setIn([i,"schema"],s.get("schema"))}})),e.set("authorized",n)},[BR]:(e,{payload:t})=>{let r,{auth:n,token:i}=t;n.token=Object.assign({},i),r=(0,G.fromJS)(n);let s=e.get("authorized")||(0,G.Map)();return s=s.set(r.get("name"),r),e.set("authorized",s)},[LR]:(e,{payload:t})=>{let r=e.get("authorized").withMutations((n=>{t.forEach((i=>{n.delete(i)}))}));return e.set("authorized",r)},[UR]:(e,{payload:t})=>e.set("configs",t),[VR]:(e,{payload:t})=>e.set("authorized",(0,G.fromJS)(t.authorized))},ct=(function(e){var t={};return Ee.d(t,e),t})({createSelector:function(){return A8}});const Fm=e=>e,uEe=(0,ct.createSelector)(Fm,(e=>e.get("showDefinitions"))),cEe=(0,ct.createSelector)(Fm,(()=>({specSelectors:e})=>{let t=e.securityDefinitions()||(0,G.Map)({}),r=(0,G.List)();return t.entrySeq().forEach((([n,i])=>{let s=(0,G.Map)();s=s.set(n,i),r=r.push(s)})),r})),lEe=(e,t)=>({specSelectors:r})=>(0,G.List)(r.isOAS3()?["components","securitySchemes",t]:["securityDefinitions",t]),fEe=(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,G.List)();return t.valueSeq().forEach((s=>{let a=(0,G.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},pEe=(e,t=(0,G.List)())=>({authSelectors:r})=>{const n=r.definitionsToAuthorize()||(0,G.List)();let i=(0,G.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");G.List.isList(c)&&G.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},dEe=(0,ct.createSelector)(Fm,(e=>e.get("authorized")||(0,G.Map)())),hEe=(e,t)=>({authSelectors:r})=>{let n=r.authorized();return G.List.isList(t)?!!t.toJS().filter((i=>Object.keys(i).map((s=>!!n.get(s))).indexOf(!1)===-1)).length:null},mEe=(0,ct.createSelector)(Fm,(e=>e.get("configs"))),gEe=(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})},yEe=(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)})}},vEe=(e,t)=>r=>{if(e(r),t.getConfigs().persistAuthorization)try{const[{schema:n,value:i}]=Object.values(r),s=(0,G.fromJS)(n),a=s.get("type")==="apiKey",o=s.get("in")==="cookie";a&&o&&(document.cookie=`${s.get("name")}=${i}; SameSite=None; Secure`)}catch(n){console.error("Error persisting cookie based apiKey in document.cookie.",n)}},bEe=(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 In=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return bH}}),zR=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return dX}});class _Ee extends p.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,zR.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("LockIcon");return p.default.createElement(n,r)}}var $B=_Ee;class EEe extends p.default.Component{mapStateToProps(t,r){return{state:t,ownProps:(0,zR.default)(r,Object.keys(r.getSystem()))}}render(){const{getComponent:t,ownProps:r}=this.props,n=t("UnlockIcon");return p.default.createElement(n,r)}}var LB=EEe;function LV(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=wEe.bind(null,e),this.rootInjects.preauthorizeBasic=SEe.bind(null,e)},components:{LockAuthIcon:$B,UnlockAuthIcon:LB,LockAuthOperationIcon:$B,UnlockAuthOperationIcon:LB},statePlugins:{auth:{reducers:oEe,actions:tO,selectors:rO,wrapActions:{authorize:vEe,logout:bEe}},configs:{wrapActions:{loaded:yEe}},spec:{wrapActions:{execute:gEe}}}}}function SEe(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 wEe(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 ks=(function(e){var t={};return Ee.d(t,e),t})({JSON_SCHEMA:function(){return Pc},default:function(){return Xa}});const WR="configs_update",JR="configs_toggle";function xEe(e,t){return{type:WR,payload:{[e]:t}}}function AEe(e){return{type:JR,payload:e}}const OEe=()=>()=>{},CEe=e=>t=>{const{fn:{fetch:r}}=t;return r(e)},REe=(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 ks.default.load(o)}catch(c){return u&&u.errActions.newThrownErr(new Error(c)),{}}})(a.text,r))}},TEe=(e,t)=>e.getIn(Array.isArray(t)?t:[t]);var IEe={[WR]:(e,t)=>e.merge((0,G.fromJS)(t.payload)),[JR]:(e,t)=>{const r=t.payload,n=e.get(r);return e.set(r,!n)}};function BV(){return{statePlugins:{configs:{reducers:IEe,actions:nO,selectors:iO}}}}const lx=e=>e?history.pushState(null,null,`#${e}`):window.location.hash="";var jEe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return MQ}});const BB="layout_scroll_to",UB="layout_clear_scroll";var PEe={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),jEe.default.createScroller(t).to(e)}catch(n){console.error(n)}},scrollTo:e=>({type:BB,payload:Array.isArray(e)?e:[e]}),clearScrollTo:()=>({type:UB}),readyToScroll:(e,t)=>r=>{const n=r.layoutSelectors.getScrollToKey();G.default.is(n,(0,G.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:{[BB]:(e,t)=>e.set("scrollToKey",G.default.fromJS(t.payload)),[UB]: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 lx("/");a.length===2?lx(Kc(`/${encodeURIComponent(o)}/${encodeURIComponent(u)}`)):a.length===1&&lx(Kc(`/${encodeURIComponent(o)}`))}catch(i){console.error(i)}}}}}},VB=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return qee}}),kEe=(e,t)=>class extends p.default.Component{constructor(){super(...arguments);X(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 p.default.createElement("span",{ref:this.onLoad},p.default.createElement(e,this.props))}},NEe=(e,t)=>class extends p.default.Component{constructor(){super(...arguments);X(this,"onLoad",i=>{const{tag:s}=this.props,a=["operations-tag",s];t.layoutActions.readyToScroll(a,i)})}render(){return p.default.createElement("span",{ref:this.onLoad},p.default.createElement(e,this.props))}};function UV(){return[PEe,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>(...r)=>{e(...r);const n=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(n)}}}},wrapComponents:{operation:kEe,OperationTag:NEe}}]}var MEe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Bee}});function DEe(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 OO=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Vee}});function qEe(e,{jsSpec:t}){return e}const FEe=[sO,aO];function sc(e){let t={jsSpec:{}};return(0,MEe.default)(FEe,((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 fx={line:0,level:"error",message:"Unknown error"};const VV=(0,ct.createSelector)((e=>e),(e=>e.get("errors",(0,G.List)()))),$Ee=(0,ct.createSelector)(VV,(e=>e.last()));function zV(e){return{statePlugins:{err:{reducers:{[Dm]:(t,{payload:r})=>{let n=Object.assign(fx,r,{type:"thrown"});return t.update("errors",(i=>(i||(0,G.List)()).push((0,G.fromJS)(n)))).update("errors",(i=>sc(i)))},[jR]:(t,{payload:r})=>(r=r.map((n=>(0,G.fromJS)(Object.assign(fx,n,{type:"thrown"})))),t.update("errors",(n=>(n||(0,G.List)()).concat((0,G.fromJS)(r)))).update("errors",(n=>sc(n)))),[PR]:(t,{payload:r})=>{let n=(0,G.fromJS)(r);return n=n.set("type","spec"),t.update("errors",(i=>(i||(0,G.List)()).push((0,G.fromJS)(n)).sortBy((s=>s.get("line"))))).update("errors",(i=>sc(i)))},[kR]:(t,{payload:r})=>(r=r.map((n=>(0,G.fromJS)(Object.assign(fx,n,{type:"spec"})))),t.update("errors",(n=>(n||(0,G.List)()).concat((0,G.fromJS)(r)))).update("errors",(n=>sc(n)))),[NR]:(t,{payload:r})=>{let n=(0,G.fromJS)(Object.assign({},r));return n=n.set("type","auth"),t.update("errors",(i=>(i||(0,G.List)()).push((0,G.fromJS)(n)))).update("errors",(i=>sc(i)))},[MR]:(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})},[DR]:(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:eO,selectors:oO}}}}function LEe(e,t){return e.filter(((r,n)=>n.indexOf(t)!==-1))}function WV(){return{fn:{opsFilter:LEe}}}var Pt=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Lx}}),BEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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),p.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"})),UEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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),p.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"})),VEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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),p.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"})),zEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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),p.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"})),WEe=({className:e=null,width:t=15,height:r=16,...n})=>p.default.createElement("svg",(0,Pt.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),p.default.createElement("g",{transform:"translate(2, -1)"},p.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"}))),JEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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),p.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"})),HEe=({className:e=null,width:t=20,height:r=20,...n})=>p.default.createElement("svg",(0,Pt.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),p.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"})),JV=()=>({components:{ArrowUpIcon:BEe,ArrowDownIcon:UEe,ArrowIcon:VEe,CloseIcon:zEe,CopyIcon:WEe,LockIcon:JEe,UnlockIcon:HEe}});const HR="layout_update_layout",KR="layout_update_filter",GR="layout_update_mode",YR="layout_show";function KEe(e){return{type:HR,payload:e}}function GEe(e){return{type:KR,payload:e}}function YEe(e,t=!0){return e=Eo(e),{type:YR,payload:{thing:e,shown:t}}}function XEe(e,t=""){return e=Eo(e),{type:GR,payload:{thing:e,mode:t}}}var ZEe={[HR]:(e,t)=>e.set("layout",t.payload),[KR]:(e,t)=>e.set("filter",t.payload),[YR]:(e,t)=>{const r=t.payload.shown,n=(0,G.fromJS)(t.payload.thing);return e.update("shown",(0,G.fromJS)({}),(i=>i.set(n,r)))},[GR]:(e,t)=>{let r=t.payload.thing,n=t.payload.mode;return e.setIn(["modes"].concat(r),(n||"")+"")}};const QEe=e=>e.get("layout"),eSe=e=>e.get("filter"),HV=(e,t,r)=>(t=Eo(t),e.get("shown",(0,G.fromJS)({})).get((0,G.fromJS)(t),r)),tSe=(e,t,r="")=>(t=Eo(t),e.getIn(["modes",...t],r)),rSe=(0,ct.createSelector)((e=>e),(e=>!HV(e,"editor"))),nSe=(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 KV(){return{statePlugins:{layout:{reducers:ZEe,actions:uO,selectors:cO},spec:{wrapSelectors:lO}}}}function GV({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 px=!1;function YV(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>(...t)=>(px=!0,e(...t)),updateJsonSpec:(e,t)=>(...r)=>{const n=t.getConfigs().onComplete;return px&&typeof n=="function"&&(setTimeout(n,0),px=!1),e(...r)}}}}}}const zB=e=>{const t="_**[]";return e.indexOf(t)<0?e:e.split(t)[0].trim()},iSe=e=>e==="-d "||/^[_\/-]/g.test(e)?e:"'"+e.replace(/'/g,"'\\''")+"'",sSe=e=>(e=e.replace(/\^/g,"^^").replace(/\\"/g,'\\\\"').replace(/"/g,'""').replace(/\n/g,`^
|
|
318
|
+
`))==="-d "?e.replace(/-d /g,`-d ^
|
|
319
|
+
`):/^[_\/-]/g.test(e)?e:'"'+e+'"',aSe=e=>e==="-d "?e:/\n/.test(e)?`@"
|
|
320
|
+
${e.replace(/`/g,"``").replace(/\$/g,"`$")}
|
|
321
|
+
"@`:/^[_\/-]/.test(e)?e:`'${e.replace(/'/g,"''")}'`,XR=(e,t,r,n="")=>{let i=!1,s="";const a=(...d)=>s+=" "+d.map(t).join(" "),o=(...d)=>s+=d.map(t).join(" "),u=()=>s+=` ${r}`,c=(d=1)=>s+=" ".repeat(d);let l=e.get("headers");s+="curl"+n;const f=e.get("curlOptions");if(G.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 d of e.get("headers").entries()){u(),c();let[g,y]=d;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[d,g]of h.entrySeq()){let y=zB(d);u(),c(),o("-F"),g instanceof sr.File&&typeof g.valueOf()=="string"?a(`${y}=${g.data}${g.type?`;type=${g.type}`:""}`):g instanceof sr.File?a(`${y}=@${g.name}${g.type?`;type=${g.type}`:""}`):a(`${y}=${g}`)}else if(h instanceof sr.File)u(),c(),o(`--data-binary '@${h.name}'`);else{u(),c(),o("-d ");let d=h;G.Map.isMap(d)?o((function(y){let v=[];for(let[_,b]of y.get("body").entrySeq()){let S=zB(_);b instanceof sr.File?v.push(` "${S}": {
|
|
322
|
+
"name": "${b.name}"${b.type?`,
|
|
323
|
+
"type": "${b.type}"`:""}
|
|
324
|
+
}`):v.push(` "${S}": ${JSON.stringify(b,null,2).replace(/(\r\n|\r|\n)/g,`
|
|
325
|
+
`)}`)}return`{
|
|
326
|
+
${v.join(`,
|
|
327
|
+
`)}
|
|
328
|
+
}`})(e)):(typeof d!="string"&&(d=JSON.stringify(d)),o(d))}else h||e.get("method")!=="POST"||(u(),c(),o("-d ''"));return s},oSe=e=>XR(e,aSe,"`\n",".exe"),XV=e=>XR(e,iSe,`\\
|
|
329
|
+
`),uSe=e=>XR(e,sSe,`^
|
|
330
|
+
`),ZR=e=>e||(0,G.Map)(),ZV=(0,ct.createSelector)(ZR,(e=>{const t=e.get("languages"),r=e.get("generators",(0,G.Map)());return!t||t.isEmpty()?r:r.filter(((n,i)=>t.includes(i)))})),cSe=e=>({fn:t})=>ZV(e).map(((r,n)=>{const i=(s=>t[`requestSnippetGenerator_${s}`])(n);return typeof i!="function"?null:r.set("fn",i)})).filter((r=>r)),lSe=(0,ct.createSelector)(ZR,(e=>e.get("activeLanguage"))),fSe=(0,ct.createSelector)(ZR,(e=>e.get("defaultExpanded")));var kt=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Ste}}),$m=(function(e){var t={};return Ee.d(t,e),t})({CopyToClipboard:function(){return Cte.CopyToClipboard}});const pSe={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"},dSe={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 hSe=({request:e,requestSnippetsSelectors:t,getComponent:r})=>{var _;const n=(0,p.useRef)(null),i=r("ArrowUpIcon"),s=r("ArrowDownIcon"),a=r("SyntaxHighlighter",!0),[o,u]=(0,p.useState)((_=t.getSnippetGenerators())==null?void 0:_.keySeq().first()),[c,l]=(0,p.useState)(t==null?void 0:t.getDefaultExpanded()),f=t.getSnippetGenerators(),h=f.get(o),d=h.get("fn")(e),g=()=>{l(!c)},y=b=>b===o?dSe:pSe,v=b=>{const{target:S,deltaY:w}=b,{scrollHeight:E,offsetHeight:A,scrollTop:R}=S;E>A&&(R===0&&w<0||A+R>=E&&w>0)&&b.preventDefault()};return(0,p.useEffect)((()=>{}),[]),(0,p.useEffect)((()=>{const b=Array.from(n.current.childNodes).filter((S=>{var w;return!!S.nodeType&&((w=S.classList)==null?void 0:w.contains("curl-command"))}));return b.forEach((S=>S.addEventListener("mousewheel",v,{passive:!1}))),()=>{b.forEach((S=>S.removeEventListener("mousewheel",v)))}}),[e]),p.default.createElement("div",{className:"request-snippets",ref:n},p.default.createElement("div",{style:{width:"100%",display:"flex",justifyContent:"flex-start",alignItems:"center",marginBottom:"15px"}},p.default.createElement("h4",{onClick:()=>g(),style:{cursor:"pointer"}},"Snippets"),p.default.createElement("button",{onClick:()=>g(),style:{border:"none",background:"none"},title:c?"Collapse operation":"Expand operation"},c?p.default.createElement(s,{className:"arrow",width:"10",height:"10"}):p.default.createElement(i,{className:"arrow",width:"10",height:"10"}))),c&&p.default.createElement("div",{className:"curl-command"},p.default.createElement("div",{style:{paddingLeft:"15px",paddingRight:"10px",width:"100%",display:"flex"}},f.entrySeq().map((([b,S])=>p.default.createElement("div",{className:(0,kt.default)("btn",{active:b===o}),style:y(b),key:b,onClick:()=>(w=>{o!==w&&u(w)})(b)},p.default.createElement("h4",{style:b===o?{color:"white"}:{}},S.get("title")))))),p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement($m.CopyToClipboard,{text:d},p.default.createElement("button",null))),p.default.createElement("div",null,p.default.createElement(a,{language:h.get("syntax"),className:"curl microlight",renderPlainText:({children:b,PlainTextViewer:S})=>p.default.createElement(S,{className:"curl"},b)},d))))},QV=()=>({components:{RequestSnippets:hSe},fn:{requestSnippetGenerator_curl_bash:XV,requestSnippetGenerator_curl_cmd:uSe,requestSnippetGenerator_curl_powershell:oSe},statePlugins:{requestSnippets:{selectors:fO}}});const sh=class sh extends p.Component{constructor(r,n){super(r,n);X(this,"toggleCollapsed",()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})});X(this,"onLoad",r=>{if(r&&this.props.layoutSelectors){const n=this.props.layoutSelectors.getScrollToKey();G.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||sh.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?p.default.createElement("span",{className:n||""},this.props.children):p.default.createElement("span",{className:n||"",ref:this.onLoad},p.default.createElement("button",{"aria-expanded":this.state.expanded,className:"model-box-control",onClick:this.toggleCollapsed},r&&p.default.createElement("span",{className:"pointer"},r),p.default.createElement("span",{className:"model-toggle"+(this.state.expanded?"":" collapsed")}),!this.state.expanded&&p.default.createElement("span",null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}};X(sh,"defaultProps",{collapsedContent:"{...}",expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:G.default.List([])});let CO=sh;const mSe=({initialTab:e,isExecute:t,schema:r,example:n})=>{const i=(0,p.useMemo)((()=>({example:"example",model:"model"})),[]),s=(0,p.useMemo)((()=>Object.keys(i)),[i]).includes(e)&&r&&!t?e:i.example,a=(l=>{const f=(0,p.useRef)();return(0,p.useEffect)((()=>{f.current=l})),f.current})(t),[o,u]=(0,p.useState)(s),c=(0,p.useCallback)((l=>{u(l.target.dataset.name)}),[]);return(0,p.useEffect)((()=>{a&&!t&&n&&u(i.example)}),[a,t,n]),{activeTab:o,onTabChange:c,tabs:i}};var gSe=({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),d=Jo()(5).toString("base64"),g=Jo()(5).toString("base64"),y=Jo()(5).toString("base64"),v=Jo()(5).toString("base64"),_=u.isOAS3(),{activeTab:b,tabs:S,onTabChange:w}=mSe({initialTab:c,isExecute:r,schema:e,example:t});return p.default.createElement("div",{className:"model-example"},p.default.createElement("ul",{className:"tab",role:"tablist"},p.default.createElement("li",{className:(0,kt.default)("tabitem",{active:b===S.example}),role:"presentation"},p.default.createElement("button",{"aria-controls":g,"aria-selected":b===S.example,className:"tablinks","data-name":"example",id:d,onClick:w,role:"tab"},r?"Edit Value":"Example Value")),e&&p.default.createElement("li",{className:(0,kt.default)("tabitem",{active:b===S.model}),role:"presentation"},p.default.createElement("button",{"aria-controls":v,"aria-selected":b===S.model,className:(0,kt.default)("tablinks",{inactive:r}),"data-name":"model",id:y,onClick:w,role:"tab"},_?"Schema":"Model"))),b===S.example&&p.default.createElement("div",{"aria-hidden":b!==S.example,"aria-labelledby":d,"data-name":"examplePanel",id:g,role:"tabpanel",tabIndex:"0"},t||p.default.createElement(h,null,"(no example available")),b===S.model&&p.default.createElement("div",{className:"model-container","aria-hidden":b===S.example,"aria-labelledby":y,"data-name":"modelPanel",id:v,role:"tabpanel",tabIndex:"0"},p.default.createElement(f,{schema:e,getComponent:a,getConfigs:o,specSelectors:u,expandDepth:l,specPath:n,includeReadOnly:s,includeWriteOnly:i})))};class ySe extends p.Component{constructor(){super(...arguments);X(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)),p.default.createElement("div",{className:"model-box"},p.default.createElement(i,(0,Pt.default)({},this.props,{getConfigs:n,expanded:s,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||0})))}}var WB,vSe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Lte}});function RO(){return RO=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},RO.apply(null,arguments)}var ez=e=>p.createElement("svg",RO({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),WB||(WB=p.createElement("circle",{cx:50,cy:50,r:35,fill:"none",stroke:"#555",strokeDasharray:"164.93361431346415 56.97787143782138",strokeWidth:10},p.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 JB=e=>{const t=e.replace(/~1/g,"/").replace(/~0/g,"~");try{return decodeURIComponent(t)}catch{return t}};class tz extends vSe.default{constructor(){super(...arguments);X(this,"getModelName",r=>r.indexOf("#/definitions/")!==-1?JB(r.replace(/^.*#\/definitions\//,"")):r.indexOf("#/components/schemas/")!==-1?JB(r.replace(/^.*#\/components\/schemas\//,"")):void 0);X(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 d=r("ObjectModel"),g=r("ArrayModel"),y=r("PrimitiveModel");let v="object",_=s&&s.get("$$ref"),b=s&&s.get("$ref");if(!o&&_&&(o=this.getModelName(_)),b){const w=this.getModelName(b),E=this.getRefSchema(w);G.Map.isMap(E)?(s=E.mergeDeep(s),_||(s=s.set("$$ref",b),_=b)):G.Map.isMap(s)&&s.size===1&&(s=null,o=b)}if(!s)return p.default.createElement("span",{className:"model model-title"},p.default.createElement("span",{className:"model-title__text"},l||o),!b&&p.default.createElement(ez,{height:"20px",width:"20px"}));const S=i.isOAS3()&&s.get("deprecated");switch(u=u!==void 0?u:!!_,v=s&&s.get("type")||v,v){case"object":return p.default.createElement(d,(0,Pt.default)({className:"object"},this.props,{specPath:c,getConfigs:n,schema:s,name:o,deprecated:S,isRef:u,includeReadOnly:f,includeWriteOnly:h}));case"array":return p.default.createElement(g,(0,Pt.default)({className:"array"},this.props,{getConfigs:n,schema:s,name:o,deprecated:S,required:a,includeReadOnly:f,includeWriteOnly:h}));default:return p.default.createElement(y,(0,Pt.default)({},this.props,{getComponent:r,getConfigs:n,schema:s,name:o,deprecated:S,required:a}))}}}X(tz,"propTypes",{schema:VB.default.map.isRequired,getComponent:In.default.func.isRequired,getConfigs:In.default.func.isRequired,specSelectors:In.default.object.isRequired,name:In.default.string,displayName:In.default.string,isRef:In.default.bool,required:In.default.bool,expandDepth:In.default.number,depth:In.default.number,specPath:VB.default.list.isRequired,includeReadOnly:In.default.bool,includeWriteOnly:In.default.bool});class bSe extends p.Component{constructor(){super(...arguments);X(this,"getSchemaBasePath",()=>this.props.specSelectors.isOAS3()?["components","schemas"]:["definitions"]);X(this,"getCollapsedContent",()=>" ");X(this,"handleToggle",(r,n)=>{const{layoutActions:i}=this.props;i.show([...this.getSchemaBasePath(),r],n),n&&this.props.specActions.requestResolvedSubtree([...this.getSchemaBasePath(),r])});X(this,"onLoadModels",r=>{r&&this.props.layoutActions.readyToScroll(this.getSchemaBasePath(),r)});X(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(),d=n("ModelWrapper"),g=n("Collapse"),y=n("ModelCollapse"),v=n("JumpToPath",!0),_=n("ArrowUpIcon"),b=n("ArrowDownIcon");return p.default.createElement("section",{className:f?"models is-open":"models",ref:this.onLoadModels},p.default.createElement("h4",null,p.default.createElement("button",{"aria-expanded":f,className:"models-control",onClick:()=>s.show(l,!f)},p.default.createElement("span",null,h?"Schemas":"Models"),f?p.default.createElement(_,null):p.default.createElement(b,null))),p.default.createElement(g,{isOpened:f},o.entrySeq().map((([S])=>{const w=[...l,S],E=G.default.List(w),A=r.specResolvedSubtree(w),R=r.specJson().getIn(w),I=G.Map.isMap(A)?A:G.default.Map(),O=G.Map.isMap(R)?R:G.default.Map(),D=I.get("title")||O.get("title")||S,P=i.isShown(w,!1);P&&I.size===0&&O.size>0&&this.props.specActions.requestResolvedSubtree(w);const F=p.default.createElement(d,{name:S,expandDepth:c,schema:I||G.default.Map(),displayName:D,fullPath:w,specPath:E,getComponent:n,specSelectors:r,getConfigs:a,layoutSelectors:i,layoutActions:s,includeReadOnly:!0,includeWriteOnly:!0}),M=p.default.createElement("span",{className:"model-box"},p.default.createElement("span",{className:"model model-title"},D));return p.default.createElement("div",{id:`model-${S}`,className:"model-container",key:`models-section-${S}`,"data-name":S,ref:this.onLoadModel},p.default.createElement("span",{className:"models-jump-to-path"},p.default.createElement(v,{path:E})),p.default.createElement(y,{classes:"model-box",collapsedContent:this.getCollapsedContent(S),onToggle:this.handleToggle,title:M,displayName:D,modelName:S,specPath:E,layoutSelectors:i,layoutActions:s,hideSelfOnExpand:!0,expanded:c>0&&P},F))})).toArray()))}}var _Se=({value:e,getComponent:t})=>{let r=t("ModelCollapse"),n=p.default.createElement("span",null,"Array [ ",e.count()," ]");return p.default.createElement("span",{className:"prop-enum"},"Enum:",p.default.createElement("br",null),p.default.createElement(r,{collapsedContent:n},"[ ",e.map(String).join(", ")," ]"))};function TO(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function ESe(e,t){return e?TO(e)?(function(n){return n.match(/^\/\//i)?`${window.location.protocol}${n}`:n})(e):new URL(e,t).href:t}function Bi(e,t,{selectedServer:r=""}={}){try{return(function(i,s,{selectedServer:a=""}={}){if(!i)return;if(TO(i))return i;const o=ESe(a,s);return TO(o)?new URL(i,o).href:new URL(i,window.location.href).href})(e,t,{selectedServer:r})}catch{return}}function Sr(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("./")||t.startsWith("../")?`${t.match(/^(\.\.?\/)+/)[0]}${i.pathname.substring(1)}${i.search}${i.hash}`:`${i.pathname.substring(1)}${i.search}${i.hash}`:String(i)}catch{return r}}class SSe extends p.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:d,includeReadOnly:g,includeWriteOnly:y}=f;const{isOAS3:v}=h,_=o>2||o===2&&l.last()!=="items";if(!t)return null;const{showExtensions:b}=a(),S=b?Ia(t):(0,G.List)();let w=t.get("description"),E=t.get("properties"),A=t.get("additionalProperties"),R=t.get("title")||n||r,I=t.get("required"),O=t.filter(((V,fe)=>["maxProperties","minProperties","nullable","example"].indexOf(fe)!==-1)),D=t.get("deprecated"),P=t.getIn(["externalDocs","url"]),F=t.getIn(["externalDocs","description"]);const M=s("JumpToPath",!0),K=s("Markdown",!0),te=s("Model"),J=s("ModelCollapse"),Q=s("Property"),re=s("Link"),ne=s("ModelExtensions"),U=()=>p.default.createElement("span",{className:"model-jump-to-path"},p.default.createElement(M,{path:l})),H=p.default.createElement("span",null,p.default.createElement("span",null,"{"),"...",p.default.createElement("span",null,"}"),i?p.default.createElement(U,null):""),ie=h.isOAS3()?t.get("allOf"):null,ue=h.isOAS3()?t.get("anyOf"):null,le=h.isOAS3()?t.get("oneOf"):null,ee=h.isOAS3()?t.get("not"):null,z=R&&p.default.createElement("span",{className:"model-title"},i&&t.get("$$ref")&&p.default.createElement("span",{className:(0,kt.default)("model-hint",{"model-hint--embedded":_})},t.get("$$ref")),p.default.createElement("span",{className:"model-title__text"},R));return p.default.createElement("span",{className:"model"},p.default.createElement(J,{modelName:r,title:z,onToggle:u,expanded:!!c||o<=d,collapsedContent:H},p.default.createElement("span",{className:"brace-open object"},"{"),i?p.default.createElement(U,null):null,p.default.createElement("span",{className:"inner-object"},p.default.createElement("table",{className:"model"},p.default.createElement("tbody",null,w?p.default.createElement("tr",{className:"description"},p.default.createElement("td",null,"description:"),p.default.createElement("td",null,p.default.createElement(K,{source:w}))):null,P&&p.default.createElement("tr",{className:"external-docs"},p.default.createElement("td",null,"externalDocs:"),p.default.createElement("td",null,p.default.createElement(re,{target:"_blank",href:Sr(P)},F||P))),D?p.default.createElement("tr",{className:"property"},p.default.createElement("td",null,"deprecated:"),p.default.createElement("td",null,"true")):null,E&&E.size?E.entrySeq().filter((([,V])=>(!V.get("readOnly")||g)&&(!V.get("writeOnly")||y))).map((([V,fe])=>{let me=v()&&fe.get("deprecated"),Re=G.List.isList(I)&&I.contains(V),Ne=["property-row"];return me&&Ne.push("deprecated"),Re&&Ne.push("required"),p.default.createElement("tr",{key:V,className:Ne.join(" ")},p.default.createElement("td",null,V,Re&&p.default.createElement("span",{className:"star"},"*")),p.default.createElement("td",null,p.default.createElement(te,(0,Pt.default)({key:`object-${r}-${V}_${fe}`},f,{required:Re,getComponent:s,specPath:l.push("properties",V),getConfigs:a,schema:fe,depth:o+1}))))})).toArray():null,S.size===0?null:p.default.createElement(p.default.Fragment,null,p.default.createElement("tr",null,p.default.createElement("td",null," ")),p.default.createElement(ne,{extensions:S,propClass:"extension"})),A&&A.size?p.default.createElement("tr",null,p.default.createElement("td",null,"< * >:"),p.default.createElement("td",null,p.default.createElement(te,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("additionalProperties"),getConfigs:a,schema:A,depth:o+1})))):null,ie?p.default.createElement("tr",null,p.default.createElement("td",null,"allOf ->"),p.default.createElement("td",null,ie.map(((V,fe)=>p.default.createElement("div",{key:fe},p.default.createElement(te,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("allOf",fe),getConfigs:a,schema:V,depth:o+1}))))))):null,ue?p.default.createElement("tr",null,p.default.createElement("td",null,"anyOf ->"),p.default.createElement("td",null,ue.map(((V,fe)=>p.default.createElement("div",{key:fe},p.default.createElement(te,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("anyOf",fe),getConfigs:a,schema:V,depth:o+1}))))))):null,le?p.default.createElement("tr",null,p.default.createElement("td",null,"oneOf ->"),p.default.createElement("td",null,le.map(((V,fe)=>p.default.createElement("div",{key:fe},p.default.createElement(te,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("oneOf",fe),getConfigs:a,schema:V,depth:o+1}))))))):null,ee?p.default.createElement("tr",null,p.default.createElement("td",null,"not ->"),p.default.createElement("td",null,p.default.createElement("div",null,p.default.createElement(te,(0,Pt.default)({},f,{required:!1,getComponent:s,specPath:l.push("not"),getConfigs:a,schema:ee,depth:o+1}))))):null))),p.default.createElement("span",{className:"brace-close"},"}")),O.size?O.entrySeq().map((([V,fe])=>p.default.createElement(Q,{key:`${V}-${fe}`,propKey:V,propVal:fe,propClass:"property"}))):null)}}class wSe extends p.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(((E,A)=>["type","items","description","$$ref","externalDocs"].indexOf(A)===-1)),d=n.getIn(["externalDocs","url"]),g=n.getIn(["externalDocs","description"]);const y=t("Markdown",!0),v=t("ModelCollapse"),_=t("Model"),b=t("Property"),S=t("Link"),w=f&&p.default.createElement("span",{className:"model-title"},p.default.createElement("span",{className:"model-title__text"},f));return p.default.createElement("span",{className:"model"},p.default.createElement(v,{title:w,expanded:i<=s,collapsedContent:"[...]"},"[",h.size?h.entrySeq().map((([E,A])=>p.default.createElement(b,{key:`${E}-${A}`,propKey:E,propVal:A,propClass:"property"}))):null,c?p.default.createElement(y,{source:c}):h.size?p.default.createElement("div",{className:"markdown"}):null,d&&p.default.createElement("div",{className:"external-docs"},p.default.createElement(S,{target:"_blank",href:Sr(d)},g||d)),p.default.createElement("span",null,p.default.createElement(_,(0,Pt.default)({},this.props,{getConfigs:r,specPath:u.push("items"),name:null,schema:l,required:!1,depth:i+1}))),"]"))}}const bp="property primitive";class xSe extends p.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 p.default.createElement("div",null);let c=t.get("type"),l=t.get("format"),f=t.get("xml"),h=t.get("enum"),d=t.get("title")||s||i,g=t.get("description");const y=Ia(t);let v=t.filter(((D,P)=>["enum","type","format","description","$$ref","externalDocs"].indexOf(P)===-1)).filterNot(((D,P)=>y.has(P))),_=t.getIn(["externalDocs","url"]),b=t.getIn(["externalDocs","description"]);const S=r("Markdown",!0),w=r("EnumModel"),E=r("Property"),A=r("ModelCollapse"),R=r("Link"),I=r("ModelExtensions"),O=d&&p.default.createElement("span",{className:"model-title"},p.default.createElement("span",{className:"model-title__text"},d));return p.default.createElement("span",{className:"model"},p.default.createElement(A,{title:O,expanded:a<=o,collapsedContent:"[...]"},p.default.createElement("span",{className:"prop"},i&&a>1&&p.default.createElement("span",{className:"prop-name"},d),p.default.createElement("span",{className:"prop-type"},c),l&&p.default.createElement("span",{className:"prop-format"},"($",l,")"),v.size?v.entrySeq().map((([D,P])=>p.default.createElement(E,{key:`${D}-${P}`,propKey:D,propVal:P,propClass:bp}))):null,u&&y.size>0?p.default.createElement(I,{extensions:y,propClass:`${bp} extension`}):null,g?p.default.createElement(S,{source:g}):null,_&&p.default.createElement("div",{className:"external-docs"},p.default.createElement(R,{target:"_blank",href:Sr(_)},b||_)),f&&f.size?p.default.createElement("span",null,p.default.createElement("br",null),p.default.createElement("span",{className:bp},"xml:"),f.entrySeq().map((([D,P])=>p.default.createElement("span",{key:`${D}-${P}`,className:bp},p.default.createElement("br",null)," ",D,": ",String(P)))).toArray()):null,h&&p.default.createElement(w,{value:h,getComponent:r}))))}}class ASe extends p.default.Component{constructor(){super(...arguments);X(this,"onChange",r=>{this.setScheme(r.target.value)});X(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 p.default.createElement("label",{htmlFor:"schemes"},p.default.createElement("span",{className:"schemes-title"},"Schemes"),p.default.createElement("select",{onChange:this.onChange,value:n,id:"schemes"},r.valueSeq().map((i=>p.default.createElement("option",{value:i,key:i},i))).toArray()))}}class OSe extends p.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?p.default.createElement(a,{currentScheme:i,schemes:s,specActions:t}):null}}var rz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Wte}});const So={value:"",onChange:()=>{},schema:{},keyName:"",required:!1,errors:(0,G.List)()};class nz extends p.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.getSchemaObjectType(t),f=a.isFileUploadIntended(t);let h=g=>s(g,!1,{failSilently:!0}),d=c?h(u?`JsonSchema_${c}_${u}`:`JsonSchema_${c}`):s("JsonSchema_string");return f||!G.List.isList(c)||l!=="array"&&l!=="object"||(d=s("JsonSchema_object")),d||(d=s("JsonSchema_string")),p.default.createElement(d,(0,Pt.default)({},this.props,{errors:r,fn:a,getComponent:s,value:n,onChange:i,schema:t,disabled:o}))}}X(nz,"defaultProps",So);class iz extends p.Component{constructor(){super(...arguments);X(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)});X(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?(Of(n)||typeof n=="object")&&(n=Wr(n)):n="",s=s.toJS?s.toJS():[],c){const y=r("Select");return p.default.createElement(y,{className:s.length?"invalid":"",title:s.length?s:"",allowedValues:[...c],value:n,allowEmptyValue:!a,disabled:u,onChange:this.onEnumChange})}const d=u||h&&h==="formData"&&!("FormData"in window),g=r("Input");return f&&f==="file"?p.default.createElement(g,{type:"file",className:s.length?"invalid":"",title:s.length?s:"",onChange:this.onChange,disabled:d}):p.default.createElement(rz.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:d})}}X(iz,"defaultProps",So);class sz extends p.PureComponent{constructor(r,n){super(r,n);X(this,"onChange",()=>{this.props.onChange(this.state.value)});X(this,"onItemChange",(r,n)=>{this.setState((({value:i})=>({value:i.set(n,r)})),this.onChange)});X(this,"removeItem",r=>{this.setState((({value:n})=>({value:n.delete(r)})),this.onChange)});X(this,"addItem",()=>{const{fn:r}=this.props;let n=dx(this.state.value);this.setState((()=>({value:n.push(r.getSampleSchema(this.state.schema.get("items"),!1,{includeWriteOnly:!0}))})),this.onChange)});X(this,"onEnumChange",r=>{this.setState((()=>({value:r})),this.onChange)});this.state={value:dx(r.value),schema:r.schema}}UNSAFE_componentWillReceiveProps(r){const n=dx(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"]),d=i.get("items"),g=a.getSchemaObjectType(d),y=a.getSchemaObjectTypeLabel(d),v=i.getIn(["items","format"]),_=i.get("items");let b,S=!1,w=g==="file"||g==="string"&&v==="binary";if(g&&v?b=r(`JsonSchema_${g}_${v}`):g!=="boolean"&&g!=="array"&&g!=="object"||(b=r(`JsonSchema_${g}`)),!G.List.isList(d==null?void 0:d.get("type"))||g!=="array"&&g!=="object"||(b=r("JsonSchema_object")),b||w||(S=!0),h){const A=r("Select");return p.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 E=r("Button");return p.default.createElement("div",{className:"json-schema-array"},f?l.map(((A,R)=>{const I=(0,G.fromJS)([...s.filter((O=>O.index===R)).map((O=>O.error))]);return p.default.createElement("div",{key:R,className:"json-schema-form-item"},w?p.default.createElement(eT,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:I,getComponent:r}):S?p.default.createElement(QR,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:I}):p.default.createElement(b,(0,Pt.default)({},this.props,{value:A,onChange:O=>this.onItemChange(O,R),disabled:o,errors:I,schema:_,getComponent:r,fn:a})),o?null:p.default.createElement(E,{className:`btn btn-sm json-schema-form-item-remove ${c.length?"invalid":null}`,title:c.length?c:"",onClick:()=>this.removeItem(R)}," - "))})):null,o?null:p.default.createElement(E,{className:`btn btn-sm json-schema-form-item-add ${u.length?"invalid":null}`,title:u.length?u:"",onClick:this.addItem},"Add ",y," item"))}}X(sz,"defaultProps",So);class QR extends p.Component{constructor(){super(...arguments);X(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?(Of(r)||typeof r=="object")&&(r=Wr(r)):r="",n=n.toJS?n.toJS():[],p.default.createElement(rz.default,{type:"text",className:n.length?"invalid":"",title:n.length?n:"",value:r,minLength:0,debounceTimeout:350,placeholder:i,onChange:this.onChange,disabled:s})}}X(QR,"defaultProps",So);class eT extends p.Component{constructor(){super(...arguments);X(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 p.default.createElement(s,{type:"file",className:n.length?"invalid":"",title:n.length?n:"",onChange:this.onFileChange,disabled:a})}}X(eT,"defaultProps",So);class az extends p.Component{constructor(){super(...arguments);X(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 p.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})}}X(az,"defaultProps",So);const CSe=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 oz extends p.PureComponent{constructor(){super();X(this,"onChange",r=>{this.props.onChange(r)});X(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:[],p.default.createElement("div",null,p.default.createElement(a,{className:(0,kt.default)({invalid:i.length}),title:i.length?CSe(i).join(", "):"",value:Wr(n),disabled:s,onChange:this.handleOnChange}))}}X(oz,"defaultProps",So);function dx(e){return G.List.isList(e)?e:Array.isArray(e)?(0,G.fromJS)(e):(0,G.List)()}const RSe=({extensions:e,propClass:t=""})=>e.entrySeq().map((([r,n])=>{const i=gu(n)??null;return p.default.createElement("tr",{key:r,className:t},p.default.createElement("td",null,r),p.default.createElement("td",null,JSON.stringify(i)))})).toArray();var Fs=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Hte}});const TSe=(e,t)=>{const r=G.Map.isMap(e);if(!r&&!(0,Fs.default)(e))return!1;const n=r?e.get("type"):e.type;return t===n||Array.isArray(t)&&t.includes(n)},uz=(e,t=new WeakSet)=>{if(e==null||t.has(e))return"any";t.add(e);const{type:r,items:n}=e;return Object.hasOwn(e,"items")?n?`array<${uz(n,t)}>`:"array<any>":r},ISe=e=>uz(gu(e));var cz=()=>({components:{modelExample:gSe,ModelWrapper:ySe,ModelCollapse:CO,Model:tz,Models:bSe,EnumModel:_Se,ObjectModel:SSe,ArrayModel:wSe,PrimitiveModel:xSe,ModelExtensions:RSe,schemes:ASe,SchemesContainer:OSe,...pO},fn:{hasSchemaType:TSe,getSchemaObjectTypeLabel:ISe}}),jSe=Ee(123),lz=Ee.n(jSe),fz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ere}}),as=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return nre}});const hx=e=>t=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((r,n)=>r===t[n])),PSe=(...e)=>e;class kSe extends Map{delete(t){const r=Array.from(this.keys()).find(hx(t));return super.delete(r)}get(t){const r=Array.from(this.keys()).find(hx(t));return super.get(r)}has(t){return Array.from(this.keys()).findIndex(hx(t))!==-1}}var Rf=(e,t=PSe)=>{const{Cache:r}=gc.default;gc.default.Cache=kSe;const n=(0,gc.default)(e,t);return gc.default.Cache=r,n};const HB={string:e=>e.pattern?(t=>{try{const r=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),n=t.replace(r,"100"),i=new fz.default(n);return i.max=100,i.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_time:()=>new Date().toISOString().substring(11),string_uuid:()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",string_hostname:()=>"example.com",string_ipv4:()=>"198.51.100.42",string_ipv6:()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",number:()=>0,number_float:()=>0,integer:()=>0,boolean:e=>typeof e.default!="boolean"||e.default},KB=e=>{e=Ua(e);let{type:t,format:r}=e,n=HB[`${t}_${r}`]||HB[t];return qs(n)?n(e):"Unknown Type: "+e.type},NSe=e=>DV(e,"$$ref",(t=>typeof t=="string"&&t.indexOf("#")>-1)),pz=["maxProperties","minProperties"],dz=["minItems","maxItems"],hz=["minimum","maximum","exclusiveMinimum","exclusiveMaximum"],MSe=["minLength","maxLength"],Go=(e,t,r={})=>{const n={...e};if(["example","default","enum","xml","type",...pz,...dz,...hz,...MSe].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=Ua(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=Go(n.items,t.items,r)),n},pi=(e,t={},r=void 0,n=!1)=>{e&&qs(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 M=Ua(s?e.oneOf[0]:e.anyOf[0]);if(!(e=Go(e,M,t)).xml&&M.xml&&(e.xml=M.xml),e.example!==void 0&&M.example!==void 0)i=!0;else if(M.properties){e.properties||(e.properties={});let K=Ua(M.properties);for(let te in K)Object.prototype.hasOwnProperty.call(K,te)&&(K[te]&&K[te].deprecated||K[te]&&K[te].readOnly&&!t.includeReadOnly||K[te]&&K[te].writeOnly&&!t.includeWriteOnly||e.properties[te]||(e.properties[te]=K[te],!M.required&&Array.isArray(M.required)&&M.required.indexOf(te)!==-1&&(e.required?e.required.push(te):e.required=[te])))}}const o={};let{xml:u,type:c,example:l,properties:f,additionalProperties:h,items:d}=e||{},{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:_,prefix:b,namespace:S}=u,w={};n&&(_=_||"notagname",v=(b?b+":":"")+_,S)&&(o[b?"xmlns:"+b:"xmlns"]=S),n&&(w[v]=[]);const E=M=>M.some((K=>Object.prototype.hasOwnProperty.call(e,K)));e&&!c&&(f||h||E(pz)?c="object":d||E(dz)?c="array":E(hz)?(c="number",e.type="number"):i||e.enum||(c="string",e.type="string"));const A=M=>{if((e==null?void 0:e.maxItems)!=null&&(M=M.slice(0,e==null?void 0:e.maxItems)),(e==null?void 0:e.minItems)!=null){let K=0;for(;M.length<(e==null?void 0:e.minItems);)M.push(M[K++%M.length])}return M},R=Ua(f);let I,O=0;const D=()=>e&&e.maxProperties!==null&&e.maxProperties!==void 0&&O>=e.maxProperties,P=M=>!e||e.maxProperties===null||e.maxProperties===void 0||!D()&&(!(K=>!(e&&e.required&&e.required.length&&e.required.includes(K)))(M)||e.maxProperties-O-(()=>{if(!e||!e.required)return 0;let K=0;return n?e.required.forEach((te=>K+=w[te]===void 0?0:1)):e.required.forEach((te=>{var J;return K+=((J=w[v])==null?void 0:J.find((Q=>Q[te]!==void 0)))===void 0?0:1})),e.required.length-K})()>0);if(I=n?(M,K=void 0)=>{if(e&&R[M]){if(R[M].xml=R[M].xml||{},R[M].xml.attribute){const J=Array.isArray(R[M].enum)?R[M].enum[0]:void 0,Q=R[M].example,re=R[M].default;return void(o[R[M].xml.name||M]=Q!==void 0?Q:re!==void 0?re:J!==void 0?J:KB(R[M]))}R[M].xml.name=R[M].xml.name||M}else R[M]||h===!1||(R[M]={xml:{name:M}});let te=pi(e&&R[M]||void 0,t,K,n);P(M)&&(O++,Array.isArray(te)?w[v]=w[v].concat(te):w[v].push(te))}:(M,K)=>{if(P(M)){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===M){for(let te in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[te])!==-1){w[M]=te;break}}else w[M]=pi(R[M],t,K,n);O++}},i){let M;if(M=NSe(r!==void 0?r:l!==void 0?l:e.default),!n){if(typeof M=="number"&&c==="string")return`${M}`;if(typeof M!="string"||c==="string")return M;try{return JSON.parse(M)}catch{return M}}if(e||(c=Array.isArray(M)?"array":typeof M),c==="array"){if(!Array.isArray(M)){if(typeof M=="string")return M;M=[M]}const K=e?e.items:void 0;K&&(K.xml=K.xml||u||{},K.xml.name=K.xml.name||u.name);let te=M.map((J=>pi(K,t,J,n)));return te=A(te),u.wrapped?(w[v]=te,(0,as.default)(o)||w[v].push({_attr:o})):w=te,w}if(c==="object"){if(typeof M=="string")return M;for(let K in M)Object.prototype.hasOwnProperty.call(M,K)&&(e&&R[K]&&R[K].readOnly&&!g||e&&R[K]&&R[K].writeOnly&&!y||(e&&R[K]&&R[K].xml&&R[K].xml.attribute?o[R[K].xml.name||K]=M[K]:I(K,M[K])));return(0,as.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,as.default)(o)?M:[{_attr:o},M],w}if(c==="object"){for(let M in R)Object.prototype.hasOwnProperty.call(R,M)&&(R[M]&&R[M].deprecated||R[M]&&R[M].readOnly&&!g||R[M]&&R[M].writeOnly&&!y||I(M));if(n&&o&&w[v].push({_attr:o}),D())return w;if(h===!0)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},O++;else if(h){const M=Ua(h),K=pi(M,t,void 0,n);if(n&&M.xml&&M.xml.name&&M.xml.name!=="notagname")w[v].push(K);else{const te=M["x-additionalPropertiesName"]||"additionalProp",J=e.minProperties!==null&&e.minProperties!==void 0&&O<e.minProperties?e.minProperties-O:3;for(let Q=1;Q<=J;Q++){if(D())return w;if(n){const re={};re[te+Q]=K.notagname,w[v].push(re)}else w[te+Q]=K;O++}}}return w}if(c==="array"){if(!d)return;let M;if(n&&(d.xml=d.xml||(e==null?void 0:e.xml)||{},d.xml.name=d.xml.name||u.name),Array.isArray(d.anyOf))M=d.anyOf.map((K=>pi(Go(K,d,t),t,void 0,n)));else if(Array.isArray(d.oneOf))M=d.oneOf.map((K=>pi(Go(K,d,t),t,void 0,n)));else{if(!(!n||n&&u.wrapped))return pi(d,t,void 0,n);M=[pi(d,t,void 0,n)]}return M=A(M),n&&u.wrapped?(w[v]=M,(0,as.default)(o)||w[v].push({_attr:o}),w):M}let F;if(e&&Array.isArray(e.enum))F=Eo(e.enum)[0];else{if(!e)return;if(F=KB(e),typeof F=="number"){let M=e.minimum;M!=null&&(e.exclusiveMinimum&&M++,F=M);let K=e.maximum;K!=null&&(e.exclusiveMaximum&&K--,F=K)}if(typeof F=="string"&&(e.maxLength!==null&&e.maxLength!==void 0&&(F=F.slice(0,e.maxLength)),e.minLength!==null&&e.minLength!==void 0)){let M=0;for(;F.length<e.minLength;)F+=F[M++%F.length]}}if(c!=="file")return n?(w[v]=(0,as.default)(o)?F:[{_attr:o},F],w):F},GB=e=>(e.schema&&(e=e.schema),e.properties&&(e.type="object"),e),IO=(e,t,r)=>{const n=pi(e,t,r,!0);if(n)return typeof n=="string"?n:lz()(n,{declaration:!0,indent:" "})},jO=(e,t,r)=>pi(e,t,r,!1),mz=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],YB=Rf(IO,mz),XB=Rf(jO,mz),DSe=e=>{var t;return((t=gu(e))==null?void 0:t.type)??"string"},qSe=[{when:/json/,shouldStringifyTypes:["string"]}],FSe=["object"];var $Se=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.memoizedSampleFromSchema(t,r,i),o=typeof a,u=qSe.reduce(((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c),FSe);return(0,kV.default)(u,(c=>c===o))?JSON.stringify(a,null,2):a},LSe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.getJsonSampleSchema(t,r,n,i);let o;try{o=ks.default.dump(ks.default.load(a),{lineWidth:-1},{schema:ks.JSON_SCHEMA}),o[o.length-1]===`
|
|
331
|
+
`&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},BSe=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"?>
|
|
332
|
+
<!-- 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)},USe=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)},gz=({getSystem:e})=>{const t=$Se(e),r=LSe(e),n=BSe(e),i=USe(e);return{fn:{jsonSchema5:{inferSchema:GB,sampleFromSchema:jO,sampleFromSchemaGeneric:pi,createXMLExample:IO,memoizedSampleFromSchema:XB,memoizedCreateXMLExample:YB,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Go},inferSchema:GB,sampleFromSchema:jO,sampleFromSchemaGeneric:pi,createXMLExample:IO,memoizedSampleFromSchema:XB,memoizedCreateXMLExample:YB,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Go,getSchemaObjectType:DSe}}},Lm=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return sre}});const VSe=["get","put","post","delete","options","head","patch","trace"],Es=e=>e||(0,G.Map)(),zSe=(0,ct.createSelector)(Es,(e=>e.get("lastError"))),WSe=(0,ct.createSelector)(Es,(e=>e.get("url"))),JSe=(0,ct.createSelector)(Es,(e=>e.get("spec")||"")),HSe=(0,ct.createSelector)(Es,(e=>e.get("specSource")||"not-editor")),tT=(0,ct.createSelector)(Es,(e=>e.get("json",(0,G.Map)()))),KSe=(0,ct.createSelector)(tT,(e=>e.toJS())),GSe=(0,ct.createSelector)(Es,(e=>e.get("resolved",(0,G.Map)()))),YSe=(e,t)=>e.getIn(["resolvedSubtrees",...t],void 0),yz=(e,t)=>G.Map.isMap(e)&&G.Map.isMap(t)?t.get("$$ref")?t:(0,G.OrderedMap)().mergeWith(yz,e,t):t,Hi=(0,ct.createSelector)(Es,(e=>(0,G.OrderedMap)().mergeWith(yz,e.get("json"),e.get("resolvedSubtrees")))),$n=e=>tT(e),XSe=(0,ct.createSelector)($n,(()=>!1)),vz=(0,ct.createSelector)($n,(e=>Dz(e&&e.get("info")))),ZSe=(0,ct.createSelector)($n,(e=>Dz(e&&e.get("externalDocs")))),bz=(0,ct.createSelector)(vz,(e=>e&&e.get("version"))),QSe=(0,ct.createSelector)(bz,(e=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1))),_z=(0,ct.createSelector)(Hi,(e=>e.get("paths"))),e1e=(0,Lm.default)(["get","put","post","delete","options","head","patch"]),Ez=(0,ct.createSelector)(_z,(e=>{let t=(0,G.List)();return!G.Map.isMap(e)||e.isEmpty()||e.forEach(((r,n)=>{if(!r||!r.forEach)return{};r.forEach(((i,s)=>{VSe.indexOf(s)<0||(t=t.push((0,G.fromJS)({path:n,method:s,operation:i,id:`${s}-${n}`})))}))})),t})),Sz=(0,ct.createSelector)($n,(e=>(0,G.Set)(e.get("consumes")))),wz=(0,ct.createSelector)($n,(e=>(0,G.Set)(e.get("produces")))),t1e=(0,ct.createSelector)($n,(e=>e.get("security",(0,G.List)()))),r1e=(0,ct.createSelector)($n,(e=>e.get("securityDefinitions"))),n1e=(e,t)=>{const r=e.getIn(["resolvedSubtrees","definitions",t],null),n=e.getIn(["json","definitions",t],null);return r||n||null},i1e=(0,ct.createSelector)($n,(e=>{const t=e.get("definitions");return G.Map.isMap(t)?t:(0,G.Map)()})),s1e=(0,ct.createSelector)($n,(e=>e.get("basePath"))),a1e=(0,ct.createSelector)($n,(e=>e.get("host"))),o1e=(0,ct.createSelector)($n,(e=>e.get("schemes",(0,G.Map)()))),xz=(0,ct.createSelector)([Ez,Sz,wz],((e,t,r)=>e.map((n=>n.update("operation",(i=>G.Map.isMap(i)?i.withMutations((s=>(s.get("consumes")||s.update("consumes",(a=>(0,G.Set)(a).merge(t))),s.get("produces")||s.update("produces",(a=>(0,G.Set)(a).merge(r))),s))):(0,G.Map)())))))),rT=(0,ct.createSelector)($n,(e=>{const t=e.get("tags",(0,G.List)());return G.List.isList(t)?t.filter((r=>G.Map.isMap(r))):(0,G.List)()})),Az=(e,t)=>(rT(e)||(0,G.List)()).filter(G.Map.isMap).find((r=>r.get("name")===t),(0,G.Map)()),Oz=(0,ct.createSelector)(xz,rT,((e,t)=>e.reduce(((r,n)=>{let i=(0,G.Set)(n.getIn(["operation","tags"]));return i.count()<1?r.update("default",(0,G.List)(),(s=>s.push(n))):i.reduce(((s,a)=>s.update(a,(0,G.List)(),(o=>o.push(n)))),r)}),t.reduce(((r,n)=>r.set(n.get("name"),(0,G.List)())),(0,G.OrderedMap)())))),u1e=e=>({getConfigs:t})=>{let{tagsSorter:r,operationsSorter:n}=t();return Oz(e).sortBy(((i,s)=>s),((i,s)=>{let a=typeof r=="function"?r:MB.tagsSorter[r];return a?a(i,s):null})).map(((i,s)=>{let a=typeof n=="function"?n:MB.operationsSorter[n],o=a?i.sort(a):i;return(0,G.Map)({tagDetails:Az(e,s),operations:o})}))},Cz=(0,ct.createSelector)(Es,(e=>e.get("responses",(0,G.Map)()))),Rz=(0,ct.createSelector)(Es,(e=>e.get("requests",(0,G.Map)()))),Tz=(0,ct.createSelector)(Es,(e=>e.get("mutatedRequests",(0,G.Map)()))),c1e=(e,t,r)=>Cz(e).getIn([t,r],null),l1e=(e,t,r)=>Rz(e).getIn([t,r],null),f1e=(e,t,r)=>Tz(e).getIn([t,r],null),p1e=()=>!0,nT=(e,t,r)=>{const n=Hi(e).getIn(["paths",...t,"parameters"],(0,G.OrderedMap)()),i=e.getIn(["meta","paths",...t,"parameters"],(0,G.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,G.OrderedMap)().merge(s,a,o)})).find((s=>s.get("in")===r.get("in")&&s.get("name")===r.get("name")),(0,G.OrderedMap)())},Iz=(e,t,r,n)=>{const i=`${n}.${r}`;return e.getIn(["meta","paths",...t,"parameter_inclusions",i],!1)},d1e=(e,t,r,n)=>{const i=Hi(e).getIn(["paths",...t,"parameters"],(0,G.OrderedMap)()).find((s=>s.get("in")===n&&s.get("name")===r),(0,G.OrderedMap)());return nT(e,t,i)},jz=(e,t,r)=>{const n=Hi(e).getIn(["paths",t,r],(0,G.OrderedMap)()),i=e.getIn(["meta","paths",t,r],(0,G.OrderedMap)()),s=n.get("parameters",(0,G.List)()).map((a=>nT(e,[t,r],a)));return(0,G.OrderedMap)().merge(n,i).set("parameters",s)};function h1e(e,t,r,n){return t=t||[],e.getIn(["meta","paths",...t,"parameters"],(0,G.fromJS)([])).find((i=>G.Map.isMap(i)&&i.get("name")===r&&i.get("in")===n))||(0,G.Map)()}const m1e=(0,ct.createSelector)($n,(e=>{const t=e.get("host");return typeof t=="string"&&t.length>0&&t[0]!=="/"}));function Pz(e,t,r){return t=t||[],jz(e,...t).get("parameters",(0,G.List)()).reduce(((n,i)=>{let s=r&&i.get("in")==="body"?i.get("value_xml"):i.get("value");return G.List.isList(s)&&(s=s.filter((a=>a!==""))),n.set(bd(i,{allowHashes:!1}),s)}),(0,G.fromJS)({}))}function g1e(e,t=""){if(G.List.isList(e))return e.some((r=>G.Map.isMap(r)&&r.get("in")===t))}function PO(e,t=""){if(G.List.isList(e))return e.some((r=>G.Map.isMap(r)&&r.get("type")===t))}function y1e(e,t){t=t||[];let r=Hi(e).getIn(["paths",...t],(0,G.fromJS)({})),n=e.getIn(["meta","paths",...t],(0,G.fromJS)({})),i=kz(e,t);const s=r.get("parameters")||new G.List,a=n.get("consumes_value")?n.get("consumes_value"):PO(s,"file")?"multipart/form-data":PO(s,"formData")?"application/x-www-form-urlencoded":void 0;return(0,G.fromJS)({requestContentType:a,responseContentType:i})}function kz(e,t){t=t||[];const r=Hi(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 v1e(e,t){t=t||[];const r=Hi(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 b1e(e,t){t=t||[];const r=Hi(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 Nz=(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||""},_1e=(e,t,r)=>["http","https"].indexOf(Nz(e,t,r))>-1,Mz=(e,t)=>{t=t||[];const r=e.getIn(["meta","paths",...t,"parameters"],(0,G.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 G.Map.isMap(u.get("error"))?i(u.get("error"),l):{error:u.get("error"),path:l}};return G.List.isList(s)?s.map((u=>G.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,d)=>`For '${d}'${(h=h.reduce(((g,y)=>typeof y=="number"?`${g}[${y}]`:g?`${g}.${y}`:y),""))?` at path '${h}'`:""}: ${f}.`)(c,l,o))}))})),n},E1e=(e,t)=>Mz(e,t).length===0,S1e=(e,t)=>{let r={requestBody:!1,requestContentType:{}},n=e.getIn(["resolvedSubtrees","paths",...t,"requestBody"],(0,G.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},w1e=(e,t,r,n)=>{if((r||n)&&r===n)return!0;let i=e.getIn(["resolvedSubtrees","paths",...t,"requestBody","content"],(0,G.fromJS)([]));if(i.size<2||!r||!n)return!1;let s=i.getIn([r,"schema","properties"],(0,G.fromJS)([])),a=i.getIn([n,"schema","properties"],(0,G.fromJS)([]));return!!s.equals(a)};function Dz(e){return G.Map.isMap(e)?e:new G.Map}var x1e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ore}}),A1e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return fre}}),qz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return hre}}),O1e=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Kre}});const iT="spec_update_spec",sT="spec_update_url",aT="spec_update_json",Bm="spec_update_param",oT="spec_update_empty_param_inclusion",uT="spec_validate_param",cT="spec_set_response",lT="spec_set_request",fT="spec_set_mutated_request",Fz="spec_log_request",pT="spec_clear_response",dT="spec_clear_request",hT="spec_clear_validate_param",Um="spec_update_operation_meta_value",mT="spec_update_resolved",Vm="spec_update_resolved_subtree",gT="set_scheme",C1e=e=>(0,x1e.default)(e)?e:"";function R1e(e){const t=C1e(e).replace(/\t/g," ");if(typeof e=="string")return{type:iT,payload:t}}function T1e(e){return{type:mT,payload:e}}function I1e(e){return{type:sT,payload:e}}function j1e(e){return{type:aT,payload:e}}const P1e=e=>({specActions:t,specSelectors:r,errActions:n})=>{let{specStr:i}=r,s=null;try{e=e||i(),n.clear({source:"parser"}),s=ks.default.load(e,{schema:ks.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 ZB=!1;const k1e=(e,t)=>({specActions:r,specSelectors:n,errActions:i,fn:{fetch:s,resolve:a,AST:o={}},getConfigs:u})=>{ZB||(console.warn("specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!"),ZB=!0);const{modelPropertyMacro:c,parameterMacro:l,requestInterceptor:f,responseInterceptor:h}=u();e===void 0&&(e=n.specJson()),t===void 0&&(t=n.url());let d=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 _=v.map((b=>(console.error(b),b.line=b.fullPath?d(g,b.fullPath):null,b.path=b.fullPath?b.fullPath.join("."):null,b.level="error",b.type="thrown",b.source="resolver",Object.defineProperty(b,"message",{enumerable:!0,value:b.message}),b)));i.newThrownErrBatch(_)}return r.updateResolved(y)}))};let _d=[];const N1e=(0,A1e.default)((()=>{const e=_d.reduce(((t,{path:r,system:n})=>(t.has(n)||t.set(n,[]),t.get(n).push(r),t)),new Map);_d=[],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,Lm.default)(void 0),f=u.specStr(),{modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y}=r.getConfigs();try{const v=await t.reduce((async(_,b)=>{let{resultMap:S,specWithCurrentSubtrees:w}=await _;const{errors:E,spec:A}=await s(w,b,{baseDoc:String(new URL(u.url(),document.baseURI)),modelPropertyMacro:h,parameterMacro:d,requestInterceptor:g,responseInterceptor:y});if(i.allErrors().size&&n.clearBy((R=>{var I;return R.get("type")!=="thrown"||R.get("source")!=="resolver"||!((I=R.get("fullPath"))!=null&&I.every(((O,D)=>O===b[D]||b[D]===void 0)))})),Array.isArray(E)&&E.length>0){let R=E.map((I=>(I.line=I.fullPath?l(f,I.fullPath):null,I.path=I.fullPath?I.fullPath.join("."):null,I.level="error",I.type="thrown",I.source="resolver",Object.defineProperty(I,"message",{enumerable:!0,value:I.message}),I)));n.newThrownErrBatch(R)}return A&&u.isOAS3()&&b[0]==="components"&&b[1]==="securitySchemes"&&await Promise.all(Object.values(A).filter((R=>(R==null?void 0:R.type)==="openIdConnect")).map((async R=>{const I={url:R.openIdConnectUrl,requestInterceptor:g,responseInterceptor:y};try{const O=await a(I);O instanceof Error||O.status>=400?console.error(O.statusText+" "+I.url):R.openIdConnectData=JSON.parse(O.text)}catch(O){console.error(O)}}))),(0,qz.default)(S,b,A),w=(0,O1e.default)(b,A,w),{resultMap:S,specWithCurrentSubtrees:w}}),Promise.resolve({resultMap:(u.specResolvedSubtree([])||(0,G.Map)()).toJS(),specWithCurrentSubtrees:u.specJS()}));c.updateResolvedSubtree([],v.resultMap)}catch(v){console.error(v)}}))}),35),M1e=e=>t=>{_d.find((({path:r,system:n})=>n===t&&r.toString()===e.toString()))||(_d.push({path:e,system:t}),N1e())};function D1e(e,t,r,n,i){return{type:Bm,payload:{path:e,value:n,paramName:t,paramIn:r,isXml:i}}}function q1e(e,t,r,n){return{type:Bm,payload:{path:e,param:t,value:r,isXml:n}}}const F1e=(e,t)=>({type:Vm,payload:{path:e,value:t}}),$1e=()=>({type:Vm,payload:{path:[],value:(0,G.Map)()}}),L1e=(e,t)=>({type:uT,payload:{pathMethod:e,isOAS3:t}}),B1e=(e,t,r,n)=>({type:oT,payload:{pathMethod:e,paramName:t,paramIn:r,includeEmptyValue:n}});function U1e(e){return{type:hT,payload:{pathMethod:e}}}function V1e(e,t){return{type:Um,payload:{path:e,value:t,key:"consumes_value"}}}function z1e(e,t){return{type:Um,payload:{path:e,value:t,key:"produces_value"}}}const W1e=(e,t,r)=>({payload:{path:e,method:t,res:r},type:cT}),J1e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:lT}),H1e=(e,t,r)=>({payload:{path:e,method:t,req:r},type:fT}),K1e=e=>({payload:e,type:Fz}),G1e=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=qV(g,e.parameters);(!y||y&&y.size===0)&&(e.parameters[g.get("name")]="")}})),e.contextUrl=(0,Gc.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 _=s.requestBodyValue(a,o),b=s.requestBodyInclusionSetting(a,o);_&&_.toJS?e.requestBody=_.map((S=>G.Map.isMap(S)?S.get("value"):S)).filter(((S,w)=>(Array.isArray(S)?S.length!==0:!qR(S))||b.get(w))).toJS():e.requestBody=_}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 d=Date.now();return t.execute(e).then((g=>{g.duration=Date.now()-d,r.setResponse(e.pathName,e.method,g)})).catch((g=>{g.message==="Failed to fetch"&&(g.name="",g.message=`**Failed to fetch.**
|
|
333
|
+
**Possible Reasons:**
|
|
334
|
+
- CORS
|
|
335
|
+
- Network Failure
|
|
336
|
+
- URL scheme must be "http" or "https" for CORS request.`),r.setResponse(e.pathName,e.method,{error:!0,err:g})}))},Y1e=({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 X1e(e,t){return{type:pT,payload:{path:e,method:t}}}function Z1e(e,t){return{type:dT,payload:{path:e,method:t}}}function Q1e(e,t,r){return{type:gT,payload:{scheme:e,path:t,method:r}}}var ewe={[iT]:(e,t)=>typeof t.payload=="string"?e.set("spec",t.payload):e,[sT]:(e,t)=>e.set("url",t.payload+""),[aT]:(e,t)=>e.set("json",ns(t.payload)),[mT]:(e,t)=>e.setIn(["resolved"],ns(t.payload)),[Vm]:(e,t)=>{const{value:r,path:n}=t.payload;return e.setIn(["resolvedSubtrees",...n],ns(r))},[Bm]:(e,{payload:t})=>{let{path:r,paramName:n,paramIn:i,param:s,value:a,isXml:o}=t,u=s?bd(s):`${i}.${n}`;const c=o?"value_xml":"value";return e.setIn(["meta","paths",...r,"parameters",u,c],(0,G.fromJS)(a))},[oT]:(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)},[uT]:(e,{payload:{pathMethod:t,isOAS3:r}})=>{const n=Hi(e).getIn(["paths",...t]),i=Pz(e,t).toJS();return e.updateIn(["meta","paths",...t,"parameters"],(0,G.fromJS)({}),(s=>n.get("parameters",(0,G.List)()).reduce(((a,o)=>{const u=qV(o,i),c=Iz(e,t,o.get("name"),o.get("in")),l=((f,h,{isOAS3:d=!1,bypassRequiredCheck:g=!1}={})=>{let y=f.get("required"),{schema:v,parameterContentMediaType:_}=qp(f,{isOAS3:d});return SO(h,v,y,g,_)})(o,u,{bypassRequiredCheck:c,isOAS3:r});return a.setIn([bd(o),"errors"],(0,G.fromJS)(l))}),s)))},[hT]:(e,{payload:{pathMethod:t}})=>e.updateIn(["meta","paths",...t,"parameters"],(0,G.fromJS)([]),(r=>r.map((n=>n.set("errors",(0,G.fromJS)([])))))),[cT]:(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],ns(i));return sr.Blob&&i.data instanceof sr.Blob&&(s=s.setIn(["responses",r,n,"text"],i.data)),s},[lT]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["requests",r,n],ns(t)),[fT]:(e,{payload:{req:t,path:r,method:n}})=>e.setIn(["mutatedRequests",r,n],ns(t)),[Um]:(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,G.fromJS)(r)):e},[pT]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["responses",t,r]),[dT]:(e,{payload:{path:t,method:r}})=>e.deleteIn(["requests",t,r]),[gT]:(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 twe=(e,{specActions:t})=>(...r)=>{e(...r),t.parseToJson(...r)},rwe=(e,{specActions:t})=>(...r)=>{e(...r),t.invalidateResolvedSubtreeCache();const[n]=r,i=(0,OO.default)(n,["paths"])||{};Object.keys(i).forEach((s=>{const a=(0,OO.default)(i,[s]);(0,Fs.default)(a)&&a.$ref&&t.requestResolvedSubtree(["paths",s])})),t.requestResolvedSubtree(["components","securitySchemes"])},nwe=(e,{specActions:t})=>r=>(t.logRequest(r),e(r)),iwe=(e,{specSelectors:t})=>r=>e(r,t.isOAS3());var $z=()=>({statePlugins:{spec:{wrapActions:{...mO},reducers:{...ewe},actions:{...hO},selectors:{...dO}}}}),QB=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return L9}}),e6=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return V9}}),t6=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return z9}}),r6=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Khe}}),swe=(function(e){var t={};return Ee.d(t,e),t})({makeResolve:function(){return j7}}),n6=(function(e){var t={};return Ee.d(t,e),t})({buildRequest:function(){return U7},execute:function(){return oge}}),mx=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Uc},makeHttp:function(){return Fue},serializeRes:function(){return q9}}),awe=(function(e){var t={};return Ee.d(t,e),t})({makeResolveSubtree:function(){return dge}}),Lz=(function(e){var t={};return Ee.d(t,e),t})({opId:function(){return Yh}});const owe=(e,t)=>(...r)=>{e(...r);const n=t.getConfigs().withCredentials;t.fn.fetch.withCredentials=n};function Bz({configs:e,getConfigs:t}){return{fn:{fetch:(0,mx.makeHttp)(mx.default,e.preFetch,e.postFetch),buildRequest:n6.buildRequest,execute:n6.execute,resolve:(0,swe.makeResolve)({strategies:[r6.default,t6.default,e6.default,QB.default]}),resolveSubtree:async(r,n,i={})=>{const s=t(),a={modelPropertyMacro:s.modelPropertyMacro,parameterMacro:s.parameterMacro,requestInterceptor:s.requestInterceptor,responseInterceptor:s.responseInterceptor,strategies:[r6.default,t6.default,e6.default,QB.default]};return(0,awe.makeResolveSubtree)(a)(r,n,i)},serializeRes:mx.serializeRes,opId:Lz.opId},statePlugins:{configs:{wrapActions:{loaded:owe}}}}}function Uz(){return{fn:{shallowEqualKeys:V_e,sanitizeUrl:Sr}}}var Vz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return lH.default}}),zz=(function(e){var t={};return Ee.d(t,e),t})({Provider:function(){return oye},connect:function(){return sye}}),Wz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return cye}});const uwe=e=>t=>{const{fn:r}=e();class n extends p.Component{render(){return p.default.createElement(t,(0,Pt.default)({},e(),this.props,this.context))}}return n.displayName=`WithSystem(${r.getDisplayName(t)})`,n},cwe=(e,t)=>r=>{const{fn:n}=e();class i extends p.Component{render(){return p.default.createElement(zz.Provider,{store:t},p.default.createElement(r,(0,Pt.default)({},this.props,this.context)))}}return i.displayName=`WithRoot(${n.getDisplayName(r)})`,i},i6=(e,t,r)=>(0,mc.compose)(r?cwe(e,r):Wz.default,(0,zz.connect)(((n,i)=>{var o;const s={...i,...e()};return(((o=t.prototype)==null?void 0:o.mapStateToProps)||(u=>({state:u})))(n,s)})),uwe(e))(t),s6=(e,t,r,n)=>{for(const i in t){const s=t[i];typeof s=="function"&&s(r[i],n[i],e())}},lwe=(e,t,r)=>(n,i)=>{const{fn:s}=e(),a=r(n,"root");class o extends p.Component{constructor(c,l){super(c,l),s6(e,i,c,{})}UNSAFE_componentWillReceiveProps(c){s6(e,i,c,this.props)}render(){const c=(0,zR.default)(this.props,i?Object.keys(i):[]);return p.default.createElement(a,c)}}return o.displayName=`WithMappedContainer(${s.getDisplayName(a)})`,o},fwe=(e,t,r,n)=>i=>{const s=r(e,t,n)("App","root"),{createRoot:a}=Vz.default;a(i).render(p.default.createElement(s,null))},kO=(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"?i6(e,a,t()):i6(e,a):a:(s.failSilently||e().log.warn("Could not find component:",n),null)},pwe=e=>e.displayName||e.name||"Component";var Jz=({getComponents:e,getStore:t,getSystem:r})=>{const n=(i=kO(r,t,e),B_e(i,((...a)=>JSON.stringify(a))));var i;const s=(a=>Rf(a,((...o)=>o)))(lwe(r,0,n));return{rootInjects:{getComponent:n,makeMappedContainer:s,render:fwe(r,t,kO,e)},fn:{getDisplayName:pwe}}},Hz=({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");Vz.default.render(p.default.createElement(f,null),l)})(t,r,kO,n)),{rootInjects:i}};function Kz(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 sr?g=new URL(i):(g=document.createElement("a"),g.href=i),g.protocol!=="https:"&&sr.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!==sr.location.origin){const y=Object.assign(new Error(`Possible cross-origin (CORS) issue? The URL origin (${g.origin}) does not match the page (${sr.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,ct.createSelector)((i=>i||(0,G.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 Ts=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return uV}}),a6=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Lye}}),dwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Vye}}),hwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Jye}}),mwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Gye}}),gwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Zye}}),ywe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return tve}}),vwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ive}}),bwe=()=>{Ts.default.registerLanguage("json",dwe.default),Ts.default.registerLanguage("js",a6.default),Ts.default.registerLanguage("xml",hwe.default),Ts.default.registerLanguage("yaml",gwe.default),Ts.default.registerLanguage("http",ywe.default),Ts.default.registerLanguage("bash",mwe.default),Ts.default.registerLanguage("powershell",vwe.default),Ts.default.registerLanguage("javascript",a6.default)},Gz=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return sve}}),_we=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ave}}),Ewe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return ove}}),Swe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return uve}}),wwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return cve}}),xwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return lve}}),Awe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return fve}});const Owe={agate:Gz.default,arta:_we.default,monokai:Ewe.default,nord:Swe.default,obsidian:wwe.default,"tomorrow-night":xwe.default,idea:Awe.default},Cwe=Gz.default;var Rwe=({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 p.default.createElement(Ts.default,{language:e,className:t,style:u},i)},Twe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return hve}}),Iwe=({fileName:e="response.txt",className:t,downloadable:r,getComponent:n,canCopy:i,language:s,children:a})=>{const o=(0,p.useRef)(null),u=n("SyntaxHighlighter",!0),c=l=>{const{target:f,deltaY:h}=l,{scrollHeight:d,offsetHeight:g,scrollTop:y}=f;d>g&&(y===0&&h<0||g+y>=d&&h>0)&&l.preventDefault()};return(0,p.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]),p.default.createElement("div",{className:"highlight-code",ref:o},i&&p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement($m.CopyToClipboard,{text:a},p.default.createElement("button",null))),r?p.default.createElement("button",{className:"download-contents",onClick:()=>{(0,Twe.default)(a,e)}},"Download"):null,p.default.createElement(u,{language:s,className:(0,kt.default)(t,"microlight"),renderPlainText:({children:l,PlainTextViewer:f})=>p.default.createElement(f,{className:t},l)},a))},jwe=({className:e="",children:t})=>p.default.createElement("pre",{className:(0,kt.default)("microlight",e)},t),Pwe=(e,t)=>({renderPlainText:r,children:n,...i})=>{const s=t.getConfigs().syntaxHighlight.activated,a=t.getComponent("PlainTextViewer");return s||typeof r!="function"?s?p.default.createElement(e,i,n):p.default.createElement(a,null,n):r({children:n,PlainTextViewer:a})};const kwe=()=>({afterLoad:bwe,rootInjects:{syntaxHighlighting:{styles:Owe,defaultStyle:Cwe}},components:{SyntaxHighlighter:Rwe,HighlightCode:Iwe,PlainTextViewer:jwe}}),Nwe=()=>({wrapComponents:{SyntaxHighlighter:Pwe}});var Yz=()=>[kwe,Nwe],Mwe=()=>{const{GIT_DIRTY:e,GIT_COMMIT:t,PACKAGE_VERSION:r,BUILD_TIME:n}={PACKAGE_VERSION:"5.30.3",GIT_COMMIT:"g6acfc6e2",GIT_DIRTY:!0,BUILD_TIME:"Tue, 25 Nov 2025 12:39:03 GMT"};sr.versions=sr.versions||{},sr.versions.swaggerUI={version:r,gitRevision:t,gitDirty:e,buildTimestamp:n}},Xz=()=>({afterLoad:Mwe}),Dwe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return vve}});const Zz=console.error,qwe=e=>t=>{const{getComponent:r,fn:n}=e(),i=r("ErrorBoundary"),s=n.getDisplayName(t);class a extends p.Component{render(){return p.default.createElement(i,{targetName:s,getComponent:r,fn:n},p.default.createElement(t,(0,Pt.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 Qz=({name:e})=>p.default.createElement("div",{className:"fallback"},"😱 ",p.default.createElement("i",null,"Could not render ",e==="t"?"this component":e,", see the console."));class eW extends p.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 p.default.createElement(i,{name:r})}return n}}X(eW,"defaultProps",{targetName:"this component",getComponent:()=>Qz,fn:{componentDidCatch:Zz},children:null});var Fwe=eW,tW=({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,Dwe.default)(n,Array(n.length).fill(((s,{fn:a})=>a.withErrorBoundary(s))));return{fn:{componentDidCatch:Zz,withErrorBoundary:qwe(r)},components:{ErrorBoundary:Fwe,Fallback:Qz},wrapComponents:i}};class $we extends p.default.Component{getLayout(){const{getComponent:t,layoutSelectors:r}=this.props,n=r.current();return t(n,!0)||(()=>p.default.createElement("h1",null,' No layout defined for "',n,'" '))}render(){const t=this.getLayout();return p.default.createElement(t,null)}}var Lwe=$we;class Bwe extends p.default.Component{constructor(){super(...arguments);X(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 p.default.createElement("div",{className:"dialog-ux"},p.default.createElement("div",{className:"backdrop-ux"}),p.default.createElement("div",{className:"modal-ux"},p.default.createElement("div",{className:"modal-dialog-ux"},p.default.createElement("div",{className:"modal-ux-inner"},p.default.createElement("div",{className:"modal-ux-header"},p.default.createElement("h3",null,"Available authorizations"),p.default.createElement("button",{type:"button",className:"close-modal",onClick:this.close},p.default.createElement(l,null))),p.default.createElement("div",{className:"modal-ux-content"},u.valueSeq().map(((f,h)=>p.default.createElement(c,{key:h,AST:o,definitions:f,getComponent:i,errSelectors:s,authSelectors:r,authActions:n,specSelectors:a}))))))))}}class Uwe extends p.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 p.default.createElement("div",{className:"auth-wrapper"},p.default.createElement("button",{className:t?"btn authorize locked":"btn authorize unlocked",onClick:n},p.default.createElement("span",null,"Authorize"),t?p.default.createElement(a,null):p.default.createElement(o,null)),r&&p.default.createElement(s,null))}}class Vwe extends p.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?p.default.createElement(o,{onClick:()=>t.showDefinitions(a),isAuthorized:!!r.authorized().size,showPopup:!!r.shownDefinitions(),getComponent:i}):null}}class zwe extends p.default.Component{constructor(){super(...arguments);X(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 p.default.createElement("button",{className:"authorization__btn","aria-label":r?"authorization button locked":"authorization button unlocked",onClick:this.onClick},r?p.default.createElement(i,{className:"locked"}):p.default.createElement(s,{className:"unlocked"}))}}class Wwe extends p.default.Component{constructor(r,n){super(r,n);X(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});X(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});X(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)});X(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(((d,g)=>!!c.get(g))),f=r.filter((d=>d.get("type")!=="oauth2")),h=r.filter((d=>d.get("type")==="oauth2"));return p.default.createElement("div",{className:"auth-container"},!!f.size&&p.default.createElement("form",{onSubmit:this.submitAuth},f.map(((d,g)=>p.default.createElement(a,{key:g,schema:d,name:g,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i}))).toArray(),p.default.createElement("div",{className:"auth-btn-wrapper"},f.size===l.size?p.default.createElement(u,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(u,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),p.default.createElement(u,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),h&&h.size?p.default.createElement("div",null,p.default.createElement("div",{className:"scope-def"},p.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."),p.default.createElement("p",null,"API requires the following scopes. Select which ones you want to grant to Swagger UI.")),r.filter((d=>d.get("type")==="oauth2")).map(((d,g)=>p.default.createElement("div",{key:g},p.default.createElement(o,{authorized:c,schema:d,name:g})))).toArray()):null)}}class Jwe extends p.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=p.default.createElement(u,{key:r,schema:t,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;case"basic":l=p.default.createElement(c,{key:r,schema:t,name:r,errSelectors:a,authorized:s,getComponent:n,onChange:i,authSelectors:o});break;default:l=p.default.createElement("div",{key:r},"Unknown security definition type ",f)}return p.default.createElement("div",{key:`${r}-jump`},l)}}class Hwe extends p.default.Component{render(){let{error:t}=this.props,r=t.get("level"),n=t.get("message"),i=t.get("source");return p.default.createElement("div",{className:"errors"},p.default.createElement("b",null,i," ",r),p.default.createElement("span",null,n))}}class Kwe extends p.default.Component{constructor(r,n){super(r,n);X(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),d=a.selectAuthPath(s);let g=this.getValue(),y=i.allErrors().filter((v=>v.get("authId")===s));return p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s||r.get("name"))," (apiKey)",p.default.createElement(h,{path:d})),g&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("p",null,"Name: ",p.default.createElement("code",null,r.get("name")))),p.default.createElement(u,null,p.default.createElement("p",null,"In: ",p.default.createElement("code",null,r.get("in")))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"api_key_value"},"Value:"),g?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"api_key_value",type:"text",onChange:this.onChange,autoFocus:!0}))),y.valueSeq().map(((v,_)=>p.default.createElement(l,{error:v,key:_}))))}}class Gwe extends p.default.Component{constructor(r,n){super(r,n);X(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),d=a.selectAuthPath(i);let g=this.getValue().username,y=s.allErrors().filter((v=>v.get("authId")===i));return p.default.createElement("div",null,p.default.createElement("h4",null,"Basic authorization",p.default.createElement(f,{path:d})),g&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(h,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth_username"},"Username:"),g?p.default.createElement("code",null," ",g," "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth_username",type:"text",required:"required",name:"username",onChange:this.onChange,autoFocus:!0}))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth_password"},"Password:"),g?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth_password",autoComplete:"new-password",name:"password",type:"password",onChange:this.onChange}))),y.valueSeq().map(((v,_)=>p.default.createElement(l,{error:v,key:_}))))}}function Ywe(e){const{example:t,showValue:r,getComponent:n}=e,i=n("Markdown",!0),s=n("HighlightCode",!0);return t&&G.Map.isMap(t)?p.default.createElement("div",{className:"example"},t.get("description")?p.default.createElement("section",{className:"example__section"},p.default.createElement("div",{className:"example__section-header"},"Example Description"),p.default.createElement("p",null,p.default.createElement(i,{source:t.get("description")}))):null,r&&t.has("value")?p.default.createElement("section",{className:"example__section"},p.default.createElement("div",{className:"example__section-header"},"Example Value"),p.default.createElement(s,null,Wr(t.get("value")))):null):null}class rW extends p.default.PureComponent{constructor(){super(...arguments);X(this,"_onSelect",(r,{isSyntheticChange:n=!1}={})=>{typeof this.props.onSelect=="function"&&this.props.onSelect(r,{isSyntheticChange:n})});X(this,"_onDomSelect",r=>{if(typeof this.props.onSelect=="function"){const n=r.target.selectedOptions[0].getAttribute("value");this._onSelect(n,{isSyntheticChange:!1})}});X(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,G.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 p.default.createElement("div",{className:"examples-select"},a?p.default.createElement("span",{className:"examples-select__section-label"},"Examples: "):null,p.default.createElement("select",{className:"examples-select-element",onChange:this._onDomSelect,value:s&&i?"__MODIFIED__VALUE__":n||""},s?p.default.createElement("option",{value:"__MODIFIED__VALUE__"},"[Modified value]"):null,r.map(((o,u)=>p.default.createElement("option",{key:u,value:u},G.Map.isMap(o)&&o.get("summary")||u))).valueSeq()))}}X(rW,"defaultProps",{examples:(0,G.Map)({}),onSelect:(...r)=>console.log("DEBUG: ExamplesSelect was not given an onSelect callback",...r),currentExampleKey:null,showLabels:!0});const gx=e=>G.List.isList(e)?e:Wr(e);class nW extends p.default.PureComponent{constructor(r){super(r);X(this,"_getStateForCurrentNamespace",()=>{const{currentNamespace:r}=this.props;return(this.state[r]||(0,G.Map)()).toObject()});X(this,"_setStateForCurrentNamespace",r=>{const{currentNamespace:n}=this.props;return this._setStateForNamespace(n,r)});X(this,"_setStateForNamespace",(r,n)=>{const i=(this.state[r]||(0,G.Map)()).mergeDeep(n);return this.setState({[r]:i})});X(this,"_isCurrentUserInputSameAsExampleValue",()=>{const{currentUserInputValue:r}=this.props;return this._getCurrentExampleValue()===r});X(this,"_getValueForExample",(r,n)=>{const{examples:i}=n||this.props;return gx((i||(0,G.Map)({})).getIn([r,"value"]))});X(this,"_getCurrentExampleValue",r=>{const{currentKey:n}=r||this.props;return this._getValueForExample(n,r||this.props)});X(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(gx(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(gx(l))});const n=this._getCurrentExampleValue();this.state={[r.currentNamespace]:(0,G.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=>G.Map.isMap(f)&&(f.get("value")===n||Wr(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 p.default.createElement(l,{examples:n,currentExampleKey:i,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!u&&u!==o,isValueModified:r!==void 0&&c&&r!==this._getCurrentExampleValue()||a})}}X(nW,"defaultProps",{userHasEditedBody:!1,examples:(0,G.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 Xwe({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 d=[];if(Array.isArray(o)?d=o:G.default.List.isList(o)&&(d=o.toArray()),d.length>0){let w=i.scopeSeparator||" ";f.push("scope="+encodeURIComponent(d.join(w)))}let g=Cf(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 w=(function(){return qB(Jo()(32).toString("base64"))})(),E=(function(R){return qB($_e()("sha256").update(R).digest("base64"))})(w);f.push("code_challenge="+E),f.push("code_challenge_method=S256"),e.codeVerifier=w}let{additionalQueryStringParams:y}=i;for(let w in y)y[w]!==void 0&&f.push([w,y[w]].map(encodeURIComponent).join("="));const v=a.get("authorizationUrl");let _;_=s?(0,Gc.default)(Sr(v),s,!0).toString():Sr(v);let b,S=[_,f.join("&")].join(typeof v!="string"||v.includes("?")?"&":"?");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 Zwe extends p.default.Component{constructor(r,n){super(r,n);X(this,"close",r=>{r.preventDefault();let{authActions:n}=this.props;n.showDefinitions(!1)});X(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"}),Xwe({auth:this.state,currentServer:a.serverEffectiveValue(a.selectedServer()),authActions:r,errActions:n,configs:o,authConfigs:u})});X(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))})});X(this,"onInputChange",r=>{let{target:{dataset:{name:n},value:i}}=r,s={[n]:i};this.setState(s)});X(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:[]})});X(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||"",d=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:d}}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"),d=n("JumpToPath",!0),g=n("Markdown",!0),y=n("InitializedInput"),{isOAS3:v}=o;let _=v()?r.get("openIdConnectUrl"):null;const b="implicit",S="password",w=v()?_?"authorization_code":"authorizationCode":"accessCode",E=v()?_?"client_credentials":"clientCredentials":"application",A=i.selectAuthPath(a);let R=!!(i.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,I=r.get("flow"),O=I===w&&R?I+" with PKCE":I,D=r.get("allowedScopes")||r.get("scopes"),P=!!i.authorized().get(a),F=s.allErrors().filter((te=>te.get("authId")===a)),M=!F.filter((te=>te.get("source")==="validation")).size,K=r.get("description");return p.default.createElement("div",null,p.default.createElement("h4",null,a," (OAuth2, ",O,") ",p.default.createElement(d,{path:A})),this.state.appName?p.default.createElement("h5",null,"Application: ",this.state.appName," "):null,K&&p.default.createElement(g,{source:r.get("description")}),P&&p.default.createElement("h6",null,"Authorized"),_&&p.default.createElement("p",null,"OpenID Connect URL: ",p.default.createElement("code",null,_)),(I===b||I===w)&&p.default.createElement("p",null,"Authorization URL: ",p.default.createElement("code",null,r.get("authorizationUrl"))),(I===S||I===w||I===E)&&p.default.createElement("p",null,"Token URL:",p.default.createElement("code",null," ",r.get("tokenUrl"))),p.default.createElement("p",{className:"flow"},"Flow: ",p.default.createElement("code",null,O)),I!==S?null:p.default.createElement(c,null,p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"oauth_username"},"username:"),P?p.default.createElement("code",null," ",this.state.username," "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("input",{id:"oauth_username",type:"text","data-name":"username",onChange:this.onInputChange,autoFocus:!0}))),p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"oauth_password"},"password:"),P?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("input",{id:"oauth_password",type:"password","data-name":"password",onChange:this.onInputChange}))),p.default.createElement(c,null,p.default.createElement("label",{htmlFor:"password_type"},"Client credentials location:"),P?p.default.createElement("code",null," ",this.state.passwordType," "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement("select",{id:"password_type","data-name":"passwordType",onChange:this.onInputChange},p.default.createElement("option",{value:"basic"},"Authorization header"),p.default.createElement("option",{value:"request-body"},"Request body"))))),(I===E||I===b||I===w||I===S)&&(!P||P&&this.state.clientId)&&p.default.createElement(c,null,p.default.createElement("label",{htmlFor:`client_id_${I}`},"client_id:"),P?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement(y,{id:`client_id_${I}`,type:"text",required:I===S,initialValue:this.state.clientId,"data-name":"clientId",onChange:this.onInputChange}))),(I===E||I===w||I===S)&&p.default.createElement(c,null,p.default.createElement("label",{htmlFor:`client_secret_${I}`},"client_secret:"),P?p.default.createElement("code",null," ****** "):p.default.createElement(l,{tablet:10,desktop:10},p.default.createElement(y,{id:`client_secret_${I}`,initialValue:this.state.clientSecret,type:"password","data-name":"clientSecret",onChange:this.onInputChange}))),!P&&D&&D.size?p.default.createElement("div",{className:"scopes"},p.default.createElement("h2",null,"Scopes:",p.default.createElement("a",{onClick:this.selectScopes,"data-all":!0},"select all"),p.default.createElement("a",{onClick:this.selectScopes},"select none")),D.map(((te,J)=>p.default.createElement(c,{key:J},p.default.createElement("div",{className:"checkbox"},p.default.createElement(u,{"data-value":J,id:`${J}-${I}-checkbox-${this.state.name}`,disabled:P,checked:this.state.scopes.includes(J),type:"checkbox",onChange:this.onScopeChange}),p.default.createElement("label",{htmlFor:`${J}-${I}-checkbox-${this.state.name}`},p.default.createElement("span",{className:"item"}),p.default.createElement("div",{className:"text"},p.default.createElement("p",{className:"name"},J),p.default.createElement("p",{className:"description"},te))))))).toArray()):null,F.valueSeq().map(((te,J)=>p.default.createElement(h,{error:te,key:J}))),p.default.createElement("div",{className:"auth-btn-wrapper"},M&&(P?p.default.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.logout,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(f,{className:"btn modal-btn auth authorize",onClick:this.authorize,"aria-label":"Apply given OAuth2 credentials"},"Authorize")),p.default.createElement(f,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close")))}}class Qwe extends p.Component{constructor(){super(...arguments);X(this,"onClick",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearResponse(n,i),r.clearRequest(n,i)})}render(){return p.default.createElement("button",{className:"btn btn-clear opblock-control__btn",onClick:this.onClick},"Clear")}}const exe=({headers:e})=>p.default.createElement("div",null,p.default.createElement("h5",null,"Response headers"),p.default.createElement("pre",{className:"microlight"},e)),txe=({duration:e})=>p.default.createElement("div",null,p.default.createElement("h5",null,"Request duration"),p.default.createElement("pre",{className:"microlight"},e," ms"));class rxe extends p.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"),d=t.get("headers").toJS(),g=t.get("notDocumented"),y=t.get("error"),v=t.get("text"),_=t.get("duration"),b=Object.keys(d),S=d["content-type"]||d["Content-Type"],w=r("responseBody"),E=b.map((D=>{var P=Array.isArray(d[D])?d[D].join():d[D];return p.default.createElement("span",{className:"headerline",key:D}," ",D,": ",P," ")})),A=E.length!==0,R=r("Markdown",!0),I=r("RequestSnippets",!0),O=r("curl",!0);return p.default.createElement("div",null,l&&c?p.default.createElement(I,{request:l}):p.default.createElement(O,{request:l}),h&&p.default.createElement("div",null,p.default.createElement("div",{className:"request-url"},p.default.createElement("h4",null,"Request URL"),p.default.createElement("pre",{className:"microlight"},h))),p.default.createElement("h4",null,"Server response"),p.default.createElement("table",{className:"responses-table live-responses-table"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"responses-header"},p.default.createElement("td",{className:"col_header response-col_status"},"Code"),p.default.createElement("td",{className:"col_header response-col_description"},"Details"))),p.default.createElement("tbody",null,p.default.createElement("tr",{className:"response"},p.default.createElement("td",{className:"response-col_status"},f,g?p.default.createElement("div",{className:"response-undocumented"},p.default.createElement("i",null," Undocumented ")):null),p.default.createElement("td",{className:"response-col_description"},y?p.default.createElement(R,{source:`${t.get("name")!==""?`${t.get("name")}: `:""}${t.get("message")}`}):null,v?p.default.createElement(w,{content:v,contentType:S,url:h,headers:d,getConfigs:n,getComponent:r}):null,A?p.default.createElement(exe,{headers:E}):null,i&&_?p.default.createElement(txe,{duration:_}):null)))))}}class iW extends p.default.Component{constructor(r,n){super(r,n);X(this,"getDefinitionUrl",()=>{let{specSelectors:r}=this.props;return new Gc.default(r.url(),sr.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=Sr(this.state.validatorUrl);return typeof n=="object"&&Object.keys(n).length?null:this.state.url&&DB(this.state.validatorUrl)&&DB(this.state.url)?p.default.createElement("span",{className:"float-right"},p.default.createElement("a",{target:"_blank",rel:"noopener noreferrer",href:`${i}/debug?url=${encodeURIComponent(this.state.url)}`},p.default.createElement(nxe,{src:`${i}?url=${encodeURIComponent(this.state.url)}`,alt:"Online validator badge"}))):null}}class nxe extends p.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?p.default.createElement("img",{alt:"Error"}):this.state.loaded?p.default.createElement("img",{src:this.props.src,alt:this.props.alt}):null}}class ixe extends p.default.Component{constructor(){super(...arguments);X(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"),d=r.get("operations");return p.default.createElement(h,{key:"operation-"+n,tagObj:r,tag:n,oas3Selectors:a,layoutSelectors:o,layoutActions:u,getConfigs:c,getComponent:s,specUrl:i.url()},p.default.createElement("div",{className:"operation-tag-content"},d.map((g=>{const y=g.get("path"),v=g.get("method"),_=G.default.List(["paths",y,v]);return l.indexOf(v)===-1?null:p.default.createElement(f,{key:`${y}-${v}`,specPath:_,op:g,path:y,method:v,tag:n})})).toArray()))})}render(){let{specSelectors:r}=this.props;const n=r.taggedOperations();return n.size===0?p.default.createElement("h3",null," No operations defined in spec!"):p.default.createElement("div",null,n.map(this.renderOperationTag).toArray(),n.size<1?p.default.createElement("h3",null," No operations defined in spec! "):null)}}class sW extends p.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"),d=u("Markdown",!0),g=u("DeepLink"),y=u("Link"),v=u("ArrowUpIcon"),_=u("ArrowDownIcon");let b,S=t.getIn(["tagDetails","description"],null),w=t.getIn(["tagDetails","externalDocs","description"]),E=t.getIn(["tagDetails","externalDocs","url"]);b=qs(i)&&qs(i.selectedServer)?Bi(E,c,{selectedServer:i.selectedServer()}):E;let A=["operations-tag",r],R=s.isShown(A,l==="full"||l==="list");return p.default.createElement("div",{className:R?"opblock-tag-section is-open":"opblock-tag-section"},p.default.createElement("h3",{onClick:()=>a.show(A,!R),className:S?"opblock-tag":"opblock-tag no-desc",id:A.map((I=>NV(I))).join("-"),"data-tag":r,"data-is-open":R},p.default.createElement(g,{enabled:f,isShown:R,path:Kc(r),text:r}),S?p.default.createElement("small",null,p.default.createElement(d,{source:S})):p.default.createElement("small",null),b?p.default.createElement("div",{className:"info__externaldocs"},p.default.createElement("small",null,p.default.createElement(y,{href:Sr(b),onClick:I=>I.stopPropagation(),target:"_blank"},w||b))):null,p.default.createElement("button",{"aria-expanded":R,className:"expand-operation",title:R?"Collapse operation":"Expand operation",onClick:()=>a.show(A,!R)},R?p.default.createElement(v,{className:"arrow"}):p.default.createElement(_,{className:"arrow"}))),p.default.createElement(h,{isOpened:R},n))}}X(sW,"defaultProps",{tagObj:G.default.fromJS({}),tag:""});class aW extends p.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:d,authActions:g,authSelectors:y,oas3Actions:v,oas3Selectors:_}=this.props,b=this.props.operation,{deprecated:S,isShown:w,path:E,method:A,op:R,tag:I,operationId:O,allowTryItOut:D,displayRequestDuration:P,tryItOutEnabled:F,executeInProgress:M}=b.toJS(),{description:K,externalDocs:te,schemes:J}=R;const Q=te?Bi(te.url,d.url(),{selectedServer:_.selectedServer()}):"";let re=b.getIn(["op"]),ne=re.get("responses"),U=(function(T,k){if(!G.default.Iterable.isIterable(T))return G.default.List();let W=T.getIn(Array.isArray(k)?k:[k]);return G.default.List.isList(W)?W:G.default.List()})(re,["parameters"]),H=d.operationScheme(E,A),ie=["operations",I,O],ue=Ia(re);const le=l("responses"),ee=l("parameters"),z=l("execute"),V=l("clear"),fe=l("Collapse"),me=l("Markdown",!0),Re=l("schemes"),Ne=l("OperationServers"),he=l("OperationExt"),Te=l("OperationSummary"),Ue=l("Link"),{showExtensions:_e}=f();if(ne&&r&&r.size>0){let B=!ne.get(String(r.get("status")))&&!ne.get("default");r=r.set("notDocumented",B)}let we=[E,A];const Ae=d.validationErrors([E,A]);return p.default.createElement("div",{className:S?"opblock opblock-deprecated":w?`opblock opblock-${A} is-open`:`opblock opblock-${A}`,id:NV(ie.join("-"))},p.default.createElement(Te,{operationProps:b,isShown:w,toggleShown:i,getComponent:l,authActions:g,authSelectors:y,specPath:t}),p.default.createElement(fe,{isOpened:w},p.default.createElement("div",{className:"opblock-body"},re&&re.size||re===null?null:p.default.createElement(ez,{height:"32px",width:"32px",className:"opblock-loading-animation"}),S&&p.default.createElement("h4",{className:"opblock-title_normal"}," Warning: Deprecated"),K&&p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("div",{className:"opblock-description"},p.default.createElement(me,{source:K}))),Q?p.default.createElement("div",{className:"opblock-external-docs-wrapper"},p.default.createElement("h4",{className:"opblock-title_normal"},"Find more details"),p.default.createElement("div",{className:"opblock-external-docs"},te.description&&p.default.createElement("span",{className:"opblock-external-docs__description"},p.default.createElement(me,{source:te.description})),p.default.createElement(Ue,{target:"_blank",className:"opblock-external-docs__link",href:Sr(Q)},Q))):null,re&&re.size?p.default.createElement(ee,{parameters:U,specPath:t.push("parameters"),operation:re,onChangeKey:we,onTryoutClick:s,onResetClick:a,onCancelClick:o,tryItOutEnabled:F,allowTryItOut:D,fn:c,getComponent:l,specActions:h,specSelectors:d,pathMethod:[E,A],getConfigs:f,oas3Actions:v,oas3Selectors:_}):null,F?p.default.createElement(Ne,{getComponent:l,path:E,method:A,operationServers:re.get("servers"),pathServers:d.paths().getIn([E,"servers"]),getSelectedServer:_.selectedServer,setSelectedServer:v.setSelectedServer,setServerVariableValue:v.setServerVariableValue,getServerVariable:_.serverVariableValue,getEffectiveServerValue:_.serverEffectiveValue}):null,F&&D&&J&&J.size?p.default.createElement("div",{className:"opblock-schemes"},p.default.createElement(Re,{schemes:J,path:E,method:A,specActions:h,currentScheme:H})):null,!F||!D||Ae.length<=0?null:p.default.createElement("div",{className:"validation-errors errors-wrapper"},"Please correct the following validation errors and try again.",p.default.createElement("ul",null,Ae.map(((B,T)=>p.default.createElement("li",{key:T}," ",B," "))))),p.default.createElement("div",{className:F&&r&&D?"btn-group":"execute-wrapper"},F&&D?p.default.createElement(z,{operation:re,specActions:h,specSelectors:d,oas3Selectors:_,oas3Actions:v,path:E,method:A,onExecute:u,disabled:M}):null,F&&r&&D?p.default.createElement(V,{specActions:h,path:E,method:A}):null),M?p.default.createElement("div",{className:"loading-container"},p.default.createElement("div",{className:"loading"})):null,ne?p.default.createElement(le,{responses:ne,request:n,tryItOutResponse:r,getComponent:l,getConfigs:f,specSelectors:d,oas3Actions:v,oas3Selectors:_,specActions:h,produces:d.producesOptionsFor([E,A]),producesValue:d.currentProducesFor([E,A]),specPath:t.push("responses"),path:E,method:A,displayRequestDuration:P,fn:c}):null,_e&&ue.size?p.default.createElement(he,{extensions:ue,getComponent:l}):null)))}}X(aW,"defaultProps",{operation:null,response:null,request:null,specPath:(0,G.List)(),summary:""});class oW extends p.PureComponent{constructor(r,n){super(r,n);X(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)});X(this,"onCancelClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});X(this,"onTryoutClick",()=>{this.setState({tryItOutEnabled:!this.state.tryItOutEnabled})});X(this,"onResetClick",r=>{const n=this.props.oas3Selectors.selectDefaultRequestBodyValue(...r),i=this.props.oas3Selectors.requestContentType(...r);if(i==="application/x-www-form-urlencoded"||i==="multipart/form-data"){const s=JSON.parse(n);Object.entries(s).forEach((([a,o])=>{Array.isArray(o)?s[a]=s[a].map((u=>typeof u=="object"?JSON.stringify(u,null,2):u)):typeof o=="object"&&(s[a]=JSON.stringify(s[a],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,G.fromJS)(s),pathMethod:r})}else this.props.oas3Actions.setRequestBodyValue({value:n,pathMethod:r})});X(this,"onExecute",()=>{this.setState({executeInProgress:!0})});X(this,"getResolvedSubtree",()=>{const{specSelectors:r,path:n,method:i,specPath:s}=this.props;return s?r.specResolvedSubtree(s.toJS()):r.specResolvedSubtree(["paths",n,i])});X(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(),d=i.getIn(["operation","__originalOperationId"])||i.getIn(["operation","operationId"])||(0,Lz.opId)(i.get("operation"),n.path,n.method)||i.get("id"),g=["operations",n.tag,d],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:d,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()}componentDidUpdate(r){const{response:n,isShown:i}=this.props,s=this.getResolvedSubtree();n!==r.response&&this.setState({executeInProgress:!1}),i&&s===void 0&&!r.isShown&&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:d,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:_,specPath:b,specSelectors:S,specActions:w,getComponent:E,getConfigs:A,layoutSelectors:R,layoutActions:I,authActions:O,authSelectors:D,oas3Actions:P,oas3Selectors:F,fn:M}=this.props;const K=E("operation"),te=this.getResolvedSubtree()||(0,G.Map)(),J=(0,G.fromJS)({op:te,tag:n,path:i,summary:r.getIn(["operation","summary"])||"",deprecated:te.get("deprecated")||r.getIn(["operation","deprecated"])||!1,method:s,security:a,isAuthorized:o,operationId:u,originalOperationId:te.getIn(["operation","__originalOperationId"]),showSummary:c,isShown:l,jumpToKey:f,allowTryItOut:h,request:g,displayOperationId:y,displayRequestDuration:v,isDeepLinkingEnabled:_,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.state.tryItOutEnabled});return p.default.createElement(K,{operation:J,response:d,request:g,isShown:l,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:b,specActions:w,specSelectors:S,oas3Actions:P,oas3Selectors:F,layoutActions:I,layoutSelectors:R,authActions:O,authSelectors:D,getComponent:E,getConfigs:A,fn:M})}}X(oW,"defaultProps",{showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1});var sxe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return _ve}});class uW extends p.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:d,operationId:g,originalOperationId:y,displayOperationId:v}=a.toJS(),{summary:_}=f,b=a.get("security");const S=n("authorizeOperationBtn",!0),w=n("OperationSummaryMethod"),E=n("OperationSummaryPath"),A=n("JumpToPath",!0),R=n("CopyToClipboardBtn",!0),I=n("ArrowUpIcon"),O=n("ArrowDownIcon"),D=b&&!!b.count(),P=D&&b.size===1&&b.first().isEmpty(),F=!D||P;return p.default.createElement("div",{className:`opblock-summary opblock-summary-${l}`},p.default.createElement("button",{"aria-expanded":t,className:"opblock-summary-control",onClick:r},p.default.createElement(w,{method:l}),p.default.createElement("div",{className:"opblock-summary-path-description-wrapper"},p.default.createElement(E,{getComponent:n,operationProps:a,specPath:o}),h?p.default.createElement("div",{className:"opblock-summary-description"},(0,sxe.default)(_||u)):null),v&&(y||g)?p.default.createElement("span",{className:"opblock-summary-operation-id"},y||g):null),p.default.createElement(R,{textToCopy:`${o.get(1)}`}),F?null:p.default.createElement(S,{isAuthorized:c,onClick:()=>{const M=s.definitionsForRequirements(b);i.showDefinitions(M)}}),p.default.createElement(A,{path:o}),p.default.createElement("button",{"aria-label":`${l} ${d.replace(/\//g,"/")}`,className:"opblock-control-arrow","aria-expanded":t,tabIndex:"-1",onClick:r},t?p.default.createElement(I,{className:"arrow"}):p.default.createElement(O,{className:"arrow"})))}}X(uW,"defaultProps",{operationProps:null,specPath:(0,G.List)(),summary:""});class cW extends p.PureComponent{render(){let{method:t}=this.props;return p.default.createElement("span",{className:"opblock-summary-method"},t.toUpperCase())}}X(cW,"defaultProps",{operationProps:null});class axe extends p.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,p.default.createElement("wbr",{key:f}));const l=t("DeepLink");return p.default.createElement("span",{className:n?"opblock-summary-path__deprecated":"opblock-summary-path","data-path":s},p.default.createElement(l,{enabled:u,isShown:i,path:Kc(`${a}/${o}`),text:c}))}}var oxe=({extensions:e,getComponent:t})=>{let r=t("OperationExtRow");return p.default.createElement("div",{className:"opblock-section"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",null,"Extensions")),p.default.createElement("div",{className:"table-container"},p.default.createElement("table",null,p.default.createElement("thead",null,p.default.createElement("tr",null,p.default.createElement("td",{className:"col_header"},"Field"),p.default.createElement("td",{className:"col_header"},"Value"))),p.default.createElement("tbody",null,e.entrySeq().map((([n,i])=>p.default.createElement(r,{key:`${n}-${i}`,xKey:n,xVal:i})))))))},uxe=({xKey:e,xVal:t})=>{const r=t?t.toJS?t.toJS():t:null;return p.default.createElement("tr",null,p.default.createElement("td",null,e),p.default.createElement("td",null,JSON.stringify(r)))};function yT(e,t="_"){return e.replace(/[^\w-]/g,t)}const ah=class ah extends p.default.Component{constructor(){super(...arguments);X(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r));X(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:d,oas3Actions:g}=this.props,y=(function(O){let D=O.keySeq();return D.contains(kB)?kB:D.filter((P=>(P+"")[0]==="2")).sort().first()})(r);const v=i("contentType"),_=i("liveResponse"),b=i("response");let S=this.props.produces&&this.props.produces.size?this.props.produces:ah.defaultProps.produces;const w=a.isOAS3()?(function(O){if(!G.default.OrderedMap.isOrderedMap(O)||!O.size)return null;const D=O.find(((M,K)=>K.startsWith("2")&&Object.keys(M.get("content")||{}).length>0)),P=O.get("default")||G.default.OrderedMap(),F=(P.get("content")||G.default.OrderedMap()).keySeq().toJS().length?P:null;return D||F})(r):null,E=r.filter(((I,O)=>!wO(O))),A=yT(`${h}${f}_responses`),R=`${A}_select`;return E&&E.size?p.default.createElement("div",{className:"responses-wrapper"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",null,"Responses"),a.isOAS3()?null:p.default.createElement("label",{htmlFor:R},p.default.createElement("span",null,"Response content type"),p.default.createElement(v,{value:u,ariaControls:A,ariaLabel:"Response content type",className:"execute-content-type",contentTypes:S,controlId:R,onChange:this.onChangeProducesWrapper}))),p.default.createElement("div",{className:"responses-inner"},n?p.default.createElement("div",null,p.default.createElement(_,{response:n,getComponent:i,getConfigs:s,specSelectors:a,path:this.props.path,method:this.props.method,displayRequestDuration:c}),p.default.createElement("h4",null,"Responses")):null,p.default.createElement("table",{"aria-live":"polite",className:"responses-table",id:A,role:"region"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"responses-header"},p.default.createElement("td",{className:"col_header response-col_status"},"Code"),p.default.createElement("td",{className:"col_header response-col_description"},"Description"),a.isOAS3()?p.default.createElement("td",{className:"col col_header response-col_links"},"Links"):null)),p.default.createElement("tbody",null,E.entrySeq().map((([I,O])=>{let D=n&&n.get("status")==I?"response_current":"";return p.default.createElement(b,{key:I,path:f,method:h,specPath:l.push(I),isDefault:y===I,fn:o,className:D,code:I,response:O,specSelectors:a,controlsAcceptHeader:O===w,onContentTypeChange:this.onResponseContentTypeChange,contentType:u,getConfigs:s,activeExamplesKey:d.activeExamplesMember(f,h,"responses",I),oas3Actions:g,getComponent:i})})).toArray())))):null}};X(ah,"defaultProps",{tryItOutResponse:null,produces:(0,G.fromJS)(["application/json"]),displayRequestDuration:!1});let NO=ah;function zm(e){return(function(r){try{return!!JSON.parse(r)}catch{return null}})(e)?"json":null}var Ax;let cxe=(Ax=class extends p.default.Component{constructor(r,n){super(r,n);X(this,"_onContentTypeChange",r=>{const{onContentTypeChange:n,controlsAcceptHeader:i}=this.props;this.setState({responseContentType:r}),n({value:r,controlsAcceptHeader:i})});X(this,"getTargetExamplesKey",()=>{const{response:r,contentType:n,activeExamplesKey:i}=this.props,s=this.state.responseContentType||n,a=r.getIn(["content",s],(0,G.Map)({})).get("examples",null).keySeq().first();return i||a});this.state={responseContentType:""}}render(){var ee;let{path:r,method:n,code:i,response:s,className:a,specPath:o,fn:u,getComponent:c,getConfigs:l,specSelectors:f,contentType:h,controlsAcceptHeader:d,oas3Actions:g}=this.props,{inferSchema:y,getSampleSchema:v}=u,_=f.isOAS3();const{showExtensions:b}=l();let S=b?Ia(s):null,w=s.get("headers"),E=s.get("links");const A=c("ResponseExtension"),R=c("headers"),I=c("HighlightCode",!0),O=c("modelExample"),D=c("Markdown",!0),P=c("operationLink"),F=c("contentType"),M=c("ExamplesSelect"),K=c("Example");var te,J;const Q=this.state.responseContentType||h,re=s.getIn(["content",Q],(0,G.Map)({})),ne=re.get("examples",null);if(_){const z=re.get("schema");te=z?y(z.toJS()):null,J=z?o.push("content",this.state.responseContentType,"schema"):o}else te=s.get("schema"),J=s.has("schema")?o.push("schema"):o;let U,H,ie=!1,ue={includeReadOnly:!0};if(_)if(H=(ee=re.get("schema"))==null?void 0:ee.toJS(),G.Map.isMap(ne)&&!ne.isEmpty()){const z=this.getTargetExamplesKey(),V=fe=>G.Map.isMap(fe)?fe.get("value"):void 0;U=V(ne.get(z,(0,G.Map)({}))),U===void 0&&(U=V(ne.values().next().value)),ie=!0}else re.get("example")!==void 0&&(U=re.get("example"),ie=!0);else{H=te,ue={...ue,includeWriteOnly:!0};const z=s.getIn(["examples",Q]);z&&(U=z,ie=!0)}const le=((z,V)=>{if(z==null)return null;const fe=zm(z)?"json":null;return p.default.createElement("div",null,p.default.createElement(V,{className:"example",language:fe},Wr(z)))})(v(H,Q,ue,ie?U:void 0),I);return p.default.createElement("tr",{className:"response "+(a||""),"data-code":i},p.default.createElement("td",{className:"response-col_status"},i),p.default.createElement("td",{className:"response-col_description"},p.default.createElement("div",{className:"response-col_description__inner"},p.default.createElement(D,{source:s.get("description")})),b&&S.size?S.entrySeq().map((([z,V])=>p.default.createElement(A,{key:`${z}-${V}`,xKey:z,xVal:V}))):null,_&&s.get("content")?p.default.createElement("section",{className:"response-controls"},p.default.createElement("div",{className:(0,kt.default)("response-control-media-type",{"response-control-media-type--accept-controller":d})},p.default.createElement("small",{className:"response-control-media-type__title"},"Media type"),p.default.createElement(F,{value:this.state.responseContentType,contentTypes:s.get("content")?s.get("content").keySeq():(0,G.Seq)(),onChange:this._onContentTypeChange,ariaLabel:"Media Type"}),d?p.default.createElement("small",{className:"response-control-media-type__accept-message"},"Controls ",p.default.createElement("code",null,"Accept")," header."):null),G.Map.isMap(ne)&&!ne.isEmpty()?p.default.createElement("div",{className:"response-control-examples"},p.default.createElement("small",{className:"response-control-examples__title"},"Examples"),p.default.createElement(M,{examples:ne,currentExampleKey:this.getTargetExamplesKey(),onSelect:z=>g.setActiveExamplesMember({name:z,pathMethod:[r,n],contextType:"responses",contextName:i}),showLabels:!1})):null):null,le||te?p.default.createElement(O,{specPath:J,getComponent:c,getConfigs:l,specSelectors:f,schema:ns(te),example:le,includeReadOnly:!0}):null,_&&ne?p.default.createElement(K,{example:ne.get(this.getTargetExamplesKey(),(0,G.Map)({})),getComponent:c,getConfigs:l,omitValue:!0}):null,w?p.default.createElement(R,{headers:w,getComponent:c}):null),_?p.default.createElement("td",{className:"response-col_links"},E?E.toSeq().entrySeq().map((([z,V])=>p.default.createElement(P,{key:z,name:z,link:V,getComponent:c}))):p.default.createElement("i",null,"No links")):null)}},X(Ax,"defaultProps",{response:(0,G.fromJS)({}),onContentTypeChange:()=>{}}),Ax);var lxe=({xKey:e,xVal:t})=>p.default.createElement("div",{className:"response__extension"},e,": ",String(t)),fxe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return xve}}),o6=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return Cve}});class pxe extends p.default.PureComponent{constructor(){super(...arguments);X(this,"state",{parsedContent:null});X(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",d=r instanceof Blob?r:new Blob([r],{type:h}),g=window.URL.createObjectURL(d),y=[h,i.substr(i.lastIndexOf("/")+1),g].join(":"),v=s["content-disposition"]||s["Content-Disposition"];if(v!==void 0){let _=(function(S){let w;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((E=>(w=E.exec(S),w!==null))),w!==null&&w.length>1)try{return decodeURIComponent(w[1])}catch(E){console.error(E)}return null})(v);_!==null&&(y=_)}f=sr.navigator&&sr.navigator.msSaveOrOpenBlob?p.default.createElement("div",null,p.default.createElement("a",{href:g,onClick:()=>sr.navigator.msSaveOrOpenBlob(d,y)},"Download file")):p.default.createElement("div",null,p.default.createElement("a",{href:g,download:y},"Download file"))}else f=p.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;zm(r)&&(h="json");try{l=JSON.stringify(JSON.parse(r),null," ")}catch{l=`can't parse JSON. Raw result:
|
|
337
|
+
|
|
338
|
+
`+r}f=p.default.createElement(u,{language:h,downloadable:!0,fileName:`${c}.json`,canCopy:!0},l)}else/xml/i.test(n)?(l=(0,fxe.default)(r,{textNodesOnSameLine:!0,indentor:" "}),f=p.default.createElement(u,{downloadable:!0,fileName:`${c}.xml`,canCopy:!0},l)):f=(0,o6.default)(n)==="text/html"||/text\/plain/.test(n)?p.default.createElement(u,{downloadable:!0,fileName:`${c}.html`,canCopy:!0},r):(0,o6.default)(n)==="text/csv"||/text\/csv/.test(n)?p.default.createElement(u,{downloadable:!0,fileName:`${c}.csv`,canCopy:!0},r):/^image\//i.test(n)?n.includes("svg")?p.default.createElement("div",null," ",r," "):p.default.createElement("img",{src:window.URL.createObjectURL(r)}):/^audio\//i.test(n)?p.default.createElement("pre",{className:"microlight"},p.default.createElement("audio",{controls:!0,key:i},p.default.createElement("source",{src:i,type:n}))):typeof r=="string"?p.default.createElement(u,{downloadable:!0,fileName:`${c}.txt`,canCopy:!0},r):r.size>0?o?p.default.createElement("div",null,p.default.createElement("p",{className:"i"},"Unrecognized response type; displaying content as text."),p.default.createElement(u,{downloadable:!0,fileName:`${c}.txt`,canCopy:!0},o)):p.default.createElement("p",{className:"i"},"Unrecognized response type; unable to display."):null;return f?p.default.createElement("div",null,p.default.createElement("h5",null,"Response body"),f):null}}class lW extends p.Component{constructor(r){super(r);X(this,"onChange",(r,n,i)=>{let{specActions:{changeParamByIdentity:s},onChangeKey:a}=this.props;s(a,r,n,i)});X(this,"onChangeConsumesWrapper",r=>{let{specActions:{changeConsumesValue:n},onChangeKey:i}=this.props;n(i,r)});X(this,"toggleTab",r=>r==="parameters"?this.setState({parametersVisible:!0,callbackVisible:!1}):r==="callbacks"?this.setState({callbackVisible:!0,parametersVisible:!1}):void 0);X(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:d,oas3Actions:g,oas3Selectors:y,operation:v}=this.props;const _=c("parameterRow"),b=c("TryItOutButton"),S=c("contentType"),w=c("Callbacks",!0),E=c("RequestBody",!0),A=a&&s,R=f.isOAS3(),I=`${yT(`${d[1]}${d[0]}_requests`)}_select`,O=v.get("requestBody"),D=Object.values(i.reduce(((P,F)=>{if(G.Map.isMap(F)){const M=F.get("in");P[M]??(P[M]=[]),P[M].push(F)}return P}),{})).reduce(((P,F)=>P.concat(F)),[]);return p.default.createElement("div",{className:"opblock-section"},p.default.createElement("div",{className:"opblock-section-header"},R?p.default.createElement("div",{className:"tab-header"},p.default.createElement("div",{onClick:()=>this.toggleTab("parameters"),className:`tab-item ${this.state.parametersVisible&&"active"}`},p.default.createElement("h4",{className:"opblock-title"},p.default.createElement("span",null,"Parameters"))),v.get("callbacks")?p.default.createElement("div",{onClick:()=>this.toggleTab("callbacks"),className:`tab-item ${this.state.callbackVisible&&"active"}`},p.default.createElement("h4",{className:"opblock-title"},p.default.createElement("span",null,"Callbacks"))):null):p.default.createElement("div",{className:"tab-header"},p.default.createElement("h4",{className:"opblock-title"},"Parameters")),s?p.default.createElement(b,{isOAS3:f.isOAS3(),hasUserEditedBody:y.hasUserEditedBody(...d),enabled:a,onCancelClick:this.props.onCancelClick,onTryoutClick:r,onResetClick:()=>n(d)}):null),this.state.parametersVisible?p.default.createElement("div",{className:"parameters-container"},D.length?p.default.createElement("div",{className:"table-container"},p.default.createElement("table",{className:"parameters"},p.default.createElement("thead",null,p.default.createElement("tr",null,p.default.createElement("th",{className:"col_header parameters-col_name"},"Name"),p.default.createElement("th",{className:"col_header parameters-col_description"},"Description"))),p.default.createElement("tbody",null,D.map(((P,F)=>p.default.createElement(_,{fn:u,specPath:o.push(F.toString()),getComponent:c,getConfigs:l,rawParam:P,param:f.parameterWithMetaByIdentity(d,P),key:`${P.get("in")}.${P.get("name")}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:f,specActions:h,oas3Actions:g,oas3Selectors:y,pathMethod:d,isExecute:A})))))):p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("p",null,"No parameters"))):null,this.state.callbackVisible?p.default.createElement("div",{className:"callbacks-container opblock-description-wrapper"},p.default.createElement(w,{callbacks:(0,G.Map)(v.get("callbacks")),specPath:o.slice(0,-1).push("callbacks")})):null,R&&O&&this.state.parametersVisible&&p.default.createElement("div",{className:"opblock-section opblock-section-request-body"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("h4",{className:`opblock-title parameter__name ${O.get("required")&&"required"}`},"Request body"),p.default.createElement("label",{id:I},p.default.createElement(S,{value:y.requestContentType(...d),contentTypes:O.get("content",(0,G.List)()).keySeq(),onChange:P=>{this.onChangeMediaType({value:P,pathMethod:d})},className:"body-param-content-type",ariaLabel:"Request content type",controlId:I}))),p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement(E,{setRetainRequestBodyValueFlag:P=>g.setRetainRequestBodyValueFlag({value:P,pathMethod:d}),userHasEditedBody:y.hasUserEditedBody(...d),specPath:o.slice(0,-1).push("requestBody"),requestBody:O,requestBodyValue:y.requestBodyValue(...d),requestBodyInclusionSetting:y.requestBodyInclusionSetting(...d),requestBodyErrors:y.requestBodyErrors(...d),isExecute:A,getConfigs:l,activeExamplesKey:y.activeExamplesMember(...d,"requestBody","requestBody"),updateActiveExamplesKey:P=>{this.props.oas3Actions.setActiveExamplesMember({name:P,pathMethod:this.props.pathMethod,contextType:"requestBody",contextName:"requestBody"})},onChange:(P,F)=>{if(F){const M=y.requestBodyValue(...d),K=G.Map.isMap(M)?M:(0,G.Map)();return g.setRequestBodyValue({pathMethod:d,value:K.setIn(F,P)})}g.setRequestBodyValue({value:P,pathMethod:d})},onChangeIncludeEmpty:(P,F)=>{g.setRequestBodyInclusion({pathMethod:d,value:F,name:P})},contentType:y.requestContentType(...d)}))))}}X(lW,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]});var dxe=({xKey:e,xVal:t})=>p.default.createElement("div",{className:"parameter__extension"},e,": ",String(t));const hxe={onChange:()=>{},isIncludedOptions:{}};class fW extends p.Component{constructor(){super(...arguments);X(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 p.default.createElement("div",null,p.default.createElement("label",{htmlFor:"include_empty_value",className:(0,kt.default)("parameter__empty_value_toggle",{disabled:n})},p.default.createElement("input",{id:"include_empty_value",type:"checkbox",disabled:n,checked:!n&&r,onChange:this.onCheckboxChange}),"Send empty value"))}}X(fW,"defaultProps",hxe);class mxe extends p.Component{constructor(r,n){super(r,n);X(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)});X(this,"_onExampleSelect",r=>{this.props.oas3Actions.setActiveExamplesMember({name:r,pathMethod:this.props.pathMethod,contextType:"parameters",contextName:this.getParamKey()})});X(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)});X(this,"setDefaultValue",()=>{let{specSelectors:r,pathMethod:n,rawParam:i,oas3Selectors:s,fn:a}=this.props;const o=r.parameterWithMetaByIdentity(n,i)||(0,G.Map)();let{schema:u}=qp(o,{isOAS3:r.isOAS3()});const c=o.get("content",(0,G.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||G.List.isList(f)||(f=Wr(f));const h=a.getSchemaObjectType(u),d=a.getSchemaObjectType(u==null?void 0:u.get("items"));f!==void 0?this.onChangeWrapper(f):h==="object"&&l&&!o.get("examples")?this.onChangeWrapper(G.List.isList(l)?l:Wr(l)):h==="array"&&d==="object"&&l&&!o.get("examples")&&this.onChangeWrapper(G.List.isList(l)?l:(0,G.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 G.Map;if(u=u.isEmpty()?a:u,o){let{schema:f}=qp(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,G.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,d=c.isOAS3();const{showExtensions:g,showCommonExtensions:y}=s();if(r||(r=n),!n)return null;const v=i("JsonSchemaForm"),_=i("ParamBody");let b=r.get("in"),S=b!=="body"?null:p.default.createElement(_,{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 w=i("modelExample"),E=i("Markdown",!0),A=i("ParameterExt"),R=i("ParameterIncludeEmpty"),I=i("ExamplesSelectValueRetainer"),O=i("Example");let{schema:D}=qp(r,{isOAS3:d}),P=c.parameterWithMetaByIdentity(l,n)||(0,G.Map)();const F=P.get("content",(0,G.Map)()).keySeq().first();d&&(D=this.composeJsonSchema(D));let M=D?D.get("format"):null,K=b==="formData",te="FormData"in sr,J=r.get("required");const Q=o.getSchemaObjectType(D),re=o.getSchemaObjectType(D==null?void 0:D.get("items")),ne=o.getSchemaObjectTypeLabel(D),U=!S&&Q==="object",H=!S&&re==="object";let ie,ue,le,ee,z=P?P.get("value"):"",V=y?MV(D):null,fe=g?Ia(r):null,me=!1;r!==void 0&&D&&(ie=D.get("items")),ie!==void 0?(ue=ie.get("enum"),le=ie.get("default")):D&&(ue=D.get("enum")),ue&&ue.size&&ue.size>0&&(me=!0),r!==void 0&&(D&&(le=D.get("default")),le===void 0&&(le=r.get("default")),ee=r.get("example"),ee===void 0&&(ee=r.get("x-example")));const Re=S?null:p.default.createElement(v,{fn:o,getComponent:i,value:z,required:J,disabled:!a,description:r.get("name"),onChange:this.onChangeWrapper,errors:P.get("errors"),schema:D});return p.default.createElement("tr",{"data-param-name":r.get("name"),"data-param-in":r.get("in")},p.default.createElement("td",{className:"parameters-col_name"},p.default.createElement("div",{className:J?"parameter__name required":"parameter__name"},r.get("name"),J?p.default.createElement("span",null," *"):null),p.default.createElement("div",{className:"parameter__type"},ne,M&&p.default.createElement("span",{className:"prop-format"},"($",M,")")),p.default.createElement("div",{className:"parameter__deprecated"},d&&r.get("deprecated")?"deprecated":null),p.default.createElement("div",{className:"parameter__in"},"(",r.get("in"),")")),p.default.createElement("td",{className:"parameters-col_description"},r.get("description")?p.default.createElement(E,{source:r.get("description")}):null,!S&&a||!me?null:p.default.createElement(E,{className:"parameter__enum",source:"<i>Available values</i> : "+ue.map((function(Ne){return Ne})).toArray().map(String).join(", ")}),!S&&a||le===void 0?null:p.default.createElement(E,{className:"parameter__default",source:"<i>Default value</i> : "+le}),!S&&a||ee===void 0?null:p.default.createElement(E,{source:"<i>Example</i> : "+ee}),K&&!te&&p.default.createElement("div",null,"Error: your browser does not support FormData"),d&&r.get("examples")?p.default.createElement("section",{className:"parameter-controls"},p.default.createElement(I,{examples:r.get("examples"),onSelect:this._onExampleSelect,updateValue:this.onChangeWrapper,getComponent:i,defaultToFirstExample:!0,currentKey:h.activeExamplesMember(...l,"parameters",this.getParamKey()),currentUserInputValue:z})):null,U||H?p.default.createElement(w,{getComponent:i,specPath:F?f.push("content",F,"schema"):f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:D,example:Re}):Re,S&&D?p.default.createElement(w,{getComponent:i,specPath:f.push("schema"),getConfigs:s,isExecute:a,specSelectors:c,schema:D,example:S,includeWriteOnly:!0}):null,!S&&a&&r.get("allowEmptyValue")?p.default.createElement(R,{onChange:this.onChangeIncludeEmpty,isIncluded:c.parameterInclusionSettingFor(l,r.get("name"),r.get("in")),isDisabled:!qR(z)}):null,d&&r.get("examples")?p.default.createElement(O,{example:r.getIn(["examples",h.activeExamplesMember(...l,"parameters",this.getParamKey())]),getComponent:i,getConfigs:s}):null,y&&V.size?V.entrySeq().map((([Ne,he])=>p.default.createElement(A,{key:`${Ne}-${he}`,xKey:Ne,xVal:he}))):null,g&&fe.size?fe.entrySeq().map((([Ne,he])=>p.default.createElement(A,{key:`${Ne}-${he}`,xKey:Ne,xVal:he}))):null))}}class gxe extends p.Component{constructor(){super(...arguments);X(this,"handleValidateParameters",()=>{let{specSelectors:r,specActions:n,path:i,method:s}=this.props;return n.validateParams([i,s]),r.validateBeforeExecute([i,s])});X(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((d=>{o.missingRequiredKeys.push(d)})),a.setRequestBodyValidateError({path:r,method:n,validationErrors:o}),!1)});X(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})});X(this,"handleValidationResultFail",()=>{let{specActions:r,path:n,method:i}=this.props;r.clearValidateParams([n,i]),setTimeout((()=>{r.validateParams([n,i])}),40)});X(this,"handleValidationResult",r=>{r?this.handleValidationResultPass():this.handleValidationResultFail()});X(this,"onClick",()=>{let r=this.handleValidateParameters(),n=this.handleValidateRequestBody(),i=r&&n;this.handleValidationResult(i)});X(this,"onChangeProducesWrapper",r=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],r))}render(){const{disabled:r}=this.props;return p.default.createElement("button",{className:"btn execute opblock-control__btn",onClick:this.onClick,disabled:r},"Execute")}}class yxe extends p.default.Component{render(){let{headers:t,getComponent:r}=this.props;const n=r("Property"),i=r("Markdown",!0);return t&&t.size?p.default.createElement("div",{className:"headers-wrapper"},p.default.createElement("h4",{className:"headers__title"},"Headers:"),p.default.createElement("table",{className:"headers"},p.default.createElement("thead",null,p.default.createElement("tr",{className:"header-row"},p.default.createElement("th",{className:"header-col"},"Name"),p.default.createElement("th",{className:"header-col"},"Description"),p.default.createElement("th",{className:"header-col"},"Type"))),p.default.createElement("tbody",null,t.entrySeq().map((([s,a])=>{if(!G.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 p.default.createElement("tr",{key:s},p.default.createElement("td",{className:"header-col"},s),p.default.createElement("td",{className:"header-col"},o?p.default.createElement(i,{source:o}):null),p.default.createElement("td",{className:"header-col"},u," ",c?p.default.createElement(n,{propKey:"Example",propVal:c,propClass:"header-example"}):null))})).toArray()))):null}}class vxe extends p.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 p.default.createElement("pre",{className:"errors-wrapper"},p.default.createElement("hgroup",{className:"error"},p.default.createElement("h4",{className:"errors__title"},"Errors"),p.default.createElement("button",{className:"btn errors__clear-btn",onClick:()=>i.show(["errorPane"],!c)},c?"Hide":"Show")),p.default.createElement(a,{isOpened:c,animated:!0},p.default.createElement("div",{className:"errors"},l.map(((f,h)=>{let d=f.get("type");return d==="thrown"||d==="auth"?p.default.createElement(bxe,{key:h,error:f.get("error")||f,jumpToLine:o}):d==="spec"?p.default.createElement(_xe,{key:h,error:f,jumpToLine:o}):void 0})))))}}const bxe=({error:e,jumpToLine:t})=>{if(!e)return null;let r=e.get("line");return p.default.createElement("div",{className:"error-wrapper"},e?p.default.createElement("div",null,p.default.createElement("h4",null,e.get("source")&&e.get("level")?pW(e.get("source"))+" "+e.get("level"):"",e.get("path")?p.default.createElement("small",null," at ",e.get("path")):null),p.default.createElement("span",{className:"message thrown"},e.get("message")),p.default.createElement("div",{className:"error-line"},r&&t?p.default.createElement("a",{onClick:t.bind(null,r)},"Jump to line ",r):null)):null)},_xe=({error:e,jumpToLine:t=null})=>{let r=null;return e.get("path")?r=G.List.isList(e.get("path"))?p.default.createElement("small",null,"at ",e.get("path").join(".")):p.default.createElement("small",null,"at ",e.get("path")):e.get("line")&&!t&&(r=p.default.createElement("small",null,"on line ",e.get("line"))),p.default.createElement("div",{className:"error-wrapper"},e?p.default.createElement("div",null,p.default.createElement("h4",null,pW(e.get("source"))+" "+e.get("level")," ",r),p.default.createElement("span",{className:"message"},e.get("message")),p.default.createElement("div",{className:"error-line"},t?p.default.createElement("a",{onClick:t.bind(null,e.get("line"))},"Jump to line ",e.get("line")):null)):null)};function pW(e){return(e||"").split(" ").map((t=>t[0].toUpperCase()+t.slice(1))).join(" ")}const Exe=()=>{};class dW extends p.default.Component{constructor(){super(...arguments);X(this,"onChangeWrapper",r=>this.props.onChange(r.target.value))}componentDidMount(){const{contentTypes:r,onChange:n}=this.props;r&&r.size&&n(r.first())}componentDidUpdate(){const{contentTypes:r,value:n,onChange:i}=this.props;r&&r.size&&(r.includes(n)||i(r.first()))}render(){let{ariaControls:r,ariaLabel:n,className:i,contentTypes:s,controlId:a,value:o}=this.props;return s&&s.size?p.default.createElement("div",{className:"content-type-wrapper "+(i||"")},p.default.createElement("select",{"aria-controls":r,"aria-label":n,className:"content-type",id:a,onChange:this.onChangeWrapper,value:o||""},s.map((u=>p.default.createElement("option",{key:u,value:u},u))).toArray())):null}}X(dW,"defaultProps",{onChange:Exe,value:null,contentTypes:(0,G.fromJS)(["application/json"])});function Tf(...e){return e.filter((t=>!!t)).join(" ").trim()}class Sxe extends p.default.Component{render(){let{fullscreen:t,full:r,...n}=this.props;if(t)return p.default.createElement("section",n);let i="swagger-container"+(r?"-full":"");return p.default.createElement("section",(0,Pt.default)({},n,{className:Tf(n.className,i)}))}}const yx={mobile:"",tablet:"-tablet",desktop:"-desktop",large:"-hd"};class wxe extends p.default.Component{render(){const{hide:t,keepContents:r,mobile:n,tablet:i,desktop:s,large:a,...o}=this.props;if(t&&!r)return p.default.createElement("span",null);let u=[];for(let l in yx){if(!Object.prototype.hasOwnProperty.call(yx,l))continue;let f=yx[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=Tf(o.className,...u);return p.default.createElement("section",(0,Pt.default)({},o,{className:c}))}}class xxe extends p.default.Component{render(){return p.default.createElement("div",(0,Pt.default)({},this.props,{className:Tf(this.props.className,"wrapper")}))}}class hW extends p.default.Component{render(){return p.default.createElement("button",(0,Pt.default)({},this.props,{className:Tf(this.props.className,"button")}))}}X(hW,"defaultProps",{className:""});const Axe=e=>p.default.createElement("textarea",e),Oxe=e=>p.default.createElement("input",e);class mW extends p.default.Component{constructor(r,n){let i;super(r,n);X(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 p.default.createElement("select",{className:this.props.className,multiple:n,value:a,onChange:this.onChange,disabled:s},i?p.default.createElement("option",{value:""},"--"):null,r.map((function(c,l){return p.default.createElement("option",{key:l,value:String(c)},String(c))})))}}X(mW,"defaultProps",{multiple:!1,allowEmptyValue:!0});class gW extends p.default.Component{render(){return p.default.createElement("a",(0,Pt.default)({},this.props,{rel:"noopener noreferrer",className:Tf(this.props.className,"link")}))}}const u6=({children:e})=>p.default.createElement("div",{className:"no-margin"}," ",e," ");class yW extends p.default.Component{renderNotAnimated(){return this.props.isOpened?p.default.createElement(u6,null,this.props.children):p.default.createElement("noscript",null)}render(){let{animated:t,isOpened:r,children:n}=this.props;return t?(n=r?n:null,p.default.createElement(u6,null,n)):this.renderNotAnimated()}}X(yW,"defaultProps",{isOpened:!1,animated:!1});class Cxe extends p.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 p.default.createElement("div",null,p.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 p.default.createElement("div",{key:"overview-"+u},p.default.createElement("h4",{onClick:()=>n.show(l,!f),className:"link overview-tag"}," ",f?"-":"+",u),p.default.createElement(a,{isOpened:f,animated:!0},c.map((h=>{let{path:d,method:g,id:y}=h.toObject(),v="operations",_=y,b=r.isShown([v,_]);return p.default.createElement(Rxe,{key:y,path:d,method:g,id:d+"-"+g,shown:b,showOpId:_,showOpIdPrefix:v,href:`#operation-${_}`,onClick:n.show})})).toArray()))})).toArray(),s.size<1&&p.default.createElement("h3",null," No operations defined in spec! "))}}class Rxe extends p.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 p.default.createElement(gW,{href:i,onClick:this.onClick,className:"block opblock-link "+(n?"shown":"")},p.default.createElement("div",null,p.default.createElement("small",{className:`bold-label-${r}`},r.toUpperCase()),p.default.createElement("span",{className:"bold-label"},t)))}}class Txe extends p.default.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){const{value:t,defaultValue:r,initialValue:n,...i}=this.props;return p.default.createElement("input",(0,Pt.default)({},i,{ref:s=>this.inputRef=s}))}}class Ixe extends p.default.Component{render(){const{host:t,basePath:r}=this.props;return p.default.createElement("pre",{className:"base-url"},"[ Base URL: ",t,r," ]")}}class jxe extends p.default.PureComponent{render(){const{url:t,getComponent:r}=this.props,n=r("Link");return p.default.createElement(n,{target:"_blank",href:Sr(t)},p.default.createElement("span",{className:"url"}," ",t))}}class Pxe extends p.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=Bi(t.get("termsOfService"),u,{selectedServer:o}),d=t.get("contact"),g=t.get("license"),y=Bi(a&&a.get("url"),u,{selectedServer:o}),v=a&&a.get("description"),_=s("Markdown",!0),b=s("Link"),S=s("VersionStamp"),w=s("OpenAPIVersion"),E=s("InfoUrl"),A=s("InfoBasePath"),R=s("License"),I=s("Contact");return p.default.createElement("div",{className:"info"},p.default.createElement("hgroup",{className:"main"},p.default.createElement("h1",{className:"title"},f,p.default.createElement("span",null,c&&p.default.createElement(S,{version:c}),p.default.createElement(w,{oasVersion:"2.0"}))),n||i?p.default.createElement(A,{host:n,basePath:i}):null,r&&p.default.createElement(E,{getComponent:s,url:r})),p.default.createElement("div",{className:"description"},p.default.createElement(_,{source:l})),h&&p.default.createElement("div",{className:"info__tos"},p.default.createElement(b,{target:"_blank",href:Sr(h)},"Terms of service")),(d==null?void 0:d.size)>0&&p.default.createElement(I,{getComponent:s,data:d,selectedServer:o,url:r}),(g==null?void 0:g.size)>0&&p.default.createElement(R,{getComponent:s,license:g,selectedServer:o,url:r}),y?p.default.createElement(b,{className:"info__extdocs",target:"_blank",href:Sr(y)},v||y):null)}}var kxe=Pxe;class Nxe extends p.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 p.default.createElement("div",null,i&&i.count()?p.default.createElement(l,{info:i,url:s,host:o,basePath:a,externalDocs:u,getComponent:r,selectedServer:c}):null)}}class Mxe extends p.default.Component{render(){const{data:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","the developer"),a=Bi(t.get("url"),i,{selectedServer:n}),o=t.get("email"),u=r("Link");return p.default.createElement("div",{className:"info__contact"},a&&p.default.createElement("div",null,p.default.createElement(u,{href:Sr(a),target:"_blank"},s," - Website")),o&&p.default.createElement(u,{href:Sr(`mailto:${o}`)},a?`Send email to ${s}`:`Contact ${s}`))}}var Dxe=Mxe;class qxe extends p.default.Component{render(){const{license:t,getComponent:r,selectedServer:n,url:i}=this.props,s=t.get("name","License"),a=Bi(t.get("url"),i,{selectedServer:n}),o=r("Link");return p.default.createElement("div",{className:"info__license"},a?p.default.createElement("div",{className:"info__license__url"},p.default.createElement(o,{target:"_blank",href:Sr(a)},s)):p.default.createElement("span",null,s))}}var Fxe=qxe;class $xe extends p.default.Component{render(){return null}}class Lxe extends p.default.Component{render(){let{getComponent:t}=this.props;const r=t("CopyIcon");return p.default.createElement("div",{className:"view-line-link copy-to-clipboard",title:"Copy to clipboard"},p.default.createElement($m.CopyToClipboard,{text:this.props.textToCopy},p.default.createElement(r,null)))}}class Bxe extends p.default.Component{render(){return p.default.createElement("div",{className:"footer"})}}class Uxe extends p.default.Component{constructor(){super(...arguments);X(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"),p.default.createElement("div",null,u===!1?null:p.default.createElement("div",{className:"filter-container"},p.default.createElement(s,{className:"filter wrapper",mobile:12},p.default.createElement("input",{className:c.join(" "),placeholder:"Filter by tag",type:"text",onChange:this.onFilterChange,value:typeof u=="string"?u:"",disabled:a}))))}}const vx=Function.prototype,oh=class oh extends p.PureComponent{constructor(r,n){super(r,n);X(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})});X(this,"sample",r=>{let{param:n,fn:i}=this.props,s=i.inferSchema(n.toJS());return i.getSampleSchema(s,r,{includeWriteOnly:!0})});X(this,"onChange",(r,{isEditBox:n,isXml:i})=>{this.setState({value:r,isEditBox:n}),this._onChange(r,i)});X(this,"_onChange",(r,n)=>{(this.props.onChange||vx)(r,n)});X(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})});X(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,G.List)()),d=s.contentTypeValues(a).get("requestContentType"),g=this.props.consumes&&this.props.consumes.size?this.props.consumes:oh.defaultProp.consumes,{value:y,isEditBox:v}=this.state,_=null;zm(y)&&(_="json");const b=`${yT(`${a[1]}${a[0]}_parameters`)}_select`;return p.default.createElement("div",{className:"body-param","data-param-name":n.get("name"),"data-param-in":n.get("in")},v&&i?p.default.createElement(c,{className:"body-param__text"+(h.count()?" invalid":""),value:y,onChange:this.handleOnChange}):y&&p.default.createElement(l,{className:"body-param__example",language:_},y),p.default.createElement("div",{className:"body-param-options"},i?p.default.createElement("div",{className:"body-param-edit"},p.default.createElement(u,{className:v?"btn cancel body-param__example-edit":"btn edit body-param__example-edit",onClick:this.toggleIsEditBox},v?"Cancel":"Edit")):null,p.default.createElement("label",{htmlFor:b},p.default.createElement("span",null,"Parameter content type"),p.default.createElement(f,{value:d,contentTypes:g,onChange:r,className:"body-param-content-type",ariaLabel:"Parameter content type",controlId:b}))))}};X(oh,"defaultProp",{consumes:(0,G.fromJS)(["application/json"]),param:(0,G.fromJS)({}),onChange:vx,onChangeConsumes:vx});let MO=oh;class Vxe extends p.default.Component{render(){const{request:t,getComponent:r}=this.props,n=XV(t),i=r("SyntaxHighlighter",!0);return p.default.createElement("div",{className:"curl-command"},p.default.createElement("h4",null,"Curl"),p.default.createElement("div",{className:"copy-to-clipboard"},p.default.createElement($m.CopyToClipboard,{text:n},p.default.createElement("button",null))),p.default.createElement("div",null,p.default.createElement(i,{language:"bash",className:"curl microlight",renderPlainText:({children:s,PlainTextViewer:a})=>p.default.createElement(a,{className:"curl"},s)},n)))}}var zxe=({propKey:e,propVal:t,propClass:r})=>p.default.createElement("span",{className:r},p.default.createElement("br",null),e,": ",Wr(t));class vW extends p.default.Component{render(){const{onTryoutClick:t,onCancelClick:r,onResetClick:n,enabled:i,hasUserEditedBody:s,isOAS3:a}=this.props,o=a&&s;return p.default.createElement("div",{className:o?"try-out btn-group":"try-out"},i?p.default.createElement("button",{className:"btn try-out__btn cancel",onClick:r},"Cancel"):p.default.createElement("button",{className:"btn try-out__btn",onClick:t},"Try it out "),o&&p.default.createElement("button",{className:"btn try-out__btn reset",onClick:n},"Reset"))}}X(vW,"defaultProps",{onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1});class bW extends p.default.PureComponent{render(){const{bypass:t,isSwagger2:r,isOAS3:n,alsoShow:i}=this.props;return t?p.default.createElement("div",null,this.props.children):r&&n?p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,p.default.createElement("code",null,"swagger")," and ",p.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),p.default.createElement("p",null,"Supported version fields are ",p.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",p.default.createElement("code",null,"openapi: 3.0.4"),").")))):r||n?p.default.createElement("div",null,this.props.children):p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,"The provided definition does not specify a valid version field."),p.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",p.default.createElement("code",null,"swagger: ",'"2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.0.n")," (for example, ",p.default.createElement("code",null,"openapi: 3.0.4"),")."))))}}X(bW,"defaultProps",{alsoShow:null,children:null,bypass:!1});var Wxe=({version:e})=>p.default.createElement("small",null,p.default.createElement("pre",{className:"version"}," ",e," ")),Jxe=({oasVersion:e})=>p.default.createElement("small",{className:"version-stamp"},p.default.createElement("pre",{className:"version"},"OAS ",e)),Hxe=({enabled:e,path:t,text:r})=>p.default.createElement("a",{className:"nostyle",onClick:e?n=>n.preventDefault():null,href:e?`#/${t}`:null},p.default.createElement("span",null,r)),Kxe=()=>p.default.createElement("div",null,p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",className:"svg-assets"},p.default.createElement("defs",null,p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"unlocked"},p.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"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"locked"},p.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"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"close"},p.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"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow"},p.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"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-down"},p.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"})),p.default.createElement("symbol",{viewBox:"0 0 20 20",id:"large-arrow-up"},p.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"})),p.default.createElement("symbol",{viewBox:"0 0 24 24",id:"jump-to"},p.default.createElement("path",{d:"M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"})),p.default.createElement("symbol",{viewBox:"0 0 24 24",id:"expand"},p.default.createElement("path",{d:"M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"})),p.default.createElement("symbol",{viewBox:"0 0 15 16",id:"copy"},p.default.createElement("g",{transform:"translate(2, -1)"},p.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"})))))),_W=(function(e){var t={};return Ee.d(t,e),t})({Remarkable:function(){return Ta}}),Gxe=(function(e){var t={};return Ee.d(t,e),t})({linkify:function(){return Wbe}}),DO=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return d_e}});DO.default.addHook&&DO.default.addHook("beforeSanitizeElements",(function(e){return e.href&&e.setAttribute("rel","noopener noreferrer"),e}));var Yxe=function({source:t,className:r="",getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof t!="string")return null;const i=new _W.Remarkable({html:!0,typographer:!0,breaks:!0,linkTarget:"_blank"}).use(Gxe.linkify);i.core.ruler.disable(["replacements","smartquotes"]);const{useUnsafeMarkdown:s}=n(),a=i.render(t),o=Yc(a,{useUnsafeMarkdown:s});return t&&a&&o?p.default.createElement("div",{className:(0,kt.default)(r,"markdown"),dangerouslySetInnerHTML:{__html:o}}):null};function Yc(e,{useUnsafeMarkdown:t=!1}={}){const r=t,n=t?[]:["style","class"];return t&&!Yc.hasWarnedAboutDeprecation&&(console.warn("useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0."),Yc.hasWarnedAboutDeprecation=!0),DO.default.sanitize(e,{ADD_ATTR:["target"],FORBID_TAGS:["style","form"],ALLOW_DATA_ATTR:r,FORBID_ATTR:n})}Yc.hasWarnedAboutDeprecation=!1;class Xxe extends p.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),d=n("ServersContainer",!0),g=n("SchemesContainer",!0),y=n("AuthorizeBtnContainer",!0),v=n("FilterContainer",!0),_=r.isSwagger2(),b=r.isOAS3(),S=r.isOAS31(),w=!r.specStr(),E=r.loadingStatus();let A=null;if(E==="loading"&&(A=p.default.createElement("div",{className:"info"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("div",{className:"loading"})))),E==="failed"&&(A=p.default.createElement("div",{className:"info"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("h4",{className:"title"},"Failed to load API definition."),p.default.createElement(h,null)))),E==="failedConfig"){const F=t.lastError(),M=F?F.get("message"):"";A=p.default.createElement("div",{className:"info failed-config"},p.default.createElement("div",{className:"loading-container"},p.default.createElement("h4",{className:"title"},"Failed to load remote configuration."),p.default.createElement("p",null,M)))}if(!A&&w&&(A=p.default.createElement("h4",null,"No API definition provided.")),A)return p.default.createElement("div",{className:"swagger-ui"},p.default.createElement("div",{className:"loading-container"},A));const R=r.servers(),I=r.schemes(),O=R&&R.size,D=I&&I.size,P=!!r.securityDefinitions();return p.default.createElement("div",{className:"swagger-ui"},p.default.createElement(i,null),p.default.createElement(a,{isSwagger2:_,isOAS3:b,alsoShow:p.default.createElement(h,null)},p.default.createElement(h,null),p.default.createElement(l,{className:"information-container"},p.default.createElement(f,{mobile:12},p.default.createElement(s,null))),O||D||P?p.default.createElement("div",{className:"scheme-container"},p.default.createElement(f,{className:"schemes wrapper",mobile:12},O||D?p.default.createElement("div",{className:"schemes-server-container"},O?p.default.createElement(d,null):null,D?p.default.createElement(g,null):null):null,P?p.default.createElement(y,null):null)):null,p.default.createElement(v,null),p.default.createElement(l,null,p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(o,null))),S&&p.default.createElement(l,{className:"webhooks-container"},p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(c,null))),p.default.createElement(l,null,p.default.createElement(f,{mobile:12,desktop:12},p.default.createElement(u,null)))))}}var Zxe=()=>({components:{App:Lwe,authorizationPopup:Bwe,authorizeBtn:Uwe,AuthorizeBtnContainer:Vwe,authorizeOperationBtn:zwe,auths:Wwe,AuthItem:Jwe,authError:Hwe,oauth2:Zwe,apiKeyAuth:Kwe,basicAuth:Gwe,clear:Qwe,liveResponse:rxe,InitializedInput:Txe,info:kxe,InfoContainer:Nxe,InfoUrl:jxe,InfoBasePath:Ixe,Contact:Dxe,License:Fxe,JumpToPath:$xe,CopyToClipboardBtn:Lxe,onlineValidatorBadge:iW,operations:ixe,operation:aW,OperationSummary:uW,OperationSummaryMethod:cW,OperationSummaryPath:axe,responses:NO,response:cxe,ResponseExtension:lxe,responseBody:pxe,parameters:lW,parameterRow:mxe,execute:gxe,headers:yxe,errors:vxe,contentType:dW,overview:Cxe,footer:Bxe,FilterContainer:Uxe,ParamBody:MO,curl:Vxe,Property:zxe,TryItOutButton:vW,Markdown:Yxe,BaseLayout:Xxe,VersionPragmaFilter:bW,VersionStamp:Wxe,OperationExt:oxe,OperationExtRow:uxe,ParameterExt:dxe,ParameterIncludeEmpty:fW,OperationTag:sW,OperationContainer:oW,OpenAPIVersion:Jxe,DeepLink:Hxe,SvgAssets:Kxe,Example:Ywe,ExamplesSelect:rW,ExamplesSelectValueRetainer:nW}}),Qxe=()=>({components:{...gO}}),EW=()=>[BV,Uz,GV,Jz,Hz,$z,zV,JV,KV,cz,gz,Zxe,Qxe,Bz,LV,Kz,UV,WV,YV,QV,Yz,Xz,tW()];const eAe=(0,G.Map)();function If(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 jf=If((0,Lm.default)(null)),tAe=If(((e,t)=>r=>r.getSystem().specSelectors.findSchema(t))),rAe=If((()=>e=>{const t=e.getSystem().specSelectors.specJson().getIn(["components","schemas"]);return G.Map.isMap(t)?t:eAe})),nAe=If((()=>e=>e.getSystem().specSelectors.specJson().hasIn(["servers",0]))),iAe=If((0,ct.createSelector)(Hi,(e=>e.getIn(["components","securitySchemes"])||null))),sAe=(e,t)=>(r,...n)=>t.specSelectors.isOAS3()?t.oas3Selectors.validOperationMethods():e(...n),aAe=jf,oAe=jf,uAe=jf,cAe=jf,lAe=jf,fAe=(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,ct.createSelector)((e=>e),(({specSelectors:e})=>e.securityDefinitions()),((e,t)=>{let r=(0,G.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,G.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 G.Map({[n]:u.filter((c=>c!==void 0))}))})),s!=="http"&&s!=="apiKey"||(r=r.push(new G.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 G.Map),c=(0,G.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 G.Map({[n]:c.filter((l=>l!==void 0))}))}))}})),r})));function Pf(e){return(t,r)=>n=>{var i;return typeof((i=r.specSelectors)==null?void 0:i.isOAS3)=="function"?r.specSelectors.isOAS3()?p.default.createElement(e,(0,Pt.default)({},n,r,{Ori:t})):p.default.createElement(t,n):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}const pAe=(0,G.Map)(),dAe=()=>e=>(function(r){const n=r.get("swagger");return typeof n=="string"&&n==="2.0"})(e.getSystem().specSelectors.specJson()),hAe=()=>e=>(function(r){const n=r.get("openapi");return typeof n=="string"&&/^3\.0\.(?:[1-9]\d*|0)$/.test(n)})(e.getSystem().specSelectors.specJson()),mAe=()=>e=>e.getSystem().specSelectors.isOAS30();function SW(e){return(t,...r)=>n=>{if(n.specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null}}const gAe=SW((()=>e=>e.specSelectors.specJson().get("servers",pAe))),yAe=(e,t)=>{const r=e.getIn(["resolvedSubtrees","components","schemas",t],null),n=e.getIn(["json","components","schemas",t],null);return r||n||null},vAe=SW(((e,{callbacks:t,specPath:r})=>n=>{const i=n.specSelectors.validOperationMethods();return G.Map.isMap(t)?t.reduce(((s,a,o)=>{if(!G.Map.isMap(a))return s;const u=a.reduce(((c,l,f)=>{if(!G.Map.isMap(l))return c;const h=l.entrySeq().filter((([d])=>i.includes(d))).map((([d,g])=>({operation:(0,G.Map)({operation:g}),method:d,path:f,callbackName:o,specPath:r.concat([o,f,d])})));return c.concat(h)}),(0,G.List)());return s.concat(u)}),(0,G.List)()).groupBy((s=>s.callbackName)).map((s=>s.toArray())).toObject():{}}));var bAe=({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?p.default.createElement("span",null,"No callbacks"):p.default.createElement("div",null,s.map((o=>p.default.createElement("div",{key:`${o}`},p.default.createElement("h2",null,o),i[o].map((u=>p.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 Ed=(e,t,r,n)=>{const i=e.getIn(["content",t])??(0,G.OrderedMap)(),s=i.get("schema",(0,G.OrderedMap)()).toJS(),a=i.get("examples")!==void 0,o=i.get("example"),u=a?i.getIn(["examples",r,"value"]):o;return Wr(n.getSampleSchema(s,t,{includeWriteOnly:!0},u))};var _Ae=({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:d,activeExamplesKey:g,updateActiveExamplesKey:y,setRetainRequestBodyValueFlag:v})=>{const _=U=>{h(U.target.files[0])},b=U=>{let H={key:U,shouldDispatchInit:!1,defaultValue:!0};return n.get(U,"no value")==="no value"&&(H.shouldDispatchInit=!0),H},S=s("Markdown",!0),w=s("modelExample"),E=s("RequestBodyEditor"),A=s("HighlightCode",!0),R=s("ExamplesSelectValueRetainer"),I=s("Example"),O=s("ParameterIncludeEmpty"),{showCommonExtensions:D}=a(),P=(t==null?void 0:t.get("description"))??null,F=(t==null?void 0:t.get("content"))??new G.OrderedMap;c=c||F.keySeq().first()||"";const M=F.get(c)??(0,G.OrderedMap)(),K=M.get("schema",(0,G.OrderedMap)()),te=M.get("examples",null),J=te==null?void 0:te.map(((U,H)=>{const ie=U==null?void 0:U.get("value",null);return ie&&(U=U.set("value",Ed(t,c,H,u),ie)),U}));if(i=G.List.isList(i)?i:(0,G.List)(),u.isFileUploadIntended(M==null?void 0:M.get("schema"),c)){const U=s("Input");return l?p.default.createElement(U,{type:"file",onChange:_}):p.default.createElement("i",null,"Example values are not available for ",p.default.createElement("code",null,c)," media types.")}if(!M.size)return null;if(u.hasSchemaType(M.get("schema"),"object")&&(c==="application/x-www-form-urlencoded"||c.indexOf("multipart/")===0)&&K.get("properties",(0,G.OrderedMap)()).size>0){const U=s("JsonSchemaForm"),H=s("ParameterExt"),ie=K.get("properties",(0,G.OrderedMap)());return r=G.Map.isMap(r)?r:(0,G.OrderedMap)(),p.default.createElement("div",{className:"table-container"},P&&p.default.createElement(S,{source:P}),p.default.createElement("table",null,p.default.createElement("tbody",null,G.Map.isMap(ie)&&ie.entrySeq().map((([ue,le])=>{var k,W,se,ce;if(le.get("readOnly"))return;const ee=(W=(k=le.get("oneOf"))==null?void 0:k.get(0))==null?void 0:W.toJS(),z=(ce=(se=le.get("anyOf"))==null?void 0:se.get(0))==null?void 0:ce.toJS();le=(0,G.fromJS)(u.mergeJsonSchema(le.toJS(),ee??z??{}));let V=D?MV(le):null;const fe=K.get("required",(0,G.List)()).includes(ue),me=u.getSchemaObjectType(le),Re=u.getSchemaObjectTypeLabel(le),Ne=u.getSchemaObjectType(le==null?void 0:le.get("items")),he=le.get("format"),Te=le.get("description"),Ue=r.getIn([ue,"value"]),_e=r.getIn([ue,"errors"])||i,we=n.get(ue)||!1;let Ae=u.getSampleSchema(le,!1,{includeWriteOnly:!0});Ae===!1&&(Ae="false"),Ae===0&&(Ae="0"),typeof Ae!="string"&&me==="object"&&(Ae=Wr(Ae)),typeof Ae=="string"&&me==="array"&&(Ae=JSON.parse(Ae));const B=u.isFileUploadIntended(le),T=p.default.createElement(U,{fn:u,dispatchInitialValue:!B,schema:le,description:ue,getComponent:s,value:Ue===void 0?Ae:Ue,required:fe,errors:_e,onChange:ye=>{h(ye,[ue])}});return p.default.createElement("tr",{key:ue,className:"parameters","data-property-name":ue},p.default.createElement("td",{className:"parameters-col_name"},p.default.createElement("div",{className:fe?"parameter__name required":"parameter__name"},ue,fe?p.default.createElement("span",null," *"):null),p.default.createElement("div",{className:"parameter__type"},Re,he&&p.default.createElement("span",{className:"prop-format"},"($",he,")"),D&&V.size?V.entrySeq().map((([ye,Me])=>p.default.createElement(H,{key:`${ye}-${Me}`,xKey:ye,xVal:Me}))):null),p.default.createElement("div",{className:"parameter__deprecated"},le.get("deprecated")?"deprecated":null)),p.default.createElement("td",{className:"parameters-col_description"},p.default.createElement(S,{source:Te}),l?p.default.createElement("div",null,me==="object"||Ne==="object"?p.default.createElement(w,{getComponent:s,specPath:f.push("schema"),getConfigs:a,isExecute:l,specSelectors:o,schema:le,example:T}):T,fe?null:p.default.createElement(O,{onChange:ye=>d(ue,ye),isIncluded:we,isIncludedOptions:b(ue),isDisabled:Array.isArray(Ue)?Ue.length!==0:!qR(Ue)})):null))})))))}const Q=Ed(t,c,g,u);let re=null;zm(Q)&&(re="json");const ne=l?p.default.createElement(E,{value:r,errors:i,defaultValue:Q,onChange:h,getComponent:s}):p.default.createElement(A,{className:"body-param__example",language:re},Wr(r)||Q);return p.default.createElement("div",null,P&&p.default.createElement(S,{source:P}),J?p.default.createElement(R,{userHasEditedBody:e,examples:J,currentKey:g,currentUserInputValue:r,onSelect:U=>{y(U)},updateValue:h,defaultToFirstExample:!0,getComponent:s,setRetainRequestBodyValueFlag:v}):null,p.default.createElement(w,{getComponent:s,getConfigs:a,specSelectors:o,expandDepth:1,isExecute:l,schema:M.get("schema"),specPath:f.push("content",c,"schema"),example:ne,includeWriteOnly:!0}),J?p.default.createElement(I,{example:J.get(g),getComponent:s,getConfigs:a}):null)};class EAe extends p.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 p.default.createElement("div",{className:"operation-link"},p.default.createElement("div",{className:"description"},p.default.createElement("b",null,p.default.createElement("code",null,r)),o?p.default.createElement(i,{source:o}):null),p.default.createElement("pre",null,"Operation `",s,"`",p.default.createElement("br",null),p.default.createElement("br",null),"Parameters ",(function(c,l){return typeof l!="string"?"":l.split(`
|
|
339
|
+
`).map(((f,h)=>h>0?Array(c+1).join(" ")+f:f)).join(`
|
|
340
|
+
`)})(0,JSON.stringify(a,null,2))||"{}",p.default.createElement("br",null)))}}var SAe=EAe,wAe=({servers:e,currentServer:t,setSelectedServer:r,setServerVariableValue:n,getServerVariable:i,getEffectiveServerValue:s})=>{const a=(e.find((l=>l.get("url")===t))||(0,G.OrderedMap)()).get("variables")||(0,G.OrderedMap)(),o=a.size!==0;(0,p.useEffect)((()=>{var l;t||r((l=e.first())==null?void 0:l.get("url"))}),[]),(0,p.useEffect)((()=>{const l=e.find((f=>f.get("url")===t));if(!l)return void r(e.first().get("url"));(l.get("variables")||(0,G.OrderedMap)()).map(((f,h)=>{n({server:t,key:h,val:f.get("default")||""})}))}),[t,e]);const u=(0,p.useCallback)((l=>{r(l.target.value)}),[r]),c=(0,p.useCallback)((l=>{const f=l.target.getAttribute("data-variable"),h=l.target.value;n({server:t,key:f,val:h})}),[n,t]);return p.default.createElement("div",{className:"servers"},p.default.createElement("label",{htmlFor:"servers"},p.default.createElement("select",{onChange:u,value:t,id:"servers"},e.valueSeq().map((l=>p.default.createElement("option",{value:l.get("url"),key:l.get("url")},l.get("url"),l.get("description")&&` - ${l.get("description")}`))).toArray())),o&&p.default.createElement("div",null,p.default.createElement("div",{className:"computed-url"},"Computed URL:",p.default.createElement("code",null,s(t))),p.default.createElement("h4",null,"Server variables"),p.default.createElement("table",null,p.default.createElement("tbody",null,a.entrySeq().map((([l,f])=>p.default.createElement("tr",{key:l},p.default.createElement("td",null,l),p.default.createElement("td",null,f.get("enum")?p.default.createElement("select",{"data-variable":l,onChange:c},f.get("enum").map((h=>p.default.createElement("option",{selected:h===i(t,l),key:h,value:h},h)))):p.default.createElement("input",{type:"text",value:i(t,l)||"",onChange:c,"data-variable":l})))))))))};class xAe extends p.default.Component{render(){const{specSelectors:t,oas3Selectors:r,oas3Actions:n,getComponent:i}=this.props,s=t.servers(),a=i("Servers");return s&&s.size?p.default.createElement("div",null,p.default.createElement("span",{className:"servers-title"},"Servers"),p.default.createElement(a,{servers:s,currentServer:r.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:r.serverVariableValue,getEffectiveServerValue:r.serverEffectiveValue})):null}}const AAe=Function.prototype;class wW extends p.PureComponent{constructor(r,n){super(r,n);X(this,"applyDefaultValue",r=>{const{onChange:n,defaultValue:i}=r||this.props;return this.setState({value:i}),n(i)});X(this,"onChange",r=>{this.props.onChange(Wr(r))});X(this,"onDomChange",r=>{const n=r.target.value;this.setState({value:n},(()=>this.onChange(n)))});this.state={value:Wr(r.value)||r.defaultValue},r.onChange(r.value)}UNSAFE_componentWillReceiveProps(r){this.props.value!==r.value&&r.value!==this.state.value&&this.setState({value:Wr(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 p.default.createElement("div",{className:"body-param"},p.default.createElement(a,{className:(0,kt.default)("body-param__text",{invalid:s}),title:n.size?n.join(", "):"",value:i,onChange:this.onDomChange}))}}X(wW,"defaultProps",{onChange:AAe,userHasEditedBody:!1});class OAe extends p.default.Component{constructor(r,n){super(r,n);X(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),d=(r.get("scheme")||"").toLowerCase(),g=a.selectAuthPath(s);let y=this.getValue(),v=i.allErrors().filter((_=>_.get("authId")===s));if(d==="basic"){let _=y?y.get("username"):null;return p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s)," (http, Basic)",p.default.createElement(h,{path:g})),_&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-basic-username"},"Username:"),_?p.default.createElement("code",null," ",_," "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth-basic-username",type:"text",required:"required",name:"username","aria-label":"auth-basic-username",onChange:this.onChange,autoFocus:!0}))),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-basic-password"},"Password:"),_?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.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)=>p.default.createElement(l,{error:b,key:S}))))}return d==="bearer"?p.default.createElement("div",null,p.default.createElement("h4",null,p.default.createElement("code",null,s)," (http, Bearer)",p.default.createElement(h,{path:g})),y&&p.default.createElement("h6",null,"Authorized"),p.default.createElement(u,null,p.default.createElement(f,{source:r.get("description")})),p.default.createElement(u,null,p.default.createElement("label",{htmlFor:"auth-bearer-value"},"Value:"),y?p.default.createElement("code",null," ****** "):p.default.createElement(c,null,p.default.createElement(o,{id:"auth-bearer-value",type:"text","aria-label":"auth-bearer-value",onChange:this.onChange,autoFocus:!0}))),v.valueSeq().map(((_,b)=>p.default.createElement(l,{error:_,key:b})))):p.default.createElement("div",null,p.default.createElement("em",null,p.default.createElement("b",null,s)," HTTP authentication: unsupported scheme ",`'${d}'`))}}class CAe extends p.default.Component{constructor(){super(...arguments);X(this,"setSelectedServer",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setSelectedServer(r,`${n}:${i}`)});X(this,"setServerVariableValue",r=>{const{path:n,method:i}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...r,namespace:`${n}:${i}`})});X(this,"getSelectedServer",()=>{const{path:r,method:n}=this.props;return this.props.getSelectedServer(`${r}:${n}`)});X(this,"getServerVariable",(r,n)=>{const{path:i,method:s}=this.props;return this.props.getServerVariable({namespace:`${i}:${s}`,server:r},n)});X(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 p.default.createElement("div",{className:"opblock-section operation-servers"},p.default.createElement("div",{className:"opblock-section-header"},p.default.createElement("div",{className:"tab-header"},p.default.createElement("h4",{className:"opblock-title"},"Servers"))),p.default.createElement("div",{className:"opblock-description-wrapper"},p.default.createElement("h4",{className:"message"},"These ",o,"-level options override the global server options."),p.default.createElement(s,{servers:a,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}}var RAe={Callbacks:bAe,HttpAuth:OAe,RequestBody:_Ae,Servers:wAe,ServersContainer:xAe,RequestBodyEditor:wW,OperationServers:CAe,operationLink:SAe};const qO=new _W.Remarkable("commonmark");qO.block.ruler.enable(["table"]),qO.set({linkTarget:"_blank"});var TAe=Pf((({source:e,className:t="",getConfigs:r=()=>({useUnsafeMarkdown:!1})})=>{if(typeof e!="string")return null;if(e){const{useUnsafeMarkdown:n}=r(),i=Yc(qO.render(e),{useUnsafeMarkdown:n});let s;return typeof i=="string"&&(s=i.trim()),p.default.createElement("div",{dangerouslySetInnerHTML:{__html:s},className:(0,kt.default)(t,"renderedMarkdown")})}return null})),IAe=Pf((({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"?p.default.createElement(c,{key:o,schema:r,name:o,errSelectors:i,authorized:s,getComponent:n,onChange:a,authSelectors:u}):p.default.createElement(e,t)})),jAe=Pf(iW);class PAe extends p.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=p.default.createElement("span",{className:"model-deprecated-warning"},"Deprecated:")),p.default.createElement("div",{className:i.join(" ")},s,p.default.createElement(n,(0,Pt.default)({},this.props,{getConfigs:t,depth:1,expandDepth:this.props.expandDepth||0})))}}var kAe=Pf(PAe),NAe=Pf((({Ori:e,...t})=>{const{schema:r,getComponent:n,errors:i,onChange:s,fn:a}=t,o=a.isFileUploadIntended(r),u=n("Input");return o?p.default.createElement(u,{type:"file",className:i.length?"invalid":"",title:i.length?i:"",onChange:c=>{s(c.target.files[0])},disabled:e.isDisabled}):p.default.createElement(e,t)})),MAe={Markdown:TAe,AuthItem:IAe,OpenAPIVersion:(function(t){return(r,n)=>i=>{var s;return typeof((s=n.specSelectors)==null?void 0:s.isOAS30)=="function"?n.specSelectors.isOAS30()?p.default.createElement(t,(0,Pt.default)({},i,n,{Ori:r})):p.default.createElement(r,i):(console.warn("OAS30 wrapper: couldn't get spec"),null)}})((e=>{const{Ori:t}=e;return p.default.createElement(t,{oasVersion:"3.0"})})),JsonSchema_string:NAe,model:kAe,onlineValidatorBadge:jAe};const vT="oas3_set_servers",bT="oas3_set_request_body_value",_T="oas3_set_request_body_retain_flag",ET="oas3_set_request_body_inclusion",ST="oas3_set_active_examples_member",wT="oas3_set_request_content_type",xT="oas3_set_response_content_type",AT="oas3_set_server_variable_value",OT="oas3_set_request_body_validate_error",Wm="oas3_clear_request_body_validate_error",CT="oas3_clear_request_body_value";function DAe(e,t){return{type:vT,payload:{selectedServerUrl:e,namespace:t}}}function qAe({value:e,pathMethod:t}){return{type:bT,payload:{value:e,pathMethod:t}}}const FAe=({value:e,pathMethod:t})=>({type:_T,payload:{value:e,pathMethod:t}});function $Ae({value:e,pathMethod:t,name:r}){return{type:ET,payload:{value:e,pathMethod:t,name:r}}}function LAe({name:e,pathMethod:t,contextType:r,contextName:n}){return{type:ST,payload:{name:e,pathMethod:t,contextType:r,contextName:n}}}function BAe({value:e,pathMethod:t}){return{type:wT,payload:{value:e,pathMethod:t}}}function UAe({value:e,path:t,method:r}){return{type:xT,payload:{value:e,path:t,method:r}}}function VAe({server:e,namespace:t,key:r,val:n}){return{type:AT,payload:{server:e,namespace:t,key:r,val:n}}}const zAe=({path:e,method:t,validationErrors:r})=>({type:OT,payload:{path:e,method:t,validationErrors:r}}),WAe=({path:e,method:t})=>({type:Wm,payload:{path:e,method:t}}),JAe=({pathMethod:e})=>({type:Wm,payload:{path:e[0],method:e[1]}}),HAe=({pathMethod:e})=>({type:CT,payload:{pathMethod:e}});var KAe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return g_e}});const Ai=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS3()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},GAe=Ai(((e,t)=>{const r=t?[t,"selectedServer"]:["selectedServer"];return e.getIn(r)||""})),YAe=Ai(((e,t,r)=>e.getIn(["requestData",t,r,"bodyValue"])||null)),XAe=Ai(((e,t,r)=>e.getIn(["requestData",t,r,"retainBodyValue"])||!1)),ZAe=(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 Ed(s.specResolvedSubtree(["paths",t,r,"requestBody"]),o,i.activeExamplesMember(t,r,"requestBody","requestBody"),a)}return null},QAe=Ai(((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(G.Map.isMap(c)&&(c=Wr(c.mapEntries((f=>G.Map.isMap(f[1])?[f[0],f[1].get("value")]:f)).toJS())),G.List.isList(c)&&(c=Wr(c)),u){const f=Ed(l,u,i.activeExamplesMember(t,r,"requestBody","requestBody"),a);o=!!c&&c!==f}return o})),eOe=Ai(((e,t,r)=>e.getIn(["requestData",t,r,"bodyInclusion"])||(0,G.Map)())),tOe=Ai(((e,t,r)=>e.getIn(["requestData",t,r,"errors"])||null)),rOe=Ai(((e,t,r,n,i)=>e.getIn(["examples",t,r,n,i,"activeExample"])||null)),nOe=Ai(((e,t,r)=>e.getIn(["requestData",t,r,"requestContentType"])||null)),iOe=Ai(((e,t,r)=>e.getIn(["requestData",t,r,"responseContentType"])||null)),sOe=Ai(((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})),aOe=Ai(((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,G.OrderedMap)()})),oOe=Ai(((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,G.OrderedMap)();let i=n;return r.map(((s,a)=>{i=i.replace(new RegExp(`{${(0,KAe.default)(a)}}`,"g"),s)})),i})),uOe=(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))),cOe=(e,{oas3RequiredRequestBodyContentType:t,oas3RequestContentType:r,oas3RequestBodyValue:n})=>{let i=[];if(!G.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},lOe=(0,Lm.default)(["get","put","post","delete","options","head","patch","trace"]);var fOe={[vT]:(e,{payload:{selectedServerUrl:t,namespace:r}})=>{const n=r?[r,"selectedServer"]:["selectedServer"];return e.setIn(n,t)},[bT]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;if(!G.Map.isMap(t))return e.setIn(["requestData",n,i,"bodyValue"],t);let s=e.getIn(["requestData",n,i,"bodyValue"])||(0,G.Map)();G.Map.isMap(s)||(s=(0,G.Map)());let a=s;const[...o]=t.keys();return o.forEach((u=>{let c=t.getIn([u]);a.has(u)&&G.Map.isMap(c)||(a=a.setIn([u,"value"],c))})),e.setIn(["requestData",n,i,"bodyValue"],a)},[_T]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"retainBodyValue"],t)},[ET]:(e,{payload:{value:t,pathMethod:r,name:n}})=>{let[i,s]=r;return e.setIn(["requestData",i,s,"bodyInclusion",n],t)},[ST]:(e,{payload:{name:t,pathMethod:r,contextType:n,contextName:i}})=>{let[s,a]=r;return e.setIn(["examples",s,a,n,i,"activeExample"],t)},[wT]:(e,{payload:{value:t,pathMethod:r}})=>{let[n,i]=r;return e.setIn(["requestData",n,i,"requestContentType"],t)},[xT]:(e,{payload:{value:t,path:r,method:n}})=>e.setIn(["requestData",r,n,"responseContentType"],t),[AT]:(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)},[OT]:(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,G.fromJS)(i));if(n.missingRequiredKeys&&n.missingRequiredKeys.length>0){const{missingRequiredKeys:s}=n;return e.updateIn(["requestData",t,r,"bodyValue"],(0,G.fromJS)({}),(a=>s.reduce(((o,u)=>o.setIn([u,"errors"],(0,G.fromJS)(i))),a)))}return console.warn("unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR"),e},[Wm]:(e,{payload:{path:t,method:r}})=>{const n=e.getIn(["requestData",t,r,"bodyValue"]);if(!G.Map.isMap(n))return e.setIn(["requestData",t,r,"errors"],(0,G.fromJS)([]));const[...i]=n.keys();return i?e.updateIn(["requestData",t,r,"bodyValue"],(0,G.fromJS)({}),(s=>i.reduce(((a,o)=>a.setIn([o,"errors"],(0,G.fromJS)([]))),s))):e},[CT]:(e,{payload:{pathMethod:t}})=>{let[r,n]=t;const i=e.getIn(["requestData",r,n,"bodyValue"]);return i?G.Map.isMap(i)?e.setIn(["requestData",r,n,"bodyValue"],(0,G.Map)()):e.setIn(["requestData",r,n,"bodyValue"],""):e}};function FO({getSystem:e}){const t=(r=>(n,i=null)=>{const{getConfigs:s,fn:a}=r(),{fileUploadMediaTypes:o}=s();if(typeof i=="string"&&o.some((l=>i.startsWith(l))))return!0;const u=G.Map.isMap(n);if(!u&&!(0,Fs.default)(n))return!1;const c=u?n.get("format"):n.format;return a.hasSchemaType(n,"string")&&["binary","byte"].includes(c)})(e);return{components:RAe,wrapComponents:MAe,statePlugins:{spec:{wrapSelectors:yO,selectors:bO},auth:{wrapSelectors:vO},oas3:{actions:{..._O},reducers:fOe,selectors:{...EO}}},fn:{isFileUploadIntended:t,isFileUploadIntendedOAS30:t}}}var pOe=({specSelectors:e,getComponent:t})=>{const r=e.selectWebhooksOperations();if(!r)return null;const n=Object.keys(r),i=t("OperationContainer",!0);return n.length===0?null:p.default.createElement("div",{className:"webhooks"},p.default.createElement("h2",null,"Webhooks"),n.map((s=>p.default.createElement("div",{key:`${s}-webhook`},r[s].map((a=>p.default.createElement(i,{key:`${s}-${a.method}-webhook`,op:a.operation,tag:"webhooks",method:a.method,path:s,specPath:(0,G.List)(a.specPath),allowTryItOut:!1})))))))},dOe=({getComponent:e,specSelectors:t})=>{const r=t.selectLicenseNameField(),n=t.selectLicenseUrl(),i=e("Link");return p.default.createElement("div",{className:"info__license"},n?p.default.createElement("div",{className:"info__license__url"},p.default.createElement(i,{target:"_blank",href:Sr(n)},r)):p.default.createElement("span",null,r))},hOe=({getComponent:e,specSelectors:t})=>{const r=t.selectContactNameField(),n=t.selectContactUrl(),i=t.selectContactEmailField(),s=e("Link");return p.default.createElement("div",{className:"info__contact"},n&&p.default.createElement("div",null,p.default.createElement(s,{href:Sr(n),target:"_blank"},r," - Website")),i&&p.default.createElement(s,{href:Sr(`mailto:${i}`)},n?`Send email to ${r}`:`Contact ${r}`))},mOe=({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(),d=t.license(),g=e("Markdown",!0),y=e("Link"),v=e("VersionStamp"),_=e("OpenAPIVersion"),b=e("InfoUrl"),S=e("InfoBasePath"),w=e("License",!0),E=e("Contact",!0),A=e("JsonSchemaDialect",!0);return p.default.createElement("div",{className:"info"},p.default.createElement("hgroup",{className:"main"},p.default.createElement("h1",{className:"title"},u,p.default.createElement("span",null,r&&p.default.createElement(v,{version:r}),p.default.createElement(_,{oasVersion:"3.1"}))),(s||i)&&p.default.createElement(S,{host:s,basePath:i}),n&&p.default.createElement(b,{getComponent:e,url:n})),a&&p.default.createElement("p",{className:"info__summary"},a),p.default.createElement("div",{className:"info__description description"},p.default.createElement(g,{source:o})),c&&p.default.createElement("div",{className:"info__tos"},p.default.createElement(y,{target:"_blank",href:Sr(c)},"Terms of service")),h.size>0&&p.default.createElement(E,null),d.size>0&&p.default.createElement(w,null),l&&p.default.createElement(y,{className:"info__extdocs",target:"_blank",href:Sr(l)},f||l),p.default.createElement(A,null))},gOe=({getComponent:e,specSelectors:t})=>{const r=t.selectJsonSchemaDialectField(),n=t.selectJsonSchemaDialectDefault(),i=e("Link");return p.default.createElement(p.default.Fragment,null,r&&r===n&&p.default.createElement("p",{className:"info__jsonschemadialect"},"JSON Schema dialect:"," ",p.default.createElement(i,{target:"_blank",href:Sr(r)},r)),r&&r!==n&&p.default.createElement("div",{className:"error-wrapper"},p.default.createElement("div",{className:"no-margin"},p.default.createElement("div",{className:"errors"},p.default.createElement("div",{className:"errors-wrapper"},p.default.createElement("h4",{className:"center"},"Warning"),p.default.createElement("p",{className:"message"},p.default.createElement("strong",null,"OpenAPI.jsonSchemaDialect")," field contains a value different from the default value of"," ",p.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."))))))},yOe=({bypass:e,isSwagger2:t,isOAS3:r,isOAS31:n,alsoShow:i,children:s})=>e?p.default.createElement("div",null,s):t&&(r||n)?p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--ambiguous"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,p.default.createElement("code",null,"swagger")," and ",p.default.createElement("code",null,"openapi")," fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields."),p.default.createElement("p",null,"Supported version fields are ",p.default.createElement("code",null,'swagger: "2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",p.default.createElement("code",null,"openapi: 3.1.0"),").")))):t||r||n?p.default.createElement("div",null,s):p.default.createElement("div",{className:"version-pragma"},i,p.default.createElement("div",{className:"version-pragma__message version-pragma__message--missing"},p.default.createElement("div",null,p.default.createElement("h3",null,"Unable to render this definition"),p.default.createElement("p",null,"The provided definition does not specify a valid version field."),p.default.createElement("p",null,"Please indicate a valid Swagger or OpenAPI version field. Supported version fields are ",p.default.createElement("code",null,'swagger: "2.0"')," and those that match ",p.default.createElement("code",null,"openapi: 3.x.y")," (for example,"," ",p.default.createElement("code",null,"openapi: 3.1.0"),")."))));const vOe=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,bOe=(0,p.forwardRef)((({schema:e,getComponent:t,onToggle:r=()=>{},specPath:n},i)=>{const s=t("JSONSchema202012"),a=vOe(e.get("$$ref")),o=(0,p.useCallback)(((u,c)=>{r(a,c)}),[a,r]);return p.default.createElement(s,{name:a,schema:e.toJS(),ref:i,onExpand:o,identifier:n.toJS().join("_")})}));var _Oe=bOe,EOe=({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",d=r.isShown(c,h),g=i("Collapse"),y=i("JSONSchema202012"),v=i("ArrowUpIcon"),_=i("ArrowDownIcon"),{getTitle:b}=a.jsonSchema202012.useFn();(0,p.useEffect)((()=>{const R=Object.entries(o).some((([D])=>r.isShown([...c,D],!1))),I=d&&(f>1||R),O=t.specResolvedSubtree(c)!=null;I&&!O&&e.requestResolvedSubtree(c)}),[d,f]);const S=(0,p.useCallback)((()=>{n.show(c,!d)}),[d]),w=(0,p.useCallback)((R=>{R!==null&&n.readyToScroll(c,R)}),[]),E=R=>I=>{I!==null&&n.readyToScroll([...c,R],I)},A=R=>(I,O)=>{const D=[...c,R];O?(t.specResolvedSubtree(D)!=null||e.requestResolvedSubtree([...c,R]),n.show(D,!0)):n.show(D,!1)};return!u||f<0?null:p.default.createElement("section",{className:(0,kt.default)("models",{"is-open":d}),ref:w},p.default.createElement("h4",null,p.default.createElement("button",{"aria-expanded":d,className:"models-control",onClick:S},p.default.createElement("span",null,"Schemas"),d?p.default.createElement(v,null):p.default.createElement(_,null))),p.default.createElement(g,{isOpened:d},Object.entries(o).map((([R,I])=>{const O=b(I,{lookup:"basic"})||R;return p.default.createElement(y,{key:R,ref:E(R),schema:I,name:O,onExpand:A(R)})}))))},SOe=({schema:e,getComponent:t,name:r,authSelectors:n})=>{const i=t("JumpToPath",!0),s=n.selectAuthPath(r);return p.default.createElement("div",null,p.default.createElement("h4",null,r," (mutualTLS) ",p.default.createElement(i,{path:s})),p.default.createElement("p",null,"Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser."),p.default.createElement("p",null,e.get("description")))};class wOe extends p.default.Component{constructor(r,n){super(r,n);X(this,"onAuthChange",r=>{let{name:n}=r;this.setState({[n]:r})});X(this,"submitAuth",r=>{r.preventDefault();let{authActions:n}=this.props;n.authorizeWithPersistOption(this.state)});X(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)});X(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")),d=r.filter((g=>g.get("type")==="mutualTLS"));return p.default.createElement("div",{className:"auth-container"},f.size>0&&p.default.createElement("form",{onSubmit:this.submitAuth},f.map(((g,y)=>p.default.createElement(a,{key:y,schema:g,name:y,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i}))).toArray(),p.default.createElement("div",{className:"auth-btn-wrapper"},f.size===l.size?p.default.createElement(u,{className:"btn modal-btn auth",onClick:this.logoutClick,"aria-label":"Remove authorization"},"Logout"):p.default.createElement(u,{type:"submit",className:"btn modal-btn auth authorize","aria-label":"Apply credentials"},"Authorize"),p.default.createElement(u,{className:"btn modal-btn auth btn-done",onClick:this.close},"Close"))),h.size>0?p.default.createElement("div",null,p.default.createElement("div",{className:"scope-def"},p.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."),p.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)=>p.default.createElement("div",{key:y},p.default.createElement(o,{authorized:c,schema:g,name:y})))).toArray()):null,d.size>0&&p.default.createElement("div",null,d.map(((g,y)=>p.default.createElement(a,{key:y,schema:g,name:y,getComponent:n,onAuthChange:this.onAuthChange,authorized:c,errSelectors:s,authSelectors:i}))).toArray()))}}var xOe=wOe;const xW=e=>{const t=e.get("openapi");return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},c6=e=>(t,...r)=>n=>{if(n.getSystem().specSelectors.isOAS31()){const i=e(t,...r);return typeof i=="function"?i(n):i}return null},AW=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)},l6=e=>(t,...r)=>n=>{const i=e(t,n,...r);return typeof i=="function"?i(n):i},Ss=e=>(t,r)=>n=>r.specSelectors.isOAS31()?p.default.createElement(e,(0,Pt.default)({},n,{originalComponent:t,getSystem:r.getSystem})):p.default.createElement(t,n),bx=(e,t)=>{const{fn:r,specSelectors:n}=t;return Object.fromEntries(Object.entries(e).map((([i,s])=>{const a=r[i];return[i,(...o)=>n.isOAS31()?s(...o):typeof a=="function"?a(...o):void 0]})))};var AOe=Ss((({getSystem:e})=>{const t=e().getComponent("OAS31License",!0);return p.default.createElement(t,null)})),OOe=Ss((({getSystem:e})=>{const t=e().getComponent("OAS31Contact",!0);return p.default.createElement(t,null)})),COe=Ss((({getSystem:e})=>{const t=e().getComponent("OAS31Info",!0);return p.default.createElement(t,null)}));const ROe=(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)},OW=e=>{if(typeof e!="function")return null;const t=e();return()=>[...t,"discriminator","xml","externalDocs","example","$$ref"]},vc=Ss((({getSystem:e,...t})=>{const r=e(),{getComponent:n,fn:i,getConfigs:s}=r,a=s(),o=n("OAS31Model"),u=n("withJSONSchema202012SystemContext");return vc.ModelWithJSONSchemaContext??(vc.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:OW(i.jsonSchema202012.getSchemaKeywords)}})),p.default.createElement(vc.ModelWithJSONSchemaContext,t)}));var TOe=vc;const ia=Ss((({getSystem:e})=>{const{getComponent:t,fn:r,getConfigs:n}=e(),i=n();if(ia.ModelsWithJSONSchemaContext)return p.default.createElement(ia.ModelsWithJSONSchemaContext,null);const s=t("OAS31Models",!0),a=t("withJSONSchema202012SystemContext");return ia.ModelsWithJSONSchemaContext??(ia.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:OW(r.jsonSchema202012.getSchemaKeywords)}})),p.default.createElement(ia.ModelsWithJSONSchemaContext,null)}));ia.ModelsWithJSONSchemaContext=null;var IOe=ia,jOe=(e,t)=>r=>{const n=t.specSelectors.isOAS31(),i=t.getComponent("OAS31VersionPragmaFilter");return p.default.createElement(i,(0,Pt.default)({isOAS31:n},r))};const POe=Ss((({originalComponent:e,...t})=>{const{getComponent:r,schema:n,name:i}=t,s=r("MutualTLSAuth",!0);return n.get("type")==="mutualTLS"?p.default.createElement(s,{schema:n,name:i}):p.default.createElement(e,t)}));var kOe=POe,NOe=Ss((({getSystem:e,...t})=>{const r=e().getComponent("OAS31Auths",!0);return p.default.createElement(r,t)}));const RT=(0,G.Map)(),MOe=(0,ct.createSelector)(((e,t)=>t.specSelectors.specJson()),xW),DOe=()=>e=>{const t=e.specSelectors.specJson().get("webhooks");return G.Map.isMap(t)?t:RT},qOe=(0,ct.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(!G.Map.isMap(n))return r;const s=n.entrySeq().filter((([a])=>t.includes(a))).map((([a,o])=>({operation:(0,G.Map)({operation:o}),method:a,path:i,specPath:["webhooks",i,a]})));return r.concat(s)}),(0,G.List)()).groupBy((r=>r.path)).map((r=>r.toArray())).toObject())),FOe=()=>e=>{const t=e.specSelectors.info().get("license");return G.Map.isMap(t)?t:RT},$Oe=()=>e=>e.specSelectors.license().get("name","License"),LOe=()=>e=>e.specSelectors.license().get("url"),BOe=(0,ct.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,r)=>{if(r)return Bi(r,e,{selectedServer:t})})),UOe=()=>e=>e.specSelectors.license().get("identifier"),VOe=()=>e=>{const t=e.specSelectors.info().get("contact");return G.Map.isMap(t)?t:RT},zOe=()=>e=>e.specSelectors.contact().get("name","the developer"),WOe=()=>e=>e.specSelectors.contact().get("email"),JOe=()=>e=>e.specSelectors.contact().get("url"),HOe=(0,ct.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,r)=>{if(r)return Bi(r,e,{selectedServer:t})})),KOe=()=>e=>e.specSelectors.info().get("title"),GOe=()=>e=>e.specSelectors.info().get("summary"),YOe=()=>e=>e.specSelectors.info().get("description"),XOe=()=>e=>e.specSelectors.info().get("termsOfService"),ZOe=(0,ct.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectInfoTermsOfServiceField()],((e,t,r)=>{if(r)return Bi(r,e,{selectedServer:t})})),QOe=()=>e=>e.specSelectors.externalDocs().get("description"),e2e=()=>e=>e.specSelectors.externalDocs().get("url"),t2e=(0,ct.createSelector)([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectExternalDocsUrlField()],((e,t,r)=>{if(r)return Bi(r,e,{selectedServer:t})})),r2e=()=>e=>e.specSelectors.specJson().get("jsonSchemaDialect"),n2e=()=>"https://spec.openapis.org/oas/3.1/dialect/base",i2e=(0,ct.createSelector)(((e,t)=>t.specSelectors.definitions()),((e,t)=>t.specSelectors.specResolvedSubtree(["components","schemas"])),((e,t)=>G.Map.isMap(e)?G.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():{})),s2e=(e,t)=>(r,...n)=>t.specSelectors.isOAS31()||e(...n),a2e=AW((()=>(e,t)=>t.oas31Selectors.selectLicenseUrl())),o2e=AW((()=>(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 G.Map({[i]:s})))})),n})),u2e=(0,ct.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?Bi(r,e,{selectedServer:t}):n?`https://spdx.org/licenses/${n}.html`:void 0));var c2e=({schema:e,getSystem:t})=>{const{fn:r,getComponent:n}=t(),{hasKeyword:i}=r.jsonSchema202012.useFn(),s=n("JSONSchema202012JSONViewer");return i(e,"example")?p.default.createElement(s,{name:"Example",value:e.example,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--example"}):null},l2e=({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:d,setCollapsed:g}=u("xml"),[y,v]=l(),_=a?Ia(r):[],b=!!(r.name||r.namespace||r.prefix||_.length>0),S=o("Accordion"),w=o("ExpandDeepButton"),E=i("OpenAPI31Extensions"),A=i("JSONSchema202012PathContext")(),R=i("JSONSchema202012LevelContext")(),I=(0,p.useCallback)((()=>{h?g():d()}),[h,d,g]),O=(0,p.useCallback)(((D,P)=>{P?d({deep:!0}):g({deep:!0})}),[d,g]);return Object.keys(r).length===0?null:p.default.createElement(A.Provider,{value:f},p.default.createElement(R.Provider,{value:v},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--xml","data-json-schema-level":y},b?p.default.createElement(p.default.Fragment,null,p.default.createElement(S,{expanded:h,onChange:I},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML")),p.default.createElement(w,{expanded:h,onClick:O})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"XML"),r.attribute===!0&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"attribute"),r.wrapped===!0&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"wrapped"),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!h})},h&&p.default.createElement(p.default.Fragment,null,r.name&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"name"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.name))),r.namespace&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"namespace"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.namespace))),r.prefix&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"prefix"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},r.prefix)))),_.length>0&&p.default.createElement(E,{openAPISpecObj:r,openAPIExtensions:_,getSystem:t})))))},f2e=({discriminator:e})=>{const t=(e==null?void 0:e.mapping)||{};return Object.keys(t).length===0?null:Object.entries(t).map((([r,n])=>p.default.createElement("div",{key:`${r}-${n}`,className:"json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},r),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},n))))},p2e=({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:d,setExpanded:g,setCollapsed:y}=u(f),[v,_]=l(),b=a?Ia(r):[],S=!!(r.mapping||b.length>0),w=o("Accordion"),E=o("ExpandDeepButton"),A=i("OpenAPI31Extensions"),R=i("JSONSchema202012PathContext")(),I=i("JSONSchema202012LevelContext")(),O=(0,p.useCallback)((()=>{d?y():g()}),[d,g,y]),D=(0,p.useCallback)(((P,F)=>{F?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:p.default.createElement(R.Provider,{value:h},p.default.createElement(I.Provider,{value:_},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator","data-json-schema-level":v},S?p.default.createElement(p.default.Fragment,null,p.default.createElement(w,{expanded:d,onChange:O},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator")),p.default.createElement(E,{expanded:d,onClick:D})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"Discriminator"),r.propertyName&&p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},r.propertyName),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement(f2e,{discriminator:r})),b.length>0&&p.default.createElement(A,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},d2e=({openAPISpecObj:e,getSystem:t,openAPIExtensions:r})=>{const{fn:n}=t(),{useComponent:i}=n.jsonSchema202012,s=i("JSONViewer");return r.map((a=>p.default.createElement(s,{key:a,name:a,value:e[a],className:"json-schema-2020-12-json-viewer-extension-keyword"})))},h2e=({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:d,setExpanded:g,setCollapsed:y}=u(f),[v,_]=l(),b=a?Ia(r):[],S=!!(r.description||r.url||b.length>0),w=o("Accordion"),E=o("ExpandDeepButton"),A=i("JSONSchema202012KeywordDescription"),R=i("Link"),I=i("OpenAPI31Extensions"),O=i("JSONSchema202012PathContext")(),D=i("JSONSchema202012LevelContext")(),P=(0,p.useCallback)((()=>{d?y():g()}),[d,g,y]),F=(0,p.useCallback)(((M,K)=>{K?g({deep:!0}):y({deep:!0})}),[g,y]);return Object.keys(r).length===0?null:p.default.createElement(O.Provider,{value:h},p.default.createElement(D.Provider,{value:_},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs","data-json-schema-level":v},S?p.default.createElement(p.default.Fragment,null,p.default.createElement(w,{expanded:d,onChange:P},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation")),p.default.createElement(E,{expanded:d,onClick:F})):p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"External documentation"),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!d})},d&&p.default.createElement(p.default.Fragment,null,r.description&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement(A,{schema:r,getSystem:t})),r.url&&p.default.createElement("li",{className:"json-schema-2020-12-property"},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"url"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},p.default.createElement(R,{target:"_blank",href:Sr(r.url)},r.url))))),b.length>0&&p.default.createElement(I,{openAPISpecObj:r,openAPIExtensions:b,getSystem:t})))))},m2e=({schema:e,getSystem:t})=>{if(!(e!=null&&e.description))return null;const{getComponent:r}=t(),n=r("Markdown");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},p.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},p.default.createElement(n,{source:e.description})))},g2e=Ss(m2e);const y2e=Ss((({schema:e,getSystem:t,originalComponent:r})=>{const{getComponent:n}=t(),i=n("JSONSchema202012KeywordDiscriminator"),s=n("JSONSchema202012KeywordXml"),a=n("JSONSchema202012KeywordExample"),o=n("JSONSchema202012KeywordExternalDocs");return p.default.createElement(p.default.Fragment,null,p.default.createElement(r,{schema:e}),p.default.createElement(i,{schema:e,getSystem:t}),p.default.createElement(s,{schema:e,getSystem:t}),p.default.createElement(o,{schema:e,getSystem:t}),p.default.createElement(a,{schema:e,getSystem:t}))}));var v2e=y2e,b2e=({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")(),d=o(e,u);return Object.keys(d).length===0?null:p.default.createElement(h.Provider,{value:l},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},p.default.createElement("ul",null,Object.entries(d).map((([g,y])=>{const v=c.includes(g),_=a(g,e);return p.default.createElement("li",{key:g,className:(0,kt.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":v})},p.default.createElement(f,{name:g,schema:y,dependentRequired:_}))})))))},_2e=Ss(b2e),E2e=function({fn:t,getSystem:r}){if(t.jsonSchema202012){const s=((a,o)=>{const{fn:u}=o();if(typeof a!="function")return null;const{hasKeyword:c}=u.jsonSchema202012;return l=>a(l)||c(l,"example")||(l==null?void 0:l.xml)||(l==null?void 0:l.discriminator)||(l==null?void 0:l.externalDocs)})(t.jsonSchema202012.isExpandable,r);Object.assign(this.fn.jsonSchema202012,{isExpandable:s,getProperties:ROe})}if(typeof t.sampleFromSchema=="function"&&t.jsonSchema202012){const s=bx({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,getSchemaObjectTypeLabel:a=>t.jsonSchema202012.getType(gu(a)),getSchemaObjectType:a=>{var o;return t.jsonSchema202012.foldType((o=gu(a))==null?void 0:o.type)}},r());Object.assign(this.fn,s)}const n=(s=>(a,o=null)=>{const{fn:u}=s();if(u.isFileUploadIntendedOAS30(a,o))return!0;const c=G.Map.isMap(a);if(!c&&!(0,Fs.default)(a))return!1;const l=c?a.get("contentMediaType"):a.contentMediaType,f=c?a.get("contentEncoding"):a.contentEncoding;return typeof l=="string"&&l!==""||typeof f=="string"&&f!==""})(r),{isFileUploadIntended:i}=bx({isFileUploadIntended:n},r());if(this.fn.isFileUploadIntended=i,this.fn.isFileUploadIntendedOAS31=n,t.jsonSchema202012){const{hasSchemaType:s}=bx({hasSchemaType:t.jsonSchema202012.hasSchemaType},r());this.fn.hasSchemaType=s}},S2e=({fn:e})=>{const t=e.createSystemSelector||l6,r=e.createOnlyOAS31Selector||c6;return{afterLoad:E2e,fn:{isOAS31:xW,createSystemSelector:l6,createOnlyOAS31Selector:c6},components:{Webhooks:pOe,JsonSchemaDialect:gOe,MutualTLSAuth:SOe,OAS31Info:mOe,OAS31License:dOe,OAS31Contact:hOe,OAS31VersionPragmaFilter:yOe,OAS31Model:_Oe,OAS31Models:EOe,OAS31Auths:xOe,JSONSchema202012KeywordExample:c2e,JSONSchema202012KeywordXml:l2e,JSONSchema202012KeywordDiscriminator:p2e,JSONSchema202012KeywordExternalDocs:h2e,OpenAPI31Extensions:d2e},wrapComponents:{InfoContainer:COe,License:AOe,Contact:OOe,VersionPragmaFilter:jOe,Model:TOe,Models:IOe,AuthItem:kOe,auths:NOe,JSONSchema202012KeywordDescription:g2e,JSONSchema202012KeywordExamples:v2e,JSONSchema202012KeywordProperties:_2e},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:o2e}},spec:{selectors:{isOAS31:t(MOe),license:FOe,selectLicenseNameField:$Oe,selectLicenseUrlField:LOe,selectLicenseIdentifierField:r(UOe),selectLicenseUrl:t(BOe),contact:VOe,selectContactNameField:zOe,selectContactEmailField:WOe,selectContactUrlField:JOe,selectContactUrl:t(HOe),selectInfoTitleField:KOe,selectInfoSummaryField:r(GOe),selectInfoDescriptionField:YOe,selectInfoTermsOfServiceField:XOe,selectInfoTermsOfServiceUrl:t(ZOe),selectExternalDocsDescriptionField:QOe,selectExternalDocsUrlField:e2e,selectExternalDocsUrl:t(t2e),webhooks:r(DOe),selectWebhooksOperations:r(t(qOe)),selectJsonSchemaDialectField:r2e,selectJsonSchemaDialectDefault:n2e,selectSchemas:t(i2e)},wrapSelectors:{isOAS3:s2e,selectLicenseUrl:a2e}},oas31:{selectors:{selectLicenseUrl:r(t(u2e))}}}}};const w2e=In.default.object,x2e=In.default.bool,no=(In.default.oneOfType([w2e,x2e]),(0,p.createContext)(null));no.displayName="JSONSchemaContext";const Oi=(0,p.createContext)(0);Oi.displayName="JSONSchemaLevelContext";const $O=(0,p.createContext)(new Set),Ln=(0,p.createContext)([]);class jn{}X(jn,"Collapsed","collapsed"),X(jn,"Expanded","expanded"),X(jn,"DeeplyExpanded","deeply-expanded");const TT=()=>{const{config:e}=(0,p.useContext)(no);return e},Fe=e=>{const{components:t}=(0,p.useContext)(no);return t[e]||null},Xt=(e=void 0)=>{const{fn:t}=(0,p.useContext)(no);return e!==void 0?t[e]:t},CW=()=>{const[,e]=(0,p.useState)(null),{state:t}=(0,p.useContext)(no);return{state:t,setState:r=>{r(t),e({})}}},bi=()=>{const e=(0,p.useContext)(Oi);return[e,e+1]},xn=e=>{const t=(0,p.useContext)(Ln),{setState:r}=CW(),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===jn.Collapsed&&Object.keys(c.paths).forEach((l=>{l.startsWith(a)&&c.paths[l]===jn.DeeplyExpanded&&(c.paths[l]=jn.Expanded)}))},u=c=>{Object.keys(c.paths).forEach((l=>{l.startsWith(a)&&(c.paths[l]=i)}))};s.deep?r(u):r(o)}}},Ki=e=>{const[t]=bi(),{defaultExpandedLevels:r}=TT(),{path:n,pathMutator:i}=xn(e),{path:s}=xn(),{state:a}=CW(),o=a.paths[n.toString()],u=a.paths[s.toString()]??a.paths[s.slice(0,-1).toString()],c=o??(r-t>0?jn.Expanded:jn.Collapsed),l=c!==jn.Collapsed;return(0,p.useEffect)((()=>{i(u===jn.DeeplyExpanded?jn.DeeplyExpanded:c)}),[u]),{isExpanded:l,setExpanded:(0,p.useCallback)(((f={deep:!1})=>{i(f.deep?jn.DeeplyExpanded:jn.Expanded)}),[]),setCollapsed:(0,p.useCallback)(((f={deep:!1})=>{i(jn.Collapsed,f)}),[])}},f6=(e=void 0)=>{if(e===void 0)return(0,p.useContext)($O);const t=(0,p.useContext)($O);return new Set([...t,e])},A2e=(0,p.forwardRef)((({schema:e,name:t="",dependentRequired:r=[],onExpand:n=()=>{},identifier:i=""},s)=>{const a=Xt(),o=i||(e==null?void 0:e.$id)||t,{path:u}=xn(o),{isExpanded:c,setExpanded:l,setCollapsed:f}=Ki(o),[h,d]=bi(),g=(()=>{const[$]=bi();return $>0})(),y=a.isExpandable(e)||r.length>0,v=($=>f6().has($))(e),_=f6(e),b=a.stringifyConstraints(e),S=Fe("Accordion"),w=Fe("Keyword$schema"),E=Fe("Keyword$vocabulary"),A=Fe("Keyword$id"),R=Fe("Keyword$anchor"),I=Fe("Keyword$dynamicAnchor"),O=Fe("Keyword$ref"),D=Fe("Keyword$dynamicRef"),P=Fe("Keyword$defs"),F=Fe("Keyword$comment"),M=Fe("KeywordAllOf"),K=Fe("KeywordAnyOf"),te=Fe("KeywordOneOf"),J=Fe("KeywordNot"),Q=Fe("KeywordIf"),re=Fe("KeywordThen"),ne=Fe("KeywordElse"),U=Fe("KeywordDependentSchemas"),H=Fe("KeywordPrefixItems"),ie=Fe("KeywordItems"),ue=Fe("KeywordContains"),le=Fe("KeywordProperties"),ee=Fe("KeywordPatternProperties"),z=Fe("KeywordAdditionalProperties"),V=Fe("KeywordPropertyNames"),fe=Fe("KeywordUnevaluatedItems"),me=Fe("KeywordUnevaluatedProperties"),Re=Fe("KeywordType"),Ne=Fe("KeywordEnum"),he=Fe("KeywordConst"),Te=Fe("KeywordConstraint"),Ue=Fe("KeywordDependentRequired"),_e=Fe("KeywordContentSchema"),we=Fe("KeywordTitle"),Ae=Fe("KeywordDescription"),B=Fe("KeywordDefault"),T=Fe("KeywordDeprecated"),k=Fe("KeywordReadOnly"),W=Fe("KeywordWriteOnly"),se=Fe("KeywordExamples"),ce=Fe("ExtensionKeywords"),ye=Fe("ExpandDeepButton"),Me=(0,p.useCallback)((($,C)=>{C?l():f(),n($,C,!1)}),[n,l,f]),Xe=(0,p.useCallback)((($,C)=>{C?l({deep:!0}):f({deep:!0}),n($,C,!0)}),[n,l,f]);return p.default.createElement(Ln.Provider,{value:u},p.default.createElement(Oi.Provider,{value:d},p.default.createElement($O.Provider,{value:_},p.default.createElement("article",{ref:s,"data-json-schema-level":h,className:(0,kt.default)("json-schema-2020-12",{"json-schema-2020-12--embedded":g,"json-schema-2020-12--circular":v})},p.default.createElement("div",{className:"json-schema-2020-12-head"},y&&!v?p.default.createElement(p.default.Fragment,null,p.default.createElement(S,{expanded:c,onChange:Me},p.default.createElement(we,{title:t,schema:e})),p.default.createElement(ye,{expanded:c,onClick:Xe})):p.default.createElement(we,{title:t,schema:e}),p.default.createElement(T,{schema:e}),p.default.createElement(k,{schema:e}),p.default.createElement(W,{schema:e}),p.default.createElement(Re,{schema:e,isCircular:v}),b.length>0&&b.map(($=>p.default.createElement(Te,{key:`${$.scope}-${$.value}`,constraint:$})))),p.default.createElement("div",{className:(0,kt.default)("json-schema-2020-12-body",{"json-schema-2020-12-body--collapsed":!c})},c&&p.default.createElement(p.default.Fragment,null,p.default.createElement(Ae,{schema:e}),!v&&y&&p.default.createElement(p.default.Fragment,null,p.default.createElement(le,{schema:e}),p.default.createElement(ee,{schema:e}),p.default.createElement(z,{schema:e}),p.default.createElement(me,{schema:e}),p.default.createElement(V,{schema:e}),p.default.createElement(M,{schema:e}),p.default.createElement(K,{schema:e}),p.default.createElement(te,{schema:e}),p.default.createElement(J,{schema:e}),p.default.createElement(Q,{schema:e}),p.default.createElement(re,{schema:e}),p.default.createElement(ne,{schema:e}),p.default.createElement(U,{schema:e}),p.default.createElement(H,{schema:e}),p.default.createElement(ie,{schema:e}),p.default.createElement(fe,{schema:e}),p.default.createElement(ue,{schema:e}),p.default.createElement(_e,{schema:e})),p.default.createElement(Ne,{schema:e}),p.default.createElement(he,{schema:e}),p.default.createElement(Ue,{schema:e,dependentRequired:r}),p.default.createElement(B,{schema:e}),p.default.createElement(se,{schema:e}),p.default.createElement(w,{schema:e}),p.default.createElement(E,{schema:e}),p.default.createElement(A,{schema:e}),p.default.createElement(R,{schema:e}),p.default.createElement(I,{schema:e}),p.default.createElement(O,{schema:e}),!v&&y&&p.default.createElement(P,{schema:e}),p.default.createElement(D,{schema:e}),p.default.createElement(F,{schema:e}),p.default.createElement(ce,{schema:e})))))))}));var RW=A2e,TW=({schema:e})=>e!=null&&e.$schema?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$schema"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$schema)):null,IW=({schema:e})=>{const t="$vocabulary",{path:r}=xn(t),{isExpanded:n,setExpanded:i,setCollapsed:s}=Ki(t),a=Fe("Accordion"),o=(0,p.useCallback)((()=>{n?s():i()}),[n,i,s]);return e!=null&&e.$vocabulary?typeof e.$vocabulary!="object"?null:p.default.createElement(Ln.Provider,{value:r},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary"},p.default.createElement(a,{expanded:n,onChange:o},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$vocabulary")),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",null,n&&Object.entries(e.$vocabulary).map((([u,c])=>p.default.createElement("li",{key:u,className:(0,kt.default)("json-schema-2020-12-$vocabulary-uri",{"json-schema-2020-12-$vocabulary-uri--disabled":!c})},p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},u))))))):null},jW=({schema:e})=>e!=null&&e.$id?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$id"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$id"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$id)):null,PW=({schema:e})=>e!=null&&e.$anchor?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$anchor"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$anchor)):null,kW=({schema:e})=>e!=null&&e.$dynamicAnchor?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicAnchor"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicAnchor)):null,NW=({schema:e})=>e!=null&&e.$ref?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$ref"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$ref)):null,MW=({schema:e})=>e!=null&&e.$dynamicRef?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$dynamicRef"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$dynamicRef)):null,DW=({schema:e})=>{const t=(e==null?void 0:e.$defs)||{},r="$defs",{path:n}=xn(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ki(r),[o,u]=bi(),c=Fe("Accordion"),l=Fe("ExpandDeepButton"),f=Fe("JSONSchema"),h=(0,p.useCallback)((()=>{i?a():s()}),[i,s,a]),d=(0,p.useCallback)(((g,y)=>{y?s({deep:!0}):a({deep:!0})}),[s,a]);return Object.keys(t).length===0?null:p.default.createElement(Ln.Provider,{value:n},p.default.createElement(Oi.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:h},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$defs")),p.default.createElement(l,{expanded:i,onClick:d}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,Object.entries(t).map((([g,y])=>p.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},p.default.createElement(f,{name:g,schema:y})))))))))},qW=({schema:e})=>e!=null&&e.$comment?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary"},"$comment"),p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary"},e.$comment)):null,FW=({schema:e})=>{const t=(e==null?void 0:e.allOf)||[],r=Xt(),n="allOf",{path:i}=xn(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ki(n),[u,c]=bi(),l=Fe("Accordion"),f=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(Ln.Provider,{value:i},p.default.createElement(Oi.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"All of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{allOf:t}}),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},$W=({schema:e})=>{const t=(e==null?void 0:e.anyOf)||[],r=Xt(),n="anyOf",{path:i}=xn(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ki(n),[u,c]=bi(),l=Fe("Accordion"),f=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(Ln.Provider,{value:i},p.default.createElement(Oi.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Any of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{anyOf:t}}),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},LW=({schema:e})=>{const t=(e==null?void 0:e.oneOf)||[],r=Xt(),n="oneOf",{path:i}=xn(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ki(n),[u,c]=bi(),l=Fe("Accordion"),f=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(Ln.Provider,{value:i},p.default.createElement(Oi.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"One of")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{oneOf:t}}),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},BW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"not"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Not");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--not"},p.default.createElement(r,{name:n,schema:e.not,identifier:"not"}))},UW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"if"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"If");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},p.default.createElement(r,{name:n,schema:e.if,identifier:"if"}))},VW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"then"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Then");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--then"},p.default.createElement(r,{name:n,schema:e.then,identifier:"then"}))},zW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"else"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Else");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--if"},p.default.createElement(r,{name:n,schema:e.else,identifier:"else"}))},WW=({schema:e})=>{const t=(e==null?void 0:e.dependentSchemas)||[],r="dependentSchemas",{path:n}=xn(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ki(r),[o,u]=bi(),c=Fe("Accordion"),l=Fe("ExpandDeepButton"),f=Fe("JSONSchema"),h=(0,p.useCallback)((()=>{i?a():s()}),[i,s,a]),d=(0,p.useCallback)(((g,y)=>{y?s({deep:!0}):a({deep:!0})}),[s,a]);return typeof t!="object"||Object.keys(t).length===0?null:p.default.createElement(Ln.Provider,{value:n},p.default.createElement(Oi.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:h},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Dependent schemas")),p.default.createElement(l,{expanded:i,onClick:d}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"object"),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,Object.entries(t).map((([g,y])=>p.default.createElement("li",{key:g,className:"json-schema-2020-12-property"},p.default.createElement(f,{name:g,schema:y})))))))))},JW=({schema:e})=>{const t=(e==null?void 0:e.prefixItems)||[],r=Xt(),n="prefixItems",{path:i}=xn(n),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ki(n),[u,c]=bi(),l=Fe("Accordion"),f=Fe("ExpandDeepButton"),h=Fe("JSONSchema"),d=Fe("KeywordType"),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return Array.isArray(t)&&t.length!==0?p.default.createElement(Ln.Provider,{value:i},p.default.createElement(Oi.Provider,{value:c},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems","data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Prefix items")),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement(d,{schema:{prefixItems:t}}),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(h,{name:`#${_} ${r.getTitle(v)}`,schema:v}))))))))):null},HW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"items"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Items");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--items"},p.default.createElement(r,{name:n,schema:e.items,identifier:"items"}))},KW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"contains"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Contains");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contains"},p.default.createElement(r,{name:n,schema:e.contains,identifier:"contains"}))},GW=({schema:e})=>{const t=Xt(),r=(e==null?void 0:e.properties)||{},n=Array.isArray(e==null?void 0:e.required)?e.required:[],i=Fe("JSONSchema"),{path:s}=xn("properties");return Object.keys(r).length===0?null:p.default.createElement(Ln.Provider,{value:s},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--properties"},p.default.createElement("ul",null,Object.entries(r).map((([a,o])=>{const u=n.includes(a),c=t.getDependentRequired(a,e);return p.default.createElement("li",{key:a,className:(0,kt.default)("json-schema-2020-12-property",{"json-schema-2020-12-property--required":u})},p.default.createElement(i,{name:a,schema:o,dependentRequired:c}))})))))},YW=({schema:e})=>{const t=(e==null?void 0:e.patternProperties)||{},r=Fe("JSONSchema"),{path:n}=xn("patternProperties");return Object.keys(t).length===0?null:p.default.createElement(Ln.Provider,{value:n},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties"},p.default.createElement("ul",null,Object.entries(t).map((([i,s])=>p.default.createElement("li",{key:i,className:"json-schema-2020-12-property"},p.default.createElement(r,{name:i,schema:s})))))))},XW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"additionalProperties"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Additional properties");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties"},e.additionalProperties===!0?p.default.createElement(p.default.Fragment,null,n,p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"allowed")):e.additionalProperties===!1?p.default.createElement(p.default.Fragment,null,n,p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},"forbidden")):p.default.createElement(r,{name:n,schema:e.additionalProperties,identifier:"additionalProperties"}))},ZW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema"),n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Property names");return t.hasKeyword(e,"propertyNames")?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames"},p.default.createElement(r,{name:n,schema:e.propertyNames,identifier:"propertyNames"})):null},QW=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"unevaluatedItems"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated items");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems"},p.default.createElement(r,{name:n,schema:e.unevaluatedItems,identifier:"unevaluatedItems"}))},eJ=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"unevaluatedProperties"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Unevaluated properties");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties"},p.default.createElement(r,{name:n,schema:e.unevaluatedProperties,identifier:"unevaluatedProperties"}))},tJ=({schema:e,isCircular:t=!1})=>{const r=Xt().getType(e),n=t?" [circular]":"";return p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},`${r}${n}`)},rJ=({schema:e})=>{const t=Fe("JSONViewer");return Array.isArray(e==null?void 0:e.enum)?p.default.createElement(t,{name:"Enum",value:e.enum,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--enum"}):null},nJ=({schema:e})=>{const t=Xt(),r=Fe("JSONViewer");return t.hasKeyword(e,"const")?p.default.createElement(r,{name:"Const",value:e.const,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--const"}):null};const iJ=e=>typeof e=="string"?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,sJ=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""},aJ=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((d=>t(d,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((d=>t(d,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")||Object.hasOwn(r,"contentEncoding")||Object.hasOwn(r,"contentMediaType"))return"string";if(r.const!==void 0){if(r.const===null)return"null";if(typeof r.const=="boolean")return"boolean";if(typeof r.const=="number")return Number.isInteger(r.const)?"integer":"number";if(typeof r.const=="string")return"string";if(Array.isArray(r.const))return"array<any>";if(typeof r.const=="object")return"object"}return null})(),c("oneOf"," | "),c("anyOf"," | "),c("allOf"," & ")].filter(Boolean).join(" | ");return n.delete(r),l||"any"};return t},oJ=e=>typeof e=="boolean",uJ=(e,t)=>e!==null&&typeof e=="object"&&Object.hasOwn(e,t),cJ=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},lJ=e=>e===null||["number","bigint","boolean"].includes(typeof e)?String(e):Array.isArray(e)?`[${e.map(lJ).join(", ")}]`:JSON.stringify(e),_p=(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},O2e=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,d=typeof c=="number",g=typeof l=="number",y=typeof f=="number",v=typeof h=="number",_=y&&(!d||c<f),b=v&&(!g||l>h);return(d||y)&&(g||v)?`${_?"(":"["}${_?f:c}, ${b?h:l}${b?")":"]"}`:d||y?`${_?">":"≥"} ${_?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=_p("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=_p(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=_p("contained items",e==null?void 0:e.minContains,e==null?void 0:e.maxContains);a!==null&&t.push({scope:"array",value:a});const o=_p("properties",e==null?void 0:e.minProperties,e==null?void 0:e.maxProperties);return o!==null&&t.push({scope:"object",value:o}),t},C2e=(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)):[],Jm=e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),fJ=()=>["$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"],pJ=e=>t=>{const r=e().getSchemaKeywords();return Jm(t)?((n,i)=>{const s=new Set(i);return n.filter((a=>!s.has(a)))})(Object.keys(t),r):[]},R2e=(e,t)=>{const r=G.Map.isMap(e);if(!r&&!Jm(e))return!1;const n=s=>t===s||Array.isArray(t)&&t.includes(s),i=r?e.get("type"):e.type;return G.List.isList(i)||Array.isArray(i)?i.some((s=>n(s))):n(i)},T2e=({constraint:e})=>Jm(e)&&typeof e.scope=="string"&&typeof e.value=="string"?p.default.createElement("span",{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${e.scope}`},e.value):null;var dJ=p.default.memo(T2e),hJ=({dependentRequired:e})=>Array.isArray(e)&&e.length!==0?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired"},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Required when defined"),p.default.createElement("ul",null,e.map((t=>p.default.createElement("li",{key:t},p.default.createElement("span",{className:"json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning"},t)))))):null,mJ=({schema:e})=>{const t=Xt(),r=Fe("JSONSchema");if(!t.hasKeyword(e,"contentSchema"))return null;const n=p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary"},"Content schema");return p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema"},p.default.createElement(r,{name:n,schema:e.contentSchema,identifier:"contentSchema"}))},gJ=({title:e="",schema:t})=>{const r=Xt(),n=e||r.getTitle(t);return n?p.default.createElement("div",{className:"json-schema-2020-12__title"},n):null},yJ=({schema:e})=>e!=null&&e.description?p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--description"},p.default.createElement("div",{className:"json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary"},e.description)):null,vJ=({schema:e})=>{const t=Xt(),r=Fe("JSONViewer");return t.hasKeyword(e,"default")?p.default.createElement(r,{name:"Default",value:e.default,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--default"}):null},bJ=({schema:e})=>(e==null?void 0:e.deprecated)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--warning"},"deprecated"),_J=({schema:e})=>(e==null?void 0:e.readOnly)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"read-only"),EJ=({schema:e})=>(e==null?void 0:e.writeOnly)!==!0?null:p.default.createElement("span",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--muted"},"write-only"),SJ=({schema:e})=>{const t=(e==null?void 0:e.examples)||[],r=Fe("JSONViewer");return Array.isArray(t)&&t.length!==0?p.default.createElement(r,{name:"Examples",value:e.examples,className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--examples"}):null},wJ=({schema:e})=>{const t=Xt(),r="ExtensionKeywords",{path:n}=xn(r),{isExpanded:i,setExpanded:s,setCollapsed:a}=Ki(r),[o,u]=bi(),c=Fe("Accordion"),l=Fe("ExpandDeepButton"),f=Fe("JSONViewer"),{showExtensionKeywords:h}=TT(),d=t.getExtensionKeywords(e),g=(0,p.useCallback)((()=>{i?a():s()}),[i,s,a]),y=(0,p.useCallback)(((v,_)=>{_?s({deep:!0}):a({deep:!0})}),[s,a]);return h&&d.length!==0?p.default.createElement(Ln.Provider,{value:n},p.default.createElement(Oi.Provider,{value:u},p.default.createElement("div",{className:"json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords","data-json-schema-level":o},p.default.createElement(c,{expanded:i,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension"},"Extension Keywords")),p.default.createElement(l,{expanded:i,onClick:y}),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-keyword__children",{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&p.default.createElement(p.default.Fragment,null,d.map((v=>p.default.createElement(f,{key:v,name:v,value:e[v],className:"json-schema-2020-12-json-viewer-extension-keyword"})))))))):null};const LO=({name:e,value:t,className:r})=>{const n=Xt(),{path:i}=xn(e),{isExpanded:s,setExpanded:a,setCollapsed:o}=Ki(e),[u,c]=bi(),l=Fe("Accordion"),f=Fe("ExpandDeepButton"),h=typeof t=="string"||typeof t=="number"||typeof t=="bigint"||typeof t=="boolean"||typeof t=="symbol"||t==null,d=(v=>Jm(v)&&Object.keys(v).length===0)(t)||(v=>Array.isArray(v)&&v.length===0)(t),g=(0,p.useCallback)((()=>{s?o():a()}),[s,a,o]),y=(0,p.useCallback)(((v,_)=>{_?a({deep:!0}):o({deep:!0})}),[a,o]);return h?p.default.createElement("div",{className:(0,kt.default)("json-schema-2020-12-json-viewer",r)},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary"},n.stringify(t))):d?p.default.createElement("div",{className:(0,kt.default)("json-schema-2020-12-json-viewer",r)},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"empty array":"empty object")):p.default.createElement(Ln.Provider,{value:i},p.default.createElement(Oi.Provider,{value:c},p.default.createElement("div",{className:(0,kt.default)("json-schema-2020-12-json-viewer",r),"data-json-schema-level":u},p.default.createElement(l,{expanded:s,onChange:g},p.default.createElement("span",{className:"json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary"},e)),p.default.createElement(f,{expanded:s,onClick:y}),p.default.createElement("strong",{className:"json-schema-2020-12__attribute json-schema-2020-12__attribute--primary"},Array.isArray(t)?"array":"object"),p.default.createElement("ul",{className:(0,kt.default)("json-schema-2020-12-json-viewer__children",{"json-schema-2020-12-json-viewer__children--collapsed":!s})},s&&p.default.createElement(p.default.Fragment,null,Array.isArray(t)?t.map(((v,_)=>p.default.createElement("li",{key:`#${_}`,className:"json-schema-2020-12-property"},p.default.createElement(LO,{name:`#${_}`,value:v,className:r})))):Object.entries(t).map((([v,_])=>p.default.createElement("li",{key:v,className:"json-schema-2020-12-property"},p.default.createElement(LO,{name:v,value:_,className:r})))))))))};var xJ=LO,AJ=({expanded:e=!1,children:t,onChange:r})=>{const n=Fe("ChevronRightIcon"),i=(0,p.useCallback)((s=>{r(s,!e)}),[e,r]);return p.default.createElement("button",{type:"button",className:"json-schema-2020-12-accordion",onClick:i},p.default.createElement("div",{className:"json-schema-2020-12-accordion__children"},t),p.default.createElement("span",{className:(0,kt.default)("json-schema-2020-12-accordion__icon",{"json-schema-2020-12-accordion__icon--expanded":e,"json-schema-2020-12-accordion__icon--collapsed":!e})},p.default.createElement(n,null)))},OJ=({expanded:e,onClick:t})=>{const r=(0,p.useCallback)((n=>{t(n,!e)}),[e,t]);return p.default.createElement("button",{type:"button",className:"json-schema-2020-12-expand-deep-button",onClick:r},e?"Collapse all":"Expand all")},CJ=()=>p.default.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},p.default.createElement("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}));const RJ=(e,t={})=>{const r={components:{JSONSchema:RW,Keyword$schema:TW,Keyword$vocabulary:IW,Keyword$id:jW,Keyword$anchor:PW,Keyword$dynamicAnchor:kW,Keyword$ref:NW,Keyword$dynamicRef:MW,Keyword$defs:DW,Keyword$comment:qW,KeywordAllOf:FW,KeywordAnyOf:$W,KeywordOneOf:LW,KeywordNot:BW,KeywordIf:UW,KeywordThen:VW,KeywordElse:zW,KeywordDependentSchemas:WW,KeywordPrefixItems:JW,KeywordItems:HW,KeywordContains:KW,KeywordProperties:GW,KeywordPatternProperties:YW,KeywordAdditionalProperties:XW,KeywordPropertyNames:ZW,KeywordUnevaluatedItems:QW,KeywordUnevaluatedProperties:eJ,KeywordType:tJ,KeywordEnum:rJ,KeywordConst:nJ,KeywordConstraint:dJ,KeywordDependentRequired:hJ,KeywordContentSchema:mJ,KeywordTitle:gJ,KeywordDescription:yJ,KeywordDefault:vJ,KeywordDeprecated:bJ,KeywordReadOnly:_J,KeywordWriteOnly:EJ,KeywordExamples:SJ,ExtensionKeywords:wJ,JSONViewer:xJ,Accordion:AJ,ExpandDeepButton:OJ,ChevronRightIcon:CJ,...t.components},config:{default$schema:"https://json-schema.org/draft/2020-12/schema",defaultExpandedLevels:0,showExtensionKeywords:!0,...t.config},fn:{upperFirst:iJ,getTitle:sJ(Xt),getType:aJ(Xt),isBooleanJSONSchema:oJ,hasKeyword:uJ,isExpandable:cJ(Xt),stringify:lJ,stringifyConstraints:O2e,getDependentRequired:C2e,getSchemaKeywords:fJ,getExtensionKeywords:pJ(Xt),...t.fn},state:{paths:{}}},n=i=>p.default.createElement(no.Provider,{value:r},p.default.createElement(e,i));return n.contexts={JSONSchemaContext:no},n.displayName=e.displayName,n},I2e=({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"),d=n("JSONSchema202012Keyword$dynamicRef"),g=n("JSONSchema202012Keyword$defs"),y=n("JSONSchema202012Keyword$comment"),v=n("JSONSchema202012KeywordAllOf"),_=n("JSONSchema202012KeywordAnyOf"),b=n("JSONSchema202012KeywordOneOf"),S=n("JSONSchema202012KeywordNot"),w=n("JSONSchema202012KeywordIf"),E=n("JSONSchema202012KeywordThen"),A=n("JSONSchema202012KeywordElse"),R=n("JSONSchema202012KeywordDependentSchemas"),I=n("JSONSchema202012KeywordPrefixItems"),O=n("JSONSchema202012KeywordItems"),D=n("JSONSchema202012KeywordContains"),P=n("JSONSchema202012KeywordProperties"),F=n("JSONSchema202012KeywordPatternProperties"),M=n("JSONSchema202012KeywordAdditionalProperties"),K=n("JSONSchema202012KeywordPropertyNames"),te=n("JSONSchema202012KeywordUnevaluatedItems"),J=n("JSONSchema202012KeywordUnevaluatedProperties"),Q=n("JSONSchema202012KeywordType"),re=n("JSONSchema202012KeywordEnum"),ne=n("JSONSchema202012KeywordConst"),U=n("JSONSchema202012KeywordConstraint"),H=n("JSONSchema202012KeywordDependentRequired"),ie=n("JSONSchema202012KeywordContentSchema"),ue=n("JSONSchema202012KeywordTitle"),le=n("JSONSchema202012KeywordDescription"),ee=n("JSONSchema202012KeywordDefault"),z=n("JSONSchema202012KeywordDeprecated"),V=n("JSONSchema202012KeywordReadOnly"),fe=n("JSONSchema202012KeywordWriteOnly"),me=n("JSONSchema202012KeywordExamples"),Re=n("JSONSchema202012ExtensionKeywords"),Ne=n("JSONSchema202012JSONViewer"),he=n("JSONSchema202012Accordion"),Te=n("JSONSchema202012ExpandDeepButton"),Ue=n("JSONSchema202012ChevronRightIcon");return RJ(t,{components:{JSONSchema:a,Keyword$schema:o,Keyword$vocabulary:u,Keyword$id:c,Keyword$anchor:l,Keyword$dynamicAnchor:f,Keyword$ref:h,Keyword$dynamicRef:d,Keyword$defs:g,Keyword$comment:y,KeywordAllOf:v,KeywordAnyOf:_,KeywordOneOf:b,KeywordNot:S,KeywordIf:w,KeywordThen:E,KeywordElse:A,KeywordDependentSchemas:R,KeywordPrefixItems:I,KeywordItems:O,KeywordContains:D,KeywordProperties:P,KeywordPatternProperties:F,KeywordAdditionalProperties:M,KeywordPropertyNames:K,KeywordUnevaluatedItems:te,KeywordUnevaluatedProperties:J,KeywordType:Q,KeywordEnum:re,KeywordConst:ne,KeywordConstraint:U,KeywordDependentRequired:H,KeywordContentSchema:ie,KeywordTitle:ue,KeywordDescription:le,KeywordDefault:ee,KeywordDeprecated:z,KeywordReadOnly:V,KeywordWriteOnly:fe,KeywordExamples:me,ExtensionKeywords:Re,JSONViewer:Ne,Accordion:he,ExpandDeepButton:Te,ChevronRightIcon:Ue,...r.components},config:{showExtensionKeywords:s.showExtensions,...r.config},fn:{...r.fn}})};var TJ=({getSystem:e,fn:t})=>{const r=()=>({upperFirst:t.upperFirst,...t.jsonSchema202012});return{components:{JSONSchema202012:RW,JSONSchema202012Keyword$schema:TW,JSONSchema202012Keyword$vocabulary:IW,JSONSchema202012Keyword$id:jW,JSONSchema202012Keyword$anchor:PW,JSONSchema202012Keyword$dynamicAnchor:kW,JSONSchema202012Keyword$ref:NW,JSONSchema202012Keyword$dynamicRef:MW,JSONSchema202012Keyword$defs:DW,JSONSchema202012Keyword$comment:qW,JSONSchema202012KeywordAllOf:FW,JSONSchema202012KeywordAnyOf:$W,JSONSchema202012KeywordOneOf:LW,JSONSchema202012KeywordNot:BW,JSONSchema202012KeywordIf:UW,JSONSchema202012KeywordThen:VW,JSONSchema202012KeywordElse:zW,JSONSchema202012KeywordDependentSchemas:WW,JSONSchema202012KeywordPrefixItems:JW,JSONSchema202012KeywordItems:HW,JSONSchema202012KeywordContains:KW,JSONSchema202012KeywordProperties:GW,JSONSchema202012KeywordPatternProperties:YW,JSONSchema202012KeywordAdditionalProperties:XW,JSONSchema202012KeywordPropertyNames:ZW,JSONSchema202012KeywordUnevaluatedItems:QW,JSONSchema202012KeywordUnevaluatedProperties:eJ,JSONSchema202012KeywordType:tJ,JSONSchema202012KeywordEnum:rJ,JSONSchema202012KeywordConst:nJ,JSONSchema202012KeywordConstraint:dJ,JSONSchema202012KeywordDependentRequired:hJ,JSONSchema202012KeywordContentSchema:mJ,JSONSchema202012KeywordTitle:gJ,JSONSchema202012KeywordDescription:yJ,JSONSchema202012KeywordDefault:vJ,JSONSchema202012KeywordDeprecated:bJ,JSONSchema202012KeywordReadOnly:_J,JSONSchema202012KeywordWriteOnly:EJ,JSONSchema202012KeywordExamples:SJ,JSONSchema202012ExtensionKeywords:wJ,JSONSchema202012JSONViewer:xJ,JSONSchema202012Accordion:AJ,JSONSchema202012ExpandDeepButton:OJ,JSONSchema202012ChevronRightIcon:CJ,withJSONSchema202012Context:RJ,withJSONSchema202012SystemContext:I2e(e()),JSONSchema202012PathContext:()=>Ln,JSONSchema202012LevelContext:()=>Oi},fn:{upperFirst:iJ,jsonSchema202012:{getTitle:sJ(r),getType:aJ(r),isExpandable:cJ(r),isBooleanJSONSchema:oJ,hasKeyword:uJ,useFn:Xt,useConfig:TT,useComponent:Fe,useIsExpanded:Ki,usePath:xn,useLevel:bi,getSchemaKeywords:fJ,getExtensionKeywords:pJ(r),hasSchemaType:R2e}}}},j2e=(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),P2e=()=>{throw new Error("Not implemented")};const Hm=e=>Jo()(e),Fp=e=>e.at(0),Va=e=>typeof e=="boolean",ki=e=>(0,Fs.default)(e),Is=e=>Va(e)||ki(e);var Km=class{constructor(){X(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]}},IJ=()=>0,jJ=()=>0,k2e=()=>.1,N2e=()=>.1,M2e=()=>"user@example.com",D2e=()=>"실례@example.com",q2e=()=>"example.com",F2e=()=>"실례.com",$2e=()=>"198.51.100.42",L2e=()=>"2001:0db8:5b96:0000:0000:426f:8e17:642a",B2e=()=>"https://example.com/",U2e=()=>"path/index.html",V2e=()=>"https://실례.com/",z2e=()=>"path/실례.html",W2e=()=>"3fa85f64-5717-4562-b3fc-2c963f66afa6",J2e=()=>"https://example.com/dictionary/{term:1}/{term}",H2e=()=>"/a/b/c",K2e=()=>"1/0",G2e=()=>new Date().toISOString(),Y2e=()=>new Date().toISOString().substring(0,10),X2e=()=>new Date().toISOString().substring(11),Z2e=()=>"P3D",Q2e=()=>"********",eCe=()=>"^[a-z]+$",Xc,b6;const $p=new(b6=class extends Km{constructor(){super(...arguments);Os(this,Xc,{int32:IJ,int64:jJ,float:k2e,double:N2e,email:M2e,"idn-email":D2e,hostname:q2e,"idn-hostname":F2e,ipv4:$2e,ipv6:L2e,uri:B2e,"uri-reference":U2e,iri:V2e,"iri-reference":z2e,uuid:W2e,"uri-template":J2e,"json-pointer":H2e,"relative-json-pointer":K2e,"date-time":G2e,date:Y2e,time:X2e,duration:Z2e,password:Q2e,regex:eCe});X(this,"data",{...dr(this,Xc)})}get defaults(){return{...dr(this,Xc)}}},Xc=new WeakMap,b6),PJ=(e,t)=>typeof t=="function"?$p.register(e,t):t===null?$p.unregister(e):$p.get(e);PJ.getDefaults=()=>$p.defaults;var Gm=PJ,tCe=Ee(287).Buffer,rCe=e=>tCe.from(e).toString("ascii"),nCe=Ee(287).Buffer,iCe=e=>nCe.from(e).toString("utf8"),sCe=Ee(287).Buffer,aCe=e=>sCe.from(e).toString("binary"),oCe=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
|
|
341
|
+
`;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},uCe=Ee(287).Buffer,cCe=e=>uCe.from(e).toString("hex"),lCe=Ee(287).Buffer,fCe=e=>{const t=lCe.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},pCe=Ee(287).Buffer,dCe=e=>pCe.from(e).toString("base64"),hCe=Ee(287).Buffer,mCe=e=>hCe.from(e).toString("base64url"),Zc,_6;const Lp=new(_6=class extends Km{constructor(){super(...arguments);Os(this,Zc,{"7bit":rCe,"8bit":iCe,binary:aCe,"quoted-printable":oCe,base16:cCe,base32:fCe,base64:dCe,base64url:mCe});X(this,"data",{...dr(this,Zc)})}get defaults(){return{...dr(this,Zc)}}},Zc=new WeakMap,_6),kJ=(e,t)=>typeof t=="function"?Lp.register(e,t):t===null?Lp.unregister(e):Lp.get(e);kJ.getDefaults=()=>Lp.defaults;var NJ=kJ,gCe={"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"},yCe={"image/*":()=>Hm(25).toString("binary")},vCe={"audio/*":()=>Hm(25).toString("binary")},bCe={"video/*":()=>Hm(25).toString("binary")},_Ce={"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/*":()=>Hm(25).toString("binary")},Qc,E6;const $o=new(E6=class extends Km{constructor(){super(...arguments);Os(this,Qc,{...gCe,...yCe,...vCe,...bCe,..._Ce});X(this,"data",{...dr(this,Qc)})}get defaults(){return{...dr(this,Qc)}}},Qc=new WeakMap,E6),MJ=(e,t)=>{if(typeof t=="function")return $o.register(e,t);if(t===null)return $o.unregister(e);const r=e.split(";").at(0),n=`${r.split("/").at(0)}/*`;return $o.get(e)||$o.get(r)||$o.get(n)};MJ.getDefaults=()=>$o.defaults;var DJ=MJ;const _x=(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 ECe=(e,{sample:t}={})=>{const{contentEncoding:r,contentMediaType:n,contentSchema:i}=e,{pattern:s,format:a}=e,o=NJ(r)||Wz.default;let u;return u=typeof s=="string"?_x((c=>{try{const l=new RegExp("(?<=(?<!\\\\)\\{)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{\\d*,)(\\d{3,})(?=\\})|(?<=(?<!\\\\)\\{)(\\d{3,})(?=,\\d*\\})","g"),f=c.replace(l,"100"),h=new fz.default(f);return h.max=100,h.gen()}catch{return"string"}})(s),e):typeof a=="string"?(c=>{const{format:l}=c,f=Gm(l);return typeof f=="function"?f(c):"string"})(e):Is(i)&&typeof n=="string"&&t!==void 0?Array.isArray(t)||typeof t=="object"?JSON.stringify(t):_x(String(t),e):typeof n=="string"?(c=>{const{contentMediaType:l}=c,f=DJ(l);return typeof f=="function"?f(c):"string"})(e):_x("string",e),o(u)};const qJ=(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 SCe=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=Gm(i);return typeof s=="function"?s(n):0})(e):0,qJ(r,e)},wCe=e=>{const{format:t}=e;let r;return r=typeof t=="string"?(n=>{const{format:i}=n,s=Gm(i);if(typeof s=="function")return s(n);switch(i){case"int32":return IJ();case"int64":return jJ()}return 0})(e):0,qJ(r,e)},xCe=e=>typeof e.default!="boolean"||e.default,Ep=new Proxy({array:j2e,object:P2e,string:ECe,number:SCe,integer:wCe,boolean:xCe,null:()=>null},{get:(e,t)=>typeof t=="string"&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`});const p6=["array","object","number","integer","string","boolean","null"],bc=e=>{if(!ki(e))return!1;const{examples:t,example:r,default:n}=e;return!!(Array.isArray(t)&&t.length>=1)||n!==void 0||r!==void 0},BO=e=>{if(!ki(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},Sd={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"]};Sd.number=Sd.integer;const Ex="string",d6=e=>e===void 0?null:e===null?"null":Array.isArray(e)?"array":Number.isInteger(e)?"integer":typeof e,Bp=e=>{if(Array.isArray(e)&&e.length>=1){if(e.includes("array"))return"array";if(e.includes("object"))return"object";{const t=e.filter((n=>n!=="null")),r=Fp(t.length>0?t:e);if(p6.includes(r))return r}}return p6.includes(e)?e:null},UO=(e,t=new WeakSet)=>{if(!ki(e)||t.has(e))return Ex;t.add(e);let{type:r,const:n}=e;if(r=Bp(r),typeof r!="string"){const i=Object.keys(Sd);e:for(let s=0;s<i.length;s+=1){const a=i[s],o=Sd[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=d6(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=>UO(f,t)));return Bp(l)}return null},s=i("allOf"),a=i("anyOf"),o=i("oneOf"),u=e.not?UO(e.not,t):null;(s||a||o||u)&&(r=Bp([s,a,o,u].filter(Boolean)))}if(typeof r!="string"&&bc(e)){const i=BO(e),s=d6(i);r=typeof s=="string"?s:r}return t.delete(e),r||Ex},h6=e=>UO(e),Sx=e=>Va(e)?(t=>t===!1?{not:{}}:{})(e):ki(e)?e:{},_c=(e,t,r={})=>{if(Va(e)&&e===!0)return!0;if(Va(e)&&e===!1)return!1;if(Va(t)&&t===!0)return!0;if(Va(t)&&t===!1)return!1;if(!Is(e))return t;if(!Is(t))return e;const n={...t,...e};if(t.type&&e.type&&Array.isArray(t.type)&&typeof t.type=="string"){const i=Eo(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]=_c(o,a,r)}}return Is(t.items)&&Is(e.items)&&(n.items=_c(e.items,t.items,r)),Is(t.contains)&&Is(e.contains)&&(n.contains=_c(e.contains,t.contains,r)),Is(t.contentSchema)&&Is(e.contentSchema)&&(n.contentSchema=_c(e.contentSchema,t.contentSchema,r)),n};var Lo=_c;const Br=(e,t={},r=void 0,n=!1)=>{var P,F,M,K,te,J,Q,re,ne;if(e==null&&r===void 0)return;typeof(e==null?void 0:e.toJS)=="function"&&(e=e.toJS()),e=Sx(e);let i=r!==void 0||bc(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 U=Sx(Fp(s?e.oneOf:e.anyOf));!(e=Lo(e,U,t)).xml&&U.xml&&(e.xml=U.xml),bc(e)&&bc(U)&&(i=!0)}const o={};let{xml:u,properties:c,additionalProperties:l,items:f,contains:h}=e||{},d=h6(e),{includeReadOnly:g,includeWriteOnly:y}=t;u=u||{};let v,{name:_,prefix:b,namespace:S}=u,w={};Object.hasOwn(e,"type")||(e.type=d),n&&(_=_||"notagname",v=(b?`${b}:`:"")+_,S)&&(o[b?`xmlns:${b}`:"xmlns"]=S),n&&(w[v]=[]);const E=Ua(c);let A,R=0;const I=()=>Number.isInteger(e.maxProperties)&&e.maxProperties>0&&R>=e.maxProperties,O=U=>!(Number.isInteger(e.maxProperties)&&e.maxProperties>0)||!I()&&(!(H=>!Array.isArray(e.required)||e.required.length===0||!e.required.includes(H))(U)||e.maxProperties-R-(()=>{if(!Array.isArray(e.required)||e.required.length===0)return 0;let H=0;return n?e.required.forEach((ie=>H+=w[ie]===void 0?0:1)):e.required.forEach((ie=>{var ue;H+=((ue=w[v])==null?void 0:ue.find((le=>le[ie]!==void 0)))===void 0?0:1})),e.required.length-H})()>0);if(A=n?(U,H=void 0)=>{if(e&&E[U]){if(E[U].xml=E[U].xml||{},E[U].xml.attribute){const ue=Array.isArray(E[U].enum)?Fp(E[U].enum):void 0;if(bc(E[U]))o[E[U].xml.name||U]=BO(E[U]);else if(ue!==void 0)o[E[U].xml.name||U]=ue;else{const le=Sx(E[U]),ee=h6(le),z=E[U].xml.name||U;if(ee==="array"){const V=Br(E[U],t,H,!1);o[z]=V.map((fe=>(0,Fs.default)(fe)?"UnknownTypeObject":Array.isArray(fe)?"UnknownTypeArray":fe)).join(" ")}else o[z]=ee==="object"?"UnknownTypeObject":Ep[ee](le)}return}E[U].xml.name=E[U].xml.name||U}else E[U]||l===!1||(E[U]={xml:{name:U}});let ie=Br(E[U],t,H,n);O(U)&&(R++,Array.isArray(ie)?w[v]=w[v].concat(ie):w[v].push(ie))}:(U,H)=>{var ie;if(O(U)){if((0,Fs.default)((ie=e.discriminator)==null?void 0:ie.mapping)&&e.discriminator.propertyName===U&&typeof e.$$ref=="string"){for(const ue in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[ue])!==-1){w[U]=ue;break}}else w[U]=Br(E[U],t,H,n);R++}},i){let U;if(U=r!==void 0?r:BO(e),!n){if(typeof U=="number"&&d==="string")return`${U}`;if(typeof U!="string"||d==="string")return U;try{return JSON.parse(U)}catch{return U}}if(d==="array"){if(!Array.isArray(U)){if(typeof U=="string")return U;U=[U]}let H=[];return ki(f)&&(f.xml=f.xml||u||{},f.xml.name=f.xml.name||u.name,H=U.map((ie=>Br(f,t,ie,n)))),ki(h)&&(h.xml=h.xml||u||{},h.xml.name=h.xml.name||u.name,H=[Br(h,t,void 0,n),...H]),H=Ep.array(e,{sample:H}),u.wrapped?(w[v]=H,(0,as.default)(o)||w[v].push({_attr:o})):w=H,w}if(d==="object"){if(typeof U=="string")return U;for(const H in U)Object.hasOwn(U,H)&&((P=E[H])!=null&&P.readOnly&&!g||(F=E[H])!=null&&F.writeOnly&&!y||((K=(M=E[H])==null?void 0:M.xml)!=null&&K.attribute?o[E[H].xml.name||H]=U[H]:A(H,U[H])));return(0,as.default)(o)||w[v].push({_attr:o}),w}return w[v]=(0,as.default)(o)?U:[{_attr:o},U],w}if(d==="array"){let U=[];if(ki(h))if(n&&(h.xml=h.xml||e.xml||{},h.xml.name=h.xml.name||u.name),Array.isArray(h.anyOf)){const{anyOf:H,...ie}=f;U.push(...h.anyOf.map((ue=>Br(Lo(ue,ie,t),t,void 0,n))))}else if(Array.isArray(h.oneOf)){const{oneOf:H,...ie}=f;U.push(...h.oneOf.map((ue=>Br(Lo(ue,ie,t),t,void 0,n))))}else{if(!(!n||n&&u.wrapped))return Br(h,t,void 0,n);U.push(Br(h,t,void 0,n))}if(ki(f))if(n&&(f.xml=f.xml||e.xml||{},f.xml.name=f.xml.name||u.name),Array.isArray(f.anyOf)){const{anyOf:H,...ie}=f;U.push(...f.anyOf.map((ue=>Br(Lo(ue,ie,t),t,void 0,n))))}else if(Array.isArray(f.oneOf)){const{oneOf:H,...ie}=f;U.push(...f.oneOf.map((ue=>Br(Lo(ue,ie,t),t,void 0,n))))}else{if(!(!n||n&&u.wrapped))return Br(f,t,void 0,n);U.push(Br(f,t,void 0,n))}return U=Ep.array(e,{sample:U}),n&&u.wrapped?(w[v]=U,(0,as.default)(o)||w[v].push({_attr:o}),w):U}if(d==="object"){for(let U in E)Object.hasOwn(E,U)&&((te=E[U])!=null&&te.deprecated||(J=E[U])!=null&&J.readOnly&&!g||(Q=E[U])!=null&&Q.writeOnly&&!y||A(U));if(n&&o&&w[v].push({_attr:o}),I())return w;if(Va(l)&&l)n?w[v].push({additionalProp:"Anything can be here"}):w.additionalProp1={},R++;else if(ki(l)){const U=l,H=Br(U,t,void 0,n);if(n&&typeof((re=U==null?void 0:U.xml)==null?void 0:re.name)=="string"&&((ne=U==null?void 0:U.xml)==null?void 0:ne.name)!=="notagname")w[v].push(H);else{const ie=(U==null?void 0:U["x-additionalPropertiesName"])||"additionalProp",ue=Number.isInteger(e.minProperties)&&e.minProperties>0&&R<e.minProperties?e.minProperties-R:3;for(let le=1;le<=ue;le++){if(I())return w;if(n){const ee={};ee[ie+le]=H.notagname,w[v].push(ee)}else w[ie+le]=H;R++}}}return w}let D;if(e.const!==void 0)D=e.const;else if(e&&Array.isArray(e.enum))D=Fp(Eo(e.enum));else{const U=ki(e.contentSchema)?Br(e.contentSchema,t,void 0,n):void 0;D=Ep[d](e,{sample:U})}return n?(w[v]=(0,as.default)(o)?D:[{_attr:o},D],w):D},FJ=(e,t,r)=>{const n=Br(e,t,r,!0);if(n)return typeof n=="string"?n:lz()(n,{declaration:!0,indent:" "})},$J=(e,t,r)=>Br(e,t,r,!1),LJ=(e,t,r)=>[e,JSON.stringify(t),JSON.stringify(r)],ACe=Rf(FJ,LJ),OCe=Rf($J,LJ);var el,S6;const m6=new(S6=class extends Km{constructor(){super(...arguments);Os(this,el,{});X(this,"data",{...dr(this,el)})}get defaults(){return{...dr(this,el)}}},el=new WeakMap,S6);var CCe=(e,t)=>(t!==void 0&&m6.register(e,t),m6.get(e));const RCe=[{when:/json/,shouldStringifyTypes:["string"]}],TCe=["object"];var ICe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.memoizedSampleFromSchema(t,r,i),o=typeof a,u=RCe.reduce(((c,l)=>l.when.test(n)?[...c,...l.shouldStringifyTypes]:c),TCe);return(0,kV.default)(u,(c=>c===o))?JSON.stringify(a,null,2):a},jCe=e=>(t,r,n,i)=>{const{fn:s}=e(),a=s.jsonSchema202012.getJsonSampleSchema(t,r,n,i);let o;try{o=ks.default.dump(ks.default.load(a),{lineWidth:-1},{schema:ks.JSON_SCHEMA}),o[o.length-1]===`
|
|
342
|
+
`&&(o=o.slice(0,o.length-1))}catch(u){return console.error(u),"error: could not generate yaml example"}return o.replace(/\t/g," ")},PCe=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"?>
|
|
343
|
+
<!-- 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)},kCe=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)},BJ=({getSystem:e})=>{const t=ICe(e),r=jCe(e),n=PCe(e),i=kCe(e);return{fn:{jsonSchema202012:{sampleFromSchema:$J,sampleFromSchemaGeneric:Br,sampleOptionAPI:CCe,sampleEncoderAPI:NJ,sampleFormatAPI:Gm,sampleMediaTypeAPI:DJ,createXMLExample:FJ,memoizedSampleFromSchema:OCe,memoizedCreateXMLExample:ACe,getJsonSampleSchema:t,getYamlSampleSchema:r,getXmlSampleSchema:n,getSampleSchema:i,mergeJsonSchema:Lo,foldType:Bp}}}};function UJ(){return[EW,FO,TJ,BJ,S2e]}var NCe=e=>()=>({fn:e.fn,components:e.components}),MCe=e=>{const t=Hc()({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}},DCe=()=>e=>{const t=e.queryConfigEnabled?(()=>{const r=new URLSearchParams(sr.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,qz.default)(r,n,i),r)),{})},qCe=({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},FCe=()=>()=>{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},hr=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:[UJ],plugins:[],initialState:{},fn:{},components:{},syntaxHighlight:{activated:!0,theme:"agate"},operationsSorter:null,tagsSorter:null,onComplete:null,modelPropertyMacro:null,parameterMacro:null,fileUploadMediaTypes:["application/octet-stream","image/","audio/","video/"],uncaughtExceptionHandler:null}),$Ce=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return __e}}),LCe=(function(e){var t={};return Ee.d(t,e),t})({default:function(){return S_e}}),Sp=(e,t=[])=>Array.isArray(e)?e:t,fi=(e,t=!1)=>e===!0||e==="true"||e===1||e==="1"||e!==!1&&e!=="false"&&e!==0&&e!=="0"&&t,BCe=e=>e===null||e==="null"?null:e,UCe=e=>{const t=String(e);return fi(e,t)},g6=(e,t)=>typeof e=="function"?e:t,VCe=e=>Array.isArray(e)?e:null,wp=e=>typeof e=="function"?e:null,wx=e=>e===null||e==="null"?null:String(e),xx=(e,t=-1)=>{const r=parseInt(e,10);return Number.isNaN(r)?t:r},Do=(e,t={})=>(0,Fs.default)(e)?e:t,y6=e=>typeof e=="function"||typeof e=="string"?e:null,qo=e=>String(e),zCe=(e,t)=>(0,Fs.default)(e)?e:e===!1||e==="false"||e===0||e==="0"?{activated:!1}:t,WCe=e=>e===void 0||e==="undefined"?void 0:String(e),VJ={components:{typeCaster:Do},configs:{typeCaster:Do},configUrl:{typeCaster:wx},deepLinking:{typeCaster:fi,defaultValue:hr.deepLinking},defaultModelExpandDepth:{typeCaster:xx,defaultValue:hr.defaultModelExpandDepth},defaultModelRendering:{typeCaster:qo},defaultModelsExpandDepth:{typeCaster:xx,defaultValue:hr.defaultModelsExpandDepth},displayOperationId:{typeCaster:fi,defaultValue:hr.displayOperationId},displayRequestDuration:{typeCaster:fi,defaultValue:hr.displayRequestDuration},docExpansion:{typeCaster:qo},dom_id:{typeCaster:wx},domNode:{typeCaster:BCe},fileUploadMediaTypes:{typeCaster:Sp,defaultValue:hr.fileUploadMediaTypes},filter:{typeCaster:UCe},fn:{typeCaster:Do},initialState:{typeCaster:Do},layout:{typeCaster:qo},maxDisplayedTags:{typeCaster:xx,defaultValue:hr.maxDisplayedTags},modelPropertyMacro:{typeCaster:wp},oauth2RedirectUrl:{typeCaster:WCe},onComplete:{typeCaster:wp},operationsSorter:{typeCaster:y6},paramaterMacro:{typeCaster:wp},persistAuthorization:{typeCaster:fi,defaultValue:hr.persistAuthorization},plugins:{typeCaster:Sp,defaultValue:hr.plugins},presets:{typeCaster:Sp,defaultValue:hr.presets},requestInterceptor:{typeCaster:g6,defaultValue:hr.requestInterceptor},requestSnippets:{typeCaster:Do,defaultValue:hr.requestSnippets},requestSnippetsEnabled:{typeCaster:fi,defaultValue:hr.requestSnippetsEnabled},responseInterceptor:{typeCaster:g6,defaultValue:hr.responseInterceptor},showCommonExtensions:{typeCaster:fi,defaultValue:hr.showCommonExtensions},showExtensions:{typeCaster:fi,defaultValue:hr.showExtensions},showMutatedRequest:{typeCaster:fi,defaultValue:hr.showMutatedRequest},spec:{typeCaster:Do,defaultValue:hr.spec},supportedSubmitMethods:{typeCaster:Sp,defaultValue:hr.supportedSubmitMethods},syntaxHighlight:{typeCaster:zCe,defaultValue:hr.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:fi,defaultValue:hr.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:qo},tagsSorter:{typeCaster:y6},tryItOutEnabled:{typeCaster:fi,defaultValue:hr.tryItOutEnabled},url:{typeCaster:qo},urls:{typeCaster:VCe},"urls.primaryName":{typeCaster:qo},validatorUrl:{typeCaster:wx},withCredentials:{typeCaster:fi,defaultValue:hr.withCredentials},uncaughtExceptionHandler:{typeCaster:wp}},zJ=e=>Object.entries(VJ).reduce(((t,[r,{typeCaster:n,defaultValue:i}])=>{if((0,$Ce.default)(t,r)){const s=n((0,OO.default)(t,r),i);t=(0,LCe.default)(r,s,t)}return t}),{...e}),JCe=(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=Hc()(e,...i);return r!==Symbol.for("domNode")&&(s.domNode=r),n!==Symbol.for("primaryName")&&Array.isArray(s.urls)&&(s.urls.primaryName=n),zJ(s)};function ua(e){const t=DCe()(e),r=FCe()(),n=ua.config.merge({},ua.config.defaults,r,e,t),i=MCe(n),s=NCe(n),a=new FV(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 qCe({url:f,system:o})(n),d=ua.config.merge({},n,h,t);u(d),h!==null&&c(d),l(d)})(),o):(u(n),c(n),l(n),o)}ua.System=FV,ua.config={defaults:hr,merge:JCe,typeCast:zJ,typeCastMappings:VJ},ua.presets={base:EW,apis:UJ},ua.plugins={Auth:LV,Configs:BV,DeepLining:UV,Err:zV,Filter:WV,Icons:JV,JSONSchema5:cz,JSONSchema5Samples:gz,JSONSchema202012:TJ,JSONSchema202012Samples:BJ,Layout:KV,Logs:GV,OpenAPI30:FO,OpenAPI31:FO,OnComplete:YV,RequestSnippets:QV,Spec:$z,SwaggerClient:Bz,Util:Uz,View:Jz,ViewLegacy:Hz,DownloadUrl:Kz,SyntaxHighlighting:Yz,Versions:Xz,SafeRender:tW};var HCe=ua,fa=jV.A;const{config:Gt}=fa,v6=e=>{const t=Bt.useRef();return Bt.useEffect(()=>{t.current=e},[e]),t.current},kf=({spec:e=Gt.defaults.spec,url:t=Gt.defaults.url,layout:r=Gt.defaults.layout,requestInterceptor:n=Gt.defaults.requestInterceptor,responseInterceptor:i=Gt.defaults.responseInterceptor,supportedSubmitMethods:s=Gt.defaults.supportedSubmitMethods,queryConfigEnabled:a=Gt.defaults.queryConfigEnabled,plugins:o=Gt.defaults.plugins,displayOperationId:u=Gt.defaults.displayOperationId,showMutatedRequest:c=Gt.defaults.showMutatedRequest,docExpansion:l=Gt.defaults.docExpansion,defaultModelExpandDepth:f=Gt.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:h=Gt.defaults.defaultModelsExpandDepth,defaultModelRendering:d=Gt.defaults.defaultModelRendering,presets:g=Gt.defaults.presets,deepLinking:y=Gt.defaults.deepLinking,showExtensions:v=Gt.defaults.showExtensions,showCommonExtensions:_=Gt.defaults.showCommonExtensions,filter:b=Gt.defaults.filter,requestSnippetsEnabled:S=Gt.defaults.requestSnippetsEnabled,requestSnippets:w=Gt.defaults.requestSnippets,tryItOutEnabled:E=Gt.defaults.tryItOutEnabled,displayRequestDuration:A=Gt.defaults.displayRequestDuration,withCredentials:R=Gt.defaults.withCredentials,persistAuthorization:I=Gt.defaults.persistAuthorization,oauth2RedirectUrl:O=Gt.defaults.oauth2RedirectUrl,onComplete:D=null,initialState:P=Gt.defaults.initialState,uncaughtExceptionHandler:F=Gt.defaults.uncaughtExceptionHandler})=>{const[M,K]=Bt.useState(null),te=M==null?void 0:M.getComponent("App","root"),J=v6(e),Q=v6(t);return Bt.useEffect(()=>{const re=fa({plugins:o,spec:e,url:t,layout:r,defaultModelsExpandDepth:h,defaultModelRendering:d,presets:[fa.presets.apis,...g],requestInterceptor:n,responseInterceptor:i,onComplete:()=>{typeof D=="function"&&D(re)},docExpansion:l,supportedSubmitMethods:s,queryConfigEnabled:a,defaultModelExpandDepth:f,displayOperationId:u,tryItOutEnabled:E,displayRequestDuration:A,requestSnippetsEnabled:S,requestSnippets:w,showMutatedRequest:c,deepLinking:y,showExtensions:v,showCommonExtensions:_,filter:b,persistAuthorization:I,withCredentials:R,initialState:P,uncaughtExceptionHandler:F,...typeof O=="string"?{oauth2RedirectUrl:O}:{}});K(re)},[]),Bt.useEffect(()=>{if(M){const re=M.specSelectors.url();(t!==re||t!==Q)&&(M.specActions.updateSpec(""),t&&(M.specActions.updateUrl(t),M.specActions.download(t)))}},[M,t]),Bt.useEffect(()=>{if(M){const re=M.specSelectors.specStr();if(e&&e!==fa.config.defaults.spec&&(e!==re||e!==J)){const ne=typeof e=="object"?JSON.stringify(e):e;M.specActions.updateSpec(ne)}}},[M,e]),te?Bt.createElement(te,null):null};kf.System=fa.System;kf.presets=fa.presets;kf.plugins=fa.plugins;kf.config=fa.config;class KCe extends Bt.Component{render(){const{getComponent:t}=this.props,r=t("operations",!0);return Rr.jsx("div",{className:"swagger-ui",children:Rr.jsx(r,{})})}}const GCe=()=>({components:{OperationsLayout:KCe}}),YCe=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}}}}}),XCe=({inputUrl:e,inputJSON:t,className:r,format:n,nodeKey:i,editor:s,create:a})=>{const{t:o}=oH.useTranslation(),[u,c]=Bt.useState(""),[l,f]=Bt.useState(""),[h,d]=Bt.useState(!1),[g,y]=Bt.useState(!1),[v,_]=Bt.useState(!1),[b,S]=Bt.useState(!0);Bt.useEffect(()=>{a&&_(!0)},[a]),Bt.useEffect(()=>{v?He.blockScroll():He.unblockScroll()},[v]);const w=A=>{A.preventDefault(),s.update(()=>{const R=He.us(i);He.$isSwaggerNode(R)&&(_(!1),R.setSrc(u||l),R.setJSON(l))})},{operation:E}=Bt.useMemo(()=>e?{operation:new URL(e).hash.split("/").pop()||""}:{operation:""},[e,t]);return e?Rr.jsxs(Wn.Box,{pos:"relative",mih:45,children:[Rr.jsx(Wn.LoadingOverlay,{visible:b,zIndex:1e3,overlayProps:{blur:4},loaderProps:{size:"xs"}}),Rr.jsx(kf,{url:t,onComplete:()=>{S(!1)},responseInterceptor:A=>(A.ok||(S(!1),s.update(()=>{const R=He.us(i);He.$isSwaggerNode(R)&&(_(!1),R.setSrc(""),R.setJSON(""))}),cH.showErrorNotification({message:o("editor.validation.swaggerUnavailable")}),S(!0)),A),plugins:[YCe({operation:E}),GCe],layout:"OperationsLayout"})]}):Rr.jsxs(Wn.Popover,{width:400,position:"bottom",shadow:"md",opened:v,onChange:_,defaultOpened:!0,withinPortal:!0,children:[Rr.jsx(Wn.Popover.Target,{children:Rr.jsx(Wn.Flex,{w:"100%",children:Rr.jsx(He.p,{className:r,format:n,nodeKey:i,children:Rr.jsx(He.EmptyNodeButton,{title:o("editor.swagger.add"),icon:"api",onClick:()=>_(A=>!A),nodeKey:i})})})}),Rr.jsx(Wn.Popover.Dropdown,{"aria-hidden":!v,tabIndex:v?0:-1,children:Rr.jsx("form",{onSubmit:w,children:Rr.jsxs(Wn.Stack,{gap:16,children:[Rr.jsx(Wn.Box,{children:Rr.jsx(Wn.TextInput,{maxLength:500,placeholder:"https://api.example.com/v3/swagger.json","data-autofocus":!0,type:"url",value:l,rightSection:l?null:Rr.jsx("span",{style:{color:"red"},children:"*"}),onChange:A=>{f(A.currentTarget.value),y(!1)}})}),Rr.jsx(Wn.Box,{children:Rr.jsx(Wn.TextInput,{maxLength:500,placeholder:"https://api.swagger.io/#/user/getUser","data-autofocus":!0,type:"url",value:u,onChange:A=>{c(A.currentTarget.value),d(!1)}})}),Rr.jsx(Wn.Center,{children:Rr.jsx(Wn.Button,{w:"100%",type:"submit",disabled:!l,children:o("editor.video.apply")})})]})})})]})};exports.default=XCe;
|