diff --git a/data/conf/nginx/includes/site-defaults.conf b/data/conf/nginx/includes/site-defaults.conf index 8e38d8dc..72b5e9f9 100644 --- a/data/conf/nginx/includes/site-defaults.conf +++ b/data/conf/nginx/includes/site-defaults.conf @@ -61,10 +61,6 @@ rewrite ^(.*)$ $1.php last; } - location /api { - try_files /_apidocs.html =404; - } - location ~ ^/api/v1/(.*)$ { try_files $uri $uri/ /json_api.php?query=$1; } diff --git a/data/web/_apidocs.html b/data/web/_apidocs.html deleted file mode 100644 index c115c9ad..00000000 --- a/data/web/_apidocs.html +++ /dev/null @@ -1,24115 +0,0 @@ - - - - API - - - - - - - - - - - - - - - - diff --git a/data/web/api/favicon-16x16.png b/data/web/api/favicon-16x16.png new file mode 100644 index 00000000..8b194e61 Binary files /dev/null and b/data/web/api/favicon-16x16.png differ diff --git a/data/web/api/favicon-32x32.png b/data/web/api/favicon-32x32.png new file mode 100644 index 00000000..249737fe Binary files /dev/null and b/data/web/api/favicon-32x32.png differ diff --git a/data/web/api/index.html b/data/web/api/index.html new file mode 100644 index 00000000..29c4e68a --- /dev/null +++ b/data/web/api/index.html @@ -0,0 +1,60 @@ + + + + + + Swagger UI + + + + + + + +
+ + + + + + diff --git a/data/web/api/oauth2-redirect.html b/data/web/api/oauth2-redirect.html new file mode 100644 index 00000000..a013fc82 --- /dev/null +++ b/data/web/api/oauth2-redirect.html @@ -0,0 +1,68 @@ + + +Swagger UI: OAuth2 Redirect + + + + diff --git a/data/web/api/openapi.yaml b/data/web/api/openapi.yaml new file mode 100644 index 00000000..4c4cf888 --- /dev/null +++ b/data/web/api/openapi.yaml @@ -0,0 +1,4891 @@ +openapi: 3.0.0 +info: + description: >- + mailcow is complete e-mailing solution with advanced antispam, antivirus, + nice UI and API. + + + In order to use this API you have to create a API key and add your IP + address to the whitelist of allowed IPs this can be done by logging into the + Mailcow UI using your admin account, then go to Configuration > Access > + Edit administrator details > API. There you will find a collapsed API menu. + + + There are two types of API keys + - The read only key can only be used for all get endpoints + - The read write key can be used for all endpoints + + title: mailcow API + version: '1.0.0' + +servers: + - url: / + +components: + securitySchemes: + ApiKeyAuth: + type: apiKey + in: header + name: X-API-Key + responses: + Unauthorized: + description: Unauthorized + content: + application/json: + schema: + type: object + properties: + type: + type: string + example: error + msg: + type: string + example: authentication failed + required: + - type + - msg + +security: + - ApiKeyAuth: [] + +paths: + /api/v1/add/alias: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - add + - alias + - active: '1' + address: alias@domain.tld + goto: destination@domain.tld + - null + msg: + - alias_added + - alias@domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Aliases + description: >- + You may create your own mailbox alias using this action. It takes a JSON + object containing a domain informations. + + Only one `goto*` option can be used, for ex. if you want learn as spam, + then send just `goto_spam = 1` in request body. + operationId: Create alias + requestBody: + content: + application/json: + schema: + example: + active: '1' + address: alias@domain.tld + goto: destination@domain.tld + properties: + active: + description: is alias active or not + type: boolean + address: + description: 'alias address, for catchall use "@domain.tld"' + type: string + goto: + description: 'destination address, comma separated' + type: string + goto_ham: + description: learn as ham + type: boolean + goto_null: + description: silently ignore + type: boolean + goto_spam: + description: learn as spam + type: boolean + type: object + summary: Create alias + /api/v1/add/app-passwd: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - app_passwd + - add + - active: '1' + app_name: emclient + app_passwd: keyleudecticidechothistishownsan31 + app_passwd2: keyleudecticidechothistishownsan31 + username: hello@mailcow.email + msg: app_passwd_added + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - App Passwords + description: >- + Using this endpoint you can create a new app password for a specific + mailbox. + operationId: Create App Password + requestBody: + content: + application/json: + schema: + example: + active: '1' + username: info@domain.tld + app_name: wordpress + app_passwd: keyleudecticidechothistishownsan31 + app_passwd2: keyleudecticidechothistishownsan31 + properties: + active: + description: is alias active or not + type: boolean + username: + description: mailbox for which the app password should be created + type: string + app_name: + description: name of your app password + type: string + app_passwd: + description: your app password + type: string + app_passwd2: + description: your app password + type: string + type: object + summary: Create App Password + /api/v1/add/bcc: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - bcc + - add + - active: '1' + bcc_dest: bcc@awesomecow.tld + local_dest: mailcow.tld + type: sender + - null + msg: bcc_saved + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Address Rewriting + description: >- + Using this endpoint you can create a BCC map to forward all mails via a + bcc for a given domain. + operationId: Create BCC Map + requestBody: + content: + application/json: + schema: + example: + active: '1' + bcc_dest: bcc@awesomecow.tld + local_dest: mailcow.tld + type: sender + properties: + active: + description: 1 for a active user account 0 for a disabled user account + type: number + bcc_dest: + description: the email address where all mails should be send to + type: string + local_dest: + description: the domain which emails should be forwarded + type: string + type: + description: the type of bcc map can be `sender` or `recipient` + type: string + type: object + summary: Create BCC Map + /api/v1/add/dkim: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - dkim + - add + - dkim_selector: dkim + domains: hanspeterlol.de + key_size: '2048' + msg: + - dkim_added + - hanspeterlol.de + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - DKIM + description: Using this endpoint you can generate new DKIM keys. + operationId: Generate DKIM Key + requestBody: + content: + application/json: + schema: + example: + dkim_selector: dkim + domains: mailcow.tld + key_size: '2048' + properties: + dkim_selector: + description: the DKIM selector default dkim + type: string + domain: + description: the domain which a key should be generated for + type: string + key_size: + description: the key size (1024 or 2048) + type: number + type: object + summary: Generate DKIM Key + /api/v1/add/dkim_duplicate: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - dkim + - duplicate + - from_domain: mailcow.tld + to_domain: awesomecow.tld + msg: + - dkim_duplicated + - mailcow.tld + - awesomecow.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - DKIM + description: Using this endpoint you can duplicate the DKIM Key of one domain. + operationId: Duplicate DKIM Key + requestBody: + content: + application/json: + schema: + example: + from_domain: mailcow.tld + to_domain: awesomecow.tld + properties: + fron_domain: + description: the domain where the dkim key should be copied from + type: string + to_domain: + description: the domain where the dkim key should be copied to + type: string + type: object + summary: Duplicate DKIM Key + /api/v1/add/domain: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - ratelimit + - edit + - domain + - object: domain.tld + rl_frame: s + rl_value: '10' + msg: + - rl_saved + - domain.tld + type: success + - log: + - mailbox + - add + - domain + - active: '1' + aliases: '400' + backupmx: '0' + defquota: '3072' + description: some decsription + domain: domain.tld + lang: cs + mailboxes: '10' + maxquota: '10240' + quota: '10240' + relay_all_recipients: '0' + rl_frame: s + rl_value: '10' + - null + msg: + - domain_added + - domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Domains + description: >- + You may create your own domain using this action. It takes a JSON object + containing a domain informations. + operationId: Create domain + requestBody: + content: + application/json: + schema: + example: + active: '1' + aliases: '400' + backupmx: '0' + defquota: '3072' + description: some decsription + domain: domain.tld + lang: cs + mailboxes: '10' + maxquota: '10240' + quota: '10240' + relay_all_recipients: '0' + rl_frame: s + rl_value: '10' + properties: + active: + description: is domain active or not + type: boolean + aliases: + description: limit count of aliases associated with this domain + type: number + backupmx: + description: relay domain or not + type: boolean + defquota: + description: predefined mailbox quota in `add mailbox` form + type: number + description: + description: Description of domain + type: string + domain: + description: Fully qualified domain name + type: string + lang: + description: language code + enum: + - sk + - cs + - de + - en + - es + - fr + - lv + - nl + - pl + - pt + - ru + - it + - ca + type: string + mailboxes: + description: limit count of mailboxes associated with this domain + type: number + maxquota: + description: maximum quota per mailbox + type: number + quota: + description: maximum quota for this domain (for all mailboxes in sum) + type: number + relay_all_recipients: + description: >- + if not, them you have to create "dummy" mailbox for each + address to relay + type: boolean + rl_frame: + enum: + - s + - m + - h + type: string + rl_value: + description: rate limit value + type: number + type: object + summary: Create domain + /api/v1/add/domain-admin: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - domain_admin + - add + - active: '1' + domains: mailcow.tld + password: '*' + password2: '*' + username: testadmin + msg: + - domain_admin_added + - testadmin + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Domain admin + description: >- + Using this endpoint you can create a new Domain Admin user. This user + has full control over a domain, and can create new mailboxes and + aliases. + operationId: Create Domain Admin user + requestBody: + content: + application/json: + schema: + example: + active: '1' + domains: mailcow.tld + password: supersecurepw + password2: supersecurepw + username: testadmin + properties: + active: + description: 1 for a active user account 0 for a disabled user account + type: number + domains: + description: the domains the user should be a admin of + type: string + password: + description: domain admin user password + type: string + password2: + description: domain admin user password + type: string + username: + description: the username for the admin user + type: string + type: object + summary: Create Domain Admin user + /api/v1/add/domain-policy: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - policy + - add + - domain + - domain: domain.tld + object_from: '*@baddomain.tld' + object_list: bl + msg: + - domain_modified + - domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Domain antispam policies + description: >- + You may create your own domain policy using this action. It takes a JSON + object containing a domain informations. + operationId: Create domain policy + requestBody: + content: + application/json: + schema: + example: + domain: domain.tld + object_from: '*@baddomain.tld' + object_list: bl + properties: + domain: + description: domain name to which policy is associated to + type: string + object_from: + description: exact address or use wildcard to match whole domain + type: string + object_list: + enum: + - wl + - bl + type: string + type: object + summary: Create domain policy + /api/v1/add/fwdhost: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - fwdhost + - add + - filter_spam: '0' + hostname: hosted.mailcow.de + msg: + - forwarding_host_added + - '5.1.76.202, 2a00:f820:417::202' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Fordwarding Hosts + description: >- + Add a new Forwarding host to mailcow. You can chose to enable or disable + spam filtering of incoming emails by specifing `filter_spam` 0 = + inactive, 1 = active. + operationId: Add Forward Host + requestBody: + content: + application/json: + schema: + example: + filter_spam: '0' + hostname: hosted.mailcow.de + properties: + filter_spam: + description: '1 to enable spam filter, 0 to disable spam filter' + type: number + hostname: + description: contains the hostname you want to add + type: string + type: object + summary: Add Forward Host + /api/v1/add/mailbox: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - add + - mailbox + - active: '1' + domain: domain.tld + local_part: info + name: Full name + password: '*' + password2: '*' + quota: '3072' + - null + msg: + - mailbox_added + - info@domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Mailboxes + description: >- + You may create your own mailbox using this action. It takes a JSON + object containing a domain informations. + operationId: Create mailbox + requestBody: + content: + application/json: + schema: + example: + active: '1' + domain: domain.tld + local_part: info + name: Full name + password: atedismonsin + password2: atedismonsin + quota: '3072' + properties: + active: + description: is mailbox active or not + type: boolean + domain: + description: domain name + type: string + local_part: + description: left part of email address + type: string + name: + description: Full name of the mailbox user + type: string + password2: + description: mailbox password for confirmation + type: string + pasword: + description: mailbox password + type: string + quota: + description: mailbox quota + type: number + type: object + summary: Create mailbox + /api/v1/add/oauth2-client: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - oauth2 + - add + - client + - redirect_uri: 'https://mailcow.tld' + msg: Added client access + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - oAuth Clients + description: Using this endpoint you can create a oAuth clients. + operationId: Create oAuth Client + requestBody: + content: + application/json: + schema: + example: + redirect_uri: 'https://mailcow.tld' + properties: + redirect_uri: + description: the uri where you should be redirected after oAuth + type: string + type: object + summary: Create oAuth Client + /api/v1/add/recipient_map: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - recipient_map + - add + - active: '1' + recipient_map_new: target@mailcow.tld + recipient_map_old: recipient@mailcow.tld + - null + msg: + - recipient_map_entry_saved + - recipient@mailcow.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Address Rewriting + description: >- + Using this endpoint you can create a recipient map to forward all mails + from one email address to another. + operationId: Create Recipient Map + requestBody: + content: + application/json: + schema: + example: + active: '1' + recipient_map_new: target@mailcow.tld + recipient_map_old: recipient@mailcow.tld + properties: + active: + description: 1 for a active user account 0 for a disabled user account + type: number + recipient_map_new: + description: the email address that should receive the forwarded emails + type: string + recipient_map_old: + description: the email address which emails should be forwarded + type: string + type: object + summary: Create Recipient Map + /api/v1/add/relayhost: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - relayhost + - add + - hostname: 'mailcow.tld:25' + password: supersecurepassword + username: testuser + msg: + - relayhost_added + - '' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Routing + description: Using this endpoint you can create Sender-Dependent Transports. + operationId: Create Sender-Dependent Transports + requestBody: + content: + application/json: + schema: + example: + hostname: 'mailcow.tld:25' + password: supersecurepassword + username: testuser + properties: + hostname: + description: the hostname of the smtp server with port + type: string + password: + description: the password for the smtp user + type: string + username: + description: the username used to authenticate + type: string + type: object + summary: Create Sender-Dependent Transports + /api/v1/add/resource: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - add + - resource + - active: '1' + description: test + domain: mailcow.tld + kind: location + multiple_bookings: '0' + multiple_bookings_custom: '' + multiple_bookings_select: '0' + - null + msg: + - resource_added + - mailcow.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Resources + description: Using this endpoint you can create Resources. + operationId: Create Resources + requestBody: + content: + application/json: + schema: + example: + active: '1' + description: test + domain: mailcow.tld + kind: location + multiple_bookings: '0' + multiple_bookings_custom: '' + multiple_bookings_select: '0' + properties: + active: + description: 1 for a active transport map 0 for a disabled transport map + type: number + description: + description: a description of the resource + type: string + domain: + description: the domain for which the resource should be + type: string + kind: + description: the kind of recouse + enum: + - location + - group + - thing + type: string + multiple_bookings: + enum: + - '-1' + - '1' + - custom + type: string + multiple_bookings_custom: + description: always empty + type: number + multiple_bookings_select: + enum: + - '-1' + - '1' + - custom + type: string + type: object + summary: Create Resources + /api/v1/add/syncjob: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - add + - syncjob + - active: '1' + automap: '1' + custom_params: '' + delete1: '0' + delete2: '0' + delete2duplicates: '1' + enc1: SSL + exclude: (?i)spam|(?i)junk + host1: imap.server.tld + maxage: '0' + maxbytespersecond: '0' + mins_interval: '20' + password1: supersecret + port1: 993 + skipcrossduplicates: '0' + subfolder2: External + subscribeall: '1' + timeout1: '600' + timeout2: '600' + user1: username + username: mailbox@domain.tld + - null + msg: + - mailbox_modified + - mailbox@domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Sync jobs + description: >- + You can create new sync job using this action. It takes a JSON object + containing a domain informations. + operationId: Create sync job + summary: Create sync job + /api/v1/add/tls-policy-map: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - tls_policy_maps + - add + - parameters: '' + active: '1' + dest: mailcow.tld + policy: encrypt + - null + msg: + - tls_policy_map_entry_saved + - mailcow.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Outgoing TLS Policy Map Overrides + description: Using this endpoint you can create a TLS policy map override. + operationId: Create TLS Policy Map + requestBody: + content: + application/json: + schema: + example: + parameters: '' + active: '1' + dest: mailcow.tld + policy: encrypt + properties: + parameters: + description: >- + custom parameters you find out more about them + [here](http://www.postfix.org/postconf.5.html#smtp_tls_policy_maps) + type: string + active: + description: 1 for a active user account 0 for a disabled user account + type: number + dest: + description: the target domain or email address + type: string + policy: + description: the policy + enum: + - none + - may + - encrypt + - dane + - '''dane' + - fingerprint + - verify + - secure + type: string + type: object + summary: Create TLS Policy Map + /api/v1/add/transport/all: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - transport + - add + - active: '1' + destination: example2.org + nexthop: 'host:25' + password: supersecurepw + username: testuser + msg: + - relayhost_added + - '' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Routing + description: Using this endpoint you can create Sender-Dependent Transports. + operationId: Create Transport Maps + requestBody: + content: + application/json: + schema: + example: + active: '1' + destination: example.org + nexthop: 'host:25' + password: supersecurepw + username: testuser + properties: + active: + description: 1 for a active transport map 0 for a disabled transport map + type: number + destination: + type: string + nexthop: + type: string + password: + description: the password for the smtp user + type: string + username: + description: the username used to authenticate + type: string + type: object + summary: Create Transport Maps + /api/v1/delete/alias: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - delete + - alias + - id: + - '6' + - '9' + - null + msg: + - alias_removed + - alias@domain.tld + type: success + - log: + - mailbox + - delete + - alias + - id: + - '6' + - '9' + - null + msg: + - alias_removed + - alias2@domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Aliases + description: You can delete one or more aliases. + operationId: Delete alias + requestBody: + content: + application/json: + schema: + items: + example: + - '6' + - '9' + type: string + type: array + summary: Delete alias + /api/v1/delete/app-passwd: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - app_passwd + - delete + - id: + - '2' + msg: + - app_passwd_removed + - '2' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - App Passwords + description: Using this endpoint you can delete a single app password. + operationId: Delete App Password + requestBody: + content: + application/json: + schema: + example: + - '1' + properties: + items: + description: contains list of app passwords you want to delete + type: object + type: object + summary: Delete App Password + /api/v1/delete/bcc: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - bcc + - delete + - id: + - '4' + - null + msg: + - bcc_deleted + - '4' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Address Rewriting + description: >- + Using this endpoint you can delete a BCC map, for this you have to know + its ID. You can get the ID using the GET method. + operationId: Delete BCC Map + requestBody: + content: + application/json: + schema: + example: + - '3' + properties: + items: + description: contains list of bcc maps you want to delete + type: object + type: object + summary: Delete BCC Map + /api/v1/delete/dkim: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - dkim + - delete + - domains: + - mailcow.tld + msg: + - dkim_removed + - mailcow.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - DKIM + description: Using this endpoint a existing DKIM Key can be deleted + operationId: Delete DKIM Key + requestBody: + content: + application/json: + schema: + items: + example: + - mailcow.tld + type: string + type: array + summary: Delete DKIM Key + /api/v1/delete/domain: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - delete + - domain + - domain: + - domain.tld + - domain2.tld + - null + msg: + - domain_removed + - domain.tld + type: success + - log: + - mailbox + - delete + - domain + - domain: + - domain.tld + - domain2.tld + - null + msg: + - domain_removed + - domain2.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Domains + description: You can delete one or more domains. + operationId: Delete domain + requestBody: + content: + application/json: + schema: + example: + - domain.tld + - domain2.tld + properties: + items: + description: contains list of domains you want to delete + type: object + type: object + summary: Delete domain + /api/v1/delete/domain-admin: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - domain_admin + - delete + - username: + - testadmin + msg: + - domain_admin_removed + - testadmin + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Domain admin + description: Using this endpoint a existing Domain Admin user can be deleted. + operationId: Delete Domain Admin + requestBody: + content: + application/json: + schema: + example: + - testadmin + properties: + items: + description: contains list of usernames of the users you want to delete + type: object + type: object + summary: Delete Domain Admin + /api/v1/delete/domain-policy: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - policy + - delete + - domain + - prefid: + - '1' + - '2' + msg: + - item_deleted + - '1' + type: success + - log: + - policy + - delete + - domain + - prefid: + - '1' + - '2' + msg: + - item_deleted + - '2' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Domain antispam policies + description: You can delete one o more domain policies. + operationId: Delete domain policy + requestBody: + content: + application/json: + schema: + example: + - '1' + - '2' + properties: + items: + description: contains list of domain policys you want to delete + type: object + type: object + summary: Delete domain policy + /api/v1/delete/fwdhost: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - fwdhost + - delete + - forwardinghost: + - 5.1.76.202 + - '2a00:f820:417::202' + msg: + - forwarding_host_removed + - 5.1.76.202 + type: success + - log: + - fwdhost + - delete + - forwardinghost: + - 5.1.76.202 + - '2a00:f820:417::202' + msg: + - forwarding_host_removed + - '2a00:f820:417::202' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Fordwarding Hosts + description: >- + Using this endpoint you can delete a forwarding host, in order to do so + you need to know the IP of the host. + operationId: Delete Forward Host + requestBody: + content: + application/json: + schema: + example: + - 5.1.76.202 + - '2a00:f820:417::202' + properties: + ip: + description: contains the ip of the fowarding host you want to delete + type: string + type: object + summary: Delete Forward Host + /api/v1/delete/mailbox: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - delete + - mailbox + - username: + - info@domain.tld + - sales@domain.tld + - null + msg: + - mailbox_removed + - info@domain.tld + type: success + - log: + - mailbox + - delete + - mailbox + - username: + - info@domain.tld + - sales@domain.tld + - null + msg: + - mailbox_removed + - sales@domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Mailboxes + description: You can delete one or more mailboxes. + operationId: Delete mailbox + requestBody: + content: + application/json: + schema: + example: + - info@domain.tld + - sales@domain.tld + properties: + items: + description: contains list of mailboxes you want to delete + type: object + type: object + summary: Delete mailbox + /api/v1/delete/mailq: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + msg: Task completed + type: success + description: OK + headers: {} + tags: + - Queue Manager + description: >- + Using this API you can delete the current mail queue. This will delete + all mails in it. + + This API uses the command: `postsuper -d` + operationId: Delete Queue + requestBody: + content: + application/json: + schema: + example: + action: super_delete + properties: + action: + description: use super_delete to delete the mail queue + type: string + type: object + summary: Delete Queue + /api/v1/delete/oauth2-client: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - oauth2 + - delete + - client + - id: + - '1' + msg: + - items_deleted + - '1' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - oAuth Clients + description: >- + Using this endpoint you can delete a oAuth client, for this you have to + know its ID. You can get the ID using the GET method. + operationId: Delete oAuth Client + requestBody: + content: + application/json: + schema: + example: + - '3' + properties: + items: + description: contains list of oAuth clients you want to delete + type: object + type: object + summary: Delete oAuth Client + /api/v1/delete/qitem: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - quarantine + - delete + - id: + - '33' + msg: + - item_deleted + - '33' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Quarantine + description: >- + Using this endpoint you can delete a email from quarantine, for this you + have to know its ID. You can get the ID using the GET method. + operationId: Delete mails in Quarantine + requestBody: + content: + application/json: + schema: + example: + - '33' + properties: + items: + description: contains list of emails you want to delete + type: object + type: object + summary: Delete mails in Quarantine + /api/v1/delete/recipient_map: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - recipient_map + - delete + - id: + - '1' + - null + msg: + - recipient_map_entry_deleted + - '1' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Address Rewriting + description: >- + Using this endpoint you can delete a recipient map, for this you have to + know its ID. You can get the ID using the GET method. + operationId: Delete Recipient Map + requestBody: + content: + application/json: + schema: + example: + - '1' + properties: + items: + description: contains list of recipient maps you want to delete + type: object + type: object + summary: Delete Recipient Map + /api/v1/delete/relayhost: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - relayhost + - delete + - id: + - '1' + msg: + - relayhost_removed + - '1' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Routing + description: >- + Using this endpoint you can delete a Sender-Dependent Transport, for + this you have to know its ID. You can get the ID using the GET method. + operationId: Delete Sender-Dependent Transports + requestBody: + content: + application/json: + schema: + example: + - '1' + properties: + items: + description: >- + contains list of Sender-Dependent Transport you want to + delete + type: object + type: object + summary: Delete Sender-Dependent Transports + /api/v1/delete/resource: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - delete + - resource + - name: + - test@mailcow.tld + - null + msg: + - resource_removed + - test@mailcow.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Resources + description: >- + Using this endpoint you can delete a Resources, for this you have to + know its ID. You can get the ID using the GET method. + operationId: Delete Resources + requestBody: + content: + application/json: + schema: + example: + - test@mailcow.tld + properties: + items: + description: contains list of Resources you want to delete + type: object + type: object + summary: Delete Resources + /api/v1/delete/syncjob: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + log: + - entity + - action + - object + msg: + - message + - entity name + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Sync jobs + description: You can delete one or more sync jobs. + operationId: Delete sync job + requestBody: + content: + application/json: + schema: + example: + - '6' + - '9' + properties: + items: + description: contains list of aliases you want to delete + type: object + type: object + summary: Delete sync job + /api/v1/delete/tls-policy-map: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - tls_policy_maps + - delete + - id: + - '1' + - null + msg: + - tls_policy_map_entry_deleted + - '1' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Outgoing TLS Policy Map Overrides + description: >- + Using this endpoint you can delete a TLS Policy Map, for this you have + to know its ID. You can get the ID using the GET method. + operationId: Delete TLS Policy Map + requestBody: + content: + application/json: + schema: + example: + - '3' + properties: + items: + description: contains list of tls policy maps you want to delete + type: object + type: object + summary: Delete TLS Policy Map + /api/v1/delete/transport: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - transport + - delete + - id: + - '1' + msg: + - relayhost_removed + - '1' + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Routing + description: >- + Using this endpoint you can delete a Transport Maps, for this you have + to know its ID. You can get the ID using the GET method. + operationId: Delete Transport Maps + requestBody: + content: + application/json: + schema: + example: + - '1' + properties: + items: + description: contains list of transport maps you want to delete + type: object + type: object + summary: Delete Transport Maps + /api/v1/edit/alias: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - edit + - alias + - active: '1' + address: alias@domain.tld + goto: destination@domain.tld + id: + - '6' + private_comment: private comment + public_comment: public comment + - null + msg: + - alias_modified + - alias@domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Aliases + description: >- + You can update one or more aliases per request. You can also send just + attributes you want to change + operationId: Update alias + requestBody: + content: + application/json: + schema: + example: + attr: + active: '1' + address: alias@domain.tld + goto: destination@domain.tld + private_comment: private comment + public_comment: public comment + items: '6' + properties: + attr: + properties: + active: + description: is alias active or not + type: boolean + address: + description: 'alias address, for catchall use "@domain.tld"' + type: string + goto: + description: 'destination address, comma separated' + type: string + goto_ham: + description: learn as ham + type: boolean + goto_null: + description: silently ignore + type: boolean + goto_spam: + description: learn as spam + type: boolean + private_comment: + type: string + public_comment: + type: string + type: object + items: + description: contains list of aliases you want update + type: object + type: object + summary: Update alias + /api/v1/edit/domain: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + '*/*': + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Domains + description: >- + You can update one or more domains per request. You can also send just + attributes you want to change. + + Example: You can add domain names to items list and in attr object just + include `"active": "0"` to deactivate domains. + operationId: Update domain + requestBody: + content: + application/json: + schema: + example: + attr: + active: '1' + aliases: '400' + backupmx: '1' + defquota: '3072' + description: domain description + gal: '1' + lang: cs + mailboxes: '10' + maxquota: '10240' + quota: '10240' + relay_all_recipients: '0' + relayhost: '2' + items: domain.tld + properties: + attr: + properties: + active: + description: is domain active or not + type: boolean + aliases: + description: limit count of aliases associated with this domain + type: number + backupmx: + description: relay domain or not + type: boolean + defquota: + description: predefined mailbox quota in `add mailbox` form + type: number + description: + description: Description of domain + type: string + gal: + description: >- + is domain global address list active or not, it enables + shared contacts accross domain in SOGo webmail + type: boolean + lang: + description: language code + enum: + - sk + - cs + - de + - en + - es + - fr + - lv + - nl + - pl + - pt + - ru + - it + - ca + type: string + mailboxes: + description: limit count of mailboxes associated with this domain + type: number + maxquota: + description: maximum quota per mailbox + type: number + quota: + description: maximum quota for this domain (for all mailboxes in sum) + type: number + relay_all_recipients: + description: >- + if not, them you have to create "dummy" mailbox for each + address to relay + type: boolean + relayhost: + description: id of relayhost + type: number + type: object + items: + description: contains list of domain names you want update + type: object + type: object + summary: Update domain + /api/v1/edit/fail2ban: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + '*/*': + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Fail2Ban + description: >- + Using this endpoint you can edit the Fail2Ban config and black or + whitelist new ips. + operationId: Edit Fail2Ban + requestBody: + content: + application/json: + schema: + example: + attr: + ban_time: '86400' + blacklist: '10.100.6.5/32,10.100.8.4/32' + max_attempts: '5' + netban_ipv4: '24' + netban_ipv6: '64' + retry_window: '600' + whitelist: mailcow.tld + items: none + properties: + attr: + description: array containing the fail2ban settings + properties: + backlist: + description: the backlisted ips or hostnames separated by comma + type: string + ban_time: + description: the time a ip should be banned + type: number + max_attempts: + description: the maximum numbe of wrong logins before a ip is banned + type: number + netban_ipv4: + description: the networks mask to ban for ipv4 + type: number + netban_ipv6: + description: the networks mask to ban for ipv6 + type: number + retry_window: + description: >- + the maximum time in which a ip as to login with false + credentials to be banned + type: number + whitelist: + description: whitelisted ips or hostnames sepereated by comma + type: string + type: object + items: + description: has to be none + type: object + summary: Edit Fail2Ban + /api/v1/edit/mailbox: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - mailbox + - edit + - mailbox + - active: '1' + force_pw_update: '0' + name: Full name + password: '*' + password2: '*' + quota: '3072' + sender_acl: + - default + - info@domain2.tld + - domain3.tld + - '*' + sogo_access: '1' + username: + - info@domain.tld + - null + msg: + - mailbox_modified + - info@domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Mailboxes + description: >- + You can update one or more mailboxes per request. You can also send just + attributes you want to change + operationId: Update mailbox + requestBody: + content: + application/json: + schema: + example: + attr: + active: '1' + force_pw_update: '0' + name: Full name + password: '' + password2: '' + quota: '3072' + sender_acl: + - default + - info@domain2.tld + - domain3.tld + - '*' + sogo_access: '1' + items: info@domain.tld + properties: + attr: + properties: + active: + description: is mailbox active or not + type: boolean + force_pw_update: + description: force user to change password on next login + type: boolean + name: + description: Full name of the mailbox user + type: string + password2: + description: new mailbox password for confirmation + type: string + pasword: + description: new mailbox password + type: string + quota: + description: mailbox quota + type: number + sender_acl: + description: list of allowed send from addresses + type: object + sogo_access: + description: is access to SOGo webmail active or not + type: boolean + type: object + items: + description: contains list of mailboxes you want update + type: object + type: object + summary: Update mailbox + /api/v1/edit/mailq: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + msg: Task completed + type: success + description: OK + headers: {} + tags: + - Queue Manager + description: >- + Using this API you can flush the current mail queue. This will try to + deliver all mails currently in it. + + This API uses the command: `postqueue -f` + operationId: Flush Queue + requestBody: + content: + application/json: + schema: + example: + action: flush + properties: + action: + description: use flush to flush the mail queue + type: string + type: object + summary: Flush Queue + /api/v1/edit/pushover: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - pushover + - edit + - active: '0' + evaluate_x_prio: '0' + key: 21e8918e1jksdjcpis712 + only_x_prio: '0' + senders: '' + senders_regex: '' + text: '' + title: Mail + token: 9023e2ohcwed27d1idu2 + username: + - info@domain.tld + msg: pushover_settings_edited + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Mailboxes + description: >- + Using this endpoint it is possible to update the pushover settings for + mailboxes + operationId: Update Pushover settings + requestBody: + content: + application/json: + schema: + example: + attr: + active: '0' + evaluate_x_prio: '0' + key: 21e8918e1jksdjcpis712 + only_x_prio: '0' + senders: '' + senders_regex: '' + text: '' + title: Mail + token: 9023e2ohcwed27d1idu2 + items: info@domain.tld + properties: + attr: + properties: + active: + description: Enables pushover 1 disable pushover 0 + type: number + evaluate_x_prio: + description: Send the Push with High priority + type: number + key: + description: Pushover key + type: string + only_x_prio: + description: Only send push for prio mails + type: number + senders: + description: Only send push for emails from these senders + type: string + senders_regex: + description: Regex to match senders for which a push will be send + type: string + text: + description: Custom push noficiation text + type: string + title: + description: Push title + type: string + token: + description: Pushover token + type: string + type: object + items: + description: contains list of mailboxes you want to delete + type: object + type: object + summary: Update Pushover settings + /api/v1/edit/quarantine_notification: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + description: OK + headers: {} + tags: + - Mailboxes + description: You can update one or more mailboxes per request. + operationId: Quarantine Notifications + requestBody: + content: + application/json: + schema: + example: + attr: + quarantine_notification: hourly + items: + anyOf: + - mailbox1@domain.tld + - mailbox2@domain.tld + properties: + attr: + properties: + quarantine_notification: + description: recurrence + enum: + - hourly + - daily + - weekly + - never + type: string + type: object + items: + description: >- + contains list of mailboxes you want set qurantine + notifications + type: object + type: object + summary: Quarantine Notifications + /api/v1/edit/syncjob: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + log: + - entity + - action + - object + msg: + - message + - entity name + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Sync jobs + description: >- + You can update one or more sync jobs per request. You can also send just + attributes you want to change. + operationId: Update sync job + requestBody: + content: + application/json: + schema: + example: + attr: + active: '1' + automap: '1' + custom_params: '' + delete1: '0' + delete2: '0' + delete2duplicates: '1' + enc1: SSL + exclude: (?i)spam|(?i)junk + host1: imap.server.tld + maxage: '0' + maxbytespersecond: '0' + mins_interval: '20' + password1: supersecret + port1: '993' + skipcrossduplicates: '0' + subfolder2: External + subscribeall: '1' + timeout1: '600' + timeout2: '600' + user1: username + items: '1' + properties: + attr: + properties: + active: + description: Is sync job active + type: boolean + automap: + description: >- + Try to automap folders ("Sent items", "Sent" => "Sent" + etc.) + type: boolean + custom_params: + description: Custom parameters passed to imapsync command + type: string + delete1: + description: Delete from source when completed + type: boolean + delete2: + description: Delete messages on destination that are not on source + type: boolean + delete2duplicates: + description: Delete duplicates on destination + type: boolean + enc1: + description: Encryption + enum: + - TLS + - SSL + - PLAIN + type: string + exclude: + description: Exclude objects (regex) + type: string + host1: + description: Hostname + type: string + maxage: + description: >- + Maximum age of messages in days that will be polled from + remote (0 = ignore age) + type: number + maxbytespersecond: + description: Max. bytes per second (0 = unlimited) + type: number + mins_interval: + description: Interval (min) + type: number + password1: + description: Password + type: string + port1: + description: Port + type: string + skipcrossduplicates: + description: >- + Skip duplicate messages across folders (first come, + first serve) + type: boolean + subfolder2: + description: >- + Sync into subfolder on destination (empty = do not use + subfolder) + type: string + subscribeall: + description: Subscribe all folders + type: boolean + timeout1: + description: Timeout for connection to remote host + type: number + timeout2: + description: Timeout for connection to local host + type: number + user1: + description: Username + type: string + type: object + items: + description: contains list of aliases you want update + type: object + type: object + summary: Update sync job + /api/v1/edit/user-acl: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - log: + - acl + - edit + - user + - user_acl: + - spam_alias + - tls_policy + - spam_score + - spam_policy + - delimiter_action + - syncjobs + - eas_reset + - quarantine + - sogo_profile_reset + - quarantine_attachments + - quarantine_notification + - app_passwds + - pushover + username: + - info@domain.tld + msg: + - acl_saved + - info@domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Mailboxes + description: Using this endpoints its possible to update the ACL's for mailboxes + operationId: Update mailbox ACL + requestBody: + content: + application/json: + schema: + example: + attr: + user_acl: + - spam_alias + - tls_policy + - spam_score + - spam_policy + - delimiter_action + - syncjobs + - eas_reset + - quarantine + - sogo_profile_reset + - quarantine_attachments + - quarantine_notification + - app_passwds + - pushover + items: info@domain.tld + properties: + attr: + properties: + user_acl: + description: contains a list of active user acls + type: object + type: object + items: + description: contains list of mailboxes you want to delete + type: object + type: object + summary: Update mailbox ACL + '/api/v1/get/alias/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - '1' + - '2' + - '5' + - '10' + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✔' + active_int: 1 + address: alias@domain.tld + created: '2019-04-04 19:29:49' + domain: domain.tld + goto: destination@domain.tld + id: 6 + in_primary_domain: '' + is_catch_all: 0 + modified: null + private_comment: null + public_comment: null + - active: '✔' + active_int: 1 + address: '@domain.tld' + created: '2019-04-27 13:42:39' + domain: domain.tld + goto: destination@domain.tld + id: 10 + in_primary_domain: '' + is_catch_all: 1 + modified: null + private_comment: null + public_comment: null + description: OK + headers: {} + tags: + - Aliases + description: You can list mailbox aliases existing in system. + operationId: Get aliases + summary: Get aliases + '/api/v1/get/app-passwd/all/{mailbox}': + get: + parameters: + - description: mailbox of entry you want to get + example: hello@mailcow.email + in: path + name: mailbox + required: true + schema: + enum: + - hello@mailcow.email + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✓' + active_int: 1 + created: '2019-12-21 16:04:55' + domain: mailcow.email + id: 2 + mailbox: hello@mailcow.email + modified: null + name: emclient + description: OK + headers: {} + tags: + - App Passwords + description: >- + Using this endpoint you can get all app passwords from a specific + mailbox. + operationId: Get App Password + summary: Get App Password + '/api/v1/get/bcc/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - '1' + - '2' + - '5' + - '10' + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✓' + active_int: 1 + bcc_dest: bcc@awesomecow.tld + created: '2019-10-02 21:44:34' + domain: mailcow.tld + id: 3 + local_dest: '@mailcow.tld' + modified: null + type: sender + description: OK + headers: {} + tags: + - Address Rewriting + description: Using this endpoint you can get all BCC maps. + operationId: Get BCC Map + summary: Get BCC Map + '/api/v1/get/dkim/{domain}': + get: + parameters: + - description: name of domain + in: path + name: domain + required: true + schema: + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + dkim_selector: dkim + dkim_txt: >- + v=DKIM1;k=rsa;t=s;s=email;p=MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA21tUSjyasQy/hJmVjPnlRGfzx6TPhYj8mXY9DVOzSAE64Gddw/GnE/GcCR6WXNT23u9q4zPnz1IPoNt5kFOps8vg/iNqrcH++494noaZuYyFPPFnebkfryO4EvEyxC/c66qts+gnOUml+M8uv5WObBJld2gG12jLwFM0263J/N6J8LuUsaXOB2uCIfx8Nf4zjuJ6Ieez2uyHNK5dXjDLfKA4mTr+EEK6W6e34M4KN1liWM6r9Oy5S1FlLrD42VpURxxBZtBiEtaJPEKSQuk6GQz8ihu7W20Yr53tyCdaORu8dhxXVUWVf+GjuuMEdAmQCjYkarXdYCrt56Psw703kwIDAQAB + length: '2048' + privkey: '' + pubkey: >- + MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA21tUSjyasQy/hJmVjPnlRGfzx6TPhYj8mXY9DVOzSAE64Gddw/GnE/GcCR6WXNT23u9q4zPnz1IPoNt5kFOps8vg/iNqrcH++494noaZuYyFPPFnebkfryO4EvEyxC/c66qts+gnOUml+M8uv5WObBJld2gG12jLwFM0263J/N6J8LuUsaXOB2uCIfx8Nf4zjuJ6Ieez2uyHNK5dXjDLfKA4mTr+EEK6W6e34M4KN1liWM6r9Oy5S1FlLrD42VpURxxBZtBiEtaJPEKSQuk6GQz8ihu7W20Yr53tyCdaORu8dhxXVUWVf+GjuuMEdAmQCjYkarXdYCrt56Psw703kwIDAQAB + description: OK + headers: {} + tags: + - DKIM + description: >- + Using this endpoint you can get the DKIM public key for a specific + domain. + operationId: Get DKIM Key + summary: Get DKIM Key + /api/v1/get/domain-admin/all: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✓' + active_int: 1 + created: '2019-10-02 10:29:41' + selected_domains: + - mailcow.tld + tfa_active: '✕' + tfa_active_int: null + unselected_domains: + - awesomemailcow.de + - mailcowisgreat.de + username: testadmin + description: OK + headers: {} + tags: + - Domain admin + description: '' + operationId: Get Domain Admins + summary: Get Domain Admins + '/api/v1/get/domain/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - mailcow.tld + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✔' + active_int: 1 + aliases_in_domain: 0 + aliases_left: 400 + backupmx: '✘' + backupmx_int: 0 + bytes_total: '5076666944' + def_new_mailbox_quota: 3221225472 + def_quota_for_mbox: 3221225472 + description: Some description + domain_name: domain.tld + gal: '✘' + gal_int: 0 + lang: en + max_new_mailbox_quota: 10737418240 + max_num_aliases_for_domain: 400 + max_num_mboxes_for_domain: 10 + max_quota_for_domain: 10737418240 + max_quota_for_mbox: 10737418240 + mboxes_in_domain: 0 + mboxes_left: 10 + msgs_total: '172440' + quota_used_in_domain: '0' + relay_all_recipients: '✘' + relay_all_recipients_int: 0 + relayhost: '0' + rl: false + - active: '✔' + active_int: 1 + aliases_in_domain: 0 + aliases_left: 400 + backupmx: '✔' + backupmx_int: 1 + bytes_total: '5076666944' + def_new_mailbox_quota: 3221225472 + def_quota_for_mbox: 3221225472 + description: domain description + domain_name: domain2.tld + gal: '✘' + gal_int: 0 + lang: cs + max_new_mailbox_quota: 10737418240 + max_num_aliases_for_domain: 400 + max_num_mboxes_for_domain: 10 + max_quota_for_domain: 10737418240 + max_quota_for_mbox: 10737418240 + mboxes_in_domain: 0 + mboxes_left: 10 + msgs_total: '172440' + quota_used_in_domain: '0' + relay_all_recipients: '✘' + relay_all_recipients_int: 0 + relayhost: '0' + rl: false + description: OK + headers: {} + tags: + - Domains + description: You can list all domains existing in system. + operationId: Get domains + summary: Get domains + /api/v1/get/fail2ban: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + ban_time: 604800 + blacklist: |- + 45.82.153.37/32 + 92.118.38.52/32 + max_attempts: 1 + netban_ipv4: 32 + netban_ipv6: 128 + perm_bans: + - 45.82.153.37/32 + - 92.118.38.52/32 + retry_window: 7200 + whitelist: 1.1.1.1 + description: OK + headers: {} + tags: + - Fail2Ban + description: Gets the current Fail2Ban configuration. + operationId: Get Fail2Ban Config + summary: Get Fail2Ban Config + /api/v1/get/fwdhost/all: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - host: 5.1.76.202 + keep_spam: 'yes' + source: hosted.mailcow.de + - host: '2a00:f820:417::202' + keep_spam: 'yes' + source: hosted.mailcow.de + description: OK + headers: {} + tags: + - Fordwarding Hosts + description: You can list all Forwarding Hosts in your mailcow. + operationId: Get Forwarding Hosts + summary: Get Forwarding Hosts + '/api/v1/get/logs/acme/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - message: >- + Certificate validation done, neither changed nor due for + renewal, sleeping for another day. + time: '1569927728' + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all ACME logs from issued Lets Enctypts + certificates. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get ACME logs + summary: Get ACME logs + '/api/v1/get/logs/api/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - data: '' + method: GET + remote: 1.1.1.1 + time: 1569939001 + uri: /api/v1/get/logs/api/2 + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all Api logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get Api logs + summary: Get Api logs + '/api/v1/get/logs/autodiscover/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - service: activesync + time: 1569684212 + ua: >- + Microsoft Office/16.0 (Windows NT 6.2; MAPICPL + 16.0.11328; Pro) + user: awesome@mailcow.de + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all Autodiscover logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get Autodiscover logs + summary: Get Autodiscover logs + '/api/v1/get/logs/dovecot/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - message: >- + managesieve-login: Disconnected (no auth attempts in 0 + secs): user=<>, rip=172.22.1.3, lip=172.22.1.250 + priority: info + program: dovecot + time: '1569938740' + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all Dovecot logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get Dovecot logs + summary: Get Dovecot logs + '/api/v1/get/logs/netfilter/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - message: 'Whitelist was changed, it has 1 entries' + priority: info + time: 1569754911 + - message: Add host/network 1.1.1.1/32 to blacklist + priority: crit + time: 1569754911 + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all Netfilter logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get Netfilter logs + summary: Get Netfilter logs + '/api/v1/get/logs/postfix/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - message: 'EF1711500458: removed' + priority: info + program: postfix/qmgr + time: '1569937433' + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all Postfix logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get Postfix logs + summary: Get Postfix logs + '/api/v1/get/logs/ratelimited/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - from: awesome@mailcow.email + header_from: '"Awesome" ' + header_subject: Mailcow is amazing + ip: 172.22.1.248 + message_id: 6a-5d892500-7-240abd80@90879116 + qid: E3CF91500458 + rcpt: hello@mailcow.email + rl_hash: RLsdz3tuabozgd4oacbdh8kc78 + rl_info: mailcow(RLsdz3tuabozgd4oacbdh8kc78) + rl_name: mailcow + time: 1569269003 + user: awesome@mailcow.email + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all Ratelimit logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get Ratelimit logs + summary: Get Ratelimit logs + '/api/v1/get/logs/rspamd-history/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all Rspamd logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get Rspamd logs + summary: Get Rspamd logs + '/api/v1/get/logs/sogo/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - message: >- + [109]: + mailcowdockerized_watchdog-mailcow_1.mailcowdockerized_mailcow-network + "GET /SOGo.index/ HTTP/1.1" 200 2531/0 0.005 - - 0 + priority: notice + program: sogod + time: '1569938874' + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all SOGo logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get SOGo logs + summary: Get SOGo logs + '/api/v1/get/logs/watchdog/{count}': + get: + parameters: + - description: Number of logs to return + in: path + name: count + required: true + schema: + type: number + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - hpdiff: '0' + hpnow: '1' + hptotal: '1' + lvl: '100' + service: Fail2ban + time: '1569938958' + - hpdiff: '0' + hpnow: '5' + hptotal: '5' + lvl: '100' + service: Rspamd + time: '1569938956' + description: OK + headers: {} + tags: + - Logs + description: >- + This Api endpoint lists all Watchdog logs. + + Tip: You can limit how many logs you want to get by using `/` at + the end of the api url. + operationId: Get Watchdog logs + summary: Get Watchdog logs + '/api/v1/get/mailbox/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - user@domain.tld + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✔' + active_int: 1 + attributes: + force_pw_update: '0' + mailbox_format: 'maildir:' + quarantine_notification: never + sogo_access: '1' + tls_enforce_in: '0' + tls_enforce_out: '0' + domain: doman3.tld + is_relayed: 0 + local_part: info + max_new_quota: 10737418240 + messages: 0 + name: Full name + percent_class: success + percent_in_use: 0 + quota: 3221225472 + quota_used: 0 + rl: false + spam_aliases: 0 + username: info@doman3.tld + description: OK + headers: {} + tags: + - Mailboxes + description: You can list all mailboxes existing in system. + operationId: Get mailboxes + summary: Get mailboxes + /api/v1/get/mailq/all: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - arrival_time: 1570091234 + message_size: 1848 + queue_id: B98C6260CA1 + queue_name: incoming + recipients: + - recipient@awesomecow.tld + sender: sender@mailcow.tld + description: OK + headers: {} + tags: + - Queue Manager + description: Get the current mail queue and everything it contains. + operationId: Get Queue + summary: Get Queue + '/api/v1/get/oauth2-client/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - '1' + - '2' + - '5' + - '10' + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - client_id: 17c76aaa88c0 + client_secret: 73fc668a88147e32a31ff80c + grant_types: null + id: 1 + redirect_uri: 'https://mailcow.tld' + scope: profile + user_id: null + description: OK + headers: {} + tags: + - oAuth Clients + description: Using this endpoint you can get all oAuth clients. + operationId: Get oAuth Clients + summary: Get oAuth Clients + '/api/v1/get/policy_bl_domain/{domain}': + get: + parameters: + - description: name of domain + in: path + name: domain + required: true + schema: + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - object: domain.tld + prefid: 2 + value: '*@baddomain.tld' + description: OK + headers: {} + tags: + - Domain antispam policies + description: You can list all blacklist policies per domain. + operationId: List blacklist domain policy + summary: List blacklist domain policy + '/api/v1/get/policy_wl_domain/{domain}': + get: + parameters: + - description: name of domain + in: path + name: domain + required: true + schema: + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - object: domain.tld + prefid: 1 + value: '*@gooddomain.tld' + description: OK + headers: {} + tags: + - Domain antispam policies + description: You can list all whitelist policies per domain. + operationId: List whitelist domain policy + summary: List whitelist domain policy + /api/v1/get/quarantine/all: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + created: 1572688831 + id: 33 + notified: 1 + qid: 8224615004C1 + rcpt: admin@domain.tld + score: 15.48 + sender: bounces@send.domain.tld + subject: mailcow is awesome + virus_flag: 0 + description: OK + headers: {} + tags: + - Quarantine + description: Get all mails that are currently in Quarantine. + operationId: Get mails in Quarantine + summary: Get mails in Quarantine + '/api/v1/get/recipient_map/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - '1' + - '2' + - '5' + - '10' + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✓' + active_int: 1 + created: '2019-10-02 22:06:29' + id: 3 + modified: null + recipient_map_new: target@mailcow.tld + recipient_map_old: recipient@mailcow.tld + description: OK + headers: {} + tags: + - Address Rewriting + description: Using this endpoint you can get all recipient maps. + operationId: Get Recipient Map + summary: Get Recipient Map + '/api/v1/get/relayhost/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - '1' + - '2' + - '5' + - '10' + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✓' + active_int: 1 + hostname: 'mailcow.tld:25' + id: 1 + password: supersecurepassword + password_short: tes... + used_by_domains: '' + username: testuser + description: OK + headers: {} + tags: + - Routing + description: Using this endpoint you can get all Sender-Dependent Transports. + operationId: Get Sender-Dependent Transports + summary: Get Sender-Dependent Transports + /api/v1/get/resource/all: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✓' + active_int: 1 + description: test + domain: mailcow.tld + kind: location + local_part: test + multiple_bookings: 0 + name: test@mailcow.tld + description: OK + headers: {} + tags: + - Resources + description: Using this endpoint you can get all Resources. + operationId: Get Resources + summary: Get Resources + '/api/v1/get/rl-mbox/{mailbox}': + get: + parameters: + - description: name of mailbox or all + in: path + name: mailbox + required: true + schema: + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - frame: s + mailbox: leon@mailcow.tld + value: '5' + - frame: s + mailbox: lisa@mailcow.tld + value: '3' + description: OK + headers: {} + tags: + - Ratelimits + description: >- + Using this endpoint you can get the ratelimits for a certain mailbox. + You can use all for all mailboxes. + operationId: Get mailbox ratelimits + summary: Get mailbox ratelimits + '/api/v1/get/rl-domain/{domain}': + get: + parameters: + - description: name of domain or all + in: path + name: domain + required: true + schema: + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - frame: s + domain: domain.tld + value: '5' + - frame: s + mailbox: domain2.tld + value: '3' + description: OK + headers: {} + tags: + - Ratelimits + description: >- + Using this endpoint you can get the ratelimits for a certain domains. + You can use all for all domain. + operationId: Get domain ratelimits + summary: Get domain ratelimits + /api/v1/edit/rl-mbox/: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - frame: s + mailbox: leon@mailcow.tld + value: '5' + - frame: s + mailbox: lisa@mailcow.tld + value: '3' + description: OK + headers: {} + tags: + - Ratelimits + description: >- + Using this endpoint you can edit the ratelimits for a certain mailbox. + operationId: Edit mailbox ratelimits + requestBody: + content: + application/json: + schema: + example: + attr: + - rl_vlaue: "10" + rl_frame: "h" + items: info@domain.tld + properties: + attr: + properties: + rl_frame: + description: contains the frame for the ratelimit h,s,m + type: string + rl_vlaue: + description: contains the rate for the ratelimit 10,20,50,1 + type: number + type: object + items: + description: contains list of mailboxes you want to edit the ratelimit of + type: object + type: object + summary: Edit mailbox ratelimits + /api/v1/edit/rl-domain/: + post: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - type: success + - log: + - ratelimit + - edit + - domain + - object: + - domain.tld + - rl_value: "50" + rl_frame: "h" + msg: + - rl_saved + - domain.tld + type: success + schema: + properties: + log: + description: contains request object + items: {} + type: array + msg: + items: {} + type: array + type: + enum: + - success + - danger + - error + type: string + type: object + description: OK + headers: {} + tags: + - Ratelimits + description: >- + Using this endpoint you can edit the ratelimits for a certain domains. + operationId: Edit domain ratelimits + requestBody: + content: + application/json: + schema: + example: + attr: + - rl_vlaue: "10" + rl_frame: "h" + items: domain.tld + properties: + attr: + properties: + rl_frame: + description: contains the frame for the ratelimit h,s,m + type: string + rl_vlaue: + description: contains the rate for the ratelimit 10,20,50,1 + type: number + type: object + items: + description: contains list of domains you want to edit the ratelimit of + type: object + type: object + summary: Edit domain ratelimits + /api/v1/get/status/containers: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + acme-mailcow: + container: acme-mailcow + image: 'mailcow/acme:1.63' + started_at: '2019-12-22T21:00:08.270660275Z' + state: running + type: info + clamd-mailcow: + container: clamd-mailcow + image: 'mailcow/clamd:1.35' + started_at: '2019-12-22T21:00:01.622856172Z' + state: running + type: info + dockerapi-mailcow: + container: dockerapi-mailcow + image: 'mailcow/dockerapi:1.36' + started_at: '2019-12-22T20:59:59.984797808Z' + state: running + type: info + dovecot-mailcow: + container: dovecot-mailcow + image: 'mailcow/dovecot:1.104' + started_at: '2019-12-22T21:00:08.988680259Z' + state: running + type: info + ipv6nat-mailcow: + container: ipv6nat-mailcow + image: robbertkl/ipv6nat + started_at: '2019-12-22T21:06:37.273225445Z' + state: running + type: info + memcached-mailcow: + container: memcached-mailcow + image: 'memcached:alpine' + started_at: '2019-12-22T20:59:58.0907785Z' + state: running + type: info + mysql-mailcow: + container: mysql-mailcow + image: 'mariadb:10.3' + started_at: '2019-12-22T21:00:02.201937528Z' + state: running + type: info + netfilter-mailcow: + container: netfilter-mailcow + image: 'mailcow/netfilter:1.31' + started_at: '2019-12-22T21:00:09.851559297Z' + state: running + type: info + nginx-mailcow: + container: nginx-mailcow + image: 'nginx:mainline-alpine' + started_at: '2019-12-22T21:00:12.9843038Z' + state: running + type: info + olefy-mailcow: + container: olefy-mailcow + image: 'mailcow/olefy:1.2' + started_at: '2019-12-22T20:59:59.676259274Z' + state: running + type: info + php-fpm-mailcow: + container: php-fpm-mailcow + image: 'mailcow/phpfpm:1.55' + started_at: '2019-12-22T21:00:00.955808957Z' + state: running + type: info + postfix-mailcow: + container: postfix-mailcow + image: 'mailcow/postfix:1.44' + started_at: '2019-12-22T21:00:07.186717617Z' + state: running + type: info + redis-mailcow: + container: redis-mailcow + image: 'redis:5-alpine' + started_at: '2019-12-22T20:59:56.827166834Z' + state: running + type: info + rspamd-mailcow: + container: rspamd-mailcow + image: 'mailcow/rspamd:1.56' + started_at: '2019-12-22T21:00:12.456075355Z' + state: running + type: info + sogo-mailcow: + container: sogo-mailcow + image: 'mailcow/sogo:1.65' + started_at: '2019-12-22T20:59:58.382274592Z' + state: running + type: info + solr-mailcow: + container: solr-mailcow + image: 'mailcow/solr:1.7' + started_at: '2019-12-22T20:59:59.635413798Z' + state: running + type: info + unbound-mailcow: + container: unbound-mailcow + image: 'mailcow/unbound:1.10' + started_at: '2019-12-22T20:59:58.760595825Z' + state: running + type: info + watchdog-mailcow: + container: watchdog-mailcow + image: 'mailcow/watchdog:1.65' + started_at: '2019-12-22T20:59:56.028660382Z' + state: running + type: info + description: OK + headers: {} + tags: + - Status + description: >- + Using this endpoint you can get the status of all containers and when + hey where started and a few other details. + operationId: Get container status + summary: Get container status + /api/v1/get/status/solr: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + solr_documents: null + solr_enabled: false + solr_size: null + type: info + description: OK + headers: {} + tags: + - Status + description: >- + Using this endpoint you can get the status of all containers and when + hey where started and a few other details. + operationId: Get solr status + summary: Get solr status + /api/v1/get/status/vmail: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + disk: /dev/mapper/mail--vg-root + total: 41G + type: info + used: 11G + used_percent: 28% + description: OK + headers: {} + tags: + - Status + description: >- + Using this endpoint you can get the status of the vmail and the amount + of used storage. + operationId: Get vmail status + summary: Get vmail status + /api/v1/get/syncjobs/all/no_log: + get: + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✓' + active_int: 1 + authmd51: 0 + authmech1: PLAIN + automap: 1 + created: '2019-05-22 11:37:25' + custom_params: '' + delete1: 0 + delete2: 0 + delete2duplicates: 1 + domain2: '' + enc1: TLS + exclude: (?i)spam|(?i)junk + host1: imap.server.tld + id: 1 + is_running: 0 + last_run: '2019-05-22 11:40:02' + log: '' + maxage: 0 + maxbytespersecond: '0' + mins_interval: '20' + modified: '2019-05-22 11:40:02' + port1: 993 + regextrans2: '' + skipcrossduplicates: 0 + subfolder2: External + subscribeall: 1 + timeout1: 600 + timeout2: 600 + user1: username + user2: mailbox@domain.tld + description: OK + headers: {} + tags: + - Sync jobs + description: You can list all syn jobs existing in system. + operationId: Get sync jobs + summary: Get sync jobs + '/api/v1/get/tls-policy-map/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - '1' + - '2' + - '5' + - '10' + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - parameters: '' + active: '✓' + active_int: 1 + created: '2019-10-03 08:42:12' + dest: mailcow.tld + id: 1 + modified: null + policy: encrypt + description: OK + headers: {} + tags: + - Outgoing TLS Policy Map Overrides + description: Using this endpoint you can get all TLS policy map override maps. + operationId: Get TLS Policy Map + summary: Get TLS Policy Map + '/api/v1/get/transport/{id}': + get: + parameters: + - description: id of entry you want to get + example: all + in: path + name: id + required: true + schema: + enum: + - all + - '1' + - '2' + - '5' + - '10' + type: string + - description: e.g. api-key-string + example: api-key-string + in: header + name: X-API-Key + required: false + schema: + type: string + responses: + '401': + $ref: '#/components/responses/Unauthorized' + '200': + content: + application/json: + examples: + response: + value: + - active: '✓' + active_int: 1 + destination: example.org + id: 1 + lookup_mx: '✕' + lookup_mx_int: 0 + nexthop: 'host:25' + password: supersecurepw + password_short: sup... + username: testuser + description: OK + headers: {} + tags: + - Routing + description: Using this endpoint you can get all Transport Maps. + operationId: Get Transport Maps + summary: Get Transport Maps + +tags: + - name: Domains + description: You can create antispam whitelist and blacklist policies + - name: Domain antispam policies + description: You can edit the Domain Antispam policies + - name: Mailboxes + description: You can manage mailboxes + - name: Aliases + description: You can manage aliases + - name: Sync jobs + description: Using Syncjobs you can sync your mails with other email servers + - name: Fordwarding Hosts + description: Forwarding Hosts enable you to send mail using a relay + - name: Logs + description: Get all mailcow sysmte logs + - name: Queue Manager + description: Manage the postfix mailque + - name: Quarantine + description: Check what emails went to quarantine + - name: Fail2Ban + description: Manage the Netfilter fail2ban options + - name: DKIM + description: Manage DKIM keys + - name: Domain admin + description: Create or udpdate domain admin users + - name: Address Rewriting + description: Create BBC maps or recipient maps + - name: Outgoing TLS Policy Map Overrides + description: Force global TLS policys + - name: oAuth Clients + description: Use mailcow as a oAuth server + - name: Routing + description: Define your own email routes + - name: Resources + description: Manage ressources + - name: App Passwords + description: Create mailbox app passwords + - name: Status + description: Get the status of your cow + - name: Ratelimits + description: Edit domain ratelimits diff --git a/data/web/api/swagger-ui-bundle.js b/data/web/api/swagger-ui-bundle.js new file mode 100644 index 00000000..ec55a115 --- /dev/null +++ b/data/web/api/swagger-ui-bundle.js @@ -0,0 +1,126 @@ +!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(function(){try{return require("esprima")}catch(e){}}()):"function"==typeof define&&define.amd?define(["esprima"],t):"object"==typeof exports?exports.SwaggerUIBundle=t(function(){try{return require("esprima")}catch(e){}}()):e.SwaggerUIBundle=t(e.esprima)}(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist",n(n.s=487)}([function(e,t,n){"use strict";e.exports=n(105)},function(e,t,n){e.exports=n(799)},function(e,t,n){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function n(e){return a(e)?e:q(e)}function r(e){return u(e)?e:V(e)}function o(e){return s(e)?e:W(e)}function i(e){return a(e)&&!c(e)?e:H(e)}function a(e){return!(!e||!e[f])}function u(e){return!(!e||!e[p])}function s(e){return!(!e||!e[h])}function c(e){return u(e)||s(e)}function l(e){return!(!e||!e[d])}t(r,n),t(o,n),t(i,n),n.isIterable=a,n.isKeyed=u,n.isIndexed=s,n.isAssociative=c,n.isOrdered=l,n.Keyed=r,n.Indexed=o,n.Set=i;var f="@@__IMMUTABLE_ITERABLE__@@",p="@@__IMMUTABLE_KEYED__@@",h="@@__IMMUTABLE_INDEXED__@@",d="@@__IMMUTABLE_ORDERED__@@",v={},m={value:!1},y={value:!1};function g(e){return e.value=!1,e}function b(e){e&&(e.value=!0)}function _(){}function w(e,t){t=t||0;for(var n=Math.max(0,e.length-t),r=new Array(n),o=0;o>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?x(e)+t:t}function S(){return!0}function C(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&t>=n)}function A(e,t){return O(e,t,0)}function k(e,t){return O(e,t,t)}function O(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var T,j,P,I="function"==typeof Symbol&&Symbol.iterator,M=I||"@@iterator";function D(e){this.next=e}function R(e,t,n,r){var o=0===e?t:1===e?n:[t,n];return r?r.value=o:r={value:o,done:!1},r}function N(){return{value:void 0,done:!0}}function L(e){return!!U(e)}function F(e){return e&&"function"==typeof e.next}function B(e){var t=U(e);return t&&t.call(e)}function U(e){var t=e&&(I&&e[I]||e["@@iterator"]);if("function"==typeof t)return t}function z(e){return e&&"number"==typeof e.length}function q(e){return null==e?Z():a(e)?e.toSeq():function(e){var t=ee(e)||"object"==typeof e&&new Y(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function V(e){return null==e?Z().toKeyedSeq():a(e)?u(e)?e.toSeq():e.fromEntrySeq():X(e)}function W(e){return null==e?Z():a(e)?u(e)?e.entrySeq():e.toIndexedSeq():Q(e)}function H(e){return(null==e?Z():a(e)?u(e)?e.entrySeq():e:Q(e)).toSetSeq()}function J(e){this._array=e,this.size=e.length}function Y(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function K(e){this._iterable=e,this.size=e.length||e.size}function $(e){this._iterator=e,this._iteratorCache=[]}function G(e){return!(!e||!e["@@__IMMUTABLE_SEQ__@@"])}function Z(){return T||(T=new J([]))}function X(e){var t=Array.isArray(e)?new J(e).fromEntrySeq():F(e)?new $(e).fromEntrySeq():L(e)?new K(e).fromEntrySeq():"object"==typeof e?new Y(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function Q(e){var t=ee(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ee(e){return z(e)?new J(e):F(e)?new $(e):L(e)?new K(e):void 0}function te(e,t,n,r){var o=e._cache;if(o){for(var i=o.length-1,a=0;a<=i;a++){var u=o[n?i-a:a];if(!1===t(u[1],r?u[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function ne(e,t,n,r){var o=e._cache;if(o){var i=o.length-1,a=0;return new D((function(){var e=o[n?i-a:a];return a++>i?{value:void 0,done:!0}:R(t,r?e[0]:a-1,e[1])}))}return e.__iteratorUncached(t,n)}function re(e,t){return t?function e(t,n,r,o){return Array.isArray(n)?t.call(o,r,W(n).map((function(r,o){return e(t,r,o,n)}))):ie(n)?t.call(o,r,V(n).map((function(r,o){return e(t,r,o,n)}))):n}(t,e,"",{"":e}):oe(e)}function oe(e){return Array.isArray(e)?W(e).map(oe).toList():ie(e)?V(e).map(oe).toMap():e}function ie(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ae(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if((e=e.valueOf())===(t=t.valueOf())||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function ue(e,t){if(e===t)return!0;if(!a(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||u(e)!==u(t)||s(e)!==s(t)||l(e)!==l(t))return!1;if(0===e.size&&0===t.size)return!0;var n=!c(e);if(l(e)){var r=e.entries();return t.every((function(e,t){var o=r.next().value;return o&&ae(o[1],e)&&(n||ae(o[0],t))}))&&r.next().done}var o=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{o=!0;var i=e;e=t,t=i}var f=!0,p=t.__iterate((function(t,r){if(n?!e.has(t):o?!ae(t,e.get(r,v)):!ae(e.get(r,v),t))return f=!1,!1}));return f&&e.size===p}function se(e,t){if(!(this instanceof se))return new se(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(j)return j;j=this}}function ce(e,t){if(!e)throw new Error(t)}function le(e,t,n){if(!(this instanceof le))return new le(e,t,n);if(ce(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),tr?{value:void 0,done:!0}:R(e,o,n[t?r-o++:o++])}))},t(Y,V),Y.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},Y.prototype.has=function(e){return this._object.hasOwnProperty(e)},Y.prototype.__iterate=function(e,t){for(var n=this._object,r=this._keys,o=r.length-1,i=0;i<=o;i++){var a=r[t?o-i:i];if(!1===e(n[a],a,this))return i+1}return i},Y.prototype.__iterator=function(e,t){var n=this._object,r=this._keys,o=r.length-1,i=0;return new D((function(){var a=r[t?o-i:i];return i++>o?{value:void 0,done:!0}:R(e,a,n[a])}))},Y.prototype[d]=!0,t(K,W),K.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=B(this._iterable),r=0;if(F(n))for(var o;!(o=n.next()).done&&!1!==e(o.value,r++,this););return r},K.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var n=B(this._iterable);if(!F(n))return new D(N);var r=0;return new D((function(){var t=n.next();return t.done?t:R(e,r++,t.value)}))},t($,W),$.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,o=this._iteratorCache,i=0;i=r.length){var t=n.next();if(t.done)return t;r[o]=t.value}return R(e,o,r[o++])}))},t(se,W),se.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},se.prototype.get=function(e,t){return this.has(e)?this._value:t},se.prototype.includes=function(e){return ae(this._value,e)},se.prototype.slice=function(e,t){var n=this.size;return C(e,t,n)?this:new se(this._value,k(t,n)-A(e,n))},se.prototype.reverse=function(){return this},se.prototype.indexOf=function(e){return ae(this._value,e)?0:-1},se.prototype.lastIndexOf=function(e){return ae(this._value,e)?this.size:-1},se.prototype.__iterate=function(e,t){for(var n=0;n=0&&t=0&&nn?{value:void 0,done:!0}:R(e,i++,a)}))},le.prototype.equals=function(e){return e instanceof le?this._start===e._start&&this._end===e._end&&this._step===e._step:ue(this,e)},t(fe,n),t(pe,fe),t(he,fe),t(de,fe),fe.Keyed=pe,fe.Indexed=he,fe.Set=de;var ve="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var n=65535&(e|=0),r=65535&(t|=0);return n*r+((e>>>16)*r+n*(t>>>16)<<16>>>0)|0};function me(e){return e>>>1&1073741824|3221225471&e}function ye(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){if(e!=e||e===1/0)return 0;var n=0|e;for(n!==e&&(n^=4294967295*e);e>4294967295;)n^=e/=4294967295;return me(n)}if("string"===t)return e.length>Ce?function(e){var t=Oe[e];return void 0===t&&(t=ge(e),ke===Ae&&(ke=0,Oe={}),ke++,Oe[e]=t),t}(e):ge(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(xe&&void 0!==(t=be.get(e)))return t;if(void 0!==(t=e[Se]))return t;if(!we){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Se]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ee,1073741824&Ee&&(Ee=0),xe)be.set(e,t);else{if(void 0!==_e&&!1===_e(e))throw new Error("Non-extensible objects are not allowed as keys.");if(we)Object.defineProperty(e,Se,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Se]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Se]=t}}return t}(e);if("function"==typeof e.toString)return ge(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ge(e){for(var t=0,n=0;n=t.length)throw new Error("Missing value for key: "+t[n]);e.set(t[n],t[n+1])}}))},je.prototype.toString=function(){return this.__toString("Map {","}")},je.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},je.prototype.set=function(e,t){return He(this,e,t)},je.prototype.setIn=function(e,t){return this.updateIn(e,v,(function(){return t}))},je.prototype.remove=function(e){return He(this,e,v)},je.prototype.deleteIn=function(e){return this.updateIn(e,(function(){return v}))},je.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},je.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,o){var i=t===v,a=n.next();if(a.done){var u=i?r:t,s=o(u);return s===u?t:s}ce(i||t&&t.set,"invalid keyPath");var c=a.value,l=i?v:t.get(c,v),f=e(l,n,r,o);return f===l?t:f===v?t.remove(c):(i?We():t).set(c,f)}(this,$t(e),t,n);return r===v?void 0:r},je.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):We()},je.prototype.merge=function(){return $e(this,void 0,arguments)},je.prototype.mergeWith=function(t){var n=e.call(arguments,1);return $e(this,t,n)},je.prototype.mergeIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,We(),(function(e){return"function"==typeof e.merge?e.merge.apply(e,n):n[n.length-1]}))},je.prototype.mergeDeep=function(){return $e(this,Ge,arguments)},je.prototype.mergeDeepWith=function(t){var n=e.call(arguments,1);return $e(this,Ze(t),n)},je.prototype.mergeDeepIn=function(t){var n=e.call(arguments,1);return this.updateIn(t,We(),(function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,n):n[n.length-1]}))},je.prototype.sort=function(e){return wt(Ft(this,e))},je.prototype.sortBy=function(e,t){return wt(Ft(this,t,e))},je.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},je.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new _)},je.prototype.asImmutable=function(){return this.__ensureOwner()},je.prototype.wasAltered=function(){return this.__altered},je.prototype.__iterator=function(e,t){return new Ue(this,e,t)},je.prototype.__iterate=function(e,t){var n=this,r=0;return this._root&&this._root.iterate((function(t){return r++,e(t[1],t[0],n)}),t),r},je.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Ve(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},je.isMap=Pe;var Ie,Me="@@__IMMUTABLE_MAP__@@",De=je.prototype;function Re(e,t){this.ownerID=e,this.entries=t}function Ne(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Le(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Fe(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Be(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function Ue(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&qe(e._root)}function ze(e,t){return R(e,t[0],t[1])}function qe(e,t){return{node:e,index:0,__prev:t}}function Ve(e,t,n,r){var o=Object.create(De);return o.size=e,o._root=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function We(){return Ie||(Ie=Ve(0))}function He(e,t,n){var r,o;if(e._root){var i=g(m),a=g(y);if(r=Je(e._root,e.__ownerID,0,void 0,t,n,i,a),!a.value)return e;o=e.size+(i.value?n===v?-1:1:0)}else{if(n===v)return e;o=1,r=new Re(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=o,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Ve(o,r):We()}function Je(e,t,n,r,o,i,a,u){return e?e.update(t,n,r,o,i,a,u):i===v?e:(b(u),b(a),new Be(t,r,[o,i]))}function Ye(e){return e.constructor===Be||e.constructor===Fe}function Ke(e,t,n,r,o){if(e.keyHash===r)return new Fe(t,r,[e.entry,o]);var i,a=31&(0===n?e.keyHash:e.keyHash>>>n),u=31&(0===n?r:r>>>n);return new Ne(t,1<>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function et(e,t,n,r){var o=r?e:w(e);return o[t]=n,o}De[Me]=!0,De.delete=De.remove,De.removeIn=De.deleteIn,Re.prototype.get=function(e,t,n,r){for(var o=this.entries,i=0,a=o.length;i=tt)return function(e,t,n,r){e||(e=new _);for(var o=new Be(e,ye(n),[n,r]),i=0;i>>e)),i=this.bitmap;return 0==(i&o)?r:this.nodes[Qe(i&o-1)].get(e+5,t,n,r)},Ne.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var u=31&(0===t?n:n>>>t),s=1<=nt)return function(e,t,n,r,o){for(var i=0,a=new Array(32),u=0;0!==n;u++,n>>>=1)a[u]=1&n?t[i++]:void 0;return a[r]=o,new Le(e,i+1,a)}(e,p,c,u,d);if(l&&!d&&2===p.length&&Ye(p[1^f]))return p[1^f];if(l&&d&&1===p.length&&Ye(d))return d;var m=e&&e===this.ownerID,y=l?d?c:c^s:c|s,g=l?d?et(p,f,d,m):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var o=new Array(r),i=0,a=0;a>>e),i=this.nodes[o];return i?i.get(e+5,t,n,r):r},Le.prototype.update=function(e,t,n,r,o,i,a){void 0===n&&(n=ye(r));var u=31&(0===t?n:n>>>t),s=o===v,c=this.nodes,l=c[u];if(s&&!l)return this;var f=Je(l,e,t+5,n,r,o,i,a);if(f===l)return this;var p=this.count;if(l){if(!f&&--p0&&r<32?ht(0,r,5,null,new st(n.toArray())):t.withMutations((function(e){e.setSize(r),n.forEach((function(t,n){return e.set(n,t)}))})))}function it(e){return!(!e||!e[at])}t(ot,he),ot.of=function(){return this(arguments)},ot.prototype.toString=function(){return this.__toString("List [","]")},ot.prototype.get=function(e,t){if((e=E(this,e))>=0&&e=e.size||t<0)return e.withMutations((function(e){t<0?gt(e,t).set(0,n):gt(e,0,t+1).set(t,n)}));t+=e._origin;var r=e._tail,o=e._root,i=g(y);return t>=_t(e._capacity)?r=vt(r,e.__ownerID,0,t,n,i):o=vt(o,e.__ownerID,e._level,t,n,i),i.value?e.__ownerID?(e._root=o,e._tail=r,e.__hash=void 0,e.__altered=!0,e):ht(e._origin,e._capacity,e._level,o,r):e}(this,e,t)},ot.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ot.prototype.insert=function(e,t){return this.splice(e,0,t)},ot.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):dt()},ot.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations((function(n){gt(n,0,t+e.length);for(var r=0;r>>t&31;if(r>=this.array.length)return new st([],e);var o,i=0===r;if(t>0){var a=this.array[r];if((o=a&&a.removeBefore(e,t-5,n))===a&&i)return this}if(i&&!o)return this;var u=mt(this,e);if(!i)for(var s=0;s>>t&31;if(o>=this.array.length)return this;if(t>0){var i=this.array[o];if((r=i&&i.removeAfter(e,t-5,n))===i&&o===this.array.length-1)return this}var a=mt(this,e);return a.array.splice(o+1),r&&(a.array[o]=r),a};var ct,lt,ft={};function pt(e,t){var n=e._origin,r=e._capacity,o=_t(r),i=e._tail;return a(e._root,e._level,0);function a(e,u,s){return 0===u?function(e,a){var u=a===o?i&&i.array:e&&e.array,s=a>n?0:n-a,c=r-a;return c>32&&(c=32),function(){if(s===c)return ft;var e=t?--c:s++;return u&&u[e]}}(e,s):function(e,o,i){var u,s=e&&e.array,c=i>n?0:n-i>>o,l=1+(r-i>>o);return l>32&&(l=32),function(){for(;;){if(u){var e=u();if(e!==ft)return e;u=null}if(c===l)return ft;var n=t?--l:c++;u=a(s&&s[n],o-5,i+(n<>>n&31,s=e&&u0){var c=e&&e.array[u],l=vt(c,t,n-5,r,o,i);return l===c?e:((a=mt(e,t)).array[u]=l,a)}return s&&e.array[u]===o?e:(b(i),a=mt(e,t),void 0===o&&u===a.array.length-1?a.array.pop():a.array[u]=o,a)}function mt(e,t){return t&&e&&t===e.ownerID?e:new st(e?e.array.slice():[],t)}function yt(e,t){if(t>=_t(e._capacity))return e._tail;if(t<1<0;)n=n.array[t>>>r&31],r-=5;return n}}function gt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new _,o=e._origin,i=e._capacity,a=o+t,u=void 0===n?i:n<0?i+n:o+n;if(a===o&&u===i)return e;if(a>=u)return e.clear();for(var s=e._level,c=e._root,l=0;a+l<0;)c=new st(c&&c.array.length?[void 0,c]:[],r),l+=1<<(s+=5);l&&(a+=l,o+=l,u+=l,i+=l);for(var f=_t(i),p=_t(u);p>=1<f?new st([],r):h;if(h&&p>f&&a5;m-=5){var y=f>>>m&31;v=v.array[y]=mt(v.array[y],r)}v.array[f>>>5&31]=h}if(u=p)a-=p,u-=p,s=5,c=null,d=d&&d.removeBefore(r,0,a);else if(a>o||p>>s&31;if(g!==p>>>s&31)break;g&&(l+=(1<o&&(c=c.removeBefore(r,s,a-l)),c&&pi&&(i=c.size),a(s)||(c=c.map((function(e){return re(e)}))),r.push(c)}return i>e.size&&(e=e.setSize(i)),Xe(e,t,r)}function _t(e){return e<32?0:e-1>>>5<<5}function wt(e){return null==e?St():xt(e)?e:St().withMutations((function(t){var n=r(e);Te(n.size),n.forEach((function(e,n){return t.set(n,e)}))}))}function xt(e){return Pe(e)&&l(e)}function Et(e,t,n,r){var o=Object.create(wt.prototype);return o.size=e?e.size:0,o._map=e,o._list=t,o.__ownerID=n,o.__hash=r,o}function St(){return lt||(lt=Et(We(),dt()))}function Ct(e,t,n){var r,o,i=e._map,a=e._list,u=i.get(t),s=void 0!==u;if(n===v){if(!s)return e;a.size>=32&&a.size>=2*i.size?(r=(o=a.filter((function(e,t){return void 0!==e&&u!==t}))).toKeyedSeq().map((function(e){return e[0]})).flip().toMap(),e.__ownerID&&(r.__ownerID=o.__ownerID=e.__ownerID)):(r=i.remove(t),o=u===a.size-1?a.pop():a.set(u,void 0))}else if(s){if(n===a.get(u)[1])return e;r=i,o=a.set(u,[t,n])}else r=i.set(t,a.size),o=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=o,e.__hash=void 0,e):Et(r,o)}function At(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function kt(e){this._iter=e,this.size=e.size}function Ot(e){this._iter=e,this.size=e.size}function Tt(e){this._iter=e,this.size=e.size}function jt(e){var t=Jt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=Yt,t.__iterateUncached=function(t,n){var r=this;return e.__iterate((function(e,n){return!1!==t(n,e,r)}),n)},t.__iteratorUncached=function(t,n){if(2===t){var r=e.__iterator(t,n);return new D((function(){var e=r.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e}))}return e.__iterator(1===t?0:1,n)},t}function Pt(e,t,n){var r=Jt(e);return r.size=e.size,r.has=function(t){return e.has(t)},r.get=function(r,o){var i=e.get(r,v);return i===v?o:t.call(n,i,r,e)},r.__iterateUncached=function(r,o){var i=this;return e.__iterate((function(e,o,a){return!1!==r(t.call(n,e,o,a),o,i)}),o)},r.__iteratorUncached=function(r,o){var i=e.__iterator(2,o);return new D((function(){var o=i.next();if(o.done)return o;var a=o.value,u=a[0];return R(r,u,t.call(n,a[1],u,e),o)}))},r}function It(e,t){var n=Jt(e);return n._iter=e,n.size=e.size,n.reverse=function(){return e},e.flip&&(n.flip=function(){var t=jt(e);return t.reverse=function(){return e.flip()},t}),n.get=function(n,r){return e.get(t?n:-1-n,r)},n.has=function(n){return e.has(t?n:-1-n)},n.includes=function(t){return e.includes(t)},n.cacheResult=Yt,n.__iterate=function(t,n){var r=this;return e.__iterate((function(e,n){return t(e,n,r)}),!n)},n.__iterator=function(t,n){return e.__iterator(t,!n)},n}function Mt(e,t,n,r){var o=Jt(e);return r&&(o.has=function(r){var o=e.get(r,v);return o!==v&&!!t.call(n,o,r,e)},o.get=function(r,o){var i=e.get(r,v);return i!==v&&t.call(n,i,r,e)?i:o}),o.__iterateUncached=function(o,i){var a=this,u=0;return e.__iterate((function(e,i,s){if(t.call(n,e,i,s))return u++,o(e,r?i:u-1,a)}),i),u},o.__iteratorUncached=function(o,i){var a=e.__iterator(2,i),u=0;return new D((function(){for(;;){var i=a.next();if(i.done)return i;var s=i.value,c=s[0],l=s[1];if(t.call(n,l,c,e))return R(o,r?c:u++,l,i)}}))},o}function Dt(e,t,n,r){var o=e.size;if(void 0!==t&&(t|=0),void 0!==n&&(n===1/0?n=o:n|=0),C(t,n,o))return e;var i=A(t,o),a=k(n,o);if(i!=i||a!=a)return Dt(e.toSeq().cacheResult(),t,n,r);var u,s=a-i;s==s&&(u=s<0?0:s);var c=Jt(e);return c.size=0===u?u:e.size&&u||void 0,!r&&G(e)&&u>=0&&(c.get=function(t,n){return(t=E(this,t))>=0&&tu)return{value:void 0,done:!0};var e=o.next();return r||1===t?e:R(t,s-1,0===t?void 0:e.value[1],e)}))},c}function Rt(e,t,n,r){var o=Jt(e);return o.__iterateUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterate(o,i);var u=!0,s=0;return e.__iterate((function(e,i,c){if(!u||!(u=t.call(n,e,i,c)))return s++,o(e,r?i:s-1,a)})),s},o.__iteratorUncached=function(o,i){var a=this;if(i)return this.cacheResult().__iterator(o,i);var u=e.__iterator(2,i),s=!0,c=0;return new D((function(){var e,i,l;do{if((e=u.next()).done)return r||1===o?e:R(o,c++,0===o?void 0:e.value[1],e);var f=e.value;i=f[0],l=f[1],s&&(s=t.call(n,l,i,a))}while(s);return 2===o?e:R(o,i,l,e)}))},o}function Nt(e,t){var n=u(e),o=[e].concat(t).map((function(e){return a(e)?n&&(e=r(e)):e=n?X(e):Q(Array.isArray(e)?e:[e]),e})).filter((function(e){return 0!==e.size}));if(0===o.length)return e;if(1===o.length){var i=o[0];if(i===e||n&&u(i)||s(e)&&s(i))return i}var c=new J(o);return n?c=c.toKeyedSeq():s(e)||(c=c.toSetSeq()),(c=c.flatten(!0)).size=o.reduce((function(e,t){if(void 0!==e){var n=t.size;if(void 0!==n)return e+n}}),0),c}function Lt(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var i=0,u=!1;return function e(s,c){var l=this;s.__iterate((function(o,s){return(!t||c0}function zt(e,t,r){var o=Jt(e);return o.size=new J(r).map((function(e){return e.size})).min(),o.__iterate=function(e,t){for(var n,r=this.__iterator(1,t),o=0;!(n=r.next()).done&&!1!==e(n.value,o++,this););return o},o.__iteratorUncached=function(e,o){var i=r.map((function(e){return e=n(e),B(o?e.reverse():e)})),a=0,u=!1;return new D((function(){var n;return u||(n=i.map((function(e){return e.next()})),u=n.some((function(e){return e.done}))),u?{value:void 0,done:!0}:R(e,a++,t.apply(null,n.map((function(e){return e.value}))))}))},o}function qt(e,t){return G(e)?t:e.constructor(t)}function Vt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Wt(e){return Te(e.size),x(e)}function Ht(e){return u(e)?r:s(e)?o:i}function Jt(e){return Object.create((u(e)?V:s(e)?W:H).prototype)}function Yt(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function Kt(e,t){return e>t?1:e=0;n--)t={value:arguments[n],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):wn(e,t)},mn.prototype.pushAll=function(e){if(0===(e=o(e)).size)return this;Te(e.size);var t=this.size,n=this._head;return e.reverse().forEach((function(e){t++,n={value:e,next:n}})),this.__ownerID?(this.size=t,this._head=n,this.__hash=void 0,this.__altered=!0,this):wn(t,n)},mn.prototype.pop=function(){return this.slice(1)},mn.prototype.unshift=function(){return this.push.apply(this,arguments)},mn.prototype.unshiftAll=function(e){return this.pushAll(e)},mn.prototype.shift=function(){return this.pop.apply(this,arguments)},mn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):xn()},mn.prototype.slice=function(e,t){if(C(e,t,this.size))return this;var n=A(e,this.size);if(k(t,this.size)!==this.size)return he.prototype.slice.call(this,e,t);for(var r=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=r,this._head=o,this.__hash=void 0,this.__altered=!0,this):wn(r,o)},mn.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?wn(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},mn.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var n=0,r=this._head;r&&!1!==e(r.value,n++,this);)r=r.next;return n},mn.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var n=0,r=this._head;return new D((function(){if(r){var t=r.value;return r=r.next,R(e,n++,t)}return{value:void 0,done:!0}}))},mn.isStack=yn;var gn,bn="@@__IMMUTABLE_STACK__@@",_n=mn.prototype;function wn(e,t,n,r){var o=Object.create(_n);return o.size=e,o._head=t,o.__ownerID=n,o.__hash=r,o.__altered=!1,o}function xn(){return gn||(gn=wn(0))}function En(e,t){var n=function(n){e.prototype[n]=t[n]};return Object.keys(t).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(n),e}_n[bn]=!0,_n.withMutations=De.withMutations,_n.asMutable=De.asMutable,_n.asImmutable=De.asImmutable,_n.wasAltered=De.wasAltered,n.Iterator=D,En(n,{toArray:function(){Te(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate((function(t,n){e[n]=t})),e},toIndexedSeq:function(){return new kt(this)},toJS:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJS?e.toJS():e})).__toJS()},toJSON:function(){return this.toSeq().map((function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e})).__toJS()},toKeyedSeq:function(){return new At(this,!0)},toMap:function(){return je(this.toKeyedSeq())},toObject:function(){Te(this.size);var e={};return this.__iterate((function(t,n){e[n]=t})),e},toOrderedMap:function(){return wt(this.toKeyedSeq())},toOrderedSet:function(){return ln(u(this)?this.valueSeq():this)},toSet:function(){return tn(u(this)?this.valueSeq():this)},toSetSeq:function(){return new Ot(this)},toSeq:function(){return s(this)?this.toIndexedSeq():u(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return mn(u(this)?this.valueSeq():this)},toList:function(){return ot(u(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return qt(this,Nt(this,t))},includes:function(e){return this.some((function(t){return ae(t,e)}))},entries:function(){return this.__iterator(2)},every:function(e,t){Te(this.size);var n=!0;return this.__iterate((function(r,o,i){if(!e.call(t,r,o,i))return n=!1,!1})),n},filter:function(e,t){return qt(this,Mt(this,e,t,!0))},find:function(e,t,n){var r=this.findEntry(e,t);return r?r[1]:n},forEach:function(e,t){return Te(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Te(this.size),e=void 0!==e?""+e:",";var t="",n=!0;return this.__iterate((function(r){n?n=!1:t+=e,t+=null!=r?r.toString():""})),t},keys:function(){return this.__iterator(0)},map:function(e,t){return qt(this,Pt(this,e,t))},reduce:function(e,t,n){var r,o;return Te(this.size),arguments.length<2?o=!0:r=t,this.__iterate((function(t,i,a){o?(o=!1,r=t):r=e.call(n,r,t,i,a)})),r},reduceRight:function(e,t,n){var r=this.toKeyedSeq().reverse();return r.reduce.apply(r,arguments)},reverse:function(){return qt(this,It(this,!0))},slice:function(e,t){return qt(this,Dt(this,e,t,!0))},some:function(e,t){return!this.every(On(e),t)},sort:function(e){return qt(this,Ft(this,e))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(e,t){return x(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,n){var r=je().asMutable();return e.__iterate((function(o,i){r.update(t.call(n,o,i,e),0,(function(e){return e+1}))})),r.asImmutable()}(this,e,t)},equals:function(e){return ue(this,e)},entrySeq:function(){var e=this;if(e._cache)return new J(e._cache);var t=e.toSeq().map(kn).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(On(e),t)},findEntry:function(e,t,n){var r=n;return this.__iterate((function(n,o,i){if(e.call(t,n,o,i))return r=[o,n],!1})),r},findKey:function(e,t){var n=this.findEntry(e,t);return n&&n[0]},findLast:function(e,t,n){return this.toKeyedSeq().reverse().find(e,t,n)},findLastEntry:function(e,t,n){return this.toKeyedSeq().reverse().findEntry(e,t,n)},findLastKey:function(e,t){return this.toKeyedSeq().reverse().findKey(e,t)},first:function(){return this.find(S)},flatMap:function(e,t){return qt(this,function(e,t,n){var r=Ht(e);return e.toSeq().map((function(o,i){return r(t.call(n,o,i,e))})).flatten(!0)}(this,e,t))},flatten:function(e){return qt(this,Lt(this,e,!0))},fromEntrySeq:function(){return new Tt(this)},get:function(e,t){return this.find((function(t,n){return ae(n,e)}),void 0,t)},getIn:function(e,t){for(var n,r=this,o=$t(e);!(n=o.next()).done;){var i=n.value;if((r=r&&r.get?r.get(i,v):v)===v)return t}return r},groupBy:function(e,t){return function(e,t,n){var r=u(e),o=(l(e)?wt():je()).asMutable();e.__iterate((function(i,a){o.update(t.call(n,i,a,e),(function(e){return(e=e||[]).push(r?[a,i]:i),e}))}));var i=Ht(e);return o.map((function(t){return qt(e,i(t))}))}(this,e,t)},has:function(e){return this.get(e,v)!==v},hasIn:function(e){return this.getIn(e,v)!==v},isSubset:function(e){return e="function"==typeof e.includes?e:n(e),this.every((function(t){return e.includes(t)}))},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:n(e)).isSubset(this)},keyOf:function(e){return this.findKey((function(t){return ae(t,e)}))},keySeq:function(){return this.toSeq().map(An).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},lastKeyOf:function(e){return this.toKeyedSeq().reverse().keyOf(e)},max:function(e){return Bt(this,e)},maxBy:function(e,t){return Bt(this,t,e)},min:function(e){return Bt(this,e?Tn(e):In)},minBy:function(e,t){return Bt(this,t?Tn(t):In,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return qt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return qt(this,Rt(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(On(e),t)},sortBy:function(e,t){return qt(this,Ft(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return qt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return qt(this,function(e,t,n){var r=Jt(e);return r.__iterateUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterate(r,o);var a=0;return e.__iterate((function(e,o,u){return t.call(n,e,o,u)&&++a&&r(e,o,i)})),a},r.__iteratorUncached=function(r,o){var i=this;if(o)return this.cacheResult().__iterator(r,o);var a=e.__iterator(2,o),u=!0;return new D((function(){if(!u)return{value:void 0,done:!0};var e=a.next();if(e.done)return e;var o=e.value,s=o[0],c=o[1];return t.call(n,c,s,i)?2===r?e:R(r,s,c,e):(u=!1,{value:void 0,done:!0})}))},r}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(On(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=l(e),n=u(e),r=t?1:0;return function(e,t){return t=ve(t,3432918353),t=ve(t<<15|t>>>-15,461845907),t=ve(t<<13|t>>>-13,5),t=ve((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=me((t=ve(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(n?t?function(e,t){r=31*r+Mn(ye(e),ye(t))|0}:function(e,t){r=r+Mn(ye(e),ye(t))|0}:t?function(e){r=31*r+ye(e)|0}:function(e){r=r+ye(e)|0}),r)}(this))}});var Sn=n.prototype;Sn[f]=!0,Sn[M]=Sn.values,Sn.__toJS=Sn.toArray,Sn.__toStringMapper=jn,Sn.inspect=Sn.toSource=function(){return this.toString()},Sn.chain=Sn.flatMap,Sn.contains=Sn.includes,En(r,{flip:function(){return qt(this,jt(this))},mapEntries:function(e,t){var n=this,r=0;return qt(this,this.toSeq().map((function(o,i){return e.call(t,[i,o],r++,n)})).fromEntrySeq())},mapKeys:function(e,t){var n=this;return qt(this,this.toSeq().flip().map((function(r,o){return e.call(t,r,o,n)})).flip())}});var Cn=r.prototype;function An(e,t){return t}function kn(e,t){return[t,e]}function On(e){return function(){return!e.apply(this,arguments)}}function Tn(e){return function(){return-e.apply(this,arguments)}}function jn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function Pn(){return w(arguments)}function In(e,t){return et?-1:0}function Mn(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Cn[p]=!0,Cn[M]=Sn.entries,Cn.__toJS=Sn.toObject,Cn.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+jn(e)},En(o,{toKeyedSeq:function(){return new At(this,!1)},filter:function(e,t){return qt(this,Mt(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return qt(this,It(this,!1))},slice:function(e,t){return qt(this,Dt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=A(e,e<0?this.count():this.size);var r=this.slice(0,e);return qt(this,1===n?r:r.concat(w(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return qt(this,Lt(this,e,!1))},get:function(e,t){return(e=E(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find((function(t,n){return n===e}),void 0,t)},has:function(e){return(e=E(this,e))>=0&&(void 0!==this.size?this.size===1/0||e=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var u,c=!0,f=!1;return{s:function(){n=o()(e)},n:function(){var e=n.next();return c=e.done,e},e:function(e){f=!0,u=e},f:function(){try{c||null==n.return||n.return()}finally{if(f)throw u}}}}function Y(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n5e3)return e.textContent;return function(e){for(var n,r,o,i,a,u=e.textContent,s=0,c=u[0],l=1,f=e.innerHTML="",p=0;r=n,n=p<7&&"\\"==n?1:l;){if(l=c,c=u[++s],i=f.length>1,!l||p>8&&"\n"==l||[/\S/.test(l),1,1,!/[$\w]/.test(l),("/"==n||"\n"==n)&&i,'"'==n&&i,"'"==n&&i,u[s-4]+r+n=="--\x3e",r+n=="*/"][p])for(f&&(e.appendChild(a=t.createElement("span")).setAttribute("style",["color: #555; font-weight: bold;","","","color: #555;",""][p?p<3?2:p>6?4:p>3?3:+/^(a(bstract|lias|nd|rguments|rray|s(m|sert)?|uto)|b(ase|egin|ool(ean)?|reak|yte)|c(ase|atch|har|hecked|lass|lone|ompl|onst|ontinue)|de(bugger|cimal|clare|f(ault|er)?|init|l(egate|ete)?)|do|double|e(cho|ls?if|lse(if)?|nd|nsure|num|vent|x(cept|ec|p(licit|ort)|te(nds|nsion|rn)))|f(allthrough|alse|inal(ly)?|ixed|loat|or(each)?|riend|rom|unc(tion)?)|global|goto|guard|i(f|mp(lements|licit|ort)|n(it|clude(_once)?|line|out|stanceof|t(erface|ernal)?)?|s)|l(ambda|et|ock|ong)|m(icrolight|odule|utable)|NaN|n(amespace|ative|ext|ew|il|ot|ull)|o(bject|perator|r|ut|verride)|p(ackage|arams|rivate|rotected|rotocol|ublic)|r(aise|e(adonly|do|f|gister|peat|quire(_once)?|scue|strict|try|turn))|s(byte|ealed|elf|hort|igned|izeof|tatic|tring|truct|ubscript|uper|ynchronized|witch)|t(emplate|hen|his|hrows?|ransient|rue|ry|ype(alias|def|id|name|of))|u(n(checked|def(ined)?|ion|less|signed|til)|se|sing)|v(ar|irtual|oid|olatile)|w(char_t|hen|here|hile|ith)|xor|yield)$/.test(f):0]),a.appendChild(t.createTextNode(f))),o=p&&p<7?p:o,f="",p=11;![1,/[\/{}[(\-+*=<>:;|\\.,?!&@~]/.test(l),/[\])]/.test(l),/[$\w]/.test(l),"/"==l&&o<2&&"<"!=n,'"'==l,"'"==l,l+c+u[s+1]+u[s+2]=="\x3c!--",l+c=="/*",l+c=="//","#"==l][--p];);f+=l}}(e)}function le(e){var t;if([/filename\*=[^']+'\w*'"([^"]+)";?/i,/filename\*=[^']+'\w*'([^;]+);?/i,/filename="([^;]*);?"/i,/filename=([^;]*);?/i].some((function(n){return null!==(t=n.exec(e))})),null!==t&&t.length>1)try{return decodeURIComponent(t[1])}catch(e){console.error(e)}return null}function fe(e){return t=e.replace(/\.[^./]*$/,""),k()(C()(t));var t}var pe=function(e,t){if(e>t)return"Value must be less than Maximum"},he=function(e,t){if(et)return"Value must be less than MaxLength"},xe=function(e,t){if(e.length2&&void 0!==arguments[2]?arguments[2]:{},r=n.isOAS3,o=void 0!==r&&r,i=n.bypassRequiredCheck,a=void 0!==i&&i,u=[],s=e.get("required"),c=Object(z.a)(e,{isOAS3:o}),l=c.schema,f=c.parameterContentMediaType;if(!l)return u;var p=l.get("required"),h=l.get("maximum"),d=l.get("minimum"),v=l.get("type"),m=l.get("format"),y=l.get("maxLength"),b=l.get("minLength"),w=l.get("pattern");if(v&&(s||p||t)){var E="string"===v&&t,S="array"===v&&g()(t)&&t.length,C="array"===v&&x.a.List.isList(t)&&t.count(),A="array"===v&&"string"==typeof t&&t,k="file"===v&&t instanceof F.a.File,O="boolean"===v&&(t||!1===t),T="number"===v&&(t||0===t),j="integer"===v&&(t||0===t),P="object"===v&&"object"===_()(t)&&null!==t,I="object"===v&&"string"==typeof t&&t,M=[E,S,C,A,k,O,T,j,P,I],D=M.some((function(e){return!!e}));if((s||p)&&!D&&!a)return u.push("Required field is not provided"),u;if("object"===v&&"string"==typeof t&&(null===f||"application/json"===f))try{JSON.parse(t)}catch(e){return u.push("Parameter string value must be valid JSON"),u}if(w){var R=Ee(t,w);R&&u.push(R)}if(y||0===y){var N=we(t,y);N&&u.push(N)}if(b){var L=xe(t,b);L&&u.push(L)}if(h||0===h){var B=pe(t,h);B&&u.push(B)}if(d||0===d){var U=he(t,d);U&&u.push(U)}if("string"===v){var q;if(!(q="date-time"===m?be(t):"uuid"===m?_e(t):ge(t)))return u;u.push(q)}else if("boolean"===v){var V=ye(t);if(!V)return u;u.push(V)}else if("number"===v){var W=de(t);if(!W)return u;u.push(W)}else if("integer"===v){var H=ve(t);if(!H)return u;u.push(H)}else if("array"===v){var J;if(!C||!t.count())return u;J=l.getIn(["items","type"]),t.forEach((function(e,t){var n;"number"===J?n=de(e):"integer"===J?n=ve(e):"string"===J&&(n=ge(e)),n&&u.push({index:t,error:n})}))}else if("file"===v){var Y=me(t);if(!Y)return u;u.push(Y)}}return u},Ce=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(/xml/.test(t)){if(!e.xml||!e.xml.name){if(e.xml=e.xml||{},!e.$$ref)return e.type||e.items||e.properties||e.additionalProperties?'\n\x3c!-- XML example cannot be generated; root element name is undefined --\x3e':null;var r=e.$$ref.match(/\S*\/(\S+)$/);e.xml.name=r[1]}return Object(N.memoizedCreateXMLExample)(e,n)}var o=Object(N.memoizedSampleFromSchema)(e,n);return"object"===_()(o)?p()(o,null,2):o},Ae=function(){var e={},t=F.a.location.search;if(!t)return{};if(""!=t){var n=t.substr(1).split("&");for(var r in n)n.hasOwnProperty(r)&&(r=n[r].split("="),e[decodeURIComponent(r[0])]=r[1]&&decodeURIComponent(r[1])||"")}return e},ke=function(t){return(t instanceof e?t:new e(t.toString(),"utf-8")).toString("base64")},Oe={operationsSorter:{alpha:function(e,t){return e.get("path").localeCompare(t.get("path"))},method:function(e,t){return e.get("method").localeCompare(t.get("method"))}},tagsSorter:{alpha:function(e,t){return e.localeCompare(t)}}},Te=function(e){var t=[];for(var n in e){var r=e[n];void 0!==r&&""!==r&&t.push([n,"=",encodeURIComponent(r).replace(/%20/g,"+")].join(""))}return t.join("&")},je=function(e,t,n){return!!P()(n,(function(n){return M()(e[n],t[n])}))};function Pe(e){return"string"!=typeof e||""===e?"":Object(E.sanitizeUrl)(e)}function Ie(e){if(!x.a.OrderedMap.isOrderedMap(e))return null;if(!e.size)return null;var t=e.find((function(e,t){return t.startsWith("2")&&m()(e.get("content")||{}).length>0})),n=e.get("default")||x.a.OrderedMap(),r=(n.get("content")||x.a.OrderedMap()).keySeq().toJS().length?n:null;return t||r}var Me=function(e){return"string"==typeof e||e instanceof String?e.trim().replace(/\s/g,"%20"):""},De=function(e){return U()(Me(e).replace(/%20/g,"_"))},Re=function(e){return e.filter((function(e,t){return/^x-/.test(t)}))},Ne=function(e){return e.filter((function(e,t){return/^pattern|maxLength|minLength|maximum|minimum/.test(t)}))};function Le(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){return!0};if("object"!==_()(e)||g()(e)||null===e||!t)return e;var r=d()({},e);return m()(r).forEach((function(e){e===t&&n(r[e],e)?delete r[e]:r[e]=Le(r[e],t,n)})),r}function Fe(e){if("string"==typeof e)return e;if(e&&e.toJS&&(e=e.toJS()),"object"===_()(e)&&null!==e)try{return p()(e,null,2)}catch(t){return String(e)}return null==e?"":e.toString()}function Be(e){return"number"==typeof e?e.toString():e}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.returnAll,r=void 0!==n&&n,o=t.allowHashes,i=void 0===o||o;if(!x.a.Map.isMap(e))throw new Error("paramToIdentifier: received a non-Im.Map parameter as input");var a=e.get("name"),u=e.get("in"),s=[];return e&&e.hashCode&&u&&a&&i&&s.push("".concat(u,".").concat(a,".hash-").concat(e.hashCode())),u&&a&&s.push("".concat(u,".").concat(a)),s.push(a),r?s:s[0]||""}function ze(e,t){return Ue(e,{returnAll:!0}).map((function(e){return t[e]})).filter((function(e){return void 0!==e}))[0]}function qe(){return We(V()(32).toString("base64"))}function Ve(e){return We(H()("sha256").update(e).digest("base64"))}function We(e){return e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}var He=function(e){return!e||!(!K(e)||!e.isEmpty())}}).call(this,n(78).Buffer)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){var r=n(54);function o(e,t){for(var n=0;n1?t-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:r,n=null,i=null;return function(){return o(t,n,arguments)||(i=e.apply(null,arguments)),n=arguments,i}}))},function(e,t,n){var r=n(751),o=n(752),i=n(756);e.exports=function(e){return r(e)||o(e)||i()}},function(e,t,n){var r=n(596),o=n(597),i=n(598);e.exports=function(e,t){return r(e)||o(e,t)||i()}},function(e,t,n){e.exports=n(566)},function(e,t,n){"use strict";e.exports=function(e,t,n,r,o,i,a,u){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,u],l=0;(s=new Error(t.replace(/%s/g,(function(){return c[l++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,n){e.exports=n(552)},function(e,t,n){e.exports=n(570)},function(e,t){e.exports=function(){var e={location:{},history:{},open:function(){},close:function(){},File:function(){}};if("undefined"==typeof window)return e;try{e=window;for(var t=0,n=["File","Blob","FormData"];t5?s-5:0),l=5;l6?u-6:0),c=6;c>",null!=n[r])return e.apply(void 0,[n,r,o,i,a].concat(s));var l=i;return t?new Error("Required "+l+" `"+a+"` was not specified in `"+o+"`."):void 0}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function u(e,t){return a((function(n,r,o,a,u){var s=n[r];if(!t(s)){var c=i(s);return new Error("Invalid "+a+" `"+u+"` of type `"+c+"` supplied to `"+o+"`, expected `"+e+"`.")}return null}))}function s(e,t,n){return a((function(r,o,a,u,s){for(var c=arguments.length,l=Array(c>5?c-5:0),f=5;f5?a-5:0),s=5;s key("+l[f]+")"].concat(u));if(h instanceof Error)return h}}))}function l(e,t,n,r){return a((function(){for(var o=arguments.length,i=Array(o),a=0;a5?c-5:0),f=5;f4)}function s(e){var t=e.get("swagger");return"string"==typeof t&&t.startsWith("2.0")}function c(e){return function(t,n){return function(r){return n&&n.specSelectors&&n.specSelectors.specJson?u(n.specSelectors.specJson())?a.a.createElement(e,o()({},r,n,{Ori:t})):a.a.createElement(t,r):(console.warn("OAS3 wrapper: couldn't get spec"),null)}}}},function(e,t,n){"use strict"; +/* +object-assign +(c) Sindre Sorhus +@license MIT +*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null==e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach((function(e){r[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,u,s=a(e),c=1;c0){var o=n.map((function(e){return console.error(e),e.line=e.fullPath?y(g,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",O()(e,"message",{enumerable:!0,value:e.message}),e}));i.newThrownErrBatch(o)}return r.updateResolved(t)}))}},be=[],_e=V()(A()(S.a.mark((function e(){var t,n,r,o,i,a,u,s,c,l,f,p,h,d,v,m,y;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=be.system){e.next=4;break}return console.error("debResolveSubtrees: don't have a system to operate on, aborting."),e.abrupt("return");case 4:if(n=t.errActions,r=t.errSelectors,o=t.fn,i=o.resolveSubtree,a=o.AST,u=void 0===a?{}:a,s=t.specSelectors,c=t.specActions,i){e.next=8;break}return console.error("Error: Swagger-Client did not provide a `resolveSubtree` method, doing nothing."),e.abrupt("return");case 8:return l=u.getLineNumberForPath?u.getLineNumberForPath:function(){},f=s.specStr(),p=t.getConfigs(),h=p.modelPropertyMacro,d=p.parameterMacro,v=p.requestInterceptor,m=p.responseInterceptor,e.prev=11,e.next=14,be.reduce(function(){var e=A()(S.a.mark((function e(t,o){var a,u,c,p,y,g,b;return S.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t;case 2:return a=e.sent,u=a.resultMap,c=a.specWithCurrentSubtrees,e.next=7,i(c,o,{baseDoc:s.url(),modelPropertyMacro:h,parameterMacro:d,requestInterceptor:v,responseInterceptor:m});case 7:return p=e.sent,y=p.errors,g=p.spec,r.allErrors().size&&n.clearBy((function(e){return"thrown"!==e.get("type")||"resolver"!==e.get("source")||!e.get("fullPath").every((function(e,t){return e===o[t]||void 0===o[t]}))})),j()(y)&&y.length>0&&(b=y.map((function(e){return e.line=e.fullPath?l(f,e.fullPath):null,e.path=e.fullPath?e.fullPath.join("."):null,e.level="error",e.type="thrown",e.source="resolver",O()(e,"message",{enumerable:!0,value:e.message}),e})),n.newThrownErrBatch(b)),H()(u,o,g),H()(c,o,g),e.abrupt("return",{resultMap:u,specWithCurrentSubtrees:c});case 15:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),x.a.resolve({resultMap:(s.specResolvedSubtree([])||Object(R.Map)()).toJS(),specWithCurrentSubtrees:s.specJson().toJS()}));case 14:y=e.sent,delete be.system,be=[],e.next=22;break;case 19:e.prev=19,e.t0=e.catch(11),console.error(e.t0);case 22:c.updateResolvedSubtree([],y.resultMap);case 23:case"end":return e.stop()}}),e,null,[[11,19]])}))),35),we=function(e){return function(t){be.map((function(e){return e.join("@@")})).indexOf(e.join("@@"))>-1||(be.push(e),be.system=t,_e())}};function xe(e,t,n,r,o){return{type:X,payload:{path:e,value:r,paramName:t,paramIn:n,isXml:o}}}function Ee(e,t,n,r){return{type:X,payload:{path:e,param:t,value:n,isXml:r}}}var Se=function(e,t){return{type:le,payload:{path:e,value:t}}},Ce=function(){return{type:le,payload:{path:[],value:Object(R.Map)()}}},Ae=function(e,t){return{type:ee,payload:{pathMethod:e,isOAS3:t}}},ke=function(e,t,n,r){return{type:Q,payload:{pathMethod:e,paramName:t,paramIn:n,includeEmptyValue:r}}};function Oe(e){return{type:ue,payload:{pathMethod:e}}}function Te(e,t){return{type:se,payload:{path:e,value:t,key:"consumes_value"}}}function je(e,t){return{type:se,payload:{path:e,value:t,key:"produces_value"}}}var Pe=function(e,t,n){return{payload:{path:e,method:t,res:n},type:te}},Ie=function(e,t,n){return{payload:{path:e,method:t,req:n},type:ne}},Me=function(e,t,n){return{payload:{path:e,method:t,req:n},type:re}},De=function(e){return{payload:e,type:oe}},Re=function(e){return function(t){var n=t.fn,r=t.specActions,o=t.specSelectors,i=t.getConfigs,a=t.oas3Selectors,u=e.pathName,s=e.method,c=e.operation,l=i(),f=l.requestInterceptor,p=l.responseInterceptor,h=c.toJS();if(c&&c.get("parameters")&&c.get("parameters").filter((function(e){return e&&!0===e.get("allowEmptyValue")})).forEach((function(t){if(o.parameterInclusionSettingFor([u,s],t.get("name"),t.get("in"))){e.parameters=e.parameters||{};var n=Object(J.D)(t,e.parameters);(!n||n&&0===n.size)&&(e.parameters[t.get("name")]="")}})),e.contextUrl=L()(o.url()).toString(),h&&h.operationId?e.operationId=h.operationId:h&&u&&s&&(e.operationId=n.opId(h,u,s)),o.isOAS3()){var d="".concat(u,":").concat(s);e.server=a.selectedServer(d)||a.selectedServer();var v=a.serverVariables({server:e.server,namespace:d}).toJS(),y=a.serverVariables({server:e.server}).toJS();e.serverVariables=_()(v).length?v:y,e.requestContentType=a.requestContentType(u,s),e.responseContentType=a.responseContentType(u,s)||"*/*";var b=a.requestBodyValue(u,s),w=a.requestBodyInclusionSetting(u,s);Object(J.u)(b)?e.requestBody=JSON.parse(b):b&&b.toJS?e.requestBody=b.filter((function(e,t){return!Object(J.r)(e)||w.get(t)})).toJS():e.requestBody=b}var x=g()({},e);x=n.buildRequest(x),r.setRequest(e.pathName,e.method,x);e.requestInterceptor=function(t){var n=f.apply(this,[t]),o=g()({},n);return r.setMutatedRequest(e.pathName,e.method,o),n},e.responseInterceptor=p;var E=m()();return n.execute(e).then((function(t){t.duration=m()()-E,r.setResponse(e.pathName,e.method,t)})).catch((function(t){console.error(t),r.setResponse(e.pathName,e.method,{error:!0,err:B()(t)})}))}},Ne=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.path,n=e.method,r=d()(e,["path","method"]);return function(e){var o=e.fn.fetch,i=e.specSelectors,a=e.specActions,u=i.specJsonWithResolvedSubtrees().toJS(),s=i.operationScheme(t,n),c=i.contentTypeValues([t,n]).toJS(),l=c.requestContentType,f=c.responseContentType,p=/xml/i.test(l),h=i.parameterValues([t,n],p).toJS();return a.executeRequest(K(K({},r),{},{fetch:o,spec:u,pathName:t,method:n,parameters:h,requestContentType:l,scheme:s,responseContentType:f}))}};function Le(e,t){return{type:ie,payload:{path:e,method:t}}}function Fe(e,t){return{type:ae,payload:{path:e,method:t}}}function Be(e,t,n){return{type:fe,payload:{scheme:e,path:t,method:n}}}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";var r=n(145),o=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],i=["scalar","sequence","mapping"];e.exports=function(e,t){var n,a;if(t=t||{},Object.keys(t).forEach((function(t){if(-1===o.indexOf(t))throw new r('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.defaultStyle=t.defaultStyle||null,this.styleAliases=(n=t.styleAliases||null,a={},null!==n&&Object.keys(n).forEach((function(e){n[e].forEach((function(t){a[String(t)]=e}))})),a),-1===i.indexOf(this.kind))throw new r('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}},function(e,t,n){var r=n(200)("wks"),o=n(202),i=n(43).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(217)("wks"),o=n(166),i=n(32).Symbol,a="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=a&&i[e]||(a?i:o)("Symbol."+e))}).store=r},function(e,t,n){var r=n(43),o=n(73),i=n(82),a=n(97),u=n(160),s=function(e,t,n){var c,l,f,p,h=e&s.F,d=e&s.G,v=e&s.S,m=e&s.P,y=e&s.B,g=d?r:v?r[t]||(r[t]={}):(r[t]||{}).prototype,b=d?o:o[t]||(o[t]={}),_=b.prototype||(b.prototype={});for(c in d&&(n=t),n)f=((l=!h&&g&&void 0!==g[c])?g:n)[c],p=y&&l?u(f,r):m&&"function"==typeof f?u(Function.call,f):f,g&&a(g,c,f,e&s.U),b[c]!=f&&i(b,c,p),m&&_[c]!=f&&(_[c]=f)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},function(e,t,n){var r=n(35);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=Array.isArray;e.exports=n},function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};e.exports=o},function(e,t,n){var r=n(56),o=n(765);e.exports=function(e,t){if(null==e)return{};var n,i,a=o(e,t);if(r){var u=r(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var r=n(37),o=n(99),i=n(74),a=/"/g,u=function(e,t,n,r){var o=String(i(e)),u="<"+t;return""!==n&&(u+=" "+n+'="'+String(r).replace(a,""")+'"'),u+">"+o+""};e.exports=function(e,t){var n={};n[e]=t(u),r(r.P+r.F*o((function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3})),"String",n)}},function(e,t,n){"use strict";n.r(t),n.d(t,"NEW_THROWN_ERR",(function(){return i})),n.d(t,"NEW_THROWN_ERR_BATCH",(function(){return a})),n.d(t,"NEW_SPEC_ERR",(function(){return u})),n.d(t,"NEW_SPEC_ERR_BATCH",(function(){return s})),n.d(t,"NEW_AUTH_ERR",(function(){return c})),n.d(t,"CLEAR",(function(){return l})),n.d(t,"CLEAR_BY",(function(){return f})),n.d(t,"newThrownErr",(function(){return p})),n.d(t,"newThrownErrBatch",(function(){return h})),n.d(t,"newSpecErr",(function(){return d})),n.d(t,"newSpecErrBatch",(function(){return v})),n.d(t,"newAuthErr",(function(){return m})),n.d(t,"clear",(function(){return y})),n.d(t,"clearBy",(function(){return g}));var r=n(125),o=n.n(r),i="err_new_thrown_err",a="err_new_thrown_err_batch",u="err_new_spec_err",s="err_new_spec_err_batch",c="err_new_auth_err",l="err_clear",f="err_clear_by";function p(e){return{type:i,payload:o()(e)}}function h(e){return{type:a,payload:e}}function d(e){return{type:u,payload:e}}function v(e){return{type:s,payload:e}}function m(e){return{type:c,payload:e}}function y(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{type:l,payload:e}}function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!0};return{type:f,payload:e}}},function(e,t,n){var r=n(98);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,t,n){var r=n(78),o=r.Buffer;function i(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return o(e,t,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=r:(i(r,t),t.Buffer=a),i(o,a),a.from=function(e,t,n){if("number"==typeof e)throw new TypeError("Argument must not be a number");return o(e,t,n)},a.alloc=function(e,t,n){if("number"!=typeof e)throw new TypeError("Argument must be a number");var r=o(e);return void 0!==t?"string"==typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},function(e,t,n){var r=n(38),o=n(353),i=n(221),a=Object.defineProperty;t.f=n(50)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(77)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(e,t,n){var r=n(374),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,n){"use strict";e.exports={debugTool:null}},function(e,t,n){e.exports=n(568)},function(e,t,n){e.exports=n(762)},function(e,t,n){e.exports=n(764)},function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_SELECTED_SERVER",(function(){return r})),n.d(t,"UPDATE_REQUEST_BODY_VALUE",(function(){return o})),n.d(t,"UPDATE_REQUEST_BODY_INCLUSION",(function(){return i})),n.d(t,"UPDATE_ACTIVE_EXAMPLES_MEMBER",(function(){return a})),n.d(t,"UPDATE_REQUEST_CONTENT_TYPE",(function(){return u})),n.d(t,"UPDATE_RESPONSE_CONTENT_TYPE",(function(){return s})),n.d(t,"UPDATE_SERVER_VARIABLE_VALUE",(function(){return c})),n.d(t,"setSelectedServer",(function(){return l})),n.d(t,"setRequestBodyValue",(function(){return f})),n.d(t,"setRequestBodyInclusion",(function(){return p})),n.d(t,"setActiveExamplesMember",(function(){return h})),n.d(t,"setRequestContentType",(function(){return d})),n.d(t,"setResponseContentType",(function(){return v})),n.d(t,"setServerVariableValue",(function(){return m}));var r="oas3_set_servers",o="oas3_set_request_body_value",i="oas3_set_request_body_inclusion",a="oas3_set_active_examples_member",u="oas3_set_request_content_type",s="oas3_set_response_content_type",c="oas3_set_server_variable_value";function l(e,t){return{type:r,payload:{selectedServerUrl:e,namespace:t}}}function f(e){var t=e.value,n=e.pathMethod;return{type:o,payload:{value:t,pathMethod:n}}}function p(e){var t=e.value,n=e.pathMethod,r=e.name;return{type:i,payload:{value:t,pathMethod:n,name:r}}}function h(e){var t=e.name,n=e.pathMethod,r=e.contextType,o=e.contextName;return{type:a,payload:{name:t,pathMethod:n,contextType:r,contextName:o}}}function d(e){var t=e.value,n=e.pathMethod;return{type:u,payload:{value:t,pathMethod:n}}}function v(e){var t=e.value,n=e.path,r=e.method;return{type:s,payload:{value:t,path:n,method:r}}}function m(e){var t=e.server,n=e.namespace,r=e.key,o=e.val;return{type:c,payload:{server:t,namespace:n,key:r,val:o}}}},function(e,t,n){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=58)}([function(e,t){e.exports=n(17)},function(e,t){e.exports=n(15)},function(e,t){e.exports=n(28)},function(e,t){e.exports=n(18)},function(e,t){e.exports=n(129)},function(e,t){e.exports=n(62)},function(e,t){e.exports=n(55)},function(e,t){e.exports=n(56)},function(e,t){e.exports=n(3)},function(e,t,n){"use strict";(function(e){n.d(t,"a",(function(){return U})),n.d(t,"e",(function(){return W})),n.d(t,"d",(function(){return J})),n.d(t,"c",(function(){return te})),n.d(t,"b",(function(){return ne}));var r=n(22),o=n.n(r),i=n(23),a=n.n(i),u=n(24),s=n.n(u),c=n(4),l=n.n(c),f=n(40),p=n.n(f),h=n(0),d=n.n(h),v=n(13),m=n.n(v),y=n(1),g=n.n(y),b=n(2),_=n.n(b),w=n(18),x=n.n(w),E=n(20),S=n.n(E),C=n(25),A=n.n(C),k=(n(65),n(34)),O=n.n(k),T=n(33),j=n.n(T),P=n(26),I=n.n(P),M=n(21),D=n.n(M),R=n(41),N=n(19);function L(e){if(void 0===s.a||null==e[a.a]){if(g()(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return F(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return S()(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return F(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,i,u=!0,c=!1;return{s:function(){r=o()(e)},n:function(){var e=r.next();return u=e.done,e},e:function(e){c=!0,i=e},f:function(){try{u||null==r.return||r.return()}finally{if(c)throw i}}}}function F(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==u[1]?u[1]:{},"object"===_()(t)&&(t=(n=t).url),n.headers=n.headers||{},B.mergeInQueryOrForm(n),n.headers&&d()(n.headers).forEach((function(e){var t=n.headers[e];"string"==typeof t&&(n.headers[e]=t.replace(/\n+/g," "))})),!n.requestInterceptor){e.next=12;break}return e.next=8,n.requestInterceptor(n);case 8:if(e.t0=e.sent,e.t0){e.next=11;break}e.t0=n;case 11:n=e.t0;case 12:return r=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(r)&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),e.prev=14,e.next=17,(n.userFetch||fetch)(n.url,n);case 17:return o=e.sent,e.next=20,B.serializeRes(o,t,n);case 20:if(o=e.sent,!n.responseInterceptor){e.next=28;break}return e.next=24,n.responseInterceptor(o);case 24:if(e.t1=e.sent,e.t1){e.next=27;break}e.t1=o;case 27:o=e.t1;case 28:e.next=38;break;case 30:if(e.prev=30,e.t2=e.catch(14),o){e.next=34;break}throw e.t2;case 34:throw(i=new Error(o.statusText)).statusCode=i.status=o.status,i.responseError=e.t2,i;case 38:if(o.ok){e.next=43;break}throw(a=new Error(o.statusText)).statusCode=a.status=o.status,a.response=o,a;case 43:return e.abrupt("return",o);case 44:case"end":return e.stop()}}),e,null,[[14,30]])})))).apply(this,arguments)}var q=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(e)};function V(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):j.a.safeLoad(e)}function W(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.loadSpec,o=void 0!==r&&r,i={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:J(e.headers)},a=i.headers["content-type"],u=o||q(a),s=u?e.text:e.blob||e.buffer;return s.call(e).then((function(e){if(i.text=e,i.data=e,u)try{var t=V(e,a);i.body=t,i.obj=t}catch(e){i.parseError=e}return i}))}function H(e){return e.includes(", ")?e.split(", "):e}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return D()(e.entries)?S()(e.entries()).reduce((function(e,t){var n=x()(t,2),r=n[0],o=n[1];return e[r]=H(o),e}),{}):{}}function Y(t,n){return n||"undefined"==typeof navigator||(n=navigator),n&&"ReactNative"===n.product?!(!t||"object"!==_()(t)||"string"!=typeof t.uri):"undefined"!=typeof File&&t instanceof File||("undefined"!=typeof Blob&&t instanceof Blob||(void 0!==e&&t instanceof e||null!==t&&"object"===_()(t)&&"function"==typeof t.pipe))}function K(e,t){return g()(e)&&e.some((function(e){return Y(e,t)}))}var $={form:",",spaceDelimited:"%20",pipeDelimited:"|"},G={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Z(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.collectionFormat,o=t.allowEmptyValue,i=t.serializationOption,a=t.encoding,u="object"!==_()(t)||g()(t)?t:t.value,s=n?function(e){return e.toString()}:function(e){return encodeURIComponent(e)},c=s(e);if(void 0===u&&o)return[[c,""]];if(Y(u)||K(u))return[[c,u]];if(i)return X(e,u,n,i);if(a){if([_()(a.style),_()(a.explode),_()(a.allowReserved)].some((function(e){return"undefined"!==e})))return X(e,u,n,I()(a,["style","explode","allowReserved"]));if(a.contentType){if("application/json"===a.contentType){var l="string"==typeof u?u:m()(u);return[[c,s(l)]]}return[[c,s(u.toString())]]}return"object"!==_()(u)?[[c,s(u)]]:g()(u)&&u.every((function(e){return"object"!==_()(e)}))?[[c,u.map(s).join(",")]]:[[c,s(m()(u))]]}return"object"!==_()(u)?[[c,s(u)]]:g()(u)?"multi"===r?[[c,u.map(s)]]:[[c,u.map(s).join(G[r||"csv"])]]:[[c,""]]}function X(e,t,n,r){var o=r.style||"form",i=void 0===r.explode?"form"===o:r.explode,a=!n&&(r&&r.allowReserved?"unsafe":"reserved"),u=function(e){return Object(N.b)(e,{escape:a})},s=n?function(e){return e}:function(e){return Object(N.b)(e,{escape:a})};return"object"!==_()(t)?[[s(e),u(t)]]:g()(t)?i?[[s(e),t.map(u)]]:[[s(e),t.map(u).join($[o])]]:"deepObject"===o?d()(t).map((function(n){return[s("".concat(e,"[").concat(n,"]")),u(t[n])]})):i?d()(t).map((function(e){return[s(e),u(t[e])]})):[[s(e),d()(t).map((function(e){return["".concat(s(e),",").concat(u(t[e]))]})).join(",")]]}function Q(e){return p()(e).reduce((function(e,t){var n,r=x()(t,2),o=L(Z(r[0],r[1],!0));try{for(o.s();!(n=o.n()).done;){var i=n.value,a=x()(i,2),u=a[0],s=a[1];if(g()(s)){var c,l=L(s);try{for(l.s();!(c=l.n()).done;){var f=c.value;e.append(u,f)}}catch(e){l.e(e)}finally{l.f()}}else e.append(u,s)}}catch(e){o.e(e)}finally{o.f()}return e}),new R.a)}function ee(e){var t=d()(e).reduce((function(t,n){var r,o=L(Z(n,e[n]));try{for(o.s();!(r=o.n()).done;){var i=r.value,a=x()(i,2),u=a[0],s=a[1];t[u]=s}}catch(e){o.e(e)}finally{o.f()}return t}),{});return O.a.stringify(t,{encode:!1,indices:!1})||""}function te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.url,n=void 0===t?"":t,r=e.query,o=e.form,i=function(){for(var e=arguments.length,t=new Array(e),n=0;n-1},h=function(e){return/^[a-z0-9\-._~]+$/i.test(e)};function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.escape,r=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&n?r?JSON.parse(e):Object(f.stringToCharArray)(e).map((function(e){return h(e)||p(e)&&"unsafe"===n?e:(l()(e)||[]).map((function(e){return"0".concat(e.toString(16).toUpperCase()).slice(-2)})).map((function(e){return"%".concat(e)})).join("")})).join(""):e}function v(e){var t=e.value;return s()(t)?function(e){var t=e.key,n=e.value,r=e.style,o=e.explode,i=e.escape,a=function(e){return d(e,{escape:i})};if("simple"===r)return n.map((function(e){return a(e)})).join(",");if("label"===r)return".".concat(n.map((function(e){return a(e)})).join("."));if("matrix"===r)return n.map((function(e){return a(e)})).reduce((function(e,n){return!e||o?"".concat(e||"",";").concat(t,"=").concat(n):"".concat(e,",").concat(n)}),"");if("form"===r){var u=o?"&".concat(t,"="):",";return n.map((function(e){return a(e)})).join(u)}if("spaceDelimited"===r){var s=o?"".concat(t,"="):"";return n.map((function(e){return a(e)})).join(" ".concat(s))}if("pipeDelimited"===r){var c=o?"".concat(t,"="):"";return n.map((function(e){return a(e)})).join("|".concat(c))}}(e):"object"===a()(t)?function(e){var t=e.key,n=e.value,r=e.style,i=e.explode,a=e.escape,u=function(e){return d(e,{escape:a})},s=o()(n);if("simple"===r)return s.reduce((function(e,t){var r=u(n[t]),o=i?"=":",",a=e?"".concat(e,","):"";return"".concat(a).concat(t).concat(o).concat(r)}),"");if("label"===r)return s.reduce((function(e,t){var r=u(n[t]),o=i?"=":".",a=e?"".concat(e,"."):".";return"".concat(a).concat(t).concat(o).concat(r)}),"");if("matrix"===r&&i)return s.reduce((function(e,t){var r=u(n[t]),o=e?"".concat(e,";"):";";return"".concat(o).concat(t,"=").concat(r)}),"");if("matrix"===r)return s.reduce((function(e,r){var o=u(n[r]),i=e?"".concat(e,","):";".concat(t,"=");return"".concat(i).concat(r,",").concat(o)}),"");if("form"===r)return s.reduce((function(e,t){var r=u(n[t]),o=e?"".concat(e).concat(i?"&":","):"",a=i?"=":",";return"".concat(o).concat(t).concat(a).concat(r)}),"")}(e):function(e){var t=e.key,n=e.value,r=e.style,o=e.escape,i=function(e){return d(e,{escape:o})};if("simple"===r)return i(n);if("label"===r)return".".concat(i(n));if("matrix"===r)return";".concat(t,"=").concat(i(n));if("form"===r)return i(n);if("deepObject"===r)return i(n)}(e)}},function(e,t){e.exports=n(123)},function(e,t){e.exports=n(124)},function(e,t){e.exports=n(122)},function(e,t){e.exports=n(120)},function(e,t){e.exports=n(121)},function(e,t){e.exports=n(195)},function(e,t){e.exports=n(935)},function(e,t){e.exports=n(6)},function(e,t){e.exports=n(7)},function(e,t){e.exports=n(938)},function(e,t){e.exports=n(942)},function(e,t){e.exports=n(943)},function(e,t){e.exports=n(1)},function(e,t){e.exports=n(153)},function(e,t){e.exports=n(945)},function(e,t){e.exports=n(4)},function(e,t){e.exports=n(424)},function(e,t){e.exports=n(948)},function(e,t){e.exports=n(949)},function(e,t){e.exports=n(52)},function(e,t){e.exports=n(950)},function(e,t,n){"use strict";var r=n(32),o=n.n(r),i=n(27),a=n.n(i),u=n(28),s=n.n(u),c=n(42),l=n.n(c),f=n(43),p=n.n(f),h=n(35),d=n.n(h),v=n(44),m=n.n(v),y=n(21),g=n.n(y),b=n(45),_=n.n(b);function w(){if("undefined"==typeof Reflect||!o.a)return!1;if(o.a.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(o()(Date,[],(function(){}))),!0}catch(e){return!1}}t.a=function(e){var t=function(e,t){return{name:e,value:t}};return g()(e.prototype.set)||g()(e.prototype.get)||g()(e.prototype.getAll)||g()(e.prototype.has)?e:function(e){m()(i,e);var n,r=(n=i,function(){var e,t=d()(n);if(w()){var r=d()(this).constructor;e=o()(t,arguments,r)}else e=t.apply(this,arguments);return p()(this,e)});function i(e){var t;return a()(this,i),(t=r.call(this,e))._entryList=[],t}return s()(i,[{key:"append",value:function(e,n,r){return this._entryList.push(t(e,n)),l()(d()(i.prototype),"append",this).call(this,e,n,r)}},{key:"set",value:function(e,n){var r=t(e,n);this._entryList=this._entryList.filter((function(t){return t.name!==e})),this._entryList.push(r)}},{key:"get",value:function(e){var t=this._entryList.find((function(t){return t.name===e}));return void 0===t?null:t}},{key:"getAll",value:function(e){return this._entryList.filter((function(t){return t.name===e})).map((function(e){return e.value}))}},{key:"has",value:function(e){return this._entryList.some((function(t){return t.name===e}))}}]),i}(e)}(_.a)},function(e,t){e.exports=n(954)},function(e,t){e.exports=n(9)},function(e,t){e.exports=n(8)},function(e,t){e.exports=n(959)},function(e,t){e.exports=n(960)},function(e,t){e.exports=n(961)},function(e,t){e.exports=n(276)},function(e,t){e.exports=n(962)},function(e,t){e.exports=n(152)},function(e,t){e.exports=n(963)},function(e,t){e.exports=n(971)},function(e,t){e.exports=n(972)},function(e,t){e.exports=n(42)},function(e,t){e.exports=n(269)},function(e,t){e.exports=n(40)},function(e,t){e.exports=n(973)},function(e,t,n){e.exports=n(67)},function(e,t){e.exports=n(974)},function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n(62),o=n(63),i=n(64);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,u=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;iu&&(n=u-s),i=n;i>=0;i--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(s=(31&c)<<6|63&i)>127&&(l=s);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(l=s)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},s.prototype.compare=function(e,t,n,r,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function R(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return i||R(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return i||R(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(61))},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){e.exports=n(358)},function(e,t){e.exports=n(359)},function(e,t){e.exports=n(229)},function(e,t){e.exports=n(975)},function(e,t){e.exports=n(976)},function(e,t,n){"use strict";n.r(t);var r={};n.r(r),n.d(r,"path",(function(){return an})),n.d(r,"query",(function(){return un})),n.d(r,"header",(function(){return cn})),n.d(r,"cookie",(function(){return ln}));var o=n(10),i=n.n(o),a=n(11),u=n.n(a),s=n(5),c=n.n(s),l=n(6),f=n.n(l),p=n(7),h=n.n(p),d=n(0),v=n.n(d),m=n(8),y=n.n(m),g=(n(59),n(16)),b=n.n(g),_=n(31),w=n.n(_),x=n(12),E=n.n(x),S=n(9),C=n(4),A=n.n(C),k=n(25),O=n.n(k),T=n(22),j=n.n(T),P=n(23),I=n.n(P),M=n(24),D=n.n(M),R=n(20),N=n.n(R),L=n(13),F=n.n(L),B=n(2),U=n.n(B),z=n(15),q=n.n(z),V=n(1),W=n.n(V),H=n(36),J=n.n(H),Y=n(3),K=n.n(Y),$=n(27),G=n.n($),Z=n(28),X=n.n(Z),Q=n(48),ee=n.n(Q),te=n(37),ne=n.n(te),re=n(14),oe=n.n(re),ie=n(29),ae=n.n(ie),ue=n(49),se=n.n(ue),ce=n(50),le=n.n(ce),fe={add:function(e,t){return{op:"add",path:e,value:t}},replace:he,remove:function(e,t){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce((function(e,t){return void 0!==t&&e?e[t]:e}),e)},applyPatch:function(e,t,n){if(n=n||{},"merge"===(t=K()({},t,{path:t.path&&pe(t.path)})).op){var r=Ae(e,t.path);K()(r,t.value),ae.a.applyPatch(e,[he(t.path,r)])}else if("mergeDeep"===t.op){var o=Ae(e,t.path);for(var i in t.value){var a=t.value[i],u=W()(a);if(u){var s=o[i]||[];o[i]=s.concat(a)}else if(_e(a)&&!u){var c=K()({},o[i]);for(var l in a){if(Object.prototype.hasOwnProperty.call(c,l)){c=se()(le()({},c),a);break}K()(c,y()({},l,a[l]))}o[i]=c}else o[i]=a}}else if("add"===t.op&&""===t.path&&_e(t.value)){var f=v()(t.value).reduce((function(e,n){return e.push({op:"add",path:"/".concat(pe(n)),value:t.value[n]}),e}),[]);ae.a.applyPatch(e,f)}else if("replace"===t.op&&""===t.path){var p=t.value;n.allowMetaPatches&&t.meta&&Se(t)&&(W()(t.value)||_e(t.value))&&(p=K()({},p,t.meta)),e=p}else if(ae.a.applyPatch(e,[t]),n.allowMetaPatches&&t.meta&&Se(t)&&(W()(t.value)||_e(t.value))){var h=Ae(e,t.path),d=K()({},h,t.meta);ae.a.applyPatch(e,[he(t.path,d)])}return e},parentPathMatch:function(e,t){if(!W()(t))return!1;for(var n=0,r=t.length;n0){var o=t(e,n[n.length-1],n);o&&(r=r.concat(o))}if(W()(e)){var i=e.map((function(e,r){return me(e,t,n.concat(r))}));i&&(r=r.concat(i))}else if(_e(e)){var a=v()(e).map((function(r){return me(e[r],t,n.concat(r))}));a&&(r=r.concat(a))}return r=ge(r)}function ye(e){return W()(e)?e:[e]}function ge(e){var t;return(t=[]).concat.apply(t,oe()(e.map((function(e){return W()(e)?ge(e):e}))))}function be(e){return e.filter((function(e){return void 0!==e}))}function _e(e){return e&&"object"===U()(e)}function we(e){return e&&"function"==typeof e}function xe(e){if(Ce(e)){var t=e.op;return"add"===t||"remove"===t||"replace"===t}return!1}function Ee(e){return xe(e)||Ce(e)&&"mutation"===e.type}function Se(e){return Ee(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Ce(e){return e&&"object"===U()(e)}function Ae(e,t){try{return ae.a.getValueByPointer(e,t)}catch(e){return console.error(e),{}}}var ke=n(51),Oe=n.n(ke),Te=n(52),je=n(33),Pe=n.n(je),Ie=n(38),Me=n.n(Ie);function De(e,t){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,n=new Array(e),r=0;r-1&&-1===Ue.indexOf(n)||ze.indexOf(r)>-1||qe.some((function(e){return r.indexOf(e)>-1}))}function We(e,t){var n=e.split("#"),r=Ne()(n,2),o=r[0],i=r[1],a=E.a.resolve(o||"",t||"");return i?"".concat(a,"#").concat(i):a}var He=new RegExp("^([a-z]+://|//)","i"),Je=De("JSONRefError",(function(e,t,n){this.originalError=n,K()(this,t||{})})),Ye={},Ke=new Oe.a,$e=[function(e){return"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7]},function(e){return"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6]}],Ge={key:"$ref",plugin:function(e,t,n,r){var o=r.getInstance(),i=n.slice(0,-1);if(!Ve(i)&&(a=i,!$e.some((function(e){return e(a)})))){var a,u=r.getContext(n).baseDoc;if("string"!=typeof e)return new Je("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:u,fullPath:n});var s,c,l,f=tt(e),p=f[0],h=f[1]||"";try{s=u||p?Qe(p,u):null}catch(t){return et(t,{pointer:h,$ref:e,basePath:s,fullPath:n})}if(function(e,t,n,r){var o=Ke.get(r);o||(o={},Ke.set(r,o));var i=function(e){if(0===e.length)return"";return"/".concat(e.map(ut).join("/"))}(n),a="".concat(t||"","#").concat(e),u=i.replace(/allOf\/\d+\/?/g,""),s=r.contextTree.get([]).baseDoc;if(t==s&&st(u,e))return!0;var c="";if(n.some((function(e){return c="".concat(c,"/").concat(ut(e)),o[c]&&o[c].some((function(e){return st(e,a)||st(a,e)}))})))return!0;o[u]=(o[u]||[]).concat(a)}(h,s,i,r)&&!o.useCircularStructures){var d=We(e,s);return e===d?null:fe.replace(n,d)}if(null==s?(l=it(h),void 0===(c=r.get(l))&&(c=new Je("Could not resolve reference: ".concat(e),{pointer:h,$ref:e,baseDoc:u,fullPath:n}))):c=null!=(c=nt(s,h)).__value?c.__value:c.catch((function(t){throw et(t,{pointer:h,$ref:e,baseDoc:u,fullPath:n})})),c instanceof Error)return[fe.remove(n),c];var m=We(e,s),y=fe.replace(i,c,{$$ref:m});if(s&&s!==u)return[y,fe.context(i,{baseDoc:s})];try{if(!function(e,t){var n=[e];return t.path.reduce((function(e,t){return n.push(e[t]),e[t]}),e),function e(t){return fe.isObject(t)&&(n.indexOf(t)>=0||v()(t).some((function(n){return e(t[n])})))}(t.value)}(r.state,y)||o.useCircularStructures)return y}catch(e){return null}}}},Ze=K()(Ge,{docCache:Ye,absoluteify:Qe,clearCache:function(e){void 0!==e?delete Ye[e]:v()(Ye).forEach((function(e){delete Ye[e]}))},JSONRefError:Je,wrapError:et,getDoc:rt,split:tt,extractFromDoc:nt,fetchJSON:function(e){return Object(Te.fetch)(e,{headers:{Accept:"application/json, application/yaml"},loadSpec:!0}).then((function(e){return e.text()})).then((function(e){return Pe.a.safeLoad(e)}))},extract:ot,jsonPointerToArray:it,unescapeJsonPointerToken:at}),Xe=Ze;function Qe(e,t){if(!He.test(e)){if(!t)throw new Je("Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '").concat(t,"'"));return E.a.resolve(t,e)}return e}function et(e,t){var n;return n=e&&e.response&&e.response.body?"".concat(e.response.body.code," ").concat(e.response.body.message):e.message,new Je("Could not resolve reference: ".concat(n),t,e)}function tt(e){return(e+"").split("#")}function nt(e,t){var n=Ye[e];if(n&&!fe.isPromise(n))try{var r=ot(t,n);return K()(q.a.resolve(r),{__value:r})}catch(e){return q.a.reject(e)}return rt(e).then((function(e){return ot(t,e)}))}function rt(e){var t=Ye[e];return t?fe.isPromise(t)?t:q.a.resolve(t):(Ye[e]=Ze.fetchJSON(e).then((function(t){return Ye[e]=t,t})),Ye[e])}function ot(e,t){var n=it(e);if(n.length<1)return t;var r=fe.getIn(t,n);if(void 0===r)throw new Je("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return r}function it(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a ".concat(U()(e)));return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(at)}function at(e){return"string"!=typeof e?e:Me.a.unescape(e.replace(/~1/g,"/").replace(/~0/g,"~"))}function ut(e){return Me.a.escape(e.replace(/~/g,"~0").replace(/\//g,"~1"))}function st(e,t){if(!(n=t)||"/"===n||"#"===n)return!0;var n,r=e.charAt(t.length),o=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==o}var ct={key:"allOf",plugin:function(e,t,n,r,o){if(!o.meta||!o.meta.$$ref){var i=n.slice(0,-1);if(!Ve(i)){if(!W()(e)){var a=new TypeError("allOf must be an array");return a.fullPath=n,a}var u=!1,s=o.value;i.forEach((function(e){s&&(s=s[e])})),delete(s=K()({},s)).allOf;var c=[];return c.push(r.replace(i,{})),e.forEach((function(e,t){if(!r.isObject(e)){if(u)return null;u=!0;var o=new TypeError("Elements in allOf must be objects");return o.fullPath=n,c.push(o)}c.push(r.mergeDeep(i,e));var a=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.specmap,o=n.getBaseUrlForNodePath,i=void 0===o?function(e){return r.getContext([].concat(oe()(t),oe()(e))).baseDoc}:o,a=n.targetKeys,u=void 0===a?["$ref","$$ref"]:a,s=[];return Fe()(e).forEach((function(){if(u.indexOf(this.key)>-1){var e=this.path,n=t.concat(this.path),o=We(this.node,i(e));s.push(r.replace(n,o))}})),s}(e,n.slice(0,-1),{getBaseUrlForNodePath:function(e){return r.getContext([].concat(oe()(n),[t],oe()(e))).baseDoc},specmap:r});c.push.apply(c,oe()(a))})),c.push(r.mergeDeep(i,s)),s.$$ref||c.push(r.remove([].concat(i,"$$ref"))),c}}}},lt={key:"parameters",plugin:function(e,t,n,r,o){if(W()(e)&&e.length){var i=K()([],e),a=n.slice(0,-1),u=K()({},fe.getIn(r.spec,a));return e.forEach((function(e,t){try{i[t].default=r.parameterMacro(u,e)}catch(e){var o=new Error(e);return o.fullPath=n,o}})),fe.replace(n,i)}return fe.replace(n,e)}},ft={key:"properties",plugin:function(e,t,n,r){var o=K()({},e);for(var i in e)try{o[i].default=r.modelPropertyMacro(o[i])}catch(e){var a=new Error(e);return a.fullPath=n,a}return fe.replace(n,o)}};function pt(e,t){var n=v()(e);if(h.a){var r=h()(e);t&&(r=r.filter((function(t){return f()(e,t).enumerable}))),n.push.apply(n,r)}return n}var ht=function(){function e(t){G()(this,e),this.root=dt(t||{})}return X()(e,[{key:"set",value:function(e,t){var n=this.getParent(e,!0);if(n){var r=e[e.length-1],o=n.children;o[r]?vt(o[r],t,n):o[r]=dt(t,n)}else vt(this.root,t,null)}},{key:"get",value:function(e){if((e=e||[]).length<1)return this.root.value;for(var t,n,r=this.root,o=0;o=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=j()(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function yt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1?n-1:0),o=1;o1?n-1:0),o=1;o0}))}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0)return q.a.race(this.promisedPatches.map((function(e){return e.value})))}},{key:"getPluginHistory",value:function(e){var t=this.getPluginName(e);return this.pluginHistory[t]||[]}},{key:"getPluginRunCount",value:function(e){return this.getPluginHistory(e).length}},{key:"getPluginHistoryTip",value:function(e){var t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}},{key:"getPluginMutationIndex",value:function(e){var t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}},{key:"getPluginName",value:function(e){return e.pluginName}},{key:"updatePluginHistory",value:function(e,t){var n=this.getPluginName(e);(this.pluginHistory[n]=this.pluginHistory[n]||[]).push(t)}},{key:"updatePatches",value:function(e,t){var n=this;fe.normalizeArray(e).forEach((function(e){if(e instanceof Error)n.errors.push(e);else try{if(!fe.isObject(e))return void n.debug("updatePatches","Got a non-object patch",e);if(n.showDebug&&n.allPatches.push(e),fe.isPromise(e.value))return n.promisedPatches.push(e),void n.promisedPatchThen(e);if(fe.isContextPatch(e))return void n.setContext(e.path,e.value);if(fe.isMutation(e))return void n.updateMutations(e)}catch(e){console.error(e),n.errors.push(e)}}))}},{key:"updateMutations",value:function(e){"object"===U()(e.value)&&!W()(e.value)&&this.allowMetaPatches&&(e.value=K()({},e.value));var t=fe.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}},{key:"removePromisedPatch",value:function(e){var t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}},{key:"promisedPatchThen",value:function(e){var t=this;return e.value=e.value.then((function(n){var r=K()({},e,{value:n});t.removePromisedPatch(e),t.updatePatches(r)})).catch((function(n){t.removePromisedPatch(e),t.updatePatches(n)}))}},{key:"getMutations",value:function(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(e){var t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getPatchesOfType",value:function(e,t){return e.filter(t)}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(e){return fe.getIn(this.state,e)}},{key:"_getContext",value:function(e){return this.contextTree.get(e)}},{key:"setContext",value:function(e,t){return this.contextTree.set(e,t)}},{key:"_hasRun",value:function(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}},{key:"_clone",value:function(e){return JSON.parse(F()(e))}},{key:"dispatch",value:function(){var e=this,t=this,n=this.nextPlugin();if(!n){var r=this.nextPromisedPatch();if(r)return r.then((function(){return e.dispatch()})).catch((function(){return e.dispatch()}));var o={spec:this.state,errors:this.errors};return this.showDebug&&(o.patches=this.allPatches),q.a.resolve(o)}if(t.pluginCount=t.pluginCount||{},t.pluginCount[n]=(t.pluginCount[n]||0)+1,t.pluginCount[n]>100)return q.a.resolve({spec:t.state,errors:t.errors.concat(new Error("We've reached a hard limit of ".concat(100," plugin runs")))});if(n!==this.currentPlugin&&this.promisedPatches.length){var i=this.promisedPatches.map((function(e){return e.value}));return q.a.all(i.map((function(e){return e.then(ne.a,ne.a)}))).then((function(){return e.dispatch()}))}return function(){t.currentPlugin=n;var e=t.getCurrentMutations(),r=t.mutations.length-1;try{if(n.isGenerator){var o,i=mt(n(e,t.getLib()));try{for(i.s();!(o=i.n()).done;){a(o.value)}}catch(e){i.e(e)}finally{i.f()}}else{a(n(e,t.getLib()))}}catch(e){console.error(e),a([K()(J()(e),{plugin:n})])}finally{t.updatePluginHistory(n,{mutationIndex:r})}return t.dispatch()}();function a(e){e&&(e=fe.fullyNormalizeArray(e),t.updatePatches(e,n))}}}]),e}();var bt={refs:Xe,allOf:ct,parameters:lt,properties:ft},_t=n(39),wt=n.n(_t);function xt(e){if(void 0===D.a||null==e[I.a]){if(W()(e)||(e=function(e,t){if(!e)return;if("string"==typeof e)return Et(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return N()(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Et(e,t)}(e))){var t=0,n=function(){};return{s:n,n:function(){return t>=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var r,o,i=!0,a=!1;return{s:function(){r=j()(e)},n:function(){var e=r.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==r.return||r.return()}finally{if(a)throw o}}}}function Et(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&void 0!==arguments[2]?arguments[2]:"",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=r.v2OperationIdCompatibilityMode;if(!e||"object"!==U()(e))return null;var i=(e.operationId||"").replace(/\s/g,"");return i.length?Ct(e.operationId):Ot(t,n,{v2OperationIdCompatibilityMode:o})}function Ot(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.v2OperationIdCompatibilityMode;if(r){var o="".concat(t.toLowerCase(),"_").concat(e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return(o=o||"".concat(e.substring(1),"_").concat(t)).replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return"".concat(St(t)).concat(Ct(e))}function Tt(e,t){return"".concat(St(t),"-").concat(e)}function jt(e,t){return e&&e.paths?function(e,t){return Pt(e,t,!0)||null}(e,(function(e){var n=e.pathName,r=e.method,o=e.operation;if(!o||"object"!==U()(o))return!1;var i=o.operationId;return[kt(o,n,r),Tt(n,r),i].some((function(e){return e&&e===t}))})):null}function Pt(e,t,n){if(!e||"object"!==U()(e)||!e.paths||"object"!==U()(e.paths))return null;var r=e.paths;for(var o in r)for(var i in r[o])if("PARAMETERS"!==i.toUpperCase()){var a=r[o][i];if(a&&"object"===U()(a)){var u={spec:e,pathName:o,method:i.toUpperCase(),operation:a},s=t(u);if(n&&s)return u}}}function It(e){var t=e.spec,n=t.paths,r={};if(!n||t.$$normalized)return e;for(var o in n){var i=n[o];if(wt()(i)){var a=i.parameters,u=function(e){var n=i[e];if(!wt()(n))return"continue";var u=kt(n,o,e);if(u){r[u]?r[u].push(n):r[u]=[n];var s=r[u];if(s.length>1)s.forEach((function(e,t){e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId="".concat(u).concat(t+1)}));else if(void 0!==n.operationId){var c=s[0];c.__originalOperationId=c.__originalOperationId||n.operationId,c.operationId=u}}if("parameters"!==e){var l=[],f={};for(var p in t)"produces"!==p&&"consumes"!==p&&"security"!==p||(f[p]=t[p],l.push(f));if(a&&(f.parameters=a,l.push(f)),l.length){var h,d=xt(l);try{for(d.s();!(h=d.n()).done;){var v=h.value;for(var m in v)if(n[m]){if("parameters"===m){var y,g=xt(v[m]);try{var b=function(){var e=y.value;n[m].some((function(t){return t.name&&t.name===e.name||t.$ref&&t.$ref===e.$ref||t.$$ref&&t.$$ref===e.$$ref||t===e}))||n[m].push(e)};for(g.s();!(y=g.n()).done;)b()}catch(e){g.e(e)}finally{g.f()}}}else n[m]=v[m]}}catch(e){d.e(e)}finally{d.f()}}}};for(var s in i)u(s)}}return t.$$normalized=!0,e}function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.requestInterceptor,r=t.responseInterceptor,o=e.withCredentials?"include":"same-origin";return function(t){return e({url:t,loadSpec:!0,requestInterceptor:n,responseInterceptor:r,headers:{Accept:"application/json, application/yaml"},credentials:o}).then((function(e){return e.body}))}}function Dt(e){var t=e.fetch,n=e.spec,r=e.url,o=e.mode,i=e.allowMetaPatches,a=void 0===i||i,u=e.pathDiscriminator,s=e.modelPropertyMacro,c=e.parameterMacro,l=e.requestInterceptor,f=e.responseInterceptor,p=e.skipNormalization,h=e.useCircularStructures,d=e.http,v=e.baseDoc;return v=v||r,d=t||d||S.a,n?m(n):Mt(d,{requestInterceptor:l,responseInterceptor:f})(v).then(m);function m(e){v&&(bt.refs.docCache[v]=e),bt.refs.fetchJSON=Mt(d,{requestInterceptor:l,responseInterceptor:f});var t,n=[bt.refs];return"function"==typeof c&&n.push(bt.parameters),"function"==typeof s&&n.push(bt.properties),"strict"!==o&&n.push(bt.allOf),(t={spec:e,context:{baseDoc:v},plugins:n,allowMetaPatches:a,pathDiscriminator:u,parameterMacro:c,modelPropertyMacro:s,useCircularStructures:h},new gt(t).dispatch()).then(p?function(){var e=O()(A.a.mark((function e(t){return A.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",t);case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}():It)}}var Rt=n(17),Nt=n.n(Rt);function Lt(e,t){var n=v()(e);if(h.a){var r=h()(e);t&&(r=r.filter((function(t){return f()(e,t).enumerable}))),n.push.apply(n,r)}return n}function Ft(e){for(var t=1;t2&&void 0!==v[2]?v[2]:{},o=r.returnEntireTree,i=r.baseDoc,a=r.requestInterceptor,u=r.responseInterceptor,s=r.parameterMacro,c=r.modelPropertyMacro,l=r.useCircularStructures,f={pathDiscriminator:n,baseDoc:i,requestInterceptor:a,responseInterceptor:u,parameterMacro:s,modelPropertyMacro:c,useCircularStructures:l},p=It({spec:t}),h=p.spec,e.next=6,Dt(Ft({},f,{spec:h,allowMetaPatches:!0,skipNormalization:!0}));case 6:return d=e.sent,!o&&W()(n)&&n.length&&(d.spec=Nt()(d.spec,n)||null),e.abrupt("return",d);case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ut=n(26),zt=n.n(Ut);function qt(e,t){var n=v()(e);if(h.a){var r=h()(e);t&&(r=r.filter((function(t){return f()(e,t).enumerable}))),n.push.apply(n,r)}return n}function Vt(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return function(t){var n=t.pathName,r=t.method,o=t.operationId;return function(t){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e.execute(Vt({spec:e.spec},zt()(e,"requestInterceptor","responseInterceptor","userFetch"),{pathName:n,method:r,parameters:t,operationId:o},i))}}}};var Jt=n(54),Yt=n.n(Jt),Kt=n(55),$t=n.n(Kt),Gt=n(56),Zt=n.n(Gt),Xt=n(30),Qt=n.n(Xt),en=n(57),tn=n.n(en),nn={body:function(e){var t=e.req,n=e.value;t.body=n},header:function(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{},void 0!==r&&(t.headers[n.name]=r)},query:function(e){var t=e.req,n=e.value,r=e.parameter;t.query=t.query||{},!1===n&&"boolean"===r.type&&(n="false");0===n&&["number","integer"].indexOf(r.type)>-1&&(n="0");if(n)t.query[r.name]={collectionFormat:r.collectionFormat,value:n};else if(r.allowEmptyValue&&void 0!==n){var o=r.name;t.query[o]=t.query[o]||{},t.query[o].allowEmptyValue=!0}},path:function(e){var t=e.req,n=e.value,r=e.parameter;t.url=t.url.split("{".concat(r.name,"}")).join(encodeURIComponent(n))},formData:function(e){var t=e.req,n=e.value,r=e.parameter;(n||r.allowEmptyValue)&&(t.form=t.form||{},t.form[r.name]={value:n,allowEmptyValue:r.allowEmptyValue,collectionFormat:r.collectionFormat})}};var rn=n(19);function on(e,t){return t.includes("application/json")?"string"==typeof e?e:F()(e):e.toString()}function an(e){var t=e.req,n=e.value,r=e.parameter,o=r.name,i=r.style,a=r.explode,u=r.content;if(u){var s=v()(u)[0];t.url=t.url.split("{".concat(o,"}")).join(Object(rn.b)(on(n,s),{escape:!0}))}else{var c=Object(rn.a)({key:r.name,value:n,style:i||"simple",explode:a||!1,escape:!0});t.url=t.url.split("{".concat(o,"}")).join(c)}}function un(e){var t=e.req,n=e.value,r=e.parameter;if(t.query=t.query||{},r.content){var o=v()(r.content)[0];t.query[r.name]=on(n,o)}else if(!1===n&&(n="false"),0===n&&(n="0"),n)t.query[r.name]={value:n,serializationOption:zt()(r,["style","explode","allowReserved"])};else if(r.allowEmptyValue&&void 0!==n){var i=r.name;t.query[i]=t.query[i]||{},t.query[i].allowEmptyValue=!0}}var sn=["accept","authorization","content-type"];function cn(e){var t=e.req,n=e.parameter,r=e.value;if(t.headers=t.headers||{},!(sn.indexOf(n.name.toLowerCase())>-1))if(n.content){var o=v()(n.content)[0];t.headers[n.name]=on(r,o)}else void 0!==r&&(t.headers[n.name]=Object(rn.a)({key:n.name,value:r,style:n.style||"simple",explode:void 0!==n.explode&&n.explode,escape:!1}))}function ln(e){var t=e.req,n=e.parameter,r=e.value;t.headers=t.headers||{};var o=U()(r);if(n.content){var i=v()(n.content)[0];t.headers.Cookie="".concat(n.name,"=").concat(on(r,i))}else if("undefined"!==o){var a="object"===o&&!W()(r)&&n.explode?"":"".concat(n.name,"=");t.headers.Cookie=a+Object(rn.a)({key:n.name,value:r,escape:!1,style:n.style||"form",explode:void 0!==n.explode&&n.explode})}}var fn=function(e,t){var n=e.operation,r=e.requestBody,o=e.securities,i=e.spec,a=e.attachContentTypeForEmptyPayload,u=e.requestContentType;t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,u=b()({},t),s=r.authorized,c=void 0===s?{}:s,l=i.security||a.security||[],f=c&&!!v()(c).length,p=Nt()(a,["components","securitySchemes"])||{};if(u.headers=u.headers||{},u.query=u.query||{},!v()(r).length||!f||!l||W()(i.security)&&!i.security.length)return t;return l.forEach((function(e,t){for(var n in e){var r=c[n],o=p[n];if(r){var i=r.value||r,a=o.type;if(r)if("apiKey"===a)"query"===o.in&&(u.query[o.name]=i),"header"===o.in&&(u.headers[o.name]=i),"cookie"===o.in&&(u.cookies[o.name]=i);else if("http"===a){if("basic"===o.scheme){var s=i.username||"",l=i.password||"",f=Qt()("".concat(s,":").concat(l));u.headers.Authorization="Basic ".concat(f)}"bearer"===o.scheme&&(u.headers.Authorization="Bearer ".concat(i))}else if("oauth2"===a){var h=r.token||{},d=h[o["x-tokenName"]||"access_token"],v=h.token_type;v&&"bearer"!==v.toLowerCase()||(v="Bearer"),u.headers.Authorization="".concat(v," ").concat(d)}}}})),u}({request:t,securities:o,operation:n,spec:i});var s=n.requestBody||{},c=v()(s.content||{}),l=u&&c.indexOf(u)>-1;if(r||a){if(u&&l)t.headers["Content-Type"]=u;else if(!u){var f=c[0];f&&(t.headers["Content-Type"]=f,u=f)}}else u&&l&&(t.headers["Content-Type"]=u);if(r)if(u){if(c.indexOf(u)>-1)if("application/x-www-form-urlencoded"===u||"multipart/form-data"===u)if("object"===U()(r)){var p=(s.content[u]||{}).encoding||{};t.form={},v()(r).forEach((function(e){t.form[e]={value:r[e],encoding:p[e]||{}}}))}else t.form=r;else t.body=r}else t.body=r;return t};var pn=function(e,t){var n=e.spec,r=e.operation,o=e.securities,i=e.requestContentType,a=e.attachContentTypeForEmptyPayload;if((t=function(e){var t=e.request,n=e.securities,r=void 0===n?{}:n,o=e.operation,i=void 0===o?{}:o,a=e.spec,u=b()({},t),s=r.authorized,c=void 0===s?{}:s,l=r.specSecurity,f=void 0===l?[]:l,p=i.security||f,h=c&&!!v()(c).length,d=a.securityDefinitions;if(u.headers=u.headers||{},u.query=u.query||{},!v()(r).length||!h||!p||W()(i.security)&&!i.security.length)return t;return p.forEach((function(e,t){for(var n in e){var r=c[n];if(r){var o=r.token,i=r.value||r,a=d[n],s=a.type,l=a["x-tokenName"]||"access_token",f=o&&o[l],p=o&&o.token_type;if(r)if("apiKey"===s){var h="query"===a.in?"query":"headers";u[h]=u[h]||{},u[h][a.name]=i}else if("basic"===s)if(i.header)u.headers.authorization=i.header;else{var v=i.username||"",m=i.password||"";i.base64=Qt()("".concat(v,":").concat(m)),u.headers.authorization="Basic ".concat(i.base64)}else"oauth2"===s&&f&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",u.headers.authorization="".concat(p," ").concat(f))}}})),u}({request:t,securities:o,operation:r,spec:n})).body||t.form||a)i?t.headers["Content-Type"]=i:W()(r.consumes)?t.headers["Content-Type"]=r.consumes[0]:W()(n.consumes)?t.headers["Content-Type"]=n.consumes[0]:r.parameters&&r.parameters.filter((function(e){return"file"===e.type})).length?t.headers["Content-Type"]="multipart/form-data":r.parameters&&r.parameters.filter((function(e){return"formData"===e.in})).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){var u=r.parameters&&r.parameters.filter((function(e){return"body"===e.in})).length>0,s=r.parameters&&r.parameters.filter((function(e){return"formData"===e.in})).length>0;(u||s)&&(t.headers["Content-Type"]=i)}return t};function hn(e,t){var n=v()(e);if(h.a){var r=h()(e);t&&(r=r.filter((function(t){return f()(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t1&&console.warn("Parameter '".concat(e.name,"' is ambiguous because the defined spec has more than one parameter with the name: '").concat(e.name,"' and the passed-in parameter values did not define an 'in' value.")),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error("Required parameter ".concat(e.name," is not provided"));if(m&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:y,parameter:e,value:n,operation:_,spec:t})}}));var A=dn({},e,{operation:_});if((y=m?fn(A,y):pn(A,y)).cookies&&v()(y.cookies).length){var k=v()(y.cookies).reduce((function(e,t){var n=y.cookies[t];return e+(e?"&":"")+tn.a.serialize(t,n)}),"");y.headers.Cookie=k}return y.cookies&&delete y.cookies,Object(S.c)(y),y}var bn=function(e){return e?e.replace(/\W/g,""):null};function _n(e){return At(e.spec)?function(e){var t=e.spec,n=e.pathName,r=e.method,o=e.server,i=e.contextUrl,a=e.serverVariables,u=void 0===a?{}:a,s=Nt()(t,["paths",n,(r||"").toLowerCase(),"servers"])||Nt()(t,["paths",n,"servers"])||Nt()(t,["servers"]),c="",l=null;if(o&&s&&s.length){var f=s.map((function(e){return e.url}));f.indexOf(o)>-1&&(c=o,l=s[f.indexOf(o)])}!c&&s&&s.length&&(c=s[0].url,l=s[0]);if(c.indexOf("{")>-1){(function(e){var t,n=[],r=/{([^}]+)}/g;for(;t=r.exec(e);)n.push(t[1]);return n})(c).forEach((function(e){if(l.variables&&l.variables[e]){var t=l.variables[e],n=u[e]||t.default,r=new RegExp("{".concat(e,"}"),"g");c=c.replace(r,n)}}))}return function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=E.a.parse(t),o=E.a.parse(n),i=bn(r.protocol)||bn(o.protocol)||"",a=r.host||o.host,u=r.pathname||"";e=i&&a?"".concat(i,"://").concat(a+u):u;return"/"===e[e.length-1]?e.slice(0,-1):e}(c,i)}(e):function(e){var t,n=e.spec,r=e.scheme,o=e.contextUrl,i=void 0===o?"":o,a=E.a.parse(i),u=W()(n.schemes)?n.schemes[0]:null,s=r||u||bn(a.protocol)||"http",c=n.host||a.host||"",l=n.basePath||"";t=s&&c?"".concat(s,"://").concat(c+l):l;return"/"===t[t.length-1]?t.slice(0,-1):t}(e)}function wn(e,t){var n=v()(e);if(h.a){var r=h()(e);t&&(r=r.filter((function(t){return f()(e,t).enumerable}))),n.push.apply(n,r)}return n}function xn(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?n.url=e:n=e,!(this instanceof xn))return new xn(n);b()(this,n);var r=this.resolve().then((function(){return t.disableInterfaces||b()(t,xn.makeApisTagOperation(t)),t}));return r.client=this,r}xn.http=S.a,xn.makeHttp=S.b.bind(null,xn.http),xn.resolve=Dt,xn.resolveSubtree=function(e,t){return Bt.apply(this,arguments)},xn.execute=function(e){var t=e.http,n=e.fetch,r=e.spec,o=e.operationId,i=e.pathName,a=e.method,u=e.parameters,s=e.securities,c=Yt()(e,["http","fetch","spec","operationId","pathName","method","parameters","securities"]),l=t||n||S.a;i&&a&&!o&&(o=Tt(i,a));var f=yn.buildRequest(dn({spec:r,operationId:o,parameters:u,securities:s,http:l},c));return f.body&&($t()(f.body)||Zt()(f.body))&&(f.body=F()(f.body)),l(f)},xn.serializeRes=S.e,xn.serializeHeaders=S.d,xn.clearCache=function(){bt.refs.clearCache()},xn.makeApisTagOperation=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Ht.makeExecute(e);return{apis:Ht.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},xn.buildRequest=gn,xn.helpers={opId:kt},xn.getBaseUrl=_n,xn.prototype={http:S.a,execute:function(e){return this.applyDefaults(),xn.execute(function(e){for(var t=1;t1)for(var n=1;n0&&"/"!==t[0]}));function oe(e,t,n){return t=t||[],te.apply(void 0,[e].concat(s()(t))).get("parameters",Object(f.List)()).reduce((function(e,t){var r=n&&"body"===t.get("in")?t.get("value_xml"):t.get("value");return e.set(Object(l.C)(t,{allowHashes:!1}),r)}),Object(f.fromJS)({}))}function ie(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(f.List.isList(e))return e.some((function(e){return f.Map.isMap(e)&&e.get("in")===t}))}function ae(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(f.List.isList(e))return e.some((function(e){return f.Map.isMap(e)&&e.get("type")===t}))}function ue(e,t){t=t||[];var n=x(e).getIn(["paths"].concat(s()(t)),Object(f.fromJS)({})),r=e.getIn(["meta","paths"].concat(s()(t)),Object(f.fromJS)({})),o=se(e,t),i=n.get("parameters")||new f.List,a=r.get("consumes_value")?r.get("consumes_value"):ae(i,"file")?"multipart/form-data":ae(i,"formData")?"application/x-www-form-urlencoded":void 0;return Object(f.fromJS)({requestContentType:a,responseContentType:o})}function se(e,t){t=t||[];var n=x(e).getIn(["paths"].concat(s()(t)),null);if(null!==n){var r=e.getIn(["meta","paths"].concat(s()(t),["produces_value"]),null),o=n.getIn(["produces",0],null);return r||o||"application/json"}}function ce(e,t){t=t||[];var n=x(e),r=n.getIn(["paths"].concat(s()(t)),null);if(null!==r){var o=t,i=a()(o,1)[0],u=r.get("produces",null),c=n.getIn(["paths",i,"produces"],null),l=n.getIn(["produces"],null);return u||c||l}}function le(e,t){t=t||[];var n=x(e),r=n.getIn(["paths"].concat(s()(t)),null);if(null!==r){var o=t,i=a()(o,1)[0],u=r.get("consumes",null),c=n.getIn(["paths",i,"consumes"],null),l=n.getIn(["consumes"],null);return u||c||l}}var fe=function(e,t,n){var r=e.get("url").match(/^([a-z][a-z0-9+\-.]*):/),i=o()(r)?r[1]:null;return e.getIn(["scheme",t,n])||e.getIn(["scheme","_defaultScheme"])||i||""},pe=function(e,t,n){return["http","https"].indexOf(fe(e,t,n))>-1},he=function(e,t){t=t||[];var n=e.getIn(["meta","paths"].concat(s()(t),["parameters"]),Object(f.fromJS)([])),r=!0;return n.forEach((function(e){var t=e.get("errors");t&&t.count()&&(r=!1)})),r};function de(e){return f.Map.isMap(e)?e:new f.Map}},function(e,t,n){"use strict";n.r(t),n.d(t,"SHOW_AUTH_POPUP",(function(){return d})),n.d(t,"AUTHORIZE",(function(){return v})),n.d(t,"LOGOUT",(function(){return m})),n.d(t,"PRE_AUTHORIZE_OAUTH2",(function(){return y})),n.d(t,"AUTHORIZE_OAUTH2",(function(){return g})),n.d(t,"VALIDATE",(function(){return b})),n.d(t,"CONFIGURE_AUTH",(function(){return _})),n.d(t,"showDefinitions",(function(){return w})),n.d(t,"authorize",(function(){return x})),n.d(t,"logout",(function(){return E})),n.d(t,"preAuthorizeImplicit",(function(){return S})),n.d(t,"authorizeOauth2",(function(){return C})),n.d(t,"authorizePassword",(function(){return A})),n.d(t,"authorizeApplication",(function(){return k})),n.d(t,"authorizeAccessCodeWithFormParams",(function(){return O})),n.d(t,"authorizeAccessCodeWithBasicAuthentication",(function(){return T})),n.d(t,"authorizeRequest",(function(){return j})),n.d(t,"configureAuth",(function(){return P}));var r=n(28),o=n.n(r),i=n(18),a=n.n(i),u=n(30),s=n.n(u),c=n(95),l=n.n(c),f=n(19),p=n.n(f),h=n(5),d="show_popup",v="authorize",m="logout",y="pre_authorize_oauth2",g="authorize_oauth2",b="validate",_="configure_auth";function w(e){return{type:d,payload:e}}function x(e){return{type:v,payload:e}}function E(e){return{type:m,payload:e}}var S=function(e){return function(t){var n=t.authActions,r=t.errActions,o=e.auth,i=e.token,a=e.isValid,u=o.schema,c=o.name,l=u.get("flow");delete p.a.swaggerUIRedirectOauth2,"accessCode"===l||a||r.newAuthErr({authId:c,source:"auth",level:"warning",message:"Authorization may be unsafe, passed state was changed in server Passed state wasn't returned from auth server"}),i.error?r.newAuthErr({authId:c,source:"auth",level:"error",message:s()(i)}):n.authorizeOauth2({auth:o,token:i})}};function C(e){return{type:g,payload:e}}var A=function(e){return function(t){var n=t.authActions,r=e.schema,o=e.name,i=e.username,u=e.password,s=e.passwordType,c=e.clientId,l=e.clientSecret,f={grant_type:"password",scope:e.scopes.join(" "),username:i,password:u},p={};switch(s){case"request-body":!function(e,t,n){t&&a()(e,{client_id:t});n&&a()(e,{client_secret:n})}(f,c,l);break;case"basic":p.Authorization="Basic "+Object(h.a)(c+":"+l);break;default:console.warn("Warning: invalid passwordType ".concat(s," was passed, not including client id and secret"))}return n.authorizeRequest({body:Object(h.b)(f),url:r.get("tokenUrl"),name:o,headers:p,query:{},auth:e})}};var k=function(e){return function(t){var n=t.authActions,r=e.schema,o=e.scopes,i=e.name,a=e.clientId,u=e.clientSecret,s={Authorization:"Basic "+Object(h.a)(a+":"+u)},c={grant_type:"client_credentials",scope:o.join(" ")};return n.authorizeRequest({body:Object(h.b)(c),name:i,url:r.get("tokenUrl"),auth:e,headers:s})}},O=function(e){var t=e.auth,n=e.redirectUrl;return function(e){var r=e.authActions,o=t.schema,i=t.name,a=t.clientId,u=t.clientSecret,s=t.codeVerifier,c={grant_type:"authorization_code",code:t.code,client_id:a,client_secret:u,redirect_uri:n,code_verifier:s};return r.authorizeRequest({body:Object(h.b)(c),name:i,url:o.get("tokenUrl"),auth:t})}},T=function(e){var t=e.auth,n=e.redirectUrl;return function(e){var r=e.authActions,o=t.schema,i=t.name,a=t.clientId,u=t.clientSecret,s={Authorization:"Basic "+Object(h.a)(a+":"+u)},c={grant_type:"authorization_code",code:t.code,client_id:a,redirect_uri:n};return r.authorizeRequest({body:Object(h.b)(c),name:i,url:o.get("tokenUrl"),auth:t,headers:s})}},j=function(e){return function(t){var n,r=t.fn,i=t.getConfigs,u=t.authActions,c=t.errActions,f=t.oas3Selectors,p=t.specSelectors,h=t.authSelectors,d=e.body,v=e.query,m=void 0===v?{}:v,y=e.headers,g=void 0===y?{}:y,b=e.name,_=e.url,w=e.auth,x=(h.getConfigs()||{}).additionalQueryStringParams;n=p.isOAS3()?l()(_,f.selectedServer(),!0):l()(_,p.url(),!0),"object"===o()(x)&&(n.query=a()({},n.query,x));var E=n.toString(),S=a()({Accept:"application/json, text/plain, */*","Content-Type":"application/x-www-form-urlencoded","X-Requested-With":"XMLHttpRequest"},g);r.fetch({url:E,method:"post",headers:S,query:m,body:d,requestInterceptor:i().requestInterceptor,responseInterceptor:i().responseInterceptor}).then((function(e){var t=JSON.parse(e.data),n=t&&(t.error||""),r=t&&(t.parseError||"");e.ok?n||r?c.newAuthErr({authId:b,level:"error",source:"auth",message:s()(t)}):u.authorizeOauth2({auth:w,token:t}):c.newAuthErr({authId:b,level:"error",source:"auth",message:e.statusText})})).catch((function(e){var t=new Error(e).message;if(e.response&&e.response.data){var n=e.response.data;try{var r="string"==typeof n?JSON.parse(n):n;r.error&&(t+=", error: ".concat(r.error)),r.error_description&&(t+=", description: ".concat(r.error_description))}catch(e){}}c.newAuthErr({authId:b,level:"error",source:"auth",message:t})}))}};function P(e){return{type:_,payload:e}}},function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},function(e,t,n){var r=n(133),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(49),o=n(137);e.exports=n(50)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){"use strict";(function(e){ +/*! + * The buffer module from node.js, for the browser. + * + * @author Feross Aboukhadijeh + * @license MIT + */ +var r=n(358),o=n(359),i=n(229);function a(){return s.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,t){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function d(e,t){if(s.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return z(e).length;default:if(r)return U(e).length;t=(""+t).toLowerCase(),r=!0}}function v(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return T(this,t,n);case"utf8":case"utf-8":return A(this,t,n);case"ascii":return k(this,t,n);case"latin1":case"binary":return O(this,t,n);case"base64":return C(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return j(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function m(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function y(e,t,n,r,o){if(0===e.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof t&&(t=s.from(t,r)),s.isBuffer(t))return 0===t.length?-1:g(e,t,n,r,o);if("number"==typeof t)return t&=255,s.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):g(e,[t],n,r,o);throw new TypeError("val must be string, number or Buffer")}function g(e,t,n,r,o){var i,a=1,u=e.length,s=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,u/=2,s/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=n;iu&&(n=u-s),i=n;i>=0;i--){for(var f=!0,p=0;po&&(r=o):r=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;a>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function C(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function A(e,t,n){n=Math.min(e.length,n);for(var r=[],o=t;o239?4:c>223?3:c>191?2:1;if(o+f<=n)switch(f){case 1:c<128&&(l=c);break;case 2:128==(192&(i=e[o+1]))&&(s=(31&c)<<6|63&i)>127&&(l=s);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(s=(15&c)<<12|(63&i)<<6|63&a)>2047&&(s<55296||s>57343)&&(l=s);break;case 4:i=e[o+1],a=e[o+2],u=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&u)&&(s=(15&c)<<18|(63&i)<<12|(63&a)<<6|63&u)>65535&&s<1114112&&(l=s)}null===l?(l=65533,f=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),o+=f}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},s.prototype.compare=function(e,t,n,r,o){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError("out of range index");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),u=Math.min(i,a),c=this.slice(r,o),l=e.slice(t,n),f=0;fo)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var i=!1;;)switch(r){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return w(this,e,t,n);case"latin1":case"binary":return x(this,e,t,n);case"base64":return E(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(i)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),i=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function k(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;or)&&(n=r);for(var o="",i=t;in)throw new RangeError("Trying to access beyond buffer length")}function I(e,t,n,r,o,i){if(!s.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||te.length)throw new RangeError("Index out of range")}function M(e,t,n,r){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-n,2);o>>8*(r?o:1-o)}function D(e,t,n,r){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-n,4);o>>8*(r?o:3-o)&255}function R(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function N(e,t,n,r,i){return i||R(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function L(e,t,n,r,i){return i||R(e,0,n,8),o.write(e,t,n,r,52,8),n+8}s.prototype.slice=function(e,t){var n,r=this.length;if((e=~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),(t=void 0===t?r:~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),t0&&(o*=256);)r+=this[e+--t]*o;return r},s.prototype.readUInt8=function(e,t){return t||P(e,1,this.length),this[e]},s.prototype.readUInt16LE=function(e,t){return t||P(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUInt16BE=function(e,t){return t||P(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUInt32LE=function(e,t){return t||P(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},s.prototype.readUInt32BE=function(e,t){return t||P(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=this[e],o=1,i=0;++i=(o*=128)&&(r-=Math.pow(2,8*t)),r},s.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||P(e,t,this.length);for(var r=t,o=1,i=this[e+--r];r>0&&(o*=256);)i+=this[e+--r]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},s.prototype.readInt8=function(e,t){return t||P(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},s.prototype.readInt16LE=function(e,t){t||P(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt16BE=function(e,t){t||P(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},s.prototype.readInt32LE=function(e,t){return t||P(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,t){return t||P(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readFloatLE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,t){return t||P(e,4,this.length),o.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,t){return t||P(e,8,this.length),o.read(this,e,!1,52,8)},s.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t|=0,n|=0,r)||I(this,e,t,n,Math.pow(2,8*n)-1,0);var o=1,i=0;for(this[t]=255&e;++i=0&&(i*=256);)this[t+o]=e/i&255;return t+n},s.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,255,0),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},s.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,65535,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):D(this,e,t,!0),t+4},s.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,4294967295,0),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=0,a=1,u=0;for(this[t]=255&e;++i>0)-u&255;return t+n},s.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var o=Math.pow(2,8*n-1);I(this,e,t,n,o-1,-o)}var i=n-1,a=1,u=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===u&&0!==this[t+i+1]&&(u=1),this[t+i]=(e/a>>0)-u&255;return t+n},s.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,1,127,-128),s.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},s.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):M(this,e,t,!0),t+2},s.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,2,32767,-32768),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):M(this,e,t,!1),t+2},s.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),s.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):D(this,e,t,!0),t+4},s.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||I(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),s.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):D(this,e,t,!1),t+4},s.prototype.writeFloatLE=function(e,t,n){return N(this,e,t,!0,n)},s.prototype.writeFloatBE=function(e,t,n){return N(this,e,t,!1,n)},s.prototype.writeDoubleLE=function(e,t,n){return L(this,e,t,!0,n)},s.prototype.writeDoubleBE=function(e,t,n){return L(this,e,t,!1,n)},s.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--o)e[o+t]=this[o+n];else if(i<1e3||!s.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(i=t;i55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(e){return r.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(F,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function q(e,t,n,r){for(var o=0;o=t.length||o>=e.length);++o)t[o+n]=e[o];return o}}).call(this,n(39))},function(e,t,n){"use strict";e.exports=function(e){if("function"!=typeof e)throw new TypeError(e+" is not a function");return e}},function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_LAYOUT",(function(){return o})),n.d(t,"UPDATE_FILTER",(function(){return i})),n.d(t,"UPDATE_MODE",(function(){return a})),n.d(t,"SHOW",(function(){return u})),n.d(t,"updateLayout",(function(){return s})),n.d(t,"updateFilter",(function(){return c})),n.d(t,"show",(function(){return l})),n.d(t,"changeMode",(function(){return f}));var r=n(5),o="layout_update_layout",i="layout_update_filter",a="layout_update_mode",u="layout_show";function s(e){return{type:o,payload:e}}function c(e){return{type:i,payload:e}}function l(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e=Object(r.x)(e),{type:u,payload:{thing:e,shown:t}}}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return e=Object(r.x)(e),{type:a,payload:{thing:e,mode:t}}}},function(e,t,n){"use strict";(function(t){ +/*! + * @description Recursive object extending + * @author Viacheslav Lotsmanov + * @license MIT + * + * The MIT License (MIT) + * + * Copyright (c) 2013-2018 Viacheslav Lotsmanov + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of + * this software and associated documentation files (the "Software"), to deal in + * the Software without restriction, including without limitation the rights to + * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of + * the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all + * copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS + * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR + * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + */ +function n(e){return e instanceof t||e instanceof Date||e instanceof RegExp}function r(e){if(e instanceof t){var n=t.alloc?t.alloc(e.length):new t(e.length);return e.copy(n),n}if(e instanceof Date)return new Date(e.getTime());if(e instanceof RegExp)return new RegExp(e);throw new Error("Unexpected situation")}function o(e){var t=[];return e.forEach((function(e,i){"object"==typeof e&&null!==e?Array.isArray(e)?t[i]=o(e):n(e)?t[i]=r(e):t[i]=a({},e):t[i]=e})),t}function i(e,t){return"__proto__"===t?void 0:e[t]}var a=e.exports=function(){if(arguments.length<1||"object"!=typeof arguments[0])return!1;if(arguments.length<2)return arguments[0];var e,t,u=arguments[0],s=Array.prototype.slice.call(arguments,1);return s.forEach((function(s){"object"!=typeof s||null===s||Array.isArray(s)||Object.keys(s).forEach((function(c){return t=i(u,c),(e=i(s,c))===u?void 0:"object"!=typeof e||null===e?void(u[c]=e):Array.isArray(e)?void(u[c]=o(e)):n(e)?void(u[c]=r(e)):"object"!=typeof t||null===t||Array.isArray(t)?void(u[c]=a({},e)):void(u[c]=a(t,e))}))})),u}}).call(this,n(78).Buffer)},function(e,t,n){var r=n(158),o=n(340);e.exports=n(132)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){var r=n(107),o=n(600),i=n(601),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},function(e,t,n){var r=n(618),o=n(621);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t,n){var r=n(387),o=n(658),i=n(108);e.exports=function(e){return i(e)?r(e):o(e)}},function(e,t,n){"use strict";var r=n(182),o=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=f;var i=n(144);i.inherits=n(47);var a=n(397),u=n(245);i.inherits(f,a);for(var s=o(u.prototype),c=0;c=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})}))},function(e,t){e.exports={}},function(e,t,n){n(559);for(var r=n(32),o=n(76),i=n(103),a=n(36)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),s=0;s1){for(var d=Array(h),v=0;v1){for(var y=Array(m),g=0;g=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var r=(4294967295&n)>>>0,o=(n-r)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var i=this._hash();return e?i.toString(e):i},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},e.exports=o},function(e,t,n){var r=n(65),o=n(369),i=n(370),a=n(38),u=n(165),s=n(230),c={},l={};(t=e.exports=function(e,t,n,f,p){var h,d,v,m,y=p?function(){return e}:s(e),g=r(n,f,t?2:1),b=0;if("function"!=typeof y)throw TypeError(e+" is not iterable!");if(i(y)){for(h=u(e.length);h>b;b++)if((m=t?g(a(d=e[b])[0],d[1]):g(e[b]))===c||m===l)return m}else for(v=y.call(e);!(d=v.next()).done;)if((m=o(v,g,d.value,t))===c||m===l)return m}).BREAK=c,t.RETURN=l},function(e,t,n){"use strict";function r(e){return null==e}e.exports.isNothing=r,e.exports.isObject=function(e){return"object"==typeof e&&null!==e},e.exports.toArray=function(e){return Array.isArray(e)?e:r(e)?[]:[e]},e.exports.repeat=function(e,t){var n,r="";for(n=0;n1&&void 0!==arguments[1]?arguments[1]:{},r=Object(i.B)(t),a=r.type,u=r.example,s=r.properties,c=r.additionalProperties,l=r.items,f=n.includeReadOnly,p=n.includeWriteOnly;if(void 0!==u)return Object(i.e)(u,"$$ref",(function(e){return"string"==typeof e&&e.indexOf("#")>-1}));if(!a)if(s)a="object";else{if(!l)return;a="array"}if("object"===a){var d=Object(i.B)(s),v={};for(var m in d)d[m]&&d[m].deprecated||d[m]&&d[m].readOnly&&!f||d[m]&&d[m].writeOnly&&!p||(v[m]=e(d[m],n));if(!0===c)v.additionalProp1={};else if(c)for(var y=Object(i.B)(c),g=e(y,n),b=1;b<4;b++)v["additionalProp"+b]=g;return v}return"array"===a?o()(l.anyOf)?l.anyOf.map((function(t){return e(t,n)})):o()(l.oneOf)?l.oneOf.map((function(t){return e(t,n)})):[e(l,n)]:t.enum?t.default?t.default:Object(i.x)(t.enum)[0]:"file"!==a?h(t):void 0},v=function(e){return e.schema&&(e=e.schema),e.properties&&(e.type="object"),e},m=function e(t){var n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},u=f()({},Object(i.B)(t)),s=u.type,c=u.properties,l=u.additionalProperties,p=u.items,d=u.example,v=a.includeReadOnly,m=a.includeWriteOnly,y=u.default,g={},b={},_=t.xml,w=_.name,x=_.prefix,E=_.namespace,S=u.enum;if(!s)if(c||l)s="object";else{if(!p)return;s="array"}if(n=(x?x+":":"")+(w=w||"notagname"),E){var C=x?"xmlns:"+x:"xmlns";b[C]=E}if("array"===s&&p){if(p.xml=p.xml||_||{},p.xml.name=p.xml.name||_.name,_.wrapped)return g[n]=[],o()(d)?d.forEach((function(t){p.example=t,g[n].push(e(p,a))})):o()(y)?y.forEach((function(t){p.default=t,g[n].push(e(p,a))})):g[n]=[e(p,a)],b&&g[n].push({_attr:b}),g;var A=[];return o()(d)?(d.forEach((function(t){p.example=t,A.push(e(p,a))})),A):o()(y)?(y.forEach((function(t){p.default=t,A.push(e(p,a))})),A):e(p,a)}if("object"===s){var k=Object(i.B)(c);for(var O in g[n]=[],d=d||{},k)if(k.hasOwnProperty(O)&&(!k[O].readOnly||v)&&(!k[O].writeOnly||m))if(k[O].xml=k[O].xml||{},k[O].xml.attribute){var T=o()(k[O].enum)&&k[O].enum[0],j=k[O].example,P=k[O].default;b[k[O].xml.name||O]=void 0!==j&&j||void 0!==d[O]&&d[O]||void 0!==P&&P||T||h(k[O])}else{k[O].xml.name=k[O].xml.name||O,void 0===k[O].example&&void 0!==d[O]&&(k[O].example=d[O]);var I=e(k[O]);o()(I)?g[n]=g[n].concat(I):g[n].push(I)}return!0===l?g[n].push({additionalProp:"Anything can be here"}):l&&g[n].push({additionalProp:h(l)}),b&&g[n].push({_attr:b}),g}return r=void 0!==d?d:void 0!==y?y:o()(S)?S[0]:h(t),g[n]=b?[{_attr:b},r]:r,g};function y(e,t){var n=m(e,t);if(n)return u()(n,{declaration:!0,indent:"\t"})}var g=c()(y),b=c()(d)},function(e,t,n){"use strict";n.r(t),n.d(t,"UPDATE_CONFIGS",(function(){return i})),n.d(t,"TOGGLE_CONFIGS",(function(){return a})),n.d(t,"update",(function(){return u})),n.d(t,"toggle",(function(){return s})),n.d(t,"loaded",(function(){return c}));var r=n(3),o=n.n(r),i="configs_update",a="configs_toggle";function u(e,t){return{type:i,payload:o()({},e,t)}}function s(e){return{type:a,payload:e}}var c=function(){return function(){}}},function(e,t,n){"use strict";n.d(t,"a",(function(){return a}));var r=n(2),o=n.n(r),i=o.a.Set.of("type","format","items","default","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","maxItems","minItems","uniqueItems","enum","multipleOf");function a(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isOAS3;if(!o.a.Map.isMap(e))return{schema:o.a.Map(),parameterContentMediaType:null};if(!n)return"body"===e.get("in")?{schema:e.get("schema",o.a.Map()),parameterContentMediaType:null}:{schema:e.filter((function(e,t){return i.includes(t)})),parameterContentMediaType:null};if(e.get("content")){var r=e.get("content",o.a.Map({})).keySeq(),a=r.first();return{schema:e.getIn(["content",a,"schema"],o.a.Map()),parameterContentMediaType:a}}return{schema:e.get("schema",o.a.Map()),parameterContentMediaType:null}}},function(e,t,n){e.exports=n(774)},function(e,t,n){"use strict";n.r(t),n.d(t,"createStore",(function(){return C})),n.d(t,"combineReducers",(function(){return k})),n.d(t,"bindActionCreators",(function(){return T})),n.d(t,"applyMiddleware",(function(){return I})),n.d(t,"compose",(function(){return j}));var r=n(468),o="object"==typeof self&&self&&self.Object===Object&&self,i=(r.a||o||Function("return this")()).Symbol,a=Object.prototype,u=a.hasOwnProperty,s=a.toString,c=i?i.toStringTag:void 0;var l=function(e){var t=u.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=s.call(e);return r&&(t?e[c]=n:delete e[c]),o},f=Object.prototype.toString;var p=function(e){return f.call(e)},h=i?i.toStringTag:void 0;var d=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":h&&h in Object(e)?l(e):p(e)};var v=function(e,t){return function(n){return e(t(n))}}(Object.getPrototypeOf,Object);var m=function(e){return null!=e&&"object"==typeof e},y=Function.prototype,g=Object.prototype,b=y.toString,_=g.hasOwnProperty,w=b.call(Object);var x=function(e){if(!m(e)||"[object Object]"!=d(e))return!1;var t=v(e);if(null===t)return!0;var n=_.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&b.call(n)==w},E=n(333),S="@@redux/INIT";function C(e,t,n){var r;if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error("Expected the enhancer to be a function.");return n(C)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],u=a,s=!1;function c(){u===a&&(u=a.slice())}function l(){return i}function f(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return c(),u.push(e),function(){if(t){t=!1,c();var n=u.indexOf(e);u.splice(n,1)}}}function p(e){if(!x(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(s)throw new Error("Reducers may not dispatch actions.");try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=u,n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var r=!1,o={},u=0;u0?r:n)(e)}},function(e,t){e.exports={}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){e.exports=!0},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(38),o=n(354),i=n(218),a=n(216)("IE_PROTO"),u=function(){},s=function(){var e,t=n(220)("iframe"),r=i.length;for(t.style.display="none",n(355).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("