dd-trace 5.87.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.
Files changed (119) hide show
  1. package/LICENSE-3rdparty.csv +60 -32
  2. package/ext/exporters.d.ts +1 -0
  3. package/ext/exporters.js +1 -0
  4. package/ext/tags.js +2 -0
  5. package/index.d.ts +234 -4
  6. package/package.json +18 -11
  7. package/packages/datadog-instrumentations/src/ai.js +54 -90
  8. package/packages/datadog-instrumentations/src/helpers/hook.js +17 -11
  9. package/packages/datadog-instrumentations/src/helpers/rewriter/index.js +27 -110
  10. package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/ai.js +103 -0
  11. package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/bullmq.js +108 -0
  12. package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/index.js +2 -1
  13. package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/compiler.js +74 -0
  14. package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/index.js +43 -0
  15. package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/matcher.js +49 -0
  16. package/packages/datadog-instrumentations/src/helpers/rewriter/orchestrion/transformer.js +121 -0
  17. package/packages/datadog-instrumentations/src/helpers/rewriter/{transforms.js → orchestrion/transforms.js} +143 -17
  18. package/packages/datadog-instrumentations/src/jest.js +176 -54
  19. package/packages/datadog-instrumentations/src/kafkajs.js +20 -17
  20. package/packages/datadog-instrumentations/src/playwright.js +1 -1
  21. package/packages/datadog-plugin-amqplib/src/consumer.js +14 -10
  22. package/packages/datadog-plugin-amqplib/src/producer.js +23 -19
  23. package/packages/datadog-plugin-bullmq/src/consumer.js +33 -11
  24. package/packages/datadog-plugin-bullmq/src/producer.js +60 -31
  25. package/packages/datadog-plugin-cucumber/src/index.js +9 -6
  26. package/packages/datadog-plugin-cypress/src/cypress-plugin.js +62 -5
  27. package/packages/datadog-plugin-cypress/src/source-map-utils.js +297 -0
  28. package/packages/datadog-plugin-cypress/src/support.js +52 -9
  29. package/packages/datadog-plugin-jest/src/index.js +12 -2
  30. package/packages/datadog-plugin-jest/src/util.js +2 -1
  31. package/packages/datadog-plugin-kafkajs/src/consumer.js +22 -12
  32. package/packages/datadog-plugin-kafkajs/src/producer.js +33 -22
  33. package/packages/datadog-plugin-mocha/src/index.js +9 -6
  34. package/packages/datadog-plugin-playwright/src/index.js +10 -6
  35. package/packages/datadog-plugin-vitest/src/index.js +13 -8
  36. package/packages/dd-trace/src/aiguard/sdk.js +5 -1
  37. package/packages/dd-trace/src/appsec/iast/analyzers/cookie-analyzer.js +1 -1
  38. package/packages/dd-trace/src/appsec/iast/analyzers/ssrf-analyzer.js +1 -1
  39. package/packages/dd-trace/src/appsec/iast/analyzers/unvalidated-redirect-analyzer.js +1 -1
  40. package/packages/dd-trace/src/appsec/iast/analyzers/vulnerability-analyzer.js +4 -5
  41. package/packages/dd-trace/src/appsec/iast/path-line.js +36 -25
  42. package/packages/dd-trace/src/appsec/iast/vulnerabilities-formatter/evidence-redaction/sensitive-analyzers/command-sensitive-analyzer.js +1 -1
  43. package/packages/dd-trace/src/appsec/iast/vulnerabilities-formatter/evidence-redaction/sensitive-handler.js +3 -4
  44. package/packages/dd-trace/src/appsec/iast/vulnerabilities-formatter/utils.js +3 -2
  45. package/packages/dd-trace/src/azure_metadata.js +0 -2
  46. package/packages/dd-trace/src/ci-visibility/early-flake-detection/get-known-tests.js +1 -1
  47. package/packages/dd-trace/src/ci-visibility/exporters/ci-visibility-exporter.js +3 -0
  48. package/packages/dd-trace/src/ci-visibility/intelligent-test-runner/get-skippable-suites.js +1 -1
  49. package/packages/dd-trace/src/ci-visibility/requests/get-library-configuration.js +4 -1
  50. package/packages/dd-trace/src/ci-visibility/requests/request.js +236 -0
  51. package/packages/dd-trace/src/ci-visibility/test-management/get-test-management-tests.js +1 -1
  52. package/packages/dd-trace/src/config/defaults.js +148 -197
  53. package/packages/dd-trace/src/config/helper.js +43 -1
  54. package/packages/dd-trace/src/config/index.js +38 -14
  55. package/packages/dd-trace/src/config/supported-configurations.json +4125 -512
  56. package/packages/dd-trace/src/constants.js +0 -2
  57. package/packages/dd-trace/src/crashtracking/crashtracker.js +10 -3
  58. package/packages/dd-trace/src/datastreams/checkpointer.js +13 -0
  59. package/packages/dd-trace/src/datastreams/index.js +3 -0
  60. package/packages/dd-trace/src/datastreams/manager.js +9 -0
  61. package/packages/dd-trace/src/datastreams/pathway.js +22 -3
  62. package/packages/dd-trace/src/datastreams/processor.js +140 -4
  63. package/packages/dd-trace/src/encode/agentless-json.js +155 -0
  64. package/packages/dd-trace/src/exporter.js +2 -0
  65. package/packages/dd-trace/src/exporters/agent/writer.js +21 -8
  66. package/packages/dd-trace/src/exporters/agentless/index.js +89 -0
  67. package/packages/dd-trace/src/exporters/agentless/writer.js +184 -0
  68. package/packages/dd-trace/src/exporters/common/request.js +4 -4
  69. package/packages/dd-trace/src/llmobs/plugins/ai/index.js +5 -3
  70. package/packages/dd-trace/src/opentelemetry/context_manager.js +19 -46
  71. package/packages/dd-trace/src/opentelemetry/otlp/otlp_http_exporter_base.js +3 -4
  72. package/packages/dd-trace/src/opentracing/propagation/text_map.js +3 -5
  73. package/packages/dd-trace/src/opentracing/span.js +6 -4
  74. package/packages/dd-trace/src/pkg.js +1 -1
  75. package/packages/dd-trace/src/plugins/ci_plugin.js +57 -5
  76. package/packages/dd-trace/src/plugins/database.js +15 -2
  77. package/packages/dd-trace/src/plugins/util/test.js +48 -0
  78. package/packages/dd-trace/src/profiling/exporter_cli.js +1 -0
  79. package/packages/dd-trace/src/propagation-hash/index.js +145 -0
  80. package/packages/dd-trace/src/proxy.js +6 -1
  81. package/packages/dd-trace/src/runtime_metrics/runtime_metrics.js +1 -1
  82. package/packages/dd-trace/src/startup-log.js +53 -19
  83. package/vendor/dist/@datadog/sketches-js/index.js +1 -1
  84. package/vendor/dist/@datadog/source-map/index.js +1 -1
  85. package/vendor/dist/@isaacs/ttlcache/index.js +1 -1
  86. package/vendor/dist/@opentelemetry/core/index.js +1 -1
  87. package/vendor/dist/@opentelemetry/resources/index.js +1 -1
  88. package/vendor/dist/astring/index.js +1 -1
  89. package/vendor/dist/crypto-randomuuid/index.js +1 -1
  90. package/vendor/dist/escape-string-regexp/index.js +1 -1
  91. package/vendor/dist/esquery/index.js +1 -1
  92. package/vendor/dist/ignore/index.js +1 -1
  93. package/vendor/dist/istanbul-lib-coverage/index.js +1 -1
  94. package/vendor/dist/jest-docblock/index.js +1 -1
  95. package/vendor/dist/jsonpath-plus/index.js +1 -1
  96. package/vendor/dist/limiter/index.js +1 -1
  97. package/vendor/dist/lodash.sortby/index.js +1 -1
  98. package/vendor/dist/lru-cache/index.js +1 -1
  99. package/vendor/dist/meriyah/index.js +1 -1
  100. package/vendor/dist/module-details-from-path/index.js +1 -1
  101. package/vendor/dist/mutexify/promise/index.js +1 -1
  102. package/vendor/dist/opentracing/index.js +1 -1
  103. package/vendor/dist/path-to-regexp/index.js +1 -1
  104. package/vendor/dist/pprof-format/index.js +1 -1
  105. package/vendor/dist/protobufjs/index.js +1 -1
  106. package/vendor/dist/protobufjs/minimal/index.js +1 -1
  107. package/vendor/dist/retry/index.js +1 -1
  108. package/vendor/dist/rfdc/index.js +1 -1
  109. package/vendor/dist/semifies/index.js +1 -1
  110. package/vendor/dist/shell-quote/index.js +1 -1
  111. package/vendor/dist/source-map/index.js +1 -1
  112. package/vendor/dist/source-map/lib/util/index.js +1 -1
  113. package/vendor/dist/tlhunter-sorted-set/index.js +1 -1
  114. package/vendor/dist/ttl-set/index.js +1 -1
  115. package/packages/datadog-instrumentations/src/helpers/rewriter/compiler.js +0 -33
  116. package/packages/datadog-instrumentations/src/helpers/rewriter/instrumentations/bullmq.json +0 -106
  117. package/packages/dd-trace/src/appsec/iast/analyzers/hardcoded-secrets-rules.js +0 -741
  118. package/packages/dd-trace/src/appsec/iast/vulnerabilities-formatter/evidence-redaction/sensitive-regex.js +0 -11
  119. package/packages/dd-trace/src/scope/noop/scope.js +0 -21
