1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/esm-DF-e3Fm7.js","assets/jsx-runtime-cvnAX2Ol.js","assets/components-d-7UI7xd.js","assets/errorBoundaries-CWThcmjt.js","assets/sanitize-html-DMlcUL8g.js","assets/tslib.es6-DD2kosKs.js","assets/_baseIteratee-BOGe_rQR.js","assets/dist-DyzBTRMk.js","assets/hook-DzomF-Jy.js","assets/context-DLk2KjoP.js","assets/clsx-DB0hHKMi.js","assets/_Uint8Array-DT6Vr1qW.js","assets/_arrayPush-ed1KLJUc.js","assets/isArray-COBODq74.js","assets/identity-D2TiGRck.js","assets/toString-Dz8G_M-g.js","assets/hasIn-CIv-Bmqt.js","assets/_baseIsEqual-ByHF0cIx.js","assets/fast-deep-equal-CycXWVDT.js","assets/util-B3qZ5kjN.js","assets/ElementsRenderer-DfuypRs5.js","assets/last-CfOPNJUg.js","assets/_baseAssignValue-BYHyP2uW.js","assets/_assignValue-DzH-6aO3.js","assets/omit-CMBcvJ_n.js","assets/_baseSlice-DWsC9DbO.js","assets/_flatRest-BPwwHhZ2.js","assets/flatten-5GV6RkHc.js","assets/react-fast-compare-C3iItFzv.js","assets/pick-C5_rhbNp.js","assets/_basePickBy-CyMSDkoc.js","assets/_baseSet-AEU-sFpe.js","assets/portal.defaults-Cbakxv-M.js","assets/dist-wx7MgxiN.js","assets/useUser-BhkHGnrR.js","assets/portal-uRO_xs1K.js","assets/Link-CPc2a9tM.js","assets/content-hHck3cM0.js","assets/marked.esm-DLSeLfGW.js","assets/useNotification-DnEffgOP.js","assets/TooltipWrapper-C3qMl-qe.js","assets/_createAggregator-PjF96lhX.js","assets/_baseEach-HB6gzYpg.js","assets/camelCase-DZx7F-4w.js","assets/isEqual-CtKxWhl2.js","assets/cloneDeep-waqdZUhB.js","assets/negate-CH0Rdmsp.js","assets/isNil-BThXoPUd.js","assets/uniqBy-LUU4HUEa.js","assets/orderBy-C4Tt4MU3.js"])))=>i.map(i=>d[i]); 2import{a as e,i as t,n,o as r,r as i,t as a}from"./jsx-runtime-cvnAX2Ol.js";import{C as o,ct as s,w as c}from"./components-d-7UI7xd.js";import{m as l,v as u,x as d}from"./errorBoundaries-CWThcmjt.js";import{$ as f,Bi as p,Fi as m,Hi as h,I as g,Ii as _,Ir as v,Jn as y,Lr as b,Ni as x,Nr as S,Qn as C,Ri as w,Sn as T,Vi as E,Vn as D,Wi as O,Yi as k,_r as A,dr as j,jn as M,o as N,ui as P,ut as F,v as I,xt as L,zi as ee}from"./dist-DyzBTRMk.js";import{i as R,r as z}from"./hook-DzomF-Jy.js";import{t as te}from"./clsx-DB0hHKMi.js";import{r as ne,t as re}from"./toString-Dz8G_M-g.js";import{d as ie,i as ae,l as oe,r as se}from"./_arrayPush-ed1KLJUc.js";import{b as ce,d as le,f as ue,g as de,m as fe,n as pe,r as me,u as he,y as ge}from"./_Uint8Array-DT6Vr1qW.js";import{a as _e,c as ve,d as ye,f as be,i as xe,l as Se,n as Ce,p as we,r as Te,u as Ee}from"./last-CfOPNJUg.js";import{t as De}from"./_baseAssignValue-BYHyP2uW.js";import{t as Oe}from"./_assignValue-DzH-6aO3.js";import{t as ke}from"./isArray-COBODq74.js";import{a as Ae,o as je,r as Me,t as Ne}from"./identity-D2TiGRck.js";import{n as Pe,t as Fe}from"./omit-CMBcvJ_n.js";import{t as Ie}from"./flatten-5GV6RkHc.js";import{a as Le,i as Re,n as ze,o as Be,r as Ve,t as He}from"./_flatRest-BPwwHhZ2.js";import{a as Ue}from"./marked.esm-DLSeLfGW.js";import{a as We}from"./sanitize-html-DMlcUL8g.js";import{M as Ge,b as Ke}from"./content-hHck3cM0.js";import{t as qe}from"./_baseSet-AEU-sFpe.js";import{n as Je}from"./hasIn-CIv-Bmqt.js";import{t as Ye}from"./useNotification-DnEffgOP.js";import{l as Xe,r as Ze,t as Qe}from"./tslib.es6-DD2kosKs.js";import{t as $e}from"./portal.defaults-Cbakxv-M.js";import{n as et,r as tt,t as nt}from"./dist-wx7MgxiN.js";import{t as rt}from"./TooltipWrapper-C3qMl-qe.js";import{t as it}from"./useUser-BhkHGnrR.js";import{t as at}from"./Form-lqxzm7p8.js";import{t as ot}from"./useBreadcrumbsVisibility-CaUCtueY.js";import{n as st}from"./slugify-D9NPkSwW.js";import{i as ct,r as lt,t as ut}from"./portal-uRO_xs1K.js";import{t as dt}from"./useEntitlements-B4yqhgmh.js";import{a as ft,c as pt,n as mt,o as ht,s as gt,t as _t}from"./Link-CPc2a9tM.js";import{t as vt}from"./ProseWrapper-CUBO9Wf9.js";import{r as yt,t as bt}from"./_baseEach-HB6gzYpg.js";import{a as xt}from"./_baseIsEqual-ByHF0cIx.js";import{r as St,t as Ct}from"./_baseIteratee-BOGe_rQR.js";import{t as wt}from"./react-lazy-CVMv1lrh.js";import{i as Tt,n as Et,t as Dt}from"./camelCase-DZx7F-4w.js";import{t as Ot}from"./isEqual-CtKxWhl2.js";import{t as kt}from"./negate-CH0Rdmsp.js";var B=r(s(),1),At=`docs-content`;function jt(e){let[t,n]=(0,B.useState)(e[0]?.id),r=(0,B.useCallback)(e=>e.flatMap(e=>[e.id,...e.children.map(e=>e.id)]).map(e=>{let t=document.getElementById(e);if(!t)return;let n=window.getComputedStyle(t),r=parseFloat(n.scrollMarginTop);return{id:e,top:document.getElementById(At)?.scrollTop+t.getBoundingClientRect().top-r}}),[]);return(0,B.useEffect)(()=>
2{if(e.length===0)return;let t=r(e);function i(){let e=document.getElementById(At);if(!e)return;let r=e.scrollTop,i=t[0]?.id;for(let n of t)if(r>=n?.top-e.getBoundingClientRect()?.top-1)i=n.id;else break;n(i)}return document.getElementById(At)?.addEventListener(`scroll`,i,{passive:!0}),i(),()=>{document.getElementById(At)?.removeEventListener(`scroll`,i)}},[r,e]),t}var V=a(),Mt=({children:e,to:t,isActive:n})=>(0,V.jsx)(k,{to:t,className:w(`sp-doc-toc-link py-1 px-2 block hover:text-(--sp-color-link) border-l-2 border-transparent hover:border-(--sp-color-link)`,n&&`sp-doc-toc-link--active text-(--sp-color-link) font-semibold border-(--sp-color-link)`),children:e}),Nt=({tableOfContents:e})=>{let t=jt(e),{sbFooterRemoved:n}=dt(),{t:r}=R(),i=o();return e.length?(0,V.jsx)(`div`,{className:`sp-doc-toc`,children:(0,V.jsx)(`div`,{className:te(`sm:hidden xl:sticky xl:top-0 xl:right-0 xl:-mr-6 xl:block xl:flex-none xl:self-start xl:overflow-y-auto xl:pt-13 xl:mb-12 2xl:ml-4 xl:px-4 w-[256px]`,`dark:text-neutral-20`,n?`xl:max-h-[calc(100vh-60px)]`:`xl:max-h-[calc(100vh-100px)]`),"data-testid":`page-navigation`,children:(0,V.jsx)(`nav`,{"aria-labelledby":`on-this-page-title`,className:`sp-doc-toc-nav w-full`,children:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`h2`,{id:`on-this-page-title`,className:`px-2 py-1 font-medium border-l-2 border-transparent text-body1 font-display`,children:r(`consumer.product.tableOfContent.header`)}),(0,V.jsx)(`ol`,{role:`list`,className:`w-full mt-2 space-y-3 text-body2`,children:e.map(e=>(0,V.jsxs)(`li`,{children:[(0,V.jsx)(`h3`,{children:(0,V.jsx)(Mt,{to:`${i.search}#${encodeURIComponent(e.id)}`,isActive:gt(e,t),children:e.title})}),e.children.length>0&&(0,V.jsx)(`ol`,{role:`list`,className:`pl-5 mt-2 space-y-3`,children:e.children.map(e=>(0,V.jsx)(`li`,{children:(0,V.jsx)(Mt,{to:`${i.search}#${encodeURIComponent(e.id)}`,isActive:gt(e,t),children:e.title})},e.id))})]},e.id))})]})})})}):null},Pt=r(Ie(),1),Ft=({onClick:e})=>(0,V.jsx)(`li`,{className:te(`last:after:content-none align-middle flex items-center text-body2 text-(--sp-color-link) hover:text-(--sp-color-link-hover)`,`after:content-['/'] after:text-(--sp-breadcrumb-separator-color,var(--neutral-80)) dark:after:text-(--sp-breadcrumb-separator-color,var(--neutral-30)) md:after:mx-2 after:mx-1.5`),children:(0,V.jsx)(`span`,{className:`inline-block w-6 h-6 p-1 -m-1 text-center rounded cursor-pointer xl:m-0 xl:w-4 xl:h-4 xl:p-0 hover:bg-(--sp-color-surface-hover)`,onClick:e,children:(0,V.jsx)(T,{width:16,height:16})})}),It=({href:e,children:t,isActive:n=!1,className:r,id:i,textEllipsis:a=!1})=>(0,V.jsx)(`li`,{id:i,className:te(`md:text-body2 sm:text-body3-mobile py-px md:py-0 items-center max-w-full whitespace-nowrap`,`last:after:content-none after:content-['/'] after:text-(--sp-breadcrumb-separator-color,var(--neutral-80)) dark:after:text-(--sp-breadcrumb-separator-color,var(--neutral-30)) after:mx-1.5`,a?`overflow-hidden text-ellipsis`:``,r),children:(0,V.jsx)(k,{to:e,className:te(n?`pointer-events-none text-(--sp-color-text-muted)`:`text-(--sp-color-link) hover:text-(--sp-color-link-hover) hover:underline`),"aria-disabled":n,children:t})}),Lt=e=>!!e.handle&&typeof e.handle.breadcrumb==`function`||!!e.handle&&typeof e.handle.nestedBreadcrumbs==`function`,Rt=()=>{let e=c(),t=(0,B.useRef)(null),n=o(),[r,i]=(0,B.useState)(!1),{t:a}=R(),s=e.filter(Lt),l=nt($e.media.desktop,{initializeWithValue:!1,defaultValue:!0}),u=nt($e.media.tabletAndDesktop,{initializeWithValue:!1,defaultValue:!0});et(t,()=>{l||i(!1)});let d=(0,B.useMemo)(()=>(0,Pt.default)(s.map(t=>t.handle?.nestedBreadcrumbs?t.handle.nestedBreadcrumbs({match:t,matches:e}):{title:t.handle.breadcrumb?.({match:t,t:a})||``,path:t.pathname,id:Ke(`breadcrumb-${t.pathname}`)})),[n.pathname]),{showEllipsis:f,visibilityData:p,firstAndLastExceedSpace:m}=ot(d,t),h=!u&&m,g=()=>h?68:38,_=z(),[v,b]=(0,B.useState)(g());return(0,B.useEffect)(()=>{b(g())},[h]),(0,B.useEffect)(()=>{t.current&&(()=>{if(r){let e=(t.current?.firstChild)?.getBoundingClientRect()?.height;b(e||0)}else b(g())})()},[r,d]),!_||d.length<=1?null:(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(`div`,{ref:t,style:{height:`${v}px`},className:te(`sp-content-breadcrumb sm:fixed left-0 block w-full max-w-full px-2.5 border-b border-t border-(--sp-breadcrumb-border-color,var(--neutral-30)) dark:border-(--sp-breadcrumb-border-color,var(--neutral-80)) bg-(--sp-color-surface) z-38`,`xl:relative xl:p-0 xl:border-none`,`overflow-hidden`),"data-testid":`breadcrumb-wrapper`,children:(0,V.jsx)(`div`,{className:`flex py-1 xl:py-0 whitespace-nowrap`,children:(0,V.jsx)(y,{wrapBreadcrumbItems:r||h,className:te((r||!r&&m)&&`w-full`),children:d.map((e,t)=>(0,V.jsxs)(B.Fragment,{children:[t===1&&f&&!r?(0,V.jsx)(Ft,{onClick:()=>i(!0)}):null,(0,V.jsx)(It,{id:e.id,href:e.path,isActive:t===d.length-1,isConsumerSize:!0,className:te(p.find(t=>
2t.id===e.id)?.hidden&&!r&&`hidden`),textEllipsis:r||!r&&m&&t===d.length-1,children:e.title})]},e.id))})})}),(0,V.jsx)(`div`,{style:{height:v},className:`transition-all duration-300 ease-in xl:hidden`})]})};function zt({children:e,title:t,tableOfContents:n,lastModifiedDate:r,providerContentSlug:i,showEditButtons:a=!1,useMarkdocRenderer:s=!1,isConsumerSide:c=!1}){let{t:l}=R(),u=o(),d=z();return(0,V.jsxs)(`div`,{className:te(`sp-doc-layout relative flex justify-center h-full px-6`,!s&&`md:mx-auto`),id:`top`,children:[(0,V.jsxs)(`div`,{className:te(`sp-doc-content flex-auto min-w-0 pt-0 xl:pt-6`,s?`2xl:max-w-245 xl:max-w-227.5 md:max-w-175`:`md:max-w-175 xl:mr-4 xl:max-2xl:max-w-165 2xl:mr-8`),children:[c?(0,V.jsx)(Rt,{},u.pathname):null,(0,V.jsxs)(`article`,{id:`syntax-renderer`,className:`sp-markdown-content pt-6 md:pt-9 xl:pt-6`,children:[(0,V.jsxs)(`header`,{className:`gap-1 mb-6`,children:[d&&r&&(0,V.jsx)(`div`,{className:`sp-doc-last-modified pb-1 font-semibold leading-5 text-body3 text-(--sp-doc-last-modified-color,var(--neutral-60)) dark:text-(--sp-doc-last-modified-color,var(--neutral-60))`,children:l(`consumer.product.template.lastModified`,{lastModifiedDate:r})}),(0,V.jsxs)(`div`,{className:`flex items-center justify-between pb-5 mt-1 mb-1`,children:[t&&(0,V.jsx)(`div`,{className:`text-h1 leading-10.5 tracking-tight font-display text-(--sp-color-text-strong) -ml-0.5`,children:t}),a&&(0,V.jsx)(`div`,{className:`sm:hidden xl:block`,children:(0,V.jsx)(pt,{contentUrl:i})})]}),(0,V.jsx)(`hr`,{className:`sp-doc-divider h-px border-0 bg-(--sp-color-border-subtle)`})]}),(0,V.jsx)(vt,{useMarkdocRenderer:s,children:e})]})]}),s?null:(0,V.jsx)(Nt,{tableOfContents:n})]})}var Bt=n((e=>{var t;(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(t||={});function n(e){return e.type===t.Tag||e.type===t.Script||e.type===t.Style}t.Root,t.Text,t.Directive,t.Comment,t.Script,t.Style,t.Tag,t.CDATA,t.Doctype,Object.defineProperty(e,"ElementType",{enumerable:!0,get:function(){return t}}),e.isTag=n})),Vt=n((e=>{var t=Bt(),n=class{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return _(this,e)}},r=class extends n{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},i=class extends r{type=t.ElementType.Text;get nodeType(){return 3}},a=class extends r{type=t.ElementType.Comment;get nodeType(){return 8}},o=class extends r{type=t.ElementType.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"},s=class extends n{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},c=class extends s{type=t.ElementType.CDATA;get nodeType(){return 4}},l=class extends s{type=t.ElementType.Root;get nodeType(){return 9}},u=class extends s{name;attribs;type;constructor(e,n,r=[],i=e===`script`?t.ElementType.Script:e===`style`?t.ElementType.Style:t.ElementType.Tag){super(r),this.name=e,this.attribs=n,this.type=i}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"};function d(e){return t.isTag(e)}function f(e){return e.type===t.ElementType.CDATA}function p(e){return e.type===t.ElementType.Text}function m(e){return e.type===t.ElementType.Comment}function h(e){return e.type===t.ElementType.Directive}function g(e){return e.type===t.ElementType.Root}function _(e,t=!1){let n;if(p(e))n=new i(e.data);else if(m(e))n=new a(e.data);else if(d(e)){let r=t?v(e.children):[],i=new u(e.name,{...e.attribs},r);for(let e of r)e.parent=i;e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(f(e)){let r=t?v(e.children):[],i=new c(r);for(let e of r)e.parent=i;n=i}else if(g(e)){let r=t?v(e.children):[],i=new l(r);for(let e of r)e.parent=i;e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(h(e)){let t=new o(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function v(e){let t=e.map(e=>_(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}e.CDATA=c,e.Comment=a,e.DataNode=r,e.Document=l,e.Element=u,e.Node=n,e.NodeWithChildren=s,e.ProcessingInstruction=o,e.Text=i,e.cloneNode=_,e.isCDATA=f,e.isComment=m,e.isDirective=h,e.isDocument=g,e.isTag=d,e.isText=p})),Ht=n((e=>{var t=`animateMotion.animateTransform.clipPath.feBlend.feColorMatrix.feComponentTransfer.feComposite.feConvolveMatrix.feDiffuseLighting.feDisplacementMap.feDropShadow.feFlood.feFuncA.feFuncB.feFuncG.feFuncR.feGaussianBlur.feImage.feMerge.feMergeNode.feMorphology.feOffset.fePointLight.feSpecularLighting.feSpotLight.feTile.feTurbulence.foreignObject.linearGradient.radialGradient.textPath`.split(`.`),n=t.reduce((e,t)=>
2(e[t.toLowerCase()]=t,e),{});e.CASE_SENSITIVE_TAG_NAMES=t,e.CASE_SENSITIVE_TAG_NAMES_MAP=n})),Ut=n((e=>{var t=Vt(),n=Ht(),r=`\r`,i=new RegExp(r,`g`),a=`__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_${Date.now().toString()}__`,o=new RegExp(a,`g`);function s(e){return n.CASE_SENSITIVE_TAG_NAMES_MAP[e]}function c(e){let t={},n=0,r=e.length;for(;n<r;n++){let r=e[n];t[r.name]=r.value}return t}function l(e){return e=e.toLowerCase(),s(e)||e}function u(e,t){let n=`<`+t,r=e.toLowerCase().indexOf(n);if(r===-1)return!1;let i=e[r+n.length];return i===`>`||i===` `||i===` `||i===` 3`||i===`\r`||i===`/`}function d(e){return e.replace(i,a)}function f(e){return e.replace(o,r)}function p(e,n=null,r){let i=[],a,o=0,s=e.length;for(;o<s;o++){let r=e[o];switch(r.nodeType){case 1:{let e=l(r.nodeName);a=new t.Element(e,c(r.attributes)),a.children=p(e===`template`?r.content.childNodes:r.childNodes,a);break}case 3:a=new t.Text(f(r.nodeValue??``));break;case 8:a=new t.Comment(r.nodeValue??``);break;default:continue}let s=i[o-1]??null;s&&(s.next=a),a.parent=n,a.prev=s,a.next=null,i.push(a)}return r&&(a=new t.ProcessingInstruction(r.substring(0,r.indexOf(` `)).toLowerCase(),r),a.next=i[0]??null,a.parent=n,i.unshift(a),i[1]&&(i[1].prev=i[0])),i}e.escapeSpecialCharacters=d,e.formatDOM=p,e.hasOpenTag=u,e.revertEscapedCharacters=f})),Wt=n((e=>{var t=Ut(),n=`html`,r=`head`,i=`body`,a=/<([a-zA-Z]+[0-9]?)/;function o(e,t){return t?t.createHTML(e):e}var s=(e,t,n)=>{throw Error("This browser does not support `document.implementation.createHTMLDocument`")},c=(e,t,n)=>{throw Error("This browser does not support `DOMParser.prototype.parseFromString`")},l=typeof window==`object`&&window.DOMParser;if(typeof l==`function`){let e=new l;c=(t,n,r)=>(n&&(t=`<${n}>${t}</${n}>`),e.parseFromString(t,`text/html`)),s=c}if(typeof document==`object`&&document.implementation){let e=document.implementation.createHTMLDocument();s=function(t,n,r){if(n){let i=e.documentElement.querySelector(n);return i&&(i.innerHTML=o(t,r)),e}return e.documentElement.innerHTML=o(t,r),e}}var u=typeof document==`object`&&document.createElement(`template`),d;u&&u.content&&(d=(e,t)=>(u.innerHTML=o(e,t),u.content.childNodes));var f=()=>document.createDocumentFragment().childNodes;function p(e,o){e=t.escapeSpecialCharacters(e);let l=a.exec(e)?.[1]?.toLowerCase();switch(l){case n:{let a=c(e);if(!t.hasOpenTag(e,r)){let e=a.querySelector(r);e?.parentNode?.removeChild(e)}if(!t.hasOpenTag(e,i)){let e=a.querySelector(i);e?.parentNode?.removeChild(e)}return a.querySelectorAll(n)}case r:case i:{let n=s(e,void 0,o).querySelectorAll(l);return t.hasOpenTag(e,i)&&t.hasOpenTag(e,r)?n[0].parentNode?.childNodes??f():n}default:return d?d(e,o):s(e,i,o).querySelector(i)?.childNodes??f()}}e.default=p,e.getHTMLForInnerHTML=o})),Gt=n((e=>{Object.defineProperties(e,{__esModule:{value:!0},[Symbol.toStringTag]:{value:`Module`}});var t=Ut(),n=Wt(),r=/<(![a-zA-Z\s]+)>/;function i(e,i){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];let a=r.exec(e),o=a?a[1]:void 0;return t.formatDOM(n.default(e,i?.trustedTypePolicy),null,o)}e.default=i})),Kt=n
vendor: 7,438 bytes, line 3
3((e=>{e.SAME=0,e.CAMELCASE=1,e.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":`acceptCharset`,accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:`className`,classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:`htmlFor`,form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":`httpEquiv`,icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":`accentHeight`,accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":`alignmentBaseline`,allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":`arabicForm`,ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":`baselineShift`,baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":`capHeight`,clip:0,clipPath:1,"clip-path":`clipPath`,clipPathUnits:1,clipRule:1,"clip-rule":`clipRule`,color:0,colorInterpolation:1,"color-interpolation":`colorInterpolation`,colorInterpolationFilters:1,"color-interpolation-filters":`colorInterpolationFilters`,colorProfile:1,"color-profile":`colorProfile`,colorRendering:1,"color-rendering":`colorRendering`,contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":`dominantBaseline`,dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":`enableBackground`,end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":`fillOpacity`,fillRule:1,"fill-rule":`fillRule`,filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":`floodOpacity`,floodColor:1,"flood-color":`floodColor`,focusable:0,fontFamily:1,"font-family":`fontFamily`,fontSize:1,"font-size":`fontSize`,fontSizeAdjust:1,"font-size-adjust":`fontSizeAdjust`,fontStretch:1,"font-stretch":`fontStretch`,fontStyle:1,"font-style":`fontStyle`,fontVariant:1,"font-variant":`fontVariant`,fontWeight:1,"font-weight":`fontWeight`,format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":`glyphName`,glyphOrientationHorizontal:1,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphOrientationVertical:1,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":`horizAdvX`,horizOriginX:1,"horiz-origin-x":`horizOriginX`,ideographic:0,imageRendering:1,"image-rendering":`imageRendering`,in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":`letterSpacing`,lightingColor:1,"lighting-color":`lightingColor`,limitingConeAngle:1,local:0,markerEnd:1,"marker-end":`markerEnd`,markerHeight:1,markerMid:1,"marker-mid":`markerMid`,markerStart:1,"marker-start":`markerStart`,markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":`overlinePosition`,overlineThickness:1,"overline-thickness":`overlineThickness`,paintOrder:1,"paint-order":`paintOrder`,panose1:0,"panose-1":`panose1`,pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":`pointerEvents`,points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":`renderingIntent`,repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":`shapeRendering`,slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":`stopColor`,stopOpacity:1,"stop-opacity":`stopOpacity`,strikethroughPosition:1,"strikethrough-position":`strikethroughPosition`,strikethroughThickness:1,"strikethrough-thickness":`strikethroughThickness`,string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":`strokeDasharray`,strokeDashoffset:1,"stroke-dashoffset":`strokeDashoffset`,strokeLinecap:1,"stroke-linecap":`strokeLinecap`,strokeLinejoin:1,"stroke-linejoin":`strokeLinejoin`,strokeMiterlimit:1,"stroke-miterlimit":`strokeMiterlimit`,strokeWidth:1,"stroke-width":`strokeWidth`,strokeOpacity:1,"stroke-opacity":`strokeOpacity`,suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":`textAnchor`,textDecoration:1,"text-decoration":`textDecoration`,textLength:1,textRendering:1,"text-rendering":`textRendering`,to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":`underlinePosition`,underlineThickness:1,"underline-thickness":`underlineThickness`,unicode:0,unicodeBidi:1,"unicode-bidi":`unicodeBidi`,unicodeRange:1,"unicode-range":`unicodeRange`,unitsPerEm:1,"units-per-em":`unitsPerEm`,unselectable:0,vAlphabetic:1,"v-alphabetic":`vAlphabetic`,values:0,vectorEffect:1,"vector-effect":`vectorEffect`,version:0,vertAdvY:1,"vert-adv-y":`vertAdvY`,vertOriginX:1,"vert-origin-x":`vertOriginX`,vertOriginY:1,"vert-origin-y":`vertOriginY`,vHanging:1,"v-hanging":`vHanging`,vIdeographic:1,"v-ideographic":`vIdeographic`,viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":`vMathematical`,vocab:0,widths:0,wordSpacing:1,"word-spacing":`wordSpacing`,writingMode:1,"writing-mode":`writingMode`,x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":`xHeight`,xlinkActuate:1,"xlink:actuate":`xlinkActuate`,xlinkArcrole:1,"xlink:arcrole":`xlinkArcrole`,xlinkHref:1,"xlink:href":`xlinkHref`,xlinkRole:1,"xlink:role":`xlinkRole`,xlinkShow:1,"xlink:show":`xlinkShow`,xlinkTitle:1,"xlink:title":`xlinkTitle`,xlinkType:1,"xlink:type":`xlinkType`,xmlBase:1,"xml:base":`xmlBase`,xmlLang:1,"xml:lang":`xmlLang`,xmlns:0,"xml:space":`xmlSpace`,xmlnsXlink:1,"xmlns:xlink":`xmlnsXlink`,xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}})),
vendor: 2,941 bytes, line 3
3qt=n((e=>{var t=0,n=1,r=2,i=3,a=4,o=5,s=6;function c(e){return u.hasOwnProperty(e)?u[e]:null}function l(e,t,n,o,s,c,l){this.acceptsBooleans=t===r||t===i||t===a,this.attributeName=o,this.attributeNamespace=s,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=c,this.removeEmptyString=l}var u={};[`children`,`dangerouslySetInnerHTML`,`defaultValue`,`defaultChecked`,`innerHTML`,`suppressContentEditableWarning`,`suppressHydrationWarning`,`style`].forEach(e=>{u[e]=new l(e,t,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(([e,t])=>{u[e]=new l(e,n,!1,t,null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(e=>{u[e]=new l(e,r,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(e=>{u[e]=new l(e,r,!1,e,null,!1,!1)}),[`allowFullScreen`,`async`,`autoFocus`,`autoPlay`,`controls`,`default`,`defer`,`disabled`,`disablePictureInPicture`,`disableRemotePlayback`,`formNoValidate`,`hidden`,`loop`,`noModule`,`noValidate`,`open`,`playsInline`,`readOnly`,`required`,`reversed`,`scoped`,`seamless`,`itemScope`].forEach(e=>{u[e]=new l(e,i,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(e=>{u[e]=new l(e,i,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(e=>{u[e]=new l(e,a,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(e=>{u[e]=new l(e,s,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(e=>{u[e]=new l(e,o,!1,e.toLowerCase(),null,!1,!1)});var d=/[\-\:]([a-z])/g,f=e=>e[1].toUpperCase();`accent-height.alignment-baseline.arabic-form.baseline-shift.cap-height.clip-path.clip-rule.color-interpolation.color-interpolation-filters.color-profile.color-rendering.dominant-baseline.enable-background.fill-opacity.fill-rule.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.glyph-name.glyph-orientation-horizontal.glyph-orientation-vertical.horiz-adv-x.horiz-origin-x.image-rendering.letter-spacing.lighting-color.marker-end.marker-mid.marker-start.overline-position.overline-thickness.paint-order.panose-1.pointer-events.rendering-intent.shape-rendering.stop-color.stop-opacity.strikethrough-position.strikethrough-thickness.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke-width.text-anchor.text-decoration.text-rendering.underline-position.underline-thickness.unicode-bidi.unicode-range.units-per-em.v-alphabetic.v-hanging.v-ideographic.v-mathematical.vector-effect.vert-adv-y.vert-origin-x.vert-origin-y.word-spacing.writing-mode.xmlns:xlink.x-height`.split(`.`).forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,null,!1,!1)}),[`xlink:actuate`,`xlink:arcrole`,`xlink:role`,`xlink:show`,`xlink:title`,`xlink:type`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}
3),[`xml:base`,`xml:lang`,`xml:space`].forEach(e=>{let t=e.replace(d,f);u[t]=new l(t,n,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!1,!1)});var p=`xlinkHref`;u[p]=new l(`xlinkHref`,n,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(e=>{u[e]=new l(e,n,!1,e.toLowerCase(),null,!0,!0)});var{CAMELCASE:m,SAME:h,possibleStandardNames:g}=Kt(),_=RegExp.prototype.test.bind(RegExp(`^(data|aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`)),v=Object.keys(g).reduce((e,t)=>{let n=g[t];return n===h?e[t]=t:n===m?e[t.toLowerCase()]=t:e[t]=n,e},{});e.BOOLEAN=i,e.BOOLEANISH_STRING=r,e.NUMERIC=o,e.OVERLOADED_BOOLEAN=a,e.POSITIVE_NUMERIC=s,e.RESERVED=t,e.STRING=n,e.getPropertyInfo=c,e.isCustomAttribute=_,e.possibleStandardNames=v})),Jt=n(((e,t)=>{var n=/\/\*(?:[^*]|\*(?!\/))*\*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|url\((?:'(?:\\.|[^'\\])*'|"(?:\\.|[^"\\])*"|[^)]*)\)|[^};])+)/,c=/^[;\s]*/;function l(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function d(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(` 4`);u=~n?e.length-n:u+e.length}function f(){var e={line:l,column:u};return function(t){return t.position=new p(e),g(),t}}function p(e){this.start=e,this.end={line:l,column:u},this.source=t.source}p.prototype.content=e;function m(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function h(t){var n=t.exec(e);if(n){var r=n[0];return d(r),e=e.slice(r.length),n}}function g(){h(i)}function _(e){for(var t;t=v();)e.push(t);return e}function v(){var t=f();if(e.charAt(0)==`/`&&e.charAt(1)==`*`){for(var n=2;e.charAt(n)!=``&&(e.charAt(n)!=`*`||e.charAt(n+1)!=`/`);)++n;if(n+=2,e.charAt(n-1)===``)return m(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,d(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function y(){var e=f(),t=h(a);
4if(t){if(v(),!h(o))return m(`property missing ':'`);var r=h(s),i=e({type:`declaration`,property:t[0].replace(n,``).trim(),value:r?r[0].replace(n,``).trim():``});return h(c),i}}function b(){var e=[];_(e);for(var t;t=y();)e.push(t),_(e);return e}return g(),b()}t.exports=l})),eee=n(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},l=(e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),u=Jt();u=l(u);function d(e,t){let n=null;if(!e||typeof e!=`string`)return n;let r=(0,u.default)(e),i=typeof t==`function`;return r.forEach(e=>{if(e.type!==`declaration`)return;let{property:r,value:a}=e;i?t(r,a,e):a&&(n??={},n[r]=a)}),n}t.exports=d})),tee=n(((e,t)=>{var n=Object.create,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=Object.getOwnPropertyNames,o=Object.getPrototypeOf,s=Object.prototype.hasOwnProperty,c=(e,t,n,o)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var c=a(t),l=0,u=c.length,d;l<u;l++)d=c[l],!s.call(e,d)&&d!==n&&r(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(o=i(t,d))||o.enumerable});return e},l=(e,t,i)=>(i=e==null?{}:n(o(e)),c(t||!e||!e.__esModule?r(i,`default`,{value:e,enumerable:!0}):i,e)),u=eee();u=l(u);var d=/^--[a-zA-Z0-9_-]+$/,f=/-([a-z])/g,p=/^[^-]+$/,m=/^-(webkit|moz|ms|o|khtml)-/,h=/^-(ms)-/,g=e=>!e||p.test(e)||d.test(e),_=(e,t)=>t.toUpperCase(),v=(e,t)=>`${t}-`,y=(e,t={})=>g(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(h,v):e.replace(m,v),e.replace(f,_));function b(e,t){let n={};return!e||typeof e!=`string`||(0,u.default)(e,(e,r)=>{e&&r&&(n[y(e,t)]=r)}),n}t.exports=b})),Yt=n((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.returnFirstArg=e.canTextBeChildOfNode=e.ELEMENTS_WITH_NO_TEXT_CHILDREN=e.PRESERVE_CUSTOM_ATTRIBUTES=void 0,e.isCustomComponent=a,e.setStyleProp=c;var n=s(),r=t(tee()),i=new Set([`annotation-xml`,`color-profile`,`font-face`,`font-face-src`,`font-face-uri`,`font-face-format`,`font-face-name`,`missing-glyph`]);function a(e,t){return e.includes(`-`)?!i.has(e):!!(t&&typeof t.is==`string`)}var o={reactCompat:!0};function c(e,t){if(typeof e==`string`){if(!e.trim()){t.style={};return}try{t.style=(0,r.default)(e,o)}catch{t.style={}}}}e.PRESERVE_CUSTOM_ATTRIBUTES=Number(n.version.split(`.`)[0])>=16,e.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set([`tr`,`tbody`,`thead`,`tfoot`,`colgroup`,`table`,`head`,`html`,`frameset`]),e.canTextBeChildOfNode=t=>!e.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(t.name),e.returnFirstArg=e=>e})),Xt=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=o;var t=qt(),n=Yt(),r=[`checked`,`value`],i=[`input`,`select`,`textarea`],a={reset:!0,submit:!0};function o(e={},o){let c={},l=!!(e.type&&a[e.type]);for(let a in e){let u=e[a];if((0,t.isCustomAttribute)(a)){c[a]=u;continue}let d=a.toLowerCase(),f=s(d);if(f){let e=(0,t.getPropertyInfo)(f);switch(r.includes(f)&&i.includes(o)&&!l&&(f=s(`default`+d)),c[f]=u,e?.type){case t.BOOLEAN:c[f]=!0;break;case t.OVERLOADED_BOOLEAN:u===``&&(c[f]=!0)}continue}n.PRESERVE_CUSTOM_ATTRIBUTES&&(c[a]=u)}return(0,n.setStyleProp)(e.style,c),c}function s(e){return t.possibleStandardNames[e]}}));function Zt(e){return e.type===Qt.Tag||e.type===Qt.Script||e.type===Qt.Style}var Qt,$t=i((()=>{(function(e){e.Root=`root`,e.Text=`text`,e.Directive=`directive`,e.Comment=`comment`,e.Script=`script`,e.Style=`style`,e.Tag=`tag`,e.CDATA=`cdata`,e.Doctype=`doctype`})(Qt||={}),Qt.Root,Qt.Text,Qt.Directive,Qt.Comment,Qt.Script,Qt.Style,Qt.Tag,Qt.CDATA,Qt.Doctype}));function en(e){return Zt(e)}function tn(e){return e.type===Qt.CDATA}function nn(e){return e.type===Qt.Text}function rn(e){return e.type===Qt.Comment}function an(e){return e.type===Qt.Directive}function on(e){return e.type===Qt.Root}function sn(e){return Object.hasOwn(e,`children`)}function cn(e,t=!1){let n;if(nn(e))n=new fn(e.data);else if(rn(e))n=new pn(e.data);else if(en(e)){let r=t?ln(e.children):[],i=new vn(e.name,{...e.attribs},r);for(let e of r)e.parent=i;e.namespace!=null&&(i.namespace=e.namespace),e[`x-attribsNamespace`]&&(i[`x-attribsNamespace`]={...e[`x-attribsNamespace`]}),e[`x-attribsPrefix`]&&(i[`x-attribsPrefix`]={...e[`x-attribsPrefix`]}),n=i}else if(tn(e)){let r=t?ln(e.children):[],i=new gn(r);for(let e of r)e.parent=i;n=i}else if(on(e)){let r=t?ln(e.children):[],i=new _n(r);for(let e of r)e.parent=i;e[`x-mode`]&&(i[`x-mode`]=e[`x-mode`]),n=i}else if(an(e)){let t=new mn(e.name,e.data);e[`x-name`]!=null&&(t[`x-name`]=e[`x-name`],t[`x-publicId`]=e[`x-publicId`],t[`x-systemId`]=e[`x-systemId`]),n=t}else throw Error(`Not implemented yet: ${e.type}`);return n.startIndex=e.startIndex,n.endIndex=e.endIndex,e.sourceCodeLocation!=null&&(n.sourceCodeLocation=e.sourceCodeLocation),n}function ln(e){let t=e.map(e=>cn(e,!0));for(let e=1;e<t.length;e++)t[e].prev=t[e-1],t[e-1].next=t[e];return t}var un,dn,fn,pn,mn,hn,gn,_n,vn,yn=i((()=>{$t(),un=class{parent=null;prev=null;next=null;startIndex=null;endIndex=null;get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return cn(this,e)}},dn=class extends un{data;constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},fn=class extends dn{type=Qt.Text;get nodeType(){return 3}},pn=class extends dn{type=Qt.Comment;get nodeType(){return 8}},mn=class extends dn{type=Qt.Directive;name;constructor(e,t){super(t),this.name=e}get nodeType(){return 1}"x-name";"x-publicId";"x-systemId"},hn=class extends un{children;constructor(e){super(),this.children=e}get firstChild(){return this.children[0]??null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},gn=class extends hn{type=Qt.CDATA;get nodeType(){return 4}},_n=class extends hn{type=Qt.Root;get nodeType(){return 9}},vn=class extends hn{name;attribs;type;constructor(e,t,n=[],r=e===`script`?Qt.Script:e===`style`?Qt.Style:Qt.Tag){super(n),this.name=e,this.attribs=t,this.type=r}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>({name:e,value:this.attribs[e],namespace:this[`x-attribsNamespace`]?.[e],prefix:this[`x-attribsPrefix`]?.[e]}))}namespace;"x-attribsNamespace";"x-attribsPrefix"}})),bn=t({CDATA:()=>gn,Comment:()=>pn,DataNode:()=>dn,Document:()=>_n,DomHandler:()=>Sn,Element:()=>vn,Node:()=>un,NodeWithChildren:()=>hn,ProcessingInstruction:()=>mn,Text:()=>fn,cloneNode:()=>cn,default:()=>Sn,hasChildren:()=>sn,isCDATA:()=>tn,isComment:()=>rn,isDirective:()=>an,isDocument:()=>on,isTag:()=>en,isText:()=>nn}),xn,Sn,Cn=i((()=>{$t(),yn(),yn(),xn={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},Sn=class{dom=[];root=new _n(this.dom);callback;options;elementCB;done=!1;tagStack=[this.root];lastNode=null;parser=null;constructor(e,t,n){typeof t==`function`&&(n=t,t=xn),typeof e==`object`&&(t=e,e=void 0),this.callback=e??null,this.options=t??xn,this.elementCB=n??null}onparserinit(e){this.parser=e}onreset(){this.dom=[],this.root=new _n(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null}onend(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))}onerror(e){this.handleCallback(e)}onclosetag(){this.lastNode=null;let e=this.tagStack.pop();this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)}onopentag(e,t){let n=this.options.xmlMode?Qt.Tag:void 0,r=new vn(e,t,void 0,n);this.addNode(r),this.tagStack.push(r)}ontext(e){let{lastNode:t}=this;if(t&&t.type===Qt.Text)t.data+=e,this.options.withEndIndices&&this.parser&&(t.endIndex=this.parser.endIndex);else{let t=new fn(e);this.addNode(t),this.lastNode=t}}oncomment(e){if(this.lastNode&&this.lastNode.type===Qt.Comment){this.lastNode.data+=e;return}let t=new pn(e);this.addNode(t),this.lastNode=t}oncommentend(){this.lastNode=null}oncdatastart(){let e=new fn(``),t=new gn([e]);this.addNode(t),e.parent=t,this.lastNode=e}
4oncdataend(){this.lastNode=null}onprocessinginstruction(e,t){let n=new mn(e,t);this.addNode(n)}handleCallback(e){if(typeof this.callback==`function`)this.callback(e,this.dom);else if(e)throw e}addNode(e){let t=this.tagStack[this.tagStack.length-1],n=t.children[t.children.length-1];this.options.withStartIndices&&this.parser&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&this.parser&&(e.endIndex=this.parser.endIndex),t.children.push(e),n&&(e.prev=n,n.next=e),e.parent=t,this.lastNode=null}}})),wn=n((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var r=(Cn(),e(bn)),i=s(),a=n(Xt()),o=Yt(),c={cloneElement:i.cloneElement,createElement:i.createElement,isValidElement:i.isValidElement};function l(e,t={}){let n=[],r=typeof t.replace==`function`,i=t.transform??o.returnFirstArg,{cloneElement:s,createElement:f,isValidElement:p}=t.library??c,m=e.length;u(e);for(let c=0;c<m;c++){let u=e[c];if(r){let e=t.replace?.call(t,u,c);if(p(e)){m>1&&(e=s(e,{key:e.key??c})),n.push(i(e,u,c));continue}}if(u.type===`text`){let e=!u.data.trim().length;if(e&&u.parent&&!(0,o.canTextBeChildOfNode)(u.parent)||t.trim&&e)continue;n.push(i(u.data,u,c));continue}let h=u,g={};d(h)?((0,o.setStyleProp)(h.attribs.style,h.attribs),g=h.attribs):h.attribs&&(g=(0,a.default)(h.attribs,h.name));let _;switch(u.type){case`script`:case`style`:u.children[0]&&(g.dangerouslySetInnerHTML={__html:u.children[0].data});break;case`tag`:u.name===`textarea`&&u.children[0]?g.defaultValue=u.children[0].data:u.children?.length&&(_=l(u.children,t));break;default:continue}m>1&&(g.key=c),n.push(i(f(u.name,g,_),u,c))}return n.length===1?n[0]:n}function u(e){for(let t of e)switch(t.type){case`tag`:case`script`:case`style`:Object.setPrototypeOf(t,r.Element.prototype),u(t.children);break;case`text`:Object.setPrototypeOf(t,r.Text.prototype);break;case`comment`:Object.setPrototypeOf(t,r.Comment.prototype)}}function d(e){return o.PRESERVE_CUSTOM_ATTRIBUTES&&e.type===`tag`&&(0,o.isCustomComponent)(e.name,e.attribs)}})),Tn=r(n((t=>{var n=t&&t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=s;var r=n(Gt());t.htmlToDOM=r.default,t.attributesToProps=n(Xt()).default;var i=n(wn());t.domToReact=i.default;var a=(Cn(),e(bn));Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return a.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return a.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return a.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return a.Text}});var o={lowerCaseAttributeNames:!1};function s(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];let n=Object.assign(Object.assign({},t?.htmlparser2??o),{trustedTypePolicy:t?.trustedTypePolicy});return(0,i.default)((0,r.default)(e,n),t)}}))(),1),En=Tn.default.default||Tn.default,Dn=r(Fe(),1),On=e=>typeof e==`string`?e:typeof e==`number`?e.toString():Array.isArray(e)?e.map(On).join(``):(0,B.isValidElement)(e)?On(e.props.children):``;function kn(e){let t=``;for(let n of e.children??[])typeof n==`string`&&(t+=n),t+=kn(n);return t}function An(e){let t=``;for(let n of e.children??[])typeof n==`string`?t+=n:n.name!==`code`&&(t+=An(n));return t.trim()}function jn({nodes:e,slugify:t=st(),type:n,useMarkdocRenderer:r=!1}){let i=[];if(!Array.isArray(e))return i;for(let a of e)if(n===Ge.HTML){if(typeof a.type==`function`&&(a.props.level===2||a.props.level===3)){let e=On(a.props.children);if(e.replace(/[\u00a0\s]/g,``)){if(a.props.level===3){if(!i[i.length-1])continue;i[i.length-1]?.children.push({...(0,Dn.default)(a.props,`style`),title:e})}else i.push({...a.props,title:e,children:[]})}}a.name!==`blockquote`&&i.push(...jn({nodes:a?.props?.children??[],slugify:t,type:n,useMarkdocRenderer:r}))}else{if(a.name===`Heading`&&(a.attributes.level===3||a.attributes.level===2)){let e=kn(a);if(e.replace(/[\u00a0\s]/g,``)){let o=r?n===Ge.A2A?An(a).toLowerCase():e.toLowerCase():a.attributes.id??t(e);if(a.attributes.id=o,a.attributes.level===3){if(!i[i.length-1])continue;i[i.length-1]?.children.push({...a.attributes,title:e})}else i.push({...a.attributes,title:e,children:[]})}}a.name!==`blockquote`&&i.push(...jn({nodes:a.children??[],slugify:t,type:n,useMarkdocRenderer:r}))}return i}var Mn=e=>typeof e==`string`?En(e,{replace:e=>{let{name:t,attribs:n,children:r}=e;if(/^h[1-6]$/.test(t)&&r?.length){let e=(0,Tn.attributesToProps)(n),i=st(),a=e=>e?.data?e.data:Array.isArray(e?.children)&&e?.children.length?a(e.children[0]):``,o=i(a(r[0]))||``;return(0,B.createElement)(ht,{...e,key:o,id:o,level:parseInt(t[1])},(0,Tn.domToReact)(r))}if(/^pre$/.test(t)){let e=r?.[0]&&r[0]?.name===`code`&&r?.[0];if(e){let t=e?.attribs?.class&&e?.attribs?.class?.replace(`language-`,``)||`text`;return(0,V.jsx)(mt,{language:t,children:e?.children?.[0]?.data})}}if(t===`a`){let e=n.href||``,t=(0,Tn.attributesToProps)(n);if(e.startsWith(`http://`)||e.startsWith(`https://`)||e.startsWith(`//`))return(0,V.jsx)(`a`,{href:e,target:`_blank`,rel:`noopener noreferrer`,...t,children:(0,Tn.domToReact)(r)});if(e.startsWith(`#`))return(0,V.jsx)(`a`,{href:e,onClick:()=>{let t=document.getElementById(e.slice(1));t&&t.scrollIntoView()},...t,children:(0,Tn.domToReact)(r)})}if(/^figure$/.test(t)&&n.class===`media`){let t=r?.[0],n=t?.attribs?.url??t?.attribs?.[`data-oembed-url`],i=[/(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/(?:m\.)?youtube\.com\/shorts\/([\w-]+)(?:\?t=(\d+))?/,/(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/youtu\.be\/([\w-]+)(?:\?t=(\d+))?/].map(e=>n?.match(e)).find(Boolean);if(i){let[,e,t]=i,n=`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://www.youtube.com/embed/${e}${t?`?start=${t}`:``}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe></div>`;return(0,V.jsx)(`div`,{dangerouslySetInnerHTML:{__html:n}})}
4let a=[/vimeo\.com\/(\d+)/,/vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/vimeo\.com\/channels\/[^/]+\/(\d+)/,/vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/player\.vimeo\.com\/video\/(\d+)/].map(e=>n?.match(e)).find(Boolean);if(a){let e=`<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;"><iframe src="https://player.vimeo.com/video/${a[1]}" style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>`;return(0,V.jsx)(`div`,{dangerouslySetInnerHTML:{__html:e}})}return e}}}):``,nee=({content:e,title:t,lastModifiedDate:n,providerContentSlug:r,showEditButtons:i=!1,type:a=Ge.HTML,isConsumerSide:o=!1,useMarkdocRenderer:s=!1,...c})=>{let l=(0,B.useCallback)(()=>Mn(e),[e]),u=(0,B.useMemo)(()=>({Fence:mt,Table:ft,Link:_t,Heading:e=>(0,V.jsx)(ht,{...e,contentType:a})}),[a]),d=a===Ge.HTML&&!s?l():e;return(0,V.jsxs)(zt,{title:t,tableOfContents:e?jn({nodes:d,type:a,useMarkdocRenderer:s}):[],lastModifiedDate:n,providerContentSlug:r,showEditButtons:i,useMarkdocRenderer:s,isConsumerSide:o,...c,children:[(a===Ge.MARKDOWN||s)&&Ue.react(e,B.default,{components:u}),a===Ge.HTML&&l()]})},Nn=r(u(),1),Pn=r(ie()),Fn=r(oe()),In=r(je()),Ln=r(re()),Rn=r(Pe()),zn=r(Re()),Bn=r(Ne()),Vn=r(We());P();var Hn=r(v());Xe();var Un=r(St()),Wn=function(e){return e.JSON=`JSON`,e.YAML=`YAML`,e.GRAPHQL=`GraphQL`,e}({}),Gn=[`JSON`,`YAML`],Kn=150,ree=20,iee=(e,t)=>{(0,B.useEffect)(()=>{if(!e||!t)return;let n=t.split(`/`).pop()||``,r=0,i,a=()=>{let t=e.querySelector(`[id*="${n}"]`);if(t){t.scrollIntoView({behavior:`smooth`,block:`start`});return}r<ree&&(r++,i=setTimeout(a,Kn))};return i=setTimeout(a,Kn),()=>clearTimeout(i)},[t,e])},qn=({date:e,className:t=``})=>{let{t:n}=R();return e?(0,V.jsx)(`div`,{className:te(`sp-api-viewer-last-modified text-body3 font-semibold text-(--sp-color-text-muted) font-[Open_Sans]`,t),children:n(`consumer.product.template.lastModified`,{lastModifiedDate:e})}):null},aee=({lastModifiedDate:e})=>({wrapComponents:{InfoContainer:t=>n=>(0,V.jsxs)(`div`,{className:`pt-6`,children:[(0,V.jsx)(qn,{date:e,className:`pb-2`}),(0,V.jsx)(t,{...n})]})}}),oee=wt(()=>l(()=>import(`./esm-DF-e3Fm7.js`).then(e=>({default:e.default})),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19])));function Jn({definition:e,hash:t,containerRef:n,lastModifiedDate:r,isConsumerSide:i}){return iee(n,t),(0,V.jsxs)(`div`,{className:te(`pt-6 bg-(--sp-color-surface)`,i&&`md:px-3 xl:px-0 md:pt-9 xl:pt-6`),children:[(0,V.jsx)(qn,{date:r,className:`pb-2 pl-6 text-(--sp-color-text-muted)`}),(0,V.jsx)(oee,{schema:e,config:{schemaID:`custom-spec`,show:{operations:!0,errors:!1}}})]})}var Yn=n(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Xn=n(((e,t)=>{var n=Yn();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=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 s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),Zn=n(((e,t)=>{t.exports=Xn()()})),Qn=n((e=>{e.byteLength=c,e.toByteArray=u,e.fromByteArray=p;for(var t=[],n=[],r=typeof Uint8Array<`u`?Uint8Array:Array,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/`,a=0,o=i.length;a<o;++a)t[a]=i[a],n[i.charCodeAt(a)]=a;n[45]=62,n[95]=63;function s(e){var t=e.length;if(t%4>0)throw Error(`Invalid string. Length must be a multiple of 4`);var n=e.indexOf(`=`);n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function c(e){var t=s(e),n=t[0],r=t[1];return(n+r)*3/4-r}function l(e,t,n){return(t+n)*3/4-n}function u(e){for(var t,i=s(e),a=i[0],o=i[1],c=new r(l(e,a,o)),u=0,d=o>0?a-4:a,f=0;f<d;f+=4)t=n[e.charCodeAt(f)]<<18|n[e.charCodeAt(f+1)]<<12|n[e.charCodeAt(f+2)]<<6|n[e.charCodeAt(f+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=t&255;return o===2&&(t=n[e.charCodeAt(f)]<<2|n[e.charCodeAt(f+1)]>>4,c[u++]=t&255),o===1&&(t=n[e.charCodeAt(f)]<<10|n[e.charCodeAt(f+1)]<<4|n[e.charCodeAt(f+2)]>>2,c[u++]=t>>8&255,c[u++]=t&255),c}function d(e){return t[e>>18&63]+t[e>>12&63]+t[e>>6&63]+t[e&63]}function f(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(d(r));return i.join(``)}function p(e){for(var n,r=e.length,i=r%3,a=[],o=16383,s=0,c=r-i;s<c;s+=o)a.push(f(e,s,s+o>c?c:s+o));return i===1?(n=e[r-1],a.push(t[n>>2]+t[n<<4&63]+`==`)):i===2&&(n=(e[r-2]<<8)+e[r-1],a.push(t[n>>10]+t[n>>4&63]+t[n<<2&63]+`=`)),a.join(``)}})),$n=n((e=>{e.read=function(e,t,n,r,i){var a,o,s=i*8-r-1,c=(1<<s)-1,l=c>>1,u=-7,d=n?i-1:0,f=n?-1:1,p=e[t+d];for(d+=f,a=p&(1<<-u)-1,p>>=-u,u+=s;u>0;a=a*256+e[t+d],d+=f,u-=8);for(o=a&(1<<-u)-1,a>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=f,u-=8);if(a===0)a=1-l;else if(a===c)return o?NaN:(p?-1:1)*(1/0);else o+=2**r,a-=l;return(p?-1:1)*o*2**(a-r)},e.write=function(e,t,n,r,i,a){var o,s,c,l=a*8-i-1,u=(1<<l)-1,d=u>>
vendor: 26,032 bytes, line 4
41,f=i===23?2**-24-2**-77:0,p=r?0:a-1,m=r?1:-1,h=+(t<0||t===0&&1/t<0);for(t=Math.abs(t),isNaN(t)||t===1/0?(s=+!!isNaN(t),o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(c=2**-o)<1&&(o--,c*=2),o+d>=1?t+=f/c:t+=f*2**(1-d),t*c>=2&&(o++,c/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*c-1)*2**i,o+=d):(s=t*2**(d-1)*2**i,o=0));i>=8;e[n+p]=s&255,p+=m,s/=256,i-=8);for(o=o<<i|s,l+=i;l>0;e[n+p]=o&255,p+=m,o/=256,l-=8);e[n+p-m]|=h*128}})),er=n((e=>{var t=Qn(),n=$n(),r=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;e.Buffer=s,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50;var i=2147483647;e.kMaxLength=i,s.TYPED_ARRAY_SUPPORT=a(),!s.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 a(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(e){if(e>i)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,s.prototype),t}function s(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return c(e,t,n)}s.poolSize=8192;function c(e,t,n){if(typeof e==`string`)return f(e,t);if(ArrayBuffer.isView(e))return m(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(ve(e,ArrayBuffer)||e&&ve(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(ve(e,SharedArrayBuffer)||e&&ve(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return s.from(r,t,n);let i=g(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return s.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}s.from=function(e,t,n){return c(e,t,n)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function l(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function u(e,t,n){return l(e),e<=0||t===void 0?o(e):typeof n==`string`?o(e).fill(t,n):o(e).fill(t)}s.alloc=function(e,t,n){return u(e,t,n)};function d(e){return l(e),o(e<0?0:_(e)|0)}s.allocUnsafe=function(e){return d(e)},s.allocUnsafeSlow=function(e){return d(e)};function f(e,t){if((typeof t!=`string`||t===``)&&(t=`utf8`),!s.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=y(e,t)|0,r=o(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}function p(e){let t=e.length<0?0:_(e.length)|0,n=o(t);for(let r=0;r<t;r+=1)n[r]=e[r]&255;return n}function m(e){if(ve(e,Uint8Array)){let t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return p(e)}function h(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,s.prototype),r}function g(e){if(s.isBuffer(e)){let t=_(e.length)|0,n=o(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||ye(e.length)?o(0):p(e);if(e.type===`Buffer`&&Array.isArray(e.data))return p(e.data)}function _(e){if(e>=i)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+i.toString(16)+` bytes`);return e|0}function v(e){return+e!=e&&(e=0),s.alloc(+e)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,t){if(ve(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),ve(t,Uint8Array)&&(t=s.from(t,t.offset,t.byteLength)),!s.isBuffer(e)||!s.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},s.isEncoding=function(e){switch(String(e).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}},s.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return s.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=s.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(ve(t,Uint8Array))i+t.length>r.length?(s.isBuffer(t)||(t=s.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else if(s.isBuffer(t))t.copy(r,i);else throw TypeError(`"list" argument must be an Array of Buffers`);i+=t.length}return r};function y(e,t){if(s.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ve(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&arguments[2]===!0;if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return pe(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return n*2;case`hex`:return n>>>1;case`base64`:return ge(e).length;default:if(i)return r?-1:pe(e).length;t=(``+t).toLowerCase(),i=!0}}s.byteLength=y;function b(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,t>>>=0,n<=t))return``;for(e||=`utf8`;;)switch(e){case`hex`:return F(this,t,n);case`utf8`:case`utf-8`:return A(this,t,n);case`ascii`:return N(this,t,n);case`latin1`:case`binary`:return P(this,t,n);case`base64`:return k(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return I(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}s.prototype._isBuffer=!0;function x(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}s.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)x(this,t,t+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)x(this,t,t+3),x(this,t+1,t+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)x(this,t,t+7),x(this,t+1,t+6),x(this,t+2,t+5),x(this,t+3,t+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?A(this,0,e):b.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||s.compare(this,e)===0},s.prototype.inspect=function(){let t=``,n=e.INSPECT_MAX_BYTES;return t=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(t+=` ... `),`<Buffer `+t+`>`},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(e,t,n,r,i){if(ve(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;let a=i-r,o=n-t,c=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<c;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)};function S(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,ye(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(i)n=0;else return-1}if(typeof t==`string`&&(t=s.from(t,r)),s.isBuffer(t))return t.length===0?-1:C(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):C(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function C(e,t,n,r,i){let a=1,o=e.length,s=t.length;if(r!==void 0&&(r=String(r).toLowerCase(),r===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;a=2,o/=2,s/=2,n/=2}function c(e,t){return a===1?e[t]:e.readUInt16BE(t*a)}let l;if(i){let r=-1;for(l=n;l<o;l++)if(c(e,l)===c(t,r===-1?0:l-r)){if(r===-1&&(r=l),l-r+1===s)return r*a}else r!==-1&&(l-=l-r),r=-1}else for(n+s>o&&(n=o-s),l=n;l>=0;l--){let n=!0;for(let r=0;r<s;r++)if(c(e,l+r)!==c(t,r)){n=!1;break}if(n)return l}return-1}s.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},s.prototype.indexOf=function(e,t,n){return S(this,e,t,n,!0)},s.prototype.lastIndexOf=function(e,t,n){return S(this,e,t,n,!1)};function w(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r),r>i&&(r=i)):r=i;let a=t.length;r>a/2&&(r=a/2);let o=0;for(;o<r;++o){let r=parseInt(t.substr(o*2,2),16);if(ye(r))return o;e[n+o]=r}return o}function T(e,t,n,r){return _e(pe(t,e.length-n),e,n,r)}function E(e,t,n,r){return _e(me(t),e,n,r)}function D(e,t,n,r){return _e(ge(t),e,n,r)}function O(e,t,n,r){return _e(he(t,e.length-n),e,n,r)}s.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0);else throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return w(this,e,t,n);case`utf8`:case`utf-8`:return T(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return E(this,e,t,n);case`base64`:return D(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return O(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},s.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,n,r){return n===0&&r===e.length?t.fromByteArray(e):t.fromByteArray(e.slice(n,r))}function A(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(n&192)==128&&(c=(t&31)<<6|n&63,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(n&192)==128&&(r&192)==128&&(c=(t&15)<<12|(n&63)<<6|r&63,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(n&192)==128&&(r&192)==128&&(s&192)==128&&(c=(t&15)<<18|(n&63)<<12|(r&63)<<6|s&63,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|a&1023),r.push(a),i+=o}return M(r)}var j=4096;function M(e){let t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=j));return n}function N(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]&127);return r}function P(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function F(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=be[e[r]];return i}function I(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+r[e+1]*256);return i}s.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,s.prototype),r};function L(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},s.prototype.readUint8=s.prototype.readUInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,t){return e>>>=0,t||L(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=xe(function(e){e>>>=0,le(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ue(e,this.length-8);let r=t+this[++e]*256+this[++e]*2**16+this[++e]*2**24,i=this[++e]+this[++e]*256+this[++e]*2**16+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))}),s.prototype.readBigUInt64BE=xe(function(e){e>>>=0,le(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ue(e,this.length-8);let r=t*2**24+this[++e]*2**16+this[++e]*256+this[++e],i=this[++e]*2**24+this[++e]*2**16+this[++e]*256+n;return(BigInt(r)<<BigInt(32))+BigInt(i)}),s.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},s.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||L(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},s.prototype.readInt8=function(e,t){return e>>>=0,t||L(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n},s.prototype.readInt16BE=function(e,t){e>>>=0,t||L(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n},s.prototype.readInt32LE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return e>>>=0,t||L(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=xe(function(e){e>>>=0,le(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ue(e,this.length-8);let r=this[e+4]+this[e+5]*256+this[e+6]*2**16+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*256+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=xe(function(e){e>>>=0,le(e,`offset`);let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&ue(e,this.length-8);let r=(t<<24)+this[++e]*2**16+this[++e]*256+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*256+n)}),s.prototype.readFloatLE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return e>>>=0,t||L(e,4,this.length),n.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return e>>>=0,t||L(e,8,this.length),n.read(this,e,!1,52,8)};function ee(e,t,n,r,i,a){if(!s.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;ee(this,e,t,n,r,0)}let i=1,a=0;for(this[t]=e&255;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){let r=2**(8*n)-1;ee(this,e,t,n,r,0)}let i=n-1,a=1;for(this[t+i]=e&255;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,1,255,0),this[t]=e&255,t+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function R(e,t,n,r,i){ce(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function z(e,t,n,r,i){ce(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}s.prototype.writeBigUInt64LE=xe(function(e,t=0){return R(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeBigUInt64BE=xe(function(e,t=0){return z(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))}),s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);ee(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=e&255;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);ee(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=e&255;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a>>0)-o&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||ee(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4},s.prototype.writeBigInt64LE=xe(function(e,t=0){return R(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))}),s.prototype.writeBigInt64BE=xe(function(e,t=0){return z(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))});function te(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function ne(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,t,n){return ne(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return ne(this,e,t,!1,n)};function re(e,t,r,i,a){return t=+t,r>>>=0,a||te(e,t,r,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,t,n){return re(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return re(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(!s.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,!r&&r!==0&&(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},s.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!s.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;t>>>=0,n=n===void 0?this.length:n>>>0,e||=0;let i;if(typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=s.isBuffer(e)?e:s.from(e,r),o=a.length;if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};var ie={};function ae(e,t,n){ie[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}ae(`ERR_BUFFER_OUT_OF_BOUNDS`,function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`},RangeError),ae(`ERR_INVALID_ARG_TYPE`,function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`},TypeError),ae(`ERR_OUT_OF_RANGE`,function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=oe(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=oe(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r},RangeError);function oe(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function se(e,t,n){le(t,`offset`),(e[t]===void 0||e[t+n]===void 0)&&ue(t,e.length-(n+1))}function ce(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${(a+1)*8}${r}`:`>= -(2${r} ** ${(a+1)*8-1}${r}) and < 2 ** ${(a+1)*8-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new ie.ERR_OUT_OF_RANGE(`value`,i,e)}se(r,i,a)}function le(e,t){if(typeof e!=`number`)throw new ie.ERR_INVALID_ARG_TYPE(t,`number`,e)}function ue(e,t,n){throw Math.floor(e)===e?t<0?new ie.ERR_BUFFER_OUT_OF_BOUNDS:new ie.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(le(e,n),new ie.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}var de=/[^+/0-9A-Za-z-_]/g;function fe(e){if(e=e.split(`=`)[0],e=e.trim().replace(de,``),e.length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}function pe(e,t){t||=1/0;let n,r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=(i-55296<<10|n-56320)+65536}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,n&63|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw Error(`Invalid code point`)}return a}function me(e){let t=[];for(let n=0;n<e.length;++n)t.push(e.charCodeAt(n)&255);return t}function he(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}function ge(e){return t.toByteArray(fe(e))}function _e(e,t,n,r){let i=0;for(;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ve(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ye(e){return e!==e}var be=(function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=n*16;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t})();function xe(e){return typeof BigInt>`u`?Se:e}function Se(){throw Error(`BigInt not supported`)}})),tr=n(((e,t)=>{var n=er(),r=n.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=a);function a(e,t,n){return r(e,t,n)}a.prototype=Object.create(r.prototype),i(r,a),a.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return r(e,t,n)},a.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var i=r(e);return t===void 0?i.fill(0):typeof n==`string`?i.fill(t,n):i.fill(t),i},a.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r(e)},a.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return n.SlowBuffer(e)}})),nr=n(((e,t)=>{var n={}.toString;t.exports=Array.isArray||function(e){return n.call(e)==`[object Array]`}}
4)),rr=n(((e,t)=>{t.exports=TypeError})),ir=n(((e,t)=>{t.exports=Object})),ar=n(((e,t)=>{t.exports=Error})),or=n(((e,t)=>{t.exports=EvalError})),sr=n(((e,t)=>{t.exports=RangeError})),cr=n(((e,t)=>{t.exports=ReferenceError})),lr=n(((e,t)=>{t.exports=SyntaxError})),ur=n(((e,t)=>{t.exports=URIError})),dr=n(((e,t)=>{t.exports=Math.abs})),fr=n(((e,t)=>{t.exports=Math.floor})),pr=n(((e,t)=>{t.exports=Math.max})),mr=n(((e,t)=>{t.exports=Math.min})),hr=n(((e,t)=>{t.exports=Math.pow})),gr=n(((e,t)=>{t.exports=Math.round})),_r=n(((e,t)=>{t.exports=Number.isNaN||function(e){return e!==e}})),vr=n(((e,t)=>{var n=_r();t.exports=function(e){return n(e)||e===0?e:e<0?-1:1}})),yr=n(((e,t)=>{t.exports=Object.getOwnPropertyDescriptor})),br=n(((e,t)=>{var n=yr();if(n)try{n([],`length`)}catch{n=null}t.exports=n})),xr=n(((e,t)=>{var n=Object.defineProperty||!1;if(n)try{n({},`a`,{value:1})}catch{n=!1}t.exports=n})),Sr=n(((e,t)=>{t.exports=function(){if(typeof Symbol!=`function`||typeof Object.getOwnPropertySymbols!=`function`)return!1;if(typeof Symbol.iterator==`symbol`)return!0;var e={},t=Symbol(`test`),n=Object(t);if(typeof t==`string`||Object.prototype.toString.call(t)!==`[object Symbol]`||Object.prototype.toString.call(n)!==`[object Symbol]`)return!1;var r=42;for(var i in e[t]=r,e)return!1;if(typeof Object.keys==`function`&&Object.keys(e).length!==0||typeof Object.getOwnPropertyNames==`function`&&Object.getOwnPropertyNames(e).length!==0)return!1;var a=Object.getOwnPropertySymbols(e);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if(typeof Object.getOwnPropertyDescriptor==`function`){var o=Object.getOwnPropertyDescriptor(e,t);if(o.value!==r||o.enumerable!==!0)return!1}return!0}})),Cr=n(((e,t)=>{var n=typeof Symbol<`u`&&Symbol,r=Sr();t.exports=function(){return typeof n!=`function`||typeof Symbol!=`function`||typeof n(`foo`)!=`symbol`||typeof Symbol(`bar`)!=`symbol`?!1:r()}})),wr=n(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect.getPrototypeOf||null})),Tr=n(((e,t)=>{t.exports=ir().getPrototypeOf||null})),see=n(((e,t)=>{var n=Object.prototype.toString,r=Math.max,i=`[object Function]`,a=function(e,t){for(var n=[],r=0;r<e.length;r+=1)n[r]=e[r];for(var i=0;i<t.length;i+=1)n[i+e.length]=t[i];return n},o=function(e,t){for(var n=[],r=t||0,i=0;r<e.length;r+=1,i+=1)n[i]=e[r];return n},s=function(e,t){for(var n=``,r=0;r<e.length;r+=1)n+=e[r],r+1<e.length&&(n+=t);return n};t.exports=function(e){var t=this;if(typeof t!=`function`||n.apply(t)!==i)throw TypeError(`Function.prototype.bind called on incompatible `+t);for(var c=o(arguments,1),l,u=function(){if(this instanceof l){var n=t.apply(this,a(c,arguments));return Object(n)===n?n:this}return t.apply(e,a(c,arguments))},d=r(0,t.length-c.length),f=[],p=0;p<d;p++)f[p]=`$`+p;if(l=Function(`binder`,`return function (`+s(f,`,`)+`){ return binder.apply(this,arguments); }`)(u),t.prototype){var m=function(){};m.prototype=t.prototype,l.prototype=new m,m.prototype=null}return l}})),Er=n(((e,t)=>{var n=see();t.exports=Function.prototype.bind||n})),Dr=n(((e,t)=>{t.exports=Function.prototype.call})),Or=n(((e,t)=>{t.exports=Function.prototype.apply})),kr=n(((e,t)=>{t.exports=typeof Reflect<`u`&&Reflect&&Reflect.apply})),Ar=n(((e,t)=>{var n=Er(),r=Or(),i=Dr();t.exports=kr()||n.call(i,r)})),jr=n(((e,t)=>{var n=Er(),r=rr(),i=Dr(),a=Ar();t.exports=function(e){if(e.length<1||typeof e[0]!=`function`)throw new r(`a function is required`);return a(n,i,e)}}
4)),Mr=n(((e,t)=>{var n=jr(),r=br(),i;try{i=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!=`object`||!(`code`in e)||e.code!==`ERR_PROTO_ACCESS`)throw e}var a=!!i&&r&&r(Object.prototype,`__proto__`),o=Object,s=o.getPrototypeOf;t.exports=a&&typeof a.get==`function`?n([a.get]):typeof s==`function`&&function(e){return s(e==null?e:o(e))}})),Nr=n(((e,t)=>{var n=wr(),r=Tr(),i=Mr();t.exports=n?function(e){return n(e)}:r?function(e){if(!e||typeof e!=`object`&&typeof e!=`function`)throw TypeError(`getProto: not an object`);return r(e)}:i?function(e){return i(e)}:null})),Pr=n(((e,t)=>{var n=Function.prototype.call,r=Object.prototype.hasOwnProperty;t.exports=Er().call(n,r)})),Fr=n(((e,t)=>{var n,r=ir(),i=ar(),a=or(),o=sr(),s=cr(),c=lr(),l=rr(),u=ur(),d=dr(),f=fr(),p=pr(),m=mr(),h=hr(),g=gr(),_=vr(),v=Function,y=function(e){try{return v(`"use strict"; return (`+e+`).constructor;`)()}catch{}},b=br(),x=xr(),S=function(){throw new l},C=b?function(){try{return arguments.callee,S}catch{try{return b(arguments,`callee`).get}catch{return S}}}():S,w=Cr()(),T=Nr(),E=Tr(),D=wr(),O=Or(),k=Dr(),A={},j=typeof Uint8Array>`u`||!T?n:T(Uint8Array),M={__proto__:null,"%AggregateError%":typeof AggregateError>`u`?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>`u`?n:ArrayBuffer,"%ArrayIteratorPrototype%":w&&T?T([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":A,"%AsyncGenerator%":A,"%AsyncGeneratorFunction%":A,"%AsyncIteratorPrototype%":A,"%Atomics%":typeof Atomics>`u`?n:Atomics,"%BigInt%":typeof BigInt>`u`?n:BigInt,"%BigInt64Array%":typeof BigInt64Array>`u`?n:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>`u`?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>`u`?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":i,"%eval%":eval,"%EvalError%":a,"%Float16Array%":typeof Float16Array>`u`?n:Float16Array,"%Float32Array%":typeof Float32Array>`u`?n:Float32Array,"%Float64Array%":typeof Float64Array>`u`?n:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>`u`?n:FinalizationRegistry,"%Function%":v,"%GeneratorFunction%":A,"%Int8Array%":typeof Int8Array>`u`?n:Int8Array,"%Int16Array%":typeof Int16Array>`u`?n:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 5,156 bytes, line 4
4`u`?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":w&&T?T(T([][Symbol.iterator]())):n,"%JSON%":typeof JSON==`object`?JSON:n,"%Map%":typeof Map>`u`?n:Map,"%MapIteratorPrototype%":typeof Map>`u`||!w||!T?n:T(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":r,"%Object.getOwnPropertyDescriptor%":b,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>`u`?n:Promise,"%Proxy%":typeof Proxy>`u`?n:Proxy,"%RangeError%":o,"%ReferenceError%":s,"%Reflect%":typeof Reflect>`u`?n:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>`u`?n:Set,"%SetIteratorPrototype%":typeof Set>`u`||!w||!T?n:T(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>`u`?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":w&&T?T(``[Symbol.iterator]()):n,"%Symbol%":w?Symbol:n,"%SyntaxError%":c,"%ThrowTypeError%":C,"%TypedArray%":j,"%TypeError%":l,"%Uint8Array%":typeof Uint8Array>`u`?n:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>`u`?n:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>`u`?n:Uint16Array,"%Uint32Array%":typeof Uint32Array>`u`?n:Uint32Array,"%URIError%":u,"%WeakMap%":typeof WeakMap>`u`?n:WeakMap,"%WeakRef%":typeof WeakRef>`u`?n:WeakRef,"%WeakSet%":typeof WeakSet>`u`?n:WeakSet,"%Function.prototype.call%":k,"%Function.prototype.apply%":O,"%Object.defineProperty%":x,"%Object.getPrototypeOf%":E,"%Math.abs%":d,"%Math.floor%":f,"%Math.max%":p,"%Math.min%":m,"%Math.pow%":h,"%Math.round%":g,"%Math.sign%":_,"%Reflect.getPrototypeOf%":D};if(T)try{null.error}catch(e){M[`%Error.prototype%`]=T(T(e))}var N=function e(t){var n;if(t===`%AsyncFunction%`)n=y(`async function () {}`);else if(t===`%GeneratorFunction%`)n=y(`function* () {}`);else if(t===`%AsyncGeneratorFunction%`)n=y(`async function* () {}`);else if(t===`%AsyncGenerator%`){var r=e(`%AsyncGeneratorFunction%`);r&&(n=r.prototype)}else if(t===`%AsyncIteratorPrototype%`){var i=e(`%AsyncGenerator%`);i&&T&&(n=T(i.prototype))}return M[t]=n,n},P={__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`]},F=Er(),I=Pr(),L=F.call(k,Array.prototype.concat),ee=F.call(O,Array.prototype.splice),R=F.call(k,String.prototype.replace),z=F.call(k,String.prototype.slice),te=F.call(k,RegExp.prototype.exec),ne=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,re=/\\(\\)?/g,ie=function(e){var t=z(e,0,1),n=z(e,-1);if(t===`%`&&n!==`%`)throw new c("invalid intrinsic syntax, expected closing `%`");if(n===`%`&&t!==`%`)throw new c("invalid intrinsic syntax, expected opening `%`");var r=[];return R(e,ne,function(e,t,n,i){r[r.length]=n?R(i,re,`$1`):t||e}),r},ae=function(e,t){var n=e,r;
4if(I(P,n)&&(r=P[n],n=`%`+r[0]+`%`),I(M,n)){var i=M[n];if(i===A&&(i=N(n)),i===void 0&&!t)throw new l(`intrinsic `+e+` exists, but is not available. Please file an issue!`);return{alias:r,name:n,value:i}}throw new c(`intrinsic `+e+` does not exist!`)};t.exports=function(e,t){if(typeof e!=`string`||e.length===0)throw new l(`intrinsic name must be a non-empty string`);if(arguments.length>1&&typeof t!=`boolean`)throw new l(`"allowMissing" argument must be a boolean`);if(te(/^%?[^%]*%?$/,e)===null)throw new c("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ie(e),r=n.length>0?n[0]:``,i=ae(`%`+r+`%`,t),a=i.name,o=i.value,s=!1,u=i.alias;u&&(r=u[0],ee(n,L([0,1],u)));for(var d=1,f=!0;d<n.length;d+=1){var p=n[d],m=z(p,0,1),h=z(p,-1);if((m===`"`||m===`'`||m==="`"||h===`"`||h===`'`||h==="`")&&m!==h)throw new c(`property names with quotes must have matching quotes`);if((p===`constructor`||!f)&&(s=!0),r+=`.`+p,a=`%`+r+`%`,I(M,a))o=M[a];else if(o!=null){if(!(p in o)){if(!t)throw new l(`base intrinsic for `+e+` exists, but the property is not available.`);return}if(b&&d+1>=n.length){var g=b(o,p);f=!!g,o=f&&`get`in g&&!(`originalValue`in g.get)?g.get:o[p]}else f=I(o,p),o=o[p];f&&!s&&(M[a]=o)}}return o}})),Ir=n(((e,t)=>{var n=Fr(),r=jr(),i=r([n(`%String.prototype.indexOf%`)]);t.exports=function(e,t){var a=n(e,!!t);return typeof a==`function`&&i(e,`.prototype.`)>-1?r([a]):a}})),Lr=n(((e,t)=>{var n=Function.prototype.toString,r=typeof Reflect==`object`&&Reflect!==null&&Reflect.apply,i,a;if(typeof r==`function`&&typeof Object.defineProperty==`function`)try{i=Object.defineProperty({},"length",{get:function(){throw a}}),a={},r(function(){throw 42},null,i)}catch(e){e!==a&&(r=null)}else r=null;var o=/^\s*class\b/,s=function(e){try{var t=n.call(e);return o.test(t)}catch{return!1}},c=function(e){try{return!s(e)&&(n.call(e),!0)}catch{return!1}},l=Object.prototype.toString,u=`[object Object]`,d=`[object Function]`,f=`[object GeneratorFunction]`,p=`[object HTMLAllCollection]`,m=`[object HTML document.all class]`,h=`[object HTMLCollection]`,g=typeof Symbol==`function`&&!!Symbol.toStringTag,_=!(0 in[,]),v=function(){return!1};if(typeof document==`object`){var y=document.all;l.call(y)===l.call(document.all)&&(v=function(e){if((_||!e)&&(e===void 0||typeof e==`object`))try{var t=l.call(e);return(t===p||t===m||t===h||t===u)&&e(``)==null}catch{}return!1})}t.exports=r?function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;try{r(e,null,i)}catch(e){if(e!==a)return!1}return!s(e)&&c(e)}:function(e){if(v(e))return!0;if(!e||typeof e!=`function`&&typeof e!=`object`)return!1;if(g)return c(e);if(s(e))return!1;var t=l.call(e);return t!==d&&t!==f&&!/^\[object HTML/.test(t)?!1:c(e)}})),Rr=n(((e,t)=>{var n=Lr(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=function(e,t,n){for(var r=0,a=e.length;r<a;r++)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))},o=function(e,t,n){for(var r=0,i=e.length;r<i;r++)n==null?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)},s=function(e,t,n){for(var r in e)i.call(e,r)&&(n==null?t(e[r],r,e):t.call(n,e[r],r,e))};function c(e){return r.call(e)===`[object Array]`}t.exports=function(e,t,r){if(!n(t))throw TypeError(`iterator must be a function`);var i;arguments.length>=3&&(i=r),c(e)?a(e,t,i):typeof e==`string`?o(e,t,i):s(e,t,i)}})),zr=n(((e,t)=>{t.exports=[`Float16Array`,`Float32Array`,`Float64Array`,`Int8Array`,`Int16Array`,`Int32Array`,`Uint8Array`,`Uint8ClampedArray`,`Uint16Array`,`Uint32Array`,`BigInt64Array`,`BigUint64Array`]})),Br=n(((e,t)=>{var n=zr(),r=typeof globalThis>`u`?window:globalThis;t.exports=function(){for(var e=[],t=0;t<n.length;t++)typeof r[n[t]]==`function`&&(e[e.length]=n[t]);return e}})),Vr=n(((e,t)=>{var n=xr(),r=lr(),i=rr(),a=br();t.exports=function(e,t,o){if(!e||typeof e!=`object`&&typeof e!=`function`)throw new i("`obj` must be an object or a function`");if(typeof t!=`string`&&typeof t!=`symbol`)throw new i("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!=`boolean`&&arguments[3]!==null)throw new i("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!=`boolean`&&arguments[4]!==null)throw new i("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!=`boolean`&&arguments[5]!==null)throw new i("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!=`boolean`)throw new i("`loose`, if provided, must be a boolean");var s=arguments.length>3?arguments[3]:null,c=arguments.length>4?arguments[4]:null,l=arguments.length>5?arguments[5]:null,u=arguments.length>6&&arguments[6],d=!!a&&a(e,t);if(n)n(e,t,{configurable:l===null&&d?d.configurable:!l,enumerable:s===null&&d?d.enumerable:!s,value:o,writable:c===null&&d?d.writable:!c});else if(u||!s&&!c&&!l)e[t]=o;else throw new r(`This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.`)}})),Hr=n(((e,t)=>{var n=xr(),r=function(){return!!n};r.hasArrayLengthDefineBug=function(){if(!n)return null;try{return n([],`length`,{value:1}).length!==1}catch{return!0}},t.exports=r})),Ur=n(((e,t)=>{var n=Fr(),r=Vr(),i=Hr()(),a=br(),o=rr(),s=n(`%Math.floor%`);t.exports=function(e,t){if(typeof e!=`function`)throw new o("`fn` is not a function");if(typeof t!=`number`||t<0||t>4294967295||s(t)!==t)throw new o("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],c=!0,l=!0;if(`length`in e&&a){var u=a(e,`length`);u&&!u.configurable&&(c=!1),u&&!u.writable&&(l=!1)}return(c||l||!n)&&(i?r(e,`length`,t,!0,!0):r(e,`length`,t)),e}})),Wr=n(((e,t)=>{var n=Er(),r=Or(),i=Ar();t.exports=function(){return i(n,r,arguments)}})),Gr=n(((e,t)=>{var n=Ur(),r=xr(),i=jr(),a=Wr();t.exports=function(e){var t=i(arguments),r=1+e.length-(arguments.length-1);return n(t,r>0?r:0,!0)},r?r(t.exports,`apply`,{value:a}):t.exports.apply=a})),Kr=n(((e,t)=>{var n=Sr();t.exports=function(){return n()&&!!Symbol.toStringTag}})),qr=n(((e,t)=>{var n=Rr(),r=Br(),i=Gr(),a=Ir(),o=br(),s=Nr(),c=a(`Object.prototype.toString`),l=Kr()(),u=typeof globalThis>`u`?window:globalThis,d=r(),f=a(`String.prototype.slice`),p=a(`Array.prototype.indexOf`,!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};l&&o&&s?n(d,function(e){var t=new u[e];if(Symbol.toStringTag in t&&s){var n=s(t),r=o(n,Symbol.toStringTag);if(!r&&n&&(r=o(s(n),Symbol.toStringTag)),r&&r.get){var a=i(r.get);m[`$`+e]=a}}}):n(d,function(e){var t=new u[e],n=t.slice||t.set;if(n){var r=i(n);m[`$`+e]=r}});function h(e){var t=!1;return n(m,function(n,r){if(!t)try{`$`+n(e)===r&&(t=f(r,1))}catch{}}),t}function g(e){var t=!1;return n(m,function(n,r){if(!t)try{n(e),t=f(r,1)}catch{}}),t}function _(e){return p(d,e)>-1}t.exports=function(e){if(!e||typeof e!=`object`)return!1;if(!l){var t=f(c(e),8,-1);return _(t)?t:t===`Object`&&g(e)}return o?h(e):null}})),Jr=n(((e,t)=>{var n=qr();t.exports=function(e){return!!n(e)}})),Yr=n(((e,t)=>{var n=rr(),r=Ir()(`TypedArray.prototype.buffer`,!0),i=Jr();t.exports=r||function(e){if(!i(e))throw new n(`Not a Typed Array`);return e.buffer}})),Xr=n(((e,t)=>{var n=tr().Buffer,r=nr(),i=Yr(),a=ArrayBuffer.isView||function(e){try{return i(e),!0}catch{return!1}},o=typeof Uint8Array<`u`,s=typeof ArrayBuffer<`u`&&typeof Uint8Array<`u`,c=s&&(n.prototype instanceof Uint8Array||n.TYPED_ARRAY_SUPPORT);t.exports=function(e,t){if(n.isBuffer(e))return e.constructor&&!(`isBuffer`in e)?n.from(e):e;if(typeof e==`string`)return n.from(e,t);if(s&&a(e)){if(e.byteLength===0)return n.alloc(0);if(c){var i=n.from(e.buffer,e.byteOffset,e.byteLength);if(i.byteLength===e.byteLength)return i}var l=e instanceof Uint8Array?e:new Uint8Array(e.buffer,e.byteOffset,e.byteLength),u=n.from(l);if(u.length===e.byteLength)return u}if(o&&e instanceof Uint8Array)return n.from(e);var d=r(e);
4if(d)for(var f=0;f<e.length;f+=1){var p=e[f];if(typeof p!=`number`||p<0||p>255||~~p!==p)throw RangeError(`Array items must be numbers in the range 0-255.`)}if(d||n.isBuffer(e)&&e.constructor&&typeof e.constructor.isBuffer==`function`&&e.constructor.isBuffer(e))return n.from(e);throw TypeError(`The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.`)}})),Zr=r(Zn()),Qr=r(Qn()),$r=r($n()),ei=r(Xr());function ti(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 ni=typeof Symbol==`function`&&Symbol.observable||`@@observable`,ri=()=>Math.random().toString(36).substring(7).split(``).join(`.`),ii={INIT:`@@redux/INIT${ri()}`,REPLACE:`@@redux/REPLACE${ri()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${ri()}`};function ai(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function oi(e,t,n){if(typeof e!=`function`)throw Error(ti(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ti(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ti(1));return n(oi)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(ti(3));return i}function d(e){if(typeof e!=`function`)throw Error(ti(4));if(c)throw Error(ti(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ti(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!ai(e))throw Error(ti(7));if(e.type===void 0)throw Error(ti(8));if(typeof e.type!=`string`)throw Error(ti(17));if(c)throw Error(ti(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(ti(10));r=e,f({type:ii.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ti(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[ni](){return this}}}return f({type:ii.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[ni]:m}}function si(e,t){return function(...n){return t(e.apply(this,n))}}function ci(e,t){if(typeof e==`function`)return si(e,t);if(typeof e!=`object`||!e)throw Error(ti(16));let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=si(i,t))}return n}function li(...e){return e.length===0?e=>e:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function ui(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ti(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=li(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}var di=t({Collection:()=>As,Iterable:()=>ml,List:()=>zc,Map:()=>Tc,OrderedMap:()=>Wc,OrderedSet:()=>al,PairSorting:()=>cl,Range:()=>Yc,Record:()=>ll,Repeat:()=>dl,Seq:()=>Xs,Set:()=>Qc,Stack:()=>Kc,fromJS:()=>ws,get:()=>Co,getIn:()=>os,has:()=>So,hasIn:()=>cs,hash:()=>Ki,is:()=>Da,isAssociative:()=>mi,isCollection:()=>hi,isImmutable:()=>Pi,isIndexed:()=>fi,isKeyed:()=>pi,isList:()=>Ao,isMap:()=>to,isOrdered:()=>Fi,isOrderedMap:()=>Ho,isOrderedSet:()=>gs,isPlainObject:()=>Ma,isRecord:()=>Ni,isSeq:()=>Ii,isSet:()=>ns,isStack:()=>Ko,isValueObject:()=>Ea,merge:()=>La,mergeDeep:()=>za,mergeDeepWith:()=>Ba,mergeWith:()=>Ra,remove:()=>wo,removeIn:()=>Oo,set:()=>To,setIn:()=>Ya,update:()=>Oa,updateIn:()=>Eo,version:()=>pl});function fi(e){return!!(e&&e[Ds])}function pi(e){return!!(e&&e[Os])}function mi(e){return pi(e)||fi(e)}function hi(e){return!!(e&&e[ks])}function gi(e,t,n,r){var i=e===Ps?t:e===Fs?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function _i(){return{value:void 0,done:!0}}function vi(e){return Array.isArray(e)?!0:!!xi(e)}function yi(e){return!!(e&&typeof e.next==`function`)}function bi(e){var t=xi(e);return t&&t.call(e)}function xi(e){var t=e&&(Ls&&e[Ls]||e[Rs]);if(typeof t==`function`)return t}function cee(e){var t=xi(e);return t&&t===e.entries}function lee(e){var t=xi(e);return t&&t===e.keys}function Si(){return{value:!1}}function Ci(e){e&&(e.value=!0)}function wi(){}function Ti(e){return e.size===void 0&&(e.size=e.__iterate(Di)),e.size}function Ei(e,t){if(typeof t!=`number`){var n=t>>>0;if(``+n!==t||n===4294967295)return NaN;t=n}return t<0?Ti(e)+t:t}function Di(){return!0}function Oi(e,t,n){return(e===0&&!Mi(e)||n!==void 0&&e<=-n)&&(t===void 0||n!==void 0&&t>=n)}function ki(e,t){return ji(e,t,0)}function Ai(e,t){return ji(e,t,t)}function ji(e,t,n){return e===void 0?n:Mi(e)?t===1/0?t:Math.max(0,t+e)|0:t===void 0||t===e?e:Math.min(t,e)|0}function Mi(e){return e<0||e===0&&1/e==-1/0}function Ni(e){return!!(e&&e[Ks])}function Pi(e){return hi(e)||Ni(e)}function Fi(e){return!!(e&&e[qs])}function Ii(e){return!!(e&&e[Js])}function Li(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))}
4function Ri(){return rc||=new ec([])}function zi(e){var t=Hi(e);if(t)return t.fromEntrySeq();if(typeof e==`object`)return new tc(e);throw TypeError(`Expected Array or collection object of [k, v] entries, or keyed object: `+e)}function Bi(e){var t=Hi(e);if(t)return t;throw TypeError(`Expected Array or collection object of values: `+e)}function Vi(e){var t=Hi(e);if(t)return cee(e)?t.fromEntrySeq():lee(e)?t.toSetSeq():t;if(typeof e==`object`)return new tc(e);throw TypeError(`Expected Array or collection object of values, or keyed object: `+e)}function Hi(e){return Li(e)?new ec(e):vi(e)?new nc(e):void 0}function Ui(){return this.__ensureOwner()}function Wi(){return this.__ownerID?this:this.__ensureOwner(new wi)}function Gi(e){return e>>>1&1073741824|e&3221225471}function Ki(e){if(e==null)return qi(e);if(typeof e.hashCode==`function`)return Gi(e.hashCode(e));var t=ta(e);if(t==null)return qi(t);switch(typeof t){case`boolean`:return t?1108378657:1108378656;case`number`:return Ji(t);case`string`:return t.length>mc?Yi(t):Xi(t);case`object`:case`function`:return $i(t);case`symbol`:return Qi(t);default:if(typeof t.toString==`function`)return Xi(t.toString());throw Error(`Value type `+typeof t+` cannot be hashed.`)}}function qi(e){return e===null?1108378658:1108378659}function Ji(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 Gi(t)}function Yi(e){var t=_c[e];return t===void 0&&(t=Xi(e),gc===hc&&(gc=0,_c={}),gc++,_c[e]=t),t}function Xi(e){for(var t=0,n=0;n<e.length;n++)t=31*t+e.charCodeAt(n)|0;return Gi(t)}function Zi(e){if(typeof e!=`string`)return Ki(e);for(var t=0,n=0;n<e.length;n++)t=oc*t+e.charCodeAt(n)|0;return t}function Qi(e){var t=dc[e];return t===void 0?(t=na(),dc[e]=t,t):t}function $i(e){var t;if(lc&&(t=uc.get(e),t!==void 0)||(t=e[pc],t!==void 0)||!cc&&(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[pc],t!==void 0||(t=ea(e),t!==void 0)))return t;if(t=na(),lc)uc.set(e,t);else if(sc!==void 0&&sc(e)===!1)throw Error(`Non-extensible objects are not allowed as keys.`);else if(cc)Object.defineProperty(e,pc,{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[pc]=t;else if(e.nodeType!==void 0)e[pc]=t;else throw Error(`Unable to set a non-enumerable property on object.`);return t}function ea(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}function ta(e){return e.valueOf!==ac&&typeof e.valueOf==`function`?e.valueOf(e):e}function na(){var e=++fc;return fc&1073741824&&(fc=0),e}function ra(e){var t=Ca(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=wa,t.__iterateUncached=function(t,n){var r=this;return e.__iterate(function(e,n){return t(n,e,r)!==!1},n)},t.__iteratorUncached=function(t,n){if(t===Is){var r=e.__iterator(t,n);return new Bs(function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===Fs?Ps:Fs,n)},t}function ia(e,t,n){var r=Ca(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,i){var a=e.get(r,Gs);return a===Gs?i:t.call(n,a,r,e)},r.__iterateUncached=function(r,i){var a=this;return e.__iterate(function(e,i,o){return r(t.call(n,e,i,o),i,a)!==!1},i)},r.__iteratorUncached=function(r,i){var a=e.__iterator(Is,i);return new Bs(function(){var i=a.next();if(i.done)return i;var o=i.value,s=o[0];return gi(r,s,t.call(n,o[1],s,e),i)})},r}function aa(e,t){var n=Ca(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=ra(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=wa,n.__iterate=function(n,r){var i=this,a=0;return r&&Ti(e),e.__iterate(function(e,o){return n(e,t?o:r?i.size-++a:a++,i)},!r)},n.__iterator=function(r,i){var a=0;i&&Ti(e);var o=e.__iterator(Is,!i);return new Bs(function(){var e=o.next();if(e.done)return e;var s=e.value;return gi(r,t?s[0]:i?n.size-++a:a++,s[1],e)})},n}function oa(e,t,n,r){var i=Ca(e);return r&&(i.has=function(r){var i=e.get(r,Gs);return i!==Gs&&!!t.call(n,i,r,e)},i.get=function(r,i){var a=e.get(r,Gs);return a!==Gs&&t.call(n,a,r,e)?a:i}),i.__iterateUncached=function(i,a){var o=this,s=0;return e.__iterate(function(e,a,c){if(t.call(n,e,a,c))return s++,i(e,r?a:s-1,o)},a),s},i.__iteratorUncached=function(i,a){var o=e.__iterator(Is,a),s=0;return new Bs(function(){for(;;){var a=o.next();if(a.done)return a;var c=a.value,l=c[0],u=c[1];if(t.call(n,u,l,e))return gi(i,r?l:s++,u,a)}})},i}function sa(e,t,n){var r=Tc().asMutable();return e.__iterate(function(i,a){r.update(t.call(n,i,a,e),0,function(e){return e+1})}),r.asImmutable()}function ca(e,t,n){var r=pi(e),i=(Fi(e)?Wc():Tc()).asMutable();e.__iterate(function(a,o){i.update(t.call(n,a,o,e),function(e){return e||=[],e.push(r?[o,a]:a),e})});var a=Sa(e);return i.map(function(t){return ba(e,a(t))}).asImmutable()}function uee(e,t,n){var r=pi(e),i=[[],[]];e.__iterate(function(a,o){i[+!!t.call(n,a,o,e)].push(r?[o,a]:a)});var a=Sa(e);return i.map(function(t){return ba(e,a(t))})}function la(e,t,n,r){var i=e.size;if(Oi(t,n,i))return e;if(i===void 0&&(t<0||n<0))return la(e.toSeq().cacheResult(),t,n,r);var a=ki(t,i),o=Ai(n,i)-a,s;o===o&&(s=o<0?0:o);var c=Ca(e);return c.size=s===0?s:e.size&&s||void 0,!r&&Ii(e)&&s>=0&&(c.get=function(t,n){return t=Ei(this,t),t>=0&&t<s?e.get(t+a,n):n}),c.__iterateUncached=function(t,n){var i=this;if(s===0)return 0;if(n)return this.cacheResult().__iterate(t,n);var o=0,c=!0,l=0;return e.__iterate(function(e,n){if(!(c&&=o++<a))return l++,t(e,r?n:l-1,i)!==!1&&l!==s}),l},c.__iteratorUncached=function(t,n){if(s!==0&&n)return this.cacheResult().__iterator(t,n);if(s===0)return new Bs(_i);var i=e.__iterator(t,n),o=0,c=0;return new Bs(function(){for(;o++<a;)i.next();if(++c>s)return _i();var e=i.next();return r||t===Fs||e.done?e:t===Ps?gi(t,c-1,void 0,e):gi(t,c-1,e.value[1],e)})},c}function ua(e,t,n){var r=Ca(e);return r.__iterateUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterate(r,i);var o=0;return e.__iterate(function(e,i,s){return t.call(n,e,i,s)&&++o&&r(e,i,a)}),o},r.__iteratorUncached=function(r,i){var a=this;if(i)return this.cacheResult().__iterator(r,i);var o=e.__iterator(Is,i),s=!0;return new Bs(function(){if(!s)return _i();var e=o.next();if(e.done)return e;var i=e.value,c=i[0],l=i[1];return t.call(n,l,c,a)?r===Is?e:gi(r,c,l,e):(s=!1,_i())})},r}function da(e,t,n,r){var i=Ca(e);return i.__iterateUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterate(i,a);var s=!0,c=0;return e.__iterate(function(e,a,l){if(!(s&&=t.call(n,e,a,l)))return c++,i(e,r?a:c-1,o)}),c},i.__iteratorUncached=function(i,a){var o=this;if(a)return this.cacheResult().__iterator(i,a);var s=e.__iterator(Is,a),c=!0,l=0;return new Bs(function(){var e,a,u;do{if(e=s.next(),e.done)return r||i===Fs?e:i===Ps?gi(i,l++,void 0,e):gi(i,l++,e.value[1],e);var d=e.value;a=d[0],u=d[1],c&&=t.call(n,u,a,o)}while(c);return i===Is?e:gi(i,a,u,e)})},i}function fa(e,t){var n=pi(e),r=[e].concat(t).map(function(e){return hi(e)?n&&(e=js(e)):e=n?zi(e):Bi(Array.isArray(e)?e:[e]),e}).filter(function(e){return e.size!==0});if(r.length===0)return e;if(r.length===1){var i=r[0];if(i===e||n&&pi(i)||fi(e)&&fi(i))return i}return new Sc(r)}
4function pa(e,t,n){var r=Ca(e);return r.__iterateUncached=function(i,a){if(a)return this.cacheResult().__iterate(i,a);var o=0,s=!1;function c(e,l){e.__iterate(function(e,a){return(!t||l<t)&&hi(e)?c(e,l+1):(o++,i(e,n?a:o-1,r)===!1&&(s=!0)),!s},a)}return c(e,0),o},r.__iteratorUncached=function(r,i){if(i)return this.cacheResult().__iterator(r,i);var a=e.__iterator(r,i),o=[],s=0;return new Bs(function(){for(;a;){var e=a.next();if(e.done!==!1){a=o.pop();continue}var c=e.value;if(r===Is&&(c=c[1]),(!t||o.length<t)&&hi(c))o.push(a),a=c.__iterator(r,i);else return n?e:gi(r,s++,c,e)}return _i()})},r}function ma(e,t,n){var r=Sa(e);return e.toSeq().map(function(i,a){return r(t.call(n,i,a,e))}).flatten(!0)}function ha(e,t){var n=Ca(e);return n.size=e.size&&e.size*2-1,n.__iterateUncached=function(n,r){var i=this,a=0;return e.__iterate(function(e){return(!a||n(t,a++,i)!==!1)&&n(e,a++,i)!==!1},r),a},n.__iteratorUncached=function(n,r){var i=e.__iterator(Fs,r),a=0,o;return new Bs(function(){return(!o||a%2)&&(o=i.next(),o.done)?o:a%2?gi(n,a++,t):gi(n,a++,o.value,o)})},n}function ga(e,t,n){t||=Ta;var r=pi(e),i=0,a=e.toSeq().map(function(t,r){return[r,t,i++,n?n(t,r,e):t]}).valueSeq().toArray();return a.sort(function(e,n){return t(e[3],n[3])||e[2]-n[2]}).forEach(r?function(e,t){a[t].length=2}:function(e,t){a[t]=e[1]}),r?Zs(a):fi(e)?Qs(a):$s(a)}function _a(e,t,n){if(t||=Ta,n){var r=e.toSeq().map(function(t,r){return[t,n(t,r,e)]}).reduce(function(e,n){return va(t,e[1],n[1])?n:e});return r&&r[0]}return e.reduce(function(e,n){return va(t,e,n)?n:e})}function va(e,t,n){var r=e(n,t);return r===0&&n!==t&&(n==null||n!==n)||r>0}function ya(e,t,n,r){var i=Ca(e),a=new ec(n).map(function(e){return e.size});return i.size=r?a.max():a.min(),i.__iterate=function(e,t){for(var n=this.__iterator(Fs,t),r,i=0;!(r=n.next()).done&&e(r.value,i++,this)!==!1;);return i},i.__iteratorUncached=function(e,i){var a=n.map(function(e){return e=As(e),bi(i?e.reverse():e)}),o=0,s=!1;return new Bs(function(){var n;return s||=(n=a.map(function(e){return e.next()}),r?n.every(function(e){return e.done}):n.some(function(e){return e.done})),s?_i():gi(e,o++,t.apply(null,n.map(function(e){return e.value})))})},i}function ba(e,t){return e===t?e:Ii(e)?t:e.constructor(t)}function xa(e){if(e!==Object(e))throw TypeError(`Expected [K, V] tuple: `+e)}function Sa(e){return pi(e)?js:fi(e)?Ms:Ns}function Ca(e){return Object.create((pi(e)?Zs:fi(e)?Qs:$s).prototype)}function wa(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):Xs.prototype.cacheResult.call(this)}function Ta(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 Ea(e){return!!(e&&typeof e.equals==`function`&&typeof e.hashCode==`function`)}function Da(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!!(Ea(e)&&Ea(t)&&e.equals(t))}function Oa(e,t,n,r){return Eo(e,[t],n,r)}function ka(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ja(this,e)}function Aa(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];if(typeof e!=`function`)throw TypeError(`Invalid merger function: `+e);return ja(this,t,e)}function ja(e,t,n){for(var r=[],i=0;i<t.length;i++){var a=js(t[i]);a.size!==0&&r.push(a)}return r.length===0?e:e.toSeq().size===0&&!e.__ownerID&&r.length===1?Ni(e)?e:e.constructor(r[0]):e.withMutations(function(e){for(var t=n?function(t,r){Oa(e,r,Gs,function(e){return e===Gs?t:n(e,t,r)})}:function(t,n){e.set(n,t)},i=0;i<r.length;i++)r[i].forEach(t)})}function Ma(e){if(!e||typeof e!=`object`||Cc.call(e)!==`[object Object]`)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var n=t,r=Object.getPrototypeOf(t);r!==null;)n=r,r=Object.getPrototypeOf(n);return n===t}function Na(e){return typeof e==`object`&&(Pi(e)||Array.isArray(e)||Ma(e))}function Pa(e){return typeof e==`string`&&(e===`__proto__`||e===`constructor`)}function Fa(e,t){t||=0;for(var n=Math.max(0,e.length-t),r=Array(n),i=0;i<n;i++)r[i]=e[i+t];return r}function Ia(e){if(Array.isArray(e))return Fa(e);var t={};for(var n in e)Pa(n)||Ys.call(e,n)&&(t[n]=e[n]);return t}function La(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return Ha(e,t)}function Ra(e,t){for(var n=[],r=arguments.length-2;r-->0;)n[r]=arguments[r+2];return Ha(t,n,e)}function za(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return Va(e,t)}function Ba(e,t){for(var n=[],r=arguments.length-2;r-->0;)n[r]=arguments[r+2];return Va(t,n,e)}function Va(e,t,n){return Ha(e,t,Ua(n))}
4function Ha(e,t,n){if(!Na(e))throw TypeError(`Cannot merge into non-data-structure value: `+e);if(Pi(e))return typeof n==`function`&&e.mergeWith?e.mergeWith.apply(e,[n].concat(t)):e.merge?e.merge.apply(e,t):e.concat.apply(e,t);for(var r=Array.isArray(e),i=e,a=r?Ms:js,o=r?function(t){i===e&&(i=Ia(i)),i.push(t)}:function(t,r){if(!Pa(r)){var a=Ys.call(i,r),o=a&&n?n(i[r],t,r):t;(!a||o!==i[r])&&(i===e&&(i=Ia(i)),i[r]=o)}},s=0;s<t.length;s++)a(t[s]).forEach(o);return i}function Ua(e){function t(n,r,i){return Na(n)&&Na(r)&&Wa(n,r)?Ha(n,[r],t):e?e(n,r,i):r}return t}function Wa(e,t){var n=Xs(e),r=Xs(t);return fi(n)===fi(r)&&pi(n)===pi(r)}function Ga(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return Va(this,e)}function Ka(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return Va(this,t,e)}function qa(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return Eo(this,e,so(),function(e){return Va(e,t)})}function Ja(e){for(var t=[],n=arguments.length-1;n-->0;)t[n]=arguments[n+1];return Eo(this,e,so(),function(e){return Ha(e,t)})}function Ya(e,t,n){return Eo(e,t,Gs,function(){return n})}function Xa(e,t){return Ya(this,e,t)}function Za(e,t,n){return arguments.length===1?e(this):Oa(this,e,t,n)}function Qa(e,t,n){return Eo(this,e,t,n)}function $a(){return this.__altered}function eo(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this}function to(e){return!!(e&&e[wc])}function no(e,t){if(!e)throw Error(t)}function ro(e){no(e!==1/0,`Cannot perform this action with an infinite size.`)}function io(e,t){return gi(e,t[0],t[1])}function ao(e,t){return{node:e,index:0,__prev:t}}function oo(e,t,n,r){var i=Object.create(Ec);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function so(){return Nc||=oo(0)}function co(e,t,n){var r,i;if(e._root){var a=Si(),o=Si();if(r=lo(e._root,e.__ownerID,0,void 0,t,n,a,o),!o.value)return e;i=e.size+(a.value?n===Gs?-1:1:0)}else{if(n===Gs)return e;i=1,r=new Dc(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?oo(i,r):so()}function lo(e,t,n,r,i,a,o,s){return e?e.update(t,n,r,i,a,o,s):a===Gs?e:(Ci(s),Ci(o),new jc(t,r,[i,a]))}function uo(e){return e.constructor===jc||e.constructor===Ac}function fo(e,t,n,r,i){if(e.keyHash===r)return new Ac(t,r,[e.entry,i]);var a=(n===0?e.keyHash:e.keyHash>>>n)&Ws,o=(n===0?r:r>>>n)&Ws,s,c=a===o?[fo(e,t,n+Hs,r,i)]:(s=new jc(t,r,i),a<o?[e,s]:[s,e]);return new Oc(t,1<<a|1<<o,c)}function po(e,t,n,r){e||=new wi;for(var i=new jc(e,Ki(n),[n,r]),a=0;a<t.length;a++){var o=t[a];i=i.update(e,0,void 0,o[0],o[1])}return i}function mo(e,t,n,r){for(var i=0,a=0,o=Array(n),s=0,c=1,l=t.length;s<l;s++,c<<=1){var u=t[s];u!==void 0&&s!==r&&(i|=c,o[a++]=u)}return new Oc(e,i,o)}function ho(e,t,n,r,i){for(var a=0,o=Array(Us),s=0;n!==0;s++,n>>>=1)o[s]=n&1?t[a++]:void 0;return o[r]=i,new kc(e,a+1,o)}function go(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 _o(e,t,n,r){var i=r?e:Fa(e);return i[t]=n,i}function vo(e,t,n,r){var i=e.length+1;if(r&&t+1===i)return e[t]=n,e;for(var a=Array(i),o=0,s=0;s<i;s++)s===t?(a[s]=n,o=-1):a[s]=e[s+o];return a}function yo(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=Array(r),a=0,o=0;o<r;o++)o===t&&(a=1),i[o]=e[o+a];return i}function bo(e){if(Li(e)&&typeof e!=`string`)return e;if(Fi(e))return e.toArray();throw TypeError(`Invalid keyPath: expected Ordered Collection or Array: `+e)}function xo(e){try{return typeof e==`string`?JSON.stringify(e):String(e)}catch{return JSON.stringify(e)}}function So(e,t){return Pi(e)?e.has(t):Na(e)&&Ys.call(e,t)}function Co(e,t,n){return Pi(e)?e.get(t,n):So(e,t)?typeof e.get==`function`?e.get(t):e[t]:n}function wo(e,t){if(!Na(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(Pi(e)){if(!e.remove)throw TypeError(`Cannot update immutable value without .remove() method: `+e);return e.remove(t)}if(!Ys.call(e,t))return e;var n=Ia(e);return Array.isArray(n)?n.splice(t,1):delete n[t],n}function To(e,t,n){if(Pa(t))return e;if(!Na(e))throw TypeError(`Cannot update non-data-structure value: `+e);if(Pi(e)){if(!e.set)throw TypeError(`Cannot update immutable value without .set() method: `+e);return e.set(t,n)}
4if(Ys.call(e,t)&&n===e[t])return e;var r=Ia(e);return r[t]=n,r}function Eo(e,t,n,r){r||(r=n,n=void 0);var i=Do(Pi(e),e,bo(t),0,n,r);return i===Gs?n:i}function Do(e,t,n,r,i,a){var o=t===Gs;if(r===n.length){var s=o?i:t,c=a(s);return c===s?t:c}if(!o&&!Na(t))throw TypeError(`Cannot update within non-data-structure value in path [`+Array.from(n).slice(0,r).map(xo)+`]: `+t);var l=n[r],u=o?Gs:Co(t,l,Gs),d=Do(u===Gs?e:Pi(u),u,n,r+1,i,a);return d===u?t:d===Gs?wo(t,l):To(o?e?so():{}:t,l,d)}function Oo(e,t){return Eo(e,t,function(){return Gs})}function ko(e){return Oo(this,e)}function Ao(e){return!!(e&&e[Rc])}function jo(e,t){var n=e._origin,r=e._capacity,i=Bo(r),a=e._tail;return o(e._root,e._level,0);function o(e,t,n){return t===0?s(e,n):c(e,t,n)}function s(e,o){var s=o===i?a&&a.array:e&&e.array,c=o>n?0:n-o,l=r-o;return l>Us&&(l=Us),function(){if(c===l)return Hc;var e=t?--l:c++;return s&&s[e]}}function c(e,i,a){var s,c=e&&e.array,l=a>n?0:n-a>>i,u=(r-a>>i)+1;return u>Us&&(u=Us),function(){for(;;){if(s){var e=s();if(e!==Hc)return e;s=null}if(l===u)return Hc;var n=t?--u:l++;s=o(c&&c[n],i-Hs,a+(n<<i))}}}}function Mo(e,t,n,r,i,a,o){var s=Object.create(Bc);return s.size=t-e,s._origin=e,s._capacity=t,s._level=n,s._root=r,s._tail=i,s.__ownerID=a,s.__hash=o,s.__altered=!1,s}function No(){return Mo(0,0,Hs)}function Po(e,t,n){if(t=Ei(e,t),t!==t)return e;if(t>=e.size||t<0)return e.withMutations(function(e){t<0?zo(e,t).set(0,n):zo(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,a=Si();return t>=Bo(e._capacity)?r=Fo(r,e.__ownerID,0,t,n,a):i=Fo(i,e.__ownerID,e._level,t,n,a),a.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):Mo(e._origin,e._capacity,e._level,i,r):e}function Fo(e,t,n,r,i,a){var o=r>>>n&Ws,s=e&&o<e.array.length;if(!s&&i===void 0)return e;var c;if(n>0){var l=e&&e.array[o],u=Fo(l,t,n-Hs,r,i,a);return u===l?e:(c=Io(e,t),c.array[o]=u,c)}return s&&e.array[o]===i?e:(a&&Ci(a),c=Io(e,t),i===void 0&&o===c.array.length-1?c.array.pop():c.array[o]=i,c)}function Io(e,t){return t&&e&&t===e.ownerID?e:new Vc(e?e.array.slice():[],t)}function Lo(e,t){if(t>=Bo(e._capacity))return e._tail;if(t<1<<e._level+Hs){for(var n=e._root,r=e._level;n&&r>0;)n=n.array[t>>>r&Ws],r-=Hs;return n}}function Ro(e,t,n){var r=e._origin+(t===void 0?0:t),i=n===void 0?e._capacity:n<0?e._capacity+n:e._origin+n;if(Number.isFinite(i)&&i>Uc||Number.isFinite(r)&&r<-Uc||Number.isFinite(i)&&Number.isFinite(r)&&i-r>Uc)throw RangeError(`Invalid List size: a List cannot hold more than `+Uc+` (2 ** 30) values.`)}function zo(e,t,n){Ro(e,t,n),t!==void 0&&(t|=0),n!==void 0&&(n|=0);var r=e.__ownerID||new wi,i=e._origin,a=e._capacity,o=i+t,s=n===void 0?a:n<0?a+n:i+n;if(o===i&&s===a)return e;if(o>=s)return e.clear();for(var c=e._level,l=e._root,u=0;o+u<0;)l=new Vc(l&&l.array.length?[void 0,l]:[],r),c+=Hs,u+=Vo(c);u&&(o+=u,i+=u,s+=u,a+=u);for(var d=Bo(a),f=Bo(s);f>=Vo(c+Hs);)l=new Vc(l&&l.array.length?[l]:[],r),c+=Hs;var p=e._tail,m=f<d?Lo(e,s-1):f>d?new Vc([],r):p;if(p&&f>d&&o<a&&p.array.length){l=Io(l,r);for(var h=l,g=c;g>Hs;g-=Hs){var _=d>>>g&Ws;h=h.array[_]=Io(h.array[_],r)}h.array[d>>>Hs&Ws]=p}if(s<a&&(m&&=m.removeAfter(r,0,s)),o>=f)o-=f,s-=f,c=Hs,l=void 0,m&&=m.removeBefore(r,0,o);else if(o>i||f<d){for(u=0;l;){var v=o>>>c&Ws;if(v!==f>>>c&Ws)break;v&&(u+=(1<<c)*v),c-=Hs,l=l.array[v]}l&&o>i&&(l=l.removeBefore(r,c,o-u)),l&&f<d&&(l=l.removeAfter(r,c,f-u)),u&&(o-=u,s-=u)}return e.__ownerID?(e.size=s-o,e._origin=o,e._capacity=s,e._level=c,e._root=l,e._tail=m,e.__hash=void 0,e.__altered=!0,e):Mo(o,s,c,l,m)}function Bo(e){return e<Us?0:e-1>>>Hs<<Hs}function Vo(e){return e<31?1<<e:2**e}function Ho(e){return to(e)&&Fi(e)}function Uo(e,t,n,r){var i=Object.create(Wc.prototype);return i.size=e?e.size:0,i._map=e,i._list=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Wo(){return fee||=Uo(so(),No())}function Go(e,t,n){var r=e._map,i=e._list,a=r.get(t),o=a!==void 0,s,c;if(n===Gs){if(!o)return e;i.size>=Us&&i.size>=r.size*2?(c=i.filter(function(e,t){return e!==void 0&&a!==t}),s=c.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(s.__ownerID=c.__ownerID=e.__ownerID)):(s=r.remove(t),c=a===i.size-1?i.pop():i.set(a,void 0))}else if(o){if(n===i.get(a)[1])return e;s=r,c=i.set(a,[t,n])}else s=r.set(t,i.size),c=i.set(i.size,[t,n]);return e.__ownerID?(e.size=s.size,e._map=s,e._list=c,e.__hash=void 0,e.__altered=!0,e):Uo(s,c)}function Ko(e){return!!(e&&e[Gc])}function qo(e,t,n,r){var i=Object.create(qc);return i.size=e,i._head=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Jo(){return Jc||=qo(0)}function Yo(e,t,n,r,i,a){return ro(e.size),e.__iterate(function(e,a,o){i?(i=!1,n=e):n=t.call(r,n,e,a,o)},a),n}function Xo(e,t){return t}function Zo(e,t){return[t,e]}function Qo(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return!e.apply(this,t)}}function $o(e){return function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return-e.apply(this,t)}}function es(e,t){return e<t?1:e>t?-1:0}function ts(e,t){if(e===t)return!0;
4if(!hi(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||pi(e)!==pi(t)||fi(e)!==fi(t)||Fi(e)!==Fi(t))return!1;if(e.size===0&&t.size===0)return!0;var n=!mi(e);if(Fi(e)){var r=e.entries();return t.every(function(e,t){var i=r.next().value;return i&&Da(i[1],e)&&(n||Da(i[0],t))})&&r.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 a=e;e=t,t=a}}var o=!0,s=t.__iterate(function(t,r){if(n?!e.has(t):i?!Da(t,e.get(r,Gs)):!Da(e.get(r,Gs),t))return o=!1,!1});return o&&e.size===s}function ns(e){return!!(e&&e[Zc])}function rs(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 is(e,t){var n=Object.create($c);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function as(){return el||=is(so())}function os(e,t,n){for(var r=bo(t),i=0;i!==r.length;)if(e=Co(e,r[i++],Gs),e===Gs)return n;return e}function ss(e,t){return os(this,e,t)}function cs(e,t){return os(e,t,Gs)!==Gs}function dee(e){return cs(this,e)}function ls(){ro(this.size);var e={};return this.__iterate(function(t,n){Pa(n)||(e[n]=t)}),e}function us(e){if(!e||typeof e!=`object`)return e;if(!hi(e)){if(!Na(e))return e;e=Xs(e)}if(pi(e)){var t={};return e.__iterate(function(e,n){Pa(n)||(t[n]=us(e))}),t}var n=[];return e.__iterate(function(e){n.push(us(e))}),n}function ds(e){if(e.size===1/0)return 0;var t=Fi(e),n=pi(e),r=+!!t;return e.__iterate(n?t?function(e,t){r=31*r+ps(Ki(e),Ki(t))|0}:function(e,t){r=r+ps(Ki(e),Ki(t))|0}:t?function(e){r=31*r+Ki(e)|0}:function(e){r=r+Ki(e)|0}),fs(e.size,r)}function fs(e,t){return t=ic(t,3432918353),t=ic(t<<15|t>>>-15,461845907),t=ic(t<<13|t>>>-13,5),t=(t+3864292196|0)^e,t=ic(t^t>>>16,2246822507),t=ic(t^t>>>13,3266489909),t=Gi(t^t>>>16),t}function ps(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}function ms(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}function hs(){return Fa(arguments)}function gs(e){return ns(e)&&Fi(e)}function _s(e,t){var n=Object.create(ol);return n.size=e?e.size:0,n._map=e,n.__ownerID=t,n}function vs(){return sl||=_s(Wo())}function ys(e){if(Ni(e))throw Error("Can not call `Record` with an immutable Record as default values. Use a plain javascript object instead.");if(Pi(e))throw Error("Can not call `Record` with an immutable Collection as default values. Use a plain javascript object instead.");if(typeof e!=`object`||!e)throw Error("Can not call `Record` with a non-object as default values. Use a plain javascript object instead.")}function bs(e,t,n){var r=Object.create(Object.getPrototypeOf(e));return r._values=t,r.__ownerID=n,r}function xs(e){return e.constructor.displayName||e.constructor.name||`Record`}function Ss(e){return zi(e._keys.map(function(t){return[t,e.get(t)]}))}function Cs(e,t){try{Object.defineProperty(e,t,{get:function(){return this.get(t)},set:function(e){no(this.__ownerID,`Cannot set on an immutable record.`),this.set(t,e)}})}catch{}}function ws(e,t){return Ts([],t||Es,e,``,t&&t.length>2?[]:void 0,{"":e})}function Ts(e,t,n,r,i,a){if(typeof n!=`string`&&!Pi(n)&&(Li(n)||vi(n)||Ma(n))){if(~e.indexOf(n))throw TypeError(`Cannot convert circular structure to Immutable`);e.push(n),i&&r!==``&&i.push(r);var o=t.call(a,r,Xs(n).map(function(r,a){return Ts(e,t,r,a,i,n)}),i&&i.slice());return e.pop(),i&&i.pop(),o}return n}function Es(e,t){return fi(t)?t.toList():pi(t)?t.toMap():t.toSet()}var Ds,Os,ks,As,js,Ms,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,fee,Gc,Kc,qc,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml,hl=i((()=>{Ds=`@@__IMMUTABLE_INDEXED__@@`,Os=`@@__IMMUTABLE_KEYED__@@`,ks=`@@__IMMUTABLE_ITERABLE__@@`,As=function(e){return hi(e)?e:Xs(e)},js=function(e){function t(e){return pi(e)?e:Zs(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(As),Ms=function(e){function t(e){return fi(e)?e:Qs(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(As),Ns=function(e){function t(e){return hi(e)&&!mi(e)?e:$s(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t}(As),As.Keyed=js,As.Indexed=Ms,As.Set=Ns,Ps=0,Fs=1,Is=2,Ls=typeof Symbol==`function`&&Symbol.iterator,Rs=`@@iterator`,zs=Ls||Rs,Bs=function(e){this.next=e},Bs.prototype.toString=function(){return`[Iterator]`},Bs.KEYS=Ps,Bs.VALUES=Fs,Bs.ENTRIES=Is,Bs.prototype.inspect=Bs.prototype.toSource=function(){return this.toString()},Bs.prototype[zs]=function(){return this},Vs=`delete`,Hs=5,Us=1<<Hs,Ws=Us-1,Gs={},Ks=`@@__IMMUTABLE_RECORD__@@`,qs=`@@__IMMUTABLE_ORDERED__@@`,Js=`@@__IMMUTABLE_SEQ__@@`,Ys=Object.prototype.hasOwnProperty,Xs=function(e){function t(e){return e==null?Ri():Pi(e)?e.toSeq():Vi(e)}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(e,t){var n=this._cache;if(n){for(var r=n.length,i=0;i!==r;){var a=n[t?r-++i:i++];if(e(a[1],a[0],this)===!1)break}return i}return this.__iterateUncached(e,t)},t.prototype.__iterator=function(e,t){var n=this._cache;if(n){var r=n.length,i=0;return new Bs(function(){if(i===r)return _i();var a=n[t?r-++i:i++];return gi(e,a[0],a[1])})}return this.__iteratorUncached(e,t)},t}(As),Zs=function(e){function t(e){return e==null?Ri().toKeyedSeq():hi(e)?pi(e)?e.toSeq():e.fromEntrySeq():Ni(e)?e.toSeq():zi(e)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.toKeyedSeq=function(){return this},t}(Xs),Qs=function(e){function t(e){return e==null?Ri():hi(e)?pi(e)?e.entrySeq():e.toIndexedSeq():Ni(e)?e.toSeq().entrySeq():Bi(e)}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}
4(Xs),$s=function(e){function t(e){return(hi(e)&&!mi(e)?e:Qs(e)).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}(Xs),Xs.isSeq=Ii,Xs.Keyed=Zs,Xs.Set=$s,Xs.Indexed=Qs,Xs.prototype[Js]=!0,ec=function(e){function t(e){this._array=e,this.size=e.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this.has(e)?this._array[Ei(this,e)]:t},t.prototype.__iterate=function(e,t){for(var n=this._array,r=n.length,i=0;i!==r;){var a=t?r-++i:i++;if(e(n[a],a,this)===!1)break}return i},t.prototype.__iterator=function(e,t){var n=this._array,r=n.length,i=0;return new Bs(function(){if(i===r)return _i();var a=t?r-++i:i++;return gi(e,a,n[a])})},t}(Qs),tc=function(e){function t(e){var t=Object.keys(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[]);this._object=e,this._keys=t,this.size=t.length}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return t!==void 0&&!this.has(e)?t:this._object[e]},t.prototype.has=function(e){return Ys.call(this._object,e)},t.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,i=r.length,a=0;a!==i;){var o=r[t?i-++a:a++];if(e(n[o],o,this)===!1)break}return a},t.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,i=r.length,a=0;return new Bs(function(){if(a===i)return _i();var o=r[t?i-++a:a++];return gi(e,o,n[o])})},t}(Zs),tc.prototype[qs]=!0,nc=function(e){function t(e){this._collection=e,this.size=e.length||e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._collection,r=bi(n),i=0;if(yi(r))for(var a;!(a=r.next()).done&&e(a.value,i++,this)!==!1;);return i},t.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=this._collection,r=bi(n);if(!yi(r))return new Bs(_i);var i=0;return new Bs(function(){var t=r.next();return t.done?t:gi(e,i++,t.value)})},t}(Qs),ic=typeof Math.imul==`function`?Math.imul:function(e,t){e|=0,t|=0;var n=e&65535,r=t&65535;return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0},ac=Object.prototype.valueOf,oc=(Math.random()*1048576|1)%1048576||40503,sc=Object.isExtensible,cc=(function(){try{return Object.defineProperty({},"@",{}),!0}catch{return!1}})(),lc=typeof WeakMap==`function`,lc&&(uc=new WeakMap),dc=Object.create(null),fc=0,pc=`__immutablehash__`,typeof Symbol==`function`&&(pc=Symbol(pc)),mc=16,hc=255,gc=0,_c={},vc=function(e){function t(e,t){this._iter=e,this._useKeys=t,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.get=function(e,t){return this._iter.get(e,t)},t.prototype.has=function(e){return this._iter.has(e)},t.prototype.valueSeq=function(){return this._iter.valueSeq()},t.prototype.reverse=function(){var e=this,t=aa(this,!0);return this._useKeys||(t.valueSeq=function(){return e._iter.toSeq().reverse()}),t},t.prototype.map=function(e,t){var n=this,r=ia(this,e,t);return this._useKeys||(r.valueSeq=function(){return n._iter.toSeq().map(e,t)}),r},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t,r){return e(t,r,n)},t)},t.prototype.__iterator=function(e,t){return this._iter.__iterator(e,t)},t}(Zs),vc.prototype[qs]=!0,yc=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.includes=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this,r=0;return t&&Ti(this),this._iter.__iterate(function(i){return e(i,t?n.size-++r:r++,n)},t)},t.prototype.__iterator=function(e,t){var n=this,r=this._iter.__iterator(Fs,t),i=0;return t&&Ti(this),new Bs(function(){var a=r.next();return a.done?a:gi(e,t?n.size-++i:i++,a.value,a)})},t}(Qs),bc=function(e){function t(e){this._iter=e,this.size=e.size}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.has=function(e){return this._iter.includes(e)},t.prototype.__iterate=function(e,t){var n=this;return this._iter.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Fs,t);return new Bs(function(){var t=n.next();return t.done?t:gi(e,t.value,t.value,t)})},t}($s),xc=function(e){function t(e){this._iter=e,this.size=e.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(e,t){var n=this;return this._iter.__iterate(function(t){if(t){xa(t);var r=hi(t);return e(r?t.get(1):t[1],r?t.get(0):t[0],n)}},t)},t.prototype.__iterator=function(e,t){var n=this._iter.__iterator(Fs,t);return new Bs(function(){for(;;){var t=n.next();if(t.done)return t;var r=t.value;if(r){xa(r);var i=hi(r);return gi(e,i?r.get(0):r[0],i?r.get(1):r[1],t)}}})},t}(Zs),yc.prototype.cacheResult=vc.prototype.cacheResult=bc.prototype.cacheResult=xc.prototype.cacheResult=wa,Sc=function(e){function t(e){this._wrappedIterables=e.flatMap(function(e){return e._wrappedIterables?e._wrappedIterables:[e]}),this.size=this._wrappedIterables.reduce(function(e,t){if(e!==void 0){var n=t.size;if(n!==void 0)return e+n}},0),this[Os]=this._wrappedIterables[0][Os],this[Ds]=this._wrappedIterables[0][Ds],this[qs]=this._wrappedIterables[0][qs]}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.__iterateUncached=function(e,t){if(this._wrappedIterables.length!==0){if(t)return this.cacheResult().__iterate(e,t);for(var n=0,r=pi(this),i=r?Is:Fs,a=this._wrappedIterables[n].__iterator(i,t),o=!0,s=0;o;){for(var c=a.next();c.done;){if(n++,n===this._wrappedIterables.length)return s;a=this._wrappedIterables[n].__iterator(i,t),c=a.next()}o=(r?e(c.value[1],c.value[0],this):e(c.value,s,this))!==!1,s++}
4return s}},t.prototype.__iteratorUncached=function(e,t){var n=this;if(this._wrappedIterables.length===0)return new Bs(_i);if(t)return this.cacheResult().__iterator(e,t);var r=0,i=this._wrappedIterables[r].__iterator(e,t);return new Bs(function(){for(var a=i.next();a.done;){if(r++,r===n._wrappedIterables.length)return a;i=n._wrappedIterables[r].__iterator(e,t),a=i.next()}return a})},t}(Xs),Cc=Object.prototype.toString,wc=`@@__IMMUTABLE_MAP__@@`,Tc=function(e){function t(t){return t==null?so():to(t)&&!Fi(t)?t:so().withMutations(function(n){var r=e(t);ro(r.size),r.forEach(function(e,t){return n.set(t,e)})})}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(e,t){return this._root?this._root.get(0,void 0,e,t):t},t.prototype.set=function(e,t){return co(this,e,t)},t.prototype.remove=function(e){return co(this,e,Gs)},t.prototype.deleteAll=function(e){var t=As(e);return t.size===0?this:this.withMutations(function(e){t.forEach(function(t){return e.remove(t)})})},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):so()},t.prototype.sort=function(e){return Wc(ga(this,e))},t.prototype.sortBy=function(e,t){return Wc(ga(this,t,e))},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){r.forEach(function(i,a){r.set(a,e.call(t,i,a,n))})})},t.prototype.__iterator=function(e,t){return new Mc(this,e,t)},t.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate(function(t){return r++,e(t[1],t[0],n)},t),r},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?oo(this.size,this._root,e,this.__hash):this.size===0?so():(this.__ownerID=e,this.__altered=!1,this)},t}(js),Tc.isMap=to,Ec=Tc.prototype,Ec[wc]=!0,Ec[Vs]=Ec.remove,Ec.removeAll=Ec.deleteAll,Ec.setIn=Xa,Ec.removeIn=Ec.deleteIn=ko,Ec.update=Za,Ec.updateIn=Qa,Ec.merge=Ec.concat=ka,Ec.mergeWith=Aa,Ec.mergeDeep=Ga,Ec.mergeDeepWith=Ka,Ec.mergeIn=Ja,Ec.mergeDeepIn=qa,Ec.withMutations=eo,Ec.wasAltered=$a,Ec.asImmutable=Ui,Ec[`@@transducer/init`]=Ec.asMutable=Wi,Ec[`@@transducer/step`]=function(e,t){return e.set(t[0],t[1])},Ec[`@@transducer/result`]=function(e){return e.asImmutable()},Dc=function(e,t){this.ownerID=e,this.entries=t},Dc.prototype.get=function(e,t,n,r){for(var i=this.entries,a=0,o=i.length;a<o;a++)if(Da(n,i[a][0]))return i[a][1];return r},Dc.prototype.update=function(e,t,n,r,i,a,o){for(var s=i===Gs,c=this.entries,l=0,u=c.length;l<u&&!Da(r,c[l][0]);l++);var d=l<u;if(d?c[l][1]===i:s)return this;if(Ci(o),(s||!d)&&Ci(a),!(s&&c.length===1)){if(!d&&!s&&c.length>=Pc)return po(e,c,r,i);var f=e&&e===this.ownerID,p=f?c:Fa(c);return d?s?l===u-1?p.pop():p[l]=p.pop():p[l]=[r,i]:p.push([r,i]),f?(this.entries=p,this):new Dc(e,p)}},Oc=function(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n},Oc.prototype.get=function(e,t,n,r){t===void 0&&(t=Ki(n));var i=1<<((e===0?t:t>>>e)&Ws),a=this.bitmap;return(a&i)===0?r:this.nodes[go(a&i-1)].get(e+Hs,t,n,r)},Oc.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Ki(r));var s=(t===0?n:n>>>t)&Ws,c=1<<s,l=this.bitmap,u=(l&c)!==0;if(!u&&i===Gs)return this;var d=go(l&c-1),f=this.nodes,p=u?f[d]:void 0,m=lo(p,e,t+Hs,n,r,i,a,o);if(m===p)return this;if(!u&&m&&f.length>=Fc)return ho(e,f,l,s,m);if(u&&!m&&f.length===2&&uo(f[d^1]))return f[d^1];if(u&&m&&f.length===1&&uo(m))return m;var h=e&&e===this.ownerID,g=u?m?l:l^c:l|c,_=u?m?_o(f,d,m,h):yo(f,d,h):vo(f,d,m,h);return h?(this.bitmap=g,this.nodes=_,this):new Oc(e,g,_)},kc=function(e,t,n){this.ownerID=e,this.count=t,this.nodes=n},kc.prototype.get=function(e,t,n,r){t===void 0&&(t=Ki(n));var i=(e===0?t:t>>>e)&Ws,a=this.nodes[i];return a?a.get(e+Hs,t,n,r):r},kc.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Ki(r));var s=(t===0?n:n>>>t)&Ws,c=i===Gs,l=this.nodes,u=l[s];if(c&&!u)return this;var d=lo(u,e,t+Hs,n,r,i,a,o);if(d===u)return this;var f=this.count;if(!u)f++;else if(!d&&(f--,f<Ic))return mo(e,l,f,s);var p=e&&e===this.ownerID,m=_o(l,s,d,p);return p?(this.count=f,this.nodes=m,this):new kc(e,f,m)},Ac=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n,this._index=void 0},Ac.prototype._positionOf=function(e,t){var n=this.entries,r=this._index;if(r===void 0&&t&&n.length>=Lc&&(r=this._buildIndex()),r!==void 0){var i=r[Zi(e)];if(i!==void 0)for(var a=0;a<i.length;a++){var o=i[a];if(Da(e,n[o][0]))return o}return-1}for(var s=0,c=n.length;s<c;s++)if(Da(e,n[s][0]))return s;return-1},Ac.prototype._buildIndex=function(){for(var e=Object.create(null),t=this.entries,n=0,r=t.length;n<r;n++){var i=Zi(t[n][0]),a=e[i];a===void 0?e[i]=[n]:a.push(n)}return this._index=e,e},Ac.prototype.get=function(e,t,n,r){var i=this._positionOf(n,!0);return i===-1?r:this.entries[i][1]},Ac.prototype.update=function(e,t,n,r,i,a,o){n===void 0&&(n=Ki(r));var s=i===Gs;if(n!==this.keyHash)return s?this:(Ci(o),Ci(a),fo(this,e,t,n,[r,i]));var c=this.entries,l=c.length,u=e&&e===this.ownerID,d=this._positionOf(r,u),f=d===-1?l:d,p=d!==-1;if(p?c[f][1]===i:s)return this;if(Ci(o),(s||!p)&&Ci(a),s&&l===2)return new jc(e,this.keyHash,c[f^1]);var m=u?c:Fa(c);if(p)s?(f===l-1?m.pop():m[f]=m.pop(),u&&(this._index=void 0)):m[f]=[r,i];else if(m.push([r,i]),u&&this._index!==void 0){var h=Zi(r),g=this._index[h];g===void 0?this._index[h]=[l]:g.push(l)}return u?(this.entries=m,this):new Ac(e,this.keyHash,m)},jc=function(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n},jc.prototype.get=function(e,t,n,r){return Da(n,this.entry[0])?this.entry[1]:r},jc.prototype.update=function(e,t,n,r,i,a,o){var s=i===Gs,c=Da(r,this.entry[0]);if(c?i===this.entry[1]:s)return this;if(Ci(o),s){Ci(a);return}return c?e&&e===this.ownerID?(this.entry[1]=i,this):new jc(e,this.keyHash,[r,i]):(Ci(a),fo(this,e,t,Ki(r),[r,i]))},Dc.prototype.iterate=Ac.prototype.iterate=function(e,t){for(var n=this.entries,r=0,i=n.length-1;r<=i;r++)if(e(n[t?i-r:r])===!1)return!1},Oc.prototype.iterate=kc.prototype.iterate=function(e,t){for(var n=this.nodes,r=0,i=n.length-1;r<=i;r++){var a=n[t?i-r:r];if(a&&a.iterate(e,t)===!1)return!1}},jc.prototype.iterate=function(e,t){return e(this.entry)},Mc=function(e){function t(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&ao(e._root)}return e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t,t.prototype.next=function(){for(var e=this._type,t=this._stack;t;){var n=t.node,r=t.index++,i=void 0;if(n.entry){if(r===0)return io(e,n.entry)}else if(n.entries){if(i=n.entries.length-1,r<=i)return io(e,n.entries[this._reverse?i-r:r])}else if(i=n.nodes.length-1,r<=i){var a=n.nodes[this._reverse?i-r:r];if(a){if(a.entry)return io(e,a.entry);t=this._stack=ao(a,t)}continue}t=this._stack=this._stack.__prev}return _i()},t}
4(Bs),Pc=Us/4,Fc=Us/2,Ic=Us/4,Lc=16,Rc=`@@__IMMUTABLE_LIST__@@`,zc=function(e){function t(t){var n=No();if(t==null)return n;if(Ao(t))return t;var r=e(t),i=r.size;return i===0?n:(ro(i),i>0&&i<Us?Mo(0,i,Hs,void 0,new Vc(r.toArray())):n.withMutations(function(e){e.setSize(i),r.forEach(function(t,n){return e.set(n,t)})}))}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(e,t){if(e=Ei(this,e),e>=0&&e<this.size){e+=this._origin;var n=Lo(this,e);return n&&n.array[e&Ws]}return t},t.prototype.set=function(e,t){return Po(this,e,t)},t.prototype.remove=function(e){return this.has(e)?e===0?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},t.prototype.insert=function(e,t){return this.splice(e,0,t)},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=Hs,this._root=this._tail=this.__hash=void 0,this.__altered=!0,this):No()},t.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(n){zo(n,0,t+e.length);for(var r=0;r<e.length;r++)n.set(t+r,e[r])})},t.prototype.pop=function(){return zo(this,0,-1)},t.prototype.unshift=function(){var e=arguments;return this.withMutations(function(t){zo(t,-e.length);for(var n=0;n<e.length;n++)t.set(n,e[n])})},t.prototype.shift=function(){return zo(this,1)},t.prototype.shuffle=function(e){return e===void 0&&(e=Math.random),this.withMutations(function(t){for(var n=t.size,r,i;n;)r=Math.floor(e()*n--),i=t.get(r),t.set(r,t.get(n)),t.set(n,i)})},t.prototype.concat=function(){for(var t=arguments,n=[],r=0;r<arguments.length;r++){var i=t[r],a=e(typeof i!=`string`&&vi(i)?i:[i]);a.size!==0&&n.push(a)}return n.length===0?this:this.size===0&&!this.__ownerID&&n.length===1?this.constructor(n[0]):this.withMutations(function(e){n.forEach(function(t){return t.forEach(function(t){return e.push(t)})})})},t.prototype.setSize=function(e){return zo(this,0,e)},t.prototype.map=function(e,t){var n=this;return this.withMutations(function(r){for(var i=0;i<n.size;i++)r.set(i,e.call(t,r.get(i),i,n))})},t.prototype.slice=function(e,t){var n=this.size;return Oi(e,t,n)?this:zo(this,ki(e,n),Ai(t,n))},t.prototype.__iterator=function(e,t){var n=t?this.size:0,r=jo(this,t);return new Bs(function(){var i=r();return i===Hc?_i():gi(e,t?--n:n++,i)})},t.prototype.__iterate=function(e,t){for(var n=t?this.size:0,r=jo(this,t),i;(i=r())!==Hc&&e(i,t?--n:n++,this)!==!1;);return n},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Mo(this._origin,this._capacity,this._level,this._root,this._tail,e,this.__hash):this.size===0?No():(this.__ownerID=e,this.__altered=!1,this)},t}(Ms),zc.isList=Ao,Bc=zc.prototype,Bc[Rc]=!0,Bc[Vs]=Bc.remove,Bc.merge=Bc.concat,Bc.setIn=Xa,Bc.deleteIn=Bc.removeIn=ko,Bc.update=Za,Bc.updateIn=Qa,Bc.mergeIn=Ja,Bc.mergeDeepIn=qa,Bc.withMutations=eo,Bc.wasAltered=$a,Bc.asImmutable=Ui,Bc[`@@transducer/init`]=Bc.asMutable=Wi,Bc[`@@transducer/step`]=function(e,t){return e.push(t)},Bc[`@@transducer/result`]=function(e){return e.asImmutable()},Vc=function(e,t){this.array=e,this.ownerID=t},Vc.prototype.removeBefore=function(e,t,n){if(!(n&(1<<t+Hs)-1)||this.array.length===0)return this;var r=n>>>t&Ws;if(r>=this.array.length)return new Vc([],e);var i=r===0,a;if(t>0){var o=this.array[r];if(a=o&&o.removeBefore(e,t-Hs,n),a===o&&i)return this}if(i&&!a)return this;var s=Io(this,e);if(!i)for(var c=0;c<r;c++)s.array[c]=void 0;return a&&(s.array[r]=a),s},Vc.prototype.removeAfter=function(e,t,n){if(n===(t?1<<t+Hs:Us)||this.array.length===0)return this;var r=n-1>>>t&Ws;if(r>=this.array.length)return this;var i;if(t>0){var a=this.array[r];if(i=a&&a.removeAfter(e,t-Hs,n),i===a&&r===this.array.length-1)return this}var o=Io(this,e);return o.array.splice(r+1),i&&(o.array[r]=i),o},Hc={},Uc=2**30,Wc=function(e){function t(e){return e==null?Wo():Ho(e)?e:Wo().withMutations(function(t){var n=js(e);ro(n.size),n.forEach(function(e,n){return t.set(n,e)})})}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(e,t){var n=this._map.get(e);return n===void 0?t:this._list.get(n)[1]},t.prototype.clear=function(){return this.size===0?this:this.__ownerID?(this.size=0,this._map.clear(),this._list.clear(),this.__altered=!0,this):Wo()},t.prototype.set=function(e,t){return Go(this,e,t)},t.prototype.remove=function(e){return Go(this,e,Gs)},t.prototype.__iterate=function(e,t){var n=this;return this._list.__iterate(function(t){return t&&e(t[1],t[0],n)},t)},t.prototype.__iterator=function(e,t){return this._list.fromEntrySeq().__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e),n=this._list.__ensureOwner(e);return e?Uo(t,n,e,this.__hash):this.size===0?Wo():(this.__ownerID=e,this.__altered=!1,this._map=t,this._list=n,this)},t}(Tc),Wc.isOrderedMap=Ho,Wc.prototype[qs]=!0,Wc.prototype[Vs]=Wc.prototype.remove,Gc=`@@__IMMUTABLE_STACK__@@`,Kc=function(e){function t(e){return e==null?Jo():Ko(e)?e:Jo().pushAll(e)}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(e,t){var n=this._head;for(e=Ei(this,e);n&&e--;)n=n.next;return n?n.value:t},t.prototype.peek=function(){return this._head&&this._head.value},t.prototype.push=function(){var e=arguments;if(arguments.length===0)return this;for(var t=this.size+arguments.length,n=this._head,r=arguments.length-1;r>=0;r--)n={value:e[r],next:n};return this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):qo(t,n)},t.prototype.pushAll=function(t){if(t=e(t),t.size===0)return this;if(this.size===0&&Ko(t))return t;ro(t.size);var n=this.size,r=this._head;return t.__iterate(function(e){n++,r={value:e,next:r}},!0),this.__ownerID?(this.size=n,this._head=r,this.__hash=void 0,this.__altered=!0,this):qo(n,r)},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):Jo()},t.prototype.slice=function(t,n){if(Oi(t,n,this.size))return this;var r=ki(t,this.size);if(Ai(n,this.size)!==this.size)return e.prototype.slice.call(this,t,n);for(var i=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=i,this._head=a,this.__hash=void 0,this.__altered=!0,this):qo(i,a)},t.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?qo(this.size,this._head,e,this.__hash):this.size===0?Jo():(this.__ownerID=e,this.__altered=!1,this)},t.prototype.__iterate=function(e,t){var n=this;if(t)return new ec(this.toArray()).__iterate(function(t,r){return e(t,r,n)},t);for(var r=0,i=this._head;i&&e(i.value,r++,this)!==!1;)i=i.next;return r},t.prototype.__iterator=function(e,t){if(t)return new ec(this.toArray()).__iterator(e,t);var n=0,r=this._head;return new Bs(function(){if(r){var t=r.value;return r=r.next,gi(e,n++,t)}return _i()})},t}(Ms),Kc.isStack=Ko,qc=Kc.prototype,qc[Gc]=!0,qc.shift=qc.pop,qc.unshift=qc.push,qc.unshiftAll=qc.pushAll,qc.withMutations=eo,qc.wasAltered=$a,qc.asImmutable=Ui,qc[`@@transducer/init`]=qc.asMutable=Wi,qc[`@@transducer/step`]=function(e,t){return e.unshift(t)},qc[`@@transducer/result`]=function(e){return e.asImmutable()},Yc=function(e){function t(e,n,r){if(r===void 0&&(r=1),!(this instanceof t))return new t(e,n,r);if(no(r!==0,`Cannot step a Range by 0`),no(e!==void 0,`You must define a start value when using Range`),no(n!==void 0,`You must define an end value when using Range`),r=Math.abs(r),n<e&&(r=-r),this._start=e,this._end=n,this._step=r,this.size=Math.max(0,Math.ceil((n-e)/r-1)+1),this.size===0){if(Xc)return Xc;Xc=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(e,t){return this.has(e)?this._start+Ei(this,e)*this._step:t},t.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t<this.size&&t===Math.floor(t)},t.prototype.slice=function(e,n){return Oi(e,n,this.size)?this:(e=ki(e,this.size),n=Ai(n,this.size),n<=e?new t(0,0):new t(this.get(e,this._end),this.get(n,this._end),this._step))},t.prototype.indexOf=function(e){var t=e-this._start;if(t%this._step===0){var n=t/this._step;if(n>=0&&n<this.size)return n}return-1},t.prototype.lastIndexOf=function(e){return this.indexOf(e)},t.prototype.__iterate=function(e,t){for(var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;a!==n&&e(i,t?n-++a:a++,this)!==!1;)i+=t?-r:r;return a},t.prototype.__iterator=function(e,t){var n=this.size,r=this._step,i=t?this._start+(n-1)*r:this._start,a=0;return new Bs(function(){if(a===n)return _i();var o=i;return i+=t?-r:r,gi(e,t?n-++a:a++,o)})},t.prototype.equals=function(e){return e instanceof t?this._start===e._start&&this._end===e._end&&this._step===e._step:ts(this,e)},t}(Qs),Zc=`@@__IMMUTABLE_SET__@@`,Qc=function(e){function t(t){return t==null?as():ns(t)&&!Fi(t)?t:as().withMutations(function(n){var r=e(t);ro(r.size),r.forEach(function(e){return n.add(e)})})}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(e){return this(js(e).keySeq())},t.intersect=function(e){return e=As(e).toArray(),e.length?$c.intersect.apply(t(e.pop()),e):as()},t.union=function(e){return e=As(e).toArray(),e.length?$c.union.apply(t(e.pop()),e):as()},t.prototype.toString=function(){return this.__toString(`Set {`,`}`)},t.prototype.has=function(e){return this._map.has(e)},t.prototype.add=function(e){return rs(this,this._map.set(e,e))},t.prototype.remove=function(e){return rs(this,this._map.remove(e))},t.prototype.clear=function(){return rs(this,this._map.clear())},t.prototype.map=function(e,t){var n=this,r=!1,i=rs(this,this._map.mapEntries(function(i){var a=i[1],o=e.call(t,a,a,n);return o!==a&&(r=!0),[o,o]},t));return r?i:this},t.prototype.union=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];return t=t.filter(function(e){return e.size!==0}),t.length===0?this:this.size===0&&!this.__ownerID&&t.length===1?this.constructor(t[0]):this.withMutations(function(n){for(var r=0;r<t.length;
4r++)typeof t[r]==`string`?n.add(t[r]):e(t[r]).forEach(function(e){return n.add(e)})})},t.prototype.intersect=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.every(function(t){return t.includes(e)})||r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.subtract=function(){for(var t=[],n=arguments.length;n--;)t[n]=arguments[n];if(t.length===0)return this;t=t.map(function(t){return e(t)});var r=[];return this.forEach(function(e){t.some(function(t){return t.includes(e)})&&r.push(e)}),this.withMutations(function(e){r.forEach(function(t){e.remove(t)})})},t.prototype.sort=function(e){return al(ga(this,e))},t.prototype.sortBy=function(e,t){return al(ga(this,t,e))},t.prototype.wasAltered=function(){return this._map.wasAltered()},t.prototype.__iterate=function(e,t){var n=this;return this._map.__iterate(function(t){return e(t,t,n)},t)},t.prototype.__iterator=function(e,t){return this._map.__iterator(e,t)},t.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._map.__ensureOwner(e);return e?this.__make(t,e):this.size===0?this.__empty():(this.__ownerID=e,this._map=t,this)},t}(Ns),Qc.isSet=ns,$c=Qc.prototype,$c[Zc]=!0,$c[Vs]=$c.remove,$c.merge=$c.concat=$c.union,$c.withMutations=eo,$c.asImmutable=Ui,$c[`@@transducer/init`]=$c.asMutable=Wi,$c[`@@transducer/step`]=function(e,t){return e.add(t)},$c[`@@transducer/result`]=function(e){return e.asImmutable()},$c.__empty=as,$c.__make=is,As.Iterator=Bs,ms(As,{toArray:function(){ro(this.size);var e=Array(this.size||0),t=pi(this),n=0;return this.__iterate(function(r,i){e[n++]=t?[i,r]:r}),e},toIndexedSeq:function(){return new yc(this)},toJS:function(){return us(this)},toKeyedSeq:function(){return new vc(this,!0)},toMap:function(){return Tc(this.toKeyedSeq())},toObject:ls,toOrderedMap:function(){return Wc(this.toKeyedSeq())},toOrderedSet:function(){return al(pi(this)?this.valueSeq():this)},toSet:function(){return Qc(pi(this)?this.valueSeq():this)},toSetSeq:function(){return new bc(this)},toSeq:function(){return fi(this)?this.toIndexedSeq():pi(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Kc(pi(this)?this.valueSeq():this)},toList:function(){return zc(pi(this)?this.valueSeq():this)},toString:function(){return`[Collection]`},__toString:function(e,t){return this.size===0?e+t:e+` `+this.toSeq().map(this.__toStringMapper).join(`, `)+` `+t},concat:function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return ba(this,fa(this,e))},includes:function(e){return this.some(function(t){return Da(t,e)})},entries:function(){return this.__iterator(Is)},every:function(e,t){ro(this.size);var n=!0;return this.__iterate(function(r,i,a){if(!e.call(t,r,i,a))return n=!1,!1}),n},filter:function(e,t){return ba(this,oa(this,e,t,!0))},partition:function(e,t){return uee(this,e,t)},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return ro(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){ro(this.size),e=e===void 0?`,`:``+e;var t=``,n=!0;return this.__iterate(function(r){n?n=!1:t+=e,t+=r==null?``:r.toString()}),t},keys:function(){return this.__iterator(Ps)},map:function(e,t){return ba(this,ia(this,e,t))},reduce:function(e,t,n){return Yo(this,e,t,n,arguments.length<2,!1)},reduceRight:function(e,t,n){return Yo(this,e,t,n,arguments.length<2,!0)},reverse:function(){return ba(this,aa(this,!0))},slice:function(e,t){return ba(this,la(this,e,t,!0))},some:function(e,t){ro(this.size);var n=!1;return this.__iterate(function(r,i,a){if(e.call(t,r,i,a))return n=!0,!1}),n},sort:function(e){return ba(this,ga(this,e))},values:function(){return this.__iterator(Fs)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return this.size===void 0?!this.some(function(){return!0}):this.size===0},count:function(e,t){return Ti(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return sa(this,e,t)},equals:function(e){return ts(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ec(e._cache);var t=e.toSeq().map(Zo).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Qo(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate(function(n,i,a){if(e.call(t,n,i,a))return r=[i,n],!1}),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n
4)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(e){return this.find(Di,null,e)},flatMap:function(e,t){return ba(this,ma(this,e,t))},flatten:function(e){return ba(this,pa(this,e,!0))},fromEntrySeq:function(){return new xc(this)},get:function(e,t){return this.find(function(t,n){return Da(n,e)},void 0,t)},getIn:ss,groupBy:function(e,t){return ca(this,e,t)},has:function(e){return this.get(e,Gs)!==Gs},hasIn:dee,isSubset:function(e){return e=typeof e.includes==`function`?e:As(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return e=typeof e.isSubset==`function`?e:As(e),e.isSubset(this)},keyOf:function(e){return this.findKey(function(t){return Da(t,e)})},keySeq:function(){return this.toSeq().map(Xo).toIndexedSeq()},last:function(e){return this.toSeq().reverse().first(e)},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return _a(this,e)},maxBy:function(e,t){return _a(this,t,e)},min:function(e){return _a(this,e?$o(e):es)},minBy:function(e,t){return _a(this,t?$o(t):es,e)},rest:function(){return this.slice(1)},skip:function(e){return e===0?this:this.slice(Math.max(0,e))},skipLast:function(e){return e===0?this:this.slice(0,-Math.max(0,e))},skipWhile:function(e,t){return ba(this,da(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Qo(e),t)},sortBy:function(e,t){return ba(this,ga(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return this.slice(-Math.max(0,e))},takeWhile:function(e,t){return ba(this,ua(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Qo(e),t)},update:function(e){return e(this)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||=ds(this)}}),tl=As.prototype,tl[ks]=!0,tl[zs]=tl.values,tl.toJSON=tl.toArray,tl.__toStringMapper=xo,tl.inspect=tl.toSource=function(){return this.toString()},tl.chain=tl.flatMap,tl.contains=tl.includes,ms(js,{flip:function(){return ba(this,ra(this))},mapEntries:function(e,t){var n=this,r=0;return ba(this,this.toSeq().map(function(i,a){return e.call(t,[a,i],r++,n)}).fromEntrySeq())},mapKeys:function(e,t){var n=this;return ba(this,this.toSeq().flip().map(function(r,i){return e.call(t,r,i,n)}).flip())}}),nl=js.prototype,nl[Os]=!0,nl[zs]=tl.entries,nl.toJSON=ls,nl.__toStringMapper=function(e,t){return xo(t)+`: `+xo(e)},ms(Ms,{toKeyedSeq:function(){return new vc(this,!1)},filter:function(e,t){return ba(this,oa(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return t===void 0?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return t===void 0?-1:t},reverse:function(){return ba(this,aa(this,!1))},slice:function(e,t){return ba(this,la(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(t||0,0),n===0||n===2&&!t)return this;e=ki(e,e<0?this.count():this.size);var r=this.slice(0,e);return ba(this,n===1?r:r.concat(Fa(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(e){return this.get(0,e)},flatten:function(e){return ba(this,pa(this,e,!1))},get:function(e,t){return e=Ei(this,e),e<0||this.size===1/0||this.size!==void 0&&e>this.size?t:this.find(function(t,n){return n===e},void 0,t)},has:function(e){return e=Ei(this,e),e>=0&&(this.size===void 0?this.find(function(t,n){return n===e},void 0,Gs)!==Gs:this.size===1/0||e<this.size)},interpose:function(e){return ba(this,ha(this,e))},interleave:function(){var e=[this].concat(Fa(arguments)),t=ya(this.toSeq(),Qs.of,e),n=t.flatten(!0);return t.size&&(n.size=t.size*e.length),ba(this,n)},keySeq:function(){return Yc(0,this.size)},last:function(e){return this.get(-1,e)},skipWhile:function(e,t){return ba(this,da(this,e,t,!1))},zip:function(){var e=[this].concat(Fa(arguments));return ba(this,ya(this,hs,e))},zipAll:function(){var e=[this].concat(Fa(arguments));return ba(this,ya(this,hs,e,!0))},zipWith:function(e){var t=Fa(arguments);return t[0]=this,ba(this,ya(this,e,t))}}),rl=Ms.prototype,rl[Ds]=!0,rl[qs]=!0,ms(Ns,{get:function(e,t){return this.has(e)?e:t},includes:function(e){return this.has(e)},keySeq:function(){return this.valueSeq()}}
4),il=Ns.prototype,il.has=tl.includes,il.contains=il.includes,il.keys=il.values,ms(Zs,nl),ms(Qs,rl),ms($s,il),al=function(e){function t(e){return e==null?vs():gs(e)?e:vs().withMutations(function(t){var n=Ns(e);ro(n.size),n.forEach(function(e){return t.add(e)})})}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(e){return this(js(e).keySeq())},t.prototype.toString=function(){return this.__toString(`OrderedSet {`,`}`)},t}(Qc),al.isOrderedSet=gs,ol=al.prototype,ol[qs]=!0,ol.zip=rl.zip,ol.zipWith=rl.zipWith,ol.zipAll=rl.zipAll,ol.__empty=vs,ol.__make=_s,cl={LeftThenRight:-1,RightThenLeft:1},ll=function(e,t){var n;ys(e);var r=function(a){var o=this;if(a instanceof r)return a;if(!(this instanceof r))return new r(a);if(!n){n=!0;var s=Object.keys(e),c=i._indices={};i._name=t,i._keys=s,i._defaultValues=e;for(var l=0;l<s.length;l++){var u=s[l];c[u]=l,i[u]?typeof console==`object`&&console.warn&&console.warn(`Cannot define `+xs(this)+` with property "`+u+`" since that property name is part of the Record API.`):Cs(i,u)}}return this.__ownerID=void 0,this._values=zc().withMutations(function(e){e.setSize(o._keys.length),js(a).forEach(function(t,n){e.set(o._indices[n],t===o._defaultValues[n]?void 0:t)})}),this},i=r.prototype=Object.create(ul);return i.constructor=r,t&&(r.displayName=t),r},ll.prototype.toString=function(){for(var e=xs(this)+` { `,t=this._keys,n,r=0,i=t.length;r!==i;r++)n=t[r],e+=(r?`, `:``)+n+`: `+xo(this.get(n));return e+` }`},ll.prototype.equals=function(e){return this===e||Ni(e)&&Ss(this).equals(Ss(e))},ll.prototype.hashCode=function(){return Ss(this).hashCode()},ll.prototype.has=function(e){return this._indices.hasOwnProperty(e)},ll.prototype.get=function(e,t){if(!this.has(e))return t;var n=this._indices[e],r=this._values.get(n);return r===void 0?this._defaultValues[e]:r},ll.prototype.set=function(e,t){if(this.has(e)){var n=this._values.set(this._indices[e],t===this._defaultValues[e]?void 0:t);if(n!==this._values&&!this.__ownerID)return bs(this,n)}return this},ll.prototype.remove=function(e){return this.set(e)},ll.prototype.clear=function(){var e=this._values.clear().setSize(this._keys.length);return this.__ownerID?this:bs(this,e)},ll.prototype.wasAltered=function(){return this._values.wasAltered()},ll.prototype.toSeq=function(){return Ss(this)},ll.prototype.toJS=function(){return us(this)},ll.prototype.entries=function(){return this.__iterator(Is)},ll.prototype.__iterator=function(e,t){return Ss(this).__iterator(e,t)},ll.prototype.__iterate=function(e,t){return Ss(this).__iterate(e,t)},ll.prototype.__ensureOwner=function(e){if(e===this.__ownerID)return this;var t=this._values.__ensureOwner(e);return e?bs(this,t,e):(this.__ownerID=e,this._values=t,this)},ll.isRecord=Ni,ll.getDescriptiveName=xs,ul=ll.prototype,ul[Ks]=!0,ul[Vs]=ul.remove,ul.deleteIn=ul.removeIn=ko,ul.getIn=ss,ul.hasIn=tl.hasIn,ul.merge=ka,ul.mergeWith=Aa,ul.mergeIn=Ja,ul.mergeDeep=Ga,ul.mergeDeepWith=Ka,ul.mergeDeepIn=qa,ul.setIn=Xa,ul.update=Za,ul.updateIn=Qa,ul.withMutations=eo,ul.asMutable=Wi,ul.asImmutable=Ui,ul[zs]=ul.entries,ul.toJSON=ul.toObject=tl.toObject,ul.inspect=ul.toSource=function(){return this.toString()},dl=function(e){function t(e,n){if(!(this instanceof t))return new t(e,n);if(this._value=e,this.size=n===void 0?1/0:Math.max(0,n),this.size===0){if(fl)return fl;fl=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(e,t){return this.has(e)?this._value:t},t.prototype.includes=function(e){return Da(this._value,e)},t.prototype.slice=function(e,n){var r=this.size;return Oi(e,n,r)?this:new t(this._value,Ai(n,r)-ki(e,r))},t.prototype.reverse=function(){return this},t.prototype.indexOf=function(e){return this.size!==0&&Da(this._value,e)?0:-1},t.prototype.lastIndexOf=function(e){return this.size!==0&&Da(this._value,e)?this.size-1:-1},t.prototype.__iterate=function(e,t){for(var n=this.size,r=0;r!==n&&e(this._value,t?n-++r:r++,this)!==!1;);return r},t.prototype.__iterator=function(e,t){var n=this,r=this.size,i=0;return new Bs(function(){return i===r?_i():gi(e,t?r-++i:i++,n._value)})},t.prototype.equals=function(e){return e instanceof t?Da(this._value,e._value):ts(this,e)},t}(Qs),pl=`5.1.9`,ml=As})),gl=n(((e,t)=>
4{var n=class e extends Error{constructor(t){super(e._prepareSuperMessage(t)),Object.defineProperty(this,"name",{value:`NonError`,configurable:!0,writable:!0}),Error.captureStackTrace&&Error.captureStackTrace(this,e)}static _prepareSuperMessage(e){try{return JSON.stringify(e)}catch{return String(e)}}},r=[{property:`name`,enumerable:!1},{property:`message`,enumerable:!1},{property:`stack`,enumerable:!1},{property:`code`,enumerable:!0}],i=Symbol(`.toJSON called`),a=e=>{e[i]=!0;let t=e.toJSON();return delete e[i],t},o=({from:e,seen:t,to_:n,forceEnumerable:s,maxDepth:c,depth:l})=>{let u=n||(Array.isArray(e)?[]:{});if(t.push(e),l>=c)return u;if(typeof e.toJSON==`function`&&e[i]!==!0)return a(e);for(let[n,r]of Object.entries(e)){if(typeof Buffer==`function`&&Buffer.isBuffer(r)){u[n]=`[object Buffer]`;continue}if(typeof r!=`function`){if(!r||typeof r!=`object`){u[n]=r;continue}if(!t.includes(e[n])){l++,u[n]=o({from:e[n],seen:t.slice(),forceEnumerable:s,maxDepth:c,depth:l});continue}u[n]=`[Circular]`}}for(let{property:t,enumerable:n}of r)typeof e[t]==`string`&&Object.defineProperty(u,t,{value:e[t],enumerable:s?!0:n,configurable:!0,writable:!0});return u};t.exports={serializeError:(e,t={})=>{let{maxDepth:n=1/0}=t;return typeof e==`object`&&e?o({from:e,seen:[],forceEnumerable:!0,maxDepth:n,depth:0}):typeof e==`function`?`[Function: ${e.name||`anonymous`}]`:e},deserializeError:(e,t={})=>{let{maxDepth:r=1/0}=t;if(e instanceof Error)return e;if(typeof e==`object`&&e&&!Array.isArray(e)){let t=Error();return o({from:e,seen:[],to_:t,maxDepth:r,depth:0}),t}return new n(e)}}})),_l=n(((e,t)=>{var n=De(),r=ie();function i(e,t,i){(i!==void 0&&!r(e[t],i)||i===void 0&&!(t in e))&&n(e,t,i)}t.exports=i})),vl=n(((e,t)=>{var n=le(),r=p();function i(e){return r(e)&&n(e)}t.exports=i})),yl=n(((e,t)=>{function n(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}t.exports=n})),bl=n(((e,t)=>{var n=be(),r=Ee();function i(e){return n(e,r(e))}t.exports=i})),xl=n(((e,t)=>{var n=_l(),r=Se(),i=_e(),a=ve(),o=Te(),s=ae(),c=ke(),l=vl(),u=ge(),d=oe(),f=E(),p=Pe(),m=de(),h=yl(),g=bl();function _(e,t,_,v,y,b,x){var S=h(e,_),C=h(t,_),w=x.get(C);if(w){n(e,_,w);return}var T=b?b(S,C,_+``,e,t,x):void 0,E=T===void 0;if(E){var D=c(C),O=!D&&u(C),k=!D&&!O&&m(C);T=C,D||O||k?c(S)?T=S:l(S)?T=a(S):O?(E=!1,T=r(C,!0)):k?(E=!1,T=i(C,!0)):T=[]:p(C)||s(C)?(T=S,s(S)?T=g(S):(!f(S)||d(S))&&(T=o(C))):E=!1}E&&(x.set(C,T),y(T,C,v,b,x),x.delete(C)),n(e,_,T)}t.exports=_})),Sl=n(((e,t)=>{var n=ce(),r=_l(),i=yt(),a=xl(),o=E(),s=Ee(),c=yl();function l(e,t,u,d,f){e!==t&&i(t,function(i,s){if(f||=new n,o(i))a(e,t,s,u,l,d,f);else{var p=d?d(c(e,s),i,s+``,e,t,f):void 0;p===void 0&&(p=i),r(e,s,p)}},s)}t.exports=l})),Cl=n(((e,t)=>{var n=Ne(),r=Le(),i=ze();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),wl=n(((e,t)=>{var n=ie(),r=le(),i=se(),a=E();function o(e,t,o){if(!a(o))return!1;var s=typeof t;return(s==`number`?r(o)&&i(t,o.length):s==`string`&&t in o)?n(o[t],e):!1}t.exports=o})),Tl=n(((e,t)=>{var n=Cl(),r=wl();function i(e){return n(function(t,n){var i=-1,a=n.length,o=a>1?n[a-1]:void 0,s=a>2?n[2]:void 0;for(o=e.length>3&&typeof o==`function`?(a--,o):void 0,s&&r(n[0],n[1],s)&&(o=a<3?void 0:o,a=1),t=Object(t);++i<a;){var c=n[i];c&&e(t,c,i,o)}return t})}t.exports=i})),El=n(((e,t)=>{var n=Sl();t.exports=Tl()(function(e,t,r){n(e,t,r)})})),Dl=n(((e,t)=>{var n=Ct(),r=le(),i=he();function a(e){return function(t,a,o){var s=Object(t);if(!r(t)){var c=n(a,3);t=i(t),a=function(e){return c(s[e],e,s)}}var l=e(t,a,o);return l>-1?s[c?t[l]:l]:void 0}}t.exports=a})),Ol=n(((e,t)=>{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}t.exports=n})),kl=n(((e,t)=>{var n=b(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),Al=n(((e,t)=>{var n=kl();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),jl=n(((e,t)=>{var n=Ol(),r=Ct(),i=Al(),a=Math.max;function o(e,t,o){var s=e==null?0:e.length;if(!s)return-1;var c=o==null?0:i(o);return c<0&&(c=a(s+c,0)),n(e,r(t,3),c)}t.exports=o})),Ml=n(((e,t)=>{t.exports=Dl()(jl())})),Nl=n(((e,t)=>{var n=bt();function r(e,t){var r;return n(e,function(e,n,i){return r=t(e,n,i),!r}),!!r}t.exports=r})),Pl=n(((e,t)=>{var n=xt(),r=Ct(),i=Nl(),a=ke(),o=wl();function s(e,t,s){var c=a(e)?n:i;return s&&o(e,t,s)&&(t=void 0),c(e,r(t,3))}t.exports=s})),Fl=n(((e,t)=>{(function(n,r){typeof e==`object`?t.exports=r(n):typeof define==`function`&&define.amd?define([],r.bind(n,n)):r(n)})(typeof window<`u`?window:e,function(e){if(e.CSS&&e.CSS.escape)return e.CSS.escape;var t=function(e){if(arguments.length==0)throw TypeError("`CSS.escape` requires an argument.");for(var t=String(e),n=t.length,r=-1,i,a=``,o=t.charCodeAt(0);++r<n;){if(i=t.charCodeAt(r),i==0){a+=`�`;continue}if(i>=1&&i<=31||i==127||r==0&&i>=48&&i<=57||r==1&&i>=48&&i<=57&&o==45){a+=`\\`+i.toString(16)+` `;continue}if(r==0&&n==1&&i==45){a+=`\\`+t.charAt(r);continue}if(i>=128||i==45||i==95||i>=48&&i<=57||i>=65&&i<=90||i>=97&&i<=122){a+=t.charAt(r);continue}a+=`\\`+t.charAt(r)}return a};return e.CSS||={},e.CSS.escape=t,t})})),Il=n(((e,t)=>{t.exports=function(e,t){if(t=t.split(`:`)[0],e=+e,!e)return!1;switch(t){case`http`:case`ws`:return e!==80;case`https`:case`wss`:return e!==443;case`ftp`:return e!==21;case`gopher`:return e!==70;case`file`:return!1}return e!==0}})),Ll=n((e=>{var t=Object.prototype.hasOwnProperty,n;function r(e){try{return decodeURIComponent(e.replace(/\+/g,` `))}catch{return null}}function i(e){try{return encodeURIComponent(e)}catch{return null}}function a(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},i;i=t.exec(e);){var a=r(i[1]),o=r(i[2]);a===null||o===null||a in n||(n[a]=o)}return n}function o(e,r){r||=``;var a=[],o,s;for(s in typeof r!=`string`&&(r=`?`),e)if(t.call(e,s)){if(o=e[s],!o&&(o===null||o===n||isNaN(o))&&(o=``),s=i(s),o=i(o),s===null||o===null)continue;a.push(s+`=`+o)}return a.length?r+a.join(`&`):``}e.stringify=o,e.parse=a})),Rl=n(((e,t)=>{var n=Il(),r=Ll(),i=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,a=/[\n\r\t]/g,o=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,s=/:\d+$/,c=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,l=/^[a-zA-Z]:/;function u(e){return(e||``).toString().replace(i,``)}var d=[[`#`,`hash`],[`?`,`query`],function(e,t){return m(t.protocol)?e.replace(/\\/g,`/`):e},[`/`,`pathname`],[`@`,`auth`,1],[NaN,`host`,void 0,1,1],[/:(\d*)$/,`port`,void 0,1],[NaN,`hostname`,void 0,1,1]],f={hash:1,query:1};function p(e){var t=(typeof window<`u`||typeof window<`u`?window:typeof self<`u`?self:{}).location||{};e||=t;var n={},r=typeof e,i;if(e.protocol===`blob:`)n=new _(unescape(e.pathname),{});else if(r===`string`)for(i in n=new _(e,{}),f)delete n[i];else if(r===`object`){for(i in e)i in f||(n[i]=e[i]);n.slashes===void 0&&(n.slashes=o.test(e.href))}return n}function m(e){return e===`file:`||e===`ftp:`||e===`http:`||e===`https:`||e===`ws:`||e===`wss:`}function h(e,t){e=u(e),e=e.replace(a,``),t||={};
4var n=c.exec(e),r=n[1]?n[1].toLowerCase():``,i=!!n[2],o=!!n[3],s=0,l;return i?o?(l=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(l=n[2]+n[4],s=n[2].length):o?(l=n[3]+n[4],s=n[3].length):l=n[4],r===`file:`?s>=2&&(l=l.slice(2)):m(r)?l=n[4]:r?i&&(l=l.slice(2)):s>=2&&m(t.protocol)&&(l=n[4]),{protocol:r,slashes:i||m(r),slashesCount:s,rest:l}}function g(e,t){if(e===``)return t;for(var n=(t||`/`).split(`/`).slice(0,-1).concat(e.split(`/`)),r=n.length,i=n[r-1],a=!1,o=0;r--;)n[r]===`.`?n.splice(r,1):n[r]===`..`?(n.splice(r,1),o++):o&&(r===0&&(a=!0),n.splice(r,1),o--);return a&&n.unshift(``),(i===`.`||i===`..`)&&n.push(``),n.join(`/`)}function _(e,t,i){if(e=u(e),e=e.replace(a,``),!(this instanceof _))return new _(e,t,i);var o,s,c,f,v,y,b=d.slice(),x=typeof t,S=this,C=0;for(x!==`object`&&x!==`string`&&(i=t,t=null),i&&typeof i!=`function`&&(i=r.parse),t=p(t),s=h(e||``,t),o=!s.protocol&&!s.slashes,S.slashes=s.slashes||o&&t.slashes,S.protocol=s.protocol||t.protocol||``,e=s.rest,(s.protocol===`file:`&&(s.slashesCount!==2||l.test(e))||!s.slashes&&(s.protocol||s.slashesCount<2||!m(S.protocol)))&&(b[3]=[/(.*)/,`pathname`]);C<b.length;C++){if(f=b[C],typeof f==`function`){e=f(e,S);continue}c=f[0],y=f[1],c===c?typeof c==`string`?(v=c===`@`?e.lastIndexOf(c):e.indexOf(c),~v&&(typeof f[2]==`number`?(S[y]=e.slice(0,v),e=e.slice(v+f[2])):(S[y]=e.slice(v),e=e.slice(0,v)))):(v=c.exec(e))&&(S[y]=v[1],e=e.slice(0,v.index)):S[y]=e,S[y]=S[y]||o&&f[3]&&t[y]||``,f[4]&&(S[y]=S[y].toLowerCase())}i&&(S.query=i(S.query)),o&&t.slashes&&S.pathname.charAt(0)!==`/`&&(S.pathname!==``||t.pathname!==``)&&(S.pathname=g(S.pathname,t.pathname)),S.pathname.charAt(0)!==`/`&&m(S.protocol)&&(S.pathname=`/`+S.pathname),n(S.port,S.protocol)||(S.host=S.hostname,S.port=``),S.username=S.password=``,S.auth&&=(v=S.auth.indexOf(`:`),~v?(S.username=S.auth.slice(0,v),S.username=encodeURIComponent(decodeURIComponent(S.username)),S.password=S.auth.slice(v+1),S.password=encodeURIComponent(decodeURIComponent(S.password))):S.username=encodeURIComponent(decodeURIComponent(S.auth)),S.password?S.username+`:`+S.password:S.username),S.origin=S.protocol!==`file:`&&m(S.protocol)&&S.host?S.protocol+`//`+S.host:`null`,S.href=S.toString()}function v(e,t,i){var a=this;switch(e){case`query`:typeof t==`string`&&t.length&&(t=(i||r.parse)(t)),a[e]=t;break;case`port`:a[e]=t,n(t,a.protocol)?t&&(a.host=a.hostname+`:`+t):(a.host=a.hostname,a[e]=``);break;case`hostname`:a[e]=t,a.port&&(t+=`:`+a.port),a.host=t;break;case`host`:a[e]=t,s.test(t)?(t=t.split(`:`),a.port=t.pop(),a.hostname=t.join(`:`)):(a.hostname=t,a.port=``);break;case`protocol`:a.protocol=t.toLowerCase(),a.slashes=!i;break;case`pathname`:case`hash`:if(t){var o=e===`pathname`?`/`:`#`;a[e]=t.charAt(0)===o?t:o+t}else a[e]=t;break;case`username`:case`password`:a[e]=encodeURIComponent(t);break;case`auth`:var c=t.indexOf(`:`);~c?(a.username=t.slice(0,c),a.username=encodeURIComponent(decodeURIComponent(a.username)),a.password=t.slice(c+1),a.password=encodeURIComponent(decodeURIComponent(a.password))):a.username=encodeURIComponent(decodeURIComponent(t))}for(var l=0;l<d.length;l++){var u=d[l];u[4]&&(a[u[1]]=a[u[1]].toLowerCase())}return a.auth=a.password?a.username+`:`+a.password:a.username,a.origin=a.protocol!==`file:`&&m(a.protocol)&&a.host?a.protocol+`//`+a.host:`null`,a.href=a.toString(),a}function y(e){(!e||typeof e!=`function`)&&(e=r.stringify);var t,n=this,i=n.host,a=n.protocol;a&&a.charAt(a.length-1)!==`:`&&(a+=`:`);var o=a+(n.protocol&&n.slashes||m(n.protocol)?`//`:``);return n.username?(o+=n.username,n.password&&(o+=`:`+n.password),o+=`@`):n.password?(o+=`:`+n.password,o+=`@`):n.protocol!==`file:`&&m(n.protocol)&&!i&&n.pathname!==`/`&&(o+=`@`),(i[i.length-1]===`:`||s.test(n.hostname)&&!n.port)&&(i+=`:`),o+=i+n.pathname,t=typeof n.query==`object`?e(n.query):n.query,t&&(o+=t.charAt(0)===`?`?t:`?`+t),n.hash&&(o+=n.hash),o}_.prototype={set:v,toString:y},_.extractProtocol=h,_.location=p,_.trimLeft=u,_.qs=r,t.exports=_}));hl();var zl=gl(),Bl=r(El());Tt(),Dt();var Vl=r(Ml()),Hl=r(Pl()),Ul=r(Fl()),Wl=r(Rl()),Gl=class{constructor(e){this.value=e}deref(){return this.value}},Kl=typeof WeakRef>`u`?Gl:WeakRef,ql=0,Jl=1;function Yl(){return{s:ql,v:void 0,o:null,p:null}}function Xl(e){return e instanceof Kl?e.deref():e}function Zl(e,t={}){let n=Yl(),{resultEqualityCheck:r,maxSize:i}=t,a=i!==void 0;if(a&&(!Number.isInteger(i)||i<1))throw TypeError(`maxSize must be a positive integer, received: ${i}`);let o=null,s=0,c,l=0;function u(){s>=i&&(o=n,n=Yl(),s=0)}function d(){let t=n,{length:i}=arguments;for(let e=0,n=i;e<n;e++){let n=arguments[e];if(typeof n==`function`||typeof n==`object`&&n){let e=t.o;e===null&&(t.o=e=new WeakMap);let r=e.get(n);r===void 0?(t=Yl(),e.set(n,t)):t=r}else{let e=t.p;e===null&&(t.p=e=new Map);let r=e.get(n);r===void 0?(t=Yl(),e.set(n,t),s++):t=r}}if(t.s===Jl)return t.v;if(o!==null){let e=o;for(let t=0,n=i;t<n;t++){let n=arguments[t],r;if(typeof n==`function`||typeof n==`object`&&n){let t=e.o;r=t===null?void 0:t.get(n)}else{let t=e.p;r=t===null?void 0:t.get(n)}if(r===void 0){e=null;break}e=r}if(e!==null&&e.s===Jl){let n=t;return n.s=Jl,n.v=e.v,u(),e.v}}let d=t,f=e.apply(null,arguments);if(l++,r){let e=Xl(c);e!=null&&r(e,f)&&(f=e,l!==0&&l--),c=typeof f==`object`&&f||typeof f==`function`?new Kl(f):f}return d.s=Jl,d.v=f,a&&u(),f}return d.clearCache=()=>{n=Yl(),o=null,s=0,d.resetResultsCount()},d.resultsCount=()=>l,d.resetResultsCount=()=>{l=0},d}function Ql(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function $l(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}var eu=e=>Array.isArray(e)?e:[e];function tu(e){let t=Array.isArray(e[0])?e[0]:e;
4return $l(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function nu(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),Ql(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=Zl,argsMemoizeOptions:u=[]}={...n,...a},d=eu(c),f=eu(u),p=tu(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let{length:e}=p,t=Array(e);for(let n=0;n<e;n++)t[n]=p[n].apply(null,arguments);return i=m.apply(null,t),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}var ru=nu(Zl);function iu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var au={},ou={},su={},cu;function lu(){if(cu)return su;cu=1;function e(e){return e==null}function t(e){return typeof e==`object`&&!!e}function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}function i(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}function a(e){return e===0&&1/e==-1/0}return su.isNothing=e,su.isObject=t,su.toArray=n,su.repeat=i,su.isNegativeZero=a,su.extend=r,su}var uu,du;function fu(){if(du)return uu;du=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=` 5 6`+e.mark.snippet),r+` `+n):r}function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+`: `+e(this,t)},uu=t,uu}var pu,mu;function hu(){if(mu)return pu;mu=1;let e=lu();function t(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`â`)+o,pos:r-t+a.length}}function n(t,n){return e.repeat(` `,n-t.length)+t}function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(r.buffer);)s.push(c.index),o.push(c.index+c[0].length),r.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(r.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let a=1;a<=i.linesBefore&&!(l-a<0);a++){let c=t(r.buffer,o[l-a],s[l-a],r.position-(o[l]-o[l-a]),f);u=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),d)+` | `+c.str+` 7`+u}let p=t(r.buffer,o[l],s[l],r.position,f);u+=e.repeat(` `,i.indent)+n((r.line+1).toString(),d)+` | `+p.str+` 8`,u+=e.repeat(`-`,i.indent+d+3+p.pos)+`^ 9`;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=t(r.buffer,o[l+a],s[l+a],r.position-(o[l]-o[l+a]),f);u+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),d)+` | `+c.str+` 10`}return u.replace(/\n$/,``)}return pu=r,pu}var gu,_u;function vu(){if(_u)return gu;_u=1;let e=fu(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function i(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)}return gu=i,gu}var yu,bu;function xu(){if(bu)return yu;bu=1;let e=fu(),t=vu();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;
10n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}function i(e){return this.extend(e)}return i.prototype.extend=function(a){let o=[],s=[];if(a instanceof t)s.push(a);else if(Array.isArray(a))s=s.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(o=o.concat(a.implicit)),a.explicit&&(s=s.concat(a.explicit));else throw new e(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(n.loadKind&&n.loadKind!==`scalar`)throw new e(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(n.multi)throw new e(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(i.prototype);return c.implicit=(this.implicit||[]).concat(o),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=n(c,`implicit`),c.compiledExplicit=n(c,`explicit`),c.compiledTypeMap=r(c.compiledImplicit,c.compiledExplicit),c},yu=i,yu}var Su,Cu;function wu(){return Cu?Su:(Cu=1,Su=new(vu())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),Su)}var Tu,Eu;function Du(){return Eu?Tu:(Eu=1,Tu=new(vu())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),Tu)}var Ou,ku;function Au(){return ku?Ou:(ku=1,Ou=new(vu())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),Ou)}var ju,Mu;function Nu(){return Mu?ju:(Mu=1,ju=new(xu())({explicit:[wu(),Du(),Au()]}),ju)}var Pu,Fu;function Iu(){if(Fu)return Pu;Fu=1;let e=vu();function t(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function n(){return null}function r(e){return e===null}return Pu=new e(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`}),Pu}var Lu,Ru;function zu(){if(Ru)return Lu;Ru=1;let e=vu();function t(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function n(e){return e===`true`||e===`True`||e===`TRUE`}function r(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return Lu=new e(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`}),Lu}var Bu,Vu;function Hu(){if(Vu)return Bu;Vu=1;let e=lu(),t=vu();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function i(e){return e>=48&&e<=57}function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let c=e[a];if((c===`-`||c===`+`)&&(c=e[++a]),c===`0`){if(a+1===t)return!0;if(c=e[++a],c===`b`){for(a++;a<t;a++){if(c=e[a],c!==`0`&&c!==`1`)return!1;s=!0}return s&&isFinite(o(e))}if(c===`x`){for(a++;a<t;a++){if(!n(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}if(c===`o`){for(a++;a<t;a++){if(!r(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}}for(;a<t;a++){if(!i(e.charCodeAt(a)))return!1;s=!0}return s?isFinite(o(e)):!1}function o(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function s(e){return o(e)}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&t%1==0&&!e.isNegativeZero(t)}return Bu=new t(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:a,construct:s,predicate:c,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)}
10,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`]}}),Bu}var Uu,Wu;function Gu(){if(Wu)return Uu;Wu=1;let e=lu(),t=vu(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return Uu=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:c,represent:s,defaultStyle:`lowercase`}),Uu}var Ku,qu;function Ju(){return qu?Ku:(qu=1,Ku=Nu().extend({implicit:[Iu(),zu(),Hu(),Gu()]}),Ku)}var Yu,Xu;function Zu(){return Xu?Yu:(Xu=1,Yu=Ju(),Yu)}var Qu,$u;function ed(){if($u)return Qu;$u=1;let e=vu(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=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 r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let f=new Date(Date.UTC(o,s,c,l,u,d,r));return i&&f.setTime(f.getTime()-i),f}function a(e){return e.toISOString()}return Qu=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),Qu}var td,nd;function rd(){if(nd)return td;nd=1;let e=vu();function t(e){return e===`<<`||e===null}return td=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),td}var id,ad;function od(){if(ad)return id;ad=1;let e=vu();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 11\r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e<n;e++)e%4==0&&e&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 12\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 13\r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return id=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),id}var sd,cd;function ld(){if(cd)return sd;cd=1;let e=vu(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r={},i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(n.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(t.call(a,s)){if(!o)o=!0;else return!1}if(!o||t.call(r,s))return!1;Object.defineProperty(r,s,{value:!0})}return!0}function i(e){return e===null?[]:e}return sd=new e(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:r,construct:i}),sd}var ud,dd;function fd(){if(dd)return ud;dd=1;let e=vu(),t=Object.prototype.toString;function n(e){if(e===null)return!0;let n=e,r=Array(n.length);for(let e=0,i=n.length;e<i;e+=1){let i=n[e];if(t.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;r[e]=[a[0],i[a[0]]]}return!0}function r(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}return ud=new e(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:n,
13construct:r}),ud}var pd,md;function hd(){if(md)return pd;md=1;let e=vu(),t=Object.prototype.hasOwnProperty;function n(e){if(e===null)return!0;let n=e;for(let e in n)if(t.call(n,e)&&n[e]!==null)return!1;return!0}function r(e){return e===null?{}:e}return pd=new e(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:n,construct:r}),pd}var gd,_d;function vd(){return _d?gd:(_d=1,gd=Zu().extend({implicit:[ed(),rd()],explicit:[od(),ld(),fd(),hd()]}),gd)}var yd;function bd(){if(yd)return ou;yd=1;let e=lu(),t=fu(),n=hu(),r=vd(),i=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function d(e){return e===10||e===13}function f(e){return e===9||e===32}function p(e){return e===9||e===32||e===10||e===13}function m(e){return e===44||e===91||e===93||e===123||e===125}function h(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function g(e){return e===120?2:e===117?4:e===85?8:0}function _(e){return e>=48&&e<=57?e-48:-1}function v(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` 14`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`Â `;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function y(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function b(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}let x=Array(256),S=Array(256);for(let e=0;e<256;e++)x[e]=+!!v(e),S[e]=v(e);function C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function w(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function T(e,t){throw w(e,t)}function E(e,t){e.onWarning&&e.onWarning.call(null,w(e,t))}function D(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function O(e){e.anchorMapTransactions.push(Object.create(null))}function k(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],a=Object.keys(t);for(let e=0,n=a.length;e<n;e+=1){let n=a[e];i.call(r,n)||(r[n]=t[n])}}function A(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}function j(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function M(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}let N={YAML:function(e,t,n){e.version!==null&&T(e,`duplication of %YAML directive`),n.length!==1&&T(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&T(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&T(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&E(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){let r;n.length!==2&&T(e,`TAG directive accepts exactly two arguments`);let a=n[0];r=n[1],c.test(a)||T(e,`ill-formed tag handle (first argument) of the TAG directive`),i.call(e.tagMap,a)&&T(e,`there is a previously declared suffix for "`+a+`" tag handle`),l.test(r)||T(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{T(e,`tag prefix is malformed: `+r)}e.tagMap[a]=r}};function P(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||T(e,`expected valid JSON character`)}
vendor: 16,893 bytes, lines 14-22
14else a.test(i)&&T(e,`the stream contains non-printable characters`);e.result+=i}}function F(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&T(e,`merge keys exceeded maxTotalMergeKeys (`+e.maxTotalMergeKeys+`)`)}function I(t,n,r,a){e.isObject(r)||T(t,`cannot merge mappings; the provided source object is unacceptable`),F(t);let o=Object.keys(r);for(let e=0,s=o.length;e<s;e+=1){let s=o[e];F(t),i.call(n,s)||(b(n,s,r[s]),a[s]=!0)}}function L(e,t,n,r,a,o,s,c,l){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,n=a.length;t<n;t+=1)Array.isArray(a[t])&&T(e,`nested arrays are not supported inside keys`),typeof a==`object`&&u(a[t])===`[object Object]`&&(a[t]=`[object Object]`)}if(typeof a==`object`&&u(a)===`[object Object]`&&(a=`[object Object]`),a=String(a),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(o)){o.length>100&&T(e,`abnormal merge sequence size`);for(let r=0,i=o.length;r<i;r+=1)I(e,t,o[r],n)}else I(e,t,o,n)}else!e.json&&!i.call(n,a)&&i.call(t,a)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,T(e,`duplicated mapping key`)),b(t,a,o),delete n[a];return t}function ee(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):T(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function R(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;f(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(d(i))for(ee(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&E(e,`deficient indentation`),r}function z(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||p(n)))}function te(t,n){n===1?t.result+=` `:n>1&&(t.result+=e.repeat(` 15`,n-1))}function ne(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,h=e.input.charCodeAt(e.position);if(p(h)||m(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96)return!1;if(h===63||h===45){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;h!==0;){if(h===58){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))break}else if(h===35){if(p(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&z(e)||n&&m(h))break;else if(d(h)){if(o=e.line,s=e.lineStart,c=e.lineIndent,R(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}a&&=(P(e,r,i,!1),te(e,e.line-o),r=i=e.position,!1),f(h)||(i=e.position+1),h=e.input.charCodeAt(++e.position)}return P(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}function re(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(P(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else d(i)?(P(e,n,r,!0),te(e,R(e,!1,t)),n=r=e.position):e.position===e.lineStart&&z(e)?T(e,`unexpected end of the document within a single quoted scalar`):(e.position++,f(i)||(r=e.position));T(e,`unexpected end of the stream within a single quoted scalar`)}function ie(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return P(e,n,e.position,!0),e.position++,!0;else if(a===92){if(P(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),d(a))R(e,!1,t);else if(a<256&&x[a])e.result+=S[a],e.position++;else if((i=g(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=h(a))>=0?n=(n<<4)+i:T(e,`expected hexadecimal character`);e.result+=y(n),e.position++}else T(e,`unknown escape sequence`);n=r=e.position}else d(a)?(P(e,n,r,!0),te(e,R(e,!1,t)),n=r=e.position):e.position===e.lineStart&&z(e)?T(e,`unexpected end of the document within a double quoted scalar`):(e.position++,f(a)||(r=e.position));T(e,`unexpected end of the stream within a double quoted scalar`)}function ae(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)l=93,f=!1,s=[];else if(v===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&D(e,e.anchor,s),v=e.input.charCodeAt(++e.position);v!==0;){if(R(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?v===44&&T(e,`expected the node content, but found ','`):T(e,`missed comma between flow collection entries`),g=h=_=null,u=d=!1,v===63&&p(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,R(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,pe(e,t,1,!1,!0),g=e.tag,h=e.result,R(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===r)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),R(e,!0,t),pe(e,t,1,!1,!0),_=e.result),f?L(e,s,m,g,h,_,r,i,a):u?s.push(L(e,null,m,g,h,_,r,i,a)):s.push(h),R(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}T(e,`unexpected end of the stream within a flow collection`)}function oe(t,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,p=t.input.charCodeAt(t.position);if(p===124)r=!1;else if(p===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)i===1?i=p===43?3:2:T(t,`repeat of a chomping mode identifier`);else if((u=_(p))>=0)u===0?T(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?T(t,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(f(p)){do p=t.input.charCodeAt(++t.position);while(f(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!d(p)&&p!==0)}for(;p!==0;){for(ee(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!o||t.lineIndent<s)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>s&&(s=t.lineIndent),d(p)){c++;continue}if(!o&&s===0&&T(t,`missing indentation for block scalar`),t.lineIndent<s){i===3?t.result+=e.repeat(` 16`,a?1+c:c):i===1&&a&&(t.result+=` 17`);break}r?f(p)?(l=!0,t.result+=e.repeat(` 18`,a?1+c:c)):l?(l=!1,t.result+=e.repeat(` 19`,c+1)):c===0?a&&(t.result+=` `):t.result+=e.repeat(` 20`,c):t.result+=e.repeat(` 21`,a?1+c:c),a=!0,o=!0,c=0;let n=t.position;for(;!d(p)&&p!==0;)p=t.input.charCodeAt(++t.position);P(t,n,t.position,!1)}return!0}function se(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`)),o===45&&p(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,R(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(pe(e,t,3,!1,!0),i.push(e.result),R(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)T(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}function ce(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,m=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&p(y))v===63?(g&&(L(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):T(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!pe(e,n,2,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);f(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),p(v)||T(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(L(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!1,r=!1,d=e.tag,m=e.result;else if(_)T(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)T(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),pe(e,t,4,!0,r)&&(g?m=e.result:h=e.result),g||(L(e,l,u,d,m,h,i,a,o),d=m=h=null),R(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)T(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&L(e,l,u,d,m,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}function le(e){let t=!1,n=!1,r,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;e.tag!==null&&T(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(t=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,r=`!!`,o=e.input.charCodeAt(++e.position)):r=`!`;let u=e.position;if(t){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(u,e.position),o=e.input.charCodeAt(++e.position)):T(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!p(o);)o===33&&(n?T(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(u-1,e.position+1),c.test(r)||T(e,`named tag handle cannot contain such characters`),n=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(u,e.position),s.test(a)&&T(e,`tag suffix cannot contain flow indicator characters`)}a&&!l.test(a)&&T(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{T(e,`tag name is malformed: `+a)}return t?e.tag=a:i.call(e.tagMap,r)?e.tag=e.tagMap[r]+a:r===`!`?e.tag=`!`+a:r===`!!`?e.tag=`tag:yaml.org,2002:`+a:T(e,`undeclared tag handle "`+r+`"`),!0}function ue(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&T(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&T(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}function de(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===n&&T(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return i.call(e.anchorMap,r)||T(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],R(e,!0,-1),!0}function fe(e,t,n,r){let i=j(e);return O(e),M(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,ce(e,n,r)&&e.kind===`mapping`?(k(e),!0):(A(e),M(e,i),!1)}function pe(e,t,n,r,a){let o,s,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&T(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let h=o=s=n===4||n===3;if(r&&R(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;;){let n=e.input.charCodeAt(e.position),r=j(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!le(e)&&!ue(e))break;d===null&&(d=r),R(e,!0,-1)?(l=!0,s=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1}if(s&&=l||a,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(s&&(se(e,m)||ce(e,m,p))||ae(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!s&&t!==124&&t!==62&&fe(e,d,d.position-d.lineStart,p)||o&&oe(e,p)||re(e,p)||ie(e,p)?u=!0:de(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&T(e,`alias node should not have any properties`)):ne(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&D(e,e.anchor,e.result)}}else c===0&&(u=s&&se(e,m))}if(e.tag===null)e.anchor!==null&&D(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&T(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(f=e.implicitTypes[t],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&D(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(i.call(e.typeMap[e.kind||`fallback`],e.tag))f=e.typeMap[e.kind||`fallback`][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||T(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&T(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+f.kind+`", not "`+e.kind+`"`),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&D(e,e.anchor,e.result)):T(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||u}function me(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(R(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);let a=e.input.slice(t,e.position),o=[];for(a.length<1&&T(e,`directive name must not be less than one character in length`);r!==0;){for(;f(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!d(r));break}if(d(r))break;for(t=e.position;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&ee(e),i.call(N,a)?N[a](e,a,o):E(e,`unknown document directive "`+a+`"`)}if(R(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,R(e,!0,-1)):n&&T(e,`directives end mark is expected`),pe(e,e.lineIndent-1,4,!1,!0),R(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&E(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&z(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R(e,!0,-1));return}e.position<e.length-1&&T(e,`end of the stream or a document separator is expected`)}function he(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` 22`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new C(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,T(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)me(n);return n.documents}function ge(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=he(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}function _e(e,n){let r=he(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new t(`expected a single document in the stream, but found more`)}}return ou.loadAll=ge,ou.load=_e,ou}var xd={},Sd;function Cd(){if(Sd)return xd;Sd=1;let e=lu(),t=fu(),n=vd(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=65279,o={};o[0]=`\\0`,o[7]=`\\a`,o[8]=`\\b`,o[9]=`\\t`,o[10]=`\\n`,o[11]=`\\v`,o[12]=`\\f`,o[13]=`\\r`,o[27]=`\\e`,o[34]=`\\"`,o[92]=`\\\\`,o[133]=`\\N`,o[160]=`\\_`,o[8232]=`\\L`,o[8233]=`\\P`;let s=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],c=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let a=0,o=r.length;a<o;a+=1){let o=r[a],s=String(t[o]);o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2));let c=e.compiledTypeMap.fallback[o];c&&i.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s}return n}function u(n){let r,i,a=n.toString(16).toUpperCase();if(n<=255)r=`x`,i=2;else if(n<=65535)r=`u`,i=4;else if(n<=4294967295)r=`U`,i=8;else throw new t(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+e.repeat(`0`,i-a.length)+a}function d(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=l(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType===`"`?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer==`function`?t.replacer:null,this.impl
22icitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function f(t,n){let r=e.repeat(` `,n),i=0,a=``,o=t.length;for(;i<o;){let e,n=t.indexOf(` 23`,i);n===-1?(e=t.slice(i),i=o):(e=t.slice(i,n+1),i=n+1),e.length&&e!==` 24`&&(a+=r),a+=e}return a}function p(t,n){return` 25`+e.repeat(` `,t.indent*n)}function m(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function h(e){return e===32||e===9}function g(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}function _(e){return g(e)&&e!==a&&e!==13&&e!==10}function v(e,t,n){let r=_(e),i=r&&!h(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||_(t)&&!h(t)&&e===35||t===58&&i}function y(e){return g(e)&&e!==a&&!h(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}function b(e){return!h(e)&&e!==58}function x(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function S(e){return/^\n* /.test(e)}function C(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=y(x(e,0))&&b(x(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),!g(l))return 5;h&&=v(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!g(l))return 5;h&&=v(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&S(e)?5:o?a===2?5:2:f?4:3}function w(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||c.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),u=i||e.flowLevel>-1&&r>=e.flowLevel;function d(t){return m(e,t)}switch(C(n,u,e.indent,l,d,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+T(n,e.indent)+E(f(n,o));case 4:return`>`+T(n,e.indent)+E(f(D(n,l),o));case 5:return`"`+k(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}function T(e,t){let n=S(e)?String(t):``,r=e[e.length-1]===` 26`;return n+(r&&(e[e.length-2]===` 27`||e===` 28`)?`+`:r?``:`-`)+` 29`}function E(e){return e[e.length-1]===` 30`?e.slice(0,-1):e}function D(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(` 31`);return r=r===-1?e.length:r,n.lastIndex=r,O(e.slice(0,r),t)})(),i=e[0]===` 32`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?` 33`:``)+O(n,t),i=a}return r}function O(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=` 34`+e.slice(i,a),i=a+1),o=s;return c+=` 35`,e.length-i>t&&o>i?c+=e.slice(i,o)+` 36`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function k(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=x(e,r);let i=o[n];!i&&g(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||u(n)}return t}function A(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(F(e,t,a,!1,!1)||a===void 0&&F(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}function j(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(F(e,t+1,o,!0,!0,!1,!0)||o===void 0&&F(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=p(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}function M(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),F(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),F(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}function N(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);
vendor: 1,308 bytes, line 36
36if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t<o;t+=1){let o=``;(!i||a!==``)&&(o+=p(e,n));let c=s[t],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!F(e,n+1,c,!0,!0,!0))continue;let u=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;u&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,u&&(o+=p(e,n)),F(e,n+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}function P(e,n,a){let o=a?e.explicitTypes:e.implicitTypes;for(let s=0,c=o.length;s<c;s+=1){let c=o[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n==`object`&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(e.tag=a?c.multi&&c.representName?c.representName(n):c.tag:`?`,c.represent){let a=e.styleMap[c.tag]||c.defaultStyle,o;if(r.call(c.represent)===`[object Function]`)o=c.represent(n,a);else if(i.call(c.represent,a))o=c.represent[a](n,a);else throw new t(`!<`+c.tag+`> tag resolver accepts not "`+a+`" style`);e.dump=o}return!0}}return!1}function F(e,n,i,a,o,s,c){e.tag=null,e.dump=i,P(e,i,!1)||P(e,i,!0);let l=r.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>n;let d=l===`[object Object]`||l===`[object Array]`,f,p;
36if(d&&(f=e.duplicates.indexOf(i),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&n>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(N(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(M(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&n>0?j(e,n-1,e.dump,o):j(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(A(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&w(e,e.dump,n,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}function I(e,t){let n=[],r=[];L(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}function L(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)L(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)L(e[r[i]],t,n)}}}function ee(e,t){t||={};let n=new d(t);n.noRefs||I(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),F(n,0,r,!0,!0)?n.dump+` 37`:``}return xd.dump=ee,xd}var wd;function Td(){if(wd)return au;wd=1;let e=bd(),t=Cd();function n(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return au.Type=vu(),au.Schema=xu(),au.FAILSAFE_SCHEMA=Nu(),au.JSON_SCHEMA=Ju(),au.CORE_SCHEMA=Zu(),au.DEFAULT_SCHEMA=vd(),au.load=e.load,au.loadAll=e.loadAll,au.dump=t.dump,au.YAMLException=fu(),au.types={binary:od(),float:Gu(),map:Au(),null:Iu(),pairs:fd(),set:hd(),timestamp:ed(),bool:zu(),int:Hu(),merge:rd(),omap:ld(),seq:Du(),str:wu()},au.safeLoad=n(`safeLoad`,`load`),au.safeLoadAll=n(`safeLoadAll`,`loadAll`),au.safeDump=n(`safeDump`,`dump`),au}var Ed=iu(Td()),{Type:pee,Schema:mee,FAILSAFE_SCHEMA:hee,JSON_SCHEMA:Dd,CORE_SCHEMA:gee,DEFAULT_SCHEMA:_ee,load:vee,loadAll:yee,dump:bee,YAMLException:xee,types:See,safeLoad:Cee,safeLoadAll:wee,safeDump:Tee}=Ed,Od=n(((e,t)=>{(function(e,n){typeof define==`function`&&define.amd?define([],n()):typeof t==`object`&&t.exports?t.exports=n():(function t(){document&&document.body?e.zenscroll=n():setTimeout(t,9)})()})(e,function(){var e=function(e){return e&&`getComputedStyle`in window&&window.getComputedStyle(e)[`scroll-behavior`]===`smooth`};if(typeof window>`u`||!(`document`in window))return{};var t=function(t,n,r){n||=999,!r&&r!==0&&(r=9);var i,a=function(e){i=e},o=function(){clearTimeout(i),a(0)},s=function(e){return Math.max(0,t.getTopOf(e)-r)},c=function(r,i,s){if(o(),i===0||i&&i<0||e(t.body))t.toY(r),s&&s();else{var c=t.getY(),l=Math.max(0,r)-c,u=new Date().getTime();i||=Math.min(Math.abs(l),n),(function e(){a(setTimeout(function(){var n=Math.min(1,(new Date().getTime()-u)/i),r=Math.max(0,Math.floor(c+l*(n<.5?2*n*n:n*(4-n*2)-1)));t.toY(r),n<1&&t.getHeight()+r<t.body.scrollHeight?e():(setTimeout(o,99),s&&s())},9))})()}},l=function(e,t,n){c(s(e),t,n)};return{setup:function(e,t){return(e===0||e)&&(n=e),(t===0||t)&&(r=t),{defaultDuration:n,edgeOffset:r}},to:l,toY:c,intoView:function(e,n,i){var a=e.getBoundingClientRect().height,o=t.getTopOf(e)+a,u=t.getHeight(),d=t.getY(),f=d+u;s(e)<d||a+r>u?l(e,n,i):o+r>f?c(o-u+r,n,i):i&&i()},center:function(e,n,r,i){c(Math.max(0,t.getTopOf(e)-t.getHeight()/2+(r||e.getBoundingClientRect().height/2)),n,i)},stop:o,moving:function(){return!!i},getY:t.getY,getTopOf:t.getTopOf}},n=document.documentElement,r=function(){return window.scrollY||n.scrollTop},i=t({body:document.scrollingElement||document.body,toY:function(e){window.scrollTo(0,e)},getY:r,getHeight:function(){return window.innerHeight||n.clientHeight},getTopOf:function(e){return e.getBoundingClientRect().top+r()-n.offsetTop}});if(i.createScroller=function(e,r,i){return t({body:e,toY:function(t){e.scrollTop=t},getY:function(){return e.scrollTop},getHeight:function(){return Math.min(e.clientHeight,window.innerHeight||n.clientHeight)},getTopOf:function(e){return e.offsetTop}},r,i)},`addEventListener`in window&&!window.noZensmooth&&!e(document.body)){var a=`history`in window&&`pushState`in history,o=a&&`scrollRestoration`in history;o&&(history.scrollRestoration=`auto`),window.addEventListener(`load`,function(){o&&(setTimeout(function(){history.scrollRestoration=`manual`},9),window.addEventListener(`popstate`,function(e){e.state&&`zenscrollY`in e.state&&i.toY(e.state.zenscrollY)},!1)),window.location.hash&&setTimeout(function(){var e=i.setup().edgeOffset;if(e){var t=document.getElementById(window.location.href.split(`#`)[1]);if(t){var n=Math.max(0,i.getTopOf(t)-e),r=i.getY()-n;0<=r&&r<9&&window.scrollTo(0,n)}}},9)},!1);var s=RegExp(`(^|\\s)noZensmooth(\\s|$)`);window.addEventListener(`click`,function(e){for(var t=e.target;t&&t.tagName!==`A`;)t=t.parentNode;if(!(!t||e.which!==1||e.shiftKey||e.metaKey||e.ctrlKey||e.altKey)){if(o){var n=history.state&&typeof history.state==`object`?history.state:{};n.zenscrollY=i.getY();try{history.replaceState(n,``)}catch{}}var r=t.getAttribute(`href`)||``;if(r.indexOf(`#`)===0&&!s.test(t.className)){var c=0,l=document.getElementById(r.substring(1));if(r!==`#`){if(!l)return;c=i.getTopOf(l)}e.preventDefault();var u=function(){window.location=r},d=i.setup().edgeOffset;d&&(c=Math.max(0,c-d),a&&(u=function(){history.pushState({},``,r)})),i.toY(c,null,u)}}},!1)}return i})})),kd=n(((t,n)=>{var r=(hl(),e(di)),i=`<<anonymous>>`,a,o=function(){invariant(!1,`ImmutablePropTypes type checking code is stripped in production.`)};o.isRequired=o;var s=function(){return o};a={listOf:s,mapOf:s,orderedMapOf:s,setOf:s,orderedSetOf:s,stackOf:s,iterableOf:s,recordOf:s,shape:s,contains:s,mapContains:s,orderedMapContains:s,list:o,map:o,orderedMap:o,set:o,orderedSet:o,stack:o,seq:o,record:o,iterable:o},a.iterable.indexed=d(`Indexed`,r.Iterable.isIndexed),a.iterable.keyed=d(`Keyed`,r.Iterable.isKeyed);function c(e){var t=typeof e;return Array.isArray(e)?`array`:e instanceof RegExp?`object`:e instanceof r.Iterable?`Immutable.`+e.toSource().split(` `)[0]:t}function l(e){function t(t,n,r,a,o,s){var c=[...arguments].slice(6);if(s||=r,a||=i,n[r]==null){var l=o;if(t)return Error(`Required `+l+" `"+s+"` was not specified in "+("`"+a+"`."))}else return e.apply(void 0,[n,r,a,o,s].concat(c))}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function u(e,t){function n(n,r,i,a,o){var s=n[r];if(!t(s)){var l=c(s);return Error(`Invalid `+a+" `"+o+"` of type `"+l+"` "+("supplied to `"+i+"`, expected `"+e+"`."))}return null}return l(n)}function d(e,t){return u(`Iterable.`+e,function(e){return r.Iterable.isIterable(e)&&t(e)})}n.exports=a})),Ad=n(((e,t)=>{function n(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}t.exports=n})),jd=n(((e,t)=>{var n=Et(),r=bt(),i=Ct(),a=Ad(),o=ke();function s(e,t,s){var c=o(e)?n:a,l=arguments.length<3;return c(e,i(t,4),s,l,r)}t.exports=s})),Md=n(((e,t)=>{var n=function(e){return e&&e.Math===Math&&e};t.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof window==`object`&&window)||n(typeof e==`object`&&e)||(function(){return this})()||Function(`return this`)()})),Nd=n(((e,t)=>{t.exports=function(e){try{return!!e()}catch{return!0}}})),Pd=n(((e,t)=>{t.exports=!Nd()(function(){var e=function(){}.bind();return typeof e!=`function`||e.hasOwnProperty(`prototype`)})})),Fd=n(((e,t)=>{var n=Pd(),r=Function.prototype,i=r.apply,a=r.call;t.exports=typeof Reflect==`object`&&Reflect.apply||(n?a.bind(i):function(){return a.apply(i,arguments)})})),Id=n(((e,t)=>{var n=Pd(),r=Function.prototype,i=r.call,a=n&&r.bind.bind(i,i);t.exports=n?a:function(e){return function(){return i.apply(e,arguments)}}})),Ld=n(((e,t)=>{var n=Id(),r=n({}.toString),i=n(``.slice);t.exports=function(e){return i(r(e),8,-1)}})),Rd=n(((e,t)=>{var n=Ld(),r=Id();t.exports=function(e){if(n(e)===`Function`)return r(e)}})),zd=n(((e,t)=>{var n=typeof document==`object`&&document.all;t.exports=n===void 0&&n!==void 0?function(e){return typeof e==`function`||e===n}:function(e){return typeof e==`function`}})),Bd=n(((e,t)=>{t.exports=!Nd()(function(){return Object.defineProperty({},1,{get:function(){return 7}}
vendor: 4,087 bytes, line 37
37)[1]!==7})})),Vd=n(((e,t)=>{var n=Pd(),r=Function.prototype.call;t.exports=n?r.bind(r):function(){return r.apply(r,arguments)}})),Hd=n((e=>{var t={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor;e.f=n&&!t.call({1:2},1)?function(e){var t=n(this,e);return!!t&&t.enumerable}:t})),Ud=n(((e,t)=>{t.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}})),Wd=n(((e,t)=>{var n=Id(),r=Nd(),i=Ld(),a=Object,o=n(``.split);t.exports=r(function(){return!a(`z`).propertyIsEnumerable(0)})?function(e){return i(e)===`String`?o(e,``):a(e)}:a})),Gd=n(((e,t)=>{t.exports=function(e){return e==null}})),Kd=n(((e,t)=>{var n=Gd(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`Can't call method on `+e);return e}})),qd=n(((e,t)=>{var n=Wd(),r=Kd();t.exports=function(e){return n(r(e))}})),Jd=n(((e,t)=>{var n=zd();t.exports=function(e){return typeof e==`object`?e!==null:n(e)}})),Yd=n(((e,t)=>{t.exports={}})),Xd=n(((e,t)=>{var n=Yd(),r=Md(),i=zd(),a=function(e){return i(e)?e:void 0};t.exports=function(e,t){return arguments.length<2?a(n[e])||a(r[e]):n[e]&&n[e][t]||r[e]&&r[e][t]}})),Zd=n(((e,t)=>{t.exports=Id()({}.isPrototypeOf)})),Qd=n(((e,t)=>{var n=Md().navigator,r=n&&n.userAgent;t.exports=r?String(r):``})),$d=n(((e,t)=>{var n=Md(),r=Qd(),i=n.process,a=n.Deno,o=i&&i.versions||a&&a.version,s=o&&o.v8,c,l;s&&(c=s.split(`.`),l=c[0]>0&&c[0]<4?1:+(c[0]+c[1])),!l&&r&&(c=r.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=r.match(/Chrome\/(\d+)/),c&&(l=+c[1]))),t.exports=l})),ef=n(((e,t)=>{var n=$d(),r=Nd(),i=Md().String;t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var e=Symbol(`symbol detection`);return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41})})),tf=n(((e,t)=>{t.exports=ef()&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})),nf=n(((e,t)=>{var n=Xd(),r=zd(),i=Zd(),a=tf(),o=Object;t.exports=a?function(e){return typeof e==`symbol`}:function(e){var t=n(`Symbol`);return r(t)&&i(t.prototype,o(e))}})),rf=n(((e,t)=>{var n=String;t.exports=function(e){try{return n(e)}catch{return`Object`}}})),af=n(((e,t)=>{var n=zd(),r=rf(),i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not a function`)}})),of=n(((e,t)=>{var n=af(),r=Gd();t.exports=function(e,t){var i=e[t];return r(i)?void 0:n(i)}})),sf=n(((e,t)=>{var n=Vd(),r=zd(),i=Jd(),a=TypeError;t.exports=function(e,t){var o,s;if(t===`string`&&r(o=e.toString)&&!i(s=n(o,e))||r(o=e.valueOf)&&!i(s=n(o,e))||t!==`string`&&r(o=e.toString)&&!i(s=n(o,e)))return s;throw new a(`Can't convert object to primitive value`)}})),cf=n(((e,t)=>{t.exports=!0})),lf=n(((e,t)=>{var n=Md(),r=Object.defineProperty;t.exports=function(e,t){try{r(n,e,{value:t,configurable:!0,writable:!0})}catch{n[e]=t}return t}})),uf=n(((e,t)=>{var n=cf(),r=Md(),i=lf(),a=`__core-js_shared__`,o=t.exports=r[a]||i(a,{});(o.versions||=[]).push({version:`3.50.0`,mode:n?`pure`:`global`,copyright:`© 2013â2025 Denis Pushkarev (zloirock.ru), 2025â2026 CoreJS Company (core-js.io). All rights reserved.`,license:`https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE`,source:`https://github.com/zloirock/core-js`})})),df=n(((e,t)=>{var n=uf(),r=Object.create||Object;t.exports=function(e,t){return n[e]||(n[e]=t||r(null))}})),ff=n(((e,t)=>{var n=Kd(),r=Object;t.exports=function(e){return r(n(e))}})),pf=n(((e,t)=>{var n=Id(),r=ff(),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(e,t){return i(r(e),t)}})),mf=n(((e,t)=>{var n=Id(),r=0,i=Math.random(),a=n(1.1.toString);t.exports=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+a(++r+i,36)}})),hf=n(((e,t)=>{var n=Md(),r=df(),i=pf(),a=mf(),o=ef(),s=tf(),c=n.Symbol,l=r(`wks`),u=s?c.for||c:c&&c.withoutSetter||a;t.exports=function(e){return i(l,e)||(l[e]=o&&i(c,e)?c[e]:u(`Symbol.`+e)),l[e]}})),gf=n(((e,t)=>{var n=Vd(),r=Jd(),i=nf(),a=of(),o=sf(),s=hf(),c=TypeError,l=s(`toPrimitive`);t.exports=function(e,t){if(!r(e)||i(e))return e;var s=a(e,l),u;if(s){if(t===void 0&&(t=`default`),u=n(s,e,t),!r(u)||i(u))return u;throw new c(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),o(e,t)}})),_f=n(((e,t)=>
37{var n=gf(),r=nf();t.exports=function(e){var t=n(e,`string`);return r(t)?t:t+``}})),vf=n(((e,t)=>{var n=Md(),r=Jd(),i=n.document,a=r(i)&&r(i.createElement);t.exports=function(e){return a?i.createElement(e):{}}})),yf=n(((e,t)=>{var n=Bd(),r=Nd(),i=vf();t.exports=!n&&!r(function(){return Object.defineProperty(i(`div`),"a",{get:function(){return 7}}).a!==7})})),bf=n((e=>{var t=Bd(),n=Vd(),r=Hd(),i=Ud(),a=qd(),o=_f(),s=pf(),c=yf(),l=Object.getOwnPropertyDescriptor;e.f=t?l:function(e,t){if(e=a(e),t=o(t),c)try{return l(e,t)}catch{}if(s(e,t))return i(!n(r.f,e,t),e[t])}})),xf=n(((e,t)=>{var n=Nd(),r=zd(),i=/#|\.prototype\./,a=function(e,t){var i=s[o(e)];return i===l?!0:i===c?!1:r(t)?n(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;t.exports=a})),Sf=n(((e,t)=>{var n=Rd(),r=af(),i=Pd(),a=n(n.bind);t.exports=function(e,t){return r(e),t===void 0?e:i?a(e,t):function(){return e.apply(t,arguments)}}})),Cf=n(((e,t)=>{var n=Bd(),r=Nd();t.exports=n&&r(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})})),wf=n(((e,t)=>{var n=Jd(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(r(e)+` is not an object`)}})),Tf=n((e=>{var t=Bd(),n=yf(),r=Cf(),i=wf(),a=_f(),o=TypeError,s=Object.defineProperty,c=Object.getOwnPropertyDescriptor,l=`enumerable`,u=`configurable`,d=`writable`;e.f=t?r?function(e,t,n){if(i(e),t=a(t),i(n),typeof e==`function`&&t===`prototype`&&`value`in n&&d in n&&!n[d]){var r=c(e,t);r&&r[d]&&(e[t]=n.value,n={configurable:u in n?n[u]:r[u],enumerable:l in n?n[l]:r[l],writable:!1})}return s(e,t,n)}:s:function(e,t,r){if(i(e),t=a(t),i(r),n)try{return s(e,t,r)}catch{}if(`get`in r||`set`in r)throw new o(`Accessors not supported`);return`value`in r&&(e[t]=r.value),e}})),Ef=n(((e,t)=>{var n=Bd(),r=Tf(),i=Ud();t.exports=n?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}})),Df=n(((e,t)=>{var n=Md(),r=Fd(),i=Rd(),a=zd(),o=bf().f,s=xf(),c=Yd(),l=Sf(),u=Ef(),d=pf();uf();var f=function(e){var t=function(n,i,a){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,i)}return new e(n,i,a)}return r(e,this,arguments)};return t.prototype=e.prototype,t};t.exports=function(e,t){var r=e.target,p=e.global,m=e.stat,h=e.proto,g=p?n:m?n[r]:n[r]&&n[r].prototype,_=p?c:c[r]||u(c,r,{})[r],v=_.prototype,y,b,x,S,C,w,T,E,D;for(S in t)y=s(p?S:r+(m?`.`:`#`)+S,e.forced),b=!y&&g&&d(g,S),w=_[S],b&&(e.dontCallGetSet?(D=o(g,S),T=D&&D.value):T=g[S]),C=b&&T?T:t[S],(y||h||typeof w!=typeof C)&&(E=e.bind&&b?l(C,n):e.wrap&&b?f(C):h&&a(C)?i(C):C,(e.sham||C&&C.sham||w&&w.sham)&&u(E,`sham`,!0),u(_,S,E),h&&(x=r+`Prototype`,d(c,x)||u(c,x,{}),u(c[x],S,C),e.real&&v&&(y||!v[S])&&u(v,S,C)))}})),Of=n(((e,t)=>{var n=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(e){var t=+e;return(t>0?r:n)(t)}})),kf=n(((e,t)=>{var n=Of();t.exports=function(e){var t=+e;return t!==t||t===0?0:n(t)}})),Af=n(((e,t)=>{var n=kf(),r=Math.max,i=Math.min;t.exports=function(e,t){var a=n(e);return a<0?r(a+t,0):i(a,t)}})),jf=n(((e,t)=>{var n=kf(),r=Math.min;t.exports=function(e){var t=n(e);return t>0?r(t,9007199254740991):0}})),Mf=n(((e,t)=>{var n=jf();t.exports=function(e){return n(e.length)}})),Nf=n(((e,t)=>{var n=qd(),r=Af(),i=Mf(),a=function(e){return function(t,a,o){var s=n(t),c=i(s);if(c===0)return!e&&-1;var l=r(o,c),u;if(e&&a!==a){for(;c>l;)if(u=s[l++],u!==u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===a)return e||l||0;return!e&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}})),Pf=n(((e,t)=>{t.exports={}})),Ff=n(((e,t)=>{var n=Id(),r=pf(),i=qd(),a=Nf().indexOf,o=Pf(),s=n([].push);t.exports=function(e,t){var n=i(e),c=0,l=[],u;for(u in n)!r(o,u)&&r(n,u)&&s(l,u);for(;t.length>c;)r(n,u=t[c++])&&(~a(l,u)||s(l,u));return l}})),If=n(((e,t)=>{t.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]})),Lf=n(((e,t)=>{var n=Ff(),r=If();t.exports=Object.keys||function(e){return n(e,r)}})),Rf=n((e=>{e.f=Object.getOwnPropertySymbols})),zf=n(((e,t)=>{var n=Bd(),r=Id(),i=Vd(),a=Nd(),o=Lf(),s=Rf(),c=Hd(),l=ff(),u=Wd(),d=Object.assign,f=Object.defineProperty,p=r([].concat);t.exports=!d||a(function(){if(n&&d({b:1},d(f({},`a`,{enumerable:!0,get:function(){f(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},r=Symbol(`assign detection`),i=`abcdefghijklmnopqrst`;return e[r]=7,i.split(``).forEach(function(e){t[e]=e}),d({},e)[r]!==7||o(d({},t)).join(``)!==i})?function(e,t){for(var r=l(e),a=arguments.length,d=1,f=s.f,m=c.f;a>d;)for(var h=u(arguments[d++]),g=f?p(o(h),f(h)):o(h),_=g.length,v=0,y;_>v;)y=g[v++],(!n||i(m,h,y))&&(r[y]=h[y]);return r}:d})),Bf=n((()=>{var e=Df(),t=zf();e({target:`Object`,stat:!0,arity:2,forced:Object.assign!==t},{assign:t})})),Vf=n(((e,t)=>{Bf(),t.exports=Yd().Object.assign})),Hf=n(((e,t)=>{t.exports=Vf()})),Uf=n(((e,t)=>{t.exports=Hf()})),Wf=n(((e,t)=>{t.exports=Uf()})),Gf=n(((e,t)=>{t.exports=Wf()})),Kf=n(((e,t)=>{t.exports=Id()([].slice)})),qf=n(((e,t)=>{var n=Id(),r=af(),i=Jd(),a=pf(),o=Kf(),s=Pd(),c=Function,l=n([].concat),u=n([].join),d={},f=function(e,t,n){if(!a(d,t)){for(var r=[],i=0;i<t;i++)r[i]=`a[`+i+`]`;d[t]=c(`C,a`,`return new C(`+u(r,`,`)+`)`)}return d[t](e,n)};t.exports=s?c.bind:function(e){var t=r(this),n=t.prototype,a=o(arguments,1
37),s=function(){var n=l(a,o(arguments));return this instanceof s?f(t,n.length,n):t.apply(e,n)};return i(n)&&(s.prototype=n),s}})),Jf=n((()=>{var e=Df(),t=qf();e({target:`Function`,proto:!0,forced:Function.bind!==t},{bind:t})})),Yf=n(((e,t)=>{var n=Md(),r=Yd();t.exports=function(e,t){var i=r[e+`Prototype`],a=i&&i[t];if(a)return a;var o=n[e],s=o&&o.prototype;return s&&s[t]}})),Xf=n(((e,t)=>{Jf(),t.exports=Yf()(`Function`,`bind`)})),Zf=n(((e,t)=>{var n=Zd(),r=Xf(),i=Function.prototype;t.exports=function(e){var t=e.bind;return e===i||n(i,e)&&t===i.bind?r:t}})),Qf=n(((e,t)=>{t.exports=Zf()})),$f=n(((e,t)=>{t.exports=Qf()})),ep=n(((e,t)=>{t.exports=$f()})),tp=n(((e,t)=>{t.exports=ep()})),np=r(Od()),rp=r(kd()),ip=r(jd()),ap=r(Gf()),op=r(tp());function sp(){var e;return sp=ap.default?(0,op.default)(e=ap.default).call(e):function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},sp.apply(null,arguments)}var cp=n(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=i(e,r(n)))}return e}function r(t){if(typeof t==`string`||typeof t==`number`)return t;if(typeof t!=`object`)return``;if(Array.isArray(t))return n.apply(null,t);if(t.toString!==Object.prototype.toString&&!t.toString.toString().includes(`[native code]`))return t.toString();var r=``;for(var a in t)e.call(t,a)&&t[a]&&(r=i(r,a));return r}function i(e,t){return t?e?e+` `+t:e+t:e}t!==void 0&&t.exports?(n.default=n,t.exports=n):typeof define==`function`&&typeof define.amd==`object`&&define.amd?define(`classnames`,[],function(){return n}):window.classNames=n})()})),lp=n(((e,t)=>{t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}
37),t&&t.focus()}}})),up=n(((e,t)=>{var n=lp(),r={"text/plain":`Text`,"text/html":`Url`,default:`Text`},i=`Copy to clipboard: #{key}, Enter`;function a(e){var t=(/mac os x/i.test(navigator.userAgent)?`â`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function o(e,t){var o,s,c,l,u,d,f=!1;t||={},o=t.debug||!1;try{if(c=n(),l=document.createRange(),u=document.getSelection(),d=document.createElement(`span`),d.textContent=e,d.ariaHidden=`true`,d.style.all=`unset`,d.style.position=`fixed`,d.style.top=0,d.style.clip=`rect(0, 0, 0, 0)`,d.style.whiteSpace=`pre`,d.style.webkitUserSelect=`text`,d.style.MozUserSelect=`text`,d.style.msUserSelect=`text`,d.style.userSelect=`text`,d.addEventListener(`copy`,function(n){if(n.stopPropagation(),t.format){if(n.preventDefault(),n.clipboardData===void 0){o&&console.warn(`unable to use e.clipboardData`),o&&console.warn(`trying IE specific stuff`),window.clipboardData.clearData();var i=r[t.format]||r.default;window.clipboardData.setData(i,e)}else n.clipboardData.clearData(),n.clipboardData.setData(t.format,e)}t.onCopy&&(n.preventDefault(),t.onCopy(n.clipboardData))}),document.body.appendChild(d),l.selectNodeContents(d),u.addRange(l),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);f=!0}catch(n){o&&console.error(`unable to copy using execCommand: `,n),o&&console.warn(`trying IE specific stuff`);try{window.clipboardData.setData(t.format||`text`,e),t.onCopy&&t.onCopy(window.clipboardData),f=!0}catch(n){o&&console.error(`unable to copy using clipboardData: `,n),o&&console.error(`falling back to prompt`),s=a(`message`in t?t.message:i),window.prompt(s,e)}}finally{u&&(typeof u.removeRange==`function`?u.removeRange(l):u.removeAllRanges()),d&&document.body.removeChild(d),c()}return f}t.exports=o})),dp=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CopyToClipboard=void 0;var t=i(up()),n=i(s()),r=[`text`,`onCopy`,`options`,`children`];function i(e){return e&&e.__esModule?e:{default:e}}function a(e){"@babel/helpers - typeof";return a=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e,t){if(e==null)return{};var n,r,i=u(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function d(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,S(r.key),r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t,n){return t=v(t),h(e,_()?Reflect.construct(t,n||[],v(e).constructor):t.apply(e,n))}function h(e,t){if(t&&(a(t)==`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return g(e)}function g(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function _(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_=function(){return!!e})()}function v(e){return v=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},v(e)}function y(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b(e,t)}function b(e,t){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},b(e,t)}function x(e,t,n){return(t=S(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(e){var t=C(e,`string`);return a(t)==`symbol`?t:t+``}function C(e,t){if(a(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}x(e.CopyToClipboard=function(e){function i(){var e;d(this,i);var r=[...arguments];return e=m(this,i,[].concat(r)),x(e,`onClick`,function(r){var i=e.props,a=i.text,o=i.onCopy,s=i.children,c=i.options,l=n.default.Children.only(s),u=(0,t.default)(a,c);o&&o(a,u),l!=null&&l.props&&typeof l.props.onClick==`function`&&l.props.onClick(r)}),e}return y(i,e),p(i,[{key:`render`,value:function(){var e=this.props;e.text,e.onCopy,e.options;var t=e.children,i=l(e,r),a=n.default.Children.only(t);return n.default.cloneElement(a,c(c({},i),{},{onClick:this.onClick}))}}])}(n.default.PureComponent),`defaultProps`,{onCopy:void 0,options:void 0})})),fp=n(((e,t)=>{var n=dp().CopyToClipboard;n.CopyToClipboard=n,t.exports=n})),pp=r(cp()),mp=fp();function hp(e){return hp=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},hp(e)}function gp(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function _p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function vp(e,t,n){return t&&_p(e.prototype,t),n&&_p(e,n),e}
37function yp(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bp(n,!0).forEach(function(t){yp(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bp(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sp(e,t){if(typeof t!=`function`&&t!==null)throw 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&&wp(e,t)}function Cp(e){return Cp=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Cp(e)}function wp(e,t){return wp=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},wp(e,t)}function Tp(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Ep(e,t){return t&&(typeof t==`object`||typeof t==`function`)?t:Tp(e)}var Dp={};function Op(e){return e!==null&&hp(e)===`object`&&typeof e.get==`function`&&typeof e.has==`function`}function kp(e){return e==null}function Ap(e,t,n){return kp(e)?n:Op(e)?e.has(t)?e.get(t):n:hasOwnProperty.call(e,t)?e[t]:n}
37function jp(e,t,n){for(var r=0;r!==t.length;)if(e=Ap(e,t[r++],Dp),e===Dp)return n;return e}function Mp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=Np(t,n);return(e||Object.keys(xp({},n,{},t))).every(r)}function Np(e,t){return function(n){if(typeof n==`string`)return Da(t[n],e[n]);if(Array.isArray(n))return Da(jp(t,n),jp(e,n));throw TypeError(`Invalid key: expected Array or string: `+n)}}var Pp=function(e){Sp(t,e);function t(){return gp(this,t),Ep(this,Cp(t).apply(this,arguments))}return vp(t,[{key:`shouldComponentUpdate`,value:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return!Mp(this.updateOnProps,this.props,e,`updateOnProps`)||!Mp(this.updateOnStates,this.state,t,`updateOnStates`)}}]),t}(B.Component);function Fp(e,t,n){let r=Array(e);return new Proxy(r,{get(r,i,a){if(typeof i==`string`){let a=i.charCodeAt(0);if(a>=48&&a<=57){let a=+i;if(Number.isInteger(a)&&a>=0&&a<e){let e=r[a];if(!e){let i=t[a*2];e=r[a]={index:a,key:n(a),start:i,size:t[a*2+1],end:i+t[a*2+1],lane:0}}return e}}if(i===`length`)return e}return Reflect.get(r,i,a)}})}function Ip(e,t,n){let r=n.initialDeps??[],i,a=!0;function o(){let o=e();return o.length!==r.length||o.some((e,t)=>r[t]!==e)?(r=o,i=t(...o),n?.onChange&&!(a&&n.skipInitialOnChange)&&n.onChange(i),a=!1,i):i}return o.updateDeps=e=>{r=e},o}function Lp(e,t){if(e===void 0)throw Error(`Unexpected undefined${t?`: ${t}`:``}`);return e}var Rp=(e,t)=>Math.abs(e-t)<1.01,zp=(e,t,n)=>{let r;return Object.assign(function(...i){e.clearTimeout(r),r=e.setTimeout(()=>t.apply(this,i),n)},{cancel:()=>{e.clearTimeout(r)}})},Bp,Vp=()=>{if(Bp!==void 0)return Bp;if(typeof navigator>`u`)return Bp=!1;if(/iP(hone|od|ad)/.test(navigator.userAgent))return Bp=!0;let e=navigator.maxTouchPoints;return Bp=navigator.platform===`MacIntel`&&e!==void 0&&e>0},Hp=e=>{let{offsetWidth:t,offsetHeight:n}=e;return{width:t,height:n}},Up=e=>e,Wp=e=>{let t=Math.max(e.startIndex-e.overscan,0),n=Math.min(e.endIndex+e.overscan,e.count-1)-t+1,r=Array(n);for(let e=0;e<n;e++)r[e]=t+e;return r},Gp=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=e.targetWindow;if(!r)return;let i=e=>{let{width:n,height:r}=e;t({width:Math.round(n),height:Math.round(r)})};if(i(Hp(n)),!r.ResizeObserver)return()=>{};let a=new r.ResizeObserver(t=>{let r=()=>{let e=t[0];if(e?.borderBoxSize){let t=e.borderBoxSize[0];if(t){i({width:t.inlineSize,height:t.blockSize});return}}i(Hp(n))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(r):r()});return a.observe(n,{box:`border-box`}),()=>{a.unobserve(n)}},Kp={passive:!0},qp=(e,t)=>{let n=e.scrollElement;if(!n)return;let r=()=>{t({width:n.innerWidth,height:n.innerHeight})};return r(),n.addEventListener(`resize`,r,Kp),()=>{n.removeEventListener(`resize`,r)}},Jp=typeof window>`u`||`onscrollend`in window,Yp=(e,t,n)=>{let r=e.scrollElement;if(!r)return;let i=e.targetWindow;if(!i)return;let a=e.options.useScrollendEvent&&Jp,o=0,s=a?null:zp(i,()=>t(o,!1),e.options.isScrollingResetDelay),c=e=>()=>{o=n(r),s?.(),t(o,e)},l=c(!0),u=c(!1);return r.addEventListener(`scroll`,l,Kp),a&&r.addEventListener(`scrollend`,u,Kp),()=>{r.removeEventListener(`scroll`,l),a&&r.removeEventListener(`scrollend`,u),s?.cancel()}},Xp=(e,t)=>Yp(e,t,t=>{let{horizontal:n,isRtl:r}=e.options;return n?t.scrollLeft*(r&&-1||1):t.scrollTop}),Zp=(e,t)=>Yp(e,t,t=>e.options.horizontal?t.scrollX:t.scrollY),Qp=(e,t,n)=>{if(n.options.useCachedMeasurements){let t=n.indexFromElement(e),r=n.options.getItemKey(t);return n.itemSizeCache.get(r)??n.options.estimateSize(t)}if(t?.borderBoxSize){let e=t.borderBoxSize[0];if(e)return Math.round(e[n.options.horizontal?`inlineSize`:`blockSize`])}if(!t){let t=n.indexFromElement(e),r=n.options.getItemKey(t),i=n.itemSizeCache.get(r);if(i!==void 0)return i}return e[n.options.horizontal?`offsetWidth`:`offsetHeight`]},$p=(e,{adjustments:t=0,behavior:n},r)=>{var i,a;(a=(i=r.scrollElement)?.scrollTo)==null||a.call(i,{[r.options.horizontal?`left`:`top`]:e+t,behavior:n})},em=$p,tm=$p,nm=class{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this._flatMeasurements=null,this.itemSizeCache=new Map,this.itemSizeCacheVersion=0,this.laneAssignments=new Map,this.pendingMin=null,this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.pendingScrollAnchor=null,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._intendedScrollOffset=null,this.elementsCache=new Map,this.now=()=>{var e;return((e=this.targetWindow?.performance)?.now)?.call(e)??Date.now()},this.observer=(()=>{let e=null,t=()=>e||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:e=new this.targetWindow.ResizeObserver(e=>
vendor: 12,022 bytes, line 37
37{e.forEach(e=>{let t=()=>{let t=e.target,n=this.indexFromElement(t);if(!t.isConnected){this.observer.unobserve(t);for(let[e,n]of this.elementsCache)if(n===t){this.elementsCache.delete(e);break}return}this.isIndexInRange(n)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(t,e,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(t):t()})}));return{disconnect:()=>{var n;(n=t())==null||n.disconnect(),e=null},observe:e=>t()?.observe(e,{box:`border-box`}),unobserve:e=>t()?.unobserve(e)}})(),this.range=null,this.setOptions=e=>{let t={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:Up,rangeExtractor:Wp,onChange:()=>{},measureElement:Qp,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:`data-index`,initialMeasurementsCache:[],lanes:1,anchorTo:`start`,followOnAppend:!1,scrollEndThreshold:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,laneAssignmentMode:`estimate`,useCachedMeasurements:!1};for(let n in e){let r=e[n];r!==void 0&&(t[n]=r)}let n=this.options,r=null,i=null,a=!1;if(n!==void 0&&n.enabled&&t.enabled&&t.anchorTo===`end`&&this.scrollElement!==null){let e=n.count,o=t.count,s=this.getMeasurements(),c=e>0?s[0]?.key??n.getItemKey(0):null,l=e>0?s[e-1]?.key??n.getItemKey(e-1):null;if(o!==e||e>0&&o>0&&(t.getItemKey(0)!==c||t.getItemKey(o-1)!==l)){a=!0;let c=e>0?this.getVirtualItemForOffset(this.getScrollOffset())??s[0]:null;c&&(r=[c.key,this.getScrollOffset()-c.start]);let u=t.followOnAppend===!0?`auto`:t.followOnAppend||null;u&&o>e&&this.isAtEnd(n.scrollEndThreshold)&&(e===0||t.getItemKey(o-1)!==l)&&(i=u)}}this.options=t,a&&(this.pendingMin=0,this.itemSizeCacheVersion++);let o=!1,s=0;if(r&&this.scrollOffset!==null){let[e,t]=r,n=this.getMeasurements(),{count:i,getItemKey:a}=this.options,c=0;for(;c<i&&a(c)!==e;)c++;if(c<i){let e=n[c];if(e){let n=Math.max(0,e.start+t);n!==this.scrollOffset&&(s=n-this.scrollOffset,this.scrollOffset=n,o=!0)}}}(o||i)&&(this.pendingScrollAnchor=[o?r[0]:null,o?r[1]:0,i,s])},this.notify=e=>{var t,n;(n=(t=this.options).onChange)==null||n.call(t,this,e)},this.maybeNotify=Ip(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),e=>{this.notify(e)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(e=>e()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.isScrolling=!1,this.scrollDirection=null,this._iosDeferredAdjustment=0,this._iosTouching=!1,this._iosJustTouchEnded=!1,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{let e=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==e){if(this.cleanup(),!e){this.maybeNotify();return}if(this.scrollElement=e,this.targetWindow=this.scrollElement&&`ownerDocument`in this.scrollElement?this.scrollElement.ownerDocument.defaultView:this.scrollElement?.window??null,this.elementsCache.forEach(e=>{this.observer.observe(e)}),this.unsubs.push(this.options.observeElementRect(this,e=>{this.scrollRect=e,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(e,t)=>{if(t&&this._intendedScrollOffset===null&&e===this.scrollOffset)return;this._intendedScrollOffset!==null&&Math.abs(e-this._intendedScrollOffset)<1.5&&(e=this._intendedScrollOffset),this._intendedScrollOffset=null,this.scrollAdjustments=0;let n=this.getScrollOffset();this.scrollDirection=t?n===e?this.scrollDirection:n<e?`forward`:`backward`:null,this.scrollOffset=e,this.isScrolling=t,this._flushIosDeferredIfReady(),this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),`addEventListener`in this.scrollElement){let e=this.scrollElement,t=()=>{this._iosTouching=!0,this._iosJustTouchEnded=!1,this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)},n=()=>{this._iosTouching=!1,Vp()&&this.targetWindow!=null&&(this._iosJustTouchEnded=!0,this._iosTouchEndTimerId=this.targetWindow.setTimeout(()=>{this._iosJustTouchEnded=!1,this._iosTouchEndTimerId=null,this._flushIosDeferredIfReady()},150))};e.addEventListener(`touchstart`,t,Kp),e.addEventListener(`touchend`,n,Kp),this.unsubs.push(()=>{e.removeEventListener(`touchstart`,t),e.removeEventListener(`touchend`,n),this._iosTouchEndTimerId!==null&&this.targetWindow!=null&&(this.targetWindow.clearTimeout(this._iosTouchEndTimerId),this._iosTouchEndTimerId=null)})}this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}let t=this.pendingScrollAnchor;if(this.pendingScrollAnchor=null,t&&this.scrollElement&&this.options.enabled){let[e,n,r,i]=t;e!==null&&!r&&(Vp()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?i!==0&&(this._iosDeferredAdjustment+=i):this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})),r&&this.scrollToEnd({behavior:r})}},this._flushIosDeferredIfReady=()=>{if(this._iosDeferredAdjustment===0||this.isScrolling||this._iosTouching||this._iosJustTouchEnded)return;let e=this.getScrollOffset(),t=this.getMaxScrollOffset();if(e<0||e>t)return;if(this._iosDeferredAdjustment<0&&e>=t-1){this._iosDeferredAdjustment=0;return}let n=this._iosDeferredAdjustment;this._iosDeferredAdjustment=0,this._scrollToOffset(e,{adjustments:this.scrollAdjustments+=n,behavior:void 0})},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?`width`:`height`]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset==`function`?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getMeasurementOptions=Ip(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes,this.options.laneAssignmentMode,this.options.gap],(e,t,n,r,i,a,o,s)=>(this.prevLanes!==void 0&&this.prevLanes!==a&&(this.lanesChangedFlag=!0),this.prevLanes=a,this.pendingMin=null,{count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s}),{key:!1}),this.isIndexInRange=e=>e>=0&&e<this.options.count,this.getMeasurements=Ip(()=>[this.getMeasurementOptions(),this.itemSizeCacheVersion],({count:e,paddingStart:t,scrollMargin:n,getItemKey:r,enabled:i,lanes:a,laneAssignmentMode:o,gap:s},c)=>{let l=this.itemSizeCache;if(!i)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>e)for(let t of this.laneAssignments.keys())t>=e&&this.laneAssignments.delete(t);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMin=null),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(e=>{this.itemSizeCache.set(e.key,e.size)}));let u=this.lanesSettling?0:this.pendingMin??0;if(this.pendingMin=null,this.lanesSettling&&this.measurementsCache.length===e&&(this.lanesSettling=!1),a===1){let i=e*2,a=this._flatMeasurements;if(!a||a.length<i){let e=new Float64Array(i);a&&u>0&&e.set(a.subarray(0,u*2)),a=e,this._flatMeasurements=a}let o;if(u===0)o=t+n;else{let e=u-1;o=a[e*2]+a[e*2+1]+s}for(let t=u;t<e;t++){let e=r(t),n=l.get(e),i=typeof n==`number`?n:this.options.estimateSize(t);a[t*2]=o,a[t*2+1]=i,o+=i+s}let c=Fp(e,a,r);return this.measurementsCache=c,c}let d=this.measurementsCache.slice(0,u),f=Array(a).fill(void 0),p=new Float64Array(a),m=0;for(let e=0;e<u;e++){let t=d[e];t&&(f[t.lane]===void 0&&m++,f[t.lane]=e,p[t.lane]=t.end)}for(let i=u;i<e;i++){let e=r(i),c=this.laneAssignments.get(i),u,h,g=o===`estimate`||l.has(e);if(c!==void 0&&this.options.lanes>1){u=c;let e=f[u],r=e===void 0?void 0:d[e];h=r?r.end+s:t+n}else if(m===a){let e=0,t=p[0],n=f[0];for(let r=1;r<a;r++){let i=p[r];(i<t||i===t&&f[r]<n)&&(e=r,t=i,n=f[r])}u=e,h=t+s,g&&this.laneAssignments.set(i,u)}else u=i%this.options.lanes,h=t+n,g&&this.laneAssignments.set(i,u);let _=l.get(e),v=typeof _==`number`?_:this.options.estimateSize(i),y=h+v;d[i]={index:i,start:h,size:v,end:y,key:e,lane:u},f[u]===void 0&&m++,f[u]=i,p[u]=y}return this.measurementsCache=d,d},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ip(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(e,t,n,r)=>e.length===0||t===0?(this.range=null,null):(this.range=am(e,t,n,r,r===1&&this._flatMeasurements!=null?this._flatMeasurements:null),this.range),{key:!1,debug:()=>this.options.debug}),this.getVirtualIndexes=Ip(()=>{let e=null,t=null,n=this.calculateRange();return n&&(e=n.startIndex,t=n.endIndex),this.maybeNotify.updateDeps([this.isScrolling,e,t]),[this.options.rangeExtractor,this.options.overscan,this.options.count,e,t]},(e,t,n,r,i)=>r===null||i===null?[]:e({startIndex:r,endIndex:i,overscan:t,count:n}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=e=>{let t=this.options.indexAttribute,n=e.getAttribute(t);return n?parseInt(n,10):(console.warn(`Missing attribute name '${t}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=e=>{if(!this.scrollState||this.scrollState.behavior!==`smooth`)return!0;let t=this.scrollState.index??this.getVirtualItemForOffset(this.scrollState.lastTargetOffset)?.index;if(t!==void 0&&this.range){let n=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),r=Math.max(0,t-n),i=Math.min(this.options.count-1,t+n);return e>=r&&e<=i}return!0},this.measureElement=e=>{if(!e){this.elementsCache.forEach((e,t)=>{e.isConnected||(this.observer.unobserve(e),this.elementsCache.delete(t))});return}let t=this.indexFromElement(e);if(!this.isIndexInRange(t))return;let n=this.options.getItemKey(t),r=this.elementsCache.get(n);r!==e&&(r&&this.observer.unobserve(r),this.observer.observe(e),this.elementsCache.set(n,e)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(t)&&this.resizeItem(t,this.options.measureElement(e,void 0,this))},this.resizeItem=(e,t)=>{if(!this.isIndexInRange(e))return;let n,r,i,a=this._flatMeasurements;if(this.options.lanes===1&&a!==null)i=this.options.getItemKey(e),r=a[e*2],n=a[e*2+1];else{let t=this.measurementsCache[e];if(!t)return;i=t.key,r=t.start,n=t.size}let o=this.itemSizeCache.get(i)??n,s=t-o;if(s!==0){let a=this.options.anchorTo===`end`&&this.scrollState?.behavior!==`smooth`&&this.getVirtualDistanceFromEnd()<=this.options.scrollEndThreshold,c=a?this.getTotalSize():0,l=this.getScrollOffset()+this.scrollAdjustments,u=this.itemSizeCache.has(i)?r+o<=l&&this.scrollDirection!==`backward`:r<l,d=this.scrollState?.behavior!==`smooth`&&(this.shouldAdjustScrollPositionOnItemSizeChange===void 0?u:this.shouldAdjustScrollPositionOnItemSizeChange(this.measurementsCache[e]??{index:e,key:i,start:r,size:n,end:r+n,lane:0},s,this));(this.pendingMin===null||e<this.pendingMin)&&(this.pendingMin=e),this.itemSizeCache.set(i,t),this.itemSizeCacheVersion++;let f=!1;a?f=this.applyScrollAdjustment(this.getTotalSize()-c):d&&(f=this.applyScrollAdjustment(s)),this.notify(f)}},this.getVirtualItems=Ip(()=>[this.getVirtualIndexes(),this.getMeasurements()],(e,t)=>{let n=[];for(let r=0,i=e.length;r<i;r++){let i=t[e[r]];n.push(i)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=e=>{let t=this.getMeasurements();if(t.length===0)return;let n=this._flatMeasurements,r=this.options.lanes===1&&n!=null;return Lp(t[rm(0,t.length-1,r?e=>n[e*2]:e=>Lp
vendor: 3,798 bytes, line 37
37(t[e]).start,e)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if(`scrollHeight`in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{let e=this.scrollElement.document.documentElement;return this.options.horizontal?e.scrollWidth-this.scrollElement.innerWidth:e.scrollHeight-this.scrollElement.innerHeight}},this.getVirtualDistanceFromEnd=()=>Math.max(this.getTotalSize()-this.getSize()-this.getScrollOffset(),0),this.getDistanceFromEnd=()=>Math.max(this.getMaxScrollOffset()-this.getScrollOffset(),0),this.isAtEnd=(e=this.options.scrollEndThreshold)=>this.getDistanceFromEnd()<=e,this.getOffsetForAlignment=(e,t,n=0)=>{if(!this.scrollElement)return 0;let r=this.getSize(),i=this.getScrollOffset();t===`auto`&&(t=e>=i+r?`end`:`start`),t===`center`?e+=(n-r)/2:t===`end`&&(e-=r);let a=this.getMaxScrollOffset();return Math.max(Math.min(a,e),0)},this.getOffsetForIndex=(e,t=`auto`)=>{e=Math.max(0,Math.min(e,this.options.count-1));let n=this.getSize(),r=this.getScrollOffset(),i=this.measurementsCache[e];if(!i)return;if(t===`auto`){if(i.end>=r+n-this.options.scrollPaddingEnd)t=`end`;else if(i.start<=r+this.options.scrollPaddingStart)t=`start`;else return[r,t]}if(t===`end`&&e===this.options.count-1)return[this.getMaxScrollOffset(),t];let a=t===`end`?i.end+this.options.scrollPaddingEnd:i.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(a,t,i.size),t]},this.scrollToOffset=(e,{align:t=`start`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0;let r=this.getOffsetForAlignment(e,t),i=this.now();this.scrollState={index:null,align:t,behavior:n,startedAt:i,lastTargetOffset:r,stableFrames:0},this._scrollToOffset(r,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollToIndex=(e,{align:t=`auto`,behavior:n=`auto`}={})=>{this._iosDeferredAdjustment=0,e=Math.max(0,Math.min(e,this.options.count-1));let r=this.getOffsetForIndex(e,t);if(!r)return;let[i,a]=r,o=this.now();this.scrollState={index:e,align:a,behavior:n,startedAt:o,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.scrollBy=(e,{behavior:t=`auto`}={})=>{let n=this.getScrollOffset()+e,r=this.now();this.scrollState={index:null,align:`start`,behavior:t,startedAt:r,lastTargetOffset:n,stableFrames:0},this._scrollToOffset(n,{adjustments:void 0,behavior:t}),this.scheduleScrollReconcile()},this.scrollToEnd=({behavior:e=`auto`}={})=>{if(this.options.count>0){this.scrollToIndex(this.options.count-1,{align:`end`,behavior:e});return}this.scrollToOffset(Math.max(this.getTotalSize()-this.getSize(),0),{behavior:e})},this.getTotalSize=()=>{let e=this.getMeasurements(),t;if(e.length===0)t=this.options.paddingStart;else if(this.options.lanes===1){let n=e.length-1,r=this._flatMeasurements;t=r==null?e[n]?.end??0:r[n*2]+r[n*2+1]}else{let n=Array(this.options.lanes).fill(null),r=e.length-1;for(;r>=0&&n.some(e=>e===null);){let t=e[r];n[t.lane]===null&&(n[t.lane]=t.end),r--}t=Math.max(...n.filter(e=>e!==null))}return Math.max(t-this.options.scrollMargin+this.options.paddingEnd,0)},this.takeSnapshot=()=>{let e=[];if(this.itemSizeCache.size===0)return e;let t=this.getMeasurements();for(let n of t)n&&this.itemSizeCache.has(n.key)&&e.push({index:n.index,key:n.key,start:n.start,size:n.size,end:n.end,lane:n.lane});return e},this._scrollToOffset=(e,{adjustments:t,behavior:n})=>{this._intendedScrollOffset=e+(t??0),this.options.scrollToFn(e,{behavior:n,adjustments:t},this)},this.measure=()=>{this.pendingMin=null,this.itemSizeCache.clear(),this.laneAssignments.clear(),this.itemSizeCacheVersion++,this.notify(!1)},this.setOptions(e)}applyScrollAdjustment(e,t){return e===0?!1:
vendor: 3,727 bytes, line 37
37Vp()&&(this.isScrolling||this._iosTouching||this._iosJustTouchEnded)?(this._iosDeferredAdjustment+=e,!1):(this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=e,behavior:t}),this.scrollOffset!==null&&(this.scrollOffset+=this.scrollAdjustments,this.scrollOffset<0&&(this.scrollOffset=0),this.scrollAdjustments=0),!0)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId??=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()})}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}let e=this.scrollState.index==null?void 0:this.getOffsetForIndex(this.scrollState.index,this.scrollState.align),t=e?e[0]:this.scrollState.lastTargetOffset,n=t!==this.scrollState.lastTargetOffset;if(!n&&Rp(t,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=1){this.getScrollOffset()!==t&&this._scrollToOffset(t,{adjustments:void 0,behavior:`auto`}),this.scrollState=null;return}}else if(this.scrollState.stableFrames=0,n){let e=this.getSize()||600,n=Math.abs(t-this.getScrollOffset()),r=this.scrollState.behavior===`smooth`&&n>e;this.scrollState.lastTargetOffset=t,r||(this.scrollState.behavior=`auto`),this._scrollToOffset(t,{adjustments:void 0,behavior:r?`smooth`:`auto`})}this.scheduleScrollReconcile()}},rm=(e,t,n,r)=>{for(;e<=t;){let i=(e+t)/2|0,a=n(i);if(a<r)e=i+1;else if(a>r)t=i-1;else return i}return e>0?e-1:0};function im(e,t,n){let r=0;for(;r<=t;){let i=(r+t)/2|0,a=e[i*2];if(a<n)r=i+1;else if(a>n)t=i-1;else return i}return r>0?r-1:0}function am(e,t,n,r,i){let a=e.length-1;if(e.length<=r)return{startIndex:0,endIndex:a};if(r===1&&i!==null){let e=im(i,a,n),r=e,o=n+t;for(;r<a&&i[r*2]+i[r*2+1]<o;)r++;return{startIndex:e,endIndex:r}}let o=rm(0,a,t=>e[t].start,n),s=o;if(r===1)for(;s<a&&e[s].end<n+t;)s++;else if(r>1){let i=Array(r).fill(0);for(;s<a&&i.some(e=>e<n+t);){let t=e[s];i[t.lane]=t.end,s++}let c=Array(r).fill(n+t);for(;o>=0&&c.some(e=>e>=n);){let t=e[o];c[t.lane]=t.start,o--}o=Math.max(0,o-o%r),s=Math.min(a,s+(r-1-s%r))}return{startIndex:o,endIndex:s}}var om=typeof document<`u`?B.useLayoutEffect:B.useEffect;function sm({useFlushSync:e=!0,directDomUpdates:t=!1,directDomUpdatesMode:n=`transform`,...r}){let i=B.useReducer(e=>e+1,0)[1],a=B.useRef({enabled:t,mode:n,container:null,lastSize:null,lastPositions:new WeakMap,prevRange:null});a.current.enabled=t,a.current.mode=n;let o=e=>{let t=a.current;if(!t.enabled||!t.container)return;let n=e.getTotalSize();if(n!==t.lastSize){t.lastSize=n;let r=e.options.horizontal?`width`:`height`;t.container.style[r]=`${n}px`}},s=e=>{let t=a.current;if(!t.enabled||!t.container)return;o(e);let n=!!e.options.horizontal,r=t.mode===`transform`,i=n?`left`:`top`,s=e.options.scrollMargin,c=e.getVirtualItems();for(let a of c){let o=a.start-s,c=e.elementsCache.get(a.key);c&&t.lastPositions.get(c)!==o&&(t.lastPositions.set(c,o),r?c.style.transform=n?`translate3d(${o}px, 0, 0)`:`translate3d(0, ${o}px, 0)`:c.style[i]=`${o}px`)}},c={...r,onChange:(t,n)=>{var o;let c=a.current,l=!0;if(c.enabled){s(t);let e=t.range,n=c.prevRange;l=!n||n.isScrolling!==t.isScrolling||n.startIndex!==e?.startIndex||n.endIndex!==e?.endIndex,l&&(c.prevRange=e?{startIndex:e.startIndex,endIndex:e.endIndex,isScrolling:t.isScrolling}:null)}l&&(e&&n?(0,Nn.flushSync)(i):i()),(o=r.onChange)==null||o.call(r,t,n)}},[l]=B.useState(()=>{let e=new nm(c);return Object.assign(e,{containerRef:t=>{let n=a.current;if(n.container=t,n.lastSize=null,t&&n.enabled){let r=e.getTotalSize();n.lastSize=r;let i=e.options.horizontal?`width`:`height`;t.style[i]=`${r}px`}}})});return l.setOptions(c),om(()=>
37l._didMount(),[]),om(()=>(o(l),l._willUpdate())),om(()=>{s(l)}),l}function cm(e){return sm({observeElementRect:Gp,observeElementOffset:Xp,scrollToFn:tm,...e})}function lm(e){return sm({getScrollElement:()=>typeof document<`u`?window:null,observeElementRect:qp,observeElementOffset:Zp,scrollToFn:em,initialOffset:()=>typeof document<`u`?window.scrollY:0,...e})}var um=n((e=>{function t(e){"@babel/helpers - typeof";return t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},t(e)}Object.defineProperty(e,"__esModule",{value:!0}),e.DebounceInput=void 0;var n=a(s()),r=a(tt()),i=[`element`,`onChange`,`value`,`minLength`,`debounceTimeout`,`forceNotifyByEnter`,`forceNotifyOnBlur`,`onKeyDown`,`onBlur`,`inputRef`];function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(e==null)return{};var n=c(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function c(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?l(Object(n),!0).forEach(function(t){x(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function f(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function p(e,t,n){return t&&f(e.prototype,t),n&&f(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function m(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&h(e,t)}function h(e,t){return h=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},h(e,t)}function g(e){var t=y();return function(){var n=b(e),r;if(t){var i=b(this).constructor;r=Reflect.construct(n,arguments,i)}else r=n.apply(this,arguments);return _(this,r)}}function _(e,n){if(n&&(t(n)===`object`||typeof n==`function`))return n;if(n!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return v(e)}function v(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function y(){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(e){return e.__proto__||Object.getPrototypeOf(e)},b(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){m(a,e);var t=g(a);function a(e){var n;d(this,a),n=t.call(this,e),x(v(n),`onChange`,function(e){e.persist();var t=n.state.value,r=n.props.minLength;n.setState({value:e.target.value},function(){var i=n.state.value;if(i.length>=r){n.notify(e);return}t.length>i.length&&n.notify(u(u({},e),{},{target:u(u({},e.target),{},{value:``})}))})}),x(v(n),`onKeyDown`,function(e){e.key===`Enter`&&n.forceNotify(e);var t=n.props.onKeyDown;t&&(e.persist(),t(e))}),x(v(n),`onBlur`,function(e){n.forceNotify(e);var t=n.props.onBlur;t&&(e.persist(),t(e))}),x(v(n),`createNotifier`,function(e){if(e<0)n.notify=function(){return null};else if(e===0)n.notify=n.doNotify;else{var t=(0,r.default)(function(e){n.isDebouncing=!1,n.doNotify(e)},e);n.notify=function(e){n.isDebouncing=!0,t(e)},n.flush=function(){return t.flush()},n.cancel=function(){n.isDebouncing=!1,t.cancel()}}}),x(v(n),`doNotify`,function(){n.props.onChange.apply(void 0,arguments)}),x(v(n),`forceNotify`,function(e){var t=n.props.debounceTimeout;if(!(!n.isDebouncing&&t>0)){n.cancel&&n.cancel();var r=n.state.value,i=n.props.minLength;r.length>=i?n.doNotify(e):n.doNotify(u(u({},e),{},{target:u(u({},e.target),{},{value:r})}))}}),n.isDebouncing=!1,n.state={value:e.value===void 0||e.value===null?``:e.value};var i=n.props.debounceTimeout;return n.createNotifier(i),n}return p(a,[{key:`componentDidUpdate`,value:function(e){if(!this.isDebouncing){var t=this.props,n=t.value,r=t.debounceTimeout,i=e.debounceTimeout,a=e.value,o=this.state.value;n!==void 0&&a!==n&&o!==n&&this.setState({value:n}),r!==i&&this.createNotifier(r)}}},{key:`componentWillUnmount`,value:function(){this.flush&&this.flush()}},{key:`render`,value:function(){var e=this.props,t=e.element;e.onChange,e.value,e.minLength,e.debounceTimeout;var r=e.forceNotifyByEnter,a=e.forceNotifyOnBlur,s=e.onKeyDown,c=e.onBlur,l=e.inputRef,d=o(e,i),f=this.state.value,p=r?{onKeyDown:this.onKeyDown}:s?{onKeyDown:s}:{},m=a?{onBlur:this.onBlur}:c?{onBlur:c}:{},h=l?{ref:l}:{};return n.default.createElement(t,u(u(u(u({},d),{},{onChange:this.onChange,value:f},p),m),h))}}]),a}(n.default.PureComponent);e.DebounceInput=S,x(S,`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})})),dm=n(((e,t)=>{var n=um().DebounceInput;
37n.DebounceInput=n,t.exports=n})),fm=n(((e,t)=>{t.exports={ROOT:0,GROUP:1,POSITION:2,SET:3,RANGE:4,REPETITION:5,REFERENCE:6,CHAR:7}})),pm=n((e=>{var t=fm(),n=()=>[{type:t.RANGE,from:48,to:57}],r=()=>[{type:t.CHAR,value:95},{type:t.RANGE,from:97,to:122},{type:t.RANGE,from:65,to:90}].concat(n()),i=()=>[{type:t.CHAR,value:9},{type:t.CHAR,value:10},{type:t.CHAR,value:11},{type:t.CHAR,value:12},{type:t.CHAR,value:13},{type:t.CHAR,value:32},{type:t.CHAR,value:160},{type:t.CHAR,value:5760},{type:t.RANGE,from:8192,to:8202},{type:t.CHAR,value:8232},{type:t.CHAR,value:8233},{type:t.CHAR,value:8239},{type:t.CHAR,value:8287},{type:t.CHAR,value:12288},{type:t.CHAR,value:65279}],a=()=>[{type:t.CHAR,value:10},{type:t.CHAR,value:13},{type:t.CHAR,value:8232},{type:t.CHAR,value:8233}];e.words=()=>({type:t.SET,set:r(),not:!1}),e.notWords=()=>({type:t.SET,set:r(),not:!0}),e.ints=()=>({type:t.SET,set:n(),not:!1}),e.notInts=()=>({type:t.SET,set:n(),not:!0}),e.whitespace=()=>({type:t.SET,set:i(),not:!1}),e.notWhitespace=()=>({type:t.SET,set:i(),not:!0}),e.anyChar=()=>({type:t.SET,set:a(),not:!0})})),mm=n((e=>{var t=fm(),n=pm(),r=`@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^ ?`,i={0:0,t:9,n:10,v:11,f:12,r:13};e.strToChars=function(e){return e=e.replace(/(\[\\b\])|(\\)?\\(?:u([A-F0-9]{4})|x([A-F0-9]{2})|(0?[0-7]{2})|c([@A-Z[\\\]^?])|([0tnvfr]))/g,function(e,t,n,a,o,s,c,l){if(n)return e;var u=t?8:a?parseInt(a,16):o?parseInt(o,16):s?parseInt(s,8):c?r.indexOf(c):i[l],d=String.fromCharCode(u);return/[[\]{}^$.|?*+()]/.test(d)&&(d=`\\`+d),d}),e},e.tokenizeClass=(r,i)=>{for(var a=[],o=/\\(?:(w)|(d)|(s)|(W)|(D)|(S))|((?:(?:\\)(.)|([^\]\\]))-(?:\\)?([^\]]))|(\])|(?:\\)?([^])/g,s,c;(s=o.exec(r))!=null;)if(s[1])a.push(n.words());else if(s[2])a.push(n.ints());else if(s[3])a.push(n.whitespace());else if(s[4])a.push(n.notWords());else if(s[5])a.push(n.notInts());else if(s[6])a.push(n.notWhitespace());else if(s[7])a.push({type:t.RANGE,from:(s[8]||s[9]).charCodeAt(0),to:s[10].charCo
37deAt(0)});else if(c=s[12])a.push({type:t.CHAR,value:c.charCodeAt(0)});else return[a,o.lastIndex];e.error(i,`Unterminated character class`)},e.error=(e,t)=>{throw SyntaxError(`Invalid regular expression: /`+e+`/: `+t)}})),hm=n((e=>{var t=fm();e.wordBoundary=()=>({type:t.POSITION,value:`b`}),e.nonWordBoundary=()=>({type:t.POSITION,value:`B`}),e.begin=()=>({type:t.POSITION,value:`^`}),e.end=()=>({type:t.POSITION,value:`$`})})),gm=n(((e,t)=>{var n=mm(),r=fm(),i=pm(),a=hm();t.exports=e=>{var t=0,o,s,c={type:r.ROOT,stack:[]},l=c,u=c.stack,d=[],f=t=>{n.error(e,`Nothing to repeat at column ${t-1}`)},p=n.strToChars(e);for(o=p.length;t<o;)switch(s=p[t++],s){case`\\`:switch(s=p[t++],s){case`b`:u.push(a.wordBoundary());break;case`B`:u.push(a.nonWordBoundary());break;case`w`:u.push(i.words());break;case`W`:u.push(i.notWords());break;case`d`:u.push(i.ints());break;case`D`:u.push(i.notInts());break;case`s`:u.push(i.whitespace());break;case`S`:u.push(i.notWhitespace());break;default:/\d/.test(s)?u.push({type:r.REFERENCE,value:parseInt(s,10)}):u.push({type:r.CHAR,value:s.charCodeAt(0)})}break;case`^`:u.push(a.begin());break;case`$`:u.push(a.end());break;case`[`:var m;p[t]===`^`?(m=!0,t++):m=!1;var h=n.tokenizeClass(p.slice(t),e);t+=h[1],u.push({type:r.SET,set:h[0],not:m});break;case`.`:u.push(i.anyChar());break;case`(`:var g={type:r.GROUP,stack:[],remember:!0};s=p[t],s===`?`&&(s=p[t+1],t+=2,s===`=`?g.followedBy=!0:s===`!`?g.notFollowedBy=!0:s!==`:`&&n.error(e,`Invalid group, character '${s}' after '?' at column ${t-1}`),g.remember=!1),u.push(g),d.push(l),l=g,u=g.stack;break;case`)`:d.length===0&&n.error(e,`Unmatched ) at column ${t-1}`),l=d.pop(),u=l.options?l.options[l.options.length-1]:l.stack;break;case`|`:l.options||(l.options=[l.stack],delete l.stack);var _=[];l.options.push(_),u=_;break;case`{`:var v=/^(\d+)(,(\d+)?)?\}/.exec(p.slice(t)),y,b;v===null?u.push({type:r.CHAR,value:123}):(u.length===0&&f(t),y=parseInt(v[1],10),b=v[2]?v[3]?parseInt(v[3],10):1/0:y,t+=v[0].length,u.push({type:r.REPETITION,min:y,max:b,value:u.pop()}));break;case`?`:u.length===0&&f(t),u.push({type:r.REPETITION,min:0,max:1,value:u.pop()});break;case`+`:u.length===0&&f(t),u.push({type:r.REPETITION,min:1,max:1/0,value:u.pop()});break;case`*`:u.length===0&&f(t),u.push({type:r.REPETITION,min:0,max:1/0,value:u.pop()});break;default:u.push({type:r.CHAR,value:s.charCodeAt(0)})}return d.length!==0&&n.error(e,`Unterminated group`),c},t.exports.types=r})),_m=n(((e,t)=>{var n=class e{constructor(e,t){this.low=e,this.high=t,this.length=1+t-e}overlaps(e){return!(this.high<e.low||this.low>e.high)}touches(e){return!(this.high+1<e.low||this.low-1>e.high)}add(t){return new e(Math.min(this.low,t.low),Math.max(this.high,t.high))}subtract(t){return t.low<=this.low&&t.high>=this.high?[]:t.low>this.low&&t.high<this.high?[new e(this.low,t.low-1),new e(t.high+1,this.high)]:t.low<=this.low?[new e(t.high+1,this.high)]:[new e(this.low,t.low-1)]}toString(){return this.low==this.high?this.low.toString():this.low+`-`+this.high}};t.exports=class e{constructor(e,t){this.ranges=[],this.length=0,e!=null&&this.add(e,t)}_update_length(){this.length=this.ranges.reduce((e,t)=>e+t.length,0)}add(t,r){var i=e=>{for(var t=0;t<this.ranges.length&&!e.touches(this.ranges[t]);)t++;for(var n=this.ranges.slice(0,t);t<this.ranges.length&&e.touches(this.ranges[t]);)e=e.add(this.ranges[t]),t++;n.push(e),this.ranges=n.concat(this.ranges.slice(t)),this._update_length()};return t instanceof e?t.ranges.forEach(i):(r??=t,i(new n(t,r))),this}subtract(t,r){var i=e=>{for(var t=0;t<this.ranges.length&&!e.overlaps(this.ranges[t]);)t++;for(var n=this.ranges.slice(0,t);t<this.ranges.length&&e.overlaps(this.ranges[t]);)n=n.concat(this.ranges[t].subtract(e)),t++;this.ranges=n.concat(this.ranges.slice(t)),this._update_length()};return t instanceof e?t.ranges.forEach(i):(r??=t,i(new n(t,r))),this}intersect(t,r){var i=[],a=e=>{for(var t=0;t<this.ranges.length&&!e.overlaps(this.ranges[t]);)t++;for(;t<this.ranges.length&&e.overlaps(this.ranges[t]);){var r=Math.max(this.ranges[t].low,e.low),a=Math.min(this.ranges[t].high,e.high);i.push(new n(r,a)),t++}};
37return t instanceof e?t.ranges.forEach(a):(r??=t,a(new n(t,r))),this.ranges=i,this._update_length(),this}index(e){for(var t=0;t<this.ranges.length&&this.ranges[t].length<=e;)e-=this.ranges[t].length,t++;return this.ranges[t].low+e}toString(){return`[ `+this.ranges.join(`, `)+` ]`}clone(){return new e(this)}numbers(){return this.ranges.reduce((e,t)=>{for(var n=t.low;n<=t.high;)e.push(n),n++;return e},[])}subranges(){return this.ranges.map(e=>({low:e.low,high:e.high,length:1+e.high-e.low}))}}})),vm=n(((e,t)=>{var n=gm(),r=_m(),i=n.types;t.exports=class e{constructor(e,t){if(this._setDefaults(e),e instanceof RegExp)this.ignoreCase=e.ignoreCase,this.multiline=e.multiline,e=e.source;else if(typeof e==`string`)this.ignoreCase=t&&t.indexOf(`i`)!==-1,this.multiline=t&&t.indexOf(`m`)!==-1;else throw Error(`Expected a regexp or string`);this.tokens=n(e)}_setDefaults(t){this.max=t.max==null?e.prototype.max==null?100:e.prototype.max:t.max,this.defaultRange=t.defaultRange?t.defaultRange:this.defaultRange.clone(),t.randInt&&(this.randInt=t.randInt)}gen(){return this._gen(this.tokens,[])}_gen(e,t){var n,r,a,o,s;switch(e.type){case i.ROOT:case i.GROUP:if(e.followedBy||e.notFollowedBy)return``;for(e.remember&&e.groupNumber===void 0&&(e.groupNumber=t.push(null)-1),n=e.options?this._randSelect(e.options):e.stack,r=``,o=0,s=n.length;o<s;o++)r+=this._gen(n[o],t);return e.remember&&(t[e.groupNumber]=r),r;case i.POSITION:return``;case i.SET:var c=this._expand(e);return c.length?String.fromCharCode(this._randSelect(c)):``;case i.REPETITION:for(a=this.randInt(e.min,e.max===1/0?e.min+this.max:e.max),r=``,o=0;o<a;o++)r+=this._gen(e.value,t);return r;case i.REFERENCE:return t[e.value-1]||``;case i.CHAR:var l=this.ignoreCase&&this._randBool()?this._toOtherCase(e.value):e.value;return String.fromCharCode(l)}}_toOtherCase(e){return e+(97<=e&&e<=122?-32:65<=e&&e<=90?32:0)}_randBool(){return!this.randInt(0,1)}_randSelect(e){return e instanceof r?e.index(this.randInt(0,e.length-1)):e[this.randInt(0,e.length-1)]}_expand(e){if(e.type===n.types.CHAR)return new r(e.value);if(e.type===n.types.RANGE)return new r(e.from,e.to);{let t=new r;for(let n=0;n<e.set.length;n++){let r=this._expand(e.set[n]);if(t.add(r),this.ignoreCase)for(let e=0;e<r.length;e++){let n=r.index(e),i=this._toOtherCase(n);n!==i&&t.add(i)}}return e.not?this.defaultRange.clone().subtract(t):this.defaultRange.clone().intersect(t)}}randInt(e,t){return e+Math.floor(Math.random()*(1+t-e))}get defaultRange(){return this._range=this._range||new r(32,126)}set defaultRange(e){this._range=e}static randexp(t,n){var r;return typeof t==`string`&&(t=new RegExp(t,n)),t._randexp===void 0?(r=new e(t,n),t._randexp=r):(r=t._randexp,r._setDefaults(t)),r.gen()}static sugar(){RegExp.prototype.gen=function(){return e.randexp(this)}}}})),ym=n(((e,t)=>{var n=ue(),r=pe(),i=ae(),a=ke(),o=le(),s=ge(),c=fe(),l=de(),u=`[object Map]`,d=`[object Set]`,f=Object.prototype.hasOwnProperty;function p(e){if(e==null)return!0;if(o(e)&&(a(e)||typeof e==`string`||typeof e.splice==`function`||s(e)||l(e)||i(e)))return!e.length;var t=r(e);if(t==u||t==d)return!e.size;if(c(e))return!n(e).length;for(var p in e)if(f.call(e,p))return!1;return!0}t.exports=p})),bm=n(((e,t)=>{var n=h(),r=ke(),i=p(),a=`[object String]`;function o(e){return typeof e==`string`||!r(e)&&i(e)&&n(e)==a}t.exports=o})),xm=n(((e,t)=>{var n=qe();function r(e,t,r){return e==null?e:n(e,t,r)}t.exports=r})),Eee=n((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`.split(`.`),2:`add.after.ary.assign.assignAllWith.assignIn.assignInAllWith.at.before.bind.bindAll.bindKey.chunk.cloneDeepWith.
37cloneWith.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`.split(`.`),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`.split(`.`),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,n=e.aliasToReal,r={};for(var i in n){var a=n[i];t.call(r,a)?r[a].push(i):r[a]=[i]}return r}(),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}})),Sm=n(((e,t)=>{t.exports={}})),Dee=n(((e,t)=>{var n=Eee(),r=Sm(),i=Array.prototype.push;function a(e,t){return t==2?function(t,n){return e.apply(void 0,arguments)}:function(t){return e.apply(void 0,arguments)}}function o(e,t){return t==2?function(t,n){return e(t,n)}:function(t){return e(t)}}function s(e){for(var t=e?e.length:0,n=Array(t);t--;)n[t]=e[t];return n}function c(e){return function(t){return e({},t)}}function l(e,t){return function(){for(var n=arguments.length,r=n-1,a=Array(n);n--;)a[n]=arguments[n];var o=a[t],s=a.slice(0,t);return o&&i.apply(s,o),t!=r&&i.apply(s,a.slice(t+1)),e.apply(this,s)}}function u(e,t){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=t.apply(void 0,r);return e.apply(void 0,r),i}}}function d(e,t,i,f){var p=typeof t==`function`,m=t===Object(t);if(m&&(f=i,i=t,t=void 0),i==null)throw TypeError();f||={};var h={cap:`cap`in f?f.cap:!0,curry:`curry`in f?f.curry:!0,fixed:`fixed`in f?f.fixed:!0,immutable:`immutable`in f?f.immutable:!0,rearg:`rearg`in f?f.rearg:!0},g=p?i:r,_=`curry`in f&&f.curry,v=`fixed`in f&&f.fixed,y=`rearg`in f&&f.rearg,b=p?i.runInContext():void 0,x=p?i:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEac
37h:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},S=x.ary,C=x.assign,w=x.clone,T=x.curry,E=x.forEach,D=x.isArray,O=x.isError,k=x.isFunction,A=x.isWeakMap,j=x.keys,M=x.rearg,N=x.toInteger,P=x.toPath,F=j(n.aryMethod),I={castArray:function(e){return function(){var t=arguments[0];return D(t)?e(s(t)):e.apply(void 0,arguments)}},iteratee:function(e){return function(){var t=arguments[0],n=arguments[1],r=e(t,n),i=r.length;return h.cap&&typeof n==`number`?(n=n>2?n-2:1,i&&i<=n?r:o(r,n)):r}},mixin:function(e){return function(t){var n=this;if(!k(n))return e(n,Object(t));var r=[];return E(j(t),function(e){k(t[e])&&r.push([e,n.prototype[e]])}),e(n,Object(t)),E(r,function(e){var t=e[1];k(t)?n.prototype[e[0]]=t:delete n.prototype[e[0]]}),n}},nthArg:function(e){return function(t){var n=t<0?1:N(t)+1;return T(e(t),n)}},rearg:function(e){return function(t,n){var r=n?n.length:0;return T(e(t,n),r)}},runInContext:function(t){return function(n){return d(e,t(n),f)}}};function L(e,t){if(h.cap){var r=n.iterateeRearg[e];if(r)return ae(t,r);var i=!p&&n.iterateeAry[e];if(i)return ie(t,i)}return t}function ee(e,t,n){return _||h.curry&&n>1?T(t,n):t}function R(e,t,r){if(h.fixed&&(v||!n.skipFixed[e])){var i=n.methodSpread[e],a=i&&i.start;return a===void 0?S(t,r):l(t,a)}return t}function z(e,t,r){return h.rearg&&r>1&&(y||!n.skipRearg[e])?M(t,n.methodRearg[e]||n.aryRearg[r]):t}function te(e,t){t=P(t);for(var n=-1,r=t.length,i=r-1,a=w(Object(e)),o=a;o!=null&&++n<r;){var s=t[n],c=o[s];c!=null&&!(k(c)||O(c)||A(c))&&(o[s]=w(n==i?c:Object(c))),o=o[s]}return a}function ne(e){return ce.runInContext.convert(e)(void 0)}function re(e,t){var r=n.aliasToReal[e]||e,i=n.remap[r]||r,a=f;return function(e){return d(p?b:x,r,p?b[i]:t,C(C({},a),e))}}function ie(e,t){return oe(e,function(e){return typeof e==`function`?o(e,t):e})}function ae(e,t){return oe(e,function(e){var n=t.length;return a(M(o(e,n),t),n)})}function oe(e,t){return function(){var n=arguments.length;if(!n)return e();for(var r=Array(n);n--;)r[n]=arguments[n];var i=h.rearg?0:n-1;return r[i]=t(r[i]),e.apply(void 0,r)}}function se(e,t,r){var i,a=n.aliasToReal[e]||e,o=t,l=I[a];return l?o=l(t):h.immutable&&(n.mutate.array[a]?o=u(t,s):n.mutate.object[a]?o=u(t,c(t)):n.mutate.set[a]&&(o=u(t,te))),E(F,function(e){return E(n.aryMethod[e],function(t){if(a==t){var r=n.methodSpread[a];return i=r&&r.afterRearg?R(a,z(a,o,e),e):z(a,R(a,o,e),e),i=L(a,i),i=ee(a,i,e),!1}}),!i}),i||=o,i==t&&(i=_?T(i,1):function(){return t.apply(this,arguments)}),i.convert=re(a,t),i.placeholder=t.placeholder=r,i}if(!m)return se(t,i,g);var ce=i,le=[];return E(F,function(e){E(n.aryMethod[e],function(e){var t=ce[n.remap[e]||e];t&&le.push([e,se(e,t,ce)])})}),E(j(ce),function(e){var t=ce[e];if(typeof t==`function`){for(var n=le.length;n--;)if(le[n][0]==e)return;t.convert=re(e,t),le.push([e,t])}}),E(le,function(e){ce[e[0]]=e[1]}),ce.convert=ne,ce.placeholder=ce,E(j(ce),function(e){E(n.realToAlias[e]||[],function(t){ce[t]=ce[e]})}),ce}t.exports=d})),Cm=n(((e,t)=>{var n=me();t.exports=n&&new n})),wm=n(((e,t)=>{var n=Ne(),r=Cm();t.exports=r?function(e,t){return r.set(e,t),e}:n})),Tm=n(((e,t)=>{var n=xe(),r=E();function i(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=n(e.prototype),a=e.apply(i,t);return r(a)?a:i}}t.exports=i})),Oee=n(((e,t)=>{var n=Tm(),r=O(),i=1;function a(e,t,a){var o=t&i,s=n(e);function c(){return(this&&this!==r&&this instanceof c?s:e).apply(o?a:this,arguments)}return c}t.exports=a})),Em=n(((e,t)=>{var n=Math.max;function r(e,t,r,i){for(var a=-1,o=e.length,s=r.length,c=-1,l=t.length,u=n(o-s,0),d=Array(l+u),f=!i;++c<l;)d[c]=t[c];for(;++a<s;)(f||a<o)&&(d[r[a]]=e[a]);for(;u--;)d[c++]=e[a++];return d}t.exports=r})),Dm=n(((e,t)=>{var n=Math.max;
37function r(e,t,r,i){for(var a=-1,o=e.length,s=-1,c=r.length,l=-1,u=t.length,d=n(o-c,0),f=Array(d+u),p=!i;++a<d;)f[a]=e[a];for(var m=a;++l<u;)f[m+l]=t[l];for(;++s<c;)(p||a<o)&&(f[m+r[s]]=e[a++]);return f}t.exports=r})),kee=n(((e,t)=>{function n(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}t.exports=n})),Om=n(((e,t)=>{function n(){}t.exports=n})),km=n(((e,t)=>{var n=xe(),r=Om(),i=4294967295;function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=i,this.__views__=[]}a.prototype=n(r.prototype),a.prototype.constructor=a,t.exports=a})),Am=n(((e,t)=>{function n(){}t.exports=n})),jm=n(((e,t)=>{var n=Cm(),r=Am();t.exports=n?function(e){return n.get(e)}:r})),Aee=n(((e,t)=>{t.exports={}})),Mm=n(((e,t)=>{var n=Aee(),r=Object.prototype.hasOwnProperty;function i(e){for(var t=e.name+``,i=n[t],a=r.call(n,t)?i.length:0;a--;){var o=i[a],s=o.func;if(s==null||s==e)return o.name}return t}t.exports=i})),Nm=n(((e,t)=>{var n=xe(),r=Om();function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(r.prototype),i.prototype.constructor=i,t.exports=i})),jee=n(((e,t)=>{var n=km(),r=Nm(),i=ve();function a(e){if(e instanceof n)return e.clone();var t=new r(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}t.exports=a})),Pm=n(((e,t)=>{var n=km(),r=Nm(),i=Om(),a=ke(),o=p(),s=jee(),c=Object.prototype.hasOwnProperty;function l(e){if(o(e)&&!a(e)&&!(e instanceof n)){if(e instanceof r)return e;if(c.call(e,`__wrapped__`))return s(e)}return new r(e)}l.prototype=i.prototype,l.prototype.constructor=l,t.exports=l})),Fm=n(((e,t)=>{var n=km(),r=jm(),i=Mm(),a=Pm();function o(e){var t=i(e),o=a[t];if(typeof o!=`function`||!(t in n.prototype))return!1;if(e===o)return!0;var s=r(o);return!!s&&e===s[0]}t.exports=o})),Im=n(((e,t)=>{var n=wm();t.exports=Ve()(n)})),Lm=n(((e,t)=>{var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;function i(e){var t=e.match(n);return t?t[1].split(r):[]}t.exports=i})),Rm=n(((e,t)=>{var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function r(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?`& `:``)+t[i],t=t.join(r>2?`, `:` `),e.replace(n,`{ 38/* [wrapped with `+t+`] */ 39`)}t.exports=r})),zm=n(((e,t)=>{function n(e){return e!==e}t.exports=n})),Bm=n(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}t.exports=n})),Vm=n(((e,t)=>{var n=Ol(),r=zm(),i=Bm();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),Hm=n(((e,t)=>{var n=Vm();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),Um=n(((e,t)=>{var n=we(),r=Hm(),i=[[`ary`,128],[`bind`,1],[`bindKey`,2],[`curry`,8],[`curryRight`,16],[`flip`,512],[`partial`,32],[`partialRight`,64],[`rearg`,256]];function a(e,t){return n(i,function(n){var i=`_.`+n[0];t&n[1]&&!r(e,i)&&e.push(i)}),e.sort()}t.exports=a})),Wm=n(((e,t)=>{var n=Lm(),r=Rm(),i=ze(),a=Um();function o(e,t,o){var s=t+``;return i(e,r(s,a(n(s),o)))}t.exports=o})),Gm=n(((e,t)=>{var n=Fm(),r=Im(),i=Wm(),a=1,o=2,s=4,c=8,l=32,u=64;function d(e,t,d,f,p,m,h,g,_,v){var y=t&c,b=y?h:void 0,x=y?void 0:h,S=y?m:void 0,C=y?void 0:m;t|=y?l:u,t&=~(y?u:l),t&s||(t&=~(a|o));var w=[e,t,p,S,b,C,x,g,_,v],T=d.apply(void 0,w);return n(e)&&r(T,w),T.placeholder=f,i(T,e,t)}t.exports=d})),Km=n(((e,t)=>{function n(e){return e.placeholder}t.exports=n})),qm=n(((e,t)=>{var n=ve(),r=se(),i=Math.min;function a(e,t){for(var a=e.length,o=i(t.length,a),s=n(e);o--;){var c=t[o];e[o]=r(c,a)?s[c]:void 0}return e}t.exports=a})),Jm=n(((e,t)=>{var n=`__lodash_placeholder__`;function r(e,t){for(var r=-1,i=e.length,a=0,o=[];++r<i;){var s=e[r];(s===t||s===n)&&(e[r]=n,o[a++]=r)}return o}t.exports=r})),Ym=n(((e,t)=>{var n=Em(),r=Dm(),i=kee(),a=Tm(),o=Gm(),s=Km(),c=qm(),l=Jm(),u=O(),d=1,f=2,p=8,m=16,h=128,g=512;function _(e,t,v,y,b,x,S,C,w,T){var E=t&h,D=t&d,O=t&f,k=t&(p|m),A=t&g,j=O?void 0:a(e);function M(){for(var d=arguments.length,f=Array(d),p=d;p--;)f[p]=arguments[p];if(k)var m=s(M),h=i(f,m);
39if(y&&(f=n(f,y,b,k)),x&&(f=r(f,x,S,k)),d-=h,k&&d<T){var g=l(f,m);return o(e,t,_,M.placeholder,v,f,g,C,w,T-d)}var N=D?v:this,P=O?N[e]:e;return d=f.length,C?f=c(f,C):A&&d>1&&f.reverse(),E&&w<d&&(f.length=w),this&&this!==u&&this instanceof M&&(P=j||a(P)),P.apply(N,f)}return M}t.exports=_})),Xm=n(((e,t)=>{var n=Be(),r=Tm(),i=Ym(),a=Gm(),o=Km(),s=Jm(),c=O();function l(e,t,l){var u=r(e);function d(){for(var r=arguments.length,f=Array(r),p=r,m=o(d);p--;)f[p]=arguments[p];var h=r<3&&f[0]!==m&&f[r-1]!==m?[]:s(f,m);return r-=h.length,r<l?a(e,t,i,d.placeholder,void 0,f,h,void 0,void 0,l-r):n(this&&this!==c&&this instanceof d?u:e,this,f)}return d}t.exports=l})),Zm=n(((e,t)=>{var n=Be(),r=Tm(),i=O(),a=1;function o(e,t,o,s){var c=t&a,l=r(e);function u(){for(var t=-1,r=arguments.length,a=-1,d=s.length,f=Array(d+r),p=this&&this!==i&&this instanceof u?l:e;++a<d;)f[a]=s[a];for(;r--;)f[a++]=arguments[++t];return n(p,c?o:this,f)}return u}t.exports=o})),Qm=n(((e,t)=>{var n=Em(),r=Dm(),i=Jm(),a=`__lodash_placeholder__`,o=1,s=2,c=4,l=8,u=128,d=256,f=Math.min;function p(e,t){var p=e[1],m=t[1],h=p|m,g=h<(o|s|u),_=m==u&&p==l||m==u&&p==d&&e[7].length<=t[8]||m==(u|d)&&t[7].length<=t[8]&&p==l;if(!(g||_))return e;m&o&&(e[2]=t[2],h|=p&o?0:c);var v=t[3];if(v){var y=e[3];e[3]=y?n(y,v,t[4]):v,e[4]=y?i(e[3],a):t[4]}return v=t[5],v&&(y=e[5],e[5]=y?r(y,v,t[6]):v,e[6]=y?i(e[5],a):t[6]),v=t[7],v&&(e[7]=v),m&u&&(e[8]=e[8]==null?t[8]:f(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=h,e}t.exports=p})),$m=n(((e,t)=>{var n=wm(),r=Oee(),i=Xm(),a=Ym(),o=Zm(),s=jm(),c=Qm(),l=Im(),u=Wm(),d=Al(),f=`Expected a function`,p=1,m=2,h=8,g=16,_=32,v=64,y=Math.max;function b(e,t,b,x,S,C,w,T){var E=t&m;if(!E&&typeof e!=`function`)throw TypeError(f);var D=x?x.length:0;if(D||(t&=~(_|v),x=S=void 0),w=w===void 0?w:y(d(w),0),T=T===void 0?T:d(T),D-=S?S.length:0,t&v){var O=x,k=S;x=S=void 0}var A=E?void 0:s(e),j=[e,t,b,x,S,O,k,C,w,T];if(A&&c(j,A),e=j[0],t=j[1],b=j[2],x=j[3],S=j[4],T=j[9]=j[9]===void 0?E?0:e.length:y(j[9]-D,0),!T&&t&(h|g)&&(t&=~(h|g)),!t||t==p)var M=r(e,t,b);else M=t==h||t==g?i(e,t,T):(t==_||t==(p|_))&&!S.length?o(e,t,b,x):a.apply(void 0,j);return u((A?n:l)(M,j),e,t)}t.exports=b})),eh=n(((e,t)=>{var n=$m(),r=128;function i(e,t,i){return t=i?void 0:t,t=e&&t==null?e.length:t,n(e,r,void 0,void 0,void 0,void 0,t)}t.exports=i})),th=n(((e,t)=>{var n=Ce(),r=4;function i(e){return n(e,r)}t.exports=i})),nh=n(((e,t)=>{var n=$m(),r=8;function i(e,t,a){t=a?void 0:t;var o=n(e,r,void 0,void 0,void 0,void 0,void 0,t);return o.placeholder=i.placeholder,o}i.placeholder={},t.exports=i})),rh=n(((e,t)=>{var n=h(),r=p(),i=Pe(),a=`[object DOMException]`,o=`[object Error]`;function s(e){if(!r(e))return!1;var t=n(e);return t==o||t==a||typeof e.message==`string`&&typeof e.name==`string`&&!i(e)}t.exports=s})),ih=n(((e,t)=>{var n=pe(),r=p(),i=`[object WeakMap]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),ah=n(((e,t)=>{var n=Ce(),r=Ct(),i=1;function a(e){return r(typeof e==`function`?e:n(e,i))}t.exports=a})),oh=n(((e,t)=>{var n=$m(),r=He(),i=256;t.exports=r(function(e,t){return n(e,i,void 0,void 0,void 0,t)})})),sh=n(((e,t)=>{var n=ne(),r=ve(),i=ke(),a=ee(),o=Ae(),s=Me(),c=re();function l(e){return i(e)?n(e,s):a(e)?[e]:r(o(c(e)))}t.exports=l})),ch=n(((e,t)=>{t.exports={ary:eh(),assign:ye(),clone:th(),curry:nh(),forEach:we(),isArray:ke(),isError:rh(),isFunction:oe(),isWeakMap:ih(),iteratee:ah(),keys:ue(),rearg:oh(),toInteger:Al(),toPath:sh()}})),lh=n(((e,t)=>{var n=Dee(),r=ch();function i(e,t,i){return n(r,e,t,i)}t.exports=i})),uh=n(((e,t)=>{var n=lh()(`set`,xm());n.placeholder=Sm(),t.exports=n})),dh=n(((e,t)=>{t.exports=uh()})),fh=r(dm()),ph=r(vm()),mh=r(ym()),hh=r(bm()),gh=r(xm()),_h=r(dh()),vh=(function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}})(),yh=Object.prototype.hasOwnProperty;function bh(e,t){return yh.call(e,t)}function xh(e){if(Array.isArray(e)){for(var t=Array(e.length),n=0;n<t.length;n++)t[n]=``+n;return t}if(Object.keys)return Object.keys(e);var r=[];for(var i in e)bh(e,i)&&r.push(i);return r}function Sh(e){switch(typeof e){case`object`:return JSON.parse(JSON.stringify(e));case`undefined`:return null;default:return e}}function Ch(e){for(var t=0,n=e.length,r;t<n;){if(r=e.charCodeAt(t),r>=48&&r<=57){t++;continue}return!1}return!0}function wh(e){return e.indexOf(`/`)===-1&&e.indexOf(`~`)===-1?e:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function Th(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function Eh(e){if(e===void 0)return!0;
vendor: 6,540 bytes, lines 39-40
39if(e){if(Array.isArray(e)){for(var t=0,n=e.length;t<n;t++)if(Eh(e[t]))return!0}else if(typeof e==`object`){for(var r=xh(e),i=r.length,a=0;a<i;a++)if(Eh(e[r[a]]))return!0}}return!1}function Dh(e,t){var n=[e];for(var r in t){var i=typeof t[r]==`object`?JSON.stringify(t[r],null,2):t[r];i!==void 0&&n.push(r+`: `+i)}return n.join(` 40`)}var Oh=function(e){vh(t,e);function t(t,n,r,i,a){var o=this.constructor,s=e.call(this,Dh(t,{name:n,index:r,operation:i,tree:a}))||this;return s.name=n,s.index=r,s.operation=i,s.tree=a,Object.setPrototypeOf(s,o.prototype),s.message=Dh(t,{name:n,index:r,operation:i,tree:a}),s}return t}(Error),kh=t({JsonPatchError:()=>Ah,_areEquals:()=>Bh,applyOperation:()=>Fh,applyPatch:()=>Ih,applyReducer:()=>Lh,deepClone:()=>jh,getValueByPointer:()=>Ph,validate:()=>zh,validator:()=>Rh}),Ah=Oh,jh=Sh,Mh={add:function(e,t,n){return e[t]=this.value,{newDocument:n}},remove:function(e,t,n){var r=e[t];return delete e[t],{newDocument:n,removed:r}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:function(e,t,n){var r=Ph(n,this.path);r&&=Sh(r);var i=Fh(n,{op:`remove`,path:this.from}).removed;return Fh(n,{op:`add`,path:this.path,value:i}),{newDocument:n,removed:r}},copy:function(e,t,n){var r=Ph(n,this.from);return Fh(n,{op:`add`,path:this.path,value:Sh(r)}),{newDocument:n}},test:function(e,t,n){return{newDocument:n,test:Bh(e[t],this.value)}},_get:function(e,t,n){return this.value=e[t],{newDocument:n}}},Nh={add:function(e,t,n){return Ch(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:n,index:t}},remove:function(e,t,n){return{newDocument:n,removed:e.splice(t,1)[0]}},replace:function(e,t,n){var r=e[t];return e[t]=this.value,{newDocument:n,removed:r}},move:Mh.move,copy:Mh.copy,test:Mh.test,_get:Mh._get};function Ph(e,t){if(t==``)return e;var n={op:`_get`,path:t};return Fh(e,n),n.value}function Fh(e,t,n,r,i,a){if(n===void 0&&(n=!1),r===void 0&&(r=!0),i===void 0&&(i=!0),a===void 0&&(a=0),n&&(typeof n==`function`?n(t,0,e,t.path):Rh(t,0)),t.path===``){var o={newDocument:e};if(t.op===`add`)return o.newDocument=t.value,o;if(t.op===`replace`)return o.newDocument=t.value,o.removed=e,o;if(t.op===`move`||t.op===`copy`)return o.newDocument=Ph(e,t.from),t.op===`move`&&(o.removed=e),o;if(t.op===`test`){if(o.test=Bh(e,t.value),o.test===!1)throw new Ah(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o.newDocument=e,o}if(t.op===`remove`)return o.removed=e,o.newDocument=null,o;if(t.op===`_get`)return t.value=e,o;if(n)throw new Ah("Operation `op` property is not one of operations defined in RFC-6902",`OPERATION_OP_INVALID`,a,t,e);return o}r||(e=Sh(e));var s=(t.path||``).split(`/`),c=e,l=1,u=s.length,d=void 0,f=void 0,p=void 0;for(p=typeof n==`function`?n:Rh;;){if(f=s[l],f&&f.indexOf(`~`)!=-1&&(f=Th(f)),i&&(f==`__proto__`||f==`prototype`&&l>0&&s[l-1]==`constructor`))throw 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(n&&d===void 0&&(c[f]===void 0?d=s.slice(0,l).join(`/`):l==u-1&&(d=t.path),d!==void 0&&p(t,0,e,d)),l++,Array.isArray(c)){if(f===`-`)f=c.length;else if(n&&!Ch(f))throw new Ah(`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`,a,t,e);else Ch(f)&&(f=~~f);if(l>=u){if(n&&t.op===`add`&&f>c.length)throw new Ah(`The specified index MUST NOT be greater than the number of elements in the array`,`OPERATION_VALUE_OUT_OF_BOUNDS`,a,t,e);var o=Nh[t.op].call(t,c,f,e);if(o.test===!1)throw new Ah(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}}else if(l>=u){var o=Mh[t.op].call(t,c,f,e);if(o.test===!1)throw new Ah(`Test operation failed`,`TEST_OPERATION_FAILED`,a,t,e);return o}if(c=c[f],n&&l<u&&(!c||typeof c!=`object`))throw new Ah(`Cannot perform operation at the desired path`,`OPERATION_PATH_UNRESOLVABLE`,a,t,e)}}function Ih(e,t,n,r,i){if(r===void 0&&(r=!0),i===void 0&&(i=!0),n&&!Array.isArray(t))throw new Ah(`Patch sequence must be an array`,`SEQUENCE_NOT_AN_ARRAY`);r||(e=Sh(e));for(var a=Array(t.length),o=0,s=t.length;o<s;o++)a[o]=Fh(e,t[o],n,!0,i,o),e=a[o].newDocument;return a.newDocument=e,a}function Lh(e,t,n){var r=Fh(e,t);if(r.test===!1)throw new Ah(`Test operation failed`,`TEST_OPERATION_FAILED`,n,t,e);return r.newDocument}function Rh(e,t,n,r){if(typeof e!=`object`||!e||Array.isArray(e))throw new Ah(`Operation is not an object`,`OPERATION_NOT_AN_OBJECT`,t,e,n);if(!Mh[e.op])throw new Ah("Operation `op` property is not one of operations defined in RFC-6902",`OPERATION_OP_INVALID`,t,e,n);if(typeof e.path!=`string`)throw new Ah("Operation `path` property is not a string",`OPERATION_PATH_INVALID`,t,e,n);if(e.path.indexOf(`/`)!==0&&e.path.length>0)throw new Ah('Operation `path` property must start with "/"',`OPERATION_PATH_INVALID`,t,e,n);if((e.op===`move`||e.op===`copy`)&&typeof e.from!=`string`)throw new Ah("Operation `from` property is not present (applicable in `move` and `copy` operations)",`OPERATION_FROM_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&e.value===void 0)throw new Ah("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_REQUIRED`,t,e,n);if((e.op===`add`||e.op===`replace`||e.op===`test`)&&Eh(e.value))throw new Ah("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)",`OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED`,t,e,n);if(n){if(e.op==`add`){var i=e.path.split(`/`).length,a=r.split(`/`).length;if(i!==a+1&&i!==a)throw new Ah("Cannot perform an `add` operation at the desired path",`OPERATION_PATH_CANNOT_ADD`,t,e,n)}else if(e.op===`replace`||e.op===`remove`||e.op===`_get`){if(e.path!==r)throw new Ah(`Cannot perform the operation at a path that does not exist`,`OPERATION_PATH_UNRESOLVABLE`,t,e,n)}else if(e.op===`move`||e.op===`copy`){var o=zh([{op:`_get`,path:e.from,value:void 0}],n);if(o&&o.name===`OPERATION_PATH_UNRESOLVABLE`)throw new Ah(`Cannot perform the operation from a path that does not exist`,`OPERATION_FROM_UNRESOLVABLE`,t,e,n)}}}function zh(e,t,n){try{if(!Array.isArray(e))throw new Ah(`Patch sequence must be an array`,`SEQUENCE_NOT_AN_ARRAY`);if(t)Ih(Sh(t),Sh(e),n||!0);else{n||=Rh;for(var r=0;r<e.length;r++)n(e[r],r,t,void 0)}}catch(e){if(e instanceof Ah)return e;throw e}}function Bh(e,t){if(e===t)return!0;
40if(e&&t&&typeof e==`object`&&typeof t==`object`){var n=Array.isArray(e),r=Array.isArray(t),i,a,o;if(n&&r){if(a=e.length,a!=t.length)return!1;for(i=a;i--!==0;)if(!Bh(e[i],t[i]))return!1;return!0}if(n!=r)return!1;var s=Object.keys(e);if(a=s.length,a!==Object.keys(t).length)return!1;for(i=a;i--!==0;)if(!t.hasOwnProperty(s[i]))return!1;for(i=a;i--!==0;)if(o=s[i],!Bh(e[o],t[o]))return!1;return!0}return e!==e&&t!==t}var Vh=t({compare:()=>Qh,generate:()=>Xh,observe:()=>Yh,unobserve:()=>Jh}),Hh=new WeakMap,Uh=function(){function e(e){this.observers=new Map,this.obj=e}return e}(),Wh=function(){function e(e,t){this.callback=e,this.observer=t}return e}();function Gh(e){return Hh.get(e)}function Kh(e,t){return e.observers.get(t)}function qh(e,t){e.observers.delete(t.callback)}function Jh(e,t){t.unobserve()}function Yh(e,t){var n=[],r,i=Gh(e);if(!i)i=new Uh(e),Hh.set(e,i);else{var a=Kh(i,t);r=a&&a.observer}if(r)return r;if(r={},i.value=Sh(e),t){r.callback=t,r.next=null;var o=function(){Xh(r)},s=function(){clearTimeout(r.next),r.next=setTimeout(o)};typeof window<`u`&&(window.addEventListener(`mouseup`,s),window.addEventListener(`keyup`,s),window.addEventListener(`mousedown`,s),window.addEventListener(`keydown`,s),window.addEventListener(`change`,s))}return r.patches=n,r.object=e,r.unobserve=function(){Xh(r),clearTimeout(r.next),qh(i,r),typeof window<`u`&&(window.removeEventListener(`mouseup`,s),window.removeEventListener(`keyup`,s),window.removeEventListener(`mousedown`,s),window.removeEventListener(`keydown`,s),window.removeEventListener(`change`,s))},i.observers.set(t,new Wh(t,r)),r}function Xh(e,t){t===void 0&&(t=!1);var n=Hh.get(e.object);Zh(n.value,e.object,e.patches,``,t),e.patches.length&&Ih(n.value,e.patches);var r=e.patches;return r.length>0&&(e.patches=[],e.callback&&e.callback(r)),r}function Zh(e,t,n,r,i){if(t!==e){typeof t.toJSON==`function`&&(t=t.toJSON());for(var a=xh(t),o=xh(e),s=!1,c=o.length-1;c>=0;c--){var l=o[c],u=e[l];if(bh(t,l)&&(t[l]!==void 0||u===void 0||Array.isArray(t)!==!1)){var d=t[l];typeof u==`object`&&u&&typeof d==`object`&&d&&Array.isArray(u)===Array.isArray(d)?Zh(u,d,n,r+`/`+wh(l),i):u!==d&&(i&&n.push({op:`test`,path:r+`/`+wh(l),value:Sh(u)}),n.push({op:`replace`,path:r+`/`+wh(l),value:Sh(d)}))}else Array.isArray(e)===Array.isArray(t)?(i&&n.push({op:`test`,path:r+`/`+wh(l),value:Sh(u)}),n.push({op:`remove`,path:r+`/`+wh(l)}),s=!0):(i&&n.push({op:`test`,path:r,value:e}),n.push({op:`replace`,path:r,value:t}))}if(s||a.length!=o.length)for(var c=0;c<a.length;c++){var l=a[c];!bh(e,l)&&t[l]!==void 0&&n.push({op:`add`,path:r+`/`+wh(l),value:Sh(t[l])})}}}function Qh(e,t,n){n===void 0&&(n=!1);var r=[];return Zh(e,t,r,``,n),r}Object.assign({},kh,Vh,{JsonPatchError:Oh,deepClone:Sh,escapePathComponent:wh,unescapePathComponent:Th});var $h={add:ng,replace:rg,remove:ig,merge:ag,mergeDeep:og,context:sg,getIn:mg,applyPatch:eg,parentPathMatch:pg,flatten:_g,fullyNormalizeArray:hg,normalizeArray:gg,isPromise:bg,forEachNew:cg,forEachNewPrimitive:lg,isJsonPatch:Cg,isContextPatch:Dg,isPatch:Og,isMutation:Tg,isAdditiveMutation:Eg,isGenerator:wg,isFunction:xg,isObject:yg,isError:Sg};function eg(e,t,n){if(n||={},t={...t,path:t.path&&tg(t.path)},t.op===`merge`){let n=kg(e,t.path);Object.assign(n,t.value),Ih(e,[rg(t.path,n)])}else if(t.op===`mergeDeep`){let n=kg(e,t.path),r=(0,Vn.default)(n,t.value,{customMerge:e=>{if(e===`enum`)return(e,t)=>Array.isArray(e)&&Array.isArray(t)?[...new Set([...e,...t])]:(0,Vn.default)(e,t)}});e=Ih(e,[rg(t.path,r)]).newDocument}else if(t.op===`add`&&t.path===``&&yg(t.value)){let n=Object.keys(t.value).reduce((e,n)=>(e.push({op:`add`,path:`/${tg(n)}`,value:t.value[n]}),e),[]);Ih(e,n)}else if(t.op===`replace`&&t.path===``){let{value:r}=t;n.allowMetaPatches&&t.meta&&Eg(t)&&(Array.isArray(t.value)||yg(t.value))&&(r={...r,...t.meta}),e=r}else if(Ih(e,[t]),n.allowMetaPatches&&t.meta&&Eg(t)&&(Array.isArray(t.value)||yg(t.value))){let n={...kg(e,t.path),...t.meta};Ih(e,[rg(t.path,n)])}return e}function tg(e){return Array.isArray(e)?e.length<1?``:`/${e.map(e=>(e+``).replace(/~/g,`~0`).replace(/\//g,`~1`)).join(`/`)}`:e}function ng(e,t){return{op:`add`,path:e,value:t}}function rg(e,t,n){return{op:`replace`,path:e,value:t,meta:n}}function ig(e){return{op:`remove`,path:e}}function ag(e,t){return{type:`mutation`,op:`merge`,path:e,value:t}}function og(e,t){return{type:`mutation`,op:`mergeDeep`,path:e,value:t}}function sg(e,t){return{type:`context`,path:e,value:t}}function cg(e,t){try{return ug(e,fg,t)}catch(e){return e}}function lg(e,t){try{return ug(e,dg,t)}catch(e){return e}}function ug(e,t,n){return vg(_g(e.filter(Eg).map(e=>t(e.value,n,e.path))||[]))}function dg(e,t,n){return n||=[],Array.isArray(e)?e.map((e,r)=>dg(e,t,n.concat(r))):yg(e)?Object.keys(e).map(r=>dg(e[r],t,n.concat(r))):t(e,n[n.length-1],n)}function fg(e,t,n){n||=[];let r=[];if(n.length>0){let i=t(e,n[n.length-1],n);i&&(r=r.concat(i))}if(Array.isArray(e)){let i=e.map((e,r)=>fg(e,t,n.concat(r)));i&&(r=r.concat(i))}else if(yg(e)){let i=Object.keys(e).map(r=>fg(e[r],t,n.concat(r)));i&&(r=r.concat(i))}return r=_g(r),r}function pg(e,t){if(!Array.isArray(t))return!1;for(let n=0,r=t.length;n<r;n+=1)if(t[n]!==e[n])return!1;return!0}function mg(e,t){return t.reduce((e,t)=>
40t!==void 0&&e?e[t]:e,e)}function hg(e){return vg(_g(gg(e)))}function gg(e){return Array.isArray(e)?e:[e]}function _g(e){return[].concat(...e.map(e=>Array.isArray(e)?_g(e):e))}function vg(e){return e.filter(e=>e!==void 0)}function yg(e){return e&&typeof e==`object`}function bg(e){return yg(e)&&xg(e.then)}function xg(e){return e&&typeof e==`function`}function Sg(e){return e instanceof Error}function Cg(e){if(Og(e)){let{op:t}=e;return t===`add`||t===`remove`||t===`replace`}return!1}function wg(e){return Object.prototype.toString.call(e)===`[object GeneratorFunction]`}function Tg(e){return Cg(e)||Og(e)&&e.type===`mutation`}function Eg(e){return Tg(e)&&(e.op===`add`||e.op===`replace`||e.op===`merge`||e.op===`mergeDeep`)}function Dg(e){return Og(e)&&e.type===`context`}function Og(e){return e&&typeof e==`object`}function kg(e,t){try{return Ph(e,t)}catch(e){return console.error(e),{}}}function Ag(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var jg={},Mg={},Ng={},Pg;function Fg(){if(Pg)return Ng;Pg=1;function e(e){return e==null}function t(e){return typeof e==`object`&&!!e}function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}function i(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}function a(e){return e===0&&1/e==-1/0}return Ng.isNothing=e,Ng.isObject=t,Ng.toArray=n,Ng.repeat=i,Ng.isNegativeZero=a,Ng.extend=r,Ng}var Ig,Lg;function Rg(){if(Lg)return Ig;Lg=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=` 41 42`+e.mark.snippet),r+` `+n):r}function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+`: `+e(this,t)},Ig=t,Ig}var zg,Bg;function Vg(){if(Bg)return zg;Bg=1;let e=Fg();function t(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`â`)+o,pos:r-t+a.length}}function n(t,n){return e.repeat(` `,n-t.length)+t}function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(r.buffer);)s.push(c.index),o.push(c.index+c[0].length),r.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(r.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let a=1;a<=i.linesBefore&&!(l-a<0);a++){let c=t(r.buffer,o[l-a],s[l-a],r.position-(o[l]-o[l-a]),f);u=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),d)+` | `+c.str+` 43`+u}let p=t(r.buffer,o[l],s[l],r.position,f);u+=e.repeat(` `,i.indent)+n((r.line+1).toString(),d)+` | `+p.str+` 44`,u+=e.repeat(`-`,i.indent+d+3+p.pos)+`^ 45`;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=t(r.buffer,o[l+a],s[l+a],r.position-(o[l]-o[l+a]),f);u+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),d)+` | `+c.str+` 46`}return u.replace(/\n$/,``)}return zg=r,zg}var Hg,Ug;function Wg(){if(Ug)return Hg;Ug=1;let e=Rg(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function i(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)}return Hg=i,Hg}var Gg,Kg;
46function qg(){if(Kg)return Gg;Kg=1;let e=Rg(),t=Wg();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}function i(e){return this.extend(e)}return i.prototype.extend=function(a){let o=[],s=[];if(a instanceof t)s.push(a);else if(Array.isArray(a))s=s.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(o=o.concat(a.implicit)),a.explicit&&(s=s.concat(a.explicit));else throw new e(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(n.loadKind&&n.loadKind!==`scalar`)throw new e(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(n.multi)throw new e(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(i.prototype);return c.implicit=(this.implicit||[]).concat(o),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=n(c,`implicit`),c.compiledExplicit=n(c,`explicit`),c.compiledTypeMap=r(c.compiledImplicit,c.compiledExplicit),c},Gg=i,Gg}var Jg,Yg;function Xg(){return Yg?Jg:(Yg=1,Jg=new(Wg())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}}),Jg)}var Zg,Qg;function $g(){return Qg?Zg:(Qg=1,Zg=new(Wg())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}}),Zg)}var e_,t_;function n_(){return t_?e_:(t_=1,e_=new(Wg())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}}),e_)}var r_,i_;function a_(){return i_?r_:(i_=1,r_=new(qg())({explicit:[Xg(),$g(),n_()]}),r_)}var o_,s_;function c_(){if(s_)return o_;s_=1;let e=Wg();function t(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function n(){return null}function r(e){return e===null}return o_=new e(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`}),o_}var l_,u_;function d_(){if(u_)return l_;u_=1;let e=Wg();function t(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function n(e){return e===`true`||e===`True`||e===`TRUE`}function r(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return l_=new e(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`}),l_}var f_,p_;function m_(){if(p_)return f_;p_=1;let e=Fg(),t=Wg();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function i(e){return e>=48&&e<=57}function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let c=e[a];if((c===`-`||c===`+`)&&(c=e[++a]),c===`0`){if(a+1===t)return!0;if(c=e[++a],c===`b`){for(a++;a<t;a++){if(c=e[a],c!==`0`&&c!==`1`)return!1;s=!0}return s&&isFinite(o(e))}if(c===`x`){for(a++;a<t;a++){if(!n(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}if(c===`o`){for(a++;a<t;a++){if(!r(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}}for(;a<t;a++){if(!i(e.charCodeAt(a)))return!1;s=!0}return s?isFinite(o(e)):!1}function o(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function s(e){return o(e)}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&t%1==0&&!e.isNegativeZero(t)}return f_=new t(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:a,construct:s,predicate:c,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)}
46,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`]}}),f_}var h_,g_;function __(){if(g_)return h_;g_=1;let e=Fg(),t=Wg(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return h_=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:c,represent:s,defaultStyle:`lowercase`}),h_}var v_,y_;function b_(){return y_?v_:(y_=1,v_=a_().extend({implicit:[c_(),d_(),m_(),__()]}),v_)}var x_,S_;function C_(){return S_?x_:(S_=1,x_=b_(),x_)}var w_,T_;function E_(){if(T_)return w_;T_=1;let e=Wg(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=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 r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let f=new Date(Date.UTC(o,s,c,l,u,d,r));return i&&f.setTime(f.getTime()-i),f}function a(e){return e.toISOString()}return w_=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),w_}var D_,O_;function k_(){if(O_)return D_;O_=1;let e=Wg();function t(e){return e===`<<`||e===null}return D_=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),D_}var A_,j_;function M_(){if(j_)return A_;j_=1;let e=Wg();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 47\r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e<n;e++)e%4==0&&e&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 48\r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/= 49\r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return A_=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),A_}var N_,P_;function F_(){if(P_)return N_;P_=1;let e=Wg(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r={},i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(n.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(t.call(a,s)){if(!o)o=!0;else return!1}if(!o||t.call(r,s))return!1;Object.defineProperty(r,s,{value:!0})}return!0}function i(e){return e===null?[]:e}return N_=new e(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:r,construct:i}),N_}var I_,L_;function R_(){if(L_)return I_;L_=1;let e=Wg(),t=Object.prototype.toString;function n(e){if(e===null)return!0;let n=e,r=Array(n.length);for(let e=0,i=n.length;e<i;e+=1){let i=n[e];if(t.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;r[e]=[a[0],i[a[0]]]}return!0}function r(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}return I_=new e(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:n,
49construct:r}),I_}var z_,B_;function V_(){if(B_)return z_;B_=1;let e=Wg(),t=Object.prototype.hasOwnProperty;function n(e){if(e===null)return!0;let n=e;for(let e in n)if(t.call(n,e)&&n[e]!==null)return!1;return!0}function r(e){return e===null?{}:e}return z_=new e(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:n,construct:r}),z_}var H_,U_;function W_(){return U_?H_:(U_=1,H_=C_().extend({implicit:[E_(),k_()],explicit:[M_(),F_(),R_(),V_()]}),H_)}var G_;function K_(){if(G_)return Mg;G_=1;let e=Fg(),t=Rg(),n=Vg(),r=W_(),i=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function d(e){return e===10||e===13}function f(e){return e===9||e===32}function p(e){return e===9||e===32||e===10||e===13}function m(e){return e===44||e===91||e===93||e===123||e===125}function h(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function g(e){return e===120?2:e===117?4:e===85?8:0}function _(e){return e>=48&&e<=57?e-48:-1}function v(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` 50`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`Â `;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function y(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function b(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}let x=Array(256),S=Array(256);for(let e=0;e<256;e++)x[e]=+!!v(e),S[e]=v(e);function C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,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.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function w(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function T(e,t){throw w(e,t)}function E(e,t){e.onWarning&&e.onWarning.call(null,w(e,t))}function D(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function O(e){e.anchorMapTransactions.push(Object.create(null))}function k(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],a=Object.keys(t);for(let e=0,n=a.length;e<n;e+=1){let n=a[e];i.call(r,n)||(r[n]=t[n])}}function A(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}function j(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function M(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}let N={YAML:function(e,t,n){e.version!==null&&T(e,`duplication of %YAML directive`),n.length!==1&&T(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&T(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&T(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&E(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){let r;n.length!==2&&T(e,`TAG directive accepts exactly two arguments`);let a=n[0];r=n[1],c.test(a)||T(e,`ill-formed tag handle (first argument) of the TAG directive`),i.call(e.tagMap,a)&&T(e,`there is a previously declared suffix for "`+a+`" tag handle`),l.test(r)||T(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{T(e,`tag prefix is malformed: `+r)}e.tagMap[a]=r}};function P(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||T(e,`expected valid JSON character`)}
vendor: 16,893 bytes, lines 50-58
50else a.test(i)&&T(e,`the stream contains non-printable characters`);e.result+=i}}function F(e){e.totalMergeKeys++,e.maxTotalMergeKeys!==-1&&e.totalMergeKeys>e.maxTotalMergeKeys&&T(e,`merge keys exceeded maxTotalMergeKeys (`+e.maxTotalMergeKeys+`)`)}function I(t,n,r,a){e.isObject(r)||T(t,`cannot merge mappings; the provided source object is unacceptable`),F(t);let o=Object.keys(r);for(let e=0,s=o.length;e<s;e+=1){let s=o[e];F(t),i.call(n,s)||(b(n,s,r[s]),a[s]=!0)}}function L(e,t,n,r,a,o,s,c,l){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,n=a.length;t<n;t+=1)Array.isArray(a[t])&&T(e,`nested arrays are not supported inside keys`),typeof a==`object`&&u(a[t])===`[object Object]`&&(a[t]=`[object Object]`)}if(typeof a==`object`&&u(a)===`[object Object]`&&(a=`[object Object]`),a=String(a),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(o)){o.length>100&&T(e,`abnormal merge sequence size`);for(let r=0,i=o.length;r<i;r+=1)I(e,t,o[r],n)}else I(e,t,o,n)}else!e.json&&!i.call(n,a)&&i.call(t,a)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,T(e,`duplicated mapping key`)),b(t,a,o),delete n[a];return t}function ee(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):T(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function R(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;f(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(d(i))for(ee(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&E(e,`deficient indentation`),r}function z(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||p(n)))}function te(t,n){n===1?t.result+=` `:n>1&&(t.result+=e.repeat(` 51`,n-1))}function ne(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,h=e.input.charCodeAt(e.position);if(p(h)||m(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96)return!1;if(h===63||h===45){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;h!==0;){if(h===58){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))break}else if(h===35){if(p(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&z(e)||n&&m(h))break;else if(d(h)){if(o=e.line,s=e.lineStart,c=e.lineIndent,R(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}a&&=(P(e,r,i,!1),te(e,e.line-o),r=i=e.position,!1),f(h)||(i=e.position+1),h=e.input.charCodeAt(++e.position)}return P(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}function re(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(P(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else d(i)?(P(e,n,r,!0),te(e,R(e,!1,t)),n=r=e.position):e.position===e.lineStart&&z(e)?T(e,`unexpected end of the document within a single quoted scalar`):(e.position++,f(i)||(r=e.position));T(e,`unexpected end of the stream within a single quoted scalar`)}function ie(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return P(e,n,e.position,!0),e.position++,!0;else if(a===92){if(P(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),d(a))R(e,!1,t);else if(a<256&&x[a])e.result+=S[a],e.position++;else if((i=g(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=h(a))>=0?n=(n<<4)+i:T(e,`expected hexadecimal character`);e.result+=y(n),e.position++}else T(e,`unknown escape sequence`);n=r=e.position}else d(a)?(P(e,n,r,!0),te(e,R(e,!1,t)),n=r=e.position):e.position===e.lineStart&&z(e)?T(e,`unexpected end of the document within a double quoted scalar`):(e.position++,f(a)||(r=e.position));T(e,`unexpected end of the stream within a double quoted scalar`)}function ae(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)l=93,f=!1,s=[];else if(v===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&D(e,e.anchor,s),v=e.input.charCodeAt(++e.position);v!==0;){if(R(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?v===44&&T(e,`expected the node content, but found ','`):T(e,`missed comma between flow collection entries`),g=h=_=null,u=d=!1,v===63&&p(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,R(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,pe(e,t,1,!1,!0),g=e.tag,h=e.result,R(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===r)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),R(e,!0,t),pe(e,t,1,!1,!0),_=e.result),f?L(e,s,m,g,h,_,r,i,a):u?s.push(L(e,null,m,g,h,_,r,i,a)):s.push(h),R(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}T(e,`unexpected end of the stream within a flow collection`)}function oe(t,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,p=t.input.charCodeAt(t.position);if(p===124)r=!1;else if(p===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)i===1?i=p===43?3:2:T(t,`repeat of a chomping mode identifier`);else if((u=_(p))>=0)u===0?T(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?T(t,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(f(p)){do p=t.input.charCodeAt(++t.position);while(f(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!d(p)&&p!==0)}for(;p!==0;){for(ee(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!o||t.lineIndent<s)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>s&&(s=t.lineIndent),d(p)){c++;continue}if(!o&&s===0&&T(t,`missing indentation for block scalar`),t.lineIndent<s){i===3?t.result+=e.repeat(` 52`,a?1+c:c):i===1&&a&&(t.result+=` 53`);break}r?f(p)?(l=!0,t.result+=e.repeat(` 54`,a?1+c:c)):l?(l=!1,t.result+=e.repeat(` 55`,c+1)):c===0?a&&(t.result+=` `):t.result+=e.repeat(` 56`,c):t.result+=e.repeat(` 57`,a?1+c:c),a=!0,o=!0,c=0;let n=t.position;for(;!d(p)&&p!==0;)p=t.input.charCodeAt(++t.position);P(t,n,t.position,!1)}return!0}function se(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`)),o===45&&p(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,R(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(pe(e,t,3,!1,!0),i.push(e.result),R(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)T(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}function ce(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,m=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&p(y))v===63?(g&&(L(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):T(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!pe(e,n,2,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);f(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),p(v)||T(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(L(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!1,r=!1,d=e.tag,m=e.result;else if(_)T(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)T(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),pe(e,t,4,!0,r)&&(g?m=e.result:h=e.result),g||(L(e,l,u,d,m,h,i,a,o),d=m=h=null),R(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)T(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&L(e,l,u,d,m,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}function le(e){let t=!1,n=!1,r,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;e.tag!==null&&T(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(t=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,r=`!!`,o=e.input.charCodeAt(++e.position)):r=`!`;let u=e.position;if(t){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(u,e.position),o=e.input.charCodeAt(++e.position)):T(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!p(o);)o===33&&(n?T(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(u-1,e.position+1),c.test(r)||T(e,`named tag handle cannot contain such characters`),n=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(u,e.position),s.test(a)&&T(e,`tag suffix cannot contain flow indicator characters`)}a&&!l.test(a)&&T(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{T(e,`tag name is malformed: `+a)}return t?e.tag=a:i.call(e.tagMap,r)?e.tag=e.tagMap[r]+a:r===`!`?e.tag=`!`+a:r===`!!`?e.tag=`tag:yaml.org,2002:`+a:T(e,`undeclared tag handle "`+r+`"`),!0}function ue(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&T(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&T(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}function de(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===n&&T(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return i.call(e.anchorMap,r)||T(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],R(e,!0,-1),!0}function fe(e,t,n,r){let i=j(e);return O(e),M(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,ce(e,n,r)&&e.kind===`mapping`?(k(e),!0):(A(e),M(e,i),!1)}function pe(e,t,n,r,a){let o,s,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&T(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let h=o=s=n===4||n===3;if(r&&R(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;;){let n=e.input.charCodeAt(e.position),r=j(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!le(e)&&!ue(e))break;d===null&&(d=r),R(e,!0,-1)?(l=!0,s=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1}if(s&&=l||a,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(s&&(se(e,m)||ce(e,m,p))||ae(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!s&&t!==124&&t!==62&&fe(e,d,d.position-d.lineStart,p)||o&&oe(e,p)||re(e,p)||ie(e,p)?u=!0:de(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&T(e,`alias node should not have any properties`)):ne(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&D(e,e.anchor,e.result)}}else c===0&&(u=s&&se(e,m))}if(e.tag===null)e.anchor!==null&&D(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&T(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(f=e.implicitTypes[t],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&D(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(i.call(e.typeMap[e.kind||`fallback`],e.tag))f=e.typeMap[e.kind||`fallback`][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||T(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&T(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+f.kind+`", not "`+e.kind+`"`),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&D(e,e.anchor,e.result)):T(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||u}function me(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(R(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);let a=e.input.slice(t,e.position),o=[];for(a.length<1&&T(e,`directive name must not be less than one character in length`);r!==0;){for(;f(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!d(r));break}if(d(r))break;for(t=e.position;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&ee(e),i.call(N,a)?N[a](e,a,o):E(e,`unknown document directive "`+a+`"`)}if(R(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,R(e,!0,-1)):n&&T(e,`directives end mark is expected`),pe(e,e.lineIndent-1,4,!1,!0),R(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&E(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&z(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,R(e,!0,-1));return}e.position<e.length-1&&T(e,`end of the stream or a document separator is expected`)}function he(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=` 58`),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new C(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,T(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)me(n);return n.documents}function ge(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=he(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}function _e(e,n){let r=he(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new t(`expected a single document in the stream, but found more`)}}return Mg.loadAll=ge,Mg.load=_e,Mg}var q_={},J_;function Y_(){if(J_)return q_;J_=1;let e=Fg(),t=Rg(),n=W_(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=65279,o={};o[0]=`\\0`,o[7]=`\\a`,o[8]=`\\b`,o[9]=`\\t`,o[10]=`\\n`,o[11]=`\\v`,o[12]=`\\f`,o[13]=`\\r`,o[27]=`\\e`,o[34]=`\\"`,o[92]=`\\\\`,o[133]=`\\N`,o[160]=`\\_`,o[8232]=`\\L`,o[8233]=`\\P`;let s=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],c=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let a=0,o=r.length;a<o;a+=1){let o=r[a],s=String(t[o]);o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2));let c=e.compiledTypeMap.fallback[o];c&&i.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s}return n}function u(n){let r,i,a=n.toString(16).toUpperCase();if(n<=255)r=`x`,i=2;else if(n<=65535)r=`u`,i=4;else if(n<=4294967295)r=`U`,i=8;else throw new t(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+e.repeat(`0`,i-a.length)+a}function d(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=l(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType===`"`?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer==`function`?t.replacer:null,this.impl
58icitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function f(t,n){let r=e.repeat(` `,n),i=0,a=``,o=t.length;for(;i<o;){let e,n=t.indexOf(` 59`,i);n===-1?(e=t.slice(i),i=o):(e=t.slice(i,n+1),i=n+1),e.length&&e!==` 60`&&(a+=r),a+=e}return a}function p(t,n){return` 61`+e.repeat(` `,t.indent*n)}function m(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function h(e){return e===32||e===9}function g(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}function _(e){return g(e)&&e!==a&&e!==13&&e!==10}function v(e,t,n){let r=_(e),i=r&&!h(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||_(t)&&!h(t)&&e===35||t===58&&i}function y(e){return g(e)&&e!==a&&!h(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}function b(e){return!h(e)&&e!==58}function x(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function S(e){return/^\n* /.test(e)}function C(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=y(x(e,0))&&b(x(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),!g(l))return 5;h&&=v(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!g(l))return 5;h&&=v(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&S(e)?5:o?a===2?5:2:f?4:3}function w(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||c.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),u=i||e.flowLevel>-1&&r>=e.flowLevel;function d(t){return m(e,t)}switch(C(n,u,e.indent,l,d,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+T(n,e.indent)+E(f(n,o));case 4:return`>`+T(n,e.indent)+E(f(D(n,l),o));case 5:return`"`+k(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}function T(e,t){let n=S(e)?String(t):``,r=e[e.length-1]===` 62`;return n+(r&&(e[e.length-2]===` 63`||e===` 64`)?`+`:r?``:`-`)+` 65`}function E(e){return e[e.length-1]===` 66`?e.slice(0,-1):e}function D(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(` 67`);return r=r===-1?e.length:r,n.lastIndex=r,O(e.slice(0,r),t)})(),i=e[0]===` 68`||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?` 69`:``)+O(n,t),i=a}return r}function O(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=` 70`+e.slice(i,a),i=a+1),o=s;return c+=` 71`,e.length-i>t&&o>i?c+=e.slice(i,o)+` 72`+e.slice(o+1):c+=e.slice(i),c.slice(1)}function k(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=x(e,r);let i=o[n];!i&&g(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||u(n)}return t}function A(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(F(e,t,a,!1,!1)||a===void 0&&F(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}function j(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(F(e,t+1,o,!0,!0,!1,!0)||o===void 0&&F(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=p(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}function M(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),F(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),F(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}function N(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);
vendor: 1,308 bytes, line 72
72if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t<o;t+=1){let o=``;(!i||a!==``)&&(o+=p(e,n));let c=s[t],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!F(e,n+1,c,!0,!0,!0))continue;let u=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;u&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,u&&(o+=p(e,n)),F(e,n+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}function P(e,n,a){let o=a?e.explicitTypes:e.implicitTypes;for(let s=0,c=o.length;s<c;s+=1){let c=o[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n==`object`&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(e.tag=a?c.multi&&c.representName?c.representName(n):c.tag:`?`,c.represent){let a=e.styleMap[c.tag]||c.defaultStyle,o;if(r.call(c.represent)===`[object Function]`)o=c.represent(n,a);else if(i.call(c.represent,a))o=c.represent[a](n,a);else throw new t(`!<`+c.tag+`> tag resolver accepts not "`+a+`" style`);e.dump=o}return!0}}return!1}function F(e,n,i,a,o,s,c){e.tag=null,e.dump=i,P(e,i,!1)||P(e,i,!0);let l=r.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>n;let d=l===`[object Object]`||l===`[object Array]`,f,p;
72if(d&&(f=e.duplicates.indexOf(i),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&n>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(N(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(M(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&n>0?j(e,n-1,e.dump,o):j(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(A(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&w(e,e.dump,n,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}function I(e,t){let n=[],r=[];L(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}function L(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)L(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)L(e[r[i]],t,n)}}}function ee(e,t){t||={};let n=new d(t);n.noRefs||I(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),F(n,0,r,!0,!0)?n.dump+` 73`:``}return q_.dump=ee,q_}var X_;function Z_(){if(X_)return jg;X_=1;let e=K_(),t=Y_();function n(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return jg.Type=Wg(),jg.Schema=qg(),jg.FAILSAFE_SCHEMA=a_(),jg.JSON_SCHEMA=b_(),jg.CORE_SCHEMA=C_(),jg.DEFAULT_SCHEMA=W_(),jg.load=e.load,jg.loadAll=e.loadAll,jg.dump=t.dump,jg.YAMLException=Rg(),jg.types={binary:M_(),float:__(),map:n_(),null:c_(),pairs:R_(),set:V_(),timestamp:E_(),bool:d_(),int:m_(),merge:k_(),omap:F_(),seq:$g(),str:Xg()},jg.safeLoad=n(`safeLoad`,`load`),jg.safeLoadAll=n(`safeLoadAll`,`loadAll`),jg.safeDump=n(`safeDump`,`dump`),jg}var Q_=Ag(Z_()),{Type:Mee,Schema:Nee,FAILSAFE_SCHEMA:Pee,JSON_SCHEMA:$_,CORE_SCHEMA:Fee,DEFAULT_SCHEMA:Iee,load:Lee,loadAll:Ree,dump:zee,YAMLException:Bee,types:Vee,safeLoad:Hee,safeLoadAll:Uee,safeDump:Wee}=Q_,ev=n(((e,t)=>{var n=df(),r=mf(),i=n(`keys`);t.exports=function(e){return i[e]||(i[e]=r(e))}})),tv=n(((e,t)=>{t.exports=!Nd()(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})})),nv=n(((e,t)=>{var n=pf(),r=zd(),i=ff(),a=ev(),o=tv(),s=a(`IE_PROTO`),c=Object,l=c.prototype;t.exports=o?c.getPrototypeOf:function(e){var t=i(e);if(n(t,s))return t[s];var a=t.constructor;return r(a)&&t instanceof a?a.prototype:t instanceof c?l:null}})),rv=n(((e,t)=>{var n=Id(),r=af();t.exports=function(e,t,i){try{return n(r(Object.getOwnPropertyDescriptor(e,t)[i]))}catch{}}})),iv=n(((e,t)=>{var n=Jd();t.exports=function(e){return n(e)||e===null}})),av=n(((e,t)=>{var n=iv(),r=String,i=TypeError;t.exports=function(e){if(n(e))return e;throw new i(`Can't set `+r(e)+` as a prototype`)}})),ov=n(((e,t)=>{var n=rv(),r=Jd(),i=Kd(),a=av();
73t.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},o;try{o=n(Object.prototype,`__proto__`,`set`),o(t,[]),e=t instanceof Array}catch{}return function(t,n){return i(t),a(n),r(t)&&(e?o(t,n):t.__proto__=n),t}}():void 0)})),sv=n((e=>{var t=Ff(),n=If().concat(`length`,`prototype`);e.f=Object.getOwnPropertyNames||function(e){return t(e,n)}})),cv=n(((e,t)=>{var n=Xd(),r=Id(),i=sv(),a=Rf(),o=wf(),s=r([].concat);t.exports=n(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?s(t,n(e)):t}})),lv=n(((e,t)=>{var n=pf(),r=cv(),i=bf(),a=Tf();t.exports=function(e,t,o){for(var s=r(t),c=a.f,l=i.f,u=0;u<s.length;u++){var d=s[u];!n(e,d)&&!(o&&n(o,d))&&c(e,d,l(t,d))}}})),uv=n((e=>{var t=Bd(),n=Cf(),r=Tf(),i=wf(),a=qd(),o=Lf();e.f=t&&!n?Object.defineProperties:function(e,t){i(e);for(var n=a(t),s=o(t),c=s.length,l=0,u;c>l;)r.f(e,u=s[l++],n[u]);return e}})),dv=n(((e,t)=>{t.exports=Xd()(`document`,`documentElement`)})),fv=n(((e,t)=>{var n=wf(),r=uv(),i=If(),a=Pf(),o=dv(),s=vf(),c=ev(),l=`>`,u=`<`,d=`prototype`,f=`script`,p=c(`IE_PROTO`),m=function(){},h=function(e){return u+f+l+e+u+`/`+f+l},g=function(e){e.write(h(``)),e.close();var t=e.parentWindow.Object;return e=null,t},_=function(){var e=s(`iframe`),t=`java`+f+`:`,n;return e.style.display=`none`,o.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(h(`document.F=Object`)),n.close(),n.F},v,y=function(){try{v=new ActiveXObject(`htmlfile`)}catch{}y=typeof document<`u`?document.domain&&v?g(v):_():g(v);for(var e=i.length;e--;)delete y[d][i[e]];return y()};a[p]=!0,t.exports=Object.create||function(e,t){var i;return e===null?i=y():(m[d]=n(e),i=new m,m[d]=null,i[p]=e),t===void 0?i:r.f(i,t)}})),pv=n(((e,t)=>{var n=Jd(),r=Ef();t.exports=function(e,t){n(t)&&`cause`in t&&r(e,`cause`,t.cause)}})),mv=n(((e,t)=>{var n=Id(),r=Error,i=n(``.replace),a=(function(e){return String(new r(e).stack)})(`zxcasd`),o=/\n\s*at [^:]*:[^\n]*/,s=o.test(a);t.exports=function(e,t){if(s&&typeof e==`string`&&!r.prepareStackTrace)for(;t--;)e=i(e,o,``);return e}})),hv=n(((e,t)=>{var n=Nd(),r=Ud();t.exports=!n(function(){var e=Error(`a`);return`stack`in e?(Object.defineProperty(e,"stack",r(1,7)),e.stack!==7):!0})})),gv=n(((e,t)=>{var n=Ef(),r=mv(),i=hv(),a=Error.captureStackTrace;t.exports=function(e,t,o,s){i&&(a?a(e,t):n(e,`stack`,r(o,s)))}})),_v=n(((e,t)=>{t.exports=Object.create?Object.create(null):{}})),vv=n(((e,t)=>{var n=hf(),r=_v(),i=n(`iterator`),a=Array.prototype;t.exports=function(e){return e!==void 0&&(r.Array===e||a[i]===e)}})),yv=n(((e,t)=>{var n=hf()(`toStringTag`),r={};r[n]=`z`,t.exports=String(r)===`[object z]`})),bv=n(((e,t)=>{var n=yv(),r=zd(),i=Ld(),a=hf()(`toStringTag`),o=Object,s=i(function(){return arguments}())===`Arguments`,c=function(e,t){try{return e[t]}catch{}};t.exports=n?i:function(e){var t,n,l;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=c(t=o(e),a))==`string`?n:s?i(t):(l=i(t))===`Object`&&r(t.callee)?`Arguments`:l}})),xv=n(((e,t)=>{var n=bv(),r=pf(),i=_v();t.exports=function(e){var t=n(e);return t===`Arguments`&&(t=`Array`),r(i,t)?i[t]:void 0}})),Sv=n(((e,t)=>{var n=of(),r=Gd(),i=xv(),a=hf()(`iterator`);t.exports=function(e){if(!r(e))return n(e,a)||n(e,`@@iterator`)||i(e)}})),Cv=n(((e,t)=>{var n=Vd(),r=zd(),i=wf(),a=rf(),o=Sv(),s=TypeError;t.exports=function(e,t){var c=arguments.length<2?o(e):t;if(r(c))return i(n(c,e));throw new s(a(e)+` is not iterable`)}})),wv=n(((e,t)=>{var n=Vd(),r=wf(),i=of();t.exports=function(e,t,a){var o,s;r(e);try{if(o=i(e,`return`),!o){if(t===`throw`)throw a;return a}o=n(o,e)}catch(e){s=!0,o=e}if(t===`throw`)throw a;if(s)throw o;return r(o),a}})),Tv=n(((e,t)=>{var n=Sf(),r=Vd(),i=wf(),a=rf(),o=vv(),s=Mf(),c=Zd(),l=Cv(),u=Sv(),d=wv(),f=TypeError,p=function(e,t){this.stopped=e,this.result=t},m=p.prototype;t.exports=function(e,t,h){var g=h&&h.that,_=!!(h&&h.AS_ENTRIES),v=!!(h&&h.IS_RECORD),y=!!(h&&h.IS_ITERATOR),b=!!(h&&h.INTERRUPTED),x=n(t,g),S,C,w,T,E,D,O,k=function(e){var t=S;return S=void 0,t&&d(t,`normal`),new p(!0,e)},A=function(e){return _?(i(e),b?x(e[0],e[1],k):x(e[0],e[1])):b?x(e,k):x(e)};if(v)S=e.iterator;else if(y)S=e;else{if(C=u(e),!C)throw new f(a(e)+` is not iterable`);if(o(C)){for(w=0,T=s(e);T>w;w++)if(E=A(e[w]),E&&c(m,E))return E;return new p(!1)}S=l(e,C)}for(D=v?e.next:S.next;!(O=r(D,S)).done;){var j=O.value;try{E=A(j)}catch(e){if(S)d(S,`throw`,e);else throw e}if(typeof E==`object`&&E&&c(m,E))return E}return new p(!1)}})),Ev=n(((e,t)=>{var n=bv(),r=String;t.exports=function(e){if(n(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return r(e)}})),Dv=n(((e,t)=>{var n=Ev();t.exports=function(e,t){return e===void 0?arguments.length<2?``:t:n(e)}})),Ov=n((()=>{var e=Df(),t=Zd(),n=nv(),r=ov(),i=lv(),a=fv(),o=Ef(),s=Ud(),c=pv(),l=gv(),u=Tv(),d=Dv(),f=hf()(`toStringTag`),p=Error,m=[].push,h=function(e,i){var s=t(g,this),_;r?_=r(new p,s?n(this):g):(_=s?this:a(g),o(_,f,`Error`)),i!==void 0&&o(_,`message`,d(i)),l(_,h,_.stack,1),arguments.length>2&&c(_,arguments[2]);var v=[];return u(e,m,{that:v}),o(_,`errors`,v),_};r?r(h,p):i(h,p,{name:!0});var g=h.prototype=a(p.prototype,{constructor:s(1,h),message:s(1,``),name:s(1,`AggregateError`)});e({global:!0,constructor:!0,arity:2},{AggregateError:h})})),kv=n((()=>{Ov()})),Av=n((()=>{kv()})),jv=n(((e,t)=>{var n=Tf().f;
73t.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}})),Mv=n(((e,t)=>{var n=zd(),r=Jd(),i=ov();t.exports=function(e,t,a){var o,s;return i&&n(o=t.constructor)&&o!==a&&r(s=o.prototype)&&s!==a.prototype&&i(e,s),e}})),Nv=n(((e,t)=>{var n=Xd(),r=pf(),i=Ef(),a=Zd(),o=ov(),s=lv(),c=jv(),l=Mv(),u=Dv(),d=pv(),f=gv(),p=Bd(),m=cf();t.exports=function(e,t,h,g){var _=`stackTraceLimit`,v=g?2:1,y=e.split(`.`),b=y[y.length-1],x=n.apply(null,y);if(x){var S=x.prototype;if(!m&&r(S,`cause`)&&delete S.cause,!h)return x;var C=n(`Error`),w=t(function(e,t){var n=u(g?t:e,void 0),r=g?new x(e):new x;return n!==void 0&&i(r,`message`,n),f(r,w,r.stack,2),this&&a(S,this)&&l(r,this,w),arguments.length>v&&d(r,arguments[v]),r});if(w.prototype=S,b===`Error`?p&&_ in x&&(c(w,x,_),c(w,x,`prepareStackTrace`)):o?o(w,C):s(w,C,{name:!0}),s(w,x),!m)try{S.name!==b&&i(S,`name`,b),S.constructor=w}catch{}return w}}})),Pv=n((()=>{var e=Df(),t=Md(),n=Fd(),r=Nv(),i=`WebAssembly`,a=t[i],o=Error(`e`,{cause:7}).cause!==7,s=function(t,n){var i={};i[t]=r(t,n,o),e({global:!0,constructor:!0,arity:1,forced:o},i)},c=function(t,n){if(a&&a[t]){var s={};s[t]=r(i+`.`+t,n,o),e({target:i,stat:!0,constructor:!0,arity:1,forced:o},s)}};s(`Error`,function(e){return function(t){return n(e,this,arguments)}}),s(`EvalError`,function(e){return function(t){return n(e,this,arguments)}}),s(`RangeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`ReferenceError`,function(e){return function(t){return n(e,this,arguments)}}),s(`SyntaxError`,function(e){return function(t){return n(e,this,arguments)}}),s(`TypeError`,function(e){return function(t){return n(e,this,arguments)}}),s(`URIError`,function(e){return function(t){return n(e,this,arguments)}}),c(`CompileError`,function(e){return function(t){return n(e,this,arguments)}}),c(`LinkError`,function(e){return function(t){return n(e,this,arguments)}}),c(`RuntimeError`,function(e){return function(t){return n(e,this,arguments)}})})),Fv=n((()=>{var e=Df(),t=Xd(),n=Fd(),r=Nd(),i=Nv(),a=`AggregateError`,o=t(a),s=!r(function(){return o([1]).errors[0]!==1})&&r(function(){return o([1],a,{cause:7}).cause!==7});e({global:!0,constructor:!0,arity:2,forced:s},{AggregateError:i(a,function(e){return function(t,r){return n(e,this,arguments)}},s,!0)})})),Iv=n(((e,t)=>{t.exports=function(){}})),Lv=n(((e,t)=>{var n=Md(),r=zd(),i=n.WeakMap;t.exports=r(i)&&/native code/.test(String(i))})),Rv=n(((e,t)=>{var n=Lv(),r=Md(),i=Jd(),a=Ef(),o=pf(),s=uf(),c=ev(),l=Pf(),u=`Object already initialized`,d=r.TypeError,f=r.WeakMap,p,m,h,g=function(e){return h(e)?m(e):p(e,{})},_=function(e){return function(t){var n;if(!i(t)||(n=m(t)).type!==e)throw new d(`Incompatible receiver, `+e+` required`);return n}};if(n||s.state){var v=s.state||=new f;v.get=v.get,v.has=v.has,v.set=v.set,p=function(e,t){if(v.has(e))throw new d(u);return t.facade=e,v.set(e,t),t},m=function(e){return v.get(e)||{}},h=function(e){return v.has(e)}}else{var y=c(`state`);l[y]=!0,p=function(e,t){if(o(e,y))throw new d(u);return t.facade=e,a(e,y,t),t},m=function(e){return o(e,y)?e[y]:{}},h=function(e){return o(e,y)}}t.exports={set:p,get:m,has:h,enforce:g,getterFor:_}})),zv=n(((e,t)=>{var n=Bd(),r=pf(),i=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,o=r(i,`name`);t.exports={EXISTS:o,PROPER:o&&function(){}.name===`something`,CONFIGURABLE:o&&(!n||n&&a(i,`name`).configurable)}})),Bv=n(((e,t)=>{var n=Ef();t.exports=function(e,t,r,i){return i&&i.enumerable?e[t]=r:n(e,t,r),e}})),Vv=n(((e,t)=>{var n=Nd(),r=zd(),i=Jd(),a=fv(),o=nv(),s=Bv(),c=hf(),l=cf(),u=c(`iterator`),d=!1,f,p,m;[].keys&&(m=[].keys(),`next`in m?(p=o(o(m)),p!==Object.prototype&&(f=p)):d=!0),!i(f)||n(function(){var e={};return f[u].call(e)!==e})?f={}:l&&(f=a(f)),r(f[u])||s(f,u,function(){return this}),t.exports={IteratorPrototype:f,BUGGY_SAFARI_ITERATORS:d}})),Hv=n(((e,t)=>{var n=yv(),r=bv();t.exports=n?{}.toString:function(){return`[object `+r(this)+`]`}})),Uv=n(((e,t)=>{var n=yv(),r=Tf().f,i=Ef(),a=pf(),o=Hv(),s=hf()(`toStringTag`);t.exports=function(e,t,c,l){var u=c?e:e&&e.prototype;u&&(a(u,s)||r(u,s,{configurable:!0,value:t}),l&&!n&&i(u,`toString`,o))}})),Wv=n(((e,t)=>{var n=Vv().IteratorPrototype,r=fv(),i=Ud(),a=Uv(),o=_v(),s=function(){return this};t.exports=function(e,t,c,l){var u=t+` Iterator`;return e.prototype=r(n,{next:i(+!l,c)}),a(e,u,!1,!0),o[u]=s,e}})),Gv=n(((e,t)=>{var n=Df(),r=Vd(),i=cf(),a=zv(),o=zd(),s=Wv(),c=nv(),l=ov(),u=Uv(),d=Ef(),f=Bv(),p=hf(),m=_v(),h=Vv(),g=a.PROPER,_=a.CONFIGURABLE,v=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,b=p(`iterator`),x=`keys`,S=`values`,C=`entries`,w=function(){return this};
73t.exports=function(e,t,a,p,h,T,E){s(a,t,p);var D=function(e){if(e===h&&M)return M;if(!y&&e&&e in A)return A[e];switch(e){case x:return function(){return new a(this,e)};case S:return function(){return new a(this,e)};case C:return function(){return new a(this,e)}}return function(){return new a(this)}},O=t+` Iterator`,k=!1,A=e.prototype,j=A[b]||A[`@@iterator`]||h&&A[h],M=!y&&j||D(h),N=t===`Array`&&A.entries||j,P,F,I;if(N&&(P=c(N.call(new e)),P!==Object.prototype&&P.next&&(!i&&c(P)!==v&&(l?l(P,v):o(P[b])||f(P,b,w)),u(P,O,!0,!0),i&&(m[O]=w))),g&&h===S&&j&&j.name!==S&&(!i&&_?d(A,`name`,S):(k=!0,M=function(){return r(j,this)})),h){if(F={values:D(S),keys:T?M:D(x),entries:D(C)},E)for(I in F)(y||k||!(I in A))&&f(A,I,F[I]);else n({target:t,proto:!0,forced:y||k},F)}return(!i||E)&&A[b]!==M&&f(A,b,M,{name:h}),m[t]=M,F}})),Kv=n(((e,t)=>{t.exports=function(e,t){return{value:e,done:t}}})),qv=n(((e,t)=>{var n=qd(),r=Iv(),i=_v(),a=Rv(),o=Tf().f,s=Gv(),c=Kv(),l=cf(),u=Bd(),d=`Array Iterator`,f=a.set,p=a.getterFor(d);t.exports=s(Array,`Array`,function(e,t){f(this,{type:d,target:n(e),index:0,kind:t})},function(){var e=p(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case`keys`:return c(n,!1);case`values`:return c(t[n],!1)}return c([n,t[n]],!1)},`values`);var m=i.Arguments=i.Array;if(r(`keys`),r(`values`),r(`entries`),!l&&u&&m.name!==`values`)try{o(m,`name`,{value:`values`})}catch{}})),Jv=n(((e,t)=>{var n=Id(),r=kf(),i=Ev(),a=Kd(),o=n(``.charAt),s=n(``.charCodeAt),c=n(``.slice),l=function(e){return function(t,n){var l=i(a(t)),u=r(n),d=l.length,f,p;return u<0||u>=d?e?``:void 0:(f=s(l,u),f<55296||f>56319||u+1===d||(p=s(l,u+1))<56320||p>57343?e?o(l,u):f:e?c(l,u,u+2):(f-55296<<10)+(p-56320)+65536)}};t.exports={codeAt:l(!1),charAt:l(!0)}})),Yv=n((()=>{var e=Jv().charAt,t=Ev(),n=Rv(),r=Gv(),i=Kv(),a=`String Iterator`,o=n.set,s=n.getterFor(a);r(String,`String`,function(e){o(this,{type:a,string:t(e),index:0})},function(){var t=s(this),n=t.string,r=t.index,a;return r>=n.length?i(void 0,!0):(a=e(n,r),t.index+=a.length,i(a,!1))})})),Xv=n(((e,t)=>{Pv(),kv(),Fv(),qv(),Yv(),t.exports=Yd().AggregateError})),Zv=n(((e,t)=>{t.exports={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}})),Qv=n((()=>{qv();var e=Zv(),t=Md(),n=Uv(),r=_v();for(var i in e)n(t[i],i),r[i]=r.Array})),$v=n(((e,t)=>{Av();var n=Xv();Qv(),t.exports=n})),ey=n(((e,t)=>{t.exports=$v()})),ty=n(((e,t)=>{Av(),t.exports=ey()})),ny=n(((e,t)=>{t.exports=ty()})),ry=r(n(((e,t)=>{t.exports=ny()}))(),1),iy=class extends ry.default{constructor(e,t,n){if(super(e,t,n),this.name=this.constructor.name,typeof t==`string`&&(this.message=t),typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(t).stack,typeof n==`object`&&n&&Object.hasOwn(n,`cause`)&&!(`cause`in this)){let{cause:e}=n;this.cause=e,e instanceof Error&&`stack`in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}},ay=class extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(iy,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,typeof e==`string`&&(this.message=e),typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack,typeof t==`object`&&t&&Object.hasOwn(t,`cause`)&&!(`cause`in this)){let{cause:e}=t;this.cause=e,e instanceof Error&&`stack`in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}},oy=class extends ay{constructor(e,t){if(super(e,t),typeof t==`object`&&t){let{cause:e,...n}=t;Object.assign(this,n)}}},sy=class extends ay{},cy=class extends sy{},ly=function(){return!1},uy=function(){return!0};function dy(e){return typeof e==`object`&&!!e&&e[`@@functional/placeholder`]===!0}function fy(e){return function t(n){return arguments.length===0||dy(n)?t:e.apply(this,arguments)}}function py(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return dy(n)?t:fy(function(t){return e(n,t)});default:return dy(n)&&dy(r)?t:dy(n)?fy(function(t){return e(t,r)}):dy(r)?fy(function(t){return e(n,t)}):e(n,r)}}}function my(e,t){e||=[],t||=[];var n,r=e.length,i=t.length,a=[];for(n=0;n<r;)a[a.length]=e[n],n+=1;for(n=0;n<i;)a[a.length]=t[n],n+=1;return a}function hy(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,i){return t.apply(this,arguments)};case 5:return function(e,n,r,i,a){return t.apply(this,arguments)};case 6:return function(e,n,r,i,a,o){return t.apply(this,arguments)};case 7:return function(e,n,r,i,a,o,s){return t.apply(this,arguments)};case 8:return function(e,n,r,i,a,o,s,c){return t.apply(this,arguments)};case 9:return function(e,n,r,i,a,o,s,c,l){return t.apply(this,arguments)};case 10:return function(e,n,r,i,a,o,s,c,l,u){return t.apply(this,arguments)};default:throw Error(`First argument to _arity must be a non-negative integer no greater than ten`)}}function gy(e,t,n){return function(){for(var r=[],i=0,a=e,o=0,s=!1;o<t.length||i<arguments.length;){var c;o<t.length&&(!dy(t[o])||i>=arguments.length)?c=t[o]:(c=arguments[i],i+=1),r[o]=c,dy(c)?s=!0:--a,o+=1}return!s&&a<=0?n.apply(this,r):hy(Math.max(0,a),gy(e,r,n))}}var _y=py(function(e,t){return e===1?fy(t):hy(e,gy(e,[],t))});function vy(e){return function t(n,r,i){switch(arguments.length){case 0:return t;case 1:return dy(n)?t:py(function(t,r){return e(n,t,r)});case 2:return dy(n)&&dy(r)?t:dy(n)?py(function(t,n){return e(t,r,n)}):dy(r)?py(function(t,r){return e(n,t,r)}):fy(function(t){return e(n,r,t)});default:return dy(n)&&dy(r)&&dy(i)?t:dy(n)&&dy(r)?py(function(t,n){return e(t,n,i)}):dy(n)&&dy(i)?py(function(t,n){return e(t,r,n)}):dy(r)&&dy(i)?py(function(t,r){return e(n,t,r)}):dy(n)?fy(function(t){return e(t,r,i)}):dy(r)?fy(function(t){return e(n,t,i)}):dy(i)?fy(function(t){return e(n,r,t)}):e(n,r,i)}}}var yy=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)===`[object Array]`};function by(e){return e!=null&&typeof e[`@@transducer/step`]==`function`}function xy(e,t,n){return function(){if(arguments.length===0)return n();var r=arguments[arguments.length-1];if(!yy(r)){for(var i=0;i<e.length;){if(typeof r[e[i]]==`function`)return r[e[i]].apply(r,Array.prototype.slice.call(arguments,0,-1));i+=1}if(by(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function Sy(e){return e&&e[`@@transducer/reduced`]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Cy={init:function(){return this.xf[`@@transducer/init`]()},result:function(e){return this.xf[`@@transducer/result`](e)}},wy=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype[`@@transducer/init`]=Cy.init,e.prototype[`@@transducer/result`]=function(e){return this.all&&(e=this.xf[`@@transducer/step`](e,!0)),this.xf[`@@transducer/result`](e)},e.prototype[`@@transducer/step`]=function(e,t){return this.f(t)||(this.all=!1,e=Sy(this.xf[`@@transducer/step`](e,!1))),e},e}();function Ty(e){return function(t){return new wy(e,t)}}var Ey=py(xy([`all`],Ty,function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}));function Dy(e){for(var t=[],n;!(n=e.next()).done;)t.push(n.value);return t}function Oy(e,t,n){for(var r=0,i=n.length;r<i;){if(e(t,n[r]))return!0;r+=1}return!1}function ky(e){var t=String(e).match(/^function (\w*)/);return t==null?``:t[1]}function Ay(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function jy(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}var My=typeof Object.is==`function`?Object.is:jy,Ny=Object.prototype.toString,Py=function(){return Ny.call(arguments)===`[object Arguments]`?function(e){return Ny.call(e)===`[object Arguments]`}:function(e){return Ay(`callee`,e)}}(),Fy=!{toString:null}.propertyIsEnumerable(`toString`),Iy=[`constructor`,`valueOf`,`isPrototypeOf`,`toString`,`propertyIsEnumerable`,`hasOwnProperty`,`toLocaleStr
73ing`],Ly=function(){return arguments.propertyIsEnumerable(`length`)}(),Ry=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},zy=fy(typeof Object.keys==`function`&&!Ly?function(e){return Object(e)===e?Object.keys(e):[]}:function(e){if(Object(e)!==e)return[];var t,n,r=[],i=Ly&&Py(e);for(t in e)Ay(t,e)&&(!i||t!==`length`)&&(r[r.length]=t);if(Fy)for(n=Iy.length-1;n>=0;)t=Iy[n],Ay(t,e)&&!Ry(r,t)&&(r[r.length]=t),--n;return r}),By=fy(function(e){return e===null?`Null`:e===void 0?`Undefined`:Object.prototype.toString.call(e).slice(8,-1)});function Vy(e,t,n,r){var i=Dy(e),a=Dy(t);function o(e,t){return Hy(e,t,n.slice(),r.slice())}return!Oy(function(e,t){return!Oy(o,t,e)},a,i)}function Hy(e,t,n,r){if(My(e,t))return!0;var i=By(e);if(i!==By(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`&&ky(e.constructor)===`Promise`)return e===t;break;case`Boolean`:case`Number`:case`String`:if(!(typeof e==typeof t&&My(e.valueOf(),t.valueOf())))return!1;break;case`Date`:if(!My(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}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;--a}switch(i){case`Map`:return e.size===t.size&&Vy(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case`Set`:return e.size===t.size&&Vy(e.values(),t.values(),n.concat([e]),r.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 o=zy(e);if(o.length!==zy(t).length)return!1;var s=n.concat([e]),c=r.concat([t]);for(a=o.length-1;a>=0;){var l=o[a];if(!(Ay(l,t)&&Hy(t[l],e[l],s,c)))return!1;--a}return!0}var Uy=py(function(e,t){return Hy(e,t,[],[])});function Wy(e,t,n){var r,i;if(typeof e.indexOf==`function`)switch(typeof t){case`number`:if(t===0){for(r=1/t;n<e.length;){if(i=e[n],i===0&&1/i===r)return n;n+=1}return-1}if(t!==t){for(;n<e.length;){if(i=e[n],typeof i==`number`&&i!==i)return n;n+=1}return-1}return e.indexOf(t,n);case`string`:case`boolean`:case`function`:case`undefined`:return e.indexOf(t,n);case`object`:if(t===null)return e.indexOf(t,n)}for(;n<e.length;){if(Uy(e[n],t))return n;n+=1}return-1}function Gy(e,t){return Wy(t,e,0)>=0}
73function Ky(e,t){for(var n=0,r=t.length,i=Array(r);n<r;)i[n]=e(t[n]),n+=1;return i}function qy(e){return`"`+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`).replace(/"/g,`\\"`)+`"`}var Jy=function(e){return(e<10?`0`:``)+e},Yy=typeof Date.prototype.toISOString==`function`?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+`-`+Jy(e.getUTCMonth()+1)+`-`+Jy(e.getUTCDate())+`T`+Jy(e.getUTCHours())+`:`+Jy(e.getUTCMinutes())+`:`+Jy(e.getUTCSeconds())+`.`+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+`Z`};function Xy(e){return function(){return!e.apply(this,arguments)}}function Zy(e,t,n){for(var r=0,i=n.length;r<i;)t=e(t,n[r]),r+=1;return t}function Qy(e,t){for(var n=0,r=t.length,i=[];n<r;)e(t[n])&&(i[i.length]=t[n]),n+=1;return i}function $y(e){return Object.prototype.toString.call(e)===`[object Object]`}var eb=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype[`@@transducer/init`]=Cy.init,e.prototype[`@@transducer/result`]=Cy.result,e.prototype[`@@transducer/step`]=function(e,t){return this.f(t)?this.xf[`@@transducer/step`](e,t):e},e}();function tb(e){return function(t){return new eb(e,t)}}var nb=py(xy([`fantasy-land/filter`,`filter`],tb,function(e,t){return $y(t)?Zy(function(n,r){return e(t[r])&&(n[r]=t[r]),n},{},zy(t)):Qy(e,t)})),rb=py(function(e,t){return nb(Xy(e),t)});function ib(e,t){var n=function(n){var r=t.concat([e]);return Gy(n,r)?`<Circular>`:ib(n,r)},r=function(e,t){return Ky(function(t){return qy(t)+`: `+n(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case`[object Arguments]`:return`(function() { return arguments; }(`+Ky(n,e).join(`, `)+`))`;case`[object Array]`:return`[`+Ky(n,e).concat(r(e,rb(function(e){return/^\d+$/.test(e)},zy(e)))).join(`, `)+`]`;case`[object Boolean]`:return typeof e==`object`?`new Boolean(`+n(e.valueOf())+`)`:e.toString();case`[object Date]`:return`new Date(`+(isNaN(e.valueOf())?n(NaN):qy(Yy(e)))+`)`;case`[object Map]`:return`new Map(`+n(Array.from(e))+`)`;case`[object Null]`:return`null`;case`[object Number]`:return typeof e==`object`?`new Number(`+n(e.valueOf())+`)`:1/e==-1/0?`-0`:e.toString(10);case`[object Set]`:return`new Set(`+n(Array.from(e).sort())+`)`;case`[object String]`:return typeof e==`object`?`new String(`+n(e.valueOf())+`)`:qy(e);case`[object Undefined]`:return`undefined`;default:if(typeof e.toString==`function`){var i=e.toString();if(i!==`[object Object]`)return i}return`{`+r(e,zy(e)).join(`, `)+`}`}}var ab=fy(function(e){return ib(e,[])}),ob=py(function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(r!==void 0)return r;var i=n(typeof e,typeof t);if(i!==void 0)return i===typeof e?e:t;var a=ab(e),o=n(a,ab(t));return o===void 0?t:o===a?e:t}),sb=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype[`@@transducer/init`]=Cy.init,e.prototype[`@@transducer/result`]=Cy.result,e.prototype[`@@transducer/step`]=function(e,t){return this.xf[`@@transducer/step`](e,this.f(t))},e}(),cb=py(xy([`fantasy-land/map`,`map`],function(e){return function(t){return new sb(e,t)}},function(e,t){switch(Object.prototype.toString.call(t)){case`[object Function]`:return _y(t.length,function(){return e.call(this,t.apply(this,arguments))});case`[object Object]`:return Zy(function(n,r){return n[r]=e(t[r]),n},{},zy(t));default:return Ky(e,t)}})),lb=Number.isInteger||function(e){return e<<0===e};function ub(e){return Object.prototype.toString.call(e)===`[object String]`}function db(e,t){var n=e<0?t.length+e:e;return ub(t)?t.charAt(n):t[n]}var fb=py(function(e,t){if(t!=null)return lb(e)?db(e,t):t[e]}),pb=py(function(e,t){return cb(fb(e),t)}),Gee=fy(function(e){return yy(e)?!0:!e||typeof e!=`object`||ub(e)?!1:e.length===0||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)}),mb=typeof Symbol<`u`?Symbol.iterator:`@@iterator`;function hb(e,t,n){return function(r,i,a){if(Gee(a))return e(r,i,a);if(a==null)return i;if(typeof a[`fantasy-land/reduce`]==`function`)return t(r,i,a,`fantasy-land/reduce`);if(a[mb]!=null)return n(r,i,a[mb]());if(typeof a.next==`function`)return n(r,i,a);if(typeof a.reduce==`function`)return t(r,i,a,`reduce`);throw TypeError(`reduce: list must be array or iterable`)}}function Kee(e,t,n){for(var r=0,i=n.length;r<i;){if(t=e[`@@transducer/step`](t,n[r]),t&&t[`@@transducer/reduced`]){t=t[`@@transducer/value`];break}r+=1}return e[`@@transducer/result`](t)}var gb=py(function(e,t){return hy(e.length,function(){return e.apply(t,arguments)})});function qee(e,t,n){for(var r=n.next();!r.done;){if(t=e[`@@transducer/step`](t,r.value),t&&t[`@@transducer/reduced`]){t=t[`@@transducer/value`];break}r=n.next()}return e[`@@transducer/result`](t)}function Jee(e,t,n,r){return e[`@@transducer/result`](n[r](gb(e[`@@transducer/step`],e),t))}var _b=hb(Kee,Jee,qee),Yee=function(){function e(e){this.f=e}return e.prototype[`@@transducer/init`]=function(){throw Error(`init not implemented on XWrap`)},e.prototype[`@@transducer/result`]=function(e){return e},e.prototype[`@@transducer/step`]=function(e,t){return this.f(e,t)},e}();function vb(e){return new Yee(e)}var yb=vy(function(e,t,n){return _b(typeof e==`function`?vb(e):e,t,n)}),Xee=fy(function(e){return _y(yb(ob,0,pb(`length`,e)),function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})}),bb=fy(function(e){return function(){return e}}),Zee=py(function(e,t){return e&&t}),Qee=fy(function(e){return _y(yb(ob,0,pb(`length`,e)),function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});function $ee(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function ete(e,t,n,r){return n[r](e,t)}var tte=hb(Zy,ete,$ee),nte=py(function(e,t){return typeof t[`fantasy-land/ap`]==`function`?t[`fantasy-land/ap`](e):typeof e.ap==`function`?e.ap(t):typeof e==`function`?function(n){return e(n)(t(n))}:tte(function(e,n){return my(e,cb(n,t))},[],e)}),rte=py(function(e,t){return e.apply(this,t)}),xb=fy(function(e){return _y(e.length,e)});
73function ite(e,t,n){if(lb(e)&&yy(n)){var r=[].concat(n);return r[e]=t,r}var i={};for(var a in n)i[a]=n[a];return i[e]=t,i}var Sb=fy(function(e){return e==null}),H=vy(function e(t,n,r){if(t.length===0)return n;var i=t[0];if(t.length>1){var a=!Sb(r)&&Ay(i,r)&&typeof r[i]==`object`?r[i]:lb(t[1])?[]:{};n=e(Array.prototype.slice.call(t,1),n,a)}return ite(i,n,r)}),ate=vy(function(e,t,n){return H([e],t,n)});function Cb(e){var t=Object.prototype.toString.call(e);return t===`[object Function]`||t===`[object AsyncFunction]`||t===`[object GeneratorFunction]`||t===`[object AsyncGeneratorFunction]`}var ote=py(function(e,t){var n=_y(e,t);return _y(e,function(){return Zy(nte,cb(n,arguments[0]),Array.prototype.slice.call(arguments,1))})}),wb=fy(function(e){return ote(e.length,e)}),Tb=py(function(e,t){return Cb(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:wb(Zee)(e,t)});function ste(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 Eb(e,t,n){if(n||=new lte,cte(e))return e;var r=function(r){var i=n.get(e);if(i)return i;for(var a in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,a)&&(r[a]=t?Eb(e[a],!0,n):e[a]);return r};switch(By(e)){case`Object`:return r(Object.create(Object.getPrototypeOf(e)));case`Array`:return r(Array(e.length));case`Date`:return new Date(e.valueOf());case`RegExp`:return ste(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 cte(e){var t=typeof e;return e==null||t!=`object`&&t!=`function`}var lte=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}return}var a=this.hash(e),n=this.map[a];if(n)for(var r=0;r<n.length;r+=1){var i=n[r];if(i[0]===e)return i[1]}},e}(),ute=fy(function(e){return function(t,n){return e(t,n)?-1:+!!e(n,t)}}),Db=wb(fy(function(e){return!e}));function dte(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Ob(e,t){return function(){var n=arguments.length;if(n===0)return t();var r=arguments[n-1];return yy(r)||typeof r[e]!=`function`?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}var kb=vy(Ob(`slice`,function(e,t,n){return Array.prototype.slice.call(n,e,t)})),Ab=fy(Ob(`tail`,kb(1,1/0)));function jb(){if(arguments.length===0)throw Error(`pipe requires at least one argument`);return hy(arguments[0].length,yb(dte,arguments[0],Ab(arguments)))}var Mb=fy(function(e){return db(0,e)});function Nb(e){return e}var Pb=fy(Nb),Fb=function(){function e(e,t,n,r){this.valueFn=e,this.valueAcc=t,this.keyFn=n,this.xf=r,this.inputs={}}return e.prototype[`@@transducer/init`]=Cy.init,e.prototype[`@@transducer/result`]=function(e){for(var t in this.inputs)if(Ay(t,this.inputs)&&(e=this.xf[`@@transducer/step`](e,this.inputs[t]),e[`@@transducer/reduced`])){e=e[`@@transducer/value`];break}return this.inputs=null,this.xf[`@@transducer/result`](e)},e.prototype[`@@transducer/step`]=function(e,t){var n=this.keyFn(t);return this.inputs[n]=this.inputs[n]||[n,Eb(this.valueAcc,!1)],this.inputs[n][1]=this.valueFn(this.inputs[n][1],t),e},e}();function Ib(e,t,n){return function(r){return new Fb(e,t,n,r)}}var Lb=gy(4,[],xy([],Ib,function(e,t,n,r){return _b(vb(function(r,i){var a=n(i),o=e(Ay(a,r)?r[a]:Eb(t,!1),i);return o&&o[`@@transducer/reduced`]?Sy(r):(r[a]=o,r)}),{},r)})),Rb=py(function(e,t){return t==null||t!==t?e:t}),zb=function(){function e(){this._nativeSet=typeof Set==`function`?new Set:null,this._items={}}return e.prototype.add=function(e){return!Bb(e,!0,this)},e.prototype.has=function(e){return Bb(e,!1,this)},e}();function Bb(e,t,n){var r=typeof e,i,a;switch(r){case`string`:case`number`:return e===0&&1/e==-1/0?n._items[`-0`]?!0:(t&&(n._items[`-0`]=!0),!1):n._nativeSet===null?r in n._items?e in n._items[r]||(t&&(n._items[r][e]=!0),!1):(t&&(n._items[r]={},n._items[r][e]=!0),!1):t?(i=n._nativeSet.size,n._nativeSet.add(e),a=n._nativeSet.size,a===i):n._nativeSet.has(e);case`boolean`:if(r in n._items){var o=+!!e;return n._items[r][o]?!0:(t&&(n._items[r][o]=!0),!1)}return t&&(n._items[r]=e?[!1,!0]:[!0,!1]),!1;case`function`:return n._nativeSet===null?r in n._items?Gy(e,n._items[r])?!0:(t&&n._items[r].push(e),!1):(t&&(n._items[r]=[e]),!1):t?(i=n._nativeSet.size,n._nativeSet.add(e),a=n._nativeSet.size,a===i):n._nativeSet.has(e);case`undefined`:return n._items[r]?!0:(t&&(n._items[r]=!0),!1);case`object`:if(e===null)return n._items.null?!0:(t&&(n._items.null=!0),!1);default:return r=Object.prototype.toString.call(e),r in n._items?Gy(e,n._items[r])?!0:(t&&n._items[r].push(e),!1):(t&&(n._items[r]=[e]),!1)}}var Vb=py(function(e,t){for(var n=[],r=0,i=e.length,a=t.length,o=new zb,s=0;s<a;s+=1)o.add(t[s]);for(;r<i;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}),Hb=vy(function(e,t,n){var r=Array.prototype.slice.call(n,0);return r.splice(e,t),r});function Ub(e,t){if(t==null)return t;if(lb(e)&&yy(t))return Hb(e,1,t);var n={};for(var r in t)n[r]=t[r];return delete n[e],n}function Wb(e,t){if(lb(e)&&yy(t))return[].concat(t);var n={};for(var r in t)n[r]=t[r];return n}var Gb=py(function e(t,n){if(n==null)return n;switch(t.length){case 0:return n;case 1:return Ub(t[0],n);default:var r=t[0],i=Array.prototype.slice.call(t,1);return n[r]==null?Wb(r,n):ate(r,e(i,n[r]),n)}}),Kb=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype[`@@transducer/init`]=Cy.init,e.prototype[`@@transducer/result`]=Cy.result,e.prototype[`@@transducer/step`]=function(e,t){this.i+=1;var n=this.n===0?e:this.xf[`@@transducer/step`](e,t);return this.n>=0&&this.i>=this.n?Sy(n):n},e}();function qb(e){return function(t){return new Kb(e,t)}}var Jb=py(xy([`take`],qb,function(e,t){return kb(0,e<0?1/0:e,t)}));function Yb(e,t){for(var n=t.length-1;n>=0&&e(t[n]);)--n;return kb(0,n+1,t)}var Xb=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype[`@@transducer/init`]=Cy.init,e.prototype[`@@transducer/result`]=function(e){return this.retained=null,this.xf[`@@transducer/result`](e)},e.prototype[`@@transducer/step`]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=_b(this.xf,e,this.retained),this.retained=[],this.xf[`@@transducer/step`](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function Zb(e){return function(t){return new Xb(e,t)}}var Qb=py(xy([],Zb,Yb)),$b=fy(function(e){return db(-1,e)}),ex=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype[`@@transducer/init`]=Cy.init,e.prototype[`@@transducer/result`]=Cy.result,e.prototype[`@@transducer/step`]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf[`@@transducer/step`](e,t)},e}();function tx(e){return function(t){return new ex(e,t)}}var nx=py(xy([`dropWhile`],tx,function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return kb(n,1/0,t)})),rx=py(function(e,t){return e||t}),ix=py(function(e,t){return Cb(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:wb(rx)(e,t)});function ax(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
73]`||t===`[object BigInt64Array]`||t===`[object BigUint64Array]`}var ox=fy(function(e){return e!=null&&typeof e[`fantasy-land/empty`]==`function`?e[`fantasy-land/empty`]():e!=null&&e.constructor!=null&&typeof e.constructor[`fantasy-land/empty`]==`function`?e.constructor[`fantasy-land/empty`]():e!=null&&typeof e.empty==`function`?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty==`function`?e.constructor.empty():yy(e)?[]:ub(e)?``:$y(e)?{}:Py(e)?function(){return arguments}():ax(e)?e.constructor.from(``):void 0}),sx=fy(function(e){return _y(e.length,function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)})}),cx=py(Ob(`groupBy`,Lb(function(e,t){return e.push(t),e},[]))),lx=py(function(e,t){if(e.length===0||Sb(t))return!1;for(var n=t,r=0;r<e.length;)if(!Sb(n)&&Ay(e[r],n))n=n[e[r]],r+=1;else return!1;return!0}),ux=py(function(e,t){return lx([e],t)}),dx=function(e,t){switch(arguments.length){case 0:return dx;case 1:return function(){return function t(n){switch(arguments.length){case 0:return t;default:return My(e,n)}}}();default:return My(e,t)}},fx=vy(function(e,t,n){return _y(Math.max(e.length,t.length,n.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)})}),px=py(Gy),mx=kb(0,-1),hx=py(function(e,t){return _y(e+1,function(){var n=arguments[e];if(n!=null&&Cb(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw TypeError(ab(n)+` does not have a method named "`+t+`"`)})}),gx=fy(function(e){return e!=null&&Uy(e,ox(e))}),_x=fy(function(e){return!gx(e)}),vx=hx(1,`join`);function yx(e){return Object.prototype.toString.call(e)===`[object Number]`}var bx=py(function(e,t){return function(n){return function(r){return cb(function(e){return t(e,r)},n(e(r)))}}});function xx(e,t){for(var n=t,r=0;r<e.length;r+=1){if(n==null)return;var i=e[r];n=lb(i)?db(i,n):n[i]}return n}var Sx=py(function(e,t){return Zy(function(n,r){return n[r]=e(t[r],r,t),n},{},zy(t))}),Cx=vy(function(e,t,n){var r={},i;for(i in t||={},n||={},t)Ay(i,t)&&(r[i]=Ay(i,n)?e(i,t[i],n[i]):t[i]);for(i in n)Ay(i,n)&&!Ay(i,r)&&(r[i]=n[i]);return r}),wx=vy(function e(t,n,r){return Cx(function(n,r,i){return $y(r)&&$y(i)?e(t,r,i):t(n,r,i)},n,r)}),Tx=py(function(e,t){return wx(function(e,t,n){return n},e,t)}),Ex=py(function(e,t){return Ey(Xy(e),t)}),Dx=function(e){return{value:e,map:function(t){return Dx(t(e))}}},Ox=vy(function(e,t,n){return e(function(e){return Dx(t(e))})(n).value}),kx=py(xx),Ax=vy(function(e,t,n){return Rb(e,xx(t,n))}),jx=vy(function(e,t,n){return e(xx(t,n))}),Mx=py(function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n}),Nx=vy(function(e,t,n){return Uy(e,fb(t,n))}),Px=vy(function(e,t,n){return Rb(e,fb(t,n))}),Fx=vy(function(e,t,n){return e(fb(t,n))}),Ix=py(function(e,t){if(!(yx(e)&&yx(t)))throw TypeError(`Both arguments to range must be numbers`);for(var n=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,i=0;i<r;)n[i]=i+e,i+=1;return n}),Lx=fy(Sy),Rx=vy(function(e,t,n){return n.replace(e,t)}),zx=py(function(e,t){return Array.prototype.slice.call(t,0).sort(e)}),Bx=hx(1,`split`),Vx=py(function(e,t){return Uy(Jb(e.length,t),e)}),Hx=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype[`@@transducer/init`]=Cy.init,e.prototype[`@@transducer/result`]=Cy.result,e.prototype[`@@transducer/step`]=function(e,t){return Oy(this.pred,t,this.items)?e:(this.items.push(t),this.xf[`@@transducer/step`](e,t))},e}();function Ux(e){return function(t){return new Hx(e,t)}}var Wx=py(xy([],Ux,function(e,t){for(var n=0,r=t.length,i=[],a;n<r;)a=t[n],Oy(e,a,i)||(i[i.length]=a),n+=1;return i})),Gx=vy(function(e,t,n){return e(n)?t(n):n}),Kx=bb(void 0),qx=Uy(Kx()),Jx=Db(qx),Yx=Uy(null),Xx=Db(Yx),Zx=Db(Sb),Qx=_y(1,jb(By,dx(`GeneratorFunction`))),$x=_y(1,jb(By,dx(`AsyncFunction`))),eS=Qee([jb(By,dx(`Function`)),Qx,$x]),tS=_y(1,eS(Array.isArray)?Array.isArray:jb(By,dx(`Array`))),nS=Tb(tS,gx),rS=Tb(tS,_x),iS=_y(1,jb(By,dx(`String`))),aS=Uy(``);function oS(e){"@babel/helpers - typeof";return oS=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},oS(e)}var sS=function(e){return oS(e)===`object`},cS=Xee([iS,Db(_y(1,Tb(Xx,ix(sS,eS)))),_x]),lS=Db(eS),uS=_y(1,Tb(Xx,sS)),dS=jb(By,dx(`Object`)),fS=jx(Tb(eS,jb(ab,Uy(ab(Object)))),[`constructor`]),pS=_y(1,function(e){if(!uS(e)||!dS(e))return!1;var t=Object.getPrototypeOf(e);return Yx(t)?!0:fS(t)}),mS=_y(1,jb(By,dx(`RegExp`)));function hS(e){return yS(e)||vS(e)||_S(e)||gS()}function gS(){throw TypeError(`Invalid attempt to spread non-iterable instance. 74In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function _S(e,t){if(e){if(typeof e==`string`)return bS(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?bS(e,t):void 0}}function vS(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function yS(e){if(Array.isArray(e))return bS(e)}function bS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var xS=jb(zx(ute(function(e,t){return e.length>t.length})),Mb,fb(`length`)),SS=xb(function(e,t,n){var r=n.apply(void 0,hS(e));return Zx(r)?Lx(r):t}
74),CS=fx(rS,function(e){return _y(xS(e),function(){return yb(SS([...arguments]),void 0,e)})},Kx),wS=sx(px),TS=_y(3,function(e,t,n){var r=kx(e,n),i=kx(mx(e),n);if(!lS(r)&&!nS(e))return rte(gb(r,i),t)}),ES=Gx(iS,Rx(/[.*+?^${}()|[\]\\-]/g,`\\$&`)),DS=function(e,t,n){if(n==null||e==null||t==null)throw TypeError("Input values must not be `null` or `undefined`")},OS=function(e,t){if(typeof e!=`string`&&!(e instanceof String))throw TypeError(`\`${t}\` must be a string`)},kS=function(e){if(typeof e!=`string`&&!(e instanceof String)&&!(e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")},AS=_y(3,function(e,t,n){return DS(e,t,n),OS(n,`str`),OS(t,`replaceValue`),kS(e),Rx(new RegExp(mS(e)?e:ES(e),`g`),t,n)}),jS=hx(2,`replaceAll`),MS=eS(String.prototype.replaceAll)?jS:AS,NS=xb(function(e,t){return jb(Bx(``),Qb(wS(e)),vx(``))(t)}),PS=xb(function(e,t){return jb(Bx(``),nx(wS(e)),vx(``))(t)}),FS=t({cwd:()=>qS,fromFileSystemPath:()=>WS,getExtension:()=>zS,getHash:()=>GS,getProtocol:()=>LS,hasProtocol:()=>RS,isFileSystemPath:()=>BS,isHttpUrl:()=>VS,isURI:()=>HS,resolve:()=>JS,sanitize:()=>YS,stripHash:()=>KS,toFileSystemPath:()=>US,unsanitize:()=>XS}),IS=()=>/^win/.test(globalThis.process?.platform??``),LS=e=>{try{return NS(`:`,new URL(e).protocol)}catch{return}},RS=jb(LS,Jx),zS=e=>{let t=e.lastIndexOf(`.`);return t>=0?e.substring(t).toLowerCase():``},BS=e=>{if(globalThis.window!==void 0)return!1;let t=LS(e);return qx(t)||t===`file`||/^[a-zA-Z]$/.test(t)},VS=e=>{let t=LS(e);return t===`http`||t===`https`},HS=e=>{try{return new URL(e),!0}catch{return!1}},US=(e,t)=>{let n=[/%23/g,`#`,/%24/g,`$`,/%26/g,`&`,/%2C/g,`,`,/%40/g,`@`],r=Px(!1,`keepFileProtocol`,t),i=Px(IS,`isWindows`,t),a=decodeURI(e);for(let e=0;e<n.length;e+=2)a=a.replace(n[e],n[e+1]);let o=a.substring(0,7).toLowerCase()===`file://`;return o&&(a=a[7]===`/`?a.substring(8):a.substring(7),i()&&a[1]===`/`&&(a=`${a[0]}:${a.substring(1)}`),r?a=`file:///${a}`:(o=!1,a=i()?a:`/${a}`)),i()&&!o&&(a=MS(`/`,`\\`,a),a.substring(1,3)===`:\\`&&(a=a[0].toUpperCase()+a.substring(1))),a},WS=e=>{let t=[/\?/g,`%3F`,/#/g,`%23`],n=e;IS()&&(n=n.replace(/\\/g,`/`)),n=encodeURI(n);for(let e=0;e<t.length;e+=2)n=n.replace(t[e],t[e+1]);return n},GS=e=>{let t=e.indexOf(`#`);return t===-1?`#`:e.substring(t)},KS=e=>{let t=e.indexOf(`#`),n=e;return t>=0&&(n=e.substring(0,t)),n},qS=()=>
74{if(globalThis.window!==void 0)return KS(globalThis.location.href);let e=globalThis.process?.cwd()??`/`,t=$b(e);return[`/`,`\\`].includes(t)?e:e+(IS()?`\\`:`/`)},JS=(e,t)=>{let n=new URL(t,new URL(e,`resolve://`));if(n.protocol===`resolve:`){let{pathname:e,search:t,hash:r}=n;return e+t+r}return n.toString()},YS=e=>{if(BS(e))return WS(US(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,`[`).replace(/%5D/g,`]`)}},XS=e=>BS(e)?US(e):decodeURI(e),ZS=class{uri;mediaType;data;parseResult;constructor({uri:e,mediaType:t=`text/plain`,data:n,parseResult:r}){this.uri=e,this.mediaType=t,this.data=n,this.parseResult=r}get extension(){return iS(this.uri)?zS(this.uri):``}toString(){return typeof this.data==`string`?this.data:this.data instanceof ArrayBuffer||[`ArrayBuffer`].includes(By(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder(`utf-8`).decode(this.data):String(this.data)}},QS=class{rootRef;refs;circular;constructor({refs:e=[],circular:t=!1}={}){this.refs=[],this.circular=t,e.forEach(this.add.bind(this))}get size(){return this.refs.length}add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===void 0?e:this.rootRef,e.refSet=this),this}merge(e){for(let t of e.values())this.add(t);return this}has(e){let t=iS(e)?e:e.uri;return Jx(this.find(e=>e.uri===t))}find(e){return this.refs.find(e)}*values(){yield*this.refs}clean(){this.refs.forEach(e=>{e.refSet=void 0}),this.rootRef=void 0,this.refs.length=0}},$S={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:Pb,immutable:!0,dereferenceOpts:{}},bundle:{strategies:[],refSet:null,maxDepth:1/0}},eC=bx(kx([`resolve`,`baseURI`]),H([`resolve`,`baseURI`])),tC=e=>aS(e)?qS():e,nC=(e,t)=>Ox(eC,tC,Tx(e,t)),rC=class extends ay{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},iC=async(e,t,n)=>{let r=await Promise.all(n.map(TS([e],t)));return n.filter((e,t)=>r[t])},aC=async(e,t,n)=>{let r;for(let i of n)try{return{plugin:i,result:await i[e].call(i,...t)}}catch(e){r=new rC(`Error while running plugin`,{cause:e,plugin:i})}return Promise.reject(r)},oC=class extends ay{},sC=class extends ay{},cC=class extends sC{},lC=class extends cC{},uC=`apidom-file-cache`,dC=async({cacheKey:e,cacheTTL:t})=>{if(t===0)return{cachedResult:null,cachedError:null};try{let n=await caches.open(uC),r=await n.match(e);if(r){let{cachedResult:i,cachedError:a,timestamp:o}=await r.json();if(Date.now()-o<t)return{cachedResult:i,cachedError:a};await n.delete(e)}}catch{return console.log(`There was an error parsing the response`),{cachedResult:null,cachedError:null}}return{cachedResult:null,cachedError:null}},fC=async({cacheKey:e,result:t,error:n,cacheTTL:r})=>{if(r!==0)try{let r={cachedResult:t,cachedError:n,timestamp:Date.now()},i=await caches.open(uC),a=new Response(JSON.stringify(r),{headers:{"Content-Type":`application/json`}});await i.put(e,a)}catch{console.error(`CacheStorage is not available`)}},pC=async(e,t)=>{let{cacheTTL:n=0}=t.resolve.resolverOpts,r=`read_${e.uri}`,{cachedResult:i,cachedError:a}=await dC({cacheKey:r,cacheTTL:n});if(i!==null)return i;if(a!==null)throw new sC(`Error while reading file "${e.uri}"`,{cause:a});let o=t.resolve.resolvers.map(e=>{let n=Object.create(e);return Object.assign(n,t.resolve.resolverOpts)}),s=await iC(`canRead`,[e,t],o);if(gx(s))throw new lC(e.uri);try{let{result:t}=await aC(`read`,[e],s);return await fC({cacheKey:r,result:new ZS({...e,data:t}).toString(),error:null,cacheTTL:n}),t}catch(t){var c;throw await fC({cacheKey:r,result:null,error:(t==null||(c=t.cause)==null?void 0:c.cause)??t?.cause??t,cacheTTL:n}),new sC(`Error while reading file "${e.uri}"`,{cause:t})}},mC=async(e,t)=>{let n=t.parse.parsers.map(e=>{let n=Object.create(e);return Object.assign(n,t.parse.parserOpts)}),r=await iC(`canParse`,[e,t],n);if(gx(r))throw new lC(e.uri);try{let{plugin:n,result:i}=await aC(`parse`,[e,t],r);return!n.allowEmpty&&i.isEmpty?Promise.reject(new oC(`Error while parsing file "${e.uri}". File is empty.`)):i}catch(t){throw new oC(`Error while parsing file "${e.uri}"`,{cause:t})}},hC=async(e,t)=>{let n=new ZS({uri:YS(KS(e)),mediaType:t.parse.mediaType}),r=await pC(n,t);return mC(new ZS({...n,data:r}),t)},gC=n(((e,t)=>{function n(e){return e===null}t.exports=n})),_C=n(((e,t)=>{var n=h(),r=p(),i=`[object Number]`;function a(e){return typeof e==`number`||r(e)&&n(e)==i}t.exports=a})),vC=n(((e,t)=>{var n=h(),r=p(),i=`[object Boolean]`;function a(e){return e===!0||e===!1||r(e)&&n(e)==i}t.exports=a})),yC=n(((e,t)=>{t.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw TypeError(`Given element \`${e}\` is not an Element instance`);let t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));let n=this.serialiseContent(e.content);return n!==void 0&&(t.content=n),t}deserialise(e){if(!e.element)throw Error(`Given value is not an object c
74ontaining an element name`);let t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);let n=this.deserialiseContent(e.content);return(n!==void 0||t.content===null)&&(t.content=n),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){let t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.length===0?void 0:e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){let t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){let t={};if(e.forEach((e,n)=>{e&&(t[n.toValue()]=this.serialise(e))}),Object.keys(t).length!==0)return t}deserialiseObject(e,t){Object.keys(e).forEach(n=>{t.set(n,this.deserialise(e[n]))})}}})),bC=n(((e,t)=>{t.exports=class e{constructor(e,t){this.key=e,this.value=t}clone(){let t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}})),xC=n(((e,t)=>{var n=kt();function r(e){return typeof e==`string`?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}var i=class e{constructor(e){this.elements=e||[]}toValue(){return this.elements.map(e=>e.toValue())}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce((e,t)=>e.concat(t),[])}compactMap(e,t){let n=[];return this.forEach(r=>{let i=e.bind(t)(r);i&&n.push(i)}),n}filter(t,n){return t=r(t),new e(this.elements.filter(t,n))}reject(t,i){return t=r(t),new e(this.elements.filter(n(t),i))}find(e,t){return e=r(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some(t=>t.equals(e))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){let t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return this.elements.length===0}get first(){return this.elements[0]}};typeof Symbol<`u`&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),t.exports=i})),SC=n(((e,t)=>{var n=Ot(),r=bC(),i=xC();t.exports=class e{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach(e=>{e.parent=this,e.freeze()},this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){let e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),e.content=this.content?this.content.clone?this.content.clone():Array.isArray(this.content)?this.content.map(e=>e.clone()):this.content:this.content,e}toValue(){return this.content instanceof e?this.content.toValue():this.content instanceof r?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map(e=>e.toValue(),this):this.content}toRef(e){if(this.id.toValue()===``)throw Error(`Cannot create reference to an element that does not contain an ID`);let t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");let t=e.pop(),n=new i,a=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);let i=n.findRecursive(t);return i&&i.reduce(a,e),n.content instanceof r&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter(t=>{let n=t.parents.map(e=>e.element);for(let t in e){let r=e[t],i=n.indexOf(r);if(i!==-1)n=n.splice(0,i);else return!1}return!0})),n}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){let e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}
74get element(){return this._storedElement||`element`}set element(e){this._storedElement=e}get content(){return this._content}set content(t){if(t instanceof e)this._content=t;else if(t instanceof i)this.content=t.elements;else if(typeof t==`string`||typeof t==`number`||typeof t==`boolean`||t===`null`||t==null)this._content=t;else if(t instanceof r)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else if(typeof t==`object`)this._content=Object.keys(t).map(e=>new this.MemberElement(e,t[e]));else throw Error(`Cannot set content to given value`)}get meta(){if(!this._meta){if(this.isFrozen){let e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){let e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty(`id`,``)}set id(e){this.setMetaProperty(`id`,e)}get classes(){return this.getMetaProperty(`classes`,[])}set classes(e){this.setMetaProperty(`classes`,e)}get title(){return this.getMetaProperty(`title`,``)}set title(e){this.setMetaProperty(`title`,e)}get description(){return this.getMetaProperty(`description`,``)}set description(e){this.setMetaProperty(`description`,e)}get links(){return this.getMetaProperty(`links`,[])}set links(e){this.setMetaProperty(`links`,e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this,t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof r){let e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof e?new i([this.content]):new i}get recursiveChildren(){let e=new i;return this.children.forEach(t=>{e.push(t),t.recursiveChildren.forEach(t=>{e.push(t)})}),e}}})),CC=n(((e,t)=>{var n=SC();t.exports=class extends n{constructor(e,t,n){super(e||null,t,n),this.element=`null`}primitive(){return`null`}set(){return Error(`Cannot set the value of null`)}}})),wC=n(((e,t)=>{var n=SC();t.exports=class extends n{constructor(e,t,n){super(e,t,n),this.element=`string`}primitive(){return`string`}get length(){return this.content.length}}})),TC=n(((e,t)=>{var n=SC();t.exports=class extends n{constructor(e,t,n){super(e,t,n),this.element=`number`}primitive(){return`number`}}})),EC=n(((e,t)=>{var n=SC();t.exports=class extends n{constructor(e,t,n){super(e,t,n),this.element=`boolean`}primitive(){return`boolean`}}})),DC=n(((e,t)=>{var n=kt(),r=SC(),i=xC(),a=class extends r{constructor(e,t,n){super(e||[],t,n),this.element=`array`}primitive(){return`array`}get(e){return this.content[e]}getValue(e){let t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){let t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce((e,t)=>e.concat(t),[])}compactMap(e,t){let n=[];return this.forEach(r=>{let i=e.bind(t)(r);i&&n.push(i)}),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let n,r;t===void 0?(n=1,r=this.primitive()===`object`?this.first.value:this.first):(n=0,r=this.refract(t));for(let t=n;t<this.length;t+=1){let n=this.content[t];r=this.primitive()===`object`?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach((n,r)=>{e.bind(t)(n,this.refract(r))})}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){let n=t||{},r=!!n.recursive,i=n.results===void 0?[]:n.results;return this.forEach((t,n,a)=>{r&&t.findElements!==void 0&&t.findElements(e,{results:i,recursive:r}),e(t,n,a)&&i.push(t)}),i}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>t.classes.includes(e))}getById(e){return this.find(t=>
74t.id.toValue()===e).first}includes(e){return this.content.some(t=>t.equals(e))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map(t=>e(t),this).reduce((e,t)=>e.concat(t),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}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)}};a.empty=function(){return new this},a[`fantasy-land/empty`]=a.empty,typeof Symbol<`u`&&(a.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=a})),OC=n(((e,t)=>{var n=bC(),r=SC();
74t.exports=class extends r{constructor(e,t,r,i){super(new n,r,i),this.element=`member`,this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}})),kC=n(((e,t)=>{var n=kt(),r=xC();t.exports=class e extends r{map(e,t){return this.elements.map(n=>e.bind(t)(n.value,n.key,n))}filter(t,n){return new e(this.elements.filter(e=>t.bind(n)(e.value,e.key,e)))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach((n,r)=>{e.bind(t)(n.value,n.key,n,r)})}keys(){return this.map((e,t)=>t.toValue())}values(){return this.map(e=>e.toValue())}}})),AC=n(((e,t)=>{var n=kt(),r=E(),i=DC(),a=OC(),o=kC();t.exports=class extends i{constructor(e,t,n){super(e||[],t,n),this.element=`object`}primitive(){return`object`}toValue(){return this.content.reduce((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e),{})}get(e){let t=this.getMember(e);if(t)return t.value}getMember(e){if(e!==void 0)return this.content.find(t=>t.key.toValue()===e)}remove(e){let t=null;return this.content=this.content.filter(n=>n.key.toValue()!==e||(t=n,!1)),t}getKey(e){let t=this.getMember(e);if(t)return t.key}set(e,t){if(r(e))return Object.keys(e).forEach(t=>{this.set(t,e[t])}),this;let n=e,i=this.getMember(n);return i?i.value=t:this.content.push(new a(n,t)),this}keys(){return this.content.map(e=>e.key.toValue())}values(){return this.content.map(e=>e.value.toValue())}hasKey(e){return this.content.some(t=>t.key.equals(e))}items(){return this.content.map(e=>[e.key.toValue(),e.value.toValue()])}map(e,t){return this.content.map(n=>e.bind(t)(n.value,n.key,n))}compactMap(e,t){let n=[];return this.forEach((r,i,a)=>{let o=e.bind(t)(r,i,a);o&&n.push(o)}),n}filter(e,t){return new o(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach(n=>e.bind(t)(n.value,n.key,n))}}})),jC=n(((e,t)=>{var n=SC();t.exports=class extends n{constructor(e,t,n){super(e||[],t,n),this.element=`link`}get relation(){return this.attributes.get(`relation`)}set relation(e){this.attributes.set(`relation`,e)}get href(){return this.attributes.get(`href`)}set href(e){this.attributes.set(`href`,e)}}})),MC=n(((e,t)=>{var n=SC();t.exports=class extends n{constructor(e,t,n){super(e||[],t,n),this.element=`ref`,this.path||=`element`}get path(){return this.attributes.get(`path`)}set path(e){this.attributes.set(`path`,e)}}})),NC=n(((e,t)=>{var n=SC(),r=CC(),i=wC(),a=TC(),o=EC(),s=DC(),c=OC(),l=AC(),u=jC(),d=MC(),f=xC(),p=kC(),m=bC();function h(e){return e instanceof n?e:typeof e==`string`?new i(e):typeof e==`number`?new a(e):typeof e==`boolean`?new o(e):e===null?new r:Array.isArray(e)?new s(e.map(h)):typeof e==`object`?new l(e):e}n.prototype.ObjectElement=l,n.prototype.RefElement=d,n.prototype.MemberElement=c,n.prototype.refract=h,f.prototype.refract=h,t.exports={Element:n,NullElement:r,StringElement:i,NumberElement:a,BooleanElement:o,ArrayElement:s,MemberElement:c,ObjectElement:l,LinkElement:u,RefElement:d,refract:h,ArraySlice:f,ObjectSlice:p,KeyValuePair:m}})),PC=n(((e,t)=>{var n=gC(),r=bm(),i=_C(),a=vC(),o=E(),s=yC(),c=NC(),l=class{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=c.Element,this.KeyValuePair=c.KeyValuePair,(!e||!e.noDefault)&&this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register(`null`,c.NullElement).register(`string`,c.StringElement).register(`number`,c.NumberElement).register(`boolean`,c.BooleanElement).register(`array`,c.ArrayElement).register(`object`,c.ObjectElement).register(`member`,c.MemberElement).register(`ref`,c.RefElement).register(`link`,c.LinkElement),this.detect(n,c.NullElement,!1).detect(r,c.StringElement,!1).detect(i,c.NumberElement,!1).detect(a,c.BooleanElement,!1).detect(Array.isArray,c.ArrayElement,!1).detect(o,c.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return n===void 0||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){let r=this.elementDetection[n][0],i=this.elementDetection[n][1];if(r(e)){t=new i(e);break}}return t}getElementClass(e){let t=this.elementMap[e];return t===void 0?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return this._elements===void 0&&(this._elements={Element:this.Element}
74,Object.keys(this.elementMap).forEach(e=>{let t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new s(this)}};s.prototype.Namespace=l,t.exports=l})),FC=n(((e,t)=>{var n=yC();t.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get(`variable`)&&(t=e.attributes.get(`variable`));let n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));let r=e.element===`enum`||e.attributes.keys().indexOf(`enumerations`)!==-1;if(r){let t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get(`metadata`)&&(r=r.clone(),r.set(`meta`,r.get(`metadata`)),r.remove(`metadata`)),e.element===`member`&&t&&(r=r.clone(),r.remove(`variable`)),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(e.content!==void 0){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set(`variable`,t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}shouldSerialiseContent(e,t){return e.element===`parseResult`||e.element===`httpRequest`||e.element===`httpResponse`||e.element===`category`||e.element===`link`||!(t===void 0||Array.isArray(t)&&t.length===0)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){let t=e.attributes.clone(),n=t.remove(`enumerations`)||new this.namespace.elements.Array([]),r=t.get(`default`),i=t.get(`samples`)||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove(`typeAttributes`),t.set(`default`,new this.namespace.elements.Array([r.content]))),i.forEach(e=>{e.content&&e.content.element&&e.content.attributes.remove(`typeAttributes`)}),e.content&&n.length!==0&&i.unshift(e.content),i=i.map(e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content])),i.length&&t.set(`samples`,i),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){let t=e.attributes.get(`enumerations`);if(t&&t.length>0)return t.content.map(e=>{let t=e.clone();return t.attributes.remove(`typeAttributes`),this.serialise(t)})}if(e.content){let t=e.content.clone();return t.attributes.remove(`typeAttributes`),[this.serialise(t)]}return[]}deserialise(e){if(typeof e==`string`)return new this.namespace.elements.String(e);if(typeof e==`number`)return new this.namespace.elements.Number(e);if(typeof e==`boolean`)return new this.namespace.elements.Boolean(e);if(e===null)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));let t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);let r=this.deserialiseContent(e.content);if((r!==void 0||n.content===null)&&(n.content=r),n.element===`enum`){n.content&&n.attributes.set(`enumerations`,n.content);let e=n.attributes.get(`samples`);if(n.attributes.remove(`samples`),e){let r=e;e=new this.namespace.elements.Array,r.forEach(r=>{r.forEach(r=>{let i=new t(r);i.element=n.element,e.push(i)})});let i=e.shift();n.content=i?i.content:void 0,n.attributes.set(`samples`,e)}else n.content=void 0;let r=n.attributes.get(`default`);if(r&&r.length>0){r=r.get(0);let e=new t(r);e.element=n.element,n.attributes.set(`default`,e)}}else if(n.element===`dataStructure`&&Array.isArray(n.content))[n.content]=n.content;else if(n.element===`category`){let e=n.attributes.get(`meta`);e&&(n.attributes.set(`metadata`,e),n.attributes.remove(`meta`))}else n.element===`member`&&n.key&&n.key._attributes&&n.key._attributes.getValue(`variable`)&&(n.attributes.set(`variable`,n.key.attributes.get(`variable`)),n.key.attributes.remove(`variable`));return n}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){let t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){let t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length?!0:e.element===`enum`?!1:e.element!==e.primitive()||e.element===`member`}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):t.element===`enum`?this.serialiseEnum(t):t.element===`array`?t.map(t=>this.shouldRefract(t)||e==="default"?this.serialise(t):t.element===`array`||t.element===`object`||t.element===`enum`?t.children.map(e=>this.serialise(e)):t.toValue()):t.element===`object`?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map(e=>this.serialise(e))}serialiseObject(e){let t={};return e.forEach((e,n)=>{if(e){let r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}}),t}deserialiseObject(e,t){Object.keys(e).forEach(n=>{t.set(n,this.deserialise(e[n]))})}}})),U=n((e=>{var t=PC(),n=NC();e.Namespace=t,e.KeyValuePair=bC(),e.ArraySlice=n.ArraySlice,e.ObjectSlice=n.ObjectSlice,e.Element=n.Element,e.StringElement=n.StringElement,e.NumberElement=n.NumberElement,e.BooleanElement=n.BooleanElement,e.NullElement=n.NullElement,e.ArrayElement=n.ArrayElement,e.ObjectElement=n.ObjectElement,e.MemberElement=n.MemberElement,e.RefElement=n.RefElement,e.
74LinkElement=n.LinkElement,e.refract=n.refract,e.JSONSerialiser=yC(),e.JSON06Serialiser=FC()}))(),IC=class extends U.StringElement{constructor(e,t,n){super(e,t,n),this.element=`annotation`}get code(){return this.attributes.get(`code`)}set code(e){this.attributes.set(`code`,e)}},LC=class extends U.StringElement{constructor(e,t,n){super(e,t,n),this.element=`comment`}},RC=class extends U.ArrayElement{constructor(e,t,n){super(e,t,n),this.element=`parseResult`}get api(){return this.children.filter(e=>e.classes.contains(`api`)).first}get results(){return this.children.filter(e=>e.classes.contains(`result`))}get result(){return this.results.first}get annotations(){return this.children.filter(e=>e.element===`annotation`)}get warnings(){return this.children.filter(e=>e.element===`annotation`&&e.classes.contains(`warning`))}get errors(){return this.children.filter(e=>e.element===`annotation`&&e.classes.contains(`error`))}get isEmpty(){return this.children.reject(e=>e.element===`annotation`).isEmpty}replaceResult(e){let{result:t}=this;if(qx(t))return!1;let n=this.content.findIndex(e=>e===t);return n!==-1&&(this.content[n]=e,!0)}},zC=(e,t)=>typeof t==`object`&&!!t&&e in t&&typeof t[e]==`function`,BC=e=>typeof e==`object`&&!!e&&`_storedElement`in e&&typeof e._storedElement==`string`&&`_content`in e,VC=(e,t)=>typeof t==`object`&&t&&`primitive`in t?typeof t.primitive==`function`&&t.primitive()===e:!1,HC=(e,t)=>typeof t==`object`&&!!t&&`classes`in t&&(Array.isArray(t.classes)||t.classes instanceof U.ArrayElement)&&t.classes.includes(e),UC=(e,t)=>typeof t==`object`&&!!t&&`element`in t&&t.element===e,W=e=>e({hasMethod:zC,hasBasicElementProps:BC,primitiveEq:VC,isElementType:UC,hasClass:HC}),WC=t({hasElementSourceMap:()=>aw,includesClasses:()=>sw,includesSymbols:()=>ow,isAnnotationElement:()=>tw,isArrayElement:()=>ZC,isBooleanElement:()=>YC,isCommentElement:()=>nw,isElement:()=>GC,isLinkElement:()=>$C,isMemberElement:()=>QC,isNullElement:()=>JC,isNumberElement:()=>qC,isObjectElement:()=>XC,isParseResultElement:()=>rw,isPrimitiveElement:()=>iw,isRefElement:()=>ew,isStringElement:()=>KC}),GC=W(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof U.Element||e(n)&&t(void 0,n)),KC=W(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof U.StringElement||e(n)&&t(`string`,n)),qC=W(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof U.NumberElement||e(n)&&t(`number`,n)),JC=W(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof U.NullElement||e(n)&&t(`null`,n)),YC=W(({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof U.BooleanElement||e(n)&&t(`boolean`,n)),XC=W(({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof U.ObjectElement||e(r)&&t(`object`,r)&&n(`keys`,r)&&n(`values`,r)&&n(`items`,r)),ZC=W(({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof U.ArrayElement&&!(r instanceof U.ObjectElement)||e(r)&&t(`array`,r)&&n(`push`,r)&&n(`unshift`,r)&&n(`map`,r)&&n(`reduce`,r)),QC=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof U.MemberElement||e(r)&&t(`member`,r)&&n(void 0,r)),$C=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof U.LinkElement||e(r)&&t(`link`,r)&&n(void 0,r)),ew=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof U.RefElement||e(r)&&t(`ref`,r)&&n(void 0,r)),tw=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof IC||e(r)&&t(`annotation`,r)&&n(`array`,r)),nw=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof LC||e(r)&&t(`comment`,r)&&n(`string`,r)),rw=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof RC||e(r)&&t(`parseResult`,r)&&n(`array`,r)),iw=e=>UC(`object`,e)||UC(`array`,e)||UC(`boolean`,e)||UC(`number`,e)||UC(`string`,e)||UC(`null`,e)||UC(`member`,e),aw=e=>GC(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,ow=(e,t)=>{if(e.length===0)return!0;let n=t.attributes.get(`symbols`);return ZC(n)?Ey(wS(n.toValue()),e):!1},sw=(e,t)=>e.length===0||Ey(wS(t.classes.toValue()),e),cw=class extends U.Namespace{constructor(){super(),this.register(`annotation`,IC),this.register(`comment`,LC),this.register(`parseResult`,RC)}},lw=new cw,uw=e=>{let t=new cw;return pS(e)&&t.use(e),t},dw=()=>({predicates:{...WC},namespace:lw}),fw=(e,t,n)=>{let r=e[t];if(r!=null){if(!n&&typeof r==`function`)return r;let e=n?r.leave:r.enter;if(typeof e==`function`)return e}else{let r=n?e.leave:e.enter;if(r!=null){if(typeof r==`function`)return r;let e=r[t];if(typeof e==`function`)return e}}return null},pw={},mw=e=>e?.type,hw=e=>typeof mw(e)==`string`,gw=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),_w=(e,{visitFnGetter:t=fw,nodeTypeGetter:n=mw,breakSymbol:r=pw,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,exposeEdits:o=!1}={})=>
74{let s=Symbol(`skip`),c=Array(e.length).fill(s);return{enter(l,u,d,f,p,m){let h=l,g=!1,_={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let l=0;l<e.length;l+=1)if(c[l]===s){let s=t(e[l],n(h),!1);if(typeof s==`function`){let t=s.call(e[l],h,u,d,f,p,_);if(typeof t?.then==`function`)throw new oy(`Async visitor not supported in sync mode`,{visitor:e[l],visitFn:s});if(t===a)c[l]=h;else if(t===r)c[l]=r;else if(t===i)return t;else if(t!==void 0){if(o)h=t,g=!0;else return t}}}return g?h:void 0},leave(i,o,l,u,d,f){let p=i,m={...f,replaceWith(e,t){f.replaceWith(e,t),p=e}};for(let i=0;i<e.length;i+=1)if(c[i]===s){let s=t(e[i],n(p),!0);if(typeof s==`function`){let t=s.call(e[i],p,o,l,u,d,m);if(typeof t?.then==`function`)throw new oy(`Async visitor not supported in sync mode`,{visitor:e[i],visitFn:s});if(t===r)c[i]=r;else if(t!==void 0&&t!==a)return t}}else c[i]===p&&(c[i]=s)}}};_w[Symbol.for(`nodejs.util.promisify.custom`)]=(e,{visitFnGetter:t=fw,nodeTypeGetter:n=mw,breakSymbol:r=pw,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,exposeEdits:o=!1}={})=>{let s=Symbol(`skip`),c=Array(e.length).fill(s);return{async enter(l,u,d,f,p,m){let h=l,g=!1,_={...m,replaceWith(e,t){m.replaceWith(e,t),h=e}};for(let l=0;l<e.length;l+=1)if(c[l]===s){let s=t(e[l],n(h),!1);if(typeof s==`function`){let t=await s.call(e[l],h,u,d,f,p,_);if(t===a)c[l]=h;else if(t===r)c[l]=r;else if(t===i)return t;else if(t!==void 0){if(o)h=t,g=!0;else return t}}}return g?h:void 0},async leave(i,o,l,u,d,f){let p=i,m={...f,replaceWith(e,t){f.replaceWith(e,t),p=e}};for(let i=0;i<e.length;i+=1)if(c[i]===s){let s=t(e[i],n(p),!0);if(typeof s==`function`){let t=await s.call(e[i],p,o,l,u,d,m);if(t===r)c[i]=r;else if(t!==void 0&&t!==a)return t}}else c[i]===p&&(c[i]=s)}}};var vw=(e,t,{keyMap:n=null,state:r={},breakSymbol:i=pw,deleteNodeSymbol:a=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:s=fw,nodeTypeGetter:c=mw,nodePredicate:l=hw,nodeCloneFn:u=gw,detectCycles:d=!0,detectCyclesCallback:f=null}={})=>{let p=n||{},m,h=Array.isArray(e),g=[e],_=-1,v,y=[],b=e,x=[],S=[];do{_+=1;let e=_===g.length,n,C=e&&y.length!==0;if(e){if(n=S.length===0?void 0:x.pop(),b=v,v=S.pop(),C){if(h){b=b.slice();let e=0;for(let[t,n]of y){let r=t-e;n===a?(b.splice(r,1),e+=1):b[r]=n}}else{b=u(b);for(let[e,t]of y)b[e]=t}}_=m.index,g=m.keys,y=m.edits,h=m.inArray,m=m.prev}else if(v!==a&&v!==void 0){if(n=h?_:g[_],b=v[n],b===a||b===void 0)continue;x.push(n)}let w;if(!Array.isArray(b)){if(!l(b))throw new oy(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&S.includes(b)){typeof f==`function`&&f(b,n,v,x,S),x.pop();continue}let a=s(t,c(b),e);if(a){for(let[e,n]of Object.entries(r))t[e]=n;w=a.call(t,b,n,v,x,S,{replaceWith(t,r){typeof r==`function`?r(t,b,n,v,x,S):v&&(v[n]=t),e||(b=t)}})}if(typeof w?.then==`function`)throw new oy(`Async visitor not supported in sync mode`,{visitor:t,visitFn:a});if(w===i)break;if(w===o){if(!e){x.pop();continue}}else if(w!==void 0&&(y.push([n,w]),!e)){if(l(w))b=w;else{x.pop();continue}}}w===void 0&&C&&y.push([n,b]),!e&&(m={inArray:h,index:_,keys:g,edits:y,prev:m},h=Array.isArray(b),g=h?b:p[c(b)]??[],_=-1,y=[],v!==a&&v!==void 0&&S.push(v),v=b)}while(m!==void 0);return y.length===0?e:y[y.length-1][1]};vw[Symbol.for(`nodejs.util.promisify.custom`)]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:i=pw,deleteNodeSymbol:a=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:s=fw,nodeTypeGetter:c=mw,nodePredicate:l=hw,nodeCloneFn:u=gw,detectCycles:d=!0,detectCyclesCallback:f=null}={})=>{let p=n||{},m,h=Array.isArray(e),g=[e],_=-1,v,y=[],b=e,x=[],S=[];do{_+=1;let e=_===g.length,n,C=e&&y.length!==0;if(e){if(n=S.length===0?void 0:x.pop(),b=v,v=S.pop(),C){if(h){b=b.slice();let e=0;for(let[t,n]of y){let r=t-e;n===a?(b.splice(r,1),e+=1):b[r]=n}}else{b=u(b);for(let[e,t]of y)b[e]=t}}_=m.index,g=m.keys,y=m.edits,h=m.inArray,m=m.prev}else if(v!==a&&v!==void 0){if(n=h?_:g[_],b=v[n],b===a||b===void 0)continue;x.push(n)}let w;if(!Array.isArray(b)){if(!l(b))throw new oy(`Invalid AST Node: ${String(b)}`,{node:b});if(d&&S.includes(b)){typeof f==`function`&&f(b,n,v,x,S),x.pop();continue}let a=s(t,c(b),e);if(a){for(let[e,n]of Object.entries(r))t[e]=n;w=await a.call(t,b,n,v,x,S,{replaceWith(t,r){typeof r==`function`?r(t,b,n,v,x,S):v&&(v[n]=t),e||(b=t)}})}if(w===i)break;if(w===o){if(!e){x.pop();continue}}else if(w!==void 0&&(y.push([n,w]),!e)){if(l(w))b=w;else{x.pop();continue}}}w===void 0&&C&&y.push([n,b]),!e&&(m={inArray:h,index:_,keys:g,edits:y,prev:m},h=Array.isArray(b),g=h?b:p[c(b)]??[],_=-1,y=[],v!==a&&v!==void 0&&S.push(v),v=b)}
74while(m!==void 0);return y.length===0?e:y[y.length-1][1]};var yw=class extends oy{value;constructor(e,t){super(e,t),t!==void 0&&(this.value=t.value)}},bw=class extends yw{},xw=class extends yw{},Sw=(e,t)=>{let n=Rb(e,t);return Sx(e=>pS(e)&&ux(`$ref`,e)&&Fx(iS,`$ref`,e)?kx(PS(`#/`,kx([`$ref`],e)).split(`/`),n):pS(e)?Sw(e,n):e,e)},Cw=(e,t)=>(e.startPositionRow=t?.startPositionRow,e.startPositionColumn=t?.startPositionColumn,e.startIndex=t?.startIndex,e.endPositionRow=t?.endPositionRow,e.endPositionColumn=t?.endPositionColumn,e.endIndex=t?.endIndex,e),G=(e,t={})=>{let{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof U.KeyValuePair){let{key:t,value:i}=e,a=GC(t)?G(t,r):t,o=GC(i)?G(i,r):i,s=new U.KeyValuePair(a,o);return n.set(e,s),s}if(e instanceof U.ObjectSlice){let t=e=>G(e,r),i=[...e].map(t),a=new U.ObjectSlice(i);return n.set(e,a),a}if(e instanceof U.ArraySlice){let t=e=>G(e,r),i=[...e].map(t),a=new U.ArraySlice(i);return n.set(e,a),a}if(GC(e)){let t=Ow(e);return n.set(e,t),t.content=e.content?GC(e.content)||e.content instanceof U.KeyValuePair?G(e.content,r):Array.isArray(e.content)?e.content.map(e=>G(e,r)):e.content:e.content,t}throw new bw(`Value provided to cloneDeep function couldn't be cloned`,{value:e})};G.safe=e=>{try{return G(e)}catch{return e}};var ww=e=>{let{key:t,value:n}=e;return new U.KeyValuePair(t,n)},Tw=e=>{let t=[...e];return new U.ArraySlice(t)},Ew=e=>{let t=[...e];return new U.ObjectSlice(t)},Dw=e=>{let t=new e.constructor;if(t.element=e.element,aw(e)&&Cw(t,e),e.meta.length>0&&(t._meta=G(e.meta)),e.attributes.length>0&&(t._attributes=G(e.attributes)),GC(e.content)){let n=e.content;t.content=Dw(n)}else t.content=Array.isArray(e.content)?[...e.content]:e.content instanceof U.KeyValuePair?ww(e.content):e.content;return t},Ow=e=>{if(e instanceof U.KeyValuePair)return ww(e);if(e instanceof U.ObjectSlice)return Ew(e);if(e instanceof U.ArraySlice)return Tw(e);if(GC(e))return Dw(e);throw new xw(`Value provided to cloneShallow function couldn't be cloned`,{value:e})};Ow.safe=e=>{try{return Ow(e)}catch{return e}};var kw=e=>XC(e)?`ObjectElement`:ZC(e)?`ArrayElement`:QC(e)?`MemberElement`:KC(e)?`StringElement`:YC(e)?`BooleanElement`:qC(e)?`NumberElement`:JC(e)?`NullElement`:$C(e)?`LinkElement`:ew(e)?`RefElement`:void 0,Aw=e=>GC(e)?Ow(e):gw(e),jw=jb(kw,iS),Mw={ObjectElement:[`content`],ArrayElement:[`content`],MemberElement:[`key`,`value`],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:[`content`]},Nw=class{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=ly,returnOnTrue:t,returnOnFalse:n}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=n}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}},Pw=(e,t,{keyMap:n=Mw,...r}={})=>vw(e,t,{keyMap:n,nodeTypeGetter:kw,nodePredicate:jw,nodeCloneFn:Aw,...r});Pw[Symbol.for(`nodejs.util.promisify.custom`)]=async(e,t,{keyMap:n=Mw,...r}={})=>vw[Symbol.for(`nodejs.util.promisify.custom`)](e,t,{keyMap:n,nodeTypeGetter:kw,nodePredicate:jw,nodeCloneFn:Aw,...r});var Fw={toolboxCreator:dw,visitorOptions:{nodeTypeGetter:kw,exposeEdits:!0}},Iw=(e,t,n={})=>{if(t.length===0)return e;let{toolboxCreator:r,visitorOptions:i}=Tx(Fw,n),a=r(),o=t.map(e=>e(a)),s=_w(o.map(Px({},`visitor`)),{...i});o.forEach(TS([`pre`],[]));let c=Pw(e,s,i);return o.forEach(TS([`post`],[])),c};Iw[Symbol.for(`nodejs.util.promisify.custom`)]=async(e,t,n={})=>{if(t.length===0)return e;let{toolboxCreator:r,visitorOptions:i}=Tx(Fw,n),a=r(),o=t.map(e=>e(a)),s=_w[Symbol.for(`nodejs.util.promisify.custom`)],c=Pw[Symbol.for(`nodejs.util.promisify.custom`)],l=s(o.map(Px({},`visitor`)),{...i});await Promise.allSettled(o.map(TS([`pre`],[])));let u=await c(e,l,i);return await Promise.allSettled(o.map(TS([`post`],[]))),u};var Lw=r(n(((e,t)=>{var n=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,o=(t,n,r)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,s=(e,t)=>{for(var n in t||={})i.call(t,n)&&o(e,n,t[n]);if(r)for(var n of r(t))a.call(t,n)&&o(e,n,t[n]);return e},c=(t,n)=>{for(var r in n)e(t,r,{get:n[r],enumerable:!0})},l=(r,a,o,s)=>{if(a&&typeof a==`object`||typeof a==`function`)for(let c of n(a))!i.call(r,c)&&c!==o&&e(r,c,{get:()=>a[c],enumerable:!(s=t(a,c))||s.enumerable});return r},u=t=>l(e({},`__esModule`,{value:!0}),t),d=(e,t,n)=>o(e,typeof t==`symbol`?t:t+``,n),f={};c(f,{DEFAULT_OPTIONS:()=>h,DEFAULT_UUID_LENGTH:()=>m,default:()=>_});var p=`5.3.2`,m=6,h={dictionary:`alphanum`,shuffle:!0,debug:!1,length:m,counter:0},g=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,`_alph
74a_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`,(...e)=>{let t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,this.debug===!0&&typeof console<`u`&&console!==null){console.log(...t);return}}),d(this,`_normalizeDictionary`,(e,t)=>{let n;if(e&&Array.isArray(e)&&e.length>1)n=e;else{n=[],this.dictIndex=0;let t=`_${e}_dict_ranges`,r=this._dict_ranges[t],i=0;for(let[,e]of Object.entries(r)){let[t,n]=e;i+=Math.abs(n-t)}n=Array(i);let a=0;for(let[,e]of Object.entries(r)){this.dictRange=e,this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1];let t=this.lowerBound<=this.upperBound,r=this.lowerBound,i=this.upperBound;if(t)for(let e=r;e<i;e++)n[a++]=String.fromCharCode(e),this.dictIndex=e;else for(let e=r;e>i;e--)n[a++]=String.fromCharCode(e),this.dictIndex=e}n.length=a}if(t){let e=n.length;for(let t=e-1;t>0;t--){let e=Math.floor(Math.random()*(t+1));[n[t],n[e]]=[n[e],n[t]]}}return n}),d(this,`setDictionary`,(e,t)=>{this.dict=this._normalizeDictionary(e,t),this.dictLength=this.dict.length,this.setCounter(0)}),d(this,`seq`,()=>this.sequentialUUID()),d(this,`sequentialUUID`,()=>{let e=this.dictLength,t=this.dict,n=this.counter,r=[];do{let i=n%e;n=Math.trunc(n/e),r.push(t[i])}while(n!==0);let i=r.join(``);return this.counter+=1,i}),d(this,`rnd`,(e=this.uuidLength||m)=>this.randomUUID(e)),d(this,`randomUUID`,(e=this.uuidLength||m)=>{if(e==null||e<1)throw Error(`Invalid UUID Length Provided`);let t=Array(e),n=this.dictLength,r=this.dict;for(let i=0;i<e;i++){let e=Math.floor(Math.random()*n);t[i]=r[e]}return t.join(``)}),d(this,`fmt`,(e,t)=>this.formattedUUID(e,t)),d(this,`formattedUUID`,(e,t)=>{let n={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let r=e.slice(0,2),i=Number.parseInt(e.slice(2),10);return r===`$s`?n[r]().padStart(i,`0`):r===`$t`&&t?n[r](i,t):n[r](i)})}),d(this,`availableUUIDs`,(e=this.uuidLength)=>Number.parseFloat(([...new Set(this.dict)].length**e).toFixed(0))),d(this,`_collisionCache`,new Map),d(this,`approxMaxBeforeCollision`,(e=this.availableUUIDs(this.uuidLength))=>{let t=e,n=this._collisionCache.get(t);if(n!==void 0)return n;let r=Number.parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20));return this._collisionCache.set(t,r),r}),d(this,`collisionProbability`,(e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>Number.parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20))),d(this,`uniqueness`,(e=this.availableUUIDs(this.uuidLength))=>{let t=Number.parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t}),d(this,`getVersion`,()=>this.version),d(this,`stamp`,(e,t)=>{let n=Math.floor((t||new Date)/1e3).toString(16);if(typeof e==`number`&&e===0)return n;if(typeof e!=`number`||e<10)throw Error([`Param finalLength must be a number greater than or equal to 10,`,`or 0 if you want the raw hexadecimal timestamp`].join(` 75`));let r=e-9,i=Math.round(Math.random()*(r>15?15:r)),a=this.randomUUID(r);return`${a.substring(0,i)}${n}${a.substring(i)}${i.toString(16)}`}),d(this,`parseStamp`,(e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw Error(`Cannot extract date from a formated UUID with no timestamp in the format`);let n=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,e=>{let t={$r:e=>[...Array(e)].map(()=>`r`).join(``),$s:e=>[...Array(e)].map(()=>`s`).join(``),$t:e=>[...Array(e)].map(()=>`t`).join(``)},n=e.slice(0,2),r=Number.parseInt(e.slice(2),10);return t[n](r)}).replace(/^(.*?)(t{8,})(.*)$/g,(t,n,r)=>e.substring(n.length,n.length+r.length)):e;if(n.length===8)return new Date(Number.parseInt(n,16)*1e3);
75if(n.length<10)throw Error(`Stamp length invalid`);let r=Number.parseInt(n.substring(n.length-1),16);return new Date(Number.parseInt(n.substring(r,r+8),16)*1e3)}),d(this,`setCounter`,e=>{this.counter=e}),d(this,`validate`,(e,t)=>{let n=t?this._normalizeDictionary(t):this.dict;return e.split(``).every(e=>n.includes(e))});let t=s(s({},h),e);this.counter=0,this.debug=!1,this.dict=[],this.version=p;let{dictionary:n,shuffle:r,length:i,counter:a}=t;this.uuidLength=i,this.setDictionary(n,r),this.setCounter(a),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${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(g,`default`,g);var _=g;return u(f)})();t!==void 0&&(t.exports=n.default),typeof window<`u`&&(n=n.default)}))(),1),Rw=class extends oy{value;constructor(e,t){super(e,t),t!==void 0&&(this.value=t.value)}},zw=class{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new Lw.default({length:e}),this.identityMap=new WeakMap}identify(e){if(!GC(e))throw new Rw("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey(`id`)&&KC(e.meta.get(`id`))&&!e.meta.get(`id`).equals(``))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);let t=new U.StringElement(this.generateId());return this.identityMap.set(e,t),t}forget(e){return this.identityMap.has(e)?(this.identityMap.delete(e),!0):!1}generateId(){return this.uuid.randomUUID()}};new zw;var Bw=class extends Array{unknownMediaType=`application/octet-stream`;filterByFormat(){throw new cy(`filterByFormat method in MediaTypes class is not yet implemented.`)}findBy(){throw new cy(`findBy method in MediaTypes class is not yet implemented.`)}latest(){throw new cy(`latest method in MediaTypes class is not yet implemented.`)}},Vw=(e,{Type:t,plugins:n=[]})=>{let r=new t(e);return GC(e)&&(e.meta.length>0&&(r.meta=G(e.meta)),e.attributes.length>0&&(r.attributes=G(e.attributes))),Iw(r,n,{toolboxCreator:dw,visitorOptions:{nodeTypeGetter:kw}})},Hw=e=>(t,n={})=>Vw(t,{...n,Type:e});U.ObjectElement.refract=Hw(U.ObjectElement),U.ArrayElement.refract=Hw(U.ArrayElement),U.StringElement.refract=Hw(U.StringElement),U.BooleanElement.refract=Hw(U.BooleanElement),U.NullElement.refract=Hw(U.NullElement),U.NumberElement.refract=Hw(U.NumberElement),U.LinkElement.refract=Hw(U.LinkElement),U.RefElement.refract=Hw(U.RefElement),IC.refract=Hw(IC),LC.refract=Hw(LC),RC.refract=Hw(RC);var Uw=(e,t)=>{let n=new Nw({predicate:e});return Pw(t,n),new U.ArraySlice(n.result)},Ww=(e,t)=>{let n=new Nw({predicate:e,returnOnTrue:pw});return Pw(t,n),Ax(void 0,[0],n.result)},Gw=(e,t=new WeakMap)=>(QC(e)?(t.set(e.key,e),Gw(e.key,t),t.set(e.value,e),Gw(e.value,t)):e.children.forEach(n=>{t.set(n,e),Gw(n,t)}),t),Kw=(e,t,n)=>{let r=n.get(e);QC(r)&&(r.key===e&&(r.key=t,n.delete(e),n.set(t,r)),r.value===e&&(r.value=t,n.delete(e),n.set(t,r)))},qw=(e,t,n)=>{let r=n.get(e);XC(r)&&(r.content=r.map((i,a,o)=>o===e?(n.delete(e),n.set(t,r),t):o))},Jw=(e,t,n)=>{let r=n.get(e);ZC(r)&&(r.content=r.map(i=>i===e?(n.delete(e),n.set(t,r),t):i))},Yw=class{element;edges;constructor({element:e}){this.element=e}transclude(e,t){if(e===this.element)return t;if(e===t)return this.element;this.edges=this.edges??Gw(this.element);let n=this.edges.get(e);if(!qx(n))return XC(n)?qw(e,t,this.edges):ZC(n)?Jw(e,t,this.edges):QC(n)&&Kw(e,t,this.edges),this.element}},Xw=(e,t,n)=>new Yw({element:n}).transclude(e,t),Zw=(e,t=lw)=>{if(iS(e))try{return t.fromRefract(JSON.parse(e))}catch{}return pS(e)&&ux(`element`,e)?t.fromRefract(e):t.toElement(e)},Qw=e=>typeof e?.type==`string`?e.type:kw(e),$w={EphemeralObject:[`content`],EphemeralArray:[`content`],...Mw},eT=(e,t,{keyMap:n=$w,...r}={})=>Pw(e,t,{keyMap:n,nodeTypeGetter:Qw,nodePredicate:uy,detectCycles:!1,deleteNodeSymbol:Symbol.for(`delete-node`),skipVisitingNodeSymbol:Symbol.for(`skip-visiting-node`),...r});eT[Symbol.for(`nodejs.util.promisify.custom`)]=async(e,{keyMap:t=$w,...n}={})=>Pw[Symbol.for(`nodejs.util.promisify.custom`)](e,visitor,{keyMap:t,no
75deTypeGetter:Qw,nodePredicate:uy,detectCycles:!1,deleteNodeSymbol:Symbol.for(`delete-node`),skipVisitingNodeSymbol:Symbol.for(`skip-visiting-node`),...n});var tT=class{type=`EphemeralArray`;content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}},nT=class{type=`EphemeralObject`;content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},rT=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();let t=new nT(e.content);return this.references.set(e,t),t}};EphemeralObject={leave:e=>e.toObject()};MemberElement={enter:e=>[e.key,e.value]};ArrayElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();let t=new tT(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){let n=t[3];return n[n.length-1]?.type===`EphemeralObject`?Symbol.for(`delete-node`):String(e.toValue())}LinkElement(e){return KC(e.href)?e.href.toValue():``}},K=e=>GC(e)?KC(e)||qC(e)||YC(e)||JC(e)?e.toValue():eT(e,new rT):e,iT=e=>{let t=e.meta.length>0?G(e.meta):void 0,n=e.attributes.length>0?G(e.attributes):void 0;return new e.constructor(void 0,t,n)},aT=(e,t)=>t.clone&&t.isMergeableElement(e)?uT(iT(e),e,t):e,oT=(e,t)=>{if(typeof t.customMerge!=`function`)return uT;let n=t.customMerge(e,t);return typeof n==`function`?n:uT},sT=e=>typeof e.customMetaMerge==`function`?e.customMetaMerge:e=>G(e),cT=e=>typeof e.customAttributesMerge==`function`?e.customAttributesMerge:e=>G(e),lT={clone:!0,isMergeableElement:e=>
75XC(e)||ZC(e),arrayElementMerge:(e,t,n)=>e.concat(t)[`fantasy-land/map`](e=>aT(e,n)),objectElementMerge:(e,t,n)=>{let r=XC(e)?iT(e):iT(t);return XC(e)&&e.forEach((e,t,i)=>{let a=Ow(i);a.value=aT(e,n),r.content.push(a)}),t.forEach((t,i,a)=>{let o=K(i),s;if(XC(e)&&e.hasKey(o)&&n.isMergeableElement(t)){let r=e.get(o);s=Ow(a),s.value=oT(i,n)(r,t,n)}else s=Ow(a),s.value=aT(t,n);r.remove(o),r.content.push(s)}),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},uT=(e,t,n)=>{let r={...lT,...n};r.isMergeableElement=r.isMergeableElement??lT.isMergeableElement,r.arrayElementMerge=r.arrayElementMerge??lT.arrayElementMerge,r.objectElementMerge=r.objectElementMerge??lT.objectElementMerge;let i=ZC(t);if(i!==ZC(e))return aT(t,r);let a=i&&typeof r.arrayElementMerge==`function`?r.arrayElementMerge(e,t,r):r.objectElementMerge(e,t,r);return a.meta=sT(r)(e.meta,t.meta),a.attributes=cT(r)(e.attributes,t.attributes),a};uT.all=(e,t)=>{if(!Array.isArray(e))throw TypeError(`First argument of deepmerge should be an array.`);return e.length===0?new U.ObjectElement:e.reduce((e,n)=>uT(e,n,t),iT(e[0]))};var dT=class extends ay{},fT=class extends dT{},pT=async(e,t)=>{let n=e,r=!1;if(!rw(e)){let t=Ow(e);t.classes.push(`result`),n=new RC([t]),r=!0}let i=new ZS({uri:t.resolve.baseURI,parseResult:n,mediaType:t.parse.mediaType}),a=await iC(`canDereference`,[i,t],t.dereference.strategies);if(gx(a))throw new fT(i.uri);try{let{result:e}=await aC(`dereference`,[i,t],a);return r?e.get(0):e}catch(e){throw new dT(`Error while dereferencing file "${i.uri}"`,{cause:e})}},mT=class{name;allowEmpty;sourceMap;fileExtensions;mediaTypes;constructor({name:e,allowEmpty:t=!0,sourceMap:n=!1,fileExtensions:r=[],mediaTypes:i=[]}){this.name=e,this.allowEmpty=t,this.sourceMap=n,this.fileExtensions=r,this.mediaTypes=i}},hT=class{name;constructor({name:e}){this.name=e}},gT=class extends hT{timeout;redirects;withCredentials;constructor(e){let{name:t=`http-resolver`,timeout:n=5e3,redirects:r=5,withCredentials:i=!1}=e??{};super({name:t}),this.timeout=n,this.redirects=r,this.withCredentials=i}canRead(e){return VS(e.uri)}},_T=class{name;constructor({name:e}){this.name=e}},vT=class{name;constructor({name:e}){this.name=e}},yT=class extends Array{includesCycle(e){return this.filter(t=>t.has(e)).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some(t=>t.has(e))}findItem(e){for(let t of this)for(let n of t)if(GC(n)&&e(n))return n}},bT=class{uri;depth;value;refSet;errors;constructor({uri:e,depth:t=0,refSet:n,value:r}){this.uri=e,this.value=r,this.depth=t,this.refSet=n,this.errors=[]}},xT=class extends ay{},ST=class extends xT{},CT=class extends ay{},wT=class extends CT{},TT=class extends xT{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},ET=class extends dT{},DT=class extends sC{},OT=class extends oC{},kT=async(e,t={})=>pT(e,nC($S,t)),AT=n((()=>{var e=Df(),t=Nf().includes,n=Nd(),r=Iv(),i=n(function(){return![,].includes()}),a=n(function(){return[,1].includes(void 0,1)});e({target:`Array`,proto:!0,forced:i||a},{includes:function(e){return t(this,e,arguments.length>1?arguments[1]:void 0)}}),r(`includes`)})),jT=n(((e,t)=>{AT(),t.exports=Yf()(`Array`,`includes`)})),MT=n(((e,t)=>{var n=Jd(),r=Ld(),i=hf()(`match`);t.exports=function(e){var t;return n(e)&&((t=e[i])===void 0?r(e)===`RegExp`:!!t)}})),NT=n(((e,t)=>{var n=MT(),r=TypeError;t.exports=function(e){if(n(e))throw new r(`The method doesn't accept regular expressions`);return e}})),PT=n(((e,t)=>{var n=hf()(`match`);t.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[n]=!1,`/./`[e](t)}catch{}}return!1}})),FT=n((()=>{var e=Df(),t=Id(),n=NT(),r=Kd(),i=Ev(),a=PT(),o=t(``.indexOf);e({target:`String`,proto:!0,forced:!a(`includes`)},{includes:function(e){return!!~o(i(r(this)),i(n(e)),arguments.length>1?arguments[1]:void 0)}})})),IT=n(((e,t)=>{FT(),t.exports=Yf()(`String`,`includes`)})),LT=n(((e,t)=>{var n=Zd(),r=jT(),i=IT(),a=Array.prototype,o=String.prototype;t.exports=function(e){var t=e.includes;return e===a||n(a,e)&&t===a.includes?r:typeof e==`string`||e===o||n(o,e)&&t===o.includes?i:t}}
75)),RT=n(((e,t)=>{t.exports=LT()})),zT=r(n(((e,t)=>{t.exports=RT()}))()),BT=e=>Object.prototype.toString.call(e),VT=e=>ArrayBuffer.isView(e)&&!(e instanceof DataView),HT=Array.isArray,UT=e=>{let t=BT(e);return t===`[object Boolean]`||t===`[object Number]`||t===`[object String]`},WT=Object.getOwnPropertyDescriptor,GT=Object.prototype.propertyIsEnumerable,KT=Object.getOwnPropertySymbols,qT=Object.prototype.hasOwnProperty,JT=e=>e===`__proto__`||e===`constructor`||e===`prototype`;function YT(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0}):e[t]=n}function XT(e,t){if(t!==void 0&&e>t)throw RangeError(`neotraverse: maximum traversal depth (${t}) exceeded`)}function ZT(e){let t=Object.keys(e),n=KT(e);for(let r=0;r<n.length;r++)GT.call(e,n[r])&&t.push(n[r]);return t}function QT(e,t){return!WT(e,t)?.writable}function $T(e,t){if(typeof e==`object`&&e){let n;if(HT(e))n=[];else if(VT(e))return e.slice();else if(UT(e))return Object(e);else{let t=BT(e);n=t===`[object Date]`&&typeof e.getTime==`function`?new Date(e.getTime()):t===`[object RegExp]`&&typeof e.source==`string`?new RegExp(e):t===`[object Error]`?{message:e.message}:Object.create(Object.getPrototypeOf(e))}let r=t.includeSymbols?ZT:Object.keys;for(let t of r(e))YT(n,t,e[t]);return n}return e}var eE={includeSymbols:!1,immutable:!1};function tE(e,t,n=eE){let r=[],i=[],a=!0,o=n.includeSymbols?ZT:Object.keys,s=!!n.immutable,c=n.maxDepth;return(function e(l){XT(r.length,c);let u=s?$T(l,n):l,d={},f=!0,p={node:u,node_:l,path:r.slice(),parent:i[i.length-1],parents:i,key:r[r.length-1],isRoot:r.length===0,level:r.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(e,t=!1){p.isRoot||YT(p.parent.node,p.key,e),p.node=e,t&&(f=!1)},delete:function(e){delete p.parent.node[p.key],e&&(f=!1)},remove:function(e){HT(p.parent.node)?p.parent.node.splice(p.key,1):delete p.parent.node[p.key],e&&(f=!1)},keys:null,before:function(e){d.before=e},after:function(e){d.after=e},pre:function(e){d.pre=e},post:function(e){d.post=e},stop:function(){a=!1},block:function(){f=!1}};if(!a)return p;function m(){if(typeof p.node==`object`&&p.node!==null){(!p.keys||p.node_!==p.node)&&(p.keys=o(p.node)),p.isLeaf=p.keys.length===0;for(let e=0;e<i.length;e++)if(i[e].node_===l){p.circular=i[e];break}}else p.isLeaf=!0,p.keys=null;p.notLeaf=!p.isLeaf,p.notRoot=!p.isRoot}m();let h=t.call(p,p.node);if(h!==void 0&&p.update&&p.update(h),d.before&&d.before.call(p,p.node),!f)return p;if(typeof p.node==`object`&&p.node!==null&&!p.circular){i.push(p),m();let t=p.keys??[];for(let n=0;n<t.length;n++){let i=t[n];
75r.push(i),d.pre&&d.pre.call(p,p.node[i],i);let a=e(p.node[i]);s&&qT.call(p.node,i)&&!QT(p.node,i)&&YT(p.node,i,a.node),a.isLast=n===t.length-1,a.isFirst=n===0,d.post&&d.post.call(p,a),r.pop()}i.pop()}return d.after&&d.after.call(p,p.node),p})(e).node}var nE=class{constructor(e,t=eE){this._value=e,this._options=t}get(e){let t=this._value;for(let n=0;t&&n<e.length;n++){let r=e[n];if(!qT.call(t,r)||!this._options.includeSymbols&&typeof r==`symbol`)return;t=t[r]}return t}has(e){let t=this._value;for(let n=0;t&&n<e.length;n++){let r=e[n];if(!qT.call(t,r)||!this._options.includeSymbols&&typeof r==`symbol`)return!1;t=t[r]}return!0}set(e,t){let n=this._value,r=0;for(r=0;r<e.length-1;r++){let i=e[r];if(JT(i))return t;qT.call(n,i)||(n[i]={}),n=n[i]}return JT(e[r])||(n[e[r]]=t),t}map(e){return tE(this._value,e,{immutable:!0,includeSymbols:!!this._options.includeSymbols,maxDepth:this._options.maxDepth})}forEach(e){return this._value=tE(this._value,e,this._options),this._value}reduce(e,t){let n=arguments.length===1,r=n?this._value:t;return this.forEach(function(t){(!this.isRoot||!n)&&(r=e.call(this,r,t))}),r}paths(){let e=[];return this.forEach(function(){e.push(this.path)}),e}nodes(){let e=[];return this.forEach(function(){e.push(this.node)}),e}clone(){let e=[],t=[],n=this._options,r=n.maxDepth;return VT(this._value)?this._value.slice():(function i(a){XT(e.length,r);for(let n=0;n<e.length;n++)if(e[n]===a)return t[n];if(typeof a==`object`&&a){let r=$T(a,n);if(VT(a)||UT(a))return r;e.push(a),t.push(r);let o=n.includeSymbols?ZT:Object.keys;for(let e of o(a))YT(r,e,i(a[e]));return e.pop(),t.pop(),r}return a})(this._value)}},rE=(e,t)=>new nE(e,t);rE.get=(e,t,n)=>new nE(e,n).get(t),rE.set=(e,t,n,r)=>new nE(e,r).set(t,n),rE.has=(e,t,n)=>new nE(e,n).has(t),rE.map=(e,t,n)=>new nE(e,n).map(t),rE.forEach=(e,t,n)=>new nE(e,n).forEach(t),rE.reduce=(e,t,n,r)=>new nE(e,r).reduce(t,n),rE.paths=(e,t)=>new nE(e,t).paths(),rE.nodes=(e,t)=>new nE(e,t).nodes(),rE.clone=(e,t)=>new nE(e,t).clone();var iE=`application/json, application/yaml`,aE=`https://swagger.io`,oE=Object.freeze({url:`/`}),sE=[`properties`],cE=[`properties`],lE=[`definitions`,`parameters`,`responses`,`securityDefinitions`,`components/schemas`,`components/responses`,`components/parameters`,`components/securitySchemes`],uE=[`schema/example`,`items/example`];function dE(e){let t=e[e.length-1],n=e[e.length-2],r=e.join(`/`);return sE.indexOf(t)>-1&&cE.indexOf(n)===-1||lE.indexOf(r)>-1||uE.some(e=>r.indexOf(e)>-1)}function fE(e,t,{specmap:n,getBaseUrlForNodePath:r=e=>n.getContext([...t,...e]).baseDoc,targetKeys:i=[`$ref`,`$$ref`]}={}){let a=[];return rE(e).forEach(function(){if((0,zT.default)(i).call(i,this.key)&&typeof this.node==`string`){let e=this.path,i=t.concat(this.path),o=pE(this.node,r(e));a.push(n.replace(i,o))}}),a}function pE(e,t){let[n,r]=e.split(`#`),i=t??``,a=n??``,o;if(VS(i))o=JS(i,a);else{let e=JS(JS(aE,i),a).replace(aE,``);o=a.startsWith(`/`)?e:e.substring(1)}return r?`${o}#${r}`:o}var mE=/^([a-z]+:\/\/|\/\/)/i,hE=class extends oy{},gE={},_E=new WeakMap,vE=[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`],yE=e=>vE.some(t=>t(e)),bE=Object.assign({key:`$ref`,plugin:(e,t,n,r)=>{let i=r.getInstance(),a=n.slice(0,-1);if(dE(a)||yE(a))return;let{baseDoc:o}=r.getContext(n);if(typeof e!=`string`)return new hE(`$ref: must be a string (JSON-Ref)`,{$ref:e,baseDoc:o,fullPath:n});let s=CE(e),c=s[0],l=s[1]||``,u;try{u=o||c?xE(c,o):null}catch(t){return SE(t,{pointer:l,$ref:e,basePath:u,fullPath:n})}let d,f;if(FE(l,u,a,r)&&!i.useCircularStructures){let t=pE(e,u);return e===t?null:$h.replace(n,t)}if(u==null?(f=kE(l),d=r.get(f),d===void 0&&(d=new hE(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:n}
75))):(d=wE(u,l),d=d.__value==null?d.catch(t=>{throw SE(t,{pointer:l,$ref:e,baseDoc:o,fullPath:n})}):d.__value),d instanceof Error)return[$h.remove(n),d];let p=pE(e,u),m=$h.replace(a,d,{$$ref:p});if(u&&u!==o)return[m,$h.context(a,{baseDoc:u})];try{if(!IE(r.state,m)||i.useCircularStructures)return m}catch{return null}}},{docCache:gE,absoluteify:xE,clearCache:TE,JSONRefError:hE,wrapError:SE,getDoc:EE,split:CE,extractFromDoc:wE,fetchJSON:DE,extract:OE,jsonPointerToArray:kE,unescapeJsonPointerToken:AE});function xE(e,t){if(!mE.test(e)){if(!t)throw new hE(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return JS(t,e)}return e}function SE(e,t){let n;return n=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new hE(`Could not resolve reference: ${n}`,{...t,cause:e})}function CE(e){return(e+``).split(`#`)}function wE(e,t){let n=gE[e];if(n&&!$h.isPromise(n))try{let e=OE(t,n);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return EE(e).then(e=>OE(t,e))}function TE(e){e===void 0?Object.keys(gE).forEach(e=>{delete gE[e]}):delete gE[e]}function EE(e){let t=gE[e];return t?$h.isPromise(t)?t:Promise.resolve(t):(gE[e]=bE.fetchJSON(e).then(t=>(gE[e]=t,t)),gE[e])}function DE(e){return fetch(e,{headers:{Accept:iE},loadSpec:!0}).then(e=>e.text()).then(e=>Q_.load(e))}function OE(e,t){let n=kE(e);if(n.length<1)return t;let r=$h.getIn(t,n);if(r===void 0)throw new hE(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return r}function kE(e){if(typeof e!=`string`)throw TypeError(`Expected a string, got a ${typeof e}`);
75return e[0]===`/`&&(e=e.substr(1)),e===``?[]:e.split(`/`).map(AE)}function AE(e){return typeof e==`string`?new URLSearchParams(`=${e.replace(/~1/g,`/`).replace(/~0/g,`~`)}`).get(``):e}function jE(e){return new URLSearchParams([[``,e.replace(/~/g,`~0`).replace(/\//g,`~1`)]]).toString().slice(1)}function ME(e){return e.length===0?``:`/${e.map(jE).join(`/`)}`}var NE=e=>!e||e===`/`||e===`#`;function PE(e,t){if(NE(t))return!0;let n=e.charAt(t.length),r=t.slice(-1);return e.indexOf(t)===0&&(!n||n===`/`||n===`#`)&&r!==`#`}function FE(e,t,n,r){let i=_E.get(r);i||(i={},_E.set(r,i));let a=ME(n),o=`${t||`<specmap-base>`}#${e}`,s=a.replace(/allOf\/\d+\/?/g,``);if(t===r.contextTree.get([]).baseDoc&&PE(s,e))return!0;let c=``;if(n.some(e=>(c=`${c}/${jE(e)}`,i[c]&&i[c].some(e=>PE(e,o)||PE(o,e)))))return!0;i[s]=(i[s]||[]).concat(o)}function IE(e,t){let n=[e];return t.path.reduce((e,t)=>(n.push(e[t]),e[t]),e),r(t.value);function r(e){return $h.isObject(e)&&(n.indexOf(e)>=0||Object.keys(e).some(t=>r(e[t])))}}var LE={key:`allOf`,plugin:(e,t,n,r,i)=>{if(i.meta&&i.meta.$$ref)return;let a=n.slice(0,-1);if(dE(a))return;if(!Array.isArray(e)){let e=TypeError(`allOf must be an array`);return e.fullPath=n,e}let o=!1,s=i.value;if(a.forEach(e=>{s&&=s[e]}),s={...s},Object.keys(s).length===0)return;delete s.allOf;let c=[];return c.push(r.replace(a,{})),e.forEach((e,t)=>{if(!r.isObject(e)){if(o)return null;o=!0;let e=TypeError(`Elements in allOf must be objects`);return e.fullPath=n,c.push(e)}c.push(r.mergeDeep(a,e));let i=fE(e,n.slice(0,-1),{getBaseUrlForNodePath:e=>r.getContext([...n,t,...e]).baseDoc,specmap:r});c.push(...i)}),s.example&&c.push(r.remove([].concat(a,`example`))),c.push(r.mergeDeep(a,s)),s.$$ref||c.push(r.remove([].concat(a,`$$ref`))),c}},RE={key:`parameters`,plugin:(e,t,n,r)=>{if(Array.isArray(e)&&e.length){let t=Object.assign([],e),i=n.slice(0,-1),a={...$h.getIn(r.spec,i)};for(let i=0;i<e.length;i+=1){let o=e[i];try{t[i].default=r.parameterMacro(a,o)}catch(e){let t=Error(e);return t.fullPath=n,t}}return $h.replace(n,t)}return $h.replace(n,e)}},zE={key:`properties`,plugin:(e,t,n,r)=>{let i={...e};for(let t in e)try{i[t].default=r.modelPropertyMacro(i[t])}catch(e){let t=Error(e);return t.fullPath=n,t}return $h.replace(n,i)}},BE=class{constructor(e){this.root=VE(e||{})}set(e,t){let n=this.getParent(e,!0);if(!n){HE(this.root,t,null);return}let r=e[e.length-1],{children:i}=n;if(i[r]){HE(i[r],t,n);return}i[r]=VE(t,n)}get(e){if(e||=[],e.length<1)return this.root.value;let t=this.root,n,r;for(let i=0;i<e.length&&(r=e[i],n=t.children,n[r]);i+=1)t=n[r];return t&&t.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce((e,n)=>{if(!e)return e;let{children:r}=e;return!r[n]&&t&&(r[n]=VE(null,e)),r[n]},this.root)}};function VE(e,t){return HE({children:{}},e,t)}function HE(e,t,n){return e.value=t||{},e.protoValue=n?{...n.protoValue,...e.value}:e.value,Object.keys(e.children).forEach(t=>{let n=e.children[t];e.children[t]=HE(n,n.value,e)}),e}var UE=100,WE=()=>{},GE=class{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:``,debugLevel:`info`,plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new BE,showDebug:!1,allPatches:[],pluginProp:`specMap`,libMethods:Object.assign(Object.create(this),$h,{getInstance:()=>this}),allowMetaPatches:!1},e),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter($h.isFunction),this.patches.push($h.add([],this.spec)),this.patches.push($h.context([],this.context)),this.updatePatches(this.patches)}debug(e,...t){this.debugLevel===e&&console.log(...t)}verbose(e,...t){this.debugLevel===`verbose`&&console.log(`[${e}] `,...t)}wrapPlugin(e,t){let{pathDiscriminator:n}=this,r=null,i;return e[this.pluginProp]?(r=e,i=e[this.pluginProp]):$h.isFunction(e)?i=e:$h.isObject(e)&&(i=a(e)),Object.assign(i.bind(r),{pluginName:e.name||t,isGenerator:$h.isGenerator(i)});function a(e){let t=(e,t)=>!Array.isArray(e)||e.every((e,n)=>e===t[n]);return function*(r,i){let a={};for(let[e,t]of r.filter($h.isAdditiveMutation).entries())if(e<3e3)yield*o(t.value,t.path,t);else return;function*o(r,s,c){if(!$h.isObject(r))e.key===s[s.length-1]&&(yield e.plugin(r,e.key,s,i));else{let l=s.length-1,u=s[l],d=s.indexOf(`properties`),f=u===`properties`&&l===d,p=i.allowMetaPatches&&a[r.$$ref];for(let l of Object.keys(r)){let u=r[l],d=s.concat(l),m=$h.isObject(u),h=r.$$ref;if(p||m&&(i.allowMetaPatches&&h&&t(n,d)&&(a[h]=!0),yield*o(u,d,c)),!f&&l===e.key){let r=t(n,s);(!n||r)&&(yield e.plugin(u,l,d,i,c))}}}}}}}nextPlugin(){return this.wrappedPlugins.find(e=>this.getMutationsForPlugin(e).length>0)}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map(e=>e.value))}getPluginHistory(e){let t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){let t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){let t=this.getPluginHistoryTip(e).mutationIndex;return typeof t==`number`?t:-1}updatePluginHistory(e,t){let n=this.constructor.getPluginName(e);this.pluginHistory[n]=this.pluginHistory[n]||[],this.pluginHistory[n].push(t)}
75updatePatches(e){$h.normalizeArray(e).forEach(e=>{if(e instanceof Error){this.errors.push(e);return}try{if(!$h.isObject(e)){this.debug(`updatePatches`,`Got a non-object patch`,e);return}if(this.showDebug&&this.allPatches.push(e),$h.isPromise(e.value)){this.promisedPatches.push(e),this.promisedPatchThen(e);return}if($h.isContextPatch(e)){this.setContext(e.path,e.value);return}$h.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}})}updateMutations(e){typeof e.value==`object`&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});let t=$h.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){let t=this.promisedPatches.indexOf(e);if(t<0){this.debug(`Tried to remove a promisedPatch that isn't there!`);return}this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then(t=>{let n={...e,value:t};this.removePromisedPatch(e),this.updatePatches(n)}).catch(t=>{this.removePromisedPatch(e),this.updatePatches(t)}),e.value}getMutations(e,t){return e||=0,typeof t!=`number`&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){let t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return $h.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){let e=this,t=this.nextPlugin();if(!t){let e=this.nextPromisedPatch();if(e)return e.then(()=>this.dispatch()).catch(()=>this.dispatch());let t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||new WeakMap,e.pluginCount.set(t,(e.pluginCount.get(t)||0)+1),e.pluginCount[t]>UE)return Promise.resolve({spec:e.state,errors:e.errors.concat(Error(`We've reached a hard limit of ${UE} plugin runs`))});if(t!==this.currentPlugin&&this.promisedPatches.length){let e=this.promisedPatches.map(e=>e.value);return Promise.all(e.map(e=>e.then(WE,WE))).then(()=>this.dispatch())}return n();function n(){e.currentPlugin=t;let n=e.getCurrentMutations(),i=e.mutations.length-1;try{if(t.isGenerator)for(let i of t(n,e.getLib()))r(i);else r(t(n,e.getLib()))}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:i})}return e.dispatch()}function r(n){n&&(n=$h.fullyNormalizeArray(n),e.updatePatches(n,t))}}};function KE(e){return new GE(e).dispatch()}var qE={refs:bE,allOf:LE,parameters:RE,properties:zE};function JE(e,t={}){let{requestInterceptor:n,responseInterceptor:r}=t,i=e.withCredentials?`include`:`same-origin`;return t=>e({url:t,loadSpec:!0,requestInterceptor:n,responseInterceptor:r,headers:{Accept:iE},credentials:i}).then(e=>e.body)}function YE(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:typeof e==`object`&&!!e&&typeof e.pipe==`function`}function XE(e,t){return Array.isArray(e)&&e.some(e=>YE(e,t))}var ZE=class extends File{constructor(e,t=``,n={}){super([e],t,n),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}},QE=e=>`:/?#[]@!$&'()*+,;=`.indexOf(e)>-1,$E=e=>/^[a-z0-9\-._~]+$/i.test(e);function eD(e,t=`reserved`){return[...e].map(e=>{if($E(e)||QE(e)&&t===`unsafe`)return e;let n=new TextEncoder;return Array.from(n.encode(e)).map(e=>`0${e.toString(16).toUpperCase()}`.slice(-2)).map(e=>`%${e}`).join(``)}).join(``)}function tD(e){let{value:t}=e;return Array.isArray(t)?rD(e):typeof t==`object`?iD(e):aD(e)}function nD(e,t=!1){return Array.isArray(e)||typeof e==`object`&&e?e=JSON.stringify(e):(typeof e==`number`||typeof e==`boolean`)&&(e=String(e)),t&&typeof e==`string`&&e.length>0?eD(e,t):e??``}function rD({key:e,value:t,style:n,explode:r,escape:i}){if(n===`simple`)return t.map(e=>nD(e,i)).join(`,`);if(n===`label`)return`.${t.map(e=>nD(e,i)).join(`.`)}`;if(n===`matrix`)return t.map(e=>nD(e,i)).reduce((t,n)=>!t||r?`${t||``};${e}=${n}`:`${t},${n}`,``);if(n===`form`){let n=r?`&${e}=`:`,`;return t.map(e=>nD(e,i)).join(n)}if(n===`spaceDelimited`){let n=r?`${e}=`:``;return t.map(e=>nD(e,i)).join(` ${n}`)}if(n===`pipeDelimited`){let n=r?`${e}=`:``;return t.map(e=>nD(e,i)).join(`|${n}`)}}function iD({key:e,value:t,style:n,explode:r,escape:i}){let a=Object.keys(t);if(n===`simple`)return a.reduce((e,n)=>{let a=nD(t[n],i),o=r?`=`:`,`;return`${e?`${e},`:``}${n}${o}${a}`},``);if(n===`label`)return a.reduce((e,n)=>{let a=nD(t[n],i),o=r?`=`:`.`;return`${e?`${e}.`:`.`}${n}${o}${a}`},``);if(n===`matrix`&&r)return a.reduce((e,n)=>{let r=nD(t[n],i);return`${e?`${e};`:`;`}${n}=${r}`},``);if(n===`matrix`)return a.reduce((n,r)=>{let a=nD(t[r],i);return`${n?`${n},`:`;${e}=`}${r},${a}`},``);if(n===`form`)return a.reduce((e,n)=>{let a=nD(t[n],i);return`${e?`${e}${r?`&`:`,`}`:``}${n}${r?`=`:`,`}${a}`},``)}function aD({key:e,value:t,style:n,escape:r}){if(n===`simple`)return nD(t,r);if(n===`label`)return`.${nD(t,r)}`;if(n===`matrix`)return`;${e}=${nD(t,r)}`;if(n===`form`||n===`deepObject`)return nD(t,r)}var oD={form:`,`,spaceDelimited:`%20`,pipeDelimited:`|`},sD={csv:`,`,ssv:`%20`,tsv:`%09`,pipes:`|`};function cD(e,t,n=!1){let{collectionFormat:r,allowEmptyValue:i,serializationOption:a,encoding:o}=t,s=typeof t==`object`&&!Array.isArray(t)?t.value:t,c=n?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(s===void 0&&i)return[[l,``]];if(YE(s)||XE(s))return[[l,s]];if(a)return lD(e,s,n,a);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some(e=>e!==`undefined`)){let{style:t,explode:r,allowReserved:i}=o;return lD(e,s,n,{style:t,explode:r,allowReserved:i})}return typeof o.contentType==`string`?o.contentType.startsWith(`a
75pplication/json`)?[[l,new ZE(c(typeof s==`string`?s:JSON.stringify(s)),`blob`,{type:o.contentType})]]:[[l,new ZE(c(String(s)),`blob`,{type:o.contentType})]]:typeof s==`object`?Array.isArray(s)&&s.every(e=>typeof e!=`object`)?[[l,s.map(c).join(`,`)]]:[[l,c(JSON.stringify(s))]]:[[l,c(s)]]}return typeof s==`object`?Array.isArray(s)?r===`multi`?[[l,s.map(c)]]:[[l,s.map(c).join(sD[r||`csv`])]]:[[l,``]]:[[l,c(s)]]}function lD(e,t,n,r){let i=r.style||`form`,a=r.explode===void 0?i===`form`:r.explode,o=n?!1:r&&r.allowReserved?`unsafe`:`reserved`,s=e=>nD(e,o),c=n?e=>e:e=>s(e);return typeof t==`object`?Array.isArray(t)?a?[[c(e),t.map(s)]]:[[c(e),t.map(s).join(oD[i])]]:i===`deepObject`?Object.keys(t).map(n=>[c(`${e}[${n}]`),s(t[n])]):a?Object.keys(t).map(e=>[c(e),s(t[e])]):[[c(e),Object.keys(t).map(e=>[`${c(e)},${s(t[e])}`]).join(`,`)]]:[[c(e),s(t)]]}function uD(e){return Object.entries(e).reduce((e,[t,n])=>{for(let[r,i]of cD(t,n,!0))if(Array.isArray(i))for(let t of i)if(ArrayBuffer.isView(t)){let n=new Blob([t]);e.append(r,n)}else e.append(r,t);else if(ArrayBuffer.isView(i)){let t=new Blob([i]);e.append(r,t)}else e.append(r,i);return e},new FormData)}var dD=(e,{encode:t=!0}={})=>{let n=(e,t,r)=>(Array.isArray(r)?r.reduce((r,i)=>n(e,t,i),e):r instanceof Date?e.append(t,r.toISOString()):typeof r==`object`?Object.entries(r).reduce((r,[i,a])=>n(e,`${t}[${i}]`,a),e):e.append(t,r),e),r=Object.entries(e).reduce((e,[t,r])=>n(e,t,r),new URLSearchParams),i=String(r);return t?i:decodeURIComponent(i)};function fD(e){return dD(Object.keys(e).reduce((t,n)=>{for(let[r,i]of cD(n,e[n]))t[r]=i instanceof ZE?i.valueOf():i;return t},{}),{encode:!1})}function pD(e={}){let{url:t=``,query:n,form:r}=e,i=(...e)=>{let t=e.filter(e=>e).join(`&`);return t?`?${t}`:``};if(r){let t=Object.keys(r).some(e=>{let{value:t}=r[e];return YE(t)||XE(t)}),n=e.headers[`content-type`]||e.headers[`Content-Type`];if(t||/multipart\/form-data/i.test(n)){let t=uD(e.form);e.formdata=t,e.body=t}else e.body=fD(r);delete e.form}if(n){let[r,a]=t.split(`?`),o=``;if(a){let e=new URLSearchParams(a);Object.keys(n).forEach(t=>e.delete(t)),o=String(e)}e.url=r+i(o,fD(n)),delete e.query}return e}var mD=(e=``)=>/(json|xml|yaml|text)\b/.test(e);function hD(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 Q_.load(e)}function gD(e){return(0,zT.default)(e).call(e,`, `)?e.split(`, `):e}function _D(e={}){return typeof e.entries==`function`?Array.from(e.entries()).reduce((e,[t,n])=>(e[t]=gD(n),e),{}):{}}function vD(e,t,{loadSpec:n=!1}={}){let r={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:_D(e.headers)},i=r.headers[`content-type`],a=n||mD(i);return(a?e.text:e.blob||e.buffer).call(e).then(e=>{if(r.text=e,r.data=e,a)try{let t=hD(e,i);r.body=t,r.obj=t}catch(e){r.parseError=e}return r})}async function yD(e,t={}){typeof e==`object`&&(t=e,e=t.url),t.headers=t.headers||{},t=pD(t),t.headers&&Object.keys(t.headers).forEach(e=>{let n=t.headers[e];typeof n==`string`&&(t.headers[e]=n.replace(/\n+/g,` `))}),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);let n=t.headers[`content-type`]||t.headers[`Content-Type`];/multipart\/form-data/i.test(n)&&(delete t.headers[`content-type`],delete t.headers[`Content-Type`]);let r;try{r=await(t.userFetch||fetch)(t.url,t),r=await vD(r,e,t),t.responseInterceptor&&(r=await t.responseInterceptor(r)||r)}catch(e){if(!r)throw e;let t=Error(r.statusText||`response status is ${r.status}`);throw t.status=r.status,t.statusCode=r.status,t.responseError=e,t}if(!r.ok){let e=Error(r.statusText||`response status is ${r.status}`);throw e.status=r.status,e.statusCode=r.status,e.response=r,e}return r}function bD(e,t,n){return n||=(e=>e),t||=(e=>e),r=>(typeof r==`string`&&(r={url:r}),r=pD(r),r=t(r),n(e(r)))}var xD=e=>{let{baseDoc:t,url:n}=e,r=t??n??``;return typeof globalThis.document?.baseURI==`string`?String(new URL(r,globalThis.document.baseURI)):r},SD=e=>{let{fetch:t,http:n}=e;return t||n||yD};async function CD(e){let{spec:t,mode:n,allowMetaPatches:r=!0,pathDiscriminator:i,modelPropertyMacro:a,parameterMacro:o,requestInterceptor:s,responseInterceptor:c,skipNormalization:l=!1,useCircularStructures:u,strategies:d}=e,f=xD(e),p=SD(e),m=d.find(e=>e.match(t));return h(t);async function h(e){f&&(qE.refs.docCache[f]=e),qE.refs.fetchJSON=JE(p,{requestInterceptor:s,responseInterceptor:c});let t=[qE.refs];typeof o==`function`&&t.push(qE.parameters),typeof a==`function`&&t.push(qE.properties),n!==`strict`&&t.push(qE.allOf);let d=await KE({spec:e,context:{baseDoc:f},plugins:t,allowMetaPatches:r,pathDiscriminator:i,parameterMacro:o,modelPropertyMacro:a,useCircularStructures:u});return l||(d.spec=m.normalize(d.spec)),d}}var wD=e=>e.replace(/\W/gi,`_`),TD=new Set([`connect`,`delete`,`get`,`head`,`options`,`patch`,`post`,`put`,`query`,`trace`]);function ED(e,t,{v2OperationIdCompatibilityMode:n}={}){if(n){let n=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,`_`);return n||=`${e.substring(1)}_${t}`,n.replace(/((_){2,})/g,`_`).replace(/^(_)*/g,``).replace(/([_])*$/g,``)}return`${TD.has(t.toLowerCase())?t.toLowerCase():t}${wD(e)}`}function DD(e,t,n=``,{v2OperationIdCompatibilityMode:r}={}){return!e||typeof e!=`object`?null:(e.operationId||``).replace(/\s/g,``).length?wD(e.operationId):ED(t,n,{v2OperationIdCompatibilityMode:r})}function OD(e){let{spec:t}=e,{paths:n}=t,r={};if(!n||t.$$normalized)return e;for(let e in n){var i;let o=n[e];if(o==null||!(0,zT.default)(i=[`object`,`function`]).call(i,typeof o))continue;let s=o.parameters;for(let n in o){var a;let i=o[n];if(i==null||!(0,zT.default)(a=[`object`,`function`]).call(a,typeof i))continue;let c=DD(i,e,n);if(c){r[c]?r[c].push(i):r[c]=[i];let e=r[c];if(e.length>1)e.forEach((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${c}${t+1}`});else if(i.operationId!==void 0){let t=e[0];t.__originalOperationId=t.__originalOperationId||i.operationId,t.operationId=c}}if(n!==`parameters`){let e=[],n={};
75for(let r in t)(r===`produces`||r===`consumes`||r===`security`)&&(n[r]=t[r],e.push(n));if(s&&(n.parameters=s,e.push(n)),e.length){for(let t of e)for(let e in t)if(!Array.isArray(i[e]))i[e]=t[e];else if(e===`parameters`)for(let n of t[e])i[e].some(e=>!pS(e)&&!pS(n)?!1:e===n||[`name`,`$ref`,`$$ref`].some(t=>typeof e[t]==`string`&&typeof n[t]==`string`&&e[t]===n[t]))||i[e].push(n)}}}}return t.$$normalized=!0,e}var kD={name:`generic`,match(){return!0},normalize(e){let{spec:t}=OD({spec:e});return t},async resolve(e){return CD(e)}};async function AD(e){return CD(e)}var jD=e=>{try{let{swagger:t}=e;return t===`2.0`}catch{return!1}},MD=e=>{try{let{openapi:t}=e;return typeof t==`string`&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},ND=e=>{try{let{openapi:t}=e;return typeof t==`string`&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},PD=e=>{try{let{openapi:t}=e;return typeof t==`string`&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},FD=e=>MD(e)||ND(e)||PD(e),ID={name:`openapi-2`,match(e){return jD(e)},normalize(e){let{spec:t}=OD({spec:e});return t},async resolve(e){return AD(e)}};async function LD(e){return CD(e)}var RD={name:`openapi-3-0`,match(e){return MD(e)},normalize(e){let{spec:t}=OD({spec:e});return t},async resolve(e){return LD(e)}},zD=e=>{try{let t=e.startsWith(`#`)?e.slice(1):e;return decodeURIComponent(t)}catch{return e}},BD=e=>{let t=e.indexOf(`#`);return zD(t===-1?`#`:e.substring(t))};function VD(){this.grammarObject=`grammarObject`,this.rules=[],this.rules[0]={name:`json-pointer`,lower:`json-pointer`,index:0,isBkr:!1},this.rules[1]={name:`reference-token`,lower:`reference-token`,index:1,isBkr:!1},this.rules[2]={name:`unescaped`,lower:`unescaped`,index:2,isBkr:!1},this.rules[3]={name:`escaped`,lower:`escaped`,index:3,isBkr:!1},this.rules[4]={name:`array-location`,lower:`array-location`,index:4,isBkr:!1},this.rules[5]={name:`array-index`,lower:`array-index`,index:5,isBkr:!1},this.rules[6]={name:`array-dash`,lower:`array-dash`,index:6,isBkr:!1},this.rules[7]={name:`slash`,lower:`slash`,index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e=``;return e+=`; JavaScript Object Notation (JSON) Pointer ABNF syntax 76`,e+=`; https://datatracker.ietf.org/doc/html/rfc6901 77`,e+=`json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used 78`,e+=`reference-token = *( unescaped / escaped ) 79`,e+=`unescaped = %x00-2E / %x30-7D / %x7F-10FFFF 80`,e+=` ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped' 81`,e+=`escaped = "~" ( "0" / "1" ) 82`,e+=` ; representing '~' and '/', respectively 83`,e+=` 84`,e+=`; https://datatracker.ietf.org/doc/html/rfc6901#section-4
85`,e+=`array-location = array-index / array-dash 86`,e+=`array-index = %x30 / ( %x31-39 *(%x30-39) ) 87`,e+=` ; "0", or digits without a leading "0" 88`,e+=`array-dash = "-" 89`,e+=` 90`,e+=`; Surrogate named rules 91`,e+=`slash = "/" 92`,e}}var HD=function(){let e=qD,t=KD,n=this,r=`parser.js: Parser(): `,i=function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};n.ast=void 0,n.stats=void 0,n.trace=void 0,n.callbacks=[];let a=0,o=0,s=0,c=0,l=0,u,d,f,p,m=new i,h,g,_,v=()=>{a=0,o=0,s=0,c=0,l=0,u=void 0,d=void 0,f=void 0,p=void 0,m.refresh(),h=void 0,g=void 0,_=void 0},y=()=>{let e=`${r}initializeCallbacks(): `,t;for(h=[],g=[],t=0;t<u.length;t+=1)h[t]=void 0;for(t=0;t<d.length;t+=1)g[t]=void 0;let i,a=[];for(t=0;t<u.length;t+=1)a.push(u[t].lower);for(t=0;t<d.length;t+=1)a.push(d[t].lower);for(let r in n.callbacks)if(n.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw Error(`${e}syntax callback '${r}' not a rule or udt name`);if(i=n.callbacks[r]?n.callbacks[r]:void 0,typeof i==`function`||i===void 0)t<u.length?h[t]=i:g[t-u.length]=i;else throw Error(`${e}syntax callback[${r}] must be function reference or falsy)`)}};n.parse=(i,a,o,h)=>{let g=`${r}parse(): `;v(),p=t.stringToChars(o),u=i.rules,d=i.udts;let b=a.toLowerCase(),x;for(let e in u)if(u.hasOwnProperty(e)&&b===u[e].lower){x=u[e].index;break}if(x===void 0)throw Error(`${g}start rule name '${startRule}' not recognized`);y(),n.trace&&n.trace.init(u,d,p),n.stats&&n.stats.init(u,d),n.ast&&n.ast.init(u,d,p),_=h,f=[{type:e.RNM,index:x}],M(0,0),f=void 0;let S=!1;switch(m.state){case e.ACTIVE:throw Error(`${g}final state should never be 'ACTIVE'`);case e.NOMATCH:S=!1;break;case e.EMPTY:case e.MATCH:S=m.phraseLength===p.length;break;default:throw Error(`unrecognized state`)}return{success:S,state:m.state,stateName:e.idName(m.state),length:p.length,matched:m.phraseLength,maxMatched:l,maxTreeDepth:s,nodeHits:c}};let b=(t,n)=>{let r=f[t];for(let t=0;t<r.children.length&&(M(r.children[t],n),m.state===e.NOMATCH);t+=1);},x=(t,r)=>{let i,a,o,s,c=f[t];n.ast&&(a=n.ast.getLength()),i=!0,o=r,s=0;for(let t=0;t<c.children.length;t+=1){if(M(c.children[t],o),m.state===e.NOMATCH){i=!1;break}o+=m.phraseLength,s+=m.phraseLength}i?(m.state=s===0?e.EMPTY:e.MATCH,m.phraseLength=s):(m.state=e.NOMATCH,m.phraseLength=0,n.ast&&n.ast.setLength(a))},S=(t,r)=>{let i,a,o,s,c=f[t];if(c.max===0){m.state=e.EMPTY,m.phraseLength=0;return}for(a=r,o=0,s=0,n.ast&&(i=n.ast.getLength());!(a>=p.length||(M(t+1,a),m.state===e.NOMATCH)||m.state===e.EMPTY||(s+=1,o+=m.phraseLength,a+=m.phraseLength,s===c.max)););m.state===e.EMPTY||s>=c.min?(m.state=o===0?e.EMPTY:e.MATCH,m.phraseLength=o):(m.state=e.NOMATCH,m.phraseLength=0,n.ast&&n.ast.setLength(i))},C=(t,n,i,a)=>{if(n.phraseLength>i){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${i}`,Error(e)}switch(n.state){case e.ACTIVE:if(!a)throw Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:n.phraseLength=0;break;case e.MATCH:n.phraseLength===0&&(n.state=e.EMPTY);break;case e.NOMATCH:n.phraseLength=0;break;default:throw Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}},w=(t,r)=>{let i,o,s,c=f[t],l=u[c.index],d=h[l.index];if(a||(o=n.ast&&n.ast.ruleDefined(c.index),o&&(i=n.ast.getLength(),n.ast.down(c.index,u[c.index].name))),d){let t=p.length-r;d(m,p,r,_),C(l,m,t,!0),m.state===e.ACTIVE&&(s=f,f=l.opcodes,M(0,r),f=s,d(m,p,r,_),C(l,m,t,!1))}else s=f,f=l.opcodes,M(0,r,m),f=s;a||o&&(m.state===e.NOMATCH?n.ast.setLength(i):n.ast.up(c.index,l.name,r,m.phraseLength))},T=(t,n)=>{let r=f[t];m.state=e.NOMATCH,n<p.length&&r.min<=p[n]&&p[n]<=r.max&&(m.state=e.MATCH,m.phraseLength=1)},E=(t,n)=>{let r=f[t],i=r.string.length;if(m.state=e.NOMATCH,n+i<=p.length){for(let e=0;e<i;e+=1)if(p[n+e]!==r.string[e])return;m.state=e.MATCH,m.phraseLength=i}},D=(t,n)=>{let r,i=f[t];m.state=e.NOMATCH;let a=i.string.length;if(a===0){m.state=e.EMPTY;return}if(n+a<=p.length){for(let e=0;e<a;e+=1)if(r=p[n+e],r>=65&&r<=90&&(r+=32),r!==i.string[e])return;m.state=e.MATCH,m.phraseLength=a}},O=(t,n,i)=>{if(n.phraseLength>i){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${n.phraseLength}`,e+=` must be <= remaining chars: ${i}`,Error(e)}switch(n.state){case e.ACTIVE:throw Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(t.empty)n.phraseLength=0;else throw Error(`${r}opUDT(${t.name}) may not return EMPTY.`);break;case e.MATCH:if(n.phraseLength===0){if(t.empty)n.state=e.EMPTY;else throw Error(`${r}opUDT(${t.name}) may not return EMPTY.`)}break;case e.NOMATCH:n.phraseLength=0;break;default:throw Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${n.state}`)}},k=(t,r)=>{let i,o,s,c=f[t],l=d[c.index];m.UdtIndex=l.index,a||(s=n.ast&&n.ast.udtDefined(c.index),s&&(o=u.length+c.index,i=n.ast.getLength(),n.ast.down(o,l.name)));let h=p.length-r;g[c.index](m,p,r,_),O(l,m,h),a||s&&(m.state===e.NOMATCH?n.ast.setLength(i):n.ast.up(o,l.name,r,m.phraseLength))},A=(t,n)=>{switch(a+=1,M(t+1,n),--a,m.phraseLength=0,m.state){case e.EMPTY:m.state=e.EMPTY;break;case e.MATCH:m.state=e.EMPTY;break;case e.NOMATCH:m.state=e.NOMATCH;break;
92default:throw Error(`opAND: invalid state ${m.state}`)}},j=(t,n)=>{switch(a+=1,M(t+1,n),--a,m.phraseLength=0,m.state){case e.EMPTY:case e.MATCH:m.state=e.NOMATCH;break;case e.NOMATCH:m.state=e.EMPTY;break;default:throw Error(`opNOT: invalid state ${m.state}`)}},M=(t,i)=>{let u=`${r}opExecute(): `,d=f[t];switch(c+=1,o>s&&(s=o),o+=1,m.refresh(),n.trace&&n.trace.down(d,i),d.type){case e.ALT:b(t,i);break;case e.CAT:x(t,i);break;case e.REP:S(t,i);break;case e.RNM:w(t,i);break;case e.TRG:T(t,i);break;case e.TBS:E(t,i);break;case e.TLS:D(t,i);break;case e.UDT:k(t,i);break;case e.AND:A(t,i);break;case e.NOT:j(t,i);break;default:throw Error(`${u}unrecognized operator`)}a||i+m.phraseLength>l&&(l=i+m.phraseLength),n.stats&&n.stats.collect(d,m),n.trace&&n.trace.up(d,m.state,i,m.phraseLength),--o}},UD=function(){let e=qD,t=KD,n=this,r,i,a,o=0,s=[],c=[],l=[];n.callbacks=[],n.init=(e,t,u)=>{c.length=0,l.length=0,o=0,r=e,i=t,a=u;let d,f=[];for(d=0;d<r.length;d+=1)f.push(r[d].lower);for(d=0;d<i.length;d+=1)f.push(i[d].lower);for(o=r.length+i.length,d=0;d<o;d+=1)s[d]=void 0;for(let e in n.callbacks)if(n.callbacks.hasOwnProperty(e)){let t=e.toLowerCase();if(d=f.indexOf(t),d<0)throw Error(`parser.js: Ast()): init: node '${e}' not a rule or udt name`);s[d]=n.callbacks[e]}},n.ruleDefined=e=>!!s[e],n.udtDefined=e=>!!s[r.length+e],n.down=(t,n)=>{let r=l.length;return c.push(r),l.push({name:n,thisIndex:r,thatIndex:void 0,state:e.SEM_PRE,callbackIndex:t,phraseIndex:void 0,phraseLength:void 0,stack:c.length}),r},n.up=(t,n,r,i)=>{let a=l.length,o=c.pop();return l.push({name:n,thisIndex:a,thatIndex:o,state:e.SEM_POST,callbackIndex:t,phraseIndex:r,phraseLength:i,stack:c.length}),l[o].thatIndex=a,l[o].phraseIndex=r,l[o].phraseLength=i,a},n.translate=t=>{let n,r;for(let i=0;i<l.length;i+=1)r=l[i],n=s[r.callbackIndex],n&&(r.state===e.SEM_PRE?n(e.SEM_PRE,a,r.phraseIndex,r.phraseLength,t):n&&n(e.SEM_POST,a,r.phraseIndex,r.phraseLength,t))},n.setLength=e=>{l.length=e,e>0?c.length=l[e-1].stack:c.length=0},n.getLength=()=>l.length;function u(e){let t=``;for(;e-->0;)t+=` `;return t}n.toXml=()=>{let n=``,r=0;return n+=`<?xml version="1.0" encoding="utf-8"?> 93`,n+=`<root nodes="${l.length/2}" characters="${a.length}">\n`,n+=`<!-- input string --> 94`,n+=u(r+2),n+=t.charsToString(a),n+=` 95`,l.forEach(i=>{i.state===e.SEM_PRE?(r+=1,n+=u(r),n+=`<node name="${i.name}" index="${i.phraseIndex}" length="${i.phraseLength}">\n`,n+=u(r+2),n+=t.charsToString(a,i.phraseIndex,i.phraseLength),n+=` 96`):(n+=u(r),n+=`</node><!-- name="${i.name}" -->\n`,--r)}),n+=`</root> 97`,n}},WD=function(){let e=qD,t=KD,n=`parser.js: Trace(): `,r,i,a,o=``,s=0,c=this,l=e=>{let t=``,n=0;if(e>=0)for(;e--;)n+=1,n===5?(t+=`|`,n=0):t+=`.`;return t};c.init=(e,t,n)=>{i=e,a=t,r=n};let u=r=>{let o;switch(r.type){case e.ALT:o=`ALT`;break;case e.CAT:o=`CAT`;break;case e.REP:o=r.max===1/0?`REP(${r.min},inf)`:`REP(${r.min},${r.max})`;break;case e.RNM:o=`RNM(${i[r.index].name})`;break;case e.TRG:o=`TRG(${r.min},${r.max})`;break;case e.TBS:o=r.string.length>6?`TBS(${t.charsToString(r.string,0,3)}...)`:`TBS(${t.charsToString(r.string,0,6)})`;break;case e.TLS:o=r.string.length>6?`TLS(${t.charsToString(r.string,0,3)}...)`:`TLS(${t.charsToString(r.string,0,6)})`;break;case e.UDT:o=`UDT(${a[r.index].name})`;break;case e.AND:o=`AND`;break;case e.NOT:o=`NOT`;break;default:throw Error(`${n}Trace: opName: unrecognized opcode`)}return o};c.down=(e,n)=>{let i=l(s),a=Math.min(100,r.length-n),c=t.charsToString(r,n,a);a<r.length-n&&(c+=`...`),c=`${i}|-|[${u(e)}]${c}\n`,o+=c,s+=1},c.up=(i,a,c,d)=>{let f=`${n}trace.up: `;--s;let p=l(s),m,h,g;switch(a){case e.EMPTY:g=`|E|`,h=`''`;break;case e.MATCH:g=`|M|`,m=Math.min(100,d),h=m<d?`'${t.charsToString(r,c,m)}...'`:`'${t.charsToString(r,c,m)}'`;break;case e.NOMATCH:g=`|N|`,h=``;break;default:throw Error(`${f} unrecognized state`)}h=`${p}${g}[${u(i)}]${h}\n`,o+=h},c.displayTrace=()=>o},GD=function(){let e=qD,t,n,r,i=[],a=[],o=[];this.init=(e,r)=>{t=e,n=r,f()},this.collect=(t,n)=>{p(r,n.state,n.phraseLength),p(i[t.type],n.state,n.phraseLength),t.type===e.RNM&&p(a[t.index],n.state,n.phraseLength),t.type===e.UDT&&p(o[t.index],n.state,n.phraseLength)},this.displayStats=()=>{let t=``,n={match:0,empty:0,nomatch:0,total:0},r=(e,t,r,i,a)=>(n.match+=t,n.empty+=r,n.nomatch+=i,n.total+=a,`${e} | ${s(t)} | ${s(r)} | ${s(i)} | ${s(a)} |\n`);return t+=` OPERATOR STATS 98`,t+=` | MATCH | EMPTY | NOMATCH | TOTAL | 99`,t+=r(` ALT`,i[e.ALT].match,i[e.ALT].empty,i[e.ALT].nomatch,i[e.ALT].total),t+=r(` CAT`,i[e.CAT].match,i[e.CAT].empty,i[e.CAT].nomatch,i[e.CAT].total),t+=r(` REP`,i[e.REP].match,i[e.REP].empty,i[e.REP].nomatch,i[e.REP].total),t+=r(` RNM`,i[e.RNM].match,i[e.RNM].empty,i[e.RNM].nomatch,i[e.RNM].total),t+=r(` TRG`,i[e.TRG].match,i[e.TRG].empty,i[e.TRG].nomatch,i[e.TRG].total),t+=r(` TBS`,i[e.TBS].match,i[e.TBS].empty,i[e.TBS].nomatch,i[e.TBS].total),t+=r(` TLS`,i[e.TLS].match,i[e.TLS].empty,i[e.TLS].nomatch,i[e.TLS].total),t+=r(` UDT`,i[e.UDT].match,i[e.UDT].empty,i[e.UDT].nomatch,i[e.UDT].total),t+=r(` AND`,i[e.AND].match,i[e.AND].empty,i[e.AND].nomatch,i[e.AND].total),t+=r(` NOT`,i[e.NOT].match,i[e.NOT].empty,i[e.NOT].nomatch,i[e.NOT].total),t+=r(`TOTAL`,n.match,n.empty,n.nomatch,n.total),t},this.displayHits=e=>{let t=``,n=(e,t,n,i,a)=>(r.match+=e,r.empty+=t,r.nomatch+=n,r.total+=i,`| ${s(e)} | ${s(t)} | ${s(n)} | ${s(i)} | ${a}\n`);typeof e==`string`&&e.toLowerCase()[0]===`a`?(a.sort(c),o.sort(c),t+=` RULES/UDTS ALPHABETICALLY 100`):typeof e==`string`&&e.toLowerCase()[0]===`i`?(a.sort(u),o.sort(u),t+=` RULES/UDTS BY INDEX 101`):(a.sort(l),o.sort(l),t+=` RULES/UDTS BY HIT COUNT 102`),t+=`| MATCH | EMPTY | NOMATCH | TOTAL | NAME 103`;for(let e=0;e<a.length;e+=1){let r=a[e];
103r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}for(let e=0;e<o.length;e+=1){let r=o[e];r.total&&(t+=n(r.match,r.empty,r.nomatch,r.total,r.name))}return t};let s=e=>e<10?` ${e}`:e<100?` ${e}`:e<1e3?` ${e}`:e<1e4?` ${e}`:e<1e5?` ${e}`:e<1e6?` ${e}`:`${e}`,c=(e,t)=>e.lower<t.lower?-1:+(e.lower>t.lower),l=(e,t)=>e.total<t.total?1:e.total>t.total?-1:c(e,t),u=(e,t)=>e.index<t.index?-1:+(e.index>t.index),d=function(){this.empty=0,this.match=0,this.nomatch=0,this.total=0},f=()=>{i.length=0,r=new d,i[e.ALT]=new d,i[e.CAT]=new d,i[e.REP]=new d,i[e.RNM]=new d,i[e.TRG]=new d,i[e.TBS]=new d,i[e.TLS]=new d,i[e.UDT]=new d,i[e.AND]=new d,i[e.NOT]=new d,a.length=0;for(let e=0;e<t.length;e+=1)a.push({empty:0,match:0,nomatch:0,total:0,name:t[e].name,lower:t[e].lower,index:t[e].index});if(n.length>0){o.length=0;for(let e=0;e<n.length;e+=1)o.push({empty:0,match:0,nomatch:0,total:0,name:n[e].name,lower:n[e].lower,index:n[e].index})}},p=(t,n)=>{switch(t.total+=1,n){case e.EMPTY:t.empty+=1;break;case e.MATCH:t.match+=1;break;case e.NOMATCH:t.nomatch+=1;break;default:throw Error(`parser.js: Stats(): collect(): incStat(): unrecognized state: ${n}`)}}},KD={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,n)=>{let r=e;for(;!(t===void 0||t<0);){if(n===void 0){r=e.slice(t);break}if(n<=0)return``;r=e.slice(t,t+n);break}return String.fromCodePoint(...r)}},qD={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 qD.ALT:return`ALT`;case qD.CAT:return`CAT`;case qD.REP:return`REP`;case qD.RNM:return`RNM`;case qD.TRG:return`TRG`;case qD.TBS:return`TBS`;case qD.TLS:return`TLS`;case qD.UDT:return`UDT`;case qD.AND:return`AND`;case qD.NOT:return`NOT`;case qD.ACTIVE:return`ACTIVE`;case qD.EMPTY:return`EMPTY`;case qD.MATCH:return`MATCH`;case qD.NOMATCH:return`NOMATCH`;case qD.SEM_PRE:return`SEM_PRE`;case qD.SEM_POST:return`SEM_POST`;case qD.SEM_OK:return`SEM_OK`;default:return`UNRECOGNIZED STATE`}}},JD=class extends Error{constructor(e,t=void 0){if(super(e,t),this.name=this.constructor.name,typeof e==`string`&&(this.message=e),typeof Error.captureStackTrace==`function`?Error.captureStackTrace(this,this.constructor):this.stack=Error(e).stack,typeof t==`object`&&t&&Object.prototype.hasOwnProperty.call(t,`cause`)&&!(`cause`in this)){let{cause:e}=t;this.cause=e,e instanceof Error&&`stack`in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(typeof t==`object`&&t){let{cause:e,...n}=t;Object.assign(this,n)}}},YD=class extends JD{},XD=e=>(t,n,r,i,a)=>{if(typeof a!=`object`||!a||Array.isArray(a))throw new YD(`parser's user data must be an object`);if(t===qD.SEM_PRE){let t={type:e,text:KD.charsToString(n,r,i),start:r,length:i,children:[]};a.stack.length>0?a.stack[a.stack.length-1].children.push(t):a.root=t,a.stack.push(t)}t===qD.SEM_POST&&a.stack.pop()},ZD=class extends UD{constructor(){super(),this.callbacks[`json-pointer`]=XD(`json-pointer`),this.callbacks[`reference-token`]=XD(`reference-token`),this.callbacks.slash=XD(`text`)}getTree(){let e={stack:[],root:null};return this.translate(e),delete e.stack,e}},QD=e=>{if(typeof e!=`string`)throw TypeError(`Reference token must be a string`);return e.replace(/~1/g,`/`).replace(/~0/g,`~`)},$D=class extends ZD{getTree(){let{root:e}=super.getTree();return e.children.filter(({type:e})=>e===`reference-token`).map(({text:e})=>QD(e))}},eO=class extends Array{toString(){return this.map(e=>`"${String(e)}"`).join(`, `)}},tO=class extends WD{inferExpectations(){let e=this.displayTrace().split(` 104`),t=new Set,n=-1;for(let r=0;r<e.length;r++){let i=e[r];if(i.includes(`M|`)){let e=i.match(/]'(.*)'$/);e&&e[1]&&(n=r)}if(r>n){let e=i.match(/N\|\[TLS\(([^)]+)\)]/);e&&t.add(e[1])}}return new eO(...t)}},nO=new VD,rO=(e,{translator:t=new $D,stats:n=!1,trace:r=!1}={})=>{if(typeof e!=`string`)throw TypeError(`JSON Pointer must be a string`);try{let i=new HD;t&&(i.ast=t),n&&(i.stats=new GD),r&&(i.trace=new tO);let a=i.parse(nO,`json-pointer`,e);return{result:a,tree:a.success&&t?i.ast.getTree():void 0,stats:i.stats,trace:i.trace}}catch(t){throw new YD(`Unexpected error during JSON Pointer parsing`,{cause:t,jsonPointer:e})}};new VD,new HD,new VD,new HD;var iO=new VD,aO=new HD,oO=e=>{if(typeof e!=`string`)return!1;try{return aO.parse(iO,`array-index`,e).success}catch{return!1}},sO=new VD,cO=new HD,lO=e=>{if(typeof e!=`string`)return!1;try{return cO.parse(sO,`array-dash`,e).success}catch{return!1}},uO=e=>{if(typeof e!=`string`&&typeof e!=`number`)throw TypeError(`Reference token must be a string or number`);return String(e).replace(/~/g,`~0`).replace(/\//g,`~1`)},dO=class extends JD{},fO=e=>{if(!Array.isArray(e))throw TypeError(`Reference tokens must be a list of strings or numbers`);try{return e.length===0?``:`/${e.map(e=>{if(typeof e!=`string`&&typeof e!=`number`)throw TypeError(`Reference token must be a string or number`);return uO(String(e))}).join(`/`)}`}catch(t){throw new dO(`Unexpected error during JSON Pointer compilation`,{cause:t,referenceTokens:e})}},pO=class{#e;#t;#n;constructor(e,t={}){this.#e=e,this.#e.steps=[],this.#e.failed=!1,this.#e.failedAt=-1,this.#e.message=`JSON Pointer "${t.jsonPointer}" was successfully evaluated against the provided value`,this.#e.context={...t,realm:t.realm.name},this.#t=[],this.#n=t.realm}step({referenceToken:e,input:t,output:n,success:r=!0,reason:i}){let a=this.#t.length;this.#t.push(e);let o={referenceToken:e,referenceTokenPosition:a,input:t,inputType:this.#n.isObject(t)?`object`:this.#n.isArray(t)?`array`:`unrecognized`,output:n,success:r};i&&(o.reason=i),this.#e.steps.push(o),r||(this.#e.failed=!0,this.#e.failedAt=a,this.#e.message=i)}},mO=class{name=``;isArray(e){throw new JD(`Realm.isArray(node) must be implemented in a subclass`)}isObject(e){throw new JD(`Realm.isObject(node) must be implemented in a subclass`)}sizeOf(e){throw new JD(`Realm.sizeOf(node) must be implemented in a subclass`)}has(e,t){throw new JD(`Realm.has(node) must be implemented in a subclass`)}evaluate(e,t){throw new JD(`Realm.evaluate(node) must be implemented in a subclass`)}},hO=class extends JD{},gO=class extends hO{},_O=class extends mO{name=`json`;isArray(e){return Array.isArray(e)}isObject(e){return typeof e==`object`&&!!e&&!this.isArray(e)}sizeOf(e){return this.isArray(e)?e.length:this.isObject(e)?Object.keys(e).length:0}has(e,t){if(this.isArray(e)){let n=Number(t),r=n>>>0;if(n!==r)throw new gO(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return r<this.sizeOf(e)&&Object.prototype.hasOwnProperty.call(e,n)}return this.isObject(e)?Object.prototype.hasOwnProperty.call(e,t):!1}evaluate(e,t){return this.isArray(e)?e[Number(t)]:e[t]}},vO=class extends hO{},yO=class extends hO{},bO=(e,t,{strictArrays:n=!0,strictObjects:r=!0,realm:i=new _O,trace:a=!0}={})=>{let{result:o,tree:s,trace:c}=rO(t,{trace:!!a}),l=typeof a==`object`&&a?new pO(a,{jsonPointer:t,referenceTokens:s,strictArrays:n,strictObjects:r,realm:i,value:e}):null;try{let a;if(!o.success){let n=`Invalid JSON Pointer: "${t}". Syntax error at position ${o.maxMatched}`;throw n+=c?`, expected ${c.inferExpectations()}`:``,new hO(n,{jsonPointer:t,currentValue:e,realm:i.name})}return s.reduce((e,o,c)=>{if(i.isArray(e)){if(lO(o)){if(n)throw new gO(`Invalid array index "-" at position ${c} in "${t}". The "-" token always refers to a nonexistent element during evaluation`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return a=i.evaluate(e,String(i.sizeOf(e))),l?.step({referenceToken:o,input:e,output:a}),a}if(!oO(o))throw new gO(`Invalid array index "${o}" at position ${c} in "${t}": index MUST be "0", or digits without a leading "0"`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});let r=Number(o);if(!Number.isSafeInteger(r))throw new gO(`Invalid array index "${o}" at position ${c} in "${t}": index must be a safe integer`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});if(!i.has(e,o)&&n)throw new gO(`Invalid array index "${o}" at position ${c} in "${t}
104": index not found in array`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return a=i.evaluate(e,o),l?.step({referenceToken:o,input:e,output:a}),a}if(i.isObject(e)){if(!i.has(e,o)&&r)throw new yO(`Invalid object key "${o}" at position ${c} in "${t}": key not found in object`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name});return a=i.evaluate(e,o),l?.step({referenceToken:o,input:e,output:a}),a}throw new vO(`Invalid reference token "${o}" at position ${c} in "${t}": cannot be applied to a non-object/non-array value`,{jsonPointer:t,referenceTokens:s,referenceToken:o,referenceTokenPosition:c,currentValue:e,realm:i.name})},e)}catch(e){throw l?.step({referenceToken:e.referenceToken,input:e.currentValue,success:!1,reason:e.message}),e instanceof hO?e:new hO(`Unexpected error during JSON Pointer evaluation`,{cause:e,jsonPointer:t,referenceTokens:s})}},xO=class extends mO{name=`apidom`;isArray(e){return ZC(e)}isObject(e){return XC(e)}sizeOf(e){return this.isArray(e)||this.isObject(e)?e.length:0}has(e,t){if(this.isArray(e)){let n=Number(t),r=n>>>0;if(n!==r)throw new gO(`Invalid array index "${t}": index must be an unsinged 32-bit integer`,{referenceToken:t,currentValue:e,realm:this.name});return r<this.sizeOf(e)}if(this.isObject(e)){let n=e.keys(),r=new Set(n);if(n.length!==r.size)throw new yO(`Object key "${t}" is not unique â JSON Pointer requires unique member names`,{referenceToken:t,currentValue:e,realm:this.name});return e.hasKey(t)}return!1}evaluate(e,t){return this.isArray(e)?e.get(Number(t)):e.get(t)}},SO=(e,t,n={})=>bO(e,t,{...n,realm:new xO}),CO=class extends Bw{filterByFormat(e=`generic`){let t=e===`generic`?`openapi;version`:e;return this.filter(e=>e.includes(t))}findBy(e=`3.1.2`,t=`generic`){let n=t===`generic`?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find(e=>e.includes(n))||this.unknownMediaType}latest(e=`generic`){return $b(this.filterByFormat(e))}},wO=new CO(`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`,`application/vnd.oai.openapi;version=3.1.1`,`application/vnd.oai.openapi+json;version=3.1.1`,`application/vnd.oai.openapi+yaml;version=3.1.1`,`application/vnd.oai.openapi;version=3.1.2`,`application/vnd.oai.openapi+json;version=3.1.2`,`application/vnd.oai.openapi+yaml;version=3.1.2`),TO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`callback`}},EO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`components`}get schemas(){return this.get(`schemas`)}set schemas(e){this.set(`schemas`,e)}get responses(){return this.get(`responses`)}set responses(e){this.set(`responses`,e)}get parameters(){return this.get(`parameters`)}set parameters(e){this.set(`parameters`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}get requestBodies(){return this.get(`requestBodies`)}set requestBodies(e){this.set(`requestBodies`,e)}get headers(){return this.get(`headers`)}set headers(e){this.set(`headers`,e)}get securitySchemes(){return this.get(`securitySchemes`)}set securitySchemes(e){this.set(`securitySchemes`,e)}get links(){return this.get(`links`)}set links(e){this.set(`links`,e)}get callbacks(){return this.get(`callbacks`)}set callbacks(e){this.set(`callbacks`,e)}},DO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`contact`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get url(){return this.get(`url`)}set url(e){this.set(`url`,e)}get email(){return this.get(`email`)}set email(e){this.set(`email`,e)}},OO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`discriminator`}get propertyName(){return this.get(`propertyName`)}set propertyName(e){this.set(`propertyName`,e)}get mapping(){return this.get(`mapping`)}set mapping(e){this.set(`mapping`,e)}},kO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`encoding`}get contentType(){return this.get(`contentType`)}set contentType(e){this.set(`contentType`,e)}get headers(){return this.get(`headers`)}set headers(e){this.set(`headers`,e)}get style(){return this.get(`style`)}set style(e){this.set(`style`,e)}get explode(){return this.get(`explode`)}set explode(e){this.set(`explode`,e)}get allowedReserved(){return this.get(`allowedReserved`)}set allowedReserved(e){this.set(`allowedReserved`,e)}},AO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`example`}get summary(){return this.get(`summary`)}set summary(e){this.set(`summary`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get value(){return this.get(`value`)}set value(e){this.set(`value`,e)}get externalValue(){return this.get(`externalValue`)}set externalValue(e){this.set(`externalValue`,e)}},jO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`externalDocumentation`}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get url(){return this.get(`url`)}set url(e){this.set(`url`,e)}},MO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`header`}get required(){return this.hasKey(`required`)?this.get(`required`):new U.BooleanElement(!1)}set required(e){this.set(`required`,e)}get deprecated(){return this.hasKey(`deprecated`)?this.get(`deprecated`):new U.BooleanElement(!1)}set deprecated(e){this.set(`deprecated`,e)}get allowEmptyValue(){return this.get(`allowEmptyValue`)}set allowEmptyValue(e){this.set(`allowEmptyValue`,e)}get style(){return this.get(`style`)}set style(e){this.set(`style`,e)}get explode(){return this.get(`explode`)}set explode(e){this.set(`explode`,e)}get allowReserved(){return this.get(`allowReserved`)}set allowReserved(e){this.set(`allowReserved`,e)}get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}get contentProp(){return this.get(`content`)}set contentProp(e){this.set(`content`,e)}};Object.defineProperty(MO.prototype,"description",{get(){return this.get(`description`)},set(e){this.set(`description`,e)},enumerable:!0});var NO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`info`,this.classes.push(`info`)}get title(){return this.get(`title`)}set title(e){this.set(`title`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get termsOfService(){return this.get(`termsOfService`)}set termsOfService(e){this.set(`termsOfService`,e)}get contact(){return this.get(`contact`)}set contact(e){this.set(`contact`,e)}get license(){return this.get(`license`)}set license(e){this.set(`license`,e)}get version(){return this.get(`version`)}set version(e){this.set(`version`,e)}},PO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`license`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get url(){return this.get(`url`)}set url(e){this.set(`url`,e)}},FO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`link`}get operationRef(){return this.get(`operationRef`)}set operationRef(e){this.set(`operationRef`,e)}get operationId(){return this.get(`operationId`)}set operationId(e){this.set(`operationId`,e)}get operation(){if(KC(this.operationRef))return this.operationRef?.meta.get(`operation`);if(KC(this.operationId))return this.operationId?.meta.get(`operation`)}set operation(e){this.set(`operation`,e)}get parameters(){return this.get(`parameters`)}set parameters(e){this.set(`parameters`,e)}
104get requestBody(){return this.get(`requestBody`)}set requestBody(e){this.set(`requestBody`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get server(){return this.get(`server`)}set server(e){this.set(`server`,e)}},IO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`mediaType`}get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}get encoding(){return this.get(`encoding`)}set encoding(e){this.set(`encoding`,e)}},LO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`oAuthFlow`}get authorizationUrl(){return this.get(`authorizationUrl`)}set authorizationUrl(e){this.set(`authorizationUrl`,e)}get tokenUrl(){return this.get(`tokenUrl`)}set tokenUrl(e){this.set(`tokenUrl`,e)}get refreshUrl(){return this.get(`refreshUrl`)}set refreshUrl(e){this.set(`refreshUrl`,e)}get scopes(){return this.get(`scopes`)}set scopes(e){this.set(`scopes`,e)}},RO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`oAuthFlows`}get implicit(){return this.get(`implicit`)}set implicit(e){this.set(`implicit`,e)}get password(){return this.get(`password`)}set password(e){this.set(`password`,e)}get clientCredentials(){return this.get(`clientCredentials`)}set clientCredentials(e){this.set(`clientCredentials`,e)}get authorizationCode(){return this.get(`authorizationCode`)}set authorizationCode(e){this.set(`authorizationCode`,e)}},zO=class extends U.StringElement{constructor(e,t,n){super(e,t,n),this.element=`openapi`,this.classes.push(`spec-version`),this.classes.push(`version`)}},BO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`openApi3_0`,this.classes.push(`api`)}get openapi(){return this.get(`openapi`)}set openapi(e){this.set(`openapi`,e)}get info(){return this.get(`info`)}set info(e){this.set(`info`,e)}get servers(){return this.get(`servers`)}set servers(e){this.set(`servers`,e)}get paths(){return this.get(`paths`)}set paths(e){this.set(`paths`,e)}get components(){return this.get(`components`)}set components(e){this.set(`components`,e)}get security(){return this.get(`security`)}set security(e){this.set(`security`,e)}get tags(){return this.get(`tags`)}set tags(e){this.set(`tags`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}},VO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`operation`}get tags(){return this.get(`tags`)}set tags(e){this.set(`tags`,e)}get summary(){return this.get(`summary`)}set summary(e){this.set(`summary`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}set externalDocs(e){this.set(`externalDocs`,e)}get externalDocs(){return this.get(`externalDocs`)}get operationId(){return this.get(`operationId`)}set operationId(e){this.set(`operationId`,e)}get parameters(){return this.get(`parameters`)}set parameters(e){this.set(`parameters`,e)}get requestBody(){return this.get(`requestBody`)}set requestBody(e){this.set(`requestBody`,e)}get responses(){return this.get(`responses`)}set responses(e){this.set(`responses`,e)}get callbacks(){return this.get(`callbacks`)}set callbacks(e){this.set(`callbacks`,e)}get deprecated(){return this.hasKey(`deprecated`)?this.get(`deprecated`):new U.BooleanElement(!1)}set deprecated(e){this.set(`deprecated`,e)}get security(){return this.get(`security`)}set security(e){this.set(`security`,e)}get servers(){return this.get(`severs`)}set servers(e){this.set(`servers`,e)}},HO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`parameter`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get in(){return this.get(`in`)}set in(e){this.set(`in`,e)}get required(){return this.hasKey(`required`)?this.get(`required`):new U.BooleanElement(!1)}set required(e){this.set(`required`,e)}get deprecated(){return this.hasKey(`deprecated`)?this.get(`deprecated`):new U.BooleanElement(!1)}set deprecated(e){this.set(`deprecated`,e)}get allowEmptyValue(){return this.get(`allowEmptyValue`)}set allowEmptyValue(e){this.set(`allowEmptyValue`,e)}get style(){return this.get(`style`)}set style(e){this.set(`style`,e)}get explode(){return this.get(`explode`)}set explode(e){this.set(`explode`,e)}get allowReserved(){return this.get(`allowReserved`)}set allowReserved(e){this.set(`allowReserved`,e)}get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}get contentProp(){return this.get(`content`)}set contentProp(e){this.set(`content`,e)}};Object.defineProperty(HO.prototype,"description",{get(){return this.get(`description`)},set(e){this.set(`description`,e)},enumerable:!0});var UO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`pathItem`}get $ref(){return this.get(`$ref`)}set $ref(e){this.set(`$ref`,e)}get summary(){return this.get(`summary`)}set summary(e){this.set(`summary`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get GET(){return this.get(`get`)}set GET(e){this.set(`GET`,e)}get PUT(){return this.get(`put`)}set PUT(e){this.set(`PUT`,e)}get POST(){return this.get(`post`)}set POST(e){this.set(`POST`,e)}get DELETE(){return this.get(`delete`)}
104set DELETE(e){this.set(`DELETE`,e)}get OPTIONS(){return this.get(`options`)}set OPTIONS(e){this.set(`OPTIONS`,e)}get HEAD(){return this.get(`head`)}set HEAD(e){this.set(`HEAD`,e)}get PATCH(){return this.get(`patch`)}set PATCH(e){this.set(`PATCH`,e)}get TRACE(){return this.get(`trace`)}set TRACE(e){this.set(`TRACE`,e)}get servers(){return this.get(`servers`)}set servers(e){this.set(`servers`,e)}get parameters(){return this.get(`parameters`)}set parameters(e){this.set(`parameters`,e)}},WO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`paths`}},GO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`reference`,this.classes.push(`openapi-reference`)}get $ref(){return this.get(`$ref`)}set $ref(e){this.set(`$ref`,e)}},KO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`requestBody`}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get contentProp(){return this.get(`content`)}set contentProp(e){this.set(`content`,e)}get required(){return this.hasKey(`required`)?this.get(`required`):new U.BooleanElement(!1)}set required(e){this.set(`required`,e)}},qO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`response`}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get headers(){return this.get(`headers`)}set headers(e){this.set(`headers`,e)}get contentProp(){return this.get(`content`)}set contentProp(e){this.set(`content`,e)}get links(){return this.get(`links`)}set links(e){this.set(`links`,e)}},JO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`responses`}get default(){return this.get(`default`)}set default(e){this.set(`default`,e)}},YO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`JSONSchemaDraft4`}get idProp(){return this.get(`id`)}set idProp(e){this.set(`id`,e)}get $schema(){return this.get(`$schema`)}set $schema(e){this.set(`$schema`,e)}get multipleOf(){return this.get(`multipleOf`)}set multipleOf(e){this.set(`multipleOf`,e)}get maximum(){return this.get(`maximum`)}set maximum(e){this.set(`maximum`,e)}get exclusiveMaximum(){return this.get(`exclusiveMaximum`)}set exclusiveMaximum(e){this.set(`exclusiveMaximum`,e)}get minimum(){return this.get(`minimum`)}set minimum(e){this.set(`minimum`,e)}get exclusiveMinimum(){return this.get(`exclusiveMinimum`)}set exclusiveMinimum(e){this.set(`exclusiveMinimum`,e)}get maxLength(){return this.get(`maxLength`)}set maxLength(e){this.set(`maxLength`,e)}get minLength(){return this.get(`minLength`)}set minLength(e){this.set(`minLength`,e)}get pattern(){return this.get(`pattern`)}set pattern(e){this.set(`pattern`,e)}
104get additionalItems(){return this.get(`additionalItems`)}set additionalItems(e){this.set(`additionalItems`,e)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get maxItems(){return this.get(`maxItems`)}set maxItems(e){this.set(`maxItems`,e)}get minItems(){return this.get(`minItems`)}set minItems(e){this.set(`minItems`,e)}get uniqueItems(){return this.get(`uniqueItems`)}set uniqueItems(e){this.set(`uniqueItems`,e)}get maxProperties(){return this.get(`maxProperties`)}set maxProperties(e){this.set(`maxProperties`,e)}get minProperties(){return this.get(`minProperties`)}set minProperties(e){this.set(`minProperties`,e)}get required(){return this.get(`required`)}set required(e){this.set(`required`,e)}get properties(){return this.get(`properties`)}set properties(e){this.set(`properties`,e)}get additionalProperties(){return this.get(`additionalProperties`)}set additionalProperties(e){this.set(`additionalProperties`,e)}get patternProperties(){return this.get(`patternProperties`)}set patternProperties(e){this.set(`patternProperties`,e)}get dependencies(){return this.get(`dependencies`)}set dependencies(e){this.set(`dependencies`,e)}get enum(){return this.get(`enum`)}set enum(e){this.set(`enum`,e)}get type(){return this.get(`type`)}set type(e){this.set(`type`,e)}get allOf(){return this.get(`allOf`)}set allOf(e){this.set(`allOf`,e)}get anyOf(){return this.get(`anyOf`)}set anyOf(e){this.set(`anyOf`,e)}get oneOf(){return this.get(`oneOf`)}set oneOf(e){this.set(`oneOf`,e)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get definitions(){return this.get(`definitions`)}set definitions(e){this.set(`definitions`,e)}get title(){return this.get(`title`)}set title(e){this.set(`title`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get default(){return this.get(`default`)}set default(e){this.set(`default`,e)}get format(){return this.get(`format`)}set format(e){this.set(`format`,e)}get base(){return this.get(`base`)}set base(e){this.set(`base`,e)}get links(){return this.get(`links`)}set links(e){this.set(`links`,e)}get media(){return this.get(`media`)}set media(e){this.set(`media`,e)}get readOnly(){return this.get(`readOnly`)}set readOnly(e){this.set(`readOnly`,e)}},XO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`JSONReference`,this.classes.push(`json-reference`)}get $ref(){return this.get(`$ref`)}set $ref(e){this.set(`$ref`,e)}},ZO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`media`}get binaryEncoding(){return this.get(`binaryEncoding`)}set binaryEncoding(e){this.set(`binaryEncoding`,e)}get type(){return this.get(`type`)}set type(e){this.set(`type`,e)}},QO=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`linkDescription`}get href(){return this.get(`href`)}set href(e){this.set(`href`,e)}get rel(){return this.get(`rel`)}set rel(e){this.set(`rel`,e)}get title(){return this.get(`title`)}set title(e){this.set(`title`,e)}get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get mediaType(){return this.get(`mediaType`)}set mediaType(e){this.set(`mediaType`,e)}get method(){return this.get(`method`)}set method(e){this.set(`method`,e)}get encType(){return this.get(`encType`)}set encType(e){this.set(`encType`,e)}get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}},$O={namespace:e=>{let{base:t}=e;return t.register(`jSONSchemaDraft4`,YO),t.register(`jSONReference`,XO),t.register(`media`,ZO),t.register(`linkDescription`,QO),t}},ek=e=>{if(GC(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},tk={JSONSchemaDraft4Element:[`content`],JSONReferenceElement:[`content`],MediaElement:[`content`],LinkDescriptionElement:[`content`],...Mw},nk=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=uT(t.meta,e.meta)),aw(e)&&Cw(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=uT(t.attributes,e.attributes))}},rk=class extends nk{enter(e){return this.element=G(e),pw}},ik=(e,t,n=[])=>{let r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},ak=(e,t=[e])=>{let n=Object.getPrototypeOf(e);return n===null?t:ak(n,[...t,n])},ok=(...e)=>{if(e.length===0)return;let t,n=e.map(e=>ak(e));for(;n.every(e=>e.length>0);){let e=n.map(e=>e.pop()),r=e[0];if(e.every(e=>e===r))t=r;else break}return t},sk=(e,t,n=[])=>{let r=ok(...e)??Object.prototype,i=Object.create(r),a=ak(r);for(let t of e){let e=ak(t);for(let t=e.length-1;t>=0;t--){let r=e[t];a.indexOf(r)===-1&&(ik(i,r,[`constructor`,...n]),a.push(r))}}return i.constructor=t,i},ck=e=>
104e.filter((t,n)=>e.indexOf(t)==n),lk=(e,t)=>{let n=t.map(e=>ak(e)),r=0,i=!0;for(;i;){i=!1;for(let a=t.length-1;a>=0;a--){let t=n[a][r];if(t!=null&&(i=!0,Object.getOwnPropertyDescriptor(t,e)!=null))return n[a][0]}r++}},uk=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf(){return t},setPrototypeOf(){throw Error(`Cannot set prototype of Proxies created by ts-mixer`)},getOwnPropertyDescriptor(t,n){return Object.getOwnPropertyDescriptor(lk(n,e)||{},n)},defineProperty(){throw Error(`Cannot define new properties on Proxies created by ts-mixer`)},has(n,r){return lk(r,e)!==void 0||t[r]!==void 0},get(n,r){return(lk(r,e)||t)[r]},set(t,n,r){let i=lk(n,e);if(i===void 0)throw Error(`Cannot set new properties on Proxies created by ts-mixer`);return i[n]=r,!0},deleteProperty(){throw Error(`Cannot delete properties on Proxies created by ts-mixer`)},ownKeys(){return e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}}),dk=(e,t)=>uk([...e,{constructor:t}]),fk={initFunction:null,staticsStrategy:`copy`,prototypeStrategy:`copy`,decoratorInheritance:`deep`},pk=new WeakMap,mk=e=>pk.get(e),hk=(e,t)=>pk.set(e,t),gk=(e,t)=>{let n=ck([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),r={};for(let i of n)r[i]=ck([...e?.[i]??[],...t?.[i]??[]]);return r},_k=(e,t)=>({property:gk(e?.property??{},t?.property??{}),method:gk(e?.method??{},t?.method??{})}),vk=(e,t)=>({class:ck([...e?.class??[],...t?.class??[]]),static:_k(e?.static??{},t?.static??{}),instance:_k(e?.instance??{},t?.instance??{})}),yk=new Map,bk=(...e)=>{let t=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){let r=ak(e.prototype).map(e=>e.constructor),i=mk(e)??[],a=[...r,...i].filter(e=>!t.has(e));for(let e of a)n.add(e);t.add(e),n.delete(e)}return[...t]},xk=(...e)=>{let t=bk(...e).map(e=>yk.get(e)).filter(e=>!!e);return t.length==0?{}:t.length==1?t[0]:t.reduce((e,t)=>vk(e,t))},Sk=(...e)=>{let t=e.map(e=>Ck(e));return t.length===0?{}:t.length===1?t[0]:t.reduce((e,t)=>vk(e,t))},Ck=e=>{let t=yk.get(e);return t||(t={},yk.set(e,t)),t};function q(...e){let t=e.map(e=>e.prototype),n=fk.initFunction;if(n!==null){let e=t.map(e=>e[n]).filter(e=>typeof e==`function`),r=function(...t){for(let n of e)n.apply(this,t)},i={[n]:r};t.push(i)}function r(...t){for(let n of e)ik(this,new n(...t));n!==null&&typeof this[n]==`function`&&this[n].apply(this,t)}r.prototype=fk.prototypeStrategy===`copy`?sk(t,r):dk(t,r),Object.setPrototypeOf(r,fk.staticsStrategy===`copy`?sk(e,null,[`prototype`]):uk(e,Function.prototype));let i=r;if(fk.decoratorInheritance!==`none`){let t=fk.decoratorInheritance===`deep`?xk(...e):Sk(...e);for(let e of t?.class??[]){let t=e(i);t&&(i=t)}wk(t?.static??{},i),wk(t?.instance??{},i.prototype)}return hk(i,e),i}var wk=(e,t)=>{let n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))},Tk=class extends nk{specObj;passingOptionsNames=[`specObj`,`parent`];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Mx(this.passingOptionsNames,this)}retrieveFixedFields(e){let t=kx([`visitors`,...e,`fixedFields`],this.specObj);return typeof t==`object`&&t?Object.keys(t):[]}retrieveVisitor(e){return jx(eS,[`visitors`,...e],this.specObj)?kx([`visitors`,...e],this.specObj):kx([`visitors`,...e,`$visitor`],this.specObj)}retrieveVisitorInstance(e,t={}){let n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){let r=this.retrieveVisitorInstance(e,n);return r instanceof rk&&r?.constructor===rk?G(t):(Pw(t,r,n),r.element)}},Ek=class extends Tk{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){let t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach((e,r,i)=>{if(KC(r)&&n.includes(K(r))&&!this.ignoredFields.includes(K(r))){let n=this.toRefractedElement([...t,`fixedFields`,K(r)],e),a=new U.MemberElement(G(r),n);this.copyMetaAndAttributes(i,a),a.classes.push(`fixed-field`),this.element.content.push(a)}else this.ignoredFields.includes(K(r))||this.element.content.push(G(i))}),this.copyMetaAndAttributes(e,this.element),pw}},Dk=class{parent;constructor({parent:e}){this.parent=e}},Ok=t({isJSONReferenceElement:()=>Ak,isJSONSchemaElement:()=>kk,isLinkDescriptionElement:()=>Mk,isMediaElement:()=>jk}),kk=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof YO||e(r)&&t(`JSONSchemaDraft4`,r)&&n(`object`,r)),Ak=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof XO||e(r)&&t(`JSONReference`,r)&&n(`object`,r)),jk=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ZO||e(r)&&t(`media`,r)&&n(`object`,r)),Mk=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof QO||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),Nk=class extends q(Ek,Dk,rk){constructor(e){super(e),this.element=new YO,this.specPath=bb([`document`,`objects`,`JSONSchema`])}get defaultDialectIdentifier(){return`http://json-schema.org/draft-04/schema#`}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,Ek.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(qx(this.parent)&&!KC(e.get(`$schema`)))this.element.setMetaProperty(`inheritedDialectIdentifier`,this.defaultDialectIdentifier);else if(kk(this.parent)&&!KC(e.get(`$schema`))){let e=Rb(K(this.parent.meta.get(`inheritedDialectIdentifier`)),K(this.parent.$schema));this.element.setMetaProperty(`inheritedDialectIdentifier`,e)}}handleSchemaIdentifier(e,t=`id`){let n=this.parent===void 0?new U.ArrayElement:G(this.parent.getMetaProperty(`ancestorsSchemaIdentifiers`,[])),r
104=K(e.get(t));cS(r)&&n.push(r),this.element.setMetaProperty(`ancestorsSchemaIdentifiers`,n)}},Pk=e=>XC(e)&&e.hasKey(`$ref`),Fk=class extends q(Tk,Dk,rk){ObjectElement(e){let t=Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`];return this.element=this.toRefractedElement(t,e),pw}ArrayElement(e){return this.element=new U.ArrayElement,this.element.classes.push(`json-schema-items`),e.forEach(e=>{let t=Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),pw}},Ik=class extends rk{ArrayElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-required`),t}},Lk=class extends Tk{specPath;ignoredFields;fieldPatternPredicate=ly;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],typeof n==`function`&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach((e,t,n)=>{if(!this.ignoredFields.includes(K(t))&&this.fieldPatternPredicate(K(t))){let r=this.specPath(e),i=this.toRefractedElement(r,e),a=new U.MemberElement(G(t),i);this.copyMetaAndAttributes(n,a),a.classes.push(`patterned-field`),this.element.content.push(a)}else this.ignoredFields.includes(K(t))||this.element.content.push(G(n))}),this.copyMetaAndAttributes(e,this.element),pw}},Rk=class extends Lk{constructor(e){super(e),this.fieldPatternPredicate=cS}},zk=class extends q(Rk,Dk,rk){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`json-schema-properties`),this.specPath=e=>Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`]}},Bk=class extends q(Rk,Dk,rk){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`json-schema-patternProperties`),this.specPath=e=>Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`]}},Vk=class extends q(Rk,Dk,rk){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`json-schema-dependencies`),this.specPath=e=>Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`]}},Hk=class extends rk{ArrayElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-enum`),t}},Uk=class extends rk{StringElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-type`),t}ArrayElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-type`),t}},Wk=class extends q(Tk,Dk,rk){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`json-schema-allOf`)}ArrayElement(e){return e.forEach(e=>{let t=Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),pw}},Gk=class extends q(Tk,Dk,rk){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`json-schema-anyOf`)}ArrayElement(e){return e.forEach(e=>{let t=Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),pw}},Kk=class extends q(Tk,Dk,rk){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`json-schema-oneOf`)}ArrayElement(e){return e.forEach(e=>{let t=Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),pw}},qk=class extends q(Rk,Dk,rk){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`json-schema-definitions`),this.specPath=e=>Pk(e)?[`document`,`objects`,`JSONReference`]:[`document`,`objects`,`JSONSchema`]}},Jk=class extends q(Tk,Dk,rk){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`json-schema-links`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`LinkDescription`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),pw}},Yk=class extends q(Ek,rk){constructor(e){super(e),this.element=new XO,this.specPath=bb([`document`,`objects`,`JSONReference`])}ObjectElement(e){let t=Ek.prototype.ObjectElement.call(this,e);return KC(this.element.$ref)&&this.element.classes.push(`reference-element`),t}},Xk=class extends rk{StringElement(e){let t=this.enter(e);return this.element.classes.push(`reference-value`),t}},Zk=class extends Tk{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){let t=CS(this.alternator.map(({predicate:e,specPath:t})=>fx(e,bb(t),Kx)))(e);return this.element=this.toRefractedElement(t,e),pw}},Qk=class extends Zk{constructor(e){super(e),this.alternator=[{predicate:Pk,specPath:[`document`,`objects`,`JSONReference`]},{predicate:uy,specPath:[`document`,`objects`,`JSONSchema`]}]}},$k=class extends q(Ek,rk){constructor(e){super(e),this.element=new ZO,this.specPath=bb([`document`,`objects`,`Media`])}},eA=class extends q(Ek,rk){constructor(e){super(e),this.element=new QO,this.specPath=bb([`document`,`objects`,`LinkDescription`])}},tA={visitors:{value:rk,JSONSchemaOrJSONReferenceVisitor:Qk,document:{objects:{JSONSchema:{$visitor:Nk,fixedFields:{id:{$ref:`#/visitors/value`}
vendor: 4,285 bytes, line 104
104,$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:Qk,items:Fk,maxItems:{$ref:`#/visitors/value`},minItems:{$ref:`#/visitors/value`},uniqueItems:{$ref:`#/visitors/value`},maxProperties:{$ref:`#/visitors/value`},minProperties:{$ref:`#/visitors/value`},required:Ik,properties:zk,additionalProperties:Qk,patternProperties:Bk,dependencies:Vk,enum:Hk,type:Uk,allOf:Wk,anyOf:Gk,oneOf:Kk,not:Qk,definitions:qk,title:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},default:{$ref:`#/visitors/value`},format:{$ref:`#/visitors/value`},base:{$ref:`#/visitors/value`},links:Jk,media:{$ref:`#/visitors/document/objects/Media`},readOnly:{$ref:`#/visitors/value`}}},JSONReference:{$visitor:Yk,fixedFields:{$ref:Xk}},Media:{$visitor:$k,fixedFields:{binaryEncoding:{$ref:`#/visitors/value`},type:{$ref:`#/visitors/value`}}},LinkDescription:{$visitor:eA,fixedFields:{href:{$ref:`#/visitors/value`},rel:{$ref:`#/visitors/value`},title:{$ref:`#/visitors/value`},targetSchema:Qk,mediaType:{$ref:`#/visitors/value`},method:{$ref:`#/visitors/value`},encType:{$ref:`#/visitors/value`},schema:Qk}}}}}},nA=()=>{let e=uw($O);return{predicates:{...Ok,isStringElement:KC},namespace:e}},rA=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=tA}={})=>{let i=(0,U.refract)(e),a=Sw(r),o=new(kx(t,a))({specObj:a});return Pw(i,o),Iw(o.element,n,{toolboxCreator:nA,visitorOptions:{keyMap:tk,nodeTypeGetter:ek}})},iA=e=>(t,n={})=>rA(t,{specPath:e,...n});YO.refract=iA([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),XO.refract=iA([`visitors`,`document`,`objects`,`JSONReference`,`$visitor`]),ZO.refract=iA([`visitors`,`document`,`objects`,`Media`,`$visitor`]),QO.refract=iA([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var aA=class extends YO{constructor(e,t,n){super(e,t,n),this.element=`schema`,this.classes.push(`json-schema-draft-4`)}get idProp(){throw new sy(`idProp getter in Schema class is not not supported.`)}set idProp(e){throw new sy(`idProp setter in Schema class is not not supported.`)}get $schema(){throw new sy(`$schema getter in Schema class is not not supported.`)}set $schema(e){throw new sy(`$schema setter in Schema class is not not supported.`)}get additionalItems(){return this.get(`additionalItems`)}set additionalItems(e){this.set(`additionalItems`,e)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get additionalProperties(){return this.get(`additionalProperties`)}set additionalProperties(e){this.set(`additionalProperties`,e)}get patternProperties(){throw new sy(`patternProperties getter in Schema class is not not supported.`)}set patternProperties(e){throw new sy(`patternProperties setter in Schema class is not not supported.`)}get dependencies(){throw new sy(`dependencies getter in Schema class is not not supported.`)}set dependencies(e){throw new sy(`dependencies setter in Schema class is not not supported.`)}get type(){return this.get(`type`)}set type(e){this.set(`type`,e)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get definitions(){throw new sy(`definitions getter in Schema class is not not supported.`)}set definitions(e){throw new sy(`definitions setter in Schema class is not not supported.`)}get base(){throw new sy(`base getter in Schema class is not not supported.`)}set base(e){throw new sy(`base setter in Schema class is not not supported.`)}get links(){throw new sy(`links getter in Schema class is not not supported.`)}set links(e){throw new sy(`links setter in Schema class is not not supported.`)}get media(){throw new sy(`media getter in Schema class is not not supported.`)}set media(e){throw new sy(`media setter in Schema class is not not supported.`)}get nullable(){return this.get(`nullable`)}set nullable(e){this.set(`nullable`,e)}get discriminator(){return this.get(`discriminator`)}set discriminator(e){this.set(`discriminator`,e)}get writeOnly(){return this.get(`writeOnly`)}set writeOnly(e){this.set(`writeOnly`,e)}
104get xml(){return this.get(`xml`)}set xml(e){this.set(`xml`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}get deprecated(){return this.get(`deprecated`)}set deprecated(e){this.set(`deprecated`,e)}},oA=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`securityRequirement`}},sA=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`securityScheme`}get type(){return this.get(`type`)}set type(e){this.set(`type`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get in(){return this.get(`in`)}set in(e){this.set(`in`,e)}get scheme(){return this.get(`scheme`)}set scheme(e){this.set(`scheme`,e)}get bearerFormat(){return this.get(`bearerFormat`)}set bearerFormat(e){this.set(`bearerFormat`,e)}get flows(){return this.get(`flows`)}set flows(e){this.set(`flows`,e)}get openIdConnectUrl(){return this.get(`openIdConnectUrl`)}set openIdConnectUrl(e){this.set(`openIdConnectUrl`,e)}},cA=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`server`}get url(){return this.get(`url`)}set url(e){this.set(`url`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get variables(){return this.get(`variables`)}set variables(e){this.set(`variables`,e)}},lA=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`serverVariable`}get enum(){return this.get(`enum`)}set enum(e){this.set(`enum`,e)}get default(){return this.get(`default`)}set default(e){this.set(`default`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}},uA=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`tag`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}},dA=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`xml`}get name(){return this.get(`name`)}set name(e){this.set(`name`,e)}get namespace(){return this.get(`namespace`)}set namespace(e){this.set(`namespace`,e)}get prefix(){return this.get(`prefix`)}set prefix(e){this.set(`prefix`,e)}get attribute(){return this.get(`attribute`)}set attribute(e){this.set(`attribute`,e)}get wrapped(){return this.get(`wrapped`)}set wrapped(e){this.set(`wrapped`,e)}},fA={namespace:e=>{let{base:t}=e;return t.register(`callback`,TO),t.register(`components`,EO),t.register(`contact`,DO),t.register(`discriminator`,OO),t.register(`encoding`,kO),t.register(`example`,AO),t.register(`externalDocumentation`,jO),t.register(`header`,MO),t.register(`info`,NO),t.register(`license`,PO),t.register(`link`,FO),t.register(`mediaType`,IO),t.register(`oAuthFlow`,LO),t.register(`oAuthFlows`,RO),t.register(`openapi`,zO),t.register(`openApi3_0`,BO),t.register(`operation`,VO),t.register(`parameter`,HO),t.register(`pathItem`,UO),t.register(`paths`,WO),t.register(`reference`,GO),t.register(`requestBody`,KO),t.register(`response`,qO),t.register(`responses`,JO),t.register(`schema`,aA),t.register(`securityRequirement`,oA),t.register(`securityScheme`,sA),t.register(`server`,cA),t.register(`serverVariable`,lA),t.register(`tag`,uA),t.register(`xml`,dA),t}},pA=class e extends U.ArrayElement{static primaryClass=`servers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},mA=class e extends U.ArrayElement{static primaryClass=`security`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},hA=class e extends U.ArrayElement{static primaryClass=`tags`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},gA=class e extends U.ObjectElement{static primaryClass=`server-variables`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},_A=class e extends U.ObjectElement{static primaryClass=`components-schemas`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},vA=class e extends U.ObjectElement{static primaryClass=`components-responses`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},yA=class e extends U.ObjectElement{static primaryClass=`components-parameters`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`parameters`)}},bA=class e extends U.ObjectElement{static primaryClass=`components-examples`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`examples`)}},xA=class e extends U.ObjectElement{static primaryClass=`components-request-bodies`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},SA=class e extends U.ObjectElement{static primaryClass=`components-headers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},CA=class e extends U.ObjectElement{static primaryClass=`components-security-schemes`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},wA=class e extends U.ObjectElement{static primaryClass=`components-links`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},TA=class e extends U.ObjectElement{static primaryClass=`components-callbacks`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},EA=class e extends U.ArrayElement{static primaryClass=`path-item-servers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`servers`)}},DA=class e extends U.ArrayElement{static primaryClass=`path-item-parameters`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`parameters`)}},OA=class e extends U.ArrayElement{static primaryClass=`operation-parameters`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`parameters`)}},kA=class e extends U.ObjectElement{static primaryClass=`parameter-examples`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`examples`)}},AA=class e extends U.ObjectElement{static primaryClass=`parameter-content`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`content`)}},jA=class e extends U.ArrayElement{static primaryClass=`operation-tags`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},MA=class e extends U.ObjectElement{static primaryClass=`operation-callbacks`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},NA=class e extends U.ArrayElement{static primaryClass=`operation-security`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`security`)}},PA=class e extends U.ArrayElement{static primaryClass=`operation-servers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`servers`)}},FA=class e extends U.ObjectElement{static primaryClass=`request-body-content`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`content`)}},IA=class e extends U.ObjectElement{static primaryClass=`media-type-examples`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`examples`)}},LA=class e extends U.ObjectElement{static primaryClass=`media-type-encoding`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},RA=class e extends U.ObjectElement{static primaryClass=`encoding-headers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},zA=class e extends U.ObjectElement{static primaryClass=`response-headers`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},BA=class e extends U.ObjectElement{static primaryClass=`response-content`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`content`)}},VA=class e extends U.ObjectElement{static primaryClass=`response-links`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},HA=class e extends U.ObjectElement{static primaryClass=`discriminator-mapping`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},UA=class e extends U.ObjectElement{static primaryClass=`oauth-flow-scopes`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},WA=class e extends U.ObjectElement{static primaryClass=`link-parameters`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},GA=class e extends U.ObjectElement{static primaryClass=`header-examples`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`examples`)}},KA=class e extends U.ObjectElement{static primaryClass=`header-content`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass),this.classes.push(`content`)}},qA=e=>{if(GC(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},JA={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`],...Mw},YA=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=uT(t.meta,e.meta)),aw(e)&&Cw(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=uT(t.attributes,e.attributes))}},J=class extends YA{enter(e){return this.element=G(e),pw}},XA=class extends YA{specObj;passingOptionsNames=[`specObj`,`openApiGenericElement`,`openApiSemanticElement`];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:n,openApiSemanticElement:r,...i}){super({...i}),this.specObj=e,this.openApiGenericElement=n,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Mx(this.passingOptionsNames,this)}retrieveFixedFields(e){let t=kx([`visitors`,...e,`fixedFields`],this.specObj);return typeof t==`object`&&t?Object.keys(t):[]}retrieveVisitor(e){return jx(eS,[`visitors`,...e],this.specObj)?kx([`visitors`,...e],this.specObj):kx([`visitors`,...e,`$visitor`],this.specObj)}retrieveVisitorInstance(e,t={}){let n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){let r=this.retrieveVisitorInstance(e,n);return r instanceof J&&r?.constructor===J?G(t):(Pw(t,r,n),r.element)}},ZA=e=>XC(e)&&e.hasKey(`$ref`),QA=XC,$A=XC,ej=e=>
104KC(e.key)&&Vx(`x-`,K(e.key)),tj=class extends XA{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=ej;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],typeof n==`boolean`&&(this.canSupportSpecificationExtensions=n),typeof r==`function`&&(this.specificationExtensionPredicate=r)}ObjectElement(e){let t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach((e,r,i)=>{if(KC(r)&&n.includes(K(r))&&!this.ignoredFields.includes(K(r))){let n=this.toRefractedElement([...t,`fixedFields`,K(r)],e),a=new U.MemberElement(G(r),n);this.copyMetaAndAttributes(i,a),a.classes.push(`fixed-field`),this.element.content.push(a)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(i)){let e=this.toRefractedElement([`document`,`extension`],i);this.element.content.push(e)}else this.ignoredFields.includes(K(r))||this.element.content.push(G(i))}),this.copyMetaAndAttributes(e,this.element),pw}},nj=class extends q(tj,J){constructor(e){super(e),this.element=new BO,this.specPath=bb([`document`,`objects`,`OpenApi`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return tj.prototype.ObjectElement.call(this,e)}},rj=class extends q(XA,J){StringElement(e){let t=new zO(K(e));return this.copyMetaAndAttributes(e,t),this.element=t,pw}},ij=class extends XA{MemberElement(e){return this.element=G(e),this.element.classes.push(`specification-extension`),pw}},aj=class extends q(tj,J){constructor(e){super(e),this.element=new NO,this.specPath=bb([`document`,`objects`,`Info`]),this.canSupportSpecificationExtensions=!0}},oj=class extends J{StringElement(e){let t=super.enter(e);return this.element.classes.push(`api-version`),this.element.classes.push(`version`),t}},sj=class extends q(tj,J){constructor(e){super(e),this.element=new DO,this.specPath=bb([`document`,`objects`,`Contact`]),this.canSupportSpecificationExtensions=!0}},cj=class extends q(tj,J){constructor(e){super(e),this.element=new PO,this.specPath=bb([`document`,`objects`,`License`]),this.canSupportSpecificationExtensions=!0}},lj=class extends q(tj,J){constructor(e){super(e),this.element=new FO,this.specPath=bb([`document`,`objects`,`Link`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=tj.prototype.ObjectElement.call(this,e);return(KC(this.element.operationId)||KC(this.element.operationRef))&&this.element.classes.push(`reference-element`),t}},uj=class extends J{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},dj=class extends J{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},fj=class extends XA{specPath;ignoredFields;fieldPatternPredicate=ly;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=ej;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:r,specificationExtensionPredicate:i,...a}){super({...a}),this.specPath=e,this.ignoredFields=t||[],typeof n==`function`&&(this.fieldPatternPredicate=n),typeof r==`boolean`&&(this.canSupportSpecificationExtensions=r),typeof i==`function`&&(this.specificationExtensionPredicate=i)}ObjectElement(e){return e.forEach((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){let e=this.toRefractedElement([`document`,`extension`],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(K(t))&&this.fieldPatternPredicate(K(t))){let r=this.specPath(e),i=this.toRefractedElement(r,e),a=new U.MemberElement(G(t),i);this.copyMetaAndAttributes(n,a),a.classes.push(`patterned-field`),this.element.content.push(a)}else this.ignoredFields.includes(K(t))||this.element.content.push(G(n))}),this.copyMetaAndAttributes(e,this.element),pw}},pj=class extends fj{constructor(e){super(e),this.fieldPatternPredicate=cS}},mj=class extends q(pj,J){constructor(e){super(e),this.element=new WA,this.specPath=bb([`value`])}},hj=class extends q(tj,J){constructor(e){super(e),this.element=new cA,this.specPath=bb([`document`,`objects`,`Server`]),this.canSupportSpecificationExtensions=!0}},gj=class extends J{StringElement(e){let t=super.enter(e);return this.element.classes.push(`server-url`),t}},_j=class extends q(XA,J){constructor(e){super(e),this.element=new pA}
104ArrayElement(e){return e.forEach(e=>{let t=QA(e)?[`document`,`objects`,`Server`]:[`value`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),pw}},vj=class extends q(tj,J){constructor(e){super(e),this.element=new lA,this.specPath=bb([`document`,`objects`,`ServerVariable`]),this.canSupportSpecificationExtensions=!0}},yj=class extends q(pj,J){constructor(e){super(e),this.element=new gA,this.specPath=bb([`document`,`objects`,`ServerVariable`])}},bj=class extends q(tj,J){constructor(e){super(e),this.element=new IO,this.specPath=bb([`document`,`objects`,`MediaType`]),this.canSupportSpecificationExtensions=!0}},xj=class extends XA{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){let t=CS(this.alternator.map(({predicate:e,specPath:t})=>fx(e,bb(t),Kx)))(e);return this.element=this.toRefractedElement(t,e),pw}},Sj=t({isBooleanJsonSchemaElement:()=>Uj,isCallbackElement:()=>Cj,isComponentsElement:()=>wj,isContactElement:()=>Tj,isDiscriminatorElement:()=>fte,isExampleElement:()=>Ej,isExternalDocumentationElement:()=>Dj,isHeaderElement:()=>Oj,isInfoElement:()=>kj,isLicenseElement:()=>Aj,isLinkElement:()=>jj,isMediaTypeElement:()=>Jj,isOpenApi3_0Element:()=>Nj,isOpenapiElement:()=>Mj,isOperationElement:()=>Pj,isParameterElement:()=>Fj,isPathItemElement:()=>Ij,isPathsElement:()=>Lj,isReferenceElement:()=>Rj,isRequestBodyElement:()=>zj,isResponseElement:()=>Bj,isResponsesElement:()=>Vj,isSchemaElement:()=>Hj,isSecurityRequirementElement:()=>Wj,isSecuritySchemeElement:()=>Gj,isServerElement:()=>Kj,isServerVariableElement:()=>qj,isServersElement:()=>Yj}),Cj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof TO||e(r)&&t(`callback`,r)&&n(`object`,r)),wj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof EO||e(r)&&t(`components`,r)&&n(`object`,r)),Tj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof DO||e(r)&&t(`contact`,r)&&n(`object`,r)),Ej=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof AO||e(r)&&t(`example`,r)&&n(`object`,r)),Dj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof jO||e(r)&&t(`externalDocumentation`,r)&&n(`object`,r)),Oj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof MO||e(r)&&t(`header`,r)&&n(`object`,r)),kj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof NO||e(r)&&t(`info`,r)&&n(`object`,r)),Aj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof PO||e(r)&&t(`license`,r)&&n(`object`,r)),jj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof FO||e(r)&&t(`link`,r)&&n(`object`,r)),Mj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof zO||e(r)&&t(`openapi`,r)&&n(`string`,r)),Nj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>i=>i instanceof BO||e(i)&&t(`openApi3_0`,i)&&n(`object`,i)&&r(`api`,i)),Pj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof VO||e(r)&&t(`operation`,r)&&n(`object`,r)),Fj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof HO||e(r)&&t(`parameter`,r)&&n(`object`,r)),Ij=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof UO||e(r)&&t(`pathItem`,r)&&n(`object`,r)),Lj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof WO||e(r)&&t(`paths`,r)&&n(`object`,r)),Rj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof GO||e(r)&&t(`reference`,r)&&n(`object`,r)),zj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof KO||e(r)&&t(`requestBody`,r)&&n(`object`,r)),Bj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qO||e(r)&&t(`response`,r)&&n(`object`,r)),Vj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof JO||e(r)&&t(`responses`,r)&&n(`object`,r)),Hj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof aA||e(r)&&t(`schema`,r)&&n(`object`,r)),Uj=e=>YC(e)&&e.classes.includes(`boolean-json-schema`),Wj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oA||e(r)&&t(`securityRequirement`,r)&&n(`object`,r)),Gj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof sA||e(r)&&t(`securityScheme`,r)&&n(`object`,r)),Kj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof cA||e(r)&&t(`server`,r)&&n(`object`,r)),qj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof lA||e(r)&&t(`serverVariable`,r)&&n(`object`,r)),Jj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof IO||e(r)&&t(`mediaType`,r)&&n(`object`,r)),Yj=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>i=>i instanceof pA||e(i)&&t(`array`,i)&&n(`array`,i)&&r(`servers`,i)),fte=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof OO||e(r)&&t(`discriminator`,r)&&n(`object`,r)),pte=class extends q(xj,J){constructor(e){super(e),this.alternator=[{predicate:ZA,specPath:[`document`,`objects`,`Reference`]},{predicate:uy,specPath:[`document`,`objects`,`Schema`]}]}ObjectElement(e){let t=xj.prototype.enter.call(this,e);return Rj(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}},Xj=class extends q(pj,J){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`examples`),this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Example`],this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);
104return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`example`)}),t}},mte=class extends Xj{constructor(e){super(e),this.element=new IA}},hte=class extends q(pj,J){constructor(e){super(e),this.element=new LA,this.specPath=bb([`document`,`objects`,`Encoding`])}},gte=class extends q(pj,J){constructor(e){super(e),this.element=new oA,this.specPath=bb([`value`])}},_te=class extends q(XA,J){constructor(e){super(e),this.element=new mA}ArrayElement(e){return e.forEach(e=>{if(XC(e)){let t=this.toRefractedElement([`document`,`objects`,`SecurityRequirement`],e);this.element.push(t)}else this.element.push(G(e))}),this.copyMetaAndAttributes(e,this.element),pw}},vte=class extends q(tj,J){constructor(e){super(e),this.element=new EO,this.specPath=bb([`document`,`objects`,`Components`]),this.canSupportSpecificationExtensions=!0}},yte=class extends q(tj,J){constructor(e){super(e),this.element=new uA,this.specPath=bb([`document`,`objects`,`Tag`]),this.canSupportSpecificationExtensions=!0}},bte=class extends q(tj,J){constructor(e){super(e),this.element=new GO,this.specPath=bb([`document`,`objects`,`Reference`]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){let t=tj.prototype.ObjectElement.call(this,e);return KC(this.element.$ref)&&this.element.classes.push(`reference-element`),t}},xte=class extends J{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},Ste=class extends q(tj,J){constructor(e){super(e),this.element=new HO,this.specPath=bb([`document`,`objects`,`Parameter`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=tj.prototype.ObjectElement.call(this,e);return XC(this.element.contentProp)&&this.element.contentProp.filter(Jj).forEach((e,t)=>{e.setMetaProperty(`media-type`,K(t))}),t}},Cte=class extends q(xj,J){constructor(e){super(e),this.alternator=[{predicate:ZA,specPath:[`document`,`objects`,`Reference`]},{predicate:uy,specPath:[`document`,`objects`,`Schema`]}]}ObjectElement(e){let t=xj.prototype.enter.call(this,e);return Rj(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}},wte=class extends q(tj,J){constructor(e){super(e),this.element=new MO,this.specPath=bb([`document`,`objects`,`Header`]),this.canSupportSpecificationExtensions=!0}},Tte=class extends q(xj,J){constructor(e){super(e),this.alternator=[{predicate:ZA,specPath:[`document`,`objects`,`Reference`]},{predicate:uy,specPath:[`document`,`objects`,`Schema`]}]}ObjectElement(e){let t=xj.prototype.enter.call(this,e);return Rj(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}},Ete=class extends Xj{constructor(e){super(e),this.element=new GA}},Zj=class extends q(pj,J){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`content`),this.specPath=bb([`document`,`objects`,`MediaType`])}},Dte=class extends Zj{constructor(e){super(e),this.element=new KA}},Ote=class extends q(tj,J){constructor(e){super(e),this.element=new aA,this.specPath=bb([`document`,`objects`,`Schema`]),this.canSupportSpecificationExtensions=!0}},Qj=tA.visitors.document.objects.JSONSchema.fixedFields.allOf,kte=class extends Qj{ArrayElement(e){let t=Qj.prototype.ArrayElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},$j=tA.visitors.document.objects.JSONSchema.fixedFields.anyOf,Ate=class extends $j{ArrayElement(e){let t=$j.prototype.ArrayElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},eM=tA.visitors.document.objects.JSONSchema.fixedFields.oneOf,jte=class extends eM{ArrayElement(e){let t=eM.prototype.ArrayElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},tM=tA.visitors.document.objects.JSONSchema.fixedFields.items,Mte=class extends tM{ObjectElement(e){let t=tM.prototype.ObjectElement.call(this,e);return Rj(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}ArrayElement(e){return this.enter(e)}},nM=tA.visitors.document.objects.JSONSchema.fixedFields.properties,Nte=class extends nM{ObjectElement(e){let t=nM.prototype.ObjectElement.call(this,e);
104return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},Pte=tA.visitors.document.objects.JSONSchema.fixedFields.type,Fte=class extends Pte{ArrayElement(e){return this.enter(e)}},rM=tA.visitors.JSONSchemaOrJSONReferenceVisitor,iM=class extends rM{ObjectElement(e){let t=rM.prototype.enter.call(this,e);return Rj(this.element)&&this.element.setMetaProperty(`referenced-element`,`schema`),t}},Ite=class extends q(tj,J){constructor(e){super(e),this.element=new OO,this.specPath=bb([`document`,`objects`,`Discriminator`]),this.canSupportSpecificationExtensions=!1}},Lte=class extends q(pj,J){constructor(e){super(e),this.element=new HA,this.specPath=bb([`value`])}},Rte=class extends q(tj,J){constructor(e){super(e),this.element=new dA,this.specPath=bb([`document`,`objects`,`XML`]),this.canSupportSpecificationExtensions=!0}},zte=class extends Xj{constructor(e){super(e),this.element=new kA}},Bte=class extends Zj{constructor(e){super(e),this.element=new AA}},Vte=class extends q(pj,J){constructor(e){super(e),this.element=new _A,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Schema`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`schema`)}),t}},Hte=class extends q(pj,J){constructor(e){super(e),this.element=new vA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Response`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`response`)}),this.element.filter(Bj).forEach((e,t)=>{e.setMetaProperty(`http-status-code`,K(t))}),t}},Ute=class extends q(pj,J){constructor(e){super(e),this.element=new yA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Parameter`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`parameter`)}),t}},Wte=class extends q(pj,J){constructor(e){super(e),this.element=new bA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Example`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`example`)}),t}},Gte=class extends q(pj,J){constructor(e){super(e),this.element=new xA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`RequestBody`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`requestBody`)}),t}},Kte=class extends q(pj,J){constructor(e){super(e),this.element=new SA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Header`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`header`)}),this.element.filter(Oj).forEach((e,t)=>{e.setMetaProperty(`header-name`,K(t))}),t}},qte=class extends q(pj,J){constructor(e){super(e),this.element=new CA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`SecurityScheme`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`securityScheme`)}),t}},Jte=class extends q(pj,J){constructor(e){super(e),this.element=new wA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Link`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`link`)}),t}},Yte=class extends q(pj,J){constructor(e){super(e),this.element=new TA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Callback`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`callback`)}),t}},Xte=class extends q(tj,J){constructor(e){super(e),this.element=new AO,this.specPath=bb([`document`,`objects`,`Example`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=tj.prototype.ObjectElement.call(this,e);return KC(this.element.externalValue)&&this.element.classes.push(`reference-element`),t}},Zte=class extends J{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},Qte=class extends q(tj,J){constructor(e){super(e),this.element=new jO,this.specPath=bb([`document`,`objects`,`ExternalDocumentation`]),this.canSupportSpecificationExtensions=!0}},$te=class extends q(tj,J){constructor(e){super(e),this.element=new kO,this.specPath=bb([`document`,`objects`,`Encoding`]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){let t=tj.prototype.ObjectElement.call(this,e);return XC(this.element.headers)&&this.element.headers.filter(Oj).forEac
104h((e,t)=>{e.setMetaProperty(`header-name`,K(t))}),t}},ene=class extends q(pj,J){constructor(e){super(e),this.element=new RA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Header`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`header`)}),this.element.forEach((e,t)=>{if(!Oj(e))return;let n=K(t);e.setMetaProperty(`headerName`,n)}),t}},tne=class extends q(fj,J){constructor(e){super(e),this.element=new WO,this.specPath=bb([`document`,`objects`,`PathItem`]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=uy}ObjectElement(e){let t=fj.prototype.ObjectElement.call(this,e);return this.element.filter(Ij).forEach((e,t)=>{t.classes.push(`openapi-path-template`),t.classes.push(`path-template`),e.setMetaProperty(`path`,G(t))}),t}},nne=class extends q(tj,J){constructor(e){super(e),this.element=new KO,this.specPath=bb([`document`,`objects`,`RequestBody`])}ObjectElement(e){let t=tj.prototype.ObjectElement.call(this,e);return XC(this.element.contentProp)&&this.element.contentProp.filter(Jj).forEach((e,t)=>{e.setMetaProperty(`media-type`,K(t))}),t}},rne=class extends Zj{constructor(e){super(e),this.element=new FA}},ine=class extends q(fj,J){constructor(e){super(e),this.element=new TO,this.specPath=bb([`document`,`objects`,`PathItem`]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Ij).forEach((e,t)=>{e.setMetaProperty(`runtime-expression`,K(t))}),t}},ane=class extends q(tj,J){constructor(e){super(e),this.element=new qO,this.specPath=bb([`document`,`objects`,`Response`])}ObjectElement(e){let t=tj.prototype.ObjectElement.call(this,e);return XC(this.element.contentProp)&&this.element.contentProp.filter(Jj).forEach((e,t)=>{e.setMetaProperty(`media-type`,K(t))}),XC(this.element.headers)&&this.element.headers.filter(Oj).forEach((e,t)=>{e.setMetaProperty(`header-name`,K(t))}),t}},one=class extends q(pj,J){constructor(e){super(e),this.element=new zA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Header`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`header`)}),this.element.forEach((e,t)=>{if(!Oj(e))return;let n=K(t);e.setMetaProperty(`header-name`,n)}),t}},sne=class extends Zj{constructor(e){super(e),this.element=new BA}},cne=class extends q(pj,J){constructor(e){super(e),this.element=new VA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Link`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`link`)}),t}},aM=class extends q(tj,fj){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){let{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;let t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...Vb(e.keys(),t)],tj.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,fj.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return pw}},lne=class extends q(aM,J){constructor(e){super(e),this.element=new JO,this.specPathFixedFields=bb([`document`,`objects`,`Responses`]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Response`],this.fieldPatternPredicate=e=>RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ix(100,600).join(`|`)})$`).test(String(e))}ObjectElement(e){let t=aM.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`response`)}),this.element.filter(Bj).forEach((e,t)=>{let n=G(t);this.fieldPatternPredicate(K(n))&&e.setMetaProperty(`http-status-code`,n)}),t}},une=class extends q(xj,J){constructor(e){super(e),this.alternator=[{predicate:ZA,specPath:[`document`,`objects`,`Reference`]},{predicate:uy,specPath:[`document`,`objects`,`Response`]}]}ObjectElement(e){let t=xj.prototype.enter.call(this,e);return Rj(this.element)?this.element.setMetaProperty(`referenced-element`,`response`):Bj(this.element)&&this.element.setMetaProperty(`http-status-code`,`default`),t}},dne=class extends q(tj,J){constructor(e){super(e),this.element=new VO,this.specPath=bb([`document`,`objects`,`Operation`])}},fne=class extends J{constructor(e){super(e),this.element=new jA}ArrayElement(e){return this.element=this.element.concat(G(e)),pw}},oM=class extends q(XA,J){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`parameters`)}
104ArrayElement(e){return e.forEach(e=>{let t=ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Parameter`],n=this.toRefractedElement(t,e);Rj(n)&&n.setMetaProperty(`referenced-element`,`parameter`),this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),pw}},pne=class extends oM{constructor(e){super(e),this.element=new OA}},mne=class extends xj{constructor(e){super(e),this.alternator=[{predicate:ZA,specPath:[`document`,`objects`,`Reference`]},{predicate:uy,specPath:[`document`,`objects`,`RequestBody`]}]}ObjectElement(e){let t=xj.prototype.enter.call(this,e);return Rj(this.element)&&this.element.setMetaProperty(`referenced-element`,`requestBody`),t}},hne=class extends q(pj,J){specPath;constructor(e){super(e),this.element=new MA,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`Callback`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(Rj).forEach(e=>{e.setMetaProperty(`referenced-element`,`callback`)}),t}},gne=class extends q(XA,J){constructor(e){super(e),this.element=new NA}ArrayElement(e){return e.forEach(e=>{let t=XC(e)?[`document`,`objects`,`SecurityRequirement`]:[`value`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),pw}},_ne=class extends _j{constructor(e){super(e),this.element=new PA}},vne=class extends q(tj,J){constructor(e){super(e),this.element=new UO,this.specPath=bb([`document`,`objects`,`PathItem`])}ObjectElement(e){let t=tj.prototype.ObjectElement.call(this,e);return this.element.filter(Pj).forEach((e,t)=>{let n=G(t);n.content=K(n).toUpperCase(),e.setMetaProperty(`http-method`,n)}),KC(this.element.$ref)&&this.element.classes.push(`reference-element`),t}},yne=class extends J{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},bne=class extends _j{constructor(e){super(e),this.element=new EA}},xne=class extends oM{constructor(e){super(e),this.element=new DA}},Sne=class extends q(tj,J){constructor(e){super(e),this.element=new sA,this.specPath=bb([`document`,`objects`,`SecurityScheme`]),this.canSupportSpecificationExtensions=!0}},Cne=class extends q(tj,J){constructor(e){super(e),this.element=new RO,this.specPath=bb([`document`,`objects`,`OAuthFlows`]),this.canSupportSpecificationExtensions=!0}},wne=class extends q(tj,J){constructor(e){super(e),this.element=new LO,this.specPath=bb([`document`,`objects`,`OAuthFlow`]),this.canSupportSpecificationExtensions=!0}},Tne=class extends q(pj,J){constructor(e){super(e),this.element=new UA,this.specPath=bb([`value`])}},Ene=class extends q(XA,J){constructor(e){super(e),this.element=new hA}ArrayElement(e){return e.forEach(e=>{let t=$A(e)?[`document`,`objects`,`Tag`]:[`value`],n=this.toRefractedElement(t,e);this.element.push(n)}),this.copyMetaAndAttributes(e,this.element),pw}},{fixedFields:sM}=tA.visitors.document.objects.JSONSchema,Y={visitors:{value:J,document:{objects:{OpenApi:{$visitor:nj,fixedFields:{openapi:rj,info:{$ref:`#/visitors/document/objects/Info`},servers:_j,paths:{$ref:`#/visitors/document/objects/Paths`},components:{$ref:`#/visitors/document/objects/Components`},security:_te,tags:Ene,externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`}}},Info:{$visitor:aj,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:oj}},Contact:{$visitor:sj,fixedFields:{name:{$ref:`#/visitors/value`},url:{$ref:`#/visitors/value`},email:{$ref:`#/visitors/value`}}},License:{$visitor:cj,fixedFields:{name:{$ref:`#/visitors/value`},url:{$ref:`#/visitors/value`}}},Server:{$visitor:hj,fixedFields:{url:gj,description:{$ref:`#/visitors/value`},variables:yj}},ServerVariable:{$visitor:vj,fixedFields:{enum:{$ref:`#/visitors/value`},default:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`}}},Components:{$visitor:vte,fixedFields:{schemas:Vte,responses:Hte,parameters:Ute,examples:Wte,requestBodies:Gte,headers:Kte,securitySchemes:qte,links:Jte,callbacks:Yte}},Paths:{$visitor:tne},PathItem:{$visitor:vne,fixedFields:{$ref:yne,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:bne,parameters:xne}},Operation:{$visitor:dne,fixedFields:{tags:fne,summary:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`},operationId:{$ref:`#/visitors/value`},parameters:pne,requestBody:mne,responses:{$ref:`#/visitors/document/objects/Responses`},callbacks:hne,deprecated:{$ref:`#/visitors/value`},security:gne,servers:_ne}}
vendor: 7,021 bytes, line 104
104,ExternalDocumentation:{$visitor:Qte,fixedFields:{description:{$ref:`#/visitors/value`},url:{$ref:`#/visitors/value`}}},Parameter:{$visitor:Ste,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:Cte,example:{$ref:`#/visitors/value`},examples:zte,content:Bte}},RequestBody:{$visitor:nne,fixedFields:{description:{$ref:`#/visitors/value`},content:rne,required:{$ref:`#/visitors/value`}}},MediaType:{$visitor:bj,fixedFields:{schema:pte,example:{$ref:`#/visitors/value`},examples:mte,encoding:hte}},Encoding:{$visitor:$te,fixedFields:{contentType:{$ref:`#/visitors/value`},headers:ene,style:{$ref:`#/visitors/value`},explode:{$ref:`#/visitors/value`},allowReserved:{$ref:`#/visitors/value`}}},Responses:{$visitor:lne,fixedFields:{default:une}},Response:{$visitor:ane,fixedFields:{description:{$ref:`#/visitors/value`},headers:one,content:sne,links:cne}},Callback:{$visitor:ine},Example:{$visitor:Xte,fixedFields:{summary:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},value:{$ref:`#/visitors/value`},externalValue:Zte}},Link:{$visitor:lj,fixedFields:{operationRef:uj,operationId:dj,parameters:mj,requestBody:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},server:{$ref:`#/visitors/document/objects/Server`}}},Header:{$visitor:wte,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:Tte,example:{$ref:`#/visitors/value`},examples:Ete,content:Dte}},Tag:{$visitor:yte,fixedFields:{name:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`},externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`}}},Reference:{$visitor:bte,fixedFields:{$ref:xte}},JSONSchema:{$ref:`#/visitors/document/objects/Schema`},JSONReference:{$ref:`#/visitors/document/objects/Reference`},Schema:{$visitor:Ote,fixedFields:{title:sM.title,multipleOf:sM.multipleOf,maximum:sM.maximum,exclusiveMaximum:sM.exclusiveMaximum,minimum:sM.minimum,exclusiveMinimum:sM.exclusiveMinimum,maxLength:sM.maxLength,minLength:sM.minLength,pattern:sM.pattern,maxItems:sM.maxItems,minItems:sM.minItems,uniqueItems:sM.uniqueItems,maxProperties:sM.maxProperties,minProperties:sM.minProperties,required:sM.required,enum:sM.enum,type:Fte,allOf:kte,anyOf:Ate,oneOf:jte,not:iM,items:Mte,properties:Nte,additionalProperties:iM,description:sM.description,format:sM.format,default:sM.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:Ite,fixedFields:{propertyName:{$ref:`#/visitors/value`},mapping:Lte}},XML:{$visitor:Rte,fixedFields:{name:{$ref:`#/visitors/value`},namespace:{$ref:`#/visitors/value`},prefix:{$ref:`#/visitors/value`},attribute:{$ref:`#/visitors/value`},wrapped:{$ref:`#/visitors/value`}}},SecurityScheme:{$visitor:Sne,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:Cne,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:wne,fixedFields:{authorizationUrl:{$ref:`#/visitors/value`},tokenUrl:{$ref:`#/visitors/value`},refreshUrl:{$ref:`#/visitors/value`},scopes:Tne}},SecurityRequirement:{$visitor:gte}},extension:{$visitor:ij}}}},Dne=()=>{let e=uw(fA);return{predicates:{...Sj,isElement:GC,isStringElement:KC,isArrayElement:ZC,isObjectElement:XC,isMemberElement:QC,includesClasses:sw,hasElementSourceMap:aw},namespace:e}},One=(e,{specPath:t=[`visitors`,`document`,`objects`,`OpenApi`,`$visitor`],plugins:n=[]}={})=>{let r=(0,U.refract)(e),i=Sw(Y),a=new(kx(t,i))({specObj:i});return Pw(r,a),Iw(a.element,n,{toolboxCreator:Dne,visitorOptions:{keyMap:JA,nodeTypeGetter:qA}})},cM=e=>(t,n={})=>One(t,{specPath:e,...n});TO.refract=cM([`visitors`,`document`,`objects`,`Callback`,`$visitor`]),EO.refract=cM([`visitors`,`document`,`objects`,`Components`,`$visitor`]),DO.refract=cM([`visitors`,`document`,`objects`,`Contact`,`$visitor`]),AO.refract=cM([`visitors`,`document`,`objects`,`Example`,`$visitor`]),OO.refract=cM([`visitors`,`document`,`objects`,`Discriminator`,`$visitor`]),kO.refract=cM([`visitors`,`document`,`objects`,`Encoding`,`$visitor`]),jO.refract=cM([`visitors`,`document`,`objects`,`ExternalDocumentation`,`$visitor`]),MO.refract=cM([`visitors`,`document`,`objects`,`Header`,`$visitor`]),NO.refract=cM([`visitors`,`document`,`objects`,`Info`,`$visitor`]),PO.refract=cM([`visitors`,`document`,`objects`,`License`,`$visitor`]),FO.refract=cM([`visitors`,`document`,`objects`,`Link`,`$visitor`]),IO.refract=cM([`visitors`,`document`,`objects`,`MediaType`,`$visitor`]),LO.refract=cM([`visitors`,`document`,`objects`,`OAuthFlow`,`$visitor`]),RO.refract=cM([`visitors`,`document`,`objects`,`OAuthFlows`,`$visitor`]),zO.refract=cM([`visitors`,`document`,`objects`,`OpenApi`,`fixedFields`,`openapi`]),BO.refract=cM([`visitors`,`document`,`objects`,`OpenApi`,`$visitor`]),VO.refract=cM([`visitors`,`document`,`objects`,`Operation`,`$visitor`]),HO.refract=cM([`visitors`,`document`,`objects`,`Parameter`,`$visitor`]),UO.refract=cM([`visitors`,`document`,`objects`,`PathItem`,`$visitor`]),WO.refract=cM([`visitors`,`document`,`objects`,`Paths`,`$visitor`]),GO.refract=cM([`visitors`,`document`,`objects`,`Reference`,`$visitor`]),KO.refract=cM([`visitors`,`document`,`objects`,`RequestBody`,`$visitor`]),qO.refract=cM([`visitors`,`document`,`objects`,`Response`,`$visitor`]),JO.refract=cM([`visitors`,`document`,`objects`,`Responses`,`$visitor`]),aA.refract=cM([`visitors`,`document`,`objects`,`Schema`,`$visitor`]),oA.refract=cM([`visitors`,`document`,`objects`,`SecurityRequirement`,`$visitor`]),sA.refract=cM([`visitors`,`document`,`objects`,`SecurityScheme`,`$visitor`]),cA.refract=cM([`visitors`,`document`,`objects`,`Server`,`$visitor`]),lA.refract=cM([`visitors`,`document`,`objects`,`ServerVariable`,`$visitor`]),uA.refract=cM([`visitors`,`document`,`objects`,`Tag`,`$visitor`]),dA.refract=cM([`visitors`,`document`,`objects`,`XML`,`$visitor`]);var lM=class extends TO{}
104,uM=class extends EO{get pathItems(){return this.get(`pathItems`)}set pathItems(e){this.set(`pathItems`,e)}},dM=class extends DO{},fM=class extends OO{},pM=class extends kO{},mM=class extends AO{},hM=class extends jO{},gM=class extends MO{get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}},_M=class extends NO{get license(){return this.get(`license`)}set license(e){this.set(`license`,e)}get summary(){return this.get(`summary`)}set summary(e){this.set(`summary`,e)}},vM=class e extends U.StringElement{static default=new e(`https://spec.openapis.org/oas/3.1/dialect/base`);constructor(e,t,n){super(e,t,n),this.element=`jsonSchemaDialect`}},yM=class extends PO{get identifier(){return this.get(`identifier`)}set identifier(e){this.set(`identifier`,e)}},bM=class extends FO{},xM=class extends IO{get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}},SM=class extends LO{},CM=class extends RO{},wM=class extends zO{},TM=class extends U.ObjectElement{constructor(e,t,n){super(e,t,n),this.element=`openApi3_1`,this.classes.push(`api`)}get openapi(){return this.get(`openapi`)}set openapi(e){this.set(`openapi`,e)}get info(){return this.get(`info`)}set info(e){this.set(`info`,e)}get jsonSchemaDialect(){return this.get(`jsonSchemaDialect`)}set jsonSchemaDialect(e){this.set(`jsonSchemaDialect`,e)}get servers(){return this.get(`servers`)}set servers(e){this.set(`servers`,e)}get paths(){return this.get(`paths`)}set paths(e){this.set(`paths`,e)}get components(){return this.get(`components`)}set components(e){this.set(`components`,e)}get security(){return this.get(`security`)}set security(e){this.set(`security`,e)}get tags(){return this.get(`tags`)}set tags(e){this.set(`tags`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}get webhooks(){return this.get(`webhooks`)}set webhooks(e){this.set(`webhooks`,e)}},EM=class extends VO{get requestBody(){return this.get(`requestBody`)}set requestBody(e){this.set(`requestBody`,e)}},DM=class extends HO{get schema(){return this.get(`schema`)}set schema(e){this.set(`schema`,e)}},OM=class extends UO{get GET(){return this.get(`get`)}set GET(e){this.set(`GET`,e)}get PUT(){return this.get(`put`)}set PUT(e){this.set(`PUT`,e)}get POST(){return this.get(`post`)}set POST(e){this.set(`POST`,e)}get DELETE(){return this.get(`delete`)}set DELETE(e){this.set(`DELETE`,e)}get OPTIONS(){return this.get(`options`)}set OPTIONS(e){this.set(`OPTIONS`,e)}get HEAD(){return this.get(`head`)}set HEAD(e){this.set(`HEAD`,e)}get PATCH(){return this.get(`patch`)}set PATCH(e){this.set(`PATCH`,e)}get TRACE(){return this.get(`trace`)}set TRACE(e){this.set(`TRACE`,e)}},kM=class extends WO{},AM=class extends GO{};Object.defineProperty(AM.prototype,"description",{get(){return this.get(`description`)},set(e){this.set(`description`,e)},enumerable:!0}),Object.defineProperty(AM.prototype,"summary",{get(){return this.get(`summary`)},set(e){this.set(`summary`,e)},enumerable:!0});var jM=class extends KO{},MM=class extends qO{},NM=class extends JO{},PM=class extends YO{constructor(e,t,n){super(e,t,n),this.element=`JSONSchemaDraft6`}get idProp(){throw new sy(`id keyword from Core vocabulary has been renamed to $id.`)}set idProp(e){throw new sy(`id keyword from Core vocabulary has been renamed to $id.`)}get $id(){return this.get(`$id`)}set $id(e){this.set(`$id`,e)}get exclusiveMaximum(){return this.get(`exclusiveMaximum`)}set exclusiveMaximum(e){this.set(`exclusiveMaximum`,e)}get exclusiveMinimum(){return this.get(`exclusiveMinimum`)}set exclusiveMinimum(e){this.set(`exclusiveMinimum`,e)}get containsProp(){return this.get(`contains`)}set containsProp(e){this.set(`contains`,e)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get propertyNames(){return this.get(`propertyNames`)}set propertyNames(e){this.set(`propertyNames`,e)}get const(){return this.get(`const`)}set const(e){this.set(`const`,e)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get examples(){return this.get(`examples`)}set examples(e){this.set(`examples`,e)}},FM=class extends QO{get hrefSchema(){return this.get(`hrefSchema`)}set hrefSchema(e){this.set(`hrefSchema`,e)}get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get schema(){throw new sy(`schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.`)}set schema(e){throw new sy(`schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.`)}get submissionSchema(){return this.get(`submissionSchema`)}set submissionSchema(e){this.set(`submissionSchema`,e)}get method(){throw new sy(`method keyword from Hyper-Schema vocabulary has been removed.`)}set method(e){throw new sy(`method keyword from Hyper-Schema vocabulary has been removed.`)}get encType(){throw new sy(`encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.`)}set encType(e){throw new sy(`encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.`)}get submissionEncType(){return this.get(`submissionEncType`)}set submissionEncType(e){this.set(`submissionEncType`,e)}},IM={namespace:e=>{let{base:t}=e;return t.register(`jSONSchemaDraft6`,PM),t.register(`jSONReference`,XO),t.register(`media`,ZO),t.register(`linkDescription`,FM),t}},LM={JSONSchemaDraft6Element:[`content`],JSONReferenceElement:[`content`],MediaElement:[`content`],LinkDescriptionElement:[`content`],...Mw},RM=class extends Nk{constructor(e){super(e),this.element=new PM}get defaultDialectIdentifier(){return`http://json-schema.org/draft-06/schema#`}BooleanElement(e){let t=this.enter(e);return this.element.classes.push(`boolean-json-schema`),t}handleSchemaIdentifier(e,t=`$id`){return super.handleSchemaIdentifier(e,t)}},zM=class extends Fk{BooleanElement(e){return this.element=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e),pw}},BM=class extends rk{ArrayElement(e){let t=this.enter(e);return this.element.classes.push(`json-schema-examples`),t}},VM=class extends eA{constructor(e){super(e),this.element=new FM}},HM=jb(H([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],RM),Gb([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`id`]),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$id`],tA.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contains`],tA.visitors.JSONSchemaOrJSONReferenceVisitor),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`items`],zM),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`propertyNames`],tA.visitors.JSONSchemaOrJSONReferenceVisitor),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`const`],tA.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`examples`],BM),H([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`],VM),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`hrefSchema`],tA.visitors.JSONSchemaOrJSONReferenceVisitor),Gb([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`schema`]),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionSchema`],tA.visitors.JSONSchemaOrJSONReferenceVisitor),Gb([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`method`]),Gb([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`encType`]),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionEncType`],tA.visitors.value))(tA),UM=t({isJSONReferenceElement:()=>Ak,isJSONSchemaElement:()=>WM,isLinkDescriptionElement:()=>GM,isMediaElement:()=>jk}),WM=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof PM||e(r)&&t(`JSONSchemaDraft6`,r)&&n(`object`,r)),GM=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof FM||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),KM=()=>{let e=uw(IM);return{predicates:{...UM,isStringElement:KC},namespace:e}},qM=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=HM}={})=>{let i=(0,U.refract)(e),a=Sw(r),o=new(kx(t,a))({specObj:a});return Pw(i,o),Iw(o.element,n,{toolboxCreator:KM,visitorOptions:{keyMap:LM,nodeTypeGetter:ek}})},JM=e=>(t,n={})=>qM(t,{specPath:e,...n});PM.refract=JM([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),FM.refract=JM([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var YM=class extends PM{constructor(e,t,n){super(e,t,n),this.element=`JSONSchemaDraft7`}get $comment(){return this.get(`$comment`)}set $comment(e){this.set(`$comment`,e)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get if(){return this.get(`if`)}set if(e){this.set(`if`,e)}get then(){return this.get(`then`)}set then(e){this.set(`then`,e)}
104get else(){return this.get(`else`)}set else(e){this.set(`else`,e)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get contentEncoding(){return this.get(`contentEncoding`)}set contentEncoding(e){this.set(`contentEncoding`,e)}get contentMediaType(){return this.get(`contentMediaType`)}set contentMediaType(e){this.set(`contentMediaType`,e)}get media(){throw new sy(`media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"`)}set media(e){throw new sy(`media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"`)}get writeOnly(){return this.get(`writeOnly`)}set writeOnly(e){this.set(`writeOnly`,e)}},XM=class extends FM{get anchor(){return this.get(`anchor`)}set anchor(e){this.set(`anchor`,e)}get anchorPointer(){return this.get(`anchorPointer`)}set anchorPointer(e){this.set(`anchorPointer`,e)}get templatePointers(){return this.get(`templatePointers`)}set templatePointers(e){this.set(`templatePointers`,e)}get templateRequired(){return this.get(`templateRequired`)}set templateRequired(e){this.set(`templateRequired`,e)}get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get mediaType(){throw new sy(`mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.`)}set mediaType(e){throw new sy(`mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.`)}get targetMediaType(){return this.get(`targetMediaType`)}set targetMediaType(e){this.set(`targetMediaType`,e)}get targetHints(){return this.get(`targetHints`)}set targetHints(e){this.set(`targetHints`,e)}get description(){return this.get(`description`)}set description(e){this.set(`description`,e)}get $comment(){return this.get(`$comment`)}set $comment(e){this.set(`$comment`,e)}get hrefSchema(){return this.get(`hrefSchema`)}set hrefSchema(e){this.set(`hrefSchema`,e)}get headerSchema(){return this.get(`headerSchema`)}set headerSchema(e){this.set(`headerSchema`,e)}get submissionSchema(){return this.get(`submissionSchema`)}set submissionSchema(e){this.set(`submissionSchema`,e)}get submissionEncType(){throw new sy(`submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.`)}set submissionEncType(e){throw new sy(`submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.`)}get submissionMediaType(){return this.get(`submissionMediaType`)}set submissionMediaType(e){this.set(`submissionMediaType`,e)}},ZM={namespace:e=>{let{base:t}=e;return t.register(`jSONSchemaDraft7`,YM),t.register(`jSONReference`,XO),t.register(`linkDescription`,XM),t}},QM={JSONSchemaDraft7Element:[`content`],JSONReferenceElement:[`content`],LinkDescriptionElement:[`content`],...Mw},$M=class extends RM{constructor(e){super(e),this.element=new YM}get defaultDialectIdentifier(){return`http://json-schema.org/draft-07/schema#`}},eN=class extends VM{constructor(e){super(e),this.element=new XM}},tN=jb(H([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],$M),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$comment`],HM.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`if`],HM.visitors.JSONSchemaOrJSONReferenceVisitor),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`then`],HM.visitors.JSONSchemaOrJSONReferenceVisitor),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`else`],HM.visitors.JSONSchemaOrJSONReferenceVisitor),Gb([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`media`]),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contentEncoding`],HM.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contentMediaType`],HM.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`writeOnly`],HM.visitors.value),H([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`],eN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`anchor`],HM.visitors.value),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`anchorPointer`],HM.visitors.value),Gb([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`mediaType`]),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`targetMediaType`],HM.visitors.value),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`targetHints`],HM.visitors.value),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`description`],HM.visitors.value),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`$comment`],HM.visitors.value),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`headerSchema`],HM.visitors.JSONSchemaOrJSONReferenceVisitor),Gb([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionEncType`]),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionMediaType`],HM.visitors.value))(HM),nN=t({isJSONReferenceElement:()=>Ak,isJSONSchemaElement:()=>rN,isLinkDescriptionElement:()=>iN}),rN=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof YM||e(r)&&t(`JSONSchemaDraft7`,r)&&n(`object`,r)),iN=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof XM||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),aN=()=>{let e=uw(ZM);return{predicates:{...nN,isStringElement:KC},namespace:e}},oN=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=tN}={})=>{let i=(0,U.refract)(e),a=Sw(r),o=new(kx(t,a))({specObj:a});return Pw(i,o),Iw(o.element,n,{toolboxCreator:aN,visitorOptions:{keyMap:QM,nodeTypeGetter:ek}})},sN=e=>(t,n={})=>oN(t,{specPath:e,...n});YM.refract=sN([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),XM.refract=sN([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var cN=class extends YM{constructor(e,t,n){super(e,t,n),this.element=`JSONSchema201909`}get $vocabulary(){return this.get(`$vocabulary`)}set $vocabulary(e){this.set(`$vocabulary`,e)}
104get $anchor(){return this.get(`$anchor`)}set $anchor(e){this.set(`$anchor`,e)}get $recursiveAnchor(){return this.get(`$recursiveAnchor`)}set $recursiveAnchor(e){this.set(`$recursiveAnchor`,e)}get $recursiveRef(){return this.get(`$recursiveRef`)}set $recursiveRef(e){this.set(`$recursiveRef`,e)}get $ref(){return this.get(`$ref`)}set $ref(e){this.set(`$ref`,e)}get $defs(){return this.get(`$defs`)}set $defs(e){this.set(`$defs`,e)}get definitions(){throw new sy(`definitions keyword from Validation vocabulary has been renamed to $defs.`)}set definitions(e){throw new sy(`definitions keyword from Validation vocabulary has been renamed to $defs.`)}get not(){return this.get(`not`)}set not(e){this.set(`not`,e)}get if(){return this.get(`if`)}set if(e){this.set(`if`,e)}get then(){return this.get(`then`)}set then(e){this.set(`then`,e)}get else(){return this.get(`else`)}set else(e){this.set(`else`,e)}get dependentSchemas(){return this.get(`dependentSchemas`)}set dependentSchemas(e){this.set(`dependentSchemas`,e)}get dependencies(){throw new sy(`dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.`)}set dependencies(e){throw new sy(`dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.`)}get items(){return this.get(`items`)}set items(e){this.set(`items`,e)}get containsProp(){return this.get(`contains`)}set containsProp(e){this.set(`contains`,e)}get additionalProperties(){return this.get(`additionalProperties`)}set additionalProperties(e){this.set(`additionalProperties`,e)}get additionalItems(){return this.get(`additionalItems`)}set additionalItems(e){this.set(`additionalItems`,e)}get propertyNames(){return this.get(`propertyNames`)}set propertyNames(e){this.set(`propertyNames`,e)}get unevaluatedItems(){return this.get(`unevaluatedItems`)}set unevaluatedItems(e){this.set(`unevaluatedItems`,e)}get unevaluatedProperties(){return this.get(`unevaluatedProperties`)}set unevaluatedProperties(e){this.set(`unevaluatedProperties`,e)}get maxContains(){return this.get(`maxContains`)}set maxContains(e){this.set(`maxContains`,e)}get minContains(){return this.get(`minContains`)}set minContains(e){this.set(`minContains`,e)}get dependentRequired(){return this.get(`dependentRequired`)}set dependentRequired(e){this.set(`dependentRequired`,e)}get deprecated(){return this.get(`deprecated`)}set deprecated(e){this.set(`deprecated`,e)}get contentSchema(){return this.get(`contentSchema`)}set contentSchema(e){this.set(`contentSchema`,e)}},lN=class extends XM{get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get hrefSchema(){return this.get(`hrefSchema`)}set hrefSchema(e){this.set(`hrefSchema`,e)}get headerSchema(){return this.get(`headerSchema`)}set headerSchema(e){this.set(`headerSchema`,e)}get submissionSchema(){return this.get(`submissionSchema`)}set submissionSchema(e){this.set(`submissionSchema`,e)}},uN={namespace:e=>{let{base:t}=e;return t.register(`jSONSchema201909`,cN),t.register(`linkDescription`,lN),t}},dN={JSONSchema201909Element:[`content`],LinkDescriptionElement:[`content`],...Mw},fN=class extends $M{constructor(e){super(e),this.element=new cN}get defaultDialectIdentifier(){return`https://json-schema.org/draft/2019-09/schema`}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;let t=Ek.prototype.ObjectElement.call(this,e);return KC(this.element.$ref)&&(this.element.classes.push(`reference-element`),this.element.setMetaProperty(`referenced-element`,`schema`)),t}},pN=class extends rk{ObjectElement(e){let t=super.enter(e);return this.element.classes.push(`json-schema-$vocabulary`),t}},mN=class extends rk{StringElement(e){let t=super.enter(e);return this.element.classes.push(`reference-value`),t}},hN=class extends q(Rk,Dk,rk){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`json-schema-$defs`),this.specPath=bb([`document`,`objects`,`JSONSchema`])}},gN=class extends q(Tk,Dk,rk){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`json-schema-allOf`)}
104ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),pw}},_N=class extends q(Tk,Dk,rk){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`json-schema-anyOf`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),pw}},vN=class extends q(Tk,Dk,rk){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`json-schema-oneOf`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),pw}},yN=class extends q(Rk,Dk,rk){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`json-schema-dependentSchemas`),this.specPath=bb([`document`,`objects`,`JSONSchema`])}},bN=class extends q(Tk,Dk,rk){ObjectElement(e){return this.element=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e),pw}ArrayElement(e){return this.element=new U.ArrayElement,this.element.classes.push(`json-schema-items`),e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),pw}BooleanElement(e){return this.element=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e),pw}},xN=class extends q(Rk,Dk,rk){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`json-schema-properties`),this.specPath=bb([`document`,`objects`,`JSONSchema`])}},SN=class extends q(Rk,Dk,rk){constructor(e){super(e),this.element=new U.ObjectElement,this.element.classes.push(`json-schema-patternProperties`),this.specPath=bb([`document`,`objects`,`JSONSchema`])}},CN=class extends rk{ObjectElement(e){let t=super.enter(e);return this.element.classes.push(`json-schema-dependentRequired`),t}},wN=class extends eN{constructor(e){super(e),this.element=new lN}},TN=jb(H([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$vocabulary`],pN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$anchor`],tN.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$recursiveAnchor`],tN.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$recursiveRef`],tN.visitors.value),Gb([`visitors`,`document`,`objects`,`JSONReference`,`$visitor`]),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$ref`],mN),Gb([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`definitions`]),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$defs`],hN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`allOf`],gN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`anyOf`],_N),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`oneOf`],vN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`not`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`if`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`then`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`else`],fN),Gb([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`dependencies`]),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`dependentSchemas`],yN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`items`],bN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contains`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`properties`],xN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`patternProperties`],SN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`additionalProperties`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`additionalItems`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`propertyNames`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`unevaluatedItems`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`unevaluatedProperties`],fN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`maxContains`],tN.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`minContains`],tN.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`dependentRequired`],CN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`deprecated`],tN.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contentSchema`],fN),H([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`],wN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`targetSchema`],fN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`hrefSchema`],fN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`headerSchema`],fN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionSchema`],fN))(tN),EN=t({isJSONSchemaElement:()=>DN,isLinkDescriptionElement:()=>ON}),DN=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof cN||e(r)&&t(`JSONSchema201909`,r)&&n(`object`,r)),ON=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof lN||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),kN=()=>{let e=uw(uN);return{predicates:{...EN,isStringElement:KC},namespace:e}},AN=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=TN}={})=>{let i=(0,U.refract)(e),a=Sw(r),o=new(kx(t,a))({specObj:a});return Pw(i,o),Iw(o.element,n,{toolboxCreator:kN,visitorOptions:{keyMap:dN,nodeTypeGetter:ek}})},jN=e=>(t,n={})=>AN(t,{specPath:e,...n});cN.refract=jN([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),lN.refract=jN([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var MN=class extends cN{constructor(e,t,n){super(e,t,n),this.element=`JSONSchema202012`}get $dynamicAnchor(){return this.get(`$dynamicAnchor`)}set $dynamicAnchor(e){this.set(`$dynamicAnchor`,e)}
104get $recursiveAnchor(){throw new sy(`$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.`)}set $recursiveAnchor(e){throw new sy(`$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.`)}get $dynamicRef(){return this.get(`$dynamicRef`)}set $dynamicRef(e){this.set(`$dynamicRef`,e)}get $recursiveRef(){throw new sy(`$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.`)}set $recursiveRef(e){throw new sy(`$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.`)}get prefixItems(){return this.get(`prefixItems`)}set prefixItems(e){this.set(`prefixItems`,e)}},NN=class extends lN{get targetSchema(){return this.get(`targetSchema`)}set targetSchema(e){this.set(`targetSchema`,e)}get hrefSchema(){return this.get(`hrefSchema`)}set hrefSchema(e){this.set(`hrefSchema`,e)}get headerSchema(){return this.get(`headerSchema`)}set headerSchema(e){this.set(`headerSchema`,e)}get submissionSchema(){return this.get(`submissionSchema`)}set submissionSchema(e){this.set(`submissionSchema`,e)}},PN={namespace:e=>{let{base:t}=e;return t.register(`jSONSchema202012`,MN),t.register(`linkDescription`,NN),t}},FN={JSONSchema202012Element:[`content`],LinkDescriptionElement:[`content`],...Mw},IN=class extends fN{constructor(e){super(e),this.element=new MN}get defaultDialectIdentifier(){return`https://json-schema.org/draft/2020-12/schema`}},LN=class extends q(Tk,Dk,rk){constructor(e){super(e),this.element=new U.ArrayElement,this.element.classes.push(`json-schema-prefixItems`)}ArrayElement(e){return e.forEach(e=>{let t=this.toRefractedElement([`document`,`objects`,`JSONSchema`],e);this.element.push(t)}),this.copyMetaAndAttributes(e,this.element),pw}},RN=class extends wN{constructor(e){super(e),this.element=new NN}},zN=jb(H([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],IN),Gb([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$recursiveAnchor`]),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$dynamicAnchor`],TN.visitors.value),Gb([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$recursiveRef`]),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`$dynamicRef`],TN.visitors.value),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`not`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`if`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`then`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`else`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`prefixItems`],LN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`items`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contains`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`additionalProperties`],IN),Gb([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`additionalItems`]),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`propertyNames`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`unevaluatedItems`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`unevaluatedProperties`],IN),H([`visitors`,`document`,`objects`,`JSONSchema`,`fixedFields`,`contentSchema`],IN),H([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`],RN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`targetSchema`],IN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`hrefSchema`],IN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`headerSchema`],IN),H([`visitors`,`document`,`objects`,`LinkDescription`,`fixedFields`,`submissionSchema`],IN))(TN),BN=t({isJSONSchemaElement:()=>VN,isLinkDescriptionElement:()=>HN}),VN=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof MN||e(r)&&t(`JSONSchema202012`,r)&&n(`object`,r)),HN=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof NN||e(r)&&t(`linkDescription`,r)&&n(`object`,r)),UN=()=>{let e=uw(PN);return{predicates:{...BN,isStringElement:KC},namespace:e}},WN=(e,{specPath:t=[`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`],plugins:n=[],specificationObj:r=zN}={})=>{let i=(0,U.refract)(e),a=Sw(r),o=new(kx(t,a))({specObj:a});return Pw(i,o),Iw(o.element,n,{toolboxCreator:UN,visitorOptions:{keyMap:FN,nodeTypeGetter:ek}})},GN=e=>(t,n={})=>WN(t,{specPath:e,...n});MN.refract=GN([`visitors`,`document`,`objects`,`JSONSchema`,`$visitor`]),NN.refract=GN([`visitors`,`document`,`objects`,`LinkDescription`,`$visitor`]);var KN=class extends MN{constructor(e,t,n){super(e,t,n),this.element=`schema`}get discriminator(){return this.get(`discriminator`)}set discriminator(e){this.set(`discriminator`,e)}get xml(){return this.get(`xml`)}set xml(e){this.set(`xml`,e)}get externalDocs(){return this.get(`externalDocs`)}set externalDocs(e){this.set(`externalDocs`,e)}get example(){return this.get(`example`)}set example(e){this.set(`example`,e)}},qN=class extends oA{},JN=class extends sA{},YN=class extends cA{},XN=class extends lA{},ZN=class extends uA{},QN=class extends dA{},$N={namespace:e=>{let{base:t}=e;return t.register(`callback`,lM),t.register(`components`,uM),t.register(`contact`,dM),t.register(`discriminator`,fM),t.register(`encoding`,pM),t.register(`example`,mM),t.register(`externalDocumentation`,hM),t.register(`header`,gM),t.register(`info`,_M),t.register(`jsonSchemaDialect`,vM),t.register(`license`,yM),t.register(`link`,bM),t.register(`mediaType`,xM),t.register(`oAuthFlow`,SM),t.register(`oAuthFlows`,CM),t.register(`openapi`,wM),t.register(`openApi3_1`,TM),t.register(`operation`,EM),t.register(`parameter`,DM),t.register(`pathItem`,OM),t.register(`paths`,kM),t.register(`reference`,AM),t.register(`requestBody`,jM),t.register(`response`,MM),t.register(`responses`,NM),t.register(`schema`,KN),t.register(`securityRequirement`,qN),t.register(`securityScheme`,JN),t.register(`server`,YN),t.register(`serverVariable`,XN),t.register(`tag`,ZN),t.register(`xml`,QN),t}},eP=class e extends U.ObjectElement{static primaryClass=`components-path-items`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},tP=class e extends U.ObjectElement{static primaryClass=`webhooks`;constructor(t,n,r){super(t,n,r),this.classes.push(e.primaryClass)}},nP=e=>{if(GC(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},rP={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`],...Mw},iP=class{internalStore;constructor(e,t,n){this.storageElement=e,this.storageField=t,this.storageSubField=n}
104get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);XC(e)||(e=new U.ObjectElement,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);ZC(t)||(t=new U.ArrayElement,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},aP=({storageField:e=`x-normalized`}={})=>t=>{let{predicates:n,ancestorLineageToJSONPointer:r}=t,i=(e,t)=>!n.isParameterElement(e)||!n.isParameterElement(t)||!n.isStringElement(e.name)||!n.isStringElement(e.in)||!n.isStringElement(t.name)||!n.isStringElement(t.in)?!1:K(e.name)===K(t.name)&&K(e.in)===K(t.in),a=[],o;return{visitor:{OpenApi3_1Element:{enter(t){o=new iP(t,e,`parameters`)},leave(){o=void 0}},PathItemElement:{enter(e,t,r,i,o){if(o.some(n.isComponentsElement))return;let{parameters:s}=e;n.isArrayElement(s)?a.push([...s.content]):a.push([])},leave(){a.pop()}},OperationElement:{leave(e,t,n,s,c){let l=$b(a);if(!Array.isArray(l)||l.length===0)return;let u=r([...c,n,e]);if(o.includes(u))return;let d=Ax([],[`parameters`,`content`],e);e.parameters=new OA(Wx(i,[...d,...l])),o.append(u)}}}}},oP=({storageField:e=`x-normalized`}={})=>t=>{let{predicates:n,ancestorLineageToJSONPointer:r}=t,i,a;return{visitor:{OpenApi3_1Element:{enter(t){a=new iP(t,e,`security-requirements`),n.isArrayElement(t.security)&&(i=t.security)},leave(){a=void 0,i=void 0}},OperationElement:{leave(e,t,o,s,c){if(c.some(n.isComponentsElement))return;let l=r([...c,o,e]);!a.includes(l)&&e.security===void 0&&i!==void 0&&(e.security=new NA(i?.content),a.append(l))}}}}},sP=e=>e.replace(/\s/g,``),cP=e=>e.replace(/\W/gi,`_`),lP=(e,t)=>`${cP(sP(t.toLowerCase()))}${cP(sP(e))}`,uP=(e,t,n)=>{let r=sP(e);return r.length>0?cP(r):lP(t,n)},dP=({storageField:e=`x-normalized`,operationIdNormalizer:t=uP}={})=>n=>{let{predicates:r,ancestorLineageToJSONPointer:i,namespace:a}=n,o=[],s=[],c=[],l;return{visitor:{OpenApi3_1Element:{enter(t){l=new iP(t,e,`operation-ids`)},leave(){let e=cx(e=>K(e.operationId),s);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,n)=>{let r=`${e}${n+1}`;t.operationId=new a.elements.String(r)}))}),c.forEach(e=>{if(e.operationId===void 0)return;let t=String(K(e.operationId)),n=s.find(e=>K(e.meta.get(`originalOperationId`))===t);n!==void 0&&(e.operationId=G.safe(n.operationId),e.meta.set(`originalOperationId`,t),e.set(`__originalOperationId`,t))}),s.length=0,c.length=0,l=void 0}},PathItemElement:{enter(e){let t=Rb(`path`,K(e.meta.get(`path`)));o.push(t)},leave(){o.pop()}},OperationElement:{enter(e,n,r,c,u){if(e.operationId===void 0)return;let d=i([...u,r,e]);if(l.includes(d))return;let f=String(K(e.operationId)),p=t(f,$b(o),Rb(`method`,K(e.meta.get(`http-method`))));f!==p&&(e.operationId=new a.elements.String(p),e.set(`__originalOperationId`,f),e.meta.set(`originalOperationId`,f),s.push(e),l.append(d))}},LinkElement:{leave(e){r.isLinkElement(e)&&e.operationId!==void 0&&c.push(e)}}}}},fP=({storageField:e=`x-normalized`}={})=>t=>{let{predicates:n,ancestorLineageToJSONPointer:r}=t,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new iP(t,e,`parameter-examples`)},leave(){i=void 0}},ParameterElement:{leave(e,t,a,o,s){if(s.some(n.isComponentsElement)||e.schema===void 0||!n.isSchemaElement(e.schema)||e.schema?.example===void 0&&e.schema?.examples===void 0)return;let c=r([...s,a,e]);if(!i.includes(c)){if(e.examples!==void 0&&n.isObjectElement(e.examples)){let t=e.examples.map(e=>G.safe(e.value));e.schema.examples!==void 0&&(e.schema.set(`examples`,t),i.append(c)),e.schema.example!==void 0&&(e.schema.set(`example`,t[0]),i.append(c));return}e.example!==void 0&&(e.schema.examples!==void 0&&(e.schema.set(`examples`,[G(e.example)]),i.append(c)),e.schema.example!==void 0&&(e.schema.set(`example`,G(e.example)),i.append(c)))}}}}}},pP=({storageField:e=`x-normalized`}={})=>t=>{let{predicates:n,ancestorLineageToJSONPointer:r}=t,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new iP(t,e,`header-examples`)},leave(){i=void 0}}
104,HeaderElement:{leave(e,t,a,o,s){if(s.some(n.isComponentsElement)||e.schema===void 0||!n.isSchemaElement(e.schema)||e.schema?.example===void 0&&e.schema?.examples===void 0)return;let c=r([...s,a,e]);if(!i.includes(c)){if(e.examples!==void 0&&n.isObjectElement(e.examples)){let t=e.examples.map(e=>G.safe(e.value));e.schema.examples!==void 0&&(e.schema.set(`examples`,t),i.append(c)),e.schema.example!==void 0&&(e.schema.set(`example`,t[0]),i.append(c));return}e.example!==void 0&&(e.schema.examples!==void 0&&(e.schema.set(`examples`,[G(e.example)]),i.append(c)),e.schema.example!==void 0&&(e.schema.set(`example`,G(e.example)),i.append(c)))}}}}}},mP=t({isBooleanJsonSchemaElement:()=>RP,isCallbackElement:()=>hP,isComponentsElement:()=>gP,isContactElement:()=>_P,isExampleElement:()=>vP,isExternalDocumentationElement:()=>yP,isHeaderElement:()=>bP,isInfoElement:()=>xP,isJsonSchemaDialectElement:()=>SP,isLicenseElement:()=>CP,isLinkElement:()=>wP,isMediaTypeElement:()=>UP,isOpenApi3_1Element:()=>EP,isOpenapiElement:()=>TP,isOperationElement:()=>DP,isParameterElement:()=>OP,isPathItemElement:()=>kP,isPathItemElementExternal:()=>AP,isPathsElement:()=>jP,isReferenceElement:()=>MP,isReferenceElementExternal:()=>NP,isRequestBodyElement:()=>PP,isResponseElement:()=>FP,isResponsesElement:()=>IP,isSchemaElement:()=>LP,isSecurityRequirementElement:()=>zP,isSecuritySchemeElement:()=>BP,isServerElement:()=>VP,isServerVariableElement:()=>HP}),hP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof lM||e(r)&&t(`callback`,r)&&n(`object`,r)),gP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof uM||e(r)&&t(`components`,r)&&n(`object`,r)),_P=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof dM||e(r)&&t(`contact`,r)&&n(`object`,r)),vP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof mM||e(r)&&t(`example`,r)&&n(`object`,r)),yP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof hM||e(r)&&t(`externalDocumentation`,r)&&n(`object`,r)),bP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof gM||e(r)&&t(`header`,r)&&n(`object`,r)),xP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof _M||e(r)&&t(`info`,r)&&n(`object`,r)),SP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof vM||e(r)&&t(`jsonSchemaDialect`,r)&&n(`string`,r)),CP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof yM||e(r)&&t(`license`,r)&&n(`object`,r)),wP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof bM||e(r)&&t(`link`,r)&&n(`object`,r)),TP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wM||e(r)&&t(`openapi`,r)&&n(`string`,r)),EP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n,hasClass:r})=>i=>i instanceof TM||e(i)&&t(`openApi3_1`,i)&&n(`object`,i)&&r(`api`,i)),DP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof EM||e(r)&&t(`operation`,r)&&n(`object`,r)),OP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof DM||e(r)&&t(`parameter`,r)&&n(`object`,r)),kP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof OM||e(r)&&t(`pathItem`,r)&&n(`object`,r)),AP=e=>{if(!kP(e)||!KC(e.$ref))return!1;let t=K(e.$ref);return typeof t==`string`&&t.length>0&&!t.startsWith(`#`)},jP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof kM||e(r)&&t(`paths`,r)&&n(`object`,r)),MP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof AM||e(r)&&t(`reference`,r)&&n(`object`,r)),NP=e=>{if(!MP(e)||!KC(e.$ref))return!1;let t=K(e.$ref);return typeof t==`string`&&t.length>0&&!t.startsWith(`#`)},PP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof jM||e(r)&&t(`requestBody`,r)&&n(`object`,r)),FP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof MM||e(r)&&t(`response`,r)&&n(`object`,r)),IP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof NM||e(r)&&t(`responses`,r)&&n(`object`,r)),LP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof KN||e(r)&&t(`schema`,r)&&n(`object`,r)),RP=e=>YC(e)&&e.classes.includes(`boolean-json-schema`),zP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qN||e(r)&&t(`securityRequirement`,r)&&n(`object`,r)),BP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof JN||e(r)&&t(`securityScheme`,r)&&n(`object`,r)),VP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof YN||e(r)&&t(`server`,r)&&n(`object`,r)),HP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof XN||e(r)&&t(`serverVariable`,r)&&n(`object`,r)),UP=W(({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof xM||e(r)&&t(`mediaType`,r)&&n(`object`,r)),WP=e=>fO(e.reduce((t,n,r)=>{if(QC(n)){let e=String(K(n.key));t.push(e)}else if(ZC(e[r-2])){let i=String(e[r-2].content.indexOf(n));t.push(i)}return t},[])),GP=()=>{let e=uw($N);return{predicates:{...mP,isElement:GC,isStringElement:KC,isArrayElement:ZC,isObjectElement:XC,isMemberElement:QC,isServersElement:Yj,includesClasses:sw,hasElementSourceMap:aw},ancestorLineageToJSONPointer:WP,namespace:e}},KP=class extends q(tj,J){constructor(e){super(e),this.element=new TM,this.specPath=bb([`document`,`objects`,`OpenApi`]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,tj.prototype.ObjectElement.call(this,e)}},qP=Y.visitors.document.objects.Info.$visitor,JP=class extends qP{constructor(e){super(e),this.element=new _M}},YP=Y.visitors.document.objects.Contact.$visitor,XP=class extends YP{constructor(e){super(e),this.element=new dM}},ZP=Y.visitors.document.objects.License.$visitor,QP=class extends ZP{constructor(e){super(e),this.element=new yM}},$P=Y.visitors.document.objects.Link.$visitor,eF=class extends $P{constructor(e){super(e),this.element=new bM}},tF=class extends q(XA,J){StringElement(e){let t=new vM(K(e));return this.copyMetaAndAttributes(e,t),this.element=t,pw}},nF=Y.visitors.document.objects.Server.$visitor,rF=class extends nF{constructor(e){super(e),this.element=new YN}},iF=Y.visitors.document.objects.ServerVariable.$visitor,aF=class extends iF{constructor(e){super(e),this.element=new XN}},oF=Y.visitors.document.objects.MediaType.$visitor,sF=class extends oF{constructor(e){super(e),this.element=new xM}},cF=Y.visitors.document.objects.SecurityRequirement.$visitor,lF=class extends cF{constructor(e){super(e),this.element=new qN}},uF=Y.visitors.document.objects.Components.$visitor,dF=class extends uF{constructor(e){super(e),this.element=new uM}},fF=Y.visitors.document.objects.Tag.$visitor,pF=class extends fF{constructor(e){super(e),this.element=new ZN}},mF=Y.visitors.document.objects.Reference.$visitor,hF=class extends mF{constructor(e){super(e),this.element=new AM}},gF=Y.visitors.document.objects.Parameter.$visitor,_F=class extends gF{constructor(e){super(e),this.element=new DM}},vF=Y.visitors.document.objects.Header.$visitor,yF=class extends vF{constructor(e){super(e),this.element=new gM}},bF=class extends q(tj,Dk,J){constructor(e){super(e),this.element=new KN,this.specPath=bb([`document`,`objects`,`Schema`]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=vM.default,this.passingOptionsNames.push(`parent`)}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;let t=tj.prototype.ObjectElement.call(this,e);return KC(this.element.$ref)&&(this.element.classes.push(`reference-element`),this.element.setMetaProperty(`referenced-element`,`schema`)),t}BooleanElement(e){return IN.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=this.openApiSemanticElement!==void 0&&SP(this.openApiSemanticElement.jsonSchemaDialect)?K(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&KC(this.openApiGenericElement.get(`jsonSchemaDialect`))?K(this.openApiGenericElement.get(`jsonSchemaDialect`)):K(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return IN.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return IN.prototype.handleSchemaIdentifier.call(this,e)}},xF=class extends hN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},SF=class extends gN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},CF=class extends _N{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},wF=class extends vN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},TF=class extends yN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},EF=class extends LN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},DF=class extends xN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},OF=class extends SN{constructor(e){super(e),this.passingOptionsNames.push(`parent`)}},kF=Y.visitors.document.objects.Discriminator.$visitor,AF=class extends kF{constructor(e){super(e),this.element=new fM,this.canSupportSpecificationExtensions=!0}},jF=Y.visitors.document.objects.XML.$visitor,MF=class extends jF{constructor(e){super(e),this.element=new QN}},NF=class extends q(pj,J){constructor(e){super(e),this.element=new _A,this.specPath=bb([`document`,`objects`,`Schema`])}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(LP).forEach((e,t)=>{e.setMetaProperty(`schemaName`,K(t))}),t}},PF=class extends q(pj,J){constructor(e){super(e),this.element=new eP,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`PathItem`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);
104return this.element.filter(MP).forEach(e=>{e.setMetaProperty(`referenced-element`,`pathItem`)}),t}},FF=Y.visitors.document.objects.Example.$visitor,IF=class extends FF{constructor(e){super(e),this.element=new mM}},LF=Y.visitors.document.objects.ExternalDocumentation.$visitor,RF=class extends LF{constructor(e){super(e),this.element=new hM}},zF=Y.visitors.document.objects.Encoding.$visitor,BF=class extends zF{constructor(e){super(e),this.element=new pM}},VF=Y.visitors.document.objects.Paths.$visitor,HF=class extends VF{constructor(e){super(e),this.element=new kM}},UF=Y.visitors.document.objects.RequestBody.$visitor,WF=class extends UF{constructor(e){super(e),this.element=new jM}},GF=Y.visitors.document.objects.Callback.$visitor,KF=class extends GF{constructor(e){super(e),this.element=new lM,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`PathItem`]}ObjectElement(e){let t=GF.prototype.ObjectElement.call(this,e);return this.element.filter(MP).forEach(e=>{e.setMetaProperty(`referenced-element`,`pathItem`)}),t}},qF=Y.visitors.document.objects.Response.$visitor,JF=class extends qF{constructor(e){super(e),this.element=new MM}},YF=Y.visitors.document.objects.Responses.$visitor,XF=class extends YF{constructor(e){super(e),this.element=new NM}},ZF=Y.visitors.document.objects.Operation.$visitor,QF=class extends ZF{constructor(e){super(e),this.element=new EM}},$F=Y.visitors.document.objects.PathItem.$visitor,eI=class extends $F{constructor(e){super(e),this.element=new OM}},tI=Y.visitors.document.objects.SecurityScheme.$visitor,nI=class extends tI{constructor(e){super(e),this.element=new JN}},rI=Y.visitors.document.objects.OAuthFlows.$visitor,iI=class extends rI{constructor(e){super(e),this.element=new CM}},aI=Y.visitors.document.objects.OAuthFlow.$visitor,oI=class extends aI{constructor(e){super(e),this.element=new SM}},sI=class extends q(pj,J){constructor(e){super(e),this.element=new tP,this.specPath=e=>ZA(e)?[`document`,`objects`,`Reference`]:[`document`,`objects`,`PathItem`]}ObjectElement(e){let t=pj.prototype.ObjectElement.call(this,e);return this.element.filter(MP).forEach(e=>{e.setMetaProperty(`referenced-element`,`pathItem`)}),this.element.filter(kP).forEach((e,t)=>{e.setMetaProperty(`webhook-name`,K(t))}),t}},{JSONSchema:cI,LinkDescription:lI}=zN.visitors.document.objects,uI={visitors:{value:Y.visitors.value,document:{objects:{OpenApi:{$visitor:KP,fixedFields:{openapi:Y.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:`#/visitors/document/objects/Info`},jsonSchemaDialect:tF,servers:Y.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:`#/visitors/document/objects/Paths`},webhooks:sI,components:{$ref:`#/visitors/document/objects/Components`},security:Y.visitors.document.objects.OpenApi.fixedFields.security,tags:Y.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`}}},Info:{$visitor:JP,fixedFields:{title:Y.visitors.document.objects.Info.fixedFields.title,description:Y.visitors.document.objects.Info.fixedFields.description,summary:{$ref:`#/visitors/value`},termsOfService:Y.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:`#/visitors/document/objects/Contact`},license:{$ref:`#/visitors/document/objects/License`},version:Y.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:XP,fixedFields:{name:Y.visitors.document.objects.Contact.fixedFields.name,url:Y.visitors.document.objects.Contact.fixedFields.url,email:Y.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:QP,fixedFields:{name:Y.visitors.document.objects.License.fixedFields.name,identifier:{$ref:`#/visitors/value`},url:Y.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:rF,fixedFields:{url:Y.visitors.document.objects.Server.fixedFields.url,description:Y.visitors.document.objects.Server.fixedFields.description,variables:Y.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:aF,fixedFields:{enum:Y.visitors.document.objects.ServerVariable.fixedFields.enum,default:Y.visitors.document.objects.ServerVariable.fixedFields.default,description:Y.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:dF,fixedFields:{schemas:NF,responses:Y.visitors.document.objects.Components.fixedFields.responses,parameters:Y.visitors.document.objects.Components.fixedFields.parameters,examples:Y.visitors.document.objects.Components.fixedFields.examples,requestBodies:Y.visitors.document.objects.Components.fixedFields.requestBodies,headers:Y.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Y.visitors.document.objects.Components.fixedFields.securitySchemes,links:Y.visitors.document.objects.Components.fixedFields.links,callbacks:Y.visitors.document.objects.Components.fixedFields.callbacks,pathItems:PF}},Paths:{$visitor:HF},PathItem:{$visitor:eI,fixedFields:{$ref:Y.visitors.document.objects.PathItem.fixedFields.$ref,summary:Y.visitors.document.objects.PathItem.fixedFields.summary,description:Y.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:Y.visitors.document.objects.PathItem.fixedFields.servers,parameters:Y.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:QF,fixedFields:{tags:Y.visitors.document.objects.Operation.fixedFields.tags,summary:Y.visitors.document.objects.Operation.fixedFields.summary,description:Y.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`},operationId:Y.visitors.document.objects.Operation.fixedFields.operationId,parameters:Y.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Y.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:`#/visitors/document/objects/Responses`},callbacks:Y.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Y.visitors.document.objects.Operation.fixedFields.deprecated,security:Y.visitors.document.objects.Operation.fixedFields.security,servers:Y.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:RF,fixedFields:{description:Y.visitors.document.objects.Exter
vendor: 6,598 bytes, line 104
104nalDocumentation.fixedFields.description,url:Y.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:_F,fixedFields:{name:Y.visitors.document.objects.Parameter.fixedFields.name,in:Y.visitors.document.objects.Parameter.fixedFields.in,description:Y.visitors.document.objects.Parameter.fixedFields.description,required:Y.visitors.document.objects.Parameter.fixedFields.required,deprecated:Y.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Y.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Y.visitors.document.objects.Parameter.fixedFields.style,explode:Y.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Y.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:`#/visitors/document/objects/Schema`},example:Y.visitors.document.objects.Parameter.fixedFields.example,examples:Y.visitors.document.objects.Parameter.fixedFields.examples,content:Y.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:WF,fixedFields:{description:Y.visitors.document.objects.RequestBody.fixedFields.description,content:Y.visitors.document.objects.RequestBody.fixedFields.content,required:Y.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:sF,fixedFields:{schema:{$ref:`#/visitors/document/objects/Schema`},example:Y.visitors.document.objects.MediaType.fixedFields.example,examples:Y.visitors.document.objects.MediaType.fixedFields.examples,encoding:Y.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:BF,fixedFields:{contentType:Y.visitors.document.objects.Encoding.fixedFields.contentType,headers:Y.visitors.document.objects.Encoding.fixedFields.headers,style:Y.visitors.document.objects.Encoding.fixedFields.style,explode:Y.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Y.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:XF,fixedFields:{default:Y.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:JF,fixedFields:{description:Y.visitors.document.objects.Response.fixedFields.description,headers:Y.visitors.document.objects.Response.fixedFields.headers,content:Y.visitors.document.objects.Response.fixedFields.content,links:Y.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:KF},Example:{$visitor:IF,fixedFields:{summary:Y.visitors.document.objects.Example.fixedFields.summary,description:Y.visitors.document.objects.Example.fixedFields.description,value:Y.visitors.document.objects.Example.fixedFields.value,externalValue:Y.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:eF,fixedFields:{operationRef:Y.visitors.document.objects.Link.fixedFields.operationRef,operationId:Y.visitors.document.objects.Link.fixedFields.operationId,parameters:Y.visitors.document.objects.Link.fixedFields.parameters,requestBody:Y.visitors.document.objects.Link.fixedFields.requestBody,description:Y.visitors.document.objects.Link.fixedFields.description,server:{$ref:`#/visitors/document/objects/Server`}}},Header:{$visitor:yF,fixedFields:{description:Y.visitors.document.objects.Header.fixedFields.description,required:Y.visitors.document.objects.Header.fixedFields.required,deprecated:Y.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Y.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Y.visitors.document.objects.Header.fixedFields.style,explode:Y.visitors.document.objects.Header.fixedFields.explode,allowReserved:Y.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:`#/visitors/document/objects/Schema`},example:Y.visitors.document.objects.Header.fixedFields.example,examples:Y.visitors.document.objects.Header.fixedFields.examples,content:Y.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:pF,fixedFields:{name:Y.visitors.document.objects.Tag.fixedFields.name,description:Y.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:`#/visitors/document/objects/ExternalDocumentation`}}},Reference:{$visitor:hF,fixedFields:{$ref:Y.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:`#/visitors/value`},description:{$ref:`#/visitors/value`}}},JSONSchema:{$ref:`#/visitors/document/objects/Schema`},LinkDescription:{...lI},Schema:{$visitor:bF,fixedFields:{...cI.fixedFields,$defs:xF,allOf:SF,anyOf:CF,oneOf:wF,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:TF,prefixItems:EF,items:{$ref:`#/visitors/document/objects/Schema`},contains:{$ref:`#/visitors/document/objects/Schema`},properties:DF,patternProperties:OF,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:AF,fixedFields:{propertyName:Y.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Y.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:MF,fixedFields:{name:Y.visitors.document.objects.XML.fixedFields.name,namespace:Y.visitors.document.objects.XML.fixedFields.namespace,prefix:Y.visitors.document.objects.XML.fixedFields.prefix,attribute:Y.visitors.document.objects.XML.fixedFields.attribute,wrapped:Y.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:nI,fixedFields:{type:Y.visitors.document.objects.SecurityScheme.fixedFields.type,description:Y.visitors.document.objects.SecurityScheme.fixedFields.description,name:Y.visitors.document.objects.SecurityScheme.fixedFields.name,in:Y.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Y.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Y.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:`#/visitors/document/objects/OAuthFlows`},openIdConnectUrl:Y.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:iI,fixedFields:{implicit:{$ref:`#/visitors/document/objects/OAuthFlow`},password:{$ref:`#/visitors/document/objects/OAuthFlow`}
104,clientCredentials:{$ref:`#/visitors/document/objects/OAuthFlow`},authorizationCode:{$ref:`#/visitors/document/objects/OAuthFlow`}}},OAuthFlow:{$visitor:oI,fixedFields:{authorizationUrl:Y.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Y.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Y.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Y.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:lF}},extension:{$visitor:Y.visitors.document.extension.$visitor}}}},dI=(e,{specPath:t=[`visitors`,`document`,`objects`,`OpenApi`,`$visitor`],plugins:n=[]}={})=>{let r=(0,U.refract)(e),i=Sw(uI),a=new(kx(t,i))({specObj:i});return Pw(r,a),Iw(a.element,n,{toolboxCreator:GP,visitorOptions:{keyMap:rP,nodeTypeGetter:nP}})},fI=e=>(t,n={})=>dI(t,{specPath:e,...n});lM.refract=fI([`visitors`,`document`,`objects`,`Callback`,`$visitor`]),uM.refract=fI([`visitors`,`document`,`objects`,`Components`,`$visitor`]),dM.refract=fI([`visitors`,`document`,`objects`,`Contact`,`$visitor`]),mM.refract=fI([`visitors`,`document`,`objects`,`Example`,`$visitor`]),fM.refract=fI([`visitors`,`document`,`objects`,`Discriminator`,`$visitor`]),pM.refract=fI([`visitors`,`document`,`objects`,`Encoding`,`$visitor`]),hM.refract=fI([`visitors`,`document`,`objects`,`ExternalDocumentation`,`$visitor`]),gM.refract=fI([`visitors`,`document`,`objects`,`Header`,`$visitor`]),_M.refract=fI([`visitors`,`document`,`objects`,`Info`,`$visitor`]),vM.refract=fI([`visitors`,`document`,`objects`,`OpenApi`,`fixedFields`,`jsonSchemaDialect`]),yM.refract=fI([`visitors`,`document`,`objects`,`License`,`$visitor`]),bM.refract=fI([`visitors`,`document`,`objects`,`Link`,`$visitor`]),xM.refract=fI([`visitors`,`document`,`objects`,`MediaType`,`$visitor`]),SM.refract=fI([`visitors`,`document`,`objects`,`OAuthFlow`,`$visitor`]),CM.refract=fI([`visitors`,`document`,`objects`,`OAuthFlows`,`$visitor`]),wM.refract=fI([`visitors`,`document`,`objects`,`OpenApi`,`fixedFields`,`openapi`]),TM.refract=fI([`visitors`,`document`,`objects`,`OpenApi`,`$visitor`]),EM.refract=fI([`visitors`,`document`,`objects`,`Operation`,`$visitor`]),DM.refract=fI([`visitors`,`document`,`objects`,`Parameter`,`$visitor`]),OM.refract=fI([`visitors`,`document`,`objects`,`PathItem`,`$visitor`]),kM.refract=fI([`visitors`,`document`,`objects`,`Paths`,`$visitor`]),AM.refract=fI([`visitors`,`document`,`objects`,`Reference`,`$visitor`]),jM.refract=fI([`visitors`,`document`,`objects`,`RequestBody`,`$visitor`]),MM.refract=fI([`visitors`,`document`,`objects`,`Response`,`$visitor`]),NM.refract=fI([`visitors`,`document`,`objects`,`Responses`,`$visitor`]),KN.refract=fI([`visitors`,`document`,`objects`,`Schema`,`$visitor`]),qN.refract=fI([`visitors`,`document`,`objects`,`SecurityRequirement`,`$visitor`]),JN.refract=fI([`visitors`,`document`,`objects`,`SecurityScheme`,`$visitor`]),YN.refract=fI([`visitors`,`document`,`objects`,`Server`,`$visitor`]),XN.refract=fI([`visitors`,`document`,`objects`,`ServerVariable`,`$visitor`]),ZN.refract=fI([`visitors`,`document`,`objects`,`Tag`,`$visitor`]),QN.refract=fI([`visitors`,`document`,`objects`,`XML`,`$visitor`]);var pI=class extends mT{constructor(e){super({...e??{},name:`binary`})}canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)}parse(e){try{let t=unescape(encodeURIComponent(e.toString())),n=btoa(t),r=new RC;if(n.length!==0){let e=new U.StringElement(n);e.classes.push(`result`),r.push(e)}return r}catch(t){throw new OT(`Error parsing "${e.uri}"`,{cause:t})}}},mI=class extends _T{constructor(e){super({...e??{},name:`openapi-3-1`})}canResolve(e,t){let n=t.dereference.strategies.find(e=>e.name===`openapi-3-1`);return n!==void 0&&n.canDereference(e,t)}async resolve(e,t){let n=t.dereference.strategies.find(e=>e.name===`openapi-3-1`);if(n===void 0)throw new fT(`"openapi-3-1" dereference strategy is not available.`);let r=new QS,i=nC(t,{resolve:{internal:!1},dereference:{refSet:r}});return await n.dereference(e,i),r}},{AbortController:hI,AbortSignal:gI}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=hI),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=gI);var _I=class extends gT{swaggerHTTPClient=yD;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=yD,swaggerHTTPClientConfig:t={},...n}={}){super({...n,name:`http-swagger-client`}),this.swaggerHTTPClient=e,this.swaggerHTTPClientConfig=t}getHttpClient(){return this.swaggerHTTPClient}async read(e){let t=this.getHttpClient(),n=new AbortController,{signal:r}=n,i=setTimeout(()=>{n.abort()},this.timeout),a=this.getHttpClient().withCredentials||this.withCredentials?`include`:`same-origin`,o=this.redirects===0?`error`:`follow`,s=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:r,userFetch:async(e,t)=>{let n=await fetch(e,t);try{n.headers.delete(`Content-Type`)}catch{n=new Response(n.body,{...n,headers:new Headers(n.headers)}),n.headers.delete(`Content-Type`)}return n},credentials:a,redirect:o,follow:s,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new cC(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(i)}}},vI=class extends mT{constructor(e={}){super({name:`json-swagger-client`,mediaTypes:[`application/json`],...e})}async canParse(e){var t,n;let r=this.fileExtensions.length===0||(0,zT.default)(t=this.fileExtensions).call(t,e.extension),i=(0,zT.default)(n=this.mediaTypes).call(n,e.mediaType);if(!r)return!1;if(i)return!0;
104if(!i)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new OT(`json-swagger-client parser plugin doesn't support sourceMaps option`);let t=new RC,n=e.toString();if(this.allowEmpty&&n.trim()===``)return t;try{let e=Zw(JSON.parse(n));return e.classes.push(`result`),t.push(e),t}catch(t){throw new OT(`Error parsing "${e.uri}"`,{cause:t})}}},yI=class extends mT{constructor(e={}){super({name:`yaml-1-2-swagger-client`,mediaTypes:[`text/yaml`,`application/yaml`],...e})}async canParse(e){var t,n;let r=this.fileExtensions.length===0||(0,zT.default)(t=this.fileExtensions).call(t,e.extension),i=(0,zT.default)(n=this.mediaTypes).call(n,e.mediaType);if(!r)return!1;if(i)return!0;if(!i)try{return Q_.load(e.toString(),{schema:$_}),!0}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new OT(`yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option`);let t=new RC,n=e.toString();try{let e=Q_.load(n,{schema:$_});if(this.allowEmpty&&e===void 0)return t;let r=Zw(e);return r.classes.push(`result`),t.push(r),t}catch(t){throw new OT(`Error parsing "${e.uri}"`,{cause:t})}}},bI=class extends mT{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:`openapi-json-3-1-swagger-client`,mediaTypes:new CO(...wO.filterByFormat(`generic`),...wO.filterByFormat(`json`)),...e})}async canParse(e){var t,n;let r=this.fileExtensions.length===0||(0,zT.default)(t=this.fileExtensions).call(t,e.extension),i=(0,zT.default)(n=this.mediaTypes).call(n,e.mediaType);if(!r)return!1;if(i)return!0;if(!i)try{let t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new OT(`openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option`);let t=new RC,n=e.toString();if(this.allowEmpty&&n.trim()===``)return t;try{let e=JSON.parse(n),r=TM.refract(e,this.refractorOpts);return r.classes.push(`result`),t.push(r),t}catch(t){throw new OT(`Error parsing "${e.uri}"`,{cause:t})}}},xI=class extends mT{detectionRegExp=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;constructor(e={}){super({name:`openapi-yaml-3-1-swagger-client`,mediaTypes:new CO(...wO.filterByFormat(`generic`),...wO.filterByFormat(`yaml`)),...e})}async canParse(e){var t,n;let r=this.fileExtensions.length===0||(0,zT.default)(t=this.fileExtensions).call(t,e.extension),i=(0,zT.default)(n=this.mediaTypes).call(n,e.mediaType);if(!r)return!1;if(i)return!0;if(!i)try{let t=e.toString();return Q_.load(t),this.detectionRegExp.test(t)}catch{return!1}return!1}async parse(e){if(this.sourceMap)throw new OT(`openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option`);let t=new RC,n=e.toString();try{let e=Q_.load(n,{schema:$_});if(this.allowEmpty&&e===void 0)return t;let r=TM.refract(e,this.refractorOpts);return r.classes.push(`result`),t.push(r),t}catch(t){throw new OT(`Error parsing "${e.uri}"`,{cause:t})}}},SI=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),CI=e=>PS(`#`,GS(e)),wI=e=>{if(!SI(e))throw new TT(e);return e},TI=(e,t)=>{let n=wI(e),r=Ww(e=>LP(e)&&K(e.$anchor)===n,t);if(qx(r))throw new ST(`Evaluation failed on token: "${n}"`);return r},EI=(e,t)=>{if(t.$ref===void 0)return;let n=GS(K(t.$ref));return`${yb((e,t)=>JS(e,YS(KS(t))),e,[...K(t.meta.get(`ancestorsSchemaIdentifiers`)),K(t.$ref)])}${n===`#`?``:n}`},DI=(e,t)=>t.$id===void 0?void 0:yb((e,t)=>JS(e,YS(KS(t))),e,K(t.meta.get(`ancestorsSchemaIdentifiers`))),OI=e=>{if(OI.cache.has(e))return OI.cache.get(e);let t=KN.refract(e);return OI.cache.set(e,t),t};OI.cache=new WeakMap;var kI=e=>iw(e)?OI(e):e,AI=(e,t)=>{let{cache:n}=AI,r=KS(e),i=e=>LP(e)&&e.$id!==void 0;if(!n.has(t)){let e=Uw(i,t);n.set(t,Array.from(e))}let a=n.get(t).find(e=>DI(r,e)===r);if(qx(a))throw new wT(`Evaluation failed on URI: "${e}"`);return SI(CI(e))?TI(CI(e),a):SO(a,BD(e))};AI.cache=new WeakMap;var jI=Pw[Symbol.for(`nodejs.util.promisify.custom`)],MI=new zw,NI=(e,t,n,r)=>{QC(r)?r.value=e:Array.isArray(r)&&(r[n]=e)},PI=class e{indirections;namespace;reference;options;ancestors;refractCache;allOfDiscriminatorMapping;errorContext;errorPropagationCache=new Map;pendingPropagations=[];constructor({reference:e,namespace:t,options:n,indirections:r=[],ancestors:i=new yT,refractCache:a=new Map,allOfDiscriminatorMapping:o=new Map,errorContext:s=[],errorPropagationCache:c=new Map,pendingPropagations:l=[]}){this.indirections=r,this.namespace=t,this.reference=e,this.options=n,this.ancestors=new yT(...i),this.refractCache=a,this.allOfDiscriminatorMapping=o,this.errorContext=s,this.errorPropagationCache=c,this.pendingPropagations=l}popErrorContext(e){if(this.errorContext[this.errorContext.length-1]===e)this.errorContext.pop();else for(let t=this.errorContext.length-1;t>=0;--t)if(this.errorContext[t]===e){this.errorContext.splice(t,1);break}}runPropagationPass(){let e=!1;return this.pendingPropagations.forEach(({referencingElement:t,referencedElement:n})=>{let r=this.errorPropagationCache.get(n);Array.isArray(r)&&r.length>0&&r.forEach(n=>{let r=this.errorPropagationCache.get(t);if(!(r!=null&&r.includes(n))){var i;(i=this.options.dereference.dereferenceOpts)==null||i.errors.push({error:n,refEl:t}),r?r.push(n):this.errorPropagationCache.set(t,[n]),e=!0}})}),e}propagateErrors(){for(;this.runPropagationPass(););this.pendingPropagations.length=0}handleDereferenceError(e,t,n){var r;if((r=this.options.dereference.dereferenceOpts)!=null&&r.continueOnError){var i;let{directAncestors:r,isExternalReference:s=!1}=n??{},c=this.options.dereference.dereferenceOpts?.skipNestedExternal??!1,l=s&&c;if(r&&!l){for(let t of r){let n=this.errorPropagationCache.get(t);n?n.push(e):this.errorPropagationCache.set(t,[e])}let t=[...r].find(e=>XC(e)&&e.getMetaProperty(`ref-referencing-element`));if(t){var a;(a=this.options.dereference.dereferenceOpts)==null||a.errors.push({error:e,refEl:t.getMetaProperty(`ref-referencing-element`)})}}if((i=this.options.dereference.dereferenceOpts)==null||i.errors.push({error:e,refEl:t}),!l){let n=new Set(this.errorContext);n.delete(t),this.popErrorContext(t);for(let t of n){var o;(o=this.options.dereference.dereferenceOpts)==null||o.errors.push({error:e,refEl:t})}}return}throw e}getNestedVisitorOptions(e){var t;return{...this.options,resolve:{...this.options.resolve,external:(t=this.options.dereference)!=null&&(t=t.dereferenceOpts)!=null&&t.skipNestedExternal&&K(e.get(`$ref`)).startsWith(`#`)?!1:this.options.resolve.external},dereference:{...this.options.dereference,dereferenceOpts:{...this.options.dereference?.dereferenceOpts,continueOnError:!1}}}}toBaseURI(e){return JS(this.reference.uri,YS(KS(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new DT(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);let t=this.toBaseURI(e),{refSet:n}=this.reference;if(n.has(t))return n.find(Nx(t,`uri`));let r=await hC(XS(t),{...this.options,parse:{...this.options.parse,mediaType:`text/plain`}}),i=new bT({uri:t,value:G(r),depth:this.reference.depth+1});if(n.add(i),this.options.dereference.immutable){let e=new bT({uri:`immutable://${t}`,value:r,depth:this.reference.depth+1});n.add(e)}return i}toAncestorLineage(e){let t=new Set(e.filter(GC));return[new yT(...this.ancestors,t),t]}OpenApi3_1Element={leave:(e,t,n,r,i,a)=>{var o,s;if((o=this.options.dereference.dereferenceOpts)!=null&&o.continueOnError&&this.prop
104agateErrors(),!((s=this.options.dereference.strategyOpts[`openapi-3-1`])!=null&&s.dereferenceDiscriminatorMapping))return;let c=Ow(e);return c.setMetaProperty(`allOfDiscriminatorMapping`,Object.fromEntries(this.allOfDiscriminatorMapping)),a.replaceWith(c,NI),n?void 0:c}};async ReferenceElement(t,n,r,i,a,o){var s,c;if(this.indirections.includes(t))return!1;let[l,u]=this.toAncestorLineage([...a,r]),d=this.toBaseURI(K(t.$ref)),f=KS(this.reference.uri)===d,p=!f;if(!this.options.resolve.internal&&f||!this.options.resolve.external&&p)return!1;let m;try{m=await this.toReference(K(t.$ref))}catch(e){return this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}let h=JS(d,K(t.$ref));this.indirections.push(t);let g=BD(h),_;try{_=SO(m.value.result,g)}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}if(_.id=MI.identify(_),iw(_)){let e=K(t.meta.get(`referenced-element`)),n=`${e}-${K(MI.identify(_))}`;this.refractCache.has(n)?_=this.refractCache.get(n):ZA(_)?(_=AM.refract(_),_.setMetaProperty(`referenced-element`,e),this.refractCache.set(n,_)):(_=this.namespace.getElementClass(e).refract(_),this.refractCache.set(n,_))}if(t===_){let e=new ay(`Recursive Reference Object detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}if(this.indirections.length>this.options.dereference.maxDepth){let e=new ET(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}if(l.includes(_)){if(m.refSet.circular=!0,this.options.dereference.circular===`error`){let e=new ay(`Circular reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}if(this.options.dereference.circular===`replace`){let e=new U.RefElement(_.id,{type:`reference`,uri:m.uri,$ref:K(t.$ref)}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(n,NI),!r&&n}}let v=KS(m.refSet.rootRef.uri)!==m.uri,y=[`error`,`replace`].includes(this.options.dereference.circular);if((p||v||MP(_)||y)&&!l.includesCycle(_)){u.add(t),this.errorContext.push(t);let n=new e({reference:m,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(t),refractCache:this.refractCache,ancestors:l,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{_=await jI(_,n,{keyMap:rP,nodeTypeGetter:nP})}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:u,isExternalReference:p})}u.delete(t),this.popErrorContext(t)}(s=this.options.dereference.dereferenceOpts)!=null&&s.continueOnError&&this.pendingPropagations.push({referencingElement:t,referencedElement:_}),this.indirections.pop();let b=Ow(_);return b.setMetaProperty(`id`,MI.generateId()),b.setMetaProperty(`ref-fields`,{$ref:K(t.$ref),description:K(t.description),summary:K(t.summary)}),b.setMetaProperty(`ref-origin`,m.uri),b.setMetaProperty(`ref-referencing-element-id`,G(MI.identify(t))),(c=this.options.dereference.dereferenceOpts)!=null&&c.continueOnError&&b.setMetaProperty(`ref-referencing-element`,t),XC(_)&&XC(b)&&(t.hasKey(`description`)&&`description`in _&&(b.remove(`description`),b.set(`description`,t.get(`description`))),t.hasKey(`summary`)&&`summary`in _&&(b.remove(`summary`),b.set(`summary`,t.get(`summary`)))),o.replaceWith(b,NI),!r&&b}async PathItemElement(t,n,r,i,a,o){var s;if(!KC(t.$ref))return;if(this.indirections.includes(t))return!1;let[c,l]=this.toAncestorLineage([...a,r]),u=this.toBaseURI(K(t.$ref)),d=KS(this.reference.uri)===u,f=!d;if(!this.options.resolve.internal&&d||!this.options.resolve.external&&f)return;let p;try{p=await this.toReference(K(t.$ref))}catch(e){return this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}let m=JS(u,K(t.$ref));this.indirections.push(t);let h=BD(m),g;
104try{g=SO(p.value.result,h)}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}if(g.id=MI.identify(g),iw(g)){let e=`path-item-${K(MI.identify(g))}`;this.refractCache.has(e)?g=this.refractCache.get(e):(g=OM.refract(g),this.refractCache.set(e,g))}if(t===g){let e=new ay(`Recursive Path Item Object reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}if(this.indirections.length>this.options.dereference.maxDepth){let e=new ET(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}if(c.includes(g)){if(p.refSet.circular=!0,this.options.dereference.circular===`error`){let e=new ay(`Circular reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}if(this.options.dereference.circular===`replace`){let e=new U.RefElement(g.id,{type:`path-item`,uri:p.uri,$ref:K(t.$ref)}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(n,NI),!r&&n}}let _=KS(p.refSet.rootRef.uri)!==p.uri,v=[`error`,`replace`].includes(this.options.dereference.circular);if((f||_||kP(g)&&KC(g.$ref)||v)&&!c.includesCycle(g)){l.add(t),this.errorContext.push(t);let n=new e({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(t),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{g=await jI(g,n,{keyMap:rP,nodeTypeGetter:nP})}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:f})}l.delete(t),this.popErrorContext(t)}if((s=this.options.dereference.dereferenceOpts)!=null&&s.continueOnError&&this.pendingPropagations.push({referencingElement:t,referencedElement:g}),this.indirections.pop(),kP(g)){var y;let e=new OM([...g.content],G(g.meta),G(g.attributes));e.setMetaProperty(`id`,MI.generateId()),t.forEach((t,n,r)=>{e.remove(K(n)),e.content.push(r)}),e.remove(`$ref`),e.setMetaProperty(`ref-fields`,{$ref:K(t.$ref)}),e.setMetaProperty(`ref-origin`,p.uri),e.setMetaProperty(`ref-referencing-element-id`,G(MI.identify(t))),(y=this.options.dereference.dereferenceOpts)!=null&&y.continueOnError&&e.setMetaProperty(`ref-referencing-element`,t),g=e}return o.replaceWith(g,NI),r?void 0:g}async LinkElement(e,t,n,r,i,a){if(!KC(e.operationRef)&&!KC(e.operationId))return;if(KC(e.operationRef)&&KC(e.operationId)){let t=new ay(`LinkElement operationRef and operationId fields are mutually exclusive.`);return this.handleDereferenceError(t,e)}let o;if(KC(e.operationRef)){var s;let t=BD(K(e.operationRef)),r=this.toBaseURI(K(e.operationRef)),i=KS(this.reference.uri)===r,c=!i;if(!this.options.resolve.internal&&i||!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(K(e.operationRef)),o=SO(l.value.result,t)}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:c})}if(iw(o)){let e=`operation-${K(MI.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=EM.refract(o),this.refractCache.set(e,o))}o=Ow(o),o.setMetaProperty(`ref-origin`,l.uri);let u=Ow(e);return(s=u.operationRef)==null||s.meta.set(`operation`,o),a.replaceWith(u,NI),n?void 0:u}if(KC(e.operationId)){var c;let t=K(e.operationId),r;try{r=await this.toReference(XS(this.reference.uri))}catch(t){return this.handleDereferenceError(t,e)}if(o=Ww(e=>DP(e)&&GC(e.operationId)&&e.operationId.equals(t),r.value.result),qx(o)){let n=new ay(`OperationElement(operationId=${t}) not found.`);return this.handleDereferenceError(n,e)}let i=Ow(e);return(c=i.operationId)==null||c.meta.set(`operation`,o),a.replaceWith(i,NI),n?void 0:i}}async ExampleElement(e,t,n,r,i,a){if(!KC(e.externalValue))return;if(e.hasKey(`value`)&&KC(e.externalValue)){let t=new ay(`ExampleElement value and externalValue fields are mutually exclusive.`);return this.handleDereferenceError(t,e)}let o=this.toBaseURI(K(e.externalValue)),s=KS(this.reference.uri)===o,c=!s;if(!this.options.resolve.internal&&s||!this.options.resolve.external&&c)return;let l;try{l=await this.toReference(K(e.externalValue))}catch(t){return this.handleDereferenceError(t,e,{isExternalReference:c})}let u=Ow(l.value.result);u.setMetaProperty(`ref-origin`,l.uri);let d=Ow(e);return d.value=u,a.replaceWith(d,NI),n?void 0:d}async MemberElement(t,n,r,i,a,o){var s;let c=a[a.length-1];if(!XC(c)||!c.classes.contains(`discriminator-mapping`))return;
104if(!((s=this.options.dereference.strategyOpts[`openapi-3-1`])!=null&&s.dereferenceDiscriminatorMapping)||!KC(t.key)||!KC(t.value)||this.indirections.includes(t))return!1;this.indirections.push(t);let[l,u]=this.toAncestorLineage([...a,r]),d=G([...u].findLast(LP).getMetaProperty(`ancestorsSchemaIdentifiers`)),f=K(t.value),p=/^[a-zA-Z0-9\\.\\-_]+$/.test(f)?`#/components/schemas/${f}`:f,m=new KN({$ref:p});m.setMetaProperty(`ancestorsSchemaIdentifiers`,d),u.add(m);let h=new e({reference:this.reference,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(m),refractCache:this.refractCache,ancestors:l,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping}),g;try{g=await jI(m,h,{keyMap:rP,nodeTypeGetter:nP})}catch(e){let t=!p.startsWith(`#`);return this.handleDereferenceError(e,m,{directAncestors:u,isExternalReference:t})}u.delete(m),this.indirections.pop();let _=Ow(t);return _.value.setMetaProperty(`ref-schema`,g),o.replaceWith(_,NI),r?void 0:_}async SchemaElement(t,n,r,i,a,o){var s;if(!KC(t.$ref))return;if(this.indirections.includes(t))return!1;let[c,l]=this.toAncestorLineage([...a,r]),u;try{u=await this.toReference(XS(this.reference.uri))}catch(e){return this.handleDereferenceError(e,t,{directAncestors:l})}let{uri:d}=u,f=EI(d,t),p=new ZS({uri:KS(f)}),m=Ex(e=>e.canRead(p),this.options.resolve.resolvers),h=!m,g=KS(this.reference.uri)===f,_=!g;this.indirections.push(t);let v;try{if(m||h){if(d=this.toBaseURI(f),v=AI(f,kI(u.value.result)),v=kI(v),v.id=MI.identify(v),!this.options.resolve.internal&&g||!this.options.resolve.external&&_)return}else{if(d=this.toBaseURI(f),g=KS(this.reference.uri)===d,_=!g,!this.options.resolve.internal&&g||!this.options.resolve.external&&_)return;u=await this.toReference(XS(f));let e=BD(f);v=SO(kI(u.value.result),e),v=kI(v),v.id=MI.identify(v)}}catch(e){if(h&&e instanceof wT){if(SI(CI(f))){if(g=KS(this.reference.uri)===d,_=!g,!this.options.resolve.internal&&g||!this.options.resolve.external&&_)return;try{u=await this.toReference(XS(f))}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}let e=CI(f),n=kI(u.value.result);try{v=TI(e,n)}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}v=kI(v),v.id=MI.identify(v)}else{if(d=this.toBaseURI(f),g=KS(this.reference.uri)===d,_=!g,!this.options.resolve.internal&&g||!this.options.resolve.external&&_)return;try{u=await this.toReference(XS(f))}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}let e=BD(f),n=kI(u.value.result);try{v=SO(n,e)}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}v=kI(v),v.id=MI.identify(v)}}else return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}if(t===v){let e=new ay(`Recursive Schema Object reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}if(this.indirections.length>this.options.dereference.maxDepth){let e=new ET(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}if(c.includes(v)){if(u.refSet.circular=!0,this.options.dereference.circular===`error`){let e=new ay(`Circular reference detected`);return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}if(this.options.dereference.circular===`replace`){let e=new U.RefElement(v.id,{type:`json-schema`,uri:u.uri,$ref:K(t.$ref)}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(n,NI),!r&&n}}let y=KS(u.refSet.rootRef.uri)!==u.uri,b=[`error`,`replace`].includes(this.options.dereference.circular);if((_||y||LP(v)&&KC(v.$ref)||b)&&!c.includesCycle(v)){l.add(t),this.errorContext.push(t);let n=new e({reference:u,namespace:this.namespace,indirections:[...this.indirections],options:this.getNestedVisitorOptions(t),refractCache:this.refractCache,ancestors:c,allOfDiscriminatorMapping:this.allOfDiscriminatorMapping,errorContext:this.errorContext,errorPropagationCache:this.errorPropagationCache,pendingPropagations:this.pendingPropagations});try{v=await jI(v,n,{keyMap:rP,nodeTypeGetter:nP})}catch(e){return this.indirections.pop(),this.handleDereferenceError(e,t,{directAncestors:l,isExternalReference:_})}l.delete(t),this.popErrorContext(t)}
104if((s=this.options.dereference.dereferenceOpts)!=null&&s.continueOnError&&this.pendingPropagations.push({referencingElement:t,referencedElement:v}),this.indirections.pop(),RP(v)){let e=G(v);return e.setMetaProperty(`id`,MI.generateId()),e.setMetaProperty(`ref-fields`,{$ref:K(t.$ref),$refBaseURI:f}),e.setMetaProperty(`ref-origin`,u.uri),e.setMetaProperty(`ref-referencing-element-id`,G(MI.identify(t))),o.replaceWith(e,NI),!r&&e}if(LP(v)){var x,S;let e=new KN([...v.content],G(v.meta),G(v.attributes));if(e.setMetaProperty(`id`,MI.generateId()),t.forEach((t,n,r)=>{e.remove(K(n)),e.content.push(r)}),e.remove(`$ref`),e.setMetaProperty(`ref-fields`,{$ref:K(t.$ref),$refBaseURI:f}),e.setMetaProperty(`ref-origin`,u.uri),e.setMetaProperty(`ref-referencing-element-id`,G(MI.identify(t))),(x=this.options.dereference.dereferenceOpts)!=null&&x.continueOnError&&e.setMetaProperty(`ref-referencing-element`,t),(S=this.options.dereference.strategyOpts[`openapi-3-1`])!=null&&S.dereferenceDiscriminatorMapping){var C;let t=a[a.length-1],n=[...l].findLast(LP),r=n?.getMetaProperty(`schemaName`),i=K(e.getMetaProperty(`schemaName`));if(i&&r&&t!=null&&(C=t.classes)!=null&&C.contains(`json-schema-allOf`)){let e=this.allOfDiscriminatorMapping.get(i)??[];e.push(n),this.allOfDiscriminatorMapping.set(i,e)}}v=e}return o.replaceWith(v,NI),r?void 0:v}},FI=Pw[Symbol.for(`nodejs.util.promisify.custom`)],II=class extends vT{constructor(e){super({...e??{},name:`openapi-3-1`})}canDereference(e){return e.mediaType===`text/plain`?EP(e.parseResult?.result):wO.includes(e.mediaType)}async dereference(e,t){let n=uw($N),r=t.dereference.refSet??new QS,i=new QS,a=r,o;r.has(e.uri)?o=r.find(Nx(e.uri,`uri`)):(o=new bT({uri:e.uri,value:e.parseResult}),r.add(o)),t.dereference.immutable&&(r.refs.map(e=>new bT({...e,value:G(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),a=i);let s=new PI({reference:o,namespace:n,options:t}),c=await FI(a.rootRef.value,s,{keyMap:rP,nodeTypeGetter:nP});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith(`immutable://`)).map(e=>new bT({...e,uri:e.uri.replace(/^immutable:\/\//,``)})).forEach(e=>r.add(e)),t.dereference.refSet===null&&r.clean(),i.clean(),c}},LI=e=>e.slice(2),RI=e=>{let t=LI(e);return t.reduce((e,n,r)=>{if(QC(n)){let t=String(K(n.key));e.push(t)}else if(ZC(t[r-2])){let i=t[r-2].content.indexOf(n);e.push(i)}return e},[])},zI=class{modelPropertyMacro;options;SchemaElement={leave:(e,t,n,r,i)=>{e.properties!==void 0&&XC(e.properties)&&e.properties.forEach(t=>{if(XC(t))try{let e=this.modelPropertyMacro(K(t));t.set(`default`,e)}catch(t){let r=Error(t,{cause:t});r.fullPath=[...RI([...i,n,e]),`properties`],this.options.dereference.dereferenceOpts?.errors?.push?.(r)}})}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}},BI=class{options;SchemaElement={leave(e,t,n,r,i){if(e.allOf!==void 0){if(!ZC(e.allOf)){let t=TypeError(`allOf must be an array`);t.fullPath=[...RI([...i,n,e]),`allOf`],this.options.dereference.dereferenceOpts?.errors?.push?.(t);return}if(e.allOf.isEmpty){e.remove(`allOf`);return}if(!e.allOf.content.every(LP)){let t=TypeError(`Elements in allOf must be objects`);t.fullPath=[...RI([...i,n,e]),`allOf`],this.options.dereference.dereferenceOpts?.errors?.push?.(t);return}for(;e.hasKey(`allOf`);){let{allOf:t}=e;e.remove(`allOf`);let n=uT.all([...t.content,e],{customMerge:e=>K(e)===`enum`?(e,t)=>{if(sw([`json-schema-enum`],e)&&sw([`json-schema-enum`],t)){let n=(e,t)=>ZC(e)||ZC(t)||XC(e)||XC(t)?!1:e.equals(K(t)),r=Ow(e);return r.content=Wx(n)([...e.content,...t.content]),r}return uT(e,t)}:uT});if(e.hasKey(`$$ref`)||n.remove(`$$ref`),e.hasKey(`example`)){let t=n.getMember(`example`);t&&(t.value=e.get(`example`))}if(e.hasKey(`examples`)){let t=n.getMember(`examples`);t&&(t.value=e.get(`examples`))}e.content=n.content}}}};constructor({options:e}){this.options=e}},VI=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,n,r,i)=>{let a=this.#e?K(this.#e):null,o=K(e);try{let t=this.parameterMacro(a,o);e.set(`default`,t)}catch(e){let t=Error(e,{cause:e});t.fullPath=RI([...i,n]),this.options.dereference.dereferenceOpts?.errors?.pu
104sh?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},HI=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t},UI=class extends oy{},{wrapError:WI}=bE,GI=Pw[Symbol.for(`nodejs.util.promisify.custom`)],KI=new zw,qI=(e,t,n,r)=>{QC(r)?r.value=e:Array.isArray(r)&&(r[n]=e)},JI=class e extends PI{useCircularStructures;allowMetaPatches;basePath;constructor({allowMetaPatches:e=!0,useCircularStructures:t=!1,basePath:n=null,...r}){super(r),this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=n}async ReferenceElement(t,n,r,i,a,o){try{var s,c;if((0,zT.default)(s=this.indirections).call(s,t))return!1;let[n,i]=this.toAncestorLineage([...a,r]),l=this.toBaseURI(K(t.$ref)),u=KS(this.reference.uri)===l,d=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&d)return!1;let f=await this.toReference(K(t.$ref)),p=JS(l,K(t.$ref));this.indirections.push(t);let m=BD(p),h=SO(f.value.result,m);if(h.id=KI.identify(h),iw(h)){let e=K(t.meta.get(`referenced-element`)),n=`${e}-${K(KI.identify(h))}`;this.refractCache.has(n)?h=this.refractCache.get(n):ZA(h)?(h=AM.refract(h),h.setMetaProperty(`referenced-element`,e),this.refractCache.set(n,h)):(h=this.namespace.getElementClass(e).refract(h),this.refractCache.set(n,h))}if(t===h)throw new ay(`Recursive Reference Object detected`);if(this.indirections.length>this.options.dereference.maxDepth)throw new ET(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if((0,zT.default)(n).call(n,h)){if(f.refSet.circular=!0,this.options.dereference.circular===`error`)throw new ay(`Circular reference detected`);if(this.options.dereference.circular===`replace`){let e=new U.RefElement(h.id,{type:`reference`,uri:f.uri,$ref:K(t.$ref),baseURI:p,referencingElement:t}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(e,qI),!r&&n}}let g=KS(f.refSet.rootRef.uri)!==f.uri,_=(0,zT.default)(c=[`error`,`replace`]).call(c,this.options.dereference.circular);if((d||g||MP(h)||_)&&!n.includesCycle(h)){i.add(t);let o=new e({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...RI([...a,r,t]),`$ref`]});h=await GI(h,o,{keyMap:rP,nodeTypeGetter:nP}),i.delete(t)}this.indirections.pop();let v=Ow(h);if(v.setMetaProperty(`ref-fields`,{$ref:K(t.$ref),description:K(t.description),summary:K(t.summary)}),v.setMetaProperty(`ref-origin`,f.uri),v.setMetaProperty(`ref-referencing-element-id`,G(KI.identify(t))),XC(h)&&(t.hasKey(`description`)&&`description`in h&&(v.remove(`description`),v.set(`description`,t.get(`description`))),t.hasKey(`summary`)&&`summary`in h&&(v.remove(`summary`),v.set(`summary`,t.get(`summary`)))),this.allowMetaPatches&&XC(v)&&!v.hasKey(`$$ref`)){let e=JS(l,p);v.set(`$$ref`,e)}return o.replaceWith(v,qI),!r&&v}catch(e){let n=WI(HI(e),{baseDoc:this.reference.uri,$ref:K(t.$ref),pointer:BD(K(t.$ref)),fullPath:this.basePath??[...RI([...a,r,t]),`$ref`]});this.options.dereference.dereferenceOpts?.errors?.push?.(n);return}}async PathItemElement(t,n,r,i,a,o){try{var s,c;if(!KC(t.$ref))return;if((0,zT.default)(s=this.indirections).call(s,t)||sw([`cycle`],t.$ref))return!1;let[n,i]=this.toAncestorLineage([...a,r]),l=this.toBaseURI(K(t.$ref)),u=KS(this.reference.uri)===l,d=!u;if(!this.options.resolve.internal&&u||!this.options.resolve.external&&d)return;let f=await this.toReference(K(t.$ref)),p=JS(l,K(t.$ref));this.indirections.push(t);let m=BD(p),h=SO(f.value.result,m);if(h.id=KI.identify(h),iw(h)){let e=`path-item-${K(KI.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=OM.refract(h),this.refractCache.set(e,h))}if(t===h)throw new ay(`Recursive Path Item Object reference detected`);if(this.indirections.length>this.options.dereference.maxDepth)throw new ET(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if((0,zT.default)(n).call(n,h)){if(f.refSet.circular=!0,this.options.dereference.circular===`error`)throw new ay(`Circular reference detected`);if(this.options.dereference.circular===`replace`){let e=new U.RefElement(h.id,{type:`path-item`,uri:f.uri,$ref:K(t.$ref),baseURI:p,referencingElement:t}
104),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(e,qI),!r&&n}}let g=KS(f.refSet.rootRef.uri)!==f.uri,_=(0,zT.default)(c=[`error`,`replace`]).call(c,this.options.dereference.circular);if((d||g||kP(h)&&KC(h.$ref)||_)&&!n.includesCycle(h)){i.add(t);let o=new e({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...RI([...a,r,t]),`$ref`]});h=await GI(h,o,{keyMap:rP,nodeTypeGetter:nP}),i.delete(t)}if(this.indirections.pop(),kP(h)){let e=new OM([...h.content],G(h.meta),G(h.attributes));if(t.forEach((t,n,r)=>{e.remove(K(n)),e.content.push(r)}),e.remove(`$ref`),e.setMetaProperty(`ref-fields`,{$ref:K(t.$ref)}),e.setMetaProperty(`ref-origin`,f.uri),e.setMetaProperty(`ref-referencing-element-id`,G(KI.identify(t))),this.allowMetaPatches&&e.get(`$$ref`)===void 0){let t=JS(l,p);e.set(`$$ref`,t)}h=e}return o.replaceWith(h,qI),r?void 0:h}catch(e){let n=WI(HI(e),{baseDoc:this.reference.uri,$ref:K(t.$ref),pointer:BD(K(t.$ref)),fullPath:this.basePath??[...RI([...a,r,t]),`$ref`]});this.options.dereference.dereferenceOpts?.errors?.push?.(n);return}}async SchemaElement(t,n,r,i,a,o){try{var s,c;if(!KC(t.$ref))return;if((0,zT.default)(s=this.indirections).call(s,t))return!1;let[n,i]=this.toAncestorLineage([...a,r]),l=await this.toReference(XS(this.reference.uri)),{uri:u}=l,d=EI(u,t),f=new ZS({uri:KS(d)}),p=!this.options.resolve.resolvers.some(e=>e.canRead(f)),m=!p,h=KS(this.reference.uri)===d,g=!h;this.indirections.push(t);let _;try{if(p||m){if(u=this.toBaseURI(d),_=AI(d,kI(l.value.result)),_=kI(_),_.id=KI.identify(_),!this.options.resolve.internal&&h||!this.options.resolve.external&&g)return}else{if(u=this.toBaseURI(d),h=KS(this.reference.uri)===u,g=!h,!this.options.resolve.internal&&h||!this.options.resolve.external&&g)return;l=await this.toReference(XS(d));let e=BD(d);_=SO(kI(l.value.result),e),_=kI(_),_.id=KI.identify(_)}}catch(e){if(m&&e instanceof wT){if(SI(CI(d))){if(h=KS(this.reference.uri)===u,g=!h,!this.options.resolve.internal&&h||!this.options.resolve.external&&g)return;l=await this.toReference(XS(d)),_=TI(CI(d),kI(l.value.result)),_=kI(_),_.id=KI.identify(_)}else{if(u=this.toBaseURI(K(d)),h=KS(this.reference.uri)===u,g=!h,!this.options.resolve.internal&&h||!this.options.resolve.external&&g)return;l=await this.toReference(XS(d));let e=BD(d);_=SO(kI(l.value.result),e),_=kI(_),_.id=KI.identify(_)}}else throw e}if(t===_)throw new ay(`Recursive Schema Object reference detected`);if(this.indirections.length>this.options.dereference.maxDepth)throw new ET(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if((0,zT.default)(n).call(n,_)){if(l.refSet.circular=!0,this.options.dereference.circular===`error`)throw new ay(`Circular reference detected`);if(this.options.dereference.circular===`replace`){let e=new U.RefElement(_.id,{type:`json-schema`,uri:l.uri,$ref:K(t.$ref),baseURI:JS(u,d),referencingElement:t}),n=(this.options.dereference.strategyOpts[`openapi-3-1`]?.circularReplacer??this.options.dereference.circularReplacer)(e);return o.replaceWith(n,qI),!r&&n}}let v=KS(l.refSet.rootRef.uri)!==l.uri,y=(0,zT.default)(c=[`error`,`replace`]).call(c,this.options.dereference.circular);if((g||v||LP(_)&&KC(_.$ref)||y)&&!n.includesCycle(_)){i.add(t);let o=new e({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...RI([...a,r,t]),`$ref`]});_=await GI(_,o,{keyMap:rP,nodeTypeGetter:nP}),i.delete(t)}if(this.indirections.pop(),RP(_)){let e=G(_);return e.setMetaProperty(`ref-fields`,{$ref:K(t.$ref)}),e.setMetaProperty(`ref-origin`,l.uri),e.setMetaProperty(`ref-referencing-element-id`,G(KI.identify(t))),o.replaceWith(e,qI),!r&&e}if(LP(_)){let e=new KN([..._.content],G(_.meta),G(_.attributes));if(t.forEach((t,n,r)=>{e.remove(K(n)),e.content.push(r)}),e.remove(`$ref`),e.setMetaProperty(`ref-fields`,{$ref:K(t.$ref)}),e.setMetaProperty(`ref-origin`,l.uri),e.setMetaProperty(`ref-referencing-element-id`,G(KI.identify(t))),this.allowMetaPatches&&e.get(`$$ref`)===void 0){let t=JS(u,d);e.set(`$$ref`,t)}_=e}return o.replaceWith(_,qI),r?void 0:_}catch(e){let n=HI(e),i=new UI(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:K(t.$ref),fullPath:this.basePath??[...RI([...a,r,t]),`$ref`],cause:n});
104this.options.dereference.dereferenceOpts?.errors?.push?.(i);return}}async LinkElement(){}async ExampleElement(e,t,n,r,i,a){try{return await super.ExampleElement(e,t,n,r,i,a)}catch(t){let r=WI(HI(t),{baseDoc:this.reference.uri,externalValue:K(e.externalValue),fullPath:this.basePath??[...RI([...i,n,e]),`externalValue`]});this.options.dereference.dereferenceOpts?.errors?.push?.(r);return}}},YI=_w[Symbol.for(`nodejs.util.promisify.custom`)],XI=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:n,options:r,...i}){let a=[];a.push(new JI({...i,options:r})),typeof t==`function`&&a.push(new zI({modelPropertyMacro:t,options:r})),n!==`strict`&&a.push(new BI({options:r})),typeof e==`function`&&a.push(new VI({parameterMacro:e,options:r}));let o=YI(a,{nodeTypeGetter:nP});Object.assign(this,o)}},ZI=Pw[Symbol.for(`nodejs.util.promisify.custom`)],QI=class extends II{allowMetaPatches;parameterMacro;modelPropertyMacro;mode;ancestors;constructor({allowMetaPatches:e=!1,parameterMacro:t=null,modelPropertyMacro:n=null,mode:r=`non-strict`,ancestors:i=[],...a}={}){super({...a}),this.name=`openapi-3-1-swagger-client`,this.allowMetaPatches=e,this.parameterMacro=t,this.modelPropertyMacro=n,this.mode=r,this.ancestors=[...i]}async dereference(e,t){let n=uw($N),r=t.dereference.refSet??new QS,i=new QS,a=r,o;r.has(e.uri)?o=r.find(t=>t.uri===e.uri):(o=new bT({uri:e.uri,value:e.parseResult}),r.add(o)),t.dereference.immutable&&(r.refs.map(e=>new bT({...e,value:G(e.value)})).forEach(e=>i.add(e)),o=i.find(t=>t.uri===e.uri),a=i);let s=new XI({reference:o,namespace:n,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await ZI(a.rootRef.value,s,{keyMap:rP,nodeTypeGetter:nP});return t.dereference.immutable&&i.refs.filter(e=>e.uri.startsWith(`immutable://`)).map(e=>new bT({...e,uri:e.uri.replace(/^immutable:\/\//,``)})).forEach(e=>r.add(e)),t.dereference.refSet===null&&r.clean(),i.clean(),c}},$I=e=>{let t=K(e.meta.get(`baseURI`)),n=e.meta.get(`referencingElement`);return new U.ObjectElement({$ref:t},G(n.meta),G(n.attributes))},eL=async e=>{let{spec:t,timeout:n,redirects:r,requestInterceptor:i,responseInterceptor:a,pathDiscriminator:o=[],allowMetaPatches:s=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:d=null,mode:f=`non-strict`,strategies:p}=e;try{let{cache:m}=eL,h=p.find(e=>e.match(t)),g=JS(VS(qS())?qS():aE,xD(e)),_;m.has(t)?_=m.get(t):(_=TM.refract(t),_.classes.push(`result`),m.set(t,_));let v=new RC([_]),y=fO(o),b=y===``?``:`#${y}`,x=SO(_,y),S=new QS({refs:[new bT({uri:g,value:v})]});y!==``&&(S.rootRef=void 0);let C=[new Set([x])],w=[],T=Xw(x,await kT(x,{resolve:{baseURI:`${g}${b}`,resolvers:[new _I({timeout:n||1e4,redirects:r||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:i,responseInterceptor:a}},strategies:[new mI]},parse:{mediaType:wO.latest(),parsers:[new bI({allowEmpty:!1,sourceMap:!1}),new xI({allowEmpty:!1,sourceMap:!1}),new vI({allowEmpty:!1,sourceMap:!1}),new yI({allowEmpty:!1,sourceMap:!1}),new pI({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new QI({allowMetaPatches:s,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:d,mode:f,ancestors:C})],refSet:S,dereferenceOpts:{errors:w},immutable:!1,circular:c?`ignore`:`replace`,circularReplacer:c?$S.dereference.circularReplacer:$I}}),_);return{spec:K(l?T:h.normalize(T)),errors:w}}catch(e){if(e instanceof hO)return{spec:t,errors:[]};throw e}};eL.cache=new WeakMap;var tL=e=>XC(e)?Iw(e,[dP({operationIdNormalizer:(e,t,n)=>DD({operationId:e},t,n,{v2OperationIdCompatibilityMode:!1})}),aP(),oP(),fP(),pP()],{toolboxCreator:GP,visitorOptions:{keyMap:rP,nodeTypeGetter:nP}}):e,nL=e=>t=>{let n=TM.refract(t);n.classes.push(`result`);let r=e(n),i=K(r);return eL.cache.set(i,r),K(r)},rL={name:`openapi-3-1-apidom`,match(e){return ND(e)},normalize(e){if(!GC(e)&&pS(e)&&!e.$$normalized){let t=nL(tL)(e);return t.$$normalized=!0,t}return GC(e)?tL(e):e},async resolve(e){return eL(e)}},iL=async e=>{let{spec:t,requestInterceptor:n,responseInterceptor:r}=e,i=xD(e),a=SD(e),o=t||await JE(a,{requestInterceptor:n,responseInterceptor:r})(i),s={...e,spec:o};return e.strategies.find(e=>
104e.match(o)).resolve(s)},aL=e=>async t=>iL({...e,...t}),oL=aL({strategies:[RD,ID,kD]});function sL(){this.grammarObject=`grammarObject`,this.rules=[],this.rules[0]={name:`server-url-template`,lower:`server-url-template`,index:0,isBkr:!1},this.rules[1]={name:`server-variable`,lower:`server-variable`,index:1,isBkr:!1},this.rules[2]={name:`server-variable-name`,lower:`server-variable-name`,index:2,isBkr:!1},this.rules[3]={name:`literals`,lower:`literals`,index:3,isBkr:!1},this.rules[4]={name:`DIGIT`,lower:`digit`,index:4,isBkr:!1},this.rules[5]={name:`HEXDIG`,lower:`hexdig`,index:5,isBkr:!1},this.rules[6]={name:`pct-encoded`,lower:`pct-encoded`,index:6,isBkr:!1},this.rules[7]={name:`ucschar`,lower:`ucschar`,index:7,isBkr:!1},this.rules[8]={name:`iprivate`,lower:`iprivate`,index:8,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:1,max:1/0},this.rules[0].opcodes[1]={type:1,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:3},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:2,children:[1,2,3]},this.rules[1].opcodes[1]={type:7,string:[123]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:7,string:[125]},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:3,min:1,max:1/0},this.rules[2].opcodes[1]={type:1,children:[2,3,4]},this.rules[2].opcodes[2]={type:5,min:0,max:122},this.rules[2].opcodes[3]={type:6,string:[124]},this.rules[2].opcodes[4]={type:5,min:126,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:1,max:1/0},this.rules[3].opcodes[1]={type:1,children:[2,3,4,5,6,7,8,9,10,11,12,13]},this.rules[3].opcodes[2]={type:6,string:[33]},this.rules[3].opcodes[3]={type:5,min:35,max:36},this.rules[3].opcodes[4]={type:5,min:38,max:59},this.rules[3].opcodes[5]={type:6,string:[61]},this.rules[3].opcodes[6]={type:5,min:63,max:91},this.rules[3].opcodes[7]={type:6,string:[93]},this.rules[3].opcodes[8]={type:6,string:[95]},this.rules[3].opcodes[9]={type:5,min:97,max:122},this.rules[3].opcodes[10]={type:6,string:[126]},this.rules[3].opcodes[11]={type:4,index:7},this.rules[3].opcodes[12]={type:4,index:8},this.rules[3].opcodes[13]={type:4,index:6},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:5,min:48,max:57},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[5].opcodes[1]={type:4,index:4},this.rules[5].opcodes[2]={type:7,string:[97]},this.rules[5].opcodes[3]={type:7,string:[98]},this.rules[5].opcodes[4]={type:7,string:[99]},this.rules[5].opcodes[5]={type:7,string:[100]},this.rules[5].opcodes[6]={type:7,string:[101]},this.rules[5].opcodes[7]={type:7,string:[102]},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:2,children:[1,2,3]},this.rules[6].opcodes[1]={type:7,string:[37]},this.rules[6].opcodes[2]={type:4,index:5},this.rules[6].opcodes[3]={type:4,index:5},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[7].opcodes[1]={type:5,min:160,max:55295},this.rules[7].opcodes[2]={type:5,min:63744,max:64975},this.rules[7].opcodes[3]={type:5,min:65008,max:65519},this.rules[7].opcodes[4]={type:5,min:65536,max:131069},this.rules[7].opcodes[5]={type:5,min:131072,max:196605},this.rules[7].opcodes[6]={type:5,min:196608,max:262141},this.rules[7].opcodes[7]={type:5,min:262144,max:327677},this.rules[7].opcodes[8]={type:5,min:327680,max:393213},this.rules[7].opcodes[9]={type:5,min:393216,max:458749},this.rules[7].opcodes[10]={type:5,min:458752,max:524285},this.rules[7].opcodes[11]={type:5,min:524288,max:589821},this.rules[7].opcodes[12]={type:5,min:589824,max:655357},this.rules[7].opcodes[13]={type:5,min:655360,max:720893},this.rules[7].opcodes[14]={type:5,min:720896,max:786429},this.rules[7].opcodes[15]={type:5,min:786432,max:851965},this.rules[7].opcodes[16]={type:5,min:851968,max:917501},this.rules[7].opcodes[17]={type:5,min:921600,max:983037},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3]},this.rules[8].opcodes[1]={type:5,min:57344,max:63743},this.rules[8].opcodes[2]={type:5,min:983040,max:1048573},this.rules[8].opcodes[3]={type:5,min:1048576,max:1114109},this.toString=function(){let e=``;return e+=`; OpenAPI Server URL templating ABNF syntax 105`,e+=`server-url-template = 1*( literals / server-variable ) ; variant of https://www.rfc-editor.org/rfc/rfc6570#section-2 106`,e+=`server-variable = "{" server-variable-name "}" 107`,e+=`server-variable-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) 108`,e+=` 109`,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-2.1 110`,e+=`; https://www.rfc-editor.org/errata/eid6937 111`,e+=`literals = 1*( %x21 / %x23-24 / %x26-3B / %x3D / %x3F-5B 112`,e+=` / %x5D / %x5F / %x61-7A / %x7E / ucschar / iprivate 113`,e+=` / pct-encoded) 114`,e+=` ; any Unicode character except: CTL, SP, 115`,e+=` ; DQUOTE, "%" (aside from pct-encoded), 116`,e+=` ; "<", ">", "\\", "^", "\`", "{", "|", "}" 117`,e+=` 118`,e+=`; https://www.rfc-editor.org/rfc/rfc6570#section-1.5 119`,e+=`DIGIT = %x30-39 ; 0-9 120`,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" ; case-insensitive 121`,e+=` 122`,e+=`pct-encoded = "%" HEXDIG HEXDIG 123`,e+=` 124`,e+=`ucschar = %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF 125`,e+=` / %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD 126`,e+=` / %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD 127`,e+=` / %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD 128`,e+=` / %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD 129`,e+=` / %xD0000-DFFFD / %xE1000-EFFFD 130`,e+=` 131`,e+=`iprivate = %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD 132`,e}}var cL=(e,t,n,r,i)=>{if(e===qD.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`server-url-template`,KD.charsToString(t,n,r)])}return qD.SEM_OK},lL=(e,t,n,r,i)=>{if(e===qD.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`server-variable`,KD.charsToString(t,n,r)])}return qD.SEM_OK},uL=(e,t,n,r,i)=>{if(e===qD.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`server-variable-name`,KD.charsToString(t,n,r)])}return qD.SEM_OK},dL=(e,t,n,r,i)=>{if(e===qD.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`literals`,KD.charsToString(t,n,r)])}return qD.SEM_OK},fL=new sL,pL=e=>{let t=new HD;return t.ast=new UD,t.ast.callbacks[`server-url-template`]=cL,t.ast.callbacks[`server-variable`]=lL,t.ast.callbacks[`server-variable-name`]=uL,t.ast.callbacks.literals=dL,{result:t.parse(fL,`server-url-template`,e),ast:t.ast}},mL=(e,{strict:t=!1}={})=>{try{let n=pL(e);if(!n.result.success)return!1;let r=[];n.ast.translate(r);let i=r.some(([e])=>e===`server-variable`);if(!t&&!i)try{return new URL(e,`https://vladimirgorej.com`),!0}catch{return!1}return!t||i}catch{return!1}}
132,hL=e=>{try{return typeof e==`string`&&decodeURIComponent(e)!==e}catch{return!1}},gL=e=>hL(e)?e:encodeURIComponent(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`),_L=[`literals`,`server-variable-name`],vL=(e,t,n={})=>{let r={encoder:gL,...n},i=pL(e);if(!i.result.success)return e;let a=[];return i.ast.translate(a),a.filter(([e])=>_L.includes(e)).map(([e,n])=>e===`server-variable-name`?Object.hasOwn(t,n)?r.encoder(t[n],n):`{${n}}`:n).join(``)};function yL(){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]}
132,this.rules[9].opcodes[10]={type:7,string:[59]},this.rules[9].opcodes[11]={type:7,string:[61]},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:1,children:[1,2]},this.rules[10].opcodes[1]={type:5,min:65,max:90},this.rules[10].opcodes[2]={type:5,min:97,max:122},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:5,min:48,max:57},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[12].opcodes[1]={type:4,index:11},this.rules[12].opcodes[2]={type:7,string:[97]},this.rules[12].opcodes[3]={type:7,string:[98]},this.rules[12].opcodes[4]={type:7,string:[99]},this.rules[12].opcodes[5]={type:7,string:[100]},this.rules[12].opcodes[6]={type:7,string:[101]},this.rules[12].opcodes[7]={type:7,string:[102]},this.toString=function(){let e=``;return e+=`; OpenAPI Path Templating ABNF syntax 133`,e+=`; variant of https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 134`,e+=`path-template = slash *( path-segment slash ) [ path-segment ] 135`,e+=`path-segment = 1*( path-literal / template-expression ) 136`,e+=`slash = "/" 137`,e+=`path-literal = 1*pchar 138`,e+=`template-expression = "{" template-expression-param-name "}" 139`,e+=`template-expression-param-name = 1*( %x00-7A / %x7C / %x7E-10FFFF ) ; every UTF8 character except { and } (from OpenAPI) 140`,e+=` 141`,e+=`; https://datatracker.ietf.org/doc/html/rfc3986#section-3.3 142`,e+=`pchar = unreserved / pct-encoded / sub-delims / ":" / "@" 143`,e+=`unreserved = ALPHA / DIGIT / "-" / "." / "_" / "~" 144`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.3 145`,e+=`pct-encoded = "%" HEXDIG HEXDIG 146`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.1 147`,e+=`sub-delims = "!" / "$" / "&" / "'" / "(" / ")" 148`,e+=` / "*" / "+" / "," / ";" / "=" 149`,e+=` ; https://datatracker.ietf.org/doc/html/rfc3986#section-2.2 150`,e+=` 151`,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 152`,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z 153`,e+=`DIGIT = %x30-39 ; 0-9 154`,e+=`HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F" 155`,e}}var bL=(e,t,n,r,i)=>(e===qD.SEM_PRE?i.push([`slash`,KD.charsToString(t,n,r)]):qD.SEM_POST,qD.SEM_OK),xL=(e,t,n,r,i)=>{if(e===qD.SEM_PRE){if(Array.isArray(i)===!1)throw Error(`parser's user data must be an array`);i.push([`path-template`,KD.charsToString(t,n,r)])}return qD.SEM_OK},SL=(e,t,n,r,i)=>(e===qD.SEM_PRE?i.push([`path-literal`,KD.charsToString(t,n,r)]):qD.SEM_POST,qD.SEM_OK),CL=(e,t,n,r,i)=>(e===qD.SEM_PRE?i.push([`template-expression`,KD.charsToString(t,n,r)]):qD.SEM_POST,qD.SEM_OK),wL=(e,t,n,r,i)=>(e===qD.SEM_PRE?i.push([`template-expression-param-name`,KD.charsToString(t,n,r)]):qD.SEM_POST,qD.SEM_OK),TL=new yL,EL=e=>{let t=new HD;return t.ast=new UD,t.ast.callbacks[`path-template`]=xL,t.ast.callbacks.slash=bL,t.ast.callbacks[`path-literal`]=SL,t.ast.callbacks[`template-expression`]=CL,t.ast.callbacks[`template-expression-param-name`]=wL,{result:t.parse(TL,`path-template`,e),ast:t.ast}},DL=e=>{try{return typeof e==`string`&&decodeURIComponent(e)!==e}catch{return!1}},OL=e=>DL(e)?e:encodeURIComponent(e).replace(/%5B/g,`[`).replace(/%5D/g,`]`),kL=[`slash`,`path-literal`,`template-expression-param-name`],AL=(e,t,n={})=>{let r={encoder:OL,...n},i=EL(e);if(!i.result.success)return e;let a=[];return i.ast.translate(a),a.filter(([e])=>kL.includes(e)).map(([e,n])=>e===`template-expression-param-name`?Object.prototype.hasOwnProperty.call(t,n)?r.encoder(t[n],n):`{${n}}`:n).join(``)};new yL,new HD;var jL={body:ML,header:PL,query:IL,path:FL,formData:NL};function ML({req:e,value:t}){t!==void 0&&(e.body=t)}function NL({req:e,value:t,parameter:n}){if(t===!1&&n.type===`boolean`&&(t=`false`),t===0&&[`number`,`integer`].indexOf(n.type)>-1&&(t=`0`),t)e.form=e.form||{},e.form[n.name]={collectionFormat:n.collectionFormat,value:t};else if(n.allowEmptyValue&&t!==void 0){e.form=e.form||{};let t=n.name;e.form[t]=e.form[t]||{},e.form[t].allowEmptyValue=!0}}function PL({req:e,parameter:t,value:n}){e.headers=e.headers||{},n!==void 0&&(e.headers[t.name]=n)}function FL({req:e,value:t,parameter:n,baseURL:r}){t!==void 0&&(e.url=r+AL(e.url.replace(r,``),{[n.name]:t}))}function IL({req:e,value:t,parameter:n}){if(e.query=e.query||{},t===!1&&n.type===`boolean`&&(t=`false`),t===0&&[`number`,`integer`].indexOf(n.type)>-1&&(t=`0`),t)e.query[n.name]={collectionFormat:n.collectionFormat,value:t};else if(n.allowEmptyValue&&t!==void 0){let t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}function LL(e,t){return(0,zT.default)(t).call(t,`application/json`)?typeof e==`string`?e:(Array.isArray(e)&&(e=e.map(e=>{try{return JSON.parse(e)}catch{return e}})),JSON.stringify(e)):String(e)}function RL(){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}
vendor: 4,163 bytes, line 155
155,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]}
155,this.rules[13].opcodes[1]={type:6,string:[33]},this.rules[13].opcodes[2]={type:5,min:35,max:43},this.rules[13].opcodes[3]={type:5,min:45,max:58},this.rules[13].opcodes[4]={type:5,min:60,max:91},this.rules[13].opcodes[5]={type:5,min:93,max:126},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:3,min:0,max:1/0},this.rules[14].opcodes[1]={type:2,children:[2,4]},this.rules[14].opcodes[2]={type:3,min:0,max:1},this.rules[14].opcodes[3]={type:4,index:27},this.rules[14].opcodes[4]={type:4,index:25},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:3,min:1,max:1/0},this.rules[15].opcodes[1]={type:4,index:16},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]},this.rules[16].opcodes[1]={type:7,string:[33]},this.rules[16].opcodes[2]={type:7,string:[35]},this.rules[16].opcodes[3]={type:7,string:[36]},this.rules[16].opcodes[4]={type:7,string:[37]},this.rules[16].opcodes[5]={type:7,string:[38]},this.rules[16].opcodes[6]={type:7,string:[39]},this.rules[16].opcodes[7]={type:7,string:[42]},this.rules[16].opcodes[8]={type:7,string:[43]},this.rules[16].opcodes[9]={type:7,string:[45]},this.rules[16].opcodes[10]={type:7,string:[46]},this.rules[16].opcodes[11]={type:7,string:[94]},this.rules[16].opcodes[12]={type:7,string:[95]},this.rules[16].opcodes[13]={type:7,string:[96]},this.rules[16].opcodes[14]={type:7,string:[124]},this.rules[16].opcodes[15]={type:7,string:[126]},this.rules[16].opcodes[16]={type:4,index:23},this.rules[16].opcodes[17]={type:4,index:22},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:5,min:1,max:127},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:1,children:[1,2]},this.rules[18].opcodes[1]={type:5,min:0,max:31},this.rules[18].opcodes[2]={type:6,string:[127]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19]},this.rules[19].opcodes[1]={type:7,string:[40]},this.rules[19].opcodes[2]={type:7,string:[41]},this.rules[19].opcodes[3]={type:7,string:[60]},this.rules[19].opcodes[4]={type:7,string:[62]},this.rules[19].opcodes[5]={type:7,string:[64]},this.rules[19].opcodes[6]={type:7,string:[44]},this.rules[19].opcodes[7]={type:7,string:[59]},this.rules[19].opcodes[8]={type:7,string:[58]},this.rules[19].opcodes[9]={type:7,string:[92]},this.rules[19].opcodes[10]={type:6,string:[34]},this.rules[19].opcodes[11]={type:7,string:[47]},this.rules[19].opcodes[12]={type:7,string:[91]},this.rules[19].opcodes[13]={type:7,string:[93]},this.rules[19].opcodes[14]={type:7,string:[63]},this.rules[19].opcodes[15]={type:7,string:[61]},this.rules[19].opcodes[16]={type:7,string:[123]},this.rules[19].opcodes[17]={type:7,string:[125]},this.rules[19].opcodes[18]={type:4,index:20},this.rules[19].opcodes[19]={type:4,index:21},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:6,string:[32]},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:6,string:[9]},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:1,children:[1,2]},this.rules[22].opcodes[1]={type:5,min:65,max:90},this.rules[22].opcodes[2]={type:5,min:97,max:122},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:5,min:48,max:57},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:6,string:[34]},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:1,children:[1,2]},this.rules[25].opcodes[1]={type:4,index:20},this.rules[25].opcodes[2]={type:4,index:26},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:6,string:[9]},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:2,children:[1,2]},this.rules[27].opcodes[1]={type:4,index:28},this.rules[27].opcodes[2]={type:4,index:29},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:6,string:[13]},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:6,string:[10]},this.toString=function(){let e=``;return e+=`; Lenient version of https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1 156`,e+=`lenient-cookie-string = lenient-cookie-entry *( ";" OWS lenient-cookie-entry ) 157`,e+=`lenient-cookie-entry = lenient-cookie-pair / lenient-cookie-pair-invalid 158`,e+=`lenient-cookie-pair = OWS lenient-cookie-name OWS "=" OWS lenient-cookie-value OWS 159`,e+=`lenient-cookie-pair-invalid = OWS 1*tchar OWS ; Allow for standalone entries like "fizz" to be ignored 160`,e+=`lenient-cookie-name = 1*( %x21-3A / %x3C / %x3E-7E ) ; Allow all printable US-ASCII except "=" 161`,e+=`lenient-cookie-value = lenient-quoted-value [ *lenient-cookie-octet ] / *lenient-cookie-octet 162`,e+=`lenient-quoted-value = DQUOTE *( lenient-quoted-char ) DQUOTE 163`,e+=`lenient-quoted-char = %x20-21 / %x23-7E ; Allow all printable US-ASCII except DQUOTE 164`,e+=`lenient-cookie-octet = %x21-2B / %x2D-3A / %x3C-7E 165`,e+=` ; Allow all printable characters except CTLs, semicolon and SP 166`,e+=` 167`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.2.1 168`,e+=`cookie-string = cookie-pair *( ";
168" SP cookie-pair ) 169`,e+=` 170`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-4.1.1 171`,e+=`; https://www.rfc-editor.org/errata/eid5518 172`,e+=`cookie-pair = cookie-name "=" cookie-value 173`,e+=`cookie-name = token 174`,e+=`cookie-value = ( DQUOTE *cookie-octet DQUOTE ) / *cookie-octet 175`,e+=` ; https://www.rfc-editor.org/errata/eid8242 176`,e+=`cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E 177`,e+=` ; US-ASCII characters excluding CTLs, 178`,e+=` ; whitespace, DQUOTE, comma, semicolon, 179`,e+=` ; and backslash 180`,e+=` 181`,e+=`; https://datatracker.ietf.org/doc/html/rfc6265#section-2.2 182`,e+=`OWS = *( [ CRLF ] WSP ) ; "optional" whitespace 183`,e+=` 184`,e+=`; https://datatracker.ietf.org/doc/html/rfc9110#section-5.6.2 185`,e+=`token = 1*(tchar) 186`,e+=`tchar = "!" / "#" / "$" / "%" / "&" / "'" / "*" 187`,e+=` / "+" / "-" / "." / "^" / "_" / "\`" / "|" / "~" 188`,e+=` / DIGIT / ALPHA 189`,e+=` ; any VCHAR, except delimiters 190`,e+=` 191`,e+=`; https://datatracker.ietf.org/doc/html/rfc2616#section-2.2 192`,e+=`CHAR = %x01-7F ; any US-ASCII character (octets 0 - 127) 193`,e+=`CTL = %x00-1F / %x7F ; any US-ASCII control character 194`,e+=`separators = "(" / ")" / "<" / ">" / "@" / "," / ";" / ":" / "\\" / %x22 / "/" / "[" / "]" / "?" / "=" / "{" / "}" / SP / HT 195`,e+=`SP = %x20 ; US-ASCII SP, space (32) 196`,e+=`HT = %x09 ; US-ASCII HT, horizontal-tab (9) 197`,e+=` 198`,e+=`; https://datatracker.ietf.org/doc/html/rfc5234#appendix-B.1 199`,e+=`ALPHA = %x41-5A / %x61-7A ; A-Z / a-z 200`,e+=`DIGIT = %x30-39 ; 0-9 201`,e+=`DQUOTE = %x22 ; " (Double Quote) 202`,e+=`WSP = SP / HTAB ; white space 203`,e+=`HTAB = %x09 ; horizontal tab 204`,e+=`CRLF = CR LF ; Internet standard newline 205`,e+=`CR = %x0D ; carriage return 206`,e+=`LF = %x0A ; linefeed 207`,e}}new RL;var zL=e=>{if(typeof e!=`string`||[...e].length!==1)throw TypeError(`Input must be a single character string.`);let t=e.codePointAt(0);return t<=127?`%${t.toString(16).toUpperCase().padStart(2,`0`)}`:encodeURIComponent(e)},BL=e=>e.replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``),VL=e=>e.length>=2&&e.startsWith(`"`)&&e.endsWith(`"`),HL=e=>VL(e)?e.slice(1,-1):e,UL=e=>`"${e}"`,WL=e=>e,GL=new HD,KL=new RL,qL=(e,{strict:t=!0,quoted:n=null}={})=>{try{let r=t?`cookie-value`:`lenient-cookie-value`,i=GL.parse(KL,r,e);return typeof n==`boolean`?i.success&&n===VL(e):i.success}catch{return!1}},JL=e=>{let t=new TextEncoder().encode(e).reduce((e,t)=>e+String.fromCharCode(t),``);return btoa(t)},YL=(e,t=JL)=>{let n=String(e);if(qL(n))return n;let r=VL(n),i=t(r?HL(n):n);return r?UL(i):i},XL=e=>BL(JL(e)),ZL=e=>YL(e,XL),QL=new HD,$L=new RL,eR=(e,{strict:t=!0}={})=>{try{let n=t?`cookie-name`:`lenient-cookie-name`;return QL.parse($L,n,e).success}catch{return!1}},tR=e=>{if(!eR(e))throw TypeError(`Invalid cookie name: ${e}`)},nR=e=>{if(!qL(e))throw TypeError(`Invalid cookie value: ${e}`)},rR={encoders:{name:WL,value:ZL},validators:{name:tR,value:nR}},iR=(e,t,n={})=>{let r={...rR,...n,encoders:{...rR.encoders,...n.encoders},validators:{...rR.validators,...n.validators}},i=r.encoders.name(e),a=r.encoders.value(t);return r.validators.name(i),r.validators.value(a),`${i}=${a}`},aR=(e,t={})=>(Array.isArray(e)?e:typeof e==`object`&&e?Object.entries(e):[]).map(([e,n])=>iR(e,n,t)).join(`; `),oR=new HD,sR=new RL,cR=e=>{let t=String(e);if(qL(t))return t;let n=VL(t),r=n?HL(t):t,i=``;for(let e of r)i+=oR.parse(sR,`cookie-octet`,e).success?e:zL(e);return n?UL(i):i};new HD,new RL;var lR=e=>{if(!eR(e,{strict:!1}))throw TypeError(`Invalid cookie name: ${e}`)},uR=`%3D`,dR=`%26`,fR=e=>cR(e).replace(/[=&]/gu,e=>e===`=`?uR:dR),pR=(e,t={})=>aR(e,Tx({encoders:{name:WL,value:fR},validators:{name:lR,value:nR}},t)),mR=t({cookie:()=>yR,header:()=>vR,path:()=>hR,query:()=>gR});function hR({req:e,value:t,parameter:n,baseURL:r}){let{name:i,style:a,explode:o,content:s}=n;if(t===void 0)return;let c=e.url.replace(r,``),l;if(s){let e=Object.keys(s)[0];l=AL(c,{[i]:t},{encoder:t=>eD(LL(t,e))})}else l=AL(c,{[i]:t},{encoder:e=>tD({key:n.name,value:e,style:a||`simple`,explode:o??!1,escape:`reserved`})});e.url=r+l}function gR({req:e,value:t,parameter:n}){if(e.query=e.query||{},t!==void 0&&n.content){let r=Object.keys(n.content)[0],i=LL(t,r);if(i)e.query[n.name]=i;else if(n.allowEmptyValue){let t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}return}if(t===!1&&(t=`false`),t===0&&(t=`0`),t){let{style:r,explode:i,allowReserved:a}=n;e.query[n.name]={value:t,serializationOption:{style:r,explode:i,allowReserved:a}}}else if(n.allowEmptyValue&&t!==void 0){let t=n.name;e.query[t]=e.query[t]||{},e.query[t].allowEmptyValue=!0}}var _R=[`accept`,`authorization`,`content-type`];function vR({req:e,parameter:t,value:n}){if(e.headers=e.headers||{},!(_R.indexOf(t.name.toLowerCase())>
207-1)){if(n!==void 0&&t.content){let r=Object.keys(t.content)[0];e.headers[t.name]=LL(n,r);return}n!==void 0&&!(Array.isArray(n)&&n.length===0)&&(e.headers[t.name]=tD({key:t.name,value:n,style:t.style||`simple`,explode:t.explode!==void 0&&t.explode,escape:!1}))}}function yR({req:e,parameter:t,value:n}){let{name:r}=t;if(e.headers=e.headers||{},n!==void 0&&t.content){let i=Object.keys(t.content)[0],a=LL(n,i);e.headers.Cookie=pR({[r]:a});return}if(n!==void 0&&!(Array.isArray(n)&&n.length===0)){let i=tD({key:t.name,value:n,escape:!1,style:t.style||`form`,explode:t.explode??!1}),a=Array.isArray(n)&&t.explode?`${r}=${i}`:i;e.headers.Cookie=pR({[r]:a})}}var{btoa:bR}=typeof globalThis<`u`?globalThis:typeof self<`u`?self:window;function xR(e,t){let{operation:n,requestBody:r,securities:i,spec:a,attachContentTypeForEmptyPayload:o}=e,{requestContentType:s}=e;t=SR({request:t,securities:i,operation:n,spec:a});let c=n.requestBody||{},l=Object.keys(c.content||{}),u=s&&l.indexOf(s)>-1;if(r||o){if(s&&u)t.headers[`Content-Type`]=s;else if(!s){let e=l[0];e&&(t.headers[`Content-Type`]=e,s=e)}}else s&&u&&(t.headers[`Content-Type`]=s);if(!e.responseContentType&&n.responses){let e=Object.entries(n.responses).filter(([e,t])=>{let n=parseInt(e,10);return n>=200&&n<300&&pS(t.content)}).reduce((e,[,t])=>e.concat(Object.keys(t.content)),[]);e.length>0&&(t.headers.accept=e.join(`, `))}if(r){if(s){if(l.indexOf(s)>-1){if(s===`application/x-www-form-urlencoded`||s===`multipart/form-data`){if(typeof r==`object`){let e=c.content[s]?.encoding??{};t.form={},Object.keys(r).forEach(n=>{let i;try{i=JSON.parse(r[n])}catch{i=r[n]}t.form[n]={value:i,encoding:e[n]||{}}})}else if(typeof r==`string`){let e=c.content[s]?.encoding??{};try{t.form={};let n=JSON.parse(r);Object.entries(n).forEach(([n,r])=>{t.form[n]={value:r,encoding:e[n]||{}}})}catch{t.form=r}}else t.form=r}else t.body=r}}else t.body=r}return t}function SR({request:e,securities:t={},operation:n={},spec:r}){let i={...e},{authorized:a={}}=t,o=n.security||r.security||[],s=a&&!!Object.keys(a).length,c=r?.components?.securitySchemes||{};return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!s||!o||Array.isArray(n.security)&&!n.security.length?e:(o.forEac
207h(e=>{Object.keys(e).forEach(e=>{let t=a[e],n=c[e];if(!t)return;let r=t.value||t,{type:o}=n;if(t){if(o===`apiKey`)n.in===`query`&&(i.query[n.name]=r),n.in===`header`&&(i.headers[n.name]=r),n.in===`cookie`&&(i.cookies[n.name]=r);else if(o===`http`){if(/^basic$/i.test(n.scheme)){let e=bR(`${r.username||``}:${r.password||``}`);i.headers.Authorization=`Basic ${e}`}/^bearer$/i.test(n.scheme)&&(i.headers.Authorization=`Bearer ${r}`)}else if(o===`oauth2`||o===`openIdConnect`){let e=t.token||{},r=e[n[`x-tokenName`]||`access_token`],a=e.token_type;(!a||a.toLowerCase()===`bearer`)&&(a=`Bearer`),i.headers.Authorization=`${a} ${r}`}}})}),i)}function CR(e,t){let{spec:n,operation:r,securities:i,requestContentType:a,responseContentType:o,attachContentTypeForEmptyPayload:s}=e;if(t=wR({request:t,securities:i,operation:r,spec:n}),t.body||t.form||s)a?t.headers[`Content-Type`]=a:Array.isArray(r.consumes)?[t.headers[`Content-Type`]]=r.consumes:Array.isArray(n.consumes)?[t.headers[`Content-Type`]]=n.consumes:r.parameters&&r.parameters.filter(e=>e.type===`file`).length?t.headers[`Content-Type`]=`multipart/form-data`:r.parameters&&r.parameters.filter(e=>e.in===`formData`).length&&(t.headers[`Content-Type`]=`application/x-www-form-urlencoded`);else if(a){let e=r.parameters&&r.parameters.filter(e=>e.in===`body`).length>0,n=r.parameters&&r.parameters.filter(e=>e.in===`formData`).length>0;(e||n)&&(t.headers[`Content-Type`]=a)}return!o&&Array.isArray(r.produces)&&r.produces.length>0&&(t.headers.accept=r.produces.join(`, `)),t}function wR({request:e,securities:t={},operation:n={},spec:r}){let i={...e},{authorized:a={},specSecurity:o=[]}=t,s=n.security||o,c=a&&!!Object.keys(a).length,l=r.securityDefinitions;return i.headers=i.headers||{},i.query=i.query||{},!Object.keys(t).length||!c||!s||Array.isArray(n.security)&&!n.security.length?e:(s.forEach(e=>{Object.keys(e).forEach(e=>{let t=a[e];if(!t)return;let{token:n}=t,r=t.value||t,o=l[e],{type:s}=o,c=o[`x-tokenName`]||`access_token`,u=n&&n[c],d=n&&n.token_type;if(t){if(s===`apiKey`){let e=o.in===`query`?`query`:`headers`;i[e]=i[e]||{},i[e][o.name]=r}else s===`basic`?r.header?i.headers.authorization=r.header:(r.base64=bR(`${r.username||``}:${r.password||``}`),i.headers.authorization=`Basic ${r.base64}`):s===`oauth2`&&u&&(d=!d||d.toLowerCase()===`bearer`?`Bearer`:d,i.headers.authorization=`${d} ${u}`)}})}),i)}function TR(e,t,n){if(!e||typeof e!=`object`||!e.paths||typeof e.paths!=`object`)return null;let{paths:r}=e,i=PD(e);for(let a in r){for(let i in r[a]){if(i.toUpperCase()===`PARAMETERS`||i===`additionalOperations`)continue;let o=r[a][i];if(!o||typeof o!=`object`)continue;let s={spec:e,pathName:a,method:i.toUpperCase(),operation:o},c=t(s);if(n&&c)return s}let{additionalOperations:o}=r[a];if(i&&o&&typeof o==`object`)for(let r of Object.keys(o)){let i=o[r];if(!i||typeof i!=`object`)continue;let s={spec:e,pathName:a,method:r,operation:i},c=t(s);if(n&&c)return s}}}function ER(e,t){return TR(e,t,!0)||null}function DR(e,t){return`${t.toLowerCase()}-${e}`}function OR(e,t){return!e||!e.paths?null:ER(e,({pathName:e,method:n,operation:r})=>{if(!r||typeof r!=`object`)return!1;let i=r.operationId;return[DD(r,e,n),DR(e,n),i].some(e=>e&&e===t)})}var{isHttpUrl:kne}=FS,kR=e=>Array.isArray(e)?e:[],AR=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/,jR=e=>typeof e==`string`&&AR.test(e),MR=(e,{recurse:t=!0,depth:n=1}={})=>{var r,i;if(pS(e)){if(e.type===`object`||e.type===`array`||Array.isArray(e.type)&&((0,zT.default)(r=e.type).call(r,`object`)||(0,zT.default)(i=e.type).call(i,`array`)))return e;if(!(n>3e3)&&t){let r=Array.isArray(e.oneOf)?e.oneOf.find(e=>MR(e,{recurse:t,depth:n+1})):void 0;if(r)return r;let i=Array.isArray(e.anyOf)?e.anyOf.find(e=>MR(e,{recurse:t,depth:n+1})):void 0;if(i)return i}}},NR=({value:e,silentFail:t=!1})=>{try{let n=JSON.parse(e);if(pS(n)||Array.isArray(n))return n;if(!t)throw Error(`Expected JSON serialized object or array`)}catch{if(!t)throw Error(`Could not parse parameter value string as JSON Object or JSON Array`)}return e},PR=e=>{try{return new URL(e)}catch{let t=new URL(e,aE),n=String(e).startsWith(`/`)?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:``,hostname:``,href:``,origin:``,password:``,pathname:n,port:``,protocol:``,search:t.search,searchParams:t.searchParams}}},FR=class extends oy{},IR=(e,t)=>t.filter(t=>t.name===e),LR=e=>{let t={};
207e.forEach(e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e});let n=[];return Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(r=>{n.push(t[e][r])})}),n},RR={buildRequest:BR};function zR({http:e,fetch:t,spec:n,operationId:r,pathName:i,method:a,parameters:o,securities:s,...c}){let l=e||t||yD;i&&a&&!r&&(r=DR(i,a));let u=RR.buildRequest({spec:n,operationId:r,parameters:o,securities:s,http:l,...c});return u.body&&(pS(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)}function BR(e){let{spec:t,operationId:n,responseContentType:r,scheme:i,requestInterceptor:a,responseInterceptor:o,contextUrl:s,userFetch:c,server:l,serverVariables:u,http:d,signal:f,serverVariableEncoder:p}=e,{parameters:m,parameterBuilders:h,baseURL:g}=e,_=FD(t);h||=_?mR:jL;let v={url:``,credentials:d&&d.withCredentials?`include`:`same-origin`,headers:{},cookies:{}};f&&(v.signal=f),a&&(v.requestInterceptor=a),o&&(v.responseInterceptor=o),c&&(v.userFetch=c);let y=OR(t,n);if(!y)throw new FR(`Operation ${n} not found`);let{operation:b={},method:x,pathName:S}=y;if(!jR(x))throw Error(`Invalid HTTP method`);
207if(g??=HR({spec:t,scheme:i,contextUrl:s,server:l,serverVariables:u,pathName:S,method:x,operation:b,serverVariableEncoder:p}),v.url+=g,!n)return delete v.cookies,v;v.url+=S,v.method=x,m||={};let C=t.paths[S]||{};r&&(v.headers.accept=r);let w=LR([].concat(kR(b.parameters),kR(C.parameters)));w.forEach(e=>{let n=h[e.in],r;if(e.in===`body`&&e.schema&&e.schema.properties&&(r=m),r=e&&e.name&&m[e.name],r===void 0?r=e&&e.name&&m[`${e.in}.${e.name}`]:IR(e.name,w).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),r!==null){if(e.default!==void 0&&r===void 0&&(r=e.default),r===void 0&&e.required&&!e.allowEmptyValue)throw Error(`Required parameter ${e.name} is not provided`);_&&typeof r==`string`&&(ux(`type`,e.schema)&&typeof e.schema.type==`string`&&MR(e.schema,{recurse:!1})?r=NR({value:r,silentFail:!1}):(ux(`type`,e.schema)&&Array.isArray(e.schema.type)&&MR(e.schema,{recurse:!1})||!ux(`type`,e.schema)&&MR(e.schema,{recurse:!0}))&&(r=NR({value:r,silentFail:!0}))),n&&n({req:v,parameter:e,value:r,operation:b,spec:t,baseURL:g})}});let T={...e,operation:b};if(v=_?xR(T,v):CR(T,v),v.cookies&&Object.keys(v.cookies).length>0){let e=pR(v.cookies);cS(v.headers.Cookie)?v.headers.Cookie+=`; ${e}`:v.headers.Cookie=e}return v.cookies&&delete v.cookies,pD(v)}var VR=e=>e?e.replace(/\W/g,``):null;function HR(e){return FD(e.spec)?WR(e):KR(e)}var UR=e=>Array.isArray(e)&&e.length>0;function WR({spec:e,pathName:t,method:n,operation:r,server:i,contextUrl:a,serverVariables:o={},serverVariableEncoder:s}){let c=[],l=``,u,d=r?.servers??e?.paths?.[t]?.[(n||``).toLowerCase()]?.servers,f=e?.paths?.[t]?.servers,p=e?.servers;if(c=UR(d)?d:UR(f)?f:UR(p)?p:[oE],i&&(u=c.find(e=>e.url===i),u&&(l=i)),l||=([u]=c,u.url),mL(l,{strict:!0})){let e=Object.entries({...u.variables}).reduce((e,[t,n])=>(e[t]=n.default,e),{});l=vL(l,{...e,...o},{encoder:typeof s==`function`?s:Pb})}return GR(l,a)}function GR(e=``,t=``){let n=PR(e&&t?JS(t,e):e),r=PR(t),i=VR(n.protocol)||VR(r.protocol),a=n.host||r.host,o=n.pathname,s;return s=i&&a?`${i}://${a+o}`:o,s[s.length-1]===`/`?s.slice(0,-1):s}function KR({spec:e,scheme:t,contextUrl:n=``}){let r=PR(n),i=Array.isArray(e.schemes)?e.schemes[0]:null,a=t||i||VR(r.protocol)||`http`,o=e.host||r.host||``,s=e.basePath||``,c;return c=a&&o?`${a}://${o+s}`:s,c[c.length-1]===`/`?c.slice(0,-1):c}var qR=async(e,t,n={})=>{let{returnEntireTree:r,baseDoc:i,requestInterceptor:a,responseInterceptor:o,parameterMacro:s,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=n,d={spec:e,pathDiscriminator:t,baseDoc:i,requestInterceptor:a,responseInterceptor:o,parameterMacro:s,modelPropertyMacro:c,useCircularStructures:l,strategies:u},f=await oL({spec:u.find(t=>t.match(e)).normalize(e),...d,allowMetaPatches:!0,skipNormalization:!ND(e)});return!r&&Array.isArray(t)&&t.length&&(f.spec=t.reduce((e,t)=>e?.[t],f.spec)||null),f},JR=e=>async(t,n,r={})=>qR(t,n,{...e,...r}),YR=Symbol.for(`react.transitional.element`),XR=Symbol.for(`react.portal`),ZR=Symbol.for(`react.fragment`),QR=Symbol.for(`react.strict_mode`),$R=Symbol.for(`react.profiler`),ez=Symbol.for(`react.consumer`),tz=Symbol.for(`react.context`),nz=Symbol.for(`react.forward_ref`),rz=Symbol.for(`react.suspense`),iz=Symbol.for(`react.suspense_list`),az=Symbol.for(`react.memo`),oz=Symbol.for(`react.lazy`),sz=nz,cz=az;function lz(e){if(typeof e==`object`&&e){let{$$typeof:t}=e;switch(t){case YR:switch(e=e.type,e){case ZR:case $R:case QR:case rz:case iz:return e;default:switch(e&&=e.$$typeof,e){case tz:case nz:case oz:case az:return e;case ez:return e;default:return t}}case XR:return t}}}function uz(e){return lz(e)===az}function dz(e,t,n,r,{areStatesEqual:i,areOwnPropsEqual:a,areStatePropsEqual:o}){let s=!1,c,l,u,d,f;function p(i,a){return c=i,l=a,u=e(c,l),d=t(r,l),f=n(u,d,l),s=!0,f}function m(){return u=e(c,l),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function h(){return e.dependsOnOwnProps&&(u=e(c,l)),t.dependsOnOwnProps&&(d=t(r,l)),f=n(u,d,l),f}function g(){let t=e(c,l),r=!o(t,u);return u=t,r&&(f=n(u,d,l)),f}function _(e,t){let n=!a(t,l),r=!i(e,c,t,l);return c=e,l=t,n&&r?m():n?h():r?g():f}return function(e,t){return s?_(e,t):p(e,t)}}
vendor: 4,077 bytes, line 207
207function fz(e,{initMapStateToProps:t,initMapDispatchToProps:n,initMergeProps:r,...i}){return dz(t(e,i),n(e,i),r(e,i),e,i)}function pz(e,t){let n={};for(let r in e){let i=e[r];typeof i==`function`&&(n[r]=(...e)=>t(i(...e)))}return n}function mz(e){return function(t){let n=e(t);function r(){return n}return r.dependsOnOwnProps=!1,r}}function hz(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function gz(e,t){return function(t,{displayName:n}){let r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e,void 0)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=hz(e);let i=r(t,n);return typeof i==`function`&&(r.mapToProps=i,r.dependsOnOwnProps=hz(i),i=r(t,n)),i},r}}function _z(e,t){return(n,r)=>{throw Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${r.wrappedComponentName}.`)}}function vz(e){return e&&typeof e==`object`?mz(t=>pz(e,t)):e?typeof e==`function`?gz(e,`mapDispatchToProps`):_z(e,`mapDispatchToProps`):mz(e=>({dispatch:e}))}function yz(e){return e?typeof e==`function`?gz(e,`mapStateToProps`):_z(e,`mapStateToProps`):mz(()=>({}))}function bz(e,t,n){return{...n,...e,...t}}function xz(e){return function(t,{displayName:n,areMergedPropsEqual:r}){let i=!1,a;return function(t,n,o){let s=e(t,n,o);return i?r(s,a)||(a=s):(i=!0,a=s),a}}}function Sz(e){return e?typeof e==`function`?xz(e):_z(e,`mergeProps`):()=>bz}function Cz(e){e()}function wz(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Cz(()=>{let t=e;for(;t;)t.callback(),t=t.next})},get(){let t=[],n=e;for(;n;)t.push(n),n=n.next;return t},subscribe(n){let r=!0,i=t={callback:n,next:null,prev:t};return i.prev?i.prev.next=i:e=i,function(){r&&e!==null&&(r=!1,i.next?i.next.prev=i.prev:t=i.prev,i.prev?i.prev.next=i.next:e=i.next)}}}}var Tz={notify(){},get:()=>[]};function Ez(e,t){let n,r=Tz,i=0,a=!1;function o(e){u();let t=r.subscribe(e),n=!1;return()=>{n||(n=!0,t(),d())}}function s(){r.notify()}function c(){m.onStateChange&&m.onStateChange()}function l(){return a}function u(){i++,n||(n=t?t.addNestedSub(c):e.subscribe(c),r=wz())}function d(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=Tz)}function f(){a||(a=!0,u())}function p(){a&&(a=!1,d())}let m={addNestedSub:o,notifyNestedSubs:s,handleChangeWrapper:c,isSubscribed:l,trySubscribe:f,tryUnsubscribe:p,getListeners:()=>r};return m}var Dz=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Oz=typeof navigator<`u`&&navigator.product===`ReactNative`,kz=Dz||Oz?B.useLayoutEffect:B.useEffect;function Az(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!==e&&t!==t}function jz(e,t){if(Az(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r=0;r<n.length;r++)if(!Object.prototype.hasOwnProperty.call(t,n[r])||!Az(e[n[r]],t[n[r]]))return!1;return!0}var Mz={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Nz={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Pz={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Fz={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Iz={[sz]:Pz,[cz]:Fz};function Lz(e){return uz(e)?Fz:Iz[e.$$typeof]||Mz}var Rz=Object.defineProperty,zz=Object.getOwnPropertyNames,Bz=Object.getOwnPropertySymbols,Vz=Object.getOwnPropertyDescriptor,Hz=Object.getPrototypeOf,Uz=Object.prototype;function Wz(e,t){if(typeof t!=`string`){if(Uz){let n=Hz(t);n&&n!==Uz&&Wz(e,n)}let n=zz(t);Bz&&(n=n.concat(Bz(t)));let r=Lz(e),i=Lz(t);for(let a=0;a<n.length;++a){let o=n[a];if(!Nz[o]&&!(i&&i[o])&&!(r&&r[o])){let n=Vz(t,o);try{Rz(e,o,n)}catch{}}}}return e}var Gz=Symbol.for(`react-redux-context`),Kz=typeof globalThis<`u`?globalThis:{};function qz(){if(!B.createContext)return{};let e=Kz[Gz]??=new Map,t=e.get(B.createContext);return t||(t=B.createContext(null),e.set(B.createContext,t)),t}
207var Jz=qz(),Yz=[null,null];function Xz(e,t,n){kz(()=>e(...t),n)}function Zz(e,t,n,r,i,a){e.current=r,n.current=!1,i.current&&(i.current=null,a())}function Qz(e,t,n,r,i,a,o,s,c,l,u){if(!e)return()=>{};let d=!1,f=null,p=()=>{if(d||!s.current)return;let e=t.getState(),n,p;try{n=r(e,i.current)}catch(e){p=e,f=e}p||(f=null),n===a.current?o.current||l():(a.current=n,c.current=n,o.current=!0,u())};return n.onStateChange=p,n.trySubscribe(),p(),()=>{if(d=!0,n.tryUnsubscribe(),n.onStateChange=null,f)throw f}}function $z(e,t){return e===t}function eB(e,t,n,{pure:r,areStatesEqual:i=$z,areOwnPropsEqual:a=jz,areStatePropsEqual:o=jz,areMergedPropsEqual:s=jz,forwardRef:c=!1,context:l=Jz}={}){let u=l,d=yz(e),f=vz(t),p=Sz(n),m=!!e;return e=>{let t=e.displayName||e.name||`Component`,n=`Connect(${t})`,r={shouldHandleStateChanges:m,displayName:n,wrappedComponentName:t,WrappedComponent:e,initMapStateToProps:d,initMapDispatchToProps:f,initMergeProps:p,areStatesEqual:i,areStatePropsEqual:o,areOwnPropsEqual:a,areMergedPropsEqual:s};function l(t){let[n,i,a]=B.useMemo(()=>{let{reactReduxForwardedRef:e,...n}=t;return[t.context,e,n]},[t]),o=B.useMemo(()=>{let e=u;return n?.Consumer,e},[n,u]),s=B.useContext(o),c=!!t.store&&!!t.store.getState&&!!t.store.dispatch,l=!!s&&!!s.store,d=c?t.store:s.store,f=l?s.getServerState:d.getState,p=B.useMemo(()=>fz(d.dispatch,r),[d]),[h,g]=B.useMemo(()=>{if(!m)return Yz;let e=Ez(d,c?void 0:s.subscription);return[e,e.notifyNestedSubs.bind(e)]},[d,c,s]),_=B.useMemo(()=>c?s:{...s,subscription:h},[c,s,h]),v=B.useRef(void 0),y=B.useRef(a),b=B.useRef(void 0),x=B.useRef(!1),S=B.useRef(!1),C=B.useRef(void 0);kz(()=>(S.current=!0,()=>{S.current=!1}),[]);let w=B.useMemo(()=>()=>b.current&&a===y.current?b.current:p(d.getState(),a),[d,a]),T=B.useMemo(()=>e=>h?Qz(m,d,h,p,y,v,x,S,b,g,e):()=>{},[h]);Xz(Zz,[y,v,x,a,b,g]);let E;try{E=B.useSyncExternalStore(T,w,f?()=>p(f(),a):w)}catch(e){throw C.current&&(e.message+=` 208The error may be correlated with this previous error: 209${C.current.stack} 210 211`),e}kz(()=>{C.current=void 0,b.current=void 0,v.current=E});let D=B.useMemo(()=>B.createElement(e,{...E,ref:i}),[i,e,E]);return B.useMemo(()=>m?B.createElement(o.Provider,{value:_},D):D,[o,D,_])}let h=B.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=B.forwardRef(function(e,t){return B.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,Wz(t,e)}return Wz(h,e)}}var tB=eB;function nB(e){let{children:t,context:n,serverState:r,store:i}=e,a=B.useMemo(()=>{let e=Ez(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=B.useMemo(()=>i.getState(),[i]);kz(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||Jz;return B.createElement(s.Provider,{value:a},t)}var rB=nB;function iB(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function aB(e,t){if(e==null)return{};var n,r,i=iB(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function oB(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function sB(e){if(Array.isArray(e))return oB(e)}function cB(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function lB(e,t){if(e){if(typeof e==`string`)return oB(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oB(e,t):void 0}}function uB(){throw TypeError(`Invalid attempt to spread non-iterable instance. 212In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dB(e){return sB(e)||cB(e)||lB(e)||uB()}function fB(e){"@babel/helpers - typeof";return fB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},fB(e)}function pB(e,t){if(fB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(fB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function mB(e){var t=pB(e,`string`);return fB(t)==`symbol`?t:t+``}
212function hB(e,t,n){return(t=mB(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gB(){return gB=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gB.apply(null,arguments)}function _B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function vB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?_B(Object(n),!0).forEach(function(t){hB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_B(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function yB(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],`${e[0]}.${e[1]}`,`${e[1]}.${e[0]}`];if(t===3)return[e[0],e[1],e[2],`${e[0]}.${e[1]}`,`${e[0]}.${e[2]}`,`${e[1]}.${e[0]}`,`${e[1]}.${e[2]}`,`${e[2]}.${e[0]}`,`${e[2]}.${e[1]}`,`${e[0]}.${e[1]}.${e[2]}`,`${e[0]}.${e[2]}.${e[1]}`,`${e[1]}.${e[0]}.${e[2]}`,`${e[1]}.${e[2]}.${e[0]}`,`${e[2]}.${e[0]}.${e[1]}`,`${e[2]}.${e[1]}.${e[0]}`];if(t>=4)return[e[0],e[1],e[2],e[3],`${e[0]}.${e[1]}`,`${e[0]}.${e[2]}`,`${e[0]}.${e[3]}`,`${e[1]}.${e[0]}`,`${e[1]}.${e[2]}`,`${e[1]}.${e[3]}`,`${e[2]}.${e[0]}`,`${e[2]}.${e[1]}`,`${e[2]}.${e[3]}`,`${e[3]}.${e[0]}`,`${e[3]}.${e[1]}`,`${e[3]}.${e[2]}`,`${e[0]}.${e[1]}.${e[2]}`,`${e[0]}.${e[1]}.${e[3]}`,`${e[0]}.${e[2]}.${e[1]}`,`${e[0]}.${e[2]}.${e[3]}`,`${e[0]}.${e[3]}.${e[1]}`,`${e[0]}.${e[3]}.${e[2]}`,`${e[1]}.${e[0]}.${e[2]}`,`${e[1]}.${e[0]}.${e[3]}`,`${e[1]}.${e[2]}.${e[0]}`,`${e[1]}.${e[2]}.${e[3]}`,`${e[1]}.${e[3]}.${e[0]}`,`${e[1]}.${e[3]}.${e[2]}`,`${e[2]}.${e[0]}.${e[1]}`,`${e[2]}.${e[0]}.${e[3]}`,`${e[2]}.${e[1]}.${e[0]}`,`${e[2]}.${e[1]}.${e[3]}`,`${e[2]}.${e[3]}.${e[0]}`,`${e[2]}.${e[3]}.${e[1]}`,`${e[3]}.${e[0]}.${e[1]}`,`${e[3]}.${e[0]}.${e[2]}`,`${e[3]}.${e[1]}.${e[0]}`,`${e[3]}.${e[1]}.${e[2]}`,`${e[3]}.${e[2]}.${e[0]}`,`${e[3]}.${e[2]}.${e[1]}`,`${e[0]}.${e[1]}.${e[2]}.${e[3]}`,`${e[0]}.${e[1]}.${e[3]}.${e[2]}`,`${e[0]}.${e[2]}.${e[1]}.${e[3]}`,`${e[0]}.${e[2]}.${e[3]}.${e[1]}`,`${e[0]}.${e[3]}.${e[1]}.${e[2]}`,`${e[0]}.${e[3]}.${e[2]}.${e[1]}`,`${e[1]}.${e[0]}.${e[2]}.${e[3]}`,`${e[1]}.${e[0]}.${e[3]}.${e[2]}`,`${e[1]}.${e[2]}.${e[0]}.${e[3]}`,`${e[1]}.${e[2]}.${e[3]}.${e[0]}`,`${e[1]}.${e[3]}.${e[0]}.${e[2]}`,`${e[1]}.${e[3]}.${e[2]}.${e[0]}`,`${e[2]}.${e[0]}.${e[1]}.${e[3]}`,`${e[2]}.${e[0]}.${e[3]}.${e[1]}`,`${e[2]}.${e[1]}.${e[0]}.${e[3]}`,`${e[2]}.${e[1]}.${e[3]}.${e[0]}`,`${e[2]}.${e[3]}.${e[0]}.${e[1]}`,`${e[2]}.${e[3]}.${e[1]}.${e[0]}`,`${e[3]}.${e[0]}.${e[1]}.${e[2]}`,`${e[3]}.${e[0]}.${e[2]}.${e[1]}`,`${e[3]}.${e[1]}.${e[0]}.${e[2]}`,`${e[3]}.${e[1]}.${e[2]}.${e[0]}`,`${e[3]}.${e[2]}.${e[0]}.${e[1]}`,`${e[3]}.${e[2]}.${e[1]}.${e[0]}`]}var bB={};function xB(e){if(e.length===0||e.length===1)return e;var t=e.join(`.`);return bB[t]||(bB[t]=yB(e)),bB[t]}function SB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return xB(e.filter(function(e){return e!==`token`})).reduce(function(e,t){return vB(vB({},e),n[t])},t)}function CB(e){return e.join(` `)}function wB(e,t){var n=0;return function(r){return n+=1,r.map(function(r,i){return TB({node:r,stylesheet:e,useInlineStyles:t,key:`code-segment-${n}-${i}`})})}}function TB(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,a=e.useInlineStyles,o=e.key,s=t.properties,c=t.type,l=t.tagName,u=t.value;if(c===`text`)return u;if(l){var d=wB(n,a),f;if(!a)f=vB(vB({},s),{},{className:CB(s.className)});else{var p=Object.keys(n).reduce(function(e,t){return t.split(`.`).forEach(function(t){e.includes(t)||e.push(t)}),e},[]),m=s.className&&s.className.includes(`token`)?[`token`]:[],h=s.className&&m.concat(s.className.filter(function(e){return!p.includes(e)}));f=vB(vB({},s),{},{className:CB(h)||void 0,style:SB(s.className,Object.assign({},s.style,i),n)})}var g=d(t.children);return B.createElement(l,gB({key:o},f),g)}}var EB=(function(e,t){return e.listLanguages().indexOf(t)!==-1}),DB=[`language`,`children`,`style`,`customStyle`,`codeTagProps`,`useInlineStyles`,`showLineNumbers`,`showInlineLineNumbers`,`startingLineNumber`,`lineNumberContainerStyle`,`lineNumberStyle`,`wrapLines`,`wrapLongLines`,`lineProps`,`renderer`,`PreTag`,`CodeTag`,`code`,`astGenerator`];function OB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
212t%2?OB(Object(n),!0).forEach(function(t){hB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var AB=/\n/g;function jB(e){return e.match(AB)}function MB(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(e,t){var i=t+n;return B.createElement(`span`,{key:`line-${t}`,className:`react-syntax-highlighter-line-number`,style:typeof r==`function`?r(i):r},`${i} 213`)})}function NB(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:`left`,paddingRight:`10px`}:r,a=e.numberStyle,o=a===void 0?{}:a,s=e.startingLineNumber;return B.createElement(`code`,{style:Object.assign({},n,i)},MB({lines:t.replace(/\n$/,``).split(` 214`),style:o,startingLineNumber:s}))}function PB(e){return`${e.toString().length}.25em`}function FB(e,t){return{type:`element`,tagName:`span`,properties:{key:`line-number--${e}`,className:[`comment`,`linenumber`,`react-syntax-highlighter-line-number`],style:t},children:[{type:`text`,value:e}]}}function IB(e,t,n){var r={display:`inline-block`,minWidth:PB(n),paddingRight:`1em`,textAlign:`right`,userSelect:`none`},i=typeof e==`function`?e(t):e;return kB(kB({},r),i)}function LB(e){var t=e.children,n=e.lineNumber,r=e.lineNumberStyle,i=e.largestLineNumber,a=e.showInlineLineNumbers,o=e.lineProps,s=o===void 0?{}:o,c=e.className,l=c===void 0?[]:c,u=e.showLineNumbers,d=e.wrapLongLines,f=e.wrapLines,p=f!==void 0&&f?kB({},typeof s==`function`?s(n):s):{};if(p.className=p.className?[].concat(dB(p.className.trim().split(/\s+/)),dB(l)):l,n&&a){var m=IB(r,n,i);t.unshift(FB(n,m))}return d&u&&(p.style=kB({display:`flex`},p.style)),{type:`element`,tagName:`span`,properties:p,children:t}}function RB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];e.length===void 0&&(e=[e]);for(var r=0;r<e.length;r++){var i=e[r];if(i.type===`text`)n.push(LB({children:[i],className:dB(new Set(t))}));else if(i.children){var a=t.concat(i.properties?.className||[]);RB(i.children,a).forEach(function(e){return n.push(e)})}}return n}function zB(e,t,n,r,i,a,o,s,c){var l,u=RB(e.value),d=[],f=-1,p=0;function m(e,a){return LB({children:e,lineNumber:a,lineNumberStyle:s,largestLineNumber:o,showInlineLineNumbers:i,lineProps:n,className:arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],showLineNumbers:r,wrapLongLines:c,wrapLines:t})}function h(e,t){if(r&&t&&i){var n=IB(s,t,o);e.unshift(FB(t,n))}return e}function g(e,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return t||r.length>0?m(e,n,r):h(e,n)}for(var _=function(){var e=u[p],t=e.children[0].value;if(jB(t)){var n=t.split(` 215`);n.forEach(function(t,i){var o=r&&d.length+a,s={type:`text`,value:`${t} 216`};if(i===0){var c=g(u.slice(f+1,p).concat(LB({children:[s],className:e.properties.className})),o);d.push(c)}else if(i===n.length-1){var l=u[p+1]&&u[p+1].children&&u[p+1].children[0],m={type:`text`,value:`${t}`};if(l){var h=LB({children:[m],className:e.properties.className});u.splice(p+1,0,h)}else{var _=g([m],o,e.properties.className);d.push(_)}}else{var v=g([s],o,e.properties.className);d.push(v)}}),f=p}p++};p<u.length;)_();if(f!==u.length-1){var v=u.slice(f+1,u.length);if(v&&v.length){var y=g(v,r&&d.length+a);d.push(y)}}return t?d:(l=[]).concat.apply(l,d)}function BB(e){var t=e.rows,n=e.stylesheet,r=e.useInlineStyles;return t.map(function(e,t){return TB({node:e,stylesheet:n,useInlineStyles:r,key:`code-segment-${t}`})})}function VB(e){return e&&e.highlightAuto!==void 0}function HB(e){var t=e.astGenerator,n=e.language,r=e.code,i=e.defaultCodeValue;if(VB(t)){var a=EB(t,n);return n===`text`?{value:i,language:`text`}:a?t.highlight(n,r):t.highlightAuto(r)}try{return n&&n!==`text`?{value:t.highlight(r,n)}:{value:i}}catch{return{value:i}}}function UB(e,t){return function(n){var r=n.language,i=n.children,a=n.style,o=a===void 0?t:a,s=n.customStyle,c=s===void 0?{}:s,l=n.codeTagProps,u=l===void 0?{className:r?`language-${r}`:void 0,style:kB(kB({},o[`code[class*="language-"]`]),o[`code[class*="language-${r}"]`])}:l,d=n.useInlineStyles,f=d===void 0||d,p=n.showLineNumbers,m=p!==void 0&&p,h=n.showInlineLineNumbers,g=h===void 0||h,_=n.startingLineNumber,v=_===void 0?1:_,y=n.lineNumberContainerStyle,b=n.lineNumberStyle,x=b===void 0?{}:b,S=n.wrapLines,C=n.wrapLongLines,w=C!==void 0&&C,T=n.lineProps,E=T===void 0?{}:T,D=n.renderer,O=n.PreTag,k=O===void 0?`pre`:O,A=n.CodeTag,j=A===void 0?`code`:A,M=n.code,N=M===void 0?(Array.isArray(i)?i[0]:i)||``:M,P=n.astGenerator,F=aB(n,DB);P||=e;var I=m?B.createElement(NB,{containerStyle:y,codeStyle:u.style||{},numberStyle:x,startingLineNumber:v,codeString:N}):null,L=o.hljs||o[`pre[class*="language-"]`]||{backgroundColor:`#fff`},ee=VB(P)?`hljs`:`prismjs`,R=f?Object.assign({},F,{style:Object.assign({},L,c)}):Object.assign({},F,{className:F.className?`${ee} ${F.className}`:ee,style:Object.assign({},c)});if(u.style=kB(w?{whiteSpace:`pre-wrap`}:{whiteSpace:`pre`},u.style),!P)return B.createElement(k,R,I,B.createElement(j,u,N));(S===void 0&&D||w)&&(S=!0),D||=BB;var z=[{type:`text`,value:N}],te=HB({astGenerator:P,language:r,code:N,defaultCodeValue:z});te.language===null&&(te.value=z);var ne=v+(N.match(/\n/g)?.length??0),re=zB(te,S,E,m,g,v,ne,x,w);return B.createElement(k,R,B.createElement(j,u,!g&&I,D({rows:re,stylesheet:o,useInlineStyles:f})))}}var WB=n(((e,t)=>{function n(e){return e instanceof Map?e.clear=e.delete=e.set=function(){throw Error(`map is read-only`)}:e instanceof Set&&(e.add=e.clear=e.delete=function(){throw Error(`set is read-only`)}),Object.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){var r=e[t];typeof r==`object`&&!Object.isFrozen(r)&&n(r)}),e}var r=n;r.default=n;var i=class{constructor(e){e.data===void 0&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function a(e){return e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`).replace(/"/g,`"`).replace(/'/g,`'`)}function o(e,...t){let n=Object.create(null);for(let t in e)n[t]=e[t];return t.forEach(function(e){for(let t in e)n[t]=e[t]}),n}var s=`</span>`,c=e=>!!e.kind,l=class{constructor(e,t){this.buffer=``,this.classPrefix=t.classPrefix,e.walk(this)}addText(e){this.buffer+=a(e)}openNode(e){if(!c(e))return;let t=e.kind;e.sublanguage||(t=`${this.classPrefix}${t}`),this.span(t)}closeNode(e){c(e)&&(this.buffer+=s)}value(){return this.buffer}span(e){this.buffer+=`<span class="${e}">`}},u=class e{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){let t={kind:e,children:[]};this.add(t),this.stack.push(t)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){return typeof t==`string`?e.addText(t):t.children&&(e.openNode(t),t.children.forEac
216h(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(t){typeof t!=`string`&&t.children&&(t.children.every(e=>typeof e==`string`)?t.children=[t.children.join(``)]:t.children.forEach(t=>{e._collapse(t)}))}},d=class extends u{constructor(e){super(),this.options=e}addKeyword(e,t){e!==``&&(this.openNode(t),this.addText(e),this.closeNode())}addText(e){e!==``&&this.add(e)}addSublanguage(e,t){let n=e.root;n.kind=t,n.sublanguage=!0,this.add(n)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}};function f(e){return new RegExp(e.replace(/[-/\\^$*+?.()|[\]{}]/g,`\\$&`),`m`)}function p(e){return e?typeof e==`string`?e:e.source:null}function m(...e){return e.map(e=>p(e)).join(``)}function h(...e){return`(`+e.map(e=>p(e)).join(`|`)+`)`}function g(e){return RegExp(e.toString()+`|`).exec(``).length-1}function _(e,t){let n=e&&e.exec(t);return n&&n.index===0}var v=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function y(e,t=`|`){let n=0;return e.map(e=>{n+=1;let t=n,r=p(e),i=``;for(;r.length>0;){let e=v.exec(r);if(!e){i+=r;break}i+=r.substring(0,e.index),r=r.substring(e.index+e[0].length),e[0][0]===`\\`&&e[1]?i+=`\\`+String(Number(e[1])+t):(i+=e[0],e[0]===`(`&&n++)}return i}).map(e=>`(${e})`).join(t)}var b=/\b\B/,x=`[a-zA-Z]\\w*`,S=`[a-zA-Z_]\\w*`,C=`\\b\\d+(\\.\\d+)?`,w=`(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)`,T=`\\b(0b[01]+)`,E=`!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~`,D=(e={})=>{let t=/^#![ ]*\//;return e.binary&&(e.begin=m(t,/.*\b/,e.binary,/\b.*/)),o({className:`meta`,begin:t,end:/$/,relevance:0,"on:begin":(e,t)=>{e.index!==0&&t.ignoreMatch()}},e)},O={begin:`\\\\[\\s\\S]`,relevance:0},k={className:`string`,begin:`'`,end:`'`,illegal:`\\n`,contains:[O]},A={className:`string`,begin:`"`,end:`"`,illegal:`\\n`,contains:[O]},j={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/},M=function(e,t,n={}){let r=o({className:`comment`,begin:e,end:t,contains:[]},n);return r.contains.push(j),r.contains.push({className:`doctag`,begin:`(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):`,relevance:0}),r},N=M(`//`,`$`),P=M(`/\\*`,`\\*/`),F=M(`#`,`$`),I=Object.freeze({__proto__:null,MATCH_NOTHING_RE:b,IDENT_RE:x,UNDERSCORE_IDENT_RE:S,NUMBER_RE:C,C_NUMBER_RE:w,BINARY_NUMBER_RE:T,RE_STARTERS_RE:E,SHEBANG:D,BACKSLASH_ESCAPE:O,APOS_STRING_MODE:k,QUOTE_STRING_MODE:A,PHRASAL_WORDS_MODE:j,COMMENT:M,C_LINE_COMMENT_MODE:N,C_BLOCK_COMMENT_MODE:P,HASH_COMMENT_MODE:F,NUMBER_MODE:{className:`number`,begin:C,relevance:0},C_NUMBER_MODE:{className:`number`,begin:w,relevance:0},BINARY_NUMBER_MODE:{className:`number`,begin:T,relevance:0},CSS_NUMBER_MODE:{className:`number`,begin:`\\b\\d+(\\.\\d+)?(%|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},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:`regexp`,begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]}]},TITLE_MODE:{className:`title`,begin:x,relevance:0},UNDERSCORE_TITLE_MODE:{className:`title`,begin:S,relevance:0},METHOD_GUARD:{begin:`\\.\\s*[a-zA-Z_]\\w*`,relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{t.data._beginMatch!==e[1]&&t.ignoreMatch()}})}});function L(e,t){e.input[e.index-1]===`.`&&t.ignoreMatch()}function ee(e,t){t&&e.beginKeywords&&(e.begin=`\\b(`+e.beginKeywords.split(` `).join(`|`)+`)(?!\\.)(?=\\b|\\s)`,e.__beforeBegin=L,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,e.relevance===void 0&&(e.relevance=0))}function R(e,t){Array.isArray(e.illegal)&&(e.illegal=h(...e.illegal))}function z(e,t){if(e.match){if(e.begin||e.end)throw Error(`begin & end are not supported with match`);e.begin=e.match,delete e.match}}function te(e,t){e.relevance===void 0&&(e.relevance=1)}var ne=[`of`,`and`,`for`,`in`,`not`,`or`,`if`,`then`,`parent`,`list`,`value`],re=`keyword`;function ie(e,t,n=re){let r={};return typeof e==`string`?i(n,e.split(` `)):Array.isArray(e)?i(n,e):Object.keys(e).forEach(function(n){Object.assign(r,ie(e[n],t,n))}),r;function i(e,n){t&&(n=n.map(e=>
216e.toLowerCase())),n.forEach(function(t){let n=t.split(`|`);r[n[0]]=[e,ae(n[0],n[1])]})}}function ae(e,t){return t?Number(t):+!oe(e)}function oe(e){return ne.includes(e.toLowerCase())}function se(e,{plugins:t}){function n(t,n){return new RegExp(p(t),`m`+(e.case_insensitive?`i`:``)+(n?`g`:``))}class r{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,t){t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),this.matchAt+=g(e)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let e=this.regexes.map(e=>e[1]);this.matcherRe=n(y(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;let t=this.matcherRe.exec(e);if(!t)return null;let n=t.findIndex((e,t)=>t>0&&e!==void 0),r=this.matchIndexes[n];return t.splice(0,n),Object.assign(t,r)}}class i{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];let t=new r;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(e,t){this.rules.push([e,t]),t.type===`begin`&&this.count++}exec(e){let t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex;let n=t.exec(e);if(this.resumingScanAtSamePosition()&&!(n&&n.index===this.lastIndex)){let t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}return n&&(this.regexIndex+=n.position+1,this.regexIndex===this.count&&this.considerAll()),n}}function a(e){let t=new i;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:`begin`})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:`end`}),e.illegal&&t.addRule(e.illegal,{type:`illegal`}),t}function s(t,r){let i=t;if(t.isCompiled)return i;[z].forEach(e=>e(t,r)),e.compilerExtensions.forEach(e=>e(t,r)),t.__beforeBegin=null,[ee,R,te].forEach(e=>e(t,r)),t.isCompiled=!0;let o=null;if(typeof t.keywords==`object`&&(o=t.keywords.$pattern,delete t.keywords.$pattern),t.keywords&&=ie(t.keywords,e.case_insensitive),t.lexemes&&o)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return o=o||t.lexemes||/\w+/,i.keywordPatternRe=n(o,!0),r&&(t.begin||=/\B|\b/,i.beginRe=n(t.begin),t.endSameAsBegin&&(t.end=t.begin),!t.end&&!t.endsWithParent&&(t.end=/\B|\b/),t.end&&(i.endRe=n(t.end)),i.terminatorEnd=p(t.end)||``,t.endsWithParent&&r.terminatorEnd&&(i.terminatorEnd+=(t.end?`|`:``)+r.terminatorEnd)),t.illegal&&(i.illegalRe=n(t.illegal)),t.contains||=[],t.contains=[].concat(...t.contains.map(function(e){return le(e===`self`?t:e)})),t.contains.forEach(function(e){s(e,i)}),t.starts&&s(t.starts,r),i.matcher=a(i),i}if(e.compilerExtensions||=[],e.contains&&e.contains.includes(`self`))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return e.classNameAliases=o(e.classNameAliases||{}),s(e)}function ce(e){return e?e.endsWithParent||ce(e.starts):!1}function le(e){return e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(function(t){return o(e,{variants:null},t)})),e.cachedVariants?e.cachedVariants:ce(e)?o(e,{starts:e.starts?o(e.starts):null}):Object.isFrozen(e)?o(e):e}var ue=`10.7.3`;function de(e){return!!(e||e===``)}function fe(e){let t={props:[`language`,`code`,`autodetect`],data:function(){return{detectedLanguage:``,unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?``:`hljs `+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!e.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,a(this.code);let t={};return this.autoDetect?(t=e.highlightAuto(this.code),this.detectedLanguage=t.language):(t=e.highlight(this.language,this.code,this.ignoreIllegals),this.detectedLanguage=this.language),t.value},autoDetect(){return!this.language||de(this.autodetect)},ignoreIllegals(){return!0}},render(e){return e(`pre`,{},[e(`code`,{class:this.className,domProps:{innerHTML:this.highlighted}})])}};return{Component:t,VuePlugin:{install(e){e.component(`highlightjs`,t)}}}}var pe={"after:highlightElement":({el:e,result:t,text:n})=>{let r=he(e);if(!r.length)return;let i=document.createElement(`div`);i.innerHTML=t.value,t.value=ge(r,he(i),n)}};
216function me(e){return e.nodeName.toLowerCase()}function he(e){let t=[];return(function e(n,r){for(let i=n.firstChild;i;i=i.nextSibling)i.nodeType===3?r+=i.nodeValue.length:i.nodeType===1&&(t.push({event:`start`,offset:r,node:i}),r=e(i,r),me(i).match(/br|hr|img|input/)||t.push({event:`stop`,offset:r,node:i}));return r})(e,0),t}function ge(e,t,n){let r=0,i=``,o=[];function s(){return!e.length||!t.length?e.length?e:t:e[0].offset===t[0].offset?t[0].event===`start`?e:t:e[0].offset<t[0].offset?e:t}function c(e){function t(e){return` `+e.nodeName+`="`+a(e.value)+`"`}i+=`<`+me(e)+[].map.call(e.attributes,t).join(``)+`>`}function l(e){i+=`</`+me(e)+`>`}function u(e){(e.event===`start`?c:l)(e.node)}for(;e.length||t.length;){let t=s();if(i+=a(n.substring(r,t[0].offset)),r=t[0].offset,t===e){o.reverse().forEach(l);do u(t.splice(0,1)[0]),t=s();while(t===e&&t.length&&t[0].offset===r);o.reverse().forEach(c)}else t[0].event===`start`?o.push(t[0].node):o.pop(),u(t.splice(0,1)[0])}return i+a(n.substr(r))}var _e={},ve=e=>{console.error(e)},ye=(e,...t)=>{console.log(`WARN: ${e}`,...t)},be=(e,t)=>{_e[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),_e[`${e}/${t}`]=!0)},xe=a,Se=o,Ce=Symbol(`nomatch`);t.exports=function(e){let t=Object.create(null),n=Object.create(null),a=[],o=!0,s=/(^(<[^>]+>|\t|)+|\n)/gm,c=`Could not find the language '{}', did you forget to load/include a language module?`,l={disableAutodetect:!0,name:`Plain text`,contains:[]},u={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:`hljs-`,tabReplace:null,useBR:!1,languages:null,__emitter:d};function p(e){return u.noHighlightRe.test(e)}function m(e){let t=e.className+` `;t+=e.parentNode?e.parentNode.className:``;let n=u.languageDetectRe.exec(t);if(n){let t=L(n[1]);return t||(ye(c.replace(`{}`,n[1])),ye(`Falling back to no-highlight mode for this block.`,e)),t?n[1]:`no-highlight`}return t.split(/\s+/).find(e=>p(e)||L(e))}function h(e,t,n,r){let i=``,a=``;typeof t==`object`?(i=e,n=t.ignoreIllegals,a=t.language,r=void 0):(be(`10.7.0`,`highlight(lang, code, ...args) has been deprecated.`),be(`10.7.0`,`Please use highlight(code, options) instead. 217https://github.com/highlightjs/highlight.js/issues/2277`),a=e,i=t);let o={code:i,language:a};ne(`before:highlight`,o);let s=o.result?o.result:g(o.language,o.code,n,r);return s.code=o.code,ne(`after:highlight`,s),s}function g(e,n,r,s){function l(e,t){let n=E.case_insensitive?t[0].toLowerCase():t[0];return Object.prototype.hasOwnProperty.call(e.keywords,n)&&e.keywords[n]}function d(){if(!k.keywords){j.addText(M);return}let e=0;k.keywordPatternRe.lastIndex=0;let t=k.keywordPatternRe.exec(M),n=``;for(;t;){n+=M.substring(e,t.index);let r=l(k,t);if(r){let[e,i]=r;if(j.addText(n),n=``,N+=i,e.startsWith(`_`))n+=t[0];else{let n=E.classNameAliases[e]||e;j.addKeyword(t[0],n)}}else n+=t[0];e=k.keywordPatternRe.lastIndex,t=k.keywordPatternRe.exec(M)}n+=M.substr(e),j.addText(n)}function p(){if(M===``)return;let e=null;if(typeof k.subLanguage==`string`){if(!t[k.subLanguage]){j.addText(M);return}e=g(k.subLanguage,M,!0,A[k.subLanguage]),A[k.subLanguage]=e.top}else e=y(M,k.subLanguage.length?k.subLanguage:null);k.relevance>0&&(N+=e.relevance),j.addSublanguage(e.emitter,e.language)}function m(){k.subLanguage==null?d():p(),M=``}function h(e){return e.className&&j.openNode(E.classNameAliases[e.className]||e.className),k=Object.create(e,{parent:{value:k}}),k}function v(e,t,n){let r=_(e.endRe,n);if(r){if(e[`on:end`]){let n=new i(e);e[`on:end`](t,n),n.isMatchIgnored&&(r=!1)}if(r){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return v(e.parent,t,n)}function b(e){return k.matcher.regexIndex===0?(M+=e[0],1):(I=!0,0)}function x(e){let t=e[0],n=e.rule,r=new i(n),a=[n.__beforeBegin,n[`on:begin`]];for(let n of a)if(n&&(n(e,r),r.isMatchIgnored))return b(t);return n&&n.endSameAsBegin&&(n.endRe=f(t)),n.skip?M+=t:(n.excludeBegin&&(M+=t),m(),!n.returnBegin&&!n.excludeBegin&&(M=t)),h(n),n.returnBegin?0:t.length}function S(e){let t=e[0],r=n.substr(e.index),i=v(k,e,r);if(!i)return Ce;let a=k;a.skip?M+=t:(a.returnEnd||a.excludeEnd||(M+=t),m(),a.excludeEnd&&(M=t));do k.className&&j.closeNode(),!k.skip&&!k.subLanguage&&(N+=k.relevance),k=k.parent;while(k!==i.parent);return i.starts&&(i.endSameAsBegin&&(i.starts.endRe=i.endRe),h(i.starts)),a.returnEnd?0:t.length}function C(){let e=[];for(let t=k;t!==E;t=t.parent)t.className&&e.unshift(t.className);
217e.forEach(e=>j.openNode(e))}let w={};function T(t,i){let a=i&&i[0];if(M+=t,a==null)return m(),0;if(w.type===`begin`&&i.type===`end`&&w.index===i.index&&a===``){if(M+=n.slice(i.index,i.index+1),!o){let t=Error(`0 width match regex`);throw t.languageName=e,t.badRule=w.rule,t}return 1}if(w=i,i.type===`begin`)return x(i);if(i.type===`illegal`&&!r){let e=Error(`Illegal lexeme "`+a+`" for mode "`+(k.className||`<unnamed>`)+`"`);throw e.mode=k,e}if(i.type===`end`){let e=S(i);if(e!==Ce)return e}if(i.type===`illegal`&&a===``)return 1;if(F>1e5&&F>i.index*3)throw Error(`potential infinite loop, way more iterations than matches`);return M+=a,a.length}let E=L(e);if(!E)throw ve(c.replace(`{}`,e)),Error(`Unknown language: "`+e+`"`);let D=se(E,{plugins:a}),O=``,k=s||D,A={},j=new u.__emitter(u);C();let M=``,N=0,P=0,F=0,I=!1;try{for(k.matcher.considerAll();;){F++,I?I=!1:k.matcher.considerAll(),k.matcher.lastIndex=P;let e=k.matcher.exec(n);if(!e)break;let t=T(n.substring(P,e.index),e);P=e.index+t}return T(n.substr(P)),j.closeAllNodes(),j.finalize(),O=j.toHTML(),{relevance:Math.floor(N),value:O,language:e,illegal:!1,emitter:j,top:k}}catch(t){if(t.message&&t.message.includes(`Illegal`))return{illegal:!0,illegalBy:{msg:t.message,context:n.slice(P-100,P+100),mode:t.mode},sofar:O,relevance:0,value:xe(n),emitter:j};if(o)return{illegal:!1,relevance:0,value:xe(n),emitter:j,language:e,top:k,errorRaised:t};throw t}}function v(e){let t={relevance:0,emitter:new u.__emitter(u),value:xe(e),illegal:!1,top:l};return t.emitter.addText(e),t}function y(e,n){n=n||u.languages||Object.keys(t);let r=v(e),i=n.filter(L).filter(R).map(t=>g(t,e,!1));i.unshift(r);let[a,o]=i.sort((e,t)=>{if(e.relevance!==t.relevance)return t.relevance-e.relevance;if(e.language&&t.language){if(L(e.language).supersetOf===t.language)return 1;if(L(t.language).supersetOf===e.language)return-1}return 0}),s=a;return s.second_best=o,s}function b(e){return u.tabReplace||u.useBR?e.replace(s,e=>e===` 218`?u.useBR?`<br>`:e:u.tabReplace?e.replace(/\t/g,u.tabReplace):e):e}function x(e,t,r){let i=t?n[t]:r;e.classList.add(`hljs`),i&&e.classList.add(i)}let S={"before:highlightElement":({el:e})=>{u.useBR&&(e.innerHTML=e.innerHTML.replace(/\n/g,``).replace(/<br[ /]*>/g,` 219`))},"after:highlightElement":({result:e})=>{u.useBR&&(e.value=e.value.replace(/\n/g,`<br>`))}},C=/^(<[^>]+>|\t)+/gm,w={"after:highlightElement":({result:e})=>{u.tabReplace&&(e.value=e.value.replace(C,e=>e.replace(/\t/g,u.tabReplace)))}};function T(e){let t=null,n=m(e);if(p(n))return;ne(`before:highlightElement`,{el:e,language:n}),t=e;let r=t.textContent,i=n?h(r,{language:n,ignoreIllegals:!0}):y(r);ne(`after:highlightElement`,{el:e,result:i,text:r}),e.innerHTML=i.value,x(e,n,i.language),e.result={language:i.language,re:i.relevance,relavance:i.relevance},i.second_best&&(e.second_best={language:i.second_best.language,re:i.second_best.relevance,relavance:i.second_best.relevance})}function E(e){e.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`)),u=Se(u,e)}let D=()=>{D.called||(D.called=!0,be(`10.6.0`,`initHighlighting() is deprecated. Use highlightAll() instead.`),document.querySelectorAll(`pre code`).forEach(T))};function O(){be(`10.6.0`,`initHighlightingOnLoad() is deprecated. Use highlightAll() instead.`),k=!0}let k=!1;function A(){if(document.readyState===`loading`){k=!0;return}document.querySelectorAll(`pre code`).forEach(T)}function j(){k&&A()}typeof window<`u`&&window.addEventListener&&window.addEventListener(`DOMContentLoaded`,j,!1);function M(n,r){let i=null;try{i=r(e)}catch(e){if(ve(`Language definition for '{}' could not be registered.`.replace(`{}`,n)),o)ve(e);else throw e;i=l}i.name||(i.name=n),t[n]=i,i.rawDefinition=r.bind(null,e),i.aliases&&ee(i.aliases,{languageName:n})}function N(e){delete t[e];for(let t of Object.keys(n))n[t]===e&&delete n[t]}function P(){return Object.keys(t)}function F(e){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`);let t=L(e);if(t)return t;throw Error(`The '{}' language is required, but not loaded.`.replace(`{}`,e))}function L(e){return e=(e||``).toLowerCase(),t[e]||t[n[e]]}function ee(e,{languageName:t}
219){typeof e==`string`&&(e=[e]),e.forEach(e=>{n[e.toLowerCase()]=t})}function R(e){let t=L(e);return t&&!t.disableAutodetect}function z(e){e[`before:highlightBlock`]&&!e[`before:highlightElement`]&&(e[`before:highlightElement`]=t=>{e[`before:highlightBlock`](Object.assign({block:t.el},t))}),e[`after:highlightBlock`]&&!e[`after:highlightElement`]&&(e[`after:highlightElement`]=t=>{e[`after:highlightBlock`](Object.assign({block:t.el},t))})}function te(e){z(e),a.push(e)}function ne(e,t){let n=e;a.forEach(function(e){e[n]&&e[n](t)})}function re(e){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`),b(e)}function ie(e){return be(`10.7.0`,`highlightBlock will be removed entirely in v12.0`),be(`10.7.0`,`Please use highlightElement now.`),T(e)}Object.assign(e,{highlight:h,highlightAuto:y,highlightAll:A,fixMarkup:re,highlightElement:T,highlightBlock:ie,configure:E,initHighlighting:D,initHighlightingOnLoad:O,registerLanguage:M,unregisterLanguage:N,listLanguages:P,getLanguage:L,registerAliases:ee,requireLanguage:F,autoDetection:R,inherit:Se,addPlugin:te,vuePlugin:fe(e).VuePlugin}),e.debugMode=function(){o=!1},e.safeMode=function(){o=!0},e.versionString=ue;for(let e in I)typeof I[e]==`object`&&r(I[e]);return Object.assign(e,I),e.addPlugin(S),e.addPlugin(pe),e.addPlugin(w),e}({})})),GB=n(((e,t)=>{(function(){var e=t===void 0?function(){return this||(0,eval)(`this`)}():t.exports=i;e.format=i,e.vsprintf=r,typeof console<`u`&&typeof console.log==`function`&&(e.printf=n);function n(){console.log(i.apply(null,arguments))}function r(e,t){return i.apply(null,[e].concat(t))}function i(e){for(var t=1,n=[].slice.call(arguments),r=0,i=e.length,a=``,o,s=!1,c,l,u=!1,d,f=function(){return n[t++]},p=function(){for(var t=``;/\d/.test(e[r]);)t+=e[r++],o=e[r];return t.length>0?parseInt(t):null};r<i;++r)if(o=e[r],s)switch(s=!1,o==`.`?(u=!1,o=e[++r]):o==`0`&&e[r+1]==`.`?(u=!0,r+=2,o=e[r]):u=!0,d=p(),o){case`b`:a+=parseInt(f(),10).toString(2);break;case`c`:c=f(),typeof c==`string`||c instanceof String?a+=c:a+=String.fromCharCode(parseInt(c,10));break;case`d`:a+=parseInt(f(),10);break;case`f`:l=String(parseFloat(f()).toFixed(d||6)),a+=u?l:l.replace(/^0/,``);break;case`j`:a+=JSON.stringify(f());break;case`o`:a+=`0`+parseInt(f(),10).toString(8);break;case`s`:a+=f();break;case`x`:a+=`0x`+parseInt(f(),10).toString(16);break;case`X`:a+=`0x`+parseInt(f(),10).toString(16).toUpperCase();break;default:a+=o}else o===`%`?s=!0:a+=o;return a}})()})),KB=n(((e,t)=>{var n=GB(),r=i(Error);t.exports=r,r.eval=i(EvalError),r.range=i(RangeError),r.reference=i(ReferenceError),r.syntax=i(SyntaxError),r.type=i(TypeError),r.uri=i(URIError),r.create=i;function i(e){return t.displayName=e.displayName||e.name,t;function t(t){return t&&=n.apply(null,arguments),new e(t)}}})),qB=r(n((e=>{var t=WB(),n=KB();e.highlight=i,e.highlightAuto=a,e.registerLanguage=o,e.listLanguages=s,e.registerAlias=c,l.prototype.addText=f,l.prototype.addKeyword=u,l.prototype.addSublanguage=d,l.prototype.openNode=p,l.prototype.closeNode=m,l.prototype.closeAllNodes=g,l.prototype.finalize=g,l.prototype.toHTML=h;var r=`hljs-`;function i(e,i,a){var o=t.configure({}),s=(a||{}).prefix,c;if(typeof e!=`string`)throw n("Expected `string` for name, got `%s`",e);if(!t.getLanguage(e))throw n("Unknown language: `%s` is not registered",e);if(typeof i!=`string`)throw n("Expected `string` for value, got `%s`",i);if(s??=r,t.configure({__emitter:l,classPrefix:s}),c=t.highlight(i,{language:e,ignoreIllegals:!0}),t.configure(o||{}),c.errorRaised)throw c.errorRaised;return{relevance:c.relevance,language:c.language,value:c.emitter.rootNode.children}}function a(e,a){var o=a||{},s=o.subset||t.listLanguages(),c=o.prefix,l=s.length,u=-1,d,f,p,m;if(c??=r,typeof e!=`string`)throw n("Expected `string` for value, got `%s`",e);for(f={relevance:0,language:null,value:[]},d={relevance:0,language:null,value:[]};++u<l;)m=s[u],t.getLanguage(m)&&(p=i(m,e,a),p.language=m,p.relevance>f.relevance&&(f=p),p.relevance>d.relevance&&(f=d,d=p));return f.language&&(d.secondBest=f),d}function o(e,n){t.registerLanguage(e,n)}function s(){return t.listLanguages()}function c(e,n){var r=e,i;for(i in n&&(r={},r[e]=n),r)t.registerAliases(r[i],{languageName:i})}function l(e){this.options=e,this.rootNode={children:[]},this.stack=[this.rootNode]}function u(e,t){this.openNode(t),this.addText(e),this.closeNode()}function d(e,t){var n=this.stack,r=n[n.length-1],i=e.rootNode.children,a=t?{type:`element`,tagName:`span`,properties:{className:[t]},children:i}:i;r.children=r.children.concat(a)}function f(e){var t=this.stack,n,r;e!==``&&(n=t[t.length-1],r=n.children[n.children.length-1],r&&r.type===`text`?r.value+=e:n.children.push({type:`text`,value:e}))}function p(e){var t=this.stack,n=this.options.classPrefix+e,r=t[t.length-1],i={type:`element`,tagName:`span`,properties:{className:[n]},children:[]};r.children.push(i),t.push(i)}function m(){this.stack.pop()}function h(){return``}function g(){}}))()),JB=UB(qB.default,{});JB.registerLanguage=qB.registerLanguage;var YB=r(n(((e,t)=>{var n=`[A-Za-z$_][0-9A-Za-z$_]*`,r=`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`.split(`.`),i=[`true`,`false`,`null`,`undefined`,`NaN`,`Infinity`],a=`
219setInterval.setTimeout.clearInterval.clearTimeout.require.exports.eval.isFinite.isNaN.parseFloat.parseInt.decodeURI.decodeURIComponent.encodeURI.encodeURIComponent.escape.unescape.arguments.this.super.console.window.document.localStorage.module.global`.split(`.`).concat(`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`.split(`.`),[`EvalError`,`InternalError`,`RangeError`,`ReferenceError`,`SyntaxError`,`TypeError`,`URIError`]);function o(e){return e?typeof e==`string`?e:e.source:null}function s(e){return c(`(?=`,e,`)`)}function c(...e){return e.map(e=>o(e)).join(``)}function l(e){let t=(e,{after:t})=>{let n=`</`+e[0].slice(1);return e.input.indexOf(n,t)!==-1},o=n,l={begin:`<>`,end:`</>`},u={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/,isTrulyOpeningTag:(e,n)=>{let r=e[0].length+e.index,i=e.input[r];if(i===`<`){n.ignoreMatch();return}i===`>`&&(t(e,{after:r})||n.ignoreMatch())}},d={$pattern:n,keyword:r,literal:i,built_in:a},f=`[0-9](_?[0-9])*`,p=`\\.(${f})`,m=`0|[1-9](_?[0-9])*|0[0-7]*[89][0-9]*`,h={className:`number`,variants:[{begin:`(\\b(${m})((${p})|\\.)?|(${p}))[eE][+-]?(${f})\\b`},{begin:`\\b(${m})\\b((${p})\\b|\\.)?|(${p})\\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},g={className:`subst`,begin:`\\$\\{`,end:`\\}`,keywords:d,contains:[]},_={begin:"html`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:`xml`}},v={begin:"css`",end:``,starts:{end:"`",returnEnd:!1,contains:[e.BACKSLASH_ESCAPE,g],subLanguage:`css`}},y={className:`string`,begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE,g]},b={className:`comment`,variants:[e.COMMENT(/\/\*\*(?!\/)/,`\\*/`,{relevance:0,contains:[{className:`doctag`,begin:`@[A-Za-z]+`,contains:[{className:`type`,begin:`\\{`,end:`\\}`,relevance:0},{className:`variable`,begin:o+`(?=\\s*(-)|$)`,endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE]},x=[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,v,y,h,e.REGEXP_MODE];g.contains=x.concat({begin:/\{/,end:/\}/,keywords:d,contains:[`self`].concat(x)});let S=[].concat(b,g.contains),C=S.concat([{begin:/\(/,end:/\)/,keywords:d,contains:[`self`].concat(S)}]),w={className:`params`,begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:C};return{name:`Javascript`,aliases:[`js`,`jsx`,`mjs`,`cjs`],keywords:d,exports:{PARAMS_CONTAINS:C},illegal:/#(?![$_A-z])/,contains:[e.SHEBANG({label:`shebang`,binary:`node`,relevance:5}),{label:`use_strict`,className:`meta`,relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,_,v,y,b,h,{begin:c(/[{,\n]\s*/,s(c(/(((\/\/.*$)|(\/\*(\*[^/]|[^*])*\*\/))\s*)*/,o+`\\s*:`))),relevance:0,contains:[{className:`attr`,begin:o+s(`\\s*:`),relevance:0}]},{begin:`(`+e.RE_STARTERS_RE+`|\\b(case|return|throw)\\b)\\s*`,keywords:`return throw case`,contains:[b,e.REGEXP_MODE,{className:`function`,begin:`(\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)|`+e.UNDERSCORE_IDENT_RE+`)\\s*=>`,returnBegin:!0,end:`\\s*=>`,contains:[{className:`params`,variants:[{begin:e.UNDERSCORE_IDENT_RE,relevance:0},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:d,contains:C}]}]},{begin:/,/,relevance:0},{className:``,begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:l.begin,end:l.end},{begin:u.begin,"on:begin":u.isTrulyOpeningTag,end:u.end}],subLanguage:`xml`,contains:[{begin:u.begin,end:u.end,skip:!0,contains:[`self`]}]}],relevance:0},{className:`function`,beginKeywords:`function`,end:/[{;]/,excludeEnd:!0,keywords:d,contains:[`self`,e.inherit(e.TITLE_MODE,{begin:o}),w],illegal:/%/},{beginKeywords:`while if switch catch for`}
219,{className:`function`,begin:e.UNDERSCORE_IDENT_RE+`\\([^()]*(\\([^()]*(\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*\\{`,returnBegin:!0,contains:[w,e.inherit(e.TITLE_MODE,{begin:o})]},{variants:[{begin:`\\.`+o},{begin:`\\$`+o}],relevance:0},{className:`class`,beginKeywords:`class`,end:/[{;=]/,excludeEnd:!0,illegal:/[:"[\]]/,contains:[{beginKeywords:`extends`},e.UNDERSCORE_TITLE_MODE]},{begin:/\b(?=constructor)/,end:/[{;]/,excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:o}),`self`,w]},{begin:`(get|set)\\s+(?=`+o+`\\()`,end:/\{/,keywords:`get set`,contains:[e.inherit(e.TITLE_MODE,{begin:o}),{begin:/\(\)/},w]},{begin:/\$[(.]/}]}}t.exports=l}))()).default,XB=n(((e,t)=>{function n(e){let t={literal:`true false null`},n=[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE],r=[e.QUOTE_STRING_MODE,e.C_NUMBER_MODE],i={end:`,`,endsWithParent:!0,excludeEnd:!0,contains:r,keywords:t},a={begin:/\{/,end:/\}/,contains:[{className:`attr`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE],illegal:`\\n`},e.inherit(i,{begin:/:/})].concat(n),illegal:`\\S`},o={begin:`\\[`,end:`\\]`,contains:[e.inherit(i)],illegal:`\\S`};return r.push(a,o),n.forEach(function(e){r.push(e)}),{name:`JSON`,contains:r,keywords:t,illegal:`\\S`}}t.exports=n})),ZB=r(XB()).default,QB=r(n(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(e){return a(`(?=`,e,`)`)}function i(e){return a(`(`,e,`)?`)}function a(...e){return e.map(e=>n(e)).join(``)}function o(...e){return`(`+e.map(e=>n(e)).join(`|`)+`)`}function s(e){let t=a(/[A-Z_]/,i(/[A-Z0-9_.-]*:/),/[A-Z0-9_.-]*/),n=/[A-Za-z0-9._:-]+/,s={className:`symbol`,begin:/&[a-z]+;|&#[0-9]+;|&#x[a-f0-9]+;/},c={begin:/\s/,contains:[{className:`meta-keyword`,begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]},l=e.inherit(c,{begin:/\(/,end:/\)/}),u=e.inherit(e.APOS_STRING_MODE,{className:`meta-string`}),d=e.inherit(e.QUOTE_STRING_MODE,{className:`meta-string`}),f={endsWithParent:!0,illegal:/</,relevance:0,contains:[{className:`attr`,begin:n,relevance:0},{begin:/=\s*/,relevance:0,contains:[{className:`string`,endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{name:`HTML, XML`,aliases:[`html`,`xhtml`,`rss`,`atom`,`xjb`,`xsd`,`xsl`,`plist`,`wsf`,`svg`],case_insensitive:!0,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,relevance:10,contains:[c,d,u,l,{begin:/\[/,end:/\]/,contains:[{className:`meta`,begin:/<![a-z]/,end:/>/,contains:[c,l,d,u]}]}]},e.COMMENT(/<!--/,/-->/,{relevance:10}),{begin:/<!\[CDATA\[/,end:/\]\]>/,relevance:10},s,{className:`meta`,begin:/<\?xml/,end:/\?>/,relevance:10},{className:`tag`,begin:/<style(?=\s|>)/,end:/>/,keywords:{name:`style`},contains:[f],starts:{end:/<\/style>/,returnEnd:!0,subLanguage:[`css`,`xml`]}},{className:`tag`,begin:/<script(?=\s|>)/,end:/>/,keywords:{name:`script`},contains:[f],starts:{end:/<\/script>/,returnEnd:!0,subLanguage:[`javascript`,`handlebars`,`xml`]}},{className:`tag`,begin:/<>|<\/>/},{className:`tag`,begin:a(/</,r(a(t,o(/\/>/,/>/,/\s/)))),end:/\/?>/,contains:[{className:`name`,begin:t,relevance:0,starts:f}]},{className:`tag`,begin:a(/<\//,r(a(t,/>/))),contains:[{className:`name`,begin:t,relevance:0},{begin:/>/,relevance:0,endsParent:!0}]}]}}t.exports=s}))()).default,$B=n(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(...e){return e.map(e=>n(e)).join(``)}function i(e){let t={},n={begin:/\$\{/,end:/\}/,contains:[`self`,{begin:/:-/,contains:[t]}]};Object.assign(t,{className:`variable`,variants:[{begin:r(/\$[\w\d#@][\w\d_]*/,`(?![\\w\\d])(?![$])`)},n]});let i={className:`subst`,begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},a={begin:/<<-?\s*(?=\w+)/,starts:{contains:[e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,className:`string`})]}},o={className:`string`,begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,t,i]};i.contains.push(o);let s={className:``,begin:/\\"/},c={className:`string`,begin:/'/,end:/'/},l={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:`number`},e.NUMBER_MODE,t]},u=e.SHEBANG({binary:`(${[`fish`,`bash`,`zsh`,`sh`,`csh`,`ksh`,`tcsh`,`dash`,`scsh`].join(`|`)})`,relevance:10}),d={className:`function`,begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.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:[u,e.SHEBANG(),d,l,e.HASH_COMMENT_MODE,a,o,s,c,t]}}t.exports=i})),eV=r($B()).default,tV=n(((e,t)=>{function n(e){var t=`true false yes no null`,n=`[\\w#;
vendor: 2,942 bytes, line 219
219/?:@&=+$,.~*'()[\\]]+`,r={className:`attr`,variants:[{begin:`\\w[\\w :\\/.-]*:(?=[ ]|$)`},{begin:`"\\w[\\w :\\/.-]*":(?=[ ]|$)`},{begin:`'\\w[\\w :\\/.-]*':(?=[ ]|$)`}]},i={className:`string`,relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:`template-variable`,variants:[{begin:/\{\{/,end:/\}\}/},{begin:/%\{/,end:/\}/}]}]},a=e.inherit(i,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),o={className:`number`,begin:`\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b`},s={end:`,`,endsWithParent:!0,excludeEnd:!0,keywords:t,relevance:0},c={begin:/\{/,end:/\}/,contains:[s],illegal:`\\n`,relevance:0},l={begin:`\\[`,end:`\\]`,contains:[s],illegal:`\\n`,relevance:0},u=[r,{className:`meta`,begin:`^---\\s*$`,relevance:10},{className:`string`,begin:`[\\|>]([1-9]?[+-])?[ ]*\\n( +)[^ ][^\\n]*\\n(\\2[^\\n]+\\n?)*`},{begin:`<%[%=-]?`,end:`[%-]?%>`,subLanguage:`ruby`,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:`type`,begin:`!\\w+!`+n},{className:`type`,begin:`!<`+n+`>`},{className:`type`,begin:`!`+n},{className:`type`,begin:`!!`+n},{className:`meta`,begin:`&`+e.UNDERSCORE_IDENT_RE+`$`},{className:`meta`,begin:`\\*`+e.UNDERSCORE_IDENT_RE+`$`},{className:`bullet`,begin:`-(?=[ ]|$)`,relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:t,keywords:{literal:t}},o,{className:`number`,begin:e.C_NUMBER_RE+`\\b`,relevance:0},c,l,i],d=[...u];return d.pop(),d.push(a),s.contains=d,{name:`YAML`,case_insensitive:!0,aliases:[`yml`],contains:u}}t.exports=n})),nV=r(tV()).default,rV=r(n(((e,t)=>{function n(e){return e?typeof e==`string`?e:e.source:null}function r(...e){return e.map(e=>n(e)).join(``)}function i(e){let t=`HTTP/(2|1\\.[01])`,n={className:`attribute`,begin:r(`^`,/[A-Za-z][A-Za-z0-9-]*/,`(?=\\:\\s)`),starts:{contains:[{className:`punctuation`,begin:/: /,relevance:0,starts:{end:`$`,relevance:0}}]}},i=[n,{begin:`\\n\\n`,starts:{subLanguage:[],endsWithParent:!0}}];return{name:`HTTP`,aliases:[`https`],illegal:/\S/,contains:[{begin:`^(?=`+t+` \\d{3})`,end:/$/,contains:[{className:`meta`,begin:t},{className:`number`,begin:`\\b\\d{3}\\b`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},{begin:`(?=^[A-Z]+ (.*?) `+t+`$)`,end:/$/,contains:[{className:`string`,begin:` `,end:` `,excludeBegin:!0,excludeEnd:!0},{className:`meta`,begin:t},{className:`keyword`,begin:`[A-Z]+`}],starts:{end:/\b\B/,illegal:/\S/,contains:i}},e.inherit(n,{relevance:0})]}}t.exports=i}))()).default,iV=r(n(((e,t)=>{function n(e){let t=[`string`,`char`,`byte`,`int`,`long`,`bool`,`decimal`,`single`,`double`,`DateTime`,`xml`,`array`,`hashtable`,`void`],n={$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 asn
219p 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`},r=/\w[\w\d]*((-)[\w\d]+)*/,i={begin:"`[\\s\\S]",relevance:0},a={className:`variable`,variants:[{begin:/\$\B/},{className:`keyword`,begin:/\$this/},{begin:/\$[\w\d][\w\d_:]*/}]},o={className:`literal`,begin:/\$(null|true|false)\b/},s={className:`string`,variants:[{begin:/"/,end:/"/},{begin:/@"/,end:/^"@/}],contains:[i,a,{className:`variable`,begin:/\$[A-z]/,end:/[^A-z]/}]},c={className:`string`,variants:[{begin:/'/,end:/'/},{begin:/@'/,end:/^'@/}]},l=e.inherit(e.COMMENT(null,null),{variants:[{begin:/#/,end:/$/},{begin:/<#/,end:/#>/}],contains:[{className:`doctag`,variants:[{begin:/\.(synopsis|description|example|inputs|outputs|notes|link|component|role|functionality)/},{begin:/\.(parameter|forwardhelptargetname|forwardhelpcategory|remotehelprunspace|externalhelp)\s+\S+/}]}]}),u={className:`built_in`,variants:[{begin:`(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)+(-)[\\w\\d]+`}]},d={className:`class`,beginKeywords:`class enum`,end:/\s*[{]/,excludeEnd:!0,relevance:0,contains:[e.TITLE_MODE]},f={className:`function`,begin:/function\s+/,end:/\s*\{|$/,excludeEnd:!0,returnBegin:!0,relevance:0,contains:[{begin:`function`,relevance:0,className:`keyword`},{className:`title`,begin:r,relevance:0},{begin:/\(/,end:/\)/,className:`params`,relevance:0,contains:[a]}]},p={begin:/using\s/,end:/$/,returnBegin:!0,contains:[s,c,{className:`keyword`,begin:/(using|assembly|command|module|namespace|type)/}]},m={variants:[{className:`operator`,begin:`(-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)\\b`},{className:`literal`,begin:/(-)[\w\d]+/,relevance:0}]},h={className:`selector-tag`,begin:/@\B/,relevance:0},g={className:`function`,begin:/\[.*\]\s*[\w]+[ ]??\(/,end:/$/,returnBegin:!0,relevance:0,contains:[{className:`keyword`,begin:`(${n.keyword.toString().replace(/\s/g,`|`)})\\b`,endsParent:!0,relevance:0},e.inherit(e.TITLE_MODE,{endsParent:!0})]},_=[g,l,i,e.NUMBER_MODE,s,c,u,a,o,h],v={begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0,relevance:0,contains:[`self`].concat(_,{begin:`(`+t.join(`|`)+`)`,className:`built_in`,relevance:0},{className:`type`,begin:/[\.\w\d]+/,relevance:0})};return g.contains.unshift(v),{name:`PowerShell`,aliases:[`ps`,`ps1`],case_insensitive:!0,keywords:n,contains:_.concat(d,f,p,m,v)}}t.exports=n}))()).default,aV={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`}},oV={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`}},sV={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`}},cV={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`}},lV={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`}},uV={"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`}},dV={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`}},fV=n(((e,t)=>{t.exports=function(e,t,n,r){var i=new Blob(r===void 0?[e]:[r,e],{type:n||`application/octet-stream`});if(window.navigator.msSaveBlob!==void 0)window.navigator.msSaveBlob(i,t);else{var a=window.URL&&window.URL.createObjectURL?window.URL.createObjectURL(i):window.webkitURL.createObjectURL(i),o=document.createElement(`a`);o.style.display=`none`,o.href=a,o.setAttribute(`download`,t),o.download===void 0&&o.setAttribute(`target`,`_blank`),document.body.appendChild(o),o.click(),setTimeout(function(){document.body.removeChild(o),window.URL.revokeObjectURL(a)},200)}}})),pV=n(((e,t)=>{function n(e,t,n){for(var r=-1,i=e.length,a=t.length,o={};++r<i;){var s=r<a?t[r]:void 0;n(o,e[r],s)}return o}t.exports=n})),mV=n(((e,t)=>{var n=Oe(),r=pV();function i(e,t){return r(e||[],t||[],n)}t.exports=i})),hV=n(((e,t)=>{var n=``,r;
219t.exports=i;function i(e,t){if(typeof e!=`string`)throw TypeError(`expected a string`);if(t===1)return e;if(t===2)return e+e;var i=e.length*t;if(r!==e||r===void 0)r=e,n=``;else if(n.length>=i)return n.substr(0,i);for(;i>n.length&&t>1;)t&1&&(n+=e),t>>=1,e+=e;return n+=e,n=n.substr(0,i),n}})),gV=n(((e,t)=>{var n=hV(),r=function(e){return e.split(/(<\/?[^>]+>)/g).filter(function(e){return e.trim()!==``})},i=function(e){return/<[^>!]+>/.test(e)},a=function(e){return/<\/+[^>]+>/.test(e)},o=function(e){return/<[^>]+\/>/.test(e)},s=function(e){return i(e)&&!a(e)&&!o(e)};t.exports=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.indentor,i=t.textNodesOnSameLine,a=0,o=[];r||=` `;var s=c(e).map(function(e,t,s){var c=e.value,l=e.type;l===`ClosingTag`&&a--;var u=n(r,a),d=u+c;if(l===`OpeningTag`&&a++,i){var f=s[t-1],p=s[t-2];l===`ClosingTag`&&f.type===`Text`&&p.type===`OpeningTag`&&(d=``+u+p.value+f.value+c,o.push(t-2,t-1))}return d});return o.forEach(function(e){return s[e]=null}),s.filter(function(e){return!!e}).join(` 220`)};function c(e){return r(e).map(function(e){return{value:e,type:l(e)}})}function l(e){return a(e)?`ClosingTag`:s(e)?`OpeningTag`:o(e)?`SelfClosingTag`:`Text`}})),_V=n(((e,t)=>{var n=re();function r(e){return n(e).toLowerCase()}t.exports=r})),vV=r(fV()),yV=r(mV()),bV=r(gV()),xV=r(_V()),SV;function CV(e){return SV||=document.createElement(`textarea`),SV.innerHTML=`&`+e+`;`,SV.value}var wV=Object.prototype.hasOwnProperty;function TV(e,t){return e?wV.call(e,t):!1}function EV(e){return[].slice.call(arguments,1).forEach(function(t){if(t){if(typeof t!=`object`)throw TypeError(t+`must be object`);Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}var DV=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function OV(e){return e.indexOf(`\\`)<0?e:e.replace(DV,`$1`)}function kV(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 AV(e){if(e>65535){e-=65536;var t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var jV=/&([a-z#][a-z0-9]{1,31});/gi,MV=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function NV(e,t){var n=0,r=CV(t);return t===r?t.charCodeAt(0)===35&&MV.test(t)&&(n=t[1].toLowerCase()===`x`?parseInt(t.slice(2),16):parseInt(t.slice(1),10),kV(n))?AV(n):e:r}function PV(e){return e.indexOf(`&`)<0?e:e.replace(jV,NV)}var FV=/[&<>"]/,IV=/[&<>"]/g,LV={"&":`&`,"<":`<`,">":`>`,'"':`"`};function RV(e){return LV[e]}function zV(e){return FV.test(e)?e.replace(IV,RV):e}var X={};X.blockquote_open=function(){return`<blockquote> 221`},X.blockquote_close=function(e,t){return`</blockquote>`+VV(e,t)},X.code=function(e,t){return e[t].block?`<pre><code>`+zV(e[t].content)+`</code></pre>`+VV(e,t):`<code>`+zV(e[t].content)+`</code>`},X.fence=function(e,t,n,r,i){var a=e[t],o=``,s=n.langPrefix,c=``,l,u,d;if(a.params){if(l=a.params.split(/\s+/g),u=l.join(` `),TV(i.rules.fence_custom,l[0]))return i.rules.fence_custom[l[0]](e,t,n,r,i);c=zV(PV(OV(u))),o=` class="`+s+c+`"`}return d=n.highlight&&n.highlight.apply(n.highlight,[a.content].concat(l))||zV(a.content),`<pre><code`+o+`>`+d+`</code></pre>`+VV(e,t)},X.fence_custom={},X.heading_open=function(e,t){return`<h`+e[t].hLevel+`>`},X.heading_close=function(e,t){return`</h`+e[t].hLevel+`> 222`},X.hr=function(e,t,n){return(n.xhtmlOut?`<hr />`:`<hr>`)+VV(e,t)},X.bullet_list_open=function(){return`<ul> 223`},X.bullet_list_close=function(e,t){return`</ul>`+VV(e,t)},X.list_item_open=function(){return`<li>`},X.list_item_close=function(){return`</li> 224`},X.ordered_list_open=function(e,t){var n=e[t];return`<ol`+(n.order>1?` start="`+n.order+`"`:``)+`> 225`},X.ordered_list_close=function(e,t){return`</ol>`+VV(e,t)},X.paragraph_open=function(e,t){return e[t].tight?``:`<p>`},X.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&e[t-1].type===`inline`&&!e[t-1].content);return(e[t].tight?``:`</p>`)+(n?VV(e,t):``)},X.link_open=function(e,t,n){var r=e[t].title?` title="`+zV(PV(e[t].title))+`"`:``,i=n.linkTarget?` target="`+n.linkTarget+`"`:``;return`<a href="`+zV(e[t].href)+`"`+r+i+`>`}
225,X.link_close=function(){return`</a>`},X.image=function(e,t,n){var r=` src="`+zV(e[t].src)+`"`,i=e[t].title?` title="`+zV(PV(e[t].title))+`"`:``,a=` alt="`+(e[t].alt?zV(PV(OV(e[t].alt))):``)+`"`,o=n.xhtmlOut?` /`:``;return`<img`+r+a+i+o+`>`},X.table_open=function(){return`<table> 226`},X.table_close=function(){return`</table> 227`},X.thead_open=function(){return`<thead> 228`},X.thead_close=function(){return`</thead> 229`},X.tbody_open=function(){return`<tbody> 230`},X.tbody_close=function(){return`</tbody> 231`},X.tr_open=function(){return`<tr>`},X.tr_close=function(){return`</tr> 232`},X.th_open=function(e,t){var n=e[t];return`<th`+(n.align?` style="text-align:`+n.align+`"`:``)+`>`},X.th_close=function(){return`</th>`},X.td_open=function(e,t){var n=e[t];return`<td`+(n.align?` style="text-align:`+n.align+`"`:``)+`>`},X.td_close=function(){return`</td>`},X.strong_open=function(){return`<strong>`},X.strong_close=function(){return`</strong>`},X.em_open=function(){return`<em>`},X.em_close=function(){return`</em>`},X.del_open=function(){return`<del>`},X.del_close=function(){return`</del>`},X.ins_open=function(){return`<ins>`},X.ins_close=function(){return`</ins>`},X.mark_open=function(){return`<mark>`},X.mark_close=function(){return`</mark>`},X.sub=function(e,t){return`<sub>`+zV(e[t].content)+`</sub>`},X.sup=function(e,t){return`<sup>`+zV(e[t].content)+`</sup>`},X.hardbreak=function(e,t,n){return n.xhtmlOut?`<br /> 233`:`<br> 234`},X.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`<br /> 235`:`<br> 236`:` 237`},X.text=function(e,t){return zV(e[t].content)},X.htmlblock=function(e,t){return e[t].content},X.htmltag=function(e,t){return e[t].content},X.abbr_open=function(e,t){return`<abbr title="`+zV(PV(e[t].title))+`">`},X.abbr_close=function(){return`</abbr>`},X.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),r=`fnref`+n;return e[t].subId>0&&(r+=`:`+e[t].subId),`<sup class="footnote-ref"><a href="#fn`+n+`" id="`+r+`">[`+n+`]</a></sup>`},X.footnote_block_open=function(e,t,n){return(n.xhtmlOut?`<hr class="footnotes-sep" /> 238`:`<hr class="footnotes-sep"> 239`)+`<section class="footnotes"> 240<ol class="footnotes-list"> 241`},X.footnote_block_close=function(){return`</ol> 242</section> 243`},X.footnote_open=function(e,t){return`<li id="fn`+Number(e[t].id+1).toString()+`" class="footnote-item">`},X.footnote_close=function(){return`</li> 244`},X.footnote_anchor=function(e,t){var n=`fnref`+Number(e[t].id+1).toString();return e[t].subId>0&&(n+=`:`+e[t].subId),` <a href="#`+n+`" class="footnote-backref">â©</a>`},X.dl_open=function(){return`<dl> 245`},X.dt_open=function(){return`<dt>`},X.dd_open=function(){return`<dd>`},X.dl_close=function(){return`</dl> 246`},X.dt_close=function(){return`</dt> 247`},X.dd_close=function(){return`</dd> 248`};function BV(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?BV(e,t+2):t}var VV=X.getBreak=function(e,t){return t=BV(e,t),t<e.length&&e[t].type===`list_item_close`?``:` 249`};function HV(){this.rules=EV({},X),this.getBreak=X.getBreak}HV.prototype.renderInline=function(e,t,n){for(var r=this.rules,i=e.length,a=0,o=``;i--;)o+=r[e[a].type](e,a++,t,n,this);return o},HV.prototype.render=function(e,t,n){for(var r=this.rules,i=e.length,a=-1,o=``;++a<i;)e[a].type===`inline`?o+=this.renderInline(e[a].children,t,n):o+=r[e[a].type](e,a,t,n,this);return o};function UV(){this.__rules__=[],this.__cache__=null}UV.prototype.__find__=function(e){for(var t=this.__rules__.length,n=-1;t--;)if(this.__rules__[++n].name===e)return n;return-1},UV.prototype.__compile__=function(){var e=this,t=[``];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},UV.prototype.at=function(e,t,n){var r=this.__find__(e),i=n||{};if(r===-1)throw Error(`Parser rule not found: `+e);this.__rules__[r].fn=t,this.__rules__[r].alt=i.alt||[],this.__cache__=null},UV.prototype.before=function(e,t,n,r){var i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},UV.prototype.after=function(e,t,n,r){var i=this.__find__(e),a=r||{};if(i===-1)throw Error(`Parser rule not found: `+e);this.__rules__.splice(i+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},UV.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},UV.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach(function(e){e.enabled=!1}),e.forEach(function(e){var t=this.__find__(e);
249if(t<0)throw Error(`Rules manager: invalid rule name `+e);this.__rules__[t].enabled=!0},this),this.__cache__=null},UV.prototype.disable=function(e){e=Array.isArray(e)?e:[e],e.forEach(function(e){var t=this.__find__(e);if(t<0)throw Error(`Rules manager: invalid rule name `+e);this.__rules__[t].enabled=!1},this),this.__cache__=null},UV.prototype.getRules=function(e){return this.__cache__===null&&this.__compile__(),this.__cache__[e]||[]};function WV(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 GV(e,t,n,r,i){this.src=e,this.env=r,this.options=n,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}GV.prototype.pushPending=function(){this.tokens.push({type:`text`,content:this.pending,level:this.pendingLevel}),this.pending=``},GV.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},GV.prototype.cacheSet=function(e,t){for(var n=this.cache.length;n<=e;n++)this.cache.push(0);this.cache[e]=t},GV.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};function KV(e,t){var n,r,i,a=-1,o=e.posMax,s=e.pos,c=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,n=1;e.pos<o;){if(i=e.src.charCodeAt(e.pos),i===91)n++;else if(i===93&&(n--,n===0)){r=!0;break}e.parser.skipToken(e)}return r?(a=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=n-1,e.pos=s,e.isInLabel=c,a}function qV(e,t,n,r){var i,a,o,s,c,l;if(e.charCodeAt(0)!==42||e.charCodeAt(1)!==91||e.indexOf(`]:`)===-1||(i=new GV(e,t,n,r,[]),a=KV(i,1),a<0||e.charCodeAt(a+1)!==58))return-1;for(s=i.posMax,o=a+2;o<s&&i.src.charCodeAt(o)!==10;o++);return c=e.slice(2,a),l=e.slice(a+2,o).trim(),l.length===0?-1:(r.abbreviations||={},r.abbreviations[`:`+c]===void 0&&(r.abbreviations[`:`+c]=l),o)}function JV(e){var t=e.tokens,n,r,i,a;if(!e.inlineMode){for(n=1,r=t.length-1;n<r;n++)if(t[n-1].type===`paragraph_open`&&t[n].type===`inline`&&t[n+1].type===`paragraph_close`){for(i=t[n].content;i.length&&(a=qV(i,e.inline,e.options,e.env),!(a<0));)i=i.slice(a).trim();t[n].content=i,i.length||(t[n-1].tight=!0,t[n+1].tight=!0)}}}function YV(e){var t=PV(e);try{t=decodeURI(t)}catch{}return encodeURI(t)}function XV(e,t){var n,r,i,a=t,o=e.posMax;if(e.src.charCodeAt(t)===60){for(t++;t<o;){if(n=e.src.charCodeAt(t),n===10)return!1;if(n===62)return i=YV(OV(e.src.slice(a+1,t))),e.parser.validateLink(i)?(e.pos=t+1,e.linkContent=i,!0):!1;if(n===92&&t+1<o){t+=2;continue}t++}return!1}for(r=0;t<o&&(n=e.src.charCodeAt(t),!(n===32||n<32||n===127));){if(n===92&&t+1<o){t+=2;continue}if(n===40&&(r++,r>1)||n===41&&(r--,r<0))break;t++}return a===t||(i=OV(e.src.slice(a,t)),!e.parser.validateLink(i))?!1:(e.linkContent=i,e.pos=t,!0)}function ZV(e,t){var n,r=t,i=e.posMax,a=e.src.charCodeAt(t);if(a!==34&&a!==39&&a!==40)return!1;for(t++,a===40&&(a=41);t<i;){if(n=e.src.charCodeAt(t),n===a)return e.pos=t+1,e.linkContent=OV(e.src.slice(r+1,t)),!0;if(n===92&&t+1<i){t+=2;continue}t++}return!1}function QV(e){return e.trim().replace(/\s+/g,` `).toUpperCase()}function $V(e,t,n,r){var i,a,o,s,c,l,u,d,f;if(e.charCodeAt(0)!==91||e.indexOf(`]:`)===-1||(i=new GV(e,t,n,r,[]),a=KV(i,0),a<0||e.charCodeAt(a+1)!==58))return-1;for(s=i.posMax,o=a+2;o<s&&(c=i.src.charCodeAt(o),c===32||c===10);o++);if(!XV(i,o))return-1;for(u=i.linkContent,o=i.pos,l=o,o+=1;o<s&&(c=i.src.charCodeAt(o),c===32||c===10);o++);for(o<s&&l!==o&&ZV(i,o)?(d=i.linkContent,o=i.pos):(d=``,o=l);o<s&&i.src.charCodeAt(o)===32;)o++;return o<s&&i.src.charCodeAt(o)!==10?-1:(f=QV(e.slice(1,a)),r.references[f]===void 0&&(r.references[f]={title:d,href:u}),o)}function eH(e){var t=e.tokens,n,r,i,a;if(e.env.references=e.env.references||{},!e.inlineMode){for(n=1,r=t.length-1;n<r;n++)if(t[n].type===`inline`&&t[n-1].type===`paragraph_open`&&t[n+1].type===`paragraph_close`){for(i=t[n].content;i.length&&(a=$V(i,e.inline,e.options,e.env),!(a<0));)i=i.slice(a).trim();t[n].content=i,i.length||(t[n-1].tight=!0,t[n+1].tight=!0)}}}function tH(e){for(var t=e.tokens,n,r=0,i=t.length;r<i;r++)n=t[r],n.type===`inline`&&e.inline.parse(n.content,e.options,e.env,n.children)}function nH(e){var t,n,r,i,a,o,s,c,l,u=0,d=!1,f={};if(e.env.footnotes&&(e.tokens=e.tokens.filter(function(e){return e.type===`footnote_reference_open`?(d=!0,c=[],l=e.label,!1):e.type===`footnote_reference_close`?(d=!1,f[`:`+l]=c,!1):(d&&c.push(e),!d)}),e.env.footnotes.list)){for(o=e.env.footnotes.list,e.tokens.push({type:`footnote_block_open`,level:u++}),t=0,n=o.length;t<n;t++){for(e.tokens.push({type:`footnote_open`,id:t,level:u++}),o[t].tokens?(s=[],s.push({type:`paragraph_open`,tight:!1,level:u++}),s.push({type:`inline`,content:``,level:u,children:o[t].tokens}
249),s.push({type:`paragraph_close`,tight:!1,level:--u})):o[t].label&&(s=f[`:`+o[t].label]),e.tokens=e.tokens.concat(s),a=e.tokens[e.tokens.length-1].type===`paragraph_close`?e.tokens.pop():null,i=o[t].count>0?o[t].count:1,r=0;r<i;r++)e.tokens.push({type:`footnote_anchor`,id:t,subId:r,level:u});a&&e.tokens.push(a),e.tokens.push({type:`footnote_close`,level:--u})}e.tokens.push({type:`footnote_block_close`,level:--u})}}var rH=` 250()[]'".,!?-`;function iH(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,`\\$1`)}function aH(e){var t,n,r,i,a,o,s,c,l,u,d,f,p=e.tokens;if(e.env.abbreviations){for(e.env.abbrRegExp||(f=`(^|[`+rH.split(``).map(iH).join(``)+`])(`+Object.keys(e.env.abbreviations).map(function(e){return e.substr(1)}).sort(function(e,t){return t.length-e.length}).map(iH).join(`|`)+`)($|[`+rH.split(``).map(iH).join(``)+`])`,e.env.abbrRegExp=new RegExp(f,`g`)),u=e.env.abbrRegExp,n=0,r=p.length;n<r;n++)if(p[n].type===`inline`){for(i=p[n].children,t=i.length-1;t>=0;t--)if(a=i[t],a.type===`text`){for(c=0,o=a.content,u.lastIndex=0,l=a.level,s=[];d=u.exec(o);)u.lastIndex>c&&s.push({type:`text`,content:o.slice(c,d.index+d[1].length),level:l}),s.push({type:`abbr_open`,title:e.env.abbreviations[`:`+d[2]],level:l++}),s.push({type:`text`,content:d[2],level:l}),s.push({type:`abbr_close`,level:--l}),c=u.lastIndex-d[3].length;s.length&&(c<o.length&&s.push({type:`text`,content:o.slice(c),level:l}),p[n].children=i=[].concat(i.slice(0,t),s,i.slice(t+1)))}}}}var oH=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,sH=/\((c|tm|r|p)\)/gi,cH={c:`©`,r:`®`,p:`§`,tm:`â¢`};function lH(e){return e.indexOf(`(`)<0?e:e.replace(sH,function(e,t){return cH[t.toLowerCase()]})}function uH(e){var t,n,r,i,a;if(e.options.typographer){for(a=e.tokens.length-1;a>=0;a--)if(e.tokens[a].type===`inline`)for(i=e.tokens[a].children,t=i.length-1;t>=0;t--)n=i[t],n.type===`text`&&(r=n.content,r=lH(r),oH.test(r)&&(r=r.replace(/\+-/g,`±`).replace(/\.{2,}/g,`â¦`).replace(/([?!])â¦/g,`$1..`).replace(/([?!]){4,}/g,`$1$1$1`).replace(/,{2,}/g,`,`).replace(/(^|[^-])---([^-]|$)/gm,`$1â$2`).replace(/(^|\s)--(\s|$)/gm,`$1â$2`).replace(/(^|[^-\s])--([^-\s]|$)/gm,`$1â$2`)),n.content=r)}}var dH=/['"]/,fH=/['"]/g,pH=/[-\s()\[\]]/,mH=`â`;function hH(e,t){return t<0||t>=e.length?!1:!pH.test(e[t])}function gH(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}function _H(e){var t,n,r,i,a,o,s,c,l,u,d,f,p,m,h,g,_;if(e.options.typographer){for(_=[],h=e.tokens.length-1;h>=0;h--)if(e.tokens[h].type===`inline`){for(g=e.tokens[h].children,_.length=0,t=0;t<g.length;t++)if(n=g[t],!(n.type!==`text`||dH.test(n.text))){for(s=g[t].level,p=_.length-1;p>=0&&!(_[p].level<=s);p--);_.length=p+1,r=n.content,a=0,o=r.length;OUTER:for(;a<o&&(fH.lastIndex=a,i=fH.exec(r),i);){if(c=!hH(r,i.index-1),a=i.index+1,m=i[0]===`'`,l=!hH(r,a),!l&&!c){m&&(n.content=gH(n.content,i.index,mH));continue}if(d=!l,f=!c,f){for(p=_.length-1;p>=0&&(u=_[p],!(_[p].level<s));p--)if(u.single===m&&_[p].level===s){u=_[p],m?(g[u.token].content=gH(g[u.token].content,u.pos,e.options.quotes[2]),n.content=gH(n.content,i.index,e.options.quotes[3])):(g[u.token].content=gH(g[u.token].content,u.pos,e.options.quotes[0]),n.content=gH(n.content,i.index,e.options.quotes[1])),_.length=p;continue OUTER}}d?_.push({token:t,pos:i.index,single:m,level:s}):f&&m&&(n.content=gH(n.content,i.index,mH))}}}}}var vH=[[`block`,WV],[`abbr`,JV],[`references`,eH],[`inline`,tH],[`footnote_tail`,nH],[`abbr2`,aH],[`replacements`,uH],[`smartquotes`,_H]];function yH(){this.options={},this.ruler=new UV;for(var e=0;e<vH.length;e++)this.ruler.push(vH[e][0],vH[e][1])}yH.prototype.process=function(e){var t,n,r=this.ruler.getRules(``);for(t=0,n=r.length;t<n;t++)r[t](e)};function bH(e,t,n,r,i){var a,o,s,c,l,u,d;for(this.src=e,this.parser=t,this.options=n,this.env=r,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=``,o=this.src,u=0,d=!1,s=c=u=0,l=o.length;c<l;c++){if(a=o.charCodeAt(c),!d){if(a===32){u++;continue}d=!0}(a===10||c===l-1)&&(a!==10&&c++,this.bMarks.push(s),this.eMarks.push(c),this.tShift.push(u),d=!1,u=0,s=c+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}bH.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},bH.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},bH.prototype.skipSpaces=function(e){for(var t=this.src.length;
vendor: 4,729 bytes, line 250
250e<t&&this.src.charCodeAt(e)===32;e++);return e},bH.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},bH.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},bH.prototype.getLines=function(e,t,n,r){var i,a,o,s,c,l=e;if(e>=t)return``;if(l+1===t)return a=this.bMarks[l]+Math.min(this.tShift[l],n),o=r?this.eMarks[l]+1:this.eMarks[l],this.src.slice(a,o);for(s=Array(t-e),i=0;l<t;l++,i++)c=this.tShift[l],c>n&&(c=n),c<0&&(c=0),a=this.bMarks[l]+c,o=l+1<t||r?this.eMarks[l]+1:this.eMarks[l],s[i]=this.src.slice(a,o);return s.join(``)};function xH(e,t,n){var r,i;if(e.tShift[t]-e.blkIndent<4)return!1;for(i=r=t+1;r<n;){if(e.isEmpty(r)){r++;continue}if(e.tShift[r]-e.blkIndent>=4){r++,i=r;continue}break}return e.line=r,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 SH(e,t,n,r){var i,a,o,s,c,l=!1,u=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(u+3>d||(i=e.src.charCodeAt(u),i!==126&&i!==96)||(c=u,u=e.skipChars(u,i),a=u-c,a<3)||(o=e.src.slice(u,d).trim(),o.indexOf("`")>=0))return!1;if(r)return!0;for(s=t;s++,!(s>=n||(u=c=e.bMarks[s]+e.tShift[s],d=e.eMarks[s],u<d&&e.tShift[s]<e.blkIndent));)if(e.src.charCodeAt(u)===i&&!(e.tShift[s]-e.blkIndent>=4)&&(u=e.skipChars(u,i),!(u-c<a)&&(u=e.skipSpaces(u),!(u<d)))){l=!0;break}return a=e.tShift[t],e.line=s+ +!!l,e.tokens.push({type:`fence`,params:o,content:e.getLines(t+1,s,a,!0),lines:[t,e.line],level:e.level}),!0}function CH(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h=e.bMarks[t]+e.tShift[t],g=e.eMarks[t];if(h>g||e.src.charCodeAt(h++)!==62||e.level>=e.options.maxNesting)return!1;if(r)return!0;for(e.src.charCodeAt(h)===32&&h++,c=e.blkIndent,e.blkIndent=0,s=[e.bMarks[t]],e.bMarks[t]=h,h=h<g?e.skipSpaces(h):h,a=h>=g,o=[e.tShift[t]],e.tShift[t]=h-e.bMarks[t],d=e.parser.ruler.getRules(`blockquote`),i=t+1;i<n&&(h=e.bMarks[i]+e.tShift[i],g=e.eMarks[i],!(h>=g));i++){if(e.src.charCodeAt(h++)===62){e.src.charCodeAt(h)===32&&h++,s.push(e.bMarks[i]),e.bMarks[i]=h,h=h<g?e.skipSpaces(h):h,a=h>=g,o.push(e.tShift[i]),e.tShift[i]=h-e.bMarks[i];continue}if(a)break;for(m=!1,f=0,p=d.length;f<p;f++)if(d[f](e,i,n,!0)){m=!0;break}if(m)break;s.push(e.bMarks[i]),o.push(e.tShift[i]),e.tShift[i]=-1337}for(l=e.parentType,e.parentType=`blockquote`,e.tokens.push({type:`blockquote_open`,lines:u=[t,0],level:e.level++}),e.parser.tokenize(e,t,i),e.tokens.push({type:`blockquote_close`,level:--e.level}),e.parentType=l,u[1]=e.line,f=0;f<o.length;f++)e.bMarks[f+t]=s[f],e.tShift[f+t]=o[f];return e.blkIndent=c,!0}function wH(e,t,n,r){var i,a,o,s=e.bMarks[t],c=e.eMarks[t];if(s+=e.tShift[t],s>c||(i=e.src.charCodeAt(s++),i!==42&&i!==45&&i!==95))return!1;for(a=1;s<c;){if(o=e.src.charCodeAt(s++),o!==i&&o!==32)return!1;o===i&&a++}return a<3?!1:r?!0:(e.line=t+1,e.tokens.push({type:`hr`,lines:[t,e.line],level:e.level}),!0)}function TH(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return r>=i||(n=e.src.charCodeAt(r++),n!==42&&n!==45&&n!==43)||r<i&&e.src.charCodeAt(r)!==32?-1:r}function EH(e,t){var n,r=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];if(r+1>=i||(n=e.src.charCodeAt(r++),n<48||n>57))return-1;for(;;){if(r>=i)return-1;if(n=e.src.charCodeAt(r++),!(n>=48&&n<=57)){if(n===41||n===46)break;return-1}}return r<i&&e.src.charCodeAt(r)!==32?-1:r}function DH(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&e.tokens[n].type===`paragraph_open`&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}function OH(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_,v,y,b,x,S=!0,C,w,T,E;if((d=EH(e,t))>=0)g=!0;else if((d=TH(e,t))>=0)g=!1;else return!1;if(e.level>=e.options.maxNesting)return!1;if(h=e.src.charCodeAt(d-1),r)return!0;for(v=e.tokens.length,g?(u=e.bMarks[t]+e.tShift[t],m=Number(e.src.substr(u,d-u-1)),e.tokens.push({type:`ordered_list_open`,order:m,lines:b=[t,0],level:e.level++})):e.tokens.push({type:`bullet_list_open`,lines:b=[t,0],level:e.level++}),i=t,y=!1,C=e.parser.ruler.getRules(`list`);i<n&&(_=e.skipSpaces(d),f=e.eMarks[i],p=_>=f?1:_-d,p>4&&(p=1),p<1&&(p=1),a=d-e.bMarks[i]+p,e.tokens.push({type:`list_item_open`,lines:x=[t,0],level:e.level++}),s=e.blkIndent,c=e.tight,o=e.tShift[t],l=e.parentType,e.tShift[t]=_-e.bMarks[t],e.blkIndent=a,e.tight=!0,e.parentType=`list`,e.parser.tokenize(e,t,n,!0),(!e.tight||y)&&(S=!1),y=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=s,e.tShift[t]=o,e.tight=c,e.parentType=l,e.tokens.push({type:`list_item_close`,level:--e.level}),i=t=e.line,x[1]=i,_=e.bMarks[t],!(i>=n||e.isEmpty(i)||e.tShift[i]<e.blkIndent));){for(E=!1,w=0,T=C.length;w<T;w++)if(C[w](e,i,n,!0)){E=!0;break}if(E)break;if(g){if(d=EH(e,i),d<0)break}else if(d=TH(e,i),d<0)break;
250if(h!==e.src.charCodeAt(d-1))break}return e.tokens.push({type:g?`ordered_list_close`:`bullet_list_close`,level:--e.level}),b[1]=i,e.line=i,S&&DH(e,v),!0}function kH(e,t,n,r){var i,a,o,s,c,l=e.bMarks[t]+e.tShift[t],u=e.eMarks[t];if(l+4>u||e.src.charCodeAt(l)!==91||e.src.charCodeAt(l+1)!==94||e.level>=e.options.maxNesting)return!1;for(s=l+2;s<u;s++){if(e.src.charCodeAt(s)===32)return!1;if(e.src.charCodeAt(s)===93)break}return s===l+2||s+1>=u||e.src.charCodeAt(++s)!==58?!1:r?!0:(s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),c=e.src.slice(l+2,s-2),e.env.footnotes.refs[`:`+c]=-1,e.tokens.push({type:`footnote_reference_open`,label:c,level:e.level++}),i=e.bMarks[t],a=e.tShift[t],o=e.parentType,e.tShift[t]=e.skipSpaces(s)-s,e.bMarks[t]=s,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,n,!0),e.parentType=o,e.blkIndent-=4,e.tShift[t]=a,e.bMarks[t]=i,e.tokens.push({type:`footnote_reference_close`,level:--e.level}),!0)}function AH(e,t,n,r){var i,a,o,s=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(s>=c||(i=e.src.charCodeAt(s),i!==35||s>=c))return!1;for(a=1,i=e.src.charCodeAt(++s);i===35&&s<c&&a<=6;)a++,i=e.src.charCodeAt(++s);return a>6||s<c&&i!==32?!1:r?!0:(c=e.skipCharsBack(c,32,s),o=e.skipCharsBack(c,35,s),o>s&&e.src.charCodeAt(o-1)===32&&(c=o),e.line=t+1,e.tokens.push({type:`heading_open`,hLevel:a,lines:[t,e.line],level:e.level}),s<c&&e.tokens.push({type:`inline`,content:e.src.slice(s,c).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:`heading_close`,hLevel:a,level:e.level}),!0)}function jH(e,t,n){var r,i,a,o=t+1;return o>=n||e.tShift[o]<e.blkIndent||e.tShift[o]-e.blkIndent>3||(i=e.bMarks[o]+e.tShift[o],a=e.eMarks[o],i>=a)||(r=e.src.charCodeAt(i),r!==45&&r!==61)||(i=e.skipChars(i,r),i=e.skipSpaces(i),i<a)?!1:(i=e.bMarks[t]+e.tShift[t],e.line=o+1,e.tokens.push({type:`heading_open`,hLevel:r===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:r===61?1:2,level:e.level}),!0)}var MH={};`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`.split(`.`).forEach(function(e){MH[e]=!0});var NH=/^<([a-zA-Z]{1,15})[\s\/>]/,PH=/^<\/([a-zA-Z]{1,15})[\s>]/;function FH(e){var t=e|32;return t>=97&&t<=122}function IH(e,t,n,r){var i,a,o,s=e.bMarks[t],c=e.eMarks[t],l=e.tShift[t];if(s+=l,!e.options.html||l>3||s+2>=c||e.src.charCodeAt(s)!==60)return!1;if(i=e.src.charCodeAt(s+1),i===33||i===63){if(r)return!0}else if(i===47||FH(i)){if(i===47){if(a=e.src.slice(s,c).match(PH),!a)return!1}else if(a=e.src.slice(s,c).match(NH),!a)return!1;if(MH[a[1].toLowerCase()]!==!0)return!1;if(r)return!0}else return!1;for(o=t+1;o<e.lineMax&&!e.isEmpty(o);)o++;return e.line=o,e.tokens.push({type:`htmlblock`,level:e.level,lines:[t,e.line],content:e.getLines(t,o,0,!0)}),!0}function LH(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function RH(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m;if(t+2>n||(c=t+1,e.tShift[c]<e.blkIndent)||(o=e.bMarks[c]+e.tShift[c],o>=e.eMarks[c])||(i=e.src.charCodeAt(o),i!==124&&i!==45&&i!==58)||(a=LH(e,t+1),!/^[-:| ]+$/.test(a))||(l=a.split(`|`),l<=2))return!1;for(d=[],s=0;s<l.length;s++){if(f=l[s].trim(),!f){if(s===0||s===l.length-1)continue;return!1}if(!/^:?-+:?$/.test(f))return!1;f.charCodeAt(f.length-1)===58?d.push(f.charCodeAt(0)===58?`center`:`right`):f.charCodeAt(0)===58?d.push(`left`):d.push(``)}if(a=LH(e,t).trim(),a.indexOf(`|`)===-1||(l=a.replace(/^\||\|$/g,``).split(`|`),d.length!==l.length))return!1;if(r)return!0;for(e.tokens.push({type:`table_open`,lines:p=[t,0],level:e.level++}),e.tokens.push({type:`thead_open`,lines:[t,t+1],level:e.level++}),e.tokens.push({type:`tr_open`,lines:[t,t+1],level:e.level++}),s=0;s<l.length;s++)e.tokens.push({type:`th_open`,align:d[s],lines:[t,t+1],level:e.level++}),e.tokens.push({type:`inline`,content:l[s].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:m=[t+2,0],level:e.level++}),c=t+2;c<n&&!(e.tShift[c]<e.blkIndent||(a=LH(e,c).trim(),a.indexOf(`|`)===-1));c++){for(l=a.replace(/^\||\|$/g,``).split(`|`),e.tokens.push({type:`tr_open`,level:e.level++}),s=0;s<l.length;s++)e.tokens.push({type:`td_open`,align:d[s],level:e.level++}
250),u=l[s].substring(+(l[s].charCodeAt(0)===124),l[s].charCodeAt(l[s].length-1)===124?l[s].length-1:l[s].length).trim(),e.tokens.push({type:`inline`,content:u,level:e.level,children:[]}),e.tokens.push({type:`td_close`,level:--e.level});e.tokens.push({type:`tr_close`,level:--e.level})}return e.tokens.push({type:`tbody_close`,level:--e.level}),e.tokens.push({type:`table_close`,level:--e.level}),p[1]=m[1]=c,e.line=c,!0}function zH(e,t){var n,r,i=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return i>=a||(r=e.src.charCodeAt(i++),r!==126&&r!==58)||(n=e.skipSpaces(i),i===n)||n>=a?-1:n}function BH(e,t){var n,r,i=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===i&&e.tokens[n].type===`paragraph_open`&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}function VH(e,t,n,r){var i,a,o,s,c,l,u,d,f,p,m,h,g,_;if(r)return e.ddIndent<0?!1:zH(e,t)>=0;if(u=t+1,e.isEmpty(u)&&++u>n||e.tShift[u]<e.blkIndent||(i=zH(e,u),i<0)||e.level>=e.options.maxNesting)return!1;l=e.tokens.length,e.tokens.push({type:`dl_open`,lines:c=[t,0],level:e.level++}),o=t,a=u;OUTER:for(;;){for(_=!0,g=!1,e.tokens.push({type:`dt_open`,lines:[o,o],level:e.level++}),e.tokens.push({type:`inline`,content:e.getLines(o,o+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[o,o],children:[]}),e.tokens.push({type:`dt_close`,level:--e.level});;){if(e.tokens.push({type:`dd_open`,lines:s=[u,0],level:e.level++}),h=e.tight,f=e.ddIndent,d=e.blkIndent,m=e.tShift[a],p=e.parentType,e.blkIndent=e.ddIndent=e.tShift[a]+2,e.tShift[a]=i-e.bMarks[a],e.tight=!0,e.parentType=`deflist`,e.parser.tokenize(e,a,n,!0),(!e.tight||g)&&(_=!1),g=e.line-a>1&&e.isEmpty(e.line-1),e.tShift[a]=m,e.tight=h,e.parentType=p,e.blkIndent=d,e.ddIndent=f,e.tokens.push({type:`dd_close`,level:--e.level}),s[1]=u=e.line,u>=n||e.tShift[u]<e.blkIndent)break OUTER;if(i=zH(e,u),i<0)break;a=u}if(u>=n||(o=u,e.isEmpty(o))||e.tShift[o]<e.blkIndent||(a=o+1,a>=n)||(e.isEmpty(a)&&a++,a>=n)||e.tShift[a]<e.blkIndent||(i=zH(e,a),i<0))break}return e.tokens.push({type:`dl_close`,level:--e.level}),c[1]=u,e.line=u,_&&BH(e,l),!0}function HH(e,t){var n,r,i,a,o,s=t+1,c;if(n=e.lineMax,s<n&&!e.isEmpty(s)){for(c=e.parser.ruler.getRules(`paragraph`);s<n&&!e.isEmpty(s);s++)if(!(e.tShift[s]-e.blkIndent>3)){for(i=!1,a=0,o=c.length;a<o;a++)if(c[a](e,s,n,!0)){i=!0;break}if(i)break}}return r=e.getLines(t,s,e.blkIndent,!1).trim(),e.line=s,r.length&&(e.tokens.push({type:`paragraph_open`,tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:`inline`,content:r,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:`paragraph_close`,tight:!1,level:e.level})),!0}var UH=[[`code`,xH],[`fences`,SH,[`paragraph`,`blockquote`,`list`]],[`blockquote`,CH,[`paragraph`,`blockquote`,`list`]],[`hr`,wH,[`paragraph`,`blockquote`,`list`]],[`list`,OH,[`paragraph`,`blockquote`]],[`footnote`,kH,[`paragraph`]],[`heading`,AH,[`paragraph`,`blockquote`]],[`lheading`,jH],[`htmlblock`,IH,[`paragraph`,`blockquote`]],[`table`,RH,[`paragraph`]],[`deflist`,VH,[`paragraph`]],[`paragraph`,HH]];function WH(){this.ruler=new UV;for(var e=0;e<UH.length;e++)this.ruler.push(UH[e][0],UH[e][1],{alt:(UH[e][2]||[]).slice()})}WH.prototype.tokenize=function(e,t,n){for(var r=this.ruler.getRules(``),i=r.length,a=t,o=!1,s,c;a<n&&(e.line=a=e.skipEmptyLines(a),!(a>=n||e.tShift[a]<e.blkIndent));){for(c=0;c<i&&(s=r[c](e,a,n,!1),!s);c++);if(e.tight=!o,e.isEmpty(e.line-1)&&(o=!0),a=e.line,a<n&&e.isEmpty(a)){if(o=!0,a++,a<n&&e.parentType===`list`&&e.isEmpty(a))break;e.line=a}}};var GH=/[\n\t]/g,KH=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,qH=/\u00a0/g;WH.prototype.parse=function(e,t,n,r){var i,a=0,o=0;if(!e)return[];e=e.replace(qH,` `),e=e.replace(KH,` 251`),e.indexOf(` `)>=0&&(e=e.replace(GH,function(t,n){var r;return e.charCodeAt(n)===10?(a=n+1,o=0,t):(r=` `.slice((n-a-o)%4),o=n-a+1,r)})),i=new bH(e,this,t,n,r),this.tokenize(i,i.line,i.lineMax)};function JH(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 YH(e,t){for(var n=e.pos;
251n<e.posMax&&!JH(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}function XH(e,t){var n,r,i=e.pos;if(e.src.charCodeAt(i)!==10)return!1;if(n=e.pending.length-1,r=e.posMax,!t){if(n>=0&&e.pending.charCodeAt(n)===32){if(n>=1&&e.pending.charCodeAt(n-1)===32){for(var a=n-2;a>=0;a--)if(e.pending.charCodeAt(a)!==32){e.pending=e.pending.substring(0,a+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<r&&e.src.charCodeAt(i)===32;)i++;return e.pos=i,!0}for(var ZH=[],QH=0;QH<256;QH++)ZH.push(0);`\\!"#$%&'()*+,./:;<=>?@[]^_\`{|}~-`.split(``).forEach(function(e){ZH[e.charCodeAt(0)]=1});function $H(e,t){var n,r=e.pos,i=e.posMax;if(e.src.charCodeAt(r)!==92)return!1;if(r++,r<i){if(n=e.src.charCodeAt(r),n<256&&ZH[n]!==0)return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(n===10){for(t||e.push({type:`hardbreak`,level:e.level}),r++;r<i&&e.src.charCodeAt(r)===32;)r++;return e.pos=r,!0}}return t||(e.pending+=`\\`),e.pos++,!0}function eU(e,t){var n,r,i,a,o,s=e.pos;if(e.src.charCodeAt(s)!==96)return!1;for(n=s,s++,r=e.posMax;s<r&&e.src.charCodeAt(s)===96;)s++;for(i=e.src.slice(n,s),a=o=s;(a=e.src.indexOf("`",o))!==-1;){for(o=a+1;o<r&&e.src.charCodeAt(o)===96;)o++;if(o-a===i.length)return t||e.push({type:`code`,content:e.src.slice(s,a).replace(/[ \n]+/g,` `).trim(),block:!1,level:e.level}),e.pos=o,!0}return t||(e.pending+=i),e.pos+=i.length,!0}function tU(e,t){var n,r,i,a=e.posMax,o=e.pos,s,c;if(e.src.charCodeAt(o)!==126||t||o+4>=a||e.src.charCodeAt(o+1)!==126||e.level>=e.options.maxNesting||(s=o>0?e.src.charCodeAt(o-1):-1,c=e.src.charCodeAt(o+2),s===126)||c===126||c===32||c===10)return!1;for(r=o+2;r<a&&e.src.charCodeAt(r)===126;)r++;if(r>o+3)return e.pos+=r-o,t||(e.pending+=e.src.slice(o,r)),!0;for(e.pos=o+2,i=1;e.pos+1<a;){if(e.src.charCodeAt(e.pos)===126&&e.src.charCodeAt(e.pos+1)===126&&(s=e.src.charCodeAt(e.pos-1),c=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1,c!==126&&s!==126&&(s!==32&&s!==10?i--:c!==32&&c!==10&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=o+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=a,!0):(e.pos=o,!1)}function nU(e,t){var n,r,i,a=e.posMax,o=e.pos,s,c;if(e.src.charCodeAt(o)!==43||t||o+4>=a||e.src.charCodeAt(o+1)!==43||e.level>=e.options.maxNesting||(s=o>0?e.src.charCodeAt(o-1):-1,c=e.src.charCodeAt(o+2),s===43)||c===43||c===32||c===10)return!1;for(r=o+2;r<a&&e.src.charCodeAt(r)===43;)r++;if(r!==o+2)return e.pos+=r-o,t||(e.pending+=e.src.slice(o,r)),!0;for(e.pos=o+2,i=1;e.pos+1<a;){if(e.src.charCodeAt(e.pos)===43&&e.src.charCodeAt(e.pos+1)===43&&(s=e.src.charCodeAt(e.pos-1),c=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1,c!==43&&s!==43&&(s!==32&&s!==10?i--:c!==32&&c!==10&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=o+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=a,!0):(e.pos=o,!1)}function rU(e,t){var n,r,i,a=e.posMax,o=e.pos,s,c;if(e.src.charCodeAt(o)!==61||t||o+4>=a||e.src.charCodeAt(o+1)!==61||e.level>=e.options.maxNesting||(s=o>0?e.src.charCodeAt(o-1):-1,c=e.src.charCodeAt(o+2),s===61)||c===61||c===32||c===10)return!1;for(r=o+2;r<a&&e.src.charCodeAt(r)===61;)r++;if(r!==o+2)return e.pos+=r-o,t||(e.pending+=e.src.slice(o,r)),!0;for(e.pos=o+2,i=1;e.pos+1<a;){if(e.src.charCodeAt(e.pos)===61&&e.src.charCodeAt(e.pos+1)===61&&(s=e.src.charCodeAt(e.pos-1),c=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1,c!==61&&s!==61&&(s!==32&&s!==10?i--:c!==32&&c!==10&&i++,i<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=o+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=a,!0):(e.pos=o,!1)}function iU(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function aU(e,t){var n=t,r,i,a,o=!0,s=!0,c=e.posMax,l=e.src.charCodeAt(t);for(r=t>
vendor: 4,756 bytes, line 251
2510?e.src.charCodeAt(t-1):-1;n<c&&e.src.charCodeAt(n)===l;)n++;return n>=c&&(o=!1),a=n-t,a>=4?o=s=!1:(i=n<c?e.src.charCodeAt(n):-1,(i===32||i===10)&&(o=!1),(r===32||r===10)&&(s=!1),l===95&&(iU(r)&&(o=!1),iU(i)&&(s=!1))),{can_open:o,can_close:s,delims:a}}function oU(e,t){var n,r,i,a,o,s,c,l=e.posMax,u=e.pos,d=e.src.charCodeAt(u);if(d!==95&&d!==42||t)return!1;if(c=aU(e,u),n=c.delims,!c.can_open)return e.pos+=n,t||(e.pending+=e.src.slice(u,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=u+n,s=[n];e.pos<l;){if(e.src.charCodeAt(e.pos)===d){if(c=aU(e,e.pos),r=c.delims,c.can_close){for(a=s.pop(),o=r;a!==o;){if(o<a){s.push(a-o);break}if(o-=a,s.length===0)break;e.pos+=a,a=s.pop()}if(s.length===0){n=a,i=!0;break}e.pos+=r;continue}c.can_open&&s.push(r),e.pos+=r;continue}e.parser.skipToken(e)}return i?(e.posMax=e.pos,e.pos=u+n,t||((n===2||n===3)&&e.push({type:`strong_open`,level:e.level++}),(n===1||n===3)&&e.push({type:`em_open`,level:e.level++}),e.parser.tokenize(e),(n===1||n===3)&&e.push({type:`em_close`,level:--e.level}),(n===2||n===3)&&e.push({type:`strong_close`,level:--e.level})),e.pos=e.posMax+n,e.posMax=l,!0):(e.pos=u,!1)}var sU=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function cU(e,t){var n,r,i=e.posMax,a=e.pos;if(e.src.charCodeAt(a)!==126||t||a+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=a+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===126){n=!0;break}e.parser.skipToken(e)}return!n||a+1===e.pos||(r=e.src.slice(a+1,e.pos),r.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=a,!1):(e.posMax=e.pos,e.pos=a+1,t||e.push({type:`sub`,level:e.level,content:r.replace(sU,`$1`)}),e.pos=e.posMax+1,e.posMax=i,!0)}var lU=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function uU(e,t){var n,r,i=e.posMax,a=e.pos;if(e.src.charCodeAt(a)!==94||t||a+2>=i||e.level>=e.options.maxNesting)return!1;for(e.pos=a+1;e.pos<i;){if(e.src.charCodeAt(e.pos)===94){n=!0;break}e.parser.skipToken(e)}return!n||a+1===e.pos||(r=e.src.slice(a+1,e.pos),r.match(/(^|[^\\])(\\\\)*\s/))?(e.pos=a,!1):(e.posMax=e.pos,e.pos=a+1,t||e.push({type:`sup`,level:e.level,content:r.replace(lU,`$1`)}),e.pos=e.posMax+1,e.posMax=i,!0)}function dU(e,t){var n,r,i,a,o,s,c,l,u=!1,d=e.pos,f=e.posMax,p=e.pos,m=e.src.charCodeAt(p);if(m===33&&(u=!0,m=e.src.charCodeAt(++p)),m!==91||e.level>=e.options.maxNesting||(n=p+1,r=KV(e,p),r<0))return!1;if(s=r+1,s<f&&e.src.charCodeAt(s)===40){for(s++;s<f&&(l=e.src.charCodeAt(s),l===32||l===10);s++);if(s>=f)return!1;for(p=s,XV(e,s)?(a=e.linkContent,s=e.pos):a=``,p=s;s<f&&(l=e.src.charCodeAt(s),l===32||l===10);s++);if(s<f&&p!==s&&ZV(e,s))for(o=e.linkContent,s=e.pos;s<f&&(l=e.src.charCodeAt(s),l===32||l===10);s++);else o=``;if(s>=f||e.src.charCodeAt(s)!==41)return e.pos=d,!1;s++}else{if(e.linkLevel>0)return!1;for(;s<f&&(l=e.src.charCodeAt(s),l===32||l===10);s++);if(s<f&&e.src.charCodeAt(s)===91&&(p=s+1,s=KV(e,s),s>=0?i=e.src.slice(p,s++):s=p-1),i||=(i===void 0&&(s=r+1),e.src.slice(n,r)),c=e.env.references[QV(i)],!c)return e.pos=d,!1;a=c.href,o=c.title}return t||(e.pos=n,e.posMax=r,u?e.push({type:`image`,src:a,title:o,alt:e.src.substr(n,r-n),level:e.level}):(e.push({type:`link_open`,href:a,title:o,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:`link_close`,level:--e.level}))),e.pos=s,e.posMax=f,!0}function fU(e,t){var n,r,i,a,o=e.posMax,s=e.pos;return s+2>=o||e.src.charCodeAt(s)!==94||e.src.charCodeAt(s+1)!==91||e.level>=e.options.maxNesting||(n=s+2,r=KV(e,s+1),r<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=n,e.posMax=r,e.push({type:`footnote_ref`,id:i,level:e.level}),e.linkLevel++,a=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[i]={tokens:e.tokens.splice(a)},e.linkLevel--),e.pos=r+1,e.posMax=o,!0)}function pU(e,t){var n,r,i,a,o=e.posMax,s=e.pos;if(s+3>o||!e.env.footnotes||!e.env.footnotes.refs||e.src.charCodeAt(s)!==91||e.src.charCodeAt(s+1)!==94||e.level>=e.options.maxNesting)return!1;for(r=s+2;r<o;r++){if(e.src.charCodeAt(r)===32||e.src.charCodeAt(r)===10)return!1;if(e.src.charCodeAt(r)===93)break}return r===s+2||r>=o||(r++,n=e.src.slice(s+2,r-1),e.env.footnotes.refs[`:`+n]===void 0)?!1:(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[`:`+n]<0?(i=e.env.footnotes.list.length,e.env.footnotes.list[i]={label:n,count:0},e.env.footnotes.refs[`:`+n]=i):i=e.env.footnotes.refs[`:`+n],a=e.env.footnotes.list[i].count,e.env.footnotes.list[i].count++,e.push({type:`footnote_ref`,id:i,subId:a,level:e.level})),e.pos=r,e.posMax=o,!0)}var mU=`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,
251news,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`.split(`,`),hU=/^<([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])?)*)>/,gU=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function _U(e,t){var n,r,i,a,o,s=e.pos;return e.src.charCodeAt(s)!==60||(n=e.src.slice(s),n.indexOf(`>`)<0)?!1:(r=n.match(gU),r?mU.indexOf(r[1].toLowerCase())<0||(a=r[0].slice(1,-1),o=YV(a),!e.parser.validateLink(a))?!1:(t||(e.push({type:`link_open`,href:o,level:e.level}),e.push({type:`text`,content:a,level:e.level+1}),e.push({type:`link_close`,level:e.level})),e.pos+=r[0].length,!0):(i=n.match(hU),i?(a=i[0].slice(1,-1),o=YV(`mailto:`+a),e.parser.validateLink(o)?(t||(e.push({type:`link_open`,href:o,level:e.level}),e.push({type:`text`,content:a,level:e.level+1}),e.push({type:`link_close`,level:e.level})),e.pos+=i[0].length,!0):!1):!1))}function vU(e,t){return e=e.source,t||=``,function n(r,i){return r?(i=i.source||i,e=e.replace(r,i),n):new RegExp(e,t)}}var yU=/[a-zA-Z_:][a-zA-Z0-9:._-]*/,bU=vU(/(?:unquoted|single_quoted|double_quoted)/)(`unquoted`,/[^"'=<>`\x00-\x20]+/)(`single_quoted`,/'[^']*'/)(`double_quoted`,/"[^"]*"/)(),xU=vU(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)(`attr_name`,yU)(`attr_value`,bU)(),SU=vU(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)(`attribute`,xU)(),CU=vU(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)(`open_tag`,SU)(`close_tag`,/<\/[A-Za-z][A-Za-z0-9]*\s*>/)(`comment`,/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)(`processing`,/<[?].*?[?]>/)(`declaration`,/<![A-Z]+\s+[^>]*>/)(`cdata`,/<!\[CDATA\[[\s\S]*?\]\]>/)();function wU(e){var t=e|32;return t>=97&&t<=122}function TU(e,t){var n,r,i,a=e.pos;return!e.options.html||(i=e.posMax,e.src.charCodeAt(a)!==60||a+2>=i)||(n=e.src.charCodeAt(a+1),n!==33&&n!==63&&n!==47&&!wU(n))||(r=e.src.slice(a).match(CU),!r)?!1:(t||e.push({type:`htmltag`,content:e.src.slice(a,a+r[0].length),level:e.level}),e.pos+=r[0].length,!0)}var EU=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,DU=/^&([a-z][a-z0-9]{1,31});/i;function OU(e,t){var n,r,i,a=e.pos,o=e.posMax;if(e.src.charCodeAt(a)!==38)return!1;if(a+1<o){if(n=e.src.charCodeAt(a+1),n===35){if(i=e.src.slice(a).match(EU),i)return t||(r=i[1][0].toLowerCase()===`x`?parseInt(i[1].slice(1),16):parseInt(i[1],10),e.pending+=kV(r)?AV(r):AV(65533)),e.pos+=i[0].length,!0}else if(i=e.src.slice(a).match(DU),i){var s=CV(i[1]);if(i[1]!==s)return t||(e.pending+=s),e.pos+=i[0].length,!0}}return t||(e.pending+=`&`),e.pos++,!0}var kU=[[`text`,YH],[`newline`,XH],[`escape`,$H],[`backticks`,eU],[`del`,tU],[`ins`,nU],[`mark`,rU],[`emphasis`,oU],[`sub`,cU],[`sup`,uU],[`links`,dU],[`footnote_inline`,fU],[`footnote_ref`,pU],[`autolink`,_U],[`htmltag`,TU],[`entity`,OU]];function AU(){this.ruler=new UV;for(var e=0;e<kU.length;e++)this.ruler.push(kU[e][0],kU[e][1]);this.validateLink=jU}AU.prototype.skipToken=function(e){var t=this.ruler.getRules(``),n=t.length,r=e.pos,i,a;if((a=e.cacheGet(r))>0){e.pos=a;return}for(i=0;i<n;i++)if(t[i](e,!0)){e.cacheSet(r,e.pos);return}e.pos++,e.cacheSet(r,e.pos)},AU.prototype.tokenize=function(e){for(var t=this.ruler.getRules(``),n=t.length,r=e.posMax,i,a;e.pos<r;){for(a=0;a<n&&(i=t[a](e,!1),!i);a++);if(i){if(e.pos>=r)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},AU.prototype.parse=function(e,t,n,r){var i=new GV(e,this,t,n,r);this.tokenize(i)};function jU(e){var t=[`vbscript`,`javascript`,`file`,`data`],n=e.trim().toLowerCase();return n=PV(n),n.indexOf(`:`)===-1||t.indexOf(n.split(`:`)[0])===-1}var MU={default:{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`]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:`language-`,linkTarget:``,typographer:!1,quotes:`ââââ`,highlight:null,maxNesting:20},components:{core:{},block:{}
251,inline:{}}},commonmark:{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`]}}}};function NU(e,t,n){this.src=t,this.env=n,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 PU(e,t){typeof e!=`string`&&(t=e,e=`default`),t&&t.linkify!=null&&console.warn(`linkify option is removed. Use linkify plugin instead: 252 253import Remarkable from 'remarkable'; 254import linkify from 'remarkable/linkify'; 255new Remarkable().use(linkify) 256`),this.inline=new AU,this.block=new WH,this.core=new yH,this.renderer=new HV,this.ruler=new UV,this.options={},this.configure(MU[e]),this.set(t||{})}PU.prototype.set=function(e){EV(this.options,e)},PU.prototype.configure=function(e){var t=this;if(!e)throw Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)})},PU.prototype.use=function(e,t){return e(this,t),this},PU.prototype.parse=function(e,t){var n=new NU(this,e,t);return this.core.process(n),n.tokens},PU.prototype.render=function(e,t){return t||={},this.renderer.render(this.parse(e,t),this.options,t)},PU.prototype.parseInline=function(e,t){var n=new NU(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens},PU.prototype.renderInline=function(e,t){return t||={},this.renderer.render(this.parseInline(e,t),this.options,t)};var FU=`3.16.2`;function IU(e,t){for(var n in t)t.hasOwnProperty(n)&&e[n]===void 0&&(e[n]=t[n]);return e}function LU(e,t,n){var r;return e.length>t&&(n==null?(n=`…`,r=3):r=n.length,e=e.substring(0,t-r)+n),e}function RU(e,t){if(Array.prototype.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}function zU(e,t){for(var n=e.length-1;n>=0;n--)t(e[n])===!0&&e.splice(n,1)}function BU(e,t){if(!t.global)throw Error("`splitRegex` must have the 'g' flag set");for(var n=[],r=0,i;i=t.exec(e);)n.push(e.substring(r,i.index)),n.push(i[0]),r=i.index+i[0].length;return n.push(e.substring(r)),n}function VU(e){throw Error(`Unhandled case for value: '${e}'`)}var HU=function(){function e(e){e===void 0&&(e={}),this.tagName=``,this.attrs={},this.innerHTML=``,this.whitespaceRegex=/\s+/,this.tagName=e.tagName||``,this.attrs=e.attrs||{},this.innerHTML=e.innerHtml||e.innerHTML||``}return e.prototype.setTagName=function(e){return this.tagName=e,this},e.prototype.getTagName=function(){return this.tagName||``},e.prototype.setAttr=function(e,t){var n=this.getAttrs();return n[e]=t,this},e.prototype.getAttr=function(e){return this.getAttrs()[e]},e.prototype.setAttrs=function(e){return Object.assign(this.getAttrs(),e),this},e.prototype.getAttrs=function(){return this.attrs||={}},e.prototype.setClass=function(e){return this.setAttr(`class`,e)},e.prototype.addClass=function(e){for(var t=this.getClass(),n=this.whitespaceRegex,r=t?t.split(n):[],i=e.split(n),a;a=i.shift();)RU(r,a)===-1&&r.push(a);return this.getAttrs().class=r.join(` `),this},e.prototype.removeClass=function(e){for(var t=this.getClass(),n=this.whitespaceRegex,r=t?t.split(n):[],i=e.split(n),a;r.length&&(a=i.shift());){var o=RU(r,a);o!==-1&&r.splice(o,1)}return this.getAttrs().class=r.join(` `),this},e.prototype.getClass=function(){return this.getAttrs().class||``},e.prototype.hasClass=function(e){return(` `+this.getClass()+` `).indexOf(` `+e+` `)!==-1},e.prototype.setInnerHTML=function(e){return this.innerHTML=e,this},e.prototype.setInnerHtml=function(e){return this.setInnerHTML(e)},e.prototype.getInnerHTML=function(){return this.innerHTML||``},e.prototype.getInnerHtml=function(){return this.getInnerHTML()},e.prototype.toAnchorString=function(){var e=this.getTagName(),t=this.buildAttrsStr();return t=t?` `+t:``,[`<`,e,t,`>`,this.getInnerHtml(),`</`,e,`>`].join(``)},e.prototype.buildAttrsStr=function(){if(!this.attrs)return``;var e=this.getAttrs(),t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(n+`="`+e[n]+`"`);return t.join(` `)},e}();function UU(e,t,n){var r,i;n==null?(n=`…`,i=3,r=8):(i=n.length,r=n.length);var a=function(e){var t={},n=e,r=n.match(/^([a-z]+):\/\//i);return r&&(t.scheme=r[1],n=n.substr(r[0].length)),r=n.match(/^(.*?)(?=(\?|#|\/|$))/i),r&&(t.host=r[1],n=n.substr(r[0].length)),r=n.match(/^\/(.*?)(?=(\?|#|$))/i),r&&(t.path=r[1],n=n.substr(r[0].length)),r=n.match(/^\?(.*?)(?=(#|$))/i),r&&(t.query=r[1],n=n.substr(r[0].length)),r=n.match(/^#(.*?)$/i),r&&(t.fragment=r[1]),t},o=function(e){var t=``;return e.scheme&&e.host&&(t+=e.scheme+`://`),e.host&&(t+=e.host),e.path&&(t+=`/`+e.path),e.query&&(t+=`?`+e.query),e.fragment&&(t+=`#`+e.fragment),t},s=function(e,t){var r=t/2,i=Math.ceil(r),a=-1*Math.floor(r),o=``;return a<0&&(o=e.substr(a)),e.substr(0,i)+n+o};if(e.length<=t)return e;var c=t-i,l=a(e);if(l.query){var u=l.query.match(/^(.*?)(?=(\?|\#))(.*?)$/i);u&&(l.query=l.query.substr(0,u[1].length),e=o(l))}if(e.length<=t||(l.host&&(l.host=l.host.replace(/^www\./,``),e=o(l)),e.length<=t))return e;var d=``;if(l.host&&(d+=l.host),d.length>=c)return l.host.length==t?(l.host.substr(0,t-i)+n).substr(0,c+r):s(d,c
256).substr(0,c+r);var f=``;if(l.path&&(f+=`/`+l.path),l.query&&(f+=`?`+l.query),f){if((d+f).length>=c){if((d+f).length==t)return(d+f).substr(0,t);var p=c-d.length;return(d+s(f,p)).substr(0,c+r)}d+=f}if(l.fragment){var m=`#`+l.fragment;if((d+m).length>=c){if((d+m).length==t)return(d+m).substr(0,t);var h=c-d.length;return(d+s(m,h)).substr(0,c+r)}d+=m}if(l.scheme&&l.host){var g=l.scheme+`://`;if((d+g).length<c)return(g+d).substr(0,t)}if(d.length<=t)return d;var _=``;return c>0&&(_=d.substr(-1*Math.floor(c/2))),(d.substr(0,Math.ceil(c/2))+n+_).substr(0,c+r)}function WU(e,t,n){if(e.length<=t)return e;var r,i;n==null?(n=`…`,r=8,i=3):(r=n.length,i=n.length);var a=t-i,o=``;return a>0&&(o=e.substr(-1*Math.floor(a/2))),(e.substr(0,Math.ceil(a/2))+n+o).substr(0,a+r)}function GU(e,t,n){return LU(e,t,n)}var KU=function(){function e(e){e===void 0&&(e={}),this.newWindow=!1,this.truncate={},this.className=``,this.newWindow=e.newWindow||!1,this.truncate=e.truncate||{},this.className=e.className||``}return e.prototype.build=function(e){return new HU({tagName:`a`,attrs:this.createAttrs(e),innerHtml:this.processAnchorText(e.getAnchorText())})},e.prototype.createAttrs=function(e){var t={href:e.getAnchorHref()},n=this.createCssClass(e);return n&&(t.class=n),this.newWindow&&(t.target=`_blank`,t.rel=`noopener noreferrer`),this.truncate&&this.truncate.length&&this.truncate.length<e.getAnchorText().length&&(t.title=e.getAnchorHref()),t},e.prototype.createCssClass=function(e){var t=this.className;if(t){for(var n=[t],r=e.getCssClassSuffixes(),i=0,a=r.length;i<a;i++)n.push(t+`-`+r[i]);return n.join(` `)}return``},e.prototype.processAnchorText=function(e){return e=this.doTruncate(e),e},e.prototype.doTruncate=function(e){var t=this.truncate;if(!t||!t.length)return e;var n=t.length,r=t.location;return r===`smart`?UU(e,n):r===`middle`?WU(e,n):GU(e,n)},e}(),qU=function(){function e(e){this.__jsduckDummyDocProp=null,this.matchedText=``,this.offset=0,this.tagBuilder=e.tagBuilder,this.matchedText=e.matchedText,this.offset=e.offset}return e.prototype.getMatchedText=function(){return this.matchedText},e.prototype.setOffset=function(e){this.offset=e},e.prototype.getOffset=function(){return this.offset},e.prototype.getCssClassSuffixes=function(){return[this.getType()]},e.prototype.buildTag=function(){return this.tagBuilder.build(this)},e}(),JU=function(e){Ze(t,e);function t(t){var n=e.call(this,t)||this;return n.email=``,n.email=t.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}(qU);Xe();var YU=function(e){Ze(t,e);function t(t){var n=e.call(this,t)||this;return n.serviceName=``,n.hashtag=``,n.serviceName=t.serviceName,n.hashtag=t.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 e=this.serviceName,t=this.hashtag;switch(e){case`twitter`:return`https://twitter.com/hashtag/`+t;case`facebook`:return`https://www.facebook.com/hashtag/`+t;case`instagram`:return`https://instagram.com/explore/tags/`+t;case`tiktok`:return`https://www.tiktok.com/tag/`+t;default:throw Error(`Unknown service name to point hashtag to: `+e)}},t.prototype.getAnchorText=function(){return`#`+this.hashtag},t}(qU);Xe();var XU=function(e){Ze(t,e);function t(t){var n=e.call(this,t)||this;return n.serviceName=`twitter`,n.mention=``,n.mention=t.mention,n.serviceName=t.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 Error(`Unknown service name to point mention to: `+this.serviceName)}},t.prototype.getAnchorText=function(){return`@`+this.mention},t.prototype.getCssClassSuffixes=function(){var t=e.prototype.getCssClassSuffixes.call(this),n=this.getServiceName();
256return n&&t.push(n),t},t}(qU);Xe();var ZU=function(e){Ze(t,e);function t(t){var n=e.call(this,t)||this;return n.number=``,n.plusSign=!1,n.number=t.number,n.plusSign=t.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}(qU);Xe();var QU=function(e){Ze(t,e);function t(t){var n=e.call(this,t)||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=t.urlMatchType,n.url=t.url,n.protocolUrlMatch=t.protocolUrlMatch,n.protocolRelativeMatch=t.protocolRelativeMatch,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return t.prototype.getType=function(){return`url`},t.prototype.getUrlMatchType=function(){return this.urlMatchType},t.prototype.getUrl=function(){var e=this.url;return!this.protocolRelativeMatch&&!this.protocolUrlMatch&&!this.protocolPrepended&&(e=this.url=`http://`+e,this.protocolPrepended=!0),e},t.prototype.getAnchorHref=function(){return this.getUrl().replace(/&/g,`&`)},t.prototype.getAnchorText=function(){var e=this.getMatchedText();return this.protocolRelativeMatch&&(e=this.stripProtocolRelativePrefix(e)),this.stripPrefix.scheme&&(e=this.stripSchemePrefix(e)),this.stripPrefix.www&&(e=this.stripWwwPrefix(e)),this.stripTrailingSlash&&(e=this.removeTrailingSlash(e)),this.decodePercentEncoding&&(e=this.removePercentEncoding(e)),e},t.prototype.stripSchemePrefix=function(e){return e.replace(this.schemePrefixRegex,``)},t.prototype.stripWwwPrefix=function(e){return e.replace(this.wwwPrefixRegex,`$1`)},t.prototype.stripProtocolRelativePrefix=function(e){return e.replace(this.protocolRelativeRegex,``)},t.prototype.removeTrailingSlash=function(e){return e.charAt(e.length-1)===`/`&&(e=e.slice(0,-1)),e},t.prototype.removePercentEncoding=function(e){var t=e.replace(/%22/gi,`"`).replace(/%26/gi,`&`).replace(/%27/gi,`'`).replace(/%3C/gi,`<`).replace(/%3E/gi,`>`);try{return decodeURIComponent(t)}catch{return t}},t}(qU),$U=function(){function e(e){this.__jsduckDummyDocProp=null,this.tagBuilder=e.tagBuilder}return e}(),eW=/[A-Za-z]/,tW=/[\d]/,nW=/[\D]/,rW=/\s/,iW=/['"]/,aW=/[\x00-\x1F\x7F]/,oW=`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\\u
2560AE1\\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`,sW=oW+`\\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\\u0300-\\u036F\\u0483-\\u0489\\u0591-\\u05BD\\u05BF\\u05C1\\u05C2\\u05C4\\u05C5\\u05C7\\u0610-\\u
256061A\\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-\\u
25617D3\\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`,cW=`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`,lW=sW+cW,uW=sW+cW,dW=RegExp(`[${uW}]`),fW=`(?:[`+cW+`]{1,3}\\.){3}[`+cW+`]{1,3}`,pW=`[`+uW+`](?:[`+uW+`\\-_]{0,61}[`+uW+`])?`,mW=function(e){return`(?=(`+pW+`))\\`+e},hW=function(e){return`(?:`+mW(e)+`(?:\\.`+mW(e+1)+`){0,126}|`+fW+`)`};RegExp(`[`+uW+`.\\-]*[`+uW+`\\-]`);var gW=dW,_W
vendor: 11,452 bytes, line 256
256=/(?: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|ελ|εÏ
|бг|еÑ|ÑÑ|áá|ë·ë·|ë·ì»´|ì¼ì±|íêµ|ã³ã |ä¸ç|ä¸ä¿¡|ä¸å½|ä¸å|ä¼ä¸|ä½å±±|ä¿¡æ¯|å¥åº·|å
«å¦|å
¬å¸|å
¬ç|å°æ¹¾|å°ç£|åå|ååº|åæ |åé|å¨çº¿|大æ¿|娱ä¹|å®¶é»|广ä¸|å¾®å|æ
å|ææº|æè|æ¿å¡|æ¿åº|æ°é»|æ¶å°|æ¸ç±|æºæ|游æ|æ¾³é|ç¹ç|ç§»å¨|ç½å|ç½åº|ç½ç«|ç½ç»|èé|è°·æ|è´ç©|é販|éå¢|é£å|é¤å
|馿¸¯)/
256;Xe();var vW=RegExp(`[${uW}!#\$%&'*+/=?^_\`{|}~-]`),yW=RegExp(`^${_W.source}\$`),bW=function(e){Ze(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.localPartCharRegex=vW,t.strictTldRegex=yW,t}return t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.localPartCharRegex,r=this.strictTldRegex,i=[],a=e.length,o=new xW,s={m:`a`,a:`i`,i:`l`,l:`t`,t:`o`,o:`:`},c=0,l=0,u=o;c<a;){var d=e.charAt(c);switch(l){case 0:f(d);break;case 1:p(e.charAt(c-1),d);break;case 2:m(d);break;case 3:h(d);break;case 4:g(d);break;case 5:_(d);break;case 6:v(d);break;case 7:y(d);break;default:VU(l)}c++}return S(),i;function f(e){e===`m`?b(1):n.test(e)&&b()}function p(e,t){e===`:`?n.test(t)?(l=2,u=new xW(Qe(Qe({},u),{hasMailtoPrefix:!0}))):x():s[e]===t||(n.test(t)?l=2:t===`.`?l=3:t===`@`?l=4:x())}function m(e){e===`.`?l=3:e===`@`?l=4:n.test(e)||x()}function h(e){e===`.`||e===`@`?x():n.test(e)?l=2:x()}function g(e){gW.test(e)?l=5:x()}function _(e){e===`.`?l=7:e===`-`?l=6:gW.test(e)||S()}function v(e){e===`-`||e===`.`?S():gW.test(e)?l=5:S()}function y(e){e===`.`||e===`-`?S():gW.test(e)?(l=5,u=new xW(Qe(Qe({},u),{hasDomainDot:!0}))):S()}function b(e){e===void 0&&(e=2),l=e,u=new xW({idx:c})}function x(){l=0,u=o}function S(){if(u.hasDomainDot){var n=e.slice(u.idx,c);/[-.]$/.test(n)&&(n=n.slice(0,-1));var a=u.hasMailtoPrefix?n.slice(7):n;o(a)&&i.push(new JU({tagBuilder:t,matchedText:n,offset:u.idx,email:a}))}x();function o(e){var t=(e.split(`.`).pop()||``).toLowerCase();return r.test(t)}}},t}($U),xW=function(){function e(e){e===void 0&&(e={}),this.idx=e.idx===void 0?-1:e.idx,this.hasMailtoPrefix=!!e.hasMailtoPrefix,this.hasDomainDot=!!e.hasDomainDot}return e}(),SW=function(){function e(){}return e.isValid=function(e,t){return!(t&&!this.isValidUriScheme(t)||this.urlMatchDoesNotHaveProtocolOrDot(e,t)||this.urlMatchDoesNotHaveAtLeastOneWordChar(e,t)&&!this.isValidIpAddress(e)||this.containsMultipleDots(e))},e.isValidIpAddress=function(e){var t=new RegExp(this.hasFullProtocolRegex.source+this.ipRegex.source);return e.match(t)!==null},e.containsMultipleDots=function(e){var t=e;return this.hasFullProtocolRegex.test(e)&&(t=e.split(`://`)[1]),t.split(`/`)[0].indexOf(`..`)>-1},e.isValidUriScheme=function(e){var t=e.match(this.uriSchemeRegex),n=t&&t[0].toLowerCase();return n!==`javascript:`&&n!==`vbscript:`},e.urlMatchDoesNotHaveProtocolOrDot=function(e,t){return!!e&&(!t||!this.hasFullProtocolRegex.test(t))&&e.indexOf(`.`)===-1},e.urlMatchDoesNotHaveAtLeastOneWordChar=function(e,t){return e&&t?!this.hasFullProtocolRegex.test(t)&&!this.hasWordCharAfterProtocolRegex.test(e):!1},e.hasFullProtocolRegex=/^[A-Za-z][-.+A-Za-z0-9]*:\/\//,e.uriSchemeRegex=/^[A-Za-z][-.+A-Za-z0-9]*:/,e.hasWordCharAfterProtocolRegex=RegExp(`:[^\\s]*?[`+oW+`]`),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}();Xe();var CW=(function(){var e=/(?:[A-Za-z][-.+A-Za-z0-9]{0,63}:(?![A-Za-z][-.+A-Za-z0-9]{0,63}:\/\/)(?!\d+\/?)(?:\/\/)?)/,t=/(?:www\.)/,n=RegExp(`[/?#](?:[`+uW+`\\-+&@#/%=~_()|'$*\\[\\]{}?!:,.;^â]*[`+uW+`\\-+&@#/%=~_()|'$*\\[\\]{}â])?`);return new RegExp([`(?:`,`(`,e.source,hW(2),`)`,`|`,`(`,`(//)?`,t.source,hW(6),`)`,`|`,`(`,`(//)?`,hW(10)+`\\.`,_W.source,`(?![-`+lW+`])`,`)`,`)`,`(?::[0-9]+)?`,`(?:`+n.source+`)?`].join(``),`gi`)})(),wW=RegExp(`[`+uW+`]`),TW=function(e){Ze(t,e);function t(t){var n=e.call(this,t)||this;return n.stripPrefix={scheme:!0,www:!0},n.stripTrailingSlash=!0,n.decodePercentEncoding=!0,n.matcherRegex=CW,n.wordCharRegExp=wW,n.stripPrefix=t.stripPrefix,n.stripTrailingSlash=t.stripTrailingSlash,n.decodePercentEncoding=t.decodePercentEncoding,n}return t.prototype.parseMatches=function(e){for(var t=this.matcherRegex,n=this.stripPrefix,r=this.stripTrailingSlash,i=this.decodePercentEncoding,a=this.tagBuilder,o=[],s,c=function(){var t=s[0],c=s[1],u=s[4],d=s[5],f=s[9],p=s.index,m=d||f,h=e.charAt(p-1);if(!SW.isValid(t,c)||p>0&&h===`@`||p>0&&m&&l.wordCharRegExp.test(h))return`continue`;if(/\?$/.test(t)&&(t=t.substr(0,t.length-1)),l.matchHasUnbalancedClosingParen(t))t=t.substr(0,t.length-1);else{var g=l.matchHasInvalidCharAfterTld(t,c);g>
256-1&&(t=t.substr(0,g))}var _=[`http://`,`https://`].find(function(e){return!!c&&c.indexOf(e)!==-1});if(_){var v=t.indexOf(_);t=t.substr(v),c=c.substr(v),p+=v}var y=c?`scheme`:u?`www`:`tld`,b=!!c;o.push(new QU({tagBuilder:a,matchedText:t,offset:p,urlMatchType:y,url:t,protocolUrlMatch:b,protocolRelativeMatch:!!m,stripPrefix:n,stripTrailingSlash:r,decodePercentEncoding:i}))},l=this;(s=t.exec(e))!==null;)c();return o},t.prototype.matchHasUnbalancedClosingParen=function(e){var t=e.charAt(e.length-1),n;if(t===`)`)n=`(`;else if(t===`]`)n=`[`;else if(t===`}`)n=`{`;else return!1;for(var r=0,i=0,a=e.length-1;i<a;i++){var o=e.charAt(i);o===n?r++:o===t&&(r=Math.max(r-1,0))}return r===0},t.prototype.matchHasInvalidCharAfterTld=function(e,t){if(!e)return-1;var n=0;t&&(n=e.indexOf(`:`),e=e.slice(n));var r=RegExp(`^((.?//)?[-.`+uW+`]*[-`+uW+`]\\.[-`+uW+`]+)`).exec(e);return r===null?-1:(n+=r[1].length,e=e.slice(r[1].length),/^[^-.A-Za-z0-9:\/?#]/.test(e)?n:-1)},t}($U);Xe();var EW=RegExp(`[_${uW}]`),DW=function(e){Ze(t,e);function t(t){var n=e.call(this,t)||this;return n.serviceName=`twitter`,n.serviceName=t.serviceName,n}return t.prototype.parseMatches=function(e){for(var t=this.tagBuilder,n=this.serviceName,r=[],i=e.length,a=0,o=-1,s=0;a<i;){var c=e.charAt(a);switch(s){case 0:l(c);break;case 1:u(c);break;case 2:d(c);break;case 3:f(c);break;default:VU(s)}a++}return p(),r;function l(e){e===`#`?(s=2,o=a):dW.test(e)&&(s=1)}function u(e){dW.test(e)||(s=0)}function d(e){s=EW.test(e)?3:+!!dW.test(e)}function f(e){EW.test(e)||(p(),o=-1,s=+!!dW.test(e))}function p(){if(o>-1&&a-o<=140){var i=e.slice(o,a),s=new YU({tagBuilder:t,matchedText:i,offset:o,serviceName:n,hashtag:i.slice(1)});r.push(s)}}},t}($U),OW=[`twitter`,`facebook`,`instagram`,`tiktok`];Xe();var kW=RegExp(`(?:(?:(?:(\\+)?\\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]+#?)*|(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})`,`g`),AW=function(e){Ze(t,e);function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.matcherRegex=kW,t}return t.prototype.parseMatches=function(e){for(var t=this.matcherRegex,n=this.tagBuilder,r=[],i;(i=t.exec(e))!==null;){var a=i[0],o=a.replace(/[^0-9,;#]/g,``),s=!!(i[1]||i[2]),c=i.index==0?``:e.substr(i.index-1,1),l=e.substr(i.index+a.length,1),u=!c.match(/\d/)&&!l.match(/\d/);this.testMatch(i[3])&&this.testMatch(a)&&u&&r.push(new ZU({tagBuilder:n,matchedText:a,offset:i.index,number:o,plusSign:s}))}return r},t.prototype.testMatch=function(e){return nW.test(e)},t}($U);Xe();var jW=RegExp(`@[_${uW}]{1,50}(?![_${uW}])`,`g`),MW=RegExp(`@[_.${uW}]{1,30}(?![_${uW}])`,`g`),NW=RegExp(`@[-_.${uW}]{1,50}(?![-_${uW}])`,`g`),PW=RegExp(`@[_.${uW}]{1,23}[_${uW}](?![_${uW}])`,`g`),FW=RegExp(`[^`+uW+`]`),IW=function(e){Ze(t,e);function t(t){var n=e.call(this,t)||this;return n.serviceName=`twitter`,n.matcherRegexes={twitter:jW,instagram:MW,soundcloud:NW,tiktok:PW},n.nonWordCharRegex=FW,n.serviceName=t.serviceName,n}return t.prototype.parseMatches=function(e){var t=this.serviceName,n=this.matcherRegexes[this.serviceName],r=this.nonWordCharRegex,i=this.tagBuilder,a=[],o;if(!n)return a;for(;(o=n.exec(e))!==null;){var s=o.index,c=e.charAt(s-1);if(s===0||r.test(c)){var l=o[0].replace(/\.+$/g,``),u=l.slice(1);a.push(new XU({tagBuilder:i,matchedText:l,offset:s,serviceName:t,mention:u}))}}return a},t}($U);Xe();function LW(e,t){for(var n=t.onOpenTag,r=t.onCloseTag,i=t.onText,a=t.onComment,o=t.onDoctype,s=new RW,c=0,l=e.length,u=0,d=0,f=s;c<l;){var p=e.charAt(c);switch(u){case 0:m(p);break;case 1:h(p);break;case 2:_(p);break;case 3:g(p);break;case 4:v(p);break;case 5:y(p);break;case 6:b(p);break;case 7:x(p);break;case 8:S(p);break;case 9:C(p);break;case 10:w(p);break;case 11:T(p);break;case 12:E(p);break;case 13:D(p);break;case 14:O(p);break;case 15:k(p);break;case 16:A(p);break;case 17:j(p);break;case 18:M(p);break;case 19:N(p);break;case 20:P(p);break;default:VU(u)}c++}d<c&&ee();function m(e){e===`<`&&I()}function h(e){e===`!`?u=13:e===`/`?(u=2,f=new RW(Qe(Qe({},f),{isClosing:!0}))):e===`<`?I():eW.test(e)?(u=3,f=new RW(Qe(Qe({},f),{isOpening:!0}))):(u=0,f=s)}function g(e){rW.test(e)?(f=new RW(Qe(Qe({},f),{name:R()})),u=4):e===`<`?I():e===`/`?(f=new RW(Qe(Qe({},f),{name:R()})),u=12):e===`>`?(f=new RW(Qe(Qe({},f),{name:R()})),L()):!eW.test(e)&&!tW.test(e)&&e!==`:`&&F()}function _(e){e===`>`?F():eW.test(e)?u=3:F()}function v(e){rW.test(e)||(e===`/`?u=12:e===`>`?L():e===`<`?I():e===`=`||iW.test(e)||aW.test(e)?F():u=5)}function y(e){rW.test(e)?u=6:e===`/`?u=12:e===`=`?u=7:e===`>`?L():e===`<`?I():iW.test(e)&&F()}function b(e){rW.test(e)||(e===`/`?u=12:e===`=`?u=7:e===`>`?L():e===`<`?I():iW.test(e)?F():u=5)}function x(e){rW.test(e)||(e===`"`?u=8:e===`'`?u=9:/[>=`]/.test(e)?F():e===`<`?I():u=10)}function S(e){e===`"`&&(u=11)}function C(e){e===`'`&&(u=11)}function w(e){rW.test(e)?u=4:e===`>`?L():e===`<`&&I()}function T(e){rW.test(e)?u=4:e===`/`?u=12:e===`>`?L():e===`<`?I():(u=4,z())}function E(e){e===`>`?(f=new RW(Qe(Qe({},f),{isClosing:!0})),L()):u=4}function D(t){e.substr(c,2)===`--`?(c+=2,f=new RW(Qe(Qe({},f),{type:`comment`})),u=14):e.substr(c,7).toUpperCase()===`DOCTYPE`?(c+=7,f=new RW(Qe(Qe({},f),{type:`doctype`})),u=20):F()}function O(e){e===`-`?u=15:e===`>`?F():u=16}function k(e){e===`-`?u=18:e===`>`?F():u=16}function A(e){e===`-`&&(u=17)}
256function j(e){u=e===`-`?18:16}function M(e){e===`>`?L():e===`!`?u=19:e===`-`||(u=16)}function N(e){e===`-`?u=17:e===`>`?L():u=16}function P(e){e===`>`?L():e===`<`&&I()}function F(){u=0,f=s}function I(){u=1,f=new RW({idx:c})}function L(){var t=e.slice(d,f.idx);t&&i(t,d),f.type===`comment`?a(f.idx):f.type===`doctype`?o(f.idx):(f.isOpening&&n(f.name,f.idx),f.isClosing&&r(f.name,f.idx)),F(),d=c+1}function ee(){i(e.slice(d,c),d),d=c+1}function R(){var t=f.idx+(f.isClosing?2:1);return e.slice(t,c).toLowerCase()}function z(){c--}}var RW=function(){function e(e){e===void 0&&(e={}),this.idx=e.idx===void 0?-1:e.idx,this.type=e.type||`tag`,this.name=e.name||``,this.isOpening=!!e.isOpening,this.isClosing=!!e.isClosing}return e}(),zW=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 n=this.mention;if(n!==!1&&[`twitter`,`instagram`,`soundcloud`,`tiktok`].indexOf(n)===-1)throw Error(`invalid \`mention\` cfg '${n}' - see docs`);var r=this.hashtag;if(r!==!1&&OW.indexOf(r)===-1)throw Error(`invalid \`hashtag\` cfg '${r}' - 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,n){return new e(n).link(t)},e.parse=function(t,n){return new e(n).parse(t)},e.prototype.normalizeUrlsCfg=function(e){return e??=!0,typeof e==`boolean`?{schemeMatches:e,wwwMatches:e,tldMatches:e}:{schemeMatches:typeof e.schemeMatches!=`boolean`||e.schemeMatches,wwwMatches:typeof e.wwwMatches!=`boolean`||e.wwwMatches,tldMatches:typeof e.tldMatches!=`boolean`||e.tldMatches}},e.prototype.normalizeStripPrefixCfg=function(e){return e??=!0,typeof e==`boolean`?{scheme:e,www:e}:{scheme:typeof e.scheme!=`boolean`||e.scheme,www:typeof e.www!=`boolean`||e.www}},e.prototype.normalizeTruncateCfg=function(e){return typeof e==`number`?{length:e,location:`end`}:IU(e||{},{length:1/0,location:`end`})},e.prototype.parse=function(e){var t=this,n=[`a`,`style`,`script`],r=0,i=[];return LW(e,{onOpenTag:function(e){n.indexOf(e)>=0&&r++},onText:function(e,n){if(r===0){var a=BU(e,/( | |<|<|>|>|"|"|')/gi),o=n;a.forEach(function(e,n){if(n%2==0){var r=t.parseText(e,o);i.push.apply(i,r)}o+=e.length})}},onCloseTag:function(e){n.indexOf(e)>=0&&(r=Math.max(r-1,0))},onComment:function(e){},onDoctype:function(e){}}),i=this.compactMatches(i),i=this.removeUnwantedMatches(i),i},e.prototype.compactMatches=function(e){e.sort(function(e,t){return e.getOffset()-t.getOffset()});for(var t=0;t<e.length-1;){var n=e[t],r=n.getOffset(),i=n.getMatchedText().length,a=r+i;if(t+1<e.length){if(e[t+1].getOffset()===r){var o=e[t+1].getMatchedText().length>i?t:t+1;e.splice(o,1);continue}if(e[t+1].getOffset()<a){e.splice(t+1,1);continue}}t++}return e},e.prototype.removeUnwantedMatches=function(e){return this.hashtag||zU(e,function(e){return e.getType()===`hashtag`}),this.email||zU(e,function(e){return e.getType()===`email`}),this.phone||zU(e,function(e){return e.getType()===`phone`}),this.mention||zU(e,function(e){return e.getType()===`mention`}
256),this.urls.schemeMatches||zU(e,function(e){return e.getType()===`url`&&e.getUrlMatchType()===`scheme`}),this.urls.wwwMatches||zU(e,function(e){return e.getType()===`url`&&e.getUrlMatchType()===`www`}),this.urls.tldMatches||zU(e,function(e){return e.getType()===`url`&&e.getUrlMatchType()===`tld`}),e},e.prototype.parseText=function(e,t){t===void 0&&(t=0),t||=0;for(var n=this.getMatchers(),r=[],i=0,a=n.length;i<a;i++){for(var o=n[i].parseMatches(e),s=0,c=o.length;s<c;s++)o[s].setOffset(t+o[s].getOffset());r.push.apply(r,o)}return r},e.prototype.link=function(e){if(!e)return``;this.sanitizeHtml&&(e=e.replace(/</g,`<`).replace(/>/g,`>`));for(var t=this.parse(e),n=[],r=0,i=0,a=t.length;i<a;i++){var o=t[i];n.push(e.substring(r,o.getOffset())),n.push(this.createMatchReturnVal(o)),r=o.getOffset()+o.getMatchedText().length}return n.push(e.substring(r)),n.join(``)},e.prototype.createMatchReturnVal=function(e){var t;return this.replaceFn&&(t=this.replaceFn.call(this.context,e)),typeof t==`string`?t:t===!1?e.getMatchedText():t instanceof HU?t.toAnchorString():e.buildTag().toAnchorString()},e.prototype.getMatchers=function(){if(this.matchers)return this.matchers;var e=this.getTagBuilder(),t=[new DW({tagBuilder:e,serviceName:this.hashtag}),new bW({tagBuilder:e}),new AW({tagBuilder:e}),new IW({tagBuilder:e,serviceName:this.mention}),new TW({tagBuilder:e,stripPrefix:this.stripPrefix,stripTrailingSlash:this.stripTrailingSlash,decodePercentEncoding:this.decodePercentEncoding})];return this.matchers=t},e.prototype.getTagBuilder=function(){var e=this.tagBuilder;return e||=this.tagBuilder=new KU({newWindow:this.newWindow,truncate:this.truncate,className:this.className}),e},e.version=FU,e.AnchorTagBuilder=KU,e.HtmlTag=HU,e.matcher={Email:bW,Hashtag:DW,Matcher:$U,Mention:IW,Phone:AW,Url:TW},e.match={Email:JU,Hashtag:YU,Match:qU,Mention:XU,Phone:ZU,Url:QU},e}(),BW=/www|@|\:\/\//;function VW(e){return/^<a[>\s]/i.test(e)}function HW(e){return/^<\/a\s*>/i.test(e)}function UW(){var e=[];return{links:e,autolinker:new zW({stripPrefix:!1,url:!0,email:!0,replaceFn:function(t){switch(t.getType()){case`url`:e.push({text:t.matchedText,url:t.getUrl()});break;case`email`:e.push({text:t.matchedText,url:`mailto:`+t.getEmail().replace(/^mailto:/i,``)})}return!1}})}}function WW(e){var t,n,r,i,a,o,s,c,l,u,d,f=e.tokens,p=null,m,h;for(n=0,r=f.length;n<r;n++)if(f[n].type===`inline`)for(i=f[n].children,d=0,t=i.length-1;t>=0;t--){if(a=i[t],a.type===`link_close`){for(t--;i[t].level!==a.level&&i[t].type!==`link_open`;)t--;continue}if(a.type===`htmltag`&&(VW(a.content)&&d>0&&d--,HW(a.content)&&d++),!(d>0)&&a.type===`text`&&BW.test(a.content)){if(p||(p=UW(),m=p.links,h=p.autolinker),o=a.content,m.length=0,h.link(o),!m.length)continue;for(s=[],u=a.level,c=0;c<m.length;c++)e.inline.validateLink(m[c].url)&&(l=o.indexOf(m[c].text),l&&s.push({type:`text`,content:o.slice(0,l),level:u}),s.push({type:`link_open`,href:m[c].url,title:``,level:u++}),s.push({type:`text`,content:m[c].text,level:u}),s.push({type:`link_close`,level:--u}),o=o.slice(l+m[c].text.length));o.length&&s.push({type:`text`,content:o,level:u}),f[n].children=i=[].concat(i.slice(0,t),s,i.slice(t+1))}}}function GW(e){e.core.ruler.push(`linkify`,WW)}function KW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function qW(e){if(Array.isArray(e))return e}function JW(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function YW(){throw TypeError(`Invalid attempt to destructure non-iterable instance. 257In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function XW(e,t){return qW(e)||JW(e,t)||ZW(e,t)||YW()}function ZW(e,t){if(e){if(typeof e==`string`)return KW(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?KW(e,t):void 0}}var QW=Object.entries,$W=Object.setPrototypeOf,eG=Object.isFrozen,tG=Object.getPrototypeOf,nG=Object.getOwnPropertyDescriptor,rG=Object.freeze,iG=Object.seal,aG=Object.create,oG=typeof Reflect<`u`&&Reflect,sG=oG.apply,cG=oG.construct;rG||=function(e){return e},iG||=function(e){return e},sG||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},cG||=function(e){return new e(...[...arguments].slice(1))};var lG=kG(Array.prototype.forEach),uG=kG(Array.prototype.lastIndexOf),dG=kG(Array.prototype.pop),fG=kG(Array.prototype.push),pG=kG(Array.prototype.splice),mG=Array.isArray,hG=kG(String.prototype.toLowerCase),gG=kG(String.prototype.toString),_G=kG(String.prototype.match),vG=kG(String.prototype.replace),yG=kG(String.prototype.indexOf),bG=kG(String.prototype.trim),xG=kG(Number.prototype.toString),SG=kG(Boolean.prototype.toString),CG=typeof BigInt>`u`?null:kG(BigInt.prototype.toString),wG=typeof Symbol>`u`?null:kG(Symbol.prototype.toString),TG=kG(Object.prototype.hasOwnProperty),EG=kG(Object.prototype.toString),DG=kG(RegExp.prototype.test),OG=AG(TypeError);function kG(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return sG(e,t,n)}}function AG(e){return function(){return cG(e,[...arguments])}}function jG(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:hG;if($W&&$W(e,null),!mG(t))return e;let r=t.length;for(;r--;){let i=t[r];
vendor: 11,302 bytes, line 257
257if(typeof i==`string`){let e=n(i);e!==i&&(eG(t)||(t[r]=e),i=e)}e[i]=!0}return e}function MG(e){for(let t=0;t<e.length;t++)TG(e,t)||(e[t]=null);return e}function NG(e){let t=aG(null);for(let r of QW(e)){var n=XW(r,2);let i=n[0],a=n[1];TG(e,i)&&(t[i]=mG(a)?MG(a):a&&typeof a==`object`&&a.constructor===Object?NG(a):a)}return t}function PG(e){switch(typeof e){case`string`:return e;case`number`:return xG(e);case`boolean`:return SG(e);case`bigint`:return CG?CG(e):`0`;case`symbol`:return wG?wG(e):`Symbol()`;case`undefined`:return EG(e);case`function`:case`object`:{if(e===null)return EG(e);let t=e,n=FG(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:EG(e)}return EG(e)}default:return EG(e)}}function FG(e,t){for(;e!==null;){let n=nG(e,t);if(n){if(n.get)return kG(n.get);if(typeof n.value==`function`)return kG(n.value)}e=tG(e)}function n(){return null}return n}function IG(e){try{return DG(e,``),!0}catch{return!1}}var LG=rG(`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`.split(`.`)),RG=rG(`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`.split(`.`)),zG=rG([`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`]),BG=rG([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),VG=rG(`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`.split(`.`)),HG=rG([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),UG=rG([`#text`]),WG=rG(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.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`.split(`.`)),GG=rG(`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.dominant-baseline.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.pointer-events.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-orientation.text-rendering.textlength.type.u1.u2.unicode.values.vector-effect.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`.split(`.`)),KG=rG(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.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`.split(`.`)),qG=rG([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),JG=iG(/{{[\w\W]*|^[\w\W]*}}/g),YG=iG(/<%[\w\W]*|^[\w\W]*%>/g),XG=iG(/\${[\w\W]*/g),ZG=iG(/^data-[\-\w.\u00B7-\uFFFF]+$/),QG=iG(/^aria-[\-\w]+$/),$G=iG(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),eK=iG(/^(?:\w+script|data):/i),tK=iG(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),nK=iG(/^html$/i),rK=iG(/^[a-z][.\w]*(-[.\w]+)+$/i),iK=iG(/<[/\w!]/g),aK=iG(/<[/\w]/g),oK=iG(/<\/no(script|embed|frames)/i),sK=iG(/\/>/i),cK={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},lK=[`style`,`script`,`xmp`,`iframe`,`noembed`,`noframes`,`plaintext`,`noscript`],uK=rG(jG({},lK)),dK=function(){let e={};return lG(lK,t=>{e[t]=iG(RegExp(`</`+t+`(?=[\\t\\n\\f\\r />])`,`i`))}),rG(e)}(),fK=function(){return typeof window>`u`?null:window},pK=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},mK=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},hK=function(e,t,n,r){return TG(e,t)&&mG(e[t])?jG(r.base?NG(r.base):{},e[t],r.transform):n},gK=function(e,t,n){let r=TG(e,t)?e[t]:void 0;return r&&typeof r==`object`?NG(r):n()};function _K(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:fK(),t=e=>_K(e);if(t.version=`3.4.15`,t.removed=[],!e||!e.document||e.document.nodeType!==cK.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,c=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let l=e.DOMParser,u=e.trustedTypes,d=s.prototype,f=FG(d,`cloneNode`),p=FG(d,`remove`),m=FG(d,`removeAttributeNode`),h=FG(d,`nextSibling`),g=FG(d,`childNodes`),_=FG(d,`parentNode`),v=FG(d,`shadowRoot`),y=FG(d,`attributes`),b=o&&o.prototype?FG(o.prototype,`nodeType`):null,x=o&&o.prototype?FG(o.prototype,`nodeName`):null,S=o&&o.prototype?FG(o.prototype,`ownerDocument`):null,C=function(e){return b?b(e):e.nodeType},w=function(e){return x?x(e):e.nodeName};if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let T,E=``,D,O=!1,k=0,A=function(){if(k>0)throw OG(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},j=function(e){A(),k++;try{return T.createHTML(e)}finally{k--}},M=function(e){A(),k++;try{return T.createScriptURL(e)}finally{k--}},N=function(){return O||=(D=pK(u,i),!0),D},P=n,F=P.implementation,I=P.createNodeIterator,L=P.createDocumentFragment,ee=P.getElementsByTagName,R=r.importNode,z=mK();t.isSupported=typeof QW==`function`&&typeof _==`function`&&F&&F.createHTMLDocument!==void 0;let te=JG,ne=YG,re=XG,ie=ZG,ae=QG,oe=eK,se=tK,ce=rK,le=$G,ue=null,de=jG({},[...LG,...RG,...zG,...VG,...UG]),fe=null,pe=jG({},[...WG,...GG,...KG,...qG]),me=Object.seal(aG(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}})),he=null,ge=null,_e=Object.seal(aG(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),ve=!0,ye=!0,be=!1,xe=!0,Se=!1,Ce=!0,we=!1,Te=!1,Ee=null,De=null,Oe=!1,ke=!1,Ae=!1,je=!1,Me=!0,Ne=!1,Pe=`user-content-`,Fe=!0,Ie=!1,Le={},Re=null,ze=jG({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Be=null,Ve=jG({},[`audio`,`video`,`img`,`source`,`image`,`track`]),He=null,Ue=jG({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),We=`http://www.w3.org/1998/Math/MathML`,Ge=`http://www.w3.org/2000/svg`,Ke=`http://www.w3.org/1999/xhtml`,qe=Ke,Je=!1,Ye=null,Xe=jG({},[We,Ge,Ke],gG),Ze=rG([`mi`,`mo`,`mn`,`ms`,`mtext`]),Qe=jG({},Ze),$e=rG([`annotation-xml`]),et=jG({}
vendor: 10,087 bytes, line 257
257,$e),tt=jG({},[`title`,`style`,`font`,`a`,`script`]),nt=null,rt=[`application/xhtml+xml`,`text/html`],it=null,at=null,ot=n.createElement(`form`),st=function(e){return e instanceof RegExp||e instanceof Function},ct=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(at&&at===e)return;(!e||typeof e!=`object`)&&(e={}),e=NG(e),nt=rt.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,it=nt===`application/xhtml+xml`?gG:hG,ue=hK(e,`ALLOWED_TAGS`,de,{transform:it}),fe=hK(e,`ALLOWED_ATTR`,pe,{transform:it}),Ye=hK(e,`ALLOWED_NAMESPACES`,Xe,{transform:gG}),He=hK(e,`ADD_URI_SAFE_ATTR`,Ue,{transform:it,base:Ue}),Be=hK(e,`ADD_DATA_URI_TAGS`,Ve,{transform:it,base:Ve}),Re=hK(e,`FORBID_CONTENTS`,ze,{transform:it}),he=hK(e,`FORBID_TAGS`,NG({}),{transform:it}),ge=hK(e,`FORBID_ATTR`,NG({}),{transform:it}),Le=TG(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?NG(e.USE_PROFILES):e.USE_PROFILES:!1,ve=e.ALLOW_ARIA_ATTR!==!1,ye=e.ALLOW_DATA_ATTR!==!1,be=e.ALLOW_UNKNOWN_PROTOCOLS||!1,xe=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,Se=e.SAFE_FOR_TEMPLATES||!1,Ce=e.SAFE_FOR_XML!==!1,we=e.WHOLE_DOCUMENT||!1,ke=e.RETURN_DOM||!1,Ae=e.RETURN_DOM_FRAGMENT||!1,je=e.RETURN_TRUSTED_TYPE||!1,Oe=e.FORCE_BODY||!1,Me=e.SANITIZE_DOM!==!1,Ne=e.SANITIZE_NAMED_PROPS||!1,Fe=e.KEEP_CONTENT!==!1,Ie=e.IN_PLACE||!1,le=IG(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:$G,qe=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ke,Qe=gK(e,`MATHML_TEXT_INTEGRATION_POINTS`,()=>jG({},Ze)),et=gK(e,`HTML_INTEGRATION_POINTS`,()=>jG({},$e));let t=gK(e,`CUSTOM_ELEMENT_HANDLING`,()=>aG(null));if(me=aG(null),TG(t,`tagNameCheck`)&&st(t.tagNameCheck)&&(me.tagNameCheck=t.tagNameCheck),TG(t,`attributeNameCheck`)&&st(t.attributeNameCheck)&&(me.attributeNameCheck=t.attributeNameCheck),TG(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(me.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),iG(me),Se&&(ye=!1),Ae&&(ke=!0),Le&&(ue=jG({},UG),fe=aG(null),Le.html===!0&&(jG(ue,LG),jG(fe,WG)),Le.svg===!0&&(jG(ue,RG),jG(fe,GG),jG(fe,qG)),Le.svgFilters===!0&&(jG(ue,zG),jG(fe,GG),jG(fe,qG)),Le.mathMl===!0&&(jG(ue,VG),jG(fe,KG),jG(fe,qG))),_e.tagCheck=null,_e.attributeCheck=null,TG(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?_e.tagCheck=e.ADD_TAGS:mG(e.ADD_TAGS)&&(ue===de&&(ue=NG(ue)),jG(ue,e.ADD_TAGS,it))),TG(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?_e.attributeCheck=e.ADD_ATTR:mG(e.ADD_ATTR)&&(fe===pe&&(fe=NG(fe)),jG(fe,e.ADD_ATTR,it))),TG(e,`ADD_FORBID_CONTENTS`)&&mG(e.ADD_FORBID_CONTENTS)&&(Re===ze&&(Re=NG(Re)),jG(Re,e.ADD_FORBID_CONTENTS,it)),Fe&&(ue[`#text`]=!0),we&&jG(ue,[`html`,`head`,`body`]),ue.table&&(jG(ue,[`tbody`]),delete he.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw OG(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw OG(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=T;T=e.TRUSTED_TYPES_POLICY;try{E=j(``)}catch(e){throw T=t,e}}else e.TRUSTED_TYPES_POLICY===null?(T=void 0,E=``):(T===void 0&&(T=N()),T&&typeof E==`string`&&(E=j(``)));rG&&rG(e),at=e},lt=jG({},[...RG,...zG,...BG]),ut=jG({},[...VG,...HG]),dt=function(e,t,n){return t.namespaceURI===Ke?e===`svg`:t.namespaceURI===We?e===`svg`&&(n===`annotation-xml`||Qe[n]):!!lt[e]},ft=function(e,t,n){return t.namespaceURI===Ke?e===`math`:t.namespaceURI===Ge?e===`math`&&et[n]:!!ut[e]},pt=function(e,t,n){return t.namespaceURI===Ge&&!et[n]||t.namespaceURI===We&&!Qe[n]?!1:!ut[e]&&(tt[e]||!lt[e])},mt=function(e){let t=_(e);(!t||!t.tagName)&&(t={namespaceURI:qe,tagName:`template`});let n=hG(e.tagName),r=hG(t.tagName);return Ye[e.namespaceURI]?e.namespaceURI===Ge?dt(n,t,r):e.namespaceURI===We?ft(n,t,r):e.namespaceURI===Ke?pt(n,t,r):!!(nt===`application/xhtml+xml`&&Ye[e.namespaceURI]):!1},ht=function(e){fG(t.removed,{element:e});try{_(e).removeChild(e)}catch{if(p(e),!_(e))throw OG(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},gt=function(e,t,n){try{m(e,t)}catch{try{e.removeAttribute(n)}catch{}}},_t=function(e){bt(e);let t=g(e);if(t){let e=[];lG(t,t=>{fG(e,t)}),lG(e,e=>{try{p(e)}catch{}})}let n=y(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;typeof i==`string`&>(e,r,i)}},vt=function(e,n,r){if(!r)try{r=n.getAttributeNode(e)}catch{r=null}fG(t.removed,{attribute:r||null,from:n});try{r?m(n,r):n.removeAttribute(e)}catch{try{n.removeAttribute(e)}catch{}}if(e===`is`){if(ke||Ae)try{ht(n)}catch{}else try{n.setAttribute(e,``)}catch{}}},yt=function(e){let t=y(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;typeof i!=`string`||fe[it(i)]||gt(e,r,i)}},bt=function(e){let t=[e];for(;t.length>0;){let e=t.pop();C(e)===cK.element&&yt(e);let n=g(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},xt=function(e,t){return Ce?e===`patchsrc`||e===`for`&&t!==`label`&&t!==`output`:!1},St=function(e){if(!Ce)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=C(e);if(n===cK.processingInstruction||n===cK.comment&&DG(aK,e.data)){try{p(e)}catch{}continue}if(n===cK.element){let t=e,n=it(w(e));try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&xt(`for`,n)&&t.removeAttribute(`for`)}catch{}}let r=g(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},Ct=function(e){let t=null,r=null;if(Oe)e=`<remove></remove>`+e;else{let t=_G(e,/^[\r\n\t ]+/);r=t&&t[0]}nt===`application/xhtml+xml`&&qe===Ke&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=T?j(e):e;if(qe===Ke)try{t=new l().parseFromString(i,nt)}catch{}if(!t||!t.documentElement){t=F.createDocument(qe,`template`,null);try{t.documentElement.innerHTML=Je?E:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),qe===Ke?ee.call(t,we?`html`:`body`)[0]:we?t.documentElement:a},wt=function(e){let t=S?S(e):e.ownerDocument;return I.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},Tt=function(e){return e=vG(e,te,` `),e=vG(e,ne,` `),e=vG(e,re,` `),e},Et=function(e){e.normalize();let t=S?S(e):e.ownerDocument,n=I.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null),r=n.nextNode();for(;r;)r.data=Tt(r.data),r=n.nextNode();let i=e.querySelectorAll?.call(e,`template`);i&&lG(i,e=>{Ot(e.content)&&Et(e.content)})},Dt=function(e){let t=x?x(e):null;return typeof t!=`string`||it(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==y(e)||typeof e.removeAttribute!=`function`||typeof e.removeAttributeNode!=`function`||typeof e.getAttributeNode!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==b(e)||e.childNodes!==g(e)},Ot=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return b(e)===cK.documentFragment}catch{return!1}},kt=function(e){if(!b||typeof e!=`object`||!e)return!1;try{return typeof b(e)==`number`}catch{return!1}};function B(e,n,r){e.length!==0&&lG(e,e=>{e.call(t,n,r,at)})}let At=function(e,t){return!!(Ce&&e.hasChildNodes()&&!kt(e.firstElementChild)&&DG(iK,e.textContent)&&DG(iK,e.innerHTML)||Ce&&e.namespaceURI===Ke&&uK[t]&&(kt(e.firstElementChild)||typeof e.textContent==`string`&&DG(dK[t],e.textContent))||e.nodeType===cK.processingInstruction||Ce&&e.nodeType===cK.comment&&DG(aK,e.data))},jt=function(e,t){return e instanceof RegExp?DG(e,t):e instanceof Function&&!!e(t,...[...arguments].slice(2))},V=function(e,t,n){if(!he[t]&&Lt(t)&&jt(me.tagNameCheck,t))return!1;if(Fe&&!Re[t]){let t=_(e),r=g(e);if(r&&t){let i=r.length;for(let a=i-1;a>=0;--a){let i=e===n?f(r[a],!0):r[a];t.insertBefore(i,h(e))}}}return ht(e),!0},Mt=function(e,t,n,r){return e.length===0?t:t===n||t===r?NG(t):t},Nt=function(e,t){return e===t||_(e)!==null?!1:(Ie&&bt(e),!0)},Pt=function(e,n){if(B(z.beforeSanitizeElements,e,null),Nt(e,n))return!0;if(Dt(e))return ht(e),!0;let r=it(w(e));if(ue=Mt(z.uponSanitizeElement,ue,de,Ee),B(z.uponSanitizeElement,e,{tagName:r,allowedTags:ue}),Nt(e,n))return!0;if(At(e,r))return ht(e),!0;if(he[r]||!(_e.tagCheck instanceof Function&&_e.tagCheck(r))&&!ue[r]){let t=V(e,r,n);return t===!1&&B(z.afterSanitizeElements,e,null),t}if(C(e)===cK.element&&!mt(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&DG(oK,e.innerHTML))return ht(e),!0;if(Se&&e.nodeType===cK.text){let n=Tt(e.textContent);e.textContent!==n&&(fG(t.removed,{element:e.cloneNode()}),e.textContent=n)}return B(z.afterSanitizeElements,e,null),!1},Ft=function(e,t,r){if(ge[t]||xt(t,e)||Me&&(t===`id`||t===`name`)&&(r in n||r in ot))return!1;let i=fe[t]||_e.attributeCheck instanceof Function&&_e.attributeCheck(t,e);return ye&&DG(ie,t)||ve&&DG(ae,t)?!0:i?He[t]||DG(le,vG(r,se,``))||(t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&yG(r,`data:`)===0&&Be[e]||be&&!DG(oe,vG(r,se,``))?!0:!r:Lt(e)&&jt(me.tagNameCheck,e)&&jt(me.attributeNameCheck,t,e)||t===`is`&&me.allowCustomizedBuiltInElements&&jt(me.tagNameCheck,r)},It=jG({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),Lt=function(e){return!It[hG(e)]&&DG(ce,e)},Rt=function(e,t,n,r){if(T&&typeof u==`object`&&typeof u.getAttributeType==`function`&&!n)switch(u.getAttributeType(e,t)){case`TrustedHTML`:return j(r);case`TrustedScriptURL`:return M(r)}return r},zt=function(e,t,n,r){try{return n?e.setAttributeNS(n,t,r):e.setAttribute(t,r),!Dt(e)||(ht(e),!1)}catch{return vt(t,e),!1}},Bt=function(e){B(z.beforeSanitizeAttributes,e,null);let n=e.attributes;if(!n||Dt(e))return;fe=Mt(z.uponSanitizeAttribute,fe,pe,De);let r={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:fe,forceKeepAttr:void 0},i=n.length,a=it(e.nodeName);for(;i--;){let o=n[i],s=o.name,c=o.namespaceURI,l=o.value,u=it(s),d=l,f=s===`value`?d:bG(d
257),p=!1;if(r.attrName=u,r.attrValue=f,r.keepAttr=!0,r.forceKeepAttr=void 0,B(z.uponSanitizeAttribute,e,r),f=r.attrValue,Ne&&(u===`id`||u===`name`)&&yG(f,Pe)!==0&&(vt(s,e,o),f=Pe+f,p=!0),Ce&&DG(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,f)){vt(s,e,o);continue}if(u===`attributename`&&_G(f,`href`)){vt(s,e,o);continue}if(!r.forceKeepAttr){if(!r.keepAttr){vt(s,e,o);continue}if(!xe&&DG(sK,f)){vt(s,e,o);continue}if(Se&&(f=Tt(f)),!Ft(a,u,f)){vt(s,e,o);continue}f=Rt(a,u,c,f),f!==d&&zt(e,s,c,f)&&p&&dG(t.removed)}}B(z.afterSanitizeAttributes,e,null)},Vt=function(e){let t=null,n=wt(e);for(B(z.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(B(z.uponSanitizeShadowNode,t,null),Pt(t,e),Bt(t),Ot(t.content)&&Vt(t.content),C(t)===cK.element){let e=v(t);Ot(e)&&(Ht(e),Vt(e))}B(z.afterSanitizeShadowDOM,e,null)},Ht=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Vt(e.shadow);continue}let n=e.node,r=C(n)===cK.element,i=g(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=x?x(n):null;if(typeof e==`string`&&it(e)===`template`){let e=n.content;Ot(e)&&t.push({node:e,shadow:null})}}if(r){let e=v(n);Ot(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Je=!e,Je&&(e=`<!-->`),typeof e!=`string`&&!kt(e)&&(e=PG(e),typeof e!=`string`))throw OG(`dirty is not a string, aborting`);if(!t.isSupported)return e;Te?(ue=Ee,fe=De):ct(n),(z.uponSanitizeElement.length>0||z.uponSanitizeAttribute.length>0)&&(ue=NG(ue)),z.uponSanitizeAttribute.length>0&&(fe=NG(fe)),t.removed=[];let c=Ie&&typeof e!=`string`&&kt(e);if(c){St(e);let t=w(e);if(typeof t==`string`){let n=it(t);if(!ue[n]||he[n])throw _t(e),OG(`root node is forbidden and cannot be sanitized in-place`)}if(Dt(e))throw _t(e),OG(`root node is clobbered and cannot be sanitized in-place`);try{Ht(e)}catch(t){throw _t(e),t}}else if(kt(e))i=Ct(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===cK.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Ht(i);else{if(!ke&&!Se&&!we&&e.indexOf(`<`)===-1)return T&&je?j(e):e;if(i=Ct(e),!i)return ke?null:je?E:``}i&&Oe&&ht(i.firstChild);let l=c?e:i;try{let e=wt(l);for(;o=e.nextNode();)Pt(o,l),Bt(o),Ot(o.content)&&Vt(o.content)}catch(n){throw c&&(_t(e),lG(t.removed,e=>{e.element&&bt(e.element)})),n}if(c)return lG(t.removed,e=>{e.element&&bt(e.element)}),Se&&Et(e),e;if(ke){if(Se&&Et(i),Ae)for(s=L.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(fe.shadowroot||fe.shadowrootmode)&&(s=R.call(r,s,!0)),s}let u=we?i.outerHTML:i.innerHTML;return we&&ue[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&DG(nK,i.ownerDocument.doctype.name)&&(u=`<!DOCTYPE `+i.ownerDocument.doctype.name+`> 258`+u),Se&&(u=Tt(u)),T&&je?j(u):u},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ct(e),Te=!0,Ee=ue,De=fe},t.clearConfig=function(){at=null,Te=!1,Ee=null,De=null,T=D,E=``},t.isValidAttribute=function(e,t,n){at||ct({});let r=it(e),i=it(t);return Ft(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&TG(z,e)&&fG(z[e],t)},t.removeHook=function(e,t){if(TG(z,e)){if(t!==void 0){let n=uG(z[e],t);return n===-1?void 0:pG(z[e],n,1)[0]}return dG(z[e])}},t.removeHooks=function(e){TG(z,e)&&(z[e]=[])},t.removeAllHooks=function(){z=mK()},t}var vK=_K(),yK=n(((e,t)=>{var n=re(),r=/[\\^$.*+?()[\]{}|]/g,i=RegExp(r.source);function a(e){return e=n(e),e&&i.test(e)?e.replace(r,`\\$&`):e}t.exports=a})),bK=n(((e,t)=>{var n=Object.prototype.hasOwnProperty;function r(e,t){return e!=null&&n.call(e,t)}t.exports=r})),xK=n(((e,t)=>{var n=bK(),r=Je();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i}));hl();var SK=r(yK()),CK=r(xK()),wK=r(uh()),TK={287:function(e,t,n){let r=n(987),i=n(362),a=typeof Symbol==`function`&&typeof Symbol.for==`function`?Symbol.for(`nodejs.util.inspect.custom`):null;t.Buffer=c,t.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},t.INSPECT_MAX_BYTES=50;let o=2147483647;function s(e){if(e>
258o)throw RangeError(`The value "`+e+`" is invalid for option "size"`);let t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if(typeof e==`number`){if(typeof t==`string`)throw TypeError(`The "string" argument must be of type string. Received type number`);return d(e)}return l(e,t,n)}function l(e,t,n){if(typeof e==`string`)return function(e,t){if(typeof t==`string`&&t!==``||(t=`utf8`),!c.isEncoding(t))throw TypeError(`Unknown encoding: `+t);let n=0|h(e,t),r=s(n),i=r.write(e,t);return i!==n&&(r=r.slice(0,i)),r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(le(e,Uint8Array)){let t=new Uint8Array(e);return p(t.buffer,t.byteOffset,t.byteLength)}return f(e)}(e);if(e==null)throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e);if(le(e,ArrayBuffer)||e&&le(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<`u`&&(le(e,SharedArrayBuffer)||e&&le(e.buffer,SharedArrayBuffer)))return p(e,t,n);if(typeof e==`number`)throw TypeError(`The "value" argument must not be of type number. Received type number`);let r=e.valueOf&&e.valueOf();if(r!=null&&r!==e)return c.from(r,t,n);let i=function(e){if(c.isBuffer(e)){let t=0|m(e.length),n=s(t);return n.length===0||e.copy(n,0,0,t),n}if(e.length!==void 0)return typeof e.length!=`number`||ue(e.length)?s(0):f(e);if(e.type===`Buffer`&&Array.isArray(e.data))return f(e.data)}(e);if(i)return i;if(typeof Symbol<`u`&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]==`function`)return c.from(e[Symbol.toPrimitive](`string`),t,n);throw TypeError(`The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type `+typeof e)}function u(e){if(typeof e!=`number`)throw TypeError(`"size" argument must be of type number`);if(e<0)throw RangeError(`The value "`+e+`" is invalid for option "size"`)}function d(e){return u(e),s(e<0?0:0|m(e))}function f(e){let t=e.length<0?0:0|m(e.length),n=s(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function p(e,t,n){if(t<0||e.byteLength<t)throw RangeError(`"offset" is outside of buffer bounds`);if(e.byteLength<t+(n||0))throw RangeError(`"length" is outside of buffer bounds`);let r;return r=t===void 0&&n===void 0?new Uint8Array(e):n===void 0?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function m(e){if(e>=o)throw RangeError(`Attempt to allocate Buffer larger than maximum size: 0x`+o.toString(16)+` bytes`);return 0|e}function h(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||le(e,ArrayBuffer))return e.byteLength;if(typeof e!=`string`)throw TypeError(`The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type `+typeof e);let n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&n===0)return 0;let i=!1;for(;;)switch(t){case`ascii`:case`latin1`:case`binary`:return n;case`utf8`:case`utf-8`:return oe(e).length;case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return 2*n;case`hex`:return n>>>1;case`base64`:return se(e).length;default:if(i)return r?-1:oe(e).length;t=(``+t).toLowerCase(),i=!0}}function g(e,t,n){let r=!1;if((t===void 0||t<0)&&(t=0),t>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(t>>>=0))return``;for(e||=`utf8`;;)switch(e){case`hex`:return A(this,t,n);case`utf8`:case`utf-8`:return E(this,t,n);case`ascii`:return O(this,t,n);case`latin1`:case`binary`:return k(this,t,n);case`base64`:return T(this,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return j(this,t,n);default:if(r)throw TypeError(`Unknown encoding: `+e);e=(e+``).toLowerCase(),r=!0}}function _(e,t,n){let r=e[t];e[t]=e[n],e[n]=r}function v(e,t,n,r,i){if(e.length===0)return-1;if(typeof n==`string`?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),ue(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if(typeof t==`string`&&(t=c.from(t,r)),c.isBuffer(t))return t.length===0?-1:y(e,t,n,r,i);if(typeof t==`number`)return t&=255,typeof Uint8Array.prototype.indexOf==`function`?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,r,i);throw TypeError(`val must be string, number or Buffer`)}function y(e,t,n,r,i){let a,o=1,s=e.length,c=t.length;if(r!==void 0&&((r=String(r).toLowerCase())===`ucs2`||r===`ucs-2`||r===`utf16le`||r===`utf-16le`)){if(e.length<2||t.length<2)return-1;o=2,s/=2,c/=2,n/=2}function l(e,t){return o===1?e[t]:e.readUInt16BE(t*o)}if(i){let r=-1;for(a=n;a<s;a++)if(l(e,a)===l(t,r===-1?0:a-r)){if(r===-1&&(r=a),a-r+1===c)return r*o}else r!==-1&&(a-=a-r),r=-1}else for(n+c>s&&(n=s-c),a=n;a>=0;a--){let n=!0;for(let r=0;r<c;r++)if(l(e,a+r)!==l(t,r)){n=!1;break}if(n)return a}return-1}function b(e,t,n,r){n=Number(n)||0;let i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;let a=t.length,o;for(r>a/2&&(r=a/2),o=0;o<r;++o){let r=parseInt(t.substr(2*o,2),16);if(ue(r))return o;e[n+o]=r}return o}function x(e,t,n,r){return ce(oe(t,e.length-n),e,n,r)}function S(e,t,n,r){return ce(function(e){let t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}
258function C(e,t,n,r){return ce(se(t),e,n,r)}function w(e,t,n,r){return ce(function(e,t){let n,r,i,a=[];for(let o=0;o<e.length&&!((t-=2)<0);++o)n=e.charCodeAt(o),r=n>>8,i=n%256,a.push(i),a.push(r);return a}(t,e.length-n),e,n,r)}function T(e,t,n){return t===0&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function E(e,t,n){n=Math.min(e.length,n);let r=[],i=t;for(;i<n;){let t=e[i],a=null,o=t>239?4:t>223?3:t>191?2:1;if(i+o<=n){let n,r,s,c;switch(o){case 1:t<128&&(a=t);break;case 2:n=e[i+1],(192&n)==128&&(c=(31&t)<<6|63&n,c>127&&(a=c));break;case 3:n=e[i+1],r=e[i+2],(192&n)==128&&(192&r)==128&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(a=c));break;case 4:n=e[i+1],r=e[i+2],s=e[i+3],(192&n)==128&&(192&r)==128&&(192&s)==128&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&s,c>65535&&c<1114112&&(a=c))}}a===null?(a=65533,o=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=o}return function(e){let t=e.length;if(t<=D)return String.fromCharCode.apply(String,e);let n=``,r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=D));return n}(r)}t.kMaxLength=o,c.TYPED_ARRAY_SUPPORT=function(){try{let e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),e.foo()===42}catch{return!1}}(),c.TYPED_ARRAY_SUPPORT||typeof console>`u`||typeof console.error!=`function`||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return l(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return u(e),e<=0||t===void 0?s(e):typeof n==`string`?s(e).fill(t,n):s(e).fill(t)}(e,t,n)},c.allocUnsafe=function(e){return d(e)},c.allocUnsafeSlow=function(e){return d(e)},c.isBuffer=function(e){return e!=null&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(le(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),le(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw TypeError(`The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array`);if(e===t)return 0;let n=e.length,r=t.length;for(let i=0,a=Math.min(n,r);i<a;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:+(r<n)},c.isEncoding=function(e){switch(String(e).toLowerCase()){case`hex`:case`utf8`:case`utf-8`:case`ascii`:case`latin1`:case`binary`:case`base64`:case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw TypeError(`"list" argument must be an Array of Buffers`);if(e.length===0)return c.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let r=c.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){let t=e[n];if(le(t,Uint8Array))i+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,i)):Uint8Array.prototype.set.call(r,t,i);else{if(!c.isBuffer(t))throw TypeError(`"list" argument must be an Array of Buffers`);t.copy(r,i)}i+=t.length}return r},c.byteLength=h,c.prototype._isBuffer=!0,c.prototype.swap16=function(){let e=this.length;if(e%2!=0)throw RangeError(`Buffer size must be a multiple of 16-bits`);for(let t=0;t<e;t+=2)_(this,t,t+1);return this},c.prototype.swap32=function(){let e=this.length;if(e%4!=0)throw RangeError(`Buffer size must be a multiple of 32-bits`);for(let t=0;t<e;t+=4)_(this,t,t+3),_(this,t+1,t+2);return this},c.prototype.swap64=function(){let e=this.length;if(e%8!=0)throw RangeError(`Buffer size must be a multiple of 64-bits`);for(let t=0;t<e;t+=8)_(this,t,t+7),_(this,t+1,t+6),_(this,t+2,t+5),_(this,t+3,t+4);return this},c.prototype.toString=function(){let e=this.length;return e===0?``:arguments.length===0?E(this,0,e):g.apply(this,arguments)}
258,c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError(`Argument must be a Buffer`);return this===e||c.compare(this,e)===0},c.prototype.inspect=function(){let e=``,n=t.INSPECT_MAX_BYTES;return e=this.toString(`hex`,0,n).replace(/(.{2})/g,`$1 `).trim(),this.length>n&&(e+=` ... `),`<Buffer `+e+`>`},a&&(c.prototype[a]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,i){if(le(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw TypeError(`The "target" argument must be one of type Buffer or Uint8Array. Received type `+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),r===void 0&&(r=0),i===void 0&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw RangeError(`out of range index`);if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;let a=(i>>>=0)-(r>>>=0),o=(n>>>=0)-(t>>>=0),s=Math.min(a,o),l=this.slice(r,i),u=e.slice(t,n);for(let e=0;e<s;++e)if(l[e]!==u[e]){a=l[e],o=u[e];break}return a<o?-1:+(o<a)},c.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1},c.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(t===void 0)r=`utf8`,n=this.length,t=0;else if(n===void 0&&typeof t==`string`)r=t,n=this.length,t=0;else{if(!isFinite(t))throw Error(`Buffer.write(string, encoding, offset[, length]) is no longer supported`);t>>>=0,isFinite(n)?(n>>>=0,r===void 0&&(r=`utf8`)):(r=n,n=void 0)}let i=this.length-t;if((n===void 0||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw RangeError(`Attempt to write outside buffer bounds`);r||=`utf8`;let a=!1;for(;;)switch(r){case`hex`:return b(this,e,t,n);case`utf8`:case`utf-8`:return x(this,e,t,n);case`ascii`:case`latin1`:case`binary`:return S(this,e,t,n);case`base64`:return C(this,e,t,n);case`ucs2`:case`ucs-2`:case`utf16le`:case`utf-16le`:return w(this,e,t,n);default:if(a)throw TypeError(`Unknown encoding: `+r);r=(``+r).toLowerCase(),a=!0}},c.prototype.toJSON=function(){return{type:`Buffer`,data:Array.prototype.slice.call(this._arr||this,0)}};let D=4096;function O(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function k(e,t,n){let r=``;n=Math.min(e.length,n);for(let i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function A(e,t,n){let r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let i=``;for(let r=t;r<n;++r)i+=de[e[r]];return i}function j(e,t,n){let r=e.slice(t,n),i=``;for(let e=0;e<r.length-1;e+=2)i+=String.fromCharCode(r[e]+256*r[e+1]);return i}function M(e,t,n){if(e%1!=0||e<0)throw RangeError(`offset is not uint`);if(e+t>n)throw RangeError(`Trying to access beyond buffer length`)}function N(e,t,n,r,i,a){if(!c.isBuffer(e))throw TypeError(`"buffer" argument must be a Buffer instance`);if(t>i||t<a)throw RangeError(`"value" argument is out of bounds`);if(n+r>e.length)throw RangeError(`Index out of range`)}function P(e,t,n,r,i){ne(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,n}function F(e,t,n,r,i){ne(t,r,i,e,n,7);let a=Number(t&BigInt(4294967295));e[n+7]=a,a>>=8,e[n+6]=a,a>>=8,e[n+5]=a,a>>=8,e[n+4]=a;let o=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=o,o>>=8,e[n+2]=o,o>>=8,e[n+1]=o,o>>=8,e[n]=o,n+8}function I(e,t,n,r,i,a){if(n+r>e.length||n<0)throw RangeError(`Index out of range`)}function L(e,t,n,r,a){return t=+t,n>>>=0,a||I(e,0,n,4),i.write(e,t,n,r,23,4),n+4}function ee(e,t,n,r,a){return t=+t,n>>>=0,a||I(e,0,n,8),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){let n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=t===void 0?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);let r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e+--t],i=1;for(;t>0&&(i*=256);)r+=this[e+--t]*i;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||M(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=fe((function(e){re(e>>>=0,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||ie(e,this.length-8);let r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,i=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(i)<<BigInt(32))})),c.prototype.readBigUInt64BE=fe((function(e){re(e>>>=0,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||ie(e,this.length-8);let r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],i=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=this[e],i=1,a=0;for(;++a<t&&(i*=256);)r+=this[e+a]*i;return i*=128,r>=i&&(r-=2**(8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||M(e,t,this.length);let r=t,i=1,a=this[e+--r];for(;r>0&&(i*=256);)a+=this[e+--r]*i;return i*=128,a>=i&&(a-=2**(8*t)),a},c.prototype.readInt8=function(e,t){return e>>>=0,t||M(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||M(e,2,this.length);let n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||M(e,2,this.length);let n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||M(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=fe((function(e){re(e>>>=0,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||ie(e,this.length-8);let r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)})),c.prototype.readBigInt64BE=fe((function(e){re(e>>>=0,`offset`);let t=this[e],n=this[e+7];t!==void 0&&n!==void 0||ie(e,this.length-8);let r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)})),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||M(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||M(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,!r&&N(this,e,t,n,2**(8*n)-1,0);let i=1,a=0;for(this[t]=255&e;++a<n&&(i*=256);)this[t+a]=e/i&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){e=+e,t>>>=0,n>>>=0,!r&&N(this,e,t,n,2**(8*n)-1,0);let i=n-1,a=1;for(this[t+i]=255&e;--i>=0&&(a*=256);)this[t+i]=e/a&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=fe((function(e,t=0){return P(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))})),c.prototype.writeBigUInt64BE=fe((function(e,t=0){return F(this,e,t,BigInt(0),BigInt(`0xffffffffffffffff`))})),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);N(this,e,t,n,r-1,-r)}let i=0,a=1,o=0;for(this[t]=255&e;++i<n&&(a*=256);)e<0&&o===0&&this[t+i-1]!==0&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){let r=2**(8*n-1);N(this,e,t,n,r-1,-r)}let i=n-1,a=1,o=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&o===0&&this[t+i+1]!==0&&(o=1),this[t+i]=(e/a|0)-o&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||N(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=fe((function(e,t=0){return P(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))})),c.prototype.writeBigInt64BE=fe((function(e,t=0){return F(this,e,t,-BigInt(`0x8000000000000000`),BigInt(`0x7fffffffffffffff`))})),c.prototype.writeFloatLE=function(e,t,n){return L(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return L(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return ee(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return ee(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw TypeError(`argument should be a Buffer`);if(n||=0,r||r===0||(r=this.length),t>=e.length&&(t=e.length),t||=0,r>0&&r<n&&(r=n),r===n||e.length===0||this.length===0)return 0;if(t<0)throw RangeError(`targetStart out of bounds`);if(n<0||n>=this.length)throw RangeError(`Index out of range`);if(r<0)throw RangeError(`sourceEnd out of bounds`);r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);let i=r-n;return this===e&&typeof Uint8Array.prototype.copyWithin==`function`?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},c.prototype.fill=function(e,t,n,r){if(typeof e==`string`){if(typeof t==`string`?(r=t,t=0,n=this.length):typeof n==`string`&&(r=n,n=this.length),r!==void 0&&typeof r!=`string`)throw TypeError(`encoding must be a string`);if(typeof r==`string`&&!c.isEncoding(r))throw TypeError(`Unknown encoding: `+r);if(e.length===1){let t=e.charCodeAt(0);(r===`utf8`&&t<128||r===`latin1`)&&(e=t)}}else typeof e==`number`?e&=255:typeof e==`boolean`&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw RangeError(`Out of range index`);if(n<=t)return this;let i;if(t>>>=0,n=n===void 0?this.length:n>>>0,e||=0,typeof e==`number`)for(i=t;i<n;++i)this[i]=e;else{let a=c.isBuffer(e)?e:c.from(e,r),o=a.length;
258if(o===0)throw TypeError(`The value "`+e+`" is invalid for argument "value"`);for(i=0;i<n-t;++i)this[i+t]=a[i%o]}return this};let R={};function z(e,t,n){R[e]=class extends n{constructor(){super(),Object.defineProperty(this,"message",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function te(e){let t=``,n=e.length,r=+(e[0]===`-`);for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function ne(e,t,n,r,i,a){if(e>n||e<t){let r=typeof t==`bigint`?`n`:``,i;throw i=a>3?t===0||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(a+1)}${r}`:`>= -(2${r} ** ${8*(a+1)-1}${r}) and < 2 ** ${8*(a+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new R.ERR_OUT_OF_RANGE(`value`,i,e)}(function(e,t,n){re(t,`offset`),e[t]!==void 0&&e[t+n]!==void 0||ie(t,e.length-(n+1))})(r,i,a)}function re(e,t){if(typeof e!=`number`)throw new R.ERR_INVALID_ARG_TYPE(t,`number`,e)}function ie(e,t,n){throw Math.floor(e)===e?t<0?new R.ERR_BUFFER_OUT_OF_BOUNDS:new R.ERR_OUT_OF_RANGE(n||`offset`,`>= ${+!!n} and <= ${t}`,e):(re(e,n),new R.ERR_OUT_OF_RANGE(n||`offset`,`an integer`,e))}z(`ERR_BUFFER_OUT_OF_BOUNDS`,(function(e){return e?`${e} is outside of buffer bounds`:`Attempt to access memory outside buffer bounds`}),RangeError),z(`ERR_INVALID_ARG_TYPE`,(function(e,t){return`The "${e}" argument must be of type number. Received type ${typeof t}`}),TypeError),z(`ERR_OUT_OF_RANGE`,(function(e,t,n){let r=`The value of "${e}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=te(String(n)):typeof n==`bigint`&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=te(i)),i+=`n`),r+=` It must be ${t}. Received ${i}`,r}),RangeError);let ae=/[^+/0-9A-Za-z-_]/g;function oe(e,t){let n;t||=1/0;let r=e.length,i=null,a=[];for(let o=0;o<r;++o){if(n=e.charCodeAt(o),n>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&a.push(239,191,189);continue}if(o+1===r){(t-=3)>-1&&a.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&a.push(239,191,189);if(i=null,n<128){if(--t<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error(`Invalid code point`);if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function se(e){return r.toByteArray(function(e){if((e=(e=e.split(`=`)[0]).trim().replace(ae,``)).length<2)return``;for(;e.length%4!=0;)e+=`=`;return e}(e))}function ce(e,t,n,r){let i=0;for(;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function le(e,t){return e instanceof t||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===t.name}function ue(e){return e!=e}let de=function(){let e=`0123456789abcdef`,t=Array(256);for(let n=0;n<16;++n){let r=16*n;for(let i=0;i<16;++i)t[r+i]=e[n]+e[i]}return t}();function fe(e){return typeof BigInt>`u`?pe:e}function pe(){throw Error(`BigInt not supported`)}},919:function(e,t,n){var r=n(287).Buffer;function i(e){return e instanceof r||e instanceof Date||e instanceof RegExp}function a(e){if(e instanceof r){var t=r.alloc?r.alloc(e.length):new r(e.length);return e.copy(t),t}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw Error(`Unexpected situation`)}function o(e){var t=[];return e.forEach((function(e,n){t[n]=typeof e==`object`&&e?Array.isArray(e)?o(e):i(e)?a(e):c({},e):e})),t}function s(e,t){return t===`__proto__`?void 0:e[t]}var c=e.exports=function(){if(arguments.length<1||typeof arguments[0]!=`object`)return!1;if(arguments.length<2)return arguments[0];var e,t,n=arguments[0];return Array.prototype.slice.call(arguments,1).forEach((function(r){typeof r!=`object`||!r||Array.isArray(r)||Object.keys(r).forEach((function(l){t=s(n,l),(e=s(r,l))===n||(n[l]=typeof e!=`object`||!e?e:Array.isArray(e)?o(e):i(e)?a(e):c(typeof t!=`object`||!t||Array.isArray(t)?{}:t,e))}))})),n}},7:function(e){var t,n=typeof Reflect==`object`?Reflect:null,r=n&&typeof n.apply==`function`?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&typeof n.ownKeys==`function`?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var i=Number.isNaN||function(e){return e!=e};function a(){a.init.call(this)}e.exports=a,e.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){typeof e.removeListener==`function`&&e.removeListener(`error`,i),n([].slice.call(arguments))}h(e,t,a,{once:!0}),t!==`error`&&function(e,t,n){typeof e.on==`function`&&h(e,`error`,t,n)}(e,i,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var o=10;function s(e){if(typeof e!=`function`)throw TypeError(`The "listener" argument must be of type Function. Received type `+typeof e)}function c(e){return e._maxListeners===void 0?a.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,a,o;if(s(n),(a=e._events)===void 0?(a=e._events=Object.create(null),e._eventsCount=0):(a.newListener!==void 0&&(e.emit(`newListener`,t,n.listener?n.listener:n),a=e._events),o=a[t]),o===void 0)
258o=a[t]=n,++e._eventsCount;else if(typeof o==`function`?o=a[t]=r?[n,o]:[o,n]:r?o.unshift(n):o.push(n),(i=c(e))>0&&o.length>i&&!o.warned){o.warned=!0;var l=Error(`Possible EventEmitter memory leak detected. `+o.length+` `+String(t)+` listeners added. Use emitter.setMaxListeners() to increase limit`);l.name=`MaxListenersExceededWarning`,l.emitter=e,l.type=t,l.count=o.length,function(e){console&&console.warn&&console.warn(e)}(l)}return e}function u(){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 d(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function f(e,t,n){var r=e._events;if(r===void 0)return[];var i=r[t];return i===void 0?[]:typeof i==`function`?n?[i.listener||i]:[i]:n?function(e){for(var t=Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):m(i,i.length)}function p(e){var t=this._events;if(t!==void 0){var n=t[e];if(typeof n==`function`)return 1;if(n!==void 0)return n.length}return 0}function m(e,t){for(var n=Array(t),r=0;r<t;++r)n[r]=e[r];return n}function h(e,t,n,r){if(typeof e.on==`function`)r.once?e.once(t,n):e.on(t,n);else{if(typeof e.addEventListener!=`function`)throw TypeError(`The "emitter" argument must be of type EventEmitter. Received type `+typeof e);e.addEventListener(t,(function i(a){r.once&&e.removeEventListener(t,i),n(a)}))}}Object.defineProperty(a,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if(typeof e!=`number`||e<0||i(e))throw RangeError(`The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received `+e+`.`);o=e}}),a.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},a.prototype.setMaxListeners=function(e){if(typeof e!=`number`||e<0||i(e))throw RangeError(`The value of "n" is out of range. It must be a non-negative number. Received `+e+`.`);return this._maxListeners=e,this},a.prototype.getMaxListeners=function(){return c(this)},a.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i=e===`error`,a=this._events;if(a!==void 0)i&&=a.error===void 0;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=Error(`Unhandled error.`+(o?` (`+o.message+`)`:``));throw s.context=o,s}var c=a[e];if(c===void 0)return!1;if(typeof c==`function`)r(c,this,t);else{var l=c.length,u=m(c,l);for(n=0;n<l;++n)r(u[n],this,t)}return!0},a.prototype.addListener=function(e,t){return l(this,e,t,!1)},a.prototype.on=a.prototype.addListener,a.prototype.prependListener=function(e,t){return l(this,e,t,!0)},a.prototype.once=function(e,t){return s(t),this.on(e,d(this,e,t)),this},a.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,d(this,e,t)),this},a.prototype.removeListener=function(e,t){var n,r,i,a,o;if(s(t),(r=this._events)===void 0||(n=r[e])===void 0)return this;if(n===t||n.listener===t)--this._eventsCount==0?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit(`removeListener`,e,n.listener||t));else if(typeof n!=`function`){for(i=-1,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){o=n[a].listener,i=a;break}if(i<0)return this;i===0?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),n.length===1&&(r[e]=n[0]),r.removeListener!==void 0&&this.emit(`removeListener`,e,o||t)}return this},a.prototype.off=a.prototype.removeListener,a.prototype.removeAllListeners=function(e){var t,n,r;if((n=this._events)===void 0)return this;if(n.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):n[e]!==void 0&&(--this._eventsCount==0?this._events=Object.create(null):delete n[e]),this;if(arguments.length===0){var i,a=Object.keys(n);for(r=0;r<a.length;++r)(i=a[r])!==`removeListener`&&this.removeAllListeners(i);return this.removeAllListeners(`removeListener`),this._events=Object.create(null),this._eventsCount=0,this}if(typeof(t=n[e])==`function`)this.removeListener(e,t);else if(t!==void 0)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},a.prototype.listeners=function(e){return f(this,e,!0)},a.prototype.rawListeners=function(e){return f(this,e,!1)},a.listenerCount=function(e,t){return typeof e.listenerCount==`function`?e.listenerCount(t):p.c
258all(e,t)},a.prototype.listenerCount=p,a.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},698:function(e){e.exports=typeof Object.create==`function`?function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},606:function(e){var t,n,r=e.exports={};function i(){throw Error(`setTimeout has not been defined`)}function a(){throw Error(`clearTimeout has not been defined`)}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch{try{return t.call(null,e,0)}catch{return t.call(this,e,0)}}}(function(){try{t=typeof setTimeout==`function`?setTimeout:i}catch{t=i}try{n=typeof clearTimeout==`function`?clearTimeout:a}catch{n=a}})();var s,c=[],l=!1,u=-1;function d(){l&&s&&(l=!1,s.length?c=s.concat(c):u=-1,c.length&&f())}function f(){if(!l){var e=o(d);l=!0;for(var t=c.length;t;){for(s=c,c=[];++u<t;)s&&s[u].run();u=-1,t=c.length}s=null,l=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch{try{return n.call(null,e)}catch{return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function m(){}r.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new p(e,t)),c.length!==1||l||o(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title=`browser`,r.browser=!0,r.env={},r.argv=[],r.version=``,r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(e){return[]},r.binding=function(e){throw Error(`process.binding is not supported`)},r.cwd=function(){return`/`},r.chdir=function(e){throw Error(`process.chdir is not supported`)},r.umask=function(){return 0}},209:function(e,t,n){var r=n(606),i=65536,a=4294967295,o=n(861).Buffer,s=n.g.crypto||n.g.msCrypto;e.exports=s&&s.getRandomValues?function(e,t){if(e>a)throw RangeError(`requested too many random bytes`);var n=o.allocUnsafe(e);if(e>0){if(e>i)for(var c=0;c<e;c+=i)s.getRandomValues(n.slice(c,c+i));else s.getRandomValues(n)}return typeof t==`function`?r.nextTick((function(){t(null,n)})):n}:function(){throw Error(`Secure random number generation is not supported by this browser. 259Use Chrome, Firefox or Internet Explorer 11`)}},48:function(e){var t={};function n(e,n,r){r||=Error;var i=function(e){function t(t,r,i){return e.call(this,function(e,t,r){return typeof n==`string`?n:n(e,t,r)}(t,r,i))||this}return function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}(t,e),t}(r);i.prototype.name=r.name,i.prototype.code=e,t[e]=i}function r(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?`one of ${t} ${e.slice(0,n-1).join(`, `)}, or `+e[n-1]:n===2?`one of ${t} ${e[0]} or ${e[1]}`:`of ${t} ${e[0]}`}return`of ${t} ${String(e)}`}n(`ERR_INVALID_OPT_VALUE`,(function(e,t){return`The value "`+t+`" is invalid for option "`+e+`"`}),TypeError),n(`ERR_INVALID_ARG_TYPE`,(function(e,t,n){var i,a;return typeof t==`string`&&function(e,t,n){return e.substr(!n||n<0?0:+n,t.length)===t}(t,`not `)?(i=`must not be`,t=t.replace(/^not /,``)):i=`must be`,a=function(e,t,n){return(n===void 0||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e,` argument`)?`The ${e} ${i} ${r(t,`type`)}`:`The "${e}" ${function(e,t,n){return typeof n!=`number`&&(n=0),!(n+t.length>e.length)&&e.indexOf(t,n)!==-1}(e,`.`)?`property`:`argument`} ${i} ${r(t,`type`)}`,a+=`. Received type ${typeof n}`}),TypeError),n(`ERR_STREAM_PUSH_AFTER_EOF`,`stream.push() after EOF`),n(`ERR_METHOD_NOT_IMPLEMENTED`,(function(e){return`The `+e+` method is not implemented`})),n(`ERR_STREAM_PREMATURE_CLOSE`,`Premature close`),n(`ERR_STREAM_DESTROYED`,(function(e){return`Cannot call `
259+e+` after a stream was destroyed`})),n(`ERR_MULTIPLE_CALLBACK`,`Callback called multiple times`),n(`ERR_STREAM_CANNOT_PIPE`,`Cannot pipe, not readable`),n(`ERR_STREAM_WRITE_AFTER_END`,`write after end`),n(`ERR_STREAM_NULL_VALUES`,`May not write null values to stream`,TypeError),n(`ERR_UNKNOWN_ENCODING`,(function(e){return`Unknown encoding: `+e}),TypeError),n(`ERR_STREAM_UNSHIFT_AFTER_END_EVENT`,`stream.unshift() after end event`),e.exports.F=t},382:function(e,t,n){var r=n(606),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=u;var a=n(412),o=n(708);n(698)(u,a);for(var s=i(o.prototype),c=0;c<s.length;c++){var l=s[c];u.prototype[l]||(u.prototype[l]=o.prototype[l])}function u(e){if(!(this instanceof u))return new u(e);a.call(this,e),o.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once(`end`,d)))}function d(){this._writableState.ended||r.nextTick(f,this)}function f(e){e.end()}Object.defineProperty(u.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(u.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(u.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(u.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._writableState!==void 0&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){this._readableState!==void 0&&this._writableState!==void 0&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})},600:function(e,t,n){e.exports=i;var r=n(610);function i(e){if(!(this instanceof i))return new i(e);r.call(this,e)}n(698)(i,r),i.prototype._transform=function(e,t,n){n(null,e)}},412:function(e,t,n){var r,i=n(606);e.exports=T,T.ReadableState=w,n(7).EventEmitter;var a=function(e,t){return e.listeners(t).length},o=n(345),s=n(287).Buffer,c=(n.g===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:n.g).Uint8Array||function(){},l,u=n(838);l=u&&u.debuglog?u.debuglog(`stream`):function(){};var d,f,p,m=n(726),h=n(896),g=n(291).getHighWaterMark,_=n(48).F,v=_.ERR_INVALID_ARG_TYPE,y=_.ERR_STREAM_PUSH_AFTER_EOF,b=_.ERR_METHOD_NOT_IMPLEMENTED,x=_.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(698)(T,o);var S=h.errorOrDestroy,C=[`error`,`close`,`destroy`,`pause`,`resume`];function w(e,t,i){r||=n(382),e||={},typeof i!=`boolean`&&(i=t instanceof r),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,`readableHighWaterMark`,i),this.buffer=new m,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=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||`utf8`,this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||=n(141).I,this.decoder=new d(e.encoding),this.encoding=e.encoding)}function T(e){if(r||=n(382),!(this instanceof T))return new T(e);var t=this instanceof r;this._readableState=new w(e,this,t),this.readable=!0,e&&(typeof e.read==`function`&&(this._read=e.read),typeof e.destroy==`function`&&(this._destroy=e.destroy)),o.call(this)}function E(e,t,n,r,i){l(`readableAddChunk`,t);var a,o=e._readableState;if(t===null)o.reading=!1,function(e,t){if(l(`onEofChunk`),!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,t.sync?A(e):(t.needReadable=!1,t.emittedReadable||(t.emittedReadable=!0,j(e)))}}(e,o);else if(i||(a=function(e,t){var n;return(function(e){return s.isBuffer(e)||e instanceof c})(t)||typeof t==`string`||t===void 0||e.objectMode||(n=new v(`chunk`,[`string`,`Buffer`,`Uint8Array`],t)),n}(o,t)),a)S(e,a);else if(o.objectMode||t&&t.length>0){if(typeof t==`string`||o.objectMode||Object.getPrototypeOf(t)===s.prototype||(t=function(e){return s.from(e)}(t)),r)o.endEmitted?S(e,new x):D(e,o,t,!0);else if(o.ended)S(e,new y);else{if(o.destroyed)return!1;o.reading=!1,o.decoder&&!n?(t=o.decoder.write(t),o.objectMode||t.length!==0?D(e,o,t,!1):M(e,o)):D(e,o,t,!1)}}else r||(o.reading=!1,M(e,o));return!o.ended&&(o.length<o.highWaterMark||o.length===0)}function D(e,t,n,r){t.flowing&&t.length===0&&!t.sync?(t.awaitDrain=0,e.emit(`data`,n)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&A(e)),M(e,t)}Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState!==void 0&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),T.prototype.destroy=h.destroy,T.prototype._undestroy=h.undestroy,T.prototype._destroy=function(e,t){t(e)},T.prototype.push=function(e,t){var n,r=this._readableState;return r.objectMode?n=!0:typeof e==`string`&&((t||=r.defaultEncoding)!==r.encoding&&(e=s.from(e,t),t=``),n=!0),E(this,e,t,!1,n)},T.prototype.unshift=function(e){return E(this,e,null,!0,!1)},T.prototype.isPaused=function(){return!1===this._readableState.flowing},T.prototype.setEncoding=function(e){d||=n(141).I;var t=new d(e);this._readableState.decoder=t,this._readableState.encoding=this._readableState.decoder.encoding;
259for(var r=this._readableState.buffer.head,i=``;r!==null;)i+=t.write(r.data),r=r.next;return this._readableState.buffer.clear(),i!==``&&this._readableState.buffer.push(i),this._readableState.length=i.length,this};var O=1073741824;function k(e,t){return e<=0||t.length===0&&t.ended?0:t.objectMode?1:e==e?(e>t.highWaterMark&&(t.highWaterMark=function(e){return e>=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0)):t.flowing&&t.length?t.buffer.head.data.length:t.length}function A(e){var t=e._readableState;l(`emitReadable`,t.needReadable,t.emittedReadable),t.needReadable=!1,t.emittedReadable||(l(`emitReadable`,t.flowing),t.emittedReadable=!0,i.nextTick(j,e))}function j(e){var t=e._readableState;l(`emitReadable_`,t.destroyed,t.length,t.ended),t.destroyed||!t.length&&!t.ended||(e.emit(`readable`),t.emittedReadable=!1),t.needReadable=!t.flowing&&!t.ended&&t.length<=t.highWaterMark,L(e)}function M(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(N,e,t))}function N(e,t){for(;!t.reading&&!t.ended&&(t.length<t.highWaterMark||t.flowing&&t.length===0);){var n=t.length;if(l(`maybeReadMore read 0`),e.read(0),n===t.length)break}t.readingMore=!1}function P(e){var t=e._readableState;t.readableListening=e.listenerCount(`readable`)>0,t.resumeScheduled&&!t.paused?t.flowing=!0:e.listenerCount(`data`)>0&&e.resume()}function F(e){l(`readable nexttick read 0`),e.read(0)}function I(e,t){l(`resume`,t.reading),t.reading||e.read(0),t.resumeScheduled=!1,e.emit(`resume`),L(e),t.flowing&&!t.reading&&e.read(0)}function L(e){var t=e._readableState;for(l(`flow`,t.flowing);t.flowing&&e.read()!==null;);}function ee(e,t){return t.length===0?null:(t.objectMode?n=t.buffer.shift():!e||e>=t.length?(n=t.decoder?t.buffer.join(``):t.buffer.length===1?t.buffer.first():t.buffer.concat(t.length),t.buffer.clear()):n=t.buffer.consume(e,t.decoder),n);var n}function R(e){var t=e._readableState;l(`endReadable`,t.endEmitted),t.endEmitted||(t.ended=!0,i.nextTick(z,t,e))}function z(e,t){if(l(`endReadableNT`,e.endEmitted,e.length),!e.endEmitted&&e.length===0&&(e.endEmitted=!0,t.readable=!1,t.emit(`end`),e.autoDestroy)){var n=t._writableState;(!n||n.autoDestroy&&n.finished)&&t.destroy()}}function te(e,t){for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return-1}T.prototype.read=function(e){l(`read`,e),e=parseInt(e,10);var t=this._readableState,n=e;if(e!==0&&(t.emittedReadable=!1),e===0&&t.needReadable&&((t.highWaterMark===0?t.length>0:t.length>=t.highWaterMark)||t.ended))return l(`read: emitReadable`,t.length,t.ended),t.length===0&&t.ended?R(this):A(this),null;if((e=k(e,t))===0&&t.ended)return t.length===0&&R(this),null;var r,i=t.needReadable;return l(`need readable`,i),(t.length===0||t.length-e<t.highWaterMark)&&l(`length less than watermark`,i=!0),t.ended||t.reading?l(`reading or ended`,i=!1):i&&(l(`do read`),t.reading=!0,t.sync=!0,t.length===0&&(t.needReadable=!0),this._read(t.highWaterMark),t.sync=!1,t.reading||(e=k(n,t))),(r=e>0?ee(e,t):null)===null?(t.needReadable=t.length<=t.highWaterMark,e=0):(t.length-=e,t.awaitDrain=0),t.length===0&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&R(this)),r!==null&&this.emit(`data`,r),r},T.prototype._read=function(e){S(this,new b(`_read()`))},T.prototype.pipe=function(e,t){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=e;break;case 1:r.pipes=[r.pipes,e];break;default:r.pipes.push(e)}r.pipesCount+=1,l(`pipe count=%d opts=%j`,r.pipesCount,t);var o=(!t||!1!==t.end)&&e!==i.stdout&&e!==i.stderr?c:g;function s(t,i){l(`onunpipe`),t===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,function(){l(`cleanup`),e.removeListener(`close`,m),e.removeListener(`finish`,h),e.removeListener(`drain`,u),e.removeListener(`error`,p),e.removeListener(`unpipe`,s),n.removeListener(`end`,c),n.removeListener(`end`,g),n.removeListener(`data`,f),d=!0,!r.awaitDrain||e._writableState&&!e._writableState.needDrain||u()}())}function c(){l(`onend`),e.end()}r.endEmitted?i.nextTick(o):n.once(`end`,o),e.on(`unpipe`,s);var u=function(e){return function(){var t=e._readableState;l(`pipeOnDrain`,t.awaitDrain),t.awaitDrain&&t.awaitDrain--,t.awaitDrain===0&&a(e,`data`)&&(t.flowing=!0,L(e))}}(n);e.on(`drain`,u);var d=!1;function f(t){l(`ondata`);var i=e.write(t);l(`dest.write`,i),!1===i&&((r.pipesCount===1&&r.pipes===e||r.pipesCount>1&&te(r.pipes,e)!==-1)&&!d&&(l(`false write response, pause`,r.awaitDrain),r.awaitDrain++),n.pause())}function p(t){l(`onerror`,t),g(),e.removeListener(`error`,p),a(e,`error`)===0&&S(e,t)}function m(){e.removeListener(`finish`,h),g()}function h(){l(`onfinish`),e.removeListener(`close`,m),g()}function g(){l(`unpipe`),n.unpipe(e)}return n.on(`data`,f),function(e,t,n){if(typeof e.prependListener==`function`)return e.prepe
259ndListener(t,n);e._events&&e._events[t]?Array.isArray(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}(e,`error`,p),e.once(`close`,m),e.once(`finish`,h),e.emit(`pipe`,n),r.flowing||(l(`pipe resume`),n.resume()),e},T.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(t.pipesCount===0)return this;if(t.pipesCount===1)return e&&e!==t.pipes||(e||=t.pipes,t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit(`unpipe`,this,n)),this;if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var a=0;a<i;a++)r[a].emit(`unpipe`,this,{hasUnpiped:!1});return this}var o=te(t.pipes,e);return o===-1||(t.pipes.splice(o,1),--t.pipesCount,t.pipesCount===1&&(t.pipes=t.pipes[0]),e.emit(`unpipe`,this,n)),this},T.prototype.on=function(e,t){var n=o.prototype.on.call(this,e,t),r=this._readableState;return e===`data`?(r.readableListening=this.listenerCount(`readable`)>0,!1!==r.flowing&&this.resume()):e===`readable`&&(r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.flowing=!1,r.emittedReadable=!1,l(`on readable`,r.length,r.reading),r.length?A(this):r.reading||i.nextTick(F,this))),n},T.prototype.addListener=T.prototype.on,T.prototype.removeListener=function(e,t){var n=o.prototype.removeListener.call(this,e,t);return e===`readable`&&i.nextTick(P,this),n},T.prototype.removeAllListeners=function(e){var t=o.prototype.removeAllListeners.apply(this,arguments);return e!==`readable`&&e!==void 0||i.nextTick(P,this),t},T.prototype.resume=function(){var e=this._readableState;return e.flowing||(l(`resume`),e.flowing=!e.readableListening,function(e,t){t.resumeScheduled||(t.resumeScheduled=!0,i.nextTick(I,e,t))}(this,e)),e.paused=!1,this},T.prototype.pause=function(){return l(`call pause flowing=%j`,this._readableState.flowing),!1!==this._readableState.flowing&&(l(`pause`),this._readableState.flowing=!1,this.emit(`pause`)),this._readableState.paused=!0,this},T.prototype.wrap=function(e){var t=this,n=this._readableState,r=!1;for(var i in e.on(`end`,(function(){if(l(`wrapped end`),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&t.push(e)}t.push(null)})),e.on(`data`,(function(i){l(`wrapped data`),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&i==null||(n.objectMode||i&&i.length)&&(t.push(i)||(r=!0,e.pause()))})),e)this[i]===void 0&&typeof e[i]==`function`&&(this[i]=function(t){return function(){return e[t].apply(e,arguments)}}(i));for(var a=0;a<C.length;a++)e.on(C[a],this.emit.bind(this,C[a]));return this._read=function(t){l(`wrapped _read`,t),r&&(r=!1,e.resume())},this},typeof Symbol==`function`&&(T.prototype[Symbol.asyncIterator]=function(){return f===void 0&&(f=n(955)),f(this)}),Object.defineProperty(T.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(T.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(T.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),T._fromList=ee,Object.defineProperty(T.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),typeof Symbol==`function`&&(T.from=function(e,t){return p===void 0&&(p=n(157)),p(T,e,t)})},610:function(e,t,n){e.exports=u;var r=n(48).F,i=r.ERR_METHOD_NOT_IMPLEMENTED,a=r.ERR_MULTIPLE_CALLBACK,o=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,c=n(382);function l(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;
259if(r===null)return this.emit(`error`,new a);n.writechunk=null,n.writecb=null,t!=null&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}function u(e){if(!(this instanceof u))return new u(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&(typeof e.transform==`function`&&(this._transform=e.transform),typeof e.flush==`function`&&(this._flush=e.flush)),this.on(`prefinish`,d)}function d(){var e=this;typeof this._flush!=`function`||this._readableState.destroyed?f(this,null,null):this._flush((function(t,n){f(e,t,n)}))}function f(e,t,n){if(t)return e.emit(`error`,t);if(n!=null&&e.push(n),e._writableState.length)throw new s;if(e._transformState.transforming)throw new o;return e.push(null)}n(698)(u,c),u.prototype.push=function(e,t){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,t)},u.prototype._transform=function(e,t,n){n(new i(`_transform()`))},u.prototype._write=function(e,t,n){var r=this._transformState;if(r.writecb=n,r.writechunk=e,r.writeencoding=t,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},u.prototype._read=function(e){var t=this._transformState;t.writechunk===null||t.transforming?t.needTransform=!0:(t.transforming=!0,this._transform(t.writechunk,t.writeencoding,t.afterTransform))},u.prototype._destroy=function(e,t){c.prototype._destroy.call(this,e,(function(e){t(e)}))}},708:function(e,t,n){var r,i=n(606);function a(e){var t=this;this.next=null,this.entry=null,this.finish=function(){(function(e,t,n){var r=e.entry;for(e.entry=null;r;){var i=r.callback;t.pendingcb--,i(n),r=r.next}t.corkedRequestsFree.next=e})(t,e)}}e.exports=T,T.WritableState=w;var o={deprecate:n(643)},s=n(345),c=n(287).Buffer,l=(n.g===void 0?typeof window<`u`?window:typeof self<`u`?self:{}:n.g).Uint8Array||function(){},u,d=n(896),f=n(291).getHighWaterMark,p=n(48).F,m=p.ERR_INVALID_ARG_TYPE,h=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,_=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,y=p.ERR_STREAM_NULL_VALUES,b=p.ERR_STREAM_WRITE_AFTER_END,x=p.ERR_UNKNOWN_ENCODING,S=d.errorOrDestroy;function C(){}function w(e,t,o){r||=n(382),e||={},typeof o!=`boolean`&&(o=t instanceof r),this.objectMode=!!e.objectMode,o&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,`writableHighWaterMark`,o),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===e.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=e.defaultEncoding||`utf8`,this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){(function(e,t){var n=e._writableState,r=n.sync,a=n.writecb;if(typeof a!=`function`)throw new g;if(function(e){e.writing=!1,e.writecb=null,e.length-=e.writelen,e.writelen=0}(n),t)(function(e,t,n,r,a){--t.pendingcb,n?(i.nextTick(a,r),i.nextTick(j,e,t),e._writableState.errorEmitted=!0,S(e,r)):(a(r),e._writableState.errorEmitted=!0,S(e,r),j(e,t))})(e,n,r,t,a);else{var o=k(n)||e.destroyed;o||n.corked||n.bufferProcessing||!n.bufferedRequest||O(e,n),r?i.nextTick(D,e,n,o,a):D(e,n,o,a)}})(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new a(this)}function T(e){var t=this instanceof(r||=n(382));if(!t&&!u.call(T,this))return new T(e);this._writableState=new w(e,this,t),this.writable=!0,e&&(typeof e.write==`function`&&(this._write=e.write),typeof e.writev==`function`&&(this._writev=e.writev),typeof e.destroy==`function`&&(this._destroy=e.destroy),typeof e.final==`function`&&(this._final=e.final)),s.call(this)}function E(e,t,n,r,i,a,o){t.writelen=r,t.writecb=o,t.writing=!0,t.sync=!0,t.destroyed?t.onwrite(new v(`write`)):n?e._writev(i,t.onwrite):e._write(i,a,t.onwrite),t.sync=!1}function D(e,t,n,r){n||function(e,t){t.length===0&&t.needDrain&&(t.needDrain=!1,e.emit(`drain`))}(e,t),t.pendingcb--,r(),j(e,t)}function O(e,t){t.bufferProcessing=!0;var n=t.bufferedRequest;if(e._writev&&n&&n.next){var r=t.bufferedRequestCount,i=Array(r),o=t.corkedRequestsFree;o.entry=n;for(var s=0,c=!0;n;)i[s]=n,n.isBuf||(c=!1),n=n.next,s+=1;i.allBuffers=c,E(e,t,!0,t.length,i,``,o.finish),t.pendingcb++,t.lastBufferedRequest=null,o.next?(t.corkedRequestsFree=o.next,o.next=null):t.corkedRequestsFree=new a(t),t.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,d=n.callback;if(E(e,t,!1,t.objectMode?1:l.length,l,u,d),n=n.next,t.bufferedRequestCount--,t.writing)break}n===null&&(t.lastBufferedRequest=null)}t.bufferedRequest=n,t.bufferProcessing=!1}function k(e){return e.ending&&e.length===0&&e.bufferedRequest===null&&!e.finished&&!e.writing}
259function A(e,t){e._final((function(n){t.pendingcb--,n&&S(e,n),t.prefinished=!0,e.emit(`prefinish`),j(e,t)}))}function j(e,t){var n=k(t);if(n&&(function(e,t){t.prefinished||t.finalCalled||(typeof e._final!=`function`||t.destroyed?(t.prefinished=!0,e.emit(`prefinish`)):(t.pendingcb++,t.finalCalled=!0,i.nextTick(A,e,t)))}(e,t),t.pendingcb===0&&(t.finished=!0,e.emit(`finish`),t.autoDestroy))){var r=e._readableState;(!r||r.autoDestroy&&r.endEmitted)&&e.destroy()}return n}n(698)(T,s),w.prototype.getBuffer=function(){for(var e=this.bufferedRequest,t=[];e;)t.push(e),e=e.next;return t},function(){try{Object.defineProperty(w.prototype,"buffer",{get:o.deprecate((function(){return this.getBuffer()}),`_writableState.buffer is deprecated. Use _writableState.getBuffer instead.`,`DEP0003`)})}catch{}}(),typeof Symbol==`function`&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]==`function`?(u=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(e){return!!u.call(this,e)||this===T&&e&&e._writableState instanceof w}})):u=function(e){return e instanceof this},T.prototype.pipe=function(){S(this,new _)},T.prototype.write=function(e,t,n){var r=this._writableState,a=!1,o=!r.objectMode&&function(e){return c.isBuffer(e)||e instanceof l}(e);return o&&!c.isBuffer(e)&&(e=function(e){return c.from(e)}(e)),typeof t==`function`&&(n=t,t=null),o?t=`buffer`:t||=r.defaultEncoding,typeof n!=`function`&&(n=C),r.ending?function(e,t){var n=new b;S(e,n),i.nextTick(t,n)}(this,n):(o||function(e,t,n,r){var a;return n===null?a=new y:typeof n==`string`||t.objectMode||(a=new m(`chunk`,[`string`,`Buffer`],n)),!a||(S(e,a),i.nextTick(r,a),!1)}(this,r,e,n))&&(r.pendingcb++,a=function(e,t,n,r,i,a){if(!n){var o=function(e,t,n){return e.objectMode||!1===e.decodeStrings||typeof t!=`string`||(t=c.from(t,n)),t}(t,r,i);r!==o&&(n=!0,i=`buffer`,r=o)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length<t.highWaterMark;if(l||(t.needDrain=!0),t.writing||t.corked){var u=t.lastBufferedRequest;t.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:a,next:null},u?u.next=t.lastBufferedRequest:t.bufferedRequest=t.lastBufferedRequest,t.bufferedRequestCount+=1}else E(e,t,!1,s,r,i,a);return l}(this,r,o,e,t,n)),a},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||O(this,e))},T.prototype.setDefaultEncoding=function(e){if(typeof e==`string`&&(e=e.toLowerCase()),!([`hex`,`utf8`,`utf-8`,`ascii`,`binary`,`base64`,`ucs2`,`ucs-2`,`utf16le`,`utf-16le`,`raw`].indexOf((e+``).toLowerCase())>-1))throw new x(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),T.prototype._write=function(e,t,n){n(new h(`_write()`))},T.prototype._writev=null,T.prototype.end=function(e,t,n){var r=this._writableState;return typeof e==`function`?(n=e,e=null,t=null):typeof t==`function`&&(n=t,t=null),e!=null&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||function(e,t,n){t.ending=!0,j(e,t),n&&(t.finished?i.nextTick(n):e.once(`finish`,n)),t.ended=!0,e.writable=!1}(this,r,n),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState!==void 0&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),T.prototype.destroy=d.destroy,T.prototype._undestroy=d.undestroy,T.prototype._destroy=function(e,t){t(e)}},955:function(e,t,n){var r,i=n(606);function a(e,t,n){return(t=function(e){var t=function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}(e,`string`);return typeof t==`symbol`?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=n(238),s=Symbol(`lastResolve`),c=Symbol(`lastReject`),l=Symbol(`error`),u=Symbol(`ended`),d=Symbol(`lastPromise`),f=Symbol(`handlePromise`),p=Symbol(`stream`);function m(e,t){return{value:e,done:t}}function h(e){var t=e[s];if(t!==null){var n=e[p].read();n!==null&&(e[d]=null,e[s]=null,e[c]=null,t(m(n,!1)))}}function g(e){i.nextTick(h,e)}var _=Object.getPrototypeOf((function(){})),v=Object.setPrototypeOf((a(r={get stream(){return this[p]},next:function(){var e=this,t=this[l];if(t!==null)return Promise.reject(t);if(this[u])return Promise.resolve(m(void 0,!0));if(this[p].destroyed)return new Promise((function(t,n){i.nextTick((function(){e[l]?n(e[l]):t(m(void 0,!0))}))}));var n,r=this[d];if(r)n=new Promise(function(e,t){return function(n,r){e.then((function(){t[u]?n(m(void 0,!0)):t[f](n,r)}),r)}}(r,this));else{var a=this[p].read();if(a!==null)return Promise.resolve(m(a,!1));n=new Promise(this[f])}return this[d]=n,n}},Symbol.asyncIterator,(function(){return this})),a(r,`return`,(function(){var e=this;return new Promise((function(t,n){e[p].destroy(null,(function(e){e?n(e):t(m(void 0,!0))}))}))})),r),_);e.exports=function(e){var t,n=Object.create(v,(a(t={},p,{value:e,writable:!0}),a(t,s,{value:null,writable:!0}),a(t,c,{value:null,writable:!0}),a(t,l,{value:null,writable:!0}),a(t,u,{value:e._readableState.endEmitted,writable:!0}),a(t,f,{value:function(e,t){var r=n[p].read();r?(n[d]=null,n[s]=null,n[c]=null,e(m(r,!1))):(n[s]=e,n[c]=t)},writable:!0}),t));return n[d]=null,o(e,(function(e){if(e&&e.code!==`ERR_STREAM_PREMATURE_CLOSE`){var t=n[c];t!==null&&(n[d]=null,n[s]=null,n[c]=null,t(e)),n[l]=e;return}var r=n[s];r!==null&&(n[d]=null,n[s]=null,n[c]=null,r(m(void 0,!0))),n[u]=!0})),e.on(`readable`,g.bind(null,n)),n}},726:function(e,t,n){function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];
259t%2?r(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,s(r.key),r)}}function s(e){var t=function(e,t){if(typeof e!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(typeof r!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}(e,`string`);return typeof t==`symbol`?t:String(t)}var c=n(287).Buffer,l=n(340).inspect,u=l&&l.custom||`inspect`;function d(e,t,n){c.prototype.copy.call(e,t,n)}e.exports=function(){function e(){(function(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)})(this,e),this.head=null,this.tail=null,this.length=0}return function(e,t,n){return t&&o(e.prototype,t),n&&o(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}(e,[{key:`push`,value:function(e){var t={data:e,next:null};this.length>0?this.tail.next=t:this.head=t,this.tail=t,++this.length}},{key:`unshift`,value:function(e){var t={data:e,next:this.head};this.length===0&&(this.tail=t),this.head=t,++this.length}},{key:`shift`,value:function(){if(this.length!==0){var e=this.head.data;return this.head=this.length===1?this.tail=null:this.head.next,--this.length,e}}},{key:`clear`,value:function(){this.head=this.tail=null,this.length=0}},{key:`join`,value:function(e){if(this.length===0)return``;for(var t=this.head,n=``+t.data;t=t.next;)n+=e+t.data;return n}},{key:`concat`,value:function(e){if(this.length===0)return c.alloc(0);for(var t=c.allocUnsafe(e>>>0),n=this.head,r=0;n;)d(n.data,t,r),r+=n.data.length,n=n.next;return t}},{key:`consume`,value:function(e,t){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():t?this._getString(e):this._getBuffer(e),n}},{key:`first`,value:function(){return this.head.data}},{key:`_getString`,value:function(e){var t=this.head,n=1,r=t.data;for(e-=r.length;t=t.next;){var i=t.data,a=e>i.length?i.length:e;if(a===i.length?r+=i:r+=i.slice(0,e),(e-=a)===0){a===i.length?(++n,this.head=t.next?t.next:this.tail=null):(this.head=t,t.data=i.slice(a));break}++n}return this.length-=n,r}},{key:`_getBuffer`,value:function(e){var t=c.allocUnsafe(e),n=this.head,r=1;for(n.data.copy(t),e-=n.data.length;n=n.next;){var i=n.data,a=e>i.length?i.length:e;if(i.copy(t,t.length-e,0,a),(e-=a)===0){a===i.length?(++r,this.head=n.next?n.next:this.tail=null):(this.head=n,n.data=i.slice(a));break}++r}return this.length-=r,t}},{key:u,value:function(e,t){return l(this,i(i({},t),{},{depth:0,customInspect:!1}))}}]),e}()},896:function(e,t,n){var r=n(606);function i(e,t){o(e,t),a(e)}function a(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit(`close`)}function o(e,t){e.emit(`error`,t)}e.exports={destroy:function(e,t){var n=this,s=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return s||c?(t?t(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,(function(e){!t&&e?n._writableState?n._writableState.errorEmitted?r.nextTick(a,n):(n._writableState.errorEmitted=!0,r.nextTick(i,n,e)):r.nextTick(i,n,e):t?(r.nextTick(a,n),t(e)):r.nextTick(a,n)})),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(e,t){var n=e._readableState,r=e._writableState;n&&n.autoDestroy||r&&r.autoDestroy?e.destroy(t):e.emit(`error`,t)}}},238:function(e,t,n){var r=n(48).F.ERR_STREAM_PREMATURE_CLOSE;function i(){}e.exports=function e(t,n,a){if(typeof n==`function`)return e(t,null,n);n||={},a=function(e){var t=!1;return function(){if(!t){t=!0;var n=[...arguments];e.apply(this,n)}}}(a||i);var o=n.readable||!1!==n.readable&&t.readable,s=n.writable||!1!==n.writable&&t.writable,c=function(){t.writable||u()},l=t._writableState&&t._writableState.finished,u=function(){s=!1,l=!0,o||a.call(t)},d=t._readableState&&t._readableState.endEmitted,f=function(){o=!1,d=!0,s||a.call(t)},p=function(e){a.call(t,e)},m=function(){var e;return o&&!d?(t._readableState&&t._readableState.ended||(e=new r),a.call(t,e)):s&&!l?(t._writableState&&t._writableState.ended||(e=new r),a.call(t,e)):void 0},h=function(){t.req.on(`finish`,u)};return function(e){return e.setHeader&&typeof e.abort==`function`}(t)?(t.on(`complete`,u),t.on(`abort`,m),t.req?h():t.on(`request`,h)):s&&!t._writableState&&(t.on(`end`,c),t.on(`close`,c)),t.on(`end`,f),t.on(`finish`,u),!1!==n.error&&t.on(`error`,p),t.on(`close`,m),function(){t.removeListener(`complete`,u),t.removeListener(`abort`,m),t.removeListener(`request`,h),t.req&&t.req.removeListener(`finish`,u),t.removeListener(`end`,c),t.removeListener(`close`,c),t.removeListener(`finish`,u),t.removeListener(`end`,f),t.removeListener(`error`,p),t.removeListener(`close`,m)}}},157:function(e){e.exports=function(){throw Error(`Readable.from is not available in the browser`)}},758:function(e,t,n){var r,i=n(48).F,a=i.ERR_MISSING_ARGS,o=i.ERR_STREAM_DESTROYED;function s(e){if(e)throw e}function c(e){e()}function l(e,t){return e.pipe(t)}e.exports=function(){var e=[...arguments],t,i=function(e){return e.length&&typeof e[e.length-1]==`function`?e.pop():s}(e);if(Array.isArray(e[0])&&(e=e[0]),e.length<2)throw new a(`streams`);var u=e.map((function(a,s){var l=s<e.length-1;return function(e,t,i,a){a=function(e){var t=!1;return function(){t||(t=!0,e.apply(void 0,arguments))}}(a);var s=!1;e.on(`close`,(function(){s=!0})),r===void 0&&(r=n(238)),r(e,{readable:t,writable:i},(function(e){if(e)return a(e);s=!0,a()}));var c=!1;return function(t){if(!s&&!c)return c=!0,function(e){return e.setHeader&&typeof e.abort==`function`}(e)?e.abort():typeof e.destroy==`function`?e.destroy():void a(t||new o(`pipe`))}}(a,l,s>0,(function(e){t||=e,e&&u.forEach(c),l||(u.forEach(c),i(t))}))}));return e.reduce(l)}},291:function(e,t,n){var r=n(48).F.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,t,n,i){var a=function(e,t,n){return e.highWaterMark==null?t?e[n]:null:e.highWaterMark}(t,i,n);if(a!=null){if(!isFinite(a)||Math.floor(a)!==a||a<0)throw new r(i?n:`highWaterMark`,a);return Math.floor(a)}return e.objectMode?16:16384}}},345:function(e,t,n){e.exports=n(7).EventEmitter},861:function(e,t,n){var r=n(287),i=r.Buffer;function a(e,t){for(var n in e)t[n]=e[n]}function o(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(a(r,t),t.Buffer=o),o.prototype=Object.create(i.prototype),a(i,o),o.from=function(e,t,n){if(typeof e==`number`)throw TypeError(`Argument must not be a number`);return i(e,t,n)},o.alloc=function(e,t,n){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);var r=i(e);return t===void 0?r.fill(0):typeof n==`string`?r.fill(t,n):r.fill(t),r},o.allocUnsafe=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return i(e)},o.allocUnsafeSlow=function(e){if(typeof e!=`number`)throw TypeError(`Argument must be a number`);return r.SlowBuffer(e)}},392:function(e,t,n){var r=n(861).Buffer,i=n(496);function a(e,t){this._block=r.alloc(e),this._finalSize=t,this._blockSize=e,this._len=0}a.prototype.update=function(e,t){e=i(e,t||`utf8`);for(var n=this._block,r=this._blockSize,a=e.length,o=this._len,s=0;s<a;){for(var c=o%r,l=Math.min(a-s,r-c),u=0;u<l;u++)n[c+u]=e[s+u];s+=l,(o+=l)%r==0&&this._update(n)}return this._len+=a,this},a.prototype.digest=function(e){var t=this._len%this._blockSize;this._block[t]=128,this._block.fill(0,t+1),t>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var a=this._hash();return e?a.toString(e):a},a.prototype._update=function(){throw Error(`_update must be implemented by subclass`)},e.exports=a},802:function(e,t,n){e.exports=function(t){var n=t.toLowerCase(),r=e.exports[n];if(!r)throw Error(n+` is not supported (we accept pull requests)`);return new r},e.exports.sha=n(816),e.exports.sha1=n(737),e.exports.sha224=n(710),e.exports.sha256=n(107),e.exports.sha384=n(827),e.exports.sha512=n(890)},816:function(e,t,n){var r=n(698),i=n(392),a=n(861).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<30|e>>>2}function u(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=e.readInt32BE(4*d);for(;d<80;++d)n[d]=n[d-3]^n[d-8]^n[d-14]^n[d-16];for(var f=0;f<80;++f){var p=~~(f/20),m=0|((t=r)<<5|t>>>27)+u(p,i,a,s)+c+n[f]+o[p];c=s,s=a,a=l(i),i=r,r=m}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},737:function(e,t,n){var r=n(698),i=n(392),a=n(861).Buffer,o=[1518500249,1859775393,-1894007588,-899497514],s=Array(80);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e){return e<<5|e>>>27}function u(e){return e<<30|e>>>2}function d(e,t,n,r){return e===0?t&n|~t&r:e===2?t&n|t&r|n&r:t^n^r}r(c,i),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<80;++f)n[f]=(t=n[f-3]^n[f-8]^n[f-14]^n[f-16])<<1|t>>>31;for(var p=0;p<80;++p){var m=~~(p/20),h=l(r)+d(m,i,a,s)+c+n[p]+o[m]|0;c=s,s=a,a=u(i),i=r,r=h}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=a.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},710:function(e,t,n){var r=n(698),i=n(107),a=n(392),o=n(861).Buffer,s=Array(64);function c(){this.init(),this._w=s,a.call(this,64,56)}r(c,i),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},107:function(e,t,n){var r=n(698),i=n(392),a=n(861).Buffer,o=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756
vendor: 3,846 bytes, line 259
259734187,3204031479,3329325298],s=Array(64);function c(){this.init(),this._w=s,i.call(this,64,56)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e){return(e>>>2|e<<30)^(e>>>13|e<<19)^(e>>>22|e<<10)}function f(e){return(e>>>6|e<<26)^(e>>>11|e<<21)^(e>>>25|e<<7)}function p(e){return(e>>>7|e<<25)^(e>>>18|e<<14)^e>>>3}r(c,i),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var t,n=this._w,r=0|this._a,i=0|this._b,a=0|this._c,s=0|this._d,c=0|this._e,m=0|this._f,h=0|this._g,g=0|this._h,_=0;_<16;++_)n[_]=e.readInt32BE(4*_);for(;_<64;++_)n[_]=0|(((t=n[_-2])>>>17|t<<15)^(t>>>19|t<<13)^t>>>10)+n[_-7]+p(n[_-15])+n[_-16];for(var v=0;v<64;++v){var y=g+f(c)+l(c,m,h)+o[v]+n[v]|0,b=d(r)+u(r,i,a)|0;g=h,h=m,m=c,c=s+y|0,s=a,a=i,i=r,r=y+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=a+this._c|0,this._d=s+this._d|0,this._e=c+this._e|0,this._f=m+this._f|0,this._g=h+this._g|0,this._h=g+this._h|0},c.prototype._hash=function(){var e=a.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},827:function(e,t,n){var r=n(698),i=n(890),a=n(392),o=n(861).Buffer,s=Array(160);function c(){this.init(),this._w=s,a.call(this,128,112)}r(c,i),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=o.allocUnsafe(48);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),e},e.exports=c},890:function(e,t,n){var r=n(698),i=n(392),a=n(861).Buffer,o=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,
2591126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=Array(160);function c(){this.init(),this._w=s,i.call(this,128,112)}function l(e,t,n){return n^e&(t^n)}function u(e,t,n){return e&t|n&(e|t)}function d(e,t){return(e>>>28|t<<4)^(t>>>2|e<<30)^(t>>>7|e<<25)}function f(e,t){return(e>>>14|t<<18)^(e>>>18|t<<14)^(t>>>9|e<<23)}function p(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^e>>>7}function m(e,t){return(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)}function h(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^e>>>6}function g(e,t){return(e>>>19|t<<13)^(t>>>29|e<<3)^(e>>>6|t<<26)}function _(e,t){return+(e>>>0<t>>>0)}r(c,i),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var t=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,a=0|this._dh,s=0|this._eh,c=0|this._fh,v=0|this._gh,y=0|this._hh,b=0|this._al,x=0|this._bl,S=0|this._cl,C=0|this._dl,w=0|this._el,T=0|this._fl,E=0|this._gl,D=0|this._hl,O=0;O<32;O+=2)t[O]=e.readInt32BE(4*O),t[O+1]=e.readInt32BE(4*O+4);for(;O<160;O+=2){var k=t[O-30],A=t[O-30+1],j=p(k,A),M=m(A,k),N=h(k=t[O-4],A=t[O-4+1]),P=g(A,k),F=t[O-14],I=t[O-14+1],L=t[O-32],ee=t[O-32+1],R=M+I|0,z=j+F+_(R,M)|0;z=(z=z+N+_(R=R+P|0,P)|0)+L+_(R=R+ee|0,ee)|0,t[O]=z,t[O+1]=R}for(var te=0;te<160;te+=2){z=t[te],R=t[te+1];var ne=u(n,r,i),re=u(b,x,S),ie=d(n,b),ae=d(b,n),oe=f(s,w),se=f(w,s),ce=o[te],le=o[te+1],ue=l(s,c,v),de=l(w,T,E),fe=D+se|0,pe=y+oe+_(fe,D)|0;pe=(pe=(pe=pe+ue+_(fe=fe+de|0,de)|0)+ce+_(fe=fe+le|0,le)|0)+z+_(fe=fe+R|0,R)|0;var me=ae+re|0,he=ie+ne+_(me,ae)|0;y=v,D=E,v=c,E=T,c=s,T=w,s=a+pe+_(w=C+fe|0,C)|0,a=i,C=S,i=r,S=x,r=n,x=b,n=pe+he+_(b=fe+me|0,fe)|0}this._al=this._al+b|0,this._bl=this._bl+x|0,this._cl=this._cl+S|0,this._dl=this._dl+C|0,this._el=this._el+w|0,this._fl=this._fl+T|0,this._gl=this._gl+E|0,this._hl=this._hl+D|0,this._ah=this._ah+n+_(this._al,b)|0,this._bh=this._bh+r+_(this._bl,x)|0,this._ch=this._ch+i+_(this._cl,S)|0,this._dh=this._dh+a+_(this._dl,C)|0,this._eh=this._eh+s+_(this._el,w)|0,this._fh=this._fh+c+_(this._fl,T)|0,this._gh=this._gh+v+_(this._gl,E)|0,this._hh=this._hh+y+_(this._hl,D)|0},c.prototype._hash=function(){var e=a.allocUnsafe(64);function t(t,n,r){e.writeInt32BE(t,r),e.writeInt32BE(n,r+4)}return t(this._ah,this._al,0),t(this._bh,this._bl,8),t(this._ch,this._cl,16),t(this._dh,this._dl,24),t(this._eh,this._el,32),t(this._fh,this._fl,40),t(this._gh,this._gl,48),t(this._hh,this._hl,56),e},e.exports=c},310:function(e,t,n){e.exports=i;var r=n(7).EventEmitter;function i(){r.call(this)}n(698)(i,r),i.Readable=n(412),i.Writable=n(708),i.Duplex=n(382),i.Transform=n(610),i.PassThrough=n(600),i.finished=n(238),i.pipeline=n(758),i.Stream=i,i.prototype.pipe=function(e,t){var n=this;function i(t){e.writable&&!1===e.write(t)&&n.pause&&n.pause()}function a(){n.readable&&n.resume&&n.resume()}n.on(`data`,i),e.on(`drain`,a),e._isStdio||t&&!1===t.end||(n.on(`end`,s),n.on(`close`,c));var o=!1;function s(){o||(o=!0,e.end())}function c(){o||(o=!0,typeof e.destroy==`function`&&e.destroy())}function l(e){if(u(),r.listenerCount(this,`error`)===0)throw e}function u(){n.removeListener(`data`,i),e.removeListener(`drain`,a),n.removeListener(`end`,s),n.removeListener(`close`,c),n.removeListener(`error`,l),e.removeListener(`error`,l),n.removeListener(`end`,u),n.removeListener(`close`,u),e.removeListener(`close`,u)}return n.on(`error`,l),e.on(`error`,l),n.on(`end`,u),n.on(`close`,u),e.on(`close`,u),e.emit(`pipe`,n),e}},141:function(e,t,n){var r=n(861).Buffer,i=r.isEncoding||function(e){switch((e=``+e)&&e.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 a(e){var t;switch(this.encoding=function(e){var t=function(e){if(!e)return`utf8`;for(var t;;)switch(e){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 e;default:if(t)return;e=(``+e).toLowerCase(),t=!0}}(e);if(typeof t!=`string`&&(r.isEncoding===i||!i(e)))throw Error(`Unknown encoding: `+e);return t||e}(e),this.encoding){case`utf16le`:this.text=c,this.end=l,t=4;break;case`utf8`:this.fillLast=s,t=4;break;case`base64`:this.text=u,this.end=d,t=3;break;default:this.write=f,this.end=p;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(t)}function o(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function s(e){var t=this.lastTotal-this.lastNeed,n=function(e,t,n){if((192&t[0])!=128)return e.lastNeed=0,`�`;if(e.lastNeed>1&&t.length>1){if((192&t[1])!=128)return e.lastNeed=1,`�`;if(e.lastNeed>2&&t.length>2&&(192&t[2])!=128)return e.lastNeed=2,`�`}}(this,e);return n===void 0?this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length)):n}function c(e,t){if((e.length-t)%2==0){var n=e.toString(`utf16le`,t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString(`utf16le`,t,e.length-1)}function l(e){var t=e&&e.length?this.write(e):``;if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString(`utf16le`,0,n)}return t}function u(e,t){var n=(e.length-t)%3;return n===0?e.toString(`base64`,t):(this.lastNeed=3-n,this.lastTotal=3,n===1?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString(`base64`,t,e.length-n))}function d(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+this.lastChar.toString(`base64`,0,3-this.lastNeed):t}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):``}t.I=a,a.prototype.write=function(e){if(e.length===0)return``;var t,n;if(this.lastNeed){if((t=this.fillLast(e))===void 0)return``;n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?t?t+this.text(e,n):this.text(e,n):t||``},a.prototype.end=function(e){var t=e&&e.length?this.write(e):``;return this.lastNeed?t+`�`:t},a.prototype.text=function(e,t){var n=function(e,t,n){var r=t.length-1;if(r<n)return 0;var i=o(t[r]);return i>=0?(i>0&&(e.lastNeed=i-1),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(e.lastNeed=i-2),i):--r<n||i===-2?0:(i=o(t[r]),i>=0?(i>0&&(i===2?i=0:e.lastNeed=i-3),i):0))}(this,e,t);if(!this.lastNeed)return e.toString(`utf8`,t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString(`utf8`,t,r)},a.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},643:function(e,t,n){function r(e){try{if(!n.g.localStorage)return!1}catch{return!1}var t=n.g.localStorage[e];return t!=null&&String(t).toLowerCase()===`true`}e.exports=function(e,t){if(r(`noDeprecation`))return e;var n=!1;
259return function(){if(!n){if(r(`throwDeprecation`))throw Error(t);r(`traceDeprecation`)?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}}},499:function(e){var t={"&":`&`,'"':`"`,"'":`'`,"<":`<`,">":`>`};e.exports=function(e){return e&&e.replace?e.replace(/([&"<>'])/g,(function(e,n){return t[n]})):e}},123:function(e,t,n){var r=n(606),i=n(499),a=n(310).Stream;function o(e,t,n){var r,a=function(e,t){return Array(t||0).join(e||``)}(t,n||=0),s=e;if(typeof e==`object`&&(s=e[r=Object.keys(e)[0]])&&s._elem)return s._elem.name=r,s._elem.icount=n,s._elem.indent=t,s._elem.indents=a,s._elem.interrupt=s,s._elem;var c,l=[],u=[];function d(e){Object.keys(e).forEach((function(t){l.push(function(e,t){return e+`="`+i(t)+`"`}(t,e[t]))}))}switch(typeof s){case`object`:if(s===null)break;s._attr&&d(s._attr),s._cdata&&u.push((`<![CDATA[`+s._cdata).replace(/\]\]>/g,`]]]]><![CDATA[>`)+`]]>`),s.forEach&&(c=!1,u.push(``),s.forEach((function(e){typeof e==`object`?Object.keys(e)[0]==`_attr`?d(e._attr):u.push(o(e,t,n+1)):(u.pop(),c=!0,u.push(i(e)))})),c||u.push(``));break;default:u.push(i(s))}return{name:r,interrupt:!1,attributes:l,content:u,icount:n,indents:a,indent:t}}function s(e,t,n){if(typeof t!=`object`)return e(!1,t);var r=t.interrupt?1:t.content.length;function i(){for(;t.content.length;){var i=t.content.shift();if(i!==void 0){if(a(i))return;s(e,i)}}e(!1,(r>1?t.indents:``)+(t.name?`</`+t.name+`>`:``)+(t.indent&&!n?` 260`:``)),n&&n()}function a(t){return!!t.interrupt&&(t.interrupt.append=e,t.interrupt.end=i,t.interrupt=!1,e(!0),!0)}if(e(!1,t.indents+(t.name?`<`+t.name:``)+(t.attributes.length?` `+t.attributes.join(` `):``)+(r?t.name?`>`:``:t.name?`/>`:``)+(t.indent&&r>1?` 261`:``)),!r)return e(!1,t.indent?` 262`:``);a(t)||i()}e.exports=function(e,t){typeof t!=`object`&&(t={indent:t});var n=t.stream?new a:null,i=``,c=!1,l=t.indent?!0===t.indent?` `:t.indent:``,u=!0;function d(e){u?r.nextTick(e):e()}function f(e,t){if(t!==void 0&&(i+=t),e&&!c&&(n||=new a,c=!0),e&&c){var r=i;d((function(){n.emit(`data`,r)})),i=``}}function p(e,t){s(f,o(e,l,+!!l),t)}function m(){if(n){var e=i;d((function(){n.emit(`data`,e),n.emit(`end`),n.readable=!1,n.emit(`close`)}))}}return d((function(){u=!1})),t.declaration&&function(e){var t={version:`1.0`,encoding:e.encoding||`UTF-8`};e.standalone&&(t.standalone=e.standalone),p({"?xml":{_attr:t}}),i=i.replace(`/>`,`?>`)}(t.declaration),e&&e.forEach?e.forEach((function(t,n){var r;n+1===e.length&&(r=m),p(t,r)})):p(e,m),n?(n.readable=!0,n):i},e.exports.element=e.exports.Element=function(){return{_elem:o(Array.prototype.slice.call(arguments)),push:function(e){if(!this.append)throw Error(`not assigned to a parent!`);var t=this,n=this._elem.indent;s(this.append,o(e,n,this._elem.icount+ +!!n),(function(){t.append(!0)}))},close:function(e){e!==void 0&&this.push(e),this.end&&this.end()}}}},987:function(e){e.exports=Qr},362:function(e){e.exports=$r},496:function(e){e.exports=ei},340:function(){},838:function(){}},EK={};function Z(e){var t=EK[e];if(t!==void 0)return t.exports;var n=EK[e]={exports:{}};return TK[e](n,n.exports,Z),n.exports}Z.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return Z.d(t,{a:t}),t},Z.d=function(e,t){for(var n in t)Z.o(t,n)&&!Z.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},Z.g=function(){if(typeof globalThis==`object`)return globalThis;try{return this||Function(`return this`)()}catch{if(typeof window==`object`)return window}}(),Z.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},Z.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})};var DK={};Z.r(DK),Z.d(DK,{CLEAR:function(){return nq},CLEAR_BY:function(){return rq},NEW_AUTH_ERR:function(){return tq},NEW_SPEC_ERR:function(){return $K},NEW_SPEC_ERR_BATCH:function(){return eq},NEW_THROWN_ERR:function(){return ZK},NEW_THROWN_ERR_BATCH:function(){return QK},clear:function(){return lq},clearBy:function(){return uq},newAuthErr:function(){return cq},newSpecErr:function(){return oq},newSpecErrBatch:function(){return sq},newThrownErr:function(){return iq},newThrownErrBatch:function(){return aq}});var OK={};Z.r(OK),Z.d(OK,{AUTHORIZE:function(){return aJ},AUTHORIZE_OAUTH2:function(){return sJ},CONFIGURE_AUTH:function(){return cJ},LOGOUT:function(){return oJ},RESTORE_AUTHORIZATION:function(){return lJ},SHOW_AUTH_POPUP:function(){return iJ},authPopup:function(){return EJ},authorize:function(){return dJ},authorizeAccessCodeWithBasicAuthentication:function(){return xJ},authorizeAccessCodeWithFormParams:function(){return bJ},authorizeApplication:function(){return yJ},authorizeOauth2:function(){return gJ},authorizeOauth2WithPersistOption:function(){return _J},authorizePassword:function(){return vJ},authorizeRequest:function(){return SJ},authorizeWithPersistOption:function(){return fJ},configureAuth:function(){return CJ},logout:function(){return pJ},logoutWithPersistOption:function(){return mJ},persistAuthorizationIfNeeded:function(){return TJ},preAuthorizeImplicit:function(){return hJ},restoreAuthorization:function(){return wJ},showDefinitions:function(){return uJ}});var kK={};Z.r(kK),Z.d(kK,{authorized:function(){return PJ},definitionsForRequirements:function(){return NJ},definitionsToAuthorize:function(){return AJ},getConfigs:function(){return IJ},getDefinitionsByNames:function(){return MJ},isAuthorized:function(){return FJ},selectAuthPath:function(){return jJ},shownDefinitions:function(){return kJ}}
262);var AK={};Z.r(AK),Z.d(AK,{TOGGLE_CONFIGS:function(){return qJ},UPDATE_CONFIGS:function(){return KJ},downloadConfig:function(){return ZJ},getConfigByUrl:function(){return QJ},loaded:function(){return XJ},toggle:function(){return YJ},update:function(){return JJ}});var jK={};Z.r(jK),Z.d(jK,{get:function(){return $J}});var MK={};Z.r(MK),Z.d(MK,{transform:function(){return pY}});var NK={};Z.r(NK),Z.d(NK,{transform:function(){return mY}});var PK={};Z.r(PK),Z.d(PK,{allErrors:function(){return vY},lastError:function(){return yY}});var FK={};Z.r(FK),Z.d(FK,{SHOW:function(){return NY},UPDATE_FILTER:function(){return jY},UPDATE_LAYOUT:function(){return AY},UPDATE_MODE:function(){return MY},changeMode:function(){return LY},show:function(){return IY},updateFilter:function(){return FY},updateLayout:function(){return PY}});var IK={};Z.r(IK),Z.d(IK,{current:function(){return zY},currentFilter:function(){return BY},isShown:function(){return VY},showSummary:function(){return UY},whatMode:function(){return HY}});var LK={};Z.r(LK),Z.d(LK,{taggedOperations:function(){return WY}});var RK={};Z.r(RK),Z.d(RK,{getActiveLanguage:function(){return oX},getDefaultExpanded:function(){return sX},getGenerators:function(){return iX},getSnippetGenerators:function(){return aX}});var zK={};Z.r(zK),Z.d(zK,{JsonSchemaArrayItemFile:function(){return VX},JsonSchemaArrayItemText:function(){return BX},JsonSchemaForm:function(){return LX},JsonSchema_array:function(){return zX},JsonSchema_boolean:function(){return HX},JsonSchema_object:function(){return WX},JsonSchema_string:function(){return RX}});var BK={};Z.r(BK),Z.d(BK,{allowTryItOutFor:function(){return pQ},basePath:function(){return $Z},canExecuteScheme:function(){return OQ},consumes:function(){return qZ},consumesOptionsFor:function(){return EQ},contentTypeValues:function(){return CQ},currentProducesFor:function(){return wQ},definitions:function(){return QZ},externalDocs:function(){return VZ},findDefinition:function(){return ZZ},getOAS3RequiredRequestBodyContentType:function(){return jQ},getParameter:function(){return vQ},hasHost:function(){return yQ},host:function(){return eQ},info:function(){return BZ},isMediaTypeSchemaPropertiesEqual:function(){return MQ},isOAS3:function(){return zZ},lastError:function(){return OZ},mutatedRequestFor:function(){return fQ},mutatedRequests:function(){return lQ},operationScheme:function(){return DQ},operationWithMeta:function(){return _Q},operations:function(){return KZ},operationsWithRootInherited:function(){return nQ},operationsWithTags:function(){return aQ},parameterInclusionSettingFor:function(){return hQ},parameterValues:function(){return bQ},parameterWithMeta:function(){return gQ},parameterWithMetaByIdentity:function(){return mQ},parametersIncludeIn:function(){return xQ},parametersIncludeType:function(){return SQ},paths:function(){return WZ},produces:function(){return JZ},producesOptionsFor:function(){return TQ},requestFor:function(){return dQ},requests:function(){return cQ},responseFor:function(){return uQ},responses:function(){return sQ},schemes:function(){return tQ},security:function(){return YZ},securityDefinitions:function(){return XZ},semver:function(){return UZ},spec:function(){return RZ},specJS:function(){return NZ},specJson:function(){return MZ},specJsonWithResolvedSubtrees:function(){return LZ},specResolved:function(){return PZ},specResolvedSubtree:function(){return FZ},specSource:function(){return jZ},specStr:function(){return AZ},tagDetails:function(){return iQ},taggedOperations:function(){return oQ},tags:function(){return rQ},url:function(){return kZ},validOperationMethods:function(){return GZ},validateBeforeExecute:function(){return AQ},validationErrors:function(){return kQ},version:function(){return HZ}});var VK={};Z.r(VK),Z.d(VK,{CLEAR_REQUEST:function(){return GQ},CLEAR_RESPONSE:function(){return WQ},CLEAR_VALIDATE_PARAMS:function(){return KQ},LOG_REQUEST:function(){return UQ},SET_MUTATED_REQUEST:function(){return HQ},SET_REQUEST:function(){return VQ},SET_RESPONSE:function(){return BQ},SET_SCHEME:function(){return XQ},UPDATE_EMPTY_PARAM_INCLUSION:function(){return RQ},UPDATE_JSON:function(){return IQ},UPDATE_OPERATION_META_VALUE:function(){return qQ},UPDATE_PARAM:function(){return LQ},UPDATE_RESOLVED:function(){return JQ},UPDATE_RESOLVED_SUBTREE:function(){return YQ},UPDATE_SPEC:function(){return PQ},UPDATE_URL:function(){return FQ},VALIDATE_PARAMS:function(){return zQ},changeConsumesValue:function(){return h$},changeParam:function(){return c$},changeParamByIdentity:function(){return l$},changeProducesValue:function(){return g$},clearRequest:function(){return w$},clearResponse:function(){return C$},clearValidateParams:function(){return m$},execute:function(){return S$},executeRequest:function(){return x$},invalidateResolvedSubtreeCache:function(){return d$},logRequest:function(){return b$},parseToJson:function(){return n$},requestResolvedSubtree:function(){return s$},resolveSpec:function(){return i$},setMutatedRequest:function(){return y$},setRequest:function(){return v$},setResponse:function(){return _$},setScheme:function(){return T$},updateEmptyParamInclusion:function(){return p$},updateJsonSpec:function(){return t$},updateResolved:function(){return $Q},updateResolvedSubtree:function(){return u$},updateSpec:function(){return QQ},updateUrl:function(){return e$},validateParams:function(){return f$}});var HK={};Z.r(HK),Z.d(HK,{executeRequest:function(){return k$},updateJsonSpec:function(){return O$},updateSpec:function(){return D$},validateParams:function(){return A$}});var UK={};Z.r(UK),Z.d(UK,{Button:function(){return f0},Col:function(){return u0},Collapse:function(){return v0},Container:function(){return c0},Input:function(){return m0},Link:function(){return g0},Row:function(){return d0},Select:function(){return h0},TextArea:function(){return p0}});var WK={};Z.r(WK),Z.d(WK,{basePath:function(){return o2},consumes:function(){return s2},definitions:function(){return t2},findDefinition:function(){return e2},hasHost:function(){return n2},host:function(){return a2},produces:function(){return c2},schemes:function(){return l2},securityDefinitions:function(){return r2},validOperationMethods:function(){return i2}});var GK={};Z.r(GK),Z.d(GK,{definitionsToAuthorize:function(){return u2}});var KK={};Z.r(KK),Z.d(KK,{callbacksOperations:function(){return y2},findSchema:function(){return v2},isOAS3:function(){return h2},isOAS30:function(){return m2},isSwagger2:function(){return p2},servers:function(){return _2}});var qK={};Z.r(qK),Z.d(qK,{CLEAR_REQUEST_BODY_VALIDATE_ERROR:function(){return q2},CLEAR_REQUEST_BODY_VALUE:function(){return J2},SET_REQUEST_BODY_VALIDATE_ERROR:function(){return K2},UPDATE_ACTIVE_EXAMPLES_MEMBER:function(){return V2},UPDATE_REQUEST_BODY_INCLUSION:function(){return B2},UPDATE_REQUEST_BODY_VALUE:function(){return R2},UPDATE_REQUEST_BODY_VALUE_RETAIN_FLAG:function(){return z2},UPDATE_REQUEST_CONTENT_TYPE:function(){return H2},UPDATE_RESPONSE_CODE_CONTENT_TYPE:function(){return W2},UPDATE_RESPONSE_CONTENT_TYPE:function(){return U2},UPDATE_SELECTED_SERVER:function(){return L2},UPDATE_SERVER_VARIABLE_VALUE:function(){return G2},clearRequestBodyValidateError:function(){return a4},clearRequestBodyValue:function(){return s4},initRequestBodyValidateError:function(){return o4},setActiveExamplesMember:function(){return $2},setRequestBodyInclusion:function(){return Q2},setRequestBodyValidateError:function(){return i4},setRequestBodyValue:function(){return X2},setRequestContentType:function(){return e4},setResponseCodeContentType:function(){return n4},setResponseContentType:function(){return t4},setRetainRequestBodyValueFlag:function(){return Z2},setSelectedServer:function(){return Y2},setServerVariableValue:function(){return r4}});var JK={};
262Z.r(JK),Z.d(JK,{activeExamplesMember:function(){return g4},hasUserEditedBody:function(){return p4},requestBodyErrors:function(){return h4},requestBodyInclusionSetting:function(){return m4},requestBodyValue:function(){return u4},requestContentType:function(){return _4},responseCodeContentType:function(){return y4},responseContentType:function(){return v4},selectDefaultRequestBodyValue:function(){return f4},selectedServer:function(){return l4},serverEffectiveValue:function(){return S4},serverVariableValue:function(){return b4},serverVariables:function(){return x4},shouldRetainRequestBodyValue:function(){return d4},validOperationMethods:function(){return T4},validateBeforeExecute:function(){return C4},validateShallowRequired:function(){return w4}});var Q=di,YK=Z(919),XK=Z.n(YK),ZK=`err_new_thrown_err`,QK=`err_new_thrown_err_batch`,$K=`err_new_spec_err`,eq=`err_new_spec_err_batch`,tq=`err_new_auth_err`,nq=`err_clear`,rq=`err_clear_by`;function iq(e){return{type:ZK,payload:(0,zl.serializeError)(e)}}function aq(e){return{type:QK,payload:e}}function oq(e){return{type:$K,payload:e}}function sq(e){return{type:eq,payload:e}}function cq(e){return{type:tq,payload:e}}function lq(e={}){return{type:nq,payload:e}}function uq(e=()=>!0){return{type:rq,payload:e}}var dq=function(){var e={location:{},history:{},open:()=>{},close:()=>{},File:function(){},FormData:function(){}};if(typeof window>`u`)return e;try{e=window;for(var t of[`File`,`Blob`,`FormData`])t in window&&(e[t]=window[t])}catch(e){console.error(e)}return e}(),fq=Z(209),pq=Z.n(fq),mq=Z(802),hq=Z.n(mq),gq=Q.Set.of(`type`,`format`,`items`,`default`,`maximum`,`exclusiveMaximum`,`minimum`,`exclusiveMinimum`,`maxLength`,`minLength`,`pattern`,`maxItems`,`minItems`,`uniqueItems`,`enum`,`multipleOf`);function _q(e,{isOAS3:t}={}){if(!Q.Map.isMap(e))return{schema:(0,Q.Map)(),parameterContentMediaType:null};if(!t)return e.get(`in`)===`body`?{schema:e.get(`schema`,(0,Q.Map)()),parameterContentMediaType:null}:{schema:e.filter(((e,t)=>gq.includes(t))),parameterContentMediaType:null};if(e.get(`content`)){let t=e.get(`content`,(0,Q.Map)({})).keySeq().first();return{schema:e.getIn([`content`,t,`schema`],(0,Q.Map)()),parameterContentMediaType:t}}return{schema:e.get(`schema`)?e.get(`schema`,(0,Q.Map)()):(0,Q.Map)(),parameterContentMediaType:null}}var vq=Z(287).Buffer,yq=`default`,bq=e=>(0,Q.isImmutable)(e)?e.toJS():e;function xq(e){return Tq(e)?bq(e):{}}function Sq(e){if((0,Q.isImmutable)(e)||e instanceof dq.File||!Tq(e))return e;if(Array.isArray(e))return(0,Q.Seq)(e).map(Sq).toList();if((0,Fn.default)(e.entries)){let t=function(e){if(!(0,Fn.default)(e.entries))return e;let t={},n=`_**[]`,r={};for(let i of e.entries())t[i[0]]||r[i[0]]&&r[i[0]].containsMultiple?(r[i[0]]||(r[i[0]]={containsMultiple:!0,length:1},t[`${i[0]}${n}${r[i[0]].length}`]=t[i[0]],delete t[i[0]]),r[i[0]].length+=1,t[`${i[0]}${n}${r[i[0]].length}`]=i[1]):t[i[0]]=i[1];return t}(e);return(0,Q.OrderedMap)(t).map(Sq)}return(0,Q.OrderedMap)(e).map(Sq)}function Cq(e){return Array.isArray(e)?e:[e]}function wq(e){return typeof e==`function`}function Tq(e){return!!e&&typeof e==`object`}function Eq(e){return typeof e==`function`}function Dq(e){return Array.isArray(e)}var Oq=In.default;function kq(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=t(e[r],r),n)),{})}function Aq(e,t){return Object.keys(e).reduce(((n,r)=>{let i=t(e[r],r);return i&&typeof i==`object`&&Object.assign(n,i),n}),{})}function jq(e){return({dispatch:t,getState:n})=>t=>n=>typeof n==`function`?n(e()):t(n)}function Mq(e,t,n,r,i,a){if(!t)return[];let o=[],s=t.get(`nullable`),c=t.get(`required`),l=t.get(`maximum`),u=t.get(`minimum`),d=t.get(`type`),f=t.get(`format`),p=t.get(`maxLength`),m=t.get(`minLength`),h=t.get(`uniqueItems`),g=t.get(`maxItems`),_=t.get(`minItems`),v=t.get(`pattern`),y=n||!0===c,b=e!=null,x=y||b&&d===`array`||!(!y&&!b),S=s&&e===null;if(y&&!b&&!S&&!r&&!d)return o.push(`Required field is not provided`),o;if(S||!d||!x)return[];let C=d===`string`&&e,w=d===`array`&&Array.isArray(e)&&e.length,T=d===`array`&&Q.List.isList(e)&&e.count(),E=d===`array`&&typeof e==`string`&&e,D=[
262C,w,T,d===`file`&&e instanceof dq.File,d===`boolean`&&(e||!1===e),d===`number`&&(e||e===0),d===`integer`&&(e||e===0),d===`object`&&typeof e==`object`&&!!e,d===`object`&&typeof e==`string`&&e],O=(a?D:D.concat(E)).some((e=>!!e));if(y&&!O&&!r)return o.push(`Required field is not provided`),o;if(d===`object`&&(i===null||i===`application/json`)){let n=e;if(typeof e==`string`)try{n=JSON.parse(e)}catch{return o.push(`Parameter string value must be valid JSON`),o}t&&t.has(`required`)&&Eq(c.isList)&&c.isList()&&c.forEach((e=>{n[e]===void 0&&o.push({propKey:e,error:`Required property not found`})})),t&&t.has(`properties`)&&t.get(`properties`).forEach(((e,t)=>{let s=Mq(n[t],e,!1,r,i,a);o.push(...s.map((e=>({propKey:t,error:e}))))}))}if(v){let t=((e,t)=>{if(!new RegExp(t).test(e))return`Value must follow pattern `+t})(e,v);t&&o.push(t)}if(_&&d===`array`){let t=((e,t)=>{if(!e&&t>=1||e&&e.length<t)return`Array must contain at least ${t} item${t===1?``:`s`}`})(e,_);t&&o.push(t)}if(g&&d===`array`){let t=((e,t)=>{if(e&&e.length>t)return`Array must not contain more then ${t} item${t===1?``:`s`}`})(e,g);t&&o.push({needRemove:!0,error:t})}if(h&&d===`array`){let t=((e,t)=>{if(e&&(t===`true`||!0===t)){let t=(0,Q.fromJS)(e),n=t.toSet();if(e.length>n.size){let e=(0,Q.Set)();if(t.forEach(((n,r)=>{t.filter((e=>Eq(e.equals)?e.equals(n):e===n)).size>1&&(e=e.add(r))})),e.size!==0)return e.map((e=>({index:e,error:`No duplicates allowed.`}))).toArray()}}})(e,h);t&&o.push(...t)}if(p||p===0){let t=((e,t)=>{if(e.length>t)return`Value must be no longer than ${t} character${t===1?``:`s`}`})(e,p);t&&o.push(t)}if(m){let t=((e,t)=>{if(e.length<t)return`Value must be at least ${t} character${t===1?``:`s`}`})(e,m);t&&o.push(t)}if(l||l===0){let t=((e,t)=>{if(e>t)return`Value must be less than or equal to ${t}`})(e,l);t&&o.push(t)}if(u||u===0){let t=((e,t)=>{if(e<t)return`Value must be greater than or equal to ${t}`})(e,u);t&&o.push(t)}if(d===`string`){let t;if(t=f===`date-time`?(e=>{if(isNaN(Date.parse(e)))return`Value must be a DateTime`})(e):f===`uuid`?(e=>{if(e=e.toString().toLowerCase(),!/^[{(]?[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}[)}]?$/.test(e))return`Value must be a Guid`})(e):(e=>{if(e&&typeof e!=`string`)return`Value must be a string`})(e),!t)return o;o.push(t)}else if(d===`boolean`){let t=(e=>{if(e!==`true`&&e!==`false`&&!0!==e&&!1!==e)return`Value must be a boolean`})(e);if(!t)return o;o.push(t)}else if(d===`number`){let t=(e=>{if(!/^-?\d+(\.?\d+)?$/.test(e))return`Value must be a number`})(e);if(!t)return o;o.push(t)}else if(d===`integer`){let t=(e=>{if(!/^-?\d+$/.test(e))return`Value must be an integer`})(e);if(!t)return o;o.push(t)}else if(d===`array`){if(!w&&!T)return o;e&&e.forEach(((e,n)=>{let s=Mq(e,t.get(`items`),!1,r,i,a);o.push(...s.map((e=>({index:n,error:e}))))}))}else if(d===`file`){let t=(e=>{if(e&&!(e instanceof dq.File))return`Value must be a file`})(e);if(!t)return o;o.push(t)}return o}var Nq=e=>{let t;return t=e instanceof vq?e:vq.from(e.toString(),`utf-8`),t.toString(`base64`)},Pq={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)}},Fq=e=>{let t=[];for(let n in e){let r=e[n];r!==void 0&&r!==``&&t.push([n,`=`,encodeURIComponent(r).replace(/%20/g,`+`)].join(``))}return t.join(`&`)},Iq=(e,t,n)=>!!(0,Vl.default)(n,(n=>(0,Pn.default)(e[n],t[n])));function Lq(e){return!(!e||e.indexOf(`localhost`)>=0||e.indexOf(`127.0.0.1`)>=0||e===`none`)}var Rq=e=>typeof e==`string`||e instanceof String?e.trim().replace(/\s/g,`%20`):``,zq=e=>(0,Ul.default)(Rq(e).replace(/%20/g,`_`)),Bq=e=>/^x-/.test(e),Vq=e=>Q.Map.isMap(e)?e.filter(((e,t)=>Bq(t))):Object.keys(e).filter((e=>Bq(e))),Hq=e=>e.filter(((e,t)=>/^pattern|maxLength|minLength|maximum|minimum/.test(t)));function Uq(e,t,n=()=>!0){if(typeof e!=`object`||Array.isArray(e)||e===null||!t)return e;let r=Object.assign({},e);return Object.keys(r).forEach((e=>{e===t&&n(r[e],e)?delete r[e]:r[e]=Uq(r[e],t,n)})),r}function Wq(e){if(typeof e==`string`)return e;if(e&&e.toJS&&(e=e.toJS()),typeof e==`object`&&e)try{return JSON.stringify(e,null,2)}catch{return String(e)}return e==null?``:e.toString()}function Gq(e,{returnAll:t=!1,allowHashes:n=!0}={}){if(!Q.Map.isMap(e))throw Error(`paramToIdentifier: received a non-Map parameter as input`);let r=e.get(`name`),i=e.get(`in`),a=[];return e&&e.hashCode&&i&&r&&n&&a.push(`${i}.${r}.hash-${e.hashCode()}`),i&&r&&a.push(`${i}.${r}`),a.push(r),t?a:a[0]||``}function Kq(e,t){return Gq(e,{returnAll:!0}).map((e=>t[e])).filter((e=>e!==void 0))[0]}function qq(e){return e.replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=/g,``)}var Jq=e=>!e||!(!(0,Q.isImmutable)(e)||!e.isEmpty()),Yq=e=>e,Xq=class{constructor(e={}){XK()(this,{state:{},plugins:[],system:{configs:{},fn:{},components:{},rootInjects:{},statePlugins:{}},boundSystem:{},toolbox:{}}
262,e),this.getSystem=this._getSystem.bind(this),this.store=function(e,t,n){return function(e,t,n){let r=[jq(n)];return oi(e,t,(dq.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||li)(ui(...r)))}(e,t,n)}(Yq,(0,Q.fromJS)(this.state),this.getSystem),this.buildSystem(!1),this.register(this.plugins)}getStore(){return this.store}register(e,t=!0){var n=Zq(e,this.getSystem());$q(this.system,n),t&&this.buildSystem(),Qq.call(this.system,e,this.getSystem())&&this.buildSystem()}buildSystem(e=!0){let t=this.getStore().dispatch,n=this.getStore().getState;this.boundSystem=Object.assign({},this.getRootInjects(),this.getWrappedAndBoundActions(t),this.getWrappedAndBoundSelectors(n,this.getSystem),this.getStateThunks(n),this.getFn(),this.getConfigs()),e&&this.rebuildReducer()}_getSystem(){return this.boundSystem}getRootInjects(){return Object.assign({getSystem:this.getSystem,getStore:this.getStore.bind(this),getComponents:this.getComponents.bind(this),getState:this.getStore().getState,getConfigs:this._getConfigs.bind(this),Im:Q,React:B.default},this.system.rootInjects||{})}_getConfigs(){return this.system.configs}getConfigs(){return{configs:this.system.configs}}setConfigs(e){this.system.configs=e}rebuildReducer(){this.store.replaceReducer(function(e,t){return function(e,t){let n=Object.keys(e).reduce(((n,r)=>(n[r]=function(e,t){return(n=new Q.Map,r)=>{if(!e)return n;let i=e[r.type];if(i){let e=eJ(i,t)(n,r);return e===null?n:e}return n}}(e[r],t),n)),{});return Object.keys(n).length?function(e){return(t=(0,Q.Map)(),n)=>Object.keys(e).reduce(((t,r)=>{let i=(0,e[r])(t.get(r),n);return t.set(r,i)}),t)}(n):Yq}(kq(e,(e=>e.reducers)),t)}(this.system.statePlugins,this.getSystem))}getType(e){let t=e[0].toUpperCase()+e.slice(1);return Aq(this.system.statePlugins,((n,r)=>{let i=n[e];if(i)return{[r+t]:i}}))}getSelectors(){return this.getType(`selectors`)}getActions(){return kq(this.getType(`actions`),(e=>Aq(e,((e,t)=>{if(wq(e))return{[t]:e}}))))}getWrappedAndBoundActions(e){return kq(this.getBoundActions(e),((e,t)=>{let n=this.system.statePlugins[t.slice(0,-7)].wrapActions;return n?kq(e,((e,t)=>{let r=n[t];return r?(Array.isArray(r)||(r=[r]),r.reduce(((e,t)=>{let n=(...n)=>t(e,this.getSystem())(...n);if(!wq(n))throw TypeError(`wrapActions needs to return a function that returns a new function (ie the wrapped action)`);return eJ(n,this.getSystem)}),e||Function.prototype)):e})):e}))}getWrappedAndBoundSelectors(e,t){return kq(this.getBoundSelectors(e,t),((t,n)=>{let r=[n.slice(0,-9)],i=this.system.statePlugins[r].wrapSelectors;return i?kq(t,((t,n)=>{let a=i[n];return a?(Array.isArray(a)||(a=[a]),a.reduce(((t,n)=>{let i=(...i)=>n(t,this.getSystem())(e().getIn(r),...i);if(!wq(i))throw TypeError(`wrapSelector needs to return a function that returns a new function (ie the wrapped action)`);return i}),t||Function.prototype)):t})):t}))}getStates(e){return Object.keys(this.system.statePlugins).reduce(((t,n)=>(t[n]=e.get(n),t)),{})}getStateThunks(e){return Object.keys(this.system.statePlugins).reduce(((t,n)=>(t[n]=()=>e().get(n),t)),{})}getFn(){return{fn:this.system.fn}}getComponents(e){let t=this.system.components[e];return Array.isArray(t)?t.reduce(((e,t)=>t(e,this.getSystem()))):e===void 0?this.system.components:this.system.components[e]}getBoundSelectors(e,t){return kq(this.getSelectors(),((n,r)=>{let i=[r.slice(0,-9)];return kq(n,(n=>(...r)=>{let a=eJ(n,this.getSystem).apply(null,[e().getIn(i),...r]);return typeof a==`function`&&(a=eJ(a,this.getSystem)(t())),a}))}))}getBoundActions(e){e||=this.getStore().dispatch;let t=this.getActions(),n=e=>typeof e==`function`?(...t)=>{var n=null;try{n=e(...t)}catch(e){n={type:ZK,error:!0,payload:(0,zl.serializeError)(e)}}finally{return n}}:kq(e,(e=>n(e)));return kq(t,(t=>ci(n(t),e)))}getMapStateToProps(){return()=>Object.assign({},this.getSystem())}getMapDispatchToProps(e){return t=>XK()({},this.getWrappedAndBoundActions(t),this.getFn(),e)}};function Zq(e,t){return Tq(e)&&!Dq(e)?(0,Bl.default)({},e):Eq(e)?Zq(e(t),t):Dq(e)?e.map((e=>Zq(e,t))).reduce($q,{components:t.getComponents()}):{}}function Qq(e,t,{hasLoaded:n}={}){let r=n;return Tq(e)&&!Dq(e)&&typeof e.afterLoad==`function`&&(r=!0,eJ(e.afterLoad,t.getSystem).call(this,t)),Eq(e)?Qq.call(this,e(t),t,{hasLoaded:r}):Dq(e)?e.map((e=>Qq.call(this,e,t,{hasLoaded:r}))):r}function $q(e={},t={}){if(!Tq(e))return{};if(!Tq(t))return e;t.wrapComponents&&(kq(t.wrapComponents,((n,r)=>{let i=e.components&&e.components[r];i&&Array.isArray(i)?(e.components[r]=i.concat([n]),delete t.wrapComponents[r]):i&&(e.components[r]=[i,n],delete t.wrapComponents[r])})),Object.keys(t.wrapComponents).length||delete t.wrapComponents);let{statePlugins:n}=e;if(Tq(n))for(let e in n){let r=n[e];if(!Tq(r))continue;let{wrapActions:i,wrapSelectors:a}=r;if(Tq(i))for(let n in i){let r=i[n];Array.isArray(r)||(r=[r],i[n]=r),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapActions&&t.statePlugins[e].wrapActions[n]&&(t.statePlugins[e].wrapActions[n]=i[n].concat(t.statePlugins[e].wrapActions[n]))}if(Tq(a))for(let n in a){let r=a[n];Array.isArray(r)||(r=[r],a[n]=r),t&&t.statePlugins&&t.statePlugins[e]&&t.statePlugins[e].wrapSelectors&&t.statePlugins[e].wrapSelectors[n]&&(t.statePlugins[e].wrapSelectors[n]=a[n].concat(t.statePlugins[e].wrapSelectors[n]))}}return XK()(e,t)}function eJ(e,t,{logErrors:n=!0}={}){return typeof e==`function`?function(...r){try{return e.call(this,...r)}catch(e){if(n){let{uncaughtExceptionHandler:n}=t().getConfigs();typeof n==`function`?n(e):console.error(e)}return null}}:e}var tJ=e=>{e.preventDefault();let t=e.currentTarget.closest(`.swagger-ui`)?.querySelector(`#operations`);t&&(t.focus(),t.scrollIntoView())},nJ=()=>B.createElement(`a`,{href:`#operations`,className:`swagger-ui__skip-link`,onClick:tJ},`Skip to operations`),rJ=()=>({components:{SkipToOperations:nJ}}),iJ=`show_popup`,aJ=`authorize`,oJ=`logout`,sJ=`authorize_oauth2`,cJ=`configure_auth`,lJ=`restore_authorization`;function uJ(e){return{type:iJ,payload:e}}function dJ(e){return{type:aJ,payload:e}}var fJ=e=>({authActions:t})=>{t.authorize(e),t.persistAuthorizationIfNeeded()};function pJ(e){return{type:oJ,payload:e}}var mJ=e=>({authActions:t})=>{t.logout(e),t.persistAuthorizationIfNeeded()},hJ=e=>({authActions:t,errActions:n})=>{let{auth:r,token:i,isValid:a}=e,{schema:o,name:s}=r,c=o.get(`flow`);delete dq.swaggerUIRedirectOauth2,c===`accessCode`||a||n.newAuthErr({authId:s,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?n.newAuthErr({authId:s,source:`auth`,level:`error`,message:JSON.stringify(i)}):t.authorizeOauth2WithPersistOption({auth:r,token:i})};function gJ(e){return{type:sJ,payload:e}}var _J=e=>({authActions:t})=>{t.authorizeOauth2(e),t.persistAuthorizationIfNeeded()},vJ=e=>({authActions:t})=>{let{schema:n,name:r,username:i,password:a,passwordType:o,clientId:s,clientSecret:c}=e,l={grant_type:`password`,scope:e.scopes.join(` `),username:i,password:a},u={};switch(o){case`request-body`:(function(e,t,n){t&&Object.assign(e,{client_id:t}),n&&Object.assign(e,{client_secret:n})})(l,s,c);break;case`basic`:u.Authorization=`Basic `+Nq(s+`:`+c);break;default:console.warn(`Warning: invalid passwordType ${o} was passed, not including client id and secret`)}return t.authorizeRequest({body:Fq(l),url:n.get(`tokenUrl`),name:r,headers:u,query:{},auth:e})},yJ=e=>({authActions:t})=>{let{schema:n,scopes:r,name:i,clientId:a,clientSecret:o}
262=e,s={Authorization:`Basic `+Nq(a+`:`+o)},c={grant_type:`client_credentials`,scope:r.join(` `)};return t.authorizeRequest({body:Fq(c),name:i,url:n.get(`tokenUrl`),auth:e,headers:s})},bJ=({auth:e,redirectUrl:t})=>({authActions:n})=>{let{schema:r,name:i,clientId:a,clientSecret:o,codeVerifier:s}=e,c={grant_type:`authorization_code`,code:e.code,client_id:a,client_secret:o,redirect_uri:t,code_verifier:s};return n.authorizeRequest({body:Fq(c),name:i,url:r.get(`tokenUrl`),auth:e})},xJ=({auth:e,redirectUrl:t})=>({authActions:n})=>{let{schema:r,name:i,clientId:a,clientSecret:o,codeVerifier:s}=e,c={Authorization:`Basic `+Nq(a+`:`+o)},l={grant_type:`authorization_code`,code:e.code,client_id:a,redirect_uri:t,code_verifier:s};return n.authorizeRequest({body:Fq(l),name:i,url:r.get(`tokenUrl`),auth:e,headers:c})},SJ=e=>({fn:t,getConfigs:n,authActions:r,errActions:i,oas3Selectors:a,specSelectors:o,authSelectors:s})=>{let c,{body:l,query:u={},headers:d={},name:f,url:p,auth:m}=e,{additionalQueryStringParams:h}=s.getConfigs()||{};if(o.isOAS3()){let e=a.serverEffectiveValue(a.selectedServer());c=(0,Wl.default)(p,e,!0)}else c=(0,Wl.default)(p,o.url(),!0);typeof h==`object`&&(c.query=Object.assign({},c.query,h));let g=c.toString(),_=Object.assign({Accept:`application/json, text/plain, */*`,"Content-Type":`application/x-www-form-urlencoded`,"X-Requested-With":`XMLHttpRequest`},d);t.fetch({url:g,method:`post`,headers:_,query:u,body:l,requestInterceptor:n().requestInterceptor,responseInterceptor:n().responseInterceptor}).then((function(e){let t=JSON.parse(e.data),n=t&&(t.error||``),a=t&&(t.parseError||``);e.ok?n||a?i.newAuthErr({authId:f,level:`error`,source:`auth`,message:JSON.stringify(t)}):r.authorizeOauth2WithPersistOption({auth:m,token:t}):i.newAuthErr({authId:f,level:`error`,source:`auth`,message:e.statusText})})).catch((e=>{let t=Error(e).message;if(e.response&&e.response.data){let n=e.response.data;try{let e=typeof n==`string`?JSON.parse(n):n;e.error&&(t+=`, error: ${e.error}`),e.error_description&&(t+=`, description: ${e.error_description}`)}catch{}}i.newAuthErr({authId:f,level:`error`,source:`auth`,message:t})}))};function CJ(e){return{type:cJ,payload:e}}function wJ(e){return{type:lJ,payload:e}}var TJ=()=>({authSelectors:e,getConfigs:t})=>{if(!t().persistAuthorization)return;let n=e.authorized().toJS();localStorage.setItem(`authorized`,JSON.stringify(n))},EJ=(e,t)=>()=>{dq.swaggerUIRedirectOauth2=t,dq.open(e)},DJ={[iJ]:(e,{payload:t})=>e.set(`showDefinitions`,t),[aJ]:(e,{payload:t})=>{let n=(0,Q.fromJS)(t),r=e.get(`authorized`)||(0,Q.Map)();return n.entrySeq().forEach((([t,n])=>{if(!Eq(n.getIn))return e.set(`authorized`,r);let i=n.getIn([`schema`,`type`]);if(i===`apiKey`||i===`http`)r=r.set(t,n);else if(i===`basic`){let e=n.getIn([`value`,`username`]),i=n.getIn([`value`,`password`]);r=r.setIn([t,`value`],{username:e,header:`Basic `+Nq(e+`:`+i)}),r=r.setIn([t,`schema`],n.get(`schema`))}})),e.set(`authorized`,r)},[sJ]:(e,{payload:t})=>{let n,{auth:r,token:i}=t;r.token=Object.assign({},i),n=(0,Q.fromJS)(r);let a=e.get(`authorized`)||(0,Q.Map)();return a=a.set(n.get(`name`),n),e.set(`authorized`,a)},[oJ]:(e,{payload:t})=>{let n=e.get(`authorized`).withMutations((e=>{t.forEach((t=>{e.delete(t)}))}));return e.set(`authorized`,n)},[cJ]:(e,{payload:t})=>e.set(`configs`,t),[lJ]:(e,{payload:t})=>e.set(`authorized`,(0,Q.fromJS)(t.authorized))},OJ=e=>e,kJ=ru(OJ,(e=>e.get(`showDefinitions`))),AJ=ru(OJ,(()=>({specSelectors:e})=>{let t=e.securityDefinitions()||(0,Q.Map)({}),n=(0,Q.List)();return t.entrySeq().forEach((([e,t])=>{let r=(0,Q.Map)();r=r.set(e,t),n=n.push(r)})),n})),jJ=(e,t)=>({specSelectors:e})=>(0,Q.List)(e.isOAS3()?[`components`,`securitySchemes`,t]:[`securityDefinitions`,t]),MJ=(e,t)=>({specSelectors:e})=>{console.warn(`WARNING: getDefinitionsByNames is deprecated and will be removed in the next major version.`);let n=e.securityDefinitions(),r=(0,Q.List)();return t.valueSeq().forEach((e=>{let t=(0,Q.Map)();e.entrySeq().forEach((([e,r])=>{let i,a=n.get(e);a.get(`type`)===`oauth2`&&r.size&&(i=a.get(`scopes`),i.keySeq().forEach((e=>{r.contains(e)||(i=i.delete(e))})),a=a.set(`allowedScopes`,i)),t=t.set(e,a)})),r=r.push(t)})),r},NJ=(e,t=(0,Q.List)())=>({authSelectors:e})=>{let n=e.definitionsToAuthorize()||(0,Q.List)(),r=(0,Q.List)();
262return n.forEach((e=>{let n=t.find((t=>t.get(e.keySeq().first())));n&&(e.forEach(((t,r)=>{if(t.get(`type`)===`oauth2`){let i=n.get(r),a=t.get(`scopes`);Q.List.isList(i)&&Q.Map.isMap(a)&&(a.keySeq().forEach((e=>{i.contains(e)||(a=a.delete(e))})),e=e.set(r,t.set(`scopes`,a)))}})),r=r.push(e))})),r},PJ=ru(OJ,(e=>e.get(`authorized`)||(0,Q.Map)())),FJ=(e,t)=>({authSelectors:e})=>{let n=e.authorized();return Q.List.isList(t)?!!t.toJS().filter((e=>Object.keys(e).map((e=>!!n.get(e))).indexOf(!1)===-1)).length:null},IJ=ru(OJ,(e=>e.get(`configs`))),LJ=(e,{authSelectors:t,specSelectors:n})=>({path:r,method:i,operation:a,extras:o})=>e({path:r,method:i,operation:a,securities:{authorized:t.authorized()&&t.authorized().toJS(),definitions:n.securityDefinitions()&&n.securityDefinitions().toJS(),specSecurity:n.security()&&n.security().toJS()},...o}),RJ=(e,t)=>n=>{let{getConfigs:r,authActions:i}=t,a=r();if(e(n),a.persistAuthorization){let e=localStorage.getItem(`authorized`);e&&i.restoreAuthorization({authorized:JSON.parse(e)})}},zJ=(e,t)=>n=>{if(e(n),t.getConfigs().persistAuthorization)try{let[{schema:e,value:t}]=Object.values(n),r=(0,Q.fromJS)(e),i=r.get(`type`)===`apiKey`,a=r.get(`in`)===`cookie`;i&&a&&(document.cookie=`${r.get(`name`)}=${t}; SameSite=None; Secure`)}catch(e){console.error(`Error persisting cookie based apiKey in document.cookie.`,e)}},BJ=(e,t)=>n=>{let r=t.getConfigs(),i=t.authSelectors.authorized();try{r.persistAuthorization&&Array.isArray(n)&&n.forEach((e=>{let t=i.get(e,{}),n=t.getIn([`schema`,`type`])===`apiKey`,r=t.getIn([`schema`,`in`])===`cookie`;if(n&&r){let e=t.getIn([`schema`,`name`]);document.cookie=`${e}=; Max-Age=-99999999`}}))}catch(e){console.error(`Error deleting cookie based apiKey from document.cookie.`,e)}e(n)},VJ=class extends B.Component{mapStateToProps(e,t){return{state:e,ownProps:(0,Dn.default)(t,Object.keys(t.getSystem()))}}render(){let{getComponent:e,ownProps:t}=this.props,n=e(`LockIcon`);return B.createElement(n,t)}},HJ=class extends B.Component{mapStateToProps(e,t){return{state:e,ownProps:(0,Dn.default)(t,Object.keys(t.getSystem()))}}render(){let{getComponent:e,ownProps:t}=this.props,n=e(`UnlockIcon`);return B.createElement(n,t)}};function UJ(){return{afterLoad(e){this.rootInjects=this.rootInjects||{},this.rootInjects.initOAuth=e.authActions.configureAuth,this.rootInjects.preauthorizeApiKey=GJ.bind(null,e),this.rootInjects.preauthorizeBasic=WJ.bind(null,e)},components:{LockAuthIcon:VJ,UnlockAuthIcon:HJ,LockAuthOperationIcon:VJ,UnlockAuthOperationIcon:HJ},statePlugins:{auth:{reducers:DJ,actions:OK,selectors:kK,wrapActions:{authorize:zJ,logout:BJ}},configs:{wrapActions:{loaded:RJ}},spec:{wrapActions:{execute:LJ}}}}}function WJ(e,t,n,r){let{authActions:{authorize:i},specSelectors:{specJson:a,isOAS3:o}}=e,s=o()?[`components`,`securitySchemes`]:[`securityDefinitions`],c=a().getIn([...s,t]);return c?i({[t]:{value:{username:n,password:r},schema:c.toJS()}}):null}function GJ(e,t,n){let{authActions:{authorize:r},specSelectors:{specJson:i,isOAS3:a}}=e,o=a()?[`components`,`securitySchemes`]:[`securityDefinitions`],s=i().getIn([...o,t]);return s?r({[t]:{value:n,schema:s.toJS()}}):null}var KJ=`configs_update`,qJ=`configs_toggle`;function JJ(e,t){return{type:KJ,payload:{[e]:t}}}function YJ(e){return{type:qJ,payload:e}}var XJ=()=>()=>{},ZJ=e=>t=>{let{fn:{fetch:n}}=t;return n(e)},QJ=(e,t)=>n=>{let{specActions:r,configsActions:i}=n;if(e)return i.downloadConfig(e).then(a,a);function a(i){i instanceof Error||i.status>=400?(r.updateLoadingStatus(`failedConfig`),r.updateLoadingStatus(`failedConfig`),r.updateUrl(``),console.error(i.statusText+` `+e.url),t(null)):t(((e,t)=>{try{return Ed.load(e)}catch(e){return t&&t.errActions.newThrownErr(Error(e)),{}}})(i.text,n))}},$J=(e,t)=>e.getIn(Array.isArray(t)?t:[t]),eY={[KJ]:(e,t)=>e.merge((0,Q.fromJS)(t.payload)),[qJ]:(e,t)=>{let n=t.payload,r=e.get(n);return e.set(n,!r)}};function tY(){return{statePlugins:{configs:{reducers:eY,actions:AK,selectors:jK}}}}var nY=e=>e?history.pushState(null,null,`#${e}`):window.location.hash=``,rY=`layout_scroll_to`,iY=`layout_clear_scroll`,aY=`layout_scroll_to_virtualized_schema`,oY=`layout_clear_scroll_to_virtualized_schema`,sY=`layout_scroll_to_virtualized_o
262peration`,cY=`layout_clear_scroll_to_virtualized_operation`,lY={fn:{getScrollParent:function(e,t=!1){let n=t?[`auto`,`scroll`,`hidden`]:[`auto`,`scroll`],r=e=>{let t=window.getComputedStyle(e),r=t.overflowY,i=t.overflowX;return n.includes(r)||n.includes(i)},i=window.getComputedStyle(e);if(i.position===`fixed`)return document.documentElement;let a=i.position===`absolute`,o=e.parentElement;for(;o!==null;){let e=window.getComputedStyle(o);if(a&&e.position===`static`)o=o.parentElement;else{if(r(o))return o;o=o.parentElement}}return document.documentElement}},statePlugins:{layout:{actions:{scrollToElement:(e,t)=>n=>{try{let r=t||n.fn.getScrollParent(e);np.default.createScroller(r).to(e)}catch(e){console.error(e)}},scrollTo:e=>({type:rY,payload:Array.isArray(e)?e:[e]}),clearScrollTo:()=>({type:iY}),readyToScroll:(e,t)=>n=>{let r=n.layoutSelectors.getScrollToKey();(0,Q.is)(r,(0,Q.fromJS)(e))&&(n.layoutActions.scrollToElement(t),n.layoutActions.clearScrollTo())},parseDeepLinkHash:e=>({layoutActions:t,layoutSelectors:n,getConfigs:r})=>{if(r().deepLinking&&e){let r=e.slice(1);r.startsWith(`!`)&&(r=r.slice(1)),r.startsWith(`/`)&&(r=r.slice(1));let i=r.split(`/`).map((e=>e||``)),a=n.isShownKeyFromUrlHashArray(i),[o,s=``,c=``]=a;if(o===`operations`){let e=n.isShownKeyFromUrlHashArray([s]);s.includes(`_`)&&(console.error("Deprecated: escaping deep link whitespace with `_` is unsupported and will be removed in a future 5.x release. Use `%20` instead."),t.show(e.map((e=>e.replace(/_/g,` `))),!0)),t.show(e,!0)}(s.includes(`_`)||c.includes(`_`))&&(console.error("Deprecated: escaping deep link whitespace with `_` is unsupported and will be removed in a future 5.x release. Use `%20` instead."),t.show(a.map((e=>e.replace(/_/g,` `))),!0)),t.show(a,!0),t.scrollTo(a),t.scrollToVirtualizedOperation(a)}},scrollToVirtualizedSchema:e=>({type:aY,payload:e}),clearScrollToVirtualizedSchema:()=>({type:oY}),scrollToVirtualizedOperation:e=>({type:sY,payload:e}),clearScrollToVirtualizedOperation:()=>({type:cY})},selectors:{getScrollToKey:e=>e.get(`scrollToKey`),getScrollToVirtualizedSchema:e=>e.get(`scrollToVirtualizedSchema`),getScrollToVirtualizedOperation:e=>e.get(`scrollToVirtualizedOperation`),isShownKeyFromUrlHashArray(e,t){let[n,r]=t;return r?[`operations`,n,r]:n?[`operations-tag`,n]:[]},urlHashArrayFromIsShownKey(e,t){let[n,r,i]=t;return n===`operations`?[r,i]:n===`operations-tag`?[r]:[]}},reducers:{[rY]:(e,t)=>e.set(`scrollToKey`,(0,Q.fromJS)(t.payload)),[iY]:e=>e.delete(`scrollToKey`),[aY]:(e,t)=>e.set(`scrollToVirtualizedSchema`,t.payload),[oY]:e=>e.delete(`scrollToVirtualizedSchema`),[sY]:(e,t)=>e.set(`scrollToVirtualizedOperation`,(0,Q.fromJS)(t.payload)),[cY]:e=>e.delete(`scrollToVirtualizedOperation`)},wrapActions:{show:(e,{getConfigs:t,layoutSelectors:n})=>(...r)=>{if(e(...r),t().deepLinking)try{let[e,t]=r,i=Array.isArray(e)?e:[e],a=n.urlHashArrayFromIsShownKey(i);if(!a.length)return;let[o,s]=a;if(!t)return void nY(`/`);a.length===2?nY(Rq(`/${encodeURIComponent(o)}/${encodeURIComponent(s)}`)):a.length===1&&nY(Rq(`/${encodeURIComponent(o)}`))}catch(e){console.error(e)}}}}}},uY=(e,t)=>class extends B.Component{onLoad=e=>{let{operation:n}=this.props,{tag:r,operationId:i}=n.toObject(),{isShownKey:a}=n.toObject();a||=[`operations`,r,i],t.layoutActions.readyToScroll(a,e)};render(){return B.createElement(`span`,{ref:this.onLoad},B.createElement(e,this.props))}},dY=(e,t)=>class extends B.Component{onLoad=e=>{let{tag:n}=this.props,r=[`operations-tag`,n];t.layoutActions.readyToScroll(r,e)};render(){return B.createElement(`span`,{ref:this.onLoad},B.createElement(e,this.props))}};function fY(){return[lY,{statePlugins:{configs:{wrapActions:{loaded:(e,t)=>(...n)=>{e(...n);let r=decodeURIComponent(window.location.hash);t.layoutActions.parseDeepLinkHash(r)}}}},wrapComponents:{operation:uY,OperationTag:dY}}]}function pY(e){return e.map((e=>{let t=e.get(`message`).indexOf(`is not of a type(s)`);if(t>-1){let n=e.get(`message`).slice(t+19).split(`,`);return e.set(`message`,e.get(`message`).slice(0,t)+function(e){return e.reduce(((e,t,n,r)=>n===r.length-1&&r.length>1?e+`or `+t:r[n+1]&&r.length>2?e+t+`, `:r[n+1]?e+t+` `:e+t),`should be a`)}(n))}return e}))}function mY(e,{jsSpec:t}){return e}var hY=[MK,NK];function gY(e){let t={jsSpec:{}};return(0,ip.default)(hY,((e,n)=>{try{return n.transform(e,t).filter((e=>!!e))}catch(t){return console.error(`Transformer error:`,t),e}}),e).filter((e=>!!e)).map((e=>(!e.get(`line`)&&e.get(`path`),e)))}var _Y={line:0,level:`error`,message:`Unknown error`},vY=ru((e=>e),(e=>e.get(`errors`,(0,Q.List)()))),yY=ru(vY,(e=>e.last()));function bY(e){return{statePlugins:{err:{reducers:{[ZK]:(e,{payload:t})=>{let n=Object.assign(_Y,t,{type:`thrown`});return e.update(`errors`,(e=>(e||(0,Q.List)()).push((0,Q.fromJS)(n)))).update(`errors`,(e=>gY(e)))},[QK]:(e,{payload:t})=>(t=t.map((e=>(0,Q.fromJS)(Object.assign(_Y,e,{type:`thrown`})))),e.update(`errors`,(e=>(e||(0,Q.List)()).concat((0,Q.fromJS)(t)))).update(`errors`,(e=>gY(e)))),[$K]:(e,{payload:t})=>{let n=(0,Q.fromJS)(t);return n=n.set(`type`,`spec`),e.update(`errors`,(e=>(e||(0,Q.List)()).push((0,Q.fromJS)(n)).sortBy((e=>e.get(`line`))))).update(`errors`,(e=>gY(e)))},[eq]:(e,{payload:t})=>(t=t.map((e=>(0,Q.fromJS)(Object.assign(_Y,e,{type:`spec`})))),e.update(`errors`,(e=>(e||(0,Q.List)()).concat((0,Q.fromJS)(t)))).update(`errors`,(e=>gY(e)))),[tq]:(e,{payload:t})=>{let n=(0,Q.fromJS)(Object.assign({},t));return n=n.set(`type`,`auth`),e.update(`errors`,(e=>(e||(0,Q.List)()).push((0,Q.fromJS)(n)))).update(`errors`,(e=>gY(e)))},[nq]:(e,{payload:t})=>{if(!t||!e.get(`errors`))return e;let n=e.get(`errors`).filter((e=>e.keySeq().every((n=>{let r=e.get(n),i=t[n];return!i||r!==i}))));return e.merge({errors:n})},[rq]:(e,{payload:t})=>{if(!t||typeof t!=`function`)return e;let n=e.get(`errors`).filter((e=>t(e)));return e.merge({errors:n})}},actions:DK,selectors:PK}}}}function xY(e,t){return e.filter(((e,n)=>n.indexOf(t)!==-1))}function SY(){return{fn:{opsFilter:xY}}}var CY=({className:e=null,width:t=20,height:n=20,...r})=>B.createElement(`svg`,sp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),B.createElement(`path`,{fill:`currentColor`,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`})),wY=({className:e=null,width:t=20,height:n=20,...r})=>B.createElement(`svg`,sp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),B.createElement(`path`,{fill:`currentColor`,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`})),TY=({className:e=null,width:t=20,height:n=20,...r})=>B.createElement(`svg`,sp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),B.createElement(`path`,{fill:`currentColor`,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`})),EY=({className:e=null,width:t=20,height:n=20,...r})=>B.createElement(`svg`,sp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),B.createElement(`path`,{fill:`currentColor`,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`})),DY=({className:e=null,width:t=20,height:n=20,...r})=>B.createElement(`svg`,sp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),B.createElement(`path`,{fill:`currentColor`,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`})),OY=({className:e=null,width:t=20,height:n=20,...r})=>B.createElement(`svg`,sp({xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,className:e,width:t,height:n,"aria-hidden":`true`,focusable:`false`},r),B.createElement(`path`,{fill:`currentColor`,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`})),kY=()=>({components:{ArrowUpIcon:CY,ArrowDownIcon:wY,ArrowIcon:TY,CloseIcon:EY,LockIcon:DY,UnlockIcon:OY}}),AY=`layout_update_layout`,jY=`layout_update_filter`,MY=`layout_update_mode`,NY=`layout_show`;function PY(e){return{type:AY,payload:e}}function FY(e){return{type:jY,payload:e}}function IY(e,t=!0){return e=Cq(e),{type:NY,payload:{thing:e,shown:t}}}function LY(e,t=``){return e=Cq(e),{type:MY,payload:{thing:e,mode:t}}}var RY={[AY]:(e,t)=>e.set(`layout`,t.payload),[jY]:(e,t)=>e.set(`filter`,t.payload),[NY]:(e,t)=>{let n=t.payload.shown,r=(0,Q.fromJS)(t.payload.thing);return e.update(`shown`,(0,Q.fromJS)({}),(e=>e.set(r,n)))},[MY]:(e,t)=>{let n=t.payload.thing,r=t.payload.mode;return e.setIn([`modes`].concat(n),(r||``)+``)}},zY=e=>e.get(`layout`),BY=e=>e.get(`filter`),VY=(e,t,n)=>(t=Cq(t),e.get(`shown`,(0,Q.fromJS)({})).get((0,Q.fromJS)(t),n)),HY=(e,t,n=``)=>(t=Cq(t),e.getIn([`modes`,...t],n)),UY=ru((e=>e),(e=>!VY(e,`editor`))),WY=(e,t)=>
262(n,...r)=>{let i=e(n,...r),{fn:a,layoutSelectors:o,getConfigs:s}=t.getSystem(),{maxDisplayedTags:c}=s(),l=o.currentFilter();return l&&!0!==l&&(i=a.opsFilter(i,l)),c>=0&&(i=i.slice(0,c)),i};function GY(){return{statePlugins:{layout:{reducers:RY,actions:FK,selectors:IK},spec:{wrapSelectors:LK}}}}function KY({configs:e}){let t={debug:0,info:1,log:2,warn:3,error:4},n=e=>t[e]||-1,{logLevel:r}=e,i=n(r);function a(e,...t){n(e)>=i&&console[e](...t)}return a.warn=a.bind(null,`warn`),a.error=a.bind(null,`error`),a.info=a.bind(null,`info`),a.debug=a.bind(null,`debug`),{rootInjects:{log:a}}}var qY=!1;function JY(){return{statePlugins:{spec:{wrapActions:{updateSpec:e=>(...t)=>(qY=!0,e(...t)),updateJsonSpec:(e,t)=>(...n)=>{let r=t.getConfigs().onComplete;return qY&&typeof r==`function`&&(setTimeout(r,0),qY=!1),e(...n)}}}}}}var YY=e=>{let t=`_**[]`;return e.indexOf(t)<0?e:e.split(t)[0].trim()},XY=e=>e===`-d `||/^[_\/-]/g.test(e)?e:`'`+e.replace(/'/g,`'\\''`)+`'`,ZY=e=>(e=e.replace(/\^/g,`^^`).replace(/\\"/g,`\\\\"`).replace(/"/g,`""`).replace(/\n/g,`^ 263`))===`-d `?e.replace(/-d /g,`-d ^ 264`):/^[_\/-]/g.test(e)?e:`"`+e+`"`,QY=e=>e===`-d `?e:/\n/.test(e)?`@"\n${e.replace(/`/g,"``").replace(/\$/g,"`$")}\n"@`:/^[_\/-]/.test(e)?e:`'${e.replace(/'/g,`''`)}'`,$Y=(e,t,n,r=``)=>{let i=!1,a=``,o=(...e)=>a+=` `+e.map(t).join(` `),s=(...e)=>a+=e.map(t).join(` `),c=()=>a+=` ${n}`,l=(e=1)=>a+=` `.repeat(e),u=e.get(`headers`);a+=`curl`+r;let d=e.get(`curlOptions`);if(Q.List.isList(d)&&!d.isEmpty()&&o(...e.get(`curlOptions`)),o(`-X`,e.get(`method`)),c(),l(),s(`${e.get(`url`)}`),u&&u.size)for(let t of e.get(`headers`).entries()){c(),l();let[e,n]=t;s(`-H`,`${e}: ${n}`),i||=/^content-type$/i.test(e)&&/^multipart\/form-data$/i.test(n)}let f=e.get(`body`);if(f){if(i&&[`POST`,`PUT`,`PATCH`].includes(e.get(`method`)))for(let[e,t]of f.entrySeq()){let n=YY(e);c(),l(),s(`-F`),t instanceof dq.File&&typeof t.valueOf()==`string`?o(`${n}=${t.data}${t.type?`;type=${t.type}`:``}`):t instanceof dq.File?o(`${n}=@${t.name}${t.type?`;type=${t.type}`:``}`):o(`${n}=${t}`)}else if(f instanceof dq.File)c(),l(),s(`--data-binary '@${f.name}'`);else{c(),l(),s(`-d `);let t=f;Q.Map.isMap(t)?s(function(e){let t=[];for(let[n,r]of e.get(`body`).entrySeq()){let e=YY(n);r instanceof dq.File?t.push(` "${e}": {\n "name": "${r.name}"${r.type?`,\n "type": "${r.type}"`:``}\n }`):t.push(` "${e}": ${JSON.stringify(r,null,2).replace(/(\r\n|\r|\n)/g,` 265 `)}`)}return`{\n${t.join(`, 266`)}\n}`}(e)):(typeof t!=`string`&&(t=JSON.stringify(t)),s(t))}}else f||e.get(`method`)!==`POST`||(c(),l(),s(`-d ''`));return a},eX=e=>$Y(e,QY,`\` 267`,`.exe`),tX=e=>$Y(e,XY,`\\ 268`),nX=e=>$Y(e,ZY,`^ 269`),rX=e=>e||(0,Q.Map)(),iX=ru(rX,(e=>{let t=e.get(`languages`),n=e.get(`generators`,(0,Q.Map)());return!t||t.isEmpty()?n:n.filter(((e,n)=>t.includes(n)))})),aX=e=>({fn:t})=>iX(e).map(((e,n)=>{let r=(e=>t[`requestSnippetGenerator_${e}`])(n);return typeof r==`function`?e.set(`fn`,r):null})).filter((e=>e)),oX=ru(rX,(e=>e.get(`activeLanguage`))),sX=ru(rX,(e=>e.get(`defaultExpanded`))),cX=`Copy request snippet to clipboard`,lX={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`},uX={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`},dX=({request:e,requestSnippetsSelectors:t,getComponent:n})=>{let r=(0,B.useRef)(null),i=n(`ArrowUpIcon`),a=n(`ArrowDownIcon`),o=n(`SyntaxHighlighter`,!0),[s,c]=(0,B.useState)(t.getSnippetGenerators()?.keySeq().first()),[l,u]=(0,B.useState)(t?.getDefaultExpanded()),d=t.getSnippetGenerators(),f=d.get(s),p=f.get(`fn`)(e),m=()=>{u(!l)},h=e=>e===s?uX:lX,g=e=>{let{target:t,deltaY:n}=e,{scrollHeight:r,offsetHeight:i,scrollTop:a}=t;r>i&&(a===0&&n<0||i+a>=r&&n>0)&&e.preventDefault()};return(0,B.useEffect)((()=>{}),[]),(0,B.useEffect)((()=>{let e=Array.from(r.current.childNodes).filter((e=>!!e.nodeType&&e.classList?.contains(`curl-command`)));return e.forEach((e=>e.addEventListener(`mousewheel`,g,{passive:!1}))),()=>{e.forEach((e=>e.removeEventListener(`mousewheel`,g)))}}),[e]),B.createElement(`div`,{className:`request-snippets`,ref:r}
vendor: 4,438 bytes, line 269
269,B.createElement(`div`,{style:{width:`100%`,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,marginBottom:`15px`}},B.createElement(`h4`,{onClick:()=>m(),style:{cursor:`pointer`}},`Snippets`),B.createElement(`button`,{onClick:()=>m(),style:{border:`none`,background:`none`},title:l?`Collapse operation`:`Expand operation`},l?B.createElement(a,{className:`arrow`,width:`10`,height:`10`}):B.createElement(i,{className:`arrow`,width:`10`,height:`10`}))),l&&B.createElement(`div`,{className:`curl-command`},B.createElement(`div`,{style:{paddingLeft:`15px`,paddingRight:`10px`,width:`100%`,display:`flex`}},d.entrySeq().map((([e,t])=>B.createElement(`div`,{className:(0,pp.default)(`btn`,{active:e===s}),style:h(e),key:e,onClick:()=>(e=>{s!==e&&c(e)})(e)},B.createElement(`h4`,{style:e===s?{color:`white`}:{}},t.get(`title`)))))),B.createElement(`div`,{className:`copy-to-clipboard`,title:cX,"aria-label":cX},B.createElement(mp.CopyToClipboard,{text:p},B.createElement(`button`,{"aria-label":cX,title:cX,type:`button`}))),B.createElement(`div`,null,B.createElement(o,{language:f.get(`syntax`),className:`curl microlight`,renderPlainText:({children:e,PlainTextViewer:t})=>B.createElement(t,{className:`curl`},e)},p))))},fX=()=>({components:{RequestSnippets:dX},fn:{requestSnippetGenerator_curl_bash:tX,requestSnippetGenerator_curl_cmd:nX,requestSnippetGenerator_curl_powershell:eX},statePlugins:{requestSnippets:{selectors:RK}}}),pX=class e extends B.Component{static defaultProps={collapsedContent:`{...}`,expanded:!1,title:null,onToggle:()=>{},hideSelfOnExpand:!1,specPath:(0,Q.List)([])};constructor(t,n){super(t,n);let{expanded:r,collapsedContent:i}=this.props;this.state={expanded:r,collapsedContent:i||e.defaultProps.collapsedContent}}componentDidMount(){let{hideSelfOnExpand:e,expanded:t,modelName:n}=this.props;e&&t&&this.props.onToggle(n,t)}UNSAFE_componentWillReceiveProps(e){this.props.expanded!==e.expanded&&this.setState({expanded:e.expanded})}toggleCollapsed=()=>{this.props.onToggle&&this.props.onToggle(this.props.modelName,!this.state.expanded),this.setState({expanded:!this.state.expanded})};onLoad=e=>{if(e&&this.props.layoutSelectors){let t=this.props.layoutSelectors.getScrollToKey();(0,Q.is)(t,this.props.specPath)&&this.toggleCollapsed(),this.props.layoutActions.readyToScroll(this.props.specPath,e.parentElement)}};render(){let{title:e,classes:t}=this.props;return this.state.expanded&&this.props.hideSelfOnExpand?B.createElement(`span`,{className:t||``},this.props.children):B.createElement(`span`,{className:t||``,ref:this.onLoad},B.createElement(`button`,{"aria-expanded":this.state.expanded,className:`model-box-control`,onClick:this.toggleCollapsed},e&&B.createElement(`span`,{className:`pointer`},e),B.createElement(`span`,{className:`model-toggle`+(this.state.expanded?``:` collapsed`)}),!this.state.expanded&&B.createElement(`span`,null,this.state.collapsedContent)),this.state.expanded&&this.props.children)}},mX=({initialTab:e,isExecute:t,schema:n,example:r,specPath:i,layoutActions:a,layoutSelectors:o})=>{let s=(0,B.useMemo)((()=>({example:`example`,model:`model`})),[]),c=(0,B.useMemo)((()=>[...bq(i),`show-model-tab`]),[i]),l=!(e!==s.model||!n||t),u=o.isShown(c,l)?s.model:s.example,d=(e=>{let t=(0,B.useRef)();return(0,B.useEffect)((()=>{t.current=e})),t.current})(t),f=(0,B.useRef)(!0),p=(0,B.useCallback)((e=>{a.show(c,e.target.dataset.name===s.model)}),[a,c,s.model]);return(0,B.useEffect)((()=>{if(f.current)return void(f.current=!1);(!d&&t||d&&!t&&r)&&a.show(c,!1)}),[d,t,r,a,c]),{activeTab:u,onTabChange:p,tabs:s}},hX,gX=({schema:e,example:t,isExecute:n=!1,specPath:r,includeWriteOnly:i=!1,includeReadOnly:a=!1,getComponent:o,getConfigs:s,specSelectors:c,layoutActions:l,layoutSelectors:u})=>{let{defaultModelRendering:d,defaultModelExpandDepth:f}=s(),p=o(`ModelWrapper`),m=o(`HighlightCode`,!0),h=pq()(5).toString(`base64`),g=pq()(5).toString(`base64`),_=pq()(5).toString(`base64`),v=pq()(5).toString(`base64`),y=c.isOAS3(),{activeTab:b,tabs:x,onTabChange:S}=mX({initialTab:d,isExecute:n,schema:e,example:t,specPath:r,layoutActions:l,layoutSelectors:u});return B.createElement(`div`,{className:`model-example`},B.createElement(`ul`,{className:`tab`,role:`tablist`},B.createElement(`li`,{className:(0,pp.default)(`tabitem`,{active:b===x.example}),role:`presentation`},B.createElement(`button`,{"aria-controls":g,"aria-selected":b===x.example,className:`tablinks`,"data-name":`example`,i
269d:h,onClick:S,role:`tab`},n?`Edit Value`:`Example Value`)),e&&B.createElement(`li`,{className:(0,pp.default)(`tabitem`,{active:b===x.model}),role:`presentation`},B.createElement(`button`,{"aria-controls":v,"aria-selected":b===x.model,className:(0,pp.default)(`tablinks`,{inactive:n}),"data-name":`model`,id:_,onClick:S,role:`tab`},y?`Schema`:`Model`))),b===x.example&&B.createElement(`div`,{"aria-hidden":b!==x.example,"aria-labelledby":h,"data-name":`examplePanel`,id:g,role:`tabpanel`,tabIndex:`0`},t||B.createElement(m,null,`(no example available`)),b===x.model&&B.createElement(`div`,{className:`model-container`,"aria-hidden":b===x.example,"aria-labelledby":_,"data-name":`modelPanel`,id:v,role:`tabpanel`,tabIndex:`0`},B.createElement(p,{schema:e,getComponent:o,getConfigs:s,specSelectors:c,expandDepth:f,specPath:r,fullPath:bq(r),layoutActions:l,layoutSelectors:u,includeReadOnly:a,includeWriteOnly:i})))},_X=class extends B.Component{onToggle=(e,t)=>{this.props.layoutActions&&this.props.layoutActions.show(this.props.fullPath,t)};render(){let{getComponent:e,getConfigs:t}=this.props,n=e(`Model`),r;return this.props.layoutSelectors&&(r=this.props.layoutSelectors.isShown(this.props.fullPath)),B.createElement(`div`,{className:`model-box`},B.createElement(n,sp({},this.props,{getConfigs:t,expanded:r,depth:1,onToggle:this.onToggle,expandDepth:this.props.expandDepth||
2690})))}};function vX(){return vX=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vX.apply(null,arguments)}var yX=e=>(0,B.createElement)(`svg`,vX({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),hX||=(0,B.createElement)(`circle`,{cx:50,cy:50,r:35,fill:`none`,stroke:`#555`,strokeDasharray:`164.93361431346415 56.97787143782138`,strokeWidth:10},(0,B.createElement)(`animateTransform`,{attributeName:`transform`,begin:`0s`,calcMode:`linear`,dur:`1s`,keyTimes:`0;1`,repeatCount:`indefinite`,type:`rotate`,values:`0 50 50;360 50 50`}))),bX=e=>{let t=e.replace(/~1/g,`/`).replace(/~0/g,`~`);try{return decodeURIComponent(t)}catch{return t}},xX=class extends Pp{static propTypes={schema:rp.default.map.isRequired,getComponent:Zr.default.func.isRequired,getConfigs:Zr.default.func.isRequired,specSelectors:Zr.default.object.isRequired,name:Zr.default.string,displayName:Zr.default.string,isRef:Zr.default.bool,required:Zr.default.bool,expandDepth:Zr.default.number,depth:Zr.default.number,specPath:rp.default.list.isRequired,includeReadOnly:Zr.default.bool,includeWriteOnly:Zr.default.bool};getModelName=e=>e.indexOf(`#/definitions/`)===-1?e.indexOf(`#/components/schemas/`)===-1?void 0:bX(e.replace(/^.*#\/components\/schemas\//,``)):bX(e.replace(/^.*#\/definitions\//,``));getRefSchema=e=>{let{specSelectors:t}=this.props;return t.findDefinition(e)};render(){let{getComponent:e,getConfigs:t,specSelectors:n,schema:r,required:i,name:a,isRef:o,specPath:s,displayName:c,includeReadOnly:l,includeWriteOnly:u}=this.props,d=e(`ObjectModel`),f=e(`ArrayModel`),p=e(`PrimitiveModel`),m=`object`,h=r&&r.get(`$$ref`),g=r&&r.get(`$ref`);if(!a&&h&&(a=this.getModelName(h)),g){let e=this.getModelName(g),t=this.getRefSchema(e);Q.Map.isMap(t)?(r=t.mergeDeep(r),h||=(r=r.set(`$$ref`,g),g)):Q.Map.isMap(r)&&r.size===1&&(r=null,a=g)}if(!r)return B.createElement(`strong`,{className:`model model-title`},B.createElement(`span`,{className:`model-title__text`},c||a),!g&&B.createElement(yX,{height:`20px`,width:`20px`}));let _=n.isOAS3()&&r.get(`deprecated`);switch(o=o===void 0?!!h:o,m=r&&r.get(`type`)||m,m){case`object`:return B.createElement(d,sp({className:`object`},this.props,{specPath:s,getConfigs:t,schema:r,name:a,deprecated:_,isRef:o,includeReadOnly:l,includeWriteOnly:u}));case`array`:return B.createElement(f,sp({className:`array`},this.props,{getConfigs:t,schema:r,name:a,deprecated:_,required:i,includeReadOnly:l,includeWriteOnly:u}));default:return B.createElement(p,sp({},this.props,{getComponent:e,getConfigs:t,schema:r,name:a,deprecated:_,required:i}))}}},SX=B.memo((({name:e,schema:t,rawSchema:n,isShown:r,specPathBase:i,defaultModelsExpandDepth:a,getComponent:o,specSelectors:s,getConfigs:c,layoutSelectors:l,layoutActions:u,specActions:d,getCollapsedContent:f,handleToggle:p,onLoadModel:m})=>{let h=[...i,e],g=(0,Q.List)(h),_=t.get(`title`)||n.get(`title`)||e;r&&t.size===0&&n.size>0&&d.requestResolvedSubtree(h);let v=o(`ModelWrapper`),y=o(`ModelCollapse`),b=o(`JumpToPath`,!0),x=B.createElement(v,{name:e,expandDepth:a,schema:t||(0,Q.Map)(),displayName:_,fullPath:h,specPath:g,getComponent:o,specSelectors:s,getConfigs:c,layoutSelectors:l,layoutActions:u,includeReadOnly:!0,includeWriteOnly:!0}),S=B.createElement(`span`,{className:`model-box`},B.createElement(`strong`,{className:`model model-title`},_));return B.createElement(`div`,{id:`model-${e}`,className:`model-container`,"data-name":e,ref:m},B.createElement(`span`,{className:`models-jump-to-path`},B.createElement(b,{path:g})),B.createElement(y,{classes:`model-box`,collapsedContent:f(e),onToggle:p,title:S,displayName:_,modelName:e,specPath:g,layoutSelectors:l,layoutActions:u,hideSelfOnExpand:!0,expanded:a>0&&r},x))}),((e,t)=>e.name===t.name&&e.isShown===t.isShown&&e.defaultModelsExpandDepth===t.defaultModelsExpandDepth&&e.specPathBase===t.specPathBase&&(0,Q.is)(e.schema,t.schema)&&(0,Q.is)(e.rawSchema,t.rawSchema)));SX.displayName=`ModelItem`;var CX=SX,wX=({getComponent:e,specSelectors:t,specActions:n,layoutSelectors:r,layoutActions:i,getConfigs:a})=>{let o=t.definitions(),{docExpansion:s,defaultModelsExpandDepth:c}=a(),l=t.isOAS3(),u=(0,B.useMemo)((()=>l?[`components`,`schemas`]:[`definitions`]),[l]),d=(0,B.useCallback)((()=>` `),[]),f=(0,B.useCallback)(((e,t)=>{i.show([...u,e],t),t&&n.requestResolvedSubtree([...u,e])}),[i,n,u]),p=(0,B.useCallback)((e=>{e&&i.readyToScroll(u,e)}),[i,u]),m=(0,B.useCallback)((e=>{if(e){let t=e.getAttribute(`data-name`);i.readyToScroll([...u,t],e)}}),[i,u]),h=(0,B.useMemo)((()=>o.entrySeq().toArray()),[o]),g=(0,B.useRef)(null),_=(0,B.useRef)([]),v=cm({count:h.length,getScrollElement:()=>g.current,estimateSize:()=>71,overscan:5,getItemKey:e=>`models-section-${h[e][0]}`,initialMeasurementsCache:_.current,onChange:e=>{_.current=e.takeSnapshot()}}),y=h.length>=100,b=r.getScrollToVirtualizedSchema();if((0,B.useEffect)((()=>
269{if(!b||!y)return;let e=h.findIndex((([e])=>e===b));e!==-1&&(document.querySelector(`.operations-virtual`)?g.current?.scrollIntoView({behavior:`instant`,block:`start`}):i.scrollToElement(g.current),v.scrollToIndex(e,{align:`start`})),i.clearScrollToVirtualizedSchema()}),[b,h,v,y,i]),!o.size||c<0)return null;let x=r.isShown(u,c>0&&s!==`none`),S=(0,B.useCallback)((()=>{i.show(u,!x)}),[i,u,x]),C=e(`Collapse`),w=e(`ArrowUpIcon`),T=e(`ArrowDownIcon`),E=o=>{let s=[...u,o],l=t.specResolvedSubtree(s),p=t.specJson().getIn(s);return{schema:Q.Map.isMap(l)?l:(0,Q.Map)(),rawSchema:Q.Map.isMap(p)?p:(0,Q.Map)(),isShown:r.isShown(s,!1),specPathBase:u,defaultModelsExpandDepth:c,getComponent:e,specSelectors:t,getConfigs:a,layoutSelectors:r,layoutActions:i,specActions:n,getCollapsedContent:d,handleToggle:f,onLoadModel:m}};return B.createElement(`section`,{className:`${x?`models is-open`:`models`}${y?` models--virtualized`:``}`,ref:p},B.createElement(`h4`,null,B.createElement(`button`,{"aria-expanded":x,className:`models-control`,onClick:S},B.createElement(`span`,null,l?`Schemas`:`Models`),x?B.createElement(w,null):B.createElement(T,null))),B.createElement(C,{isOpened:x},y?B.createElement(`div`,{ref:g,className:`models-scroll`},B.createElement(`div`,{style:{paddingTop:v.getVirtualItems()[0]?.start??0,paddingBottom:v.getTotalSize()-(v.getVirtualItems().at(-1)?.end??0)}},v.getVirtualItems().map((e=>{let[t]=h[e.index];return B.createElement(`div`,{key:e.key,"data-index":e.index,ref:v.measureElement,className:`models-virtual-item`},B.createElement(CX,sp({name:t},E(t))))})))):h.map((([e])=>B.createElement(CX,sp({key:`models-section-${e}`,name:e},E(e)))))))},TX=({value:e,getComponent:t})=>{let n=t(`ModelCollapse`),r=B.createElement(`span`,null,`Array [ `,e.count(),` ]`);return B.createElement(`span`,{className:`prop-enum`},`Enum:`,B.createElement(`br`,null),B.createElement(n,{collapsedContent:r},`[ `,e.map(String).join(`, `),` ]`))};function EX(e){return e.match(/^(?:[a-z]+:)?\/\//i)}function DX(e,t){return e?EX(e)?function(e){return e.match(/^\/\//i)?`${window.location.protocol}${e}`:e}(e):new URL(e,t).href:t}function OX(e,t,{selectedServer:n=``}={}){try{return function(e,t,{selectedServer:n=``}={}){if(!e)return;if(EX(e))return e;let r=DX(n,t);return EX(r)?new URL(e,r).href:new URL(e,window.location.href).href}(e,t,{selectedServer:n})}catch{return}}function kX(e){if(typeof e!=`string`||e.trim()===``)return``;let t=e.trim(),n=`about:blank`;try{let e=`https://base${String(Math.random()).slice(2)}`,r=new URL(t,e),i=r.protocol.slice(0,-1);return[`javascript`,`data`,`vbscript`].includes(i.toLowerCase())?n:r.origin===e?t.startsWith(`/`)?`${r.pathname}${r.search}${r.hash}`:t.startsWith(`./`)||t.startsWith(`../`)?`${t.match(/^(\.\.?\/)+/)[0]}${r.pathname.substring(1)}${r.search}${r.hash}`:`${r.pathname.substring(1)}${r.search}${r.hash}`:String(r)}catch{return n}}var AX=class extends B.Component{handleToggle=(e,t)=>{let{layoutActions:n,specPath:r}=this.props;n?.show(r.toJS(),t)};render(){let{schema:e,name:t,displayName:n,isRef:r,getComponent:i,getConfigs:a,depth:o,specPath:s,...c}=this.props,{specSelectors:l,expandDepth:u,includeReadOnly:d,includeWriteOnly:f,layoutSelectors:p}=c,{isOAS3:m}=l,h=o>2||o===2&&s.last()!==`items`,g=o<=u,_=p?.isShown(s.toJS(),g)??g;if(!e)return null;let{showExtensions:v}=a(),y=v?Vq(e):(0,Q.List)(),b=e.get(`description`),x=e.get(`properties`),S=e.get(`additionalProperties`),C=e.get(`title`)||n||t,w=e.get(`required`),T=e.filter(((e,t)=>[`maxProperties`,`minProperties`,`nullable`,`example`].indexOf(t)!==-1)),E=e.get(`deprecated`),D=e.getIn([`externalDocs`,`url`]),O=e.getIn([`externalDocs`,`description`]),k=i(`JumpToPath`,!0),A=i(`Markdown`,!0),j=i(`Model`),M=i(`ModelCollapse`),N=i(`Property`),P=i(`Link`),F=i(`ModelExtensions`),I=()=>B.createElement(`span`,{className:`model-jump-to-path`},B.createElement(k,{path:s})),L=B.createElement(`span`,null,B.createElement(`span`,null,`{`),`...`,B.createElement(`span`,null,`}`),r?B.createElement(I,null):``),ee=l.isOAS3()?e.get(`allOf`):null,R=l.isOAS3()?e.get(`anyOf`):null,z=l.isOAS3()?e.get(`oneOf`):null,te=l.isOAS3()?e.get(`not`):null,ne=C&&B.createElement(`strong`,{className:`model-title`},r&&e.get(`$$ref`)&&B.createElement(`span`,{className:(0,pp.default)(`model-hint`,{"model-hint--embedded":h})},e.get(`$$ref`)),B.createElement(`span`,{className:`model-title__text`},C));return B.createElement(`span`,{className:`model`},B.createElement(M,{modelName:t,title:ne,onToggle:this.handleToggle,expanded:_,collapsedContent:L},B.createElement(`span`,{className:`brace-open object`},`{`),r?B.createElement(I,null):null,B.createElement(`span`,{className:`inner-object`},B.createElement(`table`,{className:`model`},B.createElement(`tbody`,null,b?B.createElement(`tr`,{className:`description`},B.createElement(`td`,null,`description:`),B.createElement(`td`,null,B.createElement(A,{source:b}))):null,D&&B.createElement(`tr`,{className:`external-docs`},B.createElement(`td`,null,`externalDocs:`),B.createElement(`td`,null,B.createElement(P,{target:`_blank`,href:kX(D)},O||D))),E?B.createElement(`tr`,{className:`property`},B.createElement(`td`,null,`deprecated:`),B.createElement(`td`,null,`true`)):null,x&&x.size?x.entrySeq().filter((([,e])=>(!e.get(`readOnly`)||d)&&(!e.get(`writeOnly`)||f))).map((([e,n])=>{let r=m()&&n.get(`deprecated`),l=Q.List.isList(w)&&w.contains(e),u=[`property-row`];return r&&u.push(`deprecated`),l&&u.push(`required`),B.createElement(`tr`,{key:e,className:u.join(` `)},B.createElement(`td`,null,e,l&&B.createElement(`span`,{className:`star`},`*`)),B.createElement(`td`,null,B.createElement(j,sp({key:`object-${t}-${e}_${n}`},c,{required:l,getComponent:i,specPath:s.push(`properties`,e),getConfigs:a,schema:n,depth:o+1}))))})).toArray():null,y.size===0?null:B.createElement(B.Fragment,null,B.createElement(`tr`,null,B.createElement(`td`,null,`\xA0`)),B.createElement(F,{extensions:y,propClass:`extension`})),S&&S.size?B.createElement(`tr`,null,B.createElement(`td`,null,`< * >:`),B.createElement(`td`,null,B.createElement(j,sp({},c,{required:!1,getComponent:i,specPath:s.push(`additionalProperties`),getConfigs:a,schema:S,depth:o+1})))):null,ee?B.createElement(`tr`,null,B.createElement(`td`,null,`allOf ->`),B.createElement(`td`,null,ee.map(((e,t)=>B.createElement(`div`,{key:t},B.createElement(j,sp({},c,{required:!1,getComponent:i,specPath:s.push(`allOf`,t),getConfigs:a,schema:e,depth:o+1}))))))):null,R?B.createElement(`tr`,null,B.createElement(`td`,null,`anyOf ->`),B.createElement(`td`,null,R.map(((e,t)=>B.createElement(`div`,{key:t},B.createElement(j,sp({},c,{required:!1,getComponent:i,specPath:s.push(`anyOf`,t),getConfigs:a,schema:e,depth:o+1}))))))):null,z?B.createElement(`tr`,null,B.createElement(`td`,null,`oneOf ->`),B.createElement(`td`,null,z.map(((e,t)=>B.createElement(`div`,{key:t},B.createElement(j,sp({},c,{required:!1,getComponent:i,specPath:s.push(`oneOf`,t),getConfigs:a,schema:e,depth:o+1}))))))):null,te?B.createElement(`tr`,null,B.createElement(`td`,null,`not ->`),B.createElement(`td`,null,B.createElement(`div`,null,B.createElement(j,sp({},c,{required:!1,getComponent:i,specPath:s.push(`not`),getConfigs:a,schema:te,depth:o+1}))))):null))),B.createElement(`span`,{className:`brace-close`},`}`)),T.size?T.entrySeq().map((([e,t])=>B.createElement(N,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:`property`}))):null)}},jX=class extends B.Component{handleToggle=(e,t)=>
269{let{layoutActions:n,specPath:r}=this.props;n?.show(r.toJS(),t)};render(){let{getComponent:e,getConfigs:t,schema:n,depth:r,expandDepth:i,name:a,displayName:o,specPath:s,layoutSelectors:c}=this.props,l=r<=i,u=c?.isShown(s.toJS(),l)??l,d=n.get(`description`),f=n.get(`items`),p=n.get(`title`)||o||a,m=n.filter(((e,t)=>[`type`,`items`,`description`,`$$ref`,`externalDocs`].indexOf(t)===-1)),h=n.getIn([`externalDocs`,`url`]),g=n.getIn([`externalDocs`,`description`]),_=e(`Markdown`,!0),v=e(`ModelCollapse`),y=e(`Model`),b=e(`Property`),x=e(`Link`),S=p&&B.createElement(`strong`,{className:`model-title`},B.createElement(`span`,{className:`model-title__text`},p));return B.createElement(`span`,{className:`model`},B.createElement(v,{title:S,onToggle:this.handleToggle,expanded:u,collapsedContent:`[...]`},`[`,m.size?m.entrySeq().map((([e,t])=>B.createElement(b,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:`property`}))):null,d?B.createElement(_,{source:d}):m.size?B.createElement(`div`,{className:`markdown`}):null,h&&B.createElement(`div`,{className:`external-docs`},B.createElement(x,{target:`_blank`,href:kX(h)},g||h)),B.createElement(`span`,null,B.createElement(y,sp({},this.props,{getConfigs:t,specPath:s.push(`items`),name:null,schema:f,required:!1,depth:r+1}))),`]`))}},MX=`property primitive`,NX=class extends B.Component{handleToggle=(e,t)=>{let{layoutActions:n,specPath:r}=this.props;n?.show(r?.toJS(),t)};render(){let{schema:e,getComponent:t,getConfigs:n,name:r,displayName:i,depth:a,expandDepth:o,specPath:s,layoutSelectors:c}=this.props,{showExtensions:l}=n(),u=a<=o,d=c?.isShown(s?.toJS(),u)??u;if(!e||!e.get)return B.createElement(`div`,null);let f=e.get(`type`),p=e.get(`format`),m=e.get(`xml`),h=e.get(`enum`),g=e.get(`title`)||i||r,_=e.get(`description`),v=Vq(e),y=e.filter(((e,t)=>[`enum`,`type`,`format`,`description`,`$$ref`,`externalDocs`].indexOf(t)===-1)).filterNot(((e,t)=>v.has(t))),b=e.getIn([`externalDocs`,`url`]),x=e.getIn([`externalDocs`,`description`]),S=t(`Markdown`,!0),C=t(`EnumModel`),w=t(`Property`),T=t(`ModelCollapse`),E=t(`Link`),D=t(`ModelExtensions`),O=g&&B.createElement(`strong`,{className:`model-title`},B.createElement(`span`,{className:`model-title__text`},g));return B.createElement(`span`,{className:`model`},B.createElement(T,{title:O,onToggle:this.handleToggle,expanded:d,collapsedContent:`[...]`},B.createElement(`span`,{className:`prop`},r&&a>1&&B.createElement(`span`,{className:`prop-name`},g),B.createElement(`span`,{className:`prop-type`},f),p&&B.createElement(`span`,{className:`prop-format`},`($`,p,`)`),y.size?y.entrySeq().map((([e,t])=>B.createElement(w,{key:`${e}-${t}`,propKey:e,propVal:t,propClass:MX}))):null,l&&v.size>0?B.createElement(D,{extensions:v,propClass:`${MX} extension`}):null,_?B.createElement(S,{source:_}):null,b&&B.createElement(`div`,{className:`external-docs`},B.createElement(E,{target:`_blank`,href:kX(b)},x||b)),m&&m.size?B.createElement(`span`,null,B.createElement(`br`,null),B.createElement(`span`,{className:MX},`xml:`),m.entrySeq().map((([e,t])=>B.createElement(`span`,{key:`${e}-${t}`,className:MX},B.createElement(`br`,null),`\xA0\xA0\xA0`,e,`: `,String(t)))).toArray()):null,h&&B.createElement(C,{value:h,getComponent:t}))))}},PX=class extends B.Component{UNSAFE_componentWillMount(){let{schemes:e}=this.props;this.setScheme(e.first())}UNSAFE_componentWillReceiveProps(e){this.props.currentScheme&&e.schemes.includes(this.props.currentScheme)||this.setScheme(e.schemes.first())}onChange=e=>{this.setScheme(e.target.value)};setScheme=e=>{let{path:t,method:n,specActions:r}=this.props;r.setScheme(e,t,n)};render(){let{schemes:e,currentScheme:t}=this.props;return B.createElement(`label`,{htmlFor:`schemes`},B.createElement(`span`,{className:`schemes-title`},`Schemes`),B.createElement(`select`,{onChange:this.onChange,value:t,id:`schemes`},e.valueSeq().map((e=>B.createElement(`option`,{value:e,key:e},e))).toArray()))}},FX=class extends B.Component{render(){let{specActions:e,specSelectors:t,getComponent:n}=this.props,r=t.operationScheme(),i=t.schemes(),a=n(`schemes`);return i&&i.size?B.createElement(a,{currentScheme:r,schemes:i,specActions:e}):null}},IX={value:``,onChange:()=>{},schema:{},keyName:``,required:!1,errors:(0,Q.List)()},LX=class extends B.Component{static defaultProps=IX;componentDidMount(){let{dispatchInitialValue:e,value:t,onChange:n}=this.props;e?n(t):!1===e&&n(``)}render(){let{schema:e,errors:t,value:n,onChange:r,getComponent:i,fn:a,disabled:o}=this.props,s=e&&e.get?e.get(`format`):null,c=e&&e.get?e.get(`type`):null,l=a.getSchemaObjectType(e),u=a.isFileUploadIntended(e),d=c?(e=>i(e,!1,{failSilently:!0}))(s?`JsonSchema_${c}_${s}`:`JsonSchema_${c}`):i(`JsonSchema_string`);return u||!Q.List.isList(c)||l!==`array`&&l!==`object`||(d=i(`JsonSchema_object`)),d||=i(`JsonSchema_string`),B.createElement(d,sp({},this.props,{errors:t,fn:a,getComponent:i,value:n,onChange:r,schema:e,disabled:o}))}},RX=class extends B.Component{static defaultProps=IX;onChange=e=>{let t=this.props.schema&&this.props.schema.get(`type`)===`file`?e.target.files[0]:e.target.value;this.props.onChange(t,this.props.keyName)};onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:t,schema:n,errors:r,required:i,description:a,disabled:o}=this.props,s=n&&n.get?n.get(`enum`):null,c=n&&n.get?n.get(`format`):null,l=n&&n.get?n.get(`type`):null,u=n&&n.get?n.get(`in`):null;if(t?((0,Q.isImmutable)(t)||typeof t==`object`)&&(t=Wq(t)):t=``,r=r.toJS?r.toJS():[],s){let n=e(`Select`);return B.createElement(n,{className:r.length?`invalid`:``,title:r.length?r:``,allowedValues:[...s],value:t,allowEmptyValue:!i,disabled:o,onChange:this.onEnumChange})}let d=o||u&&u===`formData`&&!(`FormData`in window),f=e(`Input`);return l&&l===`file`?B.createElement(f,{type:`file`,className:r.length?`invalid`:``,title:r.length?r:``,onChange:this.onChange,disabled:d}):B.createElement(fh.default,{type:c&&c===`password`?`password`:`text`,className:r.length?`invalid`:``,title:r.length?r:``,value:t,minLength:0,debounceTimeout:350,placeholder:a,onChange:this.onChange,disabled:d})}},zX=class extends B.PureComponent{static defaultProps=IX;constructor(e,t){super(e,t),this.state={value:GX(e.value),schema:e.schema}}UNSAFE_componentWillReceiveProps(e){let t=GX(e.value);t!==this.state.value&&this.setState({value:t}),e.schema!==this.state.schema&&this.setState({schema:e.schema})}onChange=()=>{this.props.onChange(this.state.value)};onItemChange=(e,t)=>
269{this.setState((({value:n})=>({value:n.set(t,e)})),this.onChange)};removeItem=e=>{this.setState((({value:t})=>({value:t.delete(e)})),this.onChange)};addItem=()=>{let{fn:e}=this.props,t=GX(this.state.value);this.setState((()=>({value:t.push(e.getSampleSchema(this.state.schema.get(`items`),!1,{includeWriteOnly:!0}))})),this.onChange)};onEnumChange=e=>{this.setState((()=>({value:e})),this.onChange)};render(){let{getComponent:e,required:t,schema:n,errors:r,fn:i,disabled:a}=this.props;r=r.toJS?r.toJS():Array.isArray(r)?r:[];let o=r.filter((e=>typeof e==`string`)),s=r.filter((e=>e.needRemove!==void 0)).map((e=>e.error)),c=this.state.value,l=!!(c&&c.count&&c.count()>0),u=n.getIn([`items`,`enum`]),d=n.get(`items`),f=i.getSchemaObjectType(d),p=i.getSchemaObjectTypeLabel(d),m=n.getIn([`items`,`format`]),h=n.get(`items`),g,_=!1,v=f===`file`||f===`string`&&m===`binary`;if(f&&m?g=e(`JsonSchema_${f}_${m}`):f!==`boolean`&&f!==`array`&&f!==`object`||(g=e(`JsonSchema_${f}`)),!Q.List.isList(d?.get(`type`))||f!==`array`&&f!==`object`||(g=e(`JsonSchema_object`)),g||v||(_=!0),u){let n=e(`Select`);return B.createElement(n,{className:r.length?`invalid`:``,title:r.length?r:``,multiple:!0,value:c,disabled:a,allowedValues:u,allowEmptyValue:!t,onChange:this.onEnumChange})}let y=e(`Button`);return B.createElement(`div`,{className:`json-schema-array`},l?c.map(((t,n)=>{let o=(0,Q.fromJS)([...r.filter((e=>e.index===n)).map((e=>e.error))]);return B.createElement(`div`,{key:n,className:`json-schema-form-item`},v?B.createElement(VX,{value:t,onChange:e=>this.onItemChange(e,n),disabled:a,errors:o,getComponent:e}):_?B.createElement(BX,{value:t,onChange:e=>this.onItemChange(e,n),disabled:a,errors:o}):B.createElement(g,sp({},this.props,{value:t,onChange:e=>this.onItemChange(e,n),disabled:a,errors:o,schema:h,getComponent:e,fn:i})),a?null:B.createElement(y,{className:`btn btn-sm json-schema-form-item-remove ${s.length?`invalid`:null}`,title:s.length?s:``,onClick:()=>this.removeItem(n)},` - `))})):null,a?null:B.createElement(y,{className:`btn btn-sm json-schema-form-item-add ${o.length?`invalid`:null}`,title:o.length?o:``,onClick:this.addItem},`Add `,p,` item`))}},BX=class extends B.Component{static defaultProps=IX;onChange=e=>{let t=e.target.value;this.props.onChange(t,this.props.keyName)};render(){let{value:e,errors:t,description:n,disabled:r}=this.props;return e?((0,Q.isImmutable)(e)||typeof e==`object`)&&(e=Wq(e)):e=``,t=t.toJS?t.toJS():[],B.createElement(fh.default,{type:`text`,className:t.length?`invalid`:``,title:t.length?t:``,value:e,minLength:0,debounceTimeout:350,placeholder:n,onChange:this.onChange,disabled:r})}},VX=class extends B.Component{static defaultProps=IX;onFileChange=e=>{let t=e.target.files[0];this.props.onChange(t,this.props.keyName)};render(){let{getComponent:e,errors:t,disabled:n}=this.props,r=e(`Input`),i=n||!(`FormData`in window);return B.createElement(r,{type:`file`,className:t.length?`invalid`:``,title:t.length?t:``,onChange:this.onFileChange,disabled:i})}},HX=class extends B.Component{static defaultProps=IX;onEnumChange=e=>this.props.onChange(e);render(){let{getComponent:e,value:t,errors:n,schema:r,required:i,disabled:a}=this.props;n=n.toJS?n.toJS():[];let o=r&&r.get?r.get(`enum`):null,s=!o||!i,c=!o&&[`true`,`false`],l=e(`Select`);return B.createElement(l,{className:n.length?`invalid`:``,title:n.length?n:``,value:String(t),disabled:a,allowedValues:o?[...o]:c,allowEmptyValue:s,onChange:this.onEnumChange})}},UX=e=>e.map((e=>{let t=e.propKey===void 0?e.index:e.propKey,n=typeof e==`string`?e:typeof e.error==`string`?e.error:null;if(!t&&n)return n;let r=e.error,i=`/${e.propKey}`;for(;typeof r==`object`;){let e=r.propKey===void 0?r.index:r.propKey;if(e===void 0||(i+=`/${e}`,!r.error))break;r=r.error}return`${i}: ${r}`})),WX=class extends B.PureComponent{constructor(){super()}static defaultProps=IX;onChange=e=>{this.props.onChange(e)};handleOnChange=e=>{let t=e.target.value;this.onChange(t)};render(){let{getComponent:e,value:t,errors:n,disabled:r}=this.props,i=e(`TextArea`);return n=n.toJS?n.toJS():Array.isArray(n)?n:[],B.createElement(`div`,null,B.createElement(i,{className:(0,pp.default)({invalid:n.length}),title:n.length?UX(n).join(`, `):``,value:Wq(t),disabled:r,onChange:this.handleOnChange}))}};function GX(e){return Q.List.isList(e)?e:Array.isArray(e)?(0,Q.fromJS)(e):(0,Q.List)()}var KX=({extensions:e,propClass:t=``})=>e.entrySeq().map((([e,n])=>{let r=bq(n)??null;return B.createElement(`tr`,{key:e,className:t},B.createElement(`td`,null,e),B.createElement(`td`,null,JSON.stringify(r)))})).toArray(),qX=(e,t)=>{let n=Q.Map.isMap(e);if(!n&&!(0,Rn.default)(e))return!1;let r=n?e.get(`type`):e.type;return t===r||Array.isArray(t)&&t.includes(r)},JX=(e,t=new WeakSet)=>{if(e==null||t.has(e))return`any`;t.add(e);let{type:n,items:r}=e;return Object.hasOwn(e,`items`)?r?`array<${JX(r,t)}>`:`array<any>`:n},YX=e=>JX(bq(e)),XX=()=>({components:{modelExample:gX,ModelWrapper:_X,ModelCollapse:pX,Model:xX,Models:wX,EnumModel:TX,ObjectModel:AX,ArrayModel:jX,PrimitiveModel:NX,ModelExtensions:KX,schemes:PX,SchemesContainer:FX,...zK},fn:{hasSchemaType:qX,getSchemaObjectTypeLabel:YX}}),ZX=Z(123),QX=Z.n(ZX),$X=e=>t=>Array.isArray(e)&&Array.isArray(t)&&e.length===t.length&&e.every(((e,n)=>e===t[n])),eZ=(...e)=>e,tZ=class extends Map{delete(e){let t=Array.from(this.keys()).find($X(e));return super.delete(t)}get(e){let t=Array.from(this.keys()).find($X(e));return super.get(t)}has(e){return Array.from(this.keys()).findIndex($X(e))!==-1}},nZ=(e,t=eZ)=>{let{Cache:n}=In.default;In.default.Cache=tZ;let r=(0,In.default)(e,t);return In.default.Cache=n,r},rZ={string:e=>e.pattern?(e=>{try{let t=e.replace(/(?<=(?<!\\)\{)(\d{3,})(?=\})|(?<=(?<!\\)\{\d*,)(\d{3,})(?=\})|(?<=(?<!\\)\{)(\d{3,})(?=,\d*\})/g,`100`),n=new ph.default(t);return n.max=100,n.gen()}catch{return`string`}})(e.pattern):`string`,string_email:()=>`[email protected]`,"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},iZ=e=>{e=xq(e);let{type:t,format:n}=e,r=rZ[`${t}_${n}`]||rZ[t];return Eq(r)?r(e):`Unknown Type: `+e.type},aZ=e=>Uq(e,`$$ref`,(e=>typeof e==`string`&&e.indexOf(`#`)>-1)),oZ=[`maxProperties`,`minProperties`],sZ=[`minItems`,`maxItems`],cZ=[`minimum`,`maximum`,`exclusiveMinimum`,`exclusiveMaximum`],lZ=[`minLength`,`maxLength`],uZ=(e,t,n={})=>{let r={...e};if([`example`,`default`,`enum`,`xml`,`type`,...oZ,...sZ,...cZ,...lZ].forEac
269h((e=>(e=>{r[e]===void 0&&t[e]!==void 0&&(r[e]=t[e])})(e))),t.required!==void 0&&Array.isArray(t.required)&&(r.required!==void 0&&r.required.length||(r.required=[]),t.required.forEach((e=>{r.required.includes(e)||r.required.push(e)}))),t.properties){r.properties||={};let e=xq(t.properties);for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(e[i]&&e[i].deprecated||e[i]&&e[i].readOnly&&!n.includeReadOnly||e[i]&&e[i].writeOnly&&!n.includeWriteOnly||r.properties[i]||(r.properties[i]=e[i],!t.required&&Array.isArray(t.required)&&t.required.indexOf(i)!==-1&&(r.required?r.required.push(i):r.required=[i])))}return t.items&&(r.items||={},r.items=uZ(r.items,t.items,n)),r},dZ=(e,t={},n=void 0,r=!1)=>{e&&Eq(e.toJS)&&(e=e.toJS());let i=n!==void 0||e&&e.example!==void 0||e&&e.default!==void 0,a=!i&&e&&e.oneOf&&e.oneOf.length>0,o=!i&&e&&e.anyOf&&e.anyOf.length>0;if(!i&&(a||o)){let n=xq(a?e.oneOf[0]:e.anyOf[0]);if(!(e=uZ(e,n,t)).xml&&n.xml&&(e.xml=n.xml),e.example!==void 0&&n.example!==void 0)i=!0;else if(n.properties){e.properties||(e.properties={});let r=xq(n.properties);for(let i in r)Object.prototype.hasOwnProperty.call(r,i)&&(r[i]&&r[i].deprecated||r[i]&&r[i].readOnly&&!t.includeReadOnly||r[i]&&r[i].writeOnly&&!t.includeWriteOnly||e.properties[i]||(e.properties[i]=r[i],!n.required&&Array.isArray(n.required)&&n.required.indexOf(i)!==-1&&(e.required?e.required.push(i):e.required=[i])))}}let s={},{xml:c,type:l,example:u,properties:d,additionalProperties:f,items:p}=e||{},{includeReadOnly:m,includeWriteOnly:h}=t;c||={};let g,{name:_,prefix:v,namespace:y}=c,b={};r&&(_||=`notagname`,g=(v?v+`:`:``)+_,y)&&(s[v?`xmlns:`+v:`xmlns`]=y),r&&(b[g]=[]);let x=t=>t.some((t=>Object.prototype.hasOwnProperty.call(e,t)));e&&!l&&(d||f||x(oZ)?l=`object`:p||x(sZ)?l=`array`:x(cZ)?(l=`number`,e.type=`number`):i||e.enum||(l=`string`,e.type=`string`));let S=t=>{if(e?.maxItems!=null&&(t=t.slice(0,e?.maxItems)),e?.minItems!=null){let n=0;for(;t.length<e?.minItems;)t.push(t[n++%t.length])}return t},C=xq(d),w,T=0,E=()=>e&&e.maxProperties!==null&&e.maxProperties!==void 0&&T>=e.maxProperties,D=t=>!e||e.maxProperties===null||e.maxProperties===void 0||!E()&&(!(t=>!(e&&e.required&&e.required.length&&e.required.includes(t)))(t)||e.maxProperties-T-(()=>{if(!e||!e.required)return 0;let t=0;return r?e.required.forEach((e=>t+=b[e]===void 0?0:1)):e.required.forEach((e=>t+=b[g]?.find((t=>t[e]!==void 0))===void 0?0:1)),e.required.length-t})()>0);if(w=r?(n,i=void 0)=>{if(e&&C[n]){if(C[n].xml=C[n].xml||{},C[n].xml.attribute){let e=Array.isArray(C[n].enum)?C[n].enum[0]:void 0,t=C[n].example,r=C[n].default;s[C[n].xml.name||n]=t===void 0?r===void 0?e===void 0?iZ(C[n]):e:r:t;return}
269C[n].xml.name=C[n].xml.name||n}else C[n]||!1===f||(C[n]={xml:{name:n}});let a=dZ(e&&C[n]||void 0,t,i,r);D(n)&&(T++,Array.isArray(a)?b[g]=b[g].concat(a):b[g].push(a))}:(n,i)=>{if(D(n)){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===n){for(let t in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[t])!==-1){b[n]=t;break}}else b[n]=dZ(C[n],t,i,r);T++}},i){let i;if(i=aZ(n===void 0?u===void 0?e.default:u:n),!r){if(typeof i==`number`&&l===`string`)return`${i}`;if(typeof i!=`string`||l===`string`)return i;try{return JSON.parse(i)}catch{return i}}if(e||(l=Array.isArray(i)?`array`:typeof i),l===`array`){if(!Array.isArray(i)){if(typeof i==`string`)return i;i=[i]}let n=e?e.items:void 0;n&&(n.xml=n.xml||c||{},n.xml.name=n.xml.name||c.name);let a=i.map((e=>dZ(n,t,e,r)));return a=S(a),c.wrapped?(b[g]=a,(0,mh.default)(s)||b[g].push({_attr:s})):b=a,b}if(l===`object`){if(typeof i==`string`)return i;for(let t in i)Object.prototype.hasOwnProperty.call(i,t)&&(e&&C[t]&&C[t].readOnly&&!m||e&&C[t]&&C[t].writeOnly&&!h||(e&&C[t]&&C[t].xml&&C[t].xml.attribute?s[C[t].xml.name||t]=i[t]:w(t,i[t])));return(0,mh.default)(s)||b[g].push({_attr:s}),b}return b[g]=(0,mh.default)(s)?i:[{_attr:s},i],b}if(l===`object`){for(let e in C)Object.prototype.hasOwnProperty.call(C,e)&&(C[e]&&C[e].deprecated||C[e]&&C[e].readOnly&&!m||C[e]&&C[e].writeOnly&&!h||w(e));if(r&&s&&b[g].push({_attr:s}),E())return b;if(!0===f)r?b[g].push({additionalProp:`Anything can be here`}):b.additionalProp1={},T++;else if(f){let n=xq(f),i=dZ(n,t,void 0,r);if(r&&n.xml&&n.xml.name&&n.xml.name!==`notagname`)b[g].push(i);else{let t=n[`x-additionalPropertiesName`]||`additionalProp`,a=e.minProperties!==null&&e.minProperties!==void 0&&T<e.minProperties?e.minProperties-T:3;for(let e=1;e<=a;e++){if(E())return b;if(r){let n={};n[t+e]=i.notagname,b[g].push(n)}else b[t+e]=i;T++}}}return b}if(l===`array`){if(!p)return;let n;if(r&&(p.xml=p.xml||e?.xml||{},p.xml.name=p.xml.name||c.name),Array.isArray(p.anyOf))n=p.anyOf.map((e=>dZ(uZ(e,p,t),t,void 0,r)));else if(Array.isArray(p.oneOf))n=p.oneOf.map((e=>dZ(uZ(e,p,t),t,void 0,r)));else{if(!(!r||r&&c.wrapped))return dZ(p,t,void 0,r);n=[dZ(p,t,void 0,r)]}return n=S(n),r&&c.wrapped?(b[g]=n,(0,mh.default)(s)||b[g].push({_attr:s}),b):n}let O;if(e&&Array.isArray(e.enum))O=Cq(e.enum)[0];else{if(!e)return;if(O=iZ(e),typeof O==`number`){let t=e.minimum;t!=null&&(e.exclusiveMinimum&&t++,O=t);let n=e.maximum;n!=null&&(e.exclusiveMaximum&&n--,O=n)}if(typeof O==`string`&&(e.maxLength!==null&&e.maxLength!==void 0&&(O=O.slice(0,e.maxLength)),e.minLength!==null&&e.minLength!==void 0)){let t=0;for(;O.length<e.minLength;)O+=O[t++%O.length]}}if(l!==`file`)return r?(b[g]=(0,mh.default)(s)?O:[{_attr:s},O],b):O},fZ=e=>(e.schema&&(e=e.schema),e.properties&&(e.type=`object`),e),pZ=(e,t,n)=>{let r=dZ(e,t,n,!0);if(r)return typeof r==`string`?r:QX()(r,{declaration:!0,indent:` `})},mZ=(e,t,n)=>dZ(e,t,n,!1),hZ=(e,t,n)=>[e,JSON.stringify(t),JSON.stringify(n)],gZ=nZ(pZ,hZ),_Z=nZ(mZ,hZ),vZ=e=>bq(e)?.type??`string`,yZ=[{when:/json/,shouldStringifyTypes:[`string`]}],bZ=[`object`],xZ=e=>(t,n,r,i)=>{let{fn:a}=e(),o=a.memoizedSampleFromSchema(t,n,i),s=typeof o,c=yZ.reduce(((e,t)=>t.when.test(r)?[...e,...t.shouldStringifyTypes]:e),bZ);return(0,Hl.default)(c,(e=>e===s))?JSON.stringify(o,null,2):o},SZ=e=>(t,n,r,i)=>{let{fn:a}=e(),o=a.getJsonSampleSchema(t,n,r,i),s;try{s=Ed.dump(Ed.load(o),{lineWidth:-1},{schema:Dd}),s[s.length-1]===` 270`&&(s=s.slice(0,s.length-1))}catch(e){return console.error(e),`error: could not generate yaml example`}return s.replace(/\t/g,` `)},CZ=e=>(t,n,r)=>{let{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"?> 271<!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let e=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=e[1]}}return i.memoizedCreateXMLExample(t,n,r)},wZ=e=>(t,n=``,r={},i=void 0)=>{let{fn:a}=e();return typeof i?.toJS==`function`&&(i=i.toJS()),/xml/.test(n)?(typeof t?.toJS==`function`&&(t=t.toJS()),a.getXmlSampleSchema(t,r,i)):/(yaml|yml)/.test(n)?a.getYamlSampleSchema(t,r,n,i):a.getJsonSampleSchema(t,r,n,i)},TZ=({getSystem:e})=>{let t=xZ(e),n=SZ(e),r=CZ(e),i=wZ(e);return{fn:{jsonSchema5:{inferSchema:fZ,sampleFromSchema:mZ,sampleFromSchemaGeneric:dZ,createXMLExample:pZ,memoizedSampleFromSchema:_Z,memoizedCreateXMLExample:gZ,getJsonSampleSchema:t,getYamlSampleSchema:n,getXmlSampleSchema:r,getSampleSchema:i,mergeJsonSchema:uZ},inferSchema:fZ,sampleFromSchema:mZ,sampleFromSchemaGeneric:dZ,createXMLExample:pZ,memoizedSampleFromSchema:_Z,memoizedCreateXMLExample:gZ,getJsonSampleSchema:t,getYamlSampleSchema:n,getXmlSampleSchema:r,getSampleSchema:i,mergeJsonSchema:uZ,getSchemaObjectType:vZ}}},EZ=[`get`,`put`,`post`,`delete`,`options`,`head`,`patch`,`trace`,`query`],DZ=e=>e||(0,Q.Map)(),OZ=ru(DZ,(e=>e.get(`lastError`))),kZ=ru(DZ,(e=>e.get(`url`))),AZ=ru(DZ,(e=>e.get(`spec`)||``)),jZ=ru(DZ,(e=>e.get(`specSource`)||`not-editor`)),MZ=ru(DZ,(e=>e.get(`json`,(0,Q.Map)()))),NZ=ru(MZ,(e=>e.toJS())),PZ=ru(DZ,(e=>e.get(`resolved`,(0,Q.Map)()))),FZ=(e,t)=>e.getIn([`resolvedSubtrees`,...t],void 0),IZ=(e,t)=>Q.Map.isMap(e)&&Q.Map.isMap(t)?t.get(`$$ref`)?t:(0,Q.OrderedMap)().mergeWith(IZ,e,t):t,LZ=ru(DZ,(e=>(0,Q.OrderedMap)().mergeWith(IZ,e.get(`json`),e.get(`resolvedSubtrees`)))),RZ=e=>MZ(e),zZ=ru(RZ,(()=>!1)),BZ=ru(RZ,(e=>NQ(e&&e.get(`info`)))),VZ=ru(RZ,(e=>NQ(e&&e.get(`externalDocs`)))),HZ=ru(BZ,(e=>e&&e.get(`version`))),UZ=ru(HZ,(e=>/v?([0-9]*)\.([0-9]*)\.([0-9]*)/i.exec(e).slice(1))),WZ=ru(LZ,(e=>e.get(`paths`))),GZ=(0,zn.default)([`get`,`put`,`post`,`delete`,`options`,`head`,`patch`]),KZ=ru(WZ,(e=>{let t=(0,Q.List)();return!Q.Map.isMap(e)||e.isEmpty()||e.forEach(((e,n)=>{if(!e||!e.forEach)return{};e.forEach(((e,r)=>{EZ.indexOf(r)<0||(t=t.push((0,Q.fromJS)({path:n,method:r,operation:e,id:`${r}-${n}`,specPath:[`paths`,n,r]})))}))})),t})),qZ=ru(RZ,(e=>(0,Q.Set)(e.get(`consumes`)))),JZ=ru(RZ,(e=>(0,Q.Set)(e.get(`produces`)))),YZ=ru(RZ,(e=>e.get(`security`,(0,Q.List)()))),XZ=ru(RZ,(e=>e.get(`securityDefinitions`))),ZZ=(e,t)=>{let n=e.getIn([`resolvedSubtrees`,`definitions`,t],null),r=e.getIn([`json`,`definitions`,t],null);return n||r||null},QZ=ru(RZ,(e=>{let t=e.get(`definitions`);return Q.Map.isMap(t)?t:(0,Q.Map)()})),$Z=ru(RZ,(e=>e.get(`basePath`))),eQ=ru(RZ,(e=>e.get(`host`))),tQ=ru(RZ,(e=>e.get(`schemes`,(0,Q.Map)()))),nQ=ru([KZ,qZ,JZ],((e,t,n)=>e.map((e=>e.update(`operation`,(e=>Q.Map.isMap(e)?e.withMutations((e=>(e.get(`consumes`)||e.update(`consumes`,(e=>
271(0,Q.Set)(e).merge(t))),e.get(`produces`)||e.update(`produces`,(e=>(0,Q.Set)(e).merge(n))),e))):(0,Q.Map)())))))),rQ=ru(RZ,(e=>{let t=e.get(`tags`,(0,Q.List)());return Q.List.isList(t)?t.filter((e=>Q.Map.isMap(e))):(0,Q.List)()})),iQ=(e,t)=>(rQ(e)||(0,Q.List)()).filter(Q.Map.isMap).find((e=>e.get(`name`)===t),(0,Q.Map)()),aQ=ru(nQ,rQ,((e,t)=>e.reduce(((e,t)=>{let n=(0,Q.Set)(t.getIn([`operation`,`tags`]));return n.count()<1?e.update(`default`,(0,Q.List)(),(e=>e.push(t))):n.reduce(((e,n)=>e.update(n,(0,Q.List)(),(e=>e.push(t)))),e)}),t.reduce(((e,t)=>e.set(t.get(`name`),(0,Q.List)())),(0,Q.OrderedMap)())))),oQ=e=>({getConfigs:t})=>{let{tagsSorter:n,operationsSorter:r}=t();return aQ(e).sortBy(((e,t)=>t),((e,t)=>{let r=typeof n==`function`?n:Pq.tagsSorter[n];return r?r(e,t):null})).map(((t,n)=>{let i=typeof r==`function`?r:Pq.operationsSorter[r],a=i?t.sort(i):t;return(0,Q.Map)({tagDetails:iQ(e,n),operations:a})}))},sQ=ru(DZ,(e=>e.get(`responses`,(0,Q.Map)()))),cQ=ru(DZ,(e=>e.get(`requests`,(0,Q.Map)()))),lQ=ru(DZ,(e=>e.get(`mutatedRequests`,(0,Q.Map)()))),uQ=(e,t,n)=>sQ(e).getIn([t,n],null),dQ=(e,t,n)=>cQ(e).getIn([t,n],null),fQ=(e,t,n)=>lQ(e).getIn([t,n],null),pQ=()=>!0,mQ=(e,t,n)=>{let r=LZ(e).getIn([`paths`,...t,`parameters`],(0,Q.OrderedMap)()),i=e.getIn([`meta`,`paths`,...t,`parameters`],(0,Q.OrderedMap)());return r.map((e=>{let t=i.get(`${n.get(`in`)}.${n.get(`name`)}`),r=i.get(`${n.get(`in`)}.${n.get(`name`)}.hash-${n.hashCode()}`);return(0,Q.OrderedMap)().merge(e,t,r)})).find((e=>e.get(`in`)===n.get(`in`)&&e.get(`name`)===n.get(`name`)),(0,Q.OrderedMap)())},hQ=(e,t,n,r)=>{let i=`${r}.${n}`;return e.getIn([`meta`,`paths`,...t,`parameter_inclusions`,i],!1)},gQ=(e,t,n,r)=>mQ(e,t,LZ(e).getIn([`paths`,...t,`parameters`],(0,Q.OrderedMap)()).find((e=>e.get(`in`)===r&&e.get(`name`)===n),(0,Q.OrderedMap)())),_Q=(e,t,n)=>{let r=LZ(e).getIn([`paths`,t,n],(0,Q.OrderedMap)()),i=e.getIn([`meta`,`paths`,t,n],(0,Q.OrderedMap)()),a=r.get(`parameters`,(0,Q.List)()).map((r=>mQ(e,[t,n],r)));return(0,Q.OrderedMap)().merge(r,i).set(`parameters`,a)};function vQ(e,t,n,r){return t||=[],e.getIn([`meta`,`paths`,...t,`parameters`],(0,Q.fromJS)([])).find((e=>Q.Map.isMap(e)&&e.get(`name`)===n&&e.get(`in`)===r))||(0,Q.Map)()}var yQ=ru(RZ,(e=>{let t=e.get(`host`);return typeof t==`string`&&t.length>0&&t[0]!==`/`}));function bQ(e,t,n){return t||=[],_Q(e,...t).get(`parameters`,(0,Q.List)()).reduce(((e,t)=>{let r=n&&t.get(`in`)===`body`?t.get(`value_xml`):t.get(`value`);return Q.List.isList(r)&&(r=r.filter((e=>e!==``))),e.set(Gq(t,{allowHashes:!1}),r)}),(0,Q.fromJS)({}))}function xQ(e,t=``){if(Q.List.isList(e))return e.some((e=>Q.Map.isMap(e)&&e.get(`in`)===t))}function SQ(e,t=``){if(Q.List.isList(e))return e.some((e=>Q.Map.isMap(e)&&e.get(`type`)===t))}function CQ(e,t){t||=[];let n=LZ(e).getIn([`paths`,...t],(0,Q.fromJS)({}
271)),r=e.getIn([`meta`,`paths`,...t],(0,Q.fromJS)({})),i=wQ(e,t),a=n.get(`parameters`)||new Q.List,o=r.get(`consumes_value`)?r.get(`consumes_value`):SQ(a,`file`)?`multipart/form-data`:SQ(a,`formData`)?`application/x-www-form-urlencoded`:void 0;return(0,Q.fromJS)({requestContentType:o,responseContentType:i})}function wQ(e,t){t||=[];let n=LZ(e).getIn([`paths`,...t],null);if(n===null)return;let r=e.getIn([`meta`,`paths`,...t,`produces_value`],null),i=n.getIn([`produces`,0],null);return r||i||`application/json`}function TQ(e,t){t||=[];let n=LZ(e),r=n.getIn([`paths`,...t],null);if(r===null)return;let[i]=t,a=r.get(`produces`,null),o=n.getIn([`paths`,i,`produces`],null),s=n.getIn([`produces`],null);return a||o||s}function EQ(e,t){t||=[];let n=LZ(e),r=n.getIn([`paths`,...t],null);if(r===null)return;let[i]=t,a=r.get(`consumes`,null),o=n.getIn([`paths`,i,`consumes`],null),s=n.getIn([`consumes`],null);return a||o||s}var DQ=(e,t,n)=>{let r=e.get(`url`).match(/^([a-z][a-z0-9+\-.]*):/),i=Array.isArray(r)?r[1]:null;return e.getIn([`scheme`,t,n])||e.getIn([`scheme`,`_defaultScheme`])||i||``},OQ=(e,t,n)=>[`http`,`https`].indexOf(DQ(e,t,n))>-1,kQ=(e,t)=>{t||=[];let n=e.getIn([`meta`,`paths`,...t,`parameters`],(0,Q.fromJS)([])),r=[];if(n.length===0)return r;let i=(e,t=[])=>{let n=(e,t)=>{let n=[...t,e.get(`propKey`)||e.get(`index`)];return Q.Map.isMap(e.get(`error`))?i(e.get(`error`),n):{error:e.get(`error`),path:n}};return Q.List.isList(e)?e.map((e=>Q.Map.isMap(e)?n(e,t):{error:e,path:t})):n(e,t)};return n.forEach(((e,t)=>{let n=t.split(`.`).slice(1,-1).join(`.`),a=e.get(`errors`);a&&a.count()&&i(a).forEach((({error:e,path:t})=>{r.push(((e,t,n)=>`For '${n}'${(t=t.reduce(((e,t)=>typeof t==`number`?`${e}[${t}]`:e?`${e}.${t}`:t),``))?` at path '${t}'`:``}: ${e}.`)(e,t,n))}))})),r},AQ=(e,t)=>kQ(e,t).length===0,jQ=(e,t)=>{let n={requestBody:!1,requestContentType:{}},r=e.getIn([`resolvedSubtrees`,`paths`,...t,`requestBody`],(0,Q.fromJS)([]));if(r.size<1)return n;r.getIn([`required`])&&(n.requestBody=r.getIn([`required`]));let i=r.getIn([`content`]);return i&&i.entrySeq().forEach((e=>{let t=e[0];if(e[1].getIn([`schema`,`required`])){let r=e[1].getIn([`schema`,`required`]).toJS();n.requestContentType[t]=r}})),n},MQ=(e,t,n,r)=>{if((n||r)&&n===r)return!0;let i=e.getIn([`resolvedSubtrees`,`paths`,...t,`requestBody`,`content`],(0,Q.fromJS)([]));if(i.size<2||!n||!r)return!1;let a=i.getIn([n,`schema`,`properties`],(0,Q.fromJS)([])),o=i.getIn([r,`schema`,`properties`],(0,Q.fromJS)([]));return!!a.equals(o)};function NQ(e){return Q.Map.isMap(e)?e:new Q.Map}var PQ=`spec_update_spec`,FQ=`spec_update_url`,IQ=`spec_update_json`,LQ=`spec_update_param`,RQ=`spec_update_empty_param_inclusion`,zQ=`spec_validate_param`,BQ=`spec_set_response`,VQ=`spec_set_request`,HQ=`spec_set_mutated_request`,UQ=`spec_log_request`,WQ=`spec_clear_response`,GQ=`spec_clear_request`,KQ=`spec_clear_validate_param`,qQ=`spec_update_operation_meta_value`,JQ=`spec_update_resolved`,YQ=`spec_update_resolved_subtree`,XQ=`set_scheme`,ZQ=e=>(0,hh.default)(e)?e:``;function QQ(e){let t=ZQ(e).replace(/\t/g,` `);if(typeof e==`string`)return{type:PQ,payload:t}}function $Q(e){return{type:JQ,payload:e}}function e$(e){return{type:FQ,payload:e}}function t$(e){return{type:IQ,payload:e}}var n$=e=>({specActions:t,specSelectors:n,errActions:r})=>{let{specStr:i}=n,a=null;try{e||=i(),r.clear({source:`parser`}),a=Ed.load(e,{schema:Dd})}catch(e){return console.error(e),r.newSpecErr({source:`parser`,level:`error`,message:e.reason,line:e.mark&&e.mark.line?e.mark.line+1:void 0})}return a&&typeof a==`object`?t.updateJsonSpec(a):t.updateJsonSpec({})},r$=!1,i$=(e,t)=>({specActions:n,specSelectors:r,errActions:i,fn:{fetch:a,resolve:o,AST:s={}},getConfigs:c})=>{r$||=(console.warn(`specActions.resolveSpec is deprecated since v3.10.0 and will be removed in v4.0.0; use requestResolvedSubtree instead!`),!0);let{modelPropertyMacro:l,parameterMacro:u,requestInterceptor:d,responseInterceptor:f}=c();e===void 0&&(e=r.specJson()),t===void 0&&(t=r.url());let p=s.getLineNumberForPath?s.getLineNumberForPath:()=>{},m=r.specStr();return o({fetch:a,spec:e,baseDoc:String(new URL(t,document.baseURI)),modelPropertyMacro:l,parameterMacro:u,requestInterceptor:d,responseInterceptor:f}).then((({spec:e,errors:t})=>{if(i.clear({type:`thrown`}),Array.isArray(t)&&t.length>0){let e=t.map((e=>(console.error(e),e.line=e.fullPath?p(m,e.fullPath):null,e.path=e.fullPath?e.fullPath.join(`.`):null,e.level=`error`,e.type=`thrown`,e.source=`resolver`,Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e)));i.newThrownErrBatch(e)}return n.updateResolved(e)}))},a$=[],o$=(0,Hn.default)((()=>{let e=a$.reduce(((e,{path:t,system:n})=>(e.has(n)||e.set(n,[]),e.get(n).push(t),e)),new Map);a$=[],e.forEach((async(e,t)=>{if(!t)return void console.error(`debResolveSubtrees: don't have a system to operate on, aborting.`);if(!t.fn.resolveSubtree)return void console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing.");let{errActions:n,errSelectors:r,fn:{resolveSubtree:i,fetch:a,AST:o={}},specSelectors:s,specActions:c}=t,l=o.getLineNumberForPath??(0,zn.default)(void 0),u=s.specStr(),{modelPropertyMacro:d,parameterMacro:f,requestInterceptor:p,responseInterceptor:m}=t.getConfigs();try{let t=await e.reduce((async(e,t)=>{let{resultMap:o,specWithCurrentSubtrees:c}=await e,{errors:h,spec:g}=await i(c,t,{baseDoc:String(new URL(s.url(),document.baseURI)),modelPropertyMacro:d,parameterMacro:f,requestInterceptor:p,responseInterceptor:m});if(r.allErrors().size&&n.clearBy((e=>e.get(`type`)!==`thrown`||e.get(`source`)!==`resolver`||!e.get(`fullPath`)?.every(((e,n)=>e===t[n]||t[n]===void 0)))),Array.isArray(h)&&h.length>0){let e=h.map((e=>(e.line=e.fullPath?l(u,e.fullPath):null,e.path=e.fullPath?e.fullPath.join(`.`):null,e.level=`error`,e.type=`thrown`,e.source=`resolver`,Object.defineProperty(e,"message",{enumerable:!0,value:e.message}),e)));n.newThrownErrBatch(e)}return g&&s.isOAS3()&&t[0]===`components`&&t[1]===`securitySchemes`&&await Promise.all(Object.values(g).filter((e=>e?.type===`openIdConnect`)).map((async e=>{let t={url:e.openIdConnectUrl,requestInterceptor:p,responseInterceptor:m};try{let n=await a(t);n instanceof Error||n.status>=400?console.error(n.statusText+` `+t.url):e.openIdConnectData=JSON.parse(n.text)}catch(e){console.error(e)}}))),(0,gh.default)(o,t,g),c=(0,_h.default)(t,g,c),{resultMap:o,specWithCurrentSubtrees:c}}),Promise.resolve({resultMap:(s.specResolvedSubtree([])||(0,Q.Map)()).toJS(),specWithCurrentSubtrees:s.specJS()}));c.updateResolvedSubtree([],t.resultMap)}catch(e){console.error(e)}}))}),35),s$=e=>t=>{a$.find((({path:n,system:r})=>r===t&&n.toString()===e.toString()))||(a$.push({path:e,system:t}),o$())};function c$(e,t,n,r,i){return{type:LQ,payload:{path:e,value:r,paramName:t,paramIn:n,isXml:i}}}function l$(e,t,n,r){return{type:LQ,payload:{path:e,param:t,value:n,isXml:r}}}var u$=(e,t)=>({type:YQ,payload:{path:e,value:t}}),d$=()=>({type:YQ,payload:{path:[],value:(0,Q.Map)()}}),f$=(e,t)=>({type:zQ,payload:{pathMethod:e,isOAS3:t}}),p$=(e,t,n,r)=>({type:RQ,payload:{pathMethod:e,paramName:t,paramIn:n,includeEmptyValue:r}});function m$(e){return{type:KQ,payload:{pathMethod:e}}}function h$(e,t){return{type:qQ,payload:{path:e,value:t,key:`consumes_value`}}}function g$(e,t){return{type:qQ,payload:{path:e,value:t,key:`produces_value`}}}var _$=(e,t,n)=>({payload:{path:e,method:t,res:n},type:BQ}),v$=(e,t,n)=>({payload:{path:e,method:t,req:n},type:VQ}
271),y$=(e,t,n)=>({payload:{path:e,method:t,req:n},type:HQ}),b$=e=>({payload:e,type:UQ}),x$=e=>({fn:t,specActions:n,specSelectors:r,getConfigs:i,oas3Selectors:a})=>{let{pathName:o,method:s,operation:c}=e,{requestInterceptor:l,responseInterceptor:u}=i(),d=c.toJS();if(c&&c.get(`parameters`)&&c.get(`parameters`).filter((e=>e&&!0===e.get(`allowEmptyValue`))).forEach((t=>{if(r.parameterInclusionSettingFor([o,s],t.get(`name`),t.get(`in`))){e.parameters=e.parameters||{};let n=Kq(t,e.parameters);(!n||n&&n.size===0)&&(e.parameters[t.get(`name`)]=``)}})),e.contextUrl=(0,Wl.default)(r.url()).toString(),d&&d.operationId?e.operationId=d.operationId:d&&o&&s&&(e.operationId=t.opId(d,o,s)),r.isOAS3()){let t=`${o}:${s}`;e.server=a.selectedServer(t)||a.selectedServer();let n=a.serverVariables({server:e.server,namespace:t}).toJS(),r=a.serverVariables({server:e.server}).toJS();e.serverVariables=Object.keys(n).length?n:r,e.requestContentType=a.requestContentType(o,s),e.responseContentType=a.responseContentType(o,s)||`*/*`;let i=a.requestBodyValue(o,s),c=a.requestBodyInclusionSetting(o,s);e.requestBody=i&&i.toJS?i.map((e=>Q.Map.isMap(e)?e.get(`value`):e)).filter(((e,t)=>(Array.isArray(e)?e.length!==0:!Jq(e))||c.get(t))).toJS():i}let f=Object.assign({},e);f=t.buildRequest(f),n.setRequest(e.pathName,e.method,f),e.requestInterceptor=async t=>{let r=await l.apply(void 0,[t]),i=Object.assign({},r);return n.setMutatedRequest(e.pathName,e.method,i),r},e.responseInterceptor=u;let p=Date.now();return t.execute(e).then((t=>{t.duration=Date.now()-p,n.setResponse(e.pathName,e.method,t)})).catch((t=>{t.message===`Failed to fetch`&&(t.name=``,t.message=`**Failed to fetch.** 272**Possible Reasons:** 273 - CORS 274 - Network Failure 275 - URL scheme must be "http" or "https" for CORS request.`),n.setResponse(e.pathName,e.method,{error:!0,err:t})}))},S$=({path:e,method:t,...n}={})=>r=>{let{fn:{fetch:i},specSelectors:a,specActions:o}=r,s=a.specJsonWithResolvedSubtrees().toJS(),c=a.operationScheme(e,t),{requestContentType:l,responseContentType:u}=a.contentTypeValues([e,t]).toJS(),d=/xml/i.test(l),f=a.parameterValues([e,t],d).toJS();return o.executeRequest({...n,fetch:i,spec:s,pathName:e,method:t,parameters:f,requestContentType:l,scheme:c,responseContentType:u})};function C$(e,t){return{type:WQ,payload:{path:e,method:t}}}function w$(e,t){return{type:GQ,payload:{path:e,method:t}}}function T$(e,t,n){return{type:XQ,payload:{scheme:e,path:t,method:n}}}var E$={[PQ]:(e,t)=>typeof t.payload==`string`?e.set(`spec`,t.payload):e,[FQ]:(e,t)=>e.set(`url`,t.payload+``),[IQ]:(e,t)=>e.set(`json`,Sq(t.payload)),[JQ]:(e,t)=>e.setIn([`resolved`],Sq(t.payload)),[YQ]:(e,t)=>{let{value:n,path:r}=t.payload;return e.setIn([`resolvedSubtrees`,...r],Sq(n))},[LQ]:(e,{payload:t})=>{let{path:n,paramName:r,paramIn:i,param:a,value:o,isXml:s}=t,c=a?Gq(a):`${i}.${r}`,l=s?`value_xml`:`value`;return e.setIn([`meta`,`paths`,...n,`parameters`,c,l],(0,Q.fromJS)(o))},[RQ]:(e,{payload:t})=>{let{pathMethod:n,paramName:r,paramIn:i,includeEmptyValue:a}=t;if(!r||!i)return console.warn(`Warning: UPDATE_EMPTY_PARAM_INCLUSION could not generate a paramKey.`),e;let o=`${i}.${r}`;return e.setIn([`meta`,`paths`,...n,`parameter_inclusions`,o],a)},[zQ]:(e,{payload:{pathMethod:t,isOAS3:n}})=>{let r=LZ(e).getIn([`paths`,...t]),i=bQ(e,t).toJS();return e.updateIn([`meta`,`paths`,...t,`parameters`],(0,Q.fromJS)({}),(a=>r.get(`parameters`,(0,Q.List)()).reduce(((r,a)=>{let o=((e,t,{isOAS3:n=!1,bypassRequiredCheck:r=!1}={})=>{let i=e.get(`required`),{schema:a,parameterContentMediaType:o}=_q(e,{isOAS3:n});return Mq(t,a,i,r,o,n)})(a,Kq(a,i),{bypassRequiredCheck:hQ(e,t,a.get(`name`),a.get(`in`)),isOAS3:n});return r.setIn([Gq(a),`errors`],(0,Q.fromJS)(o))}),a)))},[KQ]:(e,{payload:{pathMethod:t}})=>e.updateIn([`meta`,`paths`,...t,`parameters`],(0,Q.fromJS)([]),(e=>e.map((e=>e.set(`errors`,(0,Q.fromJS)([])))))),[BQ]:(e,{payload:{res:t,path:n,method:r}})=>{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 a=e.setIn([`responses`,n,r],Sq(i));return dq.Blob&&i.data instanceof dq.Blob&&(a=a.setIn([`responses`,n,r,`text`],i.data)),a},[VQ]:(e,{payload:{req:t,path:n,method:r}})=>e.setIn([`requests`,n,r],Sq(t)),[HQ]:(e,{payload:{req:t,path:n,method:r}})=>e.setIn([`mutatedRequests`,n,r],Sq(t)),[qQ]:(e,{payload:{path:t,value:n,key:r}})=>{let i=[`paths`,...t],a=[`meta`,`paths`,...t];return e.getIn([`json`,...i])||e.getIn([`resolved`,...i])||e.getIn([`resolvedSubtrees`,...i])?e.setIn([...a,r],(0,Q.fromJS)(n)):e},[WQ]:(e,{payload:{path:t,method:n}})=>e.deleteIn([`responses`,t,n]),[GQ]:(e,{payload:{path:t,method:n}})=>e.deleteIn([`requests`,t,n]),[XQ]:(e,{payload:{scheme:t,path:n,method:r}})=>n&&r?e.setIn([`scheme`,n,r],t):n||r?void 0:e.setIn([`scheme`,`_defaultScheme`],t)},D$=(e,{specActions:t})=>(...n)=>{e(...n),t.parseToJson(...n)},O$=(e,{specActions:t})=>(...n)=>{e(...n),t.invalidateResolvedSubtreeCache();let[r]=n,i=(0,Un.default)(r,[`paths`])||{};
275Object.keys(i).forEach((e=>{let n=(0,Un.default)(i,[e]);(0,Rn.default)(n)&&n.$ref&&t.requestResolvedSubtree([`paths`,e])})),t.requestResolvedSubtree([`components`,`securitySchemes`])},k$=(e,{specActions:t})=>n=>(t.logRequest(n),e(n)),A$=(e,{specSelectors:t})=>n=>e(n,t.isOAS3()),j$=()=>({statePlugins:{spec:{wrapActions:{...HK},reducers:{...E$},actions:{...VK},selectors:{...BK}}}}),M$=(e,t)=>(...n)=>{e(...n);let r=t.getConfigs().withCredentials;t.fn.fetch.withCredentials=r};function N$({configs:e,getConfigs:t}){return{fn:{fetch:bD(yD,e.preFetch,e.postFetch),buildRequest:BR,execute:zR,resolve:aL({strategies:[rL,RD,ID,kD]}),resolveSubtree:async(e,n,r={})=>{let i=t();return JR({modelPropertyMacro:i.modelPropertyMacro,parameterMacro:i.parameterMacro,requestInterceptor:i.requestInterceptor,responseInterceptor:i.responseInterceptor,strategies:[rL,RD,ID,kD]})(e,n,r)},serializeRes:vD,opId:DD},statePlugins:{configs:{wrapActions:{loaded:M$}}}}}function P$(){return{fn:{shallowEqualKeys:Iq,sanitizeUrl:kX}}}var F$=e=>t=>{let{fn:n}=e();class r extends B.Component{render(){return B.createElement(t,sp({},e(),this.props,this.context))}}return r.displayName=`WithSystem(${n.getDisplayName(t)})`,r},I$=(e,t)=>n=>{let{fn:r}=e();class i extends B.Component{render(){return B.createElement(rB,{store:t},B.createElement(n,sp({},this.props,this.context)))}}return i.displayName=`WithRoot(${r.getDisplayName(n)})`,i},L$=(e,t,n)=>li(n?I$(e,n):Bn.default,tB(((n,r)=>{let i={...r,...e()};return(t.prototype?.mapStateToProps||(e=>({state:e})))(n,i)})),F$(e))(t),R$=(e,t,n,r)=>{for(let i in t){let a=t[i];typeof a==`function`&&a(n[i],r[i],e())}},z$=(e,t,n)=>(t,r)=>{let{fn:i}=e(),a=n(t,`root`);class o extends B.Component{constructor(t,n){super(t,n),R$(e,r,t,{})}UNSAFE_componentWillReceiveProps(t){R$(e,r,t,this.props)}render(){let e=(0,Dn.default)(this.props,r?Object.keys(r):[]);return B.createElement(a,e)}}return o.displayName=`WithMappedContainer(${i.getDisplayName(a)})`,o},B$=(e,t,n,r)=>i=>{let a=n(e,t,r)(`App`,`root`),{createRoot:o}=Nn.default;o(i).render(B.createElement(a,null))},V$=(e,t,n)=>(r,i,a={})=>{if(typeof r!=`string`)throw TypeError(`Need a string, to fetch a component. Was given a `+typeof r);let o=n(r);return o?i?i===`root`?L$(e,o,t()):L$(e,o):o:(a.failSilently||e().log.warn(`Could not find component:`,r),null)},H$=e=>e.displayName||e.name||`Component`,U$=({getComponents:e,getStore:t,getSystem:n})=>{let r=(i=V$(n,t,e),Oq(i,((...e)=>JSON.stringify(e))));var i;return{rootInjects:{getComponent:r,makeMappedContainer:(e=>nZ(e,((...e)=>e)))(z$(n,0,r)),render:B$(n,t,V$,e)},fn:{getDisplayName:H$}}},W$=({React:e,getSystem:t,getStore:n,getComponents:r})=>{let i={},a=parseInt(e?.version,10);return a>=16&&a<18&&(i.render=((e,t,n,r)=>i=>{let a=n(e,t,r)(`App`,`root`);Nn.default.render(B.createElement(a,null),i)})(t,n,V$,r)),{rootInjects:i}};function G$(e){let{fn:t}=e;return{statePlugins:{spec:{actions:{download:e=>({errActions:n,specSelectors:r,specActions:i,getConfigs:a})=>{let{fetch:o}=t,s=a();function c(t){if(t instanceof Error||t.status>=400)return i.updateLoadingStatus(`failed`),n.newThrownErr(Object.assign(Error((t.message||t.statusText)+` `+e),{source:`fetch`})),void(!t.status&&t instanceof Error&&function(){try{let t;if(`URL`in dq?t=new URL(e):(t=document.createElement(`a`),t.href=e),t.protocol!==`https:`&&dq.location.protocol===`https:`){let e=Object.assign(Error(`Possible mixed-content issue? The page was loaded over https:// but a ${t.protocol}// URL was specified. Check that you are not attempting to load mixed content.`),{source:`fetch`});n.newThrownErr(e);return}if(t.origin!==dq.location.origin){let e=Object.assign(Error(`Possible cross-origin (CORS) issue? The URL origin (${t.origin}) does not match the page (${dq.location.origin}). Check the server returns the correct 'Access-Control-Allow-*' headers.`),{source:`fetch`});n.newThrownErr(e)}}catch{return}}());i.updateLoadingStatus(`success`),i.updateSpec(t.text),r.url()!==e&&i.updateUrl(e)}e||=r.url(),i.updateLoadingStatus(`loading`),n.clear({source:`fetch`}),o({url:e,loadSpec:!0,requestInterceptor:s.requestInterceptor||(e=>e),responseInterceptor:s.responseInterceptor||(e=>e),credentials:`same-origin`,headers:{Accept:`application/json,*/*`}}).then(c,c)},updateLoadingStatus:e=>{let t=[null,`loading`,`failed`,`success`,`failedConfig`];return t.indexOf(e)===-1&&console.error(`Error: ${e} is not one of ${JSON.stringify(t)}`),{type:`spec_update_loading_status`,payload:e}}},reducers:{spec_update_loading_status:(e,t)=>typeof t.payload==`string`?e.set(`loadingStatus`,t.payload):e},selectors:{loadingStatus:ru((e=>e||(0,Q.Map)()),(e=>e.get(`loadingStatus`)||null))}}}}}var K$=()=>{JB.registerLanguage(`json`,ZB),JB.registerLanguage(`js`,YB),JB.registerLanguage(`xml`,QB),JB.registerLanguage(`yaml`,nV),JB.registerLanguage(`http`,rV),JB.registerLanguage(`bash`,eV),JB.registerLanguage(`powershell`,iV),JB.registerLanguage(`javascript`,YB)},q$={agate:aV,arta:oV,monokai:sV,nord:cV,obsidian:lV,"tomorrow-night":uV,idea:dV},J$=aV,Y$=({language:e,className:t=``,getConfigs:n,syntaxHighlighting:r={},children:i=``})=>{let a=n().syntaxHighlight.theme,{styles:o,defaultStyle:s}=r,c=o?.[a]??s;return B.createElement(JB,{language:e,className:t,style:c},i)},X$=`Copy code to clipboard`,Z$=({fileName:e=`response.txt`,className:t,downloadable:n,getComponent:r,canCopy:i,language:a,children:o})=>{let s=(0,B.useRef)(null),c=r(`SyntaxHighlighter`,!0),l=e=>{let{target:t,deltaY:n}=e,{scrollHeight:r,offsetHeight:i,scrollTop:a}=t;r>i&&(a===0&&n<0||i+a>=r&&n>0)&&e.preventDefault()};return(0,B.useEffect)((()=>{let e=Array.from(s.current.childNodes).filter((e=>!!e.nodeType&&e.classList.contains(`microlight`)));return e.forEach((e=>e.addEventListener(`mousewheel`,l,{passive:!1}))),()=>{e.forEach((e=>e.removeEventListener(`mousewheel`,l)))}}),[o,t,a]),B.createElement(`div`,{className:`highlight-code`,ref:s}
275,i&&B.createElement(`div`,{className:`copy-to-clipboard`,title:X$,"aria-label":X$},B.createElement(mp.CopyToClipboard,{text:o},B.createElement(`button`,{"aria-label":X$,title:X$,type:`button`}))),n?B.createElement(`button`,{className:`download-contents`,onClick:()=>{(0,vV.default)(o,e)}},`Download`):null,B.createElement(c,{language:a,className:(0,pp.default)(t,`microlight`),renderPlainText:({children:e,PlainTextViewer:n})=>B.createElement(n,{className:t},e)},o))},Q$=({className:e=``,children:t})=>B.createElement(`pre`,{className:(0,pp.default)(`microlight`,e)},t),$$=(e,t)=>({renderPlainText:n,children:r,...i})=>{let a=t.getConfigs().syntaxHighlight.activated,o=t.getComponent(`PlainTextViewer`);return a||typeof n!=`function`?a?B.createElement(e,i,r):B.createElement(o,null,r):n({children:r,PlainTextViewer:o})},e1=()=>({afterLoad:K$,rootInjects:{syntaxHighlighting:{styles:q$,defaultStyle:J$}},components:{SyntaxHighlighter:Y$,HighlightCode:Z$,PlainTextViewer:Q$}}),t1=()=>({wrapComponents:{SyntaxHighlighter:$$}}),n1=()=>[e1,t1],r1=()=>{let{GIT_DIRTY:e,GIT_COMMIT:t,PACKAGE_VERSION:n,BUILD_TIME:r}={PACKAGE_VERSION:`5.33.0`,GIT_COMMIT:`g94d58202`,GIT_DIRTY:!0,BUILD_TIME:`Wed, 16 Sep 2026 09:17:41 GMT`};dq.versions=dq.versions||{},dq.versions.swaggerUI={version:n,gitRevision:t,gitDirty:e,buildTimestamp:r}},i1=()=>({afterLoad:r1}),a1=console.error,o1=e=>t=>{let{getComponent:n,fn:r}=e(),i=n(`ErrorBoundary`),a=r.getDisplayName(t);class o extends B.Component{render(){return B.createElement(i,{targetName:a,getComponent:n,fn:r},B.createElement(t,sp({},this.props,this.context)))}}var s;return o.displayName=`WithErrorBoundary(${a})`,(s=t).prototype&&s.prototype.isReactComponent&&(o.prototype.mapStateToProps=t.prototype.mapStateToProps),o},s1=({name:e})=>B.createElement(`div`,{className:`fallback`},`ð± `,B.createElement(`i`,null,`Could not render `,e===`t`?`this component`:e,`, see the console.`)),c1=class extends B.Component{static defaultProps={targetName:`this component`,getComponent:()=>s1,fn:{componentDidCatch:a1},children:null};static getDerivedStateFromError(e){return{hasError:!0,error:e}}constructor(...e){super(...e),this.state={hasError:!1,error:null}}componentDidCatch(e,t){this.props.fn.componentDidCatch(e,t)}render(){let{getComponent:e,targetName:t,children:n}=this.props;if(this.state.hasError){let n=e(`Fallback`);return B.createElement(n,{name:t})}return n}},l1=({componentList:e=[],fullOverride:t=!1}={})=>({getSystem:n})=>{let r=t?e:[`App`,`BaseLayout`,`VersionPragmaFilter`,`InfoContainer`,`ServersContainer`,`SchemesContainer`,`AuthorizeBtnContainer`,`FilterContainer`,`Operations`,`OperationContainer`,`parameters`,`responses`,`OperationServers`,`Models`,`ModelWrapper`,...e],i=(0,yV.default)(r,Array(r.length).fill(((e,{fn:t})=>t.withErrorBoundary(e))));return{fn:{componentDidCatch:a1,withErrorBoundary:o1(n)},components:{ErrorBoundary:c1,Fallback:s1},wrapComponents:i}},u1=class extends B.Component{getLayout(){let{getComponent:e,layoutSelectors:t}=this.props,n=t.current();return e(n,!0)||(()=>B.createElement(`h1`,null,` No layout defined for "`,n,`" `))}render(){let e=this.getLayout();return B.createElement(e,null)}},d1=class extends B.Component{close=()=>{let{authActions:e}=this.props;e.showDefinitions(!1)};handleEscKeydown=e=>{e.key===`Escape`&&this.close()};componentDidMount(){document.addEventListener(`keydown`,this.handleEscKeydown)}componentWillUnmount(){document.removeEventListener(`keydown`,this.handleEscKeydown)}render(){let{authSelectors:e,authActions:t,getComponent:n,errSelectors:r,specSelectors:i,fn:{AST:a={}}}=this.props,o=e.shownDefinitions(),s=n(`auths`),c=n(`CloseIcon`);return B.createElement(`div`,{className:`dialog-ux`},B.createElement(`div`,{className:`backdrop-ux`,onClick:this.close}),B.createElement(`div`,{className:`modal-ux`},B.createElement(`div`,{className:`modal-dialog-ux`},B.createElement(`div`,{className:`modal-ux-inner`},B.createElement(`div`,{className:`modal-ux-header`},B.createElement(`h3`,null,`Available authorizations`),B.createElement(`button`,{type:`button`,className:`close-modal`,onClick:this.close},B.createElement(c,null))),B.createElement(`div`,{className:`modal-ux-content`},o.valueSeq().map(((o,c)=>B.createElement(s,{key:c,AST:a,definitions:o,getComponent:n,errSelectors:r,authSelectors:e,authActions:t,specSelectors:i}))))))))}},f1=class extends B.Component{render(){let{isAuthorized:e,showPopup:t,onClick:n,getComponent:r}=this.props,i=r(`authorizationPopup`,!0),a=r(`LockAuthIcon`,!0),o=r(`UnlockAuthIcon`,!0);return B.createElement(`div`,{className:`auth-wrapper`}
275,B.createElement(`button`,{className:e?`btn authorize locked`:`btn authorize unlocked`,onClick:n},B.createElement(`span`,null,`Authorize`),e?B.createElement(a,null):B.createElement(o,null)),t&&B.createElement(i,null))}},p1=class extends B.Component{render(){let{authActions:e,authSelectors:t,specSelectors:n,getComponent:r}=this.props,i=n.securityDefinitions(),a=t.definitionsToAuthorize(),o=r(`authorizeBtn`);return i?B.createElement(o,{onClick:()=>e.showDefinitions(a),isAuthorized:!!t.authorized().size,showPopup:!!t.shownDefinitions(),getComponent:r}):null}},m1=class extends B.Component{onClick=e=>{e.stopPropagation();let{onClick:t}=this.props;t&&t()};render(){let{isAuthorized:e,getComponent:t}=this.props,n=t(`LockAuthOperationIcon`,!0),r=t(`UnlockAuthOperationIcon`,!0);return B.createElement(`button`,{className:`authorization__btn`,"aria-label":e?`authorization button locked`:`authorization button unlocked`,onClick:this.onClick},e?B.createElement(n,{className:`locked`}):B.createElement(r,{className:`unlocked`}))}},h1=class extends B.Component{constructor(e,t){super(e,t),this.state={}}onAuthChange=e=>{let{name:t}=e;this.setState({[t]:e})};submitAuth=e=>{e.preventDefault();let{authActions:t}=this.props;t.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:t,definitions:n}=this.props,r=n.keySeq().toArray();this.setState(r.reduce(((e,t)=>(e[t]=``,e)),{})),t.logoutWithPersistOption(r)};close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};render(){let{definitions:e,getComponent:t,authSelectors:n,errSelectors:r}=this.props,i=t(`AuthItem`),a=t(`oauth2`,!0),o=t(`Button`),s=n.authorized(),c=e.filter(((e,t)=>!!s.get(t))),l=e.filter((e=>e.get(`type`)!==`oauth2`)),u=e.filter((e=>e.get(`type`)===`oauth2`));return B.createElement(`div`,{className:`auth-container`},!!l.size&&B.createElement(`form`,{onSubmit:this.submitAuth},l.map(((e,a)=>B.createElement(i,{key:a,schema:e,name:a,getComponent:t,onAuthChange:this.onAuthChange,authorized:s,errSelectors:r,authSelectors:n}))).valueSeq().toArray(),B.createElement(`div`,{className:`auth-btn-wrapper`},l.size===c.size?B.createElement(o,{className:`btn modal-btn auth`,onClick:this.logoutClick,"aria-label":`Remove authorization`},`Logout`):B.createElement(o,{type:`submit`,className:`btn modal-btn auth authorize`,"aria-label":`Apply credentials`},`Authorize`),B.createElement(o,{className:`btn modal-btn auth btn-done`,onClick:this.close},`Close`))),u&&u.size?B.createElement(`div`,null,B.createElement(`div`,{className:`scope-def`},B.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.`),B.createElement(`p`,null,`API requires the following scopes. Select which ones you want to grant to Swagger UI.`)),e.filter((e=>e.get(`type`)===`oauth2`)).map(((e,t)=>B.createElement(`div`,{key:t},B.createElement(a,{authorized:s,schema:e,name:t})))).valueSeq().toArray()):null)}},g1=class extends B.Component{render(){let{schema:e,name:t,getComponent:n,onAuthChange:r,authorized:i,errSelectors:a,authSelectors:o}=this.props,s=n(`apiKeyAuth`),c=n(`basicAuth`),l,u=e.get(`type`);switch(u){case`apiKey`:l=B.createElement(s,{key:t,schema:e,name:t,errSelectors:a,authorized:i,getComponent:n,onChange:r,authSelectors:o});break;case`basic`:l=B.createElement(c,{key:t,schema:e,name:t,errSelectors:a,authorized:i,getComponent:n,onChange:r,authSelectors:o});break;default:l=B.createElement(`div`,{key:t},`Unknown security definition type `,u)}return B.createElement(`div`,{key:`${t}-jump`},l)}},_1=class extends B.Component{render(){let{error:e}=this.props,t=e.get(`level`),n=e.get(`message`),r=e.get(`source`);return B.createElement(`div`,{className:`errors`},B.createElement(`b`,null,r,` `,t),B.createElement(`span`,null,n))}},v1=class extends B.Component{constructor(e,t){super(e,t);let{name:n,schema:r}=this.props,i=this.getValue();this.state={name:n,schema:r,value:i}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,`value`])}onChange=e=>{let{onChange:t}=this.props,n=e.target.value,r=Object.assign({},this.state,{value:n});this.setState(r),t(r)};render(){let{schema:e,getComponent:t,errSelectors:n,name:r,authSelectors:i}=this.props,a=t(`Input`),o=t(`Row`),s=t(`Col`),c=t(`authError`),l=t(`Markdown`,!0),u=t(`JumpToPath`,!0),d=i.selectAuthPath(r),f=this.getValue(),p=n.allErrors().filter((e=>e.get(`authId`)===r));return B.createElement(`div`,null,B.createElement(`h4`,null,B.createElement(`code`,null,r||e.get(`name`)),`\xA0(apiKey)`,B.createElement(u,{path:d})),f&&B.createElement(`h6`,null,`Authorized`),B.createElement(o,null,B.createElement(l,{source:e.get(`description`)})),B.createElement(o,null,B.createElement(`p`,null,`Name: `,B.createElement(`code`,null,e.get(`name`)))),B.createElement(o,null,B.createElement(`p`,null,`In: `,B.createElement(`code`,null,e.get(`in`)))),B.createElement(o,null,B.createElement(`label`,{htmlFor:`api_key_value`}
275,`Value:`),f?B.createElement(`code`,null,` ****** `):B.createElement(s,null,B.createElement(a,{id:`api_key_value`,type:`text`,onChange:this.onChange,autoFocus:!0}))),p.valueSeq().map(((e,t)=>B.createElement(c,{error:e,key:t}))))}},y1=class extends B.Component{constructor(e,t){super(e,t);let{schema:n,name:r}=this.props,i=this.getValue().username;this.state={name:r,schema:n,value:i?{username:i}:{}}}getValue(){let{authorized:e,name:t}=this.props;return e&&e.getIn([t,`value`])||{}}onChange=e=>{let{onChange:t}=this.props,{value:n,name:r}=e.target,i=this.state.value;i[r]=n,this.setState({value:i}),t(this.state)};render(){let{schema:e,getComponent:t,name:n,errSelectors:r,authSelectors:i}=this.props,a=t(`Input`),o=t(`Row`),s=t(`Col`),c=t(`authError`),l=t(`JumpToPath`,!0),u=t(`Markdown`,!0),d=i.selectAuthPath(n),f=this.getValue().username,p=r.allErrors().filter((e=>e.get(`authId`)===n));return B.createElement(`div`,null,B.createElement(`h4`,null,`Basic authorization`,B.createElement(l,{path:d})),f&&B.createElement(`h6`,null,`Authorized`),B.createElement(o,null,B.createElement(u,{source:e.get(`description`)})),B.createElement(o,null,B.createElement(`label`,{htmlFor:`auth_username`},`Username:`),f?B.createElement(`code`,null,` `,f,` `):B.createElement(s,null,B.createElement(a,{id:`auth_username`,type:`text`,required:`required`,name:`username`,onChange:this.onChange,autoFocus:!0}))),B.createElement(o,null,B.createElement(`label`,{htmlFor:`auth_password`},`Password:`),f?B.createElement(`code`,null,` ****** `):B.createElement(s,null,B.createElement(a,{id:`auth_password`,autoComplete:`new-password`,name:`password`,type:`password`,onChange:this.onChange}))),p.valueSeq().map(((e,t)=>B.createElement(c,{error:e,key:t}))))}};function b1(e){let{example:t,showValue:n,getComponent:r}=e,i=r(`Markdown`,!0),a=r(`HighlightCode`,!0);return t&&Q.Map.isMap(t)?B.createElement(`div`,{className:`example`},t.get(`description`)?B.createElement(`section`,{className:`example__section`},B.createElement(`div`,{className:`example__section-header`},`Example Description`),B.createElement(`p`,null,B.createElement(i,{source:t.get(`description`)}))):null,n&&t.has(`value`)?B.createElement(`section`,{className:`example__section`},B.createElement(`div`,{className:`example__section-header`},`Example Value`),B.createElement(a,null,Wq(t.get(`value`)))):null):null}var x1=class extends B.PureComponent{static defaultProps={examples:(0,Q.Map)({}),onSelect:(...e)=>console.log(`DEBUG: ExamplesSelect was not given an onSelect callback`,...e),currentExampleKey:null,showLabels:!0};_onSelect=(e,{isSyntheticChange:t=!1}={})=>{typeof this.props.onSelect==`function`&&this.props.onSelect(e,{isSyntheticChange:t})};_onDomSelect=e=>{if(typeof this.props.onSelect==`function`){let t=e.target.selectedOptions[0].getAttribute(`value`);this._onSelect(t,{isSyntheticChange:!1})}};getCurrentExample=()=>{let{examples:e,currentExampleKey:t}=this.props,n=e.get(t),r=e.keySeq().first(),i=e.get(r);return n||i||(0,Q.Map)({})};componentDidMount(){let{onSelect:e,examples:t}=this.props;if(typeof e==`function`){let e=t.first(),n=t.keyOf(e);this._onSelect(n,{isSyntheticChange:!0})}}UNSAFE_componentWillReceiveProps(e){let{currentExampleKey:t,examples:n}=e;if(n!==this.props.examples&&!n.has(t)){let e=n.first(),t=n.keyOf(e);this._onSelect(t,{isSyntheticChange:!0})}}render(){let{examples:e,currentExampleKey:t,isValueModified:n,isModifiedValueAvailable:r,showLabels:i}=this.props;return B.createElement(`div`,{className:`examples-select`},i?B.createElement(`span`,{className:`examples-select__section-label`},`Examples: `):null,B.createElement(`select`,{className:`examples-select-element`,onChange:this._onDomSelect,value:r&&n?`__MODIFIED__VALUE__`:t||``},r?B.createElement(`option`,{value:`__MODIFIED__VALUE__`},`[Modified value]`):null,e.map(((e,t)=>B.createElement(`option`,{key:t,value:t},Q.Map.isMap(e)&&e.get(`summary`)||t))).valueSeq()))}},S1=e=>Q.List.isList(e)?e:Wq(e),C1=class extends B.PureComponent{static defaultProps={userHasEditedBody:!1,examples:(0,Q.Map)({}),currentNamespace:`__DEFAULT__NAMESPACE__`,setRetainRequestBodyValueFlag:()=>{},onSelect:(...e)=>console.log("ExamplesSelectValueRetainer: no `onSelect` function was provided",...e),updateV
275alue:(...e)=>console.log("ExamplesSelectValueRetainer: no `updateValue` function was provided",...e)};constructor(e){super(e);let t=this._getCurrentExampleValue();this.state={[e.currentNamespace]:(0,Q.Map)({lastUserEditedValue:this.props.currentUserInputValue,lastDownstreamValue:t,isModifiedValueSelected:this.props.userHasEditedBody||this.props.currentUserInputValue!==t})}}componentWillUnmount(){this.props.setRetainRequestBodyValueFlag(!1)}_getStateForCurrentNamespace=()=>{let{currentNamespace:e}=this.props;return(this.state[e]||(0,Q.Map)()).toObject()};_setStateForCurrentNamespace=e=>{let{currentNamespace:t}=this.props;return this._setStateForNamespace(t,e)};_setStateForNamespace=(e,t)=>{let n=(this.state[e]||(0,Q.Map)()).merge(t);return this.setState({[e]:n})};_isCurrentUserInputSameAsExampleValue=()=>{let{currentUserInputValue:e}=this.props;return this._getCurrentExampleValue()===e};_getValueForExample=(e,t)=>{let{examples:n}=t||this.props;return S1((n||(0,Q.Map)({})).getIn([e,`value`]))};_getCurrentExampleValue=e=>{let{currentKey:t}=e||this.props;return this._getValueForExample(t,e||this.props)};_onExamplesSelect=(e,{isSyntheticChange:t}={},...n)=>{let{onSelect:r,updateValue:i,currentUserInputValue:a,userHasEditedBody:o}=this.props,{lastUserEditedValue:s}=this._getStateForCurrentNamespace(),c=this._getValueForExample(e);if(e===`__MODIFIED__VALUE__`)return i(S1(s)),this._setStateForCurrentNamespace({isModifiedValueSelected:!0});typeof r==`function`&&r(e,{isSyntheticChange:t},...n),this._setStateForCurrentNamespace({lastDownstreamValue:c,isModifiedValueSelected:t&&o||!!a&&a!==c}),t||typeof i==`function`&&i(S1(c))};UNSAFE_componentWillReceiveProps(e){let{currentUserInputValue:t,examples:n,onSelect:r,userHasEditedBody:i}=e,{lastUserEditedValue:a,lastDownstreamValue:o}=this._getStateForCurrentNamespace(),s=this._getValueForExample(e.currentKey,e),c=n.filter((e=>Q.Map.isMap(e)&&(e.get(`value`)===t||Wq(e.get(`value`))===t)));if(c.size){let t;t=c.has(e.currentKey)?e.currentKey:c.keySeq().first(),r(t,{isSyntheticChange:!0})}else t!==this.props.currentUserInputValue&&t!==a&&t!==o&&(this.props.setRetainRequestBodyValueFlag(!0),this._setStateForNamespace(e.currentNamespace,{lastUserEditedValue:e.currentUserInputValue,isModifiedValueSelected:i||t!==s}))}render(){let{currentUserInputValue:e,examples:t,currentKey:n,getComponent:r,userHasEditedBody:i}=this.props,{lastDownstreamValue:a,lastUserEditedValue:o,isModifiedValueSelected:s}=this._getStateForCurrentNamespace(),c=r(`ExamplesSelect`);return B.createElement(c,{examples:t,currentExampleKey:n,onSelect:this._onExamplesSelect,isModifiedValueAvailable:!!o&&o!==a,isValueModified:e!==void 0&&s&&e!==this._getCurrentExampleValue()||i})}};function w1({auth:e,authActions:t,errActions:n,configs:r,authConfigs:i={},currentServer:a}){let{schema:o,scopes:s,name:c,clientId:l}=e,u=o.get(`flow`),d=[];switch(u){case`password`:t.authorizePassword(e);return;case`application`:case`clientCredentials`:case`client_credentials`:t.authorizeApplication(e);return;case`accessCode`:case`authorizationCode`:case`authorization_code`:d.push(`response_type=code`);break;case`implicit`:d.push(`response_type=token`)}typeof l==`string`&&d.push(`client_id=`+encodeURIComponent(l));let f=r.oauth2RedirectUrl;if(f===void 0)return void n.newAuthErr({authId:c,source:`validation`,level:`error`,message:`oauth2RedirectUrl configuration is not passed. Oauth2 authorization cannot be performed.`});d.push(`redirect_uri=`+encodeURIComponent(f));let p=[];if(Array.isArray(s)?p=s:Q.List.isList(s)&&(p=s.toArray()),p.length>0){let e=i.scopeSeparator||` `;d.push(`scope=`+encodeURIComponent(p.join(e)))}let m=Nq(new Date);if(d.push(`state=`+encodeURIComponent(m)),i.realm!==void 0&&d.push(`realm=`+encodeURIComponent(i.realm)),(u===`authorizationCode`||u===`authorization_code`||u===`accessCode`)&&i.usePkceWithAuthorizationCodeGrant){let t=function(){return qq(pq()(32).toString(`base64`))}(),n=function(e){return qq(hq()(`sha256`).update(e).digest(`base64`))}(t);d.push(`code_challenge=`+n),d.push(`code_challenge_method=S256`),e.codeVerifier=t}let{additionalQueryStringParams:h}=i;for(let e in h)h[e]!==void 0&&d.push([e,h[e]].map(encodeURIComponent).join(`=`));let g=o.get(`authorizationUrl`),_;_=a?(0,Wl.default)(kX(g),a,!0).toString():kX(g);let v,y=[_,d.join(`&`)].join(typeof g!=`string`||g.includes(`?`)?`&`:`?`);v=u===`implicit`?t.preAuthorizeImplicit:i.useBasicAuthenticationWithAccessCodeGrant?t.authorizeAccessCodeWithBasicAuthentication:t.authorizeAccessCodeWithFormParams,t.authPopup(y,{auth:e,state:m,redirectUrl:f,callback:v,errCb:n.newAuthErr})}var T1=class extends B.Component{constructor(e,t){super(e,t);let{name:n,schema:r,authorized:i,authSelectors:a}=this.props,o=i&&i.get(n),s=a.getConfigs()||{},c=o&&o.get(`username`)||``,l=o&&o.get(`clientId`)||s.clientId||``,u=o&&o.get(`clientSecret`)||s.clientSecret||``,d=o&&o.get(`passwordType`)||`basic`,f=o&&o.get(`scopes`)||s.scopes||[];typeof f==`string`&&(f=f.split(s.scopeSeparator||` `)),this.state={appName:s.appName,name:n,schema:r,scopes:f,clientId:l,clientSecret:u,username:c,password:``,passwordType:d}}close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};authorize=()=>{let{authActions:e,errActions:t,getConfigs:n,authSelectors:r,oas3Selectors:i}=this.props,a=n(),o=r.getConfigs();t.clear({authId:name,type:`auth`,source:`auth`}),w1({auth:this.state,currentServer:i.serverEffectiveValue(i.selectedServer()),authActions:e,errActions:t,configs:a,authConfigs:o})};onScopeChange=e=>{let{target:t}=e,{checked:n}=t,r=t.dataset.value;if(n&&this.state.scopes.indexOf(r)===-1){let e=this.state.scopes.concat([r]);this.setState({scopes:e})}else!n&&this.state.scopes.indexOf(r)>-1&&this.setState({scopes:this.state.scopes.filter((e=>e!==r))})};onInputChange=e=>{let{target:{dataset:{name:t},value:n}}=e,r={[t]:n};this.setState(r)};selectScopes=e=>{e.target.dataset.all?this.setState({scopes:Array.from((this.props.schema.get(`allowedScopes`)||this.props.schema.get(`scopes`)).keys())}):this.setState({scopes:[]})};logout=e=>{e.preventDefault();let{authActions:t,errActions:n,name:r}=this.props;n.clear({authId:r,type:`auth`,source:`auth`}),t.logoutWithPersistOption([r])};render(){let{schema:e,getComponent:t,authSelectors:n,errSelectors:r,name:i,specSelectors:a}=this.props,o=t(`Input`),s=t(`Row`),c=t(`Col`),l=t(`Button`),u=t
vendor: 5,685 bytes, line 275
275(`authError`),d=t(`JumpToPath`,!0),f=t(`Markdown`,!0),p=t(`InitializedInput`),{isOAS3:m}=a,h=m()?e.get(`openIdConnectUrl`):null,g=`implicit`,_=`password`,v=m()?h?`authorization_code`:`authorizationCode`:`accessCode`,y=m()?h?`client_credentials`:`clientCredentials`:`application`,b=n.selectAuthPath(i),x=!!(n.getConfigs()||{}).usePkceWithAuthorizationCodeGrant,S=e.get(`flow`),C=S===v&&x?S+` with PKCE`:S,w=e.get(`allowedScopes`)||e.get(`scopes`),T=!!n.authorized().get(i),E=r.allErrors().filter((e=>e.get(`authId`)===i)),D=!E.filter((e=>e.get(`source`)===`validation`)).size,O=e.get(`description`);return B.createElement(`div`,null,B.createElement(`h4`,null,i,` (OAuth2, `,C,`) `,B.createElement(d,{path:b})),this.state.appName?B.createElement(`h5`,null,`Application: `,this.state.appName,` `):null,O&&B.createElement(f,{source:e.get(`description`)}),T&&B.createElement(`h6`,null,`Authorized`),h&&B.createElement(`p`,null,`OpenID Connect URL: `,B.createElement(`code`,null,h)),(S===g||S===v)&&B.createElement(`p`,null,`Authorization URL: `,B.createElement(`code`,null,e.get(`authorizationUrl`))),(S===_||S===v||S===y)&&B.createElement(`p`,null,`Token URL:`,B.createElement(`code`,null,` `,e.get(`tokenUrl`))),B.createElement(`p`,{className:`flow`},`Flow: `,B.createElement(`code`,null,C)),S===_?B.createElement(s,null,B.createElement(s,null,B.createElement(`label`,{htmlFor:`oauth_username`},`username:`),T?B.createElement(`code`,null,` `,this.state.username,` `):B.createElement(c,{tablet:10,desktop:10},B.createElement(`input`,{id:`oauth_username`,type:`text`,"data-name":`username`,onChange:this.onInputChange,autoFocus:!0}))),B.createElement(s,null,B.createElement(`label`,{htmlFor:`oauth_password`},`password:`),T?B.createElement(`code`,null,` ****** `):B.createElement(c,{tablet:10,desktop:10},B.createElement(`input`,{id:`oauth_password`,type:`password`,"data-name":`password`,onChange:this.onInputChange}))),B.createElement(s,null,B.createElement(`label`,{htmlFor:`password_type`},`Client credentials location:`),T?B.createElement(`code`,null,` `,this.state.passwordType,` `):B.createElement(c,{tablet:10,desktop:10},B.createElement(`select`,{id:`password_type`,"data-name":`passwordType`,onChange:this.onInputChange},B.createElement(`option`,{value:`basic`},`Authorization header`),B.createElement(`option`,{value:`request-body`},`Request body`))))):null,(S===y||S===g||S===v||S===_)&&(!T||T&&this.state.clientId)&&B.createElement(s,null,B.createElement(`label`,{htmlFor:`client_id_${S}`},`client_id:`),T?B.createElement(`code`,null,` ****** `):B.createElement(c,{tablet:10,desktop:10},B.createElement(p,{id:`client_id_${S}`,type:`text`,required:S===_,initialValue:this.state.clientId,"data-name":`clientId`,onChange:this.onInputChange}))),(S===y||S===v||S===_)&&B.createElement(s,null,B.createElement(`label`,{htmlFor:`client_secret_${S}`},`client_secret:`),T?B.createElement(`code`,null,` ****** `):B.createElement(c,{tablet:10,desktop:10},B.createElement(p,{id:`client_secret_${S}`,initialValue:this.state.clientSecret,type:`password`,"data-name":`clientSecret`,onChange:this.onInputChange}))),!T&&w&&w.size?B.createElement(`div`,{className:`scopes`},B.createElement(`h2`,null,`Scopes:`,B.createElement(`a`,{onClick:this.selectScopes,"data-all":!0},`select all`),B.createElement(`a`,{onClick:this.selectScopes},`select none`)),w.map(((e,t)=>B.createElement(s,{key:t},B.createElement(`div`,{className:`checkbox`},B.createElement(o,{"data-value":t,id:`${t}-${S}-checkbox-${this.state.name}`,disabled:T,checked:this.state.scopes.includes(t),type:`checkbox`,onChange:this.onScopeChange}),B.createElement(`label`,{htmlFor:`${t}-${S}-checkbox-${this.state.name}`},B.createElement(`span`,{className:`item`}),B.createElement(`div`,{className:`text`},B.createElement(`p`,{className:`name`},t),B.createElement(`p`,{className:`description`},e))))))).valueSeq().toArray()):null,E.valueSeq().map(((e,t)=>B.createElement(u,{error:e,key:t}))),B.createElement(`div`,{className:`auth-btn-wrapper`},D&&(T?B.createElement(l,{className:`btn modal-btn auth authorize`,onClick:this.logout,"aria-label":`Remove authorization`},`Logout`):B.createElement(l,{className:`btn modal-btn auth authorize`,onClick:this.authorize,"aria-label":`Apply given OAuth2 credentials`},`Authorize`)),B.createElement(l,{className:`btn modal-btn auth btn-done`,onClick:this.close},`Close`)))}},E1=class extends B.Component{onClick=()=>{let{specActions:e,path:t,method:n}=this.props;e.clearResponse(t,n),e.clearRequest(t,n)};render(){return B.createElement(`button`,{className:`btn btn-clear opblock-control__btn`,onClick:this.onClick},`Clear`)}},D1=({headers:e})=>B.createElement(`div`,null,B.createElement(`h5`,null,`Response headers`),B.createElement(`pre`,{className:`microlight`},e)),O1=({duration:e})=>B.createElement(`div`,null,B.createElement(`h5`,null,`Request duration`),B.createElement(`pre`,{className:`microlight`},e,` ms`)),k1=class extends B.Component{shouldComponentUpdate(e){return this.props.response!==e.response||this.props.path!==e.path||this.props.method!==e.method||this.props.displayRequestDuration!==e.displayRequestDuration}render(){let{response:e,getComponent:t,getConfigs:n,displayRequestDuration:r,specSelectors:i,path:a,method:o}=this.props,{showMutatedRequest:s,requestSnippetsEnabled:c}=n(),l=s?i.mutatedRequestFor(a,o):i.requestFor(a,o),u=e.get(`status`),d=l.get(`url`),f=e.get(`headers`).toJS(),p=e.get(`notDocumented`),m=e.get(`error`),h=e.get(`text`),g=e.get(`duration`),_=Object.keys(f),v=f[`content-type`]||f[`Content-Type`],y=t(`responseBody`),b=_.map((e=>{var t=Array.isArray(f[e])?f[e].join():f[e];return B.createElement(`span`,{className:`headerline`,key:e},` `,e,`: `,t,` `)}
275)),x=b.length!==0,S=t(`Markdown`,!0),C=t(`RequestSnippets`,!0),w=t(`curl`,!0);return B.createElement(`div`,null,l&&c?B.createElement(C,{request:l}):B.createElement(w,{request:l}),d&&B.createElement(`div`,null,B.createElement(`div`,{className:`request-url`},B.createElement(`h4`,null,`Request URL`),B.createElement(`pre`,{className:`microlight`},d))),B.createElement(`h4`,null,`Server response`),B.createElement(`table`,{className:`responses-table live-responses-table`},B.createElement(`thead`,null,B.createElement(`tr`,{className:`responses-header`},B.createElement(`td`,{className:`col_header response-col_status`},`Code`),B.createElement(`td`,{className:`col_header response-col_description`},`Details`))),B.createElement(`tbody`,null,B.createElement(`tr`,{className:`response`},B.createElement(`td`,{className:`response-col_status`},u,p?B.createElement(`div`,{className:`response-undocumented`},B.createElement(`i`,null,` Undocumented `)):null),B.createElement(`td`,{className:`response-col_description`},m?B.createElement(S,{source:`${e.get(`name`)===``?``:`${e.get(`name`)}: `}${e.get(`message`)}`}):null,h?B.createElement(y,{content:h,contentType:v,url:d,headers:f,getConfigs:n,getComponent:t}):null,x?B.createElement(D1,{headers:b}):null,r&&g?B.createElement(O1,{duration:g}):null)))))}},A1=class extends B.Component{constructor(e,t){super(e,t);let{getConfigs:n}=e,{validatorUrl:r}=n();this.state={url:this.getDefinitionUrl(),validatorUrl:r===void 0?`https://validator.swagger.io/validator`:r}}getDefinitionUrl=()=>{let{specSelectors:e}=this.props;return new Wl.default(e.url(),dq.location).toString()};UNSAFE_componentWillReceiveProps(e){let{getConfigs:t}=e,{validatorUrl:n}=t();this.setState({url:this.getDefinitionUrl(),validatorUrl:n===void 0?`https://validator.swagger.io/validator`:n})}render(){let{getConfigs:e}=this.props,{spec:t}=e(),n=kX(this.state.validatorUrl);return typeof t==`object`&&Object.keys(t).length?null:this.state.url&&Lq(this.state.validatorUrl)&&Lq(this.state.url)?B.createElement(`span`,{className:`float-right`},B.createElement(`a`,{target:`_blank`,rel:`noopener noreferrer`,href:`${n}/debug?url=${encodeURIComponent(this.state.url)}`},B.createElement(j1,{src:`${n}?url=${encodeURIComponent(this.state.url)}`,alt:`Online validator badge`}))):null}},j1=class extends B.Component{constructor(e){super(e),this.state={loaded:!1,error:!1}}componentDidMount(){let e=new Image;e.onload=()=>{this.setState({loaded:!0})},e.onerror=()=>{this.setState({error:!0})},e.src=this.props.src}UNSAFE_componentWillReceiveProps(e){if(e.src!==this.props.src){let t=new Image;t.onload=()=>{this.setState({loaded:!0})},t.onerror=()=>{this.setState({error:!0})},t.src=e.src}}render(){return this.state.error?B.createElement(`img`,{alt:`Error`}):this.state.loaded?B.createElement(`img`,{src:this.props.src,alt:this.props.alt}):null}},M1=({specSelectors:e,getComponent:t,oas3Selectors:n,layoutSelectors:r,layoutActions:i,getConfigs:a})=>{let o=e.taggedOperations(),s=e.validOperationMethods(),{docExpansion:c}=a(),l=c===`full`||c===`list`,u=o.keySeq().map((e=>r.isShown([`operations-tag`,e],l))).join(`,`),d=(0,B.useMemo)((()=>{let e=[];return o.entrySeq().forEach((([t,n])=>{e.push({type:`tag`,tag:t,tagObj:n}),r.isShown([`operations-tag`,t],l)&&n.get(`operations`).forEach((n=>{let r=n.get(`method`);if(s.indexOf(r)===-1)return;let i=n.get(`path`),a=n.getIn([`operation`,`__originalOperationId`])||n.getIn([`operation`,`operationId`])||DD(n.get(`operation`),i,r)||n.get(`id`);e.push({type:`operation`,tag:t,op:n,method:r,path:i,specPath:n.get(`specPath`),operationId:a})}))})),e}),[o,s,l,u]),f=d.length>=150,[p,m]=(0,B.useState)(null),[h,g]=(0,B.useState)(0),_=(0,B.useRef)(null);(0,B.useLayoutEffect)((()=>{let e=_.current;if(!e)return;let t=(e=>{let t=e.parentElement;for(;t&&t!==document.documentElement;){let{overflow:e,overflowY:n}=getComputedStyle(t);if(/(auto|scroll)/.test(e+n))return t;t=t.parentElement}return document.documentElement})(e);t===document.documentElement||m(t);let n=()=>{g(e.offsetTop)},r=requestAnimationFrame(n),i=()=>{cancelAnimationFrame(r),r=requestAnimationFrame(n)};return window.addEventListener(`resize`,i),()=>{cancelAnimationFrame(r),window.removeEventListener(`resize`,i)}}),[]);let v=p===null,y=lm({enabled:v,count:v&&f?d.length:0,estimateSize:e=>d[e]?.type===`tag`?70:60,overscan:3,scrollMargin:h,getItemKey:e=>{let t=d[e];return t.type===`tag`?`tag-${t.tag}`:`op-${t.tag}-${t.path}-${t.method}`}}),b=cm({enabled:!v,count:!v&&f?d.length:0,estimateSize:e=>d[e]?.type===`tag`?70:60,overscan:3,getScrollElement:()=>p,scrollMargin:h,getItemKey:e=>{let t=d[e];return t.type===`tag`?`tag-${t.tag}`:`op-${t.tag}-${t.path}-${t.method}`}}),x=v?y:b,S=r.getScrollToVirtualizedOperation();if((0,B.useEffect)((()=>
275{if(!S||!f)return;let[e,t,n]=S.toJS(),r=-1,a=[t,t?.replaceAll(`_`,` `)].filter(Boolean);e===`operations`?r=d.findIndex((e=>e.type===`operation`&&a.includes(e.tag)&&e.operationId===n)):e===`operations-tag`&&(r=d.findIndex((e=>e.type===`tag`&&a.includes(e.tag)))),r!==-1&&x.scrollToIndex(r,{align:`start`}),i.clearScrollToVirtualizedOperation(),i.clearScrollTo()}),[S,d,x,f,i]),o.size===0)return B.createElement(`h3`,null,` No operations defined in spec!`);let C=t(`OperationContainer`,!0),w=t(`OperationTag`);if(!f)return B.createElement(`div`,null,o.map(((o,c)=>B.createElement(w,{key:`operation-`+c,tagObj:o,tag:c,oas3Selectors:n,layoutSelectors:r,layoutActions:i,getConfigs:a,getComponent:t,specUrl:e.url()},B.createElement(`div`,{className:`operation-tag-content`},o.get(`operations`).map((e=>{let t=e.get(`path`),n=e.get(`method`),r=e.get(`specPath`);return s.indexOf(n)===-1?null:B.createElement(C,{key:`${t}-${n}`,specPath:r,op:e,path:t,method:n,tag:c})})).toArray())))).valueSeq().toArray());let T=x.getVirtualItems(),E=x.options.scrollMargin??0,D=T.length>0?T[0].start-E:0,O=x.getTotalSize()-(T.length>0?T.at(-1).end-E:0);return B.createElement(`div`,{ref:_,className:`operations-virtual`},B.createElement(`div`,{className:`operations-virtual__list`,style:{paddingTop:D,paddingBottom:O}},T.map((o=>{let s=d[o.index];return B.createElement(`div`,{key:o.key,"data-index":o.index,ref:x.measureElement,className:`operations-virtual__item`},s.type===`tag`?B.createElement(w,{tagObj:s.tagObj,tag:s.tag,oas3Selectors:n,layoutSelectors:r,layoutActions:i,getConfigs:a,getComponent:t,specUrl:e.url()}):B.createElement(C,{specPath:s.specPath,op:s.op,path:s.path,method:s.method,tag:s.tag}))}))))},N1=class extends B.Component{static defaultProps={tagObj:(0,Q.fromJS)({}),tag:``};render(){let{tagObj:e,tag:t,children:n,oas3Selectors:r,layoutSelectors:i,layoutActions:a,getConfigs:o,getComponent:s,specUrl:c}=this.props,{docExpansion:l,deepLinking:u}=o(),d=s(`Collapse`),f=s(`Markdown`,!0),p=s(`DeepLink`),m=s(`Link`),h=s(`ArrowUpIcon`),g=s(`ArrowDownIcon`),_,v=e.getIn([`tagDetails`,`description`],null),y=e.getIn([`tagDetails`,`externalDocs`,`description`]),b=e.getIn([`tagDetails`,`externalDocs`,`url`]);_=Eq(r)&&Eq(r.selectedServer)?OX(b,c,{selectedServer:r.selectedServer()}):b;
275let x=[`operations-tag`,t],S=i.isShown(x,l===`full`||l===`list`),C=B.createElement(`h3`,{onClick:()=>a.show(x,!S),className:v?`opblock-tag`:`opblock-tag no-desc`,id:x.map((e=>zq(e))).join(`-`),"data-tag":t,"data-is-open":S},B.createElement(p,{enabled:u,isShown:S,path:Rq(t),text:t}),v?B.createElement(`small`,null,B.createElement(f,{source:v})):B.createElement(`small`,null),_?B.createElement(`div`,{className:`info__externaldocs`},B.createElement(`small`,null,B.createElement(m,{href:kX(_),onClick:e=>e.stopPropagation(),target:`_blank`},y||_))):null,B.createElement(`button`,{"aria-expanded":S,className:`expand-operation`,title:S?`Collapse operation`:`Expand operation`,onClick:()=>a.show(x,!S)},S?B.createElement(h,{className:`arrow`}):B.createElement(g,{className:`arrow`})));return n==null?C:B.createElement(`div`,{className:S?`opblock-tag-section is-open`:`opblock-tag-section`},C,B.createElement(d,{isOpened:S},n))}},P1=class extends B.PureComponent{static defaultProps={operation:null,response:null,request:null,specPath:(0,Q.List)(),summary:``};render(){let{specPath:e,response:t,request:n,toggleShown:r,onTryoutClick:i,onResetClick:a,onCancelClick:o,onExecute:s,fn:c,getComponent:l,getConfigs:u,specActions:d,specSelectors:f,authActions:p,authSelectors:m,oas3Actions:h,oas3Selectors:g}=this.props,_=this.props.operation,{deprecated:v,isShown:y,path:b,method:x,op:S,tag:C,operationId:w,allowTryItOut:T,displayRequestDuration:E,tryItOutEnabled:D,executeInProgress:O}=_.toObject(),k=S.get(`description`),A=S.get(`externalDocs`)?.toJS(),j=S.get(`schemes`)?.toJS(),M=A?OX(A.url,f.url(),{selectedServer:g.selectedServer()}):``,N=_.getIn([`op`]),P=N.get(`responses`),F=function(e,t){if(!(0,Q.isImmutable)(e))return(0,Q.List)();let n=e.getIn(Array.isArray(t)?t:[t]);return Q.List.isList(n)?n:(0,Q.List)()}(N,[`parameters`]),I=f.operationScheme(b,x),L=[`operations`,C,w],ee=Vq(N),R=l(`responses`,!0),z=l(`parameters`,!0),te=l(`execute`),ne=l(`clear`),re=l(`Collapse`),ie=l(`Markdown`,!0),ae=l(`schemes`),oe=l(`OperationServers`),se=l(`OperationExt`),ce=l(`OperationSummary`),le=l(`Link`),{showExtensions:ue}=u();if(P&&t&&t.size>0){let e=!P.get(String(t.get(`status`)))&&!P.get(`default`);t=t.set(`notDocumented`,e)}let de=[b,x],fe=f.validationErrors([b,x]);return B.createElement(`div`,{className:v?`opblock opblock-deprecated`:y?`opblock opblock-${x} is-open`:`opblock opblock-${x}`,id:zq(L.join(`-`))},B.createElement(ce,{operationProps:_,isShown:y,toggleShown:r,getComponent:l,authActions:p,authSelectors:m,specPath:e}),B.createElement(re,{isOpened:y},B.createElement(`div`,{className:`opblock-body`},N&&N.size||N===null?null:B.createElement(yX,{height:`32px`,width:`32px`,className:`opblock-loading-animation`}),v&&B.createElement(`h4`,{className:`opblock-title_normal`},` Warning: Deprecated`),k&&B.createElement(`div`,{className:`opblock-description-wrapper`},B.createElement(`div`,{className:`opblock-description`},B.createElement(ie,{source:k}))),M?B.createElement(`div`,{className:`opblock-external-docs-wrapper`},B.createElement(`h4`,{className:`opblock-title_normal`},`Find more details`),B.createElement(`div`,{className:`opblock-external-docs`},A.description&&B.createElement(`span`,{className:`opblock-external-docs__description`},B.createElement(ie,{source:A.description})),B.createElement(le,{target:`_blank`,className:`opblock-external-docs__link`,href:kX(M)},M))):null,N&&N.size?B.createElement(z,{parameters:F,specPath:e.push(`parameters`),operation:N,onChangeKey:de,onTryoutClick:i,onResetClick:a,onCancelClick:o,tryItOutEnabled:D,allowTryItOut:T,fn:c,getComponent:l,specActions:d,specSelectors:f,pathMethod:[b,x],getConfigs:u,oas3Actions:h,oas3Selectors:g}):null,D?B.createElement(oe,{getComponent:l,path:b,method:x,operationServers:N.get(`servers`),pathServers:f.paths().getIn([b,`servers`]),getSelectedServer:g.selectedServer,setSelectedServer:h.setSelectedServer,setServerVariableValue:h.setServerVariableValue,getServerVariable:g.serverVariableValue,getEffectiveServerValue:g.serverEffectiveValue}):null,D&&T&&j&&j.size?B.createElement(`div`,{className:`opblock-schemes`},B.createElement(ae,{schemes:j,path:b,method:x,specActions:d,currentScheme:I})):null,!D||!T||fe.length<=0?null:B.createElement(`div`,{className:`validation-errors errors-wrapper`},`Please correct the following validation errors and try again.`,B.createElement(`ul`,null,fe.map(((e,t)=>B.createElement(`li`,{key:t},` `,e,` `))))),B.createElement(`div`,{className:D&&t&&T?`btn-group`:`execute-wrapper`},D&&T?B.createElement(te,{operation:N,specActions:d,specSelectors:f,oas3Selectors:g,oas3Actions:h,path:b,method:x,onExecute:s,disabled:O}):null,D&&t&&T?B.createElement(ne,{specActions:d,path:b,method:x}):null),O?B.createElement(`div`,{className:`loading-container`},B.createElement(`div`,{className:`loading`})):null,P?B.createElement(R,{responses:P,request:n,tryItOutResponse:t,getComponent:l,getConfigs:u,specSelectors:f,oas3Actions:h,oas3Selectors:g,specActions:d,produces:f.producesOptionsFor([b,x]),producesValue:f.currentProducesFor([b,x]),specPath:e.push(`responses`),path:b,method:x,displayRequestDuration:E,fn:c}):null,ue&&ee.size?B.createElement(se,{extensions:ee,getComponent:l}):null)))}},F1=class extends B.PureComponent{constructor(e,t){super(e,t),this.state={executeInProgress:!1}}static defaultProps={showSummary:!0,response:null,allowTryItOut:!0,displayOperationId:!1,displayRequestDuration:!1};mapStateToProps(e,t){let{op:n,layoutSelectors:r,getConfigs:i}=t,{docExpansion:a,deepLinking:o,displayOperationId:s,displayRequestDuration:c,supportedSubmitMethods:l,tryItOutEnabled:u}=i(),d=r.showSummary(),f=n.getIn([`operation`,`__originalOperationId`])||n.getIn([`operation`,`operationId`])||DD(n.get(`operation`),t.path,t.method)||n.get(`id`),p=[`operations`,t.tag,f],m=l.indexOf(t.method)>=0&&(t.allowTryItOut===void 0?t.specSelectors.allowTryItOutFor(t.path,t.method):t.allowTryItOut),h=n.getIn([`operation`,`security`])||t.specSelectors.security();return{operationId:f,isDeepLinkingEnabled:o,showSummary:d,displayOperationId:s,displayRequestDuration:c,allowTryItOut:m,security:h,isAuthorized:t.authSelectors.isAuthorized(h),isShown:r.isShown(p,a===`full`),tryItOutEnabled:r.isShown([...p,`try-it-out`],u),jumpToKey:`paths.${t.path}.${t.method}`,response:t.specSelectors.responseFor(t.path,t.method),request:t.specSelectors.requestFor(t.path,t.method)}}componentDidMount(){let{isShown:e}=this.props,t=this.getResolvedSubtree();e&&t===void 0&&this.requestResolvedSubtree()}componentDidUpdate(e){let{response:t,isShown:n}=this.props,r=this.getResolvedSubtree();t!==e.response&&this.setState({executeInProgress:!1}),n&&r===void 0&&this.requestResolvedSubtree()}toggleShown=()=>{let{layoutActions:e,tag:t,operationId:n,isShown:r}=this.props,i=this.getResolvedSubtree();r||i!==void 0||this.requestResolvedSubtree(),e.show([`operations`,t,n],!r)};onCancelClick=()=>{let{layoutActions:e,tag:t,operationId:n}=this.props;e.show([`operations`,t,n,`try-it-out`],!1)};onTryoutClick=()=>{let{layoutActions:e,tag:t,operationId:n}=this.props;e.show([`operations`,t,n,`try-it-out`],!0)};onResetClick=e=>{let t=this.props.oas3Selectors.selectDefaultRequestBodyValue(...e),n=this.props.oas3Selectors.requestContentType(...e);if(n===`application/x-www-form-urlencoded`||n===`multipart/form-data`){let n=JSON.parse(t);
275Object.entries(n).forEach((([e,t])=>{Array.isArray(t)?n[e]=n[e].map((e=>typeof e==`object`?JSON.stringify(e,null,2):e)):typeof t==`object`&&(n[e]=JSON.stringify(n[e],null,2))})),this.props.oas3Actions.setRequestBodyValue({value:(0,Q.fromJS)(n),pathMethod:e})}else this.props.oas3Actions.setRequestBodyValue({value:t,pathMethod:e})};onExecute=()=>{this.setState({executeInProgress:!0})};getResolvedSubtree=()=>{let{specSelectors:e,path:t,method:n,specPath:r}=this.props;return r?e.specResolvedSubtree(r.toJS()):e.specResolvedSubtree([`paths`,t,n])};requestResolvedSubtree=()=>{let{specActions:e,path:t,method:n,specPath:r}=this.props;return r?e.requestResolvedSubtree(r.toJS()):e.requestResolvedSubtree([`paths`,t,n])};render(){let{op:e,tag:t,path:n,method:r,security:i,isAuthorized:a,operationId:o,showSummary:s,isShown:c,jumpToKey:l,allowTryItOut:u,response:d,request:f,displayOperationId:p,displayRequestDuration:m,isDeepLinkingEnabled:h,specPath:g,specSelectors:_,specActions:v,getComponent:y,getConfigs:b,layoutSelectors:x,layoutActions:S,authActions:C,authSelectors:w,oas3Actions:T,oas3Selectors:E,fn:D}=this.props,O=y(`operation`),k=this.getResolvedSubtree()||(0,Q.Map)(),A=(0,Q.fromJS)({op:k,tag:t,path:n,summary:e.getIn([`operation`,`summary`])||``,deprecated:k.get(`deprecated`)||e.getIn([`operation`,`deprecated`])||!1,method:r,security:i,isAuthorized:a,operationId:o,originalOperationId:k.getIn([`operation`,`__originalOperationId`]),showSummary:s,isShown:c,jumpToKey:l,allowTryItOut:u,request:f,displayOperationId:p,displayRequestDuration:m,isDeepLinkingEnabled:h,executeInProgress:this.state.executeInProgress,tryItOutEnabled:this.props.tryItOutEnabled});return B.createElement(O,{operation:A,response:d,request:f,isShown:c,toggleShown:this.toggleShown,onTryoutClick:this.onTryoutClick,onResetClick:this.onResetClick,onCancelClick:this.onCancelClick,onExecute:this.onExecute,specPath:g,specActions:v,specSelectors:_,oas3Actions:T,oas3Selectors:E,layoutActions:S,layoutSelectors:x,authActions:C,authSelectors:w,getComponent:y,getConfigs:b,fn:D})}},I1=class extends B.PureComponent{static defaultProps={operationProps:null,specPath:(0,Q.List)(),summary:``};render(){let{isShown:e,toggleShown:t,getComponent:n,authActions:r,authSelectors:i,operationProps:a,specPath:o}=this.props,{summary:s,isAuthorized:c,method:l,op:u,showSummary:d,path:f,operationId:p,originalOperationId:m,displayOperationId:h}=a.toObject(),g=u.get(`summary`),_=a.get(`security`),v=n(`authorizeOperationBtn`,!0),y=n(`OperationSummaryMethod`),b=n(`OperationSummaryPath`),x=n(`JumpToPath`,!0),S=n(`CopyToClipboardBtn`,!0),C=n(`ArrowUpIcon`),w=n(`ArrowDownIcon`),T=_&&!!_.count(),E=T&&_.size===1&&_.first().isEmpty(),D=!T||E;return B.createElement(`div`,{className:`opblock-summary opblock-summary-${l}`},B.createElement(`button`,{"aria-expanded":e,className:`opblock-summary-control`,onClick:t},B.createElement(y,{method:l}),B.createElement(`div`,{className:`opblock-summary-path-description-wrapper`},B.createElement(b,{getComponent:n,operationProps:a,specPath:o}),d?B.createElement(`div`,{className:`opblock-summary-description`},(0,Ln.default)(g||s)):null),h&&(m||p)?B.createElement(`span`,{className:`opblock-summary-operation-id`},m||p):null),B.createElement(S,{textToCopy:`${o.get(1)}`}),D?null:B.createElement(v,{isAuthorized:c,onClick:()=>{let e=i.definitionsForRequirements(_);r.showDefinitions(e)}}),B.createElement(x,{path:o}),B.createElement(`button`,{"aria-label":`${l} ${f.replace(/\//g,`â/`)}`,className:`opblock-control-arrow`,"aria-expanded":e,tabIndex:`-1`,onClick:t},e?B.createElement(C,{className:`arrow`}):B.createElement(w,{className:`arrow`})))}},L1=class extends B.PureComponent{static defaultProps={operationProps:null};render(){let{method:e}=this.props;return B.createElement(`span`,{className:`opblock-summary-method`},e.toUpperCase())}},R1=class extends B.PureComponent{render(){let{getComponent:e,operationProps:t}=this.props,{deprecated:n,isShown:r,path:i,tag:a,operationId:o,isDeepLinkingEnabled:s}=t.toObject(),c=i.split(/(?=\/)/g);for(let e=1;e<c.length;
275e+=2)c.splice(e,0,B.createElement(`wbr`,{key:e}));let l=e(`DeepLink`);return B.createElement(`span`,{className:n?`opblock-summary-path__deprecated`:`opblock-summary-path`,"data-path":i},B.createElement(l,{enabled:s,isShown:r,path:Rq(`${a}/${o}`),text:c}))}},z1=({extensions:e,getComponent:t})=>{let n=t(`OperationExtRow`);return B.createElement(`div`,{className:`opblock-section`},B.createElement(`div`,{className:`opblock-section-header`},B.createElement(`h4`,null,`Extensions`)),B.createElement(`div`,{className:`table-container`},B.createElement(`table`,null,B.createElement(`thead`,null,B.createElement(`tr`,null,B.createElement(`td`,{className:`col_header`},`Field`),B.createElement(`td`,{className:`col_header`},`Value`))),B.createElement(`tbody`,null,e.entrySeq().map((([e,t])=>B.createElement(n,{key:`${e}-${t}`,xKey:e,xVal:t})))))))},B1=({xKey:e,xVal:t})=>{let n=t?t.toJS?t.toJS():t:null;return B.createElement(`tr`,null,B.createElement(`td`,null,e),B.createElement(`td`,null,JSON.stringify(n)))};function V1(e,t=`_`){return e.replace(/[^\w-]/g,t)}var H1=class e extends B.Component{static defaultProps={tryItOutResponse:null,produces:(0,Q.fromJS)([`application/json`]),displayRequestDuration:!1};onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);onResponseContentTypeChange=({controlsAcceptHeader:e,value:t})=>{let{oas3Actions:n,path:r,method:i}=this.props;e&&n.setResponseContentType({value:t,path:r,method:i})};render(){let{responses:t,tryItOutResponse:n,getComponent:r,getConfigs:i,specSelectors:a,fn:o,producesValue:s,displayRequestDuration:c,specPath:l,path:u,method:d,oas3Selectors:f,oas3Actions:p}=this.props,m=function(e){let t=e.keySeq();return t.contains(yq)?yq:t.filter((e=>(e+``)[0]===`2`)).sort().first()}(t),h=r(`contentType`),g=r(`liveResponse`),_=r(`response`),v=this.props.produces&&this.props.produces.size?this.props.produces:e.defaultProps.produces,y=a.isOAS3()?function(e){if(!Q.OrderedMap.isOrderedMap(e)||!e.size)return null;let t=e.find(((e,t)=>t.startsWith(`2`)&&Object.keys(e.get(`content`)||{}).length>0)),n=e.get(`default`)||(0,Q.OrderedMap)(),r=(n.get(`content`)||(0,Q.OrderedMap)()).keySeq().toJS().length?n:null;return t||r}(t):null,b=t.filter(((e,t)=>!Bq(t))),x=V1(`${d}${u}_responses`),S=`${x}_select`;return b&&b.size?B.createElement(`div`,{className:`responses-wrapper`},B.createElement(`div`,{className:`opblock-section-header`},B.createElement(`h4`,null,`Responses`),a.isOAS3()?null:B.createElement(`label`,{htmlFor:S},B.createElement(`span`,null,`Response content type`),B.createElement(h,{value:s,ariaControls:x,ariaLabel:`Response content type`,className:`execute-content-type`,contentTypes:v,controlId:S,onChange:this.onChangeProducesWrapper}))),B.createElement(`div`,{className:`responses-inner`},n?B.createElement(`div`,null,B.createElement(g,{response:n,getComponent:r,getConfigs:i,specSelectors:a,path:this.props.path,method:this.props.method,displayRequestDuration:c}),B.createElement(`h4`,null,`Responses`)):null,B.createElement(`table`,{"aria-live":`polite`,className:`responses-table`,id:x,role:`region`},B.createElement(`thead`,null,B.createElement(`tr`,{className:`responses-header`},B.createElement(`td`,{className:`col_header response-col_status`},`Code`),B.createElement(`td`,{className:`col_header response-col_description`},`Description`),a.isOAS3()?B.createElement(`td`,{className:`col col_header response-col_links`},`Links`):null)),B.createElement(`tbody`,null,b.entrySeq().map((([e,t])=>{let c=n&&n.get(`status`)==e?`response_current`:``;return B.createElement(_,{key:e,path:u,method:d,specPath:l.push(e),isDefault:m===e,fn:o,className:c,code:e,response:t,specSelectors:a,controlsAcceptHeader:t===y,onContentTypeChange:this.onResponseContentTypeChange,contentType:s,getConfigs:i,activeExamplesKey:f.activeExamplesMember(u,d,`responses`,e),oas3Actions:p,oas3Selectors:f,getComponent:r})})).toArray())))):null}};function U1(e){return function(e){try{return!!JSON.parse(e)}catch{return null}}(e)?`json`:null}var W1=class extends B.Component{constructor(e,t){super(e,t),this.state={responseContentType:``}}static defaultProps={response:(0,Q.fromJS)({}),onContentTypeChange:()=>{}};_onContentTypeChange=e=>{let{onContentTypeChange:t,controlsAcceptHeader:n,specSelectors:r,path:i,method:a,code:o,oas3Actions:s}=this.props;r.isOAS3()?s.setResponseCodeContentType({value:e,path:i,method:a,code:o}):this.setState({responseContentType:e}),t({value:e,controlsAcceptHeader:n})};getActiveContentType=()=>{let{specSelectors:e,path:t,method:n,code:r,contentType:i,oas3Selectors:a}=this.props;return e.isOAS3()?a?.responseCodeContentType(t,n,r)||i||``:this.state.responseContentType||i};getTargetExamplesKey=()=>{let{response:e,activeExamplesKey:t}=this.props,n=this.getActiveContentType(),r=e.getIn([`content`,n],(0,Q.Map)({})).get(`examples`,null).keySeq().first();return t||r};render(){let{path:e,method:t,code:n,response:r,className:i,specPath:a,fn:o,getComponent:s,getConfigs:c,specSelectors:l,controlsAcceptHeader:u,oas3Actions:d}=this.props,{inferSchema:f,getSampleSchema:p}=o,m=l.isOAS3(),{showExtensions:h}=c(),g=h?Vq(r):null,_=r.get(`headers`),v=r.get(`links`),y=s(`ResponseExtension`),b=s(`headers`),x=s(`HighlightCode`,!0),S=s(`modelExample`,!0),C=s(`Markdown`,!0),w=s(`operationLink`),T=s(`contentType`),E=s(`ExamplesSelect`),D=s(`Example`);var O,k;let A=this.getActiveContentType(),j=r.getIn([`content`,A],(0,Q.Map)({})),M=j.get(`examples`,null);if(m){let e=j.get(`schema`);O=e?f(e.toJS()):null,k=e?a.push(`content`,A,`schema`):a}else O=r.get(`schema`),k=r.has(`schema`)?a.push(`schema`):a;let N,P,F=!1,I={includeReadOnly:!0};if(m){if(P=j.get(`schema`)?.toJS(),Q.Map.isMap(M)&&!M.isEmpty()){let e=this.getTargetExamplesKey(),t=e=>Q.Map.isMap(e)?e.get(`value`):void 0;N=t(M.get(e,(0,Q.Map)({}))),N===void 0&&(N=t(M.values().next().value)),F=!0}else j.get(`example`)!==void 0&&(N=j.get(`example`),F=!0)}else{P=O,I={...I,includeWriteOnly:!0};let e=r.getIn([`examples`,A]);e&&(N=e,F=!0)}let L=((e,t)=>{if(e==null)return null;let n=U1(e)?`json`:null;return B.createElement(`div`,null,B.createElement(t,{className:`example`,language:n},Wq(e)))})(p(P,A,I,F?N:void 0),x);return B.createElement(`tr`,{className:`response `+(i||``),"data-code":n},B.createElement(`td`,{className:`response-col_status`},n),B.createElement(`td`,{className:`response-col_description`},B.createElement(`div`,{className:`response-col_description__inner`},B.createElement(C,{source:r.get(`description`)})),h&&g.size?g.entrySeq().map((([e,t])=>B.createElement(y,{key:`${e}-${t}`,xKey:e,xVal:t}))):null,m&&r.get(`content`)?B.createElement(`section`,{className:`response-control
275s`},B.createElement(`div`,{className:(0,pp.default)(`response-control-media-type`,{"response-control-media-type--accept-controller":u})},B.createElement(`small`,{className:`response-control-media-type__title`},`Media type`),B.createElement(T,{value:A,contentTypes:r.get(`content`)?r.get(`content`).keySeq():(0,Q.Seq)(),onChange:this._onContentTypeChange,ariaLabel:`Media Type`}),u?B.createElement(`small`,{className:`response-control-media-type__accept-message`},`Controls `,B.createElement(`code`,null,`Accept`),` header.`):null),Q.Map.isMap(M)&&!M.isEmpty()?B.createElement(`div`,{className:`response-control-examples`},B.createElement(`small`,{className:`response-control-examples__title`},`Examples`),B.createElement(E,{examples:M,currentExampleKey:this.getTargetExamplesKey(),onSelect:(r,{isSyntheticChange:i}={})=>{i||d.setActiveExamplesMember({name:r,pathMethod:[e,t],contextType:`responses`,contextName:n})},showLabels:!1})):null):null,L||O?B.createElement(S,{specPath:k,getComponent:s,getConfigs:c,specSelectors:l,schema:Sq(O),example:L,includeReadOnly:!0}):null,m&&M?B.createElement(D,{example:M.get(this.getTargetExamplesKey(),(0,Q.Map)({})),getComponent:s,getConfigs:c,omitValue:!0}):null,_?B.createElement(b,{headers:_,getComponent:s}):null),m?B.createElement(`td`,{className:`response-col_links`},v?v.toSeq().entrySeq().map((([e,t])=>B.createElement(w,{key:e,name:e,link:t,getComponent:s}))):B.createElement(`i`,null,`No links`)):null)}},G1=({xKey:e,xVal:t})=>B.createElement(`div`,{className:`response__extension`},e,`: `,String(t)),K1=class extends B.PureComponent{state={parsedContent:null};updateParsedContent=e=>{let{content:t}=this.props;if(e!==t){if(t&&t instanceof Blob){var n=new FileReader;n.onload=()=>{this.setState({parsedContent:n.result})},n.readAsText(t)}else this.setState({parsedContent:t.toString()})}};componentDidMount(){this.updateParsedContent(null)}componentDidUpdate(e){this.updateParsedContent(e.content)}render(){let{content:e,contentType:t,url:n,headers:r={},getComponent:i}=this.props,{parsedContent:a}=this.state,o=i(`HighlightCode`,!0),s=`response_`+new Date().getTime(),c,l;if(n||=``,(/^application\/octet-stream/i.test(t)||r[`Content-Disposition`]&&/attachment/i.test(r[`Content-Disposition`])||r[`content-disposition`]&&/attachment/i.test(r[`content-disposition`])||r[`Content-Description`]&&/File Transfer/i.test(r[`Content-Description`])||r[`content-description`]&&/File Transfer/i.test(r[`content-description`]))&&(e.size>0||e.length>0)){if(`Blob`in window){let i=t||`text/html`,a=e instanceof Blob?e:new Blob([e],{type:i}),o=window.URL.createObjectURL(a),s=[i,n.substr(n.lastIndexOf(`/`)+1),o].join(`:`),c=r[`content-disposition`]||r[`Content-Disposition`];if(c!==void 0){let e=function(e){let t;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((n=>(t=n.exec(e),t!==null))),t!==null&&t.length>1)try{return decodeURIComponent(t[1])}catch(e){console.error(e)}return null}(c);e!==null&&(s=e)}l=dq.navigator&&dq.navigator.msSaveOrOpenBlob?B.createElement(`div`,null,B.createElement(`a`,{href:o,onClick:()=>dq.navigator.msSaveOrOpenBlob(a,s)},`Download file`)):B.createElement(`div`,null,B.createElement(`a`,{href:o,download:s},`Download file`))}else l=B.createElement(`pre`,{className:`microlight`},`Download headers detected but your browser does not support downloading binary via XHR (Blob).`)}else if(/json/i.test(t)){let t=null;U1(e)&&(t=`json`);try{c=JSON.stringify(JSON.parse(e),null,` `)}catch{c=`can't parse JSON. Raw result: 276 277`+e}l=B.createElement(o,{language:t,downloadable:!0,fileName:`${s}.json`,canCopy:!0},c)}else/xml/i.test(t)?(c=(0,bV.default)(e,{textNodesOnSameLine:!0,indentor:` `}),l=B.createElement(o,{downloadable:!0,fileName:`${s}.xml`,canCopy:!0},c)):l=(0,xV.default)(t)===`text/html`||/text\/plain/.test(t)?B.createElement(o,{downloadable:!0,fileName:`${s}.html`,canCopy:!0},e):(0,xV.default)(t)===`text/csv`||/text\/csv/.test(t)?B.createElement(o,{downloadable:!0,fileName:`${s}.csv`,canCopy:!0},e):/^image\//i.test(t)?t.includes(`svg`)?B.createElement(`div`,null,` `,e,` `):B.createElement(`img`,{src:window.URL.createObjectURL(e)}):/^audio\//i.test(t)?B.createElement(`pre`,{className:`microlight`},B.createElement(`audio`,{controls:!0,key:n},B.createElement(`source`,{src:n,type:t}))):typeof e==`string`?B.createElement(o,{downloadable:!0,fileName:`${s}.txt`,canCopy:!0},e):e.size>0?a?B.createElement(`div`,null,B.createElement(`p`,{className:`i`},`Unrecognized response type; displaying content as text.`),B.createElement(o,{downloadable:!0,fileName:`${s}.txt`,canCopy:!0},a)):B.createElement(`p`,{className:`i`},`Unrecognized response type; unable to display.`):null;return l?B.createElement(`div`,null,B.createElement(`h5`,null,`Response body`),l):null}},q1=class extends B.Component{constructor(e){super(e)}static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,tryItOutEnabled:!1,allowTryItOut:!0,onChangeKey:[],specPath:[]};
vendor: 4,521 bytes, line 277
277onChange=(e,t,n)=>{let{specActions:{changeParamByIdentity:r},onChangeKey:i}=this.props;r(i,e,t,n)};onChangeConsumesWrapper=e=>{let{specActions:{changeConsumesValue:t},onChangeKey:n}=this.props;t(n,e)};toggleTab=e=>{let{layoutActions:t,pathMethod:n}=this.props;t.show([...n,`callbacks-tab`],e===`callbacks`)};onChangeMediaType=({value:e,pathMethod:t})=>{let{specActions:n,oas3Selectors:r,oas3Actions:i}=this.props,a=r.hasUserEditedBody(...t),o=r.shouldRetainRequestBodyValue(...t);i.setRequestContentType({value:e,pathMethod:t}),i.initRequestBodyValidateError({pathMethod:t}),a||(o||i.setRequestBodyValue({value:void 0,pathMethod:t}),n.clearResponse(...t),n.clearRequest(...t),n.clearValidateParams(t))};render(){let{onTryoutClick:e,onResetClick:t,parameters:n,allowTryItOut:r,tryItOutEnabled:i,specPath:a,fn:o,getComponent:s,getConfigs:c,specSelectors:l,specActions:u,pathMethod:d,oas3Actions:f,oas3Selectors:p,layoutSelectors:m,operation:h}=this.props,g=m.isShown([...d,`callbacks-tab`],!1),_=!g,v=s(`parameterRow`),y=s(`TryItOutButton`),b=s(`contentType`),x=s(`Callbacks`,!0),S=s(`RequestBody`,!0),C=i&&r,w=l.isOAS3(),T=`${V1(`${d[1]}${d[0]}_requests`)}_select`,E=h.get(`requestBody`),D=Object.values(n.reduce(((e,t)=>{if(Q.Map.isMap(t)){let n=t.get(`in`);e[n]??=[],e[n].push(t)}return e}),{})).reduce(((e,t)=>e.concat(t)),[]);return B.createElement(`div`,{className:`opblock-section`},B.createElement(`div`,{className:`opblock-section-header`},w?B.createElement(`div`,{className:`tab-header`},B.createElement(`div`,{onClick:()=>this.toggleTab(`parameters`),className:`tab-item ${_&&`active`}`},B.createElement(`h4`,{className:`opblock-title`},B.createElement(`span`,null,`Parameters`))),h.get(`callbacks`)?B.createElement(`div`,{onClick:()=>this.toggleTab(`callbacks`),className:`tab-item ${g&&`active`}`},B.createElement(`h4`,{className:`opblock-title`},B.createElement(`span`,null,`Callbacks`))):null):B.createElement(`div`,{className:`tab-header`},B.createElement(`h4`,{className:`opblock-title`},`Parameters`)),r?B.createElement(y,{isOAS3:l.isOAS3(),hasUserEditedBody:p.hasUserEditedBody(...d),enabled:i,onCancelClick:this.props.onCancelClick,onTryoutClick:e,onResetClick:()=>t(d)}):null),_?B.createElement(`div`,{className:`parameters-container`},D.length?B.createElement(`div`,{className:`table-container`},B.createElement(`table`,{className:`parameters`},B.createElement(`thead`,null,B.createElement(`tr`,null,B.createElement(`th`,{className:`col_header parameters-col_name`},`Name`),B.createElement(`th`,{className:`col_header parameters-col_description`},`Description`))),B.createElement(`tbody`,null,D.map(((e,t)=>B.createElement(v,{fn:o,specPath:a.push(t.toString()),getComponent:s,getConfigs:c,rawParam:e,param:l.parameterWithMetaByIdentity(d,e),key:`${e.get(`in`)}.${e.get(`name`)}`,onChange:this.onChange,onChangeConsumes:this.onChangeConsumesWrapper,specSelectors:l,specActions:u,oas3Actions:f,oas3Selectors:p,pathMethod:d,isExecute:C})))))):B.createElement(`div`,{className:`opblock-description-wrapper`},B.createElement(`p`,null,`No parameters`))):null,g?B.createElement(`div`,{className:`callbacks-container opblock-description-wrapper`},B.createElement(x,{callbacks:(0,Q.Map)(h.get(`callbacks`)),specPath:a.slice(0,-1).push(`callbacks`)})):null,w&&E&&_&&B.createElement(`div`,{className:`opblock-section opblock-section-request-body`},B.createElement(`div`,{className:`opblock-section-header`},B.createElement(`h4`,{className:`opblock-title parameter__name ${E.get(`required`)&&`required`}`},`Request body`),B.createElement(`label`,{id:T},B.createElement(b,{value:p.requestContentType(...d),contentTypes:E.get(`content`,(0,Q.List)()).keySeq(),onChange:e=>{this.onChangeMediaType({value:e,pathMethod:d})},className:`body-param-content-type`,ariaLabel:`Request content type`,controlId:T}))),B.createElement(`div`,{className:`opblock-description-wrapper`},B.createElement(S,{setRetainRequestBodyValueFlag:e=>f.setRetainRequestBodyValueFlag({value:e,pathMethod:d}),userHasEditedBody:p.hasUserEditedBody(...d),specPath:a.slice(0,-1).push(`requestBody`),requestBody:E,requestBodyValue:p.requestBodyValue(...d),requestBodyInclusionSetting:p.requestBodyInclusionSetting(...d),requestBodyErrors:p.requestBodyErrors(...d),isExecute:C,getConfigs:c,activeExamplesKey:p.activeExamplesMember(...d,`requestBody`,`requestBody`),updateActiveExamplesKey:e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:`requestBody`,contextName:`requestBody`})},onChange:(e,t)=>
277{if(t){let n=p.requestBodyValue(...d),r=Q.Map.isMap(n)?n:(0,Q.Map)();return f.setRequestBodyValue({pathMethod:d,value:r.setIn(t,e)})}f.setRequestBodyValue({value:e,pathMethod:d})},onChangeIncludeEmpty:(e,t)=>{f.setRequestBodyInclusion({pathMethod:d,value:t,name:e})},contentType:p.requestContentType(...d)}))))}},J1=({xKey:e,xVal:t})=>B.createElement(`div`,{className:`parameter__extension`},e,`: `,String(t)),Y1={onChange:()=>{},isIncludedOptions:{}},X1=class extends B.Component{static defaultProps=Y1;componentDidMount(){let{isIncludedOptions:e,onChange:t}=this.props,{shouldDispatchInit:n,defaultValue:r}=e;n&&t(r)}onCheckboxChange=e=>{let{onChange:t}=this.props;t(e.target.checked)};render(){let{isIncluded:e,isDisabled:t}=this.props;return B.createElement(`div`,null,B.createElement(`label`,{htmlFor:`include_empty_value`,className:(0,pp.default)(`parameter__empty_value_toggle`,{disabled:t})},B.createElement(`input`,{id:`include_empty_value`,type:`checkbox`,disabled:t,checked:!t&&e,onChange:this.onCheckboxChange}),`Send empty value`))}},Z1=e=>{if(Q.List.isList(e))return e;if(typeof e!=`string`)return null;try{let t=JSON.parse(e);return Array.isArray(t)?(0,Q.List)(t):null}catch{return null}},Q1=class extends B.Component{constructor(e,t){super(e,t),this.setDefaultValue()}UNSAFE_componentWillReceiveProps(e){let t,{specSelectors:n,pathMethod:r,rawParam:i}=e,a=n.isOAS3(),o=n.parameterWithMetaByIdentity(r,i)||new Q.Map;if(o=o.isEmpty()?i:o,a){let{schema:e}=_q(o,{isOAS3:a});t=e?e.get(`enum`):void 0}else t=o?o.get(`enum`):void 0;let s,c=o?o.get(`value`):void 0;c===void 0?i.get(`required`)&&t&&t.size&&(s=t.first()):s=c,s!==void 0&&s!==c&&this.onChangeWrapper(function(e){return typeof e==`number`?e.toString():e}(s)),this.setDefaultValue()}onChangeWrapper=(e,t=!1)=>{let n,{onChange:r,rawParam:i}=this.props;return n=e===``||e&&e.size===0?null:e,r(i,n,t)};_onExampleSelect=e=>{this.props.oas3Actions.setActiveExamplesMember({name:e,pathMethod:this.props.pathMethod,contextType:`parameters`,contextName:this.getParamKey()})};onChangeIncludeEmpty=e=>{let{specActions:t,param:n,pathMethod:r}=this.props,i=n.get(`name`),a=n.get(`in`);return t.updateEmptyParamInclusion(r,i,a,e)};setDefaultValue=()=>{let{specSelectors:e,pathMethod:t,rawParam:n,oas3Selectors:r,fn:i}=this.props,a=e.isOAS3(),o=e.parameterWithMetaByIdentity(t,n)||(0,Q.Map)(),{schema:s}=_q(o,{isOAS3:a}),c=o.get(`content`,(0,Q.Map)()).keySeq().first(),l=s?i.getSampleSchema(s.toJS(),c,{includeWriteOnly:!0}):null;if(o&&o.get(`value`)===void 0&&o.get(`in`)!==`body`){let n;if(e.isSwagger2())n=o.get(`x-example`)===void 0?o.getIn([`schema`,`example`])===void 0?s&&s.getIn([`default`]):o.getIn([`schema`,`example`]):o.get(`x-example`);else if(a){s=this.composeJsonSchema(s);let e=r.activeExamplesMember(...t,`parameters`,this.getParamKey());n=o.getIn([`examples`,e,`value`])===void 0?o.getIn([`content`,c,`example`])===void 0?o.get(`example`)===void 0?(s&&s.get(`example`))===void 0?(s&&s.get(`default`))===void 0?o.get(`default`):s&&s.get(`default`):s&&s.get(`example`):o.get(`example`):o.getIn([`content`,c,`example`]):o.getIn([`examples`,e,`value`])}n===void 0||Q.List.isList(n)||(n=Wq(n));let u=i.getSchemaObjectType(s),d=i.getSchemaObjectType(s?.get(`items`)),f=Q.List.isList(s?.get(`type`));if(a&&u===`array`&&!f&&n!==void 0){let e=Z1(n);this.onChangeWrapper(e);return}if(n!==void 0)this.onChangeWrapper(n);else if(u===`object`&&l&&!o.get(`examples`))this.onChangeWrapper(Q.List.isList(l)?l:Wq(l));else if(u===`array`&&d===`object`&&l&&!o.get(`examples`)){let e=Z1(l);this.onChangeWrapper(e)}}};onExampleValueUpdate=e=>{let{specSelectors:t,pathMethod:n,rawParam:r,fn:i}=this.props,{schema:a}=_q(t.parameterWithMetaByIdentity(n,r)||(0,Q.Map)(),{isOAS3:!0});a&&=this.composeJsonSchema(a);let o=i.getSchemaObjectType(a),s=Q.List.isList(a?.get(`type`));if(o!==`array`||s)this.onChangeWrapper(e);else{let t=Z1(e);this.onChangeWrapper(t)}};getParamKey(){let{param:e}=this.props;return e?`${e.get(`name`)}-${e.get(`in`)}`:null}composeJsonSchema(e){let{fn:t}=this.props,n=e.get(`oneOf`)?.get(0)?.toJS(),r=e.get(`anyOf`)?.get(0)?.toJS();return(0,Q.fromJS)(t.mergeJsonSchema(e.toJS(),n??r??{}))}render(){let{param:e,rawParam:t,getComponent:n,getConfigs:r,isExecute:i,fn:a,onChangeConsumes:o,specSelectors:s,pathMethod:c,specPath:l,oas3Selectors:u}=this.props,d=s.isOAS3(),{showExtensions:f,showCommonExtensions:p}=r();if(e||=t,!t)return null;let m=n(`JsonSchemaForm`),h=n(`ParamBody`),g=e.get(`in`),_=g===`body`?B.createElement(h,{getComponent:n,getConfigs:r,fn:a,param:e,consumes:s.consumesOptionsFor(c),consumesValue:s.contentTypeValues(c).get(`requestContentType`),onChange:this.onChangeWrapper,onCh
277angeConsumes:o,isExecute:i,specSelectors:s,pathMethod:c}):null,v=n(`modelExample`,!0),y=n(`Markdown`,!0),b=n(`ParameterExt`),x=n(`ParameterIncludeEmpty`),S=n(`ExamplesSelectValueRetainer`),C=n(`Example`),{schema:w}=_q(e,{isOAS3:d}),T=s.parameterWithMetaByIdentity(c,t)||(0,Q.Map)(),E=T.get(`content`,(0,Q.Map)()).keySeq().first();d&&(w=this.composeJsonSchema(w));let D=w?w.get(`format`):null,O=g===`formData`,k=`FormData`in dq,A=e.get(`required`),j=a.getSchemaObjectType(w),M=a.getSchemaObjectType(w?.get(`items`)),N=a.getSchemaObjectTypeLabel(w),P=!_&&j===`object`,F=!_&&M===`object`,I,L,ee,R,z=T?T.get(`value`):``,te=p?Hq(w):null,ne=f?Vq(e):null,re=!1;e!==void 0&&w&&(I=w.get(`items`)),I===void 0?w&&(L=w.get(`enum`)):(L=I.get(`enum`),ee=I.get(`default`)),L&&L.size&&L.size>0&&(re=!0),e!==void 0&&(w&&(ee=w.get(`default`)),ee===void 0&&(ee=e.get(`default`)),R=e.get(`example`),R===void 0&&(R=e.get(`x-example`)));let ie=_?null:B.createElement(m,{fn:a,getComponent:n,value:z,required:A,disabled:!i,description:e.get(`name`),onChange:this.onChangeWrapper,errors:T.get(`errors`),schema:w});return B.createElement(`tr`,{"data-param-name":e.get(`name`),"data-param-in":e.get(`in`)},B.createElement(`td`,{className:`parameters-col_name`},B.createElement(`div`,{className:A?`parameter__name required`:`parameter__name`},e.get(`name`),A?B.createElement(`span`,null,`\xA0*`):null),B.createElement(`div`,{className:`parameter__type`},N,D&&B.createElement(`span`,{className:`prop-format`},`($`,D,`)`)),B.createElement(`div`,{className:`parameter__deprecated`},d&&e.get(`deprecated`)?`deprecated`:null),B.createElement(`div`,{className:`parameter__in`},`(`,e.get(`in`),`)`)),B.createElement(`td`,{className:`parameters-col_description`},e.get(`description`)?B.createElement(y,{source:e.get(`description`)}):null,!_&&i||!re?null:B.createElement(y,{className:`parameter__enum`,source:`<i>Available values</i> : `+L.map((function(e){return e})).toArray().map(String).join(`, `)}),!_&&i||ee===void 0?null:B.createElement(y,{className:`parameter__default`,source:`<i>Default value</i> : `+ee}),!_&&i||R===void 0?null:B.createElement(y,{source:`<i>Example</i> : `+R}),O&&!k&&B.createElement(`div`,null,`Error: your browser does not support FormData`),d&&e.get(`examples`)?B.createElement(`section`,{className:`parameter-controls`},B.createElement(S,{examples:e.get(`examples`),onSelect:this._onExampleSelect,updateValue:this.onExampleValueUpdate,getComponent:n,defaultToFirstExample:!0,currentKey:u.activeExamplesMember(...c,`parameters`,this.getParamKey()),currentUserInputValue:z})):null,P||F?B.createElement(v,{getComponent:n,specPath:E?l.push(`content`,E,`schema`):l.push(`schema`),getConfigs:r,isExecute:i,specSelectors:s,schema:w,example:ie}):ie,_&&w?B.createElement(v,{getComponent:n,specPath:l.push(`schema`),getConfigs:r,isExecute:i,specSelectors:s,schema:w,example:_,includeWriteOnly:!0}):null,!_&&i&&e.get(`allowEmptyValue`)?B.createElement(x,{onChange:this.onChangeIncludeEmpty,isIncluded:s.parameterInclusionSettingFor(c,e.get(`name`),e.get(`in`)),isDisabled:!Jq(z)}):null,d&&e.get(`examples`)?B.createElement(C,{example:e.getIn([`examples`,u.activeExamplesMember(...c,`parameters`,this.getParamKey())]),getComponent:n,getConfigs:r}):null,p&&te.size?te.entrySeq().map((([e,t])=>B.createElement(b,{key:`${e}-${t}`,xKey:e,xVal:t}))):null,f&&ne.size?ne.entrySeq().map((([e,t])=>B.createElement(b,{key:`${e}-${t}`,xKey:e,xVal:t}))):null))}},$1=class extends B.Component{handleValidateParameters=()=>{let{specSelectors:e,specActions:t,path:n,method:r}=this.props;return t.validateParams([n,r]),e.validateBeforeExecute([n,r])};handleValidateRequestBody=()=>{let{path:e,method:t,specSelectors:n,oas3Selectors:r,oas3Actions:i}=this.props,a={missingBodyValue:!1,missingRequiredKeys:[]};i.clearRequestBodyValidateError({path:e,method:t});let o=n.getOAS3RequiredRequestBodyContentType([e,t]),s=r.requestBodyValue(e,t),c=r.validateBeforeExecute([e,t]),l=r.requestContentType(e,t);if(!c)return a.missingBodyValue=!0,i.setRequestBodyValidateError({path:e,method:t,validationErrors:a}),!1;if(!o)return!0;let u=r.validateShallowRequired({oas3RequiredRequestBodyContentType:o,oas3RequestContentType:l,oas3RequestBodyValue:s});return!u||u.length<1||(u.forEach((e=>{a.missingRequiredKeys.push(e)})),i.setRequestBodyValidateError({path:e,method:t,validationErrors:a}),!1)};handleValidationResultPass=()=>{let{specActions:e,operation:t,path:n,method:r}=this.props;this.props.onExecute&&this.props.onExecute(),e.execute({operation:t,path:n,method:r})};handleValidationResultFail=()=>{let{specActions:e,path:t,method:n}=this.props;e.clearValidateParams([t,n]),setTimeout((()=>{e.validateParams([t,n])}),40)};handleValidationResult=e=>{e?this.handleValidationResultPass():this.handleValidationResultFail()};onClick=()=>{let e=this.handleValidateParameters(),t=this.handleValidateRequestBody(),n=e&&t;this.handleValidationResult(n)};
vendor: 11,690 bytes, line 277
277onChangeProducesWrapper=e=>this.props.specActions.changeProducesValue([this.props.path,this.props.method],e);render(){let{disabled:e}=this.props;return B.createElement(`button`,{className:`btn execute opblock-control__btn`,onClick:this.onClick,disabled:e},`Execute`)}},e0=class extends B.Component{render(){let{headers:e,getComponent:t}=this.props,n=t(`Property`),r=t(`Markdown`,!0);return e&&e.size?B.createElement(`div`,{className:`headers-wrapper`},B.createElement(`h4`,{className:`headers__title`},`Headers:`),B.createElement(`table`,{className:`headers`},B.createElement(`thead`,null,B.createElement(`tr`,{className:`header-row`},B.createElement(`th`,{className:`header-col`},`Name`),B.createElement(`th`,{className:`header-col`},`Description`),B.createElement(`th`,{className:`header-col`},`Type`))),B.createElement(`tbody`,null,e.entrySeq().map((([e,t])=>{if(!Q.Map.isMap(t))return null;let i=t.get(`description`),a=t.getIn([`schema`])?t.getIn([`schema`,`type`]):t.getIn([`type`]),o=t.getIn([`schema`,`example`]);return B.createElement(`tr`,{key:e},B.createElement(`td`,{className:`header-col`},e),B.createElement(`td`,{className:`header-col`},i?B.createElement(r,{source:i}):null),B.createElement(`td`,{className:`header-col`},a,` `,o?B.createElement(n,{propKey:`Example`,propVal:o,propClass:`header-example`}):null))})).toArray()))):null}},t0=class extends B.Component{render(){let{editorActions:e,errSelectors:t,layoutSelectors:n,layoutActions:r,getComponent:i}=this.props,a=i(`Collapse`);if(e&&e.jumpToLine)var o=e.jumpToLine;let s=t.allErrors().filter((e=>e.get(`type`)===`thrown`||e.get(`level`)===`error`));if(!s||s.count()<1)return null;let c=n.isShown([`errorPane`],!0),l=s.sortBy((e=>e.get(`line`)));return B.createElement(`pre`,{className:`errors-wrapper`},B.createElement(`hgroup`,{className:`error`},B.createElement(`h4`,{className:`errors__title`},`Errors`),B.createElement(`button`,{className:`btn errors__clear-btn`,onClick:()=>r.show([`errorPane`],!c)},c?`Hide`:`Show`)),B.createElement(a,{isOpened:c,animated:!0},B.createElement(`div`,{className:`errors`},l.map(((e,t)=>{let n=e.get(`type`);return n===`thrown`||n===`auth`?B.createElement(n0,{key:t,error:e.get(`error`)||e,jumpToLine:o}):n===`spec`?B.createElement(r0,{key:t,error:e,jumpToLine:o}):void 0})))))}},n0=({error:e,jumpToLine:t})=>{if(!e)return null;let n=e.get(`line`);return B.createElement(`div`,{className:`error-wrapper`},e?B.createElement(`div`,null,B.createElement(`h4`,null,e.get(`source`)&&e.get(`level`)?i0(e.get(`source`))+` `+e.get(`level`):``,e.get(`path`)?B.createElement(`small`,null,` at `,e.get(`path`)):null),B.createElement(`span`,{className:`message thrown`},e.get(`message`)),B.createElement(`div`,{className:`error-line`},n&&t?B.createElement(`a`,{onClick:t.bind(null,n)},`Jump to line `,n):null)):null)},r0=({error:e,jumpToLine:t=null})=>{let n=null;return e.get(`path`)?n=Q.List.isList(e.get(`path`))?B.createElement(`small`,null,`at `,e.get(`path`).join(`.`)):B.createElement(`small`,null,`at `,e.get(`path`)):e.get(`line`)&&!t&&(n=B.createElement(`small`,null,`on line `,e.get(`line`))),B.createElement(`div`,{className:`error-wrapper`},e?B.createElement(`div`,null,B.createElement(`h4`,null,i0(e.get(`source`))+` `+e.get(`level`),`\xA0`,n),B.createElement(`span`,{className:`message`},e.get(`message`)),B.createElement(`div`,{className:`error-line`},t?B.createElement(`a`,{onClick:t.bind(null,e.get(`line`))},`Jump to line `,e.get(`line`)):null)):null)};function i0(e){return(e||``).split(` `).map((e=>e[0].toUpperCase()+e.slice(1))).join(` `)}var a0=()=>{},o0=class extends B.Component{static defaultProps={onChange:a0,value:null,contentTypes:(0,Q.fromJS)([`application/json`])};componentDidMount(){let{contentTypes:e,value:t,onChange:n}=this.props;e&&e.size&&!e.includes(t)&&n(e.first())}componentDidUpdate(){let{contentTypes:e,value:t,onChange:n}=this.props;e&&e.size&&(e.includes(t)||n(e.first()))}onChangeWrapper=e=>this.props.onChange(e.target.value);render(){let{ariaControls:e,ariaLabel:t,className:n,contentTypes:r,controlId:i,value:a}=this.props;return r&&r.size?B.createElement(`div`,{className:`content-type-wrapper `+(n||``)},B.createElement(`select`,{"aria-controls":e,"aria-label":t,className:`content-type`,id:i,onChange:this.onChangeWrapper,value:a||``},r.map((e=>B.createElement(`option`,{key:e,value:e},e))).toArray())):null}};function s0(...e){return e.filter((e=>!!e)).join(` `).trim()}var c0=class extends B.Component{render(){let{fullscreen:e,full:t,...n}=this.props;if(e)return B.createElement(`section`,n);let r=`swagger-container`+(t?`-full`:``);return B.createElement(`section`,sp({},n,{className:s0(n.className,r)}))}},l0={mobile:``,tablet:`-tablet`,desktop:`-desktop`,large:`-hd`},u0=class extends B.Component{render(){let{hide:e,keepContents:t,mobile:n,tablet:r,desktop:i,large:a,...o}=this.props;if(e&&!t)return B.createElement(`span`,null);let s=[];for(let e in l0){if(!Object.prototype.hasOwnProperty.call(l0,e))continue;let t=l0[e];if(e in this.props){let n=this.props[e];if(n<1){s.push(`none`+t);continue}s.push(`block`+t),s.push(`col-`+n+t)}}e&&s.push(`hidden`);let c=s0(o.className,...s);return B.createElement(`section`,sp({},o,{className:c}))}},d0=class extends B.Component{render(){return B.createElement(`div`,sp({},this.props,{className:s0(this.props.className,`wrapper`)}))}},f0=class extends B.Component{static defaultProps={className:``};render(){return B.createElement(`button`,sp({},this.props,{className:s0(this.props.className,`button`)}))}},p0=e=>B.createElement(`textarea`,e),m0=e=>B.createElement(`input`,e),h0=class extends B.Component{static defaultProps={multiple:!1,allowEmptyValue:!0};constructor(e,t){let n;super(e,t),n=e.value?e.value:e.multiple?[``]:``,this.state={value:n}}onChange=e=>{let t,{onChange:n,multiple:r}=this.props,i=[].slice.call(e.target.options);t=r?i.filter((function(e){return e.selected})).map((function(e){return e.value})):e.target.value,this.setState({value:t}),n&&n(t)};UNSAFE_componentWillReceiveProps(e){e.value!==this.props.value&&this.setState({value:e.value})}render(){let{allowedValues:e,multiple:t,allowEmptyValue:n,disabled:r}=this.props,i=this.state.value?.toJS?.()||this.state.value;return B.createElement(`select`,{className:this.props.className,multiple:t,value:i,onChange:this.onChange,disabled:r},n?B.createElement(`option`,{value:``},`--`):null,e.map((function(e,t){return B.createElement(`option`,{key:t,value:String(e)},String(e))})))}},g0=class extends B.Component{render(){return B.createElement(`a`,sp({},this.props,{rel:`noopener noreferrer`,className:s0(this.props.className,`link`)}))}},_0=({children:e})=>B.createElement(`div`,{className:`no-margin`},` `,e,` `),v0=class extends B.Component{static defaultProps={isOpened:!1,animated:!1};renderNotAnimated(){return this.props.isOpened?B.createElement(_0,null,this.props.children):B.createElement(`noscript`,null)}render(){let{animated:e,isOpened:t,children:n}=this.props;return e?(n=t?n:null,B.createElement(_0,null,n)):this.renderNotAnimated()}},y0=class extends B.Component{constructor(...e){super(...e),this.setTagShown=this._setTagShown.bind(this)}_setTagShown(e,t){this.props.layoutActions.show(e,t)}showOp(e,t){let{layoutActions:n}=this.props;n.show(e,t)}render(){let{specSelectors:e,layoutSelectors:t,layoutActions:n,getComponent:r}=this.props,i=e.taggedOperations(),a=r(`Collapse`);return B.createElement(`div`,null,B.createElement(`h4`,{className:`overview-title`},`Overview`),i.map(((e,r)=>{let i=e.get(`operations`),o=[`overview-tags`,r],s=t.isShown(o,!0);return B.createElement(`div`,{key:`overview-`+r},B.createElement(`h4`,{onClick:()=>n.show(o,!s),className:`link overview-tag`},` `,s?`-`:`+`,r),B.createElement(a,{isOpened:s,animated:!0},i.map((e=>{let{path:r,method:i,id:a}=e.toObject(),o=`operations`,s=a,c=t.isShown([o,s]);return B.createElement(b0,{key:a,path:r,method:i,id:r+`-`+i,shown:c,showOpId:s,showOpIdPrefix:o,href:`#operation-${s}`,onClick:n.show})})).toArray()))})).valueSeq().toArray(),i.size<1&&B.createElement(`h3`,null,` No operations defined in spec! `))}},b0=class extends B.Component{constructor(e){super(e),this.onClick=this._onClick.bind(this)}_onClick(){let{showOpId:e,showOpIdPrefix:t,onClick:n,shown:r}=this.props;n([t,e],!r)}render(){let{id:e,method:t,shown:n,href:r}=this.props;return B.createElement(g0,{href:r,onClick:this.onClick,className:`block opblock-link `+(n?`shown`:``)},B.createElement(`div`,null,B.createElement(`small`,{className:`bold-label-${t}`},t.toUpperCase()),B.createElement(`span`,{className:`bold-label`},e)))}},x0=class extends B.Component{componentDidMount(){this.props.initialValue&&(this.inputRef.value=this.props.initialValue)}render(){let{value:e,defaultValue:t,initialValue:n,...r}=this.props;return B.createElement(`input`,sp({},r,{ref:e=>this.inputRef=e}))}},S0=class extends B.Component{render(){let{host:e,basePath:t}=this.props;return B.createElement(`pre`,{className:`base-url`},`[ Base URL: `,e,t,` ]`)}},C0=class extends B.PureComponent{render(){let{url:e,getComponent:t}=this.props,n=t(`Link`);return B.createElement(n,{target:`_blank`,href:kX(e)},B.createElement(`span`,{className:`url`},` `,e))}},w0=class extends B.Component{render(){let{info:e,url:t,host:n,basePath:r,getComponent:i,externalDocs:a,selectedServer:o,url:s}=this.props,c=e.get(`version`),l=e.get(`description`),u=e.get(`title`),d=OX(e.get(`termsOfService`),s,{selectedServer:o}),f=e.get(`contact`),p=e.get(`license`),m=OX(a&&a.get(`url`),s,{selectedServer:o}),h=a&&a.get(`description`),g=i(`Markdown`,!0),_=i(`Link`),v=i(`VersionStamp`),y=i(`OpenAPIVersion`),b=i(`InfoUrl`),x=i(`InfoBasePath`),S=i(`License`),C=i(`Contact`);return B.createElement(`div`,{className:`info`},B.createElement(`hgroup`,{className:`main`},B.createElement(`h1`,{className:`title`},u,B.createElement(`span`,null,c&&B.createElement(v,{version:c}),B.createElement(y,{oasVersion:`2.0`}))),n||r?B.createElement(x,{host:n,basePath:r}):null,t&&B.createElement(b,{getComponent:i,url:t})),B.createElement(`div`,{className:`description`},B.createElement(g,{source:l})),d&&B.createElement(`div`,{className:`info__tos`},B.createElement(_,{target:`_blank`,href:kX(d)},`Terms of service`)),f?.size>0&&B.createElement(C,{getComponent:i,data:f,selectedServer:o,url:t}),p?.size>0&&B.createElement(S,{getComponent:i,license:p,selectedServer:o,url:t}),m?B.createElement(_,{className:`info__extdocs`,target:`_blank`,href:kX(m)},h||m):null)}},T0=class extends B.Component{render(){let{specSelectors:e,getComponent:t,oas3Selectors:n}=this.props,r=e.info(),i=e.url(),a=e.basePath(),o=e.host(),s=e.externalDocs(),c=n.selectedServer(),l=t(`info`);return B.createElement(`div`,null,r&&r.count()?B.createElement(l,{info:r,url:i,host:o,basePath:a,externalDocs:s,getComponent:t,selectedServer:c}):null)}},E0=class extends B.Component{render(){let{data:e,getComponent:t,selectedServer:n,url:r}=this.props,i=e.get(`name`,`the developer`),a=OX(e.get(`url`),r,{selectedServer:n}),o=e.get(`email`),s=t(`Link`);return B.createElement(`div`,{className:`info__contact`},a&&B.createElement(`div`,null,B.createElement(s,{href:kX(a),target:`_blank`},i,` - Website`)),o&&B.createElement(s,{href:kX(`mailto:${o}`)},a?`Send email to ${i}`:`Contact ${i}`))}},D0=class extends B.Component{render(){let{license:e,getComponent:t,selectedServer:n,url:r}=this.props,i=e.get(`name`,`License`),a=OX(e.get(`url`),r,{selectedServer:n}),o=t(`Link`);return B.createElement(`div`,{className:`info__license`},a?B.createElement(`div`,{className:`info__license__url`},B.createElement(o,{target:`_blank`,href:kX(a)},i)):B.createElement(`span`,null,i))}},O0=class extends B.Component{render(){return null}},k0=`Copy path to clipboard`,A0=({textToCopy:e})=>
277B.createElement(`div`,{className:`view-line-link copy-to-clipboard`,title:k0,"aria-label":k0},B.createElement(mp.CopyToClipboard,{text:e},B.createElement(`button`,{"aria-label":k0,title:k0,type:`button`}))),j0=class extends B.Component{render(){return B.createElement(`div`,{className:`footer`})}},M0=class extends B.Component{onFilterChange=e=>{let{target:{value:t}}=e;this.props.layoutActions.updateFilter(t)};render(){let{specSelectors:e,layoutSelectors:t,getComponent:n}=this.props,r=n(`Col`),i=e.loadingStatus()===`loading`,a=e.loadingStatus()===`failed`,o=t.currentFilter(),s=[`operation-filter-input`];return a&&s.push(`failed`),i&&s.push(`loading`),B.createElement(`div`,null,!1===o?null:B.createElement(`div`,{className:`filter-container`},B.createElement(r,{className:`filter wrapper`,mobile:12},B.createElement(`input`,{className:s.join(` `),placeholder:`Filter by tag`,type:`text`,onChange:this.onFilterChange,value:typeof o==`string`?o:``,disabled:i}))))}},N0=Function.prototype,P0=class e extends B.PureComponent{static defaultProp={consumes:(0,Q.fromJS)([`application/json`]),param:(0,Q.fromJS)({}),onChange:N0,onChangeConsumes:N0};constructor(e,t){super(e,t),this.state={isEditBox:!1,value:``}}componentDidMount(){this.updateValues.call(this,this.props)}UNSAFE_componentWillReceiveProps(e){this.updateValues.call(this,e)}updateValues=e=>{let{param:t,isExecute:n,consumesValue:r=``}=e,i=/xml/i.test(r),a=/json/i.test(r),o=i?t.get(`value_xml`):t.get(`value`);if(o!==void 0){let e=!o&&a?`{}`:o;this.setState({value:e}),this.onChange(e,{isXml:i,isEditBox:n})}else i?this.onChange(this.sample(`xml`),{isXml:i,isEditBox:n}):this.onChange(this.sample(),{isEditBox:n})};sample=e=>{let{param:t,fn:n}=this.props,r=n.inferSchema(t.toJS());return n.getSampleSchema(r,e,{includeWriteOnly:!0})};onChange=(e,{isEditBox:t,isXml:n})=>{this.setState({value:e,isEditBox:t}),this._onChange(e,n)};_onChange=(e,t)=>
vendor: 5,089 bytes, line 277
277{(this.props.onChange||N0)(e,t)};handleOnChange=e=>{let{consumesValue:t}=this.props,n=/xml/i.test(t),r=e.target.value;this.onChange(r,{isXml:n,isEditBox:this.state.isEditBox})};toggleIsEditBox=()=>this.setState((e=>({isEditBox:!e.isEditBox})));render(){let{onChangeConsumes:t,param:n,isExecute:r,specSelectors:i,pathMethod:a,getComponent:o}=this.props,s=o(`Button`),c=o(`TextArea`),l=o(`HighlightCode`,!0),u=o(`contentType`),d=(i?i.parameterWithMetaByIdentity(a,n):n).get(`errors`,(0,Q.List)()),f=i.contentTypeValues(a).get(`requestContentType`),p=this.props.consumes&&this.props.consumes.size?this.props.consumes:e.defaultProp.consumes,{value:m,isEditBox:h}=this.state,g=null;U1(m)&&(g=`json`);let _=`${V1(`${a[1]}${a[0]}_parameters`)}_select`;return B.createElement(`div`,{className:`body-param`,"data-param-name":n.get(`name`),"data-param-in":n.get(`in`)},h&&r?B.createElement(c,{className:`body-param__text`+(d.count()?` invalid`:``),value:m,onChange:this.handleOnChange}):m&&B.createElement(l,{className:`body-param__example`,language:g},m),B.createElement(`div`,{className:`body-param-options`},r?B.createElement(`div`,{className:`body-param-edit`},B.createElement(s,{className:h?`btn cancel body-param__example-edit`:`btn edit body-param__example-edit`,onClick:this.toggleIsEditBox},h?`Cancel`:`Edit`)):null,B.createElement(`label`,{htmlFor:_},B.createElement(`span`,null,`Parameter content type`),B.createElement(u,{value:f,contentTypes:p,onChange:t,className:`body-param-content-type`,ariaLabel:`Parameter content type`,controlId:_}))))}},F0=`Copy cURL command to clipboard`,I0=class extends B.Component{render(){let{request:e,getComponent:t}=this.props,n=tX(e),r=t(`SyntaxHighlighter`,!0);return B.createElement(`div`,{className:`curl-command`},B.createElement(`h4`,null,`Curl`),B.createElement(`div`,{className:`copy-to-clipboard`,title:F0,"aria-label":F0},B.createElement(mp.CopyToClipboard,{text:n},B.createElement(`button`,{"aria-label":F0,title:F0,type:`button`}))),B.createElement(`div`,null,B.createElement(r,{language:`bash`,className:`curl microlight`,renderPlainText:({children:e,PlainTextViewer:t})=>B.createElement(t,{className:`curl`},e)},n)))}},L0=({propKey:e,propVal:t,propClass:n})=>B.createElement(`span`,{className:n},B.createElement(`br`,null),e,`: `,Wq(t)),R0=class extends B.Component{static defaultProps={onTryoutClick:Function.prototype,onCancelClick:Function.prototype,onResetClick:Function.prototype,enabled:!1,hasUserEditedBody:!1,isOAS3:!1};render(){let{onTryoutClick:e,onCancelClick:t,onResetClick:n,enabled:r,hasUserEditedBody:i,isOAS3:a}=this.props,o=a&&i;return B.createElement(`div`,{className:o?`try-out btn-group`:`try-out`},r?B.createElement(`button`,{className:`btn try-out__btn cancel`,onClick:t},`Cancel`):B.createElement(`button`,{className:`btn try-out__btn`,onClick:e},`Try it out `),o&&B.createElement(`button`,{className:`btn try-out__btn reset`,onClick:n},`Reset`))}},z0=class extends B.PureComponent{static defaultProps={alsoShow:null,children:null,bypass:!1};render(){let{bypass:e,isSwagger2:t,isOAS3:n,alsoShow:r}=this.props;return e?B.createElement(`div`,null,this.props.children):t&&n?B.createElement(`div`,{className:`version-pragma`},r,B.createElement(`div`,{className:`version-pragma__message version-pragma__message--ambiguous`},B.createElement(`div`,null,B.createElement(`h3`,null,`Unable to render this definition`),B.createElement(`p`,null,B.createElement(`code`,null,`swagger`),` and `,B.createElement(`code`,null,`openapi`),` fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.`),B.createElement(`p`,null,`Supported version fields are `,B.createElement(`code`,null,`swagger: `,`"2.0"`),` and those that match `,B.createElement(`code`,null,`openapi: 3.0.n`),` (for example, `,B.createElement(`code`,null,`openapi: 3.0.4`),`).`)))):t||n?B.createElement(`div`,null,this.props.children):B.createElement(`div`,{className:`version-pragma`},r,B.createElement(`div`,{className:`version-pragma__message version-pragma__message--missing`},B.createElement(`div`,null,B.createElement(`h3`,null,`Unable to render this definition`),B.createElement(`p`,null,`The provided definition does not specify a valid version field.`),B.createElement(`p`,null,`Please indicate a valid Swagger or OpenAPI version field. Supported version fields are `,B.createElement(`code`,null,`swagger: `,`"2.0"`),` and those that match `,B.createElement(`code`,null,`openapi: 3.0.n`),` (for example, `,B.createElement(`code`,null,`openapi: 3.0.4`),`).`))))}},B0=({version:e})=>B.createElement(`small`,null,B.createElement(`pre`,{className:`version`},` `,e,` `)),V0=({oasVersion:e})=>B.createElement(`small`,{className:`version-stamp`},B.createElement(`pre`,{className:`version`},`OAS `,e)),H0=({enabled:e,path:t,text:n})=>B.createElement(`a`,{className:`nostyle`,onClick:e?e=>e.preventDefault():null,href:e?`#/${t}`:null},B.createElement(`span`,null,n)),U0=()=>B.createElement(`div`,null,B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,xmlnsXlink:`http://www.w3.org/1999/xlink`,className:`svg-assets`}
277,B.createElement(`defs`,null,B.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`unlocked`},B.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`})),B.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`locked`},B.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`})),B.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`close`},B.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`})),B.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`large-arrow`},B.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`})),B.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`large-arrow-down`},B.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`})),B.createElement(`symbol`,{viewBox:`0 0 20 20`,id:`large-arrow-up`},B.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`})),B.createElement(`symbol`,{viewBox:`0 0 24 24`,id:`jump-to`},B.createElement(`path`,{d:`M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z`})),B.createElement(`symbol`,{viewBox:`0 0 24 24`,id:`expand`},B.createElement(`path`,{d:`M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z`})),B.createElement(`symbol`,{viewBox:`0 0 15 16`,id:`copy`},B.createElement(`g`,{transform:`translate(2, -1)`},B.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`})))))),W0=typeof window<`u`?vK(window):vK;W0.addHook&&W0.addHook(`beforeSanitizeElements`,(function(e){return e.href&&e.setAttribute(`rel`,`noopener noreferrer`),e}));var G0=function({source:e,className:t=``,getConfigs:n=()=>({useUnsafeMarkdown:!1})}){if(typeof e!=`string`)return null;let r=new PU({html:!0,typographer:!0,breaks:!0,linkTarget:`_blank`}).use(GW);r.core.ruler.disable([`replacements`,`smartquotes`]);let{useUnsafeMarkdown:i}=n(),a=r.render(e),o=K0(a,{useUnsafeMarkdown:i});return e&&a&&o?B.createElement(`div`,{className:(0,pp.default)(t,`markdown`),dangerouslySetInnerHTML:{__html:o}}):null};function K0(e,{useUnsafeMarkdown:t=!1}={}){let n=t,r=t?[]:[`style`,`class`];return t&&!K0.hasWarnedAboutDeprecation&&(console.warn(`useUnsafeMarkdown display configuration parameter is deprecated since >3.26.0 and will be removed in v4.0.0.`),K0.hasWarnedAboutDeprecation=!0),W0.sanitize(e,{ADD_ATTR:[`target`],FORBID_TAGS:[`style`,`form`],ALLOW_DATA_ATTR:n,FORBID_ATTR:r})}K0.hasWarnedAboutDeprecation=!1;var q0=class extends B.Component{render(){let{errSelectors:e,specSelectors:t,getComponent:n}=this.props,r=n(`SvgAssets`),i=n(`InfoContainer`,!0),a=n(`VersionPragmaFilter`),o=n(`operations`,!0),s=n(`Models`,!0),c=n(`Webhooks`,!0),l=n(`Row`),u=n(`Col`),d=n(`errors`,!0),f=n(`ServersContainer`,!0),p=n(`SchemesContainer`,!0),m=n(`AuthorizeBtnContainer`,!0),h=n(`FilterContainer`,!0),g=t.isSwagger2(),_=t.isOAS3(),v=t.isOAS31(),y=t.isOAS32(),b=!t.specStr(),x=t.loadingStatus(),S=null;if(x===`loading`&&(S=B.createElement(`div`,{className:`info`},B.createElement(`div`,{className:`loading-container`},B.createElement(`div`,{className:`loading`}
277)))),x===`failed`&&(S=B.createElement(`div`,{className:`info`},B.createElement(`div`,{className:`loading-container`},B.createElement(`h4`,{className:`title`},`Failed to load API definition.`),B.createElement(d,null)))),x===`failedConfig`){let t=e.lastError(),n=t?t.get(`message`):``;S=B.createElement(`div`,{className:`info failed-config`},B.createElement(`div`,{className:`loading-container`},B.createElement(`h4`,{className:`title`},`Failed to load remote configuration.`),B.createElement(`p`,null,n)))}if(!S&&b&&(S=B.createElement(`h4`,null,`No API definition provided.`)),S)return B.createElement(`div`,{className:`swagger-ui`},B.createElement(`div`,{className:`loading-container`},S));let C=t.servers(),w=t.schemes(),T=C&&C.size,E=w&&w.size,D=!!t.securityDefinitions();return B.createElement(`div`,{className:`swagger-ui`},B.createElement(r,null),B.createElement(a,{isSwagger2:g,isOAS3:_,isOAS31:v,isOAS32:y,alsoShow:B.createElement(d,null)},B.createElement(d,null),B.createElement(l,{className:`information-container`},B.createElement(u,{mobile:12},B.createElement(i,null))),T||E||D?B.createElement(`div`,{className:`scheme-container`},B.createElement(u,{className:`schemes wrapper`,mobile:12},T||E?B.createElement(`div`,{className:`schemes-server-container`},T?B.createElement(f,null):null,E?B.createElement(p,null):null):null,D?B.createElement(m,null):null)):null,B.createElement(h,null),B.createElement(`main`,{id:`operations`,tabIndex:`-1`,style:{outline:`none`}},B.createElement(l,null,B.createElement(u,{mobile:12,desktop:12},B.createElement(o,null))),v&&B.createElement(l,{className:`webhooks-container`},B.createElement(u,{mobile:12,desktop:12},B.createElement(c,null))),B.createElement(l,null,B.createElement(u,{mobile:12,desktop:12},B.createElement(s,null))))))}},J0=()=>({components:{App:u1,authorizationPopup:d1,authorizeBtn:f1,AuthorizeBtnContainer:p1,authorizeOperationBtn:m1,auths:h1,AuthItem:g1,authError:_1,oauth2:T1,apiKeyAuth:v1,basicAuth:y1,clear:E1,liveResponse:k1,InitializedInput:x0,info:w0,InfoContainer:T0,InfoUrl:C0,InfoBasePath:S0,Contact:E0,License:D0,JumpToPath:O0,CopyToClipboardBtn:A0,onlineValidatorBadge:A1,operations:M1,operation:P1,OperationSummary:I1,OperationSummaryMethod:L1,OperationSummaryPath:R1,responses:H1,response:W1,ResponseExtension:G1,responseBody:K1,parameters:q1,parameterRow:Q1,execute:$1,headers:e0,errors:t0,contentType:o0,overview:y0,footer:j0,FilterContainer:M0,ParamBody:P0,curl:I0,Property:L0,TryItOutButton:R0,Markdown:G0,BaseLayout:q0,VersionPragmaFilter:z0,VersionStamp:B0,OperationExt:z1,OperationExtRow:B1,ParameterExt:J1,ParameterIncludeEmpty:X1,OperationTag:N1,OperationContainer:F1,OpenAPIVersion:V0,DeepLink:H0,SvgAssets:U0,Example:b1,ExamplesSelect:x1,ExamplesSelectValueRetainer:C1}}),Y0=()=>({components:{...UK}}),X0=()=>[rJ,tY,P$,KY,U$,W$,j$,bY,kY,GY,XX,TZ,J0,Y0,N$,UJ,G$,fY,SY,JY,fX,n1,i1,l1()],Z0=(0,Q.Map)();function Q0(e){return(t,n)=>(...r)=>{if(n.getSystem().specSelectors.isOAS3()){let t=e(...r);return typeof t==`function`?t(n):t}return t(...r)}}var $0=Q0((0,zn.default)(null)),e2=Q0(((e,t)=>e=>e.getSystem().specSelectors.findSchema(t))),t2=Q0((()=>e=>{let t=e.getSystem().specSelectors.specJson().getIn([`components`,`schemas`]);return Q.Map.isMap(t)?t:Z0})),n2=Q0((()=>e=>e.getSystem().specSelectors.specJson().hasIn([`servers`,0]))),r2=Q0(ru(LZ,(e=>e.getIn([`components`,`securitySchemes`])||null))),i2=(e,t)=>(n,...r)=>t.specSelectors.isOAS3()?t.oas3Selectors.validOperationMethods():e(...r),a2=$0,o2=$0,s2=$0,c2=$0,l2=$0,u2=function(e){return(t,n)=>(...r)=>n.getSystem().specSelectors.isOAS3()?e(n,n.getState().getIn([`spec`,`resolvedSubtrees`,`components`,`securitySchemes`]),...r):t(...r)}(ru((e=>e),(({specSelectors:e})=>e.securityDefinitions()),((e,t)=>{let n=(0,Q.List)();return t&&t.entrySeq().forEach((([e,t])=>{let r=t?.get(`type`);if(r===`oauth2`&&t.get(`flows`).entrySeq().forEach((([r,i])=>{let a=(0,Q.fromJS)({flow:r,authorizationUrl:i.get(`authorizationUrl`),tokenUrl:i.get(`tokenUrl`),scopes:i.get(`scopes`),type:t.get(`type`),description:t.get(`description`)});n=n.push(new Q.Map({[e]:a.filter((e=>e!==void 0))}))})),r!==`http`&&r!==`apiKey`||(n=n.push(new Q.Map({[e]:t}))),r===`openIdConnect`&&t.get(`openIdConnectData`)){let r=t.get(`openIdConnectData`);(r.get(`grant_types_supported`)||[`authorization_code`,`implicit`]).forEac
277h((i=>{let a=r.get(`scopes_supported`)&&r.get(`scopes_supported`).reduce(((e,t)=>e.set(t,``)),new Q.Map),o=(0,Q.fromJS)({flow:i,authorizationUrl:r.get(`authorization_endpoint`),tokenUrl:r.get(`token_endpoint`),scopes:a,type:`oauth2`,openIdConnectUrl:t.get(`openIdConnectUrl`)});n=n.push(new Q.Map({[e]:o.filter((e=>e!==void 0))}))}))}})),n})));function d2(e){return(t,n)=>r=>typeof n.specSelectors?.isOAS3==`function`?n.specSelectors.isOAS3()?B.createElement(e,sp({},r,n,{Ori:t})):B.createElement(t,r):(console.warn(`OAS3 wrapper: couldn't get spec`),null)}var f2=(0,Q.Map)(),p2=()=>e=>function(e){let t=e.get(`swagger`);return typeof t==`string`&&t===`2.0`}(e.getSystem().specSelectors.specJson()),m2=()=>e=>function(e){let t=e.get(`openapi`);return typeof t==`string`&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}(e.getSystem().specSelectors.specJson()),h2=()=>e=>e.getSystem().specSelectors.isOAS30();function g2(e){return(t,...n)=>r=>{if(r.specSelectors.isOAS3()){let i=e(t,...n);return typeof i==`function`?i(r):i}return null}}var _2=g2((()=>e=>e.specSelectors.specJson().get(`servers`,f2))),v2=(e,t)=>{let n=e.getIn([`resolvedSubtrees`,`components`,`schemas`,t],null),r=e.getIn([`json`,`components`,`schemas`,t],null);return n||r||null},y2=g2(((e,{callbacks:t,specPath:n})=>e=>{let r=e.specSelectors.validOperationMethods();return Q.Map.isMap(t)?t.reduce(((e,t,i)=>{if(!Q.Map.isMap(t))return e;let a=t.reduce(((e,t,a)=>{if(!Q.Map.isMap(t))return e;let o=t.entrySeq().filter((([e])=>r.includes(e))).map((([e,t])=>({operation:(0,Q.Map)({operation:t}),method:e,path:a,callbackName:i,specPath:n.concat([i,a,e])})));return e.concat(o)}),(0,Q.List)());return e.concat(a)}),(0,Q.List)()).groupBy((e=>e.callbackName)).map((e=>e.toArray())).toObject():{}})),b2=({callbacks:e,specPath:t,specSelectors:n,getComponent:r})=>{let i=n.callbacksOperations({callbacks:e,specPath:t}),a=Object.keys(i),o=r(`OperationContainer`,!0);return a.length===0?B.createElement(`span`,null,`No callbacks`):B.createElement(`div`,null,a.map((e=>B.createElement(`div`,{key:`${e}`},B.createElement(`h2`,null,e),i[e].map((t=>B.createElement(o,{key:`${e}-${t.path}-${t.method}`,op:t.operation,tag:`callbacks`,method:t.method,path:t.path,specPath:t.specPath,allowTryItOut:!1})))))))},x2=(e,t,n,r)=>{let i=e.getIn([`content`,t])??(0,Q.OrderedMap)(),a=i.get(`schema`,(0,Q.OrderedMap)()),o=i.get(`examples`)!==void 0,s=i.get(`example`),c=o?i.getIn([`examples`,n,`value`]):s;return Wq(r.getSampleSchema(a,t,{includeWriteOnly:!0},c))},S2=({userHasEditedBody:e,requestBody:t,requestBodyValue:n,requestBodyInclusionSetting:r,requestBodyErrors:i,getComponent:a,getConfigs:o,specSelectors:s,fn:c,contentType:l,isExecute:u,specPath:d,onChange:f,onChangeIncludeEmpty:p,activeExamplesKey:m,updateActiveExamplesKey:h,setRetainRequestBodyValueFlag:g})=>{let _=e=>{f(e.target.files[0])},v=e=>{let t={key:e,shouldDispatchInit:!1,defaultValue:!0};return r.get(e,`no value`)===`no value`&&(t.shouldDispatchInit=!0),t},y=a(`Markdown`,!0),b=a(`modelExample`,!0),x=a(`RequestBodyEditor`),S=a(`HighlightCode`,!0),C=a(`ExamplesSelectValueRetainer`),w=a(`Example`),T=a(`ParameterIncludeEmpty`),{showCommonExtensions:E}=o(),D=t?.get(`description`)??null,O=t?.get(`content`)??new Q.OrderedMap;l=l||O.keySeq().first()||``;let k=O.get(l)??(0,Q.OrderedMap)(),A=k.get(`schema`,(0,Q.OrderedMap)()),j=k.get(`examples`,null)?.map(((e,n)=>{let r=e?.get(`value`,null);return r&&(e=e.set(`value`,x2(t,l,n,c),r)),e}));if(i=Q.List.isList(i)?i:(0,Q.List)(),c.isFileUploadIntended(k?.get(`schema`),l)){let e=a(`Input`);return u?B.createElement(e,{type:`file`,onChange:_}):B.createElement(`i`,null,`Example values are not available for `,B.createElement(`code`,null,l),` media types.`)}if(!k.size)return null;if(c.hasSchemaType(k.get(`schema`),`object`)&&(l===`application/x-www-form-urlencoded`||l.indexOf(`multipart/`)===0)&&A.get(`properties`,(0,Q.OrderedMap)()).size>0){let e=a(`JsonSchemaForm`),t=a(`ParameterExt`),l=A.get(`properties`,(0,Q.OrderedMap)());return n=Q.Map.isMap(n)?n:(0,Q.OrderedMap)(),B.createElement(`div`,{className:`table-container`},D&&B.createElement(y,{source:D}),B.createElement(`table`,null,B.createElement(`tbody`,null,Q.Map.isMap(l)&&l.entrySeq().map((([l,m])=>{if(m.get(`readOnly`))return;let h=m.get(`oneOf`)?.get(0)?.toJS(),g=m.get(`anyOf`)?.get(0)?.toJS();m=(0,Q.fromJS)(c.mergeJsonSchema(m.toJS(),h??g??{}));let _=E?Hq(m):null,x=A.get(`required`,(0,Q.List)()).includes(l),S=c.getSchemaObjectType(m),C=c.getSchemaObjectTypeLabel(m),w=c.getSchemaObjectType(m?.get(`items`)),D=m.get(`format`),O=m.get(`description`),k=n.getIn([l,`value`]),j=n.getIn([l,`errors`])||i,M=r.get(l)||!1,N=c.getSampleSchema(m,!1,{includeWriteOnly:!0});
277!1===N&&(N=`false`),N===0&&(N=`0`),typeof N!=`string`&&S===`object`&&(N=Wq(N)),typeof N==`string`&&S===`array`&&(N=JSON.parse(N));let P=c.isFileUploadIntended(m),F=B.createElement(e,{fn:c,dispatchInitialValue:!P,schema:m,description:l,getComponent:a,value:k===void 0?N:k,required:x,errors:j,onChange:e=>{f(e,[l])}});return B.createElement(`tr`,{key:l,className:`parameters`,"data-property-name":l},B.createElement(`td`,{className:`parameters-col_name`},B.createElement(`div`,{className:x?`parameter__name required`:`parameter__name`},l,x?B.createElement(`span`,null,`\xA0*`):null),B.createElement(`div`,{className:`parameter__type`},C,D&&B.createElement(`span`,{className:`prop-format`},`($`,D,`)`),E&&_.size?_.entrySeq().map((([e,n])=>B.createElement(t,{key:`${e}-${n}`,xKey:e,xVal:n}))):null),B.createElement(`div`,{className:`parameter__deprecated`},m.get(`deprecated`)?`deprecated`:null)),B.createElement(`td`,{className:`parameters-col_description`},B.createElement(y,{source:O}),u?B.createElement(`div`,null,S===`object`||w===`object`?B.createElement(b,{getComponent:a,specPath:d.push(`schema`),getConfigs:o,isExecute:u,specSelectors:s,schema:m,example:F}):F,x?null:B.createElement(T,{onChange:e=>p(l,e),isIncluded:M,isIncludedOptions:v(l),isDisabled:Array.isArray(k)?k.length!==0:!Jq(k)})):null))})))))}let M=x2(t,l,m,c),N=null;U1(M)&&(N=`json`);let P=u?B.createElement(x,{value:n,errors:i,defaultValue:M,onChange:f,getComponent:a}):B.createElement(S,{className:`body-param__example`,language:N},Wq(n)||M);return B.createElement(`div`,null,D&&B.createElement(y,{source:D}),j?B.createElement(C,{userHasEditedBody:e,examples:j,currentKey:m,currentUserInputValue:n,onSelect:e=>{h(e)},updateValue:f,defaultToFirstExample:!0,getComponent:a,setRetainRequestBodyValueFlag:g}):null,B.createElement(b,{getComponent:a,getConfigs:o,specSelectors:s,expandDepth:1,isExecute:u,schema:k.get(`schema`),specPath:d.push(`content`,l,`schema`),example:P,includeWriteOnly:!0}),j?B.createElement(w,{example:j.get(m),getComponent:a,getConfigs:o}):null)},C2=class extends B.Component{render(){let{link:e,name:t,getComponent:n}=this.props,r=n(`Markdown`,!0),i=e.get(`operationId`)||e.get(`operationRef`),a=e.get(`parameters`)&&e.get(`parameters`).toJS(),o=e.get(`description`);return B.createElement(`div`,{className:`operation-link`},B.createElement(`div`,{className:`description`},B.createElement(`b`,null,B.createElement(`code`,null,t)),o?B.createElement(r,{source:o}):null),B.createElement(`pre`,null,"Operation `",i,"`",B.createElement(`br`,null),B.createElement(`br`,null),`Parameters `,function(e,t){return typeof t==`string`?t.split(` 278`).map(((t,n)=>n>0?Array(e+1).join(` `)+t:t)).join(` 279`):``}(0,JSON.stringify(a,null,2))||`{}`,B.createElement(`br`,null)))}},w2=({servers:e,currentServer:t,setSelectedServer:n,setServerVariableValue:r,getServerVariable:i,getEffectiveServerValue:a})=>{let o=(e.find((e=>e.get(`url`)===t))||(0,Q.OrderedMap)()).get(`variables`)||(0,Q.OrderedMap)(),s=o.size!==0;(0,B.useEffect)((()=>{t||n(e.first()?.get(`url`))}),[]),(0,B.useEffect)((()=>{let i=e.find((e=>e.get(`url`)===t));if(!i)return void n(e.first().get(`url`));(i.get(`variables`)||(0,Q.OrderedMap)()).map(((e,n)=>{r({server:t,key:n,val:e.get(`default`)||``})}))}),[t,e]);let c=(0,B.useCallback)((e=>{n(e.target.value)}),[n]),l=(0,B.useCallback)((e=>{let n=e.target.getAttribute(`data-variable`),i=e.target.value;r({server:t,key:n,val:i})}),[r,t]);return B.createElement(`div`,{className:`servers`},B.createElement(`label`,{htmlFor:`servers`},B.createElement(`select`,{onChange:c,value:t,id:`servers`},e.valueSeq().map((e=>B.createElement(`option`,{value:e.get(`url`),key:e.get(`url`)},e.get(`url`),e.get(`description`)&&` - ${e.get(`description`)}`))).toArray())),s&&B.createElement(`div`,null,B.createElement(`div`,{className:`computed-url`},`Computed URL:`,B.createElement(`code`,null,a(t))),B.createElement(`h4`,null,`Server variables`),B.createElement(`table`,null,B.createElement(`tbody`,null,o.entrySeq().map((([e,n])=>B.createElement(`tr`,{key:e},B.createElement(`td`,null,e),B.createElement(`td`,null,n.get(`enum`)?B.createElement(`select`,{"data-variable":e,onChange:l},n.get(`enum`).map((n=>B.createElement(`option`,{selected:n===i(t,e),key:n,value:n},n)))):B.createElement(`input`,{type:`text`,value:i(t,e)||``,onChange:l,"data-variable":e})))))))))},T2=class extends B.Component{render(){let{specSelectors:e,oas3Selectors:t,oas3Actions:n,getComponent:r}=this.props,i=e.servers(),a=r(`Servers`);return i&&i.size?B.createElement(`div`,null,B.createElement(`span`,{className:`servers-title`},`Servers`),B.createElement(a,{servers:i,currentServer:t.selectedServer(),setSelectedServer:n.setSelectedServer,setServerVariableValue:n.setServerVariableValue,getServerVariable:t.serverVariableValue,getEffectiveServerValue:t.serverEffectiveValue})):null}},E2=Function.prototype,D2=class extends B.Component{constructor(e,t){super(e,t);let{name:n,schema:r}=this.props,i=this.getValue();this.state={name:n,schema:r,value:i}}getValue(){let{name:e,authorized:t}=this.props;return t&&t.getIn([e,`value`])}onChange=e=>{let{onChange:t}=this.props,{value:n,name:r}=e.target,i=Object.assign({},this.state.value);r?i[r]=n:i=n,this.setState({value:i},(()=>t(this.state)))};render(){let{schema:e,getComponent:t,errSelectors:n,name:r,authSelectors:i}=this.props,a=t(`Input`),o=t(`Row`),s=t(`Col`),c=t(`authError`),l=t(`Markdown`,!0),u=t(`JumpToPath`,!0),d=(e.get(`scheme`)||``).toLowerCase(),f=i.selectAuthPath(r),p=this.getValue(),m=n.allErrors().filter((e=>e.get(`authId`)===r));if(d===`basic`){let t=p?p.get(`username`):null;return B.createElement(`div`,null,B.createElement(`h4`,null,B.createElement(`code`,null,r),`\xA0 (http, Basic)`,B.createElement(u,{path:f})),t&&B.createElement(`h6`,null,`Authorized`),B.createElement(o,null,B.createElement(l,{source:e.get(`description`)})),B.createElement(o,null,B.createElement(`label`,{htmlFor:`auth-basic-username`},`Username:`),t?B.createElement(`code`,null,` `,t,` `):B.createElement(s,null,B.createElement(a,{id:`auth-basic-username`,type:`text`,required:`required`,name:`username`,"aria-label":`auth-basic-username`,onChange:this.onChange,autoFocus:!0}))),B.createElement(o,null,B.createElement(`label`,{htmlFor:`auth-basic-password`},`Password:`),t?B.createElement(`code`,null,` ****** `):B.createElement(s,null,B.createElement(a,{id:`auth-basic-password`,autoComplete:`new-password`,name:`password`,type:`password`,"aria-label":`auth-basic-password`,onChange:this.onChange}
279))),m.valueSeq().map(((e,t)=>B.createElement(c,{error:e,key:t}))))}return d===`bearer`?B.createElement(`div`,null,B.createElement(`h4`,null,B.createElement(`code`,null,r),`\xA0 (http, Bearer)`,B.createElement(u,{path:f})),p&&B.createElement(`h6`,null,`Authorized`),B.createElement(o,null,B.createElement(l,{source:e.get(`description`)})),B.createElement(o,null,B.createElement(`label`,{htmlFor:`auth-bearer-value`},`Value:`),p?B.createElement(`code`,null,` ****** `):B.createElement(s,null,B.createElement(a,{id:`auth-bearer-value`,type:`text`,"aria-label":`auth-bearer-value`,onChange:this.onChange,autoFocus:!0}))),m.valueSeq().map(((e,t)=>B.createElement(c,{error:e,key:t})))):B.createElement(`div`,null,B.createElement(`em`,null,B.createElement(`b`,null,r),` HTTP authentication: unsupported scheme `,`'${d}'`))}},O2=class extends B.Component{setSelectedServer=e=>{let{path:t,method:n}=this.props;return this.forceUpdate(),this.props.setSelectedServer(e,`${t}:${n}`)};setServerVariableValue=e=>{let{path:t,method:n}=this.props;return this.forceUpdate(),this.props.setServerVariableValue({...e,namespace:`${t}:${n}`})};getSelectedServer=()=>{let{path:e,method:t}=this.props;return this.props.getSelectedServer(`${e}:${t}`)};getServerVariable=(e,t)=>
279{let{path:n,method:r}=this.props;return this.props.getServerVariable({namespace:`${n}:${r}`,server:e},t)};getEffectiveServerValue=e=>{let{path:t,method:n}=this.props;return this.props.getEffectiveServerValue({server:e,namespace:`${t}:${n}`})};render(){let{operationServers:e,pathServers:t,getComponent:n}=this.props;if(!e&&!t)return null;let r=n(`Servers`),i=e||t,a=e?`operation`:`path`;return B.createElement(`div`,{className:`opblock-section operation-servers`},B.createElement(`div`,{className:`opblock-section-header`},B.createElement(`div`,{className:`tab-header`},B.createElement(`h4`,{className:`opblock-title`},`Servers`))),B.createElement(`div`,{className:`opblock-description-wrapper`},B.createElement(`h4`,{className:`message`},`These `,a,`-level options override the global server options.`),B.createElement(r,{servers:i,currentServer:this.getSelectedServer(),setSelectedServer:this.setSelectedServer,setServerVariableValue:this.setServerVariableValue,getServerVariable:this.getServerVariable,getEffectiveServerValue:this.getEffectiveServerValue})))}},k2={Callbacks:b2,HttpAuth:D2,RequestBody:S2,Servers:w2,ServersContainer:T2,RequestBodyEditor:class extends B.PureComponent{static defaultProps={onChange:E2,userHasEditedBody:!1};constructor(e,t){super(e,t),this.state={value:Wq(e.value)||e.defaultValue},e.onChange(e.value)}applyDefaultValue=e=>{let{onChange:t,defaultValue:n}=e||this.props;return this.setState({value:n}),t(n)};onChange=e=>{this.props.onChange(Wq(e))};onDomChange=e=>{let t=e.target.value;this.setState({value:t},(()=>this.onChange(t)))};UNSAFE_componentWillReceiveProps(e){this.props.value!==e.value&&e.value!==this.state.value&&this.setState({value:Wq(e.value)}),!e.value&&e.defaultValue&&this.state.value&&this.applyDefaultValue(e)}render(){let{getComponent:e,errors:t}=this.props,{value:n}=this.state,r=t.size>0,i=e(`TextArea`);return B.createElement(`div`,{className:`body-param`},B.createElement(i,{className:(0,pp.default)(`body-param__text`,{invalid:r}),title:t.size?t.join(`, `):``,value:n,onChange:this.onDomChange}))}},OperationServers:O2,operationLink:C2},A2=new PU(`commonmark`);A2.block.ruler.enable([`table`]),A2.set({linkTarget:`_blank`});var j2=d2((({source:e,className:t=``,getConfigs:n=()=>({useUnsafeMarkdown:!1})})=>{if(typeof e!=`string`)return null;if(e){let{useUnsafeMarkdown:r}=n(),i=K0(A2.render(e),{useUnsafeMarkdown:r}),a;return typeof i==`string`&&(a=i.trim()),B.createElement(`div`,{dangerouslySetInnerHTML:{__html:a},className:(0,pp.default)(t,`renderedMarkdown`)})}return null})),M2=d2((({Ori:e,...t})=>{let{schema:n,getComponent:r,errSelectors:i,authorized:a,onAuthChange:o,name:s,authSelectors:c}=t,l=r(`HttpAuth`);return n.get(`type`)===`http`?B.createElement(l,{key:s,schema:n,name:s,errSelectors:i,authorized:a,getComponent:r,onChange:o,authSelectors:c}):B.createElement(e,t)})),N2=d2(A1),P2=d2(class extends B.Component{render(){let{getConfigs:e,schema:t,Ori:n}=this.props,r=[`model-box`],i=null;return!0===t.get(`deprecated`)&&(r.push(`deprecated`),i=B.createElement(`span`,{className:`model-deprecated-warning`},`Deprecated:`)),B.createElement(`div`,{className:r.join(` `)},i,B.createElement(n,sp({},this.props,{getConfigs:e,depth:1,expandDepth:this.props.expandDepth||
2790})))}}),F2=d2((({Ori:e,...t})=>{let{schema:n,getComponent:r,errors:i,onChange:a,fn:o}=t,s=o.isFileUploadIntended(n),c=r(`Input`);return s?B.createElement(c,{type:`file`,className:i.length?`invalid`:``,title:i.length?i:``,onChange:e=>{a(e.target.files[0])},disabled:e.isDisabled}):B.createElement(e,t)})),I2={Markdown:j2,AuthItem:M2,OpenAPIVersion:function(e){return(t,n)=>r=>typeof n.specSelectors?.isOAS30==`function`?n.specSelectors.isOAS30()?B.createElement(e,sp({},r,n,{Ori:t})):B.createElement(t,r):(console.warn(`OAS30 wrapper: couldn't get spec`),null)}((e=>{let{Ori:t}=e;return B.createElement(t,{oasVersion:`3.0`})})),JsonSchema_string:F2,model:P2,onlineValidatorBadge:N2},L2=`oas3_set_servers`,R2=`oas3_set_request_body_value`,z2=`oas3_set_request_body_retain_flag`,B2=`oas3_set_request_body_inclusion`,V2=`oas3_set_active_examples_member`,H2=`oas3_set_request_content_type`,U2=`oas3_set_response_content_type`,W2=`oas3_set_response_code_content_type`,G2=`oas3_set_server_variable_value`,K2=`oas3_set_request_body_validate_error`,q2=`oas3_clear_request_body_validate_error`,J2=`oas3_clear_request_body_value`;function Y2(e,t){return{type:L2,payload:{selectedServerUrl:e,namespace:t}}}function X2({value:e,pathMethod:t}){return{type:R2,payload:{value:e,pathMethod:t}}}var Z2=({value:e,pathMethod:t})=>({type:z2,payload:{value:e,pathMethod:t}});function Q2({value:e,pathMethod:t,name:n}){return{type:B2,payload:{value:e,pathMethod:t,name:n}}}function $2({name:e,pathMethod:t,contextType:n,contextName:r}){return{type:V2,payload:{name:e,pathMethod:t,contextType:n,contextName:r}}}function e4({value:e,pathMethod:t}){return{type:H2,payload:{value:e,pathMethod:t}}}function t4({value:e,path:t,method:n}){return{type:U2,payload:{value:e,path:t,method:n}}}function n4({value:e,path:t,method:n,code:r}){return{type:W2,payload:{value:e,path:t,method:n,code:r}}}function r4({server:e,namespace:t,key:n,val:r}){return{type:G2,payload:{server:e,namespace:t,key:n,val:r}}}var i4=({path:e,method:t,validationErrors:n})=>({type:K2,payload:{path:e,method:t,validationErrors:n}}),a4=({path:e,method:t})=>({type:q2,payload:{path:e,method:t}}),o4=({pathMethod:e})=>({type:q2,payload:{path:e[0],method:e[1]}}),s4=({pathMethod:e})=>({type:J2,payload:{pathMethod:e}}),c4=e=>(t,...n)=>r=>{if(r.getSystem().specSelectors.isOAS3()){let i=e(t,...n);return typeof i==`function`?i(r):i}return null},l4=c4(((e,t)=>{let n=t?[t,`selectedServer`]:[`selectedServer`];return e.getIn(n)||``})),u4=c4(((e,t,n)=>e.getIn([`requestData`,t,n,`bodyValue`])||null)),d4=c4(((e,t,n)=>e.getIn([`requestData`,t,n,`retainBodyValue`])||!1)),f4=(e,t,n)=>e=>{let{oas3Selectors:r,specSelectors:i,fn:a}=e.getSystem();if(i.isOAS3()){let e=r.requestContentType(t,n);if(e)return x2(i.specResolvedSubtree([`paths`,t,n,`requestBody`]),e,r.activeExamplesMember(t,n,`requestBody`,`requestBody`),a)}return null},p4=c4(((e,t,n)=>e=>{let{oas3Selectors:r,specSelectors:i,fn:a}=e,o=!1,s=r.requestContentType(t,n),c=r.requestBodyValue(t,n),l=i.specResolvedSubtree([`paths`,t,n,`requestBody`]);if(!l)return!1;if(Q.Map.isMap(c)&&(c=Wq(c.mapEntries((e=>Q.Map.isMap(e[1])?[e[0],e[1].get(`value`)]:e)).toJS())),Q.List.isList(c)&&(c=Wq(c)),s){let e=x2(l,s,r.activeExamplesMember(t,n,`requestBody`,`requestBody`),a);o=!!c&&c!==e}return o})),m4=c4(((e,t,n)=>e.getIn([`requestData`,t,n,`bodyInclusion`])||(0,Q.Map)())),h4=c4(((e,t,n)=>e.getIn([`requestData`,t,n,`errors`])||null)),g4=c4(((e,t,n,r,i)=>e.getIn([`examples`,t,n,r,i,`activeExample`])||null)),_4=c4(((e,t,n)=>e.getIn([`requestData`,t,n,`requestContentType`])||null)),v4=c4(((e,t,n)=>e.getIn([`requestData`,t,n,`responseContentType`])||null)),y4=c4(((e,t,n,r)=>e.getIn([`requestData`,t,n,`responseCodeContentType`,r])||null)),b4=c4(((e,t,n)=>{let r;if(typeof t!=`string`){let{server:e,namespace:i}=t;r=i?[i,`serverVariableValues`,e,n]:[`serverVariableValues`,e,n]}else r=[`serverVariableValues`,t,n];return e.getIn(r)||null})),x4=c4(((e,t)=>{let n;if(typeof t!=`string`){let{server:e,namespace:r}=t;n=r?[r,`serverVariableValues`,e]:[`serverVariableValues`,e]}else n=[`serverVariableValues`,t];return e.getIn(n)||(0,Q.OrderedMap)()})),S4=c4(((e,t)=>{var n,r;if(typeof t!=`string`){let{server:i,namespace:a}=t;r=i,n=a?e.getIn([a,`serverVariableValues`,r]):e.getIn([`serverVariableValues`,r])}else r=t,n=e.getIn([`serverVariableValues`,r]);n||=(0,Q.OrderedMap)();let i=r;return n.map(((e,t)=>{i=i.replace(RegExp(`{${(0,SK.default)(t)}}`,`g`),e)})),i})),C4=function(e){return(...t)=>n=>{let r=n.getSystem().specSelectors.specJson(),i=[...t][1]||[];return!r.getIn([`paths`,...i,`requestBody`,`required`])||e(...t)}}(((e,t)=>((e,t)=>(t||=[],!!e.getIn([`requestData`,...t,`bodyValue`])))(e,t))),w4=(e,{oas3RequiredRequestBodyContentType:t,oas3RequestContentType:n,oas3RequestBodyValue:r})=>{let i=[];if(!Q.Map.isMap(r))return i;let a=[];return Object.keys(t.requestContentType).forEach((e=>{e===n&&t.requestContentType[e].forEach((e=>{a.indexOf(e)<0&&a.push(e)}))})),a.forEach((e=>{r.getIn([e,`value`])||i.push(e)})),i},T4=(0,zn.default)([`get`,`put`,`post`,`delete`,`options`,`head`,`patch`,`trace`]),E4={[L2]:(e,{payload:{selectedServerUrl:t,namespace:n}})=>{let r=n?[n,`selectedServer`]:[`selectedServer`];return e.setIn(r,t)},[R2]:(e,{payload:{value:t,pathMethod:n}})=>{let[r,i]=n;if(!Q.Map.isMap(t))return e.setIn([`requestData`,r,i,`bodyValue`],t);let a=e.getIn([`requestData`,r,i,`bodyValue`])||(0,Q.Map)();Q.Map.isMap(a)||(a=(0,Q.Map)());let o=a,[...s]=t.keys();
279return s.forEach((e=>{let n=t.getIn([e]);o.has(e)&&Q.Map.isMap(n)||(o=o.setIn([e,`value`],n))})),e.setIn([`requestData`,r,i,`bodyValue`],o)},[z2]:(e,{payload:{value:t,pathMethod:n}})=>{let[r,i]=n;return e.setIn([`requestData`,r,i,`retainBodyValue`],t)},[B2]:(e,{payload:{value:t,pathMethod:n,name:r}})=>{let[i,a]=n;return e.setIn([`requestData`,i,a,`bodyInclusion`,r],t)},[V2]:(e,{payload:{name:t,pathMethod:n,contextType:r,contextName:i}})=>{let[a,o]=n;return e.setIn([`examples`,a,o,r,i,`activeExample`],t)},[H2]:(e,{payload:{value:t,pathMethod:n}})=>{let[r,i]=n;return e.setIn([`requestData`,r,i,`requestContentType`],t)},[U2]:(e,{payload:{value:t,path:n,method:r}})=>e.setIn([`requestData`,n,r,`responseContentType`],t),[W2]:(e,{payload:{value:t,path:n,method:r,code:i}})=>e.setIn([`requestData`,n,r,`responseCodeContentType`,i],t),[G2]:(e,{payload:{server:t,namespace:n,key:r,val:i}})=>{let a=n?[n,`serverVariableValues`,t,r]:[`serverVariableValues`,t,r];return e.setIn(a,i)},[K2]:(e,{payload:{path:t,method:n,validationErrors:r}})=>{let i=[];if(i.push(`Required field is not provided`),r.missingBodyValue)return e.setIn([`requestData`,t,n,`errors`],(0,Q.fromJS)(i));if(r.missingRequiredKeys&&r.missingRequiredKeys.length>0){let{missingRequiredKeys:a}=r;return e.updateIn([`requestData`,t,n,`bodyValue`],(0,Q.fromJS)({}),(e=>a.reduce(((e,t)=>e.setIn([t,`errors`],(0,Q.fromJS)(i))),e)))}return console.warn(`unexpected result: SET_REQUEST_BODY_VALIDATE_ERROR`),e},[q2]:(e,{payload:{path:t,method:n}})=>{let r=e.getIn([`requestData`,t,n,`bodyValue`]);if(!Q.Map.isMap(r))return e.setIn([`requestData`,t,n,`errors`],(0,Q.fromJS)([]));let[...i]=r.keys();return i?e.updateIn([`requestData`,t,n,`bodyValue`],(0,Q.fromJS)({}),(e=>i.reduce(((e,t)=>e.setIn([t,`errors`],(0,Q.fromJS)([]))),e))):e},[J2]:(e,{payload:{pathMethod:t}})=>{let[n,r]=t,i=e.getIn([`requestData`,n,r,`bodyValue`]);return i?Q.Map.isMap(i)?e.setIn([`requestData`,n,r,`bodyValue`],(0,Q.Map)()):e.setIn([`requestData`,n,r,`bodyValue`],``):e}};function D4({getSystem:e}){let t=(e=>(t,n=null)=>{let{getConfigs:r,fn:i}=e(),{fileUploadMediaTypes:a}=r();if(typeof n==`string`&&a.some((e=>n.startsWith(e))))return!0;let o=Q.Map.isMap(t);if(!o&&!(0,Rn.default)(t))return!1;let s=o?t.get(`format`):t.format;return i.hasSchemaType(t,`string`)&&[`binary`,`byte`].includes(s)})(e);return{components:k2,wrapComponents:I2,statePlugins:{spec:{wrapSelectors:WK,selectors:KK},auth:{wrapSelectors:GK},oas3:{actions:{...qK},reducers:E4,selectors:{...JK}}},fn:{isFileUploadIntended:t,isFileUploadIntendedOAS30:t}}}var O4=({specSelectors:e,getComponent:t})=>{let n=e.selectWebhooksOperations();if(!n)return null;let r=Object.keys(n),i=t(`OperationContainer`,!0);return r.length===0?null:B.createElement(`div`,{className:`webhooks`},B.createElement(`h2`,null,`Webhooks`),r.map((e=>B.createElement(`div`,{key:`${e}-webhook`},n[e].map((t=>B.createElement(i,{key:`${e}-${t.method}-webhook`,op:t.operation,tag:`webhooks`,method:t.method,path:e,specPath:(0,Q.List)(t.specPath),allowTryItOut:!1})))))))},k4=({getComponent:e,specSelectors:t})=>{let n=t.selectLicenseNameField(),r=t.selectLicenseUrl(),i=e(`Link`);return B.createElement(`div`,{className:`info__license`},r?B.createElement(`div`,{className:`info__license__url`},B.createElement(i,{target:`_blank`,href:kX(r)},n)):B.createElement(`span`,null,n))},A4=({getComponent:e,specSelectors:t})=>{let n=t.selectContactNameField(),r=t.selectContactUrl(),i=t.selectContactEmailField(),a=e(`Link`);return B.createElement(`div`,{className:`info__contact`},r&&B.createElement(`div`,null,B.createElement(a,{href:kX(r),target:`_blank`},n,` - Website`)),i&&B.createElement(a,{href:kX(`mailto:${i}`)},r?`Send email to ${n}`:`Contact ${n}`))},j4=({getComponent:e,specSelectors:t})=>{let n=t.version(),r=t.url(),i=t.basePath(),a=t.host(),o=t.selectInfoSummaryField(),s=t.selectInfoDescriptionField(),c=t.selectInfoTitleField(),l=t.selectInfoTermsOfServiceUrl(),u=t.selectExternalDocsUrl(),d=t.selectExternalDocsDescriptionField(),f=t.contact(),p=t.license(),m=e(`Markdown`,!0),h=e(`Link`),g=e(`VersionStamp`),_=e(`OpenAPIVersion`),v=e(`InfoUrl`),y=e(`InfoBasePath`),b=e(`License`,!0),x=e(`Contact`,!0),S=e(`JsonSchemaDialect`,!0);return B.createElement(`div`,{className:`info`},B.createElement(`hgroup`,{className:`main`},B.createElement(`h1`,{className:`title`},c,B.createElement(`span`,null,n&&B.createElement(g,{version:n}),B.createElement(_,{oasVersion:`3.1`}))),(a||i)&&B.createElement(y,{host:a,basePath:i}),r&&B.createElement(v,{getComponent:e,url:r})),o&&B.createElement(`p`,{className:`info__summary`},o),B.createElement(`div`,{className:`info__description description`},B.createElement(m,{source:s})),l&&B.createElement(`div`,{className:`info__tos`},B.createElement(h,{target:`_blank`,href:kX(l)},`Terms of service`)),f.size>0&&B.createElement(x,null),p.size>0&&B.createElement(b,null),u&&B.createElement(h,{className:`info__extdocs`,target:`_blank`,href:kX(u)},d||u),B.createElement(S,null))},M4=({getComponent:e,specSelectors:t})=>{let n=t.selectJsonSchemaDialectField(),r=t.selectJsonSchemaDialectDefault(),i=e(`Link`);return B.createElement(B.Fragment,null,n&&n===r&&B.createElement(`p`,{className:`info__jsonschemadialect`},`JSON Schema dialect:`,` `,B.createElement(i,{target:`_blank`,href:kX(n)},n)),n&&n!==r&&B.createElement(`div`,{className:`error-wrapper`},B.createElement(`div`,{className:`no-margin`},B.createElement(`div`,{className:`errors`},B.createElement(`div`,{className:`errors-wrapper`},B.createElement(`h4`,{className:`center`},`Warning`),B.createElement(`p`,{className:`message`},B.createElement(`strong`,null,`OpenAPI.jsonSchemaDialect`),` field contains a value different from the default value of`,` `,B.
vendor: 1,575 bytes, line 279
279createElement(i,{target:`_blank`,href:r},r),`. Values different from the default one are currently not supported. Please either omit the field or provide it with the default value.`))))))},N4=({bypass:e,isSwagger2:t,isOAS3:n,isOAS31:r,alsoShow:i,children:a})=>e?B.createElement(`div`,null,a):t&&(n||r)?B.createElement(`div`,{className:`version-pragma`},i,B.createElement(`div`,{className:`version-pragma__message version-pragma__message--ambiguous`},B.createElement(`div`,null,B.createElement(`h3`,null,`Unable to render this definition`),B.createElement(`p`,null,B.createElement(`code`,null,`swagger`),` and `,B.createElement(`code`,null,`openapi`),` fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.`),B.createElement(`p`,null,`Supported version fields are `,B.createElement(`code`,null,`swagger: "2.0"`),`,`,` `,B.createElement(`code`,null,`openapi: 3.0.x`),`, or `,B.createElement(`code`,null,`openapi: 3.1.x`),` (for example, `,B.createElement(`code`,null,`openapi: 3.1.0`),`).`)))):t||n||r?B.createElement(`div`,null,a):B.createElement(`div`,{className:`version-pragma`},i,B.createElement(`div`,{className:`version-pragma__message version-pragma__message--missing`},B.createElement(`div`,null,B.createElement(`h3`,null,`Unable to render this definition`),B.createElement(`p`,null,`The provided definition does not specify a valid version field.`),B.createElement(`p`,null,`Please indicate a valid Swagger or OpenAPI version field. Supported version fields are `,B.createElement(`code`,null,`swagger: "2.0"`),`,`,` `,B.
279createElement(`code`,null,`openapi: 3.0.x`),`, or `,B.createElement(`code`,null,`openapi: 3.1.x`),` (for example, `,B.createElement(`code`,null,`openapi: 3.1.0`),`).`)))),P4=e=>typeof e==`string`&&e.includes(`#/components/schemas/`)?(e=>{let t=e.replace(/~1/g,`/`).replace(/~0/g,`~`);try{return decodeURIComponent(t)}catch{return t}})(e.replace(/^.*#\/components\/schemas\//,``)):null,F4=(0,B.forwardRef)((({schema:e,getComponent:t,onToggle:n=()=>{},specPath:r},i)=>{let a=t(`JSONSchema202012`),o=P4(e.get(`$$ref`)),s=(0,B.useCallback)(((e,t)=>{n(o,t)}),[o,n]);return B.createElement(a,{name:o,schema:e.toJS(),ref:i,onExpand:s,identifier:r.toJS().join(`_`)})})),I4=[`components`,`schemas`],L4=B.memo((({schemaName:e,schema:t,name:n,specSelectors:r,specActions:i,layoutActions:a,getComponent:o})=>{let s=o(`JSONSchema202012`),c=(0,B.useCallback)(((t,n)=>{let o=[...I4,e];n?(r.specResolvedSubtree(o)??i.requestResolvedSubtree(o),a.show(o,!0)):a.show(o,!1)}),[e,r,i,a]),l=(0,B.useCallback)((t=>{t!==null&&a.readyToScroll([...I4,e],t)}),[e,a]);return s?B.createElement(s,{ref:l,schema:t,name:n,onExpand:c}):null}));L4.displayName=`SchemaItem`;var R4=L4,z4=[`components`,`schemas`],B4=({specActions:e,specSelectors:t,layoutSelectors:n,layoutActions:r,getComponent:i,getConfigs:a,fn:o})=>{let s=t.selectSchemas(),{docExpansion:c,defaultModelsExpandDepth:l}=a(),u=l>0&&c!==`none`,d=n.isShown(z4,u),f=i(`Collapse`),p=i(`ArrowUpIcon`),m=i(`ArrowDownIcon`),{getTitle:h}=o.jsonSchema202012.useFn(),g=(0,B.useMemo)((()=>Object.entries(s)),[s]),_=(0,B.useRef)(null),v=(0,B.useRef)([]),y=cm({count:g.length,getScrollElement:()=>_.current,estimateSize:()=>48,overscan:5,getItemKey:e=>`models-section-${g[e][0]}`,initialMeasurementsCache:v.current,onChange:e=>{v.current=e.takeSnapshot()}}),b=g.length>=100;(0,B.useEffect)((()=>{let r=g.some((([e])=>n.isShown([...z4,e],!1))),i=d&&(l>1||r),a=t.specResolvedSubtree(z4)!=null;i&&!a&&e.requestResolvedSubtree(z4)}),[d,l]);let x=(0,B.useCallback)((()=>{r.show(z4,!d)}),[d]),S=(0,B.useCallback)((e=>{e!==null&&r.readyToScroll(z4,e)}),[]);return!g.length||l<0?null:B.createElement(`section`,{className:(0,pp.default)(`models`,{"is-open":d,"models--virtualized":b}),ref:S},B.createElement(`h4`,null,B.createElement(`button`,{"aria-expanded":d,className:`models-control`,onClick:x},B.createElement(`span`,null,`Schemas`),d?B.createElement(p,null):B.createElement(m,null))),B.createElement(f,{isOpened:d},b?B.createElement(`div`,{ref:_,className:`models-scroll`},B.createElement(`div`,{style:{paddingTop:y.getVirtualItems()[0]?.start??0,paddingBottom:y.getTotalSize()-(y.getVirtualItems().at(-1)?.end??0)}},y.getVirtualItems().map((n=>{let[a,o]=g[n.index],s=h(o,{lookup:`basic`})||a;return B.createElement(`div`,{key:n.key,"data-index":n.index,ref:y.measureElement,className:`models-virtual-item`},B.createElement(R4,{schemaName:a,schema:o,name:s,specSelectors:t,specActions:e,layoutActions:r,getComponent:i}))})))):g.map((([n,a])=>{let o=h(a,{lookup:`basic`})||n;return B.createElement(R4,{key:n,schemaName:n,schema:a,name:o,specSelectors:t,specActions:e,layoutActions:r,getComponent:i})}))))},V4=({schema:e,getComponent:t,name:n,authSelectors:r})=>{let i=t(`JumpToPath`,!0),a=r.selectAuthPath(n);return B.createElement(`div`,null,B.createElement(`h4`,null,n,` (mutualTLS) `,B.createElement(i,{path:a})),B.createElement(`p`,null,`Mutual TLS is required by this API/Operation. Certificates are managed via your Operating System and/or your browser.`),B.createElement(`p`,null,e.get(`description`)))},H4=class extends B.Component{constructor(e,t){super(e,t),this.state={}}onAuthChange=e=>{let{name:t}=e;this.setState({[t]:e})};submitAuth=e=>{e.preventDefault();let{authActions:t}=this.props;t.authorizeWithPersistOption(this.state)};logoutClick=e=>{e.preventDefault();let{authActions:t,definitions:n}=this.props,r=n.keySeq().toArray();this.setState(r.reduce(((e,t)=>(e[t]=``,e)),{})),t.logoutWithPersistOption(r)};close=e=>{e.preventDefault();let{authActions:t}=this.props;t.showDefinitions(!1)};render(){let{definitions:e,getComponent:t,authSelectors:n,errSelectors:r}=this.props,i=t(`AuthItem`),a=t(`oauth2`,!0),o=t(`Button`),s=n.authorized(),c=e.f
279ilter(((e,t)=>!!s.get(t))),l=e.filter((e=>e.get(`type`)!==`oauth2`&&e.get(`type`)!==`mutualTLS`)),u=e.filter((e=>e.get(`type`)===`oauth2`)),d=e.filter((e=>e.get(`type`)===`mutualTLS`));return B.createElement(`div`,{className:`auth-container`},l.size>0&&B.createElement(`form`,{onSubmit:this.submitAuth},l.map(((e,a)=>B.createElement(i,{key:a,schema:e,name:a,getComponent:t,onAuthChange:this.onAuthChange,authorized:s,errSelectors:r,authSelectors:n}))).valueSeq().toArray(),B.createElement(`div`,{className:`auth-btn-wrapper`},l.size===c.size?B.createElement(o,{className:`btn modal-btn auth`,onClick:this.logoutClick,"aria-label":`Remove authorization`},`Logout`):B.createElement(o,{type:`submit`,className:`btn modal-btn auth authorize`,"aria-label":`Apply credentials`},`Authorize`),B.createElement(o,{className:`btn modal-btn auth btn-done`,onClick:this.close},`Close`))),u.size>0?B.createElement(`div`,null,B.createElement(`div`,{className:`scope-def`},B.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.`),B.createElement(`p`,null,`API requires the following scopes. Select which ones you want to grant to Swagger UI.`)),e.filter((e=>e.get(`type`)===`oauth2`)).map(((e,t)=>B.createElement(`div`,{key:t},B.createElement(a,{authorized:s,schema:e,name:t})))).valueSeq().toArray()):null,d.size>0&&B.createElement(`div`,null,d.map(((e,a)=>B.createElement(i,{key:a,schema:e,name:a,getComponent:t,onAuthChange:this.onAuthChange,authorized:s,errSelectors:r,authSelectors:n}))).valueSeq().toArray()))}},U4=e=>{let t=e.get(`openapi`);return typeof t==`string`&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)},W4=e=>(t,...n)=>r=>{if(r.getSystem().specSelectors.isOAS31()){let i=e(t,...n);return typeof i==`function`?i(r):i}return null},G4=e=>(t,n)=>(r,...i)=>{if(n.getSystem().specSelectors.isOAS31()){let a=e(r,...i);return typeof a==`function`?a(t,n):a}return t(...i)},K4=e=>(t,...n)=>r=>{let i=e(t,r,...n);return typeof i==`function`?i(r):i},q4=e=>(t,n)=>r=>n.specSelectors.isOAS31()?B.createElement(e,sp({},r,{originalComponent:t,getSystem:n.getSystem})):B.createElement(t,r),J4=(e,t)=>{let{fn:n,specSelectors:r}=t;return Object.fromEntries(Object.entries(e).map((([e,t])=>{let i=n[e];return[e,(...e)=>r.isOAS31()?t(...e):typeof i==`function`?i(...e):void 0]})))},Y4=q4((({getSystem:e})=>{let t=e().getComponent(`OAS31License`,!0);return B.createElement(t,null)})),X4=q4((({getSystem:e})=>{let t=e().getComponent(`OAS31Contact`,!0);return B.createElement(t,null)})),Z4=q4((({getSystem:e})=>{let t=e().getComponent(`OAS31Info`,!0);return B.createElement(t,null)})),Q4=(e,{includeReadOnly:t,includeWriteOnly:n})=>{if(!e?.properties)return{};let r=Object.entries(e.properties).filter((([,e])=>(!0!==e?.readOnly||t)&&(!0!==e?.writeOnly||n)));return Object.fromEntries(r)},$4=e=>{if(typeof e!=`function`)return null;let t=e();return()=>[...t,`discriminator`,`xml`,`externalDocs`,`example`,`$$ref`]},e3=q4((({getSystem:e,...t})=>{let{getComponent:n,fn:r,getConfigs:i}=e(),a=i(),o=window?.location?.pathname??`/`;if(e3.ModelWithJSONSchemaContext&&e3.pathname===o)return B.createElement(e3.ModelWithJSONSchemaContext,t);let s=n(`OAS31Model`);return e3.ModelWithJSONSchemaContext=n(`withJSONSchema202012SystemContext`)(s,{config:{default$schema:`https://spec.openapis.org/oas/3.1/dialect/base`,defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:$4(r.jsonSchema202012.getSchemaKeywords)}}),e3.pathname=o,B.createElement(e3.ModelWithJSONSchemaContext,t)}));e3.ModelWithJSONSchemaContext=null,e3.pathname=null;var t3=e3,n3=q4((({getSystem:e})=>{let{getComponent:t,fn:n,getConfigs:r}=e(),i=r(),a=window?.location?.pathname??`/`;if(n3.ModelsWithJSONSchemaContext&&n3.pathname===a)return B.createElement(n3.ModelsWithJSONSchemaContext,null);let o=t(`OAS31Models`,!0);return n3.ModelsWithJSONSchemaContext=t(`withJSONSchema202012SystemContext`)(o,{config:{default$schema:`https://spec.openapis.org/oas/3.1/dialect/base`,defaultExpandedLevels:i.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:n.jsonSchema202012.getProperties,isExpandable:n.jsonSchema202012.isExpandable,getSchemaKeywords:$4(n.jsonSchema202012.getSchemaKeywords)}}),n3.pathname=a,B.createElement(n3.ModelsWithJSONSchemaContext,null)}));n3.ModelsWithJSONSchemaContext=null,n3.pathname=null;var r3=n3,i3=(e,t)=>e=>{let n=t.specSelectors.isOAS31(),r=t.getComponent(`OAS31VersionPragmaFilter`);return B.createElement(r,sp({isOAS31:n},e))},a3=q4((({originalComponent:e,...t})=>{let{getComponent:n,schema:r,name:i}=t,a=n(`MutualTLSAuth`,!0);return r.get(`type`)===`mutualTLS`?B.createElement(a,{schema:r,name:i}):B.createElement(e,t)})),o3=q4((({getSystem:e,...t})=>{let n=e().getComponent(`OAS31Auths`,!0);return B.createElement(n,t)})),s3=(0,Q.Map)(),c3=ru(((e,t)=>t.specSelectors.specJson()),U4),l3=()=>e=>{let t=e.specSelectors.specJson().get(`webhooks`);return Q.Map.isMap(t)?t:s3},u3=ru([(e,t)=>t.specSelectors.webhooks(),(e,t)=>t.specSelectors.validOperationMethods(),(e,t)=>t.specSelectors.specResolvedSubtree([`webhooks`])],((e,t)=>e.reduce(((e,n,r)=>{if(!Q.Map.isMap(n))return e;let i=n.entrySeq().filter((([e])=>t.includes(e))).map((([e,t])=>({operation:(0,Q.Map)({operation:t}),method:e,path:r,specPath:[`webhooks`,r,e]})));return e.concat(i)}),(0,Q.List)()).groupBy((e=>e.path)).map((e=>e.toArray())).toObject())),d3=()=>e=>{let t=e.specSelectors.info().get(`license`);return Q.Map.isMap(t)?t:s3},f3=()=>e=>e.specSelectors.license().get(`name`,`License`),p3=()=>e=>e.specSelectors.license().get(`url`),m3=ru([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,n)=>{if(n)return OX(n,e,{selectedServer:t})})),h3=()=>e=>e.specSelectors.license().get(`identifier`),g3=()=>e=>{let t=e.specSelectors.info().get(`contact`);return Q.Map.isMap(t)?t:s3},_3=()=>e=>e.specSelectors.contact().get(`name`,`the developer`),v3=()=>e=>e.specSelectors.contact().get(`email`),y3=()=>e=>e.specSelectors.contact().get(`url`),b3=ru([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,n)=>{if(n)return OX(n,e,{selectedServer:t})})),x3=()=>e=>e.specSelectors.info().get(`title`),S3=()=>e=>e.specSelectors.info().get(`summary`),C3=()=>e=>e.specSelectors.info().get(`description`),w3=()=>e=>e.specSelectors.info().get(`termsOfService`),T3=ru([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectInfoTermsOfServiceField()],((e,t,n)=>{if(n)return OX(n,e,{selectedServer:t})})),E3=()=>e=>e.specSelectors.externalDocs().get(`description`),D3=()=>e=>e.specSelectors.externalDocs().get(`url`),O3=ru([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectExternalDocsUrlField()],((e,t,n)=>{if(n)return OX(n,e,{selectedServer:t})})),k3=()=>e=>e.specSelectors.specJson().get(`jsonSchemaDialect`),A3=()=>`https://spec.openapis.org/oas/3.1/dialect/base`,j3=ru(((e,t)=>t.specSelectors.definitions()),((e,t)=>t.specSelectors.specResolvedSubtree([`components`,`schemas`])),((e,t)=>Q.Map.isMap(e)?Q.Map.isMap(t)?Object.entries(e.toJS()).reduce(((e,[n,r])=>(e[n]=t.get(n)?.toJS()||r,e)),{}):e.toJS():{})),M3=(e,t)=>(n,...r)=>t.specSelectors.isOAS31()||e(...r),N3=G4((()=>(e,t)=>t.oas31Selectors.selectLicenseUrl())),P3=G4((()=>(e,t)=>{let n=t.specSelectors.securityDefinitions(),r=e();
vendor: 7,304 bytes, line 279
279return n&&n.entrySeq().forEach((([e,t])=>{t?.get(`type`)===`mutualTLS`&&(r=r.push(new Q.Map({[e]:t})))})),r})),F3=ru([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField(),(e,t)=>t.specSelectors.selectLicenseIdentifierField()],((e,t,n,r)=>n?OX(n,e,{selectedServer:t}):r?`https://spdx.org/licenses/${r}.html`:void 0)),I3=({schema:e,getSystem:t})=>{let{fn:n,getComponent:r}=t(),{hasKeyword:i}=n.jsonSchema202012.useFn(),a=r(`JSONSchema202012JSONViewer`);return i(e,`example`)?B.createElement(a,{name:`Example`,value:e.example,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--example`}):null},L3=({schema:e,getSystem:t})=>{let n=e?.xml||{},{fn:r,getComponent:i,getConfigs:a}=t(),{showExtensions:o}=a(),{useComponent:s,useIsExpanded:c,usePath:l,useLevel:u}=r.jsonSchema202012,{path:d}=l(`xml`),{isExpanded:f,setExpanded:p,setCollapsed:m}=c(`xml`),[h,g]=u(),_=o?Vq(n):[],v=!!(n.name||n.namespace||n.prefix||_.length>0),y=s(`Accordion`),b=s(`ExpandDeepButton`),x=i(`OpenAPI31Extensions`),S=i(`JSONSchema202012PathContext`)(),C=i(`JSONSchema202012LevelContext`)(),w=(0,B.useCallback)((()=>{f?m():p()}),[f,p,m]),T=(0,B.useCallback)(((e,t)=>{t?p({deep:!0}):m({deep:!0})}),[p,m]);return Object.keys(n).length===0?null:B.createElement(S.Provider,{value:d},B.createElement(C.Provider,{value:g},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--xml`,"data-json-schema-level":h},v?B.createElement(B.Fragment,null,B.createElement(y,{expanded:f,onChange:w},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`XML`)),B.createElement(b,{expanded:f,onClick:T})):B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`XML`),!0===n.attribute&&B.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},`attribute`),!0===n.wrapped&&B.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},`wrapped`),B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!f})},f&&B.createElement(B.Fragment,null,n.name&&B.createElement(`li`,{className:`json-schema-2020-12-property`},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`name`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},n.name))),n.namespace&&B.createElement(`li`,{className:`json-schema-2020-12-property`},B.createElement(`div`,{className:`json-schema-2020-12-keyword`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`namespace`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},n.namespace))),n.prefix&&B.createElement(`li`,{className:`json-schema-2020-12-property`},B.createElement(`div`,{className:`json-schema-2020-12-keyword`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`prefix`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},n.prefix)))),_.length>0&&B.createElement(x,{openAPISpecObj:n,openAPIExtensions:_,getSystem:t})))))},R3=({discriminator:e})=>{let t=e?.mapping||{};return Object.keys(t).length===0?null:Object.entries(t).map((([e,t])=>B.createElement(`div`,{key:`${e}-${t}`,className:`json-schema-2020-12-keyword`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},e),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},t))))},z3=({schema:e,getSystem:t})=>{let n=e?.discriminator||{},{fn:r,getComponent:i,getConfigs:a}=t(),{showExtensions:o}=a(),{useComponent:s,useIsExpanded:c,usePath:l,useLevel:u}=r.jsonSchema202012,d=`discriminator`,{path:f}=l(d),{isExpanded:p,setExpanded:m,setCollapsed:h}=c(d),[g,_]=u(),v=o?Vq(n):[],y=!!(n.mapping||v.length>0),b=s(`Accordion`),x=s(`ExpandDeepButton`),S=i(`OpenAPI31Extensions`),C=i(`JSONSchema202012PathContext`)(),w=i(`JSONSchema202012LevelContext`)(),T=(0,B.useCallback)((()=>{p?h():m()}),[p,m,h]),E=(0,B.useCallback)(((e,t)=>{t?m({deep:!0}):h({deep:!0})}),[m,h]);return Object.keys(n).length===0?null:B.createElement(C.Provider,{value:f},B.createElement(w.Provider,{value:_},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--discriminator`,"data-json-schema-level":g},y?B.createElement(B.Fragment,null,B.createElement(b,{expanded:p,onChange:T},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`Discriminator`)),B.createElement(x,{expanded:p,onClick:E})):B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`Discriminator`),n.propertyName&&B.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},n.propertyName),B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!p})},p&&B.createElement(`li`,{className:`json-schema-2020-12-property`},B.createElement(R3,{discriminator:n})),v.length>0&&B.createElement(S,{openAPISpecObj:n,openAPIExtensions:v,getSystem:t})))))},B3=({openAPISpecObj:e,getSystem:t,openAPIExtensions:n})=>{let{fn:r}=t(),{useComponent:i}=r.jsonSchema202012,a=i(`JSONViewer`);return n.map((t=>B.createElement(a,{key:t,name:t,value:e[t],className:`json-schema-2020-12-json-viewer-extension-keyword`})))},V3=({schema:e,getSystem:t})=>{let n=e?.externalDocs||{},{fn:r,getComponent:i,getConfigs:a}=t(),{showExtensions:o}=a(),{useComponent:s,useIsExpanded:c,usePath:l,useLevel:u}=r.jsonSchema202012,d=`externalDocs`,{path:f}=l(d),{isExpanded:p,setExpanded:m,setCollapsed:h}=c(d),[g,_]=u(),v=o?Vq(n):[],y=!!(n.description||n.url||v.length>0),b=s(`Accordion`),x=s(`ExpandDeepButton`),S=i(`JSONSchema202012KeywordDescription`),C=i(`Link`),w=i(`OpenAPI31Extensions`),T=i(`JSONSchema202012PathContext`)(),E=i(`JSONSchema202012LevelContext`)(),D=(0,B.useCallback)((()=>{p?h():m()}),[p,m,h]),O=(0,B.useCallback)(((e,t)=>{t?m({deep:!0}):h({deep:!0})}),[m,h]);return Object.keys(n).length===0?null:B.createElement(T.Provider,{value:f},B.createElement(E.Provider,{value:_},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--externalDocs`,"data-json-schema-level":g},y?B.createElement(B.Fragment,null,B.createElement(b,{expanded:p,onChange:D},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`}
279,`External documentation`)),B.createElement(x,{expanded:p,onClick:O})):B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`External documentation`),B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!p})},p&&B.createElement(B.Fragment,null,n.description&&B.createElement(`li`,{className:`json-schema-2020-12-property`},B.createElement(S,{schema:n,getSystem:t})),n.url&&B.createElement(`li`,{className:`json-schema-2020-12-property`},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`url`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},B.createElement(C,{target:`_blank`,href:kX(n.url)},n.url))))),v.length>0&&B.createElement(w,{openAPISpecObj:n,openAPIExtensions:v,getSystem:t})))))},H3=q4(({schema:e,getSystem:t})=>{if(!e?.description)return null;let{getComponent:n}=t(),r=n(`Markdown`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--description`},B.createElement(`div`,{className:`json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary`},B.createElement(r,{source:e.description})))}),U3=q4((({schema:e,getSystem:t,originalComponent:n})=>{let{getComponent:r}=t(),i=r(`JSONSchema202012KeywordDiscriminator`),a=r(`JSONSchema202012KeywordXml`),o=r(`JSONSchema202012KeywordExample`),s=r(`JSONSchema202012KeywordExternalDocs`);return B.createElement(B.Fragment,null,B.createElement(n,{schema:e}),B.createElement(i,{schema:e,getSystem:t}),B.createElement(a,{schema:e,getSystem:t}),B.createElement(s,{schema:e,getSystem:t}),B.createElement(o,{schema:e,getSystem:t}))})),W3=q4(({schema:e,getSystem:t})=>{let{fn:n,getComponent:r}=t(),{useComponent:i,usePath:a}=n.jsonSchema202012,{getDependentRequired:o,getProperties:s}=n.jsonSchema202012.useFn(),c=n.jsonSchema202012.useConfig(),l=Array.isArray(e?.required)?e.required:[],{path:u}=a(`properties`),d=i(`JSONSchema`),f=r(`JSONSchema202012PathContext`)(),p=s(e,c);return Object.keys(p).length===0?null:B.createElement(f.Provider,{value:u},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--properties`},B.createElement(`ul`,null,Object.entries(p).map((([t,n])=>{let r=l.includes(t),i=o(t,e);return B.createElement(`li`,{key:t,className:(0,pp.default)(`json-schema-2020-12-property`,{"json-schema-2020-12-property--required":r})},B.createElement(d,{name:t,schema:n,dependentRequired:i}))})))))}),G3=function({fn:e,getSystem:t}
279){if(e.jsonSchema202012){let n=((e,t)=>{let{fn:n}=t();if(typeof e!=`function`)return null;let{hasKeyword:r}=n.jsonSchema202012;return t=>e(t)||r(t,`example`)||t?.xml||t?.discriminator||t?.externalDocs})(e.jsonSchema202012.isExpandable,t);Object.assign(this.fn.jsonSchema202012,{isExpandable:n,getProperties:Q4})}if(typeof e.sampleFromSchema==`function`&&e.jsonSchema202012){let n=J4({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:t=>e.jsonSchema202012.getType(bq(t)),getSchemaObjectType:t=>e.jsonSchema202012.foldType(bq(t)?.type)},t());Object.assign(this.fn,n)}let n=(e=>(t,n=null)=>{let{fn:r}=e();if(r.isFileUploadIntendedOAS30(t,n))return!0;let i=Q.Map.isMap(t);if(!i&&!(0,Rn.default)(t))return!1;let a=i?t.get(`contentMediaType`):t.contentMediaType,o=i?t.get(`contentEncoding`):t.contentEncoding;return typeof a==`string`&&a!==``||typeof o==`string`&&o!==``})(t),{isFileUploadIntended:r}=J4({isFileUploadIntended:n},t());if(this.fn.isFileUploadIntended=r,this.fn.isFileUploadIntendedOAS31=n,e.jsonSchema202012){let{hasSchemaType:n}=J4({hasSchemaType:e.jsonSchema202012.hasSchemaType},t());this.fn.hasSchemaType=n}},K3=({fn:e})=>{let t=e.createSystemSelector||K4,n=e.createOnlyOAS31Selector||W4;return{afterLoad:G3,fn:{isOAS31:U4,createSystemSelector:K4,createOnlyOAS31Selector:W4},components:{Webhooks:O4,JsonSchemaDialect:M4,MutualTLSAuth:V4,OAS31Info:j4,OAS31License:k4,OAS31Contact:A4,OAS31VersionPragmaFilter:N4,OAS31Model:F4,OAS31Models:B4,OAS31Auths:H4,JSONSchema202012KeywordExample:I3,JSONSchema202012KeywordXml:L3,JSONSchema202012KeywordDiscriminator:z3,JSONSchema202012KeywordExternalDocs:V3,OpenAPI31Extensions:B3},wrapComponents:{InfoContainer:Z4,License:Y4,Contact:X4,VersionPragmaFilter:i3,Model:t3,Models:r3,AuthItem:a3,auths:o3,JSONSchema202012KeywordDescription:H3,JSONSchema202012KeywordExamples:U3,JSONSchema202012KeywordProperties:W3},statePlugins:{auth:{wrapSelectors:{definitionsToAuthorize:P3}},spec:{selectors:{isOAS31:t(c3),license:d3,selectLicenseNameField:f3,selectLicenseUrlField:p3,selectLicenseIdentifierField:n(h3),selectLicenseUrl:t(m3),contact:g3,selectContactNameField:_3,selectContactEmailField:v3,selectContactUrlField:y3,selectContactUrl:t(b3),selectInfoTitleField:x3,selectInfoSummaryField:n(S3),selectInfoDescriptionField:C3,selectInfoTermsOfServiceField:w3,selectInfoTermsOfServiceUrl:t(T3),selectExternalDocsDescriptionField:E3,selectExternalDocsUrlField:D3,selectExternalDocsUrl:t(O3),webhooks:n(l3),selectWebhooksOperations:n(t(u3)),selectJsonSchemaDialectField:k3,selectJsonSchemaDialectDefault:A3,selectSchemas:t(j3)},wrapSelectors:{isOAS3:M3,selectLicenseUrl:N3}},oas31:{selectors:{selectLicenseUrl:n(t(F3))}}}}},q3=({bypass:e,isSwagger2:t,isOAS3:n,isOAS31:r,isOAS32:i,alsoShow:a,children:o})=>e?B.createElement(`div`,null,o):t&&(n||r||i)?B.createElement(`div`,{className:`version-pragma`},a,B.createElement(`div`,{className:`version-pragma__message version-pragma__message--ambiguous`},B.createElement(`div`,null,B.createElement(`h3`,null,`Unable to render this definition`),B.createElement(`p`,null,B.createElement(`code`,null,`swagger`),` and `,B.createElement(`code`,null,`openapi`),` fields cannot be present in the same Swagger or OpenAPI definition. Please remove one of the fields.`),B.createElement(`p`,null,`Supported version fields are `,B.createElement(`code`,null,`swagger: "2.0"`),` `,`and `,B.createElement(`code`,null,`openapi: 3.0.x`),`, `,B.createElement(`code`,null,`openapi: 3.1.x`),`, or`,` `,B.createElement(`code`,null,`openapi: 3.2.x`),` (for example,`,` `,B.
279createElement(`code`,null,`openapi: 3.2.0`),`).`)))):t||n||r||i?B.createElement(`div`,null,o):B.createElement(`div`,{className:`version-pragma`},a,B.createElement(`div`,{className:`version-pragma__message version-pragma__message--missing`},B.createElement(`div`,null,B.createElement(`h3`,null,`Unable to render this definition`),B.createElement(`p`,null,`The provided definition does not specify a valid version field.`),B.createElement(`p`,null,`Please indicate a valid Swagger or OpenAPI version field. Supported version fields are `,B.createElement(`code`,null,`swagger: "2.0"`),` `,`and `,B.createElement(`code`,null,`openapi: 3.0.x`),`, `,B.createElement(`code`,null,`openapi: 3.1.x`),`, or`,` `,B.createElement(`code`,null,`openapi: 3.2.x`),` (for example,`,` `,B.createElement(`code`,null,`openapi: 3.2.0`),`).`)))),J3=e=>{let t=e.get(`openapi`);return typeof t==`string`&&/^3\.2\.(?:[1-9]\d*|0)$/.test(t)},Y3=e=>(t,...n)=>r=>{if(r.getSystem().specSelectors.isOAS32()){let i=e(t,...n);return typeof i==`function`?i(r):i}return null},X3=e=>(t,...n)=>r=>{let i=e(t,r,...n);return typeof i==`function`?i(r):i},Z3=e=>(t,n)=>r=>n.specSelectors.isOAS32()?B.createElement(e,sp({},r,{originalComponent:t,getSystem:n.getSystem})):B.createElement(t,r),Q3=(e,t)=>{let{fn:n,specSelectors:r}=t;return Object.fromEntries(Object.entries(e).map((([e,t])=>{let i=n[e];return[e,(...e)=>r.isOAS32()?t(...e):typeof i==`function`?i(...e):void 0]})))},$3=Z3((e=>{let{getSystem:t}=e,n=t().getComponent(`OAS31Contact`,!0);return B.createElement(n,e)})),e6=Z3((({getSystem:e})=>{let t=e().getComponent(`OAS31Info`,!0);return B.createElement(t,null)})),t6=Z3((e=>{let{getSystem:t}=e,n=t().getComponent(`OAS31License`,!0);return B.createElement(n,e)})),n6=e=>{if(typeof e!=`function`)return null;let t=e();return()=>[...t,`discriminator`,`xml`,`externalDocs`,`example`,`$$ref`]},r6=Z3((({getSystem:e,...t})=>{let{getComponent:n,fn:r,getConfigs:i}=e(),a=i(),o=window?.location?.pathname??`/`;if(r6.ModelWithJSONSchemaContext&&r6.pathname===o)return B.createElement(r6.ModelWithJSONSchemaContext,t);let s=n(`OAS31Model`);return r6.ModelWithJSONSchemaContext=n(`withJSONSchema202012SystemContext`)(s,{config:{default$schema:`https://spec.openapis.org/oas/3.2/schema/2025-09-17`,defaultExpandedLevels:a.defaultModelExpandDepth,includeReadOnly:t.includeReadOnly,includeWriteOnly:t.includeWriteOnly},fn:{getProperties:r.jsonSchema202012.getProperties,isExpandable:r.jsonSchema202012.isExpandable,getSchemaKeywords:n6(r.jsonSchema202012.getSchemaKeywords)}}),r6.pathname=o,B.createElement(r6.ModelWithJSONSchemaContext,t)}));r6.ModelWithJSONSchemaContext=null,r6.pathname=null;var i6=r6,a6=Z3((({getSystem:e})=>{let{getComponent:t,fn:n,getConfigs:r}=e(),i=r(),a=window?.location?.pathname??`/`;if(a6.ModelsWithJSONSchemaContext&&a6.pathname===a)return B.createElement(a6.ModelsWithJSONSchemaContext,null);let o=t(`OAS31Models`,!0);return a6.ModelsWithJSONSchemaContext=t(`withJSONSchema202012SystemContext`)(o,{config:{default$schema:`https://spec.openapis.org/oas/3.2/schema/2025-09-17`,defaultExpandedLevels:i.defaultModelsExpandDepth-1,includeReadOnly:!0,includeWriteOnly:!0},fn:{getProperties:n.jsonSchema202012.getProperties,isExpandable:n.jsonSchema202012.isExpandable,getSchemaKeywords:n6(n.jsonSchema202012.getSchemaKeywords)}}),a6.pathname=a,B.createElement(a6.ModelsWithJSONSchemaContext,null)}));a6.ModelsWithJSONSchemaContext=null,a6.pathname=null;var o6=a6,s6=Z3((e=>{let{originalComponent:t}=e;return B.createElement(t,{oasVersion:`3.2`})})),c6=(e,t)=>e=>{let n=t.specSelectors.isOAS32(),r=t.getComponent(`OAS32VersionPragmaFilter`);return B.createElement(r,sp({isOAS32:n},e))},l6=Z3(({schema:e,getSystem:t})=>{if(!e?.description)return null;let{getComponent:n}=t(),r=n(`Markdown`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--description`},B.createElement(`div`,{className:`json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary`},B.createElement(r,{source:e.description})))}),u6=Z3((({schema:e,getSystem:t,originalComponent:n})=>{let{getComponent:r}=t(),i=r(`JSONSchema202012KeywordDiscriminator`),a=r(`JSONSchema202012KeywordXml`),o=r(`JSONSchema202012KeywordExample`),s=r(`JSONSchema202012KeywordExternalDocs`);return B.createElement(B.Fragment,null,B.createElement(n,{schema:e}),B.createElement(i,{schema:e,getSystem:t}),B.createElement(a,{schema:e,getSystem:t}),B.createElement(s,{schema:e,getSystem:t}),B.createElement(o,{schema:e,getSystem:t}))})),d6=Z3(({schema:e,getSystem:t})=>{let{fn:n,getComponent:r}=t(),{useComponent:i,usePath:a}=n.jsonSchema202012,{getDependentRequired:o,getProperties:s}=n.jsonSchema202012.useFn(),c=n.jsonSchema202012.useConfig(),l=Array.isArray(e?.required)?e.required:[],{path:u}=a(`properties`),d=i(`JSONSchema`),f=r(`JSONSchema202012PathContext`)(),p=s(e,c);return Object.keys(p).length===0?null:B.createElement(f.Provider,{value:u},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--properties`},B.createElement(`ul`,null,Object.entries(p).map((([t,n])=>{let r=l.includes(t),i=o(t,e);return B.createElement(`li`,{key:t,className:(0,pp.default)(`json-schema-2020-12-property`,{"json-schema-2020-12-property--required":r})},B.createElement(d,{name:t,schema:n,dependentRequired:i}))})))))}),f6=(0,zn.default)([`get`,`put`,`post`,`delete`,`options`,`head`,`patch`,`trace`,`query`]),p6=(e,t)=>(n,...r)=>t.specSelectors.isOAS32()||e(...r),m6=(h6=()=>(e,t)=>t.oas32Selectors.validOperationMethods(),(e,t)=>(n,...r)=>{if(t.getSystem().specSelectors.isOAS32()){let i=h6(n,...r);return typeof i==`function`?i(e,t):i}return e(...r)}),h6,g6=(0,Q.Map)(),_6=(e,t)=>()=>J3(t.specSelectors.specJson()),v6=()=>e=>{let t=e.specSelectors.info().get(`license`);return Q.Map.isMap(t)?t:g6},y6=()=>e=>e.specSelectors.license().get(`name`,`License`),b6=()=>e=>e.specSelectors.license().get(`url`),x6=ru([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectLicenseUrlField()],((e,t,n)=>{if(n)return OX(n,e,{selectedServer:t})})),S6=()=>e=>e.specSelectors.license().get(`identifier`),C6=()=>e=>{let t=e.specSelectors.info().get(`contact`);return Q.Map.isMap(t)?t:g6},w6=()=>e=>e.specSelectors.contact().get(`name`,`the developer`),T6=()=>e=>e.specSelectors.contact().get(`email`),E6=()=>e=>e.specSelectors.contact().get(`url`),D6=ru([(e,t)=>t.specSelectors.url(),(e,t)=>t.oas3Selectors.selectedServer(),(e,t)=>t.specSelectors.selectContactUrlField()],((e,t,n)=>{if(n)return OX(n,e,{selectedServer:t})})),O6=()=>e=>e.specSelectors.info().get(`summary`),k6=function({fn:e,getSystem:t}
279){if(typeof e.sampleFromSchema==`function`&&e.jsonSchema202012){let n=Q3({sampleFromSchema:e.jsonSchema202012.sampleFromSchema,sampleFromSchemaGeneric:e.jsonSchema202012.sampleFromSchemaGeneric,createXMLExample:e.jsonSchema202012.createXMLExample,memoizedSampleFromSchema:e.jsonSchema202012.memoizedSampleFromSchema,memoizedCreateXMLExample:e.jsonSchema202012.memoizedCreateXMLExample,getJsonSampleSchema:e.jsonSchema202012.getJsonSampleSchema,getYamlSampleSchema:e.jsonSchema202012.getYamlSampleSchema,getXmlSampleSchema:e.jsonSchema202012.getXmlSampleSchema,getSampleSchema:e.jsonSchema202012.getSampleSchema,mergeJsonSchema:e.jsonSchema202012.mergeJsonSchema,getSchemaObjectTypeLabel:t=>e.jsonSchema202012.getType(bq(t)),getSchemaObjectType:t=>e.jsonSchema202012.foldType(bq(t)?.type)},t());Object.assign(this.fn,n)}let n=(e=>(t,n=null)=>{let{fn:r}=e();if(r.isFileUploadIntendedOAS30(t,n))return!0;let i=Q.Map.isMap(t);if(!i&&!(0,Rn.default)(t))return!1;let a=i?t.get(`contentMediaType`):t.contentMediaType,o=i?t.get(`contentEncoding`):t.contentEncoding;return typeof a==`string`&&a!==``||typeof o==`string`&&o!==``})(t),{isFileUploadIntended:r}=Q3({isFileUploadIntended:n},t());if(this.fn.isFileUploadIntended=r,this.fn.isFileUploadIntendedOAS32=n,e.jsonSchema202012){let{hasSchemaType:n}=Q3({hasSchemaType:e.jsonSchema202012.hasSchemaType},t());this.fn.hasSchemaType=n}},A6=({fn:e})=>{let t=e.createSystemSelector||X3;return{afterLoad:k6,fn:{isOAS32:J3,createSystemSelector:X3,createOnlyOAS32Selector:Y3},components:{OAS32VersionPragmaFilter:q3},wrapComponents:{Contact:$3,InfoContainer:e6,License:t6,Model:i6,Models:o6,OpenAPIVersion:s6,VersionPragmaFilter:c6,JSONSchema202012KeywordDescription:l6,JSONSchema202012KeywordExamples:u6,JSONSchema202012KeywordProperties:d6},statePlugins:{spec:{selectors:{isOAS32:t(_6),selectInfoSummaryField:O6,license:v6,selectLicenseNameField:y6,selectLicenseUrlField:b6,selectLicenseIdentifierField:S6,selectLicenseUrl:t(x6),contact:C6,selectContactNameField:w6,selectContactEmailField:T6,selectContactUrlField:E6,selectContactUrl:t(D6)},wrapSelectors:{isOAS3:p6,validOperationMethods:m6}},oas32:{selectors:{validOperationMethods:f6}}}}},j6=Zr.default.object,M6=Zr.default.bool,N6=(Zr.default.oneOfType([j6,M6]),(0,B.createContext)(null));N6.displayName=`JSONSchemaContext`;var P6=(0,B.createContext)(0);P6.displayName=`JSONSchemaLevelContext`;var F6=(0,B.createContext)(new Set),I6=(0,B.createContext)([]),L6=class{static Collapsed=`collapsed`;static UserCollapsed=`user-collapsed`;static Expanded=`expanded`;static DeeplyExpanded=`deeply-expanded`},R6=[L6.Collapsed,L6.UserCollapsed],z6=()=>{let{config:e}=(0,B.useContext)(N6);return e},$=e=>{let{components:t}=(0,B.useContext)(N6);return t[e]||null},B6=(e=void 0)=>{let{fn:t}=(0,B.useContext)(N6);return e===void 0?t:t[e]},V6=()=>{let[,e]=(0,B.useState)(null),{state:t}=(0,B.useContext)(N6);return{state:t,setState:n=>{n(t),e({})}}},H6=()=>{let e=(0,B.useContext)(P6);return[e,e+1]},U6=e=>{let t=(0,B.useContext)(I6),{setState:n}=V6(),r=typeof e==`string`?[...t,e]:t;return{path:r,pathMutator:(e,t={deep:!1})=>{let i=r.toString();t.deep?n(t=>{Object.keys(t.paths).forEach((n=>{n.startsWith(i)&&(t.paths[n]=e)}))}):n(t=>{t.paths[i]=e,R6.includes(e)&&Object.keys(t.paths).forEach((e=>{e.startsWith(i)&&e!==i&&(t.paths[e]===L6.DeeplyExpanded?t.paths[e]=L6.Expanded:t.paths[e]===L6.UserCollapsed&&(t.paths[e]=L6.Collapsed))}))})}}},W6=e=>{let[t]=H6(),{defaultExpandedLevels:n}=z6(),{path:r,pathMutator:i}=U6(e),{path:a}=U6(),{state:o}=V6(),s=o.paths[r.toString()],c=o.paths[a.toString()]??o.paths[a.slice(0,-1).toString()],l=s??(n-t>0?L6.Expanded:L6.Collapsed),u=!R6.includes(l),d=(0,B.useRef)(c);return(0,B.useEffect)((()=>{let e=d.current!==c;d.current=c,(e||s!==L6.UserCollapsed)&&i(c===L6.DeeplyExpanded?L6.DeeplyExpanded:l)}),[c]),{isExpanded:u,setExpanded:(0,B.useCallback)(((e={deep:!1})=>{i(e.deep?L6.DeeplyExpanded:L6.Expanded)}),[]),setCollapsed:(0,B.useCallback)(((e={deep:!1})=>{i(e.deep?L6.Collapsed:L6.UserCollapsed,e)}),[])}},G6=(e=void 0)=>{if(e===void 0)return(0,B.useContext)(F6);let t=(0,B.useContext)(F6);return new Set([...t,e])},K6=(0,B.forwardRef)((({schema:e,name:t=``,dependentRequired:n=[],onExpand:r=()=>{},identifier:i=``},a)=>{let o=B6(),s=i||e?.$id||t,{path:c}=U6(s),{isExpanded:l,setExpanded:u,setCollapsed:d}=W6(s),[f,p]=H6(),m=(()=>{let[e]=H6();return e>0})(),h=o.isExpandable(e)||n.length>0,g=(e=>G6().has(e))(e),_=G6(e),v=o.stringifyConstraints(e),y=$(`Accordion`),b=$(`Keyword$schema`),x=$(`Keyword$vocabulary`),S=$(`Keyword$id`),C=$(`Keyword$anchor`),w=$(`Keyword$dynamicAnchor`),T=$(`
279Keyword$ref`),E=$(`Keyword$dynamicRef`),D=$(`Keyword$defs`),O=$(`Keyword$comment`),k=$(`KeywordAllOf`),A=$(`KeywordAnyOf`),j=$(`KeywordOneOf`),M=$(`KeywordNot`),N=$(`KeywordIf`),P=$(`KeywordThen`),F=$(`KeywordElse`),I=$(`KeywordDependentSchemas`),L=$(`KeywordPrefixItems`),ee=$(`KeywordItems`),R=$(`KeywordContains`),z=$(`KeywordProperties`),te=$(`KeywordPatternProperties`),ne=$(`KeywordAdditionalProperties`),re=$(`KeywordPropertyNames`),ie=$(`KeywordUnevaluatedItems`),ae=$(`KeywordUnevaluatedProperties`),oe=$(`KeywordType`),se=$(`KeywordEnum`),ce=$(`KeywordConst`),le=$(`KeywordConstraint`),ue=$(`KeywordDependentRequired`),de=$(`KeywordContentSchema`),fe=$(`KeywordTitle`),pe=$(`KeywordDescription`),me=$(`KeywordDefault`),he=$(`KeywordDeprecated`),ge=$(`KeywordReadOnly`),_e=$(`KeywordWriteOnly`),ve=$(`KeywordExamples`),ye=$(`ExtensionKeywords`),be=$(`ExpandDeepButton`),xe=(0,B.useCallback)(((e,t)=>{t?u():d(),r(e,t,!1)}),[r,u,d]),Se=(0,B.useCallback)(((e,t)=>{t?u({deep:!0}):d({deep:!0}),r(e,t,!0)}),[r,u,d]);return B.createElement(I6.Provider,{value:c},B.createElement(P6.Provider,{value:p},B.createElement(F6.Provider,{value:_},B.createElement(`article`,{ref:a,"data-json-schema-level":f,className:(0,pp.default)(`json-schema-2020-12`,{"json-schema-2020-12--embedded":m,"json-schema-2020-12--circular":g})},B.createElement(`div`,{className:`json-schema-2020-12-head`},h&&!g?B.createElement(B.Fragment,null,B.createElement(y,{expanded:l,onChange:xe},B.createElement(fe,{title:t,schema:e})),B.createElement(be,{expanded:l,onClick:Se})):B.createElement(fe,{title:t,schema:e}),B.createElement(he,{schema:e}),B.createElement(ge,{schema:e}),B.createElement(_e,{schema:e}),B.createElement(oe,{schema:e,isCircular:g}),v.length>0&&v.map((e=>B.createElement(le,{key:`${e.scope}-${e.value}`,constraint:e})))),B.createElement(`div`,{className:(0,pp.default)(`json-schema-2020-12-body`,{"json-schema-2020-12-body--collapsed":!l})},l&&B.createElement(B.Fragment,null,B.createElement(pe,{schema:e}),!g&&h&&B.createElement(B.Fragment,null,B.createElement(z,{schema:e}),B.createElement(te,{schema:e}),B.createElement(ne,{schema:e}),B.createElement(ae,{schema:e}),B.createElement(re,{schema:e}),B.createElement(k,{schema:e}),B.createElement(A,{schema:e}),B.createElement(j,{schema:e}),B.createElement(M,{schema:e}),B.createElement(N,{schema:e}),B.createElement(P,{schema:e}),B.createElement(F,{schema:e}),B.createElement(I,{schema:e}),B.createElement(L,{schema:e}),B.createElement(ee,{schema:e}),B.createElement(ie,{schema:e}),B.createElement(R,{schema:e}),B.createElement(de,{schema:e})),B.createElement(se,{schema:e}),B.createElement(ce,{schema:e}),B.createElement(ue,{schema:e,dependentRequired:n}),B.createElement(me,{schema:e}),B.createElement(ve,{schema:e}),B.createElement(b,{schema:e}),B.createElement(x,{schema:e}),B.createElement(S,{schema:e}),B.createElement(C,{schema:e}),B.createElement(w,{schema:e}),B.createElement(T,{schema:e}),!g&&h&&B.createElement(D,{schema:e}),B.createElement(E,{schema:e}),B.createElement(O,{schema:e}),B.createElement(ye,{schema:e})))))))})),q6=({schema:e})=>e?.$schema?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$schema`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$schema`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$schema)):null,J6=({schema:e})=>{let t=`$vocabulary`,{path:n}=U6(t),{isExpanded:r,setExpanded:i,setCollapsed:a}=W6(t),o=$(`Accordion`),s=(0,B.useCallback)((()=>{r?a():i()}),[r,i,a]);return e?.$vocabulary&&typeof e.$vocabulary==`object`?B.createElement(I6.Provider,{value:n},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$vocabulary`},B.createElement(o,{expanded:r,onChange:s},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$vocabulary`)),B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`}
279,`object`),B.createElement(`ul`,null,r&&Object.entries(e.$vocabulary).map((([e,t])=>B.createElement(`li`,{key:e,className:(0,pp.default)(`json-schema-2020-12-$vocabulary-uri`,{"json-schema-2020-12-$vocabulary-uri--disabled":!t})},B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e))))))):null},Y6=({schema:e})=>e?.$id?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$id`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$id`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$id)):null,X6=({schema:e})=>e?.$anchor?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$anchor`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$anchor`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$anchor)):null,Z6=({schema:e})=>e?.$dynamicAnchor?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicAnchor`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$dynamicAnchor`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$dynamicAnchor)):null,Q6=({schema:e})=>e?.$ref?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$ref`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$ref`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$ref)):null,$6=({schema:e})=>e?.$dynamicRef?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$dynamicRef`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$dynamicRef`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$dynamicRef)):null,e8=({schema:e})=>{let t=e?.$defs||{},n=`$defs`,{path:r}=U6(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=W6(n),[s,c]=H6(),l=$(`Accordion`),u=$(`ExpandDeepButton`),d=$(`JSONSchema`),f=(0,B.useCallback)((()=>{i?o():a()}),[i,a,o]),p=(0,B.useCallback)(((e,t)=>{t?a({deep:!0}):o({deep:!0})}),[a,o]);return Object.keys(t).length===0?null:B.createElement(I6.Provider,{value:r},B.createElement(P6.Provider,{value:c},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$defs`,"data-json-schema-level":s},B.createElement(l,{expanded:i,onChange:f},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$defs`)),B.createElement(u,{expanded:i,onClick:p}),B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&B.createElement(B.Fragment,null,Object.entries(t).map((([e,t])=>B.createElement(`li`,{key:e,className:`json-schema-2020-12-property`},B.createElement(d,{name:e,schema:t})))))))))},t8=({schema:e})=>e?.$comment?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--$comment`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--secondary`},`$comment`),B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--secondary`},e.$comment)):null,n8=({schema:e})=>{let t=e?.allOf||[],n=B6(),r=`allOf`,{path:i}=U6(r),{isExpanded:a,setExpanded:o,setCollapsed:s}=W6(r),[c,l]=H6(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=$(`JSONSchema`),p=$(`KeywordType`),m=(0,B.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,B.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return Array.isArray(t)&&t.length!==0?B.createElement(I6.Provider,{value:i},B.createElement(P6.Provider,{value:l},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--allOf`,"data-json-schema-level":c},B.createElement(u,{expanded:a,onChange:m},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`All of`)),B.createElement(d,{expanded:a,onClick:h}),B.createElement(p,{schema:{allOf:t}}),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&B.createElement(B.Fragment,null,t.map(((e,t)=>B.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},B.createElement(f,{name:`#${t} ${n.getTitle(e)}`,schema:e}))))))))):null},r8=({schema:e})=>{let t=e?.anyOf||[],n=B6(),r=`anyOf`,{path:i}=U6(r),{isExpanded:a,setExpanded:o,setCollapsed:s}=W6(r),[c,l]=H6(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=$(`JSONSchema`),p=$(`KeywordType`),m=(0,B.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,B.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return Array.isArray(t)&&t.length!==0?B.createElement(I6.Provider,{value:i},B.createElement(P6.Provider,{value:l},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--anyOf`,"data-json-schema-level":c},B.createElement(u,{expanded:a,onChange:m},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Any of`)),B.createElement(d,{expanded:a,onClick:h}),B.createElement(p,{schema:{anyOf:t}}),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&B.createElement(B.Fragment,null,t.map(((e,t)=>B.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},B.createElement(f,{name:`#${t} ${n.getTitle(e)}`,schema:e}))))))))):null},i8=({schema:e})=>{let t=e?.oneOf||[],n=B6(),r=`oneOf`,{path:i}=U6(r),{isExpanded:a,setExpanded:o,setCollapsed:s}=W6(r),[c,l]=H6(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=$(`JSONSchema`),p=$(`KeywordType`),m=(0,B.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,B.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return Array.isArray(t)&&t.length!==0?B.createElement(I6.Provider,{value:i},B.createElement(P6.Provider,{value:l},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--oneOf`,"data-json-schema-level":c},B.createElement(u,{expanded:a,onChange:m},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`One of`)),B.createElement(d,{expanded:a,onClick:h}),B.createElement(p,{schema:{oneOf:t}}),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&B.createElement(B.Fragment,null,t.map(((e,t)=>B.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},B.createElement(f,{name:`#${t} ${n.getTitle(e)}`,schema:e}))))))))):null},a8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`not`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Not`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--not`},B.createElement(n,{name:r,schema:e.not,identifier:`not`}))},o8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`if`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`If`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--if`},B.createElement(n,{name:r,schema:e.if,identifier:`if`}))},s8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`then`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Then`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--then`},B.createElement(n,{name:r,schema:e.then,identifier:`then`}))},c8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`else`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Else`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--if`},B.createElement(n,{name:r,schema:e.else,identifier:`else`}))},l8=({schema:e})=>{let t=e?.dependentSchemas||[],n=`dependentSchemas`,{path:r}=U6(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=W6(n),[s,c]=H6(),l=$(`Accordion`),u=$(`ExpandDeepButton`),d=$(`JSONSchema`),f=(0,B.useCallback)((()=>{i?o():a()}),[i,a,o]),p=(0,B.useCallback)(((e,t)=>{t?a({deep:!0}):o({deep:!0})}),[a,o]);return typeof t!=`object`||Object.keys(t).length===0?null:B.createElement(I6.Provider,{value:r},B.createElement(P6.Provider,{value:c},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentSchemas`,"data-json-schema-level":s},B.createElement(l,{expanded:i,onChange:f},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Dependent schemas`)),B.createElement(u,{expanded:i,onClick:p}),B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`object`),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&B.createElement(B.Fragment,null,Object.entries(t).map((([e,t])=>B.createElement(`li`,{key:e,className:`json-schema-2020-12-property`}
279,B.createElement(d,{name:e,schema:t})))))))))},u8=({schema:e})=>{let t=e?.prefixItems||[],n=B6(),r=`prefixItems`,{path:i}=U6(r),{isExpanded:a,setExpanded:o,setCollapsed:s}=W6(r),[c,l]=H6(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=$(`JSONSchema`),p=$(`KeywordType`),m=(0,B.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,B.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return Array.isArray(t)&&t.length!==0?B.createElement(I6.Provider,{value:i},B.createElement(P6.Provider,{value:l},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--prefixItems`,"data-json-schema-level":c},B.createElement(u,{expanded:a,onChange:m},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Prefix items`)),B.createElement(d,{expanded:a,onClick:h}),B.createElement(p,{schema:{prefixItems:t}}),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!a})},a&&B.createElement(B.Fragment,null,t.map(((e,t)=>B.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},B.createElement(f,{name:`#${t} ${n.getTitle(e)}`,schema:e}))))))))):null},d8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`items`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Items`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--items`},B.createElement(n,{name:r,schema:e.items,identifier:`items`}))},f8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`contains`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Contains`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--contains`},B.createElement(n,{name:r,schema:e.contains,identifier:`contains`}))},p8=({schema:e})=>{let t=B6(),n=e?.properties||{},r=Array.isArray(e?.required)?e.required:[],i=$(`JSONSchema`),{path:a}=U6(`properties`);return Object.keys(n).length===0?null:B.createElement(I6.Provider,{value:a},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--properties`},B.createElement(`ul`,null,Object.entries(n).map((([n,a])=>{let o=r.includes(n),s=t.getDependentRequired(n,e);return B.createElement(`li`,{key:n,className:(0,pp.default)(`json-schema-2020-12-property`,{"json-schema-2020-12-property--required":o})},B.createElement(i,{name:n,schema:a,dependentRequired:s}))})))))},m8=({schema:e})=>{let t=e?.patternProperties||{},n=$(`JSONSchema`),{path:r}=U6(`patternProperties`);return Object.keys(t).length===0?null:B.createElement(I6.Provider,{value:r},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--patternProperties`},B.createElement(`ul`,null,Object.entries(t).map((([e,t])=>B.createElement(`li`,{key:e,className:`json-schema-2020-12-property`},B.createElement(n,{name:e,schema:t})))))))},h8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`additionalProperties`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Additional properties`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--additionalProperties`},!0===e.additionalProperties?B.createElement(B.Fragment,null,r,B.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`allowed`)):!1===e.additionalProperties?B.createElement(B.Fragment,null,r,B.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`forbidden`)):B.createElement(n,{name:r,schema:e.additionalProperties,identifier:`additionalProperties`}))},g8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`),r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Property names`);return t.hasKeyword(e,`propertyNames`)?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--propertyNames`},B.createElement(n,{name:r,schema:e.propertyNames,identifier:`propertyNames`})):null},_8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`unevaluatedItems`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Unevaluated items`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedItems`},B.createElement(n,{name:r,schema:e.unevaluatedItems,identifier:`unevaluatedItems`}))},v8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`unevaluatedProperties`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Unevaluated properties`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--unevaluatedProperties`},B.createElement(n,{name:r,schema:e.unevaluatedProperties,identifier:`unevaluatedProperties`}))},y8=({schema:e,isCircular:t=!1})=>{let n=B6().getType(e),r=t?` [circular]`:``;return B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},`${n}${r}`)},b8=({schema:e})=>{let t=$(`JSONViewer`);return Array.isArray(e?.enum)?B.createElement(t,{name:`Enum`,value:e.enum,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--enum`}):null},x8=({schema:e})=>{let t=B6(),n=$(`JSONViewer`);return t.hasKeyword(e,`const`)?B.createElement(n,{name:`Const`,value:e.const,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--const`}):null},S8=e=>typeof e==`string`?`${e.charAt(0).toUpperCase()}${e.slice(1)}`:e,C8=e=>(t,{lookup:n=`extended`}={})=>{let r=e();if(t?.title!=null)return r.upperFirst(String(t.title));if(n===`extended`){if(t?.$anchor!=null)return r.upperFirst(String(t.$anchor));if(t?.$id!=null)return String(t.$id)}return``},w8=e=>{let t=(n,r=new WeakSet)=>{let i=e();if(n==null)return`any`;if(i.isBooleanJSONSchema(n))return n?`any`:`never`;if(typeof n!=`object`||r.has(n))return`any`;r.add(n);let{type:a,prefixItems:o,items:s}=n,c=()=>
279{if(Array.isArray(o)){let e=o.map((e=>t(e,r))),n=s?t(s,r):`any`;return`array<[${e.join(`, `)}], ${n}>`}return s?`array<${t(s,r)}>`:`array<any>`};if(n.not&&t(n.not)===`any`)return`never`;let l=(e,i)=>Array.isArray(n[e])?`(${n[e].map((e=>t(e,r))).join(i)})`:null,u=[Array.isArray(a)?a.map((e=>e===`array`?c():e)).join(` | `):a===`array`?c():[`null`,`boolean`,`object`,`array`,`number`,`integer`,`string`].includes(a)?a:(()=>{if(Object.hasOwn(n,`prefixItems`)||Object.hasOwn(n,`items`)||Object.hasOwn(n,`contains`))return c();if(Object.hasOwn(n,`properties`)||Object.hasOwn(n,`additionalProperties`)||Object.hasOwn(n,`patternProperties`))return`object`;if([`int32`,`int64`].includes(n.format))return`integer`;if([`float`,`double`].includes(n.format))return`number`;if(Object.hasOwn(n,`minimum`)||Object.hasOwn(n,`maximum`)||Object.hasOwn(n,`exclusiveMinimum`)||Object.hasOwn(n,`exclusiveMaximum`)||Object.hasOwn(n,`multipleOf`))return`number | integer`;if(Object.hasOwn(n,`pattern`)||Object.hasOwn(n,`format`)||Object.hasOwn(n,`minLength`)||Object.hasOwn(n,`maxLength`)||Object.hasOwn(n,`contentEncoding`)||Object.hasOwn(n,`contentMediaType`))return`string`;if(n.const!==void 0){if(n.const===null)return`null`;if(typeof n.const==`boolean`)return`boolean`;if(typeof n.const==`number`)return Number.isInteger(n.const)?`integer`:`number`;if(typeof n.const==`string`)return`string`;if(Array.isArray(n.const))return`array<any>`;if(typeof n.const==`object`)return`object`}return null})(),l(`oneOf`,` | `),l(`anyOf`,` | `),l(`allOf`,` & `)].filter(Boolean).join(` | `);return r.delete(n),u||`any`};return t},T8=e=>typeof e==`boolean`,E8=(e,t)=>typeof e==`object`&&!!e&&Object.hasOwn(e,t),D8=e=>t=>{let n=e();return t?.$schema||t?.$vocabulary||t?.$id||t?.$anchor||t?.$dynamicAnchor||t?.$ref||t?.$dynamicRef||t?.$defs||t?.$comment||t?.allOf||t?.anyOf||t?.oneOf||n.hasKeyword(t,`not`)||n.hasKeyword(t,`if`)||n.hasKeyword(t,`then`)||n.hasKeyword(t,`else`)||t?.dependentSchemas||t?.prefixItems||n.hasKeyword(t,`items`)||n.hasKeyword(t,`contains`)||t?.properties||t?.patternProperties||n.hasKeyword(t,`additionalProperties`)||n.hasKeyword(t,`propertyNames`)||n.hasKeyword(t,`unevaluatedItems`)||n.hasKeyword(t,`unevaluatedProperties`)||t?.description||t?.enum||n.hasKeyword(t,`const`)||n.hasKeyword(t,`contentSchema`)||n.hasKeyword(t,`default`)||t?.examples||n.getExtensionKeywords(t).length>0},O8=e=>e===null||[`number`,`bigint`,`boolean`].includes(typeof e)?String(e):Array.isArray(e)?`[${e.map(O8).join(`, `)}]`:JSON.stringify(e),k8=(e,t,n)=>{let r=typeof t==`number`,i=typeof n==`number`;return r&&i?t===n?`${t} ${e}`:`[${t}, ${n}] ${e}`:r?`⥠${t} ${e}`:i?`⤠${n} ${e}`:null},A8=e=>{let t=[],n=(e=>{if(typeof e?.multipleOf!=`number`||e.multipleOf<=0||e.multipleOf===1)return null;let{multipleOf:t}=e;if(Number.isInteger(t))return`multiple of ${t}`;let n=10**t.toString().split(`.`)[1].length;return`multiple of ${t*n}/${n}`})(e);n!==null&&t.push({scope:`number`,value:n});let r=(e=>{let t=e?.minimum,n=e?.maximum,r=e?.exclusiveMinimum,i=e?.exclusiveMaximum,a=typeof t==`number`,o=typeof n==`number`,s=typeof r==`number`,c=typeof i==`number`,l=s&&(!a||t<r),u=c&&(!o||n>i);return(a||s)&&(o||c)?`${l?`(`:`[`}${l?r:t}, ${u?i:n}${u?`)`:`]`}`:a||s?`${l?`>`:`â¥`} ${l?r:t}`:o||c?`${u?`<`:`â¤`} ${u?i:n}`:null})(e);r!==null&&t.push({scope:`number`,value:r}),e?.format&&t.push({scope:`string`,value:e.format});let i=k8(`characters`,e?.minLength,e?.maxLength);i!==null&&t.push({scope:`string`,value:i}),e?.pattern&&t.push({scope:`string`,value:`matches ${e?.pattern}`}),e?.contentMediaType&&t.push({scope:`string`,value:`media type: ${e.contentMediaType}`}),e?.contentEncoding&&t.push({scope:`string`,value:`encoding: ${e.contentEncoding}`});let a=k8(e?.uniqueItems?`unique items`:`items`,e?.minItems,e?.maxItems);a!==null&&t.push({scope:`array`,value:a}),e?.uniqueItems&&!a&&t.push({scope:`array`,value:`unique`});let o=k8(`contained items`,e?.minContains,e?.maxContains);o!==null&&t.push({scope:`array`,value:o});let s=k8(`properties`,e?.minProperties,e?.maxProperties);return s!==null&&t.push({scope:`object`,value:s}),t},j8=(e,t)=>t?.dependentRequired?Array.from(Object.entries(t.dependentRequired).reduce(((t,[n,r])=>(Array.isArray(r)&&r.includes(e)&&t.add(n),t)),new Set)):[],M8=e=>typeof e==`object`&&!!e&&!Array.isArray(e)&&(Object.getPrototypeOf(e)===null||Object.getPrototypeOf(e)===Object.prototype),N8=()=>`$schema.$vocabulary.$id.$anchor.$dynamicAnchor.$dynamicRef.$ref.$defs.$comment.allOf.anyOf.oneOf.not.if.then.else.depen
279dentSchemas.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`.split(`.`),P8=e=>t=>{let n=e().getSchemaKeywords();return M8(t)?((e,t)=>{let n=new Set(t);return e.filter((e=>!n.has(e)))})(Object.keys(t),n):[]},F8=(e,t)=>{let n=Q.Map.isMap(e);if(!n&&!M8(e))return!1;let r=e=>t===e||Array.isArray(t)&&t.includes(e),i=n?e.get(`type`):e.type;return Q.List.isList(i)||Array.isArray(i)?i.some((e=>r(e))):r(i)},I8=B.memo(({constraint:e})=>M8(e)&&typeof e.scope==`string`&&typeof e.value==`string`?B.createElement(`span`,{className:`json-schema-2020-12__constraint json-schema-2020-12__constraint--${e.scope}`},e.value):null),L8=({dependentRequired:e})=>Array.isArray(e)&&e.length!==0?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--dependentRequired`},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Required when defined`),B.createElement(`ul`,null,e.map((e=>B.createElement(`li`,{key:e},B.createElement(`span`,{className:`json-schema-2020-12-keyword__value json-schema-2020-12-keyword__value--warning`},e)))))):null,R8=({schema:e})=>{let t=B6(),n=$(`JSONSchema`);if(!t.hasKeyword(e,`contentSchema`))return null;let r=B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--primary`},`Content schema`);return B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--contentSchema`},B.createElement(n,{name:r,schema:e.contentSchema,identifier:`contentSchema`}))},z8=({title:e=``,schema:t})=>{let n=B6(),r=e||n.getTitle(t);return r?B.createElement(`strong`,{className:`json-schema-2020-12__title`},r):null},B8=({schema:e})=>e?.description?B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--description`},B.createElement(`div`,{className:`json-schema-2020-12-core-keyword__value json-schema-2020-12-core-keyword__value--secondary`},e.description)):null,V8=({schema:e})=>{let t=B6(),n=$(`JSONViewer`);return t.hasKeyword(e,`default`)?B.createElement(n,{name:`Default`,value:e.default,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--default`}):null},H8=({schema:e})=>!0===e?.deprecated?B.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--warning`},`deprecated`):null,U8=({schema:e})=>!0===e?.readOnly?B.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},`read-only`):null,W8=({schema:e})=>!0===e?.writeOnly?B.createElement(`span`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--muted`},`write-only`):null,G8=({schema:e})=>{let t=e?.examples||[],n=$(`JSONViewer`);return Array.isArray(t)&&t.length!==0?B.createElement(n,{name:`Examples`,value:e.examples,className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--examples`}):null},K8=({schema:e})=>{let t=B6(),n=`ExtensionKeywords`,{path:r}=U6(n),{isExpanded:i,setExpanded:a,setCollapsed:o}=W6(n),[s,c]=H6(),l=$(`Accordion`),u=$(`ExpandDeepButton`),d=$(`JSONViewer`),{showExtensionKeywords:f}=z6(),p=t.getExtensionKeywords(e),m=(0,B.useCallback)((()=>{i?o():a()}),[i,a,o]),h=(0,B.useCallback)(((e,t)=>{t?a({deep:!0}):o({deep:!0})}),[a,o]);return f&&p.length!==0?B.createElement(I6.Provider,{value:r},B.createElement(P6.Provider,{value:c},B.createElement(`div`,{className:`json-schema-2020-12-keyword json-schema-2020-12-keyword--extension-keywords`,"data-json-schema-level":s},B.createElement(l,{expanded:i,onChange:m},B.createElement(`span`,{className:`json-schema-2020-12-keyword__name json-schema-2020-12-keyword__name--extension`},`Extension Keywords`)),B.createElement(u,{expanded:i,onClick:h}),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-keyword__children`,{"json-schema-2020-12-keyword__children--collapsed":!i})},i&&B.createElement(B.Fragment,null,p.map((t=>B.createElement(d,{key:t,name:t,value:e[t],className:`json-schema-2020-12-json-viewer-extension-keyword`})))))))):null},q8=({name:e,value:t,className:n})=>{let r=B6(),{path:i}=U6(e),{isExpanded:a,setExpanded:o,setCollapsed:s}=W6(e),[c,l]=H6(),u=$(`Accordion`),d=$(`ExpandDeepButton`),f=typeof t==`string`||typeof t==`number`||typeof t==`bigint`||typeof t==`boolean`||typeof t==`symbol`||t==null,p=(e=>M8(e)&&Object.keys(e).length===0)(t)||(e=>Array.isArray(e)&&e.length===0)(t),m=(0,B.useCallback)((()=>{a?s():o()}),[a,o,s]),h=(0,B.useCallback)(((e,t)=>{t?o({deep:!0}):s({deep:!0})}),[o,s]);return f?B.createElement(`div`,{className:(0,pp.default)(`json-schema-2020-12-json-viewer`,n)},B.createElement(`span`,{className:`json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary`},e),B.createElement(`span`,{className:`json-schema-2020-12-json-viewer__value json-schema-2020-12-json-viewer__value--secondary`},r.stringify(t))):p?B.createElement(`div`,{className:(0,pp.default)(`json-schema-2020-12-json-viewer`,n)},B.createElement(`span`,{className:`json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary`},e),B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},Array.isArray(t)?`empty array`:`empty object`)):B.createElement(I6.Provider,{value:i},B.createElement(P6.Provider,{value:l},B.createElement(`div`,{className:(0,pp.default)(`json-schema-2020-12-json-viewer`,n),"data-json-schema-level":c},B.createElement(u,{expanded:a,onChange:m},B.createElement(`span`,{className:`json-schema-2020-12-json-viewer__name json-schema-2020-12-json-viewer__name--secondary`},e)),B.createElement(d,{expanded:a,onClick:h}),B.createElement(`strong`,{className:`json-schema-2020-12__attribute json-schema-2020-12__attribute--primary`},Array.isArray(t)?`array`:`object`),B.createElement(`ul`,{className:(0,pp.default)(`json-schema-2020-12-json-viewer__children`,{"json-schema-2020-12-json-viewer__children--collapsed":!a})},a&&B.createElement(B.Fragment,null,Array.isArray(t)?t.map(((e,t)=>B.createElement(`li`,{key:`#${t}`,className:`json-schema-2020-12-property`},B.createElement(q8,{name:`#${t}`,value:e,className:n})))):Object.entries(t).map((([e,t])=>B.createElement(`li`,{key:e,className:`json-schema-2020-12-property`},B.createElement(q8,{name:e,value:t,className:n})))))))))},J8=q8,Y8=({expanded:e=!1,children:t,onChange:n})=>{let r=$(`ChevronRightIcon`),i=(0,B.useCallback)((t=>{n(t,!e)}),[e,n]);return B.createElement(`button`,{type:`button`,className:`json-schema-2020-12-accordion`,onClick:i},B.createElement(`div`,{className:`json-schema-2020-12-accordion__children`},t),B.createElement(`span`,{className:(0,pp.default)(`json-schema-2020-12-accordion__icon`,{"json-schema-2020-12-accordion__icon--expanded":e,"json-schema-2020-12-accordion__icon--collapsed":!e})}
279,B.createElement(r,null)))},X8=({expanded:e,onClick:t})=>{let n=(0,B.useCallback)((n=>{t(n,!e)}),[e,t]);return B.createElement(`button`,{type:`button`,className:`json-schema-2020-12-expand-deep-button`,onClick:n},e?`Collapse all`:`Expand all`)},Z8=()=>B.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`24`,height:`24`,viewBox:`0 0 24 24`},B.createElement(`path`,{fill:`currentColor`,d:`M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`})),Q8=(e,t={})=>{let n={components:{JSONSchema:K6,Keyword$schema:q6,Keyword$vocabulary:J6,Keyword$id:Y6,Keyword$anchor:X6,Keyword$dynamicAnchor:Z6,Keyword$ref:Q6,Keyword$dynamicRef:$6,Keyword$defs:e8,Keyword$comment:t8,KeywordAllOf:n8,KeywordAnyOf:r8,KeywordOneOf:i8,KeywordNot:a8,KeywordIf:o8,KeywordThen:s8,KeywordElse:c8,KeywordDependentSchemas:l8,KeywordPrefixItems:u8,KeywordItems:d8,KeywordContains:f8,KeywordProperties:p8,KeywordPatternProperties:m8,KeywordAdditionalProperties:h8,KeywordPropertyNames:g8,KeywordUnevaluatedItems:_8,KeywordUnevaluatedProperties:v8,KeywordType:y8,KeywordEnum:b8,KeywordConst:x8,KeywordConstraint:I8,KeywordDependentRequired:L8,KeywordContentSchema:R8,KeywordTitle:z8,KeywordDescription:B8,KeywordDefault:V8,KeywordDeprecated:H8,KeywordReadOnly:U8,KeywordWriteOnly:W8,KeywordExamples:G8,ExtensionKeywords:K8,JSONViewer:J8,Accordion:Y8,ExpandDeepButton:X8,ChevronRightIcon:Z8,...t.components},config:{default$schema:`https://json-schema.org/draft/2020-12/schema`,defaultExpandedLevels:0,showExtensionKeywords:!0,...t.config},fn:{upperFirst:S8,getTitle:C8(B6),getType:w8(B6),isBooleanJSONSchema:T8,hasKeyword:E8,isExpandable:D8(B6),stringify:O8,stringifyConstraints:A8,getDependentRequired:j8,getSchemaKeywords:N8,getExtensionKeywords:P8(B6),...t.fn},state:{paths:{}}},r=t=>B.createElement(N6.Provider,{value:n},B.createElement(e,t));return r.contexts={JSONSchemaContext:N6},r.displayName=e.displayName,r},$8=({getSystem:e})=>(t,n={})=>{let{getComponent:r,getConfigs:i}=e(),a=i();return Q8(t,{components:{JSONSchema:r(`JSONSchema202012`),Keyword$schema:r(`JSONSchema202012Keyword$schema`),Keyword$vocabulary:r(`JSONSchema202012Keyword$vocabulary`),Keyword$id:r(`JSONSchema202012Keyword$id`),Keyword$anchor:r(`JSONSchema202012Keyword$anchor`),Keyword$dynamicAnchor:r(`JSONSchema202012Keyword$dynamicAnchor`),Keyword$ref:r(`JSONSchema202012Keyword$ref`),Keyword$dynamicRef:r(`JSONSchema202012Keyword$dynamicRef`),Keyword$defs:r(`JSONSchema202012Keyword$defs`),Keyword$comment:r(`JSONSchema202012Keyword$comment`),KeywordAllOf:r(`JSONSchema202012KeywordAllOf`),KeywordAnyOf:r(`JSONSchema202012KeywordAnyOf`),KeywordOneOf:r(`JSONSchema202012KeywordOneOf`),KeywordNot:r(`JSONSchema202012KeywordNot`),KeywordIf:r(`JSONSchema202012KeywordIf`),KeywordThen:r(`JSONSchema202012KeywordThen`),KeywordElse:r(`JSONSchema202012KeywordElse`),KeywordDependentSchemas:r(`JSONSchema202012KeywordDependentSchemas`),KeywordPrefixItems:r(`JSONSchema202012KeywordPrefixItems`),KeywordItems:r(`JSONSchema202012KeywordItems`),KeywordContains:r(`JSONSchema202012KeywordContains`),KeywordProperties:r(`JSONSchema202012KeywordProperties`),KeywordPatternProperties:r(`JSONSchema202012KeywordPatternProperties`),KeywordAdditionalProperties:r(`JSONSchema202012KeywordAdditionalProperties`),KeywordPropertyNames:r(`JSONSchema202012KeywordPropertyNames`),KeywordUnevaluatedItems:r(`JSONSchema202012KeywordUnevaluatedItems`),KeywordUnevaluatedProperties:r(`JSONSchema202012KeywordUnevaluatedProperties`),KeywordType:r(`JSONSchema202012KeywordType`),KeywordEnum:r(`JSONSchema202012KeywordEnum`),KeywordConst:r(`JSONSchema202012KeywordConst`),KeywordConstraint:r(`JSONSchema202012KeywordConstraint`),KeywordDependentRequired:r(`JSONSchema202012KeywordDependentRequired`),KeywordContentSchema:r(`JSONSchema202012KeywordContentSchema`),KeywordTitle:r(`JSONSchema202012KeywordTitle`),KeywordDescription:r(`JSONSchema202012KeywordDescription`),KeywordDefault:r(`JSONSchema202012KeywordDefault`),KeywordDeprecated:r(`JSONSchema202012KeywordDeprecated`),KeywordReadOnly:r(`JSONSchema202012KeywordReadOnly`),KeywordWriteOnly:r(`JSONSchema202012KeywordWriteOnly`),KeywordExamples:r(`JSONSchema202012KeywordExamples`),ExtensionKeywords:r(`JSONSchema202012ExtensionKeywords`),JSONViewer:r(`JSONSchema202012JSONViewer`),Accordion:r(`JSONSchema202012Accordion`),ExpandDeepButton:r(`JSONSchema202012ExpandDeepButton`),ChevronRightIcon:r(`JSONSchema202012ChevronRightIcon`),...n.components},config:{showExtensionKeywords:a.showExtensions,...n.config},fn:{...n.fn}})},e5=({getSystem:e,fn:t})=>{let n=()=>({upperFirst:t.upperFirst,...t.jsonSchema202012});return{components:{JSONSchema202012:K6,JSONSchema202012Keyword$schema:q6,JSONSchema202012Keyword$vocabulary:J6,JSONSchema202012Keyword$id:Y6,JSONSchema202012Keyword$anchor:X6,JSONSchema202012Keyword$dynamicAnchor:Z6,JSONSchema202012Keyword$ref:Q6,JSONSchema202012Keyword$dynamicRef:$6,JSONSchema202012Keyword$defs:e8,JSONSchema202012Keyword$comment:t8,JSONSchema202012KeywordAllOf:n8,JSONSchema202012KeywordAnyOf:r8,JSONSchema202012KeywordOneOf:i8,JSONSchema202012KeywordNot:a8,JSONSchema202012KeywordIf:o8,JSONSchema202012KeywordThen:s8,JSONSchema202012KeywordElse:c8,JSONSchema202012KeywordDependentSchemas:l8,JSONSchema202012KeywordPrefixItems:u8,JSONSchema202012KeywordItems:d8,JSONSchema202012KeywordContains:f8,JSONSchema202012KeywordProperties:p8,JSONSchema202012KeywordPatternProperties:m8,JSONSchema202012KeywordAdditionalProperties:h8,JSONSchema202012KeywordPropertyNames:g8,JSONSchema202012KeywordUnevaluatedItems:_8,JSONSchema202012KeywordUnevaluatedProperties:v8,JSONSchema202012KeywordType:y8,JSONSchema202012KeywordEnum:b8,JSONSchema202012KeywordConst:x8,JSONSchema202012KeywordConstraint:I8,JSONSchema202012KeywordDependentRequired:L8,JSONSchema202012KeywordContentSchema:R8,JSONSchema202012KeywordTitle:z8,JSONSchema202012KeywordDescription:B8,JSONSchema202012KeywordDefault:V8,JSONSchema202012KeywordDeprecated:H8,JSONSchema202012KeywordReadOnly:U8,JSONSchema202012KeywordWriteOnly:W8,JSONSchema202012KeywordExamples:G8,JSONSchema202012ExtensionKeywords:K8,JSONSchema202012JSONViewer:J8,JSONSchema202012Accordion:Y8,JSONSchema202012ExpandDeepButton:X8,JSONSchema202012ChevronRightIcon:Z8,withJSONSchema202012Context:Q8,withJSONSchema202012SystemContext:$8(e()),JSONSchema202012PathContext:()=>I6,JSONSchema202012LevelContext:()=>P6},fn:{upperFirst:S8,jsonSchema202012:{getTitle:C8(n),getType:w8(n),isExpandable:D8(n),isBooleanJSONSchema:T8,hasKeyword:E8,useFn:B6,useConfig:z6,useComponent:$,useIsExpanded:W6,usePath:U6,useLevel:H6,getSchemaKeywords:N8,getExtensionKeywords:P8(n),hasSchemaType:F8}}}},t5=(e,{sample:t=[]}={})=>((e,t={})=>{let{minItems:n,maxItems:r,uniqueItems:i}=t,{contains:a,minContains:o,maxContains:s}=t,c=[...e];if(typeof a==`object`&&a&&Number.isInteger(o)&&o>1){let e=c.at(0);for(let t=1;t<o;t+=1)c.unshift(e)}if(Number.isInteger(r)&&r>0&&(c=e.slice(0,r)),Number.isInteger(n)&&n>0)for(let e=0;c.length<n;e+=1)c.push(c[e%c.length]);return!0===i&&(c=Array.from(new Set(c))),c})(t,e),n5=()=>{throw Error(`Not implemented`)},r5=e=>pq()(e),i5=e=>e.at(0),a5=e=>typeof e==`boolean`,o5=e=>(0,Rn.default)(e),s5=e=>a5(e)||o5(e),c5=class{data={};register(e,t){this.data[e]=t}unregister(e){e===void 0?this.data={}:delete this.data[e]}get(e){return this.data[e]}},l5=()=>0,u5=()=>0,d5=()=>.1,f5=()=>.1,p5=()=>`[email protected]`,m5=()=>`ì¤ë¡@example.com`,h5=()=>`example.com`,g5=()=>`ì¤ë¡.com`,_5=()=>`198.51.100.42`,v5=()=>`2001:0db8:5b96:0000:0000:426f:8e17:642a`,y5=()=>`https://example.com/`,b5=()=>`path/index.html`,x5=()=>`https://ì¤ë¡.com/`,S5=()=>`path/ì¤ë¡.html`,C5=()=>`3fa85f64-5717-4562-b3fc-2c963f66afa6`,w5=()=>`https://example.com/dictionary/{term:1}/{term}`,T5=()=>`/a/b/c`,E5=()=>`1/0`,D5=()=>new Date().toISOString(),O5=()=>new Date().toISOString().substring(0,10),k5=()=>new Date().toISOString().substring(11),A5=()=>`P3D`,j5=()=>`********`,M5=()=>`^[a-z]+$`,N5=new class extends c5{#e={int32:l5,int64:u5,float:d5,double:f5,email:p5,"idn-email":m5,hostname:h5,"idn-hostname":g5,ipv4:_5,ipv6:v5,uri:y5,"uri-reference":b5,iri:x5,"iri-reference":S5,uuid:C5,"uri-template":w5,"json-pointer":T5,"relative-json-pointer":E5,"date-time":D5,date:O5,time:k5,duration:A5,password:j5,regex:M5};data={...this.#e};get defaults(){return{...this.#e}}},P5=(e,t)=>typeof t==`function`?N5.register(e,t):t===null?N5.unregister(e):N5.get(e);P5.getDefaults=()=>N5.defaults;var F5=P5,I5=Z(287).Buffer,L5=e=>I5.from(e).toString(`ascii`),R5=Z(287).Buffer,z5=e=>R5.from(e).toString(`utf8`),B5=Z(287).Buffer,V5=e=>B5.from(e).toString(`binary`),H5=e=>{let t=``;for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===61)t+=`=3D`;else if(r>=33&&r<=60||r>=62&&r<=126||r===9||r===32)t+=e.charAt(n);else if(r===13||r===10)t+=`\r 280`;else if(r>126){let r=unescape(encodeURIComponent(e.charAt(n)));for(let e=0;e<r.length;e++)t+=`=`+(`0`+r.charCodeAt(e).toString(16)).slice(-2).toUpperCase()}else t+=`=`+(`0`+r.toString(16)).slice(-2).toUpperCase()}return t},U5=Z(287).Buffer,W5=e=>U5.from(e).toString(`hex`),G5=Z(287).Buffer,K5=e=>{let t=G5.from(e).toString(`utf8`),n=`ABCDEFGHIJKLMNOPQRSTUVWXYZ234567`,r=0,i=``,a=0,o=0;for(let e=0;e<t.length;e++)for(a=a<<8|t.charCodeAt(e),o+=8;o>=5;)i+=n.charAt(a>>>o-5&31),o-=5;o>
2800&&(i+=n.charAt(a<<5-o&31),r=(8-8*t.length%5)%5);for(let e=0;e<r;e++)i+=`=`;return i},q5=Z(287).Buffer,J5=e=>q5.from(e).toString(`base64`),Y5=Z(287).Buffer,X5=e=>Y5.from(e).toString(`base64url`),Z5=new class extends c5{#e={"7bit":L5,"8bit":z5,binary:V5,"quoted-printable":H5,base16:W5,base32:K5,base64:J5,base64url:X5};data={...this.#e};get defaults(){return{...this.#e}}},Q5=(e,t)=>typeof t==`function`?Z5.register(e,t):t===null?Z5.unregister(e):Z5.get(e);Q5.getDefaults=()=>Z5.defaults;var $5=Q5,Ane={"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`},jne={"image/*":()=>r5(25).toString(`binary`)},Mne={"audio/*":()=>r5(25).toString(`binary`)},Nne={"video/*":()=>r5(25).toString(`binary`)},Pne={"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/*":()=>r5(25).toString(`binary`)},e7=new class extends c5{#e={...Ane,...jne,...Mne,...Nne,...Pne};data={...this.#e};get defaults(){return{...this.#e}}},t7=(e,t)=>{if(typeof t==`function`)return e7.register(e,t);if(t===null)return e7.unregister(e);let n=e.split(`;`).at(0),r=`${n.split(`/`).at(0)}/*`;return e7.get(e)||e7.get(n)||e7.get(r)};t7.getDefaults=()=>e7.defaults;var n7=t7,r7=(e,t={})=>{let{maxLength:n,minLength:r}=t,i=e;if(Number.isInteger(n)&&n>0&&(i=i.slice(0,n)),Number.isInteger(r)&&r>0){let e=0;for(;i.length<r;)i+=i[e++%i.length]}return i},Fne=(e,{sample:t}={})=>{let{contentEncoding:n,contentMediaType:r,contentSchema:i}=e,{pattern:a,format:o}=e,s=$5(n)||Bn.default,c;return c=typeof a==`string`?r7((e=>{try{let t=e.replace(/(?<=(?<!\\)\{)(\d{3,})(?=\})|(?<=(?<!\\)\{\d*,)(\d{3,})(?=\})|(?<=(?<!\\)\{)(\d{3,})(?=,\d*\})/g,`100`),n=new ph.default(t);return n.max=100,n.gen()}catch{return`string`}})(a),e):typeof o==`string`?(e=>{let{format:t}=e,n=F5(t);return typeof n==`function`?n(e):`string`})(e):s5(i)&&typeof r==`string`&&t!==void 0?Array.isArray(t)||typeof t==`object`?JSON.stringify(t):r7(String(t),e):typeof r==`string`?(e=>{let{contentMediaType:t}=e,n=n7(t);return typeof n==`function`?n(e):`string`})(e):r7(`string`,e),s(c)},i7=(e,t={})=>{let{minimum:n,maximum:r,exclusiveMinimum:i,exclusiveMaximum:a}=t,{multipleOf:o}=t,s=Number.isInteger(e)?1:2**-52,c=typeof n==`number`?n:null,l=typeof r==`number`?r:null,u=e;if(typeof i==`number`&&(c=c===null?i+s:Math.max(c,i+s)),typeof a==`number`&&(l=l===null?a-s:Math.min(l,a-s)),u=c>l&&e||c||l||u,typeof o==`number`&&o>0){let e=u%o;u=e===0?u:u+o-e}return u},a7=new Proxy({array:t5,object:n5,string:Fne,number:e=>{let{format:t}=e,n;return n=typeof t==`string`?(e=>{let{format:t}=e,n=F5(t);return typeof n==`function`?n(e):0})(e):0,i7(n,e)},integer:e=>{let{format:t}=e,n;return n=typeof t==`string`?(e=>{let{format:t}=e,n=F5(t);if(typeof n==`function`)return n(e);switch(t){case`int32`:return l5();case`int64`:return u5()}return 0})(e):0,i7(n,e)},boolean:e=>typeof e.default!=`boolean`||e.default,null:()=>null},{get:(e,t)=>typeof t==`string`&&Object.hasOwn(e,t)?e[t]:()=>`Unknown Type: ${t}`}),o7=[`array`,`object`,`number`,`integer`,`string`,`boolean`,`null`],s7=e=>{if(!o5(e))return!1;let{examples:t,example:n,default:r}=e;return!!(Array.isArray(t)&&t.length>=1)||r!==void 0||n!==void 0},c7=e=>{if(!o5(e))return null;let{examples:t,example:n,default:r}=e;return Array.isArray(t)&&t.length>=1?t.at(0):r===void 0?n===void 0?void 0:n:r},l7={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`]};l7.number=l7.integer;var u7=`string`,d7=e=>e===void 0?null:e===null?`null`:Array.isArray(e)?`array`:Number.isInteger(e)?`integer`:typeof e,f7=e=>{if(Array.isArray(e)&&e.length>=1){if(e.includes(`array`))return`array`;if(e.includes(`object`))return`object`;{let t=e.filter((e=>e!==`null`)),n=i5(t.length>0?t:e);
280if(o7.includes(n))return n}}return o7.includes(e)?e:null},p7=(e,t=new WeakSet)=>{if(!o5(e)||t.has(e))return u7;t.add(e);let{type:n,const:r}=e;if(n=f7(n),typeof n!=`string`){let t=Object.keys(l7);e:for(let r=0;r<t.length;r+=1){let i=t[r],a=l7[i];for(let t=0;t<a.length;t+=1){let r=a[t];if(Object.hasOwn(e,r)){n=i;break e}}}}if(typeof n!=`string`&&r!==void 0){let e=d7(r);n=typeof e==`string`?e:n}if(typeof n!=`string`){let r=n=>Array.isArray(e[n])?f7(e[n].map((e=>p7(e,t)))):null,i=r(`allOf`),a=r(`anyOf`),o=r(`oneOf`),s=e.not?p7(e.not,t):null;(i||a||o||s)&&(n=f7([i,a,o,s].filter(Boolean)))}if(typeof n!=`string`&&s7(e)){let t=d7(c7(e));n=typeof t==`string`?t:n}return t.delete(e),n||u7},m7=e=>p7(e),h7=e=>a5(e)?(e=>!1===e?{not:{}}:{})(e):o5(e)?e:{},g7=(e,t,n={})=>{if(a5(e)&&!0===e)return!0;if(a5(e)&&!1===e)return!1;if(a5(t)&&!0===t)return!0;if(a5(t)&&!1===t)return!1;if(!s5(e))return t;if(!s5(t))return e;let r={...t,...e};if(t.type&&e.type&&Array.isArray(t.type)&&typeof t.type==`string`){let n=Cq(t.type).concat(e.type);r.type=Array.from(new Set(n))}if(Array.isArray(t.required)&&Array.isArray(e.required)&&(r.required=[...new Set([...e.required,...t.required])]),t.properties&&e.properties){let i=new Set([...Object.keys(t.properties),...Object.keys(e.properties)]);r.properties={};for(let a of i){let i=t.properties[a]||{},o=e.properties[a]||{};i.readOnly&&!n.includeReadOnly||i.writeOnly&&!n.includeWriteOnly?r.required=(r.required||[]).filter((e=>e!==a)):r.properties[a]=g7(o,i,n)}}return s5(t.items)&&s5(e.items)&&(r.items=g7(e.items,t.items,n)),s5(t.contains)&&s5(e.contains)&&(r.contains=g7(e.contains,t.contains,n)),s5(t.contentSchema)&&s5(e.contentSchema)&&(r.contentSchema=g7(e.contentSchema,t.contentSchema,n)),r},_7=g7,v7=(e,t={},n=void 0,r=!1)=>{if(e==null&&n===void 0)return;typeof e?.toJS==`function`&&(e=e.toJS()),e=h7(e);let i=n!==void 0||s7(e),a=!i&&Array.isArray(e.oneOf)&&e.oneOf.length>0,o=!i&&Array.isArray(e.anyOf)&&e.anyOf.length>0;if(!i&&(a||o)){let n=h7(i5(a?e.oneOf:e.anyOf));!(e=_7(e,n,t)).xml&&n.xml&&(e.xml=n.xml),s7(e)&&s7(n)&&(i=!0)}let s={},{xml:c,properties:l,additionalProperties:u,items:d,contains:f}=e||{},p=m7(e),{includeReadOnly:m,includeWriteOnly:h}=t;c||={};let g,{name:_,prefix:v,namespace:y}=c,b={};Object.hasOwn(e,`type`)||(e.type=p),r&&(_||=`notagname`,g=(v?`${v}:`:``)+_,y)&&(s[v?`xmlns:${v}`:`xmlns`]=y),r&&(b[g]=[]);let x=xq(l),S,C=0,w=()=>Number.isInteger(e.maxProperties)&&e.maxProperties>0&&C>=e.maxProperties,T=t=>!(Number.isInteger(e.maxProperties)&&e.maxProperties>0)||!w()&&(!(t=>!Array.isArray(e.required)||e.required.length===0||!e.required.includes(t))(t)||e.maxProperties-C-(()=>{if(!Array.isArray(e.required)||e.required.length===0)return 0;let t=0;return r?e.required.forEach((e=>t+=b[e]===void 0?0:1)):e.required.forEach((e=>{t+=b[g]?.find((t=>t[e]!==void 0))===void 0?0:1})),e.required.length-t})()>0);if(S=r?(n,i=void 0)=>{if(e&&x[n]){if(x[n].xml=x[n].xml||{},x[n].xml.attribute){let e=Array.isArray(x[n].enum)?i5(x[n].enum):void 0;if(s7(x[n]))s[x[n].xml.name||n]=c7(x[n]);else if(e!==void 0)s[x[n].xml.name||n]=e;else{let e=h7(x[n]),r=m7(e),a=x[n].xml.name||n;if(r===`array`){let e=v7(x[n],t,i,!1);s[a]=e.map((e=>(0,Rn.default)(e)?`UnknownTypeObject`:Array.isArray(e)?`UnknownTypeArray`:e)).join(` `)}else s[a]=r===`object`?`UnknownTypeObject`:a7[r](e)}return}x[n].xml.name=x[n].xml.name||n}else x[n]||!1===u||(x[n]={xml:{name:n}});let a=v7(x[n],t,i,r);T(n)&&(C++,Array.isArray(a)?b[g]=b[g].concat(a):b[g].push(a))}:(n,i)=>{if(T(n)){if((0,Rn.default)(e.discriminator?.mapping)&&e.discriminator.propertyName===n&&typeof e.$$ref==`string`){for(let t in e.discriminator.mapping)if(e.$$ref.search(e.discriminator.mapping[t])!==-1){b[n]=t;break}}else b[n]=v7(x[n],t,i,r);C++}},i){let i;if(i=n===void 0?c7(e):n,!r){if(typeof i==`number`&&p===`string`)return`${i}`;if(typeof i!=`string`||p===`string`)return i;try{return JSON.parse(i)}catch{return i}}if(p===`array`){if(!Array.isArray(i)){if(typeof i==`string`)return i;i=[i]}let n=[];return o5(d)&&(d.xml=d.xml||c||{},d.xml.name=d.xml.name||c.name,n=i.map((e=>v7(d,t,e,r)))),o5(f)&&(f.xml=f.xml||c||{},f.xml.name=f.xml.name||c.name,n=[v7(f,t,void 0,r),...n]),n=a7.array(e,{sample:n}),c.wrapped?(b[g]=n,(0,mh.default)(s)||b[g].push({_attr:s})):b=n,b}if(p===`object`){if(typeof i==`string`)return i;for(let e in i)Object.hasOwn(i,e)&&(x[e]?.readOnly&&!m||x[e]?.writeOnly&&!h||(x[e]?.xml?.attribute?s[x[e].xml.name||e]=i[e]:S(e,i[e])));return(0,mh.default)(s)||b[g].push({_attr:s}),b}return b[g]=(0,mh.default)(s)?i:[{_attr:s},i],b}if(p===`array`){let n=[];if(o5(f)){if(r&&(f.xml=f.xml||e.xml||{},f.xml.name=f.xml.name||c.name),Array.isArray(f.anyOf)){let{anyOf:e,...i}=d;n.push(...f.anyOf.map((e=>v7(_7(e,i,t),t,void 0,r))))}else if(Array.isArray(f.oneOf)){let{oneOf:e,...i}=d;n.push(...f.oneOf.map((e=>v7(_7(e,i,t),t,void 0,r))))}else{if(!(!r||r&&c.wrapped))return v7(f,t,void 0,r);n.push(v7(f,t,void 0,r))}}if(o5(d)){if(r&&(d.xml=d.xml||e.xml||{},d.xml.name=d.xml.name||c.name),Array.isArray(d.anyOf)){let{anyOf:e,...i}=d;n.push(...d.anyOf.map((e=>v7(_7(e,i,t),t,void 0,r))))}else if(Array.isArray(d.oneOf)){let{oneOf:e,...i}=d;n.push(...d.oneOf.map((e=>v7(_7(e,i,t),t,void 0,r))))}else{if(!(!r||r&&c.wrapped))return v7(d,t,void 0,r);n.push(v7(d,t,void 0,r))}}return n=a7.array(e,{sample:n}),r&&c.wrapped?(b[g]=n,(0,mh.default)(s)||b[g].push({_attr:s}),b):n}if(p===`object`){for(let e in x)Object.hasOwn(x,e)&&(x[e]?.deprecated||x[e]?.readOnly&&!m||x[e]?.writeOnly&&!h||S(e));if(r&&s&&b[g].push({_attr:s}),w())return b;if(a5(u)&&u)r?b[g].push({additionalProp:`Anything can be here`}):b.additionalProp1={},C++;else if(o5(u)){let n=u,i=v7(n,t,void 0,r);if(r&&typeof n?.xml?.name==`string`&&n?.xml?.name!==`notagname`)b[g].push(i);else{let t=n?.[`x-additionalPropertiesName`]||`additionalProp`,a=Number.isInteger(e.minProperties)&&e.minProperties>0&&C<e.minProperties?e.minProperties-C:3;for(let e=1;e<=a;e++){if(w())return b;if(r){let n={};n[t+e]=i.notagname,b[g].push(n)}else b[t+e]=i;C++}}}return b}let E;if(e.const!==void 0)E=e.const;else if(e&&Array.isArray(e.enum))E=i5(Cq(e.enum));else{let n=o5(e.contentSchema)?v7(e.contentSchema,t,void 0,r):void 0;E=a7[p](e,{sample:n})}return r?(b[g]=(0,mh.default)(s)?E:[{_attr:s},E],b):E},y7=(e,t,n)=>{let r=v7(e,t,n,!0);if(r)return typeof r==`string`?r:QX()(r,{declaration:!0,indent:` `})},b7=(e,t,n)=>v7(e,t,n,!1),x7=(e,t,n)=>[e,JSON.stringify(t),JSON.stringify(n)],Ine=nZ(y7,x7),Lne=nZ(b7,x7),S7=new class extends c5{#e={};data={...this.#e};get defaults(){return{...this.#e}}},Rne=(e,t)=>(t!==void 0&&S7.register(e,t),S7.get(e)),zne=[{when:/json/,shouldStringifyTypes:[`string`]}],Bne=[`object`],Vne=e=>(t,n,r,i)=>{let{fn:a}=e(),o=a.jsonSchema202012.memoizedSampleFromSchema(t,n,i),s=typeof o,c=zne.reduce(((e,t)=>t.when.test(r)?[...e,...t.shouldStringifyTypes]:e),Bne);return(0,Hl.default)(c,(e=>e===s))?JSON.stringify(o,null,2):o},Hne=e=>(t,n,r,i)=>{let{fn:a}=e(),o=a.jsonSchema202012.getJsonSampleSchema(t,n,r,i),s;try{s=Ed.dump(Ed.load(o),{lineWidth:-1},{schema:Dd}),s[s.length-1]===` 281`&&(s=s.slice(0,s.length-1))}catch(e){return console.error(e),`error: could not generate yaml example`}return s.replace(/\t/g,` `)},Une=e=>(t,n,r)=>{let{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"?> 282<!-- XML example cannot be generated; root element name is undefined -->`;if(t.$$ref){let e=t.$$ref.match(/\S*\/(\S+)$/);t.xml.name=e[1]}}return i.jsonSchema202012.memoizedCreateXMLExample(t,n,r)},Wne=e=>(t,n=``,r={},i=void 0)=>{let{fn:a}=e();return typeof t?.toJS==`function`&&(t=t.toJS()),typeof i?.toJS==`function`&&(i=i.toJS()),/xml/.test(n)?a.jsonSchema202012.getXmlSampleSchema(t,r,i):/(yaml|yml)/.test(n)?a.jsonSchema202012.getYamlSampleSchema(t,r,n,i):a.jsonSchema202012.getJsonSampleSchema(t,r,n,i)},C7=({getSystem:e})=>({fn:{jsonSchema202012:{sampleFromSchema:b7,sampleFromSchemaGeneric:v7,sampleOptionAPI:Rne,sampleEncoderAPI:$5,sampleFormatAPI:F5,sampleMediaTypeAPI:n7,createXMLExample:y7,memoizedSampleFromSchema:Lne,memoizedCreateXMLExample:Ine,getJsonSampleSchema:Vne(e),getYamlSampleSchema:Hne(e),getXmlSampleSchema:Une(e),getSampleSchema:Wne(e),mergeJsonSchema:_7,foldType:f7}}});
282function w7(){return[X0,D4,e5,C7,K3,A6]}var Gne=e=>()=>({fn:e.fn,components:e.components}),Kne=e=>{let t=XK()({layout:{layout:e.layout,filter:e.filter},spec:{spec:``,url:e.url},requestSnippets:e.requestSnippets},e.initialState);if(e.initialState)for(let[n,r]of Object.entries(e.initialState))r===void 0&&delete t[n];return{system:{configs:e.configs},plugins:e.presets,state:t}},qne=()=>e=>{let t=e.queryConfigEnabled?(()=>{let e=new URLSearchParams(dq.location.search);return Object.fromEntries(e)})():{};return Object.entries(t).reduce(((e,[t,n])=>(t===`config`?e.configUrl=n:t===`urls.primaryName`?e[t]=n:e=(0,gh.default)(e,t,n),e)),{})},Jne=({url:e,system:t})=>async n=>{if(!e||typeof t.configsActions?.getConfigByUrl!=`function`)return{};let r=(()=>{let e={};return e.promise=new Promise(((t,n)=>{e.resolve=t,e.reject=n})),e})();return t.configsActions.getConfigByUrl({url:e,loadRemoteConfig:!0,requestInterceptor:n.requestInterceptor,responseInterceptor:n.responseInterceptor},(e=>{r.resolve(e)})),r.promise},Yne=()=>()=>{let 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},T7=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`,`query`],queryConfigEnabled:!1,presets:[w7],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}),E7=(e,t=[])=>Array.isArray(e)?e:t,D7=(e,t=!1)=>!0===e||e===`true`||e===1||e===`1`||!1!==e&&e!==`false`&&e!==0&&e!==`0`&&t,Xne=e=>e===null||e===`null`?null:e,Zne=e=>D7(e,String(e)),O7=(e,t)=>typeof e==`function`?e:t,Qne=e=>Array.isArray(e)?e:null,k7=e=>typeof e==`function`?e:null,A7=e=>e===null||e===`null`?null:String(e),j7=(e,t=-1)=>{let n=parseInt(e,10);return Number.isNaN(n)?t:n},M7=(e,t={})=>(0,Rn.default)(e)?e:t,N7=e=>typeof e==`function`||typeof e==`string`?e:null,P7=e=>String(e),F7={components:{typeCaster:M7},configs:{typeCaster:M7},configUrl:{typeCaster:A7},deepLinking:{typeCaster:D7,defaultValue:T7.deepLinking},defaultModelExpandDepth:{typeCaster:j7,defaultValue:T7.defaultModelExpandDepth},defaultModelRendering:{typeCaster:P7},defaultModelsExpandDepth:{typeCaster:j7,defaultValue:T7.defaultModelsExpandDepth},displayOperationId:{typeCaster:D7,defaultValue:T7.displayOperationId},displayRequestDuration:{typeCaster:D7,defaultValue:T7.displayRequestDuration},docExpansion:{typeCaster:P7},dom_id:{typeCaster:A7},domNode:{typeCaster:Xne},fileUploadMediaTypes:{typeCaster:E7,defaultValue:T7.fileUploadMediaTypes},filter:{typeCaster:Zne},fn:{typeCaster:M7},initialState:{typeCaster:M7},layout:{typeCaster:P7},maxDisplayedTags:{typeCaster:j7,defaultValue:T7.maxDisplayedTags},modelPropertyMacro:{typeCaster:k7},oauth2RedirectUrl:{typeCaster:e=>e===void 0||e===`undefined`?void 0:String(e)},onComplete:{typeCaster:k7},operationsSorter:{typeCaster:N7},paramaterMacro:{typeCaster:k7},persistAuthorization:{typeCaster:D7,defaultValue:T7.persistAuthorization},plugins:{typeCaster:E7,defaultValue:T7.plugins},presets:{typeCaster:E7,defaultValue:T7.presets},requestInterceptor:{typeCaster:O7,defaultValue:T7.requestInterceptor},requestSnippets:{typeCaster:M7,defaultValue:T7.requestSnippets},requestSnippetsEnabled:{typeCaster:D7,defaultValue:T7.requestSnippetsEnabled},responseInterceptor:{typeCaster:O7,defaultValue:T7.responseInterceptor},showCommonExtensions:{typeCaster:D7,defaultValue:T7.showCommonExtensions},showExtensions:{typeCaster:D7,defaultValue:T7.showExtensions},showMutatedRequest:{typeCaster:D7,defaultValue:T7.showMutatedRequest},spec:{typeCaster:M7,defaultValue:T7.spec},supportedSubmitMethods:{typeCaster:E7,defaultValue:T7.supportedSubmitMethods},syntaxHighlight:{typeCaster:(e,t)=>
282(0,Rn.default)(e)?e:!1===e||e===`false`||e===0||e===`0`?{activated:!1}:t,defaultValue:T7.syntaxHighlight},"syntaxHighlight.activated":{typeCaster:D7,defaultValue:T7.syntaxHighlight.activated},"syntaxHighlight.theme":{typeCaster:P7},tagsSorter:{typeCaster:N7},tryItOutEnabled:{typeCaster:D7,defaultValue:T7.tryItOutEnabled},url:{typeCaster:P7},urls:{typeCaster:Qne},"urls.primaryName":{typeCaster:P7},validatorUrl:{typeCaster:A7},withCredentials:{typeCaster:D7,defaultValue:T7.withCredentials},uncaughtExceptionHandler:{typeCaster:k7}},I7=e=>Object.entries(F7).reduce(((e,[t,{typeCaster:n,defaultValue:r}])=>{if((0,CK.default)(e,t)){let i=n((0,Un.default)(e,t),r);e=(0,wK.default)(t,i,e)}return e}),{...e}),$ne=(e,...t)=>{let n=Symbol.for(`domNode`),r=Symbol.for(`primaryName`),i=[];for(let e of t){let t={...e};Object.hasOwn(t,`domNode`)&&(n=t.domNode,delete t.domNode),Object.hasOwn(t,`urls.primaryName`)?(r=t[`urls.primaryName`],delete t[`urls.primaryName`]):Array.isArray(t.urls)&&Object.hasOwn(t.urls,`primaryName`)&&(r=t.urls.primaryName,delete t.urls.primaryName),i.push(t)}let a=XK()(e,...i);return n!==Symbol.for(`domNode`)&&(a.domNode=n),r!==Symbol.for(`primaryName`)&&Array.isArray(a.urls)&&(a.urls.primaryName=r),I7(a)};function L7(e){let t=qne()(e),n=Yne()(),r=L7.config.merge({},L7.config.defaults,n,e,t),i=Kne(r),a=Gne(r),o=new Xq(i);o.register([r.plugins,a]);let s=o.getSystem(),c=e=>{o.setConfigs(e),s.configsActions.loaded()},l=e=>{!t.url&&typeof e.spec==`object`&&Object.keys(e.spec).length>0?(s.specActions.updateUrl(``),s.specActions.updateLoadingStatus(`success`),s.specActions.updateSpec(JSON.stringify(e.spec))):typeof s.specActions.download==`function`&&e.url&&!e.urls&&(s.specActions.updateUrl(e.url),s.specActions.download(e.url))},u=e=>{if(e.domNode)s.render(e.domNode,`App`);else if(e.dom_id){let t=document.querySelector(e.dom_id);s.render(t,`App`)}else e.dom_id===null||e.domNode===null||console.error("Skipped rendering: no `dom_id` or `domNode` was specified")};return r.configUrl?((async()=>{let{configUrl:e}=r,n=await Jne({url:e,system:s})(r),i=L7.config.merge({},r,n,t);c(i),n!==null&&l(i),u(i)})(),s):(c(r),l(r),u(r),s)}L7.System=Xq,L7.config={defaults:T7,merge:$ne,typeCast:I7,typeCastMappings:F7},L7.presets={base:X0,apis:w7},L7.plugins={Accessibility:rJ,Auth:UJ,Configs:tY,DeepLining:fY,Err:bY,Filter:SY,Icons:kY,JSONSchema5:XX,JSONSchema5Samples:TZ,JSONSchema202012:e5,JSONSchema202012Samples:C7,Layout:GY,Logs:KY,OpenAPI30:D4,OpenAPI31:D4,OnComplete:JY,RequestSnippets:fX,Spec:j$,SwaggerClient:N$,Util:P$,View:U$,ViewLegacy:W$,DownloadUrl:G$,SyntaxHighlighting:n1,Versions:i1,SafeRender:l1};var R7=L7,{config:z7}=R7,B7=e=>{let t=(0,B.useRef)();return(0,B.useEffect)(()=>{t.current=e},[e]),t.current},V7=({spec:e=z7.defaults.spec,url:t=z7.defaults.url,layout:n=z7.defaults.layout,requestInterceptor:r=z7.defaults.requestInterceptor,responseInterceptor:i=z7.defaults.responseInterceptor,supportedSubmitMethods:a=z7.defaults.supportedSubmitMethods,queryConfigEnabled:o=z7.defaults.queryConfigEnabled,plugins:s=z7.defaults.plugins,displayOperationId:c=z7.defaults.displayOperationId,showMutatedRequest:l=z7.defaults.showMutatedRequest,docExpansion:u=z7.defaults.docExpansion,defaultModelExpandDepth:d=z7.defaults.defaultModelExpandDepth,defaultModelsExpandDepth:f=z7.defaults.defaultModelsExpandDepth,defaultModelRendering:p=z7.defaults.defaultModelRendering,presets:m=z7.defaults.presets,deepLinking:h=z7.defaults.deepLinking,showExtensions:g=z7.defaults.showExtensions,showCommonExtensions:_=z7.defaults.showCommonExtensions,filter:v=z7.defaults.filter,requestSnippetsEnabled:y=z7.defaults.requestSnippetsEnabled,requestSnippets:b=z7.defaults.requestSnippets,tryItOutEnabled:x=z7.defaults.tryItOutEnabled,displayRequestDuration:S=z7.defaults.displayRequestDuration,withCredentials:C=z7.defaults.withCredentials,persistAuthorization:w=z7.defaults.persistAuthorization,oauth2RedirectUrl:T=z7.defaults.oauth2RedirectUrl,onComplete:E=null,initialState:D=z7.defaults.initialState,uncaughtExceptionHandler:O=z7.defaults.uncaughtExceptionHandler})=>{let[k,A]=(0,B.useState)(null),j=k?.getComponent(`App`,`root`),M=B7(e),N=B7(t);return(0,B.useEffect)(()=>{let k=R7({plugins:s,spec:e,url:t,layout:n,defaultModelsExpandDepth:f,defaultModelRendering:p,presets:[R7.presets.apis,...m],requestInterceptor:r,responseInterceptor:i,onComplete:()=>{typeof E==`function`&&E(k)},docExpansion:u,supportedSubmitMethods:a,queryConfigEnabled:o,defaultModelExpandDepth:d,displayOperationId:c,tryItOutEnabled:x,displayRequestDuration:S,requestSnippetsEnabled:y,requestSnippets:b,showMutatedRequest:l,deepLinking:h,showExtensions:g,showCommonExtensions:_,filter:v,persistAuthorization:w,withCredentials:C,initialState:D,uncaughtExceptionHandler:O,...typeof T==`string`?{oauth2RedirectUrl:T}:{}});A(k)},[]),(0,B.useEffect)(()=>{k&&(t!==k.specSelectors.url()||t!==N)&&(k.specActions.updateSpec(``),t&&(k.specActions.updateUrl(t),k.specActions.download(t)))},[k,t]),(0,B.useEffect)(()=>
282{if(k){let t=k.specSelectors.specStr();if(e&&e!==R7.config.defaults.spec&&(e!==t||e!==M)){let t=typeof e==`object`?JSON.stringify(e):e;k.specActions.updateSpec(t)}}},[k,e]),j?B.createElement(j,null):null};V7.System=R7.System,V7.presets=R7.presets,V7.plugins=R7.plugins,V7.config=R7.config;var ere=e=>e.trim().replace(/\s/g,`%20`),H7=e=>CSS.escape(ere(e).replace(/%20/g,`_`)),tre=(e,t)=>{let n=(e,t)=>{if(e.scrollIntoView({behavior:`smooth`,block:`start`}),t){let t=e.querySelector(`button.model-box-control`);if(t?.getAttribute(`aria-expanded`)===`false`)t.dispatchEvent(new MouseEvent(`click`,{bubbles:!0}));else if(!t){let t=e.querySelector(`button.json-schema-2020-12-accordion`);t&&t.dispatchEvent(new MouseEvent(`click`,{bubbles:!0}))}}else{let t=e.querySelector(`.opblock-summary-control`);t?.getAttribute(`aria-expanded`)===`false`&&t.dispatchEvent(new MouseEvent(`click`,{bubbles:!0}))}};(0,B.useEffect)(()=>{if(!e||!t)return;let r=t.replace(`#/`,``).split(`/`),i=r.length===1,a=r[0]||``,o=i?``:r[1]||``,s=e.querySelector(`[data-tag="${a}"]`);if(s?.getAttribute(`data-is-open`)===`false`&&s.dispatchEvent(new MouseEvent(`click`,{bubbles:!0})),i){let t=e.querySelector(`button.models-control`);t?.getAttribute(`aria-expanded`)===`false`&&t.dispatchEvent(new MouseEvent(`click`,{bubbles:!0}))}let c,l=0,u=()=>{let e=i?`model-${a}`:H7([`operations`,a,o].join(`-`)),t=document.getElementById(e);if(t){n(t,i);return}if(i){let e=decodeURIComponent(a);if(t=Array.from(document.querySelectorAll(`.model-container`)).find(t=>t.querySelector(`.model-title`)?.textContent?.toLowerCase()===e?.toLowerCase()),t||=Array.from(document.querySelectorAll(`.json-schema-2020-12`)).find(t=>t.querySelector(`.json-schema-2020-12__title`)?.textContent?.toLowerCase()===e?.toLowerCase()),t){n(t,i);return}}else{let e=H7([`operations`,a,o.replaceAll(`-`,`_`)].join(`-`)),t=document.getElementById(e);if(t){n(t,i);return}}l<20&&(l++,c=setTimeout(u,150))};return c=setTimeout(u,150),()=>clearTimeout(c)},[t,e])},nre=e=>t=>{let n=localStorage.getItem(`portal.proxyOptions`),{routing:r,credentialsEnabled:i}=n?JSON.parse(n):{routing:ct.BROWSER,credentialsEnabled:!1};return r===ct.BROWSER?(i&&(t.credentials=`include`),t):(t.url=`/services/api/proxy/${e?.proxyToken||``}/${t.url}`,t)},rre=({path:e,swaggerhubOrgName:t,version:n,exploreUrl:r,swaggerhubApiName:i,oasVersion:a})=>{let{t:o}=R(),{isLoggedIn:s,user:c}=it();if(c?.isExternal||!e?.get||e?.get(0)!==`paths`)return null;let l=e?.get(1),u=e?.get(2),d=a.startsWith(`3.0`);return!l||!u||!d?null:(0,V.jsx)(rt,{content:o(s?`components.ui.apiViewer.explore.tooltip.userLoggedIn`:`components.ui.apiViewer.explore.tooltip.userNotLoggedIn`),trigger:`hover`,defaultComp:(0,V.jsx)(`a`,{href:`${r}/catalog?owner=${t}&api=${i}&version=${n}&path=${l}&method=${u}`,target:`_blank`,className:`flex items-center justify-center w-6 h-6 transition duration-100 ease-in rounded hover:bg-(--sp-color-surface-hover) text-(--sp-color-text-muted)`,rel:`noreferrer`,children:(0,V.jsx)(N,{})}),placement:`top`,portalSelector:`body`})},ire=({version:e,swaggerhubOrgName:t,exploreUrl:n,swaggerhubApiName:r,oasVersion:i})=>()=>({wrapComponents:{JumpToPath:a=>o=>(0,V.jsxs)(`div`,{className:`flex`,children:[(0,V.jsx)(a,{...o}),(0,V.jsx)(rre,{...o,version:e,swaggerhubOrgName:t,exploreUrl:n,swaggerhubApiName:r,oasVersion:i})]})}});function are({definition:e,containerRef:t,hash:n,exploreUrl:r,SHUBApiDetails:i,oasVersion:a,lastModifiedDate:o}){let[s,c]=(0,B.useState)(``);(0,B.useEffect)(()=>{c(`${window.location.protocol}//${window.location.host}/oauth2_redirect`)},[]),tre(t,n);let{user:l}=it(),{version:u=``,orgName:d=``,name:f=``}=i,p=[r?ire({exploreUrl:r,version:u,swaggerhubOrgName:d,swaggerhubApiName:f,oasVersion:a}):null,aee({lastModifiedDate:o})].filter(Boolean);return s?(0,V.jsx)(V7,{spec:e,requestSnippetsEnabled:!0,plugins:p,requestInterceptor:nre(l),showMutatedRequest:!1,oauth2RedirectUrl:s},`swaggerUI-${d}-${f}-${u}`):null}var ore=({activeRenderer:e,definition:t,hash:n,ref:r,isAdmin:i,pathname:a,isConsumerSide:o,lastModifiedDate:s,exploreUrl:c,SHUBApiDetails:l,oasVersion:u,ElementsRenderer:
282d})=>r?e===ut.ASYNCAPI?(0,V.jsx)(`div`,{children:(0,V.jsx)(Jn,{definition:t,hash:decodeURIComponent(n),containerRef:r,lastModifiedDate:s,isConsumerSide:o})}):e===ut.ELEMENTS?(0,V.jsxs)(`div`,{id:`elements-renderer`,className:te(`pt-6`,o&&`md:px-3 xl:px-0 md:pt-9 xl:pt-6`),children:[(0,V.jsx)(qn,{date:s,className:`pb-[0.7rem] px-6`}),(0,V.jsx)(d,{definition:t,stacked:i},a)]}):(0,V.jsx)(`div`,{className:te(o&&`md:p-3 xl:p-0 pb-4!`),children:(0,V.jsx)(are,{definition:t,hash:decodeURIComponent(n),containerRef:r,exploreUrl:c,SHUBApiDetails:l,oasVersion:u,lastModifiedDate:s})}):null,sre=({exploreUrl:e,SHUBApiDetails:t})=>{let{t:n}=R(),{isLoggedIn:r,user:i}=it();return!e||i?.isExternal?null:(0,V.jsx)(D,{content:n(r?`components.ui.apiViewer.explore.tooltip.userLoggedIn`:`components.ui.apiViewer.explore.tooltip.userNotLoggedIn`),trigger:`hover`,defaultComp:(0,V.jsx)(A,{href:`${e}/catalog?owner=${t?.orgName}&api=${t?.name}&version=${t?.version}`,target:`_blank`,rel:`noreferrer`,size:`s`,icon:(0,V.jsx)(N,{}),className:`sp-api-viewer-explore-button ml-0! duration-200 transition-colors hover:bg-(--sp-color-surface-inverse) dark:hover:bg-(--sp-color-surface-inverse) hover:text-(--sp-color-text-inverse) dark:hover:text-(--sp-color-text-inverse)`,children:n(`components.ui.apiViewer.explore.label`)}),placement:`bottom`})},cre=({onToggle:e=()=>{},renderer:t,isOas3_2:n=!1})=>{let r=(0,B.useMemo)(()=>[{path:`elements`,label:d(`components.ui.apiViewer.renderer.toggle.left.label`),disabled:n,disabledTooltip:n?d(`components.ui.apiViewer.renderer.toggle.elementsNotSupported`):void 0},{path:`swagger-ui`,label:d(`components.ui.apiViewer.renderer.toggle.right.label`)}],[n]),i=t===ut.SWAGGER_UI?`swagger-ui`:`elements`,a=(0,B.useCallback)(t=>{e(t.path===`swagger-ui`)},[e]);return(0,V.jsx)(j,{className:`sp-api-viewer-renderer-toggle`,options:r,activePath:i,onSwitch:a,width:`w-59`,buttonClassName:`sp-api-viewer-renderer-toggle-button`})},U7=Symbol(`NOT_RESOLVED`);function W7(e,t){return{tagName:e,nodeKind:`scalar`,implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify,represent:t.represent??(e=>String(e)),representTagName:t.representTagName??(()=>e)}}function G7(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`sequence`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}function K7(e,t){let n=t.finalize===void 0;return{tagName:e,nodeKind:`mapping`,implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(e=>e),carrierIsResult:n,identify:t.identify,represent:t.represent??(e=>e),representTagName:t.representTagName??(()=>e)}}var lre=W7(`tag:yaml.org,2002:str`,{resolve:e=>e,identify:e=>typeof e==`string`}),ure=[``,`~`,`null`,`Null`,`NULL`],dre=W7(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>ure.indexOf(e)===-1?U7:null,identify:e=>e===null,represent:()=>`null`}),fre=W7(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[`n`],resolve:(e,t)=>e===`null`||t&&e===``?null:U7,identify:e=>e===null,represent:()=>`null`}),pre=[``,`~`,`null`,`Null`,`NULL`],mre=W7(`tag:yaml.org,2002:null`,{implicit:!0,implicitFirstChars:[``,`~`,`n`,`N`],resolve:e=>pre.indexOf(e)===-1?U7:null,identify:e=>e===null,represent:()=>`null`}),hre=[`true`,`True`,`TRUE`],gre=[`false`,`False`,`FALSE`],_re=W7(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`T`,`f`,`F`],resolve:e=>hre.indexOf(e)!==-1||gre.indexOf(e)===-1&&U7,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),vre=[`true`],yre=[`false`],bre=W7(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`t`,`f`],resolve:e=>vre.indexOf(e)!==-1||yre.indexOf(e)===-1&&U7,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),xre=[`true`,`True`,`TRUE`,`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`],Sre=[`false`,`False`,`FALSE`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],Cre=W7(`tag:yaml.org,2002:bool`,{implicit:!0,implicitFirstChars:[`y`,`Y`,`n`,`N`,`t`,`T`,`f`,`F`,`o`,`O`],resolve:e=>xre.indexOf(e)!==-1||Sre.indexOf(e)===-1&&U7,identify:e=>Object.prototype.toString.call(e)===`[object Boolean]`,represent:e=>e?`true`:`false`}),wre=RegExp(`^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$`),Tre=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function Ere(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function Dre(e,t){if(t){if(!Tre.test(e))return U7}else if(!wre.test(e))return U7;let n=Ere(e);return Number.isFinite(n)?n:U7}var q7=W7(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:Dre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Ore=RegExp(`^-?(?:0|[1-9][0-9]*)$`),kre=RegExp(`^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$`);function Are(e){let t=e,n=1;return(t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`)?n*parseInt(t.slice(2),2):t.startsWith(`0o`)?n*parseInt(t.slice(2),8):t.startsWith(`0x`)?n*parseInt(t.slice(2),16):n*parseInt(t,10)}function jre(e,t){if(t){if(!kre.test(e))return U7}else if(!Ore.test(e))return U7;let n=Are(e);return Number.isFinite(n)?n:U7}var Mre=W7(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:jre,i
vendor: 8,673 bytes, line 282
282dentify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Nre=RegExp(`^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$`);function Pre(e){let t=e.replace(/_/g,``),n=1;if((t[0]===`-`||t[0]===`+`)&&(t[0]===`-`&&(n=-1),t=t.slice(1)),t.startsWith(`0b`))return n*parseInt(t.slice(2),2);if(t.startsWith(`0x`))return n*parseInt(t.slice(2),16);if(t.includes(`:`)){let e=0;for(let n of t.split(`:`))e=e*60+Number(n);return n*e}return t!==`0`&&t[0]===`0`?n*parseInt(t,8):n*parseInt(t,10)}function Fre(e){if(!Nre.test(e))return U7;let t=Pre(e);return Number.isFinite(t)?t:U7}var J7=W7(`tag:yaml.org,2002:int`,{implicit:!0,implicitFirstChars:[`-`,`+`,...`0123456789`],resolve:Fre,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf(`e`)<0,represent:e=>e.toString(10)}),Ire=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Lre=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Rre(e){if(!Ire.test(e))return U7;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)||Lre.test(e)?r:U7}function zre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var Y7=W7(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:Rre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:zre}),Bre=RegExp(`^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$`),Vre=RegExp(`^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function Hre(e,t){if(t){if(!Vre.test(e))return U7;let t=e.toLowerCase(),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=n*parseFloat(t);return Number.isFinite(r)?r:U7}if(!Bre.test(e))return U7;let n=Number(e);return Number.isFinite(n)?n:U7}function Ure(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var Wre=W7(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,...`0123456789`],resolve:Hre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Ure}),Gre=RegExp(`^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),Kre=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function qre(e){if(!Gre.test(e))return U7;let t=e.toLowerCase().replace(/_/g,``),n=t[0]===`-`?-1:1;if(`+-`.includes(t[0])&&(t=t.slice(1)),t===`.inf`)return n===1?1/0:-1/0;if(t===`.nan`)return NaN;let r=0;if(t.includes(`:`)){for(let e of t.split(`:`))r=r*60+Number(e);r*=n}else r=n*parseFloat(t);return Number.isFinite(r)||Kre.test(e)?r:U7}function Jre(e){if(isNaN(e))return`.nan`;if(e===1/0)return`.inf`;if(e===-1/0)return`-.inf`;if(Object.is(e,-0))return`-0.0`;let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace(`e`,`.e`):t}var X7=W7(`tag:yaml.org,2002:float`,{implicit:!0,implicitFirstChars:[`-`,`+`,`.`,...`0123456789`],resolve:qre,identify:e=>typeof e==`number`&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf(`e`)>=0),represent:Jre}),Yre=W7(`tag:yaml.org,2002:merge`,{implicit:!0,implicitFirstChars:[`<`],resolve:(e,t)=>e===`<<`||t&&e===``?`<<`:U7,identify:()=>!1}),Xre=/^[A-Za-z0-9+/]*={0,2}$/;function Zre(e){let t=e.replace(/\s/g,``);if(t.length%4!=0||!Xre.test(t))return U7;let n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;e++)r[e]=n.charCodeAt(e);return r}function Qre(e){let t=``;for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}var $re=W7(`tag:yaml.org,2002:binary`,{resolve:Zre,identify:e=>Object.prototype.toString.call(e)===`[object Uint8Array]`,represent:Qre}),eie=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),tie=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 Z7(e,t,n,r=0,i=0,a=0,o=0){let s=new Date(Date.UTC(e,t,n,r,i,a,o));return s.setUTCFullYear(e,t,n),s}function nie(e){let t=eie.exec(e);if(t===null&&(t=tie.exec(e)),t===null)return U7;let n=+t[1],r=t[2]-1,i=+t[3];if(!t[4]){let e=Z7(n,r,i);return e.getUTCFullYear()!==n||e.getUTCMonth()!==r||e.getUTCDate()!==i?U7:e}let a=+t[4],o=+t[5],s=+t[6],c=0;if(a>23||o>59||s>59)return U7;if(t[7]){let e=t[7].slice(0,3);for(;e.length<3;)e+=`0`;c=+e}let l=Z7(n,r,i,a,o,s,c);if(l.getUTCFullYear()!==n||l.getUTCMonth()!==r||l.getUTCDate()!==i)return U7;if(t[9]){let e=+t[10],n=+(t[11]||0);if(e>23||n>59)return U7;let r=(e*60+n)*6e4;l.setTime(l.getTime()-(t[9]===`-`?-r:r))}return l}var rie=W7(`tag:yaml.org,2002:timestamp`,{implicit:!0,implicitFirstChars:[...`0123456789`],resolve:nie,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),iie=G7(`tag:yaml.org,2002:seq`,{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function Q7(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function aie(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}var oie=G7(`tag:yaml.org,2002:omap`,{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let n;if(t instanceof Map){if(t.size!==1)return`cannot resolve an ordered map item`;n=t.keys().next().value}else if(Q7(t)){let e=Object.keys(t);if(e.length!==1)return`cannot resolve an ordered map item`;n=e[0]}else return`cannot resolve an ordered map item`;return e.seen.has(n)?`duplicate key in ordered map`:(e.seen.add(n),e.list.push(t),``)},finalize:e=>e.list,identify:()=>!1}),sie=G7(`tag:yaml.org,2002:pairs`,{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size===1?(e.push(t.entries().next().value),``):`cannot resolve a pairs item`;if(Object.prototype.toString.call(t)!==`[object Object]`)return`cannot resolve a pairs item`;let n=t,r=Object.keys(n);return r.length===1?(e.push([r[0],n[r[0]]]),``):`cannot resolve a pairs item`},identify:()=>!1}),cie=K7(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Q7,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{if(typeof t==`object`&&t)return`object-based map does not support complex keys`;let r=String(t);return r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``},has:(e,t)=>typeof t==`object`&&t?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}}),lie=K7(`tag:yaml.org,2002:set`,{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let n of e)t.set(n,null);return t},addPair:(e,t,n)=>n===null?(e.add(t),``):`cannot resolve a set item`,has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function uie(){return{scalar:Object.create(null),sequence:Object.create(null),mapping:Object.create(null)}}function die(){return{scalar:[],sequence:[],mapping:[]}}function fie(e){let t=[];for(let n of e){let e=t.length;for(let r=0;r<t.length;r++){let i=t[r];if(i.nodeKind===n.nodeKind&&i.tagName===n.tagName&&i.matchByTagPrefix===n.matchByTagPrefix){e=r;break}}t[e]=n}return t}var $7=class e{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(e){let t=fie(e),n=[],r=uie(),i=die();for(let e of t){if(e.nodeKind===`scalar`&&e.implicit){if(e.matchByTagPrefix)throw Error(`Implicit scalar tags cannot match by tag prefix`);n.push(e)}switch(e.nodeKind){case`scalar`:e.matchByTagPrefix?i.scalar.push(e):r.scalar[e.tagName]=e;break;case`sequence`:e.matchByTagPrefix?i.sequence.push(e):r.sequence[e.tagName]=e;break;case`mapping`:e.matchByTagPrefix?i.mapping.push(e):r.mapping[e.tagName]=e}}let a=n.filter(e=>e.implicitFirstChars===null),o=new Set;for(let e of n)if(e.implicitFirstChars!==null)for(let t of e.implicitFirstChars)o.add(t);let s=new Map;for(let e of o)s.set(e,n.filter(t=>t.implicitFirstChars===null||t.implicitFirstChars.indexOf(e)!==-1));let c=r.scalar[`tag:yaml.org,2002:str`];
282if(!c)throw Error(`schema does not define the default scalar tag (tag:yaml.org,2002:str)`);this.tags=t,this.implicitScalarTags=n,this.implicitScalarByFirstChar=s,this.implicitScalarAnyFirstChar=a,this.defaultScalarTag=c,this.defaultSequenceTag=r.sequence[`tag:yaml.org,2002:seq`],this.defaultMappingTag=r.mapping[`tag:yaml.org,2002:map`],this.exact=r,this.prefix=i}lookupScalarTag(e){let t=this.exact.scalar[e];if(t)return t;for(let t of this.prefix.scalar)if(e.startsWith(t.tagName))return t}lookupSequenceTag(e){let t=this.exact.sequence[e];if(t)return t;for(let t of this.prefix.sequence)if(e.startsWith(t.tagName))return t}lookupMappingTag(e){let t=this.exact.mapping[e];if(t)return t;for(let t of this.prefix.mapping)if(e.startsWith(t.tagName))return t}resolveImplicitScalarTag(e){let t=this.implicitScalarByFirstChar.get(e.charAt(0))??this.implicitScalarAnyFirstChar;for(let n of t){let t=n.resolve(e,!1,n.tagName);if(t!==U7)return{value:t,tag:n}}let n=this.defaultScalarTag;return{value:n.resolve(e,!1,n.tagName),tag:n}}withTags(...t){let n=[];for(let e of t)n=n.concat(e);return new e([...this.tags,...n])}},e9=new $7([lre,iie,cie]);new $7([...e9.tags,fre,bre,Mre,Wre]);var pie=new $7([...e9.tags,dre,_re,q7,Y7]),mie=new $7([...e9.tags,mre,Cre,J7,X7,rie,Yre,$re,oie,sie,lie]).withTags({...J7,resolve:(e,t,n)=>{let r=J7.resolve(e,t,n);return r===U7?q7.resolve(e,t,n):r}},{...X7,resolve:(e,t,n)=>{let r=X7.resolve(e,t,n);return r===U7?Y7.resolve(e,t,n):r}});K7(`tag:yaml.org,2002:map`,{create:()=>new Map,addPair:(e,t,n)=>(e.set(t,n),``),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||Q7(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,n=e;for(let e of Object.keys(n))t.set(e,n[e]);return t}});function t9(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let e=0;e<t.length;e++){if(Array.isArray(t[e]))return null;typeof t[e]==`object`&&Object.prototype.toString.call(t[e])===`[object Object]`&&(t[e]=`[object Object]`)}return String(t)}return typeof e==`object`&&Object.prototype.toString.call(e)===`[object Object]`?`[object Object]`:String(e)}K7(`tag:yaml.org,2002:map`,{create:()=>({}),identify:Q7,represent:e=>{let t=new Map;for(let n of Object.keys(e))t.set(n,e[n]);return t},addPair:(e,t,n)=>{let r=t9(t);return r===null?`nested arrays are not supported inside keys`:(r===`__proto__`?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,``)},has:(e,t)=>{let n=t9(t);return n!==null&&Object.prototype.hasOwnProperty.call(e,n)},keys:e=>Object.keys(e),get:(e,t)=>{let n=String(t);return Object.prototype.hasOwnProperty.call(e,n)?e[n]:null}});var hie={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function n9(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`â`)+o,pos:r-t+a.length}}function r9(e,t){return` `.repeat(Math.max(t-e.length,0))+e}function gie(e,t){if(!e.buffer)return null;let n={...hie,...t},r=/\r?\n|\r|\0/g,i=[0],a=[],o,s=-1;for(;o=r.exec(e.buffer);)a.push(o.index),i.push(o.index+o[0].length),e.position<=o.index&&s<0&&(s=i.length-2);s<0&&(s=i.length-1);let c=``,l=Math.min(e.line+n.linesAfter,a.length).toString().length,u=n.maxLength-(n.indent+l+3);for(let t=1;t<=n.linesBefore&&!(s-t<0);t++){let r=n9(e.buffer,i[s-t],a[s-t],e.position-(i[s]-i[s-t]),u);c=`${` `.repeat(n.indent)}${r9((e.line-t+1).toString(),l)} | ${r.str}\n${c}`}let d=n9(e.buffer,i[s],a[s],e.position,u);c+=`${` `.repeat(n.indent)}${r9((e.line+1).toString(),l)} | ${d.str}\n`,c+=`${`-`.repeat(n.indent+l+3+d.pos)}^\n`;for(let t=1;t<=n.linesAfter&&!(s+t>=a.length);t++){let r=n9(e.buffer,i[s+t],a[s+t],e.position-(i[s]-i[s+t]),u);c+=`${` `.repeat(n.indent)}${r9((e.line+t+1).toString(),l)} | ${r.str}\n`}return c.replace(/\n$/,``)}function i9(e,t){let n=``;return e.mark?(e.mark.name&&(n+=`in "${e.mark.name}" `),n+=`(${e.mark.line+1}:${e.mark.column+1})`,!t&&e.mark.snippet&&(n+=`\n\n${e.mark.snippet}`),`${e.reason} ${n}`):e.reason}var _ie=class e extends Error{reason;mark;constructor(e,t){super(),this.name=`YAMLException`,this.reason=e,this.mark=t,this.message=i9(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${i9(this,e)}`}static throwAt(t,n,r,i=``){let a=0,o=0;for(let e=0;e<n;e++){let n=t.charCodeAt(e);n===10?(a++,o=e+1):n===13&&(a++,t.charCodeAt(e+1)===10&&e++,o=e+1)}let s={name:i,buffer:t,position:n,line:a,column:n-o};throw s.snippet=gie(s),new e(r,s)}},a9={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},o9={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},s9={BLOCK:1,FLOW:2},c9={CLIP:1,STRIP:2,KEEP:3};function l9(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return` 283`;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`Â `;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}var vie=Array(256),yie=Array(256);for(let e=0;e<256;e++)vie[e]=+!!l9(e),yie[e]=l9(e);Object.assign(Object.create(null),{"!":`!`,"!!":`tag:yaml.org,2002:`});function u9(e){return encodeURI(e).replace(/!/g,`%21`)}function d9(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${u9(t)}`):t.slice(0,18)===`tag:yaml.org,2002:`?`!!${u9(t.slice(18))}`:`!<${u9(t)}>`}var bie={filename:``,schema:pie,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1},f9=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,p9=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`;RegExp(`^(?:${f9})*$`),RegExp(`^(?:${p9})+$`),RegExp(`^(?:!(?:${f9})*|${p9}(?:${f9})*)$`),{...bie};var m9=Symbol(`INVALID`);function xie(e){let t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(e=>e!==void 0)),n=e.implicitScalarTags,r=e.tags.filter(e=>!(e.nodeKind===`scalar`&&e.implicit)&&!t.has(e)),i=e.tags.filter(e=>t.has(e));return[...n.map(e=>({tag:e,implicitTag:!0})),...r.map(e=>({tag:e,implicitTag:!1})),...i.map(e=>({tag:e,implicitTag:!0}))]}function Sie(e,t){for(let n=0,r=e.representTypes.length;n<r;n+=1){let{tag:r,implicitTag:i}=e.representTypes[n];if(r.identify(t)){let e;return e=r.matchByTagPrefix?r.representTagName(t):r.tagName,{tag:r,tagName:e,implicitTag:i}}}return null}function h9(e,t){if(!e.noRefs&&typeof t==`object`&&t){let n=e.refs.get(t);if(n)return n.anchor===void 0&&(n.anchor=`ref_${e.refCounter++}
283`),{kind:`alias`,anchor:n.anchor}}let n=Sie(e,t);if(!n){if(t===void 0||e.skipInvalid)return m9;throw new _ie(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:r,tagName:i,implicitTag:a}=n,o=a?i:d9(i);if(r.nodeKind===`scalar`)return{kind:`scalar`,tag:o,tagged:!a,style:o9.PLAIN,value:r.represent(t)};if(r.nodeKind===`sequence`){let n=r.represent(t),i={kind:`sequence`,tag:o,tagged:!a,style:s9.BLOCK,items:[]};e.noRefs||e.refs.set(t,i);for(let t=0,r=n.length;t<r;t+=1){let r=h9(e,n[t]);r===m9&&n[t]===void 0&&(r=h9(e,null)),r!==m9&&i.items.push(r)}return i}let s=r.represent(t),c={kind:`mapping`,tag:o,tagged:!a,style:s9.BLOCK,items:[]};e.noRefs||e.refs.set(t,c);for(let[t,n]of s){let r=h9(e,t);if(r===m9)continue;let i=h9(e,n);i!==m9&&c.items.push({key:r,value:i})}return c}function Cie(e,t,n={}){let r=h9({representTypes:xie(t),noRefs:n.noRefs??!1,skipInvalid:n.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:r===m9?null:r,directives:[]}]}var wie=Symbol(`visit:break`),g9=Symbol(`visit:skip`);function _9(e,t,n){let r=t(e,n);if(r===wie)return!0;if(r===g9)return!1;let i=n.depth+1;switch(e.kind){case`sequence`:for(let n of e.items)if(_9(n,t,{depth:i,parent:e,isKey:!1}))return!0;break;case`mapping`:for(let{key:n,value:r}of e.items)if(_9(n,t,{depth:i,parent:e,isKey:!0})||_9(r,t,{depth:i,parent:e,isKey:!1}))return!0}return!1}function v9(e,t){for(let n of e)if(n.contents&&_9(n.contents,t,{depth:0,parent:null,isKey:!1}))return}function y9(e,t){return!!(e&1<<t)}var b9={applyQuoteFlowKeysOption:Tie,doubleQuoteForInvisibles:Eie,doubleQuoteWhitespaceOnly:Die,applyForceQuotesOption:Oie,tryLongOrMultilineAsBlock:kie,quoteInvalidPlain:Aie,fallbackToDoubleQuoted:jie};function x9(e){return e.presenterOptions.quoteStyle===`single`&&y9(e.allowedStylesMask,o9.SINGLE_QUOTED)?o9.SINGLE_QUOTED:o9.DOUBLE_QUOTED}function Tie(e){e.presenterOptions.quoteFlowKeys&&e.isKey&&e.flowOnly&&e.style===o9.PLAIN&&(e.style=o9.DOUBLE_QUOTED)}function Eie(e){e.style===o9.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(e.node.value)&&(e.style=o9.DOUBLE_QUOTED)}function Die(e){e.style===o9.PLAIN&&/^\s+$/.test(e.node.value)&&(e.style=o9.DOUBLE_QUOTED)}function Oie(e){e.presenterOptions.forceQuotes&&(e.isKey||e.style!==o9.PLAIN||e.node.tag===e.presenterOptions.schema.defaultScalarTag.tagName&&(e.style=e.node.value.includes(` 284`)?o9.DOUBLE_QUOTED:x9(e)))}function kie(e){if(e.style!==o9.PLAIN||e.isKey)return;let t=e.node.value,n=t.indexOf(` 285`)!==-1;if(!y9(e.allowedStylesMask,o9.LITERAL_BLOCK)){n&&(e.style=o9.DOUBLE_QUOTED);return}let r=e.presenterOptions.lineWidth;if(r===-1){n&&(e.style=o9.LITERAL_BLOCK);return}let i=Math.max(Math.min(r,40),r-e.shiftOfContent),a=0,o=!1;for(;a<=t.length;){let e=t.length,n=t.indexOf(` 286`,a);n!==-1&&(e=n);let r=t.slice(a,e);if(r.length>i&&r[0]!==` `&&/ [^ \t]/.test(r)&&(o=!0),n===-1)break;a=n+1}o?e.style=o9.FOLDED_BLOCK:n&&(e.style=o9.LITERAL_BLOCK)}function Aie(e){e.style===o9.PLAIN&&!y9(e.allowedStylesMask,o9.PLAIN)&&(e.style=x9(e))}function jie(e){y9(e.allowedStylesMask,e.style)||(e.style=o9.DOUBLE_QUOTED)}function S9(e,t){return e|1<<t}var Mie=`[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]`,Nie=`[\\n\\r]`,Pie=`\\uFEFF`,C9=`[ \\t]`,w9=`(?:(?!(?:${Nie}|${Pie}))${Mie})`,T9=`(?:(?!${C9})${w9})`,E9=`[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]`,D9=`[-?:,\\[\\]{}#&*!|>'"%@\`]`,Fie=`[,\\[\\]{}]`,O9=T9,k9=`(?:(?!${Fie})${T9})`,Iie=`(?:(?:(?!${D9})${T9})|[?:-](?=${O9}))`,Lie=`(?:(?:(?!${D9})${T9})|[?:-](?=${k9}))`,A9=`(?:(?:(?![:#])${O9})|:(?=${O9}))#*`,j9=`(?:(?:(?![:#])${k9})|:(?=${k9}))#*`,M9=`(?:${C9}*${A9})*`,N9=`(?:${C9}*${j9})*`,P9=`${Iie}#*${M9}`,F9=`${Lie}#*${N9}`,Rie=P9,zie=F9,Bie=`\\n+${A9}${M9}`,Vie=`\\n+${j9}${N9}`,Hie=`${P9}(?:${Bie})*`,Uie=`${F9}(?:${Vie})*`,Wie=RegExp(`^(?:${Hie})$`,`u`),Gie=RegExp(`^(?:${Uie})$`,`u`),Kie=RegExp(`^(?:${Rie})$`,`u`),qie=RegExp(`^(?:${zie})$`,`u`),Jie=RegExp(`^(?:${E9})*$`,`u`),Yie=RegExp(`^(?:${E9}|\\n)*$`,`u`),Xie=RegExp(`^(?:${w9}|\\n)*$`,`u`),Zie=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,I9=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function Qie(e){let t=e.node.value;if(t!==``){if(!(e.isKey?e.flowOnly?qie:Kie:e.flowOnly?Gie:Wie).test(t)||e.shiftOfFirstLine===0&&Zie.test(t))return!1;if(e.shiftOfContent===0){let e=t.indexOf(` 287`);if(e!==-1){let n=t.slice(e+1);if(I9.test(n))return!1}}}let n=e.presenterOptions.schema.resolveImplicitScalarTag(t).tag.tagName;return!(!e.node.tagged&&n!==e.node.tag||!e.node.tagged&&t===`=`&&n===e.presenterOptions.schema.defaultScalarTag.tagName)}function $ie(e){let t=e.node.value;if(!(e.isKey?Jie:Yie).test(t)||/[ \t]\n|\n[ \t]/.test(t))return!1;if(!e.isKey&&e.shiftOfContent===0){let e=t.indexOf(` 288`);if(e!==-1&&I9.test(t.slice(e+1)))return!1}return!0}function eae(e){if(e.flowOnly||!Xie.test(e.node.value))return!1;let t=e.shiftOfContent-e.shiftOfParent;return!(t<1||t>9&&/^\n* /.test(e.node.value)||e.shiftOfContent===0&&I9.test(e.node.value))}function tae(e){let t=S9(0,o9.DOUBLE_QUOTED);Qie(e)&&(t=S9(t,o9.PLAIN)),$ie(e)&&(t=S9(t,o9.SINGLE_QUOTED)),eae(e)&&(t=S9(S9(t,o9.LITERAL_BLOCK),o9.FOLDED_BLOCK)),e.allowedStylesMask=t}function nae(e){switch(e.style){case o9.PLAIN:return rae(e);case o9.SINGLE_QUOTED:return iae(e);case o9.LITERAL_BLOCK:return aae(e);case o9.FOLDED_BLOCK:return oae(e);case o9.DOUBLE_QUOTED:return sae(e)}}function rae(e){return L9(e.node.value,e.shiftOfContent)}function iae(e){return`'${L9(e.node.value,e.shiftOfContent).replace(/'/g,`''`)}'`}function aae(e){let t=e.node.value;return`|`+z9(t,e.shiftOfParent,e.shiftOfContent)+B9(R9(t,e.shiftOfContent))}function oae(e){let t=e.node.value,n=e.presenterOptions.lineWidth,r=1/0;return n!==-1&&(r=Math.max(Math.min(n,40),n-e.shiftOfContent)),`>`+z9(t,e.shiftOfParent,e.shiftOfContent)+B9(R9(lae(t,r),e.shiftOfContent))}function sae(e){return`"${fae(e.node.value)}"`}function L9(e,t){let n=e.indexOf(` 289`);if(n===-1)return e;let r=` `.repeat(t),i=e.slice(0,n),a=/(\n+)([^\n]*)/g;a.lastIndex=n;let o;for(;o=a.exec(e);
289){let e=o[1].length,t=o[2];i+=` 290`.repeat(e+1)+r+t}return i}function R9(e,t){let n=` `.repeat(t),r=0,i=``,a=e.length;for(;r<a;){let t,o=e.indexOf(` 291`,r);o===-1?(t=e.slice(r),r=a):(t=e.slice(r,o+1),r=o+1),t.length&&t!==` 292`&&(i+=n),i+=t}return i}function cae(e){return/^\n* /.test(e)}function z9(e,t,n){let r=cae(e)?String(n-t):``,i=e[e.length-1]===` 293`;return`${r}${i&&(e[e.length-2]===` 294`||e===` 295`)?`+`:i?``:`-`}\n`}function B9(e){return e[e.length-1]===` 296`?e.slice(0,-1):e}function V9(e){return e===` `||e===` `}function H9(e,t){if(e===``||V9(e[0]))return e;let n=/ [^ \t]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`\n${e.slice(i,a)}`,i=a+1),o=s;return c+=` 297`,e.length-i>t&&o>i?c+=`${e.slice(i,o)}\n${e.slice(o+1)}`:c+=e.slice(i),c.slice(1)}function lae(e,t){let n=/(\n+)([^\n]*)/g,r=e.indexOf(` 298`);r===-1&&(r=e.length),n.lastIndex=r;let i=H9(e.slice(0,r),t),a=e[0]===` 299`||V9(e[0]),o,s;for(;s=n.exec(e);){let e=s[1],n=s[2];o=n!==``&&V9(n[0]),i+=e+(!a&&!o&&n!==``?` 300`:``)+H9(n,t),a=o}return i}var uae=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function dae(e){switch(e){case`\0`:return`\\0`;case`\x07`:return`\\a`;case`\b`:return`\\b`;case` `:return`\\t`;case` 301`:return`\\n`;case`\v`:return`\\v`;case`\f`:return`\\f`;case`\r`:return`\\r`;case`\x1B`:return`\\e`;case`"`:return`\\"`;case`\\`:return`\\\\`;case`Â `:return`\\N`;case`\xA0`:return`\\_`;case`\u2028`:return`\\L`;case`\u2029`:return`\\P`}let t=e.charCodeAt(0),n=t.toString(16).toUpperCase();return t<=255?`\\x${`0`.repeat(2-n.length)}${n}`:`\\u${`0`.repeat(4-n.length)}${n}`}function fae(e){return e.replace(uae,dae)}var U9=10,W9={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:`single`,forceQuotes:!1,scalarStyleRules:Object.keys(b9).map(e=>Reflect.get(b9,e)),tagBeforeAnchor:!1};function pae(e){return e.tagged?e.tag:d9(e.tag)}function mae(e){let t={...W9,...e};return t.flowSkipColonSpace&&(t.quoteFlowKeys=!0),{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,openEnded:!1}}function G9(e,t){return`\n${` `.repeat(e.indent*t)}`}function hae(e,t,n,r,i,a){return{node:t,parent:n,level:r,isKey:i,flowOnly:a,shiftOfParent:r===0?-1:e.indent*(r-1),shiftOfContent:e.indent*Math.max(1,r),shiftOfFirstLine:r===0?0:e.indent*r,presenterOptions:e,allowedStylesMask:0,style:t.style}}function gae(e,t,n){let r=``;for(let i=0,a=n.items.length;i<a;i+=1){let a=J9(e,t,n.items[i],n,{}).text;i>0&&(r+=`,${e.flowSkipCommaSpace?``:` `}`),r+=a}let i=e.flowBracketPadding&&n.items.length>0?` `:``;return`[${i}${r}${i}]`}function K9(e,t,n,r){let i=``;for(let a=0,o=n.items.length;a<o;a+=1){let o=J9(e,t+1,n.items[a],n,{block:!0,compact:e.seqInlineFirst,isblockseq:!0}).text;(!r||i!==``)&&(i+=G9(e,t)),o===``||U9===o.charCodeAt(0)?i+=`-`:i+=`- `,i+=o}return i}function _ae(e,t,n){let r=``;for(let{key:i,value:a}of n.items){let o=``;r!==``&&(o+=`,${e.flowSkipCommaSpace?``:` `}`);let s=J9(e,t,i,n,{iskey:!0}),c=s.text,l=J9(e,t,a,n,{}).text,u=e.flowSkipColonSpace||l===``?``:` `,d=i.kind===`scalar`&&s.noBody&&(i.tagged||i.anchor!==void 0),f=i.kind===`alias`||d?` `:``;o+=`${c}${f}:${u}${l}`,r+=o}let i=e.flowBracketPadding&&r!==``?` `:``;return`{${i}${r}${i}}`}function vae(e,t,n,r){let i=``;for(let a=0,o=n.items.length;a<o;a+=1){let o=``;(!r||i!==``)&&(o+=G9(e,t));let{key:s,value:c}=n.items[a],l=(s.kind===`mapping`||s.kind===`sequence`)&&s.style===s9.BLOCK&&s.items.length!==0||s.kind===`scalar`&&(s.style===o9.LITERAL_BLOCK||s.style===o9.FOLDED_BLOCK),u=l?J9(e,t+1,s,n,{block:!0,compact:!0,isblockseq:!q9(e,s,t+1)}):J9(e,t+1,s,n,{block:!0,compact:!0,iskey:!0}),d=u.text,f=s.kind===`scalar`&&s.value.indexOf(` 302`)!==-1,p=d.length>1024&&/^[\s\S]{1025}/u.test(d),m=l||f||p;m&&(d&&U9===d.charCodeAt(0)?o+=`?`:o+=`? `),o+=d,m&&(o+=G9(e,t));let h=J9(e,t+1,c,n,{block:!0,compact:m,isblockseq:m&&!q9(e,c,t+1)}).text,g=s.kind===`scalar`&&u.noBody&&(s.tagged||s.anchor!==void 0),_=!m&&(s.kind===`alias`||g)?` `:``;
302h===``||U9===h.charCodeAt(0)?o+=`${_}:`:o+=`${_}: `,o+=h,i+=o}return i}function q9(e,t,n){return t.kind===`alias`||t.tagged||t.anchor!==void 0||e.indent<2&&n>0}function J9(e,t,n,r,i){if(n.kind===`alias`)return e.openEnded=!1,{text:`*${n.anchor}`,noBody:!1};let{block:a=!1,iskey:o=!1,isblockseq:s=!1}=i,c=i.compact??!1,l=n.anchor!==void 0;q9(e,n,t)&&(c=!1);let u,d=n.tagged,f=a&&(n.kind===`mapping`||n.kind===`sequence`)&&n.style===s9.BLOCK&&n.items.length!==0;if(n.kind===`mapping`)u=f?vae(e,t,n,c):_ae(e,t,n);else if(n.kind===`sequence`)u=f?e.seqNoIndent&&!s&&t>0?K9(e,t-1,n,c):K9(e,t,n,c):gae(e,t,n);else{let i=hae(e,n,r,t,o,!a);tae(i);for(let t of e.scalarStyleRules)t(i);u=nae(i),e.openEnded=(i.style===o9.LITERAL_BLOCK||i.style===o9.FOLDED_BLOCK)&&(n.value===` 303`||n.value.endsWith(` 304 305`)),d=n.tagged||u===``&&i.flowOnly&&r?.kind===`sequence`&&!l||i.style!==o9.PLAIN&&n.tag!==e.defaultScalarTagName}(n.kind===`mapping`||n.kind===`sequence`)&&!f&&(e.openEnded=!1),f&&c&&t>0&&e.indent>2&&(u=`${` `.repeat(e.indent-2)}${u}`);let p=u===``,m=u;if(d||l){let t=[],r=d?pae(n):null,i=l?`&${n.anchor}`:null;e.tagBeforeAnchor?(r!==null&&t.push(r),i!==null&&t.push(i)):(i!==null&&t.push(i),r!==null&&t.push(r));let a=u===``||u.charCodeAt(0)===U9?``:` `;m=`${t.join(` `)}${a}${u}`}return{text:m,noBody:p}}function yae(e){return(e.kind===`sequence`||e.kind===`mapping`)&&e.style===s9.BLOCK&&e.items.length!==0&&!e.tagged&&e.anchor===void 0}function bae(e){let t=``;for(let n of e.directives){if(n.kind===`yaml`){t+=`%YAML ${n.version}\n`;continue}let{handle:e,prefix:r}=n;t+=`%TAG ${e} ${r}\n`}return t}function xae(e,t){let n=mae(t),r=``,i=!1;for(let t=0;t<e.length;t+=1){let a=e[t];n.openEnded=!1;let o=bae(a),s=o!==``,c=a.explicitStart||s||t>0&&!i;if(r+=o,a.contents===null)c&&(r+=`--- 306`);else if(c){let e=J9(n,0,a.contents,null,{block:!0,compact:!0}).text,t=e===``?``:s||yae(a.contents)?` 307`:` `;r+=`---${t}${e}\n`}else r+=J9(n,0,a.contents,null,{block:!0,compact:!0}).text+` 308`;i=a.explicitEnd||n.openEnded,i&&(r+=`... 309`)}return r}var Sae={...W9,schema:mie,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:()=>{}};function Cae(e,t){let n=String(e),r=String(t);return n<r?-1:+(n>r)}function wae(e,t={}){let n={...Sae,...t},r=Cie(e,n.schema,{noRefs:n.noRefs,skipInvalid:n.skipInvalid});if(n.flowLevel>=0&&v9(r,(e,t)=>{if(!(t.depth<n.flowLevel))return(e.kind===`sequence`||e.kind===`mapping`)&&(e.style=s9.FLOW),g9}),n.sortKeys){let e=n.sortKeys===!0?Cae:n.sortKeys;v9(r,t=>{t.kind===`mapping`&&t.items.sort((t,n)=>e(t.key.kind===`scalar`?t.key.value:``,n.key.kind===`scalar`?n.key.value:``))})}return n.transform(r),xae(r,{...aie(n,Object.keys(W9)),schema:n.schema})}a9.DOCUMENT,a9.SEQUENCE,a9.MAPPING,a9.SCALAR,a9.ALIAS,a9.POP,o9.PLAIN,o9.SINGLE_QUOTED,o9.DOUBLE_QUOTED,o9.LITERAL_BLOCK,o9.FOLDED_BLOCK,s9.BLOCK,s9.FLOW,c9.CLIP,c9.STRIP,c9.KEEP;var Tae=(e,t,n)=>{try{let r=`data:text/${e.toLowerCase()};chatset=utf-8,${e===Wn.JSON?encodeURIComponent(JSON.stringify(t)):encodeURIComponent(wae(t))}`,i=document.createElement(`a`);i.href=r,i.download=`${n}.${e.toLowerCase()}`,i.click()}catch{}},Y9=({label:e,title:t,format:n,definition:r})=>(0,V.jsx)(`button`,{className:`block w-full text-left px-4 py-1.5`,onClick:()=>Tae(n,r,t||`api`),children:e}),Eae=({title:e,definition:t,disabled:n=!1})=>{let{t:r}=R(),i=(0,B.useMemo)(()=>Gn.map(n=>(0,V.jsx)(Y9,{label:n,format:n,title:e,definition:t},n)),[e,t]);return(0,V.jsx)(F,{menuItems:i,dropdownButton:r(`components.ui.apiViewer.downloadApi.label`),disabled:n})},X9=({lang:e,type:t,productId:n,path:r,orgName:i,SHUBApiDetails:a})=>{let o={lang:e,type:t,...n?{productId:n}:{},...r?{path:r}:{},...i?{orgName:i}:{},...a?.orgName?{owner:a.orgName}:{},...a?.name?{apiName:a.name}:{},...a?.version?{apiVersion:a.version}:{}};return(0,V.jsx)(k,{className:`block w-full text-left px-4 py-1.5`,to:`/services/api/generatecode?${new URLSearchParams(o).toString()}`,reloadDocument:!0,children:e},e)},Z9=function(e){return e.CLIENT=`CLIENT`,e.SERVER=`SERVER`,e.DOCUMENTATION=`DOCUMENTATION`,e}({}),Dae=({productId:e,tableOfContentsId:t,flattened:n,format:r,filename:i})=>`/services/api/published-spec-download?${new URLSearchParams({productId:e,tocId:t,flattened:String(n),format:r,filename:i}).toString()}
309`,Oae=({orgName:e,name:t,version:n,flattened:r,format:i,filename:a})=>`/services/api/registry-spec-download?${new URLSearchParams({orgName:e,name:t,version:n,flattened:String(r),format:i,filename:a}).toString()}`,kae=({generatorLanguages:e,definition:t,title:n,productId:r,path:i,orgName:a,SHUBApiDetails:o,flattenAvailable:s=!1,flattenFlow:c,tableOfContentsId:l,disabled:u=!1})=>{let{t:d}=R(),f=(0,B.useMemo)(()=>{let u=(e,t)=>{let i=`${n}${t?`-flattened`:`-non-flattened`}`;return c===`portal`?Dae({productId:r,tableOfContentsId:l,flattened:t,format:e,filename:i}):Oae({orgName:o.orgName,name:o.name,version:o.version,flattened:t,format:e,filename:i})};return[...e.clients.length>0?[{name:d(`components.ui.apiViewer.generateCode.options.clientSDK`),options:e.clients.map(e=>(0,V.jsx)(X9,{lang:e,type:Z9.CLIENT,productId:r,path:i,orgName:a,SHUBApiDetails:o},e))}]:[],...e.servers.length>0?[{name:d(`components.ui.apiViewer.generateCode.options.serverStub`),options:e.servers.map(e=>(0,V.jsx)(X9,{lang:e,type:Z9.SERVER,productId:r,path:i,orgName:a,SHUBApiDetails:o},e))}]:[],...e.documentations.length>0?[{name:d(`components.ui.apiViewer.generateCode.options.documentation`),options:e.documentations.map(e=>(0,V.jsx)(X9,{lang:e,type:Z9.DOCUMENTATION,productId:r,path:i,orgName:a,SHUBApiDetails:o},e))}]:[],{name:d(`components.ui.apiViewer.downloadApi.label`),options:s?Gn.map(e=>({name:e,options:[(0,V.jsx)(k,{className:`block w-full text-left px-4 py-1.5`,to:u(e,!0),reloadDocument:!0,children:d(`components.ui.apiViewer.downloadApi.flattened`)},`${e}_flattened`),(0,V.jsx)(k,{className:`block w-full text-left px-4 py-1.5`,to:u(e,!1),reloadDocument:!0,children:d(`components.ui.apiViewer.downloadApi.nonFlattened`)},`${e}_nonFlattened`)]})):Gn.map(e=>(0,V.jsx)(Y9,{label:e,format:e,title:n,definition:t},e))}]},[e,t,n,r,i,a,o,s,c,l,d]);return(0,V.jsx)(F,{menuItems:f,dropdownButton:d(`components.ui.apiViewer.generateCode.label`),disabled:u})},Q9=(e,t)=>e===ct.BROWSER?t?`browserWithCors`:`browserWithoutCors`:`proxy`,Aae=({isOpen:e=!1,initialRouting:t=ct.BROWSER,initialCredentialsEnabled:n=!0,onConfirm:r,onClose:i})=>{let{t:a}=R(),o=(0,B.useRef)(null),{flashSuccess:s}=Ye(),[c,l]=(0,B.useState)(t),[u,d]=(0,B.useState)(n),f=(0,B.useMemo)(()=>m({routing:_().default(t),credentialsEnabled:x().default(n)}),[t,n]),p=()=>{i?.()};return(0,B.useEffect)(()=>{o.current?.focus()},[]),(0,V.jsx)(M,{isOpen:e,onClose:p,className:`sp-routing-modal`,translations:{title:a(`components.ui.apiViewer.routing.modal.title`),description:a(`components.ui.apiViewer.routing.modal.subtitle`)},children:(0,V.jsx)(at,{schema:f,mode:`onChange`,onSubmit:e=>{e.preventDefault(),s({message:a(`portalStatusCodes.success.2008`)}),r?.(c,u),p()},children:({Field:e,formState:t,register:n})=>(0,V.jsxs)(`section`,{className:`relative flex flex-col gap-4`,children:[(0,V.jsxs)(L,{className:`flex flex-col gap-4 text-body2`,children:[(0,V.jsx)(e,{name:`routing`,onChange:e=>l(e.target.value),children:()=>(0,V.jsx)(S,{ref:c===ct.BROWSER?o:null,value:ct.BROWSER,"aria-label":a(`components.ui.apiViewer.routing.modal.options.browser.label`),id:`browser`,label:a(`components.ui.apiViewer.routing.modal.options.browser.label`),containerClassName:`sp-routing-modal-radio`,className:`hover:border-(--sp-color-link) checked:border-(--sp-color-link) checked:hover:border-(--sp-color-link) dark:hover:border-(--sp-color-link) dark:checked:border-(--sp-color-link) dark:checked:hover:border-(--sp-color-link)`,innerElementClassName:`bg-(--sp-color-link) peer-hover:bg-(--sp-color-link) dark:bg-(--sp-color-link) dark:peer-hover:bg-(--sp-color-link)`})}),(0,V.jsx)(e,{name:`credentialsEnabled`,className:`ml-5 -mt-1`,children:()=>(0,V.jsx)(C,{...n(`credentialsEnabled`),id:`credentialsEnabled`,name:`credentialsEnabled`,"data-testid":`routing-cors-credentials-toggle`,onChange:e=>d(e),checked:u,infoTooltip:a(`components.ui.apiViewer.routing.modal.options.browser.credentialsEnabled.tooltip`),className:`sp-routing-modal-toggle bg-(--sp-color-link) dark:bg-(--sp-color-link)`,labelClassName:`text-(--sp-color-text-muted)`,tooltipTriggerInactiveClassName:`text-(--sp-color-link) dark:text-(--sp-color-link)`,tooltipTriggerActiveClassName:`text-(--sp-color-text-strong) dark:text-(--sp-color-text-strong)`,children:a(`components.ui.apiViewer.routing.modal.options.browser.credentialsEnabled.label`)})}),(0,V.jsx)(e,{name:`routing`,onChange:e=>l(e.target.value),children:()=>(0,V.jsx)(S,{ref:c===ct.PROXY?o:null,value:ct.PROXY,"aria-label":a(`components.ui.apiViewer.routing.modal.options.proxy.label`),id:`proxy`,label:a(`components.ui.apiViewer.routing.modal.options.proxy.label`),containerClassName:`sp-routing-modal-radio`,className:`hover:border-(--sp-color-link) checked:border-(--sp-color-link) checked:hover:border-(--sp-color-link) dark:hover:border-(--sp-color-link) dark:checked:border-(--sp-color-link) dark:checked:hover:border-(--sp-color-link)`,innerElementClassName:`bg-(--sp-color-link) peer-hover:bg-(--sp-color-link) dark:bg-(--sp-color-link) dark:peer-hover:bg-(--sp-color-link)`})})]}),(0,V.jsxs)(`div`,{className:`flex justify-end gap-2`,children:[(0,V.jsx)(A,{onClick:p,size:`m`,className:`sp-routing-modal-cancel text-(--sp-color-text-muted)! dark:text-(--sp-color-text-muted)! hover:bg-(--sp-color-surface-inverse) dark:hover:bg-(--sp-color-surface-inverse) hover:text-(--sp-color-text-inverse)! dark:hover:text-(--sp-color-text-inverse)!`,children:a(`components.ui.buttons.cancel.label`)}),(0,V.jsx)(I,{disabled:!t.isValid,size:`m`,type:`submit`,className:`sp-routing-modal-confirm border-(--sp-color-accent) dar
309k:border-(--sp-color-accent) text-(--sp-routing-modal-confirm-text-color,var(--neutral-98)) dark:text-(--sp-routing-modal-confirm-text-color,var(--neutral-20)) hover:bg-(--sp-color-surface-inverse) dark:hover:bg-(--sp-color-surface-inverse) hover:border-(--sp-color-surface-inverse) dark:hover:border-(--sp-color-surface-inverse) hover:text-(--sp-color-text-inverse) dark:hover:text-(--sp-color-text-inverse)`,children:a(`components.ui.buttons.confirm.label`)})]})]})})})};function $9(e,t,n){let{serializer:r,parser:i,logger:a,syncData:o}=(0,B.useMemo)(()=>({serializer:JSON.stringify,parser:JSON.parse,logger:console.log,syncData:!0,...n}),[n]),s=(0,B.useRef)(null),[c,l]=(0,B.useState)(()=>{if(typeof window>`u`)return t;try{return s.current=window.localStorage.getItem(e),s.current?i(s.current):t}catch(e){return a(e),t}});return(0,B.useEffect)(()=>{if(typeof window<`u`)try{if(c!==void 0){let t=r(c),n=s.current;s.current=t,window.localStorage.setItem(e,t),window.dispatchEvent(new StorageEvent(`storage`,{storageArea:window.localStorage,url:window.location.href,key:e,newValue:t,oldValue:n}))}else window.localStorage.removeItem(e),window.dispatchEvent(new StorageEvent(`storage`,{storageArea:window.localStorage,url:window.location.href,key:e}))}catch(e){a(e)}},[c]),(0,B.useEffect)(()=>{if(!o||typeof window>`u`)return;let t=t=>{if(t.key===e&&t.storageArea===window.localStorage)try{t.newValue!==s.current&&(s.current=t.newValue,l(t.newValue?i(t.newValue):void 0))}catch(e){a(e)}};return window.addEventListener(`storage`,t),()=>window.removeEventListener(`storage`,t)},[e,o]),[c,l]}var jae=({routingSettings:e})=>{let{t}=R(),n=z(),[{routing:r,credentialsEnabled:i},a]=$9(`portal.proxyOptions`,e||{routing:ct.BROWSER,credentialsEnabled:!0}),[o,s]=(0,B.useState)(!1),[c,l]=(0,B.useState)(Q9(r,i)),u=()=>s(!o),d=(0,B.useCallback)((e,t)=>{l(Q9(e,t)),a({routing:e,credentialsEnabled:t}),s(!1)},[]);return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(D,{content:t(`components.ui.apiViewer.routing.button.tooltip`),trigger:`hover`,defaultComp:(0,V.jsxs)(A,{"data-testid":`routing-button`,size:`s`,icon:(0,V.jsx)(f,{width:12,height:12}),className:`sp-routing-settings-button ml-0 duration-200 transition-color hover:bg-(--sp-color-surface-inverse) dark:hover:bg-(--sp-color-surface-inverse) hover:text-(--sp-color-text-inverse) dark:hover:text-(--sp-color-text-inverse)`,onClick:u,loading:!n,children:[t(`components.ui.apiViewer.routing.button.label`),n?(0,V.jsxs)(V.Fragment,{children:[`: `,t(`components.ui.apiViewer.routing.button.types.${c}`)]}):null]}),placement:`right`}),o?(0,V.jsx)(Aae,{isOpen:o,initialRouting:r,initialCredentialsEnabled:i,onConfirm:d,onClose:u}):null]})},Mae=wt(()=>l(()=>import(`./ElementsRenderer-DfuypRs5.js`).then(e=>({default:e.ElementsRenderer})),__vite__mapDeps([20,1,2,3,7,8,9,10,15,13,12,11,21,22,23,14,24,25,26,27,28,4,29,30,31,16,5,32,33,34,35,36,37,38,39,40,41,42,6,17,43,44,45,46,47,48,49,19])));function Nae({title:e,definition:t,generatorLanguages:n,productId:r,orgName:i,path:a,exploreUrl:s,shubUrl:c,SHUBApiDetails:l,showEditButtons:u=!1,renderer:d,lastModifiedDate:f,routingSettings:p,providerContentSlug:m,isConsumerSide:h,flattenAvailable:_=!1,registryFlattenAvailable:v=!1,tableOfContentsId:y,downloadDisabled:b=!1}){let{hash:x,pathname:S}=o(),C=z(),w=(0,B.useMemo)(()=>S?.toLowerCase()?.includes(`/sp-admin/`),[S]),[T,E]=(0,B.useState)(),D=(0,B.useCallback)(e=>{e!==null&&E(e)},[]),O=t.openapi||t.swagger||``,k=O.startsWith(`3.2`),A=O.startsWith(`3.0`),j=O.startsWith(`2`),M=d===ut.ASYNCAPI,N=nt($e.media.mobile,{initializeWithValue:!1}),P=h&&N,F=_&&(j||A)&&!!r&&!!y,I=F?`portal`:v?`registry`:void 0,L=!M,ee=e&&(M||k),R=e&&!M&&!k&&n,ne=d===lt.TOGGLE&&C,re=!P&&(L||ee||R||A||u)||P&&ne,ie=(0,B.useRef)(null),[ae,oe]=$9(`portal.apiViewer.renderer`,ut.ELEMENTS),se=(0,B.useMemo)(()=>d===lt.TOGGLE?k?ut.SWAGGER_UI:ae:d===lt.SWAGGER_UI?ut.SWAGGER_UI:d===lt.ELEMENTS?ut.ELEMENTS:d??ut.ELEMENTS,[d,k,ae]);return(0,B.useEffect)(()=>{ie.current&&(se===ut.ELEMENTS?ie.current.scrollTo(0,0):!h&&x===`#top`&&ie.current.scrollTo({top:0,behavior:`smooth`}))},[x,se,h]),(0,V.jsxs)(`div`,{id:`top`,ref:D,className:te(`flex flex-col sp-api-viewer`,!h&&`h-full`),children:[P&&(0,V.jsx)(Rt,{},`breadcrumb-${S}`),re&&(0,V.jsxs)(`div`,{"data-testid":`api-viewer-toolbar`,className:te(`sp-api-viewer-toolbar flex top-0 justify-between w-full gap-1 px-6 md:px-9 xl:px-6 h-20 border-b border-b-(--sp-color-border-subtle) bg-(--sp-color-surface)`,h&&!P&&`sticky z-40 border-l border-l-[rgba(128,128,128,0.35)]`),children:[!P&&(0,V.jsx)(`div`,{className:`flex items-center gap-2`,children:L?(0,V.jsx)(jae,{routingSettings:p}):null}),(0,V.jsxs)(`div`,{className:`flex items-center gap-2`,children:[ne&&(0,V.jsx)(`div`,{className:te(!A&&`mr-2`),children:(0,V.jsx)(cre,{onToggle:e=>{k||oe(e?ut.SWAGGER_UI:ut.ELEMENTS)},renderer:se,isOas3_2:k})}),P?null:(0,V.jsxs)(V.Fragment,{children:[A?(0,V.jsx)(sre,{exploreUrl:s,SHUBApiDetails:l}):null,R?(0,V.jsx)(`div`,{className:`sp-api-viewer-codegen-button`,children:(0,V.jsx)(kae,{definition:t,generatorLanguages:n,title:e,productId:r,orgName:i,path:a,SHUBApiDetails:l,flattenAvailable:F||v,flattenFlow:I,tableOfContentsId:y,disabled:b})}):null,ee?(0,V.jsx)(Eae,{title:e,definition:t,disabled:b}):null,u?(0,V.jsx)(pt,{contentUrl:m,shubUrl:c}):null]})]})]}),(0,V.jsxs)(`div`,{className:te(`sp-api-viewer-content w-full bg-(--sp-color-surface)`,!h&&`overflow-auto`,!h&&(re?`h-[calc(100%_-_80px)]`:`h-full`),h&&`2xl:max-w-[calc(1300px+3rem)] mx-auto`),ref:ie,children:[h&&!N&&(0,V.jsx)(`div`,{className:`px-5 pt-6`,children:(0,V.jsx)(Rt,{},`breadcrumb-${S}`)}),(0,V.jsx)(B.Suspense,{fallback:(0,V.jsx)(`div`,{className:`flex items-center justify-center w-full h-full`,children:(0,V.jsx)(g,{})}),children:(0,V.jsx)(ore,{activeRenderer:se,definition:t,hash:x,ref:T,isAdmin:w,pathname:S,isConsumerSide:h,lastModifiedDate:f,exploreUrl:s,SHUBApiDetails:l,oasVersion:O,ElementsRenderer:Mae})})]})]})}export{ar as $,Cl as A,Ir as B,ym as C,Al as D,Ml as E,Kr as F,Er as G,Pr as H,Gr as I,br as J,Cr as K,Hr as L,vl as M,Jr as N,Tl as O,qr as P,lr as Q,Vr as R,bm as S,cp as T,Nr as U,Fr as V,jr as W,fr as X,_r as Y,dr as Z,Nm as _,$B as a,nee as at,Am as b,WB as c,Nt as ct,vC as d,ir as et,sh as f,Fm as g,Vm as h,tV as i,Wn as it,Sl as j,wl as k,gB as l,At as lt,Hm as m,$9 as n,er as nt,XB as o,jn as ot,nh as p,xr as q,hV as r,Zn as rt,KB as s,Mn as st,Nae as t,rr as tt,hB as u,Mm as v,up as w,xm as x,jm as y,Lr as z}; 310//# sourceMappingURL=ApiViewer-CQL5muPd.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.