@redocly/openapi-docs 3.21.0-next.2 → 3.21.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/redocly-openapi-docs.min.js +53 -16
- package/package.json +3 -3
|
@@ -3310,7 +3310,6 @@ Error generating stack: `+A.message+`
|
|
|
3310
3310
|
--banner-button-icon-right-padding: 1px 10px 1px var(--spacing-sm); // @presenter Spacing
|
|
3311
3311
|
--banner-button-margin: 0 var(--spacing-xs); // @presenter Spacing
|
|
3312
3312
|
--banner-padding: var(--spacing-xs); // @presenter Spacing
|
|
3313
|
-
--banner-link-decoration: var(--link-decoration-hover);
|
|
3314
3313
|
--banner-min-height: 38px;
|
|
3315
3314
|
--banner-gap: var(--spacing-xxs); // @presenter Spacing
|
|
3316
3315
|
|
|
@@ -3318,21 +3317,29 @@ Error generating stack: `+A.message+`
|
|
|
3318
3317
|
--banner-info-text-color: var(--color-static-white); // @presenter Color
|
|
3319
3318
|
--banner-info-icon-color: var(--color-static-white); // @presenter Color
|
|
3320
3319
|
--banner-info-link-color: var(--banner-info-text-color); // @presenter Color
|
|
3320
|
+
--banner-info-link-decoration: underline 1px var(--banner-info-link-color);
|
|
3321
|
+
--banner-info-link-decoration-hover: underline 2px var(--banner-info-link-color);
|
|
3321
3322
|
|
|
3322
3323
|
--banner-success-bg-color: var(--color-success-base); // @presenter Color
|
|
3323
3324
|
--banner-success-text-color: var(--color-static-white); // @presenter Color
|
|
3324
3325
|
--banner-success-icon-color: var(--color-static-white); // @presenter Color
|
|
3325
3326
|
--banner-success-link-color: var(--banner-success-text-color); // @presenter Color
|
|
3327
|
+
--banner-success-link-decoration: underline 1px var(--banner-success-link-color);
|
|
3328
|
+
--banner-success-link-decoration-hover: underline 2px var(--banner-success-link-color);
|
|
3326
3329
|
|
|
3327
3330
|
--banner-warning-bg-color: var(--color-warning-base); // @presenter Color
|
|
3328
3331
|
--banner-warning-text-color: var(--color-black); // @presenter Color
|
|
3329
3332
|
--banner-warning-icon-color: var(--color-black); // @presenter Color
|
|
3330
3333
|
--banner-warning-link-color: var(--banner-warning-text-color); // @presenter Color
|
|
3334
|
+
--banner-warning-link-decoration: underline 1px var(--banner-warning-link-color);
|
|
3335
|
+
--banner-warning-link-decoration-hover: underline 2px var(--banner-warning-link-color);
|
|
3331
3336
|
|
|
3332
3337
|
--banner-error-bg-color: var(--color-error-base); // @presenter Color
|
|
3333
3338
|
--banner-error-text-color: var(--color-static-white); // @presenter Color
|
|
3334
3339
|
--banner-error-icon-color: var(--color-static-white); // @presenter Color
|
|
3335
3340
|
--banner-error-link-color: var(--banner-error-text-color); // @presenter Color
|
|
3341
|
+
--banner-error-link-decoration: underline 1px var(--banner-error-link-color);
|
|
3342
|
+
--banner-error-link-decoration-hover: underline 2px var(--banner-error-link-color);
|
|
3336
3343
|
`,Tot=Fe`
|
|
3337
3344
|
/**
|
|
3338
3345
|
* @tokens Markdown Tabs
|
|
@@ -3879,6 +3886,8 @@ Error generating stack: `+A.message+`
|
|
|
3879
3886
|
--color-brand-10: #555761; // @presenter Color
|
|
3880
3887
|
--color-brand-11: #6e6f7a; // @presenter Color
|
|
3881
3888
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
3889
|
+
|
|
3890
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3882
3891
|
`;case"pink":return Fe`
|
|
3883
3892
|
--color-brand-1: #ffe8f7; // @presenter Color
|
|
3884
3893
|
--color-brand-2: #f7bfe2; // @presenter Color
|
|
@@ -3892,6 +3901,8 @@ Error generating stack: `+A.message+`
|
|
|
3892
3901
|
--color-brand-10: #6a3055; // @presenter Color
|
|
3893
3902
|
--color-brand-11: #4f2841; // @presenter Color
|
|
3894
3903
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
3904
|
+
|
|
3905
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3895
3906
|
`;case"coral":return Fe`
|
|
3896
3907
|
--color-brand-1: #ffe8ea; // @presenter Color
|
|
3897
3908
|
--color-brand-2: #fac5c9; // @presenter Color
|
|
@@ -3905,6 +3916,8 @@ Error generating stack: `+A.message+`
|
|
|
3905
3916
|
--color-brand-10: #6d3338; // @presenter Color
|
|
3906
3917
|
--color-brand-11: #4f282b; // @presenter Color
|
|
3907
3918
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
3919
|
+
|
|
3920
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3908
3921
|
`;case"amber":return Fe`
|
|
3909
3922
|
--color-brand-1: #fff4e8; // @presenter Color
|
|
3910
3923
|
--color-brand-2: #feddba; // @presenter Color
|
|
@@ -3918,6 +3931,8 @@ Error generating stack: `+A.message+`
|
|
|
3918
3931
|
--color-brand-10: #71512e; // @presenter Color
|
|
3919
3932
|
--color-brand-11: #4f3c28; // @presenter Color
|
|
3920
3933
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
3934
|
+
|
|
3935
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3921
3936
|
`;case"jade":return Fe`
|
|
3922
3937
|
--color-brand-1: #e8fff9; // @presenter Color
|
|
3923
3938
|
--color-brand-2: #b5edde; // @presenter Color
|
|
@@ -3931,6 +3946,8 @@ Error generating stack: `+A.message+`
|
|
|
3931
3946
|
--color-brand-10: #2a6052; // @presenter Color
|
|
3932
3947
|
--color-brand-11: #284f45; // @presenter Color
|
|
3933
3948
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
3949
|
+
|
|
3950
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3934
3951
|
`;case"cyan":return Fe`
|
|
3935
3952
|
--color-brand-1: #e8fbff; // @presenter Color
|
|
3936
3953
|
--color-brand-2: #aee7f4; // @presenter Color
|
|
@@ -3944,6 +3961,8 @@ Error generating stack: `+A.message+`
|
|
|
3944
3961
|
--color-brand-10: #285c67; // @presenter Color
|
|
3945
3962
|
--color-brand-11: #28484f; // @presenter Color
|
|
3946
3963
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
3964
|
+
|
|
3965
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3947
3966
|
`;case"ocean":return Fe`
|
|
3948
3967
|
--color-brand-1: #e8f5ff; // @presenter Color
|
|
3949
3968
|
--color-brand-2: #b6dfff; // @presenter Color
|
|
@@ -3957,6 +3976,8 @@ Error generating stack: `+A.message+`
|
|
|
3957
3976
|
--color-brand-10: #2d5472; // @presenter Color
|
|
3958
3977
|
--color-brand-11: #283e4f; // @presenter Color
|
|
3959
3978
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
3979
|
+
|
|
3980
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3960
3981
|
`;case"indigo":return Fe`
|
|
3961
3982
|
--color-brand-1: #e8edff; // @presenter Color
|
|
3962
3983
|
--color-brand-2: #b5d7ff; // @presenter Color
|
|
@@ -3970,6 +3991,8 @@ Error generating stack: `+A.message+`
|
|
|
3970
3991
|
--color-brand-10: #303e6b; // @presenter Color
|
|
3971
3992
|
--color-brand-11: #28314f; // @presenter Color
|
|
3972
3993
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
3994
|
+
|
|
3995
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3973
3996
|
`;case"iris":return Fe`
|
|
3974
3997
|
--color-brand-1: #ebebff; // @presenter Color
|
|
3975
3998
|
--color-brand-2: #c8c8f7; // @presenter Color
|
|
@@ -3983,6 +4006,8 @@ Error generating stack: `+A.message+`
|
|
|
3983
4006
|
--color-brand-10: #3a3a6a; // @presenter Color
|
|
3984
4007
|
--color-brand-11: #2e2e4f; // @presenter Color
|
|
3985
4008
|
--text-color-on-color: #ffffff; // @presenter Color
|
|
4009
|
+
|
|
4010
|
+
--link-color-primary-palette: var(--text-color-primary); // @presenter Color
|
|
3986
4011
|
`;default:return Fe`
|
|
3987
4012
|
--button-bg-color-primary-legacy: var(--color-blue-6); // @presenter Color
|
|
3988
4013
|
--button-bg-color-primary-hover-legacy: var(--color-blue-7); // @presenter Color
|
|
@@ -4022,6 +4047,11 @@ Error generating stack: `+A.message+`
|
|
|
4022
4047
|
--button-content-color-link-legacy: var(--link-color-primary); // @presenter Color
|
|
4023
4048
|
--button-content-color-link-hover-legacy: var(--link-color-primary-hover); // @presenter Color
|
|
4024
4049
|
--button-content-color-link-pressed-legacy: var(--link-color-primary-pressed); // @presenter Color
|
|
4050
|
+
|
|
4051
|
+
--link-color-primary-legacy: var(--color-blue-6); // @presenter Color
|
|
4052
|
+
--link-color-primary-hover-legacy: var(--color-blue-7); // @presenter Color
|
|
4053
|
+
--link-color-primary-pressed-legacy: var(--color-blue-8); // @presenter Color
|
|
4054
|
+
--link-color-visited-legacy: var(--color-purple-7); // @presenter Color
|
|
4025
4055
|
`}}const Wot=Fe`
|
|
4026
4056
|
${({palette:e})=>Qot(e)}
|
|
4027
4057
|
`,Zot=Fe`
|
|
@@ -4630,6 +4660,10 @@ Error generating stack: `+A.message+`
|
|
|
4630
4660
|
--admonition-default-border-color-legacy: var(--color-warm-grey-5);
|
|
4631
4661
|
|
|
4632
4662
|
--code-block-highlighted-bg-color-legacy: color-mix(in srgb, var(--color-warm-grey-4) 40%, transparent);
|
|
4663
|
+
|
|
4664
|
+
--link-color-primary-legacy: var(--color-blue-7);
|
|
4665
|
+
--link-color-primary-hover-legacy: var(--color-blue-8);
|
|
4666
|
+
--link-color-visited-legacy: var(--color-purple-8);
|
|
4633
4667
|
`}}const hst=Fe`
|
|
4634
4668
|
${({palette:e})=>pst(e)}
|
|
4635
4669
|
`,mst=Fe`
|
|
@@ -4902,10 +4936,10 @@ Error generating stack: `+A.message+`
|
|
|
4902
4936
|
* @tokens Links
|
|
4903
4937
|
*/
|
|
4904
4938
|
|
|
4905
|
-
--link-color-primary: var(--color-
|
|
4906
|
-
--link-color-primary-hover: var(--color-
|
|
4939
|
+
--link-color-primary: var(--link-color-primary-palette, var(--link-color-primary-legacy)); // @presenter Color
|
|
4940
|
+
--link-color-primary-hover: var(--link-color-primary-palette, var(--link-color-primary-hover-legacy)); // @presenter Color
|
|
4907
4941
|
--link-color-inverse: var(--color-blue-6); // @presenter Color
|
|
4908
|
-
--link-color-visited: var(--color-
|
|
4942
|
+
--link-color-visited: var(--link-color-primary-palette, var(--link-color-visited-legacy)); // @presenter Color
|
|
4909
4943
|
|
|
4910
4944
|
/**
|
|
4911
4945
|
* @tokens Tab Colors
|
|
@@ -5486,18 +5520,19 @@ Error generating stack: `+A.message+`
|
|
|
5486
5520
|
* @tokens Links
|
|
5487
5521
|
*/
|
|
5488
5522
|
|
|
5489
|
-
--link-color-primary: var(--color-
|
|
5490
|
-
--link-decoration:
|
|
5491
|
-
--link-
|
|
5523
|
+
--link-color-primary: var(--link-color-primary-palette, var(--link-color-primary-legacy)); // @presenter Color
|
|
5524
|
+
--link-decoration: underline 1px var(--color-primary-base, var(--link-color-primary-legacy));
|
|
5525
|
+
--link-underline-offset: 4px;
|
|
5526
|
+
--link-font-weight: var(--font-weight-medium); // @presenter FontWeight
|
|
5492
5527
|
|
|
5493
|
-
--link-color-primary-hover: var(--color-
|
|
5494
|
-
--link-color-primary-pressed: var(--color-
|
|
5495
|
-
--link-decoration-hover: underline;
|
|
5528
|
+
--link-color-primary-hover: var(--link-color-primary-palette, var(--link-color-primary-hover-legacy)); // @presenter Color
|
|
5529
|
+
--link-color-primary-pressed: var(--link-color-primary-palette, var(--link-color-primary-pressed-legacy));
|
|
5530
|
+
--link-decoration-hover: underline 2px var(--color-primary-base, var(--link-color-primary-hover-legacy));
|
|
5496
5531
|
|
|
5497
5532
|
--link-color-inverse: var(--color-blue-5); // @presenter Color
|
|
5498
5533
|
|
|
5499
|
-
--link-color-visited: var(--color-
|
|
5500
|
-
--link-visited
|
|
5534
|
+
--link-color-visited: var(--link-color-primary-palette, var(--link-color-visited-legacy)); // @presenter Color
|
|
5535
|
+
--link-decoration-visited: underline 1px var(--color-primary-base, var(--link-color-visited-legacy));
|
|
5501
5536
|
|
|
5502
5537
|
// @tokens End
|
|
5503
5538
|
`,Sst=Fe`
|
|
@@ -6565,7 +6600,7 @@ Error generating stack: `+A.message+`
|
|
|
6565
6600
|
min-width: 0;
|
|
6566
6601
|
max-width: none;
|
|
6567
6602
|
}
|
|
6568
|
-
`;function Wp(){const e=P.useId().replace(/:/g,"_");return t=>`${t}-${e}`}var s1={},l1={},Cie={},jie;function hut(){return jie||(jie=1,Object.defineProperty(Cie,"__esModule",{value:!0})),Cie}var HS={},c1={},VS={},mut=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},eb="1.9.0",Pie=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function fut(e){var t=new Set([e]),a=new Set,r=e.match(Pie);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(Pie);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var gut=fut(eb),vut=eb.split(".")[0],FS=Symbol.for("opentelemetry.js.api."+vut),qS=mut;function GS(e,t,a,r){var n;r===void 0&&(r=!1);var i=qS[FS]=(n=qS[FS])!==null&&n!==void 0?n:{version:eb};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==eb){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+eb);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+eb+"."),!0}function tb(e){var t,a,r=(t=qS[FS])===null||t===void 0?void 0:t.version;if(!(!r||!gut(r)))return(a=qS[FS])===null||a===void 0?void 0:a[e]}function US(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+eb+".");var a=qS[FS];a&&delete a[e]}var but=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},yut=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},kut=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("verbose",this._namespace,t)},e})();function QS(e,t,a){var r=tb("diag");if(r)return a.unshift(t),r[e].apply(r,yut([],but(a),!1))}var Ac;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Ac||(Ac={}));function xut(e,t){e<Ac.NONE?e=Ac.NONE:e>Ac.ALL&&(e=Ac.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",Ac.ERROR),warn:a("warn",Ac.WARN),info:a("info",Ac.INFO),debug:a("debug",Ac.DEBUG),verbose:a("verbose",Ac.VERBOSE)}}var wut=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Sut=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},Out="diag",Zp=(function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=tb("diag");if(s)return s[n].apply(s,Sut([],wut(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:Ac.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=tb("diag"),d=xut((s=i.logLevel)!==null&&s!==void 0?s:Ac.INFO,n);if(u&&!i.suppressOverrideMessage){var h=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return GS("diag",d,a,!0)};a.setLogger=r,a.disable=function(){US(Out,a)},a.createComponentLogger=function(n){return new kut(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),zut=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Cut=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jut=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=zut(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=Cut(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e})(),Put=Symbol("BaggageEntryMetadata"),Aut=Zp.instance();function Tut(e){return e===void 0&&(e={}),new jut(new Map(Object.entries(e)))}function Aie(e){return typeof e!="string"&&(Aut.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Put,toString:function(){return e}}}function eT(e){return Symbol.for(e)}var _ut=(function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e})(),ab=new _ut,JI=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Mut=(function(){function e(){function t(r){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(console){var o=console[r];if(typeof o!="function"&&(o=console.log),typeof o=="function")return o.apply(console,n)}}}for(var a=0;a<JI.length;a++)this[JI[a].n]=t(JI[a].c)}return e})(),rb=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),Eut=(function(){function e(){}return e.prototype.createGauge=function(t,a){return Hut},e.prototype.createHistogram=function(t,a){return Vut},e.prototype.createCounter=function(t,a){return Kut},e.prototype.createUpDownCounter=function(t,a){return Fut},e.prototype.createObservableGauge=function(t,a){return Gut},e.prototype.createObservableCounter=function(t,a){return qut},e.prototype.createObservableUpDownCounter=function(t,a){return Uut},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e})(),tT=(function(){function e(){}return e})(),Rut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(tT),Nut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(tT),Iut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(tT),Lut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(tT),YI=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),But=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(YI),Dut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(YI),$ut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(YI),Tie=new Eut,Kut=new Rut,Hut=new Iut,Vut=new Lut,Fut=new Nut,qut=new But,Gut=new Dut,Uut=new $ut;function _ie(){return Tie}var XI;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(XI||(XI={}));var Mie={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},Eie={set:function(e,t,a){e!=null&&(e[t]=a)}},Qut=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Wut=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},Zut=(function(){function e(){}return e.prototype.active=function(){return ab},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,Wut([r],Qut(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),Jut=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Yut=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},eL="context",Xut=new Zut,aT=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return GS(eL,t,Zp.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,Yut([t,a,r],Jut(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return tb(eL)||Xut},e.prototype.disable=function(){this._getContextManager().disable(),US(eL,Zp.instance())},e})(),Id;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Id||(Id={}));var tL="0000000000000000",aL="00000000000000000000000000000000",rL={traceId:aL,spanId:tL,traceFlags:Id.NONE},WS=(function(){function e(t){t===void 0&&(t=rL),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e})(),nL=eT("OpenTelemetry Context Key SPAN");function iL(e){return e.getValue(nL)||void 0}function edt(){return iL(aT.getInstance().active())}function oL(e,t){return e.setValue(nL,t)}function tdt(e){return e.deleteValue(nL)}function adt(e,t){return oL(e,new WS(t))}function Rie(e){var t;return(t=iL(e))===null||t===void 0?void 0:t.spanContext()}var rdt=/^([0-9a-f]{32})$/i,ndt=/^[0-9a-f]{16}$/i;function sL(e){return rdt.test(e)&&e!==aL}function Nie(e){return ndt.test(e)&&e!==tL}function ZS(e){return sL(e.traceId)&&Nie(e.spanId)}function idt(e){return new WS(e)}var lL=aT.getInstance(),Iie=(function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=lL.active());var n=!!a?.root;if(n)return new WS;var i=r&&Rie(r);return odt(i)&&ZS(i)?new WS(i):new WS},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??lL.active(),c=this.startSpan(t,i,l),u=oL(l,c);return lL.with(u,s,void 0,c)}},e})();function odt(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var sdt=new Iie,Lie=(function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):sdt},e})(),ldt=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new Iie},e})(),cdt=new ldt,cL=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new Lie(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:cdt},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e})(),JS;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(JS||(JS={}));var rT;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(rT||(rT={}));var Zi;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Zi||(Zi={}));var uL="[_0-9a-z-*/]",udt="[a-z]"+uL+"{0,255}",ddt="[a-z0-9]"+uL+"{0,240}@[a-z]"+uL+"{0,13}",pdt=new RegExp("^(?:"+udt+"|"+ddt+")$"),hdt=/^[ -~]{0,255}[!-~]$/,mdt=/,|=/;function fdt(e){return pdt.test(e)}function gdt(e){return hdt.test(e)&&!mdt.test(e)}var Bie=32,vdt=512,Die=",",$ie="=",bdt=(function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,a){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r},e.prototype.unset=function(t){var a=this._clone();return a._internalState.delete(t),a},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(a,r){return a.push(r+$ie+t.get(r)),a},[]).join(Die)},e.prototype._parse=function(t){t.length>vdt||(this._internalState=t.split(Die).reverse().reduce(function(a,r){var n=r.trim(),i=n.indexOf($ie);if(i!==-1){var o=n.slice(0,i),s=n.slice(i+1,r.length);fdt(o)&&gdt(s)&&a.set(o,s)}return a},new Map),this._internalState.size>Bie&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Bie))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e})();function ydt(e){return new bdt(e)}var Gl=aT.getInstance(),Wa=Zp.instance(),kdt=(function(){function e(){}return e.prototype.getMeter=function(t,a,r){return Tie},e})(),xdt=new kdt,dL="metrics",wdt=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return GS(dL,t,Zp.instance())},e.prototype.getMeterProvider=function(){return tb(dL)||xdt},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){US(dL,Zp.instance())},e})(),nT=wdt.getInstance(),Sdt=(function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e})(),pL=eT("OpenTelemetry Baggage Key");function Kie(e){return e.getValue(pL)||void 0}function Odt(){return Kie(aT.getInstance().active())}function zdt(e,t){return e.setValue(pL,t)}function Cdt(e){return e.deleteValue(pL)}var hL="propagation",jdt=new Sdt,Pdt=(function(){function e(){this.createBaggage=Tut,this.getBaggage=Kie,this.getActiveBaggage=Odt,this.setBaggage=zdt,this.deleteBaggage=Cdt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return GS(hL,t,Zp.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=Eie),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=Mie),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){US(hL,Zp.instance())},e.prototype._getGlobalPropagator=function(){return tb(hL)||jdt},e})(),nb=Pdt.getInstance(),mL="trace",Adt=(function(){function e(){this._proxyTracerProvider=new cL,this.wrapSpanContext=idt,this.isSpanContextValid=ZS,this.deleteSpan=tdt,this.getSpan=iL,this.getActiveSpan=edt,this.getSpanContext=Rie,this.setSpan=oL,this.setSpanContext=adt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=GS(mL,this._proxyTracerProvider,Zp.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return tb(mL)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){US(mL,Zp.instance()),this._proxyTracerProvider=new cL},e})(),Ks=Adt.getInstance();const Tdt={context:Gl,diag:Wa,metrics:nT,propagation:nb,trace:Ks},_dt=Object.freeze(Object.defineProperty({__proto__:null,DiagConsoleLogger:Mut,get DiagLogLevel(){return Ac},INVALID_SPANID:tL,INVALID_SPAN_CONTEXT:rL,INVALID_TRACEID:aL,ProxyTracer:Lie,ProxyTracerProvider:cL,ROOT_CONTEXT:ab,get SamplingDecision(){return JS},get SpanKind(){return rT},get SpanStatusCode(){return Zi},get TraceFlags(){return Id},get ValueType(){return XI},baggageEntryMetadataFromString:Aie,context:Gl,createContextKey:eT,createNoopMeter:_ie,createTraceState:ydt,default:Tdt,defaultTextMapGetter:Mie,defaultTextMapSetter:Eie,diag:Wa,isSpanContextValid:ZS,isValidSpanId:Nie,isValidTraceId:sL,metrics:nT,propagation:nb,trace:Ks},Symbol.toStringTag,{value:"Module"})),Hie=eT("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Vie(e){return e.setValue(Hie,!0)}function fL(e){return e.getValue(Hie)===!0}const Mdt="=",Fie=";",gL=",",vL="baggage",Edt=180,Rdt=4096,Ndt=8192;function Idt(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?gL:""}${a}`;return r.length>Ndt?t:r},"")}function Ldt(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=Fie+a.metadata.toString()),r})}function Bdt(e){if(!e)return;const t=e.indexOf(Fie),a=t===-1?e:e.substring(0,t),r=a.indexOf(Mdt);if(r<=0)return;const n=a.substring(0,r).trim(),i=a.substring(r+1).trim();if(!n||!i)return;let o,s;try{o=decodeURIComponent(n),s=decodeURIComponent(i)}catch{return}let l;if(t!==-1&&t<e.length-1){const c=e.substring(t+1);l=Aie(c)}return{key:o,value:s,metadata:l}}class Ddt{inject(t,a,r){const n=nb.getBaggage(t);if(!n||fL(t))return;const i=Ldt(n).filter(s=>s.length<=Rdt).slice(0,Edt),o=Idt(i);o.length>0&&r.set(a,vL,o)}extract(t,a,r){const n=r.get(a,vL),i=Array.isArray(n)?n.join(gL):n;if(!i)return t;const o={};return i.length===0||(i.split(gL).forEach(s=>{const l=Bdt(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:nb.setBaggage(t,nb.createBaggage(o))}fields(){return[vL]}}function YS(e){const t={};if(typeof e!="object"||e==null)return t;for(const a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;if(!$dt(a)){Wa.warn(`Invalid attribute key: ${a}`);continue}const r=e[a];if(!qie(r)){Wa.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function $dt(e){return typeof e=="string"&&e!==""}function qie(e){return e==null?!0:Array.isArray(e)?Kdt(e):Gie(typeof e)}function Kdt(e){let t;for(const a of e){if(a==null)continue;const r=typeof a;if(r!==t){if(!t){if(Gie(r)){t=r;continue}return!1}return!1}}return!0}function Gie(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}function Hdt(){return e=>{Wa.error(Vdt(e))}}function Vdt(e){return typeof e=="string"?e:JSON.stringify(Fdt(e))}function Fdt(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let qdt=Hdt();function ib(e){try{qdt(e)}catch{}}const Gdt="2.6.1";function as(e){let t={};const a=e.length;for(let r=0;r<a;r++){const n=e[r];n&&(t[String(n).toUpperCase().replace(/[-.]/g,"_")]=n)}return t}const Uie="aws.lambda.invoked_arn",Qie="db.system",Wie="db.connection_string",Zie="db.user",Jie="db.jdbc.driver_classname",Yie="db.name",Xie="db.statement",eoe="db.operation",toe="db.mssql.instance_name",aoe="db.cassandra.keyspace",roe="db.cassandra.page_size",noe="db.cassandra.consistency_level",ioe="db.cassandra.table",ooe="db.cassandra.idempotence",soe="db.cassandra.speculative_execution_count",loe="db.cassandra.coordinator.id",coe="db.cassandra.coordinator.dc",uoe="db.hbase.namespace",doe="db.redis.database_index",poe="db.mongodb.collection",hoe="db.sql.table",moe="exception.type",foe="exception.message",goe="exception.stacktrace",voe="exception.escaped",boe="faas.trigger",yoe="faas.execution",koe="faas.document.collection",xoe="faas.document.operation",woe="faas.document.time",Soe="faas.document.name",Ooe="faas.time",zoe="faas.cron",Coe="faas.coldstart",joe="faas.invoked_name",Poe="faas.invoked_provider",Aoe="faas.invoked_region",Toe="net.transport",_oe="net.peer.ip",Moe="net.peer.port",Eoe="net.peer.name",Roe="net.host.ip",Noe="net.host.port",Ioe="net.host.name",Loe="net.host.connection.type",Boe="net.host.connection.subtype",Doe="net.host.carrier.name",$oe="net.host.carrier.mcc",Koe="net.host.carrier.mnc",Hoe="net.host.carrier.icc",Voe="peer.service",Foe="enduser.id",qoe="enduser.role",Goe="enduser.scope",Uoe="thread.id",Qoe="thread.name",Woe="code.function",Zoe="code.namespace",Joe="code.filepath",Yoe="code.lineno",Xoe="http.method",ese="http.url",tse="http.target",ase="http.host",rse="http.scheme",nse="http.status_code",ise="http.flavor",ose="http.user_agent",sse="http.request_content_length",lse="http.request_content_length_uncompressed",cse="http.response_content_length",use="http.response_content_length_uncompressed",dse="http.server_name",pse="http.route",hse="http.client_ip",mse="aws.dynamodb.table_names",fse="aws.dynamodb.consumed_capacity",gse="aws.dynamodb.item_collection_metrics",vse="aws.dynamodb.provisioned_read_capacity",bse="aws.dynamodb.provisioned_write_capacity",yse="aws.dynamodb.consistent_read",kse="aws.dynamodb.projection",xse="aws.dynamodb.limit",wse="aws.dynamodb.attributes_to_get",Sse="aws.dynamodb.index_name",Ose="aws.dynamodb.select",zse="aws.dynamodb.global_secondary_indexes",Cse="aws.dynamodb.local_secondary_indexes",jse="aws.dynamodb.exclusive_start_table",Pse="aws.dynamodb.table_count",Ase="aws.dynamodb.scan_forward",Tse="aws.dynamodb.segment",_se="aws.dynamodb.total_segments",Mse="aws.dynamodb.count",Ese="aws.dynamodb.scanned_count",Rse="aws.dynamodb.attribute_definitions",Nse="aws.dynamodb.global_secondary_index_updates",Ise="messaging.system",Lse="messaging.destination",Bse="messaging.destination_kind",Dse="messaging.temp_destination",$se="messaging.protocol",Kse="messaging.protocol_version",Hse="messaging.url",Vse="messaging.message_id",Fse="messaging.conversation_id",qse="messaging.message_payload_size_bytes",Gse="messaging.message_payload_compressed_size_bytes",Use="messaging.operation",Qse="messaging.consumer_id",Wse="messaging.rabbitmq.routing_key",Zse="messaging.kafka.message_key",Jse="messaging.kafka.consumer_group",Yse="messaging.kafka.client_id",Xse="messaging.kafka.partition",ele="messaging.kafka.tombstone",tle="rpc.system",ale="rpc.service",rle="rpc.method",nle="rpc.grpc.status_code",ile="rpc.jsonrpc.version",ole="rpc.jsonrpc.request_id",sle="rpc.jsonrpc.error_code",lle="rpc.jsonrpc.error_message",cle="message.type",ule="message.id",dle="message.compressed_size",ple="message.uncompressed_size",Udt=Uie,Qdt=Qie,Wdt=Wie,Zdt=Zie,Jdt=Jie,Ydt=Yie,Xdt=Xie,ept=eoe,tpt=toe,apt=aoe,rpt=roe,npt=noe,ipt=ioe,opt=ooe,spt=soe,lpt=loe,cpt=coe,upt=uoe,dpt=doe,ppt=poe,hpt=hoe,mpt=moe,fpt=foe,gpt=goe,vpt=voe,bpt=boe,ypt=yoe,kpt=koe,xpt=xoe,wpt=woe,Spt=Soe,Opt=Ooe,zpt=zoe,Cpt=Coe,jpt=joe,Ppt=Poe,Apt=Aoe,Tpt=Toe,_pt=_oe,Mpt=Moe,Ept=Eoe,Rpt=Roe,Npt=Noe,Ipt=Ioe,Lpt=Loe,Bpt=Boe,Dpt=Doe,$pt=$oe,Kpt=Koe,Hpt=Hoe,Vpt=Voe,Fpt=Foe,qpt=qoe,Gpt=Goe,Upt=Uoe,Qpt=Qoe,Wpt=Woe,Zpt=Zoe,Jpt=Joe,Ypt=Yoe,Xpt=Xoe,eht=ese,tht=tse,aht=ase,rht=rse,nht=nse,iht=ise,oht=ose,sht=sse,lht=lse,cht=cse,uht=use,dht=dse,pht=pse,hht=hse,mht=mse,fht=fse,ght=gse,vht=vse,bht=bse,yht=yse,kht=kse,xht=xse,wht=wse,Sht=Sse,Oht=Ose,zht=zse,Cht=Cse,jht=jse,Pht=Pse,Aht=Ase,Tht=Tse,_ht=_se,Mht=Mse,Eht=Ese,Rht=Rse,Nht=Nse,Iht=Ise,Lht=Lse,Bht=Bse,Dht=Dse,$ht=$se,Kht=Kse,Hht=Hse,Vht=Vse,Fht=Fse,qht=qse,Ght=Gse,Uht=Use,Qht=Qse,Wht=Wse,Zht=Zse,Jht=Jse,Yht=Yse,Xht=Xse,emt=ele,tmt=tle,amt=ale,rmt=rle,nmt=nle,imt=ile,omt=ole,smt=sle,lmt=lle,cmt=cle,umt=ule,dmt=dle,pmt=ple,hmt=as([Uie,Qie,Wie,Zie,Jie,Yie,Xie,eoe,toe,aoe,roe,noe,ioe,ooe,soe,loe,coe,uoe,doe,poe,hoe,moe,foe,goe,voe,boe,yoe,koe,xoe,woe,Soe,Ooe,zoe,Coe,joe,Poe,Aoe,Toe,_oe,Moe,Eoe,Roe,Noe,Ioe,Loe,Boe,Doe,$oe,Koe,Hoe,Voe,Foe,qoe,Goe,Uoe,Qoe,Woe,Zoe,Joe,Yoe,Xoe,ese,tse,ase,rse,nse,ise,ose,sse,lse,cse,use,dse,pse,hse,mse,fse,gse,vse,bse,yse,kse,xse,wse,Sse,Ose,zse,Cse,jse,Pse,Ase,Tse,_se,Mse,Ese,Rse,Nse,Ise,Lse,Bse,Dse,$se,Kse,Hse,Vse,Fse,qse,Gse,Use,Qse,Wse,Zse,Jse,Yse,Xse,ele,tle,ale,rle,nle,ile,ole,sle,lle,cle,ule,dle,ple]),hle="other_sql",mle="mssql",fle="mysql",gle="oracle",vle="db2",ble="postgresql",yle="redshift",kle="hive",xle="cloudscape",wle="hsqldb",Sle="progress",Ole="maxdb",zle="hanadb",Cle="ingres",jle="firstsql",Ple="edb",Ale="cache",Tle="adabas",_le="firebird",Mle="derby",Ele="filemaker",Rle="informix",Nle="instantdb",Ile="interbase",Lle="mariadb",Ble="netezza",Dle="pervasive",$le="pointbase",Kle="sqlite",Hle="sybase",Vle="teradata",Fle="vertica",qle="h2",Gle="coldfusion",Ule="cassandra",Qle="hbase",Wle="mongodb",Zle="redis",Jle="couchbase",Yle="couchdb",Xle="cosmosdb",ece="dynamodb",tce="neo4j",ace="geode",rce="elasticsearch",nce="memcached",ice="cockroachdb",mmt=hle,fmt=mle,gmt=fle,vmt=gle,bmt=vle,ymt=ble,kmt=yle,xmt=kle,wmt=xle,Smt=wle,Omt=Sle,zmt=Ole,Cmt=zle,jmt=Cle,Pmt=jle,Amt=Ple,Tmt=Ale,_mt=Tle,Mmt=_le,Emt=Mle,Rmt=Ele,Nmt=Rle,Imt=Nle,Lmt=Ile,Bmt=Lle,Dmt=Ble,$mt=Dle,Kmt=$le,Hmt=Kle,Vmt=Hle,Fmt=Vle,qmt=Fle,Gmt=qle,Umt=Gle,Qmt=Ule,Wmt=Qle,Zmt=Wle,Jmt=Zle,Ymt=Jle,Xmt=Yle,eft=Xle,tft=ece,aft=tce,rft=ace,nft=rce,ift=nce,oft=ice,sft=as([hle,mle,fle,gle,vle,ble,yle,kle,xle,wle,Sle,Ole,zle,Cle,jle,Ple,Ale,Tle,_le,Mle,Ele,Rle,Nle,Ile,Lle,Ble,Dle,$le,Kle,Hle,Vle,Fle,qle,Gle,Ule,Qle,Wle,Zle,Jle,Yle,Xle,ece,tce,ace,rce,nce,ice]),oce="all",sce="each_quorum",lce="quorum",cce="local_quorum",uce="one",dce="two",pce="three",hce="local_one",mce="any",fce="serial",gce="local_serial",lft=oce,cft=sce,uft=lce,dft=cce,pft=uce,hft=dce,mft=pce,fft=hce,gft=mce,vft=fce,bft=gce,yft=as([oce,sce,lce,cce,uce,dce,pce,hce,mce,fce,gce]),vce="datasource",bce="http",yce="pubsub",kce="timer",xce="other",kft=vce,xft=bce,wft=yce,Sft=kce,Oft=xce,zft=as([vce,bce,yce,kce,xce]),wce="insert",Sce="edit",Oce="delete",Cft=wce,jft=Sce,Pft=Oce,Aft=as([wce,Sce,Oce]),zce="alibaba_cloud",Cce="aws",jce="azure",Pce="gcp",Tft=zce,_ft=Cce,Mft=jce,Eft=Pce,Rft=as([zce,Cce,jce,Pce]),Ace="ip_tcp",Tce="ip_udp",_ce="ip",Mce="unix",Ece="pipe",Rce="inproc",Nce="other",Nft=Ace,Ift=Tce,Lft=_ce,Bft=Mce,Dft=Ece,$ft=Rce,Kft=Nce,Hft=as([Ace,Tce,_ce,Mce,Ece,Rce,Nce]),Ice="wifi",Lce="wired",Bce="cell",Dce="unavailable",$ce="unknown",Vft=Ice,Fft=Lce,qft=Bce,Gft=Dce,Uft=$ce,Qft=as([Ice,Lce,Bce,Dce,$ce]),Kce="gprs",Hce="edge",Vce="umts",Fce="cdma",qce="evdo_0",Gce="evdo_a",Uce="cdma2000_1xrtt",Qce="hsdpa",Wce="hsupa",Zce="hspa",Jce="iden",Yce="evdo_b",Xce="lte",eue="ehrpd",tue="hspap",aue="gsm",rue="td_scdma",nue="iwlan",iue="nr",oue="nrnsa",sue="lte_ca",Wft=Kce,Zft=Hce,Jft=Vce,Yft=Fce,Xft=qce,egt=Gce,tgt=Uce,agt=Qce,rgt=Wce,ngt=Zce,igt=Jce,ogt=Yce,sgt=Xce,lgt=eue,cgt=tue,ugt=aue,dgt=rue,pgt=nue,hgt=iue,mgt=oue,fgt=sue,ggt=as([Kce,Hce,Vce,Fce,qce,Gce,Uce,Qce,Wce,Zce,Jce,Yce,Xce,eue,tue,aue,rue,nue,iue,oue,sue]),lue="1.0",cue="1.1",uue="2.0",due="SPDY",pue="QUIC",vgt=lue,bgt=cue,ygt=uue,kgt=due,xgt=pue,wgt={HTTP_1_0:lue,HTTP_1_1:cue,HTTP_2_0:uue,SPDY:due,QUIC:pue},hue="queue",mue="topic",Sgt=hue,Ogt=mue,zgt=as([hue,mue]),fue="receive",gue="process",Cgt=fue,jgt=gue,Pgt=as([fue,gue]),vue=0,bue=1,yue=2,kue=3,xue=4,wue=5,Sue=6,Oue=7,zue=8,Cue=9,jue=10,Pue=11,Aue=12,Tue=13,_ue=14,Mue=15,Eue=16,Agt=vue,Tgt=bue,_gt=yue,Mgt=kue,Egt=xue,Rgt=wue,Ngt=Sue,Igt=Oue,Lgt=zue,Bgt=Cue,Dgt=jue,$gt=Pue,Kgt=Aue,Hgt=Tue,Vgt=_ue,Fgt=Mue,qgt=Eue,Ggt={OK:vue,CANCELLED:bue,UNKNOWN:yue,INVALID_ARGUMENT:kue,DEADLINE_EXCEEDED:xue,NOT_FOUND:wue,ALREADY_EXISTS:Sue,PERMISSION_DENIED:Oue,RESOURCE_EXHAUSTED:zue,FAILED_PRECONDITION:Cue,ABORTED:jue,OUT_OF_RANGE:Pue,UNIMPLEMENTED:Aue,INTERNAL:Tue,UNAVAILABLE:_ue,DATA_LOSS:Mue,UNAUTHENTICATED:Eue},Rue="SENT",Nue="RECEIVED",Ugt=Rue,Qgt=Nue,Wgt=as([Rue,Nue]),Iue="cloud.provider",Lue="cloud.account.id",Bue="cloud.region",Due="cloud.availability_zone",$ue="cloud.platform",Kue="aws.ecs.container.arn",Hue="aws.ecs.cluster.arn",Vue="aws.ecs.launchtype",Fue="aws.ecs.task.arn",que="aws.ecs.task.family",Gue="aws.ecs.task.revision",Uue="aws.eks.cluster.arn",Que="aws.log.group.names",Wue="aws.log.group.arns",Zue="aws.log.stream.names",Jue="aws.log.stream.arns",Yue="container.name",Xue="container.id",ede="container.runtime",tde="container.image.name",ade="container.image.tag",rde="deployment.environment",nde="device.id",ide="device.model.identifier",ode="device.model.name",sde="faas.name",lde="faas.id",cde="faas.version",ude="faas.instance",dde="faas.max_memory",pde="host.id",hde="host.name",mde="host.type",fde="host.arch",gde="host.image.name",vde="host.image.id",bde="host.image.version",yde="k8s.cluster.name",kde="k8s.node.name",xde="k8s.node.uid",wde="k8s.namespace.name",Sde="k8s.pod.uid",Ode="k8s.pod.name",zde="k8s.container.name",Cde="k8s.replicaset.uid",jde="k8s.replicaset.name",Pde="k8s.deployment.uid",Ade="k8s.deployment.name",Tde="k8s.statefulset.uid",_de="k8s.statefulset.name",Mde="k8s.daemonset.uid",Ede="k8s.daemonset.name",Rde="k8s.job.uid",Nde="k8s.job.name",Ide="k8s.cronjob.uid",Lde="k8s.cronjob.name",Bde="os.type",Dde="os.description",$de="os.name",Kde="os.version",Hde="process.pid",Vde="process.executable.name",Fde="process.executable.path",qde="process.command",Gde="process.command_line",Ude="process.command_args",Qde="process.owner",Wde="process.runtime.name",Zde="process.runtime.version",Jde="process.runtime.description",Yde="service.name",Xde="service.namespace",epe="service.instance.id",tpe="service.version",ape="telemetry.sdk.name",rpe="telemetry.sdk.language",npe="telemetry.sdk.version",ipe="telemetry.auto.version",ope="webengine.name",spe="webengine.version",lpe="webengine.description",Zgt=Iue,Jgt=Lue,Ygt=Bue,Xgt=Due,evt=$ue,tvt=Kue,avt=Hue,rvt=Vue,nvt=Fue,ivt=que,ovt=Gue,svt=Uue,lvt=Que,cvt=Wue,uvt=Zue,dvt=Jue,pvt=Yue,hvt=Xue,mvt=ede,fvt=tde,gvt=ade,vvt=rde,bvt=nde,yvt=ide,kvt=ode,xvt=sde,wvt=lde,Svt=cde,Ovt=ude,zvt=dde,Cvt=pde,jvt=hde,Pvt=mde,Avt=fde,Tvt=gde,_vt=vde,Mvt=bde,Evt=yde,Rvt=kde,Nvt=xde,Ivt=wde,Lvt=Sde,Bvt=Ode,Dvt=zde,$vt=Cde,Kvt=jde,Hvt=Pde,Vvt=Ade,Fvt=Tde,qvt=_de,Gvt=Mde,Uvt=Ede,Qvt=Rde,Wvt=Nde,Zvt=Ide,Jvt=Lde,Yvt=Bde,Xvt=Dde,ebt=$de,tbt=Kde,abt=Hde,rbt=Vde,nbt=Fde,ibt=qde,obt=Gde,sbt=Ude,lbt=Qde,cbt=Wde,ubt=Zde,dbt=Jde,pbt=Yde,hbt=Xde,mbt=epe,fbt=tpe,gbt=ape,vbt=rpe,bbt=npe,ybt=ipe,kbt=ope,xbt=spe,wbt=lpe,Sbt=as([Iue,Lue,Bue,Due,$ue,Kue,Hue,Vue,Fue,que,Gue,Uue,Que,Wue,Zue,Jue,Yue,Xue,ede,tde,ade,rde,nde,ide,ode,sde,lde,cde,ude,dde,pde,hde,mde,fde,gde,vde,bde,yde,kde,xde,wde,Sde,Ode,zde,Cde,jde,Pde,Ade,Tde,_de,Mde,Ede,Rde,Nde,Ide,Lde,Bde,Dde,$de,Kde,Hde,Vde,Fde,qde,Gde,Ude,Qde,Wde,Zde,Jde,Yde,Xde,epe,tpe,ape,rpe,npe,ipe,ope,spe,lpe]),cpe="alibaba_cloud",upe="aws",dpe="azure",ppe="gcp",Obt=cpe,zbt=upe,Cbt=dpe,jbt=ppe,Pbt=as([cpe,upe,dpe,ppe]),hpe="alibaba_cloud_ecs",mpe="alibaba_cloud_fc",fpe="aws_ec2",gpe="aws_ecs",vpe="aws_eks",bpe="aws_lambda",ype="aws_elastic_beanstalk",kpe="azure_vm",xpe="azure_container_instances",wpe="azure_aks",Spe="azure_functions",Ope="azure_app_service",zpe="gcp_compute_engine",Cpe="gcp_cloud_run",jpe="gcp_kubernetes_engine",Ppe="gcp_cloud_functions",Ape="gcp_app_engine",Abt=hpe,Tbt=mpe,_bt=fpe,Mbt=gpe,Ebt=vpe,Rbt=bpe,Nbt=ype,Ibt=kpe,Lbt=xpe,Bbt=wpe,Dbt=Spe,$bt=Ope,Kbt=zpe,Hbt=Cpe,Vbt=jpe,Fbt=Ppe,qbt=Ape,Gbt=as([hpe,mpe,fpe,gpe,vpe,bpe,ype,kpe,xpe,wpe,Spe,Ope,zpe,Cpe,jpe,Ppe,Ape]),Tpe="ec2",_pe="fargate",Ubt=Tpe,Qbt=_pe,Wbt=as([Tpe,_pe]),Mpe="amd64",Epe="arm32",Rpe="arm64",Npe="ia64",Ipe="ppc32",Lpe="ppc64",Bpe="x86",Zbt=Mpe,Jbt=Epe,Ybt=Rpe,Xbt=Npe,eyt=Ipe,tyt=Lpe,ayt=Bpe,ryt=as([Mpe,Epe,Rpe,Npe,Ipe,Lpe,Bpe]),Dpe="windows",$pe="linux",Kpe="darwin",Hpe="freebsd",Vpe="netbsd",Fpe="openbsd",qpe="dragonflybsd",Gpe="hpux",Upe="aix",Qpe="solaris",Wpe="z_os",nyt=Dpe,iyt=$pe,oyt=Kpe,syt=Hpe,lyt=Vpe,cyt=Fpe,uyt=qpe,dyt=Gpe,pyt=Upe,hyt=Qpe,myt=Wpe,fyt=as([Dpe,$pe,Kpe,Hpe,Vpe,Fpe,qpe,Gpe,Upe,Qpe,Wpe]),Zpe="cpp",Jpe="dotnet",Ype="erlang",Xpe="go",ehe="java",the="nodejs",ahe="php",rhe="python",nhe="ruby",ihe="webjs",gyt=Zpe,vyt=Jpe,byt=Ype,yyt=Xpe,kyt=ehe,xyt=the,wyt=ahe,Syt=rhe,Oyt=nhe,zyt=ihe,Cyt=as([Zpe,Jpe,Ype,Xpe,ehe,the,ahe,rhe,nhe,ihe]),jyt="aspnetcore.diagnostics.exception.result",Pyt="aborted",Ayt="handled",Tyt="skipped",_yt="unhandled",Myt="aspnetcore.diagnostics.handler.type",Eyt="aspnetcore.rate_limiting.policy",Ryt="aspnetcore.rate_limiting.result",Nyt="acquired",Iyt="endpoint_limiter",Lyt="global_limiter",Byt="request_canceled",Dyt="aspnetcore.request.is_unhandled",$yt="aspnetcore.routing.is_fallback",Kyt="aspnetcore.routing.match_status",Hyt="failure",Vyt="success",Fyt="aspnetcore.user.is_authenticated",qyt="client.address",Gyt="client.port",Uyt="code.column.number",Qyt="code.file.path",Wyt="code.function.name",Zyt="code.line.number",Jyt="code.stacktrace",Yyt="db.collection.name",Xyt="db.namespace",ekt="db.operation.batch.size",tkt="db.operation.name",akt="db.query.summary",rkt="db.query.text",nkt="db.response.status_code",ikt="db.stored_procedure.name",okt="db.system.name",skt="mariadb",lkt="microsoft.sql_server",ckt="mysql",ukt="postgresql",dkt="dotnet.gc.heap.generation",pkt="gen0",hkt="gen1",mkt="gen2",fkt="loh",gkt="poh",vkt="error.type",bkt="_OTHER",ykt="exception.escaped",iT="exception.message",ohe="exception.stacktrace",oT="exception.type",kkt=e=>`http.request.header.${e}`,xkt="http.request.method",wkt="_OTHER",Skt="CONNECT",Okt="DELETE",zkt="GET",Ckt="HEAD",jkt="OPTIONS",Pkt="PATCH",Akt="POST",Tkt="PUT",_kt="TRACE",Mkt="http.request.method_original",Ekt="http.request.resend_count",Rkt=e=>`http.response.header.${e}`,Nkt="http.response.status_code",Ikt="http.route",Lkt="jvm.gc.action",Bkt="jvm.gc.name",Dkt="jvm.memory.pool.name",$kt="jvm.memory.type",Kkt="heap",Hkt="non_heap",Vkt="jvm.thread.daemon",Fkt="jvm.thread.state",qkt="blocked",Gkt="new",Ukt="runnable",Qkt="terminated",Wkt="timed_waiting",Zkt="waiting",Jkt="network.local.address",Ykt="network.local.port",Xkt="network.peer.address",e1t="network.peer.port",t1t="network.protocol.name",a1t="network.protocol.version",r1t="network.transport",n1t="pipe",i1t="quic",o1t="tcp",s1t="udp",l1t="unix",c1t="network.type",u1t="ipv4",d1t="ipv6",p1t="otel.scope.name",h1t="otel.scope.version",m1t="otel.status_code",f1t="ERROR",g1t="OK",v1t="otel.status_description",b1t="server.address",y1t="server.port",k1t="service.instance.id",bL="service.name",x1t="service.namespace",she="service.version",w1t="signalr.connection.status",S1t="app_shutdown",O1t="normal_closure",z1t="timeout",C1t="signalr.transport",j1t="long_polling",P1t="server_sent_events",A1t="web_sockets",sT="telemetry.sdk.language",T1t="cpp",_1t="dotnet",M1t="erlang",E1t="go",R1t="java",N1t="nodejs",I1t="php",L1t="python",B1t="ruby",D1t="rust",$1t="swift",lhe="webjs",lT="telemetry.sdk.name",cT="telemetry.sdk.version",K1t="url.fragment",H1t="url.full",V1t="url.path",F1t="url.query",q1t="url.scheme",G1t="user_agent.original",U1t="aspnetcore.diagnostics.exceptions",Q1t="aspnetcore.rate_limiting.active_request_leases",W1t="aspnetcore.rate_limiting.queued_requests",Z1t="aspnetcore.rate_limiting.request.time_in_queue",J1t="aspnetcore.rate_limiting.request_lease.duration",Y1t="aspnetcore.rate_limiting.requests",X1t="aspnetcore.routing.match_attempts",e0t="db.client.operation.duration",t0t="dotnet.assembly.count",a0t="dotnet.exceptions",r0t="dotnet.gc.collections",n0t="dotnet.gc.heap.total_allocated",i0t="dotnet.gc.last_collection.heap.fragmentation.size",o0t="dotnet.gc.last_collection.heap.size",s0t="dotnet.gc.last_collection.memory.committed_size",l0t="dotnet.gc.pause.time",c0t="dotnet.jit.compilation.time",u0t="dotnet.jit.compiled_il.size",d0t="dotnet.jit.compiled_methods",p0t="dotnet.monitor.lock_contentions",h0t="dotnet.process.cpu.count",m0t="dotnet.process.cpu.time",f0t="dotnet.process.memory.working_set",g0t="dotnet.thread_pool.queue.length",v0t="dotnet.thread_pool.thread.count",b0t="dotnet.thread_pool.work_item.count",y0t="dotnet.timer.count",k0t="http.client.request.duration",x0t="http.server.request.duration",w0t="jvm.class.count",S0t="jvm.class.loaded",O0t="jvm.class.unloaded",z0t="jvm.cpu.count",C0t="jvm.cpu.recent_utilization",j0t="jvm.cpu.time",P0t="jvm.gc.duration",A0t="jvm.memory.committed",T0t="jvm.memory.limit",_0t="jvm.memory.used",M0t="jvm.memory.used_after_last_gc",E0t="jvm.thread.count",R0t="kestrel.active_connections",N0t="kestrel.active_tls_handshakes",I0t="kestrel.connection.duration",L0t="kestrel.queued_connections",B0t="kestrel.queued_requests",D0t="kestrel.rejected_connections",$0t="kestrel.tls_handshake.duration",K0t="kestrel.upgraded_connections",H0t="signalr.server.active_connections",V0t="signalr.server.connection.duration",F0t="exception",q0t=Object.freeze(Object.defineProperty({__proto__:null,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:Pyt,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:Ayt,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:Tyt,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:_yt,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:Nyt,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:Iyt,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:Lyt,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:Byt,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:Hyt,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:Vyt,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:jyt,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:Myt,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:Eyt,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:Ryt,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:Dyt,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:$yt,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:Kyt,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:Fyt,ATTR_CLIENT_ADDRESS:qyt,ATTR_CLIENT_PORT:Gyt,ATTR_CODE_COLUMN_NUMBER:Uyt,ATTR_CODE_FILE_PATH:Qyt,ATTR_CODE_FUNCTION_NAME:Wyt,ATTR_CODE_LINE_NUMBER:Zyt,ATTR_CODE_STACKTRACE:Jyt,ATTR_DB_COLLECTION_NAME:Yyt,ATTR_DB_NAMESPACE:Xyt,ATTR_DB_OPERATION_BATCH_SIZE:ekt,ATTR_DB_OPERATION_NAME:tkt,ATTR_DB_QUERY_SUMMARY:akt,ATTR_DB_QUERY_TEXT:rkt,ATTR_DB_RESPONSE_STATUS_CODE:nkt,ATTR_DB_STORED_PROCEDURE_NAME:ikt,ATTR_DB_SYSTEM_NAME:okt,ATTR_DOTNET_GC_HEAP_GENERATION:dkt,ATTR_ERROR_TYPE:vkt,ATTR_EXCEPTION_ESCAPED:ykt,ATTR_EXCEPTION_MESSAGE:iT,ATTR_EXCEPTION_STACKTRACE:ohe,ATTR_EXCEPTION_TYPE:oT,ATTR_HTTP_REQUEST_HEADER:kkt,ATTR_HTTP_REQUEST_METHOD:xkt,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:Mkt,ATTR_HTTP_REQUEST_RESEND_COUNT:Ekt,ATTR_HTTP_RESPONSE_HEADER:Rkt,ATTR_HTTP_RESPONSE_STATUS_CODE:Nkt,ATTR_HTTP_ROUTE:Ikt,ATTR_JVM_GC_ACTION:Lkt,ATTR_JVM_GC_NAME:Bkt,ATTR_JVM_MEMORY_POOL_NAME:Dkt,ATTR_JVM_MEMORY_TYPE:$kt,ATTR_JVM_THREAD_DAEMON:Vkt,ATTR_JVM_THREAD_STATE:Fkt,ATTR_NETWORK_LOCAL_ADDRESS:Jkt,ATTR_NETWORK_LOCAL_PORT:Ykt,ATTR_NETWORK_PEER_ADDRESS:Xkt,ATTR_NETWORK_PEER_PORT:e1t,ATTR_NETWORK_PROTOCOL_NAME:t1t,ATTR_NETWORK_PROTOCOL_VERSION:a1t,ATTR_NETWORK_TRANSPORT:r1t,ATTR_NETWORK_TYPE:c1t,ATTR_OTEL_SCOPE_NAME:p1t,ATTR_OTEL_SCOPE_VERSION:h1t,ATTR_OTEL_STATUS_CODE:m1t,ATTR_OTEL_STATUS_DESCRIPTION:v1t,ATTR_SERVER_ADDRESS:b1t,ATTR_SERVER_PORT:y1t,ATTR_SERVICE_INSTANCE_ID:k1t,ATTR_SERVICE_NAME:bL,ATTR_SERVICE_NAMESPACE:x1t,ATTR_SERVICE_VERSION:she,ATTR_SIGNALR_CONNECTION_STATUS:w1t,ATTR_SIGNALR_TRANSPORT:C1t,ATTR_TELEMETRY_SDK_LANGUAGE:sT,ATTR_TELEMETRY_SDK_NAME:lT,ATTR_TELEMETRY_SDK_VERSION:cT,ATTR_URL_FRAGMENT:K1t,ATTR_URL_FULL:H1t,ATTR_URL_PATH:V1t,ATTR_URL_QUERY:F1t,ATTR_URL_SCHEME:q1t,ATTR_USER_AGENT_ORIGINAL:G1t,AWSECSLAUNCHTYPEVALUES_EC2:Ubt,AWSECSLAUNCHTYPEVALUES_FARGATE:Qbt,AwsEcsLaunchtypeValues:Wbt,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:Abt,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:Tbt,CLOUDPLATFORMVALUES_AWS_EC2:_bt,CLOUDPLATFORMVALUES_AWS_ECS:Mbt,CLOUDPLATFORMVALUES_AWS_EKS:Ebt,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:Nbt,CLOUDPLATFORMVALUES_AWS_LAMBDA:Rbt,CLOUDPLATFORMVALUES_AZURE_AKS:Bbt,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:$bt,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:Lbt,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:Dbt,CLOUDPLATFORMVALUES_AZURE_VM:Ibt,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:qbt,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:Fbt,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:Hbt,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:Kbt,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:Vbt,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:Obt,CLOUDPROVIDERVALUES_AWS:zbt,CLOUDPROVIDERVALUES_AZURE:Cbt,CLOUDPROVIDERVALUES_GCP:jbt,CloudPlatformValues:Gbt,CloudProviderValues:Pbt,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:lft,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:gft,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:cft,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:fft,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:dft,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:bft,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:pft,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:uft,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:vft,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:mft,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:hft,DBSYSTEMVALUES_ADABAS:_mt,DBSYSTEMVALUES_CACHE:Tmt,DBSYSTEMVALUES_CASSANDRA:Qmt,DBSYSTEMVALUES_CLOUDSCAPE:wmt,DBSYSTEMVALUES_COCKROACHDB:oft,DBSYSTEMVALUES_COLDFUSION:Umt,DBSYSTEMVALUES_COSMOSDB:eft,DBSYSTEMVALUES_COUCHBASE:Ymt,DBSYSTEMVALUES_COUCHDB:Xmt,DBSYSTEMVALUES_DB2:bmt,DBSYSTEMVALUES_DERBY:Emt,DBSYSTEMVALUES_DYNAMODB:tft,DBSYSTEMVALUES_EDB:Amt,DBSYSTEMVALUES_ELASTICSEARCH:nft,DBSYSTEMVALUES_FILEMAKER:Rmt,DBSYSTEMVALUES_FIREBIRD:Mmt,DBSYSTEMVALUES_FIRSTSQL:Pmt,DBSYSTEMVALUES_GEODE:rft,DBSYSTEMVALUES_H2:Gmt,DBSYSTEMVALUES_HANADB:Cmt,DBSYSTEMVALUES_HBASE:Wmt,DBSYSTEMVALUES_HIVE:xmt,DBSYSTEMVALUES_HSQLDB:Smt,DBSYSTEMVALUES_INFORMIX:Nmt,DBSYSTEMVALUES_INGRES:jmt,DBSYSTEMVALUES_INSTANTDB:Imt,DBSYSTEMVALUES_INTERBASE:Lmt,DBSYSTEMVALUES_MARIADB:Bmt,DBSYSTEMVALUES_MAXDB:zmt,DBSYSTEMVALUES_MEMCACHED:ift,DBSYSTEMVALUES_MONGODB:Zmt,DBSYSTEMVALUES_MSSQL:fmt,DBSYSTEMVALUES_MYSQL:gmt,DBSYSTEMVALUES_NEO4J:aft,DBSYSTEMVALUES_NETEZZA:Dmt,DBSYSTEMVALUES_ORACLE:vmt,DBSYSTEMVALUES_OTHER_SQL:mmt,DBSYSTEMVALUES_PERVASIVE:$mt,DBSYSTEMVALUES_POINTBASE:Kmt,DBSYSTEMVALUES_POSTGRESQL:ymt,DBSYSTEMVALUES_PROGRESS:Omt,DBSYSTEMVALUES_REDIS:Jmt,DBSYSTEMVALUES_REDSHIFT:kmt,DBSYSTEMVALUES_SQLITE:Hmt,DBSYSTEMVALUES_SYBASE:Vmt,DBSYSTEMVALUES_TERADATA:Fmt,DBSYSTEMVALUES_VERTICA:qmt,DB_SYSTEM_NAME_VALUE_MARIADB:skt,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:lkt,DB_SYSTEM_NAME_VALUE_MYSQL:ckt,DB_SYSTEM_NAME_VALUE_POSTGRESQL:ukt,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:pkt,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:hkt,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:mkt,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:fkt,DOTNET_GC_HEAP_GENERATION_VALUE_POH:gkt,DbCassandraConsistencyLevelValues:yft,DbSystemValues:sft,ERROR_TYPE_VALUE_OTHER:bkt,EVENT_EXCEPTION:F0t,FAASDOCUMENTOPERATIONVALUES_DELETE:Pft,FAASDOCUMENTOPERATIONVALUES_EDIT:jft,FAASDOCUMENTOPERATIONVALUES_INSERT:Cft,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:Tft,FAASINVOKEDPROVIDERVALUES_AWS:_ft,FAASINVOKEDPROVIDERVALUES_AZURE:Mft,FAASINVOKEDPROVIDERVALUES_GCP:Eft,FAASTRIGGERVALUES_DATASOURCE:kft,FAASTRIGGERVALUES_HTTP:xft,FAASTRIGGERVALUES_OTHER:Oft,FAASTRIGGERVALUES_PUBSUB:wft,FAASTRIGGERVALUES_TIMER:Sft,FaasDocumentOperationValues:Aft,FaasInvokedProviderValues:Rft,FaasTriggerValues:zft,HOSTARCHVALUES_AMD64:Zbt,HOSTARCHVALUES_ARM32:Jbt,HOSTARCHVALUES_ARM64:Ybt,HOSTARCHVALUES_IA64:Xbt,HOSTARCHVALUES_PPC32:eyt,HOSTARCHVALUES_PPC64:tyt,HOSTARCHVALUES_X86:ayt,HTTPFLAVORVALUES_HTTP_1_0:vgt,HTTPFLAVORVALUES_HTTP_1_1:bgt,HTTPFLAVORVALUES_HTTP_2_0:ygt,HTTPFLAVORVALUES_QUIC:xgt,HTTPFLAVORVALUES_SPDY:kgt,HTTP_REQUEST_METHOD_VALUE_CONNECT:Skt,HTTP_REQUEST_METHOD_VALUE_DELETE:Okt,HTTP_REQUEST_METHOD_VALUE_GET:zkt,HTTP_REQUEST_METHOD_VALUE_HEAD:Ckt,HTTP_REQUEST_METHOD_VALUE_OPTIONS:jkt,HTTP_REQUEST_METHOD_VALUE_OTHER:wkt,HTTP_REQUEST_METHOD_VALUE_PATCH:Pkt,HTTP_REQUEST_METHOD_VALUE_POST:Akt,HTTP_REQUEST_METHOD_VALUE_PUT:Tkt,HTTP_REQUEST_METHOD_VALUE_TRACE:_kt,HostArchValues:ryt,HttpFlavorValues:wgt,JVM_MEMORY_TYPE_VALUE_HEAP:Kkt,JVM_MEMORY_TYPE_VALUE_NON_HEAP:Hkt,JVM_THREAD_STATE_VALUE_BLOCKED:qkt,JVM_THREAD_STATE_VALUE_NEW:Gkt,JVM_THREAD_STATE_VALUE_RUNNABLE:Ukt,JVM_THREAD_STATE_VALUE_TERMINATED:Qkt,JVM_THREAD_STATE_VALUE_TIMED_WAITING:Wkt,JVM_THREAD_STATE_VALUE_WAITING:Zkt,MESSAGETYPEVALUES_RECEIVED:Qgt,MESSAGETYPEVALUES_SENT:Ugt,MESSAGINGDESTINATIONKINDVALUES_QUEUE:Sgt,MESSAGINGDESTINATIONKINDVALUES_TOPIC:Ogt,MESSAGINGOPERATIONVALUES_PROCESS:jgt,MESSAGINGOPERATIONVALUES_RECEIVE:Cgt,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:U1t,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:Q1t,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:W1t,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:Y1t,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:J1t,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:Z1t,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:X1t,METRIC_DB_CLIENT_OPERATION_DURATION:e0t,METRIC_DOTNET_ASSEMBLY_COUNT:t0t,METRIC_DOTNET_EXCEPTIONS:a0t,METRIC_DOTNET_GC_COLLECTIONS:r0t,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:n0t,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:i0t,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:o0t,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:s0t,METRIC_DOTNET_GC_PAUSE_TIME:l0t,METRIC_DOTNET_JIT_COMPILATION_TIME:c0t,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:u0t,METRIC_DOTNET_JIT_COMPILED_METHODS:d0t,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:p0t,METRIC_DOTNET_PROCESS_CPU_COUNT:h0t,METRIC_DOTNET_PROCESS_CPU_TIME:m0t,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:f0t,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:g0t,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:v0t,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:b0t,METRIC_DOTNET_TIMER_COUNT:y0t,METRIC_HTTP_CLIENT_REQUEST_DURATION:k0t,METRIC_HTTP_SERVER_REQUEST_DURATION:x0t,METRIC_JVM_CLASS_COUNT:w0t,METRIC_JVM_CLASS_LOADED:S0t,METRIC_JVM_CLASS_UNLOADED:O0t,METRIC_JVM_CPU_COUNT:z0t,METRIC_JVM_CPU_RECENT_UTILIZATION:C0t,METRIC_JVM_CPU_TIME:j0t,METRIC_JVM_GC_DURATION:P0t,METRIC_JVM_MEMORY_COMMITTED:A0t,METRIC_JVM_MEMORY_LIMIT:T0t,METRIC_JVM_MEMORY_USED:_0t,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:M0t,METRIC_JVM_THREAD_COUNT:E0t,METRIC_KESTREL_ACTIVE_CONNECTIONS:R0t,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:N0t,METRIC_KESTREL_CONNECTION_DURATION:I0t,METRIC_KESTREL_QUEUED_CONNECTIONS:L0t,METRIC_KESTREL_QUEUED_REQUESTS:B0t,METRIC_KESTREL_REJECTED_CONNECTIONS:D0t,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:$0t,METRIC_KESTREL_UPGRADED_CONNECTIONS:K0t,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:H0t,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:V0t,MessageTypeValues:Wgt,MessagingDestinationKindValues:zgt,MessagingOperationValues:Pgt,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:Yft,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:tgt,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:Zft,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:lgt,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:Xft,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:egt,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:ogt,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:Wft,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:ugt,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:agt,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:ngt,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:cgt,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:rgt,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:igt,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:pgt,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:sgt,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:fgt,NETHOSTCONNECTIONSUBTYPEVALUES_NR:hgt,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:mgt,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:dgt,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:Jft,NETHOSTCONNECTIONTYPEVALUES_CELL:qft,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:Gft,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:Uft,NETHOSTCONNECTIONTYPEVALUES_WIFI:Vft,NETHOSTCONNECTIONTYPEVALUES_WIRED:Fft,NETTRANSPORTVALUES_INPROC:$ft,NETTRANSPORTVALUES_IP:Lft,NETTRANSPORTVALUES_IP_TCP:Nft,NETTRANSPORTVALUES_IP_UDP:Ift,NETTRANSPORTVALUES_OTHER:Kft,NETTRANSPORTVALUES_PIPE:Dft,NETTRANSPORTVALUES_UNIX:Bft,NETWORK_TRANSPORT_VALUE_PIPE:n1t,NETWORK_TRANSPORT_VALUE_QUIC:i1t,NETWORK_TRANSPORT_VALUE_TCP:o1t,NETWORK_TRANSPORT_VALUE_UDP:s1t,NETWORK_TRANSPORT_VALUE_UNIX:l1t,NETWORK_TYPE_VALUE_IPV4:u1t,NETWORK_TYPE_VALUE_IPV6:d1t,NetHostConnectionSubtypeValues:ggt,NetHostConnectionTypeValues:Qft,NetTransportValues:Hft,OSTYPEVALUES_AIX:pyt,OSTYPEVALUES_DARWIN:oyt,OSTYPEVALUES_DRAGONFLYBSD:uyt,OSTYPEVALUES_FREEBSD:syt,OSTYPEVALUES_HPUX:dyt,OSTYPEVALUES_LINUX:iyt,OSTYPEVALUES_NETBSD:lyt,OSTYPEVALUES_OPENBSD:cyt,OSTYPEVALUES_SOLARIS:hyt,OSTYPEVALUES_WINDOWS:nyt,OSTYPEVALUES_Z_OS:myt,OTEL_STATUS_CODE_VALUE_ERROR:f1t,OTEL_STATUS_CODE_VALUE_OK:g1t,OsTypeValues:fyt,RPCGRPCSTATUSCODEVALUES_ABORTED:Dgt,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:Ngt,RPCGRPCSTATUSCODEVALUES_CANCELLED:Tgt,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:Fgt,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:Egt,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:Bgt,RPCGRPCSTATUSCODEVALUES_INTERNAL:Hgt,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:Mgt,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:Rgt,RPCGRPCSTATUSCODEVALUES_OK:Agt,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:$gt,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:Igt,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:Lgt,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:qgt,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:Vgt,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:Kgt,RPCGRPCSTATUSCODEVALUES_UNKNOWN:_gt,RpcGrpcStatusCodeValues:Ggt,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:wht,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:Rht,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:yht,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:fht,SEMATTRS_AWS_DYNAMODB_COUNT:Mht,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:jht,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:zht,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:Nht,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:Sht,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:ght,SEMATTRS_AWS_DYNAMODB_LIMIT:xht,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:Cht,SEMATTRS_AWS_DYNAMODB_PROJECTION:kht,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:vht,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:bht,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:Eht,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:Aht,SEMATTRS_AWS_DYNAMODB_SEGMENT:Tht,SEMATTRS_AWS_DYNAMODB_SELECT:Oht,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:Pht,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:mht,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:_ht,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:Udt,SEMATTRS_CODE_FILEPATH:Jpt,SEMATTRS_CODE_FUNCTION:Wpt,SEMATTRS_CODE_LINENO:Ypt,SEMATTRS_CODE_NAMESPACE:Zpt,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:npt,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:cpt,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:lpt,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:opt,SEMATTRS_DB_CASSANDRA_KEYSPACE:apt,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:rpt,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:spt,SEMATTRS_DB_CASSANDRA_TABLE:ipt,SEMATTRS_DB_CONNECTION_STRING:Wdt,SEMATTRS_DB_HBASE_NAMESPACE:upt,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:Jdt,SEMATTRS_DB_MONGODB_COLLECTION:ppt,SEMATTRS_DB_MSSQL_INSTANCE_NAME:tpt,SEMATTRS_DB_NAME:Ydt,SEMATTRS_DB_OPERATION:ept,SEMATTRS_DB_REDIS_DATABASE_INDEX:dpt,SEMATTRS_DB_SQL_TABLE:hpt,SEMATTRS_DB_STATEMENT:Xdt,SEMATTRS_DB_SYSTEM:Qdt,SEMATTRS_DB_USER:Zdt,SEMATTRS_ENDUSER_ID:Fpt,SEMATTRS_ENDUSER_ROLE:qpt,SEMATTRS_ENDUSER_SCOPE:Gpt,SEMATTRS_EXCEPTION_ESCAPED:vpt,SEMATTRS_EXCEPTION_MESSAGE:fpt,SEMATTRS_EXCEPTION_STACKTRACE:gpt,SEMATTRS_EXCEPTION_TYPE:mpt,SEMATTRS_FAAS_COLDSTART:Cpt,SEMATTRS_FAAS_CRON:zpt,SEMATTRS_FAAS_DOCUMENT_COLLECTION:kpt,SEMATTRS_FAAS_DOCUMENT_NAME:Spt,SEMATTRS_FAAS_DOCUMENT_OPERATION:xpt,SEMATTRS_FAAS_DOCUMENT_TIME:wpt,SEMATTRS_FAAS_EXECUTION:ypt,SEMATTRS_FAAS_INVOKED_NAME:jpt,SEMATTRS_FAAS_INVOKED_PROVIDER:Ppt,SEMATTRS_FAAS_INVOKED_REGION:Apt,SEMATTRS_FAAS_TIME:Opt,SEMATTRS_FAAS_TRIGGER:bpt,SEMATTRS_HTTP_CLIENT_IP:hht,SEMATTRS_HTTP_FLAVOR:iht,SEMATTRS_HTTP_HOST:aht,SEMATTRS_HTTP_METHOD:Xpt,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:sht,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:lht,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:cht,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:uht,SEMATTRS_HTTP_ROUTE:pht,SEMATTRS_HTTP_SCHEME:rht,SEMATTRS_HTTP_SERVER_NAME:dht,SEMATTRS_HTTP_STATUS_CODE:nht,SEMATTRS_HTTP_TARGET:tht,SEMATTRS_HTTP_URL:eht,SEMATTRS_HTTP_USER_AGENT:oht,SEMATTRS_MESSAGE_COMPRESSED_SIZE:dmt,SEMATTRS_MESSAGE_ID:umt,SEMATTRS_MESSAGE_TYPE:cmt,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:pmt,SEMATTRS_MESSAGING_CONSUMER_ID:Qht,SEMATTRS_MESSAGING_CONVERSATION_ID:Fht,SEMATTRS_MESSAGING_DESTINATION:Lht,SEMATTRS_MESSAGING_DESTINATION_KIND:Bht,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:Yht,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:Jht,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:Zht,SEMATTRS_MESSAGING_KAFKA_PARTITION:Xht,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:emt,SEMATTRS_MESSAGING_MESSAGE_ID:Vht,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:Ght,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:qht,SEMATTRS_MESSAGING_OPERATION:Uht,SEMATTRS_MESSAGING_PROTOCOL:$ht,SEMATTRS_MESSAGING_PROTOCOL_VERSION:Kht,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:Wht,SEMATTRS_MESSAGING_SYSTEM:Iht,SEMATTRS_MESSAGING_TEMP_DESTINATION:Dht,SEMATTRS_MESSAGING_URL:Hht,SEMATTRS_NET_HOST_CARRIER_ICC:Hpt,SEMATTRS_NET_HOST_CARRIER_MCC:$pt,SEMATTRS_NET_HOST_CARRIER_MNC:Kpt,SEMATTRS_NET_HOST_CARRIER_NAME:Dpt,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:Bpt,SEMATTRS_NET_HOST_CONNECTION_TYPE:Lpt,SEMATTRS_NET_HOST_IP:Rpt,SEMATTRS_NET_HOST_NAME:Ipt,SEMATTRS_NET_HOST_PORT:Npt,SEMATTRS_NET_PEER_IP:_pt,SEMATTRS_NET_PEER_NAME:Ept,SEMATTRS_NET_PEER_PORT:Mpt,SEMATTRS_NET_TRANSPORT:Tpt,SEMATTRS_PEER_SERVICE:Vpt,SEMATTRS_RPC_GRPC_STATUS_CODE:nmt,SEMATTRS_RPC_JSONRPC_ERROR_CODE:smt,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:lmt,SEMATTRS_RPC_JSONRPC_REQUEST_ID:omt,SEMATTRS_RPC_JSONRPC_VERSION:imt,SEMATTRS_RPC_METHOD:rmt,SEMATTRS_RPC_SERVICE:amt,SEMATTRS_RPC_SYSTEM:tmt,SEMATTRS_THREAD_ID:Upt,SEMATTRS_THREAD_NAME:Qpt,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:avt,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:tvt,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:rvt,SEMRESATTRS_AWS_ECS_TASK_ARN:nvt,SEMRESATTRS_AWS_ECS_TASK_FAMILY:ivt,SEMRESATTRS_AWS_ECS_TASK_REVISION:ovt,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:svt,SEMRESATTRS_AWS_LOG_GROUP_ARNS:cvt,SEMRESATTRS_AWS_LOG_GROUP_NAMES:lvt,SEMRESATTRS_AWS_LOG_STREAM_ARNS:dvt,SEMRESATTRS_AWS_LOG_STREAM_NAMES:uvt,SEMRESATTRS_CLOUD_ACCOUNT_ID:Jgt,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:Xgt,SEMRESATTRS_CLOUD_PLATFORM:evt,SEMRESATTRS_CLOUD_PROVIDER:Zgt,SEMRESATTRS_CLOUD_REGION:Ygt,SEMRESATTRS_CONTAINER_ID:hvt,SEMRESATTRS_CONTAINER_IMAGE_NAME:fvt,SEMRESATTRS_CONTAINER_IMAGE_TAG:gvt,SEMRESATTRS_CONTAINER_NAME:pvt,SEMRESATTRS_CONTAINER_RUNTIME:mvt,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:vvt,SEMRESATTRS_DEVICE_ID:bvt,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:yvt,SEMRESATTRS_DEVICE_MODEL_NAME:kvt,SEMRESATTRS_FAAS_ID:wvt,SEMRESATTRS_FAAS_INSTANCE:Ovt,SEMRESATTRS_FAAS_MAX_MEMORY:zvt,SEMRESATTRS_FAAS_NAME:xvt,SEMRESATTRS_FAAS_VERSION:Svt,SEMRESATTRS_HOST_ARCH:Avt,SEMRESATTRS_HOST_ID:Cvt,SEMRESATTRS_HOST_IMAGE_ID:_vt,SEMRESATTRS_HOST_IMAGE_NAME:Tvt,SEMRESATTRS_HOST_IMAGE_VERSION:Mvt,SEMRESATTRS_HOST_NAME:jvt,SEMRESATTRS_HOST_TYPE:Pvt,SEMRESATTRS_K8S_CLUSTER_NAME:Evt,SEMRESATTRS_K8S_CONTAINER_NAME:Dvt,SEMRESATTRS_K8S_CRONJOB_NAME:Jvt,SEMRESATTRS_K8S_CRONJOB_UID:Zvt,SEMRESATTRS_K8S_DAEMONSET_NAME:Uvt,SEMRESATTRS_K8S_DAEMONSET_UID:Gvt,SEMRESATTRS_K8S_DEPLOYMENT_NAME:Vvt,SEMRESATTRS_K8S_DEPLOYMENT_UID:Hvt,SEMRESATTRS_K8S_JOB_NAME:Wvt,SEMRESATTRS_K8S_JOB_UID:Qvt,SEMRESATTRS_K8S_NAMESPACE_NAME:Ivt,SEMRESATTRS_K8S_NODE_NAME:Rvt,SEMRESATTRS_K8S_NODE_UID:Nvt,SEMRESATTRS_K8S_POD_NAME:Bvt,SEMRESATTRS_K8S_POD_UID:Lvt,SEMRESATTRS_K8S_REPLICASET_NAME:Kvt,SEMRESATTRS_K8S_REPLICASET_UID:$vt,SEMRESATTRS_K8S_STATEFULSET_NAME:qvt,SEMRESATTRS_K8S_STATEFULSET_UID:Fvt,SEMRESATTRS_OS_DESCRIPTION:Xvt,SEMRESATTRS_OS_NAME:ebt,SEMRESATTRS_OS_TYPE:Yvt,SEMRESATTRS_OS_VERSION:tbt,SEMRESATTRS_PROCESS_COMMAND:ibt,SEMRESATTRS_PROCESS_COMMAND_ARGS:sbt,SEMRESATTRS_PROCESS_COMMAND_LINE:obt,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:rbt,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:nbt,SEMRESATTRS_PROCESS_OWNER:lbt,SEMRESATTRS_PROCESS_PID:abt,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:dbt,SEMRESATTRS_PROCESS_RUNTIME_NAME:cbt,SEMRESATTRS_PROCESS_RUNTIME_VERSION:ubt,SEMRESATTRS_SERVICE_INSTANCE_ID:mbt,SEMRESATTRS_SERVICE_NAME:pbt,SEMRESATTRS_SERVICE_NAMESPACE:hbt,SEMRESATTRS_SERVICE_VERSION:fbt,SEMRESATTRS_TELEMETRY_AUTO_VERSION:ybt,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:vbt,SEMRESATTRS_TELEMETRY_SDK_NAME:gbt,SEMRESATTRS_TELEMETRY_SDK_VERSION:bbt,SEMRESATTRS_WEBENGINE_DESCRIPTION:wbt,SEMRESATTRS_WEBENGINE_NAME:kbt,SEMRESATTRS_WEBENGINE_VERSION:xbt,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:S1t,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:O1t,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:z1t,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:j1t,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:P1t,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:A1t,SemanticAttributes:hmt,SemanticResourceAttributes:Sbt,TELEMETRYSDKLANGUAGEVALUES_CPP:gyt,TELEMETRYSDKLANGUAGEVALUES_DOTNET:vyt,TELEMETRYSDKLANGUAGEVALUES_ERLANG:byt,TELEMETRYSDKLANGUAGEVALUES_GO:yyt,TELEMETRYSDKLANGUAGEVALUES_JAVA:kyt,TELEMETRYSDKLANGUAGEVALUES_NODEJS:xyt,TELEMETRYSDKLANGUAGEVALUES_PHP:wyt,TELEMETRYSDKLANGUAGEVALUES_PYTHON:Syt,TELEMETRYSDKLANGUAGEVALUES_RUBY:Oyt,TELEMETRYSDKLANGUAGEVALUES_WEBJS:zyt,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:T1t,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:_1t,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:M1t,TELEMETRY_SDK_LANGUAGE_VALUE_GO:E1t,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:R1t,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:N1t,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:I1t,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:L1t,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:B1t,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:D1t,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:$1t,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:lhe,TelemetrySdkLanguageValues:Cyt},Symbol.toStringTag,{value:"Module"})),G0t="process.runtime.name",yL={[lT]:"opentelemetry",[G0t]:"browser",[sT]:lhe,[cT]:Gdt},ob=performance,U0t=9,Q0t=6,W0t=Math.pow(10,Q0t),uT=Math.pow(10,U0t);function Jf(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*W0t);return[a,r]}function che(e){const t=Jf(ob.timeOrigin),a=Jf(typeof e=="number"?e:ob.now());return phe(t,a)}function XS(e){if(kL(e))return e;if(typeof e=="number")return e<ob.timeOrigin?che(e):Jf(e);if(e instanceof Date)return Jf(e.getTime());throw TypeError("Invalid input type")}function Z0t(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=uT),[a,r]}function Sm(e){return e[0]*uT+e[1]}function uhe(e){return e[0]*1e6+e[1]/1e3}function kL(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function dhe(e){return kL(e)||typeof e=="number"||e instanceof Date}function phe(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=uT&&(a[1]-=uT,a[0]+=1),a}var Tc;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Tc||(Tc={}));class J0t{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){Wa.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){Wa.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const xL="[_0-9a-z-*/]",Y0t=`[a-z]${xL}{0,255}`,X0t=`[a-z0-9]${xL}{0,240}@[a-z]${xL}{0,13}`,ext=new RegExp(`^(?:${Y0t}|${X0t})$`),txt=/^[ -~]{0,255}[!-~]$/,axt=/,|=/;function rxt(e){return ext.test(e)}function nxt(e){return txt.test(e)&&!axt.test(e)}const hhe=32,ixt=512,mhe=",",fhe="=";class lX{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+fhe+this.get(a)),t),[]).join(mhe)}_parse(t){t.length>ixt||(this._internalState=t.split(mhe).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(fhe);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);rxt(o)&&nxt(s)&&a.set(o,s)}return a},new Map),this._internalState.size>hhe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,hhe))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new lX;return t._internalState=new Map(this._internalState),t}}const wL="traceparent",SL="tracestate",oxt="00",sxt="(?!ff)[\\da-f]{2}",lxt="(?![0]{32})[\\da-f]{32}",cxt="(?![0]{16})[\\da-f]{16}",uxt="[\\da-f]{2}",dxt=new RegExp(`^\\s?(${sxt})-(${lxt})-(${cxt})-(${uxt})(-.*)?\\s?$`);function pxt(e){const t=dxt.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class hxt{inject(t,a,r){const n=Ks.getSpanContext(t);if(!n||fL(t)||!ZS(n))return;const i=`${oxt}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||Id.NONE).toString(16)}`;r.set(a,wL,i),n.traceState&&r.set(a,SL,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,wL);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=pxt(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,SL);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new lX(typeof l=="string"?l:void 0)}return Ks.setSpanContext(t,o)}fields(){return[wL,SL]}}const mxt="[object Object]",fxt="[object Null]",gxt="[object Undefined]",vxt=Function.prototype,ghe=vxt.toString,bxt=ghe.call(Object),yxt=Object.getPrototypeOf,vhe=Object.prototype,bhe=vhe.hasOwnProperty,sb=Symbol?Symbol.toStringTag:void 0,yhe=vhe.toString;function khe(e){if(!kxt(e)||xxt(e)!==mxt)return!1;const t=yxt(e);if(t===null)return!0;const a=bhe.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&ghe.call(a)===bxt}function kxt(e){return e!=null&&typeof e=="object"}function xxt(e){return e==null?e===void 0?gxt:fxt:sb&&sb in Object(e)?wxt(e):Sxt(e)}function wxt(e){const t=bhe.call(e,sb),a=e[sb];let r=!1;try{e[sb]=void 0,r=!0}catch{}const n=yhe.call(e);return r&&(t?e[sb]=a:delete e[sb]),n}function Sxt(e){return yhe.call(e)}const Oxt=20;function zxt(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=xhe(t,e.shift(),0,a);return t}function OL(e){return dT(e)?e.slice():e}function xhe(e,t,a=0,r){let n;if(!(a>Oxt)){if(a++,pT(e)||pT(t)||She(t))n=OL(t);else if(dT(e)){if(n=e.slice(),dT(t))for(let i=0,o=t.length;i<o;i++)n.push(OL(t[i]));else if(eO(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=OL(t[l])}}}else if(eO(e))if(eO(t)){if(!Cxt(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(pT(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(whe(e,l,r)||whe(t,l,r))delete n[l];else{if(eO(u)&&eO(d)){const h=r.get(u)||[],m=r.get(d)||[];h.push({obj:e,key:l}),m.push({obj:t,key:l}),r.set(u,h),r.set(d,m)}n[l]=xhe(n[l],c,a,r)}}}}else n=t;return n}}function whe(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function dT(e){return Array.isArray(e)}function She(e){return typeof e=="function"}function eO(e){return!pT(e)&&!dT(e)&&!She(e)&&typeof e=="object"}function pT(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Cxt(e,t){return!(!khe(e)||!khe(t))}function jxt(e,t){return typeof t=="string"?e===t:!!e.match(t)}class Pxt{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class Ohe{_isCalled=!1;_deferred=new Pxt;_callback;_that;constructor(t,a){this._callback=t,this._that=a}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function Axt(e,t){return new Promise(a=>{Gl.with(Vie(Gl.active()),()=>{e.export(t,a)})})}const Txt={_export:Axt};let hT;function zhe(){if(hT===void 0)try{const e=globalThis.process.argv0;hT=e?`unknown_service:${e}`:"unknown_service"}catch{hT="unknown_service"}return hT}const tO=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class Hj{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,a){const r=new Hj({},a);return r._rawAttributes=jhe(t),r._asyncAttributesPending=t.filter(([n,i])=>tO(i)).length>0,r}constructor(t,a){const r=t.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(tO(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=jhe(this._rawAttributes),this._schemaUrl=Mxt(a?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,tO(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Wa.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(tO(r)){Wa.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;const a=Ext(this,t),r=a?{schemaUrl:a}:void 0;return Hj.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}}function mT(e,t){return Hj.FromAttributeList(Object.entries(e),t)}function _xt(e,t){return new Hj(e,t)}function zL(){return mT({})}function Che(){return mT({[bL]:zhe(),[sT]:yL[sT],[lT]:yL[lT],[cT]:yL[cT]})}function jhe(e){return e.map(([t,a])=>tO(a)?[t,a.catch(r=>{Wa.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}function Mxt(e){if(typeof e=="string"||e===void 0)return e;Wa.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function Ext(e,t){const a=e?.schemaUrl,r=t?.schemaUrl,n=a===void 0||a==="",i=r===void 0||r==="";if(n)return r;if(i||a===r)return a;Wa.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',a,r)}const Rxt=(e={})=>(e.detectors||[]).map(t=>{try{const a=_xt(t.detect(e));return Wa.debug(`${t.constructor.name} found resource.`,a),a}catch(a){return Wa.debug(`${t.constructor.name} failed: ${a.message}`),zL()}}).reduce((t,a)=>t.merge(a),zL());class Nxt{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(t){return{attributes:{}}}_parseResourceAttributes(t){if(!t)return{};const a={},r=t.split(this._COMMA_SEPARATOR);for(const n of r){const i=n.split(this._LABEL_KEY_VALUE_SPLITTER);if(i.length!==2)throw new Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${n}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);const[o,s]=i,l=o.trim(),c=s.trim();if(l.length===0)throw new Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${n}".`);let u,d;try{u=decodeURIComponent(l),d=decodeURIComponent(c)}catch(h){throw new Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${n}": ${h instanceof Error?h.message:h}`)}if(u.length>this._MAX_LENGTH)throw new Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${u}".`);if(d.length>this._MAX_LENGTH)throw new Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${u}".`);a[u]=d}return a}}const Ixt=new Nxt;class Lxt{detect(){return{attributes:{}}}}const fT=new Lxt,Bxt=fT,Dxt=fT,$xt=fT,Kxt=fT,Hxt=Object.freeze(Object.defineProperty({__proto__:null,defaultResource:Che,defaultServiceName:zhe,detectResources:Rxt,emptyResource:zL,envDetector:Ixt,hostDetector:Bxt,osDetector:Dxt,processDetector:$xt,resourceFromAttributes:mT,serviceInstanceIdDetector:Kxt},Symbol.toStringTag,{value:"Module"})),Vxt="exception";class Fxt{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:Zi.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();if(this._spanContext=t.spanContext,this._performanceStartTime=ob.now(),this._performanceOffset=a-(this._performanceStartTime+ob.timeOrigin),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,t.links)for(const r of t.links)this.addLink(r);this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,this._recordEndMetrics=t.recordEndMetrics,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return Wa.warn(`Invalid attribute key: ${t}`),this;if(!qie(a))return Wa.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits,n=!Object.prototype.hasOwnProperty.call(this.attributes,t);return r!==void 0&&this._attributesCount>=r&&n?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),n&&this._attributesCount++,this)}setAttributes(t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&this.setAttribute(a,t[a]);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return Wa.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&Wa.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),dhe(a)&&(dhe(r)||(r=a),a=void 0);const i=YS(a),{attributePerEventCountLimit:o}=this._spanLimits,s={};let l=0,c=0;for(const u in i){if(!Object.prototype.hasOwnProperty.call(i,u))continue;const d=i[u];if(o!==void 0&&c>=o){l++;continue}s[u]=this._truncateToSize(d),c++}return this.events.push({name:t,attributes:s,time:this._getTime(r),droppedAttributesCount:l}),this}addLink(t){if(this._isSpanEnded())return this;const{linkCountLimit:a}=this._spanLimits;if(a===0)return this._droppedLinksCount++,this;a!==void 0&&this.links.length>=a&&(this._droppedLinksCount===0&&Wa.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:r}=this._spanLimits,n=YS(t.attributes),i={};let o=0,s=0;for(const c in n){if(!Object.prototype.hasOwnProperty.call(n,c))continue;const u=n[c];if(r!==void 0&&s>=r){o++;continue}i[c]=this._truncateToSize(u),s++}const l={context:t.context};return s>0&&(l.attributes=i),o>0&&(l.droppedAttributesCount=o),this.links.push(l),this}addLinks(t){for(const a of t)this.addLink(a);return this}setStatus(t){if(this._isSpanEnded())return this;if(t.code===Zi.UNSET)return this;if(this.status.code===Zi.OK)return this;const a={code:t.code};return t.code===Zi.ERROR&&(typeof t.message=="string"?a.message=t.message:t.message!=null&&Wa.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`)),this.status=a,this}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Wa.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=Z0t(this.startTime,this.endTime),this._duration[0]<0&&(Wa.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wa.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&Wa.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=ob.now())return che(t+this._performanceOffset);if(typeof t=="number")return Jf(t);if(t instanceof Date)return Jf(t.getTime());if(kL(t))return t;if(this._startTimeProvided)return Jf(Date.now());const a=ob.now()-this._performanceStartTime;return phe(this.startTime,Jf(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[iT]=t:t&&(t.code?r[oT]=t.code.toString():t.name&&(r[oT]=t.name),t.message&&(r[iT]=t.message),t.stack&&(r[ohe]=t.stack)),r[oT]||r[iT]?this.addEvent(Vxt,r,a):Wa.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Wa.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(Wa.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var Ld;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ld||(Ld={}));class aO{shouldSample(){return{decision:Ld.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class lb{shouldSample(){return{decision:Ld.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class rO{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(ib(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new lb),this._remoteParentSampled=t.remoteParentSampled??new lb,this._remoteParentNotSampled=t.remoteParentNotSampled??new aO,this._localParentSampled=t.localParentSampled??new lb,this._localParentNotSampled=t.localParentNotSampled??new aO}shouldSample(t,a,r,n,i,o){const s=Ks.getSpanContext(t);return!s||!ZS(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&Id.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&Id.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class CL{_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:sL(a)&&this._accumulate(a)<this._upperBound?Ld.RECORD_AND_SAMPLED:Ld.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}var Jp;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Jp||(Jp={}));const Phe=1;function Ahe(){return{sampler:The(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function The(){const e=Jp.ParentBasedAlwaysOn;switch(e){case Jp.AlwaysOn:return new lb;case Jp.AlwaysOff:return new aO;case Jp.ParentBasedAlwaysOn:return new rO({root:new lb});case Jp.ParentBasedAlwaysOff:return new rO({root:new aO});case Jp.TraceIdRatio:return new CL(_he());case Jp.ParentBasedTraceIdRatio:return new rO({root:new CL(_he())});default:return Wa.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${Jp.ParentBasedAlwaysOn}".`),new rO({root:new lb})}}function _he(){return Wa.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Phe}.`),Phe}const qxt=128,Gxt=1/0;function Uxt(e){const t={sampler:The()},a=Ahe(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function Qxt(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??qxt,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??Gxt,Object.assign({},e,{spanLimits:t})}class Wxt{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new Ohe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Wa.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Id.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Wa.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Wa.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);Gl.with(Vie(Gl.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===Tc.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{ib(s),a(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(a=>{this._isExporting=!1,ib(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class Mhe extends Wxt{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{ib(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{ib(a)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const Zxt=16,Jxt=8,Ehe=new Uint8Array(Zxt),Rhe=new Uint8Array(Jxt),Yxt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Nhe(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function Ihe(e){let t="";for(let a=0;a<e.length;a++)t+=Yxt[e[a]];return t}class Lhe{generateTraceId(){return Nhe(Ehe),Ihe(Ehe)}generateSpanId(){return Nhe(Rhe),Ihe(Rhe)}}const Xxt="otel.span.parent.origin",Bhe="otel.span.sampling_result",ewt="otel.sdk.span.live",twt="otel.sdk.span.started";class awt{startedSpans;liveSpans;constructor(t){this.startedSpans=t.createCounter(twt,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=t.createUpDownCounter(ewt,{unit:"{span}",description:"The number of currently live spans."})}startSpan(t,a){const r=nwt(a);if(this.startedSpans.add(1,{[Xxt]:rwt(t),[Bhe]:r}),a===Ld.NOT_RECORD)return()=>{};const n={[Bhe]:r};return this.liveSpans.add(1,n),()=>{this.liveSpans.add(-1,n)}}}function rwt(e){return e?e.isRemote?"remote":"local":"none"}function nwt(e){switch(e){case Ld.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case Ld.RECORD:return"RECORD_ONLY";case Ld.NOT_RECORD:return"DROP"}}const iwt="2.6.1";class owt{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(t,a,r,n){const i=Uxt(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new Lhe,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t;const o=i.meterProvider?i.meterProvider.getMeter("@opentelemetry/sdk-trace",iwt):_ie();this._tracerMetrics=new awt(o)}startSpan(t,a={},r=Gl.active()){a.root&&(r=Ks.deleteSpan(r));const n=Ks.getSpan(r);if(fL(r))return Wa.debug("Instrumentation suppressed, returning Noop Span"),Ks.wrapSpanContext(rL);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!Ks.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??rT.INTERNAL,d=(a.links??[]).map(x=>({context:x.context,attributes:YS(x.attributes)})),h=YS(a.attributes),m=this._sampler.shouldSample(r,l,t,u,h,d),g=this._tracerMetrics.startSpan(i,m.decision);c=m.traceState??c;const v=m.decision===JS.RECORD_AND_SAMPLED?Id.SAMPLED:Id.NONE,b={traceId:l,spanId:o,traceFlags:v,traceState:c};if(m.decision===JS.NOT_RECORD)return Wa.debug("Recording is off, propagating context in a non-recording span"),Ks.wrapSpanContext(b);const k=YS(Object.assign(h,m.attributes));return new Fxt({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:b,name:t,kind:u,links:d,parentSpanContext:s,attributes:k,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:g})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??Gl.active(),c=this.startSpan(t,i,l),u=Ks.setSpan(l,c);return Gl.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class swt{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{ib(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnding(t){for(const a of this._spanProcessors)a.onEnding&&a.onEnding(t)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var cb;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(cb||(cb={}));class Dhe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=zxt({},Ahe(),Qxt(t));this._resource=a.resource??Che(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new swt(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new owt({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=cb.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==cb.timeout&&(i=cb.resolved,n(i))}).catch(s=>{clearTimeout(o),i=cb.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==cb.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class lwt{export(t,a){return this._sendSpans(t,a)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:uhe(t.startTime),duration:uhe(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,a){for(const r of t)console.dir(this._exportInfo(r),{depth:3});if(a)return a({code:Tc.SUCCESS})}}class cwt{_finishedSpans=[];_stopped=!1;export(t,a){if(this._stopped)return a({code:Tc.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...t),setTimeout(()=>a({code:Tc.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}class uwt{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new Ohe(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,a){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Id.SAMPLED)===0)return;const a=this._doExport(t).catch(r=>ib(r));this._pendingExports.add(a),a.finally(()=>this._pendingExports.delete(a))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const a=await Txt._export(this._exporter,[t]);if(a.code!==Tc.SUCCESS)throw a.error??new Error(`SimpleSpanProcessor: span export failed (status ${a})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class dwt{onStart(t,a){}onEnd(t){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}class $he{_enabled=!1;_currentContext=ab;_bindFunction(t=ab,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=ab,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=ab,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||ab;try{return a.call(r,...n)}finally{this._currentContext=i}}}function pwt(e){if(e!==null){if(e===void 0){const t=new $he;t.enable(),Gl.setGlobalContextManager(t);return}e.enable(),Gl.setGlobalContextManager(e)}}function hwt(e){if(e!==null){if(e===void 0){nb.setGlobalPropagator(new J0t({propagators:[new hxt,new Ddt]}));return}nb.setGlobalPropagator(e)}}class Khe extends Dhe{constructor(t={}){super(t)}register(t={}){Ks.setGlobalTracerProvider(this),hwt(t.propagator),pwt(t.contextManager)}}var $i;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})($i||($i={}));const mwt="http.response_content_length",fwt="http.response_content_length_uncompressed";let jL;function gwt(){return jL||(jL=document.createElement("a")),jL}function Hhe(e,t){return t in e}function Yp(e,t,a,r=!0){if(Hhe(a,t)&&typeof a[t]=="number"&&!(r&&a[t]===0))return e.addEvent(t,a[t])}function vwt(e,t,a=!1,r,n){if(r===void 0&&(r=t[$i.START_TIME]!==0),a||(Yp(e,$i.FETCH_START,t,r),Yp(e,$i.DOMAIN_LOOKUP_START,t,r),Yp(e,$i.DOMAIN_LOOKUP_END,t,r),Yp(e,$i.CONNECT_START,t,r),Yp(e,$i.SECURE_CONNECTION_START,t,r),Yp(e,$i.CONNECT_END,t,r),Yp(e,$i.REQUEST_START,t,r),Yp(e,$i.RESPONSE_START,t,r),Yp(e,$i.RESPONSE_END,t,r)),!n){const i=t[$i.ENCODED_BODY_SIZE];i!==void 0&&e.setAttribute(mwt,i);const o=t[$i.DECODED_BODY_SIZE];o!==void 0&&i!==o&&e.setAttribute(fwt,o)}}function Vhe(e){return e.slice().sort((t,a)=>{const r=t[$i.FETCH_START],n=a[$i.FETCH_START];return r>n?1:r<n?-1:0})}function Fhe(){return typeof location<"u"?location.origin:void 0}function bwt(e,t,a,r,n=new WeakSet,i){const o=gT(e);e=o.toString();const s=kwt(e,t,a,r,n,i);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const l=Vhe(s);if(o.origin!==Fhe()&&l.length>1){let c=l[0],u=ywt(l,c[$i.RESPONSE_END],a);const d=c[$i.RESPONSE_END];return u[$i.FETCH_START]<d&&(u=c,c=void 0),{corsPreFlightRequest:c,mainRequest:u}}else return{mainRequest:s[0]}}function ywt(e,t,a){const r=Sm(a),n=Sm(XS(t));let i=e[1],o;const s=e.length;for(let l=1;l<s;l++){const c=e[l],u=Sm(XS(c[$i.FETCH_START])),d=Sm(XS(c[$i.RESPONSE_END])),h=r-d;u>=n&&(!o||h<o)&&(o=h,i=c)}return i}function kwt(e,t,a,r,n,i){const o=Sm(t),s=Sm(a);let l=r.filter(c=>{const u=Sm(XS(c[$i.FETCH_START])),d=Sm(XS(c[$i.RESPONSE_END]));return c.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&c.name===e&&u>=o&&d<=s});return l.length>0&&(l=l.filter(c=>!n.has(c))),l}function gT(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=gwt();return t.href=e,t}function xwt(e){return gT(e).href}function qhe(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const a=Swt(e,t);if(t&&a.indexOf("@id")>0)return a;let r="";return e.parentNode&&(r+=qhe(e.parentNode,t)),r+=a,r}function wwt(e){if(!e.parentNode)return 0;const t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let a=Array.from(e.parentNode.childNodes);return a=a.filter(r=>{const n=r.localName;return t.indexOf(r.nodeType)>=0&&n===e.localName}),a.length>=1?a.indexOf(e)+1:0}function Swt(e,t){const a=e.nodeType,r=wwt(e);let n="";if(a===Node.ELEMENT_NODE){const i=e.getAttribute("id");if(t&&i)return`//*[@id="${i}"]`;n=e.localName}else if(a===Node.TEXT_NODE||a===Node.CDATA_SECTION_NODE)n="text()";else if(a===Node.COMMENT_NODE)n="comment()";else return"";return n&&r>1?`/${n}[${r}]`:`/${n}`}function Owt(e,t){let a=t||[];return(typeof a=="string"||a instanceof RegExp)&&(a=[a]),gT(e).origin===Fhe()?!0:a.some(r=>jxt(e,r))}const zwt=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:aO,AlwaysOnSampler:lb,BasicTracerProvider:Dhe,BatchSpanProcessor:Mhe,ConsoleSpanExporter:lwt,InMemorySpanExporter:cwt,NoopSpanProcessor:dwt,ParentBasedSampler:rO,get PerformanceTimingNames(){return $i},RandomIdGenerator:Lhe,get SamplingDecision(){return Ld},SimpleSpanProcessor:uwt,StackContextManager:$he,TraceIdRatioBasedSampler:CL,WebTracerProvider:Khe,addSpanNetworkEvent:Yp,addSpanNetworkEvents:vwt,getElementXPath:qhe,getResource:bwt,hasKey:Hhe,normalizeUrl:xwt,parseUrl:gT,shouldPropagateTraceHeaders:Owt,sortResources:Vhe},Symbol.toStringTag,{value:"Module"})),Cwt=km(zwt),jwt=km(Hxt);class Pwt{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class Ghe extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function Awt(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Twt(e){if(e!=null)return async()=>e}function _wt(e,t,a){return{timeoutMillis:Awt(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function Mwt(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Ewt{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Rwt(e){return new Ewt(e.concurrencyLimit)}function Nwt(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function Iwt(){return{handleResponse(e){e==null||!Nwt(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Wa.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class Lwt{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=Wa.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:Tc.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:Tc.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:Tc.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:Tc.FAILED,error:n.error});return}else n.status==="retryable"?a({code:Tc.FAILED,error:n.error??new Ghe("Export failed with retryable status")}):a({code:Tc.FAILED,error:new Ghe("Export failed with unknown error")})},n=>a({code:Tc.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Bwt(e,t){return new Lwt(e.transport,e.serializer,Iwt(),e.promiseHandler,t.timeout)}function Dwt(e,t,a){return Bwt({transport:a,serializer:t,promiseHandler:Rwt(e)},{timeout:e.timeoutMillis})}function $wt(e,t){const a={attributes:vT(e.attributes,t),droppedAttributesCount:0},r=e.schemaUrl;return r&&r!==""&&(a.schemaUrl=r),a}function Kwt(e){return{name:e.name,version:e.version}}function vT(e,t){return Object.keys(e).map(a=>Hwt(a,e[a],t))}function Hwt(e,t,a){return{key:e,value:PL(t,a)}}function PL(e,t){const a=typeof e;if(a==="string")return{stringValue:e};if(a==="number")return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(a==="boolean")return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=PL(e[n],t);return{arrayValue:{values:r}}}if(a==="object"&&e!=null){const r=Object.keys(e),n=new Array(r.length);for(let i=0;i<r.length;i++)n[i]={key:r[i],value:PL(e[r[i]],t)};return{kvlistValue:{values:n}}}return{}}function Vwt(e){const t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function Fwt(e){return Vwt(e).toString()}const qwt=typeof BigInt<"u"?Fwt:Sm;function Uhe(e){return e}const Gwt={encodeHrTime:qwt,encodeSpanContext:Uhe,encodeOptionalSpanContext:Uhe,encodeUint8Array:e=>{if(typeof Buffer<"u")return Buffer.from(e).toString("base64");const t=new Array(e.length);for(let a=0;a<e.length;a++)t[a]=String.fromCharCode(e[a]);return btoa(t.join(""))}},Uwt=256,Qwt=512;function Qhe(e,t){let a=e&255|Uwt;return t&&(a|=Qwt),a}function Wwt(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:vT(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>Jwt(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>Zwt(i,t)),droppedLinksCount:e.droppedLinksCount,flags:Qhe(a.traceFlags,e.parentSpanContext?.isRemote)}}function Zwt(e,t){return{attributes:e.attributes?vT(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:Qhe(e.context.traceFlags,e.context.isRemote)}}function Jwt(e,t){return{attributes:e.attributes?vT(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Ywt(e,t){return{resourceSpans:eSt(e,t)}}function Xwt(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function eSt(e,t){const a=Xwt(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const m=u.value;if(m.length>0){const g=m.map(v=>Wwt(v,t));l.push({scope:Kwt(m[0].instrumentationScope),spans:g,schemaUrl:m[0].instrumentationScope.schemaUrl})}u=c.next()}const d=$wt(o,t),h={resource:d,scopeSpans:l,schemaUrl:d.schemaUrl};r.push(h),i=n.next()}return r}const tSt={serializeRequest:e=>{const t=Ywt(e,Gwt);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},AL=5,aSt=1e3,rSt=5e3,nSt=1.5,Whe=.2;function iSt(){return Math.random()*(2*Whe)-Whe}class oSt{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){let r=AL,n=aSt;const i=Date.now()+a;let o=await this._transport.send(t,a);for(;o.status==="retryable"&&r>0;){r--;const s=Math.max(Math.min(n*(1+iSt()),rSt),0);n=n*nSt;const l=o.retryInMillis??s,c=i-Date.now();if(l>c)return Wa.info(`Export retry time ${Math.round(l)}ms exceeds remaining timeout ${Math.round(c)}ms, not retrying further.`),o;Wa.verbose(`Scheduling export retry in ${Math.round(l)}ms`),o=await this.retry(t,c,l)}return o.status==="success"?Wa.verbose(`Export succeeded after ${AL-r} retry attempts.`):o.status==="retryable"?Wa.info(`Export failed after maximum retry attempts (${AL}).`):Wa.info(`Export failed with non-retryable error: ${o.error}`),o}shutdown(){return this._transport.shutdown()}}function sSt(e){return new oSt(e.transport)}function lSt(e){return e===429||e===502||e===503||e===504}function cSt(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}const uSt=60*1024,dSt=9;let TL=0,bT=0;class pSt{_parameters;constructor(t){this._parameters=t}async send(t,a){const r=new AbortController,n=setTimeout(()=>r.abort(),a);let i=globalThis.fetch;typeof i.__original=="function"&&(i=i.__original);const o=t.byteLength,s=TL+o>uSt,l=bT>=dSt,c=!s&&!l;if(c)TL+=o,bT++;else{const u=s?"size limit":"count limit";Wa.debug(`keepalive disabled: ${(o/1024).toFixed(1)}KB payload, ${bT} pending (${u})`)}try{const u=new URL(this._parameters.url),d=await i(u.href,{method:"POST",headers:await this._parameters.headers(),body:t,signal:r.signal,keepalive:c,mode:globalThis.location?globalThis.location.origin===u.origin?"same-origin":"cors":"no-cors"});if(d.status>=200&&d.status<=299)return Wa.debug(`export response success (status: ${d.status})`),{status:"success"};if(lSt(d.status)){Wa.warn(`export response retryable (status: ${d.status})`);const h=d.headers.get("Retry-After");return{status:"retryable",retryInMillis:cSt(h)}}return Wa.error(`export response failure (status: ${d.status})`),{status:"failure",error:new Error(`Fetch request failed with non-retryable status ${d.status}`)}}catch(u){return mSt(u)?(Wa.warn(`export request retryable (network error: ${u})`),{status:"retryable",error:new Error("Fetch request encountered a network error",{cause:u})}):(Wa.error(`export request failure (error: ${u})`),{status:"failure",error:new Error("Fetch request errored",{cause:u})})}finally{clearTimeout(n),c&&(TL-=o,bT--)}}shutdown(){}}function hSt(e){return new pSt(e)}function mSt(e){return e instanceof TypeError&&!e.cause}function fSt(e,t){return Dwt(e,t,sSt({transport:hSt(e)}))}function gSt(e){const t={};return Object.entries(e??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):Wa.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}function vSt(e,t,a){return async()=>{const r={...await a()},n={};return t!=null&&Object.assign(n,await t()),e!=null&&Object.assign(n,gSt(await e())),Object.assign(n,r)}}function bSt(e){if(e!=null)try{const t=globalThis.location?.href;return new URL(e,t).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function ySt(e,t,a){return{..._wt(e,t,a),headers:vSt(e.headers,t.headers,a.headers),url:bSt(e.url)??t.url??a.url}}function kSt(e,t){return{...Mwt(),headers:async()=>e,url:"http://localhost:4318/"+t}}function xSt(e){return typeof e.headers=="function"?e.headers:Twt(e.headers)}function wSt(e,t,a){return ySt({url:e.url,timeoutMillis:e.timeoutMillis,headers:xSt(e),concurrencyLimit:e.concurrencyLimit},{},kSt(a,t))}function SSt(e,t,a,r){const n=wSt(e,a,r);return fSt(n,t)}class Zhe extends Pwt{constructor(t={}){super(SSt(t,tSt,"v1/traces",{"Content-Type":"application/json"}))}}const OSt=Object.freeze(Object.defineProperty({__proto__:null,OTLPTraceExporter:Zhe},Symbol.toStringTag,{value:"Module"})),zSt=km(OSt),CSt=km(q0t);let Jhe=class{emit(e){}};const jSt=new Jhe;class PSt{getLogger(t,a,r){return new Jhe}}const Yhe=new PSt;class ASt{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):jSt}}class Xhe{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new ASt(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Yhe}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const TSt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},yT=Symbol.for("io.opentelemetry.js.api.logs"),nO=TSt;function _St(e,t,a){return r=>r===e?t:a}const eme=1;class cX{constructor(){this._proxyLoggerProvider=new Xhe}static getInstance(){return this._instance||(this._instance=new cX),this._instance}setGlobalLoggerProvider(t){return nO[yT]?this.getLoggerProvider():(nO[yT]=_St(eme,t,Yhe),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=nO[yT])===null||t===void 0?void 0:t.call(nO,eme))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete nO[yT],this._proxyLoggerProvider=new Xhe}}const tme=cX.getInstance();function MSt(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function ESt(e){e.forEach(t=>t.disable())}function ame(e){const t=e.tracerProvider||Ks.getTracerProvider(),a=e.meterProvider||nT.getMeterProvider(),r=e.loggerProvider||tme.getLoggerProvider(),n=e.instrumentations?.flat()??[];return MSt(n,t,a,r),()=>{ESt(n)}}let pu=console.error.bind(console);function iO(e,t,a){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:a})}const rme=(e,t,a)=>{if(!e||!e[t]){pu("no original function "+String(t)+" to wrap");return}if(!a){pu("no wrapper function"),pu(new Error().stack);return}const r=e[t];if(typeof r!="function"||typeof a!="function"){pu("original object and wrapper must be functions");return}const n=a(r,t);return iO(n,"__original",r),iO(n,"__unwrap",()=>{e[t]===n&&iO(e,t,r)}),iO(n,"__wrapped",!0),iO(e,t,n),n},RSt=(e,t,a)=>{if(e)Array.isArray(e)||(e=[e]);else{pu("must provide one or more modules to patch"),pu(new Error().stack);return}if(!(t&&Array.isArray(t))){pu("must provide one or more functions to wrap on modules");return}e.forEach(r=>{t.forEach(n=>{rme(r,n,a)})})},nme=(e,t)=>{if(!e||!e[t]){pu("no function to unwrap."),pu(new Error().stack);return}const a=e[t];if(!a.__unwrap)pu("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{a.__unwrap();return}},NSt=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{pu("must provide one or more modules to patch"),pu(new Error().stack);return}if(!(t&&Array.isArray(t))){pu("must provide one or more functions to unwrap on modules");return}e.forEach(a=>{t.forEach(r=>{nme(a,r)})})};class ISt{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,a,r){this.instrumentationName=t,this.instrumentationVersion=a,this.setConfig(r),this._diag=Wa.createComponentLogger({namespace:t}),this._tracer=Ks.getTracer(t,a),this._meter=nT.getMeter(t,a),this._logger=tme.getLogger(t,a),this._updateMetricInstruments()}_wrap=rme;_unwrap=nme;_massWrap=RSt;_massUnwrap=NSt;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,a,r,n){if(t)try{t(r,n)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:a},i)}}}class ime extends ISt{constructor(t,a,r){super(t,a,r),this._config.enabled&&this.enable()}}function LSt(e){return Wa.warn("Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)"),e}class BSt{name;supportedVersions;patch;unpatch;files;constructor(t,a,r,n,i){this.name=t,this.supportedVersions=a,this.patch=r,this.unpatch=n,this.files=i||[]}}class DSt{supportedVersions;patch;unpatch;name;constructor(t,a,r,n){this.supportedVersions=a,this.patch=r,this.unpatch=n,this.name=LSt(t)}}function $St(e,t,a){let r,n;try{n=e()}catch(i){r=i}finally{if(t(r,n),r&&!a)throw r;return n}}async function KSt(e,t,a){let r,n;try{n=await e()}catch(i){r=i}finally{if(t(r,n),r&&!a)throw r;return n}}function HSt(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var u1;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(u1||(u1={}));function VSt(e,t){let a=u1.OLD;const r=t?.split(",").map(n=>n.trim()).filter(n=>n!=="");for(const n of r??[])if(n.toLowerCase()===e+"/dup"){a=u1.DUPLICATE;break}else n.toLowerCase()===e&&(a=u1.STABLE);return a}const FSt=Object.freeze(Object.defineProperty({__proto__:null,InstrumentationBase:ime,InstrumentationNodeModuleDefinition:BSt,InstrumentationNodeModuleFile:DSt,get SemconvStability(){return u1},isWrapped:HSt,registerInstrumentations:ame,safeExecuteInTheMiddle:$St,safeExecuteInTheMiddleAsync:KSt,semconvStabilityFromStr:VSt},Symbol.toStringTag,{value:"Module"})),qSt=km(FSt);function Om(e){const t=new Error(e);return t.source="ulid",t}const ub="0123456789ABCDEFGHJKMNPQRSTVWXYZ",db=ub.length,_L=Math.pow(2,48)-1,oO=10,ML=16;function EL(e,t,a){return t>e.length-1?e:e.substr(0,t)+a+e.substr(t+1)}function ome(e){let t,a=e.length,r,n;const i=db-1;for(;!t&&a-->=0;){if(r=e[a],n=ub.indexOf(r),n===-1)throw Om("incorrectly encoded string");if(n===i){e=EL(e,a,ub[0]);continue}t=EL(e,a,ub[n+1])}if(typeof t=="string")return t;throw Om("cannot increment this string")}function sme(e){let t=Math.floor(e()*db);return t===db&&(t=db-1),ub.charAt(t)}function kT(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>_L)throw Om("cannot encode time greater than "+_L);if(e<0)throw Om("time must be positive");if(Number.isInteger(Number(e))===!1)throw Om("time must be an integer");let a,r="";for(;t>0;t--)a=e%db,r=ub.charAt(a)+r,e=(e-a)/db;return r}function RL(e,t){let a="";for(;e>0;e--)a=sme(t)+a;return a}function GSt(e){if(e.length!==oO+ML)throw Om("malformed ulid");var t=e.substr(0,oO).split("").reverse().reduce((a,r,n)=>{const i=ub.indexOf(r);if(i===-1)throw Om("invalid character found: "+r);return a+=i*Math.pow(db,n)},0);if(t>_L)throw Om("malformed ulid, timestamp too large");return t}function NL(e=!1,t){t||(t=typeof window<"u"?window:null);const a=t&&(t.crypto||t.msCrypto);if(a)return()=>{const r=new Uint8Array(1);return a.getRandomValues(r),r[0]/255};try{const r=require("crypto");return()=>r.randomBytes(1).readUInt8()/255}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw Om("secure crypto unusable, insecure Math.random not allowed")}function lme(e){return e||(e=NL()),function(t){return isNaN(t)&&(t=Date.now()),kT(t,oO)+RL(ML,e)}}function USt(e){e||(e=NL());let t=0,a;return function(r){if(isNaN(r)&&(r=Date.now()),r<=t){const i=a=ome(a);return kT(t,oO)+i}t=r;const n=a=RL(ML,e);return kT(r,oO)+n}}const pb=lme(),QSt=Object.freeze(Object.defineProperty({__proto__:null,decodeTime:GSt,detectPrng:NL,encodeRandom:RL,encodeTime:kT,factory:lme,incrementBase32:ome,monotonicFactory:USt,randomChar:sme,replaceCharAt:EL,ulid:pb},Symbol.toStringTag,{value:"Module"})),cme=km(QSt);var xT={};const ume=km(_dt);var sO={},dme;function WSt(){if(dme)return sO;dme=1,Object.defineProperty(sO,"__esModule",{value:!0}),sO.TraceStep=void 0;const e=ume;class t{constructor(r){Object.defineProperty(this,"span",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.span=r}get context(){var r;return(r=this.span)===null||r===void 0?void 0:r.context}error(r){this.span&&(this.span.setStatus(e.SpanStatusCode.ERROR,r.message),this.span.recordException(r),this.span.end())}setAttribute(r,n){this.span&&this.span.setAttribute(r,n)}setStatus(r,n){this.span&&this.span.setStatus(r,n)}end(){this.span&&(this.span.setStatus(e.SpanStatusCode.OK),this.span.end())}}return sO.TraceStep=t,sO}var d1={},pme;function hme(){if(pme)return d1;pme=1,Object.defineProperty(d1,"__esModule",{value:!0}),d1.CLOUD_EVENT_STANDARD_KEYS=void 0,d1.mapToCloudEvent=t;const e=cme;d1.CLOUD_EVENT_STANDARD_KEYS=["id","specversion","object","datacontenttype","type","time","origin","env","category","signal","source","subject","subjects","data","actor","requestId","clientIp","organizationId","organizationSlug","projectId","projectSlug","osPlatform","userAgent","sessionId"];function t(a){var r,n,i,o,s,l,c,u;const{type:d,data:h,actor:m,requestId:g,clientIp:v,origin:b,env:k,source:x,organizationId:w,organizationSlug:z,projectId:S,projectSlug:C,category:j="product",signal:T="log",osPlatform:E,userAgent:I,sessionId:N}=a,$=!!(h&&Array.isArray(h)),H=m?{id:(r=m.id)!==null&&r!==void 0?r:`ann_${(0,e.ulid)()}`,object:(n=m.object)!==null&&n!==void 0?n:"user",uri:(i=m.uri)!==null&&i!==void 0?i:""}:null,Z=`evt_${(0,e.ulid)()}`.toLowerCase(),te=new Date,ee=(o=x??H?.uri)!==null&&o!==void 0?o:null,oe=Object.assign(Object.assign(Object.assign(Object.assign({},w!==void 0&&{organizationId:w}),z!==void 0&&{organizationSlug:z}),S!==void 0&&{projectId:S}),C!==void 0&&{projectSlug:C}),ae={specversion:"1.0",object:"event",datacontenttype:"application/json; charset=utf-8",origin:b,env:k,category:j,signal:T,osPlatform:E,userAgent:I,clientIp:v,sessionId:N};if($){const ce=h,Q=ce.map(Y=>{var G,D,U;return{id:(G=Y.id)!==null&&G!==void 0?G:"",object:(D=Y.object)!==null&&D!==void 0?D:"",uri:(U=Y.uri)!==null&&U!==void 0?U:""}}),V=(l=(s=ce[0])===null||s===void 0?void 0:s.id)!==null&&l!==void 0?l:null;Object.assign(ae,Object.assign(Object.assign({},oe),{id:Z,type:d,time:te,source:ee,actor:H,subject:V,subjects:Q,data:ce,requestId:g??""}))}else{const ce=(u=(c=Array.isArray(h)?h[0]:h)===null||c===void 0?void 0:c.id)!==null&&u!==void 0?u:null;Object.assign(ae,Object.assign(Object.assign(Object.assign({},oe),{id:Z,type:d,time:te,source:ee,actor:H,subject:ce,requestId:g??"",data:h}),x!=null&&{request:{source:x}}))}return ae}return d1}var mme;function ZSt(){return mme||(mme=1,(function(e){var t=xT&&xT.__awaiter||function(j,T,E,I){function N($){return $ instanceof E?$:new E(function(H){H($)})}return new(E||(E=Promise))(function($,H){function Z(oe){try{ee(I.next(oe))}catch(ae){H(ae)}}function te(oe){try{ee(I.throw(oe))}catch(ae){H(ae)}}function ee(oe){oe.done?$(oe.value):N(oe.value).then(Z,te)}ee((I=I.apply(j,T||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseOtelClient=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY=void 0,e.toSnakeCase=o,e.groupByObjectProperty=s,e.flattenToAttributes=u,e.flattenNestedObject=d,e.processCloudEventAttributes=m,e.processObjectData=x,e.processAttributes=S;const a=ume,r=WSt(),n=hme();e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY="context";const i=[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];function o(j){return j.replace(/([A-Z])/g,"_$1").toLowerCase()}function s(j){const T={updated:[],notUpdated:[]};for(const E of j){if(!E||typeof E!="object")continue;const I=E.object;if(typeof I!="string")continue;const N=E,$=T.notUpdated.find(H=>H.object===I);$?(T.updated=[$,N],T.notUpdated=T.notUpdated.filter(H=>H.object!==I)):T.updated.some(H=>H.object===I)||T.notUpdated.push(N)}return T}function l(j,T,E){const I=E?`${E}.`:"",N=T===""?"":`${T}.`;return`${j}.${I}${N}`}function c(j,T){const E=j[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];return E==="before"||E==="after"?E:T===0?"after":"before"}function u(j,T,E,I=!0,N){const $=N?.length?new Set(N):null;for(const[H,Z]of Object.entries(j))if(!$?.has(H)&&Z!==void 0){const te=I?o(H):H;E[`${T}${te}`]=Z}}function d(j,T,E){for(const[I,N]of Object.entries(j))N==null||typeof N=="object"||(E[`${T}.${o(I)}`]=N)}function h(j,T,E){var I,N,$,H,Z,te,ee,oe,ae,ce,Q,V,Y,G,D,U;const K=T instanceof Date?T.toISOString():new Date(T).toISOString();return{"cloudevents.event_id":j.id,"cloudevents.event_type":j.type,"cloudevents.event_source":(I=j.source)!==null&&I!==void 0?I:void 0,"cloudevents.event_spec_version":j.specversion,"cloudevents.event_data_content_type":(N=j.datacontenttype)!==null&&N!==void 0?N:"application/json; charset=utf-8","cloudevents.event_time":K,"cloudevents.event_subject":($=j.subject)!==null&&$!==void 0?$:"","cloudevents.page.uri":typeof location<"u"?location.href:void 0,"cloudevents.event_version":E?.version,"cloudevents.event_origin":(H=j.origin)!==null&&H!==void 0?H:E?.serviceName,"cloudevents.event_env":j.env,"cloudevents.event_source_details.id":(te=(Z=j.actor)===null||Z===void 0?void 0:Z.id)!==null&&te!==void 0?te:"anonymous","cloudevents.event_source_details.object":(oe=(ee=j.actor)===null||ee===void 0?void 0:ee.object)!==null&&oe!==void 0?oe:"anonymous","cloudevents.event_source_details.uri":(ce=(ae=j.actor)===null||ae===void 0?void 0:ae.uri)!==null&&ce!==void 0?ce:void 0,"cloudevents.event_client_ip":j.clientIp,"cloudevents.event_object":j.object||"event","cloudevents.event_category":j.category,"cloudevents.event_signal":j.signal,"cloudevents.event_actor.id":(V=(Q=j.actor)===null||Q===void 0?void 0:Q.id)!==null&&V!==void 0?V:void 0,"cloudevents.event_actor.object":(G=(Y=j.actor)===null||Y===void 0?void 0:Y.object)!==null&&G!==void 0?G:void 0,"cloudevents.event_actor.uri":(U=(D=j.actor)===null||D===void 0?void 0:D.uri)!==null&&U!==void 0?U:void 0,"cloudevents.event_organization_id":j.organizationId,"cloudevents.event_organization_slug":j.organizationSlug,"cloudevents.event_project_id":j.projectId,"cloudevents.event_project_slug":j.projectSlug,"cloudevents.event_request_id":j.requestId,"cloudevents.event_os_platform":j.osPlatform,"cloudevents.event_user_agent":j.userAgent,"cloudevents.event_session_id":j.sessionId}}function m(j,T,E){const I=j.data,N=Object.assign({},h(j,T,E));return g(I,N),w(j,N),z(j,N),N}function g(j,T){!j||typeof j!="object"||(Array.isArray(j)?v(j,T):x(j,T))}function v(j,T){j.some(E=>E&&typeof E=="object"&&typeof E.object=="string")?b(j,T):k(j,T)}function b(j,T){const E=s(j);E.updated.forEach((I,N)=>{const $=l("cloudevents.event_data",I.object,c(I,N));u(I,$,T,!0,i)}),E.notUpdated.forEach(I=>{const N=l("cloudevents.event_data",I.object,void 0);u(I,N,T,!0,i)})}function k(j,T){for(const E of j)if(!(!E||typeof E!="object"))for(const[I,N]of Object.entries(E)){if(N===void 0)continue;const $=o(I);N!==null&&typeof N=="object"&&!Array.isArray(N)?d(N,`cloudevents.event_data.${$}`,T):T[`cloudevents.event_data.${$}`]=N}}function x(j,T){for(const[E,I]of Object.entries(j)){if(I==null)continue;const N=o(E);if(typeof I=="object"&&!Array.isArray(I))for(const[$,H]of Object.entries(I))H!=null&&(typeof H=="string"||typeof H=="number"||typeof H=="boolean")&&(T[`cloudevents.event_data.${N}.${$}`]=H);else(typeof I=="string"||typeof I=="number"||typeof I=="boolean")&&(T[`cloudevents.event_data.${N}`]=I)}}function w(j,T){if(!j.subjects||!Array.isArray(j.subjects))return;const E=s(j.subjects);E.updated.forEach((I,N)=>{const $=l("cloudevents.event_subjects",I.object,c(I,N));u(I,$,T,!1,i)}),E.notUpdated.forEach(I=>{const N=l("cloudevents.event_subjects",I.object,void 0);u(I,N,T,!1,i)})}function z(j,T){for(const[E,I]of Object.entries(j))if(!(n.CLOUD_EVENT_STANDARD_KEYS.includes(E)||I===void 0))if(I instanceof Object)for(const[N,$]of Object.entries(I))$!==void 0&&(T[`cloudevents.${E}.${N}`]=$);else T[`cloudevents.${E}`]=I}function S(j,T,E){return m(j,T,E)}class C{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracerProvider",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:null})}initTracer(T){throw new Error("initTracer must be implemented by the environment-specific client")}init(T){this.config=T,this.initTracer(T)}send(T){var E;try{if(!this.tracer||!this.config)return;const I=T,N="time"in I&&I.time?new Date(I.time):new Date;this.tracer.startSpan(`event.${I.type}`,{attributes:this.processAttributes(I,N),startTime:N}).end(N)}catch(I){!((E=this.config)===null||E===void 0)&&E.isProd||console.error("Event reporting failed:",I)}}processAttributes(T,E){return S(T,E,this.config)}startSpan(T,E){var I;try{if(!this.tracer)return;let N;const $=T.time?new Date(T.time):new Date,H=this.tracer.startSpan(`event.${T.type}`,{attributes:this.processAttributes(T,$),root:!E},E);return E||(N=a.trace.setSpan(a.context.active(),H)),{end:()=>H.end(),setAttribute:(Z,te)=>{H.setAttribute(`cloudevents.event_data.${o(Z)}`,te)},setStatus:(Z,te)=>H.setStatus({code:Z,message:te}),parentCtx:N}}catch(N){!((I=this.config)===null||I===void 0)&&I.isProd||console.error("Event reporting failed:",N);return}}startStepSpan(T,E){var I;try{if(!this.tracer)return;const N=E||a.context.active(),$=T,H=$.time?new Date($.time):new Date,Z=this.tracer.startSpan(`event.${$.type}`,{attributes:this.processAttributes($,H)},N),te=a.trace.setSpan(N,Z);return{end:()=>Z.end(),setAttribute:(ee,oe)=>{Z.setAttribute(`cloudevents.event_data.${o(ee)}`,oe)},setStatus:(ee,oe)=>Z.setStatus({code:ee,message:oe}),recordException:ee=>Z.recordException(ee),context:te}}catch(N){!((I=this.config)===null||I===void 0)&&I.isProd||console.error("Event reporting failed:",N);return}}traceStep(T){const E=this.startStepSpan(T);if(E)return new r.TraceStep(E)}forceFlush(){return t(this,void 0,void 0,function*(){var T;return(T=this.tracerProvider)===null||T===void 0?void 0:T.forceFlush()})}shutdown(){return t(this,void 0,void 0,function*(){var T;return(T=this.tracerProvider)===null||T===void 0?void 0:T.shutdown()})}}e.BaseOtelClient=C})(xT)),xT}var fme;function JSt(){if(fme)return VS;fme=1,Object.defineProperty(VS,"__esModule",{value:!0}),VS.OtelClient=void 0;const e=Cwt,t=jwt,a=zSt,r=CSt,n=qSt,i=cme,o=ZSt();class s extends o.BaseOtelClient{constructor(){super(),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1})}initTracer(c){var u;if(!c.collectorUrl&&!c.collectorTraceUrl)return;const d=`ses_${(0,i.ulid)()}`;this.sessionId=d;const h=(0,t.resourceFromAttributes)({[r.ATTR_SERVICE_NAME]:c.serviceName,[r.ATTR_SERVICE_VERSION]:c.serviceVersion,session_id:d}),m=c.collectorTraceUrl||`${c.collectorUrl}/v1/traces`;this.tracerProvider=new e.WebTracerProvider({resource:h,spanProcessors:[new e.BatchSpanProcessor(new a.OTLPTraceExporter({url:m,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(c.tracerName),this.tracerProvider.register(),(0,n.registerInstrumentations)({instrumentations:(u=c.instrumentations)!==null&&u!==void 0?u:[]}),this.initialized=!0}}return VS.OtelClient=s,VS}var gme={},vme;function YSt(){return vme||(vme=1,Object.defineProperty(gme,"__esModule",{value:!0})),gme}var bme;function yme(){return bme||(bme=1,(function(e){var t=c1&&c1.__createBinding||(Object.create?(function(r,n,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(n,i);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(r,o,s)}):(function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]})),a=c1&&c1.__exportStar||function(r,n){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&t(n,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),a(JSt(),e),a(YSt(),e)})(c1)),c1}var kme;function XSt(){if(kme)return HS;kme=1,Object.defineProperty(HS,"__esModule",{value:!0}),HS.Telemetry=void 0;const e=yme(),t=hme();class a{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"useCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"otelClient",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"updateCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:n=>{var i;!((i=this.config)===null||i===void 0)&&i.disabled||(this.useCloudEventData=n)}}),this.useCloudEventData=()=>({origin:"redoc",signal:"log"}),this.otelClient=new e.OtelClient,this.tracer={traceStep:(n,i)=>{const o=this.constructCloudEvent(n,i,{signal:"trace"});return this.otelClient.traceStep(o)}}}send(n,i,o){var s,l;try{if(!(!((s=this.config)===null||s===void 0)&&s.otel.isProd))return;const c=n&&typeof n=="object"&&"type"in n&&"data"in n?n:this.constructCloudEvent(n,i,Object.assign(Object.assign({},o),{signal:"log"}));this.sendToOtelService(c)}catch(c){!((l=this.config)===null||l===void 0)&&l.otel.isProd||console.error("Event reporting failed:",c)}}init(n){n.disabled||this.initialized||(this.config=n,this.initialized=!0,this.otelClient.init({serviceVersion:n.otel.serviceVersion,version:n.otel.version,isProd:n.otel.isProd,collectorUrl:n.otel.collectorUrl,collectorTraceUrl:n.otel.collectorTraceUrl,serviceName:n.otel.serviceName,tracerName:n.otel.tracerName,instrumentations:[...n.otel.instrumentations||[]]}))}startSpan(n,i,o){var s;if(!((s=this.config)===null||s===void 0)&&s.disabled)return;const l=this.constructCloudEvent(n,i,{signal:"trace"});return this.otelClient.startSpan(l,o)}constructCloudEvent(n,i,o){const s=Object.assign(Object.assign({},this.useCloudEventData()),o);return(0,t.mapToCloudEvent)(Object.assign(Object.assign({type:n,data:i},s),this.otelClient.sessionId&&{sessionId:this.otelClient.sessionId}))}sendToOtelService(n){var i;!((i=this.config)===null||i===void 0)&&i.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",n),this.otelClient.send(Object.assign(Object.assign({},n),{signal:"log"}))}forceFlush(){var n;return!((n=this.config)===null||n===void 0)&&n.disabled?Promise.resolve():this.otelClient.forceFlush()}shutdown(){var n;return!((n=this.config)===null||n===void 0)&&n.disabled?Promise.resolve():this.otelClient.shutdown()}sendViewedMessage(n,i){this.send("com.redocly.page.viewed",n,i)}sendPerformanceMetricsMessage(n,i){this.send("com.redocly.redoc_performance_metrics",n,i)}sendDownloadDefinitionClickedMessage(n,i){this.send("com.redocly.download_definition.clicked",n,i)}sendCopyCodeSnippetClickedMessage(n,i){this.send("com.redocly.copy_code_snippet.clicked",n,i)}sendReferencedInClickedMessage(n,i){this.send("com.redocly.referenced_in.clicked",n,i)}sendSelectLanguageClickedMessage(n,i){this.send("com.redocly.select_language.clicked",n,i)}sendExpandCollapseAllClickedMessage(n,i){this.send("com.redocly.expand_collapse_all.clicked",n,i)}sendExamplesSwitcherClickedMessage(n,i){this.send("com.redocly.examples_switcher.clicked",n,i)}sendSwitchServersClickedMessage(n,i){this.send("com.redocly.switch_servers.clicked",n,i)}sendTryItOpenedMessage(n,i){this.send("com.redocly.try_it.opened",n,i)}sendChangeLayoutClickedMessage(n,i){this.send("com.redocly.change_layout.clicked",n,i)}sendViewSecurityDetailsClickedMessage(n,i){this.send("com.redocly.view_security_details.clicked",n,i)}sendViewSecurityDetailsClosedMessage(n,i){this.send("com.redocly.view_security_details.closed",n,i)}sendSearchOpenedMessage(n,i){this.send("com.redocly.search.opened",n,i)}sendSearchResultClickedMessage(n,i){this.send("com.redocly.search.result.clicked",n,i)}sendSearchInputResetClickedMessage(n,i){this.send("com.redocly.search_input_reset.clicked",n,i)}sendSwitchMessageClickedMessage(n,i){this.send("com.redocly.switch_message.clicked",n,i)}sendSwitchExampleClickedMessage(n,i){this.send("com.redocly.switch_example.clicked",n,i)}sendMessageClickedMessage(n,i){this.send("com.redocly.message.clicked",n,i)}sendServerModalOpenedMessage(n,i){this.send("com.redocly.server_modal.opened",n,i)}sendRequiredScopesModalOpenedMessage(n,i){this.send("com.redocly.required_scopes_modal.opened",n,i)}sendInitialMessage(n,i){this.send("com.redocly.redoc_initial",n,i)}sendErrorMessage(n,i){this.send("com.redocly.redoc_error",n,i)}}return HS.Telemetry=a,HS}var xme;function eOt(){return xme||(xme=1,(function(e){var t=l1&&l1.__createBinding||(Object.create?(function(r,n,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(n,i);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(r,o,s)}):(function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]})),a=l1&&l1.__exportStar||function(r,n){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&t(n,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),a(hut(),e),a(XSt(),e),a(yme(),e)})(l1)),l1}var wme={},Sme;function tOt(){return Sme||(Sme=1,Object.defineProperty(wme,"__esModule",{value:!0})),wme}var Ome;function aOt(){return Ome||(Ome=1,(function(e){var t=s1&&s1.__createBinding||(Object.create?(function(n,i,o,s){s===void 0&&(s=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,s,l)}):(function(n,i,o,s){s===void 0&&(s=o),n[s]=i[o]})),a=s1&&s1.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.Telemetry=void 0;var r=eOt();Object.defineProperty(e,"Telemetry",{enumerable:!0,get:function(){return r.Telemetry}}),a(tOt(),e)})(s1)),s1}var rOt=aOt();const nOt="@redocly/openapi-docs",iOt="3.21.0-next.2",zme={name:nOt,version:iOt},oOt="https://otel.cloud.redocly.com/v1/traces";class Cme extends rOt.Telemetry{specType;constructor(t){super(),this.specType=t.specType,this.init({otel:{isProd:!0,serviceVersion:t.serviceVersion||`${zme.name}@${zme.version}`,version:"1.0.0",collectorTraceUrl:t.collectorUrl||oOt,serviceName:t.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:t.disabled||!1})}send(t,a){a&&Array.isArray(a)&&a.length>0&&(a=a.map(r=>r&&typeof r=="object"?{...r,specType:this.specType}:r)),super.send(t,a,{env:"production"})}}var sOt=Object.create,wT=Object.defineProperty,lOt=Object.getOwnPropertyDescriptor,cOt=Object.getOwnPropertyNames,uOt=Object.getPrototypeOf,dOt=Object.prototype.hasOwnProperty,jme=e=>wT(e,"__esModule",{value:!0}),sa=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},Pme=(e,t)=>{jme(e);for(var a in t)wT(e,a,{get:t[a],enumerable:!0})},pOt=(e,t,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of cOt(t))!dOt.call(e,r)&&r!=="default"&&wT(e,r,{get:()=>t[r],enumerable:!(a=lOt(t,r))||a.enumerable});return e},ST=e=>pOt(jme(wT(e!=null?sOt(uOt(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),Ame=sa({"src/grammar/tag.js"(e,t){function a(i,o){function s(){this.constructor=i}s.prototype=o.prototype,i.prototype=new s}function r(i,o,s,l){this.message=i,this.expected=o,this.found=s,this.location=l,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,r)}a(r,Error),r.buildMessage=function(i,o,s){var l={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(k){return Array.isArray(k)?d(k[0])+"-"+d(k[1]):d(k)});return"["+(v.inverted?"^":"")+b+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description},not:function(v){return"not "+h(v.expected)}};function c(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+c(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+c(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+c(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+c(b)})}function h(v){return l[v.type](v)}function m(v){var b=v.map(h),k,x;if(b.sort(),b.length>0){for(k=1,x=1;k<b.length;k++)b[k-1]!==b[k]&&(b[x]=b[k],x++);b.length=x}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function g(v){return v?'"'+u(v)+'"':"end of input"}return"Expected "+m(i)+" but "+g(o)+" found."};function n(i,o){o=o!==void 0?o:{};var s={},l={Top:Sa},c=Sa,u="/",d=".",h="#",m="=",g="(",v=")",b=",",k="[",x="]",w="null",z="true",S="false",C="{",j="}",T=":",E='"',I="\\",N="n",$="r",H="t",Z=/^[$@]/,te=/^[0-9]/,ee=/^[^\0-\x1F"\\]/,oe=/^[a-zA-Z0-9_\-]/,ae=/^[ \n\t]/,ce=ar("/",!1),Q=qa("tag name"),V=qa("class"),Y=qa("id"),G=ar("=",!1),D=ar("(",!1),U=ar(")",!1),K=ar(",",!1),X=qa("variable"),J=qa("null"),he=qa("boolean"),Oe=ar("[",!1),M=ar("]",!1),L=ar("{",!1),re=ar("}",!1),ve=ar(":",!1),we=qa("number"),ke=qa("string"),le=qa("identifier"),je=qa("whitespace"),be=function(Se){return{type:"variable",meta:{variable:Se}}},Re=function(Se){return{type:"annotation",meta:{attributes:Se}}},Ce=function(Se,Ke){return Ke},Me=function(Se,Ke,Ge,ut){Ke&&(Ge=Ge||[],Ge.unshift({type:"attribute",name:"primary",value:Ke}));const[zt,Ut]=ut?["tag",0]:["tag_open",1];return{type:zt,nesting:Ut,meta:{tag:Se,attributes:Ge}}},de=function(Se){return{type:"tag_close",nesting:-1,meta:{tag:Se}}},Ae=function(Se,Ke){return Se?[Se,...Ke]:[]},Qe=function(Se){return Se},We=function(Se){return Se},_=function(Se){return Se},W=function(Se){return Se},ne=function(Se){return{type:"class",name:Se,value:!0}},ge=function(Se){return{type:"attribute",name:"id",value:Se}},Pe=function(Se,Ke){return{type:"attribute",name:Se,value:Ke}},Te=function(Se,Ke,Ge){return Ke?[Ke,...Ge]:[]},Le=function(Se,Ke){let Ge={};for(let[ut,{name:zt,value:Ut}]of Ke.entries())Ge[zt||ut]=Ut;return new Hl(Se,Ge)},rt=function(Se){return Se},ot=function(Se,Ke){return{name:Se,value:Ke}},Je=function(Se){return Se},Xe=function(Se,Ke,Ge){return Se==="@"?[Ke,...Ge]:new Xo([Ke,...Ge])},jt=function(){return null},Pa=function(){return!0},wt=function(){return!1},_t=function(Se,Ke){return[Se,...Ke]},Dt=function(Se){return Se||[]},ta=function(Se,Ke){return Object.assign(Se,...Ke)},fa=function(Se){return Se||{}},ua=function(Se,Ke){return Se==="$$mdtype"?{}:{[Se]:Ke}},ga=function(){return parseFloat(ei())},Wr=function(Se){return Se.join("")},hr=function(){return`
|
|
6603
|
+
`;function Wp(){const e=P.useId().replace(/:/g,"_");return t=>`${t}-${e}`}var s1={},l1={},Cie={},jie;function hut(){return jie||(jie=1,Object.defineProperty(Cie,"__esModule",{value:!0})),Cie}var HS={},c1={},VS={},mut=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},eb="1.9.0",Pie=/^(\d+)\.(\d+)\.(\d+)(-(.+))?$/;function fut(e){var t=new Set([e]),a=new Set,r=e.match(Pie);if(!r)return function(){return!1};var n={major:+r[1],minor:+r[2],patch:+r[3],prerelease:r[4]};if(n.prerelease!=null)return function(s){return s===e};function i(s){return a.add(s),!1}function o(s){return t.add(s),!0}return function(s){if(t.has(s))return!0;if(a.has(s))return!1;var l=s.match(Pie);if(!l)return i(s);var c={major:+l[1],minor:+l[2],patch:+l[3],prerelease:l[4]};return c.prerelease!=null||n.major!==c.major?i(s):n.major===0?n.minor===c.minor&&n.patch<=c.patch?o(s):i(s):n.minor<=c.minor?o(s):i(s)}}var gut=fut(eb),vut=eb.split(".")[0],FS=Symbol.for("opentelemetry.js.api."+vut),qS=mut;function GS(e,t,a,r){var n;r===void 0&&(r=!1);var i=qS[FS]=(n=qS[FS])!==null&&n!==void 0?n:{version:eb};if(!r&&i[e]){var o=new Error("@opentelemetry/api: Attempted duplicate registration of API: "+e);return a.error(o.stack||o.message),!1}if(i.version!==eb){var o=new Error("@opentelemetry/api: Registration of version v"+i.version+" for "+e+" does not match previously registered API v"+eb);return a.error(o.stack||o.message),!1}return i[e]=t,a.debug("@opentelemetry/api: Registered a global for "+e+" v"+eb+"."),!0}function tb(e){var t,a,r=(t=qS[FS])===null||t===void 0?void 0:t.version;if(!(!r||!gut(r)))return(a=qS[FS])===null||a===void 0?void 0:a[e]}function US(e,t){t.debug("@opentelemetry/api: Unregistering a global for "+e+" v"+eb+".");var a=qS[FS];a&&delete a[e]}var but=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},yut=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},kut=(function(){function e(t){this._namespace=t.namespace||"DiagComponentLogger"}return e.prototype.debug=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("debug",this._namespace,t)},e.prototype.error=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("error",this._namespace,t)},e.prototype.info=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("info",this._namespace,t)},e.prototype.warn=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("warn",this._namespace,t)},e.prototype.verbose=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return QS("verbose",this._namespace,t)},e})();function QS(e,t,a){var r=tb("diag");if(r)return a.unshift(t),r[e].apply(r,yut([],but(a),!1))}var Ac;(function(e){e[e.NONE=0]="NONE",e[e.ERROR=30]="ERROR",e[e.WARN=50]="WARN",e[e.INFO=60]="INFO",e[e.DEBUG=70]="DEBUG",e[e.VERBOSE=80]="VERBOSE",e[e.ALL=9999]="ALL"})(Ac||(Ac={}));function xut(e,t){e<Ac.NONE?e=Ac.NONE:e>Ac.ALL&&(e=Ac.ALL),t=t||{};function a(r,n){var i=t[r];return typeof i=="function"&&e>=n?i.bind(t):function(){}}return{error:a("error",Ac.ERROR),warn:a("warn",Ac.WARN),info:a("info",Ac.INFO),debug:a("debug",Ac.DEBUG),verbose:a("verbose",Ac.VERBOSE)}}var wut=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Sut=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},Out="diag",Zp=(function(){function e(){function t(n){return function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];var s=tb("diag");if(s)return s[n].apply(s,Sut([],wut(i),!1))}}var a=this,r=function(n,i){var o,s,l;if(i===void 0&&(i={logLevel:Ac.INFO}),n===a){var c=new Error("Cannot use diag as the logger for itself. Please use a DiagLogger implementation like ConsoleDiagLogger or a custom implementation");return a.error((o=c.stack)!==null&&o!==void 0?o:c.message),!1}typeof i=="number"&&(i={logLevel:i});var u=tb("diag"),d=xut((s=i.logLevel)!==null&&s!==void 0?s:Ac.INFO,n);if(u&&!i.suppressOverrideMessage){var h=(l=new Error().stack)!==null&&l!==void 0?l:"<failed to generate stacktrace>";u.warn("Current logger will be overwritten from "+h),d.warn("Current logger will overwrite one already registered from "+h)}return GS("diag",d,a,!0)};a.setLogger=r,a.disable=function(){US(Out,a)},a.createComponentLogger=function(n){return new kut(n)},a.verbose=t("verbose"),a.debug=t("debug"),a.info=t("info"),a.warn=t("warn"),a.error=t("error")}return e.instance=function(){return this._instance||(this._instance=new e),this._instance},e})(),zut=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Cut=function(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},jut=(function(){function e(t){this._entries=t?new Map(t):new Map}return e.prototype.getEntry=function(t){var a=this._entries.get(t);if(a)return Object.assign({},a)},e.prototype.getAllEntries=function(){return Array.from(this._entries.entries()).map(function(t){var a=zut(t,2),r=a[0],n=a[1];return[r,n]})},e.prototype.setEntry=function(t,a){var r=new e(this._entries);return r._entries.set(t,a),r},e.prototype.removeEntry=function(t){var a=new e(this._entries);return a._entries.delete(t),a},e.prototype.removeEntries=function(){for(var t,a,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var i=new e(this._entries);try{for(var o=Cut(r),s=o.next();!s.done;s=o.next()){var l=s.value;i._entries.delete(l)}}catch(c){t={error:c}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(t)throw t.error}}return i},e.prototype.clear=function(){return new e},e})(),Put=Symbol("BaggageEntryMetadata"),Aut=Zp.instance();function Tut(e){return e===void 0&&(e={}),new jut(new Map(Object.entries(e)))}function Aie(e){return typeof e!="string"&&(Aut.error("Cannot create baggage metadata from unknown type: "+typeof e),e=""),{__TYPE__:Put,toString:function(){return e}}}function eT(e){return Symbol.for(e)}var _ut=(function(){function e(t){var a=this;a._currentContext=t?new Map(t):new Map,a.getValue=function(r){return a._currentContext.get(r)},a.setValue=function(r,n){var i=new e(a._currentContext);return i._currentContext.set(r,n),i},a.deleteValue=function(r){var n=new e(a._currentContext);return n._currentContext.delete(r),n}}return e})(),ab=new _ut,JI=[{n:"error",c:"error"},{n:"warn",c:"warn"},{n:"info",c:"info"},{n:"debug",c:"debug"},{n:"verbose",c:"trace"}],Mut=(function(){function e(){function t(r){return function(){for(var n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];if(console){var o=console[r];if(typeof o!="function"&&(o=console.log),typeof o=="function")return o.apply(console,n)}}}for(var a=0;a<JI.length;a++)this[JI[a].n]=t(JI[a].c)}return e})(),rb=(function(){var e=function(t,a){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},e(t,a)};return function(t,a){if(typeof a!="function"&&a!==null)throw new TypeError("Class extends value "+String(a)+" is not a constructor or null");e(t,a);function r(){this.constructor=t}t.prototype=a===null?Object.create(a):(r.prototype=a.prototype,new r)}})(),Eut=(function(){function e(){}return e.prototype.createGauge=function(t,a){return Hut},e.prototype.createHistogram=function(t,a){return Vut},e.prototype.createCounter=function(t,a){return Kut},e.prototype.createUpDownCounter=function(t,a){return Fut},e.prototype.createObservableGauge=function(t,a){return Gut},e.prototype.createObservableCounter=function(t,a){return qut},e.prototype.createObservableUpDownCounter=function(t,a){return Uut},e.prototype.addBatchObservableCallback=function(t,a){},e.prototype.removeBatchObservableCallback=function(t){},e})(),tT=(function(){function e(){}return e})(),Rut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(tT),Nut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.add=function(a,r){},t})(tT),Iut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(tT),Lut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.record=function(a,r){},t})(tT),YI=(function(){function e(){}return e.prototype.addCallback=function(t){},e.prototype.removeCallback=function(t){},e})(),But=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(YI),Dut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(YI),$ut=(function(e){rb(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(YI),Tie=new Eut,Kut=new Rut,Hut=new Iut,Vut=new Lut,Fut=new Nut,qut=new But,Gut=new Dut,Uut=new $ut;function _ie(){return Tie}var XI;(function(e){e[e.INT=0]="INT",e[e.DOUBLE=1]="DOUBLE"})(XI||(XI={}));var Mie={get:function(e,t){if(e!=null)return e[t]},keys:function(e){return e==null?[]:Object.keys(e)}},Eie={set:function(e,t,a){e!=null&&(e[t]=a)}},Qut=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;(t===void 0||t-- >0)&&!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Wut=function(e,t,a){if(a||arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},Zut=(function(){function e(){}return e.prototype.active=function(){return ab},e.prototype.with=function(t,a,r){for(var n=[],i=3;i<arguments.length;i++)n[i-3]=arguments[i];return a.call.apply(a,Wut([r],Qut(n),!1))},e.prototype.bind=function(t,a){return a},e.prototype.enable=function(){return this},e.prototype.disable=function(){return this},e})(),Jut=function(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),n,i=[],o;try{for(;!(n=r.next()).done;)i.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return i},Yut=function(e,t,a){if(arguments.length===2)for(var r=0,n=t.length,i;r<n;r++)(i||!(r in t))&&(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))},eL="context",Xut=new Zut,aT=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalContextManager=function(t){return GS(eL,t,Zp.instance())},e.prototype.active=function(){return this._getContextManager().active()},e.prototype.with=function(t,a,r){for(var n,i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];return(n=this._getContextManager()).with.apply(n,Yut([t,a,r],Jut(i),!1))},e.prototype.bind=function(t,a){return this._getContextManager().bind(t,a)},e.prototype._getContextManager=function(){return tb(eL)||Xut},e.prototype.disable=function(){this._getContextManager().disable(),US(eL,Zp.instance())},e})(),Id;(function(e){e[e.NONE=0]="NONE",e[e.SAMPLED=1]="SAMPLED"})(Id||(Id={}));var tL="0000000000000000",aL="00000000000000000000000000000000",rL={traceId:aL,spanId:tL,traceFlags:Id.NONE},WS=(function(){function e(t){t===void 0&&(t=rL),this._spanContext=t}return e.prototype.spanContext=function(){return this._spanContext},e.prototype.setAttribute=function(t,a){return this},e.prototype.setAttributes=function(t){return this},e.prototype.addEvent=function(t,a){return this},e.prototype.addLink=function(t){return this},e.prototype.addLinks=function(t){return this},e.prototype.setStatus=function(t){return this},e.prototype.updateName=function(t){return this},e.prototype.end=function(t){},e.prototype.isRecording=function(){return!1},e.prototype.recordException=function(t,a){},e})(),nL=eT("OpenTelemetry Context Key SPAN");function iL(e){return e.getValue(nL)||void 0}function edt(){return iL(aT.getInstance().active())}function oL(e,t){return e.setValue(nL,t)}function tdt(e){return e.deleteValue(nL)}function adt(e,t){return oL(e,new WS(t))}function Rie(e){var t;return(t=iL(e))===null||t===void 0?void 0:t.spanContext()}var rdt=/^([0-9a-f]{32})$/i,ndt=/^[0-9a-f]{16}$/i;function sL(e){return rdt.test(e)&&e!==aL}function Nie(e){return ndt.test(e)&&e!==tL}function ZS(e){return sL(e.traceId)&&Nie(e.spanId)}function idt(e){return new WS(e)}var lL=aT.getInstance(),Iie=(function(){function e(){}return e.prototype.startSpan=function(t,a,r){r===void 0&&(r=lL.active());var n=!!a?.root;if(n)return new WS;var i=r&&Rie(r);return odt(i)&&ZS(i)?new WS(i):new WS},e.prototype.startActiveSpan=function(t,a,r,n){var i,o,s;if(!(arguments.length<2)){arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);var l=o??lL.active(),c=this.startSpan(t,i,l),u=oL(l,c);return lL.with(u,s,void 0,c)}},e})();function odt(e){return typeof e=="object"&&typeof e.spanId=="string"&&typeof e.traceId=="string"&&typeof e.traceFlags=="number"}var sdt=new Iie,Lie=(function(){function e(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}return e.prototype.startSpan=function(t,a,r){return this._getTracer().startSpan(t,a,r)},e.prototype.startActiveSpan=function(t,a,r,n){var i=this._getTracer();return Reflect.apply(i.startActiveSpan,i,arguments)},e.prototype._getTracer=function(){if(this._delegate)return this._delegate;var t=this._provider.getDelegateTracer(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):sdt},e})(),ldt=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){return new Iie},e})(),cdt=new ldt,cL=(function(){function e(){}return e.prototype.getTracer=function(t,a,r){var n;return(n=this.getDelegateTracer(t,a,r))!==null&&n!==void 0?n:new Lie(this,t,a,r)},e.prototype.getDelegate=function(){var t;return(t=this._delegate)!==null&&t!==void 0?t:cdt},e.prototype.setDelegate=function(t){this._delegate=t},e.prototype.getDelegateTracer=function(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getTracer(t,a,r)},e})(),JS;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(JS||(JS={}));var rT;(function(e){e[e.INTERNAL=0]="INTERNAL",e[e.SERVER=1]="SERVER",e[e.CLIENT=2]="CLIENT",e[e.PRODUCER=3]="PRODUCER",e[e.CONSUMER=4]="CONSUMER"})(rT||(rT={}));var Zi;(function(e){e[e.UNSET=0]="UNSET",e[e.OK=1]="OK",e[e.ERROR=2]="ERROR"})(Zi||(Zi={}));var uL="[_0-9a-z-*/]",udt="[a-z]"+uL+"{0,255}",ddt="[a-z0-9]"+uL+"{0,240}@[a-z]"+uL+"{0,13}",pdt=new RegExp("^(?:"+udt+"|"+ddt+")$"),hdt=/^[ -~]{0,255}[!-~]$/,mdt=/,|=/;function fdt(e){return pdt.test(e)}function gdt(e){return hdt.test(e)&&!mdt.test(e)}var Bie=32,vdt=512,Die=",",$ie="=",bdt=(function(){function e(t){this._internalState=new Map,t&&this._parse(t)}return e.prototype.set=function(t,a){var r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r},e.prototype.unset=function(t){var a=this._clone();return a._internalState.delete(t),a},e.prototype.get=function(t){return this._internalState.get(t)},e.prototype.serialize=function(){var t=this;return this._keys().reduce(function(a,r){return a.push(r+$ie+t.get(r)),a},[]).join(Die)},e.prototype._parse=function(t){t.length>vdt||(this._internalState=t.split(Die).reverse().reduce(function(a,r){var n=r.trim(),i=n.indexOf($ie);if(i!==-1){var o=n.slice(0,i),s=n.slice(i+1,r.length);fdt(o)&&gdt(s)&&a.set(o,s)}return a},new Map),this._internalState.size>Bie&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,Bie))))},e.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},e.prototype._clone=function(){var t=new e;return t._internalState=new Map(this._internalState),t},e})();function ydt(e){return new bdt(e)}var Gl=aT.getInstance(),Wa=Zp.instance(),kdt=(function(){function e(){}return e.prototype.getMeter=function(t,a,r){return Tie},e})(),xdt=new kdt,dL="metrics",wdt=(function(){function e(){}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalMeterProvider=function(t){return GS(dL,t,Zp.instance())},e.prototype.getMeterProvider=function(){return tb(dL)||xdt},e.prototype.getMeter=function(t,a,r){return this.getMeterProvider().getMeter(t,a,r)},e.prototype.disable=function(){US(dL,Zp.instance())},e})(),nT=wdt.getInstance(),Sdt=(function(){function e(){}return e.prototype.inject=function(t,a){},e.prototype.extract=function(t,a){return t},e.prototype.fields=function(){return[]},e})(),pL=eT("OpenTelemetry Baggage Key");function Kie(e){return e.getValue(pL)||void 0}function Odt(){return Kie(aT.getInstance().active())}function zdt(e,t){return e.setValue(pL,t)}function Cdt(e){return e.deleteValue(pL)}var hL="propagation",jdt=new Sdt,Pdt=(function(){function e(){this.createBaggage=Tut,this.getBaggage=Kie,this.getActiveBaggage=Odt,this.setBaggage=zdt,this.deleteBaggage=Cdt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalPropagator=function(t){return GS(hL,t,Zp.instance())},e.prototype.inject=function(t,a,r){return r===void 0&&(r=Eie),this._getGlobalPropagator().inject(t,a,r)},e.prototype.extract=function(t,a,r){return r===void 0&&(r=Mie),this._getGlobalPropagator().extract(t,a,r)},e.prototype.fields=function(){return this._getGlobalPropagator().fields()},e.prototype.disable=function(){US(hL,Zp.instance())},e.prototype._getGlobalPropagator=function(){return tb(hL)||jdt},e})(),nb=Pdt.getInstance(),mL="trace",Adt=(function(){function e(){this._proxyTracerProvider=new cL,this.wrapSpanContext=idt,this.isSpanContextValid=ZS,this.deleteSpan=tdt,this.getSpan=iL,this.getActiveSpan=edt,this.getSpanContext=Rie,this.setSpan=oL,this.setSpanContext=adt}return e.getInstance=function(){return this._instance||(this._instance=new e),this._instance},e.prototype.setGlobalTracerProvider=function(t){var a=GS(mL,this._proxyTracerProvider,Zp.instance());return a&&this._proxyTracerProvider.setDelegate(t),a},e.prototype.getTracerProvider=function(){return tb(mL)||this._proxyTracerProvider},e.prototype.getTracer=function(t,a){return this.getTracerProvider().getTracer(t,a)},e.prototype.disable=function(){US(mL,Zp.instance()),this._proxyTracerProvider=new cL},e})(),Ks=Adt.getInstance();const Tdt={context:Gl,diag:Wa,metrics:nT,propagation:nb,trace:Ks},_dt=Object.freeze(Object.defineProperty({__proto__:null,DiagConsoleLogger:Mut,get DiagLogLevel(){return Ac},INVALID_SPANID:tL,INVALID_SPAN_CONTEXT:rL,INVALID_TRACEID:aL,ProxyTracer:Lie,ProxyTracerProvider:cL,ROOT_CONTEXT:ab,get SamplingDecision(){return JS},get SpanKind(){return rT},get SpanStatusCode(){return Zi},get TraceFlags(){return Id},get ValueType(){return XI},baggageEntryMetadataFromString:Aie,context:Gl,createContextKey:eT,createNoopMeter:_ie,createTraceState:ydt,default:Tdt,defaultTextMapGetter:Mie,defaultTextMapSetter:Eie,diag:Wa,isSpanContextValid:ZS,isValidSpanId:Nie,isValidTraceId:sL,metrics:nT,propagation:nb,trace:Ks},Symbol.toStringTag,{value:"Module"})),Hie=eT("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function Vie(e){return e.setValue(Hie,!0)}function fL(e){return e.getValue(Hie)===!0}const Mdt="=",Fie=";",gL=",",vL="baggage",Edt=180,Rdt=4096,Ndt=8192;function Idt(e){return e.reduce((t,a)=>{const r=`${t}${t!==""?gL:""}${a}`;return r.length>Ndt?t:r},"")}function Ldt(e){return e.getAllEntries().map(([t,a])=>{let r=`${encodeURIComponent(t)}=${encodeURIComponent(a.value)}`;return a.metadata!==void 0&&(r+=Fie+a.metadata.toString()),r})}function Bdt(e){if(!e)return;const t=e.indexOf(Fie),a=t===-1?e:e.substring(0,t),r=a.indexOf(Mdt);if(r<=0)return;const n=a.substring(0,r).trim(),i=a.substring(r+1).trim();if(!n||!i)return;let o,s;try{o=decodeURIComponent(n),s=decodeURIComponent(i)}catch{return}let l;if(t!==-1&&t<e.length-1){const c=e.substring(t+1);l=Aie(c)}return{key:o,value:s,metadata:l}}class Ddt{inject(t,a,r){const n=nb.getBaggage(t);if(!n||fL(t))return;const i=Ldt(n).filter(s=>s.length<=Rdt).slice(0,Edt),o=Idt(i);o.length>0&&r.set(a,vL,o)}extract(t,a,r){const n=r.get(a,vL),i=Array.isArray(n)?n.join(gL):n;if(!i)return t;const o={};return i.length===0||(i.split(gL).forEach(s=>{const l=Bdt(s);if(l){const c={value:l.value};l.metadata&&(c.metadata=l.metadata),o[l.key]=c}}),Object.entries(o).length===0)?t:nb.setBaggage(t,nb.createBaggage(o))}fields(){return[vL]}}function YS(e){const t={};if(typeof e!="object"||e==null)return t;for(const a in e){if(!Object.prototype.hasOwnProperty.call(e,a))continue;if(!$dt(a)){Wa.warn(`Invalid attribute key: ${a}`);continue}const r=e[a];if(!qie(r)){Wa.warn(`Invalid attribute value set for key: ${a}`);continue}Array.isArray(r)?t[a]=r.slice():t[a]=r}return t}function $dt(e){return typeof e=="string"&&e!==""}function qie(e){return e==null?!0:Array.isArray(e)?Kdt(e):Gie(typeof e)}function Kdt(e){let t;for(const a of e){if(a==null)continue;const r=typeof a;if(r!==t){if(!t){if(Gie(r)){t=r;continue}return!1}return!1}}return!0}function Gie(e){switch(e){case"number":case"boolean":case"string":return!0}return!1}function Hdt(){return e=>{Wa.error(Vdt(e))}}function Vdt(e){return typeof e=="string"?e:JSON.stringify(Fdt(e))}function Fdt(e){const t={};let a=e;for(;a!==null;)Object.getOwnPropertyNames(a).forEach(r=>{if(t[r])return;const n=a[r];n&&(t[r]=String(n))}),a=Object.getPrototypeOf(a);return t}let qdt=Hdt();function ib(e){try{qdt(e)}catch{}}const Gdt="2.6.1";function as(e){let t={};const a=e.length;for(let r=0;r<a;r++){const n=e[r];n&&(t[String(n).toUpperCase().replace(/[-.]/g,"_")]=n)}return t}const Uie="aws.lambda.invoked_arn",Qie="db.system",Wie="db.connection_string",Zie="db.user",Jie="db.jdbc.driver_classname",Yie="db.name",Xie="db.statement",eoe="db.operation",toe="db.mssql.instance_name",aoe="db.cassandra.keyspace",roe="db.cassandra.page_size",noe="db.cassandra.consistency_level",ioe="db.cassandra.table",ooe="db.cassandra.idempotence",soe="db.cassandra.speculative_execution_count",loe="db.cassandra.coordinator.id",coe="db.cassandra.coordinator.dc",uoe="db.hbase.namespace",doe="db.redis.database_index",poe="db.mongodb.collection",hoe="db.sql.table",moe="exception.type",foe="exception.message",goe="exception.stacktrace",voe="exception.escaped",boe="faas.trigger",yoe="faas.execution",koe="faas.document.collection",xoe="faas.document.operation",woe="faas.document.time",Soe="faas.document.name",Ooe="faas.time",zoe="faas.cron",Coe="faas.coldstart",joe="faas.invoked_name",Poe="faas.invoked_provider",Aoe="faas.invoked_region",Toe="net.transport",_oe="net.peer.ip",Moe="net.peer.port",Eoe="net.peer.name",Roe="net.host.ip",Noe="net.host.port",Ioe="net.host.name",Loe="net.host.connection.type",Boe="net.host.connection.subtype",Doe="net.host.carrier.name",$oe="net.host.carrier.mcc",Koe="net.host.carrier.mnc",Hoe="net.host.carrier.icc",Voe="peer.service",Foe="enduser.id",qoe="enduser.role",Goe="enduser.scope",Uoe="thread.id",Qoe="thread.name",Woe="code.function",Zoe="code.namespace",Joe="code.filepath",Yoe="code.lineno",Xoe="http.method",ese="http.url",tse="http.target",ase="http.host",rse="http.scheme",nse="http.status_code",ise="http.flavor",ose="http.user_agent",sse="http.request_content_length",lse="http.request_content_length_uncompressed",cse="http.response_content_length",use="http.response_content_length_uncompressed",dse="http.server_name",pse="http.route",hse="http.client_ip",mse="aws.dynamodb.table_names",fse="aws.dynamodb.consumed_capacity",gse="aws.dynamodb.item_collection_metrics",vse="aws.dynamodb.provisioned_read_capacity",bse="aws.dynamodb.provisioned_write_capacity",yse="aws.dynamodb.consistent_read",kse="aws.dynamodb.projection",xse="aws.dynamodb.limit",wse="aws.dynamodb.attributes_to_get",Sse="aws.dynamodb.index_name",Ose="aws.dynamodb.select",zse="aws.dynamodb.global_secondary_indexes",Cse="aws.dynamodb.local_secondary_indexes",jse="aws.dynamodb.exclusive_start_table",Pse="aws.dynamodb.table_count",Ase="aws.dynamodb.scan_forward",Tse="aws.dynamodb.segment",_se="aws.dynamodb.total_segments",Mse="aws.dynamodb.count",Ese="aws.dynamodb.scanned_count",Rse="aws.dynamodb.attribute_definitions",Nse="aws.dynamodb.global_secondary_index_updates",Ise="messaging.system",Lse="messaging.destination",Bse="messaging.destination_kind",Dse="messaging.temp_destination",$se="messaging.protocol",Kse="messaging.protocol_version",Hse="messaging.url",Vse="messaging.message_id",Fse="messaging.conversation_id",qse="messaging.message_payload_size_bytes",Gse="messaging.message_payload_compressed_size_bytes",Use="messaging.operation",Qse="messaging.consumer_id",Wse="messaging.rabbitmq.routing_key",Zse="messaging.kafka.message_key",Jse="messaging.kafka.consumer_group",Yse="messaging.kafka.client_id",Xse="messaging.kafka.partition",ele="messaging.kafka.tombstone",tle="rpc.system",ale="rpc.service",rle="rpc.method",nle="rpc.grpc.status_code",ile="rpc.jsonrpc.version",ole="rpc.jsonrpc.request_id",sle="rpc.jsonrpc.error_code",lle="rpc.jsonrpc.error_message",cle="message.type",ule="message.id",dle="message.compressed_size",ple="message.uncompressed_size",Udt=Uie,Qdt=Qie,Wdt=Wie,Zdt=Zie,Jdt=Jie,Ydt=Yie,Xdt=Xie,ept=eoe,tpt=toe,apt=aoe,rpt=roe,npt=noe,ipt=ioe,opt=ooe,spt=soe,lpt=loe,cpt=coe,upt=uoe,dpt=doe,ppt=poe,hpt=hoe,mpt=moe,fpt=foe,gpt=goe,vpt=voe,bpt=boe,ypt=yoe,kpt=koe,xpt=xoe,wpt=woe,Spt=Soe,Opt=Ooe,zpt=zoe,Cpt=Coe,jpt=joe,Ppt=Poe,Apt=Aoe,Tpt=Toe,_pt=_oe,Mpt=Moe,Ept=Eoe,Rpt=Roe,Npt=Noe,Ipt=Ioe,Lpt=Loe,Bpt=Boe,Dpt=Doe,$pt=$oe,Kpt=Koe,Hpt=Hoe,Vpt=Voe,Fpt=Foe,qpt=qoe,Gpt=Goe,Upt=Uoe,Qpt=Qoe,Wpt=Woe,Zpt=Zoe,Jpt=Joe,Ypt=Yoe,Xpt=Xoe,eht=ese,tht=tse,aht=ase,rht=rse,nht=nse,iht=ise,oht=ose,sht=sse,lht=lse,cht=cse,uht=use,dht=dse,pht=pse,hht=hse,mht=mse,fht=fse,ght=gse,vht=vse,bht=bse,yht=yse,kht=kse,xht=xse,wht=wse,Sht=Sse,Oht=Ose,zht=zse,Cht=Cse,jht=jse,Pht=Pse,Aht=Ase,Tht=Tse,_ht=_se,Mht=Mse,Eht=Ese,Rht=Rse,Nht=Nse,Iht=Ise,Lht=Lse,Bht=Bse,Dht=Dse,$ht=$se,Kht=Kse,Hht=Hse,Vht=Vse,Fht=Fse,qht=qse,Ght=Gse,Uht=Use,Qht=Qse,Wht=Wse,Zht=Zse,Jht=Jse,Yht=Yse,Xht=Xse,emt=ele,tmt=tle,amt=ale,rmt=rle,nmt=nle,imt=ile,omt=ole,smt=sle,lmt=lle,cmt=cle,umt=ule,dmt=dle,pmt=ple,hmt=as([Uie,Qie,Wie,Zie,Jie,Yie,Xie,eoe,toe,aoe,roe,noe,ioe,ooe,soe,loe,coe,uoe,doe,poe,hoe,moe,foe,goe,voe,boe,yoe,koe,xoe,woe,Soe,Ooe,zoe,Coe,joe,Poe,Aoe,Toe,_oe,Moe,Eoe,Roe,Noe,Ioe,Loe,Boe,Doe,$oe,Koe,Hoe,Voe,Foe,qoe,Goe,Uoe,Qoe,Woe,Zoe,Joe,Yoe,Xoe,ese,tse,ase,rse,nse,ise,ose,sse,lse,cse,use,dse,pse,hse,mse,fse,gse,vse,bse,yse,kse,xse,wse,Sse,Ose,zse,Cse,jse,Pse,Ase,Tse,_se,Mse,Ese,Rse,Nse,Ise,Lse,Bse,Dse,$se,Kse,Hse,Vse,Fse,qse,Gse,Use,Qse,Wse,Zse,Jse,Yse,Xse,ele,tle,ale,rle,nle,ile,ole,sle,lle,cle,ule,dle,ple]),hle="other_sql",mle="mssql",fle="mysql",gle="oracle",vle="db2",ble="postgresql",yle="redshift",kle="hive",xle="cloudscape",wle="hsqldb",Sle="progress",Ole="maxdb",zle="hanadb",Cle="ingres",jle="firstsql",Ple="edb",Ale="cache",Tle="adabas",_le="firebird",Mle="derby",Ele="filemaker",Rle="informix",Nle="instantdb",Ile="interbase",Lle="mariadb",Ble="netezza",Dle="pervasive",$le="pointbase",Kle="sqlite",Hle="sybase",Vle="teradata",Fle="vertica",qle="h2",Gle="coldfusion",Ule="cassandra",Qle="hbase",Wle="mongodb",Zle="redis",Jle="couchbase",Yle="couchdb",Xle="cosmosdb",ece="dynamodb",tce="neo4j",ace="geode",rce="elasticsearch",nce="memcached",ice="cockroachdb",mmt=hle,fmt=mle,gmt=fle,vmt=gle,bmt=vle,ymt=ble,kmt=yle,xmt=kle,wmt=xle,Smt=wle,Omt=Sle,zmt=Ole,Cmt=zle,jmt=Cle,Pmt=jle,Amt=Ple,Tmt=Ale,_mt=Tle,Mmt=_le,Emt=Mle,Rmt=Ele,Nmt=Rle,Imt=Nle,Lmt=Ile,Bmt=Lle,Dmt=Ble,$mt=Dle,Kmt=$le,Hmt=Kle,Vmt=Hle,Fmt=Vle,qmt=Fle,Gmt=qle,Umt=Gle,Qmt=Ule,Wmt=Qle,Zmt=Wle,Jmt=Zle,Ymt=Jle,Xmt=Yle,eft=Xle,tft=ece,aft=tce,rft=ace,nft=rce,ift=nce,oft=ice,sft=as([hle,mle,fle,gle,vle,ble,yle,kle,xle,wle,Sle,Ole,zle,Cle,jle,Ple,Ale,Tle,_le,Mle,Ele,Rle,Nle,Ile,Lle,Ble,Dle,$le,Kle,Hle,Vle,Fle,qle,Gle,Ule,Qle,Wle,Zle,Jle,Yle,Xle,ece,tce,ace,rce,nce,ice]),oce="all",sce="each_quorum",lce="quorum",cce="local_quorum",uce="one",dce="two",pce="three",hce="local_one",mce="any",fce="serial",gce="local_serial",lft=oce,cft=sce,uft=lce,dft=cce,pft=uce,hft=dce,mft=pce,fft=hce,gft=mce,vft=fce,bft=gce,yft=as([oce,sce,lce,cce,uce,dce,pce,hce,mce,fce,gce]),vce="datasource",bce="http",yce="pubsub",kce="timer",xce="other",kft=vce,xft=bce,wft=yce,Sft=kce,Oft=xce,zft=as([vce,bce,yce,kce,xce]),wce="insert",Sce="edit",Oce="delete",Cft=wce,jft=Sce,Pft=Oce,Aft=as([wce,Sce,Oce]),zce="alibaba_cloud",Cce="aws",jce="azure",Pce="gcp",Tft=zce,_ft=Cce,Mft=jce,Eft=Pce,Rft=as([zce,Cce,jce,Pce]),Ace="ip_tcp",Tce="ip_udp",_ce="ip",Mce="unix",Ece="pipe",Rce="inproc",Nce="other",Nft=Ace,Ift=Tce,Lft=_ce,Bft=Mce,Dft=Ece,$ft=Rce,Kft=Nce,Hft=as([Ace,Tce,_ce,Mce,Ece,Rce,Nce]),Ice="wifi",Lce="wired",Bce="cell",Dce="unavailable",$ce="unknown",Vft=Ice,Fft=Lce,qft=Bce,Gft=Dce,Uft=$ce,Qft=as([Ice,Lce,Bce,Dce,$ce]),Kce="gprs",Hce="edge",Vce="umts",Fce="cdma",qce="evdo_0",Gce="evdo_a",Uce="cdma2000_1xrtt",Qce="hsdpa",Wce="hsupa",Zce="hspa",Jce="iden",Yce="evdo_b",Xce="lte",eue="ehrpd",tue="hspap",aue="gsm",rue="td_scdma",nue="iwlan",iue="nr",oue="nrnsa",sue="lte_ca",Wft=Kce,Zft=Hce,Jft=Vce,Yft=Fce,Xft=qce,egt=Gce,tgt=Uce,agt=Qce,rgt=Wce,ngt=Zce,igt=Jce,ogt=Yce,sgt=Xce,lgt=eue,cgt=tue,ugt=aue,dgt=rue,pgt=nue,hgt=iue,mgt=oue,fgt=sue,ggt=as([Kce,Hce,Vce,Fce,qce,Gce,Uce,Qce,Wce,Zce,Jce,Yce,Xce,eue,tue,aue,rue,nue,iue,oue,sue]),lue="1.0",cue="1.1",uue="2.0",due="SPDY",pue="QUIC",vgt=lue,bgt=cue,ygt=uue,kgt=due,xgt=pue,wgt={HTTP_1_0:lue,HTTP_1_1:cue,HTTP_2_0:uue,SPDY:due,QUIC:pue},hue="queue",mue="topic",Sgt=hue,Ogt=mue,zgt=as([hue,mue]),fue="receive",gue="process",Cgt=fue,jgt=gue,Pgt=as([fue,gue]),vue=0,bue=1,yue=2,kue=3,xue=4,wue=5,Sue=6,Oue=7,zue=8,Cue=9,jue=10,Pue=11,Aue=12,Tue=13,_ue=14,Mue=15,Eue=16,Agt=vue,Tgt=bue,_gt=yue,Mgt=kue,Egt=xue,Rgt=wue,Ngt=Sue,Igt=Oue,Lgt=zue,Bgt=Cue,Dgt=jue,$gt=Pue,Kgt=Aue,Hgt=Tue,Vgt=_ue,Fgt=Mue,qgt=Eue,Ggt={OK:vue,CANCELLED:bue,UNKNOWN:yue,INVALID_ARGUMENT:kue,DEADLINE_EXCEEDED:xue,NOT_FOUND:wue,ALREADY_EXISTS:Sue,PERMISSION_DENIED:Oue,RESOURCE_EXHAUSTED:zue,FAILED_PRECONDITION:Cue,ABORTED:jue,OUT_OF_RANGE:Pue,UNIMPLEMENTED:Aue,INTERNAL:Tue,UNAVAILABLE:_ue,DATA_LOSS:Mue,UNAUTHENTICATED:Eue},Rue="SENT",Nue="RECEIVED",Ugt=Rue,Qgt=Nue,Wgt=as([Rue,Nue]),Iue="cloud.provider",Lue="cloud.account.id",Bue="cloud.region",Due="cloud.availability_zone",$ue="cloud.platform",Kue="aws.ecs.container.arn",Hue="aws.ecs.cluster.arn",Vue="aws.ecs.launchtype",Fue="aws.ecs.task.arn",que="aws.ecs.task.family",Gue="aws.ecs.task.revision",Uue="aws.eks.cluster.arn",Que="aws.log.group.names",Wue="aws.log.group.arns",Zue="aws.log.stream.names",Jue="aws.log.stream.arns",Yue="container.name",Xue="container.id",ede="container.runtime",tde="container.image.name",ade="container.image.tag",rde="deployment.environment",nde="device.id",ide="device.model.identifier",ode="device.model.name",sde="faas.name",lde="faas.id",cde="faas.version",ude="faas.instance",dde="faas.max_memory",pde="host.id",hde="host.name",mde="host.type",fde="host.arch",gde="host.image.name",vde="host.image.id",bde="host.image.version",yde="k8s.cluster.name",kde="k8s.node.name",xde="k8s.node.uid",wde="k8s.namespace.name",Sde="k8s.pod.uid",Ode="k8s.pod.name",zde="k8s.container.name",Cde="k8s.replicaset.uid",jde="k8s.replicaset.name",Pde="k8s.deployment.uid",Ade="k8s.deployment.name",Tde="k8s.statefulset.uid",_de="k8s.statefulset.name",Mde="k8s.daemonset.uid",Ede="k8s.daemonset.name",Rde="k8s.job.uid",Nde="k8s.job.name",Ide="k8s.cronjob.uid",Lde="k8s.cronjob.name",Bde="os.type",Dde="os.description",$de="os.name",Kde="os.version",Hde="process.pid",Vde="process.executable.name",Fde="process.executable.path",qde="process.command",Gde="process.command_line",Ude="process.command_args",Qde="process.owner",Wde="process.runtime.name",Zde="process.runtime.version",Jde="process.runtime.description",Yde="service.name",Xde="service.namespace",epe="service.instance.id",tpe="service.version",ape="telemetry.sdk.name",rpe="telemetry.sdk.language",npe="telemetry.sdk.version",ipe="telemetry.auto.version",ope="webengine.name",spe="webengine.version",lpe="webengine.description",Zgt=Iue,Jgt=Lue,Ygt=Bue,Xgt=Due,evt=$ue,tvt=Kue,avt=Hue,rvt=Vue,nvt=Fue,ivt=que,ovt=Gue,svt=Uue,lvt=Que,cvt=Wue,uvt=Zue,dvt=Jue,pvt=Yue,hvt=Xue,mvt=ede,fvt=tde,gvt=ade,vvt=rde,bvt=nde,yvt=ide,kvt=ode,xvt=sde,wvt=lde,Svt=cde,Ovt=ude,zvt=dde,Cvt=pde,jvt=hde,Pvt=mde,Avt=fde,Tvt=gde,_vt=vde,Mvt=bde,Evt=yde,Rvt=kde,Nvt=xde,Ivt=wde,Lvt=Sde,Bvt=Ode,Dvt=zde,$vt=Cde,Kvt=jde,Hvt=Pde,Vvt=Ade,Fvt=Tde,qvt=_de,Gvt=Mde,Uvt=Ede,Qvt=Rde,Wvt=Nde,Zvt=Ide,Jvt=Lde,Yvt=Bde,Xvt=Dde,ebt=$de,tbt=Kde,abt=Hde,rbt=Vde,nbt=Fde,ibt=qde,obt=Gde,sbt=Ude,lbt=Qde,cbt=Wde,ubt=Zde,dbt=Jde,pbt=Yde,hbt=Xde,mbt=epe,fbt=tpe,gbt=ape,vbt=rpe,bbt=npe,ybt=ipe,kbt=ope,xbt=spe,wbt=lpe,Sbt=as([Iue,Lue,Bue,Due,$ue,Kue,Hue,Vue,Fue,que,Gue,Uue,Que,Wue,Zue,Jue,Yue,Xue,ede,tde,ade,rde,nde,ide,ode,sde,lde,cde,ude,dde,pde,hde,mde,fde,gde,vde,bde,yde,kde,xde,wde,Sde,Ode,zde,Cde,jde,Pde,Ade,Tde,_de,Mde,Ede,Rde,Nde,Ide,Lde,Bde,Dde,$de,Kde,Hde,Vde,Fde,qde,Gde,Ude,Qde,Wde,Zde,Jde,Yde,Xde,epe,tpe,ape,rpe,npe,ipe,ope,spe,lpe]),cpe="alibaba_cloud",upe="aws",dpe="azure",ppe="gcp",Obt=cpe,zbt=upe,Cbt=dpe,jbt=ppe,Pbt=as([cpe,upe,dpe,ppe]),hpe="alibaba_cloud_ecs",mpe="alibaba_cloud_fc",fpe="aws_ec2",gpe="aws_ecs",vpe="aws_eks",bpe="aws_lambda",ype="aws_elastic_beanstalk",kpe="azure_vm",xpe="azure_container_instances",wpe="azure_aks",Spe="azure_functions",Ope="azure_app_service",zpe="gcp_compute_engine",Cpe="gcp_cloud_run",jpe="gcp_kubernetes_engine",Ppe="gcp_cloud_functions",Ape="gcp_app_engine",Abt=hpe,Tbt=mpe,_bt=fpe,Mbt=gpe,Ebt=vpe,Rbt=bpe,Nbt=ype,Ibt=kpe,Lbt=xpe,Bbt=wpe,Dbt=Spe,$bt=Ope,Kbt=zpe,Hbt=Cpe,Vbt=jpe,Fbt=Ppe,qbt=Ape,Gbt=as([hpe,mpe,fpe,gpe,vpe,bpe,ype,kpe,xpe,wpe,Spe,Ope,zpe,Cpe,jpe,Ppe,Ape]),Tpe="ec2",_pe="fargate",Ubt=Tpe,Qbt=_pe,Wbt=as([Tpe,_pe]),Mpe="amd64",Epe="arm32",Rpe="arm64",Npe="ia64",Ipe="ppc32",Lpe="ppc64",Bpe="x86",Zbt=Mpe,Jbt=Epe,Ybt=Rpe,Xbt=Npe,eyt=Ipe,tyt=Lpe,ayt=Bpe,ryt=as([Mpe,Epe,Rpe,Npe,Ipe,Lpe,Bpe]),Dpe="windows",$pe="linux",Kpe="darwin",Hpe="freebsd",Vpe="netbsd",Fpe="openbsd",qpe="dragonflybsd",Gpe="hpux",Upe="aix",Qpe="solaris",Wpe="z_os",nyt=Dpe,iyt=$pe,oyt=Kpe,syt=Hpe,lyt=Vpe,cyt=Fpe,uyt=qpe,dyt=Gpe,pyt=Upe,hyt=Qpe,myt=Wpe,fyt=as([Dpe,$pe,Kpe,Hpe,Vpe,Fpe,qpe,Gpe,Upe,Qpe,Wpe]),Zpe="cpp",Jpe="dotnet",Ype="erlang",Xpe="go",ehe="java",the="nodejs",ahe="php",rhe="python",nhe="ruby",ihe="webjs",gyt=Zpe,vyt=Jpe,byt=Ype,yyt=Xpe,kyt=ehe,xyt=the,wyt=ahe,Syt=rhe,Oyt=nhe,zyt=ihe,Cyt=as([Zpe,Jpe,Ype,Xpe,ehe,the,ahe,rhe,nhe,ihe]),jyt="aspnetcore.diagnostics.exception.result",Pyt="aborted",Ayt="handled",Tyt="skipped",_yt="unhandled",Myt="aspnetcore.diagnostics.handler.type",Eyt="aspnetcore.rate_limiting.policy",Ryt="aspnetcore.rate_limiting.result",Nyt="acquired",Iyt="endpoint_limiter",Lyt="global_limiter",Byt="request_canceled",Dyt="aspnetcore.request.is_unhandled",$yt="aspnetcore.routing.is_fallback",Kyt="aspnetcore.routing.match_status",Hyt="failure",Vyt="success",Fyt="aspnetcore.user.is_authenticated",qyt="client.address",Gyt="client.port",Uyt="code.column.number",Qyt="code.file.path",Wyt="code.function.name",Zyt="code.line.number",Jyt="code.stacktrace",Yyt="db.collection.name",Xyt="db.namespace",ekt="db.operation.batch.size",tkt="db.operation.name",akt="db.query.summary",rkt="db.query.text",nkt="db.response.status_code",ikt="db.stored_procedure.name",okt="db.system.name",skt="mariadb",lkt="microsoft.sql_server",ckt="mysql",ukt="postgresql",dkt="dotnet.gc.heap.generation",pkt="gen0",hkt="gen1",mkt="gen2",fkt="loh",gkt="poh",vkt="error.type",bkt="_OTHER",ykt="exception.escaped",iT="exception.message",ohe="exception.stacktrace",oT="exception.type",kkt=e=>`http.request.header.${e}`,xkt="http.request.method",wkt="_OTHER",Skt="CONNECT",Okt="DELETE",zkt="GET",Ckt="HEAD",jkt="OPTIONS",Pkt="PATCH",Akt="POST",Tkt="PUT",_kt="TRACE",Mkt="http.request.method_original",Ekt="http.request.resend_count",Rkt=e=>`http.response.header.${e}`,Nkt="http.response.status_code",Ikt="http.route",Lkt="jvm.gc.action",Bkt="jvm.gc.name",Dkt="jvm.memory.pool.name",$kt="jvm.memory.type",Kkt="heap",Hkt="non_heap",Vkt="jvm.thread.daemon",Fkt="jvm.thread.state",qkt="blocked",Gkt="new",Ukt="runnable",Qkt="terminated",Wkt="timed_waiting",Zkt="waiting",Jkt="network.local.address",Ykt="network.local.port",Xkt="network.peer.address",e1t="network.peer.port",t1t="network.protocol.name",a1t="network.protocol.version",r1t="network.transport",n1t="pipe",i1t="quic",o1t="tcp",s1t="udp",l1t="unix",c1t="network.type",u1t="ipv4",d1t="ipv6",p1t="otel.scope.name",h1t="otel.scope.version",m1t="otel.status_code",f1t="ERROR",g1t="OK",v1t="otel.status_description",b1t="server.address",y1t="server.port",k1t="service.instance.id",bL="service.name",x1t="service.namespace",she="service.version",w1t="signalr.connection.status",S1t="app_shutdown",O1t="normal_closure",z1t="timeout",C1t="signalr.transport",j1t="long_polling",P1t="server_sent_events",A1t="web_sockets",sT="telemetry.sdk.language",T1t="cpp",_1t="dotnet",M1t="erlang",E1t="go",R1t="java",N1t="nodejs",I1t="php",L1t="python",B1t="ruby",D1t="rust",$1t="swift",lhe="webjs",lT="telemetry.sdk.name",cT="telemetry.sdk.version",K1t="url.fragment",H1t="url.full",V1t="url.path",F1t="url.query",q1t="url.scheme",G1t="user_agent.original",U1t="aspnetcore.diagnostics.exceptions",Q1t="aspnetcore.rate_limiting.active_request_leases",W1t="aspnetcore.rate_limiting.queued_requests",Z1t="aspnetcore.rate_limiting.request.time_in_queue",J1t="aspnetcore.rate_limiting.request_lease.duration",Y1t="aspnetcore.rate_limiting.requests",X1t="aspnetcore.routing.match_attempts",e0t="db.client.operation.duration",t0t="dotnet.assembly.count",a0t="dotnet.exceptions",r0t="dotnet.gc.collections",n0t="dotnet.gc.heap.total_allocated",i0t="dotnet.gc.last_collection.heap.fragmentation.size",o0t="dotnet.gc.last_collection.heap.size",s0t="dotnet.gc.last_collection.memory.committed_size",l0t="dotnet.gc.pause.time",c0t="dotnet.jit.compilation.time",u0t="dotnet.jit.compiled_il.size",d0t="dotnet.jit.compiled_methods",p0t="dotnet.monitor.lock_contentions",h0t="dotnet.process.cpu.count",m0t="dotnet.process.cpu.time",f0t="dotnet.process.memory.working_set",g0t="dotnet.thread_pool.queue.length",v0t="dotnet.thread_pool.thread.count",b0t="dotnet.thread_pool.work_item.count",y0t="dotnet.timer.count",k0t="http.client.request.duration",x0t="http.server.request.duration",w0t="jvm.class.count",S0t="jvm.class.loaded",O0t="jvm.class.unloaded",z0t="jvm.cpu.count",C0t="jvm.cpu.recent_utilization",j0t="jvm.cpu.time",P0t="jvm.gc.duration",A0t="jvm.memory.committed",T0t="jvm.memory.limit",_0t="jvm.memory.used",M0t="jvm.memory.used_after_last_gc",E0t="jvm.thread.count",R0t="kestrel.active_connections",N0t="kestrel.active_tls_handshakes",I0t="kestrel.connection.duration",L0t="kestrel.queued_connections",B0t="kestrel.queued_requests",D0t="kestrel.rejected_connections",$0t="kestrel.tls_handshake.duration",K0t="kestrel.upgraded_connections",H0t="signalr.server.active_connections",V0t="signalr.server.connection.duration",F0t="exception",q0t=Object.freeze(Object.defineProperty({__proto__:null,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_ABORTED:Pyt,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_HANDLED:Ayt,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_SKIPPED:Tyt,ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT_VALUE_UNHANDLED:_yt,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ACQUIRED:Nyt,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_ENDPOINT_LIMITER:Iyt,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_GLOBAL_LIMITER:Lyt,ASPNETCORE_RATE_LIMITING_RESULT_VALUE_REQUEST_CANCELED:Byt,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_FAILURE:Hyt,ASPNETCORE_ROUTING_MATCH_STATUS_VALUE_SUCCESS:Vyt,ATTR_ASPNETCORE_DIAGNOSTICS_EXCEPTION_RESULT:jyt,ATTR_ASPNETCORE_DIAGNOSTICS_HANDLER_TYPE:Myt,ATTR_ASPNETCORE_RATE_LIMITING_POLICY:Eyt,ATTR_ASPNETCORE_RATE_LIMITING_RESULT:Ryt,ATTR_ASPNETCORE_REQUEST_IS_UNHANDLED:Dyt,ATTR_ASPNETCORE_ROUTING_IS_FALLBACK:$yt,ATTR_ASPNETCORE_ROUTING_MATCH_STATUS:Kyt,ATTR_ASPNETCORE_USER_IS_AUTHENTICATED:Fyt,ATTR_CLIENT_ADDRESS:qyt,ATTR_CLIENT_PORT:Gyt,ATTR_CODE_COLUMN_NUMBER:Uyt,ATTR_CODE_FILE_PATH:Qyt,ATTR_CODE_FUNCTION_NAME:Wyt,ATTR_CODE_LINE_NUMBER:Zyt,ATTR_CODE_STACKTRACE:Jyt,ATTR_DB_COLLECTION_NAME:Yyt,ATTR_DB_NAMESPACE:Xyt,ATTR_DB_OPERATION_BATCH_SIZE:ekt,ATTR_DB_OPERATION_NAME:tkt,ATTR_DB_QUERY_SUMMARY:akt,ATTR_DB_QUERY_TEXT:rkt,ATTR_DB_RESPONSE_STATUS_CODE:nkt,ATTR_DB_STORED_PROCEDURE_NAME:ikt,ATTR_DB_SYSTEM_NAME:okt,ATTR_DOTNET_GC_HEAP_GENERATION:dkt,ATTR_ERROR_TYPE:vkt,ATTR_EXCEPTION_ESCAPED:ykt,ATTR_EXCEPTION_MESSAGE:iT,ATTR_EXCEPTION_STACKTRACE:ohe,ATTR_EXCEPTION_TYPE:oT,ATTR_HTTP_REQUEST_HEADER:kkt,ATTR_HTTP_REQUEST_METHOD:xkt,ATTR_HTTP_REQUEST_METHOD_ORIGINAL:Mkt,ATTR_HTTP_REQUEST_RESEND_COUNT:Ekt,ATTR_HTTP_RESPONSE_HEADER:Rkt,ATTR_HTTP_RESPONSE_STATUS_CODE:Nkt,ATTR_HTTP_ROUTE:Ikt,ATTR_JVM_GC_ACTION:Lkt,ATTR_JVM_GC_NAME:Bkt,ATTR_JVM_MEMORY_POOL_NAME:Dkt,ATTR_JVM_MEMORY_TYPE:$kt,ATTR_JVM_THREAD_DAEMON:Vkt,ATTR_JVM_THREAD_STATE:Fkt,ATTR_NETWORK_LOCAL_ADDRESS:Jkt,ATTR_NETWORK_LOCAL_PORT:Ykt,ATTR_NETWORK_PEER_ADDRESS:Xkt,ATTR_NETWORK_PEER_PORT:e1t,ATTR_NETWORK_PROTOCOL_NAME:t1t,ATTR_NETWORK_PROTOCOL_VERSION:a1t,ATTR_NETWORK_TRANSPORT:r1t,ATTR_NETWORK_TYPE:c1t,ATTR_OTEL_SCOPE_NAME:p1t,ATTR_OTEL_SCOPE_VERSION:h1t,ATTR_OTEL_STATUS_CODE:m1t,ATTR_OTEL_STATUS_DESCRIPTION:v1t,ATTR_SERVER_ADDRESS:b1t,ATTR_SERVER_PORT:y1t,ATTR_SERVICE_INSTANCE_ID:k1t,ATTR_SERVICE_NAME:bL,ATTR_SERVICE_NAMESPACE:x1t,ATTR_SERVICE_VERSION:she,ATTR_SIGNALR_CONNECTION_STATUS:w1t,ATTR_SIGNALR_TRANSPORT:C1t,ATTR_TELEMETRY_SDK_LANGUAGE:sT,ATTR_TELEMETRY_SDK_NAME:lT,ATTR_TELEMETRY_SDK_VERSION:cT,ATTR_URL_FRAGMENT:K1t,ATTR_URL_FULL:H1t,ATTR_URL_PATH:V1t,ATTR_URL_QUERY:F1t,ATTR_URL_SCHEME:q1t,ATTR_USER_AGENT_ORIGINAL:G1t,AWSECSLAUNCHTYPEVALUES_EC2:Ubt,AWSECSLAUNCHTYPEVALUES_FARGATE:Qbt,AwsEcsLaunchtypeValues:Wbt,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_ECS:Abt,CLOUDPLATFORMVALUES_ALIBABA_CLOUD_FC:Tbt,CLOUDPLATFORMVALUES_AWS_EC2:_bt,CLOUDPLATFORMVALUES_AWS_ECS:Mbt,CLOUDPLATFORMVALUES_AWS_EKS:Ebt,CLOUDPLATFORMVALUES_AWS_ELASTIC_BEANSTALK:Nbt,CLOUDPLATFORMVALUES_AWS_LAMBDA:Rbt,CLOUDPLATFORMVALUES_AZURE_AKS:Bbt,CLOUDPLATFORMVALUES_AZURE_APP_SERVICE:$bt,CLOUDPLATFORMVALUES_AZURE_CONTAINER_INSTANCES:Lbt,CLOUDPLATFORMVALUES_AZURE_FUNCTIONS:Dbt,CLOUDPLATFORMVALUES_AZURE_VM:Ibt,CLOUDPLATFORMVALUES_GCP_APP_ENGINE:qbt,CLOUDPLATFORMVALUES_GCP_CLOUD_FUNCTIONS:Fbt,CLOUDPLATFORMVALUES_GCP_CLOUD_RUN:Hbt,CLOUDPLATFORMVALUES_GCP_COMPUTE_ENGINE:Kbt,CLOUDPLATFORMVALUES_GCP_KUBERNETES_ENGINE:Vbt,CLOUDPROVIDERVALUES_ALIBABA_CLOUD:Obt,CLOUDPROVIDERVALUES_AWS:zbt,CLOUDPROVIDERVALUES_AZURE:Cbt,CLOUDPROVIDERVALUES_GCP:jbt,CloudPlatformValues:Gbt,CloudProviderValues:Pbt,DBCASSANDRACONSISTENCYLEVELVALUES_ALL:lft,DBCASSANDRACONSISTENCYLEVELVALUES_ANY:gft,DBCASSANDRACONSISTENCYLEVELVALUES_EACH_QUORUM:cft,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_ONE:fft,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_QUORUM:dft,DBCASSANDRACONSISTENCYLEVELVALUES_LOCAL_SERIAL:bft,DBCASSANDRACONSISTENCYLEVELVALUES_ONE:pft,DBCASSANDRACONSISTENCYLEVELVALUES_QUORUM:uft,DBCASSANDRACONSISTENCYLEVELVALUES_SERIAL:vft,DBCASSANDRACONSISTENCYLEVELVALUES_THREE:mft,DBCASSANDRACONSISTENCYLEVELVALUES_TWO:hft,DBSYSTEMVALUES_ADABAS:_mt,DBSYSTEMVALUES_CACHE:Tmt,DBSYSTEMVALUES_CASSANDRA:Qmt,DBSYSTEMVALUES_CLOUDSCAPE:wmt,DBSYSTEMVALUES_COCKROACHDB:oft,DBSYSTEMVALUES_COLDFUSION:Umt,DBSYSTEMVALUES_COSMOSDB:eft,DBSYSTEMVALUES_COUCHBASE:Ymt,DBSYSTEMVALUES_COUCHDB:Xmt,DBSYSTEMVALUES_DB2:bmt,DBSYSTEMVALUES_DERBY:Emt,DBSYSTEMVALUES_DYNAMODB:tft,DBSYSTEMVALUES_EDB:Amt,DBSYSTEMVALUES_ELASTICSEARCH:nft,DBSYSTEMVALUES_FILEMAKER:Rmt,DBSYSTEMVALUES_FIREBIRD:Mmt,DBSYSTEMVALUES_FIRSTSQL:Pmt,DBSYSTEMVALUES_GEODE:rft,DBSYSTEMVALUES_H2:Gmt,DBSYSTEMVALUES_HANADB:Cmt,DBSYSTEMVALUES_HBASE:Wmt,DBSYSTEMVALUES_HIVE:xmt,DBSYSTEMVALUES_HSQLDB:Smt,DBSYSTEMVALUES_INFORMIX:Nmt,DBSYSTEMVALUES_INGRES:jmt,DBSYSTEMVALUES_INSTANTDB:Imt,DBSYSTEMVALUES_INTERBASE:Lmt,DBSYSTEMVALUES_MARIADB:Bmt,DBSYSTEMVALUES_MAXDB:zmt,DBSYSTEMVALUES_MEMCACHED:ift,DBSYSTEMVALUES_MONGODB:Zmt,DBSYSTEMVALUES_MSSQL:fmt,DBSYSTEMVALUES_MYSQL:gmt,DBSYSTEMVALUES_NEO4J:aft,DBSYSTEMVALUES_NETEZZA:Dmt,DBSYSTEMVALUES_ORACLE:vmt,DBSYSTEMVALUES_OTHER_SQL:mmt,DBSYSTEMVALUES_PERVASIVE:$mt,DBSYSTEMVALUES_POINTBASE:Kmt,DBSYSTEMVALUES_POSTGRESQL:ymt,DBSYSTEMVALUES_PROGRESS:Omt,DBSYSTEMVALUES_REDIS:Jmt,DBSYSTEMVALUES_REDSHIFT:kmt,DBSYSTEMVALUES_SQLITE:Hmt,DBSYSTEMVALUES_SYBASE:Vmt,DBSYSTEMVALUES_TERADATA:Fmt,DBSYSTEMVALUES_VERTICA:qmt,DB_SYSTEM_NAME_VALUE_MARIADB:skt,DB_SYSTEM_NAME_VALUE_MICROSOFT_SQL_SERVER:lkt,DB_SYSTEM_NAME_VALUE_MYSQL:ckt,DB_SYSTEM_NAME_VALUE_POSTGRESQL:ukt,DOTNET_GC_HEAP_GENERATION_VALUE_GEN0:pkt,DOTNET_GC_HEAP_GENERATION_VALUE_GEN1:hkt,DOTNET_GC_HEAP_GENERATION_VALUE_GEN2:mkt,DOTNET_GC_HEAP_GENERATION_VALUE_LOH:fkt,DOTNET_GC_HEAP_GENERATION_VALUE_POH:gkt,DbCassandraConsistencyLevelValues:yft,DbSystemValues:sft,ERROR_TYPE_VALUE_OTHER:bkt,EVENT_EXCEPTION:F0t,FAASDOCUMENTOPERATIONVALUES_DELETE:Pft,FAASDOCUMENTOPERATIONVALUES_EDIT:jft,FAASDOCUMENTOPERATIONVALUES_INSERT:Cft,FAASINVOKEDPROVIDERVALUES_ALIBABA_CLOUD:Tft,FAASINVOKEDPROVIDERVALUES_AWS:_ft,FAASINVOKEDPROVIDERVALUES_AZURE:Mft,FAASINVOKEDPROVIDERVALUES_GCP:Eft,FAASTRIGGERVALUES_DATASOURCE:kft,FAASTRIGGERVALUES_HTTP:xft,FAASTRIGGERVALUES_OTHER:Oft,FAASTRIGGERVALUES_PUBSUB:wft,FAASTRIGGERVALUES_TIMER:Sft,FaasDocumentOperationValues:Aft,FaasInvokedProviderValues:Rft,FaasTriggerValues:zft,HOSTARCHVALUES_AMD64:Zbt,HOSTARCHVALUES_ARM32:Jbt,HOSTARCHVALUES_ARM64:Ybt,HOSTARCHVALUES_IA64:Xbt,HOSTARCHVALUES_PPC32:eyt,HOSTARCHVALUES_PPC64:tyt,HOSTARCHVALUES_X86:ayt,HTTPFLAVORVALUES_HTTP_1_0:vgt,HTTPFLAVORVALUES_HTTP_1_1:bgt,HTTPFLAVORVALUES_HTTP_2_0:ygt,HTTPFLAVORVALUES_QUIC:xgt,HTTPFLAVORVALUES_SPDY:kgt,HTTP_REQUEST_METHOD_VALUE_CONNECT:Skt,HTTP_REQUEST_METHOD_VALUE_DELETE:Okt,HTTP_REQUEST_METHOD_VALUE_GET:zkt,HTTP_REQUEST_METHOD_VALUE_HEAD:Ckt,HTTP_REQUEST_METHOD_VALUE_OPTIONS:jkt,HTTP_REQUEST_METHOD_VALUE_OTHER:wkt,HTTP_REQUEST_METHOD_VALUE_PATCH:Pkt,HTTP_REQUEST_METHOD_VALUE_POST:Akt,HTTP_REQUEST_METHOD_VALUE_PUT:Tkt,HTTP_REQUEST_METHOD_VALUE_TRACE:_kt,HostArchValues:ryt,HttpFlavorValues:wgt,JVM_MEMORY_TYPE_VALUE_HEAP:Kkt,JVM_MEMORY_TYPE_VALUE_NON_HEAP:Hkt,JVM_THREAD_STATE_VALUE_BLOCKED:qkt,JVM_THREAD_STATE_VALUE_NEW:Gkt,JVM_THREAD_STATE_VALUE_RUNNABLE:Ukt,JVM_THREAD_STATE_VALUE_TERMINATED:Qkt,JVM_THREAD_STATE_VALUE_TIMED_WAITING:Wkt,JVM_THREAD_STATE_VALUE_WAITING:Zkt,MESSAGETYPEVALUES_RECEIVED:Qgt,MESSAGETYPEVALUES_SENT:Ugt,MESSAGINGDESTINATIONKINDVALUES_QUEUE:Sgt,MESSAGINGDESTINATIONKINDVALUES_TOPIC:Ogt,MESSAGINGOPERATIONVALUES_PROCESS:jgt,MESSAGINGOPERATIONVALUES_RECEIVE:Cgt,METRIC_ASPNETCORE_DIAGNOSTICS_EXCEPTIONS:U1t,METRIC_ASPNETCORE_RATE_LIMITING_ACTIVE_REQUEST_LEASES:Q1t,METRIC_ASPNETCORE_RATE_LIMITING_QUEUED_REQUESTS:W1t,METRIC_ASPNETCORE_RATE_LIMITING_REQUESTS:Y1t,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_LEASE_DURATION:J1t,METRIC_ASPNETCORE_RATE_LIMITING_REQUEST_TIME_IN_QUEUE:Z1t,METRIC_ASPNETCORE_ROUTING_MATCH_ATTEMPTS:X1t,METRIC_DB_CLIENT_OPERATION_DURATION:e0t,METRIC_DOTNET_ASSEMBLY_COUNT:t0t,METRIC_DOTNET_EXCEPTIONS:a0t,METRIC_DOTNET_GC_COLLECTIONS:r0t,METRIC_DOTNET_GC_HEAP_TOTAL_ALLOCATED:n0t,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_FRAGMENTATION_SIZE:i0t,METRIC_DOTNET_GC_LAST_COLLECTION_HEAP_SIZE:o0t,METRIC_DOTNET_GC_LAST_COLLECTION_MEMORY_COMMITTED_SIZE:s0t,METRIC_DOTNET_GC_PAUSE_TIME:l0t,METRIC_DOTNET_JIT_COMPILATION_TIME:c0t,METRIC_DOTNET_JIT_COMPILED_IL_SIZE:u0t,METRIC_DOTNET_JIT_COMPILED_METHODS:d0t,METRIC_DOTNET_MONITOR_LOCK_CONTENTIONS:p0t,METRIC_DOTNET_PROCESS_CPU_COUNT:h0t,METRIC_DOTNET_PROCESS_CPU_TIME:m0t,METRIC_DOTNET_PROCESS_MEMORY_WORKING_SET:f0t,METRIC_DOTNET_THREAD_POOL_QUEUE_LENGTH:g0t,METRIC_DOTNET_THREAD_POOL_THREAD_COUNT:v0t,METRIC_DOTNET_THREAD_POOL_WORK_ITEM_COUNT:b0t,METRIC_DOTNET_TIMER_COUNT:y0t,METRIC_HTTP_CLIENT_REQUEST_DURATION:k0t,METRIC_HTTP_SERVER_REQUEST_DURATION:x0t,METRIC_JVM_CLASS_COUNT:w0t,METRIC_JVM_CLASS_LOADED:S0t,METRIC_JVM_CLASS_UNLOADED:O0t,METRIC_JVM_CPU_COUNT:z0t,METRIC_JVM_CPU_RECENT_UTILIZATION:C0t,METRIC_JVM_CPU_TIME:j0t,METRIC_JVM_GC_DURATION:P0t,METRIC_JVM_MEMORY_COMMITTED:A0t,METRIC_JVM_MEMORY_LIMIT:T0t,METRIC_JVM_MEMORY_USED:_0t,METRIC_JVM_MEMORY_USED_AFTER_LAST_GC:M0t,METRIC_JVM_THREAD_COUNT:E0t,METRIC_KESTREL_ACTIVE_CONNECTIONS:R0t,METRIC_KESTREL_ACTIVE_TLS_HANDSHAKES:N0t,METRIC_KESTREL_CONNECTION_DURATION:I0t,METRIC_KESTREL_QUEUED_CONNECTIONS:L0t,METRIC_KESTREL_QUEUED_REQUESTS:B0t,METRIC_KESTREL_REJECTED_CONNECTIONS:D0t,METRIC_KESTREL_TLS_HANDSHAKE_DURATION:$0t,METRIC_KESTREL_UPGRADED_CONNECTIONS:K0t,METRIC_SIGNALR_SERVER_ACTIVE_CONNECTIONS:H0t,METRIC_SIGNALR_SERVER_CONNECTION_DURATION:V0t,MessageTypeValues:Wgt,MessagingDestinationKindValues:zgt,MessagingOperationValues:Pgt,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA:Yft,NETHOSTCONNECTIONSUBTYPEVALUES_CDMA2000_1XRTT:tgt,NETHOSTCONNECTIONSUBTYPEVALUES_EDGE:Zft,NETHOSTCONNECTIONSUBTYPEVALUES_EHRPD:lgt,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_0:Xft,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_A:egt,NETHOSTCONNECTIONSUBTYPEVALUES_EVDO_B:ogt,NETHOSTCONNECTIONSUBTYPEVALUES_GPRS:Wft,NETHOSTCONNECTIONSUBTYPEVALUES_GSM:ugt,NETHOSTCONNECTIONSUBTYPEVALUES_HSDPA:agt,NETHOSTCONNECTIONSUBTYPEVALUES_HSPA:ngt,NETHOSTCONNECTIONSUBTYPEVALUES_HSPAP:cgt,NETHOSTCONNECTIONSUBTYPEVALUES_HSUPA:rgt,NETHOSTCONNECTIONSUBTYPEVALUES_IDEN:igt,NETHOSTCONNECTIONSUBTYPEVALUES_IWLAN:pgt,NETHOSTCONNECTIONSUBTYPEVALUES_LTE:sgt,NETHOSTCONNECTIONSUBTYPEVALUES_LTE_CA:fgt,NETHOSTCONNECTIONSUBTYPEVALUES_NR:hgt,NETHOSTCONNECTIONSUBTYPEVALUES_NRNSA:mgt,NETHOSTCONNECTIONSUBTYPEVALUES_TD_SCDMA:dgt,NETHOSTCONNECTIONSUBTYPEVALUES_UMTS:Jft,NETHOSTCONNECTIONTYPEVALUES_CELL:qft,NETHOSTCONNECTIONTYPEVALUES_UNAVAILABLE:Gft,NETHOSTCONNECTIONTYPEVALUES_UNKNOWN:Uft,NETHOSTCONNECTIONTYPEVALUES_WIFI:Vft,NETHOSTCONNECTIONTYPEVALUES_WIRED:Fft,NETTRANSPORTVALUES_INPROC:$ft,NETTRANSPORTVALUES_IP:Lft,NETTRANSPORTVALUES_IP_TCP:Nft,NETTRANSPORTVALUES_IP_UDP:Ift,NETTRANSPORTVALUES_OTHER:Kft,NETTRANSPORTVALUES_PIPE:Dft,NETTRANSPORTVALUES_UNIX:Bft,NETWORK_TRANSPORT_VALUE_PIPE:n1t,NETWORK_TRANSPORT_VALUE_QUIC:i1t,NETWORK_TRANSPORT_VALUE_TCP:o1t,NETWORK_TRANSPORT_VALUE_UDP:s1t,NETWORK_TRANSPORT_VALUE_UNIX:l1t,NETWORK_TYPE_VALUE_IPV4:u1t,NETWORK_TYPE_VALUE_IPV6:d1t,NetHostConnectionSubtypeValues:ggt,NetHostConnectionTypeValues:Qft,NetTransportValues:Hft,OSTYPEVALUES_AIX:pyt,OSTYPEVALUES_DARWIN:oyt,OSTYPEVALUES_DRAGONFLYBSD:uyt,OSTYPEVALUES_FREEBSD:syt,OSTYPEVALUES_HPUX:dyt,OSTYPEVALUES_LINUX:iyt,OSTYPEVALUES_NETBSD:lyt,OSTYPEVALUES_OPENBSD:cyt,OSTYPEVALUES_SOLARIS:hyt,OSTYPEVALUES_WINDOWS:nyt,OSTYPEVALUES_Z_OS:myt,OTEL_STATUS_CODE_VALUE_ERROR:f1t,OTEL_STATUS_CODE_VALUE_OK:g1t,OsTypeValues:fyt,RPCGRPCSTATUSCODEVALUES_ABORTED:Dgt,RPCGRPCSTATUSCODEVALUES_ALREADY_EXISTS:Ngt,RPCGRPCSTATUSCODEVALUES_CANCELLED:Tgt,RPCGRPCSTATUSCODEVALUES_DATA_LOSS:Fgt,RPCGRPCSTATUSCODEVALUES_DEADLINE_EXCEEDED:Egt,RPCGRPCSTATUSCODEVALUES_FAILED_PRECONDITION:Bgt,RPCGRPCSTATUSCODEVALUES_INTERNAL:Hgt,RPCGRPCSTATUSCODEVALUES_INVALID_ARGUMENT:Mgt,RPCGRPCSTATUSCODEVALUES_NOT_FOUND:Rgt,RPCGRPCSTATUSCODEVALUES_OK:Agt,RPCGRPCSTATUSCODEVALUES_OUT_OF_RANGE:$gt,RPCGRPCSTATUSCODEVALUES_PERMISSION_DENIED:Igt,RPCGRPCSTATUSCODEVALUES_RESOURCE_EXHAUSTED:Lgt,RPCGRPCSTATUSCODEVALUES_UNAUTHENTICATED:qgt,RPCGRPCSTATUSCODEVALUES_UNAVAILABLE:Vgt,RPCGRPCSTATUSCODEVALUES_UNIMPLEMENTED:Kgt,RPCGRPCSTATUSCODEVALUES_UNKNOWN:_gt,RpcGrpcStatusCodeValues:Ggt,SEMATTRS_AWS_DYNAMODB_ATTRIBUTES_TO_GET:wht,SEMATTRS_AWS_DYNAMODB_ATTRIBUTE_DEFINITIONS:Rht,SEMATTRS_AWS_DYNAMODB_CONSISTENT_READ:yht,SEMATTRS_AWS_DYNAMODB_CONSUMED_CAPACITY:fht,SEMATTRS_AWS_DYNAMODB_COUNT:Mht,SEMATTRS_AWS_DYNAMODB_EXCLUSIVE_START_TABLE:jht,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEXES:zht,SEMATTRS_AWS_DYNAMODB_GLOBAL_SECONDARY_INDEX_UPDATES:Nht,SEMATTRS_AWS_DYNAMODB_INDEX_NAME:Sht,SEMATTRS_AWS_DYNAMODB_ITEM_COLLECTION_METRICS:ght,SEMATTRS_AWS_DYNAMODB_LIMIT:xht,SEMATTRS_AWS_DYNAMODB_LOCAL_SECONDARY_INDEXES:Cht,SEMATTRS_AWS_DYNAMODB_PROJECTION:kht,SEMATTRS_AWS_DYNAMODB_PROVISIONED_READ_CAPACITY:vht,SEMATTRS_AWS_DYNAMODB_PROVISIONED_WRITE_CAPACITY:bht,SEMATTRS_AWS_DYNAMODB_SCANNED_COUNT:Eht,SEMATTRS_AWS_DYNAMODB_SCAN_FORWARD:Aht,SEMATTRS_AWS_DYNAMODB_SEGMENT:Tht,SEMATTRS_AWS_DYNAMODB_SELECT:Oht,SEMATTRS_AWS_DYNAMODB_TABLE_COUNT:Pht,SEMATTRS_AWS_DYNAMODB_TABLE_NAMES:mht,SEMATTRS_AWS_DYNAMODB_TOTAL_SEGMENTS:_ht,SEMATTRS_AWS_LAMBDA_INVOKED_ARN:Udt,SEMATTRS_CODE_FILEPATH:Jpt,SEMATTRS_CODE_FUNCTION:Wpt,SEMATTRS_CODE_LINENO:Ypt,SEMATTRS_CODE_NAMESPACE:Zpt,SEMATTRS_DB_CASSANDRA_CONSISTENCY_LEVEL:npt,SEMATTRS_DB_CASSANDRA_COORDINATOR_DC:cpt,SEMATTRS_DB_CASSANDRA_COORDINATOR_ID:lpt,SEMATTRS_DB_CASSANDRA_IDEMPOTENCE:opt,SEMATTRS_DB_CASSANDRA_KEYSPACE:apt,SEMATTRS_DB_CASSANDRA_PAGE_SIZE:rpt,SEMATTRS_DB_CASSANDRA_SPECULATIVE_EXECUTION_COUNT:spt,SEMATTRS_DB_CASSANDRA_TABLE:ipt,SEMATTRS_DB_CONNECTION_STRING:Wdt,SEMATTRS_DB_HBASE_NAMESPACE:upt,SEMATTRS_DB_JDBC_DRIVER_CLASSNAME:Jdt,SEMATTRS_DB_MONGODB_COLLECTION:ppt,SEMATTRS_DB_MSSQL_INSTANCE_NAME:tpt,SEMATTRS_DB_NAME:Ydt,SEMATTRS_DB_OPERATION:ept,SEMATTRS_DB_REDIS_DATABASE_INDEX:dpt,SEMATTRS_DB_SQL_TABLE:hpt,SEMATTRS_DB_STATEMENT:Xdt,SEMATTRS_DB_SYSTEM:Qdt,SEMATTRS_DB_USER:Zdt,SEMATTRS_ENDUSER_ID:Fpt,SEMATTRS_ENDUSER_ROLE:qpt,SEMATTRS_ENDUSER_SCOPE:Gpt,SEMATTRS_EXCEPTION_ESCAPED:vpt,SEMATTRS_EXCEPTION_MESSAGE:fpt,SEMATTRS_EXCEPTION_STACKTRACE:gpt,SEMATTRS_EXCEPTION_TYPE:mpt,SEMATTRS_FAAS_COLDSTART:Cpt,SEMATTRS_FAAS_CRON:zpt,SEMATTRS_FAAS_DOCUMENT_COLLECTION:kpt,SEMATTRS_FAAS_DOCUMENT_NAME:Spt,SEMATTRS_FAAS_DOCUMENT_OPERATION:xpt,SEMATTRS_FAAS_DOCUMENT_TIME:wpt,SEMATTRS_FAAS_EXECUTION:ypt,SEMATTRS_FAAS_INVOKED_NAME:jpt,SEMATTRS_FAAS_INVOKED_PROVIDER:Ppt,SEMATTRS_FAAS_INVOKED_REGION:Apt,SEMATTRS_FAAS_TIME:Opt,SEMATTRS_FAAS_TRIGGER:bpt,SEMATTRS_HTTP_CLIENT_IP:hht,SEMATTRS_HTTP_FLAVOR:iht,SEMATTRS_HTTP_HOST:aht,SEMATTRS_HTTP_METHOD:Xpt,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH:sht,SEMATTRS_HTTP_REQUEST_CONTENT_LENGTH_UNCOMPRESSED:lht,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH:cht,SEMATTRS_HTTP_RESPONSE_CONTENT_LENGTH_UNCOMPRESSED:uht,SEMATTRS_HTTP_ROUTE:pht,SEMATTRS_HTTP_SCHEME:rht,SEMATTRS_HTTP_SERVER_NAME:dht,SEMATTRS_HTTP_STATUS_CODE:nht,SEMATTRS_HTTP_TARGET:tht,SEMATTRS_HTTP_URL:eht,SEMATTRS_HTTP_USER_AGENT:oht,SEMATTRS_MESSAGE_COMPRESSED_SIZE:dmt,SEMATTRS_MESSAGE_ID:umt,SEMATTRS_MESSAGE_TYPE:cmt,SEMATTRS_MESSAGE_UNCOMPRESSED_SIZE:pmt,SEMATTRS_MESSAGING_CONSUMER_ID:Qht,SEMATTRS_MESSAGING_CONVERSATION_ID:Fht,SEMATTRS_MESSAGING_DESTINATION:Lht,SEMATTRS_MESSAGING_DESTINATION_KIND:Bht,SEMATTRS_MESSAGING_KAFKA_CLIENT_ID:Yht,SEMATTRS_MESSAGING_KAFKA_CONSUMER_GROUP:Jht,SEMATTRS_MESSAGING_KAFKA_MESSAGE_KEY:Zht,SEMATTRS_MESSAGING_KAFKA_PARTITION:Xht,SEMATTRS_MESSAGING_KAFKA_TOMBSTONE:emt,SEMATTRS_MESSAGING_MESSAGE_ID:Vht,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_COMPRESSED_SIZE_BYTES:Ght,SEMATTRS_MESSAGING_MESSAGE_PAYLOAD_SIZE_BYTES:qht,SEMATTRS_MESSAGING_OPERATION:Uht,SEMATTRS_MESSAGING_PROTOCOL:$ht,SEMATTRS_MESSAGING_PROTOCOL_VERSION:Kht,SEMATTRS_MESSAGING_RABBITMQ_ROUTING_KEY:Wht,SEMATTRS_MESSAGING_SYSTEM:Iht,SEMATTRS_MESSAGING_TEMP_DESTINATION:Dht,SEMATTRS_MESSAGING_URL:Hht,SEMATTRS_NET_HOST_CARRIER_ICC:Hpt,SEMATTRS_NET_HOST_CARRIER_MCC:$pt,SEMATTRS_NET_HOST_CARRIER_MNC:Kpt,SEMATTRS_NET_HOST_CARRIER_NAME:Dpt,SEMATTRS_NET_HOST_CONNECTION_SUBTYPE:Bpt,SEMATTRS_NET_HOST_CONNECTION_TYPE:Lpt,SEMATTRS_NET_HOST_IP:Rpt,SEMATTRS_NET_HOST_NAME:Ipt,SEMATTRS_NET_HOST_PORT:Npt,SEMATTRS_NET_PEER_IP:_pt,SEMATTRS_NET_PEER_NAME:Ept,SEMATTRS_NET_PEER_PORT:Mpt,SEMATTRS_NET_TRANSPORT:Tpt,SEMATTRS_PEER_SERVICE:Vpt,SEMATTRS_RPC_GRPC_STATUS_CODE:nmt,SEMATTRS_RPC_JSONRPC_ERROR_CODE:smt,SEMATTRS_RPC_JSONRPC_ERROR_MESSAGE:lmt,SEMATTRS_RPC_JSONRPC_REQUEST_ID:omt,SEMATTRS_RPC_JSONRPC_VERSION:imt,SEMATTRS_RPC_METHOD:rmt,SEMATTRS_RPC_SERVICE:amt,SEMATTRS_RPC_SYSTEM:tmt,SEMATTRS_THREAD_ID:Upt,SEMATTRS_THREAD_NAME:Qpt,SEMRESATTRS_AWS_ECS_CLUSTER_ARN:avt,SEMRESATTRS_AWS_ECS_CONTAINER_ARN:tvt,SEMRESATTRS_AWS_ECS_LAUNCHTYPE:rvt,SEMRESATTRS_AWS_ECS_TASK_ARN:nvt,SEMRESATTRS_AWS_ECS_TASK_FAMILY:ivt,SEMRESATTRS_AWS_ECS_TASK_REVISION:ovt,SEMRESATTRS_AWS_EKS_CLUSTER_ARN:svt,SEMRESATTRS_AWS_LOG_GROUP_ARNS:cvt,SEMRESATTRS_AWS_LOG_GROUP_NAMES:lvt,SEMRESATTRS_AWS_LOG_STREAM_ARNS:dvt,SEMRESATTRS_AWS_LOG_STREAM_NAMES:uvt,SEMRESATTRS_CLOUD_ACCOUNT_ID:Jgt,SEMRESATTRS_CLOUD_AVAILABILITY_ZONE:Xgt,SEMRESATTRS_CLOUD_PLATFORM:evt,SEMRESATTRS_CLOUD_PROVIDER:Zgt,SEMRESATTRS_CLOUD_REGION:Ygt,SEMRESATTRS_CONTAINER_ID:hvt,SEMRESATTRS_CONTAINER_IMAGE_NAME:fvt,SEMRESATTRS_CONTAINER_IMAGE_TAG:gvt,SEMRESATTRS_CONTAINER_NAME:pvt,SEMRESATTRS_CONTAINER_RUNTIME:mvt,SEMRESATTRS_DEPLOYMENT_ENVIRONMENT:vvt,SEMRESATTRS_DEVICE_ID:bvt,SEMRESATTRS_DEVICE_MODEL_IDENTIFIER:yvt,SEMRESATTRS_DEVICE_MODEL_NAME:kvt,SEMRESATTRS_FAAS_ID:wvt,SEMRESATTRS_FAAS_INSTANCE:Ovt,SEMRESATTRS_FAAS_MAX_MEMORY:zvt,SEMRESATTRS_FAAS_NAME:xvt,SEMRESATTRS_FAAS_VERSION:Svt,SEMRESATTRS_HOST_ARCH:Avt,SEMRESATTRS_HOST_ID:Cvt,SEMRESATTRS_HOST_IMAGE_ID:_vt,SEMRESATTRS_HOST_IMAGE_NAME:Tvt,SEMRESATTRS_HOST_IMAGE_VERSION:Mvt,SEMRESATTRS_HOST_NAME:jvt,SEMRESATTRS_HOST_TYPE:Pvt,SEMRESATTRS_K8S_CLUSTER_NAME:Evt,SEMRESATTRS_K8S_CONTAINER_NAME:Dvt,SEMRESATTRS_K8S_CRONJOB_NAME:Jvt,SEMRESATTRS_K8S_CRONJOB_UID:Zvt,SEMRESATTRS_K8S_DAEMONSET_NAME:Uvt,SEMRESATTRS_K8S_DAEMONSET_UID:Gvt,SEMRESATTRS_K8S_DEPLOYMENT_NAME:Vvt,SEMRESATTRS_K8S_DEPLOYMENT_UID:Hvt,SEMRESATTRS_K8S_JOB_NAME:Wvt,SEMRESATTRS_K8S_JOB_UID:Qvt,SEMRESATTRS_K8S_NAMESPACE_NAME:Ivt,SEMRESATTRS_K8S_NODE_NAME:Rvt,SEMRESATTRS_K8S_NODE_UID:Nvt,SEMRESATTRS_K8S_POD_NAME:Bvt,SEMRESATTRS_K8S_POD_UID:Lvt,SEMRESATTRS_K8S_REPLICASET_NAME:Kvt,SEMRESATTRS_K8S_REPLICASET_UID:$vt,SEMRESATTRS_K8S_STATEFULSET_NAME:qvt,SEMRESATTRS_K8S_STATEFULSET_UID:Fvt,SEMRESATTRS_OS_DESCRIPTION:Xvt,SEMRESATTRS_OS_NAME:ebt,SEMRESATTRS_OS_TYPE:Yvt,SEMRESATTRS_OS_VERSION:tbt,SEMRESATTRS_PROCESS_COMMAND:ibt,SEMRESATTRS_PROCESS_COMMAND_ARGS:sbt,SEMRESATTRS_PROCESS_COMMAND_LINE:obt,SEMRESATTRS_PROCESS_EXECUTABLE_NAME:rbt,SEMRESATTRS_PROCESS_EXECUTABLE_PATH:nbt,SEMRESATTRS_PROCESS_OWNER:lbt,SEMRESATTRS_PROCESS_PID:abt,SEMRESATTRS_PROCESS_RUNTIME_DESCRIPTION:dbt,SEMRESATTRS_PROCESS_RUNTIME_NAME:cbt,SEMRESATTRS_PROCESS_RUNTIME_VERSION:ubt,SEMRESATTRS_SERVICE_INSTANCE_ID:mbt,SEMRESATTRS_SERVICE_NAME:pbt,SEMRESATTRS_SERVICE_NAMESPACE:hbt,SEMRESATTRS_SERVICE_VERSION:fbt,SEMRESATTRS_TELEMETRY_AUTO_VERSION:ybt,SEMRESATTRS_TELEMETRY_SDK_LANGUAGE:vbt,SEMRESATTRS_TELEMETRY_SDK_NAME:gbt,SEMRESATTRS_TELEMETRY_SDK_VERSION:bbt,SEMRESATTRS_WEBENGINE_DESCRIPTION:wbt,SEMRESATTRS_WEBENGINE_NAME:kbt,SEMRESATTRS_WEBENGINE_VERSION:xbt,SIGNALR_CONNECTION_STATUS_VALUE_APP_SHUTDOWN:S1t,SIGNALR_CONNECTION_STATUS_VALUE_NORMAL_CLOSURE:O1t,SIGNALR_CONNECTION_STATUS_VALUE_TIMEOUT:z1t,SIGNALR_TRANSPORT_VALUE_LONG_POLLING:j1t,SIGNALR_TRANSPORT_VALUE_SERVER_SENT_EVENTS:P1t,SIGNALR_TRANSPORT_VALUE_WEB_SOCKETS:A1t,SemanticAttributes:hmt,SemanticResourceAttributes:Sbt,TELEMETRYSDKLANGUAGEVALUES_CPP:gyt,TELEMETRYSDKLANGUAGEVALUES_DOTNET:vyt,TELEMETRYSDKLANGUAGEVALUES_ERLANG:byt,TELEMETRYSDKLANGUAGEVALUES_GO:yyt,TELEMETRYSDKLANGUAGEVALUES_JAVA:kyt,TELEMETRYSDKLANGUAGEVALUES_NODEJS:xyt,TELEMETRYSDKLANGUAGEVALUES_PHP:wyt,TELEMETRYSDKLANGUAGEVALUES_PYTHON:Syt,TELEMETRYSDKLANGUAGEVALUES_RUBY:Oyt,TELEMETRYSDKLANGUAGEVALUES_WEBJS:zyt,TELEMETRY_SDK_LANGUAGE_VALUE_CPP:T1t,TELEMETRY_SDK_LANGUAGE_VALUE_DOTNET:_1t,TELEMETRY_SDK_LANGUAGE_VALUE_ERLANG:M1t,TELEMETRY_SDK_LANGUAGE_VALUE_GO:E1t,TELEMETRY_SDK_LANGUAGE_VALUE_JAVA:R1t,TELEMETRY_SDK_LANGUAGE_VALUE_NODEJS:N1t,TELEMETRY_SDK_LANGUAGE_VALUE_PHP:I1t,TELEMETRY_SDK_LANGUAGE_VALUE_PYTHON:L1t,TELEMETRY_SDK_LANGUAGE_VALUE_RUBY:B1t,TELEMETRY_SDK_LANGUAGE_VALUE_RUST:D1t,TELEMETRY_SDK_LANGUAGE_VALUE_SWIFT:$1t,TELEMETRY_SDK_LANGUAGE_VALUE_WEBJS:lhe,TelemetrySdkLanguageValues:Cyt},Symbol.toStringTag,{value:"Module"})),G0t="process.runtime.name",yL={[lT]:"opentelemetry",[G0t]:"browser",[sT]:lhe,[cT]:Gdt},ob=performance,U0t=9,Q0t=6,W0t=Math.pow(10,Q0t),uT=Math.pow(10,U0t);function Jf(e){const t=e/1e3,a=Math.trunc(t),r=Math.round(e%1e3*W0t);return[a,r]}function che(e){const t=Jf(ob.timeOrigin),a=Jf(typeof e=="number"?e:ob.now());return phe(t,a)}function XS(e){if(kL(e))return e;if(typeof e=="number")return e<ob.timeOrigin?che(e):Jf(e);if(e instanceof Date)return Jf(e.getTime());throw TypeError("Invalid input type")}function Z0t(e,t){let a=t[0]-e[0],r=t[1]-e[1];return r<0&&(a-=1,r+=uT),[a,r]}function Sm(e){return e[0]*uT+e[1]}function uhe(e){return e[0]*1e6+e[1]/1e3}function kL(e){return Array.isArray(e)&&e.length===2&&typeof e[0]=="number"&&typeof e[1]=="number"}function dhe(e){return kL(e)||typeof e=="number"||e instanceof Date}function phe(e,t){const a=[e[0]+t[0],e[1]+t[1]];return a[1]>=uT&&(a[1]-=uT,a[0]+=1),a}var Tc;(function(e){e[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED"})(Tc||(Tc={}));class J0t{_propagators;_fields;constructor(t={}){this._propagators=t.propagators??[],this._fields=Array.from(new Set(this._propagators.map(a=>typeof a.fields=="function"?a.fields():[]).reduce((a,r)=>a.concat(r),[])))}inject(t,a,r){for(const n of this._propagators)try{n.inject(t,a,r)}catch(i){Wa.warn(`Failed to inject with ${n.constructor.name}. Err: ${i.message}`)}}extract(t,a,r){return this._propagators.reduce((n,i)=>{try{return i.extract(n,a,r)}catch(o){Wa.warn(`Failed to extract with ${i.constructor.name}. Err: ${o.message}`)}return n},t)}fields(){return this._fields.slice()}}const xL="[_0-9a-z-*/]",Y0t=`[a-z]${xL}{0,255}`,X0t=`[a-z0-9]${xL}{0,240}@[a-z]${xL}{0,13}`,ext=new RegExp(`^(?:${Y0t}|${X0t})$`),txt=/^[ -~]{0,255}[!-~]$/,axt=/,|=/;function rxt(e){return ext.test(e)}function nxt(e){return txt.test(e)&&!axt.test(e)}const hhe=32,ixt=512,mhe=",",fhe="=";class lX{_internalState=new Map;constructor(t){t&&this._parse(t)}set(t,a){const r=this._clone();return r._internalState.has(t)&&r._internalState.delete(t),r._internalState.set(t,a),r}unset(t){const a=this._clone();return a._internalState.delete(t),a}get(t){return this._internalState.get(t)}serialize(){return this._keys().reduce((t,a)=>(t.push(a+fhe+this.get(a)),t),[]).join(mhe)}_parse(t){t.length>ixt||(this._internalState=t.split(mhe).reverse().reduce((a,r)=>{const n=r.trim(),i=n.indexOf(fhe);if(i!==-1){const o=n.slice(0,i),s=n.slice(i+1,r.length);rxt(o)&&nxt(s)&&a.set(o,s)}return a},new Map),this._internalState.size>hhe&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,hhe))))}_keys(){return Array.from(this._internalState.keys()).reverse()}_clone(){const t=new lX;return t._internalState=new Map(this._internalState),t}}const wL="traceparent",SL="tracestate",oxt="00",sxt="(?!ff)[\\da-f]{2}",lxt="(?![0]{32})[\\da-f]{32}",cxt="(?![0]{16})[\\da-f]{16}",uxt="[\\da-f]{2}",dxt=new RegExp(`^\\s?(${sxt})-(${lxt})-(${cxt})-(${uxt})(-.*)?\\s?$`);function pxt(e){const t=dxt.exec(e);return!t||t[1]==="00"&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}class hxt{inject(t,a,r){const n=Ks.getSpanContext(t);if(!n||fL(t)||!ZS(n))return;const i=`${oxt}-${n.traceId}-${n.spanId}-0${Number(n.traceFlags||Id.NONE).toString(16)}`;r.set(a,wL,i),n.traceState&&r.set(a,SL,n.traceState.serialize())}extract(t,a,r){const n=r.get(a,wL);if(!n)return t;const i=Array.isArray(n)?n[0]:n;if(typeof i!="string")return t;const o=pxt(i);if(!o)return t;o.isRemote=!0;const s=r.get(a,SL);if(s){const l=Array.isArray(s)?s.join(","):s;o.traceState=new lX(typeof l=="string"?l:void 0)}return Ks.setSpanContext(t,o)}fields(){return[wL,SL]}}const mxt="[object Object]",fxt="[object Null]",gxt="[object Undefined]",vxt=Function.prototype,ghe=vxt.toString,bxt=ghe.call(Object),yxt=Object.getPrototypeOf,vhe=Object.prototype,bhe=vhe.hasOwnProperty,sb=Symbol?Symbol.toStringTag:void 0,yhe=vhe.toString;function khe(e){if(!kxt(e)||xxt(e)!==mxt)return!1;const t=yxt(e);if(t===null)return!0;const a=bhe.call(t,"constructor")&&t.constructor;return typeof a=="function"&&a instanceof a&&ghe.call(a)===bxt}function kxt(e){return e!=null&&typeof e=="object"}function xxt(e){return e==null?e===void 0?gxt:fxt:sb&&sb in Object(e)?wxt(e):Sxt(e)}function wxt(e){const t=bhe.call(e,sb),a=e[sb];let r=!1;try{e[sb]=void 0,r=!0}catch{}const n=yhe.call(e);return r&&(t?e[sb]=a:delete e[sb]),n}function Sxt(e){return yhe.call(e)}const Oxt=20;function zxt(...e){let t=e.shift();const a=new WeakMap;for(;e.length>0;)t=xhe(t,e.shift(),0,a);return t}function OL(e){return dT(e)?e.slice():e}function xhe(e,t,a=0,r){let n;if(!(a>Oxt)){if(a++,pT(e)||pT(t)||She(t))n=OL(t);else if(dT(e)){if(n=e.slice(),dT(t))for(let i=0,o=t.length;i<o;i++)n.push(OL(t[i]));else if(eO(t)){const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o];n[l]=OL(t[l])}}}else if(eO(e))if(eO(t)){if(!Cxt(e,t))return t;n=Object.assign({},e);const i=Object.keys(t);for(let o=0,s=i.length;o<s;o++){const l=i[o],c=t[l];if(pT(c))typeof c>"u"?delete n[l]:n[l]=c;else{const u=n[l],d=c;if(whe(e,l,r)||whe(t,l,r))delete n[l];else{if(eO(u)&&eO(d)){const h=r.get(u)||[],m=r.get(d)||[];h.push({obj:e,key:l}),m.push({obj:t,key:l}),r.set(u,h),r.set(d,m)}n[l]=xhe(n[l],c,a,r)}}}}else n=t;return n}}function whe(e,t,a){const r=a.get(e[t])||[];for(let n=0,i=r.length;n<i;n++){const o=r[n];if(o.key===t&&o.obj===e)return!0}return!1}function dT(e){return Array.isArray(e)}function She(e){return typeof e=="function"}function eO(e){return!pT(e)&&!dT(e)&&!She(e)&&typeof e=="object"}function pT(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||typeof e>"u"||e instanceof Date||e instanceof RegExp||e===null}function Cxt(e,t){return!(!khe(e)||!khe(t))}function jxt(e,t){return typeof t=="string"?e===t:!!e.match(t)}class Pxt{_promise;_resolve;_reject;constructor(){this._promise=new Promise((t,a)=>{this._resolve=t,this._reject=a})}get promise(){return this._promise}resolve(t){this._resolve(t)}reject(t){this._reject(t)}}class Ohe{_isCalled=!1;_deferred=new Pxt;_callback;_that;constructor(t,a){this._callback=t,this._that=a}get isCalled(){return this._isCalled}get promise(){return this._deferred.promise}call(...t){if(!this._isCalled){this._isCalled=!0;try{Promise.resolve(this._callback.call(this._that,...t)).then(a=>this._deferred.resolve(a),a=>this._deferred.reject(a))}catch(a){this._deferred.reject(a)}}return this._deferred.promise}}function Axt(e,t){return new Promise(a=>{Gl.with(Vie(Gl.active()),()=>{e.export(t,a)})})}const Txt={_export:Axt};let hT;function zhe(){if(hT===void 0)try{const e=globalThis.process.argv0;hT=e?`unknown_service:${e}`:"unknown_service"}catch{hT="unknown_service"}return hT}const tO=e=>e!==null&&typeof e=="object"&&typeof e.then=="function";class Hj{_rawAttributes;_asyncAttributesPending=!1;_schemaUrl;_memoizedAttributes;static FromAttributeList(t,a){const r=new Hj({},a);return r._rawAttributes=jhe(t),r._asyncAttributesPending=t.filter(([n,i])=>tO(i)).length>0,r}constructor(t,a){const r=t.attributes??{};this._rawAttributes=Object.entries(r).map(([n,i])=>(tO(i)&&(this._asyncAttributesPending=!0),[n,i])),this._rawAttributes=jhe(this._rawAttributes),this._schemaUrl=Mxt(a?.schemaUrl)}get asyncAttributesPending(){return this._asyncAttributesPending}async waitForAsyncAttributes(){if(this.asyncAttributesPending){for(let t=0;t<this._rawAttributes.length;t++){const[a,r]=this._rawAttributes[t];this._rawAttributes[t]=[a,tO(r)?await r:r]}this._asyncAttributesPending=!1}}get attributes(){if(this.asyncAttributesPending&&Wa.error("Accessing resource attributes before async attributes settled"),this._memoizedAttributes)return this._memoizedAttributes;const t={};for(const[a,r]of this._rawAttributes){if(tO(r)){Wa.debug(`Unsettled resource attribute ${a} skipped`);continue}r!=null&&(t[a]??=r)}return this._asyncAttributesPending||(this._memoizedAttributes=t),t}getRawAttributes(){return this._rawAttributes}get schemaUrl(){return this._schemaUrl}merge(t){if(t==null)return this;const a=Ext(this,t),r=a?{schemaUrl:a}:void 0;return Hj.FromAttributeList([...t.getRawAttributes(),...this.getRawAttributes()],r)}}function mT(e,t){return Hj.FromAttributeList(Object.entries(e),t)}function _xt(e,t){return new Hj(e,t)}function zL(){return mT({})}function Che(){return mT({[bL]:zhe(),[sT]:yL[sT],[lT]:yL[lT],[cT]:yL[cT]})}function jhe(e){return e.map(([t,a])=>tO(a)?[t,a.catch(r=>{Wa.debug("promise rejection for resource attribute: %s - %s",t,r)})]:[t,a])}function Mxt(e){if(typeof e=="string"||e===void 0)return e;Wa.warn("Schema URL must be string or undefined, got %s. Schema URL will be ignored.",e)}function Ext(e,t){const a=e?.schemaUrl,r=t?.schemaUrl,n=a===void 0||a==="",i=r===void 0||r==="";if(n)return r;if(i||a===r)return a;Wa.warn('Schema URL merge conflict: old resource has "%s", updating resource has "%s". Resulting resource will have undefined Schema URL.',a,r)}const Rxt=(e={})=>(e.detectors||[]).map(t=>{try{const a=_xt(t.detect(e));return Wa.debug(`${t.constructor.name} found resource.`,a),a}catch(a){return Wa.debug(`${t.constructor.name} failed: ${a.message}`),zL()}}).reduce((t,a)=>t.merge(a),zL());class Nxt{_MAX_LENGTH=255;_COMMA_SEPARATOR=",";_LABEL_KEY_VALUE_SPLITTER="=";detect(t){return{attributes:{}}}_parseResourceAttributes(t){if(!t)return{};const a={},r=t.split(this._COMMA_SEPARATOR);for(const n of r){const i=n.split(this._LABEL_KEY_VALUE_SPLITTER);if(i.length!==2)throw new Error(`Invalid format for OTEL_RESOURCE_ATTRIBUTES: "${n}". Expected format: key=value. The ',' and '=' characters must be percent-encoded in keys and values.`);const[o,s]=i,l=o.trim(),c=s.trim();if(l.length===0)throw new Error(`Invalid OTEL_RESOURCE_ATTRIBUTES: empty attribute key in "${n}".`);let u,d;try{u=decodeURIComponent(l),d=decodeURIComponent(c)}catch(h){throw new Error(`Failed to percent-decode OTEL_RESOURCE_ATTRIBUTES entry "${n}": ${h instanceof Error?h.message:h}`)}if(u.length>this._MAX_LENGTH)throw new Error(`Attribute key exceeds the maximum length of ${this._MAX_LENGTH} characters: "${u}".`);if(d.length>this._MAX_LENGTH)throw new Error(`Attribute value exceeds the maximum length of ${this._MAX_LENGTH} characters for key "${u}".`);a[u]=d}return a}}const Ixt=new Nxt;class Lxt{detect(){return{attributes:{}}}}const fT=new Lxt,Bxt=fT,Dxt=fT,$xt=fT,Kxt=fT,Hxt=Object.freeze(Object.defineProperty({__proto__:null,defaultResource:Che,defaultServiceName:zhe,detectResources:Rxt,emptyResource:zL,envDetector:Ixt,hostDetector:Bxt,osDetector:Dxt,processDetector:$xt,resourceFromAttributes:mT,serviceInstanceIdDetector:Kxt},Symbol.toStringTag,{value:"Module"})),Vxt="exception";class Fxt{_spanContext;kind;parentSpanContext;attributes={};links=[];events=[];startTime;resource;instrumentationScope;_droppedAttributesCount=0;_droppedEventsCount=0;_droppedLinksCount=0;_attributesCount=0;name;status={code:Zi.UNSET};endTime=[0,0];_ended=!1;_duration=[-1,-1];_spanProcessor;_spanLimits;_attributeValueLengthLimit;_recordEndMetrics;_performanceStartTime;_performanceOffset;_startTimeProvided;constructor(t){const a=Date.now();if(this._spanContext=t.spanContext,this._performanceStartTime=ob.now(),this._performanceOffset=a-(this._performanceStartTime+ob.timeOrigin),this._startTimeProvided=t.startTime!=null,this._spanLimits=t.spanLimits,this._attributeValueLengthLimit=this._spanLimits.attributeValueLengthLimit??0,this._spanProcessor=t.spanProcessor,this.name=t.name,this.parentSpanContext=t.parentSpanContext,this.kind=t.kind,t.links)for(const r of t.links)this.addLink(r);this.startTime=this._getTime(t.startTime??a),this.resource=t.resource,this.instrumentationScope=t.scope,this._recordEndMetrics=t.recordEndMetrics,t.attributes!=null&&this.setAttributes(t.attributes),this._spanProcessor.onStart(this,t.context)}spanContext(){return this._spanContext}setAttribute(t,a){if(a==null||this._isSpanEnded())return this;if(t.length===0)return Wa.warn(`Invalid attribute key: ${t}`),this;if(!qie(a))return Wa.warn(`Invalid attribute value set for key: ${t}`),this;const{attributeCountLimit:r}=this._spanLimits,n=!Object.prototype.hasOwnProperty.call(this.attributes,t);return r!==void 0&&this._attributesCount>=r&&n?(this._droppedAttributesCount++,this):(this.attributes[t]=this._truncateToSize(a),n&&this._attributesCount++,this)}setAttributes(t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&this.setAttribute(a,t[a]);return this}addEvent(t,a,r){if(this._isSpanEnded())return this;const{eventCountLimit:n}=this._spanLimits;if(n===0)return Wa.warn("No events allowed."),this._droppedEventsCount++,this;n!==void 0&&this.events.length>=n&&(this._droppedEventsCount===0&&Wa.debug("Dropping extra events."),this.events.shift(),this._droppedEventsCount++),dhe(a)&&(dhe(r)||(r=a),a=void 0);const i=YS(a),{attributePerEventCountLimit:o}=this._spanLimits,s={};let l=0,c=0;for(const u in i){if(!Object.prototype.hasOwnProperty.call(i,u))continue;const d=i[u];if(o!==void 0&&c>=o){l++;continue}s[u]=this._truncateToSize(d),c++}return this.events.push({name:t,attributes:s,time:this._getTime(r),droppedAttributesCount:l}),this}addLink(t){if(this._isSpanEnded())return this;const{linkCountLimit:a}=this._spanLimits;if(a===0)return this._droppedLinksCount++,this;a!==void 0&&this.links.length>=a&&(this._droppedLinksCount===0&&Wa.debug("Dropping extra links."),this.links.shift(),this._droppedLinksCount++);const{attributePerLinkCountLimit:r}=this._spanLimits,n=YS(t.attributes),i={};let o=0,s=0;for(const c in n){if(!Object.prototype.hasOwnProperty.call(n,c))continue;const u=n[c];if(r!==void 0&&s>=r){o++;continue}i[c]=this._truncateToSize(u),s++}const l={context:t.context};return s>0&&(l.attributes=i),o>0&&(l.droppedAttributesCount=o),this.links.push(l),this}addLinks(t){for(const a of t)this.addLink(a);return this}setStatus(t){if(this._isSpanEnded())return this;if(t.code===Zi.UNSET)return this;if(this.status.code===Zi.OK)return this;const a={code:t.code};return t.code===Zi.ERROR&&(typeof t.message=="string"?a.message=t.message:t.message!=null&&Wa.warn(`Dropping invalid status.message of type '${typeof t.message}', expected 'string'`)),this.status=a,this}updateName(t){return this._isSpanEnded()?this:(this.name=t,this)}end(t){if(this._isSpanEnded()){Wa.error(`${this.name} ${this._spanContext.traceId}-${this._spanContext.spanId} - You can only call end() on a span once.`);return}this.endTime=this._getTime(t),this._duration=Z0t(this.startTime,this.endTime),this._duration[0]<0&&(Wa.warn("Inconsistent start and end time, startTime > endTime. Setting span duration to 0ms.",this.startTime,this.endTime),this.endTime=this.startTime.slice(),this._duration=[0,0]),this._droppedEventsCount>0&&Wa.warn(`Dropped ${this._droppedEventsCount} events because eventCountLimit reached`),this._droppedLinksCount>0&&Wa.warn(`Dropped ${this._droppedLinksCount} links because linkCountLimit reached`),this._spanProcessor.onEnding&&this._spanProcessor.onEnding(this),this._recordEndMetrics?.(),this._ended=!0,this._spanProcessor.onEnd(this)}_getTime(t){if(typeof t=="number"&&t<=ob.now())return che(t+this._performanceOffset);if(typeof t=="number")return Jf(t);if(t instanceof Date)return Jf(t.getTime());if(kL(t))return t;if(this._startTimeProvided)return Jf(Date.now());const a=ob.now()-this._performanceStartTime;return phe(this.startTime,Jf(a))}isRecording(){return this._ended===!1}recordException(t,a){const r={};typeof t=="string"?r[iT]=t:t&&(t.code?r[oT]=t.code.toString():t.name&&(r[oT]=t.name),t.message&&(r[iT]=t.message),t.stack&&(r[ohe]=t.stack)),r[oT]||r[iT]?this.addEvent(Vxt,r,a):Wa.warn(`Failed to record an exception ${t}`)}get duration(){return this._duration}get ended(){return this._ended}get droppedAttributesCount(){return this._droppedAttributesCount}get droppedEventsCount(){return this._droppedEventsCount}get droppedLinksCount(){return this._droppedLinksCount}_isSpanEnded(){if(this._ended){const t=new Error(`Operation attempted on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`);Wa.warn(`Cannot execute the operation on ended Span {traceId: ${this._spanContext.traceId}, spanId: ${this._spanContext.spanId}}`,t)}return this._ended}_truncateToLimitUtil(t,a){return t.length<=a?t:t.substring(0,a)}_truncateToSize(t){const a=this._attributeValueLengthLimit;return a<=0?(Wa.warn(`Attribute value limit must be positive, got ${a}`),t):typeof t=="string"?this._truncateToLimitUtil(t,a):Array.isArray(t)?t.map(r=>typeof r=="string"?this._truncateToLimitUtil(r,a):r):t}}var Ld;(function(e){e[e.NOT_RECORD=0]="NOT_RECORD",e[e.RECORD=1]="RECORD",e[e.RECORD_AND_SAMPLED=2]="RECORD_AND_SAMPLED"})(Ld||(Ld={}));class aO{shouldSample(){return{decision:Ld.NOT_RECORD}}toString(){return"AlwaysOffSampler"}}class lb{shouldSample(){return{decision:Ld.RECORD_AND_SAMPLED}}toString(){return"AlwaysOnSampler"}}class rO{_root;_remoteParentSampled;_remoteParentNotSampled;_localParentSampled;_localParentNotSampled;constructor(t){this._root=t.root,this._root||(ib(new Error("ParentBasedSampler must have a root sampler configured")),this._root=new lb),this._remoteParentSampled=t.remoteParentSampled??new lb,this._remoteParentNotSampled=t.remoteParentNotSampled??new aO,this._localParentSampled=t.localParentSampled??new lb,this._localParentNotSampled=t.localParentNotSampled??new aO}shouldSample(t,a,r,n,i,o){const s=Ks.getSpanContext(t);return!s||!ZS(s)?this._root.shouldSample(t,a,r,n,i,o):s.isRemote?s.traceFlags&Id.SAMPLED?this._remoteParentSampled.shouldSample(t,a,r,n,i,o):this._remoteParentNotSampled.shouldSample(t,a,r,n,i,o):s.traceFlags&Id.SAMPLED?this._localParentSampled.shouldSample(t,a,r,n,i,o):this._localParentNotSampled.shouldSample(t,a,r,n,i,o)}toString(){return`ParentBased{root=${this._root.toString()}, remoteParentSampled=${this._remoteParentSampled.toString()}, remoteParentNotSampled=${this._remoteParentNotSampled.toString()}, localParentSampled=${this._localParentSampled.toString()}, localParentNotSampled=${this._localParentNotSampled.toString()}}`}}class CL{_ratio;_upperBound;constructor(t=0){this._ratio=this._normalize(t),this._upperBound=Math.floor(this._ratio*4294967295)}shouldSample(t,a){return{decision:sL(a)&&this._accumulate(a)<this._upperBound?Ld.RECORD_AND_SAMPLED:Ld.NOT_RECORD}}toString(){return`TraceIdRatioBased{${this._ratio}}`}_normalize(t){return typeof t!="number"||isNaN(t)?0:t>=1?1:t<=0?0:t}_accumulate(t){let a=0;for(let r=0;r<t.length/8;r++){const n=r*8,i=parseInt(t.slice(n,n+8),16);a=(a^i)>>>0}return a}}var Jp;(function(e){e.AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio"})(Jp||(Jp={}));const Phe=1;function Ahe(){return{sampler:The(),forceFlushTimeoutMillis:3e4,generalLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128},spanLimits:{attributeValueLengthLimit:1/0,attributeCountLimit:128,linkCountLimit:128,eventCountLimit:128,attributePerEventCountLimit:128,attributePerLinkCountLimit:128}}}function The(){const e=Jp.ParentBasedAlwaysOn;switch(e){case Jp.AlwaysOn:return new lb;case Jp.AlwaysOff:return new aO;case Jp.ParentBasedAlwaysOn:return new rO({root:new lb});case Jp.ParentBasedAlwaysOff:return new rO({root:new aO});case Jp.TraceIdRatio:return new CL(_he());case Jp.ParentBasedTraceIdRatio:return new rO({root:new CL(_he())});default:return Wa.error(`OTEL_TRACES_SAMPLER value "${e}" invalid, defaulting to "${Jp.ParentBasedAlwaysOn}".`),new rO({root:new lb})}}function _he(){return Wa.error(`OTEL_TRACES_SAMPLER_ARG is blank, defaulting to ${Phe}.`),Phe}const qxt=128,Gxt=1/0;function Uxt(e){const t={sampler:The()},a=Ahe(),r=Object.assign({},a,t,e);return r.generalLimits=Object.assign({},a.generalLimits,e.generalLimits||{}),r.spanLimits=Object.assign({},a.spanLimits,e.spanLimits||{}),r}function Qxt(e){const t=Object.assign({},e.spanLimits);return t.attributeCountLimit=e.spanLimits?.attributeCountLimit??e.generalLimits?.attributeCountLimit??void 0??void 0??qxt,t.attributeValueLengthLimit=e.spanLimits?.attributeValueLengthLimit??e.generalLimits?.attributeValueLengthLimit??void 0??void 0??Gxt,Object.assign({},e,{spanLimits:t})}class Wxt{_maxExportBatchSize;_maxQueueSize;_scheduledDelayMillis;_exportTimeoutMillis;_exporter;_isExporting=!1;_finishedSpans=[];_timer;_shutdownOnce;_droppedSpansCount=0;constructor(t,a){this._exporter=t,this._maxExportBatchSize=typeof a?.maxExportBatchSize=="number"?a.maxExportBatchSize:512,this._maxQueueSize=typeof a?.maxQueueSize=="number"?a.maxQueueSize:2048,this._scheduledDelayMillis=typeof a?.scheduledDelayMillis=="number"?a.scheduledDelayMillis:5e3,this._exportTimeoutMillis=typeof a?.exportTimeoutMillis=="number"?a.exportTimeoutMillis:3e4,this._shutdownOnce=new Ohe(this._shutdown,this),this._maxExportBatchSize>this._maxQueueSize&&(Wa.warn("BatchSpanProcessor: maxExportBatchSize must be smaller or equal to maxQueueSize, setting maxExportBatchSize to match maxQueueSize"),this._maxExportBatchSize=this._maxQueueSize)}forceFlush(){return this._shutdownOnce.isCalled?this._shutdownOnce.promise:this._flushAll()}onStart(t,a){}onEnd(t){this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Id.SAMPLED)!==0&&this._addToBuffer(t)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return Promise.resolve().then(()=>this.onShutdown()).then(()=>this._flushAll()).then(()=>this._exporter.shutdown())}_addToBuffer(t){if(this._finishedSpans.length>=this._maxQueueSize){this._droppedSpansCount===0&&Wa.debug("maxQueueSize reached, dropping spans"),this._droppedSpansCount++;return}this._droppedSpansCount>0&&(Wa.warn(`Dropped ${this._droppedSpansCount} spans because maxQueueSize reached`),this._droppedSpansCount=0),this._finishedSpans.push(t),this._maybeStartTimer()}_flushAll(){return new Promise((t,a)=>{const r=[],n=Math.ceil(this._finishedSpans.length/this._maxExportBatchSize);for(let i=0,o=n;i<o;i++)r.push(this._flushOneBatch());Promise.all(r).then(()=>{t()}).catch(a)})}_flushOneBatch(){return this._clearTimer(),this._finishedSpans.length===0?Promise.resolve():new Promise((t,a)=>{const r=setTimeout(()=>{a(new Error("Timeout"))},this._exportTimeoutMillis);Gl.with(Vie(Gl.active()),()=>{let n;this._finishedSpans.length<=this._maxExportBatchSize?(n=this._finishedSpans,this._finishedSpans=[]):n=this._finishedSpans.splice(0,this._maxExportBatchSize);const i=()=>this._exporter.export(n,s=>{clearTimeout(r),s.code===Tc.SUCCESS?t():a(s.error??new Error("BatchSpanProcessor: span export failed"))});let o=null;for(let s=0,l=n.length;s<l;s++){const c=n[s];c.resource.asyncAttributesPending&&c.resource.waitForAsyncAttributes&&(o??=[],o.push(c.resource.waitForAsyncAttributes()))}o===null?i():Promise.all(o).then(i,s=>{ib(s),a(s)})})})}_maybeStartTimer(){if(this._isExporting)return;const t=()=>{this._isExporting=!0,this._flushOneBatch().finally(()=>{this._isExporting=!1,this._finishedSpans.length>0&&(this._clearTimer(),this._maybeStartTimer())}).catch(a=>{this._isExporting=!1,ib(a)})};if(this._finishedSpans.length>=this._maxExportBatchSize)return t();this._timer===void 0&&(this._timer=setTimeout(()=>t(),this._scheduledDelayMillis),typeof this._timer!="number"&&this._timer.unref())}_clearTimer(){this._timer!==void 0&&(clearTimeout(this._timer),this._timer=void 0)}}class Mhe extends Wxt{_visibilityChangeListener;_pageHideListener;constructor(t,a){super(t,a),this.onInit(a)}onInit(t){t?.disableAutoFlushOnDocumentHide!==!0&&typeof document<"u"&&(this._visibilityChangeListener=()=>{document.visibilityState==="hidden"&&this.forceFlush().catch(a=>{ib(a)})},this._pageHideListener=()=>{this.forceFlush().catch(a=>{ib(a)})},document.addEventListener("visibilitychange",this._visibilityChangeListener),document.addEventListener("pagehide",this._pageHideListener))}onShutdown(){typeof document<"u"&&(this._visibilityChangeListener&&document.removeEventListener("visibilitychange",this._visibilityChangeListener),this._pageHideListener&&document.removeEventListener("pagehide",this._pageHideListener))}}const Zxt=16,Jxt=8,Ehe=new Uint8Array(Zxt),Rhe=new Uint8Array(Jxt),Yxt=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Nhe(e){for(let t=0;t<e.length;t++)e[t]=Math.random()*256>>>0;for(let t=0;t<e.length;t++)if(e[t]>0)return;e[e.length-1]=1}function Ihe(e){let t="";for(let a=0;a<e.length;a++)t+=Yxt[e[a]];return t}class Lhe{generateTraceId(){return Nhe(Ehe),Ihe(Ehe)}generateSpanId(){return Nhe(Rhe),Ihe(Rhe)}}const Xxt="otel.span.parent.origin",Bhe="otel.span.sampling_result",ewt="otel.sdk.span.live",twt="otel.sdk.span.started";class awt{startedSpans;liveSpans;constructor(t){this.startedSpans=t.createCounter(twt,{unit:"{span}",description:"The number of created spans."}),this.liveSpans=t.createUpDownCounter(ewt,{unit:"{span}",description:"The number of currently live spans."})}startSpan(t,a){const r=nwt(a);if(this.startedSpans.add(1,{[Xxt]:rwt(t),[Bhe]:r}),a===Ld.NOT_RECORD)return()=>{};const n={[Bhe]:r};return this.liveSpans.add(1,n),()=>{this.liveSpans.add(-1,n)}}}function rwt(e){return e?e.isRemote?"remote":"local":"none"}function nwt(e){switch(e){case Ld.RECORD_AND_SAMPLED:return"RECORD_AND_SAMPLE";case Ld.RECORD:return"RECORD_ONLY";case Ld.NOT_RECORD:return"DROP"}}const iwt="2.6.1";class owt{_sampler;_generalLimits;_spanLimits;_idGenerator;instrumentationScope;_resource;_spanProcessor;_tracerMetrics;constructor(t,a,r,n){const i=Uxt(a);this._sampler=i.sampler,this._generalLimits=i.generalLimits,this._spanLimits=i.spanLimits,this._idGenerator=a.idGenerator||new Lhe,this._resource=r,this._spanProcessor=n,this.instrumentationScope=t;const o=i.meterProvider?i.meterProvider.getMeter("@opentelemetry/sdk-trace",iwt):_ie();this._tracerMetrics=new awt(o)}startSpan(t,a={},r=Gl.active()){a.root&&(r=Ks.deleteSpan(r));const n=Ks.getSpan(r);if(fL(r))return Wa.debug("Instrumentation suppressed, returning Noop Span"),Ks.wrapSpanContext(rL);const i=n?.spanContext(),o=this._idGenerator.generateSpanId();let s,l,c;!i||!Ks.isSpanContextValid(i)?l=this._idGenerator.generateTraceId():(l=i.traceId,c=i.traceState,s=i);const u=a.kind??rT.INTERNAL,d=(a.links??[]).map(x=>({context:x.context,attributes:YS(x.attributes)})),h=YS(a.attributes),m=this._sampler.shouldSample(r,l,t,u,h,d),g=this._tracerMetrics.startSpan(i,m.decision);c=m.traceState??c;const v=m.decision===JS.RECORD_AND_SAMPLED?Id.SAMPLED:Id.NONE,b={traceId:l,spanId:o,traceFlags:v,traceState:c};if(m.decision===JS.NOT_RECORD)return Wa.debug("Recording is off, propagating context in a non-recording span"),Ks.wrapSpanContext(b);const k=YS(Object.assign(h,m.attributes));return new Fxt({resource:this._resource,scope:this.instrumentationScope,context:r,spanContext:b,name:t,kind:u,links:d,parentSpanContext:s,attributes:k,startTime:a.startTime,spanProcessor:this._spanProcessor,spanLimits:this._spanLimits,recordEndMetrics:g})}startActiveSpan(t,a,r,n){let i,o,s;if(arguments.length<2)return;arguments.length===2?s=a:arguments.length===3?(i=a,s=r):(i=a,o=r,s=n);const l=o??Gl.active(),c=this.startSpan(t,i,l),u=Ks.setSpan(l,c);return Gl.with(u,s,void 0,c)}getGeneralLimits(){return this._generalLimits}getSpanLimits(){return this._spanLimits}}class swt{_spanProcessors;constructor(t){this._spanProcessors=t}forceFlush(){const t=[];for(const a of this._spanProcessors)t.push(a.forceFlush());return new Promise(a=>{Promise.all(t).then(()=>{a()}).catch(r=>{ib(r||new Error("MultiSpanProcessor: forceFlush failed")),a()})})}onStart(t,a){for(const r of this._spanProcessors)r.onStart(t,a)}onEnding(t){for(const a of this._spanProcessors)a.onEnding&&a.onEnding(t)}onEnd(t){for(const a of this._spanProcessors)a.onEnd(t)}shutdown(){const t=[];for(const a of this._spanProcessors)t.push(a.shutdown());return new Promise((a,r)=>{Promise.all(t).then(()=>{a()},r)})}}var cb;(function(e){e[e.resolved=0]="resolved",e[e.timeout=1]="timeout",e[e.error=2]="error",e[e.unresolved=3]="unresolved"})(cb||(cb={}));class Dhe{_config;_tracers=new Map;_resource;_activeSpanProcessor;constructor(t={}){const a=zxt({},Ahe(),Qxt(t));this._resource=a.resource??Che(),this._config=Object.assign({},a,{resource:this._resource});const r=[];t.spanProcessors?.length&&r.push(...t.spanProcessors),this._activeSpanProcessor=new swt(r)}getTracer(t,a,r){const n=`${t}@${a||""}:${r?.schemaUrl||""}`;return this._tracers.has(n)||this._tracers.set(n,new owt({name:t,version:a,schemaUrl:r?.schemaUrl},this._config,this._resource,this._activeSpanProcessor)),this._tracers.get(n)}forceFlush(){const t=this._config.forceFlushTimeoutMillis,a=this._activeSpanProcessor._spanProcessors.map(r=>new Promise(n=>{let i;const o=setTimeout(()=>{n(new Error(`Span processor did not completed within timeout period of ${t} ms`)),i=cb.timeout},t);r.forceFlush().then(()=>{clearTimeout(o),i!==cb.timeout&&(i=cb.resolved,n(i))}).catch(s=>{clearTimeout(o),i=cb.error,n(s)})}));return new Promise((r,n)=>{Promise.all(a).then(i=>{const o=i.filter(s=>s!==cb.resolved);o.length>0?n(o):r()}).catch(i=>n([i]))})}shutdown(){return this._activeSpanProcessor.shutdown()}}class lwt{export(t,a){return this._sendSpans(t,a)}shutdown(){return this._sendSpans([]),this.forceFlush()}forceFlush(){return Promise.resolve()}_exportInfo(t){return{resource:{attributes:t.resource.attributes},instrumentationScope:t.instrumentationScope,traceId:t.spanContext().traceId,parentSpanContext:t.parentSpanContext,traceState:t.spanContext().traceState?.serialize(),name:t.name,id:t.spanContext().spanId,kind:t.kind,timestamp:uhe(t.startTime),duration:uhe(t.duration),attributes:t.attributes,status:t.status,events:t.events,links:t.links}}_sendSpans(t,a){for(const r of t)console.dir(this._exportInfo(r),{depth:3});if(a)return a({code:Tc.SUCCESS})}}class cwt{_finishedSpans=[];_stopped=!1;export(t,a){if(this._stopped)return a({code:Tc.FAILED,error:new Error("Exporter has been stopped")});this._finishedSpans.push(...t),setTimeout(()=>a({code:Tc.SUCCESS}),0)}shutdown(){return this._stopped=!0,this._finishedSpans=[],this.forceFlush()}forceFlush(){return Promise.resolve()}reset(){this._finishedSpans=[]}getFinishedSpans(){return this._finishedSpans}}class uwt{_exporter;_shutdownOnce;_pendingExports;constructor(t){this._exporter=t,this._shutdownOnce=new Ohe(this._shutdown,this),this._pendingExports=new Set}async forceFlush(){await Promise.all(Array.from(this._pendingExports)),this._exporter.forceFlush&&await this._exporter.forceFlush()}onStart(t,a){}onEnd(t){if(this._shutdownOnce.isCalled||(t.spanContext().traceFlags&Id.SAMPLED)===0)return;const a=this._doExport(t).catch(r=>ib(r));this._pendingExports.add(a),a.finally(()=>this._pendingExports.delete(a))}async _doExport(t){t.resource.asyncAttributesPending&&await t.resource.waitForAsyncAttributes?.();const a=await Txt._export(this._exporter,[t]);if(a.code!==Tc.SUCCESS)throw a.error??new Error(`SimpleSpanProcessor: span export failed (status ${a})`)}shutdown(){return this._shutdownOnce.call()}_shutdown(){return this._exporter.shutdown()}}class dwt{onStart(t,a){}onEnd(t){}shutdown(){return Promise.resolve()}forceFlush(){return Promise.resolve()}}class $he{_enabled=!1;_currentContext=ab;_bindFunction(t=ab,a){const r=this,n=function(...i){return r.with(t,()=>a.apply(this,i))};return Object.defineProperty(n,"length",{enumerable:!1,configurable:!0,writable:!1,value:a.length}),n}active(){return this._currentContext}bind(t,a){return t===void 0&&(t=this.active()),typeof a=="function"?this._bindFunction(t,a):a}disable(){return this._currentContext=ab,this._enabled=!1,this}enable(){return this._enabled?this:(this._enabled=!0,this._currentContext=ab,this)}with(t,a,r,...n){const i=this._currentContext;this._currentContext=t||ab;try{return a.call(r,...n)}finally{this._currentContext=i}}}function pwt(e){if(e!==null){if(e===void 0){const t=new $he;t.enable(),Gl.setGlobalContextManager(t);return}e.enable(),Gl.setGlobalContextManager(e)}}function hwt(e){if(e!==null){if(e===void 0){nb.setGlobalPropagator(new J0t({propagators:[new hxt,new Ddt]}));return}nb.setGlobalPropagator(e)}}class Khe extends Dhe{constructor(t={}){super(t)}register(t={}){Ks.setGlobalTracerProvider(this),hwt(t.propagator),pwt(t.contextManager)}}var $i;(function(e){e.CONNECT_END="connectEnd",e.CONNECT_START="connectStart",e.DECODED_BODY_SIZE="decodedBodySize",e.DOM_COMPLETE="domComplete",e.DOM_CONTENT_LOADED_EVENT_END="domContentLoadedEventEnd",e.DOM_CONTENT_LOADED_EVENT_START="domContentLoadedEventStart",e.DOM_INTERACTIVE="domInteractive",e.DOMAIN_LOOKUP_END="domainLookupEnd",e.DOMAIN_LOOKUP_START="domainLookupStart",e.ENCODED_BODY_SIZE="encodedBodySize",e.FETCH_START="fetchStart",e.LOAD_EVENT_END="loadEventEnd",e.LOAD_EVENT_START="loadEventStart",e.NAVIGATION_START="navigationStart",e.REDIRECT_END="redirectEnd",e.REDIRECT_START="redirectStart",e.REQUEST_START="requestStart",e.RESPONSE_END="responseEnd",e.RESPONSE_START="responseStart",e.SECURE_CONNECTION_START="secureConnectionStart",e.START_TIME="startTime",e.UNLOAD_EVENT_END="unloadEventEnd",e.UNLOAD_EVENT_START="unloadEventStart"})($i||($i={}));const mwt="http.response_content_length",fwt="http.response_content_length_uncompressed";let jL;function gwt(){return jL||(jL=document.createElement("a")),jL}function Hhe(e,t){return t in e}function Yp(e,t,a,r=!0){if(Hhe(a,t)&&typeof a[t]=="number"&&!(r&&a[t]===0))return e.addEvent(t,a[t])}function vwt(e,t,a=!1,r,n){if(r===void 0&&(r=t[$i.START_TIME]!==0),a||(Yp(e,$i.FETCH_START,t,r),Yp(e,$i.DOMAIN_LOOKUP_START,t,r),Yp(e,$i.DOMAIN_LOOKUP_END,t,r),Yp(e,$i.CONNECT_START,t,r),Yp(e,$i.SECURE_CONNECTION_START,t,r),Yp(e,$i.CONNECT_END,t,r),Yp(e,$i.REQUEST_START,t,r),Yp(e,$i.RESPONSE_START,t,r),Yp(e,$i.RESPONSE_END,t,r)),!n){const i=t[$i.ENCODED_BODY_SIZE];i!==void 0&&e.setAttribute(mwt,i);const o=t[$i.DECODED_BODY_SIZE];o!==void 0&&i!==o&&e.setAttribute(fwt,o)}}function Vhe(e){return e.slice().sort((t,a)=>{const r=t[$i.FETCH_START],n=a[$i.FETCH_START];return r>n?1:r<n?-1:0})}function Fhe(){return typeof location<"u"?location.origin:void 0}function bwt(e,t,a,r,n=new WeakSet,i){const o=gT(e);e=o.toString();const s=kwt(e,t,a,r,n,i);if(s.length===0)return{mainRequest:void 0};if(s.length===1)return{mainRequest:s[0]};const l=Vhe(s);if(o.origin!==Fhe()&&l.length>1){let c=l[0],u=ywt(l,c[$i.RESPONSE_END],a);const d=c[$i.RESPONSE_END];return u[$i.FETCH_START]<d&&(u=c,c=void 0),{corsPreFlightRequest:c,mainRequest:u}}else return{mainRequest:s[0]}}function ywt(e,t,a){const r=Sm(a),n=Sm(XS(t));let i=e[1],o;const s=e.length;for(let l=1;l<s;l++){const c=e[l],u=Sm(XS(c[$i.FETCH_START])),d=Sm(XS(c[$i.RESPONSE_END])),h=r-d;u>=n&&(!o||h<o)&&(o=h,i=c)}return i}function kwt(e,t,a,r,n,i){const o=Sm(t),s=Sm(a);let l=r.filter(c=>{const u=Sm(XS(c[$i.FETCH_START])),d=Sm(XS(c[$i.RESPONSE_END]));return c.initiatorType.toLowerCase()===(i||"xmlhttprequest")&&c.name===e&&u>=o&&d<=s});return l.length>0&&(l=l.filter(c=>!n.has(c))),l}function gT(e){if(typeof URL=="function")return new URL(e,typeof document<"u"?document.baseURI:typeof location<"u"?location.href:void 0);const t=gwt();return t.href=e,t}function xwt(e){return gT(e).href}function qhe(e,t){if(e.nodeType===Node.DOCUMENT_NODE)return"/";const a=Swt(e,t);if(t&&a.indexOf("@id")>0)return a;let r="";return e.parentNode&&(r+=qhe(e.parentNode,t)),r+=a,r}function wwt(e){if(!e.parentNode)return 0;const t=[e.nodeType];e.nodeType===Node.CDATA_SECTION_NODE&&t.push(Node.TEXT_NODE);let a=Array.from(e.parentNode.childNodes);return a=a.filter(r=>{const n=r.localName;return t.indexOf(r.nodeType)>=0&&n===e.localName}),a.length>=1?a.indexOf(e)+1:0}function Swt(e,t){const a=e.nodeType,r=wwt(e);let n="";if(a===Node.ELEMENT_NODE){const i=e.getAttribute("id");if(t&&i)return`//*[@id="${i}"]`;n=e.localName}else if(a===Node.TEXT_NODE||a===Node.CDATA_SECTION_NODE)n="text()";else if(a===Node.COMMENT_NODE)n="comment()";else return"";return n&&r>1?`/${n}[${r}]`:`/${n}`}function Owt(e,t){let a=t||[];return(typeof a=="string"||a instanceof RegExp)&&(a=[a]),gT(e).origin===Fhe()?!0:a.some(r=>jxt(e,r))}const zwt=Object.freeze(Object.defineProperty({__proto__:null,AlwaysOffSampler:aO,AlwaysOnSampler:lb,BasicTracerProvider:Dhe,BatchSpanProcessor:Mhe,ConsoleSpanExporter:lwt,InMemorySpanExporter:cwt,NoopSpanProcessor:dwt,ParentBasedSampler:rO,get PerformanceTimingNames(){return $i},RandomIdGenerator:Lhe,get SamplingDecision(){return Ld},SimpleSpanProcessor:uwt,StackContextManager:$he,TraceIdRatioBasedSampler:CL,WebTracerProvider:Khe,addSpanNetworkEvent:Yp,addSpanNetworkEvents:vwt,getElementXPath:qhe,getResource:bwt,hasKey:Hhe,normalizeUrl:xwt,parseUrl:gT,shouldPropagateTraceHeaders:Owt,sortResources:Vhe},Symbol.toStringTag,{value:"Module"})),Cwt=km(zwt),jwt=km(Hxt);class Pwt{_delegate;constructor(t){this._delegate=t}export(t,a){this._delegate.export(t,a)}forceFlush(){return this._delegate.forceFlush()}shutdown(){return this._delegate.shutdown()}}class Ghe extends Error{code;name="OTLPExporterError";data;constructor(t,a,r){super(t),this.data=r,this.code=a}}function Awt(e){if(Number.isFinite(e)&&e>0)return e;throw new Error(`Configuration: timeoutMillis is invalid, expected number greater than 0 (actual: '${e}')`)}function Twt(e){if(e!=null)return async()=>e}function _wt(e,t,a){return{timeoutMillis:Awt(e.timeoutMillis??t.timeoutMillis??a.timeoutMillis),concurrencyLimit:e.concurrencyLimit??t.concurrencyLimit??a.concurrencyLimit,compression:e.compression??t.compression??a.compression}}function Mwt(){return{timeoutMillis:1e4,concurrencyLimit:30,compression:"none"}}class Ewt{_concurrencyLimit;_sendingPromises=[];constructor(t){this._concurrencyLimit=t}pushPromise(t){if(this.hasReachedLimit())throw new Error("Concurrency Limit reached");this._sendingPromises.push(t);const a=()=>{const r=this._sendingPromises.indexOf(t);this._sendingPromises.splice(r,1)};t.then(a,a)}hasReachedLimit(){return this._sendingPromises.length>=this._concurrencyLimit}async awaitAll(){await Promise.all(this._sendingPromises)}}function Rwt(e){return new Ewt(e.concurrencyLimit)}function Nwt(e){return Object.prototype.hasOwnProperty.call(e,"partialSuccess")}function Iwt(){return{handleResponse(e){e==null||!Nwt(e)||e.partialSuccess==null||Object.keys(e.partialSuccess).length===0||Wa.warn("Received Partial Success response:",JSON.stringify(e.partialSuccess))}}}class Lwt{_diagLogger;_transport;_serializer;_responseHandler;_promiseQueue;_timeout;constructor(t,a,r,n,i){this._transport=t,this._serializer=a,this._responseHandler=r,this._promiseQueue=n,this._timeout=i,this._diagLogger=Wa.createComponentLogger({namespace:"OTLPExportDelegate"})}export(t,a){if(this._diagLogger.debug("items to be sent",t),this._promiseQueue.hasReachedLimit()){a({code:Tc.FAILED,error:new Error("Concurrent export limit reached")});return}const r=this._serializer.serializeRequest(t);if(r==null){a({code:Tc.FAILED,error:new Error("Nothing to send")});return}this._promiseQueue.pushPromise(this._transport.send(r,this._timeout).then(n=>{if(n.status==="success"){if(n.data!=null)try{this._responseHandler.handleResponse(this._serializer.deserializeResponse(n.data))}catch(i){this._diagLogger.warn("Export succeeded but could not deserialize response - is the response specification compliant?",i,n.data)}a({code:Tc.SUCCESS});return}else if(n.status==="failure"&&n.error){a({code:Tc.FAILED,error:n.error});return}else n.status==="retryable"?a({code:Tc.FAILED,error:n.error??new Ghe("Export failed with retryable status")}):a({code:Tc.FAILED,error:new Ghe("Export failed with unknown error")})},n=>a({code:Tc.FAILED,error:n})))}forceFlush(){return this._promiseQueue.awaitAll()}async shutdown(){this._diagLogger.debug("shutdown started"),await this.forceFlush(),this._transport.shutdown()}}function Bwt(e,t){return new Lwt(e.transport,e.serializer,Iwt(),e.promiseHandler,t.timeout)}function Dwt(e,t,a){return Bwt({transport:a,serializer:t,promiseHandler:Rwt(e)},{timeout:e.timeoutMillis})}function $wt(e,t){const a={attributes:vT(e.attributes,t),droppedAttributesCount:0},r=e.schemaUrl;return r&&r!==""&&(a.schemaUrl=r),a}function Kwt(e){return{name:e.name,version:e.version}}function vT(e,t){return Object.keys(e).map(a=>Hwt(a,e[a],t))}function Hwt(e,t,a){return{key:e,value:PL(t,a)}}function PL(e,t){const a=typeof e;if(a==="string")return{stringValue:e};if(a==="number")return Number.isInteger(e)?{intValue:e}:{doubleValue:e};if(a==="boolean")return{boolValue:e};if(e instanceof Uint8Array)return{bytesValue:t.encodeUint8Array(e)};if(Array.isArray(e)){const r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=PL(e[n],t);return{arrayValue:{values:r}}}if(a==="object"&&e!=null){const r=Object.keys(e),n=new Array(r.length);for(let i=0;i<r.length;i++)n[i]={key:r[i],value:PL(e[r[i]],t)};return{kvlistValue:{values:n}}}return{}}function Vwt(e){const t=BigInt(1e9);return BigInt(Math.trunc(e[0]))*t+BigInt(Math.trunc(e[1]))}function Fwt(e){return Vwt(e).toString()}const qwt=typeof BigInt<"u"?Fwt:Sm;function Uhe(e){return e}const Gwt={encodeHrTime:qwt,encodeSpanContext:Uhe,encodeOptionalSpanContext:Uhe,encodeUint8Array:e=>{if(typeof Buffer<"u")return Buffer.from(e).toString("base64");const t=new Array(e.length);for(let a=0;a<e.length;a++)t[a]=String.fromCharCode(e[a]);return btoa(t.join(""))}},Uwt=256,Qwt=512;function Qhe(e,t){let a=e&255|Uwt;return t&&(a|=Qwt),a}function Wwt(e,t){const a=e.spanContext(),r=e.status,n=e.parentSpanContext?.spanId?t.encodeSpanContext(e.parentSpanContext?.spanId):void 0;return{traceId:t.encodeSpanContext(a.traceId),spanId:t.encodeSpanContext(a.spanId),parentSpanId:n,traceState:a.traceState?.serialize(),name:e.name,kind:e.kind==null?0:e.kind+1,startTimeUnixNano:t.encodeHrTime(e.startTime),endTimeUnixNano:t.encodeHrTime(e.endTime),attributes:vT(e.attributes,t),droppedAttributesCount:e.droppedAttributesCount,events:e.events.map(i=>Jwt(i,t)),droppedEventsCount:e.droppedEventsCount,status:{code:r.code,message:r.message},links:e.links.map(i=>Zwt(i,t)),droppedLinksCount:e.droppedLinksCount,flags:Qhe(a.traceFlags,e.parentSpanContext?.isRemote)}}function Zwt(e,t){return{attributes:e.attributes?vT(e.attributes,t):[],spanId:t.encodeSpanContext(e.context.spanId),traceId:t.encodeSpanContext(e.context.traceId),traceState:e.context.traceState?.serialize(),droppedAttributesCount:e.droppedAttributesCount||0,flags:Qhe(e.context.traceFlags,e.context.isRemote)}}function Jwt(e,t){return{attributes:e.attributes?vT(e.attributes,t):[],name:e.name,timeUnixNano:t.encodeHrTime(e.time),droppedAttributesCount:e.droppedAttributesCount||0}}function Ywt(e,t){return{resourceSpans:eSt(e,t)}}function Xwt(e){const t=new Map;for(const a of e){let r=t.get(a.resource);r||(r=new Map,t.set(a.resource,r));const n=`${a.instrumentationScope.name}@${a.instrumentationScope.version||""}:${a.instrumentationScope.schemaUrl||""}`;let i=r.get(n);i||(i=[],r.set(n,i)),i.push(a)}return t}function eSt(e,t){const a=Xwt(e),r=[],n=a.entries();let i=n.next();for(;!i.done;){const[o,s]=i.value,l=[],c=s.values();let u=c.next();for(;!u.done;){const m=u.value;if(m.length>0){const g=m.map(v=>Wwt(v,t));l.push({scope:Kwt(m[0].instrumentationScope),spans:g,schemaUrl:m[0].instrumentationScope.schemaUrl})}u=c.next()}const d=$wt(o,t),h={resource:d,scopeSpans:l,schemaUrl:d.schemaUrl};r.push(h),i=n.next()}return r}const tSt={serializeRequest:e=>{const t=Ywt(e,Gwt);return new TextEncoder().encode(JSON.stringify(t))},deserializeResponse:e=>{if(e.length===0)return{};const t=new TextDecoder;return JSON.parse(t.decode(e))}},AL=5,aSt=1e3,rSt=5e3,nSt=1.5,Whe=.2;function iSt(){return Math.random()*(2*Whe)-Whe}class oSt{_transport;constructor(t){this._transport=t}retry(t,a,r){return new Promise((n,i)=>{setTimeout(()=>{this._transport.send(t,a).then(n,i)},r)})}async send(t,a){let r=AL,n=aSt;const i=Date.now()+a;let o=await this._transport.send(t,a);for(;o.status==="retryable"&&r>0;){r--;const s=Math.max(Math.min(n*(1+iSt()),rSt),0);n=n*nSt;const l=o.retryInMillis??s,c=i-Date.now();if(l>c)return Wa.info(`Export retry time ${Math.round(l)}ms exceeds remaining timeout ${Math.round(c)}ms, not retrying further.`),o;Wa.verbose(`Scheduling export retry in ${Math.round(l)}ms`),o=await this.retry(t,c,l)}return o.status==="success"?Wa.verbose(`Export succeeded after ${AL-r} retry attempts.`):o.status==="retryable"?Wa.info(`Export failed after maximum retry attempts (${AL}).`):Wa.info(`Export failed with non-retryable error: ${o.error}`),o}shutdown(){return this._transport.shutdown()}}function sSt(e){return new oSt(e.transport)}function lSt(e){return e===429||e===502||e===503||e===504}function cSt(e){if(e==null)return;const t=Number.parseInt(e,10);if(Number.isInteger(t))return t>0?t*1e3:-1;const a=new Date(e).getTime()-Date.now();return a>=0?a:0}const uSt=60*1024,dSt=9;let TL=0,bT=0;class pSt{_parameters;constructor(t){this._parameters=t}async send(t,a){const r=new AbortController,n=setTimeout(()=>r.abort(),a);let i=globalThis.fetch;typeof i.__original=="function"&&(i=i.__original);const o=t.byteLength,s=TL+o>uSt,l=bT>=dSt,c=!s&&!l;if(c)TL+=o,bT++;else{const u=s?"size limit":"count limit";Wa.debug(`keepalive disabled: ${(o/1024).toFixed(1)}KB payload, ${bT} pending (${u})`)}try{const u=new URL(this._parameters.url),d=await i(u.href,{method:"POST",headers:await this._parameters.headers(),body:t,signal:r.signal,keepalive:c,mode:globalThis.location?globalThis.location.origin===u.origin?"same-origin":"cors":"no-cors"});if(d.status>=200&&d.status<=299)return Wa.debug(`export response success (status: ${d.status})`),{status:"success"};if(lSt(d.status)){Wa.warn(`export response retryable (status: ${d.status})`);const h=d.headers.get("Retry-After");return{status:"retryable",retryInMillis:cSt(h)}}return Wa.error(`export response failure (status: ${d.status})`),{status:"failure",error:new Error(`Fetch request failed with non-retryable status ${d.status}`)}}catch(u){return mSt(u)?(Wa.warn(`export request retryable (network error: ${u})`),{status:"retryable",error:new Error("Fetch request encountered a network error",{cause:u})}):(Wa.error(`export request failure (error: ${u})`),{status:"failure",error:new Error("Fetch request errored",{cause:u})})}finally{clearTimeout(n),c&&(TL-=o,bT--)}}shutdown(){}}function hSt(e){return new pSt(e)}function mSt(e){return e instanceof TypeError&&!e.cause}function fSt(e,t){return Dwt(e,t,sSt({transport:hSt(e)}))}function gSt(e){const t={};return Object.entries(e??{}).forEach(([a,r])=>{typeof r<"u"?t[a]=String(r):Wa.warn(`Header "${a}" has invalid value (${r}) and will be ignored`)}),t}function vSt(e,t,a){return async()=>{const r={...await a()},n={};return t!=null&&Object.assign(n,await t()),e!=null&&Object.assign(n,gSt(await e())),Object.assign(n,r)}}function bSt(e){if(e!=null)try{const t=globalThis.location?.href;return new URL(e,t).href}catch{throw new Error(`Configuration: Could not parse user-provided export URL: '${e}'`)}}function ySt(e,t,a){return{..._wt(e,t,a),headers:vSt(e.headers,t.headers,a.headers),url:bSt(e.url)??t.url??a.url}}function kSt(e,t){return{...Mwt(),headers:async()=>e,url:"http://localhost:4318/"+t}}function xSt(e){return typeof e.headers=="function"?e.headers:Twt(e.headers)}function wSt(e,t,a){return ySt({url:e.url,timeoutMillis:e.timeoutMillis,headers:xSt(e),concurrencyLimit:e.concurrencyLimit},{},kSt(a,t))}function SSt(e,t,a,r){const n=wSt(e,a,r);return fSt(n,t)}class Zhe extends Pwt{constructor(t={}){super(SSt(t,tSt,"v1/traces",{"Content-Type":"application/json"}))}}const OSt=Object.freeze(Object.defineProperty({__proto__:null,OTLPTraceExporter:Zhe},Symbol.toStringTag,{value:"Module"})),zSt=km(OSt),CSt=km(q0t);let Jhe=class{emit(e){}};const jSt=new Jhe;class PSt{getLogger(t,a,r){return new Jhe}}const Yhe=new PSt;class ASt{constructor(t,a,r,n){this._provider=t,this.name=a,this.version=r,this.options=n}emit(t){this._getLogger().emit(t)}_getLogger(){if(this._delegate)return this._delegate;const t=this._provider.getDelegateLogger(this.name,this.version,this.options);return t?(this._delegate=t,this._delegate):jSt}}class Xhe{getLogger(t,a,r){var n;return(n=this.getDelegateLogger(t,a,r))!==null&&n!==void 0?n:new ASt(this,t,a,r)}getDelegate(){var t;return(t=this._delegate)!==null&&t!==void 0?t:Yhe}setDelegate(t){this._delegate=t}getDelegateLogger(t,a,r){var n;return(n=this._delegate)===null||n===void 0?void 0:n.getLogger(t,a,r)}}const TSt=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof globalThis=="object"?globalThis:{},yT=Symbol.for("io.opentelemetry.js.api.logs"),nO=TSt;function _St(e,t,a){return r=>r===e?t:a}const eme=1;class cX{constructor(){this._proxyLoggerProvider=new Xhe}static getInstance(){return this._instance||(this._instance=new cX),this._instance}setGlobalLoggerProvider(t){return nO[yT]?this.getLoggerProvider():(nO[yT]=_St(eme,t,Yhe),this._proxyLoggerProvider.setDelegate(t),t)}getLoggerProvider(){var t,a;return(a=(t=nO[yT])===null||t===void 0?void 0:t.call(nO,eme))!==null&&a!==void 0?a:this._proxyLoggerProvider}getLogger(t,a,r){return this.getLoggerProvider().getLogger(t,a,r)}disable(){delete nO[yT],this._proxyLoggerProvider=new Xhe}}const tme=cX.getInstance();function MSt(e,t,a,r){for(let n=0,i=e.length;n<i;n++){const o=e[n];t&&o.setTracerProvider(t),a&&o.setMeterProvider(a),r&&o.setLoggerProvider&&o.setLoggerProvider(r),o.getConfig().enabled||o.enable()}}function ESt(e){e.forEach(t=>t.disable())}function ame(e){const t=e.tracerProvider||Ks.getTracerProvider(),a=e.meterProvider||nT.getMeterProvider(),r=e.loggerProvider||tme.getLoggerProvider(),n=e.instrumentations?.flat()??[];return MSt(n,t,a,r),()=>{ESt(n)}}let pu=console.error.bind(console);function iO(e,t,a){const r=!!e[t]&&Object.prototype.propertyIsEnumerable.call(e,t);Object.defineProperty(e,t,{configurable:!0,enumerable:r,writable:!0,value:a})}const rme=(e,t,a)=>{if(!e||!e[t]){pu("no original function "+String(t)+" to wrap");return}if(!a){pu("no wrapper function"),pu(new Error().stack);return}const r=e[t];if(typeof r!="function"||typeof a!="function"){pu("original object and wrapper must be functions");return}const n=a(r,t);return iO(n,"__original",r),iO(n,"__unwrap",()=>{e[t]===n&&iO(e,t,r)}),iO(n,"__wrapped",!0),iO(e,t,n),n},RSt=(e,t,a)=>{if(e)Array.isArray(e)||(e=[e]);else{pu("must provide one or more modules to patch"),pu(new Error().stack);return}if(!(t&&Array.isArray(t))){pu("must provide one or more functions to wrap on modules");return}e.forEach(r=>{t.forEach(n=>{rme(r,n,a)})})},nme=(e,t)=>{if(!e||!e[t]){pu("no function to unwrap."),pu(new Error().stack);return}const a=e[t];if(!a.__unwrap)pu("no original to unwrap to -- has "+String(t)+" already been unwrapped?");else{a.__unwrap();return}},NSt=(e,t)=>{if(e)Array.isArray(e)||(e=[e]);else{pu("must provide one or more modules to patch"),pu(new Error().stack);return}if(!(t&&Array.isArray(t))){pu("must provide one or more functions to unwrap on modules");return}e.forEach(a=>{t.forEach(r=>{nme(a,r)})})};class ISt{instrumentationName;instrumentationVersion;_config={};_tracer;_meter;_logger;_diag;constructor(t,a,r){this.instrumentationName=t,this.instrumentationVersion=a,this.setConfig(r),this._diag=Wa.createComponentLogger({namespace:t}),this._tracer=Ks.getTracer(t,a),this._meter=nT.getMeter(t,a),this._logger=tme.getLogger(t,a),this._updateMetricInstruments()}_wrap=rme;_unwrap=nme;_massWrap=RSt;_massUnwrap=NSt;get meter(){return this._meter}setMeterProvider(t){this._meter=t.getMeter(this.instrumentationName,this.instrumentationVersion),this._updateMetricInstruments()}get logger(){return this._logger}setLoggerProvider(t){this._logger=t.getLogger(this.instrumentationName,this.instrumentationVersion)}getModuleDefinitions(){const t=this.init()??[];return Array.isArray(t)?t:[t]}_updateMetricInstruments(){}getConfig(){return this._config}setConfig(t){this._config={enabled:!0,...t}}setTracerProvider(t){this._tracer=t.getTracer(this.instrumentationName,this.instrumentationVersion)}get tracer(){return this._tracer}_runSpanCustomizationHook(t,a,r,n){if(t)try{t(r,n)}catch(i){this._diag.error("Error running span customization hook due to exception in handler",{triggerName:a},i)}}}class ime extends ISt{constructor(t,a,r){super(t,a,r),this._config.enabled&&this.enable()}}function LSt(e){return Wa.warn("Path normalization is not implemented for this platform. To silence this warning, ensure no node-specific instrumentations are loaded, and node-specific types (e.g. InstrumentationNodeModuleFile), are not used in a browser context)"),e}class BSt{name;supportedVersions;patch;unpatch;files;constructor(t,a,r,n,i){this.name=t,this.supportedVersions=a,this.patch=r,this.unpatch=n,this.files=i||[]}}class DSt{supportedVersions;patch;unpatch;name;constructor(t,a,r,n){this.supportedVersions=a,this.patch=r,this.unpatch=n,this.name=LSt(t)}}function $St(e,t,a){let r,n;try{n=e()}catch(i){r=i}finally{if(t(r,n),r&&!a)throw r;return n}}async function KSt(e,t,a){let r,n;try{n=await e()}catch(i){r=i}finally{if(t(r,n),r&&!a)throw r;return n}}function HSt(e){return typeof e=="function"&&typeof e.__original=="function"&&typeof e.__unwrap=="function"&&e.__wrapped===!0}var u1;(function(e){e[e.STABLE=1]="STABLE",e[e.OLD=2]="OLD",e[e.DUPLICATE=3]="DUPLICATE"})(u1||(u1={}));function VSt(e,t){let a=u1.OLD;const r=t?.split(",").map(n=>n.trim()).filter(n=>n!=="");for(const n of r??[])if(n.toLowerCase()===e+"/dup"){a=u1.DUPLICATE;break}else n.toLowerCase()===e&&(a=u1.STABLE);return a}const FSt=Object.freeze(Object.defineProperty({__proto__:null,InstrumentationBase:ime,InstrumentationNodeModuleDefinition:BSt,InstrumentationNodeModuleFile:DSt,get SemconvStability(){return u1},isWrapped:HSt,registerInstrumentations:ame,safeExecuteInTheMiddle:$St,safeExecuteInTheMiddleAsync:KSt,semconvStabilityFromStr:VSt},Symbol.toStringTag,{value:"Module"})),qSt=km(FSt);function Om(e){const t=new Error(e);return t.source="ulid",t}const ub="0123456789ABCDEFGHJKMNPQRSTVWXYZ",db=ub.length,_L=Math.pow(2,48)-1,oO=10,ML=16;function EL(e,t,a){return t>e.length-1?e:e.substr(0,t)+a+e.substr(t+1)}function ome(e){let t,a=e.length,r,n;const i=db-1;for(;!t&&a-->=0;){if(r=e[a],n=ub.indexOf(r),n===-1)throw Om("incorrectly encoded string");if(n===i){e=EL(e,a,ub[0]);continue}t=EL(e,a,ub[n+1])}if(typeof t=="string")return t;throw Om("cannot increment this string")}function sme(e){let t=Math.floor(e()*db);return t===db&&(t=db-1),ub.charAt(t)}function kT(e,t){if(isNaN(e))throw new Error(e+" must be a number");if(e>_L)throw Om("cannot encode time greater than "+_L);if(e<0)throw Om("time must be positive");if(Number.isInteger(Number(e))===!1)throw Om("time must be an integer");let a,r="";for(;t>0;t--)a=e%db,r=ub.charAt(a)+r,e=(e-a)/db;return r}function RL(e,t){let a="";for(;e>0;e--)a=sme(t)+a;return a}function GSt(e){if(e.length!==oO+ML)throw Om("malformed ulid");var t=e.substr(0,oO).split("").reverse().reduce((a,r,n)=>{const i=ub.indexOf(r);if(i===-1)throw Om("invalid character found: "+r);return a+=i*Math.pow(db,n)},0);if(t>_L)throw Om("malformed ulid, timestamp too large");return t}function NL(e=!1,t){t||(t=typeof window<"u"?window:null);const a=t&&(t.crypto||t.msCrypto);if(a)return()=>{const r=new Uint8Array(1);return a.getRandomValues(r),r[0]/255};try{const r=require("crypto");return()=>r.randomBytes(1).readUInt8()/255}catch{}if(e){try{console.error("secure crypto unusable, falling back to insecure Math.random()!")}catch{}return()=>Math.random()}throw Om("secure crypto unusable, insecure Math.random not allowed")}function lme(e){return e||(e=NL()),function(t){return isNaN(t)&&(t=Date.now()),kT(t,oO)+RL(ML,e)}}function USt(e){e||(e=NL());let t=0,a;return function(r){if(isNaN(r)&&(r=Date.now()),r<=t){const i=a=ome(a);return kT(t,oO)+i}t=r;const n=a=RL(ML,e);return kT(r,oO)+n}}const pb=lme(),QSt=Object.freeze(Object.defineProperty({__proto__:null,decodeTime:GSt,detectPrng:NL,encodeRandom:RL,encodeTime:kT,factory:lme,incrementBase32:ome,monotonicFactory:USt,randomChar:sme,replaceCharAt:EL,ulid:pb},Symbol.toStringTag,{value:"Module"})),cme=km(QSt);var xT={};const ume=km(_dt);var sO={},dme;function WSt(){if(dme)return sO;dme=1,Object.defineProperty(sO,"__esModule",{value:!0}),sO.TraceStep=void 0;const e=ume;class t{constructor(r){Object.defineProperty(this,"span",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.span=r}get context(){var r;return(r=this.span)===null||r===void 0?void 0:r.context}error(r){this.span&&(this.span.setStatus(e.SpanStatusCode.ERROR,r.message),this.span.recordException(r),this.span.end())}setAttribute(r,n){this.span&&this.span.setAttribute(r,n)}setStatus(r,n){this.span&&this.span.setStatus(r,n)}end(){this.span&&(this.span.setStatus(e.SpanStatusCode.OK),this.span.end())}}return sO.TraceStep=t,sO}var d1={},pme;function hme(){if(pme)return d1;pme=1,Object.defineProperty(d1,"__esModule",{value:!0}),d1.CLOUD_EVENT_STANDARD_KEYS=void 0,d1.mapToCloudEvent=t;const e=cme;d1.CLOUD_EVENT_STANDARD_KEYS=["id","specversion","object","datacontenttype","type","time","origin","env","category","signal","source","subject","subjects","data","actor","requestId","clientIp","organizationId","organizationSlug","projectId","projectSlug","osPlatform","userAgent","sessionId"];function t(a){var r,n,i,o,s,l,c,u;const{type:d,data:h,actor:m,requestId:g,clientIp:v,origin:b,env:k,source:x,organizationId:w,organizationSlug:z,projectId:S,projectSlug:C,category:j="product",signal:T="log",osPlatform:E,userAgent:I,sessionId:N}=a,$=!!(h&&Array.isArray(h)),H=m?{id:(r=m.id)!==null&&r!==void 0?r:`ann_${(0,e.ulid)()}`,object:(n=m.object)!==null&&n!==void 0?n:"user",uri:(i=m.uri)!==null&&i!==void 0?i:""}:null,Z=`evt_${(0,e.ulid)()}`.toLowerCase(),te=new Date,ee=(o=x??H?.uri)!==null&&o!==void 0?o:null,oe=Object.assign(Object.assign(Object.assign(Object.assign({},w!==void 0&&{organizationId:w}),z!==void 0&&{organizationSlug:z}),S!==void 0&&{projectId:S}),C!==void 0&&{projectSlug:C}),ae={specversion:"1.0",object:"event",datacontenttype:"application/json; charset=utf-8",origin:b,env:k,category:j,signal:T,osPlatform:E,userAgent:I,clientIp:v,sessionId:N};if($){const ce=h,Q=ce.map(Y=>{var G,D,U;return{id:(G=Y.id)!==null&&G!==void 0?G:"",object:(D=Y.object)!==null&&D!==void 0?D:"",uri:(U=Y.uri)!==null&&U!==void 0?U:""}}),V=(l=(s=ce[0])===null||s===void 0?void 0:s.id)!==null&&l!==void 0?l:null;Object.assign(ae,Object.assign(Object.assign({},oe),{id:Z,type:d,time:te,source:ee,actor:H,subject:V,subjects:Q,data:ce,requestId:g??""}))}else{const ce=(u=(c=Array.isArray(h)?h[0]:h)===null||c===void 0?void 0:c.id)!==null&&u!==void 0?u:null;Object.assign(ae,Object.assign(Object.assign(Object.assign({},oe),{id:Z,type:d,time:te,source:ee,actor:H,subject:ce,requestId:g??"",data:h}),x!=null&&{request:{source:x}}))}return ae}return d1}var mme;function ZSt(){return mme||(mme=1,(function(e){var t=xT&&xT.__awaiter||function(j,T,E,I){function N($){return $ instanceof E?$:new E(function(H){H($)})}return new(E||(E=Promise))(function($,H){function Z(oe){try{ee(I.next(oe))}catch(ae){H(ae)}}function te(oe){try{ee(I.throw(oe))}catch(ae){H(ae)}}function ee(oe){oe.done?$(oe.value):N(oe.value).then(Z,te)}ee((I=I.apply(j,T||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.BaseOtelClient=e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY=void 0,e.toSnakeCase=o,e.groupByObjectProperty=s,e.flattenToAttributes=u,e.flattenNestedObject=d,e.processCloudEventAttributes=m,e.processObjectData=x,e.processAttributes=S;const a=ume,r=WSt(),n=hme();e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY="context";const i=[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];function o(j){return j.replace(/([A-Z])/g,"_$1").toLowerCase()}function s(j){const T={updated:[],notUpdated:[]};for(const E of j){if(!E||typeof E!="object")continue;const I=E.object;if(typeof I!="string")continue;const N=E,$=T.notUpdated.find(H=>H.object===I);$?(T.updated=[$,N],T.notUpdated=T.notUpdated.filter(H=>H.object!==I)):T.updated.some(H=>H.object===I)||T.notUpdated.push(N)}return T}function l(j,T,E){const I=E?`${E}.`:"",N=T===""?"":`${T}.`;return`${j}.${I}${N}`}function c(j,T){const E=j[e.BUS_STYLE_SNAPSHOT_CONTEXT_KEY];return E==="before"||E==="after"?E:T===0?"after":"before"}function u(j,T,E,I=!0,N){const $=N?.length?new Set(N):null;for(const[H,Z]of Object.entries(j))if(!$?.has(H)&&Z!==void 0){const te=I?o(H):H;E[`${T}${te}`]=Z}}function d(j,T,E){for(const[I,N]of Object.entries(j))N==null||typeof N=="object"||(E[`${T}.${o(I)}`]=N)}function h(j,T,E){var I,N,$,H,Z,te,ee,oe,ae,ce,Q,V,Y,G,D,U;const K=T instanceof Date?T.toISOString():new Date(T).toISOString();return{"cloudevents.event_id":j.id,"cloudevents.event_type":j.type,"cloudevents.event_source":(I=j.source)!==null&&I!==void 0?I:void 0,"cloudevents.event_spec_version":j.specversion,"cloudevents.event_data_content_type":(N=j.datacontenttype)!==null&&N!==void 0?N:"application/json; charset=utf-8","cloudevents.event_time":K,"cloudevents.event_subject":($=j.subject)!==null&&$!==void 0?$:"","cloudevents.page.uri":typeof location<"u"?location.href:void 0,"cloudevents.event_version":E?.version,"cloudevents.event_origin":(H=j.origin)!==null&&H!==void 0?H:E?.serviceName,"cloudevents.event_env":j.env,"cloudevents.event_source_details.id":(te=(Z=j.actor)===null||Z===void 0?void 0:Z.id)!==null&&te!==void 0?te:"anonymous","cloudevents.event_source_details.object":(oe=(ee=j.actor)===null||ee===void 0?void 0:ee.object)!==null&&oe!==void 0?oe:"anonymous","cloudevents.event_source_details.uri":(ce=(ae=j.actor)===null||ae===void 0?void 0:ae.uri)!==null&&ce!==void 0?ce:void 0,"cloudevents.event_client_ip":j.clientIp,"cloudevents.event_object":j.object||"event","cloudevents.event_category":j.category,"cloudevents.event_signal":j.signal,"cloudevents.event_actor.id":(V=(Q=j.actor)===null||Q===void 0?void 0:Q.id)!==null&&V!==void 0?V:void 0,"cloudevents.event_actor.object":(G=(Y=j.actor)===null||Y===void 0?void 0:Y.object)!==null&&G!==void 0?G:void 0,"cloudevents.event_actor.uri":(U=(D=j.actor)===null||D===void 0?void 0:D.uri)!==null&&U!==void 0?U:void 0,"cloudevents.event_organization_id":j.organizationId,"cloudevents.event_organization_slug":j.organizationSlug,"cloudevents.event_project_id":j.projectId,"cloudevents.event_project_slug":j.projectSlug,"cloudevents.event_request_id":j.requestId,"cloudevents.event_os_platform":j.osPlatform,"cloudevents.event_user_agent":j.userAgent,"cloudevents.event_session_id":j.sessionId}}function m(j,T,E){const I=j.data,N=Object.assign({},h(j,T,E));return g(I,N),w(j,N),z(j,N),N}function g(j,T){!j||typeof j!="object"||(Array.isArray(j)?v(j,T):x(j,T))}function v(j,T){j.some(E=>E&&typeof E=="object"&&typeof E.object=="string")?b(j,T):k(j,T)}function b(j,T){const E=s(j);E.updated.forEach((I,N)=>{const $=l("cloudevents.event_data",I.object,c(I,N));u(I,$,T,!0,i)}),E.notUpdated.forEach(I=>{const N=l("cloudevents.event_data",I.object,void 0);u(I,N,T,!0,i)})}function k(j,T){for(const E of j)if(!(!E||typeof E!="object"))for(const[I,N]of Object.entries(E)){if(N===void 0)continue;const $=o(I);N!==null&&typeof N=="object"&&!Array.isArray(N)?d(N,`cloudevents.event_data.${$}`,T):T[`cloudevents.event_data.${$}`]=N}}function x(j,T){for(const[E,I]of Object.entries(j)){if(I==null)continue;const N=o(E);if(typeof I=="object"&&!Array.isArray(I))for(const[$,H]of Object.entries(I))H!=null&&(typeof H=="string"||typeof H=="number"||typeof H=="boolean")&&(T[`cloudevents.event_data.${N}.${$}`]=H);else(typeof I=="string"||typeof I=="number"||typeof I=="boolean")&&(T[`cloudevents.event_data.${N}`]=I)}}function w(j,T){if(!j.subjects||!Array.isArray(j.subjects))return;const E=s(j.subjects);E.updated.forEach((I,N)=>{const $=l("cloudevents.event_subjects",I.object,c(I,N));u(I,$,T,!1,i)}),E.notUpdated.forEach(I=>{const N=l("cloudevents.event_subjects",I.object,void 0);u(I,N,T,!1,i)})}function z(j,T){for(const[E,I]of Object.entries(j))if(!(n.CLOUD_EVENT_STANDARD_KEYS.includes(E)||I===void 0))if(I instanceof Object)for(const[N,$]of Object.entries(I))$!==void 0&&(T[`cloudevents.${E}.${N}`]=$);else T[`cloudevents.${E}`]=I}function S(j,T,E){return m(j,T,E)}class C{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"tracerProvider",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"sessionId",{enumerable:!0,configurable:!0,writable:!0,value:null})}initTracer(T){throw new Error("initTracer must be implemented by the environment-specific client")}init(T){this.config=T,this.initTracer(T)}send(T){var E;try{if(!this.tracer||!this.config)return;const I=T,N="time"in I&&I.time?new Date(I.time):new Date;this.tracer.startSpan(`event.${I.type}`,{attributes:this.processAttributes(I,N),startTime:N}).end(N)}catch(I){!((E=this.config)===null||E===void 0)&&E.isProd||console.error("Event reporting failed:",I)}}processAttributes(T,E){return S(T,E,this.config)}startSpan(T,E){var I;try{if(!this.tracer)return;let N;const $=T.time?new Date(T.time):new Date,H=this.tracer.startSpan(`event.${T.type}`,{attributes:this.processAttributes(T,$),root:!E},E);return E||(N=a.trace.setSpan(a.context.active(),H)),{end:()=>H.end(),setAttribute:(Z,te)=>{H.setAttribute(`cloudevents.event_data.${o(Z)}`,te)},setStatus:(Z,te)=>H.setStatus({code:Z,message:te}),parentCtx:N}}catch(N){!((I=this.config)===null||I===void 0)&&I.isProd||console.error("Event reporting failed:",N);return}}startStepSpan(T,E){var I;try{if(!this.tracer)return;const N=E||a.context.active(),$=T,H=$.time?new Date($.time):new Date,Z=this.tracer.startSpan(`event.${$.type}`,{attributes:this.processAttributes($,H)},N),te=a.trace.setSpan(N,Z);return{end:()=>Z.end(),setAttribute:(ee,oe)=>{Z.setAttribute(`cloudevents.event_data.${o(ee)}`,oe)},setStatus:(ee,oe)=>Z.setStatus({code:ee,message:oe}),recordException:ee=>Z.recordException(ee),context:te}}catch(N){!((I=this.config)===null||I===void 0)&&I.isProd||console.error("Event reporting failed:",N);return}}traceStep(T){const E=this.startStepSpan(T);if(E)return new r.TraceStep(E)}forceFlush(){return t(this,void 0,void 0,function*(){var T;return(T=this.tracerProvider)===null||T===void 0?void 0:T.forceFlush()})}shutdown(){return t(this,void 0,void 0,function*(){var T;return(T=this.tracerProvider)===null||T===void 0?void 0:T.shutdown()})}}e.BaseOtelClient=C})(xT)),xT}var fme;function JSt(){if(fme)return VS;fme=1,Object.defineProperty(VS,"__esModule",{value:!0}),VS.OtelClient=void 0;const e=Cwt,t=jwt,a=zSt,r=CSt,n=qSt,i=cme,o=ZSt();class s extends o.BaseOtelClient{constructor(){super(),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1})}initTracer(c){var u;if(!c.collectorUrl&&!c.collectorTraceUrl)return;const d=`ses_${(0,i.ulid)()}`;this.sessionId=d;const h=(0,t.resourceFromAttributes)({[r.ATTR_SERVICE_NAME]:c.serviceName,[r.ATTR_SERVICE_VERSION]:c.serviceVersion,session_id:d}),m=c.collectorTraceUrl||`${c.collectorUrl}/v1/traces`;this.tracerProvider=new e.WebTracerProvider({resource:h,spanProcessors:[new e.BatchSpanProcessor(new a.OTLPTraceExporter({url:m,headers:{}}))]}),this.tracer=this.tracerProvider.getTracer(c.tracerName),this.tracerProvider.register(),(0,n.registerInstrumentations)({instrumentations:(u=c.instrumentations)!==null&&u!==void 0?u:[]}),this.initialized=!0}}return VS.OtelClient=s,VS}var gme={},vme;function YSt(){return vme||(vme=1,Object.defineProperty(gme,"__esModule",{value:!0})),gme}var bme;function yme(){return bme||(bme=1,(function(e){var t=c1&&c1.__createBinding||(Object.create?(function(r,n,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(n,i);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(r,o,s)}):(function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]})),a=c1&&c1.__exportStar||function(r,n){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&t(n,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),a(JSt(),e),a(YSt(),e)})(c1)),c1}var kme;function XSt(){if(kme)return HS;kme=1,Object.defineProperty(HS,"__esModule",{value:!0}),HS.Telemetry=void 0;const e=yme(),t=hme();class a{constructor(){Object.defineProperty(this,"config",{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,"initialized",{enumerable:!0,configurable:!0,writable:!0,value:!1}),Object.defineProperty(this,"useCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"otelClient",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"tracer",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"updateCloudEventData",{enumerable:!0,configurable:!0,writable:!0,value:n=>{var i;!((i=this.config)===null||i===void 0)&&i.disabled||(this.useCloudEventData=n)}}),this.useCloudEventData=()=>({origin:"redoc",signal:"log"}),this.otelClient=new e.OtelClient,this.tracer={traceStep:(n,i)=>{const o=this.constructCloudEvent(n,i,{signal:"trace"});return this.otelClient.traceStep(o)}}}send(n,i,o){var s,l;try{if(!(!((s=this.config)===null||s===void 0)&&s.otel.isProd))return;const c=n&&typeof n=="object"&&"type"in n&&"data"in n?n:this.constructCloudEvent(n,i,Object.assign(Object.assign({},o),{signal:"log"}));this.sendToOtelService(c)}catch(c){!((l=this.config)===null||l===void 0)&&l.otel.isProd||console.error("Event reporting failed:",c)}}init(n){n.disabled||this.initialized||(this.config=n,this.initialized=!0,this.otelClient.init({serviceVersion:n.otel.serviceVersion,version:n.otel.version,isProd:n.otel.isProd,collectorUrl:n.otel.collectorUrl,collectorTraceUrl:n.otel.collectorTraceUrl,serviceName:n.otel.serviceName,tracerName:n.otel.tracerName,instrumentations:[...n.otel.instrumentations||[]]}))}startSpan(n,i,o){var s;if(!((s=this.config)===null||s===void 0)&&s.disabled)return;const l=this.constructCloudEvent(n,i,{signal:"trace"});return this.otelClient.startSpan(l,o)}constructCloudEvent(n,i,o){const s=Object.assign(Object.assign({},this.useCloudEventData()),o);return(0,t.mapToCloudEvent)(Object.assign(Object.assign({type:n,data:i},s),this.otelClient.sessionId&&{sessionId:this.otelClient.sessionId}))}sendToOtelService(n){var i;!((i=this.config)===null||i===void 0)&&i.otel.isProd||console.log("CloudEvent to be sent to OTEL service:",n),this.otelClient.send(Object.assign(Object.assign({},n),{signal:"log"}))}forceFlush(){var n;return!((n=this.config)===null||n===void 0)&&n.disabled?Promise.resolve():this.otelClient.forceFlush()}shutdown(){var n;return!((n=this.config)===null||n===void 0)&&n.disabled?Promise.resolve():this.otelClient.shutdown()}sendViewedMessage(n,i){this.send("com.redocly.page.viewed",n,i)}sendPerformanceMetricsMessage(n,i){this.send("com.redocly.redoc_performance_metrics",n,i)}sendDownloadDefinitionClickedMessage(n,i){this.send("com.redocly.download_definition.clicked",n,i)}sendCopyCodeSnippetClickedMessage(n,i){this.send("com.redocly.copy_code_snippet.clicked",n,i)}sendReferencedInClickedMessage(n,i){this.send("com.redocly.referenced_in.clicked",n,i)}sendSelectLanguageClickedMessage(n,i){this.send("com.redocly.select_language.clicked",n,i)}sendExpandCollapseAllClickedMessage(n,i){this.send("com.redocly.expand_collapse_all.clicked",n,i)}sendExamplesSwitcherClickedMessage(n,i){this.send("com.redocly.examples_switcher.clicked",n,i)}sendSwitchServersClickedMessage(n,i){this.send("com.redocly.switch_servers.clicked",n,i)}sendTryItOpenedMessage(n,i){this.send("com.redocly.try_it.opened",n,i)}sendChangeLayoutClickedMessage(n,i){this.send("com.redocly.change_layout.clicked",n,i)}sendViewSecurityDetailsClickedMessage(n,i){this.send("com.redocly.view_security_details.clicked",n,i)}sendViewSecurityDetailsClosedMessage(n,i){this.send("com.redocly.view_security_details.closed",n,i)}sendSearchOpenedMessage(n,i){this.send("com.redocly.search.opened",n,i)}sendSearchResultClickedMessage(n,i){this.send("com.redocly.search.result.clicked",n,i)}sendSearchInputResetClickedMessage(n,i){this.send("com.redocly.search_input_reset.clicked",n,i)}sendSwitchMessageClickedMessage(n,i){this.send("com.redocly.switch_message.clicked",n,i)}sendSwitchExampleClickedMessage(n,i){this.send("com.redocly.switch_example.clicked",n,i)}sendMessageClickedMessage(n,i){this.send("com.redocly.message.clicked",n,i)}sendServerModalOpenedMessage(n,i){this.send("com.redocly.server_modal.opened",n,i)}sendRequiredScopesModalOpenedMessage(n,i){this.send("com.redocly.required_scopes_modal.opened",n,i)}sendInitialMessage(n,i){this.send("com.redocly.redoc_initial",n,i)}sendErrorMessage(n,i){this.send("com.redocly.redoc_error",n,i)}}return HS.Telemetry=a,HS}var xme;function eOt(){return xme||(xme=1,(function(e){var t=l1&&l1.__createBinding||(Object.create?(function(r,n,i,o){o===void 0&&(o=i);var s=Object.getOwnPropertyDescriptor(n,i);(!s||("get"in s?!n.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return n[i]}}),Object.defineProperty(r,o,s)}):(function(r,n,i,o){o===void 0&&(o=i),r[o]=n[i]})),a=l1&&l1.__exportStar||function(r,n){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(n,i)&&t(n,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),a(hut(),e),a(XSt(),e),a(yme(),e)})(l1)),l1}var wme={},Sme;function tOt(){return Sme||(Sme=1,Object.defineProperty(wme,"__esModule",{value:!0})),wme}var Ome;function aOt(){return Ome||(Ome=1,(function(e){var t=s1&&s1.__createBinding||(Object.create?(function(n,i,o,s){s===void 0&&(s=o);var l=Object.getOwnPropertyDescriptor(i,o);(!l||("get"in l?!i.__esModule:l.writable||l.configurable))&&(l={enumerable:!0,get:function(){return i[o]}}),Object.defineProperty(n,s,l)}):(function(n,i,o,s){s===void 0&&(s=o),n[s]=i[o]})),a=s1&&s1.__exportStar||function(n,i){for(var o in n)o!=="default"&&!Object.prototype.hasOwnProperty.call(i,o)&&t(i,n,o)};Object.defineProperty(e,"__esModule",{value:!0}),e.Telemetry=void 0;var r=eOt();Object.defineProperty(e,"Telemetry",{enumerable:!0,get:function(){return r.Telemetry}}),a(tOt(),e)})(s1)),s1}var rOt=aOt();const nOt="@redocly/openapi-docs",iOt="3.21.0-next.3",zme={name:nOt,version:iOt},oOt="https://otel.cloud.redocly.com/v1/traces";class Cme extends rOt.Telemetry{specType;constructor(t){super(),this.specType=t.specType,this.init({otel:{isProd:!0,serviceVersion:t.serviceVersion||`${zme.name}@${zme.version}`,version:"1.0.0",collectorTraceUrl:t.collectorUrl||oOt,serviceName:t.serviceName||"redoc-ce",tracerName:"client-telemetry"},disabled:t.disabled||!1})}send(t,a){a&&Array.isArray(a)&&a.length>0&&(a=a.map(r=>r&&typeof r=="object"?{...r,specType:this.specType}:r)),super.send(t,a,{env:"production"})}}var sOt=Object.create,wT=Object.defineProperty,lOt=Object.getOwnPropertyDescriptor,cOt=Object.getOwnPropertyNames,uOt=Object.getPrototypeOf,dOt=Object.prototype.hasOwnProperty,jme=e=>wT(e,"__esModule",{value:!0}),sa=(e,t)=>function(){return t||(0,e[Object.keys(e)[0]])((t={exports:{}}).exports,t),t.exports},Pme=(e,t)=>{jme(e);for(var a in t)wT(e,a,{get:t[a],enumerable:!0})},pOt=(e,t,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of cOt(t))!dOt.call(e,r)&&r!=="default"&&wT(e,r,{get:()=>t[r],enumerable:!(a=lOt(t,r))||a.enumerable});return e},ST=e=>pOt(jme(wT(e!=null?sOt(uOt(e)):{},"default",e&&e.__esModule&&"default"in e?{get:()=>e.default,enumerable:!0}:{value:e,enumerable:!0})),e),Ame=sa({"src/grammar/tag.js"(e,t){function a(i,o){function s(){this.constructor=i}s.prototype=o.prototype,i.prototype=new s}function r(i,o,s,l){this.message=i,this.expected=o,this.found=s,this.location=l,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,r)}a(r,Error),r.buildMessage=function(i,o,s){var l={literal:function(v){return'"'+u(v.text)+'"'},class:function(v){var b=v.parts.map(function(k){return Array.isArray(k)?d(k[0])+"-"+d(k[1]):d(k)});return"["+(v.inverted?"^":"")+b+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(v){return v.description},not:function(v){return"not "+h(v.expected)}};function c(v){return v.charCodeAt(0).toString(16).toUpperCase()}function u(v){return v.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+c(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+c(b)})}function d(v){return v.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(b){return"\\x0"+c(b)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(b){return"\\x"+c(b)})}function h(v){return l[v.type](v)}function m(v){var b=v.map(h),k,x;if(b.sort(),b.length>0){for(k=1,x=1;k<b.length;k++)b[k-1]!==b[k]&&(b[x]=b[k],x++);b.length=x}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function g(v){return v?'"'+u(v)+'"':"end of input"}return"Expected "+m(i)+" but "+g(o)+" found."};function n(i,o){o=o!==void 0?o:{};var s={},l={Top:Sa},c=Sa,u="/",d=".",h="#",m="=",g="(",v=")",b=",",k="[",x="]",w="null",z="true",S="false",C="{",j="}",T=":",E='"',I="\\",N="n",$="r",H="t",Z=/^[$@]/,te=/^[0-9]/,ee=/^[^\0-\x1F"\\]/,oe=/^[a-zA-Z0-9_\-]/,ae=/^[ \n\t]/,ce=ar("/",!1),Q=qa("tag name"),V=qa("class"),Y=qa("id"),G=ar("=",!1),D=ar("(",!1),U=ar(")",!1),K=ar(",",!1),X=qa("variable"),J=qa("null"),he=qa("boolean"),Oe=ar("[",!1),M=ar("]",!1),L=ar("{",!1),re=ar("}",!1),ve=ar(":",!1),we=qa("number"),ke=qa("string"),le=qa("identifier"),je=qa("whitespace"),be=function(Se){return{type:"variable",meta:{variable:Se}}},Re=function(Se){return{type:"annotation",meta:{attributes:Se}}},Ce=function(Se,Ke){return Ke},Me=function(Se,Ke,Ge,ut){Ke&&(Ge=Ge||[],Ge.unshift({type:"attribute",name:"primary",value:Ke}));const[zt,Ut]=ut?["tag",0]:["tag_open",1];return{type:zt,nesting:Ut,meta:{tag:Se,attributes:Ge}}},de=function(Se){return{type:"tag_close",nesting:-1,meta:{tag:Se}}},Ae=function(Se,Ke){return Se?[Se,...Ke]:[]},Qe=function(Se){return Se},We=function(Se){return Se},_=function(Se){return Se},W=function(Se){return Se},ne=function(Se){return{type:"class",name:Se,value:!0}},ge=function(Se){return{type:"attribute",name:"id",value:Se}},Pe=function(Se,Ke){return{type:"attribute",name:Se,value:Ke}},Te=function(Se,Ke,Ge){return Ke?[Ke,...Ge]:[]},Le=function(Se,Ke){let Ge={};for(let[ut,{name:zt,value:Ut}]of Ke.entries())Ge[zt||ut]=Ut;return new Hl(Se,Ge)},rt=function(Se){return Se},ot=function(Se,Ke){return{name:Se,value:Ke}},Je=function(Se){return Se},Xe=function(Se,Ke,Ge){return Se==="@"?[Ke,...Ge]:new Xo([Ke,...Ge])},jt=function(){return null},Pa=function(){return!0},wt=function(){return!1},_t=function(Se,Ke){return[Se,...Ke]},Dt=function(Se){return Se||[]},ta=function(Se,Ke){return Object.assign(Se,...Ke)},fa=function(Se){return Se||{}},ua=function(Se,Ke){return Se==="$$mdtype"?{}:{[Se]:Ke}},ga=function(){return parseFloat(ei())},Wr=function(Se){return Se.join("")},hr=function(){return`
|
|
6569
6604
|
`},Da=function(){return"\r"},ir=function(){return" "},jr=function(Se){return Se},He=0,Yt=0,Kr=[{line:1,column:1}],Pr=[],Xt=0,Zr;if("startRule"in o){if(!(o.startRule in l))throw new Error(`Can't start parsing from rule "`+o.startRule+'".');c=l[o.startRule]}function ei(){return i.substring(Yt,He)}function ar(Se,Ke){return{type:"literal",text:Se,ignoreCase:Ke}}function Zt(){return{type:"end"}}function qa(Se){return{type:"other",description:Se}}function qn(Se){var Ke=Kr[Se],Ge;if(Ke)return Ke;for(Ge=Se-1;!Kr[Ge];)Ge--;for(Ke=Kr[Ge],Ke={line:Ke.line,column:Ke.column};Ge<Se;)i.charCodeAt(Ge)===10?(Ke.line++,Ke.column=1):Ke.column++,Ge++;return Kr[Se]=Ke,Ke}var Oi=typeof o.filename=="string"&&o.filename.length>0;function hi(Se,Ke){var Ge={};Oi&&(Ge.filename=o.filename);var ut=qn(Se);Ge.start={offset:Se,line:ut.line,column:ut.column};var zt=qn(Ke);return Ge.end={offset:Ke,line:zt.line,column:zt.column},Ge}function mi(){Pr.push({pos:He,variants:[]})}function Ie(Se){var Ke=Pr[Pr.length-1];He<Ke.pos||(He>Ke.pos&&(Ke.pos=He,Ke.variants=[]),Ke.variants.push(Se))}function Et(Se,Ke,Ge){return new r(r.buildMessage(Se,Ke,Ge),Se,Ke,Ge)}function St(){var Se=Pr[0],Ke=Se.pos;return Et(Se.variants,Ke<i.length?i.charAt(Ke):null,Ke<i.length?hi(Ke,Ke+1):hi(Ke,Ke))}function Sa(){var Se;return Se=Ia(),Se===s&&(Se=_e(),Se===s&&(Se=Ga(),Se===s&&(Se=qr()))),Se}function Ia(){var Se,Ke;return Se=He,Ke=Er(),Ke===s&&(Ke=To()),Ke!==s&&(Yt=Se,Ke=be(Ke)),Se=Ke,Se}function _e(){var Se,Ke,Ge,ut;if(Se=He,Ke=na(),Ke!==s){for(Ge=[],ut=or();ut!==s;)Ge.push(ut),ut=or();Yt=Se,Se=Re(Ke)}else He=Se,Se=s;return Se}function Ga(){var Se,Ke,Ge,ut,zt,Ut,Ma,Sn=function(Mo){Xt===0&&Ie(Mo)};if(Se=He,Ke=Ar(),Ke!==s){for(Ge=[],ut=or();ut!==s;)Ge.push(ut),ut=or();for(ut=He,zt=ti(),zt!==s?(Ut=or(),Ut===s&&(Ut=null),Yt=ut,ut=Ce(Ke,zt)):(He=ut,ut=s),ut===s&&(ut=null),zt=na(),zt===s&&(zt=null),Ut=[],Ma=or();Ma!==s;)Ut.push(Ma),Ma=or();Sn(ce),i.charCodeAt(He)===47?(Ma=u,He++):Ma=s,Ma===s&&(Ma=null),Yt=Se,Se=Me(Ke,ut,zt,Ma)}else He=Se,Se=s;return Se}function qr(){var Se,Ke,Ge,ut=function(zt){Xt===0&&Ie(zt)};return Se=He,ut(ce),i.charCodeAt(He)===47?(Ke=u,He++):Ke=s,Ke!==s?(Ge=Ar(),Ge!==s?(Yt=Se,Se=de(Ge)):(He=Se,Se=s)):(He=Se,Se=s),Se}function Ar(){var Se,Ke=function(Ge){Xt===0&&Ie(Ge)};return Ke(Q),Xt++,Se=Yo(),Xt--,Se}function na(){var Se,Ke,Ge,ut;if(Se=He,Ke=fi(),Ke!==s){for(Ge=[],ut=er();ut!==s;)Ge.push(ut),ut=er();Yt=Se,Se=Ae(Ke,Ge)}else He=Se,Se=s;return Se}function er(){var Se,Ke,Ge;if(Se=He,Ke=[],Ge=or(),Ge!==s)for(;Ge!==s;)Ke.push(Ge),Ge=or();else Ke=s;return Ke!==s?(Ge=fi(),Ge!==s?(Yt=Se,Se=Qe(Ge)):(He=Se,Se=s)):(He=Se,Se=s),Se}function fi(){var Se,Ke;return Se=He,Ke=gi(),Ke!==s&&(Yt=Se,Ke=We(Ke)),Se=Ke,Se===s&&(Se=He,Ke=Qi(),Ke!==s&&(Yt=Se,Ke=_(Ke)),Se=Ke,Se===s&&(Se=He,Ke=Ao(),Ke!==s&&(Yt=Se,Ke=W(Ke)),Se=Ke)),Se}function Qi(){var Se,Ke,Ge,ut=function(zt){Xt===0&&Ie(zt)};return ut(V),Xt++,Se=He,i.charCodeAt(He)===46?(Ke=d,He++):Ke=s,Ke!==s?(Ge=Yo(),Ge!==s?(Yt=Se,Se=ne(Ge)):(He=Se,Se=s)):(He=Se,Se=s),Xt--,Se}function gi(){var Se,Ke,Ge,ut=function(zt){Xt===0&&Ie(zt)};return ut(Y),Xt++,Se=He,i.charCodeAt(He)===35?(Ke=h,He++):Ke=s,Ke!==s?(Ge=Yo(),Ge!==s?(Yt=Se,Se=ge(Ge)):(He=Se,Se=s)):(He=Se,Se=s),Xt--,Se}function Ao(){var Se,Ke,Ge,ut,zt=function(Ut){Xt===0&&Ie(Ut)};return Se=He,Ke=Yo(),Ke!==s?(zt(G),i.charCodeAt(He)===61?(Ge=m,He++):Ge=s,Ge!==s?(ut=ti(),ut!==s?(Yt=Se,Se=Pe(Ke,ut)):(He=Se,Se=s)):(He=Se,Se=s)):(He=Se,Se=s),Se}function To(){var Se,Ke,Ge,ut,zt,Ut,Ma,Sn,Mo=function(nu){Xt===0&&Ie(nu)};if(Se=He,Ke=Yo(),Ke!==s)if(Mo(D),i.charCodeAt(He)===40?(Ge=g,He++):Ge=s,Ge!==s){for(ut=[],zt=or();zt!==s;)ut.push(zt),zt=or();for(zt=He,Ut=Aa(),Ut===s&&(Ut=null),Ma=[],Sn=yn();Sn!==s;)Ma.push(Sn),Sn=yn();Yt=zt,zt=Te(Ke,Ut,Ma),Mo(U),i.charCodeAt(He)===41?(Ut=v,He++):Ut=s,Ut!==s?(Yt=Se,Se=Le(Ke,zt)):(He=Se,Se=s)}else He=Se,Se=s;else He=Se,Se=s;return Se}function Aa(){var Se,Ke,Ge,ut,zt=function(Ut){Xt===0&&Ie(Ut)};return Se=He,Ke=He,Ge=Yo(),Ge!==s?(zt(G),i.charCodeAt(He)===61?(ut=m,He++):ut=s,ut!==s?(Yt=Ke,Ke=rt(Ge)):(He=Ke,Ke=s)):(He=Ke,Ke=s),Ke===s&&(Ke=null),Ge=ti(),Ge!==s?(Yt=Se,Se=ot(Ke,Ge)):(He=Se,Se=s),Se}function yn(){var Se,Ke,Ge,ut,zt,Ut=function(Ma){Xt===0&&Ie(Ma)};for(Se=He,Ke=[],Ge=or();Ge!==s;)Ke.push(Ge),Ge=or();if(Ut(K),i.charCodeAt(He)===44?(Ge=b,He++):Ge=s,Ge!==s){for(ut=[],zt=or();zt!==s;)ut.push(zt),zt=or();zt=Aa(),zt!==s?(Yt=Se,Se=Je(zt)):(He=Se,Se=s)}else He=Se,Se=s;return Se}function Gt(){var Se,Ke,Ge,ut=function(zt){Xt===0&&Ie(zt)};for(Se=He,Ke=[],Ge=or();Ge!==s;)Ke.push(Ge),Ge=or();return ut(K),i.charCodeAt(He)===44?(Ge=b,He++):Ge=s,Ge!==s?(Ke=[Ke,Ge],Se=Ke):(He=Se,Se=s),Se===s&&(Se=null),Se}function Er(){var Se,Ke,Ge,ut,zt,Ut=function(Ma){Xt===0&&Ie(Ma)};if(Ut(X),Xt++,Se=He,Z.test(i.charAt(He))?(Ke=i.charAt(He),He++):Ke=s,Ke!==s)if(Ge=Yo(),Ge!==s){for(ut=[],zt=Li();zt!==s;)ut.push(zt),zt=Li();Yt=Se,Se=Xe(Ke,Ge,ut)}else He=Se,Se=s;else He=Se,Se=s;return Xt--,Se}function Li(){var Se,Ke,Ge,ut;return Se=He,i.charCodeAt(He)===46?(Ke=d,He++):Ke=s,Ke!==s?(Ge=Yo(),Ge!==s?(Yt=Se,Se=rt(Ge)):(He=Se,Se=s)):(He=Se,Se=s),Se===s&&(Se=He,i.charCodeAt(He)===91?(Ke=k,He++):Ke=s,Ke!==s?(Ge=Zo(),Ge===s&&(Ge=_o()),Ge!==s?(i.charCodeAt(He)===93?(ut=x,He++):ut=s,ut!==s?(Yt=Se,Se=Je(Ge)):(He=Se,Se=s)):(He=Se,Se=s)):(He=Se,Se=s)),Se}function ti(){var Se;return Se=Os(),Se===s&&(Se=Or(),Se===s&&(Se=_o(),Se===s&&(Se=Zo(),Se===s&&(Se=Bi(),Se===s&&(Se=Gn(),Se===s&&(Se=To(),Se===s&&(Se=Er()))))))),Se}function Os(){var Se,Ke,Ge=function(ut){Xt===0&&Ie(ut)};return Ge(J),Xt++,Se=He,i.substr(He,4)===w?(Ke=w,He+=4):Ke=s,Ke!==s&&(Yt=Se,Ke=jt()),Se=Ke,Xt--,Se}function Or(){var Se,Ke,Ge=function(ut){Xt===0&&Ie(ut)};return Ge(he),Xt++,Se=He,i.substr(He,4)===z?(Ke=z,He+=4):Ke=s,Ke!==s&&(Yt=Se,Ke=Pa()),Se=Ke,Se===s&&(Se=He,i.substr(He,5)===S?(Ke=S,He+=5):Ke=s,Ke!==s&&(Yt=Se,Ke=wt()),Se=Ke),Xt--,Se}function Bi(){var Se,Ke,Ge,ut,zt,Ut,Ma,Sn=function(Mo){Xt===0&&Ie(Mo)};if(Se=He,Sn(Oe),i.charCodeAt(He)===91?(Ke=k,He++):Ke=s,Ke!==s){for(Ge=[],ut=or();ut!==s;)Ge.push(ut),ut=or();if(ut=He,zt=ti(),zt!==s){for(Ut=[],Ma=Jr();Ma!==s;)Ut.push(Ma),Ma=Jr();Ma=Gt(),Yt=ut,ut=_t(zt,Ut)}else He=ut,ut=s;for(ut===s&&(ut=null),zt=[],Ut=or();Ut!==s;)zt.push(Ut),Ut=or();Sn(M),i.charCodeAt(He)===93?(Ut=x,He++):Ut=s,Ut!==s?(Yt=Se,Se=Dt(ut)):(He=Se,Se=s)}else He=Se,Se=s;return Se}function Jr(){var Se,Ke,Ge,ut,zt,Ut=function(Ma){Xt===0&&Ie(Ma)};for(Se=He,Ke=[],Ge=or();Ge!==s;)Ke.push(Ge),Ge=or();if(Ut(K),i.charCodeAt(He)===44?(Ge=b,He++):Ge=s,Ge!==s){for(ut=[],zt=or();zt!==s;)ut.push(zt),zt=or();zt=ti(),zt!==s?(Yt=Se,Se=Je(zt)):(He=Se,Se=s)}else He=Se,Se=s;return Se}function Gn(){var Se,Ke,Ge,ut,zt,Ut,Ma,Sn=function(Mo){Xt===0&&Ie(Mo)};if(Se=He,Sn(L),i.charCodeAt(He)===123?(Ke=C,He++):Ke=s,Ke!==s){for(Ge=[],ut=or();ut!==s;)Ge.push(ut),ut=or();if(ut=He,zt=Kl(),zt!==s){for(Ut=[],Ma=Es();Ma!==s;)Ut.push(Ma),Ma=Es();Ma=Gt(),Yt=ut,ut=ta(zt,Ut)}else He=ut,ut=s;for(ut===s&&(ut=null),zt=[],Ut=or();Ut!==s;)zt.push(Ut),Ut=or();Sn(re),i.charCodeAt(He)===125?(Ut=j,He++):Ut=s,Ut!==s?(Yt=Se,Se=fa(ut)):(He=Se,Se=s)}else He=Se,Se=s;return Se}function Es(){var Se,Ke,Ge,ut,zt,Ut=function(Ma){Xt===0&&Ie(Ma)};for(Se=He,Ke=[],Ge=or();Ge!==s;)Ke.push(Ge),Ge=or();if(Ut(K),i.charCodeAt(He)===44?(Ge=b,He++):Ge=s,Ge!==s){for(ut=[],zt=or();zt!==s;)ut.push(zt),zt=or();zt=Kl(),zt!==s?(Yt=Se,Se=Qe(zt)):(He=Se,Se=s)}else He=Se,Se=s;return Se}function Kl(){var Se,Ke,Ge,ut,zt,Ut=function(Ma){Xt===0&&Ie(Ma)};if(Se=He,Ke=Yo(),Ke===s&&(Ke=_o()),Ke!==s)if(Ut(ve),i.charCodeAt(He)===58?(Ge=T,He++):Ge=s,Ge!==s){for(ut=[],zt=or();zt!==s;)ut.push(zt),zt=or();zt=ti(),zt!==s?(Yt=Se,Se=ua(Ke,zt)):(He=Se,Se=s)}else He=Se,Se=s;else He=Se,Se=s;return Se}function Zo(){var Se,Ke,Ge,ut,zt,Ut,Ma=function(Sn){Xt===0&&Ie(Sn)};if(Ma(we),Xt++,Se=He,i.charCodeAt(He)===45&&He++,Ke=[],te.test(i.charAt(He))?(Ge=i.charAt(He),He++):Ge=s,Ge!==s)for(;Ge!==s;)Ke.push(Ge),te.test(i.charAt(He))?(Ge=i.charAt(He),He++):Ge=s;else Ke=s;if(Ke!==s){if(Ge=He,i.charCodeAt(He)===46?(ut=d,He++):ut=s,ut!==s){if(zt=[],te.test(i.charAt(He))?(Ut=i.charAt(He),He++):Ut=s,Ut!==s)for(;Ut!==s;)zt.push(Ut),te.test(i.charAt(He))?(Ut=i.charAt(He),He++):Ut=s;else zt=s;zt!==s?(ut=[ut,zt],Ge=ut):(He=Ge,Ge=s)}else He=Ge,Ge=s;Ge===s&&(Ge=null),Yt=Se,Se=ga()}else He=Se,Se=s;return Xt--,Se}function _o(){var Se,Ke,Ge,ut,zt=function(Ut){Xt===0&&Ie(Ut)};if(zt(ke),Xt++,Se=He,i.charCodeAt(He)===34?(Ke=E,He++):Ke=s,Ke!==s){for(Ge=[],ut=Jo();ut!==s;)Ge.push(ut),ut=Jo();i.charCodeAt(He)===34?(ut=E,He++):ut=s,ut!==s?(Yt=Se,Se=Wr(Ge)):(He=Se,Se=s)}else He=Se,Se=s;return Xt--,Se}function Jo(){var Se;return ee.test(i.charAt(He))?(Se=i.charAt(He),He++):Se=s,Se===s&&(Se=Rs()),Se}function Rs(){var Se,Ke,Ge,ut;return Se=He,i.charCodeAt(He)===92?(Ke=I,He++):Ke=s,Ke!==s?(i.charCodeAt(He)===34?(Ge=E,He++):Ge=s,Ge===s&&(i.charCodeAt(He)===92?(Ge=I,He++):Ge=s,Ge===s&&(Ge=He,i.charCodeAt(He)===110?(ut=N,He++):ut=s,ut!==s&&(Yt=Ge,ut=hr()),Ge=ut,Ge===s&&(Ge=He,i.charCodeAt(He)===114?(ut=$,He++):ut=s,ut!==s&&(Yt=Ge,ut=Da()),Ge=ut,Ge===s&&(Ge=He,i.charCodeAt(He)===116?(ut=H,He++):ut=s,ut!==s&&(Yt=Ge,ut=ir()),Ge=ut)))),Ge!==s?(Yt=Se,Se=jr(Ge)):(He=Se,Se=s)):(He=Se,Se=s),Se}function Yo(){var Se,Ke,Ge,ut=function(zt){Xt===0&&Ie(zt)};if(ut(le),Xt++,Se=He,Ke=[],oe.test(i.charAt(He))?(Ge=i.charAt(He),He++):Ge=s,Ge!==s)for(;Ge!==s;)Ke.push(Ge),oe.test(i.charAt(He))?(Ge=i.charAt(He),He++):Ge=s;else Ke=s;return Ke!==s?Se=i.substring(Se,He):Se=Ke,Xt--,Se}function or(){var Se,Ke=function(Ge){Xt===0&&Ie(Ge)};return Ke(je),Xt++,ae.test(i.charAt(He))?(Se=i.charAt(He),He++):Se=s,Xt--,Se}const{Variable:Xo,Function:Hl}=o;if(mi(),Zr=c(),Zr!==s&&He===i.length)return Zr;throw Zr!==s&&He<i.length&&Ie(Zt()),St()}t.exports={SyntaxError:r,parse:n}}}),hOt=sa({"node_modules/entities/lib/maps/entities.json"(e,t){t.exports={Aacute:"\xC1",aacute:"\xE1",Abreve:"\u0102",abreve:"\u0103",ac:"\u223E",acd:"\u223F",acE:"\u223E\u0333",Acirc:"\xC2",acirc:"\xE2",acute:"\xB4",Acy:"\u0410",acy:"\u0430",AElig:"\xC6",aelig:"\xE6",af:"\u2061",Afr:"\u{1D504}",afr:"\u{1D51E}",Agrave:"\xC0",agrave:"\xE0",alefsym:"\u2135",aleph:"\u2135",Alpha:"\u0391",alpha:"\u03B1",Amacr:"\u0100",amacr:"\u0101",amalg:"\u2A3F",amp:"&",AMP:"&",andand:"\u2A55",And:"\u2A53",and:"\u2227",andd:"\u2A5C",andslope:"\u2A58",andv:"\u2A5A",ang:"\u2220",ange:"\u29A4",angle:"\u2220",angmsdaa:"\u29A8",angmsdab:"\u29A9",angmsdac:"\u29AA",angmsdad:"\u29AB",angmsdae:"\u29AC",angmsdaf:"\u29AD",angmsdag:"\u29AE",angmsdah:"\u29AF",angmsd:"\u2221",angrt:"\u221F",angrtvb:"\u22BE",angrtvbd:"\u299D",angsph:"\u2222",angst:"\xC5",angzarr:"\u237C",Aogon:"\u0104",aogon:"\u0105",Aopf:"\u{1D538}",aopf:"\u{1D552}",apacir:"\u2A6F",ap:"\u2248",apE:"\u2A70",ape:"\u224A",apid:"\u224B",apos:"'",ApplyFunction:"\u2061",approx:"\u2248",approxeq:"\u224A",Aring:"\xC5",aring:"\xE5",Ascr:"\u{1D49C}",ascr:"\u{1D4B6}",Assign:"\u2254",ast:"*",asymp:"\u2248",asympeq:"\u224D",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",awconint:"\u2233",awint:"\u2A11",backcong:"\u224C",backepsilon:"\u03F6",backprime:"\u2035",backsim:"\u223D",backsimeq:"\u22CD",Backslash:"\u2216",Barv:"\u2AE7",barvee:"\u22BD",barwed:"\u2305",Barwed:"\u2306",barwedge:"\u2305",bbrk:"\u23B5",bbrktbrk:"\u23B6",bcong:"\u224C",Bcy:"\u0411",bcy:"\u0431",bdquo:"\u201E",becaus:"\u2235",because:"\u2235",Because:"\u2235",bemptyv:"\u29B0",bepsi:"\u03F6",bernou:"\u212C",Bernoullis:"\u212C",Beta:"\u0392",beta:"\u03B2",beth:"\u2136",between:"\u226C",Bfr:"\u{1D505}",bfr:"\u{1D51F}",bigcap:"\u22C2",bigcirc:"\u25EF",bigcup:"\u22C3",bigodot:"\u2A00",bigoplus:"\u2A01",bigotimes:"\u2A02",bigsqcup:"\u2A06",bigstar:"\u2605",bigtriangledown:"\u25BD",bigtriangleup:"\u25B3",biguplus:"\u2A04",bigvee:"\u22C1",bigwedge:"\u22C0",bkarow:"\u290D",blacklozenge:"\u29EB",blacksquare:"\u25AA",blacktriangle:"\u25B4",blacktriangledown:"\u25BE",blacktriangleleft:"\u25C2",blacktriangleright:"\u25B8",blank:"\u2423",blk12:"\u2592",blk14:"\u2591",blk34:"\u2593",block:"\u2588",bne:"=\u20E5",bnequiv:"\u2261\u20E5",bNot:"\u2AED",bnot:"\u2310",Bopf:"\u{1D539}",bopf:"\u{1D553}",bot:"\u22A5",bottom:"\u22A5",bowtie:"\u22C8",boxbox:"\u29C9",boxdl:"\u2510",boxdL:"\u2555",boxDl:"\u2556",boxDL:"\u2557",boxdr:"\u250C",boxdR:"\u2552",boxDr:"\u2553",boxDR:"\u2554",boxh:"\u2500",boxH:"\u2550",boxhd:"\u252C",boxHd:"\u2564",boxhD:"\u2565",boxHD:"\u2566",boxhu:"\u2534",boxHu:"\u2567",boxhU:"\u2568",boxHU:"\u2569",boxminus:"\u229F",boxplus:"\u229E",boxtimes:"\u22A0",boxul:"\u2518",boxuL:"\u255B",boxUl:"\u255C",boxUL:"\u255D",boxur:"\u2514",boxuR:"\u2558",boxUr:"\u2559",boxUR:"\u255A",boxv:"\u2502",boxV:"\u2551",boxvh:"\u253C",boxvH:"\u256A",boxVh:"\u256B",boxVH:"\u256C",boxvl:"\u2524",boxvL:"\u2561",boxVl:"\u2562",boxVL:"\u2563",boxvr:"\u251C",boxvR:"\u255E",boxVr:"\u255F",boxVR:"\u2560",bprime:"\u2035",breve:"\u02D8",Breve:"\u02D8",brvbar:"\xA6",bscr:"\u{1D4B7}",Bscr:"\u212C",bsemi:"\u204F",bsim:"\u223D",bsime:"\u22CD",bsolb:"\u29C5",bsol:"\\",bsolhsub:"\u27C8",bull:"\u2022",bullet:"\u2022",bump:"\u224E",bumpE:"\u2AAE",bumpe:"\u224F",Bumpeq:"\u224E",bumpeq:"\u224F",Cacute:"\u0106",cacute:"\u0107",capand:"\u2A44",capbrcup:"\u2A49",capcap:"\u2A4B",cap:"\u2229",Cap:"\u22D2",capcup:"\u2A47",capdot:"\u2A40",CapitalDifferentialD:"\u2145",caps:"\u2229\uFE00",caret:"\u2041",caron:"\u02C7",Cayleys:"\u212D",ccaps:"\u2A4D",Ccaron:"\u010C",ccaron:"\u010D",Ccedil:"\xC7",ccedil:"\xE7",Ccirc:"\u0108",ccirc:"\u0109",Cconint:"\u2230",ccups:"\u2A4C",ccupssm:"\u2A50",Cdot:"\u010A",cdot:"\u010B",cedil:"\xB8",Cedilla:"\xB8",cemptyv:"\u29B2",cent:"\xA2",centerdot:"\xB7",CenterDot:"\xB7",cfr:"\u{1D520}",Cfr:"\u212D",CHcy:"\u0427",chcy:"\u0447",check:"\u2713",checkmark:"\u2713",Chi:"\u03A7",chi:"\u03C7",circ:"\u02C6",circeq:"\u2257",circlearrowleft:"\u21BA",circlearrowright:"\u21BB",circledast:"\u229B",circledcirc:"\u229A",circleddash:"\u229D",CircleDot:"\u2299",circledR:"\xAE",circledS:"\u24C8",CircleMinus:"\u2296",CirclePlus:"\u2295",CircleTimes:"\u2297",cir:"\u25CB",cirE:"\u29C3",cire:"\u2257",cirfnint:"\u2A10",cirmid:"\u2AEF",cirscir:"\u29C2",ClockwiseContourIntegral:"\u2232",CloseCurlyDoubleQuote:"\u201D",CloseCurlyQuote:"\u2019",clubs:"\u2663",clubsuit:"\u2663",colon:":",Colon:"\u2237",Colone:"\u2A74",colone:"\u2254",coloneq:"\u2254",comma:",",commat:"@",comp:"\u2201",compfn:"\u2218",complement:"\u2201",complexes:"\u2102",cong:"\u2245",congdot:"\u2A6D",Congruent:"\u2261",conint:"\u222E",Conint:"\u222F",ContourIntegral:"\u222E",copf:"\u{1D554}",Copf:"\u2102",coprod:"\u2210",Coproduct:"\u2210",copy:"\xA9",COPY:"\xA9",copysr:"\u2117",CounterClockwiseContourIntegral:"\u2233",crarr:"\u21B5",cross:"\u2717",Cross:"\u2A2F",Cscr:"\u{1D49E}",cscr:"\u{1D4B8}",csub:"\u2ACF",csube:"\u2AD1",csup:"\u2AD0",csupe:"\u2AD2",ctdot:"\u22EF",cudarrl:"\u2938",cudarrr:"\u2935",cuepr:"\u22DE",cuesc:"\u22DF",cularr:"\u21B6",cularrp:"\u293D",cupbrcap:"\u2A48",cupcap:"\u2A46",CupCap:"\u224D",cup:"\u222A",Cup:"\u22D3",cupcup:"\u2A4A",cupdot:"\u228D",cupor:"\u2A45",cups:"\u222A\uFE00",curarr:"\u21B7",curarrm:"\u293C",curlyeqprec:"\u22DE",curlyeqsucc:"\u22DF",curlyvee:"\u22CE",curlywedge:"\u22CF",curren:"\xA4",curvearrowleft:"\u21B6",curvearrowright:"\u21B7",cuvee:"\u22CE",cuwed:"\u22CF",cwconint:"\u2232",cwint:"\u2231",cylcty:"\u232D",dagger:"\u2020",Dagger:"\u2021",daleth:"\u2138",darr:"\u2193",Darr:"\u21A1",dArr:"\u21D3",dash:"\u2010",Dashv:"\u2AE4",dashv:"\u22A3",dbkarow:"\u290F",dblac:"\u02DD",Dcaron:"\u010E",dcaron:"\u010F",Dcy:"\u0414",dcy:"\u0434",ddagger:"\u2021",ddarr:"\u21CA",DD:"\u2145",dd:"\u2146",DDotrahd:"\u2911",ddotseq:"\u2A77",deg:"\xB0",Del:"\u2207",Delta:"\u0394",delta:"\u03B4",demptyv:"\u29B1",dfisht:"\u297F",Dfr:"\u{1D507}",dfr:"\u{1D521}",dHar:"\u2965",dharl:"\u21C3",dharr:"\u21C2",DiacriticalAcute:"\xB4",DiacriticalDot:"\u02D9",DiacriticalDoubleAcute:"\u02DD",DiacriticalGrave:"`",DiacriticalTilde:"\u02DC",diam:"\u22C4",diamond:"\u22C4",Diamond:"\u22C4",diamondsuit:"\u2666",diams:"\u2666",die:"\xA8",DifferentialD:"\u2146",digamma:"\u03DD",disin:"\u22F2",div:"\xF7",divide:"\xF7",divideontimes:"\u22C7",divonx:"\u22C7",DJcy:"\u0402",djcy:"\u0452",dlcorn:"\u231E",dlcrop:"\u230D",dollar:"$",Dopf:"\u{1D53B}",dopf:"\u{1D555}",Dot:"\xA8",dot:"\u02D9",DotDot:"\u20DC",doteq:"\u2250",doteqdot:"\u2251",DotEqual:"\u2250",dotminus:"\u2238",dotplus:"\u2214",dotsquare:"\u22A1",doublebarwedge:"\u2306",DoubleContourIntegral:"\u222F",DoubleDot:"\xA8",DoubleDownArrow:"\u21D3",DoubleLeftArrow:"\u21D0",DoubleLeftRightArrow:"\u21D4",DoubleLeftTee:"\u2AE4",DoubleLongLeftArrow:"\u27F8",DoubleLongLeftRightArrow:"\u27FA",DoubleLongRightArrow:"\u27F9",DoubleRightArrow:"\u21D2",DoubleRightTee:"\u22A8",DoubleUpArrow:"\u21D1",DoubleUpDownArrow:"\u21D5",DoubleVerticalBar:"\u2225",DownArrowBar:"\u2913",downarrow:"\u2193",DownArrow:"\u2193",Downarrow:"\u21D3",DownArrowUpArrow:"\u21F5",DownBreve:"\u0311",downdownarrows:"\u21CA",downharpoonleft:"\u21C3",downharpoonright:"\u21C2",DownLeftRightVector:"\u2950",DownLeftTeeVector:"\u295E",DownLeftVectorBar:"\u2956",DownLeftVector:"\u21BD",DownRightTeeVector:"\u295F",DownRightVectorBar:"\u2957",DownRightVector:"\u21C1",DownTeeArrow:"\u21A7",DownTee:"\u22A4",drbkarow:"\u2910",drcorn:"\u231F",drcrop:"\u230C",Dscr:"\u{1D49F}",dscr:"\u{1D4B9}",DScy:"\u0405",dscy:"\u0455",dsol:"\u29F6",Dstrok:"\u0110",dstrok:"\u0111",dtdot:"\u22F1",dtri:"\u25BF",dtrif:"\u25BE",duarr:"\u21F5",duhar:"\u296F",dwangle:"\u29A6",DZcy:"\u040F",dzcy:"\u045F",dzigrarr:"\u27FF",Eacute:"\xC9",eacute:"\xE9",easter:"\u2A6E",Ecaron:"\u011A",ecaron:"\u011B",Ecirc:"\xCA",ecirc:"\xEA",ecir:"\u2256",ecolon:"\u2255",Ecy:"\u042D",ecy:"\u044D",eDDot:"\u2A77",Edot:"\u0116",edot:"\u0117",eDot:"\u2251",ee:"\u2147",efDot:"\u2252",Efr:"\u{1D508}",efr:"\u{1D522}",eg:"\u2A9A",Egrave:"\xC8",egrave:"\xE8",egs:"\u2A96",egsdot:"\u2A98",el:"\u2A99",Element:"\u2208",elinters:"\u23E7",ell:"\u2113",els:"\u2A95",elsdot:"\u2A97",Emacr:"\u0112",emacr:"\u0113",empty:"\u2205",emptyset:"\u2205",EmptySmallSquare:"\u25FB",emptyv:"\u2205",EmptyVerySmallSquare:"\u25AB",emsp13:"\u2004",emsp14:"\u2005",emsp:"\u2003",ENG:"\u014A",eng:"\u014B",ensp:"\u2002",Eogon:"\u0118",eogon:"\u0119",Eopf:"\u{1D53C}",eopf:"\u{1D556}",epar:"\u22D5",eparsl:"\u29E3",eplus:"\u2A71",epsi:"\u03B5",Epsilon:"\u0395",epsilon:"\u03B5",epsiv:"\u03F5",eqcirc:"\u2256",eqcolon:"\u2255",eqsim:"\u2242",eqslantgtr:"\u2A96",eqslantless:"\u2A95",Equal:"\u2A75",equals:"=",EqualTilde:"\u2242",equest:"\u225F",Equilibrium:"\u21CC",equiv:"\u2261",equivDD:"\u2A78",eqvparsl:"\u29E5",erarr:"\u2971",erDot:"\u2253",escr:"\u212F",Escr:"\u2130",esdot:"\u2250",Esim:"\u2A73",esim:"\u2242",Eta:"\u0397",eta:"\u03B7",ETH:"\xD0",eth:"\xF0",Euml:"\xCB",euml:"\xEB",euro:"\u20AC",excl:"!",exist:"\u2203",Exists:"\u2203",expectation:"\u2130",exponentiale:"\u2147",ExponentialE:"\u2147",fallingdotseq:"\u2252",Fcy:"\u0424",fcy:"\u0444",female:"\u2640",ffilig:"\uFB03",fflig:"\uFB00",ffllig:"\uFB04",Ffr:"\u{1D509}",ffr:"\u{1D523}",filig:"\uFB01",FilledSmallSquare:"\u25FC",FilledVerySmallSquare:"\u25AA",fjlig:"fj",flat:"\u266D",fllig:"\uFB02",fltns:"\u25B1",fnof:"\u0192",Fopf:"\u{1D53D}",fopf:"\u{1D557}",forall:"\u2200",ForAll:"\u2200",fork:"\u22D4",forkv:"\u2AD9",Fouriertrf:"\u2131",fpartint:"\u2A0D",frac12:"\xBD",frac13:"\u2153",frac14:"\xBC",frac15:"\u2155",frac16:"\u2159",frac18:"\u215B",frac23:"\u2154",frac25:"\u2156",frac34:"\xBE",frac35:"\u2157",frac38:"\u215C",frac45:"\u2158",frac56:"\u215A",frac58:"\u215D",frac78:"\u215E",frasl:"\u2044",frown:"\u2322",fscr:"\u{1D4BB}",Fscr:"\u2131",gacute:"\u01F5",Gamma:"\u0393",gamma:"\u03B3",Gammad:"\u03DC",gammad:"\u03DD",gap:"\u2A86",Gbreve:"\u011E",gbreve:"\u011F",Gcedil:"\u0122",Gcirc:"\u011C",gcirc:"\u011D",Gcy:"\u0413",gcy:"\u0433",Gdot:"\u0120",gdot:"\u0121",ge:"\u2265",gE:"\u2267",gEl:"\u2A8C",gel:"\u22DB",geq:"\u2265",geqq:"\u2267",geqslant:"\u2A7E",gescc:"\u2AA9",ges:"\u2A7E",gesdot:"\u2A80",gesdoto:"\u2A82",gesdotol:"\u2A84",gesl:"\u22DB\uFE00",gesles:"\u2A94",Gfr:"\u{1D50A}",gfr:"\u{1D524}",gg:"\u226B",Gg:"\u22D9",ggg:"\u22D9",gimel:"\u2137",GJcy:"\u0403",gjcy:"\u0453",gla:"\u2AA5",gl:"\u2277",glE:"\u2A92",glj:"\u2AA4",gnap:"\u2A8A",gnapprox:"\u2A8A",gne:"\u2A88",gnE:"\u2269",gneq:"\u2A88",gneqq:"\u2269",gnsim:"\u22E7",Gopf:"\u{1D53E}",gopf:"\u{1D558}",grave:"`",GreaterEqual:"\u2265",GreaterEqualLess:"\u22DB",GreaterFullEqual:"\u2267",GreaterGreater:"\u2AA2",GreaterLess:"\u2277",GreaterSlantEqual:"\u2A7E",GreaterTilde:"\u2273",Gscr:"\u{1D4A2}",gscr:"\u210A",gsim:"\u2273",gsime:"\u2A8E",gsiml:"\u2A90",gtcc:"\u2AA7",gtcir:"\u2A7A",gt:">",GT:">",Gt:"\u226B",gtdot:"\u22D7",gtlPar:"\u2995",gtquest:"\u2A7C",gtrapprox:"\u2A86",gtrarr:"\u2978",gtrdot:"\u22D7",gtreqless:"\u22DB",gtreqqless:"\u2A8C",gtrless:"\u2277",gtrsim:"\u2273",gvertneqq:"\u2269\uFE00",gvnE:"\u2269\uFE00",Hacek:"\u02C7",hairsp:"\u200A",half:"\xBD",hamilt:"\u210B",HARDcy:"\u042A",hardcy:"\u044A",harrcir:"\u2948",harr:"\u2194",hArr:"\u21D4",harrw:"\u21AD",Hat:"^",hbar:"\u210F",Hcirc:"\u0124",hcirc:"\u0125",hearts:"\u2665",heartsuit:"\u2665",hellip:"\u2026",hercon:"\u22B9",hfr:"\u{1D525}",Hfr:"\u210C",HilbertSpace:"\u210B",hksearow:"\u2925",hkswarow:"\u2926",hoarr:"\u21FF",homtht:"\u223B",hookleftarrow:"\u21A9",hookrightarrow:"\u21AA",hopf:"\u{1D559}",Hopf:"\u210D",horbar:"\u2015",HorizontalLine:"\u2500",hscr:"\u{1D4BD}",Hscr:"\u210B",hslash:"\u210F",Hstrok:"\u0126",hstrok:"\u0127",HumpDownHump:"\u224E",HumpEqual:"\u224F",hybull:"\u2043",hyphen:"\u2010",Iacute:"\xCD",iacute:"\xED",ic:"\u2063",Icirc:"\xCE",icirc:"\xEE",Icy:"\u0418",icy:"\u0438",Idot:"\u0130",IEcy:"\u0415",iecy:"\u0435",iexcl:"\xA1",iff:"\u21D4",ifr:"\u{1D526}",Ifr:"\u2111",Igrave:"\xCC",igrave:"\xEC",ii:"\u2148",iiiint:"\u2A0C",iiint:"\u222D",iinfin:"\u29DC",iiota:"\u2129",IJlig:"\u0132",ijlig:"\u0133",Imacr:"\u012A",imacr:"\u012B",image:"\u2111",ImaginaryI:"\u2148",imagline:"\u2110",imagpart:"\u2111",imath:"\u0131",Im:"\u2111",imof:"\u22B7",imped:"\u01B5",Implies:"\u21D2",incare:"\u2105",in:"\u2208",infin:"\u221E",infintie:"\u29DD",inodot:"\u0131",intcal:"\u22BA",int:"\u222B",Int:"\u222C",integers:"\u2124",Integral:"\u222B",intercal:"\u22BA",Intersection:"\u22C2",intlarhk:"\u2A17",intprod:"\u2A3C",InvisibleComma:"\u2063",InvisibleTimes:"\u2062",IOcy:"\u0401",iocy:"\u0451",Iogon:"\u012E",iogon:"\u012F",Iopf:"\u{1D540}",iopf:"\u{1D55A}",Iota:"\u0399",iota:"\u03B9",iprod:"\u2A3C",iquest:"\xBF",iscr:"\u{1D4BE}",Iscr:"\u2110",isin:"\u2208",isindot:"\u22F5",isinE:"\u22F9",isins:"\u22F4",isinsv:"\u22F3",isinv:"\u2208",it:"\u2062",Itilde:"\u0128",itilde:"\u0129",Iukcy:"\u0406",iukcy:"\u0456",Iuml:"\xCF",iuml:"\xEF",Jcirc:"\u0134",jcirc:"\u0135",Jcy:"\u0419",jcy:"\u0439",Jfr:"\u{1D50D}",jfr:"\u{1D527}",jmath:"\u0237",Jopf:"\u{1D541}",jopf:"\u{1D55B}",Jscr:"\u{1D4A5}",jscr:"\u{1D4BF}",Jsercy:"\u0408",jsercy:"\u0458",Jukcy:"\u0404",jukcy:"\u0454",Kappa:"\u039A",kappa:"\u03BA",kappav:"\u03F0",Kcedil:"\u0136",kcedil:"\u0137",Kcy:"\u041A",kcy:"\u043A",Kfr:"\u{1D50E}",kfr:"\u{1D528}",kgreen:"\u0138",KHcy:"\u0425",khcy:"\u0445",KJcy:"\u040C",kjcy:"\u045C",Kopf:"\u{1D542}",kopf:"\u{1D55C}",Kscr:"\u{1D4A6}",kscr:"\u{1D4C0}",lAarr:"\u21DA",Lacute:"\u0139",lacute:"\u013A",laemptyv:"\u29B4",lagran:"\u2112",Lambda:"\u039B",lambda:"\u03BB",lang:"\u27E8",Lang:"\u27EA",langd:"\u2991",langle:"\u27E8",lap:"\u2A85",Laplacetrf:"\u2112",laquo:"\xAB",larrb:"\u21E4",larrbfs:"\u291F",larr:"\u2190",Larr:"\u219E",lArr:"\u21D0",larrfs:"\u291D",larrhk:"\u21A9",larrlp:"\u21AB",larrpl:"\u2939",larrsim:"\u2973",larrtl:"\u21A2",latail:"\u2919",lAtail:"\u291B",lat:"\u2AAB",late:"\u2AAD",lates:"\u2AAD\uFE00",lbarr:"\u290C",lBarr:"\u290E",lbbrk:"\u2772",lbrace:"{",lbrack:"[",lbrke:"\u298B",lbrksld:"\u298F",lbrkslu:"\u298D",Lcaron:"\u013D",lcaron:"\u013E",Lcedil:"\u013B",lcedil:"\u013C",lceil:"\u2308",lcub:"{",Lcy:"\u041B",lcy:"\u043B",ldca:"\u2936",ldquo:"\u201C",ldquor:"\u201E",ldrdhar:"\u2967",ldrushar:"\u294B",ldsh:"\u21B2",le:"\u2264",lE:"\u2266",LeftAngleBracket:"\u27E8",LeftArrowBar:"\u21E4",leftarrow:"\u2190",LeftArrow:"\u2190",Leftarrow:"\u21D0",LeftArrowRightArrow:"\u21C6",leftarrowtail:"\u21A2",LeftCeiling:"\u2308",LeftDoubleBracket:"\u27E6",LeftDownTeeVector:"\u2961",LeftDownVectorBar:"\u2959",LeftDownVector:"\u21C3",LeftFloor:"\u230A",leftharpoondown:"\u21BD",leftharpoonup:"\u21BC",leftleftarrows:"\u21C7",leftrightarrow:"\u2194",LeftRightArrow:"\u2194",Leftrightarrow:"\u21D4",leftrightarrows:"\u21C6",leftrightharpoons:"\u21CB",leftrightsquigarrow:"\u21AD",LeftRightVector:"\u294E",LeftTeeArrow:"\u21A4",LeftTee:"\u22A3",LeftTeeVector:"\u295A",leftthreetimes:"\u22CB",LeftTriangleBar:"\u29CF",LeftTriangle:"\u22B2",LeftTriangleEqual:"\u22B4",LeftUpDownVector:"\u2951",LeftUpTeeVector:"\u2960",LeftUpVectorBar:"\u2958",LeftUpVector:"\u21BF",LeftVectorBar:"\u2952",LeftVector:"\u21BC",lEg:"\u2A8B",leg:"\u22DA",leq:"\u2264",leqq:"\u2266",leqslant:"\u2A7D",lescc:"\u2AA8",les:"\u2A7D",lesdot:"\u2A7F",lesdoto:"\u2A81",lesdotor:"\u2A83",lesg:"\u22DA\uFE00",lesges:"\u2A93",lessapprox:"\u2A85",lessdot:"\u22D6",lesseqgtr:"\u22DA",lesseqqgtr:"\u2A8B",LessEqualGreater:"\u22DA",LessFullEqual:"\u2266",LessGreater:"\u2276",lessgtr:"\u2276",LessLess:"\u2AA1",lesssim:"\u2272",LessSlantEqual:"\u2A7D",LessTilde:"\u2272",lfisht:"\u297C",lfloor:"\u230A",Lfr:"\u{1D50F}",lfr:"\u{1D529}",lg:"\u2276",lgE:"\u2A91",lHar:"\u2962",lhard:"\u21BD",lharu:"\u21BC",lharul:"\u296A",lhblk:"\u2584",LJcy:"\u0409",ljcy:"\u0459",llarr:"\u21C7",ll:"\u226A",Ll:"\u22D8",llcorner:"\u231E",Lleftarrow:"\u21DA",llhard:"\u296B",lltri:"\u25FA",Lmidot:"\u013F",lmidot:"\u0140",lmoustache:"\u23B0",lmoust:"\u23B0",lnap:"\u2A89",lnapprox:"\u2A89",lne:"\u2A87",lnE:"\u2268",lneq:"\u2A87",lneqq:"\u2268",lnsim:"\u22E6",loang:"\u27EC",loarr:"\u21FD",lobrk:"\u27E6",longleftarrow:"\u27F5",LongLeftArrow:"\u27F5",Longleftarrow:"\u27F8",longleftrightarrow:"\u27F7",LongLeftRightArrow:"\u27F7",Longleftrightarrow:"\u27FA",longmapsto:"\u27FC",longrightarrow:"\u27F6",LongRightArrow:"\u27F6",Longrightarrow:"\u27F9",looparrowleft:"\u21AB",looparrowright:"\u21AC",lopar:"\u2985",Lopf:"\u{1D543}",lopf:"\u{1D55D}",loplus:"\u2A2D",lotimes:"\u2A34",lowast:"\u2217",lowbar:"_",LowerLeftArrow:"\u2199",LowerRightArrow:"\u2198",loz:"\u25CA",lozenge:"\u25CA",lozf:"\u29EB",lpar:"(",lparlt:"\u2993",lrarr:"\u21C6",lrcorner:"\u231F",lrhar:"\u21CB",lrhard:"\u296D",lrm:"\u200E",lrtri:"\u22BF",lsaquo:"\u2039",lscr:"\u{1D4C1}",Lscr:"\u2112",lsh:"\u21B0",Lsh:"\u21B0",lsim:"\u2272",lsime:"\u2A8D",lsimg:"\u2A8F",lsqb:"[",lsquo:"\u2018",lsquor:"\u201A",Lstrok:"\u0141",lstrok:"\u0142",ltcc:"\u2AA6",ltcir:"\u2A79",lt:"<",LT:"<",Lt:"\u226A",ltdot:"\u22D6",lthree:"\u22CB",ltimes:"\u22C9",ltlarr:"\u2976",ltquest:"\u2A7B",ltri:"\u25C3",ltrie:"\u22B4",ltrif:"\u25C2",ltrPar:"\u2996",lurdshar:"\u294A",luruhar:"\u2966",lvertneqq:"\u2268\uFE00",lvnE:"\u2268\uFE00",macr:"\xAF",male:"\u2642",malt:"\u2720",maltese:"\u2720",Map:"\u2905",map:"\u21A6",mapsto:"\u21A6",mapstodown:"\u21A7",mapstoleft:"\u21A4",mapstoup:"\u21A5",marker:"\u25AE",mcomma:"\u2A29",Mcy:"\u041C",mcy:"\u043C",mdash:"\u2014",mDDot:"\u223A",measuredangle:"\u2221",MediumSpace:"\u205F",Mellintrf:"\u2133",Mfr:"\u{1D510}",mfr:"\u{1D52A}",mho:"\u2127",micro:"\xB5",midast:"*",midcir:"\u2AF0",mid:"\u2223",middot:"\xB7",minusb:"\u229F",minus:"\u2212",minusd:"\u2238",minusdu:"\u2A2A",MinusPlus:"\u2213",mlcp:"\u2ADB",mldr:"\u2026",mnplus:"\u2213",models:"\u22A7",Mopf:"\u{1D544}",mopf:"\u{1D55E}",mp:"\u2213",mscr:"\u{1D4C2}",Mscr:"\u2133",mstpos:"\u223E",Mu:"\u039C",mu:"\u03BC",multimap:"\u22B8",mumap:"\u22B8",nabla:"\u2207",Nacute:"\u0143",nacute:"\u0144",nang:"\u2220\u20D2",nap:"\u2249",napE:"\u2A70\u0338",napid:"\u224B\u0338",napos:"\u0149",napprox:"\u2249",natural:"\u266E",naturals:"\u2115",natur:"\u266E",nbsp:"\xA0",nbump:"\u224E\u0338",nbumpe:"\u224F\u0338",ncap:"\u2A43",Ncaron:"\u0147",ncaron:"\u0148",Ncedil:"\u0145",ncedil:"\u0146",ncong:"\u2247",ncongdot:"\u2A6D\u0338",ncup:"\u2A42",Ncy:"\u041D",ncy:"\u043D",ndash:"\u2013",nearhk:"\u2924",nearr:"\u2197",neArr:"\u21D7",nearrow:"\u2197",ne:"\u2260",nedot:"\u2250\u0338",NegativeMediumSpace:"\u200B",NegativeThickSpace:"\u200B",NegativeThinSpace:"\u200B",NegativeVeryThinSpace:"\u200B",nequiv:"\u2262",nesear:"\u2928",nesim:"\u2242\u0338",NestedGreaterGreater:"\u226B",NestedLessLess:"\u226A",NewLine:`
|
|
6570
6605
|
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",para:"\xB6",parallel:"\u2225",par:"\u2225",parsim:"\u2AF3",parsl:"\u2AFD",part:"\u2202",PartialD:"\u2202",Pcy:"\u041F",pcy:"\u043F",percnt:"%",period:".",permil:"\u2030",perp:"\u22A5",pertenk:"\u2031",Pfr:"\u{1D513}",pfr:"\u{1D52D}",Phi:"\u03A6",phi:"\u03C6",phiv:"\u03D5",phmmat:"\u2133",phone:"\u260E",Pi:"\u03A0",pi:"\u03C0",pitchfork:"\u22D4",piv:"\u03D6",planck:"\u210F",planckh:"\u210E",plankv:"\u210F",plusacir:"\u2A23",plusb:"\u229E",pluscir:"\u2A22",plus:"+",plusdo:"\u2214",plusdu:"\u2A25",pluse:"\u2A72",PlusMinus:"\xB1",plusmn:"\xB1",plussim:"\u2A26",plustwo:"\u2A27",pm:"\xB1",Poincareplane:"\u210C",pointint:"\u2A15",popf:"\u{1D561}",Popf:"\u2119",pound:"\xA3",prap:"\u2AB7",Pr:"\u2ABB",pr:"\u227A",prcue:"\u227C",precapprox:"\u2AB7",prec:"\u227A",preccurlyeq:"\u227C",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",preceq:"\u2AAF",precnapprox:"\u2AB9",precneqq:"\u2AB5",precnsim:"\u22E8",pre:"\u2AAF",prE:"\u2AB3",precsim:"\u227E",prime:"\u2032",Prime:"\u2033",primes:"\u2119",prnap:"\u2AB9",prnE:"\u2AB5",prnsim:"\u22E8",prod:"\u220F",Product:"\u220F",profalar:"\u232E",profline:"\u2312",profsurf:"\u2313",prop:"\u221D",Proportional:"\u221D",Proportion:"\u2237",propto:"\u221D",prsim:"\u227E",prurel:"\u22B0",Pscr:"\u{1D4AB}",pscr:"\u{1D4C5}",Psi:"\u03A8",psi:"\u03C8",puncsp:"\u2008",Qfr:"\u{1D514}",qfr:"\u{1D52E}",qint:"\u2A0C",qopf:"\u{1D562}",Qopf:"\u211A",qprime:"\u2057",Qscr:"\u{1D4AC}",qscr:"\u{1D4C6}",quaternions:"\u210D",quatint:"\u2A16",quest:"?",questeq:"\u225F",quot:'"',QUOT:'"',rAarr:"\u21DB",race:"\u223D\u0331",Racute:"\u0154",racute:"\u0155",radic:"\u221A",raemptyv:"\u29B3",rang:"\u27E9",Rang:"\u27EB",rangd:"\u2992",range:"\u29A5",rangle:"\u27E9",raquo:"\xBB",rarrap:"\u2975",rarrb:"\u21E5",rarrbfs:"\u2920",rarrc:"\u2933",rarr:"\u2192",Rarr:"\u21A0",rArr:"\u21D2",rarrfs:"\u291E",rarrhk:"\u21AA",rarrlp:"\u21AC",rarrpl:"\u2945",rarrsim:"\u2974",Rarrtl:"\u2916",rarrtl:"\u21A3",rarrw:"\u219D",ratail:"\u291A",rAtail:"\u291C",ratio:"\u2236",rationals:"\u211A",rbarr:"\u290D",rBarr:"\u290F",RBarr:"\u2910",rbbrk:"\u2773",rbrace:"}",rbrack:"]",rbrke:"\u298C",rbrksld:"\u298E",rbrkslu:"\u2990",Rcaron:"\u0158",rcaron:"\u0159",Rcedil:"\u0156",rcedil:"\u0157",rceil:"\u2309",rcub:"}",Rcy:"\u0420",rcy:"\u0440",rdca:"\u2937",rdldhar:"\u2969",rdquo:"\u201D",rdquor:"\u201D",rdsh:"\u21B3",real:"\u211C",realine:"\u211B",realpart:"\u211C",reals:"\u211D",Re:"\u211C",rect:"\u25AD",reg:"\xAE",REG:"\xAE",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",rfisht:"\u297D",rfloor:"\u230B",rfr:"\u{1D52F}",Rfr:"\u211C",rHar:"\u2964",rhard:"\u21C1",rharu:"\u21C0",rharul:"\u296C",Rho:"\u03A1",rho:"\u03C1",rhov:"\u03F1",RightAngleBracket:"\u27E9",RightArrowBar:"\u21E5",rightarrow:"\u2192",RightArrow:"\u2192",Rightarrow:"\u21D2",RightArrowLeftArrow:"\u21C4",rightarrowtail:"\u21A3",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVectorBar:"\u2955",RightDownVector:"\u21C2",RightFloor:"\u230B",rightharpoondown:"\u21C1",rightharpoonup:"\u21C0",rightleftarrows:"\u21C4",rightleftharpoons:"\u21CC",rightrightarrows:"\u21C9",rightsquigarrow:"\u219D",RightTeeArrow:"\u21A6",RightTee:"\u22A2",RightTeeVector:"\u295B",rightthreetimes:"\u22CC",RightTriangleBar:"\u29D0",RightTriangle:"\u22B3",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVectorBar:"\u2954",RightUpVector:"\u21BE",RightVectorBar:"\u2953",RightVector:"\u21C0",ring:"\u02DA",risingdotseq:"\u2253",rlarr:"\u21C4",rlhar:"\u21CC",rlm:"\u200F",rmoustache:"\u23B1",rmoust:"\u23B1",rnmid:"\u2AEE",roang:"\u27ED",roarr:"\u21FE",robrk:"\u27E7",ropar:"\u2986",ropf:"\u{1D563}",Ropf:"\u211D",roplus:"\u2A2E",rotimes:"\u2A35",RoundImplies:"\u2970",rpar:")",rpargt:"\u2994",rppolint:"\u2A12",rrarr:"\u21C9",Rrightarrow:"\u21DB",rsaquo:"\u203A",rscr:"\u{1D4C7}",Rscr:"\u211B",rsh:"\u21B1",Rsh:"\u21B1",rsqb:"]",rsquo:"\u2019",rsquor:"\u2019",rthree:"\u22CC",rtimes:"\u22CA",rtri:"\u25B9",rtrie:"\u22B5",rtrif:"\u25B8",rtriltri:"\u29CE",RuleDelayed:"\u29F4",ruluhar:"\u2968",rx:"\u211E",Sacute:"\u015A",sacute:"\u015B",sbquo:"\u201A",scap:"\u2AB8",Scaron:"\u0160",scaron:"\u0161",Sc:"\u2ABC",sc:"\u227B",sccue:"\u227D",sce:"\u2AB0",scE:"\u2AB4",Scedil:"\u015E",scedil:"\u015F",Scirc:"\u015C",scirc:"\u015D",scnap:"\u2ABA",scnE:"\u2AB6",scnsim:"\u22E9",scpolint:"\u2A13",scsim:"\u227F",Scy:"\u0421",scy:"\u0441",sdotb:"\u22A1",sdot:"\u22C5",sdote:"\u2A66",searhk:"\u2925",searr:"\u2198",seArr:"\u21D8",searrow:"\u2198",sect:"\xA7",semi:";",seswar:"\u2929",setminus:"\u2216",setmn:"\u2216",sext:"\u2736",Sfr:"\u{1D516}",sfr:"\u{1D530}",sfrown:"\u2322",sharp:"\u266F",SHCHcy:"\u0429",shchcy:"\u0449",SHcy:"\u0428",shcy:"\u0448",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",shortmid:"\u2223",shortparallel:"\u2225",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",shy:"\xAD",Sigma:"\u03A3",sigma:"\u03C3",sigmaf:"\u03C2",sigmav:"\u03C2",sim:"\u223C",simdot:"\u2A6A",sime:"\u2243",simeq:"\u2243",simg:"\u2A9E",simgE:"\u2AA0",siml:"\u2A9D",simlE:"\u2A9F",simne:"\u2246",simplus:"\u2A24",simrarr:"\u2972",slarr:"\u2190",SmallCircle:"\u2218",smallsetminus:"\u2216",smashp:"\u2A33",smeparsl:"\u29E4",smid:"\u2223",smile:"\u2323",smt:"\u2AAA",smte:"\u2AAC",smtes:"\u2AAC\uFE00",SOFTcy:"\u042C",softcy:"\u044C",solbar:"\u233F",solb:"\u29C4",sol:"/",Sopf:"\u{1D54A}",sopf:"\u{1D564}",spades:"\u2660",spadesuit:"\u2660",spar:"\u2225",sqcap:"\u2293",sqcaps:"\u2293\uFE00",sqcup:"\u2294",sqcups:"\u2294\uFE00",Sqrt:"\u221A",sqsub:"\u228F",sqsube:"\u2291",sqsubset:"\u228F",sqsubseteq:"\u2291",sqsup:"\u2290",sqsupe:"\u2292",sqsupset:"\u2290",sqsupseteq:"\u2292",square:"\u25A1",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",squarf:"\u25AA",squ:"\u25A1",squf:"\u25AA",srarr:"\u2192",Sscr:"\u{1D4AE}",sscr:"\u{1D4C8}",ssetmn:"\u2216",ssmile:"\u2323",sstarf:"\u22C6",Star:"\u22C6",star:"\u2606",starf:"\u2605",straightepsilon:"\u03F5",straightphi:"\u03D5",strns:"\xAF",sub:"\u2282",Sub:"\u22D0",subdot:"\u2ABD",subE:"\u2AC5",sube:"\u2286",subedot:"\u2AC3",submult:"\u2AC1",subnE:"\u2ACB",subne:"\u228A",subplus:"\u2ABF",subrarr:"\u2979",subset:"\u2282",Subset:"\u22D0",subseteq:"\u2286",subseteqq:"\u2AC5",SubsetEqual:"\u2286",subsetneq:"\u228A",subsetneqq:"\u2ACB",subsim:"\u2AC7",subsub:"\u2AD5",subsup:"\u2AD3",succapprox:"\u2AB8",succ:"\u227B",succcurlyeq:"\u227D",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",succeq:"\u2AB0",succnapprox:"\u2ABA",succneqq:"\u2AB6",succnsim:"\u22E9",succsim:"\u227F",SuchThat:"\u220B",sum:"\u2211",Sum:"\u2211",sung:"\u266A",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",sup:"\u2283",Sup:"\u22D1",supdot:"\u2ABE",supdsub:"\u2AD8",supE:"\u2AC6",supe:"\u2287",supedot:"\u2AC4",Superset:"\u2283",SupersetEqual:"\u2287",suphsol:"\u27C9",suphsub:"\u2AD7",suplarr:"\u297B",supmult:"\u2AC2",supnE:"\u2ACC",supne:"\u228B",supplus:"\u2AC0",supset:"\u2283",Supset:"\u22D1",supseteq:"\u2287",supseteqq:"\u2AC6",supsetneq:"\u228B",supsetneqq:"\u2ACC",supsim:"\u2AC8",supsub:"\u2AD4",supsup:"\u2AD6",swarhk:"\u2926",swarr:"\u2199",swArr:"\u21D9",swarrow:"\u2199",swnwar:"\u292A",szlig:"\xDF",Tab:" ",target:"\u2316",Tau:"\u03A4",tau:"\u03C4",tbrk:"\u23B4",Tcaron:"\u0164",tcaron:"\u0165",Tcedil:"\u0162",tcedil:"\u0163",Tcy:"\u0422",tcy:"\u0442",tdot:"\u20DB",telrec:"\u2315",Tfr:"\u{1D517}",tfr:"\u{1D531}",there4:"\u2234",therefore:"\u2234",Therefore:"\u2234",Theta:"\u0398",theta:"\u03B8",thetasym:"\u03D1",thetav:"\u03D1",thickapprox:"\u2248",thicksim:"\u223C",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",thinsp:"\u2009",thkap:"\u2248",thksim:"\u223C",THORN:"\xDE",thorn:"\xFE",tilde:"\u02DC",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",timesbar:"\u2A31",timesb:"\u22A0",times:"\xD7",timesd:"\u2A30",tint:"\u222D",toea:"\u2928",topbot:"\u2336",topcir:"\u2AF1",top:"\u22A4",Topf:"\u{1D54B}",topf:"\u{1D565}",topfork:"\u2ADA",tosa:"\u2929",tprime:"\u2034",trade:"\u2122",TRADE:"\u2122",triangle:"\u25B5",triangledown:"\u25BF",triangleleft:"\u25C3",trianglelefteq:"\u22B4",triangleq:"\u225C",triangleright:"\u25B9",trianglerighteq:"\u22B5",tridot:"\u25EC",trie:"\u225C",triminus:"\u2A3A",TripleDot:"\u20DB",triplus:"\u2A39",trisb:"\u29CD",tritime:"\u2A3B",trpezium:"\u23E2",Tscr:"\u{1D4AF}",tscr:"\u{1D4C9}",TScy:"\u0426",tscy:"\u0446",TSHcy:"\u040B",tshcy:"\u045B",Tstrok:"\u0166",tstrok:"\u0167",twixt:"\u226C",twoheadleftarrow:"\u219E",twoheadrightarrow:"\u21A0",Uacute:"\xDA",uacute:"\xFA",uarr:"\u2191",Uarr:"\u219F",uArr:"\u21D1",Uarrocir:"\u2949",Ubrcy:"\u040E",ubrcy:"\u045E",Ubreve:"\u016C",ubreve:"\u016D",Ucirc:"\xDB",ucirc:"\xFB",Ucy:"\u0423",ucy:"\u0443",udarr:"\u21C5",Udblac:"\u0170",udblac:"\u0171",udhar:"\u296E",ufisht:"\u297E",Ufr:"\u{1D518}",ufr:"\u{1D532}",Ugrave:"\xD9",ugrave:"\xF9",uHar:"\u2963",uharl:"\u21BF",uharr:"\u21BE",uhblk:"\u2580",ulcorn:"\u231C",ulcorner:"\u231C",ulcrop:"\u230F",ultri:"\u25F8",Umacr:"\u016A",umacr:"\u016B",uml:"\xA8",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",uogon:"\u0173",Uopf:"\u{1D54C}",uopf:"\u{1D566}",UpArrowBar:"\u2912",uparrow:"\u2191",UpArrow:"\u2191",Uparrow:"\u21D1",UpArrowDownArrow:"\u21C5",updownarrow:"\u2195",UpDownArrow:"\u2195",Updownarrow:"\u21D5",UpEquilibrium:"\u296E",upharpoonleft:"\u21BF",upharpoonright:"\u21BE",uplus:"\u228E",UpperLeftArrow:"\u2196",UpperRightArrow:"\u2197",upsi:"\u03C5",Upsi:"\u03D2",upsih:"\u03D2",Upsilon:"\u03A5",upsilon:"\u03C5",UpTeeArrow:"\u21A5",UpTee:"\u22A5",upuparrows:"\u21C8",urcorn:"\u231D",urcorner:"\u231D",urcrop:"\u230E",Uring:"\u016E",uring:"\u016F",urtri:"\u25F9",Uscr:"\u{1D4B0}",uscr:"\u{1D4CA}",utdot:"\u22F0",Utilde:"\u0168",utilde:"\u0169",utri:"\u25B5",utrif:"\u25B4",uuarr:"\u21C8",Uuml:"\xDC",uuml:"\xFC",uwangle:"\u29A7",vangrt:"\u299C",varepsilon:"\u03F5",varkappa:"\u03F0",varnothing:"\u2205",varphi:"\u03D5",varpi:"\u03D6",varpropto:"\u221D",varr:"\u2195",vArr:"\u21D5",varrho:"\u03F1",varsigma:"\u03C2",varsubsetneq:"\u228A\uFE00",varsubsetneqq:"\u2ACB\uFE00",varsupsetneq:"\u228B\uFE00",varsupsetneqq:"\u2ACC\uFE00",vartheta:"\u03D1",vartriangleleft:"\u22B2",vartriangleright:"\u22B3",vBar:"\u2AE8",Vbar:"\u2AEB",vBarv:"\u2AE9",Vcy:"\u0412",vcy:"\u0432",vdash:"\u22A2",vDash:"\u22A8",Vdash:"\u22A9",VDash:"\u22AB",Vdashl:"\u2AE6",veebar:"\u22BB",vee:"\u2228",Vee:"\u22C1",veeeq:"\u225A",vellip:"\u22EE",verbar:"|",Verbar:"\u2016",vert:"|",Vert:"\u2016",VerticalBar:"\u2223",VerticalLine:"|",VerticalSeparator:"\u2758",VerticalTilde:"\u2240",VeryThinSpace:"\u200A",Vfr:"\u{1D519}",vfr:"\u{1D533}",vltri:"\u22B2",vnsub:"\u2282\u20D2",vnsup:"\u2283\u20D2",Vopf:"\u{1D54D}",vopf:"\u{1D567}",vprop:"\u221D",vrtri:"\u22B3",Vscr:"\u{1D4B1}",vscr:"\u{1D4CB}",vsubnE:"\u2ACB\uFE00",vsubne:"\u228A\uFE00",vsupnE:"\u2ACC\uFE00",vsupne:"\u228B\uFE00",Vvdash:"\u22AA",vzigzag:"\u299A",Wcirc:"\u0174",wcirc:"\u0175",wedbar:"\u2A5F",wedge:"\u2227",Wedge:"\u22C0",wedgeq:"\u2259",weierp:"\u2118",Wfr:"\u{1D51A}",wfr:"\u{1D534}",Wopf:"\u{1D54E}",wopf:"\u{1D568}",wp:"\u2118",wr:"\u2240",wreath:"\u2240",Wscr:"\u{1D4B2}",wscr:"\u{1D4CC}",xcap:"\u22C2",xcirc:"\u25EF",xcup:"\u22C3",xdtri:"\u25BD",Xfr:"\u{1D51B}",xfr:"\u{1D535}",xharr:"\u27F7",xhArr:"\u27FA",Xi:"\u039E",xi:"\u03BE",xlarr:"\u27F5",xlArr:"\u27F8",xmap:"\u27FC",xnis:"\u22FB",xodot:"\u2A00",Xopf:"\u{1D54F}",xopf:"\u{1D569}",xoplus:"\u2A01",xotime:"\u2A02",xrarr:"\u27F6",xrArr:"\u27F9",Xscr:"\u{1D4B3}",xscr:"\u{1D4CD}",xsqcup:"\u2A06",xuplus:"\u2A04",xutri:"\u25B3",xvee:"\u22C1",xwedge:"\u22C0",Yacute:"\xDD",yacute:"\xFD",YAcy:"\u042F",yacy:"\u044F",Ycirc:"\u0176",ycirc:"\u0177",Ycy:"\u042B",ycy:"\u044B",yen:"\xA5",Yfr:"\u{1D51C}",yfr:"\u{1D536}",YIcy:"\u0407",yicy:"\u0457",Yopf:"\u{1D550}",yopf:"\u{1D56A}",Yscr:"\u{1D4B4}",yscr:"\u{1D4CE}",YUcy:"\u042E",yucy:"\u044E",yuml:"\xFF",Yuml:"\u0178",Zacute:"\u0179",zacute:"\u017A",Zcaron:"\u017D",zcaron:"\u017E",Zcy:"\u0417",zcy:"\u0437",Zdot:"\u017B",zdot:"\u017C",zeetrf:"\u2128",ZeroWidthSpace:"\u200B",Zeta:"\u0396",zeta:"\u03B6",zfr:"\u{1D537}",Zfr:"\u2128",ZHcy:"\u0416",zhcy:"\u0436",zigrarr:"\u21DD",zopf:"\u{1D56B}",Zopf:"\u2124",Zscr:"\u{1D4B5}",zscr:"\u{1D4CF}",zwj:"\u200D",zwnj:"\u200C"}}}),Tme=sa({"node_modules/markdown-it/lib/common/entities.js"(e,t){t.exports=hOt()}}),IL=sa({"node_modules/uc.micro/categories/P/regex.js"(e,t){t.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/}}),mOt=sa({"node_modules/mdurl/encode.js"(e,t){var a={};function r(i){var o,s,l=a[i];if(l)return l;for(l=a[i]=[],o=0;o<128;o++)s=String.fromCharCode(o),/^[0-9a-z]$/i.test(s)?l.push(s):l.push("%"+("0"+o.toString(16).toUpperCase()).slice(-2));for(o=0;o<i.length;o++)l[i.charCodeAt(o)]=i[o];return l}function n(i,o,s){var l,c,u,d,h,m="";for(typeof o!="string"&&(s=o,o=n.defaultChars),typeof s>"u"&&(s=!0),h=r(o),l=0,c=i.length;l<c;l++){if(u=i.charCodeAt(l),s&&u===37&&l+2<c&&/^[0-9a-f]{2}$/i.test(i.slice(l+1,l+3))){m+=i.slice(l,l+3),l+=2;continue}if(u<128){m+=h[u];continue}if(u>=55296&&u<=57343){if(u>=55296&&u<=56319&&l+1<c&&(d=i.charCodeAt(l+1),d>=56320&&d<=57343)){m+=encodeURIComponent(i[l]+i[l+1]),l++;continue}m+="%EF%BF%BD";continue}m+=encodeURIComponent(i[l])}return m}n.defaultChars=";/?:@&=+$,-_.!~*'()#",n.componentChars="-_.!~*'()",t.exports=n}}),fOt=sa({"node_modules/mdurl/decode.js"(e,t){var a={};function r(i){var o,s,l=a[i];if(l)return l;for(l=a[i]=[],o=0;o<128;o++)s=String.fromCharCode(o),l.push(s);for(o=0;o<i.length;o++)s=i.charCodeAt(o),l[s]="%"+("0"+s.toString(16).toUpperCase()).slice(-2);return l}function n(i,o){var s;return typeof o!="string"&&(o=n.defaultChars),s=r(o),i.replace(/(%[a-f0-9]{2})+/gi,function(l){var c,u,d,h,m,g,v,b="";for(c=0,u=l.length;c<u;c+=3){if(d=parseInt(l.slice(c+1,c+3),16),d<128){b+=s[d];continue}if((d&224)===192&&c+3<u&&(h=parseInt(l.slice(c+4,c+6),16),(h&192)===128)){v=d<<6&1984|h&63,v<128?b+="\uFFFD\uFFFD":b+=String.fromCharCode(v),c+=3;continue}if((d&240)===224&&c+6<u&&(h=parseInt(l.slice(c+4,c+6),16),m=parseInt(l.slice(c+7,c+9),16),(h&192)===128&&(m&192)===128)){v=d<<12&61440|h<<6&4032|m&63,v<2048||v>=55296&&v<=57343?b+="\uFFFD\uFFFD\uFFFD":b+=String.fromCharCode(v),c+=6;continue}if((d&248)===240&&c+9<u&&(h=parseInt(l.slice(c+4,c+6),16),m=parseInt(l.slice(c+7,c+9),16),g=parseInt(l.slice(c+10,c+12),16),(h&192)===128&&(m&192)===128&&(g&192)===128)){v=d<<18&1835008|h<<12&258048|m<<6&4032|g&63,v<65536||v>1114111?b+="\uFFFD\uFFFD\uFFFD\uFFFD":(v-=65536,b+=String.fromCharCode(55296+(v>>10),56320+(v&1023))),c+=9;continue}b+="\uFFFD"}return b})}n.defaultChars=";/?:@&=+$,#",n.componentChars="",t.exports=n}}),gOt=sa({"node_modules/mdurl/format.js"(e,t){t.exports=function(a){var r="";return r+=a.protocol||"",r+=a.slashes?"//":"",r+=a.auth?a.auth+"@":"",a.hostname&&a.hostname.indexOf(":")!==-1?r+="["+a.hostname+"]":r+=a.hostname||"",r+=a.port?":"+a.port:"",r+=a.pathname||"",r+=a.search||"",r+=a.hash||"",r}}}),vOt=sa({"node_modules/mdurl/parse.js"(e,t){function a(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
|
|
6571
6606
|
`," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function b(k,x){if(k&&k instanceof a)return k;var w=new a;return w.parse(k,x),w}a.prototype.parse=function(k,x){var w,z,S,C,j,T=k;if(T=T.trim(),!x&&k.split("#").length===1){var E=i.exec(T);if(E)return this.pathname=E[1],E[2]&&(this.search=E[2]),this}var I=r.exec(T);if(I&&(I=I[0],S=I.toLowerCase(),this.protocol=I,T=T.substr(I.length)),(x||I||T.match(/^\/\/[^@\/]+@[^@\/]+/))&&(j=T.substr(0,2)==="//",j&&!(I&&g[I])&&(T=T.substr(2),this.slashes=!0)),!g[I]&&(j||I&&!v[I])){var N=-1;for(w=0;w<u.length;w++)C=T.indexOf(u[w]),C!==-1&&(N===-1||C<N)&&(N=C);var $,H;for(N===-1?H=T.lastIndexOf("@"):H=T.lastIndexOf("@",N),H!==-1&&($=T.slice(0,H),T=T.slice(H+1),this.auth=$),N=-1,w=0;w<c.length;w++)C=T.indexOf(c[w]),C!==-1&&(N===-1||C<N)&&(N=C);N===-1&&(N=T.length),T[N-1]===":"&&N--;var Z=T.slice(0,N);T=T.slice(N),this.parseHost(Z),this.hostname=this.hostname||"";var te=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!te){var ee=this.hostname.split(/\./);for(w=0,z=ee.length;w<z;w++){var oe=ee[w];if(oe&&!oe.match(h)){for(var ae="",ce=0,Q=oe.length;ce<Q;ce++)oe.charCodeAt(ce)>127?ae+="x":ae+=oe[ce];if(!ae.match(h)){var V=ee.slice(0,w),Y=ee.slice(w+1),G=oe.match(m);G&&(V.push(G[1]),Y.unshift(G[2])),Y.length&&(T=Y.join(".")+T),this.hostname=V.join(".");break}}}}this.hostname.length>d&&(this.hostname=""),te&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var D=T.indexOf("#");D!==-1&&(this.hash=T.substr(D),T=T.slice(0,D));var U=T.indexOf("?");return U!==-1&&(this.search=T.substr(U),T=T.slice(0,U)),T&&(this.pathname=T),v[S]&&this.hostname&&!this.pathname&&(this.pathname=""),this},a.prototype.parseHost=function(k){var x=n.exec(k);x&&(x=x[0],x!==":"&&(this.port=x.substr(1)),k=k.substr(0,k.length-x.length)),k&&(this.hostname=k)},t.exports=b}}),_me=sa({"node_modules/mdurl/index.js"(e,t){t.exports.encode=mOt(),t.exports.decode=fOt(),t.exports.format=gOt(),t.exports.parse=vOt()}}),Mme=sa({"node_modules/uc.micro/properties/Any/regex.js"(e,t){t.exports=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/}}),Eme=sa({"node_modules/uc.micro/categories/Cc/regex.js"(e,t){t.exports=/[\0-\x1F\x7F-\x9F]/}}),bOt=sa({"node_modules/uc.micro/categories/Cf/regex.js"(e,t){t.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/}}),Rme=sa({"node_modules/uc.micro/categories/Z/regex.js"(e,t){t.exports=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/}}),yOt=sa({"node_modules/uc.micro/index.js"(e){e.Any=Mme(),e.Cc=Eme(),e.Cf=bOt(),e.P=IL(),e.Z=Rme()}}),zn=sa({"node_modules/markdown-it/lib/common/utils.js"(e){function t(Z){return Object.prototype.toString.call(Z)}function a(Z){return t(Z)==="[object String]"}var r=Object.prototype.hasOwnProperty;function n(Z,te){return r.call(Z,te)}function i(Z){var te=Array.prototype.slice.call(arguments,1);return te.forEach(function(ee){if(ee){if(typeof ee!="object")throw new TypeError(ee+"must be object");Object.keys(ee).forEach(function(oe){Z[oe]=ee[oe]})}}),Z}function o(Z,te,ee){return[].concat(Z.slice(0,te),ee,Z.slice(te+1))}function s(Z){return!(Z>=55296&&Z<=57343||Z>=64976&&Z<=65007||(Z&65535)===65535||(Z&65535)===65534||Z>=0&&Z<=8||Z===11||Z>=14&&Z<=31||Z>=127&&Z<=159||Z>1114111)}function l(Z){if(Z>65535){Z-=65536;var te=55296+(Z>>10),ee=56320+(Z&1023);return String.fromCharCode(te,ee)}return String.fromCharCode(Z)}var c=/\\([!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~])/g,u=/&([a-z#][a-z0-9]{1,31});/gi,d=new RegExp(c.source+"|"+u.source,"gi"),h=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i,m=Tme();function g(Z,te){var ee=0;return n(m,te)?m[te]:te.charCodeAt(0)===35&&h.test(te)&&(ee=te[1].toLowerCase()==="x"?parseInt(te.slice(2),16):parseInt(te.slice(1),10),s(ee))?l(ee):Z}function v(Z){return Z.indexOf("\\")<0?Z:Z.replace(c,"$1")}function b(Z){return Z.indexOf("\\")<0&&Z.indexOf("&")<0?Z:Z.replace(d,function(te,ee,oe){return ee||g(te,oe)})}var k=/[&<>"]/,x=/[&<>"]/g,w={"&":"&","<":"<",">":">",'"':"""};function z(Z){return w[Z]}function S(Z){return k.test(Z)?Z.replace(x,z):Z}var C=/[.?*+^$[\]\\(){}|-]/g;function j(Z){return Z.replace(C,"\\$&")}function T(Z){switch(Z){case 9:case 32:return!0}return!1}function E(Z){if(Z>=8192&&Z<=8202)return!0;switch(Z){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}var I=IL();function N(Z){return I.test(Z)}function $(Z){switch(Z){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function H(Z){return Z=Z.trim().replace(/\s+/g," "),"\u1E9E".toLowerCase()==="\u1E7E"&&(Z=Z.replace(/ẞ/g,"\xDF")),Z.toLowerCase().toUpperCase()}e.lib={},e.lib.mdurl=_me(),e.lib.ucmicro=yOt(),e.assign=i,e.isString=a,e.has=n,e.unescapeMd=v,e.unescapeAll=b,e.isValidEntityCode=s,e.fromCodePoint=l,e.escapeHtml=S,e.arrayReplaceAt=o,e.isSpace=T,e.isWhiteSpace=E,e.isMdAsciiPunct=$,e.isPunctChar=N,e.escapeRE=j,e.normalizeReference=H}}),kOt=sa({"node_modules/markdown-it/lib/helpers/parse_link_label.js"(e,t){t.exports=function(a,r,n){var i,o,s,l,c=-1,u=a.posMax,d=a.pos;for(a.pos=r+1,i=1;a.pos<u;){if(s=a.src.charCodeAt(a.pos),s===93&&(i--,i===0)){o=!0;break}if(l=a.pos,a.md.inline.skipToken(a),s===91){if(l===a.pos-1)i++;else if(n)return a.pos=d,-1}}return o&&(c=a.pos),a.pos=d,c}}}),xOt=sa({"node_modules/markdown-it/lib/helpers/parse_link_destination.js"(e,t){var a=zn().unescapeAll;t.exports=function(r,n,i){var o,s,l=0,c=n,u={ok:!1,pos:0,lines:0,str:""};if(r.charCodeAt(n)===60){for(n++;n<i;){if(o=r.charCodeAt(n),o===10||o===60)return u;if(o===62)return u.pos=n+1,u.str=a(r.slice(c+1,n)),u.ok=!0,u;if(o===92&&n+1<i){n+=2;continue}n++}return u}for(s=0;n<i&&(o=r.charCodeAt(n),!(o===32||o<32||o===127));){if(o===92&&n+1<i){if(r.charCodeAt(n+1)===32)break;n+=2;continue}if(o===40&&(s++,s>32))return u;if(o===41){if(s===0)break;s--}n++}return c===n||s!==0||(u.str=a(r.slice(c,n)),u.lines=l,u.pos=n,u.ok=!0),u}}}),wOt=sa({"node_modules/markdown-it/lib/helpers/parse_link_title.js"(e,t){var a=zn().unescapeAll;t.exports=function(r,n,i){var o,s,l=0,c=n,u={ok:!1,pos:0,lines:0,str:""};if(n>=i||(s=r.charCodeAt(n),s!==34&&s!==39&&s!==40))return u;for(n++,s===40&&(s=41);n<i;){if(o=r.charCodeAt(n),o===s)return u.pos=n+1,u.lines=l,u.str=a(r.slice(c+1,n)),u.ok=!0,u;if(o===40&&s===41)return u;o===10?l++:o===92&&n+1<i&&(n++,r.charCodeAt(n)===10&&l++),n++}return u}}}),SOt=sa({"node_modules/markdown-it/lib/helpers/index.js"(e){e.parseLinkLabel=kOt(),e.parseLinkDestination=xOt(),e.parseLinkTitle=wOt()}}),OOt=sa({"node_modules/markdown-it/lib/renderer.js"(e,t){var a=zn().assign,r=zn().unescapeAll,n=zn().escapeHtml,i={};i.code_inline=function(s,l,c,u,d){var h=s[l];return"<code"+d.renderAttrs(h)+">"+n(s[l].content)+"</code>"},i.code_block=function(s,l,c,u,d){var h=s[l];return"<pre"+d.renderAttrs(h)+"><code>"+n(s[l].content)+`</code></pre>
|
|
@@ -6880,6 +6915,7 @@ Error generating stack: `+A.message+`
|
|
|
6880
6915
|
}
|
|
6881
6916
|
`,p2t=R(YA)`
|
|
6882
6917
|
text-decoration: none;
|
|
6918
|
+
--link-decoration: none;
|
|
6883
6919
|
--link-decoration-hover: none;
|
|
6884
6920
|
`,h2t=R(lo)`
|
|
6885
6921
|
--dropdown-menu-z-index: calc(var(--z-index-raised) - 1);
|
|
@@ -7779,12 +7815,13 @@ ${a}`).join(`\r
|
|
|
7779
7815
|
`,eke=Fe`
|
|
7780
7816
|
a:not([role='button']) {
|
|
7781
7817
|
text-decoration: var(--link-decoration);
|
|
7818
|
+
text-underline-offset: var(--link-underline-offset);
|
|
7782
7819
|
color: var(--link-color-primary);
|
|
7783
7820
|
font-weight: var(--link-font-weight);
|
|
7784
7821
|
|
|
7785
7822
|
&:visited {
|
|
7786
7823
|
color: var(--link-color-visited);
|
|
7787
|
-
text-decoration: var(--link-visited
|
|
7824
|
+
text-decoration: var(--link-decoration-visited);
|
|
7788
7825
|
}
|
|
7789
7826
|
|
|
7790
7827
|
&:hover,
|
|
@@ -11536,7 +11573,7 @@ ${a}`).join(`\r
|
|
|
11536
11573
|
`)[0]),this.originalError=t,this.source=a,Object.setPrototypeOf(this,xw.prototype);const[,r,n]=this.message.match(PDt)||[];this.line=parseInt(r,10),this.col=parseInt(n,10)}}function Ta(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function ka(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}const Cb={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function YD(e,t={}){const a={};for(const i of Object.keys(e))a[i]={...e[i],name:i};for(const i of Object.values(a))r(i);return a.SpecExtension=Cb,a;function r(i){if(i.additionalProperties&&(i.additionalProperties=n(i.additionalProperties)),i.items&&(i.items=n(i.items)),i.properties){const o={};for(const[s,l]of Object.entries(i.properties))o[s]=n(l),t.doNotResolveExamples&&l&&l.isExample&&(o[s]={...l,resolvable:!1});i.properties=o}}function n(i){if(typeof i=="string"){if(!a[i])throw new Error(`Unknown type name found: ${i}`);return a[i]}else return typeof i=="function"?(o,s)=>n(i(o,s)):dg(i)?(i={...i},r(i),i):i?.directResolveAs!==void 0?{...i,directResolveAs:n(i.directResolveAs)??void 0}:i}}function dg(e){return typeof e?.name=="string"}function jb(e,t){return e.hasOwnProperty(t)?e[t]:void 0}function WO(e,t){return e+"::"+t}function ADt(){return new Promise(e=>{setTimeout(e)})}var yxe={},XD,kxe;function W_(){if(kxe)return XD;kxe=1;const e="\\\\/",t=`[^${e}]`,a=0,r="\\.",n="\\+",i="\\?",o="\\/",s="(?=.)",l="[^/]",c=`(?:${o}|$)`,u=`(?:^|${o})`,d=`${r}{1,2}${c}`,h=`(?!${r})`,m=`(?!${u}${d})`,g=`(?!${r}{0,1}${c})`,v=`(?!${d})`,b=`[^.${o}]`,k=`${l}*?`,x={DOT_LITERAL:r,PLUS_LITERAL:n,QMARK_LITERAL:i,SLASH_LITERAL:o,ONE_CHAR:s,QMARK:l,END_ANCHOR:c,DOTS_SLASH:d,NO_DOT:h,NO_DOTS:m,NO_DOT_SLASH:g,NO_DOTS_SLASH:v,QMARK_NO_DOT:b,STAR:k,START_ANCHOR:u,SEP:"/"},w={...x,SLASH_LITERAL:`[${e}]`,QMARK:t,STAR:`${t}*?`,DOTS_SLASH:`${r}{1,2}(?:[${e}]|$)`,NO_DOT:`(?!${r})`,NO_DOTS:`(?!(?:^|[${e}])${r}{1,2}(?:[${e}]|$))`,NO_DOT_SLASH:`(?!${r}{0,1}(?:[${e}]|$))`,NO_DOTS_SLASH:`(?!${r}{1,2}(?:[${e}]|$))`,QMARK_NO_DOT:`[^.${e}]`,START_ANCHOR:`(?:^|[${e}])`,END_ANCHOR:`(?:[${e}]|$)`,SEP:"\\"},z={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};return XD={DEFAULT_MAX_EXTGLOB_RECURSION:a,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:z,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(S){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${S.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(S){return S===!0?w:x}},XD}var xxe;function Z_(){return xxe||(xxe=1,(function(e){const{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:a,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:n}=W_();e.isObject=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),e.hasRegexChars=i=>r.test(i),e.isRegexChar=i=>i.length===1&&e.hasRegexChars(i),e.escapeRegex=i=>i.replace(n,"\\$1"),e.toPosixSlashes=i=>i.replace(t,"/"),e.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){const i=navigator.platform.toLowerCase();return i==="win32"||i==="windows"}return!1},e.removeBackslashes=i=>i.replace(a,o=>o==="\\"?"":o),e.escapeLast=(i,o,s)=>{const l=i.lastIndexOf(o,s);return l===-1?i:i[l-1]==="\\"?e.escapeLast(i,o,l-1):`${i.slice(0,l)}\\${i.slice(l)}`},e.removePrefix=(i,o={})=>{let s=i;return s.startsWith("./")&&(s=s.slice(2),o.prefix="./"),s},e.wrapOutput=(i,o={},s={})=>{const l=s.contains?"":"^",c=s.contains?"":"$";let u=`${l}(?:${i})${c}`;return o.negated===!0&&(u=`(?:^(?!${u}).*$)`),u},e.basename=(i,{windows:o}={})=>{const s=i.split(o?/[\\/]/:"/"),l=s[s.length-1];return l===""?s[s.length-2]:l}})(yxe)),yxe}var e$,wxe;function TDt(){if(wxe)return e$;wxe=1;const e=Z_(),{CHAR_ASTERISK:t,CHAR_AT:a,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:n,CHAR_DOT:i,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:d,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:v}=W_(),b=x=>x===s||x===r,k=x=>{x.isPrefix!==!0&&(x.depth=x.isGlobstar?1/0:1)};return e$=(x,w)=>{const z=w||{},S=x.length-1,C=z.parts===!0||z.scanToEnd===!0,j=[],T=[],E=[];let I=x,N=-1,$=0,H=0,Z=!1,te=!1,ee=!1,oe=!1,ae=!1,ce=!1,Q=!1,V=!1,Y=!1,G=!1,D=0,U,K,X={value:"",depth:0,isGlob:!1};const J=()=>N>=S,he=()=>I.charCodeAt(N+1),Oe=()=>(U=K,I.charCodeAt(++N));for(;N<S;){K=Oe();let we;if(K===r){Q=X.backslashes=!0,K=Oe(),K===l&&(ce=!0);continue}if(ce===!0||K===l){for(D++;J()!==!0&&(K=Oe());){if(K===r){Q=X.backslashes=!0,Oe();continue}if(K===l){D++;continue}if(ce!==!0&&K===i&&(K=Oe())===i){if(Z=X.isBrace=!0,ee=X.isGlob=!0,G=!0,C===!0)continue;break}if(ce!==!0&&K===n){if(Z=X.isBrace=!0,ee=X.isGlob=!0,G=!0,C===!0)continue;break}if(K===m&&(D--,D===0)){ce=!1,Z=X.isBrace=!0,G=!0;break}}if(C===!0)continue;break}if(K===s){if(j.push(N),T.push(X),X={value:"",depth:0,isGlob:!1},G===!0)continue;if(U===i&&N===$+1){$+=2;continue}H=N+1;continue}if(z.noext!==!0&&(K===d||K===a||K===t||K===h||K===o)&&he()===c){if(ee=X.isGlob=!0,oe=X.isExtglob=!0,G=!0,K===o&&N===$&&(Y=!0),C===!0){for(;J()!==!0&&(K=Oe());){if(K===r){Q=X.backslashes=!0,K=Oe();continue}if(K===g){ee=X.isGlob=!0,G=!0;break}}continue}break}if(K===t){if(U===t&&(ae=X.isGlobstar=!0),ee=X.isGlob=!0,G=!0,C===!0)continue;break}if(K===h){if(ee=X.isGlob=!0,G=!0,C===!0)continue;break}if(K===u){for(;J()!==!0&&(we=Oe());){if(we===r){Q=X.backslashes=!0,Oe();continue}if(we===v){te=X.isBracket=!0,ee=X.isGlob=!0,G=!0;break}}if(C===!0)continue;break}if(z.nonegate!==!0&&K===o&&N===$){V=X.negated=!0,$++;continue}if(z.noparen!==!0&&K===c){if(ee=X.isGlob=!0,C===!0){for(;J()!==!0&&(K=Oe());){if(K===c){Q=X.backslashes=!0,K=Oe();continue}if(K===g){G=!0;break}}continue}break}if(ee===!0){if(G=!0,C===!0)continue;break}}z.noext===!0&&(oe=!1,ee=!1);let M=I,L="",re="";$>0&&(L=I.slice(0,$),I=I.slice($),H-=$),M&&ee===!0&&H>0?(M=I.slice(0,H),re=I.slice(H)):ee===!0?(M="",re=I):M=I,M&&M!==""&&M!=="/"&&M!==I&&b(M.charCodeAt(M.length-1))&&(M=M.slice(0,-1)),z.unescape===!0&&(re&&(re=e.removeBackslashes(re)),M&&Q===!0&&(M=e.removeBackslashes(M)));const ve={prefix:L,input:x,start:$,base:M,glob:re,isBrace:Z,isBracket:te,isGlob:ee,isExtglob:oe,isGlobstar:ae,negated:V,negatedExtglob:Y};if(z.tokens===!0&&(ve.maxDepth=0,b(K)||T.push(X),ve.tokens=T),z.parts===!0||z.tokens===!0){let we;for(let ke=0;ke<j.length;ke++){const le=we?we+1:$,je=j[ke],be=x.slice(le,je);z.tokens&&(ke===0&&$!==0?(T[ke].isPrefix=!0,T[ke].value=L):T[ke].value=be,k(T[ke]),ve.maxDepth+=T[ke].depth),(ke!==0||be!=="")&&E.push(be),we=je}if(we&&we+1<x.length){const ke=x.slice(we+1);E.push(ke),z.tokens&&(T[T.length-1].value=ke,k(T[T.length-1]),ve.maxDepth+=T[T.length-1].depth)}ve.slashes=j,ve.parts=E}return ve},e$}var t$,Sxe;function _Dt(){if(Sxe)return t$;Sxe=1;const e=W_(),t=Z_(),{MAX_LENGTH:a,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:n,REGEX_SPECIAL_CHARS_BACKREF:i,REPLACEMENTS:o}=e,s=(x,w)=>typeof w.expandRange=="function"?w.expandRange(...x,w):(x.sort(),`[${x.join("-")}]`),l=(x,w)=>`Missing ${x}: "${w}" - use "\\\\${w}" to match literal characters`,c=x=>{const w=[];let z=0,S=0,C=0,j="",T=!1;for(const E of x){if(T===!0){j+=E,T=!1;continue}if(E==="\\"){j+=E,T=!0;continue}if(E==='"'){C=C===1?0:1,j+=E;continue}if(C===0){if(E==="[")z++;else if(E==="]"&&z>0)z--;else if(z===0){if(E==="(")S++;else if(E===")"&&S>0)S--;else if(E==="|"&&S===0){w.push(j),j="";continue}}}j+=E}return w.push(j),w},u=x=>{let w=!1;for(const z of x){if(w===!0){w=!1;continue}if(z==="\\"){w=!0;continue}if(/[?*+@!()[\]{}]/.test(z))return!1}return!0},d=x=>{let w=x.trim(),z=!0;for(;z===!0;)z=!1,/^@\([^\\()[\]{}|]+\)$/.test(w)&&(w=w.slice(2,-1),z=!0);if(u(w))return w.replace(/\\(.)/g,"$1")},h=x=>{const w=x.map(d).filter(Boolean);for(let z=0;z<w.length;z++)for(let S=z+1;S<w.length;S++){const C=w[z],j=w[S],T=C[0];if(!(!T||C!==T.repeat(C.length)||j!==T.repeat(j.length))&&(C===j||C.startsWith(j)||j.startsWith(C)))return!0}return!1},m=(x,w=!0)=>{if(x[0]!=="+"&&x[0]!=="*"||x[1]!=="(")return;let z=0,S=0,C=0,j=!1;for(let T=1;T<x.length;T++){const E=x[T];if(j===!0){j=!1;continue}if(E==="\\"){j=!0;continue}if(E==='"'){C=C===1?0:1;continue}if(C!==1){if(E==="["){z++;continue}if(E==="]"&&z>0){z--;continue}if(!(z>0)){if(E==="("){S++;continue}if(E===")"&&(S--,S===0))return w===!0&&T!==x.length-1?void 0:{type:x[0],body:x.slice(2,T),end:T}}}}},g=x=>{let w=0;const z=[];for(;w<x.length;){const S=m(x.slice(w),!1);if(!S||S.type!=="*")return;const C=c(S.body).map(T=>T.trim());if(C.length!==1)return;const j=d(C[0]);if(!j||j.length!==1)return;z.push(j),w+=S.end+1}return z.length<1?void 0:`${z.length===1?t.escapeRegex(z[0]):`[${z.map(S=>t.escapeRegex(S)).join("")}]`}*`},v=x=>{let w=0,z=x.trim(),S=m(z);for(;S;)w++,z=S.body.trim(),S=m(z);return w},b=(x,w)=>{if(w.maxExtglobRecursion===!1)return{risky:!1};const z=typeof w.maxExtglobRecursion=="number"?w.maxExtglobRecursion:e.DEFAULT_MAX_EXTGLOB_RECURSION,S=c(x).map(C=>C.trim());if(S.length>1&&(S.some(C=>C==="")||S.some(C=>/^[*?]+$/.test(C))||h(S)))return{risky:!0};for(const C of S){const j=g(C);if(j)return{risky:!0,safeOutput:j};if(v(C)>z)return{risky:!0}}return{risky:!1}},k=(x,w)=>{if(typeof x!="string")throw new TypeError("Expected a string");x=o[x]||x;const z={...w},S=typeof z.maxLength=="number"?Math.min(a,z.maxLength):a;let C=x.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);const j={type:"bos",value:"",output:z.prepend||""},T=[j],E=z.capture?"":"?:",I=e.globChars(z.windows),N=e.extglobChars(I),{DOT_LITERAL:$,PLUS_LITERAL:H,SLASH_LITERAL:Z,ONE_CHAR:te,DOTS_SLASH:ee,NO_DOT:oe,NO_DOT_SLASH:ae,NO_DOTS_SLASH:ce,QMARK:Q,QMARK_NO_DOT:V,STAR:Y,START_ANCHOR:G}=I,D=We=>`(${E}(?:(?!${G}${We.dot?ee:$}).)*?)`,U=z.dot?"":oe,K=z.dot?Q:V;let X=z.bash===!0?D(z):Y;z.capture&&(X=`(${X})`),typeof z.noext=="boolean"&&(z.noextglob=z.noext);const J={input:x,index:-1,start:0,dot:z.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:T};x=t.removePrefix(x,J),C=x.length;const he=[],Oe=[],M=[];let L=j,re;const ve=()=>J.index===C-1,we=J.peek=(We=1)=>x[J.index+We],ke=J.advance=()=>x[++J.index]||"",le=()=>x.slice(J.index+1),je=(We="",_=0)=>{J.consumed+=We,J.index+=_},be=We=>{J.output+=We.output!=null?We.output:We.value,je(We.value)},Re=()=>{let We=1;for(;we()==="!"&&(we(2)!=="("||we(3)==="?");)ke(),J.start++,We++;return We%2===0?!1:(J.negated=!0,J.start++,!0)},Ce=We=>{J[We]++,M.push(We)},Me=We=>{J[We]--,M.pop()},de=We=>{if(L.type==="globstar"){const _=J.braces>0&&(We.type==="comma"||We.type==="brace"),W=We.extglob===!0||he.length&&(We.type==="pipe"||We.type==="paren");We.type!=="slash"&&We.type!=="paren"&&!_&&!W&&(J.output=J.output.slice(0,-L.output.length),L.type="star",L.value="*",L.output=X,J.output+=L.output)}if(he.length&&We.type!=="paren"&&(he[he.length-1].inner+=We.value),(We.value||We.output)&&be(We),L&&L.type==="text"&&We.type==="text"){L.output=(L.output||L.value)+We.value,L.value+=We.value;return}We.prev=L,T.push(We),L=We},Ae=(We,_)=>{const W={...N[_],conditions:1,inner:""};W.prev=L,W.parens=J.parens,W.output=J.output,W.startIndex=J.index,W.tokensIndex=T.length;const ne=(z.capture?"(":"")+W.open;Ce("parens"),de({type:We,value:_,output:J.output?"":te}),de({type:"paren",extglob:!0,value:ke(),output:ne}),he.push(W)},Qe=We=>{const _=x.slice(We.startIndex,J.index+1),W=x.slice(We.startIndex+2,J.index),ne=b(W,z);if((We.type==="plus"||We.type==="star")&&ne.risky){const Te=ne.safeOutput?(We.output?"":te)+(z.capture?`(${ne.safeOutput})`:ne.safeOutput):void 0,Le=T[We.tokensIndex];Le.type="text",Le.value=_,Le.output=Te||t.escapeRegex(_);for(let rt=We.tokensIndex+1;rt<T.length;rt++)T[rt].value="",T[rt].output="",delete T[rt].suffix;J.output=We.output+Le.output,J.backtrack=!0,de({type:"paren",extglob:!0,value:re,output:""}),Me("parens");return}let ge=We.close+(z.capture?")":""),Pe;if(We.type==="negate"){let Te=X;if(We.inner&&We.inner.length>1&&We.inner.includes("/")&&(Te=D(z)),(Te!==X||ve()||/^\)+$/.test(le()))&&(ge=We.close=`)$))${Te}`),We.inner.includes("*")&&(Pe=le())&&/^\.[^\\/.]+$/.test(Pe)){const Le=k(Pe,{...w,fastpaths:!1}).output;ge=We.close=`)${Le})${Te})`}We.prev.type==="bos"&&(J.negatedExtglob=!0)}de({type:"paren",extglob:!0,value:re,output:ge}),Me("parens")};if(z.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(x)){let We=!1,_=x.replace(i,(W,ne,ge,Pe,Te,Le)=>Pe==="\\"?(We=!0,W):Pe==="?"?ne?ne+Pe+(Te?Q.repeat(Te.length):""):Le===0?K+(Te?Q.repeat(Te.length):""):Q.repeat(ge.length):Pe==="."?$.repeat(ge.length):Pe==="*"?ne?ne+Pe+(Te?X:""):X:ne?W:`\\${W}`);return We===!0&&(z.unescape===!0?_=_.replace(/\\/g,""):_=_.replace(/\\+/g,W=>W.length%2===0?"\\\\":W?"\\":"")),_===x&&z.contains===!0?(J.output=x,J):(J.output=t.wrapOutput(_,J,w),J)}for(;!ve();){if(re=ke(),re==="\0")continue;if(re==="\\"){const W=we();if(W==="/"&&z.bash!==!0||W==="."||W===";")continue;if(!W){re+="\\",de({type:"text",value:re});continue}const ne=/^\\+/.exec(le());let ge=0;if(ne&&ne[0].length>2&&(ge=ne[0].length,J.index+=ge,ge%2!==0&&(re+="\\")),z.unescape===!0?re=ke():re+=ke(),J.brackets===0){de({type:"text",value:re});continue}}if(J.brackets>0&&(re!=="]"||L.value==="["||L.value==="[^")){if(z.posix!==!1&&re===":"){const W=L.value.slice(1);if(W.includes("[")&&(L.posix=!0,W.includes(":"))){const ne=L.value.lastIndexOf("["),ge=L.value.slice(0,ne),Pe=L.value.slice(ne+2),Te=r[Pe];if(Te){L.value=ge+Te,J.backtrack=!0,ke(),!j.output&&T.indexOf(L)===1&&(j.output=te);continue}}}(re==="["&&we()!==":"||re==="-"&&we()==="]")&&(re=`\\${re}`),re==="]"&&(L.value==="["||L.value==="[^")&&(re=`\\${re}`),z.posix===!0&&re==="!"&&L.value==="["&&(re="^"),L.value+=re,be({value:re});continue}if(J.quotes===1&&re!=='"'){re=t.escapeRegex(re),L.value+=re,be({value:re});continue}if(re==='"'){J.quotes=J.quotes===1?0:1,z.keepQuotes===!0&&de({type:"text",value:re});continue}if(re==="("){Ce("parens"),de({type:"paren",value:re});continue}if(re===")"){if(J.parens===0&&z.strictBrackets===!0)throw new SyntaxError(l("opening","("));const W=he[he.length-1];if(W&&J.parens===W.parens+1){Qe(he.pop());continue}de({type:"paren",value:re,output:J.parens?")":"\\)"}),Me("parens");continue}if(re==="["){if(z.nobracket===!0||!le().includes("]")){if(z.nobracket!==!0&&z.strictBrackets===!0)throw new SyntaxError(l("closing","]"));re=`\\${re}`}else Ce("brackets");de({type:"bracket",value:re});continue}if(re==="]"){if(z.nobracket===!0||L&&L.type==="bracket"&&L.value.length===1){de({type:"text",value:re,output:`\\${re}`});continue}if(J.brackets===0){if(z.strictBrackets===!0)throw new SyntaxError(l("opening","["));de({type:"text",value:re,output:`\\${re}`});continue}Me("brackets");const W=L.value.slice(1);if(L.posix!==!0&&W[0]==="^"&&!W.includes("/")&&(re=`/${re}`),L.value+=re,be({value:re}),z.literalBrackets===!1||t.hasRegexChars(W))continue;const ne=t.escapeRegex(L.value);if(J.output=J.output.slice(0,-L.value.length),z.literalBrackets===!0){J.output+=ne,L.value=ne;continue}L.value=`(${E}${ne}|${L.value})`,J.output+=L.value;continue}if(re==="{"&&z.nobrace!==!0){Ce("braces");const W={type:"brace",value:re,output:"(",outputIndex:J.output.length,tokensIndex:J.tokens.length};Oe.push(W),de(W);continue}if(re==="}"){const W=Oe[Oe.length-1];if(z.nobrace===!0||!W){de({type:"text",value:re,output:re});continue}let ne=")";if(W.dots===!0){const ge=T.slice(),Pe=[];for(let Te=ge.length-1;Te>=0&&(T.pop(),ge[Te].type!=="brace");Te--)ge[Te].type!=="dots"&&Pe.unshift(ge[Te].value);ne=s(Pe,z),J.backtrack=!0}if(W.comma!==!0&&W.dots!==!0){const ge=J.output.slice(0,W.outputIndex),Pe=J.tokens.slice(W.tokensIndex);W.value=W.output="\\{",re=ne="\\}",J.output=ge;for(const Te of Pe)J.output+=Te.output||Te.value}de({type:"brace",value:re,output:ne}),Me("braces"),Oe.pop();continue}if(re==="|"){he.length>0&&he[he.length-1].conditions++,de({type:"text",value:re});continue}if(re===","){let W=re;const ne=Oe[Oe.length-1];ne&&M[M.length-1]==="braces"&&(ne.comma=!0,W="|"),de({type:"comma",value:re,output:W});continue}if(re==="/"){if(L.type==="dot"&&J.index===J.start+1){J.start=J.index+1,J.consumed="",J.output="",T.pop(),L=j;continue}de({type:"slash",value:re,output:Z});continue}if(re==="."){if(J.braces>0&&L.type==="dot"){L.value==="."&&(L.output=$);const W=Oe[Oe.length-1];L.type="dots",L.output+=re,L.value+=re,W.dots=!0;continue}if(J.braces+J.parens===0&&L.type!=="bos"&&L.type!=="slash"){de({type:"text",value:re,output:$});continue}de({type:"dot",value:re,output:$});continue}if(re==="?"){if(!(L&&L.value==="(")&&z.noextglob!==!0&&we()==="("&&we(2)!=="?"){Ae("qmark",re);continue}if(L&&L.type==="paren"){const W=we();let ne=re;(L.value==="("&&!/[!=<:]/.test(W)||W==="<"&&!/<([!=]|\w+>)/.test(le()))&&(ne=`\\${re}`),de({type:"text",value:re,output:ne});continue}if(z.dot!==!0&&(L.type==="slash"||L.type==="bos")){de({type:"qmark",value:re,output:V});continue}de({type:"qmark",value:re,output:Q});continue}if(re==="!"){if(z.noextglob!==!0&&we()==="("&&(we(2)!=="?"||!/[!=<:]/.test(we(3)))){Ae("negate",re);continue}if(z.nonegate!==!0&&J.index===0){Re();continue}}if(re==="+"){if(z.noextglob!==!0&&we()==="("&&we(2)!=="?"){Ae("plus",re);continue}if(L&&L.value==="("||z.regex===!1){de({type:"plus",value:re,output:H});continue}if(L&&(L.type==="bracket"||L.type==="paren"||L.type==="brace")||J.parens>0){de({type:"plus",value:re});continue}de({type:"plus",value:H});continue}if(re==="@"){if(z.noextglob!==!0&&we()==="("&&we(2)!=="?"){de({type:"at",extglob:!0,value:re,output:""});continue}de({type:"text",value:re});continue}if(re!=="*"){(re==="$"||re==="^")&&(re=`\\${re}`);const W=n.exec(le());W&&(re+=W[0],J.index+=W[0].length),de({type:"text",value:re});continue}if(L&&(L.type==="globstar"||L.star===!0)){L.type="star",L.star=!0,L.value+=re,L.output=X,J.backtrack=!0,J.globstar=!0,je(re);continue}let We=le();if(z.noextglob!==!0&&/^\([^?]/.test(We)){Ae("star",re);continue}if(L.type==="star"){if(z.noglobstar===!0){je(re);continue}const W=L.prev,ne=W.prev,ge=W.type==="slash"||W.type==="bos",Pe=ne&&(ne.type==="star"||ne.type==="globstar");if(z.bash===!0&&(!ge||We[0]&&We[0]!=="/")){de({type:"star",value:re,output:""});continue}const Te=J.braces>0&&(W.type==="comma"||W.type==="brace"),Le=he.length&&(W.type==="pipe"||W.type==="paren");if(!ge&&W.type!=="paren"&&!Te&&!Le){de({type:"star",value:re,output:""});continue}for(;We.slice(0,3)==="/**";){const rt=x[J.index+4];if(rt&&rt!=="/")break;We=We.slice(3),je("/**",3)}if(W.type==="bos"&&ve()){L.type="globstar",L.value+=re,L.output=D(z),J.output=L.output,J.globstar=!0,je(re);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&!Pe&&ve()){J.output=J.output.slice(0,-(W.output+L.output).length),W.output=`(?:${W.output}`,L.type="globstar",L.output=D(z)+(z.strictSlashes?")":"|$)"),L.value+=re,J.globstar=!0,J.output+=W.output+L.output,je(re);continue}if(W.type==="slash"&&W.prev.type!=="bos"&&We[0]==="/"){const rt=We[1]!==void 0?"|$":"";J.output=J.output.slice(0,-(W.output+L.output).length),W.output=`(?:${W.output}`,L.type="globstar",L.output=`${D(z)}${Z}|${Z}${rt})`,L.value+=re,J.output+=W.output+L.output,J.globstar=!0,je(re+ke()),de({type:"slash",value:"/",output:""});continue}if(W.type==="bos"&&We[0]==="/"){L.type="globstar",L.value+=re,L.output=`(?:^|${Z}|${D(z)}${Z})`,J.output=L.output,J.globstar=!0,je(re+ke()),de({type:"slash",value:"/",output:""});continue}J.output=J.output.slice(0,-L.output.length),L.type="globstar",L.output=D(z),L.value+=re,J.output+=L.output,J.globstar=!0,je(re);continue}const _={type:"star",value:re,output:X};if(z.bash===!0){_.output=".*?",(L.type==="bos"||L.type==="slash")&&(_.output=U+_.output),de(_);continue}if(L&&(L.type==="bracket"||L.type==="paren")&&z.regex===!0){_.output=re,de(_);continue}(J.index===J.start||L.type==="slash"||L.type==="dot")&&(L.type==="dot"?(J.output+=ae,L.output+=ae):z.dot===!0?(J.output+=ce,L.output+=ce):(J.output+=U,L.output+=U),we()!=="*"&&(J.output+=te,L.output+=te)),de(_)}for(;J.brackets>0;){if(z.strictBrackets===!0)throw new SyntaxError(l("closing","]"));J.output=t.escapeLast(J.output,"["),Me("brackets")}for(;J.parens>0;){if(z.strictBrackets===!0)throw new SyntaxError(l("closing",")"));J.output=t.escapeLast(J.output,"("),Me("parens")}for(;J.braces>0;){if(z.strictBrackets===!0)throw new SyntaxError(l("closing","}"));J.output=t.escapeLast(J.output,"{"),Me("braces")}if(z.strictSlashes!==!0&&(L.type==="star"||L.type==="bracket")&&de({type:"maybe_slash",value:"",output:`${Z}?`}),J.backtrack===!0){J.output="";for(const We of J.tokens)J.output+=We.output!=null?We.output:We.value,We.suffix&&(J.output+=We.suffix)}return J};return k.fastpaths=(x,w)=>{const z={...w},S=typeof z.maxLength=="number"?Math.min(a,z.maxLength):a,C=x.length;if(C>S)throw new SyntaxError(`Input length: ${C}, exceeds maximum allowed length: ${S}`);x=o[x]||x;const{DOT_LITERAL:j,SLASH_LITERAL:T,ONE_CHAR:E,DOTS_SLASH:I,NO_DOT:N,NO_DOTS:$,NO_DOTS_SLASH:H,STAR:Z,START_ANCHOR:te}=e.globChars(z.windows),ee=z.dot?$:N,oe=z.dot?H:N,ae=z.capture?"":"?:",ce={negated:!1,prefix:""};let Q=z.bash===!0?".*?":Z;z.capture&&(Q=`(${Q})`);const V=U=>U.noglobstar===!0?Q:`(${ae}(?:(?!${te}${U.dot?I:j}).)*?)`,Y=U=>{switch(U){case"*":return`${ee}${E}${Q}`;case".*":return`${j}${E}${Q}`;case"*.*":return`${ee}${Q}${j}${E}${Q}`;case"*/*":return`${ee}${Q}${T}${E}${oe}${Q}`;case"**":return ee+V(z);case"**/*":return`(?:${ee}${V(z)}${T})?${oe}${E}${Q}`;case"**/*.*":return`(?:${ee}${V(z)}${T})?${oe}${Q}${j}${E}${Q}`;case"**/.*":return`(?:${ee}${V(z)}${T})?${j}${E}${Q}`;default:{const K=/^(.*?)\.(\w+)$/.exec(U);if(!K)return;const X=Y(K[1]);return X?X+j+K[2]:void 0}}},G=t.removePrefix(x,ce);let D=Y(G);return D&&z.strictSlashes!==!0&&(D+=`${T}?`),D},t$=k,t$}var a$,Oxe;function MDt(){if(Oxe)return a$;Oxe=1;const e=TDt(),t=_Dt(),a=Z_(),r=W_(),n=o=>o&&typeof o=="object"&&!Array.isArray(o),i=(o,s,l=!1)=>{if(Array.isArray(o)){const b=o.map(k=>i(k,s,l));return k=>{for(const x of b){const w=x(k);if(w)return w}return!1}}const c=n(o)&&o.tokens&&o.input;if(o===""||typeof o!="string"&&!c)throw new TypeError("Expected pattern to be a non-empty string");const u=s||{},d=u.windows,h=c?i.compileRe(o,s):i.makeRe(o,s,!1,!0),m=h.state;delete h.state;let g=()=>!1;if(u.ignore){const b={...s,ignore:null,onMatch:null,onResult:null};g=i(u.ignore,b,l)}const v=(b,k=!1)=>{const{isMatch:x,match:w,output:z}=i.test(b,h,s,{glob:o,posix:d}),S={glob:o,state:m,regex:h,posix:d,input:b,output:z,match:w,isMatch:x};return typeof u.onResult=="function"&&u.onResult(S),x===!1?(S.isMatch=!1,k?S:!1):g(b)?(typeof u.onIgnore=="function"&&u.onIgnore(S),S.isMatch=!1,k?S:!1):(typeof u.onMatch=="function"&&u.onMatch(S),k?S:!0)};return l&&(v.state=m),v};return i.test=(o,s,l,{glob:c,posix:u}={})=>{if(typeof o!="string")throw new TypeError("Expected input to be a string");if(o==="")return{isMatch:!1,output:""};const d=l||{},h=d.format||(u?a.toPosixSlashes:null);let m=o===c,g=m&&h?h(o):o;return m===!1&&(g=h?h(o):o,m=g===c),(m===!1||d.capture===!0)&&(d.matchBase===!0||d.basename===!0?m=i.matchBase(o,s,l,u):m=s.exec(g)),{isMatch:!!m,match:m,output:g}},i.matchBase=(o,s,l)=>(s instanceof RegExp?s:i.makeRe(s,l)).test(a.basename(o)),i.isMatch=(o,s,l)=>i(s,l)(o),i.parse=(o,s)=>Array.isArray(o)?o.map(l=>i.parse(l,s)):t(o,{...s,fastpaths:!1}),i.scan=(o,s)=>e(o,s),i.compileRe=(o,s,l=!1,c=!1)=>{if(l===!0)return o.output;const u=s||{},d=u.contains?"":"^",h=u.contains?"":"$";let m=`${d}(?:${o.output})${h}`;o&&o.negated===!0&&(m=`^(?!${m}).*$`);const g=i.toRegex(m,s);return c===!0&&(g.state=o),g},i.makeRe=(o,s={},l=!1,c=!1)=>{if(!o||typeof o!="string")throw new TypeError("Expected a non-empty string");let u={negated:!1,fastpaths:!0};return s.fastpaths!==!1&&(o[0]==="."||o[0]==="*")&&(u.output=t.fastpaths(o,s)),u.output||(u=t(o,s)),i.compileRe(u,s,l,c)},i.toRegex=(o,s)=>{try{const l=s||{};return new RegExp(o,l.flags||(l.nocase?"i":""))}catch(l){if(s&&s.debug===!0)throw l;return/$^/}},i.constants=r,a$=i,a$}var r$,zxe;function EDt(){if(zxe)return r$;zxe=1;const e=MDt(),t=Z_();function a(r,n,i=!1){return n&&(n.windows===null||n.windows===void 0)&&(n={...n,windows:t.isWindows()}),e(r,n,i)}return Object.assign(a,e),r$=a,r$}var RDt=EDt();const NDt=Nn(RDt),n$={};async function Cxe(e,t){const a={};for(const n of t.headers)IDt(e,n.matches)&&(a[n.name]=n.envVariable!==void 0?n$[n.envVariable]||"":n.value);const r=await(t.customFetch||fetch)(e,{headers:a});if(!r.ok)throw new Error(`Failed to load ${e}: ${r.status} ${r.statusText}`);return{body:await r.text(),mimeType:r.headers.get("content-type")}}function IDt(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),NDt.isMatch(e,t)}class K1{constructor(t,a,r){this.absoluteRef=t,this.body=a,this.mimeType=r}getAst(t){return this._ast===void 0&&(this._ast=t(this.body,{filename:this.absoluteRef})??void 0,this._ast&&this._ast.kind===0&&this._ast.value===""&&this._ast.startPosition!==1&&(this._ast.startPosition=1,this._ast.endPosition=1)),this._ast}getLines(){return this._lines===void 0&&(this._lines=this.body.split(/\r\n|[\n\r]/g)),this._lines}}class uX extends Error{constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,uX.prototype)}}function LDt(e,t){const a=new K1(t,e);try{return{source:a,parsed:WD(e,{filename:t})}}catch(r){throw new xw(r,a)}}class ZO{constructor(t={http:{headers:[]}}){this.config=t,this.cache=new Map}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,a){return $o(a)?a:t&&$o(t)?new URL(a,t).href:Tr.resolve(t?Tr.dirname(t):process.cwd(),a)}async loadExternalRef(t){try{if($o(t)){const{body:a,mimeType:r}=await Cxe(t,this.config.http);return new K1(t,a,r)}else{if((void 0)(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);const a=await(void 0).readFile(t,"utf-8");return new K1(t,a.replace(/\r\n/g,`
|
|
11537
11574
|
`))}}catch(a){throw a.message=a.message.replace(", lstat",""),new uX(a)}}parseDocument(t,a=!1){const r=t.absoluteRef.substr(t.absoluteRef.lastIndexOf("."));if(![".json",".json",".yml",".yaml"].includes(r)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!a)return{source:t,parsed:t.body};try{return{source:t,parsed:WD(t.body,{filename:t.absoluteRef})}}catch(n){throw new xw(n,t)}}async resolveDocument(t,a,r=!1){const n=this.resolveExternalRef(t,a),i=this.cache.get(n);if(i)return i;const o=this.loadExternalRef(n).then(s=>this.parseDocument(s,r));return this.cache.set(n,o),o}}function jxe(e,t){return{prev:e,node:t}}function BDt(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}const JO={name:"unknown",properties:{}},DDt={name:"scalar",properties:{}};async function H1(e){const{rootDocument:t,externalRefResolver:a,rootType:r}=e,n=new Map,i=new Set,o=[];l(t.parsed,t,"#/",r);let s;do s=await Promise.all(o);while(o.length!==s.length);return n;function l(c,u,d,h){const m=u.source.absoluteRef,g=new Map;v(c,h,m+d);function v(k,x,w){if(!Lt(k)&&!Array.isArray(k))return;const z=`${x.name}::${w}`;if(i.has(z))return;if(i.add(z),Array.isArray(k)){const j=x.items;if(j===void 0&&x!==JO&&x!==Cb)return;const T=typeof j=="function";for(let E=0;E<k.length;E++){let I=T?j(k[E],ug(w,E)):j;if(I===void 0&&x!==JO&&x!==Cb)continue;const N=I?.directResolveAs?{$ref:k[E]}:k[E];I=I?.directResolveAs||I,v(N,dg(I)?I:JO,ug(w,E))}return}const[S,C]=Object.entries(k).find(([j])=>j==="$anchor")||[];C&&g.set(`#${C}`,k);for(const j of Object.keys(k)){let T=k[j],E=jb(x.properties,j);E===void 0&&(E=x.additionalProperties),typeof E=="function"&&(E=E(T,j)),E===void 0&&(E=JO),x.extensionsPrefix&&j.startsWith(x.extensionsPrefix)&&E===JO&&(E=Cb),!dg(E)&&E?.directResolveAs&&(E=E.directResolveAs,T={$ref:T}),E&&E.name===void 0&&E.resolvable!==!1&&(E=DDt),!(!dg(E)||!(Lt(T)||Array.isArray(T)))&&v(T,E,ug(w,zb(j)))}if(bo(k)){const j=b(u,k,{prev:null,node:k}).then(T=>{T.resolved&&l(T.node,T.document,T.nodePointer,x)});o.push(j)}if(mxe(k)){const j=b(u,{$ref:k.externalValue},{prev:null,node:k}).then(T=>{T.resolved&&l(T.node,T.document,T.nodePointer,x)});o.push(j)}}async function b(k,x,w){if(BDt(w.prev,x))throw new Error("Self-referencing circular pointer");if(vDt(x.$ref)){await ADt();const $={resolved:!0,isRemote:!1,node:g.get(x.$ref),document:k,nodePointer:x.$ref},H=WO(k.source.absoluteRef,x.$ref);return n.set(H,$),$}const{uri:z,pointer:S}=ZD(x.$ref),C=z!==null&&a.resolveExternalRef(k.source.absoluteRef,z)!==k.source.absoluteRef;let j;try{j=C?await a.resolveDocument(k.source.absoluteRef,z):k}catch($){const H={resolved:!1,isRemote:C,document:void 0,error:$},Z=WO(k.source.absoluteRef,x.$ref);return n.set(Z,H),H}let T={resolved:!0,document:j,isRemote:C,node:k.parsed,nodePointer:"#/"},E=j.parsed;const I=S;for(const $ of I)if(Lt(E)&&E[$]!==void 0)E=E[$],T.nodePointer=ug(T.nodePointer,zb($));else if(Array.isArray(E)&&E[+$]!==void 0)E=E[+$],T.nodePointer=ug(T.nodePointer,zb($));else if(bo(E))if(T=await b(j,E,jxe(w,E)),j=T.document||j,Lt(T.node))E=T.node[$],T.nodePointer=ug(T.nodePointer,zb($));else if(Array.isArray(T.node))E=T.node[+$],T.nodePointer=ug(T.nodePointer,zb($));else{E=void 0;break}else{E=void 0;break}T.node=E,T.document=j;const N=WO(k.source.absoluteRef,x.$ref);return T.document&&bo(E)&&(T=await b(T.document,E,jxe(w,E))),n.set(N,T),{...T}}}}const $Dt=/^[0-9][0-9Xx]{2}$/,KDt={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},HDt={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},VDt={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},FDt={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},qDt={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},GDt={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},UDt={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},QDt={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},WDt={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},ZDt={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},JDt={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},YDt={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(e){return!e||!e.in?["name","in"]:e.in==="body"?["name","in","schema"]:e.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},XDt={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},e$t={properties:{default:"Response"},additionalProperties:(e,t)=>$Dt.test(t)?"Response":void 0},t$t={properties:{description:{type:"string"},schema:"Schema",headers:ka("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},a$t={properties:{},additionalProperties:{isExample:!0}},r$t={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return Lt(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},n$t={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},i$t={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},o$t={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?Ta("Schema"):"Schema",allOf:Ta("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},s$t={properties:{},additionalProperties:{type:"string"}},l$t={properties:{},additionalProperties:"Schema"},c$t={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},u$t={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},d$t={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},p$t={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},Pxe={Root:KDt,Tag:n$t,TagList:Ta("Tag"),TagGroups:Ta("TagGroup"),TagGroup:i$t,ExternalDocs:JDt,Example:p$t,ExamplesMap:ka("Example"),EnumDescriptions:s$t,SecurityRequirement:d$t,SecurityRequirementList:Ta("SecurityRequirement"),Info:HDt,Contact:FDt,License:qDt,Logo:VDt,Paths:GDt,PathItem:UDt,Parameter:YDt,ParameterItems:XDt,ParameterList:Ta("Parameter"),Operation:QDt,Examples:a$t,Header:r$t,Responses:e$t,Response:t$t,Schema:o$t,Xml:c$t,SchemaProperties:l$t,NamedSchemas:ka("Schema"),NamedResponses:ka("Response"),NamedParameters:ka("Parameter"),NamedSecuritySchemes:ka("SecurityScheme"),SecurityScheme:u$t,XCodeSample:WDt,XCodeSampleList:Ta("XCodeSample"),XServerList:Ta("XServer"),XServer:ZDt},h$t=/^[0-9][0-9Xx]{2}$/,m$t={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},f$t={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A description for the tag."},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-",description:"The Tag Object represents a tag used by the OAS. It is not mandatory to have a tag object per tag used by the OAS but each tag object can contain additional metadata."},g$t={properties:{name:{type:"string",description:"The display name for the tag, used in the navigation bar and as a section heading."},tags:{type:"array",description:"List of tags to include in this group.",items:{type:"string"}}},extensionsPrefix:"x-",description:"The x-tagGroups extension is used at the top level of an OpenAPI description.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-tag-groups#taggroup-object"},v$t={properties:{description:{type:"string",description:"A description of the target documentation. Used as the link anchor text in Redocly. If not provided, the url is used as the link anchor text."},url:{type:"string",description:"REQUIRED. The URL for the target documentation."}},required:["url"],extensionsPrefix:"x-",description:"Additional external documentation for this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/external-docs"},b$t={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions are made when a variable is named in { curly braces }."},description:{type:"string",description:"An optional string describing the host designated by the URL."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"A server object to be used by the target operation."},y$t={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. If defined, the array MUST contain the default value."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value MUST exist in the enum's values."},description:{type:"string",description:"An optional description for the server variable."}},required:["default"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/server-variables#server-variables",description:"Server variables are used when you need to make a substitution into the server URL such as when the subdomain is unique per tenant."},k$t={properties:{},additionalProperties:{type:"array",items:{type:"string"}},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/security#security-requirement-object",description:"A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement ({}) can be included in the array."},x$t={properties:{title:{type:"string",description:"REQUIRED. The title of the API."},version:{type:"string",description:"REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version)."},description:{type:"string",description:"RECOMMENDED. A description of the API (Markdown may be used)."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API."},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/info#info"},w$t={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},documentationLink:"https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-logo#x-logo",description:"A commonly used specification extension containing the information about the API logo."},S$t={properties:{name:{type:"string",description:"The identifying name of the contact person or organization."},url:{type:"string",description:"The URL pointing to the contact information."},email:{type:"string",description:"The email address of the contact person or organization."}},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/contact",description:"The contact information for the exposed API."},O$t={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"The URL pointing to the contact information."}},required:["name"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/license#license",description:"The license information for the exposed API."},z$t={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0,description:"The Paths Object is a map of a paths to the path item object. A path starts with a /.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object"},C$t={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},j$t={properties:{$ref:{type:"string",description:"Allows for a referenced definition of this path item. The referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/reference"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string",description:"An optional, string summary, intended to apply to all operations in this path."},description:{type:"string",description:"An optional, string description, intended to apply to all operations in this path."},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation","x-query":"Operation"},extensionsPrefix:"x-",description:"Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/path-item#path-item-object"},P$t={properties:{name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},in:{enum:["query","header","path","cookie"],description:'REQUIRED. The location of the parameter. Possible values are "query", "header", "path", or "cookie".'},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use."},required:{type:"boolean",description:'Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.'},deprecated:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},allowEmptyValue:{type:"boolean",description:"Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form."},explode:{type:"boolean",description:"When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query. The default value is false."},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-",description:"Describes a request parameter, which excludes the request body. A unique parameter is defined by a unique combination of the name and in values.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/parameter"},A$t={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation"},T$t={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}},documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-code-samples",description:"Code samples are snippets of code shown alongside API operations in reference documentation, giving users a quick way to start to interact with an API from their own code. The x-codeSamples addition to OpenAPI allows you to add or override any existing code samples for a particular language or endpoint."},_$t={properties:{description:{type:"string",description:"A brief description of the request body. This could contain examples of use."},required:{type:"boolean",description:"Determines if the request body is required in the request. Defaults to false."},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/request-body",description:"The request body is defined inside of operations (including paths and webhooks). The request body can also be defined inside of the named requestBodies object in components."},M$t={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},E$t={properties:{schema:"Schema",example:{isExample:!0,description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema."},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-",description:"The Media Type Object is one of the important building blocks of OpenAPI.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type"},R$t={properties:{value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary."},summary:{type:"string"},description:{type:"string",description:"Long description for the example."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/example"},N$t={properties:{contentType:{type:"string",description:"The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary \u2013 application/octet-stream; for other primitive types \u2013 text/plain; for object - application/json; for array \u2013 the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types."},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},explode:{type:"boolean",description:"When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."}},extensionsPrefix:"x-",description:"A single encoding definition applied to a single schema property.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/encoding#types"},I$t={properties:{},additionalProperties:{type:"string"},description:'The enum (short for "enumeration") fields in OpenAPI allow you to restrict the value of a field to a list of allowed values. These values need to be short and machine-readable, but that can make them harder for humans to parse and work with.',documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-enum-descriptions"},L$t={properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines whether this parameter is mandatory. Its default value is false."},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0,description:"Example of the header's potential value. The example SHOULD match the specified schema and encoding properties if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema that contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary."},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/header#header-object",description:"The header object is used to describe a response header in the headers map."},B$t={properties:{default:"Response"},additionalProperties:(e,t)=>h$t.test(t)?"Response":void 0,description:"The list of possible responses as they are returned from executing this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/named-responses"},D$t={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-summary#openapi-extension-x-summary",description:"Use x-summary to add a short custom text to describe the response in the API documentation."}},required:["description"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/response",description:"The response object describes a single response in the Responses Map."},$$t={properties:{operationRef:{type:"string",description:"A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition."},operationId:{type:"string",description:"The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field."},parameters:null,requestBody:null,description:{type:"string",description:"A description of the link."},server:"Server"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/links",description:"The Link object represents a possible design-time link for a response. The presence of a link does not guarantee the caller\u2019s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},K$t={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string",description:"Value MUST be a string. Multiple types via an array are not supported."},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string",description:"(This string SHOULD be a valid regular expression, according to the Ecma-262 Edition 5.1 regular expression dialect)"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"],description:"Value MUST be a string. Multiple types via an array are not supported."},allOf:Ta("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),anyOf:Ta("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),oneOf:Ta("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?Ta("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},H$t={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-",description:"This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property."},V$t={properties:{},additionalProperties:"Schema"},F$t={properties:{},additionalProperties:e=>typeof e=="string"&&QO(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},q$t={properties:{propertyName:{type:"string",description:"REQUIRED. The name of the property in the payload that will hold the discriminator value."},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#discriminator-object",description:"When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the document of an alternative schema based on the value associated with it."},G$t={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/components#components"},U$t={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Implicit flow."},Q$t={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Object Configuration for the OAuth Resource Owner Password flow."},W$t={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0."},Z$t={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":e=>typeof e=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0."},J$t={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},Y$t={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"],description:'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".'},description:{type:"string",description:"A short description for security scheme."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie"],description:'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie".'},scheme:{type:"string",description:"A short description for security scheme."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"OAuth2Flows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL."},"x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},X$t={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}},description:"The x-usePkce allows you to enable Proof Key for Code Exchange (PKCE) for the Oauth2 or OpenID Connect authorization code flow in the Replay.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-use-pkce#openapi-extension-x-usepkce"},Ud={Root:m$t,Tag:f$t,TagList:Ta("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:Ta("TagGroup"),TagGroup:g$t,ExternalDocs:v$t,Server:b$t,ServerList:Ta("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:y$t,ServerVariablesMap:ka("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:k$t,SecurityRequirementList:Ta("SecurityRequirement"),Info:x$t,Contact:S$t,License:O$t,Paths:z$t,PathItem:j$t,Parameter:P$t,ParameterList:Ta("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object\u2019s components/parameters."}),Operation:A$t,Callback:ka("PathItem",{description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:ka("Callback"),RequestBody:_$t,MediaTypesMap:M$t,MediaType:E$t,Example:R$t,ExamplesMap:ka("Example"),Encoding:N$t,EncodingMap:ka("Encoding"),EnumDescriptions:I$t,Header:L$t,HeadersMap:ka("Header"),Responses:B$t,Response:D$t,Link:$$t,Logo:w$t,Schema:K$t,Xml:H$t,SchemaProperties:V$t,DiscriminatorMapping:F$t,Discriminator:q$t,Components:G$t,LinksMap:ka("Link"),NamedSchemas:ka("Schema"),NamedResponses:ka("Response"),NamedParameters:ka("Parameter"),NamedExamples:ka("Example"),NamedRequestBodies:ka("RequestBody"),NamedHeaders:ka("Header"),NamedSecuritySchemes:ka("SecurityScheme"),NamedLinks:ka("Link"),NamedCallbacks:ka("Callback"),ImplicitFlow:U$t,PasswordFlow:Q$t,ClientCredentials:W$t,AuthorizationCode:Z$t,OAuth2Flows:J$t,SecurityScheme:Y$t,XCodeSample:T$t,XCodeSampleList:Ta("XCodeSample"),XUsePkce:X$t,WebhooksMap:C$t},eKt={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string",description:"The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI."}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},tKt={...Ud.License,properties:{...Ud.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},aKt={...Ud.Info,properties:{...Ud.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},rKt={...Ud.Components,properties:{...Ud.Components.properties,pathItems:"NamedPathItems"}},nKt={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed."},iKt={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:Ta("Schema"),anyOf:Ta("Schema"),oneOf:Ta("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:ka("Schema"),dependentRequired:"DependentRequired",prefixItems:Ta("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},Axe={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},oKt={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},sKt={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},yi={...Ud,Info:aKt,Root:eKt,Schema:iKt,SchemaProperties:Axe,PatternProperties:Axe,License:tKt,Components:rKt,NamedPathItems:ka("PathItem"),SecurityScheme:oKt,Operation:nKt,DependentRequired:sKt},lKt={...yi.Root,properties:{...yi.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1. Implementations MUST support identifying the targets of API description URIs using the URI defined by this field when it is present. See Establishing the Base URI for the base URI behavior when $self is absent or relative, and see Appendix F for examples of using $self to resolve references."}}},cKt={...yi.Tag,properties:{...yi.Tag.properties,kind:{type:"string",description:"A machine-readable string to categorize what sort of tag it is. Any string value can be used; common uses are nav for Navigation, badge for visible badges, audience for APIs used by different groups. A registry of the most commonly used values is available."},parent:{type:"string",description:"The name of a tag that this tag is nested under. The named tag MUST exist in the API description, and circular references between parent and child tags MUST NOT be used."},summary:{type:"string",description:"A short summary of the tag, used for display purposes."}},description:"Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances."},uKt={...yi.Server,properties:{...yi.Server.properties,name:{type:"string",description:"An optional unique string to refer to the host designated by the URL."}},description:"An object representing a Server."},dKt={...yi.SecurityScheme,properties:{...yi.SecurityScheme.properties,deprecated:{type:"boolean",description:"Declares this security scheme to be deprecated. Consumers SHOULD refrain from usage of the declared scheme. Default value is false."},oauth2MetadataUrl:{type:"string",description:"URL to the OAuth2 authorization server metadata [RFC8414]. TLS is required."}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}},description:"Defines a security scheme that can be used by the operations."},pKt={...yi.OAuth2Flows,properties:{...yi.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},hKt={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:ka("string",{description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."})},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},mKt={...Ud.PathItem,properties:{...Ud.PathItem.properties,query:"Operation",additionalOperations:ka("Operation")}},fKt={...yi.Parameter,properties:{...yi.Parameter.properties,in:{description:'REQUIRED. The location of the parameter. Possible values are "query", "querystring", "header", "path" or "cookie".',enum:["query","header","path","cookie","querystring"]}}},gKt={...yi.Response,properties:{...yi.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},vKt={...yi.MediaType,properties:{...yi.MediaType.properties,itemSchema:"Schema",prefixEncoding:Ta("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},bKt={...yi.Discriminator,properties:{...yi.Discriminator.properties,defaultMapping:e=>{const t="The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping.";return QO(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},yKt={properties:{...yi.Components.properties,mediaTypes:"NamedMediaTypes"}},kKt={...yi.Example,properties:{...yi.Example.properties,dataValue:{resolvable:!1,description:"An example of the data structure that MUST be valid according to the relevant Schema Object. If this field is present, value MUST be absent."},serializedValue:{type:"string",description:"An example of the serialized form of the value, including encoding and escaping as described under Validating Examples. If dataValue is present, then this field SHOULD contain the serialization of the given data. Otherwise, it SHOULD be the valid serialization of a data value that itself MUST be valid as described for dataValue. This field SHOULD NOT be used if the serialization format is JSON, as the data form is easier to work with. If this field is present, value, and externalValue MUST be absent."}}},xKt={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"],description:'One of element, attribute, text, cdata, or none, as explained under XML Node Types. The default value is none if $ref, $dynamicRef, or type: "array" is present in the Schema Object containing the XML Object, and element otherwise.'},name:{type:"string",description:"Sets the name of the element/attribute corresponding to the schema, replacing the name that was inferred as described under XML Node Names. This field SHALL be ignored if the nodeType is text, cdata, or none."},namespace:{type:"string",description:"The IRI ([RFC3987]) of the namespace definition. Value MUST be in the form of a non-relative IRI."},prefix:{type:"string",description:"The prefix to be used for the name."},attribute:{type:"boolean",description:'Declares whether the property definition translates to an attribute instead of an element. Default value is false. If nodeType is present, this field MUST NOT be present.Deprecated: Use nodeType: "attribute" instead of attribute: true.'},wrapped:{type:"boolean",description:'MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). If nodeType is present, this field MUST NOT be present. Deprecated: Use nodeType: "element" instead of wrapped: true.'}},extensionsPrefix:"x-",description:"A metadata object that allows for more fine-tuned XML model definitions. When using a Schema Object with XML, if no XML Object is present, the behavior is determined by the XML Object\u2019s default field values."},wKt={...yi.Schema,properties:{...yi.Schema.properties,xml:"Xml"}},Gs={...yi,Root:lKt,Tag:cKt,Server:uKt,SecurityScheme:dKt,OAuth2Flows:pKt,DeviceAuthorization:hKt,PathItem:mKt,Parameter:fKt,Response:gKt,MediaType:vKt,Discriminator:bKt,Example:kKt,Xml:xKt,Schema:wKt,Components:yKt,NamedMediaTypes:ka("MediaTypesMap")},Pb=()=>({ref:{leave(e,{report:t,location:a},r){r.node===void 0&&V1(r,t,a)}},DiscriminatorMapping(e,{report:t,resolve:a,location:r}){for(const n of Object.keys(e)){const i=a({$ref:e[n]});if(i.node!==void 0)return;V1(i,t,r.child(n))}}});function V1(e,t,a){const r=e.error;r instanceof xw&&t({message:"Failed to parse: "+r.message,location:{source:r.source,pointer:void 0,start:{col:r.col,line:r.line}}});const n=e.error?.message;t({location:a,message:`Can't resolve $ref${n?": "+n:""}`})}function i$(e,t){let a,r;if(e===t)return!0;if(e&&t&&(a=e.constructor)===t.constructor){if(a===Date)return e.getTime()===t.getTime();if(a===RegExp)return e.toString()===t.toString();if(a===Array){if((r=e.length)===t.length)for(;r--&&i$(e[r],t[r]););return r===-1}if(!a||typeof e=="object"){r=0;for(a in e)if(Object.prototype.hasOwnProperty.call(e,a)&&++r&&!Object.prototype.hasOwnProperty.call(t,a)||!(a in t)||!i$(e[a],t[a]))return!1;return Object.keys(t).length===r}}return e!==e&&t!==t}function Txe(e,t){switch(t){case"oas3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";case"MediaTypesMap":return"mediaTypes";default:return null}case"oas2":switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(e){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null;case"openrpc1":switch(e){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}}}function SKt({version:e,dereference:t,rootDocument:a,resolvedRefMap:r,keepUrlRefs:n,componentRenamingConflicts:i="warn"}){let o,s;const l={ref:{leave(m,g,v){if(!v.location||v.node===void 0){V1(v,g.report,g.location);return}if(v.location.source===a.source&&v.location.source===g.location.source&&g.type.name!=="scalar"&&!t){m.$ref!==v.location.pointer&&(m.$ref=v.location.pointer);return}if(n&&$o(m.$ref))return;const b=Txe(g.type.name,e);b?t?(u(b,v,g),JD(m,v,g)):(m.$ref=u(b,v,g),c(m,v,g)):JD(m,v,g)}},Example:{leave(m,g){if(mxe(m)&&m.value===void 0){const v=g.resolve({$ref:m.externalValue});if(!v.location||v.node===void 0){V1(v,g.report,g.location);return}if(n&&$o(m.externalValue))return;m.value=g.resolve({$ref:m.externalValue}).node,delete m.externalValue}}},Root:{enter(m,g){s=g.location,e==="oas3"?o=m.components=m.components||{}:e==="oas2"?o=m:e==="async2"?o=m.components=m.components||{}:e==="async3"?o=m.components=m.components||{}:e==="arazzo1"?o=m.components=m.components||{}:e==="openrpc1"&&(o=m.components=m.components||{})}}};if(e==="oas3"){const m=Txe("Schema",e);l.Discriminator={leave(g,v){if(typeof g.defaultMapping!="string"||!QO(g.defaultMapping))return;const b=v.resolve({$ref:g.defaultMapping});if(!b.location||b.node===void 0){V1(b,v.report,v.location.child("defaultMapping"));return}g.defaultMapping=u(m,b,v)},DiscriminatorMapping:{leave(g,v){for(const b of Object.keys(g)){const k=g[b];if(!QO(k))continue;const x=v.resolve({$ref:k});if(!x.location||x.node===void 0){V1(x,v.report,v.location.child(b));return}g[b]=u(m,x,v)}}}}}function c(m,g,v){const b=WO(v.location.source.absoluteRef,m.$ref);r.set(b,{document:a,isRemote:!1,node:g.node,nodePointer:m.$ref,resolved:!0})}function u(m,g,v){o[m]=o[m]||{};const b=h(g,m,v);return o[m][b]=g.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${m}/${b}`:`#/${m}/${b}`}function d(m,g,v){return bo(m)&&v.resolve(m,s.absolutePointer).location?.absolutePointer===g.location.absolutePointer?!0:i$(m,g.node)}function h(m,g,v){const b=o[g],[k,x]=[m.location.source.absoluteRef,m.location.pointer];let w=fDt(x)||gDt(k);const z=w;let S=2;for(;b[w]&&!d(b[w],m,v);)w=`${z}-${S}`,S++;return!b[w]&&z!==w&&v.report({message:`Two schemas are referenced with the same name but different content. Renamed ${z} to ${w}.`,location:v.location,forceSeverity:i}),w}return l}function YO(e){return e!==void 0}function J_(e,t,a,r){return e.flatMap(n=>Object.keys(n).map(i=>{const o=n[i],s=a==="rules"?t.getRuleSettings(i,r):a==="preprocessors"?t.getPreprocessorSettings(i,r):t.getDecoratorSettings(i,r);if(s.severity==="off")return;const l=s.severity,c=s.message,u=o(s);return Array.isArray(u)?u.map(d=>({severity:l,ruleId:i,message:c,visitor:d})):{severity:l,message:c,ruleId:i,visitor:u}})).flatMap(n=>n).filter(YO)}function XO(e){return Lt(e)&&Object.keys(e).length===0}const OKt=["definitions","parameters","responses","securityDefinitions"],_xe=()=>{const e=new Map;function t(n,i){const o=`${n}/${i}`;e.set(o,{usedIn:e.get(o)?.usedIn??[],componentType:n,name:i})}function a(n){if(!n.startsWith("#/"))return;const[i,o]=ZD(n).pointer;if(!(!i||!o)&&OKt.includes(i))return`${i}/${o}`}function r(n,i=new Set){const o=i.size;for(const[s,{usedIn:l,name:c,componentType:u}]of e)!l.some(d=>d!==s&&!i.has(d))&&u&&(i.add(s),delete n[u][c],e.delete(s),XO(n[u])&&delete n[u]);return i.size>o?r(n,i):i.size}return{ref:{leave(n,{location:i,type:o,key:s}){if(["Schema","Parameter","Response","SecurityScheme"].includes(o.name)){const l=a(n.$ref);if(!l)return;const c=a(i.pointer)??i.pointer,u=e.get(l);u?u.usedIn.push(c):e.set(l,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,i){const o=i.getVisitorData();o.removedCount=r(n)}},NamedSchemas:{Schema(n,{key:i}){n.allOf||t("definitions",i.toString())}},NamedParameters:{Parameter(n,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(n,{key:i}){t("responses",i.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:i}){t("securityDefinitions",i.toString())}}}};function zKt(e,t){return t in e}function Mxe(e){if(!e.startsWith("#/components/"))return;const[t,a,r]=ZD(e).pointer;if(!(!a||!r))return`${a}/${r}`}const Exe=()=>{const e=new Map;function t(r,n){const i=`${r}/${n}`;e.set(i,{usedIn:e.get(i)?.usedIn??[],componentType:r,name:n})}function a(r,n=new Set){const i=n.size;for(const[o,{usedIn:s,name:l,componentType:c}]of e)if(!s.some(u=>u!==o&&!n.has(u))&&c&&r.components&&zKt(r.components,c)){n.add(o);const u=r.components[c];delete u[l],e.delete(o),XO(u)&&delete r.components[c]}return n.size>i?a(r,n):n.size}return{ref:{leave(r,{location:n,type:i,key:o}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(i.name)){const s=Mxe(r.$ref);if(!s)return;const l=Mxe(n.pointer)??n.pointer,c=e.get(s);c?c.usedIn.push(l):e.set(s,{usedIn:[l],name:o.toString()})}}},Root:{leave(r,n){const i=n.getVisitorData();i.removedCount=a(r),XO(r.components)&&delete r.components}},NamedSchemas:{Schema(r,{key:n}){r.allOf||t("schemas",n.toString())}},NamedParameters:{Parameter(r,{key:n}){t("parameters",n.toString())}},NamedResponses:{Response(r,{key:n}){t("responses",n.toString())}},NamedExamples:{Example(r,{key:n}){t("examples",n.toString())}},NamedRequestBodies:{RequestBody(r,{key:n}){t("requestBodies",n.toString())}},NamedHeaders:{Header(r,{key:n}){t("headers",n.toString())}},NamedMediaTypes:{MediaTypesMap(r,{key:n}){t("mediaTypes",n.toString())}}}},CKt={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Ab(e,t){const a={};a.any={enter:[],leave:[]};for(const o of Object.keys(t))a[o]={enter:[],leave:[]};a.ref={enter:[],leave:[]};for(const{ruleId:o,severity:s,message:l,visitor:c}of e)i({ruleId:o,severity:s,message:l},c,null);for(const o of Object.keys(a))a[o].enter.sort((s,l)=>l.depth-s.depth),a[o].leave.sort((s,l)=>s.depth-l.depth);return a;function r(o,s,l,c,u=[]){if(u.includes(s))return;u=[...u,s];const d=new Set;for(const m of Object.values(s.properties)){if(m===l){h(o,u);continue}Lt(m)&&m.name!==void 0&&d.add(m)}s.additionalProperties&&typeof s.additionalProperties!="function"&&(s.additionalProperties===l?h(o,u):s.additionalProperties.name!==void 0&&d.add(s.additionalProperties)),s.items&&typeof s.items!="function"&&(s.items===l?h(o,u):s.items.name!==void 0&&d.add(s.items)),s.extensionsPrefix&&d.add(Cb);for(const m of Array.from(d.values()))r(o,m,l,c,u);function h(m,g){for(const v of g.slice(1))a[v.name]=a[v.name]||{enter:[],leave:[]},a[v.name].enter.push({...m,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:c}})}}function n(o,s){if(Array.isArray(s)){const l=s.find(c=>o[c])||void 0;return l&&o[l]}return o[s]}function i(o,s,l,c=0){const u=Object.keys(t);if(c===0)u.push("any"),u.push("ref");else{if(s.any)throw new Error("any() is allowed only on top level");if(s.ref)throw new Error("ref() is allowed only on top level")}for(const d of u){const h=s[d]||n(s,CKt[d]),m=a[d];if(!h)continue;let g,v,b;const k=Lt(h);if(d==="ref"&&k&&h.skip)throw new Error("ref() visitor does not support skip");typeof h=="function"?g=h:k&&(g=h.enter,v=h.leave,b=h.skip);const x=(g?1:0)+(v?1:0)+(b?1:0),w=k&&Object.keys(h).length>x,z={activatedOn:null,type:t[d],parent:l,isSkippedLevel:!1};if(w&&i(o,h,z,c+1),l&&r(o,l.type,t[d],l),g||k){if(g&&typeof g!="function")throw new Error("DEV: should be function");m.enter.push({...o,visit:g||(()=>{}),skip:b,depth:c,context:z})}if(v){if(typeof v!="function")throw new Error("DEV: should be function");m.leave.push({...o,visit:v,depth:c,context:z})}}}}function Rxe(e,t){return{prev:e,value:t}}function Nxe(e){return e?.prev??null}function jKt(e){const t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function PKt(e){const t={};for(;e.parent;)e.parent.activatedOn?.value.location&&(t[e.parent.type.name]=e.parent.activatedOn?.value.location),e=e.parent;return t}function F1(e){const{document:t,rootType:a,normalizedVisitors:r,resolvedRefMap:n,ctx:i}=e,o={},s=new Set,l=r.any.enter,c=r.any.leave,u={},d={};for(const m of Object.keys(r))m==="any"||m==="ref"||(u[m]=l.concat(r[m]?.enter||[]),d[m]=(r[m]?.leave||[]).concat(c));h(t.parsed,a,new q_(t.source,"#/"),void 0,"");function h(m,g,v,b,k){const x=(H,Z=z.source.absoluteRef)=>{if(!bo(H))return{location:v,node:H};const te=WO(Z,H.$ref),ee=n.get(te);if(!ee)return{location:void 0,node:void 0};const{resolved:oe,node:ae,document:ce,nodePointer:Q,error:V}=ee;return{location:oe?new q_(ce.source,Q):V instanceof xw?new q_(V.source,""):void 0,node:ae,error:V}},w=v;let z=v;const S=bo(m),{node:C,location:j,error:T}=x(m),E=new Set;if(S){const H=r.ref.enter;for(const{visit:Z,ruleId:te,severity:ee,message:oe,context:ae}of H)E.add(ae),Z(m,{report:ce=>N(te,ee,oe,ce),resolve:x,rawNode:m,rawLocation:w,location:v,type:g,parent:b,key:k,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>$(te)},{node:C,location:j,error:T}),j?.source.absoluteRef&&i.refTypes&&i.refTypes.set(j?.source.absoluteRef,g)}if(C!==void 0&&j&&g.name!=="scalar"){z=j;const H=o[g.name]?.has?.(C);let Z=!1;const te=u[g.name]||l.concat(r[g.name]?.enter||[]),ee=[],oe=`${z.absolutePointer}${z.pointer}`;for(const{context:ce,visit:Q,skip:V,ruleId:Y,severity:G,message:D}of te){if(s.has(oe))break;if(ce.isSkippedLevel)ce.parent.activatedOn&&!ce.parent.activatedOn.value.nextLevelTypeActivated&&!ce.seen.has(m)&&(ce.seen.add(m),Z=!0,ee.push(ce));else if(ce.parent&&ce.parent.activatedOn&&ce.activatedOn?.value.withParentNode!==ce.parent.activatedOn.value.node&&ce.parent.activatedOn.value.nextLevelTypeActivated?.value!==g||!ce.parent&&!H){ee.push(ce);const U={node:C,location:j,nextLevelTypeActivated:null,withParentNode:ce.parent?.activatedOn?.value.node,skipped:(ce.parent?.activatedOn?.value.skipped||V?.(C,k,{location:v,rawLocation:w,resolve:x,rawNode:m}))??!1};ce.activatedOn=Rxe(ce.activatedOn,U);let K=ce.parent;for(;K;)K.activatedOn.value.nextLevelTypeActivated=Rxe(K.activatedOn.value.nextLevelTypeActivated,g),K=K.parent;U.skipped||(Z=!0,E.add(ce),I(Q,C,m,ce,Y,G,D))}}if(Z||!H){if(o[g.name]=o[g.name]||new Set,o[g.name].add(C),Array.isArray(C)){const ce=g.items;if(ce!==void 0){const Q=typeof ce=="function";for(let V=0;V<C.length;V++){const Y=j.child([V]);let G=Q?ce(C[V],Y.absolutePointer):ce,D=C[V];G?.directResolveAs&&(G=G.directResolveAs,D={$ref:D}),dg(G)&&h(D,G,Y,C,V)}}}else if(Lt(C)){const ce=Object.keys(g.properties);g.additionalProperties?ce.push(...Object.keys(C).filter(Q=>!ce.includes(Q))):g.extensionsPrefix&&ce.push(...Object.keys(C).filter(Q=>Q.startsWith(g.extensionsPrefix))),S&&ce.push(...Object.keys(m).filter(Q=>Q!=="$ref"&&!ce.includes(Q)));for(const Q of ce){let V=C[Q],Y=j;V===void 0&&(V=m[Q],Y=v);let G=jb(g.properties,Q);if(G===void 0&&(G=g.additionalProperties),typeof G=="function"&&(G=G(V,Q)),G===void 0&&g.extensionsPrefix&&Q.startsWith(g.extensionsPrefix)&&(G=Cb),!dg(G)&&G?.directResolveAs&&(G=G.directResolveAs,V={$ref:V}),G&&G.name===void 0&&G.resolvable!==!1&&(G={name:"scalar",properties:{}}),bo(m[Q])&&G?.name==="scalar"){h(m[Q],G,v.child([Q]),m,Q);continue}!dg(G)||G.name==="scalar"&&!bo(V)||h(V,G,Y.child([Q]),C,Q)}}}const ae=d[g.name]||(r[g.name]?.leave||[]).concat(c);for(const ce of ee.reverse())if(ce.isSkippedLevel)ce.seen.delete(C);else if(ce.activatedOn=Nxe(ce.activatedOn),ce.parent){let Q=ce.parent;for(;Q;)Q.activatedOn.value.nextLevelTypeActivated=Nxe(Q.activatedOn.value.nextLevelTypeActivated),Q=Q.parent}for(const{context:ce,visit:Q,ruleId:V,severity:Y,message:G}of ae)!ce.isSkippedLevel&&E.has(ce)&&I(Q,C,m,ce,V,Y,G)}if(z=v,S){const H=r.ref.leave;for(const{visit:Z,ruleId:te,severity:ee,context:oe,message:ae}of H)E.has(oe)&&Z(m,{report:ce=>N(te,ee,ae,ce),resolve:x,rawNode:m,rawLocation:w,location:v,type:g,parent:b,key:k,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>$(te)},{node:C,location:j,error:T})}function I(H,Z,te,ee,oe,ae,ce){H(Z,{report:Q=>N(oe,ae,ce,Q),resolve:x,rawNode:te,location:z,rawLocation:w,type:g,parent:b,key:k,parentLocations:PKt(ee),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{s.add(`${z.absolutePointer}${z.pointer}`)},getVisitorData:()=>$(oe)},jKt(ee),ee)}function N(H,Z,te,ee){const oe=(ee.location?Array.isArray(ee.location)?ee.location:[ee.location]:[{...z,reportOnKey:!1}]).map(ce=>({...z,reportOnKey:!1,...ce})),ae=ee.forceSeverity||Z;ae!=="off"&&i.problems.push({ruleId:ee.ruleId||H,severity:ae,...ee,message:te?te.replace("{{message}}",ee.message):ee.message,suggest:ee.suggest||[],location:oe})}function $(H){return i.visitorsData[H]=i.visitorsData[H]||{},i.visitorsData[H]}}}async function Ixe(e){const{document:t,config:a,types:r,externalRefResolver:n,dereference:i=!1,removeUnusedComponents:o=!1,keepUrlRefs:s=!1,componentRenamingConflicts:l}=e,c=HO(t.parsed),u=s0e(c),d=a.getRulesForSpecVersion(u),h=YD(a.extendTypes(r,c),a),m=J_(d,a,"preprocessors",c),g=J_(d,a,"decorators",c),v={problems:[],specVersion:c,config:a,refTypes:new Map,visitorsData:{}};let b=await H1({rootDocument:t,rootType:h.Root,externalRefResolver:n});m.length>0&&(F1({document:t,rootType:h.Root,normalizedVisitors:Ab(m,h),resolvedRefMap:b,ctx:v}),b=await H1({rootDocument:t,rootType:h.Root,externalRefResolver:n}));const k=Ab([{severity:"error",ruleId:"bundler",visitor:SKt({version:u,dereference:i,rootDocument:t,resolvedRefMap:b,keepUrlRefs:s,componentRenamingConflicts:l})},...g.filter(x=>x.ruleId!=="remove-unused-components")],h);if(F1({document:t,rootType:h.Root,normalizedVisitors:k,resolvedRefMap:b,ctx:v}),o||a.getDecoratorSettings("remove-unused-components",c).severity!=="off"){const x=await H1({rootDocument:t,rootType:h.Root,externalRefResolver:n}),w=Ab([{severity:"error",ruleId:"remove-unused-components",visitor:u==="oas2"?_xe():Exe()}],h);F1({document:t,rootType:h.Root,normalizedVisitors:w,resolvedRefMap:x,ctx:v})}return{bundle:t,problems:v.problems.map(x=>a.addProblemToIgnore(x)),fileDependencies:n.getFiles(),rootType:h.Root,refTypes:v.refTypes,visitorsData:v.visitorsData}}async function AKt(e){const{ref:t,doc:a,externalRefResolver:r=new ZO(e.config.resolve),base:n=null}=e;if(!(t||a))throw new Error(`Document or reference is required.
|
|
11538
11575
|
`);const i=a===void 0?await r.resolveDocument(n,t,!0):a;if(i instanceof Error)throw i;const o=HO(i.parsed);let s;switch(o){case"oas2":s=Pxe;break;case"oas3_0":s=Ud;break;case"oas3_1":s=yi;break;case"oas3_2":s=Gs;break;default:throw new Error(`Unsupported OpenAPI version: ${o}`)}return Ixe({document:i,...e,externalRefResolver:r,types:s})}function Lxe(e={}){return new Ej({rules:{},preprocessors:{},decorators:{},plugins:[]},{configPath:e.configPath})}const TKt={isatty:()=>{},createRequire:()=>{}},Bxe=Object.freeze(Object.defineProperty({__proto__:null,default:TKt},Symbol.toStringTag,{value:"Module"})),q1=km(Bxe);var Tb={},Y_={exports:{}},_Kt=Y_.exports,Dxe;function MKt(){return Dxe||(Dxe=1,(function(e,t){(function(a){var r=t&&!t.nodeType&&t,n=e&&!e.nodeType&&e,i=typeof globalThis=="object"&&globalThis;(i.global===i||i.window===i||i.self===i)&&(a=i);var o,s=2147483647,l=36,c=1,u=26,d=38,h=700,m=72,g=128,v="-",b=/^xn--/,k=/[^\x20-\x7E]/,x=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},z=l-c,S=Math.floor,C=String.fromCharCode,j;function T(Q){throw RangeError(w[Q])}function E(Q,V){for(var Y=Q.length,G=[];Y--;)G[Y]=V(Q[Y]);return G}function I(Q,V){var Y=Q.split("@"),G="";Y.length>1&&(G=Y[0]+"@",Q=Y[1]),Q=Q.replace(x,".");var D=Q.split("."),U=E(D,V).join(".");return G+U}function N(Q){for(var V=[],Y=0,G=Q.length,D,U;Y<G;)D=Q.charCodeAt(Y++),D>=55296&&D<=56319&&Y<G?(U=Q.charCodeAt(Y++),(U&64512)==56320?V.push(((D&1023)<<10)+(U&1023)+65536):(V.push(D),Y--)):V.push(D);return V}function $(Q){return E(Q,function(V){var Y="";return V>65535&&(V-=65536,Y+=C(V>>>10&1023|55296),V=56320|V&1023),Y+=C(V),Y}).join("")}function H(Q){return Q-48<10?Q-22:Q-65<26?Q-65:Q-97<26?Q-97:l}function Z(Q,V){return Q+22+75*(Q<26)-((V!=0)<<5)}function te(Q,V,Y){var G=0;for(Q=Y?S(Q/h):Q>>1,Q+=S(Q/V);Q>z*u>>1;G+=l)Q=S(Q/z);return S(G+(z+1)*Q/(Q+d))}function ee(Q){var V=[],Y=Q.length,G,D=0,U=g,K=m,X,J,he,Oe,M,L,re,ve,we;for(X=Q.lastIndexOf(v),X<0&&(X=0),J=0;J<X;++J)Q.charCodeAt(J)>=128&&T("not-basic"),V.push(Q.charCodeAt(J));for(he=X>0?X+1:0;he<Y;){for(Oe=D,M=1,L=l;he>=Y&&T("invalid-input"),re=H(Q.charCodeAt(he++)),(re>=l||re>S((s-D)/M))&&T("overflow"),D+=re*M,ve=L<=K?c:L>=K+u?u:L-K,!(re<ve);L+=l)we=l-ve,M>S(s/we)&&T("overflow"),M*=we;G=V.length+1,K=te(D-Oe,G,Oe==0),S(D/G)>s-U&&T("overflow"),U+=S(D/G),D%=G,V.splice(D++,0,U)}return $(V)}function oe(Q){var V,Y,G,D,U,K,X,J,he,Oe,M,L=[],re,ve,we,ke;for(Q=N(Q),re=Q.length,V=g,Y=0,U=m,K=0;K<re;++K)M=Q[K],M<128&&L.push(C(M));for(G=D=L.length,D&&L.push(v);G<re;){for(X=s,K=0;K<re;++K)M=Q[K],M>=V&&M<X&&(X=M);for(ve=G+1,X-V>S((s-Y)/ve)&&T("overflow"),Y+=(X-V)*ve,V=X,K=0;K<re;++K)if(M=Q[K],M<V&&++Y>s&&T("overflow"),M==V){for(J=Y,he=l;Oe=he<=U?c:he>=U+u?u:he-U,!(J<Oe);he+=l)ke=J-Oe,we=l-Oe,L.push(C(Z(Oe+ke%we,0))),J=S(ke/we);L.push(C(Z(J,0))),U=te(Y,ve,G==D),Y=0,++G}++Y,++V}return L.join("")}function ae(Q){return I(Q,function(V){return b.test(V)?ee(V.slice(4).toLowerCase()):V})}function ce(Q){return I(Q,function(V){return k.test(V)?"xn--"+oe(V):V})}if(o={version:"1.3.2",ucs2:{decode:N,encode:$},decode:ee,encode:oe,toASCII:ce,toUnicode:ae},r&&n)if(e.exports==r)n.exports=o;else for(j in o)o.hasOwnProperty(j)&&(r[j]=o[j]);else a.punycode=o})(_Kt)})(Y_,Y_.exports)),Y_.exports}var $xe,Kxe;function EKt(){return Kxe||(Kxe=1,$xe={isString:function(e){return typeof e=="string"},isObject:function(e){return typeof e=="object"&&e!==null},isNull:function(e){return e===null},isNullOrUndefined:function(e){return e==null}}),$xe}var ez={},o$,Hxe;function RKt(){if(Hxe)return o$;Hxe=1;function e(t,a){return Object.prototype.hasOwnProperty.call(t,a)}return o$=function(t,a,r,n){a=a||"&",r=r||"=";var i={};if(typeof t!="string"||t.length===0)return i;var o=/\+/g;t=t.split(a);var s=1e3;n&&typeof n.maxKeys=="number"&&(s=n.maxKeys);var l=t.length;s>0&&l>s&&(l=s);for(var c=0;c<l;++c){var u=t[c].replace(o,"%20"),d=u.indexOf(r),h,m,g,v;d>=0?(h=u.substr(0,d),m=u.substr(d+1)):(h=u,m=""),g=decodeURIComponent(h),v=decodeURIComponent(m),e(i,g)?Array.isArray(i[g])?i[g].push(v):i[g]=[i[g],v]:i[g]=v}return i},o$}var s$,Vxe;function NKt(){if(Vxe)return s$;Vxe=1;var e=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};return s$=function(t,a,r,n){return a=a||"&",r=r||"=",t===null&&(t=void 0),typeof t=="object"?Object.keys(t).map(function(i){var o=encodeURIComponent(e(i))+r;return Array.isArray(t[i])?t[i].map(function(s){return o+encodeURIComponent(e(s))}).join(a):o+encodeURIComponent(e(t[i]))}).join(a):n?encodeURIComponent(e(n))+r+encodeURIComponent(e(t)):""},s$}var Fxe;function IKt(){return Fxe||(Fxe=1,ez.decode=ez.parse=RKt(),ez.encode=ez.stringify=NKt()),ez}var qxe;function l$(){if(qxe)return Tb;qxe=1;var e=MKt(),t=EKt();Tb.parse=x,Tb.resolve=z,Tb.resolveObject=S,Tb.format=w,Tb.Url=a;function a(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}var r=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,i=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r",`
|
|
11539
|
-
`," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},k=IKt();function x(C,j,T){if(C&&t.isObject(C)&&C instanceof a)return C;var E=new a;return E.parse(C,j,T),E}a.prototype.parse=function(C,j,T){if(!t.isString(C))throw new TypeError("Parameter 'url' must be a string, not "+typeof C);var E=C.indexOf("?"),I=E!==-1&&E<C.indexOf("#")?"?":"#",N=C.split(I),$=/\\/g;N[0]=N[0].replace($,"/"),C=N.join(I);var H=C;if(H=H.trim(),!T&&C.split("#").length===1){var Z=i.exec(H);if(Z)return this.path=H,this.href=H,this.pathname=Z[1],Z[2]?(this.search=Z[2],j?this.query=k.parse(this.search.substr(1)):this.query=this.search.substr(1)):j&&(this.search="",this.query={}),this}var te=r.exec(H);if(te){te=te[0];var ee=te.toLowerCase();this.protocol=ee,H=H.substr(te.length)}if(T||te||H.match(/^\/\/[^@\/]+@[^@\/]+/)){var oe=H.substr(0,2)==="//";oe&&!(te&&v[te])&&(H=H.substr(2),this.slashes=!0)}if(!v[te]&&(oe||te&&!b[te])){for(var ae=-1,ce=0;ce<u.length;ce++){var Q=H.indexOf(u[ce]);Q!==-1&&(ae===-1||Q<ae)&&(ae=Q)}var V,Y;ae===-1?Y=H.lastIndexOf("@"):Y=H.lastIndexOf("@",ae),Y!==-1&&(V=H.slice(0,Y),H=H.slice(Y+1),this.auth=decodeURIComponent(V)),ae=-1;for(var ce=0;ce<c.length;ce++){var Q=H.indexOf(c[ce]);Q!==-1&&(ae===-1||Q<ae)&&(ae=Q)}ae===-1&&(ae=H.length),this.host=H.slice(0,ae),H=H.slice(ae),this.parseHost(),this.hostname=this.hostname||"";var G=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!G)for(var D=this.hostname.split(/\./),ce=0,U=D.length;ce<U;ce++){var K=D[ce];if(K&&!K.match(h)){for(var X="",J=0,he=K.length;J<he;J++)K.charCodeAt(J)>127?X+="x":X+=K[J];if(!X.match(h)){var Oe=D.slice(0,ce),M=D.slice(ce+1),L=K.match(m);L&&(Oe.push(L[1]),M.unshift(L[2])),M.length&&(H="/"+M.join(".")+H),this.hostname=Oe.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),G||(this.hostname=e.toASCII(this.hostname));var re=this.port?":"+this.port:"",ve=this.hostname||"";this.host=ve+re,this.href+=this.host,G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!g[ee])for(var ce=0,U=l.length;ce<U;ce++){var we=l[ce];if(H.indexOf(we)!==-1){var ke=encodeURIComponent(we);ke===we&&(ke=escape(we)),H=H.split(we).join(ke)}}var le=H.indexOf("#");le!==-1&&(this.hash=H.substr(le),H=H.slice(0,le));var je=H.indexOf("?");if(je!==-1?(this.search=H.substr(je),this.query=H.substr(je+1),j&&(this.query=k.parse(this.query)),H=H.slice(0,je)):j&&(this.search="",this.query={}),H&&(this.pathname=H),b[ee]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var re=this.pathname||"",be=this.search||"";this.path=re+be}return this.href=this.format(),this};function w(C){return t.isString(C)&&(C=x(C)),C instanceof a?C.format():a.prototype.format.call(C)}a.prototype.format=function(){var C=this.auth||"";C&&(C=encodeURIComponent(C),C=C.replace(/%3A/i,":"),C+="@");var j=this.protocol||"",T=this.pathname||"",E=this.hash||"",I=!1,N="";this.host?I=C+this.host:this.hostname&&(I=C+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(N=k.stringify(this.query));var $=this.search||N&&"?"+N||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||b[j])&&I!==!1?(I="//"+(I||""),T&&T.charAt(0)!=="/"&&(T="/"+T)):I||(I=""),E&&E.charAt(0)!=="#"&&(E="#"+E),$&&$.charAt(0)!=="?"&&($="?"+$),T=T.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),$=$.replace("#","%23"),j+I+T+$+E};function z(C,j){return x(C,!1,!0).resolve(j)}a.prototype.resolve=function(C){return this.resolveObject(x(C,!1,!0)).format()};function S(C,j){return C?x(C,!1,!0).resolveObject(j):j}return a.prototype.resolveObject=function(C){if(t.isString(C)){var j=new a;j.parse(C,!1,!0),C=j}for(var T=new a,E=Object.keys(this),I=0;I<E.length;I++){var N=E[I];T[N]=this[N]}if(T.hash=C.hash,C.href==="")return T.href=T.format(),T;if(C.slashes&&!C.protocol){for(var $=Object.keys(C),H=0;H<$.length;H++){var Z=$[H];Z!=="protocol"&&(T[Z]=C[Z])}return b[T.protocol]&&T.hostname&&!T.pathname&&(T.path=T.pathname="/"),T.href=T.format(),T}if(C.protocol&&C.protocol!==T.protocol){if(!b[C.protocol]){for(var te=Object.keys(C),ee=0;ee<te.length;ee++){var oe=te[ee];T[oe]=C[oe]}return T.href=T.format(),T}if(T.protocol=C.protocol,!C.host&&!v[C.protocol]){for(var U=(C.pathname||"").split("/");U.length&&!(C.host=U.shift()););C.host||(C.host=""),C.hostname||(C.hostname=""),U[0]!==""&&U.unshift(""),U.length<2&&U.unshift(""),T.pathname=U.join("/")}else T.pathname=C.pathname;if(T.search=C.search,T.query=C.query,T.host=C.host||"",T.auth=C.auth,T.hostname=C.hostname||C.host,T.port=C.port,T.pathname||T.search){var ae=T.pathname||"",ce=T.search||"";T.path=ae+ce}return T.slashes=T.slashes||C.slashes,T.href=T.format(),T}var Q=T.pathname&&T.pathname.charAt(0)==="/",V=C.host||C.pathname&&C.pathname.charAt(0)==="/",Y=V||Q||T.host&&C.pathname,G=Y,D=T.pathname&&T.pathname.split("/")||[],U=C.pathname&&C.pathname.split("/")||[],K=T.protocol&&!b[T.protocol];if(K&&(T.hostname="",T.port=null,T.host&&(D[0]===""?D[0]=T.host:D.unshift(T.host)),T.host="",C.protocol&&(C.hostname=null,C.port=null,C.host&&(U[0]===""?U[0]=C.host:U.unshift(C.host)),C.host=null),Y=Y&&(U[0]===""||D[0]==="")),V)T.host=C.host||C.host===""?C.host:T.host,T.hostname=C.hostname||C.hostname===""?C.hostname:T.hostname,T.search=C.search,T.query=C.query,D=U;else if(U.length)D||(D=[]),D.pop(),D=D.concat(U),T.search=C.search,T.query=C.query;else if(!t.isNullOrUndefined(C.search)){if(K){T.hostname=T.host=D.shift();var X=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;X&&(T.auth=X.shift(),T.host=T.hostname=X.shift())}return T.search=C.search,T.query=C.query,(!t.isNull(T.pathname)||!t.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T}if(!D.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var J=D.slice(-1)[0],he=(T.host||C.host||D.length>1)&&(J==="."||J==="..")||J==="",Oe=0,M=D.length;M>=0;M--)J=D[M],J==="."?D.splice(M,1):J===".."?(D.splice(M,1),Oe++):Oe&&(D.splice(M,1),Oe--);if(!Y&&!G)for(;Oe--;Oe)D.unshift("..");Y&&D[0]!==""&&(!D[0]||D[0].charAt(0)!=="/")&&D.unshift(""),he&&D.join("/").substr(-1)!=="/"&&D.push("");var L=D[0]===""||D[0]&&D[0].charAt(0)==="/";if(K){T.hostname=T.host=L?"":D.length?D.shift():"";var X=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;X&&(T.auth=X.shift(),T.host=T.hostname=X.shift())}return Y=Y||T.host&&D.length,Y&&!L&&D.unshift(""),D.length?T.pathname=D.join("/"):(T.pathname=null,T.path=null),(!t.isNull(T.pathname)||!t.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=C.auth||T.auth,T.slashes=T.slashes||C.slashes,T.href=T.format(),T},a.prototype.parseHost=function(){var C=this.host,j=n.exec(C);j&&(j=j[0],j!==":"&&(this.port=j.substr(1)),C=C.substr(0,C.length-j.length)),C&&(this.hostname=C)},Tb}var c$,Gxe;function LKt(){if(Gxe)return c$;Gxe=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return c$=e(),c$}var u$,Uxe;function BKt(){if(Uxe)return u$;Uxe=1;var e=LKt();return u$=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},u$}var d$,Qxe;function X_(){if(Qxe)return d$;Qxe=1;function e(r){return r.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(r){return r.replace(/\~1/g,"/").replace(/~0/g,"~")}function a(r,n,i){if(typeof r>"u")return!1;if(!n||typeof n!="string"||n==="#")return typeof i<"u"?i:r;if(n.indexOf("#")>=0){let s=n.split("#");if(s[0])return!1;n=s[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let o=n.split("/");for(let s=0;s<o.length;s++){o[s]=t(o[s]);let l=typeof i<"u"&&s==o.length-1,c=parseInt(o[s],10);if(!Array.isArray(r)||isNaN(c)||c.toString()!==o[s]?c=Array.isArray(r)&&o[s]==="-"?-2:-1:o[s]=s>0?o[s-1]:"",c!=-1||r&&r.hasOwnProperty(o[s]))if(c>=0)l&&(r[c]=i),r=r[c];else{if(c===-2)return l?(Array.isArray(r)&&r.push(i),i):void 0;l&&(r[o[s]]=i),r=r[o[s]]}else if(typeof i<"u"&&typeof r=="object"&&!Array.isArray(r))r[o[s]]=l?i:o[s+1]==="0"||o[s+1]==="-"?[]:{},r=r[o[s]];else return!1}return r}return d$={jptr:a,jpescape:e,jpunescape:t},d$}var p$,Wxe;function h$(){if(Wxe)return p$;Wxe=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return p$={isRef:e},p$}var m$,Zxe;function eM(){if(Zxe)return m$;Zxe=1;function e(o){return o}function t(o){return JSON.parse(JSON.stringify(o))}function a(o){let s={};for(let l in o)o.hasOwnProperty(l)&&(s[l]=o[l]);return s}function r(o){let s=Array.isArray(o)?[]:{};for(let l in o)(o.hasOwnProperty(l)||Array.isArray(o))&&(s[l]=typeof o[l]=="object"?r(o[l]):o[l]);return s}function n(o){return Object.assign({},o)}function i(o,s){if(s||(s=new WeakMap),Object(o)!==o||o instanceof Function)return o;if(s.has(o))return s.get(o);try{var l=new o.constructor}catch{l=Object.create(Object.getPrototypeOf(o))}return s.set(o,l),Object.assign(l,...Object.keys(o).map(c=>({[c]:i(o[c],s)})))}return m$={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},m$}var f$,Jxe;function g$(){if(Jxe)return f$;Jxe=1;const e=X_().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function a(r,n,i){if(n||(n={depth:0}),n.depth||(n=Object.assign({},t(),n)),typeof r!="object")return;let o=n.path;for(let s in r){if(n.key=s,n.path=n.path+"/"+encodeURIComponent(e(s)),n.identityPath=n.seen.get(r[s]),n.identity=typeof n.identityPath<"u",r.hasOwnProperty(s)&&i(r,s,n),typeof r[s]=="object"&&!n.identity){n.identityDetection&&!Array.isArray(r[s])&&r[s]!==null&&n.seen.set(r[s],n.path);let l={};l.parent=r,l.path=n.path,l.depth=n.depth?n.depth+1:1,l.pkey=s,l.payload=n.payload,l.seen=n.seen,l.identity=!1,l.identityDetection=n.identityDetection,a(r[s],l,i)}n.path=o}}return f$={recurse:a},f$}var v$,Yxe;function DKt(){if(Yxe)return v$;Yxe=1;const e=g$().recurse,t=eM().shallowClone,a=X_().jptr,r=h$().isRef;var n=function(o){return o&&o.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(o,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?o:t(o),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=n(l),m=1;for(;m>0;)m=0,e(u,l.state,function(g,v,b){if(r(g,v)){let k=g[v];if(m++,l.cache[k]){let x=l.cache[k];if(x.resolved)h.warn("Patching %s for %s",k,x.path),b.parent[b.pkey]=x.data,l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[b.pkey][l.$ref]=k);else{if(k===x.path)throw new Error(`Tight circle at ${x.path}`);h.warn("Unresolved ref"),b.parent[b.pkey]=a(x.source,x.path),b.parent[b.pkey]===!1&&(b.parent[b.pkey]=a(x.source,x.key)),l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[l.$ref]=k)}}else{let x={};x.path=b.path.split("/$ref")[0],x.key=k,h.warn("Dereffing %s at %s",k,x.path),x.source=d,x.data=a(x.source,x.key),x.data===!1&&(x.data=a(l.master,x.key),x.source=l.master),x.data===!1&&h.warn("Missing $ref target",x.key),l.cache[k]=x,x.data=b.parent[b.pkey]=i(a(x.source,x.key),x.source,l),l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[b.pkey][l.$ref]=k),x.resolved=!0}}});return u.data}return v$={dereference:i},v$}var b$,Xxe;function $Kt(){if(Xxe)return b$;Xxe=1,b$=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",a=[],r=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,m,g,v){typeof v>"u"&&(v=n()),s(h,"",0,[],void 0,0,v);var b;try{r.length===0?b=JSON.stringify(h,m,g):b=JSON.stringify(h,d(m),g)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var k=a.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return b}function o(h,m,g,v){var b=Object.getOwnPropertyDescriptor(v,g);b.get!==void 0?b.configurable?(Object.defineProperty(v,g,{value:h}),a.push([v,g,m,b])):r.push([m,g,h]):(v[g]=h,a.push([v,g,m]))}function s(h,m,g,v,b,k,x){k+=1;var w;if(typeof h=="object"&&h!==null){for(w=0;w<v.length;w++)if(v[w]===h){o(t,h,m,b);return}if(typeof x.depthLimit<"u"&&k>x.depthLimit){o(e,h,m,b);return}if(typeof x.edgesLimit<"u"&&g+1>x.edgesLimit){o(e,h,m,b);return}if(v.push(h),Array.isArray(h))for(w=0;w<h.length;w++)s(h[w],w,w,v,h,k,x);else{var z=Object.keys(h);for(w=0;w<z.length;w++){var S=z[w];s(h[S],S,w,v,h,k,x)}}v.pop()}}function l(h,m){return h<m?-1:h>m?1:0}function c(h,m,g,v){typeof v>"u"&&(v=n());var b=u(h,"",0,[],void 0,0,v)||h,k;try{r.length===0?k=JSON.stringify(b,m,g):k=JSON.stringify(b,d(m),g)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var x=a.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return k}function u(h,m,g,v,b,k,x){k+=1;var w;if(typeof h=="object"&&h!==null){for(w=0;w<v.length;w++)if(v[w]===h){o(t,h,m,b);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof x.depthLimit<"u"&&k>x.depthLimit){o(e,h,m,b);return}if(typeof x.edgesLimit<"u"&&g+1>x.edgesLimit){o(e,h,m,b);return}if(v.push(h),Array.isArray(h))for(w=0;w<h.length;w++)u(h[w],w,w,v,h,k,x);else{var z={},S=Object.keys(h).sort(l);for(w=0;w<S.length;w++){var C=S[w];u(h[C],C,w,v,h,k,x),z[C]=h[C]}if(typeof b<"u")a.push([b,m,h]),b[m]=z;else return z}v.pop()}}function d(h){return h=typeof h<"u"?h:function(m,g){return g},function(m,g){if(r.length>0)for(var v=0;v<r.length;v++){var b=r[v];if(b[1]===m&&b[0]===g){g=b[2],r.splice(v,1);break}}return h.call(this,m,g)}}return b$}var y$,ewe;function twe(){if(ewe)return y$;ewe=1;var e={};const t=$Kt(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(b,k,x){return x.indexOf(b)===k}function n(b){return new Set(b).size!==b.length}function i(b){return new Set(b).size<=1}function o(b,k){function x(w,z){return t.stringify(w)===t.stringify(Object.assign({},w,z))}return x(b,k)&&x(k,b)}function s(b){let k=[];for(let x of b)k.find(function(w,z,S){return o(w,x)})||k.push(x);return k}function l(b){return b.length===s(b).length}function c(b){return b.find(function(k,x,w){return b.indexOf(k)<x})}function u(b){let k=0,x;if(b.length===0)return k;for(let w=0;w<b.length;w++)x=b.charCodeAt(w),k=(k<<5)-k+x,k|=0;return k}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(b,k){return k.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],h=["items","minItems","maxItems","uniqueItems"],m=["get","post","put","delete","patch","head","options","trace"];function g(b){b=b.replace("[]","Array");let k=b.split("/");return k[0]=k[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),k.join("/")}function v(b){return g(b.split("/").join("_"))}return y$={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:m,sanitise:g,sanitiseAll:v},y$}var k$,awe;function KKt(){if(awe)return k$;awe=1;const e=q1,t=kfe(),a=l$(),r=q1,n=q1,i=X_().jptr,o=g$().recurse,s=eM().clone,l=DKt().dereference,c=h$().isRef,u=twe();function d(T){return[...new Set(T)]}function h(T,E,I,N,$){return new Promise(function(H,Z){e.readFile(T,E,function(te,ee){te?I.ignoreIOErrors&&$?(I.verbose&&console.warn("FAILED",N),I.externalRefs[N].failed=!0,H($)):Z(te):H(ee)})})}function m(T,E,I,N,$,H){let Z=H.externalRefs[I+N].paths[0],te=a.parse($),ee={},oe=1;for(;oe;)oe=0,o(T,{identityDetection:!0},function(ae,ce,Q){if(c(ae,ce)){if(ae[ce].startsWith("#")){if(!ee[ae[ce]]&&!ae.$fixed){let V=s(i(E,ae[ce]));if(H.verbose>1&&console.warn((V===!1?u.colour.red:u.colour.green)+"Fragment resolution",ae[ce],u.colour.normal),V===!1){if(Q.parent[Q.pkey]={},H.fatal){let Y=new Error("Fragment $ref resolution failed "+ae[ce]);if(H.promise)H.promise.reject(Y);else throw Y}}else oe++,Q.parent[Q.pkey]=V,ee[ae[ce]]=Q.path.replace("/%24ref","")}else if(!ae.$fixed){let V=(Z+"/"+ee[ae[ce]]).split("/#/").join("/");Q.parent[Q.pkey]={$ref:V,"x-miro":ae[ce],$fixed:!0},H.verbose>1&&console.warn("Replacing with",V),oe++}}else if(te.protocol){let V=a.resolve($,ae[ce]).toString();H.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",ae[ce],"as",V,u.colour.normal),ae["x-miro"]=ae[ce],H.externalRefs[ae[ce]]&&(H.externalRefs[V]||(H.externalRefs[V]=H.externalRefs[ae[ce]]),H.externalRefs[V].failed=H.externalRefs[ae[ce]].failed),ae[ce]=V}else if(!ae["x-miro"]){let V=a.resolve($,ae[ce]).toString(),Y=!1;H.externalRefs[ae[ce]]&&(Y=H.externalRefs[ae[ce]].failed),Y||(H.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",ae[ce],"as",V,u.colour.normal),ae["x-miro"]=ae[ce],ae[ce]=V)}}});return o(T,{},function(ae,ce,Q){c(ae,ce)&&typeof ae.$fixed<"u"&&delete ae.$fixed}),H.verbose>1&&console.warn("Finished fragment resolution"),T}function g(T,E){if(!E.filters||!E.filters.length)return T;for(let I of E.filters)T=I(T,E);return T}function v(T,E){return T&&T.length>2?T:E&&E.length>2?E:"file:"}function b(T,E,I,N){var $=a.parse(I.source),H=I.source.split("\\").join("/").split("/");H.pop()||H.pop();let Z="",te=E.split("#");te.length>1&&(Z="#"+te[1],E=te[0]),H=H.join("/");let ee=a.parse(E),oe=v(ee.protocol,$.protocol),ae;if(oe==="file:"?ae=t.resolve(H?H+"/":"",E):ae=a.resolve(H?H+"/":"",E),I.cache[ae]){I.verbose&&console.warn("CACHED",ae,Z);let ce=s(I.cache[ae]),Q=I.externalRef=ce;if(Z&&(Q=i(Q,Z),Q===!1&&(Q={},I.fatal))){let V=new Error("Cached $ref resolution failed "+ae+Z);if(I.promise)I.promise.reject(V);else throw V}return Q=m(Q,ce,E,Z,ae,I),Q=g(Q,I),N(s(Q),ae,I),Promise.resolve(Q)}if(I.verbose&&console.warn("GET",ae,Z),I.handlers&&I.handlers[oe])return I.handlers[oe](H,E,Z,I).then(function(ce){return I.externalRef=ce,ce=g(ce,I),I.cache[ae]=ce,N(ce,ae,I),ce}).catch(function(ce){throw I.verbose&&console.warn(ce),ce});if(oe&&oe.startsWith("http")){const ce=Object.assign({},I.fetchOptions,{agent:I.agent});return I.fetch(ae,ce).then(function(Q){if(Q.status!==200){if(I.ignoreIOErrors)return I.verbose&&console.warn("FAILED",E),I.externalRefs[E].failed=!0,'{"$ref":"'+E+'"}';throw new Error(`Received status code ${Q.status}: ${ae}`)}return Q.text()}).then(function(Q){try{let V=n.parse(Q,{schema:"core",prettyErrors:!0});if(Q=I.externalRef=V,I.cache[ae]=s(Q),Z&&(Q=i(Q,Z),Q===!1&&(Q={},I.fatal))){let Y=new Error("Remote $ref resolution failed "+ae+Z);if(I.promise)I.promise.reject(Y);else throw Y}Q=m(Q,V,E,Z,ae,I),Q=g(Q,I)}catch(V){if(I.verbose&&console.warn(V),I.promise&&I.fatal)I.promise.reject(V);else throw V}return N(Q,ae,I),Q}).catch(function(Q){if(I.verbose&&console.warn(Q),I.cache[ae]={},I.promise&&I.fatal)I.promise.reject(Q);else throw Q})}else{const ce='{"$ref":"'+E+'"}';return h(ae,I.encoding||"utf8",I,E,ce).then(function(Q){try{let V=n.parse(Q,{schema:"core",prettyErrors:!0});if(Q=I.externalRef=V,I.cache[ae]=s(Q),Z&&(Q=i(Q,Z),Q===!1&&(Q={},I.fatal))){let Y=new Error("File $ref resolution failed "+ae+Z);if(I.promise)I.promise.reject(Y);else throw Y}Q=m(Q,V,E,Z,ae,I),Q=g(Q,I)}catch(V){if(I.verbose&&console.warn(V),I.promise&&I.fatal)I.promise.reject(V);else throw V}return N(Q,ae,I),Q}).catch(function(Q){if(I.verbose&&console.warn(Q),I.promise&&I.fatal)I.promise.reject(Q);else throw Q})}}function k(T){return new Promise(function(E,I){function N(H,Z,te){if(H[Z]&&c(H[Z],"$ref")){let ee=H[Z].$ref;if(!ee.startsWith("#")){let oe="";if(!$[ee]){let ae=Object.keys($).find(function(ce,Q,V){return ee.startsWith(ce+"/")});ae&&(T.verbose&&console.warn("Found potential subschema at",ae),oe="/"+(ee.split("#")[1]||"").replace(ae.split("#")[1]||""),oe=oe.split("/undefined").join(""),ee=ae)}if($[ee]||($[ee]={resolved:!1,paths:[],extras:{},description:H[Z].description}),$[ee].resolved){if(!$[ee].failed)if(T.rewriteRefs){let ae=$[ee].resolvedAt;T.verbose>1&&console.warn("Rewriting ref",ee,ae),H[Z]["x-miro"]=ee,H[Z].$ref=ae+oe}else H[Z]=s($[ee].data)}else $[ee].paths.push(te.path),$[ee].extras[te.path]=oe}}}let $=T.externalRefs;if(T.resolver.depth>0&&T.source===T.resolver.base)return E($);o(T.openapi.definitions,{identityDetection:!0,path:"#/definitions"},N),o(T.openapi.components,{identityDetection:!0,path:"#/components"},N),o(T.openapi,{identityDetection:!0},N),E($)})}function x(T){return new Promise(function(E,I){k(T).then(function($){for(let H in $)if(!$[H].resolved){let Z=T.resolver.depth;Z>0&&Z++,T.resolver.actions[Z].push(function(){return b(T.openapi,H,T,function(te,ee,oe){if(!$[H].resolved){let Q={};Q.context=$[H],Q.$ref=H,Q.original=s(te),Q.updated=te,Q.source=ee,oe.externals.push(Q),$[H].resolved=!0}let ae=Object.assign({},oe,{source:"",resolver:{actions:oe.resolver.actions,depth:oe.resolver.actions.length-1,base:oe.resolver.base}});oe.patch&&$[H].description&&!te.description&&typeof te=="object"&&(te.description=$[H].description),$[H].data=te;let ce=d($[H].paths);ce=ce.sort(function(Q,V){const Y=Q.startsWith("#/components/")||Q.startsWith("#/definitions/"),G=V.startsWith("#/components/")||V.startsWith("#/definitions/");return Y&&!G?-1:G&&!Y?1:0});for(let Q of ce)if($[H].resolvedAt&&Q!==$[H].resolvedAt&&Q.indexOf("x-ms-examples/")<0)oe.verbose>1&&console.warn("Creating pointer to data at",Q),i(oe.openapi,Q,{$ref:$[H].resolvedAt+$[H].extras[Q],"x-miro":H+$[H].extras[Q]});else{$[H].resolvedAt?oe.verbose>1&&console.warn("Avoiding circular reference"):($[H].resolvedAt=Q,oe.verbose>1&&console.warn("Creating initial clone of data at",Q));let V=s(te);i(oe.openapi,Q,V)}oe.resolver.actions[ae.resolver.depth].length===0&&oe.resolver.actions[ae.resolver.depth].push(function(){return x(ae)})})})}}).catch(function($){T.verbose&&console.warn($),I($)});let N={options:T};N.actions=T.resolver.actions[T.resolver.depth],E(N)})}const w=T=>T.reduce((E,I)=>E.then(N=>I().then(Array.prototype.concat.bind(N))),Promise.resolve([]));function z(T,E,I){T.resolver.actions.push([]),x(T).then(function(N){w(N.actions).then(function(){if(T.resolver.depth>=T.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),E(!0);T.resolver.depth++,T.resolver.actions[T.resolver.depth].length?setTimeout(function(){z(N.options,E,I)},0):(T.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),T.resolveInternal&&(T.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),T.openapi=l(T.openapi,T.original,{verbose:T.verbose-1}),T.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(T.openapi,{},function($,H,Z){c($,H)&&(T.preserveMiro||delete $["x-miro"])}),E(T))}).catch(function($){T.verbose&&console.warn($),I($)})}).catch(function(N){T.verbose&&console.warn(N),I(N)})}function S(T){if(T.cache||(T.cache={}),T.fetch||(T.fetch=r),T.source){let E=a.parse(T.source);(!E.protocol||E.protocol.length<=2)&&(T.source=t.resolve(T.source))}T.externals=[],T.externalRefs={},T.rewriteRefs=!0,T.resolver={},T.resolver.depth=0,T.resolver.base=T.source,T.resolver.actions=[[]]}function C(T){return S(T),new Promise(function(E,I){T.resolve?z(T,E,I):E(T)})}function j(T,E,I){return I||(I={}),I.openapi=T,I.source=E,I.resolve=!0,S(I),new Promise(function(N,$){z(I,N,$)})}return k$={optionalResolve:C,resolve:j},k$}var x$,rwe;function HKt(){if(rwe)return x$;rwe=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(a,r,n,i){if(typeof n.depth>"u"&&(n=e()),a===null||typeof a>"u")return a;if(typeof a.$ref<"u"){let o={$ref:a.$ref};return n.allowRefSiblings&&a.description&&(o.description=a.description),i(o,r,n),o}if(n.combine&&(a.allOf&&Array.isArray(a.allOf)&&a.allOf.length===1&&(a=Object.assign({},a.allOf[0],a),delete a.allOf),a.anyOf&&Array.isArray(a.anyOf)&&a.anyOf.length===1&&(a=Object.assign({},a.anyOf[0],a),delete a.anyOf),a.oneOf&&Array.isArray(a.oneOf)&&a.oneOf.length===1&&(a=Object.assign({},a.oneOf[0],a),delete a.oneOf)),i(a,r,n),n.seen.has(a))return a;if(typeof a=="object"&&a!==null&&n.seen.set(a,!0),n.top=!1,n.depth++,typeof a.items<"u"&&(n.property="items",t(a.items,a,n,i)),a.additionalItems&&typeof a.additionalItems=="object"&&(n.property="additionalItems",t(a.additionalItems,a,n,i)),a.additionalProperties&&typeof a.additionalProperties=="object"&&(n.property="additionalProperties",t(a.additionalProperties,a,n,i)),a.properties)for(let o in a.properties){let s=a.properties[o];n.property="properties/"+o,t(s,a,n,i)}if(a.patternProperties)for(let o in a.patternProperties){let s=a.patternProperties[o];n.property="patternProperties/"+o,t(s,a,n,i)}if(a.allOf)for(let o in a.allOf){let s=a.allOf[o];n.property="allOf/"+o,t(s,a,n,i)}if(a.anyOf)for(let o in a.anyOf){let s=a.anyOf[o];n.property="anyOf/"+o,t(s,a,n,i)}if(a.oneOf)for(let o in a.oneOf){let s=a.oneOf[o];n.property="oneOf/"+o,t(s,a,n,i)}return a.not&&(n.property="not",t(a.not,a,n,i)),n.depth--,a}return x$={getDefaultState:e,walkSchema:t},x$}var nwe={},w$={exports:{}},iwe={},owe;function swe(){return owe||(owe=1,(function(e){e.fetch=n(globalThis.fetch)&&n(globalThis.ReadableStream),e.writableStream=n(globalThis.WritableStream),e.abortController=n(globalThis.AbortController);var t;function a(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var o=a();if(!o)return!1;try{return o.responseType=i,o.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?n(a().overrideMimeType):!1);function n(i){return typeof i=="function"}t=null})(iwe)),iwe}var tM={},S$={exports:{}},aM={exports:{}},lwe;function VKt(){if(lwe)return aM.exports;lwe=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(z,S,C){return Function.prototype.apply.call(z,S,C)},a;e&&typeof e.ownKeys=="function"?a=e.ownKeys:Object.getOwnPropertySymbols?a=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:a=function(z){return Object.getOwnPropertyNames(z)};function r(z){console&&console.warn&&console.warn(z)}var n=Number.isNaN||function(z){return z!==z};function i(){i.init.call(this)}aM.exports=i,aM.exports.once=k,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(z){if(typeof z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof z)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(z){if(typeof z!="number"||z<0||n(z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+z+".");o=z}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||n(z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+z+".");return this._maxListeners=z,this};function l(z){return z._maxListeners===void 0?i.defaultMaxListeners:z._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(z){for(var S=[],C=1;C<arguments.length;C++)S.push(arguments[C]);var j=z==="error",T=this._events;if(T!==void 0)j=j&&T.error===void 0;else if(!j)return!1;if(j){var E;if(S.length>0&&(E=S[0]),E instanceof Error)throw E;var I=new Error("Unhandled error."+(E?" ("+E.message+")":""));throw I.context=E,I}var N=T[z];if(N===void 0)return!1;if(typeof N=="function")t(N,this,S);else for(var $=N.length,H=g(N,$),C=0;C<$;++C)t(H[C],this,S);return!0};function c(z,S,C,j){var T,E,I;if(s(C),E=z._events,E===void 0?(E=z._events=Object.create(null),z._eventsCount=0):(E.newListener!==void 0&&(z.emit("newListener",S,C.listener?C.listener:C),E=z._events),I=E[S]),I===void 0)I=E[S]=C,++z._eventsCount;else if(typeof I=="function"?I=E[S]=j?[C,I]:[I,C]:j?I.unshift(C):I.push(C),T=l(z),T>0&&I.length>T&&!I.warned){I.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=z,N.type=S,N.count=I.length,r(N)}return z}i.prototype.addListener=function(z,S){return c(this,z,S,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(z,S){return c(this,z,S,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(z,S,C){var j={fired:!1,wrapFn:void 0,target:z,type:S,listener:C},T=u.bind(j);return T.listener=C,j.wrapFn=T,T}i.prototype.once=function(z,S){return s(S),this.on(z,d(this,z,S)),this},i.prototype.prependOnceListener=function(z,S){return s(S),this.prependListener(z,d(this,z,S)),this},i.prototype.removeListener=function(z,S){var C,j,T,E,I;if(s(S),j=this._events,j===void 0)return this;if(C=j[z],C===void 0)return this;if(C===S||C.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete j[z],j.removeListener&&this.emit("removeListener",z,C.listener||S));else if(typeof C!="function"){for(T=-1,E=C.length-1;E>=0;E--)if(C[E]===S||C[E].listener===S){I=C[E].listener,T=E;break}if(T<0)return this;T===0?C.shift():v(C,T),C.length===1&&(j[z]=C[0]),j.removeListener!==void 0&&this.emit("removeListener",z,I||S)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(z){var S,C,j;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[z]),this;if(arguments.length===0){var T=Object.keys(C),E;for(j=0;j<T.length;++j)E=T[j],E!=="removeListener"&&this.removeAllListeners(E);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(S=C[z],typeof S=="function")this.removeListener(z,S);else if(S!==void 0)for(j=S.length-1;j>=0;j--)this.removeListener(z,S[j]);return this};function h(z,S,C){var j=z._events;if(j===void 0)return[];var T=j[S];return T===void 0?[]:typeof T=="function"?C?[T.listener||T]:[T]:C?b(T):g(T,T.length)}i.prototype.listeners=function(z){return h(this,z,!0)},i.prototype.rawListeners=function(z){return h(this,z,!1)},i.listenerCount=function(z,S){return typeof z.listenerCount=="function"?z.listenerCount(S):m.call(z,S)},i.prototype.listenerCount=m;function m(z){var S=this._events;if(S!==void 0){var C=S[z];if(typeof C=="function")return 1;if(C!==void 0)return C.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function g(z,S){for(var C=new Array(S),j=0;j<S;++j)C[j]=z[j];return C}function v(z,S){for(;S+1<z.length;S++)z[S]=z[S+1];z.pop()}function b(z){for(var S=new Array(z.length),C=0;C<S.length;++C)S[C]=z[C].listener||z[C];return S}function k(z,S){return new Promise(function(C,j){function T(I){z.removeListener(S,E),j(I)}function E(){typeof z.removeListener=="function"&&z.removeListener("error",T),C([].slice.call(arguments))}w(z,S,E,{once:!0}),S!=="error"&&x(z,T,{once:!0})})}function x(z,S,C){typeof z.on=="function"&&w(z,"error",S,C)}function w(z,S,C,j){if(typeof z.on=="function")j.once?z.once(S,C):z.on(S,C);else if(typeof z.addEventListener=="function")z.addEventListener(S,function T(E){j.once&&z.removeEventListener(S,T),C(E)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof z)}return aM.exports}var cwe,uwe;function dwe(){return uwe||(uwe=1,cwe=VKt().EventEmitter),cwe}var pwe={},tz={},hwe;function FKt(){if(hwe)return tz;hwe=1,tz.byteLength=s,tz.toByteArray=c,tz.fromByteArray=h;for(var e=[],t=[],a=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,i=r.length;n<i;++n)e[n]=r[n],t[r.charCodeAt(n)]=n;t[45]=62,t[95]=63;function o(m){var g=m.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=m.indexOf("=");v===-1&&(v=g);var b=v===g?0:4-v%4;return[v,b]}function s(m){var g=o(m),v=g[0],b=g[1];return(v+b)*3/4-b}function l(m,g,v){return(g+v)*3/4-v}function c(m){var g,v=o(m),b=v[0],k=v[1],x=new a(l(m,b,k)),w=0,z=k>0?b-4:b,S;for(S=0;S<z;S+=4)g=t[m.charCodeAt(S)]<<18|t[m.charCodeAt(S+1)]<<12|t[m.charCodeAt(S+2)]<<6|t[m.charCodeAt(S+3)],x[w++]=g>>16&255,x[w++]=g>>8&255,x[w++]=g&255;return k===2&&(g=t[m.charCodeAt(S)]<<2|t[m.charCodeAt(S+1)]>>4,x[w++]=g&255),k===1&&(g=t[m.charCodeAt(S)]<<10|t[m.charCodeAt(S+1)]<<4|t[m.charCodeAt(S+2)]>>2,x[w++]=g>>8&255,x[w++]=g&255),x}function u(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function d(m,g,v){for(var b,k=[],x=g;x<v;x+=3)b=(m[x]<<16&16711680)+(m[x+1]<<8&65280)+(m[x+2]&255),k.push(u(b));return k.join("")}function h(m){for(var g,v=m.length,b=v%3,k=[],x=16383,w=0,z=v-b;w<z;w+=x)k.push(d(m,w,w+x>z?z:w+x));return b===1?(g=m[v-1],k.push(e[g>>2]+e[g<<4&63]+"==")):b===2&&(g=(m[v-2]<<8)+m[v-1],k.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),k.join("")}return tz}var O$={},mwe;function qKt(){return mwe||(mwe=1,O$.read=function(e,t,a,r,n){var i,o,s=n*8-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=a?n-1:0,h=a?-1:1,m=e[t+d];for(d+=h,i=m&(1<<-u)-1,m>>=-u,u+=s;u>0;i=i*256+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,r),i=i-c}return(m?-1:1)*o*Math.pow(2,i-r)},O$.write=function(e,t,a,r,n,i){var o,s,l,c=i*8-n-1,u=(1<<c)-1,d=u>>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,g=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,n),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[a+m]=s&255,m+=g,s/=256,n-=8);for(o=o<<n|s,c+=n;c>0;e[a+m]=o&255,m+=g,o/=256,c-=8);e[a+m-g]|=v*128}),O$}var fwe;function az(){return fwe||(fwe=1,(function(e){const t=FKt(),a=qKt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;const n=2147483647;e.kMaxLength=n,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const _=new Uint8Array(1),W={foo:function(){return 42}};return Object.setPrototypeOf(W,Uint8Array.prototype),Object.setPrototypeOf(_,W),_.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(_){if(_>n)throw new RangeError('The value "'+_+'" is invalid for option "size"');const W=new Uint8Array(_);return Object.setPrototypeOf(W,s.prototype),W}function s(_,W,ne){if(typeof _=="number"){if(typeof W=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(_)}return l(_,W,ne)}s.poolSize=8192;function l(_,W,ne){if(typeof _=="string")return h(_,W);if(ArrayBuffer.isView(_))return g(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(Me(_,ArrayBuffer)||_&&Me(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Me(_,SharedArrayBuffer)||_&&Me(_.buffer,SharedArrayBuffer)))return v(_,W,ne);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ge=_.valueOf&&_.valueOf();if(ge!=null&&ge!==_)return s.from(ge,W,ne);const Pe=b(_);if(Pe)return Pe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return s.from(_[Symbol.toPrimitive]("string"),W,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}s.from=function(_,W,ne){return l(_,W,ne)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function u(_,W,ne){return c(_),_<=0?o(_):W!==void 0?typeof ne=="string"?o(_).fill(W,ne):o(_).fill(W):o(_)}s.alloc=function(_,W,ne){return u(_,W,ne)};function d(_){return c(_),o(_<0?0:k(_)|0)}s.allocUnsafe=function(_){return d(_)},s.allocUnsafeSlow=function(_){return d(_)};function h(_,W){if((typeof W!="string"||W==="")&&(W="utf8"),!s.isEncoding(W))throw new TypeError("Unknown encoding: "+W);const ne=w(_,W)|0;let ge=o(ne);const Pe=ge.write(_,W);return Pe!==ne&&(ge=ge.slice(0,Pe)),ge}function m(_){const W=_.length<0?0:k(_.length)|0,ne=o(W);for(let ge=0;ge<W;ge+=1)ne[ge]=_[ge]&255;return ne}function g(_){if(Me(_,Uint8Array)){const W=new Uint8Array(_);return v(W.buffer,W.byteOffset,W.byteLength)}return m(_)}function v(_,W,ne){if(W<0||_.byteLength<W)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<W+(ne||0))throw new RangeError('"length" is outside of buffer bounds');let ge;return W===void 0&&ne===void 0?ge=new Uint8Array(_):ne===void 0?ge=new Uint8Array(_,W):ge=new Uint8Array(_,W,ne),Object.setPrototypeOf(ge,s.prototype),ge}function b(_){if(s.isBuffer(_)){const W=k(_.length)|0,ne=o(W);return ne.length===0||_.copy(ne,0,0,W),ne}if(_.length!==void 0)return typeof _.length!="number"||de(_.length)?o(0):m(_);if(_.type==="Buffer"&&Array.isArray(_.data))return m(_.data)}function k(_){if(_>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return _|0}function x(_){return+_!=_&&(_=0),s.alloc(+_)}s.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==s.prototype},s.compare=function(_,W){if(Me(_,Uint8Array)&&(_=s.from(_,_.offset,_.byteLength)),Me(W,Uint8Array)&&(W=s.from(W,W.offset,W.byteLength)),!s.isBuffer(_)||!s.isBuffer(W))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===W)return 0;let ne=_.length,ge=W.length;for(let Pe=0,Te=Math.min(ne,ge);Pe<Te;++Pe)if(_[Pe]!==W[Pe]){ne=_[Pe],ge=W[Pe];break}return ne<ge?-1:ge<ne?1:0},s.isEncoding=function(_){switch(String(_).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(_,W){if(!Array.isArray(_))throw new TypeError('"list" argument must be an Array of Buffers');if(_.length===0)return s.alloc(0);let ne;if(W===void 0)for(W=0,ne=0;ne<_.length;++ne)W+=_[ne].length;const ge=s.allocUnsafe(W);let Pe=0;for(ne=0;ne<_.length;++ne){let Te=_[ne];if(Me(Te,Uint8Array))Pe+Te.length>ge.length?(s.isBuffer(Te)||(Te=s.from(Te)),Te.copy(ge,Pe)):Uint8Array.prototype.set.call(ge,Te,Pe);else if(s.isBuffer(Te))Te.copy(ge,Pe);else throw new TypeError('"list" argument must be an Array of Buffers');Pe+=Te.length}return ge};function w(_,W){if(s.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||Me(_,ArrayBuffer))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const ne=_.length,ge=arguments.length>2&&arguments[2]===!0;if(!ge&&ne===0)return 0;let Pe=!1;for(;;)switch(W){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return le(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne*2;case"hex":return ne>>>1;case"base64":return Re(_).length;default:if(Pe)return ge?-1:le(_).length;W=(""+W).toLowerCase(),Pe=!0}}s.byteLength=w;function z(_,W,ne){let ge=!1;if((W===void 0||W<0)&&(W=0),W>this.length||((ne===void 0||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0,W>>>=0,ne<=W))return"";for(_||(_="utf8");;)switch(_){case"hex":return ce(this,W,ne);case"utf8":case"utf-8":return Z(this,W,ne);case"ascii":return oe(this,W,ne);case"latin1":case"binary":return ae(this,W,ne);case"base64":return H(this,W,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,W,ne);default:if(ge)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),ge=!0}}s.prototype._isBuffer=!0;function S(_,W,ne){const ge=_[W];_[W]=_[ne],_[ne]=ge}s.prototype.swap16=function(){const _=this.length;if(_%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let W=0;W<_;W+=2)S(this,W,W+1);return this},s.prototype.swap32=function(){const _=this.length;if(_%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let W=0;W<_;W+=4)S(this,W,W+3),S(this,W+1,W+2);return this},s.prototype.swap64=function(){const _=this.length;if(_%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let W=0;W<_;W+=8)S(this,W,W+7),S(this,W+1,W+6),S(this,W+2,W+5),S(this,W+3,W+4);return this},s.prototype.toString=function(){const _=this.length;return _===0?"":arguments.length===0?Z(this,0,_):z.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(_){if(!s.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:s.compare(this,_)===0},s.prototype.inspect=function(){let _="";const W=e.INSPECT_MAX_BYTES;return _=this.toString("hex",0,W).replace(/(.{2})/g,"$1 ").trim(),this.length>W&&(_+=" ... "),"<Buffer "+_+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(_,W,ne,ge,Pe){if(Me(_,Uint8Array)&&(_=s.from(_,_.offset,_.byteLength)),!s.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(W===void 0&&(W=0),ne===void 0&&(ne=_?_.length:0),ge===void 0&&(ge=0),Pe===void 0&&(Pe=this.length),W<0||ne>_.length||ge<0||Pe>this.length)throw new RangeError("out of range index");if(ge>=Pe&&W>=ne)return 0;if(ge>=Pe)return-1;if(W>=ne)return 1;if(W>>>=0,ne>>>=0,ge>>>=0,Pe>>>=0,this===_)return 0;let Te=Pe-ge,Le=ne-W;const rt=Math.min(Te,Le),ot=this.slice(ge,Pe),Je=_.slice(W,ne);for(let Xe=0;Xe<rt;++Xe)if(ot[Xe]!==Je[Xe]){Te=ot[Xe],Le=Je[Xe];break}return Te<Le?-1:Le<Te?1:0};function C(_,W,ne,ge,Pe){if(_.length===0)return-1;if(typeof ne=="string"?(ge=ne,ne=0):ne>2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ne=+ne,de(ne)&&(ne=Pe?0:_.length-1),ne<0&&(ne=_.length+ne),ne>=_.length){if(Pe)return-1;ne=_.length-1}else if(ne<0)if(Pe)ne=0;else return-1;if(typeof W=="string"&&(W=s.from(W,ge)),s.isBuffer(W))return W.length===0?-1:j(_,W,ne,ge,Pe);if(typeof W=="number")return W=W&255,typeof Uint8Array.prototype.indexOf=="function"?Pe?Uint8Array.prototype.indexOf.call(_,W,ne):Uint8Array.prototype.lastIndexOf.call(_,W,ne):j(_,[W],ne,ge,Pe);throw new TypeError("val must be string, number or Buffer")}function j(_,W,ne,ge,Pe){let Te=1,Le=_.length,rt=W.length;if(ge!==void 0&&(ge=String(ge).toLowerCase(),ge==="ucs2"||ge==="ucs-2"||ge==="utf16le"||ge==="utf-16le")){if(_.length<2||W.length<2)return-1;Te=2,Le/=2,rt/=2,ne/=2}function ot(Xe,jt){return Te===1?Xe[jt]:Xe.readUInt16BE(jt*Te)}let Je;if(Pe){let Xe=-1;for(Je=ne;Je<Le;Je++)if(ot(_,Je)===ot(W,Xe===-1?0:Je-Xe)){if(Xe===-1&&(Xe=Je),Je-Xe+1===rt)return Xe*Te}else Xe!==-1&&(Je-=Je-Xe),Xe=-1}else for(ne+rt>Le&&(ne=Le-rt),Je=ne;Je>=0;Je--){let Xe=!0;for(let jt=0;jt<rt;jt++)if(ot(_,Je+jt)!==ot(W,jt)){Xe=!1;break}if(Xe)return Je}return-1}s.prototype.includes=function(_,W,ne){return this.indexOf(_,W,ne)!==-1},s.prototype.indexOf=function(_,W,ne){return C(this,_,W,ne,!0)},s.prototype.lastIndexOf=function(_,W,ne){return C(this,_,W,ne,!1)};function T(_,W,ne,ge){ne=Number(ne)||0;const Pe=_.length-ne;ge?(ge=Number(ge),ge>Pe&&(ge=Pe)):ge=Pe;const Te=W.length;ge>Te/2&&(ge=Te/2);let Le;for(Le=0;Le<ge;++Le){const rt=parseInt(W.substr(Le*2,2),16);if(de(rt))return Le;_[ne+Le]=rt}return Le}function E(_,W,ne,ge){return Ce(le(W,_.length-ne),_,ne,ge)}function I(_,W,ne,ge){return Ce(je(W),_,ne,ge)}function N(_,W,ne,ge){return Ce(Re(W),_,ne,ge)}function $(_,W,ne,ge){return Ce(be(W,_.length-ne),_,ne,ge)}s.prototype.write=function(_,W,ne,ge){if(W===void 0)ge="utf8",ne=this.length,W=0;else if(ne===void 0&&typeof W=="string")ge=W,ne=this.length,W=0;else if(isFinite(W))W=W>>>0,isFinite(ne)?(ne=ne>>>0,ge===void 0&&(ge="utf8")):(ge=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Pe=this.length-W;if((ne===void 0||ne>Pe)&&(ne=Pe),_.length>0&&(ne<0||W<0)||W>this.length)throw new RangeError("Attempt to write outside buffer bounds");ge||(ge="utf8");let Te=!1;for(;;)switch(ge){case"hex":return T(this,_,W,ne);case"utf8":case"utf-8":return E(this,_,W,ne);case"ascii":case"latin1":case"binary":return I(this,_,W,ne);case"base64":return N(this,_,W,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,_,W,ne);default:if(Te)throw new TypeError("Unknown encoding: "+ge);ge=(""+ge).toLowerCase(),Te=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(_,W,ne){return W===0&&ne===_.length?t.fromByteArray(_):t.fromByteArray(_.slice(W,ne))}function Z(_,W,ne){ne=Math.min(_.length,ne);const ge=[];let Pe=W;for(;Pe<ne;){const Te=_[Pe];let Le=null,rt=Te>239?4:Te>223?3:Te>191?2:1;if(Pe+rt<=ne){let ot,Je,Xe,jt;switch(rt){case 1:Te<128&&(Le=Te);break;case 2:ot=_[Pe+1],(ot&192)===128&&(jt=(Te&31)<<6|ot&63,jt>127&&(Le=jt));break;case 3:ot=_[Pe+1],Je=_[Pe+2],(ot&192)===128&&(Je&192)===128&&(jt=(Te&15)<<12|(ot&63)<<6|Je&63,jt>2047&&(jt<55296||jt>57343)&&(Le=jt));break;case 4:ot=_[Pe+1],Je=_[Pe+2],Xe=_[Pe+3],(ot&192)===128&&(Je&192)===128&&(Xe&192)===128&&(jt=(Te&15)<<18|(ot&63)<<12|(Je&63)<<6|Xe&63,jt>65535&&jt<1114112&&(Le=jt))}}Le===null?(Le=65533,rt=1):Le>65535&&(Le-=65536,ge.push(Le>>>10&1023|55296),Le=56320|Le&1023),ge.push(Le),Pe+=rt}return ee(ge)}const te=4096;function ee(_){const W=_.length;if(W<=te)return String.fromCharCode.apply(String,_);let ne="",ge=0;for(;ge<W;)ne+=String.fromCharCode.apply(String,_.slice(ge,ge+=te));return ne}function oe(_,W,ne){let ge="";ne=Math.min(_.length,ne);for(let Pe=W;Pe<ne;++Pe)ge+=String.fromCharCode(_[Pe]&127);return ge}function ae(_,W,ne){let ge="";ne=Math.min(_.length,ne);for(let Pe=W;Pe<ne;++Pe)ge+=String.fromCharCode(_[Pe]);return ge}function ce(_,W,ne){const ge=_.length;(!W||W<0)&&(W=0),(!ne||ne<0||ne>ge)&&(ne=ge);let Pe="";for(let Te=W;Te<ne;++Te)Pe+=Ae[_[Te]];return Pe}function Q(_,W,ne){const ge=_.slice(W,ne);let Pe="";for(let Te=0;Te<ge.length-1;Te+=2)Pe+=String.fromCharCode(ge[Te]+ge[Te+1]*256);return Pe}s.prototype.slice=function(_,W){const ne=this.length;_=~~_,W=W===void 0?ne:~~W,_<0?(_+=ne,_<0&&(_=0)):_>ne&&(_=ne),W<0?(W+=ne,W<0&&(W=0)):W>ne&&(W=ne),W<_&&(W=_);const ge=this.subarray(_,W);return Object.setPrototypeOf(ge,s.prototype),ge};function V(_,W,ne){if(_%1!==0||_<0)throw new RangeError("offset is not uint");if(_+W>ne)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(_,W,ne){_=_>>>0,W=W>>>0,ne||V(_,W,this.length);let ge=this[_],Pe=1,Te=0;for(;++Te<W&&(Pe*=256);)ge+=this[_+Te]*Pe;return ge},s.prototype.readUintBE=s.prototype.readUIntBE=function(_,W,ne){_=_>>>0,W=W>>>0,ne||V(_,W,this.length);let ge=this[_+--W],Pe=1;for(;W>0&&(Pe*=256);)ge+=this[_+--W]*Pe;return ge},s.prototype.readUint8=s.prototype.readUInt8=function(_,W){return _=_>>>0,W||V(_,1,this.length),this[_]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(_,W){return _=_>>>0,W||V(_,2,this.length),this[_]|this[_+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(_,W){return _=_>>>0,W||V(_,2,this.length),this[_]<<8|this[_+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(_,W){return _=_>>>0,W||V(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(_,W){return _=_>>>0,W||V(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},s.prototype.readBigUInt64LE=Qe(function(_){_=_>>>0,re(_,"offset");const W=this[_],ne=this[_+7];(W===void 0||ne===void 0)&&ve(_,this.length-8);const ge=W+this[++_]*2**8+this[++_]*2**16+this[++_]*2**24,Pe=this[++_]+this[++_]*2**8+this[++_]*2**16+ne*2**24;return BigInt(ge)+(BigInt(Pe)<<BigInt(32))}),s.prototype.readBigUInt64BE=Qe(function(_){_=_>>>0,re(_,"offset");const W=this[_],ne=this[_+7];(W===void 0||ne===void 0)&&ve(_,this.length-8);const ge=W*2**24+this[++_]*2**16+this[++_]*2**8+this[++_],Pe=this[++_]*2**24+this[++_]*2**16+this[++_]*2**8+ne;return(BigInt(ge)<<BigInt(32))+BigInt(Pe)}),s.prototype.readIntLE=function(_,W,ne){_=_>>>0,W=W>>>0,ne||V(_,W,this.length);let ge=this[_],Pe=1,Te=0;for(;++Te<W&&(Pe*=256);)ge+=this[_+Te]*Pe;return Pe*=128,ge>=Pe&&(ge-=Math.pow(2,8*W)),ge},s.prototype.readIntBE=function(_,W,ne){_=_>>>0,W=W>>>0,ne||V(_,W,this.length);let ge=W,Pe=1,Te=this[_+--ge];for(;ge>0&&(Pe*=256);)Te+=this[_+--ge]*Pe;return Pe*=128,Te>=Pe&&(Te-=Math.pow(2,8*W)),Te},s.prototype.readInt8=function(_,W){return _=_>>>0,W||V(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},s.prototype.readInt16LE=function(_,W){_=_>>>0,W||V(_,2,this.length);const ne=this[_]|this[_+1]<<8;return ne&32768?ne|4294901760:ne},s.prototype.readInt16BE=function(_,W){_=_>>>0,W||V(_,2,this.length);const ne=this[_+1]|this[_]<<8;return ne&32768?ne|4294901760:ne},s.prototype.readInt32LE=function(_,W){return _=_>>>0,W||V(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},s.prototype.readInt32BE=function(_,W){return _=_>>>0,W||V(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},s.prototype.readBigInt64LE=Qe(function(_){_=_>>>0,re(_,"offset");const W=this[_],ne=this[_+7];(W===void 0||ne===void 0)&&ve(_,this.length-8);const ge=this[_+4]+this[_+5]*2**8+this[_+6]*2**16+(ne<<24);return(BigInt(ge)<<BigInt(32))+BigInt(W+this[++_]*2**8+this[++_]*2**16+this[++_]*2**24)}),s.prototype.readBigInt64BE=Qe(function(_){_=_>>>0,re(_,"offset");const W=this[_],ne=this[_+7];(W===void 0||ne===void 0)&&ve(_,this.length-8);const ge=(W<<24)+this[++_]*2**16+this[++_]*2**8+this[++_];return(BigInt(ge)<<BigInt(32))+BigInt(this[++_]*2**24+this[++_]*2**16+this[++_]*2**8+ne)}),s.prototype.readFloatLE=function(_,W){return _=_>>>0,W||V(_,4,this.length),a.read(this,_,!0,23,4)},s.prototype.readFloatBE=function(_,W){return _=_>>>0,W||V(_,4,this.length),a.read(this,_,!1,23,4)},s.prototype.readDoubleLE=function(_,W){return _=_>>>0,W||V(_,8,this.length),a.read(this,_,!0,52,8)},s.prototype.readDoubleBE=function(_,W){return _=_>>>0,W||V(_,8,this.length),a.read(this,_,!1,52,8)};function Y(_,W,ne,ge,Pe,Te){if(!s.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>Pe||W<Te)throw new RangeError('"value" argument is out of bounds');if(ne+ge>_.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(_,W,ne,ge){if(_=+_,W=W>>>0,ne=ne>>>0,!ge){const Le=Math.pow(2,8*ne)-1;Y(this,_,W,ne,Le,0)}let Pe=1,Te=0;for(this[W]=_&255;++Te<ne&&(Pe*=256);)this[W+Te]=_/Pe&255;return W+ne},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(_,W,ne,ge){if(_=+_,W=W>>>0,ne=ne>>>0,!ge){const Le=Math.pow(2,8*ne)-1;Y(this,_,W,ne,Le,0)}let Pe=ne-1,Te=1;for(this[W+Pe]=_&255;--Pe>=0&&(Te*=256);)this[W+Pe]=_/Te&255;return W+ne},s.prototype.writeUint8=s.prototype.writeUInt8=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,1,255,0),this[W]=_&255,W+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,2,65535,0),this[W]=_&255,this[W+1]=_>>>8,W+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,2,65535,0),this[W]=_>>>8,this[W+1]=_&255,W+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,4,4294967295,0),this[W+3]=_>>>24,this[W+2]=_>>>16,this[W+1]=_>>>8,this[W]=_&255,W+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,4,4294967295,0),this[W]=_>>>24,this[W+1]=_>>>16,this[W+2]=_>>>8,this[W+3]=_&255,W+4};function G(_,W,ne,ge,Pe){L(W,ge,Pe,_,ne,7);let Te=Number(W&BigInt(4294967295));_[ne++]=Te,Te=Te>>8,_[ne++]=Te,Te=Te>>8,_[ne++]=Te,Te=Te>>8,_[ne++]=Te;let Le=Number(W>>BigInt(32)&BigInt(4294967295));return _[ne++]=Le,Le=Le>>8,_[ne++]=Le,Le=Le>>8,_[ne++]=Le,Le=Le>>8,_[ne++]=Le,ne}function D(_,W,ne,ge,Pe){L(W,ge,Pe,_,ne,7);let Te=Number(W&BigInt(4294967295));_[ne+7]=Te,Te=Te>>8,_[ne+6]=Te,Te=Te>>8,_[ne+5]=Te,Te=Te>>8,_[ne+4]=Te;let Le=Number(W>>BigInt(32)&BigInt(4294967295));return _[ne+3]=Le,Le=Le>>8,_[ne+2]=Le,Le=Le>>8,_[ne+1]=Le,Le=Le>>8,_[ne]=Le,ne+8}s.prototype.writeBigUInt64LE=Qe(function(_,W=0){return G(this,_,W,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Qe(function(_,W=0){return D(this,_,W,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(_,W,ne,ge){if(_=+_,W=W>>>0,!ge){const rt=Math.pow(2,8*ne-1);Y(this,_,W,ne,rt-1,-rt)}let Pe=0,Te=1,Le=0;for(this[W]=_&255;++Pe<ne&&(Te*=256);)_<0&&Le===0&&this[W+Pe-1]!==0&&(Le=1),this[W+Pe]=(_/Te>>0)-Le&255;return W+ne},s.prototype.writeIntBE=function(_,W,ne,ge){if(_=+_,W=W>>>0,!ge){const rt=Math.pow(2,8*ne-1);Y(this,_,W,ne,rt-1,-rt)}let Pe=ne-1,Te=1,Le=0;for(this[W+Pe]=_&255;--Pe>=0&&(Te*=256);)_<0&&Le===0&&this[W+Pe+1]!==0&&(Le=1),this[W+Pe]=(_/Te>>0)-Le&255;return W+ne},s.prototype.writeInt8=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,1,127,-128),_<0&&(_=255+_+1),this[W]=_&255,W+1},s.prototype.writeInt16LE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,2,32767,-32768),this[W]=_&255,this[W+1]=_>>>8,W+2},s.prototype.writeInt16BE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,2,32767,-32768),this[W]=_>>>8,this[W+1]=_&255,W+2},s.prototype.writeInt32LE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,4,2147483647,-2147483648),this[W]=_&255,this[W+1]=_>>>8,this[W+2]=_>>>16,this[W+3]=_>>>24,W+4},s.prototype.writeInt32BE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[W]=_>>>24,this[W+1]=_>>>16,this[W+2]=_>>>8,this[W+3]=_&255,W+4},s.prototype.writeBigInt64LE=Qe(function(_,W=0){return G(this,_,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Qe(function(_,W=0){return D(this,_,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function U(_,W,ne,ge,Pe,Te){if(ne+ge>_.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function K(_,W,ne,ge,Pe){return W=+W,ne=ne>>>0,Pe||U(_,W,ne,4),a.write(_,W,ne,ge,23,4),ne+4}s.prototype.writeFloatLE=function(_,W,ne){return K(this,_,W,!0,ne)},s.prototype.writeFloatBE=function(_,W,ne){return K(this,_,W,!1,ne)};function X(_,W,ne,ge,Pe){return W=+W,ne=ne>>>0,Pe||U(_,W,ne,8),a.write(_,W,ne,ge,52,8),ne+8}s.prototype.writeDoubleLE=function(_,W,ne){return X(this,_,W,!0,ne)},s.prototype.writeDoubleBE=function(_,W,ne){return X(this,_,W,!1,ne)},s.prototype.copy=function(_,W,ne,ge){if(!s.isBuffer(_))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),!ge&&ge!==0&&(ge=this.length),W>=_.length&&(W=_.length),W||(W=0),ge>0&&ge<ne&&(ge=ne),ge===ne||_.length===0||this.length===0)return 0;if(W<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("Index out of range");if(ge<0)throw new RangeError("sourceEnd out of bounds");ge>this.length&&(ge=this.length),_.length-W<ge-ne&&(ge=_.length-W+ne);const Pe=ge-ne;return this===_&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(W,ne,ge):Uint8Array.prototype.set.call(_,this.subarray(ne,ge),W),Pe},s.prototype.fill=function(_,W,ne,ge){if(typeof _=="string"){if(typeof W=="string"?(ge=W,W=0,ne=this.length):typeof ne=="string"&&(ge=ne,ne=this.length),ge!==void 0&&typeof ge!="string")throw new TypeError("encoding must be a string");if(typeof ge=="string"&&!s.isEncoding(ge))throw new TypeError("Unknown encoding: "+ge);if(_.length===1){const Te=_.charCodeAt(0);(ge==="utf8"&&Te<128||ge==="latin1")&&(_=Te)}}else typeof _=="number"?_=_&255:typeof _=="boolean"&&(_=Number(_));if(W<0||this.length<W||this.length<ne)throw new RangeError("Out of range index");if(ne<=W)return this;W=W>>>0,ne=ne===void 0?this.length:ne>>>0,_||(_=0);let Pe;if(typeof _=="number")for(Pe=W;Pe<ne;++Pe)this[Pe]=_;else{const Te=s.isBuffer(_)?_:s.from(_,ge),Le=Te.length;if(Le===0)throw new TypeError('The value "'+_+'" is invalid for argument "value"');for(Pe=0;Pe<ne-W;++Pe)this[Pe+W]=Te[Pe%Le]}return this};const J={};function he(_,W,ne){J[_]=class extends ne{constructor(){super(),Object.defineProperty(this,"message",{value:W.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${_}]`,delete this.name}get code(){return _}set code(ge){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ge,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}he("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),he("ERR_INVALID_ARG_TYPE",function(_,W){return`The "${_}" argument must be of type number. Received type ${typeof W}`},TypeError),he("ERR_OUT_OF_RANGE",function(_,W,ne){let ge=`The value of "${_}" is out of range.`,Pe=ne;return Number.isInteger(ne)&&Math.abs(ne)>2**32?Pe=Oe(String(ne)):typeof ne=="bigint"&&(Pe=String(ne),(ne>BigInt(2)**BigInt(32)||ne<-(BigInt(2)**BigInt(32)))&&(Pe=Oe(Pe)),Pe+="n"),ge+=` It must be ${W}. Received ${Pe}`,ge},RangeError);function Oe(_){let W="",ne=_.length;const ge=_[0]==="-"?1:0;for(;ne>=ge+4;ne-=3)W=`_${_.slice(ne-3,ne)}${W}`;return`${_.slice(0,ne)}${W}`}function M(_,W,ne){re(W,"offset"),(_[W]===void 0||_[W+ne]===void 0)&&ve(W,_.length-(ne+1))}function L(_,W,ne,ge,Pe,Te){if(_>ne||_<W){const Le=typeof W=="bigint"?"n":"";let rt;throw W===0||W===BigInt(0)?rt=`>= 0${Le} and < 2${Le} ** ${(Te+1)*8}${Le}`:rt=`>= -(2${Le} ** ${(Te+1)*8-1}${Le}) and < 2 ** ${(Te+1)*8-1}${Le}`,new J.ERR_OUT_OF_RANGE("value",rt,_)}M(ge,Pe,Te)}function re(_,W){if(typeof _!="number")throw new J.ERR_INVALID_ARG_TYPE(W,"number",_)}function ve(_,W,ne){throw Math.floor(_)!==_?(re(_,ne),new J.ERR_OUT_OF_RANGE("offset","an integer",_)):W<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${W}`,_)}const we=/[^+/0-9A-Za-z-_]/g;function ke(_){if(_=_.split("=")[0],_=_.trim().replace(we,""),_.length<2)return"";for(;_.length%4!==0;)_=_+"=";return _}function le(_,W){W=W||1/0;let ne;const ge=_.length;let Pe=null;const Te=[];for(let Le=0;Le<ge;++Le){if(ne=_.charCodeAt(Le),ne>55295&&ne<57344){if(!Pe){if(ne>56319){(W-=3)>-1&&Te.push(239,191,189);continue}else if(Le+1===ge){(W-=3)>-1&&Te.push(239,191,189);continue}Pe=ne;continue}if(ne<56320){(W-=3)>-1&&Te.push(239,191,189),Pe=ne;continue}ne=(Pe-55296<<10|ne-56320)+65536}else Pe&&(W-=3)>-1&&Te.push(239,191,189);if(Pe=null,ne<128){if((W-=1)<0)break;Te.push(ne)}else if(ne<2048){if((W-=2)<0)break;Te.push(ne>>6|192,ne&63|128)}else if(ne<65536){if((W-=3)<0)break;Te.push(ne>>12|224,ne>>6&63|128,ne&63|128)}else if(ne<1114112){if((W-=4)<0)break;Te.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,ne&63|128)}else throw new Error("Invalid code point")}return Te}function je(_){const W=[];for(let ne=0;ne<_.length;++ne)W.push(_.charCodeAt(ne)&255);return W}function be(_,W){let ne,ge,Pe;const Te=[];for(let Le=0;Le<_.length&&!((W-=2)<0);++Le)ne=_.charCodeAt(Le),ge=ne>>8,Pe=ne%256,Te.push(Pe),Te.push(ge);return Te}function Re(_){return t.toByteArray(ke(_))}function Ce(_,W,ne,ge){let Pe;for(Pe=0;Pe<ge&&!(Pe+ne>=W.length||Pe>=_.length);++Pe)W[Pe+ne]=_[Pe];return Pe}function Me(_,W){return _ instanceof W||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===W.name}function de(_){return _!==_}const Ae=(function(){const _="0123456789abcdef",W=new Array(256);for(let ne=0;ne<16;++ne){const ge=ne*16;for(let Pe=0;Pe<16;++Pe)W[ge+Pe]=_[ne]+_[Pe]}return W})();function Qe(_){return typeof BigInt>"u"?We:_}function We(){throw new Error("BigInt not supported")}})(pwe)),pwe}const gwe=km(i0e);var z$,vwe;function GKt(){if(vwe)return z$;vwe=1;function e(g,v){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(g);v&&(k=k.filter(function(x){return Object.getOwnPropertyDescriptor(g,x).enumerable})),b.push.apply(b,k)}return b}function t(g){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?e(Object(b),!0).forEach(function(k){a(g,k,b[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):e(Object(b)).forEach(function(k){Object.defineProperty(g,k,Object.getOwnPropertyDescriptor(b,k))})}return g}function a(g,v,b){return v=o(v),v in g?Object.defineProperty(g,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[v]=b,g}function r(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function n(g,v){for(var b=0;b<v.length;b++){var k=v[b];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,o(k.key),k)}}function i(g,v,b){return v&&n(g.prototype,v),Object.defineProperty(g,"prototype",{writable:!1}),g}function o(g){var v=s(g,"string");return typeof v=="symbol"?v:String(v)}function s(g,v){if(typeof g!="object"||g===null)return g;var b=g[Symbol.toPrimitive];if(b!==void 0){var k=b.call(g,v);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}var l=az(),c=l.Buffer,u=gwe,d=u.inspect,h=d&&d.custom||"inspect";function m(g,v,b){c.prototype.copy.call(g,v,b)}return z$=(function(){function g(){r(this,g),this.head=null,this.tail=null,this.length=0}return i(g,[{key:"push",value:function(v){var b={data:v,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(v){var b={data:v,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var b=this.head,k=""+b.data;b=b.next;)k+=v+b.data;return k}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var b=c.allocUnsafe(v>>>0),k=this.head,x=0;k;)m(k.data,b,x),x+=k.data.length,k=k.next;return b}},{key:"consume",value:function(v,b){var k;return v<this.head.data.length?(k=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?k=this.shift():k=b?this._getString(v):this._getBuffer(v),k}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var b=this.head,k=1,x=b.data;for(v-=x.length;b=b.next;){var w=b.data,z=v>w.length?w.length:v;if(z===w.length?x+=w:x+=w.slice(0,v),v-=z,v===0){z===w.length?(++k,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=w.slice(z));break}++k}return this.length-=k,x}},{key:"_getBuffer",value:function(v){var b=c.allocUnsafe(v),k=this.head,x=1;for(k.data.copy(b),v-=k.data.length;k=k.next;){var w=k.data,z=v>w.length?w.length:v;if(w.copy(b,b.length-v,0,z),v-=z,v===0){z===w.length?(++x,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=w.slice(z));break}++x}return this.length-=x,b}},{key:h,value:function(v,b){return d(this,t(t({},b),{},{depth:0,customInspect:!1}))}}]),g})(),z$}var C$,bwe;function ywe(){if(bwe)return C$;bwe=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,o)):process.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(a,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(a,l),s(d)):process.nextTick(a,l)}),this)}function t(o,s){n(o,s),a(o)}function a(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function n(o,s){o.emit("error",s)}function i(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return C$={destroy:e,undestroy:r,errorOrDestroy:i},C$}var j$={},kwe;function G1(){if(kwe)return j$;kwe=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function a(s,l,c){c||(c=Error);function u(h,m,g){return typeof l=="string"?l:l(h,m,g)}var d=(function(h){e(m,h);function m(g,v,b){return h.call(this,u(g,v,b))||this}return m})(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function n(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return a("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&n(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var h=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(r(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),j$.codes=t,j$}var P$,xwe;function wwe(){if(xwe)return P$;xwe=1;var e=G1().codes.ERR_INVALID_OPT_VALUE;function t(r,n,i){return r.highWaterMark!=null?r.highWaterMark:n?r[i]:null}function a(r,n,i,o){var s=t(n,o,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return P$={getHighWaterMark:a},P$}var A$,Swe;function UKt(){if(Swe)return A$;Swe=1,A$=e;function e(a,r){if(t("noDeprecation"))return a;var n=!1;function i(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return a.apply(this,arguments)}return i}function t(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}return A$}var T$,Owe;function zwe(){if(Owe)return T$;Owe=1,T$=T;function e(K){var X=this;this.next=null,this.entry=null,this.finish=function(){U(X,K)}}var t;T.WritableState=C;var a={deprecate:UKt()},r=dwe(),n=az().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(K){return n.from(K)}function s(K){return n.isBuffer(K)||K instanceof i}var l=ywe(),c=wwe(),u=c.getHighWaterMark,d=G1().codes,h=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,k=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,z=l.errorOrDestroy;function S(){}function C(K,X,J){t=t||U1(),K=K||{},typeof J!="boolean"&&(J=X instanceof t),this.objectMode=!!K.objectMode,J&&(this.objectMode=this.objectMode||!!K.writableObjectMode),this.highWaterMark=u(this,K,"writableHighWaterMark",J),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var he=K.decodeStrings===!1;this.decodeStrings=!he,this.defaultEncoding=K.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Oe){ee(X,Oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}C.prototype.getBuffer=function(){for(var K=this.bufferedRequest,X=[];K;)X.push(K),K=K.next;return X},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var j;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(K){return j.call(this,K)?!0:this!==T?!1:K&&K._writableState instanceof C}})):j=function(K){return K instanceof this};function T(K){t=t||U1();var X=this instanceof t;if(!X&&!j.call(T,this))return new T(K);this._writableState=new C(K,this,X),this.writable=!0,K&&(typeof K.write=="function"&&(this._write=K.write),typeof K.writev=="function"&&(this._writev=K.writev),typeof K.destroy=="function"&&(this._destroy=K.destroy),typeof K.final=="function"&&(this._final=K.final)),r.call(this)}T.prototype.pipe=function(){z(this,new v)};function E(K,X){var J=new x;z(K,J),process.nextTick(X,J)}function I(K,X,J,he){var Oe;return J===null?Oe=new k:typeof J!="string"&&!X.objectMode&&(Oe=new h("chunk",["string","Buffer"],J)),Oe?(z(K,Oe),process.nextTick(he,Oe),!1):!0}T.prototype.write=function(K,X,J){var he=this._writableState,Oe=!1,M=!he.objectMode&&s(K);return M&&!n.isBuffer(K)&&(K=o(K)),typeof X=="function"&&(J=X,X=null),M?X="buffer":X||(X=he.defaultEncoding),typeof J!="function"&&(J=S),he.ending?E(this,J):(M||I(this,he,K,J))&&(he.pendingcb++,Oe=$(this,he,M,K,X,J)),Oe},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var K=this._writableState;K.corked&&(K.corked--,!K.writing&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&ce(this,K))},T.prototype.setDefaultEncoding=function(K){if(typeof K=="string"&&(K=K.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((K+"").toLowerCase())>-1))throw new w(K);return this._writableState.defaultEncoding=K,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function N(K,X,J){return!K.objectMode&&K.decodeStrings!==!1&&typeof X=="string"&&(X=n.from(X,J)),X}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function $(K,X,J,he,Oe,M){if(!J){var L=N(X,he,Oe);he!==L&&(J=!0,Oe="buffer",he=L)}var re=X.objectMode?1:he.length;X.length+=re;var ve=X.length<X.highWaterMark;if(ve||(X.needDrain=!0),X.writing||X.corked){var we=X.lastBufferedRequest;X.lastBufferedRequest={chunk:he,encoding:Oe,isBuf:J,callback:M,next:null},we?we.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else H(K,X,!1,re,he,Oe,M);return ve}function H(K,X,J,he,Oe,M,L){X.writelen=he,X.writecb=L,X.writing=!0,X.sync=!0,X.destroyed?X.onwrite(new b("write")):J?K._writev(Oe,X.onwrite):K._write(Oe,M,X.onwrite),X.sync=!1}function Z(K,X,J,he,Oe){--X.pendingcb,J?(process.nextTick(Oe,he),process.nextTick(G,K,X),K._writableState.errorEmitted=!0,z(K,he)):(Oe(he),K._writableState.errorEmitted=!0,z(K,he),G(K,X))}function te(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}function ee(K,X){var J=K._writableState,he=J.sync,Oe=J.writecb;if(typeof Oe!="function")throw new g;if(te(J),X)Z(K,J,he,X,Oe);else{var M=Q(J)||K.destroyed;!M&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest&&ce(K,J),he?process.nextTick(oe,K,J,M,Oe):oe(K,J,M,Oe)}}function oe(K,X,J,he){J||ae(K,X),X.pendingcb--,he(),G(K,X)}function ae(K,X){X.length===0&&X.needDrain&&(X.needDrain=!1,K.emit("drain"))}function ce(K,X){X.bufferProcessing=!0;var J=X.bufferedRequest;if(K._writev&&J&&J.next){var he=X.bufferedRequestCount,Oe=new Array(he),M=X.corkedRequestsFree;M.entry=J;for(var L=0,re=!0;J;)Oe[L]=J,J.isBuf||(re=!1),J=J.next,L+=1;Oe.allBuffers=re,H(K,X,!0,X.length,Oe,"",M.finish),X.pendingcb++,X.lastBufferedRequest=null,M.next?(X.corkedRequestsFree=M.next,M.next=null):X.corkedRequestsFree=new e(X),X.bufferedRequestCount=0}else{for(;J;){var ve=J.chunk,we=J.encoding,ke=J.callback,le=X.objectMode?1:ve.length;if(H(K,X,!1,le,ve,we,ke),J=J.next,X.bufferedRequestCount--,X.writing)break}J===null&&(X.lastBufferedRequest=null)}X.bufferedRequest=J,X.bufferProcessing=!1}T.prototype._write=function(K,X,J){J(new m("_write()"))},T.prototype._writev=null,T.prototype.end=function(K,X,J){var he=this._writableState;return typeof K=="function"?(J=K,K=null,X=null):typeof X=="function"&&(J=X,X=null),K!=null&&this.write(K,X),he.corked&&(he.corked=1,this.uncork()),he.ending||D(this,he,J),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Q(K){return K.ending&&K.length===0&&K.bufferedRequest===null&&!K.finished&&!K.writing}function V(K,X){K._final(function(J){X.pendingcb--,J&&z(K,J),X.prefinished=!0,K.emit("prefinish"),G(K,X)})}function Y(K,X){!X.prefinished&&!X.finalCalled&&(typeof K._final=="function"&&!X.destroyed?(X.pendingcb++,X.finalCalled=!0,process.nextTick(V,K,X)):(X.prefinished=!0,K.emit("prefinish")))}function G(K,X){var J=Q(X);if(J&&(Y(K,X),X.pendingcb===0&&(X.finished=!0,K.emit("finish"),X.autoDestroy))){var he=K._readableState;(!he||he.autoDestroy&&he.endEmitted)&&K.destroy()}return J}function D(K,X,J){X.ending=!0,G(K,X),J&&(X.finished?process.nextTick(J):K.once("finish",J)),X.ended=!0,K.writable=!1}function U(K,X,J){var he=K.entry;for(K.entry=null;he;){var Oe=he.callback;X.pendingcb--,Oe(J),he=he.next}X.corkedRequestsFree.next=K}return Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(K){this._writableState&&(this._writableState.destroyed=K)}}),T.prototype.destroy=l.destroy,T.prototype._undestroy=l.undestroy,T.prototype._destroy=function(K,X){X(K)},T$}var _$,Cwe;function U1(){if(Cwe)return _$;Cwe=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};_$=o;for(var t=Nwe(),a=zwe(),r=e(a.prototype),n=0;n<r.length;n++){var i=r[n];o.prototype[i]||(o.prototype[i]=a.prototype[i])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),a.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),_$}var M$={},E$={exports:{}},jwe;function QKt(){return jwe||(jwe=1,(function(e,t){var a=az(),r=a.Buffer;function n(o,s){for(var l in o)s[l]=o[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i);function i(o,s,l){return r(o,s,l)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(o)}})(E$,E$.exports)),E$.exports}var Pwe;function Awe(){if(Pwe)return M$;Pwe=1;var e=QKt().Buffer,t=e.isEncoding||function(k){switch(k=""+k,k&&k.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(k){if(!k)return"utf8";for(var x;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(x)return;k=(""+k).toLowerCase(),x=!0}}function r(k){var x=a(k);if(typeof x!="string"&&(e.isEncoding===t||!t(k)))throw new Error("Unknown encoding: "+k);return x||k}M$.StringDecoder=n;function n(k){this.encoding=r(k);var x;switch(this.encoding){case"utf16le":this.text=d,this.end=h,x=4;break;case"utf8":this.fillLast=l,x=4;break;case"base64":this.text=m,this.end=g,x=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(x)}n.prototype.write=function(k){if(k.length===0)return"";var x,w;if(this.lastNeed){if(x=this.fillLast(k),x===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<k.length?x?x+this.text(k,w):this.text(k,w):x||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function i(k){return k<=127?0:k>>5===6?2:k>>4===14?3:k>>3===30?4:k>>6===2?-1:-2}function o(k,x,w){var z=x.length-1;if(z<w)return 0;var S=i(x[z]);return S>=0?(S>0&&(k.lastNeed=S-1),S):--z<w||S===-2?0:(S=i(x[z]),S>=0?(S>0&&(k.lastNeed=S-2),S):--z<w||S===-2?0:(S=i(x[z]),S>=0?(S>0&&(S===2?S=0:k.lastNeed=S-3),S):0))}function s(k,x,w){if((x[0]&192)!==128)return k.lastNeed=0,"\uFFFD";if(k.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return k.lastNeed=1,"\uFFFD";if(k.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return k.lastNeed=2,"\uFFFD"}}function l(k){var x=this.lastTotal-this.lastNeed,w=s(this,k);if(w!==void 0)return w;if(this.lastNeed<=k.length)return k.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,x,0,k.length),this.lastNeed-=k.length}function c(k,x){var w=o(this,k,x);if(!this.lastNeed)return k.toString("utf8",x);this.lastTotal=w;var z=k.length-(w-this.lastNeed);return k.copy(this.lastChar,0,z),k.toString("utf8",x,z)}function u(k){var x=k&&k.length?this.write(k):"";return this.lastNeed?x+"\uFFFD":x}function d(k,x){if((k.length-x)%2===0){var w=k.toString("utf16le",x);if(w){var z=w.charCodeAt(w.length-1);if(z>=55296&&z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",x,k.length-1)}function h(k){var x=k&&k.length?this.write(k):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,w)}return x}function m(k,x){var w=(k.length-x)%3;return w===0?k.toString("base64",x):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=k[k.length-1]:(this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1]),k.toString("base64",x,k.length-w))}function g(k){var x=k&&k.length?this.write(k):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(k){return k.toString(this.encoding)}function b(k){return k&&k.length?this.write(k):""}return M$}var R$,Twe;function N$(){if(Twe)return R$;Twe=1;var e=G1().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function a(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function n(i,o,s){if(typeof o=="function")return n(i,null,o);o||(o={}),s=t(s||a);var l=o.readable||o.readable!==!1&&i.readable,c=o.writable||o.writable!==!1&&i.writable,u=function(){i.writable||h()},d=i._writableState&&i._writableState.finished,h=function(){c=!1,d=!0,l||s.call(i)},m=i._readableState&&i._readableState.endEmitted,g=function(){l=!1,m=!0,c||s.call(i)},v=function(x){s.call(i,x)},b=function(){var x;if(l&&!m)return(!i._readableState||!i._readableState.ended)&&(x=new e),s.call(i,x);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(x=new e),s.call(i,x)},k=function(){i.req.on("finish",h)};return r(i)?(i.on("complete",h),i.on("abort",b),i.req?k():i.on("request",k)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",g),i.on("finish",h),o.error!==!1&&i.on("error",v),i.on("close",b),function(){i.removeListener("complete",h),i.removeListener("abort",b),i.removeListener("request",k),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",g),i.removeListener("error",v),i.removeListener("close",b)}}return R$=n,R$}var I$,_we;function WKt(){if(_we)return I$;_we=1;var e;function t(w,z,S){return z=a(z),z in w?Object.defineProperty(w,z,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[z]=S,w}function a(w){var z=r(w,"string");return typeof z=="symbol"?z:String(z)}function r(w,z){if(typeof w!="object"||w===null)return w;var S=w[Symbol.toPrimitive];if(S!==void 0){var C=S.call(w,z);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(w)}var n=N$(),i=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(w,z){return{value:w,done:z}}function m(w){var z=w[i];if(z!==null){var S=w[d].read();S!==null&&(w[c]=null,w[i]=null,w[o]=null,z(h(S,!1)))}}function g(w){process.nextTick(m,w)}function v(w,z){return function(S,C){w.then(function(){if(z[l]){S(h(void 0,!0));return}z[u](S,C)},C)}}var b=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var w=this,z=this[s];if(z!==null)return Promise.reject(z);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(T,E){process.nextTick(function(){w[s]?E(w[s]):T(h(void 0,!0))})});var S=this[c],C;if(S)C=new Promise(v(S,this));else{var j=this[d].read();if(j!==null)return Promise.resolve(h(j,!1));C=new Promise(this[u])}return this[c]=C,C}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var w=this;return new Promise(function(z,S){w[d].destroy(null,function(C){if(C){S(C);return}z(h(void 0,!0))})})}),e),b),x=function(w){var z,S=Object.create(k,(z={},t(z,d,{value:w,writable:!0}),t(z,i,{value:null,writable:!0}),t(z,o,{value:null,writable:!0}),t(z,s,{value:null,writable:!0}),t(z,l,{value:w._readableState.endEmitted,writable:!0}),t(z,u,{value:function(C,j){var T=S[d].read();T?(S[c]=null,S[i]=null,S[o]=null,C(h(T,!1))):(S[i]=C,S[o]=j)},writable:!0}),z));return S[c]=null,n(w,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=S[o];j!==null&&(S[c]=null,S[i]=null,S[o]=null,j(C)),S[s]=C;return}var T=S[i];T!==null&&(S[c]=null,S[i]=null,S[o]=null,T(h(void 0,!0))),S[l]=!0}),w.on("readable",g.bind(null,S)),S};return I$=x,I$}var Mwe,Ewe;function ZKt(){return Ewe||(Ewe=1,Mwe=function(){throw new Error("Readable.from is not available in the browser")}),Mwe}var L$,Rwe;function Nwe(){if(Rwe)return L$;Rwe=1,L$=E;var e;E.ReadableState=T;var t=function(M,L){return M.listeners(L).length},a=dwe(),r=az().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(M){return r.from(M)}function o(M){return r.isBuffer(M)||M instanceof n}var s=gwe,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=GKt(),u=ywe(),d=wwe(),h=d.getHighWaterMark,m=G1().codes,g=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,b=m.ERR_METHOD_NOT_IMPLEMENTED,k=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,w,z,S=u.errorOrDestroy,C=["error","close","destroy","pause","resume"];function j(M,L,re){if(typeof M.prependListener=="function")return M.prependListener(L,re);!M._events||!M._events[L]?M.on(L,re):Array.isArray(M._events[L])?M._events[L].unshift(re):M._events[L]=[re,M._events[L]]}function T(M,L,re){e=e||U1(),M=M||{},typeof re!="boolean"&&(re=L instanceof e),this.objectMode=!!M.objectMode,re&&(this.objectMode=this.objectMode||!!M.readableObjectMode),this.highWaterMark=h(this,M,"readableHighWaterMark",re),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.destroyed=!1,this.defaultEncoding=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(x||(x=Awe().StringDecoder),this.decoder=new x(M.encoding),this.encoding=M.encoding)}function E(M){if(e=e||U1(),!(this instanceof E))return new E(M);var L=this instanceof e;this._readableState=new T(M,this,L),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),a.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),E.prototype.destroy=u.destroy,E.prototype._undestroy=u.undestroy,E.prototype._destroy=function(M,L){L(M)},E.prototype.push=function(M,L){var re=this._readableState,ve;return re.objectMode?ve=!0:typeof M=="string"&&(L=L||re.defaultEncoding,L!==re.encoding&&(M=r.from(M,L),L=""),ve=!0),I(this,M,L,!1,ve)},E.prototype.unshift=function(M){return I(this,M,null,!0,!1)};function I(M,L,re,ve,we){l("readableAddChunk",L);var ke=M._readableState;if(L===null)ke.reading=!1,ee(M,ke);else{var le;if(we||(le=$(ke,L)),le)S(M,le);else if(ke.objectMode||L&&L.length>0)if(typeof L!="string"&&!ke.objectMode&&Object.getPrototypeOf(L)!==r.prototype&&(L=i(L)),ve)ke.endEmitted?S(M,new k):N(M,ke,L,!0);else if(ke.ended)S(M,new v);else{if(ke.destroyed)return!1;ke.reading=!1,ke.decoder&&!re?(L=ke.decoder.write(L),ke.objectMode||L.length!==0?N(M,ke,L,!1):ce(M,ke)):N(M,ke,L,!1)}else ve||(ke.reading=!1,ce(M,ke))}return!ke.ended&&(ke.length<ke.highWaterMark||ke.length===0)}function N(M,L,re,ve){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,M.emit("data",re)):(L.length+=L.objectMode?1:re.length,ve?L.buffer.unshift(re):L.buffer.push(re),L.needReadable&&oe(M)),ce(M,L)}function $(M,L){var re;return!o(L)&&typeof L!="string"&&L!==void 0&&!M.objectMode&&(re=new g("chunk",["string","Buffer","Uint8Array"],L)),re}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(M){x||(x=Awe().StringDecoder);var L=new x(M);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var re=this._readableState.buffer.head,ve="";re!==null;)ve+=L.write(re.data),re=re.next;return this._readableState.buffer.clear(),ve!==""&&this._readableState.buffer.push(ve),this._readableState.length=ve.length,this};var H=1073741824;function Z(M){return M>=H?M=H:(M--,M|=M>>>1,M|=M>>>2,M|=M>>>4,M|=M>>>8,M|=M>>>16,M++),M}function te(M,L){return M<=0||L.length===0&&L.ended?0:L.objectMode?1:M!==M?L.flowing&&L.length?L.buffer.head.data.length:L.length:(M>L.highWaterMark&&(L.highWaterMark=Z(M)),M<=L.length?M:L.ended?L.length:(L.needReadable=!0,0))}E.prototype.read=function(M){l("read",M),M=parseInt(M,10);var L=this._readableState,re=M;if(M!==0&&(L.emittedReadable=!1),M===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return l("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?J(this):oe(this),null;if(M=te(M,L),M===0&&L.ended)return L.length===0&&J(this),null;var ve=L.needReadable;l("need readable",ve),(L.length===0||L.length-M<L.highWaterMark)&&(ve=!0,l("length less than watermark",ve)),L.ended||L.reading?(ve=!1,l("reading or ended",ve)):ve&&(l("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(M=te(re,L)));var we;return M>0?we=X(M,L):we=null,we===null?(L.needReadable=L.length<=L.highWaterMark,M=0):(L.length-=M,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),re!==M&&L.ended&&J(this)),we!==null&&this.emit("data",we),we};function ee(M,L){if(l("onEofChunk"),!L.ended){if(L.decoder){var re=L.decoder.end();re&&re.length&&(L.buffer.push(re),L.length+=L.objectMode?1:re.length)}L.ended=!0,L.sync?oe(M):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,ae(M)))}}function oe(M){var L=M._readableState;l("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(l("emitReadable",L.flowing),L.emittedReadable=!0,process.nextTick(ae,M))}function ae(M){var L=M._readableState;l("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(M.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,K(M)}function ce(M,L){L.readingMore||(L.readingMore=!0,process.nextTick(Q,M,L))}function Q(M,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var re=L.length;if(l("maybeReadMore read 0"),M.read(0),re===L.length)break}L.readingMore=!1}E.prototype._read=function(M){S(this,new b("_read()"))},E.prototype.pipe=function(M,L){var re=this,ve=this._readableState;switch(ve.pipesCount){case 0:ve.pipes=M;break;case 1:ve.pipes=[ve.pipes,M];break;default:ve.pipes.push(M);break}ve.pipesCount+=1,l("pipe count=%d opts=%j",ve.pipesCount,L);var we=(!L||L.end!==!1)&&M!==null&&M!==process.stderr,ke=we?je:We;ve.endEmitted?process.nextTick(ke):re.once("end",ke),M.on("unpipe",le);function le(_,W){l("onunpipe"),_===re&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,Ce())}function je(){l("onend"),M.end()}var be=V(re);M.on("drain",be);var Re=!1;function Ce(){l("cleanup"),M.removeListener("close",Ae),M.removeListener("finish",Qe),M.removeListener("drain",be),M.removeListener("error",de),M.removeListener("unpipe",le),re.removeListener("end",je),re.removeListener("end",We),re.removeListener("data",Me),Re=!0,ve.awaitDrain&&(!M._writableState||M._writableState.needDrain)&&be()}re.on("data",Me);function Me(_){l("ondata");var W=M.write(_);l("dest.write",W),W===!1&&((ve.pipesCount===1&&ve.pipes===M||ve.pipesCount>1&&Oe(ve.pipes,M)!==-1)&&!Re&&(l("false write response, pause",ve.awaitDrain),ve.awaitDrain++),re.pause())}function de(_){l("onerror",_),We(),M.removeListener("error",de),t(M,"error")===0&&S(M,_)}j(M,"error",de);function Ae(){M.removeListener("finish",Qe),We()}M.once("close",Ae);function Qe(){l("onfinish"),M.removeListener("close",Ae),We()}M.once("finish",Qe);function We(){l("unpipe"),re.unpipe(M)}return M.emit("pipe",re),ve.flowing||(l("pipe resume"),re.resume()),M};function V(M){return function(){var L=M._readableState;l("pipeOnDrain",L.awaitDrain),L.awaitDrain&&L.awaitDrain--,L.awaitDrain===0&&t(M,"data")&&(L.flowing=!0,K(M))}}E.prototype.unpipe=function(M){var L=this._readableState,re={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return M&&M!==L.pipes?this:(M||(M=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,M&&M.emit("unpipe",this,re),this);if(!M){var ve=L.pipes,we=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var ke=0;ke<we;ke++)ve[ke].emit("unpipe",this,{hasUnpiped:!1});return this}var le=Oe(L.pipes,M);return le===-1?this:(L.pipes.splice(le,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),M.emit("unpipe",this,re),this)},E.prototype.on=function(M,L){var re=a.prototype.on.call(this,M,L),ve=this._readableState;return M==="data"?(ve.readableListening=this.listenerCount("readable")>0,ve.flowing!==!1&&this.resume()):M==="readable"&&!ve.endEmitted&&!ve.readableListening&&(ve.readableListening=ve.needReadable=!0,ve.flowing=!1,ve.emittedReadable=!1,l("on readable",ve.length,ve.reading),ve.length?oe(this):ve.reading||process.nextTick(G,this)),re},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(M,L){var re=a.prototype.removeListener.call(this,M,L);return M==="readable"&&process.nextTick(Y,this),re},E.prototype.removeAllListeners=function(M){var L=a.prototype.removeAllListeners.apply(this,arguments);return(M==="readable"||M===void 0)&&process.nextTick(Y,this),L};function Y(M){var L=M._readableState;L.readableListening=M.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:M.listenerCount("data")>0&&M.resume()}function G(M){l("readable nexttick read 0"),M.read(0)}E.prototype.resume=function(){var M=this._readableState;return M.flowing||(l("resume"),M.flowing=!M.readableListening,D(this,M)),M.paused=!1,this};function D(M,L){L.resumeScheduled||(L.resumeScheduled=!0,process.nextTick(U,M,L))}function U(M,L){l("resume",L.reading),L.reading||M.read(0),L.resumeScheduled=!1,M.emit("resume"),K(M),L.flowing&&!L.reading&&M.read(0)}E.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function K(M){var L=M._readableState;for(l("flow",L.flowing);L.flowing&&M.read()!==null;);}E.prototype.wrap=function(M){var L=this,re=this._readableState,ve=!1;M.on("end",function(){if(l("wrapped end"),re.decoder&&!re.ended){var le=re.decoder.end();le&&le.length&&L.push(le)}L.push(null)}),M.on("data",function(le){if(l("wrapped data"),re.decoder&&(le=re.decoder.write(le)),!(re.objectMode&&le==null)&&!(!re.objectMode&&(!le||!le.length))){var je=L.push(le);je||(ve=!0,M.pause())}});for(var we in M)this[we]===void 0&&typeof M[we]=="function"&&(this[we]=(function(le){return function(){return M[le].apply(M,arguments)}})(we));for(var ke=0;ke<C.length;ke++)M.on(C[ke],this.emit.bind(this,C[ke]));return this._read=function(le){l("wrapped _read",le),ve&&(ve=!1,M.resume())},this},typeof Symbol=="function"&&(E.prototype[Symbol.asyncIterator]=function(){return w===void 0&&(w=WKt()),w(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(M){this._readableState&&(this._readableState.flowing=M)}}),E._fromList=X,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function X(M,L){if(L.length===0)return null;var re;return L.objectMode?re=L.buffer.shift():!M||M>=L.length?(L.decoder?re=L.buffer.join(""):L.buffer.length===1?re=L.buffer.first():re=L.buffer.concat(L.length),L.buffer.clear()):re=L.buffer.consume(M,L.decoder),re}function J(M){var L=M._readableState;l("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,process.nextTick(he,L,M))}function he(M,L){if(l("endReadableNT",M.endEmitted,M.length),!M.endEmitted&&M.length===0&&(M.endEmitted=!0,L.readable=!1,L.emit("end"),M.autoDestroy)){var re=L._writableState;(!re||re.autoDestroy&&re.finished)&&L.destroy()}}typeof Symbol=="function"&&(E.from=function(M,L){return z===void 0&&(z=ZKt()),z(E,M,L)});function Oe(M,L){for(var re=0,ve=M.length;re<ve;re++)if(M[re]===L)return re;return-1}return L$}var B$,Iwe;function Lwe(){if(Iwe)return B$;Iwe=1,B$=s;var e=G1().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,a=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,i=U1();function o(u,d){var h=this._transformState;h.transforming=!1;var m=h.writecb;if(m===null)return this.emit("error",new a);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),m(u);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,h){c(u,d,h)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,h){h(new t("_transform()"))},s.prototype._write=function(u,d,h){var m=this._transformState;if(m.writecb=h,m.writechunk=u,m.writeencoding=d,!m.transforming){var g=this._readableState;(m.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(h){d(h)})};function c(u,d,h){if(d)return u.emit("error",d);if(h!=null&&u.push(h),u._writableState.length)throw new n;if(u._transformState.transforming)throw new r;return u.push(null)}return B$}var D$,Bwe;function JKt(){if(Bwe)return D$;Bwe=1,D$=t;var e=Lwe();function t(a){if(!(this instanceof t))return new t(a);e.call(this,a)}return t.prototype._transform=function(a,r,n){n(null,a)},D$}var $$,Dwe;function YKt(){if(Dwe)return $$;Dwe=1;var e;function t(h){var m=!1;return function(){m||(m=!0,h.apply(void 0,arguments))}}var a=G1().codes,r=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function o(h){return h.setHeader&&typeof h.abort=="function"}function s(h,m,g,v){v=t(v);var b=!1;h.on("close",function(){b=!0}),e===void 0&&(e=N$()),e(h,{readable:m,writable:g},function(x){if(x)return v(x);b=!0,v()});var k=!1;return function(x){if(!b&&!k){if(k=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();v(x||new n("pipe"))}}}function l(h){h()}function c(h,m){return h.pipe(m)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];var v=u(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var b,k=m.map(function(x,w){var z=w<m.length-1,S=w>0;return s(x,z,S,function(C){b||(b=C),C&&k.forEach(l),!z&&(k.forEach(l),v(b))})});return m.reduce(c)}return $$=d,$$}var $we;function Kwe(){return $we||($we=1,(function(e,t){t=e.exports=Nwe(),t.Stream=t,t.Readable=t,t.Writable=zwe(),t.Duplex=U1(),t.Transform=Lwe(),t.PassThrough=JKt(),t.finished=N$(),t.pipeline=YKt()})(S$,S$.exports)),S$.exports}var Hwe;function Vwe(){if(Hwe)return tM;Hwe=1;var e=swe(),t=hB(),a=Kwe(),r=tM.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=tM.IncomingMessage=function(i,o,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let v=function(){d.read().then(function(b){if(!c._destroyed){if(l(b.done),b.done){c.push(null);return}c.push(Buffer.from(b.value)),v()}}).catch(function(b){l(!0),c._destroyed||c.emit("error",b)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(b,k){c.headers[k.toLowerCase()]=b,c.rawHeaders.push(k,b)}),e.writableStream){var u=new WritableStream({write:function(b){return l(!1),new Promise(function(k,x){c._destroyed?x():c.push(Buffer.from(b))?k():c._resumeFetch=k})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(b){l(!0),c._destroyed||c.emit("error",b)}});try{o.body.pipeTo(u).catch(function(b){l(!0),c._destroyed||c.emit("error",b)});return}catch{}}var d=o.body.getReader();v()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var h=i.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(v){var b=v.match(/^([^:]+):\s*(.*)/);if(b){var k=b[1].toLowerCase();k==="set-cookie"?(c.headers[k]===void 0&&(c.headers[k]=[]),c.headers[k].push(b[2])):c.headers[k]!==void 0?c.headers[k]+=", "+b[2]:c.headers[k]=b[2],c.rawHeaders.push(b[1],b[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var m=c.rawHeaders["mime-type"];if(m){var g=m.match(/;\s*charset=([^;])(;|$)/);g&&(c._charset=g[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(n,a.Readable),n.prototype._read=function(){var i=this,o=i._resumeFetch;o&&(i._resumeFetch=null,o())},n.prototype._onXHRProgress=function(i){var o=this,s=o._xhr,l=null;switch(o._mode){case"text":if(l=s.responseText,l.length>o._pos){var c=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;o.push(u)}else o.push(c,o._charset);o._pos=l.length}break;case"arraybuffer":if(s.readyState!==r.DONE||!s.response)break;l=s.response,o.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==r.LOADING||!l)break;o.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==r.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>o._pos&&(o.push(Buffer.from(new Uint8Array(h.result.slice(o._pos)))),o._pos=h.result.byteLength)},h.onload=function(){i(!0),o.push(null)},h.readAsArrayBuffer(l);break}o._xhr.readyState===r.DONE&&o._mode!=="ms-stream"&&(i(!0),o.push(null))},tM}var Fwe;function XKt(){if(Fwe)return w$.exports;Fwe=1;var e=swe(),t=hB(),a=Vwe(),r=Kwe(),n=a.IncomingMessage,i=a.readyStates;function o(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=w$.exports=function(u){var d=this;r.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(g){d.setHeader(g,u.headers[g])});var h,m=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)m=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");d._mode=o(h,m),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,r.Writable),s.prototype.setHeader=function(u,d){var h=this,m=u.toLowerCase();c.indexOf(m)===-1&&(h._headers[m]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var h=u._headers,m=null;d.method!=="GET"&&d.method!=="HEAD"&&(m=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var g=[];if(Object.keys(h).forEach(function(x){var w=h[x].name,z=h[x].value;Array.isArray(z)?z.forEach(function(S){g.push([w,S])}):g.push([w,z])}),u._mode==="fetch"){var v=null;if(e.abortController){var b=new AbortController;v=b.signal,u._fetchAbortController=b,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:g,body:m||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:v}).then(function(x){u._fetchResponse=x,u._resetTimers(!1),u._connect()},function(x){u._resetTimers(!0),u._destroyed||u.emit("error",x)})}else{var k=u._xhr=new globalThis.XMLHttpRequest;try{k.open(u._opts.method,u._opts.url,!0)}catch(x){process.nextTick(function(){u.emit("error",x)});return}"responseType"in k&&(k.responseType=u._mode),"withCredentials"in k&&(k.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in k&&k.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(k.timeout=d.requestTimeout,k.ontimeout=function(){u.emit("requestTimeout")}),g.forEach(function(x){k.setRequestHeader(x[0],x[1])}),u._response=null,k.onreadystatechange=function(){switch(k.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(k.onprogress=function(){u._onXHRProgress()}),k.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{k.send(m)}catch(x){process.nextTick(function(){u.emit("error",x)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new n(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,h){var m=this;m._body.push(u),h()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,h){var m=this;typeof u=="function"&&(h=u,u=void 0),r.Writable.prototype.end.call(m,u,d,h)},s.prototype.setTimeout=function(u,d){var h=this;d&&h.once("timeout",d),h._socketTimeout=u,h._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return w$.exports}var K$,qwe;function eHt(){if(qwe)return K$;qwe=1,K$=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return K$}var Gwe,Uwe;function tHt(){return Uwe||(Uwe=1,Gwe={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),Gwe}var Qwe;function aHt(){return Qwe||(Qwe=1,(function(e){var t=XKt(),a=Vwe(),r=eHt(),n=tHt(),i=l$(),o=e;o.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,m=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+m,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var g=new t(s);return l&&g.on("response",l),g},o.get=function(s,l){var c=o.request(s,l);return c.end(),c},o.ClientRequest=t,o.IncomingMessage=a.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(nwe)),nwe}var Wwe,Zwe;function rHt(){return Zwe||(Zwe=1,Wwe={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},aHt().STATUS_CODES)}),Wwe}const nHt="7.0.8",iHt={version:nHt};var H$,Jwe;function oHt(){if(Jwe)return H$;Jwe=1;const e=q1,t=l$(),a=BKt(),r=q1,n=q1,i=X_(),o=i.jptr,s=h$().isRef,l=eM().clone,c=eM().circularClone,u=g$().recurse,d=KKt(),h=HKt(),m=twe(),g=rHt().statusCodes,v=iHt.version,b="3.0.0";let k;class x extends Error{constructor(L){super(L),this.name="S2OError"}}function w(M,L){let re=new x(M);if(re.options=L,L.promise)L.promise.reject(re);else throw re}function z(M,L,re){re.warnOnly?L[re.warnProperty||"x-s2o-warning"]=M:w(M,re)}function S(M,L,re){if(M.nullable&&re.patches++,M.discriminator&&typeof M.discriminator=="string"&&(M.discriminator={propertyName:M.discriminator}),M.items&&Array.isArray(M.items)&&(M.items.length===0?M.items={}:M.items.length===1?M.items=M.items[0]:M.items={anyOf:M.items}),M.type&&Array.isArray(M.type))if(re.patch){if(re.patches++,M.type.length===0)delete M.type;else{M.oneOf||(M.oneOf=[]);for(let ve of M.type){let we={};if(ve==="null")M.nullable=!0;else{we.type=ve;for(let ke of m.arrayProperties)typeof M.prop<"u"&&(we[ke]=M[ke],delete M[ke])}we.type&&M.oneOf.push(we)}delete M.type,M.oneOf.length===0?delete M.oneOf:M.oneOf.length<2&&(M.type=M.oneOf[0].type,Object.keys(M.oneOf[0]).length>1&&z("Lost properties from oneOf",M,re),delete M.oneOf)}M.type&&Array.isArray(M.type)&&M.type.length===1&&(M.type=M.type[0])}else w("(Patchable) schema type must not be an array",re);M.type&&M.type==="null"&&(delete M.type,M.nullable=!0),M.type==="array"&&!M.items&&(M.items={}),M.type==="file"&&(M.type="string",M.format="binary"),typeof M.required=="boolean"&&(M.required&&M.name&&(typeof L.required>"u"&&(L.required=[]),Array.isArray(L.required)&&L.required.push(M.name)),delete M.required),M.xml&&typeof M.xml.namespace=="string"&&(M.xml.namespace||delete M.xml.namespace),typeof M.allowEmptyValue<"u"&&(re.patches++,delete M.allowEmptyValue)}function C(M,L){if(M["x-required"]&&Array.isArray(M["x-required"])&&(M.required||(M.required=[]),M.required=M.required.concat(M["x-required"]),delete M["x-required"]),M["x-anyOf"]&&(M.anyOf=M["x-anyOf"],delete M["x-anyOf"]),M["x-oneOf"]&&(M.oneOf=M["x-oneOf"],delete M["x-oneOf"]),M["x-not"]&&(M.not=M["x-not"],delete M["x-not"]),typeof M["x-nullable"]=="boolean"&&(M.nullable=M["x-nullable"],delete M["x-nullable"]),typeof M["x-discriminator"]=="object"&&typeof M["x-discriminator"].propertyName=="string"){M.discriminator=M["x-discriminator"],delete M["x-discriminator"];for(let re in M.discriminator.mapping){let ve=M.discriminator.mapping[re];ve.startsWith("#/definitions/")&&(M.discriminator.mapping[re]=ve.replace("#/definitions/","#/components/schemas/"))}}}function j(M,L){h.walkSchema(M,{},{},function(re,ve,we){C(re),S(re,ve,L)})}function T(M){return M.indexOf("#")>=0?M=M.split("#")[1].split("/").pop():M=M.split("/").pop().split(".")[0],encodeURIComponent(m.sanitise(M))}function E(M,L,re){let ve=re.payload.options;if(s(M,L)){if(!M[L].startsWith("#/components/")){if(M[L]==="#/consumes")delete M[L],re.parent[re.pkey]=l(ve.openapi.consumes);else if(M[L]==="#/produces")delete M[L],re.parent[re.pkey]=l(ve.openapi.produces);else if(M[L].startsWith("#/definitions/")){let we=M[L].replace("#/definitions/","").split("/");const ke=i.jpunescape(we[0]);let le=k.schemas[decodeURIComponent(ke)];le?we[0]=le:z("Could not resolve reference "+M[L],M,ve),M[L]="#/components/schemas/"+we.join("/")}else if(M[L].startsWith("#/parameters/"))M[L]="#/components/parameters/"+m.sanitise(M[L].replace("#/parameters/",""));else if(M[L].startsWith("#/responses/"))M[L]="#/components/responses/"+m.sanitise(M[L].replace("#/responses/",""));else if(M[L].startsWith("#")){let we=l(i.jptr(ve.openapi,M[L]));if(we===!1)z("direct $ref not found "+M[L],M,ve);else if(ve.refmap[M[L]])M[L]=ve.refmap[M[L]];else{let ke=M[L];ke=ke.replace("/properties/headers/",""),ke=ke.replace("/properties/responses/",""),ke=ke.replace("/properties/parameters/",""),ke=ke.replace("/properties/schemas/","");let le="schemas",je=ke.lastIndexOf("/schema");if(le=ke.indexOf("/headers/")>je?"headers":ke.indexOf("/responses/")>je?"responses":ke.indexOf("/example")>je?"examples":ke.indexOf("/x-")>je?"extensions":ke.indexOf("/parameters/")>je?"parameters":"schemas",le==="schemas"&&j(we,ve),le!=="responses"&&le!=="extensions"){let be=le.substr(0,le.length-1);be==="parameter"&&we.name&&we.name===m.sanitise(we.name)&&(be=encodeURIComponent(we.name));let Re=1;for(M["x-miro"]&&(be=T(M["x-miro"]),Re="");i.jptr(ve.openapi,"#/components/"+le+"/"+be+Re);)Re=Re===""?2:++Re;let Ce="#/components/"+le+"/"+be+Re,Me="";le==="examples"&&(we={value:we},Me="/value"),i.jptr(ve.openapi,Ce,we),ve.refmap[M[L]]=Ce+Me,M[L]=Ce+Me}}}}if(delete M["x-miro"],Object.keys(M).length>1){const we=M[L],ke=re.path.indexOf("/schema")>=0;ve.refSiblings==="preserve"||(ke&&ve.refSiblings==="allOf"?(delete M.$ref,re.parent[re.pkey]={allOf:[{$ref:we},M]}):re.parent[re.pkey]={$ref:we})}}if(L==="x-ms-odata"&&typeof M[L]=="string"&&M[L].startsWith("#/")){let we=M[L].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ke=k.schemas[decodeURIComponent(we[0])];ke?we[0]=ke:z("Could not resolve reference "+M[L],M,ve),M[L]="#/components/schemas/"+we.join("/")}}function I(M,L){for(let re in L.refmap)i.jptr(M,re,{$ref:L.refmap[re]})}function N(M){for(let L in M)for(let re in M[L]){let ve=m.sanitise(re);re!==ve&&(M[L][ve]=M[L][re],delete M[L][re])}}function $(M,L){if(M.type==="basic"&&(M.type="http",M.scheme="basic"),M.type==="oauth2"){let re={},ve=M.flow;M.flow==="application"&&(ve="clientCredentials"),M.flow==="accessCode"&&(ve="authorizationCode"),typeof M.authorizationUrl<"u"&&(re.authorizationUrl=M.authorizationUrl.split("?")[0].trim()||"/"),typeof M.tokenUrl=="string"&&(re.tokenUrl=M.tokenUrl.split("?")[0].trim()||"/"),re.scopes=M.scopes||{},M.flows={},M.flows[ve]=re,delete M.flow,delete M.authorizationUrl,delete M.tokenUrl,delete M.scopes,typeof M.name<"u"&&(L.patch?(L.patches++,delete M.name):w("(Patchable) oauth2 securitySchemes should not have name property",L))}}function H(M){return M&&!M["x-s2o-delete"]}function Z(M,L){if(M.$ref)M.$ref=M.$ref.replace("#/responses/","#/components/responses/");else{M.type&&!M.schema&&(M.schema={}),M.type&&(M.schema.type=M.type),M.items&&M.items.type!=="array"&&(M.items.collectionFormat!==M.collectionFormat&&z("Nested collectionFormats are not supported",M,L),delete M.items.collectionFormat),M.type==="array"?(M.collectionFormat==="ssv"?z("collectionFormat:ssv is no longer supported for headers",M,L):M.collectionFormat==="pipes"?z("collectionFormat:pipes is no longer supported for headers",M,L):M.collectionFormat==="multi"?M.explode=!0:M.collectionFormat==="tsv"?(z("collectionFormat:tsv is no longer supported",M,L),M["x-collectionFormat"]="tsv"):M.style="simple",delete M.collectionFormat):M.collectionFormat&&(L.patch?(L.patches++,delete M.collectionFormat):w("(Patchable) collectionFormat is only applicable to header.type array",L)),delete M.type;for(let re of m.parameterTypeProperties)typeof M[re]<"u"&&(M.schema[re]=M[re],delete M[re]);for(let re of m.arrayProperties)typeof M[re]<"u"&&(M.schema[re]=M[re],delete M[re])}}function te(M,L){if(M.$ref.indexOf("#/parameters/")>=0){let re=M.$ref.split("#/parameters/");M.$ref=re[0]+"#/components/parameters/"+m.sanitise(re[1])}M.$ref.indexOf("#/definitions/")>=0&&z("Definition used as parameter",M,L)}function ee(M,L){let re={};for(let ve of Object.keys(M))re[ve]=M[ve],ve==="parameters"&&(re.requestBody={},L.rbname&&(re[L.rbname]=""));return re.requestBody={},re}function oe(M,L,re,ve,we,ke,le){let je={},be=!0,Re;if(L&&L.consumes&&typeof L.consumes=="string")if(le.patch)le.patches++,L.consumes=[L.consumes];else return w("(Patchable) operation.consumes must be an array",le);Array.isArray(ke.consumes)||delete ke.consumes;let Ce=((L?L.consumes:null)||ke.consumes||[]).filter(m.uniqueOnly);if(M&&M.$ref&&typeof M.$ref=="string"){te(M,le);let Me=decodeURIComponent(M.$ref.replace("#/components/parameters/","")),de=!1,Ae=ke.components.parameters[Me];if((!Ae||Ae["x-s2o-delete"])&&M.$ref.startsWith("#/")&&(M["x-s2o-delete"]=!0,de=!0),de){let Qe=M.$ref,We=o(ke,M.$ref);!We&&Qe.startsWith("#/")?z("Could not resolve reference "+Qe,M,le):We&&(M=We)}}if(M&&(M.name||M.in)){typeof M["x-deprecated"]=="boolean"&&(M.deprecated=M["x-deprecated"],delete M["x-deprecated"]),typeof M["x-example"]<"u"&&(M.example=M["x-example"],delete M["x-example"]),M.in!=="body"&&!M.type&&(le.patch?(le.patches++,M.type="string"):w("(Patchable) parameter.type is mandatory for non-body parameters",le)),M.type&&typeof M.type=="object"&&M.type.$ref&&(M.type=o(ke,M.type.$ref)),M.type==="file"&&(M["x-s2o-originalType"]=M.type,Re=M.type),M.description&&typeof M.description=="object"&&M.description.$ref&&(M.description=o(ke,M.description.$ref)),M.description===null&&delete M.description;let Me=M.collectionFormat;if(M.type==="array"&&!Me&&(Me="csv"),Me&&(M.type!=="array"&&(le.patch?(le.patches++,delete M.collectionFormat):w("(Patchable) collectionFormat is only applicable to param.type array",le)),Me==="csv"&&(M.in==="query"||M.in==="cookie")&&(M.style="form",M.explode=!1),Me==="csv"&&(M.in==="path"||M.in==="header")&&(M.style="simple"),Me==="ssv"&&(M.in==="query"?M.style="spaceDelimited":z("collectionFormat:ssv is no longer supported except for in:query parameters",M,le)),Me==="pipes"&&(M.in==="query"?M.style="pipeDelimited":z("collectionFormat:pipes is no longer supported except for in:query parameters",M,le)),Me==="multi"&&(M.explode=!0),Me==="tsv"&&(z("collectionFormat:tsv is no longer supported",M,le),M["x-collectionFormat"]="tsv"),delete M.collectionFormat),M.type&&M.type!=="body"&&M.in!=="formData")if(M.items&&M.schema)z("parameter has array,items and schema",M,le);else{M.schema&&le.patches++,(!M.schema||typeof M.schema!="object")&&(M.schema={}),M.schema.type=M.type,M.items&&(M.schema.items=M.items,delete M.items,u(M.schema.items,null,function(de,Ae,Qe){Ae==="collectionFormat"&&typeof de[Ae]=="string"&&(Me&&de[Ae]!==Me&&z("Nested collectionFormats are not supported",M,le),delete de[Ae])}));for(let de of m.parameterTypeProperties)typeof M[de]<"u"&&(M.schema[de]=M[de]),delete M[de]}M.schema&&j(M.schema,le),M["x-ms-skip-url-encoding"]&&M.in==="query"&&(M.allowReserved=!0,delete M["x-ms-skip-url-encoding"])}if(M&&M.in==="formData"){be=!1,je.content={};let Me="application/x-www-form-urlencoded";if(Ce.length&&Ce.indexOf("multipart/form-data")>=0&&(Me="multipart/form-data"),je.content[Me]={},M.schema)je.content[Me].schema=M.schema,M.schema.$ref&&(je["x-s2o-name"]=decodeURIComponent(M.schema.$ref.replace("#/components/schemas/","")));else{je.content[Me].schema={},je.content[Me].schema.type="object",je.content[Me].schema.properties={},je.content[Me].schema.properties[M.name]={};let de=je.content[Me].schema,Ae=je.content[Me].schema.properties[M.name];M.description&&(Ae.description=M.description),M.example&&(Ae.example=M.example),M.type&&(Ae.type=M.type);for(let Qe of m.parameterTypeProperties)typeof M[Qe]<"u"&&(Ae[Qe]=M[Qe]);M.required===!0&&(de.required||(de.required=[]),de.required.push(M.name),je.required=!0),typeof M.default<"u"&&(Ae.default=M.default),Ae.properties&&(Ae.properties=M.properties),M.allOf&&(Ae.allOf=M.allOf),M.type==="array"&&M.items&&(Ae.items=M.items,Ae.items.collectionFormat&&delete Ae.items.collectionFormat),(Re==="file"||M["x-s2o-originalType"]==="file")&&(Ae.type="string",Ae.format="binary"),ae(M,Ae)}}else M&&M.type==="file"&&(M.required&&(je.required=M.required),je.content={},je.content["application/octet-stream"]={},je.content["application/octet-stream"].schema={},je.content["application/octet-stream"].schema.type="string",je.content["application/octet-stream"].schema.format="binary",ae(M,je));if(M&&M.in==="body"){je.content={},M.name&&(je["x-s2o-name"]=(L&&L.operationId?m.sanitiseAll(L.operationId):"")+("_"+M.name).toCamelCase()),M.description&&(je.description=M.description),M.required&&(je.required=M.required),L&&le.rbname&&M.name&&(L[le.rbname]=M.name),M.schema&&M.schema.$ref?je["x-s2o-name"]=decodeURIComponent(M.schema.$ref.replace("#/components/schemas/","")):M.schema&&M.schema.type==="array"&&M.schema.items&&M.schema.items.$ref&&(je["x-s2o-name"]=decodeURIComponent(M.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Ce.length||Ce.push("application/json");for(let Me of Ce)je.content[Me]={},je.content[Me].schema=l(M.schema||{}),j(je.content[Me].schema,le);ae(M,je)}if(Object.keys(je).length>0&&(M["x-s2o-delete"]=!0,L))if(L.requestBody&&be){L.requestBody["x-s2o-overloaded"]=!0;let Me=L.operationId||we;z("Operation "+Me+" has multiple requestBodies",L,le)}else L.requestBody||(L=re[ve]=ee(L,le)),L.requestBody.content&&L.requestBody.content["multipart/form-data"]&&L.requestBody.content["multipart/form-data"].schema&&L.requestBody.content["multipart/form-data"].schema.properties&&je.content["multipart/form-data"]&&je.content["multipart/form-data"].schema&&je.content["multipart/form-data"].schema.properties?(L.requestBody.content["multipart/form-data"].schema.properties=Object.assign(L.requestBody.content["multipart/form-data"].schema.properties,je.content["multipart/form-data"].schema.properties),L.requestBody.content["multipart/form-data"].schema.required=(L.requestBody.content["multipart/form-data"].schema.required||[]).concat(je.content["multipart/form-data"].schema.required||[]),L.requestBody.content["multipart/form-data"].schema.required.length||delete L.requestBody.content["multipart/form-data"].schema.required):L.requestBody.content&&L.requestBody.content["application/x-www-form-urlencoded"]&&L.requestBody.content["application/x-www-form-urlencoded"].schema&&L.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&je.content["application/x-www-form-urlencoded"]&&je.content["application/x-www-form-urlencoded"].schema&&je.content["application/x-www-form-urlencoded"].schema.properties?(L.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(L.requestBody.content["application/x-www-form-urlencoded"].schema.properties,je.content["application/x-www-form-urlencoded"].schema.properties),L.requestBody.content["application/x-www-form-urlencoded"].schema.required=(L.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(je.content["application/x-www-form-urlencoded"].schema.required||[]),L.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete L.requestBody.content["application/x-www-form-urlencoded"].schema.required):(L.requestBody=Object.assign(L.requestBody,je),L.requestBody["x-s2o-name"]||(L.requestBody.schema&&L.requestBody.schema.$ref?L.requestBody["x-s2o-name"]=decodeURIComponent(L.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):L.operationId&&(L.requestBody["x-s2o-name"]=m.sanitiseAll(L.operationId))));if(M&&!M["x-s2o-delete"]){delete M.type;for(let Me of m.parameterTypeProperties)delete M[Me];M.in==="path"&&(typeof M.required>"u"||M.required!==!0)&&(le.patch?(le.patches++,M.required=!0):w("(Patchable) path parameters must be required:true ["+M.name+" in "+we+"]",le))}return L}function ae(M,L){for(let re in M)re.startsWith("x-")&&!re.startsWith("x-s2o")&&(L[re]=M[re])}function ce(M,L,re,ve,we){if(!M)return!1;if(M.$ref&&typeof M.$ref=="string")M.$ref.indexOf("#/definitions/")>=0?z("definition used as response: "+M.$ref,M,we):M.$ref.startsWith("#/responses/")&&(M.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(M.$ref.replace("#/responses/",""))));else{if((typeof M.description>"u"||M.description===null||M.description===""&&we.patch)&&(we.patch?typeof M=="object"&&!Array.isArray(M)&&(we.patches++,M.description=g[M]||""):w("(Patchable) response.description is mandatory",we)),typeof M.schema<"u"){if(j(M.schema,we),M.schema.$ref&&typeof M.schema.$ref=="string"&&M.schema.$ref.startsWith("#/responses/")&&(M.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(M.schema.$ref.replace("#/responses/","")))),re&&re.produces&&typeof re.produces=="string")if(we.patch)we.patches++,re.produces=[re.produces];else return w("(Patchable) operation.produces must be an array",we);ve.produces&&!Array.isArray(ve.produces)&&delete ve.produces;let ke=((re?re.produces:null)||ve.produces||[]).filter(m.uniqueOnly);ke.length||ke.push("*/*"),M.content={};for(let le of ke){if(M.content[le]={},M.content[le].schema=l(M.schema),M.examples&&M.examples[le]){let je={};je.value=M.examples[le],M.content[le].examples={},M.content[le].examples.response=je,delete M.examples[le]}M.content[le].schema.type==="file"&&(M.content[le].schema={type:"string",format:"binary"})}delete M.schema}for(let ke in M.examples)M.content||(M.content={}),M.content[ke]||(M.content[ke]={}),M.content[ke].examples={},M.content[ke].examples.response={},M.content[ke].examples.response.value=M.examples[ke];if(delete M.examples,M.headers)for(let ke in M.headers)ke.toLowerCase()==="status code"?we.patch?(we.patches++,delete M.headers[ke]):w('(Patchable) "Status Code" is not a valid header',we):Z(M.headers[ke],we)}}function Q(M,L,re,ve,we){for(let ke in M){let le=M[ke];le&&le["x-trace"]&&typeof le["x-trace"]=="object"&&(le.trace=le["x-trace"],delete le["x-trace"]),le&&le["x-summary"]&&typeof le["x-summary"]=="string"&&(le.summary=le["x-summary"],delete le["x-summary"]),le&&le["x-description"]&&typeof le["x-description"]=="string"&&(le.description=le["x-description"],delete le["x-description"]),le&&le["x-servers"]&&Array.isArray(le["x-servers"])&&(le.servers=le["x-servers"],delete le["x-servers"]);for(let je in le)if(m.httpMethods.indexOf(je)>=0||je==="x-amazon-apigateway-any-method"){let be=le[je];if(be&&be.parameters&&Array.isArray(be.parameters)){if(le.parameters)for(let Re of le.parameters)typeof Re.$ref=="string"&&(te(Re,re),Re=o(we,Re.$ref)),!be.parameters.find(function(Ce,Me,de){return Ce.name===Re.name&&Ce.in===Re.in})&&(Re.in==="formData"||Re.in==="body"||Re.type==="file")&&(be=oe(Re,be,le,je,ke,we,re),re.rbname&&be[re.rbname]===""&&delete be[re.rbname]);for(let Re of be.parameters)be=oe(Re,be,le,je,je+":"+ke,we,re);re.rbname&&be[re.rbname]===""&&delete be[re.rbname],re.debug||be.parameters&&(be.parameters=be.parameters.filter(H))}if(be&&be.security&&N(be.security),typeof be=="object"){if(!be.responses){let Re={};Re.description="Default response",be.responses={default:Re}}for(let Re in be.responses){let Ce=be.responses[Re];ce(Ce,Re,be,we,re)}}if(be&&be["x-servers"]&&Array.isArray(be["x-servers"]))be.servers=be["x-servers"],delete be["x-servers"];else if(be&&be.schemes&&be.schemes.length){for(let Re of be.schemes)if((!we.schemes||we.schemes.indexOf(Re)<0)&&(be.servers||(be.servers=[]),Array.isArray(we.servers)))for(let Ce of we.servers){let Me=l(Ce),de=t.parse(Me.url);de.protocol=Re,Me.url=de.format(),be.servers.push(Me)}}if(re.debug&&(be["x-s2o-consumes"]=be.consumes||[],be["x-s2o-produces"]=be.produces||[]),be){if(delete be.consumes,delete be.produces,delete be.schemes,be["x-ms-examples"]){for(let Re in be["x-ms-examples"]){let Ce=be["x-ms-examples"][Re],Me=m.sanitiseAll(Re);if(Ce.parameters)for(let de in Ce.parameters){let Ae=Ce.parameters[de];for(let Qe of(be.parameters||[]).concat(le.parameters||[]))Qe.$ref&&(Qe=i.jptr(we,Qe.$ref)),Qe.name===de&&!Qe.example&&(Qe.examples||(Qe.examples={}),Qe.examples[Re]={value:Ae})}if(Ce.responses)for(let de in Ce.responses){if(Ce.responses[de].headers)for(let Ae in Ce.responses[de].headers){let Qe=Ce.responses[de].headers[Ae];for(let We in be.responses[de].headers)if(We===Ae){let _=be.responses[de].headers[We];_.example=Qe}}if(Ce.responses[de].body&&(we.components.examples[Me]={value:l(Ce.responses[de].body)},be.responses[de]&&be.responses[de].content))for(let Ae in be.responses[de].content){let Qe=be.responses[de].content[Ae];Qe.examples||(Qe.examples={}),Qe.examples[Re]={$ref:"#/components/examples/"+Me}}}}delete be["x-ms-examples"]}if(be.parameters&&be.parameters.length===0&&delete be.parameters,be.requestBody){let Re=be.operationId?m.sanitiseAll(be.operationId):m.sanitiseAll(je+ke).toCamelCase(),Ce=m.sanitise(be.requestBody["x-s2o-name"]||Re||"");delete be.requestBody["x-s2o-name"];let Me=JSON.stringify(be.requestBody),de=m.hash(Me);if(!ve[de]){let Qe={};Qe.name=Ce,Qe.body=be.requestBody,Qe.refs=[],ve[de]=Qe}let Ae="#/"+L+"/"+encodeURIComponent(i.jpescape(ke))+"/"+je+"/requestBody";ve[de].refs.push(Ae)}}}if(le&&le.parameters){for(let je in le.parameters){let be=le.parameters[je];oe(be,null,le,null,ke,we,re)}!re.debug&&Array.isArray(le.parameters)&&(le.parameters=le.parameters.filter(H))}}}function V(M,L){let re={};k={schemas:{}},M.security&&N(M.security);for(let we in M.components.securitySchemes){let ke=m.sanitise(we);we!==ke&&(M.components.securitySchemes[ke]&&w("Duplicate sanitised securityScheme name "+ke,L),M.components.securitySchemes[ke]=M.components.securitySchemes[we],delete M.components.securitySchemes[we]),$(M.components.securitySchemes[ke],L)}for(let we in M.components.schemas){let ke=m.sanitiseAll(we),le="";if(we!==ke){for(;M.components.schemas[ke+le];)le=le?++le:2;M.components.schemas[ke+le]=M.components.schemas[we],delete M.components.schemas[we]}k.schemas[we]=ke+le,j(M.components.schemas[ke+le],L)}L.refmap={},u(M,{payload:{options:L}},E),I(M,L);for(let we in M.components.parameters){let ke=m.sanitise(we);we!==ke&&(M.components.parameters[ke]&&w("Duplicate sanitised parameter name "+ke,L),M.components.parameters[ke]=M.components.parameters[we],delete M.components.parameters[we]);let le=M.components.parameters[ke];oe(le,null,null,null,ke,M,L)}for(let we in M.components.responses){let ke=m.sanitise(we);we!==ke&&(M.components.responses[ke]&&w("Duplicate sanitised response name "+ke,L),M.components.responses[ke]=M.components.responses[we],delete M.components.responses[we]);let le=M.components.responses[ke];if(ce(le,ke,null,M,L),le.headers)for(let je in le.headers)je.toLowerCase()==="status code"?L.patch?(L.patches++,delete le.headers[je]):w('(Patchable) "Status Code" is not a valid header',L):Z(le.headers[je],L)}for(let we in M.components.requestBodies){let ke=M.components.requestBodies[we],le=JSON.stringify(ke),je=m.hash(le),be={};be.name=we,be.body=ke,be.refs=[],re[je]=be}if(Q(M.paths,"paths",L,re,M),M["x-ms-paths"]&&Q(M["x-ms-paths"],"x-ms-paths",L,re,M),!L.debug)for(let we in M.components.parameters)M.components.parameters[we]["x-s2o-delete"]&&delete M.components.parameters[we];L.debug&&(M["x-s2o-consumes"]=M.consumes||[],M["x-s2o-produces"]=M.produces||[]),delete M.consumes,delete M.produces,delete M.schemes;let ve=[];if(M.components.requestBodies={},!L.resolveInternal){let we=1;for(let ke in re){let le=re[ke];if(le.refs.length>1){let je="";for(le.name||(le.name="requestBody",je=we++);ve.indexOf(le.name+je)>=0;)je=je?++je:2;le.name=le.name+je,ve.push(le.name),M.components.requestBodies[le.name]=l(le.body);for(let be in le.refs){let Re={};Re.$ref="#/components/requestBodies/"+le.name,i.jptr(M,le.refs[be],Re)}}}}return M.components.responses&&Object.keys(M.components.responses).length===0&&delete M.components.responses,M.components.parameters&&Object.keys(M.components.parameters).length===0&&delete M.components.parameters,M.components.examples&&Object.keys(M.components.examples).length===0&&delete M.components.examples,M.components.requestBodies&&Object.keys(M.components.requestBodies).length===0&&delete M.components.requestBodies,M.components.securitySchemes&&Object.keys(M.components.securitySchemes).length===0&&delete M.components.securitySchemes,M.components.headers&&Object.keys(M.components.headers).length===0&&delete M.components.headers,M.components.schemas&&Object.keys(M.components.schemas).length===0&&delete M.components.schemas,M.components&&Object.keys(M.components).length===0&&delete M.components,M}function Y(M){return!M||!M.url||typeof M.url!="string"||(M.url=M.url.split("{{").join("{"),M.url=M.url.split("}}").join("}"),M.url.replace(/\{(.+?)\}/g,function(L,re){M.variables||(M.variables={}),M.variables[re]={default:"unknown"}})),M}function G(M,L,re){if(typeof M.info>"u"||M.info===null)if(L.patch)L.patches++,M.info={version:"",title:""};else return re(new x("(Patchable) info object is mandatory"));if(typeof M.info!="object"||Array.isArray(M.info))return re(new x("info must be an object"));if(typeof M.info.title>"u"||M.info.title===null)if(L.patch)L.patches++,M.info.title="";else return re(new x("(Patchable) info.title cannot be null"));if(typeof M.info.version>"u"||M.info.version===null)if(L.patch)L.patches++,M.info.version="";else return re(new x("(Patchable) info.version cannot be null"));if(typeof M.info.version!="string")if(L.patch)L.patches++,M.info.version=M.info.version.toString();else return re(new x("(Patchable) info.version must be a string"));if(typeof M.info.logo<"u")if(L.patch)L.patches++,M.info["x-logo"]=M.info.logo,delete M.info.logo;else return re(new x("(Patchable) info should not have logo property"));if(typeof M.info.termsOfService<"u"){if(M.info.termsOfService===null)if(L.patch)L.patches++,M.info.termsOfService="";else return re(new x("(Patchable) info.termsOfService cannot be null"));try{new URL(M.info.termsOfService)}catch{if(L.patch)L.patches++,delete M.info.termsOfService;else return re(new x("(Patchable) info.termsOfService must be a URL"))}}}function D(M,L,re){if(typeof M.paths>"u")if(L.patch)L.patches++,M.paths={};else return re(new x("(Patchable) paths object is mandatory"))}function U(M,L){const re=new WeakSet;u(M,{identityDetection:!0},function(ve,we,ke){typeof ve[we]=="object"&&ve[we]!==null&&(re.has(ve[we])?L.anchors?ve[we]=l(ve[we]):w("YAML anchor or merge key at "+ke.path,L):re.add(ve[we]))})}function K(M,L,re){return a(re,new Promise(function(ve,we){if(M||(M={}),L.original=M,L.text||(L.text=n.stringify(M)),L.externals=[],L.externalRefs={},L.rewriteRefs=!0,L.preserveMiro=!0,L.promise={},L.promise.resolve=ve,L.promise.reject=we,L.patches=0,L.cache||(L.cache={}),L.source&&(L.cache[L.source]=L.original),U(M,L),M.openapi&&typeof M.openapi=="string"&&M.openapi.startsWith("3.")){L.openapi=c(M),G(L.openapi,L,we),D(L.openapi,L,we),d.optionalResolve(L).then(function(){return L.direct?ve(L.openapi):ve(L)}).catch(function(le){console.warn(le),we(le)});return}if(!M.swagger||M.swagger!="2.0")return we(new x("Unsupported swagger/OpenAPI version: "+(M.openapi?M.openapi:M.swagger)));let ke=L.openapi={};if(ke.openapi=typeof L.targetVersion=="string"&&L.targetVersion.startsWith("3.")?L.targetVersion:b,L.origin){ke["x-origin"]||(ke["x-origin"]=[]);let le={};le.url=L.source||L.origin,le.format="swagger",le.version=M.swagger,le.converter={},le.converter.url="https://github.com/mermade/oas-kit",le.converter.version=v,ke["x-origin"].push(le)}if(ke=Object.assign(ke,c(M)),delete ke.swagger,u(ke,{},function(le,je,be){le[je]===null&&!je.startsWith("x-")&&je!=="default"&&be.path.indexOf("/example")<0&&delete le[je]}),M.host)for(let le of Array.isArray(M.schemes)?M.schemes:[""]){let je={},be=(M.basePath||"").replace(/\/$/,"");je.url=(le?le+":":"")+"//"+M.host+be,Y(je),ke.servers||(ke.servers=[]),ke.servers.push(je)}else if(M.basePath){let le={};le.url=M.basePath,Y(le),ke.servers||(ke.servers=[]),ke.servers.push(le)}if(delete ke.host,delete ke.basePath,ke["x-servers"]&&Array.isArray(ke["x-servers"])&&(ke.servers=ke["x-servers"],delete ke["x-servers"]),M["x-ms-parameterized-host"]){let le=M["x-ms-parameterized-host"],je={};je.url=le.hostTemplate+(M.basePath?M.basePath:""),je.variables={};const be=je.url.match(/\{\w+\}/g);for(let Re in le.parameters){let Ce=le.parameters[Re];Ce.$ref&&(Ce=l(o(ke,Ce.$ref))),Re.startsWith("x-")||(delete Ce.required,delete Ce.type,delete Ce.in,typeof Ce.default>"u"&&(Ce.enum?Ce.default=Ce.enum[0]:Ce.default="none"),Ce.name||(Ce.name=be[Re].replace("{","").replace("}","")),je.variables[Ce.name]=Ce,delete Ce.name)}ke.servers||(ke.servers=[]),le.useSchemePrefix===!1?ke.servers.push(je):M.schemes.forEach(Re=>{ke.servers.push(Object.assign({},je,{url:Re+"://"+je.url}))}),delete ke["x-ms-parameterized-host"]}G(ke,L,we),D(ke,L,we),typeof ke.consumes=="string"&&(ke.consumes=[ke.consumes]),typeof ke.produces=="string"&&(ke.produces=[ke.produces]),ke.components={},ke["x-callbacks"]&&(ke.components.callbacks=ke["x-callbacks"],delete ke["x-callbacks"]),ke.components.examples={},ke.components.headers={},ke["x-links"]&&(ke.components.links=ke["x-links"],delete ke["x-links"]),ke.components.parameters=ke.parameters||{},ke.components.responses=ke.responses||{},ke.components.requestBodies={},ke.components.securitySchemes=ke.securityDefinitions||{},ke.components.schemas=ke.definitions||{},delete ke.definitions,delete ke.responses,delete ke.parameters,delete ke.securityDefinitions,d.optionalResolve(L).then(function(){V(L.openapi,L),L.direct?ve(L.openapi):ve(L)}).catch(function(le){console.warn(le),we(le)})}))}function X(M,L,re){return a(re,new Promise(function(ve,we){let ke=null,le=null;try{ke=JSON.parse(M),L.text=JSON.stringify(ke,null,2)}catch(je){le=je;try{ke=n.parse(M,{schema:"core",prettyErrors:!0}),L.sourceYaml=!0,L.text=M}catch(be){le=be}}ke?K(ke,L).then(je=>ve(je)).catch(je=>we(je)):we(new x(le?le.message:"Could not parse string"))}))}function J(M,L,re){return a(re,new Promise(function(ve,we){L.origin=!0,L.source||(L.source=M),L.verbose&&console.warn("GET "+M),L.fetch||(L.fetch=r);const ke=Object.assign({},L.fetchOptions,{agent:L.agent});L.fetch(M,ke).then(function(le){if(le.status!==200)throw new x(`Received status code ${le.status}: ${M}`);return le.text()}).then(function(le){X(le,L).then(je=>ve(je)).catch(je=>we(je))}).catch(function(le){we(le)})}))}function he(M,L,re){return a(re,new Promise(function(ve,we){e.readFile(M,L.encoding||"utf8",function(ke,le){ke?we(ke):(L.sourceFile=M,X(le,L).then(je=>ve(je)).catch(je=>we(je)))})}))}function Oe(M,L,re){return a(re,new Promise(function(ve,we){let ke="";M.on("data",function(le){ke+=le}).on("end",function(){X(ke,L).then(le=>ve(le)).catch(le=>we(le))})}))}return H$={S2OError:x,targetVersion:b,convert:K,convertObj:K,convertUrl:J,convertStr:X,convertFile:he,convertStream:Oe},H$}var sHt=oHt();const lHt=Nn(sHt);function cHt(e){return e.paths||(e.paths={}),new Promise((t,a)=>lHt.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function uHt(){try{return(await Lxe())?.resolvedConfig.openapi||{}}catch{return{}}}async function dHt(e){const t=await Lxe(),a={config:t,base:$p?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};$p&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=pHt(e):a.ref=e;const{bundle:{parsed:r}}=await AKt(a);return r.swagger!==void 0?cHt(r):r}function pHt(e){return{source:{absoluteRef:""},parsed:e}}async function hHt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await dHt(e||t);try{T4t(r)}catch{}return r}const mHt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=P.useState(),[s,l]=P.useState(!0),[c,u]=P.useState(null),[d,h]=P.useState(e||{});P.useEffect(()=>{async function g(){l(!0);try{const v=await uHt();h({...e,...v}),u(await hHt(a,t,e))}catch(v){o(v.message)}}g()},[a,t,e]);const m=P.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},_4t([c,t,d]));return P.useEffect(()=>{m&&l(!1)},[m]),i||!m?null:s?hu(e?.hideLoading,!1)?null:p.jsx(ZLt,{color:"--loading-spinner-color"}):P.isValidElement(n)?P.cloneElement(n,{store:m}):null};function fHt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return p.jsx(mHt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:p.jsx(r0e,{withCommonStyles:!0,router:o||"hash"})})}function gHt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function vHt(e){const t=gHt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function bHt(e,t=document.querySelector("redoc")){JN.hydrateRoot(t,p.jsx(r0e,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function Ywe(e,t={},a=YN("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}={...t,...vHt(a)};let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),JN.createRoot(a).render(P.createElement(fHt,{definition:o,definitionUrl:i,options:n,router:r??"hash"},["Loading..."]))}const yHt="3.21.0-next.2",kHt="cf140705";function xHt(){const e=YN("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&Ywe(t,{},e)}xHt();function wHt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function SHt({value:e=!1,disabled:t=!1,onChange:a,onFocus:r,stopPropagation:n=!1,className:i}){const o=l=>{t||(n&&l.stopPropagation(),a(!e))},s=l=>{n&&l.stopPropagation(),r?.()};return p.jsx(OHt,{tabIndex:t?-1:0,onFocus:s,onClick:o,role:"switch","aria-checked":e,"aria-disabled":t,selected:e,disabled:t,className:i,children:p.jsx(zHt,{selected:e,disabled:t})})}const OHt=R.div`
|
|
11576
|
+
`," "],s=["{","}","|","\\","^","`"].concat(o),l=["'"].concat(s),c=["%","/","?",";","#"].concat(l),u=["/","?","#"],d=255,h=/^[+a-z0-9A-Z_-]{0,63}$/,m=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},k=IKt();function x(C,j,T){if(C&&t.isObject(C)&&C instanceof a)return C;var E=new a;return E.parse(C,j,T),E}a.prototype.parse=function(C,j,T){if(!t.isString(C))throw new TypeError("Parameter 'url' must be a string, not "+typeof C);var E=C.indexOf("?"),I=E!==-1&&E<C.indexOf("#")?"?":"#",N=C.split(I),$=/\\/g;N[0]=N[0].replace($,"/"),C=N.join(I);var H=C;if(H=H.trim(),!T&&C.split("#").length===1){var Z=i.exec(H);if(Z)return this.path=H,this.href=H,this.pathname=Z[1],Z[2]?(this.search=Z[2],j?this.query=k.parse(this.search.substr(1)):this.query=this.search.substr(1)):j&&(this.search="",this.query={}),this}var te=r.exec(H);if(te){te=te[0];var ee=te.toLowerCase();this.protocol=ee,H=H.substr(te.length)}if(T||te||H.match(/^\/\/[^@\/]+@[^@\/]+/)){var oe=H.substr(0,2)==="//";oe&&!(te&&v[te])&&(H=H.substr(2),this.slashes=!0)}if(!v[te]&&(oe||te&&!b[te])){for(var ae=-1,ce=0;ce<u.length;ce++){var Q=H.indexOf(u[ce]);Q!==-1&&(ae===-1||Q<ae)&&(ae=Q)}var V,Y;ae===-1?Y=H.lastIndexOf("@"):Y=H.lastIndexOf("@",ae),Y!==-1&&(V=H.slice(0,Y),H=H.slice(Y+1),this.auth=decodeURIComponent(V)),ae=-1;for(var ce=0;ce<c.length;ce++){var Q=H.indexOf(c[ce]);Q!==-1&&(ae===-1||Q<ae)&&(ae=Q)}ae===-1&&(ae=H.length),this.host=H.slice(0,ae),H=H.slice(ae),this.parseHost(),this.hostname=this.hostname||"";var G=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!G)for(var D=this.hostname.split(/\./),ce=0,U=D.length;ce<U;ce++){var K=D[ce];if(K&&!K.match(h)){for(var X="",J=0,he=K.length;J<he;J++)K.charCodeAt(J)>127?X+="x":X+=K[J];if(!X.match(h)){var Oe=D.slice(0,ce),M=D.slice(ce+1),L=K.match(m);L&&(Oe.push(L[1]),M.unshift(L[2])),M.length&&(H="/"+M.join(".")+H),this.hostname=Oe.join(".");break}}}this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),G||(this.hostname=e.toASCII(this.hostname));var re=this.port?":"+this.port:"",ve=this.hostname||"";this.host=ve+re,this.href+=this.host,G&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),H[0]!=="/"&&(H="/"+H))}if(!g[ee])for(var ce=0,U=l.length;ce<U;ce++){var we=l[ce];if(H.indexOf(we)!==-1){var ke=encodeURIComponent(we);ke===we&&(ke=escape(we)),H=H.split(we).join(ke)}}var le=H.indexOf("#");le!==-1&&(this.hash=H.substr(le),H=H.slice(0,le));var je=H.indexOf("?");if(je!==-1?(this.search=H.substr(je),this.query=H.substr(je+1),j&&(this.query=k.parse(this.query)),H=H.slice(0,je)):j&&(this.search="",this.query={}),H&&(this.pathname=H),b[ee]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var re=this.pathname||"",be=this.search||"";this.path=re+be}return this.href=this.format(),this};function w(C){return t.isString(C)&&(C=x(C)),C instanceof a?C.format():a.prototype.format.call(C)}a.prototype.format=function(){var C=this.auth||"";C&&(C=encodeURIComponent(C),C=C.replace(/%3A/i,":"),C+="@");var j=this.protocol||"",T=this.pathname||"",E=this.hash||"",I=!1,N="";this.host?I=C+this.host:this.hostname&&(I=C+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(I+=":"+this.port)),this.query&&t.isObject(this.query)&&Object.keys(this.query).length&&(N=k.stringify(this.query));var $=this.search||N&&"?"+N||"";return j&&j.substr(-1)!==":"&&(j+=":"),this.slashes||(!j||b[j])&&I!==!1?(I="//"+(I||""),T&&T.charAt(0)!=="/"&&(T="/"+T)):I||(I=""),E&&E.charAt(0)!=="#"&&(E="#"+E),$&&$.charAt(0)!=="?"&&($="?"+$),T=T.replace(/[?#]/g,function(H){return encodeURIComponent(H)}),$=$.replace("#","%23"),j+I+T+$+E};function z(C,j){return x(C,!1,!0).resolve(j)}a.prototype.resolve=function(C){return this.resolveObject(x(C,!1,!0)).format()};function S(C,j){return C?x(C,!1,!0).resolveObject(j):j}return a.prototype.resolveObject=function(C){if(t.isString(C)){var j=new a;j.parse(C,!1,!0),C=j}for(var T=new a,E=Object.keys(this),I=0;I<E.length;I++){var N=E[I];T[N]=this[N]}if(T.hash=C.hash,C.href==="")return T.href=T.format(),T;if(C.slashes&&!C.protocol){for(var $=Object.keys(C),H=0;H<$.length;H++){var Z=$[H];Z!=="protocol"&&(T[Z]=C[Z])}return b[T.protocol]&&T.hostname&&!T.pathname&&(T.path=T.pathname="/"),T.href=T.format(),T}if(C.protocol&&C.protocol!==T.protocol){if(!b[C.protocol]){for(var te=Object.keys(C),ee=0;ee<te.length;ee++){var oe=te[ee];T[oe]=C[oe]}return T.href=T.format(),T}if(T.protocol=C.protocol,!C.host&&!v[C.protocol]){for(var U=(C.pathname||"").split("/");U.length&&!(C.host=U.shift()););C.host||(C.host=""),C.hostname||(C.hostname=""),U[0]!==""&&U.unshift(""),U.length<2&&U.unshift(""),T.pathname=U.join("/")}else T.pathname=C.pathname;if(T.search=C.search,T.query=C.query,T.host=C.host||"",T.auth=C.auth,T.hostname=C.hostname||C.host,T.port=C.port,T.pathname||T.search){var ae=T.pathname||"",ce=T.search||"";T.path=ae+ce}return T.slashes=T.slashes||C.slashes,T.href=T.format(),T}var Q=T.pathname&&T.pathname.charAt(0)==="/",V=C.host||C.pathname&&C.pathname.charAt(0)==="/",Y=V||Q||T.host&&C.pathname,G=Y,D=T.pathname&&T.pathname.split("/")||[],U=C.pathname&&C.pathname.split("/")||[],K=T.protocol&&!b[T.protocol];if(K&&(T.hostname="",T.port=null,T.host&&(D[0]===""?D[0]=T.host:D.unshift(T.host)),T.host="",C.protocol&&(C.hostname=null,C.port=null,C.host&&(U[0]===""?U[0]=C.host:U.unshift(C.host)),C.host=null),Y=Y&&(U[0]===""||D[0]==="")),V)T.host=C.host||C.host===""?C.host:T.host,T.hostname=C.hostname||C.hostname===""?C.hostname:T.hostname,T.search=C.search,T.query=C.query,D=U;else if(U.length)D||(D=[]),D.pop(),D=D.concat(U),T.search=C.search,T.query=C.query;else if(!t.isNullOrUndefined(C.search)){if(K){T.hostname=T.host=D.shift();var X=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;X&&(T.auth=X.shift(),T.host=T.hostname=X.shift())}return T.search=C.search,T.query=C.query,(!t.isNull(T.pathname)||!t.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.href=T.format(),T}if(!D.length)return T.pathname=null,T.search?T.path="/"+T.search:T.path=null,T.href=T.format(),T;for(var J=D.slice(-1)[0],he=(T.host||C.host||D.length>1)&&(J==="."||J==="..")||J==="",Oe=0,M=D.length;M>=0;M--)J=D[M],J==="."?D.splice(M,1):J===".."?(D.splice(M,1),Oe++):Oe&&(D.splice(M,1),Oe--);if(!Y&&!G)for(;Oe--;Oe)D.unshift("..");Y&&D[0]!==""&&(!D[0]||D[0].charAt(0)!=="/")&&D.unshift(""),he&&D.join("/").substr(-1)!=="/"&&D.push("");var L=D[0]===""||D[0]&&D[0].charAt(0)==="/";if(K){T.hostname=T.host=L?"":D.length?D.shift():"";var X=T.host&&T.host.indexOf("@")>0?T.host.split("@"):!1;X&&(T.auth=X.shift(),T.host=T.hostname=X.shift())}return Y=Y||T.host&&D.length,Y&&!L&&D.unshift(""),D.length?T.pathname=D.join("/"):(T.pathname=null,T.path=null),(!t.isNull(T.pathname)||!t.isNull(T.search))&&(T.path=(T.pathname?T.pathname:"")+(T.search?T.search:"")),T.auth=C.auth||T.auth,T.slashes=T.slashes||C.slashes,T.href=T.format(),T},a.prototype.parseHost=function(){var C=this.host,j=n.exec(C);j&&(j=j[0],j!==":"&&(this.port=j.substr(1)),C=C.substr(0,C.length-j.length)),C&&(this.hostname=C)},Tb}var c$,Gxe;function LKt(){if(Gxe)return c$;Gxe=1;function e(){return typeof process=="object"&&typeof process.nextTick=="function"?process.nextTick:typeof setImmediate=="function"?setImmediate:function(t){setTimeout(t,0)}}return c$=e(),c$}var u$,Uxe;function BKt(){if(Uxe)return u$;Uxe=1;var e=LKt();return u$=function(t,a){if(t){a.then(function(r){e(function(){t(null,r)})},function(r){e(function(){t(r)})});return}else return a},u$}var d$,Qxe;function X_(){if(Qxe)return d$;Qxe=1;function e(r){return r.replace(/\~/g,"~0").replace(/\//g,"~1")}function t(r){return r.replace(/\~1/g,"/").replace(/~0/g,"~")}function a(r,n,i){if(typeof r>"u")return!1;if(!n||typeof n!="string"||n==="#")return typeof i<"u"?i:r;if(n.indexOf("#")>=0){let s=n.split("#");if(s[0])return!1;n=s[1],n=decodeURIComponent(n.slice(1).split("+").join(" "))}n.startsWith("/")&&(n=n.slice(1));let o=n.split("/");for(let s=0;s<o.length;s++){o[s]=t(o[s]);let l=typeof i<"u"&&s==o.length-1,c=parseInt(o[s],10);if(!Array.isArray(r)||isNaN(c)||c.toString()!==o[s]?c=Array.isArray(r)&&o[s]==="-"?-2:-1:o[s]=s>0?o[s-1]:"",c!=-1||r&&r.hasOwnProperty(o[s]))if(c>=0)l&&(r[c]=i),r=r[c];else{if(c===-2)return l?(Array.isArray(r)&&r.push(i),i):void 0;l&&(r[o[s]]=i),r=r[o[s]]}else if(typeof i<"u"&&typeof r=="object"&&!Array.isArray(r))r[o[s]]=l?i:o[s+1]==="0"||o[s+1]==="-"?[]:{},r=r[o[s]];else return!1}return r}return d$={jptr:a,jpescape:e,jpunescape:t},d$}var p$,Wxe;function h$(){if(Wxe)return p$;Wxe=1;function e(t,a){return a==="$ref"&&!!t&&typeof t[a]=="string"}return p$={isRef:e},p$}var m$,Zxe;function eM(){if(Zxe)return m$;Zxe=1;function e(o){return o}function t(o){return JSON.parse(JSON.stringify(o))}function a(o){let s={};for(let l in o)o.hasOwnProperty(l)&&(s[l]=o[l]);return s}function r(o){let s=Array.isArray(o)?[]:{};for(let l in o)(o.hasOwnProperty(l)||Array.isArray(o))&&(s[l]=typeof o[l]=="object"?r(o[l]):o[l]);return s}function n(o){return Object.assign({},o)}function i(o,s){if(s||(s=new WeakMap),Object(o)!==o||o instanceof Function)return o;if(s.has(o))return s.get(o);try{var l=new o.constructor}catch{l=Object.create(Object.getPrototypeOf(o))}return s.set(o,l),Object.assign(l,...Object.keys(o).map(c=>({[c]:i(o[c],s)})))}return m$={nop:e,clone:t,shallowClone:a,deepClone:r,fastClone:n,circularClone:i},m$}var f$,Jxe;function g$(){if(Jxe)return f$;Jxe=1;const e=X_().jpescape;function t(){return{path:"#",depth:0,pkey:"",parent:{},payload:{},seen:new WeakMap,identity:!1,identityDetection:!1}}function a(r,n,i){if(n||(n={depth:0}),n.depth||(n=Object.assign({},t(),n)),typeof r!="object")return;let o=n.path;for(let s in r){if(n.key=s,n.path=n.path+"/"+encodeURIComponent(e(s)),n.identityPath=n.seen.get(r[s]),n.identity=typeof n.identityPath<"u",r.hasOwnProperty(s)&&i(r,s,n),typeof r[s]=="object"&&!n.identity){n.identityDetection&&!Array.isArray(r[s])&&r[s]!==null&&n.seen.set(r[s],n.path);let l={};l.parent=r,l.path=n.path,l.depth=n.depth?n.depth+1:1,l.pkey=s,l.payload=n.payload,l.seen=n.seen,l.identity=!1,l.identityDetection=n.identityDetection,a(r[s],l,i)}n.path=o}}return f$={recurse:a},f$}var v$,Yxe;function DKt(){if(Yxe)return v$;Yxe=1;const e=g$().recurse,t=eM().shallowClone,a=X_().jptr,r=h$().isRef;var n=function(o){return o&&o.verbose?{warn:function(){var s=Array.prototype.slice.call(arguments);console.warn.apply(console,s)}}:{warn:function(){}}};function i(o,s,l){l||(l={}),l.cache||(l.cache={}),l.state||(l.state={}),l.state.identityDetection=!0,l.depth=l.depth?l.depth+1:1;let c=l.depth>1?o:t(o),u={data:c},d=l.depth>1?s:t(s);l.master||(l.master=c);let h=n(l),m=1;for(;m>0;)m=0,e(u,l.state,function(g,v,b){if(r(g,v)){let k=g[v];if(m++,l.cache[k]){let x=l.cache[k];if(x.resolved)h.warn("Patching %s for %s",k,x.path),b.parent[b.pkey]=x.data,l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[b.pkey][l.$ref]=k);else{if(k===x.path)throw new Error(`Tight circle at ${x.path}`);h.warn("Unresolved ref"),b.parent[b.pkey]=a(x.source,x.path),b.parent[b.pkey]===!1&&(b.parent[b.pkey]=a(x.source,x.key)),l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[l.$ref]=k)}}else{let x={};x.path=b.path.split("/$ref")[0],x.key=k,h.warn("Dereffing %s at %s",k,x.path),x.source=d,x.data=a(x.source,x.key),x.data===!1&&(x.data=a(l.master,x.key),x.source=l.master),x.data===!1&&h.warn("Missing $ref target",x.key),l.cache[k]=x,x.data=b.parent[b.pkey]=i(a(x.source,x.key),x.source,l),l.$ref&&typeof b.parent[b.pkey]=="object"&&b.parent[b.pkey]!==null&&(b.parent[b.pkey][l.$ref]=k),x.resolved=!0}}});return u.data}return v$={dereference:i},v$}var b$,Xxe;function $Kt(){if(Xxe)return b$;Xxe=1,b$=i,i.default=i,i.stable=c,i.stableStringify=c;var e="[...]",t="[Circular]",a=[],r=[];function n(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function i(h,m,g,v){typeof v>"u"&&(v=n()),s(h,"",0,[],void 0,0,v);var b;try{r.length===0?b=JSON.stringify(h,m,g):b=JSON.stringify(h,d(m),g)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var k=a.pop();k.length===4?Object.defineProperty(k[0],k[1],k[3]):k[0][k[1]]=k[2]}}return b}function o(h,m,g,v){var b=Object.getOwnPropertyDescriptor(v,g);b.get!==void 0?b.configurable?(Object.defineProperty(v,g,{value:h}),a.push([v,g,m,b])):r.push([m,g,h]):(v[g]=h,a.push([v,g,m]))}function s(h,m,g,v,b,k,x){k+=1;var w;if(typeof h=="object"&&h!==null){for(w=0;w<v.length;w++)if(v[w]===h){o(t,h,m,b);return}if(typeof x.depthLimit<"u"&&k>x.depthLimit){o(e,h,m,b);return}if(typeof x.edgesLimit<"u"&&g+1>x.edgesLimit){o(e,h,m,b);return}if(v.push(h),Array.isArray(h))for(w=0;w<h.length;w++)s(h[w],w,w,v,h,k,x);else{var z=Object.keys(h);for(w=0;w<z.length;w++){var S=z[w];s(h[S],S,w,v,h,k,x)}}v.pop()}}function l(h,m){return h<m?-1:h>m?1:0}function c(h,m,g,v){typeof v>"u"&&(v=n());var b=u(h,"",0,[],void 0,0,v)||h,k;try{r.length===0?k=JSON.stringify(b,m,g):k=JSON.stringify(b,d(m),g)}catch{return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;a.length!==0;){var x=a.pop();x.length===4?Object.defineProperty(x[0],x[1],x[3]):x[0][x[1]]=x[2]}}return k}function u(h,m,g,v,b,k,x){k+=1;var w;if(typeof h=="object"&&h!==null){for(w=0;w<v.length;w++)if(v[w]===h){o(t,h,m,b);return}try{if(typeof h.toJSON=="function")return}catch{return}if(typeof x.depthLimit<"u"&&k>x.depthLimit){o(e,h,m,b);return}if(typeof x.edgesLimit<"u"&&g+1>x.edgesLimit){o(e,h,m,b);return}if(v.push(h),Array.isArray(h))for(w=0;w<h.length;w++)u(h[w],w,w,v,h,k,x);else{var z={},S=Object.keys(h).sort(l);for(w=0;w<S.length;w++){var C=S[w];u(h[C],C,w,v,h,k,x),z[C]=h[C]}if(typeof b<"u")a.push([b,m,h]),b[m]=z;else return z}v.pop()}}function d(h){return h=typeof h<"u"?h:function(m,g){return g},function(m,g){if(r.length>0)for(var v=0;v<r.length;v++){var b=r[v];if(b[1]===m&&b[0]===g){g=b[2],r.splice(v,1);break}}return h.call(this,m,g)}}return b$}var y$,ewe;function twe(){if(ewe)return y$;ewe=1;var e={};const t=$Kt(),a=e.NODE_DISABLE_COLORS?{red:"",yellow:"",green:"",normal:""}:{red:"\x1B[31m",yellow:"\x1B[33;1m",green:"\x1B[32m",normal:"\x1B[0m"};function r(b,k,x){return x.indexOf(b)===k}function n(b){return new Set(b).size!==b.length}function i(b){return new Set(b).size<=1}function o(b,k){function x(w,z){return t.stringify(w)===t.stringify(Object.assign({},w,z))}return x(b,k)&&x(k,b)}function s(b){let k=[];for(let x of b)k.find(function(w,z,S){return o(w,x)})||k.push(x);return k}function l(b){return b.length===s(b).length}function c(b){return b.find(function(k,x,w){return b.indexOf(k)<x})}function u(b){let k=0,x;if(b.length===0)return k;for(let w=0;w<b.length;w++)x=b.charCodeAt(w),k=(k<<5)-k+x,k|=0;return k}String.prototype.toCamelCase=function(){return this.toLowerCase().replace(/[-_ \/\.](.)/g,function(b,k){return k.toUpperCase()})};const d=["format","minimum","maximum","exclusiveMinimum","exclusiveMaximum","minLength","maxLength","multipleOf","minItems","maxItems","uniqueItems","minProperties","maxProperties","additionalProperties","pattern","enum","default"],h=["items","minItems","maxItems","uniqueItems"],m=["get","post","put","delete","patch","head","options","trace"];function g(b){b=b.replace("[]","Array");let k=b.split("/");return k[0]=k[0].replace(/[^A-Za-z0-9_\-\.]+|\s+/gm,"_"),k.join("/")}function v(b){return g(b.split("/").join("_"))}return y$={colour:a,uniqueOnly:r,hasDuplicates:n,allSame:i,distinctArray:l,firstDupe:c,hash:u,parameterTypeProperties:d,arrayProperties:h,httpMethods:m,sanitise:g,sanitiseAll:v},y$}var k$,awe;function KKt(){if(awe)return k$;awe=1;const e=q1,t=kfe(),a=l$(),r=q1,n=q1,i=X_().jptr,o=g$().recurse,s=eM().clone,l=DKt().dereference,c=h$().isRef,u=twe();function d(T){return[...new Set(T)]}function h(T,E,I,N,$){return new Promise(function(H,Z){e.readFile(T,E,function(te,ee){te?I.ignoreIOErrors&&$?(I.verbose&&console.warn("FAILED",N),I.externalRefs[N].failed=!0,H($)):Z(te):H(ee)})})}function m(T,E,I,N,$,H){let Z=H.externalRefs[I+N].paths[0],te=a.parse($),ee={},oe=1;for(;oe;)oe=0,o(T,{identityDetection:!0},function(ae,ce,Q){if(c(ae,ce)){if(ae[ce].startsWith("#")){if(!ee[ae[ce]]&&!ae.$fixed){let V=s(i(E,ae[ce]));if(H.verbose>1&&console.warn((V===!1?u.colour.red:u.colour.green)+"Fragment resolution",ae[ce],u.colour.normal),V===!1){if(Q.parent[Q.pkey]={},H.fatal){let Y=new Error("Fragment $ref resolution failed "+ae[ce]);if(H.promise)H.promise.reject(Y);else throw Y}}else oe++,Q.parent[Q.pkey]=V,ee[ae[ce]]=Q.path.replace("/%24ref","")}else if(!ae.$fixed){let V=(Z+"/"+ee[ae[ce]]).split("/#/").join("/");Q.parent[Q.pkey]={$ref:V,"x-miro":ae[ce],$fixed:!0},H.verbose>1&&console.warn("Replacing with",V),oe++}}else if(te.protocol){let V=a.resolve($,ae[ce]).toString();H.verbose>1&&console.warn(u.colour.yellow+"Rewriting external url ref",ae[ce],"as",V,u.colour.normal),ae["x-miro"]=ae[ce],H.externalRefs[ae[ce]]&&(H.externalRefs[V]||(H.externalRefs[V]=H.externalRefs[ae[ce]]),H.externalRefs[V].failed=H.externalRefs[ae[ce]].failed),ae[ce]=V}else if(!ae["x-miro"]){let V=a.resolve($,ae[ce]).toString(),Y=!1;H.externalRefs[ae[ce]]&&(Y=H.externalRefs[ae[ce]].failed),Y||(H.verbose>1&&console.warn(u.colour.yellow+"Rewriting external ref",ae[ce],"as",V,u.colour.normal),ae["x-miro"]=ae[ce],ae[ce]=V)}}});return o(T,{},function(ae,ce,Q){c(ae,ce)&&typeof ae.$fixed<"u"&&delete ae.$fixed}),H.verbose>1&&console.warn("Finished fragment resolution"),T}function g(T,E){if(!E.filters||!E.filters.length)return T;for(let I of E.filters)T=I(T,E);return T}function v(T,E){return T&&T.length>2?T:E&&E.length>2?E:"file:"}function b(T,E,I,N){var $=a.parse(I.source),H=I.source.split("\\").join("/").split("/");H.pop()||H.pop();let Z="",te=E.split("#");te.length>1&&(Z="#"+te[1],E=te[0]),H=H.join("/");let ee=a.parse(E),oe=v(ee.protocol,$.protocol),ae;if(oe==="file:"?ae=t.resolve(H?H+"/":"",E):ae=a.resolve(H?H+"/":"",E),I.cache[ae]){I.verbose&&console.warn("CACHED",ae,Z);let ce=s(I.cache[ae]),Q=I.externalRef=ce;if(Z&&(Q=i(Q,Z),Q===!1&&(Q={},I.fatal))){let V=new Error("Cached $ref resolution failed "+ae+Z);if(I.promise)I.promise.reject(V);else throw V}return Q=m(Q,ce,E,Z,ae,I),Q=g(Q,I),N(s(Q),ae,I),Promise.resolve(Q)}if(I.verbose&&console.warn("GET",ae,Z),I.handlers&&I.handlers[oe])return I.handlers[oe](H,E,Z,I).then(function(ce){return I.externalRef=ce,ce=g(ce,I),I.cache[ae]=ce,N(ce,ae,I),ce}).catch(function(ce){throw I.verbose&&console.warn(ce),ce});if(oe&&oe.startsWith("http")){const ce=Object.assign({},I.fetchOptions,{agent:I.agent});return I.fetch(ae,ce).then(function(Q){if(Q.status!==200){if(I.ignoreIOErrors)return I.verbose&&console.warn("FAILED",E),I.externalRefs[E].failed=!0,'{"$ref":"'+E+'"}';throw new Error(`Received status code ${Q.status}: ${ae}`)}return Q.text()}).then(function(Q){try{let V=n.parse(Q,{schema:"core",prettyErrors:!0});if(Q=I.externalRef=V,I.cache[ae]=s(Q),Z&&(Q=i(Q,Z),Q===!1&&(Q={},I.fatal))){let Y=new Error("Remote $ref resolution failed "+ae+Z);if(I.promise)I.promise.reject(Y);else throw Y}Q=m(Q,V,E,Z,ae,I),Q=g(Q,I)}catch(V){if(I.verbose&&console.warn(V),I.promise&&I.fatal)I.promise.reject(V);else throw V}return N(Q,ae,I),Q}).catch(function(Q){if(I.verbose&&console.warn(Q),I.cache[ae]={},I.promise&&I.fatal)I.promise.reject(Q);else throw Q})}else{const ce='{"$ref":"'+E+'"}';return h(ae,I.encoding||"utf8",I,E,ce).then(function(Q){try{let V=n.parse(Q,{schema:"core",prettyErrors:!0});if(Q=I.externalRef=V,I.cache[ae]=s(Q),Z&&(Q=i(Q,Z),Q===!1&&(Q={},I.fatal))){let Y=new Error("File $ref resolution failed "+ae+Z);if(I.promise)I.promise.reject(Y);else throw Y}Q=m(Q,V,E,Z,ae,I),Q=g(Q,I)}catch(V){if(I.verbose&&console.warn(V),I.promise&&I.fatal)I.promise.reject(V);else throw V}return N(Q,ae,I),Q}).catch(function(Q){if(I.verbose&&console.warn(Q),I.promise&&I.fatal)I.promise.reject(Q);else throw Q})}}function k(T){return new Promise(function(E,I){function N(H,Z,te){if(H[Z]&&c(H[Z],"$ref")){let ee=H[Z].$ref;if(!ee.startsWith("#")){let oe="";if(!$[ee]){let ae=Object.keys($).find(function(ce,Q,V){return ee.startsWith(ce+"/")});ae&&(T.verbose&&console.warn("Found potential subschema at",ae),oe="/"+(ee.split("#")[1]||"").replace(ae.split("#")[1]||""),oe=oe.split("/undefined").join(""),ee=ae)}if($[ee]||($[ee]={resolved:!1,paths:[],extras:{},description:H[Z].description}),$[ee].resolved){if(!$[ee].failed)if(T.rewriteRefs){let ae=$[ee].resolvedAt;T.verbose>1&&console.warn("Rewriting ref",ee,ae),H[Z]["x-miro"]=ee,H[Z].$ref=ae+oe}else H[Z]=s($[ee].data)}else $[ee].paths.push(te.path),$[ee].extras[te.path]=oe}}}let $=T.externalRefs;if(T.resolver.depth>0&&T.source===T.resolver.base)return E($);o(T.openapi.definitions,{identityDetection:!0,path:"#/definitions"},N),o(T.openapi.components,{identityDetection:!0,path:"#/components"},N),o(T.openapi,{identityDetection:!0},N),E($)})}function x(T){return new Promise(function(E,I){k(T).then(function($){for(let H in $)if(!$[H].resolved){let Z=T.resolver.depth;Z>0&&Z++,T.resolver.actions[Z].push(function(){return b(T.openapi,H,T,function(te,ee,oe){if(!$[H].resolved){let Q={};Q.context=$[H],Q.$ref=H,Q.original=s(te),Q.updated=te,Q.source=ee,oe.externals.push(Q),$[H].resolved=!0}let ae=Object.assign({},oe,{source:"",resolver:{actions:oe.resolver.actions,depth:oe.resolver.actions.length-1,base:oe.resolver.base}});oe.patch&&$[H].description&&!te.description&&typeof te=="object"&&(te.description=$[H].description),$[H].data=te;let ce=d($[H].paths);ce=ce.sort(function(Q,V){const Y=Q.startsWith("#/components/")||Q.startsWith("#/definitions/"),G=V.startsWith("#/components/")||V.startsWith("#/definitions/");return Y&&!G?-1:G&&!Y?1:0});for(let Q of ce)if($[H].resolvedAt&&Q!==$[H].resolvedAt&&Q.indexOf("x-ms-examples/")<0)oe.verbose>1&&console.warn("Creating pointer to data at",Q),i(oe.openapi,Q,{$ref:$[H].resolvedAt+$[H].extras[Q],"x-miro":H+$[H].extras[Q]});else{$[H].resolvedAt?oe.verbose>1&&console.warn("Avoiding circular reference"):($[H].resolvedAt=Q,oe.verbose>1&&console.warn("Creating initial clone of data at",Q));let V=s(te);i(oe.openapi,Q,V)}oe.resolver.actions[ae.resolver.depth].length===0&&oe.resolver.actions[ae.resolver.depth].push(function(){return x(ae)})})})}}).catch(function($){T.verbose&&console.warn($),I($)});let N={options:T};N.actions=T.resolver.actions[T.resolver.depth],E(N)})}const w=T=>T.reduce((E,I)=>E.then(N=>I().then(Array.prototype.concat.bind(N))),Promise.resolve([]));function z(T,E,I){T.resolver.actions.push([]),x(T).then(function(N){w(N.actions).then(function(){if(T.resolver.depth>=T.resolver.actions.length)return console.warn("Ran off the end of resolver actions"),E(!0);T.resolver.depth++,T.resolver.actions[T.resolver.depth].length?setTimeout(function(){z(N.options,E,I)},0):(T.verbose>1&&console.warn(u.colour.yellow+"Finished external resolution!",u.colour.normal),T.resolveInternal&&(T.verbose>1&&console.warn(u.colour.yellow+"Starting internal resolution!",u.colour.normal),T.openapi=l(T.openapi,T.original,{verbose:T.verbose-1}),T.verbose>1&&console.warn(u.colour.yellow+"Finished internal resolution!",u.colour.normal)),o(T.openapi,{},function($,H,Z){c($,H)&&(T.preserveMiro||delete $["x-miro"])}),E(T))}).catch(function($){T.verbose&&console.warn($),I($)})}).catch(function(N){T.verbose&&console.warn(N),I(N)})}function S(T){if(T.cache||(T.cache={}),T.fetch||(T.fetch=r),T.source){let E=a.parse(T.source);(!E.protocol||E.protocol.length<=2)&&(T.source=t.resolve(T.source))}T.externals=[],T.externalRefs={},T.rewriteRefs=!0,T.resolver={},T.resolver.depth=0,T.resolver.base=T.source,T.resolver.actions=[[]]}function C(T){return S(T),new Promise(function(E,I){T.resolve?z(T,E,I):E(T)})}function j(T,E,I){return I||(I={}),I.openapi=T,I.source=E,I.resolve=!0,S(I),new Promise(function(N,$){z(I,N,$)})}return k$={optionalResolve:C,resolve:j},k$}var x$,rwe;function HKt(){if(rwe)return x$;rwe=1;function e(){return{depth:0,seen:new WeakMap,top:!0,combine:!1,allowRefSiblings:!1}}function t(a,r,n,i){if(typeof n.depth>"u"&&(n=e()),a===null||typeof a>"u")return a;if(typeof a.$ref<"u"){let o={$ref:a.$ref};return n.allowRefSiblings&&a.description&&(o.description=a.description),i(o,r,n),o}if(n.combine&&(a.allOf&&Array.isArray(a.allOf)&&a.allOf.length===1&&(a=Object.assign({},a.allOf[0],a),delete a.allOf),a.anyOf&&Array.isArray(a.anyOf)&&a.anyOf.length===1&&(a=Object.assign({},a.anyOf[0],a),delete a.anyOf),a.oneOf&&Array.isArray(a.oneOf)&&a.oneOf.length===1&&(a=Object.assign({},a.oneOf[0],a),delete a.oneOf)),i(a,r,n),n.seen.has(a))return a;if(typeof a=="object"&&a!==null&&n.seen.set(a,!0),n.top=!1,n.depth++,typeof a.items<"u"&&(n.property="items",t(a.items,a,n,i)),a.additionalItems&&typeof a.additionalItems=="object"&&(n.property="additionalItems",t(a.additionalItems,a,n,i)),a.additionalProperties&&typeof a.additionalProperties=="object"&&(n.property="additionalProperties",t(a.additionalProperties,a,n,i)),a.properties)for(let o in a.properties){let s=a.properties[o];n.property="properties/"+o,t(s,a,n,i)}if(a.patternProperties)for(let o in a.patternProperties){let s=a.patternProperties[o];n.property="patternProperties/"+o,t(s,a,n,i)}if(a.allOf)for(let o in a.allOf){let s=a.allOf[o];n.property="allOf/"+o,t(s,a,n,i)}if(a.anyOf)for(let o in a.anyOf){let s=a.anyOf[o];n.property="anyOf/"+o,t(s,a,n,i)}if(a.oneOf)for(let o in a.oneOf){let s=a.oneOf[o];n.property="oneOf/"+o,t(s,a,n,i)}return a.not&&(n.property="not",t(a.not,a,n,i)),n.depth--,a}return x$={getDefaultState:e,walkSchema:t},x$}var nwe={},w$={exports:{}},iwe={},owe;function swe(){return owe||(owe=1,(function(e){e.fetch=n(globalThis.fetch)&&n(globalThis.ReadableStream),e.writableStream=n(globalThis.WritableStream),e.abortController=n(globalThis.AbortController);var t;function a(){if(t!==void 0)return t;if(globalThis.XMLHttpRequest){t=new globalThis.XMLHttpRequest;try{t.open("GET",globalThis.XDomainRequest?"/":"https://example.com")}catch{t=null}}else t=null;return t}function r(i){var o=a();if(!o)return!1;try{return o.responseType=i,o.responseType===i}catch{}return!1}e.arraybuffer=e.fetch||r("arraybuffer"),e.msstream=!e.fetch&&r("ms-stream"),e.mozchunkedarraybuffer=!e.fetch&&r("moz-chunked-arraybuffer"),e.overrideMimeType=e.fetch||(a()?n(a().overrideMimeType):!1);function n(i){return typeof i=="function"}t=null})(iwe)),iwe}var tM={},S$={exports:{}},aM={exports:{}},lwe;function VKt(){if(lwe)return aM.exports;lwe=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(z,S,C){return Function.prototype.apply.call(z,S,C)},a;e&&typeof e.ownKeys=="function"?a=e.ownKeys:Object.getOwnPropertySymbols?a=function(z){return Object.getOwnPropertyNames(z).concat(Object.getOwnPropertySymbols(z))}:a=function(z){return Object.getOwnPropertyNames(z)};function r(z){console&&console.warn&&console.warn(z)}var n=Number.isNaN||function(z){return z!==z};function i(){i.init.call(this)}aM.exports=i,aM.exports.once=k,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(z){if(typeof z!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof z)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(z){if(typeof z!="number"||z<0||n(z))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+z+".");o=z}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(z){if(typeof z!="number"||z<0||n(z))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+z+".");return this._maxListeners=z,this};function l(z){return z._maxListeners===void 0?i.defaultMaxListeners:z._maxListeners}i.prototype.getMaxListeners=function(){return l(this)},i.prototype.emit=function(z){for(var S=[],C=1;C<arguments.length;C++)S.push(arguments[C]);var j=z==="error",T=this._events;if(T!==void 0)j=j&&T.error===void 0;else if(!j)return!1;if(j){var E;if(S.length>0&&(E=S[0]),E instanceof Error)throw E;var I=new Error("Unhandled error."+(E?" ("+E.message+")":""));throw I.context=E,I}var N=T[z];if(N===void 0)return!1;if(typeof N=="function")t(N,this,S);else for(var $=N.length,H=g(N,$),C=0;C<$;++C)t(H[C],this,S);return!0};function c(z,S,C,j){var T,E,I;if(s(C),E=z._events,E===void 0?(E=z._events=Object.create(null),z._eventsCount=0):(E.newListener!==void 0&&(z.emit("newListener",S,C.listener?C.listener:C),E=z._events),I=E[S]),I===void 0)I=E[S]=C,++z._eventsCount;else if(typeof I=="function"?I=E[S]=j?[C,I]:[I,C]:j?I.unshift(C):I.push(C),T=l(z),T>0&&I.length>T&&!I.warned){I.warned=!0;var N=new Error("Possible EventEmitter memory leak detected. "+I.length+" "+String(S)+" listeners added. Use emitter.setMaxListeners() to increase limit");N.name="MaxListenersExceededWarning",N.emitter=z,N.type=S,N.count=I.length,r(N)}return z}i.prototype.addListener=function(z,S){return c(this,z,S,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(z,S){return c(this,z,S,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(z,S,C){var j={fired:!1,wrapFn:void 0,target:z,type:S,listener:C},T=u.bind(j);return T.listener=C,j.wrapFn=T,T}i.prototype.once=function(z,S){return s(S),this.on(z,d(this,z,S)),this},i.prototype.prependOnceListener=function(z,S){return s(S),this.prependListener(z,d(this,z,S)),this},i.prototype.removeListener=function(z,S){var C,j,T,E,I;if(s(S),j=this._events,j===void 0)return this;if(C=j[z],C===void 0)return this;if(C===S||C.listener===S)--this._eventsCount===0?this._events=Object.create(null):(delete j[z],j.removeListener&&this.emit("removeListener",z,C.listener||S));else if(typeof C!="function"){for(T=-1,E=C.length-1;E>=0;E--)if(C[E]===S||C[E].listener===S){I=C[E].listener,T=E;break}if(T<0)return this;T===0?C.shift():v(C,T),C.length===1&&(j[z]=C[0]),j.removeListener!==void 0&&this.emit("removeListener",z,I||S)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(z){var S,C,j;if(C=this._events,C===void 0)return this;if(C.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):C[z]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete C[z]),this;if(arguments.length===0){var T=Object.keys(C),E;for(j=0;j<T.length;++j)E=T[j],E!=="removeListener"&&this.removeAllListeners(E);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(S=C[z],typeof S=="function")this.removeListener(z,S);else if(S!==void 0)for(j=S.length-1;j>=0;j--)this.removeListener(z,S[j]);return this};function h(z,S,C){var j=z._events;if(j===void 0)return[];var T=j[S];return T===void 0?[]:typeof T=="function"?C?[T.listener||T]:[T]:C?b(T):g(T,T.length)}i.prototype.listeners=function(z){return h(this,z,!0)},i.prototype.rawListeners=function(z){return h(this,z,!1)},i.listenerCount=function(z,S){return typeof z.listenerCount=="function"?z.listenerCount(S):m.call(z,S)},i.prototype.listenerCount=m;function m(z){var S=this._events;if(S!==void 0){var C=S[z];if(typeof C=="function")return 1;if(C!==void 0)return C.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?a(this._events):[]};function g(z,S){for(var C=new Array(S),j=0;j<S;++j)C[j]=z[j];return C}function v(z,S){for(;S+1<z.length;S++)z[S]=z[S+1];z.pop()}function b(z){for(var S=new Array(z.length),C=0;C<S.length;++C)S[C]=z[C].listener||z[C];return S}function k(z,S){return new Promise(function(C,j){function T(I){z.removeListener(S,E),j(I)}function E(){typeof z.removeListener=="function"&&z.removeListener("error",T),C([].slice.call(arguments))}w(z,S,E,{once:!0}),S!=="error"&&x(z,T,{once:!0})})}function x(z,S,C){typeof z.on=="function"&&w(z,"error",S,C)}function w(z,S,C,j){if(typeof z.on=="function")j.once?z.once(S,C):z.on(S,C);else if(typeof z.addEventListener=="function")z.addEventListener(S,function T(E){j.once&&z.removeEventListener(S,T),C(E)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof z)}return aM.exports}var cwe,uwe;function dwe(){return uwe||(uwe=1,cwe=VKt().EventEmitter),cwe}var pwe={},tz={},hwe;function FKt(){if(hwe)return tz;hwe=1,tz.byteLength=s,tz.toByteArray=c,tz.fromByteArray=h;for(var e=[],t=[],a=typeof Uint8Array<"u"?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n=0,i=r.length;n<i;++n)e[n]=r[n],t[r.charCodeAt(n)]=n;t[45]=62,t[95]=63;function o(m){var g=m.length;if(g%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var v=m.indexOf("=");v===-1&&(v=g);var b=v===g?0:4-v%4;return[v,b]}function s(m){var g=o(m),v=g[0],b=g[1];return(v+b)*3/4-b}function l(m,g,v){return(g+v)*3/4-v}function c(m){var g,v=o(m),b=v[0],k=v[1],x=new a(l(m,b,k)),w=0,z=k>0?b-4:b,S;for(S=0;S<z;S+=4)g=t[m.charCodeAt(S)]<<18|t[m.charCodeAt(S+1)]<<12|t[m.charCodeAt(S+2)]<<6|t[m.charCodeAt(S+3)],x[w++]=g>>16&255,x[w++]=g>>8&255,x[w++]=g&255;return k===2&&(g=t[m.charCodeAt(S)]<<2|t[m.charCodeAt(S+1)]>>4,x[w++]=g&255),k===1&&(g=t[m.charCodeAt(S)]<<10|t[m.charCodeAt(S+1)]<<4|t[m.charCodeAt(S+2)]>>2,x[w++]=g>>8&255,x[w++]=g&255),x}function u(m){return e[m>>18&63]+e[m>>12&63]+e[m>>6&63]+e[m&63]}function d(m,g,v){for(var b,k=[],x=g;x<v;x+=3)b=(m[x]<<16&16711680)+(m[x+1]<<8&65280)+(m[x+2]&255),k.push(u(b));return k.join("")}function h(m){for(var g,v=m.length,b=v%3,k=[],x=16383,w=0,z=v-b;w<z;w+=x)k.push(d(m,w,w+x>z?z:w+x));return b===1?(g=m[v-1],k.push(e[g>>2]+e[g<<4&63]+"==")):b===2&&(g=(m[v-2]<<8)+m[v-1],k.push(e[g>>10]+e[g>>4&63]+e[g<<2&63]+"=")),k.join("")}return tz}var O$={},mwe;function qKt(){return mwe||(mwe=1,O$.read=function(e,t,a,r,n){var i,o,s=n*8-r-1,l=(1<<s)-1,c=l>>1,u=-7,d=a?n-1:0,h=a?-1:1,m=e[t+d];for(d+=h,i=m&(1<<-u)-1,m>>=-u,u+=s;u>0;i=i*256+e[t+d],d+=h,u-=8);for(o=i&(1<<-u)-1,i>>=-u,u+=r;u>0;o=o*256+e[t+d],d+=h,u-=8);if(i===0)i=1-c;else{if(i===l)return o?NaN:(m?-1:1)*(1/0);o=o+Math.pow(2,r),i=i-c}return(m?-1:1)*o*Math.pow(2,i-r)},O$.write=function(e,t,a,r,n,i){var o,s,l,c=i*8-n-1,u=(1<<c)-1,d=u>>1,h=n===23?Math.pow(2,-24)-Math.pow(2,-77):0,m=r?0:i-1,g=r?1:-1,v=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,o=u):(o=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-o))<1&&(o--,l*=2),o+d>=1?t+=h/l:t+=h*Math.pow(2,1-d),t*l>=2&&(o++,l/=2),o+d>=u?(s=0,o=u):o+d>=1?(s=(t*l-1)*Math.pow(2,n),o=o+d):(s=t*Math.pow(2,d-1)*Math.pow(2,n),o=0));n>=8;e[a+m]=s&255,m+=g,s/=256,n-=8);for(o=o<<n|s,c+=n;c>0;e[a+m]=o&255,m+=g,o/=256,c-=8);e[a+m-g]|=v*128}),O$}var fwe;function az(){return fwe||(fwe=1,(function(e){const t=FKt(),a=qKt(),r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=s,e.SlowBuffer=x,e.INSPECT_MAX_BYTES=50;const n=2147483647;e.kMaxLength=n,s.TYPED_ARRAY_SUPPORT=i(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function i(){try{const _=new Uint8Array(1),W={foo:function(){return 42}};return Object.setPrototypeOf(W,Uint8Array.prototype),Object.setPrototypeOf(_,W),_.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function o(_){if(_>n)throw new RangeError('The value "'+_+'" is invalid for option "size"');const W=new Uint8Array(_);return Object.setPrototypeOf(W,s.prototype),W}function s(_,W,ne){if(typeof _=="number"){if(typeof W=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return d(_)}return l(_,W,ne)}s.poolSize=8192;function l(_,W,ne){if(typeof _=="string")return h(_,W);if(ArrayBuffer.isView(_))return g(_);if(_==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _);if(Me(_,ArrayBuffer)||_&&Me(_.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(Me(_,SharedArrayBuffer)||_&&Me(_.buffer,SharedArrayBuffer)))return v(_,W,ne);if(typeof _=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const ge=_.valueOf&&_.valueOf();if(ge!=null&&ge!==_)return s.from(ge,W,ne);const Pe=b(_);if(Pe)return Pe;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof _[Symbol.toPrimitive]=="function")return s.from(_[Symbol.toPrimitive]("string"),W,ne);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof _)}s.from=function(_,W,ne){return l(_,W,ne)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function c(_){if(typeof _!="number")throw new TypeError('"size" argument must be of type number');if(_<0)throw new RangeError('The value "'+_+'" is invalid for option "size"')}function u(_,W,ne){return c(_),_<=0?o(_):W!==void 0?typeof ne=="string"?o(_).fill(W,ne):o(_).fill(W):o(_)}s.alloc=function(_,W,ne){return u(_,W,ne)};function d(_){return c(_),o(_<0?0:k(_)|0)}s.allocUnsafe=function(_){return d(_)},s.allocUnsafeSlow=function(_){return d(_)};function h(_,W){if((typeof W!="string"||W==="")&&(W="utf8"),!s.isEncoding(W))throw new TypeError("Unknown encoding: "+W);const ne=w(_,W)|0;let ge=o(ne);const Pe=ge.write(_,W);return Pe!==ne&&(ge=ge.slice(0,Pe)),ge}function m(_){const W=_.length<0?0:k(_.length)|0,ne=o(W);for(let ge=0;ge<W;ge+=1)ne[ge]=_[ge]&255;return ne}function g(_){if(Me(_,Uint8Array)){const W=new Uint8Array(_);return v(W.buffer,W.byteOffset,W.byteLength)}return m(_)}function v(_,W,ne){if(W<0||_.byteLength<W)throw new RangeError('"offset" is outside of buffer bounds');if(_.byteLength<W+(ne||0))throw new RangeError('"length" is outside of buffer bounds');let ge;return W===void 0&&ne===void 0?ge=new Uint8Array(_):ne===void 0?ge=new Uint8Array(_,W):ge=new Uint8Array(_,W,ne),Object.setPrototypeOf(ge,s.prototype),ge}function b(_){if(s.isBuffer(_)){const W=k(_.length)|0,ne=o(W);return ne.length===0||_.copy(ne,0,0,W),ne}if(_.length!==void 0)return typeof _.length!="number"||de(_.length)?o(0):m(_);if(_.type==="Buffer"&&Array.isArray(_.data))return m(_.data)}function k(_){if(_>=n)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+n.toString(16)+" bytes");return _|0}function x(_){return+_!=_&&(_=0),s.alloc(+_)}s.isBuffer=function(_){return _!=null&&_._isBuffer===!0&&_!==s.prototype},s.compare=function(_,W){if(Me(_,Uint8Array)&&(_=s.from(_,_.offset,_.byteLength)),Me(W,Uint8Array)&&(W=s.from(W,W.offset,W.byteLength)),!s.isBuffer(_)||!s.isBuffer(W))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(_===W)return 0;let ne=_.length,ge=W.length;for(let Pe=0,Te=Math.min(ne,ge);Pe<Te;++Pe)if(_[Pe]!==W[Pe]){ne=_[Pe],ge=W[Pe];break}return ne<ge?-1:ge<ne?1:0},s.isEncoding=function(_){switch(String(_).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(_,W){if(!Array.isArray(_))throw new TypeError('"list" argument must be an Array of Buffers');if(_.length===0)return s.alloc(0);let ne;if(W===void 0)for(W=0,ne=0;ne<_.length;++ne)W+=_[ne].length;const ge=s.allocUnsafe(W);let Pe=0;for(ne=0;ne<_.length;++ne){let Te=_[ne];if(Me(Te,Uint8Array))Pe+Te.length>ge.length?(s.isBuffer(Te)||(Te=s.from(Te)),Te.copy(ge,Pe)):Uint8Array.prototype.set.call(ge,Te,Pe);else if(s.isBuffer(Te))Te.copy(ge,Pe);else throw new TypeError('"list" argument must be an Array of Buffers');Pe+=Te.length}return ge};function w(_,W){if(s.isBuffer(_))return _.length;if(ArrayBuffer.isView(_)||Me(_,ArrayBuffer))return _.byteLength;if(typeof _!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof _);const ne=_.length,ge=arguments.length>2&&arguments[2]===!0;if(!ge&&ne===0)return 0;let Pe=!1;for(;;)switch(W){case"ascii":case"latin1":case"binary":return ne;case"utf8":case"utf-8":return le(_).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ne*2;case"hex":return ne>>>1;case"base64":return Re(_).length;default:if(Pe)return ge?-1:le(_).length;W=(""+W).toLowerCase(),Pe=!0}}s.byteLength=w;function z(_,W,ne){let ge=!1;if((W===void 0||W<0)&&(W=0),W>this.length||((ne===void 0||ne>this.length)&&(ne=this.length),ne<=0)||(ne>>>=0,W>>>=0,ne<=W))return"";for(_||(_="utf8");;)switch(_){case"hex":return ce(this,W,ne);case"utf8":case"utf-8":return Z(this,W,ne);case"ascii":return oe(this,W,ne);case"latin1":case"binary":return ae(this,W,ne);case"base64":return H(this,W,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Q(this,W,ne);default:if(ge)throw new TypeError("Unknown encoding: "+_);_=(_+"").toLowerCase(),ge=!0}}s.prototype._isBuffer=!0;function S(_,W,ne){const ge=_[W];_[W]=_[ne],_[ne]=ge}s.prototype.swap16=function(){const _=this.length;if(_%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let W=0;W<_;W+=2)S(this,W,W+1);return this},s.prototype.swap32=function(){const _=this.length;if(_%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let W=0;W<_;W+=4)S(this,W,W+3),S(this,W+1,W+2);return this},s.prototype.swap64=function(){const _=this.length;if(_%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let W=0;W<_;W+=8)S(this,W,W+7),S(this,W+1,W+6),S(this,W+2,W+5),S(this,W+3,W+4);return this},s.prototype.toString=function(){const _=this.length;return _===0?"":arguments.length===0?Z(this,0,_):z.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(_){if(!s.isBuffer(_))throw new TypeError("Argument must be a Buffer");return this===_?!0:s.compare(this,_)===0},s.prototype.inspect=function(){let _="";const W=e.INSPECT_MAX_BYTES;return _=this.toString("hex",0,W).replace(/(.{2})/g,"$1 ").trim(),this.length>W&&(_+=" ... "),"<Buffer "+_+">"},r&&(s.prototype[r]=s.prototype.inspect),s.prototype.compare=function(_,W,ne,ge,Pe){if(Me(_,Uint8Array)&&(_=s.from(_,_.offset,_.byteLength)),!s.isBuffer(_))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof _);if(W===void 0&&(W=0),ne===void 0&&(ne=_?_.length:0),ge===void 0&&(ge=0),Pe===void 0&&(Pe=this.length),W<0||ne>_.length||ge<0||Pe>this.length)throw new RangeError("out of range index");if(ge>=Pe&&W>=ne)return 0;if(ge>=Pe)return-1;if(W>=ne)return 1;if(W>>>=0,ne>>>=0,ge>>>=0,Pe>>>=0,this===_)return 0;let Te=Pe-ge,Le=ne-W;const rt=Math.min(Te,Le),ot=this.slice(ge,Pe),Je=_.slice(W,ne);for(let Xe=0;Xe<rt;++Xe)if(ot[Xe]!==Je[Xe]){Te=ot[Xe],Le=Je[Xe];break}return Te<Le?-1:Le<Te?1:0};function C(_,W,ne,ge,Pe){if(_.length===0)return-1;if(typeof ne=="string"?(ge=ne,ne=0):ne>2147483647?ne=2147483647:ne<-2147483648&&(ne=-2147483648),ne=+ne,de(ne)&&(ne=Pe?0:_.length-1),ne<0&&(ne=_.length+ne),ne>=_.length){if(Pe)return-1;ne=_.length-1}else if(ne<0)if(Pe)ne=0;else return-1;if(typeof W=="string"&&(W=s.from(W,ge)),s.isBuffer(W))return W.length===0?-1:j(_,W,ne,ge,Pe);if(typeof W=="number")return W=W&255,typeof Uint8Array.prototype.indexOf=="function"?Pe?Uint8Array.prototype.indexOf.call(_,W,ne):Uint8Array.prototype.lastIndexOf.call(_,W,ne):j(_,[W],ne,ge,Pe);throw new TypeError("val must be string, number or Buffer")}function j(_,W,ne,ge,Pe){let Te=1,Le=_.length,rt=W.length;if(ge!==void 0&&(ge=String(ge).toLowerCase(),ge==="ucs2"||ge==="ucs-2"||ge==="utf16le"||ge==="utf-16le")){if(_.length<2||W.length<2)return-1;Te=2,Le/=2,rt/=2,ne/=2}function ot(Xe,jt){return Te===1?Xe[jt]:Xe.readUInt16BE(jt*Te)}let Je;if(Pe){let Xe=-1;for(Je=ne;Je<Le;Je++)if(ot(_,Je)===ot(W,Xe===-1?0:Je-Xe)){if(Xe===-1&&(Xe=Je),Je-Xe+1===rt)return Xe*Te}else Xe!==-1&&(Je-=Je-Xe),Xe=-1}else for(ne+rt>Le&&(ne=Le-rt),Je=ne;Je>=0;Je--){let Xe=!0;for(let jt=0;jt<rt;jt++)if(ot(_,Je+jt)!==ot(W,jt)){Xe=!1;break}if(Xe)return Je}return-1}s.prototype.includes=function(_,W,ne){return this.indexOf(_,W,ne)!==-1},s.prototype.indexOf=function(_,W,ne){return C(this,_,W,ne,!0)},s.prototype.lastIndexOf=function(_,W,ne){return C(this,_,W,ne,!1)};function T(_,W,ne,ge){ne=Number(ne)||0;const Pe=_.length-ne;ge?(ge=Number(ge),ge>Pe&&(ge=Pe)):ge=Pe;const Te=W.length;ge>Te/2&&(ge=Te/2);let Le;for(Le=0;Le<ge;++Le){const rt=parseInt(W.substr(Le*2,2),16);if(de(rt))return Le;_[ne+Le]=rt}return Le}function E(_,W,ne,ge){return Ce(le(W,_.length-ne),_,ne,ge)}function I(_,W,ne,ge){return Ce(je(W),_,ne,ge)}function N(_,W,ne,ge){return Ce(Re(W),_,ne,ge)}function $(_,W,ne,ge){return Ce(be(W,_.length-ne),_,ne,ge)}s.prototype.write=function(_,W,ne,ge){if(W===void 0)ge="utf8",ne=this.length,W=0;else if(ne===void 0&&typeof W=="string")ge=W,ne=this.length,W=0;else if(isFinite(W))W=W>>>0,isFinite(ne)?(ne=ne>>>0,ge===void 0&&(ge="utf8")):(ge=ne,ne=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const Pe=this.length-W;if((ne===void 0||ne>Pe)&&(ne=Pe),_.length>0&&(ne<0||W<0)||W>this.length)throw new RangeError("Attempt to write outside buffer bounds");ge||(ge="utf8");let Te=!1;for(;;)switch(ge){case"hex":return T(this,_,W,ne);case"utf8":case"utf-8":return E(this,_,W,ne);case"ascii":case"latin1":case"binary":return I(this,_,W,ne);case"base64":return N(this,_,W,ne);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,_,W,ne);default:if(Te)throw new TypeError("Unknown encoding: "+ge);ge=(""+ge).toLowerCase(),Te=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(_,W,ne){return W===0&&ne===_.length?t.fromByteArray(_):t.fromByteArray(_.slice(W,ne))}function Z(_,W,ne){ne=Math.min(_.length,ne);const ge=[];let Pe=W;for(;Pe<ne;){const Te=_[Pe];let Le=null,rt=Te>239?4:Te>223?3:Te>191?2:1;if(Pe+rt<=ne){let ot,Je,Xe,jt;switch(rt){case 1:Te<128&&(Le=Te);break;case 2:ot=_[Pe+1],(ot&192)===128&&(jt=(Te&31)<<6|ot&63,jt>127&&(Le=jt));break;case 3:ot=_[Pe+1],Je=_[Pe+2],(ot&192)===128&&(Je&192)===128&&(jt=(Te&15)<<12|(ot&63)<<6|Je&63,jt>2047&&(jt<55296||jt>57343)&&(Le=jt));break;case 4:ot=_[Pe+1],Je=_[Pe+2],Xe=_[Pe+3],(ot&192)===128&&(Je&192)===128&&(Xe&192)===128&&(jt=(Te&15)<<18|(ot&63)<<12|(Je&63)<<6|Xe&63,jt>65535&&jt<1114112&&(Le=jt))}}Le===null?(Le=65533,rt=1):Le>65535&&(Le-=65536,ge.push(Le>>>10&1023|55296),Le=56320|Le&1023),ge.push(Le),Pe+=rt}return ee(ge)}const te=4096;function ee(_){const W=_.length;if(W<=te)return String.fromCharCode.apply(String,_);let ne="",ge=0;for(;ge<W;)ne+=String.fromCharCode.apply(String,_.slice(ge,ge+=te));return ne}function oe(_,W,ne){let ge="";ne=Math.min(_.length,ne);for(let Pe=W;Pe<ne;++Pe)ge+=String.fromCharCode(_[Pe]&127);return ge}function ae(_,W,ne){let ge="";ne=Math.min(_.length,ne);for(let Pe=W;Pe<ne;++Pe)ge+=String.fromCharCode(_[Pe]);return ge}function ce(_,W,ne){const ge=_.length;(!W||W<0)&&(W=0),(!ne||ne<0||ne>ge)&&(ne=ge);let Pe="";for(let Te=W;Te<ne;++Te)Pe+=Ae[_[Te]];return Pe}function Q(_,W,ne){const ge=_.slice(W,ne);let Pe="";for(let Te=0;Te<ge.length-1;Te+=2)Pe+=String.fromCharCode(ge[Te]+ge[Te+1]*256);return Pe}s.prototype.slice=function(_,W){const ne=this.length;_=~~_,W=W===void 0?ne:~~W,_<0?(_+=ne,_<0&&(_=0)):_>ne&&(_=ne),W<0?(W+=ne,W<0&&(W=0)):W>ne&&(W=ne),W<_&&(W=_);const ge=this.subarray(_,W);return Object.setPrototypeOf(ge,s.prototype),ge};function V(_,W,ne){if(_%1!==0||_<0)throw new RangeError("offset is not uint");if(_+W>ne)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(_,W,ne){_=_>>>0,W=W>>>0,ne||V(_,W,this.length);let ge=this[_],Pe=1,Te=0;for(;++Te<W&&(Pe*=256);)ge+=this[_+Te]*Pe;return ge},s.prototype.readUintBE=s.prototype.readUIntBE=function(_,W,ne){_=_>>>0,W=W>>>0,ne||V(_,W,this.length);let ge=this[_+--W],Pe=1;for(;W>0&&(Pe*=256);)ge+=this[_+--W]*Pe;return ge},s.prototype.readUint8=s.prototype.readUInt8=function(_,W){return _=_>>>0,W||V(_,1,this.length),this[_]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(_,W){return _=_>>>0,W||V(_,2,this.length),this[_]|this[_+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(_,W){return _=_>>>0,W||V(_,2,this.length),this[_]<<8|this[_+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(_,W){return _=_>>>0,W||V(_,4,this.length),(this[_]|this[_+1]<<8|this[_+2]<<16)+this[_+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(_,W){return _=_>>>0,W||V(_,4,this.length),this[_]*16777216+(this[_+1]<<16|this[_+2]<<8|this[_+3])},s.prototype.readBigUInt64LE=Qe(function(_){_=_>>>0,re(_,"offset");const W=this[_],ne=this[_+7];(W===void 0||ne===void 0)&&ve(_,this.length-8);const ge=W+this[++_]*2**8+this[++_]*2**16+this[++_]*2**24,Pe=this[++_]+this[++_]*2**8+this[++_]*2**16+ne*2**24;return BigInt(ge)+(BigInt(Pe)<<BigInt(32))}),s.prototype.readBigUInt64BE=Qe(function(_){_=_>>>0,re(_,"offset");const W=this[_],ne=this[_+7];(W===void 0||ne===void 0)&&ve(_,this.length-8);const ge=W*2**24+this[++_]*2**16+this[++_]*2**8+this[++_],Pe=this[++_]*2**24+this[++_]*2**16+this[++_]*2**8+ne;return(BigInt(ge)<<BigInt(32))+BigInt(Pe)}),s.prototype.readIntLE=function(_,W,ne){_=_>>>0,W=W>>>0,ne||V(_,W,this.length);let ge=this[_],Pe=1,Te=0;for(;++Te<W&&(Pe*=256);)ge+=this[_+Te]*Pe;return Pe*=128,ge>=Pe&&(ge-=Math.pow(2,8*W)),ge},s.prototype.readIntBE=function(_,W,ne){_=_>>>0,W=W>>>0,ne||V(_,W,this.length);let ge=W,Pe=1,Te=this[_+--ge];for(;ge>0&&(Pe*=256);)Te+=this[_+--ge]*Pe;return Pe*=128,Te>=Pe&&(Te-=Math.pow(2,8*W)),Te},s.prototype.readInt8=function(_,W){return _=_>>>0,W||V(_,1,this.length),this[_]&128?(255-this[_]+1)*-1:this[_]},s.prototype.readInt16LE=function(_,W){_=_>>>0,W||V(_,2,this.length);const ne=this[_]|this[_+1]<<8;return ne&32768?ne|4294901760:ne},s.prototype.readInt16BE=function(_,W){_=_>>>0,W||V(_,2,this.length);const ne=this[_+1]|this[_]<<8;return ne&32768?ne|4294901760:ne},s.prototype.readInt32LE=function(_,W){return _=_>>>0,W||V(_,4,this.length),this[_]|this[_+1]<<8|this[_+2]<<16|this[_+3]<<24},s.prototype.readInt32BE=function(_,W){return _=_>>>0,W||V(_,4,this.length),this[_]<<24|this[_+1]<<16|this[_+2]<<8|this[_+3]},s.prototype.readBigInt64LE=Qe(function(_){_=_>>>0,re(_,"offset");const W=this[_],ne=this[_+7];(W===void 0||ne===void 0)&&ve(_,this.length-8);const ge=this[_+4]+this[_+5]*2**8+this[_+6]*2**16+(ne<<24);return(BigInt(ge)<<BigInt(32))+BigInt(W+this[++_]*2**8+this[++_]*2**16+this[++_]*2**24)}),s.prototype.readBigInt64BE=Qe(function(_){_=_>>>0,re(_,"offset");const W=this[_],ne=this[_+7];(W===void 0||ne===void 0)&&ve(_,this.length-8);const ge=(W<<24)+this[++_]*2**16+this[++_]*2**8+this[++_];return(BigInt(ge)<<BigInt(32))+BigInt(this[++_]*2**24+this[++_]*2**16+this[++_]*2**8+ne)}),s.prototype.readFloatLE=function(_,W){return _=_>>>0,W||V(_,4,this.length),a.read(this,_,!0,23,4)},s.prototype.readFloatBE=function(_,W){return _=_>>>0,W||V(_,4,this.length),a.read(this,_,!1,23,4)},s.prototype.readDoubleLE=function(_,W){return _=_>>>0,W||V(_,8,this.length),a.read(this,_,!0,52,8)},s.prototype.readDoubleBE=function(_,W){return _=_>>>0,W||V(_,8,this.length),a.read(this,_,!1,52,8)};function Y(_,W,ne,ge,Pe,Te){if(!s.isBuffer(_))throw new TypeError('"buffer" argument must be a Buffer instance');if(W>Pe||W<Te)throw new RangeError('"value" argument is out of bounds');if(ne+ge>_.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(_,W,ne,ge){if(_=+_,W=W>>>0,ne=ne>>>0,!ge){const Le=Math.pow(2,8*ne)-1;Y(this,_,W,ne,Le,0)}let Pe=1,Te=0;for(this[W]=_&255;++Te<ne&&(Pe*=256);)this[W+Te]=_/Pe&255;return W+ne},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(_,W,ne,ge){if(_=+_,W=W>>>0,ne=ne>>>0,!ge){const Le=Math.pow(2,8*ne)-1;Y(this,_,W,ne,Le,0)}let Pe=ne-1,Te=1;for(this[W+Pe]=_&255;--Pe>=0&&(Te*=256);)this[W+Pe]=_/Te&255;return W+ne},s.prototype.writeUint8=s.prototype.writeUInt8=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,1,255,0),this[W]=_&255,W+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,2,65535,0),this[W]=_&255,this[W+1]=_>>>8,W+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,2,65535,0),this[W]=_>>>8,this[W+1]=_&255,W+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,4,4294967295,0),this[W+3]=_>>>24,this[W+2]=_>>>16,this[W+1]=_>>>8,this[W]=_&255,W+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,4,4294967295,0),this[W]=_>>>24,this[W+1]=_>>>16,this[W+2]=_>>>8,this[W+3]=_&255,W+4};function G(_,W,ne,ge,Pe){L(W,ge,Pe,_,ne,7);let Te=Number(W&BigInt(4294967295));_[ne++]=Te,Te=Te>>8,_[ne++]=Te,Te=Te>>8,_[ne++]=Te,Te=Te>>8,_[ne++]=Te;let Le=Number(W>>BigInt(32)&BigInt(4294967295));return _[ne++]=Le,Le=Le>>8,_[ne++]=Le,Le=Le>>8,_[ne++]=Le,Le=Le>>8,_[ne++]=Le,ne}function D(_,W,ne,ge,Pe){L(W,ge,Pe,_,ne,7);let Te=Number(W&BigInt(4294967295));_[ne+7]=Te,Te=Te>>8,_[ne+6]=Te,Te=Te>>8,_[ne+5]=Te,Te=Te>>8,_[ne+4]=Te;let Le=Number(W>>BigInt(32)&BigInt(4294967295));return _[ne+3]=Le,Le=Le>>8,_[ne+2]=Le,Le=Le>>8,_[ne+1]=Le,Le=Le>>8,_[ne]=Le,ne+8}s.prototype.writeBigUInt64LE=Qe(function(_,W=0){return G(this,_,W,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Qe(function(_,W=0){return D(this,_,W,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(_,W,ne,ge){if(_=+_,W=W>>>0,!ge){const rt=Math.pow(2,8*ne-1);Y(this,_,W,ne,rt-1,-rt)}let Pe=0,Te=1,Le=0;for(this[W]=_&255;++Pe<ne&&(Te*=256);)_<0&&Le===0&&this[W+Pe-1]!==0&&(Le=1),this[W+Pe]=(_/Te>>0)-Le&255;return W+ne},s.prototype.writeIntBE=function(_,W,ne,ge){if(_=+_,W=W>>>0,!ge){const rt=Math.pow(2,8*ne-1);Y(this,_,W,ne,rt-1,-rt)}let Pe=ne-1,Te=1,Le=0;for(this[W+Pe]=_&255;--Pe>=0&&(Te*=256);)_<0&&Le===0&&this[W+Pe+1]!==0&&(Le=1),this[W+Pe]=(_/Te>>0)-Le&255;return W+ne},s.prototype.writeInt8=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,1,127,-128),_<0&&(_=255+_+1),this[W]=_&255,W+1},s.prototype.writeInt16LE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,2,32767,-32768),this[W]=_&255,this[W+1]=_>>>8,W+2},s.prototype.writeInt16BE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,2,32767,-32768),this[W]=_>>>8,this[W+1]=_&255,W+2},s.prototype.writeInt32LE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,4,2147483647,-2147483648),this[W]=_&255,this[W+1]=_>>>8,this[W+2]=_>>>16,this[W+3]=_>>>24,W+4},s.prototype.writeInt32BE=function(_,W,ne){return _=+_,W=W>>>0,ne||Y(this,_,W,4,2147483647,-2147483648),_<0&&(_=4294967295+_+1),this[W]=_>>>24,this[W+1]=_>>>16,this[W+2]=_>>>8,this[W+3]=_&255,W+4},s.prototype.writeBigInt64LE=Qe(function(_,W=0){return G(this,_,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Qe(function(_,W=0){return D(this,_,W,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function U(_,W,ne,ge,Pe,Te){if(ne+ge>_.length)throw new RangeError("Index out of range");if(ne<0)throw new RangeError("Index out of range")}function K(_,W,ne,ge,Pe){return W=+W,ne=ne>>>0,Pe||U(_,W,ne,4),a.write(_,W,ne,ge,23,4),ne+4}s.prototype.writeFloatLE=function(_,W,ne){return K(this,_,W,!0,ne)},s.prototype.writeFloatBE=function(_,W,ne){return K(this,_,W,!1,ne)};function X(_,W,ne,ge,Pe){return W=+W,ne=ne>>>0,Pe||U(_,W,ne,8),a.write(_,W,ne,ge,52,8),ne+8}s.prototype.writeDoubleLE=function(_,W,ne){return X(this,_,W,!0,ne)},s.prototype.writeDoubleBE=function(_,W,ne){return X(this,_,W,!1,ne)},s.prototype.copy=function(_,W,ne,ge){if(!s.isBuffer(_))throw new TypeError("argument should be a Buffer");if(ne||(ne=0),!ge&&ge!==0&&(ge=this.length),W>=_.length&&(W=_.length),W||(W=0),ge>0&&ge<ne&&(ge=ne),ge===ne||_.length===0||this.length===0)return 0;if(W<0)throw new RangeError("targetStart out of bounds");if(ne<0||ne>=this.length)throw new RangeError("Index out of range");if(ge<0)throw new RangeError("sourceEnd out of bounds");ge>this.length&&(ge=this.length),_.length-W<ge-ne&&(ge=_.length-W+ne);const Pe=ge-ne;return this===_&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(W,ne,ge):Uint8Array.prototype.set.call(_,this.subarray(ne,ge),W),Pe},s.prototype.fill=function(_,W,ne,ge){if(typeof _=="string"){if(typeof W=="string"?(ge=W,W=0,ne=this.length):typeof ne=="string"&&(ge=ne,ne=this.length),ge!==void 0&&typeof ge!="string")throw new TypeError("encoding must be a string");if(typeof ge=="string"&&!s.isEncoding(ge))throw new TypeError("Unknown encoding: "+ge);if(_.length===1){const Te=_.charCodeAt(0);(ge==="utf8"&&Te<128||ge==="latin1")&&(_=Te)}}else typeof _=="number"?_=_&255:typeof _=="boolean"&&(_=Number(_));if(W<0||this.length<W||this.length<ne)throw new RangeError("Out of range index");if(ne<=W)return this;W=W>>>0,ne=ne===void 0?this.length:ne>>>0,_||(_=0);let Pe;if(typeof _=="number")for(Pe=W;Pe<ne;++Pe)this[Pe]=_;else{const Te=s.isBuffer(_)?_:s.from(_,ge),Le=Te.length;if(Le===0)throw new TypeError('The value "'+_+'" is invalid for argument "value"');for(Pe=0;Pe<ne-W;++Pe)this[Pe+W]=Te[Pe%Le]}return this};const J={};function he(_,W,ne){J[_]=class extends ne{constructor(){super(),Object.defineProperty(this,"message",{value:W.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${_}]`,delete this.name}get code(){return _}set code(ge){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:ge,writable:!0})}toString(){return`${this.name} [${_}]: ${this.message}`}}}he("ERR_BUFFER_OUT_OF_BOUNDS",function(_){return _?`${_} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),he("ERR_INVALID_ARG_TYPE",function(_,W){return`The "${_}" argument must be of type number. Received type ${typeof W}`},TypeError),he("ERR_OUT_OF_RANGE",function(_,W,ne){let ge=`The value of "${_}" is out of range.`,Pe=ne;return Number.isInteger(ne)&&Math.abs(ne)>2**32?Pe=Oe(String(ne)):typeof ne=="bigint"&&(Pe=String(ne),(ne>BigInt(2)**BigInt(32)||ne<-(BigInt(2)**BigInt(32)))&&(Pe=Oe(Pe)),Pe+="n"),ge+=` It must be ${W}. Received ${Pe}`,ge},RangeError);function Oe(_){let W="",ne=_.length;const ge=_[0]==="-"?1:0;for(;ne>=ge+4;ne-=3)W=`_${_.slice(ne-3,ne)}${W}`;return`${_.slice(0,ne)}${W}`}function M(_,W,ne){re(W,"offset"),(_[W]===void 0||_[W+ne]===void 0)&&ve(W,_.length-(ne+1))}function L(_,W,ne,ge,Pe,Te){if(_>ne||_<W){const Le=typeof W=="bigint"?"n":"";let rt;throw W===0||W===BigInt(0)?rt=`>= 0${Le} and < 2${Le} ** ${(Te+1)*8}${Le}`:rt=`>= -(2${Le} ** ${(Te+1)*8-1}${Le}) and < 2 ** ${(Te+1)*8-1}${Le}`,new J.ERR_OUT_OF_RANGE("value",rt,_)}M(ge,Pe,Te)}function re(_,W){if(typeof _!="number")throw new J.ERR_INVALID_ARG_TYPE(W,"number",_)}function ve(_,W,ne){throw Math.floor(_)!==_?(re(_,ne),new J.ERR_OUT_OF_RANGE("offset","an integer",_)):W<0?new J.ERR_BUFFER_OUT_OF_BOUNDS:new J.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${W}`,_)}const we=/[^+/0-9A-Za-z-_]/g;function ke(_){if(_=_.split("=")[0],_=_.trim().replace(we,""),_.length<2)return"";for(;_.length%4!==0;)_=_+"=";return _}function le(_,W){W=W||1/0;let ne;const ge=_.length;let Pe=null;const Te=[];for(let Le=0;Le<ge;++Le){if(ne=_.charCodeAt(Le),ne>55295&&ne<57344){if(!Pe){if(ne>56319){(W-=3)>-1&&Te.push(239,191,189);continue}else if(Le+1===ge){(W-=3)>-1&&Te.push(239,191,189);continue}Pe=ne;continue}if(ne<56320){(W-=3)>-1&&Te.push(239,191,189),Pe=ne;continue}ne=(Pe-55296<<10|ne-56320)+65536}else Pe&&(W-=3)>-1&&Te.push(239,191,189);if(Pe=null,ne<128){if((W-=1)<0)break;Te.push(ne)}else if(ne<2048){if((W-=2)<0)break;Te.push(ne>>6|192,ne&63|128)}else if(ne<65536){if((W-=3)<0)break;Te.push(ne>>12|224,ne>>6&63|128,ne&63|128)}else if(ne<1114112){if((W-=4)<0)break;Te.push(ne>>18|240,ne>>12&63|128,ne>>6&63|128,ne&63|128)}else throw new Error("Invalid code point")}return Te}function je(_){const W=[];for(let ne=0;ne<_.length;++ne)W.push(_.charCodeAt(ne)&255);return W}function be(_,W){let ne,ge,Pe;const Te=[];for(let Le=0;Le<_.length&&!((W-=2)<0);++Le)ne=_.charCodeAt(Le),ge=ne>>8,Pe=ne%256,Te.push(Pe),Te.push(ge);return Te}function Re(_){return t.toByteArray(ke(_))}function Ce(_,W,ne,ge){let Pe;for(Pe=0;Pe<ge&&!(Pe+ne>=W.length||Pe>=_.length);++Pe)W[Pe+ne]=_[Pe];return Pe}function Me(_,W){return _ instanceof W||_!=null&&_.constructor!=null&&_.constructor.name!=null&&_.constructor.name===W.name}function de(_){return _!==_}const Ae=(function(){const _="0123456789abcdef",W=new Array(256);for(let ne=0;ne<16;++ne){const ge=ne*16;for(let Pe=0;Pe<16;++Pe)W[ge+Pe]=_[ne]+_[Pe]}return W})();function Qe(_){return typeof BigInt>"u"?We:_}function We(){throw new Error("BigInt not supported")}})(pwe)),pwe}const gwe=km(i0e);var z$,vwe;function GKt(){if(vwe)return z$;vwe=1;function e(g,v){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(g);v&&(k=k.filter(function(x){return Object.getOwnPropertyDescriptor(g,x).enumerable})),b.push.apply(b,k)}return b}function t(g){for(var v=1;v<arguments.length;v++){var b=arguments[v]!=null?arguments[v]:{};v%2?e(Object(b),!0).forEach(function(k){a(g,k,b[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):e(Object(b)).forEach(function(k){Object.defineProperty(g,k,Object.getOwnPropertyDescriptor(b,k))})}return g}function a(g,v,b){return v=o(v),v in g?Object.defineProperty(g,v,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[v]=b,g}function r(g,v){if(!(g instanceof v))throw new TypeError("Cannot call a class as a function")}function n(g,v){for(var b=0;b<v.length;b++){var k=v[b];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(g,o(k.key),k)}}function i(g,v,b){return v&&n(g.prototype,v),Object.defineProperty(g,"prototype",{writable:!1}),g}function o(g){var v=s(g,"string");return typeof v=="symbol"?v:String(v)}function s(g,v){if(typeof g!="object"||g===null)return g;var b=g[Symbol.toPrimitive];if(b!==void 0){var k=b.call(g,v);if(typeof k!="object")return k;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(g)}var l=az(),c=l.Buffer,u=gwe,d=u.inspect,h=d&&d.custom||"inspect";function m(g,v,b){c.prototype.copy.call(g,v,b)}return z$=(function(){function g(){r(this,g),this.head=null,this.tail=null,this.length=0}return i(g,[{key:"push",value:function(v){var b={data:v,next:null};this.length>0?this.tail.next=b:this.head=b,this.tail=b,++this.length}},{key:"unshift",value:function(v){var b={data:v,next:this.head};this.length===0&&(this.tail=b),this.head=b,++this.length}},{key:"shift",value:function(){if(this.length!==0){var v=this.head.data;return this.length===1?this.head=this.tail=null:this.head=this.head.next,--this.length,v}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(v){if(this.length===0)return"";for(var b=this.head,k=""+b.data;b=b.next;)k+=v+b.data;return k}},{key:"concat",value:function(v){if(this.length===0)return c.alloc(0);for(var b=c.allocUnsafe(v>>>0),k=this.head,x=0;k;)m(k.data,b,x),x+=k.data.length,k=k.next;return b}},{key:"consume",value:function(v,b){var k;return v<this.head.data.length?(k=this.head.data.slice(0,v),this.head.data=this.head.data.slice(v)):v===this.head.data.length?k=this.shift():k=b?this._getString(v):this._getBuffer(v),k}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(v){var b=this.head,k=1,x=b.data;for(v-=x.length;b=b.next;){var w=b.data,z=v>w.length?w.length:v;if(z===w.length?x+=w:x+=w.slice(0,v),v-=z,v===0){z===w.length?(++k,b.next?this.head=b.next:this.head=this.tail=null):(this.head=b,b.data=w.slice(z));break}++k}return this.length-=k,x}},{key:"_getBuffer",value:function(v){var b=c.allocUnsafe(v),k=this.head,x=1;for(k.data.copy(b),v-=k.data.length;k=k.next;){var w=k.data,z=v>w.length?w.length:v;if(w.copy(b,b.length-v,0,z),v-=z,v===0){z===w.length?(++x,k.next?this.head=k.next:this.head=this.tail=null):(this.head=k,k.data=w.slice(z));break}++x}return this.length-=x,b}},{key:h,value:function(v,b){return d(this,t(t({},b),{},{depth:0,customInspect:!1}))}}]),g})(),z$}var C$,bwe;function ywe(){if(bwe)return C$;bwe=1;function e(o,s){var l=this,c=this._readableState&&this._readableState.destroyed,u=this._writableState&&this._writableState.destroyed;return c||u?(s?s(o):o&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(n,this,o)):process.nextTick(n,this,o)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(o||null,function(d){!s&&d?l._writableState?l._writableState.errorEmitted?process.nextTick(a,l):(l._writableState.errorEmitted=!0,process.nextTick(t,l,d)):process.nextTick(t,l,d):s?(process.nextTick(a,l),s(d)):process.nextTick(a,l)}),this)}function t(o,s){n(o,s),a(o)}function a(o){o._writableState&&!o._writableState.emitClose||o._readableState&&!o._readableState.emitClose||o.emit("close")}function r(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function n(o,s){o.emit("error",s)}function i(o,s){var l=o._readableState,c=o._writableState;l&&l.autoDestroy||c&&c.autoDestroy?o.destroy(s):o.emit("error",s)}return C$={destroy:e,undestroy:r,errorOrDestroy:i},C$}var j$={},kwe;function G1(){if(kwe)return j$;kwe=1;function e(s,l){s.prototype=Object.create(l.prototype),s.prototype.constructor=s,s.__proto__=l}var t={};function a(s,l,c){c||(c=Error);function u(h,m,g){return typeof l=="string"?l:l(h,m,g)}var d=(function(h){e(m,h);function m(g,v,b){return h.call(this,u(g,v,b))||this}return m})(c);d.prototype.name=c.name,d.prototype.code=s,t[s]=d}function r(s,l){if(Array.isArray(s)){var c=s.length;return s=s.map(function(u){return String(u)}),c>2?"one of ".concat(l," ").concat(s.slice(0,c-1).join(", "),", or ")+s[c-1]:c===2?"one of ".concat(l," ").concat(s[0]," or ").concat(s[1]):"of ".concat(l," ").concat(s[0])}else return"of ".concat(l," ").concat(String(s))}function n(s,l,c){return s.substr(0,l.length)===l}function i(s,l,c){return(c===void 0||c>s.length)&&(c=s.length),s.substring(c-l.length,c)===l}function o(s,l,c){return typeof c!="number"&&(c=0),c+l.length>s.length?!1:s.indexOf(l,c)!==-1}return a("ERR_INVALID_OPT_VALUE",function(s,l){return'The value "'+l+'" is invalid for option "'+s+'"'},TypeError),a("ERR_INVALID_ARG_TYPE",function(s,l,c){var u;typeof l=="string"&&n(l,"not ")?(u="must not be",l=l.replace(/^not /,"")):u="must be";var d;if(i(s," argument"))d="The ".concat(s," ").concat(u," ").concat(r(l,"type"));else{var h=o(s,".")?"property":"argument";d='The "'.concat(s,'" ').concat(h," ").concat(u," ").concat(r(l,"type"))}return d+=". Received type ".concat(typeof c),d},TypeError),a("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),a("ERR_METHOD_NOT_IMPLEMENTED",function(s){return"The "+s+" method is not implemented"}),a("ERR_STREAM_PREMATURE_CLOSE","Premature close"),a("ERR_STREAM_DESTROYED",function(s){return"Cannot call "+s+" after a stream was destroyed"}),a("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),a("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),a("ERR_STREAM_WRITE_AFTER_END","write after end"),a("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),a("ERR_UNKNOWN_ENCODING",function(s){return"Unknown encoding: "+s},TypeError),a("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),j$.codes=t,j$}var P$,xwe;function wwe(){if(xwe)return P$;xwe=1;var e=G1().codes.ERR_INVALID_OPT_VALUE;function t(r,n,i){return r.highWaterMark!=null?r.highWaterMark:n?r[i]:null}function a(r,n,i,o){var s=t(n,o,i);if(s!=null){if(!(isFinite(s)&&Math.floor(s)===s)||s<0){var l=o?i:"highWaterMark";throw new e(l,s)}return Math.floor(s)}return r.objectMode?16:16*1024}return P$={getHighWaterMark:a},P$}var A$,Swe;function UKt(){if(Swe)return A$;Swe=1,A$=e;function e(a,r){if(t("noDeprecation"))return a;var n=!1;function i(){if(!n){if(t("throwDeprecation"))throw new Error(r);t("traceDeprecation")?console.trace(r):console.warn(r),n=!0}return a.apply(this,arguments)}return i}function t(a){try{if(!globalThis.localStorage)return!1}catch{return!1}var r=globalThis.localStorage[a];return r==null?!1:String(r).toLowerCase()==="true"}return A$}var T$,Owe;function zwe(){if(Owe)return T$;Owe=1,T$=T;function e(K){var X=this;this.next=null,this.entry=null,this.finish=function(){U(X,K)}}var t;T.WritableState=C;var a={deprecate:UKt()},r=dwe(),n=az().Buffer,i=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function o(K){return n.from(K)}function s(K){return n.isBuffer(K)||K instanceof i}var l=ywe(),c=wwe(),u=c.getHighWaterMark,d=G1().codes,h=d.ERR_INVALID_ARG_TYPE,m=d.ERR_METHOD_NOT_IMPLEMENTED,g=d.ERR_MULTIPLE_CALLBACK,v=d.ERR_STREAM_CANNOT_PIPE,b=d.ERR_STREAM_DESTROYED,k=d.ERR_STREAM_NULL_VALUES,x=d.ERR_STREAM_WRITE_AFTER_END,w=d.ERR_UNKNOWN_ENCODING,z=l.errorOrDestroy;function S(){}function C(K,X,J){t=t||U1(),K=K||{},typeof J!="boolean"&&(J=X instanceof t),this.objectMode=!!K.objectMode,J&&(this.objectMode=this.objectMode||!!K.writableObjectMode),this.highWaterMark=u(this,K,"writableHighWaterMark",J),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var he=K.decodeStrings===!1;this.decodeStrings=!he,this.defaultEncoding=K.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Oe){ee(X,Oe)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=K.emitClose!==!1,this.autoDestroy=!!K.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}C.prototype.getBuffer=function(){for(var K=this.bufferedRequest,X=[];K;)X.push(K),K=K.next;return X},(function(){try{Object.defineProperty(C.prototype,"buffer",{get:a.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch{}})();var j;typeof Symbol=="function"&&Symbol.hasInstance&&typeof Function.prototype[Symbol.hasInstance]=="function"?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(T,Symbol.hasInstance,{value:function(K){return j.call(this,K)?!0:this!==T?!1:K&&K._writableState instanceof C}})):j=function(K){return K instanceof this};function T(K){t=t||U1();var X=this instanceof t;if(!X&&!j.call(T,this))return new T(K);this._writableState=new C(K,this,X),this.writable=!0,K&&(typeof K.write=="function"&&(this._write=K.write),typeof K.writev=="function"&&(this._writev=K.writev),typeof K.destroy=="function"&&(this._destroy=K.destroy),typeof K.final=="function"&&(this._final=K.final)),r.call(this)}T.prototype.pipe=function(){z(this,new v)};function E(K,X){var J=new x;z(K,J),process.nextTick(X,J)}function I(K,X,J,he){var Oe;return J===null?Oe=new k:typeof J!="string"&&!X.objectMode&&(Oe=new h("chunk",["string","Buffer"],J)),Oe?(z(K,Oe),process.nextTick(he,Oe),!1):!0}T.prototype.write=function(K,X,J){var he=this._writableState,Oe=!1,M=!he.objectMode&&s(K);return M&&!n.isBuffer(K)&&(K=o(K)),typeof X=="function"&&(J=X,X=null),M?X="buffer":X||(X=he.defaultEncoding),typeof J!="function"&&(J=S),he.ending?E(this,J):(M||I(this,he,K,J))&&(he.pendingcb++,Oe=$(this,he,M,K,X,J)),Oe},T.prototype.cork=function(){this._writableState.corked++},T.prototype.uncork=function(){var K=this._writableState;K.corked&&(K.corked--,!K.writing&&!K.corked&&!K.bufferProcessing&&K.bufferedRequest&&ce(this,K))},T.prototype.setDefaultEncoding=function(K){if(typeof K=="string"&&(K=K.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((K+"").toLowerCase())>-1))throw new w(K);return this._writableState.defaultEncoding=K,this},Object.defineProperty(T.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}});function N(K,X,J){return!K.objectMode&&K.decodeStrings!==!1&&typeof X=="string"&&(X=n.from(X,J)),X}Object.defineProperty(T.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}});function $(K,X,J,he,Oe,M){if(!J){var L=N(X,he,Oe);he!==L&&(J=!0,Oe="buffer",he=L)}var re=X.objectMode?1:he.length;X.length+=re;var ve=X.length<X.highWaterMark;if(ve||(X.needDrain=!0),X.writing||X.corked){var we=X.lastBufferedRequest;X.lastBufferedRequest={chunk:he,encoding:Oe,isBuf:J,callback:M,next:null},we?we.next=X.lastBufferedRequest:X.bufferedRequest=X.lastBufferedRequest,X.bufferedRequestCount+=1}else H(K,X,!1,re,he,Oe,M);return ve}function H(K,X,J,he,Oe,M,L){X.writelen=he,X.writecb=L,X.writing=!0,X.sync=!0,X.destroyed?X.onwrite(new b("write")):J?K._writev(Oe,X.onwrite):K._write(Oe,M,X.onwrite),X.sync=!1}function Z(K,X,J,he,Oe){--X.pendingcb,J?(process.nextTick(Oe,he),process.nextTick(G,K,X),K._writableState.errorEmitted=!0,z(K,he)):(Oe(he),K._writableState.errorEmitted=!0,z(K,he),G(K,X))}function te(K){K.writing=!1,K.writecb=null,K.length-=K.writelen,K.writelen=0}function ee(K,X){var J=K._writableState,he=J.sync,Oe=J.writecb;if(typeof Oe!="function")throw new g;if(te(J),X)Z(K,J,he,X,Oe);else{var M=Q(J)||K.destroyed;!M&&!J.corked&&!J.bufferProcessing&&J.bufferedRequest&&ce(K,J),he?process.nextTick(oe,K,J,M,Oe):oe(K,J,M,Oe)}}function oe(K,X,J,he){J||ae(K,X),X.pendingcb--,he(),G(K,X)}function ae(K,X){X.length===0&&X.needDrain&&(X.needDrain=!1,K.emit("drain"))}function ce(K,X){X.bufferProcessing=!0;var J=X.bufferedRequest;if(K._writev&&J&&J.next){var he=X.bufferedRequestCount,Oe=new Array(he),M=X.corkedRequestsFree;M.entry=J;for(var L=0,re=!0;J;)Oe[L]=J,J.isBuf||(re=!1),J=J.next,L+=1;Oe.allBuffers=re,H(K,X,!0,X.length,Oe,"",M.finish),X.pendingcb++,X.lastBufferedRequest=null,M.next?(X.corkedRequestsFree=M.next,M.next=null):X.corkedRequestsFree=new e(X),X.bufferedRequestCount=0}else{for(;J;){var ve=J.chunk,we=J.encoding,ke=J.callback,le=X.objectMode?1:ve.length;if(H(K,X,!1,le,ve,we,ke),J=J.next,X.bufferedRequestCount--,X.writing)break}J===null&&(X.lastBufferedRequest=null)}X.bufferedRequest=J,X.bufferProcessing=!1}T.prototype._write=function(K,X,J){J(new m("_write()"))},T.prototype._writev=null,T.prototype.end=function(K,X,J){var he=this._writableState;return typeof K=="function"?(J=K,K=null,X=null):typeof X=="function"&&(J=X,X=null),K!=null&&this.write(K,X),he.corked&&(he.corked=1,this.uncork()),he.ending||D(this,he,J),this},Object.defineProperty(T.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function Q(K){return K.ending&&K.length===0&&K.bufferedRequest===null&&!K.finished&&!K.writing}function V(K,X){K._final(function(J){X.pendingcb--,J&&z(K,J),X.prefinished=!0,K.emit("prefinish"),G(K,X)})}function Y(K,X){!X.prefinished&&!X.finalCalled&&(typeof K._final=="function"&&!X.destroyed?(X.pendingcb++,X.finalCalled=!0,process.nextTick(V,K,X)):(X.prefinished=!0,K.emit("prefinish")))}function G(K,X){var J=Q(X);if(J&&(Y(K,X),X.pendingcb===0&&(X.finished=!0,K.emit("finish"),X.autoDestroy))){var he=K._readableState;(!he||he.autoDestroy&&he.endEmitted)&&K.destroy()}return J}function D(K,X,J){X.ending=!0,G(K,X),J&&(X.finished?process.nextTick(J):K.once("finish",J)),X.ended=!0,K.writable=!1}function U(K,X,J){var he=K.entry;for(K.entry=null;he;){var Oe=he.callback;X.pendingcb--,Oe(J),he=he.next}X.corkedRequestsFree.next=K}return Object.defineProperty(T.prototype,"destroyed",{enumerable:!1,get:function(){return this._writableState===void 0?!1:this._writableState.destroyed},set:function(K){this._writableState&&(this._writableState.destroyed=K)}}),T.prototype.destroy=l.destroy,T.prototype._undestroy=l.undestroy,T.prototype._destroy=function(K,X){X(K)},T$}var _$,Cwe;function U1(){if(Cwe)return _$;Cwe=1;var e=Object.keys||function(c){var u=[];for(var d in c)u.push(d);return u};_$=o;for(var t=Nwe(),a=zwe(),r=e(a.prototype),n=0;n<r.length;n++){var i=r[n];o.prototype[i]||(o.prototype[i]=a.prototype[i])}function o(c){if(!(this instanceof o))return new o(c);t.call(this,c),a.call(this,c),this.allowHalfOpen=!0,c&&(c.readable===!1&&(this.readable=!1),c.writable===!1&&(this.writable=!1),c.allowHalfOpen===!1&&(this.allowHalfOpen=!1,this.once("end",s)))}Object.defineProperty(o.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(o.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(o.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}});function s(){this._writableState.ended||process.nextTick(l,this)}function l(c){c.end()}return Object.defineProperty(o.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0||this._writableState===void 0?!1:this._readableState.destroyed&&this._writableState.destroyed},set:function(c){this._readableState===void 0||this._writableState===void 0||(this._readableState.destroyed=c,this._writableState.destroyed=c)}}),_$}var M$={},E$={exports:{}},jwe;function QKt(){return jwe||(jwe=1,(function(e,t){var a=az(),r=a.Buffer;function n(o,s){for(var l in o)s[l]=o[l]}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?e.exports=a:(n(a,t),t.Buffer=i);function i(o,s,l){return r(o,s,l)}i.prototype=Object.create(r.prototype),n(r,i),i.from=function(o,s,l){if(typeof o=="number")throw new TypeError("Argument must not be a number");return r(o,s,l)},i.alloc=function(o,s,l){if(typeof o!="number")throw new TypeError("Argument must be a number");var c=r(o);return s!==void 0?typeof l=="string"?c.fill(s,l):c.fill(s):c.fill(0),c},i.allocUnsafe=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return r(o)},i.allocUnsafeSlow=function(o){if(typeof o!="number")throw new TypeError("Argument must be a number");return a.SlowBuffer(o)}})(E$,E$.exports)),E$.exports}var Pwe;function Awe(){if(Pwe)return M$;Pwe=1;var e=QKt().Buffer,t=e.isEncoding||function(k){switch(k=""+k,k&&k.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function a(k){if(!k)return"utf8";for(var x;;)switch(k){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return k;default:if(x)return;k=(""+k).toLowerCase(),x=!0}}function r(k){var x=a(k);if(typeof x!="string"&&(e.isEncoding===t||!t(k)))throw new Error("Unknown encoding: "+k);return x||k}M$.StringDecoder=n;function n(k){this.encoding=r(k);var x;switch(this.encoding){case"utf16le":this.text=d,this.end=h,x=4;break;case"utf8":this.fillLast=l,x=4;break;case"base64":this.text=m,this.end=g,x=3;break;default:this.write=v,this.end=b;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(x)}n.prototype.write=function(k){if(k.length===0)return"";var x,w;if(this.lastNeed){if(x=this.fillLast(k),x===void 0)return"";w=this.lastNeed,this.lastNeed=0}else w=0;return w<k.length?x?x+this.text(k,w):this.text(k,w):x||""},n.prototype.end=u,n.prototype.text=c,n.prototype.fillLast=function(k){if(this.lastNeed<=k.length)return k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,this.lastTotal-this.lastNeed,0,k.length),this.lastNeed-=k.length};function i(k){return k<=127?0:k>>5===6?2:k>>4===14?3:k>>3===30?4:k>>6===2?-1:-2}function o(k,x,w){var z=x.length-1;if(z<w)return 0;var S=i(x[z]);return S>=0?(S>0&&(k.lastNeed=S-1),S):--z<w||S===-2?0:(S=i(x[z]),S>=0?(S>0&&(k.lastNeed=S-2),S):--z<w||S===-2?0:(S=i(x[z]),S>=0?(S>0&&(S===2?S=0:k.lastNeed=S-3),S):0))}function s(k,x,w){if((x[0]&192)!==128)return k.lastNeed=0,"\uFFFD";if(k.lastNeed>1&&x.length>1){if((x[1]&192)!==128)return k.lastNeed=1,"\uFFFD";if(k.lastNeed>2&&x.length>2&&(x[2]&192)!==128)return k.lastNeed=2,"\uFFFD"}}function l(k){var x=this.lastTotal-this.lastNeed,w=s(this,k);if(w!==void 0)return w;if(this.lastNeed<=k.length)return k.copy(this.lastChar,x,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);k.copy(this.lastChar,x,0,k.length),this.lastNeed-=k.length}function c(k,x){var w=o(this,k,x);if(!this.lastNeed)return k.toString("utf8",x);this.lastTotal=w;var z=k.length-(w-this.lastNeed);return k.copy(this.lastChar,0,z),k.toString("utf8",x,z)}function u(k){var x=k&&k.length?this.write(k):"";return this.lastNeed?x+"\uFFFD":x}function d(k,x){if((k.length-x)%2===0){var w=k.toString("utf16le",x);if(w){var z=w.charCodeAt(w.length-1);if(z>=55296&&z<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1],w.slice(0,-1)}return w}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=k[k.length-1],k.toString("utf16le",x,k.length-1)}function h(k){var x=k&&k.length?this.write(k):"";if(this.lastNeed){var w=this.lastTotal-this.lastNeed;return x+this.lastChar.toString("utf16le",0,w)}return x}function m(k,x){var w=(k.length-x)%3;return w===0?k.toString("base64",x):(this.lastNeed=3-w,this.lastTotal=3,w===1?this.lastChar[0]=k[k.length-1]:(this.lastChar[0]=k[k.length-2],this.lastChar[1]=k[k.length-1]),k.toString("base64",x,k.length-w))}function g(k){var x=k&&k.length?this.write(k):"";return this.lastNeed?x+this.lastChar.toString("base64",0,3-this.lastNeed):x}function v(k){return k.toString(this.encoding)}function b(k){return k&&k.length?this.write(k):""}return M$}var R$,Twe;function N$(){if(Twe)return R$;Twe=1;var e=G1().codes.ERR_STREAM_PREMATURE_CLOSE;function t(i){var o=!1;return function(){if(!o){o=!0;for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];i.apply(this,l)}}}function a(){}function r(i){return i.setHeader&&typeof i.abort=="function"}function n(i,o,s){if(typeof o=="function")return n(i,null,o);o||(o={}),s=t(s||a);var l=o.readable||o.readable!==!1&&i.readable,c=o.writable||o.writable!==!1&&i.writable,u=function(){i.writable||h()},d=i._writableState&&i._writableState.finished,h=function(){c=!1,d=!0,l||s.call(i)},m=i._readableState&&i._readableState.endEmitted,g=function(){l=!1,m=!0,c||s.call(i)},v=function(x){s.call(i,x)},b=function(){var x;if(l&&!m)return(!i._readableState||!i._readableState.ended)&&(x=new e),s.call(i,x);if(c&&!d)return(!i._writableState||!i._writableState.ended)&&(x=new e),s.call(i,x)},k=function(){i.req.on("finish",h)};return r(i)?(i.on("complete",h),i.on("abort",b),i.req?k():i.on("request",k)):c&&!i._writableState&&(i.on("end",u),i.on("close",u)),i.on("end",g),i.on("finish",h),o.error!==!1&&i.on("error",v),i.on("close",b),function(){i.removeListener("complete",h),i.removeListener("abort",b),i.removeListener("request",k),i.req&&i.req.removeListener("finish",h),i.removeListener("end",u),i.removeListener("close",u),i.removeListener("finish",h),i.removeListener("end",g),i.removeListener("error",v),i.removeListener("close",b)}}return R$=n,R$}var I$,_we;function WKt(){if(_we)return I$;_we=1;var e;function t(w,z,S){return z=a(z),z in w?Object.defineProperty(w,z,{value:S,enumerable:!0,configurable:!0,writable:!0}):w[z]=S,w}function a(w){var z=r(w,"string");return typeof z=="symbol"?z:String(z)}function r(w,z){if(typeof w!="object"||w===null)return w;var S=w[Symbol.toPrimitive];if(S!==void 0){var C=S.call(w,z);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(w)}var n=N$(),i=Symbol("lastResolve"),o=Symbol("lastReject"),s=Symbol("error"),l=Symbol("ended"),c=Symbol("lastPromise"),u=Symbol("handlePromise"),d=Symbol("stream");function h(w,z){return{value:w,done:z}}function m(w){var z=w[i];if(z!==null){var S=w[d].read();S!==null&&(w[c]=null,w[i]=null,w[o]=null,z(h(S,!1)))}}function g(w){process.nextTick(m,w)}function v(w,z){return function(S,C){w.then(function(){if(z[l]){S(h(void 0,!0));return}z[u](S,C)},C)}}var b=Object.getPrototypeOf(function(){}),k=Object.setPrototypeOf((e={get stream(){return this[d]},next:function(){var w=this,z=this[s];if(z!==null)return Promise.reject(z);if(this[l])return Promise.resolve(h(void 0,!0));if(this[d].destroyed)return new Promise(function(T,E){process.nextTick(function(){w[s]?E(w[s]):T(h(void 0,!0))})});var S=this[c],C;if(S)C=new Promise(v(S,this));else{var j=this[d].read();if(j!==null)return Promise.resolve(h(j,!1));C=new Promise(this[u])}return this[c]=C,C}},t(e,Symbol.asyncIterator,function(){return this}),t(e,"return",function(){var w=this;return new Promise(function(z,S){w[d].destroy(null,function(C){if(C){S(C);return}z(h(void 0,!0))})})}),e),b),x=function(w){var z,S=Object.create(k,(z={},t(z,d,{value:w,writable:!0}),t(z,i,{value:null,writable:!0}),t(z,o,{value:null,writable:!0}),t(z,s,{value:null,writable:!0}),t(z,l,{value:w._readableState.endEmitted,writable:!0}),t(z,u,{value:function(C,j){var T=S[d].read();T?(S[c]=null,S[i]=null,S[o]=null,C(h(T,!1))):(S[i]=C,S[o]=j)},writable:!0}),z));return S[c]=null,n(w,function(C){if(C&&C.code!=="ERR_STREAM_PREMATURE_CLOSE"){var j=S[o];j!==null&&(S[c]=null,S[i]=null,S[o]=null,j(C)),S[s]=C;return}var T=S[i];T!==null&&(S[c]=null,S[i]=null,S[o]=null,T(h(void 0,!0))),S[l]=!0}),w.on("readable",g.bind(null,S)),S};return I$=x,I$}var Mwe,Ewe;function ZKt(){return Ewe||(Ewe=1,Mwe=function(){throw new Error("Readable.from is not available in the browser")}),Mwe}var L$,Rwe;function Nwe(){if(Rwe)return L$;Rwe=1,L$=E;var e;E.ReadableState=T;var t=function(M,L){return M.listeners(L).length},a=dwe(),r=az().Buffer,n=(typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof self<"u"?self:{}).Uint8Array||function(){};function i(M){return r.from(M)}function o(M){return r.isBuffer(M)||M instanceof n}var s=gwe,l;s&&s.debuglog?l=s.debuglog("stream"):l=function(){};var c=GKt(),u=ywe(),d=wwe(),h=d.getHighWaterMark,m=G1().codes,g=m.ERR_INVALID_ARG_TYPE,v=m.ERR_STREAM_PUSH_AFTER_EOF,b=m.ERR_METHOD_NOT_IMPLEMENTED,k=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT,x,w,z,S=u.errorOrDestroy,C=["error","close","destroy","pause","resume"];function j(M,L,re){if(typeof M.prependListener=="function")return M.prependListener(L,re);!M._events||!M._events[L]?M.on(L,re):Array.isArray(M._events[L])?M._events[L].unshift(re):M._events[L]=[re,M._events[L]]}function T(M,L,re){e=e||U1(),M=M||{},typeof re!="boolean"&&(re=L instanceof e),this.objectMode=!!M.objectMode,re&&(this.objectMode=this.objectMode||!!M.readableObjectMode),this.highWaterMark=h(this,M,"readableHighWaterMark",re),this.buffer=new c,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=M.emitClose!==!1,this.autoDestroy=!!M.autoDestroy,this.destroyed=!1,this.defaultEncoding=M.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,M.encoding&&(x||(x=Awe().StringDecoder),this.decoder=new x(M.encoding),this.encoding=M.encoding)}function E(M){if(e=e||U1(),!(this instanceof E))return new E(M);var L=this instanceof e;this._readableState=new T(M,this,L),this.readable=!0,M&&(typeof M.read=="function"&&(this._read=M.read),typeof M.destroy=="function"&&(this._destroy=M.destroy)),a.call(this)}Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return this._readableState===void 0?!1:this._readableState.destroyed},set:function(M){this._readableState&&(this._readableState.destroyed=M)}}),E.prototype.destroy=u.destroy,E.prototype._undestroy=u.undestroy,E.prototype._destroy=function(M,L){L(M)},E.prototype.push=function(M,L){var re=this._readableState,ve;return re.objectMode?ve=!0:typeof M=="string"&&(L=L||re.defaultEncoding,L!==re.encoding&&(M=r.from(M,L),L=""),ve=!0),I(this,M,L,!1,ve)},E.prototype.unshift=function(M){return I(this,M,null,!0,!1)};function I(M,L,re,ve,we){l("readableAddChunk",L);var ke=M._readableState;if(L===null)ke.reading=!1,ee(M,ke);else{var le;if(we||(le=$(ke,L)),le)S(M,le);else if(ke.objectMode||L&&L.length>0)if(typeof L!="string"&&!ke.objectMode&&Object.getPrototypeOf(L)!==r.prototype&&(L=i(L)),ve)ke.endEmitted?S(M,new k):N(M,ke,L,!0);else if(ke.ended)S(M,new v);else{if(ke.destroyed)return!1;ke.reading=!1,ke.decoder&&!re?(L=ke.decoder.write(L),ke.objectMode||L.length!==0?N(M,ke,L,!1):ce(M,ke)):N(M,ke,L,!1)}else ve||(ke.reading=!1,ce(M,ke))}return!ke.ended&&(ke.length<ke.highWaterMark||ke.length===0)}function N(M,L,re,ve){L.flowing&&L.length===0&&!L.sync?(L.awaitDrain=0,M.emit("data",re)):(L.length+=L.objectMode?1:re.length,ve?L.buffer.unshift(re):L.buffer.push(re),L.needReadable&&oe(M)),ce(M,L)}function $(M,L){var re;return!o(L)&&typeof L!="string"&&L!==void 0&&!M.objectMode&&(re=new g("chunk",["string","Buffer","Uint8Array"],L)),re}E.prototype.isPaused=function(){return this._readableState.flowing===!1},E.prototype.setEncoding=function(M){x||(x=Awe().StringDecoder);var L=new x(M);this._readableState.decoder=L,this._readableState.encoding=this._readableState.decoder.encoding;for(var re=this._readableState.buffer.head,ve="";re!==null;)ve+=L.write(re.data),re=re.next;return this._readableState.buffer.clear(),ve!==""&&this._readableState.buffer.push(ve),this._readableState.length=ve.length,this};var H=1073741824;function Z(M){return M>=H?M=H:(M--,M|=M>>>1,M|=M>>>2,M|=M>>>4,M|=M>>>8,M|=M>>>16,M++),M}function te(M,L){return M<=0||L.length===0&&L.ended?0:L.objectMode?1:M!==M?L.flowing&&L.length?L.buffer.head.data.length:L.length:(M>L.highWaterMark&&(L.highWaterMark=Z(M)),M<=L.length?M:L.ended?L.length:(L.needReadable=!0,0))}E.prototype.read=function(M){l("read",M),M=parseInt(M,10);var L=this._readableState,re=M;if(M!==0&&(L.emittedReadable=!1),M===0&&L.needReadable&&((L.highWaterMark!==0?L.length>=L.highWaterMark:L.length>0)||L.ended))return l("read: emitReadable",L.length,L.ended),L.length===0&&L.ended?J(this):oe(this),null;if(M=te(M,L),M===0&&L.ended)return L.length===0&&J(this),null;var ve=L.needReadable;l("need readable",ve),(L.length===0||L.length-M<L.highWaterMark)&&(ve=!0,l("length less than watermark",ve)),L.ended||L.reading?(ve=!1,l("reading or ended",ve)):ve&&(l("do read"),L.reading=!0,L.sync=!0,L.length===0&&(L.needReadable=!0),this._read(L.highWaterMark),L.sync=!1,L.reading||(M=te(re,L)));var we;return M>0?we=X(M,L):we=null,we===null?(L.needReadable=L.length<=L.highWaterMark,M=0):(L.length-=M,L.awaitDrain=0),L.length===0&&(L.ended||(L.needReadable=!0),re!==M&&L.ended&&J(this)),we!==null&&this.emit("data",we),we};function ee(M,L){if(l("onEofChunk"),!L.ended){if(L.decoder){var re=L.decoder.end();re&&re.length&&(L.buffer.push(re),L.length+=L.objectMode?1:re.length)}L.ended=!0,L.sync?oe(M):(L.needReadable=!1,L.emittedReadable||(L.emittedReadable=!0,ae(M)))}}function oe(M){var L=M._readableState;l("emitReadable",L.needReadable,L.emittedReadable),L.needReadable=!1,L.emittedReadable||(l("emitReadable",L.flowing),L.emittedReadable=!0,process.nextTick(ae,M))}function ae(M){var L=M._readableState;l("emitReadable_",L.destroyed,L.length,L.ended),!L.destroyed&&(L.length||L.ended)&&(M.emit("readable"),L.emittedReadable=!1),L.needReadable=!L.flowing&&!L.ended&&L.length<=L.highWaterMark,K(M)}function ce(M,L){L.readingMore||(L.readingMore=!0,process.nextTick(Q,M,L))}function Q(M,L){for(;!L.reading&&!L.ended&&(L.length<L.highWaterMark||L.flowing&&L.length===0);){var re=L.length;if(l("maybeReadMore read 0"),M.read(0),re===L.length)break}L.readingMore=!1}E.prototype._read=function(M){S(this,new b("_read()"))},E.prototype.pipe=function(M,L){var re=this,ve=this._readableState;switch(ve.pipesCount){case 0:ve.pipes=M;break;case 1:ve.pipes=[ve.pipes,M];break;default:ve.pipes.push(M);break}ve.pipesCount+=1,l("pipe count=%d opts=%j",ve.pipesCount,L);var we=(!L||L.end!==!1)&&M!==null&&M!==process.stderr,ke=we?je:We;ve.endEmitted?process.nextTick(ke):re.once("end",ke),M.on("unpipe",le);function le(_,W){l("onunpipe"),_===re&&W&&W.hasUnpiped===!1&&(W.hasUnpiped=!0,Ce())}function je(){l("onend"),M.end()}var be=V(re);M.on("drain",be);var Re=!1;function Ce(){l("cleanup"),M.removeListener("close",Ae),M.removeListener("finish",Qe),M.removeListener("drain",be),M.removeListener("error",de),M.removeListener("unpipe",le),re.removeListener("end",je),re.removeListener("end",We),re.removeListener("data",Me),Re=!0,ve.awaitDrain&&(!M._writableState||M._writableState.needDrain)&&be()}re.on("data",Me);function Me(_){l("ondata");var W=M.write(_);l("dest.write",W),W===!1&&((ve.pipesCount===1&&ve.pipes===M||ve.pipesCount>1&&Oe(ve.pipes,M)!==-1)&&!Re&&(l("false write response, pause",ve.awaitDrain),ve.awaitDrain++),re.pause())}function de(_){l("onerror",_),We(),M.removeListener("error",de),t(M,"error")===0&&S(M,_)}j(M,"error",de);function Ae(){M.removeListener("finish",Qe),We()}M.once("close",Ae);function Qe(){l("onfinish"),M.removeListener("close",Ae),We()}M.once("finish",Qe);function We(){l("unpipe"),re.unpipe(M)}return M.emit("pipe",re),ve.flowing||(l("pipe resume"),re.resume()),M};function V(M){return function(){var L=M._readableState;l("pipeOnDrain",L.awaitDrain),L.awaitDrain&&L.awaitDrain--,L.awaitDrain===0&&t(M,"data")&&(L.flowing=!0,K(M))}}E.prototype.unpipe=function(M){var L=this._readableState,re={hasUnpiped:!1};if(L.pipesCount===0)return this;if(L.pipesCount===1)return M&&M!==L.pipes?this:(M||(M=L.pipes),L.pipes=null,L.pipesCount=0,L.flowing=!1,M&&M.emit("unpipe",this,re),this);if(!M){var ve=L.pipes,we=L.pipesCount;L.pipes=null,L.pipesCount=0,L.flowing=!1;for(var ke=0;ke<we;ke++)ve[ke].emit("unpipe",this,{hasUnpiped:!1});return this}var le=Oe(L.pipes,M);return le===-1?this:(L.pipes.splice(le,1),L.pipesCount-=1,L.pipesCount===1&&(L.pipes=L.pipes[0]),M.emit("unpipe",this,re),this)},E.prototype.on=function(M,L){var re=a.prototype.on.call(this,M,L),ve=this._readableState;return M==="data"?(ve.readableListening=this.listenerCount("readable")>0,ve.flowing!==!1&&this.resume()):M==="readable"&&!ve.endEmitted&&!ve.readableListening&&(ve.readableListening=ve.needReadable=!0,ve.flowing=!1,ve.emittedReadable=!1,l("on readable",ve.length,ve.reading),ve.length?oe(this):ve.reading||process.nextTick(G,this)),re},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(M,L){var re=a.prototype.removeListener.call(this,M,L);return M==="readable"&&process.nextTick(Y,this),re},E.prototype.removeAllListeners=function(M){var L=a.prototype.removeAllListeners.apply(this,arguments);return(M==="readable"||M===void 0)&&process.nextTick(Y,this),L};function Y(M){var L=M._readableState;L.readableListening=M.listenerCount("readable")>0,L.resumeScheduled&&!L.paused?L.flowing=!0:M.listenerCount("data")>0&&M.resume()}function G(M){l("readable nexttick read 0"),M.read(0)}E.prototype.resume=function(){var M=this._readableState;return M.flowing||(l("resume"),M.flowing=!M.readableListening,D(this,M)),M.paused=!1,this};function D(M,L){L.resumeScheduled||(L.resumeScheduled=!0,process.nextTick(U,M,L))}function U(M,L){l("resume",L.reading),L.reading||M.read(0),L.resumeScheduled=!1,M.emit("resume"),K(M),L.flowing&&!L.reading&&M.read(0)}E.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),this._readableState.flowing!==!1&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this};function K(M){var L=M._readableState;for(l("flow",L.flowing);L.flowing&&M.read()!==null;);}E.prototype.wrap=function(M){var L=this,re=this._readableState,ve=!1;M.on("end",function(){if(l("wrapped end"),re.decoder&&!re.ended){var le=re.decoder.end();le&&le.length&&L.push(le)}L.push(null)}),M.on("data",function(le){if(l("wrapped data"),re.decoder&&(le=re.decoder.write(le)),!(re.objectMode&&le==null)&&!(!re.objectMode&&(!le||!le.length))){var je=L.push(le);je||(ve=!0,M.pause())}});for(var we in M)this[we]===void 0&&typeof M[we]=="function"&&(this[we]=(function(le){return function(){return M[le].apply(M,arguments)}})(we));for(var ke=0;ke<C.length;ke++)M.on(C[ke],this.emit.bind(this,C[ke]));return this._read=function(le){l("wrapped _read",le),ve&&(ve=!1,M.resume())},this},typeof Symbol=="function"&&(E.prototype[Symbol.asyncIterator]=function(){return w===void 0&&(w=WKt()),w(this)}),Object.defineProperty(E.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(E.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(E.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(M){this._readableState&&(this._readableState.flowing=M)}}),E._fromList=X,Object.defineProperty(E.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}});function X(M,L){if(L.length===0)return null;var re;return L.objectMode?re=L.buffer.shift():!M||M>=L.length?(L.decoder?re=L.buffer.join(""):L.buffer.length===1?re=L.buffer.first():re=L.buffer.concat(L.length),L.buffer.clear()):re=L.buffer.consume(M,L.decoder),re}function J(M){var L=M._readableState;l("endReadable",L.endEmitted),L.endEmitted||(L.ended=!0,process.nextTick(he,L,M))}function he(M,L){if(l("endReadableNT",M.endEmitted,M.length),!M.endEmitted&&M.length===0&&(M.endEmitted=!0,L.readable=!1,L.emit("end"),M.autoDestroy)){var re=L._writableState;(!re||re.autoDestroy&&re.finished)&&L.destroy()}}typeof Symbol=="function"&&(E.from=function(M,L){return z===void 0&&(z=ZKt()),z(E,M,L)});function Oe(M,L){for(var re=0,ve=M.length;re<ve;re++)if(M[re]===L)return re;return-1}return L$}var B$,Iwe;function Lwe(){if(Iwe)return B$;Iwe=1,B$=s;var e=G1().codes,t=e.ERR_METHOD_NOT_IMPLEMENTED,a=e.ERR_MULTIPLE_CALLBACK,r=e.ERR_TRANSFORM_ALREADY_TRANSFORMING,n=e.ERR_TRANSFORM_WITH_LENGTH_0,i=U1();function o(u,d){var h=this._transformState;h.transforming=!1;var m=h.writecb;if(m===null)return this.emit("error",new a);h.writechunk=null,h.writecb=null,d!=null&&this.push(d),m(u);var g=this._readableState;g.reading=!1,(g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}function s(u){if(!(this instanceof s))return new s(u);i.call(this,u),this._transformState={afterTransform:o.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,u&&(typeof u.transform=="function"&&(this._transform=u.transform),typeof u.flush=="function"&&(this._flush=u.flush)),this.on("prefinish",l)}function l(){var u=this;typeof this._flush=="function"&&!this._readableState.destroyed?this._flush(function(d,h){c(u,d,h)}):c(this,null,null)}s.prototype.push=function(u,d){return this._transformState.needTransform=!1,i.prototype.push.call(this,u,d)},s.prototype._transform=function(u,d,h){h(new t("_transform()"))},s.prototype._write=function(u,d,h){var m=this._transformState;if(m.writecb=h,m.writechunk=u,m.writeencoding=d,!m.transforming){var g=this._readableState;(m.needTransform||g.needReadable||g.length<g.highWaterMark)&&this._read(g.highWaterMark)}},s.prototype._read=function(u){var d=this._transformState;d.writechunk!==null&&!d.transforming?(d.transforming=!0,this._transform(d.writechunk,d.writeencoding,d.afterTransform)):d.needTransform=!0},s.prototype._destroy=function(u,d){i.prototype._destroy.call(this,u,function(h){d(h)})};function c(u,d,h){if(d)return u.emit("error",d);if(h!=null&&u.push(h),u._writableState.length)throw new n;if(u._transformState.transforming)throw new r;return u.push(null)}return B$}var D$,Bwe;function JKt(){if(Bwe)return D$;Bwe=1,D$=t;var e=Lwe();function t(a){if(!(this instanceof t))return new t(a);e.call(this,a)}return t.prototype._transform=function(a,r,n){n(null,a)},D$}var $$,Dwe;function YKt(){if(Dwe)return $$;Dwe=1;var e;function t(h){var m=!1;return function(){m||(m=!0,h.apply(void 0,arguments))}}var a=G1().codes,r=a.ERR_MISSING_ARGS,n=a.ERR_STREAM_DESTROYED;function i(h){if(h)throw h}function o(h){return h.setHeader&&typeof h.abort=="function"}function s(h,m,g,v){v=t(v);var b=!1;h.on("close",function(){b=!0}),e===void 0&&(e=N$()),e(h,{readable:m,writable:g},function(x){if(x)return v(x);b=!0,v()});var k=!1;return function(x){if(!b&&!k){if(k=!0,o(h))return h.abort();if(typeof h.destroy=="function")return h.destroy();v(x||new n("pipe"))}}}function l(h){h()}function c(h,m){return h.pipe(m)}function u(h){return!h.length||typeof h[h.length-1]!="function"?i:h.pop()}function d(){for(var h=arguments.length,m=new Array(h),g=0;g<h;g++)m[g]=arguments[g];var v=u(m);if(Array.isArray(m[0])&&(m=m[0]),m.length<2)throw new r("streams");var b,k=m.map(function(x,w){var z=w<m.length-1,S=w>0;return s(x,z,S,function(C){b||(b=C),C&&k.forEach(l),!z&&(k.forEach(l),v(b))})});return m.reduce(c)}return $$=d,$$}var $we;function Kwe(){return $we||($we=1,(function(e,t){t=e.exports=Nwe(),t.Stream=t,t.Readable=t,t.Writable=zwe(),t.Duplex=U1(),t.Transform=Lwe(),t.PassThrough=JKt(),t.finished=N$(),t.pipeline=YKt()})(S$,S$.exports)),S$.exports}var Hwe;function Vwe(){if(Hwe)return tM;Hwe=1;var e=swe(),t=hB(),a=Kwe(),r=tM.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},n=tM.IncomingMessage=function(i,o,s,l){var c=this;if(a.Readable.call(c),c._mode=s,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){process.nextTick(function(){c.emit("close")})}),s==="fetch"){let v=function(){d.read().then(function(b){if(!c._destroyed){if(l(b.done),b.done){c.push(null);return}c.push(Buffer.from(b.value)),v()}}).catch(function(b){l(!0),c._destroyed||c.emit("error",b)})};if(c._fetchResponse=o,c.url=o.url,c.statusCode=o.status,c.statusMessage=o.statusText,o.headers.forEach(function(b,k){c.headers[k.toLowerCase()]=b,c.rawHeaders.push(k,b)}),e.writableStream){var u=new WritableStream({write:function(b){return l(!1),new Promise(function(k,x){c._destroyed?x():c.push(Buffer.from(b))?k():c._resumeFetch=k})},close:function(){l(!0),c._destroyed||c.push(null)},abort:function(b){l(!0),c._destroyed||c.emit("error",b)}});try{o.body.pipeTo(u).catch(function(b){l(!0),c._destroyed||c.emit("error",b)});return}catch{}}var d=o.body.getReader();v()}else{c._xhr=i,c._pos=0,c.url=i.responseURL,c.statusCode=i.status,c.statusMessage=i.statusText;var h=i.getAllResponseHeaders().split(/\r?\n/);if(h.forEach(function(v){var b=v.match(/^([^:]+):\s*(.*)/);if(b){var k=b[1].toLowerCase();k==="set-cookie"?(c.headers[k]===void 0&&(c.headers[k]=[]),c.headers[k].push(b[2])):c.headers[k]!==void 0?c.headers[k]+=", "+b[2]:c.headers[k]=b[2],c.rawHeaders.push(b[1],b[2])}}),c._charset="x-user-defined",!e.overrideMimeType){var m=c.rawHeaders["mime-type"];if(m){var g=m.match(/;\s*charset=([^;])(;|$)/);g&&(c._charset=g[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};return t(n,a.Readable),n.prototype._read=function(){var i=this,o=i._resumeFetch;o&&(i._resumeFetch=null,o())},n.prototype._onXHRProgress=function(i){var o=this,s=o._xhr,l=null;switch(o._mode){case"text":if(l=s.responseText,l.length>o._pos){var c=l.substr(o._pos);if(o._charset==="x-user-defined"){for(var u=Buffer.alloc(c.length),d=0;d<c.length;d++)u[d]=c.charCodeAt(d)&255;o.push(u)}else o.push(c,o._charset);o._pos=l.length}break;case"arraybuffer":if(s.readyState!==r.DONE||!s.response)break;l=s.response,o.push(Buffer.from(new Uint8Array(l)));break;case"moz-chunked-arraybuffer":if(l=s.response,s.readyState!==r.LOADING||!l)break;o.push(Buffer.from(new Uint8Array(l)));break;case"ms-stream":if(l=s.response,s.readyState!==r.LOADING)break;var h=new globalThis.MSStreamReader;h.onprogress=function(){h.result.byteLength>o._pos&&(o.push(Buffer.from(new Uint8Array(h.result.slice(o._pos)))),o._pos=h.result.byteLength)},h.onload=function(){i(!0),o.push(null)},h.readAsArrayBuffer(l);break}o._xhr.readyState===r.DONE&&o._mode!=="ms-stream"&&(i(!0),o.push(null))},tM}var Fwe;function XKt(){if(Fwe)return w$.exports;Fwe=1;var e=swe(),t=hB(),a=Vwe(),r=Kwe(),n=a.IncomingMessage,i=a.readyStates;function o(u,d){return e.fetch&&d?"fetch":e.mozchunkedarraybuffer?"moz-chunked-arraybuffer":e.msstream?"ms-stream":e.arraybuffer&&u?"arraybuffer":"text"}var s=w$.exports=function(u){var d=this;r.Writable.call(d),d._opts=u,d._body=[],d._headers={},u.auth&&d.setHeader("Authorization","Basic "+Buffer.from(u.auth).toString("base64")),Object.keys(u.headers).forEach(function(g){d.setHeader(g,u.headers[g])});var h,m=!0;if(u.mode==="disable-fetch"||"requestTimeout"in u&&!e.abortController)m=!1,h=!0;else if(u.mode==="prefer-streaming")h=!1;else if(u.mode==="allow-wrong-content-type")h=!e.overrideMimeType;else if(!u.mode||u.mode==="default"||u.mode==="prefer-fast")h=!0;else throw new Error("Invalid value for opts.mode");d._mode=o(h,m),d._fetchTimer=null,d._socketTimeout=null,d._socketTimer=null,d.on("finish",function(){d._onFinish()})};t(s,r.Writable),s.prototype.setHeader=function(u,d){var h=this,m=u.toLowerCase();c.indexOf(m)===-1&&(h._headers[m]={name:u,value:d})},s.prototype.getHeader=function(u){var d=this._headers[u.toLowerCase()];return d?d.value:null},s.prototype.removeHeader=function(u){var d=this;delete d._headers[u.toLowerCase()]},s.prototype._onFinish=function(){var u=this;if(!u._destroyed){var d=u._opts;"timeout"in d&&d.timeout!==0&&u.setTimeout(d.timeout);var h=u._headers,m=null;d.method!=="GET"&&d.method!=="HEAD"&&(m=new Blob(u._body,{type:(h["content-type"]||{}).value||""}));var g=[];if(Object.keys(h).forEach(function(x){var w=h[x].name,z=h[x].value;Array.isArray(z)?z.forEach(function(S){g.push([w,S])}):g.push([w,z])}),u._mode==="fetch"){var v=null;if(e.abortController){var b=new AbortController;v=b.signal,u._fetchAbortController=b,"requestTimeout"in d&&d.requestTimeout!==0&&(u._fetchTimer=globalThis.setTimeout(function(){u.emit("requestTimeout"),u._fetchAbortController&&u._fetchAbortController.abort()},d.requestTimeout))}globalThis.fetch(u._opts.url,{method:u._opts.method,headers:g,body:m||void 0,mode:"cors",credentials:d.withCredentials?"include":"same-origin",signal:v}).then(function(x){u._fetchResponse=x,u._resetTimers(!1),u._connect()},function(x){u._resetTimers(!0),u._destroyed||u.emit("error",x)})}else{var k=u._xhr=new globalThis.XMLHttpRequest;try{k.open(u._opts.method,u._opts.url,!0)}catch(x){process.nextTick(function(){u.emit("error",x)});return}"responseType"in k&&(k.responseType=u._mode),"withCredentials"in k&&(k.withCredentials=!!d.withCredentials),u._mode==="text"&&"overrideMimeType"in k&&k.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in d&&(k.timeout=d.requestTimeout,k.ontimeout=function(){u.emit("requestTimeout")}),g.forEach(function(x){k.setRequestHeader(x[0],x[1])}),u._response=null,k.onreadystatechange=function(){switch(k.readyState){case i.LOADING:case i.DONE:u._onXHRProgress();break}},u._mode==="moz-chunked-arraybuffer"&&(k.onprogress=function(){u._onXHRProgress()}),k.onerror=function(){u._destroyed||(u._resetTimers(!0),u.emit("error",new Error("XHR error")))};try{k.send(m)}catch(x){process.nextTick(function(){u.emit("error",x)});return}}}};function l(u){try{var d=u.status;return d!==null&&d!==0}catch{return!1}}s.prototype._onXHRProgress=function(){var u=this;u._resetTimers(!1),!(!l(u._xhr)||u._destroyed)&&(u._response||u._connect(),u._response._onXHRProgress(u._resetTimers.bind(u)))},s.prototype._connect=function(){var u=this;u._destroyed||(u._response=new n(u._xhr,u._fetchResponse,u._mode,u._resetTimers.bind(u)),u._response.on("error",function(d){u.emit("error",d)}),u.emit("response",u._response))},s.prototype._write=function(u,d,h){var m=this;m._body.push(u),h()},s.prototype._resetTimers=function(u){var d=this;globalThis.clearTimeout(d._socketTimer),d._socketTimer=null,u?(globalThis.clearTimeout(d._fetchTimer),d._fetchTimer=null):d._socketTimeout&&(d._socketTimer=globalThis.setTimeout(function(){d.emit("timeout")},d._socketTimeout))},s.prototype.abort=s.prototype.destroy=function(u){var d=this;d._destroyed=!0,d._resetTimers(!0),d._response&&(d._response._destroyed=!0),d._xhr?d._xhr.abort():d._fetchAbortController&&d._fetchAbortController.abort(),u&&d.emit("error",u)},s.prototype.end=function(u,d,h){var m=this;typeof u=="function"&&(h=u,u=void 0),r.Writable.prototype.end.call(m,u,d,h)},s.prototype.setTimeout=function(u,d){var h=this;d&&h.once("timeout",d),h._socketTimeout=u,h._resetTimers(!1)},s.prototype.flushHeaders=function(){},s.prototype.setNoDelay=function(){},s.prototype.setSocketKeepAlive=function(){};var c=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"];return w$.exports}var K$,qwe;function eHt(){if(qwe)return K$;qwe=1,K$=t;var e=Object.prototype.hasOwnProperty;function t(){for(var a={},r=0;r<arguments.length;r++){var n=arguments[r];for(var i in n)e.call(n,i)&&(a[i]=n[i])}return a}return K$}var Gwe,Uwe;function tHt(){return Uwe||(Uwe=1,Gwe={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}),Gwe}var Qwe;function aHt(){return Qwe||(Qwe=1,(function(e){var t=XKt(),a=Vwe(),r=eHt(),n=tHt(),i=l$(),o=e;o.request=function(s,l){typeof s=="string"?s=i.parse(s):s=r(s);var c=globalThis.location.protocol.search(/^https?:$/)===-1?"http:":"",u=s.protocol||c,d=s.hostname||s.host,h=s.port,m=s.path||"/";d&&d.indexOf(":")!==-1&&(d="["+d+"]"),s.url=(d?u+"//"+d:"")+(h?":"+h:"")+m,s.method=(s.method||"GET").toUpperCase(),s.headers=s.headers||{};var g=new t(s);return l&&g.on("response",l),g},o.get=function(s,l){var c=o.request(s,l);return c.end(),c},o.ClientRequest=t,o.IncomingMessage=a.IncomingMessage,o.Agent=function(){},o.Agent.defaultMaxSockets=4,o.globalAgent=new o.Agent,o.STATUS_CODES=n,o.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]})(nwe)),nwe}var Wwe,Zwe;function rHt(){return Zwe||(Zwe=1,Wwe={statusCodes:Object.assign({},{default:"Default response","1XX":"Informational",103:"Early hints","2XX":"Successful","3XX":"Redirection","4XX":"Client Error","5XX":"Server Error","7XX":"Developer Error"},aHt().STATUS_CODES)}),Wwe}const nHt="7.0.8",iHt={version:nHt};var H$,Jwe;function oHt(){if(Jwe)return H$;Jwe=1;const e=q1,t=l$(),a=BKt(),r=q1,n=q1,i=X_(),o=i.jptr,s=h$().isRef,l=eM().clone,c=eM().circularClone,u=g$().recurse,d=KKt(),h=HKt(),m=twe(),g=rHt().statusCodes,v=iHt.version,b="3.0.0";let k;class x extends Error{constructor(L){super(L),this.name="S2OError"}}function w(M,L){let re=new x(M);if(re.options=L,L.promise)L.promise.reject(re);else throw re}function z(M,L,re){re.warnOnly?L[re.warnProperty||"x-s2o-warning"]=M:w(M,re)}function S(M,L,re){if(M.nullable&&re.patches++,M.discriminator&&typeof M.discriminator=="string"&&(M.discriminator={propertyName:M.discriminator}),M.items&&Array.isArray(M.items)&&(M.items.length===0?M.items={}:M.items.length===1?M.items=M.items[0]:M.items={anyOf:M.items}),M.type&&Array.isArray(M.type))if(re.patch){if(re.patches++,M.type.length===0)delete M.type;else{M.oneOf||(M.oneOf=[]);for(let ve of M.type){let we={};if(ve==="null")M.nullable=!0;else{we.type=ve;for(let ke of m.arrayProperties)typeof M.prop<"u"&&(we[ke]=M[ke],delete M[ke])}we.type&&M.oneOf.push(we)}delete M.type,M.oneOf.length===0?delete M.oneOf:M.oneOf.length<2&&(M.type=M.oneOf[0].type,Object.keys(M.oneOf[0]).length>1&&z("Lost properties from oneOf",M,re),delete M.oneOf)}M.type&&Array.isArray(M.type)&&M.type.length===1&&(M.type=M.type[0])}else w("(Patchable) schema type must not be an array",re);M.type&&M.type==="null"&&(delete M.type,M.nullable=!0),M.type==="array"&&!M.items&&(M.items={}),M.type==="file"&&(M.type="string",M.format="binary"),typeof M.required=="boolean"&&(M.required&&M.name&&(typeof L.required>"u"&&(L.required=[]),Array.isArray(L.required)&&L.required.push(M.name)),delete M.required),M.xml&&typeof M.xml.namespace=="string"&&(M.xml.namespace||delete M.xml.namespace),typeof M.allowEmptyValue<"u"&&(re.patches++,delete M.allowEmptyValue)}function C(M,L){if(M["x-required"]&&Array.isArray(M["x-required"])&&(M.required||(M.required=[]),M.required=M.required.concat(M["x-required"]),delete M["x-required"]),M["x-anyOf"]&&(M.anyOf=M["x-anyOf"],delete M["x-anyOf"]),M["x-oneOf"]&&(M.oneOf=M["x-oneOf"],delete M["x-oneOf"]),M["x-not"]&&(M.not=M["x-not"],delete M["x-not"]),typeof M["x-nullable"]=="boolean"&&(M.nullable=M["x-nullable"],delete M["x-nullable"]),typeof M["x-discriminator"]=="object"&&typeof M["x-discriminator"].propertyName=="string"){M.discriminator=M["x-discriminator"],delete M["x-discriminator"];for(let re in M.discriminator.mapping){let ve=M.discriminator.mapping[re];ve.startsWith("#/definitions/")&&(M.discriminator.mapping[re]=ve.replace("#/definitions/","#/components/schemas/"))}}}function j(M,L){h.walkSchema(M,{},{},function(re,ve,we){C(re),S(re,ve,L)})}function T(M){return M.indexOf("#")>=0?M=M.split("#")[1].split("/").pop():M=M.split("/").pop().split(".")[0],encodeURIComponent(m.sanitise(M))}function E(M,L,re){let ve=re.payload.options;if(s(M,L)){if(!M[L].startsWith("#/components/")){if(M[L]==="#/consumes")delete M[L],re.parent[re.pkey]=l(ve.openapi.consumes);else if(M[L]==="#/produces")delete M[L],re.parent[re.pkey]=l(ve.openapi.produces);else if(M[L].startsWith("#/definitions/")){let we=M[L].replace("#/definitions/","").split("/");const ke=i.jpunescape(we[0]);let le=k.schemas[decodeURIComponent(ke)];le?we[0]=le:z("Could not resolve reference "+M[L],M,ve),M[L]="#/components/schemas/"+we.join("/")}else if(M[L].startsWith("#/parameters/"))M[L]="#/components/parameters/"+m.sanitise(M[L].replace("#/parameters/",""));else if(M[L].startsWith("#/responses/"))M[L]="#/components/responses/"+m.sanitise(M[L].replace("#/responses/",""));else if(M[L].startsWith("#")){let we=l(i.jptr(ve.openapi,M[L]));if(we===!1)z("direct $ref not found "+M[L],M,ve);else if(ve.refmap[M[L]])M[L]=ve.refmap[M[L]];else{let ke=M[L];ke=ke.replace("/properties/headers/",""),ke=ke.replace("/properties/responses/",""),ke=ke.replace("/properties/parameters/",""),ke=ke.replace("/properties/schemas/","");let le="schemas",je=ke.lastIndexOf("/schema");if(le=ke.indexOf("/headers/")>je?"headers":ke.indexOf("/responses/")>je?"responses":ke.indexOf("/example")>je?"examples":ke.indexOf("/x-")>je?"extensions":ke.indexOf("/parameters/")>je?"parameters":"schemas",le==="schemas"&&j(we,ve),le!=="responses"&&le!=="extensions"){let be=le.substr(0,le.length-1);be==="parameter"&&we.name&&we.name===m.sanitise(we.name)&&(be=encodeURIComponent(we.name));let Re=1;for(M["x-miro"]&&(be=T(M["x-miro"]),Re="");i.jptr(ve.openapi,"#/components/"+le+"/"+be+Re);)Re=Re===""?2:++Re;let Ce="#/components/"+le+"/"+be+Re,Me="";le==="examples"&&(we={value:we},Me="/value"),i.jptr(ve.openapi,Ce,we),ve.refmap[M[L]]=Ce+Me,M[L]=Ce+Me}}}}if(delete M["x-miro"],Object.keys(M).length>1){const we=M[L],ke=re.path.indexOf("/schema")>=0;ve.refSiblings==="preserve"||(ke&&ve.refSiblings==="allOf"?(delete M.$ref,re.parent[re.pkey]={allOf:[{$ref:we},M]}):re.parent[re.pkey]={$ref:we})}}if(L==="x-ms-odata"&&typeof M[L]=="string"&&M[L].startsWith("#/")){let we=M[L].replace("#/definitions/","").replace("#/components/schemas/","").split("/"),ke=k.schemas[decodeURIComponent(we[0])];ke?we[0]=ke:z("Could not resolve reference "+M[L],M,ve),M[L]="#/components/schemas/"+we.join("/")}}function I(M,L){for(let re in L.refmap)i.jptr(M,re,{$ref:L.refmap[re]})}function N(M){for(let L in M)for(let re in M[L]){let ve=m.sanitise(re);re!==ve&&(M[L][ve]=M[L][re],delete M[L][re])}}function $(M,L){if(M.type==="basic"&&(M.type="http",M.scheme="basic"),M.type==="oauth2"){let re={},ve=M.flow;M.flow==="application"&&(ve="clientCredentials"),M.flow==="accessCode"&&(ve="authorizationCode"),typeof M.authorizationUrl<"u"&&(re.authorizationUrl=M.authorizationUrl.split("?")[0].trim()||"/"),typeof M.tokenUrl=="string"&&(re.tokenUrl=M.tokenUrl.split("?")[0].trim()||"/"),re.scopes=M.scopes||{},M.flows={},M.flows[ve]=re,delete M.flow,delete M.authorizationUrl,delete M.tokenUrl,delete M.scopes,typeof M.name<"u"&&(L.patch?(L.patches++,delete M.name):w("(Patchable) oauth2 securitySchemes should not have name property",L))}}function H(M){return M&&!M["x-s2o-delete"]}function Z(M,L){if(M.$ref)M.$ref=M.$ref.replace("#/responses/","#/components/responses/");else{M.type&&!M.schema&&(M.schema={}),M.type&&(M.schema.type=M.type),M.items&&M.items.type!=="array"&&(M.items.collectionFormat!==M.collectionFormat&&z("Nested collectionFormats are not supported",M,L),delete M.items.collectionFormat),M.type==="array"?(M.collectionFormat==="ssv"?z("collectionFormat:ssv is no longer supported for headers",M,L):M.collectionFormat==="pipes"?z("collectionFormat:pipes is no longer supported for headers",M,L):M.collectionFormat==="multi"?M.explode=!0:M.collectionFormat==="tsv"?(z("collectionFormat:tsv is no longer supported",M,L),M["x-collectionFormat"]="tsv"):M.style="simple",delete M.collectionFormat):M.collectionFormat&&(L.patch?(L.patches++,delete M.collectionFormat):w("(Patchable) collectionFormat is only applicable to header.type array",L)),delete M.type;for(let re of m.parameterTypeProperties)typeof M[re]<"u"&&(M.schema[re]=M[re],delete M[re]);for(let re of m.arrayProperties)typeof M[re]<"u"&&(M.schema[re]=M[re],delete M[re])}}function te(M,L){if(M.$ref.indexOf("#/parameters/")>=0){let re=M.$ref.split("#/parameters/");M.$ref=re[0]+"#/components/parameters/"+m.sanitise(re[1])}M.$ref.indexOf("#/definitions/")>=0&&z("Definition used as parameter",M,L)}function ee(M,L){let re={};for(let ve of Object.keys(M))re[ve]=M[ve],ve==="parameters"&&(re.requestBody={},L.rbname&&(re[L.rbname]=""));return re.requestBody={},re}function oe(M,L,re,ve,we,ke,le){let je={},be=!0,Re;if(L&&L.consumes&&typeof L.consumes=="string")if(le.patch)le.patches++,L.consumes=[L.consumes];else return w("(Patchable) operation.consumes must be an array",le);Array.isArray(ke.consumes)||delete ke.consumes;let Ce=((L?L.consumes:null)||ke.consumes||[]).filter(m.uniqueOnly);if(M&&M.$ref&&typeof M.$ref=="string"){te(M,le);let Me=decodeURIComponent(M.$ref.replace("#/components/parameters/","")),de=!1,Ae=ke.components.parameters[Me];if((!Ae||Ae["x-s2o-delete"])&&M.$ref.startsWith("#/")&&(M["x-s2o-delete"]=!0,de=!0),de){let Qe=M.$ref,We=o(ke,M.$ref);!We&&Qe.startsWith("#/")?z("Could not resolve reference "+Qe,M,le):We&&(M=We)}}if(M&&(M.name||M.in)){typeof M["x-deprecated"]=="boolean"&&(M.deprecated=M["x-deprecated"],delete M["x-deprecated"]),typeof M["x-example"]<"u"&&(M.example=M["x-example"],delete M["x-example"]),M.in!=="body"&&!M.type&&(le.patch?(le.patches++,M.type="string"):w("(Patchable) parameter.type is mandatory for non-body parameters",le)),M.type&&typeof M.type=="object"&&M.type.$ref&&(M.type=o(ke,M.type.$ref)),M.type==="file"&&(M["x-s2o-originalType"]=M.type,Re=M.type),M.description&&typeof M.description=="object"&&M.description.$ref&&(M.description=o(ke,M.description.$ref)),M.description===null&&delete M.description;let Me=M.collectionFormat;if(M.type==="array"&&!Me&&(Me="csv"),Me&&(M.type!=="array"&&(le.patch?(le.patches++,delete M.collectionFormat):w("(Patchable) collectionFormat is only applicable to param.type array",le)),Me==="csv"&&(M.in==="query"||M.in==="cookie")&&(M.style="form",M.explode=!1),Me==="csv"&&(M.in==="path"||M.in==="header")&&(M.style="simple"),Me==="ssv"&&(M.in==="query"?M.style="spaceDelimited":z("collectionFormat:ssv is no longer supported except for in:query parameters",M,le)),Me==="pipes"&&(M.in==="query"?M.style="pipeDelimited":z("collectionFormat:pipes is no longer supported except for in:query parameters",M,le)),Me==="multi"&&(M.explode=!0),Me==="tsv"&&(z("collectionFormat:tsv is no longer supported",M,le),M["x-collectionFormat"]="tsv"),delete M.collectionFormat),M.type&&M.type!=="body"&&M.in!=="formData")if(M.items&&M.schema)z("parameter has array,items and schema",M,le);else{M.schema&&le.patches++,(!M.schema||typeof M.schema!="object")&&(M.schema={}),M.schema.type=M.type,M.items&&(M.schema.items=M.items,delete M.items,u(M.schema.items,null,function(de,Ae,Qe){Ae==="collectionFormat"&&typeof de[Ae]=="string"&&(Me&&de[Ae]!==Me&&z("Nested collectionFormats are not supported",M,le),delete de[Ae])}));for(let de of m.parameterTypeProperties)typeof M[de]<"u"&&(M.schema[de]=M[de]),delete M[de]}M.schema&&j(M.schema,le),M["x-ms-skip-url-encoding"]&&M.in==="query"&&(M.allowReserved=!0,delete M["x-ms-skip-url-encoding"])}if(M&&M.in==="formData"){be=!1,je.content={};let Me="application/x-www-form-urlencoded";if(Ce.length&&Ce.indexOf("multipart/form-data")>=0&&(Me="multipart/form-data"),je.content[Me]={},M.schema)je.content[Me].schema=M.schema,M.schema.$ref&&(je["x-s2o-name"]=decodeURIComponent(M.schema.$ref.replace("#/components/schemas/","")));else{je.content[Me].schema={},je.content[Me].schema.type="object",je.content[Me].schema.properties={},je.content[Me].schema.properties[M.name]={};let de=je.content[Me].schema,Ae=je.content[Me].schema.properties[M.name];M.description&&(Ae.description=M.description),M.example&&(Ae.example=M.example),M.type&&(Ae.type=M.type);for(let Qe of m.parameterTypeProperties)typeof M[Qe]<"u"&&(Ae[Qe]=M[Qe]);M.required===!0&&(de.required||(de.required=[]),de.required.push(M.name),je.required=!0),typeof M.default<"u"&&(Ae.default=M.default),Ae.properties&&(Ae.properties=M.properties),M.allOf&&(Ae.allOf=M.allOf),M.type==="array"&&M.items&&(Ae.items=M.items,Ae.items.collectionFormat&&delete Ae.items.collectionFormat),(Re==="file"||M["x-s2o-originalType"]==="file")&&(Ae.type="string",Ae.format="binary"),ae(M,Ae)}}else M&&M.type==="file"&&(M.required&&(je.required=M.required),je.content={},je.content["application/octet-stream"]={},je.content["application/octet-stream"].schema={},je.content["application/octet-stream"].schema.type="string",je.content["application/octet-stream"].schema.format="binary",ae(M,je));if(M&&M.in==="body"){je.content={},M.name&&(je["x-s2o-name"]=(L&&L.operationId?m.sanitiseAll(L.operationId):"")+("_"+M.name).toCamelCase()),M.description&&(je.description=M.description),M.required&&(je.required=M.required),L&&le.rbname&&M.name&&(L[le.rbname]=M.name),M.schema&&M.schema.$ref?je["x-s2o-name"]=decodeURIComponent(M.schema.$ref.replace("#/components/schemas/","")):M.schema&&M.schema.type==="array"&&M.schema.items&&M.schema.items.$ref&&(je["x-s2o-name"]=decodeURIComponent(M.schema.items.$ref.replace("#/components/schemas/",""))+"Array"),Ce.length||Ce.push("application/json");for(let Me of Ce)je.content[Me]={},je.content[Me].schema=l(M.schema||{}),j(je.content[Me].schema,le);ae(M,je)}if(Object.keys(je).length>0&&(M["x-s2o-delete"]=!0,L))if(L.requestBody&&be){L.requestBody["x-s2o-overloaded"]=!0;let Me=L.operationId||we;z("Operation "+Me+" has multiple requestBodies",L,le)}else L.requestBody||(L=re[ve]=ee(L,le)),L.requestBody.content&&L.requestBody.content["multipart/form-data"]&&L.requestBody.content["multipart/form-data"].schema&&L.requestBody.content["multipart/form-data"].schema.properties&&je.content["multipart/form-data"]&&je.content["multipart/form-data"].schema&&je.content["multipart/form-data"].schema.properties?(L.requestBody.content["multipart/form-data"].schema.properties=Object.assign(L.requestBody.content["multipart/form-data"].schema.properties,je.content["multipart/form-data"].schema.properties),L.requestBody.content["multipart/form-data"].schema.required=(L.requestBody.content["multipart/form-data"].schema.required||[]).concat(je.content["multipart/form-data"].schema.required||[]),L.requestBody.content["multipart/form-data"].schema.required.length||delete L.requestBody.content["multipart/form-data"].schema.required):L.requestBody.content&&L.requestBody.content["application/x-www-form-urlencoded"]&&L.requestBody.content["application/x-www-form-urlencoded"].schema&&L.requestBody.content["application/x-www-form-urlencoded"].schema.properties&&je.content["application/x-www-form-urlencoded"]&&je.content["application/x-www-form-urlencoded"].schema&&je.content["application/x-www-form-urlencoded"].schema.properties?(L.requestBody.content["application/x-www-form-urlencoded"].schema.properties=Object.assign(L.requestBody.content["application/x-www-form-urlencoded"].schema.properties,je.content["application/x-www-form-urlencoded"].schema.properties),L.requestBody.content["application/x-www-form-urlencoded"].schema.required=(L.requestBody.content["application/x-www-form-urlencoded"].schema.required||[]).concat(je.content["application/x-www-form-urlencoded"].schema.required||[]),L.requestBody.content["application/x-www-form-urlencoded"].schema.required.length||delete L.requestBody.content["application/x-www-form-urlencoded"].schema.required):(L.requestBody=Object.assign(L.requestBody,je),L.requestBody["x-s2o-name"]||(L.requestBody.schema&&L.requestBody.schema.$ref?L.requestBody["x-s2o-name"]=decodeURIComponent(L.requestBody.schema.$ref.replace("#/components/schemas/","")).split("/").join(""):L.operationId&&(L.requestBody["x-s2o-name"]=m.sanitiseAll(L.operationId))));if(M&&!M["x-s2o-delete"]){delete M.type;for(let Me of m.parameterTypeProperties)delete M[Me];M.in==="path"&&(typeof M.required>"u"||M.required!==!0)&&(le.patch?(le.patches++,M.required=!0):w("(Patchable) path parameters must be required:true ["+M.name+" in "+we+"]",le))}return L}function ae(M,L){for(let re in M)re.startsWith("x-")&&!re.startsWith("x-s2o")&&(L[re]=M[re])}function ce(M,L,re,ve,we){if(!M)return!1;if(M.$ref&&typeof M.$ref=="string")M.$ref.indexOf("#/definitions/")>=0?z("definition used as response: "+M.$ref,M,we):M.$ref.startsWith("#/responses/")&&(M.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(M.$ref.replace("#/responses/",""))));else{if((typeof M.description>"u"||M.description===null||M.description===""&&we.patch)&&(we.patch?typeof M=="object"&&!Array.isArray(M)&&(we.patches++,M.description=g[M]||""):w("(Patchable) response.description is mandatory",we)),typeof M.schema<"u"){if(j(M.schema,we),M.schema.$ref&&typeof M.schema.$ref=="string"&&M.schema.$ref.startsWith("#/responses/")&&(M.schema.$ref="#/components/responses/"+m.sanitise(decodeURIComponent(M.schema.$ref.replace("#/responses/","")))),re&&re.produces&&typeof re.produces=="string")if(we.patch)we.patches++,re.produces=[re.produces];else return w("(Patchable) operation.produces must be an array",we);ve.produces&&!Array.isArray(ve.produces)&&delete ve.produces;let ke=((re?re.produces:null)||ve.produces||[]).filter(m.uniqueOnly);ke.length||ke.push("*/*"),M.content={};for(let le of ke){if(M.content[le]={},M.content[le].schema=l(M.schema),M.examples&&M.examples[le]){let je={};je.value=M.examples[le],M.content[le].examples={},M.content[le].examples.response=je,delete M.examples[le]}M.content[le].schema.type==="file"&&(M.content[le].schema={type:"string",format:"binary"})}delete M.schema}for(let ke in M.examples)M.content||(M.content={}),M.content[ke]||(M.content[ke]={}),M.content[ke].examples={},M.content[ke].examples.response={},M.content[ke].examples.response.value=M.examples[ke];if(delete M.examples,M.headers)for(let ke in M.headers)ke.toLowerCase()==="status code"?we.patch?(we.patches++,delete M.headers[ke]):w('(Patchable) "Status Code" is not a valid header',we):Z(M.headers[ke],we)}}function Q(M,L,re,ve,we){for(let ke in M){let le=M[ke];le&&le["x-trace"]&&typeof le["x-trace"]=="object"&&(le.trace=le["x-trace"],delete le["x-trace"]),le&&le["x-summary"]&&typeof le["x-summary"]=="string"&&(le.summary=le["x-summary"],delete le["x-summary"]),le&&le["x-description"]&&typeof le["x-description"]=="string"&&(le.description=le["x-description"],delete le["x-description"]),le&&le["x-servers"]&&Array.isArray(le["x-servers"])&&(le.servers=le["x-servers"],delete le["x-servers"]);for(let je in le)if(m.httpMethods.indexOf(je)>=0||je==="x-amazon-apigateway-any-method"){let be=le[je];if(be&&be.parameters&&Array.isArray(be.parameters)){if(le.parameters)for(let Re of le.parameters)typeof Re.$ref=="string"&&(te(Re,re),Re=o(we,Re.$ref)),!be.parameters.find(function(Ce,Me,de){return Ce.name===Re.name&&Ce.in===Re.in})&&(Re.in==="formData"||Re.in==="body"||Re.type==="file")&&(be=oe(Re,be,le,je,ke,we,re),re.rbname&&be[re.rbname]===""&&delete be[re.rbname]);for(let Re of be.parameters)be=oe(Re,be,le,je,je+":"+ke,we,re);re.rbname&&be[re.rbname]===""&&delete be[re.rbname],re.debug||be.parameters&&(be.parameters=be.parameters.filter(H))}if(be&&be.security&&N(be.security),typeof be=="object"){if(!be.responses){let Re={};Re.description="Default response",be.responses={default:Re}}for(let Re in be.responses){let Ce=be.responses[Re];ce(Ce,Re,be,we,re)}}if(be&&be["x-servers"]&&Array.isArray(be["x-servers"]))be.servers=be["x-servers"],delete be["x-servers"];else if(be&&be.schemes&&be.schemes.length){for(let Re of be.schemes)if((!we.schemes||we.schemes.indexOf(Re)<0)&&(be.servers||(be.servers=[]),Array.isArray(we.servers)))for(let Ce of we.servers){let Me=l(Ce),de=t.parse(Me.url);de.protocol=Re,Me.url=de.format(),be.servers.push(Me)}}if(re.debug&&(be["x-s2o-consumes"]=be.consumes||[],be["x-s2o-produces"]=be.produces||[]),be){if(delete be.consumes,delete be.produces,delete be.schemes,be["x-ms-examples"]){for(let Re in be["x-ms-examples"]){let Ce=be["x-ms-examples"][Re],Me=m.sanitiseAll(Re);if(Ce.parameters)for(let de in Ce.parameters){let Ae=Ce.parameters[de];for(let Qe of(be.parameters||[]).concat(le.parameters||[]))Qe.$ref&&(Qe=i.jptr(we,Qe.$ref)),Qe.name===de&&!Qe.example&&(Qe.examples||(Qe.examples={}),Qe.examples[Re]={value:Ae})}if(Ce.responses)for(let de in Ce.responses){if(Ce.responses[de].headers)for(let Ae in Ce.responses[de].headers){let Qe=Ce.responses[de].headers[Ae];for(let We in be.responses[de].headers)if(We===Ae){let _=be.responses[de].headers[We];_.example=Qe}}if(Ce.responses[de].body&&(we.components.examples[Me]={value:l(Ce.responses[de].body)},be.responses[de]&&be.responses[de].content))for(let Ae in be.responses[de].content){let Qe=be.responses[de].content[Ae];Qe.examples||(Qe.examples={}),Qe.examples[Re]={$ref:"#/components/examples/"+Me}}}}delete be["x-ms-examples"]}if(be.parameters&&be.parameters.length===0&&delete be.parameters,be.requestBody){let Re=be.operationId?m.sanitiseAll(be.operationId):m.sanitiseAll(je+ke).toCamelCase(),Ce=m.sanitise(be.requestBody["x-s2o-name"]||Re||"");delete be.requestBody["x-s2o-name"];let Me=JSON.stringify(be.requestBody),de=m.hash(Me);if(!ve[de]){let Qe={};Qe.name=Ce,Qe.body=be.requestBody,Qe.refs=[],ve[de]=Qe}let Ae="#/"+L+"/"+encodeURIComponent(i.jpescape(ke))+"/"+je+"/requestBody";ve[de].refs.push(Ae)}}}if(le&&le.parameters){for(let je in le.parameters){let be=le.parameters[je];oe(be,null,le,null,ke,we,re)}!re.debug&&Array.isArray(le.parameters)&&(le.parameters=le.parameters.filter(H))}}}function V(M,L){let re={};k={schemas:{}},M.security&&N(M.security);for(let we in M.components.securitySchemes){let ke=m.sanitise(we);we!==ke&&(M.components.securitySchemes[ke]&&w("Duplicate sanitised securityScheme name "+ke,L),M.components.securitySchemes[ke]=M.components.securitySchemes[we],delete M.components.securitySchemes[we]),$(M.components.securitySchemes[ke],L)}for(let we in M.components.schemas){let ke=m.sanitiseAll(we),le="";if(we!==ke){for(;M.components.schemas[ke+le];)le=le?++le:2;M.components.schemas[ke+le]=M.components.schemas[we],delete M.components.schemas[we]}k.schemas[we]=ke+le,j(M.components.schemas[ke+le],L)}L.refmap={},u(M,{payload:{options:L}},E),I(M,L);for(let we in M.components.parameters){let ke=m.sanitise(we);we!==ke&&(M.components.parameters[ke]&&w("Duplicate sanitised parameter name "+ke,L),M.components.parameters[ke]=M.components.parameters[we],delete M.components.parameters[we]);let le=M.components.parameters[ke];oe(le,null,null,null,ke,M,L)}for(let we in M.components.responses){let ke=m.sanitise(we);we!==ke&&(M.components.responses[ke]&&w("Duplicate sanitised response name "+ke,L),M.components.responses[ke]=M.components.responses[we],delete M.components.responses[we]);let le=M.components.responses[ke];if(ce(le,ke,null,M,L),le.headers)for(let je in le.headers)je.toLowerCase()==="status code"?L.patch?(L.patches++,delete le.headers[je]):w('(Patchable) "Status Code" is not a valid header',L):Z(le.headers[je],L)}for(let we in M.components.requestBodies){let ke=M.components.requestBodies[we],le=JSON.stringify(ke),je=m.hash(le),be={};be.name=we,be.body=ke,be.refs=[],re[je]=be}if(Q(M.paths,"paths",L,re,M),M["x-ms-paths"]&&Q(M["x-ms-paths"],"x-ms-paths",L,re,M),!L.debug)for(let we in M.components.parameters)M.components.parameters[we]["x-s2o-delete"]&&delete M.components.parameters[we];L.debug&&(M["x-s2o-consumes"]=M.consumes||[],M["x-s2o-produces"]=M.produces||[]),delete M.consumes,delete M.produces,delete M.schemes;let ve=[];if(M.components.requestBodies={},!L.resolveInternal){let we=1;for(let ke in re){let le=re[ke];if(le.refs.length>1){let je="";for(le.name||(le.name="requestBody",je=we++);ve.indexOf(le.name+je)>=0;)je=je?++je:2;le.name=le.name+je,ve.push(le.name),M.components.requestBodies[le.name]=l(le.body);for(let be in le.refs){let Re={};Re.$ref="#/components/requestBodies/"+le.name,i.jptr(M,le.refs[be],Re)}}}}return M.components.responses&&Object.keys(M.components.responses).length===0&&delete M.components.responses,M.components.parameters&&Object.keys(M.components.parameters).length===0&&delete M.components.parameters,M.components.examples&&Object.keys(M.components.examples).length===0&&delete M.components.examples,M.components.requestBodies&&Object.keys(M.components.requestBodies).length===0&&delete M.components.requestBodies,M.components.securitySchemes&&Object.keys(M.components.securitySchemes).length===0&&delete M.components.securitySchemes,M.components.headers&&Object.keys(M.components.headers).length===0&&delete M.components.headers,M.components.schemas&&Object.keys(M.components.schemas).length===0&&delete M.components.schemas,M.components&&Object.keys(M.components).length===0&&delete M.components,M}function Y(M){return!M||!M.url||typeof M.url!="string"||(M.url=M.url.split("{{").join("{"),M.url=M.url.split("}}").join("}"),M.url.replace(/\{(.+?)\}/g,function(L,re){M.variables||(M.variables={}),M.variables[re]={default:"unknown"}})),M}function G(M,L,re){if(typeof M.info>"u"||M.info===null)if(L.patch)L.patches++,M.info={version:"",title:""};else return re(new x("(Patchable) info object is mandatory"));if(typeof M.info!="object"||Array.isArray(M.info))return re(new x("info must be an object"));if(typeof M.info.title>"u"||M.info.title===null)if(L.patch)L.patches++,M.info.title="";else return re(new x("(Patchable) info.title cannot be null"));if(typeof M.info.version>"u"||M.info.version===null)if(L.patch)L.patches++,M.info.version="";else return re(new x("(Patchable) info.version cannot be null"));if(typeof M.info.version!="string")if(L.patch)L.patches++,M.info.version=M.info.version.toString();else return re(new x("(Patchable) info.version must be a string"));if(typeof M.info.logo<"u")if(L.patch)L.patches++,M.info["x-logo"]=M.info.logo,delete M.info.logo;else return re(new x("(Patchable) info should not have logo property"));if(typeof M.info.termsOfService<"u"){if(M.info.termsOfService===null)if(L.patch)L.patches++,M.info.termsOfService="";else return re(new x("(Patchable) info.termsOfService cannot be null"));try{new URL(M.info.termsOfService)}catch{if(L.patch)L.patches++,delete M.info.termsOfService;else return re(new x("(Patchable) info.termsOfService must be a URL"))}}}function D(M,L,re){if(typeof M.paths>"u")if(L.patch)L.patches++,M.paths={};else return re(new x("(Patchable) paths object is mandatory"))}function U(M,L){const re=new WeakSet;u(M,{identityDetection:!0},function(ve,we,ke){typeof ve[we]=="object"&&ve[we]!==null&&(re.has(ve[we])?L.anchors?ve[we]=l(ve[we]):w("YAML anchor or merge key at "+ke.path,L):re.add(ve[we]))})}function K(M,L,re){return a(re,new Promise(function(ve,we){if(M||(M={}),L.original=M,L.text||(L.text=n.stringify(M)),L.externals=[],L.externalRefs={},L.rewriteRefs=!0,L.preserveMiro=!0,L.promise={},L.promise.resolve=ve,L.promise.reject=we,L.patches=0,L.cache||(L.cache={}),L.source&&(L.cache[L.source]=L.original),U(M,L),M.openapi&&typeof M.openapi=="string"&&M.openapi.startsWith("3.")){L.openapi=c(M),G(L.openapi,L,we),D(L.openapi,L,we),d.optionalResolve(L).then(function(){return L.direct?ve(L.openapi):ve(L)}).catch(function(le){console.warn(le),we(le)});return}if(!M.swagger||M.swagger!="2.0")return we(new x("Unsupported swagger/OpenAPI version: "+(M.openapi?M.openapi:M.swagger)));let ke=L.openapi={};if(ke.openapi=typeof L.targetVersion=="string"&&L.targetVersion.startsWith("3.")?L.targetVersion:b,L.origin){ke["x-origin"]||(ke["x-origin"]=[]);let le={};le.url=L.source||L.origin,le.format="swagger",le.version=M.swagger,le.converter={},le.converter.url="https://github.com/mermade/oas-kit",le.converter.version=v,ke["x-origin"].push(le)}if(ke=Object.assign(ke,c(M)),delete ke.swagger,u(ke,{},function(le,je,be){le[je]===null&&!je.startsWith("x-")&&je!=="default"&&be.path.indexOf("/example")<0&&delete le[je]}),M.host)for(let le of Array.isArray(M.schemes)?M.schemes:[""]){let je={},be=(M.basePath||"").replace(/\/$/,"");je.url=(le?le+":":"")+"//"+M.host+be,Y(je),ke.servers||(ke.servers=[]),ke.servers.push(je)}else if(M.basePath){let le={};le.url=M.basePath,Y(le),ke.servers||(ke.servers=[]),ke.servers.push(le)}if(delete ke.host,delete ke.basePath,ke["x-servers"]&&Array.isArray(ke["x-servers"])&&(ke.servers=ke["x-servers"],delete ke["x-servers"]),M["x-ms-parameterized-host"]){let le=M["x-ms-parameterized-host"],je={};je.url=le.hostTemplate+(M.basePath?M.basePath:""),je.variables={};const be=je.url.match(/\{\w+\}/g);for(let Re in le.parameters){let Ce=le.parameters[Re];Ce.$ref&&(Ce=l(o(ke,Ce.$ref))),Re.startsWith("x-")||(delete Ce.required,delete Ce.type,delete Ce.in,typeof Ce.default>"u"&&(Ce.enum?Ce.default=Ce.enum[0]:Ce.default="none"),Ce.name||(Ce.name=be[Re].replace("{","").replace("}","")),je.variables[Ce.name]=Ce,delete Ce.name)}ke.servers||(ke.servers=[]),le.useSchemePrefix===!1?ke.servers.push(je):M.schemes.forEach(Re=>{ke.servers.push(Object.assign({},je,{url:Re+"://"+je.url}))}),delete ke["x-ms-parameterized-host"]}G(ke,L,we),D(ke,L,we),typeof ke.consumes=="string"&&(ke.consumes=[ke.consumes]),typeof ke.produces=="string"&&(ke.produces=[ke.produces]),ke.components={},ke["x-callbacks"]&&(ke.components.callbacks=ke["x-callbacks"],delete ke["x-callbacks"]),ke.components.examples={},ke.components.headers={},ke["x-links"]&&(ke.components.links=ke["x-links"],delete ke["x-links"]),ke.components.parameters=ke.parameters||{},ke.components.responses=ke.responses||{},ke.components.requestBodies={},ke.components.securitySchemes=ke.securityDefinitions||{},ke.components.schemas=ke.definitions||{},delete ke.definitions,delete ke.responses,delete ke.parameters,delete ke.securityDefinitions,d.optionalResolve(L).then(function(){V(L.openapi,L),L.direct?ve(L.openapi):ve(L)}).catch(function(le){console.warn(le),we(le)})}))}function X(M,L,re){return a(re,new Promise(function(ve,we){let ke=null,le=null;try{ke=JSON.parse(M),L.text=JSON.stringify(ke,null,2)}catch(je){le=je;try{ke=n.parse(M,{schema:"core",prettyErrors:!0}),L.sourceYaml=!0,L.text=M}catch(be){le=be}}ke?K(ke,L).then(je=>ve(je)).catch(je=>we(je)):we(new x(le?le.message:"Could not parse string"))}))}function J(M,L,re){return a(re,new Promise(function(ve,we){L.origin=!0,L.source||(L.source=M),L.verbose&&console.warn("GET "+M),L.fetch||(L.fetch=r);const ke=Object.assign({},L.fetchOptions,{agent:L.agent});L.fetch(M,ke).then(function(le){if(le.status!==200)throw new x(`Received status code ${le.status}: ${M}`);return le.text()}).then(function(le){X(le,L).then(je=>ve(je)).catch(je=>we(je))}).catch(function(le){we(le)})}))}function he(M,L,re){return a(re,new Promise(function(ve,we){e.readFile(M,L.encoding||"utf8",function(ke,le){ke?we(ke):(L.sourceFile=M,X(le,L).then(je=>ve(je)).catch(je=>we(je)))})}))}function Oe(M,L,re){return a(re,new Promise(function(ve,we){let ke="";M.on("data",function(le){ke+=le}).on("end",function(){X(ke,L).then(le=>ve(le)).catch(le=>we(le))})}))}return H$={S2OError:x,targetVersion:b,convert:K,convertObj:K,convertUrl:J,convertStr:X,convertFile:he,convertStream:Oe},H$}var sHt=oHt();const lHt=Nn(sHt);function cHt(e){return e.paths||(e.paths={}),new Promise((t,a)=>lHt.convertObj(e,{patch:!0,warnOnly:!0,text:"{}",anchors:!0},(r,n)=>{if(r)return a(r);t(n?.openapi)}))}async function uHt(){try{return(await Lxe())?.resolvedConfig.openapi||{}}catch{return{}}}async function dHt(e){const t=await Lxe(),a={config:t,base:$p?window.location.origin:typeof globalThis.process<"u"?globalThis.process.cwd():""};$p&&(t.resolve.http.customFetch=globalThis.fetch),typeof e=="object"&&e!==null?a.doc=pHt(e):a.ref=e;const{bundle:{parsed:r}}=await AKt(a);return r.swagger!==void 0?cHt(r):r}function pHt(e){return{source:{absoluteRef:""},parsed:e}}async function hHt(e,t,a){let r;if(a?.skipBundle){if(!e)throw new Error('spec must be specified when using "skipBundleAndConvert"');r=e}else r=await dHt(e||t);try{T4t(r)}catch{}return r}const mHt=({options:e,definitionUrl:t,definition:a,activeSampleLanguage:r,children:n})=>{const[i,o]=P.useState(),[s,l]=P.useState(!0),[c,u]=P.useState(null),[d,h]=P.useState(e||{});P.useEffect(()=>{async function g(){l(!0);try{const v=await uHt();h({...e,...v}),u(await hHt(a,t,e))}catch(v){o(v.message)}}g()},[a,t,e]);const m=P.useMemo(()=>{if(c)return{definition:c,options:d,definitionUrl:t,activeSampleLanguage:r}},_4t([c,t,d]));return P.useEffect(()=>{m&&l(!1)},[m]),i||!m?null:s?hu(e?.hideLoading,!1)?null:p.jsx(ZLt,{color:"--loading-spinner-color"}):P.isValidElement(n)?P.cloneElement(n,{store:m}):null};function fHt({definition:e,definitionUrl:t,options:a={},activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,router:o}){return p.jsx(mHt,{definition:e,definitionUrl:t,options:a,activeItemId:r,activeSampleLanguage:n,activeDeepLink:i,children:p.jsx(r0e,{withCommonStyles:!0,router:o||"hash"})})}function gHt(e){const t={},a=e.attributes;for(let r=0;r<a.length;r++){const n=a[r];t[n.name]=n.value}return t}function vHt(e){const t=gHt(e),a={};for(const r in t){const n=r.replace(/-(.)/g,(i,o)=>o.toUpperCase());a[n]=t[r]}return a}function bHt(e,t=document.querySelector("redoc")){JN.hydrateRoot(t,p.jsx(r0e,{store:e}),{onRecoverableError:(a,r)=>{a.message.includes("Minified React error #418")||console.error(a.message,r)}})}function Ywe(e,t={},a=YN("redoc")){if(a===null)throw new Error('"element" argument is not provided and <redoc> tag is not found on the page');const{router:r,...n}={...t,...vHt(a)};let i,o;typeof e=="string"?i=e:typeof e=="object"&&(o=e),JN.createRoot(a).render(P.createElement(fHt,{definition:o,definitionUrl:i,options:n,router:r??"hash"},["Loading..."]))}const yHt="3.21.0-next.3",kHt="fc59e42320";function xHt(){const e=YN("redoc");if(!e)return;const t=e.getAttribute("spec-url");t&&Ywe(t,{},e)}xHt();function wHt(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function SHt({value:e=!1,disabled:t=!1,onChange:a,onFocus:r,stopPropagation:n=!1,className:i}){const o=l=>{t||(n&&l.stopPropagation(),a(!e))},s=l=>{n&&l.stopPropagation(),r?.()};return p.jsx(OHt,{tabIndex:t?-1:0,onFocus:s,onClick:o,role:"switch","aria-checked":e,"aria-disabled":t,selected:e,disabled:t,className:i,children:p.jsx(zHt,{selected:e,disabled:t})})}const OHt=R.div`
|
|
11540
11577
|
width: var(--switch-width);
|
|
11541
11578
|
height: var(--switch-height);
|
|
11542
11579
|
border-radius: var(--switch-border-radius);
|
|
@@ -12591,7 +12628,7 @@ $3`);return t.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function Mya(e){return e.
|
|
|
12591
12628
|
`];let k=-1,x=0;for(const w of b){const z=e.indexOf(w,u);if(z!==-1&&z<l.start){k=z,x=w.length;break}}if(k!==-1)d=k+x;else{const w=[`
|
|
12592
12629
|
`,`\r
|
|
12593
12630
|
`];for(const z of w){const S=e.indexOf(z,u);if(S!==-1&&S<l.start){d=S+z.length;break}}}}const v=l.start;t.push({boundaryStart:s.start,boundaryEnd:s.end,headersStart:c,headersEnd:u,bodyStart:d,bodyEnd:v,contentType:h})}return t}const gka=()=>hn.fromClass(class{decorations;constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=this.buildDecorations(e.view))}buildDecorations(e){const t=e.state.doc.toString(),a=[],r=Bt.mark({attributes:{style:"color: var(--color-carrot-8); font-weight: var(--font-weight-semibold);"}}),n=Bt.mark({attributes:{style:"color: var(--color-blue-8);"}}),i=Bt.mark({attributes:{style:"color: var(--color-purple-8);"}}),o=fka(t),s=/^--[a-zA-Z0-9_\-\.]+(?:--)?(?:\r?\n|$)/gm,l=[];let c;for(;(c=s.exec(t))!==null;)l.push({start:c.index,end:c.index+c[0].length});for(const g of l)e.visibleRanges.some(v=>Math.max(v.from,g.start)<Math.min(v.to,g.end))&&a.push({from:g.start,to:g.end,value:r});const u=/^([a-zA-Z0-9\-]+):\s*(.+?)(?:\r?\n|$)/gm;for(const g of o){u.lastIndex=g.headersStart;let v;for(;(v=u.exec(t))!==null&&v.index<g.headersEnd;){const b=v.index+v[1].length+1+(v[2].match(/^\s*/)?.[0]?.length||0),k=v.index+v[0].length-(v[0].match(/\r?\n$/)?.[0]?.length||0);e.visibleRanges.some(x=>Math.max(x.from,b)<Math.min(x.to,k))&&k>b&&a.push({from:b,to:k,value:n})}}const d=/\[Binary\s+Data\]/gi;let h;for(;(h=d.exec(t))!==null;){const g=h.index,v=h[0].length;e.visibleRanges.some(b=>Math.max(b.from,g)<Math.min(b.to,g+v))&&a.push({from:g,to:g+v,value:i})}const m=Bt.mark({attributes:{style:"color: var(--color-blue-8);"}});for(const g of o)if(g.contentType?.includes("json")){const v=t.slice(g.bodyStart,g.bodyEnd),b=v.trim();if(!b)continue;const k=v.length-v.trimStart().length,x=g.bodyStart+k;let w;try{const S=ix.create("inmemory://model.json","json",0,b),C=pka.parseJSONDocument(S)?.root;w=hka(C)?C:void 0}catch{w=void 0}if(!w)continue;const z=mka(w);for(const S of z){const C=x+S.from,j=x+S.to;if(!e.visibleRanges.some(I=>Math.max(I.from,C)<Math.min(I.to,j))||!(t[C]==='"'&&t[j-1]==='"'))continue;const T=C+1,E=j-1;E<=T||a.push({from:T,to:E,value:m})}}return Bt.set(a,!0)}},{decorations:e=>e.decorations}),vka=()=>hn.fromClass(class{decorations;constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=this.buildDecorations(e.view))}buildDecorations(e){const t=e.state.doc.toString(),a=[],r=Bt.mark({attributes:{style:"color: var(--color-blue-8);"}}),n=/^([a-zA-Z0-9\-]+):\s*(.+?)(?:\r?\n|$)/gm;let i;for(;(i=n.exec(t))!==null;){let o=i.index+i[1].length+1;for(;o<t.length&&/\s/.test(t[o]);)o++;const s=i.index+i[0].length-(i[0].match(/\r?\n$/)?.[0]?.length||0);s<=o||!e.visibleRanges.some(l=>Math.max(l.from,o)<Math.min(l.to,s))||a.push({from:o,to:s,value:r})}return Bt.set(a,!0)}},{decorations:e=>e.decorations}),bka=gR({});function yka(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.type=="string"&&typeof t.offset=="number"&&typeof t.length=="number"}function kka(e){const t=[];if(!e)return t;const a=[e];for(;a.length>0;){const r=a.pop();if(r.type==="property"){r.valueNode&&a.push(r.valueNode);continue}if(r.type==="string"){const n=r.offset,i=r.offset+r.length;i>n&&t.push({from:n,to:i})}if(r.children&&r.children.length)for(const n of r.children)a.push(n)}return t}const UG=()=>hn.fromClass(class{decorations;constructor(e){this.decorations=this.buildDecorations(e)}update(e){(e.docChanged||e.viewportChanged)&&(this.decorations=this.buildDecorations(e.view))}buildDecorations(e){const t=e.state.doc.toString(),a=[],r=Bt.mark({attributes:{style:"color: var(--color-blue-8);"}}),n=Bt.mark({attributes:{style:"color: var(--code-block-tokens-keyword-color); font-weight: var(--font-weight-bold);"}}),i=t.split(/\r?\n/);let o=0;for(let s=0;s<i.length;s++){const l=i[s],c=o,u=o+l.length;if(!l.trim()){o=u+(t[o+l.length]==="\r"?2:1);continue}let d=c,h=l;l.startsWith("0x1E")?(d=c+4,h=l.substring(4),a.push({from:c,to:c+4,value:n})):l.charCodeAt(0)===30&&(d=c+1,h=l.substring(1),a.push({from:c,to:c+1,value:n})),l.endsWith("0x0A")?(h=h.substring(0,h.length-4),a.push({from:u-4,to:u,value:n})):l.charCodeAt(l.length-1)===10&&(h=h.substring(0,h.length-1),a.push({from:u-1,to:u,value:n}));let m;try{const v=ix.create("inmemory://model.json","json",0,h),b=bka.parseJSONDocument(v)?.root;m=yka(b)?b:void 0}catch{m=void 0}if(!m){o=u+(t[o+l.length]==="\r"?2:1);continue}const g=kka(m);for(const v of g){const b=d+v.from,k=d+v.to;if(!e.visibleRanges.some(z=>Math.max(z.from,b)<Math.min(z.to,k))||!(t[b]==='"'&&t[k-1]==='"'))continue;const x=b+1,w=k-1;w<=x||a.push({from:x,to:w,value:r})}o=u+(t[o+l.length]==="\r"?2:1)}return Bt.set(a,!0)}},{decorations:e=>e.decorations}),cx={[ko.Text]:{name:"Text",extensions:[At.lineWrapping],stateExtensions:[GG]},[ko.JSON]:{name:"JSON",extensions:[B3e(),Gga(rka(),{delay:0,needsRefresh:e=>e.transactions.some(t=>t.effects.some(a=>a.is(Z6e)))}),L3e.data.of({autocomplete:ika()}),nka,At.lineWrapping],stateExtensions:[aka,dka]},[ko.XML]:{name:"XML",extensions:[Rga(),At.lineWrapping],stateExtensions:[GG]}},J6e={[ko.MultipartMixed]:{name:"Multipart Mixed",extensions:[At.lineWrapping],stateExtensions:[gka]},[ko.JSONL]:{name:"JSON Lines",extensions:[At.lineWrapping],stateExtensions:[UG]},[ko.NDJSON]:{name:"NDJSON",extensions:[B3e(),At.lineWrapping],stateExtensions:[UG]},[ko.JSONSeq]:{name:"JSON Sequence",extensions:[At.lineWrapping],stateExtensions:[UG]},[ko.TextStream]:{name:"SSE",extensions:[At.lineWrapping],stateExtensions:[vka]}},Y6e={[ko.Image]:{name:"Image",extensions:[],stateExtensions:[]}},X6e={[ko.HTML]:{name:"HTML",extensions:[uga()],stateExtensions:[GG]}},qC={...cx,...Y6e,...X6e,...J6e},QG={...cx,...Y6e,...X6e},sy={...cx,...J6e},e8e={[ko.FormData]:{name:"form-data",extensions:void 0},[ko["application/x-www-form-urlencoded"]]:{name:"x-www-form-urlencoded",extensions:void 0}},t8e={[ko.Binary]:{name:"Binary",extensions:void 0}},ly={...cx,...e8e,...t8e},xka=Object.keys(cx),bR=Object.keys(e8e),a8e=Object.keys(t8e);function r8e(e=[],t){const a={};return e.forEach(r=>{const n=String(r[t]);a[n]||(a[n]=[]),a[n].push(r)}),a}const GC={active:!0,key:"",value:""};function cy(e,t){return[...e.map(a=>({id:crypto.randomUUID(),key:a.name,value:t.initializeWithInputs?`$inputs.${a.name}`:a.example?String(a.example):"",active:t.initializeWithInputs?!0:!!a.example,in:a.in,...a.allowReserved&&{allowReserved:a.allowReserved}})),cn(t.in)]}function UC(e,t){const[a]=e.split("?"),r=t.slice(0,-1).filter(n=>n.active).map(n=>`${n.key}=${n.value}`).join("&");return`${a}${r?`?${r}`:""}`}function jl(){return{id:crypto.randomUUID(),...GC}}function Gc(){return{id:crypto.randomUUID(),...GC,description:""}}function cn(e){return{...GC,id:crypto.randomUUID(),in:e}}function Qm(){return{id:crypto.randomUUID(),...GC,type:"text",files:null}}function WG(){return{id:crypto.randomUUID(),...GC,sendIn:yl.URL}}function ZG(e){return e.map(t=>({id:crypto.randomUUID(),key:"",value:t,active:!0}))}function yR(e,t){return e.filter(a=>a.active&&a.value).map(({value:a})=>(t?Tn(a,t):a).trim())}function $g(e,t){const a=t.filter(r=>!!r).flatMap(r=>r).filter(r=>r.key&&r.active);return["path","header"].includes(e)?Array.from(new Map(a.map(r=>[r.key,r])).values()):a}function wka(e,t){return e.map(({value:a,...r})=>({...r,value:Tn(a,t)}))}function Ska(e,t){if(!e.startsWith("$components.parameters."))return null;const a=e.replace("$components.parameters.","");return a&&t[a]||null}function eo(e=[],t={}){const a=[];for(const r of e)if(Nb(r)){const n=Ska(r.reference,t);n&&a.push({...n,active:r.active,value:r.value||n.value})}else a.push(r);return a}function Kg(e){return Object.entries(e).map(([t,a])=>({id:crypto.randomUUID(),key:"",value:t,active:!0,description:a}))}function Oka(e,t){return[...e.flatMap(a=>{const r=a.schema,n=r?.fields||[];return n.length>0?n.flatMap(i=>n8e(i.name,i.example,a.allowReserved)):n8e(a.name,r?.example??a.example,a.allowReserved)}),cn("query")]}function n8e(e,t,a){if(t===void 0)return[YG(e,"",!1,a)];const r=JG(t,e);return r.length===0?[YG(e,"",!1,a)]:r.map(n=>YG(n.key,n.value,!0,a))}function JG(e,t){return e===void 0?[]:e===null?[{key:t,value:""}]:Array.isArray(e)?e.flatMap((a,r)=>a!==null&&typeof a=="object"?JG(a,`${t}[${r}]`):[{key:t,value:String(a)}]):zka(e)?Object.entries(e).flatMap(([a,r])=>JG(r,`${t}[${a}]`)):[{key:t,value:String(e)}]}function zka(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}function YG(e,t,a,r){return{id:crypto.randomUUID(),key:e,value:t,active:a,in:"query",...r&&{allowReserved:r}}}function Cka(e){return e.replace(/{/g,"{{").replace(/}/g,"}}")}const XG={documentedOAuth2Types:[],grantType:Ye.ClientCredentials,authRequestExtraParams:[jl()],tokenRequestExtraParams:[WG()],[Ye.ClientCredentials]:{clientId:"",clientSecret:"",clientAssertion:"",tokenUrl:"",scopes:[Gc()],accessToken:""},[Ye.ClientCredentialsWithJwtAssertion]:{clientId:"",clientSecret:"",clientAssertion:"",tokenUrl:"",scopes:[Gc()],accessToken:""},[Ye.AuthorizationCode]:{clientId:"",clientSecret:"",tokenUrl:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[Gc()],codeVerifier:"",codeChallenge:"",accessToken:""},[Ye.AuthorizationCodeWithPkce]:{clientId:"",clientSecret:"",tokenUrl:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[Gc()],codeVerifier:"",codeChallenge:"",accessToken:""},[Ye.Implicit]:{clientId:"",authorizationUrl:"",callbackUrl:"",availableScopes:[],scopes:[Gc()],accessToken:""},[Ye.Password]:{username:"",password:"",clientId:"",clientSecret:"",tokenUrl:"",accessToken:"",scopes:[Gc()]}},jka={securityType:qe.NoAuth,securitySchemeId:null,[qe.BasicAuth]:{username:"",password:""},[qe.JWT]:{token:""},[qe.DigestAuth]:{username:"",password:"",nc:"00000001",realm:"",nonce:"",opaque:"",qop:"",algorithm:"",cnonce:""},[qe.APIKey]:{location:fu.Header,name:"",key:""},[qe.OAuth2]:XG,[qe.OpenIDConnect]:{...XG,openIdConnectUrl:"",userInfoUrl:""}},Pka={clientCredentials:Ye.ClientCredentials,clientCredentialsWithJwtAssertion:Ye.ClientCredentialsWithJwtAssertion,authorizationCode:Ye.AuthorizationCode,authorizationCodeWithPkce:Ye.AuthorizationCodeWithPkce,implicit:Ye.Implicit,password:Ye.Password},eU="urn:ietf:params:oauth:client-assertion-type:jwt-bearer",Aka={[ps.SIMPLE]:{condition:"",type:ps.SIMPLE},[ps.REGEX]:{condition:"",type:ps.REGEX,context:""},[ps.JSONPATH]:{condition:"",type:ps.JSONPATH,context:""},[ps.XPATH]:{condition:"",type:ps.XPATH,context:""}};function kR(){return structuredClone({type:xi.Text,content:"",activeExampleName:"",formData:{"multipart/form-data":[Qm()],"application/x-www-form-urlencoded":[Qm()]},binary:null})}const Tka={method:"GET",url:"",security:[Pu()],body:kR(),queryParameters:[jl()],headers:[jl()],cookies:[jl()],pathParameters:[jl()]};function i8e(){return structuredClone(Tka)}function Pu(){return ap(jka)}function tU(e){return ap({id:crypto.randomUUID(),...Aka[e]})}function o8e(e,t,a){for(const r of a){const n=s8e(e,r),i=s8e(t,r);if(typeof n=="object"&&typeof i=="object"){if(!o8e(n,i,a))return!1}else if(n!==i)return!1}return!0}function s8e(e,t){const a=t.split("/");let r=e;for(const n of a)if(r&&typeof r=="object"&&n in r)r=r[n];else return;return r}function _ka(e,t){return e.length===t.length&&e.sort().join()===t.sort().join()}function Mka(e,t){return e.every(a=>t.includes(a))}function Eka(e){switch(e){case"query":return fu.Query;case"cookie":return fu.Cookie;case"header":return fu.Header;default:return}}function Rka(e,t,a){const{security:r}=t,n=kla(e);if(!a)return!1;const i=aU(a),o=i.map(c=>c.securityType),s=r.map(c=>c.securityType);if(!_ka(o,s))return!0;let l=[];return r.forEach(c=>{const u=c.securityType,d=c[qe.OAuth2]?.grantType,h=o.includes(u),m=i.find(k=>k.securityType===u),g=!m||o8e(c,m,Ika(u,d)),v=Nka(c,u,c[qe.OAuth2]?.grantType,n),b=!!(h&&m&&g&&v);l.push(!a.security?.length||b)}),l.includes(!1)}function Nka(e,t,a,r){if(t===qe.OAuth2&&(a===Ye.AuthorizationCode||a===Ye.AuthorizationCodeWithPkce||a===Ye.Implicit)){const n=e[qe.OAuth2][a]?.availableScopes,i=yR(e[qe.OAuth2][a]?.scopes,r);return Mka(i,n)}return!0}function Ika(e,t){return e===qe.APIKey?[`${qe.APIKey}/name`,`${qe.APIKey}/location`]:e===qe.OAuth2?[`${qe.OAuth2}/grantType`,...Lka(t)]:e===qe.OpenIDConnect?[`${qe.OpenIDConnect}/openIdConnectUrl`]:[]}function Lka(e){return e===Ye.ClientCredentials?[`${qe.OAuth2}/${Ye.ClientCredentials}/tokenUrl`]:e===Ye.Password?[`${qe.OAuth2}/${Ye.Password}/tokenUrl`]:e===Ye.Implicit?[`${qe.OAuth2}/${Ye.Implicit}/authorizationUrl`]:e===Ye.AuthorizationCode?[`${qe.OAuth2}/${Ye.AuthorizationCode}/tokenUrl`,`${qe.OAuth2}/${Ye.AuthorizationCode}/authorizationUrl`]:e===Ye.AuthorizationCodeWithPkce?[`${qe.OAuth2}/${Ye.AuthorizationCodeWithPkce}/tokenUrl`,`${qe.OAuth2}/${Ye.AuthorizationCodeWithPkce}/authorizationUrl`]:[]}function Bka(e){return e.map(t=>{const a=t.map(r=>r.id).join("_");return t.map(r=>({...r,schemeId:a}))})}function Dka(e){const t=e.security||[],a=t.map(r=>{let n="";const i=[];return r.forEach((o,s)=>{n=s===0?`${o.id}`:`${n}_${o.id}`,i.push(rU(o))}),{id:n,security:i}});return t.length?a:[]}function $ka(e,t){const a=e.security||[];return a?.length?h8e(a).map((r,n)=>rU(r)):[]}function aU(e){const t=(e.security||[])[0];return t?t.map(a=>rU(a)):[Pu()]}function rU(e,t){const a={...Pu(),securitySchemeId:e.id},r=xR(e);a.securityType=r;const n=e.id;if(e.id&&r!==qe.NoAuth&&(a[r].schemeName=e.id),r===qe.BasicAuth&&(a[qe.BasicAuth].username||(a[qe.BasicAuth].username=Vi(n+Ea.Username)),a[qe.BasicAuth].password||(a[qe.BasicAuth].password=Vi(n+Ea.Password))),r===qe.DigestAuth&&(a[qe.DigestAuth].username||(a[qe.DigestAuth].username=Vi(n+Ea.Username)),a[qe.DigestAuth].password||(a[qe.DigestAuth].password=Vi(n+Ea.Password))),r===qe.JWT&&!a[qe.JWT].token&&(a[qe.JWT].token=Vi(n+Ea.JWTToken)),r===qe.APIKey&&!a[qe.APIKey].key){a[qe.APIKey].name=e.name||"",a[qe.APIKey].key=Vi(n+Ea.APIKey);const i=Eka(e.in);i&&(a[qe.APIKey].location=i)}if(r===qe.OAuth2){const i=sU(e),o=Vi(n+Ea.Token),s=a[qe.OAuth2];s.grantType=i[0],i.forEach(l=>{l===Ye.AuthorizationCode&&!s[Ye.AuthorizationCode].accessToken&&(s[Ye.AuthorizationCode].accessToken=o,s[Ye.AuthorizationCode].clientId=Vi(n+Ea.ClientId),s[Ye.AuthorizationCode].authorizationUrl=e.flows?.authorizationCode?.authorizationUrl||"",s[Ye.AuthorizationCode].tokenUrl=e.flows?.authorizationCode?.tokenUrl||"",s[Ye.AuthorizationCode].clientSecret=Vi(n+Ea.ClientSecret),s[Ye.AuthorizationCode].availableScopes=Object.keys(e.flows?.authorizationCode?.scopes||{})||[],s[Ye.AuthorizationCode].scopes=[...Kg(e.flows?.authorizationCode?.scopes||{})||[],Gc()]),l===Ye.AuthorizationCodeWithPkce&&!s[Ye.AuthorizationCodeWithPkce].accessToken&&(s[Ye.AuthorizationCodeWithPkce].accessToken=o,s[Ye.AuthorizationCodeWithPkce].clientId=Vi(n+Ea.ClientId),s[Ye.AuthorizationCodeWithPkce].authorizationUrl=e.flows?.authorizationCode?.authorizationUrl||"",s[Ye.AuthorizationCodeWithPkce].tokenUrl=e.flows?.authorizationCode?.tokenUrl||"",s[Ye.AuthorizationCodeWithPkce].clientSecret=Vi(n+Ea.ClientSecret),s[Ye.AuthorizationCodeWithPkce].availableScopes=Object.keys(e.flows?.authorizationCode?.scopes||{})||[],s[Ye.AuthorizationCodeWithPkce].scopes=[...Kg(e.flows?.authorizationCode?.scopes||{}),Gc()]),l===Ye.ClientCredentials&&!s[Ye.ClientCredentials].accessToken&&(s[Ye.ClientCredentials].accessToken=o,s[Ye.ClientCredentials].clientId=Vi(n+Ea.ClientId),s[Ye.ClientCredentials].clientSecret=Vi(n+Ea.ClientSecret),s[Ye.ClientCredentials].tokenUrl=e.flows?.clientCredentials?.tokenUrl||"",s[Ye.ClientCredentials].scopes=[...Kg(e.flows?.clientCredentials?.scopes||{}),Gc()]),l===Ye.ClientCredentialsWithJwtAssertion&&!s[Ye.ClientCredentialsWithJwtAssertion].accessToken&&(s[Ye.ClientCredentialsWithJwtAssertion].accessToken=o,s[Ye.ClientCredentialsWithJwtAssertion].clientId=Vi(n+Ea.ClientId),s[Ye.ClientCredentialsWithJwtAssertion].clientAssertion=Vi(n+Ea.ClientAssertion),s[Ye.ClientCredentialsWithJwtAssertion].scopes=[...Kg(e.flows?.clientCredentials?.scopes||{}),Gc()]),l===Ye.Implicit&&!s[Ye.Implicit].accessToken&&(s[Ye.Implicit].accessToken=o,s[Ye.Implicit].clientId=Vi(n+Ea.ClientId),s[Ye.Implicit].authorizationUrl=e.flows?.implicit?.authorizationUrl||"",s[Ye.Implicit].availableScopes=Object.keys(e.flows?.implicit?.scopes||{})||[],s[Ye.Implicit].scopes=[...Kg(e.flows?.implicit?.scopes||{}),Gc()]),l===Ye.Password&&!s[Ye.Password].accessToken&&(s[Ye.Password].accessToken=o,s[Ye.Password].clientId=Vi(n+Ea.ClientId),s[Ye.Password].clientSecret=Vi(n+Ea.ClientSecret),s[Ye.Password].tokenUrl=e.flows?.password?.tokenUrl||"",s[Ye.Password].scopes=[...Kg(e.flows?.password?.scopes||{}),Gc()])})}if(r===qe.OpenIDConnect){const i=Vi(n+Ea.Token),o=a[qe.OpenIDConnect];o[Ye.AuthorizationCode].accessToken||(o[Ye.AuthorizationCode].accessToken=i,o[Ye.AuthorizationCode].clientId=Vi(n+Ea.ClientId),o[Ye.AuthorizationCode].clientSecret=Vi(n+Ea.ClientSecret),o[Ye.AuthorizationCode].tokenUrl=e.flows?.authorizationCode?.tokenUrl||""),o[Ye.AuthorizationCodeWithPkce].accessToken||(o[Ye.AuthorizationCodeWithPkce].accessToken=i,o[Ye.AuthorizationCodeWithPkce].clientId=Vi(n+Ea.ClientId),o[Ye.AuthorizationCodeWithPkce].clientSecret=Vi(n+Ea.ClientSecret),o[Ye.AuthorizationCodeWithPkce].tokenUrl=e.flows?.authorizationCode?.tokenUrl||""),o[Ye.Implicit].accessToken||(o[Ye.Implicit].accessToken=i,o[Ye.Implicit].clientId=Vi(n+Ea.ClientId))}return a}function l8e(e){try{const t=JSON.parse(e);return JSON.stringify(t,null,2)}catch(t){return console.error({error:t}),e}}function nU(e){try{const t=JSON.stringify(e);return t===void 0?"undefined":t}catch{return String(e)}}function c8e(e,t){return t&&t.length>0?Oka(t):cy(e||[],{in:"query"})}function Kka(e,t=!1,a="",r){const n=r8e(e.parameters,"in"),i=u8e(e),o=aU(e),s=c8e(n.query,n.querystring);return{id:crypto.randomUUID(),name:e.name,operationId:e.operationId,collectionPath:r,apiPath:{path:e.path,method:e.method},apiId:a,isAdditionalOperation:t,request:{pathParameters:cy(n.path||[],{in:"path"}),method:e.method.toLowerCase()==="x-query"?"QUERY":e.method.toLocaleUpperCase(),url:UC(Cka(e.path),s),headers:cy(n.header||[],{in:"header"}),queryParameters:s,cookies:cy(n.cookie||[],{in:"cookie"}),body:i,security:o},response:null}}function iU(e){const t=r8e(e.parameters,"in"),a=u8e(e),r=aU(e);return{parameters:{queryParameters:c8e(t.query,t.querystring),headers:cy(t.header||[],{in:"header"}),cookies:cy(t.cookie||[],{in:"cookie"}),pathParameters:cy(t.path||[],{initializeWithInputs:!0,in:"path"})},requestBody:a,security:r}}function Hka(e,t){const a=new Ec({format:!0});if(typeof e=="string")return t?.includes("json")?l8e(e):e;if(typeof e=="object"&&e!==null&&t?.includes("xml")){const r=Array.isArray(e)?e:{root:e};return a.build(r)}return JSON.stringify(e,null,2)}function u8e(e){const t=e.body?.mediaTypes;if(!t||!Object.keys(t).length)return kR();const a=Vka(t,e),r=a?.name||"",n=!bR.includes(r)&&!a8e.includes(r),i=oU(a),o=i.find(({key:l})=>l===e.body?.activeExampleName)?.value??i[0]?.value,s=n&&o?Hka(o,r):"";return{...kR(),activeExampleName:e.body?.activeExampleName||i[0]?.key||"",...a&&{type:a.name},content:s,formData:{"multipart/form-data":p8e(t[ko.FormData]),"application/x-www-form-urlencoded":p8e(t[ko["application/x-www-form-urlencoded"]])}}}function d8e(e){return e?{...(Object.keys(e?.body?.mediaTypes||{})||[]).reduce((t,a)=>(t[a]={name:a,extensions:void 0},t),{}),...ly}:ly}function p8e(e){if(!e)return[Qm()];if(!e.parameters)return[Qm()];const t=e.parameters.map(a=>({id:crypto.randomUUID(),key:a.name,value:String(a.example)||"",active:!0,type:a.inputType,files:null}));return t.push(Qm()),t}function oU(e){const t=e?.examples;return Object.keys(t||{}).map(a=>{const r=t?.[a];return{name:Qv(r?.summary)?r?.summary:r?.summary?.raw||a,key:a,value:t?.[a].value}})}function Vka(e,t){const a=d8e(t),r=Object.keys(e).find(n=>!!a[n]);return r?e[r]:null}function Fka(e){return!e?.security?.length||!e?[]:$ka(e)}function h8e(e){const t=new Set;return e.flat().filter(a=>t.has(a.id)?!1:(t.add(a.id),!0))}function xR(e){if(e.type==="http"){if(e.scheme==="bearer")return qe.JWT;if(e.scheme==="basic")return qe.BasicAuth;if(e.scheme==="digest")return qe.DigestAuth}else{if(e.type==="apiKey")return qe.APIKey;if(e.type==="oauth2")return qe.OAuth2;if(e.type==="openIdConnect")return qe.OpenIDConnect}return qe.NoAuth}function qka(e,t){if(e==="clientCredentials"&&t&&"x-assertionType"in t&&t["x-assertionType"]===eU)return Ye.ClientCredentialsWithJwtAssertion;if(e==="authorizationCode"&&t&&"x-usePkce"in t&&t["x-usePkce"])return Ye.AuthorizationCodeWithPkce;switch(e){case"implicit":return Ye.Implicit;case"password":return Ye.Password;case"clientCredentials":return Ye.ClientCredentials;case"authorizationCode":return Ye.AuthorizationCode;default:return Ye.AuthorizationCode}}function Gka(e,t){const a=e?.security;if(!a?.length)return[];const r=Bka(a).flat().filter(n=>n.schemeId===t).find(n=>xR(n)===qe.OAuth2);return sU(r)}function sU(e){return Object.entries(e?.flows||{}).map(([t,a])=>qka(t,a)).filter(Boolean)}async function QC(e){try{const t=await rMe(e),a=await LV(e);return{absolutePath:e,file:new File([t],a)}}catch(t){return console.error("Failed to init replay file",t),null}}async function m8e(e){return(await Promise.allSettled(e.map(t=>QC(t)))).map(t=>t.status==="fulfilled"?t.value:null).filter(t=>t!==null)}function wR(e){return/(?:^[a-z][a-z0-9+.-]*:|\/\/)/i.test(e)}function lU(e){return e.endsWith("/")?e.substring(0,e.length-1):e}function Uka(e){try{const t=new URL(e);return t.search="",t.hash="",t.toString()}catch{return e}}function hd(e){try{return new URL(e),!0}catch{return!1}}function Qka(e,t){let a;if(t.startsWith("//")){const{protocol:r}=new URL(e);a=`${r||"https:"}${t}`}else if(wR(t))a=t;else if(!t.startsWith("/"))a=lU(e)+"/"+t;else{const r=new URL(e);r.pathname=t,a=r.toString()}return lU(a)}function f8e(e,t){let a=e;return t.forEach(({key:r,value:n,active:i})=>{n&&i&&(a=a.replaceAll(`{${r}}`,n))}),a}function g8e(e,t){let a=e;return t.forEach(({name:r,value:n})=>{n&&(a=a.replaceAll(`{${r}}`,n))}),a}function Wka(e){return e.startsWith("http://")||e.startsWith("https://")}function SR({url:e,serverUrl:t,corsProxyUrl:a}){let r;if(Wka(e)||!t)r=e;else{const n=new URL(t);n.pathname=e,n.search="",n.hash="",r=n.toString()}return a?`${a}${r}`:r}async function Zka(e,t,a,r,n,i){const o=await Promise.all(e.sourceDescriptions?.map(async l=>({...l,apiId:await v8e({projectPath:r,apiUrl:l.url,collectionId:t})}))),s={inputs:e.components?.inputs||{},parameters:Object.fromEntries(Object.entries(e.components?.parameters||{}).map(([l,c])=>[l,{...c,key:c.name,value:c.value,id:crypto.randomUUID(),active:!0}]))};return{...e,id:t,srcType:a,state:sn.Normal,sourceDescriptions:o,components:s,workflows:await Promise.all(e.workflows.map(async l=>({...l,state:sn.Normal,parameters:A8e(l.parameters,l["x-replay-disabled-parameters"],e.components?.parameters),outputs:j8e(l.outputs),security:O8e(l["x-security"]),steps:await Promise.all(l.steps.map(async c=>{const u=A8e(c.parameters,c["x-replay-disabled-parameters"],e.components?.parameters),d=c["x-operation"]??null;d&&(d.url=UC(d.url,u.queryParameters.filter(Wd)));const h=Jka(c,o,n);let m;if(h&&i){const v=n?.find(b=>b.id===h.apiId);try{m=i(h.path,h.method,v)}catch(b){console.error("Failed to convert operation to replay value",b),m=void 0}}delete c.operationId,delete c["x-operation"];const g=await a1a(c.requestBody,r);return{...c,state:sn.Normal,parameters:u,outputs:j8e(c.outputs),successCriteria:c.successCriteria?.map(v=>({...v,type:v.type??ps.SIMPLE}))||[],requestBody:g,xOperation:d,security:O8e(c["x-security"],m),operation:h}}))})))}}async function v8e({projectPath:e,apiUrl:t,collectionId:a}){if(hd(t))return t;if(await rn.isAbsolute(t))return await rn.relative(e,t);const r=await rn.resolve(await rn.join(e,a,"..",t));return await rn.relative(e,r)}function Jka(e,t,a){if(e["x-operation"])return null;const{path:r,method:n,apiId:i,isAdditionalOperation:o,sourceDescriptionName:s}=y8e({operationPath:e.operationPath,parsedSourceDescriptions:t}),{operationId:l,apiId:c,sourceDescriptionName:u}=Yka({operationId:e.operationId,parsedSourceDescriptions:t}),d=c||i||t[0]?.apiId||"",h=a?.find(g=>g.id===d),m=u??s??void 0;if(l&&h&&!r&&!n){const g=n1a(l,h);return{apiId:d,path:g?.path??"",method:g?.method??"",operationId:l,isAdditionalOperation:g?.isAdditionalOperation??!1,sourceDescriptionName:m}}return{apiId:d,path:r??"",method:n??"",operationId:l,isAdditionalOperation:o,sourceDescriptionName:m}}function Yka({operationId:e,parsedSourceDescriptions:t}){if(!e)return{operationId:"",apiId:null,sourceDescriptionName:null};const a=e.split(".");if(a.length===1)return{operationId:e,apiId:t[0]?.apiId??"",sourceDescriptionName:null};const r=a[1],n=a.slice(2).join("."),i=t.find(({name:o})=>o===r);return{operationId:n,apiId:i?.apiId??"",sourceDescriptionName:r}}function b8e(e){return"reference"in e&&typeof e.reference=="string"}function y8e({operationPath:e,parsedSourceDescriptions:t}){if(!e)return{apiId:null,path:"",method:"",isAdditionalOperation:!1,sourceDescriptionName:null};try{const a=e.split("#"),r=a.length>1?a[1]:a[0],n=a.length>1?a[0]:"";if(!r)return{path:"",method:"",apiId:null,isAdditionalOperation:!1,sourceDescriptionName:null};let i=null,o=null;const s=/\$sourceDescriptions\.(.+)\.url/,l=n.match(s);if(l&&(i=l[1]),i){const h=t.find(({name:m})=>m===i);h&&(o=h.apiId)}const c=r.split("/"),u=c.pop()||"",d=c[c.length-1]==="additionalOperations";return d&&c.pop(),{path:ns.unescape(c.pop()||""),method:u.toLowerCase(),apiId:o,isAdditionalOperation:d,sourceDescriptionName:i}}catch{return{path:"",method:"",apiId:null,isAdditionalOperation:!1,sourceDescriptionName:null}}}function Xka(e){switch(e.type){case"apiKey":return qe.APIKey;case"oauth2":return qe.OAuth2;case"openIdConnect":return qe.OpenIDConnect;case"http":return e.scheme==="basic"?qe.BasicAuth:e.scheme==="digest"?qe.DigestAuth:e.scheme==="bearer"?qe.JWT:qe.NoAuth;default:return qe.NoAuth}}function k8e(e,t){const a={clientCredentials:Ye.ClientCredentials,authorizationCode:Ye.AuthorizationCode,implicit:Ye.Implicit,password:Ye.Password,clientCredentialsWithJwtAssertion:Ye.ClientCredentialsWithJwtAssertion,authorizationCodeWithPkce:Ye.AuthorizationCodeWithPkce};return e==="clientCredentials"&&t["x-assertionType"]==="urn:ietf:params:oauth:client-assertion-type:jwt-bearer"?Ye.ClientCredentialsWithJwtAssertion:e==="authorizationCode"&&t["x-usePkce"]?Ye.AuthorizationCodeWithPkce:a[e]??null}function x8e(e){return{query:fu.Query,header:fu.Header,cookie:fu.Cookie}[e.toLowerCase()]||fu.Header}function e1a(e){return{body:yl.Body,header:yl.Header,url:yl.URL}[e.toLowerCase()]||yl.URL}function w8e(e,t,a){return Object.keys(e).reduce((r,n)=>{const i=k8e(n,e[n]);if(!i)return r;switch(i){case Ye.ClientCredentials:r[i]={...a[i],clientId:t.clientId??"",clientSecret:t.clientSecret??"",clientAssertion:t.clientAssertion??"",tokenUrl:e[n].tokenUrl??"",scopes:uy(e[n].scopes,e[n]["x-replay-disabled-scopes"]),accessToken:t.accessToken??""};break;case Ye.AuthorizationCode:r[i]={...a[i],clientId:t.clientId??"",clientSecret:t.clientSecret??"",tokenUrl:e[n].tokenUrl??"",authorizationUrl:e[n].authorizationUrl??"",callbackUrl:t.callbackUrl??"",availableScopes:e[n].availableScopes??[],scopes:uy(e[n].scopes,e[n]["x-replay-disabled-scopes"]),accessToken:t.accessToken??""};break;case Ye.Implicit:r[i]={...a[i],clientId:t.clientId??"",authorizationUrl:e[n].authorizationUrl??"",callbackUrl:t.callbackUrl??"",availableScopes:uy(e[n].availableScopes),scopes:uy(e[n].scopes,e[n]["x-replay-disabled-scopes"]),accessToken:t.accessToken??""};break;case Ye.Password:r[i]={...a[i],tokenUrl:e[n].tokenUrl??"",username:t.username??"",password:t.password??"",clientId:t.clientId??"",clientSecret:t.clientSecret??"",accessToken:t.accessToken??""};break;case Ye.ClientCredentialsWithJwtAssertion:r[i]={...a[i],clientAssertion:t.clientAssertion??"",tokenUrl:e[n].tokenUrl??"",scopes:uy(e[n].scopes,e[n]["x-replay-disabled-scopes"]),clientId:t.clientId??"",clientSecret:t.clientSecret??"",accessToken:t.accessToken??""};break;case Ye.AuthorizationCodeWithPkce:r[i]={...a[i],tokenUrl:e[n].tokenUrl??"",authorizationUrl:e[n].authorizationUrl??"",callbackUrl:t.callbackUrl??"",availableScopes:uy(e[n].availableScopes),scopes:uy(e[n].scopes,e[n]["x-replay-disabled-scopes"]),codeVerifier:t.codeVerifier??"",codeChallenge:t.codeChallenge??"",clientId:t.clientId??"",clientSecret:t.clientSecret??"",accessToken:t.accessToken??""};break}return r},a)}function S8e(e,t,a){const r={...Pu(),securityType:e},n=Object.keys(t.flows||{})[0],i=k8e(n,t.flows?.[n])??Ye.ClientCredentials;switch(e){case qe.BasicAuth:return{...r,[qe.BasicAuth]:{username:a.username,password:a.password,schemeName:t.id}};case qe.JWT:return{...r,[qe.JWT]:{token:a.token,schemeName:t.id}};case qe.DigestAuth:return{...r,[qe.DigestAuth]:{...r[qe.DigestAuth],username:a.username,password:a.password,schemeName:t.id}};case qe.APIKey:return{...r,[qe.APIKey]:{location:x8e(t.in),name:t.name,key:a.apiKey,schemeName:t.id}};case qe.OAuth2:return{...r,[qe.OAuth2]:{...r[qe.OAuth2],...w8e(t.flows||{},a||{},r[qe.OAuth2]),authRequestExtraParams:z8e(a.authRequestExtraParams),tokenRequestExtraParams:C8e(a.tokenRequestExtraParams),grantType:i,schemeName:t.id}};case qe.OpenIDConnect:return{...r,[qe.OpenIDConnect]:{...r[qe.OpenIDConnect],...w8e(a.flows||{},a||{},r[qe.OpenIDConnect]),openIdConnectUrl:a.openIdConnectUrl,userInfoUrl:a.userInfoUrl,authRequestExtraParams:z8e(a.authRequestExtraParams),tokenRequestExtraParams:C8e(a.tokenRequestExtraParams),grantType:i,schemeName:t.id}};default:return r}}function t1a(e,t){return[...e.map(a=>{if("scheme"in a){const n=Xka(a.scheme);return S8e(n,a.scheme,a.values)}const r=t.find(n=>n.id===a.schemeName);if(r){const n=xR(r),i=S8e(n,r,a.values);return i.securitySchemeId=r.id,i}return Pu()})]}function O8e(e=[],t){const a=h8e(t?.security||[]);return e.length?t1a(e,a):[Pu()]}function uy(e,t){const a=Kg(e||{}),r=Kg(t||{});return[...a,...r,Gc()]}function z8e(e){return(e||[]).map(t=>({id:crypto.randomUUID(),key:t.key??"",value:t.value??"",active:t.active??!0})).concat(jl())}function C8e(e){return(e||[]).map(t=>({id:crypto.randomUUID(),key:t.key??"",value:t.value??"",active:t.active??!0,sendIn:e1a(t.in)})).concat(WG())}function j8e(e){if(!e)return[jl()];const t=[];for(const a in e)t.push({id:crypto.randomUUID(),key:a,value:e[a],active:!0});return t.push(jl()),t}const ux={query:"queryParameters",path:"pathParameters",header:"headers",cookie:"cookies"};function P8e(e,t){const a="$components.parameters.";if(e.reference.startsWith(a)){const r=e.reference.replace(a,"");return t?.[r]}}function A8e(e,t,a){if(!e&&!t)return{pathParameters:[cn("path")],queryParameters:[cn("query")],headers:[cn("header")],cookies:[cn("cookie")]};const r={pathParameters:[],queryParameters:[],headers:[],cookies:[]};if(e)for(const n of e)if(b8e(n)){const i=P8e(n,a),o=ux[i?.in];o&&r[o].push({reference:n.reference,active:!0,value:n.value})}else ux[n.in]&&r[ux[n.in]].push({id:crypto.randomUUID(),key:n.name,value:n.value,active:!0,in:n.in});if(t)for(const n of t)if(b8e(n)){const i=P8e(n,a),o=ux[i?.in];o&&r[o].push({reference:n.reference,active:!1,value:n.value})}else ux[n.in]&&r[ux[n.in]].push({id:crypto.randomUUID(),key:n.name,value:n.value,active:!1,in:n.in});return r.pathParameters.push(cn("path")),r.queryParameters.push(cn("query")),r.headers.push(cn("header")),r.cookies.push(cn("cookie")),r}async function a1a(e,t){const a=i8e().body;if(!e)return a;switch(e.contentType){case"application/x-www-form-urlencoded":case"multipart/form-data":return{...a,type:e.contentType,formData:await r1a(e,t)};case"application/octet-stream":const r=e.payload?await M8e(e.payload,t):[],n=r.length>0?await QC(r[0]):null;return{...a,type:e.contentType,binary:n};case"application/json":case"application/ld+json":return{...a,type:e.contentType,content:_8e(e.payload)};default:{const i=typeof e.payload=="string",o=e.contentType||(i?"text/plain":"application/json");return{...a,type:o,content:i?e.payload:_8e(e.payload)}}}}async function T8e(e,t,a,r){const n=await M8e(t,r),i=n.length>0||Array.isArray(t),o=i?await m8e(n):void 0;return{id:crypto.randomUUID(),key:e,value:i?"":t,type:i?"file":"text",active:a,files:o}}async function r1a(e,t){const a=i8e().body.formData,r=e.contentType,n=e.payload?await Promise.all(Object.entries(e.payload).map(([o,s])=>T8e(o,s,!0,t))):[],i=e["x-replay-disabled-payload"]?await Promise.all(Object.entries(e["x-replay-disabled-payload"]||{}).map(([o,s])=>T8e(o,s,!1,t))):[];return{...a,[r]:[...n,...i,Qm()]}}function _8e(e){return e?typeof e=="string"?e:JSON.stringify(e,null,2):""}function n1a(e,t){for(const a of Object.keys(t.paths)){const r=t.paths[a];for(const n of Object.keys(r)){const i=n.toLowerCase();if(["get","put","post","delete","options","head","patch","trace"].includes(i)&&r[i]?.operationId===e)return{method:i,path:a,isAdditionalOperation:!1}}if(r.additionalOperations){for(const[n,i]of Object.entries(r.additionalOperations))if(i?.operationId===e)return{method:n.toLowerCase(),path:a,isAdditionalOperation:!0}}}return null}async function M8e(e,t){return Array.isArray(e)?(await Promise.all(e.map(a=>E8e(a,t)))).flat():typeof e=="string"?await E8e(e,t):[]}async function E8e(e,t){const a=/\$file\(['"](.+?)['"]\)/g,r=Array.from(e.matchAll(a));return Promise.all(r.map(n=>i1a(n[1],t)))}async function i1a(e,t){return await rn.isAbsolute(e)?e:await rn.resolve(await rn.join(t,e))}const lc=e=>!e||typeof e=="boolean"?{type:"object",properties:{}}:e.type?e:{...e,type:"object"},R8e=(e,t,a)=>{if(!e.properties)return e;const r=e.properties[t],n=lc(r);return{...e,properties:{...e.properties,[t]:{...n,...a}}}},o1a=(e,t,a)=>{if(!e.properties||t===a||!a.trim())return null;const r={...e.properties};return r[a]?null:(r[a]=r[t],delete r[t],{...e,properties:r})},s1a=(e,t)=>{if(!e.properties)return e;const a={...e.properties};return delete a[t],{...e,properties:a}},l1a=(e,t,a={type:"string"})=>{const r=e.properties||{};return{...e,type:"object",properties:{...r,[t]:a}}};function N8e(e){const t=Object.assign({},...(e||[]).filter(({key:a,active:r})=>a&&r).map(a=>({[a.key]:a.value})));if(Object.keys(t).length!==0)return t}function I8e(e){if(!e)return{};const t={queryParameters:"query",headers:"header",cookies:"cookie",pathParameters:"path"},a=[],r=[];return Object.keys(t).forEach(n=>{const i=n;e[i].forEach(o=>{if(Nb(o)){const s={reference:o.reference,value:o.value||void 0};o.active?a.push(s):r.push(s)}else{if(!o.key)return;const s={name:o.key,in:t[i],value:o.value};o.active?a.push(s):r.push(s)}})}),{parameters:a.length>0?a:void 0,"x-replay-disabled-parameters":r.length>0?r:void 0}}function c1a(e){const t=e?.map(a=>({condition:a.condition,context:a.context,type:a.type==ps.SIMPLE?void 0:a.type}));if(t?.length!==0)return t}function u1a(e){if(!(!e||e.length===0))return[...e]}async function L8e(e,t){return e.absolutePath?`$file('${await rn.relative(t,e.absolutePath)}')`:null}async function d1a(e,t){const{type:a,value:r,files:n}=e;switch(a){case"text":return r;case"file":let i=[];return n&&(i=(await Promise.all(Object.values(n).map(o=>L8e(o,t)))).filter(o=>o!==null)),i.length===0?"":i.length===1?i[0]:i}}async function p1a(e,t){const a=e.type,r=e.formData[a],n={},i={};return await Promise.all(r.map(async o=>{const{key:s,active:l}=o;if(!s)return;const c=await d1a(o,t);l?n[s]=c:i[s]=c})),{payload:Object.keys(n).length>0?n:void 0,"x-replay-disabled-payload":Object.keys(i).length>0?i:void 0}}function h1a(e){if(!e)return e;try{const t=JSON.parse(e);return typeof t=="object"?t:e}catch{return e}}async function m1a(e,t){if(e)switch(e.type){case"application/x-www-form-urlencoded":case"multipart/form-data":return{contentType:e.type,...await p1a(e,t)};case"application/octet-stream":return{contentType:e.type,payload:e.binary?await L8e(e.binary,t):null};case"application/json":case"application/ld+json":return e.content?{contentType:e.type,payload:h1a(e.content)}:void 0;default:return e.content?{contentType:e.type,payload:e.content}:void 0}}function f1a(e){return{...e.schemeName?{schemeName:e.schemeName}:{scheme:{type:"http",scheme:"basic"}},values:{username:e.username,password:e.password}}}function g1a(e){return{...e.schemeName?{schemeName:e.schemeName}:{scheme:{type:"apiKey",name:e.name,in:e.location.toLowerCase()}},values:{apiKey:e.key}}}function v1a(e){return{...e.schemeName?{schemeName:e.schemeName}:{scheme:{type:"http",scheme:"bearer"}},values:{token:e.token}}}function b1a(e){return{...e.schemeName?{schemeName:e.schemeName}:{scheme:{type:"http",scheme:"digest"}},values:{username:e.username,password:e.password}}}function y1a(e){const{flows:t,values:a}=$8e(e);return{...e.schemeName?{schemeName:e.schemeName}:{scheme:{type:"openIdConnect",flows:t}},values:{...a,openIdConnectUrl:e.openIdConnectUrl,userInfoUrl:e.userInfoUrl,authRequestExtraParams:B8e(e.authRequestExtraParams),tokenRequestExtraParams:D8e(e.tokenRequestExtraParams)}}}function k1a(e){const{flows:t,values:a}=$8e(e);return{...e.schemeName?{schemeName:e.schemeName}:{scheme:{type:"oauth2",flows:t}},values:{...a,authRequestExtraParams:B8e(e.authRequestExtraParams),tokenRequestExtraParams:D8e(e.tokenRequestExtraParams)}}}function dx(e){const t={},a={};return e.forEach(r=>{r.value&&(r.active?t[r.value]=r.description:a[r.value]=r.description)}),{scopes:t,"x-replay-disabled-scopes":Object.keys(a).length>0?a:void 0}}function B8e(e){return e.filter(t=>t.value||t.key).map(t=>({key:t.key,value:t.value,active:t.active}))}function D8e(e){return e.filter(t=>t.value||t.key).map(t=>({key:t.key,value:t.value,active:t.active,in:t.sendIn.toLowerCase()}))}function $8e(e){let t;switch(e.grantType){case Ye.ClientCredentials:return t=e[Ye.ClientCredentials],{flows:{clientCredentials:{tokenUrl:t.tokenUrl,...dx(t.scopes)}},values:{clientId:t.clientId,clientSecret:t.clientSecret,accessToken:t.accessToken}};case Ye.Implicit:return t=e[Ye.Implicit],{flows:{implicit:{authorizationUrl:t.authorizationUrl,...dx(t.scopes)}},values:{clientId:t.clientId,accessToken:t.accessToken,callbackUrl:t.callbackUrl}};case Ye.Password:return t=e[Ye.Password],{flows:{password:{tokenUrl:t.tokenUrl,...dx(t.scopes)}},values:{clientId:t.clientId,clientSecret:t.clientSecret,username:t.username,password:t.password,accessToken:t.accessToken}};case Ye.AuthorizationCode:return t=e[Ye.AuthorizationCode],{flows:{authorizationCode:{tokenUrl:t.tokenUrl,authorizationUrl:t.authorizationUrl,...dx(t.scopes)}},values:{accessToken:t.accessToken,clientId:t.clientId,callbackUrl:t.callbackUrl}};case Ye.ClientCredentialsWithJwtAssertion:return t=e[Ye.ClientCredentialsWithJwtAssertion],{flows:{clientCredentials:{tokenUrl:t.tokenUrl,...dx(t.scopes),"x-assertionType":"urn:ietf:params:oauth:client-assertion-type:jwt-bearer"}},values:{clientId:t.clientId,clientAssertion:t.clientAssertion,accessToken:t.accessToken}};case Ye.AuthorizationCodeWithPkce:return t=e[Ye.AuthorizationCodeWithPkce],{flows:{authorizationCode:{tokenUrl:t.tokenUrl,authorizationUrl:t.authorizationUrl,...dx(t.scopes),"x-usePkce":!0}},values:{clientId:t.clientId,clientSecret:t.clientSecret,accessToken:t.accessToken,codeVerifier:t.codeVerifier,codeChallenge:t.codeChallenge,callbackUrl:t.callbackUrl}}}}function K8e(e){const t=e.map(a=>{switch(a.securityType){case qe.OpenIDConnect:{const r=a[qe.OpenIDConnect];return y1a(r)}case qe.OAuth2:{const r=a[qe.OAuth2];return k1a(r)}case qe.APIKey:{const r=a[qe.APIKey];return g1a(r)}case qe.BasicAuth:{const r=a[qe.BasicAuth];return f1a(r)}case qe.DigestAuth:{const r=a[qe.DigestAuth];return b1a(r)}case qe.JWT:{const r=a[qe.JWT];return v1a(r)}default:return null}}).filter(a=>a!==null);return{"x-security":t.length?t:void 0}}function x1a(e){const{inputs:t,parameters:a,...r}=e;let n=r;return Object.keys(t).length&&(n.inputs=t),Object.keys(a).length&&(n.parameters=Object.fromEntries(Object.entries(a).map(([i,{id:o,active:s,key:l,...c}])=>[i,{...c,name:l}]))),Object.keys(n).length||(n=void 0),n}async function w1a(e,t){const{id:a,state:r,srcType:n,fileDependencies:i,sourceDescriptions:o,workflows:s,components:l,...c}=e;return{arazzoObject:{...c,sourceDescriptions:o.map(u=>({...u,name:u.name,url:u.url,type:u.type||"openapi",apiId:void 0})),components:x1a(l),workflows:await Promise.all(s.map(async({parameters:u,security:d,dependsOn:h,outputs:m,state:g,steps:v,inputs:b,...k})=>({...k,dependsOn:u1a(h),outputs:N8e(m),inputs:b?lc(b):void 0,...K8e(d),...I8e(u),steps:await Promise.all(v.map(async({parameters:x,security:w,operation:z,requestBody:S,successCriteria:C,outputs:j,state:T,xOperation:E,...I})=>{const N={operationId:void 0,operationPath:void 0,"x-operation":void 0};if(z){const $=(z.sourceDescriptionName?e.sourceDescriptions.find(({name:H})=>H===z.sourceDescriptionName):null)||e.sourceDescriptions.find(({apiId:H})=>H===z.apiId)||e.sourceDescriptions[0];if(z.operationId){const H=e.sourceDescriptions.length<=1;N.operationId=H?z.operationId:`$sourceDescriptions.${$.name}.${z.operationId}`}else N.operationPath=z.isAdditionalOperation?`{$sourceDescriptions.${$.name}.url}#/paths/${ns.escape(z.path)}/additionalOperations/${z.method}`:`{$sourceDescriptions.${$.name}.url}#/paths/${ns.escape(z.path)}/${z.method}`}else E&&(N["x-operation"]={...E,url:E.url.split("?")[0]});return{...I,...N,...K8e(w),...I8e(x),requestBody:await m1a(S,t),successCriteria:c1a(C),outputs:N8e(j)}}))})))}}}class S1a extends sMe{constructor(t,a){super(t),this.convertOperationToReplayValue=a}async parse(t,a){return{...await Zka(t.content,t.uri,t.type,this.storage.baseDir,a,this.convertOperationToReplayValue),fileDependencies:t.fileDependencies}}async stringify(t){const{arazzoObject:a}=await w1a(t,this.storage.baseDir);return await rn.extname(t.id)===".json"?JSON.stringify(a,null,2):Pm.dump(a)}}class O1a{constructor(t,a){this.storage=t,this.localStorageSecretsProvider=a}default=[];async read(){const t=await this.storage.get("replay-environments.yaml"),a=await this.localStorageSecretsProvider.get();let r=null,n=null;if(!t)return this.default;try{r=Pm.load(t),n=a?JSON.parse(a):null}catch(i){return console.error("Failed to parse environments file",i),this.default}return r?Object.keys(r).filter(i=>i!=="version").map(i=>({name:i,inputs:Object.entries(r[i].inputs).map(([o,s])=>{if(typeof s=="string")return{name:o,value:s,isSecret:!1};const l=n?.[i]?.[o]??"";return{name:o,value:l,isSecret:!0}}),servers:Object.entries(r[i].servers).map(([o,s])=>({apiId:o,value:s.value,variables:Object.entries(s.variables||{}).map(([l,c])=>({name:l,value:c}))})),state:sn.Normal})):this.default}async write(t){const a=await this.localStorageSecretsProvider.get(),r=a?JSON.parse(a):{},n=t.reduce((i,o)=>(o.name&&(i[o.name]={inputs:o.inputs.reduce((s,l)=>(l.isSecret&&r?(r[o.name]||(r[o.name]={}),r[o.name][l.name]=l.value,s[l.name]={provider:"local"}):s[l.name]=l.value,s),{}),servers:o.servers.reduce((s,l)=>(s[l.apiId]={value:l.value,variables:Object.fromEntries(l.variables.map(c=>[c.name,c.value]))},s),{})}),i),{});this.localStorageSecretsProvider.set(JSON.stringify(r)),n&&this.storage.set("replay-environments.yaml",Pm.dump(n))}}class z1a{constructor(t,a,r){this.storage=t,this.filePath=a,this.defaultValue=r}async parse(t){return JSON.parse(t)}stringify(t){return JSON.stringify(t)}async read(){const t=await this.storage.get(this.filePath);return t?await this.parse(t):this.defaultValue}async write(t){return this.storage.set(this.filePath,this.stringify(t))}}const H8e=(e,t)=>({data:e,version:t});class V8e extends z1a{constructor(t,a,r,n){super(t,a,r),this.version=n}migrationMap={};migrate(t){if(!this.migrationMap[t.version])return this.defaultValue;const a=this.migrationMap[t.version](t);return a.version===this.version?a:this.migrate(a)}async parse(t){const a=JSON.parse(t);if(a.version!==this.version){const r=this.migrate(a);return await this.write(r.data),r.data}return a.data}stringify(t){return JSON.stringify(H8e(t,this.version))}}function C1a(e){return{data:{...e.data,tabs:e.data.tabs.map(t=>t.data.type===Ft.Step?{...t,data:{...t.data,draftStep:{...t.data.step,security:t.data.step.security.securities},step:void 0,hasUnsavedChanges:void 0,showUnsavedChangesModal:void 0}}:t)},version:2}}const cU=2,j1a="tabs.json";class P1a extends V8e{migrationMap={1:C1a};constructor(t){super(t,j1a,ap(EV),cU)}async parse(t){let a=null;try{a=JSON.parse(t)}catch(n){console.error("Failed to parse tabs state",n)}a||(a=H8e(ap(EV),cU)),a.version!==cU&&(a=this.migrate(a));const r=await Promise.all(a.data.tabs.map(async n=>{if(n.data.type===Ft.Step){if(n.data.draftStep){const i=n.data.draftStep.requestBody.formData;i["multipart/form-data"]=await F8e(i["multipart/form-data"]),i["application/x-www-form-urlencoded"]=await F8e(i["application/x-www-form-urlencoded"]),n.data.draftStep.requestBody.binary&&n.data.draftStep.requestBody.binary.absolutePath&&(n.data.draftStep.requestBody.binary=await QC(n.data.draftStep.requestBody.binary.absolutePath))}return{...n,data:{...n.data,isProcessingRequest:!1}}}return n}));return{...a.data,tabs:r}}stringify(t){const a={...t,tabs:t.tabs.map(r=>{if(r.data.type===Ft.Step){const{isProcessingRequest:n,...i}=r.data;return{...r,data:{...i,response:null}}}return r.data.type===Ft.WorkflowRun?{...r,data:{...r.data,result:null}}:r})};return super.stringify(a)}}async function F8e(e){return Promise.all(e.map(async t=>{const a={...t};if(t.files){const r=t.files.map(n=>n.absolutePath).filter(n=>n!==null);a.files=await m8e(r)}return a}))}const A1a=1;class q8e{constructor(t,a,r,n,i,o){this.systemFilesStorage=t,this.userFilesStorage=a,this.project=r,this.isApiPersisted=n,this.convertOperationToReplayValue=i,this.telemetry=o,this.localStorageSecretsProvider=new Ula(this.project.id);const s=new Gla;this.activeEnvironmentIdStorage=new V8e(this.systemFilesStorage,"active_environment_id.json",Zz,A1a),this.tabsStateStorage=new P1a(this.systemFilesStorage),this.environmentsStorage=new O1a(this.userFilesStorage,this.localStorageSecretsProvider),this.collectionsStorage=new S1a(this.userFilesStorage,this.convertOperationToReplayValue),this.apisStorage=new Qla(this.isApiPersisted?this.userFilesStorage:s)}activeEnvironmentIdStorage;tabsStateStorage;environmentsStorage;collectionsStorage;apisStorage;localStorageSecretsProvider;persistExcludedIds=new Set;watchExcludedIds=new Set;addPersistExcludedId(t){this.persistExcludedIds.add(t),this.userFilesStorage.setWriteExcludedKeys(new Set([...this.persistExcludedIds]))}removePersistExcludedId(t){this.persistExcludedIds.delete(t),this.userFilesStorage.setWriteExcludedKeys(new Set([...this.persistExcludedIds]))}addWatchExcludedId(t){this.watchExcludedIds.add(t)}removeWatchExcludedId(t){this.watchExcludedIds.delete(t)}isWatchExcluded(t){return this.watchExcludedIds.has(t)}async update(t,a){switch(t.path[0]){case"activeEnvironmentId":this.activeEnvironmentIdStorage.write(a.activeEnvironmentId.get());break;case"tabsState":this.tabsStateStorage.write(a.tabsState.get());break;case"environments":this.environmentsStorage.write(a.environments.get());break;case"apis":this.isApiPersisted&&await this.apisStorage.update(t,a.apis.get());break;case"collections":await this.collectionsStorage.update(t,a.collections.get());break}}}var G8e={exports:{}},U8e;function T1a(){return U8e||(U8e=1,(function(e){var t=Object.prototype.hasOwnProperty,a="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(a=!1));function n(l,c,u){this.fn=l,this.context=c,this.once=u||!1}function i(l,c,u,d,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new n(u,d||l,h),g=a?a+c:c;return l._events[g]?l._events[g].fn?l._events[g]=[l._events[g],m]:l._events[g].push(m):(l._events[g]=m,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var l=[],c,u;if(this._eventsCount===0)return l;for(u in c=this._events)t.call(c,u)&&l.push(a?u.slice(1):u);return Object.getOwnPropertySymbols?l.concat(Object.getOwnPropertySymbols(c)):l},s.prototype.listeners=function(l){var c=a?a+l:l,u=this._events[c];if(!u)return[];if(u.fn)return[u.fn];for(var d=0,h=u.length,m=new Array(h);d<h;d++)m[d]=u[d].fn;return m},s.prototype.listenerCount=function(l){var c=a?a+l:l,u=this._events[c];return u?u.fn?1:u.length:0},s.prototype.emit=function(l,c,u,d,h,m){var g=a?a+l:l;if(!this._events[g])return!1;var v=this._events[g],b=arguments.length,k,x;if(v.fn){switch(v.once&&this.removeListener(l,v.fn,void 0,!0),b){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,c),!0;case 3:return v.fn.call(v.context,c,u),!0;case 4:return v.fn.call(v.context,c,u,d),!0;case 5:return v.fn.call(v.context,c,u,d,h),!0;case 6:return v.fn.call(v.context,c,u,d,h,m),!0}for(x=1,k=new Array(b-1);x<b;x++)k[x-1]=arguments[x];v.fn.apply(v.context,k)}else{var w=v.length,z;for(x=0;x<w;x++)switch(v[x].once&&this.removeListener(l,v[x].fn,void 0,!0),b){case 1:v[x].fn.call(v[x].context);break;case 2:v[x].fn.call(v[x].context,c);break;case 3:v[x].fn.call(v[x].context,c,u);break;case 4:v[x].fn.call(v[x].context,c,u,d);break;default:if(!k)for(z=1,k=new Array(b-1);z<b;z++)k[z-1]=arguments[z];v[x].fn.apply(v[x].context,k)}}return!0},s.prototype.on=function(l,c,u){return i(this,l,c,u,!1)},s.prototype.once=function(l,c,u){return i(this,l,c,u,!0)},s.prototype.removeListener=function(l,c,u,d){var h=a?a+l:l;if(!this._events[h])return this;if(!c)return o(this,h),this;var m=this._events[h];if(m.fn)m.fn===c&&(!d||m.once)&&(!u||m.context===u)&&o(this,h);else{for(var g=0,v=[],b=m.length;g<b;g++)(m[g].fn!==c||d&&!m[g].once||u&&m[g].context!==u)&&v.push(m[g]);v.length?this._events[h]=v.length===1?v[0]:v:o(this,h)}return this},s.prototype.removeAllListeners=function(l){var c;return l?(c=a?a+l:l,this._events[c]&&o(this,c)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=a,s.EventEmitter=s,e.exports=s})(G8e)),G8e.exports}var _1a=T1a();const M1a=Nn(_1a);class Q8e extends Error{constructor(t){super(t),this.name="TimeoutError"}}let E1a=class extends Error{constructor(e){super(),this.name="AbortError",this.message=e}};const W8e=e=>globalThis.DOMException===void 0?new E1a(e):new DOMException(e),Z8e=e=>{const t=e.reason===void 0?W8e("This operation was aborted."):e.reason;return t instanceof Error?t:W8e(t)};function R1a(e,t,a,r){let n;const i=new Promise((o,s)=>{if(typeof t!="number"||Math.sign(t)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${t}\``);if(t===Number.POSITIVE_INFINITY){o(e);return}if(r={customTimers:{setTimeout,clearTimeout},...r},r.signal){const{signal:l}=r;l.aborted&&s(Z8e(l)),l.addEventListener("abort",()=>{s(Z8e(l))})}n=r.customTimers.setTimeout.call(void 0,()=>{const l=`Promise timed out after ${t} milliseconds`,c=a instanceof Error?a:new Q8e(l);typeof e.cancel=="function"&&e.cancel(),s(c)},t),(async()=>{try{o(await e)}catch(l){s(l)}finally{r.customTimers.clearTimeout.call(void 0,n)}})()});return i.clear=()=>{clearTimeout(n),n=void 0},i}function N1a(e,t,a){let r=0,n=e.length;for(;n>0;){const i=Math.trunc(n/2);let o=r+i;a(e[o],t)<=0?(r=++o,n-=i+1):n=i}return r}var dy=function(e,t,a,r){if(a==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?r:a==="a"?r.call(e):r?r.value:t.get(e)},Wm;class I1a{constructor(){Wm.set(this,[])}enqueue(t,a){a={priority:0,...a};const r={priority:a.priority,run:t};if(this.size&&dy(this,Wm,"f")[this.size-1].priority>=a.priority){dy(this,Wm,"f").push(r);return}const n=N1a(dy(this,Wm,"f"),r,(i,o)=>o.priority-i.priority);dy(this,Wm,"f").splice(n,0,r)}dequeue(){return dy(this,Wm,"f").shift()?.run}filter(t){return dy(this,Wm,"f").filter(a=>a.priority===t.priority).map(a=>a.run)}get size(){return dy(this,Wm,"f").length}}Wm=new WeakMap;var to=function(e,t,a,r,n){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof t=="function"?e!==t||!n:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?n.call(e,a):n?n.value=a:t.set(e,a),a},xa=function(e,t,a,r){if(a==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof t=="function"?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return a==="m"?r:a==="a"?r.call(e):r?r.value:t.get(e)},Oo,WC,ZC,Hg,OR,JC,zR,lp,YC,Au,CR,Tu,XC,Vg,jR,J8e,Y8e,X8e,eNe,tNe,PR,uU,dU,AR,aNe,TR;class rNe extends Error{}class L1a extends M1a{constructor(t){var a,r,n,i;if(super(),Oo.add(this),WC.set(this,void 0),ZC.set(this,void 0),Hg.set(this,0),OR.set(this,void 0),JC.set(this,void 0),zR.set(this,0),lp.set(this,void 0),YC.set(this,void 0),Au.set(this,void 0),CR.set(this,void 0),Tu.set(this,0),XC.set(this,void 0),Vg.set(this,void 0),jR.set(this,void 0),Object.defineProperty(this,"timeout",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),t={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:I1a,...t},!(typeof t.intervalCap=="number"&&t.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${(r=(a=t.intervalCap)===null||a===void 0?void 0:a.toString())!==null&&r!==void 0?r:""}\` (${typeof t.intervalCap})`);if(t.interval===void 0||!(Number.isFinite(t.interval)&&t.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${(i=(n=t.interval)===null||n===void 0?void 0:n.toString())!==null&&i!==void 0?i:""}\` (${typeof t.interval})`);to(this,WC,t.carryoverConcurrencyCount,"f"),to(this,ZC,t.intervalCap===Number.POSITIVE_INFINITY||t.interval===0,"f"),to(this,OR,t.intervalCap,"f"),to(this,JC,t.interval,"f"),to(this,Au,new t.queueClass,"f"),to(this,CR,t.queueClass,"f"),this.concurrency=t.concurrency,this.timeout=t.timeout,to(this,jR,t.throwOnTimeout===!0,"f"),to(this,Vg,t.autoStart===!1,"f")}get concurrency(){return xa(this,XC,"f")}set concurrency(t){if(!(typeof t=="number"&&t>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${t}\` (${typeof t})`);to(this,XC,t,"f"),xa(this,Oo,"m",AR).call(this)}async add(t,a={}){return a={timeout:this.timeout,throwOnTimeout:xa(this,jR,"f"),...a},new Promise((r,n)=>{xa(this,Au,"f").enqueue(async()=>{var i,o,s;to(this,Tu,(o=xa(this,Tu,"f"),o++,o),"f"),to(this,Hg,(s=xa(this,Hg,"f"),s++,s),"f");try{if(!((i=a.signal)===null||i===void 0)&&i.aborted)throw new rNe("The task was aborted.");let l=t({signal:a.signal});a.timeout&&(l=R1a(Promise.resolve(l),a.timeout)),a.signal&&(l=Promise.race([l,xa(this,Oo,"m",aNe).call(this,a.signal)]));const c=await l;r(c),this.emit("completed",c)}catch(l){if(l instanceof Q8e&&!a.throwOnTimeout){r();return}n(l),this.emit("error",l)}finally{xa(this,Oo,"m",X8e).call(this)}},a),this.emit("add"),xa(this,Oo,"m",PR).call(this)})}async addAll(t,a){return Promise.all(t.map(async r=>this.add(r,a)))}start(){return xa(this,Vg,"f")?(to(this,Vg,!1,"f"),xa(this,Oo,"m",AR).call(this),this):this}pause(){to(this,Vg,!0,"f")}clear(){to(this,Au,new(xa(this,CR,"f")),"f")}async onEmpty(){xa(this,Au,"f").size!==0&&await xa(this,Oo,"m",TR).call(this,"empty")}async onSizeLessThan(t){xa(this,Au,"f").size<t||await xa(this,Oo,"m",TR).call(this,"next",()=>xa(this,Au,"f").size<t)}async onIdle(){xa(this,Tu,"f")===0&&xa(this,Au,"f").size===0||await xa(this,Oo,"m",TR).call(this,"idle")}get size(){return xa(this,Au,"f").size}sizeBy(t){return xa(this,Au,"f").filter(t).length}get pending(){return xa(this,Tu,"f")}get isPaused(){return xa(this,Vg,"f")}}WC=new WeakMap,ZC=new WeakMap,Hg=new WeakMap,OR=new WeakMap,JC=new WeakMap,zR=new WeakMap,lp=new WeakMap,YC=new WeakMap,Au=new WeakMap,CR=new WeakMap,Tu=new WeakMap,XC=new WeakMap,Vg=new WeakMap,jR=new WeakMap,Oo=new WeakSet,J8e=function(){return xa(this,ZC,"f")||xa(this,Hg,"f")<xa(this,OR,"f")},Y8e=function(){return xa(this,Tu,"f")<xa(this,XC,"f")},X8e=function(){var e;to(this,Tu,(e=xa(this,Tu,"f"),e--,e),"f"),xa(this,Oo,"m",PR).call(this),this.emit("next")},eNe=function(){xa(this,Oo,"m",dU).call(this),xa(this,Oo,"m",uU).call(this),to(this,YC,void 0,"f")},tNe=function(){const e=Date.now();if(xa(this,lp,"f")===void 0){const t=xa(this,zR,"f")-e;if(t<0)to(this,Hg,xa(this,WC,"f")?xa(this,Tu,"f"):0,"f");else return xa(this,YC,"f")===void 0&&to(this,YC,setTimeout(()=>{xa(this,Oo,"m",eNe).call(this)},t),"f"),!0}return!1},PR=function(){if(xa(this,Au,"f").size===0)return xa(this,lp,"f")&&clearInterval(xa(this,lp,"f")),to(this,lp,void 0,"f"),this.emit("empty"),xa(this,Tu,"f")===0&&this.emit("idle"),!1;if(!xa(this,Vg,"f")){const e=!xa(this,Oo,"a",tNe);if(xa(this,Oo,"a",J8e)&&xa(this,Oo,"a",Y8e)){const t=xa(this,Au,"f").dequeue();return t?(this.emit("active"),t(),e&&xa(this,Oo,"m",uU).call(this),!0):!1}}return!1},uU=function(){xa(this,ZC,"f")||xa(this,lp,"f")!==void 0||(to(this,lp,setInterval(()=>{xa(this,Oo,"m",dU).call(this)},xa(this,JC,"f")),"f"),to(this,zR,Date.now()+xa(this,JC,"f"),"f"))},dU=function(){xa(this,Hg,"f")===0&&xa(this,Tu,"f")===0&&xa(this,lp,"f")&&(clearInterval(xa(this,lp,"f")),to(this,lp,void 0,"f")),to(this,Hg,xa(this,WC,"f")?xa(this,Tu,"f"):0,"f"),xa(this,Oo,"m",AR).call(this)},AR=function(){for(;xa(this,Oo,"m",PR).call(this););},aNe=async function(e){return new Promise((t,a)=>{e.addEventListener("abort",()=>{a(new rNe("The task was aborted."))},{once:!0})})},TR=async function(e,t){return new Promise(a=>{const r=()=>{t&&!t()||(this.off(e,r),a())};this.on(e,r)})};const cp=window.__TAURI__?.http.fetch??globalThis.fetch;class nNe extends ZO{constructor(){super()}resolveExternalRef(t,a){return wR(a)?a:t&&wR(t)?new URL(a,t).href:t?mb.resolve(mb.dirname(t),a):a}async loadExternalRef(t){if(wR(t)){const{body:a,mimeType:r}=await Cxe(t,{...this.config.http,customFetch:cp});return new K1(t,a,r)}else{if(!await FE(t))throw new Error(`File not found at ${t}.`);try{throw await $V(t),new Error(`Expected a file but received a folder at ${t}.`)}catch(r){if(r instanceof Error&&r.message.includes("Expected a file but received a folder"))throw r}const a=await VE(t);return new K1(t,a.replace(/\r\n/g,`
|
|
12594
|
-
`))}}}async function _R(e,t){const a=new Ej({});a.getRulesForSpecVersion=()=>[];const r=await rn.dirname(e),n={config:a,base:r,externalRefResolver:new nNe,dereference:!0};t?n.doc={source:{absoluteRef:e},parsed:t}:n.ref=e;const{bundle:{parsed:i},fileDependencies:o}=await dH(n);return{definition:i,fileDependencies:o}}class B1a{constructor(t){this.apisStorage=t}data=new Map;loading=new Set;pQueue=new L1a({concurrency:20});async get(t){return this.data.has(t)?this.data.get(t)??null:(await this.loadAndParse(t),this.data.get(t)??null)}async load(t,a=!1){this.data.has(t)&&!a||await this.loadAndParse(t,a)}async loadAndParse(t,a=!1){if(this.loading.has(t)){await this.pQueue.add(()=>this.get(t));return}a&&this.data.delete(t),this.loading.add(t),await this.pQueue.add(async()=>{const r=hd(t)?Zs.WEB:Zs.FS,n=r===Zs.WEB?t:await this.apisStorage.getAbsolutePath(t);try{const{definition:i,fileDependencies:o}=await _R(n);if(!i){this.data.set(t,null);return}const s=this.apisStorage.parse({uri:t,type:r,content:i});this.data.set(t,{...s,fileDependencies:o})}catch(i){if(this.data.set(t,null),i instanceof Error&&(i.message.includes("Unsupported specification")||i.message.includes("File not found")))return;console.error("Error loading api "+t,i);return}}),this.loading.delete(t)}get size(){return this.data.size}delete(t){this.data.delete(t)}getAll(){return Array.from(this.data.values()).filter(t=>t!==null)}clear(){this.data.clear(),this.loading.clear()}}class iNe extends q8e{apiLoader;constructor(t,a,r){const n=new HV(t.systemFilesDir),i=new HV(t.userFilesDir);super(n,i,t,!0,a,r),this.apiLoader=new B1a(this.apisStorage),this.setupWriteListeners(i)}setupWriteListeners(t){t.on("write-start",a=>{this.addWatchExcludedId(a)}),t.on("write-end",a=>{this.removeWatchExcludedId(a)})}async read(){const t=this.telemetry?.startSpan("storage.read",void 0,void 0),a=this.telemetry?.startSpan("storage.loadUserState",{},t?.parentCtx),[r,n,i]=await Promise.all([this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);a?.setAttribute("status","completed"),a?.setAttribute("environmentCount",i.length),a?.setStatus(Zi.OK),a?.end();const{apiFiles:o,collectionFiles:s}=await this.detectProjectFiles(t);await this.loadAndParseApis(o,t);const l=(await this.loadAndParseCollections(s,t)).filter(u=>u!==null);this.collectionsStorage.setItemIds(l.map(u=>u.id));const c=this.apiLoader.getAll();return this.apisStorage.setItemIds(c.map(u=>u.id)),t?.setAttribute("status","completed"),t?.setStatus(Zi.OK),t?.end(),{project:this.project,activeEnvironmentId:r,tabsState:n,environments:i,apis:c,collections:l}}async detectProjectFiles(t){const a=this.telemetry?.startSpan("storage.detectFiles",{},t?.parentCtx),{api_files:r,collection_files:n}=await yr("fs_scan",{dir:this.project.userFilesDir});return a?.setAttribute("status","completed"),a?.setAttribute("filesCount",r.length+n.length),a?.setAttribute("apiFilesCount",r.length),a?.setAttribute("collectionFilesCount",n.length),a?.setStatus(Zi.OK),a?.end(),{apiFiles:r,collectionFiles:n}}readEnviroments(){return this.environmentsStorage.read()}deleteApiFromCache(t){this.apiLoader.delete(t)}async loadAndParseApis(t,a,r=!1){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:t.length},a?.parentCtx),i=await NV(t,20,async o=>{try{return await this.apiLoader.load(o.relative_path,r),this.apiLoader.get(o.relative_path)}catch(s){return console.error(`Error parsing YAML/JSON file ${o.absolute_path}:`,s),null}});return n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",this.apiLoader.size),n?.setStatus(Zi.OK),n?.end(),i}async loadAndParseCollections(t,a){const r=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:t.length},a?.parentCtx),n=await NV(t,20,async i=>{try{const o=await this.userFilesStorage.get(i.relative_path);if(!o)return null;const s=Pm.load(o);if(typeof s!="object"||s===null||typeof s.arazzo!="string")return null;const l=[];await Promise.all(s.sourceDescriptions?.map(async u=>{const d=u.type,h=u.url,m=!d||d==="openapi",g=await v8e({projectPath:this.project.userFilesDir,apiUrl:h,collectionId:i.relative_path});if(m){const v=await this.apiLoader.get(g);v&&l.push(v)}}));const c=await rn.join(this.project.userFilesDir,i.relative_path);return await this.collectionsStorage.parse({uri:i.relative_path,type:Zs.FS,content:s,fileDependencies:new Set([c])},l)}catch(o){return console.error(`Error parsing Arazzo file ${i.relative_path}:`,o),null}});return r?.setAttribute("status","completed"),r?.setAttribute("parsedCollectionsCount",n.length),r?.setStatus(Zi.OK),r?.end(),n}}class pU{constructor(t){this.baseDir=t}writeExcludedKeys=new Set;setWriteExcludedKeys(t){this.writeExcludedKeys=t}async ls(t=""){const a=this.makeKey(t);return Object.keys(localStorage).filter(r=>r.startsWith(a)).map(r=>r.replace(a,""))}async get(t){const a=this.makeKey(t);return localStorage.getItem(a)??null}async has(t){const a=this.makeKey(t);return localStorage.getItem(a)!==null}async set(t,a){if(this.writeExcludedKeys.has(t))return;const r=this.makeKey(t);localStorage.setItem(r,a)}async remove(t){if(this.writeExcludedKeys.has(t))return;const a=this.makeKey(t);localStorage.removeItem(a)}async rename(t,a){const r=this.makeKey(t),n=this.makeKey(a),i=localStorage.getItem(r);i!==null&&(localStorage.setItem(n,i),localStorage.removeItem(r))}makeKey(t){return`replay:fs:${this.baseDir}/${t}`}on(t,a){}off(t,a){}}class D1a extends q8e{constructor(t,a,r){const n=new pU(t.systemFilesDir),i=new pU(t.userFilesDir);super(n,i,t,!1,a,r)}async detectProjectFiles(t){const a=this.telemetry?.startSpan("storage.detectFiles",{},t?.parentCtx),r=(await this.userFilesStorage.ls()).filter(s=>/\.(ya?ml|json)$/.test(s)),n=[],i=[],o=new Set;return await Promise.all(r.map(async s=>{const l=await this.userFilesStorage.get(s);if(l)try{const c=Pm.load(l);if(typeof c=="object"&&c!==null)if(typeof c.openapi=="string"){const u=await rn.resolve(await rn.join(this.userFilesStorage.baseDir,s)),{definition:d}=await _R(u,c);n.push({uri:s,type:Zs.FS,content:d})}else typeof c.arazzo=="string"&&(i.push({uri:s,type:Zs.FS,content:c}),c.sourceDescriptions?.forEach(u=>{const d=u.type,h=u.url,m=!d||d==="openapi",g=typeof h=="string"&&hd(h);m&&g&&o.add(h)}))}catch(c){console.error(`Error parsing YAML/JSON file ${s}:`,c)}})),a?.setAttribute("status","completed"),a?.setAttribute("filesCount",r.length),a?.setAttribute("apiFilesCount",n.length),a?.setAttribute("collectionFilesCount",i.length),a?.setAttribute("apiUrlsCount",o.size),a?.setStatus(Zi.OK),a?.end(),{apiFiles:n,collectionFiles:i,apiUrls:o}}async loadApis(t,a){const r=this.telemetry?.startSpan("storage.loadApis",{apiUrlsCount:t.size},a?.parentCtx),n=[];return await Promise.all(Array.from(t).map(async i=>{try{const{definition:o}=await _R(i);n.push({uri:i,type:Zs.WEB,content:o})}catch(o){console.error(`Error parsing YAML from ${i}:`,o)}})),r?.setAttribute("status","completed"),r?.setStatus(Zi.OK),r?.end(),n}async parseApis(t,a){const r=this.telemetry?.startSpan("storage.parseApis",{apisCount:t.length},a?.parentCtx),n=await this.apisStorage.parseMany(t);return r?.setAttribute("status","completed"),r?.setAttribute("parsedApisCount",n.length),r?.setStatus(Zi.OK),r?.end(),n}async parseCollections(t,a,r){const n=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:t.length},r?.parentCtx),i=await this.collectionsStorage.parseMany(t,a);return n?.setAttribute("status","completed"),n?.setAttribute("parsedCollectionsCount",i.length),n?.setStatus(Zi.OK),n?.end(),i}async read(){const t=this.telemetry?.startSpan("storage.read",void 0,void 0),a=this.telemetry?.startSpan("storage.loadUserState",{},t?.parentCtx),[r,n,i]=await Promise.all([this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);a?.setAttribute("status","completed"),a?.setAttribute("environmentCount",i.length),a?.setStatus(Zi.OK),a?.end();const{apiFiles:o,collectionFiles:s,apiUrls:l}=await this.detectProjectFiles(t),c=await this.loadApis(l,t),u=await this.parseApis([...o,...c],t);this.apisStorage.setItemIds(u.map(h=>h.id));const d=await this.parseCollections(s,u,t);return this.collectionsStorage.setItemIds(d.map(h=>h.id)),t?.setAttribute("status","completed"),t?.setStatus(Zi.OK),t?.end(),{project:this.project,activeEnvironmentId:r,tabsState:n,environments:i,apis:u,collections:d}}}var oNe;(function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_CREATED="tauri://window-created",e.WEBVIEW_CREATED="tauri://webview-created",e.DRAG_ENTER="tauri://drag-enter",e.DRAG_OVER="tauri://drag-over",e.DRAG_DROP="tauri://drag-drop",e.DRAG_LEAVE="tauri://drag-leave"})(oNe||(oNe={}));async function $1a(e,t){await yr("plugin:event|unlisten",{event:e,eventId:t})}async function K1a(e,t,a){var r;const n=(r=void 0)!==null&&r!==void 0?r:{kind:"Any"};return yr("plugin:event|listen",{event:e,target:n,handler:Vla(t)}).then(i=>async()=>$1a(e,i))}function py(e){return e==null?"":typeof e=="string"?e:typeof e=="object"&&"raw"in e&&typeof e.raw=="string"?e.raw:String(e)}function px(e){return e.replace(/\s+/g," ").trim()}function hy(e){return typeof e=="object"&&e!==null&&"$ref"in e}function hU(e){try{return JSON.stringify(e)}catch{return String(e)}}function sNe(e){let t=`${e.name} (${e.in}`;return e.required&&(t+=", required"),e.type&&(t+=`, ${e.type}`),e.format&&(t+=`, format: ${e.format}`),e.enum&&(t+=`, enum: [${e.enum.join(",")}]`),e.pattern&&(t+=`, pattern: ${e.pattern}`),t+=")",t}const H1a=["get","put","post","delete","options","head","patch","trace"],V1a=["query","x-query"];function F1a(e){return hy(e)?null:e}function q1a(e){return hy(e)?null:e}function G1a(e){return hy(e)?null:e}function lNe(e){return e.type?Array.isArray(e.type)?e.type.join("|"):e.type:e.oneOf?"oneOf":e.anyOf?"anyOf":e.allOf?"allOf":"object"}function U1a(e){return e==="querystring"?"query":e==="query"||e==="header"||e==="path"||e==="cookie"?e:"query"}function Q1a(e){const t=e.schema&&!hy(e.schema)?e.schema:null,a={name:e.name,in:U1a(e.in),required:e.required??!1};return t&&(a.type=lNe(t),t.format&&(a.format=t.format),t.enum&&(a.enum=t.enum.map(String)),t.pattern&&(a.pattern=t.pattern),t.example!==void 0&&(a.example=String(t.example))),e.description&&(a.description=py(e.description)),e.example!==void 0&&!a.example&&(a.example=String(e.example)),a}function W1a(e,t){const a=new Set,r=[],n=i=>{for(const o of i){const s=F1a(o);if(!s||!s.name)continue;const l=`${s.in}:${s.name}`;a.has(l)||(a.add(l),r.push(Q1a(s)))}};return e.parameters&&n(e.parameters),t.parameters&&n(t.parameters),r}function cNe(e,t=2,a=0){if(a>=t||!e.properties)return[];const r=new Set(e.required??[]);return Object.entries(e.properties).map(([n,i])=>({name:n,type:lNe(i),required:r.has(n),readOnly:i.readOnly}))}function Z1a(e,t){const a=[],r=Object.keys(e.content??{});if(r.length===0)return{textPart:"",schemaJson:"{}",examples:a};const n=r.find(u=>u.includes("json"))??r[0],i=e.content?.[n],o=i?.schema&&!hy(i.schema)?i.schema:null,s=(o?cNe(o):[]).filter(u=>!t.hideReadOnly||!u.readOnly),l=e.required?"required":"optional";let c=`Request body (${n}, ${l})`;if(s.length>0){const u=s.map(d=>`${d.name}: ${d.type}${d.required?" required":""}${d.readOnly?" readOnly":""}`);c+=`: {${u.join(", ")}}`}return i?.example!==void 0&&a.push(hU(i.example)),{textPart:c,schemaJson:JSON.stringify(s),examples:a}}function J1a(e){const t=[],a=[];for(const[r,n]of Object.entries(e)){if(hy(n))continue;const i=py(n.description??"");t.push(`${r} ${i}`.trim());const o={statusCode:r};i&&(o.description=i);const s=n.content;if(s){const l=Object.keys(s).find(u=>u.includes("json"))??Object.keys(s)[0],c=s[l]?.schema;if(c&&!hy(c)){const u=cNe(c);u.length>0&&(o.schemaProperties=JSON.stringify(u))}}a.push(o)}return{textParts:t,summaries:a}}function uNe(e){const t=e.components?.securitySchemes;if(!t)return[];const a=[];for(const[r,n]of Object.entries(t)){const i=G1a(n);i&&a.push(Y1a(r,i))}return a}function Y1a(e,t){const a={schemeName:e,type:t.type};if(t.in&&(a.in=t.in),t.name&&(a.name=t.name),t.scheme&&(a.scheme=t.scheme),t.bearerFormat&&(a.bearerFormat=t.bearerFormat),t.flows){const r=Object.keys(t.flows).filter(i=>t.flows[i]);r.length>0&&(a.flows=r.join(", "));const n=new Set;for(const i of r){const o=t.flows[i];o?.scopes&&Object.keys(o.scopes).forEach(s=>n.add(s))}n.size>0&&(a.scopes=[...n].join(", "))}return a}function X1a(e,t,a){const r=e??t;if(!r||a.length===0)return[];const n=new Set;for(const i of r)for(const o of Object.keys(i))n.add(o);return a.filter(i=>n.has(i.schemeName))}function e0a(e){return e.length===0?"":`Security: ${e.map(t=>{let a=`${t.schemeName} (${t.type}`;return t.scheme&&(a+=`, ${t.scheme}`),t.in&&t.name&&(a+=`, ${t.name} in ${t.in}`),a+=")",a}).join("; ")}.`}function mU(e){const{apiId:t,apiTitle:a,path:r,method:n,op:i,pathItem:o,globalSchemes:s,apiSecurity:l}=e,c=i.summary??"",u=py(i.description??""),d=i.operationId??"",h=i.tags??[],m=n.toUpperCase(),g=W1a(i,o),v=X1a(i.security,l,s),b=v.length>0?v.map(I=>`api_sec:${t}:${I.schemeName}`):void 0,k=[a,`${m} ${r}`,c,u];d&&k.push(`operationId: ${d}`),h.length>0&&k.push(`Tags: ${h.join(", ")}`),i.deprecated&&k.push("DEPRECATED"),g.length>0&&k.push(`Parameters: ${g.map(sNe).join(". ")}.`);let x;const w=[],z=i.requestBody;if(z){const I=q1a(z);if(I){const N=Z1a(I,{hideReadOnly:m==="POST"||m==="PUT"||m==="PATCH"});N.textPart&&k.push(N.textPart),x=N.schemaJson,w.push(...N.examples)}}const{textParts:S,summaries:C}=J1a(i.responses??{});S.length>0&&k.push(`Responses: ${S.join(", ")}.`);const j=e0a(v);j&&k.push(j);const T=`api_op:${t}:${r}:${n}:${d||`${r}-${n}`}`,E={type:"api_operation",id:T,contentHash:"",title:c||`${m} ${r}`,description:u||void 0,apiId:t,path:r,method:m,operationId:d||void 0,tags:h.length>0?h:void 0,deprecated:i.deprecated||void 0,parameterDetails:g.length>0?g:void 0,requestBodySchema:x,responseSchemas:C.length>0?C:void 0,securitySchemeRefs:b,examples:w.length>0?w:void 0};return{id:T,text:px(k.filter(Boolean).join(" ")),payload:E}}function fU(e){const t=e.info?.title??"Untitled API",a=py(e.info?.description??e.info?.summary??""),r=e.id;return{id:`api:${r}`,text:px([t,a].filter(Boolean).join(" ")),payload:{type:"api",id:`api:${r}`,contentHash:"",title:t,description:a||void 0,apiId:r}}}function dNe(e){const t=[];for(const a of e){t.push(fU(a));const r=a.info?.title??"Untitled API",n=a.id,i=uNe(a);for(const s of i){const l=`api_sec:${n}:${s.schemeName}`,c=[`${s.schemeName}: type=${s.type}`,s.scheme?`scheme=${s.scheme}`:"",s.in&&s.name?`${s.name} in ${s.in}`:"",s.bearerFormat?`format=${s.bearerFormat}`:"",s.flows?`flows=[${s.flows}]`:"",s.scopes?`scopes=[${s.scopes}]`:""].filter(Boolean).join(" ");t.push({id:l,text:px(`${r} Authentication. ${s.schemeName}. ${c}.`),payload:{type:"api_security",id:l,contentHash:"",title:`${r} \u2014 ${s.schemeName}`,apiId:n,securityScheme:s}})}const o=a.paths??{};for(const[s,l]of Object.entries(o)){if(!l||typeof l!="object")continue;const c=[...H1a.filter(d=>d in l),...V1a.filter(d=>d in l)];for(const d of c){const h=l[d];!h||typeof h!="object"||t.push(mU({apiId:n,apiTitle:r,path:s,method:d,op:h,pathItem:l,globalSchemes:i,apiSecurity:a.security}))}const u=l.additionalOperations;if(u&&typeof u=="object")for(const[d,h]of Object.entries(u))!h||typeof h!="object"||t.push(mU({apiId:n,apiTitle:r,path:s,method:d,op:h,pathItem:l,globalSchemes:i,apiSecurity:a.security}))}}return t}function t0a(e){const t=[],a=[{list:e.queryParameters,loc:"query"},{list:e.headers,loc:"header"},{list:e.cookies,loc:"cookie"},{list:e.pathParameters,loc:"path"}];for(const{list:r,loc:n}of a)for(const i of r)if("key"in i){const o=i;t.push({name:o.key,in:n,required:!1})}return t}function gU(e){const t=e.id,a=e.info?.title??"Untitled Collection",r=py(e.info?.description??e.info?.summary??"");return{id:`collection:${t}`,text:px([a,r].filter(Boolean).join(" ")),payload:{type:"collection",id:`collection:${t}`,contentHash:"",title:a,description:r||void 0,collectionId:t}}}function pNe(e){const{collectionId:t,collectionTitle:a,workflow:r}=e,n=r.workflowId??"",i=r.summary??n,o=py(r.description??""),s=[a,i,o];if(r.inputs&&s.push(`Inputs schema: ${hU(r.inputs)}`),r.outputs?.length){const l=r.outputs.map(c=>c.key).filter(Boolean);l.length&&s.push(`Outputs: ${l.join(", ")}`)}return r.dependsOn?.length&&s.push(`Depends on: ${r.dependsOn.join(", ")}`),{id:`workflow:${t}:${n}`,text:px(s.filter(Boolean).join(" ")),payload:{type:"workflow",id:`workflow:${t}:${n}`,contentHash:"",title:i,description:o||void 0,collectionId:t,workflowId:n}}}function hNe(e){const{collectionId:t,collectionTitle:a,workflowId:r,workflowTitle:n,step:i}=e,o=i.stepId??"",s=py(i.description??""),l=i.operation,c=i.xOperation,u=[a,n,`step: ${o}`];s&&u.push(s),l?(u.push(`${l.method?.toUpperCase()} ${l.path}`),l.apiId&&u.push(`API: ${l.apiId}`),l.operationId&&u.push(`operationId: ${l.operationId}`)):c&&u.push(`${c.method?.toUpperCase()} ${c.url}`);const d=i.parameters?t0a(i.parameters):[];d.length>0&&u.push(`Parameters: ${d.map(sNe).join(". ")}.`),i.requestBody?.type&&u.push(`Request body type: ${i.requestBody.type}`);const h=(i.successCriteria??[]).map(g=>{let v=g.condition;return g.context&&(v+=` context: ${g.context}`),g.type&&(v+=` (${g.type})`),v});if(h.length>0&&u.push(`Success criteria: ${h.join("; ")}`),i.outputs?.length){const g=i.outputs.map(v=>`${v.key}=${v.value}`).filter(Boolean);g.length&&u.push(`Outputs: ${g.join(", ")}`)}const m=`step:${t}:${r}:${o}`;return{id:m,text:px(u.filter(Boolean).join(" ")),payload:{type:"step",id:m,contentHash:"",title:o,description:s||void 0,collectionId:t,workflowId:r,stepId:o,path:l?.path??c?.url,method:(l?.method??c?.method)?.toUpperCase(),apiId:l?.apiId,operationId:l?.operationId,parameterDetails:d.length>0?d:void 0,successCriteria:h.length>0?h:void 0,requestBodySchema:i.requestBody?.type?hU(i.requestBody):void 0}}}function mNe(e){const t=[];for(const a of e){const r=a.id,n=a.info?.title??"Untitled Collection";t.push(gU(a));for(const i of a.workflows??[]){t.push(pNe({collectionId:r,collectionTitle:n,workflow:i}));const o=i.workflowId??"",s=i.summary??o;for(const l of i.steps??[])t.push(hNe({collectionId:r,collectionTitle:n,workflowId:o,workflowTitle:s,step:l}))}}return t}function a0a(e,t){return[...dNe(e),...mNe(t)]}const vU=10,r0a=4;function fNe(e){let t=0;for(let a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a)|0;return t>>>0}function n0a(e){return Ib(uz(e))}class i0a extends KV{constructor(t){super(),this.collectionName=t}activeIndexJobs=0;getIndexingActivityState(){return{inProgress:this.activeIndexJobs>0}}beginIndexJob(){this.activeIndexJobs++,this.activeIndexJobs===1&&this.emit("indexing-activity",{inProgress:!0})}endIndexJob(){this.activeIndexJobs=Math.max(0,this.activeIndexJobs-1),this.activeIndexJobs===0&&this.emit("indexing-activity",{inProgress:!1})}async getIdsByPayload(t,a){return yr("semantic_search_get_ids_by_payload",{collectionName:this.collectionName,field:t,value:a})}async getAllIds(){return yr("semantic_search_get_all_ids",{collectionName:this.collectionName})}async getScopeHashes(t){const a=t.apiIds??[],r=t.collectionIds??[];let n;if(a.length===0&&r.length===0)n=await this.getAllIds();else{const o=[];for(const s of a)o.push(this.getIdsByPayload("apiId",s));for(const s of r)o.push(this.getIdsByPayload("collectionId",s));n=(await Promise.all(o)).flat()}const i=new Map;for(const o of n)i.set(o.id,o.contentHash);return i}async indexDocuments(t,a){if(t.length===0&&!a)return{added:0,updated:0,removed:0,unchanged:0};this.beginIndexJob();try{return await this.runIndexDocuments(t,a)}finally{this.endIndexJob()}}async runIndexDocuments(t,a){const r=await this.getScopeHashes(a??{}),n=[],i=new Set;let o=0,s=0;for(const u of t){const d=n0a(u.text);u.payload.contentHash=d,i.add(u.id);const h=r.get(u.id);h===d?s++:(h||o++,n.push(u))}const l=n.length-o,c=[];for(const u of r.keys())i.has(u)||c.push(u);return c.length>0&&await this.deletePoints(c.map(fNe)),n.length>0&&await this.embedAndUpsert(n),(c.length>0||n.length>0)&&await this.flush(),{added:o,updated:l,removed:c.length,unchanged:s}}async removeByPayloadFilter(t,a){return yr("semantic_search_delete_by_payload",{collectionName:this.collectionName,field:t,value:a})}async getStoredDocumentCount(){try{return(await yr("plugin:velesdb|list_collections"))?.find(t=>t.name===this.collectionName)?.count??0}catch{return 0}}async getDocumentsByIds(t){if(t.length===0)return new Map;const a=t.map(fNe),r=await yr("plugin:velesdb|get_points",{request:{collection:this.collectionName,ids:a}}),n=new Map;for(const i of r??[])if(i?.payload){const o=i.payload;o.id&&n.set(o.id,o)}return n}async embedAndUpsert(t){const a=[],r=t.length;for(let n=0;n<r;n+=vU)a.push({docs:t.slice(n,n+vU),index:Math.floor(n/vU)});await NV(a,r0a,async n=>{const i=n.docs.map(o=>({id:o.id,text:o.text||o.payload.title,payload:o.payload}));await yr("semantic_search_embed_and_upsert",{collectionName:this.collectionName,documents:i})})}async deletePoints(t){t.length!==0&&await yr("plugin:velesdb|delete_points",{request:{collection:this.collectionName,ids:t}})}async flush(){await yr("plugin:velesdb|flush",{name:this.collectionName}),await yr("semantic_search_write_hnsw_marker",{collectionName:this.collectionName}).catch(()=>{})}}const gNe="replay_search",o0a=384,hx={added:0,updated:0,removed:0,unchanged:0};class s0a extends KV{initialized=!1;projectId=null;indexer=null;indexQueue=Promise.resolve();get collectionName(){return this.projectId?`${gNe}_${this.projectId}`:gNe}createIndexer(){const t=new i0a(this.collectionName);return t.subscribe("indexing-activity",a=>{this.emit("indexing-activity",a)}),t}getIndexer(){return this.indexer||(this.indexer=this.createIndexer()),this.indexer}getIndexingActivityState(){return this.getIndexer().getIndexingActivityState()}async ensureInitialized(){this.initialized||await this.init()}enqueueIndex(t){const a=this.indexQueue.then(()=>t()).catch(r=>{throw console.error("Semantic index:",r),r}).finally(()=>this.unloadModel());return this.indexQueue=a.catch(()=>{}),a}async unloadModel(){try{await yr("semantic_search_unload_model")}catch{}}setProject(t){this.projectId!==t&&(this.projectId=t,this.initialized=!1,this.indexer=this.createIndexer())}async init(){if($n()&&!this.initialized){try{if((await yr("plugin:velesdb|list_collections"))?.some(t=>t.name===this.collectionName)){this.initialized=!0;return}}catch{}await yr("plugin:velesdb|create_collection",{request:{name:this.collectionName,dimension:o0a,metric:"cosine",storage_mode:"full"}}),this.initialized=!0}}async indexApis(t){if(!$n())return hx;await this.ensureInitialized();const a=this.collectionName,r=this.getIndexer(),n=dNe(t),i={apiIds:t.map(o=>o.id)};return this.enqueueIndex(async()=>this.collectionName!==a?hx:r.indexDocuments(n,i))}async indexCollections(t){if(!$n())return hx;await this.ensureInitialized();const a=this.collectionName,r=this.getIndexer(),n=mNe(t),i={collectionIds:t.map(o=>o.id)};return this.enqueueIndex(async()=>this.collectionName!==a?hx:r.indexDocuments(n,i))}async removeApi(t){$n()&&(await this.ensureInitialized(),await this.getIndexer().removeByPayloadFilter("apiId",t))}async removeCollection(t){$n()&&(await this.ensureInitialized(),await this.getIndexer().removeByPayloadFilter("collectionId",t))}async reindex(t,a){if(!$n())return hx;await this.ensureInitialized();const r=this.collectionName,n=this.getIndexer(),i=a0a(t,a);return this.enqueueIndex(async()=>this.collectionName!==r?hx:n.indexDocuments(i))}async search(t,a=10,r){if(!$n())return[];try{await this.ensureInitialized();const n=r&&Object.keys(r).length>0?{type:r.type,apiId:r.apiId,collectionId:r.collectionId,path:r.path,method:r.method,operationId:r.operationId,workflowId:r.workflowId,stepId:r.stepId}:void 0,i=((await yr("semantic_search_text",{collection:this.collectionName,query:t,topK:a,filters:n})).results??[]).map(o=>({...o.payload,score:o.score??0}));return await this.enrichWithRelatedSecurity(i),i}catch{return[]}}async enrichWithRelatedSecurity(t){const a=t.filter(i=>i.type==="api_operation"&&i.securitySchemeRefs?.length);if(a.length===0)return;const r=[...new Set(a.flatMap(i=>i.securitySchemeRefs??[]))],n=await this.getIndexer().getDocumentsByIds(r);for(const i of a){const o=[];for(const s of i.securitySchemeRefs??[]){const l=n.get(s);l?.securityScheme&&o.push(l.securityScheme)}o.length>0&&(i.relatedSecuritySchemes=o)}}async status(){if(!$n())return{indexed:0,modelLoaded:!1};const t=await this.getIndexer().getStoredDocumentCount();let a=!1;try{a=(await yr("semantic_search_model_status")).loaded}catch{}return{indexed:t,modelLoaded:a}}async clear(){if(!(!$n()||!this.initialized))try{await yr("plugin:velesdb|delete_collection",{name:this.collectionName}),this.initialized=!1}catch{}}async preloadModel(){if($n())try{await yr("semantic_search_preload_model")}catch{}}}let bU=null;function Zm(){return bU||(bU=new s0a),bU}class l0a{constructor(t,a,r,n){this.storage=t,this.state=a,this.projectDir=r,this.aiEnabled=n}watchPath=null;unlistenEvent=null;get tauriStorage(){return this.storage}indexApis(t){!this.aiEnabled||t.length===0||Zm().indexApis(t).catch(a=>console.error("Semantic index (apis):",a))}indexCollections(t){!this.aiEnabled||t.length===0||Zm().indexCollections(t).catch(a=>console.error("Semantic index (collections):",a))}removeApis(t){if(!this.aiEnabled||t.length===0)return;const a=Zm();Promise.all(t.map(r=>a.removeApi(r))).catch(r=>console.error("Semantic remove (apis):",r))}removeCollections(t){if(!this.aiEnabled||t.length===0)return;const a=Zm();Promise.all(t.map(r=>a.removeCollection(r))).catch(r=>console.error("Semantic remove (collections):",r))}async start(){if(this.watchPath){console.warn("Watcher already started for:",this.watchPath);return}try{this.unlistenEvent=await K1a("fs-watch-event",async t=>{const a=t.payload;try{await this.handleEvent(a)}catch(r){console.error("Error handling file change:",r)}}),await yr("fs_watch",{path:this.projectDir,options:{recursive:!0,delayMs:500}}),this.watchPath=this.projectDir}catch(t){throw console.error("Failed to start file watcher:",t),this.unlistenEvent&&(this.unlistenEvent(),this.unlistenEvent=null),t}}async stop(){if(this.watchPath)try{await yr("fs_unwatch",{path:this.watchPath})}catch(t){console.error("Error stopping file watcher:",t)}finally{this.unlistenEvent&&(this.unlistenEvent(),this.unlistenEvent=null),this.watchPath=null}}async handleEvent(t){const{changeType:a,paths:r,pathTypes:n,type:i}=t;if(await this.isProjectFolderRemoved(r,a)){await this.handleProjectFolderRemoval();return}const o=this.filterSpecFiles(r,n);if(o.paths.length===0)return;const s=await this.toFileEntries(o.paths,o.pathTypes);switch(a){case"changed":(i.includes("Data")||i.includes("Name"))&&await this.handleModify(s);break;case"added":await this.handleCreate(s);break;case"deleted":await this.handleDelete(s);break;case"renamed":await this.handleRename(s);break;default:console.log("Unhandled change type:",a)}}filterSpecFiles(t,a){const r=[],n=[];for(let i=0;i<t.length;i++){const o=t[i],s=o.split(".").pop()?.toLowerCase();s&&["yaml","yml","json"].includes(s)&&(r.push(o),n.push(a[i]||"unknown"))}return{paths:r,pathTypes:n}}async toFileEntries(t,a){return Promise.all(t.map(async(r,n)=>({relative_path:await rn.relative(this.projectDir,r),absolute_path:r,type:a[n]||"unknown"})))}consolidateFileEntries(t){const a=[],r=new Set;for(const n of t)r.has(n.relative_path)||(r.add(n.relative_path),this.storage.isWatchExcluded(n.relative_path)||a.push(n));return a}async handleModify(t){const a=!this.storage.isWatchExcluded("replay-environments.yaml")&&t.some(m=>m.relative_path==="replay-environments.yaml"),r=t.filter(m=>m.relative_path!=="replay-environments.yaml"),{newApiFiles:n,existingApiFiles:i}=this.categorizeApisFromFiles(r),{newCollectionFiles:o,existingCollectionFiles:s}=this.categorizeCollectionsFromFiles(r),l=await this.findApisToReload(t),c=await this.findCollectionsToReload(t),u=[...n,...o];u.length>0&&await this.handleCreate(u),a&&await this.reloadEnvironments();const d=this.consolidateFileEntries([...i,...l]),h=this.consolidateFileEntries([...s,...c]);await this.reloadApis(d),await this.reloadCollections(h)}async handleCreate(t){const a=t.filter(l=>l.type==="api"),r=t.filter(l=>l.type==="collection"),{newApiFiles:n,existingApiFiles:i}=this.categorizeApisFromFiles(a),{newCollectionFiles:o,existingCollectionFiles:s}=this.categorizeCollectionsFromFiles(r);if(n.length>0||o.length>0){n.forEach(h=>this.storage.addPersistExcludedId(h.relative_path)),o.forEach(h=>this.storage.addPersistExcludedId(h.relative_path));const l=n.length>0?await this.tauriStorage.loadAndParseApis(n,void 0,!0):[],c=o.length>0?await this.tauriStorage.loadAndParseCollections(o,void 0):[],u=l.filter(h=>h!==null),d=c.filter(h=>h!==null);this.state.apis.merge(u),this.state.collections.merge(d),this.indexApis(u),this.indexCollections(d),setTimeout(()=>{n.forEach(h=>this.storage.removePersistExcludedId(h.relative_path)),o.forEach(h=>this.storage.removePersistExcludedId(h.relative_path))},500)}i.length>0&&await this.reloadApis(i),s.length>0&&await this.reloadCollections(s)}categorizeApisFromFiles(t){const a=new Set,r=[],n=[];for(const i of t)a.has(i.relative_path)||(a.add(i.relative_path),this.state.apis.get({noproxy:!0}).some(o=>o.id===i.relative_path)?n.push(i):i.type==="api"&&r.push(i));return{newApiFiles:r,existingApiFiles:n}}categorizeCollectionsFromFiles(t){const a=new Set,r=[],n=[];for(const i of t)a.has(i.relative_path)||(a.add(i.relative_path),this.state.collections.get({noproxy:!0}).some(o=>o.id===i.relative_path)?n.push(i):i.type==="collection"&&r.push(i));return{newCollectionFiles:r,existingCollectionFiles:n}}async handleDelete(t){const a=[],r=[];for(const n of t){this.storage.addPersistExcludedId(n.relative_path);const i=this.state.apis.get({noproxy:!0}).findIndex(s=>s.id===n.relative_path);i>=0&&(this.state.apis[i].set(rr),this.tauriStorage.deleteApiFromCache(n.relative_path),a.push(n.relative_path));const o=this.state.collections.get({noproxy:!0}).findIndex(s=>s.id===n.relative_path);o>=0&&(this.state.collections[o].set(rr),r.push(n.relative_path)),setTimeout(()=>{this.storage.removePersistExcludedId(n.relative_path)},500)}this.removeApis(a),this.removeCollections(r)}async handleRename(t){if(t.length>=2){const[a,r]=t;await this.handleDelete([a]),await this.handleCreate([r])}else await this.handleCreate(t)}async isProjectFolderRemoved(t,a){if(t.length===0)return!1;if(a==="deleted"||a==="renamed"){for(const r of t)if(r===this.projectDir)return!0}return t.filter(r=>!r.startsWith(this.projectDir+"/")&&r!==this.projectDir).length>0&&a==="renamed"}async handleProjectFolderRemoval(){const t=this.state.apis.get({noproxy:!0}),a=t.map(i=>i.id);t.forEach(i=>{this.storage.addPersistExcludedId(i.id),this.tauriStorage.deleteApiFromCache(i.id)}),this.state.apis.set([]);const r=this.state.collections.get({noproxy:!0}),n=r.map(i=>i.id);r.forEach(i=>{this.storage.addPersistExcludedId(i.id)}),this.state.collections.set([]),setTimeout(()=>{t.forEach(i=>this.storage.removePersistExcludedId(i.id)),r.forEach(i=>this.storage.removePersistExcludedId(i.id))},500),this.removeApis(a),this.removeCollections(n),await this.stop()}async findApisToReload(t){const a=[];return await Promise.all(this.state.apis.map(async r=>{const n=r.fileDependencies?.get({noproxy:!0})??new Set,i=r.get({noproxy:!0}).id,o=t.find(s=>n.has(s.absolute_path));if(!this.storage.isWatchExcluded(i)&&o){const s=await rn.join(this.projectDir,i);a.push({relative_path:i,absolute_path:s,type:"api"})}})),a}async findCollectionsToReload(t){const a=[];return await Promise.all(this.state.collections.map(async r=>{const n=r.fileDependencies?.get({noproxy:!0})??new Set,i=r.get({noproxy:!0}).id,o=t.find(s=>n.has(s.absolute_path));if(!this.storage.isWatchExcluded(i)&&o){const s=await rn.join(this.projectDir,i);a.push({relative_path:i,absolute_path:s,type:"collection"})}})),a}async reloadEnvironments(){const t=await this.tauriStorage.readEnviroments();this.storage.addPersistExcludedId("replay-environments.yaml"),this.state.environments.set(t),setTimeout(()=>{this.storage.removePersistExcludedId("replay-environments.yaml")},500)}async reloadApis(t){if(t.length===0)return;const a=await this.tauriStorage.loadAndParseApis(t,void 0,!0),r=[];await Promise.all(a.map(async(n,i)=>{if(!n){await this.handleDelete([t[i]]);return}const o=this.state.apis.get({noproxy:!0}).findIndex(s=>s.id===n.id);o>=0?(this.storage.addPersistExcludedId(n.id),this.state.apis[o].set(n),r.push(n),setTimeout(()=>this.storage.removePersistExcludedId(n.id),500)):console.warn("API not found in state after reload:",n.id)})),r.length>0&&this.indexApis(r)}async reloadCollections(t){if(t.length===0)return;const a=await this.tauriStorage.loadAndParseCollections(t,void 0),r=[];await Promise.all(a.map(async(n,i)=>{if(!n){await this.handleDelete([t[i]]);return}const o=this.state.collections.get({noproxy:!0}).findIndex(s=>s.id===n.id);o>=0?(this.storage.addPersistExcludedId(n.id),this.state.collections[o].set(n),r.push(n),setTimeout(()=>this.storage.removePersistExcludedId(n.id),500)):console.warn("Collection not found in state after reload:",n.id)})),r.length>0&&this.indexCollections(r)}}function c0a(e=!1){let t,a=!1,r=null,n=null;async function i(l){if(!(!$n()||!t||!n)){await o();try{const c=n.project.userFilesDir.get();r=new l0a(t,n,c,l),await r.start()}catch(c){console.error("Failed to start file watcher:",c),r=null}}}async function o(){r&&(await r.stop(),r=null)}async function s(){$n()&&(await o(),await yr("cleanup_all_managed_watchers"))}return()=>({id:"RootStoragePlugin",onCreate:(l,c)=>({getTauriRootStorage:u=>()=>t instanceof iNe?t:void 0,cleanup:()=>async()=>{await s()},init:u=>async(d,h,m)=>{if(a||u.path.length>0)return{isInitialized:!1};const{convertOperationToReplayValue:g,aiEnabled:v}=h,b=$n();if(a=!0,n=u,e)return a=!1,{isInitialized:!0};t=b?new iNe(d,g,m):new D1a(d,g,m);const k=await t.read();if(u.merge(k),!b)return a=!1,{isInitialized:!0};try{if(await i(v??!1),v){const x=Zm();x.setProject(d.id),x.preloadModel().catch(()=>{}),x.reindex(k.apis,k.collections).catch(w=>{console.error("Semantic reindex failed:",w)})}}finally{a=!1}return{isInitialized:!0}}}),onSet(l,c,u){a||!e&&t&&t.update(c,u)},onDestroy:async()=>{await s()}})}function u0a({defaultEnvironments:e}={}){return structuredClone({project:{id:"default",userFilesDir:"default",systemFilesDir:"default"},tabsState:ap(EV),activeEnvironmentId:Zz,environments:e||Z_e,collections:[],apis:[],requestController:null,apps:{apps:[],appsLoadingState:Sh.Idle},predefinedApiId:null,predefinedEnvironmentNames:new Set,predefinedInputNames:new Set})}const d0a=gFt(u0a(),bFt(Hla({key:"replay-root-store"}),c0a())),vNe=P.createContext(d0a);function tr(){const e=P.useContext(vNe);return jSe(e)}function p0a(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,credentialOrigin:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[],hideOtherSecuritySchemes:!1,aiEnabled:!1,isPreviewLayout:!1}}const h0a=p0a(),m0a=P.createContext(h0a);function el(){const e=P.useContext(m0a);return jSe(e)}function f0a(e,t){const{apps:{apiId:a}}=tr(),{corsProxyUrl:r,credentialOrigin:n,disableCollectionsTab:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c,aiEnabled:u,isPreviewLayout:d}=el();r.set(e?.corsProxyUrl??Bla),n.set(e?.credentialOrigin),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),i.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),u.set(!!e?.aiEnabled),d.set(e?.layout==="preview"),P.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const bNe=P.createContext({});function tl(){return P.useContext(bNe)||{}}const g0a=!0,v0a="0.24.0-next.2",b0a={version:v0a},y0a={organizationId:"",organizationSlug:"",projectId:"",projectSlug:"",actor:{id:"",object:"user",uri:""},source:"",origin:"replayUi"};class yNe{_client;_isInitialized=!1;_initResolve=null;_initPromise=new Promise(t=>{this._initResolve=t});_globalAttributes={platform:"",deviceId:""};constructor(){this._client=new Lla}get isInitialized(){return this._isInitialized}get client(){return this._client}awaitInit(){return this._initPromise}updateCloudEventData(t){this._client.updateCloudEventData(t)}enrichGlobalAttributes(t){this._globalAttributes={...this._globalAttributes,...t}}getGlobalAttributes(){return{...this._globalAttributes}}clearGlobalAttributes(){this._globalAttributes={platform:"",deviceId:""}}init(t){if(this.isInitialized)return;const a=t?.tracerName||"desktop",r=t?.enableErrorInstrumentation??a==="desktop",n={serviceName:"replay",serviceVersion:b0a.version,version:"1.0.0",tracerName:a,collectorUrl:"",isProd:g0a,enableErrorInstrumentation:r};this._client.init({otel:{...n,...t}}),this._client.updateCloudEventData(()=>({...y0a,env:"production"})),this._initResolve?.(this),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}const r=Array.isArray(a)?a.map(n=>({...this._globalAttributes,...n})):{...this._globalAttributes,...a};try{this.client.send(t,r)}catch(n){console.error("Failed to send telemetry event:",n)}}startSpan(t,a,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{return this._client.startSpan(t,{...this._globalAttributes,...a},r)}catch(n){console.error("Failed to start telemetry span:",n);return}}}const MR=new yNe;function Na(){const{telemetry:e}=tl();MR.isInitialized||MR.init(e);const t=P.useCallback((r,n)=>{MR.sendEvent(r,n)},[]),a=P.useCallback((r,n,i)=>MR.startSpan(r,n,i),[]);return{sendEvent:t,startSpan:a}}const Pl=800,cc=R(Ze).attrs({variant:"text",size:"small",tone:"danger"})`
|
|
12631
|
+
`))}}}async function _R(e,t){const a=new Ej({});a.getRulesForSpecVersion=()=>[];const r=await rn.dirname(e),n={config:a,base:r,externalRefResolver:new nNe,dereference:!0};t?n.doc={source:{absoluteRef:e},parsed:t}:n.ref=e;const{bundle:{parsed:i},fileDependencies:o}=await dH(n);return{definition:i,fileDependencies:o}}class B1a{constructor(t){this.apisStorage=t}data=new Map;loading=new Set;pQueue=new L1a({concurrency:20});async get(t){return this.data.has(t)?this.data.get(t)??null:(await this.loadAndParse(t),this.data.get(t)??null)}async load(t,a=!1){this.data.has(t)&&!a||await this.loadAndParse(t,a)}async loadAndParse(t,a=!1){if(this.loading.has(t)){await this.pQueue.add(()=>this.get(t));return}a&&this.data.delete(t),this.loading.add(t),await this.pQueue.add(async()=>{const r=hd(t)?Zs.WEB:Zs.FS,n=r===Zs.WEB?t:await this.apisStorage.getAbsolutePath(t);try{const{definition:i,fileDependencies:o}=await _R(n);if(!i){this.data.set(t,null);return}const s=this.apisStorage.parse({uri:t,type:r,content:i});this.data.set(t,{...s,fileDependencies:o})}catch(i){if(this.data.set(t,null),i instanceof Error&&(i.message.includes("Unsupported specification")||i.message.includes("File not found")))return;console.error("Error loading api "+t,i);return}}),this.loading.delete(t)}get size(){return this.data.size}delete(t){this.data.delete(t)}getAll(){return Array.from(this.data.values()).filter(t=>t!==null)}clear(){this.data.clear(),this.loading.clear()}}class iNe extends q8e{apiLoader;constructor(t,a,r){const n=new HV(t.systemFilesDir),i=new HV(t.userFilesDir);super(n,i,t,!0,a,r),this.apiLoader=new B1a(this.apisStorage),this.setupWriteListeners(i)}setupWriteListeners(t){t.on("write-start",a=>{this.addWatchExcludedId(a)}),t.on("write-end",a=>{this.removeWatchExcludedId(a)})}async read(){const t=this.telemetry?.startSpan("storage.read",void 0,void 0),a=this.telemetry?.startSpan("storage.loadUserState",{},t?.parentCtx),[r,n,i]=await Promise.all([this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);a?.setAttribute("status","completed"),a?.setAttribute("environmentCount",i.length),a?.setStatus(Zi.OK),a?.end();const{apiFiles:o,collectionFiles:s}=await this.detectProjectFiles(t);await this.loadAndParseApis(o,t);const l=(await this.loadAndParseCollections(s,t)).filter(u=>u!==null);this.collectionsStorage.setItemIds(l.map(u=>u.id));const c=this.apiLoader.getAll();return this.apisStorage.setItemIds(c.map(u=>u.id)),t?.setAttribute("status","completed"),t?.setStatus(Zi.OK),t?.end(),{project:this.project,activeEnvironmentId:r,tabsState:n,environments:i,apis:c,collections:l}}async detectProjectFiles(t){const a=this.telemetry?.startSpan("storage.detectFiles",{},t?.parentCtx),{api_files:r,collection_files:n}=await yr("fs_scan",{dir:this.project.userFilesDir});return a?.setAttribute("status","completed"),a?.setAttribute("filesCount",r.length+n.length),a?.setAttribute("apiFilesCount",r.length),a?.setAttribute("collectionFilesCount",n.length),a?.setStatus(Zi.OK),a?.end(),{apiFiles:r,collectionFiles:n}}readEnviroments(){return this.environmentsStorage.read()}deleteApiFromCache(t){this.apiLoader.delete(t)}async loadAndParseApis(t,a,r=!1){const n=this.telemetry?.startSpan("storage.parseApis",{apisCount:t.length},a?.parentCtx),i=await NV(t,20,async o=>{try{return await this.apiLoader.load(o.relative_path,r),this.apiLoader.get(o.relative_path)}catch(s){return console.error(`Error parsing YAML/JSON file ${o.absolute_path}:`,s),null}});return n?.setAttribute("status","completed"),n?.setAttribute("parsedApisCount",this.apiLoader.size),n?.setStatus(Zi.OK),n?.end(),i}async loadAndParseCollections(t,a){const r=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:t.length},a?.parentCtx),n=await NV(t,20,async i=>{try{const o=await this.userFilesStorage.get(i.relative_path);if(!o)return null;const s=Pm.load(o);if(typeof s!="object"||s===null||typeof s.arazzo!="string")return null;const l=[];await Promise.all(s.sourceDescriptions?.map(async u=>{const d=u.type,h=u.url,m=!d||d==="openapi",g=await v8e({projectPath:this.project.userFilesDir,apiUrl:h,collectionId:i.relative_path});if(m){const v=await this.apiLoader.get(g);v&&l.push(v)}}));const c=await rn.join(this.project.userFilesDir,i.relative_path);return await this.collectionsStorage.parse({uri:i.relative_path,type:Zs.FS,content:s,fileDependencies:new Set([c])},l)}catch(o){return console.error(`Error parsing Arazzo file ${i.relative_path}:`,o),null}});return r?.setAttribute("status","completed"),r?.setAttribute("parsedCollectionsCount",n.length),r?.setStatus(Zi.OK),r?.end(),n}}class pU{constructor(t){this.baseDir=t}writeExcludedKeys=new Set;setWriteExcludedKeys(t){this.writeExcludedKeys=t}async ls(t=""){const a=this.makeKey(t);return Object.keys(localStorage).filter(r=>r.startsWith(a)).map(r=>r.replace(a,""))}async get(t){const a=this.makeKey(t);return localStorage.getItem(a)??null}async has(t){const a=this.makeKey(t);return localStorage.getItem(a)!==null}async set(t,a){if(this.writeExcludedKeys.has(t))return;const r=this.makeKey(t);localStorage.setItem(r,a)}async remove(t){if(this.writeExcludedKeys.has(t))return;const a=this.makeKey(t);localStorage.removeItem(a)}async rename(t,a){const r=this.makeKey(t),n=this.makeKey(a),i=localStorage.getItem(r);i!==null&&(localStorage.setItem(n,i),localStorage.removeItem(r))}makeKey(t){return`replay:fs:${this.baseDir}/${t}`}on(t,a){}off(t,a){}}class D1a extends q8e{constructor(t,a,r){const n=new pU(t.systemFilesDir),i=new pU(t.userFilesDir);super(n,i,t,!1,a,r)}async detectProjectFiles(t){const a=this.telemetry?.startSpan("storage.detectFiles",{},t?.parentCtx),r=(await this.userFilesStorage.ls()).filter(s=>/\.(ya?ml|json)$/.test(s)),n=[],i=[],o=new Set;return await Promise.all(r.map(async s=>{const l=await this.userFilesStorage.get(s);if(l)try{const c=Pm.load(l);if(typeof c=="object"&&c!==null)if(typeof c.openapi=="string"){const u=await rn.resolve(await rn.join(this.userFilesStorage.baseDir,s)),{definition:d}=await _R(u,c);n.push({uri:s,type:Zs.FS,content:d})}else typeof c.arazzo=="string"&&(i.push({uri:s,type:Zs.FS,content:c}),c.sourceDescriptions?.forEach(u=>{const d=u.type,h=u.url,m=!d||d==="openapi",g=typeof h=="string"&&hd(h);m&&g&&o.add(h)}))}catch(c){console.error(`Error parsing YAML/JSON file ${s}:`,c)}})),a?.setAttribute("status","completed"),a?.setAttribute("filesCount",r.length),a?.setAttribute("apiFilesCount",n.length),a?.setAttribute("collectionFilesCount",i.length),a?.setAttribute("apiUrlsCount",o.size),a?.setStatus(Zi.OK),a?.end(),{apiFiles:n,collectionFiles:i,apiUrls:o}}async loadApis(t,a){const r=this.telemetry?.startSpan("storage.loadApis",{apiUrlsCount:t.size},a?.parentCtx),n=[];return await Promise.all(Array.from(t).map(async i=>{try{const{definition:o}=await _R(i);n.push({uri:i,type:Zs.WEB,content:o})}catch(o){console.error(`Error parsing YAML from ${i}:`,o)}})),r?.setAttribute("status","completed"),r?.setStatus(Zi.OK),r?.end(),n}async parseApis(t,a){const r=this.telemetry?.startSpan("storage.parseApis",{apisCount:t.length},a?.parentCtx),n=await this.apisStorage.parseMany(t);return r?.setAttribute("status","completed"),r?.setAttribute("parsedApisCount",n.length),r?.setStatus(Zi.OK),r?.end(),n}async parseCollections(t,a,r){const n=this.telemetry?.startSpan("storage.parseCollections",{collectionsCount:t.length},r?.parentCtx),i=await this.collectionsStorage.parseMany(t,a);return n?.setAttribute("status","completed"),n?.setAttribute("parsedCollectionsCount",i.length),n?.setStatus(Zi.OK),n?.end(),i}async read(){const t=this.telemetry?.startSpan("storage.read",void 0,void 0),a=this.telemetry?.startSpan("storage.loadUserState",{},t?.parentCtx),[r,n,i]=await Promise.all([this.activeEnvironmentIdStorage.read(),this.tabsStateStorage.read(),this.environmentsStorage.read()]);a?.setAttribute("status","completed"),a?.setAttribute("environmentCount",i.length),a?.setStatus(Zi.OK),a?.end();const{apiFiles:o,collectionFiles:s,apiUrls:l}=await this.detectProjectFiles(t),c=await this.loadApis(l,t),u=await this.parseApis([...o,...c],t);this.apisStorage.setItemIds(u.map(h=>h.id));const d=await this.parseCollections(s,u,t);return this.collectionsStorage.setItemIds(d.map(h=>h.id)),t?.setAttribute("status","completed"),t?.setStatus(Zi.OK),t?.end(),{project:this.project,activeEnvironmentId:r,tabsState:n,environments:i,apis:u,collections:d}}}var oNe;(function(e){e.WINDOW_RESIZED="tauri://resize",e.WINDOW_MOVED="tauri://move",e.WINDOW_CLOSE_REQUESTED="tauri://close-requested",e.WINDOW_DESTROYED="tauri://destroyed",e.WINDOW_FOCUS="tauri://focus",e.WINDOW_BLUR="tauri://blur",e.WINDOW_SCALE_FACTOR_CHANGED="tauri://scale-change",e.WINDOW_THEME_CHANGED="tauri://theme-changed",e.WINDOW_CREATED="tauri://window-created",e.WEBVIEW_CREATED="tauri://webview-created",e.DRAG_ENTER="tauri://drag-enter",e.DRAG_OVER="tauri://drag-over",e.DRAG_DROP="tauri://drag-drop",e.DRAG_LEAVE="tauri://drag-leave"})(oNe||(oNe={}));async function $1a(e,t){await yr("plugin:event|unlisten",{event:e,eventId:t})}async function K1a(e,t,a){var r;const n=(r=void 0)!==null&&r!==void 0?r:{kind:"Any"};return yr("plugin:event|listen",{event:e,target:n,handler:Vla(t)}).then(i=>async()=>$1a(e,i))}function py(e){return e==null?"":typeof e=="string"?e:typeof e=="object"&&"raw"in e&&typeof e.raw=="string"?e.raw:String(e)}function px(e){return e.replace(/\s+/g," ").trim()}function hy(e){return typeof e=="object"&&e!==null&&"$ref"in e}function hU(e){try{return JSON.stringify(e)}catch{return String(e)}}function sNe(e){let t=`${e.name} (${e.in}`;return e.required&&(t+=", required"),e.type&&(t+=`, ${e.type}`),e.format&&(t+=`, format: ${e.format}`),e.enum&&(t+=`, enum: [${e.enum.join(",")}]`),e.pattern&&(t+=`, pattern: ${e.pattern}`),t+=")",t}const H1a=["get","put","post","delete","options","head","patch","trace"],V1a=["query","x-query"];function F1a(e){return hy(e)?null:e}function q1a(e){return hy(e)?null:e}function G1a(e){return hy(e)?null:e}function lNe(e){return e.type?Array.isArray(e.type)?e.type.join("|"):e.type:e.oneOf?"oneOf":e.anyOf?"anyOf":e.allOf?"allOf":"object"}function U1a(e){return e==="querystring"?"query":e==="query"||e==="header"||e==="path"||e==="cookie"?e:"query"}function Q1a(e){const t=e.schema&&!hy(e.schema)?e.schema:null,a={name:e.name,in:U1a(e.in),required:e.required??!1};return t&&(a.type=lNe(t),t.format&&(a.format=t.format),t.enum&&(a.enum=t.enum.map(String)),t.pattern&&(a.pattern=t.pattern),t.example!==void 0&&(a.example=String(t.example))),e.description&&(a.description=py(e.description)),e.example!==void 0&&!a.example&&(a.example=String(e.example)),a}function W1a(e,t){const a=new Set,r=[],n=i=>{for(const o of i){const s=F1a(o);if(!s||!s.name)continue;const l=`${s.in}:${s.name}`;a.has(l)||(a.add(l),r.push(Q1a(s)))}};return e.parameters&&n(e.parameters),t.parameters&&n(t.parameters),r}function cNe(e,t=2,a=0){if(a>=t||!e.properties)return[];const r=new Set(e.required??[]);return Object.entries(e.properties).map(([n,i])=>({name:n,type:lNe(i),required:r.has(n),readOnly:i.readOnly}))}function Z1a(e,t){const a=[],r=Object.keys(e.content??{});if(r.length===0)return{textPart:"",schemaJson:"{}",examples:a};const n=r.find(u=>u.includes("json"))??r[0],i=e.content?.[n],o=i?.schema&&!hy(i.schema)?i.schema:null,s=(o?cNe(o):[]).filter(u=>!t.hideReadOnly||!u.readOnly),l=e.required?"required":"optional";let c=`Request body (${n}, ${l})`;if(s.length>0){const u=s.map(d=>`${d.name}: ${d.type}${d.required?" required":""}${d.readOnly?" readOnly":""}`);c+=`: {${u.join(", ")}}`}return i?.example!==void 0&&a.push(hU(i.example)),{textPart:c,schemaJson:JSON.stringify(s),examples:a}}function J1a(e){const t=[],a=[];for(const[r,n]of Object.entries(e)){if(hy(n))continue;const i=py(n.description??"");t.push(`${r} ${i}`.trim());const o={statusCode:r};i&&(o.description=i);const s=n.content;if(s){const l=Object.keys(s).find(u=>u.includes("json"))??Object.keys(s)[0],c=s[l]?.schema;if(c&&!hy(c)){const u=cNe(c);u.length>0&&(o.schemaProperties=JSON.stringify(u))}}a.push(o)}return{textParts:t,summaries:a}}function uNe(e){const t=e.components?.securitySchemes;if(!t)return[];const a=[];for(const[r,n]of Object.entries(t)){const i=G1a(n);i&&a.push(Y1a(r,i))}return a}function Y1a(e,t){const a={schemeName:e,type:t.type};if(t.in&&(a.in=t.in),t.name&&(a.name=t.name),t.scheme&&(a.scheme=t.scheme),t.bearerFormat&&(a.bearerFormat=t.bearerFormat),t.flows){const r=Object.keys(t.flows).filter(i=>t.flows[i]);r.length>0&&(a.flows=r.join(", "));const n=new Set;for(const i of r){const o=t.flows[i];o?.scopes&&Object.keys(o.scopes).forEach(s=>n.add(s))}n.size>0&&(a.scopes=[...n].join(", "))}return a}function X1a(e,t,a){const r=e??t;if(!r||a.length===0)return[];const n=new Set;for(const i of r)for(const o of Object.keys(i))n.add(o);return a.filter(i=>n.has(i.schemeName))}function e0a(e){return e.length===0?"":`Security: ${e.map(t=>{let a=`${t.schemeName} (${t.type}`;return t.scheme&&(a+=`, ${t.scheme}`),t.in&&t.name&&(a+=`, ${t.name} in ${t.in}`),a+=")",a}).join("; ")}.`}function mU(e){const{apiId:t,apiTitle:a,path:r,method:n,op:i,pathItem:o,globalSchemes:s,apiSecurity:l}=e,c=i.summary??"",u=py(i.description??""),d=i.operationId??"",h=i.tags??[],m=n.toUpperCase(),g=W1a(i,o),v=X1a(i.security,l,s),b=v.length>0?v.map(I=>`api_sec:${t}:${I.schemeName}`):void 0,k=[a,`${m} ${r}`,c,u];d&&k.push(`operationId: ${d}`),h.length>0&&k.push(`Tags: ${h.join(", ")}`),i.deprecated&&k.push("DEPRECATED"),g.length>0&&k.push(`Parameters: ${g.map(sNe).join(". ")}.`);let x;const w=[],z=i.requestBody;if(z){const I=q1a(z);if(I){const N=Z1a(I,{hideReadOnly:m==="POST"||m==="PUT"||m==="PATCH"});N.textPart&&k.push(N.textPart),x=N.schemaJson,w.push(...N.examples)}}const{textParts:S,summaries:C}=J1a(i.responses??{});S.length>0&&k.push(`Responses: ${S.join(", ")}.`);const j=e0a(v);j&&k.push(j);const T=`api_op:${t}:${r}:${n}:${d||`${r}-${n}`}`,E={type:"api_operation",id:T,contentHash:"",title:c||`${m} ${r}`,description:u||void 0,apiId:t,path:r,method:m,operationId:d||void 0,tags:h.length>0?h:void 0,deprecated:i.deprecated||void 0,parameterDetails:g.length>0?g:void 0,requestBodySchema:x,responseSchemas:C.length>0?C:void 0,securitySchemeRefs:b,examples:w.length>0?w:void 0};return{id:T,text:px(k.filter(Boolean).join(" ")),payload:E}}function fU(e){const t=e.info?.title??"Untitled API",a=py(e.info?.description??e.info?.summary??""),r=e.id;return{id:`api:${r}`,text:px([t,a].filter(Boolean).join(" ")),payload:{type:"api",id:`api:${r}`,contentHash:"",title:t,description:a||void 0,apiId:r}}}function dNe(e){const t=[];for(const a of e){t.push(fU(a));const r=a.info?.title??"Untitled API",n=a.id,i=uNe(a);for(const s of i){const l=`api_sec:${n}:${s.schemeName}`,c=[`${s.schemeName}: type=${s.type}`,s.scheme?`scheme=${s.scheme}`:"",s.in&&s.name?`${s.name} in ${s.in}`:"",s.bearerFormat?`format=${s.bearerFormat}`:"",s.flows?`flows=[${s.flows}]`:"",s.scopes?`scopes=[${s.scopes}]`:""].filter(Boolean).join(" ");t.push({id:l,text:px(`${r} Authentication. ${s.schemeName}. ${c}.`),payload:{type:"api_security",id:l,contentHash:"",title:`${r} \u2014 ${s.schemeName}`,apiId:n,securityScheme:s}})}const o=a.paths??{};for(const[s,l]of Object.entries(o)){if(!l||typeof l!="object")continue;const c=[...H1a.filter(d=>d in l),...V1a.filter(d=>d in l)];for(const d of c){const h=l[d];!h||typeof h!="object"||t.push(mU({apiId:n,apiTitle:r,path:s,method:d,op:h,pathItem:l,globalSchemes:i,apiSecurity:a.security}))}const u=l.additionalOperations;if(u&&typeof u=="object")for(const[d,h]of Object.entries(u))!h||typeof h!="object"||t.push(mU({apiId:n,apiTitle:r,path:s,method:d,op:h,pathItem:l,globalSchemes:i,apiSecurity:a.security}))}}return t}function t0a(e){const t=[],a=[{list:e.queryParameters,loc:"query"},{list:e.headers,loc:"header"},{list:e.cookies,loc:"cookie"},{list:e.pathParameters,loc:"path"}];for(const{list:r,loc:n}of a)for(const i of r)if("key"in i){const o=i;t.push({name:o.key,in:n,required:!1})}return t}function gU(e){const t=e.id,a=e.info?.title??"Untitled Collection",r=py(e.info?.description??e.info?.summary??"");return{id:`collection:${t}`,text:px([a,r].filter(Boolean).join(" ")),payload:{type:"collection",id:`collection:${t}`,contentHash:"",title:a,description:r||void 0,collectionId:t}}}function pNe(e){const{collectionId:t,collectionTitle:a,workflow:r}=e,n=r.workflowId??"",i=r.summary??n,o=py(r.description??""),s=[a,i,o];if(r.inputs&&s.push(`Inputs schema: ${hU(r.inputs)}`),r.outputs?.length){const l=r.outputs.map(c=>c.key).filter(Boolean);l.length&&s.push(`Outputs: ${l.join(", ")}`)}return r.dependsOn?.length&&s.push(`Depends on: ${r.dependsOn.join(", ")}`),{id:`workflow:${t}:${n}`,text:px(s.filter(Boolean).join(" ")),payload:{type:"workflow",id:`workflow:${t}:${n}`,contentHash:"",title:i,description:o||void 0,collectionId:t,workflowId:n}}}function hNe(e){const{collectionId:t,collectionTitle:a,workflowId:r,workflowTitle:n,step:i}=e,o=i.stepId??"",s=py(i.description??""),l=i.operation,c=i.xOperation,u=[a,n,`step: ${o}`];s&&u.push(s),l?(u.push(`${l.method?.toUpperCase()} ${l.path}`),l.apiId&&u.push(`API: ${l.apiId}`),l.operationId&&u.push(`operationId: ${l.operationId}`)):c&&u.push(`${c.method?.toUpperCase()} ${c.url}`);const d=i.parameters?t0a(i.parameters):[];d.length>0&&u.push(`Parameters: ${d.map(sNe).join(". ")}.`),i.requestBody?.type&&u.push(`Request body type: ${i.requestBody.type}`);const h=(i.successCriteria??[]).map(g=>{let v=g.condition;return g.context&&(v+=` context: ${g.context}`),g.type&&(v+=` (${g.type})`),v});if(h.length>0&&u.push(`Success criteria: ${h.join("; ")}`),i.outputs?.length){const g=i.outputs.map(v=>`${v.key}=${v.value}`).filter(Boolean);g.length&&u.push(`Outputs: ${g.join(", ")}`)}const m=`step:${t}:${r}:${o}`;return{id:m,text:px(u.filter(Boolean).join(" ")),payload:{type:"step",id:m,contentHash:"",title:o,description:s||void 0,collectionId:t,workflowId:r,stepId:o,path:l?.path??c?.url,method:(l?.method??c?.method)?.toUpperCase(),apiId:l?.apiId,operationId:l?.operationId,parameterDetails:d.length>0?d:void 0,successCriteria:h.length>0?h:void 0,requestBodySchema:i.requestBody?.type?hU(i.requestBody):void 0}}}function mNe(e){const t=[];for(const a of e){const r=a.id,n=a.info?.title??"Untitled Collection";t.push(gU(a));for(const i of a.workflows??[]){t.push(pNe({collectionId:r,collectionTitle:n,workflow:i}));const o=i.workflowId??"",s=i.summary??o;for(const l of i.steps??[])t.push(hNe({collectionId:r,collectionTitle:n,workflowId:o,workflowTitle:s,step:l}))}}return t}function a0a(e,t){return[...dNe(e),...mNe(t)]}const vU=10,r0a=4;function fNe(e){let t=0;for(let a=0;a<e.length;a++)t=(t<<5)-t+e.charCodeAt(a)|0;return t>>>0}function n0a(e){return Ib(uz(e))}class i0a extends KV{constructor(t){super(),this.collectionName=t}activeIndexJobs=0;getIndexingActivityState(){return{inProgress:this.activeIndexJobs>0}}beginIndexJob(){this.activeIndexJobs++,this.activeIndexJobs===1&&this.emit("indexing-activity",{inProgress:!0})}endIndexJob(){this.activeIndexJobs=Math.max(0,this.activeIndexJobs-1),this.activeIndexJobs===0&&this.emit("indexing-activity",{inProgress:!1})}async getIdsByPayload(t,a){return yr("semantic_search_get_ids_by_payload",{collectionName:this.collectionName,field:t,value:a})}async getAllIds(){return yr("semantic_search_get_all_ids",{collectionName:this.collectionName})}async getScopeHashes(t){const a=t.apiIds??[],r=t.collectionIds??[];let n;if(a.length===0&&r.length===0)n=await this.getAllIds();else{const o=[];for(const s of a)o.push(this.getIdsByPayload("apiId",s));for(const s of r)o.push(this.getIdsByPayload("collectionId",s));n=(await Promise.all(o)).flat()}const i=new Map;for(const o of n)i.set(o.id,o.contentHash);return i}async indexDocuments(t,a){if(t.length===0&&!a)return{added:0,updated:0,removed:0,unchanged:0};this.beginIndexJob();try{return await this.runIndexDocuments(t,a)}finally{this.endIndexJob()}}async runIndexDocuments(t,a){const r=await this.getScopeHashes(a??{}),n=[],i=new Set;let o=0,s=0;for(const u of t){const d=n0a(u.text);u.payload.contentHash=d,i.add(u.id);const h=r.get(u.id);h===d?s++:(h||o++,n.push(u))}const l=n.length-o,c=[];for(const u of r.keys())i.has(u)||c.push(u);return c.length>0&&await this.deletePoints(c.map(fNe)),n.length>0&&await this.embedAndUpsert(n),(c.length>0||n.length>0)&&await this.flush(),{added:o,updated:l,removed:c.length,unchanged:s}}async removeByPayloadFilter(t,a){return yr("semantic_search_delete_by_payload",{collectionName:this.collectionName,field:t,value:a})}async getStoredDocumentCount(){try{return(await yr("plugin:velesdb|list_collections"))?.find(t=>t.name===this.collectionName)?.count??0}catch{return 0}}async getDocumentsByIds(t){if(t.length===0)return new Map;const a=t.map(fNe),r=await yr("plugin:velesdb|get_points",{request:{collection:this.collectionName,ids:a}}),n=new Map;for(const i of r??[])if(i?.payload){const o=i.payload;o.id&&n.set(o.id,o)}return n}async embedAndUpsert(t){const a=[],r=t.length;for(let n=0;n<r;n+=vU)a.push({docs:t.slice(n,n+vU),index:Math.floor(n/vU)});await NV(a,r0a,async n=>{const i=n.docs.map(o=>({id:o.id,text:o.text||o.payload.title,payload:o.payload}));await yr("semantic_search_embed_and_upsert",{collectionName:this.collectionName,documents:i})})}async deletePoints(t){t.length!==0&&await yr("plugin:velesdb|delete_points",{request:{collection:this.collectionName,ids:t}})}async flush(){await yr("plugin:velesdb|flush",{name:this.collectionName}),await yr("semantic_search_write_hnsw_marker",{collectionName:this.collectionName}).catch(()=>{})}}const gNe="replay_search",o0a=384,hx={added:0,updated:0,removed:0,unchanged:0};class s0a extends KV{initialized=!1;projectId=null;indexer=null;indexQueue=Promise.resolve();get collectionName(){return this.projectId?`${gNe}_${this.projectId}`:gNe}createIndexer(){const t=new i0a(this.collectionName);return t.subscribe("indexing-activity",a=>{this.emit("indexing-activity",a)}),t}getIndexer(){return this.indexer||(this.indexer=this.createIndexer()),this.indexer}getIndexingActivityState(){return this.getIndexer().getIndexingActivityState()}async ensureInitialized(){this.initialized||await this.init()}enqueueIndex(t){const a=this.indexQueue.then(()=>t()).catch(r=>{throw console.error("Semantic index:",r),r}).finally(()=>this.unloadModel());return this.indexQueue=a.catch(()=>{}),a}async unloadModel(){try{await yr("semantic_search_unload_model")}catch{}}setProject(t){this.projectId!==t&&(this.projectId=t,this.initialized=!1,this.indexer=this.createIndexer())}async init(){if($n()&&!this.initialized){try{if((await yr("plugin:velesdb|list_collections"))?.some(t=>t.name===this.collectionName)){this.initialized=!0;return}}catch{}await yr("plugin:velesdb|create_collection",{request:{name:this.collectionName,dimension:o0a,metric:"cosine",storage_mode:"full"}}),this.initialized=!0}}async indexApis(t){if(!$n())return hx;await this.ensureInitialized();const a=this.collectionName,r=this.getIndexer(),n=dNe(t),i={apiIds:t.map(o=>o.id)};return this.enqueueIndex(async()=>this.collectionName!==a?hx:r.indexDocuments(n,i))}async indexCollections(t){if(!$n())return hx;await this.ensureInitialized();const a=this.collectionName,r=this.getIndexer(),n=mNe(t),i={collectionIds:t.map(o=>o.id)};return this.enqueueIndex(async()=>this.collectionName!==a?hx:r.indexDocuments(n,i))}async removeApi(t){$n()&&(await this.ensureInitialized(),await this.getIndexer().removeByPayloadFilter("apiId",t))}async removeCollection(t){$n()&&(await this.ensureInitialized(),await this.getIndexer().removeByPayloadFilter("collectionId",t))}async reindex(t,a){if(!$n())return hx;await this.ensureInitialized();const r=this.collectionName,n=this.getIndexer(),i=a0a(t,a);return this.enqueueIndex(async()=>this.collectionName!==r?hx:n.indexDocuments(i))}async search(t,a=10,r){if(!$n())return[];try{await this.ensureInitialized();const n=r&&Object.keys(r).length>0?{type:r.type,apiId:r.apiId,collectionId:r.collectionId,path:r.path,method:r.method,operationId:r.operationId,workflowId:r.workflowId,stepId:r.stepId}:void 0,i=((await yr("semantic_search_text",{collection:this.collectionName,query:t,topK:a,filters:n})).results??[]).map(o=>({...o.payload,score:o.score??0}));return await this.enrichWithRelatedSecurity(i),i}catch{return[]}}async enrichWithRelatedSecurity(t){const a=t.filter(i=>i.type==="api_operation"&&i.securitySchemeRefs?.length);if(a.length===0)return;const r=[...new Set(a.flatMap(i=>i.securitySchemeRefs??[]))],n=await this.getIndexer().getDocumentsByIds(r);for(const i of a){const o=[];for(const s of i.securitySchemeRefs??[]){const l=n.get(s);l?.securityScheme&&o.push(l.securityScheme)}o.length>0&&(i.relatedSecuritySchemes=o)}}async status(){if(!$n())return{indexed:0,modelLoaded:!1};const t=await this.getIndexer().getStoredDocumentCount();let a=!1;try{a=(await yr("semantic_search_model_status")).loaded}catch{}return{indexed:t,modelLoaded:a}}async clear(){if(!(!$n()||!this.initialized))try{await yr("plugin:velesdb|delete_collection",{name:this.collectionName}),this.initialized=!1}catch{}}async preloadModel(){if($n())try{await yr("semantic_search_preload_model")}catch{}}}let bU=null;function Zm(){return bU||(bU=new s0a),bU}class l0a{constructor(t,a,r,n){this.storage=t,this.state=a,this.projectDir=r,this.aiEnabled=n}watchPath=null;unlistenEvent=null;get tauriStorage(){return this.storage}indexApis(t){!this.aiEnabled||t.length===0||Zm().indexApis(t).catch(a=>console.error("Semantic index (apis):",a))}indexCollections(t){!this.aiEnabled||t.length===0||Zm().indexCollections(t).catch(a=>console.error("Semantic index (collections):",a))}removeApis(t){if(!this.aiEnabled||t.length===0)return;const a=Zm();Promise.all(t.map(r=>a.removeApi(r))).catch(r=>console.error("Semantic remove (apis):",r))}removeCollections(t){if(!this.aiEnabled||t.length===0)return;const a=Zm();Promise.all(t.map(r=>a.removeCollection(r))).catch(r=>console.error("Semantic remove (collections):",r))}async start(){if(this.watchPath){console.warn("Watcher already started for:",this.watchPath);return}try{this.unlistenEvent=await K1a("fs-watch-event",async t=>{const a=t.payload;try{await this.handleEvent(a)}catch(r){console.error("Error handling file change:",r)}}),await yr("fs_watch",{path:this.projectDir,options:{recursive:!0,delayMs:500}}),this.watchPath=this.projectDir}catch(t){throw console.error("Failed to start file watcher:",t),this.unlistenEvent&&(this.unlistenEvent(),this.unlistenEvent=null),t}}async stop(){if(this.watchPath)try{await yr("fs_unwatch",{path:this.watchPath})}catch(t){console.error("Error stopping file watcher:",t)}finally{this.unlistenEvent&&(this.unlistenEvent(),this.unlistenEvent=null),this.watchPath=null}}async handleEvent(t){const{changeType:a,paths:r,pathTypes:n,type:i}=t;if(await this.isProjectFolderRemoved(r,a)){await this.handleProjectFolderRemoval();return}const o=this.filterSpecFiles(r,n);if(o.paths.length===0)return;const s=await this.toFileEntries(o.paths,o.pathTypes);switch(a){case"changed":(i.includes("Data")||i.includes("Name"))&&await this.handleModify(s);break;case"added":await this.handleCreate(s);break;case"deleted":await this.handleDelete(s);break;case"renamed":await this.handleRename(s);break;default:console.log("Unhandled change type:",a)}}filterSpecFiles(t,a){const r=[],n=[];for(let i=0;i<t.length;i++){const o=t[i],s=o.split(".").pop()?.toLowerCase();s&&["yaml","yml","json"].includes(s)&&(r.push(o),n.push(a[i]||"unknown"))}return{paths:r,pathTypes:n}}async toFileEntries(t,a){return Promise.all(t.map(async(r,n)=>({relative_path:await rn.relative(this.projectDir,r),absolute_path:r,type:a[n]||"unknown"})))}consolidateFileEntries(t){const a=[],r=new Set;for(const n of t)r.has(n.relative_path)||(r.add(n.relative_path),this.storage.isWatchExcluded(n.relative_path)||a.push(n));return a}async handleModify(t){const a=!this.storage.isWatchExcluded("replay-environments.yaml")&&t.some(m=>m.relative_path==="replay-environments.yaml"),r=t.filter(m=>m.relative_path!=="replay-environments.yaml"),{newApiFiles:n,existingApiFiles:i}=this.categorizeApisFromFiles(r),{newCollectionFiles:o,existingCollectionFiles:s}=this.categorizeCollectionsFromFiles(r),l=await this.findApisToReload(t),c=await this.findCollectionsToReload(t),u=[...n,...o];u.length>0&&await this.handleCreate(u),a&&await this.reloadEnvironments();const d=this.consolidateFileEntries([...i,...l]),h=this.consolidateFileEntries([...s,...c]);await this.reloadApis(d),await this.reloadCollections(h)}async handleCreate(t){const a=t.filter(l=>l.type==="api"),r=t.filter(l=>l.type==="collection"),{newApiFiles:n,existingApiFiles:i}=this.categorizeApisFromFiles(a),{newCollectionFiles:o,existingCollectionFiles:s}=this.categorizeCollectionsFromFiles(r);if(n.length>0||o.length>0){n.forEach(h=>this.storage.addPersistExcludedId(h.relative_path)),o.forEach(h=>this.storage.addPersistExcludedId(h.relative_path));const l=n.length>0?await this.tauriStorage.loadAndParseApis(n,void 0,!0):[],c=o.length>0?await this.tauriStorage.loadAndParseCollections(o,void 0):[],u=l.filter(h=>h!==null),d=c.filter(h=>h!==null);this.state.apis.merge(u),this.state.collections.merge(d),this.indexApis(u),this.indexCollections(d),setTimeout(()=>{n.forEach(h=>this.storage.removePersistExcludedId(h.relative_path)),o.forEach(h=>this.storage.removePersistExcludedId(h.relative_path))},500)}i.length>0&&await this.reloadApis(i),s.length>0&&await this.reloadCollections(s)}categorizeApisFromFiles(t){const a=new Set,r=[],n=[];for(const i of t)a.has(i.relative_path)||(a.add(i.relative_path),this.state.apis.get({noproxy:!0}).some(o=>o.id===i.relative_path)?n.push(i):i.type==="api"&&r.push(i));return{newApiFiles:r,existingApiFiles:n}}categorizeCollectionsFromFiles(t){const a=new Set,r=[],n=[];for(const i of t)a.has(i.relative_path)||(a.add(i.relative_path),this.state.collections.get({noproxy:!0}).some(o=>o.id===i.relative_path)?n.push(i):i.type==="collection"&&r.push(i));return{newCollectionFiles:r,existingCollectionFiles:n}}async handleDelete(t){const a=[],r=[];for(const n of t){this.storage.addPersistExcludedId(n.relative_path);const i=this.state.apis.get({noproxy:!0}).findIndex(s=>s.id===n.relative_path);i>=0&&(this.state.apis[i].set(rr),this.tauriStorage.deleteApiFromCache(n.relative_path),a.push(n.relative_path));const o=this.state.collections.get({noproxy:!0}).findIndex(s=>s.id===n.relative_path);o>=0&&(this.state.collections[o].set(rr),r.push(n.relative_path)),setTimeout(()=>{this.storage.removePersistExcludedId(n.relative_path)},500)}this.removeApis(a),this.removeCollections(r)}async handleRename(t){if(t.length>=2){const[a,r]=t;await this.handleDelete([a]),await this.handleCreate([r])}else await this.handleCreate(t)}async isProjectFolderRemoved(t,a){if(t.length===0)return!1;if(a==="deleted"||a==="renamed"){for(const r of t)if(r===this.projectDir)return!0}return t.filter(r=>!r.startsWith(this.projectDir+"/")&&r!==this.projectDir).length>0&&a==="renamed"}async handleProjectFolderRemoval(){const t=this.state.apis.get({noproxy:!0}),a=t.map(i=>i.id);t.forEach(i=>{this.storage.addPersistExcludedId(i.id),this.tauriStorage.deleteApiFromCache(i.id)}),this.state.apis.set([]);const r=this.state.collections.get({noproxy:!0}),n=r.map(i=>i.id);r.forEach(i=>{this.storage.addPersistExcludedId(i.id)}),this.state.collections.set([]),setTimeout(()=>{t.forEach(i=>this.storage.removePersistExcludedId(i.id)),r.forEach(i=>this.storage.removePersistExcludedId(i.id))},500),this.removeApis(a),this.removeCollections(n),await this.stop()}async findApisToReload(t){const a=[];return await Promise.all(this.state.apis.map(async r=>{const n=r.fileDependencies?.get({noproxy:!0})??new Set,i=r.get({noproxy:!0}).id,o=t.find(s=>n.has(s.absolute_path));if(!this.storage.isWatchExcluded(i)&&o){const s=await rn.join(this.projectDir,i);a.push({relative_path:i,absolute_path:s,type:"api"})}})),a}async findCollectionsToReload(t){const a=[];return await Promise.all(this.state.collections.map(async r=>{const n=r.fileDependencies?.get({noproxy:!0})??new Set,i=r.get({noproxy:!0}).id,o=t.find(s=>n.has(s.absolute_path));if(!this.storage.isWatchExcluded(i)&&o){const s=await rn.join(this.projectDir,i);a.push({relative_path:i,absolute_path:s,type:"collection"})}})),a}async reloadEnvironments(){const t=await this.tauriStorage.readEnviroments();this.storage.addPersistExcludedId("replay-environments.yaml"),this.state.environments.set(t),setTimeout(()=>{this.storage.removePersistExcludedId("replay-environments.yaml")},500)}async reloadApis(t){if(t.length===0)return;const a=await this.tauriStorage.loadAndParseApis(t,void 0,!0),r=[];await Promise.all(a.map(async(n,i)=>{if(!n){await this.handleDelete([t[i]]);return}const o=this.state.apis.get({noproxy:!0}).findIndex(s=>s.id===n.id);o>=0?(this.storage.addPersistExcludedId(n.id),this.state.apis[o].set(n),r.push(n),setTimeout(()=>this.storage.removePersistExcludedId(n.id),500)):console.warn("API not found in state after reload:",n.id)})),r.length>0&&this.indexApis(r)}async reloadCollections(t){if(t.length===0)return;const a=await this.tauriStorage.loadAndParseCollections(t,void 0),r=[];await Promise.all(a.map(async(n,i)=>{if(!n){await this.handleDelete([t[i]]);return}const o=this.state.collections.get({noproxy:!0}).findIndex(s=>s.id===n.id);o>=0?(this.storage.addPersistExcludedId(n.id),this.state.collections[o].set(n),r.push(n),setTimeout(()=>this.storage.removePersistExcludedId(n.id),500)):console.warn("Collection not found in state after reload:",n.id)})),r.length>0&&this.indexCollections(r)}}function c0a(e=!1){let t,a=!1,r=null,n=null;async function i(l){if(!(!$n()||!t||!n)){await o();try{const c=n.project.userFilesDir.get();r=new l0a(t,n,c,l),await r.start()}catch(c){console.error("Failed to start file watcher:",c),r=null}}}async function o(){r&&(await r.stop(),r=null)}async function s(){$n()&&(await o(),await yr("cleanup_all_managed_watchers"))}return()=>({id:"RootStoragePlugin",onCreate:(l,c)=>({getTauriRootStorage:u=>()=>t instanceof iNe?t:void 0,cleanup:()=>async()=>{await s()},init:u=>async(d,h,m)=>{if(a||u.path.length>0)return{isInitialized:!1};const{convertOperationToReplayValue:g,aiEnabled:v}=h,b=$n();if(a=!0,n=u,e)return a=!1,{isInitialized:!0};t=b?new iNe(d,g,m):new D1a(d,g,m);const k=await t.read();if(u.merge(k),!b)return a=!1,{isInitialized:!0};try{if(await i(v??!1),v){const x=Zm();x.setProject(d.id),x.preloadModel().catch(()=>{}),x.reindex(k.apis,k.collections).catch(w=>{console.error("Semantic reindex failed:",w)})}}finally{a=!1}return{isInitialized:!0}}}),onSet(l,c,u){a||!e&&t&&t.update(c,u)},onDestroy:async()=>{await s()}})}function u0a({defaultEnvironments:e}={}){return structuredClone({project:{id:"default",userFilesDir:"default",systemFilesDir:"default"},tabsState:ap(EV),activeEnvironmentId:Zz,environments:e||Z_e,collections:[],apis:[],requestController:null,apps:{apps:[],appsLoadingState:Sh.Idle},predefinedApiId:null,predefinedEnvironmentNames:new Set,predefinedInputNames:new Set})}const d0a=gFt(u0a(),bFt(Hla({key:"replay-root-store"}),c0a())),vNe=P.createContext(d0a);function tr(){const e=P.useContext(vNe);return jSe(e)}function p0a(){return{theme:"light",disableCollectionsTab:!1,oAuth2RedirectURI:null,corsProxyUrl:void 0,credentialOrigin:void 0,certificates:[],isApiBased:!1,generatedEnvironments:[],generatedInputs:[],hideOtherSecuritySchemes:!1,aiEnabled:!1,isPreviewLayout:!1}}const h0a=p0a(),m0a=P.createContext(h0a);function el(){const e=P.useContext(m0a);return jSe(e)}function f0a(e,t){const{apps:{apiId:a}}=tr(),{corsProxyUrl:r,credentialOrigin:n,disableCollectionsTab:i,oAuth2RedirectURI:o,certificates:s,storageKey:l,isApiBased:c,aiEnabled:u,isPreviewLayout:d}=el();r.set(e?.corsProxyUrl??Bla),n.set(e?.credentialOrigin),a.set(e?.apiId),o.set(e?.oAuth2RedirectURI),i.set(!!e?.disableCollectionsTab),l.set(e?.storageKey),c.set(!!t),u.set(!!e?.aiEnabled),d.set(e?.layout==="preview"),P.useEffect(()=>{s.set(e?.certificates||[])},[e?.certificates])}const bNe=P.createContext({});function tl(){return P.useContext(bNe)||{}}const g0a=!0,v0a="0.24.0-next.3",b0a={version:v0a},y0a={organizationId:"",organizationSlug:"",projectId:"",projectSlug:"",actor:{id:"",object:"user",uri:""},source:"",origin:"replayUi"};class yNe{_client;_isInitialized=!1;_initResolve=null;_initPromise=new Promise(t=>{this._initResolve=t});_globalAttributes={platform:"",deviceId:""};constructor(){this._client=new Lla}get isInitialized(){return this._isInitialized}get client(){return this._client}awaitInit(){return this._initPromise}updateCloudEventData(t){this._client.updateCloudEventData(t)}enrichGlobalAttributes(t){this._globalAttributes={...this._globalAttributes,...t}}getGlobalAttributes(){return{...this._globalAttributes}}clearGlobalAttributes(){this._globalAttributes={platform:"",deviceId:""}}init(t){if(this.isInitialized)return;const a=t?.tracerName||"desktop",r=t?.enableErrorInstrumentation??a==="desktop",n={serviceName:"replay",serviceVersion:b0a.version,version:"1.0.0",tracerName:a,collectorUrl:"",isProd:g0a,enableErrorInstrumentation:r};this._client.init({otel:{...n,...t}}),this._client.updateCloudEventData(()=>({...y0a,env:"production"})),this._initResolve?.(this),this._isInitialized=!0}sendEvent(t,a){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}const r=Array.isArray(a)?a.map(n=>({...this._globalAttributes,...n})):{...this._globalAttributes,...a};try{this.client.send(t,r)}catch(n){console.error("Failed to send telemetry event:",n)}}startSpan(t,a,r){if(!this.isInitialized){console.warn("Telemetry client not initialized. Call init() first.");return}try{return this._client.startSpan(t,{...this._globalAttributes,...a},r)}catch(n){console.error("Failed to start telemetry span:",n);return}}}const MR=new yNe;function Na(){const{telemetry:e}=tl();MR.isInitialized||MR.init(e);const t=P.useCallback((r,n)=>{MR.sendEvent(r,n)},[]),a=P.useCallback((r,n,i)=>MR.startSpan(r,n,i),[]);return{sendEvent:t,startSpan:a}}const Pl=800,cc=R(Ze).attrs({variant:"text",size:"small",tone:"danger"})`
|
|
12595
12632
|
border: none;
|
|
12596
12633
|
margin: 0;
|
|
12597
12634
|
|