@kong-ui-public/entities-plugins 9.167.1-pr.2983.8dfd516fd.0 → 9.167.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4811,7 +4811,7 @@ const Lw = {
|
|
|
4811
4811
|
return e;
|
|
4812
4812
|
if (yn((a = (i = e.payload.config) == null ? void 0 : i.access_logs) == null ? void 0 : a.custom_attributes_by_lua, {})) {
|
|
4813
4813
|
const r = (o = e.payload.config) == null ? void 0 : o.access_logs;
|
|
4814
|
-
r &&
|
|
4814
|
+
r && (r.custom_attributes_by_lua = null);
|
|
4815
4815
|
}
|
|
4816
4816
|
return e;
|
|
4817
4817
|
}
|
|
@@ -10,7 +10,7 @@ will extend the wait time by about 12 minutes, continuously adjusting as new req
|
|
|
10
10
|
will be generated for you.`,inputType:"text",encrypted:!0}},{client_secret:{submitWhenNull:!1,hint:`You can optionally set your own unique client_secret. If missing,
|
|
11
11
|
it will be generated for you.`,inputType:"password",encrypted:!0}},{redirect_uris:$n.fields.arrayItems({label:"Redirect URI(s)",hint:`One or more URLs in your app where users will be sent after
|
|
12
12
|
authorization (RFC 6742 Section 3.1.2)`,newElementButtonLabel:"+ Add Redirect URI",inputAttributes:{placeholder:"Enter URI"}})},{tags:$n.tags}]},Ou={fields:[{id:{uuid:!0,auto:!0,type:"string",description:"A string representing a UUID (universally unique identifier)."}},{created_at:{description:"An integer representing an automatic Unix timestamp in seconds.",timestamp:!0,auto:!0,type:"integer"}},{consumer:{on_delete:"cascade",type:"foreign",reference:"consumers",required:!0}},{name:{required:!0,type:"string"}},{client_id:{required:!1,hint:"You can optionally set your own unique client_id. If missing, it will be generated for you.",unique:!0,auto:!0,type:"string"}},{client_secret:{required:!1,hint:"You can optionally set your own unique client_secret. If missing, it will be generated for you.",auto:!0,type:"string",encrypted:!0}},{hash_secret:{required:!0,type:"boolean",default:!1}},{redirect_uris:{required:!1,hint:"One or more URLs in your app where users will be sent after authorization (RFC 6742 Section 3.1.2)",type:"array",elements:{type:"string"}}},{tags:{elements:{required:!0,type:"string",description:"A string representing a tag."},type:"set",description:"A set of strings representing tags."}},{client_type:{required:!0,default:"confidential",type:"string",one_of:["confidential","public"]}}]},Bi={fields:[{key:{submitWhenNull:!1,hint:`You can optionally set your own unique key to authenticate the
|
|
13
|
-
client. If missing, it will be generated for you.`,inputType:"password",encrypted:!0}},{tags:mn},{ttl:{help:"Time-to-live (in seconds) value for data"}}]},Vu=t=>(t==null?void 0:t.app)==="kongManager"?{shamefullyTransformPayload:({payload:n})=>{(t!=null&&t.credential&&typeof n.ttl!="number"||Number.isNaN(n.ttl))&&(n.ttl=0)}}:{},Bu={fields:[{id:{type:"string",auto:!0,uuid:!0,description:"A string representing a UUID (universally unique identifier)."}},{created_at:{type:"integer",auto:!0,timestamp:!0,description:"An integer representing an automatic Unix timestamp in seconds."}},{consumer:{required:!0,on_delete:"cascade",reference:"consumers",type:"foreign"}},{key:{required:!1,unique:!0,auto:!0,encrypted:!0,type:"string"}},{tags:{type:"set",elements:{type:"string",required:!0,description:"A string representing a tag."},description:"A set of strings representing tags."}},{ttl:{between:[0,1e8],description:"Time-to-live (in seconds) value for data",type:"number"}}]},Nt={"basic-auth":{descriptionKey:"plugins.meta.basic-auth.description",nameKey:"plugins.meta.basic-auth.name",freeformRenderRules:{dependencies:{"config.brute_force_protection.redis":["config.brute_force_protection.strategy","redis"]}},...R.PLUGIN_GROUP_AND_SCOPE_MAP["basic-auth"]},"hmac-auth":{descriptionKey:"plugins.meta.hmac-auth.description",nameKey:"plugins.meta.hmac-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["hmac-auth"]},"jwt-signer":{descriptionKey:"plugins.meta.jwt-signer.description",nameKey:"plugins.meta.jwt-signer.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["jwt-signer"]},jwt:{descriptionKey:"plugins.meta.jwt.description",nameKey:"plugins.meta.jwt.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.jwt},"key-auth":{descriptionKey:"plugins.meta.key-auth.description",nameKey:"plugins.meta.key-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["key-auth"]},"key-auth-enc":{descriptionKey:"plugins.meta.key-auth-enc.description",nameKey:"plugins.meta.key-auth-enc.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["key-auth-enc"]},"ldap-auth-advanced":{descriptionKey:"plugins.meta.ldap-auth-advanced.description",nameKey:"plugins.meta.ldap-auth-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["ldap-auth-advanced"]},"ldap-auth":{descriptionKey:"plugins.meta.ldap-auth.description",nameKey:"plugins.meta.ldap-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["ldap-auth"]},"oauth2-introspection":{descriptionKey:"plugins.meta.oauth2-introspection.description",nameKey:"plugins.meta.oauth2-introspection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["oauth2-introspection"]},oauth2:{descriptionKey:"plugins.meta.oauth2.description",nameKey:"plugins.meta.oauth2.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.oauth2},"openid-connect":{descriptionKey:"plugins.meta.openid-connect.description",nameKey:"plugins.meta.openid-connect.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["openid-connect"]},"mtls-auth":{descriptionKey:"plugins.meta.mtls-auth.description",nameKey:"plugins.meta.mtls-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["mtls-auth"]},"vault-auth":{descriptionKey:"plugins.meta.vault-auth.description",nameKey:"plugins.meta.vault-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["vault-auth"]},"bot-detection":{descriptionKey:"plugins.meta.bot-detection.description",nameKey:"plugins.meta.bot-detection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["bot-detection"]},cors:{descriptionKey:"plugins.meta.cors.description",nameKey:"plugins.meta.cors.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.cors},"ip-restriction":{descriptionKey:"plugins.meta.ip-restriction.description",nameKey:"plugins.meta.ip-restriction.name",fieldRules:{atLeastOneOf:[["config.allow","config.deny"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["ip-restriction"]},opa:{descriptionKey:"plugins.meta.opa.description",nameKey:"plugins.meta.opa.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.opa},"kubernetes-sidecar-injector":{descriptionKey:"plugins.meta.kubernetes-sidecar-injector.description",nameKey:"plugins.meta.kubernetes-sidecar-injector.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["kubernetes-sidecar-injector"]},"request-validator":{descriptionKey:"plugins.meta.request-validator.description",nameKey:"plugins.meta.request-validator.name",fieldRules:{atLeastOneOf:[["config.body_schema","config.parameter_schema"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-validator"]},acl:{descriptionKey:"plugins.meta.acl.description",nameKey:"plugins.meta.acl.name",fieldRules:{onlyOneOf:[["config.allow","config.deny"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.acl},canary:{descriptionKey:"plugins.meta.canary.description",nameKey:"plugins.meta.canary.name",fieldRules:{atLeastOneOf:[["config.upstream_uri","config.upstream_host","config.upstream_port"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.canary},"forward-proxy":{descriptionKey:"plugins.meta.forward-proxy.description",nameKey:"plugins.meta.forward-proxy.name",fieldRules:{onlyOneOfMutuallyRequired:[[["config.http_proxy_host","config.http_proxy_port"],["config.https_proxy_host","config.https_proxy_port"]]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["forward-proxy"]},"proxy-cache":{descriptionKey:"plugins.meta.proxy-cache.description",nameKey:"plugins.meta.proxy-cache.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["proxy-cache"]},"proxy-cache-advanced":{descriptionKey:"plugins.meta.proxy-cache-advanced.description",nameKey:"plugins.meta.proxy-cache-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["proxy-cache-advanced"]},"graphql-proxy-cache-advanced":{descriptionKey:"plugins.meta.graphql-proxy-cache-advanced.description",nameKey:"plugins.meta.graphql-proxy-cache-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["graphql-proxy-cache-advanced"]},"rate-limiting-advanced":{descriptionKey:"plugins.meta.rate-limiting-advanced.description",nameKey:"plugins.meta.rate-limiting-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["rate-limiting-advanced"]},"rate-limiting":{descriptionKey:"plugins.meta.rate-limiting.description",nameKey:"plugins.meta.rate-limiting.name",fieldRules:{atLeastOneOf:[["config.second","config.minute","config.hour","config.day","config.month","config.year"]]},freeformRenderRules:{bundles:[["config.policy","config.redis"]],dependencies:{"config.redis":["config.policy","redis"]}},...R.PLUGIN_GROUP_AND_SCOPE_MAP["rate-limiting"]},"graphql-rate-limiting-advanced":{descriptionKey:"plugins.meta.graphql-rate-limiting-advanced.description",nameKey:"plugins.meta.graphql-rate-limiting-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["graphql-rate-limiting-advanced"]},mocking:{descriptionKey:"plugins.meta.mocking.description",nameKey:"plugins.meta.mocking.name",fieldRules:{atLeastOneOf:[["config.api_specification_filename","config.api_specification"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.mocking},"request-size-limiting":{descriptionKey:"plugins.meta.request-size-limiting.description",nameKey:"plugins.meta.request-size-limiting.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-size-limiting"]},"request-termination":{descriptionKey:"plugins.meta.request-termination.description",nameKey:"plugins.meta.request-termination.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-termination"]},"response-ratelimiting":{descriptionKey:"plugins.meta.response-ratelimiting.description",nameKey:"plugins.meta.response-ratelimiting.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["response-ratelimiting"]},"route-by-header":{descriptionKey:"plugins.meta.route-by-header.description",nameKey:"plugins.meta.route-by-header.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["route-by-header"]},"ai-proxy":{descriptionKey:"plugins.meta.ai-proxy.description",nameKey:"plugins.meta.ai-proxy.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-proxy"]},"ai-prompt-decorator":{descriptionKey:"plugins.meta.ai-prompt-decorator.description",nameKey:"plugins.meta.ai-prompt-decorator.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-prompt-decorator"]},"ai-prompt-template":{descriptionKey:"plugins.meta.ai-prompt-template.description",nameKey:"plugins.meta.ai-prompt-template.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-prompt-template"]},"ai-prompt-guard":{descriptionKey:"plugins.meta.ai-prompt-guard.description",nameKey:"plugins.meta.ai-prompt-guard.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-prompt-guard"]},"ai-request-transformer":{descriptionKey:"plugins.meta.ai-request-transformer.description",nameKey:"plugins.meta.ai-request-transformer.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-request-transformer"]},"ai-response-transformer":{descriptionKey:"plugins.meta.ai-response-transformer.description",nameKey:"plugins.meta.ai-response-transformer.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-response-transformer"]},"ai-rate-limiting-advanced":{descriptionKey:"plugins.meta.ai-rate-limiting-advanced.description",nameKey:"plugins.meta.ai-rate-limiting-advanced.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-rate-limiting-advanced"]},"ai-azure-content-safety":{descriptionKey:"plugins.meta.ai-azure-content-safety.description",nameKey:"plugins.meta.ai-azure-content-safety.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-azure-content-safety"]},"aws-lambda":{descriptionKey:"plugins.meta.aws-lambda.description",nameKey:"plugins.meta.aws-lambda.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["aws-lambda"]},"azure-functions":{descriptionKey:"plugins.meta.azure-functions.description",nameKey:"plugins.meta.azure-functions.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["azure-functions"]},openwhisk:{descriptionKey:"plugins.meta.openwhisk.description",nameKey:"plugins.meta.openwhisk.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.openwhisk},"pre-function":{descriptionKey:"plugins.meta.pre-function.description",nameKey:"plugins.meta.pre-function.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["pre-function"]},"post-function":{descriptionKey:"plugins.meta.post-function.description",nameKey:"plugins.meta.post-function.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["post-function"]},datadog:{descriptionKey:"plugins.meta.datadog.description",nameKey:"plugins.meta.datadog.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.datadog},prometheus:{descriptionKey:"plugins.meta.prometheus.description",nameKey:"plugins.meta.prometheus.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.prometheus},zipkin:{descriptionKey:"plugins.meta.zipkin.description",nameKey:"plugins.meta.zipkin.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.zipkin},collector:{descriptionKey:"plugins.meta.collector.description",nameKey:"plugins.meta.collector.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.collector},"response-transformer-advanced":{descriptionKey:"plugins.meta.response-transformer-advanced.description",nameKey:"plugins.meta.response-transformer-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["response-transformer-advanced"]},"correlation-id":{descriptionKey:"plugins.meta.correlation-id.description",nameKey:"plugins.meta.correlation-id.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["correlation-id"]},"request-transformer-advanced":{descriptionKey:"plugins.meta.request-transformer-advanced.description",nameKey:"plugins.meta.request-transformer-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-transformer-advanced"]},"request-transformer":{descriptionKey:"plugins.meta.request-transformer.description",nameKey:"plugins.meta.request-transformer.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-transformer"]},"response-transformer":{descriptionKey:"plugins.meta.response-transformer.description",nameKey:"plugins.meta.response-transformer.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["response-transformer"]},"route-transformer-advanced":{descriptionKey:"plugins.meta.route-transformer-advanced.description",nameKey:"plugins.meta.route-transformer-advanced.name",fieldRules:{atLeastOneOf:[["config.path","config.port","config.host"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["route-transformer-advanced"]},"kafka-upstream":{descriptionKey:"plugins.meta.kafka-upstream.description",nameKey:"plugins.meta.kafka-upstream.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["kafka-upstream"]},degraphql:{descriptionKey:"plugins.meta.degraphql.description",nameKey:"plugins.meta.degraphql.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.degraphql},"exit-transformer":{descriptionKey:"plugins.meta.exit-transformer.description",nameKey:"plugins.meta.exit-transformer.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["exit-transformer"]},jq:{descriptionKey:"plugins.meta.jq.description",nameKey:"plugins.meta.jq.name",fieldRules:{atLeastOneOf:[["config.request_jq_program","config.response_jq_program"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.jq},"file-log":{descriptionKey:"plugins.meta.file-log.description",nameKey:"plugins.meta.file-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["file-log"]},"http-log":{descriptionKey:"plugins.meta.http-log.description",nameKey:"plugins.meta.http-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["http-log"]},loggly:{descriptionKey:"plugins.meta.loggly.description",nameKey:"plugins.meta.loggly.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.loggly},"statsd-advanced":{descriptionKey:"plugins.meta.statsd-advanced.description",nameKey:"plugins.meta.statsd-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["statsd-advanced"]},statsd:{descriptionKey:"plugins.meta.statsd.description",nameKey:"plugins.meta.statsd.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.statsd},syslog:{descriptionKey:"plugins.meta.syslog.description",nameKey:"plugins.meta.syslog.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.syslog},"tcp-log":{descriptionKey:"plugins.meta.tcp-log.description",nameKey:"plugins.meta.tcp-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["tcp-log"]},"udp-log":{descriptionKey:"plugins.meta.udp-log.description",nameKey:"plugins.meta.udp-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["udp-log"]},"kafka-log":{descriptionKey:"plugins.meta.kafka-log.description",nameKey:"plugins.meta.kafka-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["kafka-log"]},session:{descriptionKey:"plugins.meta.session.description",nameKey:"plugins.meta.session.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.session},"upstream-tls":{descriptionKey:"plugins.meta.upstream-tls.description",nameKey:"plugins.meta.upstream-tls.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["upstream-tls"]},"application-registration":{descriptionKey:"plugins.meta.application-registration.description",nameKey:"plugins.meta.application-registration.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["application-registration"]},"konnect-application-auth":{descriptionKey:"plugins.meta.konnect-application-auth.description",nameKey:"plugins.meta.konnect-application-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["konnect-application-auth"]},acme:{descriptionKey:"plugins.meta.acme.description",nameKey:"plugins.meta.acme.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.acme},"grpc-gateway":{descriptionKey:"plugins.meta.grpc-gateway.description",nameKey:"plugins.meta.grpc-gateway.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["grpc-gateway"]},"grpc-web":{descriptionKey:"plugins.meta.grpc-web.description",nameKey:"plugins.meta.grpc-web.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["grpc-web"]},"upstream-timeout":{descriptionKey:"plugins.meta.upstream-timeout.description",nameKey:"plugins.meta.upstream-timeout.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["upstream-timeout"]},opentelemetry:{descriptionKey:"plugins.meta.opentelemetry.description",nameKey:"plugins.meta.opentelemetry.name",fieldRules:{atLeastOneOf:[["config.access_logs_endpoint","config.traces_endpoint","config.logs_endpoint"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.opentelemetry},"websocket-validator":{descriptionKey:"plugins.meta.websocket-validator.description",nameKey:"plugins.meta.websocket-validator.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["websocket-validator"]},"websocket-size-limit":{descriptionKey:"plugins.meta.websocket-size-limit.description",nameKey:"plugins.meta.websocket-size-limit.name",fieldRules:{atLeastOneOf:[["config.client_max_payload","config.upstream_max_payload"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["websocket-size-limit"]},"tls-metadata-headers":{descriptionKey:"plugins.meta.tls-metadata-headers.description",nameKey:"plugins.meta.tls-metadata-headers.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["tls-metadata-headers"]},"tls-handshake-modifier":{descriptionKey:"plugins.meta.tls-handshake-modifier.description",nameKey:"plugins.meta.tls-handshake-modifier.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["tls-handshake-modifier"]},"oas-validation":{descriptionKey:"plugins.meta.oas-validation.description",nameKey:"plugins.meta.oas-validation.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["oas-validation"]},"jwe-decrypt":{descriptionKey:"plugins.meta.jwe-decrypt.description",nameKey:"plugins.meta.jwe-decrypt.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["jwe-decrypt"]},"xml-threat-protection":{descriptionKey:"plugins.meta.xml-threat-protection.description",nameKey:"plugins.meta.xml-threat-protection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["xml-threat-protection"]},saml:{descriptionKey:"plugins.meta.saml.description",nameKey:"plugins.meta.saml.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.saml},"app-dynamics":{descriptionKey:"plugins.meta.app-dynamics.description",nameKey:"plugins.meta.app-dynamics.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["app-dynamics"]},"json-threat-protection":{descriptionKey:"plugins.meta.json-threat-protection.description",nameKey:"plugins.meta.json-threat-protection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["json-threat-protection"]},"standard-webhooks":{descriptionKey:"plugins.meta.standard-webhooks.description",nameKey:"plugins.meta.standard-webhooks.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["standard-webhooks"]},"ai-proxy-advanced":{descriptionKey:"plugins.meta.ai-proxy-advanced.description",nameKey:"plugins.meta.ai-proxy-advanced.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-proxy-advanced"]},"ai-semantic-cache":{descriptionKey:"plugins.meta.ai-semantic-cache.description",nameKey:"plugins.meta.ai-semantic-cache.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-semantic-cache"]},"ai-semantic-prompt-guard":{descriptionKey:"plugins.meta.ai-semantic-prompt-guard.description",nameKey:"plugins.meta.ai-semantic-prompt-guard.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-semantic-prompt-guard"]},"header-cert-auth":{descriptionKey:"plugins.meta.header-cert-auth.description",nameKey:"plugins.meta.header-cert-auth.name",fieldRules:{onlyOneOfMutuallyRequired:[[["config.http_proxy_host","config.http_proxy_port"],["config.https_proxy_host","config.https_proxy_port"]]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["header-cert-auth"]},"upstream-oauth":{descriptionKey:"plugins.meta.upstream-oauth.description",nameKey:"plugins.meta.upstream-oauth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["upstream-oauth"],freeformRenderRules:{bundles:[["config.cache.strategy","config.cache.redis"]],dependencies:{"config.cache.redis":["config.cache.strategy","redis"]}}},confluent:{descriptionKey:"plugins.meta.confluent.description",nameKey:"plugins.meta.confluent.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.confluent},"service-protection":{descriptionKey:"plugins.meta.service-protection.description",nameKey:"plugins.meta.service-protection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["service-protection"]},"injection-protection":{descriptionKey:"plugins.meta.injection-protection.description",nameKey:"plugins.meta.injection-protection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["injection-protection"]},redirect:{descriptionKey:"plugins.meta.redirect.description",nameKey:"plugins.meta.redirect.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.redirect},"kafka-consume":{descriptionKey:"plugins.meta.kafka-consume.description",nameKey:"plugins.meta.kafka-consume.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["kafka-consume"]},"confluent-consume":{descriptionKey:"plugins.meta.confluent-consume.description",nameKey:"plugins.meta.confluent-consume.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["confluent-consume"]},"request-callout":{descriptionKey:"plugins.meta.request-callout.description",nameKey:"plugins.meta.request-callout.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-callout"]},"ai-sanitizer":{descriptionKey:"plugins.meta.ai-sanitizer.description",nameKey:"plugins.meta.ai-sanitizer.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-sanitizer"]},"ai-rag-injector":{descriptionKey:"plugins.meta.ai-rag-injector.description",nameKey:"plugins.meta.ai-rag-injector.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-rag-injector"]},datakit:{descriptionKey:"plugins.meta.datakit.description",nameKey:"plugins.meta.datakit.name",useUIData:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP.datakit},"ai-prompt-compressor":{descriptionKey:"plugins.meta.ai-prompt-compressor.description",nameKey:"plugins.meta.ai-prompt-compressor.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-prompt-compressor"]},"solace-upstream":{descriptionKey:"plugins.meta.solace-upstream.description",nameKey:"plugins.meta.solace-upstream.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["solace-upstream"]},"ai-aws-guardrails":{descriptionKey:"plugins.meta.ai-aws-guardrails.description",nameKey:"plugins.meta.ai-aws-guardrails.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-aws-guardrails"]},ace:{descriptionKey:"plugins.meta.ace.description",nameKey:"plugins.meta.ace.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.ace},"solace-consume":{descriptionKey:"plugins.meta.solace-consume.description",nameKey:"plugins.meta.solace-consume.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["solace-consume"]},"solace-log":{descriptionKey:"plugins.meta.solace-log.description",nameKey:"plugins.meta.solace-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["solace-log"]},"ai-llm-as-judge":{descriptionKey:"plugins.meta.ai-llm-as-judge.description",nameKey:"plugins.meta.ai-llm-as-judge.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-llm-as-judge"]},"ai-mcp-proxy":{descriptionKey:"plugins.meta.ai-mcp-proxy.description",nameKey:"plugins.meta.ai-mcp-proxy.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-mcp-proxy"]},"ai-gcp-model-armor":{descriptionKey:"plugins.meta.ai-gcp-model-armor.description",nameKey:"plugins.meta.ai-gcp-model-armor.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-gcp-model-armor"]},"ai-mcp-oauth2":{descriptionKey:"plugins.meta.ai-mcp-oauth2.description",nameKey:"plugins.meta.ai-mcp-oauth2.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-mcp-oauth2"]},"ai-semantic-response-guard":{descriptionKey:"plugins.meta.ai-semantic-response-guard.description",nameKey:"plugins.meta.ai-semantic-response-guard.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-semantic-response-guard"]},"ai-lakera-guard":{descriptionKey:"plugins.meta.ai-lakera-guard.description",nameKey:"plugins.meta.ai-lakera-guard.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-lakera-guard"]},"ai-a2a-proxy":{descriptionKey:"plugins.meta.ai-a2a-proxy.description",nameKey:"plugins.meta.ai-a2a-proxy.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-a2a-proxy"]},"ai-custom-guardrail":{descriptionKey:"plugins.meta.ai-custom-guardrail.description",nameKey:"plugins.meta.ai-custom-guardrail.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-custom-guardrail"]},"metering-and-billing":{descriptionKey:"plugins.meta.metering-and-billing.description",nameKey:"plugins.meta.metering-and-billing.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["metering-and-billing"]}},Rn={acl:{titleKey:"plugins.meta.acl.name",plugin:"acl",schema:Si,nameKey:"plugins.meta.acl.credential_name",endpoint:"/acls",schemaEndpoint:"acls",fields:pn(Si),applyCredentialButtonText:"Add group to consumer"},"basic-auth":{titleKey:"plugins.meta.basic-auth.name",plugin:"basic-auth",schema:Pi,nameKey:"plugins.meta.basic-auth.credential_name",endpoint:"/basic-auth",schemaEndpoint:"basicauth_credentials",fields:pn(Pi)},"key-auth":{titleKey:"plugins.meta.key-auth.name",plugin:"key-auth",schema:Ti,nameKey:"plugins.meta.key-auth.credential_name",endpoint:"/key-auth",schemaEndpoint:"keyauth_credentials",fields:pn(Ti)},"key-auth-enc":{titleKey:"plugins.meta.key-auth-enc.name",plugin:"key-auth-enc",schema:Bi,nameKey:"plugins.meta.key-auth-enc.credential_name",endpoint:"/key-auth-enc",schemaEndpoint:"keyauth_enc_credentials",fields:pn(Bi)},oauth2:{titleKey:"plugins.meta.oauth2.name",plugin:"oauth2",schema:Vi,nameKey:"plugins.meta.oauth2.credential_name",endpoint:"/oauth2",schemaEndpoint:"oauth2_credentials",fields:pn(Vi)},"hmac-auth":{titleKey:"plugins.meta.hmac-auth.name",plugin:"hmac-auth",schema:Oi,nameKey:"plugins.meta.hmac-auth.credential_name",endpoint:"/hmac-auth",schemaEndpoint:"hmacauth_credentials",fields:pn(Oi)},jwt:{titleKey:"plugins.meta.jwt.name",plugin:"jwt",schema:Iu,nameKey:"plugins.meta.jwt.credential_name",endpoint:"/jwt",schemaEndpoint:"jwt_secrets",fields:{id:{},key:{},algorithm:{}}}},$u={acls:wu,basicauth_credentials:Cu,keyauth_credentials:Su,keyauth_enc_credentials:Bu,oauth2_credentials:Ou,hmacauth_credentials:Pu,jwt_secrets:Tu},Ru=()=>{const{i18n:{t}}=Le(),n={},o={};for(const[a,i]of Object.entries(Nt))n[a]={...i,name:t(i.nameKey),description:t(i.descriptionKey)};for(const[a,i]of Object.entries(Rn))o[a]={...i,name:t(i.nameKey),title:t(i.titleKey)};return{pluginMetaData:n,credentialMetaData:o,credentialSchemas:Rn,getDisplayName:a=>{var i;return((i=n[a])==null?void 0:i.name)||a}}},eo={type:"array",showRemoveButton:!1,newElementButtonLabelClasses:"kong-form-new-element-button-label",itemContainerComponent:"FieldArrayCardContainer",fieldClasses:"array-card-container-wrapper"},Fu={"config-prompts-prepend":{...eo,newElementButtonLabel:"+ Add Message",items:{type:"object",schema:{fields:[{label:"Role",model:"role",help:"LLM message role",type:"select",required:!0,values:["system","assistant","user"]},{label:"Content",model:"content",type:"input",required:!0,help:"LLM message content",inputType:"text"}]}}},"config-prompts-append":{...eo,newElementButtonLabel:"+ Add Message",items:{type:"object",schema:{fields:[{label:"Role",model:"role",help:"LLM message role",type:"select",required:!0,values:["system","assistant","user"]},{label:"Content",model:"content",type:"input",required:!0,help:"LLM message content",inputType:"text"}]}}}},Lu={"config-templates":{...eo,newElementButtonLabel:"+ Add Template",items:{type:"object",schema:{fields:[{label:"Template Name",model:"name",help:"Template Name, for reference in user requests",type:"input",required:!0,inputType:"text"},{label:"Template String",model:"template",help:"Template string content, containing {{placeholders}} for variable substitution",type:"textArea",required:!0,inputType:"text"}]}}}},Du={shamefullyTransformPayload:({originalModel:t,model:n,payload:o,schema:r})=>{const a=l=>{var s;return(s=r[l])!=null&&s.required&&n[l]?!0:t[l]===n[l]?!1:t[l]===null?n[l]!==""&&!Number.isNaN(n[l]):!0},i=l=>Object.keys(t).some(s=>s.startsWith(l)&&a(s));i("config-embeddings")||(o.config.embeddings=null),i("config-vectordb")||(o.config.vectordb=null)}},$i=t=>t.split(",").map(n=>n.trim()).filter(Boolean),Mu={shamefullyTransformPayload:({payload:t})=>{var n;(n=t==null?void 0:t.config)!=null&&n.collection_acl_config&&Object.values(t.config.collection_acl_config).forEach(o=>{typeof(o==null?void 0:o.allow)=="string"&&(o.allow=$i(o.allow)),typeof(o==null?void 0:o.deny)=="string"&&(o.deny=$i(o.deny))})}},ju={"config-prompt":{label:"Prompt",placeholder:"Enter your prompt",type:"textArea",rows:4,max:!1}},vu={enabled:{type:"switch",model:"enabled",label:"Enabled",textOn:"This plugin is Enabled",textOff:"This plugin is Disabled",inputType:"hidden",styleClasses:"field-switch top-border bottom-border hide-label",default:!0},name:{default:"application-registration",type:"input",inputType:"hidden",styleClasses:"kong-form-hidden-field-wrapper"},"service-id":{type:"AutoSuggest",label:"Gateway Service",styleClasses:"bottom-border",description:"Specific Gateway Service in this workspace",model:"service-id",entity:"services",placeholder:"Select a Gateway Service",inputValues:{fields:["name","id"]},help:"The Gateway Service that this plugin configuration will target"},tags:$n.tags,protocols:{id:"protocols",default:[],type:"multiselect",label:"Protocols",values:[{label:"grpc",value:"grpc"},{label:"grpcs",value:"grpcs"},{label:"http",value:"http"},{label:"https",value:"https"},{label:"tcp",value:"tcp"},{label:"tls",value:"tls"},{label:"tls_passthrough",value:"tls_passthrough"},{label:"udp",value:"udp"},{label:"ws",value:"ws"},{label:"wss",value:"wss"}],help:"A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type.",placeholder:"Select valid protocols for the plugin",styleClasses:"plugin-protocols-select"}},je={type:"array",valueType:"string",valueArrayType:"array",itemContainerComponent:"FieldArrayItem",fieldClasses:"kong-form-array-field",fieldItemsClasses:"kong-form-array-field-item",inputAttributes:{class:"form-control",style:{minWidth:"200px"}},validator:"array",styleClasses:"kong-form-field-wrapper",newElementButtonLabel:"+ Add",newElementButtonLabelClasses:"kong-form-new-element-button-label"},$o={type:"array",showRemoveButton:!1,newElementButtonLabelClasses:"kong-form-new-element-button-label",itemContainerComponent:"FieldMetric",fieldClasses:"metrics-wrapper"},Ku={"config-metrics":{...$o,items:{type:"object",default:()=>({}),schema:{fields:[{model:"name",label:"Name",type:"select",values:["request_count","request_size","response_size","latency","status_count","unique_users","request_per_user","upstream_latency","kong_latency"]},{model:"stat_type",label:"Stat Type",type:"select",values:["gauge","timer","counter","histogram","meter","set"]},{model:"sample_rate",label:"Sample Rate",type:"input",inputType:"number",id:"sample_rate"},{model:"consumer_identifier",label:"Consumer Identifier",type:"select",values:["consumer_id","custom_id","username"]},{model:"tags",label:"Tags",type:"array",itemContainerComponent:"FieldArrayItem",fieldClasses:"kong-form-array-field",fieldItemsClasses:"kong-form-array-field-item",inputAttributes:{class:"form-control",style:{minWidth:"200px"}},inputType:"text"}]}}}},Uu={"config-functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},qu={"config-strategy":{label:"Config.Strategy",type:"select",default:"cluster",values:["cluster","redis"]}},Gu={"config-injection_types":{type:"multiselect"},"config-locations":{type:"multiselect"}},zu={"config-api_specification":{label:"Config.API Specification",placeholder:"Enter an API spec",type:"textArea",rows:10,max:!1}},Hu={"config-api_spec":{label:"Config.API Spec",placeholder:"Enter an API spec",type:"textArea",rows:15,max:!1}},Wu={"config-access":{},"config-body_filter":{},"config-header_filter":{},"config-certificate":{},"config-functions":{},"config-log":{},"config-rewrite":{}},Ri=["config-access","config-body_filter","config-header_filter","config-certificate","config-functions","config-log","config-rewrite"].reduce((t,n)=>({...t,[n]:$n.fields.arrayItems({newElementButtonLabel:"Add"})}),Wu),Ro={"config-strategy":{label:"Config.Strategy",type:"select",default:"redis",values:["local","redis"]},"config-consumer_groups":{label:"Config.Consumer Groups",type:"input",placeholder:"Enter list of consumer groups",hint:"e.g. group1, group2"}},Yu={"config-remove-headers":{},"config-remove.querystring":{},"config-remove-body":{},"config-replace-headers":{},"config-replace-querystring":{},"config-replace-body":{},"config-rename-headers":{},"config-rename-querystring":{},"config-rename-body":{},"config-add-headers":{},"config-add-querystring":{},"config-add-body":{},"config-append-headers":{},"config-append-querystring":{},"config-append-body":{},"config-allow-body":{}},Ju=["config-remove-headers","config-remove.querystring","config-remove-body","config-replace-headers","config-replace-querystring","config-replace-body","config-rename-headers","config-rename-querystring","config-rename-body","config-add-headers","config-add-querystring","config-add-body","config-append-headers","config-append-querystring","config-append-body","config-allow-body"].reduce((t,n)=>({...t,[n]:$n.fields.arrayItems({newElementButtonLabel:"Add"})}),Yu),Fi={"config-add-json":{...je,label:"Config.Add.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-append-json":{...je,label:"Config.Append.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-remove-json":{...je,label:"Config.Remove.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-rename-json":{...je,label:"Config.Rename.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-replace-json":{...je,label:"Config.Replace.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},Xu={...Fi,"config-allow-json":{...je,label:"Config.Allow.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-replace-body":{label:"Config.Replace.Body",type:"textArea",max:!1},"config-transform-functions":{...je,label:"Config.Transform.Functions",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-transform-json":{...je,label:"Config.Transform.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},Zu={"config-rules":{...eo,newElementButtonLabel:"+ Add Rule",items:{type:"object",schema:{fields:[{label:"Upstream Name",model:"upstream_name",type:"input",help:"Target hostname where traffic will be routed in case of condition match",placeholder:"Hostname",inputType:"text"},{label:"Condition",model:"condition",type:"keyValuePairs",help:"List of headers name and value pairs",newElementButtonLabelClasses:"kong-form-new-element-button-label",newElementButtonLabel:"+ Add Condition",keyInputPlaceholder:"Header name",valueInputPlaceholder:"Header value"}]}}}},Qu={"config-session_redis_cluster_nodes":{...eo,newElementButtonLabel:"+ Add Cluster Node",items:{type:"object",schema:{fields:[{label:"IP",model:"ip",type:"input",inputType:"text"},{label:"Port",model:"port",type:"input",inputType:"number"}]}}}},ef={"config-flow-functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},tf={"config-message-functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},nf={"config-metrics":{...$o,items:{type:"object",default:()=>({}),schema:{fields:[{model:"name",label:"Name",type:"select",values:["request_count","request_size","response_size","latency","status_count","unique_users","request_per_user","upstream_latency","kong_latency","status_count_per_user","status_count_per_user_per_route","status_count_per_workspace","shdict_usage"]},{model:"stat_type",label:"Stat Type",type:"select",values:["gauge","timer","counter","histogram","meter","set"]},{model:"sample_rate",label:"Sample Rate",type:"input",inputType:"number",id:"sample_rate"},{model:"consumer_identifier",label:"Consumer Identifier",type:"select",values:["consumer_id","custom_id","username"]},{model:"service_identifier",label:"Service Identifier",type:"select",values:["service_id","service_name","service_host","service_name_or_host"]},{model:"workspace_identifier",label:"Workspace Identifier",type:"select",values:["workspace_id","workspace_name"]}]}}}},of={"config-metrics":{...$o,items:{type:"object",default:()=>({}),schema:{fields:[{model:"name",label:"Name",type:"select",values:["request_count","request_size","response_size","latency","status_count","unique_users","request_per_user","upstream_latency","kong_latency","status_count_per_user","status_count_per_user_per_route","status_count_per_workspace","shdict_usage","cache_datastore_hits_total","cache_datastore_misses_total"]},{model:"stat_type",label:"Stat Type",type:"select",values:["gauge","timer","counter","histogram","meter","set"]},{model:"sample_rate",label:"Sample Rate",type:"input",inputType:"number",id:"sample_rate"},{model:"consumer_identifier",label:"Consumer Identifier",type:"select",values:["consumer_id","custom_id","username"]},{model:"service_identifier",label:"Service Identifier",type:"select",values:["service_id","service_name","service_host","service_name_or_host"]},{model:"workspace_identifier",label:"Workspace Identifier",type:"select",values:["workspace_id","workspace_name"]}]}}}},rf={"config-behavior-idp_error_response_body_template":{type:"textArea",rows:4}},af={"config-vault":{type:"AutoSuggest",entity:"vaults",placeholder:"Select a Vault",inputValues:{fields:["prefix","name","id"]},modelTransformer:t=>({id:t}),keyFromObject:"id"}};var Li=typeof global=="object"&&global&&global.Object===Object&&global,lf=typeof self=="object"&&self&&self.Object===Object&&self,Ft=Li||lf||Function("return this")(),xt=Ft.Symbol,Di=Object.prototype,sf=Di.hasOwnProperty,cf=Di.toString,to=xt?xt.toStringTag:void 0;function df(t){var n=sf.call(t,to),o=t[to];try{t[to]=void 0;var r=!0}catch{}var a=cf.call(t);return r&&(n?t[to]=o:delete t[to]),a}var uf=Object.prototype,ff=uf.toString;function pf(t){return ff.call(t)}var mf="[object Null]",gf="[object Undefined]",Mi=xt?xt.toStringTag:void 0;function gn(t){return t==null?t===void 0?gf:mf:Mi&&Mi in Object(t)?df(t):pf(t)}function Lt(t){return t!=null&&typeof t=="object"}var hf="[object Symbol]";function Vr(t){return typeof t=="symbol"||Lt(t)&&gn(t)==hf}function Br(t,n){for(var o=-1,r=t==null?0:t.length,a=Array(r);++o<r;)a[o]=n(t[o],o,t);return a}var Ot=Array.isArray,ji=xt?xt.prototype:void 0,vi=ji?ji.toString:void 0;function Ki(t){if(typeof t=="string")return t;if(Ot(t))return Br(t,Ki)+"";if(Vr(t))return vi?vi.call(t):"";var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}function hn(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function Ui(t){return t}var yf="[object AsyncFunction]",_f="[object Function]",bf="[object GeneratorFunction]",kf="[object Proxy]";function Fo(t){if(!hn(t))return!1;var n=gn(t);return n==_f||n==bf||n==yf||n==kf}var $r=Ft["__core-js_shared__"],qi=(function(){var t=/[^.]+$/.exec($r&&$r.keys&&$r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function wf(t){return!!qi&&qi in t}var Cf=Function.prototype,Ef=Cf.toString;function yn(t){if(t!=null){try{return Ef.call(t)}catch{}try{return t+""}catch{}}return""}var Nf=/[\\^$.*+?()[\]{}|]/g,xf=/^\[object .+?Constructor\]$/,Af=Function.prototype,Sf=Object.prototype,Pf=Af.toString,If=Sf.hasOwnProperty,Tf=RegExp("^"+Pf.call(If).replace(Nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Of(t){if(!hn(t)||wf(t))return!1;var n=Fo(t)?Tf:xf;return n.test(yn(t))}function Vf(t,n){return t==null?void 0:t[n]}function _n(t,n){var o=Vf(t,n);return Of(o)?o:void 0}var Rr=_n(Ft,"WeakMap"),Gi=Object.create,Bf=(function(){function t(){}return function(n){if(!hn(n))return{};if(Gi)return Gi(n);t.prototype=n;var o=new t;return t.prototype=void 0,o}})();function $f(t,n,o){switch(o.length){case 0:return t.call(n);case 1:return t.call(n,o[0]);case 2:return t.call(n,o[0],o[1]);case 3:return t.call(n,o[0],o[1],o[2])}return t.apply(n,o)}function Rf(t,n){var o=-1,r=t.length;for(n||(n=Array(r));++o<r;)n[o]=t[o];return n}var Ff=800,Lf=16,Df=Date.now;function Mf(t){var n=0,o=0;return function(){var r=Df(),a=Lf-(r-o);if(o=r,a>0){if(++n>=Ff)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function jf(t){return function(){return t}}var Lo=(function(){try{var t=_n(Object,"defineProperty");return t({},"",{}),t}catch{}})(),vf=Lo?function(t,n){return Lo(t,"toString",{configurable:!0,enumerable:!1,value:jf(n),writable:!0})}:Ui,zi=Mf(vf);function Kf(t,n){for(var o=-1,r=t==null?0:t.length;++o<r&&n(t[o],o,t)!==!1;);return t}function Uf(t,n,o,r){for(var a=t.length,i=o+-1;++i<a;)if(n(t[i],i,t))return i;return-1}function qf(t){return t!==t}function Gf(t,n,o){for(var r=o-1,a=t.length;++r<a;)if(t[r]===n)return r;return-1}function zf(t,n,o){return n===n?Gf(t,n,o):Uf(t,qf,o)}function Hf(t,n){var o=t==null?0:t.length;return!!o&&zf(t,n,0)>-1}var Wf=9007199254740991,Yf=/^(?:0|[1-9]\d*)$/;function Fr(t,n){var o=typeof t;return n=n??Wf,!!n&&(o=="number"||o!="symbol"&&Yf.test(t))&&t>-1&&t%1==0&&t<n}function Hi(t,n,o){n=="__proto__"&&Lo?Lo(t,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[n]=o}function Lr(t,n){return t===n||t!==t&&n!==n}var Jf=Object.prototype,Xf=Jf.hasOwnProperty;function Dr(t,n,o){var r=t[n];(!(Xf.call(t,n)&&Lr(r,o))||o===void 0&&!(n in t))&&Hi(t,n,o)}function no(t,n,o,r){var a=!o;o||(o={});for(var i=-1,l=n.length;++i<l;){var s=n[i],c=void 0;c===void 0&&(c=t[s]),a?Hi(o,s,c):Dr(o,s,c)}return o}var Wi=Math.max;function Yi(t,n,o){return n=Wi(n===void 0?t.length-1:n,0),function(){for(var r=arguments,a=-1,i=Wi(r.length-n,0),l=Array(i);++a<i;)l[a]=r[n+a];a=-1;for(var s=Array(n+1);++a<n;)s[a]=r[a];return s[n]=o(l),$f(t,this,s)}}function Zf(t,n){return zi(Yi(t,n,Ui),t+"")}var Qf=9007199254740991;function Mr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qf}function Do(t){return t!=null&&Mr(t.length)&&!Fo(t)}var ep=Object.prototype;function Mo(t){var n=t&&t.constructor,o=typeof n=="function"&&n.prototype||ep;return t===o}function tp(t,n){for(var o=-1,r=Array(t);++o<t;)r[o]=n(o);return r}var np="[object Arguments]";function Ji(t){return Lt(t)&&gn(t)==np}var Xi=Object.prototype,op=Xi.hasOwnProperty,rp=Xi.propertyIsEnumerable,jo=Ji((function(){return arguments})())?Ji:function(t){return Lt(t)&&op.call(t,"callee")&&!rp.call(t,"callee")};function ap(){return!1}var Zi=typeof ke=="object"&&ke&&!ke.nodeType&&ke,Qi=Zi&&typeof module=="object"&&module&&!module.nodeType&&module,ip=Qi&&Qi.exports===Zi,el=ip?Ft.Buffer:void 0,lp=el?el.isBuffer:void 0,oo=lp||ap,sp="[object Arguments]",cp="[object Array]",dp="[object Boolean]",up="[object Date]",fp="[object Error]",pp="[object Function]",mp="[object Map]",gp="[object Number]",hp="[object Object]",yp="[object RegExp]",_p="[object Set]",bp="[object String]",kp="[object WeakMap]",wp="[object ArrayBuffer]",Cp="[object DataView]",Ep="[object Float32Array]",Np="[object Float64Array]",xp="[object Int8Array]",Ap="[object Int16Array]",Sp="[object Int32Array]",Pp="[object Uint8Array]",Ip="[object Uint8ClampedArray]",Tp="[object Uint16Array]",Op="[object Uint32Array]",He={};He[Ep]=He[Np]=He[xp]=He[Ap]=He[Sp]=He[Pp]=He[Ip]=He[Tp]=He[Op]=!0,He[sp]=He[cp]=He[wp]=He[dp]=He[Cp]=He[up]=He[fp]=He[pp]=He[mp]=He[gp]=He[hp]=He[yp]=He[_p]=He[bp]=He[kp]=!1;function Vp(t){return Lt(t)&&Mr(t.length)&&!!He[gn(t)]}function jr(t){return function(n){return t(n)}}var tl=typeof ke=="object"&&ke&&!ke.nodeType&&ke,ro=tl&&typeof module=="object"&&module&&!module.nodeType&&module,Bp=ro&&ro.exports===tl,vr=Bp&&Li.process,Fn=(function(){try{var t=ro&&ro.require&&ro.require("util").types;return t||vr&&vr.binding&&vr.binding("util")}catch{}})(),nl=Fn&&Fn.isTypedArray,Kr=nl?jr(nl):Vp,$p=Object.prototype,Rp=$p.hasOwnProperty;function ol(t,n){var o=Ot(t),r=!o&&jo(t),a=!o&&!r&&oo(t),i=!o&&!r&&!a&&Kr(t),l=o||r||a||i,s=l?tp(t.length,String):[],c=s.length;for(var u in t)(n||Rp.call(t,u))&&!(l&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Fr(u,c)))&&s.push(u);return s}function rl(t,n){return function(o){return t(n(o))}}var Fp=rl(Object.keys,Object),Lp=Object.prototype,Dp=Lp.hasOwnProperty;function al(t){if(!Mo(t))return Fp(t);var n=[];for(var o in Object(t))Dp.call(t,o)&&o!="constructor"&&n.push(o);return n}function Ur(t){return Do(t)?ol(t):al(t)}function Mp(t){var n=[];if(t!=null)for(var o in Object(t))n.push(o);return n}var jp=Object.prototype,vp=jp.hasOwnProperty;function Kp(t){if(!hn(t))return Mp(t);var n=Mo(t),o=[];for(var r in t)r=="constructor"&&(n||!vp.call(t,r))||o.push(r);return o}function qr(t){return Do(t)?ol(t,!0):Kp(t)}var Up=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qp=/^\w*$/;function Gp(t,n){if(Ot(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Vr(t)?!0:qp.test(t)||!Up.test(t)||n!=null&&t in Object(n)}var ao=_n(Object,"create");function zp(){this.__data__=ao?ao(null):{},this.size=0}function Hp(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var Wp="__lodash_hash_undefined__",Yp=Object.prototype,Jp=Yp.hasOwnProperty;function Xp(t){var n=this.__data__;if(ao){var o=n[t];return o===Wp?void 0:o}return Jp.call(n,t)?n[t]:void 0}var Zp=Object.prototype,Qp=Zp.hasOwnProperty;function em(t){var n=this.__data__;return ao?n[t]!==void 0:Qp.call(n,t)}var tm="__lodash_hash_undefined__";function nm(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=ao&&n===void 0?tm:n,this}function bn(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var r=t[n];this.set(r[0],r[1])}}bn.prototype.clear=zp,bn.prototype.delete=Hp,bn.prototype.get=Xp,bn.prototype.has=em,bn.prototype.set=nm;function om(){this.__data__=[],this.size=0}function vo(t,n){for(var o=t.length;o--;)if(Lr(t[o][0],n))return o;return-1}var rm=Array.prototype,am=rm.splice;function im(t){var n=this.__data__,o=vo(n,t);if(o<0)return!1;var r=n.length-1;return o==r?n.pop():am.call(n,o,1),--this.size,!0}function lm(t){var n=this.__data__,o=vo(n,t);return o<0?void 0:n[o][1]}function sm(t){return vo(this.__data__,t)>-1}function cm(t,n){var o=this.__data__,r=vo(o,t);return r<0?(++this.size,o.push([t,n])):o[r][1]=n,this}function Kt(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var r=t[n];this.set(r[0],r[1])}}Kt.prototype.clear=om,Kt.prototype.delete=im,Kt.prototype.get=lm,Kt.prototype.has=sm,Kt.prototype.set=cm;var io=_n(Ft,"Map");function dm(){this.size=0,this.__data__={hash:new bn,map:new(io||Kt),string:new bn}}function um(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Ko(t,n){var o=t.__data__;return um(n)?o[typeof n=="string"?"string":"hash"]:o.map}function fm(t){var n=Ko(this,t).delete(t);return this.size-=n?1:0,n}function pm(t){return Ko(this,t).get(t)}function mm(t){return Ko(this,t).has(t)}function gm(t,n){var o=Ko(this,t),r=o.size;return o.set(t,n),this.size+=o.size==r?0:1,this}function Ut(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var r=t[n];this.set(r[0],r[1])}}Ut.prototype.clear=dm,Ut.prototype.delete=fm,Ut.prototype.get=pm,Ut.prototype.has=mm,Ut.prototype.set=gm;var hm="Expected a function";function Gr(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(hm);var o=function(){var r=arguments,a=n?n.apply(this,r):r[0],i=o.cache;if(i.has(a))return i.get(a);var l=t.apply(this,r);return o.cache=i.set(a,l)||i,l};return o.cache=new(Gr.Cache||Ut),o}Gr.Cache=Ut;var ym=500;function _m(t){var n=Gr(t,function(r){return o.size===ym&&o.clear(),r}),o=n.cache;return n}var bm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,km=/\\(\\)?/g,wm=_m(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(bm,function(o,r,a,i){n.push(a?i.replace(km,"$1"):r||o)}),n});function Uo(t){return t==null?"":Ki(t)}function Ln(t,n){return Ot(t)?t:Gp(t,n)?[t]:wm(Uo(t))}function qo(t){if(typeof t=="string"||Vr(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}function zr(t,n){n=Ln(n,t);for(var o=0,r=n.length;t!=null&&o<r;)t=t[qo(n[o++])];return o&&o==r?t:void 0}function Go(t,n,o){var r=t==null?void 0:zr(t,n);return r===void 0?o:r}function Hr(t,n){for(var o=-1,r=n.length,a=t.length;++o<r;)t[a+o]=n[o];return t}var il=xt?xt.isConcatSpreadable:void 0;function Cm(t){return Ot(t)||jo(t)||!!(il&&t&&t[il])}function Em(t,n,o,r,a){var i=-1,l=t.length;for(o||(o=Cm),a||(a=[]);++i<l;){var s=t[i];o(s)?Hr(a,s):a[a.length]=s}return a}function Nm(t){var n=t==null?0:t.length;return n?Em(t):[]}function ll(t){return zi(Yi(t,void 0,Nm),t+"")}var Wr=rl(Object.getPrototypeOf,Object),xm="[object Object]",Am=Function.prototype,Sm=Object.prototype,sl=Am.toString,Pm=Sm.hasOwnProperty,Im=sl.call(Object);function Tm(t){if(!Lt(t)||gn(t)!=xm)return!1;var n=Wr(t);if(n===null)return!0;var o=Pm.call(n,"constructor")&&n.constructor;return typeof o=="function"&&o instanceof o&&sl.call(o)==Im}function cl(t,n,o){var r=-1,a=t.length;n<0&&(n=-n>a?0:a+n),o=o>a?a:o,o<0&&(o+=a),a=n>o?0:o-n>>>0,n>>>=0;for(var i=Array(a);++r<a;)i[r]=t[r+n];return i}function Om(t,n,o){var r=t.length;return o=o===void 0?r:o,!n&&o>=r?t:cl(t,n,o)}var Vm="\\ud800-\\udfff",Bm="\\u0300-\\u036f",$m="\\ufe20-\\ufe2f",Rm="\\u20d0-\\u20ff",Fm=Bm+$m+Rm,Lm="\\ufe0e\\ufe0f",Dm="\\u200d",Mm=RegExp("["+Dm+Vm+Fm+Lm+"]");function dl(t){return Mm.test(t)}function jm(t){return t.split("")}var ul="\\ud800-\\udfff",vm="\\u0300-\\u036f",Km="\\ufe20-\\ufe2f",Um="\\u20d0-\\u20ff",qm=vm+Km+Um,Gm="\\ufe0e\\ufe0f",zm="["+ul+"]",Yr="["+qm+"]",Jr="\\ud83c[\\udffb-\\udfff]",Hm="(?:"+Yr+"|"+Jr+")",fl="[^"+ul+"]",pl="(?:\\ud83c[\\udde6-\\uddff]){2}",ml="[\\ud800-\\udbff][\\udc00-\\udfff]",Wm="\\u200d",gl=Hm+"?",hl="["+Gm+"]?",Ym="(?:"+Wm+"(?:"+[fl,pl,ml].join("|")+")"+hl+gl+")*",Jm=hl+gl+Ym,Xm="(?:"+[fl+Yr+"?",Yr,pl,ml,zm].join("|")+")",Zm=RegExp(Jr+"(?="+Jr+")|"+Xm+Jm,"g");function Qm(t){return t.match(Zm)||[]}function eg(t){return dl(t)?Qm(t):jm(t)}function tg(t){return function(n){n=Uo(n);var o=dl(n)?eg(n):void 0,r=o?o[0]:n.charAt(0),a=o?Om(o,1).join(""):n.slice(1);return r[t]()+a}}var ng=tg("toUpperCase");function og(t){return function(n){return t==null?void 0:t[n]}}function rg(){this.__data__=new Kt,this.size=0}function ag(t){var n=this.__data__,o=n.delete(t);return this.size=n.size,o}function ig(t){return this.__data__.get(t)}function lg(t){return this.__data__.has(t)}var sg=200;function cg(t,n){var o=this.__data__;if(o instanceof Kt){var r=o.__data__;if(!io||r.length<sg-1)return r.push([t,n]),this.size=++o.size,this;o=this.__data__=new Ut(r)}return o.set(t,n),this.size=o.size,this}function qt(t){var n=this.__data__=new Kt(t);this.size=n.size}qt.prototype.clear=rg,qt.prototype.delete=ag,qt.prototype.get=ig,qt.prototype.has=lg,qt.prototype.set=cg;function dg(t,n){return t&&no(n,Ur(n),t)}function ug(t,n){return t&&no(n,qr(n),t)}var yl=typeof ke=="object"&&ke&&!ke.nodeType&&ke,_l=yl&&typeof module=="object"&&module&&!module.nodeType&&module,fg=_l&&_l.exports===yl,bl=fg?Ft.Buffer:void 0,kl=bl?bl.allocUnsafe:void 0;function pg(t,n){if(n)return t.slice();var o=t.length,r=kl?kl(o):new t.constructor(o);return t.copy(r),r}function mg(t,n){for(var o=-1,r=t==null?0:t.length,a=0,i=[];++o<r;){var l=t[o];n(l,o,t)&&(i[a++]=l)}return i}function wl(){return[]}var gg=Object.prototype,hg=gg.propertyIsEnumerable,Cl=Object.getOwnPropertySymbols,Xr=Cl?function(t){return t==null?[]:(t=Object(t),mg(Cl(t),function(n){return hg.call(t,n)}))}:wl;function yg(t,n){return no(t,Xr(t),n)}var _g=Object.getOwnPropertySymbols,El=_g?function(t){for(var n=[];t;)Hr(n,Xr(t)),t=Wr(t);return n}:wl;function bg(t,n){return no(t,El(t),n)}function Nl(t,n,o){var r=n(t);return Ot(t)?r:Hr(r,o(t))}function Zr(t){return Nl(t,Ur,Xr)}function xl(t){return Nl(t,qr,El)}var Qr=_n(Ft,"DataView"),ea=_n(Ft,"Promise"),ta=_n(Ft,"Set"),Al="[object Map]",kg="[object Object]",Sl="[object Promise]",Pl="[object Set]",Il="[object WeakMap]",Tl="[object DataView]",wg=yn(Qr),Cg=yn(io),Eg=yn(ea),Ng=yn(ta),xg=yn(Rr),At=gn;(Qr&&At(new Qr(new ArrayBuffer(1)))!=Tl||io&&At(new io)!=Al||ea&&At(ea.resolve())!=Sl||ta&&At(new ta)!=Pl||Rr&&At(new Rr)!=Il)&&(At=function(t){var n=gn(t),o=n==kg?t.constructor:void 0,r=o?yn(o):"";if(r)switch(r){case wg:return Tl;case Cg:return Al;case Eg:return Sl;case Ng:return Pl;case xg:return Il}return n});var Ag=Object.prototype,Sg=Ag.hasOwnProperty;function Pg(t){var n=t.length,o=new t.constructor(n);return n&&typeof t[0]=="string"&&Sg.call(t,"index")&&(o.index=t.index,o.input=t.input),o}var zo=Ft.Uint8Array;function na(t){var n=new t.constructor(t.byteLength);return new zo(n).set(new zo(t)),n}function Ig(t,n){var o=n?na(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}var Tg=/\w*$/;function Og(t){var n=new t.constructor(t.source,Tg.exec(t));return n.lastIndex=t.lastIndex,n}var Ol=xt?xt.prototype:void 0,Vl=Ol?Ol.valueOf:void 0;function Vg(t){return Vl?Object(Vl.call(t)):{}}function Bg(t,n){var o=n?na(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var $g="[object Boolean]",Rg="[object Date]",Fg="[object Map]",Lg="[object Number]",Dg="[object RegExp]",Mg="[object Set]",jg="[object String]",vg="[object Symbol]",Kg="[object ArrayBuffer]",Ug="[object DataView]",qg="[object Float32Array]",Gg="[object Float64Array]",zg="[object Int8Array]",Hg="[object Int16Array]",Wg="[object Int32Array]",Yg="[object Uint8Array]",Jg="[object Uint8ClampedArray]",Xg="[object Uint16Array]",Zg="[object Uint32Array]";function Qg(t,n,o){var r=t.constructor;switch(n){case Kg:return na(t);case $g:case Rg:return new r(+t);case Ug:return Ig(t,o);case qg:case Gg:case zg:case Hg:case Wg:case Yg:case Jg:case Xg:case Zg:return Bg(t,o);case Fg:return new r;case Lg:case jg:return new r(t);case Dg:return Og(t);case Mg:return new r;case vg:return Vg(t)}}function eh(t){return typeof t.constructor=="function"&&!Mo(t)?Bf(Wr(t)):{}}var th="[object Map]";function nh(t){return Lt(t)&&At(t)==th}var Bl=Fn&&Fn.isMap,oh=Bl?jr(Bl):nh,rh="[object Set]";function ah(t){return Lt(t)&&At(t)==rh}var $l=Fn&&Fn.isSet,ih=$l?jr($l):ah,lh=1,sh=2,ch=4,Rl="[object Arguments]",dh="[object Array]",uh="[object Boolean]",fh="[object Date]",ph="[object Error]",Fl="[object Function]",mh="[object GeneratorFunction]",gh="[object Map]",hh="[object Number]",Ll="[object Object]",yh="[object RegExp]",_h="[object Set]",bh="[object String]",kh="[object Symbol]",wh="[object WeakMap]",Ch="[object ArrayBuffer]",Eh="[object DataView]",Nh="[object Float32Array]",xh="[object Float64Array]",Ah="[object Int8Array]",Sh="[object Int16Array]",Ph="[object Int32Array]",Ih="[object Uint8Array]",Th="[object Uint8ClampedArray]",Oh="[object Uint16Array]",Vh="[object Uint32Array]",Ge={};Ge[Rl]=Ge[dh]=Ge[Ch]=Ge[Eh]=Ge[uh]=Ge[fh]=Ge[Nh]=Ge[xh]=Ge[Ah]=Ge[Sh]=Ge[Ph]=Ge[gh]=Ge[hh]=Ge[Ll]=Ge[yh]=Ge[_h]=Ge[bh]=Ge[kh]=Ge[Ih]=Ge[Th]=Ge[Oh]=Ge[Vh]=!0,Ge[ph]=Ge[Fl]=Ge[wh]=!1;function lo(t,n,o,r,a,i){var l,s=n&lh,c=n&sh,u=n&ch;if(o&&(l=a?o(t,r,a,i):o(t)),l!==void 0)return l;if(!hn(t))return t;var p=Ot(t);if(p){if(l=Pg(t),!s)return Rf(t,l)}else{var d=At(t),f=d==Fl||d==mh;if(oo(t))return pg(t,s);if(d==Ll||d==Rl||f&&!a){if(l=c||f?{}:eh(t),!s)return c?bg(t,ug(l,t)):yg(t,dg(l,t))}else{if(!Ge[d])return a?t:{};l=Qg(t,d,s)}}i||(i=new qt);var m=i.get(t);if(m)return m;i.set(t,l),ih(t)?t.forEach(function(h){l.add(lo(h,n,o,h,t,i))}):oh(t)&&t.forEach(function(h,y){l.set(y,lo(h,n,o,y,t,i))});var g=u?c?xl:Zr:c?qr:Ur,_=p?void 0:g(t);return Kf(_||t,function(h,y){_&&(y=h,h=t[y]),Dr(l,y,lo(h,n,o,y,t,i))}),l}var Bh=1,$h=4;function kn(t){return lo(t,Bh|$h)}var Rh="__lodash_hash_undefined__";function Fh(t){return this.__data__.set(t,Rh),this}function Lh(t){return this.__data__.has(t)}function so(t){var n=-1,o=t==null?0:t.length;for(this.__data__=new Ut;++n<o;)this.add(t[n])}so.prototype.add=so.prototype.push=Fh,so.prototype.has=Lh;function Dh(t,n){for(var o=-1,r=t==null?0:t.length;++o<r;)if(n(t[o],o,t))return!0;return!1}function oa(t,n){return t.has(n)}var Mh=1,jh=2;function Dl(t,n,o,r,a,i){var l=o&Mh,s=t.length,c=n.length;if(s!=c&&!(l&&c>s))return!1;var u=i.get(t),p=i.get(n);if(u&&p)return u==n&&p==t;var d=-1,f=!0,m=o&jh?new so:void 0;for(i.set(t,n),i.set(n,t);++d<s;){var g=t[d],_=n[d];if(r)var h=l?r(_,g,d,n,t,i):r(g,_,d,t,n,i);if(h!==void 0){if(h)continue;f=!1;break}if(m){if(!Dh(n,function(y,w){if(!oa(m,w)&&(g===y||a(g,y,o,r,i)))return m.push(w)})){f=!1;break}}else if(!(g===_||a(g,_,o,r,i))){f=!1;break}}return i.delete(t),i.delete(n),f}function vh(t){var n=-1,o=Array(t.size);return t.forEach(function(r,a){o[++n]=[a,r]}),o}function Kh(t){var n=-1,o=Array(t.size);return t.forEach(function(r){o[++n]=r}),o}var Uh=1,qh=2,Gh="[object Boolean]",zh="[object Date]",Hh="[object Error]",Wh="[object Map]",Yh="[object Number]",Jh="[object RegExp]",Xh="[object Set]",Zh="[object String]",Qh="[object Symbol]",ey="[object ArrayBuffer]",ty="[object DataView]",Ml=xt?xt.prototype:void 0,ra=Ml?Ml.valueOf:void 0;function ny(t,n,o,r,a,i,l){switch(o){case ty:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case ey:return!(t.byteLength!=n.byteLength||!i(new zo(t),new zo(n)));case Gh:case zh:case Yh:return Lr(+t,+n);case Hh:return t.name==n.name&&t.message==n.message;case Jh:case Zh:return t==n+"";case Wh:var s=vh;case Xh:var c=r&Uh;if(s||(s=Kh),t.size!=n.size&&!c)return!1;var u=l.get(t);if(u)return u==n;r|=qh,l.set(t,n);var p=Dl(s(t),s(n),r,a,i,l);return l.delete(t),p;case Qh:if(ra)return ra.call(t)==ra.call(n)}return!1}var oy=1,ry=Object.prototype,ay=ry.hasOwnProperty;function iy(t,n,o,r,a,i){var l=o&oy,s=Zr(t),c=s.length,u=Zr(n),p=u.length;if(c!=p&&!l)return!1;for(var d=c;d--;){var f=s[d];if(!(l?f in n:ay.call(n,f)))return!1}var m=i.get(t),g=i.get(n);if(m&&g)return m==n&&g==t;var _=!0;i.set(t,n),i.set(n,t);for(var h=l;++d<c;){f=s[d];var y=t[f],w=n[f];if(r)var E=l?r(w,y,f,n,t,i):r(y,w,f,t,n,i);if(!(E===void 0?y===w||a(y,w,o,r,i):E)){_=!1;break}h||(h=f=="constructor")}if(_&&!h){var C=t.constructor,b=n.constructor;C!=b&&"constructor"in t&&"constructor"in n&&!(typeof C=="function"&&C instanceof C&&typeof b=="function"&&b instanceof b)&&(_=!1)}return i.delete(t),i.delete(n),_}var ly=1,jl="[object Arguments]",vl="[object Array]",Ho="[object Object]",sy=Object.prototype,Kl=sy.hasOwnProperty;function cy(t,n,o,r,a,i){var l=Ot(t),s=Ot(n),c=l?vl:At(t),u=s?vl:At(n);c=c==jl?Ho:c,u=u==jl?Ho:u;var p=c==Ho,d=u==Ho,f=c==u;if(f&&oo(t)){if(!oo(n))return!1;l=!0,p=!1}if(f&&!p)return i||(i=new qt),l||Kr(t)?Dl(t,n,o,r,a,i):ny(t,n,c,o,r,a,i);if(!(o&ly)){var m=p&&Kl.call(t,"__wrapped__"),g=d&&Kl.call(n,"__wrapped__");if(m||g){var _=m?t.value():t,h=g?n.value():n;return i||(i=new qt),a(_,h,o,r,i)}}return f?(i||(i=new qt),iy(t,n,o,r,a,i)):!1}function Ul(t,n,o,r,a){return t===n?!0:t==null||n==null||!Lt(t)&&!Lt(n)?t!==t&&n!==n:cy(t,n,o,r,Ul,a)}function dy(t,n){return t!=null&&n in Object(t)}function ql(t,n,o){n=Ln(n,t);for(var r=-1,a=n.length,i=!1;++r<a;){var l=qo(n[r]);if(!(i=t!=null&&o(t,l)))break;t=t[l]}return i||++r!=a?i:(a=t==null?0:t.length,!!a&&Mr(a)&&Fr(l,a)&&(Ot(t)||jo(t)))}function uy(t,n){return t!=null&&ql(t,n,dy)}function fy(t){return Lt(t)&&Do(t)}function py(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}var my={"&":"&","<":"<",">":">",'"':""","'":"'"},gy=og(my),Gl=/[&<>"']/g,hy=RegExp(Gl.source);function yy(t){return t=Uo(t),t&&hy.test(t)?t.replace(Gl,gy):t}var _y=Object.prototype,by=_y.hasOwnProperty;function ky(t,n){return t!=null&&by.call(t,n)}function Wo(t,n){return t!=null&&ql(t,n,ky)}var wy=Math.min;function Cy(t,n,o){for(var r=Hf,a=t[0].length,i=t.length,l=i,s=Array(i),c=1/0,u=[];l--;){var p=t[l];c=wy(p.length,c),s[l]=a>=120&&p.length>=120?new so(l&&p):void 0}p=t[0];var d=-1,f=s[0];e:for(;++d<a&&u.length<c;){var m=p[d],g=m;if(m=m!==0?m:0,!(f?oa(f,g):r(u,g))){for(l=i;--l;){var _=s[l];if(!(_?oa(_,g):r(t[l],g)))continue e}f&&f.push(g),u.push(m)}}return u}function Ey(t){return fy(t)?t:[]}var Ny=Zf(function(t){var n=Br(t,Ey);return n.length&&n[0]===t[0]?Cy(n):[]});function xy(t,n){return n.length<2?t:zr(t,cl(n,0,-1))}var Ay="[object Map]",Sy="[object Set]",Py=Object.prototype,Iy=Py.hasOwnProperty;function zl(t){if(t==null)return!0;if(Do(t)&&(Ot(t)||typeof t=="string"||typeof t.splice=="function"||oo(t)||Kr(t)||jo(t)))return!t.length;var n=At(t);if(n==Ay||n==Sy)return!t.size;if(Mo(t))return!al(t).length;for(var o in t)if(Iy.call(t,o))return!1;return!0}function Dt(t,n){return Ul(t,n)}var Ty=Object.prototype,Oy=Ty.hasOwnProperty;function Hl(t,n){n=Ln(n,t);var o=-1,r=n.length;if(!r)return!0;for(var a=t==null||typeof t!="object"&&typeof t!="function";++o<r;){var i=n[o];if(typeof i=="string"){if(i==="__proto__"&&!Oy.call(t,"__proto__"))return!1;if(i==="constructor"&&o+1<r&&typeof n[o+1]=="string"&&n[o+1]==="prototype"){if(a&&o===0)continue;return!1}}}var l=xy(t,n);return l==null||delete l[qo(py(n))]}function Vy(t){return Tm(t)?void 0:t}var By=1,$y=2,Ry=4,tn=ll(function(t,n){var o={};if(t==null)return o;var r=!1;n=Br(n,function(i){return i=Ln(i,t),r||(r=i.length>1),i}),no(t,xl(t),o),r&&(o=lo(o,By|$y|Ry,Vy));for(var a=n.length;a--;)Hl(o,n[a]);return o});function Wl(t,n,o,r){if(!hn(t))return t;n=Ln(n,t);for(var a=-1,i=n.length,l=i-1,s=t;s!=null&&++a<i;){var c=qo(n[a]),u=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(a!=l){var p=s[c];u=void 0,u===void 0&&(u=hn(p)?p:Fr(n[a+1])?[]:{})}Dr(s,c,u),s=s[c]}return t}function Fy(t,n,o){for(var r=-1,a=n.length,i={};++r<a;){var l=n[r],s=zr(t,l);o(s,l)&&Wl(i,Ln(l,t),s)}return i}function Ly(t,n){return Fy(t,n,function(o,r){return uy(t,r)})}var Yl=ll(function(t,n){return t==null?{}:Ly(t,n)});function Jl(t,n,o){return t==null?t:Wl(t,n,o)}var Dy=0;function Yo(t){var n=++Dy;return Uo(t)+n}function Xl(t,n){return t==null?!0:Hl(t,n)}const My=[{authentication:{mode:"none"},ssl_verify:!0},{authentication:{basic:{}}},{authentication:{basic:{},oauth2:{token_headers:{},token_post_args:{}},oauth2_client:{}}}],wn=t=>{var n,o,r,a,i,l;((o=(n=t.confluent)==null?void 0:n.authentication)==null?void 0:o.mode)==="none"&&(delete t.confluent.authentication.oauth2,delete t.confluent.authentication.oauth2_client,delete t.confluent.authentication.basic),((a=(r=t.confluent)==null?void 0:r.authentication)==null?void 0:a.mode)==="basic"&&(delete t.confluent.authentication.oauth2,delete t.confluent.authentication.oauth2_client),((l=(i=t.confluent)==null?void 0:i.authentication)==null?void 0:l.mode)==="oauth2"&&delete t.confluent.authentication.basic,My.some(s=>Dt(t.confluent,s))&&(t.confluent=null)};function jy(t,n){const o=t.split(""),r=n.split(""),a=o.length,i=r.length,l=Array.from({length:a+1},()=>Array(i+1).fill(0));for(let p=1;p<=a;p++)for(let d=1;d<=i;d++)o[p-1]===r[d-1]?l[p][d]=l[p-1][d-1]+1:l[p][d]=Math.max(l[p-1][d],l[p][d-1]);let s="",c=a,u=i;for(;c>0&&u>0;)o[c-1]===r[u-1]?(s=o[c-1]+s,c--,u--):l[c-1][u]>l[c][u-1]?c--:u--;return s}function vy(t){const n=Date.now(),o=2688*60*60*1e3;return Math.abs(n-t)<=o}const Ky={"config-message_by_lua_functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},shamefullyTransformPayload:({payload:t})=>{var n;wn((n=t.config)==null?void 0:n.schema_registry)}},Uy={"config-message_by_lua_functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},shamefullyTransformPayload:({payload:t})=>{var n;wn((n=t.config)==null?void 0:n.schema_registry)}},qy={"config-message_by_lua_functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},shamefullyTransformPayload:({payload:t})=>{var n,o,r;wn((n=t.config)==null?void 0:n.schema_registry),(r=(o=t.config)==null?void 0:o.topics)==null||r.forEach(a=>{wn(a==null?void 0:a.schema_registry)})}},Gy={"config-message_by_lua_functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},shamefullyTransformPayload:({payload:t})=>{var n,o,r;wn((n=t.config)==null?void 0:n.schema_registry),(r=(o=t.config)==null?void 0:o.topics)==null||r.forEach(a=>{wn(a==null?void 0:a.schema_registry)})}},zy={shamefullyTransformPayload:({payload:t})=>{var n;wn((n=t.config)==null?void 0:n.schema_registry)}},Hy={"config-static_tags":{...$o,items:{type:"object",default:()=>({}),schema:{fields:[{model:"name",label:"name",type:"input",inputType:"string",id:"schema_name"},{model:"value",label:"value",type:"input",inputType:"string",id:"schema_value"}]}}}},Wy={"request-callout":"RequestCalloutForm","service-protection":{experimental:!0,component:"ServiceProtectionForm"},datakit:"DatakitForm","ai-mcp-proxy":"AIMcpProxyForm","jwt-signer":"CommonForm","upstream-oauth":{experimental:!0,component:"UpstreamOauthForm"},"key-auth":{experimental:!0,component:"KeyAuthForm"},"rate-limiting":{experimental:!0,component:"CommonForm"},jwt:{experimental:!0,component:"CommonForm"},"route-transformer-advanced":{experimental:!0,component:"CommonForm"},"request-transformer":{experimental:!0,component:"CommonForm"},"basic-auth":{experimental:!0,component:"CommonForm"}};function aa(t,n){const o=Wy[t];if(typeof o=="string")return o;if(n.includes(t))return o.component}function Yy(t,n,o){return o?o==="freeform":!!aa(t,n)}const ia=Symbol("EXPERIMENTAL_FREE_FORM_PROVIDER"),Jo={KM_2262_CODE_MODE:"KM-2262-code-mode",KM_2306_CONDITION_FIELD_314:"KM-2306-condition-field-314"},Zl=Symbol("TOASTER_PROVIDER"),Dn="__FREEFORM_SCHEMA_MAP__";function la(){return e.inject(ia,[])}function Jy(t){e.provide(ia,t)}function Xy(){const t=la();return{shouldUseFreeForm:(n,o)=>Yy(n,t,o),getFreeFormName:n=>aa(n,t)||"CommonForm"}}const Zy={shamefullyTransformPayload(t){var r;if(!((r=t.payload.config)!=null&&r.token_exchange))return t;const n={cache:{enabled:!0},request:{empty_audience:!1,empty_scopes:!1},subject_token_issuers:null};if(Dt(t.payload.config.token_exchange,n))return t.payload.config.token_exchange=null,t;const o=t.payload.config.token_exchange.subject_token_issuers;return o&&o.forEach(a=>{Dt(a.conditions,{})&&(a.conditions=null),a.conditions&&Object.values(a.conditions).every(i=>Array.isArray(i)&&i.length===0)&&(a.conditions=null)}),t}},Qy={shamefullyTransformPayload(t){var n,o,r,a,i;if(!((o=(n=t.payload.config)==null?void 0:n.access_logs)!=null&&o.custom_attributes_by_lua))return t;if(Dt((a=(r=t.payload.config)==null?void 0:r.access_logs)==null?void 0:a.custom_attributes_by_lua,{})){const l=(i=t.payload.config)==null?void 0:i.access_logs;l&&delete l.custom_attributes_by_lua}return t}},e_=(t,n)=>{const o=t.model.startsWith("config-"),r=n.model.startsWith("config-");return o&&!r?1:!o&&r?-1:0},Ql=(t,n)=>(t.order??0)-(n.order??0),es=(t,n)=>e_(t,n)||Ql(t,n)||t.model.localeCompare(n.model),Me={useI18n:Le,usePluginMetaData:Ru,usePluginHelpers:xi,useSchemas:t=>{const{capitalize:n}=ee.useStringHelpers(),{convertToDotNotation:o}=xi(),{i18n:{t:r}}=Le(),a=la(),i={"application-registration":{overwriteDefault:!0,formSchema:{...vu}},datadog:{...Ku},"exit-transformer":{...Uu},"upstream-tls":{"config-trusted_certificates":{type:"textArea",valueType:"array",rows:4,help:"A comma separated list of certificate values"}},statsd:{...nf},"statsd-advanced":{...of},"route-by-header":{...Zu},"ai-prompt-decorator":{...Fu},"ai-prompt-template":{...Lu},"ai-proxy-advanced":{...Du},"ai-rag-injector":{...Mu},"ai-llm-as-judge":{...ju},"vault-auth":{...af},"oas-validation":{...Hu},mocking:{...zu},"rate-limiting":{...Ro},"rate-limiting-advanced":(t==null?void 0:t.app)==="kongManager"?{"config-consumer_groups":Ro["config-consumer_groups"]}:{...Ro},"graphql-rate-limiting-advanced":{...qu},"injection-protection":{...Gu},"response-ratelimiting":{...Ro},"pre-function":{...Ri},"post-function":{...Ri},"request-transformer-advanced":{...Ju},"response-transformer":{...Fi},"response-transformer-advanced":{...Xu},zipkin:{...Hy},"upstream-oauth":{...rf},saml:{...Qu},"kafka-upstream":{...Ky},"solace-consume":{...ef},"solace-upstream":{...tf},"key-auth":Au(t),"key-auth-enc":Vu(t),confluent:{...Uy},"confluent-consume":{...qy},"kafka-consume":{...Gy},"kafka-log":{...zy},"openid-connect":{...Zy},opentelemetry:{...Qy}},l=()=>["created_at","updated_at","id","_isCustomPlugin","_supported_redis_partial_type","_redis_partial_path"],s=(k,N,P,$)=>{let I={};(N||k)&&(I=N||(k.fields?k.fields:k));const S=l().concat(k.blacklist?k.blacklist:[]),T=Object.keys(I).filter(j=>!S.includes(j)),K=T.indexOf("comparator");K>-1&&T.splice(K,1);let A={fields:[]};const U={};T.forEach(j=>{u(I[j],j,I,U,A,P)});const H=U.name,M=Nt[H],v=[],F=j=>{const x=["cluster-cache"];for(const D of x)if(j.model.includes(D))return!1;return new RegExp("(?<=-redis-).*").test(j.model)};if(A._supported_redis_partial_type=k._supported_redis_partial_type,A._redis_partial_path=k._redis_partial_path,ve.getSharedFormName(H)||aa(H,a)||M!=null&&M.useLegacyForm||t!=null&&t.credential||$==="freeform"){if(M!=null&&M.useLegacyForm&&(t!=null&&t.enableRedisPartial)&&k._supported_redis_partial_type){for(const j of A.fields)if(F(j)){v.push(j);continue}A.fields=A.fields.filter(j=>!F(j)),v.length&&A.fields.push({id:"_redis",fields:v,model:"__redis_partial",pluginType:k._isCustomPlugin?"custom":"bundled",redisType:k._supported_redis_partial_type,redisPath:k._redis_partial_path})}A.fields.sort((j,x)=>(j.order=j.order||0,x.order=x.order||0,j.order-x.order))}else{const j=[],x=[],D=[],G=[],te={};if(M!=null&&M.fieldRules){const Z=[...M.fieldRules.atLeastOneOf??[],...M.fieldRules.onlyOneOf??[],...M.fieldRules.mutuallyRequired??[]];if(M.fieldRules.onlyOneOfMutuallyRequired)for(const Ne of M.fieldRules.onlyOneOfMutuallyRequired)Z.push(...Ne);for(const Ne of Z)for(const Oe of Ne)te[Oe.replace(/-/g,"_").replace(/\./g,"-")]=!1}for(const Z of A.fields){if(t!=null&&t.enableRedisPartial&&k._supported_redis_partial_type&&F(Z)){G.push(Z);continue}if(Z.pinned){j.push(Z);continue}if(Z.required||te[Z.model]!==void 0){te[Z.model]===!1&&(te[Z.model]=!0),x.push(Z);continue}D.push(Z)}G.length&&D.push({id:"_redis",fields:G,model:"__redis_partial",pluginType:k._isCustomPlugin?"custom":"bundled",redisType:k._supported_redis_partial_type,redisPath:k._redis_partial_path,order:-1});const L=Object.entries(te).filter(([,Z])=>!Z).map(([Z])=>Z.replace(/-/g,".").replace(/_/g,"-"));L.length>0&&console.warn(`Unknown checked fields for plugin ${H}: ${L.join(", ")}`);const W=[];j.length>0&&W.push({fields:j.sort(Ql)}),(x.length>0||D.length>0)&&W.push({fields:x.sort(es),collapsible:{title:r("plugins.form.grouping.plugin_configuration.title"),description:r("plugins.form.grouping.plugin_configuration.description"),nestedCollapsible:{fields:D.sort(es),triggerLabel:{expand:r("plugins.form.grouping.advanced_parameters.view"),collapse:r("plugins.form.grouping.advanced_parameters.hide")}}},slots:{beforeContent:"plugin-config-before-content",emptyState:"plugin-config-empty-state"}}),A={groups:W}}return{schema:A,model:U,options:{noneSelectedText:"Nothing Selected...",helpAsHtml:!0}}},c=k=>Array.isArray(k.default)||k.default!=null&&typeof k.default!="object"&&k.default!=="function",u=(k,N,P,$,I,S)=>{const T=c(k);return $[N]=T?k.default:null,k.id=N,k.model=N,k.fields&&k.type==="record"?d(k,N,P,$,I,S):(P[N]=k,C(k,$),S&&S[N]&&p(P[N],S[N]),I.fields.push(k)),P},p=(k,N)=>(N&&(Object.assign(k,N),N.label&&(k.label=N.label)),k),d=(k,N,P,$,I,S)=>{k.fields.forEach(T=>{Object.keys(T).forEach(K=>{const A=T[K];P=u(A,N+"-"+K,P,$,I,S)})})},f=(k,N)=>{k.type="input",k.inputType="hidden",k.styleClasses="kong-form-hidden-field-wrapper";const P=t==null?void 0:t.entityId;N[k.model]=P?{id:P}:null},m=k=>{k.type="input",k.inputType="number",k.between&&k.between.length===2&&(k.min=k.between[0],k.max=k.between[1])},g=k=>{Object.prototype.hasOwnProperty.call(k,"one_of")?(k.type="select",k.values=k.one_of,k.selectOptions={hideNoneSelectedText:!0}):(k.type="input",k.inputType="text")},_=k=>{k.type="checkbox",k.default=!0,k.required=!1},h=k=>{if(k.type="object-advanced",k.values.type==="array"){const{type:N}=k.values.elements||{};k.schema={fields:[{schema:{fields:[{...je,model:k.model,valueArrayType:N==="integer"?"number":N||"string",inputAttributes:{...je.inputAttributes,type:N==="integer"?"number":"text",inputMode:N==="integer"?"numeric":"text"}}]}}]}}else k.values.fields&&(k.schema={fields:[{type:"object",model:"object",schema:{fields:k.values.fields.map(N=>{const P=Object.keys(N)[0];return{model:P,type:"input",label:n(P),placeholder:P,inputType:N[P].type}})}}]})},y=k=>k.fields.reduce((N,P)=>(P.fields&&P.fields.forEach($=>{N[$.model]=$}),P.model&&(N[P.model]=P),N),{}),w=(k,N)=>{if(!ve.customFields.includes(k.model))return;const P=y(k);ve.customFields.forEach($=>{Object.keys(P).forEach(I=>{const S=c(P[I]);N[I]=S?P[I].default:null}),delete N[$]})},E=(k,N)=>k.inputType==="hidden"?"":o(n(k.label||N.replace(/_/g," "))),C=(k,N)=>{switch(w(k,N),k.type){case"foreign":f(k,N);break;case"number":m(k),k.attributes={step:"any"};break;case"integer":m(k);break;case"string":g(k);break;case"boolean":_(k);break;case"map":h(k);break}k.inputType==="foreign"&&f(k,N),k.label=E(k,k.model)};function b(k,N){if(N==null||N.type&&N.type!=="record"||typeof k!="object"||k==null)return k;const P={};for(const $ of N.fields){const I=Object.keys($)[0],S=$[I];S.type==="record"?P[I]=b(k[I],S):S.type==="array"&&Array.isArray(k[I])&&S.elements.type==="record"?P[I]=k[I].map(T=>b(T,S.elements)):P[I]=k[I]}return P}return{buildFormSchema:u,parseSchema:s,customSchemas:i,typedefs:$n,pruneRecord:b}},useExperimentalFreeForms:la,useProvideExperimentalFreeForms:Jy,useFreeFormResolver:Xy},t_=(t,n)=>({type:"array",valueType:"string",valueArrayType:"array",itemContainerComponent:"FieldArrayItem",fieldClasses:"kong-form-array-field",fieldItemsClasses:"kong-form-array-field-item",validator:"array",styleClasses:"kong-form-field-wrapper",newElementButtonLabel:"+ Add",newElementButtonLabelClasses:"kong-form-new-element-button-label",items:{type:"select",values:t,selectOptions:{hideNoneSelectedText:!0},...(n==null?void 0:n[0])!=null?{default:n[0]}:{}}}),dt="/v2/control-planes/{controlPlaneId}/core-entities",gt="/{workspace}",We={list:{konnect:{all:`${dt}/plugins`,forEntity:`${dt}/{entityType}/{entityId}/plugins`},kongManager:{all:`${gt}/plugins`,forEntity:`${gt}/{entityType}/{entityId}/plugins`}},select:{konnect:{availablePlugins:`${dt}/v1/available-plugins`,streamingCustomPlugins:`${dt}/custom-plugins`,schemaCustomPluginItem:`${dt}/plugin-schemas/{pluginId}`,streamingCustomPluginItem:`${dt}/custom-plugins/{pluginId}`},kongManager:{availablePlugins:`${gt}/kong`,availablePluginsForOss:"/"}},form:{konnect:{create:{all:`${dt}/plugins`,forEntity:`${dt}/{entityType}/{entityId}/plugins`},edit:{all:`${dt}/plugins/{id}`,forEntity:`${dt}/{entityType}/{entityId}/plugins/{id}`},pluginSchema:"/v2/control-planes/{controlPlaneId}/schemas/core-entities/plugins/{plugin}",credential:{create:`${dt}/{resourceEndpoint}`,edit:`${dt}/{resourceEndpoint}/{id}`},credentialSchema:"/v2/control-planes/{controlPlaneId}/schemas/core-entities/{plugin}",entityGetOne:`${dt}/{entity}/{id}`,entityGetAll:`${dt}/{entity}`,entityPeek:`${dt}/{entity}?size={amount}`},kongManager:{create:{all:`${gt}/plugins`,forEntity:`${gt}/{entityType}/{entityId}/plugins`},edit:{all:`${gt}/plugins/{id}`,forEntity:`${gt}/{entityType}/{entityId}/plugins/{id}`},pluginSchema:`${gt}/schemas/plugins/{plugin}`,credential:{create:`${gt}/{resourceEndpoint}`,edit:`${gt}/{resourceEndpoint}/{id}`},credentialSchema:`${gt}/schemas/{plugin}`,entityGetOne:`${gt}/{entity}/{id}`,entityGetAll:`${gt}/{entity}`}},item:{konnect:{all:`${dt}/plugins/{id}`,forEntity:`${dt}/{entityType}/{entityId}/plugins/{id}`},kongManager:{all:`${gt}/plugins/{id}`,forEntity:`${gt}/{entityType}/{entityId}/plugins/{id}`}}},n_={key:0},o_=ye(e.defineComponent({__name:"PluginFieldRuleAlerts",props:{rules:{}},setup(t){const n=t,{formatPluginFieldLabel:o}=Me.usePluginHelpers(),{i18n:{t:r}}=Me.useI18n(),a=s=>s.map(c=>c.replace(/^[cC]onfig\./,"").split(".").map(u=>o(u)).join(".")).join(", "),i=(s,c)=>r(s,{parameters:a(c)}),l=e.computed(()=>{const s=[];if(n.rules.atLeastOneOf)for(const c of n.rules.atLeastOneOf)s.push(i("plugins.form.field_rules.at_least_one_of",c));if(n.rules.onlyOneOf)for(const c of n.rules.onlyOneOf)s.push(i("plugins.form.field_rules.only_one_of",c));if(n.rules.mutuallyRequired)for(const c of n.rules.mutuallyRequired)s.push(i("plugins.form.field_rules.mutually_required",c));return s});return(s,c)=>{const u=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(u,{class:"plugin-field-rule-alerts"},{default:e.withCtx(()=>[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(p,d)=>(e.openBlock(),e.createElementBlock("li",{key:`simple-alert-${d}`},e.toDisplayString(p),1))),128)),n.rules.onlyOneOfMutuallyRequired&&n.rules.onlyOneOfMutuallyRequired.length>0?(e.openBlock(),e.createElementBlock("li",n_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.rules.onlyOneOfMutuallyRequired,(p,d)=>(e.openBlock(),e.createElementBlock("div",{key:`only-one-mutually-alert-${d}`},[e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("plugins.form.field_rules.only_one_of_mutually_required")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(f,m)=>(e.openBlock(),e.createElementBlock("li",{key:`only-one-mutually-alert-${d}-combination-${m}`},e.toDisplayString(a(f)),1))),128))])]))),128))])):e.createCommentVNode("",!0)])]),_:1})}}}),[["__scopeId","data-v-d8eb79cf"]]),r_="__request_callout_";function ts(){return Yo(r_)}function sa(t){return t.map(n=>({value:n,label:`${n}`}))}const ca="*",Cn="$",Xo=".";function Xe(...t){return t.join(Xo)}function da(...t){return Xe(Cn,...t)}function ns(t){return t.startsWith(Xe(Cn,""))}function _t(t){return t.split(Xo).filter(n=>n!=="")}function En(t){const n=_t(t);return n[n.length-1]}function a_(t){return t.startsWith(Cn)&&(t=Xe(..._t(t).slice(1))),t}function i_(t,n){const o=new RegExp("(?<=config-redis-).*"),r=/Config\.Redis.*/;return n.filter(i=>{const l=i.model.match(o);return l&&!Object.keys(t).includes(l[0])}).map(i=>{const l=i.label.match(r);return{label:l?l[0]:i.label,key:i.model,value:"N/A",type:"text"}})}function l_(t){const n=e.toValue(t);return n?n.type==="set"&&n.elements.type==="string"&&!n.elements.one_of:!1}function os(t,n){return[...t].sort((o,r)=>{const a=Object.keys(o)[0],i=Object.keys(r)[0],l=n.indexOf(a),s=n.indexOf(i);return l===-1&&s===-1?0:l===-1?1:s===-1?-1:l-s})}function rs(t,n){const o=new Map;t.forEach(u=>{const p=Object.keys(u)[0];o.set(p,u)});const r=new Map;n.forEach((u,p)=>{u.forEach((d,f)=>{r.has(d)||r.set(d,[]),r.get(d).push({bundleIndex:p,position:f})})});const a=new Set,i=[],l=new Set,s=u=>{const p=r.get(u);if(!p)return!0;for(const{bundleIndex:d,position:f}of p){const m=n[d];for(let g=0;g<f;g++){const _=m[g];if(o.has(_)&&!a.has(_))return!1}}return!0},c=u=>{if(a.has(u))return;const p=o.get(u);if(!p)return;i.push(p),a.add(u),l.delete(u);const d=r.get(u);if(d)for(const{bundleIndex:m,position:g}of d){const _=n[m];for(let h=g+1;h<_.length;h++){const y=_[h];if(!a.has(y)){const w=o.get(y);w&&(i.push(w),a.add(y),l.delete(y))}}}const f=Array.from(l);for(const m of f)s(m)&&c(m)};for(const u of t){const p=Object.keys(u)[0];a.has(p)||(s(p)?c(p):l.add(p))}return i}function s_(t){var r;const n=_t(t);let o={parent:null};for(n.pop();n.length;){const a=n.shift();o.path=(r=o.parent)!=null&&r.path?Xe(o.parent.path,a):a,o={parent:o}}return o}function as(t){return e.computed(()=>s_(e.toValue(t)))}const is=Symbol("free-form-field-path"),ua=Symbol("free-form-field-renderer-slots"),ls=Symbol("free-form-field-reset-label-path-setting"),Mn="free-form-field-renderers-slot",c_={tooltipAttributes:{maxWidth:"300px",placement:"top"}};function d_(t,n=""){const o={},r=t;return Array.isArray(r.fields)?Object.assign(o,fa(r,n)):t.type==="array"&&t.elements&&Object.assign(o,pa(t,n)),o}function fa(t,n=""){const o={};if(Array.isArray(t.fields))for(const r of t.fields){const a=Object.keys(r)[0],i=r[a],l=n?Xe(n,a):a;if(o[l]=i,i.type==="record"&&Array.isArray(i.fields)){const s=fa(i,l);Object.assign(o,s)}else if(i.type==="array"&&i.elements){const s=pa(i,l);Object.assign(o,s)}}return o}function pa(t,n=""){const o={};if(t.elements){const r=t.elements,a=Xe(n,ca);if(o[a]=r,r.type==="record"&&Array.isArray(r.fields)){const i=fa(r,a);Object.assign(o,i)}else if(r.type==="array"&&r.elements){const i=pa(r,a);Object.assign(o,i)}}return o}function Zo(t){const n=_t(t).map(o=>/^\d+$/.test(o)?ca:o);return Xe(...n)}function u_(t){const n=e.toValue(t),o=e.computed(()=>n?d_(n):{});function r(f){var m;return f==null?n:(m=o.value)==null?void 0:m[Zo(f)]}function a(f,m=!1){const g=r(f);return g?g.default!==void 0?g.default:m||g.required?g.type==="record"?i(g,f):g.type==="array"?[]:g.type==="map"?{}:null:null:null}function i(f,m){const g={};if(Array.isArray(f.fields))for(const _ of f.fields){const h=Object.keys(_)[0],y=m?`${m}.${h}`:h,w=a(y,!1);w!==void 0&&(g[h]=w)}return g}function l(f){return f?a(f,!0):i(r(),"")}function s(f){const m=r(f),g=m!=null&&m.description?Io.marked.parse(m.description,{async:!1}):void 0;return{...c_,"data-testid":`ff-label-${f}`,info:g}}function c(f){var g;const m=r(f);return sa((m==null?void 0:m.one_of)||((g=m.elements)==null?void 0:g.one_of)||[])}function u(f){const m=r(f),g=m==null?void 0:m.default;let _=null;if((m==null?void 0:m.type)==="foreign"&&(g!=null&&g.id))_=g.id;else{if(g==null||typeof g=="object"||g==="")return null;if(Array.isArray(g)){if(g.length===0)return null;_=g.join(", ")}else _=g.toString()}return`Default: ${_}`}function p(){return o.value}function d(f){const m=r(f);return(m==null?void 0:m.required)?l(f):null}return{getSchemaMap:p,getSchema:r,getDefault:l,getSelectItems:c,getLabelAttributes:s,getPlaceholder:u,getEmptyOrDefault:d}}function f_(t){const n=e.ref({}),o=e.ref(new Set);function r(g,_){const h=g.map(w=>_t(w).length),y=h[0];if(!h.every(w=>w===y)){const w=g.map((E,C)=>` - '${E}' is at level ${h[C]}`).join(`
|
|
13
|
+
client. If missing, it will be generated for you.`,inputType:"password",encrypted:!0}},{tags:mn},{ttl:{help:"Time-to-live (in seconds) value for data"}}]},Vu=t=>(t==null?void 0:t.app)==="kongManager"?{shamefullyTransformPayload:({payload:n})=>{(t!=null&&t.credential&&typeof n.ttl!="number"||Number.isNaN(n.ttl))&&(n.ttl=0)}}:{},Bu={fields:[{id:{type:"string",auto:!0,uuid:!0,description:"A string representing a UUID (universally unique identifier)."}},{created_at:{type:"integer",auto:!0,timestamp:!0,description:"An integer representing an automatic Unix timestamp in seconds."}},{consumer:{required:!0,on_delete:"cascade",reference:"consumers",type:"foreign"}},{key:{required:!1,unique:!0,auto:!0,encrypted:!0,type:"string"}},{tags:{type:"set",elements:{type:"string",required:!0,description:"A string representing a tag."},description:"A set of strings representing tags."}},{ttl:{between:[0,1e8],description:"Time-to-live (in seconds) value for data",type:"number"}}]},Nt={"basic-auth":{descriptionKey:"plugins.meta.basic-auth.description",nameKey:"plugins.meta.basic-auth.name",freeformRenderRules:{dependencies:{"config.brute_force_protection.redis":["config.brute_force_protection.strategy","redis"]}},...R.PLUGIN_GROUP_AND_SCOPE_MAP["basic-auth"]},"hmac-auth":{descriptionKey:"plugins.meta.hmac-auth.description",nameKey:"plugins.meta.hmac-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["hmac-auth"]},"jwt-signer":{descriptionKey:"plugins.meta.jwt-signer.description",nameKey:"plugins.meta.jwt-signer.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["jwt-signer"]},jwt:{descriptionKey:"plugins.meta.jwt.description",nameKey:"plugins.meta.jwt.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.jwt},"key-auth":{descriptionKey:"plugins.meta.key-auth.description",nameKey:"plugins.meta.key-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["key-auth"]},"key-auth-enc":{descriptionKey:"plugins.meta.key-auth-enc.description",nameKey:"plugins.meta.key-auth-enc.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["key-auth-enc"]},"ldap-auth-advanced":{descriptionKey:"plugins.meta.ldap-auth-advanced.description",nameKey:"plugins.meta.ldap-auth-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["ldap-auth-advanced"]},"ldap-auth":{descriptionKey:"plugins.meta.ldap-auth.description",nameKey:"plugins.meta.ldap-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["ldap-auth"]},"oauth2-introspection":{descriptionKey:"plugins.meta.oauth2-introspection.description",nameKey:"plugins.meta.oauth2-introspection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["oauth2-introspection"]},oauth2:{descriptionKey:"plugins.meta.oauth2.description",nameKey:"plugins.meta.oauth2.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.oauth2},"openid-connect":{descriptionKey:"plugins.meta.openid-connect.description",nameKey:"plugins.meta.openid-connect.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["openid-connect"]},"mtls-auth":{descriptionKey:"plugins.meta.mtls-auth.description",nameKey:"plugins.meta.mtls-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["mtls-auth"]},"vault-auth":{descriptionKey:"plugins.meta.vault-auth.description",nameKey:"plugins.meta.vault-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["vault-auth"]},"bot-detection":{descriptionKey:"plugins.meta.bot-detection.description",nameKey:"plugins.meta.bot-detection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["bot-detection"]},cors:{descriptionKey:"plugins.meta.cors.description",nameKey:"plugins.meta.cors.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.cors},"ip-restriction":{descriptionKey:"plugins.meta.ip-restriction.description",nameKey:"plugins.meta.ip-restriction.name",fieldRules:{atLeastOneOf:[["config.allow","config.deny"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["ip-restriction"]},opa:{descriptionKey:"plugins.meta.opa.description",nameKey:"plugins.meta.opa.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.opa},"kubernetes-sidecar-injector":{descriptionKey:"plugins.meta.kubernetes-sidecar-injector.description",nameKey:"plugins.meta.kubernetes-sidecar-injector.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["kubernetes-sidecar-injector"]},"request-validator":{descriptionKey:"plugins.meta.request-validator.description",nameKey:"plugins.meta.request-validator.name",fieldRules:{atLeastOneOf:[["config.body_schema","config.parameter_schema"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-validator"]},acl:{descriptionKey:"plugins.meta.acl.description",nameKey:"plugins.meta.acl.name",fieldRules:{onlyOneOf:[["config.allow","config.deny"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.acl},canary:{descriptionKey:"plugins.meta.canary.description",nameKey:"plugins.meta.canary.name",fieldRules:{atLeastOneOf:[["config.upstream_uri","config.upstream_host","config.upstream_port"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.canary},"forward-proxy":{descriptionKey:"plugins.meta.forward-proxy.description",nameKey:"plugins.meta.forward-proxy.name",fieldRules:{onlyOneOfMutuallyRequired:[[["config.http_proxy_host","config.http_proxy_port"],["config.https_proxy_host","config.https_proxy_port"]]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["forward-proxy"]},"proxy-cache":{descriptionKey:"plugins.meta.proxy-cache.description",nameKey:"plugins.meta.proxy-cache.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["proxy-cache"]},"proxy-cache-advanced":{descriptionKey:"plugins.meta.proxy-cache-advanced.description",nameKey:"plugins.meta.proxy-cache-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["proxy-cache-advanced"]},"graphql-proxy-cache-advanced":{descriptionKey:"plugins.meta.graphql-proxy-cache-advanced.description",nameKey:"plugins.meta.graphql-proxy-cache-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["graphql-proxy-cache-advanced"]},"rate-limiting-advanced":{descriptionKey:"plugins.meta.rate-limiting-advanced.description",nameKey:"plugins.meta.rate-limiting-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["rate-limiting-advanced"]},"rate-limiting":{descriptionKey:"plugins.meta.rate-limiting.description",nameKey:"plugins.meta.rate-limiting.name",fieldRules:{atLeastOneOf:[["config.second","config.minute","config.hour","config.day","config.month","config.year"]]},freeformRenderRules:{bundles:[["config.policy","config.redis"]],dependencies:{"config.redis":["config.policy","redis"]}},...R.PLUGIN_GROUP_AND_SCOPE_MAP["rate-limiting"]},"graphql-rate-limiting-advanced":{descriptionKey:"plugins.meta.graphql-rate-limiting-advanced.description",nameKey:"plugins.meta.graphql-rate-limiting-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["graphql-rate-limiting-advanced"]},mocking:{descriptionKey:"plugins.meta.mocking.description",nameKey:"plugins.meta.mocking.name",fieldRules:{atLeastOneOf:[["config.api_specification_filename","config.api_specification"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.mocking},"request-size-limiting":{descriptionKey:"plugins.meta.request-size-limiting.description",nameKey:"plugins.meta.request-size-limiting.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-size-limiting"]},"request-termination":{descriptionKey:"plugins.meta.request-termination.description",nameKey:"plugins.meta.request-termination.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-termination"]},"response-ratelimiting":{descriptionKey:"plugins.meta.response-ratelimiting.description",nameKey:"plugins.meta.response-ratelimiting.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["response-ratelimiting"]},"route-by-header":{descriptionKey:"plugins.meta.route-by-header.description",nameKey:"plugins.meta.route-by-header.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["route-by-header"]},"ai-proxy":{descriptionKey:"plugins.meta.ai-proxy.description",nameKey:"plugins.meta.ai-proxy.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-proxy"]},"ai-prompt-decorator":{descriptionKey:"plugins.meta.ai-prompt-decorator.description",nameKey:"plugins.meta.ai-prompt-decorator.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-prompt-decorator"]},"ai-prompt-template":{descriptionKey:"plugins.meta.ai-prompt-template.description",nameKey:"plugins.meta.ai-prompt-template.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-prompt-template"]},"ai-prompt-guard":{descriptionKey:"plugins.meta.ai-prompt-guard.description",nameKey:"plugins.meta.ai-prompt-guard.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-prompt-guard"]},"ai-request-transformer":{descriptionKey:"plugins.meta.ai-request-transformer.description",nameKey:"plugins.meta.ai-request-transformer.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-request-transformer"]},"ai-response-transformer":{descriptionKey:"plugins.meta.ai-response-transformer.description",nameKey:"plugins.meta.ai-response-transformer.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-response-transformer"]},"ai-rate-limiting-advanced":{descriptionKey:"plugins.meta.ai-rate-limiting-advanced.description",nameKey:"plugins.meta.ai-rate-limiting-advanced.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-rate-limiting-advanced"]},"ai-azure-content-safety":{descriptionKey:"plugins.meta.ai-azure-content-safety.description",nameKey:"plugins.meta.ai-azure-content-safety.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-azure-content-safety"]},"aws-lambda":{descriptionKey:"plugins.meta.aws-lambda.description",nameKey:"plugins.meta.aws-lambda.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["aws-lambda"]},"azure-functions":{descriptionKey:"plugins.meta.azure-functions.description",nameKey:"plugins.meta.azure-functions.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["azure-functions"]},openwhisk:{descriptionKey:"plugins.meta.openwhisk.description",nameKey:"plugins.meta.openwhisk.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.openwhisk},"pre-function":{descriptionKey:"plugins.meta.pre-function.description",nameKey:"plugins.meta.pre-function.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["pre-function"]},"post-function":{descriptionKey:"plugins.meta.post-function.description",nameKey:"plugins.meta.post-function.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["post-function"]},datadog:{descriptionKey:"plugins.meta.datadog.description",nameKey:"plugins.meta.datadog.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.datadog},prometheus:{descriptionKey:"plugins.meta.prometheus.description",nameKey:"plugins.meta.prometheus.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.prometheus},zipkin:{descriptionKey:"plugins.meta.zipkin.description",nameKey:"plugins.meta.zipkin.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.zipkin},collector:{descriptionKey:"plugins.meta.collector.description",nameKey:"plugins.meta.collector.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.collector},"response-transformer-advanced":{descriptionKey:"plugins.meta.response-transformer-advanced.description",nameKey:"plugins.meta.response-transformer-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["response-transformer-advanced"]},"correlation-id":{descriptionKey:"plugins.meta.correlation-id.description",nameKey:"plugins.meta.correlation-id.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["correlation-id"]},"request-transformer-advanced":{descriptionKey:"plugins.meta.request-transformer-advanced.description",nameKey:"plugins.meta.request-transformer-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-transformer-advanced"]},"request-transformer":{descriptionKey:"plugins.meta.request-transformer.description",nameKey:"plugins.meta.request-transformer.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-transformer"]},"response-transformer":{descriptionKey:"plugins.meta.response-transformer.description",nameKey:"plugins.meta.response-transformer.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["response-transformer"]},"route-transformer-advanced":{descriptionKey:"plugins.meta.route-transformer-advanced.description",nameKey:"plugins.meta.route-transformer-advanced.name",fieldRules:{atLeastOneOf:[["config.path","config.port","config.host"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["route-transformer-advanced"]},"kafka-upstream":{descriptionKey:"plugins.meta.kafka-upstream.description",nameKey:"plugins.meta.kafka-upstream.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["kafka-upstream"]},degraphql:{descriptionKey:"plugins.meta.degraphql.description",nameKey:"plugins.meta.degraphql.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.degraphql},"exit-transformer":{descriptionKey:"plugins.meta.exit-transformer.description",nameKey:"plugins.meta.exit-transformer.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["exit-transformer"]},jq:{descriptionKey:"plugins.meta.jq.description",nameKey:"plugins.meta.jq.name",fieldRules:{atLeastOneOf:[["config.request_jq_program","config.response_jq_program"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.jq},"file-log":{descriptionKey:"plugins.meta.file-log.description",nameKey:"plugins.meta.file-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["file-log"]},"http-log":{descriptionKey:"plugins.meta.http-log.description",nameKey:"plugins.meta.http-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["http-log"]},loggly:{descriptionKey:"plugins.meta.loggly.description",nameKey:"plugins.meta.loggly.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.loggly},"statsd-advanced":{descriptionKey:"plugins.meta.statsd-advanced.description",nameKey:"plugins.meta.statsd-advanced.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["statsd-advanced"]},statsd:{descriptionKey:"plugins.meta.statsd.description",nameKey:"plugins.meta.statsd.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.statsd},syslog:{descriptionKey:"plugins.meta.syslog.description",nameKey:"plugins.meta.syslog.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.syslog},"tcp-log":{descriptionKey:"plugins.meta.tcp-log.description",nameKey:"plugins.meta.tcp-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["tcp-log"]},"udp-log":{descriptionKey:"plugins.meta.udp-log.description",nameKey:"plugins.meta.udp-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["udp-log"]},"kafka-log":{descriptionKey:"plugins.meta.kafka-log.description",nameKey:"plugins.meta.kafka-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["kafka-log"]},session:{descriptionKey:"plugins.meta.session.description",nameKey:"plugins.meta.session.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.session},"upstream-tls":{descriptionKey:"plugins.meta.upstream-tls.description",nameKey:"plugins.meta.upstream-tls.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["upstream-tls"]},"application-registration":{descriptionKey:"plugins.meta.application-registration.description",nameKey:"plugins.meta.application-registration.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["application-registration"]},"konnect-application-auth":{descriptionKey:"plugins.meta.konnect-application-auth.description",nameKey:"plugins.meta.konnect-application-auth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["konnect-application-auth"]},acme:{descriptionKey:"plugins.meta.acme.description",nameKey:"plugins.meta.acme.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.acme},"grpc-gateway":{descriptionKey:"plugins.meta.grpc-gateway.description",nameKey:"plugins.meta.grpc-gateway.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["grpc-gateway"]},"grpc-web":{descriptionKey:"plugins.meta.grpc-web.description",nameKey:"plugins.meta.grpc-web.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["grpc-web"]},"upstream-timeout":{descriptionKey:"plugins.meta.upstream-timeout.description",nameKey:"plugins.meta.upstream-timeout.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["upstream-timeout"]},opentelemetry:{descriptionKey:"plugins.meta.opentelemetry.description",nameKey:"plugins.meta.opentelemetry.name",fieldRules:{atLeastOneOf:[["config.access_logs_endpoint","config.traces_endpoint","config.logs_endpoint"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP.opentelemetry},"websocket-validator":{descriptionKey:"plugins.meta.websocket-validator.description",nameKey:"plugins.meta.websocket-validator.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["websocket-validator"]},"websocket-size-limit":{descriptionKey:"plugins.meta.websocket-size-limit.description",nameKey:"plugins.meta.websocket-size-limit.name",fieldRules:{atLeastOneOf:[["config.client_max_payload","config.upstream_max_payload"]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["websocket-size-limit"]},"tls-metadata-headers":{descriptionKey:"plugins.meta.tls-metadata-headers.description",nameKey:"plugins.meta.tls-metadata-headers.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["tls-metadata-headers"]},"tls-handshake-modifier":{descriptionKey:"plugins.meta.tls-handshake-modifier.description",nameKey:"plugins.meta.tls-handshake-modifier.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["tls-handshake-modifier"]},"oas-validation":{descriptionKey:"plugins.meta.oas-validation.description",nameKey:"plugins.meta.oas-validation.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["oas-validation"]},"jwe-decrypt":{descriptionKey:"plugins.meta.jwe-decrypt.description",nameKey:"plugins.meta.jwe-decrypt.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["jwe-decrypt"]},"xml-threat-protection":{descriptionKey:"plugins.meta.xml-threat-protection.description",nameKey:"plugins.meta.xml-threat-protection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["xml-threat-protection"]},saml:{descriptionKey:"plugins.meta.saml.description",nameKey:"plugins.meta.saml.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.saml},"app-dynamics":{descriptionKey:"plugins.meta.app-dynamics.description",nameKey:"plugins.meta.app-dynamics.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["app-dynamics"]},"json-threat-protection":{descriptionKey:"plugins.meta.json-threat-protection.description",nameKey:"plugins.meta.json-threat-protection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["json-threat-protection"]},"standard-webhooks":{descriptionKey:"plugins.meta.standard-webhooks.description",nameKey:"plugins.meta.standard-webhooks.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["standard-webhooks"]},"ai-proxy-advanced":{descriptionKey:"plugins.meta.ai-proxy-advanced.description",nameKey:"plugins.meta.ai-proxy-advanced.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-proxy-advanced"]},"ai-semantic-cache":{descriptionKey:"plugins.meta.ai-semantic-cache.description",nameKey:"plugins.meta.ai-semantic-cache.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-semantic-cache"]},"ai-semantic-prompt-guard":{descriptionKey:"plugins.meta.ai-semantic-prompt-guard.description",nameKey:"plugins.meta.ai-semantic-prompt-guard.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-semantic-prompt-guard"]},"header-cert-auth":{descriptionKey:"plugins.meta.header-cert-auth.description",nameKey:"plugins.meta.header-cert-auth.name",fieldRules:{onlyOneOfMutuallyRequired:[[["config.http_proxy_host","config.http_proxy_port"],["config.https_proxy_host","config.https_proxy_port"]]]},...R.PLUGIN_GROUP_AND_SCOPE_MAP["header-cert-auth"]},"upstream-oauth":{descriptionKey:"plugins.meta.upstream-oauth.description",nameKey:"plugins.meta.upstream-oauth.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["upstream-oauth"],freeformRenderRules:{bundles:[["config.cache.strategy","config.cache.redis"]],dependencies:{"config.cache.redis":["config.cache.strategy","redis"]}}},confluent:{descriptionKey:"plugins.meta.confluent.description",nameKey:"plugins.meta.confluent.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.confluent},"service-protection":{descriptionKey:"plugins.meta.service-protection.description",nameKey:"plugins.meta.service-protection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["service-protection"]},"injection-protection":{descriptionKey:"plugins.meta.injection-protection.description",nameKey:"plugins.meta.injection-protection.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["injection-protection"]},redirect:{descriptionKey:"plugins.meta.redirect.description",nameKey:"plugins.meta.redirect.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.redirect},"kafka-consume":{descriptionKey:"plugins.meta.kafka-consume.description",nameKey:"plugins.meta.kafka-consume.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["kafka-consume"]},"confluent-consume":{descriptionKey:"plugins.meta.confluent-consume.description",nameKey:"plugins.meta.confluent-consume.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["confluent-consume"]},"request-callout":{descriptionKey:"plugins.meta.request-callout.description",nameKey:"plugins.meta.request-callout.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["request-callout"]},"ai-sanitizer":{descriptionKey:"plugins.meta.ai-sanitizer.description",nameKey:"plugins.meta.ai-sanitizer.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-sanitizer"]},"ai-rag-injector":{descriptionKey:"plugins.meta.ai-rag-injector.description",nameKey:"plugins.meta.ai-rag-injector.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-rag-injector"]},datakit:{descriptionKey:"plugins.meta.datakit.description",nameKey:"plugins.meta.datakit.name",useUIData:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP.datakit},"ai-prompt-compressor":{descriptionKey:"plugins.meta.ai-prompt-compressor.description",nameKey:"plugins.meta.ai-prompt-compressor.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-prompt-compressor"]},"solace-upstream":{descriptionKey:"plugins.meta.solace-upstream.description",nameKey:"plugins.meta.solace-upstream.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["solace-upstream"]},"ai-aws-guardrails":{descriptionKey:"plugins.meta.ai-aws-guardrails.description",nameKey:"plugins.meta.ai-aws-guardrails.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-aws-guardrails"]},ace:{descriptionKey:"plugins.meta.ace.description",nameKey:"plugins.meta.ace.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP.ace},"solace-consume":{descriptionKey:"plugins.meta.solace-consume.description",nameKey:"plugins.meta.solace-consume.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["solace-consume"]},"solace-log":{descriptionKey:"plugins.meta.solace-log.description",nameKey:"plugins.meta.solace-log.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["solace-log"]},"ai-llm-as-judge":{descriptionKey:"plugins.meta.ai-llm-as-judge.description",nameKey:"plugins.meta.ai-llm-as-judge.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-llm-as-judge"]},"ai-mcp-proxy":{descriptionKey:"plugins.meta.ai-mcp-proxy.description",nameKey:"plugins.meta.ai-mcp-proxy.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-mcp-proxy"]},"ai-gcp-model-armor":{descriptionKey:"plugins.meta.ai-gcp-model-armor.description",nameKey:"plugins.meta.ai-gcp-model-armor.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-gcp-model-armor"]},"ai-mcp-oauth2":{descriptionKey:"plugins.meta.ai-mcp-oauth2.description",nameKey:"plugins.meta.ai-mcp-oauth2.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-mcp-oauth2"]},"ai-semantic-response-guard":{descriptionKey:"plugins.meta.ai-semantic-response-guard.description",nameKey:"plugins.meta.ai-semantic-response-guard.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-semantic-response-guard"]},"ai-lakera-guard":{descriptionKey:"plugins.meta.ai-lakera-guard.description",nameKey:"plugins.meta.ai-lakera-guard.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-lakera-guard"]},"ai-a2a-proxy":{descriptionKey:"plugins.meta.ai-a2a-proxy.description",nameKey:"plugins.meta.ai-a2a-proxy.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-a2a-proxy"]},"ai-custom-guardrail":{descriptionKey:"plugins.meta.ai-custom-guardrail.description",nameKey:"plugins.meta.ai-custom-guardrail.name",useLegacyForm:!0,...R.PLUGIN_GROUP_AND_SCOPE_MAP["ai-custom-guardrail"]},"metering-and-billing":{descriptionKey:"plugins.meta.metering-and-billing.description",nameKey:"plugins.meta.metering-and-billing.name",...R.PLUGIN_GROUP_AND_SCOPE_MAP["metering-and-billing"]}},Rn={acl:{titleKey:"plugins.meta.acl.name",plugin:"acl",schema:Si,nameKey:"plugins.meta.acl.credential_name",endpoint:"/acls",schemaEndpoint:"acls",fields:pn(Si),applyCredentialButtonText:"Add group to consumer"},"basic-auth":{titleKey:"plugins.meta.basic-auth.name",plugin:"basic-auth",schema:Pi,nameKey:"plugins.meta.basic-auth.credential_name",endpoint:"/basic-auth",schemaEndpoint:"basicauth_credentials",fields:pn(Pi)},"key-auth":{titleKey:"plugins.meta.key-auth.name",plugin:"key-auth",schema:Ti,nameKey:"plugins.meta.key-auth.credential_name",endpoint:"/key-auth",schemaEndpoint:"keyauth_credentials",fields:pn(Ti)},"key-auth-enc":{titleKey:"plugins.meta.key-auth-enc.name",plugin:"key-auth-enc",schema:Bi,nameKey:"plugins.meta.key-auth-enc.credential_name",endpoint:"/key-auth-enc",schemaEndpoint:"keyauth_enc_credentials",fields:pn(Bi)},oauth2:{titleKey:"plugins.meta.oauth2.name",plugin:"oauth2",schema:Vi,nameKey:"plugins.meta.oauth2.credential_name",endpoint:"/oauth2",schemaEndpoint:"oauth2_credentials",fields:pn(Vi)},"hmac-auth":{titleKey:"plugins.meta.hmac-auth.name",plugin:"hmac-auth",schema:Oi,nameKey:"plugins.meta.hmac-auth.credential_name",endpoint:"/hmac-auth",schemaEndpoint:"hmacauth_credentials",fields:pn(Oi)},jwt:{titleKey:"plugins.meta.jwt.name",plugin:"jwt",schema:Iu,nameKey:"plugins.meta.jwt.credential_name",endpoint:"/jwt",schemaEndpoint:"jwt_secrets",fields:{id:{},key:{},algorithm:{}}}},$u={acls:wu,basicauth_credentials:Cu,keyauth_credentials:Su,keyauth_enc_credentials:Bu,oauth2_credentials:Ou,hmacauth_credentials:Pu,jwt_secrets:Tu},Ru=()=>{const{i18n:{t}}=Le(),n={},o={};for(const[a,i]of Object.entries(Nt))n[a]={...i,name:t(i.nameKey),description:t(i.descriptionKey)};for(const[a,i]of Object.entries(Rn))o[a]={...i,name:t(i.nameKey),title:t(i.titleKey)};return{pluginMetaData:n,credentialMetaData:o,credentialSchemas:Rn,getDisplayName:a=>{var i;return((i=n[a])==null?void 0:i.name)||a}}},eo={type:"array",showRemoveButton:!1,newElementButtonLabelClasses:"kong-form-new-element-button-label",itemContainerComponent:"FieldArrayCardContainer",fieldClasses:"array-card-container-wrapper"},Fu={"config-prompts-prepend":{...eo,newElementButtonLabel:"+ Add Message",items:{type:"object",schema:{fields:[{label:"Role",model:"role",help:"LLM message role",type:"select",required:!0,values:["system","assistant","user"]},{label:"Content",model:"content",type:"input",required:!0,help:"LLM message content",inputType:"text"}]}}},"config-prompts-append":{...eo,newElementButtonLabel:"+ Add Message",items:{type:"object",schema:{fields:[{label:"Role",model:"role",help:"LLM message role",type:"select",required:!0,values:["system","assistant","user"]},{label:"Content",model:"content",type:"input",required:!0,help:"LLM message content",inputType:"text"}]}}}},Lu={"config-templates":{...eo,newElementButtonLabel:"+ Add Template",items:{type:"object",schema:{fields:[{label:"Template Name",model:"name",help:"Template Name, for reference in user requests",type:"input",required:!0,inputType:"text"},{label:"Template String",model:"template",help:"Template string content, containing {{placeholders}} for variable substitution",type:"textArea",required:!0,inputType:"text"}]}}}},Du={shamefullyTransformPayload:({originalModel:t,model:n,payload:o,schema:r})=>{const a=l=>{var s;return(s=r[l])!=null&&s.required&&n[l]?!0:t[l]===n[l]?!1:t[l]===null?n[l]!==""&&!Number.isNaN(n[l]):!0},i=l=>Object.keys(t).some(s=>s.startsWith(l)&&a(s));i("config-embeddings")||(o.config.embeddings=null),i("config-vectordb")||(o.config.vectordb=null)}},$i=t=>t.split(",").map(n=>n.trim()).filter(Boolean),Mu={shamefullyTransformPayload:({payload:t})=>{var n;(n=t==null?void 0:t.config)!=null&&n.collection_acl_config&&Object.values(t.config.collection_acl_config).forEach(o=>{typeof(o==null?void 0:o.allow)=="string"&&(o.allow=$i(o.allow)),typeof(o==null?void 0:o.deny)=="string"&&(o.deny=$i(o.deny))})}},ju={"config-prompt":{label:"Prompt",placeholder:"Enter your prompt",type:"textArea",rows:4,max:!1}},vu={enabled:{type:"switch",model:"enabled",label:"Enabled",textOn:"This plugin is Enabled",textOff:"This plugin is Disabled",inputType:"hidden",styleClasses:"field-switch top-border bottom-border hide-label",default:!0},name:{default:"application-registration",type:"input",inputType:"hidden",styleClasses:"kong-form-hidden-field-wrapper"},"service-id":{type:"AutoSuggest",label:"Gateway Service",styleClasses:"bottom-border",description:"Specific Gateway Service in this workspace",model:"service-id",entity:"services",placeholder:"Select a Gateway Service",inputValues:{fields:["name","id"]},help:"The Gateway Service that this plugin configuration will target"},tags:$n.tags,protocols:{id:"protocols",default:[],type:"multiselect",label:"Protocols",values:[{label:"grpc",value:"grpc"},{label:"grpcs",value:"grpcs"},{label:"http",value:"http"},{label:"https",value:"https"},{label:"tcp",value:"tcp"},{label:"tls",value:"tls"},{label:"tls_passthrough",value:"tls_passthrough"},{label:"udp",value:"udp"},{label:"ws",value:"ws"},{label:"wss",value:"wss"}],help:"A list of the request protocols that will trigger this plugin. The default value, as well as the possible values allowed on this field, may change depending on the plugin type.",placeholder:"Select valid protocols for the plugin",styleClasses:"plugin-protocols-select"}},je={type:"array",valueType:"string",valueArrayType:"array",itemContainerComponent:"FieldArrayItem",fieldClasses:"kong-form-array-field",fieldItemsClasses:"kong-form-array-field-item",inputAttributes:{class:"form-control",style:{minWidth:"200px"}},validator:"array",styleClasses:"kong-form-field-wrapper",newElementButtonLabel:"+ Add",newElementButtonLabelClasses:"kong-form-new-element-button-label"},$o={type:"array",showRemoveButton:!1,newElementButtonLabelClasses:"kong-form-new-element-button-label",itemContainerComponent:"FieldMetric",fieldClasses:"metrics-wrapper"},Ku={"config-metrics":{...$o,items:{type:"object",default:()=>({}),schema:{fields:[{model:"name",label:"Name",type:"select",values:["request_count","request_size","response_size","latency","status_count","unique_users","request_per_user","upstream_latency","kong_latency"]},{model:"stat_type",label:"Stat Type",type:"select",values:["gauge","timer","counter","histogram","meter","set"]},{model:"sample_rate",label:"Sample Rate",type:"input",inputType:"number",id:"sample_rate"},{model:"consumer_identifier",label:"Consumer Identifier",type:"select",values:["consumer_id","custom_id","username"]},{model:"tags",label:"Tags",type:"array",itemContainerComponent:"FieldArrayItem",fieldClasses:"kong-form-array-field",fieldItemsClasses:"kong-form-array-field-item",inputAttributes:{class:"form-control",style:{minWidth:"200px"}},inputType:"text"}]}}}},Uu={"config-functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},qu={"config-strategy":{label:"Config.Strategy",type:"select",default:"cluster",values:["cluster","redis"]}},Gu={"config-injection_types":{type:"multiselect"},"config-locations":{type:"multiselect"}},zu={"config-api_specification":{label:"Config.API Specification",placeholder:"Enter an API spec",type:"textArea",rows:10,max:!1}},Hu={"config-api_spec":{label:"Config.API Spec",placeholder:"Enter an API spec",type:"textArea",rows:15,max:!1}},Wu={"config-access":{},"config-body_filter":{},"config-header_filter":{},"config-certificate":{},"config-functions":{},"config-log":{},"config-rewrite":{}},Ri=["config-access","config-body_filter","config-header_filter","config-certificate","config-functions","config-log","config-rewrite"].reduce((t,n)=>({...t,[n]:$n.fields.arrayItems({newElementButtonLabel:"Add"})}),Wu),Ro={"config-strategy":{label:"Config.Strategy",type:"select",default:"redis",values:["local","redis"]},"config-consumer_groups":{label:"Config.Consumer Groups",type:"input",placeholder:"Enter list of consumer groups",hint:"e.g. group1, group2"}},Yu={"config-remove-headers":{},"config-remove.querystring":{},"config-remove-body":{},"config-replace-headers":{},"config-replace-querystring":{},"config-replace-body":{},"config-rename-headers":{},"config-rename-querystring":{},"config-rename-body":{},"config-add-headers":{},"config-add-querystring":{},"config-add-body":{},"config-append-headers":{},"config-append-querystring":{},"config-append-body":{},"config-allow-body":{}},Ju=["config-remove-headers","config-remove.querystring","config-remove-body","config-replace-headers","config-replace-querystring","config-replace-body","config-rename-headers","config-rename-querystring","config-rename-body","config-add-headers","config-add-querystring","config-add-body","config-append-headers","config-append-querystring","config-append-body","config-allow-body"].reduce((t,n)=>({...t,[n]:$n.fields.arrayItems({newElementButtonLabel:"Add"})}),Yu),Fi={"config-add-json":{...je,label:"Config.Add.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-append-json":{...je,label:"Config.Append.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-remove-json":{...je,label:"Config.Remove.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-rename-json":{...je,label:"Config.Rename.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-replace-json":{...je,label:"Config.Replace.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},Xu={...Fi,"config-allow-json":{...je,label:"Config.Allow.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-replace-body":{label:"Config.Replace.Body",type:"textArea",max:!1},"config-transform-functions":{...je,label:"Config.Transform.Functions",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},"config-transform-json":{...je,label:"Config.Transform.Json",inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},Zu={"config-rules":{...eo,newElementButtonLabel:"+ Add Rule",items:{type:"object",schema:{fields:[{label:"Upstream Name",model:"upstream_name",type:"input",help:"Target hostname where traffic will be routed in case of condition match",placeholder:"Hostname",inputType:"text"},{label:"Condition",model:"condition",type:"keyValuePairs",help:"List of headers name and value pairs",newElementButtonLabelClasses:"kong-form-new-element-button-label",newElementButtonLabel:"+ Add Condition",keyInputPlaceholder:"Header name",valueInputPlaceholder:"Header value"}]}}}},Qu={"config-session_redis_cluster_nodes":{...eo,newElementButtonLabel:"+ Add Cluster Node",items:{type:"object",schema:{fields:[{label:"IP",model:"ip",type:"input",inputType:"text"},{label:"Port",model:"port",type:"input",inputType:"number"}]}}}},ef={"config-flow-functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},tf={"config-message-functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}}},nf={"config-metrics":{...$o,items:{type:"object",default:()=>({}),schema:{fields:[{model:"name",label:"Name",type:"select",values:["request_count","request_size","response_size","latency","status_count","unique_users","request_per_user","upstream_latency","kong_latency","status_count_per_user","status_count_per_user_per_route","status_count_per_workspace","shdict_usage"]},{model:"stat_type",label:"Stat Type",type:"select",values:["gauge","timer","counter","histogram","meter","set"]},{model:"sample_rate",label:"Sample Rate",type:"input",inputType:"number",id:"sample_rate"},{model:"consumer_identifier",label:"Consumer Identifier",type:"select",values:["consumer_id","custom_id","username"]},{model:"service_identifier",label:"Service Identifier",type:"select",values:["service_id","service_name","service_host","service_name_or_host"]},{model:"workspace_identifier",label:"Workspace Identifier",type:"select",values:["workspace_id","workspace_name"]}]}}}},of={"config-metrics":{...$o,items:{type:"object",default:()=>({}),schema:{fields:[{model:"name",label:"Name",type:"select",values:["request_count","request_size","response_size","latency","status_count","unique_users","request_per_user","upstream_latency","kong_latency","status_count_per_user","status_count_per_user_per_route","status_count_per_workspace","shdict_usage","cache_datastore_hits_total","cache_datastore_misses_total"]},{model:"stat_type",label:"Stat Type",type:"select",values:["gauge","timer","counter","histogram","meter","set"]},{model:"sample_rate",label:"Sample Rate",type:"input",inputType:"number",id:"sample_rate"},{model:"consumer_identifier",label:"Consumer Identifier",type:"select",values:["consumer_id","custom_id","username"]},{model:"service_identifier",label:"Service Identifier",type:"select",values:["service_id","service_name","service_host","service_name_or_host"]},{model:"workspace_identifier",label:"Workspace Identifier",type:"select",values:["workspace_id","workspace_name"]}]}}}},rf={"config-behavior-idp_error_response_body_template":{type:"textArea",rows:4}},af={"config-vault":{type:"AutoSuggest",entity:"vaults",placeholder:"Select a Vault",inputValues:{fields:["prefix","name","id"]},modelTransformer:t=>({id:t}),keyFromObject:"id"}};var Li=typeof global=="object"&&global&&global.Object===Object&&global,lf=typeof self=="object"&&self&&self.Object===Object&&self,Ft=Li||lf||Function("return this")(),xt=Ft.Symbol,Di=Object.prototype,sf=Di.hasOwnProperty,cf=Di.toString,to=xt?xt.toStringTag:void 0;function df(t){var n=sf.call(t,to),o=t[to];try{t[to]=void 0;var r=!0}catch{}var a=cf.call(t);return r&&(n?t[to]=o:delete t[to]),a}var uf=Object.prototype,ff=uf.toString;function pf(t){return ff.call(t)}var mf="[object Null]",gf="[object Undefined]",Mi=xt?xt.toStringTag:void 0;function gn(t){return t==null?t===void 0?gf:mf:Mi&&Mi in Object(t)?df(t):pf(t)}function Lt(t){return t!=null&&typeof t=="object"}var hf="[object Symbol]";function Vr(t){return typeof t=="symbol"||Lt(t)&&gn(t)==hf}function Br(t,n){for(var o=-1,r=t==null?0:t.length,a=Array(r);++o<r;)a[o]=n(t[o],o,t);return a}var Ot=Array.isArray,ji=xt?xt.prototype:void 0,vi=ji?ji.toString:void 0;function Ki(t){if(typeof t=="string")return t;if(Ot(t))return Br(t,Ki)+"";if(Vr(t))return vi?vi.call(t):"";var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}function hn(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}function Ui(t){return t}var yf="[object AsyncFunction]",_f="[object Function]",bf="[object GeneratorFunction]",kf="[object Proxy]";function Fo(t){if(!hn(t))return!1;var n=gn(t);return n==_f||n==bf||n==yf||n==kf}var $r=Ft["__core-js_shared__"],qi=(function(){var t=/[^.]+$/.exec($r&&$r.keys&&$r.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""})();function wf(t){return!!qi&&qi in t}var Cf=Function.prototype,Ef=Cf.toString;function yn(t){if(t!=null){try{return Ef.call(t)}catch{}try{return t+""}catch{}}return""}var Nf=/[\\^$.*+?()[\]{}|]/g,xf=/^\[object .+?Constructor\]$/,Af=Function.prototype,Sf=Object.prototype,Pf=Af.toString,If=Sf.hasOwnProperty,Tf=RegExp("^"+Pf.call(If).replace(Nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Of(t){if(!hn(t)||wf(t))return!1;var n=Fo(t)?Tf:xf;return n.test(yn(t))}function Vf(t,n){return t==null?void 0:t[n]}function _n(t,n){var o=Vf(t,n);return Of(o)?o:void 0}var Rr=_n(Ft,"WeakMap"),Gi=Object.create,Bf=(function(){function t(){}return function(n){if(!hn(n))return{};if(Gi)return Gi(n);t.prototype=n;var o=new t;return t.prototype=void 0,o}})();function $f(t,n,o){switch(o.length){case 0:return t.call(n);case 1:return t.call(n,o[0]);case 2:return t.call(n,o[0],o[1]);case 3:return t.call(n,o[0],o[1],o[2])}return t.apply(n,o)}function Rf(t,n){var o=-1,r=t.length;for(n||(n=Array(r));++o<r;)n[o]=t[o];return n}var Ff=800,Lf=16,Df=Date.now;function Mf(t){var n=0,o=0;return function(){var r=Df(),a=Lf-(r-o);if(o=r,a>0){if(++n>=Ff)return arguments[0]}else n=0;return t.apply(void 0,arguments)}}function jf(t){return function(){return t}}var Lo=(function(){try{var t=_n(Object,"defineProperty");return t({},"",{}),t}catch{}})(),vf=Lo?function(t,n){return Lo(t,"toString",{configurable:!0,enumerable:!1,value:jf(n),writable:!0})}:Ui,zi=Mf(vf);function Kf(t,n){for(var o=-1,r=t==null?0:t.length;++o<r&&n(t[o],o,t)!==!1;);return t}function Uf(t,n,o,r){for(var a=t.length,i=o+-1;++i<a;)if(n(t[i],i,t))return i;return-1}function qf(t){return t!==t}function Gf(t,n,o){for(var r=o-1,a=t.length;++r<a;)if(t[r]===n)return r;return-1}function zf(t,n,o){return n===n?Gf(t,n,o):Uf(t,qf,o)}function Hf(t,n){var o=t==null?0:t.length;return!!o&&zf(t,n,0)>-1}var Wf=9007199254740991,Yf=/^(?:0|[1-9]\d*)$/;function Fr(t,n){var o=typeof t;return n=n??Wf,!!n&&(o=="number"||o!="symbol"&&Yf.test(t))&&t>-1&&t%1==0&&t<n}function Hi(t,n,o){n=="__proto__"&&Lo?Lo(t,n,{configurable:!0,enumerable:!0,value:o,writable:!0}):t[n]=o}function Lr(t,n){return t===n||t!==t&&n!==n}var Jf=Object.prototype,Xf=Jf.hasOwnProperty;function Dr(t,n,o){var r=t[n];(!(Xf.call(t,n)&&Lr(r,o))||o===void 0&&!(n in t))&&Hi(t,n,o)}function no(t,n,o,r){var a=!o;o||(o={});for(var i=-1,l=n.length;++i<l;){var s=n[i],c=void 0;c===void 0&&(c=t[s]),a?Hi(o,s,c):Dr(o,s,c)}return o}var Wi=Math.max;function Yi(t,n,o){return n=Wi(n===void 0?t.length-1:n,0),function(){for(var r=arguments,a=-1,i=Wi(r.length-n,0),l=Array(i);++a<i;)l[a]=r[n+a];a=-1;for(var s=Array(n+1);++a<n;)s[a]=r[a];return s[n]=o(l),$f(t,this,s)}}function Zf(t,n){return zi(Yi(t,n,Ui),t+"")}var Qf=9007199254740991;function Mr(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=Qf}function Do(t){return t!=null&&Mr(t.length)&&!Fo(t)}var ep=Object.prototype;function Mo(t){var n=t&&t.constructor,o=typeof n=="function"&&n.prototype||ep;return t===o}function tp(t,n){for(var o=-1,r=Array(t);++o<t;)r[o]=n(o);return r}var np="[object Arguments]";function Ji(t){return Lt(t)&&gn(t)==np}var Xi=Object.prototype,op=Xi.hasOwnProperty,rp=Xi.propertyIsEnumerable,jo=Ji((function(){return arguments})())?Ji:function(t){return Lt(t)&&op.call(t,"callee")&&!rp.call(t,"callee")};function ap(){return!1}var Zi=typeof ke=="object"&&ke&&!ke.nodeType&&ke,Qi=Zi&&typeof module=="object"&&module&&!module.nodeType&&module,ip=Qi&&Qi.exports===Zi,el=ip?Ft.Buffer:void 0,lp=el?el.isBuffer:void 0,oo=lp||ap,sp="[object Arguments]",cp="[object Array]",dp="[object Boolean]",up="[object Date]",fp="[object Error]",pp="[object Function]",mp="[object Map]",gp="[object Number]",hp="[object Object]",yp="[object RegExp]",_p="[object Set]",bp="[object String]",kp="[object WeakMap]",wp="[object ArrayBuffer]",Cp="[object DataView]",Ep="[object Float32Array]",Np="[object Float64Array]",xp="[object Int8Array]",Ap="[object Int16Array]",Sp="[object Int32Array]",Pp="[object Uint8Array]",Ip="[object Uint8ClampedArray]",Tp="[object Uint16Array]",Op="[object Uint32Array]",He={};He[Ep]=He[Np]=He[xp]=He[Ap]=He[Sp]=He[Pp]=He[Ip]=He[Tp]=He[Op]=!0,He[sp]=He[cp]=He[wp]=He[dp]=He[Cp]=He[up]=He[fp]=He[pp]=He[mp]=He[gp]=He[hp]=He[yp]=He[_p]=He[bp]=He[kp]=!1;function Vp(t){return Lt(t)&&Mr(t.length)&&!!He[gn(t)]}function jr(t){return function(n){return t(n)}}var tl=typeof ke=="object"&&ke&&!ke.nodeType&&ke,ro=tl&&typeof module=="object"&&module&&!module.nodeType&&module,Bp=ro&&ro.exports===tl,vr=Bp&&Li.process,Fn=(function(){try{var t=ro&&ro.require&&ro.require("util").types;return t||vr&&vr.binding&&vr.binding("util")}catch{}})(),nl=Fn&&Fn.isTypedArray,Kr=nl?jr(nl):Vp,$p=Object.prototype,Rp=$p.hasOwnProperty;function ol(t,n){var o=Ot(t),r=!o&&jo(t),a=!o&&!r&&oo(t),i=!o&&!r&&!a&&Kr(t),l=o||r||a||i,s=l?tp(t.length,String):[],c=s.length;for(var u in t)(n||Rp.call(t,u))&&!(l&&(u=="length"||a&&(u=="offset"||u=="parent")||i&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||Fr(u,c)))&&s.push(u);return s}function rl(t,n){return function(o){return t(n(o))}}var Fp=rl(Object.keys,Object),Lp=Object.prototype,Dp=Lp.hasOwnProperty;function al(t){if(!Mo(t))return Fp(t);var n=[];for(var o in Object(t))Dp.call(t,o)&&o!="constructor"&&n.push(o);return n}function Ur(t){return Do(t)?ol(t):al(t)}function Mp(t){var n=[];if(t!=null)for(var o in Object(t))n.push(o);return n}var jp=Object.prototype,vp=jp.hasOwnProperty;function Kp(t){if(!hn(t))return Mp(t);var n=Mo(t),o=[];for(var r in t)r=="constructor"&&(n||!vp.call(t,r))||o.push(r);return o}function qr(t){return Do(t)?ol(t,!0):Kp(t)}var Up=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,qp=/^\w*$/;function Gp(t,n){if(Ot(t))return!1;var o=typeof t;return o=="number"||o=="symbol"||o=="boolean"||t==null||Vr(t)?!0:qp.test(t)||!Up.test(t)||n!=null&&t in Object(n)}var ao=_n(Object,"create");function zp(){this.__data__=ao?ao(null):{},this.size=0}function Hp(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}var Wp="__lodash_hash_undefined__",Yp=Object.prototype,Jp=Yp.hasOwnProperty;function Xp(t){var n=this.__data__;if(ao){var o=n[t];return o===Wp?void 0:o}return Jp.call(n,t)?n[t]:void 0}var Zp=Object.prototype,Qp=Zp.hasOwnProperty;function em(t){var n=this.__data__;return ao?n[t]!==void 0:Qp.call(n,t)}var tm="__lodash_hash_undefined__";function nm(t,n){var o=this.__data__;return this.size+=this.has(t)?0:1,o[t]=ao&&n===void 0?tm:n,this}function bn(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var r=t[n];this.set(r[0],r[1])}}bn.prototype.clear=zp,bn.prototype.delete=Hp,bn.prototype.get=Xp,bn.prototype.has=em,bn.prototype.set=nm;function om(){this.__data__=[],this.size=0}function vo(t,n){for(var o=t.length;o--;)if(Lr(t[o][0],n))return o;return-1}var rm=Array.prototype,am=rm.splice;function im(t){var n=this.__data__,o=vo(n,t);if(o<0)return!1;var r=n.length-1;return o==r?n.pop():am.call(n,o,1),--this.size,!0}function lm(t){var n=this.__data__,o=vo(n,t);return o<0?void 0:n[o][1]}function sm(t){return vo(this.__data__,t)>-1}function cm(t,n){var o=this.__data__,r=vo(o,t);return r<0?(++this.size,o.push([t,n])):o[r][1]=n,this}function Kt(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var r=t[n];this.set(r[0],r[1])}}Kt.prototype.clear=om,Kt.prototype.delete=im,Kt.prototype.get=lm,Kt.prototype.has=sm,Kt.prototype.set=cm;var io=_n(Ft,"Map");function dm(){this.size=0,this.__data__={hash:new bn,map:new(io||Kt),string:new bn}}function um(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}function Ko(t,n){var o=t.__data__;return um(n)?o[typeof n=="string"?"string":"hash"]:o.map}function fm(t){var n=Ko(this,t).delete(t);return this.size-=n?1:0,n}function pm(t){return Ko(this,t).get(t)}function mm(t){return Ko(this,t).has(t)}function gm(t,n){var o=Ko(this,t),r=o.size;return o.set(t,n),this.size+=o.size==r?0:1,this}function Ut(t){var n=-1,o=t==null?0:t.length;for(this.clear();++n<o;){var r=t[n];this.set(r[0],r[1])}}Ut.prototype.clear=dm,Ut.prototype.delete=fm,Ut.prototype.get=pm,Ut.prototype.has=mm,Ut.prototype.set=gm;var hm="Expected a function";function Gr(t,n){if(typeof t!="function"||n!=null&&typeof n!="function")throw new TypeError(hm);var o=function(){var r=arguments,a=n?n.apply(this,r):r[0],i=o.cache;if(i.has(a))return i.get(a);var l=t.apply(this,r);return o.cache=i.set(a,l)||i,l};return o.cache=new(Gr.Cache||Ut),o}Gr.Cache=Ut;var ym=500;function _m(t){var n=Gr(t,function(r){return o.size===ym&&o.clear(),r}),o=n.cache;return n}var bm=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,km=/\\(\\)?/g,wm=_m(function(t){var n=[];return t.charCodeAt(0)===46&&n.push(""),t.replace(bm,function(o,r,a,i){n.push(a?i.replace(km,"$1"):r||o)}),n});function Uo(t){return t==null?"":Ki(t)}function Ln(t,n){return Ot(t)?t:Gp(t,n)?[t]:wm(Uo(t))}function qo(t){if(typeof t=="string"||Vr(t))return t;var n=t+"";return n=="0"&&1/t==-1/0?"-0":n}function zr(t,n){n=Ln(n,t);for(var o=0,r=n.length;t!=null&&o<r;)t=t[qo(n[o++])];return o&&o==r?t:void 0}function Go(t,n,o){var r=t==null?void 0:zr(t,n);return r===void 0?o:r}function Hr(t,n){for(var o=-1,r=n.length,a=t.length;++o<r;)t[a+o]=n[o];return t}var il=xt?xt.isConcatSpreadable:void 0;function Cm(t){return Ot(t)||jo(t)||!!(il&&t&&t[il])}function Em(t,n,o,r,a){var i=-1,l=t.length;for(o||(o=Cm),a||(a=[]);++i<l;){var s=t[i];o(s)?Hr(a,s):a[a.length]=s}return a}function Nm(t){var n=t==null?0:t.length;return n?Em(t):[]}function ll(t){return zi(Yi(t,void 0,Nm),t+"")}var Wr=rl(Object.getPrototypeOf,Object),xm="[object Object]",Am=Function.prototype,Sm=Object.prototype,sl=Am.toString,Pm=Sm.hasOwnProperty,Im=sl.call(Object);function Tm(t){if(!Lt(t)||gn(t)!=xm)return!1;var n=Wr(t);if(n===null)return!0;var o=Pm.call(n,"constructor")&&n.constructor;return typeof o=="function"&&o instanceof o&&sl.call(o)==Im}function cl(t,n,o){var r=-1,a=t.length;n<0&&(n=-n>a?0:a+n),o=o>a?a:o,o<0&&(o+=a),a=n>o?0:o-n>>>0,n>>>=0;for(var i=Array(a);++r<a;)i[r]=t[r+n];return i}function Om(t,n,o){var r=t.length;return o=o===void 0?r:o,!n&&o>=r?t:cl(t,n,o)}var Vm="\\ud800-\\udfff",Bm="\\u0300-\\u036f",$m="\\ufe20-\\ufe2f",Rm="\\u20d0-\\u20ff",Fm=Bm+$m+Rm,Lm="\\ufe0e\\ufe0f",Dm="\\u200d",Mm=RegExp("["+Dm+Vm+Fm+Lm+"]");function dl(t){return Mm.test(t)}function jm(t){return t.split("")}var ul="\\ud800-\\udfff",vm="\\u0300-\\u036f",Km="\\ufe20-\\ufe2f",Um="\\u20d0-\\u20ff",qm=vm+Km+Um,Gm="\\ufe0e\\ufe0f",zm="["+ul+"]",Yr="["+qm+"]",Jr="\\ud83c[\\udffb-\\udfff]",Hm="(?:"+Yr+"|"+Jr+")",fl="[^"+ul+"]",pl="(?:\\ud83c[\\udde6-\\uddff]){2}",ml="[\\ud800-\\udbff][\\udc00-\\udfff]",Wm="\\u200d",gl=Hm+"?",hl="["+Gm+"]?",Ym="(?:"+Wm+"(?:"+[fl,pl,ml].join("|")+")"+hl+gl+")*",Jm=hl+gl+Ym,Xm="(?:"+[fl+Yr+"?",Yr,pl,ml,zm].join("|")+")",Zm=RegExp(Jr+"(?="+Jr+")|"+Xm+Jm,"g");function Qm(t){return t.match(Zm)||[]}function eg(t){return dl(t)?Qm(t):jm(t)}function tg(t){return function(n){n=Uo(n);var o=dl(n)?eg(n):void 0,r=o?o[0]:n.charAt(0),a=o?Om(o,1).join(""):n.slice(1);return r[t]()+a}}var ng=tg("toUpperCase");function og(t){return function(n){return t==null?void 0:t[n]}}function rg(){this.__data__=new Kt,this.size=0}function ag(t){var n=this.__data__,o=n.delete(t);return this.size=n.size,o}function ig(t){return this.__data__.get(t)}function lg(t){return this.__data__.has(t)}var sg=200;function cg(t,n){var o=this.__data__;if(o instanceof Kt){var r=o.__data__;if(!io||r.length<sg-1)return r.push([t,n]),this.size=++o.size,this;o=this.__data__=new Ut(r)}return o.set(t,n),this.size=o.size,this}function qt(t){var n=this.__data__=new Kt(t);this.size=n.size}qt.prototype.clear=rg,qt.prototype.delete=ag,qt.prototype.get=ig,qt.prototype.has=lg,qt.prototype.set=cg;function dg(t,n){return t&&no(n,Ur(n),t)}function ug(t,n){return t&&no(n,qr(n),t)}var yl=typeof ke=="object"&&ke&&!ke.nodeType&&ke,_l=yl&&typeof module=="object"&&module&&!module.nodeType&&module,fg=_l&&_l.exports===yl,bl=fg?Ft.Buffer:void 0,kl=bl?bl.allocUnsafe:void 0;function pg(t,n){if(n)return t.slice();var o=t.length,r=kl?kl(o):new t.constructor(o);return t.copy(r),r}function mg(t,n){for(var o=-1,r=t==null?0:t.length,a=0,i=[];++o<r;){var l=t[o];n(l,o,t)&&(i[a++]=l)}return i}function wl(){return[]}var gg=Object.prototype,hg=gg.propertyIsEnumerable,Cl=Object.getOwnPropertySymbols,Xr=Cl?function(t){return t==null?[]:(t=Object(t),mg(Cl(t),function(n){return hg.call(t,n)}))}:wl;function yg(t,n){return no(t,Xr(t),n)}var _g=Object.getOwnPropertySymbols,El=_g?function(t){for(var n=[];t;)Hr(n,Xr(t)),t=Wr(t);return n}:wl;function bg(t,n){return no(t,El(t),n)}function Nl(t,n,o){var r=n(t);return Ot(t)?r:Hr(r,o(t))}function Zr(t){return Nl(t,Ur,Xr)}function xl(t){return Nl(t,qr,El)}var Qr=_n(Ft,"DataView"),ea=_n(Ft,"Promise"),ta=_n(Ft,"Set"),Al="[object Map]",kg="[object Object]",Sl="[object Promise]",Pl="[object Set]",Il="[object WeakMap]",Tl="[object DataView]",wg=yn(Qr),Cg=yn(io),Eg=yn(ea),Ng=yn(ta),xg=yn(Rr),At=gn;(Qr&&At(new Qr(new ArrayBuffer(1)))!=Tl||io&&At(new io)!=Al||ea&&At(ea.resolve())!=Sl||ta&&At(new ta)!=Pl||Rr&&At(new Rr)!=Il)&&(At=function(t){var n=gn(t),o=n==kg?t.constructor:void 0,r=o?yn(o):"";if(r)switch(r){case wg:return Tl;case Cg:return Al;case Eg:return Sl;case Ng:return Pl;case xg:return Il}return n});var Ag=Object.prototype,Sg=Ag.hasOwnProperty;function Pg(t){var n=t.length,o=new t.constructor(n);return n&&typeof t[0]=="string"&&Sg.call(t,"index")&&(o.index=t.index,o.input=t.input),o}var zo=Ft.Uint8Array;function na(t){var n=new t.constructor(t.byteLength);return new zo(n).set(new zo(t)),n}function Ig(t,n){var o=n?na(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.byteLength)}var Tg=/\w*$/;function Og(t){var n=new t.constructor(t.source,Tg.exec(t));return n.lastIndex=t.lastIndex,n}var Ol=xt?xt.prototype:void 0,Vl=Ol?Ol.valueOf:void 0;function Vg(t){return Vl?Object(Vl.call(t)):{}}function Bg(t,n){var o=n?na(t.buffer):t.buffer;return new t.constructor(o,t.byteOffset,t.length)}var $g="[object Boolean]",Rg="[object Date]",Fg="[object Map]",Lg="[object Number]",Dg="[object RegExp]",Mg="[object Set]",jg="[object String]",vg="[object Symbol]",Kg="[object ArrayBuffer]",Ug="[object DataView]",qg="[object Float32Array]",Gg="[object Float64Array]",zg="[object Int8Array]",Hg="[object Int16Array]",Wg="[object Int32Array]",Yg="[object Uint8Array]",Jg="[object Uint8ClampedArray]",Xg="[object Uint16Array]",Zg="[object Uint32Array]";function Qg(t,n,o){var r=t.constructor;switch(n){case Kg:return na(t);case $g:case Rg:return new r(+t);case Ug:return Ig(t,o);case qg:case Gg:case zg:case Hg:case Wg:case Yg:case Jg:case Xg:case Zg:return Bg(t,o);case Fg:return new r;case Lg:case jg:return new r(t);case Dg:return Og(t);case Mg:return new r;case vg:return Vg(t)}}function eh(t){return typeof t.constructor=="function"&&!Mo(t)?Bf(Wr(t)):{}}var th="[object Map]";function nh(t){return Lt(t)&&At(t)==th}var Bl=Fn&&Fn.isMap,oh=Bl?jr(Bl):nh,rh="[object Set]";function ah(t){return Lt(t)&&At(t)==rh}var $l=Fn&&Fn.isSet,ih=$l?jr($l):ah,lh=1,sh=2,ch=4,Rl="[object Arguments]",dh="[object Array]",uh="[object Boolean]",fh="[object Date]",ph="[object Error]",Fl="[object Function]",mh="[object GeneratorFunction]",gh="[object Map]",hh="[object Number]",Ll="[object Object]",yh="[object RegExp]",_h="[object Set]",bh="[object String]",kh="[object Symbol]",wh="[object WeakMap]",Ch="[object ArrayBuffer]",Eh="[object DataView]",Nh="[object Float32Array]",xh="[object Float64Array]",Ah="[object Int8Array]",Sh="[object Int16Array]",Ph="[object Int32Array]",Ih="[object Uint8Array]",Th="[object Uint8ClampedArray]",Oh="[object Uint16Array]",Vh="[object Uint32Array]",Ge={};Ge[Rl]=Ge[dh]=Ge[Ch]=Ge[Eh]=Ge[uh]=Ge[fh]=Ge[Nh]=Ge[xh]=Ge[Ah]=Ge[Sh]=Ge[Ph]=Ge[gh]=Ge[hh]=Ge[Ll]=Ge[yh]=Ge[_h]=Ge[bh]=Ge[kh]=Ge[Ih]=Ge[Th]=Ge[Oh]=Ge[Vh]=!0,Ge[ph]=Ge[Fl]=Ge[wh]=!1;function lo(t,n,o,r,a,i){var l,s=n&lh,c=n&sh,u=n&ch;if(o&&(l=a?o(t,r,a,i):o(t)),l!==void 0)return l;if(!hn(t))return t;var p=Ot(t);if(p){if(l=Pg(t),!s)return Rf(t,l)}else{var d=At(t),f=d==Fl||d==mh;if(oo(t))return pg(t,s);if(d==Ll||d==Rl||f&&!a){if(l=c||f?{}:eh(t),!s)return c?bg(t,ug(l,t)):yg(t,dg(l,t))}else{if(!Ge[d])return a?t:{};l=Qg(t,d,s)}}i||(i=new qt);var m=i.get(t);if(m)return m;i.set(t,l),ih(t)?t.forEach(function(h){l.add(lo(h,n,o,h,t,i))}):oh(t)&&t.forEach(function(h,y){l.set(y,lo(h,n,o,y,t,i))});var g=u?c?xl:Zr:c?qr:Ur,_=p?void 0:g(t);return Kf(_||t,function(h,y){_&&(y=h,h=t[y]),Dr(l,y,lo(h,n,o,y,t,i))}),l}var Bh=1,$h=4;function kn(t){return lo(t,Bh|$h)}var Rh="__lodash_hash_undefined__";function Fh(t){return this.__data__.set(t,Rh),this}function Lh(t){return this.__data__.has(t)}function so(t){var n=-1,o=t==null?0:t.length;for(this.__data__=new Ut;++n<o;)this.add(t[n])}so.prototype.add=so.prototype.push=Fh,so.prototype.has=Lh;function Dh(t,n){for(var o=-1,r=t==null?0:t.length;++o<r;)if(n(t[o],o,t))return!0;return!1}function oa(t,n){return t.has(n)}var Mh=1,jh=2;function Dl(t,n,o,r,a,i){var l=o&Mh,s=t.length,c=n.length;if(s!=c&&!(l&&c>s))return!1;var u=i.get(t),p=i.get(n);if(u&&p)return u==n&&p==t;var d=-1,f=!0,m=o&jh?new so:void 0;for(i.set(t,n),i.set(n,t);++d<s;){var g=t[d],_=n[d];if(r)var h=l?r(_,g,d,n,t,i):r(g,_,d,t,n,i);if(h!==void 0){if(h)continue;f=!1;break}if(m){if(!Dh(n,function(y,w){if(!oa(m,w)&&(g===y||a(g,y,o,r,i)))return m.push(w)})){f=!1;break}}else if(!(g===_||a(g,_,o,r,i))){f=!1;break}}return i.delete(t),i.delete(n),f}function vh(t){var n=-1,o=Array(t.size);return t.forEach(function(r,a){o[++n]=[a,r]}),o}function Kh(t){var n=-1,o=Array(t.size);return t.forEach(function(r){o[++n]=r}),o}var Uh=1,qh=2,Gh="[object Boolean]",zh="[object Date]",Hh="[object Error]",Wh="[object Map]",Yh="[object Number]",Jh="[object RegExp]",Xh="[object Set]",Zh="[object String]",Qh="[object Symbol]",ey="[object ArrayBuffer]",ty="[object DataView]",Ml=xt?xt.prototype:void 0,ra=Ml?Ml.valueOf:void 0;function ny(t,n,o,r,a,i,l){switch(o){case ty:if(t.byteLength!=n.byteLength||t.byteOffset!=n.byteOffset)return!1;t=t.buffer,n=n.buffer;case ey:return!(t.byteLength!=n.byteLength||!i(new zo(t),new zo(n)));case Gh:case zh:case Yh:return Lr(+t,+n);case Hh:return t.name==n.name&&t.message==n.message;case Jh:case Zh:return t==n+"";case Wh:var s=vh;case Xh:var c=r&Uh;if(s||(s=Kh),t.size!=n.size&&!c)return!1;var u=l.get(t);if(u)return u==n;r|=qh,l.set(t,n);var p=Dl(s(t),s(n),r,a,i,l);return l.delete(t),p;case Qh:if(ra)return ra.call(t)==ra.call(n)}return!1}var oy=1,ry=Object.prototype,ay=ry.hasOwnProperty;function iy(t,n,o,r,a,i){var l=o&oy,s=Zr(t),c=s.length,u=Zr(n),p=u.length;if(c!=p&&!l)return!1;for(var d=c;d--;){var f=s[d];if(!(l?f in n:ay.call(n,f)))return!1}var m=i.get(t),g=i.get(n);if(m&&g)return m==n&&g==t;var _=!0;i.set(t,n),i.set(n,t);for(var h=l;++d<c;){f=s[d];var y=t[f],w=n[f];if(r)var E=l?r(w,y,f,n,t,i):r(y,w,f,t,n,i);if(!(E===void 0?y===w||a(y,w,o,r,i):E)){_=!1;break}h||(h=f=="constructor")}if(_&&!h){var C=t.constructor,b=n.constructor;C!=b&&"constructor"in t&&"constructor"in n&&!(typeof C=="function"&&C instanceof C&&typeof b=="function"&&b instanceof b)&&(_=!1)}return i.delete(t),i.delete(n),_}var ly=1,jl="[object Arguments]",vl="[object Array]",Ho="[object Object]",sy=Object.prototype,Kl=sy.hasOwnProperty;function cy(t,n,o,r,a,i){var l=Ot(t),s=Ot(n),c=l?vl:At(t),u=s?vl:At(n);c=c==jl?Ho:c,u=u==jl?Ho:u;var p=c==Ho,d=u==Ho,f=c==u;if(f&&oo(t)){if(!oo(n))return!1;l=!0,p=!1}if(f&&!p)return i||(i=new qt),l||Kr(t)?Dl(t,n,o,r,a,i):ny(t,n,c,o,r,a,i);if(!(o&ly)){var m=p&&Kl.call(t,"__wrapped__"),g=d&&Kl.call(n,"__wrapped__");if(m||g){var _=m?t.value():t,h=g?n.value():n;return i||(i=new qt),a(_,h,o,r,i)}}return f?(i||(i=new qt),iy(t,n,o,r,a,i)):!1}function Ul(t,n,o,r,a){return t===n?!0:t==null||n==null||!Lt(t)&&!Lt(n)?t!==t&&n!==n:cy(t,n,o,r,Ul,a)}function dy(t,n){return t!=null&&n in Object(t)}function ql(t,n,o){n=Ln(n,t);for(var r=-1,a=n.length,i=!1;++r<a;){var l=qo(n[r]);if(!(i=t!=null&&o(t,l)))break;t=t[l]}return i||++r!=a?i:(a=t==null?0:t.length,!!a&&Mr(a)&&Fr(l,a)&&(Ot(t)||jo(t)))}function uy(t,n){return t!=null&&ql(t,n,dy)}function fy(t){return Lt(t)&&Do(t)}function py(t){var n=t==null?0:t.length;return n?t[n-1]:void 0}var my={"&":"&","<":"<",">":">",'"':""","'":"'"},gy=og(my),Gl=/[&<>"']/g,hy=RegExp(Gl.source);function yy(t){return t=Uo(t),t&&hy.test(t)?t.replace(Gl,gy):t}var _y=Object.prototype,by=_y.hasOwnProperty;function ky(t,n){return t!=null&&by.call(t,n)}function Wo(t,n){return t!=null&&ql(t,n,ky)}var wy=Math.min;function Cy(t,n,o){for(var r=Hf,a=t[0].length,i=t.length,l=i,s=Array(i),c=1/0,u=[];l--;){var p=t[l];c=wy(p.length,c),s[l]=a>=120&&p.length>=120?new so(l&&p):void 0}p=t[0];var d=-1,f=s[0];e:for(;++d<a&&u.length<c;){var m=p[d],g=m;if(m=m!==0?m:0,!(f?oa(f,g):r(u,g))){for(l=i;--l;){var _=s[l];if(!(_?oa(_,g):r(t[l],g)))continue e}f&&f.push(g),u.push(m)}}return u}function Ey(t){return fy(t)?t:[]}var Ny=Zf(function(t){var n=Br(t,Ey);return n.length&&n[0]===t[0]?Cy(n):[]});function xy(t,n){return n.length<2?t:zr(t,cl(n,0,-1))}var Ay="[object Map]",Sy="[object Set]",Py=Object.prototype,Iy=Py.hasOwnProperty;function zl(t){if(t==null)return!0;if(Do(t)&&(Ot(t)||typeof t=="string"||typeof t.splice=="function"||oo(t)||Kr(t)||jo(t)))return!t.length;var n=At(t);if(n==Ay||n==Sy)return!t.size;if(Mo(t))return!al(t).length;for(var o in t)if(Iy.call(t,o))return!1;return!0}function Dt(t,n){return Ul(t,n)}var Ty=Object.prototype,Oy=Ty.hasOwnProperty;function Hl(t,n){n=Ln(n,t);var o=-1,r=n.length;if(!r)return!0;for(var a=t==null||typeof t!="object"&&typeof t!="function";++o<r;){var i=n[o];if(typeof i=="string"){if(i==="__proto__"&&!Oy.call(t,"__proto__"))return!1;if(i==="constructor"&&o+1<r&&typeof n[o+1]=="string"&&n[o+1]==="prototype"){if(a&&o===0)continue;return!1}}}var l=xy(t,n);return l==null||delete l[qo(py(n))]}function Vy(t){return Tm(t)?void 0:t}var By=1,$y=2,Ry=4,tn=ll(function(t,n){var o={};if(t==null)return o;var r=!1;n=Br(n,function(i){return i=Ln(i,t),r||(r=i.length>1),i}),no(t,xl(t),o),r&&(o=lo(o,By|$y|Ry,Vy));for(var a=n.length;a--;)Hl(o,n[a]);return o});function Wl(t,n,o,r){if(!hn(t))return t;n=Ln(n,t);for(var a=-1,i=n.length,l=i-1,s=t;s!=null&&++a<i;){var c=qo(n[a]),u=o;if(c==="__proto__"||c==="constructor"||c==="prototype")return t;if(a!=l){var p=s[c];u=void 0,u===void 0&&(u=hn(p)?p:Fr(n[a+1])?[]:{})}Dr(s,c,u),s=s[c]}return t}function Fy(t,n,o){for(var r=-1,a=n.length,i={};++r<a;){var l=n[r],s=zr(t,l);o(s,l)&&Wl(i,Ln(l,t),s)}return i}function Ly(t,n){return Fy(t,n,function(o,r){return uy(t,r)})}var Yl=ll(function(t,n){return t==null?{}:Ly(t,n)});function Jl(t,n,o){return t==null?t:Wl(t,n,o)}var Dy=0;function Yo(t){var n=++Dy;return Uo(t)+n}function Xl(t,n){return t==null?!0:Hl(t,n)}const My=[{authentication:{mode:"none"},ssl_verify:!0},{authentication:{basic:{}}},{authentication:{basic:{},oauth2:{token_headers:{},token_post_args:{}},oauth2_client:{}}}],wn=t=>{var n,o,r,a,i,l;((o=(n=t.confluent)==null?void 0:n.authentication)==null?void 0:o.mode)==="none"&&(delete t.confluent.authentication.oauth2,delete t.confluent.authentication.oauth2_client,delete t.confluent.authentication.basic),((a=(r=t.confluent)==null?void 0:r.authentication)==null?void 0:a.mode)==="basic"&&(delete t.confluent.authentication.oauth2,delete t.confluent.authentication.oauth2_client),((l=(i=t.confluent)==null?void 0:i.authentication)==null?void 0:l.mode)==="oauth2"&&delete t.confluent.authentication.basic,My.some(s=>Dt(t.confluent,s))&&(t.confluent=null)};function jy(t,n){const o=t.split(""),r=n.split(""),a=o.length,i=r.length,l=Array.from({length:a+1},()=>Array(i+1).fill(0));for(let p=1;p<=a;p++)for(let d=1;d<=i;d++)o[p-1]===r[d-1]?l[p][d]=l[p-1][d-1]+1:l[p][d]=Math.max(l[p-1][d],l[p][d-1]);let s="",c=a,u=i;for(;c>0&&u>0;)o[c-1]===r[u-1]?(s=o[c-1]+s,c--,u--):l[c-1][u]>l[c][u-1]?c--:u--;return s}function vy(t){const n=Date.now(),o=2688*60*60*1e3;return Math.abs(n-t)<=o}const Ky={"config-message_by_lua_functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},shamefullyTransformPayload:({payload:t})=>{var n;wn((n=t.config)==null?void 0:n.schema_registry)}},Uy={"config-message_by_lua_functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},shamefullyTransformPayload:({payload:t})=>{var n;wn((n=t.config)==null?void 0:n.schema_registry)}},qy={"config-message_by_lua_functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},shamefullyTransformPayload:({payload:t})=>{var n,o,r;wn((n=t.config)==null?void 0:n.schema_registry),(r=(o=t.config)==null?void 0:o.topics)==null||r.forEach(a=>{wn(a==null?void 0:a.schema_registry)})}},Gy={"config-message_by_lua_functions":{...je,inputAttributes:{...je.inputAttributes,type:"textarea",max:!1}},shamefullyTransformPayload:({payload:t})=>{var n,o,r;wn((n=t.config)==null?void 0:n.schema_registry),(r=(o=t.config)==null?void 0:o.topics)==null||r.forEach(a=>{wn(a==null?void 0:a.schema_registry)})}},zy={shamefullyTransformPayload:({payload:t})=>{var n;wn((n=t.config)==null?void 0:n.schema_registry)}},Hy={"config-static_tags":{...$o,items:{type:"object",default:()=>({}),schema:{fields:[{model:"name",label:"name",type:"input",inputType:"string",id:"schema_name"},{model:"value",label:"value",type:"input",inputType:"string",id:"schema_value"}]}}}},Wy={"request-callout":"RequestCalloutForm","service-protection":{experimental:!0,component:"ServiceProtectionForm"},datakit:"DatakitForm","ai-mcp-proxy":"AIMcpProxyForm","jwt-signer":"CommonForm","upstream-oauth":{experimental:!0,component:"UpstreamOauthForm"},"key-auth":{experimental:!0,component:"KeyAuthForm"},"rate-limiting":{experimental:!0,component:"CommonForm"},jwt:{experimental:!0,component:"CommonForm"},"route-transformer-advanced":{experimental:!0,component:"CommonForm"},"request-transformer":{experimental:!0,component:"CommonForm"},"basic-auth":{experimental:!0,component:"CommonForm"}};function aa(t,n){const o=Wy[t];if(typeof o=="string")return o;if(n.includes(t))return o.component}function Yy(t,n,o){return o?o==="freeform":!!aa(t,n)}const ia=Symbol("EXPERIMENTAL_FREE_FORM_PROVIDER"),Jo={KM_2262_CODE_MODE:"KM-2262-code-mode",KM_2306_CONDITION_FIELD_314:"KM-2306-condition-field-314"},Zl=Symbol("TOASTER_PROVIDER"),Dn="__FREEFORM_SCHEMA_MAP__";function la(){return e.inject(ia,[])}function Jy(t){e.provide(ia,t)}function Xy(){const t=la();return{shouldUseFreeForm:(n,o)=>Yy(n,t,o),getFreeFormName:n=>aa(n,t)||"CommonForm"}}const Zy={shamefullyTransformPayload(t){var r;if(!((r=t.payload.config)!=null&&r.token_exchange))return t;const n={cache:{enabled:!0},request:{empty_audience:!1,empty_scopes:!1},subject_token_issuers:null};if(Dt(t.payload.config.token_exchange,n))return t.payload.config.token_exchange=null,t;const o=t.payload.config.token_exchange.subject_token_issuers;return o&&o.forEach(a=>{Dt(a.conditions,{})&&(a.conditions=null),a.conditions&&Object.values(a.conditions).every(i=>Array.isArray(i)&&i.length===0)&&(a.conditions=null)}),t}},Qy={shamefullyTransformPayload(t){var n,o,r,a,i;if(!((o=(n=t.payload.config)==null?void 0:n.access_logs)!=null&&o.custom_attributes_by_lua))return t;if(Dt((a=(r=t.payload.config)==null?void 0:r.access_logs)==null?void 0:a.custom_attributes_by_lua,{})){const l=(i=t.payload.config)==null?void 0:i.access_logs;l&&(l.custom_attributes_by_lua=null)}return t}},e_=(t,n)=>{const o=t.model.startsWith("config-"),r=n.model.startsWith("config-");return o&&!r?1:!o&&r?-1:0},Ql=(t,n)=>(t.order??0)-(n.order??0),es=(t,n)=>e_(t,n)||Ql(t,n)||t.model.localeCompare(n.model),Me={useI18n:Le,usePluginMetaData:Ru,usePluginHelpers:xi,useSchemas:t=>{const{capitalize:n}=ee.useStringHelpers(),{convertToDotNotation:o}=xi(),{i18n:{t:r}}=Le(),a=la(),i={"application-registration":{overwriteDefault:!0,formSchema:{...vu}},datadog:{...Ku},"exit-transformer":{...Uu},"upstream-tls":{"config-trusted_certificates":{type:"textArea",valueType:"array",rows:4,help:"A comma separated list of certificate values"}},statsd:{...nf},"statsd-advanced":{...of},"route-by-header":{...Zu},"ai-prompt-decorator":{...Fu},"ai-prompt-template":{...Lu},"ai-proxy-advanced":{...Du},"ai-rag-injector":{...Mu},"ai-llm-as-judge":{...ju},"vault-auth":{...af},"oas-validation":{...Hu},mocking:{...zu},"rate-limiting":{...Ro},"rate-limiting-advanced":(t==null?void 0:t.app)==="kongManager"?{"config-consumer_groups":Ro["config-consumer_groups"]}:{...Ro},"graphql-rate-limiting-advanced":{...qu},"injection-protection":{...Gu},"response-ratelimiting":{...Ro},"pre-function":{...Ri},"post-function":{...Ri},"request-transformer-advanced":{...Ju},"response-transformer":{...Fi},"response-transformer-advanced":{...Xu},zipkin:{...Hy},"upstream-oauth":{...rf},saml:{...Qu},"kafka-upstream":{...Ky},"solace-consume":{...ef},"solace-upstream":{...tf},"key-auth":Au(t),"key-auth-enc":Vu(t),confluent:{...Uy},"confluent-consume":{...qy},"kafka-consume":{...Gy},"kafka-log":{...zy},"openid-connect":{...Zy},opentelemetry:{...Qy}},l=()=>["created_at","updated_at","id","_isCustomPlugin","_supported_redis_partial_type","_redis_partial_path"],s=(k,N,P,$)=>{let I={};(N||k)&&(I=N||(k.fields?k.fields:k));const S=l().concat(k.blacklist?k.blacklist:[]),T=Object.keys(I).filter(j=>!S.includes(j)),K=T.indexOf("comparator");K>-1&&T.splice(K,1);let A={fields:[]};const U={};T.forEach(j=>{u(I[j],j,I,U,A,P)});const H=U.name,M=Nt[H],v=[],F=j=>{const x=["cluster-cache"];for(const D of x)if(j.model.includes(D))return!1;return new RegExp("(?<=-redis-).*").test(j.model)};if(A._supported_redis_partial_type=k._supported_redis_partial_type,A._redis_partial_path=k._redis_partial_path,ve.getSharedFormName(H)||aa(H,a)||M!=null&&M.useLegacyForm||t!=null&&t.credential||$==="freeform"){if(M!=null&&M.useLegacyForm&&(t!=null&&t.enableRedisPartial)&&k._supported_redis_partial_type){for(const j of A.fields)if(F(j)){v.push(j);continue}A.fields=A.fields.filter(j=>!F(j)),v.length&&A.fields.push({id:"_redis",fields:v,model:"__redis_partial",pluginType:k._isCustomPlugin?"custom":"bundled",redisType:k._supported_redis_partial_type,redisPath:k._redis_partial_path})}A.fields.sort((j,x)=>(j.order=j.order||0,x.order=x.order||0,j.order-x.order))}else{const j=[],x=[],D=[],G=[],te={};if(M!=null&&M.fieldRules){const Z=[...M.fieldRules.atLeastOneOf??[],...M.fieldRules.onlyOneOf??[],...M.fieldRules.mutuallyRequired??[]];if(M.fieldRules.onlyOneOfMutuallyRequired)for(const Ne of M.fieldRules.onlyOneOfMutuallyRequired)Z.push(...Ne);for(const Ne of Z)for(const Oe of Ne)te[Oe.replace(/-/g,"_").replace(/\./g,"-")]=!1}for(const Z of A.fields){if(t!=null&&t.enableRedisPartial&&k._supported_redis_partial_type&&F(Z)){G.push(Z);continue}if(Z.pinned){j.push(Z);continue}if(Z.required||te[Z.model]!==void 0){te[Z.model]===!1&&(te[Z.model]=!0),x.push(Z);continue}D.push(Z)}G.length&&D.push({id:"_redis",fields:G,model:"__redis_partial",pluginType:k._isCustomPlugin?"custom":"bundled",redisType:k._supported_redis_partial_type,redisPath:k._redis_partial_path,order:-1});const L=Object.entries(te).filter(([,Z])=>!Z).map(([Z])=>Z.replace(/-/g,".").replace(/_/g,"-"));L.length>0&&console.warn(`Unknown checked fields for plugin ${H}: ${L.join(", ")}`);const W=[];j.length>0&&W.push({fields:j.sort(Ql)}),(x.length>0||D.length>0)&&W.push({fields:x.sort(es),collapsible:{title:r("plugins.form.grouping.plugin_configuration.title"),description:r("plugins.form.grouping.plugin_configuration.description"),nestedCollapsible:{fields:D.sort(es),triggerLabel:{expand:r("plugins.form.grouping.advanced_parameters.view"),collapse:r("plugins.form.grouping.advanced_parameters.hide")}}},slots:{beforeContent:"plugin-config-before-content",emptyState:"plugin-config-empty-state"}}),A={groups:W}}return{schema:A,model:U,options:{noneSelectedText:"Nothing Selected...",helpAsHtml:!0}}},c=k=>Array.isArray(k.default)||k.default!=null&&typeof k.default!="object"&&k.default!=="function",u=(k,N,P,$,I,S)=>{const T=c(k);return $[N]=T?k.default:null,k.id=N,k.model=N,k.fields&&k.type==="record"?d(k,N,P,$,I,S):(P[N]=k,C(k,$),S&&S[N]&&p(P[N],S[N]),I.fields.push(k)),P},p=(k,N)=>(N&&(Object.assign(k,N),N.label&&(k.label=N.label)),k),d=(k,N,P,$,I,S)=>{k.fields.forEach(T=>{Object.keys(T).forEach(K=>{const A=T[K];P=u(A,N+"-"+K,P,$,I,S)})})},f=(k,N)=>{k.type="input",k.inputType="hidden",k.styleClasses="kong-form-hidden-field-wrapper";const P=t==null?void 0:t.entityId;N[k.model]=P?{id:P}:null},m=k=>{k.type="input",k.inputType="number",k.between&&k.between.length===2&&(k.min=k.between[0],k.max=k.between[1])},g=k=>{Object.prototype.hasOwnProperty.call(k,"one_of")?(k.type="select",k.values=k.one_of,k.selectOptions={hideNoneSelectedText:!0}):(k.type="input",k.inputType="text")},_=k=>{k.type="checkbox",k.default=!0,k.required=!1},h=k=>{if(k.type="object-advanced",k.values.type==="array"){const{type:N}=k.values.elements||{};k.schema={fields:[{schema:{fields:[{...je,model:k.model,valueArrayType:N==="integer"?"number":N||"string",inputAttributes:{...je.inputAttributes,type:N==="integer"?"number":"text",inputMode:N==="integer"?"numeric":"text"}}]}}]}}else k.values.fields&&(k.schema={fields:[{type:"object",model:"object",schema:{fields:k.values.fields.map(N=>{const P=Object.keys(N)[0];return{model:P,type:"input",label:n(P),placeholder:P,inputType:N[P].type}})}}]})},y=k=>k.fields.reduce((N,P)=>(P.fields&&P.fields.forEach($=>{N[$.model]=$}),P.model&&(N[P.model]=P),N),{}),w=(k,N)=>{if(!ve.customFields.includes(k.model))return;const P=y(k);ve.customFields.forEach($=>{Object.keys(P).forEach(I=>{const S=c(P[I]);N[I]=S?P[I].default:null}),delete N[$]})},E=(k,N)=>k.inputType==="hidden"?"":o(n(k.label||N.replace(/_/g," "))),C=(k,N)=>{switch(w(k,N),k.type){case"foreign":f(k,N);break;case"number":m(k),k.attributes={step:"any"};break;case"integer":m(k);break;case"string":g(k);break;case"boolean":_(k);break;case"map":h(k);break}k.inputType==="foreign"&&f(k,N),k.label=E(k,k.model)};function b(k,N){if(N==null||N.type&&N.type!=="record"||typeof k!="object"||k==null)return k;const P={};for(const $ of N.fields){const I=Object.keys($)[0],S=$[I];S.type==="record"?P[I]=b(k[I],S):S.type==="array"&&Array.isArray(k[I])&&S.elements.type==="record"?P[I]=k[I].map(T=>b(T,S.elements)):P[I]=k[I]}return P}return{buildFormSchema:u,parseSchema:s,customSchemas:i,typedefs:$n,pruneRecord:b}},useExperimentalFreeForms:la,useProvideExperimentalFreeForms:Jy,useFreeFormResolver:Xy},t_=(t,n)=>({type:"array",valueType:"string",valueArrayType:"array",itemContainerComponent:"FieldArrayItem",fieldClasses:"kong-form-array-field",fieldItemsClasses:"kong-form-array-field-item",validator:"array",styleClasses:"kong-form-field-wrapper",newElementButtonLabel:"+ Add",newElementButtonLabelClasses:"kong-form-new-element-button-label",items:{type:"select",values:t,selectOptions:{hideNoneSelectedText:!0},...(n==null?void 0:n[0])!=null?{default:n[0]}:{}}}),dt="/v2/control-planes/{controlPlaneId}/core-entities",gt="/{workspace}",We={list:{konnect:{all:`${dt}/plugins`,forEntity:`${dt}/{entityType}/{entityId}/plugins`},kongManager:{all:`${gt}/plugins`,forEntity:`${gt}/{entityType}/{entityId}/plugins`}},select:{konnect:{availablePlugins:`${dt}/v1/available-plugins`,streamingCustomPlugins:`${dt}/custom-plugins`,schemaCustomPluginItem:`${dt}/plugin-schemas/{pluginId}`,streamingCustomPluginItem:`${dt}/custom-plugins/{pluginId}`},kongManager:{availablePlugins:`${gt}/kong`,availablePluginsForOss:"/"}},form:{konnect:{create:{all:`${dt}/plugins`,forEntity:`${dt}/{entityType}/{entityId}/plugins`},edit:{all:`${dt}/plugins/{id}`,forEntity:`${dt}/{entityType}/{entityId}/plugins/{id}`},pluginSchema:"/v2/control-planes/{controlPlaneId}/schemas/core-entities/plugins/{plugin}",credential:{create:`${dt}/{resourceEndpoint}`,edit:`${dt}/{resourceEndpoint}/{id}`},credentialSchema:"/v2/control-planes/{controlPlaneId}/schemas/core-entities/{plugin}",entityGetOne:`${dt}/{entity}/{id}`,entityGetAll:`${dt}/{entity}`,entityPeek:`${dt}/{entity}?size={amount}`},kongManager:{create:{all:`${gt}/plugins`,forEntity:`${gt}/{entityType}/{entityId}/plugins`},edit:{all:`${gt}/plugins/{id}`,forEntity:`${gt}/{entityType}/{entityId}/plugins/{id}`},pluginSchema:`${gt}/schemas/plugins/{plugin}`,credential:{create:`${gt}/{resourceEndpoint}`,edit:`${gt}/{resourceEndpoint}/{id}`},credentialSchema:`${gt}/schemas/{plugin}`,entityGetOne:`${gt}/{entity}/{id}`,entityGetAll:`${gt}/{entity}`}},item:{konnect:{all:`${dt}/plugins/{id}`,forEntity:`${dt}/{entityType}/{entityId}/plugins/{id}`},kongManager:{all:`${gt}/plugins/{id}`,forEntity:`${gt}/{entityType}/{entityId}/plugins/{id}`}}},n_={key:0},o_=ye(e.defineComponent({__name:"PluginFieldRuleAlerts",props:{rules:{}},setup(t){const n=t,{formatPluginFieldLabel:o}=Me.usePluginHelpers(),{i18n:{t:r}}=Me.useI18n(),a=s=>s.map(c=>c.replace(/^[cC]onfig\./,"").split(".").map(u=>o(u)).join(".")).join(", "),i=(s,c)=>r(s,{parameters:a(c)}),l=e.computed(()=>{const s=[];if(n.rules.atLeastOneOf)for(const c of n.rules.atLeastOneOf)s.push(i("plugins.form.field_rules.at_least_one_of",c));if(n.rules.onlyOneOf)for(const c of n.rules.onlyOneOf)s.push(i("plugins.form.field_rules.only_one_of",c));if(n.rules.mutuallyRequired)for(const c of n.rules.mutuallyRequired)s.push(i("plugins.form.field_rules.mutually_required",c));return s});return(s,c)=>{const u=e.resolveComponent("KAlert");return e.openBlock(),e.createBlock(u,{class:"plugin-field-rule-alerts"},{default:e.withCtx(()=>[e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(p,d)=>(e.openBlock(),e.createElementBlock("li",{key:`simple-alert-${d}`},e.toDisplayString(p),1))),128)),n.rules.onlyOneOfMutuallyRequired&&n.rules.onlyOneOfMutuallyRequired.length>0?(e.openBlock(),e.createElementBlock("li",n_,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.rules.onlyOneOfMutuallyRequired,(p,d)=>(e.openBlock(),e.createElementBlock("div",{key:`only-one-mutually-alert-${d}`},[e.createElementVNode("div",null,e.toDisplayString(e.unref(r)("plugins.form.field_rules.only_one_of_mutually_required")),1),e.createElementVNode("ul",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(p,(f,m)=>(e.openBlock(),e.createElementBlock("li",{key:`only-one-mutually-alert-${d}-combination-${m}`},e.toDisplayString(a(f)),1))),128))])]))),128))])):e.createCommentVNode("",!0)])]),_:1})}}}),[["__scopeId","data-v-d8eb79cf"]]),r_="__request_callout_";function ts(){return Yo(r_)}function sa(t){return t.map(n=>({value:n,label:`${n}`}))}const ca="*",Cn="$",Xo=".";function Xe(...t){return t.join(Xo)}function da(...t){return Xe(Cn,...t)}function ns(t){return t.startsWith(Xe(Cn,""))}function _t(t){return t.split(Xo).filter(n=>n!=="")}function En(t){const n=_t(t);return n[n.length-1]}function a_(t){return t.startsWith(Cn)&&(t=Xe(..._t(t).slice(1))),t}function i_(t,n){const o=new RegExp("(?<=config-redis-).*"),r=/Config\.Redis.*/;return n.filter(i=>{const l=i.model.match(o);return l&&!Object.keys(t).includes(l[0])}).map(i=>{const l=i.label.match(r);return{label:l?l[0]:i.label,key:i.model,value:"N/A",type:"text"}})}function l_(t){const n=e.toValue(t);return n?n.type==="set"&&n.elements.type==="string"&&!n.elements.one_of:!1}function os(t,n){return[...t].sort((o,r)=>{const a=Object.keys(o)[0],i=Object.keys(r)[0],l=n.indexOf(a),s=n.indexOf(i);return l===-1&&s===-1?0:l===-1?1:s===-1?-1:l-s})}function rs(t,n){const o=new Map;t.forEach(u=>{const p=Object.keys(u)[0];o.set(p,u)});const r=new Map;n.forEach((u,p)=>{u.forEach((d,f)=>{r.has(d)||r.set(d,[]),r.get(d).push({bundleIndex:p,position:f})})});const a=new Set,i=[],l=new Set,s=u=>{const p=r.get(u);if(!p)return!0;for(const{bundleIndex:d,position:f}of p){const m=n[d];for(let g=0;g<f;g++){const _=m[g];if(o.has(_)&&!a.has(_))return!1}}return!0},c=u=>{if(a.has(u))return;const p=o.get(u);if(!p)return;i.push(p),a.add(u),l.delete(u);const d=r.get(u);if(d)for(const{bundleIndex:m,position:g}of d){const _=n[m];for(let h=g+1;h<_.length;h++){const y=_[h];if(!a.has(y)){const w=o.get(y);w&&(i.push(w),a.add(y),l.delete(y))}}}const f=Array.from(l);for(const m of f)s(m)&&c(m)};for(const u of t){const p=Object.keys(u)[0];a.has(p)||(s(p)?c(p):l.add(p))}return i}function s_(t){var r;const n=_t(t);let o={parent:null};for(n.pop();n.length;){const a=n.shift();o.path=(r=o.parent)!=null&&r.path?Xe(o.parent.path,a):a,o={parent:o}}return o}function as(t){return e.computed(()=>s_(e.toValue(t)))}const is=Symbol("free-form-field-path"),ua=Symbol("free-form-field-renderer-slots"),ls=Symbol("free-form-field-reset-label-path-setting"),Mn="free-form-field-renderers-slot",c_={tooltipAttributes:{maxWidth:"300px",placement:"top"}};function d_(t,n=""){const o={},r=t;return Array.isArray(r.fields)?Object.assign(o,fa(r,n)):t.type==="array"&&t.elements&&Object.assign(o,pa(t,n)),o}function fa(t,n=""){const o={};if(Array.isArray(t.fields))for(const r of t.fields){const a=Object.keys(r)[0],i=r[a],l=n?Xe(n,a):a;if(o[l]=i,i.type==="record"&&Array.isArray(i.fields)){const s=fa(i,l);Object.assign(o,s)}else if(i.type==="array"&&i.elements){const s=pa(i,l);Object.assign(o,s)}}return o}function pa(t,n=""){const o={};if(t.elements){const r=t.elements,a=Xe(n,ca);if(o[a]=r,r.type==="record"&&Array.isArray(r.fields)){const i=fa(r,a);Object.assign(o,i)}else if(r.type==="array"&&r.elements){const i=pa(r,a);Object.assign(o,i)}}return o}function Zo(t){const n=_t(t).map(o=>/^\d+$/.test(o)?ca:o);return Xe(...n)}function u_(t){const n=e.toValue(t),o=e.computed(()=>n?d_(n):{});function r(f){var m;return f==null?n:(m=o.value)==null?void 0:m[Zo(f)]}function a(f,m=!1){const g=r(f);return g?g.default!==void 0?g.default:m||g.required?g.type==="record"?i(g,f):g.type==="array"?[]:g.type==="map"?{}:null:null:null}function i(f,m){const g={};if(Array.isArray(f.fields))for(const _ of f.fields){const h=Object.keys(_)[0],y=m?`${m}.${h}`:h,w=a(y,!1);w!==void 0&&(g[h]=w)}return g}function l(f){return f?a(f,!0):i(r(),"")}function s(f){const m=r(f),g=m!=null&&m.description?Io.marked.parse(m.description,{async:!1}):void 0;return{...c_,"data-testid":`ff-label-${f}`,info:g}}function c(f){var g;const m=r(f);return sa((m==null?void 0:m.one_of)||((g=m.elements)==null?void 0:g.one_of)||[])}function u(f){const m=r(f),g=m==null?void 0:m.default;let _=null;if((m==null?void 0:m.type)==="foreign"&&(g!=null&&g.id))_=g.id;else{if(g==null||typeof g=="object"||g==="")return null;if(Array.isArray(g)){if(g.length===0)return null;_=g.join(", ")}else _=g.toString()}return`Default: ${_}`}function p(){return o.value}function d(f){const m=r(f);return(m==null?void 0:m.required)?l(f):null}return{getSchemaMap:p,getSchema:r,getDefault:l,getSelectItems:c,getLabelAttributes:s,getPlaceholder:u,getEmptyOrDefault:d}}function f_(t){const n=e.ref({}),o=e.ref(new Set);function r(g,_){const h=g.map(w=>_t(w).length),y=h[0];if(!h.every(w=>w===y)){const w=g.map((E,C)=>` - '${E}' is at level ${h[C]}`).join(`
|
|
14
14
|
`);throw new Error(`${_}: Fields must be at the same level. Found mixed levels:
|
|
15
15
|
${w}`)}}function a(g){for(const[_,h]of Object.entries(g)){if(!h.bundles)continue;for(const w of h.bundles)if(new Set(w).size!==w.length){const C=w.filter((b,k)=>w.indexOf(b)!==k);throw new Error(`Self-cycle detected in bundle: field '${C[0]}' appears multiple times in [${w.join(", ")}]`)}const y=new Map;for(const w of h.bundles)for(let E=1;E<w.length;E++){const C=w[E],b=w[E-1];y.has(C)||y.set(C,new Set),y.get(C).add(b)}for(const w of y.keys()){let E=function(k){if(b.includes(k)){const P=[...b,k].join(" -> ");throw new Error(`Circular bundle detected in path '${_}':
|
|
16
16
|
${P}`)}if(C.has(k))return;C.add(k),b.push(k);const N=y.get(k);if(N)for(const P of N)E(P);b.pop()};const C=new Set,b=[];E(w)}}}function i(g){for(const[_,h]of Object.entries(g))if(h.dependencies)for(const y of Object.keys(h.dependencies)){let w=function(b){if(C.includes(b)){const N=[...C,b].join(" -> ");throw new Error(`Circular dependency detected in path '${_}':
|
|
@@ -5,7 +5,8 @@ import type { CommonSchemaFields } from '../../types/plugins/shared';
|
|
|
5
5
|
export interface OTELPluginConfig_gte_314 {
|
|
6
6
|
config: {
|
|
7
7
|
access_logs: {
|
|
8
|
-
custom_attributes_by_lua
|
|
8
|
+
custom_attributes_by_lua?: Record<string, string> | null;
|
|
9
|
+
endpoint?: string | null;
|
|
9
10
|
};
|
|
10
11
|
};
|
|
11
12
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otel.d.ts","sourceRoot":"","sources":["../../../../src/types/plugins/otel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,wBAAwB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"otel.d.ts","sourceRoot":"","sources":["../../../../src/types/plugins/otel.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAA;AAEpE;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE;QACN,WAAW,EAAE;YACX,wBAAwB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;YACxD,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;SACzB,CAAA;KACF,CAAA;CACF;AAED,MAAM,WAAW,UAAW,SAAQ,kBAAkB,CAAC,wBAAwB,CAAC;CAAG"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/entities-plugins",
|
|
3
|
-
"version": "9.167.1
|
|
3
|
+
"version": "9.167.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/entities-plugins.umd.js",
|
|
6
6
|
"module": "./dist/entities-plugins.es.js",
|
|
@@ -83,9 +83,9 @@
|
|
|
83
83
|
"vue-router": "^4.6.4",
|
|
84
84
|
"zod": "^4.3.6",
|
|
85
85
|
"@kong-ui-public/entities-vaults": "^4.4.0",
|
|
86
|
-
"@kong-ui-public/entities-shared": "^3.39.11",
|
|
87
86
|
"@kong-ui-public/i18n": "^2.4.6",
|
|
88
|
-
"@kong-ui-public/monaco-editor": "^0.19.1"
|
|
87
|
+
"@kong-ui-public/monaco-editor": "^0.19.1",
|
|
88
|
+
"@kong-ui-public/entities-shared": "^3.39.11"
|
|
89
89
|
},
|
|
90
90
|
"repository": {
|
|
91
91
|
"type": "git",
|
|
@@ -104,15 +104,15 @@
|
|
|
104
104
|
"dependencies": {
|
|
105
105
|
"lodash-es": "^4.17.23",
|
|
106
106
|
"marked": "^14.1.4",
|
|
107
|
-
"@kong-ui-public/entities-consumer-groups": "^4.2.51",
|
|
108
107
|
"@kong-ui-public/entities-gateway-services": "^3.15.2",
|
|
109
108
|
"@kong-ui-public/entities-plugins-icon": "^1.6.1",
|
|
110
|
-
"@kong-ui-public/entities-plugins-metadata": "^1.13.1",
|
|
111
109
|
"@kong-ui-public/entities-redis-configurations": "^1.10.0",
|
|
110
|
+
"@kong-ui-public/entities-consumers": "^4.2.52",
|
|
111
|
+
"@kong-ui-public/entities-plugins-metadata": "^1.13.1",
|
|
112
|
+
"@kong-ui-public/entities-consumer-groups": "^4.2.51",
|
|
112
113
|
"@kong-ui-public/entities-routes": "^3.19.5",
|
|
113
114
|
"@kong-ui-public/entities-vaults": "^4.4.0",
|
|
114
|
-
"@kong-ui-public/forms": "^4.22.0"
|
|
115
|
-
"@kong-ui-public/entities-consumers": "^4.2.52"
|
|
115
|
+
"@kong-ui-public/forms": "^4.22.0"
|
|
116
116
|
},
|
|
117
117
|
"scripts": {
|
|
118
118
|
"dev": "cross-env USE_SANDBOX=true vite",
|