dd-trace 5.88.0 → 5.89.0
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/ext/tags.js +2 -0
- package/index.d.ts +9 -0
- package/package.json +12 -8
- package/packages/datadog-instrumentations/src/helpers/rewriter/index.js +26 -111
- package/packages/datadog-instrumentations/src/helpers/rewriter/{compiler.js → orchestrion/compiler.js} +5 -5
- package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/index.js +43 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/matcher.js +49 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/transformer.js +121 -0
- package/packages/datadog-instrumentations/src/helpers/rewriter/{transforms.js → orchestrion/transforms.js} +6 -6
- package/packages/datadog-instrumentations/src/jest.js +101 -43
- package/packages/datadog-plugin-cypress/src/cypress-plugin.js +36 -5
- package/packages/datadog-plugin-cypress/src/source-map-utils.js +297 -0
- package/packages/datadog-plugin-cypress/src/support.js +4 -1
- package/packages/dd-trace/src/aiguard/sdk.js +5 -1
- package/packages/dd-trace/src/ci-visibility/exporters/ci-visibility-exporter.js +1 -0
- package/packages/dd-trace/src/config/index.js +2 -0
- package/packages/dd-trace/src/config/supported-configurations.json +10 -0
- package/packages/dd-trace/src/datastreams/checkpointer.js +13 -0
- package/packages/dd-trace/src/datastreams/index.js +3 -0
- package/packages/dd-trace/src/datastreams/manager.js +9 -0
- package/packages/dd-trace/src/datastreams/processor.js +126 -3
- package/packages/dd-trace/src/encode/agentless-json.js +16 -2
- package/packages/dd-trace/src/exporters/agent/writer.js +7 -8
- package/packages/dd-trace/src/pkg.js +1 -1
- package/packages/dd-trace/src/proxy.js +2 -1
- package/packages/dd-trace/src/startup-log.js +52 -18
- package/vendor/dist/@datadog/sketches-js/index.js +1 -1
- package/vendor/dist/@datadog/source-map/index.js +1 -1
- package/vendor/dist/@isaacs/ttlcache/index.js +1 -1
- package/vendor/dist/@opentelemetry/core/index.js +1 -1
- package/vendor/dist/@opentelemetry/resources/index.js +1 -1
- package/vendor/dist/astring/index.js +1 -1
- package/vendor/dist/crypto-randomuuid/index.js +1 -1
- package/vendor/dist/escape-string-regexp/index.js +1 -1
- package/vendor/dist/esquery/index.js +1 -1
- package/vendor/dist/ignore/index.js +1 -1
- package/vendor/dist/istanbul-lib-coverage/index.js +1 -1
- package/vendor/dist/jest-docblock/index.js +1 -1
- package/vendor/dist/jsonpath-plus/index.js +1 -1
- package/vendor/dist/limiter/index.js +1 -1
- package/vendor/dist/lodash.sortby/index.js +1 -1
- package/vendor/dist/lru-cache/index.js +1 -1
- package/vendor/dist/meriyah/index.js +1 -1
- package/vendor/dist/module-details-from-path/index.js +1 -1
- package/vendor/dist/mutexify/promise/index.js +1 -1
- package/vendor/dist/opentracing/index.js +1 -1
- package/vendor/dist/path-to-regexp/index.js +1 -1
- package/vendor/dist/pprof-format/index.js +1 -1
- package/vendor/dist/protobufjs/index.js +1 -1
- package/vendor/dist/protobufjs/minimal/index.js +1 -1
- package/vendor/dist/retry/index.js +1 -1
- package/vendor/dist/rfdc/index.js +1 -1
- package/vendor/dist/semifies/index.js +1 -1
- package/vendor/dist/shell-quote/index.js +1 -1
- package/vendor/dist/source-map/index.js +1 -1
- package/vendor/dist/source-map/lib/util/index.js +1 -1
- package/vendor/dist/tlhunter-sorted-set/index.js +1 -1
- package/vendor/dist/ttl-set/index.js +1 -1
- package/packages/datadog-instrumentations/src/helpers/rewriter/transformer.js +0 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e,t,r,n,a,o,i,T={};T.d=(e,t)=>{for(var r in t)T.o(t,r)&&!T.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},T.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),T.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};T.r(u),T.d(u,{baggageUtils:()=>et,hrTime:()=>hrTime,timeInputToHrTime:()=>timeInputToHrTime,W3CTraceContextPropagator:()=>X,callWithTimeout:()=>callWithTimeout,AlwaysOnSampler:()=>H,isTracingSuppressed:()=>isTracingSuppressed,AlwaysOffSampler:()=>V,loggingErrorHandler:()=>loggingErrorHandler,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>y,deleteRPCMetadata:()=>deleteRPCMetadata,suppressTracing:()=>suppressTracing,RPCType:()=>i,RandomIdGenerator:()=>RandomIdGenerator_RandomIdGenerator,setRPCMetadata:()=>setRPCMetadata,unrefTimer:()=>unrefTimer,hrTimeToMilliseconds:()=>hrTimeToMilliseconds,TRACE_PARENT_HEADER:()=>D,unsuppressTracing:()=>unsuppressTracing,globalErrorHandler:()=>globalErrorHandler,_globalThis:()=>R,getEnvWithoutDefaults:()=>getEnvWithoutDefaults,ParentBasedSampler:()=>G,millisToHrTime:()=>millisToHrTime,isTimeInputHrTime:()=>isTimeInputHrTime,otperformance:()=>p,internal:()=>er,urlMatches:()=>urlMatches,BindOnceFuture:()=>ee,DEFAULT_ENVIRONMENT:()=>v,SDK_INFO:()=>m,isWrapped:()=>isWrapped,isAttributeKey:()=>isAttributeKey,TraceState:()=>B,hexToBase64:()=>hexToBase64,TRACE_STATE_HEADER:()=>w,getEnv:()=>getEnv,getTimeOrigin:()=>getTimeOrigin,TraceIdRatioBasedSampler:()=>F,hrTimeDuration:()=>hrTimeDuration,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>h,isTimeInput:()=>isTimeInput,hexToBinary:()=>hexToBinary,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>A,parseTraceParent:()=>parseTraceParent,isUrlIgnored:()=>isUrlIgnored,parseEnvironment:()=>parseEnvironment,setGlobalErrorHandler:()=>setGlobalErrorHandler,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>P,isAttributeValue:()=>isAttributeValue,CompositePropagator:()=>C,hrTimeToMicroseconds:()=>hrTimeToMicroseconds,AnchoredClock:()=>E,TracesSamplerValues:()=>o,ExportResultCode:()=>n,hrTimeToNanoseconds:()=>hrTimeToNanoseconds,merge:()=>merge,TimeoutError:()=>$,W3CBaggagePropagator:()=>c,addHrTimes:()=>addHrTimes,getRPCMetadata:()=>getRPCMetadata,sanitizeAttributes:()=>sanitizeAttributes,hrTimeToTimeStamp:()=>hrTimeToTimeStamp,VERSION:()=>d});let l=require("@opentelemetry/api");var s=(0,l.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function suppressTracing(e){return e.setValue(s,!0)}function unsuppressTracing(e){return e.deleteValue(s)}function isTracingSuppressed(e){return!0===e.getValue(s)}var _="baggage",__read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};function serializeKeyPairs(e){return e.reduce(function(e,t){var r=""+e+(""!==e?",":"")+t;return r.length>8192?e:r},"")}function getKeyPairs(e){return e.getAllEntries().map(function(e){var t=__read(e,2),r=t[0],n=t[1],a=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(a+=";"+n.metadata.toString()),a})}function parsePairKeyValue(e){var t,r=e.split(";");if(!(r.length<=0)){var n=r.shift();if(n){var a=n.indexOf("=");if(!(a<=0)){var o=decodeURIComponent(n.substring(0,a).trim()),i=decodeURIComponent(n.substring(a+1).trim());return r.length>0&&(t=(0,l.baggageEntryMetadataFromString)(r.join(";"))),{key:o,value:i,metadata:t}}}}}function parseKeyPairsIntoRecord(e){return"string"!=typeof e||0===e.length?{}:e.split(",").map(function(e){return parsePairKeyValue(e)}).filter(function(e){return void 0!==e&&e.value.length>0}).reduce(function(e,t){return e[t.key]=t.value,e},{})}var c=function(){function W3CBaggagePropagator(){}return W3CBaggagePropagator.prototype.inject=function(e,t,r){var n=l.propagation.getBaggage(e);if(!(!n||isTracingSuppressed(e))){var a=serializeKeyPairs(getKeyPairs(n).filter(function(e){return e.length<=4096}).slice(0,180));a.length>0&&r.set(t,_,a)}},W3CBaggagePropagator.prototype.extract=function(e,t,r){var n=r.get(t,_),a=Array.isArray(n)?n.join(","):n;if(!a)return e;var o={};return 0===a.length||(a.split(",").forEach(function(e){var t=parsePairKeyValue(e);if(t){var r={value:t.value};t.metadata&&(r.metadata=t.metadata),o[t.key]=r}}),0===Object.entries(o).length)?e:l.propagation.setBaggage(e,l.propagation.createBaggage(o))},W3CBaggagePropagator.prototype.fields=function(){return[_]},W3CBaggagePropagator}(),E=function(){function AnchoredClock(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}return AnchoredClock.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},AnchoredClock}(),__values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},attributes_read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};function sanitizeAttributes(e){var t,r,n={};if("object"!=typeof e||null==e)return n;try{for(var a=__values(Object.entries(e)),o=a.next();!o.done;o=a.next()){var i=attributes_read(o.value,2),T=i[0],u=i[1];if(!isAttributeKey(T)){l.diag.warn("Invalid attribute key: "+T);continue}if(!isAttributeValue(u)){l.diag.warn("Invalid attribute value set for key: "+T);continue}Array.isArray(u)?n[T]=u.slice():n[T]=u}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return n}function isAttributeKey(e){return"string"==typeof e&&e.length>0}function isAttributeValue(e){return null==e||(Array.isArray(e)?isHomogeneousAttributeValueArray(e):isValidPrimitiveAttributeValue(e))}function isHomogeneousAttributeValueArray(e){try{for(var t,r,n,a=__values(e),o=a.next();!o.done;o=a.next()){var i=o.value;if(null!=i){if(!n){if(isValidPrimitiveAttributeValue(i)){n=typeof i;continue}return!1}if(typeof i!==n)return!1}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!0}function isValidPrimitiveAttributeValue(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function loggingErrorHandler(){return function(e){l.diag.error(stringifyException(e))}}function stringifyException(e){return"string"==typeof e?e:JSON.stringify(flattenException(e))}function flattenException(e){for(var t={},r=e;null!==r;)Object.getOwnPropertyNames(r).forEach(function(e){if(!t[e]){var n=r[e];n&&(t[e]=String(n))}}),r=Object.getPrototypeOf(r);return t}var f=loggingErrorHandler();function setGlobalErrorHandler(e){f=e}function globalErrorHandler(e){try{f(e)}catch(e){}}var p=require("perf_hooks").performance;function millisToHrTime(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function getTimeOrigin(){var e=p.timeOrigin;return"number"!=typeof e&&(e=p.timing&&p.timing.fetchStart),e}function hrTime(e){return addHrTimes(millisToHrTime(getTimeOrigin()),millisToHrTime("number"==typeof e?e:p.now()))}function timeInputToHrTime(e){if(isTimeInputHrTime(e))return e;if("number"==typeof e)if(e<getTimeOrigin())return hrTime(e);else return millisToHrTime(e);if(e instanceof Date)return millisToHrTime(e.getTime());throw TypeError("Invalid input type")}function hrTimeDuration(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=1e9),[r,n]}function hrTimeToTimeStamp(e){var t=""+"0".repeat(9)+e[1]+"Z",r=t.substring(t.length-9-1);return new Date(1e3*e[0]).toISOString().replace("000Z",r)}function hrTimeToNanoseconds(e){return 1e9*e[0]+e[1]}function hrTimeToMilliseconds(e){return 1e3*e[0]+e[1]/1e6}function hrTimeToMicroseconds(e){return 1e6*e[0]+e[1]/1e3}function isTimeInputHrTime(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function isTimeInput(e){return isTimeInputHrTime(e)||"number"==typeof e||e instanceof Date}function addHrTimes(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=1e9&&(r[1]-=1e9,r[0]+=1),r}function intValue(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function hexToBinary(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var a=intValue(e.charCodeAt(n)),o=intValue(e.charCodeAt(n+1));t[r++]=a<<4|o}return t}(e=n||(n={}))[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED";var RandomIdGenerator_RandomIdGenerator=function(){this.generateTraceId=getIdGenerator(16),this.generateSpanId=getIdGenerator(8)},O=Buffer.allocUnsafe(16);function getIdGenerator(e){return function(){for(var t=0;t<e/4;t++)O.writeUInt32BE(0x100000000*Math.random()>>>0,4*t);for(var t=0;t<e;t++)if(O[t]>0)break;else t===e-1&&(O[e-1]=1);return O.toString("hex",0,e)}}var d="1.30.1",m=((a={})["telemetry.sdk.name"]="opentelemetry",a["process.runtime.name"]="node",a["telemetry.sdk.language"]="nodejs",a["telemetry.sdk.version"]=d,a),R="object"==typeof globalThis?globalThis:global;(t=o||(o={})).AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio";var g=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(e){return g.indexOf(e)>-1}var S=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(e){return S.indexOf(e)>-1}var L=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function isEnvVarAList(e){return L.indexOf(e)>-1}var P=1/0,y=128,h=128,A=128,v={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:l.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:P,OTEL_ATTRIBUTE_COUNT_LIMIT:y,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:P,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:y,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:P,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:y,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:h,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:A,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:o.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function parseBoolean(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function parseNumber(e,t,r,n,a){if(void 0===n&&(n=-1/0),void 0===a&&(a=1/0),void 0!==r[e]){var o=Number(r[e]);isNaN(o)||(o<n?t[e]=n:o>a?t[e]=a:t[e]=o)}}function parseStringList(e,t,r,n){void 0===n&&(n=",");var a=r[e];"string"==typeof a&&(t[e]=a.split(n).map(function(e){return e.trim()}))}var I={ALL:l.DiagLogLevel.ALL,VERBOSE:l.DiagLogLevel.VERBOSE,DEBUG:l.DiagLogLevel.DEBUG,INFO:l.DiagLogLevel.INFO,WARN:l.DiagLogLevel.WARN,ERROR:l.DiagLogLevel.ERROR,NONE:l.DiagLogLevel.NONE};function setLogLevelFromEnv(e,t,r){var n=r[e];if("string"==typeof n){var a=I[n.toUpperCase()];null!=a&&(t[e]=a)}}function parseEnvironment(e){var t={};for(var r in v)if("OTEL_LOG_LEVEL"===r)setLogLevelFromEnv(r,t,e);else if(isEnvVarABoolean(r))parseBoolean(r,t,e);else if(isEnvVarANumber(r))parseNumber(r,t,e);else if(isEnvVarAList(r))parseStringList(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}function getEnv(){return Object.assign({},v,parseEnvironment(process.env))}function getEnvWithoutDefaults(){return parseEnvironment(process.env)}function hexToBase64(e){return Buffer.from(hexToBinary(e)).toString("base64")}function unrefTimer(e){e.unref()}var composite_values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},C=function(){function CompositePropagator(e){var t;void 0===e&&(e={}),this._propagators=null!=(t=e.propagators)?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return CompositePropagator.prototype.inject=function(e,t,r){var n,a;try{for(var o=composite_values(this._propagators),i=o.next();!i.done;i=o.next()){var T=i.value;try{T.inject(e,t,r)}catch(e){l.diag.warn("Failed to inject with "+T.constructor.name+". Err: "+e.message)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}},CompositePropagator.prototype.extract=function(e,t,r){return this._propagators.reduce(function(e,n){try{return n.extract(e,t,r)}catch(e){l.diag.warn("Failed to extract with "+n.constructor.name+". Err: "+e.message)}return e},e)},CompositePropagator.prototype.fields=function(){return this._fields.slice()},CompositePropagator}(),b="[_0-9a-z-*/]",N=RegExp("^(?:[a-z]"+b+"{0,255}|"+("[a-z0-9]"+b+"{0,240}@[a-z]")+b+"{0,13})$"),M=/^[ -~]{0,255}[!-~]$/,U=/,|=/;function validateKey(e){return N.test(e)}function validateValue(e){return M.test(e)&&!U.test(e)}var B=function(){function TraceState(e){this._internalState=new Map,e&&this._parse(e)}return TraceState.prototype.set=function(e,t){var r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r},TraceState.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},TraceState.prototype.get=function(e){return this._internalState.get(e)},TraceState.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,r){return t.push(r+"="+e.get(r)),t},[]).join(",")},TraceState.prototype._parse=function(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var a=r.slice(0,n),o=r.slice(n+1,t.length);validateKey(a)&&validateValue(o)&&e.set(a,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},TraceState.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},TraceState.prototype._clone=function(){var e=new TraceState;return e._internalState=new Map(this._internalState),e},TraceState}(),D="traceparent",w="tracestate",j=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function parseTraceParent(e){var t=j.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var X=function(){function W3CTraceContextPropagator(){}return W3CTraceContextPropagator.prototype.inject=function(e,t,r){var n=l.trace.getSpanContext(e);if(!(!n||isTracingSuppressed(e))&&(0,l.isSpanContextValid)(n)){var a="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||l.TraceFlags.NONE).toString(16);r.set(t,D,a),n.traceState&&r.set(t,w,n.traceState.serialize())}},W3CTraceContextPropagator.prototype.extract=function(e,t,r){var n=r.get(t,D);if(!n)return e;var a=Array.isArray(n)?n[0]:n;if("string"!=typeof a)return e;var o=parseTraceParent(a);if(!o)return e;o.isRemote=!0;var i=r.get(t,w);if(i){var T=Array.isArray(i)?i.join(","):i;o.traceState=new B("string"==typeof T?T:void 0)}return l.trace.setSpanContext(e,o)},W3CTraceContextPropagator.prototype.fields=function(){return[D,w]},W3CTraceContextPropagator}(),x=(0,l.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA");function setRPCMetadata(e,t){return e.setValue(x,t)}function deleteRPCMetadata(e){return e.deleteValue(x)}function getRPCMetadata(e){return e.getValue(x)}(i||(i={})).HTTP="http";var V=function(){function AlwaysOffSampler(){}return AlwaysOffSampler.prototype.shouldSample=function(){return{decision:l.SamplingDecision.NOT_RECORD}},AlwaysOffSampler.prototype.toString=function(){return"AlwaysOffSampler"},AlwaysOffSampler}(),H=function(){function AlwaysOnSampler(){}return AlwaysOnSampler.prototype.shouldSample=function(){return{decision:l.SamplingDecision.RECORD_AND_SAMPLED}},AlwaysOnSampler.prototype.toString=function(){return"AlwaysOnSampler"},AlwaysOnSampler}(),G=function(){function ParentBasedSampler(e){var t,r,n,a;this._root=e.root,this._root||(globalErrorHandler(Error("ParentBasedSampler must have a root sampler configured")),this._root=new H),this._remoteParentSampled=null!=(t=e.remoteParentSampled)?t:new H,this._remoteParentNotSampled=null!=(r=e.remoteParentNotSampled)?r:new V,this._localParentSampled=null!=(n=e.localParentSampled)?n:new H,this._localParentNotSampled=null!=(a=e.localParentNotSampled)?a:new V}return ParentBasedSampler.prototype.shouldSample=function(e,t,r,n,a,o){var i=l.trace.getSpanContext(e);return i&&(0,l.isSpanContextValid)(i)?i.isRemote?i.traceFlags&l.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,n,a,o):this._remoteParentNotSampled.shouldSample(e,t,r,n,a,o):i.traceFlags&l.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,r,n,a,o):this._localParentNotSampled.shouldSample(e,t,r,n,a,o):this._root.shouldSample(e,t,r,n,a,o)},ParentBasedSampler.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},ParentBasedSampler}(),F=function(){function TraceIdRatioBasedSampler(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(0xffffffff*this._ratio)}return TraceIdRatioBasedSampler.prototype.shouldSample=function(e,t){return{decision:(0,l.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?l.SamplingDecision.RECORD_AND_SAMPLED:l.SamplingDecision.NOT_RECORD}},TraceIdRatioBasedSampler.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},TraceIdRatioBasedSampler.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},TraceIdRatioBasedSampler.prototype._accumulate=function(e){for(var t=0,r=0;r<e.length/8;r++){var n=8*r;t=(t^parseInt(e.slice(n,n+8),16))>>>0}return t},TraceIdRatioBasedSampler}(),K=Function.prototype.toString,k=K.call(Object),W=overArg(Object.getPrototypeOf,Object),z=Object.prototype,Y=z.hasOwnProperty,Z=Symbol?Symbol.toStringTag:void 0,J=z.toString;function overArg(e,t){return function(r){return e(t(r))}}function isPlainObject(e){if(!isObjectLike(e)||"[object Object]"!==baseGetTag(e))return!1;var t=W(e);if(null===t)return!0;var r=Y.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&K.call(r)===k}function isObjectLike(e){return null!=e&&"object"==typeof e}function baseGetTag(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?getRawTag(e):objectToString(e)}function getRawTag(e){var t=Y.call(e,Z),r=e[Z],n=!1;try{e[Z]=void 0,n=!0}catch(e){}var a=J.call(e);return n&&(t?e[Z]=r:delete e[Z]),a}function objectToString(e){return J.call(e)}function merge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=mergeTwoObjects(r,e.shift(),0,n);return r}function takeValue(e){return isArray(e)?e.slice():e}function mergeTwoObjects(e,t,r,n){if(void 0===r&&(r=0),!(r>20)){if(r++,isPrimitive(e)||isPrimitive(t)||isFunction(t))a=takeValue(t);else if(isArray(e)){if(a=e.slice(),isArray(t))for(var a,o=0,i=t.length;o<i;o++)a.push(takeValue(t[o]));else if(isObject(t))for(var T=Object.keys(t),o=0,i=T.length;o<i;o++){var u=T[o];a[u]=takeValue(t[u])}}else if(isObject(e))if(isObject(t)){if(!shouldMerge(e,t))return t;a=Object.assign({},e);for(var T=Object.keys(t),o=0,i=T.length;o<i;o++){var u=T[o],l=t[u];if(isPrimitive(l))void 0===l?delete a[u]:a[u]=l;else{var s=a[u];if(wasObjectReferenced(e,u,n)||wasObjectReferenced(t,u,n))delete a[u];else{if(isObject(s)&&isObject(l)){var _=n.get(s)||[],c=n.get(l)||[];_.push({obj:e,key:u}),c.push({obj:t,key:u}),n.set(s,_),n.set(l,c)}a[u]=mergeTwoObjects(a[u],l,r,n)}}}}else a=t;return a}}function wasObjectReferenced(e,t,r){for(var n=r.get(e[t])||[],a=0,o=n.length;a<o;a++){var i=n[a];if(i.key===t&&i.obj===e)return!0}return!1}function isArray(e){return Array.isArray(e)}function isFunction(e){return"function"==typeof e}function isObject(e){return!isPrimitive(e)&&!isArray(e)&&!isFunction(e)&&"object"==typeof e}function isPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}function shouldMerge(e,t){return!!isPlainObject(e)&&!!isPlainObject(t)}var Q=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),$=function(e){function TimeoutError(t){var r=e.call(this,t)||this;return Object.setPrototypeOf(r,TimeoutError.prototype),r}return Q(TimeoutError,e),TimeoutError}(Error);function callWithTimeout(e,t){var r;return Promise.race([e,new Promise(function(e,n){r=setTimeout(function(){n(new $("Operation timed out."))},t)})]).then(function(e){return clearTimeout(r),e},function(e){throw clearTimeout(r),e})}var url_values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function urlMatches(e,t){return"string"==typeof t?e===t:!!e.match(t)}function isUrlIgnored(e,t){var r,n;if(!t)return!1;try{for(var a=url_values(t),o=a.next();!o.done;o=a.next()){var i=o.value;if(urlMatches(e,i))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1}function isWrapped(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var q=function(){function Deferred(){var e=this;this._promise=new Promise(function(t,r){e._resolve=t,e._reject=r})}return Object.defineProperty(Deferred.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),Deferred.prototype.resolve=function(e){this._resolve(e)},Deferred.prototype.reject=function(e){this._reject(e)},Deferred}(),callback_read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},__spreadArray=function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))},ee=function(){function BindOnceFuture(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new q}return Object.defineProperty(BindOnceFuture.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(BindOnceFuture.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),BindOnceFuture.prototype.call=function(){for(var e,t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,__spreadArray([this._that],callback_read(r),!1))).then(function(e){return t._deferred.resolve(e)},function(e){return t._deferred.reject(e)})}catch(e){this._deferred.reject(e)}}return this._deferred.promise},BindOnceFuture}(),et={getKeyPairs:getKeyPairs,serializeKeyPairs:serializeKeyPairs,parseKeyPairsIntoRecord:parseKeyPairsIntoRecord,parsePairKeyValue:parsePairKeyValue},er={_export:function(e,t){return new Promise(function(r){l.context.with(suppressTracing(l.context.active()),function(){e.export(t,function(e){r(e)})})})}};module.exports=u})();
|
|
1
|
+
(()=>{"use strict";var e,t,r,n,a,o,i,T={};T.d=(e,t)=>{for(var r in t)T.o(t,r)&&!T.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},T.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),T.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var u={};T.r(u),T.d(u,{baggageUtils:()=>et,hrTime:()=>hrTime,timeInputToHrTime:()=>timeInputToHrTime,W3CTraceContextPropagator:()=>X,callWithTimeout:()=>callWithTimeout,AlwaysOnSampler:()=>H,isTracingSuppressed:()=>isTracingSuppressed,AlwaysOffSampler:()=>V,loggingErrorHandler:()=>loggingErrorHandler,DEFAULT_ATTRIBUTE_COUNT_LIMIT:()=>y,deleteRPCMetadata:()=>deleteRPCMetadata,suppressTracing:()=>suppressTracing,RPCType:()=>i,RandomIdGenerator:()=>RandomIdGenerator_RandomIdGenerator,setRPCMetadata:()=>setRPCMetadata,unrefTimer:()=>unrefTimer,hrTimeToMilliseconds:()=>hrTimeToMilliseconds,TRACE_PARENT_HEADER:()=>D,unsuppressTracing:()=>unsuppressTracing,globalErrorHandler:()=>globalErrorHandler,_globalThis:()=>R,getEnvWithoutDefaults:()=>getEnvWithoutDefaults,ParentBasedSampler:()=>G,millisToHrTime:()=>millisToHrTime,isTimeInputHrTime:()=>isTimeInputHrTime,otperformance:()=>p,internal:()=>er,urlMatches:()=>urlMatches,BindOnceFuture:()=>ee,DEFAULT_ENVIRONMENT:()=>v,SDK_INFO:()=>m,isWrapped:()=>isWrapped,isAttributeKey:()=>isAttributeKey,TraceState:()=>B,hexToBase64:()=>hexToBase64,TRACE_STATE_HEADER:()=>w,getEnv:()=>getEnv,getTimeOrigin:()=>getTimeOrigin,TraceIdRatioBasedSampler:()=>F,hrTimeDuration:()=>hrTimeDuration,DEFAULT_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:()=>h,isTimeInput:()=>isTimeInput,hexToBinary:()=>hexToBinary,DEFAULT_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:()=>A,parseTraceParent:()=>parseTraceParent,isUrlIgnored:()=>isUrlIgnored,parseEnvironment:()=>parseEnvironment,setGlobalErrorHandler:()=>setGlobalErrorHandler,DEFAULT_ATTRIBUTE_VALUE_LENGTH_LIMIT:()=>P,isAttributeValue:()=>isAttributeValue,CompositePropagator:()=>C,hrTimeToMicroseconds:()=>hrTimeToMicroseconds,AnchoredClock:()=>E,TracesSamplerValues:()=>o,ExportResultCode:()=>n,hrTimeToNanoseconds:()=>hrTimeToNanoseconds,merge:()=>merge,TimeoutError:()=>$,W3CBaggagePropagator:()=>c,addHrTimes:()=>addHrTimes,getRPCMetadata:()=>getRPCMetadata,sanitizeAttributes:()=>sanitizeAttributes,hrTimeToTimeStamp:()=>hrTimeToTimeStamp,VERSION:()=>d});let l=require("@opentelemetry/api");var s=(0,l.createContextKey)("OpenTelemetry SDK Context Key SUPPRESS_TRACING");function suppressTracing(e){return e.setValue(s,!0)}function unsuppressTracing(e){return e.deleteValue(s)}function isTracingSuppressed(e){return!0===e.getValue(s)}var _="baggage",__read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};function serializeKeyPairs(e){return e.reduce(function(e,t){var r=""+e+(""!==e?",":"")+t;return r.length>8192?e:r},"")}function getKeyPairs(e){return e.getAllEntries().map(function(e){var t=__read(e,2),r=t[0],n=t[1],a=encodeURIComponent(r)+"="+encodeURIComponent(n.value);return void 0!==n.metadata&&(a+=";"+n.metadata.toString()),a})}function parsePairKeyValue(e){var t,r=e.split(";");if(!(r.length<=0)){var n=r.shift();if(n){var a=n.indexOf("=");if(!(a<=0)){var o=decodeURIComponent(n.substring(0,a).trim()),i=decodeURIComponent(n.substring(a+1).trim());return r.length>0&&(t=(0,l.baggageEntryMetadataFromString)(r.join(";"))),{key:o,value:i,metadata:t}}}}}function parseKeyPairsIntoRecord(e){return"string"!=typeof e||0===e.length?{}:e.split(",").map(function(e){return parsePairKeyValue(e)}).filter(function(e){return void 0!==e&&e.value.length>0}).reduce(function(e,t){return e[t.key]=t.value,e},{})}var c=function(){function W3CBaggagePropagator(){}return W3CBaggagePropagator.prototype.inject=function(e,t,r){var n=l.propagation.getBaggage(e);if(!(!n||isTracingSuppressed(e))){var a=serializeKeyPairs(getKeyPairs(n).filter(function(e){return e.length<=4096}).slice(0,180));a.length>0&&r.set(t,_,a)}},W3CBaggagePropagator.prototype.extract=function(e,t,r){var n=r.get(t,_),a=Array.isArray(n)?n.join(","):n;if(!a)return e;var o={};return 0===a.length||(a.split(",").forEach(function(e){var t=parsePairKeyValue(e);if(t){var r={value:t.value};t.metadata&&(r.metadata=t.metadata),o[t.key]=r}}),0===Object.entries(o).length)?e:l.propagation.setBaggage(e,l.propagation.createBaggage(o))},W3CBaggagePropagator.prototype.fields=function(){return[_]},W3CBaggagePropagator}(),E=function(){function AnchoredClock(e,t){this._monotonicClock=t,this._epochMillis=e.now(),this._performanceMillis=t.now()}return AnchoredClock.prototype.now=function(){var e=this._monotonicClock.now()-this._performanceMillis;return this._epochMillis+e},AnchoredClock}(),__values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},attributes_read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i};function sanitizeAttributes(e){var t,r,n={};if("object"!=typeof e||null==e)return n;try{for(var a=__values(Object.entries(e)),o=a.next();!o.done;o=a.next()){var i=attributes_read(o.value,2),T=i[0],u=i[1];if(!isAttributeKey(T)){l.diag.warn("Invalid attribute key: "+T);continue}if(!isAttributeValue(u)){l.diag.warn("Invalid attribute value set for key: "+T);continue}Array.isArray(u)?n[T]=u.slice():n[T]=u}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return n}function isAttributeKey(e){return"string"==typeof e&&e.length>0}function isAttributeValue(e){return null==e||(Array.isArray(e)?isHomogeneousAttributeValueArray(e):isValidPrimitiveAttributeValue(e))}function isHomogeneousAttributeValueArray(e){try{for(var t,r,n,a=__values(e),o=a.next();!o.done;o=a.next()){var i=o.value;if(null!=i){if(!n){if(isValidPrimitiveAttributeValue(i)){n=typeof i;continue}return!1}if(typeof i!==n)return!1}}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!0}function isValidPrimitiveAttributeValue(e){switch(typeof e){case"number":case"boolean":case"string":return!0}return!1}function loggingErrorHandler(){return function(e){l.diag.error(stringifyException(e))}}function stringifyException(e){return"string"==typeof e?e:JSON.stringify(flattenException(e))}function flattenException(e){for(var t={},r=e;null!==r;)Object.getOwnPropertyNames(r).forEach(function(e){if(!t[e]){var n=r[e];n&&(t[e]=String(n))}}),r=Object.getPrototypeOf(r);return t}var f=loggingErrorHandler();function setGlobalErrorHandler(e){f=e}function globalErrorHandler(e){try{f(e)}catch(e){}}var p=require("perf_hooks").performance;function millisToHrTime(e){return[Math.trunc(e/1e3),Math.round(e%1e3*1e6)]}function getTimeOrigin(){var e=p.timeOrigin;return"number"!=typeof e&&(e=p.timing&&p.timing.fetchStart),e}function hrTime(e){return addHrTimes(millisToHrTime(getTimeOrigin()),millisToHrTime("number"==typeof e?e:p.now()))}function timeInputToHrTime(e){if(isTimeInputHrTime(e))return e;if("number"==typeof e)if(e<getTimeOrigin())return hrTime(e);else return millisToHrTime(e);if(e instanceof Date)return millisToHrTime(e.getTime());throw TypeError("Invalid input type")}function hrTimeDuration(e,t){var r=t[0]-e[0],n=t[1]-e[1];return n<0&&(r-=1,n+=1e9),[r,n]}function hrTimeToTimeStamp(e){var t=""+"0".repeat(9)+e[1]+"Z",r=t.substring(t.length-9-1);return new Date(1e3*e[0]).toISOString().replace("000Z",r)}function hrTimeToNanoseconds(e){return 1e9*e[0]+e[1]}function hrTimeToMilliseconds(e){return 1e3*e[0]+e[1]/1e6}function hrTimeToMicroseconds(e){return 1e6*e[0]+e[1]/1e3}function isTimeInputHrTime(e){return Array.isArray(e)&&2===e.length&&"number"==typeof e[0]&&"number"==typeof e[1]}function isTimeInput(e){return isTimeInputHrTime(e)||"number"==typeof e||e instanceof Date}function addHrTimes(e,t){var r=[e[0]+t[0],e[1]+t[1]];return r[1]>=1e9&&(r[1]-=1e9,r[0]+=1),r}function intValue(e){return e>=48&&e<=57?e-48:e>=97&&e<=102?e-87:e-55}function hexToBinary(e){for(var t=new Uint8Array(e.length/2),r=0,n=0;n<e.length;n+=2){var a=intValue(e.charCodeAt(n)),o=intValue(e.charCodeAt(n+1));t[r++]=a<<4|o}return t}(e=n||(n={}))[e.SUCCESS=0]="SUCCESS",e[e.FAILED=1]="FAILED";var RandomIdGenerator_RandomIdGenerator=function(){this.generateTraceId=getIdGenerator(16),this.generateSpanId=getIdGenerator(8)},O=Buffer.allocUnsafe(16);function getIdGenerator(e){return function(){for(var t=0;t<e/4;t++)O.writeUInt32BE(0x100000000*Math.random()>>>0,4*t);for(var t=0;t<e;t++)if(O[t]>0)break;else t===e-1&&(O[e-1]=1);return O.toString("hex",0,e)}}var d="1.30.1",m=((a={})["telemetry.sdk.name"]="opentelemetry",a["process.runtime.name"]="node",a["telemetry.sdk.language"]="nodejs",a["telemetry.sdk.version"]=d,a),R="object"==typeof globalThis?globalThis:global;(t=o||(o={})).AlwaysOff="always_off",t.AlwaysOn="always_on",t.ParentBasedAlwaysOff="parentbased_always_off",t.ParentBasedAlwaysOn="parentbased_always_on",t.ParentBasedTraceIdRatio="parentbased_traceidratio",t.TraceIdRatio="traceidratio";var g=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(e){return g.indexOf(e)>-1}var S=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(e){return S.indexOf(e)>-1}var L=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function isEnvVarAList(e){return L.indexOf(e)>-1}var P=1/0,y=128,h=128,A=128,v={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:l.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:P,OTEL_ATTRIBUTE_COUNT_LIMIT:y,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:P,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:y,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:P,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:y,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:h,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:A,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:o.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function parseBoolean(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function parseNumber(e,t,r,n,a){if(void 0===n&&(n=-1/0),void 0===a&&(a=1/0),void 0!==r[e]){var o=Number(r[e]);isNaN(o)||(o<n?t[e]=n:o>a?t[e]=a:t[e]=o)}}function parseStringList(e,t,r,n){void 0===n&&(n=",");var a=r[e];"string"==typeof a&&(t[e]=a.split(n).map(function(e){return e.trim()}))}var I={ALL:l.DiagLogLevel.ALL,VERBOSE:l.DiagLogLevel.VERBOSE,DEBUG:l.DiagLogLevel.DEBUG,INFO:l.DiagLogLevel.INFO,WARN:l.DiagLogLevel.WARN,ERROR:l.DiagLogLevel.ERROR,NONE:l.DiagLogLevel.NONE};function setLogLevelFromEnv(e,t,r){var n=r[e];if("string"==typeof n){var a=I[n.toUpperCase()];null!=a&&(t[e]=a)}}function parseEnvironment(e){var t={};for(var r in v)if("OTEL_LOG_LEVEL"===r)setLogLevelFromEnv(r,t,e);else if(isEnvVarABoolean(r))parseBoolean(r,t,e);else if(isEnvVarANumber(r))parseNumber(r,t,e);else if(isEnvVarAList(r))parseStringList(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}function getEnv(){return Object.assign({},v,parseEnvironment(process.env))}function getEnvWithoutDefaults(){return parseEnvironment(process.env)}function hexToBase64(e){return Buffer.from(hexToBinary(e)).toString("base64")}function unrefTimer(e){e.unref()}var composite_values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},C=function(){function CompositePropagator(e){var t;void 0===e&&(e={}),this._propagators=null!=(t=e.propagators)?t:[],this._fields=Array.from(new Set(this._propagators.map(function(e){return"function"==typeof e.fields?e.fields():[]}).reduce(function(e,t){return e.concat(t)},[])))}return CompositePropagator.prototype.inject=function(e,t,r){var n,a;try{for(var o=composite_values(this._propagators),i=o.next();!i.done;i=o.next()){var T=i.value;try{T.inject(e,t,r)}catch(e){l.diag.warn("Failed to inject with "+T.constructor.name+". Err: "+e.message)}}}catch(e){n={error:e}}finally{try{i&&!i.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}},CompositePropagator.prototype.extract=function(e,t,r){return this._propagators.reduce(function(e,n){try{return n.extract(e,t,r)}catch(e){l.diag.warn("Failed to extract with "+n.constructor.name+". Err: "+e.message)}return e},e)},CompositePropagator.prototype.fields=function(){return this._fields.slice()},CompositePropagator}(),b="[_0-9a-z-*/]",N=RegExp("^(?:[a-z]"+b+"{0,255}|"+("[a-z0-9]"+b+"{0,240}@[a-z]")+b+"{0,13})$"),M=/^[ -~]{0,255}[!-~]$/,U=/,|=/;function validateKey(e){return N.test(e)}function validateValue(e){return M.test(e)&&!U.test(e)}var B=function(){function TraceState(e){this._internalState=new Map,e&&this._parse(e)}return TraceState.prototype.set=function(e,t){var r=this._clone();return r._internalState.has(e)&&r._internalState.delete(e),r._internalState.set(e,t),r},TraceState.prototype.unset=function(e){var t=this._clone();return t._internalState.delete(e),t},TraceState.prototype.get=function(e){return this._internalState.get(e)},TraceState.prototype.serialize=function(){var e=this;return this._keys().reduce(function(t,r){return t.push(r+"="+e.get(r)),t},[]).join(",")},TraceState.prototype._parse=function(e){!(e.length>512)&&(this._internalState=e.split(",").reverse().reduce(function(e,t){var r=t.trim(),n=r.indexOf("=");if(-1!==n){var a=r.slice(0,n),o=r.slice(n+1,t.length);validateKey(a)&&validateValue(o)&&e.set(a,o)}return e},new Map),this._internalState.size>32&&(this._internalState=new Map(Array.from(this._internalState.entries()).reverse().slice(0,32))))},TraceState.prototype._keys=function(){return Array.from(this._internalState.keys()).reverse()},TraceState.prototype._clone=function(){var e=new TraceState;return e._internalState=new Map(this._internalState),e},TraceState}(),D="traceparent",w="tracestate",j=RegExp("^\\s?((?!ff)[\\da-f]{2})-((?![0]{32})[\\da-f]{32})-((?![0]{16})[\\da-f]{16})-([\\da-f]{2})(-.*)?\\s?$");function parseTraceParent(e){var t=j.exec(e);return!t||"00"===t[1]&&t[5]?null:{traceId:t[2],spanId:t[3],traceFlags:parseInt(t[4],16)}}var X=function(){function W3CTraceContextPropagator(){}return W3CTraceContextPropagator.prototype.inject=function(e,t,r){var n=l.trace.getSpanContext(e);if(!(!n||isTracingSuppressed(e))&&(0,l.isSpanContextValid)(n)){var a="00-"+n.traceId+"-"+n.spanId+"-0"+Number(n.traceFlags||l.TraceFlags.NONE).toString(16);r.set(t,D,a),n.traceState&&r.set(t,w,n.traceState.serialize())}},W3CTraceContextPropagator.prototype.extract=function(e,t,r){var n=r.get(t,D);if(!n)return e;var a=Array.isArray(n)?n[0]:n;if("string"!=typeof a)return e;var o=parseTraceParent(a);if(!o)return e;o.isRemote=!0;var i=r.get(t,w);if(i){var T=Array.isArray(i)?i.join(","):i;o.traceState=new B("string"==typeof T?T:void 0)}return l.trace.setSpanContext(e,o)},W3CTraceContextPropagator.prototype.fields=function(){return[D,w]},W3CTraceContextPropagator}(),x=(0,l.createContextKey)("OpenTelemetry SDK Context Key RPC_METADATA");function setRPCMetadata(e,t){return e.setValue(x,t)}function deleteRPCMetadata(e){return e.deleteValue(x)}function getRPCMetadata(e){return e.getValue(x)}(i||(i={})).HTTP="http";var V=function(){function AlwaysOffSampler(){}return AlwaysOffSampler.prototype.shouldSample=function(){return{decision:l.SamplingDecision.NOT_RECORD}},AlwaysOffSampler.prototype.toString=function(){return"AlwaysOffSampler"},AlwaysOffSampler}(),H=function(){function AlwaysOnSampler(){}return AlwaysOnSampler.prototype.shouldSample=function(){return{decision:l.SamplingDecision.RECORD_AND_SAMPLED}},AlwaysOnSampler.prototype.toString=function(){return"AlwaysOnSampler"},AlwaysOnSampler}(),G=function(){function ParentBasedSampler(e){var t,r,n,a;this._root=e.root,this._root||(globalErrorHandler(Error("ParentBasedSampler must have a root sampler configured")),this._root=new H),this._remoteParentSampled=null!=(t=e.remoteParentSampled)?t:new H,this._remoteParentNotSampled=null!=(r=e.remoteParentNotSampled)?r:new V,this._localParentSampled=null!=(n=e.localParentSampled)?n:new H,this._localParentNotSampled=null!=(a=e.localParentNotSampled)?a:new V}return ParentBasedSampler.prototype.shouldSample=function(e,t,r,n,a,o){var i=l.trace.getSpanContext(e);return i&&(0,l.isSpanContextValid)(i)?i.isRemote?i.traceFlags&l.TraceFlags.SAMPLED?this._remoteParentSampled.shouldSample(e,t,r,n,a,o):this._remoteParentNotSampled.shouldSample(e,t,r,n,a,o):i.traceFlags&l.TraceFlags.SAMPLED?this._localParentSampled.shouldSample(e,t,r,n,a,o):this._localParentNotSampled.shouldSample(e,t,r,n,a,o):this._root.shouldSample(e,t,r,n,a,o)},ParentBasedSampler.prototype.toString=function(){return"ParentBased{root="+this._root.toString()+", remoteParentSampled="+this._remoteParentSampled.toString()+", remoteParentNotSampled="+this._remoteParentNotSampled.toString()+", localParentSampled="+this._localParentSampled.toString()+", localParentNotSampled="+this._localParentNotSampled.toString()+"}"},ParentBasedSampler}(),F=function(){function TraceIdRatioBasedSampler(e){void 0===e&&(e=0),this._ratio=e,this._ratio=this._normalize(e),this._upperBound=Math.floor(0xffffffff*this._ratio)}return TraceIdRatioBasedSampler.prototype.shouldSample=function(e,t){return{decision:(0,l.isValidTraceId)(t)&&this._accumulate(t)<this._upperBound?l.SamplingDecision.RECORD_AND_SAMPLED:l.SamplingDecision.NOT_RECORD}},TraceIdRatioBasedSampler.prototype.toString=function(){return"TraceIdRatioBased{"+this._ratio+"}"},TraceIdRatioBasedSampler.prototype._normalize=function(e){return"number"!=typeof e||isNaN(e)?0:e>=1?1:e<=0?0:e},TraceIdRatioBasedSampler.prototype._accumulate=function(e){for(var t=0,r=0;r<e.length/8;r++){var n=8*r;t=(t^parseInt(e.slice(n,n+8),16))>>>0}return t},TraceIdRatioBasedSampler}(),K=Function.prototype.toString,k=K.call(Object),W=overArg(Object.getPrototypeOf,Object),z=Object.prototype,Y=z.hasOwnProperty,Z=Symbol?Symbol.toStringTag:void 0,J=z.toString;function overArg(e,t){return function(r){return e(t(r))}}function isPlainObject(e){if(!isObjectLike(e)||"[object Object]"!==baseGetTag(e))return!1;var t=W(e);if(null===t)return!0;var r=Y.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&K.call(r)===k}function isObjectLike(e){return null!=e&&"object"==typeof e}function baseGetTag(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Z&&Z in Object(e)?getRawTag(e):objectToString(e)}function getRawTag(e){var t=Y.call(e,Z),r=e[Z],n=!1;try{e[Z]=void 0,n=!0}catch(e){}var a=J.call(e);return n&&(t?e[Z]=r:delete e[Z]),a}function objectToString(e){return J.call(e)}function merge(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r=e.shift(),n=new WeakMap;e.length>0;)r=mergeTwoObjects(r,e.shift(),0,n);return r}function takeValue(e){return isArray(e)?e.slice():e}function mergeTwoObjects(e,t,r,n){if(void 0===r&&(r=0),!(r>20)){if(r++,isPrimitive(e)||isPrimitive(t)||isFunction(t))a=takeValue(t);else if(isArray(e)){if(a=e.slice(),isArray(t))for(var a,o=0,i=t.length;o<i;o++)a.push(takeValue(t[o]));else if(isObject(t))for(var T=Object.keys(t),o=0,i=T.length;o<i;o++){var u=T[o];a[u]=takeValue(t[u])}}else if(isObject(e))if(isObject(t)){if(!shouldMerge(e,t))return t;a=Object.assign({},e);for(var T=Object.keys(t),o=0,i=T.length;o<i;o++){var u=T[o],l=t[u];if(isPrimitive(l))void 0===l?delete a[u]:a[u]=l;else{var s=a[u];if(wasObjectReferenced(e,u,n)||wasObjectReferenced(t,u,n))delete a[u];else{if(isObject(s)&&isObject(l)){var _=n.get(s)||[],c=n.get(l)||[];_.push({obj:e,key:u}),c.push({obj:t,key:u}),n.set(s,_),n.set(l,c)}a[u]=mergeTwoObjects(a[u],l,r,n)}}}}else a=t;return a}}function wasObjectReferenced(e,t,r){for(var n=r.get(e[t])||[],a=0,o=n.length;a<o;a++){var i=n[a];if(i.key===t&&i.obj===e)return!0}return!1}function isArray(e){return Array.isArray(e)}function isFunction(e){return"function"==typeof e}function isObject(e){return!isPrimitive(e)&&!isArray(e)&&!isFunction(e)&&"object"==typeof e}function isPrimitive(e){return"string"==typeof e||"number"==typeof e||"boolean"==typeof e||void 0===e||e instanceof Date||e instanceof RegExp||null===e}function shouldMerge(e,t){return!!isPlainObject(e)&&!!isPlainObject(t)}var Q=(r=function(e,t){return(r=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function __(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),$=function(e){function TimeoutError(t){var r=e.call(this,t)||this;return Object.setPrototypeOf(r,TimeoutError.prototype),r}return Q(TimeoutError,e),TimeoutError}(Error);function callWithTimeout(e,t){var r;return Promise.race([e,new Promise(function(e,n){r=setTimeout(function(){n(new $("Operation timed out."))},t)})]).then(function(e){return clearTimeout(r),e},function(e){throw clearTimeout(r),e})}var url_values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function urlMatches(e,t){return"string"==typeof t?e===t:!!e.match(t)}function isUrlIgnored(e,t){var r,n;if(!t)return!1;try{for(var a=url_values(t),o=a.next();!o.done;o=a.next()){var i=o.value;if(urlMatches(e,i))return!0}}catch(e){r={error:e}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(r)throw r.error}}return!1}function isWrapped(e){return"function"==typeof e&&"function"==typeof e.__original&&"function"==typeof e.__unwrap&&!0===e.__wrapped}var q=function(){function Deferred(){var e=this;this._promise=new Promise(function(t,r){e._resolve=t,e._reject=r})}return Object.defineProperty(Deferred.prototype,"promise",{get:function(){return this._promise},enumerable:!1,configurable:!0}),Deferred.prototype.resolve=function(e){this._resolve(e)},Deferred.prototype.reject=function(e){this._reject(e)},Deferred}(),callback_read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,a,o=r.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(n=o.next()).done;)i.push(n.value)}catch(e){a={error:e}}finally{try{n&&!n.done&&(r=o.return)&&r.call(o)}finally{if(a)throw a.error}}return i},__spreadArray=function(e,t,r){if(r||2==arguments.length)for(var n,a=0,o=t.length;a<o;a++)!n&&a in t||(n||(n=Array.prototype.slice.call(t,0,a)),n[a]=t[a]);return e.concat(n||Array.prototype.slice.call(t))},ee=function(){function BindOnceFuture(e,t){this._callback=e,this._that=t,this._isCalled=!1,this._deferred=new q}return Object.defineProperty(BindOnceFuture.prototype,"isCalled",{get:function(){return this._isCalled},enumerable:!1,configurable:!0}),Object.defineProperty(BindOnceFuture.prototype,"promise",{get:function(){return this._deferred.promise},enumerable:!1,configurable:!0}),BindOnceFuture.prototype.call=function(){for(var e,t=this,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];if(!this._isCalled){this._isCalled=!0;try{Promise.resolve((e=this._callback).call.apply(e,__spreadArray([this._that],callback_read(r),!1))).then(function(e){return t._deferred.resolve(e)},function(e){return t._deferred.reject(e)})}catch(e){this._deferred.reject(e)}}return this._deferred.promise},BindOnceFuture}(),et={getKeyPairs:getKeyPairs,serializeKeyPairs:serializeKeyPairs,parseKeyPairsIntoRecord:parseKeyPairsIntoRecord,parsePairKeyValue:parsePairKeyValue},er={_export:function(e,t){return new Promise(function(r){l.context.with(suppressTracing(l.context.active()),function(){e.export(t,function(e){r(e)})})})}};module.exports=u})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js":function(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js":function(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("fs"),o=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),i=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function getMachineId(){return __awaiter(this,void 0,void 0,function(){var e,t;return __generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.promises.readFile("/etc/hostid",{encoding:"utf8"})];case 1:return[2,r.sent().trim()];case 2:return e=r.sent(),i.diag.debug("error reading machine id: "+e),[3,3];case 3:return r.trys.push([3,5,,6]),[4,(0,o.q)("kenv -q smbios.system.uuid")];case 4:return[2,r.sent().stdout.trim()];case 5:return t=r.sent(),i.diag.debug("error reading machine id: "+t),[3,6];case 6:return[2,""]}})})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js":function(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),o=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function getMachineId(){return __awaiter(this,void 0,void 0,function(){var e,t,r;return __generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,(0,n.q)('ioreg -rd1 -c "IOPlatformExpertDevice"')];case 1:if(!(e=i.sent().stdout.split("\n").find(function(e){return e.includes("IOPlatformUUID")})))return[2,""];if(2===(t=e.split('" = "')).length)return[2,t[1].slice(0,-1)];return[3,3];case 2:return r=i.sent(),o.diag.debug("error reading machine id: "+r),[3,3];case 3:return[2,""]}})})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js":function(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("fs"),o=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},__values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function getMachineId(){return __awaiter(this,void 0,void 0,function(){var e,t,r,i,c,a,s;return __generator(this,function(u){switch(u.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],u.label=1;case 1:u.trys.push([1,8,9,10]),r=(t=__values(e)).next(),u.label=2;case 2:if(r.done)return[3,7];i=r.value,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,u.sent().trim()];case 5:return c=u.sent(),o.diag.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return a={error:u.sent()},[3,10];case 9:try{r&&!r.done&&(s=t.return)&&s.call(t)}finally{if(a)throw a.error}return[7];case 10:return[2,""]}})})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js":function(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function getMachineId(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return n.diag.debug("could not read machine-id: unsupported platform"),[2,""]})})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js":function(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("process"),o=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),i=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function getMachineId(){return __awaiter(this,void 0,void 0,function(){var e,t,r,c;return __generator(this,function(a){switch(a.label){case 0:e="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",t="%windir%\\System32\\REG.exe","ia32"===n.arch&&"PROCESSOR_ARCHITEW6432"in n.env&&(t="%windir%\\sysnative\\cmd.exe /c "+t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,(0,o.q)(t+" "+e)];case 2:if(2===(r=a.sent().stdout.split("REG_SZ")).length)return[2,r[1].trim()];return[3,4];case 3:return c=a.sent(),i.diag.debug("error reading machine id: "+c),[3,4];case 4:return[2,""]}})})}},"@opentelemetry/api":function(e){e.exports=require("@opentelemetry/api")},fs:function(e){e.exports=require("fs")},process:function(e){e.exports=require("process")}},t={};function __webpack_require__(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{__webpack_require__.r(r),__webpack_require__.d(r,{envDetector:()=>S,envDetectorSync:()=>L,hostDetector:()=>g,Resource:()=>T,osDetector:()=>I,detectResources:()=>detectResources,osDetectorSync:()=>m,browserDetectorSync:()=>d,processDetectorSync:()=>w,detectResourcesSync:()=>detectResourcesSync,browserDetector:()=>p,processDetector:()=>N,defaultServiceName:()=>defaultServiceName,hostDetectorSync:()=>P,serviceInstanceIdDetectorSync:()=>C});var e,t,n,o,i=__webpack_require__("@opentelemetry/api"),c="process.runtime.name",a="process.runtime.version",s="process.runtime.description",u="service.name",_="telemetry.sdk.name",l="telemetry.sdk.language",E="telemetry.sdk.version",f=((t={})[_]="opentelemetry",t[c]="node",t[l]="nodejs",t[E]="1.30.1",t);function defaultServiceName(){return"unknown_service:"+process.argv0}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},__read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c},T=function(){function Resource(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return i.diag.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return Resource.empty=function(){return Resource.EMPTY},Resource.default=function(){var e;return new Resource(((e={})[u]=defaultServiceName(),e[l]=f[l],e[_]=f[_],e[E]=f[E],e))},Object.defineProperty(Resource.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&i.diag.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),Resource.prototype.waitForAsyncAttributes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})})},Resource.prototype.merge=function(e){var t,r=this;if(!e)return this;var n=__assign(__assign({},this._syncAttributes),null!=(t=e._syncAttributes)?t:e.attributes);return this._asyncAttributesPromise||e._asyncAttributesPromise?new Resource(n,Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(t){var n,o=__read(t,2),i=o[0],c=o[1];return __assign(__assign(__assign(__assign({},r._syncAttributes),i),null!=(n=e._syncAttributes)?n:e.attributes),c)})):new Resource(n)},Resource.EMPTY=new Resource({}),Resource}(),BrowserDetectorSync_assign=function(){return(BrowserDetectorSync_assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},d=new(function(){function BrowserDetectorSync(){}return BrowserDetectorSync.prototype.detect=function(e){if("undefined"==typeof navigator||(null==(n=null==(r=global.process)?void 0:r.versions)?void 0:n.node)!==void 0||(null==(o=global.Bun)?void 0:o.version)!==void 0)return T.empty();var t,r,n,o,i=((t={})[c]="browser",t[s]="Web Browser",t[a]=navigator.userAgent,t);return this._getResourceAttributes(i,e)},BrowserDetectorSync.prototype._getResourceAttributes=function(e,t){return""===e[a]?(i.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),T.empty()):new T(BrowserDetectorSync_assign({},e))},BrowserDetectorSync}()),p=new(function(){function BrowserDetector(){}return BrowserDetector.prototype.detect=function(e){return Promise.resolve(d.detect(e))},BrowserDetector}());(e=n||(n={})).AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio";var O=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(e){return O.indexOf(e)>-1}var y=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(e){return y.indexOf(e)>-1}var b=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function isEnvVarAList(e){return b.indexOf(e)>-1}var h=1/0,R={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:i.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:h,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:h,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:h,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:n.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function parseBoolean(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function parseNumber(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(i<n?t[e]=n:i>o?t[e]=o:t[e]=i)}}function parseStringList(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var v={ALL:i.DiagLogLevel.ALL,VERBOSE:i.DiagLogLevel.VERBOSE,DEBUG:i.DiagLogLevel.DEBUG,INFO:i.DiagLogLevel.INFO,WARN:i.DiagLogLevel.WARN,ERROR:i.DiagLogLevel.ERROR,NONE:i.DiagLogLevel.NONE};function setLogLevelFromEnv(e,t,r){var n=r[e];if("string"==typeof n){var o=v[n.toUpperCase()];null!=o&&(t[e]=o)}}function environment_parseEnvironment(e){var t={};for(var r in R)if("OTEL_LOG_LEVEL"===r)setLogLevelFromEnv(r,t,e);else if(isEnvVarABoolean(r))parseBoolean(r,t,e);else if(isEnvVarANumber(r))parseNumber(r,t,e);else if(isEnvVarAList(r))parseStringList(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}function getEnv(){return Object.assign({},R,environment_parseEnvironment(process.env))}var __values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},EnvDetectorSync_read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c},L=new(function(){function EnvDetectorSync(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return EnvDetectorSync.prototype.detect=function(e){var t={},r=getEnv(),n=r.OTEL_RESOURCE_ATTRIBUTES,o=r.OTEL_SERVICE_NAME;if(n)try{var c=this._parseResourceAttributes(n);Object.assign(t,c)}catch(e){i.diag.debug("EnvDetector failed: "+e.message)}return o&&(t[u]=o),new T(t)},EnvDetectorSync.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=__values(o),c=i.next();!c.done;c=i.next()){var a=c.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===a.length){var s=EnvDetectorSync_read(a,2),u=s[0],_=s[1];if(u=u.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(u))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[u]=decodeURIComponent(_)}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},EnvDetectorSync.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},EnvDetectorSync.prototype._isBaggageOctetString=function(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<33||44===r||59===r||92===r||r>126)return!1}return!0},EnvDetectorSync.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},EnvDetectorSync}()),S=new(function(){function EnvDetector(){}return EnvDetector.prototype.detect=function(e){return Promise.resolve(L.detect(e))},EnvDetector}());let A=require("os");var normalizeArch=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},normalizeType=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(__webpack_require__("process").platform){case"darwin":o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js").D;break;case"linux":o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js").D;break;case"freebsd":o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js").D;break;case"win32":o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js").D;break;default:o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js").D}var P=new(function(){function HostDetectorSync(){}return HostDetectorSync.prototype.detect=function(e){var t;return new T(((t={})["host.name"]=(0,A.hostname)(),t["host.arch"]=normalizeArch((0,A.arch)()),t),this._getAsyncAttributes())},HostDetectorSync.prototype._getAsyncAttributes=function(){return o().then(function(e){var t={};return e&&(t["host.id"]=e),t})},HostDetectorSync}()),g=new(function(){function HostDetector(){}return HostDetector.prototype.detect=function(e){return Promise.resolve(P.detect(e))},HostDetector}()),m=new(function(){function OSDetectorSync(){}return OSDetectorSync.prototype.detect=function(e){var t;return new T(((t={})["os.type"]=normalizeType((0,A.platform)()),t["os.version"]=(0,A.release)(),t))},OSDetectorSync}()),I=new(function(){function OSDetector(){}return OSDetector.prototype.detect=function(e){return Promise.resolve(m.detect(e))},OSDetector}()),ProcessDetectorSync_read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c},__spreadArray=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},w=new(function(){function ProcessDetectorSync(){}return ProcessDetectorSync.prototype.detect=function(e){var t,r=((t={})["process.pid"]=process.pid,t["process.executable.name"]=process.title,t["process.executable.path"]=process.execPath,t["process.command_args"]=__spreadArray(__spreadArray([process.argv[0]],ProcessDetectorSync_read(process.execArgv),!1),ProcessDetectorSync_read(process.argv.slice(1)),!1),t[a]=process.versions.node,t[c]="nodejs",t[s]="Node.js",t);process.argv.length>1&&(r["process.command"]=process.argv[1]);try{var n=A.userInfo();r["process.owner"]=n.username}catch(e){i.diag.debug("error obtaining process owner: "+e)}return new T(r)},ProcessDetectorSync}()),N=new(function(){function ProcessDetector(){}return ProcessDetector.prototype.detect=function(e){return Promise.resolve(w.detect(e))},ProcessDetector}());let D=require("crypto");var C=new(function(){function ServiceInstanceIdDetectorSync(){}return ServiceInstanceIdDetectorSync.prototype.detect=function(e){var t;return new T(((t={})["service.instance.id"]=(0,D.randomUUID)(),t))},ServiceInstanceIdDetectorSync}()),detect_resources_awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},detect_resources_generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},detectResources=function(e){return void 0===e&&(e={}),detect_resources_awaiter(void 0,void 0,void 0,function(){var t;return detect_resources_generator(this,function(r){switch(r.label){case 0:return[4,Promise.all((e.detectors||[]).map(function(t){return detect_resources_awaiter(void 0,void 0,void 0,function(){var r,n;return detect_resources_generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,t.detect(e)];case 1:return r=o.sent(),i.diag.debug(t.constructor.name+" found resource.",r),[2,r];case 2:return n=o.sent(),i.diag.debug(t.constructor.name+" failed: "+n.message),[2,T.empty()];case 3:return[2]}})})}))];case 1:return logResources(t=r.sent()),[2,t.reduce(function(e,t){return e.merge(t)},T.empty())]}})})},detectResourcesSync=function(e){void 0===e&&(e={});var t,r=(null!=(t=e.detectors)?t:[]).map(function(t){try{var r,n=t.detect(e);return(r=null!==n&&"object"==typeof n&&"function"==typeof n.then?new T({},detect_resources_awaiter(void 0,void 0,void 0,function(){var e,t;return detect_resources_generator(this,function(r){switch(r.label){case 0:return[4,n];case 1:return e=r.sent(),[4,null==(t=e.waitForAsyncAttributes)?void 0:t.call(e)];case 2:return r.sent(),[2,e.attributes]}})})):n).waitForAsyncAttributes?r.waitForAsyncAttributes().then(function(){return i.diag.debug(t.constructor.name+" found resource.",r)}):i.diag.debug(t.constructor.name+" found resource.",r),r}catch(e){return i.diag.error(t.constructor.name+" failed: "+e.message),T.empty()}}),n=r.reduce(function(e,t){return e.merge(t)},T.empty());return n.waitForAsyncAttributes&&n.waitForAsyncAttributes().then(function(){logResources(r)}),n},logResources=function(e){e.forEach(function(e){if(Object.keys(e.attributes).length>0){var t=JSON.stringify(e.attributes,null,4);i.diag.verbose(t)}})}})(),module.exports=r})();
|
|
1
|
+
(()=>{"use strict";var e={"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"(e,t,r){r.d(t,{q:()=>o});let n=require("child_process");var o=require("util").promisify(n.exec)},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js"(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("fs"),o=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),i=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function getMachineId(){return __awaiter(this,void 0,void 0,function(){var e,t;return __generator(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,n.promises.readFile("/etc/hostid",{encoding:"utf8"})];case 1:return[2,r.sent().trim()];case 2:return e=r.sent(),i.diag.debug("error reading machine id: "+e),[3,3];case 3:return r.trys.push([3,5,,6]),[4,(0,o.q)("kenv -q smbios.system.uuid")];case 4:return[2,r.sent().stdout.trim()];case 5:return t=r.sent(),i.diag.debug("error reading machine id: "+t),[3,6];case 6:return[2,""]}})})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js"(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),o=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function getMachineId(){return __awaiter(this,void 0,void 0,function(){var e,t,r;return __generator(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,(0,n.q)('ioreg -rd1 -c "IOPlatformExpertDevice"')];case 1:if(!(e=i.sent().stdout.split("\n").find(function(e){return e.includes("IOPlatformUUID")})))return[2,""];if(2===(t=e.split('" = "')).length)return[2,t[1].slice(0,-1)];return[3,3];case 2:return r=i.sent(),o.diag.debug("error reading machine id: "+r),[3,3];case 3:return[2,""]}})})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js"(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("fs"),o=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},__values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};function getMachineId(){return __awaiter(this,void 0,void 0,function(){var e,t,r,i,c,a,s;return __generator(this,function(u){switch(u.label){case 0:e=["/etc/machine-id","/var/lib/dbus/machine-id"],u.label=1;case 1:u.trys.push([1,8,9,10]),r=(t=__values(e)).next(),u.label=2;case 2:if(r.done)return[3,7];i=r.value,u.label=3;case 3:return u.trys.push([3,5,,6]),[4,n.promises.readFile(i,{encoding:"utf8"})];case 4:return[2,u.sent().trim()];case 5:return c=u.sent(),o.diag.debug("error reading machine id: "+c),[3,6];case 6:return r=t.next(),[3,2];case 7:return[3,10];case 8:return a={error:u.sent()},[3,10];case 9:try{r&&!r.done&&(s=t.return)&&s.call(t)}finally{if(a)throw a.error}return[7];case 10:return[2,""]}})})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js"(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function getMachineId(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return n.diag.debug("could not read machine-id: unsupported platform"),[2,""]})})}},"./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js"(e,t,r){r.d(t,{D:()=>getMachineId});var n=r("process"),o=r("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/execAsync.js"),i=r("@opentelemetry/api"),__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}};function getMachineId(){return __awaiter(this,void 0,void 0,function(){var e,t,r,c;return __generator(this,function(a){switch(a.label){case 0:e="QUERY HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography /v MachineGuid",t="%windir%\\System32\\REG.exe","ia32"===n.arch&&"PROCESSOR_ARCHITEW6432"in n.env&&(t="%windir%\\sysnative\\cmd.exe /c "+t),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,(0,o.q)(t+" "+e)];case 2:if(2===(r=a.sent().stdout.split("REG_SZ")).length)return[2,r[1].trim()];return[3,4];case 3:return c=a.sent(),i.diag.debug("error reading machine id: "+c),[3,4];case 4:return[2,""]}})})}},"@opentelemetry/api"(e){e.exports=require("@opentelemetry/api")},fs(e){e.exports=require("fs")},process(e){e.exports=require("process")}},t={};function __webpack_require__(r){var n=t[r];if(void 0!==n)return n.exports;var o=t[r]={exports:{}};return e[r](o,o.exports,__webpack_require__),o.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};(()=>{__webpack_require__.r(r),__webpack_require__.d(r,{envDetector:()=>S,envDetectorSync:()=>L,hostDetector:()=>g,Resource:()=>T,osDetector:()=>I,detectResources:()=>detectResources,osDetectorSync:()=>m,browserDetectorSync:()=>p,processDetectorSync:()=>w,detectResourcesSync:()=>detectResourcesSync,browserDetector:()=>d,processDetector:()=>N,defaultServiceName:()=>defaultServiceName,hostDetectorSync:()=>P,serviceInstanceIdDetectorSync:()=>C});var e,t,n,o,i=__webpack_require__("@opentelemetry/api"),c="process.runtime.name",a="process.runtime.version",s="process.runtime.description",u="service.name",_="telemetry.sdk.name",l="telemetry.sdk.language",E="telemetry.sdk.version",f=((t={})[_]="opentelemetry",t[c]="node",t[l]="nodejs",t[E]="1.30.1",t);function defaultServiceName(){return"unknown_service:"+process.argv0}var __assign=function(){return(__assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},__awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},__generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},__read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c},T=function(){function Resource(e,t){var r,n=this;this._attributes=e,this.asyncAttributesPending=null!=t,this._syncAttributes=null!=(r=this._attributes)?r:{},this._asyncAttributesPromise=null==t?void 0:t.then(function(e){return n._attributes=Object.assign({},n._attributes,e),n.asyncAttributesPending=!1,e},function(e){return i.diag.debug("a resource's async attributes promise rejected: %s",e),n.asyncAttributesPending=!1,{}})}return Resource.empty=function(){return Resource.EMPTY},Resource.default=function(){var e;return new Resource(((e={})[u]=defaultServiceName(),e[l]=f[l],e[_]=f[_],e[E]=f[E],e))},Object.defineProperty(Resource.prototype,"attributes",{get:function(){var e;return this.asyncAttributesPending&&i.diag.error("Accessing resource attributes before async attributes settled"),null!=(e=this._attributes)?e:{}},enumerable:!1,configurable:!0}),Resource.prototype.waitForAsyncAttributes=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:if(!this.asyncAttributesPending)return[3,2];return[4,this._asyncAttributesPromise];case 1:e.sent(),e.label=2;case 2:return[2]}})})},Resource.prototype.merge=function(e){var t,r=this;if(!e)return this;var n=__assign(__assign({},this._syncAttributes),null!=(t=e._syncAttributes)?t:e.attributes);return this._asyncAttributesPromise||e._asyncAttributesPromise?new Resource(n,Promise.all([this._asyncAttributesPromise,e._asyncAttributesPromise]).then(function(t){var n,o=__read(t,2),i=o[0],c=o[1];return __assign(__assign(__assign(__assign({},r._syncAttributes),i),null!=(n=e._syncAttributes)?n:e.attributes),c)})):new Resource(n)},Resource.EMPTY=new Resource({}),Resource}(),BrowserDetectorSync_assign=function(){return(BrowserDetectorSync_assign=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},p=new(function(){function BrowserDetectorSync(){}return BrowserDetectorSync.prototype.detect=function(e){if(!("u">typeof navigator&&(null==(n=null==(r=global.process)?void 0:r.versions)?void 0:n.node)===void 0&&(null==(o=global.Bun)?void 0:o.version)===void 0))return T.empty();var t,r,n,o,i=((t={})[c]="browser",t[s]="Web Browser",t[a]=navigator.userAgent,t);return this._getResourceAttributes(i,e)},BrowserDetectorSync.prototype._getResourceAttributes=function(e,t){return""===e[a]?(i.diag.debug("BrowserDetector failed: Unable to find required browser resources. "),T.empty()):new T(BrowserDetectorSync_assign({},e))},BrowserDetectorSync}()),d=new(function(){function BrowserDetector(){}return BrowserDetector.prototype.detect=function(e){return Promise.resolve(p.detect(e))},BrowserDetector}());(e=n||(n={})).AlwaysOff="always_off",e.AlwaysOn="always_on",e.ParentBasedAlwaysOff="parentbased_always_off",e.ParentBasedAlwaysOn="parentbased_always_on",e.ParentBasedTraceIdRatio="parentbased_traceidratio",e.TraceIdRatio="traceidratio";var O=["OTEL_SDK_DISABLED"];function isEnvVarABoolean(e){return O.indexOf(e)>-1}var y=["OTEL_BSP_EXPORT_TIMEOUT","OTEL_BSP_MAX_EXPORT_BATCH_SIZE","OTEL_BSP_MAX_QUEUE_SIZE","OTEL_BSP_SCHEDULE_DELAY","OTEL_BLRP_EXPORT_TIMEOUT","OTEL_BLRP_MAX_EXPORT_BATCH_SIZE","OTEL_BLRP_MAX_QUEUE_SIZE","OTEL_BLRP_SCHEDULE_DELAY","OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT","OTEL_SPAN_EVENT_COUNT_LIMIT","OTEL_SPAN_LINK_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT","OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT","OTEL_EXPORTER_OTLP_TIMEOUT","OTEL_EXPORTER_OTLP_TRACES_TIMEOUT","OTEL_EXPORTER_OTLP_METRICS_TIMEOUT","OTEL_EXPORTER_OTLP_LOGS_TIMEOUT","OTEL_EXPORTER_JAEGER_AGENT_PORT"];function isEnvVarANumber(e){return y.indexOf(e)>-1}var b=["OTEL_NO_PATCH_MODULES","OTEL_PROPAGATORS","OTEL_SEMCONV_STABILITY_OPT_IN"];function isEnvVarAList(e){return b.indexOf(e)>-1}var h=1/0,R={OTEL_SDK_DISABLED:!1,CONTAINER_NAME:"",ECS_CONTAINER_METADATA_URI_V4:"",ECS_CONTAINER_METADATA_URI:"",HOSTNAME:"",KUBERNETES_SERVICE_HOST:"",NAMESPACE:"",OTEL_BSP_EXPORT_TIMEOUT:3e4,OTEL_BSP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BSP_MAX_QUEUE_SIZE:2048,OTEL_BSP_SCHEDULE_DELAY:5e3,OTEL_BLRP_EXPORT_TIMEOUT:3e4,OTEL_BLRP_MAX_EXPORT_BATCH_SIZE:512,OTEL_BLRP_MAX_QUEUE_SIZE:2048,OTEL_BLRP_SCHEDULE_DELAY:5e3,OTEL_EXPORTER_JAEGER_AGENT_HOST:"",OTEL_EXPORTER_JAEGER_AGENT_PORT:6832,OTEL_EXPORTER_JAEGER_ENDPOINT:"",OTEL_EXPORTER_JAEGER_PASSWORD:"",OTEL_EXPORTER_JAEGER_USER:"",OTEL_EXPORTER_OTLP_ENDPOINT:"",OTEL_EXPORTER_OTLP_TRACES_ENDPOINT:"",OTEL_EXPORTER_OTLP_METRICS_ENDPOINT:"",OTEL_EXPORTER_OTLP_LOGS_ENDPOINT:"",OTEL_EXPORTER_OTLP_HEADERS:"",OTEL_EXPORTER_OTLP_TRACES_HEADERS:"",OTEL_EXPORTER_OTLP_METRICS_HEADERS:"",OTEL_EXPORTER_OTLP_LOGS_HEADERS:"",OTEL_EXPORTER_OTLP_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_TRACES_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_METRICS_TIMEOUT:1e4,OTEL_EXPORTER_OTLP_LOGS_TIMEOUT:1e4,OTEL_EXPORTER_ZIPKIN_ENDPOINT:"http://localhost:9411/api/v2/spans",OTEL_LOG_LEVEL:i.DiagLogLevel.INFO,OTEL_NO_PATCH_MODULES:[],OTEL_PROPAGATORS:["tracecontext","baggage"],OTEL_RESOURCE_ATTRIBUTES:"",OTEL_SERVICE_NAME:"",OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT:h,OTEL_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT:h,OTEL_SPAN_ATTRIBUTE_COUNT_LIMIT:128,OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT:h,OTEL_LOGRECORD_ATTRIBUTE_COUNT_LIMIT:128,OTEL_SPAN_EVENT_COUNT_LIMIT:128,OTEL_SPAN_LINK_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_EVENT_COUNT_LIMIT:128,OTEL_SPAN_ATTRIBUTE_PER_LINK_COUNT_LIMIT:128,OTEL_TRACES_EXPORTER:"",OTEL_TRACES_SAMPLER:n.ParentBasedAlwaysOn,OTEL_TRACES_SAMPLER_ARG:"",OTEL_LOGS_EXPORTER:"",OTEL_EXPORTER_OTLP_INSECURE:"",OTEL_EXPORTER_OTLP_TRACES_INSECURE:"",OTEL_EXPORTER_OTLP_METRICS_INSECURE:"",OTEL_EXPORTER_OTLP_LOGS_INSECURE:"",OTEL_EXPORTER_OTLP_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CERTIFICATE:"",OTEL_EXPORTER_OTLP_COMPRESSION:"",OTEL_EXPORTER_OTLP_TRACES_COMPRESSION:"",OTEL_EXPORTER_OTLP_METRICS_COMPRESSION:"",OTEL_EXPORTER_OTLP_LOGS_COMPRESSION:"",OTEL_EXPORTER_OTLP_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_KEY:"",OTEL_EXPORTER_OTLP_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_TRACES_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_METRICS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_LOGS_CLIENT_CERTIFICATE:"",OTEL_EXPORTER_OTLP_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_TRACES_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_LOGS_PROTOCOL:"http/protobuf",OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE:"cumulative",OTEL_SEMCONV_STABILITY_OPT_IN:[]};function parseBoolean(e,t,r){if(void 0!==r[e]){var n=String(r[e]);t[e]="true"===n.toLowerCase()}}function parseNumber(e,t,r,n,o){if(void 0===n&&(n=-1/0),void 0===o&&(o=1/0),void 0!==r[e]){var i=Number(r[e]);isNaN(i)||(i<n?t[e]=n:i>o?t[e]=o:t[e]=i)}}function parseStringList(e,t,r,n){void 0===n&&(n=",");var o=r[e];"string"==typeof o&&(t[e]=o.split(n).map(function(e){return e.trim()}))}var v={ALL:i.DiagLogLevel.ALL,VERBOSE:i.DiagLogLevel.VERBOSE,DEBUG:i.DiagLogLevel.DEBUG,INFO:i.DiagLogLevel.INFO,WARN:i.DiagLogLevel.WARN,ERROR:i.DiagLogLevel.ERROR,NONE:i.DiagLogLevel.NONE};function setLogLevelFromEnv(e,t,r){var n=r[e];if("string"==typeof n){var o=v[n.toUpperCase()];null!=o&&(t[e]=o)}}function environment_parseEnvironment(e){var t={};for(var r in R)if("OTEL_LOG_LEVEL"===r)setLogLevelFromEnv(r,t,e);else if(isEnvVarABoolean(r))parseBoolean(r,t,e);else if(isEnvVarANumber(r))parseNumber(r,t,e);else if(isEnvVarAList(r))parseStringList(r,t,e);else{var n=e[r];null!=n&&(t[r]=String(n))}return t}function getEnv(){return Object.assign({},R,environment_parseEnvironment(process.env))}var __values=function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},EnvDetectorSync_read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c},L=new(function(){function EnvDetectorSync(){this._MAX_LENGTH=255,this._COMMA_SEPARATOR=",",this._LABEL_KEY_VALUE_SPLITTER="=",this._ERROR_MESSAGE_INVALID_CHARS="should be a ASCII string with a length greater than 0 and not exceed "+this._MAX_LENGTH+" characters.",this._ERROR_MESSAGE_INVALID_VALUE="should be a ASCII string with a length not exceed "+this._MAX_LENGTH+" characters."}return EnvDetectorSync.prototype.detect=function(e){var t={},r=getEnv(),n=r.OTEL_RESOURCE_ATTRIBUTES,o=r.OTEL_SERVICE_NAME;if(n)try{var c=this._parseResourceAttributes(n);Object.assign(t,c)}catch(e){i.diag.debug("EnvDetector failed: "+e.message)}return o&&(t[u]=o),new T(t)},EnvDetectorSync.prototype._parseResourceAttributes=function(e){if(!e)return{};var t,r,n={},o=e.split(this._COMMA_SEPARATOR,-1);try{for(var i=__values(o),c=i.next();!c.done;c=i.next()){var a=c.value.split(this._LABEL_KEY_VALUE_SPLITTER,-1);if(2===a.length){var s=EnvDetectorSync_read(a,2),u=s[0],_=s[1];if(u=u.trim(),_=_.trim().split(/^"|"$/).join(""),!this._isValidAndNotEmpty(u))throw Error("Attribute key "+this._ERROR_MESSAGE_INVALID_CHARS);if(!this._isValid(_))throw Error("Attribute value "+this._ERROR_MESSAGE_INVALID_VALUE);n[u]=decodeURIComponent(_)}}}catch(e){t={error:e}}finally{try{c&&!c.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}return n},EnvDetectorSync.prototype._isValid=function(e){return e.length<=this._MAX_LENGTH&&this._isBaggageOctetString(e)},EnvDetectorSync.prototype._isBaggageOctetString=function(e){for(var t=0;t<e.length;t++){var r=e.charCodeAt(t);if(r<33||44===r||59===r||92===r||r>126)return!1}return!0},EnvDetectorSync.prototype._isValidAndNotEmpty=function(e){return e.length>0&&this._isValid(e)},EnvDetectorSync}()),S=new(function(){function EnvDetector(){}return EnvDetector.prototype.detect=function(e){return Promise.resolve(L.detect(e))},EnvDetector}());let A=require("os");var normalizeArch=function(e){switch(e){case"arm":return"arm32";case"ppc":return"ppc32";case"x64":return"amd64";default:return e}},normalizeType=function(e){switch(e){case"sunos":return"solaris";case"win32":return"windows";default:return e}};switch(__webpack_require__("process").platform){case"darwin":o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-darwin.js").D;break;case"linux":o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-linux.js").D;break;case"freebsd":o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-bsd.js").D;break;case"win32":o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-win.js").D;break;default:o=__webpack_require__("./@opentelemetry/resources/build/esm/detectors/platform/node/machine-id/getMachineId-unsupported.js").D}var P=new(function(){function HostDetectorSync(){}return HostDetectorSync.prototype.detect=function(e){var t;return new T(((t={})["host.name"]=(0,A.hostname)(),t["host.arch"]=normalizeArch((0,A.arch)()),t),this._getAsyncAttributes())},HostDetectorSync.prototype._getAsyncAttributes=function(){return o().then(function(e){var t={};return e&&(t["host.id"]=e),t})},HostDetectorSync}()),g=new(function(){function HostDetector(){}return HostDetector.prototype.detect=function(e){return Promise.resolve(P.detect(e))},HostDetector}()),m=new(function(){function OSDetectorSync(){}return OSDetectorSync.prototype.detect=function(e){var t;return new T(((t={})["os.type"]=normalizeType((0,A.platform)()),t["os.version"]=(0,A.release)(),t))},OSDetectorSync}()),I=new(function(){function OSDetector(){}return OSDetector.prototype.detect=function(e){return Promise.resolve(m.detect(e))},OSDetector}()),ProcessDetectorSync_read=function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),c=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)c.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return c},__spreadArray=function(e,t,r){if(r||2==arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},w=new(function(){function ProcessDetectorSync(){}return ProcessDetectorSync.prototype.detect=function(e){var t,r=((t={})["process.pid"]=process.pid,t["process.executable.name"]=process.title,t["process.executable.path"]=process.execPath,t["process.command_args"]=__spreadArray(__spreadArray([process.argv[0]],ProcessDetectorSync_read(process.execArgv),!1),ProcessDetectorSync_read(process.argv.slice(1)),!1),t[a]=process.versions.node,t[c]="nodejs",t[s]="Node.js",t);process.argv.length>1&&(r["process.command"]=process.argv[1]);try{var n=A.userInfo();r["process.owner"]=n.username}catch(e){i.diag.debug("error obtaining process owner: "+e)}return new T(r)},ProcessDetectorSync}()),N=new(function(){function ProcessDetector(){}return ProcessDetector.prototype.detect=function(e){return Promise.resolve(w.detect(e))},ProcessDetector}());let D=require("crypto");var C=new(function(){function ServiceInstanceIdDetectorSync(){}return ServiceInstanceIdDetectorSync.prototype.detect=function(e){var t;return new T(((t={})["service.instance.id"]=(0,D.randomUUID)(),t))},ServiceInstanceIdDetectorSync}()),detect_resources_awaiter=function(e,t,r,n){function adopt(e){return e instanceof r?e:new r(function(t){t(e)})}return new(r||(r=Promise))(function(r,o){function fulfilled(e){try{step(n.next(e))}catch(e){o(e)}}function rejected(e){try{step(n.throw(e))}catch(e){o(e)}}function step(e){e.done?r(e.value):adopt(e.value).then(fulfilled,rejected)}step((n=n.apply(e,t||[])).next())})},detect_resources_generator=function(e,t){var r,n,o,i,c={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(e){return function(t){return step([e,t])}}function step(i){if(r)throw TypeError("Generator is already executing.");for(;c;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return c.label++,{value:i[1],done:!1};case 5:c.label++,n=i[1],i=[0];continue;case 7:i=c.ops.pop(),c.trys.pop();continue;default:if(!(o=(o=c.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){c=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){c.label=i[1];break}if(6===i[0]&&c.label<o[1]){c.label=o[1],o=i;break}if(o&&c.label<o[2]){c.label=o[2],c.ops.push(i);break}o[2]&&c.ops.pop(),c.trys.pop();continue}i=t.call(e,c)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}},detectResources=function(e){return void 0===e&&(e={}),detect_resources_awaiter(void 0,void 0,void 0,function(){var t;return detect_resources_generator(this,function(r){switch(r.label){case 0:return[4,Promise.all((e.detectors||[]).map(function(t){return detect_resources_awaiter(void 0,void 0,void 0,function(){var r,n;return detect_resources_generator(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,t.detect(e)];case 1:return r=o.sent(),i.diag.debug(t.constructor.name+" found resource.",r),[2,r];case 2:return n=o.sent(),i.diag.debug(t.constructor.name+" failed: "+n.message),[2,T.empty()];case 3:return[2]}})})}))];case 1:return logResources(t=r.sent()),[2,t.reduce(function(e,t){return e.merge(t)},T.empty())]}})})},detectResourcesSync=function(e){void 0===e&&(e={});var t,r=(null!=(t=e.detectors)?t:[]).map(function(t){try{var r,n=t.detect(e);return(r=null!==n&&"object"==typeof n&&"function"==typeof n.then?new T({},detect_resources_awaiter(void 0,void 0,void 0,function(){var e,t;return detect_resources_generator(this,function(r){switch(r.label){case 0:return[4,n];case 1:return e=r.sent(),[4,null==(t=e.waitForAsyncAttributes)?void 0:t.call(e)];case 2:return r.sent(),[2,e.attributes]}})})):n).waitForAsyncAttributes?r.waitForAsyncAttributes().then(function(){return i.diag.debug(t.constructor.name+" found resource.",r)}):i.diag.debug(t.constructor.name+" found resource.",r),r}catch(e){return i.diag.error(t.constructor.name+" failed: "+e.message),T.empty()}}),n=r.reduce(function(e,t){return e.merge(t)},T.empty());return n.waitForAsyncAttributes&&n.waitForAsyncAttributes().then(function(){logResources(r)}),n},logResources=function(e){e.forEach(function(e){if(Object.keys(e.attributes).length>0){var t=JSON.stringify(e.attributes,null,4);i.diag.verbose(t)}})}})(),module.exports=r})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";let e,t,i,r,n,s;var o={};o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};o.r(l),o.d(l,{EXPRESSIONS_PRECEDENCE:()=>w,GENERATOR:()=>u,NEEDS_PARENTHESES:()=>m,baseGenerator:()=>h,generate:()=>generate});let{stringify:a}=JSON;if(!String.prototype.repeat)throw Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");let p={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},m=17,w={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function formatSequence(e,t){let{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);let{length:r}=t;for(let n=1;n<r;n++){let r=t[n];e.write(", "),i[r.type](r,e)}}e.write(")")}function expressionNeedsParenthesis(e,t,i,r){let n=e.expressionsPrecedence[t.type];if(n===m)return!0;let s=e.expressionsPrecedence[i.type];return n!==s?!r&&15===n&&14===s&&"**"===i.operator||n<s:(13===n||14===n)&&("**"===t.operator&&"**"===i.operator?!r:13===n&&13===s&&("??"===t.operator||"??"===i.operator)||(r?p[t.operator]<=p[i.operator]:p[t.operator]<p[i.operator]))}function formatExpression(e,t,i,r){let{generator:n}=e;expressionNeedsParenthesis(e,t,i,r)?(e.write("("),n[t.type](t,e),e.write(")")):n[t.type](t,e)}function reindent(e,t,i,r){let n=t.split("\n"),s=n.length-1;if(e.write(n[0].trim()),s>0){e.write(r);for(let t=1;t<s;t++)e.write(i+n[t].trim()+r);e.write(i+n[s].trim())}}function formatComments(e,t,i,r){let{length:n}=t;for(let s=0;s<n;s++){let n=t[s];e.write(i),"L"===n.type[0]?e.write("// "+n.value.trim()+"\n",n):(e.write("/*"),reindent(e,n.value,i,r),e.write("*/"+r))}}function hasCallExpression(e){let t=e;for(;null!=t;){let{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}function formatVariableDeclaration(e,t){let{generator:i}=e,{declarations:r}=t;e.write(t.kind+" ");let{length:n}=r;if(n>0){i.VariableDeclarator(r[0],e);for(let t=1;t<n;t++)e.write(", "),i.VariableDeclarator(r[t],e)}}let u={Program(e,t){let i=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:n}=t;n&&null!=e.comments&&formatComments(t,e.comments,i,r);let s=e.body,{length:o}=s;for(let e=0;e<o;e++){let o=s[e];n&&null!=o.comments&&formatComments(t,o.comments,i,r),t.write(i),this[o.type](o,t),t.write(r)}n&&null!=e.trailingComments&&formatComments(t,e.trailingComments,i,r)},BlockStatement:s=function(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t,s=i+t.indent;t.write("{");let o=e.body;if(null!=o&&o.length>0){t.write(r),n&&null!=e.comments&&formatComments(t,e.comments,s,r);let{length:l}=o;for(let e=0;e<l;e++){let i=o[e];n&&null!=i.comments&&formatComments(t,i.comments,s,r),t.write(s),this[i.type](i,t),t.write(r)}t.write(i)}else n&&null!=e.comments&&(t.write(r),formatComments(t,e.comments,s,r),t.write(i));n&&null!=e.trailingComments&&formatComments(t,e.trailingComments,s,r),t.write("}"),t.indentLevel--},ClassBody:s,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){let i=t.expressionsPrecedence[e.expression.type];i===m||3===i&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t;t.indentLevel++;let s=i+t.indent,o=s+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);let{cases:l}=e,{length:a}=l;for(let e=0;e<a;e++){let i=l[e];n&&null!=i.comments&&formatComments(t,i.comments,s,r),i.test?(t.write(s+"case "),this[i.test.type](i.test,t),t.write(":"+r)):t.write(s+"default:"+r);let{consequent:a}=i,{length:p}=a;for(let e=0;e<p;e++){let i=a[e];n&&null!=i.comments&&formatComments(t,i.comments,o,r),t.write(o),this[i.type](i,t),t.write(r)}}t.indentLevel-=2,t.write(i+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){let{handler:i}=e;null==i.param?t.write(" catch "):(t.write(" catch ("),this[i.param.type](i.param,t),t.write(") ")),this[i.body.type](i.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){let{init:i}=e;"V"===i.type[0]?formatVariableDeclaration(t,i):this[i.type](i,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:e=function(e,t){t.write(`for ${e.await?"await ":""}(`);let{left:i}=e;"V"===i.type[0]?formatVariableDeclaration(t,i):this[i.type](i,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:e,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:t=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),formatSequence(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:t,VariableDeclaration(e,t){formatVariableDeclaration(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");let{superClass:i}=e,{type:r}=i,n=t.expressionsPrecedence[r];("C"!==r[0]||"l"!==r[1]||"E"!==r[5])&&(n===m||n<t.expressionsPrecedence.ClassExpression)?(t.write("("),this[e.superClass.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");let{specifiers:i,attributes:r}=e,{length:n}=i,s=0;if(n>0){for(;s<n;){s>0&&t.write(", ");let e=i[s],r=e.type[6];if("D"===r)t.write(e.local.name,e),s++;else if("N"===r)t.write("* as "+e.local.name,e),s++;else break}if(s<n){for(t.write("{");;){let e=i[s],{name:r}=e.imported;if(t.write(r,e),r!==e.local.name&&t.write(" as "+e.local.name),++s<n)t.write(", ");else break}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),r&&r.length>0){t.write(" with { ");for(let e=0;e<r.length;e++)this.ImportAttribute(r[e],t),e<r.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");let{specifiers:i}=e,{length:r}=i;if(r>0)for(let e=0;;){let n=i[e],{name:s}=n.local;if(t.write(s,n),s!==n.exported.name&&t.write(" as "+n.exported.name),++e<r)t.write(", ");else break}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let i=0;i<e.attributes.length;i++)this.ImportAttribute(e.attributes[i],t),i<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let i=0;i<e.attributes.length;i++)this.ImportAttribute(e.attributes[i],t),i<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");let i=e.kind[0];("g"===i||"s"===i)&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),formatSequence(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);let{params:i}=e;null!=i&&(1===i.length&&"I"===i[0].type[0]?t.write(i[0].name,i[0]):formatSequence(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:i=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:i,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),formatExpression(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:i,expressions:r}=e;t.write("`");let{length:n}=r;for(let e=0;e<n;e++){let n=r[e],s=i[e];t.write(s.value.raw,s),t.write("${"),this[n.type](n,t),t.write("}")}let s=i[i.length-1];t.write(s.value.raw,s),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){formatExpression(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:n=function(e,t){if(t.write("["),e.elements.length>0){let{elements:i}=e,{length:r}=i;for(let e=0;;){let n=i[e];if(null!=n&&this[n.type](n,t),++e<r)t.write(", ");else{null==n&&t.write(", ");break}}}t.write("]")},ArrayPattern:n,ObjectExpression(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t,s=i+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),n&&null!=e.comments&&formatComments(t,e.comments,s,r);let o=","+r,{properties:l}=e,{length:a}=l;for(let e=0;;){let i=l[e];if(n&&null!=i.comments&&formatComments(t,i.comments,s,r),t.write(s),this[i.type](i,t),++e<a)t.write(o);else break}t.write(r),n&&null!=e.trailingComments&&formatComments(t,e.trailingComments,s,r),t.write(i+"}")}else n?null!=e.comments?(t.write(r),formatComments(t,e.comments,s,r),null!=e.trailingComments&&formatComments(t,e.trailingComments,s,r),t.write(i+"}")):null!=e.trailingComments?(t.write(r),formatComments(t,e.trailingComments,s,r),t.write(i+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){if(e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null==e.value){"F"!==e.key.type[0]&&t.write(";");return}t.write(" = "),this[e.value.type](e.value,t),t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){let{properties:i}=e,{length:r}=i;for(let e=0;;)if(this[i[e].type](i[e],t),++e<r)t.write(", ");else break}t.write("}")},SequenceExpression(e,t){formatSequence(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){let{operator:i,argument:r,argument:{type:n}}=e;t.write(i);let s=expressionNeedsParenthesis(t,r,e);!s&&(i.length>1||"U"===n[0]&&("n"===n[1]||"p"===n[1])&&r.prefix&&r.operator[0]===i&&("+"===i||"-"===i))&&t.write(" "),s?(t.write(i.length>1?" (":"("),this[n](r,t),t.write(")")):this[n](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:r=function(e,t){let i="in"===e.operator;i&&t.write("("),formatExpression(t,e.left,e,!1),t.write(" "+e.operator+" "),formatExpression(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:r,ConditionalExpression(e,t){let{test:i}=e,r=t.expressionsPrecedence[i.type];r===m||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[i.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let i=t.expressionsPrecedence[e.callee.type];i===m||i<t.expressionsPrecedence.CallExpression||hasCallExpression(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),formatSequence(t,e.arguments)},CallExpression(e,t){let i=t.expressionsPrecedence[e.callee.type];i===m||i<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),formatSequence(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){let i=t.expressionsPrecedence[e.object.type];i===m||i<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(a(e.value),e)},RegExpLiteral(e,t){let{regex:i}=e;t.write(`/${i.pattern}/${i.flags}`,e)}},c={},h=u;let State=class State{constructor(e){const t=null==e?c:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:u,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:w,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){let{type:i}=t;if("L"===i[0]&&"n"===i[2]){this.column=0,this.line++;return}if(null!=t.loc){let{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===i[0]&&"E"===i[8]||"L"===i[0]&&"i"===i[1]&&"string"==typeof t.value){let{length:t}=e,{column:i,line:r}=this;for(let n=0;n<t;n++)"\n"===e[n]?(i=0,r++):i++;this.column=i,this.line=r;return}}let{length:i}=e,{lineEnd:r}=this;i>0&&(this.lineEndSize>0&&(1===r.length?e[i-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=i)}toString(){return this.output}};function generate(e,t){let i=new State(t);return i.generator[e.type](e,i),i.output}module.exports=l})();
|
|
1
|
+
(()=>{"use strict";let e,t,i,r,n,s;var o={};o.d=(e,t)=>{for(var i in t)o.o(t,i)&&!o.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var l={};o.r(l),o.d(l,{EXPRESSIONS_PRECEDENCE:()=>w,GENERATOR:()=>u,NEEDS_PARENTHESES:()=>m,baseGenerator:()=>h,generate:()=>generate});let{stringify:a}=JSON;if(!String.prototype.repeat)throw Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");let p={"||":2,"??":3,"&&":4,"|":5,"^":6,"&":7,"==":8,"!=":8,"===":8,"!==":8,"<":9,">":9,"<=":9,">=":9,in:9,instanceof:9,"<<":10,">>":10,">>>":10,"+":11,"-":11,"*":12,"%":12,"/":12,"**":13},m=17,w={ArrayExpression:20,TaggedTemplateExpression:20,ThisExpression:20,Identifier:20,PrivateIdentifier:20,Literal:18,TemplateLiteral:20,Super:20,SequenceExpression:20,MemberExpression:19,ChainExpression:19,CallExpression:19,NewExpression:19,ArrowFunctionExpression:17,ClassExpression:17,FunctionExpression:17,ObjectExpression:17,UpdateExpression:16,UnaryExpression:15,AwaitExpression:15,BinaryExpression:14,LogicalExpression:13,ConditionalExpression:4,AssignmentExpression:3,YieldExpression:2,RestElement:1};function formatSequence(e,t){let{generator:i}=e;if(e.write("("),null!=t&&t.length>0){i[t[0].type](t[0],e);let{length:r}=t;for(let n=1;n<r;n++){let r=t[n];e.write(", "),i[r.type](r,e)}}e.write(")")}function expressionNeedsParenthesis(e,t,i,r){let n=e.expressionsPrecedence[t.type];if(n===m)return!0;let s=e.expressionsPrecedence[i.type];return n!==s?!r&&15===n&&14===s&&"**"===i.operator||n<s:(13===n||14===n)&&("**"===t.operator&&"**"===i.operator?!r:13===n&&13===s&&("??"===t.operator||"??"===i.operator)||(r?p[t.operator]<=p[i.operator]:p[t.operator]<p[i.operator]))}function formatExpression(e,t,i,r){let{generator:n}=e;expressionNeedsParenthesis(e,t,i,r)?(e.write("("),n[t.type](t,e),e.write(")")):n[t.type](t,e)}function reindent(e,t,i,r){let n=t.split("\n"),s=n.length-1;if(e.write(n[0].trim()),s>0){e.write(r);for(let t=1;t<s;t++)e.write(i+n[t].trim()+r);e.write(i+n[s].trim())}}function formatComments(e,t,i,r){let{length:n}=t;for(let s=0;s<n;s++){let n=t[s];e.write(i),"L"===n.type[0]?e.write("// "+n.value.trim()+"\n",n):(e.write("/*"),reindent(e,n.value,i,r),e.write("*/"+r))}}function hasCallExpression(e){let t=e;for(;null!=t;){let{type:e}=t;if("C"===e[0]&&"a"===e[1])return!0;if("M"!==e[0]||"e"!==e[1]||"m"!==e[2])return!1;t=t.object}}function formatVariableDeclaration(e,t){let{generator:i}=e,{declarations:r}=t;e.write(t.kind+" ");let{length:n}=r;if(n>0){i.VariableDeclarator(r[0],e);for(let t=1;t<n;t++)e.write(", "),i.VariableDeclarator(r[t],e)}}let u={Program(e,t){let i=t.indent.repeat(t.indentLevel),{lineEnd:r,writeComments:n}=t;n&&null!=e.comments&&formatComments(t,e.comments,i,r);let s=e.body,{length:o}=s;for(let e=0;e<o;e++){let o=s[e];n&&null!=o.comments&&formatComments(t,o.comments,i,r),t.write(i),this[o.type](o,t),t.write(r)}n&&null!=e.trailingComments&&formatComments(t,e.trailingComments,i,r)},BlockStatement:s=function(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t,s=i+t.indent;t.write("{");let o=e.body;if(null!=o&&o.length>0){t.write(r),n&&null!=e.comments&&formatComments(t,e.comments,s,r);let{length:l}=o;for(let e=0;e<l;e++){let i=o[e];n&&null!=i.comments&&formatComments(t,i.comments,s,r),t.write(s),this[i.type](i,t),t.write(r)}t.write(i)}else n&&null!=e.comments&&(t.write(r),formatComments(t,e.comments,s,r),t.write(i));n&&null!=e.trailingComments&&formatComments(t,e.trailingComments,s,r),t.write("}"),t.indentLevel--},ClassBody:s,StaticBlock(e,t){t.write("static "),this.BlockStatement(e,t)},EmptyStatement(e,t){t.write(";")},ExpressionStatement(e,t){let i=t.expressionsPrecedence[e.expression.type];i===m||3===i&&"O"===e.expression.left.type[0]?(t.write("("),this[e.expression.type](e.expression,t),t.write(")")):this[e.expression.type](e.expression,t),t.write(";")},IfStatement(e,t){t.write("if ("),this[e.test.type](e.test,t),t.write(") "),this[e.consequent.type](e.consequent,t),null!=e.alternate&&(t.write(" else "),this[e.alternate.type](e.alternate,t))},LabeledStatement(e,t){this[e.label.type](e.label,t),t.write(": "),this[e.body.type](e.body,t)},BreakStatement(e,t){t.write("break"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},ContinueStatement(e,t){t.write("continue"),null!=e.label&&(t.write(" "),this[e.label.type](e.label,t)),t.write(";")},WithStatement(e,t){t.write("with ("),this[e.object.type](e.object,t),t.write(") "),this[e.body.type](e.body,t)},SwitchStatement(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t;t.indentLevel++;let s=i+t.indent,o=s+t.indent;t.write("switch ("),this[e.discriminant.type](e.discriminant,t),t.write(") {"+r);let{cases:l}=e,{length:a}=l;for(let e=0;e<a;e++){let i=l[e];n&&null!=i.comments&&formatComments(t,i.comments,s,r),i.test?(t.write(s+"case "),this[i.test.type](i.test,t),t.write(":"+r)):t.write(s+"default:"+r);let{consequent:a}=i,{length:p}=a;for(let e=0;e<p;e++){let i=a[e];n&&null!=i.comments&&formatComments(t,i.comments,o,r),t.write(o),this[i.type](i,t),t.write(r)}}t.indentLevel-=2,t.write(i+"}")},ReturnStatement(e,t){t.write("return"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t)),t.write(";")},ThrowStatement(e,t){t.write("throw "),this[e.argument.type](e.argument,t),t.write(";")},TryStatement(e,t){if(t.write("try "),this[e.block.type](e.block,t),e.handler){let{handler:i}=e;null==i.param?t.write(" catch "):(t.write(" catch ("),this[i.param.type](i.param,t),t.write(") ")),this[i.body.type](i.body,t)}e.finalizer&&(t.write(" finally "),this[e.finalizer.type](e.finalizer,t))},WhileStatement(e,t){t.write("while ("),this[e.test.type](e.test,t),t.write(") "),this[e.body.type](e.body,t)},DoWhileStatement(e,t){t.write("do "),this[e.body.type](e.body,t),t.write(" while ("),this[e.test.type](e.test,t),t.write(");")},ForStatement(e,t){if(t.write("for ("),null!=e.init){let{init:i}=e;"V"===i.type[0]?formatVariableDeclaration(t,i):this[i.type](i,t)}t.write("; "),e.test&&this[e.test.type](e.test,t),t.write("; "),e.update&&this[e.update.type](e.update,t),t.write(") "),this[e.body.type](e.body,t)},ForInStatement:e=function(e,t){t.write(`for ${e.await?"await ":""}(`);let{left:i}=e;"V"===i.type[0]?formatVariableDeclaration(t,i):this[i.type](i,t),t.write("I"===e.type[3]?" in ":" of "),this[e.right.type](e.right,t),t.write(") "),this[e.body.type](e.body,t)},ForOfStatement:e,DebuggerStatement(e,t){t.write("debugger;",e)},FunctionDeclaration:t=function(e,t){t.write((e.async?"async ":"")+(e.generator?"function* ":"function ")+(e.id?e.id.name:""),e),formatSequence(t,e.params),t.write(" "),this[e.body.type](e.body,t)},FunctionExpression:t,VariableDeclaration(e,t){formatVariableDeclaration(t,e),t.write(";")},VariableDeclarator(e,t){this[e.id.type](e.id,t),null!=e.init&&(t.write(" = "),this[e.init.type](e.init,t))},ClassDeclaration(e,t){if(t.write("class "+(e.id?`${e.id.name} `:""),e),e.superClass){t.write("extends ");let{superClass:i}=e,{type:r}=i,n=t.expressionsPrecedence[r];("C"!==r[0]||"l"!==r[1]||"E"!==r[5])&&(n===m||n<t.expressionsPrecedence.ClassExpression)?(t.write("("),this[e.superClass.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ")}this.ClassBody(e.body,t)},ImportDeclaration(e,t){t.write("import ");let{specifiers:i,attributes:r}=e,{length:n}=i,s=0;if(n>0){for(;s<n;){s>0&&t.write(", ");let e=i[s],r=e.type[6];if("D"===r)t.write(e.local.name,e),s++;else if("N"===r)t.write("* as "+e.local.name,e),s++;else break}if(s<n){for(t.write("{");;){let e=i[s],{name:r}=e.imported;if(t.write(r,e),r!==e.local.name&&t.write(" as "+e.local.name),++s<n)t.write(", ");else break}t.write("}")}t.write(" from ")}if(this.Literal(e.source,t),r&&r.length>0){t.write(" with { ");for(let e=0;e<r.length;e++)this.ImportAttribute(r[e],t),e<r.length-1&&t.write(", ");t.write(" }")}t.write(";")},ImportAttribute(e,t){this.Identifier(e.key,t),t.write(": "),this.Literal(e.value,t)},ImportExpression(e,t){t.write("import("),this[e.source.type](e.source,t),t.write(")")},ExportDefaultDeclaration(e,t){t.write("export default "),this[e.declaration.type](e.declaration,t),null!=t.expressionsPrecedence[e.declaration.type]&&"F"!==e.declaration.type[0]&&t.write(";")},ExportNamedDeclaration(e,t){if(t.write("export "),e.declaration)this[e.declaration.type](e.declaration,t);else{t.write("{");let{specifiers:i}=e,{length:r}=i;if(r>0)for(let e=0;;){let n=i[e],{name:s}=n.local;if(t.write(s,n),s!==n.exported.name&&t.write(" as "+n.exported.name),++e<r)t.write(", ");else break}if(t.write("}"),e.source&&(t.write(" from "),this.Literal(e.source,t)),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let i=0;i<e.attributes.length;i++)this.ImportAttribute(e.attributes[i],t),i<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")}},ExportAllDeclaration(e,t){if(null!=e.exported?t.write("export * as "+e.exported.name+" from "):t.write("export * from "),this.Literal(e.source,t),e.attributes&&e.attributes.length>0){t.write(" with { ");for(let i=0;i<e.attributes.length;i++)this.ImportAttribute(e.attributes[i],t),i<e.attributes.length-1&&t.write(", ");t.write(" }")}t.write(";")},MethodDefinition(e,t){e.static&&t.write("static ");let i=e.kind[0];("g"===i||"s"===i)&&t.write(e.kind+" "),e.value.async&&t.write("async "),e.value.generator&&t.write("*"),e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),formatSequence(t,e.value.params),t.write(" "),this[e.value.body.type](e.value.body,t)},ClassExpression(e,t){this.ClassDeclaration(e,t)},ArrowFunctionExpression(e,t){t.write(e.async?"async ":"",e);let{params:i}=e;null!=i&&(1===i.length&&"I"===i[0].type[0]?t.write(i[0].name,i[0]):formatSequence(t,e.params)),t.write(" => "),"O"===e.body.type[0]?(t.write("("),this.ObjectExpression(e.body,t),t.write(")")):this[e.body.type](e.body,t)},ThisExpression(e,t){t.write("this",e)},Super(e,t){t.write("super",e)},RestElement:i=function(e,t){t.write("..."),this[e.argument.type](e.argument,t)},SpreadElement:i,YieldExpression(e,t){t.write(e.delegate?"yield*":"yield"),e.argument&&(t.write(" "),this[e.argument.type](e.argument,t))},AwaitExpression(e,t){t.write("await ",e),formatExpression(t,e.argument,e)},TemplateLiteral(e,t){let{quasis:i,expressions:r}=e;t.write("`");let{length:n}=r;for(let e=0;e<n;e++){let n=r[e],s=i[e];t.write(s.value.raw,s),t.write("${"),this[n.type](n,t),t.write("}")}let s=i[i.length-1];t.write(s.value.raw,s),t.write("`")},TemplateElement(e,t){t.write(e.value.raw,e)},TaggedTemplateExpression(e,t){formatExpression(t,e.tag,e),this[e.quasi.type](e.quasi,t)},ArrayExpression:n=function(e,t){if(t.write("["),e.elements.length>0){let{elements:i}=e,{length:r}=i;for(let e=0;;){let n=i[e];if(null!=n&&this[n.type](n,t),++e<r)t.write(", ");else{null==n&&t.write(", ");break}}}t.write("]")},ArrayPattern:n,ObjectExpression(e,t){let i=t.indent.repeat(t.indentLevel++),{lineEnd:r,writeComments:n}=t,s=i+t.indent;if(t.write("{"),e.properties.length>0){t.write(r),n&&null!=e.comments&&formatComments(t,e.comments,s,r);let o=","+r,{properties:l}=e,{length:a}=l;for(let e=0;;){let i=l[e];if(n&&null!=i.comments&&formatComments(t,i.comments,s,r),t.write(s),this[i.type](i,t),++e<a)t.write(o);else break}t.write(r),n&&null!=e.trailingComments&&formatComments(t,e.trailingComments,s,r),t.write(i+"}")}else n?null!=e.comments?(t.write(r),formatComments(t,e.comments,s,r),null!=e.trailingComments&&formatComments(t,e.trailingComments,s,r),t.write(i+"}")):null!=e.trailingComments?(t.write(r),formatComments(t,e.trailingComments,s,r),t.write(i+"}")):t.write("}"):t.write("}");t.indentLevel--},Property(e,t){e.method||"i"!==e.kind[0]?this.MethodDefinition(e,t):(e.shorthand||(e.computed?(t.write("["),this[e.key.type](e.key,t),t.write("]")):this[e.key.type](e.key,t),t.write(": ")),this[e.value.type](e.value,t))},PropertyDefinition(e,t){if(e.static&&t.write("static "),e.computed&&t.write("["),this[e.key.type](e.key,t),e.computed&&t.write("]"),null==e.value){"F"!==e.key.type[0]&&t.write(";");return}t.write(" = "),this[e.value.type](e.value,t),t.write(";")},ObjectPattern(e,t){if(t.write("{"),e.properties.length>0){let{properties:i}=e,{length:r}=i;for(let e=0;;)if(this[i[e].type](i[e],t),++e<r)t.write(", ");else break}t.write("}")},SequenceExpression(e,t){formatSequence(t,e.expressions)},UnaryExpression(e,t){if(e.prefix){let{operator:i,argument:r,argument:{type:n}}=e;t.write(i);let s=expressionNeedsParenthesis(t,r,e);!s&&(i.length>1||"U"===n[0]&&("n"===n[1]||"p"===n[1])&&r.prefix&&r.operator[0]===i&&("+"===i||"-"===i))&&t.write(" "),s?(t.write(i.length>1?" (":"("),this[n](r,t),t.write(")")):this[n](r,t)}else this[e.argument.type](e.argument,t),t.write(e.operator)},UpdateExpression(e,t){e.prefix?(t.write(e.operator),this[e.argument.type](e.argument,t)):(this[e.argument.type](e.argument,t),t.write(e.operator))},AssignmentExpression(e,t){this[e.left.type](e.left,t),t.write(" "+e.operator+" "),this[e.right.type](e.right,t)},AssignmentPattern(e,t){this[e.left.type](e.left,t),t.write(" = "),this[e.right.type](e.right,t)},BinaryExpression:r=function(e,t){let i="in"===e.operator;i&&t.write("("),formatExpression(t,e.left,e,!1),t.write(" "+e.operator+" "),formatExpression(t,e.right,e,!0),i&&t.write(")")},LogicalExpression:r,ConditionalExpression(e,t){let{test:i}=e,r=t.expressionsPrecedence[i.type];r===m||r<=t.expressionsPrecedence.ConditionalExpression?(t.write("("),this[i.type](i,t),t.write(")")):this[i.type](i,t),t.write(" ? "),this[e.consequent.type](e.consequent,t),t.write(" : "),this[e.alternate.type](e.alternate,t)},NewExpression(e,t){t.write("new ");let i=t.expressionsPrecedence[e.callee.type];i===m||i<t.expressionsPrecedence.CallExpression||hasCallExpression(e.callee)?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),formatSequence(t,e.arguments)},CallExpression(e,t){let i=t.expressionsPrecedence[e.callee.type];i===m||i<t.expressionsPrecedence.CallExpression?(t.write("("),this[e.callee.type](e.callee,t),t.write(")")):this[e.callee.type](e.callee,t),e.optional&&t.write("?."),formatSequence(t,e.arguments)},ChainExpression(e,t){this[e.expression.type](e.expression,t)},MemberExpression(e,t){let i=t.expressionsPrecedence[e.object.type];i===m||i<t.expressionsPrecedence.MemberExpression?(t.write("("),this[e.object.type](e.object,t),t.write(")")):this[e.object.type](e.object,t),e.computed?(e.optional&&t.write("?."),t.write("["),this[e.property.type](e.property,t),t.write("]")):(e.optional?t.write("?."):t.write("."),this[e.property.type](e.property,t))},MetaProperty(e,t){t.write(e.meta.name+"."+e.property.name,e)},Identifier(e,t){t.write(e.name,e)},PrivateIdentifier(e,t){t.write(`#${e.name}`,e)},Literal(e,t){null!=e.raw?t.write(e.raw,e):null!=e.regex?this.RegExpLiteral(e,t):null!=e.bigint?t.write(e.bigint+"n",e):t.write(a(e.value),e)},RegExpLiteral(e,t){let{regex:i}=e;t.write(`/${i.pattern}/${i.flags}`,e)}},c={},h=u;let State=class State{constructor(e){const t=null==e?c:e;this.output="",null!=t.output?(this.output=t.output,this.write=this.writeToStream):this.output="",this.generator=null!=t.generator?t.generator:u,this.expressionsPrecedence=null!=t.expressionsPrecedence?t.expressionsPrecedence:w,this.indent=null!=t.indent?t.indent:" ",this.lineEnd=null!=t.lineEnd?t.lineEnd:"\n",this.indentLevel=null!=t.startingIndentLevel?t.startingIndentLevel:0,this.writeComments=!!t.comments&&t.comments,null!=t.sourceMap&&(this.write=null==t.output?this.writeAndMap:this.writeToStreamAndMap,this.sourceMap=t.sourceMap,this.line=1,this.column=0,this.lineEndSize=this.lineEnd.split("\n").length-1,this.mapping={original:null,generated:this,name:void 0,source:t.sourceMap.file||t.sourceMap._file})}write(e){this.output+=e}writeToStream(e){this.output.write(e)}writeAndMap(e,t){this.output+=e,this.map(e,t)}writeToStreamAndMap(e,t){this.output.write(e),this.map(e,t)}map(e,t){if(null!=t){let{type:i}=t;if("L"===i[0]&&"n"===i[2]){this.column=0,this.line++;return}if(null!=t.loc){let{mapping:e}=this;e.original=t.loc.start,e.name=t.name,this.sourceMap.addMapping(e)}if("T"===i[0]&&"E"===i[8]||"L"===i[0]&&"i"===i[1]&&"string"==typeof t.value){let{length:t}=e,{column:i,line:r}=this;for(let n=0;n<t;n++)"\n"===e[n]?(i=0,r++):i++;this.column=i,this.line=r;return}}let{length:i}=e,{lineEnd:r}=this;i>0&&(this.lineEndSize>0&&(1===r.length?e[i-1]===r:e.endsWith(r))?(this.line+=this.lineEndSize,this.column=0):this.column+=i)}toString(){return this.output}};function generate(e,t){let i=new State(t);return i.generator[e.type](e,i),i.output}module.exports=l})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={"./crypto-randomuuid/index.js"
|
|
1
|
+
(()=>{"use strict";var e={"./crypto-randomuuid/index.js"(e,t,o){let r=o("crypto");e.exports="function"==typeof r.randomUUID?r.randomUUID:o("./crypto-randomuuid/polyfill.js")},"./crypto-randomuuid/polyfill.js"(e,t,o){let r,n,i,s=o("crypto"),{validateBoolean:c,validateObject:u,codes:{ERR_OPERATION_FAILED:a}}=o("./crypto-randomuuid/validators.js"),{randomFillSync:l}=s;function secureBuffer(e){return l(Buffer.alloc(e))}let f=0;function getHexBytes(){if(void 0===i){i=Array(256);for(let e=0;e<i.length;e++){let t=e.toString(16);i[e]=t.padStart(2,"0")}}return i}function serializeUUID(e,t=0){let o=getHexBytes();return o[e[t]]+o[e[t+1]]+o[e[t+2]]+o[e[t+3]]+"-"+o[e[t+4]]+o[e[t+5]]+"-"+o[15&e[t+6]|64]+o[e[t+7]]+"-"+o[63&e[t+8]|128]+o[e[t+9]]+"-"+o[e[t+10]]+o[e[t+11]]+o[e[t+12]]+o[e[t+13]]+o[e[t+14]]+o[e[t+15]]}function getBufferedUUID(){if(r||(r=secureBuffer(2048)),void 0===r)throw new a("Out of memory");return 0===f&&l(r),serializeUUID(r,16*(f=(f+1)%128))}function getUnbufferedUUID(){if(n||(n=secureBuffer(2048)),void 0===n)throw new a("Out of memory");return l(n),serializeUUID(n)}e.exports=function(e){void 0!==e&&u(e,"options");let{disableEntropyCache:t=!1}=e||{};return c(t,"options.disableEntropyCache"),t?getUnbufferedUUID():getBufferedUUID()}},"./crypto-randomuuid/validators.js"(e,t,o){let r=o("assert"),n=o("util"),i=["string","function","number","object","Function","Object","boolean","bigint","symbol"];let ERR_OPERATION_FAILED=class ERR_OPERATION_FAILED extends TypeError{constructor(e){super(`Operation failed: ${e}`),this.code=this.constructor.name,Object.defineProperties(this,{toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}};let ERR_INVALID_ARG_TYPE=class ERR_INVALID_ARG_TYPE extends TypeError{constructor(e,t,o){super(),r("string"==typeof e,"'name' must be a string"),Array.isArray(t)||(t=[t]);let s="The ";if(e.endsWith(" argument"))s+=`${e} `;else{const t=e.includes(".")?"property":"argument";s+=`"${e}" ${t} `}s+="must be ";const c=[],u=[],a=[];for(const e of t)r("string"==typeof e,"All expected entries have to be of type string"),i.includes(e)?c.push(e.toLowerCase()):classRegExp.test(e)?u.push(e):(r("object"!==e,'The value "object" should be written as "Object"'),a.push(e));if(u.length>0){const e=c.indexOf("object");-1!==e&&(c.splice(e,1),u.push("Object"))}if(c.length>0){if(c.length>2){const e=c.pop();s+=`one of type ${c.join(", ")}, or ${e}`}else 2===c.length?s+=`one of type ${c[0]} or ${c[1]}`:s+=`of type ${c[0]}`;(u.length>0||a.length>0)&&(s+=" or ")}if(u.length>0){if(u.length>2){const e=u.pop();s+=`an instance of ${u.join(", ")}, or ${e}`}else s+=`an instance of ${u[0]}`,2===u.length&&(s+=` or ${u[1]}`);a.length>0&&(s+=" or ")}if(a.length>0)if(a.length>2){const e=a.pop();s+=`one of ${a.join(", ")}, or ${e}`}else 2===a.length?s+=`one of ${a[0]} or ${a[1]}`:(a[0].toLowerCase()!==a[0]&&(s+="an "),s+=`${a[0]}`);if(null==o)s+=`. Received ${o}`;else if("function"==typeof o&&o.name)s+=`. Received function ${o.name}`;else if("object"==typeof o)if(o.constructor&&o.constructor.name)s+=`. Received an instance of ${o.constructor.name}`;else{const e=n.inspect(o,{depth:-1});s+=`. Received ${e}`}else{let e=n.inspect(o,{colors:!1});e.length>25&&(e=`${e.slice(0,25)}...`),s+=`. Received type ${typeof o} (${e})`}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:s,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name} [${this.code}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}})}};e.exports={validateBoolean:function(e,t){if("boolean"!=typeof e)throw new ERR_INVALID_ARG_TYPE(t,"boolean",e)},validateObject:function(e,t,{nullable:o=!1,allowArray:r=!1,allowFunction:n=!1}={}){if(!o&&null===e||!r&&Array.isArray(e)||"object"!=typeof e&&(!n||"function"!=typeof e))throw new ERR_INVALID_ARG_TYPE(t,"Object",e)},codes:{ERR_OPERATION_FAILED}}},assert(e){e.exports=require("assert")},crypto(e){e.exports=require("crypto")},util(e){e.exports=require("util")}},t={};function __webpack_require__(o){var r=t[o];if(void 0!==r)return r.exports;var n=t[o]={exports:{}};return e[o](n,n.exports,__webpack_require__),n.exports}var o=__webpack_require__("./crypto-randomuuid/index.js");module.exports=o})();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(()=>{"use strict";var e={};e.d=(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},e.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e.r=e=>{"
|
|
1
|
+
(()=>{"use strict";var e={};e.d=(r,t)=>{for(var o in t)e.o(t,o)&&!e.o(r,o)&&Object.defineProperty(r,o,{enumerable:!0,get:t[o]})},e.o=(e,r)=>Object.prototype.hasOwnProperty.call(e,r),e.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};function escapeStringRegexp(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}e.r(r),e.d(r,{default:()=>escapeStringRegexp}),module.exports=r})();
|