codegen-openapi-ts 0.8.0-alpha.7 → 0.8.0-alpha.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -54,14 +54,8 @@ export declare type BaseServiceConfig = {
|
|
|
54
54
|
source: string;
|
|
55
55
|
from: 'swagger_1' | 'swagger_2' | 'openapi_3' | 'api_blueprint' | 'io_docs' | 'google' | 'raml' | 'wadl';
|
|
56
56
|
output: string;
|
|
57
|
-
proxyConfig?:
|
|
58
|
-
|
|
59
|
-
with: string;
|
|
60
|
-
};
|
|
61
|
-
modelNameMapping?: {
|
|
62
|
-
fromRegExp: RegExp;
|
|
63
|
-
newModelName: string;
|
|
64
|
-
}[];
|
|
57
|
+
proxyConfig?: (path: string) => string;
|
|
58
|
+
modelNameMapping?: (path: string) => string;
|
|
65
59
|
};
|
|
66
60
|
export declare type ServiceConfigDefault = BaseServiceConfig & {
|
|
67
61
|
urlMethodMapping: undefined;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),n=require("os"),t=require("camelcase"),r=require("json-schema-ref-parser"),a=require("handlebars/runtime"),o=require("path"),l=require("mkdirp"),i=require("rimraf"),s=require("util");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var c,m=u(e),d=u(t),f=u(r),h=p(a),y=u(l),v=u(i);function g(e){return null==e?void 0:e.replace(/\\/g,"\\\\")}function P(e,n){const t=n["x-enum-varnames"],r=n["x-enum-descriptions"];return e.map(((e,n)=>({name:(null==t?void 0:t[n])||e.name,description:(null==r?void 0:r[n])||e.description,value:e.value,type:e.type})))}function b(e){return e?e.replace(/(\*\/)/g,"*_/").replace(/\r?\n(.*)/g,((e,t)=>`${n.EOL} * ${t.trim()}`)):null}function O(e){return null!=e&&""!==e}function x(e){return Array.isArray(e)?e.filter(((e,n,t)=>t.indexOf(e)===n)).filter(O).map((e=>"number"==typeof e?{name:`'_${e}'`,value:String(e),type:"number",description:null}:{name:String(e).replace(/\W+/g,"_").replace(/^(\d+)/g,"_$1").replace(/([a-z])([A-Z]+)/g,"$1_$2").toUpperCase(),value:`'${e}'`,type:"string",description:null})):[]}function k(e){if(/^(\w+=[0-9]+)/g.test(e)){const n=e.match(/(\w+=[0-9]+,?)/g);if(n){const e=[];return n.forEach((n=>{const t=n.split("=")[0],r=parseInt(n.split("=")[1].replace(/[^0-9]/g,""));t&&Number.isInteger(r)&&e.push({name:t.replace(/\W+/g,"_").replace(/^(\d+)/g,"_$1").replace(/([a-z])([A-Z]+)/g,"$1_$2").toUpperCase(),value:String(r),type:"number",description:null})})),e.filter(((e,n,t)=>t.map((e=>e.name)).indexOf(e.name)===n))}}return[]}function R(e){if(e){if(!/^[a-zA-Z_$][\w$]+$/g.test(e))return`'${e}'`}return e}exports.HttpClient=void 0,(c=exports.HttpClient||(exports.HttpClient={})).FETCH="fetch",c.XHR="xhr",c.NODE="node",c.AXIOS="axios";const w=new Map([["File","binary"],["file","binary"],["any","any"],["object","any"],["array","any[]"],["boolean","boolean"],["byte","number"],["int","number"],["integer","number"],["float","number"],["double","number"],["short","number"],["long","number"],["number","number"],["char","string"],["date","string"],["date-time","string"],["password","string"],["string","string"],["void","void"],["null","null"]]);function q(e){return e.replace(/^[^a-zA-Z_$]+/g,"").replace(/[^\w$]+/g,"_")}function C(e="any",n){const t={type:"any",base:"any",template:null,imports:[],isNullable:!1},r=function(e,n){return"binary"===n?"binary":w.get(e)}(e,n);if(r)return t.type=r,t.base=r,t;const a=decodeURIComponent(e.trim().replace(/^#\/definitions\//,"").replace(/^#\/parameters\//,"").replace(/^#\/responses\//,"").replace(/^#\/securityDefinitions\//,""));if(/\[.*\]$/g.test(a)){const e=a.match(/(.*?)\[(.*)\]$/);if(null==e?void 0:e.length){const n=C(q(e[1])),r=C(q(e[2]));return"any[]"===n.type?(t.type=`${r.type}[]`,t.base=r.type,n.imports=[]):r.type?(t.type=`${n.type}<${r.type}>`,t.base=n.type,t.template=r.type):(t.type=n.type,t.base=n.type,t.template=n.type),t.imports.push(...n.imports),t.imports.push(...r.imports),t}}if(a){const e=q(a);return t.type=e,t.base=e,t.imports.push(e),t}return t}function j(e,n,t){var r;const a=[];for(const o in n.properties)if(n.properties.hasOwnProperty(o)){const l=n.properties[o],i=!!(null===(r=n.required)||void 0===r?void 0:r.includes(o));if(l.$ref){const e=C(l.$ref);a.push({name:R(o),export:"reference",type:e.type,base:e.base,template:e.template,link:null,description:b(l.description),isDefinition:!1,isReadOnly:!0===l.readOnly,isRequired:i,isNullable:!0===l["x-nullable"],format:l.format,maximum:l.maximum,exclusiveMaximum:l.exclusiveMaximum,minimum:l.minimum,exclusiveMinimum:l.exclusiveMinimum,multipleOf:l.multipleOf,maxLength:l.maxLength,minLength:l.minLength,maxItems:l.maxItems,minItems:l.minItems,uniqueItems:l.uniqueItems,maxProperties:l.maxProperties,minProperties:l.minProperties,pattern:g(l.pattern),imports:e.imports,enum:[],enums:[],properties:[]})}else{const n=t(e,l);a.push({name:R(o),export:n.export,type:n.type,base:n.base,template:n.template,link:n.link,description:b(l.description),isDefinition:!1,isReadOnly:!0===l.readOnly,isRequired:i,isNullable:!0===l["x-nullable"],format:l.format,maximum:l.maximum,exclusiveMaximum:l.exclusiveMaximum,minimum:l.minimum,exclusiveMinimum:l.exclusiveMinimum,multipleOf:l.multipleOf,maxLength:l.maxLength,minLength:l.minLength,maxItems:l.maxItems,minItems:l.minItems,uniqueItems:l.uniqueItems,maxProperties:l.maxProperties,minProperties:l.minProperties,pattern:g(l.pattern),imports:n.imports,enum:n.enum,enums:n.enums,properties:n.properties})}}return a}const A=/~1/g,D=/~0/g;function T(e,n){if(n.$ref){const t=n.$ref.replace(/^#/g,"").split("/").filter((e=>e));let r=e;return t.forEach((e=>{const t=decodeURIComponent(e.replace(A,"/").replace(D,"~"));if(!r.hasOwnProperty(t))throw new Error(`Could not find reference: "${n.$ref}"`);r=r[t]})),r}return n}function E(e,n,t,r,a){const o={type:r,imports:[],enums:[],properties:[]},l=[];if(t.map((n=>a(e,n))).filter((e=>{const n=e.properties.length,t=e.enums.length;return!("any"===e.type&&!n&&!t)})).forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),o.properties.push(e)})),n.required){const r=function(e,n,t,r){return t.reduce(((n,t)=>{if(t.$ref){const a=T(e,t);return[...n,...r(e,a).properties]}return[...n,...r(e,t).properties]}),[]).filter((e=>!e.isRequired&&n.includes(e.name))).map((e=>Object.assign(Object.assign({},e),{isRequired:!0})))}(e,n.required,t,a);r.forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums)})),l.push(...r)}if(n.properties){const t=j(e,n,a);t.forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),"enum"===e.export&&o.enums.push(e)})),l.push(...t)}return l.length&&o.properties.push({name:"properties",export:"interface",type:"any",base:"any",template:null,link:null,description:"",isDefinition:!1,isReadOnly:!1,isNullable:!1,isRequired:!1,imports:[],enum:[],enums:[],properties:l}),o}function I(e,n,t=!1,r=""){var a;const o={name:r,export:"interface",type:"any",base:"any",template:null,link:null,description:b(n.description),isDefinition:t,isReadOnly:!0===n.readOnly,isNullable:!0===n["x-nullable"],isRequired:!1,format:n.format,maximum:n.maximum,exclusiveMaximum:n.exclusiveMaximum,minimum:n.minimum,exclusiveMinimum:n.exclusiveMinimum,multipleOf:n.multipleOf,maxLength:n.maxLength,minLength:n.minLength,maxItems:n.maxItems,minItems:n.minItems,uniqueItems:n.uniqueItems,maxProperties:n.maxProperties,minProperties:n.minProperties,pattern:g(n.pattern),imports:[],enum:[],enums:[],properties:[]};if(n.$ref){const e=C(n.$ref);return o.export="reference",o.type=e.type,o.base=e.base,o.template=e.template,o.imports.push(...e.imports),o}if(n.enum&&"boolean"!==n.type){const e=P(x(n.enum),n);if(e.length)return o.export="enum",o.type="string",o.base="string",o.enum.push(...e),o}if(("int"===n.type||"integer"===n.type)&&n.description){const e=k(n.description);if(e.length)return o.export="enum",o.type="number",o.base="number",o.enum.push(...e),o}if("array"===n.type&&n.items){if(n.items.$ref){const e=C(n.items.$ref);return o.export="array",o.type=e.type,o.base=e.base,o.template=e.template,o.imports.push(...e.imports),o}{const t=I(e,n.items);return o.export="array",o.type=t.type,o.base=t.base,o.template=t.template,o.link=t,o.imports.push(...t.imports),o}}if("object"===n.type&&"object"==typeof n.additionalProperties){if(n.additionalProperties.$ref){const e=C(n.additionalProperties.$ref);return o.export="dictionary",o.type=e.type,o.base=e.base,o.template=e.template,o.imports.push(...e.imports),o}{const t=I(e,n.additionalProperties);return o.export="dictionary",o.type=t.type,o.base=t.base,o.template=t.template,o.link=t,o.imports.push(...t.imports),o}}if(null===(a=n.allOf)||void 0===a?void 0:a.length){const t=E(e,n,n.allOf,"all-of",I);return o.export=t.type,o.imports.push(...t.imports),o.properties.push(...t.properties),o.enums.push(...t.enums),o}if("object"===n.type){if(o.export="interface",o.type="any",o.base="any",n.properties){j(e,n,I).forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),o.properties.push(e),"enum"===e.export&&o.enums.push(e)}))}return o}if(n.type){const e=C(n.type,n.format);return o.export="generic",o.type=e.type,o.base=e.base,o.template=e.template,o.imports.push(...e.imports),o}return o}function H(e,n,t){return t.indexOf(e)===n}function S(e,n){var t;if(void 0===e.default)return;if(null===e.default)return"null";switch(e.type||typeof e.default){case"int":case"integer":case"number":return"enum"===n.export&&(null===(t=n.enum)||void 0===t?void 0:t[e.default])?n.enum[e.default].value:e.default;case"boolean":return JSON.stringify(e.default);case"string":return`'${e.default}'`;case"object":try{return JSON.stringify(e.default,null,4)}catch(e){}}}const $=/^(arguments|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|eval|export|extends|false|finally|for|function|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)$/g;function N(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n).replace($,"_$1")}function B(e,n){const t={imports:[],parameters:[],parametersPath:[],parametersQuery:[],parametersForm:[],parametersCookie:[],parametersHeader:[],parametersBody:null};return n.forEach((n=>{const r=T(e,n),a=function(e,n){var t;const r={in:n.in,prop:n.name,export:"interface",name:N(n.name),type:"any",base:"any",template:null,link:null,description:b(n.description),isDefinition:!1,isReadOnly:!1,isRequired:!0===n.required,isNullable:!0===n["x-nullable"],format:n.format,maximum:n.maximum,exclusiveMaximum:n.exclusiveMaximum,minimum:n.minimum,exclusiveMinimum:n.exclusiveMinimum,multipleOf:n.multipleOf,maxLength:n.maxLength,minLength:n.minLength,maxItems:n.maxItems,minItems:n.minItems,uniqueItems:n.uniqueItems,pattern:g(n.pattern),imports:[],enum:[],enums:[],properties:[],mediaType:null};if(n.$ref){const e=C(n.$ref);return r.export="reference",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}if(n.enum){const e=P(x(n.enum),n);if(e.length)return r.export="enum",r.type="string",r.base="string",r.enum.push(...e),r.default=S(n,r),r}if(("int"===n.type||"integer"===n.type)&&n.description){const e=k(n.description);if(e.length)return r.export="enum",r.type="number",r.base="number",r.enum.push(...e),r.default=S(n,r),r}if("array"===n.type&&n.items){const e=C(n.items.type,n.items.format);return r.export="array",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}if("object"===n.type&&n.items){const e=C(n.items.type,n.items.format);return r.export="dictionary",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}let a=n.schema;if(a){if((null===(t=a.$ref)||void 0===t?void 0:t.startsWith("#/parameters/"))&&(a=T(e,a)),a.$ref){const e=C(a.$ref);return r.export="reference",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}{const t=I(e,a);return r.export=t.export,r.type=t.type,r.base=t.base,r.template=t.template,r.link=t.link,r.imports.push(...t.imports),r.enum.push(...t.enum),r.enums.push(...t.enums),r.properties.push(...t.properties),r.default=S(n,r),r}}if(n.type){const e=C(n.type,n.format);return r.export="generic",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}return r}(e,r);if("api-version"!==a.prop)switch(a.in){case"path":t.parametersPath.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"query":t.parametersQuery.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"header":t.parametersHeader.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"formData":t.parametersForm.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"body":t.parametersBody=a,t.parameters.push(a),t.imports.push(...a.imports)}})),t}function L(e,n,t){var r;const a={in:"response",name:"",code:t,description:b(n.description),export:"generic",type:"any",base:"any",template:null,link:null,isDefinition:!1,isReadOnly:!1,isRequired:!1,isNullable:!1,imports:[],enum:[],enums:[],properties:[]};let o=n.schema;if(o){if((null===(r=o.$ref)||void 0===r?void 0:r.startsWith("#/responses/"))&&(o=T(e,o)),o.$ref){const e=C(o.$ref);return a.export="reference",a.type=e.type,a.base=e.base,a.template=e.template,a.imports.push(...e.imports),a}{const n=I(e,o);return a.export=n.export,a.type=n.type,a.base=n.base,a.template=n.template,a.link=n.link,a.isReadOnly=n.isReadOnly,a.isRequired=n.isRequired,a.isNullable=n.isNullable,a.format=n.format,a.maximum=n.maximum,a.exclusiveMaximum=n.exclusiveMaximum,a.minimum=n.minimum,a.exclusiveMinimum=n.exclusiveMinimum,a.multipleOf=n.multipleOf,a.maxLength=n.maxLength,a.minLength=n.minLength,a.maxItems=n.maxItems,a.minItems=n.minItems,a.uniqueItems=n.uniqueItems,a.maxProperties=n.maxProperties,a.minProperties=n.minProperties,a.pattern=g(n.pattern),a.imports.push(...n.imports),a.enum.push(...n.enum),a.enums.push(...n.enums),a.properties.push(...n.properties),a}}if(n.headers)for(const e in n.headers)if(n.headers.hasOwnProperty(e))return a.in="header",a.name=e,a.type="string",a.base="string",a;return a}function M(e){if("default"===e)return 200;if(/[0-9]+/g.test(e)){const n=parseInt(e);if(Number.isInteger(n))return Math.abs(n)}return null}function U(e,n){const t=e.type===n.type&&e.base===n.base&&e.template===n.template;return t&&e.link&&n.link?U(e.link,n.link):t}function F(e){const n=[];return e.forEach((e=>{const{code:t}=e;t&&204!==t&&t>=200&&t<300&&n.push(e)})),n.length||n.push({in:"response",name:"",code:200,description:"",export:"generic",type:"void",base:"void",template:null,link:null,isDefinition:!1,isReadOnly:!1,isRequired:!1,isNullable:!1,imports:[],enum:[],enums:[],properties:[]}),n.filter(((e,n,t)=>t.findIndex((n=>U(n,e)))===n))}function W(e,n){const t=e.isRequired&&void 0===e.default,r=n.isRequired&&void 0===n.default;return t&&!r?-1:r&&!t?1:0}function _(e,n,t,r,a,o){const l=function(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n,{pascalCase:!0})}(r),i=`${t}${l}`,s=function(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n)}(a.operationId||i),u=function(e){return e.replace(/\{(.*?)\}/g,((e,n)=>`\${${N(n)}}`)).replace("${apiVersion}","${OpenAPI.VERSION}")}(n),p={service:l,name:s,summary:b(a.summary),description:b(a.description),deprecated:!0===a.deprecated,method:t.toUpperCase(),path:u,parameters:[...o.parameters],parametersPath:[...o.parametersPath],parametersQuery:[...o.parametersQuery],parametersForm:[...o.parametersForm],parametersHeader:[...o.parametersHeader],parametersCookie:[...o.parametersCookie],parametersBody:o.parametersBody,imports:[],errors:[],results:[],responseHeader:null};if(a.parameters){const n=B(e,a.parameters);p.imports.push(...n.imports),p.parameters.push(...n.parameters),p.parametersPath.push(...n.parametersPath),p.parametersQuery.push(...n.parametersQuery),p.parametersForm.push(...n.parametersForm),p.parametersHeader.push(...n.parametersHeader),p.parametersCookie.push(...n.parametersCookie),p.parametersBody=n.parametersBody}if(a.responses){const n=function(e,n){const t=[];for(const r in n)if(n.hasOwnProperty(r)){const a=T(e,n[r]),o=M(r);if(o){const n=L(e,a,o);t.push(n)}}return t.sort(((e,n)=>e.code<n.code?-1:e.code>n.code?1:0))}(e,a.responses),t=F(n);p.errors=function(e){return e.filter((e=>e.code>=300&&e.description)).map((e=>{return{code:e.code,description:(n=e.description,n.replace(/([^\\])`/g,"$1\\`").replace(/(\*\/)/g,"*_/"))};var n}))}(n),p.responseHeader=function(e){const n=e.find((e=>"header"===e.in));return n?n.name:null}(t),t.forEach((e=>{p.results.push(e),p.imports.push(...e.imports)}))}return p.parameters=p.parameters.sort(W),p}function V(e){const n=function(e="1.0"){return String(e).replace(/^v/gi,"")}(e.info.version),t=function(e){var n;const t=(null===(n=e.schemes)||void 0===n?void 0:n[0])||"http",r=e.host,a=e.basePath||"";return(r?`${t}://${r}${a}`:a).replace(/\/$/g,"")}(e),r=function(e){const n=[];for(const t in e.definitions)if(e.definitions.hasOwnProperty(t)){const r=I(e,e.definitions[t],!0,C(t).base);n.push(r)}return n}(e),a=function(e){var n;const t=new Map;for(const r in e.paths)if(e.paths.hasOwnProperty(r)){const a=e.paths[r],o=B(e,a.parameters||[]);for(const l in a)if(a.hasOwnProperty(l))switch(l){case"get":case"put":case"post":case"delete":case"options":case"head":case"patch":const i=a[l];((null===(n=i.tags)||void 0===n?void 0:n.filter(H))||["Service"]).forEach((n=>{const a=_(e,r,l,n,i,o),s=t.get(a.service)||{name:a.service,operations:[],imports:[]};s.operations.push(a),s.imports.push(...a.imports),t.set(a.service,s)}))}}return Array.from(t.values())}(e);return{version:n,server:t,models:r,services:a}}function z(e){return e?e.replace(/(\*\/)/g,"*_/").replace(/\r?\n(.*)/g,((e,t)=>`${n.EOL} * ${t.trim()}`)):null}function Q(e){if(e){if(!/^[a-zA-Z_$][\w$]+$/g.test(e))return`'${e}'`}return e}const J=new Map([["File","binary"],["file","binary"],["any","any"],["object","any"],["array","any[]"],["boolean","boolean"],["byte","number"],["int","number"],["integer","number"],["float","number"],["double","number"],["short","number"],["long","number"],["number","number"],["char","string"],["date","string"],["date-time","string"],["password","string"],["string","string"],["void","void"],["null","null"]]);function Z(e,n){return"binary"===n?"binary":J.get(e)}function G(e){return e.replace(/^[^a-zA-Z_$]+/g,"").replace(/[^\w$]+/g,"_")}function X(e="any",n){const t={type:"any",base:"any",template:null,imports:[],isNullable:!1};if(Array.isArray(e)){const r=e.filter((e=>"null"!==e)).map((e=>Z(e,n))).filter(O).join(" | ");return t.type=r,t.base=r,t.isNullable=e.includes("null"),t}const r=Z(e,n);if(r)return t.type=r,t.base=r,t;const a=decodeURIComponent(e.trim().replace(/^#\/components\/schemas\//,"").replace(/^#\/components\/responses\//,"").replace(/^#\/components\/parameters\//,"").replace(/^#\/components\/examples\//,"").replace(/^#\/components\/requestBodies\//,"").replace(/^#\/components\/headers\//,"").replace(/^#\/components\/securitySchemes\//,"").replace(/^#\/components\/links\//,"").replace(/^#\/components\/callbacks\//,""));if(/\[.*\]$/g.test(a)){const e=a.match(/(.*?)\[(.*)\]$/);if(null==e?void 0:e.length){const n=X(G(e[1])),r=X(G(e[2]));return"any[]"===n.type?(t.type=`${r.type}[]`,t.base=`${r.type}`,n.imports=[]):r.type?(t.type=`${n.type}<${r.type}>`,t.base=n.type,t.template=r.type):(t.type=n.type,t.base=n.type,t.template=n.type),t.imports.push(...n.imports),t.imports.push(...r.imports),t}}if(a){const e=G(a);return t.type=e,t.base=e,t.imports.push(e),t}return t}function K(e,n,t){var r;const a=[];for(const o in n.properties)if(n.properties.hasOwnProperty(o)){const l=n.properties[o],i=!!(null===(r=n.required)||void 0===r?void 0:r.includes(o));if(l.$ref){const e=X(l.$ref);a.push({name:Q(o),export:"reference",type:e.type,base:e.base,template:e.template,link:null,description:z(l.description),isDefinition:!1,isReadOnly:!0===l.readOnly,isRequired:i,isNullable:e.isNullable||!0===l.nullable,format:l.format,maximum:l.maximum,exclusiveMaximum:l.exclusiveMaximum,minimum:l.minimum,exclusiveMinimum:l.exclusiveMinimum,multipleOf:l.multipleOf,maxLength:l.maxLength,minLength:l.minLength,maxItems:l.maxItems,minItems:l.minItems,uniqueItems:l.uniqueItems,maxProperties:l.maxProperties,minProperties:l.minProperties,pattern:g(l.pattern),imports:e.imports,enum:[],enums:[],properties:[]})}else{const n=t(e,l);a.push({name:Q(o),export:n.export,type:n.type,base:n.base,template:n.template,link:n.link,description:z(l.description),isDefinition:!1,isReadOnly:!0===l.readOnly,isRequired:i,isNullable:n.isNullable||!0===l.nullable,format:l.format,maximum:l.maximum,exclusiveMaximum:l.exclusiveMaximum,minimum:l.minimum,exclusiveMinimum:l.exclusiveMinimum,multipleOf:l.multipleOf,maxLength:l.maxLength,minLength:l.minLength,maxItems:l.maxItems,minItems:l.minItems,uniqueItems:l.uniqueItems,maxProperties:l.maxProperties,minProperties:l.minProperties,pattern:g(l.pattern),imports:n.imports,enum:n.enum,enums:n.enums,properties:n.properties})}}return a}const Y=/~1/g,ee=/~0/g;function ne(e,n){if(n.$ref){const t=n.$ref.replace(/^#/g,"").split("/").filter((e=>e));let r=e;return t.forEach((e=>{const t=decodeURIComponent(e.replace(Y,"/").replace(ee,"~"));if(!r.hasOwnProperty(t))throw new Error(`Could not find reference: "${n.$ref}"`);r=r[t]})),r}return n}function te(e,n,t,r,a){const o={type:r,imports:[],enums:[],properties:[]},l=[];if(t.map((n=>a(e,n))).filter((e=>{const n=e.properties.length,t=e.enums.length;return!("any"===e.type&&!n&&!t)})).forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),o.properties.push(e)})),n.required){const r=function(e,n,t,r){return t.reduce(((n,t)=>{if(t.$ref){const a=ne(e,t);return[...n,...r(e,a).properties]}return[...n,...r(e,t).properties]}),[]).filter((e=>!e.isRequired&&n.includes(e.name))).map((e=>Object.assign(Object.assign({},e),{isRequired:!0})))}(e,n.required,t,a);r.forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums)})),l.push(...r)}if(n.properties){const t=K(e,n,a);t.forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),"enum"===e.export&&o.enums.push(e)})),l.push(...t)}return l.length&&o.properties.push({name:"properties",export:"interface",type:"any",base:"any",template:null,link:null,description:"",isDefinition:!1,isReadOnly:!1,isNullable:!1,isRequired:!1,imports:[],enum:[],enums:[],properties:l}),o}function re(e,n){var t;if(void 0===e.default)return;if(null===e.default)return"null";switch(e.type||typeof e.default){case"int":case"integer":case"number":return"enum"===(null==n?void 0:n.export)&&(null===(t=n.enum)||void 0===t?void 0:t[e.default])?n.enum[e.default].value:e.default;case"boolean":return JSON.stringify(e.default);case"string":return`'${e.default}'`;case"object":try{return JSON.stringify(e.default,null,4)}catch(e){}}}function ae(e,n,t=!1,r=""){var a,o,l;const i={name:r,export:"interface",type:"any",base:"any",template:null,link:null,description:z(n.description),isDefinition:t,isReadOnly:!0===n.readOnly,isNullable:!0===n.nullable,isRequired:!1,format:n.format,maximum:n.maximum,exclusiveMaximum:n.exclusiveMaximum,minimum:n.minimum,exclusiveMinimum:n.exclusiveMinimum,multipleOf:n.multipleOf,maxLength:n.maxLength,minLength:n.minLength,maxItems:n.maxItems,minItems:n.minItems,uniqueItems:n.uniqueItems,maxProperties:n.maxProperties,minProperties:n.minProperties,pattern:g(n.pattern),imports:[],enum:[],enums:[],properties:[]};if(n.$ref){const e=X(n.$ref);return i.export="reference",i.type=e.type,i.base=e.base,i.template=e.template,i.imports.push(...e.imports),i.default=re(n,i),i}if(n.enum&&"boolean"!==n.type){const e=function(e,n){const t=n["x-enum-varnames"],r=n["x-enum-descriptions"];return e.map(((e,n)=>({name:(null==t?void 0:t[n])||e.name,description:(null==r?void 0:r[n])||e.description,value:e.value,type:e.type})))}((s=n.enum,Array.isArray(s)?s.filter(((e,n,t)=>t.indexOf(e)===n)).filter(O).map((e=>"number"==typeof e?{name:`'_${e}'`,value:String(e),type:"number",description:null}:{name:String(e).replace(/\W+/g,"_").replace(/^(\d+)/g,"_$1").replace(/([a-z])([A-Z]+)/g,"$1_$2").toUpperCase(),value:`'${e}'`,type:"string",description:null})):[]),n);if(e.length)return i.export="enum",i.type="string",i.base="string",i.enum.push(...e),i.default=re(n,i),i}var s;if(("int"===n.type||"integer"===n.type)&&n.description){const e=function(e){if(/^(\w+=[0-9]+)/g.test(e)){const n=e.match(/(\w+=[0-9]+,?)/g);if(n){const e=[];return n.forEach((n=>{const t=n.split("=")[0],r=parseInt(n.split("=")[1].replace(/[^0-9]/g,""));t&&Number.isInteger(r)&&e.push({name:t.replace(/\W+/g,"_").replace(/^(\d+)/g,"_$1").replace(/([a-z])([A-Z]+)/g,"$1_$2").toUpperCase(),value:String(r),type:"number",description:null})})),e.filter(((e,n,t)=>t.map((e=>e.name)).indexOf(e.name)===n))}}return[]}(n.description);if(e.length)return i.export="enum",i.type="number",i.base="number",i.enum.push(...e),i.default=re(n,i),i}if("array"===n.type&&n.items){if(n.items.$ref){const e=X(n.items.$ref);return i.export="array",i.type=e.type,i.base=e.base,i.template=e.template,i.imports.push(...e.imports),i.default=re(n,i),i}{const t=ae(e,n.items);return i.export="array",i.type=t.type,i.base=t.base,i.template=t.template,i.link=t,i.imports.push(...t.imports),i.default=re(n,i),i}}if("object"===n.type&&"object"==typeof n.additionalProperties){if(n.additionalProperties.$ref){const e=X(n.additionalProperties.$ref);return i.export="dictionary",i.type=e.type,i.base=e.base,i.template=e.template,i.imports.push(...e.imports),i.default=re(n,i),i}{const t=ae(e,n.additionalProperties);return i.export="dictionary",i.type=t.type,i.base=t.base,i.template=t.template,i.link=t,i.imports.push(...t.imports),i.default=re(n,i),i}}if(null===(a=n.oneOf)||void 0===a?void 0:a.length){const t=te(e,n,n.oneOf,"one-of",ae);return i.export=t.type,i.imports.push(...t.imports),i.properties.push(...t.properties),i.enums.push(...t.enums),i}if(null===(o=n.anyOf)||void 0===o?void 0:o.length){const t=te(e,n,n.anyOf,"any-of",ae);return i.export=t.type,i.imports.push(...t.imports),i.properties.push(...t.properties),i.enums.push(...t.enums),i}if(null===(l=n.allOf)||void 0===l?void 0:l.length){const t=te(e,n,n.allOf,"all-of",ae);return i.export=t.type,i.imports.push(...t.imports),i.properties.push(...t.properties),i.enums.push(...t.enums),i}if("object"===n.type){if(i.export="interface",i.type="any",i.base="any",i.default=re(n,i),n.properties){K(e,n,ae).forEach((e=>{i.imports.push(...e.imports),i.enums.push(...e.enums),i.properties.push(e),"enum"===e.export&&i.enums.push(e)}))}return i}if(n.type){const e=X(n.type,n.format);return i.export="generic",i.type=e.type,i.base=e.base,i.template=e.template,i.isNullable=e.isNullable||i.isNullable,i.imports.push(...e.imports),i.default=re(n,i),i}return i}const oe=/^(arguments|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|eval|export|extends|false|finally|for|function|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)$/g;function le(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n).replace(oe,"_$1")}function ie(e,n){const t={imports:[],parameters:[],parametersPath:[],parametersQuery:[],parametersForm:[],parametersCookie:[],parametersHeader:[],parametersBody:null};return n.forEach((n=>{const r=ne(e,n),a=function(e,n){var t;const r={in:n.in,prop:n.name,export:"interface",name:le(n.name),type:"any",base:"any",template:null,link:null,description:z(n.description),isDefinition:!1,isReadOnly:!1,isRequired:!0===n.required,isNullable:!0===n.nullable,imports:[],enum:[],enums:[],properties:[],mediaType:null};if(n.$ref){const e=X(n.$ref);return r.export="reference",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r}let a=n.schema;if(a){if((null===(t=a.$ref)||void 0===t?void 0:t.startsWith("#/components/parameters/"))&&(a=ne(e,a)),a.$ref){const e=X(a.$ref);return r.export="reference",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=re(a),r}{const n=ae(e,a);return r.export=n.export,r.type=n.type,r.base=n.base,r.template=n.template,r.link=n.link,r.isReadOnly=n.isReadOnly,r.isRequired=r.isRequired||n.isRequired,r.isNullable=r.isNullable||n.isNullable,r.format=n.format,r.maximum=n.maximum,r.exclusiveMaximum=n.exclusiveMaximum,r.minimum=n.minimum,r.exclusiveMinimum=n.exclusiveMinimum,r.multipleOf=n.multipleOf,r.maxLength=n.maxLength,r.minLength=n.minLength,r.maxItems=n.maxItems,r.minItems=n.minItems,r.uniqueItems=n.uniqueItems,r.maxProperties=n.maxProperties,r.minProperties=n.minProperties,r.pattern=g(n.pattern),r.default=n.default,r.imports.push(...n.imports),r.enum.push(...n.enum),r.enums.push(...n.enums),r.properties.push(...n.properties),r}}return r}(e,r);if("api-version"!==a.prop)switch(r.in){case"path":t.parametersPath.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"query":t.parametersQuery.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"formData":t.parametersForm.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"cookie":t.parametersCookie.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"header":t.parametersHeader.push(a),t.parameters.push(a),t.imports.push(...a.imports)}})),t}const se=["application/json-patch+json","application/json","application/x-www-form-urlencoded","text/json","text/plain","multipart/form-data","multipart/mixed","multipart/related","multipart/batch"];function ue(e,n){const t=Object.keys(n).filter((e=>{const n=e.split(";")[0].trim();return se.includes(n)})).find((e=>{var t;return O(null===(t=n[e])||void 0===t?void 0:t.schema)}));if(t)return{mediaType:t,schema:n[t].schema};const r=Object.keys(n).find((e=>{var t;return O(null===(t=n[e])||void 0===t?void 0:t.schema)}));return r?{mediaType:r,schema:n[r].schema}:null}function pe(e,n,t){var r;const a={in:"response",name:"",code:t,description:z(n.description),export:"generic",type:"any",base:"any",template:null,link:null,isDefinition:!1,isReadOnly:!1,isRequired:!1,isNullable:!1,imports:[],enum:[],enums:[],properties:[]};if(n.content){const t=ue(0,n.content);if(t){if((null===(r=t.schema.$ref)||void 0===r?void 0:r.startsWith("#/components/responses/"))&&(t.schema=ne(e,t.schema)),t.schema.$ref){const e=X(t.schema.$ref);return a.export="reference",a.type=e.type,a.base=e.base,a.template=e.template,a.imports.push(...e.imports),a}{const n=ae(e,t.schema);return a.export=n.export,a.type=n.type,a.base=n.base,a.template=n.template,a.link=n.link,a.isReadOnly=n.isReadOnly,a.isRequired=n.isRequired,a.isNullable=n.isNullable,a.format=n.format,a.maximum=n.maximum,a.exclusiveMaximum=n.exclusiveMaximum,a.minimum=n.minimum,a.exclusiveMinimum=n.exclusiveMinimum,a.multipleOf=n.multipleOf,a.maxLength=n.maxLength,a.minLength=n.minLength,a.maxItems=n.maxItems,a.minItems=n.minItems,a.uniqueItems=n.uniqueItems,a.maxProperties=n.maxProperties,a.minProperties=n.minProperties,a.pattern=g(n.pattern),a.imports.push(...n.imports),a.enum.push(...n.enum),a.enums.push(...n.enums),a.properties.push(...n.properties),a}}}if(n.headers)for(const e in n.headers)if(n.headers.hasOwnProperty(e))return a.in="header",a.name=e,a.type="string",a.base="string",a;return a}function ce(e){if("default"===e)return 200;if(/[0-9]+/g.test(e)){const n=parseInt(e);if(Number.isInteger(n))return Math.abs(n)}return null}function me(e,n){const t=e.type===n.type&&e.base===n.base&&e.template===n.template;return t&&e.link&&n.link?me(e.link,n.link):t}function de(e){const n=[];return e.forEach((e=>{const{code:t}=e;t&&204!==t&&t>=200&&t<300&&n.push(e)})),n.length||n.push({in:"response",name:"",code:200,description:"",export:"generic",type:"void",base:"void",template:null,link:null,isDefinition:!1,isReadOnly:!1,isRequired:!1,isNullable:!1,imports:[],enum:[],enums:[],properties:[]}),n.filter(((e,n,t)=>t.findIndex((n=>me(n,e)))===n))}function fe(e,n){const t=e.isRequired&&void 0===e.default,r=n.isRequired&&void 0===n.default;return t&&!r?-1:r&&!t?1:0}function he(e,n,t,r,a,o){const l=function(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n,{pascalCase:!0})}(r),i=`${t}${l}`,s=function(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n)}(a.operationId||i),u=function(e){return e.replace(/\{(.*?)\}/g,((e,n)=>`\${${le(n)}}`)).replace("${apiVersion}","${OpenAPI.VERSION}")}(n),p={service:l,name:s,summary:z(a.summary),description:z(a.description),deprecated:!0===a.deprecated,method:t.toUpperCase(),path:u,parameters:[...o.parameters],parametersPath:[...o.parametersPath],parametersQuery:[...o.parametersQuery],parametersForm:[...o.parametersForm],parametersHeader:[...o.parametersHeader],parametersCookie:[...o.parametersCookie],parametersBody:o.parametersBody,imports:[],errors:[],results:[],responseHeader:null};if(a.parameters){const n=ie(e,a.parameters);p.imports.push(...n.imports),p.parameters.push(...n.parameters),p.parametersPath.push(...n.parametersPath),p.parametersQuery.push(...n.parametersQuery),p.parametersForm.push(...n.parametersForm),p.parametersHeader.push(...n.parametersHeader),p.parametersCookie.push(...n.parametersCookie),p.parametersBody=n.parametersBody}if(a.requestBody){const n=function(e,n){const t={in:"body",export:"interface",prop:"requestBody",name:"requestBody",type:"any",base:"any",template:null,link:null,description:z(n.description),default:void 0,isDefinition:!1,isReadOnly:!1,isRequired:!0===n.required,isNullable:!0===n.nullable,imports:[],enum:[],enums:[],properties:[],mediaType:null};if(n.content){const r=ue(0,n.content);if(r){switch(t.mediaType=r.mediaType,t.mediaType){case"application/x-www-form-urlencoded":case"multipart/form-data":t.in="formData",t.name="formData",t.prop="formData"}if(r.schema.$ref){const e=X(r.schema.$ref);return t.export="reference",t.type=e.type,t.base=e.base,t.template=e.template,t.imports.push(...e.imports),t}{const n=ae(e,r.schema);return t.export=n.export,t.type=n.type,t.base=n.base,t.template=n.template,t.link=n.link,t.isReadOnly=n.isReadOnly,t.isRequired=t.isRequired||n.isRequired,t.isNullable=t.isNullable||n.isNullable,t.format=n.format,t.maximum=n.maximum,t.exclusiveMaximum=n.exclusiveMaximum,t.minimum=n.minimum,t.exclusiveMinimum=n.exclusiveMinimum,t.multipleOf=n.multipleOf,t.maxLength=n.maxLength,t.minLength=n.minLength,t.maxItems=n.maxItems,t.minItems=n.minItems,t.uniqueItems=n.uniqueItems,t.maxProperties=n.maxProperties,t.minProperties=n.minProperties,t.pattern=g(n.pattern),t.imports.push(...n.imports),t.enum.push(...n.enum),t.enums.push(...n.enums),t.properties.push(...n.properties),t}}}return t}(e,ne(e,a.requestBody));p.imports.push(...n.imports),p.parameters.push(n),p.parametersBody=n}if(a.responses){const n=function(e,n){const t=[];for(const r in n)if(n.hasOwnProperty(r)){const a=ne(e,n[r]),o=ce(r);if(o){const n=pe(e,a,o);t.push(n)}}return t.sort(((e,n)=>e.code<n.code?-1:e.code>n.code?1:0))}(e,a.responses),t=de(n);p.errors=function(e){return e.filter((e=>e.code>=300&&e.description)).map((e=>{return{code:e.code,description:(n=e.description,n.replace(/([^\\])`/g,"$1\\`").replace(/(\*\/)/g,"*_/"))};var n}))}(n),p.responseHeader=function(e){const n=e.find((e=>"header"===e.in));return n?n.name:null}(t),t.forEach((e=>{p.results.push(e),p.imports.push(...e.imports)}))}return p.parameters=p.parameters.sort(fe),p}function ye(e,n=!1){const t=function(e="1.0"){return String(e).replace(/^v/gi,"")}(e.info.version),r=function(e){var n;const t=null===(n=e.servers)||void 0===n?void 0:n[0],r=(null==t?void 0:t.variables)||{};let a=(null==t?void 0:t.url)||"";for(const e in r)r.hasOwnProperty(e)&&(a=a.replace(`{${e}}`,r[e].default));return a.replace(/\/$/g,"")}(e);let a=function(e){const n=[];if(e.components)for(const t in e.components.schemas)if(e.components.schemas.hasOwnProperty(t)){const r=ae(e,e.components.schemas[t],!0,X(t).base);n.push(r)}return n}(e);const o=function(e){var n;const t=new Map;for(const r in e.paths)if(e.paths.hasOwnProperty(r)){const a=e.paths[r],o=ie(e,a.parameters||[]);for(const l in a)if(a.hasOwnProperty(l))switch(l){case"get":case"put":case"post":case"delete":case"options":case"head":case"patch":const i=a[l];((null===(n=i.tags)||void 0===n?void 0:n.filter(H))||["Service"]).forEach((n=>{const a=he(e,r,l,n,i,o),s=t.get(a.service)||{name:a.service,operations:[],imports:[]};s.operations.push(a),s.imports.push(...a.imports),t.set(a.service,s)}))}}return Array.from(t.values())}(e),l=o.map((e=>e.imports)).flat(),i=a.map((e=>e.imports)).flat(),s=Array.from(new Set([...i,...l]));return n&&(a=a.filter((e=>s.some((n=>n===e.name))))),{version:t,server:r,models:a,services:o}}var ve;function ge(e){return e.enum.filter(((e,n,t)=>t.findIndex((n=>n.name===e.name))===n))}function Pe(e){return e.enums.filter(((e,n,t)=>t.findIndex((n=>n.name===e.name))===n))}function be(e,n){const t=e.toLowerCase(),r=n.toLowerCase();return t.localeCompare(r,"en")}function Oe(e){return e.imports.filter(H).sort(be).filter((n=>e.name!==n))}function xe(e,n){const t=[];return e.map(n).forEach((e=>{t.push(...e)})),t}function ke(e){const n=Object.assign({},e);return n.operations=function(e){const n=new Map;return e.operations.map((e=>{const t=Object.assign({},e);t.imports.push(...xe(t.parameters,(e=>e.imports))),t.imports.push(...xe(t.results,(e=>e.imports)));const r=t.name,a=n.get(r)||0;return a>0&&(t.name=`${r}${a}`),n.set(r,a+1),t}))}(n),n.operations.forEach((e=>{n.imports.push(...e.imports)})),n.imports=function(e){return e.imports.filter(H).sort(be)}(n),n}function Re(e){return Object.assign(Object.assign({},e),{models:e.models.map((e=>function(e){return Object.assign(Object.assign({},e),{imports:Oe(e),enums:Pe(e),enum:ge(e)})}(e))),services:e.services.map((e=>ke(e)))})}!function(e){e[e.V2=2]="V2",e[e.V3=3]="V3"}(ve||(ve={}));var we={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport type { ApiResult } from './ApiResult';\n\nexport class ApiError extends Error {\n public readonly url: string;\n public readonly status: number;\n public readonly statusText: string;\n public readonly body: any;\n\n constructor(response: ApiResult, message: string) {\n super(message);\n\n this.name = 'ApiError';\n this.url = response.url;\n this.status = response.status;\n this.statusText = response.statusText;\n this.body = response.body;\n }\n}"},usePartial:!0,useData:!0},qe={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nexport type ApiRequestOptions = {\n readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';\n readonly path: string;\n readonly cookies?: Record<string, any>;\n readonly headers?: Record<string, any>;\n readonly query?: Record<string, any>;\n readonly formData?: Record<string, any>;\n readonly body?: any;\n readonly mediaType?: string;\n readonly responseHeader?: string;\n readonly errors?: Record<number, string>;\n}"},usePartial:!0,useData:!0},Ce={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nexport type ApiResult = {\n readonly url: string;\n readonly ok: boolean;\n readonly status: number;\n readonly statusText: string;\n readonly body: any;\n}"},usePartial:!0,useData:!0},je={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getHeaders(options: ApiRequestOptions, formData?: FormData): Promise<Record<string, string>> {\n const token = await resolve(options, OpenAPI.TOKEN);\n const username = await resolve(options, OpenAPI.USERNAME);\n const password = await resolve(options, OpenAPI.PASSWORD);\n const additionalHeaders = await resolve(options, OpenAPI.HEADERS);\n const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {}\n\n const headers = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n ...formHeaders,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record<string, string>);\n\n if (isStringWithValue(token)) {\n headers['Authorization'] = `Bearer ${token}`;\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers['Authorization'] = `Basic ${credentials}`;\n }\n\n return headers;\n}"},useData:!0},Ae={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getRequestBody(options: ApiRequestOptions): any {\n if (options.body) {\n return options.body;\n }\n return;\n}"},useData:!0},De={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseBody(response: AxiosResponse<any>): any {\n if (response.status !== 204) {\n return response.data;\n }\n return;\n}"},useData:!0},Te={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseHeader(response: AxiosResponse<any>, responseHeader?: string): string | undefined {\n if (responseHeader) {\n const content = response.headers[responseHeader];\n if (isString(content)) {\n return content;\n }\n }\n return;\n}"},useData:!0},Ee={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';\nimport Blob from 'cross-blob'\nimport FormData from 'form-data';\n\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport { OpenAPI } from './OpenAPI';\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isDefined"),n,{name:"functions/isDefined",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isString"),n,{name:"functions/isString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isStringWithValue"),n,{name:"functions/isStringWithValue",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isBlob"),n,{name:"functions/isBlob",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isSuccess"),n,{name:"functions/isSuccess",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/base64"),n,{name:"functions/base64",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getQueryString"),n,{name:"functions/getQueryString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getUrl"),n,{name:"functions/getUrl",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getFormData"),n,{name:"functions/getFormData",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/resolve"),n,{name:"functions/resolve",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/getHeaders"),n,{name:"axios/getHeaders",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/getRequestBody"),n,{name:"axios/getRequestBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/sendRequest"),n,{name:"axios/sendRequest",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/getResponseHeader"),n,{name:"axios/getResponseHeader",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/getResponseBody"),n,{name:"axios/getResponseBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/catchErrors"),n,{name:"functions/catchErrors",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n/**\n * Request using axios client\n * @param options The request options from the the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport function request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(options, formData);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, formData, body, headers, onCancel);\n const responseBody = getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: responseHeader || responseBody,\n };\n\n catchErrors(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}"},usePartial:!0,useData:!0},Ie={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function sendRequest(\n options: ApiRequestOptions,\n url: string,\n formData: FormData | undefined,\n body: any,\n headers: Record<string, string>,\n onCancel: OnCancel\n): Promise<AxiosResponse<any>> {\n const source = axios.CancelToken.source();\n\n const config: AxiosRequestConfig = {\n url,\n headers,\n data: body || formData,\n method: options.method,\n withCredentials: OpenAPI.WITH_CREDENTIALS,\n cancelToken: source.token,\n };\n\n onCancel(() => source.cancel('The user aborted a request.'));\n\n try {\n return await axios.request(config);\n } catch (error) {\n const axiosError = error as AxiosError;\n if (axiosError.response) {\n return axiosError.response;\n }\n throw error;\n }\n}"},useData:!0},He={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nexport class CancelError extends Error {\n\n constructor(reason: string = 'Promise was canceled') {\n super(reason);\n this.name = 'CancelError';\n }\n\n public get isCancelled(): boolean {\n return true;\n }\n}\n\nexport interface OnCancel {\n readonly isPending: boolean;\n readonly isCancelled: boolean;\n\n (cancelHandler: () => void): void;\n}\n\nexport class CancelablePromise<T> implements Promise<T> {\n readonly [Symbol.toStringTag]: string;\n\n #isPending: boolean;\n #isCancelled: boolean;\n readonly #cancelHandlers: (() => void)[];\n readonly #promise: Promise<T>;\n #resolve?: (value: T | PromiseLike<T>) => void;\n #reject?: (reason?: any) => void;\n\n constructor(\n executor: (\n resolve: (value: T | PromiseLike<T>) => void,\n reject: (reason?: any) => void,\n onCancel: OnCancel\n ) => void\n ) {\n this.#isPending = true;\n this.#isCancelled = false;\n this.#cancelHandlers = [];\n this.#promise = new Promise<T>((resolve, reject) => {\n this.#resolve = resolve;\n this.#reject = reject;\n\n const onResolve = (value: T | PromiseLike<T>): void => {\n if (!this.#isCancelled) {\n this.#isPending = false;\n this.#resolve?.(value);\n }\n };\n\n const onReject = (reason?: any): void => {\n this.#isPending = false;\n this.#reject?.(reason);\n };\n\n const onCancel = (cancelHandler: () => void): void => {\n if (this.#isPending) {\n this.#cancelHandlers.push(cancelHandler);\n }\n };\n\n Object.defineProperty(onCancel, 'isPending', {\n get: (): boolean => this.#isPending,\n });\n\n Object.defineProperty(onCancel, 'isCancelled', {\n get: (): boolean => this.#isCancelled,\n });\n\n return executor(onResolve, onReject, onCancel as OnCancel);\n });\n }\n\n public then<TResult1 = T, TResult2 = never>(\n onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,\n onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null\n ): Promise<TResult1 | TResult2> {\n return this.#promise.then(onFulfilled, onRejected);\n }\n\n public catch<TResult = never>(\n onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null\n ): Promise<T | TResult> {\n return this.#promise.catch(onRejected);\n }\n\n public finally(onFinally?: (() => void) | null): Promise<T> {\n return this.#promise.finally(onFinally);\n }\n\n public cancel(): void {\n if (!this.#isPending || this.#isCancelled) {\n return;\n }\n this.#isCancelled = true;\n if (this.#cancelHandlers.length) {\n try {\n for (const cancelHandler of this.#cancelHandlers) {\n cancelHandler();\n }\n } catch (error) {\n this.#reject?.(error);\n return;\n }\n }\n }\n\n public get isCancelled(): boolean {\n return this.#isCancelled;\n }\n}"},usePartial:!0,useData:!0},Se={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getHeaders(options: ApiRequestOptions): Promise<Headers> {\n const token = await resolve(options, OpenAPI.TOKEN);\n const username = await resolve(options, OpenAPI.USERNAME);\n const password = await resolve(options, OpenAPI.PASSWORD);\n const additionalHeaders = await resolve(options, OpenAPI.HEADERS);\n\n const defaultHeaders = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record<string, string>);\n\n const headers = new Headers(defaultHeaders);\n\n if (isStringWithValue(token)) {\n headers.append('Authorization', `Bearer ${token}`);\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers.append('Authorization', `Basic ${credentials}`);\n }\n\n if (options.body) {\n if (options.mediaType) {\n headers.append('Content-Type', options.mediaType);\n } else if (isBlob(options.body)) {\n headers.append('Content-Type', options.body.type || 'application/octet-stream');\n } else if (isString(options.body)) {\n headers.append('Content-Type', 'text/plain');\n } else {\n headers.append('Content-Type', 'application/json');\n }\n }\n\n return headers;\n}"},useData:!0},$e={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getRequestBody(options: ApiRequestOptions): BodyInit | undefined {\n if (options.body) {\n if (options.mediaType?.includes('/json')) {\n return JSON.stringify(options.body)\n } else if (isString(options.body) || isBlob(options.body)) {\n return options.body;\n } else {\n return JSON.stringify(options.body);\n }\n }\n return;\n}"},useData:!0},Ne={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getResponseBody(response: Response): Promise<any> {\n if (response.status !== 204) {\n try {\n const contentType = response.headers.get('Content-Type');\n if (contentType) {\n const isJSON = contentType.toLowerCase().startsWith('application/json');\n if (isJSON) {\n return await response.json();\n } else {\n return await response.text();\n }\n }\n } catch (error) {\n console.error(error);\n }\n }\n return;\n}"},useData:!0},Be={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseHeader(response: Response, responseHeader?: string): string | undefined {\n if (responseHeader) {\n const content = response.headers.get(responseHeader);\n if (isString(content)) {\n return content;\n }\n }\n return;\n}"},useData:!0},Le={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport { OpenAPI } from './OpenAPI';\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isDefined"),n,{name:"functions/isDefined",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isString"),n,{name:"functions/isString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isStringWithValue"),n,{name:"functions/isStringWithValue",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isBlob"),n,{name:"functions/isBlob",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/base64"),n,{name:"functions/base64",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getQueryString"),n,{name:"functions/getQueryString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getUrl"),n,{name:"functions/getUrl",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getFormData"),n,{name:"functions/getFormData",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/resolve"),n,{name:"functions/resolve",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getHeaders"),n,{name:"fetch/getHeaders",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getRequestBody"),n,{name:"fetch/getRequestBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/sendRequest"),n,{name:"fetch/sendRequest",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getResponseHeader"),n,{name:"fetch/getResponseHeader",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getResponseBody"),n,{name:"fetch/getResponseBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/catchErrors"),n,{name:"functions/catchErrors",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n/**\n * Request using fetch client\n * @param options The request options from the the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport function request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(options);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, formData, body, headers, onCancel);\n const responseBody = await getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: responseHeader || responseBody,\n };\n\n catchErrors(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}"},usePartial:!0,useData:!0},Me={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function sendRequest(\n options: ApiRequestOptions,\n url: string,\n formData: FormData | undefined,\n body: BodyInit | undefined,\n headers: Headers,\n onCancel: OnCancel\n): Promise<Response> {\n const controller = new AbortController();\n\n const request: RequestInit = {\n headers,\n body: body || formData,\n method: options.method,\n signal: controller.signal,\n };\n\n if (OpenAPI.WITH_CREDENTIALS) {\n request.credentials = OpenAPI.CREDENTIALS;\n }\n\n onCancel(() => controller.abort());\n\n return await fetch(url, request);\n}"},useData:!0},Ue={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function base64(str: string): string {\n try {\n return btoa(str);\n } catch (err) {\n // @ts-ignore\n return Buffer.from(str).toString('base64');\n }\n}"},useData:!0},Fe={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function catchErrors(options: ApiRequestOptions, result: ApiResult): void {\n const errors: Record<number, string> = {\n 400: 'Bad Request',\n 401: 'Unauthorized',\n 403: 'Forbidden',\n 404: 'Not Found',\n 500: 'Internal Server Error',\n 502: 'Bad Gateway',\n 503: 'Service Unavailable',\n ...options.errors,\n }\n\n const error = errors[result.status];\n if (error) {\n throw new ApiError(result, error);\n }\n\n if (!result.ok) {\n throw new ApiError(result, 'Generic Error');\n }\n}"},useData:!0},We={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getFormData(options: ApiRequestOptions): FormData | undefined {\n if (options.formData) {\n const formData = new FormData();\n\n const append = (key: string, value: any) => {\n if (isString(value) || isBlob(value)) {\n formData.append(key, value);\n } else {\n formData.append(key, JSON.stringify(value));\n }\n };\n\n Object.entries(options.formData)\n .filter(([_, value]) => isDefined(value))\n .forEach(([key, value]) => {\n if (Array.isArray(value)) {\n value.forEach(v => append(key, v));\n } else {\n append(key, value);\n }\n });\n\n return formData;\n }\n return;\n}"},useData:!0},_e={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getQueryString(params: Record<string, any>): string {\n const qs: string[] = [];\n\n const append = (key: string, value: any) => {\n qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\n };\n\n Object.entries(params)\n .filter(([_, value]) => isDefined(value))\n .forEach(([key, value]) => {\n if (Array.isArray(value)) {\n value.forEach(v => append(key, v));\n } else {\n append(key, value);\n }\n });\n\n if (qs.length > 0) {\n return `?${qs.join('&')}`;\n }\n\n return '';\n}"},useData:!0},Ve={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getUrl(options: ApiRequestOptions): string {\n const path = OpenAPI.ENCODE_PATH ? OpenAPI.ENCODE_PATH(options.path) : options.path;\n const url = `${OpenAPI.BASE}${path}`;\n if (options.query) {\n return `${url}${getQueryString(options.query)}`;\n }\n\n return url;\n}"},useData:!0},ze={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isBlob(value: any): value is Blob {\n return value instanceof Blob;\n}"},useData:!0},Qe={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isDefined<T>(value: T | null | undefined): value is Exclude<T, null | undefined> {\n return value !== undefined && value !== null;\n}"},useData:!0},Je={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isString(value: any): value is string {\n return typeof value === 'string';\n}"},useData:!0},Ze={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isStringWithValue(value: any): value is string {\n return isString(value) && value !== '';\n}"},useData:!0},Ge={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isSuccess(status: number): boolean {\n return status >= 200 && status < 300;\n}"},useData:!0},Xe={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;\n\nasync function resolve<T>(options: ApiRequestOptions, resolver?: T | Resolver<T>): Promise<T | undefined> {\n if (typeof resolver === 'function') {\n return (resolver as Resolver<T>)(options);\n }\n return resolver;\n}"},useData:!0},Ke={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getHeaders(options: ApiRequestOptions): Promise<Headers> {\n const token = await resolve(options, OpenAPI.TOKEN);\n const username = await resolve(options, OpenAPI.USERNAME);\n const password = await resolve(options, OpenAPI.PASSWORD);\n const additionalHeaders = await resolve(options, OpenAPI.HEADERS);\n\n const defaultHeaders = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record<string, string>);\n\n const headers = new Headers(defaultHeaders);\n\n if (isStringWithValue(token)) {\n headers.append('Authorization', `Bearer ${token}`);\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers.append('Authorization', `Basic ${credentials}`);\n }\n\n if (options.body) {\n if (options.mediaType) {\n headers.append('Content-Type', options.mediaType);\n } else if (isBlob(options.body)) {\n headers.append('Content-Type', 'application/octet-stream');\n } else if (isString(options.body)) {\n headers.append('Content-Type', 'text/plain');\n } else {\n headers.append('Content-Type', 'application/json');\n }\n }\n return headers;\n}"},useData:!0},Ye={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getRequestBody(options: ApiRequestOptions): BodyInit | undefined {\n if (options.body) {\n if (options.mediaType?.includes('/json')) {\n return JSON.stringify(options.body)\n } else if (isString(options.body) || isBlob(options.body)) {\n return options.body as any;\n } else {\n return JSON.stringify(options.body);\n }\n }\n return;\n}"},useData:!0},en={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getResponseBody(response: Response): Promise<any> {\n if (response.status !== 204) {\n try {\n const contentType = response.headers.get('Content-Type');\n if (contentType) {\n const isJSON = contentType.toLowerCase().startsWith('application/json');\n if (isJSON) {\n return await response.json();\n } else {\n return await response.text();\n }\n }\n } catch (error) {\n console.error(error);\n }\n }\n return;\n}"},useData:!0},nn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseHeader(response: Response, responseHeader?: string): string | undefined {\n if (responseHeader) {\n const content = response.headers.get(responseHeader);\n if (isString(content)) {\n return content;\n }\n }\n return;\n}"},useData:!0},tn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport { AbortController } from 'abort-controller';\nimport Blob from 'cross-blob'\nimport FormData from 'form-data';\nimport fetch, { BodyInit, Headers, RequestInit, Response } from 'node-fetch';\n\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport { OpenAPI } from './OpenAPI';\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isDefined"),n,{name:"functions/isDefined",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isString"),n,{name:"functions/isString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isStringWithValue"),n,{name:"functions/isStringWithValue",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isBlob"),n,{name:"functions/isBlob",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/base64"),n,{name:"functions/base64",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getQueryString"),n,{name:"functions/getQueryString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getUrl"),n,{name:"functions/getUrl",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getFormData"),n,{name:"functions/getFormData",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/resolve"),n,{name:"functions/resolve",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/getHeaders"),n,{name:"node/getHeaders",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/getRequestBody"),n,{name:"node/getRequestBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/sendRequest"),n,{name:"node/sendRequest",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/getResponseHeader"),n,{name:"node/getResponseHeader",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/getResponseBody"),n,{name:"node/getResponseBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/catchErrors"),n,{name:"functions/catchErrors",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n/**\n * Request using node-fetch client\n * @param options The request options from the the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport function request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(options);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, formData, body, headers, onCancel);\n const responseBody = await getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: responseHeader || responseBody,\n };\n\n catchErrors(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}"},usePartial:!0,useData:!0},rn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function sendRequest(\n options: ApiRequestOptions,\n url: string,\n formData: FormData | undefined,\n body: BodyInit | undefined,\n headers: Headers,\n onCancel: OnCancel\n): Promise<Response> {\n const controller = new AbortController();\n\n const request: RequestInit = {\n headers,\n method: options.method,\n body: body || formData,\n signal: controller.signal,\n };\n\n onCancel(() => controller.abort());\n\n return await fetch(url, request);\n}"},useData:!0},an={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(s(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport type { ApiRequestOptions } from './ApiRequestOptions';\n\ntype Resolver<T> = (options: ApiRequestOptions) => Promise<T>;\ntype Headers = Record<string, string>;\n\ntype Config = {\n BASE: string;\n VERSION: string;\n WITH_CREDENTIALS: boolean;\n CREDENTIALS: 'include' | 'omit' | 'same-origin';\n TOKEN?: string | Resolver<string>;\n USERNAME?: string | Resolver<string>;\n PASSWORD?: string | Resolver<string>;\n HEADERS?: Headers | Resolver<Headers>;\n ENCODE_PATH?: (path: string) => string;\n}\n\nexport const OpenAPI: Config = {\n BASE: '"+(null!=(o=i(l(n,"server",{start:{line:21,column:14},end:{line:21,column:20}}),n))?o:"")+"',\n VERSION: '"+(null!=(o=i(l(n,"version",{start:{line:22,column:17},end:{line:22,column:24}}),n))?o:"")+"',\n WITH_CREDENTIALS: false,\n CREDENTIALS: 'include',\n TOKEN: undefined,\n USERNAME: undefined,\n PASSWORD: undefined,\n HEADERS: undefined,\n ENCODE_PATH: undefined,\n};"},usePartial:!0,useData:!0},on={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"fetch/request"),n,{name:"fetch/request",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"xhr/request"),n,{name:"xhr/request",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},5:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"axios/request"),n,{name:"axios/request",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"node/request"),n,{name:"node/request",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"fetch",{name:"equals",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:67}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"xhr",{name:"equals",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:2,column:63}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"axios",{name:"equals",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:3,column:67}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"node",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:4,column:65}}}))?o:"")},usePartial:!0,useData:!0},ln={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getHeaders(options: ApiRequestOptions): Promise<Headers> {\n const token = await resolve(options, OpenAPI.TOKEN);\n const username = await resolve(options, OpenAPI.USERNAME);\n const password = await resolve(options, OpenAPI.PASSWORD);\n const additionalHeaders = await resolve(options, OpenAPI.HEADERS);\n\n const defaultHeaders = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record<string, string>);\n\n const headers = new Headers(defaultHeaders);\n\n if (isStringWithValue(token)) {\n headers.append('Authorization', `Bearer ${token}`);\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers.append('Authorization', `Basic ${credentials}`);\n }\n\n if (options.body) {\n if (options.mediaType) {\n headers.append('Content-Type', options.mediaType);\n } else if (isBlob(options.body)) {\n headers.append('Content-Type', options.body.type || 'application/octet-stream');\n } else if (isString(options.body)) {\n headers.append('Content-Type', 'text/plain');\n } else {\n headers.append('Content-Type', 'application/json');\n }\n }\n return headers;\n}"},useData:!0},sn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getRequestBody(options: ApiRequestOptions): any {\n if (options.body) {\n if (options.mediaType?.includes('/json')) {\n return JSON.stringify(options.body)\n } else if (isString(options.body) || isBlob(options.body)) {\n return options.body;\n } else {\n return JSON.stringify(options.body);\n }\n }\n\n return;\n}"},useData:!0},un={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseBody(xhr: XMLHttpRequest): any {\n if (xhr.status !== 204) {\n try {\n const contentType = xhr.getResponseHeader('Content-Type');\n if (contentType) {\n const isJSON = contentType.toLowerCase().startsWith('application/json');\n if (isJSON) {\n return JSON.parse(xhr.responseText);\n } else {\n return xhr.responseText;\n }\n }\n } catch (error) {\n console.error(error);\n }\n }\n return;\n}"},useData:!0},pn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseHeader(xhr: XMLHttpRequest, responseHeader?: string): string | undefined {\n if (responseHeader) {\n const content = xhr.getResponseHeader(responseHeader);\n if (isString(content)) {\n return content;\n }\n }\n return;\n}"},useData:!0},cn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport { OpenAPI } from './OpenAPI';\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isDefined"),n,{name:"functions/isDefined",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isString"),n,{name:"functions/isString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isStringWithValue"),n,{name:"functions/isStringWithValue",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isBlob"),n,{name:"functions/isBlob",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isSuccess"),n,{name:"functions/isSuccess",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/base64"),n,{name:"functions/base64",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getQueryString"),n,{name:"functions/getQueryString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getUrl"),n,{name:"functions/getUrl",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getFormData"),n,{name:"functions/getFormData",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/resolve"),n,{name:"functions/resolve",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getHeaders"),n,{name:"fetch/getHeaders",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"xhr/getRequestBody"),n,{name:"xhr/getRequestBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"xhr/sendRequest"),n,{name:"xhr/sendRequest",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"xhr/getResponseHeader"),n,{name:"xhr/getResponseHeader",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"xhr/getResponseBody"),n,{name:"xhr/getResponseBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/catchErrors"),n,{name:"functions/catchErrors",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n/**\n * Request using XHR client\n * @param options The request options from the the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport function request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(options);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, formData, body, headers, onCancel);\n const responseBody = getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: responseHeader || responseBody,\n };\n\n catchErrors(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}"},usePartial:!0,useData:!0},mn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function sendRequest(\n options: ApiRequestOptions,\n url: string,\n formData: FormData | undefined,\n body: any,\n headers: Headers,\n onCancel: OnCancel\n): Promise<XMLHttpRequest> {\n const xhr = new XMLHttpRequest();\n xhr.open(options.method, url, true);\n xhr.withCredentials = OpenAPI.WITH_CREDENTIALS;\n\n headers.forEach((value, key) => {\n xhr.setRequestHeader(key, value);\n });\n\n return new Promise<XMLHttpRequest>((resolve, reject) => {\n xhr.onload = () => resolve(xhr);\n xhr.onabort = () => reject(new Error('The user aborted a request.'));\n xhr.onerror = () => reject(new Error('Network error.'));\n xhr.send(body || formData);\n\n onCancel(() => xhr.abort());\n });\n}"},useData:!0},dn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"imports"),{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:0},end:{line:7,column:9}}}))?o:"")},2:function(e,n,t,r,a){var o,l=e.lambda;return"import type { "+(null!=(o=l(n,n))?o:"")+" } from './"+(null!=(o=l(n,n))?o:"")+"';\n"},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"exportInterface"),n,{name:"exportInterface",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"one-of",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:12,column:0},end:{line:26,column:0}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"exportComposition"),n,{name:"exportComposition",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"any-of",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(10,a,0),data:a,loc:{start:{line:14,column:0},end:{line:26,column:0}}}))?o:""},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"all-of",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(11,a,0),data:a,loc:{start:{line:16,column:0},end:{line:26,column:0}}}))?o:""},11:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"enum",{name:"equals",hash:{},fn:e.program(12,a,0),inverse:e.program(13,a,0),data:a,loc:{start:{line:18,column:0},end:{line:26,column:0}}}))?o:""},12:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useUnionTypes"),{name:"if",hash:{},fn:e.program(13,a,0),inverse:e.program(15,a,0),data:a,loc:{start:{line:19,column:0},end:{line:23,column:7}}}))?o:""},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"exportType"),n,{name:"exportType",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},15:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"exportEnum"),n,{name:"exportEnum",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(i(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n"+(null!=(o=i(t,"if").call(l,i(n,"imports"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:8,column:7}}}))?o:"")+"\n"+(null!=(o=i(t,"equals").call(l,i(n,"export"),"interface",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:10,column:0},end:{line:26,column:11}}}))?o:"")},usePartial:!0,useData:!0},fn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nexport const $"+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:3,column:17},end:{line:3,column:21}}),n))?o:"")+" = "+(null!=(o=e.invokePartial(l(r,"schema"),n,{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+" as const;"},usePartial:!0,useData:!0},hn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"imports"),{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:6,column:9}}}))?o:""},2:function(e,n,t,r,a){var o,l=e.lambda;return"import type { "+(null!=(o=l(n,n))?o:"")+" } from '../models/"+(null!=(o=l(n,n))?o:"")+"';\n"},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.lambda(e.strict(l(a,"root"),"appendTemplate",{start:{line:9,column:3},end:{line:9,column:23}}),n))?o:"")+"\n"},6:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"export interface "+(null!=(o=i(t,"capitalizeFirstLetter").call(l,i(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:13,column:17},end:{line:13,column:47}}}))?o:"")+" {\n "+(null!=(o=i(t,"hasLength").call(l,i(n,"results"),{name:"hasLength",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:14,column:2},end:{line:14,column:78}}}))?o:"")+"\n"+(null!=(o=i(t,"hasLength").call(l,i(n,"parameters"),{name:"hasLength",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:15,column:2},end:{line:19,column:16}}}))?o:"")+"}\n"},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"response: "+(null!=(o=l(t,"unionTypeBesideAny").call(null!=n?n:e.nullContext||{},l(n,"results"),{name:"unionTypeBesideAny",hash:{},data:a,loc:{start:{line:14,column:34},end:{line:14,column:64}}}))?o:"")},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" request: {\n "+(null!=(o=e.invokePartial(l(r,"parametersType"),n,{name:"parametersType",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+" }\n"},11:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" "+(null!=(o=l(t,"hasProperty").call(null!=n?n:e.nullContext||{},l(n,"parameters"),"path",{name:"hasProperty",hash:{},fn:e.program(12,a,0),inverse:e.program(20,a,0),data:a,loc:{start:{line:25,column:2},end:{line:29,column:86}}}))?o:"")+"\n"},12:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"capitalizeFirstLetter").call(l,i(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:25,column:36},end:{line:25,column:66}}}))?o:"")+": ({ "+(null!=(o=i(t,"each").call(l,i(n,"parameters"),{name:"each",hash:{},fn:e.program(13,a,0),inverse:e.noop,data:a,loc:{start:{line:25,column:71},end:{line:26,column:50}}}))?o:"")+"\n }: { "+(null!=(o=i(t,"each").call(l,i(n,"parameters"),{name:"each",hash:{},fn:e.program(16,a,0),inverse:e.noop,data:a,loc:{start:{line:27,column:7},end:{line:28,column:100}}}))?o:"")+"\n }) => `"+(null!=(o=e.lambda(e.strict(n,"path",{start:{line:29,column:11},end:{line:29,column:15}}),n))?o:"")+"`,"},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"path",{name:"equals",hash:{},fn:e.program(14,a,0),inverse:e.noop,data:a,loc:{start:{line:25,column:91},end:{line:26,column:41}}}))?o:""},14:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:26,column:7},end:{line:26,column:11}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+","},16:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"path",{name:"equals",hash:{},fn:e.program(17,a,0),inverse:e.noop,data:a,loc:{start:{line:27,column:27},end:{line:28,column:91}}}))?o:""},17:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:28,column:9},end:{line:28,column:13}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"if",hash:{},fn:e.program(18,a,0),inverse:e.noop,data:a,loc:{start:{line:28,column:42},end:{line:28,column:80}}}))?o:"")},18:function(e,n,t,r,a){var o;return" = "+(null!=(o=e.lambda(e.strict(n,"default",{start:{line:28,column:63},end:{line:28,column:70}}),n))?o:"")},20:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"capitalizeFirstLetter").call(null!=n?n:e.nullContext||{},l(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:29,column:27},end:{line:29,column:57}}}))?o:"")+": '"+(null!=(o=e.lambda(e.strict(n,"path",{start:{line:29,column:62},end:{line:29,column:66}}),n))?o:"")+"',"},22:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"export const "+(null!=(o=i(l(n,"name",{start:{line:34,column:16},end:{line:34,column:20}}),n))?o:"")+(null!=(o=i(l(s(a,"root"),"postfix",{start:{line:34,column:26},end:{line:34,column:39}}),n))?o:"")+"Api = {\n"+(null!=(o=s(t,"each").call(null!=n?n:e.nullContext||{},s(n,"operations"),{name:"each",hash:{},fn:e.program(23,a,0),inverse:e.noop,data:a,loc:{start:{line:35,column:2},end:{line:41,column:11}}}))?o:"")+"}\n"},23:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:36,column:4},end:{line:36,column:8}}),n))?o:"")+": ("+(null!=(o=i(t,"hasLength").call(l,i(n,"parameters"),{name:"hasLength",hash:{},fn:e.program(24,a,0),inverse:e.noop,data:a,loc:{start:{line:36,column:13},end:{line:36,column:99}}}))?o:"")+") => httpApi."+(null!=(o=i(t,"mapHttpApiMethod").call(l,i(n,"name"),{name:"mapHttpApiMethod",hash:{},data:a,loc:{start:{line:36,column:112},end:{line:36,column:137}}}))?o:"")+"<"+(null!=(o=i(t,"capitalizeFirstLetter").call(l,i(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:36,column:138},end:{line:36,column:168}}}))?o:"")+"['response']>({\n url: `"+(null!=(o=i(t,"prefixHttpApiMethodParam").call(l,i(n,"path"),{name:"prefixHttpApiMethodParam",hash:{},data:a,loc:{start:{line:37,column:10},end:{line:37,column:43}}}))?o:"")+"`"+(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"query",{name:"hasProperty",hash:{},fn:e.program(26,a,0),inverse:e.noop,data:a,loc:{start:{line:37,column:44},end:{line:38,column:43}}}))?o:"")+(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"body",{name:"hasProperty",hash:{},fn:e.program(28,a,0),inverse:e.noop,data:a,loc:{start:{line:38,column:43},end:{line:39,column:35}}}))?o:"")+"\n }),\n"},24:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"data: "+(null!=(o=l(t,"capitalizeFirstLetter").call(null!=n?n:e.nullContext||{},l(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:36,column:44},end:{line:36,column:74}}}))?o:"")+"['request']"},26:function(e,n,t,r,a){return",\n queryParams: data.query"},28:function(e,n,t,r,a){return",\n body: data.body"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.strict,s=e.lambda,u=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(u(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n"+(null!=(o=u(t,"if").call(l,u(n,"imports"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:7,column:7}}}))?o:"")+(null!=(o=u(t,"if").call(l,u(u(a,"root"),"appendTemplate"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:10,column:7}}}))?o:"")+"\n"+(null!=(o=u(t,"each").call(l,u(n,"operations"),{name:"each",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:12,column:0},end:{line:21,column:9}}}))?o:"")+"\nexport const "+(null!=(o=s(i(n,"name",{start:{line:23,column:16},end:{line:23,column:20}}),n))?o:"")+(null!=(o=s(i(u(a,"root"),"postfix",{start:{line:23,column:26},end:{line:23,column:39}}),n))?o:"")+"Url = {\n"+(null!=(o=u(t,"each").call(l,u(n,"operations"),{name:"each",hash:{},fn:e.program(11,a,0),inverse:e.noop,data:a,loc:{start:{line:24,column:2},end:{line:30,column:11}}}))?o:"")+"}\n\n"+(null!=(o=u(t,"if").call(l,u(u(a,"root"),"appendTemplate"),{name:"if",hash:{},fn:e.program(22,a,0),inverse:e.noop,data:a,loc:{start:{line:33,column:0},end:{line:43,column:7}}}))?o:"")},usePartial:!0,useData:!0},yn={1:function(e,n,t,r,a){return"\nexport { ApiError } from './core/ApiError';\nexport { CancelablePromise } from './core/CancelablePromise';\nexport { OpenAPI } from './core/OpenAPI';\n"},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"models"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:9,column:0},end:{line:22,column:7}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"models"),{name:"each",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:11,column:0},end:{line:21,column:9}}}))?o:"")},5:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useUnionTypes"),{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.program(8,a,0),data:a,loc:{start:{line:12,column:0},end:{line:20,column:7}}}))?o:""},6:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return"export type { "+(null!=(o=i(l(n,"name",{start:{line:13,column:17},end:{line:13,column:21}}),n))?o:"")+" } from './models/"+(null!=(o=i(l(n,"name",{start:{line:13,column:45},end:{line:13,column:49}}),n))?o:"")+"';\n"},8:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"enum"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.program(11,a,0),data:a,loc:{start:{line:14,column:0},end:{line:20,column:0}}}))?o:""},9:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return"export { "+(null!=(o=i(l(n,"name",{start:{line:15,column:12},end:{line:15,column:16}}),n))?o:"")+" } from './models/"+(null!=(o=i(l(n,"name",{start:{line:15,column:40},end:{line:15,column:44}}),n))?o:"")+"';\n"},11:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"enums"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:16,column:0},end:{line:20,column:0}}}))?o:""},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"models"),{name:"if",hash:{},fn:e.program(14,a,0),inverse:e.noop,data:a,loc:{start:{line:25,column:0},end:{line:30,column:7}}}))?o:""},14:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"models"),{name:"each",hash:{},fn:e.program(15,a,0),inverse:e.noop,data:a,loc:{start:{line:27,column:0},end:{line:29,column:9}}}))?o:"")},15:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return"export { $"+(null!=(o=i(l(n,"name",{start:{line:28,column:13},end:{line:28,column:17}}),n))?o:"")+" } from './schemas/$"+(null!=(o=i(l(n,"name",{start:{line:28,column:43},end:{line:28,column:47}}),n))?o:"")+"';\n"},17:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"services"),{name:"if",hash:{},fn:e.program(18,a,0),inverse:e.noop,data:a,loc:{start:{line:34,column:0},end:{line:38,column:7}}}))?o:""},18:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"services"),{name:"each",hash:{},fn:e.program(19,a,0),inverse:e.noop,data:a,loc:{start:{line:35,column:0},end:{line:37,column:9}}}))?o:""},19:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"export { "+(null!=(o=i(l(n,"name",{start:{line:36,column:12},end:{line:36,column:16}}),n))?o:"")+(null!=(o=i(l(s(a,"root"),"postfix",{start:{line:36,column:22},end:{line:36,column:35}}),n))?o:"")+"Url } from './services/"+(null!=(o=i(l(n,"name",{start:{line:36,column:64},end:{line:36,column:68}}),n))?o:"")+(null!=(o=i(l(s(a,"root"),"postfix",{start:{line:36,column:74},end:{line:36,column:87}}),n))?o:"")+"';\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(i(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=i(t,"if").call(l,i(i(a,"root"),"exportCore"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:7,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(i(a,"root"),"exportModels"),{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:23,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(i(a,"root"),"exportSchemas"),{name:"if",hash:{},fn:e.program(13,a,0),inverse:e.noop,data:a,loc:{start:{line:24,column:0},end:{line:31,column:7}}}))?o:"")+"\n"+(null!=(o=i(t,"if").call(l,i(i(a,"root"),"exportServices"),{name:"if",hash:{},fn:e.program(17,a,0),inverse:e.noop,data:a,loc:{start:{line:33,column:0},end:{line:39,column:7}}}))?o:"")},usePartial:!0,useData:!0},vn={1:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"fetch",{name:"equals",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:2,column:53}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"xhr",{name:"equals",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:3,column:51}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"axios",{name:"equals",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:4,column:53}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"node",{name:"equals",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:0},end:{line:5,column:52}}}))?o:"")},2:function(e,n,t,r,a){return"Blob"},4:function(e,n,t,r,a){var o;return null!=(o=e.lambda(e.strict(n,"base",{start:{line:7,column:3},end:{line:7,column:7}}),n))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"base"),"binary",{name:"equals",hash:{},fn:e.program(1,a,0),inverse:e.program(4,a,0),data:a,loc:{start:{line:1,column:0},end:{line:8,column:13}}}))?o:""},useData:!0},gn={1:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:3,column:6},end:{line:3,column:17}}),n))?o:"")+"\n */\n"},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useUnionTypes"),{name:"unless",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:27,column:11}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\nexport namespace "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:10,column:20},end:{line:10,column:24}}),n))?o:"")+" {\n\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"enums"),{name:"each",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:12,column:4},end:{line:24,column:13}}}))?o:"")+"\n}\n"},5:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:13,column:4},end:{line:17,column:11}}}))?o:"")+" export enum "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:18,column:19},end:{line:18,column:23}}),n))?o:"")+" {\n"+(null!=(o=i(t,"each").call(l,i(n,"enum"),{name:"each",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a,loc:{start:{line:19,column:8},end:{line:21,column:17}}}))?o:"")+" }\n\n"},6:function(e,n,t,r,a){var o;return" /**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:15,column:10},end:{line:15,column:21}}),n))?o:"")+"\n */\n"},8:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return" "+(null!=(o=i(l(n,"name",{start:{line:20,column:11},end:{line:20,column:15}}),n))?o:"")+" = "+(null!=(o=i(l(n,"value",{start:{line:20,column:24},end:{line:20,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?o:"")+"export type "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:6,column:15},end:{line:6,column:19}}),n))?o:"")+" = "+(null!=(o=e.invokePartial(i(r,"type"),n,{name:"type",hash:{parent:i(n,"name")},data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+";\n"+(null!=(o=i(t,"if").call(l,i(n,"enums"),{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:7,column:0},end:{line:28,column:7}}}))?o:"")},usePartial:!0,useData:!0},Pn={1:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:3,column:6},end:{line:3,column:17}}),n))?o:"")+"\n */\n"},3:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:4},end:{line:12,column:11}}}))?o:"")+(null!=(o=i(t,"containsSpaces").call(l,i(n,"name"),{name:"containsSpaces",hash:{},fn:e.program(6,a,0),inverse:e.program(8,a,0),data:a,loc:{start:{line:13,column:4},end:{line:17,column:23}}}))?o:"")},4:function(e,n,t,r,a){var o;return" /**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:10,column:10},end:{line:10,column:21}}),n))?o:"")+"\n */\n"},6:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return' "'+(null!=(o=i(l(n,"name",{start:{line:14,column:8},end:{line:14,column:12}}),n))?o:"")+'" = '+(null!=(o=i(l(n,"value",{start:{line:14,column:22},end:{line:14,column:27}}),n))?o:"")+",\n"},8:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return" "+(null!=(o=i(l(n,"name",{start:{line:16,column:7},end:{line:16,column:11}}),n))?o:"")+" = "+(null!=(o=i(l(n,"value",{start:{line:16,column:20},end:{line:16,column:25}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?o:"")+"export enum "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:6,column:15},end:{line:6,column:19}}),n))?o:"")+" {\n"+(null!=(o=i(t,"each").call(l,i(n,"enum"),{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:7,column:4},end:{line:18,column:13}}}))?o:"")+"}"},useData:!0},bn={1:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:3,column:6},end:{line:3,column:17}}),n))?o:"")+"\n */\n"},3:function(e,n,t,r,a,o,l){var i,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(i=s(t,"if").call(null!=n?n:e.nullContext||{},s(n,"description"),{name:"if",hash:{},fn:e.program(4,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:8,column:4},end:{line:12,column:11}}}))?i:"")+" "+(null!=(i=e.invokePartial(s(r,"isReadOnly"),n,{name:"isReadOnly",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+(null!=(i=e.lambda(e.strict(n,"name",{start:{line:13,column:22},end:{line:13,column:26}}),n))?i:"")+(null!=(i=e.invokePartial(s(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+": "+(null!=(i=e.invokePartial(s(r,"type"),n,{name:"type",hash:{parent:s(l[1],"name")},data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+";\n"},4:function(e,n,t,r,a){var o;return" /**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:10,column:10},end:{line:10,column:21}}),n))?o:"")+"\n */\n"},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useUnionTypes"),{name:"unless",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:17,column:0},end:{line:36,column:11}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\nexport namespace "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:19,column:20},end:{line:19,column:24}}),n))?o:"")+" {\n\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"enums"),{name:"each",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a,loc:{start:{line:21,column:4},end:{line:33,column:13}}}))?o:"")+"\n}\n"},8:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:22,column:4},end:{line:26,column:11}}}))?o:"")+" export enum "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:27,column:19},end:{line:27,column:23}}),n))?o:"")+" {\n"+(null!=(o=i(t,"each").call(l,i(n,"enum"),{name:"each",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:28,column:8},end:{line:30,column:17}}}))?o:"")+" }\n\n"},9:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return" "+(null!=(o=i(l(n,"name",{start:{line:29,column:11},end:{line:29,column:15}}),n))?o:"")+" = "+(null!=(o=i(l(n,"value",{start:{line:29,column:24},end:{line:29,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a,o,l){var i,s=null!=n?n:e.nullContext||{},u=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(i=u(t,"if").call(s,u(n,"description"),{name:"if",hash:{},fn:e.program(1,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?i:"")+"export type "+(null!=(i=e.lambda(e.strict(n,"name",{start:{line:6,column:15},end:{line:6,column:19}}),n))?i:"")+" = {\n"+(null!=(i=u(t,"each").call(s,u(n,"properties"),{name:"each",hash:{},fn:e.program(3,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:7,column:4},end:{line:14,column:13}}}))?i:"")+"}\n"+(null!=(i=u(t,"if").call(s,u(n,"enums"),{name:"if",hash:{},fn:e.program(6,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:16,column:0},end:{line:37,column:7}}}))?i:"")},usePartial:!0,useData:!0,useDepths:!0},On={1:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:3,column:6},end:{line:3,column:17}}),n))?o:"")+"\n */\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"description"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?o:"")+"export type "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:6,column:15},end:{line:6,column:19}}),n))?o:"")+" = "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+";"},usePartial:!0,useData:!0},xn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */"},useData:!0},kn={1:function(e,n,t,r,a){return" | null"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"isNullable"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:32}}}))?o:""},useData:!0},Rn={1:function(e,n,t,r,a){return"readonly "},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:34}}}))?o:""},useData:!0},wn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(n,"isRequired"),{name:"unless",hash:{},fn:e.program(2,a,0),inverse:e.program(4,a,0),data:a,loc:{start:{line:2,column:0},end:{line:2,column:54}}}))?o:""},2:function(e,n,t,r,a){return"?"},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"if",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:23},end:{line:2,column:43}}}))?o:""},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(n,"isRequired"),{name:"unless",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:4,column:64}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"unless",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:22},end:{line:4,column:53}}}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useOptions"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?o:""},useData:!0},qn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useOptions"),{name:"if",hash:{},fn:e.program(2,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:2,column:0},end:{line:20,column:7}}}))?o:""},2:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n"+(null!=(o=i(t,"each").call(l,i(n,"parameters"),{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:6,column:9}}}))?o:"")+"}: {\n"+(null!=(o=i(t,"each").call(l,i(n,"parameters"),{name:"each",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:13,column:9}}}))?o:"")+"}"},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.lambda(e.strict(n,"name",{start:{line:5,column:3},end:{line:5,column:7}}),n))?o:"")+(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:10},end:{line:5,column:48}}}))?o:"")+",\n"},4:function(e,n,t,r,a){var o;return" = "+(null!=(o=e.lambda(e.strict(n,"default",{start:{line:5,column:31},end:{line:5,column:38}}),n))?o:"")},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"description"),{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:9,column:0},end:{line:11,column:7}}}))?o:"")+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:12,column:3},end:{line:12,column:7}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+",\n"},7:function(e,n,t,r,a){var o;return"/** "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:10,column:7},end:{line:10,column:18}}),n))?o:"")+" **/\n"},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"each",hash:{},fn:e.program(10,a,0),inverse:e.noop,data:a,loc:{start:{line:17,column:0},end:{line:19,column:9}}}))?o:"")},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.lambda(e.strict(n,"name",{start:{line:18,column:3},end:{line:18,column:7}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:18,column:36},end:{line:18,column:74}}}))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:21,column:7}}}))?o:""},usePartial:!0,useData:!0},Cn={1:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"path",{name:"hasProperty",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:10,column:16}}}))?o:"")+(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"query",{name:"hasProperty",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:11,column:0},end:{line:19,column:16}}}))?o:"")+(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"body",{name:"hasProperty",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:20,column:0},end:{line:28,column:16}}}))?o:"")},2:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"path: {\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:8,column:9}}}))?o:"")+"}\n"},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"path",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:2},end:{line:7,column:13}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:6,column:5},end:{line:6,column:9}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n"},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"query: {\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"each",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:13,column:0},end:{line:17,column:9}}}))?o:"")+"}\n"},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"query",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:14,column:2},end:{line:16,column:13}}}))?o:""},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"body: {\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"each",hash:{},fn:e.program(10,a,0),inverse:e.noop,data:a,loc:{start:{line:22,column:0},end:{line:26,column:9}}}))?o:"")+"}\n"},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"body",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:23,column:2},end:{line:25,column:13}}}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:29,column:7}}}))?o:""},usePartial:!0,useData:!0},jn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"results"),{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:2,column:66}}}))?o:""},2:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(a,"last"),{name:"unless",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:26},end:{line:2,column:57}}}))?o:"")},3:function(e,n,t,r,a){return" | "},5:function(e,n,t,r,a){return"void"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"results"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(5,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?o:""},usePartial:!0,useData:!0},An={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaInterface"),n,{name:"schemaInterface",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"enum",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:3,column:0},end:{line:17,column:0}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaEnum"),n,{name:"schemaEnum",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"array",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:5,column:0},end:{line:17,column:0}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaArray"),n,{name:"schemaArray",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"dictionary",{name:"equals",hash:{},fn:e.program(10,a,0),inverse:e.program(12,a,0),data:a,loc:{start:{line:7,column:0},end:{line:17,column:0}}}))?o:""},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaDictionary"),n,{name:"schemaDictionary",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},12:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"any-of",{name:"equals",hash:{},fn:e.program(13,a,0),inverse:e.program(15,a,0),data:a,loc:{start:{line:9,column:0},end:{line:17,column:0}}}))?o:""},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaComposition"),n,{name:"schemaComposition",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},15:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"all-of",{name:"equals",hash:{},fn:e.program(13,a,0),inverse:e.program(16,a,0),data:a,loc:{start:{line:11,column:0},end:{line:17,column:0}}}))?o:""},16:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"one-of",{name:"equals",hash:{},fn:e.program(13,a,0),inverse:e.program(17,a,0),data:a,loc:{start:{line:13,column:0},end:{line:17,column:0}}}))?o:""},17:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaGeneric"),n,{name:"schemaGeneric",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"interface",{name:"equals",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:17,column:11}}}))?o:""},usePartial:!0,useData:!0},Dn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" contains: "+(null!=(o=e.invokePartial(l(r,"schema"),l(n,"link"),{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+",\n"},3:function(e,n,t,r,a){var o;return" contains: {\n type: '"+(null!=(o=e.lambda(e.strict(n,"base",{start:{line:7,column:18},end:{line:7,column:22}}),n))?o:"")+"',\n },\n"},5:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:11,column:19},end:{line:11,column:29}}),n))?o:"")+",\n"},7:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:14,column:19},end:{line:14,column:29}}),n))?o:"")+",\n"},9:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:17,column:19},end:{line:17,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n type: 'array',\n"+(null!=(o=i(t,"if").call(l,i(n,"link"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:10,column:0},end:{line:12,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:13,column:0},end:{line:15,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:16,column:0},end:{line:18,column:7}}}))?o:"")+"}"},usePartial:!0,useData:!0},Tn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"schema"),n,{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(a,"last"),{name:"unless",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:46},end:{line:3,column:76}}}))?o:"")},2:function(e,n,t,r,a){return", "},4:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:5,column:19},end:{line:5,column:29}}),n))?o:"")+",\n"},6:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:8,column:19},end:{line:8,column:29}}),n))?o:"")+",\n"},8:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:11,column:19},end:{line:11,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n type: '"+(null!=(o=e.lambda(e.strict(n,"export",{start:{line:2,column:13},end:{line:2,column:19}}),n))?o:"")+"',\n contains: ["+(null!=(o=i(t,"each").call(l,i(n,"properties"),{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:15},end:{line:3,column:85}}}))?o:"")+"],\n"+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:6,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:7,column:0},end:{line:9,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a,loc:{start:{line:10,column:0},end:{line:12,column:7}}}))?o:"")+"}"},usePartial:!0,useData:!0},En={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" contains: "+(null!=(o=e.invokePartial(l(r,"schema"),l(n,"link"),{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+",\n"},3:function(e,n,t,r,a){var o;return" contains: {\n type: '"+(null!=(o=e.lambda(e.strict(n,"base",{start:{line:7,column:18},end:{line:7,column:22}}),n))?o:"")+"',\n },\n"},5:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:11,column:19},end:{line:11,column:29}}),n))?o:"")+",\n"},7:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:14,column:19},end:{line:14,column:29}}),n))?o:"")+",\n"},9:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:17,column:19},end:{line:17,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n type: 'dictionary',\n"+(null!=(o=i(t,"if").call(l,i(n,"link"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:10,column:0},end:{line:12,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:13,column:0},end:{line:15,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:16,column:0},end:{line:18,column:7}}}))?o:"")+"}"},usePartial:!0,useData:!0},In={1:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:4,column:19},end:{line:4,column:29}}),n))?o:"")+",\n"},3:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:7,column:19},end:{line:7,column:29}}),n))?o:"")+",\n"},5:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:10,column:19},end:{line:10,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n type: 'Enum',\n"+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:5,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:6,column:0},end:{line:8,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:9,column:0},end:{line:11,column:7}}}))?o:"")+"}"},useData:!0},Hn={1:function(e,n,t,r,a){var o;return" type: '"+(null!=(o=e.lambda(e.strict(n,"base",{start:{line:3,column:14},end:{line:3,column:18}}),n))?o:"")+"',\n"},3:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:6,column:19},end:{line:6,column:29}}),n))?o:"")+",\n"},5:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:9,column:19},end:{line:9,column:29}}),n))?o:"")+",\n"},7:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:12,column:19},end:{line:12,column:29}}),n))?o:"")+",\n"},9:function(e,n,t,r,a){var o;return" format: '"+(null!=(o=e.lambda(e.strict(n,"format",{start:{line:15,column:16},end:{line:15,column:22}}),n))?o:"")+"',\n"},11:function(e,n,t,r,a){var o;return" maximum: "+(null!=(o=e.lambda(e.strict(n,"maximum",{start:{line:18,column:16},end:{line:18,column:23}}),n))?o:"")+",\n"},13:function(e,n,t,r,a){var o;return" exclusiveMaximum: "+(null!=(o=e.lambda(e.strict(n,"exclusiveMaximum",{start:{line:21,column:25},end:{line:21,column:41}}),n))?o:"")+",\n"},15:function(e,n,t,r,a){var o;return" minimum: "+(null!=(o=e.lambda(e.strict(n,"minimum",{start:{line:24,column:16},end:{line:24,column:23}}),n))?o:"")+",\n"},17:function(e,n,t,r,a){var o;return" exclusiveMinimum: "+(null!=(o=e.lambda(e.strict(n,"exclusiveMinimum",{start:{line:27,column:25},end:{line:27,column:41}}),n))?o:"")+",\n"},19:function(e,n,t,r,a){var o;return" multipleOf: "+(null!=(o=e.lambda(e.strict(n,"multipleOf",{start:{line:30,column:19},end:{line:30,column:29}}),n))?o:"")+",\n"},21:function(e,n,t,r,a){var o;return" maxLength: "+(null!=(o=e.lambda(e.strict(n,"maxLength",{start:{line:33,column:18},end:{line:33,column:27}}),n))?o:"")+",\n"},23:function(e,n,t,r,a){var o;return" minLength: "+(null!=(o=e.lambda(e.strict(n,"minLength",{start:{line:36,column:18},end:{line:36,column:27}}),n))?o:"")+",\n"},25:function(e,n,t,r,a){var o;return" pattern: '"+(null!=(o=e.lambda(e.strict(n,"pattern",{start:{line:39,column:17},end:{line:39,column:24}}),n))?o:"")+"',\n"},27:function(e,n,t,r,a){var o;return" maxItems: "+(null!=(o=e.lambda(e.strict(n,"maxItems",{start:{line:42,column:17},end:{line:42,column:25}}),n))?o:"")+",\n"},29:function(e,n,t,r,a){var o;return" minItems: "+(null!=(o=e.lambda(e.strict(n,"minItems",{start:{line:45,column:17},end:{line:45,column:25}}),n))?o:"")+",\n"},31:function(e,n,t,r,a){var o;return" uniqueItems: "+(null!=(o=e.lambda(e.strict(n,"uniqueItems",{start:{line:48,column:20},end:{line:48,column:31}}),n))?o:"")+",\n"},33:function(e,n,t,r,a){var o;return" maxProperties: "+(null!=(o=e.lambda(e.strict(n,"maxProperties",{start:{line:51,column:22},end:{line:51,column:35}}),n))?o:"")+",\n"},35:function(e,n,t,r,a){var o;return" minProperties: "+(null!=(o=e.lambda(e.strict(n,"minProperties",{start:{line:54,column:22},end:{line:54,column:35}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n"+(null!=(o=i(t,"if").call(l,i(n,"type"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:4,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:0},end:{line:7,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:10,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:11,column:0},end:{line:13,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"format"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:14,column:0},end:{line:16,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"maximum"),{name:"if",hash:{},fn:e.program(11,a,0),inverse:e.noop,data:a,loc:{start:{line:17,column:0},end:{line:19,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"exclusiveMaximum"),{name:"if",hash:{},fn:e.program(13,a,0),inverse:e.noop,data:a,loc:{start:{line:20,column:0},end:{line:22,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"minimum"),{name:"if",hash:{},fn:e.program(15,a,0),inverse:e.noop,data:a,loc:{start:{line:23,column:0},end:{line:25,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"exclusiveMinimum"),{name:"if",hash:{},fn:e.program(17,a,0),inverse:e.noop,data:a,loc:{start:{line:26,column:0},end:{line:28,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"multipleOf"),{name:"if",hash:{},fn:e.program(19,a,0),inverse:e.noop,data:a,loc:{start:{line:29,column:0},end:{line:31,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"maxLength"),{name:"if",hash:{},fn:e.program(21,a,0),inverse:e.noop,data:a,loc:{start:{line:32,column:0},end:{line:34,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"minLength"),{name:"if",hash:{},fn:e.program(23,a,0),inverse:e.noop,data:a,loc:{start:{line:35,column:0},end:{line:37,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"pattern"),{name:"if",hash:{},fn:e.program(25,a,0),inverse:e.noop,data:a,loc:{start:{line:38,column:0},end:{line:40,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"maxItems"),{name:"if",hash:{},fn:e.program(27,a,0),inverse:e.noop,data:a,loc:{start:{line:41,column:0},end:{line:43,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"minItems"),{name:"if",hash:{},fn:e.program(29,a,0),inverse:e.noop,data:a,loc:{start:{line:44,column:0},end:{line:46,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"uniqueItems"),{name:"if",hash:{},fn:e.program(31,a,0),inverse:e.noop,data:a,loc:{start:{line:47,column:0},end:{line:49,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"maxProperties"),{name:"if",hash:{},fn:e.program(33,a,0),inverse:e.noop,data:a,loc:{start:{line:50,column:0},end:{line:52,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"minProperties"),{name:"if",hash:{},fn:e.program(35,a,0),inverse:e.noop,data:a,loc:{start:{line:53,column:0},end:{line:55,column:7}}}))?o:"")+"}"},useData:!0},Sn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"properties"),{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:4},end:{line:6,column:13}}}))?o:""},2:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:5,column:11},end:{line:5,column:15}}),n))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"schema"),n,{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+",\n"},4:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:10,column:19},end:{line:10,column:29}}),n))?o:"")+",\n"},6:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:13,column:19},end:{line:13,column:29}}),n))?o:"")+",\n"},8:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:16,column:19},end:{line:16,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n properties: {\n"+(null!=(o=i(t,"if").call(l,i(n,"properties"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:7,column:7}}}))?o:"")+" },\n"+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:9,column:0},end:{line:11,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:12,column:0},end:{line:14,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a,loc:{start:{line:15,column:0},end:{line:17,column:7}}}))?o:"")+"}"},usePartial:!0,useData:!0},$n={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeInterface"),n,{name:"typeInterface",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"reference",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:3,column:0},end:{line:19,column:0}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeReference"),n,{name:"typeReference",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"enum",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:5,column:0},end:{line:19,column:0}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeEnum"),n,{name:"typeEnum",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"array",{name:"equals",hash:{},fn:e.program(10,a,0),inverse:e.program(12,a,0),data:a,loc:{start:{line:7,column:0},end:{line:19,column:0}}}))?o:""},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeArray"),n,{name:"typeArray",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},12:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"dictionary",{name:"equals",hash:{},fn:e.program(13,a,0),inverse:e.program(15,a,0),data:a,loc:{start:{line:9,column:0},end:{line:19,column:0}}}))?o:""},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeDictionary"),n,{name:"typeDictionary",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},15:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"one-of",{name:"equals",hash:{},fn:e.program(16,a,0),inverse:e.program(18,a,0),data:a,loc:{start:{line:11,column:0},end:{line:19,column:0}}}))?o:""},16:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeUnion"),n,{name:"typeUnion",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},18:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"any-of",{name:"equals",hash:{},fn:e.program(16,a,0),inverse:e.program(19,a,0),data:a,loc:{start:{line:13,column:0},end:{line:19,column:0}}}))?o:""},19:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"all-of",{name:"equals",hash:{},fn:e.program(20,a,0),inverse:e.program(22,a,0),data:a,loc:{start:{line:15,column:0},end:{line:19,column:0}}}))?o:""},20:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeIntersection"),n,{name:"typeIntersection",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},22:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeGeneric"),n,{name:"typeGeneric",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"interface",{name:"equals",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:19,column:11}}}))?o:""},usePartial:!0,useData:!0},Nn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"Array<"+(null!=(o=e.invokePartial(l(r,"type"),l(n,"link"),{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+">"+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"Array<"+(null!=(o=e.invokePartial(l(r,"base"),n,{name:"base",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+">"+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"link"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?o:""},usePartial:!0,useData:!0},Bn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"Record<string, "+(null!=(o=e.invokePartial(l(r,"type"),l(n,"link"),{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+">"+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"Record<string, "+(null!=(o=e.invokePartial(l(r,"base"),n,{name:"base",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+">"+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"link"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?o:""},usePartial:!0,useData:!0},Ln={1:function(e,n,t,r,a){var o;return null!=(o=e.lambda(n,n))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"enumerator").call(null!=n?n:e.nullContext||{},l(n,"enum"),l(n,"parent"),l(n,"name"),{name:"enumerator",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:55}}}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0},Mn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"base"),n,{name:"base",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0},Un={1:function(e,n,t,r,a,o,l){var i,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n"+(null!=(i=s(t,"each").call(null!=n?n:e.nullContext||{},s(n,"properties"),{name:"each",hash:{},fn:e.program(2,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:14,column:9}}}))?i:"")+"}"+(null!=(i=e.invokePartial(s(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")},2:function(e,n,t,r,a,o,l){var i,s=null!=n?n:e.nullContext||{},u=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(i=u(t,"if").call(s,u(n,"description"),{name:"if",hash:{},fn:e.program(3,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:8,column:7}}}))?i:"")+(null!=(i=u(t,"if").call(s,u(l[1],"parent"),{name:"if",hash:{},fn:e.program(5,a,0,o,l),inverse:e.program(7,a,0,o,l),data:a,loc:{start:{line:9,column:0},end:{line:13,column:7}}}))?i:"")},3:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:6,column:6},end:{line:6,column:17}}),n))?o:"")+"\n */\n"},5:function(e,n,t,r,a,o,l){var i,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(i=e.invokePartial(s(r,"isReadOnly"),n,{name:"isReadOnly",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+(null!=(i=e.lambda(e.strict(n,"name",{start:{line:10,column:18},end:{line:10,column:22}}),n))?i:"")+(null!=(i=e.invokePartial(s(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+": "+(null!=(i=e.invokePartial(s(r,"type"),n,{name:"type",hash:{parent:s(l[1],"parent")},data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+";\n"},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"isReadOnly"),n,{name:"isReadOnly",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:12,column:18},end:{line:12,column:22}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+";\n"},9:function(e,n,t,r,a){return"any"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a,o,l){var i,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(i=s(t,"if").call(null!=n?n:e.nullContext||{},s(n,"properties"),{name:"if",hash:{},fn:e.program(1,a,0,o,l),inverse:e.program(9,a,0,o,l),data:a,loc:{start:{line:1,column:0},end:{line:18,column:9}}}))?i:""},usePartial:!0,useData:!0,useDepths:!0},Fn={1:function(e,n,t,r,a){var o;return null!=(o=e.lambda(n,n))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"intersection").call(null!=n?n:e.nullContext||{},l(n,"properties"),l(n,"parent"),{name:"intersection",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:60}}}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0},Wn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"base"),n,{name:"base",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0},_n={1:function(e,n,t,r,a){var o;return null!=(o=e.lambda(n,n))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"union").call(null!=n?n:e.nullContext||{},l(n,"properties"),l(n,"parent"),{name:"union",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:46}}}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0};function Vn(e){!function(e){h.registerHelper("unionTypeBesideAny",(function(e){const n=e.map((e=>e.type)),t=n.filter((e=>"any"!==e));return 0===t.length?n.join(" | "):t.join(" | ")})),h.registerHelper("capitalizeFirstLetter",(function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),h.registerHelper("hasProperty",(function(e,n,t){return e.map((e=>e.in)).find((e=>e===n))?t.fn(this):t.inverse(this)})),h.registerHelper("mapHttpApiMethod",(function(){switch(this.method){default:return"getDataViaApi";case"POST":return"postDataViaApi";case"PUT":return"putDataViaApi";case"DELETE":return"deleteDataViaApi"}})),h.registerHelper("httpApiMethodIsEqual",(function(e){return"GET"===this.method})),h.registerHelper("prefixHttpApiMethodParam",(function(){return this.path.replace(/\$\{/g,"${data.path.")})),h.registerHelper("debugPrint",(function(){return console.log(this),JSON.stringify(this)})),h.registerHelper("hasLength",(function(e,n){return e.length>0?n.fn(this):n.inverse(this)})),h.registerHelper("equals",(function(e,n,t){return e===n?t.fn(this):t.inverse(this)})),h.registerHelper("notEquals",(function(e,n,t){return e!==n?t.fn(this):t.inverse(this)})),h.registerHelper("containsSpaces",(function(e,n){return/\s+/.test(e)?n.fn(this):n.inverse(this)})),h.registerHelper("union",(function(n,t,r){const a=h.partials.type,o=n.map((n=>a(Object.assign(Object.assign(Object.assign({},e),n),{parent:t})))).filter(H);let l=o.join(" | ");return o.length>1&&(l=`(${l})`),r.fn(l)})),h.registerHelper("intersection",(function(n,t,r){const a=h.partials.type,o=n.map((n=>a(Object.assign(Object.assign(Object.assign({},e),n),{parent:t})))).filter(H);let l=o.join(" & ");return o.length>1&&(l=`(${l})`),r.fn(l)})),h.registerHelper("enumerator",(function(n,t,r,a){return!e.useUnionTypes&&t&&r?`${t}.${r}`:a.fn(n.map((e=>e.value)).filter(H).join(" | "))}))}(e);const n={index:h.template(yn),exports:{model:h.template(dn),schema:h.template(fn),service:h.template(hn)},core:{settings:h.template(an),apiError:h.template(we),apiRequestOptions:h.template(qe),apiResult:h.template(Ce),cancelablePromise:h.template(He),request:h.template(on)}};return h.registerPartial("exportEnum",h.template(Pn)),h.registerPartial("exportInterface",h.template(bn)),h.registerPartial("exportComposition",h.template(gn)),h.registerPartial("exportType",h.template(On)),h.registerPartial("header",h.template(xn)),h.registerPartial("isNullable",h.template(kn)),h.registerPartial("isReadOnly",h.template(Rn)),h.registerPartial("isRequired",h.template(wn)),h.registerPartial("parameters",h.template(qn)),h.registerPartial("parametersType",h.template(Cn)),h.registerPartial("result",h.template(jn)),h.registerPartial("schema",h.template(An)),h.registerPartial("schemaArray",h.template(Dn)),h.registerPartial("schemaDictionary",h.template(En)),h.registerPartial("schemaEnum",h.template(In)),h.registerPartial("schemaGeneric",h.template(Hn)),h.registerPartial("schemaInterface",h.template(Sn)),h.registerPartial("schemaComposition",h.template(Tn)),h.registerPartial("type",h.template($n)),h.registerPartial("typeArray",h.template(Nn)),h.registerPartial("typeDictionary",h.template(Bn)),h.registerPartial("typeEnum",h.template(Ln)),h.registerPartial("typeGeneric",h.template(Mn)),h.registerPartial("typeInterface",h.template(Un)),h.registerPartial("typeReference",h.template(Wn)),h.registerPartial("typeUnion",h.template(_n)),h.registerPartial("typeIntersection",h.template(Fn)),h.registerPartial("base",h.template(vn)),h.registerPartial("functions/catchErrors",h.template(Fe)),h.registerPartial("functions/getFormData",h.template(We)),h.registerPartial("functions/getQueryString",h.template(_e)),h.registerPartial("functions/getUrl",h.template(Ve)),h.registerPartial("functions/isBlob",h.template(ze)),h.registerPartial("functions/isDefined",h.template(Qe)),h.registerPartial("functions/isString",h.template(Je)),h.registerPartial("functions/isStringWithValue",h.template(Ze)),h.registerPartial("functions/isSuccess",h.template(Ge)),h.registerPartial("functions/base64",h.template(Ue)),h.registerPartial("functions/resolve",h.template(Xe)),h.registerPartial("fetch/getHeaders",h.template(Se)),h.registerPartial("fetch/getRequestBody",h.template($e)),h.registerPartial("fetch/getResponseBody",h.template(Ne)),h.registerPartial("fetch/getResponseHeader",h.template(Be)),h.registerPartial("fetch/sendRequest",h.template(Me)),h.registerPartial("fetch/request",h.template(Le)),h.registerPartial("xhr/getHeaders",h.template(ln)),h.registerPartial("xhr/getRequestBody",h.template(sn)),h.registerPartial("xhr/getResponseBody",h.template(un)),h.registerPartial("xhr/getResponseHeader",h.template(pn)),h.registerPartial("xhr/sendRequest",h.template(mn)),h.registerPartial("xhr/request",h.template(cn)),h.registerPartial("node/getHeaders",h.template(Ke)),h.registerPartial("node/getRequestBody",h.template(Ye)),h.registerPartial("node/getResponseBody",h.template(en)),h.registerPartial("node/getResponseHeader",h.template(nn)),h.registerPartial("node/sendRequest",h.template(rn)),h.registerPartial("node/request",h.template(tn)),h.registerPartial("axios/getHeaders",h.template(je)),h.registerPartial("axios/getRequestBody",h.template(Ae)),h.registerPartial("axios/getResponseBody",h.template(De)),h.registerPartial("axios/getResponseHeader",h.template(Te)),h.registerPartial("axios/sendRequest",h.template(Ie)),h.registerPartial("axios/request",h.template(Ee)),n}s.promisify(e.readFile);const zn=s.promisify(e.writeFile),Qn=s.promisify(e.copyFile),Jn=s.promisify(e.exists),Zn=y.default,Gn=e=>new Promise(((n,t)=>{v.default(e,(e=>{e?t(e):n()}))}));function Xn(e){let t=0,r=e.split(n.EOL);return r=r.map((e=>{e=e.trim().replace(/^\*/g," *");let n=t;(e.endsWith("(")||e.endsWith("{")||e.endsWith("["))&&t++,(e.startsWith(")")||e.startsWith("}")||e.startsWith("]"))&&n&&(t--,n--);const r=`${" ".repeat(n)}${e}`;return""===r.trim()?"":r})),r.join(n.EOL)}async function Kn(e,n,t,r,a,l,i,s,u,p,c,m,d){const f=o.resolve(process.cwd(),t),h=o.resolve(f,"core"),y=o.resolve(f,"models"),v=o.resolve(f,"schemas"),g=o.resolve(f,"services");if(P=process.cwd(),b=t,!o.relative(b,P).startsWith(".."))throw new Error("Output folder is not a subdirectory of the current working directory");var P,b;i&&(await Gn(h),await Zn(h),await async function(e,n,t,r,a){const l={httpClient:r,server:e.server,version:e.version};if(await zn(o.resolve(t,"OpenAPI.ts"),n.core.settings(l)),await zn(o.resolve(t,"ApiError.ts"),n.core.apiError({})),await zn(o.resolve(t,"ApiRequestOptions.ts"),n.core.apiRequestOptions({})),await zn(o.resolve(t,"ApiResult.ts"),n.core.apiResult({})),await zn(o.resolve(t,"CancelablePromise.ts"),n.core.cancelablePromise({})),await zn(o.resolve(t,"request.ts"),n.core.request(l)),a){const e=o.resolve(process.cwd(),a);if(!await Jn(e))throw new Error(`Custom request file "${e}" does not exists`);await Qn(e,o.resolve(t,"request.ts"))}}(e,n,h,r,m)),s&&(await Gn(g),await Zn(g),await async function(e,n,t,r,a,l,i,s){for(const u of e){const e=o.resolve(t,`${u.name}${i}.ts`),p=u.operations.some((e=>e.path.includes("OpenAPI.VERSION"))),c=n.exports.service(Object.assign(Object.assign({},u),{httpClient:r,useUnionTypes:a,useVersion:p,useOptions:l,postfix:i,appendTemplate:s}));await zn(e,Xn(c))}}(e.services,n,g,r,l,a,c,d)),p&&(await Gn(v),await Zn(v),await async function(e,n,t,r,a){for(const l of e){const e=o.resolve(t,`$${l.name}.ts`),i=n.exports.schema(Object.assign(Object.assign({},l),{httpClient:r,useUnionTypes:a}));await zn(e,Xn(i))}}(e.models,n,v,r,l)),u&&(await Gn(y),await Zn(y),await async function(e,n,t,r,a){for(const l of e){const e=o.resolve(t,`${l.name}.ts`),i=n.exports.model(Object.assign(Object.assign({},l),{httpClient:r,useUnionTypes:a}));await zn(e,Xn(i))}}(e.models,n,y,r,l)),(i||s||p||u)&&(await Zn(f),await async function(e,n,t,r,a,l,i,s,u){var p,c;await zn(o.resolve(t,"index.ts"),n.index({exportCore:a,exportServices:l,exportModels:i,exportSchemas:s,useUnionTypes:r,postfix:u,server:e.server,version:e.version,models:(c=e.models,c.sort(((e,n)=>{const t=e.name.toLowerCase(),r=n.name.toLowerCase();return t.localeCompare(r,"en")}))),services:(p=e.services,p.sort(((e,n)=>{const t=e.name.toLowerCase(),r=n.name.toLowerCase();return t.localeCompare(r,"en")})))}))}(e,n,f,l,i,s,u,p,c))}const Yn=require("api-spec-converter"),et=require("shelljs");async function nt({input:e,output:n,httpClient:t=exports.HttpClient.FETCH,useOptions:r=!1,useUnionTypes:a=!1,exportCore:o=!0,exportServices:l=!0,exportModels:i=!0,exportSchemas:s=!1,postfix:u="Service",request:p,write:c=!0,selectedOnly:m=!1,appendTemplate:d=""}){const h="string"==typeof e?await async function(e){return await f.default.bundle(e,e,{})}(e):e;const y=function(e){const n=e.swagger||e.openapi;if("string"==typeof n){const e=n.charAt(0),t=Number.parseInt(e);if(t===ve.V2||t===ve.V3)return t}throw new Error(`Unsupported Open API version: "${String(n)}"`)}(h),v=Vn({httpClient:t,useUnionTypes:a,useOptions:!1});switch(y){case ve.V2:{const e=Re(V(h));if(!c)break;await Kn(e,v,n,t,!1,a,!1,l,i,!1,u,p,d);break}case ve.V3:{const e=Re(ye(h,m));if(!c)break;await Kn(e,v,n,t,!1,a,!1,l,i,!1,u,p,d);break}}}exports.convertAndGenerate=async function({from:e,source:n},{input:t,output:r,useOptions:a,useUnionTypes:o},l=[],i=!1,s,u,p){try{new RegExp("((git|ssh|http(s)?)|(git@[w.]+))(:(//)?)([w.@:/-~]+)(.git)(/)?").test(n)&&(et.exec(`git archive --remote=${n} | tar -xO > ./api-schema.json`),"string"==typeof t&&(n=t));let c=await Yn.convert({from:e,to:e,source:n});l.forEach((e=>{process.stdout.clearLine(0),process.stdout.cursorTo(0),process.stdout.write(`Processing ${e.originalUrl} ${e.method} ${e.methodName}`),c.spec.paths[e.originalUrl][e.method].operationId=e.methodName})),process.stdout.clearLine(0),process.stdout.cursorTo(0),process.stdout.write("\n"),c.spec.paths=Object.fromEntries(Object.entries(c.spec.paths).map((e=>{const n=l.find((n=>n.originalUrl===e[0]));return n&&n.proxyUrl?[n.proxyUrl,e[1]]:i&&!n?[null,e[1]]:p&&-1!==e[0].indexOf(p.replace)?[e[0].replace(p.replace,p.with),e[1]]:[e[0],e[1]]})).filter((e=>null!==e[0]))),c=c.stringify(),s&&s.forEach((e=>{c=c.replace(new RegExp(e.fromRegExp,"g"),e.newModelName)})),"string"==typeof t&&m.default.writeFileSync(t,c),nt({input:t,output:r,useOptions:a,useUnionTypes:o,selectedOnly:i,appendTemplate:u})}catch(e){throw process.stdout.write("\n"),e}},exports.defineConfig=function(e){return e},exports.generate=nt;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("fs"),n=require("os"),t=require("camelcase"),r=require("json-schema-ref-parser"),a=require("handlebars/runtime"),o=require("path"),l=require("mkdirp"),i=require("rimraf"),s=require("util");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function p(e){if(e&&e.__esModule)return e;var n=Object.create(null);return e&&Object.keys(e).forEach((function(t){if("default"!==t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}})),n.default=e,Object.freeze(n)}var c,m=u(e),d=u(t),f=u(r),h=p(a),y=u(l),v=u(i);function g(e){return null==e?void 0:e.replace(/\\/g,"\\\\")}function P(e,n){const t=n["x-enum-varnames"],r=n["x-enum-descriptions"];return e.map(((e,n)=>({name:(null==t?void 0:t[n])||e.name,description:(null==r?void 0:r[n])||e.description,value:e.value,type:e.type})))}function b(e){return e?e.replace(/(\*\/)/g,"*_/").replace(/\r?\n(.*)/g,((e,t)=>`${n.EOL} * ${t.trim()}`)):null}function O(e){return null!=e&&""!==e}function x(e){return Array.isArray(e)?e.filter(((e,n,t)=>t.indexOf(e)===n)).filter(O).map((e=>"number"==typeof e?{name:`'_${e}'`,value:String(e),type:"number",description:null}:{name:String(e).replace(/\W+/g,"_").replace(/^(\d+)/g,"_$1").replace(/([a-z])([A-Z]+)/g,"$1_$2").toUpperCase(),value:`'${e}'`,type:"string",description:null})):[]}function k(e){if(/^(\w+=[0-9]+)/g.test(e)){const n=e.match(/(\w+=[0-9]+,?)/g);if(n){const e=[];return n.forEach((n=>{const t=n.split("=")[0],r=parseInt(n.split("=")[1].replace(/[^0-9]/g,""));t&&Number.isInteger(r)&&e.push({name:t.replace(/\W+/g,"_").replace(/^(\d+)/g,"_$1").replace(/([a-z])([A-Z]+)/g,"$1_$2").toUpperCase(),value:String(r),type:"number",description:null})})),e.filter(((e,n,t)=>t.map((e=>e.name)).indexOf(e.name)===n))}}return[]}function R(e){if(e){if(!/^[a-zA-Z_$][\w$]+$/g.test(e))return`'${e}'`}return e}exports.HttpClient=void 0,(c=exports.HttpClient||(exports.HttpClient={})).FETCH="fetch",c.XHR="xhr",c.NODE="node",c.AXIOS="axios";const w=new Map([["File","binary"],["file","binary"],["any","any"],["object","any"],["array","any[]"],["boolean","boolean"],["byte","number"],["int","number"],["integer","number"],["float","number"],["double","number"],["short","number"],["long","number"],["number","number"],["char","string"],["date","string"],["date-time","string"],["password","string"],["string","string"],["void","void"],["null","null"]]);function q(e){return e.replace(/^[^a-zA-Z_$]+/g,"").replace(/[^\w$]+/g,"_")}function C(e="any",n){const t={type:"any",base:"any",template:null,imports:[],isNullable:!1},r=function(e,n){return"binary"===n?"binary":w.get(e)}(e,n);if(r)return t.type=r,t.base=r,t;const a=decodeURIComponent(e.trim().replace(/^#\/definitions\//,"").replace(/^#\/parameters\//,"").replace(/^#\/responses\//,"").replace(/^#\/securityDefinitions\//,""));if(/\[.*\]$/g.test(a)){const e=a.match(/(.*?)\[(.*)\]$/);if(null==e?void 0:e.length){const n=C(q(e[1])),r=C(q(e[2]));return"any[]"===n.type?(t.type=`${r.type}[]`,t.base=r.type,n.imports=[]):r.type?(t.type=`${n.type}<${r.type}>`,t.base=n.type,t.template=r.type):(t.type=n.type,t.base=n.type,t.template=n.type),t.imports.push(...n.imports),t.imports.push(...r.imports),t}}if(a){const e=q(a);return t.type=e,t.base=e,t.imports.push(e),t}return t}function j(e,n,t){var r;const a=[];for(const o in n.properties)if(n.properties.hasOwnProperty(o)){const l=n.properties[o],i=!!(null===(r=n.required)||void 0===r?void 0:r.includes(o));if(l.$ref){const e=C(l.$ref);a.push({name:R(o),export:"reference",type:e.type,base:e.base,template:e.template,link:null,description:b(l.description),isDefinition:!1,isReadOnly:!0===l.readOnly,isRequired:i,isNullable:!0===l["x-nullable"],format:l.format,maximum:l.maximum,exclusiveMaximum:l.exclusiveMaximum,minimum:l.minimum,exclusiveMinimum:l.exclusiveMinimum,multipleOf:l.multipleOf,maxLength:l.maxLength,minLength:l.minLength,maxItems:l.maxItems,minItems:l.minItems,uniqueItems:l.uniqueItems,maxProperties:l.maxProperties,minProperties:l.minProperties,pattern:g(l.pattern),imports:e.imports,enum:[],enums:[],properties:[]})}else{const n=t(e,l);a.push({name:R(o),export:n.export,type:n.type,base:n.base,template:n.template,link:n.link,description:b(l.description),isDefinition:!1,isReadOnly:!0===l.readOnly,isRequired:i,isNullable:!0===l["x-nullable"],format:l.format,maximum:l.maximum,exclusiveMaximum:l.exclusiveMaximum,minimum:l.minimum,exclusiveMinimum:l.exclusiveMinimum,multipleOf:l.multipleOf,maxLength:l.maxLength,minLength:l.minLength,maxItems:l.maxItems,minItems:l.minItems,uniqueItems:l.uniqueItems,maxProperties:l.maxProperties,minProperties:l.minProperties,pattern:g(l.pattern),imports:n.imports,enum:n.enum,enums:n.enums,properties:n.properties})}}return a}const A=/~1/g,D=/~0/g;function T(e,n){if(n.$ref){const t=n.$ref.replace(/^#/g,"").split("/").filter((e=>e));let r=e;return t.forEach((e=>{const t=decodeURIComponent(e.replace(A,"/").replace(D,"~"));if(!r.hasOwnProperty(t))throw new Error(`Could not find reference: "${n.$ref}"`);r=r[t]})),r}return n}function I(e,n,t,r,a){const o={type:r,imports:[],enums:[],properties:[]},l=[];if(t.map((n=>a(e,n))).filter((e=>{const n=e.properties.length,t=e.enums.length;return!("any"===e.type&&!n&&!t)})).forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),o.properties.push(e)})),n.required){const r=function(e,n,t,r){return t.reduce(((n,t)=>{if(t.$ref){const a=T(e,t);return[...n,...r(e,a).properties]}return[...n,...r(e,t).properties]}),[]).filter((e=>!e.isRequired&&n.includes(e.name))).map((e=>Object.assign(Object.assign({},e),{isRequired:!0})))}(e,n.required,t,a);r.forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums)})),l.push(...r)}if(n.properties){const t=j(e,n,a);t.forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),"enum"===e.export&&o.enums.push(e)})),l.push(...t)}return l.length&&o.properties.push({name:"properties",export:"interface",type:"any",base:"any",template:null,link:null,description:"",isDefinition:!1,isReadOnly:!1,isNullable:!1,isRequired:!1,imports:[],enum:[],enums:[],properties:l}),o}function E(e,n,t=!1,r=""){var a;const o={name:r,export:"interface",type:"any",base:"any",template:null,link:null,description:b(n.description),isDefinition:t,isReadOnly:!0===n.readOnly,isNullable:!0===n["x-nullable"],isRequired:!1,format:n.format,maximum:n.maximum,exclusiveMaximum:n.exclusiveMaximum,minimum:n.minimum,exclusiveMinimum:n.exclusiveMinimum,multipleOf:n.multipleOf,maxLength:n.maxLength,minLength:n.minLength,maxItems:n.maxItems,minItems:n.minItems,uniqueItems:n.uniqueItems,maxProperties:n.maxProperties,minProperties:n.minProperties,pattern:g(n.pattern),imports:[],enum:[],enums:[],properties:[]};if(n.$ref){const e=C(n.$ref);return o.export="reference",o.type=e.type,o.base=e.base,o.template=e.template,o.imports.push(...e.imports),o}if(n.enum&&"boolean"!==n.type){const e=P(x(n.enum),n);if(e.length)return o.export="enum",o.type="string",o.base="string",o.enum.push(...e),o}if(("int"===n.type||"integer"===n.type)&&n.description){const e=k(n.description);if(e.length)return o.export="enum",o.type="number",o.base="number",o.enum.push(...e),o}if("array"===n.type&&n.items){if(n.items.$ref){const e=C(n.items.$ref);return o.export="array",o.type=e.type,o.base=e.base,o.template=e.template,o.imports.push(...e.imports),o}{const t=E(e,n.items);return o.export="array",o.type=t.type,o.base=t.base,o.template=t.template,o.link=t,o.imports.push(...t.imports),o}}if("object"===n.type&&"object"==typeof n.additionalProperties){if(n.additionalProperties.$ref){const e=C(n.additionalProperties.$ref);return o.export="dictionary",o.type=e.type,o.base=e.base,o.template=e.template,o.imports.push(...e.imports),o}{const t=E(e,n.additionalProperties);return o.export="dictionary",o.type=t.type,o.base=t.base,o.template=t.template,o.link=t,o.imports.push(...t.imports),o}}if(null===(a=n.allOf)||void 0===a?void 0:a.length){const t=I(e,n,n.allOf,"all-of",E);return o.export=t.type,o.imports.push(...t.imports),o.properties.push(...t.properties),o.enums.push(...t.enums),o}if("object"===n.type){if(o.export="interface",o.type="any",o.base="any",n.properties){j(e,n,E).forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),o.properties.push(e),"enum"===e.export&&o.enums.push(e)}))}return o}if(n.type){const e=C(n.type,n.format);return o.export="generic",o.type=e.type,o.base=e.base,o.template=e.template,o.imports.push(...e.imports),o}return o}function H(e,n,t){return t.indexOf(e)===n}function S(e,n){var t;if(void 0===e.default)return;if(null===e.default)return"null";switch(e.type||typeof e.default){case"int":case"integer":case"number":return"enum"===n.export&&(null===(t=n.enum)||void 0===t?void 0:t[e.default])?n.enum[e.default].value:e.default;case"boolean":return JSON.stringify(e.default);case"string":return`'${e.default}'`;case"object":try{return JSON.stringify(e.default,null,4)}catch(e){}}}const $=/^(arguments|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|eval|export|extends|false|finally|for|function|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)$/g;function N(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n).replace($,"_$1")}function B(e,n){const t={imports:[],parameters:[],parametersPath:[],parametersQuery:[],parametersForm:[],parametersCookie:[],parametersHeader:[],parametersBody:null};return n.forEach((n=>{const r=T(e,n),a=function(e,n){var t;const r={in:n.in,prop:n.name,export:"interface",name:N(n.name),type:"any",base:"any",template:null,link:null,description:b(n.description),isDefinition:!1,isReadOnly:!1,isRequired:!0===n.required,isNullable:!0===n["x-nullable"],format:n.format,maximum:n.maximum,exclusiveMaximum:n.exclusiveMaximum,minimum:n.minimum,exclusiveMinimum:n.exclusiveMinimum,multipleOf:n.multipleOf,maxLength:n.maxLength,minLength:n.minLength,maxItems:n.maxItems,minItems:n.minItems,uniqueItems:n.uniqueItems,pattern:g(n.pattern),imports:[],enum:[],enums:[],properties:[],mediaType:null};if(n.$ref){const e=C(n.$ref);return r.export="reference",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}if(n.enum){const e=P(x(n.enum),n);if(e.length)return r.export="enum",r.type="string",r.base="string",r.enum.push(...e),r.default=S(n,r),r}if(("int"===n.type||"integer"===n.type)&&n.description){const e=k(n.description);if(e.length)return r.export="enum",r.type="number",r.base="number",r.enum.push(...e),r.default=S(n,r),r}if("array"===n.type&&n.items){const e=C(n.items.type,n.items.format);return r.export="array",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}if("object"===n.type&&n.items){const e=C(n.items.type,n.items.format);return r.export="dictionary",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}let a=n.schema;if(a){if((null===(t=a.$ref)||void 0===t?void 0:t.startsWith("#/parameters/"))&&(a=T(e,a)),a.$ref){const e=C(a.$ref);return r.export="reference",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}{const t=E(e,a);return r.export=t.export,r.type=t.type,r.base=t.base,r.template=t.template,r.link=t.link,r.imports.push(...t.imports),r.enum.push(...t.enum),r.enums.push(...t.enums),r.properties.push(...t.properties),r.default=S(n,r),r}}if(n.type){const e=C(n.type,n.format);return r.export="generic",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=S(n,r),r}return r}(e,r);if("api-version"!==a.prop)switch(a.in){case"path":t.parametersPath.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"query":t.parametersQuery.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"header":t.parametersHeader.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"formData":t.parametersForm.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"body":t.parametersBody=a,t.parameters.push(a),t.imports.push(...a.imports)}})),t}function L(e,n,t){var r;const a={in:"response",name:"",code:t,description:b(n.description),export:"generic",type:"any",base:"any",template:null,link:null,isDefinition:!1,isReadOnly:!1,isRequired:!1,isNullable:!1,imports:[],enum:[],enums:[],properties:[]};let o=n.schema;if(o){if((null===(r=o.$ref)||void 0===r?void 0:r.startsWith("#/responses/"))&&(o=T(e,o)),o.$ref){const e=C(o.$ref);return a.export="reference",a.type=e.type,a.base=e.base,a.template=e.template,a.imports.push(...e.imports),a}{const n=E(e,o);return a.export=n.export,a.type=n.type,a.base=n.base,a.template=n.template,a.link=n.link,a.isReadOnly=n.isReadOnly,a.isRequired=n.isRequired,a.isNullable=n.isNullable,a.format=n.format,a.maximum=n.maximum,a.exclusiveMaximum=n.exclusiveMaximum,a.minimum=n.minimum,a.exclusiveMinimum=n.exclusiveMinimum,a.multipleOf=n.multipleOf,a.maxLength=n.maxLength,a.minLength=n.minLength,a.maxItems=n.maxItems,a.minItems=n.minItems,a.uniqueItems=n.uniqueItems,a.maxProperties=n.maxProperties,a.minProperties=n.minProperties,a.pattern=g(n.pattern),a.imports.push(...n.imports),a.enum.push(...n.enum),a.enums.push(...n.enums),a.properties.push(...n.properties),a}}if(n.headers)for(const e in n.headers)if(n.headers.hasOwnProperty(e))return a.in="header",a.name=e,a.type="string",a.base="string",a;return a}function M(e){if("default"===e)return 200;if(/[0-9]+/g.test(e)){const n=parseInt(e);if(Number.isInteger(n))return Math.abs(n)}return null}function U(e,n){const t=e.type===n.type&&e.base===n.base&&e.template===n.template;return t&&e.link&&n.link?U(e.link,n.link):t}function F(e){const n=[];return e.forEach((e=>{const{code:t}=e;t&&204!==t&&t>=200&&t<300&&n.push(e)})),n.length||n.push({in:"response",name:"",code:200,description:"",export:"generic",type:"void",base:"void",template:null,link:null,isDefinition:!1,isReadOnly:!1,isRequired:!1,isNullable:!1,imports:[],enum:[],enums:[],properties:[]}),n.filter(((e,n,t)=>t.findIndex((n=>U(n,e)))===n))}function W(e,n){const t=e.isRequired&&void 0===e.default,r=n.isRequired&&void 0===n.default;return t&&!r?-1:r&&!t?1:0}function _(e,n,t,r,a,o){const l=function(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n,{pascalCase:!0})}(r),i=`${t}${l}`,s=function(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n)}(a.operationId||i),u=function(e){return e.replace(/\{(.*?)\}/g,((e,n)=>`\${${N(n)}}`)).replace("${apiVersion}","${OpenAPI.VERSION}")}(n),p={service:l,name:s,summary:b(a.summary),description:b(a.description),deprecated:!0===a.deprecated,method:t.toUpperCase(),path:u,parameters:[...o.parameters],parametersPath:[...o.parametersPath],parametersQuery:[...o.parametersQuery],parametersForm:[...o.parametersForm],parametersHeader:[...o.parametersHeader],parametersCookie:[...o.parametersCookie],parametersBody:o.parametersBody,imports:[],errors:[],results:[],responseHeader:null};if(a.parameters){const n=B(e,a.parameters);p.imports.push(...n.imports),p.parameters.push(...n.parameters),p.parametersPath.push(...n.parametersPath),p.parametersQuery.push(...n.parametersQuery),p.parametersForm.push(...n.parametersForm),p.parametersHeader.push(...n.parametersHeader),p.parametersCookie.push(...n.parametersCookie),p.parametersBody=n.parametersBody}if(a.responses){const n=function(e,n){const t=[];for(const r in n)if(n.hasOwnProperty(r)){const a=T(e,n[r]),o=M(r);if(o){const n=L(e,a,o);t.push(n)}}return t.sort(((e,n)=>e.code<n.code?-1:e.code>n.code?1:0))}(e,a.responses),t=F(n);p.errors=function(e){return e.filter((e=>e.code>=300&&e.description)).map((e=>{return{code:e.code,description:(n=e.description,n.replace(/([^\\])`/g,"$1\\`").replace(/(\*\/)/g,"*_/"))};var n}))}(n),p.responseHeader=function(e){const n=e.find((e=>"header"===e.in));return n?n.name:null}(t),t.forEach((e=>{p.results.push(e),p.imports.push(...e.imports)}))}return p.parameters=p.parameters.sort(W),p}function V(e){const n=function(e="1.0"){return String(e).replace(/^v/gi,"")}(e.info.version),t=function(e){var n;const t=(null===(n=e.schemes)||void 0===n?void 0:n[0])||"http",r=e.host,a=e.basePath||"";return(r?`${t}://${r}${a}`:a).replace(/\/$/g,"")}(e),r=function(e){const n=[];for(const t in e.definitions)if(e.definitions.hasOwnProperty(t)){const r=E(e,e.definitions[t],!0,C(t).base);n.push(r)}return n}(e),a=function(e){var n;const t=new Map;for(const r in e.paths)if(e.paths.hasOwnProperty(r)){const a=e.paths[r],o=B(e,a.parameters||[]);for(const l in a)if(a.hasOwnProperty(l))switch(l){case"get":case"put":case"post":case"delete":case"options":case"head":case"patch":const i=a[l];((null===(n=i.tags)||void 0===n?void 0:n.filter(H))||["Service"]).forEach((n=>{const a=_(e,r,l,n,i,o),s=t.get(a.service)||{name:a.service,operations:[],imports:[]};s.operations.push(a),s.imports.push(...a.imports),t.set(a.service,s)}))}}return Array.from(t.values())}(e);return{version:n,server:t,models:r,services:a}}function z(e){return e?e.replace(/(\*\/)/g,"*_/").replace(/\r?\n(.*)/g,((e,t)=>`${n.EOL} * ${t.trim()}`)):null}function Q(e){if(e){if(!/^[a-zA-Z_$][\w$]+$/g.test(e))return`'${e}'`}return e}const J=new Map([["File","binary"],["file","binary"],["any","any"],["object","any"],["array","any[]"],["boolean","boolean"],["byte","number"],["int","number"],["integer","number"],["float","number"],["double","number"],["short","number"],["long","number"],["number","number"],["char","string"],["date","string"],["date-time","string"],["password","string"],["string","string"],["void","void"],["null","null"]]);function Z(e,n){return"binary"===n?"binary":J.get(e)}function G(e){return e.replace(/^[^a-zA-Z_$]+/g,"").replace(/[^\w$]+/g,"_")}function X(e="any",n){const t={type:"any",base:"any",template:null,imports:[],isNullable:!1};if(Array.isArray(e)){const r=e.filter((e=>"null"!==e)).map((e=>Z(e,n))).filter(O).join(" | ");return t.type=r,t.base=r,t.isNullable=e.includes("null"),t}const r=Z(e,n);if(r)return t.type=r,t.base=r,t;const a=decodeURIComponent(e.trim().replace(/^#\/components\/schemas\//,"").replace(/^#\/components\/responses\//,"").replace(/^#\/components\/parameters\//,"").replace(/^#\/components\/examples\//,"").replace(/^#\/components\/requestBodies\//,"").replace(/^#\/components\/headers\//,"").replace(/^#\/components\/securitySchemes\//,"").replace(/^#\/components\/links\//,"").replace(/^#\/components\/callbacks\//,""));if(/\[.*\]$/g.test(a)){const e=a.match(/(.*?)\[(.*)\]$/);if(null==e?void 0:e.length){const n=X(G(e[1])),r=X(G(e[2]));return"any[]"===n.type?(t.type=`${r.type}[]`,t.base=`${r.type}`,n.imports=[]):r.type?(t.type=`${n.type}<${r.type}>`,t.base=n.type,t.template=r.type):(t.type=n.type,t.base=n.type,t.template=n.type),t.imports.push(...n.imports),t.imports.push(...r.imports),t}}if(a){const e=G(a);return t.type=e,t.base=e,t.imports.push(e),t}return t}function K(e,n,t){var r;const a=[];for(const o in n.properties)if(n.properties.hasOwnProperty(o)){const l=n.properties[o],i=!!(null===(r=n.required)||void 0===r?void 0:r.includes(o));if(l.$ref){const e=X(l.$ref);a.push({name:Q(o),export:"reference",type:e.type,base:e.base,template:e.template,link:null,description:z(l.description),isDefinition:!1,isReadOnly:!0===l.readOnly,isRequired:i,isNullable:e.isNullable||!0===l.nullable,format:l.format,maximum:l.maximum,exclusiveMaximum:l.exclusiveMaximum,minimum:l.minimum,exclusiveMinimum:l.exclusiveMinimum,multipleOf:l.multipleOf,maxLength:l.maxLength,minLength:l.minLength,maxItems:l.maxItems,minItems:l.minItems,uniqueItems:l.uniqueItems,maxProperties:l.maxProperties,minProperties:l.minProperties,pattern:g(l.pattern),imports:e.imports,enum:[],enums:[],properties:[]})}else{const n=t(e,l);a.push({name:Q(o),export:n.export,type:n.type,base:n.base,template:n.template,link:n.link,description:z(l.description),isDefinition:!1,isReadOnly:!0===l.readOnly,isRequired:i,isNullable:n.isNullable||!0===l.nullable,format:l.format,maximum:l.maximum,exclusiveMaximum:l.exclusiveMaximum,minimum:l.minimum,exclusiveMinimum:l.exclusiveMinimum,multipleOf:l.multipleOf,maxLength:l.maxLength,minLength:l.minLength,maxItems:l.maxItems,minItems:l.minItems,uniqueItems:l.uniqueItems,maxProperties:l.maxProperties,minProperties:l.minProperties,pattern:g(l.pattern),imports:n.imports,enum:n.enum,enums:n.enums,properties:n.properties})}}return a}const Y=/~1/g,ee=/~0/g;function ne(e,n){if(n.$ref){const t=n.$ref.replace(/^#/g,"").split("/").filter((e=>e));let r=e;return t.forEach((e=>{const t=decodeURIComponent(e.replace(Y,"/").replace(ee,"~"));if(!r.hasOwnProperty(t))throw new Error(`Could not find reference: "${n.$ref}"`);r=r[t]})),r}return n}function te(e,n,t,r,a){const o={type:r,imports:[],enums:[],properties:[]},l=[];if(t.map((n=>a(e,n))).filter((e=>{const n=e.properties.length,t=e.enums.length;return!("any"===e.type&&!n&&!t)})).forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),o.properties.push(e)})),n.required){const r=function(e,n,t,r){return t.reduce(((n,t)=>{if(t.$ref){const a=ne(e,t);return[...n,...r(e,a).properties]}return[...n,...r(e,t).properties]}),[]).filter((e=>!e.isRequired&&n.includes(e.name))).map((e=>Object.assign(Object.assign({},e),{isRequired:!0})))}(e,n.required,t,a);r.forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums)})),l.push(...r)}if(n.properties){const t=K(e,n,a);t.forEach((e=>{o.imports.push(...e.imports),o.enums.push(...e.enums),"enum"===e.export&&o.enums.push(e)})),l.push(...t)}return l.length&&o.properties.push({name:"properties",export:"interface",type:"any",base:"any",template:null,link:null,description:"",isDefinition:!1,isReadOnly:!1,isNullable:!1,isRequired:!1,imports:[],enum:[],enums:[],properties:l}),o}function re(e,n){var t;if(void 0===e.default)return;if(null===e.default)return"null";switch(e.type||typeof e.default){case"int":case"integer":case"number":return"enum"===(null==n?void 0:n.export)&&(null===(t=n.enum)||void 0===t?void 0:t[e.default])?n.enum[e.default].value:e.default;case"boolean":return JSON.stringify(e.default);case"string":return`'${e.default}'`;case"object":try{return JSON.stringify(e.default,null,4)}catch(e){}}}function ae(e,n,t=!1,r=""){var a,o,l;const i={name:r,export:"interface",type:"any",base:"any",template:null,link:null,description:z(n.description),isDefinition:t,isReadOnly:!0===n.readOnly,isNullable:!0===n.nullable,isRequired:!1,format:n.format,maximum:n.maximum,exclusiveMaximum:n.exclusiveMaximum,minimum:n.minimum,exclusiveMinimum:n.exclusiveMinimum,multipleOf:n.multipleOf,maxLength:n.maxLength,minLength:n.minLength,maxItems:n.maxItems,minItems:n.minItems,uniqueItems:n.uniqueItems,maxProperties:n.maxProperties,minProperties:n.minProperties,pattern:g(n.pattern),imports:[],enum:[],enums:[],properties:[]};if(n.$ref){const e=X(n.$ref);return i.export="reference",i.type=e.type,i.base=e.base,i.template=e.template,i.imports.push(...e.imports),i.default=re(n,i),i}if(n.enum&&"boolean"!==n.type){const e=function(e,n){const t=n["x-enum-varnames"],r=n["x-enum-descriptions"];return e.map(((e,n)=>({name:(null==t?void 0:t[n])||e.name,description:(null==r?void 0:r[n])||e.description,value:e.value,type:e.type})))}((s=n.enum,Array.isArray(s)?s.filter(((e,n,t)=>t.indexOf(e)===n)).filter(O).map((e=>"number"==typeof e?{name:`'_${e}'`,value:String(e),type:"number",description:null}:{name:String(e).replace(/\W+/g,"_").replace(/^(\d+)/g,"_$1").replace(/([a-z])([A-Z]+)/g,"$1_$2").toUpperCase(),value:`'${e}'`,type:"string",description:null})):[]),n);if(e.length)return i.export="enum",i.type="string",i.base="string",i.enum.push(...e),i.default=re(n,i),i}var s;if(("int"===n.type||"integer"===n.type)&&n.description){const e=function(e){if(/^(\w+=[0-9]+)/g.test(e)){const n=e.match(/(\w+=[0-9]+,?)/g);if(n){const e=[];return n.forEach((n=>{const t=n.split("=")[0],r=parseInt(n.split("=")[1].replace(/[^0-9]/g,""));t&&Number.isInteger(r)&&e.push({name:t.replace(/\W+/g,"_").replace(/^(\d+)/g,"_$1").replace(/([a-z])([A-Z]+)/g,"$1_$2").toUpperCase(),value:String(r),type:"number",description:null})})),e.filter(((e,n,t)=>t.map((e=>e.name)).indexOf(e.name)===n))}}return[]}(n.description);if(e.length)return i.export="enum",i.type="number",i.base="number",i.enum.push(...e),i.default=re(n,i),i}if("array"===n.type&&n.items){if(n.items.$ref){const e=X(n.items.$ref);return i.export="array",i.type=e.type,i.base=e.base,i.template=e.template,i.imports.push(...e.imports),i.default=re(n,i),i}{const t=ae(e,n.items);return i.export="array",i.type=t.type,i.base=t.base,i.template=t.template,i.link=t,i.imports.push(...t.imports),i.default=re(n,i),i}}if("object"===n.type&&"object"==typeof n.additionalProperties){if(n.additionalProperties.$ref){const e=X(n.additionalProperties.$ref);return i.export="dictionary",i.type=e.type,i.base=e.base,i.template=e.template,i.imports.push(...e.imports),i.default=re(n,i),i}{const t=ae(e,n.additionalProperties);return i.export="dictionary",i.type=t.type,i.base=t.base,i.template=t.template,i.link=t,i.imports.push(...t.imports),i.default=re(n,i),i}}if(null===(a=n.oneOf)||void 0===a?void 0:a.length){const t=te(e,n,n.oneOf,"one-of",ae);return i.export=t.type,i.imports.push(...t.imports),i.properties.push(...t.properties),i.enums.push(...t.enums),i}if(null===(o=n.anyOf)||void 0===o?void 0:o.length){const t=te(e,n,n.anyOf,"any-of",ae);return i.export=t.type,i.imports.push(...t.imports),i.properties.push(...t.properties),i.enums.push(...t.enums),i}if(null===(l=n.allOf)||void 0===l?void 0:l.length){const t=te(e,n,n.allOf,"all-of",ae);return i.export=t.type,i.imports.push(...t.imports),i.properties.push(...t.properties),i.enums.push(...t.enums),i}if("object"===n.type){if(i.export="interface",i.type="any",i.base="any",i.default=re(n,i),n.properties){K(e,n,ae).forEach((e=>{i.imports.push(...e.imports),i.enums.push(...e.enums),i.properties.push(e),"enum"===e.export&&i.enums.push(e)}))}return i}if(n.type){const e=X(n.type,n.format);return i.export="generic",i.type=e.type,i.base=e.base,i.template=e.template,i.isNullable=e.isNullable||i.isNullable,i.imports.push(...e.imports),i.default=re(n,i),i}return i}const oe=/^(arguments|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|eval|export|extends|false|finally|for|function|if|implements|import|in|instanceof|interface|let|new|null|package|private|protected|public|return|static|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)$/g;function le(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n).replace(oe,"_$1")}function ie(e,n){const t={imports:[],parameters:[],parametersPath:[],parametersQuery:[],parametersForm:[],parametersCookie:[],parametersHeader:[],parametersBody:null};return n.forEach((n=>{const r=ne(e,n),a=function(e,n){var t;const r={in:n.in,prop:n.name,export:"interface",name:le(n.name),type:"any",base:"any",template:null,link:null,description:z(n.description),isDefinition:!1,isReadOnly:!1,isRequired:!0===n.required,isNullable:!0===n.nullable,imports:[],enum:[],enums:[],properties:[],mediaType:null};if(n.$ref){const e=X(n.$ref);return r.export="reference",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r}let a=n.schema;if(a){if((null===(t=a.$ref)||void 0===t?void 0:t.startsWith("#/components/parameters/"))&&(a=ne(e,a)),a.$ref){const e=X(a.$ref);return r.export="reference",r.type=e.type,r.base=e.base,r.template=e.template,r.imports.push(...e.imports),r.default=re(a),r}{const n=ae(e,a);return r.export=n.export,r.type=n.type,r.base=n.base,r.template=n.template,r.link=n.link,r.isReadOnly=n.isReadOnly,r.isRequired=r.isRequired||n.isRequired,r.isNullable=r.isNullable||n.isNullable,r.format=n.format,r.maximum=n.maximum,r.exclusiveMaximum=n.exclusiveMaximum,r.minimum=n.minimum,r.exclusiveMinimum=n.exclusiveMinimum,r.multipleOf=n.multipleOf,r.maxLength=n.maxLength,r.minLength=n.minLength,r.maxItems=n.maxItems,r.minItems=n.minItems,r.uniqueItems=n.uniqueItems,r.maxProperties=n.maxProperties,r.minProperties=n.minProperties,r.pattern=g(n.pattern),r.default=n.default,r.imports.push(...n.imports),r.enum.push(...n.enum),r.enums.push(...n.enums),r.properties.push(...n.properties),r}}return r}(e,r);if("api-version"!==a.prop)switch(r.in){case"path":t.parametersPath.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"query":t.parametersQuery.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"formData":t.parametersForm.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"cookie":t.parametersCookie.push(a),t.parameters.push(a),t.imports.push(...a.imports);break;case"header":t.parametersHeader.push(a),t.parameters.push(a),t.imports.push(...a.imports)}})),t}const se=["application/json-patch+json","application/json","application/x-www-form-urlencoded","text/json","text/plain","multipart/form-data","multipart/mixed","multipart/related","multipart/batch"];function ue(e,n){const t=Object.keys(n).filter((e=>{const n=e.split(";")[0].trim();return se.includes(n)})).find((e=>{var t;return O(null===(t=n[e])||void 0===t?void 0:t.schema)}));if(t)return{mediaType:t,schema:n[t].schema};const r=Object.keys(n).find((e=>{var t;return O(null===(t=n[e])||void 0===t?void 0:t.schema)}));return r?{mediaType:r,schema:n[r].schema}:null}function pe(e,n,t){var r;const a={in:"response",name:"",code:t,description:z(n.description),export:"generic",type:"any",base:"any",template:null,link:null,isDefinition:!1,isReadOnly:!1,isRequired:!1,isNullable:!1,imports:[],enum:[],enums:[],properties:[]};if(n.content){const t=ue(0,n.content);if(t){if((null===(r=t.schema.$ref)||void 0===r?void 0:r.startsWith("#/components/responses/"))&&(t.schema=ne(e,t.schema)),t.schema.$ref){const e=X(t.schema.$ref);return a.export="reference",a.type=e.type,a.base=e.base,a.template=e.template,a.imports.push(...e.imports),a}{const n=ae(e,t.schema);return a.export=n.export,a.type=n.type,a.base=n.base,a.template=n.template,a.link=n.link,a.isReadOnly=n.isReadOnly,a.isRequired=n.isRequired,a.isNullable=n.isNullable,a.format=n.format,a.maximum=n.maximum,a.exclusiveMaximum=n.exclusiveMaximum,a.minimum=n.minimum,a.exclusiveMinimum=n.exclusiveMinimum,a.multipleOf=n.multipleOf,a.maxLength=n.maxLength,a.minLength=n.minLength,a.maxItems=n.maxItems,a.minItems=n.minItems,a.uniqueItems=n.uniqueItems,a.maxProperties=n.maxProperties,a.minProperties=n.minProperties,a.pattern=g(n.pattern),a.imports.push(...n.imports),a.enum.push(...n.enum),a.enums.push(...n.enums),a.properties.push(...n.properties),a}}}if(n.headers)for(const e in n.headers)if(n.headers.hasOwnProperty(e))return a.in="header",a.name=e,a.type="string",a.base="string",a;return a}function ce(e){if("default"===e)return 200;if(/[0-9]+/g.test(e)){const n=parseInt(e);if(Number.isInteger(n))return Math.abs(n)}return null}function me(e,n){const t=e.type===n.type&&e.base===n.base&&e.template===n.template;return t&&e.link&&n.link?me(e.link,n.link):t}function de(e){const n=[];return e.forEach((e=>{const{code:t}=e;t&&204!==t&&t>=200&&t<300&&n.push(e)})),n.length||n.push({in:"response",name:"",code:200,description:"",export:"generic",type:"void",base:"void",template:null,link:null,isDefinition:!1,isReadOnly:!1,isRequired:!1,isNullable:!1,imports:[],enum:[],enums:[],properties:[]}),n.filter(((e,n,t)=>t.findIndex((n=>me(n,e)))===n))}function fe(e,n){const t=e.isRequired&&void 0===e.default,r=n.isRequired&&void 0===n.default;return t&&!r?-1:r&&!t?1:0}function he(e,n,t,r,a,o){const l=function(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n,{pascalCase:!0})}(r),i=`${t}${l}`,s=function(e){const n=e.replace(/^[^a-zA-Z]+/g,"").replace(/[^\w\-]+/g,"-").trim();return d.default(n)}(a.operationId||i),u=function(e){return e.replace(/\{(.*?)\}/g,((e,n)=>`\${${le(n)}}`)).replace("${apiVersion}","${OpenAPI.VERSION}")}(n),p={service:l,name:s,summary:z(a.summary),description:z(a.description),deprecated:!0===a.deprecated,method:t.toUpperCase(),path:u,parameters:[...o.parameters],parametersPath:[...o.parametersPath],parametersQuery:[...o.parametersQuery],parametersForm:[...o.parametersForm],parametersHeader:[...o.parametersHeader],parametersCookie:[...o.parametersCookie],parametersBody:o.parametersBody,imports:[],errors:[],results:[],responseHeader:null};if(a.parameters){const n=ie(e,a.parameters);p.imports.push(...n.imports),p.parameters.push(...n.parameters),p.parametersPath.push(...n.parametersPath),p.parametersQuery.push(...n.parametersQuery),p.parametersForm.push(...n.parametersForm),p.parametersHeader.push(...n.parametersHeader),p.parametersCookie.push(...n.parametersCookie),p.parametersBody=n.parametersBody}if(a.requestBody){const n=function(e,n){const t={in:"body",export:"interface",prop:"requestBody",name:"requestBody",type:"any",base:"any",template:null,link:null,description:z(n.description),default:void 0,isDefinition:!1,isReadOnly:!1,isRequired:!0===n.required,isNullable:!0===n.nullable,imports:[],enum:[],enums:[],properties:[],mediaType:null};if(n.content){const r=ue(0,n.content);if(r){switch(t.mediaType=r.mediaType,t.mediaType){case"application/x-www-form-urlencoded":case"multipart/form-data":t.in="formData",t.name="formData",t.prop="formData"}if(r.schema.$ref){const e=X(r.schema.$ref);return t.export="reference",t.type=e.type,t.base=e.base,t.template=e.template,t.imports.push(...e.imports),t}{const n=ae(e,r.schema);return t.export=n.export,t.type=n.type,t.base=n.base,t.template=n.template,t.link=n.link,t.isReadOnly=n.isReadOnly,t.isRequired=t.isRequired||n.isRequired,t.isNullable=t.isNullable||n.isNullable,t.format=n.format,t.maximum=n.maximum,t.exclusiveMaximum=n.exclusiveMaximum,t.minimum=n.minimum,t.exclusiveMinimum=n.exclusiveMinimum,t.multipleOf=n.multipleOf,t.maxLength=n.maxLength,t.minLength=n.minLength,t.maxItems=n.maxItems,t.minItems=n.minItems,t.uniqueItems=n.uniqueItems,t.maxProperties=n.maxProperties,t.minProperties=n.minProperties,t.pattern=g(n.pattern),t.imports.push(...n.imports),t.enum.push(...n.enum),t.enums.push(...n.enums),t.properties.push(...n.properties),t}}}return t}(e,ne(e,a.requestBody));p.imports.push(...n.imports),p.parameters.push(n),p.parametersBody=n}if(a.responses){const n=function(e,n){const t=[];for(const r in n)if(n.hasOwnProperty(r)){const a=ne(e,n[r]),o=ce(r);if(o){const n=pe(e,a,o);t.push(n)}}return t.sort(((e,n)=>e.code<n.code?-1:e.code>n.code?1:0))}(e,a.responses),t=de(n);p.errors=function(e){return e.filter((e=>e.code>=300&&e.description)).map((e=>{return{code:e.code,description:(n=e.description,n.replace(/([^\\])`/g,"$1\\`").replace(/(\*\/)/g,"*_/"))};var n}))}(n),p.responseHeader=function(e){const n=e.find((e=>"header"===e.in));return n?n.name:null}(t),t.forEach((e=>{p.results.push(e),p.imports.push(...e.imports)}))}return p.parameters=p.parameters.sort(fe),p}function ye(e,n=!1){const t=function(e="1.0"){return String(e).replace(/^v/gi,"")}(e.info.version),r=function(e){var n;const t=null===(n=e.servers)||void 0===n?void 0:n[0],r=(null==t?void 0:t.variables)||{};let a=(null==t?void 0:t.url)||"";for(const e in r)r.hasOwnProperty(e)&&(a=a.replace(`{${e}}`,r[e].default));return a.replace(/\/$/g,"")}(e);let a=function(e){const n=[];if(e.components)for(const t in e.components.schemas)if(e.components.schemas.hasOwnProperty(t)){const r=ae(e,e.components.schemas[t],!0,X(t).base);n.push(r)}return n}(e);const o=function(e){var n;const t=new Map;for(const r in e.paths)if(e.paths.hasOwnProperty(r)){const a=e.paths[r],o=ie(e,a.parameters||[]);for(const l in a)if(a.hasOwnProperty(l))switch(l){case"get":case"put":case"post":case"delete":case"options":case"head":case"patch":const i=a[l];((null===(n=i.tags)||void 0===n?void 0:n.filter(H))||["Service"]).forEach((n=>{const a=he(e,r,l,n,i,o),s=t.get(a.service)||{name:a.service,operations:[],imports:[]};s.operations.push(a),s.imports.push(...a.imports),t.set(a.service,s)}))}}return Array.from(t.values())}(e),l=o.map((e=>e.imports)).flat(),i=a.map((e=>e.imports)).flat(),s=Array.from(new Set([...i,...l]));return n&&(a=a.filter((e=>s.some((n=>n===e.name))))),{version:t,server:r,models:a,services:o}}var ve;function ge(e){return e.enum.filter(((e,n,t)=>t.findIndex((n=>n.name===e.name))===n))}function Pe(e){return e.enums.filter(((e,n,t)=>t.findIndex((n=>n.name===e.name))===n))}function be(e,n){const t=e.toLowerCase(),r=n.toLowerCase();return t.localeCompare(r,"en")}function Oe(e){return e.imports.filter(H).sort(be).filter((n=>e.name!==n))}function xe(e,n){const t=[];return e.map(n).forEach((e=>{t.push(...e)})),t}function ke(e){const n=Object.assign({},e);return n.operations=function(e){const n=new Map;return e.operations.map((e=>{const t=Object.assign({},e);t.imports.push(...xe(t.parameters,(e=>e.imports))),t.imports.push(...xe(t.results,(e=>e.imports)));const r=t.name,a=n.get(r)||0;return a>0&&(t.name=`${r}${a}`),n.set(r,a+1),t}))}(n),n.operations.forEach((e=>{n.imports.push(...e.imports)})),n.imports=function(e){return e.imports.filter(H).sort(be)}(n),n}function Re(e){return Object.assign(Object.assign({},e),{models:e.models.map((e=>function(e){return Object.assign(Object.assign({},e),{imports:Oe(e),enums:Pe(e),enum:ge(e)})}(e))),services:e.services.map((e=>ke(e)))})}!function(e){e[e.V2=2]="V2",e[e.V3=3]="V3"}(ve||(ve={}));var we={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport type { ApiResult } from './ApiResult';\n\nexport class ApiError extends Error {\n public readonly url: string;\n public readonly status: number;\n public readonly statusText: string;\n public readonly body: any;\n\n constructor(response: ApiResult, message: string) {\n super(message);\n\n this.name = 'ApiError';\n this.url = response.url;\n this.status = response.status;\n this.statusText = response.statusText;\n this.body = response.body;\n }\n}"},usePartial:!0,useData:!0},qe={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nexport type ApiRequestOptions = {\n readonly method: 'GET' | 'PUT' | 'POST' | 'DELETE' | 'OPTIONS' | 'HEAD' | 'PATCH';\n readonly path: string;\n readonly cookies?: Record<string, any>;\n readonly headers?: Record<string, any>;\n readonly query?: Record<string, any>;\n readonly formData?: Record<string, any>;\n readonly body?: any;\n readonly mediaType?: string;\n readonly responseHeader?: string;\n readonly errors?: Record<number, string>;\n}"},usePartial:!0,useData:!0},Ce={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nexport type ApiResult = {\n readonly url: string;\n readonly ok: boolean;\n readonly status: number;\n readonly statusText: string;\n readonly body: any;\n}"},usePartial:!0,useData:!0},je={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getHeaders(options: ApiRequestOptions, formData?: FormData): Promise<Record<string, string>> {\n const token = await resolve(options, OpenAPI.TOKEN);\n const username = await resolve(options, OpenAPI.USERNAME);\n const password = await resolve(options, OpenAPI.PASSWORD);\n const additionalHeaders = await resolve(options, OpenAPI.HEADERS);\n const formHeaders = typeof formData?.getHeaders === 'function' && formData?.getHeaders() || {}\n\n const headers = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n ...formHeaders,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record<string, string>);\n\n if (isStringWithValue(token)) {\n headers['Authorization'] = `Bearer ${token}`;\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers['Authorization'] = `Basic ${credentials}`;\n }\n\n return headers;\n}"},useData:!0},Ae={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getRequestBody(options: ApiRequestOptions): any {\n if (options.body) {\n return options.body;\n }\n return;\n}"},useData:!0},De={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseBody(response: AxiosResponse<any>): any {\n if (response.status !== 204) {\n return response.data;\n }\n return;\n}"},useData:!0},Te={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseHeader(response: AxiosResponse<any>, responseHeader?: string): string | undefined {\n if (responseHeader) {\n const content = response.headers[responseHeader];\n if (isString(content)) {\n return content;\n }\n }\n return;\n}"},useData:!0},Ie={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';\nimport Blob from 'cross-blob'\nimport FormData from 'form-data';\n\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport { OpenAPI } from './OpenAPI';\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isDefined"),n,{name:"functions/isDefined",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isString"),n,{name:"functions/isString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isStringWithValue"),n,{name:"functions/isStringWithValue",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isBlob"),n,{name:"functions/isBlob",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isSuccess"),n,{name:"functions/isSuccess",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/base64"),n,{name:"functions/base64",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getQueryString"),n,{name:"functions/getQueryString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getUrl"),n,{name:"functions/getUrl",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getFormData"),n,{name:"functions/getFormData",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/resolve"),n,{name:"functions/resolve",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/getHeaders"),n,{name:"axios/getHeaders",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/getRequestBody"),n,{name:"axios/getRequestBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/sendRequest"),n,{name:"axios/sendRequest",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/getResponseHeader"),n,{name:"axios/getResponseHeader",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"axios/getResponseBody"),n,{name:"axios/getResponseBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/catchErrors"),n,{name:"functions/catchErrors",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n/**\n * Request using axios client\n * @param options The request options from the the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport function request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(options, formData);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, formData, body, headers, onCancel);\n const responseBody = getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: responseHeader || responseBody,\n };\n\n catchErrors(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}"},usePartial:!0,useData:!0},Ee={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function sendRequest(\n options: ApiRequestOptions,\n url: string,\n formData: FormData | undefined,\n body: any,\n headers: Record<string, string>,\n onCancel: OnCancel\n): Promise<AxiosResponse<any>> {\n const source = axios.CancelToken.source();\n\n const config: AxiosRequestConfig = {\n url,\n headers,\n data: body || formData,\n method: options.method,\n withCredentials: OpenAPI.WITH_CREDENTIALS,\n cancelToken: source.token,\n };\n\n onCancel(() => source.cancel('The user aborted a request.'));\n\n try {\n return await axios.request(config);\n } catch (error) {\n const axiosError = error as AxiosError;\n if (axiosError.response) {\n return axiosError.response;\n }\n throw error;\n }\n}"},useData:!0},He={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nexport class CancelError extends Error {\n\n constructor(reason: string = 'Promise was canceled') {\n super(reason);\n this.name = 'CancelError';\n }\n\n public get isCancelled(): boolean {\n return true;\n }\n}\n\nexport interface OnCancel {\n readonly isPending: boolean;\n readonly isCancelled: boolean;\n\n (cancelHandler: () => void): void;\n}\n\nexport class CancelablePromise<T> implements Promise<T> {\n readonly [Symbol.toStringTag]: string;\n\n #isPending: boolean;\n #isCancelled: boolean;\n readonly #cancelHandlers: (() => void)[];\n readonly #promise: Promise<T>;\n #resolve?: (value: T | PromiseLike<T>) => void;\n #reject?: (reason?: any) => void;\n\n constructor(\n executor: (\n resolve: (value: T | PromiseLike<T>) => void,\n reject: (reason?: any) => void,\n onCancel: OnCancel\n ) => void\n ) {\n this.#isPending = true;\n this.#isCancelled = false;\n this.#cancelHandlers = [];\n this.#promise = new Promise<T>((resolve, reject) => {\n this.#resolve = resolve;\n this.#reject = reject;\n\n const onResolve = (value: T | PromiseLike<T>): void => {\n if (!this.#isCancelled) {\n this.#isPending = false;\n this.#resolve?.(value);\n }\n };\n\n const onReject = (reason?: any): void => {\n this.#isPending = false;\n this.#reject?.(reason);\n };\n\n const onCancel = (cancelHandler: () => void): void => {\n if (this.#isPending) {\n this.#cancelHandlers.push(cancelHandler);\n }\n };\n\n Object.defineProperty(onCancel, 'isPending', {\n get: (): boolean => this.#isPending,\n });\n\n Object.defineProperty(onCancel, 'isCancelled', {\n get: (): boolean => this.#isCancelled,\n });\n\n return executor(onResolve, onReject, onCancel as OnCancel);\n });\n }\n\n public then<TResult1 = T, TResult2 = never>(\n onFulfilled?: ((value: T) => TResult1 | PromiseLike<TResult1>) | null,\n onRejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null\n ): Promise<TResult1 | TResult2> {\n return this.#promise.then(onFulfilled, onRejected);\n }\n\n public catch<TResult = never>(\n onRejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null\n ): Promise<T | TResult> {\n return this.#promise.catch(onRejected);\n }\n\n public finally(onFinally?: (() => void) | null): Promise<T> {\n return this.#promise.finally(onFinally);\n }\n\n public cancel(): void {\n if (!this.#isPending || this.#isCancelled) {\n return;\n }\n this.#isCancelled = true;\n if (this.#cancelHandlers.length) {\n try {\n for (const cancelHandler of this.#cancelHandlers) {\n cancelHandler();\n }\n } catch (error) {\n this.#reject?.(error);\n return;\n }\n }\n }\n\n public get isCancelled(): boolean {\n return this.#isCancelled;\n }\n}"},usePartial:!0,useData:!0},Se={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getHeaders(options: ApiRequestOptions): Promise<Headers> {\n const token = await resolve(options, OpenAPI.TOKEN);\n const username = await resolve(options, OpenAPI.USERNAME);\n const password = await resolve(options, OpenAPI.PASSWORD);\n const additionalHeaders = await resolve(options, OpenAPI.HEADERS);\n\n const defaultHeaders = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record<string, string>);\n\n const headers = new Headers(defaultHeaders);\n\n if (isStringWithValue(token)) {\n headers.append('Authorization', `Bearer ${token}`);\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers.append('Authorization', `Basic ${credentials}`);\n }\n\n if (options.body) {\n if (options.mediaType) {\n headers.append('Content-Type', options.mediaType);\n } else if (isBlob(options.body)) {\n headers.append('Content-Type', options.body.type || 'application/octet-stream');\n } else if (isString(options.body)) {\n headers.append('Content-Type', 'text/plain');\n } else {\n headers.append('Content-Type', 'application/json');\n }\n }\n\n return headers;\n}"},useData:!0},$e={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getRequestBody(options: ApiRequestOptions): BodyInit | undefined {\n if (options.body) {\n if (options.mediaType?.includes('/json')) {\n return JSON.stringify(options.body)\n } else if (isString(options.body) || isBlob(options.body)) {\n return options.body;\n } else {\n return JSON.stringify(options.body);\n }\n }\n return;\n}"},useData:!0},Ne={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getResponseBody(response: Response): Promise<any> {\n if (response.status !== 204) {\n try {\n const contentType = response.headers.get('Content-Type');\n if (contentType) {\n const isJSON = contentType.toLowerCase().startsWith('application/json');\n if (isJSON) {\n return await response.json();\n } else {\n return await response.text();\n }\n }\n } catch (error) {\n console.error(error);\n }\n }\n return;\n}"},useData:!0},Be={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseHeader(response: Response, responseHeader?: string): string | undefined {\n if (responseHeader) {\n const content = response.headers.get(responseHeader);\n if (isString(content)) {\n return content;\n }\n }\n return;\n}"},useData:!0},Le={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport { OpenAPI } from './OpenAPI';\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isDefined"),n,{name:"functions/isDefined",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isString"),n,{name:"functions/isString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isStringWithValue"),n,{name:"functions/isStringWithValue",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isBlob"),n,{name:"functions/isBlob",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/base64"),n,{name:"functions/base64",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getQueryString"),n,{name:"functions/getQueryString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getUrl"),n,{name:"functions/getUrl",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getFormData"),n,{name:"functions/getFormData",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/resolve"),n,{name:"functions/resolve",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getHeaders"),n,{name:"fetch/getHeaders",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getRequestBody"),n,{name:"fetch/getRequestBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/sendRequest"),n,{name:"fetch/sendRequest",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getResponseHeader"),n,{name:"fetch/getResponseHeader",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getResponseBody"),n,{name:"fetch/getResponseBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/catchErrors"),n,{name:"functions/catchErrors",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n/**\n * Request using fetch client\n * @param options The request options from the the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport function request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(options);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, formData, body, headers, onCancel);\n const responseBody = await getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: responseHeader || responseBody,\n };\n\n catchErrors(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}"},usePartial:!0,useData:!0},Me={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function sendRequest(\n options: ApiRequestOptions,\n url: string,\n formData: FormData | undefined,\n body: BodyInit | undefined,\n headers: Headers,\n onCancel: OnCancel\n): Promise<Response> {\n const controller = new AbortController();\n\n const request: RequestInit = {\n headers,\n body: body || formData,\n method: options.method,\n signal: controller.signal,\n };\n\n if (OpenAPI.WITH_CREDENTIALS) {\n request.credentials = OpenAPI.CREDENTIALS;\n }\n\n onCancel(() => controller.abort());\n\n return await fetch(url, request);\n}"},useData:!0},Ue={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function base64(str: string): string {\n try {\n return btoa(str);\n } catch (err) {\n // @ts-ignore\n return Buffer.from(str).toString('base64');\n }\n}"},useData:!0},Fe={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function catchErrors(options: ApiRequestOptions, result: ApiResult): void {\n const errors: Record<number, string> = {\n 400: 'Bad Request',\n 401: 'Unauthorized',\n 403: 'Forbidden',\n 404: 'Not Found',\n 500: 'Internal Server Error',\n 502: 'Bad Gateway',\n 503: 'Service Unavailable',\n ...options.errors,\n }\n\n const error = errors[result.status];\n if (error) {\n throw new ApiError(result, error);\n }\n\n if (!result.ok) {\n throw new ApiError(result, 'Generic Error');\n }\n}"},useData:!0},We={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getFormData(options: ApiRequestOptions): FormData | undefined {\n if (options.formData) {\n const formData = new FormData();\n\n const append = (key: string, value: any) => {\n if (isString(value) || isBlob(value)) {\n formData.append(key, value);\n } else {\n formData.append(key, JSON.stringify(value));\n }\n };\n\n Object.entries(options.formData)\n .filter(([_, value]) => isDefined(value))\n .forEach(([key, value]) => {\n if (Array.isArray(value)) {\n value.forEach(v => append(key, v));\n } else {\n append(key, value);\n }\n });\n\n return formData;\n }\n return;\n}"},useData:!0},_e={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getQueryString(params: Record<string, any>): string {\n const qs: string[] = [];\n\n const append = (key: string, value: any) => {\n qs.push(`${encodeURIComponent(key)}=${encodeURIComponent(String(value))}`);\n };\n\n Object.entries(params)\n .filter(([_, value]) => isDefined(value))\n .forEach(([key, value]) => {\n if (Array.isArray(value)) {\n value.forEach(v => append(key, v));\n } else {\n append(key, value);\n }\n });\n\n if (qs.length > 0) {\n return `?${qs.join('&')}`;\n }\n\n return '';\n}"},useData:!0},Ve={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getUrl(options: ApiRequestOptions): string {\n const path = OpenAPI.ENCODE_PATH ? OpenAPI.ENCODE_PATH(options.path) : options.path;\n const url = `${OpenAPI.BASE}${path}`;\n if (options.query) {\n return `${url}${getQueryString(options.query)}`;\n }\n\n return url;\n}"},useData:!0},ze={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isBlob(value: any): value is Blob {\n return value instanceof Blob;\n}"},useData:!0},Qe={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isDefined<T>(value: T | null | undefined): value is Exclude<T, null | undefined> {\n return value !== undefined && value !== null;\n}"},useData:!0},Je={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isString(value: any): value is string {\n return typeof value === 'string';\n}"},useData:!0},Ze={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isStringWithValue(value: any): value is string {\n return isString(value) && value !== '';\n}"},useData:!0},Ge={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function isSuccess(status: number): boolean {\n return status >= 200 && status < 300;\n}"},useData:!0},Xe={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"type Resolver<T> = (options: ApiRequestOptions) => Promise<T>;\n\nasync function resolve<T>(options: ApiRequestOptions, resolver?: T | Resolver<T>): Promise<T | undefined> {\n if (typeof resolver === 'function') {\n return (resolver as Resolver<T>)(options);\n }\n return resolver;\n}"},useData:!0},Ke={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getHeaders(options: ApiRequestOptions): Promise<Headers> {\n const token = await resolve(options, OpenAPI.TOKEN);\n const username = await resolve(options, OpenAPI.USERNAME);\n const password = await resolve(options, OpenAPI.PASSWORD);\n const additionalHeaders = await resolve(options, OpenAPI.HEADERS);\n\n const defaultHeaders = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record<string, string>);\n\n const headers = new Headers(defaultHeaders);\n\n if (isStringWithValue(token)) {\n headers.append('Authorization', `Bearer ${token}`);\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers.append('Authorization', `Basic ${credentials}`);\n }\n\n if (options.body) {\n if (options.mediaType) {\n headers.append('Content-Type', options.mediaType);\n } else if (isBlob(options.body)) {\n headers.append('Content-Type', 'application/octet-stream');\n } else if (isString(options.body)) {\n headers.append('Content-Type', 'text/plain');\n } else {\n headers.append('Content-Type', 'application/json');\n }\n }\n return headers;\n}"},useData:!0},Ye={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getRequestBody(options: ApiRequestOptions): BodyInit | undefined {\n if (options.body) {\n if (options.mediaType?.includes('/json')) {\n return JSON.stringify(options.body)\n } else if (isString(options.body) || isBlob(options.body)) {\n return options.body as any;\n } else {\n return JSON.stringify(options.body);\n }\n }\n return;\n}"},useData:!0},en={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getResponseBody(response: Response): Promise<any> {\n if (response.status !== 204) {\n try {\n const contentType = response.headers.get('Content-Type');\n if (contentType) {\n const isJSON = contentType.toLowerCase().startsWith('application/json');\n if (isJSON) {\n return await response.json();\n } else {\n return await response.text();\n }\n }\n } catch (error) {\n console.error(error);\n }\n }\n return;\n}"},useData:!0},nn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseHeader(response: Response, responseHeader?: string): string | undefined {\n if (responseHeader) {\n const content = response.headers.get(responseHeader);\n if (isString(content)) {\n return content;\n }\n }\n return;\n}"},useData:!0},tn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport { AbortController } from 'abort-controller';\nimport Blob from 'cross-blob'\nimport FormData from 'form-data';\nimport fetch, { BodyInit, Headers, RequestInit, Response } from 'node-fetch';\n\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport { OpenAPI } from './OpenAPI';\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isDefined"),n,{name:"functions/isDefined",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isString"),n,{name:"functions/isString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isStringWithValue"),n,{name:"functions/isStringWithValue",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isBlob"),n,{name:"functions/isBlob",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/base64"),n,{name:"functions/base64",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getQueryString"),n,{name:"functions/getQueryString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getUrl"),n,{name:"functions/getUrl",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getFormData"),n,{name:"functions/getFormData",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/resolve"),n,{name:"functions/resolve",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/getHeaders"),n,{name:"node/getHeaders",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/getRequestBody"),n,{name:"node/getRequestBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/sendRequest"),n,{name:"node/sendRequest",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/getResponseHeader"),n,{name:"node/getResponseHeader",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"node/getResponseBody"),n,{name:"node/getResponseBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/catchErrors"),n,{name:"functions/catchErrors",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n/**\n * Request using node-fetch client\n * @param options The request options from the the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport function request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(options);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, formData, body, headers, onCancel);\n const responseBody = await getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: response.ok,\n status: response.status,\n statusText: response.statusText,\n body: responseHeader || responseBody,\n };\n\n catchErrors(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}"},usePartial:!0,useData:!0},rn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function sendRequest(\n options: ApiRequestOptions,\n url: string,\n formData: FormData | undefined,\n body: BodyInit | undefined,\n headers: Headers,\n onCancel: OnCancel\n): Promise<Response> {\n const controller = new AbortController();\n\n const request: RequestInit = {\n headers,\n method: options.method,\n body: body || formData,\n signal: controller.signal,\n };\n\n onCancel(() => controller.abort());\n\n return await fetch(url, request);\n}"},useData:!0},an={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(s(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport type { ApiRequestOptions } from './ApiRequestOptions';\n\ntype Resolver<T> = (options: ApiRequestOptions) => Promise<T>;\ntype Headers = Record<string, string>;\n\ntype Config = {\n BASE: string;\n VERSION: string;\n WITH_CREDENTIALS: boolean;\n CREDENTIALS: 'include' | 'omit' | 'same-origin';\n TOKEN?: string | Resolver<string>;\n USERNAME?: string | Resolver<string>;\n PASSWORD?: string | Resolver<string>;\n HEADERS?: Headers | Resolver<Headers>;\n ENCODE_PATH?: (path: string) => string;\n}\n\nexport const OpenAPI: Config = {\n BASE: '"+(null!=(o=i(l(n,"server",{start:{line:21,column:14},end:{line:21,column:20}}),n))?o:"")+"',\n VERSION: '"+(null!=(o=i(l(n,"version",{start:{line:22,column:17},end:{line:22,column:24}}),n))?o:"")+"',\n WITH_CREDENTIALS: false,\n CREDENTIALS: 'include',\n TOKEN: undefined,\n USERNAME: undefined,\n PASSWORD: undefined,\n HEADERS: undefined,\n ENCODE_PATH: undefined,\n};"},usePartial:!0,useData:!0},on={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"fetch/request"),n,{name:"fetch/request",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"xhr/request"),n,{name:"xhr/request",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},5:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"axios/request"),n,{name:"axios/request",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"node/request"),n,{name:"node/request",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"fetch",{name:"equals",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:67}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"xhr",{name:"equals",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:2,column:63}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"axios",{name:"equals",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:3,column:67}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"node",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:4,column:65}}}))?o:"")},usePartial:!0,useData:!0},ln={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function getHeaders(options: ApiRequestOptions): Promise<Headers> {\n const token = await resolve(options, OpenAPI.TOKEN);\n const username = await resolve(options, OpenAPI.USERNAME);\n const password = await resolve(options, OpenAPI.PASSWORD);\n const additionalHeaders = await resolve(options, OpenAPI.HEADERS);\n\n const defaultHeaders = Object.entries({\n Accept: 'application/json',\n ...additionalHeaders,\n ...options.headers,\n })\n .filter(([_, value]) => isDefined(value))\n .reduce((headers, [key, value]) => ({\n ...headers,\n [key]: String(value),\n }), {} as Record<string, string>);\n\n const headers = new Headers(defaultHeaders);\n\n if (isStringWithValue(token)) {\n headers.append('Authorization', `Bearer ${token}`);\n }\n\n if (isStringWithValue(username) && isStringWithValue(password)) {\n const credentials = base64(`${username}:${password}`);\n headers.append('Authorization', `Basic ${credentials}`);\n }\n\n if (options.body) {\n if (options.mediaType) {\n headers.append('Content-Type', options.mediaType);\n } else if (isBlob(options.body)) {\n headers.append('Content-Type', options.body.type || 'application/octet-stream');\n } else if (isString(options.body)) {\n headers.append('Content-Type', 'text/plain');\n } else {\n headers.append('Content-Type', 'application/json');\n }\n }\n return headers;\n}"},useData:!0},sn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getRequestBody(options: ApiRequestOptions): any {\n if (options.body) {\n if (options.mediaType?.includes('/json')) {\n return JSON.stringify(options.body)\n } else if (isString(options.body) || isBlob(options.body)) {\n return options.body;\n } else {\n return JSON.stringify(options.body);\n }\n }\n\n return;\n}"},useData:!0},un={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseBody(xhr: XMLHttpRequest): any {\n if (xhr.status !== 204) {\n try {\n const contentType = xhr.getResponseHeader('Content-Type');\n if (contentType) {\n const isJSON = contentType.toLowerCase().startsWith('application/json');\n if (isJSON) {\n return JSON.parse(xhr.responseText);\n } else {\n return xhr.responseText;\n }\n }\n } catch (error) {\n console.error(error);\n }\n }\n return;\n}"},useData:!0},pn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"function getResponseHeader(xhr: XMLHttpRequest, responseHeader?: string): string | undefined {\n if (responseHeader) {\n const content = xhr.getResponseHeader(responseHeader);\n if (isString(content)) {\n return content;\n }\n }\n return;\n}"},useData:!0},cn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nimport { ApiError } from './ApiError';\nimport type { ApiRequestOptions } from './ApiRequestOptions';\nimport type { ApiResult } from './ApiResult';\nimport { CancelablePromise } from './CancelablePromise';\nimport type { OnCancel } from './CancelablePromise';\nimport { OpenAPI } from './OpenAPI';\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isDefined"),n,{name:"functions/isDefined",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isString"),n,{name:"functions/isString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isStringWithValue"),n,{name:"functions/isStringWithValue",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isBlob"),n,{name:"functions/isBlob",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/isSuccess"),n,{name:"functions/isSuccess",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/base64"),n,{name:"functions/base64",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getQueryString"),n,{name:"functions/getQueryString",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getUrl"),n,{name:"functions/getUrl",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/getFormData"),n,{name:"functions/getFormData",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/resolve"),n,{name:"functions/resolve",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"fetch/getHeaders"),n,{name:"fetch/getHeaders",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"xhr/getRequestBody"),n,{name:"xhr/getRequestBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"xhr/sendRequest"),n,{name:"xhr/sendRequest",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"xhr/getResponseHeader"),n,{name:"xhr/getResponseHeader",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"xhr/getResponseBody"),n,{name:"xhr/getResponseBody",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n"+(null!=(o=e.invokePartial(l(r,"functions/catchErrors"),n,{name:"functions/catchErrors",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n\n/**\n * Request using XHR client\n * @param options The request options from the the service\n * @returns CancelablePromise<T>\n * @throws ApiError\n */\nexport function request<T>(options: ApiRequestOptions): CancelablePromise<T> {\n return new CancelablePromise(async (resolve, reject, onCancel) => {\n try {\n const url = getUrl(options);\n const formData = getFormData(options);\n const body = getRequestBody(options);\n const headers = await getHeaders(options);\n\n if (!onCancel.isCancelled) {\n const response = await sendRequest(options, url, formData, body, headers, onCancel);\n const responseBody = getResponseBody(response);\n const responseHeader = getResponseHeader(response, options.responseHeader);\n\n const result: ApiResult = {\n url,\n ok: isSuccess(response.status),\n status: response.status,\n statusText: response.statusText,\n body: responseHeader || responseBody,\n };\n\n catchErrors(options, result);\n\n resolve(result.body);\n }\n } catch (error) {\n reject(error);\n }\n });\n}"},usePartial:!0,useData:!0},mn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"async function sendRequest(\n options: ApiRequestOptions,\n url: string,\n formData: FormData | undefined,\n body: any,\n headers: Headers,\n onCancel: OnCancel\n): Promise<XMLHttpRequest> {\n const xhr = new XMLHttpRequest();\n xhr.open(options.method, url, true);\n xhr.withCredentials = OpenAPI.WITH_CREDENTIALS;\n\n headers.forEach((value, key) => {\n xhr.setRequestHeader(key, value);\n });\n\n return new Promise<XMLHttpRequest>((resolve, reject) => {\n xhr.onload = () => resolve(xhr);\n xhr.onabort = () => reject(new Error('The user aborted a request.'));\n xhr.onerror = () => reject(new Error('Network error.'));\n xhr.send(body || formData);\n\n onCancel(() => xhr.abort());\n });\n}"},useData:!0},dn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"imports"),{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:0},end:{line:7,column:9}}}))?o:"")},2:function(e,n,t,r,a){var o,l=e.lambda;return"import type { "+(null!=(o=l(n,n))?o:"")+" } from './"+(null!=(o=l(n,n))?o:"")+"';\n"},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"exportInterface"),n,{name:"exportInterface",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"one-of",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:12,column:0},end:{line:26,column:0}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"exportComposition"),n,{name:"exportComposition",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"any-of",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(10,a,0),data:a,loc:{start:{line:14,column:0},end:{line:26,column:0}}}))?o:""},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"all-of",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(11,a,0),data:a,loc:{start:{line:16,column:0},end:{line:26,column:0}}}))?o:""},11:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"enum",{name:"equals",hash:{},fn:e.program(12,a,0),inverse:e.program(13,a,0),data:a,loc:{start:{line:18,column:0},end:{line:26,column:0}}}))?o:""},12:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useUnionTypes"),{name:"if",hash:{},fn:e.program(13,a,0),inverse:e.program(15,a,0),data:a,loc:{start:{line:19,column:0},end:{line:23,column:7}}}))?o:""},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"exportType"),n,{name:"exportType",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},15:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"exportEnum"),n,{name:"exportEnum",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(i(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n"+(null!=(o=i(t,"if").call(l,i(n,"imports"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:8,column:7}}}))?o:"")+"\n"+(null!=(o=i(t,"equals").call(l,i(n,"export"),"interface",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:10,column:0},end:{line:26,column:11}}}))?o:"")},usePartial:!0,useData:!0},fn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\nexport const $"+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:3,column:17},end:{line:3,column:21}}),n))?o:"")+" = "+(null!=(o=e.invokePartial(l(r,"schema"),n,{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+" as const;"},usePartial:!0,useData:!0},hn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"imports"),{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:6,column:9}}}))?o:""},2:function(e,n,t,r,a){var o,l=e.lambda;return"import type { "+(null!=(o=l(n,n))?o:"")+" } from '../models/"+(null!=(o=l(n,n))?o:"")+"';\n"},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.lambda(e.strict(l(a,"root"),"appendTemplate",{start:{line:9,column:3},end:{line:9,column:23}}),n))?o:"")+"\n"},6:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"export interface "+(null!=(o=i(t,"capitalizeFirstLetter").call(l,i(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:13,column:17},end:{line:13,column:47}}}))?o:"")+" {\n "+(null!=(o=i(t,"hasLength").call(l,i(n,"results"),{name:"hasLength",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:14,column:2},end:{line:14,column:78}}}))?o:"")+"\n"+(null!=(o=i(t,"hasLength").call(l,i(n,"parameters"),{name:"hasLength",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:15,column:2},end:{line:19,column:16}}}))?o:"")+"}\n"},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"response: "+(null!=(o=l(t,"unionTypeBesideAny").call(null!=n?n:e.nullContext||{},l(n,"results"),{name:"unionTypeBesideAny",hash:{},data:a,loc:{start:{line:14,column:34},end:{line:14,column:64}}}))?o:"")},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" request: {\n "+(null!=(o=e.invokePartial(l(r,"parametersType"),n,{name:"parametersType",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+" }\n"},11:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" "+(null!=(o=l(t,"hasProperty").call(null!=n?n:e.nullContext||{},l(n,"parameters"),"path",{name:"hasProperty",hash:{},fn:e.program(12,a,0),inverse:e.program(20,a,0),data:a,loc:{start:{line:25,column:2},end:{line:29,column:86}}}))?o:"")+"\n"},12:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"capitalizeFirstLetter").call(l,i(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:25,column:36},end:{line:25,column:66}}}))?o:"")+": ({ "+(null!=(o=i(t,"each").call(l,i(n,"parameters"),{name:"each",hash:{},fn:e.program(13,a,0),inverse:e.noop,data:a,loc:{start:{line:25,column:71},end:{line:26,column:50}}}))?o:"")+"\n }: { "+(null!=(o=i(t,"each").call(l,i(n,"parameters"),{name:"each",hash:{},fn:e.program(16,a,0),inverse:e.noop,data:a,loc:{start:{line:27,column:7},end:{line:28,column:100}}}))?o:"")+"\n }) => `"+(null!=(o=e.lambda(e.strict(n,"path",{start:{line:29,column:11},end:{line:29,column:15}}),n))?o:"")+"`,"},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"path",{name:"equals",hash:{},fn:e.program(14,a,0),inverse:e.noop,data:a,loc:{start:{line:25,column:91},end:{line:26,column:41}}}))?o:""},14:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:26,column:7},end:{line:26,column:11}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+","},16:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"path",{name:"equals",hash:{},fn:e.program(17,a,0),inverse:e.noop,data:a,loc:{start:{line:27,column:27},end:{line:28,column:91}}}))?o:""},17:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:28,column:9},end:{line:28,column:13}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"if",hash:{},fn:e.program(18,a,0),inverse:e.noop,data:a,loc:{start:{line:28,column:42},end:{line:28,column:80}}}))?o:"")},18:function(e,n,t,r,a){var o;return" = "+(null!=(o=e.lambda(e.strict(n,"default",{start:{line:28,column:63},end:{line:28,column:70}}),n))?o:"")},20:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"capitalizeFirstLetter").call(null!=n?n:e.nullContext||{},l(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:29,column:27},end:{line:29,column:57}}}))?o:"")+": '"+(null!=(o=e.lambda(e.strict(n,"path",{start:{line:29,column:62},end:{line:29,column:66}}),n))?o:"")+"',"},22:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"export const "+(null!=(o=i(l(n,"name",{start:{line:34,column:16},end:{line:34,column:20}}),n))?o:"")+(null!=(o=i(l(s(a,"root"),"postfix",{start:{line:34,column:26},end:{line:34,column:39}}),n))?o:"")+"Api = {\n"+(null!=(o=s(t,"each").call(null!=n?n:e.nullContext||{},s(n,"operations"),{name:"each",hash:{},fn:e.program(23,a,0),inverse:e.noop,data:a,loc:{start:{line:35,column:2},end:{line:41,column:11}}}))?o:"")+"}\n"},23:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:36,column:4},end:{line:36,column:8}}),n))?o:"")+": ("+(null!=(o=i(t,"hasLength").call(l,i(n,"parameters"),{name:"hasLength",hash:{},fn:e.program(24,a,0),inverse:e.noop,data:a,loc:{start:{line:36,column:13},end:{line:36,column:99}}}))?o:"")+") => httpApi."+(null!=(o=i(t,"mapHttpApiMethod").call(l,i(n,"name"),{name:"mapHttpApiMethod",hash:{},data:a,loc:{start:{line:36,column:112},end:{line:36,column:137}}}))?o:"")+"<"+(null!=(o=i(t,"capitalizeFirstLetter").call(l,i(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:36,column:138},end:{line:36,column:168}}}))?o:"")+"['response']>({\n url: `"+(null!=(o=i(t,"prefixHttpApiMethodParam").call(l,i(n,"path"),{name:"prefixHttpApiMethodParam",hash:{},data:a,loc:{start:{line:37,column:10},end:{line:37,column:43}}}))?o:"")+"`"+(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"query",{name:"hasProperty",hash:{},fn:e.program(26,a,0),inverse:e.noop,data:a,loc:{start:{line:37,column:44},end:{line:38,column:43}}}))?o:"")+(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"body",{name:"hasProperty",hash:{},fn:e.program(28,a,0),inverse:e.noop,data:a,loc:{start:{line:38,column:43},end:{line:39,column:35}}}))?o:"")+"\n }),\n"},24:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"data: "+(null!=(o=l(t,"capitalizeFirstLetter").call(null!=n?n:e.nullContext||{},l(n,"name"),{name:"capitalizeFirstLetter",hash:{},data:a,loc:{start:{line:36,column:44},end:{line:36,column:74}}}))?o:"")+"['request']"},26:function(e,n,t,r,a){return",\n queryParams: data.query"},28:function(e,n,t,r,a){return",\n body: data.body"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.strict,s=e.lambda,u=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(u(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n"+(null!=(o=u(t,"if").call(l,u(n,"imports"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:7,column:7}}}))?o:"")+(null!=(o=u(t,"if").call(l,u(u(a,"root"),"appendTemplate"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:10,column:7}}}))?o:"")+"\n"+(null!=(o=u(t,"each").call(l,u(n,"operations"),{name:"each",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:12,column:0},end:{line:21,column:9}}}))?o:"")+"\nexport const "+(null!=(o=s(i(n,"name",{start:{line:23,column:16},end:{line:23,column:20}}),n))?o:"")+(null!=(o=s(i(u(a,"root"),"postfix",{start:{line:23,column:26},end:{line:23,column:39}}),n))?o:"")+"Url = {\n"+(null!=(o=u(t,"each").call(l,u(n,"operations"),{name:"each",hash:{},fn:e.program(11,a,0),inverse:e.noop,data:a,loc:{start:{line:24,column:2},end:{line:30,column:11}}}))?o:"")+"}\n\n"+(null!=(o=u(t,"if").call(l,u(u(a,"root"),"appendTemplate"),{name:"if",hash:{},fn:e.program(22,a,0),inverse:e.noop,data:a,loc:{start:{line:33,column:0},end:{line:43,column:7}}}))?o:"")},usePartial:!0,useData:!0},yn={1:function(e,n,t,r,a){return"\nexport { ApiError } from './core/ApiError';\nexport { CancelablePromise } from './core/CancelablePromise';\nexport { OpenAPI } from './core/OpenAPI';\n"},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"models"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:9,column:0},end:{line:22,column:7}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"models"),{name:"each",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:11,column:0},end:{line:21,column:9}}}))?o:"")},5:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useUnionTypes"),{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.program(8,a,0),data:a,loc:{start:{line:12,column:0},end:{line:20,column:7}}}))?o:""},6:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return"export type { "+(null!=(o=i(l(n,"name",{start:{line:13,column:17},end:{line:13,column:21}}),n))?o:"")+" } from './models/"+(null!=(o=i(l(n,"name",{start:{line:13,column:45},end:{line:13,column:49}}),n))?o:"")+"';\n"},8:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"enum"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.program(11,a,0),data:a,loc:{start:{line:14,column:0},end:{line:20,column:0}}}))?o:""},9:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return"export { "+(null!=(o=i(l(n,"name",{start:{line:15,column:12},end:{line:15,column:16}}),n))?o:"")+" } from './models/"+(null!=(o=i(l(n,"name",{start:{line:15,column:40},end:{line:15,column:44}}),n))?o:"")+"';\n"},11:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"enums"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:16,column:0},end:{line:20,column:0}}}))?o:""},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"models"),{name:"if",hash:{},fn:e.program(14,a,0),inverse:e.noop,data:a,loc:{start:{line:25,column:0},end:{line:30,column:7}}}))?o:""},14:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"models"),{name:"each",hash:{},fn:e.program(15,a,0),inverse:e.noop,data:a,loc:{start:{line:27,column:0},end:{line:29,column:9}}}))?o:"")},15:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return"export { $"+(null!=(o=i(l(n,"name",{start:{line:28,column:13},end:{line:28,column:17}}),n))?o:"")+" } from './schemas/$"+(null!=(o=i(l(n,"name",{start:{line:28,column:43},end:{line:28,column:47}}),n))?o:"")+"';\n"},17:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"services"),{name:"if",hash:{},fn:e.program(18,a,0),inverse:e.noop,data:a,loc:{start:{line:34,column:0},end:{line:38,column:7}}}))?o:""},18:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"services"),{name:"each",hash:{},fn:e.program(19,a,0),inverse:e.noop,data:a,loc:{start:{line:35,column:0},end:{line:37,column:9}}}))?o:""},19:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"export { "+(null!=(o=i(l(n,"name",{start:{line:36,column:12},end:{line:36,column:16}}),n))?o:"")+(null!=(o=i(l(s(a,"root"),"postfix",{start:{line:36,column:22},end:{line:36,column:35}}),n))?o:"")+"Url } from './services/"+(null!=(o=i(l(n,"name",{start:{line:36,column:64},end:{line:36,column:68}}),n))?o:"")+(null!=(o=i(l(s(a,"root"),"postfix",{start:{line:36,column:74},end:{line:36,column:87}}),n))?o:"")+"';\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(i(r,"header"),n,{name:"header",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=i(t,"if").call(l,i(i(a,"root"),"exportCore"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:7,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(i(a,"root"),"exportModels"),{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:23,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(i(a,"root"),"exportSchemas"),{name:"if",hash:{},fn:e.program(13,a,0),inverse:e.noop,data:a,loc:{start:{line:24,column:0},end:{line:31,column:7}}}))?o:"")+"\n"+(null!=(o=i(t,"if").call(l,i(i(a,"root"),"exportServices"),{name:"if",hash:{},fn:e.program(17,a,0),inverse:e.noop,data:a,loc:{start:{line:33,column:0},end:{line:39,column:7}}}))?o:"")},usePartial:!0,useData:!0},vn={1:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"fetch",{name:"equals",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:2,column:53}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"xhr",{name:"equals",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:3,column:51}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"axios",{name:"equals",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:4,column:53}}}))?o:"")+(null!=(o=i(t,"equals").call(l,i(i(a,"root"),"httpClient"),"node",{name:"equals",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:0},end:{line:5,column:52}}}))?o:"")},2:function(e,n,t,r,a){return"Blob"},4:function(e,n,t,r,a){var o;return null!=(o=e.lambda(e.strict(n,"base",{start:{line:7,column:3},end:{line:7,column:7}}),n))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"base"),"binary",{name:"equals",hash:{},fn:e.program(1,a,0),inverse:e.program(4,a,0),data:a,loc:{start:{line:1,column:0},end:{line:8,column:13}}}))?o:""},useData:!0},gn={1:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:3,column:6},end:{line:3,column:17}}),n))?o:"")+"\n */\n"},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useUnionTypes"),{name:"unless",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:27,column:11}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\nexport namespace "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:10,column:20},end:{line:10,column:24}}),n))?o:"")+" {\n\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"enums"),{name:"each",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:12,column:4},end:{line:24,column:13}}}))?o:"")+"\n}\n"},5:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:13,column:4},end:{line:17,column:11}}}))?o:"")+" export enum "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:18,column:19},end:{line:18,column:23}}),n))?o:"")+" {\n"+(null!=(o=i(t,"each").call(l,i(n,"enum"),{name:"each",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a,loc:{start:{line:19,column:8},end:{line:21,column:17}}}))?o:"")+" }\n\n"},6:function(e,n,t,r,a){var o;return" /**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:15,column:10},end:{line:15,column:21}}),n))?o:"")+"\n */\n"},8:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return" "+(null!=(o=i(l(n,"name",{start:{line:20,column:11},end:{line:20,column:15}}),n))?o:"")+" = "+(null!=(o=i(l(n,"value",{start:{line:20,column:24},end:{line:20,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?o:"")+"export type "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:6,column:15},end:{line:6,column:19}}),n))?o:"")+" = "+(null!=(o=e.invokePartial(i(r,"type"),n,{name:"type",hash:{parent:i(n,"name")},data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+";\n"+(null!=(o=i(t,"if").call(l,i(n,"enums"),{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:7,column:0},end:{line:28,column:7}}}))?o:"")},usePartial:!0,useData:!0},Pn={1:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:3,column:6},end:{line:3,column:17}}),n))?o:"")+"\n */\n"},3:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:4},end:{line:12,column:11}}}))?o:"")+(null!=(o=i(t,"containsSpaces").call(l,i(n,"name"),{name:"containsSpaces",hash:{},fn:e.program(6,a,0),inverse:e.program(8,a,0),data:a,loc:{start:{line:13,column:4},end:{line:17,column:23}}}))?o:"")},4:function(e,n,t,r,a){var o;return" /**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:10,column:10},end:{line:10,column:21}}),n))?o:"")+"\n */\n"},6:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return' "'+(null!=(o=i(l(n,"name",{start:{line:14,column:8},end:{line:14,column:12}}),n))?o:"")+'" = '+(null!=(o=i(l(n,"value",{start:{line:14,column:22},end:{line:14,column:27}}),n))?o:"")+",\n"},8:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return" "+(null!=(o=i(l(n,"name",{start:{line:16,column:7},end:{line:16,column:11}}),n))?o:"")+" = "+(null!=(o=i(l(n,"value",{start:{line:16,column:20},end:{line:16,column:25}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?o:"")+"export enum "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:6,column:15},end:{line:6,column:19}}),n))?o:"")+" {\n"+(null!=(o=i(t,"each").call(l,i(n,"enum"),{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:7,column:4},end:{line:18,column:13}}}))?o:"")+"}"},useData:!0},bn={1:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:3,column:6},end:{line:3,column:17}}),n))?o:"")+"\n */\n"},3:function(e,n,t,r,a,o,l){var i,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(i=s(t,"if").call(null!=n?n:e.nullContext||{},s(n,"description"),{name:"if",hash:{},fn:e.program(4,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:8,column:4},end:{line:12,column:11}}}))?i:"")+" "+(null!=(i=e.invokePartial(s(r,"isReadOnly"),n,{name:"isReadOnly",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+(null!=(i=e.lambda(e.strict(n,"name",{start:{line:13,column:22},end:{line:13,column:26}}),n))?i:"")+(null!=(i=e.invokePartial(s(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+": "+(null!=(i=e.invokePartial(s(r,"type"),n,{name:"type",hash:{parent:s(l[1],"name")},data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+";\n"},4:function(e,n,t,r,a){var o;return" /**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:10,column:10},end:{line:10,column:21}}),n))?o:"")+"\n */\n"},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useUnionTypes"),{name:"unless",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:17,column:0},end:{line:36,column:11}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\nexport namespace "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:19,column:20},end:{line:19,column:24}}),n))?o:"")+" {\n\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"enums"),{name:"each",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a,loc:{start:{line:21,column:4},end:{line:33,column:13}}}))?o:"")+"\n}\n"},8:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"if").call(l,i(n,"description"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:22,column:4},end:{line:26,column:11}}}))?o:"")+" export enum "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:27,column:19},end:{line:27,column:23}}),n))?o:"")+" {\n"+(null!=(o=i(t,"each").call(l,i(n,"enum"),{name:"each",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:28,column:8},end:{line:30,column:17}}}))?o:"")+" }\n\n"},9:function(e,n,t,r,a){var o,l=e.strict,i=e.lambda;return" "+(null!=(o=i(l(n,"name",{start:{line:29,column:11},end:{line:29,column:15}}),n))?o:"")+" = "+(null!=(o=i(l(n,"value",{start:{line:29,column:24},end:{line:29,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a,o,l){var i,s=null!=n?n:e.nullContext||{},u=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(i=u(t,"if").call(s,u(n,"description"),{name:"if",hash:{},fn:e.program(1,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?i:"")+"export type "+(null!=(i=e.lambda(e.strict(n,"name",{start:{line:6,column:15},end:{line:6,column:19}}),n))?i:"")+" = {\n"+(null!=(i=u(t,"each").call(s,u(n,"properties"),{name:"each",hash:{},fn:e.program(3,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:7,column:4},end:{line:14,column:13}}}))?i:"")+"}\n"+(null!=(i=u(t,"if").call(s,u(n,"enums"),{name:"if",hash:{},fn:e.program(6,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:16,column:0},end:{line:37,column:7}}}))?i:"")},usePartial:!0,useData:!0,useDepths:!0},On={1:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:3,column:6},end:{line:3,column:17}}),n))?o:"")+"\n */\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"description"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:5,column:7}}}))?o:"")+"export type "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:6,column:15},end:{line:6,column:19}}),n))?o:"")+" = "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+";"},usePartial:!0,useData:!0},xn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){return"/* istanbul ignore file */\n/* tslint:disable */\n/* eslint-disable */"},useData:!0},kn={1:function(e,n,t,r,a){return" | null"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"isNullable"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:32}}}))?o:""},useData:!0},Rn={1:function(e,n,t,r,a){return"readonly "},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:34}}}))?o:""},useData:!0},wn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(n,"isRequired"),{name:"unless",hash:{},fn:e.program(2,a,0),inverse:e.program(4,a,0),data:a,loc:{start:{line:2,column:0},end:{line:2,column:54}}}))?o:""},2:function(e,n,t,r,a){return"?"},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"if",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:23},end:{line:2,column:43}}}))?o:""},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(n,"isRequired"),{name:"unless",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:4,column:64}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"unless",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:22},end:{line:4,column:53}}}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useOptions"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?o:""},useData:!0},qn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(l(a,"root"),"useOptions"),{name:"if",hash:{},fn:e.program(2,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:2,column:0},end:{line:20,column:7}}}))?o:""},2:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n"+(null!=(o=i(t,"each").call(l,i(n,"parameters"),{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:6,column:9}}}))?o:"")+"}: {\n"+(null!=(o=i(t,"each").call(l,i(n,"parameters"),{name:"each",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:13,column:9}}}))?o:"")+"}"},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.lambda(e.strict(n,"name",{start:{line:5,column:3},end:{line:5,column:7}}),n))?o:"")+(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:10},end:{line:5,column:48}}}))?o:"")+",\n"},4:function(e,n,t,r,a){var o;return" = "+(null!=(o=e.lambda(e.strict(n,"default",{start:{line:5,column:31},end:{line:5,column:38}}),n))?o:"")},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"description"),{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:9,column:0},end:{line:11,column:7}}}))?o:"")+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:12,column:3},end:{line:12,column:7}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+",\n"},7:function(e,n,t,r,a){var o;return"/** "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:10,column:7},end:{line:10,column:18}}),n))?o:"")+" **/\n"},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"each",hash:{},fn:e.program(10,a,0),inverse:e.noop,data:a,loc:{start:{line:17,column:0},end:{line:19,column:9}}}))?o:"")},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.lambda(e.strict(n,"name",{start:{line:18,column:3},end:{line:18,column:7}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"default"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:18,column:36},end:{line:18,column:74}}}))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:21,column:7}}}))?o:""},usePartial:!0,useData:!0},Cn={1:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"path",{name:"hasProperty",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:10,column:16}}}))?o:"")+(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"query",{name:"hasProperty",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:11,column:0},end:{line:19,column:16}}}))?o:"")+(null!=(o=i(t,"hasProperty").call(l,i(n,"parameters"),"body",{name:"hasProperty",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:20,column:0},end:{line:28,column:16}}}))?o:"")},2:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"path: {\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"each",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:8,column:9}}}))?o:"")+"}\n"},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"path",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:2},end:{line:7,column:13}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:6,column:5},end:{line:6,column:9}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+"\n"},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"query: {\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"each",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:13,column:0},end:{line:17,column:9}}}))?o:"")+"}\n"},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"query",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:14,column:2},end:{line:16,column:13}}}))?o:""},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"body: {\n"+(null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"each",hash:{},fn:e.program(10,a,0),inverse:e.noop,data:a,loc:{start:{line:22,column:0},end:{line:26,column:9}}}))?o:"")+"}\n"},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"in"),"body",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:23,column:2},end:{line:25,column:13}}}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"parameters"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:29,column:7}}}))?o:""},usePartial:!0,useData:!0},jn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"results"),{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:2,column:66}}}))?o:""},2:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(a,"last"),{name:"unless",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:26},end:{line:2,column:57}}}))?o:"")},3:function(e,n,t,r,a){return" | "},5:function(e,n,t,r,a){return"void"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"results"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(5,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?o:""},usePartial:!0,useData:!0},An={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaInterface"),n,{name:"schemaInterface",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"enum",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:3,column:0},end:{line:17,column:0}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaEnum"),n,{name:"schemaEnum",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"array",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:5,column:0},end:{line:17,column:0}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaArray"),n,{name:"schemaArray",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"dictionary",{name:"equals",hash:{},fn:e.program(10,a,0),inverse:e.program(12,a,0),data:a,loc:{start:{line:7,column:0},end:{line:17,column:0}}}))?o:""},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaDictionary"),n,{name:"schemaDictionary",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},12:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"any-of",{name:"equals",hash:{},fn:e.program(13,a,0),inverse:e.program(15,a,0),data:a,loc:{start:{line:9,column:0},end:{line:17,column:0}}}))?o:""},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaComposition"),n,{name:"schemaComposition",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},15:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"all-of",{name:"equals",hash:{},fn:e.program(13,a,0),inverse:e.program(16,a,0),data:a,loc:{start:{line:11,column:0},end:{line:17,column:0}}}))?o:""},16:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"one-of",{name:"equals",hash:{},fn:e.program(13,a,0),inverse:e.program(17,a,0),data:a,loc:{start:{line:13,column:0},end:{line:17,column:0}}}))?o:""},17:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"schemaGeneric"),n,{name:"schemaGeneric",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"interface",{name:"equals",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:17,column:11}}}))?o:""},usePartial:!0,useData:!0},Dn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" contains: "+(null!=(o=e.invokePartial(l(r,"schema"),l(n,"link"),{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+",\n"},3:function(e,n,t,r,a){var o;return" contains: {\n type: '"+(null!=(o=e.lambda(e.strict(n,"base",{start:{line:7,column:18},end:{line:7,column:22}}),n))?o:"")+"',\n },\n"},5:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:11,column:19},end:{line:11,column:29}}),n))?o:"")+",\n"},7:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:14,column:19},end:{line:14,column:29}}),n))?o:"")+",\n"},9:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:17,column:19},end:{line:17,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n type: 'array',\n"+(null!=(o=i(t,"if").call(l,i(n,"link"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:10,column:0},end:{line:12,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:13,column:0},end:{line:15,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:16,column:0},end:{line:18,column:7}}}))?o:"")+"}"},usePartial:!0,useData:!0},Tn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"schema"),n,{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=l(t,"unless").call(null!=n?n:e.nullContext||{},l(a,"last"),{name:"unless",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:46},end:{line:3,column:76}}}))?o:"")},2:function(e,n,t,r,a){return", "},4:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:5,column:19},end:{line:5,column:29}}),n))?o:"")+",\n"},6:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:8,column:19},end:{line:8,column:29}}),n))?o:"")+",\n"},8:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:11,column:19},end:{line:11,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n type: '"+(null!=(o=e.lambda(e.strict(n,"export",{start:{line:2,column:13},end:{line:2,column:19}}),n))?o:"")+"',\n contains: ["+(null!=(o=i(t,"each").call(l,i(n,"properties"),{name:"each",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:15},end:{line:3,column:85}}}))?o:"")+"],\n"+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:6,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:7,column:0},end:{line:9,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a,loc:{start:{line:10,column:0},end:{line:12,column:7}}}))?o:"")+"}"},usePartial:!0,useData:!0},In={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" contains: "+(null!=(o=e.invokePartial(l(r,"schema"),l(n,"link"),{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+",\n"},3:function(e,n,t,r,a){var o;return" contains: {\n type: '"+(null!=(o=e.lambda(e.strict(n,"base",{start:{line:7,column:18},end:{line:7,column:22}}),n))?o:"")+"',\n },\n"},5:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:11,column:19},end:{line:11,column:29}}),n))?o:"")+",\n"},7:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:14,column:19},end:{line:14,column:29}}),n))?o:"")+",\n"},9:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:17,column:19},end:{line:17,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n type: 'dictionary',\n"+(null!=(o=i(t,"if").call(l,i(n,"link"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:3,column:0},end:{line:9,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:10,column:0},end:{line:12,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:13,column:0},end:{line:15,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:16,column:0},end:{line:18,column:7}}}))?o:"")+"}"},usePartial:!0,useData:!0},En={1:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:4,column:19},end:{line:4,column:29}}),n))?o:"")+",\n"},3:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:7,column:19},end:{line:7,column:29}}),n))?o:"")+",\n"},5:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:10,column:19},end:{line:10,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n type: 'Enum',\n"+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:5,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:6,column:0},end:{line:8,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:9,column:0},end:{line:11,column:7}}}))?o:"")+"}"},useData:!0},Hn={1:function(e,n,t,r,a){var o;return" type: '"+(null!=(o=e.lambda(e.strict(n,"base",{start:{line:3,column:14},end:{line:3,column:18}}),n))?o:"")+"',\n"},3:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:6,column:19},end:{line:6,column:29}}),n))?o:"")+",\n"},5:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:9,column:19},end:{line:9,column:29}}),n))?o:"")+",\n"},7:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:12,column:19},end:{line:12,column:29}}),n))?o:"")+",\n"},9:function(e,n,t,r,a){var o;return" format: '"+(null!=(o=e.lambda(e.strict(n,"format",{start:{line:15,column:16},end:{line:15,column:22}}),n))?o:"")+"',\n"},11:function(e,n,t,r,a){var o;return" maximum: "+(null!=(o=e.lambda(e.strict(n,"maximum",{start:{line:18,column:16},end:{line:18,column:23}}),n))?o:"")+",\n"},13:function(e,n,t,r,a){var o;return" exclusiveMaximum: "+(null!=(o=e.lambda(e.strict(n,"exclusiveMaximum",{start:{line:21,column:25},end:{line:21,column:41}}),n))?o:"")+",\n"},15:function(e,n,t,r,a){var o;return" minimum: "+(null!=(o=e.lambda(e.strict(n,"minimum",{start:{line:24,column:16},end:{line:24,column:23}}),n))?o:"")+",\n"},17:function(e,n,t,r,a){var o;return" exclusiveMinimum: "+(null!=(o=e.lambda(e.strict(n,"exclusiveMinimum",{start:{line:27,column:25},end:{line:27,column:41}}),n))?o:"")+",\n"},19:function(e,n,t,r,a){var o;return" multipleOf: "+(null!=(o=e.lambda(e.strict(n,"multipleOf",{start:{line:30,column:19},end:{line:30,column:29}}),n))?o:"")+",\n"},21:function(e,n,t,r,a){var o;return" maxLength: "+(null!=(o=e.lambda(e.strict(n,"maxLength",{start:{line:33,column:18},end:{line:33,column:27}}),n))?o:"")+",\n"},23:function(e,n,t,r,a){var o;return" minLength: "+(null!=(o=e.lambda(e.strict(n,"minLength",{start:{line:36,column:18},end:{line:36,column:27}}),n))?o:"")+",\n"},25:function(e,n,t,r,a){var o;return" pattern: '"+(null!=(o=e.lambda(e.strict(n,"pattern",{start:{line:39,column:17},end:{line:39,column:24}}),n))?o:"")+"',\n"},27:function(e,n,t,r,a){var o;return" maxItems: "+(null!=(o=e.lambda(e.strict(n,"maxItems",{start:{line:42,column:17},end:{line:42,column:25}}),n))?o:"")+",\n"},29:function(e,n,t,r,a){var o;return" minItems: "+(null!=(o=e.lambda(e.strict(n,"minItems",{start:{line:45,column:17},end:{line:45,column:25}}),n))?o:"")+",\n"},31:function(e,n,t,r,a){var o;return" uniqueItems: "+(null!=(o=e.lambda(e.strict(n,"uniqueItems",{start:{line:48,column:20},end:{line:48,column:31}}),n))?o:"")+",\n"},33:function(e,n,t,r,a){var o;return" maxProperties: "+(null!=(o=e.lambda(e.strict(n,"maxProperties",{start:{line:51,column:22},end:{line:51,column:35}}),n))?o:"")+",\n"},35:function(e,n,t,r,a){var o;return" minProperties: "+(null!=(o=e.lambda(e.strict(n,"minProperties",{start:{line:54,column:22},end:{line:54,column:35}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n"+(null!=(o=i(t,"if").call(l,i(n,"type"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:2,column:0},end:{line:4,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(3,a,0),inverse:e.noop,data:a,loc:{start:{line:5,column:0},end:{line:7,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(5,a,0),inverse:e.noop,data:a,loc:{start:{line:8,column:0},end:{line:10,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(7,a,0),inverse:e.noop,data:a,loc:{start:{line:11,column:0},end:{line:13,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"format"),{name:"if",hash:{},fn:e.program(9,a,0),inverse:e.noop,data:a,loc:{start:{line:14,column:0},end:{line:16,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"maximum"),{name:"if",hash:{},fn:e.program(11,a,0),inverse:e.noop,data:a,loc:{start:{line:17,column:0},end:{line:19,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"exclusiveMaximum"),{name:"if",hash:{},fn:e.program(13,a,0),inverse:e.noop,data:a,loc:{start:{line:20,column:0},end:{line:22,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"minimum"),{name:"if",hash:{},fn:e.program(15,a,0),inverse:e.noop,data:a,loc:{start:{line:23,column:0},end:{line:25,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"exclusiveMinimum"),{name:"if",hash:{},fn:e.program(17,a,0),inverse:e.noop,data:a,loc:{start:{line:26,column:0},end:{line:28,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"multipleOf"),{name:"if",hash:{},fn:e.program(19,a,0),inverse:e.noop,data:a,loc:{start:{line:29,column:0},end:{line:31,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"maxLength"),{name:"if",hash:{},fn:e.program(21,a,0),inverse:e.noop,data:a,loc:{start:{line:32,column:0},end:{line:34,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"minLength"),{name:"if",hash:{},fn:e.program(23,a,0),inverse:e.noop,data:a,loc:{start:{line:35,column:0},end:{line:37,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"pattern"),{name:"if",hash:{},fn:e.program(25,a,0),inverse:e.noop,data:a,loc:{start:{line:38,column:0},end:{line:40,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"maxItems"),{name:"if",hash:{},fn:e.program(27,a,0),inverse:e.noop,data:a,loc:{start:{line:41,column:0},end:{line:43,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"minItems"),{name:"if",hash:{},fn:e.program(29,a,0),inverse:e.noop,data:a,loc:{start:{line:44,column:0},end:{line:46,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"uniqueItems"),{name:"if",hash:{},fn:e.program(31,a,0),inverse:e.noop,data:a,loc:{start:{line:47,column:0},end:{line:49,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"maxProperties"),{name:"if",hash:{},fn:e.program(33,a,0),inverse:e.noop,data:a,loc:{start:{line:50,column:0},end:{line:52,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"minProperties"),{name:"if",hash:{},fn:e.program(35,a,0),inverse:e.noop,data:a,loc:{start:{line:53,column:0},end:{line:55,column:7}}}))?o:"")+"}"},useData:!0},Sn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"each").call(null!=n?n:e.nullContext||{},l(n,"properties"),{name:"each",hash:{},fn:e.program(2,a,0),inverse:e.noop,data:a,loc:{start:{line:4,column:4},end:{line:6,column:13}}}))?o:""},2:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return" "+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:5,column:11},end:{line:5,column:15}}),n))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"schema"),n,{name:"schema",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+",\n"},4:function(e,n,t,r,a){var o;return" isReadOnly: "+(null!=(o=e.lambda(e.strict(n,"isReadOnly",{start:{line:10,column:19},end:{line:10,column:29}}),n))?o:"")+",\n"},6:function(e,n,t,r,a){var o;return" isRequired: "+(null!=(o=e.lambda(e.strict(n,"isRequired",{start:{line:13,column:19},end:{line:13,column:29}}),n))?o:"")+",\n"},8:function(e,n,t,r,a){var o;return" isNullable: "+(null!=(o=e.lambda(e.strict(n,"isNullable",{start:{line:16,column:19},end:{line:16,column:29}}),n))?o:"")+",\n"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=null!=n?n:e.nullContext||{},i=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n properties: {\n"+(null!=(o=i(t,"if").call(l,i(n,"properties"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:7,column:7}}}))?o:"")+" },\n"+(null!=(o=i(t,"if").call(l,i(n,"isReadOnly"),{name:"if",hash:{},fn:e.program(4,a,0),inverse:e.noop,data:a,loc:{start:{line:9,column:0},end:{line:11,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isRequired"),{name:"if",hash:{},fn:e.program(6,a,0),inverse:e.noop,data:a,loc:{start:{line:12,column:0},end:{line:14,column:7}}}))?o:"")+(null!=(o=i(t,"if").call(l,i(n,"isNullable"),{name:"if",hash:{},fn:e.program(8,a,0),inverse:e.noop,data:a,loc:{start:{line:15,column:0},end:{line:17,column:7}}}))?o:"")+"}"},usePartial:!0,useData:!0},$n={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeInterface"),n,{name:"typeInterface",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"reference",{name:"equals",hash:{},fn:e.program(4,a,0),inverse:e.program(6,a,0),data:a,loc:{start:{line:3,column:0},end:{line:19,column:0}}}))?o:""},4:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeReference"),n,{name:"typeReference",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},6:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"enum",{name:"equals",hash:{},fn:e.program(7,a,0),inverse:e.program(9,a,0),data:a,loc:{start:{line:5,column:0},end:{line:19,column:0}}}))?o:""},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeEnum"),n,{name:"typeEnum",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},9:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"array",{name:"equals",hash:{},fn:e.program(10,a,0),inverse:e.program(12,a,0),data:a,loc:{start:{line:7,column:0},end:{line:19,column:0}}}))?o:""},10:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeArray"),n,{name:"typeArray",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},12:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"dictionary",{name:"equals",hash:{},fn:e.program(13,a,0),inverse:e.program(15,a,0),data:a,loc:{start:{line:9,column:0},end:{line:19,column:0}}}))?o:""},13:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeDictionary"),n,{name:"typeDictionary",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},15:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"one-of",{name:"equals",hash:{},fn:e.program(16,a,0),inverse:e.program(18,a,0),data:a,loc:{start:{line:11,column:0},end:{line:19,column:0}}}))?o:""},16:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeUnion"),n,{name:"typeUnion",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},18:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"any-of",{name:"equals",hash:{},fn:e.program(16,a,0),inverse:e.program(19,a,0),data:a,loc:{start:{line:13,column:0},end:{line:19,column:0}}}))?o:""},19:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"all-of",{name:"equals",hash:{},fn:e.program(20,a,0),inverse:e.program(22,a,0),data:a,loc:{start:{line:15,column:0},end:{line:19,column:0}}}))?o:""},20:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeIntersection"),n,{name:"typeIntersection",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},22:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=e.invokePartial(l(r,"typeGeneric"),n,{name:"typeGeneric",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"equals").call(null!=n?n:e.nullContext||{},l(n,"export"),"interface",{name:"equals",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:19,column:11}}}))?o:""},usePartial:!0,useData:!0},Nn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"Array<"+(null!=(o=e.invokePartial(l(r,"type"),l(n,"link"),{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+">"+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"Array<"+(null!=(o=e.invokePartial(l(r,"base"),n,{name:"base",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+">"+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"link"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?o:""},usePartial:!0,useData:!0},Bn={1:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"Record<string, "+(null!=(o=e.invokePartial(l(r,"type"),l(n,"link"),{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+">"+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},3:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"Record<string, "+(null!=(o=e.invokePartial(l(r,"base"),n,{name:"base",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+">"+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(o=l(t,"if").call(null!=n?n:e.nullContext||{},l(n,"link"),{name:"if",hash:{},fn:e.program(1,a,0),inverse:e.program(3,a,0),data:a,loc:{start:{line:1,column:0},end:{line:5,column:9}}}))?o:""},usePartial:!0,useData:!0},Ln={1:function(e,n,t,r,a){var o;return null!=(o=e.lambda(n,n))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"enumerator").call(null!=n?n:e.nullContext||{},l(n,"enum"),l(n,"parent"),l(n,"name"),{name:"enumerator",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:55}}}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0},Mn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"base"),n,{name:"base",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0},Un={1:function(e,n,t,r,a,o,l){var i,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return"{\n"+(null!=(i=s(t,"each").call(null!=n?n:e.nullContext||{},s(n,"properties"),{name:"each",hash:{},fn:e.program(2,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:3,column:0},end:{line:14,column:9}}}))?i:"")+"}"+(null!=(i=e.invokePartial(s(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")},2:function(e,n,t,r,a,o,l){var i,s=null!=n?n:e.nullContext||{},u=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(i=u(t,"if").call(s,u(n,"description"),{name:"if",hash:{},fn:e.program(3,a,0,o,l),inverse:e.noop,data:a,loc:{start:{line:4,column:0},end:{line:8,column:7}}}))?i:"")+(null!=(i=u(t,"if").call(s,u(l[1],"parent"),{name:"if",hash:{},fn:e.program(5,a,0,o,l),inverse:e.program(7,a,0,o,l),data:a,loc:{start:{line:9,column:0},end:{line:13,column:7}}}))?i:"")},3:function(e,n,t,r,a){var o;return"/**\n * "+(null!=(o=e.lambda(e.strict(n,"description",{start:{line:6,column:6},end:{line:6,column:17}}),n))?o:"")+"\n */\n"},5:function(e,n,t,r,a,o,l){var i,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(i=e.invokePartial(s(r,"isReadOnly"),n,{name:"isReadOnly",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+(null!=(i=e.lambda(e.strict(n,"name",{start:{line:10,column:18},end:{line:10,column:22}}),n))?i:"")+(null!=(i=e.invokePartial(s(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+": "+(null!=(i=e.invokePartial(s(r,"type"),n,{name:"type",hash:{parent:s(l[1],"parent")},data:a,helpers:t,partials:r,decorators:e.decorators}))?i:"")+";\n"},7:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"isReadOnly"),n,{name:"isReadOnly",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=e.lambda(e.strict(n,"name",{start:{line:12,column:18},end:{line:12,column:22}}),n))?o:"")+(null!=(o=e.invokePartial(l(r,"isRequired"),n,{name:"isRequired",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+": "+(null!=(o=e.invokePartial(l(r,"type"),n,{name:"type",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+";\n"},9:function(e,n,t,r,a){return"any"},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a,o,l){var i,s=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return null!=(i=s(t,"if").call(null!=n?n:e.nullContext||{},s(n,"properties"),{name:"if",hash:{},fn:e.program(1,a,0,o,l),inverse:e.program(9,a,0,o,l),data:a,loc:{start:{line:1,column:0},end:{line:18,column:9}}}))?i:""},usePartial:!0,useData:!0,useDepths:!0},Fn={1:function(e,n,t,r,a){var o;return null!=(o=e.lambda(n,n))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"intersection").call(null!=n?n:e.nullContext||{},l(n,"properties"),l(n,"parent"),{name:"intersection",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:60}}}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0},Wn={compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=e.invokePartial(l(r,"base"),n,{name:"base",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0},_n={1:function(e,n,t,r,a){var o;return null!=(o=e.lambda(n,n))?o:""},compiler:[8,">= 4.3.0"],main:function(e,n,t,r,a){var o,l=e.lookupProperty||function(e,n){if(Object.prototype.hasOwnProperty.call(e,n))return e[n]};return(null!=(o=l(t,"union").call(null!=n?n:e.nullContext||{},l(n,"properties"),l(n,"parent"),{name:"union",hash:{},fn:e.program(1,a,0),inverse:e.noop,data:a,loc:{start:{line:1,column:0},end:{line:1,column:46}}}))?o:"")+(null!=(o=e.invokePartial(l(r,"isNullable"),n,{name:"isNullable",data:a,helpers:t,partials:r,decorators:e.decorators}))?o:"")},usePartial:!0,useData:!0};function Vn(e){!function(e){h.registerHelper("unionTypeBesideAny",(function(e){const n=e.map((e=>e.type)),t=n.filter((e=>"any"!==e));return 0===t.length?n.join(" | "):t.join(" | ")})),h.registerHelper("capitalizeFirstLetter",(function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),h.registerHelper("hasProperty",(function(e,n,t){return e.map((e=>e.in)).find((e=>e===n))?t.fn(this):t.inverse(this)})),h.registerHelper("mapHttpApiMethod",(function(){switch(this.method){default:return"getDataViaApi";case"POST":return"postDataViaApi";case"PUT":return"putDataViaApi";case"DELETE":return"deleteDataViaApi"}})),h.registerHelper("httpApiMethodIsEqual",(function(e){return"GET"===this.method})),h.registerHelper("prefixHttpApiMethodParam",(function(){return this.path.replace(/\$\{/g,"${data.path.")})),h.registerHelper("debugPrint",(function(){return console.log(this),JSON.stringify(this)})),h.registerHelper("hasLength",(function(e,n){return e.length>0?n.fn(this):n.inverse(this)})),h.registerHelper("equals",(function(e,n,t){return e===n?t.fn(this):t.inverse(this)})),h.registerHelper("notEquals",(function(e,n,t){return e!==n?t.fn(this):t.inverse(this)})),h.registerHelper("containsSpaces",(function(e,n){return/\s+/.test(e)?n.fn(this):n.inverse(this)})),h.registerHelper("union",(function(n,t,r){const a=h.partials.type,o=n.map((n=>a(Object.assign(Object.assign(Object.assign({},e),n),{parent:t})))).filter(H);let l=o.join(" | ");return o.length>1&&(l=`(${l})`),r.fn(l)})),h.registerHelper("intersection",(function(n,t,r){const a=h.partials.type,o=n.map((n=>a(Object.assign(Object.assign(Object.assign({},e),n),{parent:t})))).filter(H);let l=o.join(" & ");return o.length>1&&(l=`(${l})`),r.fn(l)})),h.registerHelper("enumerator",(function(n,t,r,a){return!e.useUnionTypes&&t&&r?`${t}.${r}`:a.fn(n.map((e=>e.value)).filter(H).join(" | "))}))}(e);const n={index:h.template(yn),exports:{model:h.template(dn),schema:h.template(fn),service:h.template(hn)},core:{settings:h.template(an),apiError:h.template(we),apiRequestOptions:h.template(qe),apiResult:h.template(Ce),cancelablePromise:h.template(He),request:h.template(on)}};return h.registerPartial("exportEnum",h.template(Pn)),h.registerPartial("exportInterface",h.template(bn)),h.registerPartial("exportComposition",h.template(gn)),h.registerPartial("exportType",h.template(On)),h.registerPartial("header",h.template(xn)),h.registerPartial("isNullable",h.template(kn)),h.registerPartial("isReadOnly",h.template(Rn)),h.registerPartial("isRequired",h.template(wn)),h.registerPartial("parameters",h.template(qn)),h.registerPartial("parametersType",h.template(Cn)),h.registerPartial("result",h.template(jn)),h.registerPartial("schema",h.template(An)),h.registerPartial("schemaArray",h.template(Dn)),h.registerPartial("schemaDictionary",h.template(In)),h.registerPartial("schemaEnum",h.template(En)),h.registerPartial("schemaGeneric",h.template(Hn)),h.registerPartial("schemaInterface",h.template(Sn)),h.registerPartial("schemaComposition",h.template(Tn)),h.registerPartial("type",h.template($n)),h.registerPartial("typeArray",h.template(Nn)),h.registerPartial("typeDictionary",h.template(Bn)),h.registerPartial("typeEnum",h.template(Ln)),h.registerPartial("typeGeneric",h.template(Mn)),h.registerPartial("typeInterface",h.template(Un)),h.registerPartial("typeReference",h.template(Wn)),h.registerPartial("typeUnion",h.template(_n)),h.registerPartial("typeIntersection",h.template(Fn)),h.registerPartial("base",h.template(vn)),h.registerPartial("functions/catchErrors",h.template(Fe)),h.registerPartial("functions/getFormData",h.template(We)),h.registerPartial("functions/getQueryString",h.template(_e)),h.registerPartial("functions/getUrl",h.template(Ve)),h.registerPartial("functions/isBlob",h.template(ze)),h.registerPartial("functions/isDefined",h.template(Qe)),h.registerPartial("functions/isString",h.template(Je)),h.registerPartial("functions/isStringWithValue",h.template(Ze)),h.registerPartial("functions/isSuccess",h.template(Ge)),h.registerPartial("functions/base64",h.template(Ue)),h.registerPartial("functions/resolve",h.template(Xe)),h.registerPartial("fetch/getHeaders",h.template(Se)),h.registerPartial("fetch/getRequestBody",h.template($e)),h.registerPartial("fetch/getResponseBody",h.template(Ne)),h.registerPartial("fetch/getResponseHeader",h.template(Be)),h.registerPartial("fetch/sendRequest",h.template(Me)),h.registerPartial("fetch/request",h.template(Le)),h.registerPartial("xhr/getHeaders",h.template(ln)),h.registerPartial("xhr/getRequestBody",h.template(sn)),h.registerPartial("xhr/getResponseBody",h.template(un)),h.registerPartial("xhr/getResponseHeader",h.template(pn)),h.registerPartial("xhr/sendRequest",h.template(mn)),h.registerPartial("xhr/request",h.template(cn)),h.registerPartial("node/getHeaders",h.template(Ke)),h.registerPartial("node/getRequestBody",h.template(Ye)),h.registerPartial("node/getResponseBody",h.template(en)),h.registerPartial("node/getResponseHeader",h.template(nn)),h.registerPartial("node/sendRequest",h.template(rn)),h.registerPartial("node/request",h.template(tn)),h.registerPartial("axios/getHeaders",h.template(je)),h.registerPartial("axios/getRequestBody",h.template(Ae)),h.registerPartial("axios/getResponseBody",h.template(De)),h.registerPartial("axios/getResponseHeader",h.template(Te)),h.registerPartial("axios/sendRequest",h.template(Ee)),h.registerPartial("axios/request",h.template(Ie)),n}s.promisify(e.readFile);const zn=s.promisify(e.writeFile),Qn=s.promisify(e.copyFile),Jn=s.promisify(e.exists),Zn=y.default,Gn=e=>new Promise(((n,t)=>{v.default(e,(e=>{e?t(e):n()}))}));function Xn(e){let t=0,r=e.split(n.EOL);return r=r.map((e=>{e=e.trim().replace(/^\*/g," *");let n=t;(e.endsWith("(")||e.endsWith("{")||e.endsWith("["))&&t++,(e.startsWith(")")||e.startsWith("}")||e.startsWith("]"))&&n&&(t--,n--);const r=`${" ".repeat(n)}${e}`;return""===r.trim()?"":r})),r.join(n.EOL)}async function Kn(e,n,t,r,a,l,i,s,u,p,c,m,d){const f=o.resolve(process.cwd(),t),h=o.resolve(f,"core"),y=o.resolve(f,"models"),v=o.resolve(f,"schemas"),g=o.resolve(f,"services");if(P=process.cwd(),b=t,!o.relative(b,P).startsWith(".."))throw new Error("Output folder is not a subdirectory of the current working directory");var P,b;i&&(await Gn(h),await Zn(h),await async function(e,n,t,r,a){const l={httpClient:r,server:e.server,version:e.version};if(await zn(o.resolve(t,"OpenAPI.ts"),n.core.settings(l)),await zn(o.resolve(t,"ApiError.ts"),n.core.apiError({})),await zn(o.resolve(t,"ApiRequestOptions.ts"),n.core.apiRequestOptions({})),await zn(o.resolve(t,"ApiResult.ts"),n.core.apiResult({})),await zn(o.resolve(t,"CancelablePromise.ts"),n.core.cancelablePromise({})),await zn(o.resolve(t,"request.ts"),n.core.request(l)),a){const e=o.resolve(process.cwd(),a);if(!await Jn(e))throw new Error(`Custom request file "${e}" does not exists`);await Qn(e,o.resolve(t,"request.ts"))}}(e,n,h,r,m)),s&&(await Gn(g),await Zn(g),await async function(e,n,t,r,a,l,i,s){for(const u of e){const e=o.resolve(t,`${u.name}${i}.ts`),p=u.operations.some((e=>e.path.includes("OpenAPI.VERSION"))),c=n.exports.service(Object.assign(Object.assign({},u),{httpClient:r,useUnionTypes:a,useVersion:p,useOptions:l,postfix:i,appendTemplate:s}));await zn(e,Xn(c))}}(e.services,n,g,r,l,a,c,d)),p&&(await Gn(v),await Zn(v),await async function(e,n,t,r,a){for(const l of e){const e=o.resolve(t,`$${l.name}.ts`),i=n.exports.schema(Object.assign(Object.assign({},l),{httpClient:r,useUnionTypes:a}));await zn(e,Xn(i))}}(e.models,n,v,r,l)),u&&(await Gn(y),await Zn(y),await async function(e,n,t,r,a){for(const l of e){const e=o.resolve(t,`${l.name}.ts`),i=n.exports.model(Object.assign(Object.assign({},l),{httpClient:r,useUnionTypes:a}));await zn(e,Xn(i))}}(e.models,n,y,r,l)),(i||s||p||u)&&(await Zn(f),await async function(e,n,t,r,a,l,i,s,u){var p,c;await zn(o.resolve(t,"index.ts"),n.index({exportCore:a,exportServices:l,exportModels:i,exportSchemas:s,useUnionTypes:r,postfix:u,server:e.server,version:e.version,models:(c=e.models,c.sort(((e,n)=>{const t=e.name.toLowerCase(),r=n.name.toLowerCase();return t.localeCompare(r,"en")}))),services:(p=e.services,p.sort(((e,n)=>{const t=e.name.toLowerCase(),r=n.name.toLowerCase();return t.localeCompare(r,"en")})))}))}(e,n,f,l,i,s,u,p,c))}const Yn=require("api-spec-converter"),et=require("shelljs");async function nt({input:e,output:n,httpClient:t=exports.HttpClient.FETCH,useOptions:r=!1,useUnionTypes:a=!1,exportCore:o=!0,exportServices:l=!0,exportModels:i=!0,exportSchemas:s=!1,postfix:u="Service",request:p,write:c=!0,selectedOnly:m=!1,appendTemplate:d=""}){const h="string"==typeof e?await async function(e){return await f.default.bundle(e,e,{})}(e):e;const y=function(e){const n=e.swagger||e.openapi;if("string"==typeof n){const e=n.charAt(0),t=Number.parseInt(e);if(t===ve.V2||t===ve.V3)return t}throw new Error(`Unsupported Open API version: "${String(n)}"`)}(h),v=Vn({httpClient:t,useUnionTypes:a,useOptions:!1});switch(y){case ve.V2:{const e=Re(V(h));if(!c)break;await Kn(e,v,n,t,!1,a,!1,l,i,!1,u,p,d);break}case ve.V3:{const e=Re(ye(h,m));if(!c)break;await Kn(e,v,n,t,!1,a,!1,l,i,!1,u,p,d);break}}}exports.convertAndGenerate=async function({from:e,source:n},{input:t,output:r,useOptions:a,useUnionTypes:o},l=[],i=!1,s,u,p){try{new RegExp("((git|ssh|http(s)?)|(git@[w.]+))(:(//)?)([w.@:/-~]+)(.git)(/)?").test(n)&&(et.exec(`git archive --remote=${n} | tar -xO > ./api-schema.json`),"string"==typeof t&&(n=t));let c=await Yn.convert({from:e,to:e,source:n});l.forEach((e=>{process.stdout.clearLine(0),process.stdout.cursorTo(0),process.stdout.write(`Processing ${e.originalUrl} ${e.method} ${e.methodName}`),c.spec.paths[e.originalUrl][e.method].operationId=e.methodName})),process.stdout.clearLine(0),process.stdout.cursorTo(0),process.stdout.write("\n"),c.spec.paths=Object.fromEntries(Object.entries(c.spec.paths).map((e=>{const n=l.find((n=>n.originalUrl===e[0]));return n&&n.proxyUrl?[n.proxyUrl,e[1]]:i&&!n?[null,e[1]]:p?[p(e[0]),e[1]]:[e[0],e[1]]})).filter((e=>null!==e[0]))),c=c.stringify(),s&&(c=s(c)),"string"==typeof t&&m.default.writeFileSync(t,c),nt({input:t,output:r,useOptions:a,useUnionTypes:o,selectedOnly:i,appendTemplate:u})}catch(e){throw process.stdout.write("\n"),e}},exports.defineConfig=function(e){return e},exports.generate=nt;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codegen-openapi-ts",
|
|
3
|
-
"version": "0.8.0-alpha.
|
|
3
|
+
"version": "0.8.0-alpha.9",
|
|
4
4
|
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
|
|
5
5
|
"author": "devteaa",
|
|
6
6
|
"homepage": "https://github.com/devteaa/codegen-openapi-ts",
|