@@ -1 +1 @@
1
- (()=>{"use strict";var __webpack_modules__={"./@datadog/sketches-js/dist/ddsketch/DDSketch.js":function(t,e,n){var i=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogCollapsingHighestDenseDDSketch=e.LogCollapsingLowestDenseDDSketch=e.DDSketch=void 0;var r=n("./@datadog/sketches-js/dist/ddsketch/store/index.js"),o=n("./@datadog/sketches-js/dist/ddsketch/mapping/index.js"),s=.01,a=2048,u=function(){function BaseDDSketch(t){var e=t.mapping,n=t.store,i=t.negativeStore,r=t.zeroCount;this.mapping=e,this.store=n,this.negativeStore=i,this.zeroCount=r,this.count=this.negativeStore.count+this.zeroCount+this.store.count,this.min=1/0,this.max=-1/0,this.sum=0}return BaseDDSketch.prototype.accept=function(t,e){if(void 0===e&&(e=1),e<=0)throw Error("Weight must be a positive number");if(t>this.mapping.minPossible){var n=this.mapping.key(t);this.store.add(n,e)}else if(t<-this.mapping.minPossible){var n=this.mapping.key(-t);this.negativeStore.add(n,e)}else this.zeroCount+=e;this.count+=e,this.sum+=t*e,t<this.min&&(this.min=t),t>this.max&&(this.max=t)},BaseDDSketch.prototype.getValueAtQuantile=function(t){if(t<0||t>1||0===this.count)return NaN;var e=t*(this.count-1),n=0;if(e<this.negativeStore.count){var i=this.negativeStore.count-e-1,r=this.negativeStore.keyAtRank(i,!1);n=-this.mapping.value(r)}else{if(e<this.zeroCount+this.negativeStore.count)return 0;var r=this.store.keyAtRank(e-this.zeroCount-this.negativeStore.count);n=this.mapping.value(r)}return n},BaseDDSketch.prototype.merge=function(t){if(!this.mergeable(t))throw Error("Cannot merge two DDSketches with different `relativeAccuracy` parameters");if(0!==t.count){if(0===this.count)return void this._copy(t);this.store.merge(t.store),this.zeroCount+=t.zeroCount,this.count+=t.count,this.sum+=t.sum,t.min<this.min&&(this.min=t.min),t.max>this.max&&(this.max=t.max)}},BaseDDSketch.prototype.mergeable=function(t){return this.mapping.gamma===t.mapping.gamma},BaseDDSketch.prototype._copy=function(t){this.store.copy(t.store),this.negativeStore.copy(t.negativeStore),this.zeroCount=t.zeroCount,this.min=t.min,this.max=t.max,this.count=t.count,this.sum=t.sum},BaseDDSketch.prototype.toProto=function(){var t=n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").DDSketch,e=t.create({mapping:this.mapping.toProto(),positiveValues:this.store.toProto(),negativeValues:this.negativeStore.toProto(),zeroCount:this.zeroCount});return t.encode(e).finish()},BaseDDSketch.fromProto=function(t){var e=n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").DDSketch.decode(t);return new BaseDDSketch({mapping:o.KeyMapping.fromProto(e.mapping),store:r.DenseStore.fromProto(e.positiveValues),negativeStore:r.DenseStore.fromProto(e.negativeValues),zeroCount:e.zeroCount})},BaseDDSketch}(),p={relativeAccuracy:s};e.DDSketch=function(t){function DDSketch(e){var n=(void 0===e?p:e).relativeAccuracy,i=void 0===n?s:n,a=new o.LogarithmicMapping(i),u=new r.DenseStore,f=new r.DenseStore;return t.call(this,{mapping:a,store:u,negativeStore:f,zeroCount:0})||this}return i(DDSketch,t),DDSketch}(u),e.LogCollapsingLowestDenseDDSketch=function(t){function LogCollapsingLowestDenseDDSketch(e){var n=void 0===e?p:e,i=n.relativeAccuracy,u=void 0===i?s:i,f=n.binLimit,c=void 0===f?a:f,l=new o.LogarithmicMapping(u),h=new r.CollapsingLowestDenseStore(c),d=new r.CollapsingLowestDenseStore(c);return t.call(this,{mapping:l,store:h,negativeStore:d,zeroCount:0})||this}return i(LogCollapsingLowestDenseDDSketch,t),LogCollapsingLowestDenseDDSketch}(u),e.LogCollapsingHighestDenseDDSketch=function(t){function LogCollapsingHighestDenseDDSketch(e){var n=void 0===e?p:e,i=n.relativeAccuracy,u=void 0===i?s:i,f=n.binLimit,c=void 0===f?a:f,l=new o.LogarithmicMapping(u),h=new r.CollapsingHighestDenseStore(c),d=new r.CollapsingHighestDenseStore(c);return t.call(this,{mapping:l,store:h,negativeStore:d,zeroCount:0})||this}return i(LogCollapsingHighestDenseDDSketch,t),LogCollapsingHighestDenseDDSketch}(u)},"./@datadog/sketches-js/dist/ddsketch/index.js":function(t,e,n){var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n("./@datadog/sketches-js/dist/ddsketch/DDSketch.js"),e)},"./@datadog/sketches-js/dist/ddsketch/mapping/CubicallyInterpolatedMapping.js":function(t,e,n){var i=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=void 0;var r=n("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js"),o=n("./@datadog/sketches-js/dist/ddsketch/math.js");e.CubicallyInterpolatedMapping=function(t){function CubicallyInterpolatedMapping(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i.A=6/35,i.B=-.6,i.C=10/7,i._multiplier/=i.C,i}return i(CubicallyInterpolatedMapping,t),CubicallyInterpolatedMapping.prototype._cubicLog2Approx=function(t){var e=(0,o.frexp)(t),n=e[0],i=e[1],r=2*n-1;return((this.A*r+this.B)*r+this.C)*r+(i-1)},CubicallyInterpolatedMapping.prototype._cubicExp2Approx=function(t){var e=Math.floor(t),n=this.B*this.B-3*this.A*this.C,i=2*this.B*this.B*this.B-9*this.A*this.B*this.C-27*this.A*this.A*(t-e),r=Math.cbrt((i-Math.sqrt(i*i-4*n*n*n))/2),s=(-(this.B+r+n/r)/(3*this.A)+1)/2;return(0,o.ldexp)(s,e+1)},CubicallyInterpolatedMapping.prototype._logGamma=function(t){return this._cubicLog2Approx(t)*this._multiplier},CubicallyInterpolatedMapping.prototype._powGamma=function(t){return this._cubicExp2Approx(t/this._multiplier)},CubicallyInterpolatedMapping.prototype._protoInterpolation=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.CUBIC},CubicallyInterpolatedMapping}(r.KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMapping=void 0;var i=n("./@datadog/sketches-js/dist/ddsketch/mapping/index.js"),r=11125369292536007e-324,o=Number.MAX_VALUE;e.KeyMapping=function(){function KeyMapping(t,e){if(void 0===e&&(e=0),t<=0||t>=1)throw Error("Relative accuracy must be between 0 and 1 when initializing a KeyMapping");this.relativeAccuracy=t,this._offset=e;var n=2*t/(1-t);this.gamma=1+n,this._multiplier=1/Math.log1p(n),this.minPossible=r*this.gamma,this.maxPossible=o/this.gamma}return KeyMapping.fromGammaOffset=function(t,e){return new this((t-1)/(t+1),e)},KeyMapping.prototype.key=function(t){return Math.ceil(this._logGamma(t))+this._offset},KeyMapping.prototype.value=function(t){return this._powGamma(t-this._offset)*(2/(1+this.gamma))},KeyMapping.prototype.toProto=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.create({gamma:this.gamma,indexOffset:this._offset,interpolation:this._protoInterpolation()})},KeyMapping.fromProto=function(t){if(!t||null==t.gamma||null==t.indexOffset)throw Error("Failed to decode mapping from protobuf");var e=n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation,r=t.interpolation,o=t.gamma,s=t.indexOffset;switch(r){case e.NONE:return i.LogarithmicMapping.fromGammaOffset(o,s);case e.LINEAR:return i.LinearlyInterpolatedMapping.fromGammaOffset(o,s);case e.CUBIC:return i.CubicallyInterpolatedMapping.fromGammaOffset(o,s);default:throw Error("Unrecognized mapping when decoding from protobuf")}},KeyMapping.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},KeyMapping.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},KeyMapping.prototype._protoInterpolation=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.NONE},KeyMapping}()},"./@datadog/sketches-js/dist/ddsketch/mapping/LinearlyInterpolatedMapping.js":function(t,e,n){var i=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LinearlyInterpolatedMapping=void 0;var r=n("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js"),o=n("./@datadog/sketches-js/dist/ddsketch/math.js");e.LinearlyInterpolatedMapping=function(t){function LinearlyInterpolatedMapping(e,n){return void 0===n&&(n=0),t.call(this,e,n)||this}return i(LinearlyInterpolatedMapping,t),LinearlyInterpolatedMapping.prototype._log2Approx=function(t){var e=(0,o.frexp)(t);return 2*e[0]-1+(e[1]-1)},LinearlyInterpolatedMapping.prototype._exp2Approx=function(t){var e=Math.floor(t)+1,n=(t-e+2)/2;return(0,o.ldexp)(n,e)},LinearlyInterpolatedMapping.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},LinearlyInterpolatedMapping.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},LinearlyInterpolatedMapping.prototype._protoInterpolation=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.LINEAR},LinearlyInterpolatedMapping}(r.KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/LogarithmicMapping.js":function(t,e,n){var i=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogarithmicMapping=void 0,e.LogarithmicMapping=function(t){function LogarithmicMapping(e,n){void 0===n&&(n=0);var i=t.call(this,e,n)||this;return i._multiplier*=Math.log(2),i}return i(LogarithmicMapping,t),LogarithmicMapping.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},LogarithmicMapping.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},LogarithmicMapping.prototype._protoInterpolation=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.NONE},LogarithmicMapping}(n("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js").KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/index.js":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=e.LinearlyInterpolatedMapping=e.LogarithmicMapping=e.KeyMapping=void 0;var i=n("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js");Object.defineProperty(e,"KeyMapping",{enumerable:!0,get:function(){return i.KeyMapping}});var r=n("./@datadog/sketches-js/dist/ddsketch/mapping/LogarithmicMapping.js");Object.defineProperty(e,"LogarithmicMapping",{enumerable:!0,get:function(){return r.LogarithmicMapping}});var o=n("./@datadog/sketches-js/dist/ddsketch/mapping/LinearlyInterpolatedMapping.js");Object.defineProperty(e,"LinearlyInterpolatedMapping",{enumerable:!0,get:function(){return o.LinearlyInterpolatedMapping}});var s=n("./@datadog/sketches-js/dist/ddsketch/mapping/CubicallyInterpolatedMapping.js");Object.defineProperty(e,"CubicallyInterpolatedMapping",{enumerable:!0,get:function(){return s.CubicallyInterpolatedMapping}})},"./@datadog/sketches-js/dist/ddsketch/math.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ldexp=e.frexp=void 0,e.frexp=function(t){if(0===t||!Number.isFinite(t))return[t,0];for(var e=Math.abs(t),n=Math.max(-1023,Math.floor(Math.log2(e))+1),i=e*Math.pow(2,-n);i<.5;)i*=2,n--;for(;i>=1;)i*=.5,n++;return t<0&&(i=-i),[i,n]},e.ldexp=function(t,e){for(var n=Math.min(3,Math.ceil(Math.abs(e)/1023)),i=t,r=0;r<n;r++)i*=Math.pow(2,Math.floor((e+r)/n));return i}},"./@datadog/sketches-js/dist/ddsketch/proto/compiled.js":function(t,e,n){var i=n("./protobufjs/minimal.js"),r=i.Reader,o=i.Writer,s=i.util,a=i.roots.default||(i.roots.default={});a.DDSketch=function(){function DDSketch(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return DDSketch.prototype.mapping=null,DDSketch.prototype.positiveValues=null,DDSketch.prototype.negativeValues=null,DDSketch.prototype.zeroCount=0,DDSketch.create=function(t){return new DDSketch(t)},DDSketch.encode=function(t,e){return e||(e=o.create()),null!=t.mapping&&Object.hasOwnProperty.call(t,"mapping")&&a.IndexMapping.encode(t.mapping,e.uint32(10).fork()).ldelim(),null!=t.positiveValues&&Object.hasOwnProperty.call(t,"positiveValues")&&a.Store.encode(t.positiveValues,e.uint32(18).fork()).ldelim(),null!=t.negativeValues&&Object.hasOwnProperty.call(t,"negativeValues")&&a.Store.encode(t.negativeValues,e.uint32(26).fork()).ldelim(),null!=t.zeroCount&&Object.hasOwnProperty.call(t,"zeroCount")&&e.uint32(33).double(t.zeroCount),e},DDSketch.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},DDSketch.decode=function(t,e){t instanceof r||(t=r.create(t));for(var n=void 0===e?t.len:t.pos+e,i=new a.DDSketch;t.pos<n;){var o=t.uint32();switch(o>>>3){case 1:i.mapping=a.IndexMapping.decode(t,t.uint32());break;case 2:i.positiveValues=a.Store.decode(t,t.uint32());break;case 3:i.negativeValues=a.Store.decode(t,t.uint32());break;case 4:i.zeroCount=t.double();break;default:t.skipType(7&o)}}return i},DDSketch.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},DDSketch.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.mapping&&t.hasOwnProperty("mapping")){var e=a.IndexMapping.verify(t.mapping);if(e)return"mapping."+e}if(null!=t.positiveValues&&t.hasOwnProperty("positiveValues")){var e=a.Store.verify(t.positiveValues);if(e)return"positiveValues."+e}if(null!=t.negativeValues&&t.hasOwnProperty("negativeValues")){var e=a.Store.verify(t.negativeValues);if(e)return"negativeValues."+e}return null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&"number"!=typeof t.zeroCount?"zeroCount: number expected":null},DDSketch.fromObject=function(t){if(t instanceof a.DDSketch)return t;var e=new a.DDSketch;if(null!=t.mapping){if("object"!=typeof t.mapping)throw TypeError(".DDSketch.mapping: object expected");e.mapping=a.IndexMapping.fromObject(t.mapping)}if(null!=t.positiveValues){if("object"!=typeof t.positiveValues)throw TypeError(".DDSketch.positiveValues: object expected");e.positiveValues=a.Store.fromObject(t.positiveValues)}if(null!=t.negativeValues){if("object"!=typeof t.negativeValues)throw TypeError(".DDSketch.negativeValues: object expected");e.negativeValues=a.Store.fromObject(t.negativeValues)}return null!=t.zeroCount&&(e.zeroCount=Number(t.zeroCount)),e},DDSketch.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.mapping=null,n.positiveValues=null,n.negativeValues=null,n.zeroCount=0),null!=t.mapping&&t.hasOwnProperty("mapping")&&(n.mapping=a.IndexMapping.toObject(t.mapping,e)),null!=t.positiveValues&&t.hasOwnProperty("positiveValues")&&(n.positiveValues=a.Store.toObject(t.positiveValues,e)),null!=t.negativeValues&&t.hasOwnProperty("negativeValues")&&(n.negativeValues=a.Store.toObject(t.negativeValues,e)),null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&(n.zeroCount=e.json&&!isFinite(t.zeroCount)?String(t.zeroCount):t.zeroCount),n},DDSketch.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},DDSketch}(),a.IndexMapping=function(){function IndexMapping(t){if(t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return IndexMapping.prototype.gamma=0,IndexMapping.prototype.indexOffset=0,IndexMapping.prototype.interpolation=0,IndexMapping.create=function(t){return new IndexMapping(t)},IndexMapping.encode=function(t,e){return e||(e=o.create()),null!=t.gamma&&Object.hasOwnProperty.call(t,"gamma")&&e.uint32(9).double(t.gamma),null!=t.indexOffset&&Object.hasOwnProperty.call(t,"indexOffset")&&e.uint32(17).double(t.indexOffset),null!=t.interpolation&&Object.hasOwnProperty.call(t,"interpolation")&&e.uint32(24).int32(t.interpolation),e},IndexMapping.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},IndexMapping.decode=function(t,e){t instanceof r||(t=r.create(t));for(var n=void 0===e?t.len:t.pos+e,i=new a.IndexMapping;t.pos<n;){var o=t.uint32();switch(o>>>3){case 1:i.gamma=t.double();break;case 2:i.indexOffset=t.double();break;case 3:i.interpolation=t.int32();break;default:t.skipType(7&o)}}return i},IndexMapping.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},IndexMapping.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.gamma&&t.hasOwnProperty("gamma")&&"number"!=typeof t.gamma)return"gamma: number expected";if(null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&"number"!=typeof t.indexOffset)return"indexOffset: number expected";if(null!=t.interpolation&&t.hasOwnProperty("interpolation"))switch(t.interpolation){default:return"interpolation: enum value expected";case 0:case 1:case 2:case 3:}return null},IndexMapping.fromObject=function(t){if(t instanceof a.IndexMapping)return t;var e=new a.IndexMapping;switch(null!=t.gamma&&(e.gamma=Number(t.gamma)),null!=t.indexOffset&&(e.indexOffset=Number(t.indexOffset)),t.interpolation){case"NONE":case 0:e.interpolation=0;break;case"LINEAR":case 1:e.interpolation=1;break;case"QUADRATIC":case 2:e.interpolation=2;break;case"CUBIC":case 3:e.interpolation=3}return e},IndexMapping.toObject=function(t,e){e||(e={});var n={};return e.defaults&&(n.gamma=0,n.indexOffset=0,n.interpolation=e.enums===String?"NONE":0),null!=t.gamma&&t.hasOwnProperty("gamma")&&(n.gamma=e.json&&!isFinite(t.gamma)?String(t.gamma):t.gamma),null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&(n.indexOffset=e.json&&!isFinite(t.indexOffset)?String(t.indexOffset):t.indexOffset),null!=t.interpolation&&t.hasOwnProperty("interpolation")&&(n.interpolation=e.enums===String?a.IndexMapping.Interpolation[t.interpolation]:t.interpolation),n},IndexMapping.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},IndexMapping.Interpolation=function(){var t={},e=Object.create(t);return e[t[0]="NONE"]=0,e[t[1]="LINEAR"]=1,e[t[2]="QUADRATIC"]=2,e[t[3]="CUBIC"]=3,e}(),IndexMapping}(),a.Store=function(){function Store(t){if(this.binCounts={},this.contiguousBinCounts=[],t)for(var e=Object.keys(t),n=0;n<e.length;++n)null!=t[e[n]]&&(this[e[n]]=t[e[n]])}return Store.prototype.binCounts=s.emptyObject,Store.prototype.contiguousBinCounts=s.emptyArray,Store.prototype.contiguousBinIndexOffset=0,Store.create=function(t){return new Store(t)},Store.encode=function(t,e){if(e||(e=o.create()),null!=t.binCounts&&Object.hasOwnProperty.call(t,"binCounts"))for(var n=Object.keys(t.binCounts),i=0;i<n.length;++i)e.uint32(10).fork().uint32(8).sint32(n[i]).uint32(17).double(t.binCounts[n[i]]).ldelim();if(null!=t.contiguousBinCounts&&t.contiguousBinCounts.length){e.uint32(18).fork();for(var i=0;i<t.contiguousBinCounts.length;++i)e.double(t.contiguousBinCounts[i]);e.ldelim()}return null!=t.contiguousBinIndexOffset&&Object.hasOwnProperty.call(t,"contiguousBinIndexOffset")&&e.uint32(24).sint32(t.contiguousBinIndexOffset),e},Store.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},Store.decode=function(t,e){t instanceof r||(t=r.create(t));for(var n,i,o=void 0===e?t.len:t.pos+e,u=new a.Store;t.pos<o;){var p=t.uint32();switch(p>>>3){case 1:u.binCounts===s.emptyObject&&(u.binCounts={});var f=t.uint32()+t.pos;for(n=0,i=0;t.pos<f;){var c=t.uint32();switch(c>>>3){case 1:n=t.sint32();break;case 2:i=t.double();break;default:t.skipType(7&c)}}u.binCounts[n]=i;break;case 2:if(u.contiguousBinCounts&&u.contiguousBinCounts.length||(u.contiguousBinCounts=[]),(7&p)==2)for(var f=t.uint32()+t.pos;t.pos<f;)u.contiguousBinCounts.push(t.double());else u.contiguousBinCounts.push(t.double());break;case 3:u.contiguousBinIndexOffset=t.sint32();break;default:t.skipType(7&p)}}return u},Store.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},Store.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.binCounts&&t.hasOwnProperty("binCounts")){if(!s.isObject(t.binCounts))return"binCounts: object expected";for(var e=Object.keys(t.binCounts),n=0;n<e.length;++n){if(!s.key32Re.test(e[n]))return"binCounts: integer key{k:sint32} expected";if("number"!=typeof t.binCounts[e[n]])return"binCounts: number{k:sint32} expected"}}if(null!=t.contiguousBinCounts&&t.hasOwnProperty("contiguousBinCounts")){if(!Array.isArray(t.contiguousBinCounts))return"contiguousBinCounts: array expected";for(var n=0;n<t.contiguousBinCounts.length;++n)if("number"!=typeof t.contiguousBinCounts[n])return"contiguousBinCounts: number[] expected"}return null!=t.contiguousBinIndexOffset&&t.hasOwnProperty("contiguousBinIndexOffset")&&!s.isInteger(t.contiguousBinIndexOffset)?"contiguousBinIndexOffset: integer expected":null},Store.fromObject=function(t){if(t instanceof a.Store)return t;var e=new a.Store;if(t.binCounts){if("object"!=typeof t.binCounts)throw TypeError(".Store.binCounts: object expected");e.binCounts={};for(var n=Object.keys(t.binCounts),i=0;i<n.length;++i)e.binCounts[n[i]]=Number(t.binCounts[n[i]])}if(t.contiguousBinCounts){if(!Array.isArray(t.contiguousBinCounts))throw TypeError(".Store.contiguousBinCounts: array expected");e.contiguousBinCounts=[];for(var i=0;i<t.contiguousBinCounts.length;++i)e.contiguousBinCounts[i]=Number(t.contiguousBinCounts[i])}return null!=t.contiguousBinIndexOffset&&(e.contiguousBinIndexOffset=0|t.contiguousBinIndexOffset),e},Store.toObject=function(t,e){e||(e={});var n,i={};if((e.arrays||e.defaults)&&(i.contiguousBinCounts=[]),(e.objects||e.defaults)&&(i.binCounts={}),e.defaults&&(i.contiguousBinIndexOffset=0),t.binCounts&&(n=Object.keys(t.binCounts)).length){i.binCounts={};for(var r=0;r<n.length;++r)i.binCounts[n[r]]=e.json&&!isFinite(t.binCounts[n[r]])?String(t.binCounts[n[r]]):t.binCounts[n[r]]}if(t.contiguousBinCounts&&t.contiguousBinCounts.length){i.contiguousBinCounts=[];for(var r=0;r<t.contiguousBinCounts.length;++r)i.contiguousBinCounts[r]=e.json&&!isFinite(t.contiguousBinCounts[r])?String(t.contiguousBinCounts[r]):t.contiguousBinCounts[r]}return null!=t.contiguousBinIndexOffset&&t.hasOwnProperty("contiguousBinIndexOffset")&&(i.contiguousBinIndexOffset=t.contiguousBinIndexOffset),i},Store.prototype.toJSON=function(){return this.constructor.toObject(this,i.util.toJSONOptions)},Store}(),t.exports=a},"./@datadog/sketches-js/dist/ddsketch/store/CollapsingHighestDenseStore.js":function(t,e,n){var i=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingHighestDenseStore=void 0;var r=n("./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js"),o=n("./@datadog/sketches-js/dist/ddsketch/store/util.js");e.CollapsingHighestDenseStore=function(t){function CollapsingHighestDenseStore(e,n){var i=t.call(this,n)||this;return i.binLimit=e,i.isCollapsed=!1,i}return i(CollapsingHighestDenseStore,t),CollapsingHighestDenseStore.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKey<this.minKey||t.maxKey>this.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.maxKey-t.offset+1,n=Math.max(this.maxKey+1,t.minKey)-t.offset;if(e>n){var i=(0,o.sumOfRange)(t.bins,n,e);this.bins[this.length()-1]+=i}else n=e;for(var r=t.minKey;r<n+t.offset;r++)this.bins[r-this.offset]+=t.bins[r-t.offset];this.count+=t.count}},CollapsingHighestDenseStore.prototype.copy=function(e){t.prototype.copy.call(this,e),this.isCollapsed=e.isCollapsed},CollapsingHighestDenseStore.prototype._getNewLength=function(t,e){var n=e-t+1;return Math.min(this.chunkSize*Math.ceil(n/this.chunkSize),this.binLimit)},CollapsingHighestDenseStore.prototype._adjust=function(t,e){if(e-t+1>this.length())if((e=t+this.length()+1)<=this.minKey)this.offset=t,this.maxKey=e,this.bins.fill(0),this.bins[this.length()-1]=this.count;else{var n=this.offset-t;if(n>0){var i=e-this.offset+1,r=this.maxKey-this.offset+1,s=(0,o.sumOfRange)(this.bins,i,r);this.bins.fill(0,i,r),this.bins[i-1]+=s,this.maxKey=e,this._shiftBins(n)}else this.maxKey=e,this._shiftBins(n);this.minKey=t,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},CollapsingHighestDenseStore.prototype._getIndex=function(t){if(t<this.minKey){if(this.isCollapsed||(this._extendRange(t),this.isCollapsed))return this.length()-1}else t>this.maxKey&&this._extendRange(t);return t-this.offset},CollapsingHighestDenseStore}(r.DenseStore)},"./@datadog/sketches-js/dist/ddsketch/store/CollapsingLowestDenseStore.js":function(t,e,n){var i=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingLowestDenseStore=void 0;var r=n("./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js"),o=n("./@datadog/sketches-js/dist/ddsketch/store/util.js");e.CollapsingLowestDenseStore=function(t){function CollapsingLowestDenseStore(e,n){var i=t.call(this,n)||this;return i.binLimit=e,i.isCollapsed=!1,i}return i(CollapsingLowestDenseStore,t),CollapsingLowestDenseStore.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKey<this.minKey||t.maxKey>this.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,o.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var r=n+t.offset;r<t.maxKey+1;r++)this.bins[r-this.offset]+=t.bins[r-t.offset];this.count+=t.count}},CollapsingLowestDenseStore.prototype.copy=function(e){t.prototype.copy.call(this,e),this.isCollapsed=e.isCollapsed},CollapsingLowestDenseStore.prototype._getNewLength=function(t,e){var n=e-t+1;return Math.min(this.chunkSize*Math.ceil(n/this.chunkSize),this.binLimit)},CollapsingLowestDenseStore.prototype._adjust=function(t,e){if(e-t+1>this.length()){if((t=e-this.length()+1)>=this.maxKey)this.offset=t,this.minKey=t,this.bins.fill(0),this.bins[0]=this.count;else{var n=this.offset-t;if(n<0){var i=this.minKey-this.offset,r=t-this.offset,s=(0,o.sumOfRange)(this.bins,i,r);this.bins.fill(0,i,r),this.bins[r]+=s,this.minKey=t,this._shiftBins(n)}else this.minKey=t,this._shiftBins(n)}this.maxKey=e,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},CollapsingLowestDenseStore.prototype._getIndex=function(t){if(t<this.minKey){if(this.isCollapsed||(this._extendRange(t),this.isCollapsed))return 0}else t>this.maxKey&&this._extendRange(t);return t-this.offset},CollapsingLowestDenseStore}(r.DenseStore)},"./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js":function(t,e,n){var i=this&&this.__spreadArray||function(t,e,n){if(n||2==arguments.length)for(var i,r=0,o=e.length;r<o;r++)!i&&r in e||(i||(i=Array.prototype.slice.call(e,0,r)),i[r]=e[r]);return t.concat(i||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DenseStore=void 0;var r=n("./@datadog/sketches-js/dist/ddsketch/store/util.js"),o=128;e.DenseStore=function(){function DenseStore(t){void 0===t&&(t=o),this.chunkSize=t,this.bins=[],this.count=0,this.minKey=1/0,this.maxKey=-1/0,this.offset=0}return DenseStore.prototype.add=function(t,e){void 0===e&&(e=1);var n=this._getIndex(t);this.bins[n]+=e,this.count+=e},DenseStore.prototype.keyAtRank=function(t,e){void 0===e&&(e=!0);for(var n=0,i=0;i<this.length();i++)if(n+=this.bins[i],e&&n>t||!e&&n>=t+1)return i+this.offset;return this.maxKey},DenseStore.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKey<this.minKey||t.maxKey>this.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,n=Math.min(this.minKey,t.maxKey+1)-t.offset;if(n>e){var i=(0,r.sumOfRange)(t.bins,e,n);this.bins[0]+=i}else n=e;for(var o=n+t.offset;o<t.maxKey+1;o++)this.bins[o-this.offset]+=t.bins[o-t.offset];this.count+=t.count}},DenseStore.prototype.copy=function(t){this.bins=i([],t.bins,!0),this.count=t.count,this.minKey=t.minKey,this.maxKey=t.maxKey,this.offset=t.offset},DenseStore.prototype.length=function(){return this.bins.length},DenseStore.prototype._getNewLength=function(t,e){var n=e-t+1;return this.chunkSize*Math.ceil(n/this.chunkSize)},DenseStore.prototype._adjust=function(t,e){this._centerBins(t,e),this.minKey=t,this.maxKey=e},DenseStore.prototype._shiftBins=function(t){var e,n;t>0?(this.bins=this.bins.slice(0,-t),(e=this.bins).unshift.apply(e,Array(t).fill(0))):(this.bins=this.bins.slice(Math.abs(t)),(n=this.bins).push.apply(n,Array(Math.abs(t)).fill(0))),this.offset-=t},DenseStore.prototype._centerBins=function(t,e){var n=t+Math.floor((e-t+1)/2);this._shiftBins(Math.floor(this.offset+this.length()/2)-n)},DenseStore.prototype._extendRange=function(t,e){e=e||t;var n,i=Math.min(t,e,this.minKey),r=Math.max(t,e,this.maxKey);if(0===this.length())this.bins=Array(this._getNewLength(i,r)).fill(0),this.offset=i,this._adjust(i,r);else if(i>=this.minKey&&r<this.offset+this.length())this.minKey=i,this.maxKey=r;else{var o=this._getNewLength(i,r);o>this.length()&&(n=this.bins).push.apply(n,Array(o-this.length()).fill(0)),this._adjust(i,r)}},DenseStore.prototype._getIndex=function(t){return t<this.minKey?this._extendRange(t):t>this.maxKey&&this._extendRange(t),t-this.offset},DenseStore.prototype.toProto=function(){return n("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").Store.create({contiguousBinCounts:this.bins,contiguousBinIndexOffset:this.offset})},DenseStore.fromProto=function(t){if(!t||null==t.contiguousBinCounts||null==t.contiguousBinIndexOffset)throw Error("Failed to decode store from protobuf");var e=new this,n=t.contiguousBinIndexOffset;e.offset=n;for(var i=0,r=t.contiguousBinCounts;i<r.length;i++){var o=r[i];e.add(n,o),n+=1}return e},DenseStore}()},"./@datadog/sketches-js/dist/ddsketch/store/index.js":function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingHighestDenseStore=e.CollapsingLowestDenseStore=e.DenseStore=void 0;var i=n("./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js");Object.defineProperty(e,"DenseStore",{enumerable:!0,get:function(){return i.DenseStore}});var r=n("./@datadog/sketches-js/dist/ddsketch/store/CollapsingLowestDenseStore.js");Object.defineProperty(e,"CollapsingLowestDenseStore",{enumerable:!0,get:function(){return r.CollapsingLowestDenseStore}});var o=n("./@datadog/sketches-js/dist/ddsketch/store/CollapsingHighestDenseStore.js");Object.defineProperty(e,"CollapsingHighestDenseStore",{enumerable:!0,get:function(){return o.CollapsingHighestDenseStore}})},"./@datadog/sketches-js/dist/ddsketch/store/util.js":function(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sumOfRange=void 0,e.sumOfRange=function(t,e,n){for(var i=0,r=e;r<=n;r++)i+=t[r];return i}},"./@datadog/sketches-js/dist/index.js":function(t,e,n){var i=this&&this.__createBinding||(Object.create?function(t,e,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(e,n);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,i,r)}:function(t,e,n,i){void 0===i&&(i=n),t[i]=e[n]}),r=this&&this.__exportStar||function(t,e){for(var n in t)"default"===n||Object.prototype.hasOwnProperty.call(e,n)||i(e,t,n)};Object.defineProperty(e,"__esModule",{value:!0}),r(n("./@datadog/sketches-js/dist/ddsketch/index.js"),e)},"./@protobufjs/aspromise/index.js":function(t){t.exports=asPromise;function asPromise(t,e){for(var n=Array(arguments.length-1),i=0,r=2,o=!0;r<arguments.length;)n[i++]=arguments[r++];return new Promise(function(r,s){n[i]=function(t){if(o)if(o=!1,t)s(t);else{for(var e=Array(arguments.length-1),n=0;n<e.length;)e[n++]=arguments[n];r.apply(null,e)}};try{t.apply(e||null,n)}catch(t){o&&(o=!1,s(t))}})}},"./@protobufjs/base64/index.js":function(t,e){var n=e;n.length=function(t){var e=t.length;if(!e)return 0;for(var n=0;--e%4>1&&"="===t.charAt(e);)++n;return Math.ceil(3*t.length)/4-n};for(var i=Array(64),r=Array(123),o=0;o<64;)r[i[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;n.encode=function(t,e,n){for(var r,o=null,s=[],a=0,u=0;e<n;){var p=t[e++];switch(u){case 0:s[a++]=i[p>>2],r=(3&p)<<4,u=1;break;case 1:s[a++]=i[r|p>>4],r=(15&p)<<2,u=2;break;case 2:s[a++]=i[r|p>>6],s[a++]=i[63&p],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return(u&&(s[a++]=i[r],s[a++]=61,1===u&&(s[a++]=61)),o)?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";n.decode=function(t,e,n){for(var i,o=n,a=0,u=0;u<t.length;){var p=t.charCodeAt(u++);if(61===p&&a>1)break;if(void 0===(p=r[p]))throw Error(s);switch(a){case 0:i=p,a=1;break;case 1:e[n++]=i<<2|(48&p)>>4,i=p,a=2;break;case 2:e[n++]=(15&i)<<4|(60&p)>>2,i=p,a=3;break;case 3:e[n++]=(3&i)<<6|p,a=0}}if(1===a)throw Error(s);return n-o},n.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},"./@protobufjs/eventemitter/index.js":function(t){function EventEmitter(){this._listeners={}}t.exports=EventEmitter,EventEmitter.prototype.on=function(t,e,n){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:n||this}),this},EventEmitter.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var n=this._listeners[t],i=0;i<n.length;)n[i].fn===e?n.splice(i,1):++i;return this},EventEmitter.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var n=[],i=1;i<arguments.length;)n.push(arguments[i++]);for(i=0;i<e.length;)e[i].fn.apply(e[i++].ctx,n)}return this}},"./@protobufjs/float/index.js":function(t){function factory(t){return"undefined"!=typeof Float32Array?!function(){var e=new Float32Array([-0]),n=new Uint8Array(e.buffer),i=128===n[3];function writeFloat_f32_cpy(t,i,r){e[0]=t,i[r]=n[0],i[r+1]=n[1],i[r+2]=n[2],i[r+3]=n[3]}function writeFloat_f32_rev(t,i,r){e[0]=t,i[r]=n[3],i[r+1]=n[2],i[r+2]=n[1],i[r+3]=n[0]}function readFloat_f32_cpy(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],e[0]}function readFloat_f32_rev(t,i){return n[3]=t[i],n[2]=t[i+1],n[1]=t[i+2],n[0]=t[i+3],e[0]}t.writeFloatLE=i?writeFloat_f32_cpy:writeFloat_f32_rev,t.writeFloatBE=i?writeFloat_f32_rev:writeFloat_f32_cpy,t.readFloatLE=i?readFloat_f32_cpy:readFloat_f32_rev,t.readFloatBE=i?readFloat_f32_rev:readFloat_f32_cpy}():!function(){function writeFloat_ieee754(t,e,n,i){var r=+(e<0);if(r&&(e=-e),0===e)t(1/e>0?0:0x80000000,n,i);else if(isNaN(e))t(0x7fc00000,n,i);else if(e>34028234663852886e22)t((r<<31|0x7f800000)>>>0,n,i);else if(e<11754943508222875e-54)t((r<<31|Math.round(e/1401298464324817e-60))>>>0,n,i);else{var o=Math.floor(Math.log(e)/Math.LN2),s=8388607&Math.round(e*Math.pow(2,-o)*8388608);t((r<<31|o+127<<23|s)>>>0,n,i)}}function readFloat_ieee754(t,e,n){var i=t(e,n),r=(i>>31)*2+1,o=i>>>23&255,s=8388607&i;return 255===o?s?NaN:1/0*r:0===o?1401298464324817e-60*r*s:r*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),t.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),t.readFloatLE=readFloat_ieee754.bind(null,readUintLE),t.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}(),"undefined"!=typeof Float64Array?!function(){var e=new Float64Array([-0]),n=new Uint8Array(e.buffer),i=128===n[7];function writeDouble_f64_cpy(t,i,r){e[0]=t,i[r]=n[0],i[r+1]=n[1],i[r+2]=n[2],i[r+3]=n[3],i[r+4]=n[4],i[r+5]=n[5],i[r+6]=n[6],i[r+7]=n[7]}function writeDouble_f64_rev(t,i,r){e[0]=t,i[r]=n[7],i[r+1]=n[6],i[r+2]=n[5],i[r+3]=n[4],i[r+4]=n[3],i[r+5]=n[2],i[r+6]=n[1],i[r+7]=n[0]}function readDouble_f64_cpy(t,i){return n[0]=t[i],n[1]=t[i+1],n[2]=t[i+2],n[3]=t[i+3],n[4]=t[i+4],n[5]=t[i+5],n[6]=t[i+6],n[7]=t[i+7],e[0]}function readDouble_f64_rev(t,i){return n[7]=t[i],n[6]=t[i+1],n[5]=t[i+2],n[4]=t[i+3],n[3]=t[i+4],n[2]=t[i+5],n[1]=t[i+6],n[0]=t[i+7],e[0]}t.writeDoubleLE=i?writeDouble_f64_cpy:writeDouble_f64_rev,t.writeDoubleBE=i?writeDouble_f64_rev:writeDouble_f64_cpy,t.readDoubleLE=i?readDouble_f64_cpy:readDouble_f64_rev,t.readDoubleBE=i?readDouble_f64_rev:readDouble_f64_cpy}():!function(){function writeDouble_ieee754(t,e,n,i,r,o){var s,a=+(i<0);if(a&&(i=-i),0===i)t(0,r,o+e),t(1/i>0?0:0x80000000,r,o+n);else if(isNaN(i))t(0,r,o+e),t(0x7ff80000,r,o+n);else if(i>17976931348623157e292)t(0,r,o+e),t((a<<31|0x7ff00000)>>>0,r,o+n);else if(i<22250738585072014e-324)t((s=i/5e-324)>>>0,r,o+e),t((a<<31|s/0x100000000)>>>0,r,o+n);else{var u=Math.floor(Math.log(i)/Math.LN2);1024===u&&(u=1023),t(0x10000000000000*(s=i*Math.pow(2,-u))>>>0,r,o+e),t((a<<31|u+1023<<20|1048576*s&1048575)>>>0,r,o+n)}}function readDouble_ieee754(t,e,n,i,r){var o=t(i,r+e),s=t(i,r+n),a=(s>>31)*2+1,u=s>>>20&2047,p=0x100000000*(1048575&s)+o;return 2047===u?p?NaN:1/0*a:0===u?5e-324*a*p:a*Math.pow(2,u-1075)*(p+0x10000000000000)}t.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),t.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),t.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),t.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}(),t}function writeUintLE(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}function writeUintBE(t,e,n){e[n]=t>>>24,e[n+1]=t>>>16&255,e[n+2]=t>>>8&255,e[n+3]=255&t}function readUintLE(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function readUintBE(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=factory(factory)},"./@protobufjs/inquire/index.js":function(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},"./@protobufjs/pool/index.js":function(t){t.exports=pool;function pool(t,e,n){var i=n||8192,r=i>>>1,o=null,s=i;return function(n){if(n<1||n>r)return t(n);s+n>i&&(o=t(i),s=0);var a=e.call(o,s,s+=n);return 7&s&&(s=(7|s)+1),a}}},"./@protobufjs/utf8/index.js":function(t,e){var n=e;n.length=function(t){for(var e=0,n=0,i=0;i<t.length;++i)(n=t.charCodeAt(i))<128?e+=1:n<2048?e+=2:(64512&n)==55296&&(64512&t.charCodeAt(i+1))==56320?(++i,e+=4):e+=3;return e},n.read=function(t,e,n){if(n-e<1)return"";for(var i,r=null,o=[],s=0;e<n;)(i=t[e++])<128?o[s++]=i:i>191&&i<224?o[s++]=(31&i)<<6|63&t[e++]:i>239&&i<365?(i=((7&i)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,o[s++]=55296+(i>>10),o[s++]=56320+(1023&i)):o[s++]=(15&i)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),s=0);return r?(s&&r.push(String.fromCharCode.apply(String,o.slice(0,s))),r.join("")):String.fromCharCode.apply(String,o.slice(0,s))},n.write=function(t,e,n){for(var i,r,o=n,s=0;s<t.length;++s)(i=t.charCodeAt(s))<128?e[n++]=i:(i<2048?e[n++]=i>>6|192:((64512&i)==55296&&(64512&(r=t.charCodeAt(s+1)))==56320?(i=65536+((1023&i)<<10)+(1023&r),++s,e[n++]=i>>18|240,e[n++]=i>>12&63|128):e[n++]=i>>12|224,e[n++]=i>>6&63|128),e[n++]=63&i|128);return n-o}},"./protobufjs/minimal.js":function(t,e,n){t.exports=n("./protobufjs/src/index-minimal.js")},"./protobufjs/src/index-minimal.js":function(t,e,n){var i=e;function configure(){i.util._configure(),i.Writer._configure(i.BufferWriter),i.Reader._configure(i.BufferReader)}i.build="minimal",i.Writer=n("./protobufjs/src/writer.js"),i.BufferWriter=n("./protobufjs/src/writer_buffer.js"),i.Reader=n("./protobufjs/src/reader.js"),i.BufferReader=n("./protobufjs/src/reader_buffer.js"),i.util=n("./protobufjs/src/util/minimal.js"),i.rpc=n("./protobufjs/src/rpc.js"),i.roots=n("./protobufjs/src/roots.js"),i.configure=configure,configure()},"./protobufjs/src/reader.js":function(t,e,n){t.exports=Reader;var i,r=n("./protobufjs/src/util/minimal.js"),o=r.LongBits,s=r.utf8;function indexOutOfRange(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function Reader(t){this.buf=t,this.pos=0,this.len=t.length}var a="undefined"!=typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new Reader(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new Reader(t);throw Error("illegal buffer")},create=function(){return r.Buffer?function(t){return(Reader.create=function(t){return r.Buffer.isBuffer(t)?new i(t):a(t)})(t)}:a};function readLongVarint(){var t=new o(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw indexOutOfRange(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw indexOutOfRange(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function readFixed32_end(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new o(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=r.Array.prototype.subarray||r.Array.prototype.slice,Reader.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return t}}(),Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},Reader.prototype.bool=function(){return 0!==this.uint32()},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var t=r.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var t=r.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},Reader.prototype.bytes=function(){var t=this.uint32(),e=this.pos,n=this.pos+t;if(n>this.len)throw indexOutOfRange(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,n);if(e===n){var i=r.Buffer;return i?i.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,n)},Reader.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},Reader.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw indexOutOfRange(this,t);this.pos+=t}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},Reader._configure=function(t){i=t,Reader.create=create(),i._configure();var e=r.Long?"toLong":"toNumber";r.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[e](!1)},uint64:function(){return readLongVarint.call(this)[e](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[e](!1)},fixed64:function(){return readFixed64.call(this)[e](!0)},sfixed64:function(){return readFixed64.call(this)[e](!1)}})}},"./protobufjs/src/reader_buffer.js":function(t,e,n){t.exports=BufferReader;var i=n("./protobufjs/src/reader.js");(BufferReader.prototype=Object.create(i.prototype)).constructor=BufferReader;var r=n("./protobufjs/src/util/minimal.js");function BufferReader(t){i.call(this,t)}BufferReader._configure=function(){r.Buffer&&(BufferReader.prototype._slice=r.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},BufferReader._configure()},"./protobufjs/src/roots.js":function(t){t.exports={}},"./protobufjs/src/rpc.js":function(t,e,n){e.Service=n("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js":function(t,e,n){t.exports=Service;var i=n("./protobufjs/src/util/minimal.js");function Service(t,e,n){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");i.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!n}(Service.prototype=Object.create(i.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(t,e,n,r,o){if(!r)throw TypeError("request must be specified");var s=this;if(!o)return i.asPromise(rpcCall,s,t,e,n,r);if(!s.rpcImpl)return void setTimeout(function(){o(Error("already ended"))},0);try{return s.rpcImpl(t,e[s.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(e,i){if(e)return s.emit("error",e,t),o(e);if(null===i)return void s.end(!0);if(!(i instanceof n))try{i=n[s.responseDelimited?"decodeDelimited":"decode"](i)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",i,t),o(null,i)})}catch(e){s.emit("error",e,t),setTimeout(function(){o(e)},0);return}},Service.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/util/longbits.js":function(t,e,n){t.exports=LongBits;var i=n("./protobufjs/src/util/minimal.js");function LongBits(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=LongBits.zero=new LongBits(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var o=LongBits.zeroHash="\0\0\0\0\0\0\0\0";LongBits.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var n=t>>>0,i=(t-n)/0x100000000>>>0;return e&&(i=~i>>>0,n=~n>>>0,++n>0xffffffff&&(n=0,++i>0xffffffff&&(i=0))),new LongBits(n,i)},LongBits.from=function(t){if("number"==typeof t)return LongBits.fromNumber(t);if(i.isString(t))if(!i.Long)return LongBits.fromNumber(parseInt(t,10));else t=i.Long.fromString(t);return t.low||t.high?new LongBits(t.low>>>0,t.high>>>0):r},LongBits.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,n=~this.hi>>>0;return e||(n=n+1>>>0),-(e+0x100000000*n)}return this.lo+0x100000000*this.hi},LongBits.prototype.toLong=function(t){return i.Long?new i.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var s=String.prototype.charCodeAt;LongBits.fromHash=function(t){return t===o?r:new LongBits((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},LongBits.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},LongBits.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,n=this.hi>>>24;return 0===n?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:n<128?9:10}},"./protobufjs/src/util/minimal.js":function(t,e,n){var i=e;function merge(t,e,n){for(var i=Object.keys(e),r=0;r<i.length;++r)void 0!==t[i[r]]&&n||(t[i[r]]=e[i[r]]);return t}function newError(t){function CustomError(t,e){if(!(this instanceof CustomError))return new CustomError(t,e);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),e&&merge(this,e)}return CustomError.prototype=Object.create(Error.prototype,{constructor:{value:CustomError,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),CustomError}i.asPromise=n("./@protobufjs/aspromise/index.js"),i.base64=n("./@protobufjs/base64/index.js"),i.EventEmitter=n("./@protobufjs/eventemitter/index.js"),i.float=n("./@protobufjs/float/index.js"),i.inquire=n("./@protobufjs/inquire/index.js"),i.utf8=n("./@protobufjs/utf8/index.js"),i.pool=n("./@protobufjs/pool/index.js"),i.LongBits=n("./protobufjs/src/util/longbits.js"),i.isNode=!!("undefined"!=typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),i.global=i.isNode&&global||"undefined"!=typeof window&&window||"undefined"!=typeof self&&self||this,i.emptyArray=Object.freeze?Object.freeze([]):[],i.emptyObject=Object.freeze?Object.freeze({}):{},i.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},i.isString=function(t){return"string"==typeof t||t instanceof String},i.isObject=function(t){return t&&"object"==typeof t},i.isset=i.isSet=function(t,e){var n=t[e];return!!(null!=n&&t.hasOwnProperty(e))&&("object"!=typeof n||(Array.isArray(n)?n.length:Object.keys(n).length)>0)},i.Buffer=function(){try{var t=i.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),i._Buffer_from=null,i._Buffer_allocUnsafe=null,i.newBuffer=function(t){return"number"==typeof t?i.Buffer?i._Buffer_allocUnsafe(t):new i.Array(t):i.Buffer?i._Buffer_from(t):"undefined"==typeof Uint8Array?t:new Uint8Array(t)},i.Array="undefined"!=typeof Uint8Array?Uint8Array:Array,i.Long=i.global.dcodeIO&&i.global.dcodeIO.Long||i.global.Long||i.inquire("long"),i.key2Re=/^true|false|0|1$/,i.key32Re=/^-?(?:0|[1-9][0-9]*)$/,i.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,i.longToHash=function(t){return t?i.LongBits.from(t).toHash():i.LongBits.zeroHash},i.longFromHash=function(t,e){var n=i.LongBits.fromHash(t);return i.Long?i.Long.fromBits(n.lo,n.hi,e):n.toNumber(!!e)},i.merge=merge,i.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},i.newError=newError,i.ProtocolError=newError("ProtocolError"),i.oneOfGetter=function(t){for(var e={},n=0;n<t.length;++n)e[t[n]]=1;return function(){for(var t=Object.keys(this),n=t.length-1;n>-1;--n)if(1===e[t[n]]&&void 0!==this[t[n]]&&null!==this[t[n]])return t[n]}},i.oneOfSetter=function(t){return function(e){for(var n=0;n<t.length;++n)t[n]!==e&&delete this[t[n]]}},i.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},i._configure=function(){var t=i.Buffer;if(!t){i._Buffer_from=i._Buffer_allocUnsafe=null;return}i._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,n){return new t(e,n)},i._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}}},"./protobufjs/src/writer.js":function(t,e,n){t.exports=Writer;var i,r=n("./protobufjs/src/util/minimal.js"),o=r.LongBits,s=r.base64,a=r.utf8;function Op(t,e,n){this.fn=t,this.len=e,this.next=void 0,this.val=n}function noop(){}function State(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return r.Buffer?function(){return(Writer.create=function(){return new i})()}:function(){return new Writer}};function writeByte(t,e,n){e[n]=255&t}function writeVarint32(t,e,n){for(;t>127;)e[n++]=127&t|128,t>>>=7;e[n]=t}function VarintOp(t,e){this.len=t,this.next=void 0,this.val=e}function writeVarint64(t,e,n){for(;t.hi;)e[n++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[n++]=127&t.lo|128,t.lo=t.lo>>>7;e[n++]=t.lo}function writeFixed32(t,e,n){e[n]=255&t,e[n+1]=t>>>8&255,e[n+2]=t>>>16&255,e[n+3]=t>>>24}Writer.create=create(),Writer.alloc=function(t){return new r.Array(t)},r.Array!==Array&&(Writer.alloc=r.pool(Writer.alloc,r.Array.prototype.subarray)),Writer.prototype._push=function(t,e,n){return this.tail=this.tail.next=new Op(t,e,n),this.len+=e,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new VarintOp((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},Writer.prototype.int32=function(t){return t<0?this._push(writeVarint64,10,o.fromNumber(t)):this.uint32(t)},Writer.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},Writer.prototype.uint64=function(t){var e=o.from(t);return this._push(writeVarint64,e.length(),e)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(t){var e=o.from(t).zzEncode();return this._push(writeVarint64,e.length(),e)},Writer.prototype.bool=function(t){return this._push(writeByte,1,+!!t)},Writer.prototype.fixed32=function(t){return this._push(writeFixed32,4,t>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(t){var e=o.from(t);return this._push(writeFixed32,4,e.lo)._push(writeFixed32,4,e.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(t){return this._push(r.float.writeFloatLE,4,t)},Writer.prototype.double=function(t){return this._push(r.float.writeDoubleLE,8,t)};var u=r.Array.prototype.set?function(t,e,n){e.set(t,n)}:function(t,e,n){for(var i=0;i<t.length;++i)e[n+i]=t[i]};Writer.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(writeByte,1,0);if(r.isString(t)){var n=Writer.alloc(e=s.length(t));s.decode(t,n,0),t=n}return this.uint32(e)._push(u,e,t)},Writer.prototype.string=function(t){var e=a.length(t);return e?this.uint32(e)._push(a.write,e,t):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var t=this.head,e=this.tail,n=this.len;return this.reset().uint32(n),n&&(this.tail.next=t.next,this.tail=e,this.len+=n),this},Writer.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),n=0;t;)t.fn(t.val,e,n),n+=t.len,t=t.next;return e},Writer._configure=function(t){i=t,Writer.create=create(),i._configure()}},"./protobufjs/src/writer_buffer.js":function(t,e,n){t.exports=BufferWriter;var i=n("./protobufjs/src/writer.js");(BufferWriter.prototype=Object.create(i.prototype)).constructor=BufferWriter;var r=n("./protobufjs/src/util/minimal.js");function BufferWriter(){i.call(this)}function writeStringBuffer(t,e,n){t.length<40?r.utf8.write(t,e,n):e.utf8Write?e.utf8Write(t,n):e.write(t,n)}BufferWriter._configure=function(){BufferWriter.alloc=r._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=r.Buffer&&r.Buffer.prototype instanceof Uint8Array&&"set"===r.Buffer.prototype.set.name?function(t,e,n){e.set(t,n)}:function(t,e,n){if(t.copy)t.copy(e,n,0,t.length);else for(var i=0;i<t.length;)e[n++]=t[i++]}},BufferWriter.prototype.bytes=function(t){r.isString(t)&&(t=r._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(BufferWriter.writeBytesBuffer,e,t),this},BufferWriter.prototype.string=function(t){var e=r.Buffer.byteLength(t);return this.uint32(e),e&&this._push(writeStringBuffer,e,t),this},BufferWriter._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(n.exports,n,n.exports,__webpack_require__),n.exports}var __webpack_exports__=__webpack_require__("./@datadog/sketches-js/dist/index.js");module.exports=__webpack_exports__})();
1
+ (()=>{"use strict";var __webpack_modules__={"./@datadog/sketches-js/dist/ddsketch/DDSketch.js"(t,e,i){var n=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogCollapsingHighestDenseDDSketch=e.LogCollapsingLowestDenseDDSketch=e.DDSketch=void 0;var r=i("./@datadog/sketches-js/dist/ddsketch/store/index.js"),o=i("./@datadog/sketches-js/dist/ddsketch/mapping/index.js"),s=.01,a=2048,u=function(){function BaseDDSketch(t){var e=t.mapping,i=t.store,n=t.negativeStore,r=t.zeroCount;this.mapping=e,this.store=i,this.negativeStore=n,this.zeroCount=r,this.count=this.negativeStore.count+this.zeroCount+this.store.count,this.min=1/0,this.max=-1/0,this.sum=0}return BaseDDSketch.prototype.accept=function(t,e){if(void 0===e&&(e=1),e<=0)throw Error("Weight must be a positive number");if(t>this.mapping.minPossible){var i=this.mapping.key(t);this.store.add(i,e)}else if(t<-this.mapping.minPossible){var i=this.mapping.key(-t);this.negativeStore.add(i,e)}else this.zeroCount+=e;this.count+=e,this.sum+=t*e,t<this.min&&(this.min=t),t>this.max&&(this.max=t)},BaseDDSketch.prototype.getValueAtQuantile=function(t){if(t<0||t>1||0===this.count)return NaN;var e=t*(this.count-1),i=0;if(e<this.negativeStore.count){var n=this.negativeStore.count-e-1,r=this.negativeStore.keyAtRank(n,!1);i=-this.mapping.value(r)}else{if(e<this.zeroCount+this.negativeStore.count)return 0;var r=this.store.keyAtRank(e-this.zeroCount-this.negativeStore.count);i=this.mapping.value(r)}return i},BaseDDSketch.prototype.merge=function(t){if(!this.mergeable(t))throw Error("Cannot merge two DDSketches with different `relativeAccuracy` parameters");if(0!==t.count){if(0===this.count)return void this._copy(t);this.store.merge(t.store),this.zeroCount+=t.zeroCount,this.count+=t.count,this.sum+=t.sum,t.min<this.min&&(this.min=t.min),t.max>this.max&&(this.max=t.max)}},BaseDDSketch.prototype.mergeable=function(t){return this.mapping.gamma===t.mapping.gamma},BaseDDSketch.prototype._copy=function(t){this.store.copy(t.store),this.negativeStore.copy(t.negativeStore),this.zeroCount=t.zeroCount,this.min=t.min,this.max=t.max,this.count=t.count,this.sum=t.sum},BaseDDSketch.prototype.toProto=function(){var t=i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").DDSketch,e=t.create({mapping:this.mapping.toProto(),positiveValues:this.store.toProto(),negativeValues:this.negativeStore.toProto(),zeroCount:this.zeroCount});return t.encode(e).finish()},BaseDDSketch.fromProto=function(t){var e=i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").DDSketch.decode(t);return new BaseDDSketch({mapping:o.KeyMapping.fromProto(e.mapping),store:r.DenseStore.fromProto(e.positiveValues),negativeStore:r.DenseStore.fromProto(e.negativeValues),zeroCount:e.zeroCount})},BaseDDSketch}(),p={relativeAccuracy:s};e.DDSketch=function(t){function DDSketch(e){var i=(void 0===e?p:e).relativeAccuracy,n=void 0===i?s:i,a=new o.LogarithmicMapping(n),u=new r.DenseStore,f=new r.DenseStore;return t.call(this,{mapping:a,store:u,negativeStore:f,zeroCount:0})||this}return n(DDSketch,t),DDSketch}(u),e.LogCollapsingLowestDenseDDSketch=function(t){function LogCollapsingLowestDenseDDSketch(e){var i=void 0===e?p:e,n=i.relativeAccuracy,u=void 0===n?s:n,f=i.binLimit,c=void 0===f?a:f,l=new o.LogarithmicMapping(u),h=new r.CollapsingLowestDenseStore(c),d=new r.CollapsingLowestDenseStore(c);return t.call(this,{mapping:l,store:h,negativeStore:d,zeroCount:0})||this}return n(LogCollapsingLowestDenseDDSketch,t),LogCollapsingLowestDenseDDSketch}(u),e.LogCollapsingHighestDenseDDSketch=function(t){function LogCollapsingHighestDenseDDSketch(e){var i=void 0===e?p:e,n=i.relativeAccuracy,u=void 0===n?s:n,f=i.binLimit,c=void 0===f?a:f,l=new o.LogarithmicMapping(u),h=new r.CollapsingHighestDenseStore(c),d=new r.CollapsingHighestDenseStore(c);return t.call(this,{mapping:l,store:h,negativeStore:d,zeroCount:0})||this}return n(LogCollapsingHighestDenseDDSketch,t),LogCollapsingHighestDenseDDSketch}(u)},"./@datadog/sketches-js/dist/ddsketch/index.js"(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(e,i);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,r)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(i("./@datadog/sketches-js/dist/ddsketch/DDSketch.js"),e)},"./@datadog/sketches-js/dist/ddsketch/mapping/CubicallyInterpolatedMapping.js"(t,e,i){var n=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=void 0;var r=i("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js"),o=i("./@datadog/sketches-js/dist/ddsketch/math.js");e.CubicallyInterpolatedMapping=function(t){function CubicallyInterpolatedMapping(e,i){void 0===i&&(i=0);var n=t.call(this,e,i)||this;return n.A=6/35,n.B=-.6,n.C=10/7,n._multiplier/=n.C,n}return n(CubicallyInterpolatedMapping,t),CubicallyInterpolatedMapping.prototype._cubicLog2Approx=function(t){var e=(0,o.frexp)(t),i=e[0],n=e[1],r=2*i-1;return((this.A*r+this.B)*r+this.C)*r+(n-1)},CubicallyInterpolatedMapping.prototype._cubicExp2Approx=function(t){var e=Math.floor(t),i=this.B*this.B-3*this.A*this.C,n=2*this.B*this.B*this.B-9*this.A*this.B*this.C-27*this.A*this.A*(t-e),r=Math.cbrt((n-Math.sqrt(n*n-4*i*i*i))/2),s=(-(this.B+r+i/r)/(3*this.A)+1)/2;return(0,o.ldexp)(s,e+1)},CubicallyInterpolatedMapping.prototype._logGamma=function(t){return this._cubicLog2Approx(t)*this._multiplier},CubicallyInterpolatedMapping.prototype._powGamma=function(t){return this._cubicExp2Approx(t/this._multiplier)},CubicallyInterpolatedMapping.prototype._protoInterpolation=function(){return i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.CUBIC},CubicallyInterpolatedMapping}(r.KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js"(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.KeyMapping=void 0;var n=i("./@datadog/sketches-js/dist/ddsketch/mapping/index.js"),r=11125369292536007e-324,o=Number.MAX_VALUE;e.KeyMapping=function(){function KeyMapping(t,e){if(void 0===e&&(e=0),t<=0||t>=1)throw Error("Relative accuracy must be between 0 and 1 when initializing a KeyMapping");this.relativeAccuracy=t,this._offset=e;var i=2*t/(1-t);this.gamma=1+i,this._multiplier=1/Math.log1p(i),this.minPossible=r*this.gamma,this.maxPossible=o/this.gamma}return KeyMapping.fromGammaOffset=function(t,e){return new this((t-1)/(t+1),e)},KeyMapping.prototype.key=function(t){return Math.ceil(this._logGamma(t))+this._offset},KeyMapping.prototype.value=function(t){return this._powGamma(t-this._offset)*(2/(1+this.gamma))},KeyMapping.prototype.toProto=function(){return i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.create({gamma:this.gamma,indexOffset:this._offset,interpolation:this._protoInterpolation()})},KeyMapping.fromProto=function(t){if(!t||null==t.gamma||null==t.indexOffset)throw Error("Failed to decode mapping from protobuf");var e=i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation,r=t.interpolation,o=t.gamma,s=t.indexOffset;switch(r){case e.NONE:return n.LogarithmicMapping.fromGammaOffset(o,s);case e.LINEAR:return n.LinearlyInterpolatedMapping.fromGammaOffset(o,s);case e.CUBIC:return n.CubicallyInterpolatedMapping.fromGammaOffset(o,s);default:throw Error("Unrecognized mapping when decoding from protobuf")}},KeyMapping.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},KeyMapping.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},KeyMapping.prototype._protoInterpolation=function(){return i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.NONE},KeyMapping}()},"./@datadog/sketches-js/dist/ddsketch/mapping/LinearlyInterpolatedMapping.js"(t,e,i){var n=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LinearlyInterpolatedMapping=void 0;var r=i("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js"),o=i("./@datadog/sketches-js/dist/ddsketch/math.js");e.LinearlyInterpolatedMapping=function(t){function LinearlyInterpolatedMapping(e,i){return void 0===i&&(i=0),t.call(this,e,i)||this}return n(LinearlyInterpolatedMapping,t),LinearlyInterpolatedMapping.prototype._log2Approx=function(t){var e=(0,o.frexp)(t);return 2*e[0]-1+(e[1]-1)},LinearlyInterpolatedMapping.prototype._exp2Approx=function(t){var e=Math.floor(t)+1,i=(t-e+2)/2;return(0,o.ldexp)(i,e)},LinearlyInterpolatedMapping.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},LinearlyInterpolatedMapping.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},LinearlyInterpolatedMapping.prototype._protoInterpolation=function(){return i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.LINEAR},LinearlyInterpolatedMapping}(r.KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/LogarithmicMapping.js"(t,e,i){var n=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.LogarithmicMapping=void 0,e.LogarithmicMapping=function(t){function LogarithmicMapping(e,i){void 0===i&&(i=0);var n=t.call(this,e,i)||this;return n._multiplier*=Math.log(2),n}return n(LogarithmicMapping,t),LogarithmicMapping.prototype._logGamma=function(t){return Math.log2(t)*this._multiplier},LogarithmicMapping.prototype._powGamma=function(t){return Math.pow(2,t/this._multiplier)},LogarithmicMapping.prototype._protoInterpolation=function(){return i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").IndexMapping.Interpolation.NONE},LogarithmicMapping}(i("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js").KeyMapping)},"./@datadog/sketches-js/dist/ddsketch/mapping/index.js"(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.CubicallyInterpolatedMapping=e.LinearlyInterpolatedMapping=e.LogarithmicMapping=e.KeyMapping=void 0;var n=i("./@datadog/sketches-js/dist/ddsketch/mapping/KeyMapping.js");Object.defineProperty(e,"KeyMapping",{enumerable:!0,get:function(){return n.KeyMapping}});var r=i("./@datadog/sketches-js/dist/ddsketch/mapping/LogarithmicMapping.js");Object.defineProperty(e,"LogarithmicMapping",{enumerable:!0,get:function(){return r.LogarithmicMapping}});var o=i("./@datadog/sketches-js/dist/ddsketch/mapping/LinearlyInterpolatedMapping.js");Object.defineProperty(e,"LinearlyInterpolatedMapping",{enumerable:!0,get:function(){return o.LinearlyInterpolatedMapping}});var s=i("./@datadog/sketches-js/dist/ddsketch/mapping/CubicallyInterpolatedMapping.js");Object.defineProperty(e,"CubicallyInterpolatedMapping",{enumerable:!0,get:function(){return s.CubicallyInterpolatedMapping}})},"./@datadog/sketches-js/dist/ddsketch/math.js"(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.ldexp=e.frexp=void 0,e.frexp=function(t){if(0===t||!Number.isFinite(t))return[t,0];for(var e=Math.abs(t),i=Math.max(-1023,Math.floor(Math.log2(e))+1),n=e*Math.pow(2,-i);n<.5;)n*=2,i--;for(;n>=1;)n*=.5,i++;return t<0&&(n=-n),[n,i]},e.ldexp=function(t,e){for(var i=Math.min(3,Math.ceil(Math.abs(e)/1023)),n=t,r=0;r<i;r++)n*=Math.pow(2,Math.floor((e+r)/i));return n}},"./@datadog/sketches-js/dist/ddsketch/proto/compiled.js"(t,e,i){var n=i("./protobufjs/minimal.js"),r=n.Reader,o=n.Writer,s=n.util,a=n.roots.default||(n.roots.default={});a.DDSketch=function(){function DDSketch(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return DDSketch.prototype.mapping=null,DDSketch.prototype.positiveValues=null,DDSketch.prototype.negativeValues=null,DDSketch.prototype.zeroCount=0,DDSketch.create=function(t){return new DDSketch(t)},DDSketch.encode=function(t,e){return e||(e=o.create()),null!=t.mapping&&Object.hasOwnProperty.call(t,"mapping")&&a.IndexMapping.encode(t.mapping,e.uint32(10).fork()).ldelim(),null!=t.positiveValues&&Object.hasOwnProperty.call(t,"positiveValues")&&a.Store.encode(t.positiveValues,e.uint32(18).fork()).ldelim(),null!=t.negativeValues&&Object.hasOwnProperty.call(t,"negativeValues")&&a.Store.encode(t.negativeValues,e.uint32(26).fork()).ldelim(),null!=t.zeroCount&&Object.hasOwnProperty.call(t,"zeroCount")&&e.uint32(33).double(t.zeroCount),e},DDSketch.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},DDSketch.decode=function(t,e){t instanceof r||(t=r.create(t));for(var i=void 0===e?t.len:t.pos+e,n=new a.DDSketch;t.pos<i;){var o=t.uint32();switch(o>>>3){case 1:n.mapping=a.IndexMapping.decode(t,t.uint32());break;case 2:n.positiveValues=a.Store.decode(t,t.uint32());break;case 3:n.negativeValues=a.Store.decode(t,t.uint32());break;case 4:n.zeroCount=t.double();break;default:t.skipType(7&o)}}return n},DDSketch.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},DDSketch.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.mapping&&t.hasOwnProperty("mapping")){var e=a.IndexMapping.verify(t.mapping);if(e)return"mapping."+e}if(null!=t.positiveValues&&t.hasOwnProperty("positiveValues")){var e=a.Store.verify(t.positiveValues);if(e)return"positiveValues."+e}if(null!=t.negativeValues&&t.hasOwnProperty("negativeValues")){var e=a.Store.verify(t.negativeValues);if(e)return"negativeValues."+e}return null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&"number"!=typeof t.zeroCount?"zeroCount: number expected":null},DDSketch.fromObject=function(t){if(t instanceof a.DDSketch)return t;var e=new a.DDSketch;if(null!=t.mapping){if("object"!=typeof t.mapping)throw TypeError(".DDSketch.mapping: object expected");e.mapping=a.IndexMapping.fromObject(t.mapping)}if(null!=t.positiveValues){if("object"!=typeof t.positiveValues)throw TypeError(".DDSketch.positiveValues: object expected");e.positiveValues=a.Store.fromObject(t.positiveValues)}if(null!=t.negativeValues){if("object"!=typeof t.negativeValues)throw TypeError(".DDSketch.negativeValues: object expected");e.negativeValues=a.Store.fromObject(t.negativeValues)}return null!=t.zeroCount&&(e.zeroCount=Number(t.zeroCount)),e},DDSketch.toObject=function(t,e){e||(e={});var i={};return e.defaults&&(i.mapping=null,i.positiveValues=null,i.negativeValues=null,i.zeroCount=0),null!=t.mapping&&t.hasOwnProperty("mapping")&&(i.mapping=a.IndexMapping.toObject(t.mapping,e)),null!=t.positiveValues&&t.hasOwnProperty("positiveValues")&&(i.positiveValues=a.Store.toObject(t.positiveValues,e)),null!=t.negativeValues&&t.hasOwnProperty("negativeValues")&&(i.negativeValues=a.Store.toObject(t.negativeValues,e)),null!=t.zeroCount&&t.hasOwnProperty("zeroCount")&&(i.zeroCount=e.json&&!isFinite(t.zeroCount)?String(t.zeroCount):t.zeroCount),i},DDSketch.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},DDSketch}(),a.IndexMapping=function(){function IndexMapping(t){if(t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return IndexMapping.prototype.gamma=0,IndexMapping.prototype.indexOffset=0,IndexMapping.prototype.interpolation=0,IndexMapping.create=function(t){return new IndexMapping(t)},IndexMapping.encode=function(t,e){return e||(e=o.create()),null!=t.gamma&&Object.hasOwnProperty.call(t,"gamma")&&e.uint32(9).double(t.gamma),null!=t.indexOffset&&Object.hasOwnProperty.call(t,"indexOffset")&&e.uint32(17).double(t.indexOffset),null!=t.interpolation&&Object.hasOwnProperty.call(t,"interpolation")&&e.uint32(24).int32(t.interpolation),e},IndexMapping.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},IndexMapping.decode=function(t,e){t instanceof r||(t=r.create(t));for(var i=void 0===e?t.len:t.pos+e,n=new a.IndexMapping;t.pos<i;){var o=t.uint32();switch(o>>>3){case 1:n.gamma=t.double();break;case 2:n.indexOffset=t.double();break;case 3:n.interpolation=t.int32();break;default:t.skipType(7&o)}}return n},IndexMapping.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},IndexMapping.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.gamma&&t.hasOwnProperty("gamma")&&"number"!=typeof t.gamma)return"gamma: number expected";if(null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&"number"!=typeof t.indexOffset)return"indexOffset: number expected";if(null!=t.interpolation&&t.hasOwnProperty("interpolation"))switch(t.interpolation){default:return"interpolation: enum value expected";case 0:case 1:case 2:case 3:}return null},IndexMapping.fromObject=function(t){if(t instanceof a.IndexMapping)return t;var e=new a.IndexMapping;switch(null!=t.gamma&&(e.gamma=Number(t.gamma)),null!=t.indexOffset&&(e.indexOffset=Number(t.indexOffset)),t.interpolation){case"NONE":case 0:e.interpolation=0;break;case"LINEAR":case 1:e.interpolation=1;break;case"QUADRATIC":case 2:e.interpolation=2;break;case"CUBIC":case 3:e.interpolation=3}return e},IndexMapping.toObject=function(t,e){e||(e={});var i={};return e.defaults&&(i.gamma=0,i.indexOffset=0,i.interpolation=e.enums===String?"NONE":0),null!=t.gamma&&t.hasOwnProperty("gamma")&&(i.gamma=e.json&&!isFinite(t.gamma)?String(t.gamma):t.gamma),null!=t.indexOffset&&t.hasOwnProperty("indexOffset")&&(i.indexOffset=e.json&&!isFinite(t.indexOffset)?String(t.indexOffset):t.indexOffset),null!=t.interpolation&&t.hasOwnProperty("interpolation")&&(i.interpolation=e.enums===String?a.IndexMapping.Interpolation[t.interpolation]:t.interpolation),i},IndexMapping.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},IndexMapping.Interpolation=function(){var t={},e=Object.create(t);return e[t[0]="NONE"]=0,e[t[1]="LINEAR"]=1,e[t[2]="QUADRATIC"]=2,e[t[3]="CUBIC"]=3,e}(),IndexMapping}(),a.Store=function(){function Store(t){if(this.binCounts={},this.contiguousBinCounts=[],t)for(var e=Object.keys(t),i=0;i<e.length;++i)null!=t[e[i]]&&(this[e[i]]=t[e[i]])}return Store.prototype.binCounts=s.emptyObject,Store.prototype.contiguousBinCounts=s.emptyArray,Store.prototype.contiguousBinIndexOffset=0,Store.create=function(t){return new Store(t)},Store.encode=function(t,e){if(e||(e=o.create()),null!=t.binCounts&&Object.hasOwnProperty.call(t,"binCounts"))for(var i=Object.keys(t.binCounts),n=0;n<i.length;++n)e.uint32(10).fork().uint32(8).sint32(i[n]).uint32(17).double(t.binCounts[i[n]]).ldelim();if(null!=t.contiguousBinCounts&&t.contiguousBinCounts.length){e.uint32(18).fork();for(var n=0;n<t.contiguousBinCounts.length;++n)e.double(t.contiguousBinCounts[n]);e.ldelim()}return null!=t.contiguousBinIndexOffset&&Object.hasOwnProperty.call(t,"contiguousBinIndexOffset")&&e.uint32(24).sint32(t.contiguousBinIndexOffset),e},Store.encodeDelimited=function(t,e){return this.encode(t,e).ldelim()},Store.decode=function(t,e){t instanceof r||(t=r.create(t));for(var i,n,o=void 0===e?t.len:t.pos+e,u=new a.Store;t.pos<o;){var p=t.uint32();switch(p>>>3){case 1:u.binCounts===s.emptyObject&&(u.binCounts={});var f=t.uint32()+t.pos;for(i=0,n=0;t.pos<f;){var c=t.uint32();switch(c>>>3){case 1:i=t.sint32();break;case 2:n=t.double();break;default:t.skipType(7&c)}}u.binCounts[i]=n;break;case 2:if(u.contiguousBinCounts&&u.contiguousBinCounts.length||(u.contiguousBinCounts=[]),(7&p)==2)for(var f=t.uint32()+t.pos;t.pos<f;)u.contiguousBinCounts.push(t.double());else u.contiguousBinCounts.push(t.double());break;case 3:u.contiguousBinIndexOffset=t.sint32();break;default:t.skipType(7&p)}}return u},Store.decodeDelimited=function(t){return t instanceof r||(t=new r(t)),this.decode(t,t.uint32())},Store.verify=function(t){if("object"!=typeof t||null===t)return"object expected";if(null!=t.binCounts&&t.hasOwnProperty("binCounts")){if(!s.isObject(t.binCounts))return"binCounts: object expected";for(var e=Object.keys(t.binCounts),i=0;i<e.length;++i){if(!s.key32Re.test(e[i]))return"binCounts: integer key{k:sint32} expected";if("number"!=typeof t.binCounts[e[i]])return"binCounts: number{k:sint32} expected"}}if(null!=t.contiguousBinCounts&&t.hasOwnProperty("contiguousBinCounts")){if(!Array.isArray(t.contiguousBinCounts))return"contiguousBinCounts: array expected";for(var i=0;i<t.contiguousBinCounts.length;++i)if("number"!=typeof t.contiguousBinCounts[i])return"contiguousBinCounts: number[] expected"}return null!=t.contiguousBinIndexOffset&&t.hasOwnProperty("contiguousBinIndexOffset")&&!s.isInteger(t.contiguousBinIndexOffset)?"contiguousBinIndexOffset: integer expected":null},Store.fromObject=function(t){if(t instanceof a.Store)return t;var e=new a.Store;if(t.binCounts){if("object"!=typeof t.binCounts)throw TypeError(".Store.binCounts: object expected");e.binCounts={};for(var i=Object.keys(t.binCounts),n=0;n<i.length;++n)e.binCounts[i[n]]=Number(t.binCounts[i[n]])}if(t.contiguousBinCounts){if(!Array.isArray(t.contiguousBinCounts))throw TypeError(".Store.contiguousBinCounts: array expected");e.contiguousBinCounts=[];for(var n=0;n<t.contiguousBinCounts.length;++n)e.contiguousBinCounts[n]=Number(t.contiguousBinCounts[n])}return null!=t.contiguousBinIndexOffset&&(e.contiguousBinIndexOffset=0|t.contiguousBinIndexOffset),e},Store.toObject=function(t,e){e||(e={});var i,n={};if((e.arrays||e.defaults)&&(n.contiguousBinCounts=[]),(e.objects||e.defaults)&&(n.binCounts={}),e.defaults&&(n.contiguousBinIndexOffset=0),t.binCounts&&(i=Object.keys(t.binCounts)).length){n.binCounts={};for(var r=0;r<i.length;++r)n.binCounts[i[r]]=e.json&&!isFinite(t.binCounts[i[r]])?String(t.binCounts[i[r]]):t.binCounts[i[r]]}if(t.contiguousBinCounts&&t.contiguousBinCounts.length){n.contiguousBinCounts=[];for(var r=0;r<t.contiguousBinCounts.length;++r)n.contiguousBinCounts[r]=e.json&&!isFinite(t.contiguousBinCounts[r])?String(t.contiguousBinCounts[r]):t.contiguousBinCounts[r]}return null!=t.contiguousBinIndexOffset&&t.hasOwnProperty("contiguousBinIndexOffset")&&(n.contiguousBinIndexOffset=t.contiguousBinIndexOffset),n},Store.prototype.toJSON=function(){return this.constructor.toObject(this,n.util.toJSONOptions)},Store}(),t.exports=a},"./@datadog/sketches-js/dist/ddsketch/store/CollapsingHighestDenseStore.js"(t,e,i){var n=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingHighestDenseStore=void 0;var r=i("./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js"),o=i("./@datadog/sketches-js/dist/ddsketch/store/util.js");e.CollapsingHighestDenseStore=function(t){function CollapsingHighestDenseStore(e,i){var n=t.call(this,i)||this;return n.binLimit=e,n.isCollapsed=!1,n}return n(CollapsingHighestDenseStore,t),CollapsingHighestDenseStore.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKey<this.minKey||t.maxKey>this.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.maxKey-t.offset+1,i=Math.max(this.maxKey+1,t.minKey)-t.offset;if(e>i){var n=(0,o.sumOfRange)(t.bins,i,e);this.bins[this.length()-1]+=n}else i=e;for(var r=t.minKey;r<i+t.offset;r++)this.bins[r-this.offset]+=t.bins[r-t.offset];this.count+=t.count}},CollapsingHighestDenseStore.prototype.copy=function(e){t.prototype.copy.call(this,e),this.isCollapsed=e.isCollapsed},CollapsingHighestDenseStore.prototype._getNewLength=function(t,e){var i=e-t+1;return Math.min(this.chunkSize*Math.ceil(i/this.chunkSize),this.binLimit)},CollapsingHighestDenseStore.prototype._adjust=function(t,e){if(e-t+1>this.length())if((e=t+this.length()+1)<=this.minKey)this.offset=t,this.maxKey=e,this.bins.fill(0),this.bins[this.length()-1]=this.count;else{var i=this.offset-t;if(i>0){var n=e-this.offset+1,r=this.maxKey-this.offset+1,s=(0,o.sumOfRange)(this.bins,n,r);this.bins.fill(0,n,r),this.bins[n-1]+=s,this.maxKey=e,this._shiftBins(i)}else this.maxKey=e,this._shiftBins(i);this.minKey=t,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},CollapsingHighestDenseStore.prototype._getIndex=function(t){if(t<this.minKey){if(this.isCollapsed||(this._extendRange(t),this.isCollapsed))return this.length()-1}else t>this.maxKey&&this._extendRange(t);return t-this.offset},CollapsingHighestDenseStore}(r.DenseStore)},"./@datadog/sketches-js/dist/ddsketch/store/CollapsingLowestDenseStore.js"(t,e,i){var n=this&&this.__extends||function(){var extendStatics=function(t,e){return(extendStatics=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};return function(t,e){if("function"!=typeof e&&null!==e)throw TypeError("Class extends value "+String(e)+" is not a constructor or null");function __(){this.constructor=t}extendStatics(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingLowestDenseStore=void 0;var r=i("./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js"),o=i("./@datadog/sketches-js/dist/ddsketch/store/util.js");e.CollapsingLowestDenseStore=function(t){function CollapsingLowestDenseStore(e,i){var n=t.call(this,i)||this;return n.binLimit=e,n.isCollapsed=!1,n}return n(CollapsingLowestDenseStore,t),CollapsingLowestDenseStore.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKey<this.minKey||t.maxKey>this.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,i=Math.min(this.minKey,t.maxKey+1)-t.offset;if(i>e){var n=(0,o.sumOfRange)(t.bins,e,i);this.bins[0]+=n}else i=e;for(var r=i+t.offset;r<t.maxKey+1;r++)this.bins[r-this.offset]+=t.bins[r-t.offset];this.count+=t.count}},CollapsingLowestDenseStore.prototype.copy=function(e){t.prototype.copy.call(this,e),this.isCollapsed=e.isCollapsed},CollapsingLowestDenseStore.prototype._getNewLength=function(t,e){var i=e-t+1;return Math.min(this.chunkSize*Math.ceil(i/this.chunkSize),this.binLimit)},CollapsingLowestDenseStore.prototype._adjust=function(t,e){if(e-t+1>this.length()){if((t=e-this.length()+1)>=this.maxKey)this.offset=t,this.minKey=t,this.bins.fill(0),this.bins[0]=this.count;else{var i=this.offset-t;if(i<0){var n=this.minKey-this.offset,r=t-this.offset,s=(0,o.sumOfRange)(this.bins,n,r);this.bins.fill(0,n,r),this.bins[r]+=s,this.minKey=t,this._shiftBins(i)}else this.minKey=t,this._shiftBins(i)}this.maxKey=e,this.isCollapsed=!0}else this._centerBins(t,e),this.minKey=t,this.maxKey=e},CollapsingLowestDenseStore.prototype._getIndex=function(t){if(t<this.minKey){if(this.isCollapsed||(this._extendRange(t),this.isCollapsed))return 0}else t>this.maxKey&&this._extendRange(t);return t-this.offset},CollapsingLowestDenseStore}(r.DenseStore)},"./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js"(t,e,i){var n=this&&this.__spreadArray||function(t,e,i){if(i||2==arguments.length)for(var n,r=0,o=e.length;r<o;r++)!n&&r in e||(n||(n=Array.prototype.slice.call(e,0,r)),n[r]=e[r]);return t.concat(n||Array.prototype.slice.call(e))};Object.defineProperty(e,"__esModule",{value:!0}),e.DenseStore=void 0;var r=i("./@datadog/sketches-js/dist/ddsketch/store/util.js"),o=128;e.DenseStore=function(){function DenseStore(t){void 0===t&&(t=o),this.chunkSize=t,this.bins=[],this.count=0,this.minKey=1/0,this.maxKey=-1/0,this.offset=0}return DenseStore.prototype.add=function(t,e){void 0===e&&(e=1);var i=this._getIndex(t);this.bins[i]+=e,this.count+=e},DenseStore.prototype.keyAtRank=function(t,e){void 0===e&&(e=!0);for(var i=0,n=0;n<this.length();n++)if(i+=this.bins[n],e&&i>t||!e&&i>=t+1)return n+this.offset;return this.maxKey},DenseStore.prototype.merge=function(t){if(0!==t.count){if(0===this.count)return void this.copy(t);(t.minKey<this.minKey||t.maxKey>this.maxKey)&&this._extendRange(t.minKey,t.maxKey);var e=t.minKey-t.offset,i=Math.min(this.minKey,t.maxKey+1)-t.offset;if(i>e){var n=(0,r.sumOfRange)(t.bins,e,i);this.bins[0]+=n}else i=e;for(var o=i+t.offset;o<t.maxKey+1;o++)this.bins[o-this.offset]+=t.bins[o-t.offset];this.count+=t.count}},DenseStore.prototype.copy=function(t){this.bins=n([],t.bins,!0),this.count=t.count,this.minKey=t.minKey,this.maxKey=t.maxKey,this.offset=t.offset},DenseStore.prototype.length=function(){return this.bins.length},DenseStore.prototype._getNewLength=function(t,e){var i=e-t+1;return this.chunkSize*Math.ceil(i/this.chunkSize)},DenseStore.prototype._adjust=function(t,e){this._centerBins(t,e),this.minKey=t,this.maxKey=e},DenseStore.prototype._shiftBins=function(t){var e,i;t>0?(this.bins=this.bins.slice(0,-t),(e=this.bins).unshift.apply(e,Array(t).fill(0))):(this.bins=this.bins.slice(Math.abs(t)),(i=this.bins).push.apply(i,Array(Math.abs(t)).fill(0))),this.offset-=t},DenseStore.prototype._centerBins=function(t,e){var i=t+Math.floor((e-t+1)/2);this._shiftBins(Math.floor(this.offset+this.length()/2)-i)},DenseStore.prototype._extendRange=function(t,e){e=e||t;var i,n=Math.min(t,e,this.minKey),r=Math.max(t,e,this.maxKey);if(0===this.length())this.bins=Array(this._getNewLength(n,r)).fill(0),this.offset=n,this._adjust(n,r);else if(n>=this.minKey&&r<this.offset+this.length())this.minKey=n,this.maxKey=r;else{var o=this._getNewLength(n,r);o>this.length()&&(i=this.bins).push.apply(i,Array(o-this.length()).fill(0)),this._adjust(n,r)}},DenseStore.prototype._getIndex=function(t){return t<this.minKey?this._extendRange(t):t>this.maxKey&&this._extendRange(t),t-this.offset},DenseStore.prototype.toProto=function(){return i("./@datadog/sketches-js/dist/ddsketch/proto/compiled.js").Store.create({contiguousBinCounts:this.bins,contiguousBinIndexOffset:this.offset})},DenseStore.fromProto=function(t){if(!t||null==t.contiguousBinCounts||null==t.contiguousBinIndexOffset)throw Error("Failed to decode store from protobuf");var e=new this,i=t.contiguousBinIndexOffset;e.offset=i;for(var n=0,r=t.contiguousBinCounts;n<r.length;n++){var o=r[n];e.add(i,o),i+=1}return e},DenseStore}()},"./@datadog/sketches-js/dist/ddsketch/store/index.js"(t,e,i){Object.defineProperty(e,"__esModule",{value:!0}),e.CollapsingHighestDenseStore=e.CollapsingLowestDenseStore=e.DenseStore=void 0;var n=i("./@datadog/sketches-js/dist/ddsketch/store/DenseStore.js");Object.defineProperty(e,"DenseStore",{enumerable:!0,get:function(){return n.DenseStore}});var r=i("./@datadog/sketches-js/dist/ddsketch/store/CollapsingLowestDenseStore.js");Object.defineProperty(e,"CollapsingLowestDenseStore",{enumerable:!0,get:function(){return r.CollapsingLowestDenseStore}});var o=i("./@datadog/sketches-js/dist/ddsketch/store/CollapsingHighestDenseStore.js");Object.defineProperty(e,"CollapsingHighestDenseStore",{enumerable:!0,get:function(){return o.CollapsingHighestDenseStore}})},"./@datadog/sketches-js/dist/ddsketch/store/util.js"(t,e){Object.defineProperty(e,"__esModule",{value:!0}),e.sumOfRange=void 0,e.sumOfRange=function(t,e,i){for(var n=0,r=e;r<=i;r++)n+=t[r];return n}},"./@datadog/sketches-js/dist/index.js"(t,e,i){var n=this&&this.__createBinding||(Object.create?function(t,e,i,n){void 0===n&&(n=i);var r=Object.getOwnPropertyDescriptor(e,i);(!r||("get"in r?!e.__esModule:r.writable||r.configurable))&&(r={enumerable:!0,get:function(){return e[i]}}),Object.defineProperty(t,n,r)}:function(t,e,i,n){void 0===n&&(n=i),t[n]=e[i]}),r=this&&this.__exportStar||function(t,e){for(var i in t)"default"===i||Object.prototype.hasOwnProperty.call(e,i)||n(e,t,i)};Object.defineProperty(e,"__esModule",{value:!0}),r(i("./@datadog/sketches-js/dist/ddsketch/index.js"),e)},"./@protobufjs/aspromise/index.js"(t){t.exports=asPromise;function asPromise(t,e){for(var i=Array(arguments.length-1),n=0,r=2,o=!0;r<arguments.length;)i[n++]=arguments[r++];return new Promise(function(r,s){i[n]=function(t){if(o)if(o=!1,t)s(t);else{for(var e=Array(arguments.length-1),i=0;i<e.length;)e[i++]=arguments[i];r.apply(null,e)}};try{t.apply(e||null,i)}catch(t){o&&(o=!1,s(t))}})}},"./@protobufjs/base64/index.js"(t,e){var i=e;i.length=function(t){var e=t.length;if(!e)return 0;for(var i=0;--e%4>1&&"="===t.charAt(e);)++i;return Math.ceil(3*t.length)/4-i};for(var n=Array(64),r=Array(123),o=0;o<64;)r[n[o]=o<26?o+65:o<52?o+71:o<62?o-4:o-59|43]=o++;i.encode=function(t,e,i){for(var r,o=null,s=[],a=0,u=0;e<i;){var p=t[e++];switch(u){case 0:s[a++]=n[p>>2],r=(3&p)<<4,u=1;break;case 1:s[a++]=n[r|p>>4],r=(15&p)<<2,u=2;break;case 2:s[a++]=n[r|p>>6],s[a++]=n[63&p],u=0}a>8191&&((o||(o=[])).push(String.fromCharCode.apply(String,s)),a=0)}return(u&&(s[a++]=n[r],s[a++]=61,1===u&&(s[a++]=61)),o)?(a&&o.push(String.fromCharCode.apply(String,s.slice(0,a))),o.join("")):String.fromCharCode.apply(String,s.slice(0,a))};var s="invalid encoding";i.decode=function(t,e,i){for(var n,o=i,a=0,u=0;u<t.length;){var p=t.charCodeAt(u++);if(61===p&&a>1)break;if(void 0===(p=r[p]))throw Error(s);switch(a){case 0:n=p,a=1;break;case 1:e[i++]=n<<2|(48&p)>>4,n=p,a=2;break;case 2:e[i++]=(15&n)<<4|(60&p)>>2,n=p,a=3;break;case 3:e[i++]=(3&n)<<6|p,a=0}}if(1===a)throw Error(s);return i-o},i.test=function(t){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(t)}},"./@protobufjs/eventemitter/index.js"(t){function EventEmitter(){this._listeners={}}t.exports=EventEmitter,EventEmitter.prototype.on=function(t,e,i){return(this._listeners[t]||(this._listeners[t]=[])).push({fn:e,ctx:i||this}),this},EventEmitter.prototype.off=function(t,e){if(void 0===t)this._listeners={};else if(void 0===e)this._listeners[t]=[];else for(var i=this._listeners[t],n=0;n<i.length;)i[n].fn===e?i.splice(n,1):++n;return this},EventEmitter.prototype.emit=function(t){var e=this._listeners[t];if(e){for(var i=[],n=1;n<arguments.length;)i.push(arguments[n++]);for(n=0;n<e.length;)e[n].fn.apply(e[n++].ctx,i)}return this}},"./@protobufjs/float/index.js"(t){function factory(t){return"u">typeof Float32Array?!function(){var e=new Float32Array([-0]),i=new Uint8Array(e.buffer),n=128===i[3];function writeFloat_f32_cpy(t,n,r){e[0]=t,n[r]=i[0],n[r+1]=i[1],n[r+2]=i[2],n[r+3]=i[3]}function writeFloat_f32_rev(t,n,r){e[0]=t,n[r]=i[3],n[r+1]=i[2],n[r+2]=i[1],n[r+3]=i[0]}function readFloat_f32_cpy(t,n){return i[0]=t[n],i[1]=t[n+1],i[2]=t[n+2],i[3]=t[n+3],e[0]}function readFloat_f32_rev(t,n){return i[3]=t[n],i[2]=t[n+1],i[1]=t[n+2],i[0]=t[n+3],e[0]}t.writeFloatLE=n?writeFloat_f32_cpy:writeFloat_f32_rev,t.writeFloatBE=n?writeFloat_f32_rev:writeFloat_f32_cpy,t.readFloatLE=n?readFloat_f32_cpy:readFloat_f32_rev,t.readFloatBE=n?readFloat_f32_rev:readFloat_f32_cpy}():!function(){function writeFloat_ieee754(t,e,i,n){var r=+(e<0);if(r&&(e=-e),0===e)t(1/e>0?0:0x80000000,i,n);else if(isNaN(e))t(0x7fc00000,i,n);else if(e>34028234663852886e22)t((r<<31|0x7f800000)>>>0,i,n);else if(e<11754943508222875e-54)t((r<<31|Math.round(e/1401298464324817e-60))>>>0,i,n);else{var o=Math.floor(Math.log(e)/Math.LN2),s=8388607&Math.round(e*Math.pow(2,-o)*8388608);t((r<<31|o+127<<23|s)>>>0,i,n)}}function readFloat_ieee754(t,e,i){var n=t(e,i),r=(n>>31)*2+1,o=n>>>23&255,s=8388607&n;return 255===o?s?NaN:1/0*r:0===o?1401298464324817e-60*r*s:r*Math.pow(2,o-150)*(s+8388608)}t.writeFloatLE=writeFloat_ieee754.bind(null,writeUintLE),t.writeFloatBE=writeFloat_ieee754.bind(null,writeUintBE),t.readFloatLE=readFloat_ieee754.bind(null,readUintLE),t.readFloatBE=readFloat_ieee754.bind(null,readUintBE)}(),"u">typeof Float64Array?!function(){var e=new Float64Array([-0]),i=new Uint8Array(e.buffer),n=128===i[7];function writeDouble_f64_cpy(t,n,r){e[0]=t,n[r]=i[0],n[r+1]=i[1],n[r+2]=i[2],n[r+3]=i[3],n[r+4]=i[4],n[r+5]=i[5],n[r+6]=i[6],n[r+7]=i[7]}function writeDouble_f64_rev(t,n,r){e[0]=t,n[r]=i[7],n[r+1]=i[6],n[r+2]=i[5],n[r+3]=i[4],n[r+4]=i[3],n[r+5]=i[2],n[r+6]=i[1],n[r+7]=i[0]}function readDouble_f64_cpy(t,n){return i[0]=t[n],i[1]=t[n+1],i[2]=t[n+2],i[3]=t[n+3],i[4]=t[n+4],i[5]=t[n+5],i[6]=t[n+6],i[7]=t[n+7],e[0]}function readDouble_f64_rev(t,n){return i[7]=t[n],i[6]=t[n+1],i[5]=t[n+2],i[4]=t[n+3],i[3]=t[n+4],i[2]=t[n+5],i[1]=t[n+6],i[0]=t[n+7],e[0]}t.writeDoubleLE=n?writeDouble_f64_cpy:writeDouble_f64_rev,t.writeDoubleBE=n?writeDouble_f64_rev:writeDouble_f64_cpy,t.readDoubleLE=n?readDouble_f64_cpy:readDouble_f64_rev,t.readDoubleBE=n?readDouble_f64_rev:readDouble_f64_cpy}():!function(){function writeDouble_ieee754(t,e,i,n,r,o){var s,a=+(n<0);if(a&&(n=-n),0===n)t(0,r,o+e),t(1/n>0?0:0x80000000,r,o+i);else if(isNaN(n))t(0,r,o+e),t(0x7ff80000,r,o+i);else if(n>17976931348623157e292)t(0,r,o+e),t((a<<31|0x7ff00000)>>>0,r,o+i);else if(n<22250738585072014e-324)t((s=n/5e-324)>>>0,r,o+e),t((a<<31|s/0x100000000)>>>0,r,o+i);else{var u=Math.floor(Math.log(n)/Math.LN2);1024===u&&(u=1023),t(0x10000000000000*(s=n*Math.pow(2,-u))>>>0,r,o+e),t((a<<31|u+1023<<20|1048576*s&1048575)>>>0,r,o+i)}}function readDouble_ieee754(t,e,i,n,r){var o=t(n,r+e),s=t(n,r+i),a=(s>>31)*2+1,u=s>>>20&2047,p=0x100000000*(1048575&s)+o;return 2047===u?p?NaN:1/0*a:0===u?5e-324*a*p:a*Math.pow(2,u-1075)*(p+0x10000000000000)}t.writeDoubleLE=writeDouble_ieee754.bind(null,writeUintLE,0,4),t.writeDoubleBE=writeDouble_ieee754.bind(null,writeUintBE,4,0),t.readDoubleLE=readDouble_ieee754.bind(null,readUintLE,0,4),t.readDoubleBE=readDouble_ieee754.bind(null,readUintBE,4,0)}(),t}function writeUintLE(t,e,i){e[i]=255&t,e[i+1]=t>>>8&255,e[i+2]=t>>>16&255,e[i+3]=t>>>24}function writeUintBE(t,e,i){e[i]=t>>>24,e[i+1]=t>>>16&255,e[i+2]=t>>>8&255,e[i+3]=255&t}function readUintLE(t,e){return(t[e]|t[e+1]<<8|t[e+2]<<16|t[e+3]<<24)>>>0}function readUintBE(t,e){return(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}t.exports=factory(factory)},"./@protobufjs/inquire/index.js"(module){module.exports=inquire;function inquire(moduleName){try{var mod=eval("quire".replace(/^/,"re"))(moduleName);if(mod&&(mod.length||Object.keys(mod).length))return mod}catch(e){}return null}},"./@protobufjs/pool/index.js"(t){t.exports=pool;function pool(t,e,i){var n=i||8192,r=n>>>1,o=null,s=n;return function(i){if(i<1||i>r)return t(i);s+i>n&&(o=t(n),s=0);var a=e.call(o,s,s+=i);return 7&s&&(s=(7|s)+1),a}}},"./@protobufjs/utf8/index.js"(t,e){var i=e;i.length=function(t){for(var e=0,i=0,n=0;n<t.length;++n)(i=t.charCodeAt(n))<128?e+=1:i<2048?e+=2:(64512&i)==55296&&(64512&t.charCodeAt(n+1))==56320?(++n,e+=4):e+=3;return e},i.read=function(t,e,i){if(i-e<1)return"";for(var n,r=null,o=[],s=0;e<i;)(n=t[e++])<128?o[s++]=n:n>191&&n<224?o[s++]=(31&n)<<6|63&t[e++]:n>239&&n<365?(n=((7&n)<<18|(63&t[e++])<<12|(63&t[e++])<<6|63&t[e++])-65536,o[s++]=55296+(n>>10),o[s++]=56320+(1023&n)):o[s++]=(15&n)<<12|(63&t[e++])<<6|63&t[e++],s>8191&&((r||(r=[])).push(String.fromCharCode.apply(String,o)),s=0);return r?(s&&r.push(String.fromCharCode.apply(String,o.slice(0,s))),r.join("")):String.fromCharCode.apply(String,o.slice(0,s))},i.write=function(t,e,i){for(var n,r,o=i,s=0;s<t.length;++s)(n=t.charCodeAt(s))<128?e[i++]=n:(n<2048?e[i++]=n>>6|192:((64512&n)==55296&&(64512&(r=t.charCodeAt(s+1)))==56320?(n=65536+((1023&n)<<10)+(1023&r),++s,e[i++]=n>>18|240,e[i++]=n>>12&63|128):e[i++]=n>>12|224,e[i++]=n>>6&63|128),e[i++]=63&n|128);return i-o}},"./protobufjs/minimal.js"(t,e,i){t.exports=i("./protobufjs/src/index-minimal.js")},"./protobufjs/src/index-minimal.js"(t,e,i){var n=e;function configure(){n.util._configure(),n.Writer._configure(n.BufferWriter),n.Reader._configure(n.BufferReader)}n.build="minimal",n.Writer=i("./protobufjs/src/writer.js"),n.BufferWriter=i("./protobufjs/src/writer_buffer.js"),n.Reader=i("./protobufjs/src/reader.js"),n.BufferReader=i("./protobufjs/src/reader_buffer.js"),n.util=i("./protobufjs/src/util/minimal.js"),n.rpc=i("./protobufjs/src/rpc.js"),n.roots=i("./protobufjs/src/roots.js"),n.configure=configure,configure()},"./protobufjs/src/reader.js"(t,e,i){t.exports=Reader;var n,r=i("./protobufjs/src/util/minimal.js"),o=r.LongBits,s=r.utf8;function indexOutOfRange(t,e){return RangeError("index out of range: "+t.pos+" + "+(e||1)+" > "+t.len)}function Reader(t){this.buf=t,this.pos=0,this.len=t.length}var a="u">typeof Uint8Array?function(t){if(t instanceof Uint8Array||Array.isArray(t))return new Reader(t);throw Error("illegal buffer")}:function(t){if(Array.isArray(t))return new Reader(t);throw Error("illegal buffer")},create=function(){return r.Buffer?function(t){return(Reader.create=function(t){return r.Buffer.isBuffer(t)?new n(t):a(t)})(t)}:a};function readLongVarint(){var t=new o(0,0),e=0;if(this.len-this.pos>4){for(;e<4;++e)if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t;if(t.lo=(t.lo|(127&this.buf[this.pos])<<28)>>>0,t.hi=(t.hi|(127&this.buf[this.pos])>>4)>>>0,this.buf[this.pos++]<128)return t;e=0}else{for(;e<3;++e){if(this.pos>=this.len)throw indexOutOfRange(this);if(t.lo=(t.lo|(127&this.buf[this.pos])<<7*e)>>>0,this.buf[this.pos++]<128)return t}return t.lo=(t.lo|(127&this.buf[this.pos++])<<7*e)>>>0,t}if(this.len-this.pos>4){for(;e<5;++e)if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}else for(;e<5;++e){if(this.pos>=this.len)throw indexOutOfRange(this);if(t.hi=(t.hi|(127&this.buf[this.pos])<<7*e+3)>>>0,this.buf[this.pos++]<128)return t}throw Error("invalid varint encoding")}function readFixed32_end(t,e){return(t[e-4]|t[e-3]<<8|t[e-2]<<16|t[e-1]<<24)>>>0}function readFixed64(){if(this.pos+8>this.len)throw indexOutOfRange(this,8);return new o(readFixed32_end(this.buf,this.pos+=4),readFixed32_end(this.buf,this.pos+=4))}Reader.create=create(),Reader.prototype._slice=r.Array.prototype.subarray||r.Array.prototype.slice,Reader.prototype.uint32=function(){var t=0xffffffff;return function(){if(t=(127&this.buf[this.pos])>>>0,this.buf[this.pos++]<128||(t=(t|(127&this.buf[this.pos])<<7)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<14)>>>0,this.buf[this.pos++]<128)||(t=(t|(127&this.buf[this.pos])<<21)>>>0,this.buf[this.pos++]<128)||(t=(t|(15&this.buf[this.pos])<<28)>>>0,this.buf[this.pos++]<128))return t;if((this.pos+=5)>this.len)throw this.pos=this.len,indexOutOfRange(this,10);return t}}(),Reader.prototype.int32=function(){return 0|this.uint32()},Reader.prototype.sint32=function(){var t=this.uint32();return t>>>1^-(1&t)},Reader.prototype.bool=function(){return 0!==this.uint32()},Reader.prototype.fixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.sfixed32=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);return 0|readFixed32_end(this.buf,this.pos+=4)},Reader.prototype.float=function(){if(this.pos+4>this.len)throw indexOutOfRange(this,4);var t=r.float.readFloatLE(this.buf,this.pos);return this.pos+=4,t},Reader.prototype.double=function(){if(this.pos+8>this.len)throw indexOutOfRange(this,4);var t=r.float.readDoubleLE(this.buf,this.pos);return this.pos+=8,t},Reader.prototype.bytes=function(){var t=this.uint32(),e=this.pos,i=this.pos+t;if(i>this.len)throw indexOutOfRange(this,t);if(this.pos+=t,Array.isArray(this.buf))return this.buf.slice(e,i);if(e===i){var n=r.Buffer;return n?n.alloc(0):new this.buf.constructor(0)}return this._slice.call(this.buf,e,i)},Reader.prototype.string=function(){var t=this.bytes();return s.read(t,0,t.length)},Reader.prototype.skip=function(t){if("number"==typeof t){if(this.pos+t>this.len)throw indexOutOfRange(this,t);this.pos+=t}else do if(this.pos>=this.len)throw indexOutOfRange(this);while(128&this.buf[this.pos++]);return this},Reader.prototype.skipType=function(t){switch(t){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32());break;case 3:for(;4!=(t=7&this.uint32());)this.skipType(t);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+t+" at offset "+this.pos)}return this},Reader._configure=function(t){n=t,Reader.create=create(),n._configure();var e=r.Long?"toLong":"toNumber";r.merge(Reader.prototype,{int64:function(){return readLongVarint.call(this)[e](!1)},uint64:function(){return readLongVarint.call(this)[e](!0)},sint64:function(){return readLongVarint.call(this).zzDecode()[e](!1)},fixed64:function(){return readFixed64.call(this)[e](!0)},sfixed64:function(){return readFixed64.call(this)[e](!1)}})}},"./protobufjs/src/reader_buffer.js"(t,e,i){t.exports=BufferReader;var n=i("./protobufjs/src/reader.js");(BufferReader.prototype=Object.create(n.prototype)).constructor=BufferReader;var r=i("./protobufjs/src/util/minimal.js");function BufferReader(t){n.call(this,t)}BufferReader._configure=function(){r.Buffer&&(BufferReader.prototype._slice=r.Buffer.prototype.slice)},BufferReader.prototype.string=function(){var t=this.uint32();return this.buf.utf8Slice?this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+t,this.len)):this.buf.toString("utf-8",this.pos,this.pos=Math.min(this.pos+t,this.len))},BufferReader._configure()},"./protobufjs/src/roots.js"(t){t.exports={}},"./protobufjs/src/rpc.js"(t,e,i){e.Service=i("./protobufjs/src/rpc/service.js")},"./protobufjs/src/rpc/service.js"(t,e,i){t.exports=Service;var n=i("./protobufjs/src/util/minimal.js");function Service(t,e,i){if("function"!=typeof t)throw TypeError("rpcImpl must be a function");n.EventEmitter.call(this),this.rpcImpl=t,this.requestDelimited=!!e,this.responseDelimited=!!i}(Service.prototype=Object.create(n.EventEmitter.prototype)).constructor=Service,Service.prototype.rpcCall=function rpcCall(t,e,i,r,o){if(!r)throw TypeError("request must be specified");var s=this;if(!o)return n.asPromise(rpcCall,s,t,e,i,r);if(!s.rpcImpl)return void setTimeout(function(){o(Error("already ended"))},0);try{return s.rpcImpl(t,e[s.requestDelimited?"encodeDelimited":"encode"](r).finish(),function(e,n){if(e)return s.emit("error",e,t),o(e);if(null===n)return void s.end(!0);if(!(n instanceof i))try{n=i[s.responseDelimited?"decodeDelimited":"decode"](n)}catch(e){return s.emit("error",e,t),o(e)}return s.emit("data",n,t),o(null,n)})}catch(e){s.emit("error",e,t),setTimeout(function(){o(e)},0);return}},Service.prototype.end=function(t){return this.rpcImpl&&(t||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()),this}},"./protobufjs/src/util/longbits.js"(t,e,i){t.exports=LongBits;var n=i("./protobufjs/src/util/minimal.js");function LongBits(t,e){this.lo=t>>>0,this.hi=e>>>0}var r=LongBits.zero=new LongBits(0,0);r.toNumber=function(){return 0},r.zzEncode=r.zzDecode=function(){return this},r.length=function(){return 1};var o=LongBits.zeroHash="\0\0\0\0\0\0\0\0";LongBits.fromNumber=function(t){if(0===t)return r;var e=t<0;e&&(t=-t);var i=t>>>0,n=(t-i)/0x100000000>>>0;return e&&(n=~n>>>0,i=~i>>>0,++i>0xffffffff&&(i=0,++n>0xffffffff&&(n=0))),new LongBits(i,n)},LongBits.from=function(t){if("number"==typeof t)return LongBits.fromNumber(t);if(n.isString(t))if(!n.Long)return LongBits.fromNumber(parseInt(t,10));else t=n.Long.fromString(t);return t.low||t.high?new LongBits(t.low>>>0,t.high>>>0):r},LongBits.prototype.toNumber=function(t){if(!t&&this.hi>>>31){var e=~this.lo+1>>>0,i=~this.hi>>>0;return e||(i=i+1>>>0),-(e+0x100000000*i)}return this.lo+0x100000000*this.hi},LongBits.prototype.toLong=function(t){return n.Long?new n.Long(0|this.lo,0|this.hi,!!t):{low:0|this.lo,high:0|this.hi,unsigned:!!t}};var s=String.prototype.charCodeAt;LongBits.fromHash=function(t){return t===o?r:new LongBits((s.call(t,0)|s.call(t,1)<<8|s.call(t,2)<<16|s.call(t,3)<<24)>>>0,(s.call(t,4)|s.call(t,5)<<8|s.call(t,6)<<16|s.call(t,7)<<24)>>>0)},LongBits.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)},LongBits.prototype.zzEncode=function(){var t=this.hi>>31;return this.hi=((this.hi<<1|this.lo>>>31)^t)>>>0,this.lo=(this.lo<<1^t)>>>0,this},LongBits.prototype.zzDecode=function(){var t=-(1&this.lo);return this.lo=((this.lo>>>1|this.hi<<31)^t)>>>0,this.hi=(this.hi>>>1^t)>>>0,this},LongBits.prototype.length=function(){var t=this.lo,e=(this.lo>>>28|this.hi<<4)>>>0,i=this.hi>>>24;return 0===i?0===e?t<16384?t<128?1:2:t<2097152?3:4:e<16384?e<128?5:6:e<2097152?7:8:i<128?9:10}},"./protobufjs/src/util/minimal.js"(t,e,i){var n=e;function merge(t,e,i){for(var n=Object.keys(e),r=0;r<n.length;++r)void 0!==t[n[r]]&&i||(t[n[r]]=e[n[r]]);return t}function newError(t){function CustomError(t,e){if(!(this instanceof CustomError))return new CustomError(t,e);Object.defineProperty(this,"message",{get:function(){return t}}),Error.captureStackTrace?Error.captureStackTrace(this,CustomError):Object.defineProperty(this,"stack",{value:Error().stack||""}),e&&merge(this,e)}return CustomError.prototype=Object.create(Error.prototype,{constructor:{value:CustomError,writable:!0,enumerable:!1,configurable:!0},name:{get:function(){return t},set:void 0,enumerable:!1,configurable:!0},toString:{value:function(){return this.name+": "+this.message},writable:!0,enumerable:!1,configurable:!0}}),CustomError}n.asPromise=i("./@protobufjs/aspromise/index.js"),n.base64=i("./@protobufjs/base64/index.js"),n.EventEmitter=i("./@protobufjs/eventemitter/index.js"),n.float=i("./@protobufjs/float/index.js"),n.inquire=i("./@protobufjs/inquire/index.js"),n.utf8=i("./@protobufjs/utf8/index.js"),n.pool=i("./@protobufjs/pool/index.js"),n.LongBits=i("./protobufjs/src/util/longbits.js"),n.isNode=!!("u">typeof global&&global&&global.process&&global.process.versions&&global.process.versions.node),n.global=n.isNode&&global||"u">typeof window&&window||"u">typeof self&&self||this,n.emptyArray=Object.freeze?Object.freeze([]):[],n.emptyObject=Object.freeze?Object.freeze({}):{},n.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},n.isString=function(t){return"string"==typeof t||t instanceof String},n.isObject=function(t){return t&&"object"==typeof t},n.isset=n.isSet=function(t,e){var i=t[e];return!!(null!=i&&t.hasOwnProperty(e))&&("object"!=typeof i||(Array.isArray(i)?i.length:Object.keys(i).length)>0)},n.Buffer=function(){try{var t=n.inquire("buffer").Buffer;return t.prototype.utf8Write?t:null}catch(t){return null}}(),n._Buffer_from=null,n._Buffer_allocUnsafe=null,n.newBuffer=function(t){return"number"==typeof t?n.Buffer?n._Buffer_allocUnsafe(t):new n.Array(t):n.Buffer?n._Buffer_from(t):"u"<typeof Uint8Array?t:new Uint8Array(t)},n.Array="u">typeof Uint8Array?Uint8Array:Array,n.Long=n.global.dcodeIO&&n.global.dcodeIO.Long||n.global.Long||n.inquire("long"),n.key2Re=/^true|false|0|1$/,n.key32Re=/^-?(?:0|[1-9][0-9]*)$/,n.key64Re=/^(?:[\\x00-\\xff]{8}|-?(?:0|[1-9][0-9]*))$/,n.longToHash=function(t){return t?n.LongBits.from(t).toHash():n.LongBits.zeroHash},n.longFromHash=function(t,e){var i=n.LongBits.fromHash(t);return n.Long?n.Long.fromBits(i.lo,i.hi,e):i.toNumber(!!e)},n.merge=merge,n.lcFirst=function(t){return t.charAt(0).toLowerCase()+t.substring(1)},n.newError=newError,n.ProtocolError=newError("ProtocolError"),n.oneOfGetter=function(t){for(var e={},i=0;i<t.length;++i)e[t[i]]=1;return function(){for(var t=Object.keys(this),i=t.length-1;i>-1;--i)if(1===e[t[i]]&&void 0!==this[t[i]]&&null!==this[t[i]])return t[i]}},n.oneOfSetter=function(t){return function(e){for(var i=0;i<t.length;++i)t[i]!==e&&delete this[t[i]]}},n.toJSONOptions={longs:String,enums:String,bytes:String,json:!0},n._configure=function(){var t=n.Buffer;if(!t){n._Buffer_from=n._Buffer_allocUnsafe=null;return}n._Buffer_from=t.from!==Uint8Array.from&&t.from||function(e,i){return new t(e,i)},n._Buffer_allocUnsafe=t.allocUnsafe||function(e){return new t(e)}}},"./protobufjs/src/writer.js"(t,e,i){t.exports=Writer;var n,r=i("./protobufjs/src/util/minimal.js"),o=r.LongBits,s=r.base64,a=r.utf8;function Op(t,e,i){this.fn=t,this.len=e,this.next=void 0,this.val=i}function noop(){}function State(t){this.head=t.head,this.tail=t.tail,this.len=t.len,this.next=t.states}function Writer(){this.len=0,this.head=new Op(noop,0,0),this.tail=this.head,this.states=null}var create=function(){return r.Buffer?function(){return(Writer.create=function(){return new n})()}:function(){return new Writer}};function writeByte(t,e,i){e[i]=255&t}function writeVarint32(t,e,i){for(;t>127;)e[i++]=127&t|128,t>>>=7;e[i]=t}function VarintOp(t,e){this.len=t,this.next=void 0,this.val=e}function writeVarint64(t,e,i){for(;t.hi;)e[i++]=127&t.lo|128,t.lo=(t.lo>>>7|t.hi<<25)>>>0,t.hi>>>=7;for(;t.lo>127;)e[i++]=127&t.lo|128,t.lo=t.lo>>>7;e[i++]=t.lo}function writeFixed32(t,e,i){e[i]=255&t,e[i+1]=t>>>8&255,e[i+2]=t>>>16&255,e[i+3]=t>>>24}Writer.create=create(),Writer.alloc=function(t){return new r.Array(t)},r.Array!==Array&&(Writer.alloc=r.pool(Writer.alloc,r.Array.prototype.subarray)),Writer.prototype._push=function(t,e,i){return this.tail=this.tail.next=new Op(t,e,i),this.len+=e,this},VarintOp.prototype=Object.create(Op.prototype),VarintOp.prototype.fn=writeVarint32,Writer.prototype.uint32=function(t){return this.len+=(this.tail=this.tail.next=new VarintOp((t>>>=0)<128?1:t<16384?2:t<2097152?3:t<0x10000000?4:5,t)).len,this},Writer.prototype.int32=function(t){return t<0?this._push(writeVarint64,10,o.fromNumber(t)):this.uint32(t)},Writer.prototype.sint32=function(t){return this.uint32((t<<1^t>>31)>>>0)},Writer.prototype.uint64=function(t){var e=o.from(t);return this._push(writeVarint64,e.length(),e)},Writer.prototype.int64=Writer.prototype.uint64,Writer.prototype.sint64=function(t){var e=o.from(t).zzEncode();return this._push(writeVarint64,e.length(),e)},Writer.prototype.bool=function(t){return this._push(writeByte,1,+!!t)},Writer.prototype.fixed32=function(t){return this._push(writeFixed32,4,t>>>0)},Writer.prototype.sfixed32=Writer.prototype.fixed32,Writer.prototype.fixed64=function(t){var e=o.from(t);return this._push(writeFixed32,4,e.lo)._push(writeFixed32,4,e.hi)},Writer.prototype.sfixed64=Writer.prototype.fixed64,Writer.prototype.float=function(t){return this._push(r.float.writeFloatLE,4,t)},Writer.prototype.double=function(t){return this._push(r.float.writeDoubleLE,8,t)};var u=r.Array.prototype.set?function(t,e,i){e.set(t,i)}:function(t,e,i){for(var n=0;n<t.length;++n)e[i+n]=t[n]};Writer.prototype.bytes=function(t){var e=t.length>>>0;if(!e)return this._push(writeByte,1,0);if(r.isString(t)){var i=Writer.alloc(e=s.length(t));s.decode(t,i,0),t=i}return this.uint32(e)._push(u,e,t)},Writer.prototype.string=function(t){var e=a.length(t);return e?this.uint32(e)._push(a.write,e,t):this._push(writeByte,1,0)},Writer.prototype.fork=function(){return this.states=new State(this),this.head=this.tail=new Op(noop,0,0),this.len=0,this},Writer.prototype.reset=function(){return this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new Op(noop,0,0),this.len=0),this},Writer.prototype.ldelim=function(){var t=this.head,e=this.tail,i=this.len;return this.reset().uint32(i),i&&(this.tail.next=t.next,this.tail=e,this.len+=i),this},Writer.prototype.finish=function(){for(var t=this.head.next,e=this.constructor.alloc(this.len),i=0;t;)t.fn(t.val,e,i),i+=t.len,t=t.next;return e},Writer._configure=function(t){n=t,Writer.create=create(),n._configure()}},"./protobufjs/src/writer_buffer.js"(t,e,i){t.exports=BufferWriter;var n=i("./protobufjs/src/writer.js");(BufferWriter.prototype=Object.create(n.prototype)).constructor=BufferWriter;var r=i("./protobufjs/src/util/minimal.js");function BufferWriter(){n.call(this)}function writeStringBuffer(t,e,i){t.length<40?r.utf8.write(t,e,i):e.utf8Write?e.utf8Write(t,i):e.write(t,i)}BufferWriter._configure=function(){BufferWriter.alloc=r._Buffer_allocUnsafe,BufferWriter.writeBytesBuffer=r.Buffer&&r.Buffer.prototype instanceof Uint8Array&&"set"===r.Buffer.prototype.set.name?function(t,e,i){e.set(t,i)}:function(t,e,i){if(t.copy)t.copy(e,i,0,t.length);else for(var n=0;n<t.length;)e[i++]=t[n++]}},BufferWriter.prototype.bytes=function(t){r.isString(t)&&(t=r._Buffer_from(t,"base64"));var e=t.length>>>0;return this.uint32(e),e&&this._push(BufferWriter.writeBytesBuffer,e,t),this},BufferWriter.prototype.string=function(t){var e=r.Buffer.byteLength(t);return this.uint32(e),e&&this._push(writeStringBuffer,e,t),this},BufferWriter._configure()}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var i=__webpack_module_cache__[t]={exports:{}};return __webpack_modules__[t].call(i.exports,i,i.exports,__webpack_require__),i.exports}var __webpack_exports__=__webpack_require__("./@datadog/sketches-js/dist/index.js");module.exports=__webpack_exports__})();
@@ -1 +1 @@
1
- (()=>{var e={"./@datadog/source-map/lib/array-set.js":function(e,r,n){var t=n("./@datadog/source-map/lib/util.js"),o=Object.prototype.hasOwnProperty,i="undefined"!=typeof Map;function ArraySet(){this._array=[],this._set=i?new Map:Object.create(null)}ArraySet.fromArray=function(e,r){for(var n=new ArraySet,t=0,o=e.length;t<o;t++)n.add(e[t],r);return n},ArraySet.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},ArraySet.prototype.add=function(e,r){var n=i?e:t.toSetString(e),a=i?this.has(e):o.call(this._set,n),s=this._array.length;(!a||r)&&this._array.push(e),a||(i?this._set.set(e,s):this._set[n]=s)},ArraySet.prototype.has=function(e){if(i)return this._set.has(e);var r=t.toSetString(e);return o.call(this._set,r)},ArraySet.prototype.indexOf=function(e){if(i){var r=this._set.get(e);if(r>=0)return r}else{var n=t.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw Error('"'+e+'" is not in the set.')},ArraySet.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error("No element indexed by "+e)},ArraySet.prototype.toArray=function(){return this._array.slice()},r.ArraySet=ArraySet},"./@datadog/source-map/lib/base64-vlq.js":function(e,r,n){var t=n("./@datadog/source-map/lib/base64.js");function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var r=e>>1;return(1&e)==1?-r:r}r.encode=function(e){var r,n="",o=toVLQSigned(e);do r=31&o,(o>>>=5)>0&&(r|=32),n+=t.encode(r);while(o>0);return n},r.decode=function(e,r,n){var o,i,a=e.length,s=0,u=0;do{if(r>=a)throw Error("Expected more digits in base 64 VLQ value.");if(-1===(i=t.decode(e.charCodeAt(r++))))throw Error("Invalid base64 digit: "+e.charAt(r-1));o=!!(32&i),i&=31,s+=i<<u,u+=5}while(o);n.value=fromVLQSigned(s),n.rest=r}},"./@datadog/source-map/lib/base64.js":function(e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e<n.length)return n[e];throw TypeError("Must be between 0 and 63: "+e)},r.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},"./@datadog/source-map/lib/binary-search.js":function(e,r){function recursiveSearch(e,n,t,o,i,a){var s=Math.floor((n-e)/2)+e,u=i(t,o[s],!0);return 0===u?s:u>0?n-s>1?recursiveSearch(s,n,t,o,i,a):a==r.LEAST_UPPER_BOUND?n<o.length?n:-1:s:s-e>1?recursiveSearch(e,s,t,o,i,a):a==r.LEAST_UPPER_BOUND?s:e<0?-1:e}r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.search=function(e,n,t,o){if(0===n.length)return -1;var i=recursiveSearch(-1,n.length,e,n,t,o||r.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===t(n[i],n[i-1],!0);)--i;return i}},"./@datadog/source-map/lib/mapping-list.js":function(e,r,n){var t=n("./@datadog/source-map/lib/util.js");function generatedPositionAfter(e,r){var n=e.generatedLine,o=r.generatedLine,i=e.generatedColumn,a=r.generatedColumn;return o>n||o==n&&a>=i||0>=t.compareByGeneratedPositionsInflated(e,r)}function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)},MappingList.prototype.add=function(e){generatedPositionAfter(this._last,e)?this._last=e:this._sorted=!1,this._array.push(e)},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},r.MappingList=MappingList},"./@datadog/source-map/lib/quick-sort.js":function(e,r){function swap(e,r,n){var t=e[r];e[r]=e[n],e[n]=t}function randomIntInRange(e,r){return Math.round(e+Math.random()*(r-e))}function doQuickSort(e,r,n,t){if(n<t){var o=randomIntInRange(n,t),i=n-1;swap(e,o,t);for(var a=e[t],s=n;s<t;s++)0>=r(e[s],a)&&swap(e,i+=1,s);swap(e,i+1,s);var u=i+1;doQuickSort(e,r,n,u-1),doQuickSort(e,r,u+1,t)}}r.quickSort=function(e,r){doQuickSort(e,r,0,e.length-1)}},"./@datadog/source-map/lib/source-map-consumer.js":function(e,r,n){var t=n("./@datadog/source-map/lib/util.js"),o=n("./@datadog/source-map/lib/binary-search.js"),i=n("./@datadog/source-map/lib/array-set.js").ArraySet,a=n("./@datadog/source-map/lib/base64-vlq.js"),s=n("./@datadog/source-map/lib/quick-sort.js").quickSort;function SourceMapConsumer(e,r){var n=e;return"string"==typeof e&&(n=t.parseSourceMapInput(e)),null!=n.sections?new IndexedSourceMapConsumer(n,r):new BasicSourceMapConsumer(n,r)}function BasicSourceMapConsumer(e,r){var n=e;"string"==typeof e&&(n=t.parseSourceMapInput(e));var o=t.getArg(n,"version"),a=t.getArg(n,"sources"),s=t.getArg(n,"names",[]),u=t.getArg(n,"sourceRoot",null),l=t.getArg(n,"sourcesContent",null),c=t.getArg(n,"mappings"),p=t.getArg(n,"file",null);if(o!=this._version)throw Error("Unsupported version: "+o);u&&(u=t.normalize(u)),a=a.map(String).map(t.normalize).map(function(e){return u&&t.isAbsolute(u)&&t.isAbsolute(e)?t.relative(u,e):e}),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(u,e,r)}),this.sourceRoot=u,this.sourcesContent=l,this._mappings=c,this._sourceMapURL=r,this.file=p}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(e,r){var n=e;"string"==typeof e&&(n=t.parseSourceMapInput(e));var o=t.getArg(n,"version"),a=t.getArg(n,"sections");if(o!=this._version)throw Error("Unsupported version: "+o);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw Error("Support for url field in sections not implemented.");var n=t.getArg(e,"offset"),o=t.getArg(n,"line"),i=t.getArg(n,"column");if(o<s.line||o===s.line&&i<s.column)throw Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new SourceMapConsumer(t.getArg(e,"map"),r)}})}SourceMapConsumer.fromSourceMap=function(e,r){return BasicSourceMapConsumer.fromSourceMap(e,r)},SourceMapConsumer.prototype._version=3,SourceMapConsumer.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return";"===n||","===n},SourceMapConsumer.prototype._parseMappings=function(e,r){throw Error("Subclasses must implement _parseMappings")},SourceMapConsumer.GENERATED_ORDER=1,SourceMapConsumer.ORIGINAL_ORDER=2,SourceMapConsumer.GREATEST_LOWER_BOUND=1,SourceMapConsumer.LEAST_UPPER_BOUND=2,SourceMapConsumer.prototype.eachMapping=function(e,r,n){switch(n||SourceMapConsumer.GENERATED_ORDER){case SourceMapConsumer.GENERATED_ORDER:o=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var o,i=this.sourceRoot;o.map(function(e){var r=null===e.source?null:this._sources.at(e.source);return{source:r=t.computeSourceURL(i,r,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,r||null)},SourceMapConsumer.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,"line"),n={source:t.getArg(e,"source"),originalLine:r,originalColumn:t.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var u=s.originalLine;s&&s.originalLine===u;)i.push({line:t.getArg(s,"generatedLine",null),column:t.getArg(s,"generatedColumn",null),lastColumn:t.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)i.push({line:t.getArg(s,"generatedLine",null),column:t.getArg(s,"generatedColumn",null),lastColumn:t.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},r.SourceMapConsumer=SourceMapConsumer,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var r,n=e;if(null!=this.sourceRoot&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return -1},BasicSourceMapConsumer.fromSourceMap=function(e,r){var n=Object.create(BasicSourceMapConsumer.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(e){return t.computeSourceURL(n.sourceRoot,e,r)});for(var u=e._mappings.toArray().slice(),l=n.__generatedMappings=[],c=n.__originalMappings=[],p=0,g=u.length;p<g;p++){var d=u[p],h=new Mapping;h.generatedLine=d.generatedLine,h.generatedColumn=d.generatedColumn,d.source&&(h.source=a.indexOf(d.source),h.originalLine=d.originalLine,h.originalColumn=d.originalColumn,d.name&&(h.name=o.indexOf(d.name)),c.push(h)),l.push(h)}return s(n.__originalMappings,t.compareByOriginalPositions),n},BasicSourceMapConsumer.prototype._version=3,Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),BasicSourceMapConsumer.prototype._parseMappings=function(e,r){for(var n,o,i,u,l,c=1,p=0,g=0,d=0,h=0,m=0,f=e.length,_=0,S={},C={},M=[],y=[];_<f;)if(";"===e.charAt(_))c++,_++,p=0;else if(","===e.charAt(_))_++;else{for((n=new Mapping).generatedLine=c,u=_;u<f&&!this._charIsMappingSeparator(e,u);u++);if(i=S[o=e.slice(_,u)])_+=o.length;else{for(i=[];_<u;)a.decode(e,_,C),l=C.value,_=C.rest,i.push(l);if(2===i.length)throw Error("Found a source, but no line and column");if(3===i.length)throw Error("Found a source and line, but no column");S[o]=i}n.generatedColumn=p+i[0],p=n.generatedColumn,i.length>1&&(n.source=h+i[1],h+=i[1],n.originalLine=g+i[2],g=n.originalLine,n.originalLine+=1,n.originalColumn=d+i[3],d=n.originalColumn,i.length>4&&(n.name=m+i[4],m+=i[4])),y.push(n),"number"==typeof n.originalLine&&M.push(n)}s(y,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,s(M,t.compareByOriginalPositions),this.__originalMappings=M},BasicSourceMapConsumer.prototype._findMapping=function(e,r,n,t,i,a){if(e[n]<=0)throw TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[t]<0)throw TypeError("Column must be greater than or equal to 0, got "+e[t]);return o.search(e,r,i,a)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},BasicSourceMapConsumer.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,"line"),generatedColumn:t.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===r.generatedLine){var i=t.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=t.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=t.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:t.getArg(o,"originalLine",null),column:t.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n,o=this._findSourceIndex(e);if(o>=0)return this.sourcesContent[o];var i=e;if(null!=this.sourceRoot&&(i=t.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=t.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw Error('"'+i+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var r=t.getArg(e,"source");if((r=this._findSourceIndex(r))<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:t.getArg(e,"line"),originalColumn:t.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:t.getArg(i,"generatedLine",null),column:t.getArg(i,"generatedColumn",null),lastColumn:t.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],r=0;r<this._sections.length;r++)for(var n=0;n<this._sections[r].consumer.sources.length;n++)e.push(this._sections[r].consumer.sources[n]);return e}}),IndexedSourceMapConsumer.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,"line"),generatedColumn:t.getArg(e,"column")},n=o.search(r,this._sections,function(e,r){var n=e.generatedLine-r.generatedOffset.generatedLine;return n||e.generatedColumn-r.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},IndexedSourceMapConsumer.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var t=this._sections[n].consumer.sourceContentFor(e,!0);if(t)return t}if(r)return null;throw Error('"'+e+'" is not in the SourceMap.')},IndexedSourceMapConsumer.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(-1!==n.consumer._findSourceIndex(t.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},IndexedSourceMapConsumer.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,a=0;a<i.length;a++){var u=i[a],l=o.consumer._sources.at(u.source);l=t.computeSourceURL(o.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;u.name&&(c=o.consumer._names.at(u.name),this._names.add(c),c=this._names.indexOf(c));var p={source:l,generatedLine:u.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:c};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}s(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),s(this.__originalMappings,t.compareByOriginalPositions)}},"./@datadog/source-map/lib/source-map-generator.js":function(e,r,n){var t=n("./@datadog/source-map/lib/base64-vlq.js"),o=n("./@datadog/source-map/lib/util.js"),i=n("./@datadog/source-map/lib/array-set.js").ArraySet,a=n("./@datadog/source-map/lib/mapping-list.js").MappingList;function SourceMapGenerator(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}SourceMapGenerator.prototype._version=3,SourceMapGenerator.fromSourceMap=function(e){var r=e.sourceRoot,n=new SourceMapGenerator({file:e.file,sourceRoot:r});return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=o.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),n.addMapping(t)}),e.sources.forEach(function(t){var i=t;null!==r&&(i=o.relative(r,t)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(t);null!=a&&n.setSourceContent(t,a)}),n},SourceMapGenerator.prototype.addMapping=function(e){var r=o.getArg(e,"generated"),n=o.getArg(e,"original",null),t=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,t,i),null!=t&&(t=String(t),this._sources.has(t)||this._sources.add(t)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:t,name:i})},SourceMapGenerator.prototype.setSourceContent=function(e,r){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=r?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},SourceMapGenerator.prototype.applySourceMap=function(e,r,n){var t=r;if(null==r){if(null==e.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');t=e.file}var a=this._sourceRoot;null!=a&&(t=o.relative(a,t));var s=new i,u=new i;this._mappings.unsortedForEach(function(r){if(r.source===t&&null!=r.originalLine){var i=e.originalPositionFor({line:r.originalLine,column:r.originalColumn});null!=i.source&&(r.source=i.source,null!=n&&(r.source=o.join(n,r.source)),null!=a&&(r.source=o.relative(a,r.source)),r.originalLine=i.line,r.originalColumn=i.column,null!=i.name&&(r.name=i.name))}var l=r.source;null==l||s.has(l)||s.add(l);var c=r.name;null==c||u.has(c)||u.add(c)},this),this._sources=s,this._names=u,e.sources.forEach(function(r){var t=e.sourceContentFor(r);null!=t&&(null!=n&&(r=o.join(n,r)),null!=a&&(r=o.relative(a,r)),this.setSourceContent(r,t))},this)},SourceMapGenerator.prototype._validateMapping=function(e,r,n,t){if(r&&"number"!=typeof r.line&&"number"!=typeof r.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!e||!("line"in e)||!("column"in e)||!(e.line>0)||!(e.column>=0)||r||n||t){if(!e||!("line"in e)||!("column"in e)||!r||!("line"in r)||!("column"in r)||!(e.line>0)||!(e.column>=0)||!(r.line>0)||!(r.column>=0)||!n)throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:t}))}},SourceMapGenerator.prototype._serializeMappings=function(){for(var e,r,n,i,a=0,s=1,u=0,l=0,c=0,p=0,g="",d=this._mappings.toArray(),h=0,m=d.length;h<m;h++){if(r=d[h],e="",r.generatedLine!==s)for(a=0;r.generatedLine!==s;)e+=";",s++;else if(h>0){if(!o.compareByGeneratedPositionsInflated(r,d[h-1]))continue;e+=","}e+=t.encode(r.generatedColumn-a),a=r.generatedColumn,null!=r.source&&(i=this._sources.indexOf(r.source),e+=t.encode(i-p),p=i,e+=t.encode(r.originalLine-1-l),l=r.originalLine-1,e+=t.encode(r.originalColumn-u),u=r.originalColumn,null!=r.name&&(n=this._names.indexOf(r.name),e+=t.encode(n-c),c=n)),g+=e}return g},SourceMapGenerator.prototype._generateSourcesContent=function(e,r){return e.map(function(e){if(!this._sourcesContents)return null;null!=r&&(e=o.relative(r,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},SourceMapGenerator.prototype.toString=function(){return JSON.stringify(this.toJSON())},r.SourceMapGenerator=SourceMapGenerator},"./@datadog/source-map/lib/source-node.js":function(e,r,n){var t=n("./@datadog/source-map/lib/source-map-generator.js").SourceMapGenerator,o=n("./@datadog/source-map/lib/util.js"),i=/(\r?\n)/,a="$$$isSourceNode$$$";function SourceNode(e,r,n,t,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==r?null:r,this.source=null==n?null:n,this.name=null==o?null:o,this[a]=!0,null!=t&&this.add(t)}SourceNode.fromStringWithSourceMap=function(e,r,n){var t=new SourceNode,a=e.split(i),s=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return s<a.length?a[s++]:void 0}},u=1,l=0,c=null;return r.eachMapping(function(e){if(null!==c)if(u<e.generatedLine)addMappingWithCode(c,shiftNextLine()),u++,l=0;else{var r=a[s]||"",n=r.substr(0,e.generatedColumn-l);a[s]=r.substr(e.generatedColumn-l),l=e.generatedColumn,addMappingWithCode(c,n),c=e;return}for(;u<e.generatedLine;)t.add(shiftNextLine()),u++;if(l<e.generatedColumn){var r=a[s]||"";t.add(r.substr(0,e.generatedColumn)),a[s]=r.substr(e.generatedColumn),l=e.generatedColumn}c=e},this),s<a.length&&(c&&addMappingWithCode(c,shiftNextLine()),t.add(a.splice(s).join(""))),r.sources.forEach(function(e){var i=r.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),t.setSourceContent(e,i))}),t;function addMappingWithCode(e,r){if(null===e||void 0===e.source)t.add(r);else{var i=n?o.join(n,e.source):e.source;t.add(new SourceNode(e.originalLine,e.originalColumn,i,r,e.name))}}},SourceNode.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||"string"==typeof e)e&&this.children.push(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},SourceNode.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[a]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},SourceNode.prototype.walk=function(e){for(var r,n=0,t=this.children.length;n<t;n++)(r=this.children[n])[a]?r.walk(e):""!==r&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})},SourceNode.prototype.join=function(e){var r,n,t=this.children.length;if(t>0){for(n=0,r=[];n<t-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this},SourceNode.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,r):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this},SourceNode.prototype.setSourceContent=function(e,r){this.sourceContents[o.toSetString(e)]=r},SourceNode.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][a]&&this.children[r].walkSourceContents(e);for(var t=Object.keys(this.sourceContents),r=0,n=t.length;r<n;r++)e(o.fromSetString(t[r]),this.sourceContents[t[r]])},SourceNode.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e},SourceNode.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new t(e),o=!1,i=null,a=null,s=null,u=null;return this.walk(function(e,t){r.code+=e,null!==t.source&&null!==t.line&&null!==t.column?((i!==t.source||a!==t.line||s!==t.column||u!==t.name)&&n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name}),i=t.source,a=t.line,s=t.column,u=t.name,o=!0):o&&(n.addMapping({generated:{line:r.line,column:r.column}}),i=null,o=!1);for(var l=0,c=e.length;l<c;l++)10===e.charCodeAt(l)?(r.line++,r.column=0,l+1===c?(i=null,o=!1):o&&n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name})):r.column++}),this.walkSourceContents(function(e,r){n.setSourceContent(e,r)}),{code:r.code,map:n}},r.SourceNode=SourceNode},"./@datadog/source-map/lib/util.js":function(e,r){r.getArg=function(e,r,n){if(r in e)return e[r];if(3==arguments.length)return n;throw Error('"'+r+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,t=/^data:.+\,.+$/;function urlParse(e){var r=e.match(n);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}function urlGenerate(e){var r="";return e.scheme&&(r+=e.scheme+":"),r+="//",e.auth&&(r+=e.auth+"@"),e.host&&(r+=e.host),e.port&&(r+=":"+e.port),e.path&&(r+=e.path),r}function normalize(e){var n=e,t=urlParse(e);if(t){if(!t.path)return e;n=t.path}for(var o,i=r.isAbsolute(n),a=n.split(/\/+/),s=0,u=a.length-1;u>=0;u--)"."===(o=a[u])?a.splice(u,1):".."===o?s++:s>0&&(""===o?(a.splice(u+1,s),s=0):(a.splice(u,2),s--));return(""===(n=a.join("/"))&&(n=i?"/":"."),t)?(t.path=n,urlGenerate(t)):n}function join(e,r){""===e&&(e="."),""===r&&(r=".");var n=urlParse(r),o=urlParse(e);if(o&&(e=o.path||"/"),n&&!n.scheme)return o&&(n.scheme=o.scheme),urlGenerate(n);if(n||r.match(t))return r;if(o&&!o.host&&!o.path)return o.host=r,urlGenerate(o);var i="/"===r.charAt(0)?r:normalize(e.replace(/\/+$/,"")+"/"+r);return o?(o.path=i,urlGenerate(o)):i}r.urlParse=urlParse,r.urlGenerate=urlGenerate,r.normalize=normalize,r.join=join,r.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},r.relative=function(e,r){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==r.indexOf(e+"/");){var t=e.lastIndexOf("/");if(t<0||(e=e.slice(0,t)).match(/^([^\/]+:\/)?\/*$/))return r;++n}return Array(n+1).join("../")+r.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(e){if(!e)return!1;var r=e.length;if(r<9||95!==e.charCodeAt(r-1)||95!==e.charCodeAt(r-2)||111!==e.charCodeAt(r-3)||116!==e.charCodeAt(r-4)||111!==e.charCodeAt(r-5)||114!==e.charCodeAt(r-6)||112!==e.charCodeAt(r-7)||95!==e.charCodeAt(r-8)||95!==e.charCodeAt(r-9))return!1;for(var n=r-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function strcmp(e,r){return e===r?0:null===e?1:null===r?-1:e>r?1:-1}r.toSetString=o?identity:toSetString,r.fromSetString=o?identity:fromSetString,r.compareByOriginalPositions=function(e,r,n){var t=strcmp(e.source,r.source);return 0!==t||0!=(t=e.originalLine-r.originalLine)||0!=(t=e.originalColumn-r.originalColumn)||n||0!=(t=e.generatedColumn-r.generatedColumn)||0!=(t=e.generatedLine-r.generatedLine)?t:strcmp(e.name,r.name)},r.compareByGeneratedPositionsDeflated=function(e,r,n){var t=e.generatedLine-r.generatedLine;return 0!==t||0!=(t=e.generatedColumn-r.generatedColumn)||n||0!==(t=strcmp(e.source,r.source))||0!=(t=e.originalLine-r.originalLine)||0!=(t=e.originalColumn-r.originalColumn)?t:strcmp(e.name,r.name)},r.compareByGeneratedPositionsInflated=function(e,r){var n=e.generatedLine-r.generatedLine;return 0!==n||0!=(n=e.generatedColumn-r.generatedColumn)||0!==(n=strcmp(e.source,r.source))||0!=(n=e.originalLine-r.originalLine)||0!=(n=e.originalColumn-r.originalColumn)?n:strcmp(e.name,r.name)},r.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},r.computeSourceURL=function(e,r,n){if(r=r||"",e&&("/"!==e[e.length-1]&&"/"!==r[0]&&(e+="/"),r=e+r),n){var t=urlParse(n);if(!t)throw Error("sourceMapURL could not be parsed");if(t.path){var o=t.path.lastIndexOf("/");o>=0&&(t.path=t.path.substring(0,o+1))}r=join(urlGenerate(t),r)}return normalize(r)}}},r={};function __webpack_require__(n){var t=r[n];if(void 0!==t)return t.exports;var o=r[n]={exports:{}};return e[n](o,o.exports,__webpack_require__),o.exports}var n={};n.SourceMapGenerator=__webpack_require__("./@datadog/source-map/lib/source-map-generator.js").SourceMapGenerator,n.SourceMapConsumer=__webpack_require__("./@datadog/source-map/lib/source-map-consumer.js").SourceMapConsumer,n.SourceNode=__webpack_require__("./@datadog/source-map/lib/source-node.js").SourceNode,module.exports=n})();
1
+ (()=>{var e={"./@datadog/source-map/lib/array-set.js"(e,r,n){var t=n("./@datadog/source-map/lib/util.js"),o=Object.prototype.hasOwnProperty,i="u">typeof Map;function ArraySet(){this._array=[],this._set=i?new Map:Object.create(null)}ArraySet.fromArray=function(e,r){for(var n=new ArraySet,t=0,o=e.length;t<o;t++)n.add(e[t],r);return n},ArraySet.prototype.size=function(){return i?this._set.size:Object.getOwnPropertyNames(this._set).length},ArraySet.prototype.add=function(e,r){var n=i?e:t.toSetString(e),a=i?this.has(e):o.call(this._set,n),s=this._array.length;(!a||r)&&this._array.push(e),a||(i?this._set.set(e,s):this._set[n]=s)},ArraySet.prototype.has=function(e){if(i)return this._set.has(e);var r=t.toSetString(e);return o.call(this._set,r)},ArraySet.prototype.indexOf=function(e){if(i){var r=this._set.get(e);if(r>=0)return r}else{var n=t.toSetString(e);if(o.call(this._set,n))return this._set[n]}throw Error('"'+e+'" is not in the set.')},ArraySet.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw Error("No element indexed by "+e)},ArraySet.prototype.toArray=function(){return this._array.slice()},r.ArraySet=ArraySet},"./@datadog/source-map/lib/base64-vlq.js"(e,r,n){var t=n("./@datadog/source-map/lib/base64.js");function toVLQSigned(e){return e<0?(-e<<1)+1:(e<<1)+0}function fromVLQSigned(e){var r=e>>1;return(1&e)==1?-r:r}r.encode=function(e){var r,n="",o=toVLQSigned(e);do r=31&o,(o>>>=5)>0&&(r|=32),n+=t.encode(r);while(o>0);return n},r.decode=function(e,r,n){var o,i,a=e.length,s=0,u=0;do{if(r>=a)throw Error("Expected more digits in base 64 VLQ value.");if(-1===(i=t.decode(e.charCodeAt(r++))))throw Error("Invalid base64 digit: "+e.charAt(r-1));o=!!(32&i),i&=31,s+=i<<u,u+=5}while(o);n.value=fromVLQSigned(s),n.rest=r}},"./@datadog/source-map/lib/base64.js"(e,r){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");r.encode=function(e){if(0<=e&&e<n.length)return n[e];throw TypeError("Must be between 0 and 63: "+e)},r.decode=function(e){return 65<=e&&e<=90?e-65:97<=e&&e<=122?e-97+26:48<=e&&e<=57?e-48+52:43==e?62:47==e?63:-1}},"./@datadog/source-map/lib/binary-search.js"(e,r){function recursiveSearch(e,n,t,o,i,a){var s=Math.floor((n-e)/2)+e,u=i(t,o[s],!0);return 0===u?s:u>0?n-s>1?recursiveSearch(s,n,t,o,i,a):a==r.LEAST_UPPER_BOUND?n<o.length?n:-1:s:s-e>1?recursiveSearch(e,s,t,o,i,a):a==r.LEAST_UPPER_BOUND?s:e<0?-1:e}r.GREATEST_LOWER_BOUND=1,r.LEAST_UPPER_BOUND=2,r.search=function(e,n,t,o){if(0===n.length)return -1;var i=recursiveSearch(-1,n.length,e,n,t,o||r.GREATEST_LOWER_BOUND);if(i<0)return -1;for(;i-1>=0&&0===t(n[i],n[i-1],!0);)--i;return i}},"./@datadog/source-map/lib/mapping-list.js"(e,r,n){var t=n("./@datadog/source-map/lib/util.js");function generatedPositionAfter(e,r){var n=e.generatedLine,o=r.generatedLine,i=e.generatedColumn,a=r.generatedColumn;return o>n||o==n&&a>=i||0>=t.compareByGeneratedPositionsInflated(e,r)}function MappingList(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}MappingList.prototype.unsortedForEach=function(e,r){this._array.forEach(e,r)},MappingList.prototype.add=function(e){generatedPositionAfter(this._last,e)?this._last=e:this._sorted=!1,this._array.push(e)},MappingList.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},r.MappingList=MappingList},"./@datadog/source-map/lib/quick-sort.js"(e,r){function swap(e,r,n){var t=e[r];e[r]=e[n],e[n]=t}function randomIntInRange(e,r){return Math.round(e+Math.random()*(r-e))}function doQuickSort(e,r,n,t){if(n<t){var o=randomIntInRange(n,t),i=n-1;swap(e,o,t);for(var a=e[t],s=n;s<t;s++)0>=r(e[s],a)&&swap(e,i+=1,s);swap(e,i+1,s);var u=i+1;doQuickSort(e,r,n,u-1),doQuickSort(e,r,u+1,t)}}r.quickSort=function(e,r){doQuickSort(e,r,0,e.length-1)}},"./@datadog/source-map/lib/source-map-consumer.js"(e,r,n){var t=n("./@datadog/source-map/lib/util.js"),o=n("./@datadog/source-map/lib/binary-search.js"),i=n("./@datadog/source-map/lib/array-set.js").ArraySet,a=n("./@datadog/source-map/lib/base64-vlq.js"),s=n("./@datadog/source-map/lib/quick-sort.js").quickSort;function SourceMapConsumer(e,r){var n=e;return"string"==typeof e&&(n=t.parseSourceMapInput(e)),null!=n.sections?new IndexedSourceMapConsumer(n,r):new BasicSourceMapConsumer(n,r)}function BasicSourceMapConsumer(e,r){var n=e;"string"==typeof e&&(n=t.parseSourceMapInput(e));var o=t.getArg(n,"version"),a=t.getArg(n,"sources"),s=t.getArg(n,"names",[]),u=t.getArg(n,"sourceRoot",null),l=t.getArg(n,"sourcesContent",null),c=t.getArg(n,"mappings"),p=t.getArg(n,"file",null);if(o!=this._version)throw Error("Unsupported version: "+o);u&&(u=t.normalize(u)),a=a.map(String).map(t.normalize).map(function(e){return u&&t.isAbsolute(u)&&t.isAbsolute(e)?t.relative(u,e):e}),this._names=i.fromArray(s.map(String),!0),this._sources=i.fromArray(a,!0),this._absoluteSources=this._sources.toArray().map(function(e){return t.computeSourceURL(u,e,r)}),this.sourceRoot=u,this.sourcesContent=l,this._mappings=c,this._sourceMapURL=r,this.file=p}function Mapping(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}function IndexedSourceMapConsumer(e,r){var n=e;"string"==typeof e&&(n=t.parseSourceMapInput(e));var o=t.getArg(n,"version"),a=t.getArg(n,"sections");if(o!=this._version)throw Error("Unsupported version: "+o);this._sources=new i,this._names=new i;var s={line:-1,column:0};this._sections=a.map(function(e){if(e.url)throw Error("Support for url field in sections not implemented.");var n=t.getArg(e,"offset"),o=t.getArg(n,"line"),i=t.getArg(n,"column");if(o<s.line||o===s.line&&i<s.column)throw Error("Section offsets must be ordered and non-overlapping.");return s=n,{generatedOffset:{generatedLine:o+1,generatedColumn:i+1},consumer:new SourceMapConsumer(t.getArg(e,"map"),r)}})}SourceMapConsumer.fromSourceMap=function(e,r){return BasicSourceMapConsumer.fromSourceMap(e,r)},SourceMapConsumer.prototype._version=3,SourceMapConsumer.prototype.__generatedMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}}),SourceMapConsumer.prototype.__originalMappings=null,Object.defineProperty(SourceMapConsumer.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}}),SourceMapConsumer.prototype._charIsMappingSeparator=function(e,r){var n=e.charAt(r);return";"===n||","===n},SourceMapConsumer.prototype._parseMappings=function(e,r){throw Error("Subclasses must implement _parseMappings")},SourceMapConsumer.GENERATED_ORDER=1,SourceMapConsumer.ORIGINAL_ORDER=2,SourceMapConsumer.GREATEST_LOWER_BOUND=1,SourceMapConsumer.LEAST_UPPER_BOUND=2,SourceMapConsumer.prototype.eachMapping=function(e,r,n){switch(n||SourceMapConsumer.GENERATED_ORDER){case SourceMapConsumer.GENERATED_ORDER:o=this._generatedMappings;break;case SourceMapConsumer.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw Error("Unknown order of iteration.")}var o,i=this.sourceRoot;o.map(function(e){var r=null===e.source?null:this._sources.at(e.source);return{source:r=t.computeSourceURL(i,r,this._sourceMapURL),generatedLine:e.generatedLine,generatedColumn:e.generatedColumn,originalLine:e.originalLine,originalColumn:e.originalColumn,name:null===e.name?null:this._names.at(e.name)}},this).forEach(e,r||null)},SourceMapConsumer.prototype.allGeneratedPositionsFor=function(e){var r=t.getArg(e,"line"),n={source:t.getArg(e,"source"),originalLine:r,originalColumn:t.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var i=[],a=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,o.LEAST_UPPER_BOUND);if(a>=0){var s=this._originalMappings[a];if(void 0===e.column)for(var u=s.originalLine;s&&s.originalLine===u;)i.push({line:t.getArg(s,"generatedLine",null),column:t.getArg(s,"generatedColumn",null),lastColumn:t.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a];else for(var l=s.originalColumn;s&&s.originalLine===r&&s.originalColumn==l;)i.push({line:t.getArg(s,"generatedLine",null),column:t.getArg(s,"generatedColumn",null),lastColumn:t.getArg(s,"lastGeneratedColumn",null)}),s=this._originalMappings[++a]}return i},r.SourceMapConsumer=SourceMapConsumer,BasicSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),BasicSourceMapConsumer.prototype.consumer=SourceMapConsumer,BasicSourceMapConsumer.prototype._findSourceIndex=function(e){var r,n=e;if(null!=this.sourceRoot&&(n=t.relative(this.sourceRoot,n)),this._sources.has(n))return this._sources.indexOf(n);for(r=0;r<this._absoluteSources.length;++r)if(this._absoluteSources[r]==e)return r;return -1},BasicSourceMapConsumer.fromSourceMap=function(e,r){var n=Object.create(BasicSourceMapConsumer.prototype),o=n._names=i.fromArray(e._names.toArray(),!0),a=n._sources=i.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=r,n._absoluteSources=n._sources.toArray().map(function(e){return t.computeSourceURL(n.sourceRoot,e,r)});for(var u=e._mappings.toArray().slice(),l=n.__generatedMappings=[],c=n.__originalMappings=[],p=0,g=u.length;p<g;p++){var d=u[p],h=new Mapping;h.generatedLine=d.generatedLine,h.generatedColumn=d.generatedColumn,d.source&&(h.source=a.indexOf(d.source),h.originalLine=d.originalLine,h.originalColumn=d.originalColumn,d.name&&(h.name=o.indexOf(d.name)),c.push(h)),l.push(h)}return s(n.__originalMappings,t.compareByOriginalPositions),n},BasicSourceMapConsumer.prototype._version=3,Object.defineProperty(BasicSourceMapConsumer.prototype,"sources",{get:function(){return this._absoluteSources.slice()}}),BasicSourceMapConsumer.prototype._parseMappings=function(e,r){for(var n,o,i,u,l,c=1,p=0,g=0,d=0,h=0,m=0,f=e.length,_=0,S={},C={},M=[],y=[];_<f;)if(";"===e.charAt(_))c++,_++,p=0;else if(","===e.charAt(_))_++;else{for((n=new Mapping).generatedLine=c,u=_;u<f&&!this._charIsMappingSeparator(e,u);u++);if(i=S[o=e.slice(_,u)])_+=o.length;else{for(i=[];_<u;)a.decode(e,_,C),l=C.value,_=C.rest,i.push(l);if(2===i.length)throw Error("Found a source, but no line and column");if(3===i.length)throw Error("Found a source and line, but no column");S[o]=i}n.generatedColumn=p+i[0],p=n.generatedColumn,i.length>1&&(n.source=h+i[1],h+=i[1],n.originalLine=g+i[2],g=n.originalLine,n.originalLine+=1,n.originalColumn=d+i[3],d=n.originalColumn,i.length>4&&(n.name=m+i[4],m+=i[4])),y.push(n),"number"==typeof n.originalLine&&M.push(n)}s(y,t.compareByGeneratedPositionsDeflated),this.__generatedMappings=y,s(M,t.compareByOriginalPositions),this.__originalMappings=M},BasicSourceMapConsumer.prototype._findMapping=function(e,r,n,t,i,a){if(e[n]<=0)throw TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[t]<0)throw TypeError("Column must be greater than or equal to 0, got "+e[t]);return o.search(e,r,i,a)},BasicSourceMapConsumer.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var r=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(r.generatedLine===n.generatedLine){r.lastGeneratedColumn=n.generatedColumn-1;continue}}r.lastGeneratedColumn=1/0}},BasicSourceMapConsumer.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,"line"),generatedColumn:t.getArg(e,"column")},n=this._findMapping(r,this._generatedMappings,"generatedLine","generatedColumn",t.compareByGeneratedPositionsDeflated,t.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(n>=0){var o=this._generatedMappings[n];if(o.generatedLine===r.generatedLine){var i=t.getArg(o,"source",null);null!==i&&(i=this._sources.at(i),i=t.computeSourceURL(this.sourceRoot,i,this._sourceMapURL));var a=t.getArg(o,"name",null);return null!==a&&(a=this._names.at(a)),{source:i,line:t.getArg(o,"originalLine",null),column:t.getArg(o,"originalColumn",null),name:a}}}return{source:null,line:null,column:null,name:null}},BasicSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return!!this.sourcesContent&&this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return null==e})},BasicSourceMapConsumer.prototype.sourceContentFor=function(e,r){if(!this.sourcesContent)return null;var n,o=this._findSourceIndex(e);if(o>=0)return this.sourcesContent[o];var i=e;if(null!=this.sourceRoot&&(i=t.relative(this.sourceRoot,i)),null!=this.sourceRoot&&(n=t.urlParse(this.sourceRoot))){var a=i.replace(/^file:\/\//,"");if("file"==n.scheme&&this._sources.has(a))return this.sourcesContent[this._sources.indexOf(a)];if((!n.path||"/"==n.path)&&this._sources.has("/"+i))return this.sourcesContent[this._sources.indexOf("/"+i)]}if(r)return null;throw Error('"'+i+'" is not in the SourceMap.')},BasicSourceMapConsumer.prototype.generatedPositionFor=function(e){var r=t.getArg(e,"source");if((r=this._findSourceIndex(r))<0)return{line:null,column:null,lastColumn:null};var n={source:r,originalLine:t.getArg(e,"line"),originalColumn:t.getArg(e,"column")},o=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",t.compareByOriginalPositions,t.getArg(e,"bias",SourceMapConsumer.GREATEST_LOWER_BOUND));if(o>=0){var i=this._originalMappings[o];if(i.source===n.source)return{line:t.getArg(i,"generatedLine",null),column:t.getArg(i,"generatedColumn",null),lastColumn:t.getArg(i,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}},IndexedSourceMapConsumer.prototype=Object.create(SourceMapConsumer.prototype),IndexedSourceMapConsumer.prototype.constructor=SourceMapConsumer,IndexedSourceMapConsumer.prototype._version=3,Object.defineProperty(IndexedSourceMapConsumer.prototype,"sources",{get:function(){for(var e=[],r=0;r<this._sections.length;r++)for(var n=0;n<this._sections[r].consumer.sources.length;n++)e.push(this._sections[r].consumer.sources[n]);return e}}),IndexedSourceMapConsumer.prototype.originalPositionFor=function(e){var r={generatedLine:t.getArg(e,"line"),generatedColumn:t.getArg(e,"column")},n=o.search(r,this._sections,function(e,r){var n=e.generatedLine-r.generatedOffset.generatedLine;return n||e.generatedColumn-r.generatedOffset.generatedColumn}),i=this._sections[n];return i?i.consumer.originalPositionFor({line:r.generatedLine-(i.generatedOffset.generatedLine-1),column:r.generatedColumn-(i.generatedOffset.generatedLine===r.generatedLine?i.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}},IndexedSourceMapConsumer.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})},IndexedSourceMapConsumer.prototype.sourceContentFor=function(e,r){for(var n=0;n<this._sections.length;n++){var t=this._sections[n].consumer.sourceContentFor(e,!0);if(t)return t}if(r)return null;throw Error('"'+e+'" is not in the SourceMap.')},IndexedSourceMapConsumer.prototype.generatedPositionFor=function(e){for(var r=0;r<this._sections.length;r++){var n=this._sections[r];if(-1!==n.consumer._findSourceIndex(t.getArg(e,"source"))){var o=n.consumer.generatedPositionFor(e);if(o)return{line:o.line+(n.generatedOffset.generatedLine-1),column:o.column+(n.generatedOffset.generatedLine===o.line?n.generatedOffset.generatedColumn-1:0)}}}return{line:null,column:null}},IndexedSourceMapConsumer.prototype._parseMappings=function(e,r){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var o=this._sections[n],i=o.consumer._generatedMappings,a=0;a<i.length;a++){var u=i[a],l=o.consumer._sources.at(u.source);l=t.computeSourceURL(o.consumer.sourceRoot,l,this._sourceMapURL),this._sources.add(l),l=this._sources.indexOf(l);var c=null;u.name&&(c=o.consumer._names.at(u.name),this._names.add(c),c=this._names.indexOf(c));var p={source:l,generatedLine:u.generatedLine+(o.generatedOffset.generatedLine-1),generatedColumn:u.generatedColumn+(o.generatedOffset.generatedLine===u.generatedLine?o.generatedOffset.generatedColumn-1:0),originalLine:u.originalLine,originalColumn:u.originalColumn,name:c};this.__generatedMappings.push(p),"number"==typeof p.originalLine&&this.__originalMappings.push(p)}s(this.__generatedMappings,t.compareByGeneratedPositionsDeflated),s(this.__originalMappings,t.compareByOriginalPositions)}},"./@datadog/source-map/lib/source-map-generator.js"(e,r,n){var t=n("./@datadog/source-map/lib/base64-vlq.js"),o=n("./@datadog/source-map/lib/util.js"),i=n("./@datadog/source-map/lib/array-set.js").ArraySet,a=n("./@datadog/source-map/lib/mapping-list.js").MappingList;function SourceMapGenerator(e){e||(e={}),this._file=o.getArg(e,"file",null),this._sourceRoot=o.getArg(e,"sourceRoot",null),this._skipValidation=o.getArg(e,"skipValidation",!1),this._sources=new i,this._names=new i,this._mappings=new a,this._sourcesContents=null}SourceMapGenerator.prototype._version=3,SourceMapGenerator.fromSourceMap=function(e){var r=e.sourceRoot,n=new SourceMapGenerator({file:e.file,sourceRoot:r});return e.eachMapping(function(e){var t={generated:{line:e.generatedLine,column:e.generatedColumn}};null!=e.source&&(t.source=e.source,null!=r&&(t.source=o.relative(r,t.source)),t.original={line:e.originalLine,column:e.originalColumn},null!=e.name&&(t.name=e.name)),n.addMapping(t)}),e.sources.forEach(function(t){var i=t;null!==r&&(i=o.relative(r,t)),n._sources.has(i)||n._sources.add(i);var a=e.sourceContentFor(t);null!=a&&n.setSourceContent(t,a)}),n},SourceMapGenerator.prototype.addMapping=function(e){var r=o.getArg(e,"generated"),n=o.getArg(e,"original",null),t=o.getArg(e,"source",null),i=o.getArg(e,"name",null);this._skipValidation||this._validateMapping(r,n,t,i),null!=t&&(t=String(t),this._sources.has(t)||this._sources.add(t)),null!=i&&(i=String(i),this._names.has(i)||this._names.add(i)),this._mappings.add({generatedLine:r.line,generatedColumn:r.column,originalLine:null!=n&&n.line,originalColumn:null!=n&&n.column,source:t,name:i})},SourceMapGenerator.prototype.setSourceContent=function(e,r){var n=e;null!=this._sourceRoot&&(n=o.relative(this._sourceRoot,n)),null!=r?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[o.toSetString(n)]=r):this._sourcesContents&&(delete this._sourcesContents[o.toSetString(n)],0===Object.keys(this._sourcesContents).length&&(this._sourcesContents=null))},SourceMapGenerator.prototype.applySourceMap=function(e,r,n){var t=r;if(null==r){if(null==e.file)throw Error('SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map\'s "file" property. Both were omitted.');t=e.file}var a=this._sourceRoot;null!=a&&(t=o.relative(a,t));var s=new i,u=new i;this._mappings.unsortedForEach(function(r){if(r.source===t&&null!=r.originalLine){var i=e.originalPositionFor({line:r.originalLine,column:r.originalColumn});null!=i.source&&(r.source=i.source,null!=n&&(r.source=o.join(n,r.source)),null!=a&&(r.source=o.relative(a,r.source)),r.originalLine=i.line,r.originalColumn=i.column,null!=i.name&&(r.name=i.name))}var l=r.source;null==l||s.has(l)||s.add(l);var c=r.name;null==c||u.has(c)||u.add(c)},this),this._sources=s,this._names=u,e.sources.forEach(function(r){var t=e.sourceContentFor(r);null!=t&&(null!=n&&(r=o.join(n,r)),null!=a&&(r=o.relative(a,r)),this.setSourceContent(r,t))},this)},SourceMapGenerator.prototype._validateMapping=function(e,r,n,t){if(r&&"number"!=typeof r.line&&"number"!=typeof r.column)throw Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!e||!("line"in e)||!("column"in e)||!(e.line>0)||!(e.column>=0)||r||n||t){if(!e||!("line"in e)||!("column"in e)||!r||!("line"in r)||!("column"in r)||!(e.line>0)||!(e.column>=0)||!(r.line>0)||!(r.column>=0)||!n)throw Error("Invalid mapping: "+JSON.stringify({generated:e,source:n,original:r,name:t}))}},SourceMapGenerator.prototype._serializeMappings=function(){for(var e,r,n,i,a=0,s=1,u=0,l=0,c=0,p=0,g="",d=this._mappings.toArray(),h=0,m=d.length;h<m;h++){if(r=d[h],e="",r.generatedLine!==s)for(a=0;r.generatedLine!==s;)e+=";",s++;else if(h>0){if(!o.compareByGeneratedPositionsInflated(r,d[h-1]))continue;e+=","}e+=t.encode(r.generatedColumn-a),a=r.generatedColumn,null!=r.source&&(i=this._sources.indexOf(r.source),e+=t.encode(i-p),p=i,e+=t.encode(r.originalLine-1-l),l=r.originalLine-1,e+=t.encode(r.originalColumn-u),u=r.originalColumn,null!=r.name&&(n=this._names.indexOf(r.name),e+=t.encode(n-c),c=n)),g+=e}return g},SourceMapGenerator.prototype._generateSourcesContent=function(e,r){return e.map(function(e){if(!this._sourcesContents)return null;null!=r&&(e=o.relative(r,e));var n=o.toSetString(e);return Object.prototype.hasOwnProperty.call(this._sourcesContents,n)?this._sourcesContents[n]:null},this)},SourceMapGenerator.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return null!=this._file&&(e.file=this._file),null!=this._sourceRoot&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e},SourceMapGenerator.prototype.toString=function(){return JSON.stringify(this.toJSON())},r.SourceMapGenerator=SourceMapGenerator},"./@datadog/source-map/lib/source-node.js"(e,r,n){var t=n("./@datadog/source-map/lib/source-map-generator.js").SourceMapGenerator,o=n("./@datadog/source-map/lib/util.js"),i=/(\r?\n)/,a="$$$isSourceNode$$$";function SourceNode(e,r,n,t,o){this.children=[],this.sourceContents={},this.line=null==e?null:e,this.column=null==r?null:r,this.source=null==n?null:n,this.name=null==o?null:o,this[a]=!0,null!=t&&this.add(t)}SourceNode.fromStringWithSourceMap=function(e,r,n){var t=new SourceNode,a=e.split(i),s=0,shiftNextLine=function(){return getNextLine()+(getNextLine()||"");function getNextLine(){return s<a.length?a[s++]:void 0}},u=1,l=0,c=null;return r.eachMapping(function(e){if(null!==c)if(u<e.generatedLine)addMappingWithCode(c,shiftNextLine()),u++,l=0;else{var r=a[s]||"",n=r.substr(0,e.generatedColumn-l);a[s]=r.substr(e.generatedColumn-l),l=e.generatedColumn,addMappingWithCode(c,n),c=e;return}for(;u<e.generatedLine;)t.add(shiftNextLine()),u++;if(l<e.generatedColumn){var r=a[s]||"";t.add(r.substr(0,e.generatedColumn)),a[s]=r.substr(e.generatedColumn),l=e.generatedColumn}c=e},this),s<a.length&&(c&&addMappingWithCode(c,shiftNextLine()),t.add(a.splice(s).join(""))),r.sources.forEach(function(e){var i=r.sourceContentFor(e);null!=i&&(null!=n&&(e=o.join(n,e)),t.setSourceContent(e,i))}),t;function addMappingWithCode(e,r){if(null===e||void 0===e.source)t.add(r);else{var i=n?o.join(n,e.source):e.source;t.add(new SourceNode(e.originalLine,e.originalColumn,i,r,e.name))}}},SourceNode.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(e){this.add(e)},this);else if(e[a]||"string"==typeof e)e&&this.children.push(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},SourceNode.prototype.prepend=function(e){if(Array.isArray(e))for(var r=e.length-1;r>=0;r--)this.prepend(e[r]);else if(e[a]||"string"==typeof e)this.children.unshift(e);else throw TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this},SourceNode.prototype.walk=function(e){for(var r,n=0,t=this.children.length;n<t;n++)(r=this.children[n])[a]?r.walk(e):""!==r&&e(r,{source:this.source,line:this.line,column:this.column,name:this.name})},SourceNode.prototype.join=function(e){var r,n,t=this.children.length;if(t>0){for(n=0,r=[];n<t-1;n++)r.push(this.children[n]),r.push(e);r.push(this.children[n]),this.children=r}return this},SourceNode.prototype.replaceRight=function(e,r){var n=this.children[this.children.length-1];return n[a]?n.replaceRight(e,r):"string"==typeof n?this.children[this.children.length-1]=n.replace(e,r):this.children.push("".replace(e,r)),this},SourceNode.prototype.setSourceContent=function(e,r){this.sourceContents[o.toSetString(e)]=r},SourceNode.prototype.walkSourceContents=function(e){for(var r=0,n=this.children.length;r<n;r++)this.children[r][a]&&this.children[r].walkSourceContents(e);for(var t=Object.keys(this.sourceContents),r=0,n=t.length;r<n;r++)e(o.fromSetString(t[r]),this.sourceContents[t[r]])},SourceNode.prototype.toString=function(){var e="";return this.walk(function(r){e+=r}),e},SourceNode.prototype.toStringWithSourceMap=function(e){var r={code:"",line:1,column:0},n=new t(e),o=!1,i=null,a=null,s=null,u=null;return this.walk(function(e,t){r.code+=e,null!==t.source&&null!==t.line&&null!==t.column?((i!==t.source||a!==t.line||s!==t.column||u!==t.name)&&n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name}),i=t.source,a=t.line,s=t.column,u=t.name,o=!0):o&&(n.addMapping({generated:{line:r.line,column:r.column}}),i=null,o=!1);for(var l=0,c=e.length;l<c;l++)10===e.charCodeAt(l)?(r.line++,r.column=0,l+1===c?(i=null,o=!1):o&&n.addMapping({source:t.source,original:{line:t.line,column:t.column},generated:{line:r.line,column:r.column},name:t.name})):r.column++}),this.walkSourceContents(function(e,r){n.setSourceContent(e,r)}),{code:r.code,map:n}},r.SourceNode=SourceNode},"./@datadog/source-map/lib/util.js"(e,r){r.getArg=function(e,r,n){if(r in e)return e[r];if(3==arguments.length)return n;throw Error('"'+r+'" is a required argument.')};var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,t=/^data:.+\,.+$/;function urlParse(e){var r=e.match(n);return r?{scheme:r[1],auth:r[2],host:r[3],port:r[4],path:r[5]}:null}function urlGenerate(e){var r="";return e.scheme&&(r+=e.scheme+":"),r+="//",e.auth&&(r+=e.auth+"@"),e.host&&(r+=e.host),e.port&&(r+=":"+e.port),e.path&&(r+=e.path),r}function normalize(e){var n=e,t=urlParse(e);if(t){if(!t.path)return e;n=t.path}for(var o,i=r.isAbsolute(n),a=n.split(/\/+/),s=0,u=a.length-1;u>=0;u--)"."===(o=a[u])?a.splice(u,1):".."===o?s++:s>0&&(""===o?(a.splice(u+1,s),s=0):(a.splice(u,2),s--));return(""===(n=a.join("/"))&&(n=i?"/":"."),t)?(t.path=n,urlGenerate(t)):n}function join(e,r){""===e&&(e="."),""===r&&(r=".");var n=urlParse(r),o=urlParse(e);if(o&&(e=o.path||"/"),n&&!n.scheme)return o&&(n.scheme=o.scheme),urlGenerate(n);if(n||r.match(t))return r;if(o&&!o.host&&!o.path)return o.host=r,urlGenerate(o);var i="/"===r.charAt(0)?r:normalize(e.replace(/\/+$/,"")+"/"+r);return o?(o.path=i,urlGenerate(o)):i}r.urlParse=urlParse,r.urlGenerate=urlGenerate,r.normalize=normalize,r.join=join,r.isAbsolute=function(e){return"/"===e.charAt(0)||n.test(e)},r.relative=function(e,r){""===e&&(e="."),e=e.replace(/\/$/,"");for(var n=0;0!==r.indexOf(e+"/");){var t=e.lastIndexOf("/");if(t<0||(e=e.slice(0,t)).match(/^([^\/]+:\/)?\/*$/))return r;++n}return Array(n+1).join("../")+r.substr(e.length+1)};var o=!("__proto__"in Object.create(null));function identity(e){return e}function toSetString(e){return isProtoString(e)?"$"+e:e}function fromSetString(e){return isProtoString(e)?e.slice(1):e}function isProtoString(e){if(!e)return!1;var r=e.length;if(r<9||95!==e.charCodeAt(r-1)||95!==e.charCodeAt(r-2)||111!==e.charCodeAt(r-3)||116!==e.charCodeAt(r-4)||111!==e.charCodeAt(r-5)||114!==e.charCodeAt(r-6)||112!==e.charCodeAt(r-7)||95!==e.charCodeAt(r-8)||95!==e.charCodeAt(r-9))return!1;for(var n=r-10;n>=0;n--)if(36!==e.charCodeAt(n))return!1;return!0}function strcmp(e,r){return e===r?0:null===e?1:null===r?-1:e>r?1:-1}r.toSetString=o?identity:toSetString,r.fromSetString=o?identity:fromSetString,r.compareByOriginalPositions=function(e,r,n){var t=strcmp(e.source,r.source);return 0!==t||0!=(t=e.originalLine-r.originalLine)||0!=(t=e.originalColumn-r.originalColumn)||n||0!=(t=e.generatedColumn-r.generatedColumn)||0!=(t=e.generatedLine-r.generatedLine)?t:strcmp(e.name,r.name)},r.compareByGeneratedPositionsDeflated=function(e,r,n){var t=e.generatedLine-r.generatedLine;return 0!==t||0!=(t=e.generatedColumn-r.generatedColumn)||n||0!==(t=strcmp(e.source,r.source))||0!=(t=e.originalLine-r.originalLine)||0!=(t=e.originalColumn-r.originalColumn)?t:strcmp(e.name,r.name)},r.compareByGeneratedPositionsInflated=function(e,r){var n=e.generatedLine-r.generatedLine;return 0!==n||0!=(n=e.generatedColumn-r.generatedColumn)||0!==(n=strcmp(e.source,r.source))||0!=(n=e.originalLine-r.originalLine)||0!=(n=e.originalColumn-r.originalColumn)?n:strcmp(e.name,r.name)},r.parseSourceMapInput=function(e){return JSON.parse(e.replace(/^\)]}'[^\n]*\n/,""))},r.computeSourceURL=function(e,r,n){if(r=r||"",e&&("/"!==e[e.length-1]&&"/"!==r[0]&&(e+="/"),r=e+r),n){var t=urlParse(n);if(!t)throw Error("sourceMapURL could not be parsed");if(t.path){var o=t.path.lastIndexOf("/");o>=0&&(t.path=t.path.substring(0,o+1))}r=join(urlGenerate(t),r)}return normalize(r)}}},r={};function __webpack_require__(n){var t=r[n];if(void 0!==t)return t.exports;var o=r[n]={exports:{}};return e[n](o,o.exports,__webpack_require__),o.exports}var n={};n.SourceMapGenerator=__webpack_require__("./@datadog/source-map/lib/source-map-generator.js").SourceMapGenerator,n.SourceMapConsumer=__webpack_require__("./@datadog/source-map/lib/source-map-consumer.js").SourceMapConsumer,n.SourceNode=__webpack_require__("./@datadog/source-map/lib/source-node.js").SourceNode,module.exports=n})();
@@ -1 +1 @@
1
- (()=>{"use strict";var t={};t.d=(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{TTLCache:()=>TTLCache});let i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,now=()=>i.now(),isPosIntOrInf=t=>t===1/0||!!t&&t===Math.floor(t)&&t>0&&isFinite(t),s=0x80000000-1;let TTLCache=class TTLCache{expirations=Object.create(null);data=new Map;expirationMap=new Map;ttl;max;updateAgeOnGet;updateAgeOnHas;noUpdateTTL;noDisposeOnSet;checkAgeOnGet;checkAgeOnHas;dispose;timer;timerExpiration;immortalKeys=new Set;constructor({max:t=1/0,ttl:e,updateAgeOnGet:i=!1,checkAgeOnGet:s=!1,updateAgeOnHas:r=!1,checkAgeOnHas:a=!1,noUpdateTTL:o=!1,dispose:n,noDisposeOnSet:h=!1}={}){if(void 0!==e&&!isPosIntOrInf(e))throw TypeError("ttl must be positive integer or Infinity if set");if(!isPosIntOrInf(t))throw TypeError("max must be positive integer or Infinity");if(this.ttl=e,this.max=t,this.updateAgeOnGet=!!i,this.checkAgeOnGet=!!s,this.updateAgeOnHas=!!r,this.checkAgeOnHas=!!a,this.noUpdateTTL=!!o,this.noDisposeOnSet=!!h,void 0!==n){if("function"!=typeof n)throw TypeError("dispose must be function if set");this.dispose=n}else this.dispose=(t,e,i)=>{};this.timer=void 0,this.timerExpiration=void 0}setTimer(t,e){if(this.timerExpiration&&this.timerExpiration<t)return;this.timer&&clearTimeout(this.timer);let i=setTimeout(()=>{for(let t in this.timer=void 0,this.timerExpiration=void 0,this.purgeStale(),this.expirations){let e=Number(t);this.setTimer(e,e-now());break}},Math.min(s,Math.max(0,e)));i.unref&&i.unref(),this.timerExpiration=t,this.timer=i}cancelTimer(){this.timer&&(clearTimeout(this.timer),this.timerExpiration=void 0,this.timer=void 0)}cancelTimers(){return process.emitWarning('TTLCache.cancelTimers has been renamed to TTLCache.cancelTimer (no "s"), and will be removed in the next major version update'),this.cancelTimer()}clear(){let t=this.dispose!==TTLCache.prototype.dispose?[...this]:[];for(let[e,i]of(this.data.clear(),this.expirationMap.clear(),this.cancelTimer(),this.expirations=Object.create(null),t))this.dispose(i,e,"delete")}setTTL(t,e=this.ttl){let i=this.expirationMap.get(t);if(void 0!==i){let e=this.expirations[i];!e||e.length<=1?delete this.expirations[i]:this.expirations[i]=e.filter(e=>e!==t)}if(e&&e!==1/0){this.immortalKeys.delete(t);let i=Math.floor(now()+e);this.expirationMap.set(t,i),this.expirations[i]||(this.expirations[i]=[],this.setTimer(i,e)),this.expirations[i].push(t)}else this.immortalKeys.add(t),this.expirationMap.set(t,1/0)}set(t,e,{ttl:i=this.ttl,noUpdateTTL:s=this.noUpdateTTL,noDisposeOnSet:r=this.noDisposeOnSet}={}){if(!isPosIntOrInf(i))throw TypeError("ttl must be positive integer or Infinity");if(this.expirationMap.has(t)){s||this.setTTL(t,i);let a=this.data.get(t),o=!r&&this.data.has(t);a!==e&&(this.data.set(t,e),o&&this.dispose(a,t,"set"))}else this.setTTL(t,i),this.data.set(t,e);for(;this.size>this.max;)this.purgeToCapacity();return this}has(t,{checkAgeOnHas:e=this.checkAgeOnHas,ttl:i=this.ttl,updateAgeOnHas:s=this.updateAgeOnHas}={}){return!!this.data.has(t)&&(e&&0===this.getRemainingTTL(t)?(this.delete(t),!1):(s&&this.setTTL(t,i),!0))}getRemainingTTL(t){let e=this.expirationMap.get(t);return e===1/0?e:void 0!==e?Math.max(0,Math.ceil(e-now())):0}get(t,{updateAgeOnGet:e=this.updateAgeOnGet,ttl:i=this.ttl,checkAgeOnGet:s=this.checkAgeOnGet}={}){let r=this.data.get(t);return s&&0===this.getRemainingTTL(t)?void this.delete(t):(e&&this.setTTL(t,i),r)}delete(t){let e=this.expirationMap.get(t);if(void 0!==e){let i=this.data.get(t);this.data.delete(t),this.expirationMap.delete(t),this.immortalKeys.delete(t);let s=this.expirations[e];return s&&(s.length<=1?delete this.expirations[e]:this.expirations[e]=s.filter(e=>e!==t)),this.dispose(i,t,"delete"),0===this.size&&this.cancelTimer(),!0}return!1}purgeToCapacity(){for(let t in this.expirations){let e=this.expirations[t];if(this.size-e.length>=this.max){delete this.expirations[t];let i=[];for(let t of e)i.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(let[t,e]of i)this.dispose(e,t,"evict")}else{let t=this.size-this.max,i=[];for(let s of e.splice(0,t))i.push([s,this.data.get(s)]),this.data.delete(s),this.expirationMap.delete(s);for(let[t,e]of i)this.dispose(e,t,"evict");return}}}get size(){return this.data.size}purgeStale(){let t=Math.ceil(now());for(let e in this.expirations){if("Infinity"===e||Number(e)>t)return;let i=[...this.expirations[e]||[]],s=[];for(let t of(delete this.expirations[e],i))s.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(let[t,e]of s)this.dispose(e,t,"stale")}0===this.size&&this.cancelTimer()}*entries(){for(let t in this.expirations)for(let e of this.expirations[t])yield[e,this.data.get(e)];for(let t of this.immortalKeys)yield[t,this.data.get(t)]}*keys(){for(let t in this.expirations)for(let e of this.expirations[t])yield e;for(let t of this.immortalKeys)yield t}*values(){for(let t in this.expirations)for(let e of this.expirations[t])yield this.data.get(e);for(let t of this.immortalKeys)yield this.data.get(t)}[Symbol.iterator](){return this.entries()}};module.exports=e})();
1
+ (()=>{"use strict";var t={};t.d=(e,i)=>{for(var s in i)t.o(i,s)&&!t.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:i[s]})},t.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),t.r=t=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var e={};t.r(e),t.d(e,{TTLCache:()=>TTLCache});let i="object"==typeof performance&&performance&&"function"==typeof performance.now?performance:Date,now=()=>i.now(),isPosIntOrInf=t=>t===1/0||!!t&&t===Math.floor(t)&&t>0&&isFinite(t),s=0x80000000-1;let TTLCache=class TTLCache{expirations=Object.create(null);data=new Map;expirationMap=new Map;ttl;max;updateAgeOnGet;updateAgeOnHas;noUpdateTTL;noDisposeOnSet;checkAgeOnGet;checkAgeOnHas;dispose;timer;timerExpiration;immortalKeys=new Set;constructor({max:t=1/0,ttl:e,updateAgeOnGet:i=!1,checkAgeOnGet:s=!1,updateAgeOnHas:r=!1,checkAgeOnHas:a=!1,noUpdateTTL:o=!1,dispose:h,noDisposeOnSet:n=!1}={}){if(void 0!==e&&!isPosIntOrInf(e))throw TypeError("ttl must be positive integer or Infinity if set");if(!isPosIntOrInf(t))throw TypeError("max must be positive integer or Infinity");if(this.ttl=e,this.max=t,this.updateAgeOnGet=!!i,this.checkAgeOnGet=!!s,this.updateAgeOnHas=!!r,this.checkAgeOnHas=!!a,this.noUpdateTTL=!!o,this.noDisposeOnSet=!!n,void 0!==h){if("function"!=typeof h)throw TypeError("dispose must be function if set");this.dispose=h}else this.dispose=(t,e,i)=>{};this.timer=void 0,this.timerExpiration=void 0}setTimer(t,e){if(this.timerExpiration&&this.timerExpiration<t)return;this.timer&&clearTimeout(this.timer);let i=setTimeout(()=>{for(let t in this.timer=void 0,this.timerExpiration=void 0,this.purgeStale(),this.expirations){let e=Number(t);this.setTimer(e,e-now());break}},Math.min(s,Math.max(0,e)));i.unref&&i.unref(),this.timerExpiration=t,this.timer=i}cancelTimer(){this.timer&&(clearTimeout(this.timer),this.timerExpiration=void 0,this.timer=void 0)}cancelTimers(){return process.emitWarning('TTLCache.cancelTimers has been renamed to TTLCache.cancelTimer (no "s"), and will be removed in the next major version update'),this.cancelTimer()}clear(){let t=this.dispose!==TTLCache.prototype.dispose?[...this]:[];for(let[e,i]of(this.data.clear(),this.expirationMap.clear(),this.cancelTimer(),this.expirations=Object.create(null),t))this.dispose(i,e,"delete")}setTTL(t,e=this.ttl){let i=this.expirationMap.get(t);if(void 0!==i){let e=this.expirations[i];!e||e.length<=1?delete this.expirations[i]:this.expirations[i]=e.filter(e=>e!==t)}if(e&&e!==1/0){this.immortalKeys.delete(t);let i=Math.floor(now()+e);this.expirationMap.set(t,i),this.expirations[i]||(this.expirations[i]=[],this.setTimer(i,e)),this.expirations[i].push(t)}else this.immortalKeys.add(t),this.expirationMap.set(t,1/0)}set(t,e,{ttl:i=this.ttl,noUpdateTTL:s=this.noUpdateTTL,noDisposeOnSet:r=this.noDisposeOnSet}={}){if(!isPosIntOrInf(i))throw TypeError("ttl must be positive integer or Infinity");if(this.expirationMap.has(t)){s||this.setTTL(t,i);let a=this.data.get(t),o=!r&&this.data.has(t);a!==e&&(this.data.set(t,e),o&&this.dispose(a,t,"set"))}else this.setTTL(t,i),this.data.set(t,e);for(;this.size>this.max;)this.purgeToCapacity();return this}has(t,{checkAgeOnHas:e=this.checkAgeOnHas,ttl:i=this.ttl,updateAgeOnHas:s=this.updateAgeOnHas}={}){return!!this.data.has(t)&&(e&&0===this.getRemainingTTL(t)?(this.delete(t),!1):(s&&this.setTTL(t,i),!0))}getRemainingTTL(t){let e=this.expirationMap.get(t);return e===1/0?e:void 0!==e?Math.max(0,Math.ceil(e-now())):0}get(t,{updateAgeOnGet:e=this.updateAgeOnGet,ttl:i=this.ttl,checkAgeOnGet:s=this.checkAgeOnGet}={}){let r=this.data.get(t);return s&&0===this.getRemainingTTL(t)?void this.delete(t):(e&&this.setTTL(t,i),r)}delete(t){let e=this.expirationMap.get(t);if(void 0!==e){let i=this.data.get(t);this.data.delete(t),this.expirationMap.delete(t),this.immortalKeys.delete(t);let s=this.expirations[e];return s&&(s.length<=1?delete this.expirations[e]:this.expirations[e]=s.filter(e=>e!==t)),this.dispose(i,t,"delete"),0===this.size&&this.cancelTimer(),!0}return!1}purgeToCapacity(){for(let t in this.expirations){let e=this.expirations[t];if(this.size-e.length>=this.max){delete this.expirations[t];let i=[];for(let t of e)i.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(let[t,e]of i)this.dispose(e,t,"evict")}else{let t=this.size-this.max,i=[];for(let s of e.splice(0,t))i.push([s,this.data.get(s)]),this.data.delete(s),this.expirationMap.delete(s);for(let[t,e]of i)this.dispose(e,t,"evict");return}}}get size(){return this.data.size}purgeStale(){let t=Math.ceil(now());for(let e in this.expirations){if("Infinity"===e||Number(e)>t)return;let i=[...this.expirations[e]||[]],s=[];for(let t of(delete this.expirations[e],i))s.push([t,this.data.get(t)]),this.data.delete(t),this.expirationMap.delete(t);for(let[t,e]of s)this.dispose(e,t,"stale")}0===this.size&&this.cancelTimer()}*entries(){for(let t in this.expirations)for(let e of this.expirations[t])yield[e,this.data.get(e)];for(let t of this.immortalKeys)yield[t,this.data.get(t)]}*keys(){for(let t in this.expirations)for(let e of this.expirations[t])yield e;for(let t of this.immortalKeys)yield t}*values(){for(let t in this.expirations)for(let e of this.expirations[t])yield this.data.get(e);for(let t of this.immortalKeys)yield this.data.get(t)}[Symbol.iterator](){return this.entries()}};module.exports=e})();